optimization/5186: -O works; -O2 doesn't; partial assignment through cast to smaller type
rth@gcc.gnu.org
rth@gcc.gnu.org
Wed Apr 3 01:48:00 GMT 2002
Synopsis: -O works; -O2 doesn't; partial assignment through cast to smaller type
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Apr 3 01:48:17 2002
State-Changed-Why:
Not a bug. This code violates ISO C aliasing rules.
Use a union instead.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5186
More information about the Gcc-prs
mailing list