re PR tree-optimization/68031 (cc1 crashes when compiling newlib / mktm_r.c)
authorRichard Biener <rguenther@suse.de>
Wed, 21 Oct 2015 08:08:05 +0000 (08:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 21 Oct 2015 08:08:05 +0000 (08:08 +0000)
commit39c97e4132a0e6b16ee4299d87f29c14d5db5313
treeb50c0f53459764cd9e9872408b0d572501342029
parent33b35c280747d60086dc2cc640a3c15239ec3e8d
re PR tree-optimization/68031 (cc1 crashes when compiling newlib / mktm_r.c)

2015-10-21  Richard Biener  <rguenther@suse.de>

PR middle-end/68031
* fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
(tree_ssa_name_nonnegative_warnv_p): Fold into ...
(tree_single_nonnegative_warnv_p): ... here.  For SSA names
make sure they are not registered for update.

* gcc.dg/torture/pr68031.c: New testcase.

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