From: Jason Merrill Date: Mon, 27 Jul 2015 16:57:15 +0000 (-0400) Subject: re PR lto/66468 (ICE in in check_die, at dwarf2out.c:5719) X-Git-Tag: basepoints/gcc-7~5413 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad497dbb3e52e21c2d5bfcc691a6b26ffba7ccc9;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c27c20dc83d0..c8a260027bda 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 2834d571bb9c..2c7dc710daea 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