S12Z/opcodes: Correct a `reg' global shadowing error for pre-4.8 GCC
authorMaciej W. Rozycki <macro@mips.com>
Mon, 9 Jul 2018 14:50:57 +0000 (15:50 +0100)
committerMaciej W. Rozycki <macro@mips.com>
Mon, 9 Jul 2018 14:50:57 +0000 (15:50 +0100)
commit9dcb0ba4457b8845fb704635e824471bf1faf092
tree6b4513b752b31c194a91142b5210650509fdcd5e
parentc8ad9b9a31aa3e6039567fc1f152dd454c946d5f
S12Z/opcodes: Correct a `reg' global shadowing error for pre-4.8 GCC

Remove `-Wshadow' compilation errors:

cc1: warnings being treated as errors
.../opcodes/s12z-dis.c: In function 'lea_reg_xys_opr':
.../opcodes/s12z-dis.c:814: error: declaration of 'reg' shadows a global declaration
.../opcodes/s12z-dis.c:783: error: shadowed declaration is here
.../opcodes/s12z-dis.c: In function 'lea_reg_xys':
.../opcodes/s12z-dis.c:843: error: declaration of 'reg' shadows a global declaration
.../opcodes/s12z-dis.c:783: error: shadowed declaration is here
.../opcodes/s12z-dis.c: In function 'print_insn_loop_primitive':
.../opcodes/s12z-dis.c:2206: error: declaration of 'reg' shadows a global declaration
.../opcodes/s12z-dis.c:783: error: shadowed declaration is here

which for versions of GCC before 4.8 prevent support for S12Z targets
from being built.  See also GCC PR c/53066.

opcodes/
* s12z-dis.c (lea_reg_xys_opr): Rename `reg' local variable to
`reg_xys'.
(lea_reg_xys): Likewise.
(print_insn_loop_primitive): Rename `reg' local variable to
`reg_dxy'.
opcodes/ChangeLog
opcodes/s12z-dis.c
This page took 0.025463 seconds and 4 git commands to generate.