This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/39593] faulty value assignment
- From: "szir at sch dot bme dot hu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2009 00:20:42 -0000
- Subject: [Bug target/39593] faulty value assignment
- References: <bug-39593-10417@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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