4 * config/tc-mep.c (md_convert_frag): Use uint32_t for addend and
10 * config/tc-riscv.c (riscv_ip): Cast X_add_number passed to
11 VALID_* macros to unsigned.
15 * config/tc-crx.c: Formatting.
16 (CRX_PRINT): Wrap params in parentheses. Remove parens from uses
18 (reset_vars, get_register, get_copregister, get_optype, get_opbits),
19 (get_opflags, get_number_of_operands, parse_operand, gettrap),
20 (handle_LoadStor, getconstant, check_range, getreg_image),
21 (parse_operands, parse_insn, print_operand, print_constant),
22 (exponent2scale, mask_reg, process_label_constant, set_operand),
23 (assemble_insn, print_insn): Delete unnecessary forward declaration.
24 (print_insn): Make static.
25 (print_constant): Make "constant" unsigned.
26 (assemble_insn): Tidy REVERSE_MATCH index calc.
27 * expr.c (generic_bignum_to_int32): Cast elements to valueT.
32 * config/tc-z80.c (is_overflow): Use 1UL in mask shift expression.
36 * config/tc-tic4x.c (tic4x_gen_to_words): Rewrite mantissa
37 overflow test without UB. Avoid other UB shifts by making them
42 * config/tc-csky.c (csky_error_state): New member 'arg_int'.
43 (SET_ERROR_NUMBER): Rename to SET_ERROR_STRING.
44 (SET_ERROR_INTEGER): New.
45 (err_formats): Add error format for ERROR_FREG_OVER_RANGE and
46 ERROR_VREG_OVER_RANGE.
47 (csky_show_error): Pass an integer argument for some error
49 (parse_exp): Call SET_ERROR_STRING instead of SET_ERROR_NUMBER.
51 (parse_type_ctrlreg): Likewise.
52 (csky_get_reg_val): Likewise.
53 (is_reglist_legal): Likewise.
54 (is_freglist_legal): Likewise.
55 (is_reglist_dash_comma_legal): Likewise.
56 (is_reg_lshift_illegal): Likewise.
57 (is_psr_bit): Likewise.
58 (parse_type_cpreg): Likewise.
59 (parse_type_cpcreg): Likewise.
60 (parse_type_areg): Likewise.
61 (parse_type_freg): Likewise.
62 (parse_ldst_imm): Likewise and call SET_ERROR_INTEGER.
63 (get_operand_value): Likewise.
64 (parse_operands_op): Likewise and call is_imm_within_range,
65 is_imm_within_range_ext and is_oimm_within_range.
66 (md_assemble): Likewise.
67 (is_imm_within_range): New.
68 (is_imm_within_range_ext): Rename from is_imm_over_range.
69 (is_oimm_within_range): Rename from is_oimm_over_range.
70 (v2_work_add_sub): Call SET_ERROR_INTEGER.
71 (csky_rolc): call is_imm_within_range instead of
76 * config/tc-csky.c (md_begin): Add warning when -mdsp and
77 -mcpu=ck803ern are both added.
78 (parse_ldst_imm): Fix error message.
82 * testsuite/gas/cr16/cbitb_test.d: Update expected output.
83 * testsuite/gas/cr16/cbitw_test.d: Likewise.
84 * testsuite/gas/cr16/sbitb_test.d: Likewise.
85 * testsuite/gas/cr16/sbitw_test.d: Likewise.
86 * testsuite/gas/cr16/storb_test.d: Likewise.
87 * testsuite/gas/cr16/storw_test.d: Likewise.
88 * testsuite/gas/cr16/tbitb_test.d: Likewise.
89 * testsuite/gas/cr16/tbitw_test.d: Likewise.
95 * config/tc-cr16.c: Include limits.h, formatting.
96 (CR16_PRINT): Wrap params in parentheses. Remove parens from uses
98 (getconstant): Handle zero nbits.
99 (print_operand): Use unsigned variables. Simplify handling of
101 (check_range): Use int32_t variables. Correct range checks.
106 * config/tc-pj.c (md_assemble): Don't loop past end of
112 * config/tc-ia64.c (parse_operands): Don't access past end of
117 * as.c (parse_args): Handle bad -gdwarf options.
121 * gas/config/tc-csky.c (md_begin): Set attributes.
122 (isa_flag): Change type to unsigned 64 bits.
123 (struct csky_cpu_info): Likewise.
124 (struct csky_macro_info): Likewise.
125 (set_csky_attribute): New.
126 * testsuite/gas/csky/802j.d: Ignore .csky.attributes section.
127 * testsuite/gas/csky/all.d: Likewise.
128 * testsuite/gas/csky/bsr1.d: Likewise.
129 * testsuite/gas/csky/csky_vdsp.d: Likewise.
130 * testsuite/gas/csky/cskyv2_all.d: Likewise.
131 * testsuite/gas/csky/cskyv2_ck803r2.d: Likewise.
132 * testsuite/gas/csky/cskyv2_ck860.d: Likewise.
133 * testsuite/gas/csky/cskyv2_dsp.d: Likewise.
134 * testsuite/gas/csky/cskyv2_elrw.d: Likewise.
135 * testsuite/gas/csky/cskyv2_float.d: Likewise.
136 * testsuite/gas/csky/enhance_dsp.d: Likewise.
137 * testsuite/gas/csky/java.d: Likewise.
138 * testsuite/gas/csky/v1_float.d: Likewise.
139 * testsuite/gas/csky/v2_float_part1.d: Likewise.
140 * testsuite/gas/csky/v2_float_part2.d: Likewise.
141 * testsuite/gas/csky/v2_tls_gd.d: Likewise.
142 * testsuite/gas/csky/v2_tls_ie.d: Likewise.
143 * testsuite/gas/csky/v2_tls_ld.d: Likewise.
144 * testsuite/gas/csky/v2_tls_le.d: Likewise.
145 * testsuite/gas/elf/elf.exp: Add handler for CSKY.
146 * testsuite/gas/elf/section2.e-csky: New.
151 * cgen.c (weak_operand_overflow_check): Handle opmask for
152 operand length zero. Use 1UL constant.
157 * config/tc-xtensa.c (xg_get_trampoline_chain): Return early
158 when n_entries is zero.
163 * symbols.c: Include limits.h.
164 (resolve_symbol_value <O_left_shift, O_right_shift>): Do an
165 unsigned shift. Warn if shift count larger than valueT size.
170 * expr.c (expr <O_left_shift>): Do an unsigned shift.
176 * config/tc-bpf.c: Add option -mxbpf to select xbpf isa.
177 * testsuite/gas/bpf/indcall-1.d: New file.
178 * testsuite/gas/bpf/indcall-1.s: Likewise.
179 * testsuite/gas/bpf/indcall-bad-1.l: Likewise.
180 * testsuite/gas/bpf/indcall-bad-1.s: Likewise.
181 * testsuite/gas/bpf/bpf.exp: Run new tests.
186 * gas/config/tc-tic54x.c (tic54x_undefined_symbol): Properly treat
187 misc_symbol_hash entries without values.
192 * tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
198 * config/tc-cr16.c (get_b_cc): Return NULL early if op isn't
199 two or three chars, and don't bother copying.
204 * config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
210 * symbols.c (dollar_label_count, dollar_label_max): Make size_t.
211 (dollar_label_clear): Don't call memset with NULL pointer.
215 * config/tc-arc.c (declare_register_set): Avoid false positive
216 format-overflow warning.
217 * config/tc-epiphany.c (md_assemble): Likewise.
218 * config/tc-mips.c (md_begin): Likewise.
219 * config/tc-mmix.c (mmix_md_begin): Likewise.
220 * config/tc-nds32.c (nds32_elf_append_relax_relocs): Avoid false
221 positive "may be used uninitialized" warning.
225 * config/tc-csky.c (csky_archs): Add item for CK860,
226 change ck810 and ck807's arch_flag.
227 (csky_cpus): Add item for CK860.
228 (md_begin): Enable DSP for CK810 and CK807 by default.
229 (md_apply_fix): Fix CKCORE_TLS_IE32 relocation failure.
230 * gas/testsuite/gas/csky/cskyv2_all.d: Change 'sync 0'
232 * gas/testsuite/gas/csky/cskyv2_all.s: Likewise.
233 * gas/testsuite/gas/csky/cskyv2_ck860.d: New.
234 * gas/testsuite/gas/csky/cskyv2_ck860.s: New.
235 * gas/testsuite/gas/csky/enhance_dsp.d: Change plsli.u16
237 * gas/testsuite/gas/csky/enhance_dsp.s: Likewise.
241 * config/tc-tic54x.c (stag_add_field_symbols): Don't free "name"
242 in case where it isn't copied.
243 * config/tc-tic54x.h (LOCAL_LABELS_FB): Undef.
244 * testsuite/gas/tic54x/field.d: Dump section contents and symbols
245 rather than disassembling.
246 * testsuite/gas/tic54x/set.d: Adjust for newer disassembly.
250 * config/tc-aarch64.c (md_begin): Don't bother checking for
251 out of memory failure from str_htab_create.
252 * config/tc-arc.c (arc_insert_opcode, md_begin): Likewise.
253 (arc_extcorereg, arc_stralloc): Likewise.
254 * config/tc-arm.c (md_begin): Likewise.
255 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
256 * config/tc-cris.c (md_begin): Likewise.
257 * config/tc-crx.c (md_begin): Likewise.
258 * config/tc-pdp11.c (md_begin): Likewise.
259 * config/tc-score.c (s3_build_reg_hsh, s3_begin): Likewise.
260 * config/tc-score7.c (s7_build_reg_hsh, s7_begin): Likewise.
264 * config/tc-arm.c (move_or_literal_pool): Avoid false positive
265 "may be used uninitialised".
266 (opcode_lookup): Likewise.
271 * symbols.c (local_symbol_convert): Clear out xtra.
275 * config/tc-csky.c (CSKY_ISA_803R2): New.
276 (csky_archs): Add ck803r2 series.
277 (md_begin): Fix warning about -medsp.
278 (csky_get_freg_val): Support lowercase of fpu register name.
279 * testsuite/gas/csky/cskyv2_ck803r2.s: New file.
280 * testsuite/gas/csky/cskyv2_ck803r2.d: New file.
285 * hash.h (htab_insert): Update prototype and comment.
286 (struct string_tuple): Make "value" a const void*.
287 (string_tuple_alloc): Likewise.
288 (str_hash_find, str_hash_find_n): Cast returned value.
289 (str_hash_insert): Add "replace" parameter, and return slot pointer.
290 Free alloc'd element when not inserted.
291 * hash.c (htab_insert): Likewise. Return slot when element exists,
292 otherwise return NULL.
293 * read.c (pop_insert): Insert into hash table without first searching.
294 * config/tc-avr.c (md_begin): Likewise.
295 * config/tc-msp430.c (md_begin): Likewise.
296 * config/tc-nds32.c (nds32_init_nds32_pseudo_opcodes): Likewise.
297 * config/tc-v850.c (md_begin): Likewise.
298 * macro.c (do_formals, define_macro, macro_expand_body): Likewise.
299 (delete_macro): Delete from hash table.
300 * config/tc-tic54x.c (subsym_create_or_replace): Correct logic.
302 * symbols.c (local_symbol_make, symbol_table_insert): Allow
303 replacement of hash table entries.
304 * config/obj-coff-seh.c (seh_hash_insert): Likewise.
305 * config/obj-coff.c (tag_insert): Likewise.
306 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
307 * config/tc-m68k.c (md_begin): Likewise for aliases.
308 * config/tc-tic4x.c (tic4x_asg): Likewise.
309 * config/tc-tic6x.c (md_begin): Likewise.
311 * dw2gencfi.c (dwcfi_hash_find_or_make): Disallow replacement of
313 * ecoff.c (add_string, get_tag): Likewise.
314 * macro.c (expand_irp): Likewise.
315 * config/obj-elf.c (build_additional_section_info): Likewise.
316 * config/tc-aarch64.c (insert_reg_alias): Likewise.
317 (checked_hash_insert): Likewise.
318 * config/tc-alpha.c (get_alpha_reloc_tag, md_begin): Likewise.
319 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
320 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
321 * config/tc-arm.c (insert_reg_alias): Likewise.
322 (arm_tc_equal_in_insn, md_begin): Likewise.
323 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
324 * config/tc-cris.c (md_begin): Likewise.
325 * config/tc-crx.c (md_begin): Likewise.
326 * config/tc-csky.c (md_begin): Likewise.
327 * config/tc-d10v.c (md_begin): Likewise.
328 * config/tc-dlx.c (md_begin): Likewise.
329 * config/tc-ft32.c (md_begin): Likewise.
330 * config/tc-h8300.c (md_begin): Likewise.
331 * config/tc-hppa.c (md_begin): Likewise.
332 * config/tc-i386.c (md_begin): Likewise.
333 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
334 (md_begin, dot_alias): Likewise.
335 * config/tc-m68hc11.c (md_begin): Likewise.
336 * config/tc-m68k.c (md_begin): Likewise.
337 * config/tc-mcore.c (md_begin): Likewise.
338 * config/tc-microblaze.c (md_begin): Likewise.
339 * config/tc-mips.c (md_begin): Likewise.
340 * config/tc-mmix.c (md_begin): Likewise.
341 * config/tc-mn10200.c (md_begin): Likewise.
342 * config/tc-mn10300.c (md_begin): Likewise.
343 * config/tc-moxie.c (md_begin): Likewise.
344 * config/tc-nds32.c (nds32_relax_hint, md_begin): Likewise.
345 * config/tc-nios2.c (md_begin): Likewise.
346 * config/tc-ns32k.c (md_begin): Likewise.
347 * config/tc-pdp11.c (md_begin): Likewise.
348 * config/tc-pj.c (fake_opcode, md_begin): Likewise.
349 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
350 * config/tc-pru.c (md_begin): Likewise.
351 * config/tc-riscv.c (init_ext_version_hash): Likewise.
352 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
353 (riscv_init_csr_hash): Likewise.
354 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
355 * config/tc-score.c (s3_insert_reg): Likewise.
356 (s3_build_score_ops_hsh, s3_build_dependency_insn_hsh): Likewise.
357 * config/tc-score7.c (s7_build_score_ops_hsh): Likewise.
358 (s7_build_dependency_insn_hsh, s7_insert_reg): Likewise.
359 * config/tc-sh.c (md_begin): Likewise.
360 * config/tc-sparc.c (md_begin): Likewise.
361 * config/tc-spu.c (md_begin): Likewise.
362 * config/tc-tic30.c (md_begin): Likewise.
363 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
364 * config/tc-tic54x.c (stag_add_field_symbols, md_begin): Likewise.
365 (tic54x_endstruct, tic54x_var, tic54x_macro_info): Likewise.
366 (subsym_substitute): Likewise.
367 * config/tc-tilegx.c (md_begin): Likewise.
368 * config/tc-tilepro.c (md_begin): Likewise.
369 * config/tc-vax.c (vip_begin): Likewise.
370 * config/tc-wasm32.c (md_begin): Likewise.
371 * config/tc-xgate.c (md_begin): Likewise.
372 * config/tc-z8k.c (md_begin): Likewise.
373 * testsuite/gas/ppc/dcbt.d,
374 * testsuite/gas/ppc/dcbt.s: New test.
375 * testsuite/gas/ppc/ppc.exp: Run it.
377 * ecoff.c (add_string): Report fatal error on duplicates.
378 * config/tc-alpha.c (md_begin): Likewise.
379 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
380 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
381 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
382 * config/tc-cris.c (md_begin): Likewise.
383 * config/tc-crx.c (md_begin): Likewise.
384 * config/tc-dlx.c (md_begin): Likewise.
385 * config/tc-hppa.c (md_begin): Likewise.
386 * config/tc-i386.c (md_begin): Likewise.
387 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
388 (md_begin): Likewise.
389 * config/tc-m68k.c (md_begin): Likewise.
390 * config/tc-mips.c (md_begin): Likewise.
391 * config/tc-nios2.c (md_begin): Likewise.
392 * config/tc-ns32k.c (md_begin): Likewise.
393 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
394 * config/tc-pru.c (md_begin): Likewise.
395 * config/tc-riscv.c (init_ext_version_hash): Likewise.
396 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
397 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
398 * config/tc-sparc.c (md_begin): Likewise.
399 * config/tc-tic30.c (md_begin): Likewise.
400 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
401 * config/tc-tilegx.c (md_begin): Likewise.
402 * config/tc-tilepro.c (md_begin): Likewise.
403 * config/tc-vax.c (vip_begin): Likewise.
411 * config/tc-m68hc11.c,
413 * config/tc-microblaze.c,
418 * config/tc-score7.c,
420 * config/tc-tic54x.c,
421 * config/tc-tilegx.c,
422 * config/tc-tilepro.c,
423 * config/tc-xgate.c: Formatting.
427 * symbols.c (struct local_symbol): Add "hash" entry. Reorder fields.
428 Delete union. Adjust code throughout file.
429 (struct symbol): Add "hash", "name" and "x" entries. Reorder fields.
431 (struct xsymbol): ..this. New struct. Adjust code throughout file
432 accessing these fields.
433 (struct symbol_entry): Delete.
434 (union symbol_entry): New.
435 (hash_symbol_entry): Adjust for symbol_entry_t change.
436 (symbol_entry_find): Likewise.
437 (eq_symbol_entry): Compare hash values too.
438 (symbol_entry_alloc): Delete.
439 (local_symbol_converted_p, local_symbol_mark_converted): Delete.
440 (local_symbol_get_real_symbol, local_symbol_set_real_symbol): Delete.
441 (local_hash): Delete.
442 (abs_symbol_x, dot_symbol_x): New static var.
443 (symbol_init): New function.
444 (symbol_create): Rewrite.
445 (LOCAL_SYMBOL_CHECK): Delete. Replace uses throughout with simple
446 test of flags.local_symbol.
447 (local_symbol_make): Adjust for struct local_symbol changes.
448 (local_symbol_convert): Rewrite. Adjust all callers.
449 (symbol_table_insert): Simplify.
450 (symbol_clone): Comment on local sym cloning. Handle split symbol
452 (get_real_sym): Delete. Remove all uses.
453 (symbol_find_exact_noref): Simplify.
454 (resolve_local_symbol): Don't resolve non-locals.
455 (S_SET_SEGMENT): Don't special case reg_section.
456 (S_SET_NAME): Set both name and bsym->name.
457 (symbol_mark_resolved, symbol_resolved_p): Simplify.
458 (symbol_symbolS): Update comment.
459 (symbol_begin): Don't create local_hash. Adjust abs_symbol setup.
460 (dot_symbol_init): Adjust dot_symbol setup.
461 (symbol_print_statistics): Delete local_hash stats.
465 * symbols.c (struct symbol_flags): Rename sy_volatile to volatil,
466 and remove sy_ from other field names. Update throughout.
467 (struct symbol): Remove sy_ from field names. Delete unused
468 TARGET_SYMBOL_FIELDS. Update throughout file. Move after..
469 (struct local_symbol): ..here. Remove lsy_ from field names.
470 Delete unused TC_LOCAL_SYMFIELD_TYPE. Update throughout file.
471 (local_symbol_resolved_p, local_symbol_mark_resolved): Delete.
472 Expand uses throughout file.
473 (local_symbol_get_frag, local_symbol_set_frag): Likewise.
474 (symbol_new): Move symbol_table_frozen test to..
475 (symbol_append): ..here, and..
476 (symbol_insert): ..here.
477 (resolve_symbol_value, symbol_relc_make_expr): White space fixes.
478 (HANDLE_XADD_OPT1, HANDLE_XADD_OPT2): Likewise.
479 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Update.
483 * symbols.h (symbol_new, symbol_create, local_symbol_make),
484 (symbol_temp_new): Arrange params as section, frag, offset.
485 * symbols.c: Adjust to suit.
488 * dwarf2dbg.c: Likewise.
491 * itbl-ops.c: Likewise.
494 * subsegs.c: Likewise.
495 * config/obj-coff.c: Likewise.
496 * config/obj-elf.c: Likewise.
497 * config/obj-macho.c: Likewise.
498 * config/tc-aarch64.c: Likewise.
499 * config/tc-alpha.c: Likewise.
500 * config/tc-arc.c: Likewise.
501 * config/tc-arm.c: Likewise.
502 * config/tc-avr.c: Likewise.
503 * config/tc-cr16.c: Likewise.
504 * config/tc-cris.c: Likewise.
505 * config/tc-csky.c: Likewise.
506 * config/tc-dlx.c: Likewise.
507 * config/tc-hppa.c: Likewise.
508 * config/tc-i386.c: Likewise.
509 * config/tc-ia64.c: Likewise.
510 * config/tc-m32r.c: Likewise.
511 * config/tc-m68k.c: Likewise.
512 * config/tc-mips.c: Likewise.
513 * config/tc-mmix.c: Likewise.
514 * config/tc-mn10200.c: Likewise.
515 * config/tc-mn10300.c: Likewise.
516 * config/tc-nds32.c: Likewise.
517 * config/tc-nios2.c: Likewise.
518 * config/tc-ppc.c: Likewise.
519 * config/tc-riscv.c: Likewise.
520 * config/tc-s390.c: Likewise.
521 * config/tc-sh.c: Likewise.
522 * config/tc-tic4x.c: Likewise.
523 * config/tc-tic54x.c: Likewise.
524 * config/tc-xtensa.c: Likewise.
528 * config/tc-csky.c (csky_insn_info): Add member last_isize.
529 (md_assemble): Assign value to csky_insn.last_isize.
530 * testsuite/gas/csky/enhance_dsp.d: Test bloop's two operands form.
531 * testsuite/gas/csky/enhance_dsp.s: Likewise.
535 * NEWS: Mention --reduce-memory-overheads and --hash-size arguments
537 * as.c: Remove the options from help.
538 * doc/as.texi: Remove options.
539 * doc/internals.texi: Remove hash from documentation.
540 * hash.c (struct hash_entry): Remove.
541 (struct hash_control): Likewise.
542 (set_gas_hash_table_size): Likewise.
543 (hash_new_sized): Likewise.
544 (hash_new): Likewise.
545 (hash_die): Likewise.
546 (hash_lookup): Likewise.
547 (hash_insert): Likewise.
548 (hash_jam): Likewise.
549 (hash_replace): Likewise.
550 (hash_find): Likewise.
551 (hash_find_n): Likewise.
552 (hash_delete): Likewise.
553 (hash_traverse): Likewise.
554 (hash_print_statistics): Likewise.
556 (STATBUFSIZE): Likewise.
560 (applicatee): Likewise.
561 (whattable): Likewise.
562 * hash.h (struct hash_control): Likewise.
563 (set_gas_hash_table_size): Likewise.
564 (hash_new): Likewise.
565 (hash_new_sized): Likewise.
566 (hash_die): Likewise.
567 (hash_insert): Likewise.
568 (hash_jam): Likewise.
569 (hash_replace): Likewise.
570 (hash_find): Likewise.
571 (hash_find_n): Likewise.
572 (hash_delete): Likewise.
573 (hash_traverse): Likewise.
574 (hash_print_statistics): Likewise.
578 * config/obj-coff-seh.c (seh_hash_insert): Port to use new
580 (seh_hash_find): Likewise.
581 (seh_hash_find_or_make): Likewise.
582 * config/obj-coff.c (tag_init): Likewise.
583 (tag_insert): Likewise.
584 (tag_find): Likewise.
585 * config/obj-elf.c (struct group_list): Likewise.
586 (build_additional_section_info): Likewise.
587 (free_section_idx): Likewise.
588 (elf_adjust_symtab): Likewise.
589 (elf_frob_file_after_relocs): Likewise.
590 * config/tc-aarch64.c (INSN_SIZE): Likewise.
591 (parse_reg): Likewise.
592 (insert_reg_alias): Likewise.
593 (create_register_alias): Likewise.
595 (parse_shift): Likewise.
596 (parse_pldop): Likewise.
597 (parse_barrier): Likewise.
598 (parse_barrier_psb): Likewise.
599 (parse_bti_operand): Likewise.
600 (parse_sys_reg): Likewise.
601 (parse_sys_ins_reg): Likewise.
602 (lookup_mnemonic): Likewise.
603 (opcode_lookup): Likewise.
604 (parse_operands): Likewise.
605 (checked_hash_insert): Likewise.
606 (sysreg_hash_insert): Likewise.
607 (fill_instruction_hash_table): Likewise.
608 (md_begin): Likewise.
609 * config/tc-alpha.c (struct alpha_reloc_tag): Likewise.
610 (get_alpha_reloc_tag): Likewise.
611 (assemble_tokens_to_insn): Likewise.
612 (assemble_tokens): Likewise.
613 (md_begin): Likewise.
614 * config/tc-arc.c (arc_find_opcode): Likewise.
615 (arc_insert_opcode): Likewise.
616 (find_opcode_match): Likewise.
617 (declare_register): Likewise.
618 (declare_addrtype): Likewise.
619 (md_begin): Likewise.
620 (arc_parse_name): Likewise.
621 (tc_arc_regname_to_dw2regnum): Likewise.
622 (arc_extcorereg): Likewise.
623 * config/tc-arm.c (MVE_BAD_QREG): Likewise.
624 (arm_reg_parse_multi): Likewise.
625 (parse_reloc): Likewise.
626 (insert_reg_alias): Likewise.
627 (create_register_alias): Likewise.
629 (parse_shift): Likewise.
630 (parse_psr): Likewise.
631 (parse_cond): Likewise.
632 (parse_barrier): Likewise.
633 (do_vfp_nsyn_opcode): Likewise.
634 (opcode_lookup): Likewise.
635 (arm_tc_equal_in_insn): Likewise.
636 (md_begin): Likewise.
637 * config/tc-avr.c (md_begin): Likewise.
638 (avr_ldi_expression): Likewise.
639 (md_assemble): Likewise.
640 (avr_update_gccisr): Likewise.
641 (avr_emit_insn): Likewise.
642 * config/tc-cr16.c (get_register): Likewise.
643 (get_register_pair): Likewise.
644 (get_index_register): Likewise.
645 (get_index_register_pair): Likewise.
646 (get_pregister): Likewise.
647 (get_pregisterp): Likewise.
648 (initialise_reg_hash_table): Likewise.
649 (md_begin): Likewise.
650 (cr16_assemble): Likewise.
651 (md_assemble): Likewise.
652 * config/tc-cris.c (cris_insn_first_word_frag): Likewise.
653 (md_begin): Likewise.
654 (cris_process_instruction): Likewise.
655 * config/tc-crx.c (get_register): Likewise.
656 (get_copregister): Likewise.
657 (md_begin): Likewise.
658 (md_assemble): Likewise.
659 * config/tc-csky.c (md_begin): Likewise.
660 (parse_opcode): Likewise.
661 (get_operand_value): Likewise.
662 (v1_work_jbsr): Likewise.
663 (v2_work_rotlc): Likewise.
664 (v2_work_bgeni): Likewise.
665 (v2_work_not): Likewise.
666 * config/tc-d10v.c (sizeof): Likewise.
667 (md_begin): Likewise.
668 (do_assemble): Likewise.
669 (md_apply_fix): Likewise.
670 * config/tc-d30v.c (sizeof): Likewise.
671 (md_begin): Likewise.
672 (do_assemble): Likewise.
673 * config/tc-dlx.c (RELOC_DLX_VTENTRY): Likewise.
674 (md_begin): Likewise.
675 (machine_ip): Likewise.
676 * config/tc-ft32.c (md_begin): Likewise.
677 (md_assemble): Likewise.
678 * config/tc-h8300.c (md_begin): Likewise.
679 (md_assemble): Likewise.
680 * config/tc-hppa.c (pa_ip): Likewise.
681 (md_begin): Likewise.
682 * config/tc-i386.c (md_begin): Likewise.
683 (i386_print_statistics): Likewise.
684 (parse_insn): Likewise.
685 (process_operands): Likewise.
686 (i386_index_check): Likewise.
687 (parse_real_register): Likewise.
688 * config/tc-ia64.c (dot_rot): Likewise.
689 (dot_entry): Likewise.
690 (declare_register): Likewise.
691 (md_begin): Likewise.
692 (ia64_parse_name): Likewise.
693 (md_assemble): Likewise.
694 (dot_alias): Likewise.
695 (do_alias): Likewise.
696 (ia64_adjust_symtab): Likewise.
697 (do_secalias): Likewise.
698 (ia64_frob_file): Likewise.
699 * config/tc-m68hc11.c (m68hc11_print_statistics): Likewise.
700 (md_begin): Likewise.
701 (print_insn_format): Likewise.
702 (md_assemble): Likewise.
703 * config/tc-m68k.c (tc_gen_reloc): Likewise.
705 (md_begin): Likewise.
706 * config/tc-mcore.c (md_begin): Likewise.
707 (md_assemble): Likewise.
708 * config/tc-microblaze.c (md_begin): Likewise.
709 (md_assemble): Likewise.
710 (md_apply_fix): Likewise.
711 * config/tc-mips.c (nopic_need_relax): Likewise.
712 (md_begin): Likewise.
713 (macro_build): Likewise.
714 (mips16_macro_build): Likewise.
715 (mips_lookup_insn): Likewise.
717 (mips16_ip): Likewise.
718 * config/tc-mmix.c (sizeof): Likewise.
719 (mmix_md_begin): Likewise.
720 (md_assemble): Likewise.
721 * config/tc-mn10200.c (md_begin): Likewise.
722 (md_assemble): Likewise.
723 * config/tc-mn10300.c (HAVE_AM30): Likewise.
724 (md_begin): Likewise.
725 (md_assemble): Likewise.
726 * config/tc-moxie.c (md_begin): Likewise.
727 (md_assemble): Likewise.
728 * config/tc-msp430.c (md_begin): Likewise.
729 (msp430_operands): Likewise.
730 (md_assemble): Likewise.
731 * config/tc-nds32.c (PV_DONT_CARE): Likewise.
732 (builtin_isreg): Likewise.
733 (builtin_regnum): Likewise.
734 (nds32_init_nds32_pseudo_opcodes): Likewise.
735 (nds32_lookup_pseudo_opcode): Likewise.
736 (nds32_relax_hint): Likewise.
737 (md_begin): Likewise.
738 (nds32_find_reloc_table): Likewise.
739 (nds32_elf_append_relax_relocs_traverse): Likewise.
740 (nds32_relax_branch_instructions): Likewise.
741 (md_convert_frag): Likewise.
742 (nds32_elf_analysis_relax_hint): Likewise.
743 (tc_nds32_regname_to_dw2regnum): Likewise.
744 * config/tc-nios2.c (nios2_opcode_lookup): Likewise.
745 (nios2_reg_lookup): Likewise.
746 (nios2_ps_lookup): Likewise.
747 (md_begin): Likewise.
748 * config/tc-ns32k.c (struct hash_control): Likewise.
750 (md_begin): Likewise.
751 * config/tc-pdp11.c (md_begin): Likewise.
752 (md_assemble): Likewise.
753 * config/tc-pj.c (fake_opcode): Likewise.
755 (md_begin): Likewise.
756 (md_assemble): Likewise.
757 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
758 (md_assemble): Likewise.
759 * config/tc-pru.c (pru_opcode_lookup): Likewise.
760 (pru_reg_lookup): Likewise.
761 (md_begin): Likewise.
763 * config/tc-riscv.c (init_ext_version_hash): Likewise.
764 (riscv_get_default_ext_version): Likewise.
765 (riscv_set_arch): Likewise.
766 (init_opcode_names_hash): Likewise.
767 (opcode_name_lookup): Likewise.
768 (enum reg_class): Likewise.
769 (hash_reg_name): Likewise.
770 (riscv_init_csr_hash): Likewise.
771 (reg_csr_lookup_internal): Likewise.
772 (reg_lookup_internal): Likewise.
773 (init_opcode_hash): Likewise.
774 (md_begin): Likewise.
775 (DECLARE_CSR): Likewise.
776 (macro_build): Likewise.
777 (riscv_ip): Likewise.
778 * config/tc-s390.c (register_name): Likewise.
779 (s390_setup_opcodes): Likewise.
780 (md_begin): Likewise.
781 (md_assemble): Likewise.
782 (s390_insn): Likewise.
783 * config/tc-score.c (struct s3_reg_map): Likewise.
784 (s3_score_reg_parse): Likewise.
785 (s3_dependency_type_from_insn): Likewise.
786 (s3_parse_16_32_inst): Likewise.
787 (s3_parse_48_inst): Likewise.
788 (s3_insert_reg): Likewise.
789 (s3_build_reg_hsh): Likewise.
790 (s3_build_score_ops_hsh): Likewise.
791 (s3_build_dependency_insn_hsh): Likewise.
792 (s3_begin): Likewise.
793 * config/tc-score7.c (struct s7_reg_map): Likewise.
794 (s7_score_reg_parse): Likewise.
795 (s7_dependency_type_from_insn): Likewise.
796 (s7_parse_16_32_inst): Likewise.
797 (s7_build_score_ops_hsh): Likewise.
798 (s7_build_dependency_insn_hsh): Likewise.
799 (s7_insert_reg): Likewise.
800 (s7_build_reg_hsh): Likewise.
801 (s7_begin): Likewise.
802 * config/tc-sh.c (EMPTY): Likewise.
803 (md_begin): Likewise.
804 (find_cooked_opcode): Likewise.
805 * config/tc-sparc.c (md_begin): Likewise.
806 (sparc_ip): Likewise.
807 * config/tc-spu.c (md_begin): Likewise.
808 (md_assemble): Likewise.
809 * config/tc-tic30.c (md_begin): Likewise.
810 (tic30_operand): Likewise.
811 (tic30_parallel_insn): Likewise.
812 (md_assemble): Likewise.
813 * config/tc-tic4x.c (TIC4X_ALT_SYNTAX): Likewise.
814 (tic4x_asg): Likewise.
815 (tic4x_inst_insert): Likewise.
816 (tic4x_inst_add): Likewise.
817 (md_begin): Likewise.
818 (tic4x_operand_parse): Likewise.
819 (md_assemble): Likewise.
820 * config/tc-tic54x.c (MAX_SUBSYM_HASH): Likewise.
821 (stag_add_field_symbols): Likewise.
822 (tic54x_endstruct): Likewise.
823 (tic54x_tag): Likewise.
824 (tic54x_remove_local_label): Likewise.
825 (tic54x_clear_local_labels): Likewise.
826 (tic54x_var): Likewise.
827 (tic54x_macro_start): Likewise.
828 (tic54x_macro_info): Likewise.
829 (tic54x_macro_end): Likewise.
830 (subsym_isreg): Likewise.
831 (subsym_structsz): Likewise.
832 (md_begin): Likewise.
833 (is_mmreg): Likewise.
835 (encode_condition): Likewise.
836 (encode_cc3): Likewise.
837 (encode_cc2): Likewise.
838 (encode_operand): Likewise.
839 (tic54x_parse_insn): Likewise.
840 (tic54x_parse_parallel_insn_firstline): Likewise.
841 (subsym_create_or_replace): Likewise.
842 (subsym_lookup): Likewise.
843 (subsym_substitute): Likewise.
844 (tic54x_undefined_symbol): Likewise.
845 * config/tc-tic6x.c (md_begin): Likewise.
846 (md_assemble): Likewise.
847 * config/tc-tilegx.c (O_hw2_last_plt): Likewise.
848 (INSERT_SPECIAL_OP): Likewise.
849 (md_begin): Likewise.
850 (tilegx_parse_name): Likewise.
851 (parse_reg_expression): Likewise.
852 (md_assemble): Likewise.
853 * config/tc-tilepro.c (O_tls_ie_load): Likewise.
854 (INSERT_SPECIAL_OP): Likewise.
855 (tilepro_parse_name): Likewise.
856 (parse_reg_expression): Likewise.
857 (md_assemble): Likewise.
858 * config/tc-v850.c (md_begin): Likewise.
859 (md_assemble): Likewise.
860 * config/tc-vax.c (md_ri_to_chars): Likewise.
861 (vip_begin): Likewise.
864 (md_begin): Likewise.
865 * config/tc-wasm32.c (md_begin): Likewise.
866 (md_assemble): Likewise.
867 * config/tc-xgate.c (xgate_parse_operand): Likewise.
868 (md_begin): Likewise.
869 (md_assemble): Likewise.
870 * config/tc-z8k.c (md_begin): Likewise.
871 (md_assemble): Likewise.
875 * dw2gencfi.c (dwcfi_hash_insert): Use htab_t and str_hash_*
877 (dwcfi_hash_find): Likewise.
878 (dwcfi_hash_find_or_make): Likewise.
882 * ecoff.c (INIT_VARRAY): Use htab_t.
883 (add_string): Likewise.
884 (ecoff_read_begin_hook): Use new str_htab_create.
885 (get_tag): Use htab_t.
886 (add_file): Likewise.
890 * hash.h (struct string_tuple): New.
891 (hash_string_tuple): Likewise.
892 (eq_string_tuple): Likewise.
893 (string_tuple_alloc): Likewise.
894 (str_hash_find): Likewise.
895 (str_hash_find_n): Likewise.
896 (str_hash_delete): Likewise.
897 (str_hash_insert): Likewise.
898 (str_htab_create): Likewise.
902 * symbols.c (struct symbol_entry): New.
903 (hash_symbol_entry): Likewise.
904 (eq_symbol_entry): Likewise.
905 (symbol_entry_alloc): Likewise.
906 (symbol_entry_find): Likewise.
907 (local_symbol_make): Use htab hash table.
908 (local_symbol_convert): Likewise.
909 (symbol_table_insert): Likewise.
910 (symbol_find_exact_noref): Likewise.
911 (resolve_local_symbol): Likewise.
912 (resolve_local_symbol_values): Likewise.
913 (symbol_begin): Likewise.
914 (symbol_print_statistics): Likewise.
918 * read.c (struct po_entry): New.
919 (hash_po_entry): Likewise.
920 (eq_po_entry): Likewise.
921 (po_entry_alloc): Likewise.
922 (po_entry_find): Likewise.
923 (pop_insert): Likewise.
924 (pobegin): Use htab hash table.
925 (read_a_source_file): Likewise.
927 (read_print_statistics): Likewise.
928 * config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
929 * config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
933 * config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
934 * macro.c (struct hash_control): Use htab.
935 (macro_init): Likewise.
936 (do_formals): Likewise.
937 (free_macro): Likewise.
938 (define_macro): Likewise.
939 (sub_actual): Likewise.
940 (macro_expand_body): Likewise.
941 (macro_expand): Likewise.
942 (check_macro): Likewise.
943 (delete_macro): Likewise.
944 (expand_irp): Likewise.
945 * macro.h (struct macro_hash_entry): New struct.
946 (hash_macro_entry): New.
947 (eq_macro_entry): Likewise.
948 (macro_entry_alloc): Likewise.
949 (macro_entry_find): Likewise.
950 (struct formal_hash_entry): Likewise.
951 (hash_formal_entry): Likewise.
952 (eq_formal_entry): Likewise.
953 (formal_entry_alloc): Likewise.
954 (formal_entry_find): Likewise.
958 * as.h: Include hashtab.h.
959 * hash.c (htab_insert): New.
960 (htab_print_statistics): Likewise.
961 * hash.h (htab_insert): Likewise.
962 (htab_print_statistics): Likewise.
966 * testsuite/gas/ppc/int128.s: Correct vcmpuq.
967 * testsuite/gas/ppc/int128.d: Update.
968 * testsuite/gas/ppc/xvtlsbb.d: Update.
972 * testsuite/gas/ppc/vsx4.s: Update test to use new mnemonic.
973 * testsuite/gas/ppc/vsx4.d: Likewise.
977 * config/obj-elf.c (obj_elf_change_section): When repurposing an
978 existing symbol, ensure that we set sy_value as per other (fresh)
980 * testsuite/gas/elf/elf.exp: Add new test.
981 * testsuite/gas/elf/section-symbol-redef.d: New test.
982 * testsuite/gas/elf/section-symbol-redef.s: Input for test.
987 * config/obj-som.c (obj_som_init_stab_section): Do nothing if the
988 $GDB_DEBUG$ section has already been created.
992 * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
993 NS_FD shape when MVE is present
994 * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
995 * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
996 * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
997 * testsuite/gas/arm/mve-vcvtne-it.d: New test.
998 * testsuite/gas/arm/mve-vcvtne-it.s: New test.
1002 * testsuite/gas/aarch64/mpam-bad.d: New test.
1003 * testsuite/gas/aarch64/mpam-bad.l: Error output.
1004 * testsuite/gas/aarch64/mpam-bad.s: Input.
1005 * testsuite/gas/aarch64/mpam.d: New test.
1006 * testsuite/gas/aarch64/mpam.s: Input.
1011 * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
1012 of the -mno-csr-check option.
1016 * po/ru.po: Updated Russian translation.
1020 * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
1021 a long system register.
1022 (parse_sys_ins_reg): Likewise.
1023 (sysreg_hash_insert): New.
1024 (md_begin): Use sysreg_hash_insert() to ensure all system
1025 registers are no longer than the maximum length at startup.
1026 * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
1027 * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
1028 * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
1032 * config/tc-aarch64.c (parse_sys_reg): Call to
1033 aarch64_sys_ins_reg_supported_p instead of
1034 aarch64_sys_reg_supported_p.
1035 (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
1036 * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
1037 * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
1038 * testsuite/gas/aarch64/sysreg-5.s: New test.
1042 * testsuite/gas/ppc/power8.d,
1043 * testsuite/gas/ppc/power8.s: Add miso.
1044 * testsuite/gas/ppc/power9.d,
1045 * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
1049 * testsuite/gas/ppc/power8.d: Update.
1050 * testsuite/gas/ppc/vsx2.d: Update.
1054 * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
1055 stswi, or stswx in little-endian mode.
1056 * testsuite/gas/ppc/476.d,
1057 * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
1058 * testsuite/gas/ppc/a2.d,
1059 * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
1060 * testsuite/gas/ppc/be.d,
1061 * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
1062 * testsuite/gas/ppc/le_error.d,
1063 * testsuite/gas/ppc/le_error.l: New little-endian test.
1064 * testsuite/gas/ppc/ppc.exp: Run new tests.
1068 * read.c (read_a_source_file): Ignore rest of line on overflow
1073 * read.c (read_a_source_file): Use long for local labels, detect
1074 overflow and raise an error for overly-long labels.
1075 * testsuite/gas/all/gas.exp: Add local-label-overflow test.
1076 * testsuite/gas/all/local-label-overflow.d: New test.
1077 * testsuite/gas/all/local-label-overflow.l: Error output.
1078 * testsuite/gas/all/local-label-overflow.s: Input.
1082 * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
1083 "sout/soutb #imm,reg"
1087 * NEWS: Mention {disp16} pseudo prefix.
1091 * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
1096 * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
1097 DW_FORM_udata for DW_AT_high_pc.
1098 (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
1099 DWARF2_VERSION >= 4.
1100 * read.c (emit_leb128_exp): No longer static.
1101 * read.h (emit_leb128_exp): Define.
1105 * gas/dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
1106 least one directory if there is at least one file. Use dirs[1]
1107 if dirs[0] is not set, or if there is no dirs[1] the current
1108 working directory. Use files[1] filename, when files[0] filename
1113 * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
1115 * gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
1116 * gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
1117 * gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
1118 * gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
1119 * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
1123 * doc/as.texi (--gdwarf-[345]): Fix typo.
1127 * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
1128 (md_parse_option): Remove case for OPTION_MOVE_DATA.
1129 (md_longopts): Remove "md" entry.
1130 (md_show_usage): Likewise.
1135 * config/tc-i386.c (_i386_insn::disp_encoding): Add
1136 disp_encoding_16bit.
1137 (parse_insn): Check Prefix_XXX for pseudo prefixes. Handle
1139 (build_modrm_byte): Handle {disp16}.
1140 (i386_index_check): Check invalid {disp16} and {disp32} pseudo
1142 * doc/c-i386.texi: Update {disp32} documentation and document
1144 * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
1145 * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
1147 * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
1148 tests with 128-byte displacement. Add {disp16} tests.
1149 * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
1150 vmovaps test. Add (%r13)/(%r13d) tests.
1151 * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
1152 * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
1153 * testsuite/gas/i386/inval-pseudo.l: Updated.
1154 * testsuite/gas/i386/pseudos.d: Likewise.
1155 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1159 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1160 * Makefile.in, doc/Makefile.in: Regenerate.
1161 * configure: Regenerate.
1165 * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
1166 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1167 * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
1168 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
1169 * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
1170 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
1174 * as.c (dwarf_level): Initialise to 3 in case this is not set on
1179 * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
1180 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
1181 * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
1182 * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
1183 * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
1184 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
1185 * testsuite/gas/mips/mips.exp: Run the new tests.
1189 * testsuite/gas/mips/global-local-symtab-o32.d: New test.
1190 * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
1191 * testsuite/gas/mips/global-local-symtab-n32.d: New test.
1192 * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
1193 * testsuite/gas/mips/global-local-symtab-n64.d: New test.
1194 * testsuite/gas/mips/global-local-symtab.s: New test source.
1195 * testsuite/gas/mips/mips.exp: Run the new tests.
1200 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
1201 (%bp)/(%ebp)/(%rbp) for {disp32}.
1202 * doc/c-i386.texi: Update {disp32} documentation.
1203 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
1204 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
1205 * testsuite/gas/i386/pseudos.d: Updated.
1206 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1210 * doc/as.texi: Replace preceeded with preceded.
1214 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
1219 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
1224 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
1233 * testsuite/gas/mips/jal-xgot-irix.d: New file.
1234 * testsuite/gas/mips/jalr2-irix.d: New file.
1235 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
1237 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
1239 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
1240 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
1241 `*-*-irix*' targets. Add source file designator.
1243 `*-*-irix*' targets.
1246 * testsuite/gas/mips/jalr2.d: Add name designator.
1247 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
1248 tests involving the JALR relocation throughout.
1252 * testsuite/gas/mips/mips.exp: Use a helper variable for
1253 IRIX/non-IRIX test selection.
1257 * testsuite/gas/i386/evex-no-scale-64.d,
1258 testsuite/gas/i386/addr32.d,
1259 testsuite/gas/i386/x86-64-addr32-intel.d,
1260 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
1264 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
1268 * testsuite/gas/i386/evex-no-scale-32.d,
1269 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
1270 * testsuite/gas/i386/evex-no-scale-32.s,
1271 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
1272 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
1273 instead of .section.
1274 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
1279 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
1280 (my_getSmallExpression): Adjust accordingly.
1285 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
1286 conditional around it.
1287 (md_begin): Insert backslash into operand_chars[] when slash is
1288 a comment character.
1289 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
1290 \* as operators when / may be a comment character.
1291 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
1292 * testsuite/gas/i386/i386.exp: Run new test.
1297 * app.c (last_char): Drop TC_ARM conditional around it.
1298 (struct app_save): Drop TC_ARM conditional around last_char.
1299 (app_push, app_pop): Drop TC_ARM conditional from last_char
1301 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
1302 backslash-precedes-comment-character check.
1306 * config/tc-i386.c (frag_opcode_byte): New.
1307 (output_branch): Emit error when in absolute section.
1308 (output_jump, output_insn): Use frag_opcode_byte. Handle being
1309 in absolute section.
1310 (output_interseg_jump, output_disp, output_imm): Handle being in
1312 * testsuite/gas/i386/sizing.s,
1313 testsuite/gas/i386/sizing32.d,
1314 testsuite/gas/i386/sizing64.d: New.
1315 * testsuite/gas/i386/i386.exp: Run new tests.
1319 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
1320 is_elf_format as applicable; merely exclude iamcu tests.
1325 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
1326 against section to PC32 reloc.
1327 * testsuite/gas/i386/relax-5.d: Updated.
1328 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
1333 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
1334 * testsuite/gas/i386/addr32.d: Likewise.
1335 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1336 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1340 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
1341 the addend field of REL relocations. Store the full addend into
1342 the note for REL relocations.
1346 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
1348 * testsuite/gas/i386/x86-64-stack-intel.d,
1349 testsuite/gas/i386/x86-64-stack-suffix.d,
1350 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
1354 * testsuite/gas/i386/disassem.d,
1355 testsuite/gas/i386/ilp32/x86-64-branch.d,
1356 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
1357 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
1358 testsuite/gas/i386/noreg32.d,
1359 testsuite/gas/i386/noreg64-rex64.d,
1360 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
1361 testsuite/gas/i386/opcode.d,
1362 testsuite/gas/i386/solaris/x86-64-branch-2.d,
1363 testsuite/gas/i386/solaris/x86-64-jump.d,
1364 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
1365 testsuite/gas/i386/solaris/x86-64-nop-3.d,
1366 testsuite/gas/i386/solaris/x86-64-nop-4.d,
1367 testsuite/gas/i386/solaris/x86-64-nop-5.d,
1368 testsuite/gas/i386/solaris/x86-64-relax-2.d,
1369 testsuite/gas/i386/solaris/x86-64-relax-3.d,
1370 testsuite/gas/i386/x86-64-align-branch-1a.d,
1371 testsuite/gas/i386/x86-64-align-branch-1b.d,
1372 testsuite/gas/i386/x86-64-align-branch-1c.d,
1373 testsuite/gas/i386/x86-64-align-branch-1d.d,
1374 testsuite/gas/i386/x86-64-align-branch-1e.d,
1375 testsuite/gas/i386/x86-64-align-branch-1f.d,
1376 testsuite/gas/i386/x86-64-align-branch-1g.d,
1377 testsuite/gas/i386/x86-64-align-branch-1h.d,
1378 testsuite/gas/i386/x86-64-align-branch-1i.d,
1379 testsuite/gas/i386/x86-64-align-branch-2a.d,
1380 testsuite/gas/i386/x86-64-align-branch-2b.d,
1381 testsuite/gas/i386/x86-64-align-branch-2c.d,
1382 testsuite/gas/i386/x86-64-align-branch-3.d,
1383 testsuite/gas/i386/x86-64-align-branch-4a.d,
1384 testsuite/gas/i386/x86-64-align-branch-4b.d,
1385 testsuite/gas/i386/x86-64-align-branch-5.d,
1386 testsuite/gas/i386/x86-64-align-branch-6.d,
1387 testsuite/gas/i386/x86-64-branch-2.d,
1388 testsuite/gas/i386/x86-64-branch-3.d,
1389 testsuite/gas/i386/x86-64-branch.d,
1390 testsuite/gas/i386/x86-64-disassem.d,
1391 testsuite/gas/i386/x86-64-disp32.d,
1392 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
1393 testsuite/gas/i386/x86-64-gotpcrel.d,
1394 testsuite/gas/i386/x86-64-ifunc.d,
1395 testsuite/gas/i386/x86-64-jump.d,
1396 testsuite/gas/i386/x86-64-lfence-byte.d,
1397 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
1398 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
1399 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
1400 testsuite/gas/i386/x86-64-lfence-load.d,
1401 testsuite/gas/i386/x86-64-lfence-ret-a.d,
1402 testsuite/gas/i386/x86-64-lfence-ret-b.d,
1403 testsuite/gas/i386/x86-64-lfence-ret-c.d,
1404 testsuite/gas/i386/x86-64-lfence-ret-d.d,
1405 testsuite/gas/i386/x86-64-lfence-ret-e.d,
1406 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
1407 testsuite/gas/i386/x86-64-mpx-branch-1.d,
1408 testsuite/gas/i386/x86-64-mpx.d,
1409 testsuite/gas/i386/x86-64-nop-3.d,
1410 testsuite/gas/i386/x86-64-nop-4.d,
1411 testsuite/gas/i386/x86-64-nop-5.d,
1412 testsuite/gas/i386/x86-64-nops-7.d,
1413 testsuite/gas/i386/x86-64-notrack.d,
1414 testsuite/gas/i386/x86-64-opcode.d,
1415 testsuite/gas/i386/x86-64-relax-2.d,
1416 testsuite/gas/i386/x86-64-relax-3.d,
1417 testsuite/gas/i386/x86-64-relax-4.d,
1418 testsuite/gas/i386/x86-64-rtm.d,
1419 testsuite/gas/i386/x86-64-stack.d,
1420 testsuite/gas/i386/x86-64-unique.d,
1421 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
1426 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
1428 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
1429 * testsuite/gas/i386/addr32.d: Updated.
1430 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1431 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1432 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
1433 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
1437 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
1438 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
1439 * testsuite/gas/i386/intel.d,
1440 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
1444 * testsuite/gas/i386/prefix.d: Adjust expectations.
1448 * testsuite/gas/i386/x86-64-avx-intel.d,
1449 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
1453 * testsuite/gas/i386/movbe-suffix.d,
1454 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
1455 * testsuite/gas/i386/i386.exp: Run new tests.
1459 * testsuite/gas/i386/crc32-suffix.d,
1460 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
1461 * testsuite/gas/i386/i386.exp: Run new tests.
1462 * testsuite/gas/i386/arch-10-bdver1.d,
1463 testsuite/gas/i386/arch-10-bdver2.d,
1464 testsuite/gas/i386/arch-10-bdver3.d,
1465 testsuite/gas/i386/arch-10-bdver4.d,
1466 testsuite/gas/i386/arch-10-btver1.d,
1467 testsuite/gas/i386/arch-10-btver2.d,
1468 testsuite/gas/i386/arch-10-lzcnt.d,
1469 testsuite/gas/i386/arch-10-prefetchw.d,
1470 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
1471 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
1472 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
1473 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
1474 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
1475 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
1476 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
1477 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
1478 testsuite/gas/i386/x86-64-arch-2-btver1.d,
1479 testsuite/gas/i386/x86-64-arch-2-btver2.d,
1480 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
1481 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
1482 testsuite/gas/i386/x86-64-arch-2.d,
1483 testsuite/gas/i386/x86-64-crc32.d,
1484 testsuite/gas/i386/x86-64-pseudos.d,
1485 testsuite/gas/i386/x86-64-sse-noavx.d,
1486 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
1490 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1491 ModR/M-encoded byte register cases.
1492 * testsuite/gas/i386/x86-64-pseudos.d,
1493 testsuite/gas/i386/x86-64-reg-intel.d,
1494 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
1498 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1499 not-ModR/M-encoded byte register cases.
1500 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
1504 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
1505 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
1506 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
1507 testsuite/gas/i386/ilp32/x86-64-avx.d,
1508 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
1509 testsuite/gas/i386/ilp32/x86-64-crc32.d,
1510 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
1511 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
1512 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
1513 testsuite/gas/i386/ilp32/x86-64-reg.d,
1514 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
1515 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
1516 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
1517 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
1518 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
1519 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
1524 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
1529 * po/fr.po: Updated French translation.
1533 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
1534 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1535 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1536 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1540 * config/tc-i386.c (output_insn): Check i.xstate to set
1541 GNU_PROPERTY_X86_FEATURE_2_TMM.
1542 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
1543 x86-64-property-8 and x86-64-property-9.
1544 * testsuite/gas/i386/x86-64-property-7.d: New file.
1545 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
1546 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
1547 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
1548 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
1549 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
1553 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
1554 has_regymm, has_regzmm and has_regtmm. Add xstate.
1555 (md_assemble): Set i.xstate from operand types in instruction
1557 (build_modrm_byte): Updated.
1558 (output_insn): Check i.xstate.
1559 * testsuite/gas/i386/i386.exp: Run property-6 and
1561 * testsuite/gas/i386/property-6.d: New file.
1562 * testsuite/gas/i386/property-6.s: Updated.
1563 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
1567 * testsuite/gas/i386/property-5.d: Correct test name.
1571 * NEWS: Mention support for Intel AMX instructions.
1572 * config/tc-i386.c (i386_error): Add invalid_sib_address.
1573 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
1574 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
1575 (match_simd_size): Add tmmword check.
1576 (operand_type_match): Add tmmword.
1577 (type_names): Add rTMM.
1578 (i386_error): Add invalid_tmm_register_set.
1579 (check_VecOperands): Handle invalid_sib_address and
1580 invalid_tmm_register_set.
1581 (match_template): Handle invalid_sib_address.
1582 (build_modrm_byte): Handle non-vector SIB and zmmword.
1583 (i386_index_check): Disallow RegIP for non-vector SIB.
1584 (check_register): Handle zmmword.
1585 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
1586 * testsuite/gas/i386/i386.exp: Add AMX new tests.
1587 * testsuite/gas/i386/intel-regs.d: Add tmm.
1588 * testsuite/gas/i386/intel-regs.s: Add tmm.
1589 * testsuite/gas/i386/x86-64-amx-intel.d: New.
1590 * testsuite/gas/i386/x86-64-amx-inval.l: New.
1591 * testsuite/gas/i386/x86-64-amx-inval.s: New.
1592 * testsuite/gas/i386/x86-64-amx.d: New.
1593 * testsuite/gas/i386/x86-64-amx.s: New.
1594 * testsuite/gas/i386/x86-64-amx-bad.d: New.
1595 * testsuite/gas/i386/x86-64-amx-bad.s: New.
1599 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
1600 readelf's line table decoding.
1601 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1602 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1603 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1604 * testsuite/gas/elf/dwarf2-15.d: Likewise.
1605 * testsuite/gas/elf/dwarf2-16.d: Likewise.
1606 * testsuite/gas/elf/dwarf2-17.d: Likewise.
1607 * testsuite/gas/elf/dwarf2-18.d: Likewise.
1608 * testsuite/gas/elf/dwarf2-19.d: Likewise.
1609 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1610 * testsuite/gas/elf/dwarf2-6.d: Likewise.
1611 * testsuite/gas/elf/dwarf2-7.d: Likewise.
1615 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
1616 VEX/EVEX vector instructions.
1617 * testsuite/gas/i386/property-4.d: New file.
1618 * testsuite/gas/i386/property-4.s: Likewise.
1619 * testsuite/gas/i386/property-5.d: Likewise.
1620 * testsuite/gas/i386/property-5.s: Likewise.
1621 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
1622 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
1626 * NEWS: Mention --enable-x86-used-note.
1627 * configure.ac: Configure with --enable-x86-used-note by default
1629 * configure: Regenerated.
1633 * config/obj-coff.h: Remove TE_PE support.
1634 * config/tc-ppc.c: Likewise.
1635 * config/tc-ppc.h: Likewise.
1636 * configure.tgt: Remove powerpc PE and powerpc lynxos.
1637 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
1639 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
1643 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
1645 * testsuite/gas/i386/i386.exp: Run new tests.
1649 * config/tc-arc.c (find_opcode_match): Add error messages.
1650 * testsuite/gas/arc/add_s-err.s: Update test.
1651 * testsuite/gas/arc/asm-errors.err: Likewise.
1652 * testsuite/gas/arc/cpu-em-err.s: Likewise.
1653 * testsuite/gas/arc/hregs-err.s: Likewise.
1654 * testsuite/gas/arc/warn.s: Likewise.
1659 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
1663 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
1664 * testsuite/gas/ppc/ppc.exp: Likewise.
1665 * testsuite/gas/all/weakref1l.d: Likewise.
1669 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
1674 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
1675 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
1676 testsuite/gas/i386/x86-64-evex-wig1.d,
1677 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
1682 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
1683 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
1684 * testsuite/gas/i386/avx512f-opts-intel.d,
1685 testsuite/gas/i386/avx512f-opts.d
1686 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
1687 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
1692 * config/tc-arm.c: Fix spelling mistake.
1693 * config/tc-riscv.c: Likewise.
1694 * config/tc-z80.c: Likewise.
1695 * po/gas.pot: Regenerate.
1699 * po/uk.po: Updated Ukranian translation.
1703 * configure: Regenerate.
1704 * po/gas.pot: Regenerate.
1708 * version.m4: Change version number to 2.35.50.
1709 * configure: Regenerate.
1710 * po/bfd.pot: Regenerate.
1714 Binutils 2.35 branch created.
1719 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
1723 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
1724 swap two source operands.
1728 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
1732 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
1733 segfault on negative chars.
1734 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
1735 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
1740 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
1742 * testsuite/gas/ia64/unwind.d: Likewise.
1743 * testsuite/gas/mmix/bspec-1.d: Likewise.
1744 * testsuite/gas/mmix/bspec-2.d: Likewise.
1745 * testsuite/gas/mmix/comment-1.d: Likewise.
1746 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1750 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
1754 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
1755 in data sections, and mep.
1759 * NEWS: Mention x86 NaCl target support removal.
1760 * config/tc-i386.c: Remove x86 NaCl target support.
1761 * config/tc-i386.h: Likewise.
1762 * configure.tgt: Likewise.
1763 * testsuite/gas/i386/i386.exp: Likewise.
1764 * testsuite/gas/i386/iamcu-1.d: Likewise.
1765 * testsuite/gas/i386/iamcu-2.d: Likewise.
1766 * testsuite/gas/i386/iamcu-3.d: Likewise.
1767 * testsuite/gas/i386/iamcu-4.d: Likewise.
1768 * testsuite/gas/i386/iamcu-5.d: Likewise.
1769 * testsuite/gas/i386/k1om.d: Likewise.
1770 * testsuite/gas/i386/l1om.d: Likewise.
1774 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
1775 checking into riscv_csr_address.
1776 (riscv_csr_version_check): Likewise.
1777 (riscv_csr_address): New function. Return the suitable CSR address
1778 after checking the ISA dependency and versions. Issue warnings if
1779 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
1780 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
1781 priv spec versions for them.
1782 (reg_csr_lookup_internal): Call riscv_csr_address to find the
1783 suitable CSR address.
1784 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
1785 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1786 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1787 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
1788 priv spec warnings here. These warnings are added by accident.
1789 Remove them and only focus on the ISA dependency warnings.
1790 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1791 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1792 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
1793 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
1794 than the privileged ones.
1795 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1796 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1797 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1798 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
1799 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1800 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
1801 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
1802 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
1803 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
1804 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
1808 * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
1809 (md_assemble): Don't process ImmExt without operands.
1814 * config/tc-mmix.c (md_assemble) <fixup for
1815 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
1816 Also, set its fx_no_overflow.
1817 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
1818 Similarly this fixup affects 4 bytes, not 8 and needs its
1820 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
1821 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
1825 * config/tc-s12z.c: Use C style comments.
1826 * config/tc-z80.c: Likewise.
1827 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
1831 * config/tc-i386.c (md_assemble): Process ImmExt without
1836 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
1837 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
1838 VECSIB256 and VECSIB512, respectively.
1839 (build_modrm_byte): Replace vecsib with sib.
1843 * testsuite/gas/i386/nop-1-suffix.d: New.
1844 * testsuite/gas/i386/i386.exp: Run new test.
1848 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
1849 (md_pseudo_table): Handle "gnu_attribute".
1850 * doc/as.texi: Document GNU attribute for M68K.
1855 * config/tc-arm.c (arm_force_relocation): Force resolution of
1856 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
1857 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
1861 * config/tc-i386.c (md_assemble): Move call to process_immext()
1863 (process_operands): ... here.
1867 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
1868 diagnostic when there is a sizing prefix. Switch to word/dword/
1869 qword encoding when there is a sizing prefix and no (explicit or
1871 (update_imm): Handle presence of a sizing prefix.
1872 * testsuite/gas/i386/noreg16-data32.d,
1873 testsuite/gas/i386/noreg32-data16.d,
1874 testsuite/gas/i386/noreg32-data16.e,
1875 testsuite/gas/i386/noreg64-data16.d,
1876 testsuite/gas/i386/noreg64-data16.e,
1877 testsuite/gas/i386/noreg64-rex64.d: New.
1878 * testsuite/gas/i386/i386.exp: Run new tests.
1879 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
1880 Introduce and use pfx* macros.
1881 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
1883 * testsuite/gas/i386/noreg16.d: Adjust expectations.
1887 * testsuite/gas/i386/avx-16bit.d,
1888 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
1889 testsuite/gas/i386/avx512f-16bit.d,
1890 testsuite/gas/i386/avx512f.d,
1891 testsuite/gas/i386/evex-lig256.d,
1892 testsuite/gas/i386/evex-lig512.d
1893 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
1894 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
1895 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
1896 testsuite/gas/i386/sse2-16bit.d,
1897 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
1902 * config/tc-i386.c (md_assemble): Also reject explicit REX
1903 prefixes with VEX and alike encoded insns. Zap consumed bits
1905 (output_insn): Don't ignore REX prefix for VEX and alike
1906 encodings; abort() instead if encountered.
1907 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
1909 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
1910 * testsuite/gas/i386/x86-64-pseudos.d,
1911 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
1915 * config/tc-i386.c (process_operands): Translate explicit REX
1916 prefix into i.rex for SSE2AVX templates.
1917 (set_rex_vrex): New helper.
1918 (build_modrm_byte): Use it.
1919 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
1921 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1925 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
1926 templates when there's no data size prefix.
1927 (md_assemble): Reject data size prefix also for legacy encoded
1929 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
1930 Uncomment previously not working line.
1931 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
1933 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
1934 testsuite/gas/i386/sse2avx.d: Adjust expectations.
1938 * config/tc-i386.c (build_evex_prefix): Drop early setting of
1943 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
1944 explicit_priv_attr. It used to indicate CSR or priv instructions are
1946 (riscv_is_priv_insn): Return True if it is a privileged instruction.
1947 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
1948 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
1949 (riscv_write_out_attrs): Clarification of when to generate the elf
1950 priv spec attributes.
1951 * testsuite/gas/riscv/attribute-11.s: Add comments.
1952 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
1953 `priv_insn_<n>` to decide which priv instruction is expected to used.
1955 * testsuite/gas/riscv/attribute-14a.d: Likewise.
1956 * testsuite/gas/riscv/attribute-14b.d: Likewise.
1957 * testsuite/gas/riscv/attribute-14c.d: Likewise.
1958 * testsuite/gas/riscv/attribute-14d.d: Likewise.
1959 * testsuite/gas/riscv/attribute-14e.d: Likewise.
1963 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
1964 (riscv_set_default_priv_spec): Get the priv spec version from the
1965 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
1969 * configure.tgt: Set bfd_gas for all SH targets.
1973 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
1974 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
1979 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
1980 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
1981 * doc/c-i386.texi: Add avx512_vp2intersect.
1985 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
1987 * testsuite/gas/i386/sse-check.s: Adjust comment.
1988 * testsuite/gas/i386/sse-check-error.l,
1989 testsuite/gas/i386/sse-check-warn.e,
1990 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
1995 * config/tc-tic30.h: Remove OBJ_AOUT support.
1996 * configure.tgt: Delete tic30-*-*aout* entry.
2000 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
2002 (elf32xtensa_abi): New declaration.
2003 (option_abi_windowed, option_abi_call0): New enum constants.
2004 (md_longopts): Add entries for --abi-windowed and --abi-call0.
2005 (md_parse_option): Add handlers for --abi-windowed and
2007 (xtensa_add_config_info): Use xtensa_abi_choice instead of
2008 XSHAL_ABI to format ABI tag.
2009 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
2010 --abi-call0 to the list of options.
2011 * doc/c-xtensa.texi: Add description for options --abi-windowed
2013 * testsuite/gas/xtensa/abi-call0.d: New test definition.
2014 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
2015 * testsuite/gas/xtensa/abi.s: New test source.
2020 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
2022 * testsuite/gas/i386/tsxldtrk.s: Likewise.
2023 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2024 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
2028 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
2029 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2030 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
2034 * doc/c-avr.texi: Improve wording.
2038 * testsuite/gas/i386/x86-64-pseudos-bad.s,
2039 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
2043 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
2045 * testsuite/gas/i386/prefix.d: Adjust expectations.
2049 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
2050 with VEX/EVEX encoding tests.
2051 * testsuite/gas/i386/prefix.d: Adjust expectations.
2055 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
2057 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
2058 * testsuite/gas/i386/noreg64.d: Adjust expectations.
2059 * testsuite/gas/i386/noreg-intel64.d,
2060 testsuite/gas/i386/noreg-intel64.l,
2061 testsuite/gas/i386/noreg-intel64.s: New.
2062 * testsuite/gas/i386/i386.exp: Run new tests.
2066 * config/tc-i386.c (vex_encoding_error): New enumerator.
2067 (VEX_check_operands): Rename to VEX_check_encoding. Check
2068 for vex_encoding_error. Move Imm4 handling ...
2069 (check_VecOperands): ... here.
2070 (match_template): Call VEX_check_encoding when there are no
2071 operands. Split construct calling check_VecOperands and
2072 VEX_check_encoding (when there are operands).
2073 (check_register): Don't blindly set vex_encoding_evex.
2074 * testsuite/gas/i386/pseudos-bad.s,
2075 testsuite/gas/i386/pseudos-bad.l: New.
2076 * testsuite/gas/i386/i386.exp: Run new test.
2077 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
2081 * config/tc-arm.c (insns): Add dfb.
2082 * testsuite/gas/arm/dfb.d: New test.
2083 * testsuite/gas/arm/dfb.s: Input for test.
2087 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
2091 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
2095 * config/tc-i386.c (check_byte_reg): Drop dead conditional
2100 * config/tc-i386.c (check_register): Split RegTR handling, to
2101 fail recognition also in 64-bit mode as well as with i586 or
2102 i686 explicitly enabled.
2103 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
2104 * testsuite/gas/i386/x86_64-intel.d,
2105 testsuite/gas/i386/x86_64.d: Adjust expectations.
2109 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
2110 * testsuite/gas/cfi/cfi.exp: Run this test.
2114 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
2115 check to %st(N) parsing logic.
2116 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
2120 * config/tc-i386.c (bad_reg): New.
2121 (check_VecOperations, i386_att_operand, i386_parse_name): Check
2123 (check_register): New, broken out from ...
2124 (parse_real_register): ... here. Call it.
2125 (parse_register): Call it, and error upon failure.
2126 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
2127 testsuite/gas/i386/x86-64-equ-bad.s,
2128 testsuite/gas/i386/x86-64-equ-bad.l: New.
2129 * testsuite/gas/i386/i386.exp: Run new tests.
2133 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
2134 * doc/c-ppc.texi: Likewise.
2138 * config/tc-ppc.c: Update throughout for reloc renaming.
2142 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
2147 * config/tc-riscv.c (explicit_csr): New static boolean.
2148 Used to indicate CSR are explictly used.
2149 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
2150 (riscv_write_out_attrs): If we already have set elf priv
2151 attributes, then generate them. Otherwise, don't generate
2152 them when no CSR are used.
2153 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
2154 * testsuite/gas/riscv/attribute-02.d: Likewise.
2155 * testsuite/gas/riscv/attribute-03.d: Likewise.
2156 * testsuite/gas/riscv/attribute-04.d: Likewise.
2157 * testsuite/gas/riscv/attribute-05.d: Likewise.
2158 * testsuite/gas/riscv/attribute-06.d: Likewise.
2159 * testsuite/gas/riscv/attribute-07.d: Likewise.
2160 * testsuite/gas/riscv/attribute-08.d: Likewise.
2161 * testsuite/gas/riscv/attribute-09.d: Likewise.
2162 * testsuite/gas/riscv/attribute-10.d: Likewise.
2163 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2164 * testsuite/gas/riscv/attribute-11.s: New testcase.
2165 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
2166 used, so we should output the ELF priv attributes.
2167 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
2168 used, so output the priv attributes according to the -mpriv-spec.
2169 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
2170 used, so ignore the -mpriv-spec setting.
2174 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
2175 cgen_get_insn_value.
2176 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
2177 endianness to cgen_get_insn_value and cgen_put_insn_value.
2181 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
2182 cgen_put_insn_value.
2186 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
2188 (md_assemble): Remove no longer needed hack.
2192 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
2193 cgen_put_insn_value.
2194 (gas_cgen_md_apply_fix): Likewise.
2195 (gas_cgen_md_apply_fix): Likewise.
2196 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
2197 cgen_put_insn_value.
2198 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
2199 cgen_put_insn_value.
2203 * testsuite/config/default.exp: Remove global directive outside
2205 * testsuite/gas/mep/complex-relocs.exp: Likewise.
2206 * testsuite/gas/microblaze/relax_size.exp: Likewise.
2207 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
2208 * testsuite/gas/mt/relocs.exp: Likewise.
2209 * testsuite/gas/rx/rx.exp: Likewise.
2213 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
2219 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
2220 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
2221 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
2222 Move B before SB. Move J before UJ.
2226 * write.c (relax_segment): Fix handling of negative offset when
2227 relaxing an rs_org frag.
2228 * testsuite/gas/aarch64/org-neg.d: New test.
2229 * testsuite/gas/aarch64/org-neg.l: Error output for test.
2230 * testsuite/gas/aarch64/org-neg.s: Input for test.
2231 * testsuite/gas/arm/org-neg.d: New test.
2232 * testsuite/gas/arm/org-neg.l: Error output for test.
2233 * testsuite/gas/arm/org-neg.s: Input for test.
2237 Fix unexpected failures in gas testsuite for pdp11-aout target.
2238 These are caused by the PDP11's mix of little-endian octets in
2239 shorts but shorts in big endian order for long or quad.
2241 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
2242 * testsuite/gas/all/gas.exp: Select alternate test scripts for
2243 pdp11, skip octa test completely.
2244 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
2245 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
2246 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
2250 * frags.c (frag_grow): Fix comment.
2255 * config/tc-pdp11.c (parse_reg): Distinguish register names from
2256 symbols that begin with a register name.
2257 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
2258 * testsuite/gas/pdp11/pr26001.s: Likewise.
2259 * testsuite/gas/pdp11/pr26001.d: Likewise.
2263 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
2264 pointer when creating struct riscv_csr_extra.
2268 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
2269 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
2270 * testsuite/gas/i386/inval-avx512f.l: Updated.
2274 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
2275 load/store instruction variants with alignment hints.
2276 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
2277 instruction variants with alignment hints.
2282 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
2283 instead of R_XGATE_PCREL_X.
2284 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
2285 BFD_RELOC_XGATE_PCREL_X.
2290 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
2291 with &fragP->fr_literal[0].
2296 * config/tc-vax.c (md_estimate_size_before_relax): Replace
2297 fragP->fr_literal with &fragP->fr_literal[0].
2298 (md_convert_frag): Likewise.
2303 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
2304 with &fragP->fr_literal[0].
2309 * config/tc-crx.c (getreg_image): Change argument type to int.
2310 (md_convert_frag): Replace fragP->fr_literal with
2311 &fragP->fr_literal[0].
2316 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
2317 sprintf with memmove.
2321 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
2322 with &fragP->fr_literal[0].
2327 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
2328 2 overlapping strings.
2332 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
2333 with &fragP->fr_literal[0].
2337 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
2338 with &fragp->fr_literal[0].
2339 * config/tc-microblaze.c (md_apply_fix): Likewise.
2340 * config/tc-sh.c (md_convert_frag): Likewise.
2345 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
2346 asection to segT. New locals seg and subseg. Call subseg_set before
2347 fix_new_exp. Call subseg_set after loop to restore original values.
2351 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
2353 * config/obj-elf.c: Likewise.
2354 * config/tc-aarch64.c: Likewise.
2355 * config/tc-arm.c: Likewise.
2356 * config/tc-m68k.c: Likewise.
2357 * config/tc-nios2.c: Likewise.
2358 * config/tc-tic30.c: Likewise.
2359 * ecoff.c: Likewise.
2361 * stabs.c: Likewise.
2362 * symbols.c: Likewise.
2363 * testsuite/gas/all/test-gen.c: Likewise.
2367 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
2368 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
2369 Static variables which are used to set the ISA extensions. You can
2370 use -march (or ELF build attributes) and -misa-spec to set them,
2372 (ext_version_hash): The hash table used to handle the extensions
2374 (init_ext_version_hash): Initialize the ext_version_hash according
2375 to riscv_ext_version_table.
2376 (riscv_get_default_ext_version): The callback function of
2377 riscv_parse_subset_t. According to the choosed ISA spec,
2378 get the default version for the specific extension.
2379 (riscv_set_arch): Set the callback function.
2380 (enum options, struct option md_longopts): Add new option -misa-spec.
2381 (md_parse_option): Do not call riscv_set_arch for -march. We will
2382 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
2383 to set default_isa_spec class.
2384 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
2385 ext_version_hash, and then call riscv_set_arch to set the architecture
2386 with versions according to default_arch_with_ext.
2387 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
2389 * testsuite/gas/riscv/attribute-03.d: Likewise.
2390 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
2391 already set it's version to 2p1 by march, so no need to use the default
2392 2p2 version. For m-ext, we do not set the version by -march and ELF arch
2393 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
2394 ISA spec 2p2, so set 0p0 to it.
2395 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
2396 zicsr is 2p0 according to ISA spec 20191213.
2397 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
2398 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
2399 You can set them by configure options --with-arch and
2400 --with-isa-spec, respectively.
2401 (riscv_set_default_isa_spec): New function used to set the
2403 (md_parse_option): Call riscv_set_default_isa_spec rather than
2404 call riscv_get_isa_spec_class directly.
2405 (riscv_after_parse_args): If the -isa-spec is not set, then we
2406 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
2407 calling riscv_set_default_isa_spec.
2408 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
2409 the --with-isa-spec may be set to different ISA spec.
2410 * testsuite/gas/riscv/attribute-02.d: Likewise.
2411 * testsuite/gas/riscv/attribute-03.d: Likewise.
2412 * testsuite/gas/riscv/attribute-04.d: Likewise.
2413 * testsuite/gas/riscv/attribute-05.d: Likewise.
2414 * testsuite/gas/riscv/attribute-06.d: Likewise.
2415 * testsuite/gas/riscv/attribute-07.d: Likewise.
2416 * configure.ac: Add configure options, --with-arch and
2418 * configure: Regenerated.
2419 * config.in: Regenerated.
2420 * config/tc-riscv.c (default_priv_spec): Static variable which is
2421 used to check if the CSR is valid for the chosen privilege spec. You
2422 can use -mpriv-spec to set it.
2423 (enum reg_class): We now get the CSR address from csr_extra_hash rather
2424 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
2425 (riscv_init_csr_hashes): Only need to initialize one hash table
2427 (riscv_csr_class_check): Change the return type to void. Don't check
2428 the ISA dependency if -mcsr-check isn't set.
2429 (riscv_csr_version_check): New function. Check and find the CSR address
2430 from csr_extra_hash, according to default_priv_spec. Report warning
2431 for the invalid CSR if -mcsr-check is set.
2432 (reg_csr_lookup_internal): Updated.
2433 (reg_lookup_internal): Likewise.
2434 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
2435 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
2436 (md_parse_option): Call riscv_set_default_priv_version to set
2438 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
2439 privilege spec to the newest one.
2440 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
2441 include/opcode/riscv.h.
2442 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
2443 to check the ISA dependency for CSR, so fix the spec version by adding
2445 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
2446 version warnings for the test case.
2447 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2448 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2449 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
2450 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2451 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2452 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
2453 Check whether the CSR is valid when privilege version 1.9 is choosed.
2454 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2455 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
2456 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
2457 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2458 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
2459 Check whether the CSR is valid when privilege version 1.10 is choosed.
2460 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2461 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
2462 Check whether the CSR is valid when privilege version 1.11 is choosed.
2463 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2464 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
2465 setting. You can set it by configure option --with-priv-spec.
2466 (riscv_set_default_priv_spec): New function used to set the default
2468 (md_parse_option): Call riscv_set_default_priv_spec rather than
2469 call riscv_get_priv_spec_class directly.
2470 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
2471 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
2472 calling riscv_set_default_priv_spec.
2473 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
2474 the --with-priv-spec may be set to different privilege spec.
2475 * testsuite/gas/riscv/priv-reg.d: Likewise.
2476 * configure.ac: Add configure option --with-priv-spec.
2477 * configure: Regenerated.
2478 * config.in: Regenerated.
2479 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
2480 explicit_attr. Set it to TRUE if any ELF attribute is found.
2481 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
2482 the priv attributes are set.
2483 (md_assemble): Set the default_priv_spec according to the priv
2484 attributes when we start to assemble instruction.
2485 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
2486 riscv_write_out_attrs. Update the arch and priv attributes. If we
2487 don't set the corresponding ELF attributes, then try to output the
2489 (riscv_set_public_attributes): If any ELF attribute or -march-attr
2490 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
2491 to update the arch and priv attributes.
2492 (s_riscv_attribute): Make sure all arch and priv attributes are set
2493 before any instruction.
2494 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
2495 ELF attribute or -march-attr is set. If the priv attributes are not
2496 set, then try to update them by the default setting (-mpriv-spec or
2498 * testsuite/gas/riscv/attribute-02.d: Likewise.
2499 * testsuite/gas/riscv/attribute-03.d: Likewise.
2500 * testsuite/gas/riscv/attribute-04.d: Likewise.
2501 * testsuite/gas/riscv/attribute-06.d: Likewise.
2502 * testsuite/gas/riscv/attribute-07.d: Likewise.
2503 * testsuite/gas/riscv/attribute-08.d: Likewise.
2504 * testsuite/gas/riscv/attribute-09.d: Likewise.
2505 * testsuite/gas/riscv/attribute-10.d: Likewise.
2506 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2507 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
2508 set by priv attributes must be supported.
2509 * testsuite/gas/riscv/attribute-05.s: Likewise.
2510 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
2511 priv attributes according to the -mpriv-spec option.
2512 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
2513 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
2514 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
2515 * testsuite/gas/riscv/priv-reg.d: Removed.
2516 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
2517 CSR according to the priv spec 1.9.
2518 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
2519 CSR according to the priv spec 1.9.1.
2520 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
2521 CSR according to the priv spec 1.10.
2522 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
2523 CSR according to the priv spec 1.11.
2524 * config/tc-riscv.c (md_show_usage): Add descriptions about
2525 the new GAS options.
2526 * doc/c-riscv.texi: Likewise.
2530 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
2531 * testsuite/gas/ppc/power9.d: Likewise.
2532 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
2533 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
2534 sync, wait, waitrsv>: Add tests.
2535 * testsuite/gas/ppc/power10.d: Likewise.
2540 * config/tc-arm.c : Add arm_ext_v8r feature.
2541 (it_fsm_post_encode): Check arm_ext_v8r feature.
2542 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
2546 * write.c (write_contents): Use bfd_get_filename rather than
2547 accessing bfd->filename directly. Use bfd_section_name rather
2548 than accessing section->name directly.
2552 * symbols.c (local_symbol_make): Init all of lsy_flags.
2556 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
2557 before looking at add_symbol->sy_flags.
2561 * config/tc-i386.c: Not handle lret/iret.
2562 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
2563 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
2564 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
2565 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
2566 * testsuite/gas/i386/lfence-ret.s: Ditto.
2567 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
2568 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
2569 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
2570 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
2571 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
2572 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
2573 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
2578 * symbols.c (struct local_symbol): Update comment.
2579 (resolve_symbol_value): For resolved symbols equated to other
2580 symbols, verify that the referenced symbol is not a local_symbol
2581 before accessing sy_value. Don't leave symbol loops during
2582 finalize_syms resolution.
2583 * testsuite/gas/all/assign-bad-recursive.d: New test.
2584 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
2585 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
2586 * testsuite/gas/all/gas.exp: Run it.
2590 * po/sv.po: Updated Swedish translation.
2594 * testsuite/gas/ppc/scalarquad.d,
2595 * testsuite/gas/ppc/scalarquad.s: New test.
2596 * testsuite/gas/ppc/ppc.exp: Run it.
2600 * testsuite/gas/ppc/rightmost.d,
2601 * testsuite/gas/ppc/rightmost.s: New test.
2602 * testsuite/gas/ppc/ppc.exp: Run it.
2606 * testsuite/gas/ppc/xvtlsbb.d,
2607 * testsuite/gas/ppc/xvtlsbb.s: New test.
2608 * testsuite/gas/ppc/ppc.exp: Run it.
2612 * testsuite/gas/ppc/stringop.d,
2613 * testsuite/gas/ppc/stringop.s: New test.
2614 * testsuite/gas/ppc/ppc.exp: Run it.
2618 * testsuite/gas/ppc/set_bool.d,
2619 * testsuite/gas/ppc/set_bool.s: New test.
2620 * testsuite/gas/ppc/ppc.exp: Run it.
2624 * testsuite/gas/ppc/bitmanip.d,
2625 * testsuite/gas/ppc/bitmanip.s: New test.
2626 * testsuite/gas/ppc/ppc.exp: Run it.
2630 * testsuite/gas/ppc/genpcv.d,
2631 * testsuite/gas/ppc/genpcv.s: New test.
2632 * testsuite/gas/ppc/ppc.exp: Run it.
2636 * testsuite/gas/ppc/maskmanip.d,
2637 * testsuite/gas/ppc/maskmanip.s: New test.
2638 * testsuite/gas/ppc/ppc.exp: Run it.
2643 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
2644 (md_assemble): Check acc specified in correct operand.
2645 * testsuite/gas/ppc/outerprod.d,
2646 * testsuite/gas/ppc/outerprod.s,
2647 * testsuite/gas/ppc/vsx4.d,
2648 * testsuite/gas/ppc/vsx4.s: New tests.
2649 * testsuite/gas/ppc/ppc.exp: Run them.
2653 * testsuite/gas/ppc/simd_perm.d,
2654 * testsuite/gas/ppc/simd_perm.s: New test.
2655 * testsuite/gas/ppc/ppc.exp: Run it.
2659 * testsuite/gas/ppc/int128.d,
2660 * testsuite/gas/ppc/int128.s: New test.
2661 * testsuite/gas/ppc/ppc.exp: Run it.
2665 * testsuite/gas/ppc/vsx_32byte.d,
2666 * testsuite/gas/ppc/vsx_32byte.s: New test.
2667 * testsuite/gas/ppc/ppc.exp: Run it.
2671 * testsuite/gas/ppc/vec_mul.s,
2672 * testsuite/gas/ppc/vec_mul.d: New test.
2673 * testsuite/gas/ppc/ppc.exp: Run it.
2677 * testsuite/gas/ppc/byte_rev.d,
2678 * testsuite/gas/ppc/byte_rev.s: New test.
2679 * testsuite/gas/ppc/ppc.exp: Run it.
2683 * testsuite/gas/ppc/power10.d: Add paste. tests.
2684 * testsuite/gas/ppc/power10.s: Likewise.
2688 * testsuite/gas/ppc/power10.s: New test.
2689 * testsuite/gas/ppc/power10.d: Likewise.
2690 * testsuite/gas/ppc/ppc.exp: Run it.
2694 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
2696 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
2697 place of -mfuture/-Mfuture.
2698 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
2699 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
2703 * po/sv.po: Updated Swedish translation.
2708 * doc/as.texi (Preprocessing): Replace cross reference to not
2709 existant document with a URL to the equivalent page in the GCC
2714 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
2715 construction of a DWARF-5 directory name table.
2716 * testsuite/gas/elf/pr25917.d: Update expected output.
2720 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
2721 (md_parse_option): Remove initialization of elf_flags.
2726 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
2727 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
2728 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
2733 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
2734 table's existence before looking at its entries.
2735 Also do not emit a default directory entry if there are no
2738 * testsuite/gas/elf/pr25917.s: New test source file.
2739 * testsuite/gas/elf/pr25917.d: New test driver.
2740 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
2744 * config/tc-aarch64.c (fix_insn): Implement for
2745 AARCH64_OPND_UNDEFINED.
2746 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
2747 * testsuite/gas/aarch64/udf.s: New.
2748 * testsuite/gas/aarch64/udf.d: New.
2749 * testsuite/gas/aarch64/udf-invalid.s: New.
2750 * testsuite/gas/aarch64/udf-invalid.l: New.
2751 * testsuite/gas/aarch64/udf-invalid.d: New.
2755 * config/tc-rx.c (elf_flags): Reset default value.
2756 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
2760 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
2761 if it's not defined.
2762 (microarch_earliest): New static variable.
2763 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
2764 simcall opcode has mandatory parameter.
2765 (xg_init_global_config): Initialize microarch_earliest.
2770 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
2771 IMM0_8S and add support for IMM0_8U.
2772 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
2773 unsigned 8-bit immediate.
2774 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
2775 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
2779 * NEWS: Add news entry for big-obj.
2780 * config/tc-i386.c (i386_target_format): Support new format.
2781 * doc/c-i386.texi: Add i386 support.
2782 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
2783 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
2788 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
2789 (assign_file_to_slot): New function. Fills in an entry in the
2791 (allocate_filenum): Use new function.
2792 (allocate_filename_to_slot): Use new function. If the specified
2793 slot entry is already in use, but was chosen automatically then
2794 reassign the automatic entry.
2798 * config/tc-i386.c (lfence_before_ret_shl): New member.
2799 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
2801 (insert_after_load): Issue warning for REP CMPS/SCAS.
2802 (insert_before_before): Handle iret, Handle
2803 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
2804 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
2805 -mlfence-before-ret=[none/not/or/shl/yes].
2806 Enable -mlfence-before-ret=shl when
2807 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
2808 (md_show_usage): Ditto.
2809 * doc/c-i386.texi: Ditto.
2810 * testsuite/gas/i386/i386.exp: Add new testcases.
2811 * testsuite/gas/i386/lfence-load-b.d: New.
2812 * testsuite/gas/i386/lfence-load-b.e: New.
2813 * testsuite/gas/i386/lfence-load.d: Modified.
2814 * testsuite/gas/i386/lfence-load.e: New.
2815 * testsuite/gas/i386/lfence-load.s: Modified.
2816 * testsuite/gas/i386/lfence-ret-a.d: Modified.
2817 * testsuite/gas/i386/lfence-ret-b.d: Modified.
2818 * testsuite/gas/i386/lfence-ret-c.d: New.
2819 * testsuite/gas/i386/lfence-ret-d.d: New.
2820 * testsuite/gas/i386/lfence-ret.s: Modified.
2821 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
2822 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
2823 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
2824 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
2825 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
2826 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
2827 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
2828 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
2829 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
2830 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
2835 * config/tc-xtensa.c (md_apply_fix): Replace
2836 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
2837 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
2838 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
2839 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
2840 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
2844 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
2845 symbol for ".symver .. remove".
2846 * doc/as.texi (.symver): Update.
2847 * testsuite/gas/symver/symver11.s: Make foo weak.
2848 * testsuite/gas/symver/symver11.d: Expect an error.
2849 * testsuite/gas/symver/symver7.d: Allow other random symbols.
2853 * testsuite/gas/symver/symver11.s: Add ".balign 8".
2858 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
2859 * testsuite/gas/m68k/operands.d: Update.
2860 * testsuite/gas/m68k/op68000.d: Update for new error messages.
2865 * testsuite/gas/arm/pr24753.d: New test.
2866 * testsuite/gas/arm/pr24753.s: New test.
2872 * NEWS: Mention .symver extension.
2873 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
2875 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
2876 add a version name. Add local, hidden and remove visibility
2878 (elf_frob_symbol): Handle the list of version names. Update the
2879 original symbol to local, hidden or remove it from the symbol
2881 (elf_frob_file_before_adjust): Handle the list of version names.
2882 * config/obj-elf.h (elf_visibility): New.
2883 (elf_versioned_name_list): Likewise.
2884 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
2885 and visibility. Change versioned_name pointer to struct
2886 elf_versioned_name_list.
2887 * doc/as.texi: Update .symver directive.
2888 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
2889 error checking tests.
2890 * testsuite/gas/symver/symver6.d: New file.
2891 * testsuite/gas/symver/symver7.d: Likewise.
2892 * testsuite/gas/symver/symver7.s: Likewise.
2893 * testsuite/gas/symver/symver8.d: Likewise.
2894 * testsuite/gas/symver/symver8.s: Likewise.
2895 * testsuite/gas/symver/symver9.s: Likewise.
2896 * testsuite/gas/symver/symver9a.d: Likewise.
2897 * testsuite/gas/symver/symver9b.d: Likewise.
2898 * testsuite/gas/symver/symver10.s: Likewise.
2899 * testsuite/gas/symver/symver10a.d: Likewise.
2900 * testsuite/gas/symver/symver10b.d: Likewise.
2901 * testsuite/gas/symver/symver11.d: Likewise.
2902 * testsuite/gas/symver/symver11.s: Likewise.
2903 * testsuite/gas/symver/symver12.d: Likewise.
2904 * testsuite/gas/symver/symver12.s: Likewise.
2905 * testsuite/gas/symver/symver13.d: Likewise.
2906 * testsuite/gas/symver/symver13.s: Likewise.
2907 * testsuite/gas/symver/symver14.d: Likewise.
2908 * testsuite/gas/symver/symver14.l: Likewise.
2909 * testsuite/gas/symver/symver15.d: Likewise.
2910 * testsuite/gas/symver/symver15.l: Likewise.
2911 * testsuite/gas/symver/symver6.l: Removed.
2912 * testsuite/gas/symver/symver6.s: Updated.
2916 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
2918 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
2919 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
2920 * testsuite/gas/aarch64/system.d: Update.
2924 * testsuite/gas/aarch64/bti.d: Update -march option.
2925 * testsuite/gas/aarch64/illegal-bti.d: Remove.
2926 * testsuite/gas/aarch64/illegal-bti.l: Remove.
2927 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
2928 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
2932 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
2938 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
2940 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
2941 for the type-2 test.
2942 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
2943 targets running this test.
2947 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
2948 * testsuite/gas/bpf/jump32.s: New file.
2949 * testsuite/gas/bpf/jump32.d: Likewise.
2953 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
2958 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
2959 (md_pcrel_from): Remove prototytpe.
2960 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
2962 (md_pcrel_from_section): Remove duplicate prototype.
2963 * tc.h (md_pcrel_from_section): Add prototype.
2964 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
2965 * config/tc-arc.h (md_pcrel_from_section): Likewise.
2966 * config/tc-arm.h (md_pcrel_from_section): Likewise.
2967 * config/tc-avr.h (md_pcrel_from_section): Likewise.
2968 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
2969 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
2970 * config/tc-csky.h (md_pcrel_from_section): Likewise.
2971 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
2972 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
2973 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
2974 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
2975 * config/tc-frv.h (md_pcrel_from_section): Likewise.
2976 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
2977 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
2978 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
2979 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
2980 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
2981 * config/tc-mep.h (md_pcrel_from_section): Likewise.
2982 * config/tc-metag.h (md_pcrel_from_section): Likewise.
2983 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
2984 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
2985 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
2986 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
2987 * config/tc-mt.h (md_pcrel_from_section): Likewise.
2988 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
2989 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
2990 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
2991 * config/tc-rx.h (md_pcrel_from_section): Likewise.
2992 * config/tc-s390.h (md_pcrel_from_section): Likewise.
2993 * config/tc-sh.h (md_pcrel_from_section): Likewise.
2994 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
2995 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
2996 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
2997 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
2998 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
2999 md_apply_fix3): Delete prototypes.
3003 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
3008 * doc/c-z80.texi: Fix @xref warnings.
3012 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
3013 (cpu_noarch): Likewise.
3014 * doc/c-i386.texi: Document TSXLDTRK.
3015 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
3016 * testsuite/gas/i386/tsxldtrk.d: Likewise.
3017 * testsuite/gas/i386/tsxldtrk.s: Likewise.
3018 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
3022 * config/tc-i386.c (cpu_arch): Add .serialize.
3023 (cpu_noarch): Likewise.
3024 * doc/c-i386.texi: Document serialize.
3025 * testsuite/gas/i386/i386.exp: Run serialize tests
3026 * testsuite/gas/i386/serialize.d: Likewise.
3027 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
3028 * testsuite/gas/i386/serialize.s: Likewise.
3032 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
3033 * testsuite/gas/elf/section12b.d: Likewise.
3034 * testsuite/gas/elf/section16a.d: Likewise.
3035 * testsuite/gas/elf/section16b.d: Likewise.
3039 * config/tc-m68k.c (m68k_ip): Fix range check for index register
3040 with a suppressed address register.
3045 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
3046 * testsuite/gas/i386/localpic.s: Add a test for relocation
3047 against local absolute symbol.
3048 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
3049 * testsuite/gas/i386/localpic.d: Updated.
3050 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
3051 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
3056 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
3057 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
3058 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
3059 testsuite/gas/i386/x86-64-jump.d.
3060 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
3061 Incorporate changes to
3062 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
3063 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
3064 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
3065 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
3066 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
3072 * dwarf2dbg.c: Do not include "bignum.h".
3076 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
3077 * testsuite/gas/riscv/alias-csr.s: Likewise.
3078 * testsuite/gas/riscv/no-aliases-csr.d: Move this
3079 to priv-reg-pseudo-noalias.
3080 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
3081 * testsuite/gas/riscv/bad-csr.l: Likewise.
3082 * testsuite/gas/riscv/bad-csr.s: Likewise.
3083 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
3084 * testsuite/gas/riscv/satp.s: Likewise.
3085 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
3086 csr instruction, including alias-csr testcase.
3087 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
3088 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
3089 pseudo instruction with objdump -Mno-aliases.
3090 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
3091 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
3092 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
3093 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
3094 * testsuite/gas/riscv/priv-reg.s: Likewise.
3095 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3096 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
3097 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
3101 * config/obj-coff.c (obj_coff_section): Set the bss flag on
3102 sections with the "b" attribute.
3106 * testsuite/gas/s12z/truncated.d: Update expected output.
3111 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
3112 * doc/c-z80.texi: Update documentation.
3119 Fix disassembling ED+A4/AC/B4/BC opcodes.
3120 Fix assembling lines containing colonless label and instruction
3121 with first operand inside parentheses.
3122 Fix registration of unsupported by target CPU registers.
3123 * config/tc-z80.c: See above.
3124 * config/tc-z80.h: See above.
3125 * testsuite/gas/z80/colonless.d: Update test.
3126 * testsuite/gas/z80/colonless.s: Likewise.
3127 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
3128 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
3129 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3130 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
3131 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
3132 * testsuite/gas/z80/unsup_regs.s: Likewise.
3133 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
3134 * testsuite/gas/z80/z80.exp: Likewise.
3135 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
3136 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
3137 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
3142 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
3143 (parse_operands): Handle new operand codes.
3144 (do_neon_dyadic_long): Make shape check accept the scalar variants.
3145 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
3146 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
3147 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
3148 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
3149 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
3150 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
3151 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
3155 * NEWS: Mention x86 assembler options for CVE-2020-0551.
3159 * testsuite/gas/i386/i386.exp: Run new tests.
3160 * testsuite/gas/i386/lfence-byte.d: New file.
3161 * testsuite/gas/i386/lfence-byte.e: Likewise.
3162 * testsuite/gas/i386/lfence-byte.s: Likewise.
3163 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
3164 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
3165 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
3166 * testsuite/gas/i386/lfence-indbr.e: Likewise.
3167 * testsuite/gas/i386/lfence-indbr.s: Likewise.
3168 * testsuite/gas/i386/lfence-load.d: Likewise.
3169 * testsuite/gas/i386/lfence-load.s: Likewise.
3170 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
3171 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
3172 * testsuite/gas/i386/lfence-ret.s: Likewise.
3173 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
3174 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
3175 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
3176 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
3177 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
3178 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
3179 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
3180 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
3181 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
3182 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
3183 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
3184 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
3188 * config/tc-i386.c (lfence_after_load): New.
3189 (lfence_before_indirect_branch_kind): New.
3190 (lfence_before_indirect_branch): New.
3191 (lfence_before_ret_kind): New.
3192 (lfence_before_ret): New.
3195 (insert_lfence_after): New.
3196 (insert_lfence_before): New.
3197 (md_assemble): Call insert_lfence_before and insert_lfence_after.
3199 (OPTION_MLFENCE_AFTER_LOAD): New.
3200 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
3201 (OPTION_MLFENCE_BEFORE_RET): New.
3202 (md_longopts): Add -mlfence-after-load=,
3203 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3204 (md_parse_option): Handle -mlfence-after-load=,
3205 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3206 (md_show_usage): Display -mlfence-after-load=,
3207 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3208 (i386_cons_align): New.
3209 * config/tc-i386.h (i386_cons_align): New.
3210 (md_cons_align): New.
3211 * doc/c-i386.texi: Document -mlfence-after-load=,
3212 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3218 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
3219 (DWARF2_FILE_SIZE_NAME): Default to -1.
3220 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
3221 whichever is higher.
3222 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
3223 (NUM_MD5_BYTES): Define.
3224 (struct file entry): Add md5 field.
3225 (get_filenum): Delete and replace with...
3226 (get_basename): New function.
3227 (get_directory_table_entry): New function.
3228 (allocate_filenum): New function.
3229 (allocate_filename_to_slot): New function.
3230 (dwarf2_where): Use new functions.
3231 (dwarf2_directive_filename): Add support for extended .file
3233 (dwarf2_directive_loc): Allow the use of file number zero with
3235 (out_file_list): Rename to...
3236 (out_dir_and_file_list): Add DWARF 5 support.
3237 (out_debug_line): Emit extra values into the section header for
3239 (out_debug_str): Allow for file 0 to be used with DWARF 5.
3240 * doc/as.texi (.file): Update the description of this pseudo-op.
3241 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
3242 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
3243 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
3244 * NEWS: Mention the new feature.
3248 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
3249 to avoid signed overflow.
3250 * config/tc-mcore.c (md_assemble): Likewise.
3251 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
3252 * config/tc-nds32.c (SET_ADDEND): Likewise.
3253 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
3257 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
3258 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
3259 testsuite/gas/i386/avx-intel.d: Adjust expectations.
3263 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
3269 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
3270 0 if the dwarf_level is 5 or more. Complain if a filename follows
3272 * testsuite/gas/elf/dwarf-5-file0.s: New test.
3273 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
3274 * testsuite/gas/elf/elf.exp: Run the new test.
3277 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
3278 * doc/as.texi: Fix another typo.
3283 * as.c (dwarf_level): Define.
3284 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
3285 (parse_args): Add support for the new options.
3286 as.h (dwarf_level): Prototype.
3287 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
3289 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
3290 (DWARF2_LINE_VERSION): Remove definition.
3291 * doc/as.texi: Document the new options.
3296 * as.c (main): Allow matching input and outputs when they are
3301 * config/tc-i386.c (match_mem_size): Generalize broadcast special
3303 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
3304 one of byte/word/dword/qword is set alongside a SIMD register in
3305 a template's operand.
3309 * config/tc-i386.c (match_template): Extend code in logic
3310 rejecting certain suffixes in certain modes to also cover mask
3311 register use and VecSIB. Drop special casing of broadcast. Skip
3312 immediates in the check.
3316 * config/tc-i386.c (match_template): Fold duplicate code in
3317 logic rejecting certain suffixes in certain modes. Drop
3322 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
3323 alongside !norex64 ones.
3324 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
3325 with both 32- and 64-bit GPR operands.
3326 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
3327 32- and 64-bit GPR operands.
3328 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
3329 testsuite/gas/i386/x86-64-avx512bw.d,
3330 testsuite/gas/i386/x86-64-avx512f-intel.d,
3331 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
3335 * config/tc-i386.c (md_assemble): Drop use of rex64.
3336 (process_suffix): For REX.W for 64-bit CRC32.
3340 * config/tc-i386.c (i386_addressing_mode): For 32-bit
3341 addressing for MPX insns without base/index.
3342 * testsuite/gas/i386/mpx-16bit.s,
3343 * testsuite/gas/i386/mpx-16bit.d: New.
3344 * testsuite/gas/i386/i386.exp: Run new test.
3348 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
3349 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
3350 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
3351 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
3352 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
3353 as well as a BSWAP one.
3354 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
3355 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
3356 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
3357 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
3358 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
3359 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
3360 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
3361 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
3362 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
3363 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
3364 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
3365 testsuite/gas/i386/vmx.d: Adjust expectations.
3369 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
3370 from having their operands swapped.
3371 * testsuite/gas/i386/waitpkg.s,
3372 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
3373 3-operand cases as well as testing of 16-bit code generation.
3374 * testsuite/gas/i386/waitpkg.d,
3375 testsuite/gas/i386/waitpkg-intel.d,
3376 testsuite/gas/i386/x86-64-waitpkg.d,
3377 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
3381 * config/tc-riscv.c (percent_op_utype): Support the modifier
3383 * doc/c-riscv.texi: Add documentation.
3384 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
3385 modifier %got_pcrel_hi.
3386 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
3387 * testsuite/gas/riscv/relax-reloc.d: Likewise.
3388 * testsuite/gas/riscv/relax-reloc.s: Likewise.
3390 * doc/c-riscv.texi (relocation modifiers): Add documentation.
3391 (RISC-V-Formats): Update the section name from "Instruction Formats"
3392 to "RISC-V Instruction Formats".
3396 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
3397 detected in a section which does not have at least 4 byte
3399 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
3400 * testsuite/gas/arm/ldr-t.s: Likewise.
3401 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
3402 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
3403 disassembly, ignoring any NOPs that may have been inserted because
3404 of section alignment.
3405 * testsuite/gas/arm/ldr-t.d: Likewise.
3409 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
3410 * doc/c-i386.texi: Mention sev_es.
3411 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
3412 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
3414 * testsuite/gas/i386/arch-13-znver1.d,
3415 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
3419 * config/tc-i386.c (match_template): Replace ignoresize and
3420 defaultsize with mnemonicsize.
3421 (process_suffix): Likewise.
3426 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
3427 instruction LD IY,(HL).
3428 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
3429 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
3430 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
3431 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
3436 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
3437 x86-64-default-suffix-avx.
3438 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
3439 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
3440 * testsuite/gas/i386/noreg64.d: Updated.
3441 * testsuite/gas/i386/noreg64.l: Likewise.
3442 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
3443 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
3444 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
3449 * config/tc-z80.c (contains_register): Prevent an illegal memory
3450 access when checking an expression for a register name.
3454 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
3459 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
3460 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
3462 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
3463 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
3464 (s3_s_score_lcomm): Likewise.
3465 * config/tc-score7.c: Similarly.
3466 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
3471 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
3472 to handle multi-labels.
3473 (has_label_name): New.
3477 * config/tc-arm.c (enum pred_instruction_type): Remove
3478 NEUTRAL_IT_NO_VPT_INSN predication type.
3479 (cxn_handle_predication): Modify to require condition suffixes.
3480 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
3481 * testsuite/gas/arm/cde-scalar.s: Update test.
3482 * testsuite/gas/arm/cde-warnings.l: Update test.
3483 * testsuite/gas/arm/cde-warnings.s: Update test.
3487 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
3488 N_() on empty string.
3492 * read.c (read_a_source_file): Call strncpy with length one
3493 less than size of original_case_string.
3497 * config/obj-elf.c: Indent labels correctly.
3498 * config/obj-macho.c: Likewise.
3499 * config/tc-aarch64.c: Likewise.
3500 * config/tc-alpha.c: Likewise.
3501 * config/tc-arm.c: Likewise.
3502 * config/tc-cr16.c: Likewise.
3503 * config/tc-crx.c: Likewise.
3504 * config/tc-frv.c: Likewise.
3505 * config/tc-i386-intel.c: Likewise.
3506 * config/tc-i386.c: Likewise.
3507 * config/tc-ia64.c: Likewise.
3508 * config/tc-mn10200.c: Likewise.
3509 * config/tc-mn10300.c: Likewise.
3510 * config/tc-nds32.c: Likewise.
3511 * config/tc-riscv.c: Likewise.
3512 * config/tc-s12z.c: Likewise.
3513 * config/tc-xtensa.c: Likewise.
3514 * config/tc-z80.c: Likewise.
3516 * symbols.c: Likewise.
3517 * write.c: Likewise.
3521 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
3522 we are assembling instruction with CSR. Call riscv_csr_read_only_check
3523 after parsing all arguments.
3524 (enum csr_insn_type): New enum is used to classify the CSR instruction.
3525 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
3526 are used to check if we write a read-only CSR by the CSR instruction.
3527 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
3528 all CSR for the read-only CSR checking.
3529 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
3530 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
3531 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
3532 all CSR instructions for the read-only CSR checking.
3533 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
3534 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
3536 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
3537 (riscv_opts): Initialize it.
3538 (reg_lookup_internal): Check the `riscv_opts.csr_check`
3539 before doing the CSR checking.
3540 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
3541 (md_longopts): Add mcsr-check and mno-csr-check.
3542 (md_parse_option): Handle new enum option values.
3543 (s_riscv_option): Handle new long options.
3544 * doc/c-riscv.texi: Add description for the new .option and assembler
3546 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
3548 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
3550 * config/tc-riscv.c (csr_extra_hash): New.
3551 (enum riscv_csr_class): New enum. Used to decide
3552 whether or not this CSR is legal in the current ISA string.
3553 (struct riscv_csr_extra): New structure to hold all extra information
3555 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
3556 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
3557 Call hash_reg_name to insert CSR address into reg_names_hash.
3558 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
3559 Decide whether the CSR is valid according to the csr_extra_hash.
3560 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
3561 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
3562 not a boolean. This is same as riscv_init_csr_hash, so keep the
3564 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
3565 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
3566 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
3567 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
3568 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
3569 f-ext CSR are not allowed.
3570 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
3571 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
3572 source file is `priv-reg.s`, and the ISA is rv64if, so the
3573 rv32-only CSR are not allowed.
3574 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3578 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
3579 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
3584 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
3585 on section size adjustment, instead perform another write if
3586 exec header size is larger than section size.
3590 * doc/c-riscv.texi: Add the doc entries for -march-attr/
3591 -mno-arch-attr command line options.
3595 * testsuite/gas/riscv/c-add-addi.d: New testcase.
3596 * testsuite/gas/riscv/c-add-addi.s: Likewise.
3601 * config/tc-z80.c (md_parse_option): Do not use an underscore
3602 prefix for local labels in SDCC compatability mode.
3603 (z80_start_line_hook): Remove SDCC dollar label support.
3604 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
3605 * testsuite/gas/z80/sdcc.s: Likewise.
3610 * config/tc-z80.c: Add -march option.
3611 * doc/as.texi: Update Z80 documentation.
3612 * doc/c-z80.texi: Likewise.
3613 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
3614 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
3615 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
3616 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3617 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
3618 * testsuite/gas/z80/gbz80_all.d: Likewise.
3619 * testsuite/gas/z80/r800_extra.d: Likewise.
3620 * testsuite/gas/z80/r800_ii8.d: Likewise.
3621 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
3622 * testsuite/gas/z80/sdcc.d: Likewise.
3623 * testsuite/gas/z80/z180.d: Likewise.
3624 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
3625 * testsuite/gas/z80/z80_doc.d: Likewise.
3626 * testsuite/gas/z80/z80_ii8.d: Likewise.
3627 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
3628 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
3629 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
3630 * testsuite/gas/z80/z80_sli.d: Likewise.
3631 * testsuite/gas/z80/z80n_all.d: Likewise.
3632 * testsuite/gas/z80/z80n_reloc.d: Likewise.
3636 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
3637 with GNU_PROPERTY_X86_FEATURE_2_MMX.
3638 * testsuite/gas/i386/i386.exp: Run property-3 and
3640 * testsuite/gas/i386/property-3.d: New file.
3641 * testsuite/gas/i386/property-3.s: Likewise.
3642 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
3646 * config/tc-i386.c (cpu_arch): Add .popcnt.
3647 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
3648 Add a tab before @samp{.sse4a}.
3652 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
3653 for AddrPrefixOpReg templates. Combine the two pieces of
3654 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
3660 * config/tc-i386.c (md_assemble): Also suppress operand
3661 swapping for MONITOR{,X} and MWAIT{,X}.
3662 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
3663 Add Intel syntax monitor/mwait tests.
3664 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
3665 Adjust expectations.
3666 *testsuite/gas/i386/sse3-intel.d,
3667 testsuite/gas/i386/x86-64-sse3-intel.d: New.
3668 * testsuite/gas/i386/i386.exp: Run new tests.
3673 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
3674 [XYZ]MMWord memory operand ambiguity recognition logic (largely
3676 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
3678 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
3679 * testsuite/gas/i386/avx512dq-inval.l,
3680 testsuite/gas/i386/inval-avx.l,
3681 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
3682 * testsuite/gas/i386/avx512vl-ambig.s,
3683 testsuite/gas/i386/avx512vl-ambig.l: New.
3684 * testsuite/gas/i386/i386.exp: Run new test.
3688 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
3690 * doc/c-i386.texi: Document sse4a and nosse4a.
3694 * doc/c-i386.texi: Remove the old movsx and movzx documentation
3700 * config/tc-i386.c (md_assemble): Move movsx/movzx special
3702 (process_suffix): ... here. Consider just the first operand
3704 (check_long_reg): Drop opcode 0x63 special case again.
3705 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
3706 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
3707 Move ambiguous operand size tests ...
3708 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3709 testsuite/gas/i386/noreg64.s: ... here.
3710 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
3711 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
3712 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3713 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
3714 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
3715 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3716 testsuite/gas/i386/x86-64-movsxd.d,
3717 testsuite/gas/i386/x86-64-movsxd-intel.d,
3718 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
3719 Adjust expectations.
3720 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
3721 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
3722 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
3723 * testsuite/gas/i386/i386.exp: Run new tests.
3727 * config/tc-i386.c (process_operands): Also skip segment
3728 override prefix emission if it matches an already present one.
3729 * testsuite/gas/i386/prefix32.s: Add double segment override
3731 * testsuite/gas/i386/prefix32.l: Adjust expectations.
3735 * config/tc-i386.c (process_operands): Drop ineffectual segment
3736 overrides when optimizing.
3737 * testsuite/gas/i386/lea-optimize.d: New.
3738 * testsuite/gas/i386/i386.exp: Run new test.
3742 * config/tc-i386.c (process_operands): Also check insn prefix
3743 for ineffectual segment override warning. Don't cover possible
3744 VEX/EVEX encoded insns there.
3745 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
3746 testsuite/gas/i386/lea.e: New.
3747 * testsuite/gas/i386/i386.exp: Run new test.
3752 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
3759 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
3760 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
3761 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
3762 * testsuite/gas/i386/relax-5.d: New file.
3763 * testsuite/gas/i386/relax-5.s: Likewise.
3764 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
3765 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
3769 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
3774 * config/tc-i386.c (avx512): New (at file scope), moved from
3775 (check_VecOperands): ... here.
3776 (process_suffix): Add [XYZ]MMword operand size handling.
3777 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
3778 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
3780 * testsuite/gas/i386/avx512dq-inval.l,
3781 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
3786 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
3788 * config/tc-i386-intel.c (i386_intel_operand): Also handle
3789 CALL/JMP in O_tbyte_ptr case.
3790 * doc/c-i386.texi: Mention far call and full pointer load ISA
3792 * testsuite/gas/i386/x86-64-branch-3.s,
3793 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
3794 * testsuite/gas/i386/x86-64-branch-3.d,
3795 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
3796 * testsuite/gas/i386/x86-64-branch-5.l,
3797 testsuite/gas/i386/x86-64-branch-5.s: New.
3798 * testsuite/gas/i386/i386.exp: Run new test.
3803 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
3804 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
3805 64-bit-only warning.
3806 (check_word_reg): Consistently error on mismatching register
3808 * testsuite/gas/i386/general.s: Replace dword GPR with word one
3809 for movw. Replace suffix / GPR for orb.
3810 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
3811 byte GPRs as well as ones for inb/outb with a word accumulator.
3812 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
3813 testsuite/gas/i386/inval.l: Adjust expectations.
3817 * config/tc-i386.c (operand_type_register_match): Also fall
3818 through initial two if()-s when the template allows for a GPR
3819 operand. Adjust comment.
3823 (struct _i386_insn): New field "short_form".
3824 (optimize_encoding): Drop setting of shortform field.
3825 (process_suffix): Set i.short_form. Replace shortform use.
3826 (process_operands): Replace shortform use.
3830 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
3831 loop initial declaration.
3835 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
3836 instructions that can have 5 arguments.
3837 (enum operand_parse_code): Add new operands.
3838 (parse_operands): Account for new operands.
3840 (enum neon_shape_el): Introduce P suffixes for coprocessor.
3841 (neon_select_shape): Account for P suffix.
3842 (LOW1): Move macro to global position.
3843 (HI4): Move macro to global position.
3844 (vcx_assign_vec_d): New.
3845 (vcx_assign_vec_m): New.
3846 (vcx_assign_vec_n): New.
3847 (enum vcx_reg_type): New.
3848 (vcx_get_reg_type): New.
3849 (vcx_size_pos): New.
3851 (vcx_handle_shape): New.
3852 (vcx_ensure_register_in_range): New.
3853 (vcx_handle_register_arguments): New.
3854 (vcx_handle_insn_block): New.
3855 (vcx_handle_common_checks): New.
3859 * testsuite/gas/arm/cde-missing-fp.d: New test.
3860 * testsuite/gas/arm/cde-missing-fp.l: New test.
3861 * testsuite/gas/arm/cde-missing-mve.d: New test.
3862 * testsuite/gas/arm/cde-missing-mve.l: New test.
3863 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
3864 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
3865 * testsuite/gas/arm/cde-mve.s: New test.
3866 * testsuite/gas/arm/cde-warnings.l:
3867 * testsuite/gas/arm/cde-warnings.s:
3868 * testsuite/gas/arm/cde.d:
3869 * testsuite/gas/arm/cde.s:
3874 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
3875 CDE coprocessor that can be enabled.
3876 (enum pred_instruction_type): New pred type.
3877 (BAD_NO_VPT): New error message.
3878 (BAD_CDE): New error message.
3879 (BAD_CDE_COPROC): New error message.
3880 (enum operand_parse_code): Add new immediate operands.
3881 (parse_operands): Account for new immediate operands.
3882 (check_cde_operand): New.
3883 (cde_coproc_enabled): New.
3884 (cde_coproc_pos): New.
3885 (cde_handle_coproc): New.
3886 (cxn_handle_predication): New.
3887 (do_custom_instruction_1): New.
3888 (do_custom_instruction_2): New.
3889 (do_custom_instruction_3): New.
3902 (handle_pred_state): Define new IT block behaviour.
3903 (insns): Add newn CX*{,d}{,a} instructions.
3904 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
3905 Define new cdecp extension strings.
3906 * doc/c-arm.texi: Document new cdecp extension arguments.
3907 * testsuite/gas/arm/cde-scalar.d: New test.
3908 * testsuite/gas/arm/cde-scalar.s: New test.
3909 * testsuite/gas/arm/cde-warnings.d: New test.
3910 * testsuite/gas/arm/cde-warnings.l: New test.
3911 * testsuite/gas/arm/cde-warnings.s: New test.
3912 * testsuite/gas/arm/cde.d: New test.
3913 * testsuite/gas/arm/cde.s: New test.
3918 * config/tc-i386.c (intel64): Renamed to ...
3920 (match_template): Accept Intel64 only instruction by default.
3921 (i386_displacement): Updated.
3922 (md_parse_option): Updated.
3923 * c-i386.texi: Update -mamd64/-mintel64 documentation.
3924 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
3925 -mamd64 to x86-64-sysenter-amd.
3926 * testsuite/gas/i386/x86-64-sysenter.d: New file.
3930 * config/obj-elf.c (obj_elf_change_section): Error for section
3931 type, attr or entsize changes in assembly.
3932 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
3933 * testsuite/gas/elf/section5.l: Update.
3937 * output-file.c (output_file_close): Do a normal close when
3938 flag_always_generate_output.
3939 * write.c (write_object_file): Don't stop output when
3940 flag_always_generate_output.
3945 * config/tc-z80.c: Add -gbz80 command line option to generate code
3946 for the GameBoy Z80. Add support for generating DWARF.
3947 * config/tc-z80.h: Add support for DWARF debug information
3949 * doc/c-z80.texi: Document new command line option.
3950 * testsuite/gas/z80/gbz80_all.d: New file.
3951 * testsuite/gas/z80/gbz80_all.s: New file.
3952 * testsuite/gas/z80/z80.exp: Run the new tests.
3953 * testsuite/gas/z80/z80n_all.d: New file.
3954 * testsuite/gas/z80/z80n_all.s: New file.
3955 * testsuite/gas/z80/z80n_reloc.d: New file.
3960 * config/obj-elf.c (get_section): Also check
3961 linked_to_symbol_name.
3962 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
3963 (obj_elf_parse_section_letters): Handle the 'o' flag.
3964 (build_group_lists): Renamed to ...
3965 (build_additional_section_info): This. Set elf_linked_to_section
3966 from map_head.linked_to_symbol_name.
3967 (elf_adjust_symtab): Updated.
3968 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
3969 * doc/as.texi: Document the 'o' flag.
3970 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
3971 * testsuite/gas/elf/section18.d: New file.
3972 * testsuite/gas/elf/section18.s: Likewise.
3973 * testsuite/gas/elf/section19.d: Likewise.
3974 * testsuite/gas/elf/section19.s: Likewise.
3975 * testsuite/gas/elf/section20.d: Likewise.
3976 * testsuite/gas/elf/section20.s: Likewise.
3977 * testsuite/gas/elf/section21.d: Likewise.
3978 * testsuite/gas/elf/section21.l: Likewise.
3979 * testsuite/gas/elf/section21.s: Likewise.
3983 * NEWS: Mention x86 assembler options to align branches for
3988 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
3989 only for ELF targets.
3990 * testsuite/gas/i386/unique.d: Don't xfail.
3991 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3995 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
3996 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4000 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
4001 xfail, and rename test.
4002 * testsuite/gas/elf/section12b.d: Likewise.
4003 * testsuite/gas/elf/section16a.d: Likewise.
4004 * testsuite/gas/elf/section16b.d: Likewise.
4009 * config/obj-elf.c (section_match): Removed.
4010 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
4012 (obj_elf_change_section): Replace info and group_name arguments
4013 with match_p. Also update the section ID and flags from match_p.
4014 (obj_elf_section): Handle "unique,N". Update call to
4015 obj_elf_change_section.
4016 * config/obj-elf.h (elf_section_match): New.
4017 (obj_elf_change_section): Updated.
4018 * config/tc-arm.c (start_unwind_section): Update call to
4019 obj_elf_change_section.
4020 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
4021 * config/tc-microblaze.c (microblaze_s_data): Likewise.
4022 (microblaze_s_sdata): Likewise.
4023 (microblaze_s_rdata): Likewise.
4024 (microblaze_s_bss): Likewise.
4025 * config/tc-mips.c (s_change_section): Likewise.
4026 * config/tc-msp430.c (msp430_profiler): Likewise.
4027 * config/tc-rx.c (parse_rx_section): Likewise.
4028 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
4029 * doc/as.texi: Document "unique,N" in .section directive.
4030 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
4031 * testsuite/gas/elf/section15.d: New file.
4032 * testsuite/gas/elf/section15.s: Likewise.
4033 * testsuite/gas/elf/section16.s: Likewise.
4034 * testsuite/gas/elf/section16a.d: Likewise.
4035 * testsuite/gas/elf/section16b.d: Likewise.
4036 * testsuite/gas/elf/section17.d: Likewise.
4037 * testsuite/gas/elf/section17.l: Likewise.
4038 * testsuite/gas/elf/section17.s: Likewise.
4039 * testsuite/gas/i386/unique.d: Likewise.
4040 * testsuite/gas/i386/unique.s: Likewise.
4041 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4042 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
4046 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
4050 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
4054 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
4060 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
4061 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
4063 * testsuite/gas/arm/mve_dsp.d: New test.
4067 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
4068 rather than BFD_RELOC_NONE.
4072 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
4073 to support VLDMIA instruction for MVE.
4074 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
4075 instruction for MVE.
4076 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
4077 instruction for MVE.
4078 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
4079 instruction for MVE.
4080 * testsuite/gas/arm/mve-ldst.d: New test.
4081 * testsuite/gas/arm/mve-ldst.s: Likewise.
4085 * po/fr.po: Updated French translation.
4086 * po/ru.po: Updated Russian translation.
4090 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
4092 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
4093 * testsuite/gas/aarch64/sve-movprfx_28.d,
4094 * testsuite/gas/aarch64/sve-movprfx_28.l,
4095 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
4099 * config/tc-i386.c (output_disp): Tighten base_opcode check.
4100 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
4101 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
4102 Adjust expectations.
4106 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
4107 * testsuite/gas/bpf/alu-be.d: Likewise.
4108 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
4109 * testsuite/gas/bpf/alu32-be.d: Likewise.
4113 * testsuite/gas/i386/x86-64-branch-2.s,
4114 testsuite/gas/i386/x86-64-branch-4.s,
4115 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
4116 * testsuite/gas/i386/ilp32/x86-64-branch.d,
4117 testsuite/gas/i386/x86-64-branch-2.d,
4118 testsuite/gas/i386/x86-64-branch-4.l,
4119 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
4123 * config/tc-i386.c (process_suffix): .
4124 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
4125 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
4127 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
4129 testsuite/gas/i386/x86_64.s: Add RETF cases.
4130 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
4131 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
4132 testsuite/gas/i386/x86-64-opcode.d,
4133 testsuite/gas/i386/x86-64-suffix-intel.d,
4134 testsuite/gas/i386/x86-64-suffix.d,
4135 testsuite/gas/i386/x86_64-intel.d
4136 testsuite/gas/i386/x86_64.d: Adjust expectations.
4137 * testsuite/gas/i386/x86-64-suffix.e,
4138 testsuite/gas/i386/x86_64.e: New.
4142 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
4148 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
4150 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
4151 differences. Document movslq and movsxd.
4152 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
4153 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
4154 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
4155 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
4156 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
4157 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
4158 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
4159 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
4160 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
4161 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
4162 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
4166 * testsuite/gas/all/gas.exp: Replace case statements with switch
4168 * testsuite/gas/elf/elf.exp: Likewise.
4169 * testsuite/gas/macros/macros.exp: Likewise.
4170 * testsuite/lib/gas-defs.exp: Likewise.
4175 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
4176 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
4180 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
4181 s exts must be known, so rename *ok* to *fail*.
4182 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
4183 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
4184 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
4186 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
4187 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
4192 * config/tc-i386.c (check_long_reg): Always disallow double word
4193 suffix in mnemonic with word general register.
4194 * testsuite/gas/i386/general.s: Replace word general register
4195 with double word general register for movl.
4196 * testsuite/gas/i386/inval.s: Add tests for movl with word general
4198 * testsuite/gas/i386/general.l: Updated.
4199 * testsuite/gas/i386/inval.l: Likewise.
4203 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
4204 __tls_get_addr_desc and __tls_get_addr_opt.
4208 * testsuite/gas/i386/inval-crc32.s,
4209 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
4210 * testsuite/gas/i386/inval-crc32.l,
4211 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
4215 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
4216 generic code path. Deal with No_lSuf being set in a template.
4217 * testsuite/gas/i386/inval-crc32.l,
4218 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
4219 instead of error(s) when operand size is ambiguous.
4220 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4221 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
4222 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
4223 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
4224 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
4225 Adjust expectations.
4229 * config/tc-i386.c (process_suffix): Drop SYSRET special case
4230 and an intel_syntax check. Re-write lack-of-suffix processing
4232 * doc/c-i386.texi: Document operand size defaults for suffix-
4233 less AT&T syntax insns.
4234 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
4235 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
4236 testsuite/gas/i386/x86-64-avx-scalar.s,
4237 testsuite/gas/i386/x86-64-avx.s,
4238 testsuite/gas/i386/x86-64-bundle.s,
4239 testsuite/gas/i386/x86-64-intel64.s,
4240 testsuite/gas/i386/x86-64-lock-1.s,
4241 testsuite/gas/i386/x86-64-opcode.s,
4242 testsuite/gas/i386/x86-64-sse2avx.s,
4243 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
4244 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
4245 testsuite/gas/i386/x86-64-nops.s,
4246 testsuite/gas/i386/x86-64-ptwrite.s,
4247 testsuite/gas/i386/x86-64-simd.s,
4248 testsuite/gas/i386/x86-64-sse-noavx.s,
4249 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
4251 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4252 testsuite/gas/i386/noreg64.s: Add further tests.
4253 * testsuite/gas/i386/ilp32/x86-64-nops.d,
4254 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
4255 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
4256 testsuite/gas/i386/sse-noavx.d,
4257 testsuite/gas/i386/x86-64-intel64.d,
4258 testsuite/gas/i386/x86-64-nops.d,
4259 testsuite/gas/i386/x86-64-opcode.d,
4260 testsuite/gas/i386/x86-64-ptwrite-intel.d,
4261 testsuite/gas/i386/x86-64-ptwrite.d,
4262 testsuite/gas/i386/x86-64-simd-intel.d,
4263 testsuite/gas/i386/x86-64-simd-suffix.d,
4264 testsuite/gas/i386/x86-64-simd.d,
4265 testsuite/gas/i386/x86-64-sse-noavx.d
4266 testsuite/gas/i386/x86-64-suffix.d,
4267 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
4268 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
4269 testsuite/gas/i386/noreg64.l: New.
4270 * testsuite/gas/i386/i386.exp: Run new tests.
4274 * testsuite/gas/i386/avx512_bf16_vl.s,
4275 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
4276 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
4277 broadcast forms of VCVTNEPS2BF16.
4278 * testsuite/gas/i386/avx512_bf16_vl.d,
4279 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
4283 * po/uk.po: Updated Ukranian translation.
4288 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
4289 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
4291 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
4292 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
4293 R_X86_64_GOTPC32_TLSDESC relocation.
4297 * configure: Regenerate.
4298 * po/gas.pot: Regenerate.
4302 Binutils 2.34 branch created.
4306 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
4307 with vex_encoding_vex.
4308 (parse_insn): Likewise.
4309 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
4310 and {vex3} documentation.
4311 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
4313 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
4318 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
4319 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
4320 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
4321 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
4322 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
4323 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
4327 * config/tc-i386.c (match_template): Drop found_cpu_match local
4332 * testsuite/gas/i386/avx512dq-inval.l,
4333 testsuite/gas/i386/avx512dq-inval.s: New.
4334 * testsuite/gas/i386/i386.exp: Run new test.
4338 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
4339 relocations when the target is 430X, except when extracting part of an
4341 (msp430_srcoperand): Adjust comment.
4342 Initialize the expp member of the msp430_operand_s struct as
4344 (msp430_dstoperand): Likewise.
4345 * testsuite/gas/msp430/msp430.exp: Run new test.
4346 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
4347 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
4351 * configure.tgt: Add sparc-*-freebsd case.
4355 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
4356 * testsuite/gas/i386/align-branch-1b.d: Likewise.
4357 * testsuite/gas/i386/align-branch-1c.d: Likewise.
4358 * testsuite/gas/i386/align-branch-1d.d: Likewise.
4359 * testsuite/gas/i386/align-branch-1e.d: Likewise.
4360 * testsuite/gas/i386/align-branch-1f.d: Likewise.
4361 * testsuite/gas/i386/align-branch-1g.d: Likewise.
4362 * testsuite/gas/i386/align-branch-1h.d: Likewise.
4363 * testsuite/gas/i386/align-branch-1i.d: Likewise.
4364 * testsuite/gas/i386/align-branch-5.d: Likewise.
4365 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
4366 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
4367 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
4368 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
4369 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
4370 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
4371 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
4372 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
4373 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
4374 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
4375 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
4376 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
4381 * config/tc-z80.c: Add support for half precision, single
4382 precision and double precision floating point values.
4383 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
4384 * doc/as.texi: Add new z80 command line options.
4385 * doc/c-z80.texi: Document new z80 command line options.
4386 * testsuite/gas/z80/ez80_pref_dis.s: New test.
4387 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
4388 * testsuite/gas/z80/z80.exp: Run the new test.
4389 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
4390 * testsuite/gas/z80/fp_zeda32.d: Likewise.
4391 * testsuite/gas/z80/strings.d: Update expected output.
4395 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
4400 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
4402 * config/tc-arc.h: Add header if/defs.
4403 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
4407 * testsuite/gas/wasm32/allinsn.d: Update expected output.
4411 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
4416 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
4417 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
4422 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
4424 (emit_ld_r_r): Likewise.
4425 (emit_ld_rr_m): Likewise.
4426 (emit_ld_rr_nn): Likewise.
4430 * config/tc-i386.c (optimize_encoding): Add
4431 is_any_vex_encoding() invocations. Drop respective
4432 i.tm.extension_opcode == None checks.
4436 * config/tc-i386.c (md_assemble): Check RegRex is clear during
4437 REX transformations. Correct comment indentation.
4441 * config/tc-i386.c (optimize_encoding): Generalize register
4442 transformation for TEST optimization.
4446 * testsuite/gas/i386/x86-64-sysenter-amd.s,
4447 testsuite/gas/i386/x86-64-sysenter-amd.d,
4448 testsuite/gas/i386/x86-64-sysenter-amd.l,
4449 testsuite/gas/i386/x86-64-sysenter-intel.d,
4450 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
4451 * testsuite/gas/i386/i386.exp: Run new tests.
4456 * doc/as.texi (Align): Document the fact that all arguments can be
4459 (P2align): Likewise.
4464 * config/obj-elf.c (obj_elf_section): Fail if the section name is
4465 already defined as a different symbol type.
4466 * testsuite/gas/elf/pr14891.s: New test source file.
4467 * testsuite/gas/elf/pr14891.d: New test driver.
4468 * testsuite/gas/elf/pr14891.s: New test expected error output.
4469 * testsuite/gas/elf/elf.exp: Run the new test.
4473 * config/tc-z8k.c (md_begin): Make idx unsigned.
4474 (get_specific): Likewise for this_index.
4478 * onfig/tc-arc.c (parse_reloc_symbol): New function.
4479 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
4480 (md_operand): Set X_md to absent.
4481 (arc_parse_name): Check for X_md.
4486 * as.h (TC_STRING_ESCAPES): Provide a default definition.
4487 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
4489 * read.c (next_char_of_string): Likewise.
4490 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
4491 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
4495 * po/sv.po: Updated Swedish translation.
4499 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
4500 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4504 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
4505 by-element usdot. Add 64-bit form tests for by-element sudot.
4506 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
4510 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
4511 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4515 * testsuite/gas/aarch64/f64mm.d,
4516 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
4520 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
4521 support for assembler code generated by SDCC. Add new relocation
4522 types. Add z80-elf target support.
4523 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
4524 labels. Local labels starts from ".L".
4525 * NEWS: Mention the new support.
4526 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
4527 * testsuite/gas/all/fwdexp.s: Likewise.
4528 * testsuite/gas/all/cond.l: Likewise.
4529 * testsuite/gas/all/cond.s: Likewise.
4530 * testsuite/gas/all/fwdexp.d: Likewise.
4531 * testsuite/gas/all/fwdexp.s: Likewise.
4532 * testsuite/gas/elf/section2.e-mips: Likewise.
4533 * testsuite/gas/elf/section2.l: Likewise.
4534 * testsuite/gas/elf/section2.s: Likewise.
4535 * testsuite/gas/macros/app1.d: Likewise.
4536 * testsuite/gas/macros/app1.s: Likewise.
4537 * testsuite/gas/macros/app2.d: Likewise.
4538 * testsuite/gas/macros/app2.s: Likewise.
4539 * testsuite/gas/macros/app3.d: Likewise.
4540 * testsuite/gas/macros/app3.s: Likewise.
4541 * testsuite/gas/macros/app4.d: Likewise.
4542 * testsuite/gas/macros/app4.s: Likewise.
4543 * testsuite/gas/macros/app4b.s: Likewise.
4544 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
4545 * testsuite/gas/z80/z80.exp: Add new tests
4546 * testsuite/gas/z80/dollar.d: New file.
4547 * testsuite/gas/z80/dollar.s: New file.
4548 * testsuite/gas/z80/ez80_adl_all.d: New file.
4549 * testsuite/gas/z80/ez80_adl_all.s: New file.
4550 * testsuite/gas/z80/ez80_adl_suf.d: New file.
4551 * testsuite/gas/z80/ez80_isuf.s: New file.
4552 * testsuite/gas/z80/ez80_z80_all.d: New file.
4553 * testsuite/gas/z80/ez80_z80_all.s: New file.
4554 * testsuite/gas/z80/ez80_z80_suf.d: New file.
4555 * testsuite/gas/z80/r800_extra.d: New file.
4556 * testsuite/gas/z80/r800_extra.s: New file.
4557 * testsuite/gas/z80/r800_ii8.d: New file.
4558 * testsuite/gas/z80/r800_z80_doc.d: New file.
4559 * testsuite/gas/z80/z180.d: New file.
4560 * testsuite/gas/z80/z180.s: New file.
4561 * testsuite/gas/z80/z180_z80_doc.d: New file.
4562 * testsuite/gas/z80/z80_doc.d: New file.
4563 * testsuite/gas/z80/z80_doc.s: New file.
4564 * testsuite/gas/z80/z80_ii8.d: New file.
4565 * testsuite/gas/z80/z80_ii8.s: New file.
4566 * testsuite/gas/z80/z80_in_f_c.d: New file.
4567 * testsuite/gas/z80/z80_in_f_c.s: New file.
4568 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
4569 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
4570 * testsuite/gas/z80/z80_out_c_0.d: New file.
4571 * testsuite/gas/z80/z80_out_c_0.s: New file.
4572 * testsuite/gas/z80/z80_reloc.d: New file.
4573 * testsuite/gas/z80/z80_reloc.s: New file.
4574 * testsuite/gas/z80/z80_sli.d: New file.
4575 * testsuite/gas/z80/z80_sli.s: New file.
4579 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
4584 Update year range in copyright notice of all files.
4586 For older changes see ChangeLog-2019
4588 Copyright (C) 2020 Free Software Foundation, Inc.
4590 Copying and distribution of this file, with or without modification,
4591 are permitted in any medium without royalty provided the copyright
4592 notice and this notice are preserved.
4598 version-control: never