-isystem vs. #pragma system_header

Nathan Myers ncm@cantrip.org
Wed May 17 23:04:00 GMT 2000


On Thu, May 18, 2000 at 07:44:15AM +0200, Branko ?ibej wrote:
> Zack Weinberg wrote:
> > 
> > On Wed, May 17, 2000 at 06:48:40PM -0700, Nathan Myers wrote:
> > > This can be solved using something like the above suggested feature, or
> > > by adding (yet) another "-W" option to control how the compiler emits
> > > warnings for system headers.
> > 
> > I could trivially add a -fno-system-headers or something like that
> > that shut off all special treatment for system headers.  Anything more
> > complex than that is going to need careful discussion.
> 
> I did that two years ago, see
> 
> 	http://gcc.gnu.org/ml/gcc/1998-06/msg01120.html
> 
> but it never went in. I can dust it off, if you're interested.

I'm interested.

I can see two reasons why it wasn't useful back then.  First, -isystem
wasn't usable in C++, and the default (IMHO) wasn't right.

Nathan Myers
ncm at cantrip dot org



More information about the Libstdc++ mailing list