From: Pawel Salek <pawsa@theochem.kth.se>
To: axp-list@redhat.com
Subject: Re: gcc 2.96 optimization bug on RedHat7.0/alpha
Date: Wed, 18 Apr 2001 15:40:16 +0200 [thread overview]
Message-ID: <20010418154016.A3496@beta.theochem.kth.se> (raw)
In-Reply-To: <3ADDAF37.18D256A1@voicenet.com>; from gatgul@voicenet.com on Wed, Apr 18, 2001 at 17:13:59 +0200
On 2001-04-18 17:13 Uncle George wrote:
> Any compiler that does not produce the correct code has a bug - baring
> any error messages.
>
> I suppose one has to deceide if an error message should be produced
> OR proper code should be produced.
So, proper code has been generated because ISO C allows that. Full stop.
I cannot imagine what error message should be produced (hm, ... "I am
producing the code following ISO C standard. You use ambigous type casts
and the result may be different from your expectations"). This gives
rise to a question what is "ambigous type cast" and what algorithm
should the compiler use to recognize that it is about to violate your
assumptions.
/Pawel
> >
> > In ISO C, the compiler can assume that the address of a real is not
> > the same as the address of an int, and gcc does so unless you give
> > the -fno-strict-aliasing flag:
--
Pawel Salek (pawsa@theochem.kth.se) http://www.theochem.kth.se/~pawsa/
Theoretical Chemistry Division, KTH voice: +46 8 790-8202
next prev parent reply other threads:[~2001-04-18 13:40 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 [this message]
2001-04-18 15:53 ` Uncle George
2001-04-18 14:03 ` David Woodhouse
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