]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: mips: rework dynamic printf logic to avoid compiler warnings
authorMike Frysinger <vapier@gentoo.org>
Tue, 15 Jun 2021 04:41:22 +0000 (00:41 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 16 Jun 2021 05:55:31 +0000 (01:55 -0400)
commit6828a30253e55983b887dcd8f947a4d771aff82b
tree0babfc0996ef0012f3fa30da3afe71add3580146
parentdf32b446c3f54ed1cc9d4435740bffb42993090c
sim: mips: rework dynamic printf logic to avoid compiler warnings

The compiler doesn't like passing non-constant strings to printf
functions, so tweak the code to always pass one in.  This code is
a little more verbose, but it's probably the same performance.

The macro usage is a bit ugly, but maybe less than copying &
pasting the extended conditional format logic.
sim/mips/ChangeLog
sim/mips/interp.c