This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23853] [4.1 regression] ICE: in tree_low_cst, at tree.c:4270
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2005 14:06:08 -0000
- Subject: [Bug tree-optimization/23853] [4.1 regression] ICE: in tree_low_cst, at tree.c:4270
- References: <20050913085028.23853.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-13 14:06 -------
Patch that could be obvious (but I'm always hesitant to apply such right away...)
Index: tree-vect-analyze.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-vect-analyze.c,v
retrieving revision 2.36
diff -c -3 -p -r2.36 tree-vect-analyze.c
*** tree-vect-analyze.c 6 Sep 2005 10:58:49 -0000 2.36
--- tree-vect-analyze.c 13 Sep 2005 14:02:49 -0000
*************** vect_compute_data_ref_alignment (struct
*** 773,779 ****
/* Modulo alignment. */
misalign = size_binop (TRUNC_MOD_EXPR, misalign, alignment);
! if (tree_int_cst_sgn (misalign) < 0)
{
/* Negative misalignment value. */
if (vect_print_dump_info (REPORT_DETAILS))
--- 773,779 ----
/* Modulo alignment. */
misalign = size_binop (TRUNC_MOD_EXPR, misalign, alignment);
! if (!host_integerp (misalign, 1))
{
/* Negative misalignment value. */
if (vect_print_dump_info (REPORT_DETAILS))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23853