]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PR ipa/66616] Copy can_change_signature flag to artificial thunks
authorMartin Jambor <mjambor@suse.cz>
Mon, 11 Jan 2016 10:03:44 +0000 (11:03 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 11 Jan 2016 10:03:44 +0000 (11:03 +0100)
2016-01-11  Martin Jambor  <mjambor@suse.cz>

PR ipa/66616
* cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
flag.

From-SVN: r232214

gcc/ChangeLog
gcc/cgraphclones.c

index c0c3cece95be2eb94e51a6b7e23fcba033e7db77..d78db3bc3173aa64bba3499e5f9a797bf3e35eaa 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-11  Martin Jambor  <mjambor@suse.cz>
+
+       PR ipa/66616
+       * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
+       flag.
+
 2016-01-11  Tom de Vries  <tom@codesourcery.com>
 
        PR tree-optimization/69109
index 1044b3f8d26baa655081d1afa931a1d8d3a7893a..354655e85d20d900ca052005b2d3a0217f966518 100644 (file)
@@ -328,6 +328,7 @@ duplicate_thunk_for_node (cgraph_node *thunk, cgraph_node *node)
   new_thunk = cgraph_node::create (new_decl);
   set_new_clone_decl_and_node_flags (new_thunk);
   new_thunk->definition = true;
+  new_thunk->local.can_change_signature = node->local.can_change_signature;
   new_thunk->thunk = thunk->thunk;
   new_thunk->unique_name = in_lto_p;
   new_thunk->former_clone_of = thunk->decl;