aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2015-05-11 16:33:07 -0700
committerRichard Henderson <rth@gcc.gnu.org>2015-05-11 16:33:07 -0700
commit5570ddd5a8ce2125c8290598037a40481f193197 (patch)
tree4b55c602a352b7b7a5e285dbf28f8840800c137c /gcc
parent5ce039dfe917d694bef1ecb16844f3b1bcb7ed09 (diff)
downloadgcc-5570ddd5a8ce2125c8290598037a40481f193197.zip
gcc-5570ddd5a8ce2125c8290598037a40481f193197.tar.gz
gcc-5570ddd5a8ce2125c8290598037a40481f193197.tar.bz2
Only resolve_asm_operand_names once
We do it in the front end already; no need to repeat. From-SVN: r223022
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cfgexpand.c2
-rw-r--r--gcc/stmt.c7
3 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d7d5ca0..98394ee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-05-11 Richard Henderson <rth@redhat.com>
+
+ * cfgexpand.c (expand_asm_operands): Don't call
+ resolve_asm_operand_names.
+ * stmt.c (resolve_asm_operand_names): Clarify block comment.
+
2015-05-11 Jan Hubicka <hubicka@ucw.cz>
* dwarf2out.c (gen_member_die): Sanity check that we access
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index b76a219..69d00a0 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2554,8 +2554,6 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
if (! check_operand_nalternatives (outputs, inputs))
return;
- string = resolve_asm_operand_names (string, outputs, inputs, labels);
-
/* Collect constraints. */
i = 0;
for (t = outputs; t ; t = TREE_CHAIN (t), i++)
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 6c62a12..e63179f 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -562,9 +562,10 @@ check_unique_operand_names (tree outputs, tree inputs, tree labels)
return false;
}
-/* A subroutine of expand_asm_operands. Resolve the names of the operands
- in *POUTPUTS and *PINPUTS to numbers, and replace the name expansions in
- STRING and in the constraints to those numbers. */
+/* Resolve the names of the operands in *POUTPUTS and *PINPUTS to numbers,
+ and replace the name expansions in STRING and in the constraints to
+ those numbers. This is generally done in the front end while creating
+ the ASM_EXPR generic tree that eventually becomes the GIMPLE_ASM. */
tree
resolve_asm_operand_names (tree string, tree outputs, tree inputs, tree labels)