GCC 4.0.1-beta20050507 miscompiles openssl-0.9.7g with -ftree-loop-linear
Daniel Berlin
dberlin@dberlin.org
Thu May 12 17:20:00 GMT 2005
On Thu, 2005-05-12 at 18:45 +0200, Sebastian Pop wrote:
> Daniel Berlin wrote:
> > On Thu, 2005-05-12 at 10:01 -0600, Zan Lynx wrote:
> > > I'm not subscribed to the list (please CC replies to me) and this isn't
> > > a real bug report, just a sort of quick check to see if its a known
> > > problem.
> > >
> > > When I compiled openssl-0.9.7g using -O3 and -ftree-loop-linear as
> > > CFLAGS, openssl failed its self-tests for the MD2 code. Interestingly,
> > > it succeeded at the tests for other algorithms.
> > >
> >
> > -ftree-loop-linear uses the dependence analyzer which has a number of
> > issues where it will claim things are legal that are not.
> >
> > You shouldn't expect -ftree-loop-linear to work on random code that you
> > don't know anything about :)
> > At least, not yet.
> > Hopefully these should be fixed in 4.1
> >
> >
>
> The loops that get interchanged are in the following function:
> after transformation in loop linear.
>
Does -fno-tree-ch fix it? (i'm just curious)
More information about the Gcc
mailing list