GCC 4.0.1-beta20050507 miscompiles openssl-0.9.7g with -ftree-loop-linear

Zan Lynx zlynx@acm.org
Thu May 12 17:02:00 GMT 2005


On Thu, 2005-05-12 at 12:30 -0400, 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

Well, you know, *someone* has to try it on random code. :-)

Thanks for telling me.
-- 
Zan Lynx <zlynx@acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050512/9e23947d/attachment.sig>


More information about the Gcc mailing list