]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl.c (start_preparsed_function): Don't emit start clobber at the start of construct...
authorJakub Jelinek <jakub@redhat.com>
Fri, 4 Mar 2016 22:11:41 +0000 (23:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Mar 2016 22:11:41 +0000 (23:11 +0100)
* decl.c (start_preparsed_function): Don't emit start clobber at the
start of constructor clones.

From-SVN: r233985

gcc/cp/ChangeLog
gcc/cp/decl.c

index 1bfb146bf37d3ee023a123e326816ed1eda47adc..595156707252c7406d3a8a2f7419dc6cb1ad4b95 100644 (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
index 0edf1665b014fcda524ff0b8262ed8adfeec796a..8504ab68d31f539c0bfcb622465f4cda0a9b7226 100644 (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).  */