diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/binutils/binutils/0033-Fix-various-compile-warnings.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/binutils/binutils/0033-Fix-various-compile-warnings.patch | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0033-Fix-various-compile-warnings.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0033-Fix-various-compile-warnings.patch deleted file mode 100644 index 7339995e..00000000 --- a/meta-microblaze/recipes-devtools/binutils/binutils/0033-Fix-various-compile-warnings.patch +++ /dev/null | |||
@@ -1,105 +0,0 @@ | |||
1 | From d9114e764eb42ae1daaf6af7c2a5e48fc764109d Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Hatle <mark.hatle@kernel.crashing.org> | ||
3 | Date: Fri, 17 Jul 2020 09:20:54 -0500 | ||
4 | Subject: [PATCH 33/40] Fix various compile warnings | ||
5 | |||
6 | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> | ||
7 | --- | ||
8 | bfd/elf64-microblaze.c | 9 +++++---- | ||
9 | gas/config/tc-microblaze.c | 11 +++++------ | ||
10 | 2 files changed, 10 insertions(+), 10 deletions(-) | ||
11 | |||
12 | diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c | ||
13 | index b002b414d64..8308f1ebd09 100644 | ||
14 | --- a/bfd/elf64-microblaze.c | ||
15 | +++ b/bfd/elf64-microblaze.c | ||
16 | @@ -692,7 +692,7 @@ microblaze_elf_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, | ||
17 | /* Set the howto pointer for a RCE ELF reloc. */ | ||
18 | |||
19 | static bfd_boolean | ||
20 | -microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED, | ||
21 | +microblaze_elf_info_to_howto (bfd * abfd, | ||
22 | arelent * cache_ptr, | ||
23 | Elf_Internal_Rela * dst) | ||
24 | { | ||
25 | @@ -705,14 +705,14 @@ microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED, | ||
26 | r_type = ELF64_R_TYPE (dst->r_info); | ||
27 | if (r_type >= R_MICROBLAZE_max) | ||
28 | { | ||
29 | - (*_bfd_error_handler) (_("%pB: unrecognised MicroBlaze reloc number: %d"), | ||
30 | + _bfd_error_handler (_("%pB: unsupported relocation type %#x"), | ||
31 | abfd, r_type); | ||
32 | bfd_set_error (bfd_error_bad_value); | ||
33 | return FALSE; | ||
34 | } | ||
35 | |||
36 | cache_ptr->howto = microblaze_elf_howto_table [r_type]; | ||
37 | - return TRUE; | ||
38 | + return TRUE; | ||
39 | } | ||
40 | |||
41 | /* Microblaze ELF local labels start with 'L.' or '$L', not '.L'. */ | ||
42 | @@ -1560,7 +1560,7 @@ microblaze_elf_relocate_section (bfd *output_bfd, | ||
43 | else | ||
44 | { | ||
45 | BFD_FAIL (); | ||
46 | - (*_bfd_error_handler) | ||
47 | + _bfd_error_handler | ||
48 | (_("%pB: probably compiled without -fPIC?"), | ||
49 | input_bfd); | ||
50 | bfd_set_error (bfd_error_bad_value); | ||
51 | @@ -2554,6 +2554,7 @@ microblaze_elf_check_relocs (bfd * abfd, | ||
52 | goto dogottls; | ||
53 | case R_MICROBLAZE_TLSLD: | ||
54 | tls_type |= (TLS_TLS | TLS_LD); | ||
55 | + /* Fall through. */ | ||
56 | dogottls: | ||
57 | sec->has_tls_reloc = 1; | ||
58 | /* Fall through. */ | ||
59 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | ||
60 | index da99d4ef482..62daa56b47a 100644 | ||
61 | --- a/gas/config/tc-microblaze.c | ||
62 | +++ b/gas/config/tc-microblaze.c | ||
63 | @@ -1091,7 +1091,6 @@ md_assemble (char * str) | ||
64 | reg = is_reg (temp_op_end + 1); | ||
65 | if (reg) | ||
66 | { | ||
67 | - | ||
68 | opcode->inst_type=INST_TYPE_RD_R1_IMML; | ||
69 | opcode->inst_offset_type = OPCODE_MASK_H; | ||
70 | if (streq (name, "addli")) | ||
71 | @@ -1242,18 +1241,18 @@ md_assemble (char * str) | ||
72 | else if (streq (name, "smi")) | ||
73 | as_fatal (_("smi pseudo instruction should not use a label in imm field")); | ||
74 | if(streq (name, "lli") || streq (name, "sli")) | ||
75 | - opc = str_microblaze_64; | ||
76 | + opc = strdup(str_microblaze_64); | ||
77 | else if ((microblaze_arch_size == 64) && ((streq (name, "lbui") | ||
78 | || streq (name, "lhui") || streq (name, "lwi") || streq (name, "sbi") | ||
79 | || streq (name, "shi") || streq (name, "swi")))) | ||
80 | { | ||
81 | - opc = str_microblaze_64; | ||
82 | + opc = strdup(str_microblaze_64); | ||
83 | subtype = opcode->inst_offset_type; | ||
84 | } | ||
85 | else if (reg2 == REG_ROSDP) | ||
86 | - opc = str_microblaze_ro_anchor; | ||
87 | + opc = strdup(str_microblaze_ro_anchor); | ||
88 | else if (reg2 == REG_RWSDP) | ||
89 | - opc = str_microblaze_rw_anchor; | ||
90 | + opc = strdup(str_microblaze_rw_anchor); | ||
91 | else | ||
92 | opc = NULL; | ||
93 | if (exp.X_md != 0) | ||
94 | @@ -1718,7 +1717,7 @@ md_assemble (char * str) | ||
95 | inst |= (reg1 << RD_LOW) & RD_MASK; | ||
96 | inst |= (immed << IMM_LOW) & IMM16_MASK; | ||
97 | break; | ||
98 | - | ||
99 | + | ||
100 | case INST_TYPE_R1_RFSL: | ||
101 | if (strcmp (op_end, "")) | ||
102 | op_end = parse_reg (op_end + 1, ®1); /* Get r1. */ | ||
103 | -- | ||
104 | 2.17.1 | ||
105 | |||