This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30475] assert(int+100 > int) optimized away
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2007 19:46:23 -0000
- Subject: [Bug c/30475] assert(int+100 > int) optimized away
- References: <bug-30475-3511@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #38 from rguenth at gcc dot gnu dot org 2007-01-21 19:46 -------
(in reply to comment #35)
It is true that in the face of -fwrapv gcc does not optimize as good as it does
for unsigned numbers (that wrap, too). I am in the progress of fixing that
for the value range propagation pass. You are of course welcome to fix it
for make_range ;) (or maybe file an enhancement bug report for that, so we
don't lose track of that issue)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30475