]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/34130 (the builtin abs() gives wrong result when used...
authorMatthias Klose <doko@ubuntu.com>
Thu, 22 Nov 2007 15:34:03 +0000 (15:34 +0000)
committerMatthias Klose <doko@gcc.gnu.org>
Thu, 22 Nov 2007 15:34:03 +0000 (15:34 +0000)
commite72534af59f446593d4802ca4fcc2611a0154716
tree17dda09d3741a39dc450bf3bd44c863baf839030
parent6ec9ca44db73c08584bc54ae523f1a9b9ad86c78
backport: re PR middle-end/34130 (the builtin abs() gives wrong result when used in some expression)

2007-11-22  Matthias Klose  <doko@ubuntu.com>

        Backport from mainline:
        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.

        PR middle-end/34130
        * gcc.c-torture/execute/pr34130.c: New testcase.

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