aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
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