(CPP_SPEC): Always define __LANGUAGE_C__ unless assembler.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 14 Nov 1993 03:57:17 +0000 (22:57 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 14 Nov 1993 03:57:17 +0000 (22:57 -0500)
(CPP_SPEC): Always define __LANGUAGE_C__ unless assembler.  Define
__cplusplus for C++.

From-SVN: r6084

gcc/config/alpha/alpha.h

index 4fc74575e5b0c97ba4008f635bbe7d00647772a7..4fc9e2d6bfbf426a9a158dcc1d2f9282338ee820 100644 (file)
@@ -25,14 +25,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 -Dunix -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -DSYSTYPE_BSD  \
 -D_SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -Acpu(alpha) -Amachine(alpha)"
 
-/* Write out the correct language type definition for the header files.  */
+/* Write out the correct language type definition for the header files.  
+   Unless we have assembler language, write out the symbols for C.  */
 #define CPP_SPEC "\
-%{.c:  -D__LANGUAGE_C__  -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}  \
-%{.h:  -D__LANGUAGE_C__  -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}  \
+%{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}  \
 %{.S:  -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
-%{.cc: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
-%{.cxx:        -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
-%{.C:  -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
+%{.cc: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \
+%{.cxx:        -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \
+%{.C:  -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \
 %{.m:  -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C}"
 
 /* Set the spec to use for signed char.  The default tests the above macro