aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c27c20d..c8a2600 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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):
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