re PR tree-optimization/55236 (gcc.c-torture/execute/pr22493-1.c FAILs with -fPIC)
authorJakub Jelinek <jakub@redhat.com>
Sat, 17 Nov 2012 22:00:32 +0000 (23:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 17 Nov 2012 22:00:32 +0000 (23:00 +0100)
commit9abd8e8b634af19867783e19c17b2ee7bf1d35d4
treebe674b8ee271fc438ab948ffd1ea623f2c6a7725
parent2e63c69f49090e3b5bc73f91a12583ce3732907d
re PR tree-optimization/55236 (gcc.c-torture/execute/pr22493-1.c FAILs with -fPIC)

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.

From-SVN: r193591
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr55236.c [new file with mode: 0644]