This is the mail archive of the gcc-bugs@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]

[Bug target/39593] faulty value assignment



------- 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


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