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 B40E330946 for ; Wed, 18 Apr 2001 12:25:21 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3IGLxA05355 for axp-list@listman.redhat.com; Wed, 18 Apr 2001 12:21:59 -0400 Received: from norge.is.sal.ksu.edu (norge.is.sal.ksu.edu [129.130.178.236]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f3IGLwC05350 for ; Wed, 18 Apr 2001 12:21:59 -0400 Received: by norge.is.sal.ksu.edu with Internet Mail Service (5.0.1460.8) id ; Wed, 18 Apr 2001 11:22:42 -0500 Message-ID: <4DAF89CD261ED011A47B0000C0F973BF016FB619@norge.is.sal.ksu.edu> From: "Hoover, Tony" To: "'axp-list@redhat.com'" Subject: RE: gcc 2.96 optimization bug on RedHat7.0/alpha Date: Wed, 18 Apr 2001 11:22:40 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: text/plain 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: Granted, however a compile time warning that your source will generate "_undefined_ behavior" should not be out of the question. --------------------------------------------------------------------------- Tony Hoover, Network Administrator KSU - Salina, College of Technology mailto:hoover@sal.ksu.edu "Don't Blend in..." ---------------------------------------------------------------------------- > ---------- > From: David Woodhouse[SMTP:dwmw2@infradead.org] > Reply To: axp-list@redhat.com > Sent: Wednesday, April 18, 2001 11:17 AM > To: axp-list@redhat.com > Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha > > > gatgul@voicenet.com said: > > BTW your opinion about the code posted is broken, is also ur opinion. > > It is perfectly correct IMHO . I guess it just does not live up to > > some one else's arbitrary standard. > > The 'arbitrary standard' to which you refer is known as ISO C99. > > If you desire a compiler which lives up to other standards, that's fine - > just don't report bugs against gcc. Do you see people reporting gcc to be > buggy because it doesn't compile FORTRAN code to produce the results you > expect? > > > > I'm sorry that u believe this but i believe that the results from > > -O0 == -O1 == -O2 == -O3 == -O4 > > should all be the same. If any one of them failes to be equal, then > > the compiler failed to produce the correct code to derive the correct > > results. > > That is an interesting opinion. The rest of the world, however, accepts > the > fact that according to the specifications of the C language, certain code > has _undefined_ behaviour. If the compiler encounters such code, it's > perfectly entitled to send insulting mail to your boss and sleep with your > wife. It's certainly not required to do the same thing each time. > > -- > dwmw2 > > > > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list >