This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: issues with doubles and -fno-schedule-insns2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]