Commit 6e5c4eaf by Geoffrey Keating Committed by Geoffrey Keating

lang-specs.h (objective-c-header): Use .gch not .pch; support -no-integrated-cpp.

	* objc/lang-specs.h (objective-c-header): Use .gch not .pch;
	support -no-integrated-cpp.

	* c-pch.c (get_ident): Use c_language_kind and flag_objc rather
	than langhooks.name.

From-SVN: r63955
parent 9a97e40a
2003-03-07 Geoffrey Keating <geoffk@apple.com>
* objc/lang-specs.h (objective-c-header): Use .gch not .pch;
support -no-integrated-cpp.
* c-pch.c (get_ident): Use c_language_kind and flag_objc rather
than langhooks.name.
2003-03-07 Michael Matz <matz@suse.de> 2003-03-07 Michael Matz <matz@suse.de>
* df.h (enum df_ref_flags.DF_REF_STRIPPED): New. * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
......
...@@ -52,14 +52,10 @@ get_ident() ...@@ -52,14 +52,10 @@ get_ident()
static const char template[IDENT_LENGTH] = "gpch.010"; static const char template[IDENT_LENGTH] = "gpch.010";
memcpy (result, template, IDENT_LENGTH); memcpy (result, template, IDENT_LENGTH);
if (strcmp (lang_hooks.name, "GNU C") == 0) if (c_language == clk_c)
result[4] = 'C'; result[4] = flag_objc ? 'o' : 'C';
else if (strcmp (lang_hooks.name, "GNU C++") == 0) else if (c_language == clk_cplusplus)
result[4] = '+'; result[4] = flag_objc ? 'O' : '+';
else if (strcmp (lang_hooks.name, "GNU Objective-C") == 0)
result[4] = 'o';
else if (strcmp (lang_hooks.name, "GNU Objective-C++") == 0)
result[4] = 'O';
else else
abort (); abort ();
return result; return result;
......
...@@ -44,11 +44,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -44,11 +44,11 @@ Boston, MA 02111-1307, USA. */
%{!E:%{!M:%{!MM:\ %{!E:%{!M:%{!MM:\
%{traditional|ftraditional|traditional-cpp:\ %{traditional|ftraditional|traditional-cpp:\
%eGNU Objective C no longer supports traditional compilation}\ %eGNU Objective C no longer supports traditional compilation}\
%{save-temps:cc1obj -E %(cpp_options) %b.mi \n\ %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) %b.mi \n\
cc1obj -fpreprocessed %b.mi %(cc1_options) %{gen-decls}\ cc1obj -fpreprocessed %b.mi %(cc1_options) %{gen-decls}\
-o %g.s %{!o*:--output-pch=%i.pch}\ -o %g.s %{!o*:--output-pch=%i.gch}\
%W{o*:--output-pch=%*}%V}\ %W{o*:--output-pch=%*}%V}\
%{!save-temps:\ %{!save-temps:%{!no-integrated-cpp:\
cc1obj %(cpp_unique_options) %(cc1_options) %{gen-decls}\ cc1obj %(cpp_unique_options) %(cc1_options) %{gen-decls}\
-o %g.s %{!o*:--output-pch=%i.pch}\ -o %g.s %{!o*:--output-pch=%i.gch}\
%W{o*:--output-pch=%*}%V}}}}", 0}, %W{o*:--output-pch=%*}%V}}}}}", 0},
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