https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80063

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Guess we should
--- a/gcc/asan.c
+++ b/gcc/asan.c
@@ -2566,11 +2566,12 @@ initialize_sanitizer_builtins (void)
 #undef DEF_BUILTIN_STUB
 #define DEF_BUILTIN_STUB(ENUM, NAME)
 #undef DEF_SANITIZER_BUILTIN
-#define DEF_SANITIZER_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
+#define DEF_SANITIZER_BUILTIN(ENUM, NAME, TYPE, ATTRS) do {        \
   decl = add_builtin_function ("__builtin_" NAME, TYPE, ENUM,      \
                   BUILT_IN_NORMAL, NAME, NULL_TREE);   \
   set_call_expr_flags (decl, ATTRS);                   \
-  set_builtin_decl (ENUM, decl, true);
+  set_builtin_decl (ENUM, decl, true);                 \
+} while (0);

 #include "sanitizer.def"

Reply via email to