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