prevent "undef var" errors on gcc --help or --version

Bernd Schmidt bschmidt@redhat.com
Mon Jan 11 16:09:00 GMT 2016


On 01/08/2016 02:23 PM, Olivier Hainque wrote:
> +  /* Undefined variable references in specs are harmless if
> +     we're running for --help or --version alone, or together.  */
> +  spec_undefvar_allowed =
> +    (((print_version || print_help_list)
> +      && decoded_options_count == 2)
> +     ||
> +     ((print_version && print_help_list)
> +      && decoded_options_count == 3));
> +

This doesn't follow the formatting rules. Also, there are a couple of 
other options that cause gcc to just print something and exit. Are these 
affected by missing env vars?


Bernd



More information about the Gcc-patches mailing list