This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23853] [4.1 regression] ICE: in tree_low_cst, at tree.c:4270


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]