aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2015-10-30 23:56:32 +0300
committerAnatoly Sokolov <aesok@gcc.gnu.org>2015-10-30 23:56:32 +0300
commitd614335f7796ca828cfab1a9e789bbb91165755b (patch)
tree2e6dad106e2c0be6d7bcd62276c61e90c5b1dc22 /gcc/lra-constraints.c
parenta6906c809772feaead79e533e79535bd03a49aa6 (diff)
downloadgcc-d614335f7796ca828cfab1a9e789bbb91165755b.zip
gcc-d614335f7796ca828cfab1a9e789bbb91165755b.tar.gz
gcc-d614335f7796ca828cfab1a9e789bbb91165755b.tar.bz2
Add contains_symbol_ref_p
From-SVN: r229607
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r--gcc/lra-constraints.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 0379db9..4670e81 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -4001,35 +4001,6 @@ contains_reg_p (rtx x, bool hard_reg_p, bool spilled_p)
return false;
}
-/* Return true if X contains a symbol reg. */
-static bool
-contains_symbol_ref_p (rtx x)
-{
- int i, j;
- const char *fmt;
- enum rtx_code code;
-
- code = GET_CODE (x);
- if (code == SYMBOL_REF)
- return true;
- fmt = GET_RTX_FORMAT (code);
- for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
- {
- if (fmt[i] == 'e')
- {
- if (contains_symbol_ref_p (XEXP (x, i)))
- return true;
- }
- else if (fmt[i] == 'E')
- {
- for (j = XVECLEN (x, i) - 1; j >= 0; j--)
- if (contains_symbol_ref_p (XVECEXP (x, i, j)))
- return true;
- }
- }
- return false;
-}
-
/* Process all regs in location *LOC and change them on equivalent
substitution. Return true if any change was done. */
static bool