http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55236
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-01 13:58:58 UTC --- Author: jakub Date: Fri Feb 1 13:58:55 2013 New Revision: 195649 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195649 Log: Backported from mainline 2012-11-17 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/55236 * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv and signed ARG0_TYPE, force low and high to be non-NULL. * gcc.dg/pr55236.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr55236.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/fold-const.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog