aboutsummaryrefslogtreecommitdiff
path: root/ld/ldver.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@mips.com>2018-07-09 15:50:57 +0100
committerMaciej W. Rozycki <macro@mips.com>2018-07-09 15:50:57 +0100
commit9dcb0ba4457b8845fb704635e824471bf1faf092 (patch)
tree6b4513b752b31c194a91142b5210650509fdcd5e /ld/ldver.c
parentc8ad9b9a31aa3e6039567fc1f152dd454c946d5f (diff)
downloadgdb-9dcb0ba4457b8845fb704635e824471bf1faf092.zip
gdb-9dcb0ba4457b8845fb704635e824471bf1faf092.tar.gz
gdb-9dcb0ba4457b8845fb704635e824471bf1faf092.tar.bz2
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'.
Diffstat (limited to 'ld/ldver.c')
0 files changed, 0 insertions, 0 deletions