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/23518] some gcc optimizations do not take overflow into account with -fwrapv



------- Comment #5 from kazu at gcc dot gnu dot org  2005-12-22 04:03 -------
Subject: Bug 23518

Author: kazu
Date: Thu Dec 22 04:03:32 2005
New Revision: 108940

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108940
Log:
gcc/
        PR tree-optimization/23518
        * fold-const.c (make_range): Don't move a constant to the
        other side of the comparison if the type is signed and -fwrapv
        is given.

gcc/testsuite/
        PR tree-optimization/23518
        * testsuite/gcc.dg/pr23518.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/pr23518.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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