From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id AFF4A2F0DA for ; Tue, 17 Apr 2001 20:05:16 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3I01rq19941 for axp-list@listman.redhat.com; Tue, 17 Apr 2001 20:01:53 -0400 Received: from spawn.hockeyfiend.com (mail@dsl092-073-086.bos1.dsl.speakeasy.net [66.92.73.86]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f3I01qC19936 for ; Tue, 17 Apr 2001 20:01:52 -0400 Received: from localhost ([127.0.0.1] ident=chris) by spawn.hockeyfiend.com with esmtp (Exim 3.22 #1 (Debian)) id 14pfSn-00016N-00; Tue, 17 Apr 2001 20:04:53 -0400 Date: Tue, 17 Apr 2001 20:04:53 -0400 (EDT) From: "Christopher C. Chimelis" X-Sender: chris@spawn.hockeyfiend.com To: Uncle George Cc: gcc-bugs@gcc.gnu.org, axp-list@redhat.com Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha In-Reply-To: <3ADCF1E0.66BCA4AB@voicenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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