This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

C++ headers vs safe-ctype.h


Hi,

We are currently seeing two cases of C++-related bootstrap failures on Darwin, due to C++ header <string> being included after âsystem.hâ and âsafe-ctype.hâ: <string> headers, on Darwin, use ctype macros which GCC poisons through safe-ctype.h

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63703
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63750

This triggers in libcc1, and in the new ipa-chkp.c file. We can move the #include <string> line higher in the source files (as is already done, e.g., in go/go-system.h), but we probably need to think of a global solution, such as including basic C++ headers directly from the system.h header. I do not know enough about the state of our mixed C/C++ build to understand if that would work or create chaos, so Iâm dropping a line here so that âawareness of this general issue is raisedâ, as they say rather pompously :)

Cheers,
FX


PS: Ilya, I tried to CC you on the bugzilla PR 63750, but youâre not in the database.

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