From ad497dbb3e52e21c2d5bfcc691a6b26ffba7ccc9 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 27 Jul 2015 12:57:15 -0400 Subject: [PATCH] re PR lto/66468 (ICE in in check_die, at dwarf2out.c:5719) PR debug/66468 * dwarf2out.c (gen_inlined_subroutine_die): Check cgraph_function_possibly_inlined_p. From-SVN: r226255 --- gcc/ChangeLog | 6 ++++++ gcc/dwarf2out.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c27c20dc83d..c8a260027bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-07-27 Jason Merrill + + PR debug/66468 + * dwarf2out.c (gen_inlined_subroutine_die): Check + cgraph_function_possibly_inlined_p. + 2015-07-27 Wilco Dijkstra * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_3): diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 2834d571bb9..2c7dc710dae 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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 -- 2.30.2