Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Christopher C. Chimelis" <chris@debian.org>
To: Uncle George <gatgul@voicenet.com>
Cc: gcc-bugs@gcc.gnu.org, axp-list@redhat.com
Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha
Date: Tue, 17 Apr 2001 20:04:53 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0104172001060.4165-100000@spawn.hockeyfiend.com> (raw)
In-Reply-To: <3ADCF1E0.66BCA4AB@voicenet.com>

On Tue, 17 Apr 2001, Uncle George wrote:

> with -O2 i get the wrong answer
> 
>                 [gat@LX gat]$ gcc -g -O2 a.c -o a
>                 [gat@LX gat]$ ./a
>                 FlooR: x = 22.16, i0=1, i1=536871996
> 
> 
> with -O i get a passable answer
> 
>                 [gat@LX gat]$ gcc -g -O a.c -o a
>                 [gat@LX gat]$ ./a
>                 FlooR: x = 22.16, i0=1077291253, i1=-1030792151
> 
> 
> BTW what exactly is the page one uses to submit/fill in the bug report
> for gcc et al ?

This has not been fixed in upstream gcc CVS, FYI.  Using your source
and the gcc 3.0 snapshot from :

chris@spawn:
~/test > gcc-3.0 -g -O2 -o uncleg uncleg.c
chris@spawn:
~/test > ./uncleg 
FlooR: x = 22.16, i0=1, i1=536872108
chris@spawn:
~/test > gcc-3.0 -g -O -o uncleg uncleg.c
chris@spawn:
~/test > ./uncleg 
FlooR: x = 22.16, i0=1077291253, i1=-1030792151

My local copy of a patched 2.95.4pre returns the correct results, though,
so something broke between 2.95.x and 3.0pre.

Figured that you'd want to know :-)

C




  reply	other threads:[~2001-04-18  0:05 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-18  1:46 gcc 2.96 optimization bug on RedHat7.0/alpha Uncle George
2001-04-18  0:04 ` Christopher C. Chimelis [this message]
2001-04-18  3:41 ` Matt Wilson
2001-04-18  4:32 ` Brad Lucier
2001-04-18 15:13   ` Uncle George
2001-04-18 13:40     ` Pawel Salek
2001-04-18 15:53       ` Uncle George
2001-04-18 14:03     ` David Woodhouse
2001-04-18 17:10       ` Uncle George
2001-04-18 15:40         ` Pawel Salek
2001-04-18 16:17         ` David Woodhouse
2001-04-18 16:46         ` Andrew A. Gill
2001-04-18 17:04           ` T. Daniel Crawford
2001-04-18 18:15             ` Nelson Brito
2001-04-18 18:38         ` jeff.sturm
2001-04-18 14:55     ` Michal Jaegermann
2001-04-18 22:18       ` Uncle George
2001-04-18 20:50         ` Chris Eleveld (Sector 7 Group)
2001-04-18 21:33         ` Michal Jaegermann
2001-04-18 23:09           ` P.TURLAIS
2001-04-19  0:28           ` Uncle George
2001-04-18 22:03         ` jeff.sturm
  -- strict thread matches above, loose matches on Subject: below --
2001-04-18 16:22 Hoover, Tony
2001-04-18 16:55 ` David Woodhouse
2001-04-18 17:07 ` alvin
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox