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/23669] fold does convert (-a)/10 into a/-10 with -fno-wrapv



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-11-26 22:18 -------
Subject: Bug 23669

Author: pinskia
Date: Sat Nov 26 22:18:04 2005
New Revision: 107543

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107543
Log:
2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23669
        * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
        when overflow is undefined.
2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23669
        * gcc.dg/tree-ssa/divide-1.c: New test.
        * gcc.dg/tree-ssa/divide-2.c: New test.



Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/divide-1.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/divide-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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