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/38878] [4.4/4.5/4.6/4.7 Regression] gcc.dg/tree-ssa/foldaddr-1.c XFAILed


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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-14 20:12:23 UTC ---
Author: jakub
Date: Mon Mar 14 20:12:16 2011
New Revision: 170957

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170957
Log:
    PR middle-end/38878
    * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
    STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
    and C - X == X also strip nops from +/-/p+ operand.
    When optimizing -X == C, fold C to arg0's type.

    * gcc.dg/tree-ssa/foldaddr-1.c: Remove xfail.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/foldaddr-1.c


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