From: David Woodhouse <dwmw2@infradead.org>
To: axp-list@redhat.com
Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha
Date: Wed, 18 Apr 2001 15:03:44 +0100 [thread overview]
Message-ID: <32631.987602624@redhat.com> (raw)
In-Reply-To: <3ADDAF37.18D256A1@voicenet.com>
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
next prev parent reply other threads:[~2001-04-18 14:04 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-18 1:46 gcc 2.96 optimization bug on RedHat7.0/alpha Uncle George
2001-04-18 0:04 ` Christopher C. Chimelis
2001-04-18 3:41 ` Matt Wilson
2001-04-18 4:32 ` Brad Lucier
2001-04-18 15:13 ` Uncle George
2001-04-18 13:40 ` Pawel Salek
2001-04-18 15:53 ` Uncle George
2001-04-18 14:03 ` David Woodhouse [this message]
2001-04-18 17:10 ` Uncle George
2001-04-18 15:40 ` Pawel Salek
2001-04-18 16:17 ` David Woodhouse
2001-04-18 16:46 ` Andrew A. Gill
2001-04-18 17:04 ` T. Daniel Crawford
2001-04-18 18:15 ` Nelson Brito
2001-04-18 18:38 ` jeff.sturm
2001-04-18 14:55 ` Michal Jaegermann
2001-04-18 22:18 ` Uncle George
2001-04-18 20:50 ` Chris Eleveld (Sector 7 Group)
2001-04-18 21:33 ` Michal Jaegermann
2001-04-18 23:09 ` P.TURLAIS
2001-04-19 0:28 ` Uncle George
2001-04-18 22:03 ` jeff.sturm
-- strict thread matches above, loose matches on Subject: below --
2001-04-18 16:22 Hoover, Tony
2001-04-18 16:55 ` David Woodhouse
2001-04-18 17:07 ` alvin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox