-
- Downloads
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
Showing
- gcc/ChangeLog 25 additions, 9 deletionsgcc/ChangeLog
- gcc/c-decl.c 37 additions, 6 deletionsgcc/c-decl.c
- gcc/c-lang.c 2 additions, 0 deletionsgcc/c-lang.c
- gcc/c-tree.h 4 additions, 28 deletionsgcc/c-tree.h
- gcc/objc/objc-lang.c 2 additions, 0 deletionsgcc/objc/objc-lang.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/noncompile/undeclared-2.c 3 additions, 0 deletionsgcc/testsuite/gcc.dg/noncompile/undeclared-2.c
Loading
Please register or sign in to comment