]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
stmt.c (resolve_asm_operand_names): Fix handling of %%.
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Jun 2010 16:14:40 +0000 (18:14 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Jun 2010 16:14:40 +0000 (18:14 +0200)
* stmt.c (resolve_asm_operand_names): Fix handling
of %%.

From-SVN: r161091

gcc/ChangeLog
gcc/stmt.c

index 68bb4f0aa61bfb2fd8d496e5228ea9c42222e6d8..c171ca39fd088e4ee4535971aab3e5abacd5a10e 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * stmt.c (resolve_asm_operand_names): Fix handling
+       of %%.
+
 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
index 4b91ab6522e16d99c1cdb11e8f83922125a23b4a..952388aff91c55279380068d12958bbec70f0d9f 100644 (file)
@@ -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;
            }