diff options
author | Denys Dmytriyenko <denys@ti.com> | 2018-08-22 03:25:58 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2018-08-23 05:26:47 +0000 |
commit | e02913c3f772b74a6c56b0c83f43f9bffdca0dd9 (patch) | |
tree | 8c4bd508a200705e607ea904415f03d7f3adc3a9 | |
parent | a2de0fa0513565ad1a5c0d93fe19846447d885a2 (diff) | |
download | meta-ti-e02913c3f772b74a6c56b0c83f43f9bffdca0dd9.tar.gz |
gdbc6x: gcc7 related fixes got accepted upstream, remove
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
10 files changed, 2 insertions, 261 deletions
diff --git a/recipes-devtools/gdbc6x/gdbc6x.inc b/recipes-devtools/gdbc6x/gdbc6x.inc index df08ee5c..9fc2f1dd 100644 --- a/recipes-devtools/gdbc6x/gdbc6x.inc +++ b/recipes-devtools/gdbc6x/gdbc6x.inc | |||
@@ -1,8 +1,8 @@ | |||
1 | # This corresponds to version 1.1.0 | 1 | # This corresponds to version 1.1.0 |
2 | SRCREV = "df0b8f6f4e9ba5b9c94ea8c17c6dfeae37c1c9d1" | 2 | SRCREV = "d136542bbcad9489b8391550d8a8bee41076f080" |
3 | 3 | ||
4 | PV = "1.1.0" | 4 | PV = "1.1.0" |
5 | INC_PR = "r3" | 5 | INC_PR = "r4" |
6 | 6 | ||
7 | SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}" | 7 | SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}" |
8 | 8 | ||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-coffgen.c-adjust-fall-through-comment-to-work-with-g.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-coffgen.c-adjust-fall-through-comment-to-work-with-g.patch deleted file mode 100644 index eb72db9e..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-coffgen.c-adjust-fall-through-comment-to-work-with-g.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 043a40fdc396118e099180b0ce0578ead24cf312 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 19:12:28 -0500 | ||
4 | Subject: [PATCH] coffgen.c: adjust fall through comment to work with gcc7 | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/coffgen.c | 4 ++-- | ||
9 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/coffgen.c b/gdbc6x/bfd/coffgen.c | ||
12 | index 07a527d..665df95 100644 | ||
13 | --- a/gdbc6x/bfd/coffgen.c | ||
14 | +++ b/gdbc6x/bfd/coffgen.c | ||
15 | @@ -2116,7 +2116,7 @@ coff_print_symbol (bfd *abfd, | ||
16 | auxp->u.auxent.x_scn.x_comdat); | ||
17 | break; | ||
18 | } | ||
19 | - /* Otherwise fall through. */ | ||
20 | + /* Else fall through. */ | ||
21 | case C_EXT: | ||
22 | case C_AIX_WEAKEXT: | ||
23 | if (ISFCN (combined->u.syment.n_type)) | ||
24 | @@ -2136,7 +2136,7 @@ coff_print_symbol (bfd *abfd, | ||
25 | llnos, next); | ||
26 | break; | ||
27 | } | ||
28 | - /* Otherwise fall through. */ | ||
29 | + /* Else fall through. */ | ||
30 | default: | ||
31 | fprintf (file, "AUX lnno %d size 0x%x tagndx %ld", | ||
32 | auxp->u.auxent.x_sym.x_misc.x_lnsz.x_lnno, | ||
33 | -- | ||
34 | 2.7.4 | ||
35 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-elf.c-correct-fallthrough-comment-to-recognize-by-gc.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-elf.c-correct-fallthrough-comment-to-recognize-by-gc.patch deleted file mode 100644 index de5f1ca1..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-elf.c-correct-fallthrough-comment-to-recognize-by-gc.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From b77515953ba72728a10a46381d8b1dd73b89825d Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 20:19:51 -0500 | ||
4 | Subject: [PATCH] elf.c: correct fallthrough comment to recognize by gcc7 | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/elf.c | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/elf.c b/gdbc6x/bfd/elf.c | ||
12 | index ede51e9..80bac08 100644 | ||
13 | --- a/gdbc6x/bfd/elf.c | ||
14 | +++ b/gdbc6x/bfd/elf.c | ||
15 | @@ -1595,7 +1595,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex) | ||
16 | if (hdr->sh_link == (SHN_LORESERVE & 0xffff) /* SHN_BEFORE */ | ||
17 | || hdr->sh_link == ((SHN_LORESERVE + 1) & 0xffff) /* SHN_AFTER */) | ||
18 | break; | ||
19 | - /* Otherwise fall through. */ | ||
20 | + /* Else fall through. */ | ||
21 | default: | ||
22 | return FALSE; | ||
23 | } | ||
24 | -- | ||
25 | 2.7.4 | ||
26 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-elf32-tic6x.c-fix-implicit-fallthrough-error-in-gcc7.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-elf32-tic6x.c-fix-implicit-fallthrough-error-in-gcc7.patch deleted file mode 100644 index 5591f83a..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-elf32-tic6x.c-fix-implicit-fallthrough-error-in-gcc7.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From fed1d4701b8442c613e7ebc0bb94b251844d3b1c Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 20:16:20 -0500 | ||
4 | Subject: [PATCH] elf32-tic6x.c: fix implicit fallthrough error in gcc7 | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/elf32-tic6x.c | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/elf32-tic6x.c b/gdbc6x/bfd/elf32-tic6x.c | ||
12 | index fe82c8f..b046566 100644 | ||
13 | --- a/gdbc6x/bfd/elf32-tic6x.c | ||
14 | +++ b/gdbc6x/bfd/elf32-tic6x.c | ||
15 | @@ -2365,7 +2365,7 @@ elf32_tic6x_relocate_section (bfd *output_bfd, | ||
16 | goto done_reloc; | ||
17 | } | ||
18 | } | ||
19 | - | ||
20 | + /* FALLTHRU */ | ||
21 | case R_C6000_PCR_S12: | ||
22 | case R_C6000_PCR_S10: | ||
23 | case R_C6000_PCR_S7: | ||
24 | -- | ||
25 | 2.7.4 | ||
26 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-elflink.c-fix-implicit-fallthrough-error-in-gcc7.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-elflink.c-fix-implicit-fallthrough-error-in-gcc7.patch deleted file mode 100644 index 875d7866..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-elflink.c-fix-implicit-fallthrough-error-in-gcc7.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | From 1df6aeea82957cab8094043e458cd1ca0741eaef Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 20:25:40 -0500 | ||
4 | Subject: [PATCH] elflink.c: fix implicit fallthrough error in gcc7 | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/elflink.c | 1 + | ||
9 | 1 file changed, 1 insertion(+) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/elflink.c b/gdbc6x/bfd/elflink.c | ||
12 | index 7dcafd6..e173399 100644 | ||
13 | --- a/gdbc6x/bfd/elflink.c | ||
14 | +++ b/gdbc6x/bfd/elflink.c | ||
15 | @@ -7698,6 +7698,7 @@ eval_symbol (bfd_vma *result, | ||
16 | |||
17 | case 'S': | ||
18 | symbol_is_section = TRUE; | ||
19 | + /* FALLTHRU */ | ||
20 | case 's': | ||
21 | ++sym; | ||
22 | symlen = strtol (sym, (char **) symp, 10); | ||
23 | -- | ||
24 | 2.7.4 | ||
25 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-ihex.c-fix-format-overflow-error-in-gcc7.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-ihex.c-fix-format-overflow-error-in-gcc7.patch deleted file mode 100644 index 95b6e449..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-ihex.c-fix-format-overflow-error-in-gcc7.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From daca80121b92504c4a21e7420765a91d9625f2a4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 20:11:45 -0500 | ||
4 | Subject: [PATCH] ihex.c: fix format overflow error in gcc7 | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/ihex.c | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/ihex.c b/gdbc6x/bfd/ihex.c | ||
12 | index 09f756a..abe7398 100644 | ||
13 | --- a/gdbc6x/bfd/ihex.c | ||
14 | +++ b/gdbc6x/bfd/ihex.c | ||
15 | @@ -217,7 +217,7 @@ ihex_bad_byte (bfd *abfd, unsigned int lineno, int c, bfd_boolean error) | ||
16 | } | ||
17 | else | ||
18 | { | ||
19 | - char buf[10]; | ||
20 | + char buf[13]; | ||
21 | |||
22 | if (! ISPRINT (c)) | ||
23 | sprintf (buf, "\\%03o", (unsigned int) c); | ||
24 | -- | ||
25 | 2.7.4 | ||
26 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch deleted file mode 100644 index a21d4212..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From e4708813cc0d08b75a8db49dcde0722f3d3add5c Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 19:30:22 -0500 | ||
4 | Subject: [PATCH] reloc.c: add comments for implicit fallthrough error in gcc7 | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/reloc.c | 5 +++++ | ||
9 | 1 file changed, 5 insertions(+) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/reloc.c b/gdbc6x/bfd/reloc.c | ||
12 | index 0d191f1..a6e0e12 100644 | ||
13 | --- a/gdbc6x/bfd/reloc.c | ||
14 | +++ b/gdbc6x/bfd/reloc.c | ||
15 | @@ -7254,15 +7254,20 @@ bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code) | ||
16 | { | ||
17 | case 64: | ||
18 | BFD_FAIL (); | ||
19 | + /* FALLTHRU */ | ||
20 | case 32: | ||
21 | return &bfd_howto_32; | ||
22 | case 16: | ||
23 | BFD_FAIL (); | ||
24 | + /* FALLTHRU */ | ||
25 | default: | ||
26 | BFD_FAIL (); | ||
27 | + /* FALLTHRU */ | ||
28 | } | ||
29 | + /* FALLTHRU */ | ||
30 | default: | ||
31 | BFD_FAIL (); | ||
32 | + /* FALLTHRU */ | ||
33 | } | ||
34 | return NULL; | ||
35 | } | ||
36 | -- | ||
37 | 2.7.4 | ||
38 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-srec.c-fix-implicit-fallthrough-and-format-overflow-.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-srec.c-fix-implicit-fallthrough-and-format-overflow-.patch deleted file mode 100644 index 9ecb5a4a..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-srec.c-fix-implicit-fallthrough-and-format-overflow-.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 36293cf669de453207ce38cd8ac296df4a34e6b5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 19:40:41 -0500 | ||
4 | Subject: [PATCH] srec.c: fix implicit fallthrough and format overflow errors | ||
5 | in gcc7 | ||
6 | |||
7 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
8 | --- | ||
9 | gdbc6x/bfd/srec.c | 4 +++- | ||
10 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/gdbc6x/bfd/srec.c b/gdbc6x/bfd/srec.c | ||
13 | index ded9e76..076e152 100644 | ||
14 | --- a/gdbc6x/bfd/srec.c | ||
15 | +++ b/gdbc6x/bfd/srec.c | ||
16 | @@ -248,7 +248,7 @@ srec_bad_byte (bfd *abfd, | ||
17 | } | ||
18 | else | ||
19 | { | ||
20 | - char buf[10]; | ||
21 | + char buf[13]; | ||
22 | |||
23 | if (! ISPRINT (c)) | ||
24 | sprintf (buf, "\\%03o", (unsigned int) c); | ||
25 | @@ -961,10 +961,12 @@ srec_write_record (bfd *abfd, | ||
26 | case 7: | ||
27 | TOHEX (dst, (address >> 24), check_sum); | ||
28 | dst += 2; | ||
29 | + /* FALLTHRU */ | ||
30 | case 8: | ||
31 | case 2: | ||
32 | TOHEX (dst, (address >> 16), check_sum); | ||
33 | dst += 2; | ||
34 | + /* FALLTHRU */ | ||
35 | case 9: | ||
36 | case 1: | ||
37 | case 0: | ||
38 | -- | ||
39 | 2.7.4 | ||
40 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-tic6x-dis.c-fix-format-truncation-and-implicit-fallt.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-tic6x-dis.c-fix-format-truncation-and-implicit-fallt.patch deleted file mode 100644 index e7c7d655..00000000 --- a/recipes-devtools/gdbc6x/gdbc6x/0001-tic6x-dis.c-fix-format-truncation-and-implicit-fallt.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From b14e8814c467e8cea03725d2e7c937f352449ab6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 20:33:26 -0500 | ||
4 | Subject: [PATCH] tic6x-dis.c: fix format truncation and implicit fallthrough | ||
5 | errors in gcc7 | ||
6 | |||
7 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
8 | --- | ||
9 | gdbc6x/opcodes/tic6x-dis.c | 3 ++- | ||
10 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/gdbc6x/opcodes/tic6x-dis.c b/gdbc6x/opcodes/tic6x-dis.c | ||
13 | index d926d09..69ba999 100644 | ||
14 | --- a/gdbc6x/opcodes/tic6x-dis.c | ||
15 | +++ b/gdbc6x/opcodes/tic6x-dis.c | ||
16 | @@ -691,7 +691,7 @@ print_insn_tic6x (bfd_vma addr, struct disassemble_info *info) | ||
17 | if (opc->flags & TIC6X_FLAG_INSN16_BSIDE && func_unit_side == 1) | ||
18 | func_unit_cross = 1; | ||
19 | |||
20 | - snprintf (func_unit_buf, 7, " .%c%u%s%s", func_unit_char, | ||
21 | + snprintf (func_unit_buf, 8, " .%c%u%s%s", func_unit_char, | ||
22 | func_unit_side, (func_unit_cross ? "X" : ""), data_str); | ||
23 | func_unit = func_unit_buf; | ||
24 | } | ||
25 | @@ -1085,6 +1085,7 @@ print_insn_tic6x (bfd_vma addr, struct disassemble_info *info) | ||
26 | case tic6x_coding_mem_offset_minus_one_noscale: | ||
27 | case tic6x_coding_mem_offset_minus_one: | ||
28 | fld_val += 1; | ||
29 | + /* FALLTHRU */ | ||
30 | case tic6x_coding_mem_offset_noscale: | ||
31 | case tic6x_coding_mem_offset: | ||
32 | mem_offset = fld_val; | ||
33 | -- | ||
34 | 2.7.4 | ||
35 | |||
diff --git a/recipes-devtools/gdbc6x/gdbc6x_git.bb b/recipes-devtools/gdbc6x/gdbc6x_git.bb index be6f5066..8ab9cf90 100644 --- a/recipes-devtools/gdbc6x/gdbc6x_git.bb +++ b/recipes-devtools/gdbc6x/gdbc6x_git.bb | |||
@@ -11,14 +11,6 @@ PR = "${INC_PR}.1" | |||
11 | 11 | ||
12 | SRC_URI_append = " \ | 12 | SRC_URI_append = " \ |
13 | file://init \ | 13 | file://init \ |
14 | file://0001-coffgen.c-adjust-fall-through-comment-to-work-with-g.patch;striplevel=2 \ | ||
15 | file://0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch;striplevel=2 \ | ||
16 | file://0001-srec.c-fix-implicit-fallthrough-and-format-overflow-.patch;striplevel=2 \ | ||
17 | file://0001-ihex.c-fix-format-overflow-error-in-gcc7.patch;striplevel=2 \ | ||
18 | file://0001-elf32-tic6x.c-fix-implicit-fallthrough-error-in-gcc7.patch;striplevel=2 \ | ||
19 | file://0001-elf.c-correct-fallthrough-comment-to-recognize-by-gc.patch;striplevel=2 \ | ||
20 | file://0001-elflink.c-fix-implicit-fallthrough-error-in-gcc7.patch;striplevel=2 \ | ||
21 | file://0001-tic6x-dis.c-fix-format-truncation-and-implicit-fallt.patch;striplevel=2 \ | ||
22 | " | 14 | " |
23 | 15 | ||
24 | S = "${WORKDIR}/git/gdbc6x" | 16 | S = "${WORKDIR}/git/gdbc6x" |