summaryrefslogtreecommitdiff
path: root/gcc/c-pch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-pch.c')
-rw-r--r--gcc/c-pch.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/c-pch.c b/gcc/c-pch.c
index 2dccecd506f..2cd9b9d1a2d 100644
--- a/gcc/c-pch.c
+++ b/gcc/c-pch.c
@@ -60,14 +60,11 @@ get_ident(void)
{
static char result[IDENT_LENGTH];
static const char template[IDENT_LENGTH] = "gpch.011";
+ static const char c_language_chars[] = "Co+O";
memcpy (result, template, IDENT_LENGTH);
- if (c_language == clk_c)
- result[4] = flag_objc ? 'o' : 'C';
- else if (c_language == clk_cplusplus)
- result[4] = flag_objc ? 'O' : '+';
- else
- abort ();
+ result[4] = c_language_chars[c_language];
+
return result;
}