diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-07 23:10:42 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-07 23:10:42 +0000 |
commit | 66ac76fd66904ba0cd892865fc58d564205f679d (patch) | |
tree | e0f19033a092c5359834a3029af7cb4e54689dac /gcc/c-pch.c | |
parent | 4a794c146e58f10506aa21f59926fc535123fab2 (diff) | |
download | gcc-66ac76fd66904ba0cd892865fc58d564205f679d.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pch.c')
-rw-r--r-- | gcc/c-pch.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/c-pch.c b/gcc/c-pch.c index 7e67248a325..d8c6b9e87ad 100644 --- a/gcc/c-pch.c +++ b/gcc/c-pch.c @@ -52,14 +52,10 @@ get_ident() static const char template[IDENT_LENGTH] = "gpch.010"; memcpy (result, template, IDENT_LENGTH); - if (strcmp (lang_hooks.name, "GNU C") == 0) - result[4] = 'C'; - else if (strcmp (lang_hooks.name, "GNU C++") == 0) - result[4] = '+'; - 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'; + if (c_language == clk_c) + result[4] = flag_objc ? 'o' : 'C'; + else if (c_language == clk_cplusplus) + result[4] = flag_objc ? 'O' : '+'; else abort (); return result; |