This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32328] 4.2.0: -O2 causes skipped code
- From: "tdragon at tdragon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2007 22:47:47 -0000
- Subject: [Bug tree-optimization/32328] 4.2.0: -O2 causes skipped code
- References: <bug-32328-14702@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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