This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53410] [4.7/4.8 Regression] ICE in build_int_cst_wide, at tree.c:1219
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 May 2012 21:00:50 +0000
- Subject: [Bug c/53410] [4.7/4.8 Regression] ICE in build_int_cst_wide, at tree.c:1219
- Auto-submitted: auto-generated
- References: <bug-53410-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53410
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-21 21:00:50 UTC ---
Author: jakub
Date: Mon May 21 21:00:43 2012
New Revision: 187738
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187738
Log:
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.
* gcc.c-torture/compile/pr53410-1.c: New test.
* gcc.c-torture/compile/pr53410-2.c: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr53410-1.c
branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr53410-2.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/fold-const.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog