aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorIlya Enkovich <enkovich.gnu@gmail.com>2015-10-21 15:57:00 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2015-10-21 15:57:00 +0000
commit6f9045f4e16df8791ae67e0508b61accc4c982c2 (patch)
tree9340e02338d4af72c0dc29692ea7986474164355 /gcc/omp-low.c
parentcbb5c732c20e385bf3d0bf04b533b22281a7dde2 (diff)
downloadgcc-6f9045f4e16df8791ae67e0508b61accc4c982c2.zip
gcc-6f9045f4e16df8791ae67e0508b61accc4c982c2.tar.gz
gcc-6f9045f4e16df8791ae67e0508b61accc4c982c2.tar.bz2
omp-low.c (simd_clone_create): Set in_other_partition for created clones.
gcc/ * omp-low.c (simd_clone_create): Set in_other_partition for created clones. gcc/testsuite/ * gcc.dg/lto/simd-function_0.c: New test. From-SVN: r229127
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index b444864..b71609b7 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -16318,6 +16318,8 @@ simd_clone_create (struct cgraph_node *old_node)
DECL_STATIC_CONSTRUCTOR (new_decl) = 0;
DECL_STATIC_DESTRUCTOR (new_decl) = 0;
new_node = old_node->create_version_clone (new_decl, vNULL, NULL);
+ if (old_node->in_other_partition)
+ new_node->in_other_partition = 1;
symtab->call_cgraph_insertion_hooks (new_node);
}
if (new_node == NULL)