This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23518] some gcc optimizations do not take overflow into account with -fwrapv
- From: "kazu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2005 04:03:41 -0000
- Subject: [Bug middle-end/23518] some gcc optimizations do not take overflow into account with -fwrapv
- References: <bug-23518-10629@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from kazu at gcc dot gnu dot org 2005-12-22 04:03 -------
Subject: Bug 23518
Author: kazu
Date: Thu Dec 22 04:03:32 2005
New Revision: 108940
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108940
Log:
gcc/
PR tree-optimization/23518
* fold-const.c (make_range): Don't move a constant to the
other side of the comparison if the type is signed and -fwrapv
is given.
gcc/testsuite/
PR tree-optimization/23518
* testsuite/gcc.dg/pr23518.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/pr23518.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23518