http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46443
Summary: -O2 flag generates incorrect code
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassig...@gcc.gnu.o
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46443
--- Comment #2 from Arthur Muller 2010-11-12 00:09:27
UTC ---
(In reply to comment #1)
> You are violating C/C++ aliasing rules; You are accessing a double as a long
> which causes undefined behavior. memcpy does not cause this violation since