public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* NO_IMPLICIT_EXTERN_C / SYSTEM_IMPLICIT_EXTERN_C and -isystem
@ 2021-08-13  7:40 Lucas, Philipp
  0 siblings, 0 replies; only message in thread
From: Lucas, Philipp @ 2021-08-13  7:40 UTC (permalink / raw)
  To: gcc

Hi all,

we have a non-standard directory with headers which shall be considered
system headers for the purpose of warnings. I understand from bug 85211,
that -isystem may implicitly add an extern "C" to such headers, and that
this behaviour can be toggled via the configuration option 
NO_IMPLICIT_EXTERN_C (or, dually, SYSTEM_IMPLICIT_EXTERN_C).

But in our case, config/mips/elf.h already had a
  #define NO_IMPLICIT_EXTERN_C 1
(or, since 09cff37bfdcc, is lacking a #define SYSTEM_IMPLICIT_EXTERN_C).
However, a 10.3 mips compilation still adds the implicit extern "C".

Is there some other option we need to set to make -isystem not set
extern "C"?


-- 
Philipp Lucas
philipp.lucas@siemens.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-13  7:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13  7:40 NO_IMPLICIT_EXTERN_C / SYSTEM_IMPLICIT_EXTERN_C and -isystem Lucas, Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).