diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-03-07 23:10:42 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-03-07 23:10:42 +0000 |
commit | 6e5c4eaf2d14988795ca342a36c8ceb97d06149f (patch) | |
tree | e0f19033a092c5359834a3029af7cb4e54689dac /gcc/c-pch.c | |
parent | 9a97e40ae1202ee33bd14c477652ef60fdd606ad (diff) | |
download | gcc-6e5c4eaf2d14988795ca342a36c8ceb97d06149f.zip gcc-6e5c4eaf2d14988795ca342a36c8ceb97d06149f.tar.gz gcc-6e5c4eaf2d14988795ca342a36c8ceb97d06149f.tar.bz2 |
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
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 7e67248..d8c6b9e 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; |