diff options
author | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-12 22:22:54 +0000 |
---|---|---|
committer | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-12 22:22:54 +0000 |
commit | 874a9b8d2a144a2cc1ead358756b70d5ee818e38 (patch) | |
tree | beec1cc684380818416b44e8858e5c952f724134 /gcc/function.c | |
parent | fda7870b052629200a4cb854322d27be3af66fa6 (diff) | |
download | gcc-874a9b8d2a144a2cc1ead358756b70d5ee818e38.tar.gz |
2001-03-12 Jeffrey Oldham <oldham@codesourcery.com>
* emit-rtl.c (remove_unnecessary_notes): Reverse Richard Kenner's
2001-02-24 which broke building the Java library.
* function.c (identify_blocks): Likewise.
(all_blocks): Likewise.
* integrate.c (integrate_decl_tree): Likewise.
* print-tree.c (print_node): Likewise.
* tree.h (BLOCK_NUMBER): Likewise.
(struct tree_block): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40431 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/function.c b/gcc/function.c index 63aa5b5ee7f..dde5ee09f76 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5740,7 +5740,8 @@ identify_blocks () block_stack); /* If we didn't use all of the subblocks, we've misplaced block notes. */ - if (last_block_vector != block_vector + n_blocks) + /* ??? This appears to happen all the time. Latent bugs elsewhere? */ + if (0 && last_block_vector != block_vector + n_blocks) abort (); free (block_vector); @@ -5946,28 +5947,27 @@ blocks_nreverse (t) blocks. */ static int -all_blocks (blocks, vector) - tree blocks; +all_blocks (block, vector) + tree block; tree *vector; { int n_blocks = 0; - tree block; - for (block = blocks; block != 0; block = TREE_CHAIN (block)) - if (!BLOCK_DEAD (block)) - { - TREE_ASM_WRITTEN (block) = 0; + while (block) + { + TREE_ASM_WRITTEN (block) = 0; - /* Record this block. */ - if (vector) - vector[n_blocks] = block; + /* Record this block. */ + if (vector) + vector[n_blocks] = block; - ++n_blocks; + ++n_blocks; - /* Record the subblocks, and their subblocks... */ - n_blocks += all_blocks (BLOCK_SUBBLOCKS (block), - vector ? vector + n_blocks : 0); - } + /* Record the subblocks, and their subblocks... */ + n_blocks += all_blocks (BLOCK_SUBBLOCKS (block), + vector ? vector + n_blocks : 0); + block = BLOCK_CHAIN (block); + } return n_blocks; } |