http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53501
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-30 12:29:31 UTC --- Author: rguenth Date: Wed May 30 12:29:26 2012 New Revision: 188009 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188009 Log: 2012-05-30 Richard Guenther <rguent...@suse.de> PR middle-end/53501 * fold-const.c (fold_binary_loc): Make sure to call fold_plusminus_mult_expr with the original sign of operands. * gcc.dg/torture/pr53501.c: New testcase. * c-c++-common/restrict-2.c: Adjust. Added: trunk/gcc/testsuite/gcc.dg/torture/pr53501.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/c-c++-common/restrict-2.c