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/24851] [4.1 Regression] f2c miscompilation



------- Comment #18 from rguenth at gcc dot gnu dot org  2005-11-17 11:35 -------
Subject: Bug 24851

Author: rguenth
Date: Thu Nov 17 11:35:00 2005
New Revision: 107117

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107117
Log:
2005-11-16  Richard Guenther  <rguenther@suse.de>

        PR middle-end/24851
        * fold-const.c (extract_array_ref): Return byte offset
        in all cases.
        (fold_binary): Fold &x[a] CMP &x[b] to
        a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
        behavior.

        * gcc.c-torture/execute/pr24851.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr24851.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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