From ef1c723313b52302be473f3107a9a41537ccc879 Mon Sep 17 00:00:00 2001 From: jakub Date: Mon, 21 Jun 2010 16:14:40 +0000 Subject: [PATCH] * stmt.c (resolve_asm_operand_names): Fix handling of %%. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161091 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/stmt.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 68bb4f0aa61..c171ca39fd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-06-21 Jakub Jelinek + + * stmt.c (resolve_asm_operand_names): Fix handling + of %%. + 2010-06-21 Rainer Orth * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define 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; } -- 2.11.0