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