Type-punning

Andrew Pinski pinskia@gmail.com
Tue Jun 26 20:31:00 GMT 2007


On 6/26/07, Herman Geza <hg211@hszk.bme.hu> wrote:
> Maybe GCC shouldn't optimize around invalid type-punnings?

That is what -fno-strict-aliasing is for.
Also GCC has done this since 3.0.0 (and also 2.95 and 2.95.1 and then
in 2.95.2 it was changed back while most of the free source world
fixes their code).

Thanks,
Andrew Pinski



More information about the Gcc mailing list