From 18d5f9820c77f9d84ec379117bef8ed18bcc3ba8 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sun, 28 Mar 2004 17:45:57 +0000 Subject: re PR c/14734 (Error recovery problem with undeclared array bounds) * 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. From-SVN: r80042 --- gcc/c-lang.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/c-lang.c') diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 391e8bd..93dc405 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -41,6 +41,8 @@ enum c_language_kind c_language = clk_c; #undef LANG_HOOKS_NAME #define LANG_HOOKS_NAME "GNU C" +#undef LANG_HOOKS_IDENTIFIER_SIZE +#define LANG_HOOKS_IDENTIFIER_SIZE C_SIZEOF_STRUCT_LANG_IDENTIFIER #undef LANG_HOOKS_INIT #define LANG_HOOKS_INIT c_objc_common_init #undef LANG_HOOKS_FINISH -- cgit v1.1