]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/ChangeLog
3d5cfcae58ce98b4ad71cdbfe18ccdc8704370ae
[thirdparty/binutils-gdb.git] / gas / ChangeLog
1 2023-11-28 Jose E. Marchesi <jose.marchesi@oracle.com>
2
3 * NEWS: Add entry about change of comment syntax in the BPF
4 assembler.
5
6 2023-11-28 Jose E. Marchesi <jose.marchesi@oracle.com>
7
8 * config/tc-bpf.c: Semicolon does not start a comment, but
9 separates multiple commands on a single line.
10 * testsuite/gas/bpf/alu-pseudoc.s: Adapt test accordingly.
11 * testsuite/gas/bpf/spacing-pseudoc.s: Likewise.
12 * testsuite/gas/bpf/offset16-overflow.s: Likewise.
13 * testsuite/gas/bpf/jump-relax-jump.s: Likewise.
14 * testsuite/gas/bpf/jump-relax-ja.s: Likewise.
15 * testsuite/gas/bpf/imm32-overflow.s: Likewise.
16 * testsuite/gas/bpf/disp32-overflow.s: Likewise.
17 * testsuite/gas/bpf/disp16-overflow-relax.s: Likewise.
18 * testsuite/gas/bpf/disp16-overflow.s: Likewise.
19 * doc/c-bpf.texi (BPF Special Characters): Update.
20
21 2023-11-23 YunQiang Su <yunqiang.su@cipunited.com>
22
23 * testsuite/gas/mips/elf-rel.s: Use addiu in place of addi.
24 * testsuite/gas/mips/elf-rel.d: Update expected output.
25 * testsuite/gas/mips/elfel-rel.d: Likewise.
26
27 2023-11-23 YunQiang Su <yunqiang.su@cipunited.com>
28
29 * testsuite/gas/mips/branch-section-1.d: Allow for r6 encoding of
30 JR instruction.
31 * testsuite/gas/mips/branch-weak-1.d: Likewise.
32 * testsuite/gas/mips/option-pic-1.d: Likewise.
33 * testsuite/gas/mips/option-pic-relax-0.d: Likewise.
34 * testsuite/gas/mips/option-pic-relax-1.d: Likewise.
35
36 2023-11-18 Jose E. Marchesi <jemarch@gnu.org>
37
38 * config/tc-bpf.c (parse_bpf_register): Move before
39 bpf_parse_name.
40 (bpf_parse_name): Do not allow using symbols that are also
41 register names as operands in pseudo-c syntax.
42 * testsuite/gas/bpf/regs-for-symbols-pseudoc.d: New file.
43 * testsuite/gas/bpf/regs-for-symbols-pseudoc.s: Likewise.
44 * testsuite/gas/bpf/regs-for-symbols-pseudoc.l: Likewise.
45 * doc/c-bpf.texi (BPF Registers): Document that it is not possible
46 to refer to register names as symbols in instruction operands.
47
48 2023-11-15 YunQiang Su <yunqiang.su@cipunited.com>
49
50 * testsuite/gas/mips/mips.exp (mips_arch_create): Add "--defsym
51 r6=" to as_flags for r6 targets.
52
53 2023-11-15 Arsen Arsenović <arsen@aarsen.me>
54
55 * aclocal.m4: Regenerate.
56 * configure: Regenerate.
57 * po/Make-in ($(srcdir)/$(PACKAGE).pot): Output to a .pot
58 temporary file, to suppress xgettext checking charset names.
59
60 2023-11-15 YunQiang Su <yunqiang.su@cipunited.com>
61
62 * testsuite/gas/elf/elf.exp (section2): Add -mpdr option to
63 assembler command line for mips-irix targets.
64 * testsuite/gas/mips/elf-rel26.d: Add -mpdr command line option.
65 * testsuite/gas/mips/mips16-e.d: Likewise.
66 * testsuite/gas/mips/mips16-f.d: Likewise.
67 * testsuite/gas/mips/mips16-hilo-match.d: Likewise.
68 * testsuite/gas/mips/mips16-e-irix.d: Likewise.
69 * testsuite/gas/mips/call-nonpic-1.d: Adjust regexp to allow for
70 mips-irix targets.
71 * testsuite/gas/mips/irix-no-pdr.d: New test file.
72 * testsuite/gas/mips/mips.exp: Run new test for mips-irix
73 targets.
74
75 2023-10-30 Jose E. Marchesi <jose.marchesi@oracle.com>
76
77 * testsuite/gas/bpf/alu-pseudoc.s: Add test to make sure C-like
78 suffix `ll' is not interpreted as lddw syntax.
79 * testsuite/gas/bpf/alu-pseudoc.d: Update expected results.
80 * testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
81
82 2023-10-02 Nick Clifton <nickc@redhat.com>
83
84 PR 30861
85 * config/tc-riscv.c (riscv_insert_uleb128_fixes): Release
86 duplicated memory.
87
88 2023-09-18 Jacob Navia <jacob@jacob.remcomp.fr>
89
90 * config/tc-riscv.c (riscv_ip_hardcode): Fully initialise the
91 allocated riscv_opcode structure.
92
93 2023-08-17 Jose E. Marchesi <jose.marchesi@oracle.com>
94
95 * config/tc-bpf.c (check_immediate_overflow): New function.
96 (encode_insn): Use check_immediate_overflow.
97 (md_assemble): Do not relax instructions with
98 constant disp16 fields.
99 * doc/c-bpf.texi (BPF Instructions): Add note about how numerical
100 literal values are interpreted for instruction immediate operands.
101 * testsuite/gas/bpf/disp16-overflow.s: Adapt accordingly.
102 * testsuite/gas/bpf/jump-relax-jump.s: Likewise.
103 * testsuite/gas/bpf/jump-relax-jump.d: Likewise.
104 * testsuite/gas/bpf/jump-relax-jump-be.d: Likewise.
105 * testsuite/gas/bpf/jump-relax-ja.s: Likewise.
106 * testsuite/gas/bpf/jump-relax-ja.d: Likewise.
107 * testsuite/gas/bpf/jump-relax-ja-be.d: Likewise.
108 * testsuite/gas/bpf/disp16-overflow-relax.l: Likewise.
109 * testsuite/gas/bpf/imm32-overflow.s: Likewise.
110 * testsuite/gas/bpf/disp32-overflow.s: Likewise.
111 * testsuite/gas/bpf/disp16-overflow.l: Likewise.
112 * testsuite/gas/bpf/disp32-overflow.l: Likewise.
113 * testsuite/gas/bpf/imm32-overflow.l: Likewise.
114 * testsuite/gas/bpf/offset16-overflow.l: Likewise.
115
116 2023-07-30 Jose E. Marchesi <jose.marchesi@oracle.com>
117
118 * config/tc-bpf.h (elf_tc_final_processing): Define.
119 * config/tc-bpf.c (bpf_elf_final_processing): New function.
120
121 2023-07-30 Jose E. Marchesi <jose.marchesi@oracle.com>
122
123 * config/tc-bpf.c (signed_overflow): Copy function from
124 tc-aarch64.c.
125 (encode_insn): Check for overflow in constant immediates.
126 (add_relaxed_insn): Pass relax argument to encode_insn.
127 (add_fixed_insn): Likewise.
128 * testsuite/gas/bpf/disp16-overflow.d: New file.
129 * testsuite/gas/bpf/disp16-overflow.s: Likewise.
130 * testsuite/gas/bpf/disp16-overflow.l: Likewise.
131 * testsuite/gas/bpf/disp32-overflow.d: Likewise.
132 * testsuite/gas/bpf/disp32-overflow.s: Likewise.
133 * testsuite/gas/bpf/disp32-overflow.l: Likewise.
134 * testsuite/gas/bpf/imm32-overflow.d: Likewise.
135 * testsuite/gas/bpf/imm32-overflow.s: Likewise.
136 * testsuite/gas/bpf/imm32-overflow.l: Likewise.
137 * testsuite/gas/bpf/offset16-overflow.d: Likewise.
138 * testsuite/gas/bpf/offset16-overflow.s: Likewise.
139 * testsuite/gas/bpf/offset16-overflow.l: Likewise.
140 * testsuite/gas/bpf/disp16-overflow-relax.d: Likewise.
141 * testsuite/gas/bpf/disp16-overflow-relax.l: Likewise.
142 * testsuite/gas/bpf/disp16-overflow-relax.s: Likewise.
143 * testsuite/gas/bpf/jump-relax-jump-be.d: New file.
144 * testsuite/gas/bpf/bpf.exp: Run new tests.
145
146 2023-07-28 Jose E. Marchesi <jose.marchesi@oracle.com>
147
148 PR gas/30690
149 * config/tc-bpf.c (struct bpf_insn): Add fields is_relaxable and
150 relaxed_exp.
151 (enum options): Add OPTION_NO_RELAX.
152 (md_longopts): Likewise for -mno-relax.
153 (do_relax): New global.
154 (md_parse_option): Handle OPTION_NO_RELAX.
155 (RELAX_BRANCH_ENCODE): Define.
156 (RELAX_BRANCH_P): Likewise.
157 (RELAX_BRANCH_LENGTH): Likewise.
158 (RELAX_BRANCH_CONST): Likewise.
159 (RELAX_BRANCH_UNCOND): Likewise.
160 (relaxed_branch_length): New function.
161 (md_estimate_size_before_relax): Likewise.
162 (read_insn_word): Likewise.
163 (encode_int16): Likewise.
164 (encode_int32): Likewise.
165 (write_insn_bytes): Likewise.
166 (md_convert_frag): Likewise.
167 (encode_insn): Likewise.
168 (install_insn_fixups): Likewise.
169 (add_fixed_insn): Likewise.
170 (add_relaxed_insn): Likewise.
171 (md_assemble): Move instruction encoding logic to the above
172 new functions.
173 * testsuite/gas/bpf/jump-relax-ja.d: New test.
174 * testsuite/gas/bpf/jump-relax-ja-be.d: Likewise.
175 * testsuite/gas/bpf/jump-relax-ja.s: And corresponding source.
176 * testsuite/gas/bpf/jump-relax-jump.d: New test.
177 * testsuite/gas/bpf/jump-relax-jump-be.d: Likewise.
178 * testsuite/gas/bpf/jump-relax-jump.s: And corresponding source.
179 * testsuite/gas/bpf/bpf.exp: Run new tests.
180 * doc/c-bpf.texi (BPF Options): Document -mno-relax.
181
182 2023-07-26 Jose E. Marchesi <jose.marchesi@oracle.com>
183
184 * testsuite/gas/bpf/alu.s: Add test for NEGI and NEG32I.
185 * testsuite/gas/bpf/alu32.s: Likewise.
186 * testsuite/gas/bpf/alu-pseudoc.s: Likewise.
187 * testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
188 * testsuite/gas/bpf/alu.d: Add expected results.
189 * testsuite/gas/bpf/alu-be.d: Likewise.
190 * testsuite/gas/bpf/alu-pseudoc.d: Likewise.
191 * testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
192 * testsuite/gas/bpf/alu32.d: Likewise.
193 * testsuite/gas/bpf/alu32-be.d: Likewise.
194 * testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.
195
196 2023-07-26 Jose E. Marchesi <jose.marchesi@oracle.com>
197
198 * testsuite/gas/bpf/alu.s: The register neg instruction gets only
199 one argument.
200 * testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.
201 * testsuite/gas/bpf/alu32-pseudoc.d: Likewise.
202 * testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
203 * testsuite/gas/bpf/alu-pseudoc.d: Likewise.
204 * testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
205 * testsuite/gas/bpf/alu-pseudoc.s: Likewise.
206 * testsuite/gas/bpf/alu-be.d: Likewise.
207 * testsuite/gas/bpf/alu.d: Likewise.
208 * testsuite/gas/bpf/alu32-be.d: Likewise.
209 * testsuite/gas/bpf/alu32.d: Likewise.
210 * testsuite/gas/bpf/alu32.s: Likewise.
211 * doc/c-bpf.texi (BPF Instructions): Update accordingly.
212
213 2023-07-24 Jose E. Marchesi <jose.marchesi@oracle.com>
214
215 * doc/c-bpf.texi (BPF Instructions): Document BSWAP* instructions.
216 * testsuite/gas/bpf/alu.s: Test BSWAP{16,32,64} instructions.
217 * testsuite/gas/bpf/alu.d: Likewise.
218 * testsuite/gas/bpf/alu-be.d: Likewise.
219 * testsuite/gas/bpf/alu-pseudoc.s: Likewise.
220 * testsuite/gas/bpf/alu-pseudoc.d: Likewise.
221 * testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
222
223 2023-07-24 Jose E. Marchesi <jose.marchesi@oracle.com>
224
225 * doc/c-bpf.texi (BPF Instructions): The pseudoc syntax for MOVS*
226 doesn't use `s=' but `='.
227
228 2023-07-24 Jose E. Marchesi <jose.marchesi@oracle.com>
229
230 * doc/c-bpf.texi (BPF Instructions): Fix pseudoc syntax for MOVS*
231 and LDXS* instructions.
232 * testsuite/gas/bpf/mem-pseudoc.d: Likewise.
233 * testsuite/gas/bpf/mem-be-pseudoc.d: Likewise.
234 * testsuite/gas/bpf/mem-pseudoc.s: Likewise.
235 * testsuite/gas/bpf/alu-pseudoc.s: Likewise.
236 * testsuite/gas/bpf/alu-pseudoc.d: Likewise.
237 * testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
238 * testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
239 * testsuite/gas/bpf/alu32-pseudoc.d: Likewise.
240 * testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.
241
242 2023-07-24 Jose E. Marchesi <jose.marchesi@oracle.com>
243
244 * config/tc-bpf.c (struct bpf_insn): New field `id'.
245 (md_assemble): Save the ids of successfully parsed instructions
246 and use the new BFD_RELOC_BPF_DISPCALL32 whenever appropriate.
247 (md_apply_fix): Adapt to the new BFD reloc.
248 * testsuite/gas/bpf/jump.s: Test JAL.
249 * testsuite/gas/bpf/jump.d: Likewise.
250 * testsuite/gas/bpf/jump-pseudoc.d: Likewise.
251 * testsuite/gas/bpf/jump-be.d: Likewise.
252 * testsuite/gas/bpf/jump-be-pseudoc.d: Likewise.
253 * doc/c-bpf.texi (BPF Instructions): Document new instruction
254 jal/gotol.
255 Document new operand type disp32.
256
257 2023-07-21 Jose E. Marchesi <jose.marchesi@oracle.com>
258
259 * testsuite/gas/bpf/mem.s: Add signed load instructions.
260 * testsuite/gas/bpf/mem-pseudoc.s: Likewise.
261 * testsuite/gas/bpf/mem.d: Likewise.
262 * testsuite/gas/bpf/mem-pseudoc.d: Likewise.
263 * testsuite/gas/bpf/mem-be.d: Likewise.
264 * doc/c-bpf.texi (BPF Instructions): Document the signed load
265 instructions.
266
267 2023-07-21 Jose E. Marchesi <jose.marchesi@oracle.com>
268
269 * testsuite/gas/bpf/alu.s: Test movs instructions.
270 * testsuite/gas/bpf/alu-pseudoc.s: Likewise.
271 * testsuite/gas/bpf/alu32.s: Likewise for movs32 instruction.
272 * testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
273 * testsuite/gas/bpf/alu.d: Add expected results.
274 * testsuite/gas/bpf/alu32.d: Likewise.
275 * testsuite/gas/bpf/alu-be.d: Likewise.
276 * testsuite/gas/bpf/alu32-be.d: Likewise.
277 * testsuite/gas/bpf/alu-pseudoc.d: Likewise.
278 * testsuite/gas/bpf/alu32-pseudoc.d: Likewise.
279 * testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
280 * testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.
281
282 2023-07-03 Nick Clifton <nickc@redhat.com>
283
284 * configure: Regenerate.
285 * po/gas.pot: Regenerate.
286
287 2023-07-03 Nick Clifton <nickc@redhat.com>
288
289 2.41 Branch Point.
290
291 2023-06-26 Nick Clifton <nickc@redhat.com>
292
293 * testsuite/gas/aarch64/bfloat16-directive-be.d: Adjust regexps
294 to allow for non-ELF based toolchains.
295 * testsuite/gas/aarch64/bfloat16-directive-le.d: Likewise.
296 * testsuite/gas/aarch64/optional.d: Likewise.
297 * testsuite/gas/aarch64/pr20364.d: Likewise.
298 * testsuite/gas/aarch64/adr_1.d: Skip for non-ELF based toolchains.
299 * testsuite/gas/aarch64/advsimd-mov-bad.d: Likewise.
300 * testsuite/gas/aarch64/b_1.d: Likewise.
301 * testsuite/gas/aarch64/beq_1.d: Likewise.
302 * testsuite/gas/aarch64/codealign_1.d: Likewise.
303 * testsuite/gas/aarch64/dwarf.d: Likewise.
304 * testsuite/gas/aarch64/ilp32-basic.d: Likewise.
305 * testsuite/gas/aarch64/int-insns.d: Likewise.
306 * testsuite/gas/aarch64/ldr_1.d: Likewise.
307 * testsuite/gas/aarch64/mapping_5.d: Likewise.
308 * testsuite/gas/aarch64/mapping_6.d: Likewise.
309 * testsuite/gas/aarch64/mops_invalid_2.d: Likewise.
310 * testsuite/gas/aarch64/movw_label.d: Likewise.
311 * testsuite/gas/aarch64/pac_ab_key.d: Likewise.
312 * testsuite/gas/aarch64/pac_negate_ra_state.d: Likewise.
313 * testsuite/gas/aarch64/pr27217.d: Likewise.
314 * testsuite/gas/aarch64/pr29519.d: Likewise.
315 * testsuite/gas/aarch64/programmer-friendly.d: Likewise.
316 * testsuite/gas/aarch64/reloc-data.d: Likewise.
317 * testsuite/gas/aarch64/reloc-dtprel_g0-ilp32.d: Likewise.
318 * testsuite/gas/aarch64/reloc-dtprel_g0.d: Likewise.
319 * testsuite/gas/aarch64/reloc-dtprel_g0_nc-ilp32.d: Likewise.
320 * testsuite/gas/aarch64/reloc-dtprel_g0_nc.d: Likewise.
321 * testsuite/gas/aarch64/reloc-dtprel_g1-ilp32.d: Likewise.
322 * testsuite/gas/aarch64/reloc-dtprel_g1.d: Likewise.
323 * testsuite/gas/aarch64/reloc-dtprel_g1_nc.d: Likewise.
324 * testsuite/gas/aarch64/reloc-dtprel_g2.d: Likewise.
325 * testsuite/gas/aarch64/reloc-dtprel_hi12-ilp32.d: Likewise.
326 * testsuite/gas/aarch64/reloc-dtprel_hi12.d: Likewise.
327 * testsuite/gas/aarch64/reloc-dtprel_lo12-1.d: Likewise.
328 * testsuite/gas/aarch64/reloc-dtprel_lo12-ilp32-1.d: Likewise.
329 * testsuite/gas/aarch64/reloc-dtprel_lo12-ldst16.d: Likewise.
330 * testsuite/gas/aarch64/reloc-dtprel_lo12-ldst32.d: Likewise.
331 * testsuite/gas/aarch64/reloc-dtprel_lo12-ldst64.d: Likewise.
332 * testsuite/gas/aarch64/reloc-dtprel_lo12-ldst8.d: Likewise.
333 * testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ilp32.d: Likewise.
334 * testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst16.d: Likewise.
335 * testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst32.d: Likewise.
336 * testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst64.d: Likewise.
337 * testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst8.d: Likewise.
338 * testsuite/gas/aarch64/reloc-dtprel_lo12_nc.d: Likewise.
339 * testsuite/gas/aarch64/reloc-gotoff_g0_nc.d: Likewise.
340 * testsuite/gas/aarch64/reloc-gotoff_g1.d: Likewise.
341 * testsuite/gas/aarch64/reloc-gottprel_g0_nc.d: Likewise.
342 * testsuite/gas/aarch64/reloc-gottprel_g1.d: Likewise.
343 * testsuite/gas/aarch64/reloc-insn.d: Likewise.
344 * testsuite/gas/aarch64/reloc-prel_g0.d: Likewise.
345 * testsuite/gas/aarch64/reloc-prel_g0_nc.d: Likewise.
346 * testsuite/gas/aarch64/reloc-prel_g1.d: Likewise.
347 * testsuite/gas/aarch64/reloc-prel_g1_nc.d: Likewise.
348 * testsuite/gas/aarch64/reloc-prel_g2.d: Likewise.
349 * testsuite/gas/aarch64/reloc-prel_g2_nc.d: Likewise.
350 * testsuite/gas/aarch64/reloc-prel_g3.d: Likewise.
351 * testsuite/gas/aarch64/reloc-tlsdesc_off_g0_nc.d: Likewise.
352 * testsuite/gas/aarch64/reloc-tlsdesc_off_g1.d: Likewise.
353 * testsuite/gas/aarch64/reloc-tlsgd_g0_nc.d: Likewise.
354 * testsuite/gas/aarch64/reloc-tlsgd_g1.d: Likewise.
355 * testsuite/gas/aarch64/reloc-tlsldm-1.d: Likewise.
356 * testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.d: Likewise.
357 * testsuite/gas/aarch64/reloc-tlsldm-page-1.d: Likewise.
358 * testsuite/gas/aarch64/reloc-tlsldm-page-ilp32-1.d: Likewise.
359 * testsuite/gas/aarch64/reloc-tlsldm_lo12_nc-1.d: Likewise.
360 * testsuite/gas/aarch64/reloc-tlsldm_lo12_nc-ilp32-1.d: Likewise.
361 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16-ilp32.d: Likewise.
362 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.d: Likewise.
363 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32-ilp32.d: Likewise.
364 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.d: Likewise.
365 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64-ilp32.d: Likewise.
366 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.d: Likewise.
367 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8-ilp32.d: Likewise.
368 * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.d: Likewise.
369 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16-ilp32.d: Likewise.
370 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.d: Likewise.
371 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32-ilp32.d: Likewise.
372 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.d: Likewise.
373 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64-ilp32.d: Likewise.
374 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.d: Likewise.
375 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8-ilp32.d: Likewise.
376 * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.d: Likewise.
377 * testsuite/gas/aarch64/sve-movprfx_1.d: Likewise.
378 * testsuite/gas/aarch64/sve-movprfx_10.d: Likewise.
379 * testsuite/gas/aarch64/sve-movprfx_11.d: Likewise.
380 * testsuite/gas/aarch64/sve-movprfx_12.d: Likewise.
381 * testsuite/gas/aarch64/sve-movprfx_13.d: Likewise.
382 * testsuite/gas/aarch64/sve-movprfx_14.d: Likewise.
383 * testsuite/gas/aarch64/sve-movprfx_15.d: Likewise.
384 * testsuite/gas/aarch64/sve-movprfx_16.d: Likewise.
385 * testsuite/gas/aarch64/sve-movprfx_17.d: Likewise.
386 * testsuite/gas/aarch64/sve-movprfx_18.d: Likewise.
387 * testsuite/gas/aarch64/sve-movprfx_19.d: Likewise.
388 * testsuite/gas/aarch64/sve-movprfx_2.d: Likewise.
389 * testsuite/gas/aarch64/sve-movprfx_20.d: Likewise.
390 * testsuite/gas/aarch64/sve-movprfx_21.d: Likewise.
391 * testsuite/gas/aarch64/sve-movprfx_22.d: Likewise.
392 * testsuite/gas/aarch64/sve-movprfx_23.d: Likewise.
393 * testsuite/gas/aarch64/sve-movprfx_24.d: Likewise.
394 * testsuite/gas/aarch64/sve-movprfx_25.d: Likewise.
395 * testsuite/gas/aarch64/sve-movprfx_26.d: Likewise.
396 * testsuite/gas/aarch64/sve-movprfx_27.d: Likewise.
397 * testsuite/gas/aarch64/sve-movprfx_28.d: Likewise.
398 * testsuite/gas/aarch64/sve-movprfx_3.d: Likewise.
399 * testsuite/gas/aarch64/sve-movprfx_4.d: Likewise.
400 * testsuite/gas/aarch64/sve-movprfx_5.d: Likewise.
401 * testsuite/gas/aarch64/sve-movprfx_6.d: Likewise.
402 * testsuite/gas/aarch64/sve-movprfx_7.d: Likewise.
403 * testsuite/gas/aarch64/sve-movprfx_8.d: Likewise.
404 * testsuite/gas/aarch64/sve-movprfx_9.d: Likewise.
405 * testsuite/gas/aarch64/symbol-variant_pcs-1.d: Likewise.
406 * testsuite/gas/aarch64/symbol-variant_pcs-2.d: Likewise.
407 * testsuite/gas/aarch64/symbol-variant_pcs-3.d: Likewise.
408 * testsuite/gas/aarch64/system.d: Likewise.
409 * testsuite/gas/aarch64/tail_padding.d: Likewise.
410 * testsuite/gas/aarch64/tbz_1.d: Likewise.
411 * testsuite/gas/aarch64/tls-desc.d: Likewise.
412 * testsuite/gas/aarch64/tls.d: Likewise.
413
414 2023-04-27 Jose E. Marchesi <jose.marchesi@oracle.com>
415
416 * testsuite/gas/bpf/mem.dump: New file.
417 * testsuite/gas/bpf/mem-pseudoc.d: Likewise.
418 * testsuite/gas/bpf/mem.d: #dump mem.dump.
419 * testsuite/gas/bpf/lddw.dump: New file.
420 * testsuite/gas/bpf/lddw-pseudoc.d: Likewise.
421 * testsuite/gas/bpf/lddw.d: #dump lddw.dump.
422 * testsuite/gas/bpf/jump.dump: New file.
423 * testsuite/gas/bpf/jump-pseudoc.d: Likewise
424 * testsuite/gas/bpf/jump.d: #dump jump.dump.
425 * testsuite/gas/bpf/jump32.dump: New file.
426 * testsuite/gas/bpf/jump32-pseudoc.d: Likewise.
427 * testsuite/gas/bpf/jump32.d: #dump jump32.dump.
428 * testsuite/gas/bpf/lddw-be.dump: New file.
429 * testsuite/gas/bpf/lddw-be-pseudoc.d: Likewise.
430 * testsuite/gas/bpf/lddw-be.d: #dump lddw-be.dump.
431 * testsuite/gas/bpf/indcall-1.dump: New file.
432 * testsuite/gas/bpf/indcall-1-pseudoc.d: Likewise.
433 * testsuite/gas/bpf/indcall-1.d: #dump indcall-1.dump.
434 * testsuite/gas/bpf/indcall-1-pseudoc.s (main): Fix lddw
435 instruction.
436 * testsuite/gas/bpf/atomic.dump: New file.
437 * testsuite/gas/bpf/atomic-pseudoc.d: Likewise.
438 * testsuite/gas/bpf/atomic.d: #dump atomic.dump.
439 * testsuite/gas/bpf/alu32.dump: New file.
440 * testsuite/gas/bpf/alu32-pseudoc.d: Likewise.
441 * testsuite/gas/bpf/alu32.d: #dump alu32.dump.
442 * testsuite/gas/bpf/alu.dump: New file.
443 * testsuite/gas/bpf/alu-pseudoc.d: Likewise.
444 * testsuite/gas/bpf/alu.d: #dump alu.dump.
445
446 * testsuite/gas/bpf/alu-be.dump: New file.
447 * testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
448 * testsuite/gas/bpf/alu-be.d: #dump alu-be.dump.
449 * testsuite/gas/bpf/alu32-be-pseudoc.d: New file.
450 * testsuite/gas/bpf/alu32-be-dump: Likewise.
451 * testsuite/gas/bpf/alu32-be.d: #dump alu32-be-dump.
452 * testsuite/gas/bpf/bpf.exp: Run *-pseudoc tests.
453
454 2023-04-19 Jose E. Marchesi <jose.marchesi@oracle.com>
455
456 PR gas/29757
457 * doc/c-bpf.texi (BPF Pseudo-C Syntax): New section.
458
459 2023-04-20 Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
460
461 PR gas/29728
462 * testsuite/gas/all/assign-bad-recursive.d: Skip test in bpf-*
463 targets.
464 * testsuite/gas/all/eqv-dot.d: Likewise.
465 * testsuite/gas/all/gas.exp: Skip other assignment tests in bpf-*.
466 * testsuite/gas/bpf/alu-pseudoc.s: New file.
467 * testsuite/gas/bpf/pseudoc-normal.s: Likewise.
468 * testsuite/gas/bpf/pseudoc-normal.d: Likewise.
469 * testsuite/gas/bpf/pseudoc-normal-be.d: Likewise.
470 * testsuite/gas/bpf/mem-pseudoc.s: Likewise.
471 * testsuite/gas/bpf/lddw-pseudoc.s: Likewise.
472 * testsuite/gas/bpf/jump32-pseudoc.s: Likewise.
473 * testsuite/gas/bpf/jump-pseudoc.s: Likewise.
474 * testsuite/gas/bpf/indcall-1-pseudoc.s: Likewise.
475 * testsuite/gas/bpf/atomic-pseudoc.s: Likewise.
476 * testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
477 * testsuite/gas/bpf/*.d: Add -pseudoc variants of the tests.
478
479 2023-04-20 Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
480
481 PR gas/29728
482 * config/tc-bpf.h (TC_EQUAL_IN_INSN): Define.
483 * config/tc-bpf.c (LEX_IS_SYMBOL_COMPONENT): Define.
484 (LEX_IS_WHITESPACE): Likewise.
485 (LEX_IS_NEWLINE): Likewise.
486 (LEX_IS_ARITHM_OP): Likewise.
487 (LEX_IS_STAR): Likewise.
488 (LEX_IS_CLSE_BR): Likewise.
489 (LEX_IS_OPEN_BR): Likewise.
490 (LEX_IS_EQUAL): Likewise.
491 (LEX_IS_EXCLA): Likewise.
492 (ST_EOI): Likewise.
493 (MAX_TOKEN_SZ): Likewise.
494 (init_pseudoc_lex): New function.
495 (md_begin): Call init_pseudoc_lex.
496 (valid_expr): New function.
497 (build_bpf_non_generic_load): Likewise.
498 (build_bpf_atomic_insn): Likewise.
499 (build_bpf_jmp_insn): Likewise.
500 (build_bpf_arithm_insn): Likewise.
501 (build_bpf_endianness): Likewise.
502 (build_bpf_load_store_insn): Likewise.
503 (look_for_reserved_word): Likewise.
504 (is_register): Likewise.
505 (is_cast): Likewise.
506 (get_token): Likewise.
507 (bpf_pseudoc_to_normal_syntax): Likewise.
508 (md_assemble): Try pseudo-C syntax if an instruction cannot be
509 parsed.
510
511 2023-04-18 mengqinggang <mengqinggang@loongson.cn>
512
513 * config/tc-loongarch.c (loongarch_fix_adjustable): Symbols with
514 GOT relocatios do not fix adjustbale.
515 * testsuite/gas/loongarch/macro_op_large_abs.d: Regenerated.
516 * testsuite/gas/loongarch/macro_op_large_pc.d: Regenerated.
517
518 2023-04-18 Thomas Koenig <tkoenig@netcologne.de>
519
520 * doc/internals.texi (Relaxing with a table): Describe handling of
521 opcodes for relaxation a bit better.
522
523 2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
524
525 * testsuite/gas/cfi/cfi-arc-1.s: Use baseline instructions.
526 * testsuite/gas/cfi/cfi-arc-1.d: Update matching patterns.
527
528 2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
529
530 * testsuite/gas/arc/dsp.s: Remove unimplemented dsp instructions.
531 * testsuite/gas/arc/dsp.d: Update the test.
532
533 2023-03-14 Nick Clifton <nickc@redhat.com>
534
535 PR 30206
536 * doc/as.texi (Pseudo Ops): Document that data directives such as
537 .byte and .int are not intended for encoding instructions.
538
539 2023-02-28 Richard Ball <richard.ball@arm.com>
540
541 * testsuite/gas/aarch64/mec-invalid.d: New test.
542 * testsuite/gas/aarch64/mec-invalid.l: New test.
543 * testsuite/gas/aarch64/mec-invalid.s: New test.
544 * testsuite/gas/aarch64/mec.d: New test.
545 * testsuite/gas/aarch64/mec.s: New test.
546
547 2023-02-27 Benson Muite <benson_muite@emailplus.org>
548
549 PR 28909
550 * doc/local.mk (asconfig.texi): Use "cp -p" to preserve
551 timestamps.
552 * Makefile.in: Regenerate.
553
554 2023-02-01 Nick Clifton <nickc@redhat.com>
555
556 * dwarf2dbg.c (emit_inc_line_addr): Use unsigned constants when
557 checking addr_delta.
558
559 2023-01-20 Frederic Cambus <fred@statdns.com>
560
561 * configure.tgt (arm-*-openbsd*): Add target.
562
563 2023-01-16 Nick Clifton <nickc@redhat.com>
564
565 * po/ru.po: Updated Russian translation.
566
567 2023-01-03 Nick Clifton <nickc@redhat.com>
568
569 PR 29952
570 * config/tc-i386.c (md_assemble): Avoid constructing translatable
571 strings.
572
573 2023-01-03 Nick Clifton <nickc@redhat.com>
574
575 * po/fr.po: Updated French translation.
576 * po/uk.po: Updated Ukrainian translation.
577
578 2022-12-31 Nick Clifton <nickc@redhat.com>
579
580 * 2.40 branch created.
581
582 2022-11-21 Nick Clifton <nickc@redhat.com>
583
584 PR 29764
585 * testsuite/gas/arm/cpu-cortex-a76ae.d: Add arm prefix to the -m
586 option passed to objdump.
587 * testsuite/gas/arm/cpu-cortex-a77.d: Likewise.
588 * testsuite/gas/aarch64/cpu-cortex-a76ae.d: Add aarch64 prefix to
589 the -m option passed to objdump.
590 * testsuite/gas/aarch64/cpu-cortex-a77.d: Likewise.
591
592 2022-10-31 Nick Clifton <nickc@redhat.com>
593
594 * testsuite/gas/rx/mvtacgu.d: Update expected disassembly.
595
596 2022-10-11 Nick Clifton <nickc@redhat.com>
597
598 * symbols.c (S_GET_VALUE): If the unresolved symbol is the fake
599 label provide a more helpful error message to the user.
600 (S_GET_VALUE_WHERE): Like S_GET_VALUE, but includes a file/line
601 number for error reporting purposes.
602 * symbols.h (S_GET_VALUE_WHERE): Prototype.
603 * write.c (fixup_segment): Use S_GET_VALUE_WHERE.
604
605 2022-09-28 Nick Clifton <nickc@redhat.com>
606
607 PR 29623
608 * as.c (show_usage): Document the --dump-config,
609 --gdwarf-cie-version, --hash-size, --multibyte-handling,
610 and --reduce-memory-overheads options.
611 * config/tc-i386.c (md_show_usage): Document the -O option.
612 * doc/as.texi: Document the --dump-config, --emulation,
613 --hash-size, and --reduce-memory-overheads options.
614
615 2022-09-08 Nick Clifton <nickc@redhat.com>
616
617 PR 29559
618 * dwarf2dbg.c (out_debug_info): Place DW_TAG_unspecified_type at
619 the end of the list of children, not at the start of the CU
620 information.
621 * testsuite/gas/elf/dwarf-3-func.d: Update expected output.
622 * testsuite/gas/elf/dwarf-5-func-global.d: Likewise.
623 * testsuite/gas/elf/dwarf-5-func-local.d: Likewise.
624 * testsuite/gas/elf/dwarf-5-func.d: Likewise.
625
626 2022-08-31 Frederic Cambus <fred@statdns.com>
627
628 * configure.tgt (aarch64*-*-openbsd*): Add target.
629
630 2022-08-30 Nick Clifton <nickc@redhat.com>
631
632 PR 29494
633 * testsuite/gas/arm/pr29494.s: New test source file.
634 * testsuite/gas/arm/pr29494.d: New test driver.
635
636 2022-08-25 Nick Clifton <nickc@redhat.com>
637
638 PR 29517
639 * dwarf2dbg.c (GAS_ABBREV_COMP_UNIT): New defined constant.
640 (GAS_ABBREV_SUBPROG): New defined constant.
641 (GAS_ABBREV_NO_TYPE): New defined constant.
642 (out_debug_abbrev): Use the new defined constants when emitting
643 abbreviation numbers. Generate an abbreviation for an unspecified
644 type.
645 (out_debug_info): Use the new defined constants when referring to
646 abbreviations. Generate a use of the no_type abbreviation.
647 Reference the use when generating DIEs for functions.
648 * testsuite/gas/elf/dwarf-3-func.d: Update to allow for newly
649 extended output from the assembler.
650 * testsuite/gas/elf/dwarf-5-func-global.d: Likewise.
651 * testsuite/gas/elf/dwarf-5-func-local.d: Likewise.
652 * testsuite/gas/elf/dwarf-5-func.d: Likewise.
653
654 2022-08-25 Nick Clifton <nickc@redhat.com>
655
656 PR 29519
657 * config/tc-aarch64.c (s_unreq): Use find_end_of_line().
658 (s_aarch64_cpu): Likewise.
659 (s_aarch64_arch): Likewise.
660 (s_aarch64_arch_extension): Likewise.
661 * testsuite/gas/aarch64/pr29519.d: New test driver file.
662 * testsuite/gas/aarch64/pr29519.s: New test source file.
663
664 2022-08-08 Tsukasa OI <research_trasio@irq.a4lg.com>
665
666 * config/obj-macho.c (obj_mach_o_get_section_names): Wrap two
667 string literals within with gettext macro.
668
669 2022-08-05 Nick Clifton <nickc@redhat.com>
670
671 PR 29447
672 * read.c (read_symbol_name): Pass 0 as the length parameter when
673 invoking mbstowc in order to check the validity of a wide string.
674
675 2022-07-18 Claudiu Zissulescu <claziss@synopsys.com>
676
677 * config/tc-arc.c (md_assembly): Update strspn string with the
678 missing ciphers.
679
680 2022-07-08 Nick Clifton <nickc@redhat.com>
681
682 * 2.39 branch created.
683
684 2022-05-18 Victor Do Nascimento <victor.donascimento@arm.com>
685
686 * config/tc-arm.c (parse_reg_list): Add handling of mixed register
687 types.
688 (reg_names): Enumerate pseudoregister according to mapped physical
689 register number.
690 (s_arm_unwind_save_pseudo): Modify function signature.
691 (s_arm_unwind_save_core): Likewise.
692 (s_arm_unwind_save_mixed): New function.
693 (s_arm_unwind_save): Generate register list mask to pass to nested
694 functions.
695 * testsuite/gas/arm/unwind-pacbti-m.s: Expand test for mixed
696 register type lists.
697 * testsuite/gas/arm/unwind-pacbti-m.d: Likewise.
698 * testsuite/gas/arm/unwind-pacbti-m-readelf.d: Likewise.
699
700 2022-04-07 Mark Harmstone <mark@harmstone.com>
701
702 * config/tc-i386.c (pe_directive_secidx): New function.
703 (md_pseudo_table): Add support for secidx.
704 (x86_cons_fix_new): Likewise.
705 (tc_gen_reloc): Likewise.
706 * expr.c (op_rank): Add O_secidx.
707 * expr.h (operatorT): Likewise.
708 * symbols.c (resolve_symbol_value): Add support for O_secidx.
709 * testsuite/gas/i386/secidx.s: New test source file.
710 * testsuite/gas/i386/secidx.d: New test driver file.
711 * testsuite/gas/i386/i386.exp: Run new test.
712
713 2022-04-07 Andreas Krebbel <krebbel@linux.ibm.com>
714
715 * config/tc-s390.c (s390_parse_cpu): Add z16 as alternate CPU
716 name.
717 * doc/as.texi: Add z16 and arch14 to CPU string list.
718 * doc/c-s390.texi: Add z16 to CPU string list.
719
720 2022-04-06 Nick Clifton <nickc@redhat.com>
721
722 PR 28981
723 * testsuite/gas/elf/dwarf-5-irp.d: Update expected output.
724
725 2022-03-21 Nick Clifton <nickc@redhat.com>
726
727 PR 28791
728 * config/tc-z80.c (emit_data_val): Do not warn about overlarge
729 constants generated by bit manipulation operators.
730 * testsuite/gas/z80/pr28791.s: New test source file.
731 * testsuite/gas/z80/pr28791.d: New test driver file.
732
733 2022-01-28 Nick Clifton <nickc@redhat.com>
734
735 * po/fr.po: Updated French translation.
736
737 2022-01-24 Nick Clifton <nickc@redhat.com>
738
739 * po/uk.po: Updated Ukranian translation.
740
741 2022-01-22 Nick Clifton <nickc@redhat.com>
742
743 * configure: Regenerate.
744 * po/gas.pot: Regenerate.
745
746 2022-01-22 Nick Clifton <nickc@redhat.com>
747
748 * 2.38 release branch created.
749
750 2022-01-17 Nick Clifton <nickc@redhat.com>
751
752 * Makefile.in: Regenerate.
753 * po/gas.pot: Regenerate.
754
755 2022-01-17 Sergey Belyashov <sergey.belyashov@gmail.com>
756
757 PR 28762
758 * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'.
759
760 2021-12-16 Nick Clifton <nickc@redhat.com>
761
762 PR 28686
763 * config/tc-avr.h (tc_fix_adjustable): Define.
764 * config/tc-avr.c (avr_fix_adjustable): New function.
765 * testsuite/gas/all/gas.exp: Skip tests that need adjustable fixups.
766 * testsuite/gas/elf/elf.exp: Likewise.
767 * testsuite/gas/avr/diffreloc_withrelax.d: Adjust expected output.
768 * testsuite/gas/avr/pc-relative-reloc.d: Adjust expected output.
769
770 2021-11-26 Tom de Vries <tdevries@suse.de>
771
772 PR 28629
773 * dwarf2dbg.c (out_dir_and_file_list): When copying file 1 to file 0,
774 also copy dir and md5 fields.
775 * testsuite/gas/i386/dwarf5-line-4.d: Adjust expected output.
776
777 2021-11-18 Nick Clifton <nickc@redhat.com>
778
779 * as.c (parse_args): Add support for --multibyte-handling.
780 * as.h (multibyte_handling): Declare.
781 * app.c (scan_for_multibyte_characters): New function.
782 (do_scrub_chars): Call the new function if multibyte warning is
783 enabled.
784 * input-scrub,c (input_scrub_next_buffer): Call the multibyte
785 scanning function if multibyte warnings are enabled.
786 * symbols.c (struct symbol_flags): Add multibyte_warned bit.
787 (symbol_init): Call the multibyte scanning function if multibyte
788 symbol warnings are enabled.
789 (S_SET_SEGMENT): Likewise.
790 * NEWS: Mention the new feature.
791 * doc/as.texi: Document the new feature.
792 * testsuite/gas/all/multibyte.s: New test source file.
793 * testsuite/gas/all/multibyte1.d: New test driver file.
794 * testsuite/gas/all/multibyte1.l: New test expected output.
795 * testsuite/gas/all/multibyte2.d: New test driver file.
796 * testsuite/gas/all/multibyte2.l: New test expected output.
797 * testsuite/gas/all/gas.exp: Run the new tests.
798
799 2021-11-15 Eric Botcazou <ebotcazou@adacore.com>
800
801 * doc/as.texi (File): Update description of .file 0 directive.
802 * dwarf2dbg.c (get_directory_table_entry): Remove obsolete comment
803 and pass file0_dirname in recursive call.
804 (allocate_filename_to_slot): Deal with a full path in the file name
805 if the index number is 0.
806 * testsuite/gas/elf/dwarf-5-file0.d: Fix pasto.
807 * testsuite/gas/elf/dwarf-5-file0-2.d: Likewise.
808 * testsuite/gas/elf/dwarf-5-file0-3.d: New file.
809 * testsuite/gas/elf/dwarf-5-file0-3.s: Likewise.
810 * testsuite/gas/elf/elf.exp: Run dwarf-5-file0-3.
811
812 2021-10-28 Markus Klein <markus.klein@sma.de>
813
814 PR 28436
815 * config/tc-arm.c (do_vfp_nsyn_push_pop_check): New function.
816 (do_vfp_nsyn_pop): Use the new function.
817 (do_vfp_nsyn_push): Use the new function.
818 * testsuite/gas/arm/v8_1m-mve.s: Add new instructions.
819 * testsuite/gas/arm/v8_1m-mve.d: Updated expected disassembly.
820
821 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
822
823 * configure: Regenerate.
824
825 2021-09-25 Peter Bergner <bergner@linux.ibm.com>
826
827 * testsuite/gas/ppc/power5.s: New test.
828 * testsuite/gas/ppc/power5.d: Likewise.
829 * testsuite/gas/ppc/ppc.exp: Run it.
830 * testsuite/gas/ppc/power7.s: Remove tests for mfppr, mfppr32, mtppr
831 and mtppr32.
832 * testsuite/gas/ppc/power7.d: Likewise.
833
834 2021-09-13 Jan Beulich <jbeulich@suse.com>
835
836 * config/tc-ia64.c (cross_section): Use obj_elf_section_name to
837 parse the section name.
838 * config/tc-mips.c (s_change_section): Likewise.
839
840 2021-09-02 Nick Clifton <nickc@redhat.com>
841
842 PR 28292
843 * config/tc-v850.c (handle_lo16): Also accept
844 BFD_RELOC_V850_LO16_SPLIT_OFFSET.
845 * testsuite/gas/v850/split-lo16.s: Add extra line.
846 * testsuite/gas/v850/split-lo16.d: Update expected disassembly.
847
848 2021-08-11 Darius Galis <darius.galis@cyberthorstudios.com>
849
850 * config/rx-parse.y (DECNT): Fixed typo.
851 * testsuite/gas/rx/dpopm.sm (DECNT): Fixed typo.
852 * testsuite/gas/rx/dpushm.sm (DECNT): Fixed typo.
853 * testsuite/gas/rx/macros.inc (DECNT): Fixed typo.
854
855 2021-08-11 Nick Clifton <nickc@redhat.com>
856
857 PR 28215
858 * config/tc-csky.c (md_apply_fix): Correctly handle a fixup that
859 involves an overlarge constant.
860
861 2021-08-11 Matt Jacobson <mhjacobson@me.com>
862
863 * config/tc-avr.c (enum options): Add option flag.
864 (struct option): Add option -mno-dollar-line-separator.
865 (md_parse_option): Adjust treatment of $ when option is present.
866 (usage): Mention the new option.
867 * config/tc-avr.h: Use avr_line_separator_chars.
868 * doc/c-avr.texi: Document the new option.
869
870 2021-08-11 Nick Clifton <nickc@redhat.com>
871
872 * config/tc-tic4x.c (tic4x_gen_to_words): Fix typo.
873
874 2021-08-10 Nick Clifton <nickc@redhat.com>
875
876 * po/ru.po: Updated Russian translation.
877
878 2021-08-09 Nick Clifton <nickc@redhat.com>
879
880 * dwarf2dbg.c (get_directory_table_entry): Ensure that dir[0]
881 contains current working directory.
882 (out_dir_and_file_list): Likewise.
883 * testsuite/gas/elf/dwarf-5-dir0.s: New test source file.
884 * testsuite/gas/elf/dwarf-5-dir0.d: New test driver.
885 * testsuite/gas/elf/elf.exp: Run the new test.
886 * testsuite/gas/elf/dwarf-5-file0.d: Adjust expected output.
887 * testsuite/gas/i386/dwarf5-line-1.d: Likewise.
888 * testsuite/gas/i386/dwarf5-line-2.d: Likewise.
889
890 2021-07-14 Alan Modra <amodra@gmail.com>
891
892 * write.c (TC_VALIDATE_FIX_SUB): Default to 0.
893 * config/tc-hppa.h (TC_VALIDATE_FIX_SUB): Define.
894 * config/tc-microblaze.h (TC_VALIDATE_FIX_SUB): Define.
895 * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define for ECOFF.
896 * config/tc-ppc.h (TC_VALIDATE_FIX_SUB): Don't define for ELF.
897 Do define for XCOFF.
898
899 2021-07-14 Clément Chigot <clement.chigot@atos.net>
900
901 * config/tc-ppc.c (ppc_change_debug_section): Update to
902 match new name's field.
903
904 2021-07-12 Tucker <tuckkern@sourceware@gmail.com>
905
906 PR 28054
907 * config/obj-elf.c (obj_elf_change_section): Set the
908 SEF_ELF_OCTETS flag on debug sections.
909
910 2021-06-07 Andreas Krebbel <krebbel@linux.ibm.com>
911
912 * testsuite/gas/s390/zarch-arch14.d: Add qpaci.
913 * testsuite/gas/s390/zarch-arch14.s: Add qpaci.
914
915 2021-07-07 Nick Clifton <nickc@redhat.com>
916
917 PR 28051
918 * config/tc-i386.c (offset_in_range): Reformat error messages in
919 order to fix problems when translating.
920 (md_assemble): Likewise.
921 * messages.c (as_internal_value_out_of_range): Likewise.
922 * read.c (emit_expr_with_reloc): Likewise.
923 * testsuite/gas/all/overflow.l Change expected output format.
924 * po/gas.pot: Regenerate.
925
926 2021-07-03 Nick Clifton <nickc@redhat.com>
927
928 * configure: Regenerate.
929 * po/gas.pot: Regenerate.
930
931 2021-07-03 Nick Clifton <nickc@redhat.com>
932
933 * 2.37 release branch created.
934
935 2021-07-02 Alan Modra <amodra@gmail.com>
936
937 * config/tc-nds32.c (nds32_keyword_gpr): Don't declare.
938 (md_begin): Constify k.
939
940 2021-07-02 Nick Clifton <nickc@redhat.com>
941
942 * config/tc-nds32.c: Change all references of keyword_gpr to
943 nds32_keyword_gpr.
944
945 2021-07-01 Mike Frysinger <vapier@gentoo.org>
946
947 * config/tc-microblaze.c (md_begin): Make opcode const. Rename
948 opcodes to microblaze_opcodes.
949
950 2021-07-01 Mike Frysinger <vapier@gentoo.org>
951
952 * config/tc-aarch64.c (struct templates): Make opcode const.
953 (md_assemble): Likewise.
954 (fill_instruction_hash_table): Likewise.
955
956 2021-06-24 Clément Chigot <clement.chigot@atos.net>
957
958 * config/tc-ppc.c (md_assemble): Update ppc_current_csect
959 alignment when finding prefixed instructions.
960
961 2021-06-22 Alan Modra <amodra@gmail.com>
962
963 * config/tc-pj.c (md_apply_fix): Apply PJ_CODE_REL32 relocs.
964 * testsuite/gas/pj/ops.s: Update jsr, ret, getstatic,
965 putstatic, getfield, putfield, invokevirtual, invokespecial,
966 invokestatic, invokeinterface, goto_w, jsr_w assembly. Delete
967 version 1 picojava opcodes.
968 * testsuite/gas/pj/ops.d: Match expected output.
969
970 2021-06-19 Alan Modra <amodra@gmail.com>
971
972 * config/tc-z80.c (signed_overflow, unsigned_overflow): Avoid UB.
973
974 2021-06-19 Alan Modra <amodra@gmail.com>
975
976 * testsuite/gas/ppc/raw.s: Use 0 as pli constant.
977 * testsuite/gas/ppc/raw.d: Update to suit.
978
979 2021-06-18 Jan Beulich <jbeulich@suse.com>
980
981 * expr.c (symbol_lookup_or_make): New.
982 (operand): Use it.
983 * testsuite/gas/elf/startof.s, testsuite/gas/elf/startof.d: New.
984 * testsuite/gas/elf/elf.exp: Run new test.
985
986 2021-06-17 Nick Clifton <nickc@redhat.com>
987
988 PR 27904
989 * config/tc-aarch64.c (ldst_lo12_determine_real_reloc_type):
990 Generate a syntax error message if the reloc qualifier does not
991 match the instruction's size.
992
993 2021-06-17 Clément Chigot <clement.chigot@atos.net>
994
995 * config/tc-ppc.c (md_begin): Create bss section with dummy
996 symbol.
997 (ppc_frob_symbol): Output XTY_CM for bss csects.
998 (ppc_fix_adjustable): Adjust condition to avoid bss csects.
999
1000 2021-06-17 Clément Chigot <clement.chigot@atos.net>
1001
1002 * config/tc-ppc.c (md_apply_fix): Adjust addend to nullify
1003 section contents for BFD_RELOC_PPC_TLSM or
1004 BFD_RELOC_PPC64_TLSM.
1005 * testsuite/gas/ppc/xcoff-tlsm-32.d: New test.
1006 * testsuite/gas/ppc/xcoff-tlsm-64.d: New test.
1007 * testsuite/gas/ppc/xcoff-tlsm.s: New test.
1008 * testsuite/gas/ppc/aix.exp: Run new tests.
1009
1010 2021-06-16 Jan Beulich <jbeulich@suse.com>
1011
1012 * read.c (parse_one_float): New.
1013 (s_float_space, float_cons): Use it.
1014 * testsuite/gas/all/float.s: Add .dc.*, .dcb.*, and .ds.* cases.
1015
1016 2021-06-16 Jan Beulich <jbeulich@suse.com>
1017
1018 * read.c (emit_expr_with_reloc): Adjust overflow check. Drop
1019 hibit local variable.
1020 * write.c (fixup_segment): Differentiate signed and non-signed
1021 relocs in overflow check.
1022 * testsuite/gas/all/overflow.s,
1023 testsuite/gas/all/overflow.l: New.
1024 * testsuite/gas/all/gas.exp: Run new test.
1025
1026 2021-06-15 Jan Beulich <jbeulich@suse.com>
1027
1028 * config/tc-i386.c (md_show_usage): Split ELF and PE/COFF parts
1029 of object format controlling option. Add Mach-O to the latter.
1030 * testsuite/gas/i386/i386.exp (gas_bfd64_check): Adjust
1031 accordingly.
1032
1033 2021-06-15 Jan Beulich <jbeulich@suse.com>
1034
1035 * config/tc-i386.c (disp16, disp32, disp32s): Delete.
1036 (optimize_disp, i386_finalize_displacement): Use
1037 operand_type_and_not.
1038 (build_modrm_byte): Likewise. Eliminate local variable newdisp.
1039
1040 2021-06-15 Jan Beulich <jbeulich@suse.com>
1041
1042 * config/tc-i386.c (offset_in_range): Bail early when mask would
1043 cover all bits anyway.
1044
1045 2021-06-15 Jan Beulich <jbeulich@suse.com>
1046
1047 * config/tc-i386.c (optimize_disp): Generalize disp32 part of
1048 the BFD64-only logic to also apply to non-64-bit code.
1049 (i386_finalize_displacement): Use extend_to_32bit_address for
1050 non-64-bit code. Drop now redundant O_constant checks.
1051 * testsuite/gas/i386/disp-imm-32.s,
1052 testsuite/gas/i386/disp-imm-32.d: New.
1053 * testsuite/gas/i386/i386.exp: Run new test.
1054
1055 2021-06-15 Jan Beulich <jbeulich@suse.com>
1056
1057 * config/tc-i386.c (offset_in_range): Replace uses of
1058 bfd_sprintf_vma.
1059
1060 2021-06-15 Jan Beulich <jbeulich@suse.com>
1061
1062 * config/tc-i386.c (offset_in_range): Adjust conditional.
1063 * testsuite/gas/i386/disp-imm-16.s,
1064 testsuite/gas/i386/disp-imm-16.l,
1065 testsuite/gas/i386/disp-imm-64.s,
1066 testsuite/gas/i386/disp-imm-64.l: New.
1067 * testsuite/gas/i386/i386.exp: Run new tests.
1068
1069 2021-06-15 Jan Beulich <jbeulich@suse.com>
1070
1071 * config/tc-i386.c (i386_att_operand): Re-introduce (now
1072 properly named) parens_not_balanced.
1073 * testsuite/gas/i386/sib.s: Add more cases.
1074 * testsuite/gas/i386/sib.d, testsuite/gas/i386/sib-intel.d:
1075 Adjust expectations.
1076
1077 2021-06-14 Jan Beulich <jbeulich@suse.com>
1078
1079 * read.c (emit_expr_with_reloc): Fold three as_warn().
1080
1081 2021-06-14 Jan Beulich <jbeulich@suse.com>
1082
1083 * doc/internals.texi (TC_ADDRESS_BYTES): Mention generic default.
1084 * read.c (potable, cons_worker): Drop TC_ADDRESS_BYTES
1085 conditional.
1086
1087 2021-06-11 H.J. Lu <hongjiu.lu@intel.com>
1088
1089 * config/tc-i386.c (x86_cons): Handle GOT/PLT relocations only
1090 if needed.
1091 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Always define.
1092
1093 2021-06-11 Nelson Chu <nelson.chu@sifive.com>
1094
1095 * config/tc-riscv.c (riscv_set_arch): Call riscv_set_rvc
1096 and riscv_set_rve both for -march and elf attributes.
1097 (riscv_after_parse_args): Likewise.
1098
1099 2021-06-10 Jan Beulich <jbeulich@suse.com>
1100
1101 * config/tc-arm.c (do_bfloat_vfma): Rename index to idx.
1102 (do_vusdot): Likewise.
1103 (do_vsudot): Likewise.
1104 (check_cde_operand): Likewise.
1105 (do_vdot): Likewise.
1106
1107 2021-06-10 Jan Beulich <jbeulich@suse.com>
1108
1109 * config/tc-arm.c (reg_expected_msgs): Add REG_TYPE_ZR entry.
1110
1111 2021-06-10 Jan Beulich <jbeulich@suse.com>
1112
1113 * config/tc-i386.c (optimize_encoding): Suppress LEA conversion
1114 when it would grow code size in 16-bit mode.
1115 * testsuite/gas/i386/lea16-optimize.d: Adjust expectations.
1116 * testsuite/gas/i386/lea16-optimize2.d: New.
1117 * testsuite/gas/i386/i386.exp: Run new test.
1118
1119 2021-06-08 Jan Beulich <jbeulich@suse.com>
1120
1121 * testsuite/gas/i386/quoted.d, testsuite/gas/i386/wrap32-text.d:
1122 Adjust expectations.
1123 * testsuite/gas/i386/wrap32-data.d: Likewise. Correct name.
1124
1125 2021-06-08 Jan Beulich <jbeulich@suse.com>
1126
1127 * config/tc-i386.c (optimize_imm): Use fits_in_unsigned_word
1128 and fits_in_unsigned_long.
1129
1130 2021-06-08 Jan Beulich <jbeulich@suse.com>
1131
1132 * config/tc-i386.c (optimize_disp): Use fits_in_unsigned_word
1133 and fits_in_unsigned_long. Combine if()s.
1134
1135 2021-06-08 Jan Beulich <jbeulich@suse.com>
1136
1137 * config/tc-i386.c (optimize_disp): Write back updated value.
1138 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea64.s: New
1139 cases.
1140 * testsuite/gas/i386/lea16-optimize.d,
1141 testsuite/gas/i386/lea64.d, testsuite/gas/i386/lea64-optimize.d:
1142 Adjust expectations.
1143 * testsuite/gas/i386/lea16.d: New.
1144 * testsuite/gas/i386/i386.exp: Run new test.
1145
1146 2021-06-08 Jan Beulich <jbeulich@suse.com>
1147
1148 * config/tc-i386.c (optimize_disp): Drop redundant masking.
1149 Re-order.
1150
1151 2021-06-07 Jan Beulich <jbeulich@suse.com>
1152
1153 * config/tc-i386.c (i386_att_operand): Re-write handling of
1154 vector operations operand suffix.
1155 * testsuite/gas/i386/unary.s: Add more cases.
1156 * testsuite/gas/i386/unary.d: Adjust expectations.
1157
1158 2021-06-07 Jan Beulich <jbeulich@suse.com>
1159
1160 * config/tc-i386.c (parse_operands): Reduce scope of
1161 paren_not_balanced, to match the new in_quotes. Skip over quoted
1162 regions of operands.
1163 (i386_att_operand): Remove (mis-named) parens_balanced. Respect
1164 double quote.
1165 * testsuite/gas/i386/unary.s: Add more cases.
1166 * testsuite/gas/i386/unary.d: Adjust expectations.
1167
1168 2021-06-07 Jan Beulich <jbeulich@suse.com>
1169
1170 * config/tc-i386.c (digit_chars, is_digit_char): Delete.
1171 (md_begin): Fold digit and lower-case letter handling.
1172 (starts_memory_operand): Permit more characters.
1173 * testsuite/gas/i386/unary.s, testsuite/gas/i386/unary.d: New.
1174 * testsuite/gas/i386/i386.exp: Run new test.
1175
1176 2021-06-07 Jan Beulich <jbeulich@suse.com>
1177
1178 * config/tc-i386.c (starts_memory_operand): New.
1179 (i386_att_operand): Use it.
1180 * testsuite/gas/i386/quoted.s, testsuite/gas/i386/quoted.d: New.
1181 * testsuite/gas/i386/i386.exp: Run new test.
1182
1183 2021-06-07 Jan Beulich <jbeulich@suse.com>
1184
1185 * config/tc-i386.c (i386_att_operand): Flip checking for '*' and
1186 start-of-expression. Don't permit '*' when one was already seen.
1187
1188 2021-06-07 Jan Beulich <jbeulich@suse.com>
1189
1190 * config/tc-i386.c (parse_operands): Don't check for matched
1191 square brackets.
1192
1193 2021-06-07 Jan Beulich <jbeulich@suse.com>
1194
1195 * config/tc-i386.c (check_VecOperations): Remove 2nd parameter.
1196 (i386_att_operand): Adjust calls to check_VecOperations.
1197 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
1198
1199 2021-06-07 Jan Beulich <jbeulich@suse.com>
1200
1201 * config/tc-i386.c (i386_immediate): Don't call check_VecOperations.
1202
1203 2021-06-07 Jan Beulich <jbeulich@suse.com>
1204
1205 * config/tc-i386.c (extend_to_32bit_address): New.
1206 (x86_cons, i386_finalize_immediate, md_apply_fix): Use it.
1207 (signed_cons): Use object_64bit.
1208 * testsuite/gas/i386/wrap32.s, testsuite/gas/i386/wrap32-data.d,
1209 testsuite/gas/i386/wrap32-text.d: New.
1210 * testsuite/gas/i386/i386.exp: Run new tests.
1211
1212 2021-06-03 Alan Modra <amodra@gmail.com>
1213
1214 PR 1202
1215 * testsuite/gas/mcore/allinsn.d: Correct loopt expected output.
1216
1217 2021-05-29 Alan Modra <amodra@gmail.com>
1218
1219 * testsuite/gas/ppc/raw.s,
1220 * testsuite/gas/ppc/raw.d: New test.
1221 * testsuite/gas/ppc/ppc.exp: Run it.
1222
1223 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1224
1225 * testsuite/gas/mips/c0.d: New test.
1226 * testsuite/gas/mips/mips1@c0.d: New test.
1227 * testsuite/gas/mips/mips2@c0.d: New test.
1228 * testsuite/gas/mips/mips3@c0.d: New test.
1229 * testsuite/gas/mips/mips4@c0.d: New test.
1230 * testsuite/gas/mips/mips5@c0.d: New test.
1231 * testsuite/gas/mips/mips32@c0.d: New test.
1232 * testsuite/gas/mips/mips64@c0.d: New test.
1233 * testsuite/gas/mips/r3000@c0.d: New test.
1234 * testsuite/gas/mips/r3900@c0.d: New test.
1235 * testsuite/gas/mips/r4000@c0.d: New test.
1236 * testsuite/gas/mips/vr5400@c0.d: New test.
1237 * testsuite/gas/mips/r5900@c0.d: New test.
1238 * testsuite/gas/mips/sb1@c0.d: New test.
1239 * testsuite/gas/mips/interaptiv-mr2@c0.d: New test.
1240 * testsuite/gas/mips/octeon@c0.d: New test.
1241 * testsuite/gas/mips/xlr@c0.d: New test.
1242 * testsuite/gas/mips/c1.d: New test.
1243 * testsuite/gas/mips/mips1@c1.d: New test.
1244 * testsuite/gas/mips/mips2@c1.d: New test.
1245 * testsuite/gas/mips/mips3@c1.d: New test.
1246 * testsuite/gas/mips/mips4@c1.d: New test.
1247 * testsuite/gas/mips/mips5@c1.d: New test.
1248 * testsuite/gas/mips/mips32@c1.d: New test.
1249 * testsuite/gas/mips/mips64@c1.d: New test.
1250 * testsuite/gas/mips/mipsr6@c1.d: New test.
1251 * testsuite/gas/mips/r3000@c1.d: New test.
1252 * testsuite/gas/mips/r3900@c1.d: New test.
1253 * testsuite/gas/mips/r4000@c1.d: New test.
1254 * testsuite/gas/mips/vr5400@c1.d: New test.
1255 * testsuite/gas/mips/r5900@c1.d: New test.
1256 * testsuite/gas/mips/sb1@c1.d: New test.
1257 * testsuite/gas/mips/interaptiv-mr2@c1.d: New test.
1258 * testsuite/gas/mips/octeon@c1.d: New test.
1259 * testsuite/gas/mips/xlr@c1.d: New test.
1260 * testsuite/gas/mips/c2.d: New test.
1261 * testsuite/gas/mips/vr5400@c2.d: New test.
1262 * testsuite/gas/mips/r5900@c2.d: New test.
1263 * testsuite/gas/mips/octeon@c2.d: New test.
1264 * testsuite/gas/mips/c3.d: New test.
1265 * testsuite/gas/mips/mips1@c3.d: New test.
1266 * testsuite/gas/mips/mips2@c3.d: New test.
1267 * testsuite/gas/mips/mips32@c3.d: New test.
1268 * testsuite/gas/mips/r3000@c3.d: New test.
1269 * testsuite/gas/mips/r3900@c3.d: New test.
1270 * testsuite/gas/mips/c0.l: New test stderr output.
1271 * testsuite/gas/mips/c2.l: New test stderr output.
1272 * testsuite/gas/mips/c3.l: New test stderr output.
1273 * testsuite/gas/mips/c0.s: New test source.
1274 * testsuite/gas/mips/c1.s: New test source.
1275 * testsuite/gas/mips/c2.s: New test source.
1276 * testsuite/gas/mips/c3.s: New test source.
1277 * testsuite/gas/mips/mips.exp: Run the new tests.
1278
1279 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1280
1281 * testsuite/gas/mips/mips.exp: Run RFE test across all ISAs.
1282 * testsuite/gas/mips/rfe.d: Update for ISA exclusions.
1283 * testsuite/gas/mips/mips1@rfe.d: New test.
1284 * testsuite/gas/mips/mips2@rfe.d: New test.
1285 * testsuite/gas/mips/r3000@rfe.d: New test.
1286 * testsuite/gas/mips/r3900@rfe.d: New test.
1287 * testsuite/gas/mips/rfe.l: New test stderr output.
1288
1289 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1290
1291 * testsuite/gas/mips/mips.exp: Run coprocessor tests across all
1292 ISAs.
1293 * testsuite/gas/mips/cp0b.d: Update for ISA exclusions.
1294 * testsuite/gas/mips/cp0bl.d: Update for ISA exclusions.
1295 * testsuite/gas/mips/cp0c.d: Update for ISA exclusions.
1296 * testsuite/gas/mips/cp0m.d: Update for ISA exclusions.
1297 * testsuite/gas/mips/cp3.d: Update for ISA exclusions.
1298 * testsuite/gas/mips/cp3b.d: Update for ISA exclusions.
1299 * testsuite/gas/mips/cp3bl.d: Update for ISA exclusions.
1300 * testsuite/gas/mips/cp3m.d: Update for ISA exclusions.
1301 * testsuite/gas/mips/cp3d.d: Update for ISA exclusions.
1302 * testsuite/gas/mips/mips1@cp0b.d: New test.
1303 * testsuite/gas/mips/mips2@cp0b.d: New test.
1304 * testsuite/gas/mips/mips3@cp0b.d: New test.
1305 * testsuite/gas/mips/r3000@cp0b.d: New test.
1306 * testsuite/gas/mips/r3900@cp0b.d: New test.
1307 * testsuite/gas/mips/r4000@cp0b.d: New test.
1308 * testsuite/gas/mips/r5900@cp0b.d: New test.
1309 * testsuite/gas/mips/mips2@cp0bl.d: New test.
1310 * testsuite/gas/mips/mips3@cp0bl.d: New test.
1311 * testsuite/gas/mips/r3900@cp0bl.d: New test.
1312 * testsuite/gas/mips/r4000@cp0bl.d: New test.
1313 * testsuite/gas/mips/r5900@cp0bl.d: New test.
1314 * testsuite/gas/mips/mips1@cp0c.d: New test.
1315 * testsuite/gas/mips/mips2@cp0c.d: New test.
1316 * testsuite/gas/mips/mips3@cp0c.d: New test.
1317 * testsuite/gas/mips/mips4@cp0c.d: New test.
1318 * testsuite/gas/mips/mips5@cp0c.d: New test.
1319 * testsuite/gas/mips/r3000@cp0c.d: New test.
1320 * testsuite/gas/mips/r3900@cp0c.d: New test.
1321 * testsuite/gas/mips/r4000@cp0c.d: New test.
1322 * testsuite/gas/mips/vr5400@cp0c.d: New test.
1323 * testsuite/gas/mips/r5900@cp0c.d: New test.
1324 * testsuite/gas/mips/mips1@cp0m.d: New test.
1325 * testsuite/gas/mips/r3000@cp0m.d: New test.
1326 * testsuite/gas/mips/octeon@cp2.d: New test.
1327 * testsuite/gas/mips/mipsr6@cp2b.d: New test.
1328 * testsuite/gas/mips/vr5400@cp2b.d: New test.
1329 * testsuite/gas/mips/octeon@cp2b.d: New test.
1330 * testsuite/gas/mips/mips1@cp2bl.d: New test.
1331 * testsuite/gas/mips/mipsr6@cp2bl.d: New test.
1332 * testsuite/gas/mips/r3000@cp2bl.d: New test.
1333 * testsuite/gas/mips/vr5400@cp2bl.d: New test.
1334 * testsuite/gas/mips/octeon@cp2bl.d: New test.
1335 * testsuite/gas/mips/vr5400@cp2m.d: New test.
1336 * testsuite/gas/mips/r5900@cp2m.d: New test.
1337 * testsuite/gas/mips/octeon@cp2m.d: New test.
1338 * testsuite/gas/mips/mips1@cp2d.d: New test.
1339 * testsuite/gas/mips/r3000@cp2d.d: New test.
1340 * testsuite/gas/mips/r3900@cp2d.d: New test.
1341 * testsuite/gas/mips/vr5400@cp2d.d: New test.
1342 * testsuite/gas/mips/r5900@cp2d.d: New test.
1343 * testsuite/gas/mips/octeon@cp2d.d: New test.
1344 * testsuite/gas/mips/mips1@cp2-64.d: New test.
1345 * testsuite/gas/mips/mips2@cp2-64.d: New test.
1346 * testsuite/gas/mips/mips32@cp2-64.d: New test.
1347 * testsuite/gas/mips/mips32r2@cp2-64.d: New test.
1348 * testsuite/gas/mips/mips32r3@cp2-64.d: New test.
1349 * testsuite/gas/mips/mips32r5@cp2-64.d: New test.
1350 * testsuite/gas/mips/mips32r6@cp2-64.d: New test.
1351 * testsuite/gas/mips/r3000@cp2-64.d: New test.
1352 * testsuite/gas/mips/r3900@cp2-64.d: New test.
1353 * testsuite/gas/mips/interaptiv-mr2@cp2-64.d: New test.
1354 * testsuite/gas/mips/mips1@cp3.d: New test.
1355 * testsuite/gas/mips/mips2@cp3.d: New test.
1356 * testsuite/gas/mips/mips32@cp3.d: New test.
1357 * testsuite/gas/mips/r3000@cp3.d: New test.
1358 * testsuite/gas/mips/r3900@cp3.d: New test.
1359 * testsuite/gas/mips/mips1@cp3b.d: New test.
1360 * testsuite/gas/mips/mips2@cp3b.d: New test.
1361 * testsuite/gas/mips/mips32@cp3b.d: New test.
1362 * testsuite/gas/mips/r3000@cp3b.d: New test.
1363 * testsuite/gas/mips/r3900@cp3b.d: New test.
1364 * testsuite/gas/mips/mips2@cp3bl.d: New test.
1365 * testsuite/gas/mips/mips32@cp3bl.d: New test.
1366 * testsuite/gas/mips/r3900@cp3bl.d: New test.
1367 * testsuite/gas/mips/mips1@cp3m.d: New test.
1368 * testsuite/gas/mips/mips2@cp3m.d: New test.
1369 * testsuite/gas/mips/r3000@cp3m.d: New test.
1370 * testsuite/gas/mips/r3900@cp3m.d: New test.
1371 * testsuite/gas/mips/mips2@cp3d.d: New test.
1372 * testsuite/gas/mips/cp0b.l: New test stderr output.
1373 * testsuite/gas/mips/cp0bl.l: New test stderr output.
1374 * testsuite/gas/mips/cp0c.l: New test stderr output.
1375 * testsuite/gas/mips/cp0m.l: New test stderr output.
1376 * testsuite/gas/mips/cp2.l: New test stderr output.
1377 * testsuite/gas/mips/cp2-64.l: New test stderr output.
1378 * testsuite/gas/mips/cp2b.l: New test stderr output.
1379 * testsuite/gas/mips/cp2bl.l: New test stderr output.
1380 * testsuite/gas/mips/cp2m.l: New test stderr output.
1381 * testsuite/gas/mips/cp2d.l: New test stderr output.
1382 * testsuite/gas/mips/cp3.l: New test stderr output.
1383 * testsuite/gas/mips/cp3b.l: New test stderr output.
1384 * testsuite/gas/mips/cp3bl.l: New test stderr output.
1385 * testsuite/gas/mips/cp3m.l: New test stderr output.
1386 * testsuite/gas/mips/cp3d.l: New test stderr output.
1387
1388 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1389
1390 * testsuite/gas/mips/mips32@isa-override-1.d: Update for LDC3
1391 instruction removal.
1392 * testsuite/gas/mips/mips32r2@isa-override-1.d: Likewise.
1393
1394 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1395
1396 * testsuite/gas/mips/cp0b.d: New test.
1397 * testsuite/gas/mips/cp0bl.d: New test.
1398 * testsuite/gas/mips/cp2b.d: New test.
1399 * testsuite/gas/mips/micromips@cp2b.d: New test.
1400 * testsuite/gas/mips/cp2bl.d: New test.
1401 * testsuite/gas/mips/micromips@cp2bl.d: New test.
1402 * testsuite/gas/mips/cp3b.d: New test.
1403 * testsuite/gas/mips/cp3bl.d: New test.
1404 * testsuite/gas/mips/cp0b.s: New test source.
1405 * testsuite/gas/mips/cp0bl.s: New test source.
1406 * testsuite/gas/mips/cp2b.s: New test source.
1407 * testsuite/gas/mips/cp2bl.s: New test source.
1408 * testsuite/gas/mips/cp3b.s: New test source.
1409 * testsuite/gas/mips/cp3bl.s: New test source.
1410 * testsuite/gas/mips/mips.exp: Run the new tests.
1411
1412 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1413
1414 * testsuite/gas/mips/rfe.d: New test.
1415 * testsuite/gas/mips/rfe.s: New test source.
1416 * testsuite/gas/mips/mips.exp: Run the new test.
1417
1418 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1419
1420 * testsuite/gas/mips/cp1-names-r3900.d: New test.
1421 * testsuite/gas/mips/mips.exp: Run the new test.
1422 * testsuite/gas/mips/branch-misc-3.d: Update disassembly
1423 according to changes to opcodes.
1424 * testsuite/gas/mips/cp1-names-r3000.d: Likewise.
1425 * testsuite/gas/mips/cp1-names-r4000.d: Likewise.
1426 * testsuite/gas/mips/relax-swap1-mips1.d: Likewise.
1427 * testsuite/gas/mips/relax-swap1-mips2.d: Likewise.
1428 * testsuite/gas/mips/trunc.d: Likewise.
1429
1430 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1431
1432 * testsuite/gas/mips/cp0c.d: New test.
1433 * testsuite/gas/mips/cp0m.d: New test.
1434 * testsuite/gas/mips/r3900@cp0m.d: New test.
1435 * testsuite/gas/mips/cp2.d: New test.
1436 * testsuite/gas/mips/micromips@cp2.d: New test.
1437 * testsuite/gas/mips/cp2m.d: New test.
1438 * testsuite/gas/mips/mipsr6@cp2m.d: New test.
1439 * testsuite/gas/mips/micromips@cp2m.d: New test.
1440 * testsuite/gas/mips/cp2d.d: New test.
1441 * testsuite/gas/mips/mipsr6@cp2d.d: New test.
1442 * testsuite/gas/mips/micromips@cp2d.d: New test.
1443 * testsuite/gas/mips/cp2-64.d: New test.
1444 * testsuite/gas/mips/micromips@cp2-64.d: New test.
1445 * testsuite/gas/mips/cp3.d: New test.
1446 * testsuite/gas/mips/cp3m.d: New test.
1447 * testsuite/gas/mips/cp3d.d: New test.
1448 * testsuite/gas/mips/cp0c.s: New test source.
1449 * testsuite/gas/mips/cp0m.s: New test source.
1450 * testsuite/gas/mips/cp2.s: New test source.
1451 * testsuite/gas/mips/cp2m.s: New test source.
1452 * testsuite/gas/mips/cp2d.s: New test source.
1453 * testsuite/gas/mips/cp2-64.s: New test source.
1454 * testsuite/gas/mips/cp3.s: New test source.
1455 * testsuite/gas/mips/cp3m.s: New test source.
1456 * testsuite/gas/mips/cp3d.s: New test source.
1457 * testsuite/gas/mips/mips.exp: Run the new tests.
1458
1459 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1460
1461 * tc-mips.c (convert_reg_type) <OP_REG_CONTROL>: New case.
1462 (macro) <M_TRUNCWS, M_TRUNCWD>: Use the `g' rather than `G'
1463 operand code.
1464
1465 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1466
1467 * testsuite/gas/mips/cp0-names-r3900.d: New test.
1468 * testsuite/gas/mips/mips.exp: Run it.
1469
1470 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1471
1472 * testsuite/gas/mips/micromips.d: Update disassembly according
1473 to "dmtc1" entry fix with opcodes.
1474 * testsuite/gas/mips/micromips-compact.d: Likewise.
1475 * testsuite/gas/mips/micromips-insn32.d: Likewise.
1476 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1477 * testsuite/gas/mips/micromips-trap.d: Likewise.
1478 * testsuite/gas/mips/micromips@isa-override-1.d: Likewise.
1479
1480 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1481
1482 * config/tc-mips.c (FCSR): New macro.
1483 (macro) <M_TRUNCWS, M_TRUNCWD>: Use it in place of RA.
1484
1485 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
1486
1487 PR ld/27905
1488 * config/tc-i386.c (set_code_flag): Revert commit 50c95a739c9.
1489 (set_16bit_gcc_code_flag): Likewise.
1490 (x86_cleanup): Likewise.
1491 * testsuite/gas/i386/code16-2.d: Updated.
1492 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
1493
1494 2021-05-27 Peter Bergner <bergner@linux.ibm.com>
1495
1496 * testsuite/gas/ppc/vsx.d <xxmr, xxlnot>: Add tests.
1497 * testsuite/gas/ppc/vsx.s: Likewise.
1498
1499 2021-05-27 Alan Modra <amodra@gmail.com>
1500
1501 * config/tc-nds32.c (do_pseudo_push_bhwd, do_pseudo_pop_bhwd),
1502 (do_pseudo_pusha, do_pseudo_pushi): Avoid fortify strncpy bound
1503 error.
1504
1505 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
1506
1507 PR ld/27905
1508 * config/tc-i386.c (set_code_flag): Update x86_feature_2_used
1509 with GNU_PROPERTY_X86_FEATURE_2_CODE16 for .code16 in ELF
1510 object.
1511 (set_16bit_gcc_code_flag): Likewise.
1512 (x86_cleanup): Always generate the GNU property note if
1513 x86_feature_2_used isn't 0.
1514 * testsuite/gas/i386/code16-2.d: New file.
1515 * testsuite/gas/i386/code16-2.s: Likewise.
1516 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
1517 * testsuite/gas/i386/i386.exp: Run code16-2 and x86-64-code16-2.
1518
1519 2021-05-26 Sebastien Villemot <sebastien@debian.org>
1520
1521 PR gas/27906
1522 * doc/c-i386.texi: Replace movsb with movsxb as an alias for
1523 movsbq.
1524
1525 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
1526
1527 * config/tc-riscv.c (riscv_set_arch): Set
1528 check_unknown_prefixed_ext to true for assembler.
1529
1530 2021-05-25 Tamar Christina <tamar.christina@arm.com>
1531
1532 PR gas/25235
1533 * config/tc-arm.c (md_convert_frag): Set LSB when Thumb symbol.
1534 (relax_adr): Thumb symbols 4 bytes.
1535 * testsuite/gas/arm/pr25235.d: New test.
1536 * testsuite/gas/arm/pr25235.s: New test.
1537
1538 2021-05-24 Nelson Chu <nelson.chu@sifive.com>
1539
1540 PR 25212
1541 * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we
1542 will choose ilp32e abi for rv32e. Besides, report errors for the
1543 invalid march and mabi combinations.
1544 * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept
1545 ilp32e abi for rve extension.
1546 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise.
1547 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise.
1548 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise.
1549 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise.
1550 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
1551 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
1552 Renamed all mabi testcases to their march-mabi settings.
1553
1554 2021-05-22 Alan Modra <amodra@gmail.com>
1555
1556 PR 25599
1557 * config/tc-ia64.c (emit_one_bundle): Expand comment for HP-UX
1558 adjustment. Add assertion.
1559 * testsuite/gas/ia64/reloc-mlx.d: Pass when slot 2 specified
1560 for PCREL60B.
1561
1562 2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com>
1563
1564 * config/tc-z80.c (emit_data_val): Warn on constant overflow.
1565 (signed_overflow): New function.
1566 (unsigned_overflow): New function.
1567 (is_overflow): Use new functions.
1568 (md_apply_fix): Use signed_overflow.
1569 * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
1570 * testsuite/gas/z80/ez80_isuf.s: Likewise.
1571 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
1572
1573 2021-05-20 Nicolas Boulenguez <nicolas@debian.org>
1574
1575 PR 27888
1576 * Makefile.am (ZLIB): Define.
1577 (as_new_LDADD): Add it.
1578 * Makefile.in: Regenerate.
1579
1580 2021-05-17 Alex Coplan <alex.coplan@arm.com>
1581
1582 * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
1583 into the same GPR twice.
1584 * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
1585 * testsuite/gas/arm/mve-vmov-3.d: New test.
1586 * testsuite/gas/arm/mve-vmov-3.s: New test.
1587
1588 2021-05-12 Alan Modra <amodra@gmail.com>
1589
1590 * testsuite/gas/elf/dwarf-5-file0.d: Update.
1591 * testsuite/gas/i386/dwarf5-line-1.d: Update.
1592
1593 2021-05-11 Sergey Belyashov <sergey.belyashov@gmail.com>
1594
1595 PR 27823
1596 * config/tc-z80.c (emit_ld_r_m): Report an illegal load
1597 instruction.
1598 * testsuite/gas/z80/ill_ops.s: New test source file.
1599 * testsuite/gas/z80/ill_ops.d: New test driver.
1600 * testsuite/gas/z80/ill_ops.l: New test error output.
1601
1602 2021-05-10 Sergey Belyashov <sergey.belyashov@gmail.com>
1603
1604 PR 27415
1605 * config/tc-z80.c (emit_data_val): Add support for 8-bit and
1606 24-bit shifts.
1607 * testsuite/gas/z80/z80_reloc.a: Update tests.
1608 * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
1609
1610 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1611
1612 * doc/Makefile.am (html-local, as/index.html): New targets.
1613 * doc/Makefile.in: Regenerate.
1614
1615 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1616
1617 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
1618 * doc/Makefile.in: Regenerate.
1619
1620 2021-05-07 Nick Clifton <nickc@redhat.com>
1621
1622 PR 3136
1623 * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
1624 (obj_elf_bss): New function. Change to the .bss section.
1625 Support an optional subsection number.
1626 (obj_elf_change_section): Call obj_elf_section_change_hook.
1627 (obj_elf_section): Likewise.
1628 (obj_elf_data): Likewise.
1629 (obj_elf_text): Likewise.
1630 (obj_elf_struct): Likewise.
1631 (obj_elf_subsection): Likewise.
1632 (obj_elf_previous): Likewise.
1633 * config/obj-elf.h (obj_elf_bss): Prototype.
1634 * doc/as.texi (Bss): New node.
1635
1636 2021-05-07 Clément Chigot <clement.chigot@atos.net>
1637
1638 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
1639 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
1640 (coff_frob_section): Likewise.
1641 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
1642 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
1643 SA_SET_SECT_NRELOC) New defines.
1644 (SET_SECTION_RELOCS): Adjust for C_DWARF.
1645 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
1646 (ppc_adjust_symtab): Reorder C_DWARF symbols.
1647 * testsuite/gas/ppc/aix.exp: New tests.
1648 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
1649 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
1650 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
1651
1652 * config/tc-ppc.c (ppc_function): Update comment for
1653 fifth argument.
1654 (ppc_frob_symbol): Remove ppc_last_function check.
1655 Make sure coff_last_function is reset.
1656 Correctly set fsize when not provided in .function.
1657 * testsuite/gas/ppc/aix.exp: New tests.
1658 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
1659 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
1660 * testsuite/gas/ppc/xcoff-function-1.s: New test.
1661
1662 2021-05-07 Jan Beulich <jbeulich@suse.com>
1663
1664 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
1665 * testsuite/gas/i386/i386.exp: Run new test.
1666
1667 2021-05-07 Jan Beulich <jbeulich@suse.com>
1668
1669 * config/tc-i386.c (output_disp): Use disps field instead of
1670 imms one.
1671
1672 2021-05-07 Jan Beulich <jbeulich@suse.com>
1673
1674 * config/tc-i386.c (i386_finalize_immediate): Move register
1675 check ...
1676 (i386_immediate): ... here.
1677
1678 2021-05-07 Jan Beulich <jbeulich@suse.com>
1679
1680 * config/tc-i386.c (optimize_imm): Drop redundant masking.
1681 Re-arrange operand type accumulation.
1682
1683 2021-05-06 Stafford Horne <shorne@gmail.com>
1684
1685 PR 21464
1686 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
1687 * testsuite/gas/or1k/reloc-1.d: Add test result for new
1688 relocation.
1689
1690 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
1691
1692 PR 27764
1693 * testsuite/gas/riscv/a-ext-64.d: New testcase.
1694 * testsuite/gas/riscv/a-ext-64.s: Likewise.
1695 * testsuite/gas/riscv/a-ext.d: Likewise.
1696 * testsuite/gas/riscv/a-ext.s: Likewise.
1697
1698 2021-05-03 Jan Beulich <jbeulich@suse.com>
1699
1700 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
1701 #if.
1702 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
1703 Add two further .long and an .equ.
1704 * testsuite/gas/i386/secrel.d: Adjust expecations.
1705
1706 2021-05-03 Jan Beulich <jbeulich@suse.com>
1707
1708 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
1709 Convert Windows to UNIX EOL.
1710
1711 2021-05-03 Jan Beulich <jbeulich@suse.com>
1712
1713 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
1714 variant into ELF one.
1715
1716 2021-05-03 Alan Modra <amodra@gmail.com>
1717
1718 * testsuite/gas/elf/section25.s: Don't start directives in first
1719 column.
1720 * testsuite/gas/elf/section26.s: Likewise.
1721
1722 2021-04-29 Jan Beulich <jbeulich@suse.com>
1723
1724 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
1725 * testsuite/gas/i386/lea64.d,
1726 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
1727 * testsuite/gas/i386/x86-64-rip-inval-1.s,
1728 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
1729
1730 2021-04-29 Jan Beulich <jbeulich@suse.com>
1731
1732 * config/tc-i386.c (i386_validate_fix): Change return type to
1733 int. Short-circuit BFD_RELOC_SIZE* handling.
1734 (tc_gen_reloc): New local variable sym. Extend logic when
1735 processing BFD_RELOC_SIZE*.
1736 * config/tc-i386.f (i386_validate_fix): Change return type to
1737 int.
1738 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
1739 returns zero.
1740 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
1741 testsuite/gas/i386/size-5b.d: New.
1742 * testsuite/gas/i386/i386.exp: Run new tests.
1743
1744 2021-04-29 Jan Beulich <jbeulich@suse.com>
1745
1746 * config/tc-i386.c (tc_gen_reloc): Use section size for section
1747 symbols when resolving BFD_RELOC_SIZE*.
1748 * testsuite/gas/i386/size-2.s: Add section size cases.
1749 * testsuite/gas/i386/size-2.d,
1750 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
1751
1752 2021-04-28 Jan Beulich <jbeulich@suse.com>
1753 H.J. Lu <hjl.tools@gmail.com>
1754
1755 PR gas/27763
1756 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
1757 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
1758 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
1759 (md_estimate_size_before_relax): Move local variable fixP. Set
1760 it from fix_new() return values. Mark 4-byte relocs as signed
1761 for 64-bit.
1762 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
1763 * testsuite/gas/i386/x86-64-rip-2.s,
1764 * testsuite/gas/i386/x86-64-rip-2.d,
1765 * testsuite/gas/i386/x86-64-rip-inval-1.s,
1766 * testsuite/gas/i386/x86-64-rip-inval-1.l,
1767 * testsuite/gas/i386/x86-64-rip-inval-2.s,
1768 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
1769 * testsuite/gas/i386/i386.exp: Run new tests.
1770
1771 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
1772
1773 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
1774
1775 2021-04-26 Jan Beulich <jbeulich@suse.com>
1776
1777 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
1778 BFD_RELOC_SIZE*.
1779
1780 2021-04-26 Jan Beulich <jbeulich@suse.com>
1781
1782 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
1783 overflow check to 64-bit objects.
1784
1785 2021-04-26 Jan Beulich <jbeulich@suse.com>
1786
1787 * config/tc-i386.c (want_disp32): Also check for SIZE32.
1788 (optimize_encoding): Handle LEA.
1789 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
1790 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
1791 Add many more forms.
1792 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
1793 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
1794 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
1795 New.
1796 * testsuite/gas/i386/i386.exp: Run new tests.
1797
1798 2021-04-26 Jan Beulich <jbeulich@suse.com>
1799
1800 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
1801 signed.
1802 * testsuite/gas/i386/x86-64-addr32-bad.s,
1803 testsuite/gas/i386/x86-64-addr32-bad.l: New.
1804 * testsuite/gas/i386/i386.exp: Run new test.
1805
1806 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
1807
1808 * testsuite/gas/elf/section25.d: Run it everywhere.
1809 * testsuite/gas/elf/section26.d: Likewise.
1810 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
1811
1812 2021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
1813
1814 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
1815 optional "code" argument.
1816
1817 2021-04-23 Jan Beulich <jbeulich@suse.com>
1818
1819 * config/tc-i386.c (want_disp32): New.
1820 (md_assemble): Use it.
1821 (optimize_disp): Likewise.
1822 (build_modrm_byte): Likewise.
1823
1824 2021-04-23 Jan Beulich <jbeulich@suse.com>
1825
1826 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
1827 check ...
1828 (md_assemble): ... here.
1829
1830 2021-04-23 Jan Beulich <jbeulich@suse.com>
1831
1832 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
1833 Move up setting of disp32.
1834
1835 2021-04-23 Jan Beulich <jbeulich@suse.com>
1836
1837 * config/tc-i386.c (pe): Don't truncate expression value.
1838 (i386_finalize_displacement): Likewise.
1839
1840 2021-04-21 Nick Clifton <nickc@redhat.com>
1841
1842 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
1843 for named section symbols.
1844 * testsuite/gas/arm/thumbver.d: Likewise.
1845 * testsuite/gas/bfin/loop_temps.d: Likewise.
1846 * testsuite/gas/elf/section2.e-arc: Likewise.
1847 * testsuite/gas/elf/section2.e-arm: Likewise.
1848 * testsuite/gas/elf/section2.e-csky: Likewise.
1849 * testsuite/gas/elf/section2.e-m32r: Likewise.
1850 * testsuite/gas/elf/section2.e-mips: Likewise.
1851 * testsuite/gas/elf/section2.e-msp430: Likewise.
1852 * testsuite/gas/elf/section2.e-riscv: Likewise.
1853 * testsuite/gas/elf/section2.e-rl78: Likewise.
1854 * testsuite/gas/elf/section2.e-rx: Likewise.
1855 * testsuite/gas/elf/section2.e-score: Likewise.
1856 * testsuite/gas/elf/section2.e-tic6x: Likewise.
1857 * testsuite/gas/elf/section2.e-unused: Likewise.
1858 * testsuite/gas/elf/section2.e-v850: Likewise.
1859 * testsuite/gas/elf/section2.e-xtensa: Likewise.
1860 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
1861 * testsuite/gas/ia64/alias.d: Likewise.
1862 * testsuite/gas/ia64/global.d: Likewise.
1863 * testsuite/gas/microblaze/relax_size.elf: Likewise.
1864 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
1865 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
1866 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
1867 * testsuite/gas/mmix/bspec-1.d: Likewise.
1868 * testsuite/gas/mmix/byte-1.d: Likewise.
1869 * testsuite/gas/mmix/comment-1.d: Likewise.
1870 * testsuite/gas/mmix/loc-1.d: Likewise.
1871 * testsuite/gas/mmix/loc-2.d: Likewise.
1872 * testsuite/gas/mmix/loc-3.d: Likewise.
1873 * testsuite/gas/mmix/loc-4.d: Likewise.
1874 * testsuite/gas/mmix/loc-5.d: Likewise.
1875 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1876
1877 2021-04-20 Clément Chigot <clement.chigot@atos.net>
1878
1879 PR binutils/21700
1880 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
1881 (ppc_fix_adjustable): Manage fx_subsy part.
1882 (tc_gen_reloc): Create second relocation when both
1883 fx_addsy and fx_subsy are provided.
1884 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
1885 (MAX_RELOC_EXPANSION): Likewise.
1886 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
1887 (UNDEFINED_DIFFERENCE_OK): Likewise
1888 * testsuite/gas/all/gas.exp: Skip difference between two
1889 undefined symbols test.
1890
1891 2021-04-19 Nick Clifton <nickc@redhat.com>
1892
1893 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
1894 targets which should skip the undefined symbols test.
1895
1896 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1897
1898 * NEWS: Update news.
1899 * testsuite/gas/aarch64/rme.d: Update test.
1900 * testsuite/gas/aarch64/rme.s: Update test.
1901
1902 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1903
1904 * testsuite/gas/aarch64/rme.d: Update test.
1905 * testsuite/gas/aarch64/rme.s: Update test.
1906
1907 2021-04-19 Jan Beulich <jbeulich@suse.com>
1908
1909 * as.h (sprint_value): Delete.
1910 * messages.c (sprint_value): Likewise.
1911 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
1912 place of sprint_value.
1913 * config/tc-s390.c (s390_insert_operand): Likewise.
1914 * doc/internals.texi (sprint_value): Delete section.
1915 * write.c (fixup_segment): Likewise.
1916 (relax_segment): Likewise.
1917
1918 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1919
1920 * testsuite/gas/aarch64/rme-invalid.d: New test.
1921 * testsuite/gas/aarch64/rme-invalid.l: New test.
1922 * testsuite/gas/aarch64/rme-invalid.s: New test.
1923 * testsuite/gas/aarch64/rme.d: New test.
1924 * testsuite/gas/aarch64/rme.s: New test.
1925
1926 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
1927
1928 PR 27436
1929 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
1930 * testsuite/gas/riscv/shamt-32.d: New testcase.
1931 * testsuite/gas/riscv/shamt-32.l: Likewise.
1932 * testsuite/gas/riscv/shamt-32.s: Likewise.
1933 * testsuite/gas/riscv/shamt-64.d: Likewise.
1934 * testsuite/gas/riscv/shamt-64.l: Likewise.
1935 * testsuite/gas/riscv/shamt-64.s: Likewise.
1936
1937 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
1938
1939 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
1940 c.mv a4,a4.
1941 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
1942
1943 2021-04-14 Alan Modra <amodra@gmail.com>
1944
1945 PR 27723
1946 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
1947 (select_cie_for_fde): ..here. Simplify.
1948
1949 2021-04-14 Alan Modra <amodra@gmail.com>
1950
1951 PR 27723
1952 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
1953 DW_CFA_GNU_window_save and DW_CFA_restore_state.
1954
1955 2021-04-13 Alan Modra <amodra@gmail.com>
1956
1957 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
1958 write to $srcdir. Use gas_host_run and read output file rather
1959 than gas_start/gas_finish.
1960
1961 2021-04-12 Alan Modra <amodra@gmail.com>
1962
1963 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
1964 (md_assemble): Likewise. Handle bignum operands.
1965 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
1966 check.
1967 * expr.c: Delete unnecessary forward declarations.
1968 (generic_bignum_to_int32): Return uint32_t.
1969 (generic_bignum_to_int64): Return uint64_t. Compile always.
1970 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
1971 clear X_extrabit for unary '!'.
1972 * expr.h (generic_bignum_to_int32): Declare.
1973 (generic_bignum_to_int64): Declare.
1974 * testsuite/gas/ppc/prefix-pcrel.s,
1975 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
1976
1977 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
1978
1979 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
1980 march-fail-porder-x-std.d.
1981 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
1982 march-fail-porder-z-std.d.
1983 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
1984 march-fail-porder-x-z.d.
1985 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
1986 march-fail-porder.l.
1987 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
1988 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
1989 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
1990 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
1991 march-fail-single-char-h.d.
1992 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
1993 march-fail-single-char-s.d.
1994 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
1995 march-fail-single-char-x.d.
1996 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
1997 march-fail-single-char-z.d.
1998 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
1999 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
2000 march-fail-single-prefix.l.
2001 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
2002 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
2003 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
2004
2005 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
2006
2007 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
2008 diagnostic messages for LD/ST Exclusive instructions.
2009 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
2010 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
2011 clean-up.
2012
2013 2021-04-09 Alan Modra <amodra@gmail.com>
2014
2015 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
2016 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
2017 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
2018
2019 2021-04-08 Alan Modra <amodra@gmail.com>
2020
2021 * testsuite/gas/ppc/pr27676.d,
2022 * testsuite/gas/ppc/pr27676.s: New test.
2023 * testsuite/gas/ppc/ppc.exp: Run it.
2024 * testsuite/gas/ppc/dcbt.d: Update.
2025 * testsuite/gas/ppc/power4_32.d: Update.
2026
2027 2021-04-07 Alan Modra <amodra@gmail.com>
2028
2029 PR 27217
2030 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
2031
2032 2021-04-06 Nick Clifton <nickc@redhat.com>
2033
2034 PR 27217
2035 * config/tc-aarch64.c (my_get_expression): Rename to
2036 aarch64_get_expression. Add a fifth argument to enable deferring
2037 of expression resolution.
2038 (parse_typed_reg): Update calls to my_get_expression.
2039 (parse_vector_reg_list): Likewise.
2040 (parse_immediate_expression): Likewise.
2041 (parse_big_immediate): Likewise.
2042 (parse_shift): Likewise.
2043 (parse_shifter_operand_imm): Likewise.
2044 (parse_operands): Likewise.
2045 (parse_shifter_operand_reloc): Update calls to my_get_expression
2046 and call aarch64_force_reloc to determine the value of the new
2047 fifth argument.
2048 (parse_address_main): Likewise.
2049 (parse_half): Likewise.
2050 (parse_adrp): Likewise.
2051 (aarch64_force_reloc): New function. Contains code extracted from...
2052 (aarch64_force_relocation): ... here.
2053 * testsuite/gas/aarch64/pr27217.s: New test case.
2054 * testsuite/gas/aarch64/pr27217.d: New test driver.
2055
2056 2021-04-06 Jan Beulich <jbeulich@suse.com>
2057
2058 * write.c (fixup_segment): Move add_symbol_segment declaration
2059 into main loop.
2060
2061 2021-04-05 Alan Modra <amodra@gmail.com>
2062
2063 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
2064 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
2065 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
2066 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
2067 strstr, or vsnprintf declarations.
2068 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
2069 * as.h: Don't include alloca-conf.h, include config.h instead.
2070 Include string.h, stdlib.h, errno.h unconditionally. Remove
2071 various fallback declarations.
2072 * asintl.h: Don't test HAVE_LOCALE_H.
2073 * as.c: Don't test HAVE_SETLOCALE.
2074 * dwarf2dbg.c: Include limits.h unconditionally.
2075 * expr.c: Likewise.
2076 * sb.c: Likewise.
2077 * symbols.c: Likewise.
2078 * config/tc-cr16.c: Likewise.
2079 * config/tc-d30v.c: Likewise.
2080 * config/tc-i386.c: Likewise.
2081 * config/tc-ia64.c: Likewise.
2082 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
2083 * config.in: Regenerate.
2084 * configure: Regenerate.
2085 * Makefile.in: Regenerate.
2086 * doc/Makefile.in: Regenerate.
2087
2088 2021-04-01 Martin Liska <mliska@suse.cz>
2089
2090 * config/obj-coff.c (strneq): Remove strneq and use startswith.
2091 (weak_is_altname): Likewise.
2092 (obj_coff_section): Likewise.
2093 * config/tc-cr16.c (process_label_constant): Likewise.
2094 * config/tc-crx.c (strneq): Likewise.
2095
2096 2021-04-01 Martin Liska <mliska@suse.cz>
2097
2098 * as.c (select_emulation_mode): Use startswith.
2099 * config/m68k-parse.y: Likewise.
2100 * config/obj-aout.c (obj_aout_type): Likewise.
2101 * config/obj-elf.c (elf_common_parse): Likewise.
2102 (obj_elf_section_type): Likewise.
2103 (obj_elf_section_word): Likewise.
2104 (obj_elf_section): Likewise.
2105 (obj_elf_symver): Likewise.
2106 (adjust_stab_sections): Likewise.
2107 * config/obj-evax.c (evax_shorten_name): Likewise.
2108 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
2109 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
2110 (aarch64_parse_features): Likewise.
2111 (create_register_alias): Likewise.
2112 (aarch64_data_in_code): Likewise.
2113 (md_parse_option): Likewise.
2114 * config/tc-alpha.c (s_alpha_section_word): Likewise.
2115 (s_alpha_pdesc): Likewise.
2116 * config/tc-arc.c (tokenize_extregister): Likewise.
2117 * config/tc-arm.c (create_register_alias): Likewise.
2118 (create_neon_reg_alias): Likewise.
2119 (parse_ifimm_zero): Likewise.
2120 (parse_qfloat_immediate): Likewise.
2121 (arm_elf_section_type): Likewise.
2122 (arm_parse_extension): Likewise.
2123 (aeabi_set_public_attributes): Likewise.
2124 (s_arm_arch_extension): Likewise.
2125 (arm_data_in_code): Likewise.
2126 (start_unwind_section): Likewise.
2127 * config/tc-avr.c (avr_ldi_expression): Likewise.
2128 * config/tc-csky.c (is_freglist_legal): Likewise.
2129 (csky_s_section): Likewise.
2130 * config/tc-d30v.c (do_assemble): Likewise.
2131 * config/tc-dlx.c (parse_operand): Likewise.
2132 * config/tc-epiphany.c (md_assemble): Likewise.
2133 * config/tc-h8300.c (h8300_elf_section): Likewise.
2134 (get_operand): Likewise.
2135 * config/tc-hppa.c (pa_ip): Likewise.
2136 (pa_level): Likewise.
2137 (pa_space): Likewise.
2138 * config/tc-i386.c (i386_mach): Likewise.
2139 (md_assemble): Likewise.
2140 (check_VecOperations): Likewise.
2141 (i386_target_format): Likewise.
2142 (i386_elf_section_type): Likewise.
2143 * config/tc-ia64.c (start_unwind_section): Likewise.
2144 (md_parse_option): Likewise.
2145 (is_taken_branch): Likewise.
2146 (idesc->name,): Likewise.
2147 (note_register_values): Likewise.
2148 (do_alias): Likewise.
2149 * config/tc-m32c.c (insn_to_subtype): Likewise.
2150 * config/tc-m68hc11.c (get_operand): Likewise.
2151 (md_assemble): Likewise.
2152 * config/tc-m68k.c (m68k_ip): Likewise.
2153 (m68k_elf_suffix): Likewise.
2154 * config/tc-mcore.c (mcore_s_section): Likewise.
2155 * config/tc-metag.c (parse_get_set): Likewise.
2156 (md_parse_option): Likewise.
2157 * config/tc-microblaze.c (parse_imm): Likewise.
2158 (check_got): Likewise.
2159 (md_apply_fix): Likewise.
2160 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
2161 (md_begin): Likewise.
2162 (s_is_linkonce): Likewise.
2163 (check_regno): Likewise.
2164 (match_float_constant): Likewise.
2165 (classify_vr4120_insn): Likewise.
2166 (match_insn): Likewise.
2167 (mips_after_parse_args): Likewise.
2168 (s_change_sec): Likewise.
2169 (s_option): Likewise.
2170 (parse_code_option): Likewise.
2171 (md_section_align): Likewise.
2172 (nopic_need_relax): Likewise.
2173 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
2174 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
2175 (mn10300_end_of_match): Likewise.
2176 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
2177 * config/tc-nds32.c (nds32_parse_option): Likewise.
2178 * config/tc-nds32.h (md_do_align): Likewise.
2179 * config/tc-nios2.c (strprefix): Likewise.
2180 (nios2_special_relocation_p): Likewise.
2181 (nios2_parse_base_register): Likewise.
2182 (nios2_cons): Likewise.
2183 * config/tc-ns32k.c (addr_mode): Likewise.
2184 * config/tc-pdp11.c (set_option): Likewise.
2185 (parse_reg): Likewise.
2186 (parse_ac5): Likewise.
2187 (parse_op_no_deferred): Likewise.
2188 (set_cpu_model): Likewise.
2189 (set_machine_model): Likewise.
2190 * config/tc-pj.c (md_operand): Likewise.
2191 * config/tc-ppc.c (ppc_set_cpu): Likewise.
2192 (ppc_arch): Likewise.
2193 (ppc_section_type): Likewise.
2194 * config/tc-s12z.c (tb_reg_rel): Likewise.
2195 (tb_opr_rel): Likewise.
2196 * config/tc-s390.c (s390_parse_cpu): Likewise.
2197 (md_parse_option): Likewise.
2198 * config/tc-score.c (s3_nopic_need_relax): Likewise.
2199 (s3_pic_need_relax): Likewise.
2200 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
2201 (s7_pic_need_relax): Likewise.
2202 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2203 * config/tc-sparc.c (md_parse_option): Likewise.
2204 (sparc_ip): Likewise.
2205 (s_reserve): Likewise.
2206 (s_common): Likewise.
2207 (s_seg): Likewise.
2208 (sparc_cons): Likewise.
2209 * config/tc-tic54x.c (stag_add_field): Likewise.
2210 (tic54x_endstruct): Likewise.
2211 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
2212 * config/tc-v850.c (v850_comm): Likewise.
2213 (md_begin): Likewise.
2214 (md_assemble): Likewise.
2215 * config/tc-vax.c (vax_cons): Likewise.
2216 * config/tc-wasm32.c (wasm32_leb128): Likewise.
2217 * config/tc-xstormy16.c (md_operand): Likewise.
2218 * config/tc-xtensa.c (get_directive): Likewise.
2219 (xg_instruction_matches_option_term): Likewise.
2220 (is_unaligned_label): Likewise.
2221 (cache_literal_section): Likewise.
2222 * config/xtensa-relax.c (parse_precond): Likewise.
2223 (parse_option_cond): Likewise.
2224 (transition_applies): Likewise.
2225 (wide_branch_opcode): Likewise.
2226 * dw2gencfi.c: Likewise.
2227 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
2228 * ehopt.c (get_cie_info): Likewise.
2229 * input-file.c (input_file_open): Likewise.
2230 * listing.c (listing_newline): Likewise.
2231 (debugging_pseudo): Likewise.
2232 * read.c (read_a_source_file): Likewise.
2233 * write.c (adjust_reloc_syms): Likewise.
2234 (compress_debug): Likewise.
2235 (maybe_generate_build_notes): Likewise.
2236
2237 2021-03-31 Alan Modra <amodra@gmail.com>
2238
2239 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
2240 * config/bfin-lex-wrapper.c: Likewise.
2241 * itbl-lex.l: Don't include as.h.
2242 * config/bfin-lex.l: Likewise.
2243
2244 2021-03-31 Alan Modra <amodra@gmail.com>
2245
2246 * as.h (POISON_BFD_BOOLEAN): Define.
2247 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
2248 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
2249 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
2250 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
2251 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
2252 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
2253 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
2254 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
2255 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
2256 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
2257 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
2258 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
2259 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
2260 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
2261 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
2262 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
2263 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
2264 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
2265 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
2266 * config/tc-metag.c, * config/tc-metag.h,
2267 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
2268 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
2269 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
2270 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
2271 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
2272 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
2273 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
2274 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
2275 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
2276 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
2277 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
2278 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
2279 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
2280 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
2281 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
2282 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
2283 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
2284 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
2285 * config/tc-z8k.c, * config/xtensa-istack.h,
2286 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
2287 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
2288 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
2289 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
2290 with bool, FALSE with false, and TRUE with true.
2291
2292 2021-03-31 Alan Modra <amodra@gmail.com>
2293
2294 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
2295 * config/tc-crx.c: Likewise.
2296 * config/tc-nds32.h: Likewise.
2297
2298 2021-03-30 Jan Beulich <jbeulich@suse.com>
2299
2300 * config/tc-i386.c (build_modrm_byte): Change return type.
2301 Change type of "default_seg". Use NULL. Adjust setting of
2302 "default_seg".
2303 (reg_ds, reg_es, reg_ss): New.
2304 (struct _i386_insn): Change type of seg[].
2305 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
2306 (swap_operands): Change type of "temp_seg".
2307 (check_string): Adjust %es check.
2308 (process_operands): Change type of "default_seg". Use NULL.
2309 Adjust segment override processing..
2310 (i386_att_operand): Adjust segment override handling.
2311 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
2312
2313 2021-03-30 Jan Beulich <jbeulich@suse.com>
2314
2315 * config/tc-i386.c (reg_eax): New.
2316 (md_begin): Initialize reg_eax.
2317 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
2318 reg_eax.
2319 (i386_intel_simplify): Likewise.
2320
2321 2021-03-30 Jan Beulich <jbeulich@suse.com>
2322
2323 * config/tc-i386.c (reg_st0): New.
2324 (md_begin): Convert to switch(). Initialize reg_st0. Don't
2325 insert other st(N).
2326 (parse_real_register): Adjust st(N) processing.
2327
2328 2021-03-30 Jan Beulich <jbeulich@suse.com>
2329
2330 * config/tc-i386.c (rc_op): Delete.
2331 (struct Rounding_Operation): Move ...
2332 (struct _i386_insn): ... here. Change field "rounding".
2333 (build_evex_prefix): Adjust rounding processing.
2334 (swap_2_operands): Likewise.
2335 (check_VecOperands): Likewise.
2336 (RC_SAE_immediate): Likewise.
2337 (optimize_encoding): Adjust check for rounding.
2338 (build_modrm_byte): Likewise.
2339 (output_imm): Likewise.
2340 (md_assemble): Initialize rounding type.
2341
2342 2021-03-30 Jan Beulich <jbeulich@suse.com>
2343
2344 * config/tc-i386.c (broadcast_op): Delete.
2345 (struct Broadcast_Operation): Move ...
2346 (struct _i386_insn): ... here. Change field "broadcast".
2347 (match_mem_size): Adjust check for broadcast.
2348 (optimize_encoding): Likewise.
2349 (process_suffix): Likewise.
2350 (build_evex_prefix): Adjust broadcast processing.
2351 (swap_2_operands): Likewise.
2352 (check_VecOperations): Likewise.
2353 (match_template): Likewise.
2354 (check_VecOperands): Likewise.
2355
2356 2021-03-30 Jan Beulich <jbeulich@suse.com>
2357
2358 * config/tc-i386.c (reg_k0): New.
2359 (mask_op): Delete.
2360 (struct Mask_Operation): Move ...
2361 (struct _i386_insn): ... here. Change field "mask".
2362 (md_begin): Initialize reg_k0.
2363 (build_evex_prefix): Adjust mask processing.
2364 (swap_2_operands): Likewise.
2365 (check_VecOperands): Likewise.
2366 (check_VecOperations): Likewise.
2367 (optimize_encoding): Adjust checks for masking.
2368 (output_insn): Likewise.
2369
2370 2021-03-30 Jan Beulich <jbeulich@suse.com>
2371
2372 * config/tc-i386.c (swap_2_operands): Switch parameters to
2373 unsigned.
2374 (struct RC_Operation): Switch operand field to unsigned.
2375 (struct Mask_Operation): Likewise.
2376 (struct Broadcast_Operation): Likewise.
2377 (build_evex_prefix): Drop cast.
2378 (check_VecOperands): Likewise.
2379 (build_modrm_byte): Likewise.
2380 (output_imm): Likewise.
2381 (check_VecOperations): Add casts to unsigned.
2382
2383 2021-03-29 Jan Beulich <jbeulich@suse.com>
2384
2385 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
2386 * testsuite/gas/i386/x86-64-avx-swap-2.d.
2387 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
2388
2389 2021-03-29 Jan Beulich <jbeulich@suse.com>
2390
2391 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
2392 checks by opcodespace ones.
2393 (insert_lfence_before): Likewise.
2394 (maybe_fused_with_jcc_p): Likewise.
2395 (add_branch_padding_frag_p): Likewise.
2396 (output_disp): Likewise.
2397 (load_insn_p): Re-arrange checks to key applicable ones off of
2398 an opcodespace check.
2399 (md_assemble): Adjust opcode checks.
2400 (check_byte_reg): Likewise.
2401 (process_operands): Likewise.
2402 (i386_index_check): Likewise.
2403 (process_suffix): Likewise. New local variable is_movx. Adjust
2404 movsx/movzx and crc32 handling.
2405 (output_insn): Adjust opcode checks. Drop no longer reachable
2406 case labels. Output legacy encoding prefixes in addition to the
2407 base_opcode byte(s). Rework counting of prefixes for extended
2408 opcode maps.
2409 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
2410 opcode checks.
2411
2412 2021-03-29 Alan Modra <amodra@gmail.com>
2413
2414 * atof-generic.c (FALSE, TRUE): Don't define.
2415 * config/obj-elf.h (FALSE, TRUE): Don't define.
2416 * config/obj-som.h (FALSE, TRUE): Don't define.
2417 * config/tc-hppa.h (FALSE, TRUE): Don't define.
2418 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
2419 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
2420 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
2421 * config/tc-mt.h (obj_fix_adjustable): Delete.
2422 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
2423 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
2424 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
2425 (tokenize_extregister): Likewise.
2426 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
2427 (parse_operands_op, parse_operands, md_assemble): Likewise.
2428 * config/tc-d10v.c (build_insn): Likewise.
2429 * config/tc-score.c (s3_gen_insn_frag): Likewise.
2430 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
2431 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
2432 * config/tc-z80.c (emit_byte): Likewise.
2433
2434 2021-03-29 Alan Modra <amodra@gmail.com>
2435
2436 * config/tc-arm.c (struct arm_long_option_table <func>): Return
2437 bfd_boolean.
2438 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
2439 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
2440 with bfd_boolean.
2441 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
2442 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
2443 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
2444 logical expressions.
2445 (struct metag_long_option <func>): Return bfd_boolean.
2446 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
2447 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
2448 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
2449 (no_operands, lex_force_match, lex_reg_list): Likewise.
2450 (size_from_suffix): Return int.
2451 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
2452 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
2453
2454 2021-03-26 Jan Beulich <jbeulich@suse.com>
2455
2456 * testsuite/gas/i386/x86-64-nosse2.s,
2457 testsuite/gas/i386/x86-64-nosse2.l: New.
2458 * testsuite/gas/i386/i386.exp: Run new test.
2459
2460 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
2461
2462 * testsuite/gas/nios2/brn.d: New.
2463 * testsuite/gas/nios2/brn.d: New.
2464
2465 2021-03-25 Jan Beulich <jbeulich@suse.com>
2466
2467 * config/tc-i386.c (match_template): Use t instead of i.tm.
2468
2469 2021-03-25 Jan Beulich <jbeulich@suse.com>
2470
2471 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
2472 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
2473 colliding registers in the upper half of the space.
2474 * testsuite/gas/i386/avx512f-nondef.d,
2475 testsuite/gas/i386/vgather-check.d,
2476 testsuite/gas/i386/x86-64-vgather-check.d,
2477 testsuite/gas/i386/x86-64-vgather-check-error.l,
2478 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
2479 expecations.
2480 * testsuite/gas/i386/vgather-check-none.d,
2481 testsuite/gas/i386/vgather-check-warn.d,
2482 testsuite/gas/i386/x86-64-vgather-check-none.d,
2483 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
2484 tests for expected dump output.
2485
2486 2021-03-25 Jan Beulich <jbeulich@suse.com>
2487
2488 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
2489 without mask register.
2490 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
2491
2492 2021-03-25 Jan Beulich <jbeulich@suse.com>
2493
2494 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
2495 swapping operands for.
2496 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
2497 syntax tests.
2498 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
2499 well as Intel syntax tests.
2500 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
2501 expectations.
2502 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
2503 Likewise. Drop passing --def-sym to as.
2504
2505 2021-03-25 Jan Beulich <jbeulich@suse.com>
2506
2507 PR/gas 27419
2508 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
2509 conversion to x32 mode.
2510 * testsuite/gas/i386/ilp32/enqcmd.s,
2511 testsuite/gas/i386/ilp32/enqcmd.d,
2512 testsuite/gas/i386/ilp32/movdir.s,
2513 testsuite/gas/i386/ilp32/movdir.d: New.
2514 * testsuite/gas/i386/x86-64-enqcmd.s,
2515 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
2516 cases.
2517 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
2518 (%eip) cases.
2519 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
2520 * testsuite/gas/i386/x86-64-enqcmd.d,
2521 testsuite/gas/i386/x86-64-enqcmd-intel.d,
2522 testsuite/gas/i386/x86-64-enqcmd-inval.l,
2523 testsuite/gas/i386/x86-64-movdir.d,
2524 testsuite/gas/i386/x86-64-movdir-intel.d,
2525 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
2526
2527 2021-03-25 Alan Modra <amodra@gmail.com>
2528
2529 PR 27647
2530 * testsuite/gas/ppc/a2.d: Update expected output.
2531 * testsuite/gas/ppc/power8.d: Likewise.
2532
2533 2021-03-24 Jan Beulich <jbeulich@suse.com>
2534
2535 * config/tc-i386.c (struct _i386_insn): New field
2536 opcode_length.
2537 (md_begin): Drop assertion.
2538 (install_template): New.
2539 (build_vex_prefix): Call install_template.
2540 (match_template): Likewise.
2541 (process_operands): Use new opcode_length field.
2542 (output_jump): Likewise.
2543 (output_insn): Likewise. Adjust psedo prefix check.
2544
2545 2021-03-24 Jan Beulich <jbeulich@suse.com>
2546
2547 * config/tc-i386.c (md_begin): Add assertion.
2548 (build_vex_prefix): Drop implied prefix calculation.
2549 (build_evex_prefix): Likewise.
2550 (optimize_encoding): Adjust opcode checks.
2551 (load_insn_p): Also check opcodeprefix.
2552 (match_template): Also check opcodespace.
2553 (process_suffix): Likewise.
2554 (process_operands): Likewise.
2555 (output_insn): Likewise. Also check isprefix when discaring
2556 standalone LOCK.
2557 * config/tc-i386-intel.c (i386_intel_operand): Also check
2558 opcodespace.
2559
2560 2021-03-24 Jan Beulich <jbeulich@suse.com>
2561
2562 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
2563 base_opcode and extension_opcode.
2564
2565 2021-03-23 Jan Beulich <jbeulich@suse.com>
2566
2567 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
2568
2569 2021-03-23 Jan Beulich <jbeulich@suse.com>
2570
2571 * config/tc-i386.c (output_i386_opcode): Invoke
2572 process_i386_cpu_flag() slightly later.
2573 (process_i386_opcodes): Likewise.
2574
2575 2021-03-23 Jan Beulich <jbeulich@suse.com>
2576
2577 * config/tc-i386.c (pte): Print prefix and encoding space.
2578 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
2579 (build_evex_prefix): Likewise.
2580 (load_insn_p): Likewise.
2581
2582 2021-03-23 Jan Beulich <jbeulich@suse.com>
2583
2584 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
2585 if()-s.
2586 (match_template, output_insn): Use PREFIX_NONE.
2587
2588 2021-03-23 Jan Beulich <jbeulich@suse.com>
2589
2590 * config/tc-i386.c (i386_index_check): New local variable t.
2591 Correct MPX insn check.
2592 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
2593 MPX insn check.
2594 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
2595 index scaling by other than 1.
2596 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
2597
2598 2021-03-22 Martin Liska <mliska@suse.cz>
2599
2600 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
2601 (x86_64_section_word): Likewise.
2602 * config/tc-sparc.c (md_parse_option): Likewise.
2603
2604 2021-03-19 Alan Modra <amodra@gmail.com>
2605
2606 * app.c (do_scrub_chars): Don't lose spaces before a slash.
2607
2608 2021-03-18 Christian Groessler <chris@groessler.org>
2609
2610 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
2611 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
2612
2613 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2614
2615 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
2616 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
2617 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
2618 * testsuite/gas/riscv/b-ext-64.d: Likewise.
2619 * testsuite/gas/riscv/b-ext.s: Likewise.
2620 * testsuite/gas/riscv/b-ext.d: Likewise.
2621
2622 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2623
2624 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
2625 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
2626 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
2627 * testsuite/gas/aarch64/sysreg-7.d: New test.
2628 * testsuite/gas/aarch64/sysreg-7.s: New test.
2629
2630 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2631
2632 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
2633 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
2634 (ppc_xcoff_tbss_section): New variables.
2635 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
2636 (ppc_data_csects): Removed.
2637 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
2638 ppc_xcoff_parse_cons): New functions.
2639 (md_being): Initialize XCOFF sections.
2640 (ppc_xcoff_suffix): Add support for TLS relocations
2641 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
2642 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
2643 to .bss section. Handle new XCOFF section variables.
2644 (ppc_comm): Likewise.
2645 (ppc_toc): Likewise.
2646 (ppc_symbol_new_hook): Likewise.
2647 (ppc_frob_symbol): Likewise.
2648 (ppc_fix_adjustable): Add tbss support.
2649 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
2650 (ppc_xcoff_parse_cons): Add prototype.
2651 (struct ppc_xcoff_section): New structure.
2652
2653 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2654
2655 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
2656 (MAP, MAP32, MAP64): New macros for XCOFF.
2657 (ppc_xcoff_fixup_addis): New function.
2658 (ppc_is_toc_sym): Handle XMC_TE.
2659 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
2660 BFD_RELOC_PPC_TOC16_LO.
2661 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
2662 (ppc_change_csect): Handle XMC_TE.
2663 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
2664 storage class.
2665 (ppc_symbol_new_hook): Handle XMC_TE.
2666 (ppc_frob_symbol): Likewise.
2667 (ppc_fix_adjustable): Likewise.
2668 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
2669 BFD_RELOC_PPC_TOC16_LO.
2670
2671 2021-03-10 Jan Beulich <jbeulich@suse.com>
2672
2673 * testsuite/gas/i386/avx512f-intel.d,
2674 testsuite/gas/i386/avx512f_vl-intel.d,
2675 testsuite/gas/i386/avx512pf-intel.d,
2676 testsuite/gas/i386/x86-64-avx512f-intel.d,
2677 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
2678 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
2679
2680 2021-03-10 Jan Beulich <jbeulich@suse.com>
2681
2682 * testsuite/gas/i386/prefetch.d,
2683 testsuite/gas/i386/prefetch-intel.d,
2684 testsuite/gas/i386/x86-64-prefetch.d,
2685 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
2686 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
2687 * testsuite/gas/i386/i386.exp: Run new test.
2688
2689 2021-03-09 Jan Beulich <jbeulich@suse.com>
2690
2691 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
2692 (md_assemble): Replace use of repprefixok, islockable, and
2693 notrackprefixok.
2694 (i386_index_check): Replace use of repprefixok.
2695
2696 2021-03-09 Jan Beulich <jbeulich@suse.com>
2697
2698 * testsuite/gas/i386/noreg64.s: Add sysexit.
2699 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
2700 sysexitl and sysexitq.
2701 * testsuite/gas/i386/noreg-intel64.l,
2702 testsuite/gas/i386/noreg64-data16.d,
2703 testsuite/gas/i386/noreg64-data16.e,
2704 testsuite/gas/i386/noreg64-rex64.d,
2705 testsuite/gas/i386/noreg64.d,
2706 testsuite/gas/i386/noreg64.l,
2707 testsuite/gas/i386/x86-64-sysenter-amd.d,
2708 testsuite/gas/i386/x86-64-sysenter-amd.l,
2709 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
2710
2711 2021-02-26 Nick Clifton <nickc@redhat.com>
2712
2713 PR 27411
2714 * config/tc-arm.c (do_t_add_sub): Correct error message.
2715 * testsuite/gas/arm/pr27411.s: New test.
2716 * testsuite/gas/arm/pr27411.d: New test driver.
2717 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
2718
2719 2021-02-24 Alan Modra <amodra@gmail.com>
2720
2721 PR 23691
2722 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
2723 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
2724 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
2725 and use alongside TARGET_CPU_CFILES.
2726 (EXTRA_DIST): Update location of generated .c files.
2727 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
2728 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
2729 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
2730 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
2731 dependencies.
2732 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
2733 (itbl-parse.c, itbl-parse.h): Tidy.
2734 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
2735 * config/bfin-lex.l: Include config/bfin-parse.h.
2736 * configure.ac (extra_objects): Move object files corresponding
2737 to .y and .l files now in config/ to config/.
2738 * Makefile.in: Regenerate.
2739 * configure: Regenerate.
2740 * po/POTFILES.in: Regenerate.
2741
2742 2021-02-19 Nick Clifton <nickc@redhat.com>
2743
2744 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
2745 misleading indentation.
2746
2747 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2748
2749 PR 27158
2750 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
2751 (md_apply_fix): Likewise.
2752 (md_convert_frag_branch): Likewise.
2753 (validate_riscv_insn): Likewise. Also arranged operands, including
2754 added C5 and C6 operands, and removed unused Ci and C< operands.
2755 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
2756 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
2757 * testsuite/gas/riscv/insn.s: Likewise.
2758
2759 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
2760
2761 * config/tc-riscv.c: Included cpu-riscv.h.
2762 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
2763 (struct riscv_csr_extra): Likewise.
2764 (struct riscv_ext_version): Likewise.
2765 (ext_version_table): Moved from opcodes/riscv-opc.c.
2766 (default_isa_spec): Updated type to riscv_spec_class.
2767 (default_priv_spec): Likewise.
2768 (riscv_set_default_isa_spec): Updated.
2769 (init_ext_version_hash): Likewise.
2770 (riscv_init_csr_hash): Likewise, also fixed indent.
2771
2772 2021-02-17 Alan Modra <amodra@gmail.com>
2773
2774 * testsuite/gas/elf/section28.d: xfail h8300.
2775
2776 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
2777
2778 PR gas/27412
2779 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
2780 when checking incorrect section attributes.
2781 * testsuite/gas/elf/elf.exp: Run section28 and section29.
2782 * testsuite/gas/elf/section28.d: New file.
2783 * testsuite/gas/elf/section28.s: Likewise.
2784 * testsuite/gas/elf/section29.d: Likewise.
2785 * testsuite/gas/elf/section29.s: Likewise.
2786
2787 2021-02-16 Jan Beulich <jbeulich@suse.com>
2788
2789 * testsuite/gas/i386/sse-check.s,
2790 testsuite/gas/i386/sse2avx.s,
2791 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
2792 * testsuite/gas/i386/sse-check-error.l,
2793 testsuite/gas/i386/sse-check-warn.e,
2794 testsuite/gas/i386/sse-check.d,
2795 testsuite/gas/i386/sse2avx.d,
2796 testsuite/gas/i386/x86-64-sse-check-error.l,
2797 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
2798 * testsuite/gas/i386/property-cvtpi2pd.s,
2799 testsuite/gas/i386/property-cvtpi2pd.d,
2800 testsuite/gas/i386/property-cvtpi2ps.s,
2801 testsuite/gas/i386/property-cvtpi2ps.d: New.
2802 * testsuite/gas/i386/i386.exp: Run new tests.
2803
2804 2021-02-16 Jan Beulich <jbeulich@suse.com>
2805
2806 * config/tc-i386.c (md_assemble): Use template rather than
2807 actuals when updating i.xstate.
2808 * testsuite/gas/i386/property-4.d,
2809 testsuite/gas/i386/property-5.d,
2810 testsuite/gas/i386/property-12.d: Adjust expectations.
2811
2812 2021-02-16 Jan Beulich <jbeulich@suse.com>
2813
2814 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
2815 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
2816 * testsuite/gas/i386/property-ldmxcsr.s,
2817 testsuite/gas/i386/property-ldmxcsr.d,
2818 testsuite/gas/i386/property-vldmxcsr.s,
2819 testsuite/gas/i386/property-vldmxcsr.d,
2820 testsuite/gas/i386/property-vzeroall.s,
2821 testsuite/gas/i386/property-vzeroall.d: New.
2822 * testsuite/gas/i386/i386.exp: Run new tests.
2823
2824 2021-02-16 Jan Beulich <jbeulich@suse.com>
2825
2826 * testsuite/gas/i386/i386.exp: Move bitness-independent property
2827 tests to bitness independent section.
2828 * testsuite/gas/i386/x86-64-property-2.d,
2829 testsuite/gas/i386/x86-64-property-3.d,
2830 testsuite/gas/i386/x86-64-property-4.d,
2831 testsuite/gas/i386/x86-64-property-5.d,
2832 testsuite/gas/i386/x86-64-property-6.d,
2833 testsuite/gas/i386/x86-64-property-10.d,
2834 testsuite/gas/i386/x86-64-property-11.d,
2835 testsuite/gas/i386/x86-64-property-12.d,
2836 testsuite/gas/i386/x86-64-property-13.d: Delete.
2837
2838 2021-02-16 Jan Beulich <jbeulich@suse.com>
2839
2840 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
2841 movdir.s.
2842 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
2843
2844 2021-02-16 Alan Modra <amodra@gmail.com>
2845
2846 PR 27426
2847 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
2848 in another place.
2849
2850 2021-02-16 Alan Modra <amodra@gmail.com>
2851
2852 * read.c (demand_copy_C_string): Really check for embedded zeros.
2853
2854 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
2855
2856 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
2857 * doc/c-s390.texi: Document arch14 march option.
2858 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
2859 * testsuite/gas/s390/zarch-arch14.d: New test.
2860 * testsuite/gas/s390/zarch-arch14.s: New test.
2861
2862 2021-02-12 Nick Clifton <nickc@redhat.com>
2863
2864 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
2865 following.
2866 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
2867
2868 2021-02-12 Alan Modra <amodra@gmail.com>
2869
2870 * testsuite/gas/all/pr27381.err: Don't match source file name.
2871 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
2872 * testsuite/gas/all/pr27384.err: Don't match source file name.
2873 Adjust line number.
2874 * testsuite/gas/all/pr27384.s: Add ".text" directive.
2875 * testsuite/gas/elf/pr27355.err: Don't match source file name.
2876
2877 2021-02-11 Alan Modra <amodra@gmail.com>
2878
2879 * NEWS: Mention arm-symbianelf removal.
2880
2881 2021-02-10 Nick Clifton <nickc@redhat.com>
2882
2883 * listing.c (buffer_line): Remove debugging code accidentally
2884 included with the fix for PR 27384.
2885
2886 2021-02-09 Nick Clifton <nickc@redhat.com>
2887
2888 PR 27381
2889 * read.c (s_incbin): Check that the file to be included is a
2890 regular, non-directory file.
2891 * testsuite/gas/all/pr27381.s: New test source file.
2892 * testsuite/gas/all/pr27381.d: New test control file.
2893 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
2894 * testsuite/gas/all/gas.exp: Run the new test.
2895
2896 2021-02-09 Alan Modra <amodra@gmail.com>
2897
2898 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
2899 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
2900 support.
2901 * config/te-symbian.h: Delete.
2902 * configure.tgt: Remove arm-*-symbianelf*.
2903 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
2904 target selection.
2905 * testsuite/gas/arm/arch4t.d: Likewise.
2906 * testsuite/gas/arm/got_prel.d: Likewise.
2907 * testsuite/gas/arm/mapdir.d: Likewise.
2908 * testsuite/gas/arm/mapmisc.d: Likewise.
2909 * testsuite/gas/arm/mapsecs.d: Likewise.
2910 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
2911 * testsuite/gas/arm/thumb-eabi.d: Likewise.
2912 * testsuite/gas/arm/thumb.d: Likewise.
2913 * testsuite/gas/arm/thumbrel.d: Likewise.
2914 * Makefile.in: Regenerate.
2915 * po/POTFILES.in: Regenerate.
2916
2917 2021-02-09 Nick Clifton <nickc@redhat.com>
2918
2919 PR 27384
2920 * listing.c (listing_psize): Check the result of the width
2921 expression before assigning it to paper_width.
2922 * testsuite/gas/all/pr27384.s: New test source file.
2923 * testsuite/gas/all/pr27384.d: New test control file.
2924 * testsuite/gas/all/pr27384.err: Expected errors from new test.
2925 * testsuite/gas/all/gas.exp: Run the new test.
2926
2927 2021-02-09 Nick Clifton <nickc@redhat.com>
2928
2929 PR 27355
2930 * testsuite/gas/elf/pr27355.s: New test source file.
2931 * testsuite/gas/elf/pr27355.d: New test control file.
2932 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
2933 * testsuite/gas/elf/elf.exp: Run the new test.
2934
2935 2021-02-08 Mike Frysinger <vapier@gentoo.org>
2936
2937 * config/tc-tic54x (tic54x_mmregs): Rename to ...
2938 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
2939 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
2940 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
2941 cc2_codes, cc3_codes, status_bits, and misc_symbols.
2942
2943 2021-02-08 Nick Clifton <nickc@redhat.com>
2944
2945 PR 27355
2946 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
2947 if it has not already been created.
2948
2949 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
2950
2951 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
2952 INSN_CLASS_ZB*.
2953 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
2954 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
2955 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
2956
2957 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
2958
2959 * doc/c-s390.texi: Document vector instruction formats.
2960
2961 2021-02-01 Emery Hemingway <ehmry@posteo.net>
2962
2963 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
2964
2965 2021-02-01 Alan Modra <amodra@gmail.com>
2966
2967 PR 27283
2968 * config/tc-alpha.c (insert_operand): Delete dead code.
2969
2970 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
2971
2972 PR gas/27243
2973 * config/tc-nios2.c (md_begin): Don't disable relaxation with
2974 --gdwarf-N.
2975 * testsuite/gas/nios2/relax.d: New file.
2976 * testsuite/gas/nios2/relax.s: Likewise.
2977
2978 2021-01-26 Alan Modra <amodra@gmail.com>
2979
2980 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
2981 notarget all except hppa. Comment.
2982 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
2983 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
2984 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
2985 * testsuite/gas/all/sleb128-7.d: Likewise.
2986 * testsuite/gas/all/sleb128-9.d: Likewise.
2987 * testsuite/gas/elf/bignums.d: Likewise.
2988 * testsuite/gas/elf/group0c.d: Likewise.
2989 * testsuite/gas/elf/group1a.d: Likewise.
2990 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
2991 * testsuite/gas/elf/section15.d: Likewise.
2992 * testsuite/gas/elf/section4.d: Likewise.
2993 * testsuite/gas/elf/section7.d: Likewise.
2994 * testsuite/gas/macros/irp.d: Likewise.
2995 * testsuite/gas/macros/repeat.d: Likewise.
2996 * testsuite/gas/macros/rept.d: Likewise.
2997 * testsuite/gas/macros/test2.d: Likewise.
2998 * testsuite/gas/macros/vararg.d: Likewise.
2999 * testsuite/gas/all/string.d: Use xfail rather than skip.
3000 * testsuite/gas/elf/missing-build-notes.d: Likewise.
3001 * testsuite/gas/elf/section0.d: Likewise.
3002 * testsuite/gas/elf/section1.d: Likewise.
3003 * testsuite/gas/elf/section10.d: Likewise.
3004 * testsuite/gas/elf/section11.d: Likewise.
3005 * testsuite/gas/elf/section6.d: Likewise.
3006 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
3007 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
3008 * testsuite/gas/macros/test3.d: Don't notarget nds32.
3009
3010 2021-01-26 Alan Modra <amodra@gmail.com>
3011
3012 * testsuite/gas/all/byte.d,
3013 * testsuite/gas/all/byte.l,
3014 * testsuite/gas/all/byte.s: Delete.
3015 * testsuite/gas/all/gas.exp: Don't run byte test.
3016
3017 2021-01-26 Alan Modra <amodra@gmail.com>
3018
3019 PR 27282
3020 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
3021 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
3022
3023 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
3024
3025 PR gas/27228
3026 * testsuite/gas/elf/elf.exp: Run pr27228.
3027 * testsuite/gas/elf/pr27228.d: New file.
3028 * testsuite/gas/elf/pr27228.s: Likewise.
3029
3030 2021-01-24 Alan Modra <amodra@gmail.com>
3031
3032 PR 27228
3033 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
3034 is defined.
3035
3036 2021-01-21 Alan Modra <amodra@gmail.com>
3037
3038 PR 27221
3039 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
3040 line number info when gas is generating it.
3041 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
3042 * testsuite/gas/m68hc11/indexed12.d: Likewise.
3043 * testsuite/gas/elf/elf.exp: Don't run warn-2.
3044 * gas/testsuite/gas/elf/warn-2.s: Delete.
3045
3046 2021-01-21 Alan Modra <amodra@gmail.com>
3047
3048 PR 27218
3049 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
3050 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
3051 error for negative file numbers.
3052
3053 2021-01-20 Alan Modra <amodra@gmail.com>
3054
3055 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
3056 * testsuite/gas/ppc/test1elf32.d: Likewise.
3057 * testsuite/gas/ppc/test1elf64.d: Likewise.
3058
3059 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
3060
3061 PR gas/27195
3062 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
3063 needed.
3064 (dwarf2_directive_filename): Likewise.
3065 (dwarf2_directive_loc): Likewise.
3066 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
3067 * testsuite/gas/lns/lns-diag-1.l: Remove the
3068 "Error: file number less than one" errors.
3069
3070 2021-01-18 Alan Modra <amodra@gmail.com>
3071
3072 PR 27198
3073 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
3074 * testsuite/gas/i386/pr27198.d,
3075 * gas/testsuite/gas/i386/pr27198.err,
3076 * gas/testsuite/gas/i386/pr27198.s: New test.
3077 * gas/testsuite/gas/i386/i386.exp: Run it.
3078
3079 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
3080
3081 * config/tc-riscv.c: Indent and GNU coding standards tidy,
3082 also aligned the code.
3083 * config/tc-riscv.h: Likewise.
3084
3085 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
3086
3087 * config/tc-riscv.c: Error and warning messages tidy.
3088 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
3089 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
3090 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
3091 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3092 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
3093 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
3094 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
3095
3096 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
3097
3098 * config/tc-riscv.c: Comments tidy and improvement. Also update
3099 comment "fallthru" to "Fall through" that end with a period and
3100 two spaces.
3101
3102 2021-01-14 Mike Frysinger <vapier@gentoo.org>
3103
3104 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
3105 Delete warning that these are only available with ELF targets.
3106 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
3107 * read.c (potable): ... here.
3108
3109 2021-01-14 Mike Frysinger <vapier@gentoo.org>
3110
3111 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
3112 * Makefile.in: Regenerated.
3113
3114 2021-01-14 Mike Frysinger <vapier@gentoo.org>
3115
3116 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
3117 (parse_int): Mark char_bag const.
3118
3119 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
3120
3121 PR gas/27178
3122 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
3123 Don't generate GOT_symbol for PLT relocations.
3124 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
3125 * testsuite/gas/i386/no-got.d: New file.
3126 * testsuite/gas/i386/no-got.s: Likewise.
3127 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
3128 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
3129
3130 2021-01-13 Alan Modra <amodra@gmail.com>
3131
3132 * Makefile.in: Regenerate.
3133 * Makefile.in: Regenerate.
3134
3135 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
3136
3137 PR binutils/26792
3138 * configure.ac: Use GNU_MAKE_JOBSERVER.
3139 * aclocal.m4: Regenerated.
3140 * configure: Likewise.
3141
3142 2021-01-12 Nick Clifton <nickc@redhat.com>
3143
3144 * po/fr.po: Updated French translation.
3145
3146 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
3147
3148 PR ld/27173
3149 * configure: Regenerated.
3150
3151 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3152
3153 * NEWS: Remove CSRE.
3154 * config/tc-aarch64.c (parse_csr_operand): Delete.
3155 (parse_operands): Delete handling of
3156 AARCH64_OPND_CSRE_CSR.
3157 (aarch64_features): Remove csre.
3158 * doc/c-aarch64.texi: Remove CSRE.
3159 * testsuite/gas/aarch64/csre.d: Delete.
3160 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
3161 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
3162 * testsuite/gas/aarch64/csre_csr.s: Likewise.
3163 * testsuite/gas/aarch64/csre_csr.d: Likewise.
3164 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
3165 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
3166 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
3167
3168 2021-01-11 Nick Clifton <nickc@redhat.com>
3169
3170 * po/uk.po: Updated Ukranian translation.
3171
3172 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
3173
3174 * configure: Regenerated.
3175
3176 2021-01-09 Nick Clifton <nickc@redhat.com>
3177
3178 * configure: Regenerate.
3179 * po/gas.pot: Regenerate.
3180
3181 2021-01-09 Nick Clifton <nickc@redhat.com>
3182
3183 * 2.36 release branch crated.
3184
3185 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
3186
3187 * testsuite/gas/ppc/rop-checks.d,
3188 * testsuite/gas/ppc/rop-checks.l,
3189 * testsuite/gas/ppc/rop-checks.s,
3190 * testsuite/gas/ppc/rop.d,
3191 * testsuite/gas/ppc/rop.s: New tests.
3192 * testsuite/gas/ppc/ppc.exp: Run them.
3193
3194 2021-01-09 Alan Modra <amodra@gmail.com>
3195
3196 * configure: Regenerate.
3197
3198 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
3199
3200 * configure: Regenerate.
3201
3202 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
3203
3204 PR 27109
3205 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
3206 section symbol.
3207 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
3208 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
3209 on the section symbol.
3210 (set_symtab): Don't generate unused section symbols.
3211 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
3212 on the section symbol.
3213 * config/obj-elf.c (elf_adjust_symtab): Call
3214 symbol_mark_used_in_reloc on the group signature symbol.
3215 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
3216 from expected output.
3217 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
3218 is_elf_unused_section_symbols.
3219 * testsuite/gas/elf/section2.e: Updated.
3220 * testsuite/gas/elf/section2.e-unused: New file.
3221 * testsuite/gas/elf/symver.d: Remove unused section symbols.
3222 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
3223 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
3224 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
3225 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
3226 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
3227 * testsuite/gas/i386/size-1.d: Likewise.
3228 * testsuite/gas/i386/size-3.d: Likewise.
3229 * testsuite/gas/i386/svr4.d: Likewise.
3230 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
3231 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
3232 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
3233 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
3234
3235 2021-01-07 Philipp Tomsich <prt@gnu.org>
3236
3237 * config/tc-riscv.c (riscv_multi_subset_supports): Added
3238 INSN_CLASS_ZIHINTPAUSE.
3239 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
3240 the pause hint instruction.
3241 * testsuite/gas/riscv/pause.s: Likewise.
3242
3243 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
3244 Jim Wilson <jimw@sifive.com>
3245 Andrew Waterman <andrew@sifive.com>
3246 Maxim Blinov <maxim.blinov@embecosm.com>
3247 Kito Cheng <kito.cheng@sifive.com>
3248 Nelson Chu <nelson.chu@sifive.com>
3249
3250 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
3251 (riscv_get_default_ext_version): Do not check the default_isa_spec when
3252 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
3253 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
3254 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
3255 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
3256
3257 2021-01-06 Alan Modra <amodra@gmail.com>
3258
3259 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
3260
3261 2021-01-06 Alan Modra <amodra@gmail.com>
3262
3263 * testsuite/gas/macros/app1.d: xfail tic30.
3264 * testsuite/gas/macros/app2.d: Likewise.
3265 * testsuite/gas/macros/app3.d: Likewise.
3266 * testsuite/gas/macros/app4.d: Likewise.
3267
3268 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
3269
3270 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
3271 * doc/c-riscv.texi: Likewise.
3272
3273 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
3274
3275 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
3276 to littleriscv.
3277 * testsuite/gas/riscv/li64.d: Likewise.
3278 * testsuite/gas/riscv/lla32.d: Likewise.
3279 * testsuite/gas/riscv/lla64.d: Likewise.
3280 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
3281 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
3282 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
3283 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
3284 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
3285 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
3286 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
3287
3288 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
3289
3290 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
3291 elf32-bigriscv.
3292 (install_insn): Always write instructions as little endian.
3293 (riscv_make_nops): Likewise.
3294 (md_convert_frag_branch): Likewise.
3295 (md_number_to_chars): Write data in target endianness.
3296 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
3297 (md_parse_option): Handle the endian options.
3298 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
3299 already defined.
3300 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
3301
3302 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
3303
3304 PR ld/26256
3305 * config/obj-elf.c (obj_elf_change_section): Also filter out
3306 SHF_LINK_ORDER.
3307
3308 2021-01-04 Alan Modra <amodra@gmail.com>
3309
3310 PR 27102
3311 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
3312 message and register symbol error message.
3313
3314 2021-01-04 Alan Modra <amodra@gmail.com>
3315
3316 PR 27101
3317 * read.c (s_align): Use a large enough type for "align" to hold
3318 the result of get_absolute_expression.
3319
3320 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
3321
3322 * config/tc-i386.c: Correct comment spelling.
3323 * config/tc-riscv.c: Likewise.
3324 * config/tc-s390.c: Correct comment grammar.
3325 * doc/c-i386.texi: Correct spelling.
3326 * doc/c-s390.texi: Correct grammar.
3327
3328 2021-01-01 Alan Modra <amodra@gmail.com>
3329
3330 Update year range in copyright notice of all files.
3331
3332 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
3333
3334 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
3335
3336 For older changes see ChangeLog-2020
3337 \f
3338 Copyright (C) 2021-2023 Free Software Foundation, Inc.
3339
3340 Copying and distribution of this file, with or without modification,
3341 are permitted in any medium without royalty provided the copyright
3342 notice and this notice are preserved.
3343
3344 Local Variables:
3345 mode: change-log
3346 left-margin: 8
3347 fill-column: 74
3348 version-control: never
3349 End: