-
- Downloads
re PR c/22013 (ICE in gimple_add_tmp_var, at gimplify.c:535)
PR c/22013 PR c/22098 * langhooks.h (struct lang_hooks): Add expr_to_decl. * langhooks.c (lhd_expr_to_decl): New. * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL): New. (LANG_HOOKS_INITIALIZER): Update. * tree.c (recompute_tree_invarant_for_addr_expr): Call expr_to_decl langhook. * c-tree.h (c_expr_to_decl): Declare. * c-typeck.c (c_expr_to_decl): New. (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR specially. * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define. testsuite: * gcc.c-torture/compile/pr22013-1.c, gcc.c-torture/execute/pr22098-1.c, gcc.c-torture/execute/pr22098-2.c, gcc.c-torture/execute/pr22098-3.c: New tests. From-SVN: r101630
Showing
- gcc/ChangeLog 17 additions, 0 deletionsgcc/ChangeLog
- gcc/c-objc-common.h 2 additions, 0 deletionsgcc/c-objc-common.h
- gcc/c-tree.h 1 addition, 0 deletionsgcc/c-tree.h
- gcc/c-typeck.c 21 additions, 3 deletionsgcc/c-typeck.c
- gcc/langhooks-def.h 3 additions, 0 deletionsgcc/langhooks-def.h
- gcc/langhooks.c 7 additions, 0 deletionsgcc/langhooks.c
- gcc/langhooks.h 6 additions, 0 deletionsgcc/langhooks.h
- gcc/testsuite/ChangeLog 9 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.c-torture/compile/pr22013-1.c 11 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/pr22013-1.c
- gcc/testsuite/gcc.c-torture/execute/pr22098-1.c 14 additions, 0 deletionsgcc/testsuite/gcc.c-torture/execute/pr22098-1.c
- gcc/testsuite/gcc.c-torture/execute/pr22098-2.c 14 additions, 0 deletionsgcc/testsuite/gcc.c-torture/execute/pr22098-2.c
- gcc/testsuite/gcc.c-torture/execute/pr22098-3.c 16 additions, 0 deletionsgcc/testsuite/gcc.c-torture/execute/pr22098-3.c
- gcc/tree.c 2 additions, 0 deletionsgcc/tree.c
Loading
Please register or sign in to comment