issues with doubles and -fno-schedule-insns2
Nathan Sidwell
nathan@codesourcery.com
Fri Nov 26 15:48:00 GMT 2004
Matthew J Fletcher wrote:
> Hi
>
> i have a C code snipit that causes problems with gcc 3.3.4 and 3.4.1, i have
> not tried the v4 snapshots, in all cases are am hosted and targeting on i386.
>
> am i doing something wrong ?
yes. You are breaking the type based aliasing rules. Your second example
'happens' to work, but don't rely on it doing so for later releases
or other slightly different uses.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc
mailing list