This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/33088] [4.1/4.2/4.3 Regression] spurious exceptions with -ffloat-store
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2007 09:27:32 -0000
- Subject: [Bug middle-end/33088] [4.1/4.2/4.3 Regression] spurious exceptions with -ffloat-store
- References: <bug-33088-230@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-08-17 09:27 -------
For one, I don't think " __real__ X = R; __imag__ X = C; " is really nice
looking. Now if the person did:
*(double*) &X = R; ((double*) & X)[1] = C;
it might be a different story but then again X is still defined piece wise so
you will still get NaN.
I really don't think this is a bug as we have an uninitialized variables here
in the same way doing:
short a;
a = b&0xff|a;
a = (b<<8)&0xFF00|a;
Would be defined code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33088