re PR tree-optimization/53410 (ICE in build_int_cst_wide, at tree.c:1219)
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 May 2012 14:25:03 +0000 (16:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 May 2012 14:25:03 +0000 (16:25 +0200)
commit27edb974ee6ab6c0be6118835e6a7b395899531a
treebaea0e384baa178c2869b3a68a1f5c35d3ca5a75
parentfb639843e4bb0b43d08de4baca618fe98ee04e91
re PR tree-optimization/53410 (ICE in build_int_cst_wide, at tree.c:1219)

PR tree-optimization/53410
* fold-const.c (fold_binary_loc): Use build_zero_cst (type)
instead of build_int_cst (type, 0) where vector types might be
involved. Instead of build_int_cst (type, 1) convert the original
integer_onep argument to the desired type.

* gcc.c-torture/compile/pr53410-1.c: New test.
* gcc.c-torture/compile/pr53410-2.c: New test.

From-SVN: r187715
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr53410-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr53410-2.c [new file with mode: 0644]