This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/30951] Does not fold x + CST == x and x + CST != x



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-02-24 19:55 -------
Subject: Bug 30951

Author: rguenth
Date: Sat Feb 24 19:55:47 2007
New Revision: 122295

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122295
Log:
2007-02-24  Richard Guenther  <rguenther@suse.de>

        PR middle-end/30951
        * fold-const.c (fold_binary): Fold x +- CST op x for
        EQ_EXPR and NE_EXPR.

        * gcc.dg/pr30951.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr30951.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]