]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/21032 (With -frounding-math, incorrectly reorders unary minus)
authorRichard Guenther <rguenther@suse.de>
Mon, 23 Oct 2006 07:15:45 +0000 (07:15 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 23 Oct 2006 07:15:45 +0000 (07:15 +0000)
commit4f76e46b189899f58e018dec68d7f5e68a6e55a2
tree7d9beeeaa99bee3c5a1fbb22e70da00ea720cc71
parent1b406eadf9697727eb412f11ecae8d691e54a562
re PR middle-end/21032 (With -frounding-math, incorrectly reorders unary minus)

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.

From-SVN: r117968
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr21032.c [new file with mode: 0644]