Prevent "undef var" errors on gcc --help or --version with self-specs
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jan 2016 17:53:14 +0000 (17:53 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jan 2016 17:53:14 +0000 (17:53 +0000)
commite1a390d6889d55bbfbe87bff4f25b5c8234fb248
tree6918ce3872809d14493260237973c7c890a1a98d
parentb95d41cf08001c957dc7a8cfc024bdedc1129416
Prevent "undef var" errors on gcc --help or --version with self-specs

        * gcc.c (spec_undefvar_allowed): New global.
        (process_command): Set to true when running for --version or --help,
        alone or together.
        (getenv_spec_function): When the variable is not defined, use the
        variable name as the variable value if we're allowed not to issue
        a fatal error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232287 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gcc.c