summaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-22 18:52:19 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-22 18:52:19 +0000
commit051d93c10edb0180328b29ced254887202028bfd (patch)
tree12e190b7c0e92e83b6314752bb11cc322fe26157 /gcc/stmt.c
parentefe7a0d744800c5af1151bd68d862724894f4f83 (diff)
downloadgcc-051d93c10edb0180328b29ced254887202028bfd.tar.gz
* stmt.c (asm_op_is_mem_input): Remove.
* tree.h: Remove the corresponding prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89467 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 38646a35459..4aa242e6435 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -558,33 +558,6 @@ parse_input_constraint (const char **constraint_p, int input_num,
return true;
}
-/* INPUT is one of the input operands from EXPR, an ASM_EXPR. Returns true
- if it is an operand which must be passed in memory (i.e. an "m"
- constraint), false otherwise. */
-
-bool
-asm_op_is_mem_input (tree input, tree expr)
-{
- const char *constraint = TREE_STRING_POINTER (TREE_VALUE (TREE_PURPOSE (input)));
- tree outputs = ASM_OUTPUTS (expr);
- int noutputs = list_length (outputs);
- const char **constraints
- = (const char **) alloca ((noutputs) * sizeof (const char *));
- int i = 0;
- bool allows_mem, allows_reg;
- tree t;
-
- /* Collect output constraints. */
- for (t = outputs; t ; t = TREE_CHAIN (t), i++)
- constraints[i] = TREE_STRING_POINTER (TREE_VALUE (TREE_PURPOSE (t)));
-
- /* We pass 0 for input_num, ninputs and ninout; they are only used for
- error checking which will be done at expand time. */
- parse_input_constraint (&constraint, 0, 0, noutputs, 0, constraints,
- &allows_mem, &allows_reg);
- return (!allows_reg && allows_mem);
-}
-
/* Check for overlap between registers marked in CLOBBERED_REGS and
anything inappropriate in DECL. Emit error and return TRUE for error,
FALSE for ok. */