[Bug target/39593] faulty value assignment
szir at sch dot bme dot hu
gcc-bugzilla@gcc.gnu.org
Tue Mar 31 00:20:00 GMT 2009
------- Comment #6 from szir at sch dot bme dot hu 2009-03-31 00:20 -------
(In reply to comment #3)
> BYTE b[4];
> *((DWORD *)b) = x;
> this is violating aliasing rules. Does adding -fno-strict-aliasing allow this
> to work?
If you look at the code you can see it is never called, the only code that is
actually called at all is the InitTF() assignments, the rest is just junk, that
confuses the compiler.
And -fno-strict-aliasing does not help, by the way the junk code works just
fine, that is not the problem. Thanks anyway, I added -fno-strict-aliasing to
makefile.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39593
More information about the Gcc-bugs
mailing list