On 11/11/2010 1:22 AM, Andrew Haley wrote:
On 11/10/2010 11:47 PM, Patrick Horgan wrote:
On 11/10/2010 01:16 AM, Andrew Haley wrote:
...elision by patrick...
The aliasing rules are nothing to do with C99: they have always
been in Standard C.
Thanks. I didn't know that (or if I did I forgot somewhere). I just
really noticed people talking about strict aliasing lately (the last 3
or 4 years I've seen it a lot). Do you think it's because the compilers
are getting better at complaining about type-punning that's outside of
the aliasing rules?
I suspect so.
gcc has put in more analysis to take advantage of strict-aliasing as
well as diagnose violations. So, gcc often beats the default
performance of compilers such as icc which default in effect to
no-strict-aliasing.
--
Tim Prince