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 tree-optimization/30137] Missed folding of pointer comparison



------- Comment #4 from rguenth at gcc dot gnu dot org  2006-12-31 17:27 -------
Subject: Bug 30137

Author: rguenth
Date: Sun Dec 31 17:27:35 2006
New Revision: 120301

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120301
Log:
2006-12-31  Richard Guenther  <rguenther@suse.de>

        PR middle-end/30137
        * fold-const.c (fold_comparison): Fold comparison of addresses
        of components.

        * testsuite/gcc.dg/pr30137-1.c: New testcase.
        * testsuite/gcc.dg/pr30137-2.c: Likewise.

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


-- 


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


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