aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-csky.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-05-15 22:53:21 +0930
committerAlan Modra <amodra@gmail.com>2023-05-17 11:21:43 +0930
commit3318d80021140659fab083bc03cf6b0cc54a139d (patch)
tree999d535b9b13472bca6658f75e16b49276185c41 /bfd/elf32-csky.c
parentf5b7a67f8d0ffcb76a6185a531d87a2f010b1bbc (diff)
downloadgdb-3318d80021140659fab083bc03cf6b0cc54a139d.zip
gdb-3318d80021140659fab083bc03cf6b0cc54a139d.tar.gz
gdb-3318d80021140659fab083bc03cf6b0cc54a139d.tar.bz2
gcc-4.5 build fixes
Trying to build binutils with an older gcc currently fails. Working around these gcc bugs is not onerous so let's fix them. bfd/ * elf32-csky.c (csky_elf_size_dynamic_sections): Don't type-pun pointer. * elf32-rl78.c (rl78_compute_complex_reloc): Rename "stat" variable to "status". gas/ * compress-debug.c (compress_finish): Supply all fields in ZSTD_inBuffer initialisation. include/ * xtensa-dynconfig.h (xtensa_isa_internal): Delete unnecessary forward declaration. opcodes/ * loongarch-opc.c: Supply all fields of zero struct initialisation in various opcode tables.
Diffstat (limited to 'bfd/elf32-csky.c')
-rw-r--r--bfd/elf32-csky.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf32-csky.c b/bfd/elf32-csky.c
index 76567c7..40d7761 100644
--- a/bfd/elf32-csky.c
+++ b/bfd/elf32-csky.c
@@ -1942,8 +1942,7 @@ csky_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
{
struct elf_dyn_relocs *p;
- for (p = *((struct elf_dyn_relocs **)
- &elf_section_data (s)->local_dynrel);
+ for (p = elf_section_data (s)->local_dynrel;
p != NULL;
p = p->next)
{