aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-08-23 20:33:45 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-08-23 18:33:45 +0000
commit009e53539dc7e6d0bf5c7084a6c8cae25b4f4c68 (patch)
treea5ea40e964016b3df43a3deb14edfc253bd0ba78
parent1f65468a21f11bd37091860a939c56e0a99222d6 (diff)
downloadgcc-009e53539dc7e6d0bf5c7084a6c8cae25b4f4c68.zip
gcc-009e53539dc7e6d0bf5c7084a6c8cae25b4f4c68.tar.gz
gcc-009e53539dc7e6d0bf5c7084a6c8cae25b4f4c68.tar.bz2
cgraph.c (cgraph_turn_edge_to_speculative): Mark target node as having address taken.
* cgraph.c (cgraph_turn_edge_to_speculative): Mark target node as having address taken. From-SVN: r201948
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraph.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1f99c1e..f270ec9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2013-08-23 Jan Hubicka <jh@suse.cz>
+ * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
+ as having address taken.
+
+2013-08-23 Jan Hubicka <jh@suse.cz>
+
* ipa-utils.h (method_class_type): Declare.
* ipa-devirt.c (method_class_type): Export.
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 19e64b7..2477081 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1097,6 +1097,7 @@ cgraph_turn_edge_to_speculative (struct cgraph_edge *e,
IPA_REF_ADDR, e->call_stmt);
ref->lto_stmt_uid = e->lto_stmt_uid;
ref->speculative = e->speculative;
+ cgraph_mark_address_taken_node (n2);
return e2;
}