Module Name: src Committed By: martin Date: Sun Sep 1 10:01:50 UTC 2019
Modified Files: src/external/gpl3/gdb/dist/bfd [netbsd-7]: coffgen.c elf.c elflink.c reloc.c srec.c Log Message: Apply patch, requested by mrg in ticket #1704: external/gpl3/gdb/dist/bfd/coffgen.c external/gpl3/gdb/dist/bfd/elf.c external/gpl3/gdb/dist/bfd/elflink.c external/gpl3/gdb/dist/bfd/reloc.c external/gpl3/gdb/dist/bfd/srec.c Cherry-pick fixes for newer compilers (fixing fallthrough warnings) from -current. To generate a diff of this commit: cvs rdiff -u -r1.1.1.3 -r1.1.1.3.2.1 src/external/gpl3/gdb/dist/bfd/coffgen.c \ src/external/gpl3/gdb/dist/bfd/elflink.c \ src/external/gpl3/gdb/dist/bfd/reloc.c \ src/external/gpl3/gdb/dist/bfd/srec.c cvs rdiff -u -r1.4 -r1.4.2.1 src/external/gpl3/gdb/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/bfd/coffgen.c diff -u src/external/gpl3/gdb/dist/bfd/coffgen.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/coffgen.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/coffgen.c:1.1.1.3 Sun Jun 22 23:39:47 2014 +++ src/external/gpl3/gdb/dist/bfd/coffgen.c Sun Sep 1 10:01:50 2019 @@ -2116,7 +2116,7 @@ coff_print_symbol (bfd *abfd, auxp->u.auxent.x_scn.x_comdat); break; } - /* Otherwise fall through. */ + /* Fall through. */ case C_EXT: case C_AIX_WEAKEXT: if (ISFCN (combined->u.syment.n_type)) @@ -2136,7 +2136,7 @@ coff_print_symbol (bfd *abfd, llnos, next); break; } - /* Otherwise fall through. */ + /* Fall through. */ default: fprintf (file, "AUX lnno %d size 0x%x tagndx %ld", auxp->u.auxent.x_sym.x_misc.x_lnsz.x_lnno, Index: src/external/gpl3/gdb/dist/bfd/elflink.c diff -u src/external/gpl3/gdb/dist/bfd/elflink.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/elflink.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/elflink.c:1.1.1.3 Sun Jun 22 23:39:55 2014 +++ src/external/gpl3/gdb/dist/bfd/elflink.c Sun Sep 1 10:01:50 2019 @@ -7698,6 +7698,7 @@ eval_symbol (bfd_vma *result, case 'S': symbol_is_section = TRUE; + /* Fall through. */ case 's': ++sym; symlen = strtol (sym, (char **) symp, 10); Index: src/external/gpl3/gdb/dist/bfd/reloc.c diff -u src/external/gpl3/gdb/dist/bfd/reloc.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/reloc.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/reloc.c:1.1.1.3 Sun Jun 22 23:39:47 2014 +++ src/external/gpl3/gdb/dist/bfd/reloc.c Sun Sep 1 10:01:50 2019 @@ -7254,12 +7254,15 @@ bfd_default_reloc_type_lookup (bfd *abfd { case 64: BFD_FAIL (); + break; case 32: return &bfd_howto_32; case 16: BFD_FAIL (); + break; default: BFD_FAIL (); + break; } default: BFD_FAIL (); Index: src/external/gpl3/gdb/dist/bfd/srec.c diff -u src/external/gpl3/gdb/dist/bfd/srec.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/srec.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/srec.c:1.1.1.3 Sun Jun 22 23:39:53 2014 +++ src/external/gpl3/gdb/dist/bfd/srec.c Sun Sep 1 10:01:50 2019 @@ -961,10 +961,12 @@ srec_write_record (bfd *abfd, case 7: TOHEX (dst, (address >> 24), check_sum); dst += 2; + /* Fall through. */ case 8: case 2: TOHEX (dst, (address >> 16), check_sum); dst += 2; + /* Fall through. */ case 9: case 1: case 0: Index: src/external/gpl3/gdb/dist/bfd/elf.c diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.4 src/external/gpl3/gdb/dist/bfd/elf.c:1.4.2.1 --- src/external/gpl3/gdb/dist/bfd/elf.c:1.4 Sun Jun 22 23:52:57 2014 +++ src/external/gpl3/gdb/dist/bfd/elf.c Sun Sep 1 10:01:50 2019 @@ -1595,7 +1595,7 @@ bfd_section_from_shdr (bfd *abfd, unsign if (hdr->sh_link == (SHN_LORESERVE & 0xffff) /* SHN_BEFORE */ || hdr->sh_link == ((SHN_LORESERVE + 1) & 0xffff) /* SHN_AFTER */) break; - /* Otherwise fall through. */ + /* Fall through. */ default: return FALSE; }