optimize -funroll-loops bug

Kimball Thurston kimball@sgrail.com
Mon Mar 4 10:09:00 GMT 2002


Hey,

  If I compile the attached program with -O -funroll-loops, it
produces invalid results. I wandered through gnats for a while, and
didn't see a PR like it, or at least with the keywords I was looking
for. It seems to happen in 2.95.2 and 2.95.4 of g++, but doesn't seem
to happen in 3.0... Can someone let me know if this is a known problem,
or if I should do any more about tracking it down? If people feel
"it's a legacy bug, so forget it", please let me know - I'll have to
start trying to convert our environment over to 3.0...

fwiw, compiled as:

g++ -o foo -O -funroll-loops test.cpp

thanks,
Kimball

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: application/octet-stream
Size: 2279 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20020304/fec08424/attachment.obj>


More information about the Gcc mailing list