diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-11-20 20:49:47 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-11-20 20:49:47 +0100 |
commit | 9a784760f136a97e6cc39816788ca4ddff0193af (patch) | |
tree | 923316196e75cbd8b621dc1958360b6c35e7d296 /gcc/omp-low.c | |
parent | cdccafd922b36a07fe0f4118c07293fd595ffd3e (diff) | |
download | gcc-9a784760f136a97e6cc39816788ca4ddff0193af.zip gcc-9a784760f136a97e6cc39816788ca4ddff0193af.tar.gz gcc-9a784760f136a97e6cc39816788ca4ddff0193af.tar.bz2 |
re PR middle-end/68339 (g++.dg/vect/simd-clone-2.cc ICEs with aggressive GC settings and OpenMP)
PR middle-end/68339
* omp-low.c (expand_simd_clones): Call node->get_body () before
allocating stuff in GC.
* gcc.dg/vect/pr68339.c: New test.
From-SVN: r230671
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 830db75..0b6630b 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -18319,6 +18319,10 @@ expand_simd_clones (struct cgraph_node *node) && TYPE_ARG_TYPES (TREE_TYPE (node->decl)) == NULL_TREE) return; + /* Call this before creating clone_info, as it might ggc_collect. */ + if (node->definition && node->has_gimple_body_p ()) + node->get_body (); + do { /* Start with parsing the "omp declare simd" attribute(s). */ |