[Bug middle-end/61734] [4.10 Regression] Regression in ABS_EXPR recognition

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 28 08:55:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61734

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Mon Jul 28 08:55:17 2014
New Revision: 213118

URL: https://gcc.gnu.org/viewcvs?rev=213118&root=gcc&view=rev
Log:
    PR middle-end/61734
    * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
    operators other than the equality operators.

Added:
    trunk/gcc/testsuite/gcc.dg/fold-abs-5.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/Wstrict-overflow-25.c
    trunk/gcc/testsuite/gcc.dg/fold-compare-8.c



More information about the Gcc-bugs mailing list