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