From: Jakub Jelinek Date: Mon, 21 Jun 2010 16:14:40 +0000 (+0200) Subject: stmt.c (resolve_asm_operand_names): Fix handling of %%. X-Git-Tag: releases/gcc-4.6.0~6294 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d34b4f64c879442fb29b59301425fc0087fea5dd;p=thirdparty%2Fgcc.git stmt.c (resolve_asm_operand_names): Fix handling of %%. * stmt.c (resolve_asm_operand_names): Fix handling of %%. From-SVN: r161091 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 68bb4f0aa61b..c171ca39fd08 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 4b91ab6522e1..952388aff91c 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; }