From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [207.175.42.154]) by listman.redhat.com (Postfix) with ESMTP id D383E308F2 for ; Wed, 18 Apr 2001 12:17:36 -0400 (EDT) Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.9.3/8.9.3) id MAA30057 for axp-list@listman.redhat.com; Wed, 18 Apr 2001 12:17:24 -0400 Received: from passion.cambridge.redhat.com (IDENT:root@passion.cambridge.redhat.com [172.16.18.67]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id MAA30043 for ; Wed, 18 Apr 2001 12:17:23 -0400 Received: from dwmw2 (helo=redhat.com) by passion.cambridge.redhat.com with local-esmtp (Exim 3.16 #2) id 14pudu-0004s9-00 for axp-list@redhat.com; Wed, 18 Apr 2001 17:17:22 +0100 X-Mailer: exmh version 2.3 01/15/2001 with nmh-1.0.4 From: David Woodhouse X-Accept-Language: en_GB In-Reply-To: <3ADDCA70.ACA7A70C@voicenet.com> References: <3ADDCA70.ACA7A70C@voicenet.com> <3ADDAF37.18D256A1@voicenet.com> <200104180432.XAA03440@zakon.math.purdue.edu> <32631.987602624@redhat.com> To: axp-list@redhat.com Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Apr 2001 17:17:22 +0100 Message-ID: <18732.987610642@redhat.com> 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: 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