aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-02-24 13:15:55 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-02-24 08:15:55 -0500
commitbd015d378330fc78f85d28ed8c094837e23baca8 (patch)
treedba8fc1b41b606bab2b832ed5473057759474521 /gcc/integrate.c
parentf900ecd8a7df281db0041ea1b9702a677147fe25 (diff)
downloadgcc-bd015d378330fc78f85d28ed8c094837e23baca8.zip
gcc-bd015d378330fc78f85d28ed8c094837e23baca8.tar.gz
gcc-bd015d378330fc78f85d28ed8c094837e23baca8.tar.bz2
tree.h (BLOCK_DEAD): New macro.
* tree.h (BLOCK_DEAD): New macro. (struct tree_block): New flag, dead_flag. * print-tree.c (print_node, case 'b'): Print missing fields. * emit-rtl.c (remove_unnecessary_notes): Set BLOCK_DEAD. * function.c (identify_blocks): Enable test for misplaced notes. (all_blocks): Skip BLOCK_DEAD blocks. * integrate.c (integrate_decl_tree): Likewise. From-SVN: r40039
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 270a9c5..23f3590 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -1684,11 +1684,12 @@ integrate_decl_tree (let, map)
next = &BLOCK_SUBBLOCKS (new_block);
for (t = BLOCK_SUBBLOCKS (let); t; t = BLOCK_CHAIN (t))
- {
- *next = integrate_decl_tree (t, map);
- BLOCK_SUPERCONTEXT (*next) = new_block;
- next = &BLOCK_CHAIN (*next);
- }
+ if (!BLOCK_DEAD (t))
+ {
+ *next = integrate_decl_tree (t, map);
+ BLOCK_SUPERCONTEXT (*next) = new_block;
+ next = &BLOCK_CHAIN (*next);
+ }
TREE_USED (new_block) = TREE_USED (let);
BLOCK_ABSTRACT_ORIGIN (new_block) = let;