This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


/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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]