gas: fix overflow diagnostics
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2021-06-16 Jan Beulich <jbeulich@suse.com>
2
3 * read.c (emit_expr_with_reloc): Adjust overflow check. Drop
4 hibit local variable.
5 * write.c (fixup_segment): Differentiate signed and non-signed
6 relocs in overflow check.
7 * testsuite/gas/all/overflow.s,
8 testsuite/gas/all/overflow.l: New.
9 * testsuite/gas/all/gas.exp: Run new test.
10
11 2021-06-15 Jan Beulich <jbeulich@suse.com>
12
13 * config/tc-i386.c (md_show_usage): Split ELF and PE/COFF parts
14 of object format controlling option. Add Mach-O to the latter.
15 * testsuite/gas/i386/i386.exp (gas_bfd64_check): Adjust
16 accordingly.
17
18 2021-06-15 Jan Beulich <jbeulich@suse.com>
19
20 * config/tc-i386.c (disp16, disp32, disp32s): Delete.
21 (optimize_disp, i386_finalize_displacement): Use
22 operand_type_and_not.
23 (build_modrm_byte): Likewise. Eliminate local variable newdisp.
24
25 2021-06-15 Jan Beulich <jbeulich@suse.com>
26
27 * config/tc-i386.c (offset_in_range): Bail early when mask would
28 cover all bits anyway.
29
30 2021-06-15 Jan Beulich <jbeulich@suse.com>
31
32 * config/tc-i386.c (optimize_disp): Generalize disp32 part of
33 the BFD64-only logic to also apply to non-64-bit code.
34 (i386_finalize_displacement): Use extend_to_32bit_address for
35 non-64-bit code. Drop now redundant O_constant checks.
36 * testsuite/gas/i386/disp-imm-32.s,
37 testsuite/gas/i386/disp-imm-32.d: New.
38 * testsuite/gas/i386/i386.exp: Run new test.
39
40 2021-06-15 Jan Beulich <jbeulich@suse.com>
41
42 * config/tc-i386.c (offset_in_range): Replace uses of
43 bfd_sprintf_vma.
44
45 2021-06-15 Jan Beulich <jbeulich@suse.com>
46
47 * config/tc-i386.c (offset_in_range): Adjust conditional.
48 * testsuite/gas/i386/disp-imm-16.s,
49 testsuite/gas/i386/disp-imm-16.l,
50 testsuite/gas/i386/disp-imm-64.s,
51 testsuite/gas/i386/disp-imm-64.l: New.
52 * testsuite/gas/i386/i386.exp: Run new tests.
53
54 2021-06-15 Jan Beulich <jbeulich@suse.com>
55
56 * config/tc-i386.c (i386_att_operand): Re-introduce (now
57 properly named) parens_not_balanced.
58 * testsuite/gas/i386/sib.s: Add more cases.
59 * testsuite/gas/i386/sib.d, testsuite/gas/i386/sib-intel.d:
60 Adjust expectations.
61
62 2021-06-14 Jan Beulich <jbeulich@suse.com>
63
64 * read.c (emit_expr_with_reloc): Fold three as_warn().
65
66 2021-06-14 Jan Beulich <jbeulich@suse.com>
67
68 * doc/internals.texi (TC_ADDRESS_BYTES): Mention generic default.
69 * read.c (potable, cons_worker): Drop TC_ADDRESS_BYTES
70 conditional.
71
72 2021-06-11 H.J. Lu <hongjiu.lu@intel.com>
73
74 * config/tc-i386.c (x86_cons): Handle GOT/PLT relocations only
75 if needed.
76 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Always define.
77
78 2021-06-11 Nelson Chu <nelson.chu@sifive.com>
79
80 * config/tc-riscv.c (riscv_set_arch): Call riscv_set_rvc
81 and riscv_set_rve both for -march and elf attributes.
82 (riscv_after_parse_args): Likewise.
83
84 2021-06-10 Jan Beulich <jbeulich@suse.com>
85
86 * config/tc-arm.c (do_bfloat_vfma): Rename index to idx.
87 (do_vusdot): Likewise.
88 (do_vsudot): Likewise.
89 (check_cde_operand): Likewise.
90 (do_vdot): Likewise.
91
92 2021-06-10 Jan Beulich <jbeulich@suse.com>
93
94 * config/tc-arm.c (reg_expected_msgs): Add REG_TYPE_ZR entry.
95
96 2021-06-10 Jan Beulich <jbeulich@suse.com>
97
98 * config/tc-i386.c (optimize_encoding): Suppress LEA conversion
99 when it would grow code size in 16-bit mode.
100 * testsuite/gas/i386/lea16-optimize.d: Adjust expectations.
101 * testsuite/gas/i386/lea16-optimize2.d: New.
102 * testsuite/gas/i386/i386.exp: Run new test.
103
104 2021-06-08 Jan Beulich <jbeulich@suse.com>
105
106 * testsuite/gas/i386/quoted.d, testsuite/gas/i386/wrap32-text.d:
107 Adjust expectations.
108 * testsuite/gas/i386/wrap32-data.d: Likewise. Correct name.
109
110 2021-06-08 Jan Beulich <jbeulich@suse.com>
111
112 * config/tc-i386.c (optimize_imm): Use fits_in_unsigned_word
113 and fits_in_unsigned_long.
114
115 2021-06-08 Jan Beulich <jbeulich@suse.com>
116
117 * config/tc-i386.c (optimize_disp): Use fits_in_unsigned_word
118 and fits_in_unsigned_long. Combine if()s.
119
120 2021-06-08 Jan Beulich <jbeulich@suse.com>
121
122 * config/tc-i386.c (optimize_disp): Write back updated value.
123 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea64.s: New
124 cases.
125 * testsuite/gas/i386/lea16-optimize.d,
126 testsuite/gas/i386/lea64.d, testsuite/gas/i386/lea64-optimize.d:
127 Adjust expectations.
128 * testsuite/gas/i386/lea16.d: New.
129 * testsuite/gas/i386/i386.exp: Run new test.
130
131 2021-06-08 Jan Beulich <jbeulich@suse.com>
132
133 * config/tc-i386.c (optimize_disp): Drop redundant masking.
134 Re-order.
135
136 2021-06-07 Jan Beulich <jbeulich@suse.com>
137
138 * config/tc-i386.c (i386_att_operand): Re-write handling of
139 vector operations operand suffix.
140 * testsuite/gas/i386/unary.s: Add more cases.
141 * testsuite/gas/i386/unary.d: Adjust expectations.
142
143 2021-06-07 Jan Beulich <jbeulich@suse.com>
144
145 * config/tc-i386.c (parse_operands): Reduce scope of
146 paren_not_balanced, to match the new in_quotes. Skip over quoted
147 regions of operands.
148 (i386_att_operand): Remove (mis-named) parens_balanced. Respect
149 double quote.
150 * testsuite/gas/i386/unary.s: Add more cases.
151 * testsuite/gas/i386/unary.d: Adjust expectations.
152
153 2021-06-07 Jan Beulich <jbeulich@suse.com>
154
155 * config/tc-i386.c (digit_chars, is_digit_char): Delete.
156 (md_begin): Fold digit and lower-case letter handling.
157 (starts_memory_operand): Permit more characters.
158 * testsuite/gas/i386/unary.s, testsuite/gas/i386/unary.d: New.
159 * testsuite/gas/i386/i386.exp: Run new test.
160
161 2021-06-07 Jan Beulich <jbeulich@suse.com>
162
163 * config/tc-i386.c (starts_memory_operand): New.
164 (i386_att_operand): Use it.
165 * testsuite/gas/i386/quoted.s, testsuite/gas/i386/quoted.d: New.
166 * testsuite/gas/i386/i386.exp: Run new test.
167
168 2021-06-07 Jan Beulich <jbeulich@suse.com>
169
170 * config/tc-i386.c (i386_att_operand): Flip checking for '*' and
171 start-of-expression. Don't permit '*' when one was already seen.
172
173 2021-06-07 Jan Beulich <jbeulich@suse.com>
174
175 * config/tc-i386.c (parse_operands): Don't check for matched
176 square brackets.
177
178 2021-06-07 Jan Beulich <jbeulich@suse.com>
179
180 * config/tc-i386.c (check_VecOperations): Remove 2nd parameter.
181 (i386_att_operand): Adjust calls to check_VecOperations.
182 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
183
184 2021-06-07 Jan Beulich <jbeulich@suse.com>
185
186 * config/tc-i386.c (i386_immediate): Don't call check_VecOperations.
187
188 2021-06-07 Jan Beulich <jbeulich@suse.com>
189
190 * config/tc-i386.c (extend_to_32bit_address): New.
191 (x86_cons, i386_finalize_immediate, md_apply_fix): Use it.
192 (signed_cons): Use object_64bit.
193 * testsuite/gas/i386/wrap32.s, testsuite/gas/i386/wrap32-data.d,
194 testsuite/gas/i386/wrap32-text.d: New.
195 * testsuite/gas/i386/i386.exp: Run new tests.
196
197 2021-06-03 Alan Modra <amodra@gmail.com>
198
199 PR 1202
200 * testsuite/gas/mcore/allinsn.d: Correct loopt expected output.
201
202 2021-05-29 Alan Modra <amodra@gmail.com>
203
204 * testsuite/gas/ppc/raw.s,
205 * testsuite/gas/ppc/raw.d: New test.
206 * testsuite/gas/ppc/ppc.exp: Run it.
207
208 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
209
210 * testsuite/gas/mips/c0.d: New test.
211 * testsuite/gas/mips/mips1@c0.d: New test.
212 * testsuite/gas/mips/mips2@c0.d: New test.
213 * testsuite/gas/mips/mips3@c0.d: New test.
214 * testsuite/gas/mips/mips4@c0.d: New test.
215 * testsuite/gas/mips/mips5@c0.d: New test.
216 * testsuite/gas/mips/mips32@c0.d: New test.
217 * testsuite/gas/mips/mips64@c0.d: New test.
218 * testsuite/gas/mips/r3000@c0.d: New test.
219 * testsuite/gas/mips/r3900@c0.d: New test.
220 * testsuite/gas/mips/r4000@c0.d: New test.
221 * testsuite/gas/mips/vr5400@c0.d: New test.
222 * testsuite/gas/mips/r5900@c0.d: New test.
223 * testsuite/gas/mips/sb1@c0.d: New test.
224 * testsuite/gas/mips/interaptiv-mr2@c0.d: New test.
225 * testsuite/gas/mips/octeon@c0.d: New test.
226 * testsuite/gas/mips/xlr@c0.d: New test.
227 * testsuite/gas/mips/c1.d: New test.
228 * testsuite/gas/mips/mips1@c1.d: New test.
229 * testsuite/gas/mips/mips2@c1.d: New test.
230 * testsuite/gas/mips/mips3@c1.d: New test.
231 * testsuite/gas/mips/mips4@c1.d: New test.
232 * testsuite/gas/mips/mips5@c1.d: New test.
233 * testsuite/gas/mips/mips32@c1.d: New test.
234 * testsuite/gas/mips/mips64@c1.d: New test.
235 * testsuite/gas/mips/mipsr6@c1.d: New test.
236 * testsuite/gas/mips/r3000@c1.d: New test.
237 * testsuite/gas/mips/r3900@c1.d: New test.
238 * testsuite/gas/mips/r4000@c1.d: New test.
239 * testsuite/gas/mips/vr5400@c1.d: New test.
240 * testsuite/gas/mips/r5900@c1.d: New test.
241 * testsuite/gas/mips/sb1@c1.d: New test.
242 * testsuite/gas/mips/interaptiv-mr2@c1.d: New test.
243 * testsuite/gas/mips/octeon@c1.d: New test.
244 * testsuite/gas/mips/xlr@c1.d: New test.
245 * testsuite/gas/mips/c2.d: New test.
246 * testsuite/gas/mips/vr5400@c2.d: New test.
247 * testsuite/gas/mips/r5900@c2.d: New test.
248 * testsuite/gas/mips/octeon@c2.d: New test.
249 * testsuite/gas/mips/c3.d: New test.
250 * testsuite/gas/mips/mips1@c3.d: New test.
251 * testsuite/gas/mips/mips2@c3.d: New test.
252 * testsuite/gas/mips/mips32@c3.d: New test.
253 * testsuite/gas/mips/r3000@c3.d: New test.
254 * testsuite/gas/mips/r3900@c3.d: New test.
255 * testsuite/gas/mips/c0.l: New test stderr output.
256 * testsuite/gas/mips/c2.l: New test stderr output.
257 * testsuite/gas/mips/c3.l: New test stderr output.
258 * testsuite/gas/mips/c0.s: New test source.
259 * testsuite/gas/mips/c1.s: New test source.
260 * testsuite/gas/mips/c2.s: New test source.
261 * testsuite/gas/mips/c3.s: New test source.
262 * testsuite/gas/mips/mips.exp: Run the new tests.
263
264 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
265
266 * testsuite/gas/mips/mips.exp: Run RFE test across all ISAs.
267 * testsuite/gas/mips/rfe.d: Update for ISA exclusions.
268 * testsuite/gas/mips/mips1@rfe.d: New test.
269 * testsuite/gas/mips/mips2@rfe.d: New test.
270 * testsuite/gas/mips/r3000@rfe.d: New test.
271 * testsuite/gas/mips/r3900@rfe.d: New test.
272 * testsuite/gas/mips/rfe.l: New test stderr output.
273
274 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
275
276 * testsuite/gas/mips/mips.exp: Run coprocessor tests across all
277 ISAs.
278 * testsuite/gas/mips/cp0b.d: Update for ISA exclusions.
279 * testsuite/gas/mips/cp0bl.d: Update for ISA exclusions.
280 * testsuite/gas/mips/cp0c.d: Update for ISA exclusions.
281 * testsuite/gas/mips/cp0m.d: Update for ISA exclusions.
282 * testsuite/gas/mips/cp3.d: Update for ISA exclusions.
283 * testsuite/gas/mips/cp3b.d: Update for ISA exclusions.
284 * testsuite/gas/mips/cp3bl.d: Update for ISA exclusions.
285 * testsuite/gas/mips/cp3m.d: Update for ISA exclusions.
286 * testsuite/gas/mips/cp3d.d: Update for ISA exclusions.
287 * testsuite/gas/mips/mips1@cp0b.d: New test.
288 * testsuite/gas/mips/mips2@cp0b.d: New test.
289 * testsuite/gas/mips/mips3@cp0b.d: New test.
290 * testsuite/gas/mips/r3000@cp0b.d: New test.
291 * testsuite/gas/mips/r3900@cp0b.d: New test.
292 * testsuite/gas/mips/r4000@cp0b.d: New test.
293 * testsuite/gas/mips/r5900@cp0b.d: New test.
294 * testsuite/gas/mips/mips2@cp0bl.d: New test.
295 * testsuite/gas/mips/mips3@cp0bl.d: New test.
296 * testsuite/gas/mips/r3900@cp0bl.d: New test.
297 * testsuite/gas/mips/r4000@cp0bl.d: New test.
298 * testsuite/gas/mips/r5900@cp0bl.d: New test.
299 * testsuite/gas/mips/mips1@cp0c.d: New test.
300 * testsuite/gas/mips/mips2@cp0c.d: New test.
301 * testsuite/gas/mips/mips3@cp0c.d: New test.
302 * testsuite/gas/mips/mips4@cp0c.d: New test.
303 * testsuite/gas/mips/mips5@cp0c.d: New test.
304 * testsuite/gas/mips/r3000@cp0c.d: New test.
305 * testsuite/gas/mips/r3900@cp0c.d: New test.
306 * testsuite/gas/mips/r4000@cp0c.d: New test.
307 * testsuite/gas/mips/vr5400@cp0c.d: New test.
308 * testsuite/gas/mips/r5900@cp0c.d: New test.
309 * testsuite/gas/mips/mips1@cp0m.d: New test.
310 * testsuite/gas/mips/r3000@cp0m.d: New test.
311 * testsuite/gas/mips/octeon@cp2.d: New test.
312 * testsuite/gas/mips/mipsr6@cp2b.d: New test.
313 * testsuite/gas/mips/vr5400@cp2b.d: New test.
314 * testsuite/gas/mips/octeon@cp2b.d: New test.
315 * testsuite/gas/mips/mips1@cp2bl.d: New test.
316 * testsuite/gas/mips/mipsr6@cp2bl.d: New test.
317 * testsuite/gas/mips/r3000@cp2bl.d: New test.
318 * testsuite/gas/mips/vr5400@cp2bl.d: New test.
319 * testsuite/gas/mips/octeon@cp2bl.d: New test.
320 * testsuite/gas/mips/vr5400@cp2m.d: New test.
321 * testsuite/gas/mips/r5900@cp2m.d: New test.
322 * testsuite/gas/mips/octeon@cp2m.d: New test.
323 * testsuite/gas/mips/mips1@cp2d.d: New test.
324 * testsuite/gas/mips/r3000@cp2d.d: New test.
325 * testsuite/gas/mips/r3900@cp2d.d: New test.
326 * testsuite/gas/mips/vr5400@cp2d.d: New test.
327 * testsuite/gas/mips/r5900@cp2d.d: New test.
328 * testsuite/gas/mips/octeon@cp2d.d: New test.
329 * testsuite/gas/mips/mips1@cp2-64.d: New test.
330 * testsuite/gas/mips/mips2@cp2-64.d: New test.
331 * testsuite/gas/mips/mips32@cp2-64.d: New test.
332 * testsuite/gas/mips/mips32r2@cp2-64.d: New test.
333 * testsuite/gas/mips/mips32r3@cp2-64.d: New test.
334 * testsuite/gas/mips/mips32r5@cp2-64.d: New test.
335 * testsuite/gas/mips/mips32r6@cp2-64.d: New test.
336 * testsuite/gas/mips/r3000@cp2-64.d: New test.
337 * testsuite/gas/mips/r3900@cp2-64.d: New test.
338 * testsuite/gas/mips/interaptiv-mr2@cp2-64.d: New test.
339 * testsuite/gas/mips/mips1@cp3.d: New test.
340 * testsuite/gas/mips/mips2@cp3.d: New test.
341 * testsuite/gas/mips/mips32@cp3.d: New test.
342 * testsuite/gas/mips/r3000@cp3.d: New test.
343 * testsuite/gas/mips/r3900@cp3.d: New test.
344 * testsuite/gas/mips/mips1@cp3b.d: New test.
345 * testsuite/gas/mips/mips2@cp3b.d: New test.
346 * testsuite/gas/mips/mips32@cp3b.d: New test.
347 * testsuite/gas/mips/r3000@cp3b.d: New test.
348 * testsuite/gas/mips/r3900@cp3b.d: New test.
349 * testsuite/gas/mips/mips2@cp3bl.d: New test.
350 * testsuite/gas/mips/mips32@cp3bl.d: New test.
351 * testsuite/gas/mips/r3900@cp3bl.d: New test.
352 * testsuite/gas/mips/mips1@cp3m.d: New test.
353 * testsuite/gas/mips/mips2@cp3m.d: New test.
354 * testsuite/gas/mips/r3000@cp3m.d: New test.
355 * testsuite/gas/mips/r3900@cp3m.d: New test.
356 * testsuite/gas/mips/mips2@cp3d.d: New test.
357 * testsuite/gas/mips/cp0b.l: New test stderr output.
358 * testsuite/gas/mips/cp0bl.l: New test stderr output.
359 * testsuite/gas/mips/cp0c.l: New test stderr output.
360 * testsuite/gas/mips/cp0m.l: New test stderr output.
361 * testsuite/gas/mips/cp2.l: New test stderr output.
362 * testsuite/gas/mips/cp2-64.l: New test stderr output.
363 * testsuite/gas/mips/cp2b.l: New test stderr output.
364 * testsuite/gas/mips/cp2bl.l: New test stderr output.
365 * testsuite/gas/mips/cp2m.l: New test stderr output.
366 * testsuite/gas/mips/cp2d.l: New test stderr output.
367 * testsuite/gas/mips/cp3.l: New test stderr output.
368 * testsuite/gas/mips/cp3b.l: New test stderr output.
369 * testsuite/gas/mips/cp3bl.l: New test stderr output.
370 * testsuite/gas/mips/cp3m.l: New test stderr output.
371 * testsuite/gas/mips/cp3d.l: New test stderr output.
372
373 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
374
375 * testsuite/gas/mips/mips32@isa-override-1.d: Update for LDC3
376 instruction removal.
377 * testsuite/gas/mips/mips32r2@isa-override-1.d: Likewise.
378
379 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
380
381 * testsuite/gas/mips/cp0b.d: New test.
382 * testsuite/gas/mips/cp0bl.d: New test.
383 * testsuite/gas/mips/cp2b.d: New test.
384 * testsuite/gas/mips/micromips@cp2b.d: New test.
385 * testsuite/gas/mips/cp2bl.d: New test.
386 * testsuite/gas/mips/micromips@cp2bl.d: New test.
387 * testsuite/gas/mips/cp3b.d: New test.
388 * testsuite/gas/mips/cp3bl.d: New test.
389 * testsuite/gas/mips/cp0b.s: New test source.
390 * testsuite/gas/mips/cp0bl.s: New test source.
391 * testsuite/gas/mips/cp2b.s: New test source.
392 * testsuite/gas/mips/cp2bl.s: New test source.
393 * testsuite/gas/mips/cp3b.s: New test source.
394 * testsuite/gas/mips/cp3bl.s: New test source.
395 * testsuite/gas/mips/mips.exp: Run the new tests.
396
397 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
398
399 * testsuite/gas/mips/rfe.d: New test.
400 * testsuite/gas/mips/rfe.s: New test source.
401 * testsuite/gas/mips/mips.exp: Run the new test.
402
403 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
404
405 * testsuite/gas/mips/cp1-names-r3900.d: New test.
406 * testsuite/gas/mips/mips.exp: Run the new test.
407 * testsuite/gas/mips/branch-misc-3.d: Update disassembly
408 according to changes to opcodes.
409 * testsuite/gas/mips/cp1-names-r3000.d: Likewise.
410 * testsuite/gas/mips/cp1-names-r4000.d: Likewise.
411 * testsuite/gas/mips/relax-swap1-mips1.d: Likewise.
412 * testsuite/gas/mips/relax-swap1-mips2.d: Likewise.
413 * testsuite/gas/mips/trunc.d: Likewise.
414
415 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
416
417 * testsuite/gas/mips/cp0c.d: New test.
418 * testsuite/gas/mips/cp0m.d: New test.
419 * testsuite/gas/mips/r3900@cp0m.d: New test.
420 * testsuite/gas/mips/cp2.d: New test.
421 * testsuite/gas/mips/micromips@cp2.d: New test.
422 * testsuite/gas/mips/cp2m.d: New test.
423 * testsuite/gas/mips/mipsr6@cp2m.d: New test.
424 * testsuite/gas/mips/micromips@cp2m.d: New test.
425 * testsuite/gas/mips/cp2d.d: New test.
426 * testsuite/gas/mips/mipsr6@cp2d.d: New test.
427 * testsuite/gas/mips/micromips@cp2d.d: New test.
428 * testsuite/gas/mips/cp2-64.d: New test.
429 * testsuite/gas/mips/micromips@cp2-64.d: New test.
430 * testsuite/gas/mips/cp3.d: New test.
431 * testsuite/gas/mips/cp3m.d: New test.
432 * testsuite/gas/mips/cp3d.d: New test.
433 * testsuite/gas/mips/cp0c.s: New test source.
434 * testsuite/gas/mips/cp0m.s: New test source.
435 * testsuite/gas/mips/cp2.s: New test source.
436 * testsuite/gas/mips/cp2m.s: New test source.
437 * testsuite/gas/mips/cp2d.s: New test source.
438 * testsuite/gas/mips/cp2-64.s: New test source.
439 * testsuite/gas/mips/cp3.s: New test source.
440 * testsuite/gas/mips/cp3m.s: New test source.
441 * testsuite/gas/mips/cp3d.s: New test source.
442 * testsuite/gas/mips/mips.exp: Run the new tests.
443
444 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
445
446 * tc-mips.c (convert_reg_type) <OP_REG_CONTROL>: New case.
447 (macro) <M_TRUNCWS, M_TRUNCWD>: Use the `g' rather than `G'
448 operand code.
449
450 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
451
452 * testsuite/gas/mips/cp0-names-r3900.d: New test.
453 * testsuite/gas/mips/mips.exp: Run it.
454
455 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
456
457 * testsuite/gas/mips/micromips.d: Update disassembly according
458 to "dmtc1" entry fix with opcodes.
459 * testsuite/gas/mips/micromips-compact.d: Likewise.
460 * testsuite/gas/mips/micromips-insn32.d: Likewise.
461 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
462 * testsuite/gas/mips/micromips-trap.d: Likewise.
463 * testsuite/gas/mips/micromips@isa-override-1.d: Likewise.
464
465 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
466
467 * config/tc-mips.c (FCSR): New macro.
468 (macro) <M_TRUNCWS, M_TRUNCWD>: Use it in place of RA.
469
470 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
471
472 PR ld/27905
473 * config/tc-i386.c (set_code_flag): Revert commit 50c95a739c9.
474 (set_16bit_gcc_code_flag): Likewise.
475 (x86_cleanup): Likewise.
476 * testsuite/gas/i386/code16-2.d: Updated.
477 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
478
479 2021-05-27 Peter Bergner <bergner@linux.ibm.com>
480
481 * testsuite/gas/ppc/vsx.d <xxmr, xxlnot>: Add tests.
482 * testsuite/gas/ppc/vsx.s: Likewise.
483
484 2021-05-27 Alan Modra <amodra@gmail.com>
485
486 * config/tc-nds32.c (do_pseudo_push_bhwd, do_pseudo_pop_bhwd),
487 (do_pseudo_pusha, do_pseudo_pushi): Avoid fortify strncpy bound
488 error.
489
490 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
491
492 PR ld/27905
493 * config/tc-i386.c (set_code_flag): Update x86_feature_2_used
494 with GNU_PROPERTY_X86_FEATURE_2_CODE16 for .code16 in ELF
495 object.
496 (set_16bit_gcc_code_flag): Likewise.
497 (x86_cleanup): Always generate the GNU property note if
498 x86_feature_2_used isn't 0.
499 * testsuite/gas/i386/code16-2.d: New file.
500 * testsuite/gas/i386/code16-2.s: Likewise.
501 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
502 * testsuite/gas/i386/i386.exp: Run code16-2 and x86-64-code16-2.
503
504 2021-05-26 Sebastien Villemot <sebastien@debian.org>
505
506 PR gas/27906
507 * doc/c-i386.texi: Replace movsb with movsxb as an alias for
508 movsbq.
509
510 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
511
512 * config/tc-riscv.c (riscv_set_arch): Set
513 check_unknown_prefixed_ext to true for assembler.
514
515 2021-05-25 Tamar Christina <tamar.christina@arm.com>
516
517 PR gas/25235
518 * config/tc-arm.c (md_convert_frag): Set LSB when Thumb symbol.
519 (relax_adr): Thumb symbols 4 bytes.
520 * testsuite/gas/arm/pr25235.d: New test.
521 * testsuite/gas/arm/pr25235.s: New test.
522
523 2021-05-24 Nelson Chu <nelson.chu@sifive.com>
524
525 PR 25212
526 * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we
527 will choose ilp32e abi for rv32e. Besides, report errors for the
528 invalid march and mabi combinations.
529 * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept
530 ilp32e abi for rve extension.
531 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise.
532 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise.
533 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise.
534 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise.
535 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
536 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
537 Renamed all mabi testcases to their march-mabi settings.
538
539 2021-05-22 Alan Modra <amodra@gmail.com>
540
541 PR 25599
542 * config/tc-ia64.c (emit_one_bundle): Expand comment for HP-UX
543 adjustment. Add assertion.
544 * testsuite/gas/ia64/reloc-mlx.d: Pass when slot 2 specified
545 for PCREL60B.
546
547 2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com>
548
549 * config/tc-z80.c (emit_data_val): Warn on constant overflow.
550 (signed_overflow): New function.
551 (unsigned_overflow): New function.
552 (is_overflow): Use new functions.
553 (md_apply_fix): Use signed_overflow.
554 * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
555 * testsuite/gas/z80/ez80_isuf.s: Likewise.
556 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
557
558 2021-05-20 Nicolas Boulenguez <nicolas@debian.org>
559
560 PR 27888
561 * Makefile.am (ZLIB): Define.
562 (as_new_LDADD): Add it.
563 * Makefile.in: Regenerate.
564
565 2021-05-17 Alex Coplan <alex.coplan@arm.com>
566
567 * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
568 into the same GPR twice.
569 * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
570 * testsuite/gas/arm/mve-vmov-3.d: New test.
571 * testsuite/gas/arm/mve-vmov-3.s: New test.
572
573 2021-05-12 Alan Modra <amodra@gmail.com>
574
575 * testsuite/gas/elf/dwarf-5-file0.d: Update.
576 * testsuite/gas/i386/dwarf5-line-1.d: Update.
577
578 2021-05-11 Sergey Belyashov <sergey.belyashov@gmail.com>
579
580 PR 27823
581 * config/tc-z80.c (emit_ld_r_m): Report an illegal load
582 instruction.
583 * testsuite/gas/z80/ill_ops.s: New test source file.
584 * testsuite/gas/z80/ill_ops.d: New test driver.
585 * testsuite/gas/z80/ill_ops.l: New test error output.
586
587 2021-05-10 Sergey Belyashov <sergey.belyashov@gmail.com>
588
589 PR 27415
590 * config/tc-z80.c (emit_data_val): Add support for 8-bit and
591 24-bit shifts.
592 * testsuite/gas/z80/z80_reloc.a: Update tests.
593 * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
594
595 2021-05-08 Mike Frysinger <vapier@gentoo.org>
596
597 * doc/Makefile.am (html-local, as/index.html): New targets.
598 * doc/Makefile.in: Regenerate.
599
600 2021-05-08 Mike Frysinger <vapier@gentoo.org>
601
602 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
603 * doc/Makefile.in: Regenerate.
604
605 2021-05-07 Nick Clifton <nickc@redhat.com>
606
607 PR 3136
608 * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
609 (obj_elf_bss): New function. Change to the .bss section.
610 Support an optional subsection number.
611 (obj_elf_change_section): Call obj_elf_section_change_hook.
612 (obj_elf_section): Likewise.
613 (obj_elf_data): Likewise.
614 (obj_elf_text): Likewise.
615 (obj_elf_struct): Likewise.
616 (obj_elf_subsection): Likewise.
617 (obj_elf_previous): Likewise.
618 * config/obj-elf.h (obj_elf_bss): Prototype.
619 * doc/as.texi (Bss): New node.
620
621 2021-05-07 Clément Chigot <clement.chigot@atos.net>
622
623 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
624 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
625 (coff_frob_section): Likewise.
626 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
627 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
628 SA_SET_SECT_NRELOC) New defines.
629 (SET_SECTION_RELOCS): Adjust for C_DWARF.
630 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
631 (ppc_adjust_symtab): Reorder C_DWARF symbols.
632 * testsuite/gas/ppc/aix.exp: New tests.
633 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
634 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
635 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
636
637 * config/tc-ppc.c (ppc_function): Update comment for
638 fifth argument.
639 (ppc_frob_symbol): Remove ppc_last_function check.
640 Make sure coff_last_function is reset.
641 Correctly set fsize when not provided in .function.
642 * testsuite/gas/ppc/aix.exp: New tests.
643 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
644 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
645 * testsuite/gas/ppc/xcoff-function-1.s: New test.
646
647 2021-05-07 Jan Beulich <jbeulich@suse.com>
648
649 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
650 * testsuite/gas/i386/i386.exp: Run new test.
651
652 2021-05-07 Jan Beulich <jbeulich@suse.com>
653
654 * config/tc-i386.c (output_disp): Use disps field instead of
655 imms one.
656
657 2021-05-07 Jan Beulich <jbeulich@suse.com>
658
659 * config/tc-i386.c (i386_finalize_immediate): Move register
660 check ...
661 (i386_immediate): ... here.
662
663 2021-05-07 Jan Beulich <jbeulich@suse.com>
664
665 * config/tc-i386.c (optimize_imm): Drop redundant masking.
666 Re-arrange operand type accumulation.
667
668 2021-05-06 Stafford Horne <shorne@gmail.com>
669
670 PR 21464
671 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
672 * testsuite/gas/or1k/reloc-1.d: Add test result for new
673 relocation.
674
675 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
676
677 PR 27764
678 * testsuite/gas/riscv/a-ext-64.d: New testcase.
679 * testsuite/gas/riscv/a-ext-64.s: Likewise.
680 * testsuite/gas/riscv/a-ext.d: Likewise.
681 * testsuite/gas/riscv/a-ext.s: Likewise.
682
683 2021-05-03 Jan Beulich <jbeulich@suse.com>
684
685 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
686 #if.
687 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
688 Add two further .long and an .equ.
689 * testsuite/gas/i386/secrel.d: Adjust expecations.
690
691 2021-05-03 Jan Beulich <jbeulich@suse.com>
692
693 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
694 Convert Windows to UNIX EOL.
695
696 2021-05-03 Jan Beulich <jbeulich@suse.com>
697
698 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
699 variant into ELF one.
700
701 2021-05-03 Alan Modra <amodra@gmail.com>
702
703 * testsuite/gas/elf/section25.s: Don't start directives in first
704 column.
705 * testsuite/gas/elf/section26.s: Likewise.
706
707 2021-04-29 Jan Beulich <jbeulich@suse.com>
708
709 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
710 * testsuite/gas/i386/lea64.d,
711 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
712 * testsuite/gas/i386/x86-64-rip-inval-1.s,
713 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
714
715 2021-04-29 Jan Beulich <jbeulich@suse.com>
716
717 * config/tc-i386.c (i386_validate_fix): Change return type to
718 int. Short-circuit BFD_RELOC_SIZE* handling.
719 (tc_gen_reloc): New local variable sym. Extend logic when
720 processing BFD_RELOC_SIZE*.
721 * config/tc-i386.f (i386_validate_fix): Change return type to
722 int.
723 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
724 returns zero.
725 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
726 testsuite/gas/i386/size-5b.d: New.
727 * testsuite/gas/i386/i386.exp: Run new tests.
728
729 2021-04-29 Jan Beulich <jbeulich@suse.com>
730
731 * config/tc-i386.c (tc_gen_reloc): Use section size for section
732 symbols when resolving BFD_RELOC_SIZE*.
733 * testsuite/gas/i386/size-2.s: Add section size cases.
734 * testsuite/gas/i386/size-2.d,
735 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
736
737 2021-04-28 Jan Beulich <jbeulich@suse.com>
738 H.J. Lu <hjl.tools@gmail.com>
739
740 PR gas/27763
741 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
742 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
743 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
744 (md_estimate_size_before_relax): Move local variable fixP. Set
745 it from fix_new() return values. Mark 4-byte relocs as signed
746 for 64-bit.
747 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
748 * testsuite/gas/i386/x86-64-rip-2.s,
749 * testsuite/gas/i386/x86-64-rip-2.d,
750 * testsuite/gas/i386/x86-64-rip-inval-1.s,
751 * testsuite/gas/i386/x86-64-rip-inval-1.l,
752 * testsuite/gas/i386/x86-64-rip-inval-2.s,
753 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
754 * testsuite/gas/i386/i386.exp: Run new tests.
755
756 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
757
758 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
759
760 2021-04-26 Jan Beulich <jbeulich@suse.com>
761
762 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
763 BFD_RELOC_SIZE*.
764
765 2021-04-26 Jan Beulich <jbeulich@suse.com>
766
767 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
768 overflow check to 64-bit objects.
769
770 2021-04-26 Jan Beulich <jbeulich@suse.com>
771
772 * config/tc-i386.c (want_disp32): Also check for SIZE32.
773 (optimize_encoding): Handle LEA.
774 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
775 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
776 Add many more forms.
777 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
778 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
779 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
780 New.
781 * testsuite/gas/i386/i386.exp: Run new tests.
782
783 2021-04-26 Jan Beulich <jbeulich@suse.com>
784
785 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
786 signed.
787 * testsuite/gas/i386/x86-64-addr32-bad.s,
788 testsuite/gas/i386/x86-64-addr32-bad.l: New.
789 * testsuite/gas/i386/i386.exp: Run new test.
790
791 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
792
793 * testsuite/gas/elf/section25.d: Run it everywhere.
794 * testsuite/gas/elf/section26.d: Likewise.
795 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
796
797 2021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
798
799 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
800 optional "code" argument.
801
802 2021-04-23 Jan Beulich <jbeulich@suse.com>
803
804 * config/tc-i386.c (want_disp32): New.
805 (md_assemble): Use it.
806 (optimize_disp): Likewise.
807 (build_modrm_byte): Likewise.
808
809 2021-04-23 Jan Beulich <jbeulich@suse.com>
810
811 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
812 check ...
813 (md_assemble): ... here.
814
815 2021-04-23 Jan Beulich <jbeulich@suse.com>
816
817 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
818 Move up setting of disp32.
819
820 2021-04-23 Jan Beulich <jbeulich@suse.com>
821
822 * config/tc-i386.c (pe): Don't truncate expression value.
823 (i386_finalize_displacement): Likewise.
824
825 2021-04-21 Nick Clifton <nickc@redhat.com>
826
827 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
828 for named section symbols.
829 * testsuite/gas/arm/thumbver.d: Likewise.
830 * testsuite/gas/bfin/loop_temps.d: Likewise.
831 * testsuite/gas/elf/section2.e-arc: Likewise.
832 * testsuite/gas/elf/section2.e-arm: Likewise.
833 * testsuite/gas/elf/section2.e-csky: Likewise.
834 * testsuite/gas/elf/section2.e-m32r: Likewise.
835 * testsuite/gas/elf/section2.e-mips: Likewise.
836 * testsuite/gas/elf/section2.e-msp430: Likewise.
837 * testsuite/gas/elf/section2.e-riscv: Likewise.
838 * testsuite/gas/elf/section2.e-rl78: Likewise.
839 * testsuite/gas/elf/section2.e-rx: Likewise.
840 * testsuite/gas/elf/section2.e-score: Likewise.
841 * testsuite/gas/elf/section2.e-tic6x: Likewise.
842 * testsuite/gas/elf/section2.e-unused: Likewise.
843 * testsuite/gas/elf/section2.e-v850: Likewise.
844 * testsuite/gas/elf/section2.e-xtensa: Likewise.
845 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
846 * testsuite/gas/ia64/alias.d: Likewise.
847 * testsuite/gas/ia64/global.d: Likewise.
848 * testsuite/gas/microblaze/relax_size.elf: Likewise.
849 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
850 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
851 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
852 * testsuite/gas/mmix/bspec-1.d: Likewise.
853 * testsuite/gas/mmix/byte-1.d: Likewise.
854 * testsuite/gas/mmix/comment-1.d: Likewise.
855 * testsuite/gas/mmix/loc-1.d: Likewise.
856 * testsuite/gas/mmix/loc-2.d: Likewise.
857 * testsuite/gas/mmix/loc-3.d: Likewise.
858 * testsuite/gas/mmix/loc-4.d: Likewise.
859 * testsuite/gas/mmix/loc-5.d: Likewise.
860 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
861
862 2021-04-20 Clément Chigot <clement.chigot@atos.net>
863
864 PR binutils/21700
865 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
866 (ppc_fix_adjustable): Manage fx_subsy part.
867 (tc_gen_reloc): Create second relocation when both
868 fx_addsy and fx_subsy are provided.
869 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
870 (MAX_RELOC_EXPANSION): Likewise.
871 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
872 (UNDEFINED_DIFFERENCE_OK): Likewise
873 * testsuite/gas/all/gas.exp: Skip difference between two
874 undefined symbols test.
875
876 2021-04-19 Nick Clifton <nickc@redhat.com>
877
878 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
879 targets which should skip the undefined symbols test.
880
881 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
882
883 * NEWS: Update news.
884 * testsuite/gas/aarch64/rme.d: Update test.
885 * testsuite/gas/aarch64/rme.s: Update test.
886
887 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
888
889 * testsuite/gas/aarch64/rme.d: Update test.
890 * testsuite/gas/aarch64/rme.s: Update test.
891
892 2021-04-19 Jan Beulich <jbeulich@suse.com>
893
894 * as.h (sprint_value): Delete.
895 * messages.c (sprint_value): Likewise.
896 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
897 place of sprint_value.
898 * config/tc-s390.c (s390_insert_operand): Likewise.
899 * doc/internals.texi (sprint_value): Delete section.
900 * write.c (fixup_segment): Likewise.
901 (relax_segment): Likewise.
902
903 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
904
905 * testsuite/gas/aarch64/rme-invalid.d: New test.
906 * testsuite/gas/aarch64/rme-invalid.l: New test.
907 * testsuite/gas/aarch64/rme-invalid.s: New test.
908 * testsuite/gas/aarch64/rme.d: New test.
909 * testsuite/gas/aarch64/rme.s: New test.
910
911 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
912
913 PR 27436
914 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
915 * testsuite/gas/riscv/shamt-32.d: New testcase.
916 * testsuite/gas/riscv/shamt-32.l: Likewise.
917 * testsuite/gas/riscv/shamt-32.s: Likewise.
918 * testsuite/gas/riscv/shamt-64.d: Likewise.
919 * testsuite/gas/riscv/shamt-64.l: Likewise.
920 * testsuite/gas/riscv/shamt-64.s: Likewise.
921
922 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
923
924 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
925 c.mv a4,a4.
926 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
927
928 2021-04-14 Alan Modra <amodra@gmail.com>
929
930 PR 27723
931 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
932 (select_cie_for_fde): ..here. Simplify.
933
934 2021-04-14 Alan Modra <amodra@gmail.com>
935
936 PR 27723
937 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
938 DW_CFA_GNU_window_save and DW_CFA_restore_state.
939
940 2021-04-13 Alan Modra <amodra@gmail.com>
941
942 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
943 write to $srcdir. Use gas_host_run and read output file rather
944 than gas_start/gas_finish.
945
946 2021-04-12 Alan Modra <amodra@gmail.com>
947
948 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
949 (md_assemble): Likewise. Handle bignum operands.
950 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
951 check.
952 * expr.c: Delete unnecessary forward declarations.
953 (generic_bignum_to_int32): Return uint32_t.
954 (generic_bignum_to_int64): Return uint64_t. Compile always.
955 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
956 clear X_extrabit for unary '!'.
957 * expr.h (generic_bignum_to_int32): Declare.
958 (generic_bignum_to_int64): Declare.
959 * testsuite/gas/ppc/prefix-pcrel.s,
960 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
961
962 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
963
964 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
965 march-fail-porder-x-std.d.
966 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
967 march-fail-porder-z-std.d.
968 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
969 march-fail-porder-x-z.d.
970 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
971 march-fail-porder.l.
972 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
973 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
974 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
975 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
976 march-fail-single-char-h.d.
977 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
978 march-fail-single-char-s.d.
979 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
980 march-fail-single-char-x.d.
981 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
982 march-fail-single-char-z.d.
983 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
984 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
985 march-fail-single-prefix.l.
986 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
987 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
988 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
989
990 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
991
992 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
993 diagnostic messages for LD/ST Exclusive instructions.
994 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
995 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
996 clean-up.
997
998 2021-04-09 Alan Modra <amodra@gmail.com>
999
1000 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
1001 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
1002 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
1003
1004 2021-04-08 Alan Modra <amodra@gmail.com>
1005
1006 * testsuite/gas/ppc/pr27676.d,
1007 * testsuite/gas/ppc/pr27676.s: New test.
1008 * testsuite/gas/ppc/ppc.exp: Run it.
1009 * testsuite/gas/ppc/dcbt.d: Update.
1010 * testsuite/gas/ppc/power4_32.d: Update.
1011
1012 2021-04-07 Alan Modra <amodra@gmail.com>
1013
1014 PR 27217
1015 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
1016
1017 2021-04-06 Nick Clifton <nickc@redhat.com>
1018
1019 PR 27217
1020 * config/tc-aarch64.c (my_get_expression): Rename to
1021 aarch64_get_expression. Add a fifth argument to enable deferring
1022 of expression resolution.
1023 (parse_typed_reg): Update calls to my_get_expression.
1024 (parse_vector_reg_list): Likewise.
1025 (parse_immediate_expression): Likewise.
1026 (parse_big_immediate): Likewise.
1027 (parse_shift): Likewise.
1028 (parse_shifter_operand_imm): Likewise.
1029 (parse_operands): Likewise.
1030 (parse_shifter_operand_reloc): Update calls to my_get_expression
1031 and call aarch64_force_reloc to determine the value of the new
1032 fifth argument.
1033 (parse_address_main): Likewise.
1034 (parse_half): Likewise.
1035 (parse_adrp): Likewise.
1036 (aarch64_force_reloc): New function. Contains code extracted from...
1037 (aarch64_force_relocation): ... here.
1038 * testsuite/gas/aarch64/pr27217.s: New test case.
1039 * testsuite/gas/aarch64/pr27217.d: New test driver.
1040
1041 2021-04-06 Jan Beulich <jbeulich@suse.com>
1042
1043 * write.c (fixup_segment): Move add_symbol_segment declaration
1044 into main loop.
1045
1046 2021-04-05 Alan Modra <amodra@gmail.com>
1047
1048 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
1049 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
1050 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
1051 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
1052 strstr, or vsnprintf declarations.
1053 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
1054 * as.h: Don't include alloca-conf.h, include config.h instead.
1055 Include string.h, stdlib.h, errno.h unconditionally. Remove
1056 various fallback declarations.
1057 * asintl.h: Don't test HAVE_LOCALE_H.
1058 * as.c: Don't test HAVE_SETLOCALE.
1059 * dwarf2dbg.c: Include limits.h unconditionally.
1060 * expr.c: Likewise.
1061 * sb.c: Likewise.
1062 * symbols.c: Likewise.
1063 * config/tc-cr16.c: Likewise.
1064 * config/tc-d30v.c: Likewise.
1065 * config/tc-i386.c: Likewise.
1066 * config/tc-ia64.c: Likewise.
1067 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
1068 * config.in: Regenerate.
1069 * configure: Regenerate.
1070 * Makefile.in: Regenerate.
1071 * doc/Makefile.in: Regenerate.
1072
1073 2021-04-01 Martin Liska <mliska@suse.cz>
1074
1075 * config/obj-coff.c (strneq): Remove strneq and use startswith.
1076 (weak_is_altname): Likewise.
1077 (obj_coff_section): Likewise.
1078 * config/tc-cr16.c (process_label_constant): Likewise.
1079 * config/tc-crx.c (strneq): Likewise.
1080
1081 2021-04-01 Martin Liska <mliska@suse.cz>
1082
1083 * as.c (select_emulation_mode): Use startswith.
1084 * config/m68k-parse.y: Likewise.
1085 * config/obj-aout.c (obj_aout_type): Likewise.
1086 * config/obj-elf.c (elf_common_parse): Likewise.
1087 (obj_elf_section_type): Likewise.
1088 (obj_elf_section_word): Likewise.
1089 (obj_elf_section): Likewise.
1090 (obj_elf_symver): Likewise.
1091 (adjust_stab_sections): Likewise.
1092 * config/obj-evax.c (evax_shorten_name): Likewise.
1093 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
1094 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
1095 (aarch64_parse_features): Likewise.
1096 (create_register_alias): Likewise.
1097 (aarch64_data_in_code): Likewise.
1098 (md_parse_option): Likewise.
1099 * config/tc-alpha.c (s_alpha_section_word): Likewise.
1100 (s_alpha_pdesc): Likewise.
1101 * config/tc-arc.c (tokenize_extregister): Likewise.
1102 * config/tc-arm.c (create_register_alias): Likewise.
1103 (create_neon_reg_alias): Likewise.
1104 (parse_ifimm_zero): Likewise.
1105 (parse_qfloat_immediate): Likewise.
1106 (arm_elf_section_type): Likewise.
1107 (arm_parse_extension): Likewise.
1108 (aeabi_set_public_attributes): Likewise.
1109 (s_arm_arch_extension): Likewise.
1110 (arm_data_in_code): Likewise.
1111 (start_unwind_section): Likewise.
1112 * config/tc-avr.c (avr_ldi_expression): Likewise.
1113 * config/tc-csky.c (is_freglist_legal): Likewise.
1114 (csky_s_section): Likewise.
1115 * config/tc-d30v.c (do_assemble): Likewise.
1116 * config/tc-dlx.c (parse_operand): Likewise.
1117 * config/tc-epiphany.c (md_assemble): Likewise.
1118 * config/tc-h8300.c (h8300_elf_section): Likewise.
1119 (get_operand): Likewise.
1120 * config/tc-hppa.c (pa_ip): Likewise.
1121 (pa_level): Likewise.
1122 (pa_space): Likewise.
1123 * config/tc-i386.c (i386_mach): Likewise.
1124 (md_assemble): Likewise.
1125 (check_VecOperations): Likewise.
1126 (i386_target_format): Likewise.
1127 (i386_elf_section_type): Likewise.
1128 * config/tc-ia64.c (start_unwind_section): Likewise.
1129 (md_parse_option): Likewise.
1130 (is_taken_branch): Likewise.
1131 (idesc->name,): Likewise.
1132 (note_register_values): Likewise.
1133 (do_alias): Likewise.
1134 * config/tc-m32c.c (insn_to_subtype): Likewise.
1135 * config/tc-m68hc11.c (get_operand): Likewise.
1136 (md_assemble): Likewise.
1137 * config/tc-m68k.c (m68k_ip): Likewise.
1138 (m68k_elf_suffix): Likewise.
1139 * config/tc-mcore.c (mcore_s_section): Likewise.
1140 * config/tc-metag.c (parse_get_set): Likewise.
1141 (md_parse_option): Likewise.
1142 * config/tc-microblaze.c (parse_imm): Likewise.
1143 (check_got): Likewise.
1144 (md_apply_fix): Likewise.
1145 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
1146 (md_begin): Likewise.
1147 (s_is_linkonce): Likewise.
1148 (check_regno): Likewise.
1149 (match_float_constant): Likewise.
1150 (classify_vr4120_insn): Likewise.
1151 (match_insn): Likewise.
1152 (mips_after_parse_args): Likewise.
1153 (s_change_sec): Likewise.
1154 (s_option): Likewise.
1155 (parse_code_option): Likewise.
1156 (md_section_align): Likewise.
1157 (nopic_need_relax): Likewise.
1158 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
1159 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
1160 (mn10300_end_of_match): Likewise.
1161 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
1162 * config/tc-nds32.c (nds32_parse_option): Likewise.
1163 * config/tc-nds32.h (md_do_align): Likewise.
1164 * config/tc-nios2.c (strprefix): Likewise.
1165 (nios2_special_relocation_p): Likewise.
1166 (nios2_parse_base_register): Likewise.
1167 (nios2_cons): Likewise.
1168 * config/tc-ns32k.c (addr_mode): Likewise.
1169 * config/tc-pdp11.c (set_option): Likewise.
1170 (parse_reg): Likewise.
1171 (parse_ac5): Likewise.
1172 (parse_op_no_deferred): Likewise.
1173 (set_cpu_model): Likewise.
1174 (set_machine_model): Likewise.
1175 * config/tc-pj.c (md_operand): Likewise.
1176 * config/tc-ppc.c (ppc_set_cpu): Likewise.
1177 (ppc_arch): Likewise.
1178 (ppc_section_type): Likewise.
1179 * config/tc-s12z.c (tb_reg_rel): Likewise.
1180 (tb_opr_rel): Likewise.
1181 * config/tc-s390.c (s390_parse_cpu): Likewise.
1182 (md_parse_option): Likewise.
1183 * config/tc-score.c (s3_nopic_need_relax): Likewise.
1184 (s3_pic_need_relax): Likewise.
1185 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
1186 (s7_pic_need_relax): Likewise.
1187 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1188 * config/tc-sparc.c (md_parse_option): Likewise.
1189 (sparc_ip): Likewise.
1190 (s_reserve): Likewise.
1191 (s_common): Likewise.
1192 (s_seg): Likewise.
1193 (sparc_cons): Likewise.
1194 * config/tc-tic54x.c (stag_add_field): Likewise.
1195 (tic54x_endstruct): Likewise.
1196 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1197 * config/tc-v850.c (v850_comm): Likewise.
1198 (md_begin): Likewise.
1199 (md_assemble): Likewise.
1200 * config/tc-vax.c (vax_cons): Likewise.
1201 * config/tc-wasm32.c (wasm32_leb128): Likewise.
1202 * config/tc-xstormy16.c (md_operand): Likewise.
1203 * config/tc-xtensa.c (get_directive): Likewise.
1204 (xg_instruction_matches_option_term): Likewise.
1205 (is_unaligned_label): Likewise.
1206 (cache_literal_section): Likewise.
1207 * config/xtensa-relax.c (parse_precond): Likewise.
1208 (parse_option_cond): Likewise.
1209 (transition_applies): Likewise.
1210 (wide_branch_opcode): Likewise.
1211 * dw2gencfi.c: Likewise.
1212 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
1213 * ehopt.c (get_cie_info): Likewise.
1214 * input-file.c (input_file_open): Likewise.
1215 * listing.c (listing_newline): Likewise.
1216 (debugging_pseudo): Likewise.
1217 * read.c (read_a_source_file): Likewise.
1218 * write.c (adjust_reloc_syms): Likewise.
1219 (compress_debug): Likewise.
1220 (maybe_generate_build_notes): Likewise.
1221
1222 2021-03-31 Alan Modra <amodra@gmail.com>
1223
1224 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
1225 * config/bfin-lex-wrapper.c: Likewise.
1226 * itbl-lex.l: Don't include as.h.
1227 * config/bfin-lex.l: Likewise.
1228
1229 2021-03-31 Alan Modra <amodra@gmail.com>
1230
1231 * as.h (POISON_BFD_BOOLEAN): Define.
1232 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
1233 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
1234 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
1235 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
1236 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
1237 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
1238 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
1239 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
1240 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
1241 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
1242 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
1243 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
1244 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
1245 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
1246 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
1247 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
1248 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
1249 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
1250 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
1251 * config/tc-metag.c, * config/tc-metag.h,
1252 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
1253 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
1254 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
1255 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
1256 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
1257 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
1258 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
1259 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
1260 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
1261 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
1262 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
1263 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
1264 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
1265 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
1266 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
1267 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
1268 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
1269 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
1270 * config/tc-z8k.c, * config/xtensa-istack.h,
1271 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
1272 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
1273 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
1274 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
1275 with bool, FALSE with false, and TRUE with true.
1276
1277 2021-03-31 Alan Modra <amodra@gmail.com>
1278
1279 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
1280 * config/tc-crx.c: Likewise.
1281 * config/tc-nds32.h: Likewise.
1282
1283 2021-03-30 Jan Beulich <jbeulich@suse.com>
1284
1285 * config/tc-i386.c (build_modrm_byte): Change return type.
1286 Change type of "default_seg". Use NULL. Adjust setting of
1287 "default_seg".
1288 (reg_ds, reg_es, reg_ss): New.
1289 (struct _i386_insn): Change type of seg[].
1290 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
1291 (swap_operands): Change type of "temp_seg".
1292 (check_string): Adjust %es check.
1293 (process_operands): Change type of "default_seg". Use NULL.
1294 Adjust segment override processing..
1295 (i386_att_operand): Adjust segment override handling.
1296 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
1297
1298 2021-03-30 Jan Beulich <jbeulich@suse.com>
1299
1300 * config/tc-i386.c (reg_eax): New.
1301 (md_begin): Initialize reg_eax.
1302 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
1303 reg_eax.
1304 (i386_intel_simplify): Likewise.
1305
1306 2021-03-30 Jan Beulich <jbeulich@suse.com>
1307
1308 * config/tc-i386.c (reg_st0): New.
1309 (md_begin): Convert to switch(). Initialize reg_st0. Don't
1310 insert other st(N).
1311 (parse_real_register): Adjust st(N) processing.
1312
1313 2021-03-30 Jan Beulich <jbeulich@suse.com>
1314
1315 * config/tc-i386.c (rc_op): Delete.
1316 (struct Rounding_Operation): Move ...
1317 (struct _i386_insn): ... here. Change field "rounding".
1318 (build_evex_prefix): Adjust rounding processing.
1319 (swap_2_operands): Likewise.
1320 (check_VecOperands): Likewise.
1321 (RC_SAE_immediate): Likewise.
1322 (optimize_encoding): Adjust check for rounding.
1323 (build_modrm_byte): Likewise.
1324 (output_imm): Likewise.
1325 (md_assemble): Initialize rounding type.
1326
1327 2021-03-30 Jan Beulich <jbeulich@suse.com>
1328
1329 * config/tc-i386.c (broadcast_op): Delete.
1330 (struct Broadcast_Operation): Move ...
1331 (struct _i386_insn): ... here. Change field "broadcast".
1332 (match_mem_size): Adjust check for broadcast.
1333 (optimize_encoding): Likewise.
1334 (process_suffix): Likewise.
1335 (build_evex_prefix): Adjust broadcast processing.
1336 (swap_2_operands): Likewise.
1337 (check_VecOperations): Likewise.
1338 (match_template): Likewise.
1339 (check_VecOperands): Likewise.
1340
1341 2021-03-30 Jan Beulich <jbeulich@suse.com>
1342
1343 * config/tc-i386.c (reg_k0): New.
1344 (mask_op): Delete.
1345 (struct Mask_Operation): Move ...
1346 (struct _i386_insn): ... here. Change field "mask".
1347 (md_begin): Initialize reg_k0.
1348 (build_evex_prefix): Adjust mask processing.
1349 (swap_2_operands): Likewise.
1350 (check_VecOperands): Likewise.
1351 (check_VecOperations): Likewise.
1352 (optimize_encoding): Adjust checks for masking.
1353 (output_insn): Likewise.
1354
1355 2021-03-30 Jan Beulich <jbeulich@suse.com>
1356
1357 * config/tc-i386.c (swap_2_operands): Switch parameters to
1358 unsigned.
1359 (struct RC_Operation): Switch operand field to unsigned.
1360 (struct Mask_Operation): Likewise.
1361 (struct Broadcast_Operation): Likewise.
1362 (build_evex_prefix): Drop cast.
1363 (check_VecOperands): Likewise.
1364 (build_modrm_byte): Likewise.
1365 (output_imm): Likewise.
1366 (check_VecOperations): Add casts to unsigned.
1367
1368 2021-03-29 Jan Beulich <jbeulich@suse.com>
1369
1370 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
1371 * testsuite/gas/i386/x86-64-avx-swap-2.d.
1372 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1373
1374 2021-03-29 Jan Beulich <jbeulich@suse.com>
1375
1376 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
1377 checks by opcodespace ones.
1378 (insert_lfence_before): Likewise.
1379 (maybe_fused_with_jcc_p): Likewise.
1380 (add_branch_padding_frag_p): Likewise.
1381 (output_disp): Likewise.
1382 (load_insn_p): Re-arrange checks to key applicable ones off of
1383 an opcodespace check.
1384 (md_assemble): Adjust opcode checks.
1385 (check_byte_reg): Likewise.
1386 (process_operands): Likewise.
1387 (i386_index_check): Likewise.
1388 (process_suffix): Likewise. New local variable is_movx. Adjust
1389 movsx/movzx and crc32 handling.
1390 (output_insn): Adjust opcode checks. Drop no longer reachable
1391 case labels. Output legacy encoding prefixes in addition to the
1392 base_opcode byte(s). Rework counting of prefixes for extended
1393 opcode maps.
1394 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
1395 opcode checks.
1396
1397 2021-03-29 Alan Modra <amodra@gmail.com>
1398
1399 * atof-generic.c (FALSE, TRUE): Don't define.
1400 * config/obj-elf.h (FALSE, TRUE): Don't define.
1401 * config/obj-som.h (FALSE, TRUE): Don't define.
1402 * config/tc-hppa.h (FALSE, TRUE): Don't define.
1403 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
1404 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
1405 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
1406 * config/tc-mt.h (obj_fix_adjustable): Delete.
1407 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
1408 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
1409 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
1410 (tokenize_extregister): Likewise.
1411 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
1412 (parse_operands_op, parse_operands, md_assemble): Likewise.
1413 * config/tc-d10v.c (build_insn): Likewise.
1414 * config/tc-score.c (s3_gen_insn_frag): Likewise.
1415 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
1416 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
1417 * config/tc-z80.c (emit_byte): Likewise.
1418
1419 2021-03-29 Alan Modra <amodra@gmail.com>
1420
1421 * config/tc-arm.c (struct arm_long_option_table <func>): Return
1422 bfd_boolean.
1423 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
1424 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
1425 with bfd_boolean.
1426 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
1427 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
1428 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
1429 logical expressions.
1430 (struct metag_long_option <func>): Return bfd_boolean.
1431 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
1432 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
1433 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
1434 (no_operands, lex_force_match, lex_reg_list): Likewise.
1435 (size_from_suffix): Return int.
1436 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
1437 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
1438
1439 2021-03-26 Jan Beulich <jbeulich@suse.com>
1440
1441 * testsuite/gas/i386/x86-64-nosse2.s,
1442 testsuite/gas/i386/x86-64-nosse2.l: New.
1443 * testsuite/gas/i386/i386.exp: Run new test.
1444
1445 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
1446
1447 * testsuite/gas/nios2/brn.d: New.
1448 * testsuite/gas/nios2/brn.d: New.
1449
1450 2021-03-25 Jan Beulich <jbeulich@suse.com>
1451
1452 * config/tc-i386.c (match_template): Use t instead of i.tm.
1453
1454 2021-03-25 Jan Beulich <jbeulich@suse.com>
1455
1456 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
1457 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
1458 colliding registers in the upper half of the space.
1459 * testsuite/gas/i386/avx512f-nondef.d,
1460 testsuite/gas/i386/vgather-check.d,
1461 testsuite/gas/i386/x86-64-vgather-check.d,
1462 testsuite/gas/i386/x86-64-vgather-check-error.l,
1463 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
1464 expecations.
1465 * testsuite/gas/i386/vgather-check-none.d,
1466 testsuite/gas/i386/vgather-check-warn.d,
1467 testsuite/gas/i386/x86-64-vgather-check-none.d,
1468 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
1469 tests for expected dump output.
1470
1471 2021-03-25 Jan Beulich <jbeulich@suse.com>
1472
1473 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
1474 without mask register.
1475 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
1476
1477 2021-03-25 Jan Beulich <jbeulich@suse.com>
1478
1479 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
1480 swapping operands for.
1481 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
1482 syntax tests.
1483 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
1484 well as Intel syntax tests.
1485 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
1486 expectations.
1487 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
1488 Likewise. Drop passing --def-sym to as.
1489
1490 2021-03-25 Jan Beulich <jbeulich@suse.com>
1491
1492 PR/gas 27419
1493 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
1494 conversion to x32 mode.
1495 * testsuite/gas/i386/ilp32/enqcmd.s,
1496 testsuite/gas/i386/ilp32/enqcmd.d,
1497 testsuite/gas/i386/ilp32/movdir.s,
1498 testsuite/gas/i386/ilp32/movdir.d: New.
1499 * testsuite/gas/i386/x86-64-enqcmd.s,
1500 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
1501 cases.
1502 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
1503 (%eip) cases.
1504 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
1505 * testsuite/gas/i386/x86-64-enqcmd.d,
1506 testsuite/gas/i386/x86-64-enqcmd-intel.d,
1507 testsuite/gas/i386/x86-64-enqcmd-inval.l,
1508 testsuite/gas/i386/x86-64-movdir.d,
1509 testsuite/gas/i386/x86-64-movdir-intel.d,
1510 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
1511
1512 2021-03-25 Alan Modra <amodra@gmail.com>
1513
1514 PR 27647
1515 * testsuite/gas/ppc/a2.d: Update expected output.
1516 * testsuite/gas/ppc/power8.d: Likewise.
1517
1518 2021-03-24 Jan Beulich <jbeulich@suse.com>
1519
1520 * config/tc-i386.c (struct _i386_insn): New field
1521 opcode_length.
1522 (md_begin): Drop assertion.
1523 (install_template): New.
1524 (build_vex_prefix): Call install_template.
1525 (match_template): Likewise.
1526 (process_operands): Use new opcode_length field.
1527 (output_jump): Likewise.
1528 (output_insn): Likewise. Adjust psedo prefix check.
1529
1530 2021-03-24 Jan Beulich <jbeulich@suse.com>
1531
1532 * config/tc-i386.c (md_begin): Add assertion.
1533 (build_vex_prefix): Drop implied prefix calculation.
1534 (build_evex_prefix): Likewise.
1535 (optimize_encoding): Adjust opcode checks.
1536 (load_insn_p): Also check opcodeprefix.
1537 (match_template): Also check opcodespace.
1538 (process_suffix): Likewise.
1539 (process_operands): Likewise.
1540 (output_insn): Likewise. Also check isprefix when discaring
1541 standalone LOCK.
1542 * config/tc-i386-intel.c (i386_intel_operand): Also check
1543 opcodespace.
1544
1545 2021-03-24 Jan Beulich <jbeulich@suse.com>
1546
1547 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
1548 base_opcode and extension_opcode.
1549
1550 2021-03-23 Jan Beulich <jbeulich@suse.com>
1551
1552 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
1553
1554 2021-03-23 Jan Beulich <jbeulich@suse.com>
1555
1556 * config/tc-i386.c (output_i386_opcode): Invoke
1557 process_i386_cpu_flag() slightly later.
1558 (process_i386_opcodes): Likewise.
1559
1560 2021-03-23 Jan Beulich <jbeulich@suse.com>
1561
1562 * config/tc-i386.c (pte): Print prefix and encoding space.
1563 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
1564 (build_evex_prefix): Likewise.
1565 (load_insn_p): Likewise.
1566
1567 2021-03-23 Jan Beulich <jbeulich@suse.com>
1568
1569 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
1570 if()-s.
1571 (match_template, output_insn): Use PREFIX_NONE.
1572
1573 2021-03-23 Jan Beulich <jbeulich@suse.com>
1574
1575 * config/tc-i386.c (i386_index_check): New local variable t.
1576 Correct MPX insn check.
1577 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
1578 MPX insn check.
1579 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
1580 index scaling by other than 1.
1581 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
1582
1583 2021-03-22 Martin Liska <mliska@suse.cz>
1584
1585 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
1586 (x86_64_section_word): Likewise.
1587 * config/tc-sparc.c (md_parse_option): Likewise.
1588
1589 2021-03-19 Alan Modra <amodra@gmail.com>
1590
1591 * app.c (do_scrub_chars): Don't lose spaces before a slash.
1592
1593 2021-03-18 Christian Groessler <chris@groessler.org>
1594
1595 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
1596 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
1597
1598 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1599
1600 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
1601 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
1602 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
1603 * testsuite/gas/riscv/b-ext-64.d: Likewise.
1604 * testsuite/gas/riscv/b-ext.s: Likewise.
1605 * testsuite/gas/riscv/b-ext.d: Likewise.
1606
1607 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1608
1609 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
1610 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
1611 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
1612 * testsuite/gas/aarch64/sysreg-7.d: New test.
1613 * testsuite/gas/aarch64/sysreg-7.s: New test.
1614
1615 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1616
1617 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
1618 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
1619 (ppc_xcoff_tbss_section): New variables.
1620 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1621 (ppc_data_csects): Removed.
1622 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1623 ppc_xcoff_parse_cons): New functions.
1624 (md_being): Initialize XCOFF sections.
1625 (ppc_xcoff_suffix): Add support for TLS relocations
1626 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1627 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
1628 to .bss section. Handle new XCOFF section variables.
1629 (ppc_comm): Likewise.
1630 (ppc_toc): Likewise.
1631 (ppc_symbol_new_hook): Likewise.
1632 (ppc_frob_symbol): Likewise.
1633 (ppc_fix_adjustable): Add tbss support.
1634 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1635 (ppc_xcoff_parse_cons): Add prototype.
1636 (struct ppc_xcoff_section): New structure.
1637
1638 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1639
1640 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1641 (MAP, MAP32, MAP64): New macros for XCOFF.
1642 (ppc_xcoff_fixup_addis): New function.
1643 (ppc_is_toc_sym): Handle XMC_TE.
1644 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1645 BFD_RELOC_PPC_TOC16_LO.
1646 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1647 (ppc_change_csect): Handle XMC_TE.
1648 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1649 storage class.
1650 (ppc_symbol_new_hook): Handle XMC_TE.
1651 (ppc_frob_symbol): Likewise.
1652 (ppc_fix_adjustable): Likewise.
1653 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1654 BFD_RELOC_PPC_TOC16_LO.
1655
1656 2021-03-10 Jan Beulich <jbeulich@suse.com>
1657
1658 * testsuite/gas/i386/avx512f-intel.d,
1659 testsuite/gas/i386/avx512f_vl-intel.d,
1660 testsuite/gas/i386/avx512pf-intel.d,
1661 testsuite/gas/i386/x86-64-avx512f-intel.d,
1662 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1663 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1664
1665 2021-03-10 Jan Beulich <jbeulich@suse.com>
1666
1667 * testsuite/gas/i386/prefetch.d,
1668 testsuite/gas/i386/prefetch-intel.d,
1669 testsuite/gas/i386/x86-64-prefetch.d,
1670 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1671 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1672 * testsuite/gas/i386/i386.exp: Run new test.
1673
1674 2021-03-09 Jan Beulich <jbeulich@suse.com>
1675
1676 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1677 (md_assemble): Replace use of repprefixok, islockable, and
1678 notrackprefixok.
1679 (i386_index_check): Replace use of repprefixok.
1680
1681 2021-03-09 Jan Beulich <jbeulich@suse.com>
1682
1683 * testsuite/gas/i386/noreg64.s: Add sysexit.
1684 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1685 sysexitl and sysexitq.
1686 * testsuite/gas/i386/noreg-intel64.l,
1687 testsuite/gas/i386/noreg64-data16.d,
1688 testsuite/gas/i386/noreg64-data16.e,
1689 testsuite/gas/i386/noreg64-rex64.d,
1690 testsuite/gas/i386/noreg64.d,
1691 testsuite/gas/i386/noreg64.l,
1692 testsuite/gas/i386/x86-64-sysenter-amd.d,
1693 testsuite/gas/i386/x86-64-sysenter-amd.l,
1694 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1695
1696 2021-02-26 Nick Clifton <nickc@redhat.com>
1697
1698 PR 27411
1699 * config/tc-arm.c (do_t_add_sub): Correct error message.
1700 * testsuite/gas/arm/pr27411.s: New test.
1701 * testsuite/gas/arm/pr27411.d: New test driver.
1702 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1703
1704 2021-02-24 Alan Modra <amodra@gmail.com>
1705
1706 PR 23691
1707 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1708 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1709 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1710 and use alongside TARGET_CPU_CFILES.
1711 (EXTRA_DIST): Update location of generated .c files.
1712 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1713 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1714 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1715 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1716 dependencies.
1717 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1718 (itbl-parse.c, itbl-parse.h): Tidy.
1719 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1720 * config/bfin-lex.l: Include config/bfin-parse.h.
1721 * configure.ac (extra_objects): Move object files corresponding
1722 to .y and .l files now in config/ to config/.
1723 * Makefile.in: Regenerate.
1724 * configure: Regenerate.
1725 * po/POTFILES.in: Regenerate.
1726
1727 2021-02-19 Nick Clifton <nickc@redhat.com>
1728
1729 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1730 misleading indentation.
1731
1732 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1733
1734 PR 27158
1735 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1736 (md_apply_fix): Likewise.
1737 (md_convert_frag_branch): Likewise.
1738 (validate_riscv_insn): Likewise. Also arranged operands, including
1739 added C5 and C6 operands, and removed unused Ci and C< operands.
1740 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1741 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1742 * testsuite/gas/riscv/insn.s: Likewise.
1743
1744 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1745
1746 * config/tc-riscv.c: Included cpu-riscv.h.
1747 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1748 (struct riscv_csr_extra): Likewise.
1749 (struct riscv_ext_version): Likewise.
1750 (ext_version_table): Moved from opcodes/riscv-opc.c.
1751 (default_isa_spec): Updated type to riscv_spec_class.
1752 (default_priv_spec): Likewise.
1753 (riscv_set_default_isa_spec): Updated.
1754 (init_ext_version_hash): Likewise.
1755 (riscv_init_csr_hash): Likewise, also fixed indent.
1756
1757 2021-02-17 Alan Modra <amodra@gmail.com>
1758
1759 * testsuite/gas/elf/section28.d: xfail h8300.
1760
1761 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1762
1763 PR gas/27412
1764 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1765 when checking incorrect section attributes.
1766 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1767 * testsuite/gas/elf/section28.d: New file.
1768 * testsuite/gas/elf/section28.s: Likewise.
1769 * testsuite/gas/elf/section29.d: Likewise.
1770 * testsuite/gas/elf/section29.s: Likewise.
1771
1772 2021-02-16 Jan Beulich <jbeulich@suse.com>
1773
1774 * testsuite/gas/i386/sse-check.s,
1775 testsuite/gas/i386/sse2avx.s,
1776 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1777 * testsuite/gas/i386/sse-check-error.l,
1778 testsuite/gas/i386/sse-check-warn.e,
1779 testsuite/gas/i386/sse-check.d,
1780 testsuite/gas/i386/sse2avx.d,
1781 testsuite/gas/i386/x86-64-sse-check-error.l,
1782 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1783 * testsuite/gas/i386/property-cvtpi2pd.s,
1784 testsuite/gas/i386/property-cvtpi2pd.d,
1785 testsuite/gas/i386/property-cvtpi2ps.s,
1786 testsuite/gas/i386/property-cvtpi2ps.d: New.
1787 * testsuite/gas/i386/i386.exp: Run new tests.
1788
1789 2021-02-16 Jan Beulich <jbeulich@suse.com>
1790
1791 * config/tc-i386.c (md_assemble): Use template rather than
1792 actuals when updating i.xstate.
1793 * testsuite/gas/i386/property-4.d,
1794 testsuite/gas/i386/property-5.d,
1795 testsuite/gas/i386/property-12.d: Adjust expectations.
1796
1797 2021-02-16 Jan Beulich <jbeulich@suse.com>
1798
1799 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1800 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1801 * testsuite/gas/i386/property-ldmxcsr.s,
1802 testsuite/gas/i386/property-ldmxcsr.d,
1803 testsuite/gas/i386/property-vldmxcsr.s,
1804 testsuite/gas/i386/property-vldmxcsr.d,
1805 testsuite/gas/i386/property-vzeroall.s,
1806 testsuite/gas/i386/property-vzeroall.d: New.
1807 * testsuite/gas/i386/i386.exp: Run new tests.
1808
1809 2021-02-16 Jan Beulich <jbeulich@suse.com>
1810
1811 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1812 tests to bitness independent section.
1813 * testsuite/gas/i386/x86-64-property-2.d,
1814 testsuite/gas/i386/x86-64-property-3.d,
1815 testsuite/gas/i386/x86-64-property-4.d,
1816 testsuite/gas/i386/x86-64-property-5.d,
1817 testsuite/gas/i386/x86-64-property-6.d,
1818 testsuite/gas/i386/x86-64-property-10.d,
1819 testsuite/gas/i386/x86-64-property-11.d,
1820 testsuite/gas/i386/x86-64-property-12.d,
1821 testsuite/gas/i386/x86-64-property-13.d: Delete.
1822
1823 2021-02-16 Jan Beulich <jbeulich@suse.com>
1824
1825 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1826 movdir.s.
1827 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1828
1829 2021-02-16 Alan Modra <amodra@gmail.com>
1830
1831 PR 27426
1832 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1833 in another place.
1834
1835 2021-02-16 Alan Modra <amodra@gmail.com>
1836
1837 * read.c (demand_copy_C_string): Really check for embedded zeros.
1838
1839 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
1840
1841 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1842 * doc/c-s390.texi: Document arch14 march option.
1843 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1844 * testsuite/gas/s390/zarch-arch14.d: New test.
1845 * testsuite/gas/s390/zarch-arch14.s: New test.
1846
1847 2021-02-12 Nick Clifton <nickc@redhat.com>
1848
1849 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
1850 following.
1851 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1852
1853 2021-02-12 Alan Modra <amodra@gmail.com>
1854
1855 * testsuite/gas/all/pr27381.err: Don't match source file name.
1856 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1857 * testsuite/gas/all/pr27384.err: Don't match source file name.
1858 Adjust line number.
1859 * testsuite/gas/all/pr27384.s: Add ".text" directive.
1860 * testsuite/gas/elf/pr27355.err: Don't match source file name.
1861
1862 2021-02-11 Alan Modra <amodra@gmail.com>
1863
1864 * NEWS: Mention arm-symbianelf removal.
1865
1866 2021-02-10 Nick Clifton <nickc@redhat.com>
1867
1868 * listing.c (buffer_line): Remove debugging code accidentally
1869 included with the fix for PR 27384.
1870
1871 2021-02-09 Nick Clifton <nickc@redhat.com>
1872
1873 PR 27381
1874 * read.c (s_incbin): Check that the file to be included is a
1875 regular, non-directory file.
1876 * testsuite/gas/all/pr27381.s: New test source file.
1877 * testsuite/gas/all/pr27381.d: New test control file.
1878 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1879 * testsuite/gas/all/gas.exp: Run the new test.
1880
1881 2021-02-09 Alan Modra <amodra@gmail.com>
1882
1883 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1884 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1885 support.
1886 * config/te-symbian.h: Delete.
1887 * configure.tgt: Remove arm-*-symbianelf*.
1888 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1889 target selection.
1890 * testsuite/gas/arm/arch4t.d: Likewise.
1891 * testsuite/gas/arm/got_prel.d: Likewise.
1892 * testsuite/gas/arm/mapdir.d: Likewise.
1893 * testsuite/gas/arm/mapmisc.d: Likewise.
1894 * testsuite/gas/arm/mapsecs.d: Likewise.
1895 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1896 * testsuite/gas/arm/thumb-eabi.d: Likewise.
1897 * testsuite/gas/arm/thumb.d: Likewise.
1898 * testsuite/gas/arm/thumbrel.d: Likewise.
1899 * Makefile.in: Regenerate.
1900 * po/POTFILES.in: Regenerate.
1901
1902 2021-02-09 Nick Clifton <nickc@redhat.com>
1903
1904 PR 27384
1905 * listing.c (listing_psize): Check the result of the width
1906 expression before assigning it to paper_width.
1907 * testsuite/gas/all/pr27384.s: New test source file.
1908 * testsuite/gas/all/pr27384.d: New test control file.
1909 * testsuite/gas/all/pr27384.err: Expected errors from new test.
1910 * testsuite/gas/all/gas.exp: Run the new test.
1911
1912 2021-02-09 Nick Clifton <nickc@redhat.com>
1913
1914 PR 27355
1915 * testsuite/gas/elf/pr27355.s: New test source file.
1916 * testsuite/gas/elf/pr27355.d: New test control file.
1917 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1918 * testsuite/gas/elf/elf.exp: Run the new test.
1919
1920 2021-02-08 Mike Frysinger <vapier@gentoo.org>
1921
1922 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1923 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
1924 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1925 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1926 cc2_codes, cc3_codes, status_bits, and misc_symbols.
1927
1928 2021-02-08 Nick Clifton <nickc@redhat.com>
1929
1930 PR 27355
1931 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1932 if it has not already been created.
1933
1934 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1935
1936 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1937 INSN_CLASS_ZB*.
1938 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1939 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1940 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1941
1942 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
1943
1944 * doc/c-s390.texi: Document vector instruction formats.
1945
1946 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1947
1948 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1949
1950 2021-02-01 Alan Modra <amodra@gmail.com>
1951
1952 PR 27283
1953 * config/tc-alpha.c (insert_operand): Delete dead code.
1954
1955 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1956
1957 PR gas/27243
1958 * config/tc-nios2.c (md_begin): Don't disable relaxation with
1959 --gdwarf-N.
1960 * testsuite/gas/nios2/relax.d: New file.
1961 * testsuite/gas/nios2/relax.s: Likewise.
1962
1963 2021-01-26 Alan Modra <amodra@gmail.com>
1964
1965 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1966 notarget all except hppa. Comment.
1967 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1968 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
1969 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1970 * testsuite/gas/all/sleb128-7.d: Likewise.
1971 * testsuite/gas/all/sleb128-9.d: Likewise.
1972 * testsuite/gas/elf/bignums.d: Likewise.
1973 * testsuite/gas/elf/group0c.d: Likewise.
1974 * testsuite/gas/elf/group1a.d: Likewise.
1975 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1976 * testsuite/gas/elf/section15.d: Likewise.
1977 * testsuite/gas/elf/section4.d: Likewise.
1978 * testsuite/gas/elf/section7.d: Likewise.
1979 * testsuite/gas/macros/irp.d: Likewise.
1980 * testsuite/gas/macros/repeat.d: Likewise.
1981 * testsuite/gas/macros/rept.d: Likewise.
1982 * testsuite/gas/macros/test2.d: Likewise.
1983 * testsuite/gas/macros/vararg.d: Likewise.
1984 * testsuite/gas/all/string.d: Use xfail rather than skip.
1985 * testsuite/gas/elf/missing-build-notes.d: Likewise.
1986 * testsuite/gas/elf/section0.d: Likewise.
1987 * testsuite/gas/elf/section1.d: Likewise.
1988 * testsuite/gas/elf/section10.d: Likewise.
1989 * testsuite/gas/elf/section11.d: Likewise.
1990 * testsuite/gas/elf/section6.d: Likewise.
1991 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1992 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1993 * testsuite/gas/macros/test3.d: Don't notarget nds32.
1994
1995 2021-01-26 Alan Modra <amodra@gmail.com>
1996
1997 * testsuite/gas/all/byte.d,
1998 * testsuite/gas/all/byte.l,
1999 * testsuite/gas/all/byte.s: Delete.
2000 * testsuite/gas/all/gas.exp: Don't run byte test.
2001
2002 2021-01-26 Alan Modra <amodra@gmail.com>
2003
2004 PR 27282
2005 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
2006 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
2007
2008 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 PR gas/27228
2011 * testsuite/gas/elf/elf.exp: Run pr27228.
2012 * testsuite/gas/elf/pr27228.d: New file.
2013 * testsuite/gas/elf/pr27228.s: Likewise.
2014
2015 2021-01-24 Alan Modra <amodra@gmail.com>
2016
2017 PR 27228
2018 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
2019 is defined.
2020
2021 2021-01-21 Alan Modra <amodra@gmail.com>
2022
2023 PR 27221
2024 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
2025 line number info when gas is generating it.
2026 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
2027 * testsuite/gas/m68hc11/indexed12.d: Likewise.
2028 * testsuite/gas/elf/elf.exp: Don't run warn-2.
2029 * gas/testsuite/gas/elf/warn-2.s: Delete.
2030
2031 2021-01-21 Alan Modra <amodra@gmail.com>
2032
2033 PR 27218
2034 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
2035 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
2036 error for negative file numbers.
2037
2038 2021-01-20 Alan Modra <amodra@gmail.com>
2039
2040 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
2041 * testsuite/gas/ppc/test1elf32.d: Likewise.
2042 * testsuite/gas/ppc/test1elf64.d: Likewise.
2043
2044 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 PR gas/27195
2047 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
2048 needed.
2049 (dwarf2_directive_filename): Likewise.
2050 (dwarf2_directive_loc): Likewise.
2051 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
2052 * testsuite/gas/lns/lns-diag-1.l: Remove the
2053 "Error: file number less than one" errors.
2054
2055 2021-01-18 Alan Modra <amodra@gmail.com>
2056
2057 PR 27198
2058 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
2059 * testsuite/gas/i386/pr27198.d,
2060 * gas/testsuite/gas/i386/pr27198.err,
2061 * gas/testsuite/gas/i386/pr27198.s: New test.
2062 * gas/testsuite/gas/i386/i386.exp: Run it.
2063
2064 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2065
2066 * config/tc-riscv.c: Indent and GNU coding standards tidy,
2067 also aligned the code.
2068 * config/tc-riscv.h: Likewise.
2069
2070 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2071
2072 * config/tc-riscv.c: Error and warning messages tidy.
2073 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
2074 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2075 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
2076 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2077 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2078 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2079 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2080
2081 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2082
2083 * config/tc-riscv.c: Comments tidy and improvement. Also update
2084 comment "fallthru" to "Fall through" that end with a period and
2085 two spaces.
2086
2087 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2088
2089 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
2090 Delete warning that these are only available with ELF targets.
2091 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
2092 * read.c (potable): ... here.
2093
2094 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2095
2096 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
2097 * Makefile.in: Regenerated.
2098
2099 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2100
2101 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
2102 (parse_int): Mark char_bag const.
2103
2104 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
2105
2106 PR gas/27178
2107 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
2108 Don't generate GOT_symbol for PLT relocations.
2109 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
2110 * testsuite/gas/i386/no-got.d: New file.
2111 * testsuite/gas/i386/no-got.s: Likewise.
2112 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
2113 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
2114
2115 2021-01-13 Alan Modra <amodra@gmail.com>
2116
2117 * Makefile.in: Regenerate.
2118 * Makefile.in: Regenerate.
2119
2120 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2121
2122 PR binutils/26792
2123 * configure.ac: Use GNU_MAKE_JOBSERVER.
2124 * aclocal.m4: Regenerated.
2125 * configure: Likewise.
2126
2127 2021-01-12 Nick Clifton <nickc@redhat.com>
2128
2129 * po/fr.po: Updated French translation.
2130
2131 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2132
2133 PR ld/27173
2134 * configure: Regenerated.
2135
2136 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2137
2138 * NEWS: Remove CSRE.
2139 * config/tc-aarch64.c (parse_csr_operand): Delete.
2140 (parse_operands): Delete handling of
2141 AARCH64_OPND_CSRE_CSR.
2142 (aarch64_features): Remove csre.
2143 * doc/c-aarch64.texi: Remove CSRE.
2144 * testsuite/gas/aarch64/csre.d: Delete.
2145 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
2146 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
2147 * testsuite/gas/aarch64/csre_csr.s: Likewise.
2148 * testsuite/gas/aarch64/csre_csr.d: Likewise.
2149 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
2150 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
2151 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
2152
2153 2021-01-11 Nick Clifton <nickc@redhat.com>
2154
2155 * po/uk.po: Updated Ukranian translation.
2156
2157 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2158
2159 * configure: Regenerated.
2160
2161 2021-01-09 Nick Clifton <nickc@redhat.com>
2162
2163 * configure: Regenerate.
2164 * po/gas.pot: Regenerate.
2165
2166 2021-01-09 Nick Clifton <nickc@redhat.com>
2167
2168 * 2.36 release branch crated.
2169
2170 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
2171
2172 * testsuite/gas/ppc/rop-checks.d,
2173 * testsuite/gas/ppc/rop-checks.l,
2174 * testsuite/gas/ppc/rop-checks.s,
2175 * testsuite/gas/ppc/rop.d,
2176 * testsuite/gas/ppc/rop.s: New tests.
2177 * testsuite/gas/ppc/ppc.exp: Run them.
2178
2179 2021-01-09 Alan Modra <amodra@gmail.com>
2180
2181 * configure: Regenerate.
2182
2183 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2184
2185 * configure: Regenerate.
2186
2187 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2188
2189 PR 27109
2190 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
2191 section symbol.
2192 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
2193 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
2194 on the section symbol.
2195 (set_symtab): Don't generate unused section symbols.
2196 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
2197 on the section symbol.
2198 * config/obj-elf.c (elf_adjust_symtab): Call
2199 symbol_mark_used_in_reloc on the group signature symbol.
2200 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
2201 from expected output.
2202 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
2203 is_elf_unused_section_symbols.
2204 * testsuite/gas/elf/section2.e: Updated.
2205 * testsuite/gas/elf/section2.e-unused: New file.
2206 * testsuite/gas/elf/symver.d: Remove unused section symbols.
2207 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
2208 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
2209 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
2210 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
2211 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
2212 * testsuite/gas/i386/size-1.d: Likewise.
2213 * testsuite/gas/i386/size-3.d: Likewise.
2214 * testsuite/gas/i386/svr4.d: Likewise.
2215 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
2216 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
2217 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
2218 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
2219
2220 2021-01-07 Philipp Tomsich <prt@gnu.org>
2221
2222 * config/tc-riscv.c (riscv_multi_subset_supports): Added
2223 INSN_CLASS_ZIHINTPAUSE.
2224 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
2225 the pause hint instruction.
2226 * testsuite/gas/riscv/pause.s: Likewise.
2227
2228 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
2229 Jim Wilson <jimw@sifive.com>
2230 Andrew Waterman <andrew@sifive.com>
2231 Maxim Blinov <maxim.blinov@embecosm.com>
2232 Kito Cheng <kito.cheng@sifive.com>
2233 Nelson Chu <nelson.chu@sifive.com>
2234
2235 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
2236 (riscv_get_default_ext_version): Do not check the default_isa_spec when
2237 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
2238 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
2239 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
2240 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
2241
2242 2021-01-06 Alan Modra <amodra@gmail.com>
2243
2244 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
2245
2246 2021-01-06 Alan Modra <amodra@gmail.com>
2247
2248 * testsuite/gas/macros/app1.d: xfail tic30.
2249 * testsuite/gas/macros/app2.d: Likewise.
2250 * testsuite/gas/macros/app3.d: Likewise.
2251 * testsuite/gas/macros/app4.d: Likewise.
2252
2253 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2254
2255 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
2256 * doc/c-riscv.texi: Likewise.
2257
2258 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2259
2260 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
2261 to littleriscv.
2262 * testsuite/gas/riscv/li64.d: Likewise.
2263 * testsuite/gas/riscv/lla32.d: Likewise.
2264 * testsuite/gas/riscv/lla64.d: Likewise.
2265 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
2266 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
2267 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
2268 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
2269 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
2270 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
2271 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
2272
2273 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2274
2275 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
2276 elf32-bigriscv.
2277 (install_insn): Always write instructions as little endian.
2278 (riscv_make_nops): Likewise.
2279 (md_convert_frag_branch): Likewise.
2280 (md_number_to_chars): Write data in target endianness.
2281 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
2282 (md_parse_option): Handle the endian options.
2283 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
2284 already defined.
2285 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
2286
2287 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2288
2289 PR ld/26256
2290 * config/obj-elf.c (obj_elf_change_section): Also filter out
2291 SHF_LINK_ORDER.
2292
2293 2021-01-04 Alan Modra <amodra@gmail.com>
2294
2295 PR 27102
2296 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
2297 message and register symbol error message.
2298
2299 2021-01-04 Alan Modra <amodra@gmail.com>
2300
2301 PR 27101
2302 * read.c (s_align): Use a large enough type for "align" to hold
2303 the result of get_absolute_expression.
2304
2305 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2306
2307 * config/tc-i386.c: Correct comment spelling.
2308 * config/tc-riscv.c: Likewise.
2309 * config/tc-s390.c: Correct comment grammar.
2310 * doc/c-i386.texi: Correct spelling.
2311 * doc/c-s390.texi: Correct grammar.
2312
2313 2021-01-01 Alan Modra <amodra@gmail.com>
2314
2315 Update year range in copyright notice of all files.
2316
2317 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
2318
2319 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
2320
2321 For older changes see ChangeLog-2020
2322 \f
2323 Copyright (C) 2021 Free Software Foundation, Inc.
2324
2325 Copying and distribution of this file, with or without modification,
2326 are permitted in any medium without royalty provided the copyright
2327 notice and this notice are preserved.
2328
2329 Local Variables:
2330 mode: change-log
2331 left-margin: 8
2332 fill-column: 74
2333 version-control: never
2334 End:
This page took 0.075867 seconds and 4 git commands to generate.