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

Segher Boessenkool segher@kernel.crashing.org
Mon Nov 24 15:06:00 GMT 2008


>> /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.

-Wno-clobbered should do that; although the GCC manual seems to suggest
this warning is triggered by -Wuninitialized as well, this isn't  
actually
true AFAICS.  -Wclobbered is new in 4.3.


Segher



More information about the Binutils mailing list