This is the mail archive of the gcc-patches@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]

Re: PATCH to config/sparc/sol2.h for c++/7327


Rainer Orth <ro@techfak.uni-bielefeld.de> writes:

> Jason Merrill <jason@redhat.com> writes:
> 
> > People have complained about -isystem implying extern "C" on Solaris.  I
> > checked, and the oldest Solaris 2 system I have access to, 2.5.1 (of May
> > 1996), has C++-aware C library headers.  Does anyone know when this became
> > true?
> 
> I don't have older systems running, but could check Solaris media back to
> 2.0 (will do so tomorrow).

In a quick excursion in software archaeology, I checked the Solaris 2.0
headers and found they are already C++-aware.  The following patch reflects
this.

Ok for mainline?

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Wed Sep  3 01:32:03 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.

Index: gcc/config/sol2.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sol2.h,v
retrieving revision 1.7
diff -u -p -r1.7 sol2.h
--- gcc/config/sol2.h	3 Sep 2003 01:53:07 -0000	1.7
+++ gcc/config/sol2.h	3 Sep 2003 16:53:11 -0000
@@ -76,7 +76,7 @@ Boston, MA 02111-1307, USA.  */
 	TARGET_SUB_OS_CPP_BUILTINS();			\
     } while (0)
 
-/* The system headers under Solaris (at least 2.5.1 and up) are C++-aware.  */
+/* The system headers under Solaris 2 are C++-aware since 2.0.  */
 #define NO_IMPLICIT_EXTERN_C
 
 /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).


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