This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: issues with doubles and -fno-schedule-insns2
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: mfletcher at serck-controls dot co dot uk
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 26 Nov 2004 14:27:23 +0000
- Subject: Re: issues with doubles and -fno-schedule-insns2
- Organization: Codesourcery LLC
- References: <200411261406.45887.mfletcher@serck-controls.co.uk>
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