Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/external/gpl3/gdb/dist/bfd Apply patch, requested by mrg ...
details: https://anonhg.NetBSD.org/src/rev/e4f37db97d35
branches: netbsd-7
changeset: 453916:e4f37db97d35
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 01 10:01:50 2019 +0000
description:
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.
diffstat:
external/gpl3/gdb/dist/bfd/coffgen.c | 4 ++--
external/gpl3/gdb/dist/bfd/elf.c | 2 +-
external/gpl3/gdb/dist/bfd/elflink.c | 1 +
external/gpl3/gdb/dist/bfd/reloc.c | 3 +++
external/gpl3/gdb/dist/bfd/srec.c | 2 ++
5 files changed, 9 insertions(+), 3 deletions(-)
diffs (79 lines):
diff -r 119226cb5748 -r e4f37db97d35 external/gpl3/gdb/dist/bfd/coffgen.c
--- a/external/gpl3/gdb/dist/bfd/coffgen.c Thu Aug 29 16:14:07 2019 +0000
+++ b/external/gpl3/gdb/dist/bfd/coffgen.c Sun Sep 01 10:01:50 2019 +0000
@@ -2116,7 +2116,7 @@
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 @@
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,
diff -r 119226cb5748 -r e4f37db97d35 external/gpl3/gdb/dist/bfd/elf.c
--- a/external/gpl3/gdb/dist/bfd/elf.c Thu Aug 29 16:14:07 2019 +0000
+++ b/external/gpl3/gdb/dist/bfd/elf.c Sun Sep 01 10:01:50 2019 +0000
@@ -1595,7 +1595,7 @@
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;
}
diff -r 119226cb5748 -r e4f37db97d35 external/gpl3/gdb/dist/bfd/elflink.c
--- a/external/gpl3/gdb/dist/bfd/elflink.c Thu Aug 29 16:14:07 2019 +0000
+++ b/external/gpl3/gdb/dist/bfd/elflink.c Sun Sep 01 10:01:50 2019 +0000
@@ -7698,6 +7698,7 @@
case 'S':
symbol_is_section = TRUE;
+ /* Fall through. */
case 's':
++sym;
symlen = strtol (sym, (char **) symp, 10);
diff -r 119226cb5748 -r e4f37db97d35 external/gpl3/gdb/dist/bfd/reloc.c
--- a/external/gpl3/gdb/dist/bfd/reloc.c Thu Aug 29 16:14:07 2019 +0000
+++ b/external/gpl3/gdb/dist/bfd/reloc.c Sun Sep 01 10:01:50 2019 +0000
@@ -7254,12 +7254,15 @@
{
case 64:
BFD_FAIL ();
+ break;
case 32:
return &bfd_howto_32;
case 16:
BFD_FAIL ();
+ break;
default:
BFD_FAIL ();
+ break;
}
default:
BFD_FAIL ();
diff -r 119226cb5748 -r e4f37db97d35 external/gpl3/gdb/dist/bfd/srec.c
--- a/external/gpl3/gdb/dist/bfd/srec.c Thu Aug 29 16:14:07 2019 +0000
+++ b/external/gpl3/gdb/dist/bfd/srec.c Sun Sep 01 10:01:50 2019 +0000
@@ -961,10 +961,12 @@
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:
Home |
Main Index |
Thread Index |
Old Index