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/31715] [4.3 Regression] Array calculation done incorrectly



------- Comment #5 from rguenth at gcc dot gnu dot org  2007-04-27 12:42 -------
Subject: Bug 31715

Author: rguenth
Date: Fri Apr 27 12:42:43 2007
New Revision: 124216

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

        PR tree-optimization/31715
        * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
        sure to do computation on the offset in an appropriate
        signed type.

        * gcc.dg/Warray-bounds-4.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/Warray-bounds-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c


-- 


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


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