This is the mail archive of the 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]

Re: "introduce no new bootstrap warning" criteria. was: Loop iv debugging patch

>>>>> "Robert" == Robert Dewar <> writes:

Robert> In GNAT, we have a compiler option to make all warnings fatal,
Robert> and we always use this option for all builds. We have also
Robert> adopted a zero warnings tolerance for all our C code.

In forthcoming Autoconf 2.50 we have introduced support for a new
hopefully standard envvar, WARNINGS.  I plan to propagate its support
in several tools, the ultimate goals being to make it possible to run
say a test suite with an ultra severe environment, something which is
extremely useful in the development of Autoconf for instance.

Bison is next on my list, and it would be great if GCC could support
it too.

Here is the documentation provided with Autoconf:

   `autoconf' accepts the following options:

[--- CUT ---]

     Report the warnings related to CATEGORY (which can actually be a
     comma separated list).  *Note Reporting Messages::, macro
     `AC_DIAGNOSE', for a comprehensive list of categories.  Special
     values include:

          report all the warnings

          report none

          treats warnings as errors

          disable warnings falling into CATEGORY

     Warnings about `syntax' are enabled by default, and the environment
     variable `WARNINGS', a comma separated list of categories, is
     honored. `autoconf' will actually behave as if you had run

          autoconf --warnings=syntax,$WARNINGS,CATEGORIES

     If you want to disable `autoconf''s defaults and `WARNING' but
     enable the warnings about obsolete constructs, use `-W

     `autoconf' displays a back trace for errors, but not for warnings;
     if you want them, just pass `-W error'.  For instance on this


     you get:

          /tmp % ace -Wcross
 warning: AC_TRY_RUN called without default \
          to allow cross compiling
          /tmp % ace -Wcross,error
 error: AC_TRY_RUN called without default \
          to allow cross compiling
          acgeneral.m4:3044: AC_TRY_RUN is expanded from...
 INNER is expanded from...
 OUTTER is expanded from...
 the top level

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