From 9472dfbf21e34bbca599c15fd31c7341af3fda29 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sat, 17 Nov 2018 11:59:26 -0500 Subject: [PATCH] re PR c++/4225 (documentation about CPLUS_INCLUDE_PATH vs. system headers incomplete) 2018-11-17 Sandra Loosemore PR c++/4225 gcc/ * doc/cpp.texi (System Headers): Add note about implicit extern "C" block on targets that define SYSTEM_IMPLICIT_EXTERN_C. From-SVN: r266240 --- gcc/ChangeLog | 6 ++++++ gcc/doc/cpp.texi | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7362f26..dd790a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2018-11-17 Sandra Loosemore + PR c++/4225 + * doc/cpp.texi (System Headers): Add note about implicit + extern "C" block on targets that define SYSTEM_IMPLICIT_EXTERN_C. + +2018-11-17 Sandra Loosemore + PR c++/4025 * doc/invoke.texi (C++ Dialect Options): Clarify usage of -fno-implicit-templates. diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index 25518ee..568b828 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -1131,6 +1131,9 @@ header, no matter where it was found. Code that comes before the system_header}} has no effect in the primary source file. @end itemize +On some targets, such as RS/6000 AIX, GCC implicitly surrounds all +system headers with an @samp{extern "C"} block when compiling as C++. + @node Macros @chapter Macros -- 2.7.4