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/30744] [4.2/4.3 Regression] ICE in compare_values, at tree-vrp.c:466



------- Comment #2 from sayle at gcc dot gnu dot org  2007-03-04 19:03 -------
Subject: Bug 30744

Author: sayle
Date: Sun Mar  4 19:03:13 2007
New Revision: 122531

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122531
Log:

        PR middle-end/30744
        * fold-const.c (fold_comparison): Enforce type consistency when
        transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.

        * gcc.dg/pr30744-1.c: New test case.


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


-- 


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


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