Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com, gcc-bugs@gcc.gnu.org
Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha
Date: Wed, 18 Apr 2001 13:10:08 -0400	[thread overview]
Message-ID: <3ADDCA70.ACA7A70C@voicenet.com> (raw)
In-Reply-To: 32631.987602624@redhat.com

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




  reply	other threads:[~2001-04-18 15:18 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
2001-04-18 17:10       ` Uncle George [this message]
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