diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-29 07:37:16 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-29 07:37:16 +0000 |
commit | 723c0ee7cefb8e32fdf4e4e72228f5bb50ec59bf (patch) | |
tree | c0aa53887f8a11c6cc95d9255d436ab2f4e4b446 /gcc/cfgexpand.c | |
parent | 7105fb72a2283ebf0038b304965883da64c0ca1a (diff) | |
download | gcc-723c0ee7cefb8e32fdf4e4e72228f5bb50ec59bf.tar.gz |
* rtl.c (currently_expanding_to_rtl): New.
* rtl.h (currently_expanding_to_rtl): Export it.
* cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
* config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
inliner hack.
* config/sh/sh.c: Replace rtx_equal_function_value_matters
with currently_expanding_to_rtl.
* config/sh/sh.md: Likewise.
* config/ia64/ia64.c (got_symbolic_operand): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85287 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index db9206ee56f..aa5911890ee 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -433,6 +433,9 @@ tree_expand_cfg (void) IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl))); } + /* Some backends want to know that we are expanding to RTL. */ + currently_expanding_to_rtl = 1; + /* Prepare the rtl middle end to start recording block changes. */ reset_block_changes (); @@ -459,6 +462,9 @@ tree_expand_cfg (void) construct_exit_block (); + /* We're done expanding trees to RTL. */ + currently_expanding_to_rtl = 0; + /* Convert from NOTE_INSN_EH_REGION style notes, and do other sorts of eh initialization. Delay this until after the initial rtl dump so that we can see the original nesting. */ |