This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFA] New rules for ARI


On Wednesday 16 March 2011 15:03:15, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
> 
> Pedro> Maybe by including the in-tree readline headers with -isystem
> Pedro> rather than -I.  I sense that other cases in other libraries
> Pedro> will appear though, and that it'd bring in more pain than benefit.
> 
> For free software libraries, we can at least report bugs and assume that
> they will be fixed some day.
> 
> The bigger danger would be system libraries; but it would be good enough
> if we could use this option on free operating systems.

gcc is much more permissive with system libraries than with regular
headers.  -isystem PATHFOO makes gcc treat headers found in PATHFOO
as system headers.  Doesn't gcc ignore this warning on declarations
coming from system headers?  It's actually the opposite that happens:
bugs in system headers are more masked than non-system headers'.

-- 
Pedro Alves


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