diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-10-28 11:34:51 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-10-28 11:34:51 +0100 |
commit | 5229689d71b35d2e94c1c2f80147927bf5470c07 (patch) | |
tree | 8348ceeaf745bd11ba0b12ed05934a14f7afdf0f /gcc/fold-const.c | |
parent | 9d54866d5491de12e6ccdc031516595d3c2d9077 (diff) | |
download | gcc-5229689d71b35d2e94c1c2f80147927bf5470c07.zip gcc-5229689d71b35d2e94c1c2f80147927bf5470c07.tar.gz gcc-5229689d71b35d2e94c1c2f80147927bf5470c07.tar.bz2 |
re PR middle-end/37931 (ice: verify_gimple failed)
PR middle-end/37931
* fold-const.c (distribute_bit_expr): Convert common, left and
right arguments to type.
* gcc.c-torture/execute/pr37931.c: New test.
From-SVN: r141406
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 1eac946..7a215d2 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -3806,6 +3806,9 @@ distribute_bit_expr (enum tree_code code, tree type, tree arg0, tree arg1) else return 0; + common = fold_convert (type, common); + left = fold_convert (type, left); + right = fold_convert (type, right); return fold_build2 (TREE_CODE (arg0), type, common, fold_build2 (code, type, left, right)); } |