This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]