Prevent "undef var" errors on gcc --help or --version with self-specs
commitba85c5fd8f17127d0c3cc4f784312994cebc54a3
authorOlivier Hainque <hainque@adacore.com>
Tue, 12 Jan 2016 17:53:14 +0000 (12 17:53 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Tue, 12 Jan 2016 17:53:14 +0000 (12 17:53 +0000)
tree6918ce3872809d14493260237973c7c890a1a98d
parentc446cf07e903f12bd0926078b5afd3d9183b744d
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.

From-SVN: r232287
gcc/ChangeLog
gcc/gcc.c