re PR middle-end/34130 (the builtin abs() gives wrong result when used in some expres...
authorRichard Guenther <rguenther@suse.de>
Sat, 17 Nov 2007 14:22:42 +0000 (14:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 17 Nov 2007 14:22:42 +0000 (14:22 +0000)
commita0857153ddb27ba0f64a16c934734421fd2fccfc
tree4cc0357f812980dd1458b9f0f76df27daf5952c2
parentd61ae8dd9925ebc662f09837013e0a03bcc353f5
re PR middle-end/34130 (the builtin abs() gives wrong result when used in some expression)

2007-11-17  Richard Guenther  <rguenther@suse.de>

PR middle-end/34130
* fold-const.c (extract_muldiv_1): Do not move negative
constants inside ABS_EXPR.

* gcc.c-torture/execute/pr34130.c: New testcase.

From-SVN: r130258
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr34130.c [new file with mode: 0644]