This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32461] [4.3 Regression] Segmentation fault in build_classic_dist_vector_1() at tree-data-ref.c:2700
- From: "spop at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2007 11:05:42 -0000
- Subject: [Bug tree-optimization/32461] [4.3 Regression] Segmentation fault in build_classic_dist_vector_1() at tree-data-ref.c:2700
- References: <bug-32461-13856@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from spop at gcc dot gnu dot org 2007-06-23 11:05 -------
Subject: Re: [4.3 Regression] Segmentation fault in
build_classic_dist_vector_1() at tree-data-ref.c:2700
Okay.
The fail is because one of the folds is not a constant as expected:
MINUS_EXPR
(unsigned int) bndstart_108(D)
(unsigned int) (bndstart_108(D) + 1)
=
0xffffffffffffffff
MINUS_EXPR
(unsigned int) i_434 + 1
(unsigned int) i_434
=
1
but when reversed,
MINUS_EXPR
(unsigned int) i_434
(unsigned int) i_434 + 1
=
~(unsigned int) i_434 + (unsigned int) i_434
the fold result is not an integer_cst, and that lead to the fail.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32461