Fix .dwsect generation for XCOFF. Handle .function generated with DWARF on XCOFF.
[binutils-gdb.git] / gas / ChangeLog
1 2021-05-07 Clément Chigot <clement.chigot@atos.net>
2
3 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
4 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
5 (coff_frob_section): Likewise.
6 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
7 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
8 SA_SET_SECT_NRELOC) New defines.
9 (SET_SECTION_RELOCS): Adjust for C_DWARF.
10 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
11 (ppc_adjust_symtab): Reorder C_DWARF symbols.
12 * testsuite/gas/ppc/aix.exp: New tests.
13 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
14 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
15 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
16
17 * config/tc-ppc.c (ppc_function): Update comment for
18 fifth argument.
19 (ppc_frob_symbol): Remove ppc_last_function check.
20 Make sure coff_last_function is reset.
21 Correctly set fsize when not provided in .function.
22 * testsuite/gas/ppc/aix.exp: New tests.
23 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
24 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
25 * testsuite/gas/ppc/xcoff-function-1.s: New test.
26
27 2021-05-07 Jan Beulich <jbeulich@suse.com>
28
29 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
30 * testsuite/gas/i386/i386.exp: Run new test.
31
32 2021-05-07 Jan Beulich <jbeulich@suse.com>
33
34 * config/tc-i386.c (output_disp): Use disps field instead of
35 imms one.
36
37 2021-05-07 Jan Beulich <jbeulich@suse.com>
38
39 * config/tc-i386.c (i386_finalize_immediate): Move register
40 check ...
41 (i386_immediate): ... here.
42
43 2021-05-07 Jan Beulich <jbeulich@suse.com>
44
45 * config/tc-i386.c (optimize_imm): Drop redundant masking.
46 Re-arrange operand type accumulation.
47
48 2021-05-06 Stafford Horne <shorne@gmail.com>
49
50 PR 21464
51 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
52 * testsuite/gas/or1k/reloc-1.d: Add test result for new
53 relocation.
54
55 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
56
57 PR 27764
58 * testsuite/gas/riscv/a-ext-64.d: New testcase.
59 * testsuite/gas/riscv/a-ext-64.s: Likewise.
60 * testsuite/gas/riscv/a-ext.d: Likewise.
61 * testsuite/gas/riscv/a-ext.s: Likewise.
62
63 2021-05-03 Jan Beulich <jbeulich@suse.com>
64
65 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
66 #if.
67 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
68 Add two further .long and an .equ.
69 * testsuite/gas/i386/secrel.d: Adjust expecations.
70
71 2021-05-03 Jan Beulich <jbeulich@suse.com>
72
73 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
74 Convert Windows to UNIX EOL.
75
76 2021-05-03 Jan Beulich <jbeulich@suse.com>
77
78 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
79 variant into ELF one.
80
81 2021-05-03 Alan Modra <amodra@gmail.com>
82
83 * testsuite/gas/elf/section25.s: Don't start directives in first
84 column.
85 * testsuite/gas/elf/section26.s: Likewise.
86
87 2021-04-29 Jan Beulich <jbeulich@suse.com>
88
89 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
90 * testsuite/gas/i386/lea64.d,
91 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
92 * testsuite/gas/i386/x86-64-rip-inval-1.s,
93 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
94
95 2021-04-29 Jan Beulich <jbeulich@suse.com>
96
97 * config/tc-i386.c (i386_validate_fix): Change return type to
98 int. Short-circuit BFD_RELOC_SIZE* handling.
99 (tc_gen_reloc): New local variable sym. Extend logic when
100 processing BFD_RELOC_SIZE*.
101 * config/tc-i386.f (i386_validate_fix): Change return type to
102 int.
103 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
104 returns zero.
105 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
106 testsuite/gas/i386/size-5b.d: New.
107 * testsuite/gas/i386/i386.exp: Run new tests.
108
109 2021-04-29 Jan Beulich <jbeulich@suse.com>
110
111 * config/tc-i386.c (tc_gen_reloc): Use section size for section
112 symbols when resolving BFD_RELOC_SIZE*.
113 * testsuite/gas/i386/size-2.s: Add section size cases.
114 * testsuite/gas/i386/size-2.d,
115 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
116
117 2021-04-28 Jan Beulich <jbeulich@suse.com>
118 H.J. Lu <hjl.tools@gmail.com>
119
120 PR gas/27763
121 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
122 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
123 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
124 (md_estimate_size_before_relax): Move local variable fixP. Set
125 it from fix_new() return values. Mark 4-byte relocs as signed
126 for 64-bit.
127 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
128 * testsuite/gas/i386/x86-64-rip-2.s,
129 * testsuite/gas/i386/x86-64-rip-2.d,
130 * testsuite/gas/i386/x86-64-rip-inval-1.s,
131 * testsuite/gas/i386/x86-64-rip-inval-1.l,
132 * testsuite/gas/i386/x86-64-rip-inval-2.s,
133 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
134 * testsuite/gas/i386/i386.exp: Run new tests.
135
136 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
137
138 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
139
140 2021-04-26 Jan Beulich <jbeulich@suse.com>
141
142 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
143 BFD_RELOC_SIZE*.
144
145 2021-04-26 Jan Beulich <jbeulich@suse.com>
146
147 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
148 overflow check to 64-bit objects.
149
150 2021-04-26 Jan Beulich <jbeulich@suse.com>
151
152 * config/tc-i386.c (want_disp32): Also check for SIZE32.
153 (optimize_encoding): Handle LEA.
154 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
155 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
156 Add many more forms.
157 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
158 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
159 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
160 New.
161 * testsuite/gas/i386/i386.exp: Run new tests.
162
163 2021-04-26 Jan Beulich <jbeulich@suse.com>
164
165 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
166 signed.
167 * testsuite/gas/i386/x86-64-addr32-bad.s,
168 testsuite/gas/i386/x86-64-addr32-bad.l: New.
169 * testsuite/gas/i386/i386.exp: Run new test.
170
171 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
172
173 * testsuite/gas/elf/section25.d: Run it everywhere.
174 * testsuite/gas/elf/section26.d: Likewise.
175 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
176
177 2021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
178
179 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
180 optional "code" argument.
181
182 2021-04-23 Jan Beulich <jbeulich@suse.com>
183
184 * config/tc-i386.c (want_disp32): New.
185 (md_assemble): Use it.
186 (optimize_disp): Likewise.
187 (build_modrm_byte): Likewise.
188
189 2021-04-23 Jan Beulich <jbeulich@suse.com>
190
191 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
192 check ...
193 (md_assemble): ... here.
194
195 2021-04-23 Jan Beulich <jbeulich@suse.com>
196
197 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
198 Move up setting of disp32.
199
200 2021-04-23 Jan Beulich <jbeulich@suse.com>
201
202 * config/tc-i386.c (pe): Don't truncate expression value.
203 (i386_finalize_displacement): Likewise.
204
205 2021-04-21 Nick Clifton <nickc@redhat.com>
206
207 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
208 for named section symbols.
209 * testsuite/gas/arm/thumbver.d: Likewise.
210 * testsuite/gas/bfin/loop_temps.d: Likewise.
211 * testsuite/gas/elf/section2.e-arc: Likewise.
212 * testsuite/gas/elf/section2.e-arm: Likewise.
213 * testsuite/gas/elf/section2.e-csky: Likewise.
214 * testsuite/gas/elf/section2.e-m32r: Likewise.
215 * testsuite/gas/elf/section2.e-mips: Likewise.
216 * testsuite/gas/elf/section2.e-msp430: Likewise.
217 * testsuite/gas/elf/section2.e-riscv: Likewise.
218 * testsuite/gas/elf/section2.e-rl78: Likewise.
219 * testsuite/gas/elf/section2.e-rx: Likewise.
220 * testsuite/gas/elf/section2.e-score: Likewise.
221 * testsuite/gas/elf/section2.e-tic6x: Likewise.
222 * testsuite/gas/elf/section2.e-unused: Likewise.
223 * testsuite/gas/elf/section2.e-v850: Likewise.
224 * testsuite/gas/elf/section2.e-xtensa: Likewise.
225 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
226 * testsuite/gas/ia64/alias.d: Likewise.
227 * testsuite/gas/ia64/global.d: Likewise.
228 * testsuite/gas/microblaze/relax_size.elf: Likewise.
229 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
230 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
231 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
232 * testsuite/gas/mmix/bspec-1.d: Likewise.
233 * testsuite/gas/mmix/byte-1.d: Likewise.
234 * testsuite/gas/mmix/comment-1.d: Likewise.
235 * testsuite/gas/mmix/loc-1.d: Likewise.
236 * testsuite/gas/mmix/loc-2.d: Likewise.
237 * testsuite/gas/mmix/loc-3.d: Likewise.
238 * testsuite/gas/mmix/loc-4.d: Likewise.
239 * testsuite/gas/mmix/loc-5.d: Likewise.
240 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
241
242 2021-04-20 Clément Chigot <clement.chigot@atos.net>
243
244 PR binutils/21700
245 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
246 (ppc_fix_adjustable): Manage fx_subsy part.
247 (tc_gen_reloc): Create second relocation when both
248 fx_addsy and fx_subsy are provided.
249 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
250 (MAX_RELOC_EXPANSION): Likewise.
251 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
252 (UNDEFINED_DIFFERENCE_OK): Likewise
253 * testsuite/gas/all/gas.exp: Skip difference between two
254 undefined symbols test.
255
256 2021-04-19 Nick Clifton <nickc@redhat.com>
257
258 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
259 targets which should skip the undefined symbols test.
260
261 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
262
263 * NEWS: Update news.
264 * testsuite/gas/aarch64/rme.d: Update test.
265 * testsuite/gas/aarch64/rme.s: Update test.
266
267 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
268
269 * testsuite/gas/aarch64/rme.d: Update test.
270 * testsuite/gas/aarch64/rme.s: Update test.
271
272 2021-04-19 Jan Beulich <jbeulich@suse.com>
273
274 * as.h (sprint_value): Delete.
275 * messages.c (sprint_value): Likewise.
276 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
277 place of sprint_value.
278 * config/tc-s390.c (s390_insert_operand): Likewise.
279 * doc/internals.texi (sprint_value): Delete section.
280 * write.c (fixup_segment): Likewise.
281 (relax_segment): Likewise.
282
283 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
284
285 * testsuite/gas/aarch64/rme-invalid.d: New test.
286 * testsuite/gas/aarch64/rme-invalid.l: New test.
287 * testsuite/gas/aarch64/rme-invalid.s: New test.
288 * testsuite/gas/aarch64/rme.d: New test.
289 * testsuite/gas/aarch64/rme.s: New test.
290
291 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
292
293 PR 27436
294 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
295 * testsuite/gas/riscv/shamt-32.d: New testcase.
296 * testsuite/gas/riscv/shamt-32.l: Likewise.
297 * testsuite/gas/riscv/shamt-32.s: Likewise.
298 * testsuite/gas/riscv/shamt-64.d: Likewise.
299 * testsuite/gas/riscv/shamt-64.l: Likewise.
300 * testsuite/gas/riscv/shamt-64.s: Likewise.
301
302 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
303
304 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
305 c.mv a4,a4.
306 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
307
308 2021-04-14 Alan Modra <amodra@gmail.com>
309
310 PR 27723
311 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
312 (select_cie_for_fde): ..here. Simplify.
313
314 2021-04-14 Alan Modra <amodra@gmail.com>
315
316 PR 27723
317 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
318 DW_CFA_GNU_window_save and DW_CFA_restore_state.
319
320 2021-04-13 Alan Modra <amodra@gmail.com>
321
322 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
323 write to $srcdir. Use gas_host_run and read output file rather
324 than gas_start/gas_finish.
325
326 2021-04-12 Alan Modra <amodra@gmail.com>
327
328 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
329 (md_assemble): Likewise. Handle bignum operands.
330 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
331 check.
332 * expr.c: Delete unnecessary forward declarations.
333 (generic_bignum_to_int32): Return uint32_t.
334 (generic_bignum_to_int64): Return uint64_t. Compile always.
335 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
336 clear X_extrabit for unary '!'.
337 * expr.h (generic_bignum_to_int32): Declare.
338 (generic_bignum_to_int64): Declare.
339 * testsuite/gas/ppc/prefix-pcrel.s,
340 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
341
342 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
343
344 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
345 march-fail-porder-x-std.d.
346 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
347 march-fail-porder-z-std.d.
348 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
349 march-fail-porder-x-z.d.
350 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
351 march-fail-porder.l.
352 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
353 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
354 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
355 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
356 march-fail-single-char-h.d.
357 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
358 march-fail-single-char-s.d.
359 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
360 march-fail-single-char-x.d.
361 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
362 march-fail-single-char-z.d.
363 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
364 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
365 march-fail-single-prefix.l.
366 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
367 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
368 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
369
370 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
371
372 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
373 diagnostic messages for LD/ST Exclusive instructions.
374 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
375 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
376 clean-up.
377
378 2021-04-09 Alan Modra <amodra@gmail.com>
379
380 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
381 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
382 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
383
384 2021-04-08 Alan Modra <amodra@gmail.com>
385
386 * testsuite/gas/ppc/pr27676.d,
387 * testsuite/gas/ppc/pr27676.s: New test.
388 * testsuite/gas/ppc/ppc.exp: Run it.
389 * testsuite/gas/ppc/dcbt.d: Update.
390 * testsuite/gas/ppc/power4_32.d: Update.
391
392 2021-04-07 Alan Modra <amodra@gmail.com>
393
394 PR 27217
395 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
396
397 2021-04-06 Nick Clifton <nickc@redhat.com>
398
399 PR 27217
400 * config/tc-aarch64.c (my_get_expression): Rename to
401 aarch64_get_expression. Add a fifth argument to enable deferring
402 of expression resolution.
403 (parse_typed_reg): Update calls to my_get_expression.
404 (parse_vector_reg_list): Likewise.
405 (parse_immediate_expression): Likewise.
406 (parse_big_immediate): Likewise.
407 (parse_shift): Likewise.
408 (parse_shifter_operand_imm): Likewise.
409 (parse_operands): Likewise.
410 (parse_shifter_operand_reloc): Update calls to my_get_expression
411 and call aarch64_force_reloc to determine the value of the new
412 fifth argument.
413 (parse_address_main): Likewise.
414 (parse_half): Likewise.
415 (parse_adrp): Likewise.
416 (aarch64_force_reloc): New function. Contains code extracted from...
417 (aarch64_force_relocation): ... here.
418 * testsuite/gas/aarch64/pr27217.s: New test case.
419 * testsuite/gas/aarch64/pr27217.d: New test driver.
420
421 2021-04-06 Jan Beulich <jbeulich@suse.com>
422
423 * write.c (fixup_segment): Move add_symbol_segment declaration
424 into main loop.
425
426 2021-04-05 Alan Modra <amodra@gmail.com>
427
428 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
429 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
430 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
431 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
432 strstr, or vsnprintf declarations.
433 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
434 * as.h: Don't include alloca-conf.h, include config.h instead.
435 Include string.h, stdlib.h, errno.h unconditionally. Remove
436 various fallback declarations.
437 * asintl.h: Don't test HAVE_LOCALE_H.
438 * as.c: Don't test HAVE_SETLOCALE.
439 * dwarf2dbg.c: Include limits.h unconditionally.
440 * expr.c: Likewise.
441 * sb.c: Likewise.
442 * symbols.c: Likewise.
443 * config/tc-cr16.c: Likewise.
444 * config/tc-d30v.c: Likewise.
445 * config/tc-i386.c: Likewise.
446 * config/tc-ia64.c: Likewise.
447 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
448 * config.in: Regenerate.
449 * configure: Regenerate.
450 * Makefile.in: Regenerate.
451 * doc/Makefile.in: Regenerate.
452
453 2021-04-01 Martin Liska <mliska@suse.cz>
454
455 * config/obj-coff.c (strneq): Remove strneq and use startswith.
456 (weak_is_altname): Likewise.
457 (obj_coff_section): Likewise.
458 * config/tc-cr16.c (process_label_constant): Likewise.
459 * config/tc-crx.c (strneq): Likewise.
460
461 2021-04-01 Martin Liska <mliska@suse.cz>
462
463 * as.c (select_emulation_mode): Use startswith.
464 * config/m68k-parse.y: Likewise.
465 * config/obj-aout.c (obj_aout_type): Likewise.
466 * config/obj-elf.c (elf_common_parse): Likewise.
467 (obj_elf_section_type): Likewise.
468 (obj_elf_section_word): Likewise.
469 (obj_elf_section): Likewise.
470 (obj_elf_symver): Likewise.
471 (adjust_stab_sections): Likewise.
472 * config/obj-evax.c (evax_shorten_name): Likewise.
473 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
474 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
475 (aarch64_parse_features): Likewise.
476 (create_register_alias): Likewise.
477 (aarch64_data_in_code): Likewise.
478 (md_parse_option): Likewise.
479 * config/tc-alpha.c (s_alpha_section_word): Likewise.
480 (s_alpha_pdesc): Likewise.
481 * config/tc-arc.c (tokenize_extregister): Likewise.
482 * config/tc-arm.c (create_register_alias): Likewise.
483 (create_neon_reg_alias): Likewise.
484 (parse_ifimm_zero): Likewise.
485 (parse_qfloat_immediate): Likewise.
486 (arm_elf_section_type): Likewise.
487 (arm_parse_extension): Likewise.
488 (aeabi_set_public_attributes): Likewise.
489 (s_arm_arch_extension): Likewise.
490 (arm_data_in_code): Likewise.
491 (start_unwind_section): Likewise.
492 * config/tc-avr.c (avr_ldi_expression): Likewise.
493 * config/tc-csky.c (is_freglist_legal): Likewise.
494 (csky_s_section): Likewise.
495 * config/tc-d30v.c (do_assemble): Likewise.
496 * config/tc-dlx.c (parse_operand): Likewise.
497 * config/tc-epiphany.c (md_assemble): Likewise.
498 * config/tc-h8300.c (h8300_elf_section): Likewise.
499 (get_operand): Likewise.
500 * config/tc-hppa.c (pa_ip): Likewise.
501 (pa_level): Likewise.
502 (pa_space): Likewise.
503 * config/tc-i386.c (i386_mach): Likewise.
504 (md_assemble): Likewise.
505 (check_VecOperations): Likewise.
506 (i386_target_format): Likewise.
507 (i386_elf_section_type): Likewise.
508 * config/tc-ia64.c (start_unwind_section): Likewise.
509 (md_parse_option): Likewise.
510 (is_taken_branch): Likewise.
511 (idesc->name,): Likewise.
512 (note_register_values): Likewise.
513 (do_alias): Likewise.
514 * config/tc-m32c.c (insn_to_subtype): Likewise.
515 * config/tc-m68hc11.c (get_operand): Likewise.
516 (md_assemble): Likewise.
517 * config/tc-m68k.c (m68k_ip): Likewise.
518 (m68k_elf_suffix): Likewise.
519 * config/tc-mcore.c (mcore_s_section): Likewise.
520 * config/tc-metag.c (parse_get_set): Likewise.
521 (md_parse_option): Likewise.
522 * config/tc-microblaze.c (parse_imm): Likewise.
523 (check_got): Likewise.
524 (md_apply_fix): Likewise.
525 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
526 (md_begin): Likewise.
527 (s_is_linkonce): Likewise.
528 (check_regno): Likewise.
529 (match_float_constant): Likewise.
530 (classify_vr4120_insn): Likewise.
531 (match_insn): Likewise.
532 (mips_after_parse_args): Likewise.
533 (s_change_sec): Likewise.
534 (s_option): Likewise.
535 (parse_code_option): Likewise.
536 (md_section_align): Likewise.
537 (nopic_need_relax): Likewise.
538 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
539 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
540 (mn10300_end_of_match): Likewise.
541 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
542 * config/tc-nds32.c (nds32_parse_option): Likewise.
543 * config/tc-nds32.h (md_do_align): Likewise.
544 * config/tc-nios2.c (strprefix): Likewise.
545 (nios2_special_relocation_p): Likewise.
546 (nios2_parse_base_register): Likewise.
547 (nios2_cons): Likewise.
548 * config/tc-ns32k.c (addr_mode): Likewise.
549 * config/tc-pdp11.c (set_option): Likewise.
550 (parse_reg): Likewise.
551 (parse_ac5): Likewise.
552 (parse_op_no_deferred): Likewise.
553 (set_cpu_model): Likewise.
554 (set_machine_model): Likewise.
555 * config/tc-pj.c (md_operand): Likewise.
556 * config/tc-ppc.c (ppc_set_cpu): Likewise.
557 (ppc_arch): Likewise.
558 (ppc_section_type): Likewise.
559 * config/tc-s12z.c (tb_reg_rel): Likewise.
560 (tb_opr_rel): Likewise.
561 * config/tc-s390.c (s390_parse_cpu): Likewise.
562 (md_parse_option): Likewise.
563 * config/tc-score.c (s3_nopic_need_relax): Likewise.
564 (s3_pic_need_relax): Likewise.
565 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
566 (s7_pic_need_relax): Likewise.
567 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
568 * config/tc-sparc.c (md_parse_option): Likewise.
569 (sparc_ip): Likewise.
570 (s_reserve): Likewise.
571 (s_common): Likewise.
572 (s_seg): Likewise.
573 (sparc_cons): Likewise.
574 * config/tc-tic54x.c (stag_add_field): Likewise.
575 (tic54x_endstruct): Likewise.
576 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
577 * config/tc-v850.c (v850_comm): Likewise.
578 (md_begin): Likewise.
579 (md_assemble): Likewise.
580 * config/tc-vax.c (vax_cons): Likewise.
581 * config/tc-wasm32.c (wasm32_leb128): Likewise.
582 * config/tc-xstormy16.c (md_operand): Likewise.
583 * config/tc-xtensa.c (get_directive): Likewise.
584 (xg_instruction_matches_option_term): Likewise.
585 (is_unaligned_label): Likewise.
586 (cache_literal_section): Likewise.
587 * config/xtensa-relax.c (parse_precond): Likewise.
588 (parse_option_cond): Likewise.
589 (transition_applies): Likewise.
590 (wide_branch_opcode): Likewise.
591 * dw2gencfi.c: Likewise.
592 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
593 * ehopt.c (get_cie_info): Likewise.
594 * input-file.c (input_file_open): Likewise.
595 * listing.c (listing_newline): Likewise.
596 (debugging_pseudo): Likewise.
597 * read.c (read_a_source_file): Likewise.
598 * write.c (adjust_reloc_syms): Likewise.
599 (compress_debug): Likewise.
600 (maybe_generate_build_notes): Likewise.
601
602 2021-03-31 Alan Modra <amodra@gmail.com>
603
604 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
605 * config/bfin-lex-wrapper.c: Likewise.
606 * itbl-lex.l: Don't include as.h.
607 * config/bfin-lex.l: Likewise.
608
609 2021-03-31 Alan Modra <amodra@gmail.com>
610
611 * as.h (POISON_BFD_BOOLEAN): Define.
612 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
613 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
614 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
615 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
616 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
617 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
618 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
619 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
620 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
621 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
622 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
623 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
624 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
625 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
626 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
627 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
628 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
629 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
630 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
631 * config/tc-metag.c, * config/tc-metag.h,
632 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
633 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
634 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
635 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
636 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
637 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
638 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
639 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
640 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
641 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
642 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
643 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
644 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
645 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
646 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
647 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
648 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
649 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
650 * config/tc-z8k.c, * config/xtensa-istack.h,
651 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
652 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
653 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
654 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
655 with bool, FALSE with false, and TRUE with true.
656
657 2021-03-31 Alan Modra <amodra@gmail.com>
658
659 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
660 * config/tc-crx.c: Likewise.
661 * config/tc-nds32.h: Likewise.
662
663 2021-03-30 Jan Beulich <jbeulich@suse.com>
664
665 * config/tc-i386.c (build_modrm_byte): Change return type.
666 Change type of "default_seg". Use NULL. Adjust setting of
667 "default_seg".
668 (reg_ds, reg_es, reg_ss): New.
669 (struct _i386_insn): Change type of seg[].
670 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
671 (swap_operands): Change type of "temp_seg".
672 (check_string): Adjust %es check.
673 (process_operands): Change type of "default_seg". Use NULL.
674 Adjust segment override processing..
675 (i386_att_operand): Adjust segment override handling.
676 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
677
678 2021-03-30 Jan Beulich <jbeulich@suse.com>
679
680 * config/tc-i386.c (reg_eax): New.
681 (md_begin): Initialize reg_eax.
682 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
683 reg_eax.
684 (i386_intel_simplify): Likewise.
685
686 2021-03-30 Jan Beulich <jbeulich@suse.com>
687
688 * config/tc-i386.c (reg_st0): New.
689 (md_begin): Convert to switch(). Initialize reg_st0. Don't
690 insert other st(N).
691 (parse_real_register): Adjust st(N) processing.
692
693 2021-03-30 Jan Beulich <jbeulich@suse.com>
694
695 * config/tc-i386.c (rc_op): Delete.
696 (struct Rounding_Operation): Move ...
697 (struct _i386_insn): ... here. Change field "rounding".
698 (build_evex_prefix): Adjust rounding processing.
699 (swap_2_operands): Likewise.
700 (check_VecOperands): Likewise.
701 (RC_SAE_immediate): Likewise.
702 (optimize_encoding): Adjust check for rounding.
703 (build_modrm_byte): Likewise.
704 (output_imm): Likewise.
705 (md_assemble): Initialize rounding type.
706
707 2021-03-30 Jan Beulich <jbeulich@suse.com>
708
709 * config/tc-i386.c (broadcast_op): Delete.
710 (struct Broadcast_Operation): Move ...
711 (struct _i386_insn): ... here. Change field "broadcast".
712 (match_mem_size): Adjust check for broadcast.
713 (optimize_encoding): Likewise.
714 (process_suffix): Likewise.
715 (build_evex_prefix): Adjust broadcast processing.
716 (swap_2_operands): Likewise.
717 (check_VecOperations): Likewise.
718 (match_template): Likewise.
719 (check_VecOperands): Likewise.
720
721 2021-03-30 Jan Beulich <jbeulich@suse.com>
722
723 * config/tc-i386.c (reg_k0): New.
724 (mask_op): Delete.
725 (struct Mask_Operation): Move ...
726 (struct _i386_insn): ... here. Change field "mask".
727 (md_begin): Initialize reg_k0.
728 (build_evex_prefix): Adjust mask processing.
729 (swap_2_operands): Likewise.
730 (check_VecOperands): Likewise.
731 (check_VecOperations): Likewise.
732 (optimize_encoding): Adjust checks for masking.
733 (output_insn): Likewise.
734
735 2021-03-30 Jan Beulich <jbeulich@suse.com>
736
737 * config/tc-i386.c (swap_2_operands): Switch parameters to
738 unsigned.
739 (struct RC_Operation): Switch operand field to unsigned.
740 (struct Mask_Operation): Likewise.
741 (struct Broadcast_Operation): Likewise.
742 (build_evex_prefix): Drop cast.
743 (check_VecOperands): Likewise.
744 (build_modrm_byte): Likewise.
745 (output_imm): Likewise.
746 (check_VecOperations): Add casts to unsigned.
747
748 2021-03-29 Jan Beulich <jbeulich@suse.com>
749
750 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
751 * testsuite/gas/i386/x86-64-avx-swap-2.d.
752 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
753
754 2021-03-29 Jan Beulich <jbeulich@suse.com>
755
756 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
757 checks by opcodespace ones.
758 (insert_lfence_before): Likewise.
759 (maybe_fused_with_jcc_p): Likewise.
760 (add_branch_padding_frag_p): Likewise.
761 (output_disp): Likewise.
762 (load_insn_p): Re-arrange checks to key applicable ones off of
763 an opcodespace check.
764 (md_assemble): Adjust opcode checks.
765 (check_byte_reg): Likewise.
766 (process_operands): Likewise.
767 (i386_index_check): Likewise.
768 (process_suffix): Likewise. New local variable is_movx. Adjust
769 movsx/movzx and crc32 handling.
770 (output_insn): Adjust opcode checks. Drop no longer reachable
771 case labels. Output legacy encoding prefixes in addition to the
772 base_opcode byte(s). Rework counting of prefixes for extended
773 opcode maps.
774 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
775 opcode checks.
776
777 2021-03-29 Alan Modra <amodra@gmail.com>
778
779 * atof-generic.c (FALSE, TRUE): Don't define.
780 * config/obj-elf.h (FALSE, TRUE): Don't define.
781 * config/obj-som.h (FALSE, TRUE): Don't define.
782 * config/tc-hppa.h (FALSE, TRUE): Don't define.
783 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
784 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
785 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
786 * config/tc-mt.h (obj_fix_adjustable): Delete.
787 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
788 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
789 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
790 (tokenize_extregister): Likewise.
791 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
792 (parse_operands_op, parse_operands, md_assemble): Likewise.
793 * config/tc-d10v.c (build_insn): Likewise.
794 * config/tc-score.c (s3_gen_insn_frag): Likewise.
795 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
796 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
797 * config/tc-z80.c (emit_byte): Likewise.
798
799 2021-03-29 Alan Modra <amodra@gmail.com>
800
801 * config/tc-arm.c (struct arm_long_option_table <func>): Return
802 bfd_boolean.
803 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
804 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
805 with bfd_boolean.
806 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
807 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
808 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
809 logical expressions.
810 (struct metag_long_option <func>): Return bfd_boolean.
811 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
812 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
813 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
814 (no_operands, lex_force_match, lex_reg_list): Likewise.
815 (size_from_suffix): Return int.
816 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
817 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
818
819 2021-03-26 Jan Beulich <jbeulich@suse.com>
820
821 * testsuite/gas/i386/x86-64-nosse2.s,
822 testsuite/gas/i386/x86-64-nosse2.l: New.
823 * testsuite/gas/i386/i386.exp: Run new test.
824
825 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
826
827 * testsuite/gas/nios2/brn.d: New.
828 * testsuite/gas/nios2/brn.d: New.
829
830 2021-03-25 Jan Beulich <jbeulich@suse.com>
831
832 * config/tc-i386.c (match_template): Use t instead of i.tm.
833
834 2021-03-25 Jan Beulich <jbeulich@suse.com>
835
836 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
837 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
838 colliding registers in the upper half of the space.
839 * testsuite/gas/i386/avx512f-nondef.d,
840 testsuite/gas/i386/vgather-check.d,
841 testsuite/gas/i386/x86-64-vgather-check.d,
842 testsuite/gas/i386/x86-64-vgather-check-error.l,
843 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
844 expecations.
845 * testsuite/gas/i386/vgather-check-none.d,
846 testsuite/gas/i386/vgather-check-warn.d,
847 testsuite/gas/i386/x86-64-vgather-check-none.d,
848 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
849 tests for expected dump output.
850
851 2021-03-25 Jan Beulich <jbeulich@suse.com>
852
853 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
854 without mask register.
855 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
856
857 2021-03-25 Jan Beulich <jbeulich@suse.com>
858
859 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
860 swapping operands for.
861 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
862 syntax tests.
863 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
864 well as Intel syntax tests.
865 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
866 expectations.
867 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
868 Likewise. Drop passing --def-sym to as.
869
870 2021-03-25 Jan Beulich <jbeulich@suse.com>
871
872 PR/gas 27419
873 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
874 conversion to x32 mode.
875 * testsuite/gas/i386/ilp32/enqcmd.s,
876 testsuite/gas/i386/ilp32/enqcmd.d,
877 testsuite/gas/i386/ilp32/movdir.s,
878 testsuite/gas/i386/ilp32/movdir.d: New.
879 * testsuite/gas/i386/x86-64-enqcmd.s,
880 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
881 cases.
882 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
883 (%eip) cases.
884 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
885 * testsuite/gas/i386/x86-64-enqcmd.d,
886 testsuite/gas/i386/x86-64-enqcmd-intel.d,
887 testsuite/gas/i386/x86-64-enqcmd-inval.l,
888 testsuite/gas/i386/x86-64-movdir.d,
889 testsuite/gas/i386/x86-64-movdir-intel.d,
890 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
891
892 2021-03-25 Alan Modra <amodra@gmail.com>
893
894 PR 27647
895 * testsuite/gas/ppc/a2.d: Update expected output.
896 * testsuite/gas/ppc/power8.d: Likewise.
897
898 2021-03-24 Jan Beulich <jbeulich@suse.com>
899
900 * config/tc-i386.c (struct _i386_insn): New field
901 opcode_length.
902 (md_begin): Drop assertion.
903 (install_template): New.
904 (build_vex_prefix): Call install_template.
905 (match_template): Likewise.
906 (process_operands): Use new opcode_length field.
907 (output_jump): Likewise.
908 (output_insn): Likewise. Adjust psedo prefix check.
909
910 2021-03-24 Jan Beulich <jbeulich@suse.com>
911
912 * config/tc-i386.c (md_begin): Add assertion.
913 (build_vex_prefix): Drop implied prefix calculation.
914 (build_evex_prefix): Likewise.
915 (optimize_encoding): Adjust opcode checks.
916 (load_insn_p): Also check opcodeprefix.
917 (match_template): Also check opcodespace.
918 (process_suffix): Likewise.
919 (process_operands): Likewise.
920 (output_insn): Likewise. Also check isprefix when discaring
921 standalone LOCK.
922 * config/tc-i386-intel.c (i386_intel_operand): Also check
923 opcodespace.
924
925 2021-03-24 Jan Beulich <jbeulich@suse.com>
926
927 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
928 base_opcode and extension_opcode.
929
930 2021-03-23 Jan Beulich <jbeulich@suse.com>
931
932 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
933
934 2021-03-23 Jan Beulich <jbeulich@suse.com>
935
936 * config/tc-i386.c (output_i386_opcode): Invoke
937 process_i386_cpu_flag() slightly later.
938 (process_i386_opcodes): Likewise.
939
940 2021-03-23 Jan Beulich <jbeulich@suse.com>
941
942 * config/tc-i386.c (pte): Print prefix and encoding space.
943 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
944 (build_evex_prefix): Likewise.
945 (load_insn_p): Likewise.
946
947 2021-03-23 Jan Beulich <jbeulich@suse.com>
948
949 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
950 if()-s.
951 (match_template, output_insn): Use PREFIX_NONE.
952
953 2021-03-23 Jan Beulich <jbeulich@suse.com>
954
955 * config/tc-i386.c (i386_index_check): New local variable t.
956 Correct MPX insn check.
957 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
958 MPX insn check.
959 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
960 index scaling by other than 1.
961 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
962
963 2021-03-22 Martin Liska <mliska@suse.cz>
964
965 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
966 (x86_64_section_word): Likewise.
967 * config/tc-sparc.c (md_parse_option): Likewise.
968
969 2021-03-19 Alan Modra <amodra@gmail.com>
970
971 * app.c (do_scrub_chars): Don't lose spaces before a slash.
972
973 2021-03-18 Christian Groessler <chris@groessler.org>
974
975 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
976 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
977
978 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
979
980 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
981 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
982 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
983 * testsuite/gas/riscv/b-ext-64.d: Likewise.
984 * testsuite/gas/riscv/b-ext.s: Likewise.
985 * testsuite/gas/riscv/b-ext.d: Likewise.
986
987 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
988
989 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
990 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
991 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
992 * testsuite/gas/aarch64/sysreg-7.d: New test.
993 * testsuite/gas/aarch64/sysreg-7.s: New test.
994
995 2021-03-12 Clément Chigot <clement.chigot@atos.net>
996
997 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
998 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
999 (ppc_xcoff_tbss_section): New variables.
1000 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1001 (ppc_data_csects): Removed.
1002 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1003 ppc_xcoff_parse_cons): New functions.
1004 (md_being): Initialize XCOFF sections.
1005 (ppc_xcoff_suffix): Add support for TLS relocations
1006 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1007 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
1008 to .bss section. Handle new XCOFF section variables.
1009 (ppc_comm): Likewise.
1010 (ppc_toc): Likewise.
1011 (ppc_symbol_new_hook): Likewise.
1012 (ppc_frob_symbol): Likewise.
1013 (ppc_fix_adjustable): Add tbss support.
1014 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1015 (ppc_xcoff_parse_cons): Add prototype.
1016 (struct ppc_xcoff_section): New structure.
1017
1018 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1019
1020 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1021 (MAP, MAP32, MAP64): New macros for XCOFF.
1022 (ppc_xcoff_fixup_addis): New function.
1023 (ppc_is_toc_sym): Handle XMC_TE.
1024 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1025 BFD_RELOC_PPC_TOC16_LO.
1026 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1027 (ppc_change_csect): Handle XMC_TE.
1028 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1029 storage class.
1030 (ppc_symbol_new_hook): Handle XMC_TE.
1031 (ppc_frob_symbol): Likewise.
1032 (ppc_fix_adjustable): Likewise.
1033 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1034 BFD_RELOC_PPC_TOC16_LO.
1035
1036 2021-03-10 Jan Beulich <jbeulich@suse.com>
1037
1038 * testsuite/gas/i386/avx512f-intel.d,
1039 testsuite/gas/i386/avx512f_vl-intel.d,
1040 testsuite/gas/i386/avx512pf-intel.d,
1041 testsuite/gas/i386/x86-64-avx512f-intel.d,
1042 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1043 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1044
1045 2021-03-10 Jan Beulich <jbeulich@suse.com>
1046
1047 * testsuite/gas/i386/prefetch.d,
1048 testsuite/gas/i386/prefetch-intel.d,
1049 testsuite/gas/i386/x86-64-prefetch.d,
1050 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1051 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1052 * testsuite/gas/i386/i386.exp: Run new test.
1053
1054 2021-03-09 Jan Beulich <jbeulich@suse.com>
1055
1056 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1057 (md_assemble): Replace use of repprefixok, islockable, and
1058 notrackprefixok.
1059 (i386_index_check): Replace use of repprefixok.
1060
1061 2021-03-09 Jan Beulich <jbeulich@suse.com>
1062
1063 * testsuite/gas/i386/noreg64.s: Add sysexit.
1064 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1065 sysexitl and sysexitq.
1066 * testsuite/gas/i386/noreg-intel64.l,
1067 testsuite/gas/i386/noreg64-data16.d,
1068 testsuite/gas/i386/noreg64-data16.e,
1069 testsuite/gas/i386/noreg64-rex64.d,
1070 testsuite/gas/i386/noreg64.d,
1071 testsuite/gas/i386/noreg64.l,
1072 testsuite/gas/i386/x86-64-sysenter-amd.d,
1073 testsuite/gas/i386/x86-64-sysenter-amd.l,
1074 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1075
1076 2021-02-26 Nick Clifton <nickc@redhat.com>
1077
1078 PR 27411
1079 * config/tc-arm.c (do_t_add_sub): Correct error message.
1080 * testsuite/gas/arm/pr27411.s: New test.
1081 * testsuite/gas/arm/pr27411.d: New test driver.
1082 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1083
1084 2021-02-24 Alan Modra <amodra@gmail.com>
1085
1086 PR 23691
1087 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1088 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1089 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1090 and use alongside TARGET_CPU_CFILES.
1091 (EXTRA_DIST): Update location of generated .c files.
1092 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1093 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1094 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1095 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1096 dependencies.
1097 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1098 (itbl-parse.c, itbl-parse.h): Tidy.
1099 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1100 * config/bfin-lex.l: Include config/bfin-parse.h.
1101 * configure.ac (extra_objects): Move object files corresponding
1102 to .y and .l files now in config/ to config/.
1103 * Makefile.in: Regenerate.
1104 * configure: Regenerate.
1105 * po/POTFILES.in: Regenerate.
1106
1107 2021-02-19 Nick Clifton <nickc@redhat.com>
1108
1109 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1110 misleading indentation.
1111
1112 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1113
1114 PR 27158
1115 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1116 (md_apply_fix): Likewise.
1117 (md_convert_frag_branch): Likewise.
1118 (validate_riscv_insn): Likewise. Also arranged operands, including
1119 added C5 and C6 operands, and removed unused Ci and C< operands.
1120 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1121 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1122 * testsuite/gas/riscv/insn.s: Likewise.
1123
1124 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1125
1126 * config/tc-riscv.c: Included cpu-riscv.h.
1127 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1128 (struct riscv_csr_extra): Likewise.
1129 (struct riscv_ext_version): Likewise.
1130 (ext_version_table): Moved from opcodes/riscv-opc.c.
1131 (default_isa_spec): Updated type to riscv_spec_class.
1132 (default_priv_spec): Likewise.
1133 (riscv_set_default_isa_spec): Updated.
1134 (init_ext_version_hash): Likewise.
1135 (riscv_init_csr_hash): Likewise, also fixed indent.
1136
1137 2021-02-17 Alan Modra <amodra@gmail.com>
1138
1139 * testsuite/gas/elf/section28.d: xfail h8300.
1140
1141 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1142
1143 PR gas/27412
1144 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1145 when checking incorrect section attributes.
1146 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1147 * testsuite/gas/elf/section28.d: New file.
1148 * testsuite/gas/elf/section28.s: Likewise.
1149 * testsuite/gas/elf/section29.d: Likewise.
1150 * testsuite/gas/elf/section29.s: Likewise.
1151
1152 2021-02-16 Jan Beulich <jbeulich@suse.com>
1153
1154 * testsuite/gas/i386/sse-check.s,
1155 testsuite/gas/i386/sse2avx.s,
1156 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1157 * testsuite/gas/i386/sse-check-error.l,
1158 testsuite/gas/i386/sse-check-warn.e,
1159 testsuite/gas/i386/sse-check.d,
1160 testsuite/gas/i386/sse2avx.d,
1161 testsuite/gas/i386/x86-64-sse-check-error.l,
1162 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1163 * testsuite/gas/i386/property-cvtpi2pd.s,
1164 testsuite/gas/i386/property-cvtpi2pd.d,
1165 testsuite/gas/i386/property-cvtpi2ps.s,
1166 testsuite/gas/i386/property-cvtpi2ps.d: New.
1167 * testsuite/gas/i386/i386.exp: Run new tests.
1168
1169 2021-02-16 Jan Beulich <jbeulich@suse.com>
1170
1171 * config/tc-i386.c (md_assemble): Use template rather than
1172 actuals when updating i.xstate.
1173 * testsuite/gas/i386/property-4.d,
1174 testsuite/gas/i386/property-5.d,
1175 testsuite/gas/i386/property-12.d: Adjust expectations.
1176
1177 2021-02-16 Jan Beulich <jbeulich@suse.com>
1178
1179 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1180 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1181 * testsuite/gas/i386/property-ldmxcsr.s,
1182 testsuite/gas/i386/property-ldmxcsr.d,
1183 testsuite/gas/i386/property-vldmxcsr.s,
1184 testsuite/gas/i386/property-vldmxcsr.d,
1185 testsuite/gas/i386/property-vzeroall.s,
1186 testsuite/gas/i386/property-vzeroall.d: New.
1187 * testsuite/gas/i386/i386.exp: Run new tests.
1188
1189 2021-02-16 Jan Beulich <jbeulich@suse.com>
1190
1191 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1192 tests to bitness independent section.
1193 * testsuite/gas/i386/x86-64-property-2.d,
1194 testsuite/gas/i386/x86-64-property-3.d,
1195 testsuite/gas/i386/x86-64-property-4.d,
1196 testsuite/gas/i386/x86-64-property-5.d,
1197 testsuite/gas/i386/x86-64-property-6.d,
1198 testsuite/gas/i386/x86-64-property-10.d,
1199 testsuite/gas/i386/x86-64-property-11.d,
1200 testsuite/gas/i386/x86-64-property-12.d,
1201 testsuite/gas/i386/x86-64-property-13.d: Delete.
1202
1203 2021-02-16 Jan Beulich <jbeulich@suse.com>
1204
1205 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1206 movdir.s.
1207 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1208
1209 2021-02-16 Alan Modra <amodra@gmail.com>
1210
1211 PR 27426
1212 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1213 in another place.
1214
1215 2021-02-16 Alan Modra <amodra@gmail.com>
1216
1217 * read.c (demand_copy_C_string): Really check for embedded zeros.
1218
1219 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
1220
1221 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1222 * doc/c-s390.texi: Document arch14 march option.
1223 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1224 * testsuite/gas/s390/zarch-arch14.d: New test.
1225 * testsuite/gas/s390/zarch-arch14.s: New test.
1226
1227 2021-02-12 Nick Clifton <nickc@redhat.com>
1228
1229 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
1230 following.
1231 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1232
1233 2021-02-12 Alan Modra <amodra@gmail.com>
1234
1235 * testsuite/gas/all/pr27381.err: Don't match source file name.
1236 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1237 * testsuite/gas/all/pr27384.err: Don't match source file name.
1238 Adjust line number.
1239 * testsuite/gas/all/pr27384.s: Add ".text" directive.
1240 * testsuite/gas/elf/pr27355.err: Don't match source file name.
1241
1242 2021-02-11 Alan Modra <amodra@gmail.com>
1243
1244 * NEWS: Mention arm-symbianelf removal.
1245
1246 2021-02-10 Nick Clifton <nickc@redhat.com>
1247
1248 * listing.c (buffer_line): Remove debugging code accidentally
1249 included with the fix for PR 27384.
1250
1251 2021-02-09 Nick Clifton <nickc@redhat.com>
1252
1253 PR 27381
1254 * read.c (s_incbin): Check that the file to be included is a
1255 regular, non-directory file.
1256 * testsuite/gas/all/pr27381.s: New test source file.
1257 * testsuite/gas/all/pr27381.d: New test control file.
1258 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1259 * testsuite/gas/all/gas.exp: Run the new test.
1260
1261 2021-02-09 Alan Modra <amodra@gmail.com>
1262
1263 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1264 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1265 support.
1266 * config/te-symbian.h: Delete.
1267 * configure.tgt: Remove arm-*-symbianelf*.
1268 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1269 target selection.
1270 * testsuite/gas/arm/arch4t.d: Likewise.
1271 * testsuite/gas/arm/got_prel.d: Likewise.
1272 * testsuite/gas/arm/mapdir.d: Likewise.
1273 * testsuite/gas/arm/mapmisc.d: Likewise.
1274 * testsuite/gas/arm/mapsecs.d: Likewise.
1275 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1276 * testsuite/gas/arm/thumb-eabi.d: Likewise.
1277 * testsuite/gas/arm/thumb.d: Likewise.
1278 * testsuite/gas/arm/thumbrel.d: Likewise.
1279 * Makefile.in: Regenerate.
1280 * po/POTFILES.in: Regenerate.
1281
1282 2021-02-09 Nick Clifton <nickc@redhat.com>
1283
1284 PR 27384
1285 * listing.c (listing_psize): Check the result of the width
1286 expression before assigning it to paper_width.
1287 * testsuite/gas/all/pr27384.s: New test source file.
1288 * testsuite/gas/all/pr27384.d: New test control file.
1289 * testsuite/gas/all/pr27384.err: Expected errors from new test.
1290 * testsuite/gas/all/gas.exp: Run the new test.
1291
1292 2021-02-09 Nick Clifton <nickc@redhat.com>
1293
1294 PR 27355
1295 * testsuite/gas/elf/pr27355.s: New test source file.
1296 * testsuite/gas/elf/pr27355.d: New test control file.
1297 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1298 * testsuite/gas/elf/elf.exp: Run the new test.
1299
1300 2021-02-08 Mike Frysinger <vapier@gentoo.org>
1301
1302 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1303 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
1304 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1305 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1306 cc2_codes, cc3_codes, status_bits, and misc_symbols.
1307
1308 2021-02-08 Nick Clifton <nickc@redhat.com>
1309
1310 PR 27355
1311 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1312 if it has not already been created.
1313
1314 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1315
1316 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1317 INSN_CLASS_ZB*.
1318 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1319 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1320 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1321
1322 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
1323
1324 * doc/c-s390.texi: Document vector instruction formats.
1325
1326 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1327
1328 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1329
1330 2021-02-01 Alan Modra <amodra@gmail.com>
1331
1332 PR 27283
1333 * config/tc-alpha.c (insert_operand): Delete dead code.
1334
1335 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1336
1337 PR gas/27243
1338 * config/tc-nios2.c (md_begin): Don't disable relaxation with
1339 --gdwarf-N.
1340 * testsuite/gas/nios2/relax.d: New file.
1341 * testsuite/gas/nios2/relax.s: Likewise.
1342
1343 2021-01-26 Alan Modra <amodra@gmail.com>
1344
1345 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1346 notarget all except hppa. Comment.
1347 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1348 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
1349 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1350 * testsuite/gas/all/sleb128-7.d: Likewise.
1351 * testsuite/gas/all/sleb128-9.d: Likewise.
1352 * testsuite/gas/elf/bignums.d: Likewise.
1353 * testsuite/gas/elf/group0c.d: Likewise.
1354 * testsuite/gas/elf/group1a.d: Likewise.
1355 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1356 * testsuite/gas/elf/section15.d: Likewise.
1357 * testsuite/gas/elf/section4.d: Likewise.
1358 * testsuite/gas/elf/section7.d: Likewise.
1359 * testsuite/gas/macros/irp.d: Likewise.
1360 * testsuite/gas/macros/repeat.d: Likewise.
1361 * testsuite/gas/macros/rept.d: Likewise.
1362 * testsuite/gas/macros/test2.d: Likewise.
1363 * testsuite/gas/macros/vararg.d: Likewise.
1364 * testsuite/gas/all/string.d: Use xfail rather than skip.
1365 * testsuite/gas/elf/missing-build-notes.d: Likewise.
1366 * testsuite/gas/elf/section0.d: Likewise.
1367 * testsuite/gas/elf/section1.d: Likewise.
1368 * testsuite/gas/elf/section10.d: Likewise.
1369 * testsuite/gas/elf/section11.d: Likewise.
1370 * testsuite/gas/elf/section6.d: Likewise.
1371 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1372 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1373 * testsuite/gas/macros/test3.d: Don't notarget nds32.
1374
1375 2021-01-26 Alan Modra <amodra@gmail.com>
1376
1377 * testsuite/gas/all/byte.d,
1378 * testsuite/gas/all/byte.l,
1379 * testsuite/gas/all/byte.s: Delete.
1380 * testsuite/gas/all/gas.exp: Don't run byte test.
1381
1382 2021-01-26 Alan Modra <amodra@gmail.com>
1383
1384 PR 27282
1385 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
1386 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
1387
1388 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 PR gas/27228
1391 * testsuite/gas/elf/elf.exp: Run pr27228.
1392 * testsuite/gas/elf/pr27228.d: New file.
1393 * testsuite/gas/elf/pr27228.s: Likewise.
1394
1395 2021-01-24 Alan Modra <amodra@gmail.com>
1396
1397 PR 27228
1398 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
1399 is defined.
1400
1401 2021-01-21 Alan Modra <amodra@gmail.com>
1402
1403 PR 27221
1404 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
1405 line number info when gas is generating it.
1406 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
1407 * testsuite/gas/m68hc11/indexed12.d: Likewise.
1408 * testsuite/gas/elf/elf.exp: Don't run warn-2.
1409 * gas/testsuite/gas/elf/warn-2.s: Delete.
1410
1411 2021-01-21 Alan Modra <amodra@gmail.com>
1412
1413 PR 27218
1414 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
1415 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
1416 error for negative file numbers.
1417
1418 2021-01-20 Alan Modra <amodra@gmail.com>
1419
1420 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
1421 * testsuite/gas/ppc/test1elf32.d: Likewise.
1422 * testsuite/gas/ppc/test1elf64.d: Likewise.
1423
1424 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
1425
1426 PR gas/27195
1427 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
1428 needed.
1429 (dwarf2_directive_filename): Likewise.
1430 (dwarf2_directive_loc): Likewise.
1431 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
1432 * testsuite/gas/lns/lns-diag-1.l: Remove the
1433 "Error: file number less than one" errors.
1434
1435 2021-01-18 Alan Modra <amodra@gmail.com>
1436
1437 PR 27198
1438 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
1439 * testsuite/gas/i386/pr27198.d,
1440 * gas/testsuite/gas/i386/pr27198.err,
1441 * gas/testsuite/gas/i386/pr27198.s: New test.
1442 * gas/testsuite/gas/i386/i386.exp: Run it.
1443
1444 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1445
1446 * config/tc-riscv.c: Indent and GNU coding standards tidy,
1447 also aligned the code.
1448 * config/tc-riscv.h: Likewise.
1449
1450 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1451
1452 * config/tc-riscv.c: Error and warning messages tidy.
1453 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
1454 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1455 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1456 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1457 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1458 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1459 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1460
1461 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1462
1463 * config/tc-riscv.c: Comments tidy and improvement. Also update
1464 comment "fallthru" to "Fall through" that end with a period and
1465 two spaces.
1466
1467 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1468
1469 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
1470 Delete warning that these are only available with ELF targets.
1471 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
1472 * read.c (potable): ... here.
1473
1474 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1475
1476 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
1477 * Makefile.in: Regenerated.
1478
1479 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1480
1481 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
1482 (parse_int): Mark char_bag const.
1483
1484 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1485
1486 PR gas/27178
1487 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
1488 Don't generate GOT_symbol for PLT relocations.
1489 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
1490 * testsuite/gas/i386/no-got.d: New file.
1491 * testsuite/gas/i386/no-got.s: Likewise.
1492 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
1493 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
1494
1495 2021-01-13 Alan Modra <amodra@gmail.com>
1496
1497 * Makefile.in: Regenerate.
1498 * Makefile.in: Regenerate.
1499
1500 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1501
1502 PR binutils/26792
1503 * configure.ac: Use GNU_MAKE_JOBSERVER.
1504 * aclocal.m4: Regenerated.
1505 * configure: Likewise.
1506
1507 2021-01-12 Nick Clifton <nickc@redhat.com>
1508
1509 * po/fr.po: Updated French translation.
1510
1511 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1512
1513 PR ld/27173
1514 * configure: Regenerated.
1515
1516 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1517
1518 * NEWS: Remove CSRE.
1519 * config/tc-aarch64.c (parse_csr_operand): Delete.
1520 (parse_operands): Delete handling of
1521 AARCH64_OPND_CSRE_CSR.
1522 (aarch64_features): Remove csre.
1523 * doc/c-aarch64.texi: Remove CSRE.
1524 * testsuite/gas/aarch64/csre.d: Delete.
1525 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
1526 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
1527 * testsuite/gas/aarch64/csre_csr.s: Likewise.
1528 * testsuite/gas/aarch64/csre_csr.d: Likewise.
1529 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
1530 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
1531 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
1532
1533 2021-01-11 Nick Clifton <nickc@redhat.com>
1534
1535 * po/uk.po: Updated Ukranian translation.
1536
1537 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1538
1539 * configure: Regenerated.
1540
1541 2021-01-09 Nick Clifton <nickc@redhat.com>
1542
1543 * configure: Regenerate.
1544 * po/gas.pot: Regenerate.
1545
1546 2021-01-09 Nick Clifton <nickc@redhat.com>
1547
1548 * 2.36 release branch crated.
1549
1550 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
1551
1552 * testsuite/gas/ppc/rop-checks.d,
1553 * testsuite/gas/ppc/rop-checks.l,
1554 * testsuite/gas/ppc/rop-checks.s,
1555 * testsuite/gas/ppc/rop.d,
1556 * testsuite/gas/ppc/rop.s: New tests.
1557 * testsuite/gas/ppc/ppc.exp: Run them.
1558
1559 2021-01-09 Alan Modra <amodra@gmail.com>
1560
1561 * configure: Regenerate.
1562
1563 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1564
1565 * configure: Regenerate.
1566
1567 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1568
1569 PR 27109
1570 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
1571 section symbol.
1572 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
1573 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
1574 on the section symbol.
1575 (set_symtab): Don't generate unused section symbols.
1576 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
1577 on the section symbol.
1578 * config/obj-elf.c (elf_adjust_symtab): Call
1579 symbol_mark_used_in_reloc on the group signature symbol.
1580 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
1581 from expected output.
1582 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
1583 is_elf_unused_section_symbols.
1584 * testsuite/gas/elf/section2.e: Updated.
1585 * testsuite/gas/elf/section2.e-unused: New file.
1586 * testsuite/gas/elf/symver.d: Remove unused section symbols.
1587 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
1588 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1589 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1590 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1591 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1592 * testsuite/gas/i386/size-1.d: Likewise.
1593 * testsuite/gas/i386/size-3.d: Likewise.
1594 * testsuite/gas/i386/svr4.d: Likewise.
1595 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1596 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1597 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1598 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1599
1600 2021-01-07 Philipp Tomsich <prt@gnu.org>
1601
1602 * config/tc-riscv.c (riscv_multi_subset_supports): Added
1603 INSN_CLASS_ZIHINTPAUSE.
1604 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
1605 the pause hint instruction.
1606 * testsuite/gas/riscv/pause.s: Likewise.
1607
1608 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1609 Jim Wilson <jimw@sifive.com>
1610 Andrew Waterman <andrew@sifive.com>
1611 Maxim Blinov <maxim.blinov@embecosm.com>
1612 Kito Cheng <kito.cheng@sifive.com>
1613 Nelson Chu <nelson.chu@sifive.com>
1614
1615 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
1616 (riscv_get_default_ext_version): Do not check the default_isa_spec when
1617 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
1618 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
1619 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
1620 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
1621
1622 2021-01-06 Alan Modra <amodra@gmail.com>
1623
1624 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
1625
1626 2021-01-06 Alan Modra <amodra@gmail.com>
1627
1628 * testsuite/gas/macros/app1.d: xfail tic30.
1629 * testsuite/gas/macros/app2.d: Likewise.
1630 * testsuite/gas/macros/app3.d: Likewise.
1631 * testsuite/gas/macros/app4.d: Likewise.
1632
1633 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1634
1635 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
1636 * doc/c-riscv.texi: Likewise.
1637
1638 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1639
1640 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
1641 to littleriscv.
1642 * testsuite/gas/riscv/li64.d: Likewise.
1643 * testsuite/gas/riscv/lla32.d: Likewise.
1644 * testsuite/gas/riscv/lla64.d: Likewise.
1645 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
1646 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
1647 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
1648 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
1649 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
1650 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
1651 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
1652
1653 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1654
1655 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
1656 elf32-bigriscv.
1657 (install_insn): Always write instructions as little endian.
1658 (riscv_make_nops): Likewise.
1659 (md_convert_frag_branch): Likewise.
1660 (md_number_to_chars): Write data in target endianness.
1661 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
1662 (md_parse_option): Handle the endian options.
1663 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
1664 already defined.
1665 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
1666
1667 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1668
1669 PR ld/26256
1670 * config/obj-elf.c (obj_elf_change_section): Also filter out
1671 SHF_LINK_ORDER.
1672
1673 2021-01-04 Alan Modra <amodra@gmail.com>
1674
1675 PR 27102
1676 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
1677 message and register symbol error message.
1678
1679 2021-01-04 Alan Modra <amodra@gmail.com>
1680
1681 PR 27101
1682 * read.c (s_align): Use a large enough type for "align" to hold
1683 the result of get_absolute_expression.
1684
1685 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1686
1687 * config/tc-i386.c: Correct comment spelling.
1688 * config/tc-riscv.c: Likewise.
1689 * config/tc-s390.c: Correct comment grammar.
1690 * doc/c-i386.texi: Correct spelling.
1691 * doc/c-s390.texi: Correct grammar.
1692
1693 2021-01-01 Alan Modra <amodra@gmail.com>
1694
1695 Update year range in copyright notice of all files.
1696
1697 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1698
1699 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
1700
1701 For older changes see ChangeLog-2020
1702 \f
1703 Copyright (C) 2021 Free Software Foundation, Inc.
1704
1705 Copying and distribution of this file, with or without modification,
1706 are permitted in any medium without royalty provided the copyright
1707 notice and this notice are preserved.
1708
1709 Local Variables:
1710 mode: change-log
1711 left-margin: 8
1712 fill-column: 74
1713 version-control: never
1714 End: