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: "sebpop at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2007 12:50:44 -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 #21 from sebpop at gmail dot com 2007-06-24 12:50 -------
Subject: Re: [4.3 Regression] Segmentation fault in
build_classic_dist_vector_1() at tree-data-ref.c:2700
On 6/24/07, Richard Guenther <richard.guenther@gmail.com> wrote:
> If you use TREE_OPERAND (op0, 0), op1 instead it should work. The
> problem seems to be that arg0/arg1 have all NOPs stripped, including
> those changing the sign. So we get to compare a and (unsigned)a,
> which are obviously not the same.
>
Right.
The attached patch solves the problem.
> It looks like most of the users of the arg variants are suspicious in this
> regard...
>
So if I'm correctly understanding, you suppose that there are also
other cases in which fold fails just because it uses arg instead of op?
Thanks,
Sebastian
------- Comment #22 from sebpop at gmail dot com 2007-06-24 12:50 -------
Created an attachment (id=13778)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13778&action=view)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32461