diff options
author | Maciej W. Rozycki <macro@mips.com> | 2018-02-05 14:05:51 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@mips.com> | 2018-02-05 14:06:46 +0000 |
commit | 89424b1d6965bcda21a225d0f545f43d9294ff21 (patch) | |
tree | 5d188a8c4c826f4fde850597af21f0da223d0dec /gdb | |
parent | e65b1a78686f840ab46fe97355d674919185adc8 (diff) | |
download | gdb-89424b1d6965bcda21a225d0f545f43d9294ff21.zip gdb-89424b1d6965bcda21a225d0f545f43d9294ff21.tar.gz gdb-89424b1d6965bcda21a225d0f545f43d9294ff21.tar.bz2 |
RISC-V/GAS: Correct an `expr' global shadowing error for pre-4.8 GCC
Correct a commit f0531ed6a429 ("Compress loads/stores with implicit 0
offset.") regression and remove a `-Wshadow' compilation error:
cc1: warnings being treated as errors
.../gas/config/tc-riscv.c: In function 'riscv_handle_implicit_zero_offset':
.../gas/config/tc-riscv.c:1194: error: declaration of 'expr' shadows a global declaration
.../gas/expr.h:180: error: shadowed declaration is here
make[4]: *** [tc-riscv.o] Error 1
which for versions of GCC before 4.8 prevents GAS for RISC-V targets
from being built. See also GCC PR c/53066.
gas/
* config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
`expr' parameter to `ep'.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions