aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-07-27 12:57:15 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-07-27 12:57:15 -0400
commitad497dbb3e52e21c2d5bfcc691a6b26ffba7ccc9 (patch)
tree972ebed703276ce4f5c1ef55e3f2f0bfa69514e1 /gcc/dwarf2out.c
parentb5afeda1edd22be941bbf8bc6902feed4af2ccdf (diff)
downloadgcc-ad497dbb3e52e21c2d5bfcc691a6b26ffba7ccc9.zip
gcc-ad497dbb3e52e21c2d5bfcc691a6b26ffba7ccc9.tar.gz
gcc-ad497dbb3e52e21c2d5bfcc691a6b26ffba7ccc9.tar.bz2
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 2834d57..2c7dc71 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