[Bug tree-optimization/57656] [4.7/4.8 Regression] Wrong constant folding

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 9 09:49:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57656

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Sep  9 09:49:54 2013
New Revision: 202387

URL: http://gcc.gnu.org/viewcvs?rev=202387&root=gcc&view=rev
Log:
2013-09-09  Richard Biener  <rguenther@suse.de>

    Backport from mainline
    2013-09-03  Richard Biener  <rguenther@suse.de>

    PR middle-end/57656
    * fold-const.c (negate_expr_p): Fix division case.
    (negate_expr): Likewise.

    * gcc.dg/torture/pr57656.c: New testcase.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr57656.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/fold-const.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list