--- gcc/stmt.c.jj	2010-05-25 11:27:47.000000000 +0200
+++ gcc/stmt.c	2010-06-10 14:59:49.000000000 +0200
@@ -1319,7 +1319,7 @@ resolve_asm_operand_names (tree string, 
 	break;
       else
 	{
-	  c += 1;
+	  c += 1 + (c[1] == '%');
 	  continue;
 	}
     }
@@ -1341,7 +1341,7 @@ resolve_asm_operand_names (tree string, 
 	    p += 2;
 	  else
 	    {
-	      p += 1;
+	      p += 1 + (p[1] == '%');
 	      continue;
 	    }
 
