[Bug tree-optimization/32328] 4.2.0: -O2 causes skipped code

tdragon at tdragon dot net gcc-bugzilla@gcc.gnu.org
Wed Jun 13 22:47:00 GMT 2007



------- Comment #5 from tdragon at tdragon dot net  2007-06-13 22:47 -------
Is it possible that an optimization enabled by -O2 *assumes* that hashitem()
will conform with strict aliasing by not dereferencing that argument, and thus
optimizes those lines away? (Not the case.) If this is what is happening and is
the correct behavior, then this is in fact user error and I'm sorry to have
wasted your time.


-- 


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



More information about the Gcc-bugs mailing list