This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/23047] Combine ignores flag_wrapv
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 3 Nov 2010 18:51:47 +0000
- Subject: [Bug rtl-optimization/23047] Combine ignores flag_wrapv
- Auto-submitted: auto-generated
- References: <bug-23047-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23047
Paolo Bonzini <bonzini at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bonzini at gnu dot org
Known to fail| |
--- Comment #8 from Paolo Bonzini <bonzini at gnu dot org> 2010-11-03 18:51:46 UTC ---
flag_wrapv should not be respected by combine because PLUS/MINUS in RTL should
_always_ have wrapping semantics.
The right place for this optimization is in fold-const.c, especially in the
current GCC world.