This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: 2.19 -enable-targets=all one error in m68k-dis.c due to longjmp, easily fixed with volatile
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jay <jay dot krell at cornell dot edu>
- Cc: binutils <binutils at sourceware dot org>
- Date: Mon, 24 Nov 2008 11:30:51 +1030
- Subject: Re: 2.19 -enable-targets=all one error in m68k-dis.c due to longjmp, easily fixed with volatile
- References: <COL101-W6789BC9FFA825A9790E966E6090@phx.gbl>
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