Fix gcc_assert in expand_omp_for_static_chunk
authorTom de Vries <tom@codesourcery.com>
Thu, 3 Sep 2015 11:01:05 +0000 (11:01 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 3 Sep 2015 11:01:05 +0000 (11:01 +0000)
commit8050766eaef0077f0af28dab1c0fe6f1aad724bb
tree34b684e512b67857fce9ba1949fd5553b599be06
parent8cba6b95273ad9d736c977f430fe97638beb8b94
Fix gcc_assert in expand_omp_for_static_chunk

2015-09-03  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/65637
* omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
that head is NULL.

* gcc.dg/autopar/pr46099-2.c: New test.

From-SVN: r227436
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr46099-2.c [new file with mode: 0644]