This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH/RFC] Constify various opcodes tables
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Klee Dienes <klee at apple dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 6 Nov 2002 23:25:05 +1030
- Subject: Re: [PATCH/RFC] Constify various opcodes tables
- References: <130D35B0-ED12-11D6-9CDD-00039396EEB8@apple.com>
On Thu, Oct 31, 2002 at 03:48:13PM -0500, Klee Dienes wrote:
> * arm-opc.h (arm_opcodes): Mark as const.
> (thumb_opcodes): Mark as const.
> * avr-dis.c (avr_opcodes): Mark as const.
> * h8500-opc.h (h8500_table): Mark as const.
> * i386-dis.c (Suffix3DNow): Mark as const.
> * m32r-desc.c (m32r_cgen_opval_gr_names_entries): Mark as const.
> * mcore-opc.h (mcore_table): Mark as const.
> * sh-opc.h (sh_table): Mark as const.
> * w65-opc.h (optable): Mark as const.
> * x8k-opc.h (z8k_table): Mark as const.
Needs a little more work.
.../opcodes/arm-dis.c: In function `print_insn_arm':
.../opcodes/arm-dis.c:178: warning: assignment discards qualifiers from pointer target type
.../opcodes/arm-dis.c: In function `print_insn_thumb':
.../opcodes/arm-dis.c:759: warning: assignment discards qualifiers from pointer target type
etc. Yes, I know there's a depressing number of warnings in opcodes/.
Let's not make it worse.
--
Alan Modra
IBM OzLabs - Linux Technology Centre