summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/dwarfout.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1868dbe2f3a..a325ef40e13 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2000-02-29 Jason Merrill <jason@casey.cygnus.com>
+ * dwarfout.c (output_block): Output abstract blocks even if they
+ don't have TREE_ASM_WRITTEN set.
+
* calls.c (emit_library_call): Check for null REG.
2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 08dc41cfdb7..153c684eb95 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -4623,7 +4623,8 @@ output_block (stmt, depth)
/* Ignore blocks never really used to make RTL. */
- if (! stmt || ! TREE_USED (stmt) || !TREE_ASM_WRITTEN (stmt))
+ if (! stmt || ! TREE_USED (stmt)
+ || (!TREE_ASM_WRITTEN (stmt) && !BLOCK_ABSTRACT (stmt)))
return;
/* Determine the "ultimate origin" of this block. This block may be an