This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/85211] -isystem automatically adds extern "C" to includes
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Apr 2018 18:57:18 +0000
- Subject: [Bug preprocessor/85211] -isystem automatically adds extern "C" to includes
- Auto-submitted: auto-generated
- References: <bug-85211-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85211
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to blastrock from comment #2)
> I think it would be nice to mention it in the documentation as it was in
> version 6. And I was hoping for a way to disable it at runtime, recompiling
> gcc seems quite complex...
That seems like their target arm-vita-eabi should have it disabled anyways.
For all newlib targets, NO_IMPLICIT_EXTERN_C should be defined.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37727 also.
And https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57699 .