aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lang-specs.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@stanford.edu>2001-03-02 01:03:47 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-03-02 01:03:47 +0000
commitf71434274cd0439bde0dbdfd1fc53e2f24dee485 (patch)
tree43f54cdf446fa1bfa1add9a724d589f75f644c16 /gcc/cp/lang-specs.h
parentcb7738452f613d5f10acc3e816c48be679c67087 (diff)
downloadgcc-f71434274cd0439bde0dbdfd1fc53e2f24dee485.zip
gcc-f71434274cd0439bde0dbdfd1fc53e2f24dee485.tar.gz
gcc-f71434274cd0439bde0dbdfd1fc53e2f24dee485.tar.bz2
gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements.
* gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h, objc/lang-specs.h: Add zero initializer for cpp_spec field to all array elements. * cp/lang-specs.h: Don't put an #ifdef inside the initializer list; set a default for CPLUSPLUS_CPP_SPEC and use it. From-SVN: r40173
Diffstat (limited to 'gcc/cp/lang-specs.h')
-rw-r--r--gcc/cp/lang-specs.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h
index c8e708b..55c1f74 100644
--- a/gcc/cp/lang-specs.h
+++ b/gcc/cp/lang-specs.h
@@ -22,12 +22,16 @@ Boston, MA 02111-1307, USA. */
/* This is the contribution to the `default_compilers' array in gcc.c for
g++. */
- {".cc", "@c++"},
- {".cp", "@c++"},
- {".cxx", "@c++"},
- {".cpp", "@c++"},
- {".c++", "@c++"},
- {".C", "@c++"},
+#ifndef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC 0
+#endif
+
+ {".cc", "@c++", 0},
+ {".cp", "@c++", 0},
+ {".cxx", "@c++", 0},
+ {".cpp", "@c++", 0},
+ {".c++", "@c++", 0},
+ {".C", "@c++", 0},
{"@c++",
/* cc1plus has an integrated ISO C preprocessor. We should invoke
the external preprocessor if -save-temps is given. */
@@ -50,13 +54,10 @@ Boston, MA 02111-1307, USA. */
%{ansi:-D__STRICT_ANSI__}}\
%{ansi:-trigraphs -$}\
%(cc1_options) %2 %{+e1*}\
- %{!fsyntax-only:%(invoke_as)}}}}"
-#ifdef CPLUSPLUS_CPP_SPEC
- , CPLUSPLUS_CPP_SPEC
-#endif
- },
- {".ii", "@c++-cpp-output"},
+ %{!fsyntax-only:%(invoke_as)}}}}",
+ CPLUSPLUS_CPP_SPEC},
+ {".ii", "@c++-cpp-output", 0},
{"@c++-cpp-output",
"%{!M:%{!MM:%{!E:\
cc1plus -fpreprocessed %i %(cc1_options) %2 %{+e*}\
- %{!fsyntax-only:%(invoke_as)}}}}"},
+ %{!fsyntax-only:%(invoke_as)}}}}", 0},