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