aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-02-25 13:10:04 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2016-02-25 12:10:04 +0000
commitcf1fcb76fb5e8064316ef40d3c563c8d8e3fdc36 (patch)
tree45fef311e386b0e4072edaa2fbea735fdc000ec6
parentc049b107223eb8f97c1049ab29b7bb2e293bbe9e (diff)
downloadgcc-cf1fcb76fb5e8064316ef40d3c563c8d8e3fdc36.zip
gcc-cf1fcb76fb5e8064316ef40d3c563c8d8e3fdc36.tar.gz
gcc-cf1fcb76fb5e8064316ef40d3c563c8d8e3fdc36.tar.bz2
re PR lto/69630 (LTO ICE in types_same_for_odr at ipa-devirt.c:402)
PR ipa/69630 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE on builtin_unreachable. From-SVN: r233711
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-devirt.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4e360d5..9daf0c0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-02-25 Jan Hubicka <hubicka@ucw.cz>
+
+ PR ipa/69630
+ * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
+ on builtin_unreachable.
+
2016-02-25 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/69896
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index b2036d5..deb2a27 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -3181,6 +3181,7 @@ possible_polymorphic_call_targets (tree otr_type,
{
if (complete
&& nodes.length () == 1
+ && TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE
&& warn_suggest_final_types
&& !outer_type->derived_types.length ())
{