summaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-06 21:54:54 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-06 21:54:54 +0000
commit6d2516c43876d835bac3c0ee4dfe87ceb4d63629 (patch)
tree30c9ccd88478f3817c3e70015622f50c36432661 /gcc/c-tree.h
parent1d883871a0055cf9f7cb427e3186de85af29ac9c (diff)
downloadgcc-6d2516c43876d835bac3c0ee4dfe87ceb4d63629.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34439 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 68e6f47a656..ae27e61d6d9 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -446,7 +446,8 @@ extern int system_header_p;
/* Nonzero enables objc features. */
-extern int doing_objc_thang;
+#define doing_objc_thang \
+ (c_language == clk_objective_c)
/* In c-decl.c */
extern void finish_incomplete_decl PARAMS ((tree));