This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21032] [4.0/4.1/4.2 Regression] With -frounding-math, incorrectly reorders unary minus
- 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: 13 Nov 2006 10:19:06 -0000
- Subject: [Bug middle-end/21032] [4.0/4.1/4.2 Regression] With -frounding-math, incorrectly reorders unary minus
- References: <bug-21032-1710@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from rguenth at gcc dot gnu dot org 2006-11-13 10:19 -------
Subject: Bug 21032
Author: rguenth
Date: Mon Nov 13 10:18:57 2006
New Revision: 118752
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118752
Log:
2006-11-13 Richard Guenther <rguenther@suse.de>
Backport from mainline:
2006-10-23 Richard Guenther <rguenther@suse.de>
PR middle-end/21032
* convert.c (convert_to_real): Fold (float)-x to -(float)x
only if not flag_rounding_math.
* gcc.dg/pr21032.c: New testcase.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr21032.c
- copied unchanged from r117968, trunk/gcc/testsuite/gcc.dg/pr21032.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/convert.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21032