re PR lto/66468 (ICE in in check_die, at dwarf2out.c:5719)
authorJason Merrill <jason@redhat.com>
Mon, 27 Jul 2015 16:57:15 +0000 (12:57 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 27 Jul 2015 16:57:15 +0000 (12:57 -0400)
PR debug/66468
* dwarf2out.c (gen_inlined_subroutine_die): Check
cgraph_function_possibly_inlined_p.

From-SVN: r226255

gcc/ChangeLog
gcc/dwarf2out.c

index c27c20dc83d089bef1323f3a1b031703a4b91afa..c8a260027bda75df13f40c232621caa3fb42e56f 100644 (file)
@@ -1,3 +1,9 @@
+2015-07-27  Jason Merrill  <jason@redhat.com>
+
+       PR debug/66468
+       * dwarf2out.c (gen_inlined_subroutine_die): Check
+       cgraph_function_possibly_inlined_p.
+
 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
index 2834d571bb9c23132050cd253174ec9ecf928b81..2c7dc710daea60c1133751459e13683fb25c4a8b 100644 (file)
@@ -19905,6 +19905,10 @@ gen_inlined_subroutine_die (tree stmt, dw_die_ref context_die)
 
   decl = block_ultimate_origin (stmt);
 
+  /* Make sure any inlined functions are known to be inlineable.  */
+  gcc_checking_assert (DECL_ABSTRACT_P (decl)
+                      || cgraph_function_possibly_inlined_p (decl));
+
   /* Emit info for the abstract instance first, if we haven't yet.  We
      must emit this even if the block is abstract, otherwise when we
      emit the block below (or elsewhere), we may end up trying to emit