summaryrefslogtreecommitdiff
path: root/gcc/ipa-chkp.c
diff options
context:
space:
mode:
authorienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-06 10:41:55 +0000
committerienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-06 10:41:55 +0000
commit0c57c0f96303cb534da20a178d4bfb595a050105 (patch)
tree7a83ac87b8e0b11931890da884f8cb2ddebdd348 /gcc/ipa-chkp.c
parent2edea8ecb216a98a3fc6dbaba7e24badd9325553 (diff)
downloadgcc-0c57c0f96303cb534da20a178d4bfb595a050105.tar.gz
gcc/
* ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor flags for instrumentation thunk. (chkp_produce_thunks): Likewise. gcc/testsuite/ * gcc.dg/lto/chkp-ctor-merge_0.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221877 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-chkp.c')
-rw-r--r--gcc/ipa-chkp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ipa-chkp.c b/gcc/ipa-chkp.c
index 3218d42330e..03abab5641a 100644
--- a/gcc/ipa-chkp.c
+++ b/gcc/ipa-chkp.c
@@ -550,6 +550,9 @@ chkp_maybe_create_clone (tree fndecl)
clone->thunk.thunk_p = true;
clone->thunk.add_pointer_bounds_args = true;
clone->create_edge (node, NULL, 0, CGRAPH_FREQ_BASE);
+ /* Thunk shouldn't be a cdtor. */
+ DECL_STATIC_CONSTRUCTOR (clone->decl) = 0;
+ DECL_STATIC_DESTRUCTOR (clone->decl) = 0;
}
else
{
@@ -714,6 +717,9 @@ chkp_produce_thunks (bool early)
0, CGRAPH_FREQ_BASE);
node->create_reference (node->instrumented_version,
IPA_REF_CHKP, NULL);
+ /* Thunk shouldn't be a cdtor. */
+ DECL_STATIC_CONSTRUCTOR (node->decl) = 0;
+ DECL_STATIC_DESTRUCTOR (node->decl) = 0;
}
}