diff options
author | Bernd Schmidt <crux@pool.informatik.rwth-aachen.de> | 1998-03-28 00:12:41 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-03-27 17:12:41 -0700 |
commit | 4d1d804584e7b0795a7c355d3a9cafaa947f1071 (patch) | |
tree | 2736d7d7941b48fd63e1b71a3c5182d1b4de78d8 /gcc/basic-block.h | |
parent | 56f28b73e7dbb93306da989b3984dd78f918b3e6 (diff) | |
download | gcc-4d1d804584e7b0795a7c355d3a9cafaa947f1071.zip gcc-4d1d804584e7b0795a7c355d3a9cafaa947f1071.tar.gz gcc-4d1d804584e7b0795a7c355d3a9cafaa947f1071.tar.bz2 |
basic-block.h (basic_block_computed_jump_target): Declare.
* basic-block.h (basic_block_computed_jump_target): Declare.
* flags.h: (current_function_has_computed_jump): Declare.
* flow.c: (basic_block_computed_jump_target): Define.
(flow_analysis): Allocate it. Set current_function_has_computed_jump
to 0.
(find_basic_blocks): Set current_function_has_computed_jump and
elements of basic_block_computed_jump_target to 1 as appropriate.
* function.c: (current_function_has_computed_jump): Define.
* global.c (global_conflicts): Don't allocate pseudos into stack regs
at the start of a block that is reachable by a computed jump.
* reg-stack.c (stack_reg_life_analysis): If must restart, do so
immediately.
(subst_stack_regs): Undo change from Sep 4 1997.
(uses_reg_or_mem): Now unused, deleted.
* stupid.c (stupid_life_analysis): Compute
current_function_has_computed_jump.
(stupid_find_reg): Don't allocate stack regs if the function has a
computed goto.
* haifa-sched.c (is_cfg_nonregular): Delete code to determine if
the current function has a computed jump. Use the global value
instead.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r18860
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index bc4ea77..68f10ff 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -108,6 +108,11 @@ extern rtx *basic_block_head; extern rtx *basic_block_end; +/* Index by basic block number, determine whether the block can be reached + through a computed jump. */ + +extern char *basic_block_computed_jump_target; + /* Index by basic block number, get address of regset describing the registers live at the start of that block. */ |