aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2003-10-09 01:44:57 -0400
committerJason Merrill <jason@gcc.gnu.org>2003-10-09 01:44:57 -0400
commit1456deafd7978b7201704ac822231c9ac4f260fe (patch)
tree4afd5b15eb7fe41b0e949cd004d55cb26834adbf /gcc/stmt.c
parent08cffcce0f0569711be8949bbaf579a54264b9ce (diff)
downloadgcc-1456deafd7978b7201704ac822231c9ac4f260fe.zip
gcc-1456deafd7978b7201704ac822231c9ac4f260fe.tar.gz
gcc-1456deafd7978b7201704ac822231c9ac4f260fe.tar.bz2
stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here.
* stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here. (expand_asm_operands): Not here. (parse_input_constraint): No longer static. * tree.h: Declare it. * coverage.c (build_ctr_info_value): Use build_decl to make a VAR_DECL. (create_coverage): Likewise. java/ * parse.y (patch_assignment): Use make_node to create a BLOCK. * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a POINTER_TYPE. cp/ * tree.c (build_cplus_new): Use build_decl to create a VAR_DECL. (build_target_expr_with_type): Likewise. * pt.c (instantiate_class_template): Sanity check that our enclosing class has been instantiated. From-SVN: r72255
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 72746df..718f255 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -391,8 +391,6 @@ struct stmt_status GTY(())
static int using_eh_for_cleanups_p = 0;
static int n_occurrences (int, const char *);
-static bool parse_input_constraint (const char **, int, int, int, int,
- const char * const *, bool *, bool *);
static bool decl_conflicts_with_clobbers_p (tree, const HARD_REG_SET);
static void expand_goto_internal (tree, rtx, rtx);
static int expand_fixup (tree, rtx, rtx);
@@ -1253,7 +1251,7 @@ parse_output_constraint (const char **constraint_p, int operand_num,
/* Similar, but for input constraints. */
-static bool
+bool
parse_input_constraint (const char **constraint_p, int input_num,
int ninputs, int noutputs, int ninout,
const char * const * constraints,
@@ -1465,9 +1463,6 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
if (! check_operand_nalternatives (outputs, inputs))
return;
- if (! check_unique_operand_names (outputs, inputs))
- return;
-
string = resolve_asm_operand_names (string, outputs, inputs);
/* Collect constraints. */
@@ -1975,6 +1970,8 @@ resolve_asm_operand_names (tree string, tree outputs, tree inputs)
const char *c;
tree t;
+ check_unique_operand_names (outputs, inputs);
+
/* Substitute [<name>] in input constraint strings. There should be no
named operands in output constraints. */
for (t = inputs; t ; t = TREE_CHAIN (t))