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 E0D462F687 for ; Wed, 18 Apr 2001 10:04:03 -0400 (EDT) Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.9.3/8.9.3) id KAA01318 for axp-list@listman.redhat.com; Wed, 18 Apr 2001 10:03:51 -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 KAA01310 for ; Wed, 18 Apr 2001 10:03:48 -0400 Received: from dwmw2 (helo=redhat.com) by passion.cambridge.redhat.com with local-esmtp (Exim 3.16 #2) id 14psYa-0008UK-00 for axp-list@redhat.com; Wed, 18 Apr 2001 15:03:44 +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: <3ADDAF37.18D256A1@voicenet.com> References: <3ADDAF37.18D256A1@voicenet.com> <200104180432.XAA03440@zakon.math.purdue.edu> 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 15:03:44 +0100 Message-ID: <32631.987602624@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: > 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