aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-04-04 13:59:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2005-04-04 13:59:20 +0000
commit09c3c5dce7e0d10cdec855bc2722234e6ec60d88 (patch)
tree470da13280d4001b8de967550ace155f3f184ada
parent48c961adcb954a5e7bc5f404698d0800e872a651 (diff)
downloadgcc-09c3c5dce7e0d10cdec855bc2722234e6ec60d88.zip
gcc-09c3c5dce7e0d10cdec855bc2722234e6ec60d88.tar.gz
gcc-09c3c5dce7e0d10cdec855bc2722234e6ec60d88.tar.bz2
arm.c (replace_symbols_in_block): Remove static function.
* config/arm/arm.c (replace_symbols_in_block): Remove static function. From-SVN: r97543
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c32
2 files changed, 5 insertions, 32 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f5002d5..c9cba1e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-04 Ian Lance Taylor <ian@airs.com>
+
+ * config/arm/arm.c (replace_symbols_in_block): Remove static
+ function.
+
2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
* config/fr30/fr30-protos.h: Remove the prototypes for
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index bcf1904..8171856 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -84,7 +84,6 @@ static const char *output_multi_immediate (rtx *, const char *, const char *,
int, HOST_WIDE_INT);
static const char *shift_op (rtx, HOST_WIDE_INT *);
static struct machine_function *arm_init_machine_status (void);
-static void replace_symbols_in_block (tree, rtx, rtx);
static void thumb_exit (FILE *, int);
static rtx is_jump_table (rtx);
static HOST_WIDE_INT get_jump_table_size (rtx);
@@ -12380,37 +12379,6 @@ arm_expand_builtin (tree exp,
return NULL_RTX;
}
-/* Recursively search through all of the blocks in a function
- checking to see if any of the variables created in that
- function match the RTX called 'orig'. If they do then
- replace them with the RTX called 'new'. */
-static void
-replace_symbols_in_block (tree block, rtx orig, rtx new)
-{
- for (; block; block = BLOCK_CHAIN (block))
- {
- tree sym;
-
- if (!TREE_USED (block))
- continue;
-
- for (sym = BLOCK_VARS (block); sym; sym = TREE_CHAIN (sym))
- {
- if ( (DECL_NAME (sym) == 0 && TREE_CODE (sym) != TYPE_DECL)
- || DECL_IGNORED_P (sym)
- || TREE_CODE (sym) != VAR_DECL
- || DECL_EXTERNAL (sym)
- || !rtx_equal_p (DECL_RTL (sym), orig)
- )
- continue;
-
- SET_DECL_RTL (sym, new);
- }
-
- replace_symbols_in_block (BLOCK_SUBBLOCKS (block), orig, new);
- }
-}
-
/* Return the number (counting from 0) of
the least significant set bit in MASK. */