aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-11-13 22:57:17 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-11-13 22:57:17 -0500
commit21798cd8151ec356f7b3b8d8fc6395085e5a3e2d (patch)
treee59f0940c23e754fe4a1d8379c8e3d65446d7f7b /gcc
parent2d2e51b74698fed8451449c1a589160256b654fd (diff)
downloadgcc-21798cd8151ec356f7b3b8d8fc6395085e5a3e2d.zip
gcc-21798cd8151ec356f7b3b8d8fc6395085e5a3e2d.tar.gz
gcc-21798cd8151ec356f7b3b8d8fc6395085e5a3e2d.tar.bz2
(CPP_SPEC): Always define __LANGUAGE_C__ unless assembler.
(CPP_SPEC): Always define __LANGUAGE_C__ unless assembler. Define __cplusplus for C++. From-SVN: r6084
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/alpha/alpha.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index 4fc7457..4fc9e2d 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -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