bug in g77 with optimization

Pal Karoly Ferenc kfpal@hal.atomki.hu
Mon Sep 30 08:46:00 GMT 2002


Dear Sir/Madame,
I am sending a code as an attachment that is misinterpreted by
g77 with option -O2 or -O3. Other compilers I tried give correct
result. The g77 gives also correct result without optimization,
or if one of the variables is monitored (the value is written
out at some stage). The code itself is short, almost trivial.
It is the 'backbone' of a longer code that actually intended
to do something useful (e.g. the 'generates new value' [see
comment in code] was something much more involved than adding
one to the previous value). I tried to siplify the code as far
I could such that it still shows the symptom.
Best wishes Karoly Pal
----------------------------------
E-Mail: Pal Karoly Ferenc <kfpal@hal.atomki.hu>
Date: 30-Sep-02
Time: 16:51:35

This message was sent by XFMail
----------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hibashort.f
Type: application/octet-stream
Size: 1702 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020930/0dc3c390/attachment.obj>


More information about the Gcc-bugs mailing list