Support __attribute__((ms_abi)) for compatibility but nothing needs to be done as...
authorRobert Pengelly <robertapengelly@hotmail.com>
Fri, 21 Aug 2026 01:35:09 +0000 (02:35 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Fri, 21 Aug 2026 01:35:09 +0000 (02:35 +0100)
parse.c

diff --git a/parse.c b/parse.c
index a46fc8be6d37b04f337509f2959f79930a835d5d..94a14c128b6cb6d17f1d28eaa763fd7a66dec360 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -499,7 +499,7 @@ static void apply_decl_attribute (const char *spelling, int is_gnu) {
         
         }
     
-    } else if (is_gnu && (attribute_name_is (spelling, "cdecl") || attribute_name_is (spelling, "unused") || attribute_name_is (spelling, "used"))) {
+    } else if (is_gnu && (attribute_name_is (spelling, "ms_abi") || attribute_name_is (spelling, "cdecl") || attribute_name_is (spelling, "unused") || attribute_name_is (spelling, "used"))) {
         /* Accepted compatibility attributes.  They require no code generation. */
     } else {
         report_line_at (get_filename (), get_line_number (), REPORT_WARNING, tok.report_start, tok.report_caret, "unsupported '%s' attribute '%s' ignored", is_gnu ? "__attribute__" : "__declspec", spelling);