1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-01-12 01:20:20 +00:00

gdbc6x: gcc7 related fixes got accepted upstream, remove

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Denys Dmytriyenko
2018-08-22 03:25:58 +00:00
parent 9b33394ac9
commit 16af494ca3
10 changed files with 2 additions and 261 deletions

View File

@@ -1,8 +1,8 @@
# This corresponds to version 1.1.0
SRCREV = "df0b8f6f4e9ba5b9c94ea8c17c6dfeae37c1c9d1"
SRCREV = "d136542bbcad9489b8391550d8a8bee41076f080"
PV = "1.1.0"
INC_PR = "r3"
INC_PR = "r4"
SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"

View File

@@ -1,35 +0,0 @@
From 043a40fdc396118e099180b0ce0578ead24cf312 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 19:12:28 -0500
Subject: [PATCH] coffgen.c: adjust fall through comment to work with gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/bfd/coffgen.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdbc6x/bfd/coffgen.c b/gdbc6x/bfd/coffgen.c
index 07a527d..665df95 100644
--- a/gdbc6x/bfd/coffgen.c
+++ b/gdbc6x/bfd/coffgen.c
@@ -2116,7 +2116,7 @@ coff_print_symbol (bfd *abfd,
auxp->u.auxent.x_scn.x_comdat);
break;
}
- /* Otherwise fall through. */
+ /* Else 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. */
+ /* Else fall through. */
default:
fprintf (file, "AUX lnno %d size 0x%x tagndx %ld",
auxp->u.auxent.x_sym.x_misc.x_lnsz.x_lnno,
--
2.7.4

View File

@@ -1,26 +0,0 @@
From b77515953ba72728a10a46381d8b1dd73b89825d Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 20:19:51 -0500
Subject: [PATCH] elf.c: correct fallthrough comment to recognize by gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/bfd/elf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdbc6x/bfd/elf.c b/gdbc6x/bfd/elf.c
index ede51e9..80bac08 100644
--- a/gdbc6x/bfd/elf.c
+++ b/gdbc6x/bfd/elf.c
@@ -1595,7 +1595,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
if (hdr->sh_link == (SHN_LORESERVE & 0xffff) /* SHN_BEFORE */
|| hdr->sh_link == ((SHN_LORESERVE + 1) & 0xffff) /* SHN_AFTER */)
break;
- /* Otherwise fall through. */
+ /* Else fall through. */
default:
return FALSE;
}
--
2.7.4

View File

@@ -1,26 +0,0 @@
From fed1d4701b8442c613e7ebc0bb94b251844d3b1c Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 20:16:20 -0500
Subject: [PATCH] elf32-tic6x.c: fix implicit fallthrough error in gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/bfd/elf32-tic6x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdbc6x/bfd/elf32-tic6x.c b/gdbc6x/bfd/elf32-tic6x.c
index fe82c8f..b046566 100644
--- a/gdbc6x/bfd/elf32-tic6x.c
+++ b/gdbc6x/bfd/elf32-tic6x.c
@@ -2365,7 +2365,7 @@ elf32_tic6x_relocate_section (bfd *output_bfd,
goto done_reloc;
}
}
-
+ /* FALLTHRU */
case R_C6000_PCR_S12:
case R_C6000_PCR_S10:
case R_C6000_PCR_S7:
--
2.7.4

View File

@@ -1,25 +0,0 @@
From 1df6aeea82957cab8094043e458cd1ca0741eaef Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 20:25:40 -0500
Subject: [PATCH] elflink.c: fix implicit fallthrough error in gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/bfd/elflink.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdbc6x/bfd/elflink.c b/gdbc6x/bfd/elflink.c
index 7dcafd6..e173399 100644
--- a/gdbc6x/bfd/elflink.c
+++ b/gdbc6x/bfd/elflink.c
@@ -7698,6 +7698,7 @@ eval_symbol (bfd_vma *result,
case 'S':
symbol_is_section = TRUE;
+ /* FALLTHRU */
case 's':
++sym;
symlen = strtol (sym, (char **) symp, 10);
--
2.7.4

View File

@@ -1,26 +0,0 @@
From daca80121b92504c4a21e7420765a91d9625f2a4 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 20:11:45 -0500
Subject: [PATCH] ihex.c: fix format overflow error in gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/bfd/ihex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdbc6x/bfd/ihex.c b/gdbc6x/bfd/ihex.c
index 09f756a..abe7398 100644
--- a/gdbc6x/bfd/ihex.c
+++ b/gdbc6x/bfd/ihex.c
@@ -217,7 +217,7 @@ ihex_bad_byte (bfd *abfd, unsigned int lineno, int c, bfd_boolean error)
}
else
{
- char buf[10];
+ char buf[13];
if (! ISPRINT (c))
sprintf (buf, "\\%03o", (unsigned int) c);
--
2.7.4

View File

@@ -1,38 +0,0 @@
From e4708813cc0d08b75a8db49dcde0722f3d3add5c Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 19:30:22 -0500
Subject: [PATCH] reloc.c: add comments for implicit fallthrough error in gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/bfd/reloc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gdbc6x/bfd/reloc.c b/gdbc6x/bfd/reloc.c
index 0d191f1..a6e0e12 100644
--- a/gdbc6x/bfd/reloc.c
+++ b/gdbc6x/bfd/reloc.c
@@ -7254,15 +7254,20 @@ bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code)
{
case 64:
BFD_FAIL ();
+ /* FALLTHRU */
case 32:
return &bfd_howto_32;
case 16:
BFD_FAIL ();
+ /* FALLTHRU */
default:
BFD_FAIL ();
+ /* FALLTHRU */
}
+ /* FALLTHRU */
default:
BFD_FAIL ();
+ /* FALLTHRU */
}
return NULL;
}
--
2.7.4

View File

@@ -1,40 +0,0 @@
From 36293cf669de453207ce38cd8ac296df4a34e6b5 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 19:40:41 -0500
Subject: [PATCH] srec.c: fix implicit fallthrough and format overflow errors
in gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/bfd/srec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gdbc6x/bfd/srec.c b/gdbc6x/bfd/srec.c
index ded9e76..076e152 100644
--- a/gdbc6x/bfd/srec.c
+++ b/gdbc6x/bfd/srec.c
@@ -248,7 +248,7 @@ srec_bad_byte (bfd *abfd,
}
else
{
- char buf[10];
+ char buf[13];
if (! ISPRINT (c))
sprintf (buf, "\\%03o", (unsigned int) c);
@@ -961,10 +961,12 @@ srec_write_record (bfd *abfd,
case 7:
TOHEX (dst, (address >> 24), check_sum);
dst += 2;
+ /* FALLTHRU */
case 8:
case 2:
TOHEX (dst, (address >> 16), check_sum);
dst += 2;
+ /* FALLTHRU */
case 9:
case 1:
case 0:
--
2.7.4

View File

@@ -1,35 +0,0 @@
From b14e8814c467e8cea03725d2e7c937f352449ab6 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Fri, 10 Nov 2017 20:33:26 -0500
Subject: [PATCH] tic6x-dis.c: fix format truncation and implicit fallthrough
errors in gcc7
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
gdbc6x/opcodes/tic6x-dis.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gdbc6x/opcodes/tic6x-dis.c b/gdbc6x/opcodes/tic6x-dis.c
index d926d09..69ba999 100644
--- a/gdbc6x/opcodes/tic6x-dis.c
+++ b/gdbc6x/opcodes/tic6x-dis.c
@@ -691,7 +691,7 @@ print_insn_tic6x (bfd_vma addr, struct disassemble_info *info)
if (opc->flags & TIC6X_FLAG_INSN16_BSIDE && func_unit_side == 1)
func_unit_cross = 1;
- snprintf (func_unit_buf, 7, " .%c%u%s%s", func_unit_char,
+ snprintf (func_unit_buf, 8, " .%c%u%s%s", func_unit_char,
func_unit_side, (func_unit_cross ? "X" : ""), data_str);
func_unit = func_unit_buf;
}
@@ -1085,6 +1085,7 @@ print_insn_tic6x (bfd_vma addr, struct disassemble_info *info)
case tic6x_coding_mem_offset_minus_one_noscale:
case tic6x_coding_mem_offset_minus_one:
fld_val += 1;
+ /* FALLTHRU */
case tic6x_coding_mem_offset_noscale:
case tic6x_coding_mem_offset:
mem_offset = fld_val;
--
2.7.4

View File

@@ -11,14 +11,6 @@ PR = "${INC_PR}.1"
SRC_URI_append = " \
file://init \
file://0001-coffgen.c-adjust-fall-through-comment-to-work-with-g.patch;striplevel=2 \
file://0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch;striplevel=2 \
file://0001-srec.c-fix-implicit-fallthrough-and-format-overflow-.patch;striplevel=2 \
file://0001-ihex.c-fix-format-overflow-error-in-gcc7.patch;striplevel=2 \
file://0001-elf32-tic6x.c-fix-implicit-fallthrough-error-in-gcc7.patch;striplevel=2 \
file://0001-elf.c-correct-fallthrough-comment-to-recognize-by-gc.patch;striplevel=2 \
file://0001-elflink.c-fix-implicit-fallthrough-error-in-gcc7.patch;striplevel=2 \
file://0001-tic6x-dis.c-fix-format-truncation-and-implicit-fallt.patch;striplevel=2 \
"
S = "${WORKDIR}/git/gdbc6x"