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]

Re: Warning policy?



  In message <199901051514.KAA12156@caip.rutgers.edu>you write:
  > 	If not, I can write an autoconf test to set __GNUC_MICRO__ if
  > "GCC == 2.92".
I'd do a feature test instead of a version # test for autoconf stuff.

ie, compile a trivial program that puts an unused attribute on a label
then try to compile it.  If it fails, then it's not supported.

This means that folks that build with "cc" as their stage1 compiler or
older versions of egcs would still get the warnings, but I can live with
that.


  > Another option would be to simply bump the check to "GCC < 2.93" in
  > gansidecl.h (with or without an actual egcs minor version number bump.)
That would be fine with me too.  We could bump the version # to 2.93 if
we want.

jeff


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