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
This commit is contained in:
parent
cdccafd922
commit
9a784760f1
4 changed files with 32 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-11-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/68339
|
||||
* omp-low.c (expand_simd_clones): Call node->get_body () before
|
||||
allocating stuff in GC.
|
||||
|
||||
2015-11-20 Jim Wilson <jim.wilson@linaro.org>
|
||||
|
||||
* tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
|
||||
|
|
|
@ -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). */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2015-11-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/68339
|
||||
* gcc.dg/vect/pr68339.c: New test.
|
||||
|
||||
2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||
|
||||
* gcc.target/arm/armv6-unaligned-load-ice.c: New test.
|
||||
|
|
17
gcc/testsuite/gcc.dg/vect/pr68339.c
Normal file
17
gcc/testsuite/gcc.dg/vect/pr68339.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* PR middle-end/68339 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0 -fopenmp-simd" } */
|
||||
|
||||
#pragma omp declare simd notinbranch
|
||||
int
|
||||
f1 (int x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
#pragma omp declare simd notinbranch
|
||||
int
|
||||
f2 (int x)
|
||||
{
|
||||
return x;
|
||||
}
|
Loading…
Add table
Reference in a new issue