aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-06-06 21:54:54 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-06-06 21:54:54 +0000
commit5b2abab835bee5248adb9d6c65f41517840f595a (patch)
tree30c9ccd88478f3817c3e70015622f50c36432661 /gcc/c-decl.c
parentf4381d6204dfb3dcb2e70b88e4fe83542a741004 (diff)
downloadgcc-5b2abab835bee5248adb9d6c65f41517840f595a.zip
gcc-5b2abab835bee5248adb9d6c65f41517840f595a.tar.gz
gcc-5b2abab835bee5248adb9d6c65f41517840f595a.tar.bz2
c-common.h (c_language_kind): New type.
* c-common.h (c_language_kind): New type. (c_language): New variab.e * c-common.c (lang_get_alias_set): Don't put structures in non-zero alias sets in C++. * c-decl.c (c_language): Define it. * c-lex.c (doing_objc_thang): Remove. * c-tree.h (doing_objc_thang): Make it a macro. * objc/objc-act.c (lang_decode_option): Set c_language, not doing_objc_thang. * decl2.c (c_language): Define. From-SVN: r34439
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 3c57f66..ba1b3c6 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -454,6 +454,10 @@ int warn_float_equal = 0;
int warn_multichar = 1;
+/* The variant of the C language being processed. */
+
+c_language_kind c_language = clk_c;
+
/* Nonzero means `$' can be in an identifier. */
#ifndef DOLLARS_IN_IDENTIFIERS