Commit a74560eb by Marek Polacek Committed by Marek Polacek

re PR sanitizer/80063 (gcc/asan.c: PVS-Studio: Incorrect Block Delimitation (CWE-483))

	PR sanitizer/80063
	* asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).

From-SVN: r246278
parent 32fa3623
2017-03-20 Marek Polacek <polacek@redhat.com>
PR sanitizer/80063
* asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
2017-03-20 Richard Biener <rguenther@suse.de> 2017-03-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/80113 PR tree-optimization/80113
......
...@@ -2567,10 +2567,12 @@ initialize_sanitizer_builtins (void) ...@@ -2567,10 +2567,12 @@ initialize_sanitizer_builtins (void)
#define DEF_BUILTIN_STUB(ENUM, NAME) #define DEF_BUILTIN_STUB(ENUM, NAME)
#undef DEF_SANITIZER_BUILTIN #undef DEF_SANITIZER_BUILTIN
#define DEF_SANITIZER_BUILTIN(ENUM, NAME, TYPE, ATTRS) \ #define DEF_SANITIZER_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
decl = add_builtin_function ("__builtin_" NAME, TYPE, ENUM, \ do { \
BUILT_IN_NORMAL, NAME, NULL_TREE); \ decl = add_builtin_function ("__builtin_" NAME, TYPE, ENUM, \
set_call_expr_flags (decl, ATTRS); \ BUILT_IN_NORMAL, NAME, NULL_TREE); \
set_builtin_decl (ENUM, decl, true); set_call_expr_flags (decl, ATTRS); \
set_builtin_decl (ENUM, decl, true); \
} while (0);
#include "sanitizer.def" #include "sanitizer.def"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment