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