diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-04-23 12:18:03 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-04-23 12:18:03 +0200 |
commit | 16997bc01128f46cee9450237cd5e3e8fb3b12ad (patch) | |
tree | 0bd4265ebfbee024be2b7dafe59a6165336d35a4 /gcc/fold-const.c | |
parent | ff9419990b8556891542d01696a2ab5fb6e55379 (diff) | |
download | gcc-16997bc01128f46cee9450237cd5e3e8fb3b12ad.zip gcc-16997bc01128f46cee9450237cd5e3e8fb3b12ad.tar.gz gcc-16997bc01128f46cee9450237cd5e3e8fb3b12ad.tar.bz2 |
re PR c/48685 (ICE in gimplify_expr, at gimplify.c:7034)
PR c/48685
* fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
to VOID_TYPE even around MODIFY_EXPR.
* gcc.dg/pr48685.c: New test.
From-SVN: r172895
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index c4bf088..8f90f6f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2029,8 +2029,6 @@ fold_convert_loc (location_t loc, tree type, tree arg) case VOID_TYPE: tem = fold_ignored_result (arg); - if (TREE_CODE (tem) == MODIFY_EXPR) - goto fold_convert_exit; return fold_build1_loc (loc, NOP_EXPR, type, tem); default: |