summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-13 09:29:03 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-13 09:29:03 +0000
commite3189f725522a4d9f31513fe558cd8b1b1dc45d4 (patch)
tree7ce196bd09b2829aee78182cc4a87bbe0cf3c046 /gcc/c-parse.in
parent12543bbd3ea56921c2ed323d04ce266195eaecfb (diff)
downloadgcc-e3189f725522a4d9f31513fe558cd8b1b1dc45d4.tar.gz
* stmt.c (check_unique_operand_names): Expect operand names to
be strings rather than identifiers. Use simple_cst_equal to compare them. (resolve_operand_name_1): Make same identifier to string change here. * c-parse.in (asm_operand): Convert a named operand into a string. * cp/parse.y (asm_operand): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index e6d61378b9b..c6d4b4fe003 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -2467,7 +2467,9 @@ asm_operand:
STRING '(' expr ')'
{ $$ = build_tree_list (build_tree_list (NULL_TREE, $1), $3); }
| '[' identifier ']' STRING '(' expr ')'
- { $$ = build_tree_list (build_tree_list ($2, $4), $6); }
+ { $2 = build_string (IDENTIFIER_LENGTH ($2),
+ IDENTIFIER_POINTER ($2));
+ $$ = build_tree_list (build_tree_list ($2, $4), $6); }
;
asm_clobbers: