GCC 6 symbol poisoning and c++ header usage is fragile

Michael Matz matz@suse.de
Thu Apr 21 12:53:00 GMT 2016


Hi,

On Thu, 21 Apr 2016, Szabolcs Nagy wrote:

> there is also <map>, <set>, <list> usage and go-system.h is special. 
> (and gmp.h includes <iosfwd> when built with c++)
> 
> so i can prepare a patch with INCLUDE_{MAP,SET,LIST} and remove the 
> explicit libc/libstdc++ includes.

This.

> >> auto-profile.c
> >> diagnostic.c
> >> graphite-isl-ast-to-gimple.c
> >> ipa-icf.c
> >> ipa-icf-gimple.c
> >> pretty-print.c
> >> toplev.c

But check if they really are required at all in the sources.  E.g. <list> 
is useless in ipa-icf-gimple.c.


Ciao,
Michael.



More information about the Gcc mailing list