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 c++/38525] sse2(int16) code fails with -O3



------- Comment #9 from leonid at volnitsky dot com  2008-12-16 13:21 -------
(In reply to comment #8)
>>         int16_t* ip  = (int16_t*)&m1;  
> That is violating C/C++ aliasing rules

The code that you quote is not part of the reported bug.  It was quick and
dirty hack.  But that was it.  Adding -fno-strict-aliasing fixed unit tests.  

But then there is a question.  Full code attached to the bug does not gave any
warning about aliasing violation with  -Wall and -O3.  Is no-warning a bug? 





-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38525


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