2.19 -enable-targets=all one error in m68k-dis.c due to longjmp, easily fixed with volatile

Alan Modra amodra@bigpond.net.au
Mon Nov 24 01:01:00 GMT 2008


On Sun, Nov 23, 2008 at 03:13:34AM +0000, Jay wrote:
> /src/binutils-2.19/opcodes/m68k-dis.c: In function 'print_insn_m68k':
> /src/binutils-2.19/opcodes/m68k-dis.c:1474: warning: argument 'info' might be cl
> obbered by 'longjmp' or 'vfork'

These warnings are a royal pain, because they are almost always false
due to the simplistic nature of the gcc analysis behind their
generation.  In this particular case I'm quite sure the warning is
false, so it isn't a good idea to slow down this function by making
"info" volatile.  Perhaps we should turn off -Werror in the opcodes/
directory instead as there isn't a way to turn off just the longjmp
without turning off a bunch of other errors.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list