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/36227] [4.3/4.4 Regression] POINTER_PLUS folding introduces undefined overflow



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-05-13 14:05 -------
Subject: Bug 36227

Author: rguenth
Date: Tue May 13 14:04:40 2008
New Revision: 135261

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135261
Log:
2008-05-13  Richard Guenther  <rguenther@suse.de>

        PR middle-end/36227
        * fold-const.c (fold_sign_changed_comparison): Do not allow
        changes in pointer-ness.

        * gcc.dg/pr36227.c: New testcase.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr36227.c
      - copied unchanged from r135260, trunk/gcc/testsuite/gcc.dg/pr36227.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/fold-const.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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