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: Patch: HP-UX header file fixup.


On Thu, 11 May 2006, John David Anglin wrote:

> I see in the diff for 84046:
> 
> +      /* A non-static declaration (even an "extern") followed by a
> +	 static declaration is undefined behavior per C99 6.2.2p3-5,7.
> 
> The HP-UX system headers certainly aren't C99 compatible.
> The documentation indicates that gnu89 is still the GCC default.
> So, I still think that this change in behavior was too agressive.

It's just as undefined in C90 6.1.2.2.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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