This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug in g77 with optimization
- From: Pal Karoly Ferenc <kfpal at hal dot atomki dot hu>
- To: Tim Prince <tprince at computer dot org>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Oct 2002 10:13:44 +0200 (CEST)
- Subject: Re: bug in g77 with optimization
Dear Tim,
Then it may not appear in the latest version. I am sorry I forgot to note
what platform and what version I used.
I tried Intel Pentium PI, PII, PIV machines, under Linux Mandrake and
Redhat operational systems. If the manual page is compatible with
the version I have, and I suppose it is, then I have g77 (v0.5.24),
and gcc (gcc-2.95), older than yours. I had the same trouble with a probably
even older version, but I can not tell what version it was.
So I should install the latest version. Thank you very much for your
prompt reply and for your time. Best wishes Karoly Pal
On 01-Oct-02 Tim Prince wrote:
> Since I happen to be running Windows 2000 at the moment, with gcc-3.3 version
> 20020923 installed, I use that, and g77 does what you
> say it should do.
> ----- Original Message -----
> From: "Pal Karoly Ferenc" <kfpal@hal.atomki.hu>
> To: <gcc-bugs@gcc.gnu.org>
> Sent: Monday, September 30, 2002 8:06 AM
> Subject: bug in g77 with optimization
>
>
>> 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
>
>
----------------------------------
E-Mail: Pal Karoly Ferenc <kfpal@hal.atomki.hu>
Date: 01-Oct-02
Time: 10:02:49
This message was sent by XFMail
----------------------------------