aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-builtins-asm.h
diff options
context:
space:
mode:
authorjjasmine <tanghocle456@gmail.com>2024-06-05 08:24:50 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:46 +0100
commitafc905c2d7bbb771f5663e043f93f82cbf9f005b (patch)
treeb15ce7f8d58eeb90215060af05561d6d030f698f /gcc/rust/expand/rust-macro-builtins-asm.h
parent58a5a14875e7c47de24b0a1c3ed34dfab665fded (diff)
downloadgcc-afc905c2d7bbb771f5663e043f93f82cbf9f005b.zip
gcc-afc905c2d7bbb771f5663e043f93f82cbf9f005b.tar.gz
gcc-afc905c2d7bbb771f5663e043f93f82cbf9f005b.tar.bz2
gccrs: Add potentially_nonpromoted_keywords set str
gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_reg_operand): Add potentially_nonpromoted_keywords set str (check_identifier): likewise * expand/rust-macro-builtins-asm.h (parse_format_string): likewise gcc/testsuite/ChangeLog: * rust/compile/inline_asm_parse_operand.rs: fix warnings
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins-asm.h')
-rw-r--r--gcc/rust/expand/rust-macro-builtins-asm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins-asm.h b/gcc/rust/expand/rust-macro-builtins-asm.h
index 37f5f5a..1ed3148 100644
--- a/gcc/rust/expand/rust-macro-builtins-asm.h
+++ b/gcc/rust/expand/rust-macro-builtins-asm.h
@@ -72,4 +72,7 @@ tl::optional<std::string>
parse_format_string (Parser<MacroInvocLexer> &parser, TokenId last_token_id,
InlineAsmContext &inline_asm_ctx);
+std::set<std::string> potentially_nonpromoted_keywords
+ = {"in", "out", "lateout", "inout", "inlateout", "const", "sym", "label"};
+
} // namespace Rust \ No newline at end of file