Fix Rust-GCC/gccrs#4046 where the inline llvm_asm macro parser did not
expect a comma.
gcc/rust/ChangeLog:
* expand/rust-macro-builtins-asm.cc (parse_llvm_clobbers): Expect a
comma between clobbers.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
{
ctx.llvm_asm.get_clobbers ().push_back (
{strip_double_quotes (token->as_string ()), token->get_locus ()});
+
+ parser.skip_token (STRING_LITERAL);
}
- parser.skip_token (STRING_LITERAL);
+
+ parser.maybe_skip_token (COMMA);
token = parser.peek_current_token ();
}
}