From 411d61c4af0a07a0f86b8fefabe568f519932d4e Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 4 Mar 2016 23:11:41 +0100 Subject: decl.c (start_preparsed_function): Don't emit start clobber at the start of constructor clones. * decl.c (start_preparsed_function): Don't emit start clobber at the start of constructor clones. From-SVN: r233985 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/decl.c | 1 + 2 files changed, 4 insertions(+) (limited to 'gcc') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1bfb146..5951567 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2016-03-04 Jakub Jelinek + * decl.c (start_preparsed_function): Don't emit start clobber at the + start of constructor clones. + PR c++/70035 * cp-tree.h (cp_ubsan_maybe_initialize_vtbl_ptrs): New prototype. * decl.c (start_preparsed_function): Call diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 0edf166..8504ab6 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -14120,6 +14120,7 @@ start_preparsed_function (tree decl1, tree attrs, int flags) if (!processing_template_decl && (flag_lifetime_dse > 1) && DECL_CONSTRUCTOR_P (decl1) + && !DECL_CLONED_FUNCTION_P (decl1) /* We can't clobber safely for an implicitly-defined default constructor because part of the initialization might happen before we enter the constructor, via AGGR_INIT_ZERO_FIRST (c++/68006). */ -- cgit v1.1