Preliminary mainline patch for __attribute__ ((sentinel))

Joseph S. Myers jsm@polyomino.org.uk
Tue Sep 14 12:39:00 GMT 2004


On Tue, 14 Sep 2004, Marc Espie wrote:

> On Sat, Aug 28, 2004 at 02:39:31PM -0400, Kaveh R. Ghazi wrote:
> > Hmm, it looks like GCC's stddef.h is more aggresive in insisting on
> > it's own definition of NULL than I realized.  It undef's the old one
> > rather than doing an ifndef check.  So as long as stddef.h is
> > included, in any order relative to other headers, you'll get the GCC
> > preferred definition of (void*)0.  So I don't see a need to insist on
> > my position.
> 
> 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. What I see is still:

GCC's stddef.h = the one you get if you don't set USER_H.  If you set 
USER_H then you're making some sort of assertion that the system's 
stddef.h is suitable for GCC and you will change it as required for 
changes in GCC.  (Other compiler changes that may involve changes to 
stddef.h include the change to make offsetof use __builtin_offsetof.) 
Though maybe we should consider fixincluding system stddef.h when USER_H 
is set anyway.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
  http://www.srcf.ucam.org/~jsm28/gcc/#c90status - status of C90 for GCC 4.0
    jsm@polyomino.org.uk (personal mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)



More information about the Gcc-patches mailing list