[binutils-gdb] bfin: avoid gcc extension using __VA_ARGS__
Jan Beulich
jbeulich@sourceware.org
Fri Dec 19 07:55:17 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f0970f5c25e0d6e1db875e61d4648df984645ae9
commit f0970f5c25e0d6e1db875e61d4648df984645ae9
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Dec 19 08:52:34 2025 +0100
bfin: avoid gcc extension using __VA_ARGS__
We shouldn't be using extensions when we don't have a suitable fallback in
place. For cases where there's no argument wanted, OUTS() already exists.
Diff:
---
opcodes/bfin-dis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c
index 3e31613a7ef..f4f1574f7d4 100644
--- a/opcodes/bfin-dis.c
+++ b/opcodes/bfin-dis.c
@@ -486,7 +486,7 @@ static const enum machine_registers decode_allregs[] =
#ifndef OUTS
#define OUTS(p, txt) (p)->fprintf_func ((p)->stream, "%s", txt)
#endif
-#define OUT(p, txt, ...) (p)->fprintf_func ((p)->stream, txt, ## __VA_ARGS__)
+#define OUT(p, txt, ...) (p)->fprintf_func ((p)->stream, txt, __VA_ARGS__)
static void
amod0 (int s0, int x0, disassemble_info *outf)
More information about the Binutils-cvs
mailing list