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 | e65b1a78686f840ab46fe97355d674919185adc8 (patch) | |
tree | c785458d01347accea7c20a5c08284d9618a5127 /gas/config | |
parent | 2d6dda71611ba6cc16fe2bd21ac816d5f7d1e74d (diff) | |
download | gdb-e65b1a78686f840ab46fe97355d674919185adc8.zip gdb-e65b1a78686f840ab46fe97355d674919185adc8.tar.gz gdb-e65b1a78686f840ab46fe97355d674919185adc8.tar.bz2 |
RISC-V/BFD: Correct a missing initializer error with pre-4.7 GCC
Correct a commit 9d06997adb88 ("RISC-V: Relax RISCV_PCREL_* to
RISCV_GPREL_*") regression and remove a `-Wmissing-field-initializers'
compilation error:
cc1: warnings being treated as errors
.../bfd/elfnn-riscv.c: In function '_bfd_riscv_relax_pc':
.../bfd/elfnn-riscv.c:3117: error: missing initializer
.../bfd/elfnn-riscv.c:3117: error: (near initialization for 'hi_reloc.hi_addend')
make[4]: *** [elf64-riscv.lo] Error 1
which for versions of GCC before 4.7 prevents support for RISC-V targets
from being built. See also GCC PR c/36750.
bfd/
* elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
initialize `hi_reloc'.
Diffstat (limited to 'gas/config')
0 files changed, 0 insertions, 0 deletions