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/12/2016 05:11 PM, Olivier Hainque wrote:
+  /* Decide if undefined variable references are allowed in specs.  */
+  {
+    /* --version and --help alone or together are safe.  Note that -v would
+       make them unsafe, as they'd then be run for subprocesses as well, the
+       location of which might depend on variables possibly coming from
+       self-specs.  */
+
+    /* Count the number of options we have for which undefined variables
+       are harmless for sure, and check that nothing else is set.  */
+
+    unsigned n_varsafe_options = 0;
+

I think you can do without the outer braces. Ok with those removed.


Bernd


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