[Bug c/53410] [4.7/4.8 Regression] ICE in build_int_cst_wide, at tree.c:1219

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 21 21:02:00 GMT 2012


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



More information about the Gcc-bugs mailing list