[Bug other/83048] wrap multi-statement macros in do {} while (0)

2017-11-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83048 --- Comment #3 from Tom de Vries --- (In reply to Tom de Vries from comment #2) > I wonder if we could use a macro like this: > ... > #define SAFE_MACRO_STMT(stmt) \ Submitted RFC at

[Bug other/83048] wrap multi-statement macros in do {} while (0)

2017-11-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83048 --- Comment #2 from Tom de Vries --- I wonder if we could use a macro like this: ... #define SAFE_MACRO_STMT(stmt) \ do { \ if (1) \

[Bug other/83048] wrap multi-statement macros in do {} while (0)

2017-11-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83048 --- Comment #1 from Tom de Vries --- Already done: 7fbc9a6 [riscv] Wrap ASM_OUTPUT_LABELREF in do {} while (0) df82c70 [mips] Wrap ASM_OUTPUT_LABELREF in do {} while (0)