This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38525] sse2(int16) code fails with -O3
- From: "leonid at volnitsky dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2008 13:21:23 -0000
- Subject: [Bug c++/38525] sse2(int16) code fails with -O3
- References: <bug-38525-17077@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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