summaryrefslogtreecommitdiffstats
path: root/gcc/objc/objc-lang.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-28 17:45:57 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-28 17:45:57 +0000
commit56533c318826e7fb56f505d0b2621ed01f66135e (patch)
treee95abdb07c80f3f34dfb27ad9081ce47469bc52a /gcc/objc/objc-lang.c
parentc36be2669af355c163234290a878b04ce89d2afe (diff)
downloadppe42-gcc-56533c318826e7fb56f505d0b2621ed01f66135e.tar.gz
ppe42-gcc-56533c318826e7fb56f505d0b2621ed01f66135e.zip
* c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
(struct c_binding, struct c_scope): Add chain_next attributes to GTY markers. (struct lang_identifier, struct lang_tree_node): Define here... * c-tree.h: ... not here. No longer need to declare struct c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER. * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE to C_SIZEOF_STRUCT_LANG_IDENTIFIER. PR 14734, 11944 * c-decl.c (get_parm_info): If error_mark_node is encountered in the bindings chain, unbind and discard it; don't abort. * testsuite/gcc.dg/noncompile/undeclared-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc/objc-lang.c')
-rw-r--r--gcc/objc/objc-lang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/objc/objc-lang.c b/gcc/objc/objc-lang.c
index 877867ac39d..2853ded31c8 100644
--- a/gcc/objc/objc-lang.c
+++ b/gcc/objc/objc-lang.c
@@ -35,6 +35,8 @@ enum c_language_kind c_language = clk_objc;
#undef LANG_HOOKS_NAME
#define LANG_HOOKS_NAME "GNU Objective-C"
+#undef LANG_HOOKS_IDENTIFIER_SIZE
+#define LANG_HOOKS_IDENTIFIER_SIZE C_SIZEOF_STRUCT_LANG_IDENTIFIER
#undef LANG_HOOKS_INIT
#define LANG_HOOKS_INIT objc_init
#undef LANG_HOOKS_FINISH
OpenPOWER on IntegriCloud