diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-06-06 21:54:54 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-06-06 21:54:54 +0000 |
commit | 5b2abab835bee5248adb9d6c65f41517840f595a (patch) | |
tree | 30c9ccd88478f3817c3e70015622f50c36432661 /gcc/cp | |
parent | f4381d6204dfb3dcb2e70b88e4fe83542a741004 (diff) | |
download | gcc-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/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 48b861f..d549fc6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-06-06 Mark Mitchell <mark@codesourcery.com> + + * decl2.c (c_language): Define. + 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com> * lex.c (lang_init_options): Tweak. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index f23512c..6fc7bb5 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -501,6 +501,10 @@ int flag_enforce_eh_specs = 1; void (*back_end_hook) PARAMS ((tree)); +/* The variant of the C language being processed. */ + +c_language_kind c_language = clk_cplusplus; + /* Table of language-dependent -f options. STRING is the option name. VARIABLE is the address of the variable. ON_VALUE is the value to store in VARIABLE |