------- Comment #10 from rguenth at gcc dot gnu dot org 2009-01-24 23:27 ------- Subject: Bug 38359
Author: rguenth Date: Sat Jan 24 23:26:56 2009 New Revision: 143656 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143656 Log: 2009-01-25 Richard Guenther <rguent...@suse.de> Backport from mainline: 2008-12-02 Richard Guenther <rguent...@suse.de> PR tree-optimization/38359 * fold-const.c (fold_binary): Fold -1 >> x to -1 only for non-negative x. * gcc.c-torture/compile/pr38359.c: New testcase. * gcc.c-torture/execute/shiftopt-1.c: Adjust. Added: branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr38359.c - copied unchanged from r142357, trunk/gcc/testsuite/gcc.c-torture/compile/pr38359.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 branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/shiftopt-1.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38359