stmt.c (asm_op_is_mem_input): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 22 Oct 2004 18:52:19 +0000 (18:52 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 22 Oct 2004 18:52:19 +0000 (18:52 +0000)
* stmt.c (asm_op_is_mem_input): Remove.
* tree.h: Remove the corresponding prototype.

From-SVN: r89467

gcc/ChangeLog
gcc/stmt.c
gcc/tree.h

index 0dfab351709d95653b1401ce6cde2afd035edd75..8c9726c47c37e682ee54ba592f32a8fa0a80bcfb 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * stmt.c (asm_op_is_mem_input): Remove.
+       * tree.h: Remove the corresponding prototype.
+
 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-gimple.c (is_gimple_constructor_elt): Remove.
index 38646a354594d9bfd270c35401aa4a7bb9ae536b..4aa242e6435ddacc7a6600c74d9bf996946aa957 100644 (file)
@@ -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.  */
index 15cd061a6a030981fbf11153eeeac2cbad24e901..e0a8fc758527f33695b9d7eb334923e06ece2b54 100644 (file)
@@ -3740,7 +3740,6 @@ extern bool parse_input_constraint (const char **, int, int, int, int,
                                    const char * const *, bool *, bool *);
 extern void expand_asm_operands (tree, tree, tree, tree, int, location_t);
 extern void expand_asm_expr (tree);
-extern bool asm_op_is_mem_input (tree, tree);
 extern tree resolve_asm_operand_names (tree, tree, tree);
 extern void expand_case (tree);
 extern void expand_decl (tree);