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: Preliminary mainline patch for __attribute__ ((sentinel))


 > I've finally restored OpenBSD-i386 to bootstrap land on mainline.  It
 > looks like you're wrong. The copy of fixinclude'd stddef.h I'm looking
 > at does nothing of the sort.

That's strange, the stub patch against 3.3 you posted here:
http://gcc.gnu.org/ml/gcc/2004-08/msg01105.html
seems to only allow pointer zero...

In any case, what do you suggest we do now?  I tried making this point
about integer NULL with Joseph for solaris2 and failed.  Although it
seems more severe for openbsd since your stddef.h isn't suitable.

To fix this you can either:

1. Fix openbsd's stddef.h yourself
   (but gcc-4.0 will still spuriously warn on older openbsds.)

2. Have GCC's fixincludes fix/replace your stddef.h as elsewhere.

3. Relax the check to accept integer NULL just for openbsd
   (makes the warning less useful in Joseph's opinion)

4. Leave the warning as is, and fix all calls to concat in gcc
   (other source code using sentinels will still have the problem.)

5. Something else?


If I had to pick, I lean towards #2.  All of the other options have
some drawbacks (unless you can come up with a clean #5.)

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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