This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cpp oddities. was: sparc-sun-solaris2.8 headers: fixinc, cpplib
- To: neil at daikokuya dot demon dot co dot uk (Neil Booth)
- Subject: Re: cpp oddities. was: sparc-sun-solaris2.8 headers: fixinc, cpplib
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Mon, 18 Dec 2000 11:04:00 -0800 (PST)
- Cc: robertlipe at usa dot net (Robert Lipe), pfeifer at dbai dot tuwien dot ac dot at (Gerald Pfeifer), gcc at gcc dot gnu dot org, bkorb at gnu dot org (Bruce Korb), gcc-patches at gcc dot gnu dot org
> Really, we want all front end warnings to check for being in a system
> header; that's what CPP does. It's simplest to do that in the warning
> routines, not in each place we might issue a warning (which is what we
> seem to do now).
While this is a good thing for end users, it may also tend to degrade
the quality of the libraries we supply if we are not careful. In
particular, libstdc++ headers should be as warning-free as they can be
made without resort to such measures. If we have a warning that cannot
be silenced in a system header without making the code worse, it is an
ill-considered warning and, at least, should not go into -Wall (as users
will not be able to silence the warning without making their code worse).