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: "richard dot guenther 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 19:53:11 -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 #29 from richard dot guenther at gmail dot com 2007-06-24 19:53 -------
Subject: Re: [4.3 Regression] Segmentation fault in
build_classic_dist_vector_1() at tree-data-ref.c:2700
On 6/24/07, Sebastian Pop <sebpop@gmail.com> wrote:
> On 6/24/07, Sebastian Pop <sebpop@gmail.com> wrote:
> > On 6/24/07, Richard Guenther <richard.guenther@gmail.com> wrote:
> > > An alternative is to use
> > >
> > > if (TREE_CODE (arg1) == BIT_NOT_EXPR
> > > && !TYPE_OVERFLOW_TRAPS (type))
> > > {
> > > tem = TREE_OPERAND (arg1, 0);
> > > STRIP_NOPS (tem);
> > > if (operand_equal_p (arg0, tem, 0))
> > > ...
> > >
> > > which would be even better and shouldn't cause other missed
> > > optimizations.
> > >
> >
> > Okay, attached is the patch that implements this.
> > I'm bootstrapping and testing it on i686-linux.
> >
>
> Passed bootstrap with --enable-checking=yes,fold,rtl
> and no new regressions in the testsuite. Okay for trunk?
Yes, this is ok.
Thanks,
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32461