bug in loop optimization with -Os (-O2)

Joern Rennecke amylaar@cygnus.co.uk
Mon Mar 1 06:38:00 GMT 1999


> I have founded gcc/egcs bug while compile and run test file
> testsuit/gcc.c-torture/execute/loop-2c.c:

The bug has been in biv elimination from the time this optimization
was implemented in gcc.  All the loop2* tests test various mainfestations
of the bug, and the loop3* tests a related bug.  If the bugs are triggered
or not depends on pretty much all the code generation code and previous
optimization passes, in a pseudo-random manner.


More information about the Gcc mailing list