From 4586b4cadc3bbcbc9a171ffc9124fc622858a514 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Thu, 29 Jul 2004 07:37:16 +0000 Subject: rtl.c (currently_expanding_to_rtl): New. * 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. From-SVN: r85287 --- gcc/cfgexpand.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/cfgexpand.c') diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index db9206e..aa59118 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. */ -- cgit v1.1