Commit 64b172fe by Rainer Orth Committed by Rainer Orth

mips.h (CPP_SPEC): Simplify .s/.S handling.

	* config/mips/mips.h (CPP_SPEC): Simplify .s/.S handling.
	Don't define _LANGUAGE_C and variants for .cpp/.cp/.c++ files.
	Move definition of _LANGUAGE_C_PLUS_PLUS ...
	(CPLUSPLUS_CPP_SPEC): ... here.
	Fixes PRs c++/3047, target/441.

From-SVN: r43007
parent 85a9a0a2
2001-06-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/mips.h (CPP_SPEC): Simplify .s/.S handling.
Don't define _LANGUAGE_C and variants for .cpp/.cp/.c++ files.
Move definition of _LANGUAGE_C_PLUS_PLUS ...
(CPLUSPLUS_CPP_SPEC): ... here.
Fixes PRs c++/3047, target/441.
2001-06-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> 2001-06-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* doc/install.texi2html (MAKEINFO): Keep value if set already. * doc/install.texi2html (MAKEINFO): Keep value if set already.
......
...@@ -958,17 +958,19 @@ while (0) ...@@ -958,17 +958,19 @@ while (0)
#endif #endif
#endif #endif
/* For C++ we need to ensure that _LANGUAGE_C_PLUS_PLUS is defined independent
of the source file extension. */
#define CPLUSPLUS_CPP_SPEC "\
-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS \
%(cpp) \
"
/* CPP_SPEC is the set of arguments to pass to the preprocessor. */ /* CPP_SPEC is the set of arguments to pass to the preprocessor. */
#ifndef CPP_SPEC #ifndef CPP_SPEC
#define CPP_SPEC "\ #define CPP_SPEC "\
%{.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} \
%{.m: -D__LANGUAGE_OBJECTIVE_C -D_LANGUAGE_OBJECTIVE_C -D__LANGUAGE_C -D_LANGUAGE_C} \ %{.m: -D__LANGUAGE_OBJECTIVE_C -D_LANGUAGE_OBJECTIVE_C -D__LANGUAGE_C -D_LANGUAGE_C} \
%{.S: -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \ %{.S|.s: -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
%{.s: -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \ %{!.S: %{!.s: %{!.cc: %{!.cxx: %{!.cpp: %{!.cp: %{!.c++: %{!.C: %{!.m: -D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}}}}}}}}} \
%{!.S: %{!.s: %{!.cc: %{!.cxx: %{!.C: %{!.m: -D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}}}}}} \
%(subtarget_cpp_size_spec) \ %(subtarget_cpp_size_spec) \
%{mips3:-U__mips -D__mips=3 -D__mips64} \ %{mips3:-U__mips -D__mips=3 -D__mips64} \
%{mips4:-U__mips -D__mips=4 -D__mips64} \ %{mips4:-U__mips -D__mips=4 -D__mips64} \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment