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 c/39855] [4.3/4.4/4.5 Regression] Shift optimization discards operands' side effects



------- Comment #4 from jakub at gcc dot gnu dot org  2009-04-22 22:03 -------
Subject: Bug 39855

Author: jakub
Date: Wed Apr 22 22:02:54 2009
New Revision: 146622

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146622
Log:
        PR c/39855
        * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
        into 0, use omit_one_operand.

        * gcc.dg/torture/pr39855.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr39855.c
      - copied unchanged from r146617,
trunk/gcc/testsuite/gcc.dg/torture/pr39855.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/fold-const.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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