From: jakub Date: Fri, 4 Mar 2016 22:11:41 +0000 (+0000) Subject: * decl.c (start_preparsed_function): Don't emit start clobber at the X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea9edfee1a7a5df3cb9168e50f2e62e74d13a2f7;p=thirdparty%2Fgcc.git * decl.c (start_preparsed_function): Don't emit start clobber at the start of constructor clones. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233985 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1bfb146bf37d..595156707252 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 0edf1665b014..8504ab68d31f 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). */