aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorJeffrey Oldham <oldham@codesourcery.com>2001-03-12 22:22:54 +0000
committerJeffrey D. Oldham <oldham@gcc.gnu.org>2001-03-12 22:22:54 +0000
commita84efb51f78ec2224091306024e5e52a3563e070 (patch)
treebeec1cc684380818416b44e8858e5c952f724134 /gcc/function.c
parent52e8d2b2a0b3dd1a1e79f786817ffae3e09b721e (diff)
downloadgcc-a84efb51f78ec2224091306024e5e52a3563e070.zip
gcc-a84efb51f78ec2224091306024e5e52a3563e070.tar.gz
gcc-a84efb51f78ec2224091306024e5e52a3563e070.tar.bz2
emit-rtl.c (remove_unnecessary_notes): Reverse Richard Kenner's 2001-02-24 which broke building the Java library.
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. From-SVN: r40431
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 63aa5b5..dde5ee0 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;
}