This is the mail archive of the binutils@sources.redhat.com 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: [PATCH/RFC] Constify various opcodes tables


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


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