[Bug tree-optimization/27039] [4.1/4.2 Regression] Unable to determine # of iterations for a simple loop

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jun 4 12:59:00 GMT 2006



------- Comment #13 from rguenth at gcc dot gnu dot org  2006-06-04 12:59 -------
Subject: Bug 27039

Author: rguenth
Date: Sun Jun  4 12:59:40 2006
New Revision: 114357

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

        PR tree-optimization/27039
        * fold-const.c (fold_comparison): Handle pointer comparison
        again for all comparison codes.  Compare offsets in signed
        size type.
        (fold_binary): Move code from here.

        * gcc.dg/tree-ssa/loop-17.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/loop-17.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list