aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-09-03 11:01:05 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-09-03 11:01:05 +0000
commit8050766eaef0077f0af28dab1c0fe6f1aad724bb (patch)
tree34b684e512b67857fce9ba1949fd5553b599be06 /gcc/omp-low.c
parent8cba6b95273ad9d736c977f430fe97638beb8b94 (diff)
downloadgcc-8050766eaef0077f0af28dab1c0fe6f1aad724bb.zip
gcc-8050766eaef0077f0af28dab1c0fe6f1aad724bb.tar.gz
gcc-8050766eaef0077f0af28dab1c0fe6f1aad724bb.tar.bz2
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
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 16d1922..0995652 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -7326,7 +7326,7 @@ expand_omp_for_static_chunk (struct omp_region *region,
locus = redirect_edge_var_map_location (vm);
add_phi_arg (nphi, redirect_edge_var_map_def (vm), re, locus);
}
- gcc_assert (gsi_end_p (psi) && i == head->length ());
+ gcc_assert (gsi_end_p (psi) && (head == NULL || i == head->length ()));
redirect_edge_var_map_clear (re);
while (1)
{