summaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-06-21 18:14:40 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-06-21 18:14:40 +0200
commitd34b4f64c879442fb29b59301425fc0087fea5dd (patch)
tree5e7fe675f55732a4be8b6bb06e0e8fe9324627d8 /gcc/stmt.c
parentbabc47283189c5cae91cfe13fd20b0633145655c (diff)
downloadgcc-d34b4f64c879442fb29b59301425fc0087fea5dd.tar.gz
stmt.c (resolve_asm_operand_names): Fix handling of %%.
* stmt.c (resolve_asm_operand_names): Fix handling of %%. From-SVN: r161091
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 4b91ab6522e..952388aff91 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1319,7 +1319,7 @@ resolve_asm_operand_names (tree string, tree outputs, tree inputs, tree labels)
break;
else
{
- c += 1;
+ c += 1 + (c[1] == '%');
continue;
}
}
@@ -1341,7 +1341,7 @@ resolve_asm_operand_names (tree string, tree outputs, tree inputs, tree labels)
p += 2;
else
{
- p += 1;
+ p += 1 + (p[1] == '%');
continue;
}