This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimize -funroll-loops bug


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

Attachment: test.cpp
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]