-
- Downloads
re PR middle-end/34668 (ICE in find_compatible_field with -combine)
2008-01-16 Jakub Jelinek <jakub@redhat.com>
Richard Guenther <rguenther@suse.de>
PR c/34668
* gimplify.c (fold_indirect_ref_rhs): Rename to ...
(gimple_fold_indirect_ref_rhs): ... this.
(gimple_fold_indirect_ref): New function with foldings
that preserve lvalueness.
(gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
* tree-flow.h (gimple_fold_indirect_ref): Declare.
* tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
to fold an INDIRECT_REF, fall back to the old use of
fold_indirect_ref_1.
* gcc.dg/pr34668-1.c: New test.
* gcc.dg/pr34668-2.c: Likewise.
Co-Authored-By:
Richard Guenther <rguenther@suse.de>
From-SVN: r131572
Showing
- gcc/ChangeLog 14 additions, 0 deletionsgcc/ChangeLog
- gcc/gimplify.c 24 additions, 11 deletionsgcc/gimplify.c
- gcc/testsuite/ChangeLog 7 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/pr34668-1.c 19 additions, 0 deletionsgcc/testsuite/gcc.dg/pr34668-1.c
- gcc/testsuite/gcc.dg/pr34668-2.c 5 additions, 0 deletionsgcc/testsuite/gcc.dg/pr34668-2.c
- gcc/tree-flow.h 1 addition, 0 deletionsgcc/tree-flow.h
- gcc/tree-inline.c 9 additions, 2 deletionsgcc/tree-inline.c
Loading
Please register or sign in to comment