]> Git Repo - binutils.git/blob - gas/ChangeLog
PR26500, ASAN: tic4x_inst_make tc-tic4x.c:1247
[binutils.git] / gas / ChangeLog
1 2020-08-25  Alan Modra  <[email protected]>
2
3         PR 26500
4         * tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
5         with name = "".
6
7 2020-08-25  Alan Modra  <[email protected]>
8
9         PR 26441
10         * config/tc-cr16.c (get_b_cc): Return NULL early if op isn't
11         two or three chars, and don't bother copying.
12
13 2020-08-25  Alan Modra  <[email protected]>
14
15         PR 26426
16         * config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
17         NS_NULL shape.
18
19 2020-08-25  Alan Modra  <[email protected]>
20
21         PR 26410
22         * symbols.c (dollar_label_count, dollar_label_max): Make size_t.
23         (dollar_label_clear): Don't call memset with NULL pointer.
24
25 2020-08-25  Alan Modra  <[email protected]>
26
27         * config/tc-arc.c (declare_register_set): Avoid false positive
28         format-overflow warning.
29         * config/tc-epiphany.c (md_assemble): Likewise.
30         * config/tc-mips.c (md_begin): Likewise.
31         * config/tc-mmix.c (mmix_md_begin): Likewise.
32         * config/tc-nds32.c (nds32_elf_append_relax_relocs): Avoid false
33         positive "may be used uninitialized" warning.
34
35 2020-08-24  Cooper Qu  <[email protected]>
36
37         * config/tc-csky.c (csky_archs): Add item for CK860,
38         change ck810 and ck807's arch_flag.
39         (csky_cpus): Add item for CK860.
40         (md_begin): Enable DSP for CK810 and CK807 by default.
41         (md_apply_fix): Fix CKCORE_TLS_IE32 relocation failure.
42         * gas/testsuite/gas/csky/cskyv2_all.d: Change 'sync 0'
43         to 'sync'.
44         * gas/testsuite/gas/csky/cskyv2_all.s: Likewise.
45         * gas/testsuite/gas/csky/cskyv2_ck860.d: New.
46         * gas/testsuite/gas/csky/cskyv2_ck860.s: New.
47         * gas/testsuite/gas/csky/enhance_dsp.d: Change plsli.u16
48         to plsli.16.
49         * gas/testsuite/gas/csky/enhance_dsp.s: Likewise.
50
51 2020-08-24  Alan Modra  <[email protected]>
52
53         * config/tc-tic54x.c (stag_add_field_symbols): Don't free "name"
54         in case where it isn't copied.
55         * config/tc-tic54x.h (LOCAL_LABELS_FB): Undef.
56         * testsuite/gas/tic54x/field.d: Dump section contents and symbols
57         rather than disassembling.
58         * testsuite/gas/tic54x/set.d: Adjust for newer disassembly.
59
60 2020-08-24  Alan Modra  <[email protected]>
61
62         * config/tc-aarch64.c (md_begin): Don't bother checking for
63         out of memory failure from str_htab_create.
64         * config/tc-arc.c (arc_insert_opcode, md_begin): Likewise.
65         (arc_extcorereg, arc_stralloc): Likewise.
66         * config/tc-arm.c (md_begin): Likewise.
67         * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
68         * config/tc-cris.c (md_begin): Likewise.
69         * config/tc-crx.c (md_begin): Likewise.
70         * config/tc-pdp11.c (md_begin): Likewise.
71         * config/tc-score.c (s3_build_reg_hsh, s3_begin): Likewise.
72         * config/tc-score7.c (s7_build_reg_hsh, s7_begin): Likewise.
73
74 2020-08-24  Alan Modra  <[email protected]>
75
76         * config/tc-arm.c (move_or_literal_pool): Avoid false positive
77         "may be used uninitialised".
78         (opcode_lookup): Likewise.
79
80 2020-08-24  Alan Modra  <[email protected]>
81
82         PR 26526
83         * symbols.c (local_symbol_convert): Clear out xtra.
84
85 2020-08-21  Cooper Qu  <[email protected]>
86
87         * config/tc-csky.c (CSKY_ISA_803R2): New.
88         (csky_archs): Add ck803r2 series.
89         (md_begin): Fix warning about -medsp.
90         (csky_get_freg_val): Support lowercase of fpu register name.
91         * testsuite/gas/csky/cskyv2_ck803r2.s: New file.
92         * testsuite/gas/csky/cskyv2_ck803r2.d: New file.
93
94 2020-08-23  Alan Modra  <[email protected]>
95
96         PR 26513
97         * hash.h (htab_insert): Update prototype and comment.
98         (struct string_tuple): Make "value" a const void*.
99         (string_tuple_alloc): Likewise.
100         (str_hash_find, str_hash_find_n): Cast returned value.
101         (str_hash_insert): Add "replace" parameter, and return slot pointer.
102         Free alloc'd element when not inserted.
103         * hash.c (htab_insert): Likewise.  Return slot when element exists,
104         otherwise return NULL.
105         * read.c (pop_insert): Insert into hash table without first searching.
106         * config/tc-avr.c (md_begin): Likewise.
107         * config/tc-msp430.c (md_begin): Likewise.
108         * config/tc-nds32.c (nds32_init_nds32_pseudo_opcodes): Likewise.
109         * config/tc-v850.c (md_begin): Likewise.
110         * macro.c (do_formals, define_macro, macro_expand_body): Likewise.
111         (delete_macro): Delete from hash table.
112         * config/tc-tic54x.c (subsym_create_or_replace): Correct logic.
113
114         * symbols.c (local_symbol_make, symbol_table_insert): Allow
115         replacement of hash table entries.
116         * config/obj-coff-seh.c (seh_hash_insert): Likewise.
117         * config/obj-coff.c (tag_insert): Likewise.
118         * config/tc-iq2000.c (iq2000_add_macro): Likewise.
119         * config/tc-m68k.c (md_begin): Likewise for aliases.
120         * config/tc-tic4x.c (tic4x_asg): Likewise.
121         * config/tc-tic6x.c (md_begin): Likewise.
122
123         * dw2gencfi.c (dwcfi_hash_find_or_make): Disallow replacement of
124         hash table entries.
125         * ecoff.c (add_string, get_tag): Likewise.
126         * macro.c (expand_irp): Likewise.
127         * config/obj-elf.c (build_additional_section_info): Likewise.
128         * config/tc-aarch64.c (insert_reg_alias): Likewise.
129         (checked_hash_insert): Likewise.
130         * config/tc-alpha.c (get_alpha_reloc_tag, md_begin): Likewise.
131         * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
132         (declare_addrtype, md_begin, arc_extcorereg): Likewise.
133         * config/tc-arm.c (insert_reg_alias): Likewise.
134         (arm_tc_equal_in_insn, md_begin): Likewise.
135         * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
136         * config/tc-cris.c (md_begin): Likewise.
137         * config/tc-crx.c (md_begin): Likewise.
138         * config/tc-csky.c (md_begin): Likewise.
139         * config/tc-d10v.c (md_begin): Likewise.
140         * config/tc-dlx.c (md_begin): Likewise.
141         * config/tc-ft32.c (md_begin): Likewise.
142         * config/tc-h8300.c (md_begin): Likewise.
143         * config/tc-hppa.c (md_begin): Likewise.
144         * config/tc-i386.c (md_begin): Likewise.
145         * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
146         (md_begin, dot_alias): Likewise.
147         * config/tc-m68hc11.c (md_begin): Likewise.
148         * config/tc-m68k.c (md_begin): Likewise.
149         * config/tc-mcore.c (md_begin): Likewise.
150         * config/tc-microblaze.c (md_begin): Likewise.
151         * config/tc-mips.c (md_begin): Likewise.
152         * config/tc-mmix.c (md_begin): Likewise.
153         * config/tc-mn10200.c (md_begin): Likewise.
154         * config/tc-mn10300.c (md_begin): Likewise.
155         * config/tc-moxie.c (md_begin): Likewise.
156         * config/tc-nds32.c (nds32_relax_hint, md_begin): Likewise.
157         * config/tc-nios2.c (md_begin): Likewise.
158         * config/tc-ns32k.c (md_begin): Likewise.
159         * config/tc-pdp11.c (md_begin): Likewise.
160         * config/tc-pj.c (fake_opcode, md_begin): Likewise.
161         * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
162         * config/tc-pru.c (md_begin): Likewise.
163         * config/tc-riscv.c (init_ext_version_hash): Likewise.
164         (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
165         (riscv_init_csr_hash): Likewise.
166         * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
167         * config/tc-score.c (s3_insert_reg): Likewise.
168         (s3_build_score_ops_hsh, s3_build_dependency_insn_hsh): Likewise.
169         * config/tc-score7.c (s7_build_score_ops_hsh): Likewise.
170         (s7_build_dependency_insn_hsh, s7_insert_reg): Likewise.
171         * config/tc-sh.c (md_begin): Likewise.
172         * config/tc-sparc.c (md_begin): Likewise.
173         * config/tc-spu.c (md_begin): Likewise.
174         * config/tc-tic30.c (md_begin): Likewise.
175         * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
176         * config/tc-tic54x.c (stag_add_field_symbols, md_begin): Likewise.
177         (tic54x_endstruct, tic54x_var, tic54x_macro_info): Likewise.
178         (subsym_substitute): Likewise.
179         * config/tc-tilegx.c (md_begin): Likewise.
180         * config/tc-tilepro.c (md_begin): Likewise.
181         * config/tc-vax.c (vip_begin): Likewise.
182         * config/tc-wasm32.c (md_begin): Likewise.
183         * config/tc-xgate.c (md_begin): Likewise.
184         * config/tc-z8k.c (md_begin): Likewise.
185         * testsuite/gas/ppc/dcbt.d,
186         * testsuite/gas/ppc/dcbt.s: New test.
187         * testsuite/gas/ppc/ppc.exp: Run it.
188
189         * ecoff.c (add_string): Report fatal error on duplicates.
190         * config/tc-alpha.c (md_begin): Likewise.
191         * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
192         (declare_addrtype, md_begin, arc_extcorereg): Likewise.
193         * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
194         * config/tc-cris.c (md_begin): Likewise.
195         * config/tc-crx.c (md_begin): Likewise.
196         * config/tc-dlx.c (md_begin): Likewise.
197         * config/tc-hppa.c (md_begin): Likewise.
198         * config/tc-i386.c (md_begin): Likewise.
199         * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
200         (md_begin): Likewise.
201         * config/tc-m68k.c (md_begin): Likewise.
202         * config/tc-mips.c (md_begin): Likewise.
203         * config/tc-nios2.c (md_begin): Likewise.
204         * config/tc-ns32k.c (md_begin): Likewise.
205         * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
206         * config/tc-pru.c (md_begin): Likewise.
207         * config/tc-riscv.c (init_ext_version_hash): Likewise.
208         (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
209         * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
210         * config/tc-sparc.c (md_begin): Likewise.
211         * config/tc-tic30.c (md_begin): Likewise.
212         * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
213         * config/tc-tilegx.c (md_begin): Likewise.
214         * config/tc-tilepro.c (md_begin): Likewise.
215         * config/tc-vax.c (vip_begin): Likewise.
216
217         * config/tc-alpha.c,
218         * config/tc-arm.c,
219         * config/tc-avr.c,
220         * config/tc-cr16.c,
221         * config/tc-csky.c,
222         * config/tc-i386.c,
223         * config/tc-m68hc11.c,
224         * config/tc-m68k.c,
225         * config/tc-microblaze.c,
226         * config/tc-ns32k.c,
227         * config/tc-pj.c,
228         * config/tc-ppc.c,
229         * config/tc-score.c,
230         * config/tc-score7.c,
231         * config/tc-tic4x.c,
232         * config/tc-tic54x.c,
233         * config/tc-tilegx.c,
234         * config/tc-tilepro.c,
235         * config/tc-xgate.c: Formatting.
236
237 2020-08-21  Alan Modra  <[email protected]>
238
239         * symbols.c (struct local_symbol): Add "hash" entry.  Reorder fields.
240         Delete union.  Adjust code throughout file.
241         (struct symbol): Add "hash", "name" and "x" entries.  Reorder fields.
242         Split off some to..
243         (struct xsymbol): ..this.  New struct.  Adjust code throughout file
244         accessing these fields.
245         (struct symbol_entry): Delete.
246         (union symbol_entry): New.
247         (hash_symbol_entry): Adjust for symbol_entry_t change.
248         (symbol_entry_find): Likewise.
249         (eq_symbol_entry): Compare hash values too.
250         (symbol_entry_alloc): Delete.
251         (local_symbol_converted_p, local_symbol_mark_converted): Delete.
252         (local_symbol_get_real_symbol, local_symbol_set_real_symbol): Delete.
253         (local_hash): Delete.
254         (abs_symbol_x, dot_symbol_x): New static var.
255         (symbol_init): New function.
256         (symbol_create): Rewrite.
257         (LOCAL_SYMBOL_CHECK): Delete.  Replace uses throughout with simple
258         test of flags.local_symbol.
259         (local_symbol_make): Adjust for struct local_symbol changes.
260         (local_symbol_convert): Rewrite.  Adjust all callers.
261         (symbol_table_insert): Simplify.
262         (symbol_clone): Comment on local sym cloning.  Handle split symbol
263         struct.
264         (get_real_sym): Delete.  Remove all uses.
265         (symbol_find_exact_noref): Simplify.
266         (resolve_local_symbol): Don't resolve non-locals.
267         (S_SET_SEGMENT): Don't special case reg_section.
268         (S_SET_NAME): Set both name and bsym->name.
269         (symbol_mark_resolved, symbol_resolved_p): Simplify.
270         (symbol_symbolS): Update comment.
271         (symbol_begin): Don't create local_hash.  Adjust abs_symbol setup.
272         (dot_symbol_init): Adjust dot_symbol setup.
273         (symbol_print_statistics): Delete local_hash stats.
274
275 2020-08-21  Alan Modra  <[email protected]>
276
277         * symbols.c (struct symbol_flags): Rename sy_volatile to volatil,
278         and remove sy_ from other field names.  Update throughout.
279         (struct symbol): Remove sy_ from field names.  Delete unused
280         TARGET_SYMBOL_FIELDS.  Update throughout file.  Move after..
281         (struct local_symbol): ..here.  Remove lsy_ from field names.
282         Delete unused TC_LOCAL_SYMFIELD_TYPE.  Update throughout file.
283         (local_symbol_resolved_p, local_symbol_mark_resolved): Delete.
284         Expand uses throughout file.
285         (local_symbol_get_frag, local_symbol_set_frag): Likewise.
286         (symbol_new): Move symbol_table_frozen test to..
287         (symbol_append): ..here, and..
288         (symbol_insert): ..here.
289         (resolve_symbol_value, symbol_relc_make_expr): White space fixes.
290         (HANDLE_XADD_OPT1, HANDLE_XADD_OPT2): Likewise.
291         * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Update.
292
293 2020-08-21  Alan Modra  <[email protected]>
294
295         * symbols.h (symbol_new, symbol_create, local_symbol_make),
296         (symbol_temp_new): Arrange params as section, frag, offset.
297         * symbols.c: Adjust to suit.
298         * as.c: Likewise.
299         * cgen.c: Likewise.
300         * dwarf2dbg.c: Likewise.
301         * ecoff.c: Likewise.
302         * expr.c: Likewise.
303         * itbl-ops.c: Likewise.
304         * read.c: Likewise.
305         * stabs.c: Likewise.
306         * subsegs.c: Likewise.
307         * config/obj-coff.c: Likewise.
308         * config/obj-elf.c: Likewise.
309         * config/obj-macho.c: Likewise.
310         * config/tc-aarch64.c: Likewise.
311         * config/tc-alpha.c: Likewise.
312         * config/tc-arc.c: Likewise.
313         * config/tc-arm.c: Likewise.
314         * config/tc-avr.c: Likewise.
315         * config/tc-cr16.c: Likewise.
316         * config/tc-cris.c: Likewise.
317         * config/tc-csky.c: Likewise.
318         * config/tc-dlx.c: Likewise.
319         * config/tc-hppa.c: Likewise.
320         * config/tc-i386.c: Likewise.
321         * config/tc-ia64.c: Likewise.
322         * config/tc-m32r.c: Likewise.
323         * config/tc-m68k.c: Likewise.
324         * config/tc-mips.c: Likewise.
325         * config/tc-mmix.c: Likewise.
326         * config/tc-mn10200.c: Likewise.
327         * config/tc-mn10300.c: Likewise.
328         * config/tc-nds32.c: Likewise.
329         * config/tc-nios2.c: Likewise.
330         * config/tc-ppc.c: Likewise.
331         * config/tc-riscv.c: Likewise.
332         * config/tc-s390.c: Likewise.
333         * config/tc-sh.c: Likewise.
334         * config/tc-tic4x.c: Likewise.
335         * config/tc-tic54x.c: Likewise.
336         * config/tc-xtensa.c: Likewise.
337
338 2020-08-21  Cooper Qu  <[email protected]>
339
340         * config/tc-csky.c (csky_insn_info): Add member last_isize.
341         (md_assemble): Assign value to csky_insn.last_isize.
342         * testsuite/gas/csky/enhance_dsp.d: Test bloop's two operands form.
343         * testsuite/gas/csky/enhance_dsp.s: Likewise.
344
345 2020-08-20  Martin Liska  <[email protected]>
346
347         * NEWS: Mention --reduce-memory-overheads and --hash-size arguments
348         options.
349         * as.c: Remove the options from help.
350         * doc/as.texi: Remove options.
351         * doc/internals.texi: Remove hash from documentation.
352         * hash.c (struct hash_entry): Remove.
353         (struct hash_control): Likewise.
354         (set_gas_hash_table_size): Likewise.
355         (hash_new_sized): Likewise.
356         (hash_new): Likewise.
357         (hash_die): Likewise.
358         (hash_lookup): Likewise.
359         (hash_insert): Likewise.
360         (hash_jam): Likewise.
361         (hash_replace): Likewise.
362         (hash_find): Likewise.
363         (hash_find_n): Likewise.
364         (hash_delete): Likewise.
365         (hash_traverse): Likewise.
366         (hash_print_statistics): Likewise.
367         (TABLES): Likewise.
368         (STATBUFSIZE): Likewise.
369         (main): Likewise.
370         (what): Likewise.
371         (destroy): Likewise.
372         (applicatee): Likewise.
373         (whattable): Likewise.
374         * hash.h (struct hash_control): Likewise.
375         (set_gas_hash_table_size): Likewise.
376         (hash_new): Likewise.
377         (hash_new_sized): Likewise.
378         (hash_die): Likewise.
379         (hash_insert): Likewise.
380         (hash_jam): Likewise.
381         (hash_replace): Likewise.
382         (hash_find): Likewise.
383         (hash_find_n): Likewise.
384         (hash_delete): Likewise.
385         (hash_traverse): Likewise.
386         (hash_print_statistics): Likewise.
387
388 2020-08-20  Martin Liska  <[email protected]>
389
390         * config/obj-coff-seh.c (seh_hash_insert): Port to use new
391         str_htab type.
392         (seh_hash_find): Likewise.
393         (seh_hash_find_or_make): Likewise.
394         * config/obj-coff.c (tag_init): Likewise.
395         (tag_insert): Likewise.
396         (tag_find): Likewise.
397         * config/obj-elf.c (struct group_list): Likewise.
398         (build_additional_section_info): Likewise.
399         (free_section_idx): Likewise.
400         (elf_adjust_symtab): Likewise.
401         (elf_frob_file_after_relocs): Likewise.
402         * config/tc-aarch64.c (INSN_SIZE): Likewise.
403         (parse_reg): Likewise.
404         (insert_reg_alias): Likewise.
405         (create_register_alias): Likewise.
406         (s_unreq): Likewise.
407         (parse_shift): Likewise.
408         (parse_pldop): Likewise.
409         (parse_barrier): Likewise.
410         (parse_barrier_psb): Likewise.
411         (parse_bti_operand): Likewise.
412         (parse_sys_reg): Likewise.
413         (parse_sys_ins_reg): Likewise.
414         (lookup_mnemonic): Likewise.
415         (opcode_lookup): Likewise.
416         (parse_operands): Likewise.
417         (checked_hash_insert): Likewise.
418         (sysreg_hash_insert): Likewise.
419         (fill_instruction_hash_table): Likewise.
420         (md_begin): Likewise.
421         * config/tc-alpha.c (struct alpha_reloc_tag): Likewise.
422         (get_alpha_reloc_tag): Likewise.
423         (assemble_tokens_to_insn): Likewise.
424         (assemble_tokens): Likewise.
425         (md_begin): Likewise.
426         * config/tc-arc.c (arc_find_opcode): Likewise.
427         (arc_insert_opcode): Likewise.
428         (find_opcode_match): Likewise.
429         (declare_register): Likewise.
430         (declare_addrtype): Likewise.
431         (md_begin): Likewise.
432         (arc_parse_name): Likewise.
433         (tc_arc_regname_to_dw2regnum): Likewise.
434         (arc_extcorereg): Likewise.
435         * config/tc-arm.c (MVE_BAD_QREG): Likewise.
436         (arm_reg_parse_multi): Likewise.
437         (parse_reloc): Likewise.
438         (insert_reg_alias): Likewise.
439         (create_register_alias): Likewise.
440         (s_unreq): Likewise.
441         (parse_shift): Likewise.
442         (parse_psr): Likewise.
443         (parse_cond): Likewise.
444         (parse_barrier): Likewise.
445         (do_vfp_nsyn_opcode): Likewise.
446         (opcode_lookup): Likewise.
447         (arm_tc_equal_in_insn): Likewise.
448         (md_begin): Likewise.
449         * config/tc-avr.c (md_begin): Likewise.
450         (avr_ldi_expression): Likewise.
451         (md_assemble): Likewise.
452         (avr_update_gccisr): Likewise.
453         (avr_emit_insn): Likewise.
454         * config/tc-cr16.c (get_register): Likewise.
455         (get_register_pair): Likewise.
456         (get_index_register): Likewise.
457         (get_index_register_pair): Likewise.
458         (get_pregister): Likewise.
459         (get_pregisterp): Likewise.
460         (initialise_reg_hash_table): Likewise.
461         (md_begin): Likewise.
462         (cr16_assemble): Likewise.
463         (md_assemble): Likewise.
464         * config/tc-cris.c (cris_insn_first_word_frag): Likewise.
465         (md_begin): Likewise.
466         (cris_process_instruction): Likewise.
467         * config/tc-crx.c (get_register): Likewise.
468         (get_copregister): Likewise.
469         (md_begin): Likewise.
470         (md_assemble): Likewise.
471         * config/tc-csky.c (md_begin): Likewise.
472         (parse_opcode): Likewise.
473         (get_operand_value): Likewise.
474         (v1_work_jbsr): Likewise.
475         (v2_work_rotlc): Likewise.
476         (v2_work_bgeni): Likewise.
477         (v2_work_not): Likewise.
478         * config/tc-d10v.c (sizeof): Likewise.
479         (md_begin): Likewise.
480         (do_assemble): Likewise.
481         (md_apply_fix): Likewise.
482         * config/tc-d30v.c (sizeof): Likewise.
483         (md_begin): Likewise.
484         (do_assemble): Likewise.
485         * config/tc-dlx.c (RELOC_DLX_VTENTRY): Likewise.
486         (md_begin): Likewise.
487         (machine_ip): Likewise.
488         * config/tc-ft32.c (md_begin): Likewise.
489         (md_assemble): Likewise.
490         * config/tc-h8300.c (md_begin): Likewise.
491         (md_assemble): Likewise.
492         * config/tc-hppa.c (pa_ip): Likewise.
493         (md_begin): Likewise.
494         * config/tc-i386.c (md_begin): Likewise.
495         (i386_print_statistics): Likewise.
496         (parse_insn): Likewise.
497         (process_operands): Likewise.
498         (i386_index_check): Likewise.
499         (parse_real_register): Likewise.
500         * config/tc-ia64.c (dot_rot): Likewise.
501         (dot_entry): Likewise.
502         (declare_register): Likewise.
503         (md_begin): Likewise.
504         (ia64_parse_name): Likewise.
505         (md_assemble): Likewise.
506         (dot_alias): Likewise.
507         (do_alias): Likewise.
508         (ia64_adjust_symtab): Likewise.
509         (do_secalias): Likewise.
510         (ia64_frob_file): Likewise.
511         * config/tc-m68hc11.c (m68hc11_print_statistics): Likewise.
512         (md_begin): Likewise.
513         (print_insn_format): Likewise.
514         (md_assemble): Likewise.
515         * config/tc-m68k.c (tc_gen_reloc): Likewise.
516         (m68k_ip): Likewise.
517         (md_begin): Likewise.
518         * config/tc-mcore.c (md_begin): Likewise.
519         (md_assemble): Likewise.
520         * config/tc-microblaze.c (md_begin): Likewise.
521         (md_assemble): Likewise.
522         (md_apply_fix): Likewise.
523         * config/tc-mips.c (nopic_need_relax): Likewise.
524         (md_begin): Likewise.
525         (macro_build): Likewise.
526         (mips16_macro_build): Likewise.
527         (mips_lookup_insn): Likewise.
528         (mips_ip): Likewise.
529         (mips16_ip): Likewise.
530         * config/tc-mmix.c (sizeof): Likewise.
531         (mmix_md_begin): Likewise.
532         (md_assemble): Likewise.
533         * config/tc-mn10200.c (md_begin): Likewise.
534         (md_assemble): Likewise.
535         * config/tc-mn10300.c (HAVE_AM30): Likewise.
536         (md_begin): Likewise.
537         (md_assemble): Likewise.
538         * config/tc-moxie.c (md_begin): Likewise.
539         (md_assemble): Likewise.
540         * config/tc-msp430.c (md_begin): Likewise.
541         (msp430_operands): Likewise.
542         (md_assemble): Likewise.
543         * config/tc-nds32.c (PV_DONT_CARE): Likewise.
544         (builtin_isreg): Likewise.
545         (builtin_regnum): Likewise.
546         (nds32_init_nds32_pseudo_opcodes): Likewise.
547         (nds32_lookup_pseudo_opcode): Likewise.
548         (nds32_relax_hint): Likewise.
549         (md_begin): Likewise.
550         (nds32_find_reloc_table): Likewise.
551         (nds32_elf_append_relax_relocs_traverse): Likewise.
552         (nds32_relax_branch_instructions): Likewise.
553         (md_convert_frag): Likewise.
554         (nds32_elf_analysis_relax_hint): Likewise.
555         (tc_nds32_regname_to_dw2regnum): Likewise.
556         * config/tc-nios2.c (nios2_opcode_lookup): Likewise.
557         (nios2_reg_lookup): Likewise.
558         (nios2_ps_lookup): Likewise.
559         (md_begin): Likewise.
560         * config/tc-ns32k.c (struct hash_control): Likewise.
561         (parse): Likewise.
562         (md_begin): Likewise.
563         * config/tc-pdp11.c (md_begin): Likewise.
564         (md_assemble): Likewise.
565         * config/tc-pj.c (fake_opcode): Likewise.
566         (alias): Likewise.
567         (md_begin): Likewise.
568         (md_assemble): Likewise.
569         * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
570         (md_assemble): Likewise.
571         * config/tc-pru.c (pru_opcode_lookup): Likewise.
572         (pru_reg_lookup): Likewise.
573         (md_begin): Likewise.
574         (md_end): Likewise.
575         * config/tc-riscv.c (init_ext_version_hash): Likewise.
576         (riscv_get_default_ext_version): Likewise.
577         (riscv_set_arch): Likewise.
578         (init_opcode_names_hash): Likewise.
579         (opcode_name_lookup): Likewise.
580         (enum reg_class): Likewise.
581         (hash_reg_name): Likewise.
582         (riscv_init_csr_hash): Likewise.
583         (reg_csr_lookup_internal): Likewise.
584         (reg_lookup_internal): Likewise.
585         (init_opcode_hash): Likewise.
586         (md_begin): Likewise.
587         (DECLARE_CSR): Likewise.
588         (macro_build): Likewise.
589         (riscv_ip): Likewise.
590         * config/tc-s390.c (register_name): Likewise.
591         (s390_setup_opcodes): Likewise.
592         (md_begin): Likewise.
593         (md_assemble): Likewise.
594         (s390_insn): Likewise.
595         * config/tc-score.c (struct s3_reg_map): Likewise.
596         (s3_score_reg_parse): Likewise.
597         (s3_dependency_type_from_insn): Likewise.
598         (s3_parse_16_32_inst): Likewise.
599         (s3_parse_48_inst): Likewise.
600         (s3_insert_reg): Likewise.
601         (s3_build_reg_hsh): Likewise.
602         (s3_build_score_ops_hsh): Likewise.
603         (s3_build_dependency_insn_hsh): Likewise.
604         (s3_begin): Likewise.
605         * config/tc-score7.c (struct s7_reg_map): Likewise.
606         (s7_score_reg_parse): Likewise.
607         (s7_dependency_type_from_insn): Likewise.
608         (s7_parse_16_32_inst): Likewise.
609         (s7_build_score_ops_hsh): Likewise.
610         (s7_build_dependency_insn_hsh): Likewise.
611         (s7_insert_reg): Likewise.
612         (s7_build_reg_hsh): Likewise.
613         (s7_begin): Likewise.
614         * config/tc-sh.c (EMPTY): Likewise.
615         (md_begin): Likewise.
616         (find_cooked_opcode): Likewise.
617         * config/tc-sparc.c (md_begin): Likewise.
618         (sparc_ip): Likewise.
619         * config/tc-spu.c (md_begin): Likewise.
620         (md_assemble): Likewise.
621         * config/tc-tic30.c (md_begin): Likewise.
622         (tic30_operand): Likewise.
623         (tic30_parallel_insn): Likewise.
624         (md_assemble): Likewise.
625         * config/tc-tic4x.c (TIC4X_ALT_SYNTAX): Likewise.
626         (tic4x_asg): Likewise.
627         (tic4x_inst_insert): Likewise.
628         (tic4x_inst_add): Likewise.
629         (md_begin): Likewise.
630         (tic4x_operand_parse): Likewise.
631         (md_assemble): Likewise.
632         * config/tc-tic54x.c (MAX_SUBSYM_HASH): Likewise.
633         (stag_add_field_symbols): Likewise.
634         (tic54x_endstruct): Likewise.
635         (tic54x_tag): Likewise.
636         (tic54x_remove_local_label): Likewise.
637         (tic54x_clear_local_labels): Likewise.
638         (tic54x_var): Likewise.
639         (tic54x_macro_start): Likewise.
640         (tic54x_macro_info): Likewise.
641         (tic54x_macro_end): Likewise.
642         (subsym_isreg): Likewise.
643         (subsym_structsz): Likewise.
644         (md_begin): Likewise.
645         (is_mmreg): Likewise.
646         (is_type): Likewise.
647         (encode_condition): Likewise.
648         (encode_cc3): Likewise.
649         (encode_cc2): Likewise.
650         (encode_operand): Likewise.
651         (tic54x_parse_insn): Likewise.
652         (tic54x_parse_parallel_insn_firstline): Likewise.
653         (subsym_create_or_replace): Likewise.
654         (subsym_lookup): Likewise.
655         (subsym_substitute): Likewise.
656         (tic54x_undefined_symbol): Likewise.
657         * config/tc-tic6x.c (md_begin): Likewise.
658         (md_assemble): Likewise.
659         * config/tc-tilegx.c (O_hw2_last_plt): Likewise.
660         (INSERT_SPECIAL_OP): Likewise.
661         (md_begin): Likewise.
662         (tilegx_parse_name): Likewise.
663         (parse_reg_expression): Likewise.
664         (md_assemble): Likewise.
665         * config/tc-tilepro.c (O_tls_ie_load): Likewise.
666         (INSERT_SPECIAL_OP): Likewise.
667         (tilepro_parse_name): Likewise.
668         (parse_reg_expression): Likewise.
669         (md_assemble): Likewise.
670         * config/tc-v850.c (md_begin): Likewise.
671         (md_assemble): Likewise.
672         * config/tc-vax.c (md_ri_to_chars): Likewise.
673         (vip_begin): Likewise.
674         (vip): Likewise.
675         (main): Likewise.
676         (md_begin): Likewise.
677         * config/tc-wasm32.c (md_begin): Likewise.
678         (md_assemble): Likewise.
679         * config/tc-xgate.c (xgate_parse_operand): Likewise.
680         (md_begin): Likewise.
681         (md_assemble): Likewise.
682         * config/tc-z8k.c (md_begin): Likewise.
683         (md_assemble): Likewise.
684
685 2020-08-20  Martin Liska  <[email protected]>
686
687         * dw2gencfi.c (dwcfi_hash_insert): Use htab_t and str_hash_*
688         functions.
689         (dwcfi_hash_find): Likewise.
690         (dwcfi_hash_find_or_make): Likewise.
691
692 2020-08-20  Martin Liska  <[email protected]>
693
694         * ecoff.c (INIT_VARRAY): Use htab_t.
695         (add_string): Likewise.
696         (ecoff_read_begin_hook): Use new str_htab_create.
697         (get_tag): Use htab_t.
698         (add_file): Likewise.
699
700 2020-08-20  Martin Liska  <[email protected]>
701
702         * hash.h (struct string_tuple): New.
703         (hash_string_tuple): Likewise.
704         (eq_string_tuple): Likewise.
705         (string_tuple_alloc): Likewise.
706         (str_hash_find): Likewise.
707         (str_hash_find_n): Likewise.
708         (str_hash_delete): Likewise.
709         (str_hash_insert): Likewise.
710         (str_htab_create): Likewise.
711
712 2020-08-20  Martin Liska  <[email protected]>
713
714         * symbols.c (struct symbol_entry): New.
715         (hash_symbol_entry): Likewise.
716         (eq_symbol_entry): Likewise.
717         (symbol_entry_alloc): Likewise.
718         (symbol_entry_find): Likewise.
719         (local_symbol_make): Use htab hash table.
720         (local_symbol_convert): Likewise.
721         (symbol_table_insert): Likewise.
722         (symbol_find_exact_noref): Likewise.
723         (resolve_local_symbol): Likewise.
724         (resolve_local_symbol_values): Likewise.
725         (symbol_begin): Likewise.
726         (symbol_print_statistics): Likewise.
727
728 2020-08-20  Martin Liska  <[email protected]>
729
730         * read.c (struct po_entry): New.
731         (hash_po_entry): Likewise.
732         (eq_po_entry): Likewise.
733         (po_entry_alloc): Likewise.
734         (po_entry_find): Likewise.
735         (pop_insert): Likewise.
736         (pobegin): Use htab hash table.
737         (read_a_source_file): Likewise.
738         (s_macro): Likewise.
739         (read_print_statistics): Likewise.
740         * config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
741         * config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
742
743 2020-08-20  Martin Liska  <[email protected]>
744
745         * config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
746         * macro.c (struct hash_control): Use htab.
747         (macro_init): Likewise.
748         (do_formals): Likewise.
749         (free_macro): Likewise.
750         (define_macro): Likewise.
751         (sub_actual): Likewise.
752         (macro_expand_body): Likewise.
753         (macro_expand): Likewise.
754         (check_macro): Likewise.
755         (delete_macro): Likewise.
756         (expand_irp): Likewise.
757         * macro.h (struct macro_hash_entry): New struct.
758         (hash_macro_entry): New.
759         (eq_macro_entry): Likewise.
760         (macro_entry_alloc): Likewise.
761         (macro_entry_find): Likewise.
762         (struct formal_hash_entry): Likewise.
763         (hash_formal_entry): Likewise.
764         (eq_formal_entry): Likewise.
765         (formal_entry_alloc): Likewise.
766         (formal_entry_find): Likewise.
767
768 2020-08-20  Martin Liska  <[email protected]>
769
770         * as.h: Include hashtab.h.
771         * hash.c (htab_insert): New.
772         (htab_print_statistics): Likewise.
773         * hash.h (htab_insert): Likewise.
774         (htab_print_statistics): Likewise.
775
776 2020-08-19  Alan Modra  <[email protected]>
777
778         * testsuite/gas/ppc/int128.s: Correct vcmpuq.
779         * testsuite/gas/ppc/int128.d: Update.
780         * testsuite/gas/ppc/xvtlsbb.d: Update.
781
782 2020-08-18  Peter Bergner  <[email protected]>
783
784         * testsuite/gas/ppc/vsx4.s: Update test to use new mnemonic.
785         * testsuite/gas/ppc/vsx4.d: Likewise.
786
787 2020-08-17  Alex Coplan  <[email protected]>
788
789         * config/obj-elf.c (obj_elf_change_section): When repurposing an
790         existing symbol, ensure that we set sy_value as per other (fresh)
791         section symbols.
792         * testsuite/gas/elf/elf.exp: Add new test.
793         * testsuite/gas/elf/section-symbol-redef.d: New test.
794         * testsuite/gas/elf/section-symbol-redef.s: Input for test.
795
796 2020-08-13  Nick Clifton  <[email protected]>
797
798         PR 26359
799         * config/obj-som.c (obj_som_init_stab_section): Do nothing if the
800         $GDB_DEBUG$ section has already been created.
801
802 2020-08-12  Joe Ramsay  <[email protected]>
803
804         * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
805         NS_FD shape when MVE is present
806         * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
807         * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
808         * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
809         * testsuite/gas/arm/mve-vcvtne-it.d: New test.
810         * testsuite/gas/arm/mve-vcvtne-it.s: New test.
811
812 2020-08-12  Alex Coplan  <[email protected]>
813
814         * testsuite/gas/aarch64/mpam-bad.d: New test.
815         * testsuite/gas/aarch64/mpam-bad.l: Error output.
816         * testsuite/gas/aarch64/mpam-bad.s: Input.
817         * testsuite/gas/aarch64/mpam.d: New test.
818         * testsuite/gas/aarch64/mpam.s: Input.
819
820 2020-08-12  Nick Clifton  <[email protected]>
821
822         PR 26346
823         * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
824         of the -mno-csr-check option.
825
826 2020-08-12  Nick Clifton  <[email protected]>
827
828         * po/ru.po: Updated Russian translation.
829
830 2020-08-10  Alex Coplan  <[email protected]>
831
832         * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
833         a long system register.
834         (parse_sys_ins_reg): Likewise.
835         (sysreg_hash_insert): New.
836         (md_begin): Use sysreg_hash_insert() to ensure all system
837         registers are no longer than the maximum length at startup.
838         * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
839         * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
840         * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
841
842 2020-08-10  Przemyslaw Wirkus  <[email protected]>
843
844         * config/tc-aarch64.c (parse_sys_reg): Call to
845         aarch64_sys_ins_reg_supported_p instead of
846         aarch64_sys_reg_supported_p.
847         (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
848         * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
849         * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
850         * testsuite/gas/aarch64/sysreg-5.s: New test.
851
852 2020-08-10  Alan Modra  <[email protected]>
853
854         * testsuite/gas/ppc/power8.d,
855         * testsuite/gas/ppc/power8.s: Add miso.
856         * testsuite/gas/ppc/power9.d,
857         * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
858
859 2020-08-10  Alan Modra  <[email protected]>
860
861         * testsuite/gas/ppc/power8.d: Update.
862         * testsuite/gas/ppc/vsx2.d: Update.
863
864 2020-08-10  Alan Modra  <[email protected]>
865
866         * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
867         stswi, or stswx in little-endian mode.
868         * testsuite/gas/ppc/476.d,
869         * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
870         * testsuite/gas/ppc/a2.d,
871         * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
872         * testsuite/gas/ppc/be.d,
873         * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
874         * testsuite/gas/ppc/le_error.d,
875         * testsuite/gas/ppc/le_error.l: New little-endian test.
876         * testsuite/gas/ppc/ppc.exp: Run new tests.
877
878 2020-08-07  H.J. Lu  <[email protected]>
879
880         * read.c (read_a_source_file): Ignore rest of line on overflow
881         error.
882
883 2020-08-06  Alex Coplan  <[email protected]>
884
885         * read.c (read_a_source_file): Use long for local labels, detect
886         overflow and raise an error for overly-long labels.
887         * testsuite/gas/all/gas.exp: Add local-label-overflow test.
888         * testsuite/gas/all/local-label-overflow.d: New test.
889         * testsuite/gas/all/local-label-overflow.l: Error output.
890         * testsuite/gas/all/local-label-overflow.s: Input.
891
892 2020-08-04  Christian Groessler  <[email protected]>
893
894         * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
895         "sout/soutb #imm,reg"
896
897 2020-08-04  H.J. Lu  <[email protected]>
898
899         * NEWS: Mention {disp16} pseudo prefix.
900
901 2020-08-04  H.J. Lu  <[email protected]>
902
903         * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
904         change.
905
906 2020-08-04  Mark Wielaard  <[email protected]>
907
908         * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
909         DW_FORM_udata for DW_AT_high_pc.
910         (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
911         DWARF2_VERSION >= 4.
912         * read.c (emit_leb128_exp): No longer static.
913         * read.h (emit_leb128_exp): Define.
914
915 2020-08-02  Mark Wielaard  <[email protected]>
916
917         * gas/dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
918         least one directory if there is at least one file. Use dirs[1]
919         if dirs[0] is not set, or if there is no dirs[1] the current
920         working directory. Use files[1] filename, when files[0] filename
921         isn't set.
922
923 2020-08-02  Mark Wielaard  <[email protected]>
924
925         * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
926         for DWARF5.
927         * gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
928         * gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
929         * gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
930         * gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
931         * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
932
933 2020-08-02  Mark Wielaard  <[email protected]>
934
935         * doc/as.texi (--gdwarf-[345]): Fix typo.
936
937 2020-08-03  Jozef Lawrynowicz  <[email protected]>
938
939         * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
940         (md_parse_option): Remove case for OPTION_MOVE_DATA.
941         (md_longopts): Remove "md" entry.
942         (md_show_usage): Likewise.
943
944 2020-07-30  H.J. Lu  <[email protected]>
945
946         PR gas/26305
947         * config/tc-i386.c (_i386_insn::disp_encoding): Add
948         disp_encoding_16bit.
949         (parse_insn): Check Prefix_XXX for pseudo prefixes.  Handle
950         {disp16}.
951         (build_modrm_byte): Handle {disp16}.
952         (i386_index_check): Check invalid {disp16} and {disp32} pseudo
953         prefixes.
954         * doc/c-i386.texi: Update {disp32} documentation and document
955         {disp16}.
956         * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
957         * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
958         tests.
959         * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
960         tests with 128-byte displacement.  Add {disp16} tests.
961         * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
962         vmovaps test.  Add (%r13)/(%r13d) tests.
963         * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
964         * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
965         * testsuite/gas/i386/inval-pseudo.l: Updated.
966         * testsuite/gas/i386/pseudos.d: Likewise.
967         * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
968
969 2020-07-30  Rainer Orth  <[email protected]>
970
971         * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
972         * Makefile.in, doc/Makefile.in: Regenerate.
973         * configure: Regenerate.
974
975 2020-07-30  H.J. Lu  <[email protected]>
976
977         * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
978         * testsuite/gas/elf/dwarf2-5.d: Likewise.
979         * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
980         * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
981         * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
982         * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
983
984 2020-07-30  Nick Clifton  <[email protected]>
985
986         * as.c (dwarf_level): Initialise to 3 in case this is not set on
987         the command line.
988
989 2020-07-29  Maciej W. Rozycki  <[email protected]>
990
991         * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
992         * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
993         * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
994         * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
995         * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
996         * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
997         * testsuite/gas/mips/mips.exp: Run the new tests.
998
999 2020-07-29  Maciej W. Rozycki  <[email protected]>
1000
1001         * testsuite/gas/mips/global-local-symtab-o32.d: New test.
1002         * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
1003         * testsuite/gas/mips/global-local-symtab-n32.d: New test.
1004         * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
1005         * testsuite/gas/mips/global-local-symtab-n64.d: New test.
1006         * testsuite/gas/mips/global-local-symtab.s: New test source.
1007         * testsuite/gas/mips/mips.exp: Run the new tests.
1008
1009 2020-07-28  H.J. Lu  <[email protected]>
1010
1011         PR gas/26305
1012         * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
1013         (%bp)/(%ebp)/(%rbp) for {disp32}.
1014         * doc/c-i386.texi: Update {disp32} documentation.
1015         * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
1016         * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
1017         * testsuite/gas/i386/pseudos.d: Updated.
1018         * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1019
1020 2020-07-27  H.J. Lu  <[email protected]>
1021
1022         * doc/as.texi: Replace preceeded with preceded.
1023
1024 2020-07-22  Maciej W. Rozycki  <[email protected]>
1025
1026         * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
1027         * testsuite/gas/mips/[email protected]: New file.
1028         * testsuite/gas/mips/[email protected]: New file.
1029         * testsuite/gas/mips/[email protected]: New file.
1030         * testsuite/gas/mips/[email protected]: New file.
1031         * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
1032         * testsuite/gas/mips/[email protected]: New file.
1033         * testsuite/gas/mips/[email protected]: New
1034         file.
1035         * testsuite/gas/mips/[email protected]: New file.
1036         * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
1037         * testsuite/gas/mips/[email protected]: New
1038         file.
1039         * testsuite/gas/mips/[email protected]: New
1040         file.
1041         * testsuite/gas/mips/[email protected]: New
1042         file.
1043         * testsuite/gas/mips/[email protected]: New
1044         file.
1045         * testsuite/gas/mips/jal-xgot-irix.d: New file.
1046         * testsuite/gas/mips/jalr2-irix.d: New file.
1047         * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
1048         New file.
1049         * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
1050         file.
1051         * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
1052         * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
1053         `*-*-irix*' targets.  Add source file designator.
1054         * testsuite/gas/mips/[email protected]: Don't exclude
1055         `*-*-irix*' targets.
1056         * testsuite/gas/mips/[email protected]: Likewise.
1057         * testsuite/gas/mips/[email protected]: Likewise.
1058         * testsuite/gas/mips/jalr2.d: Add name designator.
1059         * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
1060         tests involving the JALR relocation throughout.
1061
1062 2020-07-22  Maciej W. Rozycki  <[email protected]>
1063
1064         * testsuite/gas/mips/mips.exp: Use a helper variable for
1065         IRIX/non-IRIX test selection.
1066
1067 2020-07-21  Jan Beulich  <[email protected]>
1068
1069         * testsuite/gas/i386/evex-no-scale-64.d,
1070         testsuite/gas/i386/addr32.d,
1071         testsuite/gas/i386/x86-64-addr32-intel.d,
1072         testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
1073
1074 2020-07-21  Cooper Qu  <[email protected]>
1075
1076         * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
1077
1078 2020-07-21  Jan Beulich  <[email protected]>
1079
1080         * testsuite/gas/i386/evex-no-scale-32.d,
1081         testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
1082         * testsuite/gas/i386/evex-no-scale-32.s,
1083         testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
1084         * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
1085         instead of .section.
1086         * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
1087         specific section.
1088
1089 2020-07-21  Maciej W. Rozycki  <[email protected]>
1090
1091         * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
1092         (my_getSmallExpression): Adjust accordingly.
1093
1094 2020-07-20  Jan Beulich  <[email protected]>
1095
1096         PR gas/4572
1097         * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
1098         conditional around it.
1099         (md_begin): Insert backslash into operand_chars[] when slash is
1100         a comment character.
1101         * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
1102         \* as operators when / may be a comment character.
1103         * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
1104         * testsuite/gas/i386/i386.exp: Run new test.
1105
1106 2020-07-20  Jan Beulich  <[email protected]>
1107
1108         PR gas/4572
1109         * app.c (last_char): Drop TC_ARM conditional around it.
1110         (struct app_save): Drop TC_ARM conditional around last_char.
1111         (app_push, app_pop): Drop TC_ARM conditional from last_char
1112         accesses.
1113         (do_scrub_chars): Likewise. Drop TC_ARM conditional from
1114         backslash-precedes-comment-character check.
1115
1116 2020-07-20  Jan Beulich  <[email protected]>
1117
1118         * config/tc-i386.c (frag_opcode_byte): New.
1119         (output_branch): Emit error when in absolute section.
1120         (output_jump, output_insn): Use frag_opcode_byte. Handle being
1121         in absolute section.
1122         (output_interseg_jump, output_disp, output_imm): Handle being in
1123         absolute section.
1124         * testsuite/gas/i386/sizing.s,
1125         testsuite/gas/i386/sizing32.d,
1126         testsuite/gas/i386/sizing64.d: New.
1127         * testsuite/gas/i386/i386.exp: Run new tests.
1128
1129 2020-07-20  Jan Beulich  <[email protected]>
1130
1131         * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
1132         is_elf_format as applicable; merely exclude iamcu tests.
1133
1134 2020-07-19  H.J. Lu  <[email protected]>
1135
1136         PR gas/26263
1137         * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
1138         against section to PC32 reloc.
1139         * testsuite/gas/i386/relax-5.d: Updated.
1140         * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
1141
1142 2020-07-15  H.J. Lu  <[email protected]>
1143
1144         PR gas/26237
1145         * testsuite/gas/i386/evex-no-scale-64.d: Updated.
1146         * testsuite/gas/i386/addr32.d: Likewise.
1147         * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1148         * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1149
1150 2020-07-15  Nick Clifton  <[email protected]>
1151
1152         * write.c (create_note_reloc): Add desc2_size parameter.  Zero out
1153         the addend field of REL relocations.  Store the full addend into
1154         the note for REL relocations.
1155
1156 2020-07-15  Jan Beulich  <[email protected]>
1157
1158         * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
1159         immediate.
1160         * testsuite/gas/i386/x86-64-stack-intel.d,
1161         testsuite/gas/i386/x86-64-stack-suffix.d,
1162         testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
1163
1164 2020-07-15  Jan Beulich  <[email protected]>
1165
1166         * testsuite/gas/i386/disassem.d,
1167         testsuite/gas/i386/ilp32/x86-64-branch.d,
1168         testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
1169         testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
1170         testsuite/gas/i386/noreg32.d,
1171         testsuite/gas/i386/noreg64-rex64.d,
1172         testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
1173         testsuite/gas/i386/opcode.d,
1174         testsuite/gas/i386/solaris/x86-64-branch-2.d,
1175         testsuite/gas/i386/solaris/x86-64-jump.d,
1176         testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
1177         testsuite/gas/i386/solaris/x86-64-nop-3.d,
1178         testsuite/gas/i386/solaris/x86-64-nop-4.d,
1179         testsuite/gas/i386/solaris/x86-64-nop-5.d,
1180         testsuite/gas/i386/solaris/x86-64-relax-2.d,
1181         testsuite/gas/i386/solaris/x86-64-relax-3.d,
1182         testsuite/gas/i386/x86-64-align-branch-1a.d,
1183         testsuite/gas/i386/x86-64-align-branch-1b.d,
1184         testsuite/gas/i386/x86-64-align-branch-1c.d,
1185         testsuite/gas/i386/x86-64-align-branch-1d.d,
1186         testsuite/gas/i386/x86-64-align-branch-1e.d,
1187         testsuite/gas/i386/x86-64-align-branch-1f.d,
1188         testsuite/gas/i386/x86-64-align-branch-1g.d,
1189         testsuite/gas/i386/x86-64-align-branch-1h.d,
1190         testsuite/gas/i386/x86-64-align-branch-1i.d,
1191         testsuite/gas/i386/x86-64-align-branch-2a.d,
1192         testsuite/gas/i386/x86-64-align-branch-2b.d,
1193         testsuite/gas/i386/x86-64-align-branch-2c.d,
1194         testsuite/gas/i386/x86-64-align-branch-3.d,
1195         testsuite/gas/i386/x86-64-align-branch-4a.d,
1196         testsuite/gas/i386/x86-64-align-branch-4b.d,
1197         testsuite/gas/i386/x86-64-align-branch-5.d,
1198         testsuite/gas/i386/x86-64-align-branch-6.d,
1199         testsuite/gas/i386/x86-64-branch-2.d,
1200         testsuite/gas/i386/x86-64-branch-3.d,
1201         testsuite/gas/i386/x86-64-branch.d,
1202         testsuite/gas/i386/x86-64-disassem.d,
1203         testsuite/gas/i386/x86-64-disp32.d,
1204         testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
1205         testsuite/gas/i386/x86-64-gotpcrel.d,
1206         testsuite/gas/i386/x86-64-ifunc.d,
1207         testsuite/gas/i386/x86-64-jump.d,
1208         testsuite/gas/i386/x86-64-lfence-byte.d,
1209         testsuite/gas/i386/x86-64-lfence-indbr-a.d,
1210         testsuite/gas/i386/x86-64-lfence-indbr-b.d,
1211         testsuite/gas/i386/x86-64-lfence-indbr-c.d,
1212         testsuite/gas/i386/x86-64-lfence-load.d,
1213         testsuite/gas/i386/x86-64-lfence-ret-a.d,
1214         testsuite/gas/i386/x86-64-lfence-ret-b.d,
1215         testsuite/gas/i386/x86-64-lfence-ret-c.d,
1216         testsuite/gas/i386/x86-64-lfence-ret-d.d,
1217         testsuite/gas/i386/x86-64-lfence-ret-e.d,
1218         testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
1219         testsuite/gas/i386/x86-64-mpx-branch-1.d,
1220         testsuite/gas/i386/x86-64-mpx.d,
1221         testsuite/gas/i386/x86-64-nop-3.d,
1222         testsuite/gas/i386/x86-64-nop-4.d,
1223         testsuite/gas/i386/x86-64-nop-5.d,
1224         testsuite/gas/i386/x86-64-nops-7.d,
1225         testsuite/gas/i386/x86-64-notrack.d,
1226         testsuite/gas/i386/x86-64-opcode.d,
1227         testsuite/gas/i386/x86-64-relax-2.d,
1228         testsuite/gas/i386/x86-64-relax-3.d,
1229         testsuite/gas/i386/x86-64-relax-4.d,
1230         testsuite/gas/i386/x86-64-rtm.d,
1231         testsuite/gas/i386/x86-64-stack.d,
1232         testsuite/gas/i386/x86-64-unique.d,
1233         testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
1234
1235 2020-07-14  H.J. Lu  <[email protected]>
1236
1237         PR gas/26237
1238         * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
1239         address.
1240         * testsuite/gas/i386/x86-64-addr32.s: Likewise.
1241         * testsuite/gas/i386/addr32.d: Updated.
1242         * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1243         * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1244         * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
1245         * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
1246
1247 2020-07-14  Jan Beulich  <[email protected]>
1248
1249         * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
1250         * testsuite/gas/i386/intel-intel.d: Disambiguate name.
1251         * testsuite/gas/i386/intel.d,
1252         testsuite/gas/i386/opcode-intel.d: Adjust expectations.
1253
1254 2020-07-14  Jan Beulich  <[email protected]>
1255
1256         * testsuite/gas/i386/prefix.d: Adjust expectations.
1257
1258 2020-07-14  Jan Beulich  <[email protected]>
1259
1260         * testsuite/gas/i386/x86-64-avx-intel.d,
1261         testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
1262
1263 2020-07-14  Jan Beulich  <[email protected]>
1264
1265         * testsuite/gas/i386/movbe-suffix.d,
1266         testsuite/gas/i386/x86-64-movbe-suffix.d: New.
1267         * testsuite/gas/i386/i386.exp: Run new tests.
1268
1269 2020-07-14  Jan Beulich  <[email protected]>
1270
1271         * testsuite/gas/i386/crc32-suffix.d,
1272         testsuite/gas/i386/x86-64-crc32-suffix.d: New.
1273         * testsuite/gas/i386/i386.exp: Run new tests.
1274         * testsuite/gas/i386/arch-10-bdver1.d,
1275         testsuite/gas/i386/arch-10-bdver2.d,
1276         testsuite/gas/i386/arch-10-bdver3.d,
1277         testsuite/gas/i386/arch-10-bdver4.d,
1278         testsuite/gas/i386/arch-10-btver1.d,
1279         testsuite/gas/i386/arch-10-btver2.d,
1280         testsuite/gas/i386/arch-10-lzcnt.d,
1281         testsuite/gas/i386/arch-10-prefetchw.d,
1282         testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
1283         testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
1284         testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
1285         testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
1286         testsuite/gas/i386/x86-64-arch-2-bdver1.d,
1287         testsuite/gas/i386/x86-64-arch-2-bdver2.d,
1288         testsuite/gas/i386/x86-64-arch-2-bdver3.d,
1289         testsuite/gas/i386/x86-64-arch-2-bdver4.d,
1290         testsuite/gas/i386/x86-64-arch-2-btver1.d,
1291         testsuite/gas/i386/x86-64-arch-2-btver2.d,
1292         testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
1293         testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
1294         testsuite/gas/i386/x86-64-arch-2.d,
1295         testsuite/gas/i386/x86-64-crc32.d,
1296         testsuite/gas/i386/x86-64-pseudos.d,
1297         testsuite/gas/i386/x86-64-sse-noavx.d,
1298         testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
1299
1300 2020-07-14  Jan Beulich  <[email protected]>
1301
1302         * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1303         ModR/M-encoded byte register cases.
1304         * testsuite/gas/i386/x86-64-pseudos.d,
1305         testsuite/gas/i386/x86-64-reg-intel.d,
1306         testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
1307
1308 2020-07-14  Jan Beulich  <[email protected]>
1309
1310         * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1311         not-ModR/M-encoded byte register cases.
1312         * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
1313
1314 2020-07-14  Jan Beulich  <[email protected]>
1315
1316         * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
1317         testsuite/gas/i386/ilp32/x86-64-arch-2.d,
1318         testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
1319         testsuite/gas/i386/ilp32/x86-64-avx.d,
1320         testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
1321         testsuite/gas/i386/ilp32/x86-64-crc32.d,
1322         testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
1323         testsuite/gas/i386/ilp32/x86-64-ifunc.d,
1324         testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
1325         testsuite/gas/i386/ilp32/x86-64-reg.d,
1326         testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
1327         testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
1328         testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
1329         testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
1330         testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
1331         testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
1332         dump expectations.
1333
1334 2020-07-13  H.J. Lu  <[email protected]>
1335
1336         * config/tc-i386.c (offset_in_range): Remove 32-bit sign
1337         extension.
1338
1339 2020-07-13  Nick Clifton  <[email protected]>
1340
1341         * po/fr.po: Updated French translation.
1342
1343 2020-07-13  Alan Modra  <[email protected]>
1344
1345         * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
1346         * testsuite/gas/elf/dwarf2-12.d: Likewise.
1347         * testsuite/gas/elf/dwarf2-13.d: Likewise.
1348         * testsuite/gas/elf/dwarf2-14.d: Likewise.
1349
1350 2020-07-11  H.J. Lu  <[email protected]>
1351
1352         * config/tc-i386.c (output_insn): Check i.xstate to set
1353         GNU_PROPERTY_X86_FEATURE_2_TMM.
1354         * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
1355         x86-64-property-8 and x86-64-property-9.
1356         * testsuite/gas/i386/x86-64-property-7.d: New file.
1357         * testsuite/gas/i386/x86-64-property-7.s: Likewise.
1358         * testsuite/gas/i386/x86-64-property-8.d: Likewise.
1359         * testsuite/gas/i386/x86-64-property-8.s: Likewise.
1360         * testsuite/gas/i386/x86-64-property-9.d: Likewise.
1361         * testsuite/gas/i386/x86-64-property-9.s: Likewise.
1362
1363 2020-07-10  H.J. Lu  <[email protected]>
1364
1365         * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
1366         has_regymm, has_regzmm and has_regtmm.  Add xstate.
1367         (md_assemble): Set i.xstate from operand types in instruction
1368         template.
1369         (build_modrm_byte): Updated.
1370         (output_insn): Check i.xstate.
1371         * testsuite/gas/i386/i386.exp: Run property-6 and
1372         x86-64-property-6.
1373         * testsuite/gas/i386/property-6.d: New file.
1374         * testsuite/gas/i386/property-6.s: Updated.
1375         * testsuite/gas/i386/x86-64-property-6.d: Likewise.
1376
1377 2020-07-10  H.J. Lu  <[email protected]>
1378
1379         * testsuite/gas/i386/property-5.d: Correct test name.
1380
1381 2020-07-10  Lili Cui  <[email protected]>
1382
1383         * NEWS: Mention support for Intel AMX instructions.
1384         * config/tc-i386.c (i386_error): Add invalid_sib_address.
1385         (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
1386         (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
1387         (match_simd_size): Add tmmword check.
1388         (operand_type_match): Add tmmword.
1389         (type_names): Add rTMM.
1390         (i386_error): Add invalid_tmm_register_set.
1391         (check_VecOperands): Handle invalid_sib_address and
1392         invalid_tmm_register_set.
1393         (match_template): Handle invalid_sib_address.
1394         (build_modrm_byte): Handle non-vector SIB and zmmword.
1395         (i386_index_check): Disallow RegIP for non-vector SIB.
1396         (check_register): Handle zmmword.
1397         * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
1398         * testsuite/gas/i386/i386.exp: Add AMX new tests.
1399         * testsuite/gas/i386/intel-regs.d: Add tmm.
1400         * testsuite/gas/i386/intel-regs.s: Add tmm.
1401         * testsuite/gas/i386/x86-64-amx-intel.d: New.
1402         * testsuite/gas/i386/x86-64-amx-inval.l: New.
1403         * testsuite/gas/i386/x86-64-amx-inval.s: New.
1404         * testsuite/gas/i386/x86-64-amx.d: New.
1405         * testsuite/gas/i386/x86-64-amx.s: New.
1406         * testsuite/gas/i386/x86-64-amx-bad.d: New.
1407         * testsuite/gas/i386/x86-64-amx-bad.s: New.
1408
1409 2020-07-10  Tom de Vries  <[email protected]>
1410
1411         * testsuite/gas/elf/dwarf2-11.d: Update expected output from
1412         readelf's line table decoding.
1413         * testsuite/gas/elf/dwarf2-12.d: Likewise.
1414         * testsuite/gas/elf/dwarf2-13.d: Likewise.
1415         * testsuite/gas/elf/dwarf2-14.d: Likewise.
1416         * testsuite/gas/elf/dwarf2-15.d: Likewise.
1417         * testsuite/gas/elf/dwarf2-16.d: Likewise.
1418         * testsuite/gas/elf/dwarf2-17.d: Likewise.
1419         * testsuite/gas/elf/dwarf2-18.d: Likewise.
1420         * testsuite/gas/elf/dwarf2-19.d: Likewise.
1421         * testsuite/gas/elf/dwarf2-5.d: Likewise.
1422         * testsuite/gas/elf/dwarf2-6.d: Likewise.
1423         * testsuite/gas/elf/dwarf2-7.d: Likewise.
1424
1425 2020-07-09  H.J. Lu  <[email protected]>
1426
1427         * config/tc-i386.c (output_insn): Set YMM/ZMM features for
1428         VEX/EVEX vector instructions.
1429         * testsuite/gas/i386/property-4.d: New file.
1430         * testsuite/gas/i386/property-4.s: Likewise.
1431         * testsuite/gas/i386/property-5.d: Likewise.
1432         * testsuite/gas/i386/property-5.s: Likewise.
1433         * testsuite/gas/i386/x86-64-property-4.d: Likewise.
1434         * testsuite/gas/i386/x86-64-property-5.d: Likewise.
1435
1436 2020-07-09  H.J. Lu  <[email protected]>
1437
1438         * NEWS: Mention --enable-x86-used-note.
1439         * configure.ac: Configure with --enable-x86-used-note by default
1440         for Linux/x86.
1441         * configure: Regenerated.
1442
1443 2020-07-09  Alan Modra  <[email protected]>
1444
1445         * config/obj-coff.h: Remove TE_PE support.
1446         * config/tc-ppc.c: Likewise.
1447         * config/tc-ppc.h: Likewise.
1448         * configure.tgt: Remove powerpc PE and powerpc lynxos.
1449         * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
1450         condition.
1451         * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
1452
1453 2020-07-08  Jan Beulich  <[email protected]>
1454
1455         * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
1456         New.
1457         * testsuite/gas/i386/i386.exp: Run new tests.
1458
1459 2020-07-07  Claudiu Zissulescu  <[email protected]>
1460
1461         * config/tc-arc.c (find_opcode_match): Add error messages.
1462         * testsuite/gas/arc/add_s-err.s: Update test.
1463         * testsuite/gas/arc/asm-errors.err: Likewise.
1464         * testsuite/gas/arc/cpu-em-err.s: Likewise.
1465         * testsuite/gas/arc/hregs-err.s: Likewise.
1466         * testsuite/gas/arc/warn.s: Likewise.
1467
1468 2020-07-07  H.J. Lu  <[email protected]>
1469
1470         PR gas/26212
1471         * doc/c-i386.texi: Remove an incorrect AVX2 entry.
1472
1473 2020-07-07  Alan Modra  <[email protected]>
1474
1475         * testsuite/gas/all/gas.exp: Use is_xcoff_format.
1476         * testsuite/gas/ppc/ppc.exp: Likewise.
1477         * testsuite/gas/all/weakref1l.d: Likewise.
1478
1479 2020-07-07  Nick Clifton  <[email protected]>
1480
1481         * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
1482         expected output.
1483
1484 2020-07-06  Jan Beulich  <[email protected]>
1485
1486         * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
1487         testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
1488         testsuite/gas/i386/x86-64-evex-wig1.d,
1489         testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
1490         expectations.
1491
1492 2020-07-06  Jan Beulich  <[email protected]>
1493
1494         * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
1495         * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
1496         * testsuite/gas/i386/avx512f-opts-intel.d,
1497         testsuite/gas/i386/avx512f-opts.d
1498         testsuite/gas/i386/x86-64-avx512f-opts-intel.d
1499         testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
1500
1501 2020-07-06  Yuri Chornoivan  <[email protected]>
1502
1503         PR 26204
1504         * config/tc-arm.c: Fix spelling mistake.
1505         * config/tc-riscv.c: Likewise.
1506         * config/tc-z80.c: Likewise.
1507         * po/gas.pot: Regenerate.
1508
1509 2020-07-06  Nick Clifton  <[email protected]>
1510
1511         * po/uk.po: Updated Ukranian translation.
1512
1513 2020-07-04  Nick Clifton  <[email protected]>
1514
1515         * configure: Regenerate.
1516         * po/gas.pot: Regenerate.
1517
1518 2020-07-04  Nick Clifton  <[email protected]>
1519
1520         * version.m4: Change version number to 2.35.50.
1521         * configure: Regenerate.
1522         * po/bfd.pot: Regenerate.
1523
1524 2020-07-04  Nick Clifton  <[email protected]>
1525
1526         Binutils 2.35 branch created.
1527
1528 2020-07-03  Alan Modra  <[email protected]>
1529
1530         PR 26028
1531         * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
1532
1533 2020-07-02  H.J. Lu  <[email protected]>
1534
1535         * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
1536         swap two source operands.
1537
1538 2020-07-02  Nick Clifton  <[email protected]>
1539
1540         * testsuite/gas/all/fill-1.d: Skip for MeP targets.
1541
1542 2020-07-02  Alex Coplan  <[email protected]>
1543
1544         * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
1545         segfault on negative chars.
1546         * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
1547         * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
1548
1549 2020-07-02  Nick Clifton  <[email protected]>
1550
1551         PR 26028
1552         * testsuite/gas/ia64/group-2.d: Add -T option to readelf
1553         command line.
1554         * testsuite/gas/ia64/unwind.d: Likewise.
1555         * testsuite/gas/mmix/bspec-1.d: Likewise.
1556         * testsuite/gas/mmix/bspec-2.d: Likewise.
1557         * testsuite/gas/mmix/comment-1.d: Likewise.
1558         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1559
1560 2020-07-01  Alan Modra  <[email protected]>
1561
1562         * config/tc-xc16x.c (md_apply_fix): Add FIXME.
1563
1564 2020-07-01  Alan Modra  <[email protected]>
1565
1566         * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
1567         in data sections, and mep.
1568
1569 2020-06-30  H.J. Lu  <[email protected]>
1570
1571         * NEWS: Mention x86 NaCl target support removal.
1572         * config/tc-i386.c: Remove x86 NaCl target support.
1573         * config/tc-i386.h: Likewise.
1574         * configure.tgt: Likewise.
1575         * testsuite/gas/i386/i386.exp: Likewise.
1576         * testsuite/gas/i386/iamcu-1.d: Likewise.
1577         * testsuite/gas/i386/iamcu-2.d: Likewise.
1578         * testsuite/gas/i386/iamcu-3.d: Likewise.
1579         * testsuite/gas/i386/iamcu-4.d: Likewise.
1580         * testsuite/gas/i386/iamcu-5.d: Likewise.
1581         * testsuite/gas/i386/k1om.d: Likewise.
1582         * testsuite/gas/i386/l1om.d: Likewise.
1583
1584 2020-06-30  Nelson Chu  <[email protected]>
1585
1586         * config/tc-riscv.c (riscv_csr_class_check): Removed.  Move the
1587         checking into riscv_csr_address.
1588         (riscv_csr_version_check): Likewise.
1589         (riscv_csr_address): New function.  Return the suitable CSR address
1590         after checking the ISA dependency and versions.  Issue warnings if
1591         we find any conflict and -mcsr-check is set.  CSR_CLASS_F and
1592         CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
1593         priv spec versions for them.
1594         (reg_csr_lookup_internal): Call riscv_csr_address to find the
1595         suitable CSR address.
1596         * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
1597         * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1598         * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1599         * testsuite/gas/riscv/priv-reg-fail-fext.l:  We don't care the
1600         priv spec warnings here.  These warnings are added by accident.
1601         Remove them and only focus on the ISA dependency warnings.
1602         * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1603         * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1604         * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
1605         dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
1606         than the privileged ones.
1607         * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1608         * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1609         * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1610         * testsuite/gas/riscv/priv-reg.s: Likewise.  Add missing debug CSR.
1611         * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1612         * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
1613         * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
1614         * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
1615         * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
1616         * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
1617
1618 2020-06-29  H.J. Lu  <[email protected]>
1619
1620         * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
1621         (md_assemble): Don't process ImmExt without operands.
1622
1623 2020-06-29  Hans-Peter Nilsson  <[email protected]>
1624
1625         PR gas/25331
1626         * config/tc-mmix.c (md_assemble) <fixup for
1627         BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
1628         Also, set its fx_no_overflow.
1629         (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>: 
1630         Similarly this fixup affects 4 bytes, not 8 and needs its
1631         fx_no_overflow set.
1632         * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
1633         * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
1634
1635 2020-06-29  Alan Modra  <[email protected]>
1636
1637         * config/tc-s12z.c: Use C style comments.
1638         * config/tc-z80.c: Likewise.
1639         * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
1640
1641 2020-06-26  H.J. Lu  <[email protected]>
1642
1643         * config/tc-i386.c (md_assemble): Process ImmExt without
1644         operands.
1645
1646 2020-06-26  H.J. Lu  <[email protected]>
1647
1648         * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
1649         Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
1650         VECSIB256 and VECSIB512, respectively.
1651         (build_modrm_byte): Replace vecsib with sib.
1652
1653 2020-06-26  Jan Beulich  <[email protected]>
1654
1655         * testsuite/gas/i386/nop-1-suffix.d: New.
1656         * testsuite/gas/i386/i386.exp: Run new test.
1657
1658 2020-06-26  Pat Bernardi  <[email protected]>
1659
1660         * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
1661         (md_pseudo_table): Handle "gnu_attribute".
1662         * doc/as.texi: Document GNU attribute for M68K.
1663
1664 2020-06-25  Nick Clifton  <[email protected]>
1665
1666         PR 26141
1667         * config/tc-arm.c (arm_force_relocation): Force resolution of
1668         BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
1669         * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
1670
1671 2020-06-25  Jan Beulich  <[email protected]>
1672
1673         * config/tc-i386.c (md_assemble): Move call to process_immext()
1674         ...
1675         (process_operands): ... here.
1676
1677 2020-06-25  Jan Beulich  <[email protected]>
1678
1679         * config/tc-i386.c (process_suffix): Skip ambiguous operand size
1680         diagnostic when there is a sizing prefix.  Switch to word/dword/
1681         qword encoding when there is a sizing prefix and no (explicit or
1682         derived) suffix.
1683         (update_imm): Handle presence of a sizing prefix.
1684         * testsuite/gas/i386/noreg16-data32.d,
1685         testsuite/gas/i386/noreg32-data16.d,
1686         testsuite/gas/i386/noreg32-data16.e,
1687         testsuite/gas/i386/noreg64-data16.d,
1688         testsuite/gas/i386/noreg64-data16.e,
1689         testsuite/gas/i386/noreg64-rex64.d: New.
1690         * testsuite/gas/i386/i386.exp: Run new tests.
1691         * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
1692         Introduce and use pfx* macros.
1693         * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
1694         addressing.
1695         * testsuite/gas/i386/noreg16.d: Adjust expectations.
1696
1697 2020-06-25  Jan Beulich  <[email protected]>
1698
1699         * testsuite/gas/i386/avx-16bit.d,
1700         testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
1701         testsuite/gas/i386/avx512f-16bit.d,
1702         testsuite/gas/i386/avx512f.d,
1703         testsuite/gas/i386/evex-lig256.d,
1704         testsuite/gas/i386/evex-lig512.d
1705         testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
1706         testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
1707         testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
1708         testsuite/gas/i386/sse2-16bit.d,
1709         testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
1710         expectations.
1711
1712 2020-06-25  Jan Beulich  <[email protected]>
1713
1714         * config/tc-i386.c (md_assemble): Also reject explicit REX
1715         prefixes with VEX and alike encoded insns. Zap consumed bits
1716         from i.rex.
1717         (output_insn): Don't ignore REX prefix for VEX and alike
1718         encodings; abort() instead if encountered.
1719         * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
1720         ...
1721         * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
1722         * testsuite/gas/i386/x86-64-pseudos.d,
1723         testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
1724
1725 2020-06-25  Jan Beulich  <[email protected]>
1726
1727         * config/tc-i386.c (process_operands): Translate explicit REX
1728         prefix into i.rex for SSE2AVX templates.
1729         (set_rex_vrex): New helper.
1730         (build_modrm_byte): Use it.
1731         * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
1732         REX prefixes.
1733         * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1734
1735 2020-06-25  Jan Beulich  <[email protected]>
1736
1737         * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
1738         templates when there's no data size prefix.
1739         (md_assemble): Reject data size prefix also for legacy encoded
1740         SIMD templates.
1741         * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
1742         Uncomment previously not working line.
1743         * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
1744         data16 prefix.
1745         * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
1746         testsuite/gas/i386/sse2avx.d: Adjust expectations.
1747
1748 2020-06-25  Jan Beulich  <[email protected]>
1749
1750         * config/tc-i386.c (build_evex_prefix): Drop early setting of
1751         vec_length.
1752
1753 2020-06-23  Nelson Chu  <[email protected]>
1754
1755         * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
1756         explicit_priv_attr.  It used to indicate CSR or priv instructions are
1757         explictly used.
1758         (riscv_is_priv_insn): Return True if it is a privileged instruction.
1759         (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
1760         is privileged or not.  If it is, then set explicit_priv_attr to TRUE.
1761         (riscv_write_out_attrs): Clarification of when to generate the elf
1762         priv spec attributes.
1763         * testsuite/gas/riscv/attribute-11.s: Add comments.
1764         * testsuite/gas/riscv/attribute-14.s: New testcase.  Use symbol
1765         `priv_insn_<n>` to decide which priv instruction is expected to used.
1766         (<n> is a to e.)
1767         * testsuite/gas/riscv/attribute-14a.d: Likewise.
1768         * testsuite/gas/riscv/attribute-14b.d: Likewise.
1769         * testsuite/gas/riscv/attribute-14c.d: Likewise.
1770         * testsuite/gas/riscv/attribute-14d.d: Likewise.
1771         * testsuite/gas/riscv/attribute-14e.d: Likewise.
1772
1773 2020-06-22  Nelson Chu  <[email protected]>
1774
1775         * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
1776         (riscv_set_default_priv_spec): Get the priv spec version from the
1777         priv spec attributes by riscv_get_priv_spec_class_from_numbers.
1778
1779 2020-06-20  Alan Modra  <[email protected]>
1780
1781         * configure.tgt: Set bfd_gas for all SH targets.
1782
1783 2020-06-18  Jan Beulich  <[email protected]>
1784
1785         * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
1786         * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
1787         expectations.
1788
1789 2020-06-16  Lili Cui  <[email protected]>
1790
1791         * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
1792         cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
1793         * doc/c-i386.texi: Add avx512_vp2intersect.
1794
1795 2020-06-16  Jan Beulich  <[email protected]>
1796
1797         * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
1798         conditional.
1799         * testsuite/gas/i386/sse-check.s: Adjust comment.
1800         * testsuite/gas/i386/sse-check-error.l,
1801         testsuite/gas/i386/sse-check-warn.e,
1802         testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
1803         expectations.
1804
1805 2020-06-16  Alan Modra  <[email protected]>
1806
1807         * config/tc-tic30.h: Remove OBJ_AOUT support.
1808         * configure.tgt: Delete tic30-*-*aout* entry.
1809
1810 2020-06-15  Max Filippov  <[email protected]>
1811
1812         * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
1813         macros.
1814         (elf32xtensa_abi): New declaration.
1815         (option_abi_windowed, option_abi_call0): New enum constants.
1816         (md_longopts): Add entries for --abi-windowed and --abi-call0.
1817         (md_parse_option): Add handlers for --abi-windowed and
1818         --abi-call0.
1819         (xtensa_add_config_info): Use xtensa_abi_choice instead of
1820         XSHAL_ABI to format ABI tag.
1821         * doc/as.texi (Target Xtensa options): Add --abi-windowed and
1822         --abi-call0 to the list of options.
1823         * doc/c-xtensa.texi: Add description for options --abi-windowed
1824         and --abi-call0.
1825         * testsuite/gas/xtensa/abi-call0.d: New test definition.
1826         * testsuite/gas/xtensa/abi-windowed.d: New test definition.
1827         * testsuite/gas/xtensa/abi.s: New test source.
1828
1829 2020-06-14  H.J. Lu  <[email protected]>
1830
1831         PR gas/26115
1832         * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
1833         xsusldtrk.
1834         * testsuite/gas/i386/tsxldtrk.s: Likewise.
1835         * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
1836         * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
1837
1838 2020-06-12  Nelson Chu  <[email protected]>
1839
1840         * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
1841         * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
1842         * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1843
1844 2020-06-09  Seth Girvan  <[email protected]>
1845
1846         * doc/c-avr.texi: Improve wording.
1847
1848 2020-06-09  Jan Beulich  <[email protected]>
1849
1850         * testsuite/gas/i386/x86-64-pseudos-bad.s,
1851         testsuite/gas/i386/x86-64-pseudos-bad.l: New.
1852
1853 2020-06-09  Jan Beulich  <[email protected]>
1854
1855         * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
1856         encoding tests.
1857         * testsuite/gas/i386/prefix.d: Adjust expectations.
1858
1859 2020-06-09  Jan Beulich  <[email protected]>
1860
1861         * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
1862         with VEX/EVEX encoding tests.
1863         * testsuite/gas/i386/prefix.d: Adjust expectations.
1864
1865 2020-06-09  Jan Beulich  <[email protected]>
1866
1867         * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
1868         suffix.
1869         * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
1870         * testsuite/gas/i386/noreg64.d: Adjust expectations.
1871         * testsuite/gas/i386/noreg-intel64.d,
1872         testsuite/gas/i386/noreg-intel64.l,
1873         testsuite/gas/i386/noreg-intel64.s: New.
1874         * testsuite/gas/i386/i386.exp: Run new tests.
1875
1876 2020-06-09  Jan Beulich  <[email protected]>
1877
1878         * config/tc-i386.c (vex_encoding_error): New enumerator.
1879         (VEX_check_operands): Rename to VEX_check_encoding. Check
1880         for vex_encoding_error. Move Imm4 handling ...
1881         (check_VecOperands): ... here.
1882         (match_template): Call VEX_check_encoding when there are no
1883         operands. Split construct calling check_VecOperands and
1884         VEX_check_encoding (when there are operands).
1885         (check_register): Don't blindly set vex_encoding_evex.
1886         * testsuite/gas/i386/pseudos-bad.s,
1887         testsuite/gas/i386/pseudos-bad.l: New.
1888         * testsuite/gas/i386/i386.exp: Run new test.
1889         * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
1890
1891 2020-06-08  Alex Coplan  <[email protected]>
1892
1893         * config/tc-arm.c (insns): Add dfb.
1894         * testsuite/gas/arm/dfb.d: New test.
1895         * testsuite/gas/arm/dfb.s: Input for test.
1896
1897 2020-06-08  Nick Clifton  <[email protected]>
1898
1899         * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
1900
1901 2020-06-08  Jan Beulich  <[email protected]>
1902
1903         * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
1904
1905 2020-06-08  Jan Beulich  <[email protected]>
1906
1907         * config/tc-i386.c (check_byte_reg): Drop dead conditional
1908         around as_bad().
1909
1910 2020-06-08  Jan Beulich  <[email protected]>
1911
1912         * config/tc-i386.c (check_register): Split RegTR handling, to
1913         fail recognition also in 64-bit mode as well as with i586 or
1914         i686 explicitly enabled.
1915         * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
1916         * testsuite/gas/i386/x86_64-intel.d,
1917         testsuite/gas/i386/x86_64.d: Adjust expectations.
1918
1919 2020-06-08  Jan Beulich  <[email protected]>
1920
1921         * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
1922         * testsuite/gas/cfi/cfi.exp: Run this test.
1923
1924 2020-06-08  Jan Beulich  <[email protected]>
1925
1926         * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
1927         check to %st(N) parsing logic.
1928         * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
1929
1930 2020-06-08  Jan Beulich  <[email protected]>
1931
1932         * config/tc-i386.c (bad_reg): New.
1933         (check_VecOperations, i386_att_operand, i386_parse_name): Check
1934         for it.
1935         (check_register): New, broken out from ...
1936         (parse_real_register): ... here. Call it.
1937         (parse_register): Call it, and error upon failure.
1938         * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
1939         testsuite/gas/i386/x86-64-equ-bad.s,
1940         testsuite/gas/i386/x86-64-equ-bad.l: New.
1941         * testsuite/gas/i386/i386.exp: Run new tests.
1942
1943 2020-06-06  Alan Modra  <[email protected]>
1944
1945         * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
1946         * doc/c-ppc.texi: Likewise.
1947
1948 2020-06-06  Alan Modra  <[email protected]>
1949
1950         * config/tc-ppc.c: Update throughout for reloc renaming.
1951
1952 2020-06-05  Jose E. Marchesi  <[email protected]>
1953
1954         * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
1955         stringop-overflow.
1956
1957 2020-06-05  Nelson Chu  <[email protected]>
1958
1959         * config/tc-riscv.c (explicit_csr): New static boolean.
1960         Used to indicate CSR are explictly used.
1961         (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
1962         (riscv_write_out_attrs): If we already have set elf priv
1963         attributes, then generate them.  Otherwise, don't generate
1964         them when no CSR are used.
1965         * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
1966         * testsuite/gas/riscv/attribute-02.d: Likewise.
1967         * testsuite/gas/riscv/attribute-03.d: Likewise.
1968         * testsuite/gas/riscv/attribute-04.d: Likewise.
1969         * testsuite/gas/riscv/attribute-05.d: Likewise.
1970         * testsuite/gas/riscv/attribute-06.d: Likewise.
1971         * testsuite/gas/riscv/attribute-07.d: Likewise.
1972         * testsuite/gas/riscv/attribute-08.d: Likewise.
1973         * testsuite/gas/riscv/attribute-09.d: Likewise.
1974         * testsuite/gas/riscv/attribute-10.d: Likewise.
1975         * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1976         * testsuite/gas/riscv/attribute-11.s: New testcase.
1977         * testsuite/gas/riscv/attribute-11.d: New testcase.  The CSR is
1978         used, so we should output the ELF priv attributes.
1979         * testsuite/gas/riscv/attribute-12.d: New testcase.  The CSR is
1980         used, so output the priv attributes according to the -mpriv-spec.
1981         * testsuite/gas/riscv/attribute-13.d: New testcase.  The CSR isn't
1982         used, so ignore the -mpriv-spec setting.
1983
1984 2020-06-04  H.J. Lu  <[email protected]>
1985
1986         * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
1987         cgen_get_insn_value.
1988         * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
1989         endianness to cgen_get_insn_value and cgen_put_insn_value.
1990
1991 2020-06-04  Jose E. Marchesi  <[email protected]>
1992
1993         * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
1994         cgen_put_insn_value.
1995
1996 2020-06-04  Jose E. Marchesi  <[email protected]>
1997
1998         * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
1999         bpf_cgen_cpu_open.
2000         (md_assemble): Remove no longer needed hack.
2001
2002 2020-06-04  Jose E. Marchesi  <[email protected]>
2003
2004         * cgen.c (gas_cgen_finish_insn): Pass the endianness to
2005         cgen_put_insn_value.
2006         (gas_cgen_md_apply_fix): Likewise.
2007         (gas_cgen_md_apply_fix): Likewise.
2008         * config/tc-bpf.c (md_apply_fix): Pass data endianness to
2009         cgen_put_insn_value.
2010         * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
2011         cgen_put_insn_value.
2012
2013 2020-06-04  Alan Modra  <[email protected]>
2014
2015         * testsuite/config/default.exp: Remove global directive outside
2016         proc body.
2017         * testsuite/gas/mep/complex-relocs.exp: Likewise.
2018         * testsuite/gas/microblaze/relax_size.exp: Likewise.
2019         * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
2020         * testsuite/gas/mt/relocs.exp: Likewise.
2021         * testsuite/gas/rx/rx.exp: Likewise.
2022
2023 2020-06-03  Stephen Casner  <[email protected]>
2024
2025         * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
2026
2027 2020-06-02  Frédéric Pétrot  <[email protected]>
2028             Jim Wilson  <[email protected]>
2029
2030         PR 26051
2031         * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
2032         simm12(rs1).  Correct S format to use simm12(rs1).  Drop SB and B
2033         formats using simm12(rs1).  Correct SB and B to use rs1 and rs2.
2034         Move B before SB.  Move J before UJ.
2035
2036 2020-06-01  Alex Coplan  <[email protected]>
2037
2038         * write.c (relax_segment): Fix handling of negative offset when
2039         relaxing an rs_org frag.
2040         * testsuite/gas/aarch64/org-neg.d: New test.
2041         * testsuite/gas/aarch64/org-neg.l: Error output for test.
2042         * testsuite/gas/aarch64/org-neg.s: Input for test.
2043         * testsuite/gas/arm/org-neg.d: New test.
2044         * testsuite/gas/arm/org-neg.l: Error output for test.
2045         * testsuite/gas/arm/org-neg.s: Input for test.
2046
2047 2020-05-28  Stephen Casner  <[email protected]>
2048
2049         Fix unexpected failures in gas testsuite for pdp11-aout target.
2050         These are caused by the PDP11's mix of little-endian octets in
2051         shorts but shorts in big endian order for long or quad.
2052
2053         * config/tc-pdp11.c (md_number_to_chars): Implement .quad
2054         * testsuite/gas/all/gas.exp: Select alternate test scripts for
2055         pdp11, skip octa test completely.
2056         * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
2057         * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
2058         * testsuite/gas/all/cond-pdp11.l: Match different octet order.
2059
2060 2020-05-28  Alex Coplan  <[email protected]>
2061
2062         * frags.c (frag_grow): Fix comment.
2063
2064 2020-05-27  Stephen Casner  <[email protected]>
2065
2066         PR gas/26001
2067         * config/tc-pdp11.c (parse_reg): Distinguish register names from
2068         symbols that begin with a register name.
2069         * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
2070         * testsuite/gas/pdp11/pr26001.s: Likewise.
2071         * testsuite/gas/pdp11/pr26001.d: Likewise.
2072
2073 2020-05-27  Simon Cook  <[email protected]>
2074
2075         * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
2076         pointer when creating struct riscv_csr_extra.
2077
2078 2020-05-26  H.J. Lu  <[email protected]>
2079
2080         * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
2081         * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
2082         * testsuite/gas/i386/inval-avx512f.l: Updated.
2083
2084 2020-05-26  Stefan Schulze Frielinghaus  <[email protected]>
2085
2086         * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
2087         load/store instruction variants with alignment hints.
2088         * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
2089         instruction variants with alignment hints.
2090
2091 2020-05-26  H.J. Lu  <[email protected]>
2092
2093         PR gas/26044
2094         * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
2095         instead of R_XGATE_PCREL_X.
2096         (xgate_parse_operand): Replace R_XGATE_PCREL_X with
2097         BFD_RELOC_XGATE_PCREL_X.
2098
2099 2020-05-26  H.J. Lu  <[email protected]>
2100
2101         PR gas/26044
2102         * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
2103         with &fragP->fr_literal[0].
2104
2105 2020-05-26  H.J. Lu  <[email protected]>
2106
2107         PR gas/26044
2108         * config/tc-vax.c (md_estimate_size_before_relax): Replace
2109         fragP->fr_literal with &fragP->fr_literal[0].
2110         (md_convert_frag): Likewise.
2111
2112 2020-05-26  H.J. Lu  <[email protected]>
2113
2114         PR gas/26044
2115         * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
2116         with &fragP->fr_literal[0].
2117
2118 2020-05-26  H.J. Lu  <[email protected]>
2119
2120         PR gas/26044
2121         * config/tc-crx.c (getreg_image): Change argument type to int.
2122         (md_convert_frag): Replace fragP->fr_literal with
2123         &fragP->fr_literal[0].
2124
2125 2020-05-26  H.J. Lu  <[email protected]>
2126
2127         PR gas/26044
2128         * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
2129         sprintf with memmove.
2130
2131 2020-05-25  H.J. Lu  <[email protected]>
2132
2133         * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
2134         with &fragP->fr_literal[0].
2135
2136 2020-05-25  H.J. Lu  <[email protected]>
2137
2138         PR gas/26041
2139         * config/tc-cr16.c (md_assemble): Use memmove to concatenate
2140         2 overlapping strings.
2141
2142 2020-05-25  H.J. Lu  <[email protected]>
2143
2144         * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
2145         with &fragP->fr_literal[0].
2146
2147 2020-05-25  H.J. Lu  <[email protected]>
2148
2149         * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
2150         with &fragp->fr_literal[0].
2151         * config/tc-microblaze.c (md_apply_fix): Likewise.
2152         * config/tc-sh.c (md_convert_frag): Likewise.
2153
2154 2020-05-24  Jim Wilson  <[email protected]>
2155
2156         PR 26025
2157         * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
2158         asection to segT.  New locals seg and subseg.  Call subseg_set before
2159         fix_new_exp.  Call subseg_set after loop to restore original values.
2160
2161 2020-05-21  Alan Modra  <[email protected]>
2162
2163         * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
2164         throughout.
2165         * config/obj-elf.c: Likewise.
2166         * config/tc-aarch64.c: Likewise.
2167         * config/tc-arm.c: Likewise.
2168         * config/tc-m68k.c: Likewise.
2169         * config/tc-nios2.c: Likewise.
2170         * config/tc-tic30.c: Likewise.
2171         * ecoff.c: Likewise.
2172         * read.c: Likewise.
2173         * stabs.c: Likewise.
2174         * symbols.c: Likewise.
2175         * testsuite/gas/all/test-gen.c: Likewise.
2176
2177 2020-05-20  Nelson Chu  <[email protected]>
2178
2179         * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
2180         * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
2181         Static variables which are used to set the ISA extensions. You can
2182         use -march (or ELF build attributes) and -misa-spec to set them,
2183         respectively.
2184         (ext_version_hash): The hash table used to handle the extensions
2185         with versions.
2186         (init_ext_version_hash): Initialize the ext_version_hash according
2187         to riscv_ext_version_table.
2188         (riscv_get_default_ext_version): The callback function of
2189         riscv_parse_subset_t.  According to the choosed ISA spec,
2190         get the default version for the specific extension.
2191         (riscv_set_arch): Set the callback function.
2192         (enum options, struct option md_longopts): Add new option -misa-spec.
2193         (md_parse_option): Do not call riscv_set_arch for -march.  We will
2194         call it later in riscv_after_parse_args.  Call riscv_get_isa_spec_class
2195         to set default_isa_spec class.
2196         (riscv_after_parse_args): Call init_ext_version_hash to initialize the
2197         ext_version_hash, and then call riscv_set_arch to set the architecture
2198         with versions according to default_arch_with_ext.
2199         * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
2200         x extensions.
2201         * testsuite/gas/riscv/attribute-03.d: Likewise.
2202         * testsuite/gas/riscv/attribute-09.d: New testcase.  For i-ext, we
2203         already set it's version to 2p1 by march, so no need to use the default
2204         2p2 version.  For m-ext, we do not set the version by -march and ELF arch
2205         attribute, so set the default 2p0 to it.  For zicsr, it is not defined in
2206         ISA spec 2p2, so set 0p0 to it.
2207         * testsuite/gas/riscv/attribute-10.d: New testcase.  The version of
2208         zicsr is 2p0 according to ISA spec 20191213.
2209         * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
2210         (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
2211         You can set them by configure options --with-arch and
2212         --with-isa-spec, respectively.
2213         (riscv_set_default_isa_spec): New function used to set the
2214         default ISA spec.
2215         (md_parse_option): Call riscv_set_default_isa_spec rather than
2216         call riscv_get_isa_spec_class directly.
2217         (riscv_after_parse_args): If the -isa-spec is not set, then we
2218         set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
2219         calling riscv_set_default_isa_spec.
2220         * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
2221         the --with-isa-spec may be set to different ISA spec.
2222         * testsuite/gas/riscv/attribute-02.d: Likewise.
2223         * testsuite/gas/riscv/attribute-03.d: Likewise.
2224         * testsuite/gas/riscv/attribute-04.d: Likewise.
2225         * testsuite/gas/riscv/attribute-05.d: Likewise.
2226         * testsuite/gas/riscv/attribute-06.d: Likewise.
2227         * testsuite/gas/riscv/attribute-07.d: Likewise.
2228         * configure.ac: Add configure options, --with-arch and
2229         --with-isa-spec.
2230         * configure: Regenerated.
2231         * config.in: Regenerated.
2232         * config/tc-riscv.c (default_priv_spec): Static variable which is
2233         used to check if the CSR is valid for the chosen privilege spec. You
2234         can use -mpriv-spec to set it.
2235         (enum reg_class): We now get the CSR address from csr_extra_hash rather
2236         than reg_names_hash.  Therefore, move RCLASS_CSR behind RCLASS_MAX.
2237         (riscv_init_csr_hashes): Only need to initialize one hash table
2238         csr_extra_hash.
2239         (riscv_csr_class_check): Change the return type to void.  Don't check
2240         the ISA dependency if -mcsr-check isn't set.
2241         (riscv_csr_version_check): New function.  Check and find the CSR address
2242         from csr_extra_hash, according to default_priv_spec.  Report warning
2243         for the invalid CSR if -mcsr-check is set.
2244         (reg_csr_lookup_internal): Updated.
2245         (reg_lookup_internal): Likewise.
2246         (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
2247         (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
2248         (md_parse_option): Call riscv_set_default_priv_version to set
2249         default_priv_spec.
2250         (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
2251         privilege spec to the newest one.
2252         (enum riscv_csr_class, struct riscv_csr_extra): Move them to
2253         include/opcode/riscv.h.
2254         * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
2255         to check the ISA dependency for CSR, so fix the spec version by adding
2256         -mpriv-spec=1.11.
2257         * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.  There are some
2258         version warnings for the test case.
2259         * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2260         * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2261         * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
2262         * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2263         * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2264         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
2265         Check whether the CSR is valid when privilege version 1.9 is choosed.
2266         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2267         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
2268         Check whether the CSR is valid when privilege version 1.9.1 is choosed.
2269         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2270         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
2271         Check whether the CSR is valid when privilege version 1.10 is choosed.
2272         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2273         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
2274         Check whether the CSR is valid when privilege version 1.11 is choosed.
2275         * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2276         * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
2277         setting.  You can set it by configure option --with-priv-spec.
2278         (riscv_set_default_priv_spec): New function used to set the default
2279         privilege spec.
2280         (md_parse_option): Call riscv_set_default_priv_spec rather than
2281         call riscv_get_priv_spec_class directly.
2282         (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
2283         default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
2284         calling riscv_set_default_priv_spec.
2285         * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
2286         the --with-priv-spec may be set to different privilege spec.
2287         * testsuite/gas/riscv/priv-reg.d: Likewise.
2288         * configure.ac: Add configure option --with-priv-spec.
2289         * configure: Regenerated.
2290         * config.in: Regenerated.
2291         * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
2292         explicit_attr.  Set it to TRUE if any ELF attribute is found.
2293         (riscv_set_default_priv_spec): Try to set the default_priv_spec if
2294         the priv attributes are set.
2295         (md_assemble): Set the default_priv_spec according to the priv
2296         attributes when we start to assemble instruction.
2297         (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
2298         riscv_write_out_attrs.  Update the arch and priv attributes.  If we
2299         don't set the corresponding ELF attributes, then try to output the
2300         default ones.
2301         (riscv_set_public_attributes): If any ELF attribute or -march-attr
2302         options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
2303         to update the arch and priv attributes.
2304         (s_riscv_attribute): Make sure all arch and priv attributes are set
2305         before any instruction.
2306         * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
2307         ELF attribute or -march-attr is set.  If the priv attributes are not
2308         set, then try to update them by the default setting (-mpriv-spec or
2309         --with-priv-spec).
2310         * testsuite/gas/riscv/attribute-02.d: Likewise.
2311         * testsuite/gas/riscv/attribute-03.d: Likewise.
2312         * testsuite/gas/riscv/attribute-04.d: Likewise.
2313         * testsuite/gas/riscv/attribute-06.d: Likewise.
2314         * testsuite/gas/riscv/attribute-07.d: Likewise.
2315         * testsuite/gas/riscv/attribute-08.d: Likewise.
2316         * testsuite/gas/riscv/attribute-09.d: Likewise.
2317         * testsuite/gas/riscv/attribute-10.d: Likewise.
2318         * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2319         * testsuite/gas/riscv/attribute-05.d: Likewise.  Also, the priv spec
2320         set by priv attributes must be supported.
2321         * testsuite/gas/riscv/attribute-05.s: Likewise.
2322         * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise.  Updated
2323         priv attributes according to the -mpriv-spec option.
2324         * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
2325         * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
2326         * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
2327         * testsuite/gas/riscv/priv-reg.d: Removed.
2328         * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case.  Dump the
2329         CSR according to the priv spec 1.9.
2330         * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case.  Dump the
2331         CSR according to the priv spec 1.9.1.
2332         * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case.  Dump the
2333         CSR according to the priv spec 1.10.
2334         * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case.  Dump the
2335         CSR according to the priv spec 1.11.
2336         * config/tc-riscv.c (md_show_usage): Add descriptions about
2337         the new GAS options.
2338         * doc/c-riscv.texi: Likewise.
2339
2340 2020-05-19  Peter Bergner  <[email protected]>
2341
2342         * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
2343         * testsuite/gas/ppc/power9.d: Likewise.
2344         * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
2345         pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
2346         sync, wait, waitrsv>: Add tests.
2347         * testsuite/gas/ppc/power10.d: Likewise.
2348
2349 2020-05-19  Alexander Fedotov  <[email protected]>
2350
2351         PR 25992
2352         * config/tc-arm.c : Add arm_ext_v8r feature.
2353         (it_fsm_post_encode): Check arm_ext_v8r feature.
2354         (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
2355
2356 2020-05-19  Alan Modra  <[email protected]>
2357
2358         * write.c (write_contents): Use bfd_get_filename rather than
2359         accessing bfd->filename directly.  Use bfd_section_name rather
2360         than accessing section->name directly.
2361
2362 2020-05-19  Alan Modra  <[email protected]>
2363
2364         * symbols.c (local_symbol_make): Init all of lsy_flags.
2365
2366 2020-05-18  Alan Modra  <[email protected]>
2367
2368         * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
2369         before looking at add_symbol->sy_flags.
2370
2371 2020-05-18  Hongtao Liu  <[email protected]>
2372
2373         * config/tc-i386.c: Not handle lret/iret.
2374         * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
2375         * testsuite/gas/i386/lfence-ret-b.d: Ditto.
2376         * testsuite/gas/i386/lfence-ret-c.d: Ditto.
2377         * testsuite/gas/i386/lfence-ret-d.d: Ditto.
2378         * testsuite/gas/i386/lfence-ret.s: Ditto.
2379         * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
2380         * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
2381         * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
2382         * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
2383         * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
2384         * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
2385         * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
2386
2387 2020-05-15  Alan Modra  <[email protected]>
2388             Alex Coplan  <[email protected]>
2389
2390         * symbols.c (struct local_symbol): Update comment.
2391         (resolve_symbol_value): For resolved symbols equated to other
2392         symbols, verify that the referenced symbol is not a local_symbol
2393         before accessing sy_value.  Don't leave symbol loops during
2394         finalize_syms resolution.
2395         * testsuite/gas/all/assign-bad-recursive.d: New test.
2396         * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
2397         * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
2398         * testsuite/gas/all/gas.exp: Run it.
2399
2400 2020-05-14  Nick Clifton  <[email protected]>
2401
2402         * po/sv.po: Updated Swedish translation.
2403
2404 2020-05-11  Alan Modra  <[email protected]>
2405
2406         * testsuite/gas/ppc/scalarquad.d,
2407         * testsuite/gas/ppc/scalarquad.s: New test.
2408         * testsuite/gas/ppc/ppc.exp: Run it.
2409
2410 2020-05-11  Alan Modra  <[email protected]>
2411
2412         * testsuite/gas/ppc/rightmost.d,
2413         * testsuite/gas/ppc/rightmost.s: New test.
2414         * testsuite/gas/ppc/ppc.exp: Run it.
2415
2416 2020-05-11  Alan Modra  <[email protected]>
2417
2418         * testsuite/gas/ppc/xvtlsbb.d,
2419         * testsuite/gas/ppc/xvtlsbb.s: New test.
2420         * testsuite/gas/ppc/ppc.exp: Run it.
2421
2422 2020-05-11  Alan Modra  <[email protected]>
2423
2424         * testsuite/gas/ppc/stringop.d,
2425         * testsuite/gas/ppc/stringop.s: New test.
2426         * testsuite/gas/ppc/ppc.exp: Run it.
2427
2428 2020-05-11  Peter Bergner  <[email protected]>
2429
2430         * testsuite/gas/ppc/set_bool.d,
2431         * testsuite/gas/ppc/set_bool.s: New test.
2432         * testsuite/gas/ppc/ppc.exp: Run it.
2433
2434 2020-05-11  Alan Modra  <[email protected]>
2435
2436         * testsuite/gas/ppc/bitmanip.d,
2437         * testsuite/gas/ppc/bitmanip.s: New test.
2438         * testsuite/gas/ppc/ppc.exp: Run it.
2439
2440 2020-05-11  Alan Modra  <[email protected]>
2441
2442         * testsuite/gas/ppc/genpcv.d,
2443         * testsuite/gas/ppc/genpcv.s: New test.
2444         * testsuite/gas/ppc/ppc.exp: Run it.
2445
2446 2020-05-11  Alan Modra  <[email protected]>
2447
2448         * testsuite/gas/ppc/maskmanip.d,
2449         * testsuite/gas/ppc/maskmanip.s: New test.
2450         * testsuite/gas/ppc/ppc.exp: Run it.
2451
2452 2020-05-11  Alan Modra  <[email protected]>
2453             Peter Bergner  <[email protected]>
2454
2455         * config/tc-ppc.c (pre_defined_registers): Add accumulators.
2456         (md_assemble): Check acc specified in correct operand.
2457         * testsuite/gas/ppc/outerprod.d,
2458         * testsuite/gas/ppc/outerprod.s,
2459         * testsuite/gas/ppc/vsx4.d,
2460         * testsuite/gas/ppc/vsx4.s: New tests.
2461         * testsuite/gas/ppc/ppc.exp: Run them.
2462
2463 2020-05-11  Alan Modra  <[email protected]>
2464
2465         * testsuite/gas/ppc/simd_perm.d,
2466         * testsuite/gas/ppc/simd_perm.s: New test.
2467         * testsuite/gas/ppc/ppc.exp: Run it.
2468
2469 2020-05-11  Alan Modra  <[email protected]>
2470
2471         * testsuite/gas/ppc/int128.d,
2472         * testsuite/gas/ppc/int128.s: New test.
2473         * testsuite/gas/ppc/ppc.exp: Run it.
2474
2475 2020-05-11  Alan Modra  <[email protected]>
2476
2477         * testsuite/gas/ppc/vsx_32byte.d,
2478         * testsuite/gas/ppc/vsx_32byte.s: New test.
2479         * testsuite/gas/ppc/ppc.exp: Run it.
2480
2481 2020-05-11  Alan Modra  <[email protected]>
2482
2483         * testsuite/gas/ppc/vec_mul.s,
2484         * testsuite/gas/ppc/vec_mul.d: New test.
2485         * testsuite/gas/ppc/ppc.exp: Run it.
2486
2487 2020-05-11  Peter Bergner  <[email protected]>
2488
2489         * testsuite/gas/ppc/byte_rev.d,
2490         * testsuite/gas/ppc/byte_rev.s: New test.
2491         * testsuite/gas/ppc/ppc.exp: Run it.
2492
2493 2020-05-11  Peter Bergner  <[email protected]>
2494
2495         * testsuite/gas/ppc/power10.d: Add paste. tests.
2496         * testsuite/gas/ppc/power10.s: Likewise.
2497
2498 2020-05-11  Peter Bergner  <[email protected]>
2499
2500         * testsuite/gas/ppc/power10.s: New test.
2501         * testsuite/gas/ppc/power10.d: Likewise.
2502         * testsuite/gas/ppc/ppc.exp: Run it.
2503
2504 2020-05-11  Alan Modra  <[email protected]>
2505
2506         * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
2507         renaming.
2508         * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
2509         place of -mfuture/-Mfuture.
2510         * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
2511         * testsuite/gas/ppc/prefix-reloc.d: Likewise.
2512
2513 2020-05-06  Nick Clifton  <[email protected]>
2514
2515         * po/sv.po: Updated Swedish translation.
2516
2517 2020-05-06  Nick Clifton  <[email protected]>
2518
2519         PR 25927
2520         * doc/as.texi (Preprocessing): Replace cross reference to not
2521         existant document with a URL to the equivalent page in the GCC
2522         manual.
2523
2524 2020-05-05  Nick Clifton  <[email protected]>
2525
2526         * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
2527         construction of a DWARF-5 directory name table.
2528         * testsuite/gas/elf/pr25917.d: Update expected output.
2529
2530 2020-05-05  Gunther Nikl <[email protected]>
2531
2532         * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
2533         (md_parse_option): Remove initialization of elf_flags.
2534
2535 2020-05-04  Andre Vieira  <[email protected]>
2536
2537         PR gas/25863
2538         * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
2539         * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
2540         * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
2541
2542 2020-05-04  Nick Clifton  <[email protected]>
2543
2544         PR 25917
2545         * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
2546         table's existence before looking at its entries.
2547         Also do not emit a default directory entry if there are no
2548         directories in use.
2549
2550         * testsuite/gas/elf/pr25917.s: New test source file.
2551         * testsuite/gas/elf/pr25917.d: New test driver.
2552         * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
2553
2554 2020-04-30  Alex Coplan  <[email protected]>
2555
2556         * config/tc-aarch64.c (fix_insn): Implement for
2557         AARCH64_OPND_UNDEFINED.
2558         (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
2559         * testsuite/gas/aarch64/udf.s: New.
2560         * testsuite/gas/aarch64/udf.d: New.
2561         * testsuite/gas/aarch64/udf-invalid.s: New.
2562         * testsuite/gas/aarch64/udf-invalid.l: New.
2563         * testsuite/gas/aarch64/udf-invalid.d: New.
2564
2565 2020-04-30  Yoshinori Sato <[email protected]>
2566
2567         * config/tc-rx.c (elf_flags): Reset default value.
2568         (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
2569
2570 2020-04-29  Max Filippov  <[email protected]>
2571
2572         * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
2573         if it's not defined.
2574         (microarch_earliest): New static variable.
2575         (xg_translate_idioms): Translate "simcall" to "simcall 0" when
2576         simcall opcode has mandatory parameter.
2577         (xg_init_global_config): Initialize microarch_earliest.
2578
2579 2020-04-29  Nick Clifton  <[email protected]>
2580
2581         PR 22699
2582         * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
2583         IMM0_8S and add support for IMM0_8U.
2584         * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
2585         unsigned 8-bit immediate.
2586         * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
2587         * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
2588
2589 2020-04-27  Tamar Christina  <[email protected]>
2590
2591         * NEWS: Add news entry for big-obj.
2592         * config/tc-i386.c (i386_target_format): Support new format.
2593         * doc/c-i386.texi: Add i386 support.
2594         * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
2595         * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
2596
2597 2020-04-27  Nick Clifton  <[email protected]>
2598
2599         PR 25878
2600         * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
2601         (assign_file_to_slot): New function.  Fills in an entry in the
2602         files table.
2603         (allocate_filenum): Use new function.
2604         (allocate_filename_to_slot): Use new function.  If the specified
2605         slot entry is already in use, but was chosen automatically then
2606         reassign the automatic entry.
2607
2608 2020-04-26  Hongtao Liu  <[email protected]
2609
2610         * config/tc-i386.c (lfence_before_ret_shl): New member.
2611         (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
2612         for Anysize insns.
2613         (insert_after_load): Issue warning for REP CMPS/SCAS.
2614         (insert_before_before): Handle iret, Handle
2615         -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
2616         (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
2617         -mlfence-before-ret=[none/not/or/shl/yes].
2618         Enable -mlfence-before-ret=shl when
2619         -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
2620         (md_show_usage): Ditto.
2621         * doc/c-i386.texi: Ditto.
2622         * testsuite/gas/i386/i386.exp: Add new testcases.
2623         * testsuite/gas/i386/lfence-load-b.d: New.
2624         * testsuite/gas/i386/lfence-load-b.e: New.
2625         * testsuite/gas/i386/lfence-load.d: Modified.
2626         * testsuite/gas/i386/lfence-load.e: New.
2627         * testsuite/gas/i386/lfence-load.s: Modified.
2628         * testsuite/gas/i386/lfence-ret-a.d: Modified.
2629         * testsuite/gas/i386/lfence-ret-b.d: Modified.
2630         * testsuite/gas/i386/lfence-ret-c.d: New.
2631         * testsuite/gas/i386/lfence-ret-d.d: New.
2632         * testsuite/gas/i386/lfence-ret.s: Modified.
2633         * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
2634         * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
2635         * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
2636         * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
2637         * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
2638         * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
2639         * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
2640         * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
2641         * testsuite/gas/i386/x86-64-lfence-ret.e: New.
2642         * testsuite/gas/i386/x86-64-lfence-ret.s: New.
2643
2644 2020-04-22  Max Filippov  <[email protected]>
2645
2646         PR ld/25861
2647         * config/tc-xtensa.c (md_apply_fix): Replace
2648         BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
2649         BFD_RELOC_XTENSA_PDIFF{8,16,32} and
2650         BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
2651         * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
2652         with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
2653
2654 2020-04-22  Alan Modra  <[email protected]>
2655
2656         * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
2657         symbol for ".symver .. remove".
2658         * doc/as.texi (.symver): Update.
2659         * testsuite/gas/symver/symver11.s: Make foo weak.
2660         * testsuite/gas/symver/symver11.d: Expect an error.
2661         * testsuite/gas/symver/symver7.d: Allow other random symbols.
2662
2663 2020-04-21  H.J. Lu  <[email protected]>
2664
2665         * testsuite/gas/symver/symver11.s: Add ".balign 8".
2666
2667 2020-04-21  Andreas Schwab  <[email protected]>
2668
2669         PR 25848
2670         * testsuite/gas/m68k/operands.s: Add tests for cmpi.
2671         * testsuite/gas/m68k/operands.d: Update.
2672         * testsuite/gas/m68k/op68000.d: Update for new error messages.
2673
2674 2020-04-21  Tamar Christina  <[email protected]>
2675
2676         PR binutils/24753
2677         * testsuite/gas/arm/pr24753.d: New test.
2678         * testsuite/gas/arm/pr24753.s: New test.
2679
2680 2020-04-21  H.J. Lu  <[email protected]>
2681
2682         PR gas/23840
2683         PR gas/25295
2684         * NEWS: Mention .symver extension.
2685         * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
2686         function.
2687         (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
2688         add a version name.  Add local, hidden and remove visibility
2689         support.
2690         (elf_frob_symbol): Handle the list of version names.  Update the
2691         original symbol to local, hidden or remove it from the symbol
2692         table.
2693         (elf_frob_file_before_adjust): Handle the list of version names.
2694         * config/obj-elf.h (elf_visibility): New.
2695         (elf_versioned_name_list): Likewise.
2696         (elf_obj_sy): Change local to bitfield. Add rename, bad_version
2697         and visibility.  Change versioned_name pointer to struct
2698         elf_versioned_name_list.
2699         * doc/as.texi: Update .symver directive.
2700         * testsuite/gas/symver/symver.exp: Run all *.d tests.  Add more
2701         error checking tests.
2702         * testsuite/gas/symver/symver6.d: New file.
2703         * testsuite/gas/symver/symver7.d: Likewise.
2704         * testsuite/gas/symver/symver7.s: Likewise.
2705         * testsuite/gas/symver/symver8.d: Likewise.
2706         * testsuite/gas/symver/symver8.s: Likewise.
2707         * testsuite/gas/symver/symver9.s: Likewise.
2708         * testsuite/gas/symver/symver9a.d: Likewise.
2709         * testsuite/gas/symver/symver9b.d: Likewise.
2710         * testsuite/gas/symver/symver10.s: Likewise.
2711         * testsuite/gas/symver/symver10a.d: Likewise.
2712         * testsuite/gas/symver/symver10b.d: Likewise.
2713         * testsuite/gas/symver/symver11.d: Likewise.
2714         * testsuite/gas/symver/symver11.s: Likewise.
2715         * testsuite/gas/symver/symver12.d: Likewise.
2716         * testsuite/gas/symver/symver12.s: Likewise.
2717         * testsuite/gas/symver/symver13.d: Likewise.
2718         * testsuite/gas/symver/symver13.s: Likewise.
2719         * testsuite/gas/symver/symver14.d: Likewise.
2720         * testsuite/gas/symver/symver14.l: Likewise.
2721         * testsuite/gas/symver/symver15.d: Likewise.
2722         * testsuite/gas/symver/symver15.l: Likewise.
2723         * testsuite/gas/symver/symver6.l: Removed.
2724         * testsuite/gas/symver/symver6.s: Updated.
2725
2726 2020-04-20  Sudakshina Das  <[email protected]>
2727
2728         * config/tc-aarch64.c (parse_barrier_psb): Update error messages
2729         to include TSB.
2730         * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
2731         * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
2732         * testsuite/gas/aarch64/system.d: Update.
2733
2734 2020-04-20  Sudakshina Das  <[email protected]>
2735
2736         * testsuite/gas/aarch64/bti.d: Update -march option.
2737         * testsuite/gas/aarch64/illegal-bti.d: Remove.
2738         * testsuite/gas/aarch64/illegal-bti.l: Remove.
2739         * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
2740         * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
2741
2742 2020-04-17  Alan Modra  <[email protected]>
2743
2744         * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
2745
2746 2020-04-16  Gagan Singh Sidhu  <[email protected]>
2747             Nick Clifton  <[email protected]>
2748
2749         PR 25803
2750         * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
2751         targets.
2752         * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
2753         for the type-2 test.
2754         * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
2755         targets running this test.
2756
2757 2020-02-16  David Faust  <[email protected]>
2758
2759         * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
2760         * testsuite/gas/bpf/jump32.s: New file.
2761         * testsuite/gas/bpf/jump32.d: Likewise.
2762
2763 2020-04-08  H.J. Lu  <[email protected]>
2764
2765         * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
2766         documentation.
2767
2768 2020-04-08  Gunther Nikl  <[email protected]>
2769
2770         * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
2771         (md_pcrel_from): Remove prototytpe.
2772         * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
2773         define.
2774         (md_pcrel_from_section): Remove duplicate prototype.
2775         * tc.h (md_pcrel_from_section): Add prototype.
2776         * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
2777         * config/tc-arc.h (md_pcrel_from_section): Likewise.
2778         * config/tc-arm.h (md_pcrel_from_section): Likewise.
2779         * config/tc-avr.h (md_pcrel_from_section): Likewise.
2780         * config/tc-bfin.h (md_pcrel_from_section): Likewise.
2781         * config/tc-bpf.h (md_pcrel_from_section): Likewise.
2782         * config/tc-csky.h (md_pcrel_from_section): Likewise.
2783         * config/tc-d10v.h (md_pcrel_from_section): Likewise.
2784         * config/tc-d30v.h (md_pcrel_from_section): Likewise.
2785         * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
2786         * config/tc-fr30.h (md_pcrel_from_section): Likewise.
2787         * config/tc-frv.h (md_pcrel_from_section): Likewise.
2788         * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
2789         * config/tc-lm32.h (md_pcrel_from_section): Likewise.
2790         * config/tc-m32c.h (md_pcrel_from_section): Likewise.
2791         * config/tc-m32r.h (md_pcrel_from_section): Likewise.
2792         * config/tc-mcore.h (md_pcrel_from_section): Likewise.
2793         * config/tc-mep.h (md_pcrel_from_section): Likewise.
2794         * config/tc-metag.h (md_pcrel_from_section): Likewise.
2795         * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
2796         * config/tc-mmix.h (md_pcrel_from_section): Likewise.
2797         * config/tc-moxie.h (md_pcrel_from_section): Likewise.
2798         * config/tc-msp430.h (md_pcrel_from_section): Likewise.
2799         * config/tc-mt.h (md_pcrel_from_section): Likewise.
2800         * config/tc-or1k.h (md_pcrel_from_section): Likewise.
2801         * config/tc-ppc.h (md_pcrel_from_section): Likewise.
2802         * config/tc-rl78.h (md_pcrel_from_section): Likewise.
2803         * config/tc-rx.h (md_pcrel_from_section): Likewise.
2804         * config/tc-s390.h (md_pcrel_from_section): Likewise.
2805         * config/tc-sh.h (md_pcrel_from_section): Likewise.
2806         * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
2807         * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
2808         * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
2809         md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
2810         md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
2811         md_apply_fix3): Delete prototypes.
2812
2813 2020-04-07  H.J. Lu  <[email protected]>
2814
2815         * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
2816         instructions.
2817
2818 2020-04-07  H.J. Lu  <[email protected]>
2819
2820         * doc/c-z80.texi: Fix @xref warnings.
2821
2822 2020-04-07  Lili Cui  <[email protected]>
2823
2824         * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
2825         (cpu_noarch): Likewise.
2826         * doc/c-i386.texi: Document TSXLDTRK.
2827         * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
2828         * testsuite/gas/i386/tsxldtrk.d: Likewise.
2829         * testsuite/gas/i386/tsxldtrk.s: Likewise.
2830         * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2831
2832 2020-04-02  Lili Cui  <[email protected]>
2833
2834         * config/tc-i386.c (cpu_arch): Add .serialize.
2835         (cpu_noarch): Likewise.
2836         * doc/c-i386.texi: Document serialize.
2837         * testsuite/gas/i386/i386.exp: Run serialize tests
2838         * testsuite/gas/i386/serialize.d: Likewise.
2839         * testsuite/gas/i386/x86-64-serialize.d: Likewise.
2840         * testsuite/gas/i386/serialize.s: Likewise.
2841
2842 2020-04-02  Rainer Orth  <[email protected]>
2843
2844         * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
2845         * testsuite/gas/elf/section12b.d: Likewise.
2846         * testsuite/gas/elf/section16a.d: Likewise.
2847         * testsuite/gas/elf/section16b.d: Likewise.
2848
2849 2020-04-02  Gunther Nikl  <[email protected]>
2850
2851         * config/tc-m68k.c (m68k_ip): Fix range check for index register
2852         with a suppressed address register.
2853
2854 2020-04-01  H.J. Lu  <[email protected]>
2855
2856         PR gas/25756
2857         * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
2858         * testsuite/gas/i386/localpic.s: Add a test for relocation
2859         against local absolute symbol.
2860         * testsuite/gas/i386/x86-64-localpic.s: Likewise.
2861         * testsuite/gas/i386/localpic.d: Updated.
2862         * testsuite/gas/i386/x86-64-localpic.d: Likewise.
2863         * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
2864
2865 2020-04-01  Rainer Orth  <[email protected]>
2866
2867         PR gas/25732
2868         * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
2869         * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
2870         * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
2871         testsuite/gas/i386/x86-64-jump.d.
2872         * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
2873         Incorporate changes to
2874         gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
2875         * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
2876         changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
2877         * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
2878         * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
2879
2880 2020-03-31  Maciej W. Rozycki  <[email protected]>
2881
2882         PR 25611
2883         PR 25614
2884         * dwarf2dbg.c: Do not include "bignum.h".
2885
2886 2020-03-30  Nelson Chu  <[email protected]>
2887
2888         * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
2889         * testsuite/gas/riscv/alias-csr.s: Likewise.
2890         * testsuite/gas/riscv/no-aliases-csr.d: Move this
2891         to priv-reg-pseudo-noalias.
2892         * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
2893         * testsuite/gas/riscv/bad-csr.l: Likewise.
2894         * testsuite/gas/riscv/bad-csr.s: Likewise.
2895         * testsuite/gas/riscv/satp.d: Removed.  Already included in priv-reg.
2896         * testsuite/gas/riscv/satp.s: Likewise.
2897         * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
2898         csr instruction, including alias-csr testcase.
2899         * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
2900         * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
2901         pseudo instruction with objdump -Mno-aliases.
2902         * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
2903         * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
2904         * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
2905         * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
2906         * testsuite/gas/riscv/priv-reg.s: Likewise.
2907         * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2908         * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
2909         * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
2910
2911 2020-03-25  J.W. Jagersma  <[email protected]>
2912
2913         * config/obj-coff.c (obj_coff_section): Set the bss flag on
2914         sections with the "b" attribute.
2915
2916 2020-03-22  Alan Modra  <[email protected]>
2917
2918         * testsuite/gas/s12z/truncated.d: Update expected output.
2919
2920 2020-03-17  Sergey Belyashov  <[email protected]>
2921
2922         PR 25690
2923         * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
2924         * doc/c-z80.texi: Update documentation.
2925
2926 2020-03-17  Sergey Belyashov  <[email protected]>
2927
2928         PR 25641
2929         PR 25668
2930         PR 25633
2931         Fix disassembling ED+A4/AC/B4/BC opcodes.
2932         Fix assembling lines containing colonless label and instruction
2933         with first operand inside parentheses.
2934         Fix registration of unsupported by target CPU registers.
2935         * config/tc-z80.c: See above.
2936         * config/tc-z80.h: See above.
2937         * testsuite/gas/z80/colonless.d: Update test.
2938         * testsuite/gas/z80/colonless.s: Likewise.
2939         * testsuite/gas/z80/ez80_adl_all.d: Likewise.
2940         * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
2941         * testsuite/gas/z80/ez80_z80_all.d: Likewise.
2942         * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
2943         * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
2944         * testsuite/gas/z80/unsup_regs.s: Likewise.
2945         * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
2946         * testsuite/gas/z80/z80.exp: Likewise.
2947         * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
2948         * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
2949         * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
2950
2951 2020-03-13  Andre Vieira  <[email protected]>
2952
2953         PR 25660
2954         *  config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
2955         (parse_operands): Handle new operand codes.
2956         (do_neon_dyadic_long): Make shape check accept the scalar variants.
2957         (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
2958         * testsuite/gas/arm/mve-vaddsub-it.s: New test.
2959         * testsuite/gas/arm/mve-vaddsub-it.d: New test.
2960         * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
2961         * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
2962         * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
2963         * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
2964
2965 2020-03-11  H.J. Lu  <[email protected]>
2966
2967         * NEWS: Mention x86 assembler options for CVE-2020-0551.
2968
2969 2020-03-11  H.J. Lu  <[email protected]>
2970
2971         * testsuite/gas/i386/i386.exp: Run new tests.
2972         * testsuite/gas/i386/lfence-byte.d: New file.
2973         * testsuite/gas/i386/lfence-byte.e: Likewise.
2974         * testsuite/gas/i386/lfence-byte.s: Likewise.
2975         * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
2976         * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
2977         * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
2978         * testsuite/gas/i386/lfence-indbr.e: Likewise.
2979         * testsuite/gas/i386/lfence-indbr.s: Likewise.
2980         * testsuite/gas/i386/lfence-load.d: Likewise.
2981         * testsuite/gas/i386/lfence-load.s: Likewise.
2982         * testsuite/gas/i386/lfence-ret-a.d: Likewise.
2983         * testsuite/gas/i386/lfence-ret-b.d: Likewise.
2984         * testsuite/gas/i386/lfence-ret.s: Likewise.
2985         * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
2986         * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
2987         * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
2988         * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
2989         * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
2990         * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
2991         * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
2992         * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
2993         * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
2994         * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
2995         * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
2996         * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
2997
2998 2020-03-11  H.J. Lu  <[email protected]>
2999
3000         * config/tc-i386.c (lfence_after_load): New.
3001         (lfence_before_indirect_branch_kind): New.
3002         (lfence_before_indirect_branch): New.
3003         (lfence_before_ret_kind): New.
3004         (lfence_before_ret): New.
3005         (last_insn): New.
3006         (load_insn_p): New.
3007         (insert_lfence_after): New.
3008         (insert_lfence_before): New.
3009         (md_assemble): Call insert_lfence_before and insert_lfence_after.
3010         Set last_insn.
3011         (OPTION_MLFENCE_AFTER_LOAD): New.
3012         (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
3013         (OPTION_MLFENCE_BEFORE_RET): New.
3014         (md_longopts): Add -mlfence-after-load=,
3015         -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3016         (md_parse_option): Handle -mlfence-after-load=,
3017         -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3018         (md_show_usage): Display -mlfence-after-load=,
3019         -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3020         (i386_cons_align): New.
3021         * config/tc-i386.h (i386_cons_align): New.
3022         (md_cons_align): New.
3023         * doc/c-i386.texi: Document -mlfence-after-load=,
3024         -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3025
3026 2020-03-11  Nick Clifton  <[email protected]>
3027
3028         PR 25611
3029         PR 25614
3030         * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
3031         (DWARF2_FILE_SIZE_NAME): Default to -1.
3032         (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
3033         whichever is higher.
3034         (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
3035         (NUM_MD5_BYTES): Define.
3036         (struct file entry): Add md5 field.
3037         (get_filenum): Delete and replace with...
3038         (get_basename): New function.
3039         (get_directory_table_entry): New function.
3040         (allocate_filenum): New function.
3041         (allocate_filename_to_slot): New function.
3042         (dwarf2_where): Use new functions.
3043         (dwarf2_directive_filename): Add support for extended .file
3044         pseudo-op.
3045         (dwarf2_directive_loc): Allow the use of file number zero with
3046         DWARF 5 or higher.
3047         (out_file_list): Rename to...
3048         (out_dir_and_file_list): Add DWARF 5 support.
3049         (out_debug_line): Emit extra values into the section header for
3050         DWARF 5.
3051         (out_debug_str): Allow for file 0 to be used with DWARF 5.
3052         * doc/as.texi (.file): Update the description of this pseudo-op.
3053         * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
3054         * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
3055         * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
3056         * NEWS: Mention the new feature.
3057
3058 2020-03-10  Alan Modra  <[email protected]>
3059
3060         * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
3061         to avoid signed overflow.
3062         * config/tc-mcore.c (md_assemble): Likewise.
3063         * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
3064         * config/tc-nds32.c (SET_ADDEND): Likewise.
3065         * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
3066
3067 2020-03-09  Jan Beulich  <[email protected]>
3068
3069         * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
3070         * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
3071         testsuite/gas/i386/avx-intel.d: Adjust expectations.
3072
3073 2020-03-07  Alan Modra  <[email protected]>
3074
3075         * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
3076         first column.
3077
3078 2020-03-06  Nick Clifton  <[email protected]>
3079
3080         PR 25614
3081         * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
3082         0 if the dwarf_level is 5 or more.  Complain if a filename follows
3083         a file 0.
3084         * testsuite/gas/elf/dwarf-5-file0.s: New test.
3085         * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
3086         * testsuite/gas/elf/elf.exp: Run the new test.
3087
3088         PR 25612
3089         * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
3090         * doc/as.texi: Fix another typo.
3091
3092 2020-03-06  Nick Clifton  <[email protected]>
3093
3094         PR 25612
3095         * as.c (dwarf_level): Define.
3096         (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
3097         (parse_args): Add support for the new options.
3098         as.h (dwarf_level): Prototype.
3099         * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
3100         value.
3101         * config/tc-ia64.h (DWARF2_VERISION): Update definition.
3102         (DWARF2_LINE_VERSION): Remove definition.
3103         * doc/as.texi: Document the new options.
3104
3105 2020-03-06  Nick Clifton  <[email protected]>
3106
3107         PR 25572
3108         * as.c (main): Allow matching input and outputs when they are
3109         not regular files.
3110
3111 2020-03-06  Jan Beulich  <[email protected]>
3112
3113         * config/tc-i386.c (match_mem_size): Generalize broadcast special
3114         casing.
3115         (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
3116         one of byte/word/dword/qword is set alongside a SIMD register in
3117         a template's operand.
3118
3119 2020-03-06  Jan Beulich  <[email protected]>
3120
3121         * config/tc-i386.c (match_template): Extend code in logic
3122         rejecting certain suffixes in certain modes to also cover mask
3123         register use and VecSIB. Drop special casing of broadcast. Skip
3124         immediates in the check.
3125
3126 2020-03-06  Jan Beulich  <[email protected]>
3127
3128         * config/tc-i386.c (match_template): Fold duplicate code in
3129         logic rejecting certain suffixes in certain modes. Drop
3130         pointless "else".
3131
3132 2020-03-06  Jan Beulich  <[email protected]>
3133
3134         * config/tc-i386.c (process_suffix): Exlucde !vexw insns
3135         alongside !norex64 ones.
3136         * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
3137         with both 32- and 64-bit GPR operands.
3138         * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
3139         32- and 64-bit GPR operands.
3140         * testsuite/gas/i386/x86-64-avx512bw-intel.d,
3141         testsuite/gas/i386/x86-64-avx512bw.d,
3142         testsuite/gas/i386/x86-64-avx512f-intel.d,
3143         testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
3144
3145 2020-03-06  Jan Beulich  <[email protected]>
3146
3147         * config/tc-i386.c (md_assemble): Drop use of rex64.
3148         (process_suffix): For REX.W for 64-bit CRC32.
3149
3150 2020-03-06  Jan Beulich  <[email protected]>
3151
3152         * config/tc-i386.c (i386_addressing_mode): For 32-bit
3153         addressing for MPX insns without base/index.
3154         * testsuite/gas/i386/mpx-16bit.s,
3155         * testsuite/gas/i386/mpx-16bit.d: New.
3156         * testsuite/gas/i386/i386.exp: Run new test.
3157
3158 2020-03-06  Jan Beulich  <[email protected]>
3159
3160         * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
3161         testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
3162         testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
3163         testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
3164         * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
3165         as well as a BSWAP one.
3166         * testsuite/gas/i386/rdpid.s: Add 16-bit case.
3167         * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
3168         * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
3169         testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
3170         testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
3171         testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
3172         testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
3173         testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
3174         testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
3175         testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
3176         testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
3177         testsuite/gas/i386/vmx.d: Adjust expectations.
3178
3179 2020-03-06  Jan Beulich  <[email protected]>
3180
3181         * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
3182         from having their operands swapped.
3183         * testsuite/gas/i386/waitpkg.s,
3184         testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
3185         3-operand cases as well as testing of 16-bit code generation.
3186         * testsuite/gas/i386/waitpkg.d,
3187         testsuite/gas/i386/waitpkg-intel.d,
3188         testsuite/gas/i386/x86-64-waitpkg.d,
3189         testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
3190
3191 2020-03-04  Nelson Chu  <[email protected]>
3192
3193         * config/tc-riscv.c (percent_op_utype): Support the modifier
3194         %got_pcrel_hi.
3195         * doc/c-riscv.texi: Add documentation.
3196         * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
3197         modifier %got_pcrel_hi.
3198         * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
3199         * testsuite/gas/riscv/relax-reloc.d: Likewise.
3200         * testsuite/gas/riscv/relax-reloc.s: Likewise.
3201
3202         * doc/c-riscv.texi (relocation modifiers): Add documentation.
3203         (RISC-V-Formats): Update the section name from "Instruction Formats"
3204         to "RISC-V Instruction Formats".
3205
3206 2020-03-04  Alexandre Oliva  <[email protected]>
3207
3208         * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
3209         detected in a section which does not have at least 4 byte
3210         alignment.
3211         * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
3212         * testsuite/gas/arm/ldr-t.s: Likewise.
3213         * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
3214         * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
3215         disassembly, ignoring any NOPs that may have been inserted because
3216         of section alignment.
3217         * testsuite/gas/arm/ldr-t.d: Likewise.
3218
3219 2020-03-04  Jan Beulich  <[email protected]>
3220
3221         * config/tc-i386.c (cpu_arch): Add .sev_es entry.
3222         * doc/c-i386.texi: Mention sev_es.
3223         * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
3224         * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
3225         expectations.
3226         * testsuite/gas/i386/arch-13-znver1.d,
3227         testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
3228
3229 2020-03-03  H.J. Lu  <[email protected]>
3230
3231         * config/tc-i386.c (match_template): Replace ignoresize and
3232         defaultsize with mnemonicsize.
3233         (process_suffix): Likewise.
3234
3235 2020-03-03  Sergey Belyashov  <[email protected]>
3236
3237         PR 25627
3238         * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
3239         instruction LD IY,(HL).
3240         * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
3241         * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
3242         * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
3243         * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
3244
3245 2020-03-03  H.J. Lu  <[email protected]>
3246
3247         PR gas/25622
3248         * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
3249         x86-64-default-suffix-avx.
3250         * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
3251         vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
3252         * testsuite/gas/i386/noreg64.d: Updated.
3253         * testsuite/gas/i386/noreg64.l: Likewise.
3254         * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
3255         * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
3256         * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
3257
3258 2020-03-03  Sergey Belyashov  <[email protected]>
3259
3260         PR 25604
3261         * config/tc-z80.c (contains_register): Prevent an illegal memory
3262         access when checking an expression for a register name.
3263
3264 2020-03-03  Alan Modra  <[email protected]>
3265
3266         * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
3267         support.
3268
3269 2020-03-02  Alan Modra  <[email protected]>
3270
3271         * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
3272         * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
3273         and .sbss sections.
3274         * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
3275         (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
3276         (s3_s_score_lcomm): Likewise.
3277         * config/tc-score7.c: Similarly.
3278         * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
3279
3280 2020-02-28  YunQiang Su  <[email protected]>
3281
3282         PR gas/25539
3283         * config/tc-mips.c (fix_loongson3_llsc): Compare label value
3284         to handle multi-labels.
3285         (has_label_name): New.
3286
3287 2020-02-26  Matthew Malcomson  <[email protected]>
3288
3289         * config/tc-arm.c (enum pred_instruction_type): Remove
3290         NEUTRAL_IT_NO_VPT_INSN predication type.
3291         (cxn_handle_predication): Modify to require condition suffixes.
3292         (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
3293         * testsuite/gas/arm/cde-scalar.s: Update test.
3294         * testsuite/gas/arm/cde-warnings.l: Update test.
3295         * testsuite/gas/arm/cde-warnings.s: Update test.
3296
3297 2020-02-26  Alan Modra  <[email protected]>
3298
3299         * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
3300         N_() on empty string.
3301
3302 2020-02-26  Alan Modra  <[email protected]>
3303
3304         * read.c (read_a_source_file): Call strncpy with length one
3305         less than size of original_case_string.
3306
3307 2020-02-26  Alan Modra  <[email protected]>
3308
3309         * config/obj-elf.c: Indent labels correctly.
3310         * config/obj-macho.c: Likewise.
3311         * config/tc-aarch64.c: Likewise.
3312         * config/tc-alpha.c: Likewise.
3313         * config/tc-arm.c: Likewise.
3314         * config/tc-cr16.c: Likewise.
3315         * config/tc-crx.c: Likewise.
3316         * config/tc-frv.c: Likewise.
3317         * config/tc-i386-intel.c: Likewise.
3318         * config/tc-i386.c: Likewise.
3319         * config/tc-ia64.c: Likewise.
3320         * config/tc-mn10200.c: Likewise.
3321         * config/tc-mn10300.c: Likewise.
3322         * config/tc-nds32.c: Likewise.
3323         * config/tc-riscv.c: Likewise.
3324         * config/tc-s12z.c: Likewise.
3325         * config/tc-xtensa.c: Likewise.
3326         * config/tc-z80.c: Likewise.
3327         * read.c: Likewise.
3328         * symbols.c: Likewise.
3329         * write.c: Likewise.
3330
3331 2020-02-20  Nelson Chu  <[email protected]>
3332
3333         * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
3334         we are assembling instruction with CSR.  Call riscv_csr_read_only_check
3335         after parsing all arguments.
3336         (enum csr_insn_type): New enum is used to classify the CSR instruction.
3337         (riscv_csr_insn_type, riscv_csr_read_only_check): New functions.  These
3338         are used to check if we write a read-only CSR by the CSR instruction.
3339         * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase.  Test
3340         all CSR for the read-only CSR checking.
3341         * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
3342         * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
3343         * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase.  Test
3344         all CSR instructions for the read-only CSR checking.
3345         * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
3346         * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
3347
3348         * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
3349         (riscv_opts): Initialize it.
3350         (reg_lookup_internal): Check the `riscv_opts.csr_check`
3351         before doing the CSR checking.
3352         (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
3353         (md_longopts): Add mcsr-check and mno-csr-check.
3354         (md_parse_option): Handle new enum option values.
3355         (s_riscv_option): Handle new long options.
3356         * doc/c-riscv.texi: Add description for the new .option and assembler
3357         options.
3358         * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
3359         the CSR checking.
3360         * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
3361
3362         * config/tc-riscv.c (csr_extra_hash): New.
3363         (enum riscv_csr_class): New enum.  Used to decide
3364         whether or not this CSR is legal in the current ISA string.
3365         (struct riscv_csr_extra): New structure to hold all extra information
3366         of CSR.
3367         (riscv_init_csr_hashes): New.  According to the DECLARE_CSR and
3368         DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
3369         Call hash_reg_name to insert CSR address into reg_names_hash.
3370         (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
3371         Decide whether the CSR is valid according to the csr_extra_hash.
3372         (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
3373         (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
3374         not a boolean.  This is same as riscv_init_csr_hash, so keep the
3375         consistent usage.
3376         (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
3377         * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
3378         * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
3379         * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase.  The source
3380         file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
3381         f-ext CSR are not allowed.
3382         * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
3383         * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase.  The
3384         source file is `priv-reg.s`, and the ISA is rv64if, so the
3385         rv32-only CSR are not allowed.
3386         * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3387
3388 2020-02-21  Alan Modra  <[email protected]>
3389
3390         * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
3391         (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
3392
3393 2020-02-21  Alan Modra  <[email protected]>
3394
3395         PR 25569
3396         * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
3397         on section size adjustment, instead perform another write if
3398         exec header size is larger than section size.
3399
3400 2020-02-19  Nelson Chu  <[email protected]>
3401
3402         * doc/c-riscv.texi: Add the doc entries for -march-attr/
3403         -mno-arch-attr command line options.
3404
3405 2020-02-19  Nelson Chu  <[email protected]>
3406
3407         * testsuite/gas/riscv/c-add-addi.d: New testcase.
3408         * testsuite/gas/riscv/c-add-addi.s: Likewise.
3409
3410 2020-02-19  Sergey Belyashov  <[email protected]>
3411
3412         PR 25576
3413         * config/tc-z80.c (md_parse_option): Do not use an underscore
3414         prefix for local labels in SDCC compatability mode.
3415         (z80_start_line_hook): Remove SDCC dollar label support.
3416         * testsuite/gas/z80/sdcc.d: Update expected disassembly.
3417         * testsuite/gas/z80/sdcc.s: Likewise.
3418
3419 2020-02-19  Sergey Belyashov  <[email protected]>
3420
3421         PR 25517
3422         * config/tc-z80.c: Add -march option.
3423         * doc/as.texi: Update Z80 documentation.
3424         * doc/c-z80.texi: Likewise.
3425         * testsuite/gas/z80/ez80_adl_all.d: Update command line.
3426         * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
3427         * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
3428         * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3429         * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
3430         * testsuite/gas/z80/gbz80_all.d: Likewise.
3431         * testsuite/gas/z80/r800_extra.d: Likewise.
3432         * testsuite/gas/z80/r800_ii8.d: Likewise.
3433         * testsuite/gas/z80/r800_z80_doc.d: Likewise.
3434         * testsuite/gas/z80/sdcc.d: Likewise.
3435         * testsuite/gas/z80/z180.d: Likewise.
3436         * testsuite/gas/z80/z180_z80_doc.d: Likewise.
3437         * testsuite/gas/z80/z80_doc.d: Likewise.
3438         * testsuite/gas/z80/z80_ii8.d: Likewise.
3439         * testsuite/gas/z80/z80_in_f_c.d: Likewise.
3440         * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
3441         * testsuite/gas/z80/z80_out_c_0.d: Likewise.
3442         * testsuite/gas/z80/z80_sli.d: Likewise.
3443         * testsuite/gas/z80/z80n_all.d: Likewise.
3444         * testsuite/gas/z80/z80n_reloc.d: Likewise.
3445
3446 2020-02-19  H.J. Lu  <[email protected]>
3447
3448         * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
3449         with GNU_PROPERTY_X86_FEATURE_2_MMX.
3450         * testsuite/gas/i386/i386.exp: Run property-3 and
3451         x86-64-property-3.
3452         * testsuite/gas/i386/property-3.d: New file.
3453         * testsuite/gas/i386/property-3.s: Likewise.
3454         * testsuite/gas/i386/x86-64-property-3.d: Likewise.
3455
3456 2020-02-17  H.J. Lu  <[email protected]>
3457
3458         * config/tc-i386.c (cpu_arch): Add .popcnt.
3459         * doc/c-i386.texi: Remove abm and .abm.  Add popcnt and .popcnt.
3460         Add a tab before @samp{.sse4a}.
3461
3462 2020-02-17  Jan Beulich  <[email protected]>
3463
3464         * config/tc-i386.c (process_suffix): Don't try to guess a suffix
3465         for AddrPrefixOpReg templates. Combine the two pieces of
3466         addrprefixopreg handling. Reject 16-bit address reg in 64-bit
3467         mode.
3468
3469 2020-02-17  Jan Beulich  <[email protected]>
3470
3471         PR gas/14439
3472         * config/tc-i386.c (md_assemble): Also suppress operand
3473         swapping for MONITOR{,X} and MWAIT{,X}.
3474         * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
3475         Add Intel syntax monitor/mwait tests.
3476         * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
3477         Adjust expectations.
3478         *testsuite/gas/i386/sse3-intel.d,
3479         testsuite/gas/i386/x86-64-sse3-intel.d: New.
3480         * testsuite/gas/i386/i386.exp: Run new tests.
3481
3482 2020-02-17  Jan Beulich  <[email protected]>
3483
3484         PR gas/6518
3485         * config/tc-i386.c (process_suffix): Re-work Intel-syntax
3486         [XYZ]MMWord memory operand ambiguity recognition logic (largely
3487         re-indentation).
3488         * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
3489         cases.
3490         * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
3491         * testsuite/gas/i386/avx512dq-inval.l,
3492         testsuite/gas/i386/inval-avx.l,
3493         testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
3494         * testsuite/gas/i386/avx512vl-ambig.s,
3495         testsuite/gas/i386/avx512vl-ambig.l: New.
3496         * testsuite/gas/i386/i386.exp: Run new test.
3497
3498 2020-02-16  H.J. Lu  <[email protected]>
3499
3500         * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a.  Restore
3501         nosse4.
3502         * doc/c-i386.texi: Document sse4a and nosse4a.
3503
3504 2020-02-14  H.J. Lu  <[email protected]>
3505
3506         * doc/c-i386.texi: Remove the old movsx and movzx documentation
3507         for AT&T syntax.
3508
3509 2020-02-14  Jan Beulich  <[email protected]>
3510
3511         PR gas/25438
3512         * config/tc-i386.c (md_assemble): Move movsx/movzx special
3513         casing ...
3514         (process_suffix): ... here. Consider just the first operand
3515         initially.
3516         (check_long_reg): Drop opcode 0x63 special case again.
3517         * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
3518         testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
3519         Move ambiguous operand size tests ...
3520         * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3521         testsuite/gas/i386/noreg64.s: ... here.
3522         * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
3523         testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
3524         testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3525         testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
3526         testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
3527         testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3528         testsuite/gas/i386/x86-64-movsxd.d,
3529         testsuite/gas/i386/x86-64-movsxd-intel.d,
3530         testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
3531         Adjust expectations.    
3532         * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
3533         testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
3534         testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
3535         * testsuite/gas/i386/i386.exp: Run new tests.
3536
3537 2020-02-14  Jan Beulich  <[email protected]>
3538
3539         * config/tc-i386.c (process_operands): Also skip segment
3540         override prefix emission if it matches an already present one.
3541         * testsuite/gas/i386/prefix32.s: Add double segment override
3542         cases.
3543         * testsuite/gas/i386/prefix32.l: Adjust expectations.
3544
3545 2020-02-14  Jan Beulich  <[email protected]>
3546
3547         * config/tc-i386.c (process_operands): Drop ineffectual segment
3548         overrides when optimizing.
3549         * testsuite/gas/i386/lea-optimize.d: New.
3550         * testsuite/gas/i386/i386.exp: Run new test.
3551
3552 2020-02-14  Jan Beulich  <[email protected]>
3553
3554         * config/tc-i386.c (process_operands): Also check insn prefix
3555         for ineffectual segment override warning. Don't cover possible
3556         VEX/EVEX encoded insns there.
3557         * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
3558         testsuite/gas/i386/lea.e: New.
3559         * testsuite/gas/i386/i386.exp: Run new test.
3560
3561 2020-02-14  H.J. Lu  <[email protected]>
3562
3563         PR gas/25438
3564         * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
3565         syntax.
3566
3567 2020-02-13  Fangrui Song   <[email protected]>
3568             H.J. Lu  <[email protected]>
3569
3570         PR gas/25551
3571         * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
3572         BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
3573         * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
3574         * testsuite/gas/i386/relax-5.d: New file.
3575         * testsuite/gas/i386/relax-5.s: Likewise.
3576         * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
3577         * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
3578
3579 2020-02-13  Jan Beulich  <[email protected]>
3580
3581         * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
3582         "nosse4" entry.
3583
3584 2020-02-12  Jan Beulich  <[email protected]>
3585
3586         * config/tc-i386.c (avx512): New (at file scope), moved from
3587         (check_VecOperands): ... here.
3588         (process_suffix): Add [XYZ]MMword operand size handling.
3589         * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
3590         * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
3591         tests.
3592         * testsuite/gas/i386/avx512dq-inval.l,
3593         testsuite/gas/i386/noavx512-2.l: Adjust expectations.
3594
3595 2020-02-12  Jan Beulich  <[email protected]>
3596
3597         PR gas/24546
3598         * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
3599         code only.
3600         * config/tc-i386-intel.c (i386_intel_operand): Also handle
3601         CALL/JMP in O_tbyte_ptr case.
3602         * doc/c-i386.texi: Mention far call and full pointer load ISA
3603         differences.
3604         * testsuite/gas/i386/x86-64-branch-3.s,
3605         testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
3606         * testsuite/gas/i386/x86-64-branch-3.d,
3607         testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
3608         * testsuite/gas/i386/x86-64-branch-5.l,
3609         testsuite/gas/i386/x86-64-branch-5.s: New.
3610         * testsuite/gas/i386/i386.exp: Run new test.
3611
3612 2020-02-12  Jan Beulich  <[email protected]>
3613
3614         PR gas/25438
3615         * config/tc-i386.c (REGISTER_WARNINGS): Delete.
3616         (check_byte_reg): Skip only source operand of CRC32. Drop Non-
3617         64-bit-only warning.
3618         (check_word_reg): Consistently error on mismatching register
3619         size and suffix.
3620         * testsuite/gas/i386/general.s: Replace dword GPR with word one
3621         for movw. Replace suffix / GPR for orb.
3622         * testsuite/gas/i386/inval.s: Add tests for movw with dword and
3623         byte GPRs as well as ones for inb/outb with a word accumulator.
3624         * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
3625         testsuite/gas/i386/inval.l: Adjust expectations.
3626
3627 2020-02-12  Jan Beulich  <[email protected]>
3628
3629         * config/tc-i386.c (operand_type_register_match): Also fall
3630         through initial two if()-s when the template allows for a GPR
3631         operand. Adjust comment.
3632
3633 2020-02-11  Jan Beulich  <[email protected]>
3634
3635         (struct _i386_insn): New field "short_form".
3636         (optimize_encoding): Drop setting of shortform field.
3637         (process_suffix): Set i.short_form. Replace shortform use.
3638         (process_operands): Replace shortform use.
3639
3640 2020-02-11  Matthew Malcomson  <[email protected]>
3641
3642         * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
3643         loop initial declaration.
3644
3645 2020-02-10  Matthew Malcomson  <[email protected]>
3646
3647         * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
3648         instructions that can have 5 arguments.
3649         (enum operand_parse_code): Add new operands.
3650         (parse_operands): Account for new operands.
3651         (S5): New macro.
3652         (enum neon_shape_el): Introduce P suffixes for coprocessor.
3653         (neon_select_shape): Account for P suffix.
3654         (LOW1): Move macro to global position.
3655         (HI4): Move macro to global position.
3656         (vcx_assign_vec_d): New.
3657         (vcx_assign_vec_m): New.
3658         (vcx_assign_vec_n): New.
3659         (enum vcx_reg_type): New.
3660         (vcx_get_reg_type): New.
3661         (vcx_size_pos): New.
3662         (vcx_vec_pos): New.
3663         (vcx_handle_shape): New.
3664         (vcx_ensure_register_in_range): New.
3665         (vcx_handle_register_arguments): New.
3666         (vcx_handle_insn_block): New.
3667         (vcx_handle_common_checks): New.
3668         (do_vcx1): New.
3669         (do_vcx2): New.
3670         (do_vcx3): New.
3671         * testsuite/gas/arm/cde-missing-fp.d: New test.
3672         * testsuite/gas/arm/cde-missing-fp.l: New test.
3673         * testsuite/gas/arm/cde-missing-mve.d: New test.
3674         * testsuite/gas/arm/cde-missing-mve.l: New test.
3675         * testsuite/gas/arm/cde-mve-or-neon.d: New test.
3676         * testsuite/gas/arm/cde-mve-or-neon.s: New test.
3677         * testsuite/gas/arm/cde-mve.s: New test.
3678         * testsuite/gas/arm/cde-warnings.l:
3679         * testsuite/gas/arm/cde-warnings.s:
3680         * testsuite/gas/arm/cde.d:
3681         * testsuite/gas/arm/cde.s:
3682
3683 2020-02-10  Stam Markianos-Wright  <[email protected]>
3684             Matthew Malcomson  <[email protected]>
3685
3686         * config/tc-arm.c (arm_ext_cde*): New feature sets for each
3687         CDE coprocessor that can be enabled.
3688         (enum pred_instruction_type): New pred type.
3689         (BAD_NO_VPT): New error message.
3690         (BAD_CDE): New error message.
3691         (BAD_CDE_COPROC): New error message.
3692         (enum operand_parse_code): Add new immediate operands.
3693         (parse_operands): Account for new immediate operands.
3694         (check_cde_operand): New.
3695         (cde_coproc_enabled): New.
3696         (cde_coproc_pos): New.
3697         (cde_handle_coproc): New.
3698         (cxn_handle_predication): New.
3699         (do_custom_instruction_1): New.
3700         (do_custom_instruction_2): New.
3701         (do_custom_instruction_3): New.
3702         (do_cx1): New.
3703         (do_cx1a): New.
3704         (do_cx1d): New.
3705         (do_cx1da): New.
3706         (do_cx2): New.
3707         (do_cx2a): New.
3708         (do_cx2d): New.
3709         (do_cx2da): New.
3710         (do_cx3): New.
3711         (do_cx3a): New.
3712         (do_cx3d): New.
3713         (do_cx3da): New.
3714         (handle_pred_state): Define new IT block behaviour.
3715         (insns): Add newn CX*{,d}{,a} instructions.
3716         (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
3717         Define new cdecp extension strings.
3718         * doc/c-arm.texi: Document new cdecp extension arguments.
3719         * testsuite/gas/arm/cde-scalar.d: New test.
3720         * testsuite/gas/arm/cde-scalar.s: New test.
3721         * testsuite/gas/arm/cde-warnings.d: New test.
3722         * testsuite/gas/arm/cde-warnings.l: New test.
3723         * testsuite/gas/arm/cde-warnings.s: New test.
3724         * testsuite/gas/arm/cde.d: New test.
3725         * testsuite/gas/arm/cde.s: New test.
3726
3727 2020-02-10  H.J. Lu  <[email protected]>
3728
3729         PR gas/25516
3730         * config/tc-i386.c (intel64): Renamed to ...
3731         (isa64): This.
3732         (match_template): Accept Intel64 only instruction by default.
3733         (i386_displacement): Updated.
3734         (md_parse_option): Updated.
3735         * c-i386.texi: Update -mamd64/-mintel64 documentation.
3736         * testsuite/gas/i386/i386.exp: Run x86-64-sysenter.  Pass
3737         -mamd64 to x86-64-sysenter-amd.
3738         * testsuite/gas/i386/x86-64-sysenter.d: New file.
3739
3740 2020-02-10  Alan Modra  <[email protected]>
3741
3742         * config/obj-elf.c (obj_elf_change_section): Error for section
3743         type, attr or entsize changes in assembly.
3744         * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
3745         * testsuite/gas/elf/section5.l: Update.
3746
3747 2020-02-10  Alan Modra  <[email protected]>
3748
3749         * output-file.c (output_file_close): Do a normal close when
3750         flag_always_generate_output.
3751         * write.c (write_object_file): Don't stop output when
3752         flag_always_generate_output.
3753
3754 2020-02-07  Sergey Belyashov  <[email protected]>
3755
3756         PR 25469
3757         * config/tc-z80.c: Add -gbz80 command line option to generate code
3758         for the GameBoy Z80.  Add support for generating DWARF.
3759         * config/tc-z80.h: Add support for DWARF debug information
3760         generation.
3761         * doc/c-z80.texi: Document new command line option.
3762         * testsuite/gas/z80/gbz80_all.d: New file.
3763         * testsuite/gas/z80/gbz80_all.s: New file.
3764         * testsuite/gas/z80/z80.exp: Run the new tests.
3765         * testsuite/gas/z80/z80n_all.d: New file.
3766         * testsuite/gas/z80/z80n_all.s: New file.
3767         * testsuite/gas/z80/z80n_reloc.d: New file.
3768
3769 2020-02-06  H.J. Lu  <[email protected]>
3770
3771         PR gas/25381
3772         * config/obj-elf.c (get_section): Also check
3773         linked_to_symbol_name.
3774         (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
3775         (obj_elf_parse_section_letters): Handle the 'o' flag.
3776         (build_group_lists): Renamed to ...
3777         (build_additional_section_info): This.  Set elf_linked_to_section
3778         from map_head.linked_to_symbol_name.
3779         (elf_adjust_symtab): Updated.
3780         * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
3781         * doc/as.texi: Document the 'o' flag.
3782         * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
3783         * testsuite/gas/elf/section18.d: New file.
3784         * testsuite/gas/elf/section18.s: Likewise.
3785         * testsuite/gas/elf/section19.d: Likewise.
3786         * testsuite/gas/elf/section19.s: Likewise.
3787         * testsuite/gas/elf/section20.d: Likewise.
3788         * testsuite/gas/elf/section20.s: Likewise.
3789         * testsuite/gas/elf/section21.d: Likewise.
3790         * testsuite/gas/elf/section21.l: Likewise.
3791         * testsuite/gas/elf/section21.s: Likewise.
3792
3793 2020-02-06  H.J. Lu  <[email protected]>
3794
3795         * NEWS: Mention x86 assembler options to align branches for
3796         binutils 2.34.
3797
3798 2020-02-06  H.J. Lu  <[email protected]>
3799
3800         * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
3801         only for ELF targets.
3802         * testsuite/gas/i386/unique.d: Don't xfail.
3803         * testsuite/gas/i386/x86-64-unique.d: Likewise.
3804
3805 2020-02-06  Alan Modra  <[email protected]>
3806
3807         * testsuite/gas/i386/unique.d: xfail for non-elf targets.
3808         * testsuite/gas/i386/x86-64-unique.d: Likewise.
3809
3810 2020-02-06  Alan Modra  <[email protected]>
3811
3812         * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
3813         xfail, and rename test.
3814         * testsuite/gas/elf/section12b.d: Likewise.
3815         * testsuite/gas/elf/section16a.d: Likewise.
3816         * testsuite/gas/elf/section16b.d: Likewise.
3817
3818 2020-02-02  H.J. Lu  <[email protected]>
3819
3820         PR gas/25380
3821         * config/obj-elf.c (section_match): Removed.
3822         (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
3823         section_id.
3824         (obj_elf_change_section): Replace info and group_name arguments
3825         with match_p.  Also update the section ID and flags from match_p.
3826         (obj_elf_section): Handle "unique,N".  Update call to
3827         obj_elf_change_section.
3828         * config/obj-elf.h (elf_section_match): New.
3829         (obj_elf_change_section): Updated.
3830         * config/tc-arm.c (start_unwind_section): Update call to
3831         obj_elf_change_section.
3832         * config/tc-ia64.c (obj_elf_vms_common): Likewise.
3833         * config/tc-microblaze.c (microblaze_s_data): Likewise.
3834         (microblaze_s_sdata): Likewise.
3835         (microblaze_s_rdata): Likewise.
3836         (microblaze_s_bss): Likewise.
3837         * config/tc-mips.c (s_change_section): Likewise.
3838         * config/tc-msp430.c (msp430_profiler): Likewise.
3839         * config/tc-rx.c (parse_rx_section): Likewise.
3840         * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
3841         * doc/as.texi: Document "unique,N" in .section directive.
3842         * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
3843         * testsuite/gas/elf/section15.d: New file.
3844         * testsuite/gas/elf/section15.s: Likewise.
3845         * testsuite/gas/elf/section16.s: Likewise.
3846         * testsuite/gas/elf/section16a.d: Likewise.
3847         * testsuite/gas/elf/section16b.d: Likewise.
3848         * testsuite/gas/elf/section17.d: Likewise.
3849         * testsuite/gas/elf/section17.l: Likewise.
3850         * testsuite/gas/elf/section17.s: Likewise.
3851         * testsuite/gas/i386/unique.d: Likewise.
3852         * testsuite/gas/i386/unique.s: Likewise.
3853         * testsuite/gas/i386/x86-64-unique.d: Likewise.
3854         * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
3855
3856 2020-02-02  H.J. Lu  <[email protected]>
3857
3858         * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
3859
3860 2020-02-01  Anthony Green  <[email protected]>
3861
3862        * config/tc-moxie.c (md_begin): Don't force big-endian mode.
3863
3864 2020-01-31  Sandra Loosemore  <[email protected]>
3865
3866         * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
3867         %tls_ldo.
3868
3869 2020-01-31  Andre Vieira  <[email protected]>
3870
3871         PR gas/25472
3872         * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
3873         (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
3874         +mve.
3875         * testsuite/gas/arm/mve_dsp.d: New test.
3876
3877 2020-01-31  Nick Clifton  <[email protected]>
3878
3879         * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
3880         rather than BFD_RELOC_NONE.
3881
3882 2020-01-31  Srinath Parvathaneni  <[email protected]>
3883
3884         * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
3885         to support VLDMIA instruction for MVE.
3886         (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
3887         instruction for MVE.
3888         (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
3889         instruction for MVE.
3890         (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
3891         instruction for MVE.
3892         * testsuite/gas/arm/mve-ldst.d: New test.
3893         * testsuite/gas/arm/mve-ldst.s: Likewise.
3894
3895 2020-01-31  Nick Clifton  <[email protected]>
3896
3897         * po/fr.po: Updated French translation.
3898         * po/ru.po: Updated Russian translation.
3899
3900 2020-01-31  Richard Sandiford  <[email protected]>
3901
3902         * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
3903         .s for the movprfx.
3904         * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
3905         * testsuite/gas/aarch64/sve-movprfx_28.d,
3906         * testsuite/gas/aarch64/sve-movprfx_28.l,
3907         * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
3908
3909 2020-01-30  Jan Beulich  <[email protected]>
3910
3911         * config/tc-i386.c (output_disp): Tighten base_opcode check.
3912         * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
3913         * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
3914         Adjust expectations.
3915
3916 2020-01-30  Jose E. Marchesi  <[email protected]>
3917
3918         * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
3919         * testsuite/gas/bpf/alu-be.d: Likewise.
3920         * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
3921         * testsuite/gas/bpf/alu32-be.d: Likewise.
3922
3923 2020-01-30  Jan Beulich  <[email protected]>
3924
3925         * testsuite/gas/i386/x86-64-branch-2.s,
3926         testsuite/gas/i386/x86-64-branch-4.s,
3927         testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
3928         * testsuite/gas/i386/ilp32/x86-64-branch.d,
3929         testsuite/gas/i386/x86-64-branch-2.d,
3930         testsuite/gas/i386/x86-64-branch-4.l,
3931         testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
3932
3933 2020-01-30  Jan Beulich  <[email protected]>
3934
3935         * config/tc-i386.c (process_suffix): .
3936         testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
3937         testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
3938         Add LRETQ case.
3939         testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
3940         suffix.
3941         testsuite/gas/i386/x86_64.s: Add RETF cases.
3942         * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3943         testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
3944         testsuite/gas/i386/x86-64-opcode.d,
3945         testsuite/gas/i386/x86-64-suffix-intel.d,
3946         testsuite/gas/i386/x86-64-suffix.d,
3947         testsuite/gas/i386/x86_64-intel.d
3948         testsuite/gas/i386/x86_64.d: Adjust expectations.
3949         * testsuite/gas/i386/x86-64-suffix.e,
3950         testsuite/gas/i386/x86_64.e: New.
3951
3952 2020-01-30  Jan Beulich  <[email protected]>
3953
3954         * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
3955         special case.
3956
3957 2020-01-27  H.J. Lu  <[email protected]>
3958
3959         PR binutils/25445
3960         * config/tc-i386.c (check_long_reg): Also convert to QWORD for
3961         movsxd.
3962         * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
3963         differences.  Document movslq and movsxd.
3964         * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
3965         * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
3966         * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
3967         * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
3968         * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
3969         * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
3970         * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
3971         * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
3972         * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
3973         * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
3974         * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
3975
3976 2020-01-27  Alan Modra  <[email protected]>
3977
3978         * testsuite/gas/all/gas.exp: Replace case statements with switch
3979         statements.
3980         * testsuite/gas/elf/elf.exp: Likewise.
3981         * testsuite/gas/macros/macros.exp: Likewise.
3982         * testsuite/lib/gas-defs.exp: Likewise.
3983
3984 2020-01-27  Tamar Christina  <[email protected]>
3985
3986         PR 25403
3987         * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
3988         * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
3989
3990 2020-01-22  Maxim Blinov  <[email protected]>
3991
3992         * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
3993         s exts must be known, so rename *ok* to *fail*.
3994         * testsuite/gas/riscv/march-ok-sx.d: Likewise.
3995         * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
3996         * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
3997         above change.
3998         * testsuite/gas/riscv/march-fail-sx.l: Likewise.
3999         * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
4000
4001 2020-01-22  H.J. Lu  <[email protected]>
4002
4003         PR gas/25438
4004         * config/tc-i386.c (check_long_reg): Always disallow double word
4005         suffix in mnemonic with word general register.
4006         * testsuite/gas/i386/general.s: Replace word general register
4007         with double word general register for movl.
4008         * testsuite/gas/i386/inval.s: Add tests for movl with word general
4009         register.
4010         * testsuite/gas/i386/general.l: Updated.
4011         * testsuite/gas/i386/inval.l: Likewise.
4012
4013 2020-01-22  Alan Modra  <[email protected]>
4014
4015         * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
4016         __tls_get_addr_desc and __tls_get_addr_opt.
4017
4018 2020-01-21  Jan Beulich  <[email protected]>
4019
4020         * testsuite/gas/i386/inval-crc32.s,
4021         testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
4022         * testsuite/gas/i386/inval-crc32.l,
4023         testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
4024
4025 2020-01-21  Jan Beulich  <[email protected]>
4026
4027         * config/tc-i386.c (process_suffix): Merge CRC32 handling into
4028         generic code path. Deal with No_lSuf being set in a template.
4029         * testsuite/gas/i386/inval-crc32.l,
4030         testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
4031         instead of error(s) when operand size is ambiguous.
4032         * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4033         testsuite/gas/i386/noreg64.s: Add CRC32 tests.
4034         * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
4035         testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
4036         testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
4037         Adjust expectations.
4038
4039 2020-01-21  Jan Beulich  <[email protected]>
4040
4041         * config/tc-i386.c (process_suffix): Drop SYSRET special case
4042         and an intel_syntax check. Re-write lack-of-suffix processing
4043         logic.
4044         * doc/c-i386.texi: Document operand size defaults for suffix-
4045         less AT&T syntax insns.
4046         * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
4047         testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
4048         testsuite/gas/i386/x86-64-avx-scalar.s,
4049         testsuite/gas/i386/x86-64-avx.s,
4050         testsuite/gas/i386/x86-64-bundle.s,
4051         testsuite/gas/i386/x86-64-intel64.s,
4052         testsuite/gas/i386/x86-64-lock-1.s,
4053         testsuite/gas/i386/x86-64-opcode.s,
4054         testsuite/gas/i386/x86-64-sse2avx.s,
4055         testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
4056         * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
4057         testsuite/gas/i386/x86-64-nops.s,
4058         testsuite/gas/i386/x86-64-ptwrite.s,
4059         testsuite/gas/i386/x86-64-simd.s,
4060         testsuite/gas/i386/x86-64-sse-noavx.s,
4061         testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
4062         insns.
4063         * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4064         testsuite/gas/i386/noreg64.s: Add further tests.
4065         * testsuite/gas/i386/ilp32/x86-64-nops.d,
4066         testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
4067         testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
4068         testsuite/gas/i386/sse-noavx.d,
4069         testsuite/gas/i386/x86-64-intel64.d,
4070         testsuite/gas/i386/x86-64-nops.d,
4071         testsuite/gas/i386/x86-64-opcode.d,
4072         testsuite/gas/i386/x86-64-ptwrite-intel.d,
4073         testsuite/gas/i386/x86-64-ptwrite.d,
4074         testsuite/gas/i386/x86-64-simd-intel.d,
4075         testsuite/gas/i386/x86-64-simd-suffix.d,
4076         testsuite/gas/i386/x86-64-simd.d,
4077         testsuite/gas/i386/x86-64-sse-noavx.d
4078         testsuite/gas/i386/x86-64-suffix.d,
4079         testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
4080         * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
4081         testsuite/gas/i386/noreg64.l: New.
4082         * testsuite/gas/i386/i386.exp: Run new tests.
4083
4084 2020-01-21  Jan Beulich  <[email protected]>
4085
4086         * testsuite/gas/i386/avx512_bf16_vl.s,
4087         testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
4088         of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
4089         broadcast forms of VCVTNEPS2BF16.
4090         * testsuite/gas/i386/avx512_bf16_vl.d,
4091         testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
4092
4093 2020-01-20  Nick Clifton  <[email protected]>
4094
4095         * po/uk.po: Updated Ukranian translation.
4096
4097 2020-01-20  H.J. Lu  <[email protected]>
4098
4099         PR ld/25416
4100         * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
4101         for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
4102         x32 object.
4103         * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
4104         * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
4105         R_X86_64_GOTPC32_TLSDESC relocation.
4106
4107 2020-01-18  Nick Clifton  <[email protected]>
4108
4109         * configure: Regenerate.
4110         * po/gas.pot: Regenerate.
4111
4112 2020-01-18  Nick Clifton  <[email protected]>
4113
4114         Binutils 2.34 branch created.
4115
4116 2020-01-17  H.J. Lu  <[email protected]>
4117
4118         * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
4119         with vex_encoding_vex.
4120         (parse_insn): Likewise.
4121         * doc/c-i386.texi: Replace {vex2} with {vex}.  Update {vex}
4122         and {vex3} documentation.
4123         * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
4124         {vex}.
4125         * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
4126
4127 2020-01-16  Andre Vieira  <[email protected]>
4128
4129         PR 25376
4130         * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
4131         (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
4132         * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
4133         * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
4134         * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
4135         * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
4136
4137 2020-01-16  Jan Beulich  <[email protected]>
4138
4139         * config/tc-i386.c (match_template): Drop found_cpu_match local
4140         variable.
4141
4142 2020-01-16  Jan Beulich  <[email protected]>
4143
4144         * testsuite/gas/i386/avx512dq-inval.l,
4145         testsuite/gas/i386/avx512dq-inval.s: New.
4146         * testsuite/gas/i386/i386.exp: Run new test.
4147
4148 2020-01-15  Jozef Lawrynowicz  <[email protected]>
4149
4150         * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
4151         relocations when the target is 430X, except when extracting part of an
4152         expression.
4153         (msp430_srcoperand): Adjust comment.
4154         Initialize the expp member of the msp430_operand_s struct as
4155         appropriate.
4156         (msp430_dstoperand): Likewise.
4157         * testsuite/gas/msp430/msp430.exp: Run new test.
4158         * testsuite/gas/msp430/reloc-lo-430x.d: New test.
4159         * testsuite/gas/msp430/reloc-lo-430x.s: New test.
4160
4161 2020-01-15  Alan Modra  <[email protected]>
4162
4163         * configure.tgt: Add sparc-*-freebsd case.
4164
4165 2020-01-14  Lili Cui <[email protected]>
4166
4167         * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
4168         * testsuite/gas/i386/align-branch-1b.d: Likewise.
4169         * testsuite/gas/i386/align-branch-1c.d: Likewise.
4170         * testsuite/gas/i386/align-branch-1d.d: Likewise.
4171         * testsuite/gas/i386/align-branch-1e.d: Likewise.
4172         * testsuite/gas/i386/align-branch-1f.d: Likewise.
4173         * testsuite/gas/i386/align-branch-1g.d: Likewise.
4174         * testsuite/gas/i386/align-branch-1h.d: Likewise.
4175         * testsuite/gas/i386/align-branch-1i.d: Likewise.
4176         * testsuite/gas/i386/align-branch-5.d: Likewise.
4177         * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
4178         * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
4179         * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
4180         * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
4181         * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
4182         * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
4183         * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
4184         * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
4185         * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
4186         * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
4187         * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
4188         x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
4189
4190 2020-01-14  Sergey Belyashov  <[email protected]>
4191
4192         PR 25377
4193         * config/tc-z80.c: Add support for half precision, single
4194         precision and double precision floating point values.
4195         * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
4196         * doc/as.texi: Add new z80 command line options.
4197         * doc/c-z80.texi: Document new z80 command line options.
4198         * testsuite/gas/z80/ez80_pref_dis.s: New test.
4199         * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
4200         * testsuite/gas/z80/z80.exp: Run the new test.
4201         * testsuite/gas/z80/fp_math48.d: Use correct command line option.
4202         * testsuite/gas/z80/fp_zeda32.d: Likewise.
4203         * testsuite/gas/z80/strings.d: Update expected output.
4204
4205 2020-01-13  Matthew Malcomson  <[email protected]>
4206
4207         * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
4208         dependency.
4209
4210 2020-01-13  Claudiu Zissulescu  <[email protected]>
4211
4212         * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
4213         the CPU.
4214         * config/tc-arc.h: Add header if/defs.
4215         * testsuite/gas/arc/pseudos.d: Improve matching pattern.
4216
4217 2020-01-13  Alan Modra  <[email protected]>
4218
4219         * testsuite/gas/wasm32/allinsn.d: Update expected output.
4220
4221 2020-01-13  Alan Modra  <[email protected]>
4222
4223         * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
4224         insertion.
4225
4226 2020-01-10  Alan Modra  <[email protected]>
4227
4228         * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
4229         * testsuite/gas/elf/pr21661.d: Don't run on hpux.
4230
4231 2020-01-03  Sergey Belyashov  <[email protected]>
4232
4233         PR 25224
4234         * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
4235         opcode byte values.
4236         (emit_ld_r_r): Likewise.
4237         (emit_ld_rr_m): Likewise.
4238         (emit_ld_rr_nn): Likewise.
4239
4240 2020-01-09  Jan Beulich  <[email protected]>
4241
4242         * config/tc-i386.c (optimize_encoding): Add
4243         is_any_vex_encoding() invocations. Drop respective
4244         i.tm.extension_opcode == None checks.
4245
4246 2020-01-09  Jan Beulich  <[email protected]>
4247
4248         * config/tc-i386.c (md_assemble): Check RegRex is clear during
4249         REX transformations. Correct comment indentation.
4250
4251 2020-01-09  Jan Beulich  <[email protected]>
4252
4253         * config/tc-i386.c (optimize_encoding): Generalize register
4254         transformation for TEST optimization.
4255
4256 2020-01-09  Jan Beulich  <[email protected]>
4257
4258         * testsuite/gas/i386/x86-64-sysenter-amd.s,
4259         testsuite/gas/i386/x86-64-sysenter-amd.d,
4260         testsuite/gas/i386/x86-64-sysenter-amd.l,
4261         testsuite/gas/i386/x86-64-sysenter-intel.d,
4262         testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
4263         * testsuite/gas/i386/i386.exp: Run new tests.
4264
4265 2020-01-08  Nick Clifton  <[email protected]>
4266
4267         PR 25284
4268         * doc/as.texi (Align): Document the fact that all arguments can be
4269         omitted.
4270         (Balign): Likewise.
4271         (P2align): Likewise.
4272
4273 2020-01-08  Nick Clifton  <[email protected]>
4274
4275         PR 14891
4276         * config/obj-elf.c (obj_elf_section): Fail if the section name is
4277         already defined as a different symbol type.
4278         * testsuite/gas/elf/pr14891.s: New test source file.
4279         * testsuite/gas/elf/pr14891.d: New test driver.
4280         * testsuite/gas/elf/pr14891.s: New test expected error output.
4281         * testsuite/gas/elf/elf.exp: Run the new test.
4282
4283 2020-01-08  Alan Modra  <[email protected]>
4284
4285         * config/tc-z8k.c (md_begin): Make idx unsigned.
4286         (get_specific): Likewise for this_index.
4287
4288 2020-01-07  Claudiu Zissulescu  <[email protected]>
4289
4290         * onfig/tc-arc.c (parse_reloc_symbol): New function.
4291         (tokenize_arguments): Clean up, use parse_reloc_symbol function.
4292         (md_operand): Set X_md to absent.
4293         (arc_parse_name): Check for X_md.
4294
4295 2020-01-03  Sergey Belyashov  <[email protected]>
4296
4297         PR 25311
4298         * as.h (TC_STRING_ESCAPES): Provide a default definition.
4299         * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
4300         NO_STRING_ESCAPES.
4301         * read.c (next_char_of_string): Likewise.
4302         * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
4303         * config/tc-z80.h (TC_STRING_ESCAPES): Define.
4304
4305 2020-01-03  Nick Clifton  <[email protected]>
4306
4307         * po/sv.po: Updated Swedish translation.
4308
4309 2020-01-03  Jan Beulich  <[email protected]>
4310
4311         * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
4312         * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4313
4314 2020-01-03  Jan Beulich  <[email protected]>
4315
4316         * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
4317         by-element usdot. Add 64-bit form tests for by-element sudot.
4318         * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
4319
4320 2020-01-03  Jan Beulich  <[email protected]>
4321
4322         * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
4323         * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4324
4325 2020-01-03  Jan Beulich  <[email protected]>
4326
4327         * testsuite/gas/aarch64/f64mm.d,
4328         testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
4329
4330 2020-01-02  Sergey Belyashov  <[email protected]>
4331
4332         * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
4333         support for assembler code generated by SDCC. Add new relocation
4334         types. Add z80-elf target support.
4335         * config/tc-z80.h: Add z80-elf target support. Enable dollar local
4336         labels. Local labels starts from ".L".
4337         * NEWS: Mention the new support.
4338         * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
4339         * testsuite/gas/all/fwdexp.s: Likewise.
4340         * testsuite/gas/all/cond.l: Likewise.
4341         * testsuite/gas/all/cond.s: Likewise.
4342         * testsuite/gas/all/fwdexp.d: Likewise.
4343         * testsuite/gas/all/fwdexp.s: Likewise.
4344         * testsuite/gas/elf/section2.e-mips: Likewise.
4345         * testsuite/gas/elf/section2.l: Likewise.
4346         * testsuite/gas/elf/section2.s: Likewise.
4347         * testsuite/gas/macros/app1.d: Likewise.
4348         * testsuite/gas/macros/app1.s: Likewise.
4349         * testsuite/gas/macros/app2.d: Likewise.
4350         * testsuite/gas/macros/app2.s: Likewise.
4351         * testsuite/gas/macros/app3.d: Likewise.
4352         * testsuite/gas/macros/app3.s: Likewise.
4353         * testsuite/gas/macros/app4.d: Likewise.
4354         * testsuite/gas/macros/app4.s: Likewise.
4355         * testsuite/gas/macros/app4b.s: Likewise.
4356         * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
4357         * testsuite/gas/z80/z80.exp: Add new tests
4358         * testsuite/gas/z80/dollar.d: New file.
4359         * testsuite/gas/z80/dollar.s: New file.
4360         * testsuite/gas/z80/ez80_adl_all.d: New file.
4361         * testsuite/gas/z80/ez80_adl_all.s: New file.
4362         * testsuite/gas/z80/ez80_adl_suf.d: New file.
4363         * testsuite/gas/z80/ez80_isuf.s: New file.
4364         * testsuite/gas/z80/ez80_z80_all.d: New file.
4365         * testsuite/gas/z80/ez80_z80_all.s: New file.
4366         * testsuite/gas/z80/ez80_z80_suf.d: New file.
4367         * testsuite/gas/z80/r800_extra.d: New file.
4368         * testsuite/gas/z80/r800_extra.s: New file.
4369         * testsuite/gas/z80/r800_ii8.d: New file.
4370         * testsuite/gas/z80/r800_z80_doc.d: New file.
4371         * testsuite/gas/z80/z180.d: New file.
4372         * testsuite/gas/z80/z180.s: New file.
4373         * testsuite/gas/z80/z180_z80_doc.d: New file.
4374         * testsuite/gas/z80/z80_doc.d: New file.
4375         * testsuite/gas/z80/z80_doc.s: New file.
4376         * testsuite/gas/z80/z80_ii8.d: New file.
4377         * testsuite/gas/z80/z80_ii8.s: New file.
4378         * testsuite/gas/z80/z80_in_f_c.d: New file.
4379         * testsuite/gas/z80/z80_in_f_c.s: New file.
4380         * testsuite/gas/z80/z80_op_ii_ld.d: New file.
4381         * testsuite/gas/z80/z80_op_ii_ld.s: New file.
4382         * testsuite/gas/z80/z80_out_c_0.d: New file.
4383         * testsuite/gas/z80/z80_out_c_0.s: New file.
4384         * testsuite/gas/z80/z80_reloc.d: New file.
4385         * testsuite/gas/z80/z80_reloc.s: New file.
4386         * testsuite/gas/z80/z80_sli.d: New file.
4387         * testsuite/gas/z80/z80_sli.s: New file.
4388
4389 2020-01-02  Szabolcs Nagy  <[email protected]>
4390
4391         * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
4392         REGLIST_RN.
4393
4394 2020-01-01  Alan Modra  <[email protected]>
4395
4396         Update year range in copyright notice of all files.
4397
4398 For older changes see ChangeLog-2019
4399 \f
4400 Copyright (C) 2020 Free Software Foundation, Inc.
4401
4402 Copying and distribution of this file, with or without modification,
4403 are permitted in any medium without royalty provided the copyright
4404 notice and this notice are preserved.
4405
4406 Local Variables:
4407 mode: change-log
4408 left-margin: 8
4409 fill-column: 74
4410 version-control: never
4411 End:
This page took 0.284141 seconds and 4 git commands to generate.