diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-01-19 21:46:15 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-01-19 20:46:15 +0000 |
commit | 9789b553b4c1248b56ec41f2bda47c6bb9785f2b (patch) | |
tree | 081c4eec322dcbdcd8274dbd27ce485a10a634ed | |
parent | 68c9467f3ee877d6aefc9fe9fa4f1af44ed34192 (diff) | |
download | gcc-9789b553b4c1248b56ec41f2bda47c6bb9785f2b.zip gcc-9789b553b4c1248b56ec41f2bda47c6bb9785f2b.tar.gz gcc-9789b553b4c1248b56ec41f2bda47c6bb9785f2b.tar.bz2 |
re PR ipa/64218 (ICE: Segmentation fault (symtab_node::get_alias_target()) running Boost testsuite)
PR ipa/64218
* ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
whether function is an alias.
From-SVN: r219859
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 25c3bc1..ea61db2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2015-01-19 Jan Hubicka <hubicka@ucw.cz> + PR ipa/64218 + * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check + whether function is an alias. + +2015-01-19 Jan Hubicka <hubicka@ucw.cz> + * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless cases. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index f270cfa..6bfb1ea 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -866,7 +866,8 @@ want_inline_function_to_all_callers_p (struct cgraph_node *node, bool cold) { bool has_hot_call = false; - if (node->ultimate_alias_target () != node) + /* Aliases gets inlined along with the function they alias. */ + if (node->alias) return false; /* Already inlined? */ if (node->global.inlined_to) |