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 3040E2F5D9 for ; Wed, 18 Apr 2001 11:18:06 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3IFEhY27570 for axp-list@listman.redhat.com; Wed, 18 Apr 2001 11:14:43 -0400 Received: from smtp6ve.mailsrvcs.net (smtp6vepub.gte.net [206.46.170.27]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f3IFEhC27566 for ; Wed, 18 Apr 2001 11:14:43 -0400 Received: from voicenet.com (adsl-141-155-119-98.nyc.adsl.bellatlantic.net [141.155.119.98]) by smtp6ve.mailsrvcs.net (8.9.1/8.9.1) with ESMTP id PAA12356859; Wed, 18 Apr 2001 15:21:58 GMT Message-ID: <3ADDCA70.ACA7A70C@voicenet.com> Date: Wed, 18 Apr 2001 13:10:08 -0400 From: Uncle George X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17-4 alpha) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com, gcc-bugs@gcc.gnu.org Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha References: <3ADDAF37.18D256A1@voicenet.com> <200104180432.XAA03440@zakon.math.purdue.edu> <32631.987602624@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 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. It is particularly onerous if the failure is not reported in any fashion. It is never perfectly OK to produce bad code. AND i dont care what standard one uses to justify this 'OK'ness. /gat 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. BTW#2 all that stuff about meaning & intention just doesnt work for me. It just appears to be another form of vague subtrafuge. David Woodhouse wrote: > gatgul@voicenet.com said: > > Any compiler that does not produce the correct code has a bug - baring > > any error messages. > > How do you define 'correct'? > > The compiler produced 'correct' code according to the ISO C standard. It > has no way of knowing what's 'correct' if you define that as meaning the > _intention_ of the programmer, even when they write incorrect source code. > > The code posted was broken - or at least the assumption about the results > was incorrect. The compiler's behaviour was perfectly OK. > > If you have code to enable a 'Do what I meant, not what I wrote' feature in > gcc, I'm sure we'd all be glad to see it - I know I've needed it before now :) > > Gcc does have some warnings of the 'You wrote this; are you sure you didn't > mean something else' variety. Perhaps adding a warning for this situation > would be possible - perhaps not. But that wouldn't be a bug report, that > would be a feature request. And I believe gcc-3.0 is in feature-freeze > already. > > -- > dwmw2 > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list