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
This commit is contained in:
Jakub Jelinek 2016-03-04 23:11:41 +01:00 committed by Jakub Jelinek
parent 0c8825de94
commit 411d61c4af
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2016-03-04 Jakub Jelinek <jakub@redhat.com>
* 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

View file

@ -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). */