This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/2] (header usage fix) include c++ headers in system.h
- From: Pedro Alves <palves at redhat dot com>
- To: Szabolcs Nagy <szabolcs dot nagy at arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Rich Felker <dalias at libc dot org>, David Edelsohn <dje dot gcc at gmail dot com>, nd <nd at arm dot com>, Michael Matz <matz at suse dot de>, James Greenhalgh <James dot Greenhalgh at arm dot com>, Oleg Endo <oleg dot endo at t-online dot de>
- Date: Fri, 22 Apr 2016 18:56:24 +0100
- Subject: Re: [PATCH 2/2] (header usage fix) include c++ headers in system.h
- Authentication-results: sourceware.org; auth=none
- References: <5719F6C8 dot 1060506 at arm dot com>
On 04/22/2016 11:02 AM, Szabolcs Nagy wrote:
> Some gcc source files include standard headers after
> "system.h" but those headers may declare and use poisoned
> symbols,
Couldn't gcc simply allow use of poisoned symbols in
system headers?
It sounds like it'd avoid these odd contortions.
> they also cannot be included before "system.h"
> because they might depend on macro definitions from there,
> so they must be included in system.h.
Thanks,
Pedro Alves