Fix binary compatibility between GCC and the TI compiler for the PRU target.
[external/binutils.git] / gas / ChangeLog
1 2018-05-09  Dimitar Dimitrov  <dimitar@dinux.eu>
2
3         * config/tc-pru.c (md_apply_fix): Make LDI32 relocation conformant
4         to TI ABI.
5         (pru_assemble_arg_i): Likewise.
6         (output_insn_ldi32): Likewise.
7         * testsuite/gas/pru/ldi.d: Update test for the now fixed LDI32.
8         * gas/config/tc-pru.c (pru_assemble_arg_b): Check imm8 operand range.
9         * gas/testsuite/gas/pru/illegal2.l: New test.
10         * gas/testsuite/gas/pru/illegal2.s: New test.
11         * gas/testsuite/gas/pru/pru.exp: Register new illegal2 test.
12
13 2018-05-08  Jim Wilson  <jimw@sifive.com>
14
15         * testsuite/gas/riscv/c-zero-imm.d: Add more tests.
16         * testsuite/gas/riscv/c-zero-imm.s: Likewise.
17         * testsuite/gas/riscv/c-zero-reg.d: Fix typo in test.  Add disabled
18         future test for RV128 support.
19         * testsuite/gas/riscv/c-zero-reg.s: Likewise.
20
21 2018-05-07  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
22             H.J. Lu  <hongjiu.lu@intel.com>
23
24         * config/tc-i386.c (cpu_arch): Add .movdir, .movdir64b.
25         (cpu_noarch): Likewise.
26         (process_suffix): Add check for register size.
27         * doc/c-i386.texi: Document movdiri, movdir64b.
28         * testsuite/gas/i386/i386.exp: Run MOVDIR{I,64B} tests.
29         * testsuite/gas/i386/movdir-intel.d: New file.
30         * testsuite/gas/i386/movdir.d: Likewise.
31         * testsuite/gas/i386/movdir.s: Likewise.
32         * testsuite/gas/i386/movdir64b-reg.s: Likewise.
33         * testsuite/gas/i386/movdir64b-reg.l: Likewise.
34         * testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
35         * testsuite/gas/i386/x86-64-movdir.d: Likewise.
36         * testsuite/gas/i386/x86-64-movdir.s: Likewise.
37         * testsuite/gas/i386/x86-64-movdir64b-reg.s: Likewise.
38         * testsuite/gas/i386/x86-64-movdir64b-reg.l: Likewise.
39
40 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
41
42         * config/tc-i386.c (process_suffix): Check addrprefixopreg
43         instead of addrprefixop0.
44
45 2018-05-07  Peter Bergner  <bergner@vnet.ibm.com.com>
46
47         * config/tc-ppc.c (ppc_setup_opcodes) <powerpc_opcodes>: Rewrite code
48         to dump the entire opcode table.
49         (ppc_setup_opcodes) <spe2_opcodes>: Likewise.
50         (ppc_setup_opcodes) <vle_opcodes>: Likewise.  Fix calculation of
51         opcode index.
52
53 2018-05-06  H.J. Lu  <hongjiu.lu@intel.com>
54
55         * testsuite/gas/i386/xmmhi32.d: Also allow dir32 relocation.
56
57 2018-05-06  H.J. Lu  <hongjiu.lu@intel.com>
58
59         * testsuite/gas/i386/avx512f-plain.s: Append ".p2align 4,0".
60         * testsuite/gas/i386/avx512vl-plain.s: Likewise.
61         * testsuite/gas/i386/bnd.s: Likewise.
62         * testsuite/gas/i386/stN.s: Likewise.
63         * testsuite/gas/i386/avx512f-plain.l: Updated.
64         * testsuite/gas/i386/avx512vl-plain.l: Likewise.
65         * testsuite/gas/i386/bnd.l: Likewise.
66         * testsuite/gas/i386/stN.l: Likewise.
67
68 2018-05-04  Alan Modra  <amodra@gmail.com>
69
70         * config/obj-evax.c (shorten_identifier): Use memcpy in place
71         of strncpy.
72         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Ensure
73         segname and sectname fields are NUL terminated.
74
75 2018-05-01  Nick Clifton  <nickc@redhat.com>
76
77         * po/es.po: Updated Spanish translation.
78
79 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
80
81         * testsuite/lib/gas-defs.exp (run_dump_test): Use `match_target'
82         in place of `istarget' for matching with `target', `not-target',
83         `skip' and `not-skip' options.
84
85 2018-04-26  Nick Clifton  <nickc@redhat.com>
86
87         * as.c (flag_generate_build_notes): New variable.
88         (show_usage): Add entry for --generate-missing-build-notes.
89         (parse_args): Parse --generate-missing-build-notes.
90         * as.h: Export flag_generate_build_notes.
91         * symbols.c (save_symbol_name): Ensure that the name parameter is
92         not NULL.
93         * write.c (create_obj_attrs_section): Reformat.
94         (create_note_reloc): New function - creates a relocation for a
95         field in a GNU Build attribute note.
96         (maybe_generate_build_notes): New function - created GNU Build
97         attribute notes if none are present in the output file.
98         (write_object_file): Call maybe_generate_build_notes.
99         * configure.ac (--enable-generate-build-notes): New option.
100         * NEWS: Announce the new feature.
101         * doc/as.textinfo: Document the new option.
102         * config.in: Regenerate.
103         * configure: Regenerate.
104
105 2018-04-26  Jan Beulich  <jbeulich@suse.com>
106
107         * config/tc-i386.c (check_VecOperands): Add AVX512VL check. Set
108         .baseindex.
109         (match_template): Don't set suffix_check when Intel syntax and
110         broadcast. Make check_register a per-operand bitmap.
111
112 2018-04-26  Jan Beulich  <jbeulich@suse.com>
113
114         * config/tc-i386.c (optimize_encoding): Check for zeroing
115         masking.
116         * testsuite/gas/i386/optimize-1.d,
117         testsuite/gas/i386/optimize-4.d,
118         testsuite/gas/i386/optimize-5.d,
119         testsuite/gas/i386/x86-64-optimize-2.d,
120         testsuite/gas/i386/x86-64-optimize-5.d,
121         testsuite/gas/i386/x86-64-optimize-6.d: Adjust expectations.
122
123 2018-04-26  Jan Beulich  <jbeulich@suse.com>
124
125         * config/tc-i386.c (parse_real_register): Check .cpuvrex before
126         recording EVEX encoding. Don't check previously specified
127         encoding.
128         * testsuite/gas/i386/xmmhi32.s: Add {x,y,z}mm{16,24} cases.
129         * testsuite/gas/i386/xmmhi32.d: Adjust expectations.
130         * testsuite/gas/i386/xmmhi64.s, testsuite/gas/i386/xmmhi64.d:
131         New.
132         * testsuite/gas/i386/i386.exp: Run new test.
133
134 2018-04-26  Jan Beulich  <jbeulich@suse.com>
135
136         * testsuite/gas/i386/xsave.s: Add AVX, LWP, MPX, and PKU
137         dependency tests.
138         * testsuite/gas/i386/xsave.d,
139         testsuite/gas/i386/xsave-intel.d: Adjust expecations.
140
141 2018-04-26  Jan Beulich  <jbeulich@suse.com>
142
143         * config/tc-i386.c (parse_real_register): Re-write {,x,y,z}mm
144         and mask register handling.
145         * testsuite/gas/i386/avx512f-ymm.s, testsuite/gas/i386/avx512f-ymm.d,
146         testsuite/gas/i386/xmmhi32.s, testsuite/gas/i386/xmmhi32.d: New.
147         * testsuite/gas/i386/i386.exp: Run new tests.
148
149 2018-04-26  Jan Beulich  <jbeulich@suse.com>
150
151         * config/tc-i386.c (parse_real_register): Check bnd<N>
152         registers.
153         * testsuite/gas/i386/bnd.s, testsuite/gas/i386/bnd.l: New.
154         * testsuite/gas/i386/i386.exp: Run new test.
155
156 2018-04-26  Jan Beulich  <jbeulich@suse.com>
157
158         * config/tc-i386.c (parse_real_register): Check FPU register
159         earlier.
160         * testsuite/gas/i386/fpu.s, testsuite/gas/i386/fpu.l,
161         testsuite/gas/i386/stN.s, testsuite/gas/i386/stN.l: New.
162         * testsuite/gas/i386/i386.exp: Run new tests.
163
164 2018-04-26  Jan Beulich  <jbeulich@suse.com>
165
166         * config/tc-i386.c (build_modrm_byte): Use tabs for indentation.
167
168 2018-04-26  Jan Beulich  <jbeulich@suse.com>
169
170         * config/tc-i386.c (build_modrm_byte): Move and fold
171         source/reg_slot calculations.
172
173 2018-04-26  Jan Beulich  <jbeulich@suse.com>
174
175         * config/tc-i386.c (build_modrm_byte): Drop .veximmext uses.
176         Move part of the remaining assertion.
177
178 2018-04-26  Jan Beulich  <jbeulich@suse.com>
179
180         * config/tc-i386.c (build_modrm_byte): Extend assertion in
181         vex_3_sources handling to cover more cases.
182
183 2018-04-26  Jan Beulich  <jbeulich@suse.com>
184
185         * config/tc-i386.c (build_modrm_byte): Drop code dealing with
186         .veximmext and .immext set at the same time. Drop code dealing
187         with .cpufma when .vexsources == VEX3SOURCES.
188
189 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
190         Mickaël Guêné  <mickael.guene@st.com>
191
192         * config/tc-arm.c (reloc_names): Add TLSGD_FDPIC, TLSLDM_FDPIC,
193         GOTTPOFF_FDIC relocations.
194         (md_apply_fix): Handle the new TLS FDPIC relocations.
195         (tc_gen_reloc): Likewise.
196         (arm_fix_adjustable): Likewise.
197
198 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
199         Mickaël Guêné  <mickael.guene@st.com>
200
201         * config/tc-arm.c (reloc_names): Add gotfuncdesc, gotofffuncdesc,
202         funcdesc.
203         (md_apply_fix): Support the new relocations.
204         (tc_gen_reloc): Likewise.
205         * testsuite/gas/arm/reloc-fdpic.d: New.
206         * testsuite/gas/arm/reloc-fdpic.s: New.
207
208 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
209         Mickaël Guêné  <mickael.guene@st.com>
210
211         * config/tc-arm.c (arm_fdpic): New.
212         (elf32_arm_target_format): Support FDPIC.
213         (OPTION_FDPIC): New.
214         (md_longopts): Support FDPIC.
215         (md_parse_option): Likewise.
216         (md_show_usage): Likewise.
217
218 2018-04-25  Tamar Christina  <tamar.christina@arm.com>
219
220         * testsuite/gas/aarch64/rdma.s: Test for larger register numbers.
221         * testsuite/gas/aarch64/rdma.d: Update results.
222         * testsuite/gas/aarch64/rdma-directive.d: Likewise.
223
224 2018-04-25  Nick Clifton  <nickc@redhat.com>
225
226         * po/es.po: Updated Spanish translation.
227
228 2018-04-25  Alan Modra  <amodra@gmail.com>
229
230         * Makefile.am: Remove arm-aout and arm-coff support.
231         * config/tc-arm.c: Likewise.
232         * config/tc-arm.h: Likewise.
233         * configure.tgt: Likewise.
234         * testsuite/gas/aarch64/codealign.d: Likewise.
235         * testsuite/gas/aarch64/mapping.d: Likewise.
236         * testsuite/gas/aarch64/mapping2.d: Likewise.
237         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: Likewise.
238         * testsuite/gas/arm/adds-thumb1-reloc-local.d: Likewise.
239         * testsuite/gas/arm/addsw-bad.d: Likewise.
240         * testsuite/gas/arm/align.d: Likewise.
241         * testsuite/gas/arm/align64.d: Likewise.
242         * testsuite/gas/arm/arch7.d: Likewise.
243         * testsuite/gas/arm/arch7a-mp.d: Likewise.
244         * testsuite/gas/arm/arch7em.d: Likewise.
245         * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
246         * testsuite/gas/arm/arm-it-auto-2.d: Likewise.
247         * testsuite/gas/arm/arm-it-auto-3.d: Likewise.
248         * testsuite/gas/arm/arm-it-auto.d: Likewise.
249         * testsuite/gas/arm/arm-it-bad-2.d: Likewise.
250         * testsuite/gas/arm/arm-it.d: Likewise.
251         * testsuite/gas/arm/armv7e-m+fpv5-d16.d: Likewise.
252         * testsuite/gas/arm/armv7e-m+fpv5-sp-d16.d: Likewise.
253         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: Likewise.
254         * testsuite/gas/arm/armv8-2-fp16-scalar.d: Likewise.
255         * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise.
256         * testsuite/gas/arm/armv8-2-fp16-simd.d: Likewise.
257         * testsuite/gas/arm/armv8-a+crypto.d: Likewise.
258         * testsuite/gas/arm/armv8-a+fp.d: Likewise.
259         * testsuite/gas/arm/armv8-a+ras.d: Likewise.
260         * testsuite/gas/arm/armv8-a+rdma-warning.d: Likewise.
261         * testsuite/gas/arm/armv8-a+rdma.d: Likewise.
262         * testsuite/gas/arm/armv8-a+simd.d: Likewise.
263         * testsuite/gas/arm/armv8-a-barrier-thumb.d: Likewise.
264         * testsuite/gas/arm/armv8-r+fp.d: Likewise.
265         * testsuite/gas/arm/armv8-r+simd.d: Likewise.
266         * testsuite/gas/arm/armv8-r-barrier-thumb.d: Likewise.
267         * testsuite/gas/arm/armv8_1-a+simd.d: Likewise.
268         * testsuite/gas/arm/armv8_2+rdma.d: Likewise.
269         * testsuite/gas/arm/armv8_2-a.d: Likewise.
270         * testsuite/gas/arm/armv8_3-a-fp.d: Likewise.
271         * testsuite/gas/arm/armv8_3-a-simd.d: Likewise.
272         * testsuite/gas/arm/armv8a-automatic-hlt.d: Likewise.
273         * testsuite/gas/arm/armv8a-automatic-lda.d: Likewise.
274         * testsuite/gas/arm/attr-syntax.d: Likewise.
275         * testsuite/gas/arm/automatic-bw.d: Likewise.
276         * testsuite/gas/arm/automatic-cbz.d: Likewise.
277         * testsuite/gas/arm/automatic-clrex.d: Likewise.
278         * testsuite/gas/arm/automatic-lda.d: Likewise.
279         * testsuite/gas/arm/automatic-ldaex.d: Likewise.
280         * testsuite/gas/arm/automatic-ldaexb.d: Likewise.
281         * testsuite/gas/arm/automatic-ldrex.d: Likewise.
282         * testsuite/gas/arm/automatic-ldrexd.d: Likewise.
283         * testsuite/gas/arm/automatic-movw.d: Likewise.
284         * testsuite/gas/arm/automatic-sdiv.d: Likewise.
285         * testsuite/gas/arm/automatic-strexb.d: Likewise.
286         * testsuite/gas/arm/barrier-bad-thumb.d: Likewise.
287         * testsuite/gas/arm/barrier-bad.d: Likewise.
288         * testsuite/gas/arm/barrier-thumb.d: Likewise.
289         * testsuite/gas/arm/barrier.d: Likewise.
290         * testsuite/gas/arm/bignum1.d: Likewise.
291         * testsuite/gas/arm/blx-bad.d: Likewise.
292         * testsuite/gas/arm/blx-bl-convert.d: Likewise.
293         * testsuite/gas/arm/blx-local.s: Likewise.
294         * testsuite/gas/arm/crc32-armv8-a-bad.d: Likewise.
295         * testsuite/gas/arm/crc32-armv8-a.d: Likewise.
296         * testsuite/gas/arm/crc32-armv8-r-bad.d: Likewise.
297         * testsuite/gas/arm/crc32-armv8-r.d: Likewise.
298         * testsuite/gas/arm/dis-data.d: Likewise.
299         * testsuite/gas/arm/dis-data2.d: Likewise.
300         * testsuite/gas/arm/dis-data3.d: Likewise.
301         * testsuite/gas/arm/eabi_attr_1.d: Likewise.
302         * testsuite/gas/arm/fp-save.d: Likewise.
303         * testsuite/gas/arm/group-reloc-alu-encoding-bad.d: Likewise.
304         * testsuite/gas/arm/group-reloc-alu-parsing-bad.d: Likewise.
305         * testsuite/gas/arm/group-reloc-alu.d: Likewise.
306         * testsuite/gas/arm/group-reloc-ldc-encoding-bad.d: Likewise.
307         * testsuite/gas/arm/group-reloc-ldc-parsing-bad.d: Likewise.
308         * testsuite/gas/arm/group-reloc-ldc.d: Likewise.
309         * testsuite/gas/arm/group-reloc-ldr-encoding-bad.d: Likewise.
310         * testsuite/gas/arm/group-reloc-ldr-parsing-bad.d: Likewise.
311         * testsuite/gas/arm/group-reloc-ldr.d: Likewise.
312         * testsuite/gas/arm/group-reloc-ldrs-encoding-bad.d: Likewise.
313         * testsuite/gas/arm/group-reloc-ldrs-parsing-bad.d: Likewise.
314         * testsuite/gas/arm/group-reloc-ldrs.d: Likewise.
315         * testsuite/gas/arm/insn-error-a.d: Likewise.
316         * testsuite/gas/arm/insn-error-t.d: Likewise.
317         * testsuite/gas/arm/inst-po-2.d: Likewise.
318         * testsuite/gas/arm/inst-po-3.d: Likewise.
319         * testsuite/gas/arm/inst-po-be.d: Likewise.
320         * testsuite/gas/arm/inst-po.d: Likewise.
321         * testsuite/gas/arm/ldconst.d: Likewise.
322         * testsuite/gas/arm/ldgesb-bad.d: Likewise.
323         * testsuite/gas/arm/ldgesh-bad.d: Likewise.
324         * testsuite/gas/arm/ldst-offset0.d: Likewise.
325         * testsuite/gas/arm/local_function.d: Likewise.
326         * testsuite/gas/arm/local_label_coff.d: Likewise.
327         * testsuite/gas/arm/local_label_elf.d: Likewise.
328         * testsuite/gas/arm/mapping.d: Likewise.
329         * testsuite/gas/arm/mapping2.d: Likewise.
330         * testsuite/gas/arm/mapping3.d: Likewise.
331         * testsuite/gas/arm/mapping4.d: Likewise.
332         * testsuite/gas/arm/mapshort-elf.d: Likewise.
333         * testsuite/gas/arm/mask_1-armv8-a.d: Likewise.
334         * testsuite/gas/arm/mask_1-armv8-r.d: Likewise.
335         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: Likewise.
336         * testsuite/gas/arm/movs-thumb1-reloc-local.d: Likewise.
337         * testsuite/gas/arm/movw-local.d: Likewise.
338         * testsuite/gas/arm/mrs-msr-thumb-v6t2.d: Likewise.
339         * testsuite/gas/arm/mrs-msr-thumb-v7-m.d: Likewise.
340         * testsuite/gas/arm/mrs-msr-thumb-v7e-m.d: Likewise.
341         * testsuite/gas/arm/msr-imm-bad.d: Likewise.
342         * testsuite/gas/arm/msr-reg-bad.d: Likewise.
343         * testsuite/gas/arm/msr-reg-thumb.d: Likewise.
344         * testsuite/gas/arm/nomapping.d: Likewise.
345         * testsuite/gas/arm/nops.d: Likewise.
346         * testsuite/gas/arm/pic.d: Likewise.
347         * testsuite/gas/arm/pinsn.d: Likewise.
348         * testsuite/gas/arm/plt-1.d: Likewise.
349         * testsuite/gas/arm/pr21458.d: Likewise.
350         * testsuite/gas/arm/pr9722.d: Likewise.
351         * testsuite/gas/arm/strex-t.d: Likewise.
352         * testsuite/gas/arm/t2-branch-global.d: Likewise.
353         * testsuite/gas/arm/target-reloc-1.d: Likewise.
354         * testsuite/gas/arm/thumb-b-bad.d: Likewise.
355         * testsuite/gas/arm/thumb-w-bad.d: Likewise.
356         * testsuite/gas/arm/thumb-w-good.d: Likewise.
357         * testsuite/gas/arm/thumb.d: Likewise.
358         * testsuite/gas/arm/thumb2_it.d: Likewise.
359         * testsuite/gas/arm/thumb2_it_auto.d: Likewise.
360         * testsuite/gas/arm/thumb2_it_search.d: Likewise.
361         * testsuite/gas/arm/thumb2_ldmstm.d: Likewise.
362         * testsuite/gas/arm/thumb2_ldr_immediate_armv6.d: Likewise.
363         * testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.d: Likewise.
364         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Likewise.
365         * testsuite/gas/arm/thumb2_pool.d: Likewise.
366         * testsuite/gas/arm/thumb2_vpool.d: Likewise.
367         * testsuite/gas/arm/thumb2_vpool_be.d: Likewise.
368         * testsuite/gas/arm/thumb32.d: Likewise.
369         * testsuite/gas/arm/thumbver.d: Likewise.
370         * testsuite/gas/arm/tls.d: Likewise.
371         * testsuite/gas/arm/tls_vxworks.d: Likewise.
372         * testsuite/gas/arm/undefined.d: Likewise.
373         * testsuite/gas/arm/undefined_coff.d: Likewise.
374         * testsuite/gas/arm/unwind.d: Likewise.
375         * testsuite/gas/arm/v4bx.d: Likewise.
376         * testsuite/gas/arm/vcmp-noprefix-imm.d: Likewise.
377         * testsuite/gas/arm/vcvt-bad.d: Likewise.
378         * testsuite/gas/arm/vfma1.d: Likewise.
379         * testsuite/gas/arm/vldconst.d: Likewise.
380         * testsuite/gas/arm/vldconst_be.d: Likewise.
381         * testsuite/gas/arm/vldm-arm.d: Likewise.
382         * testsuite/gas/arm/vldr.d: Likewise.
383         * testsuite/gas/arm/weakdef-1.d: Likewise.
384         * testsuite/gas/arm/weakdef-2.d: Likewise.
385         * config/te-riscix.h: Delete.
386         * Makefile.in: Regenerate.
387         * po/POTFILES.in: Regenerate.
388
389 2018-04-23  Alan Modra  <amodra@gmail.com>
390
391         * stabs.c (generate_asm_file): Use memcpy rather than strncpy.
392         Remove call to strlen inside loop.
393         * config/tc-cr16.c (getreg_image): Warning fix.
394         * config/tc-crx.c (getreg_image): Warning fix.
395
396 2018-04-20  Kito Cheng  <kito.cheng@gmail.com>
397
398         * config/tc-riscv.c (options): Add OPTION_RELAX and
399         OPTION_NO_RELAX.
400         (md_longopts): New option -mrelax and -mno-relax.
401         (md_parse_option): Handle -mrelax and -mno-relax.
402         * doc/c-riscv.texi: Document for -mrelax and -mno-relax.
403         * testsuite/gas/riscv/no-relax-reloc.d: New.
404         * testsuite/gas/riscv/no-relax-reloc.s: New.
405         * testsuite/gas/riscv/relax-reloc.d: New.
406         * testsuite/gas/riscv/relax-reloc.s: New.
407
408 2018-04-20  Nick Clifton  <nickc@redhat.com>
409
410         * po/es.po: Updated Spanish translation.
411
412 2018-04-18  Alan Modra  <amodra@gmail.com>
413
414         * Makefile.am: Remove support for assorted i386 aout and coff targets.
415         * config/obj-elf.c: Likewise.
416         * config/tc-i386.h: Likewise.
417         * configure.ac: Likewise.
418         * configure.tgt: Likewise.
419         * config/te-dynix.h: Delete.
420         * config/te-i386aix.h: Delete.
421         * config/te-mach.h: Delete.
422         * Makefile.in: Regenerate.
423         * config.in: Regenerate.
424         * configure: Regenerate.
425         * po/POTFILES.in: Regenerate.
426
427 2018-04-18  Alan Modra  <amodra@gmail.com>
428
429         * configure.tgt: Remove *-*-bsd* entry.
430
431 2018-04-17 Andrew Sadek  <andrew.sadek.se@gmail.com>
432
433         Microblaze Target: PIC data text relative
434
435         * gas/config/tc-microblaze.c (Handle new relocs directives in
436         assembler): Handle new relocs from compiler output.
437         (imm_types): add new imm types for data text relative addressing
438         TEXT_OFFSET, TEXT_PC_OFFSET
439         (md_convert_frag): conversion for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
440         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
441         (md_apply_fix): apply fix for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
442         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
443         (md_estimate_size_before_relax): estimate size for
444         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
445         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
446         (tc_gen_reloc): generate relocations for
447         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
448         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
449
450 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
451
452         * testsuite/gas/i386/nops.s: Revert back deleted lines and
453         change encoding to 0x0f1c /1 to map to NOP.
454         * testsuite/gas/i386/x86-64-nops.s: Likewise.
455         * testsuite/gas/i386/nops.d: Likewise.
456         * testsuite/gas/i386/x86-64-nops.d: Likewise.
457         * testsuite/gas/i386/ilp32/x86-64-nops.d: Likewis.
458
459 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
460
461         * config/tc-i386.c (cpu_arch): Add .cldemote.
462         * doc/c-i386.texi: Document cldemote/.cldemote.
463         * testsuite/gas/i386/cldemote-intel.d: New.
464         * testsuite/gas/i386/cldemote.d: Likewise.
465         * testsuite/gas/i386/cldemote.s: Likewise.
466         * testsuite/gas/i386/i386.exp: Run new tests.
467         * testsuite/gas/i386/x86-64-cldemote-intel.d: New.
468         * testsuite/gas/i386/x86-64-cldemote.d: Likewise.
469         * testsuite/gas/i386/x86-64-cldemote.s: Likewise.
470         * testsuite/gas/i386/ilp32/x86-64-nops.d: Remove 0x0f1c
471         NOP encoding that maps to cldemote.
472         * testsuite/gas/i386/nops.d: Likewise.
473         * testsuite/gas/i386/nops.s: Likewise.
474         * testsuite/gas/i386/x86-64-nops.d: Likewise.
475         * testsuite/gas/i386/x86-64-nops.s: Likewise.
476
477 2018-04-16  Nick Clifton  <nickc@redhat.com>
478
479         PR 23054
480         * cond.c (s_ifsef): Replace use of obstack_copy with obstack_alloc
481         followed by memcpy.
482         (s_if, s_ifb, s_ifc, s_ifeqs): Likewise.
483         * obj-elf.c (elf_adjust_symtab): Check for local symbols before
484         attempting to dereference the sy_next field of a symbol.
485         * stabs.c (get_stab_string_offset): Fail if there is no string
486         following the stab directive.
487
488 2018-04-16  Alan Modra  <amodra@gmail.com>
489
490         * Makefile.am: Remove arm-epoc-pe support.
491         * config/tc-arm.h: Likewise.
492         * configure.tgt: Likewise.
493         * testsuite/gas/all/gas.exp: Likewise.
494         * testsuite/gas/arm/local_label_coff.d: Likewise.
495         * testsuite/gas/arm/undefined.d: Likewise.
496         * testsuite/gas/arm/undefined_coff.d: Likewise.
497         * config/te-epoc-pe.h: Delete.
498         * Makefile.in: Regenerate.
499         * po/POTFILES.in: Regenerate.
500
501 2018-04-16  Alan Modra  <amodra@gmail.com>
502
503         * Makefile.am: Remove sparc-aout and sparc-coff support.
504         * config/obj-coff.h: Likewise.
505         * config/tc-sparc.c: Likewise.
506         * config/tc-sparc.h: Likewise.
507         * configure.tgt: Likewise.
508         * config/te-sparcaout.h: Delete.
509         * testsuite/gas/sun4/addend.d: Delete.
510         * testsuite/gas/sun4/addend.exp: Delete.
511         * testsuite/gas/sun4/addend.s: Delete.
512         * Makefile.in: Regenerate.
513         * po/POTFILES.in: Regenerate.
514
515 2018-04-16  Alan Modra  <amodra@gmail.com>
516
517         * Makefile.am: Remove m68k-aout and m68k-coff support.
518         * config/tc-m68k.c: Likewise.
519         * config/tc-m68k.h: Likewise.
520         * configure.ac: Likewise.
521         * configure.tgt: Likewise.
522         * testsuite/gas/all/weakref1u.d: Likewise.
523         * testsuite/gas/m68k/all.exp: Likewise.
524         * testsuite/gas/m68k/br-isaa.d: Likewise.
525         * testsuite/gas/m68k/br-isab.d: Likewise.
526         * testsuite/gas/m68k/br-isac.d: Likewise.
527         * config/te-psos.h: Delete.
528         * config/te-sun3.h: Delete.
529         * testsuite/gas/m68k-coff/gas.exp: Delete.
530         * testsuite/gas/m68k-coff/p2389.s: Delete.
531         * testsuite/gas/m68k-coff/p2389a.s: Delete.
532         * testsuite/gas/m68k-coff/p2430.s: Delete.
533         * testsuite/gas/m68k-coff/p2430a.s: Delete.
534         * testsuite/gas/m68k-coff/t1.s: Delete.
535         * testsuite/gas/m68k/p3041.d: Delete.
536         * testsuite/gas/m68k/p3041.s: Delete.
537         * testsuite/gas/m68k/p3041data.d: Delete.
538         * testsuite/gas/m68k/p3041data.s: Delete.
539         * testsuite/gas/m68k/p3041pcrel.d: Delete.
540         * testsuite/gas/m68k/p3041pcrel.s: Delete.
541         * testsuite/gas/m68k/t2.d: Delete.
542         * Makefile.in: Regenerate.
543         * config.in: Regenerate.
544         * configure: Regenerate.
545         * po/POTFILES.in: Regenerate.
546
547 2018-04-16  Alan Modra  <amodra@gmail.com>
548
549         * Makefile.am: Remove sh5 and sh64 support.
550         * config/tc-sh.c: Likewise.
551         * configure.tgt: Likewise.
552         * doc/Makefile.am: Likewise.
553         * doc/as.texinfo: Likewise.
554         * testsuite/gas/cfi/cfi.exp: Likewise.
555         * testsuite/gas/sh/basic.exp: Likewise.
556         * config/tc-sh64.c: Delete.
557         * config/tc-sh64.h: Delete.
558         * doc/c-sh64.texi: Delete.
559         * testsuite/gas/sh/sh64/abi-32.d: Delete.
560         * testsuite/gas/sh/sh64/abi-32.s: Delete.
561         * testsuite/gas/sh/sh64/abi-64.d: Delete.
562         * testsuite/gas/sh/sh64/abi-64.s: Delete.
563         * testsuite/gas/sh/sh64/basic-1.d: Delete.
564         * testsuite/gas/sh/sh64/basic-1.s: Delete.
565         * testsuite/gas/sh/sh64/case-1.d: Delete.
566         * testsuite/gas/sh/sh64/case-1.s: Delete.
567         * testsuite/gas/sh/sh64/case-noexp-1.d: Delete.
568         * testsuite/gas/sh/sh64/crange1-1.d: Delete.
569         * testsuite/gas/sh/sh64/crange1-2.d: Delete.
570         * testsuite/gas/sh/sh64/crange1.s: Delete.
571         * testsuite/gas/sh/sh64/crange2-1.d: Delete.
572         * testsuite/gas/sh/sh64/crange2-2.d: Delete.
573         * testsuite/gas/sh/sh64/crange2-noexp-1.d: Delete.
574         * testsuite/gas/sh/sh64/crange2.s: Delete.
575         * testsuite/gas/sh/sh64/crange3-1.d: Delete.
576         * testsuite/gas/sh/sh64/crange3.s: Delete.
577         * testsuite/gas/sh/sh64/crange4-1.d: Delete.
578         * testsuite/gas/sh/sh64/crange4.s: Delete.
579         * testsuite/gas/sh/sh64/crange5-1.d: Delete.
580         * testsuite/gas/sh/sh64/crange5.s: Delete.
581         * testsuite/gas/sh/sh64/creg-1.d: Delete.
582         * testsuite/gas/sh/sh64/creg-1.s: Delete.
583         * testsuite/gas/sh/sh64/creg-2.d: Delete.
584         * testsuite/gas/sh/sh64/creg-2.s: Delete.
585         * testsuite/gas/sh/sh64/datal-1.s: Delete.
586         * testsuite/gas/sh/sh64/datal-2.d: Delete.
587         * testsuite/gas/sh/sh64/datal-2.s: Delete.
588         * testsuite/gas/sh/sh64/datal-3.s: Delete.
589         * testsuite/gas/sh/sh64/datal32-1.d: Delete.
590         * testsuite/gas/sh/sh64/datal32-3.d: Delete.
591         * testsuite/gas/sh/sh64/datal64-1.d: Delete.
592         * testsuite/gas/sh/sh64/datal64-3.d: Delete.
593         * testsuite/gas/sh/sh64/eh-1.d: Delete.
594         * testsuite/gas/sh/sh64/eh-1.s: Delete.
595         * testsuite/gas/sh/sh64/endian-1.d: Delete.
596         * testsuite/gas/sh/sh64/endian-1.s: Delete.
597         * testsuite/gas/sh/sh64/endian-2.d: Delete.
598         * testsuite/gas/sh/sh64/endian-2.s: Delete.
599         * testsuite/gas/sh/sh64/err-1.s: Delete.
600         * testsuite/gas/sh/sh64/err-2.s: Delete.
601         * testsuite/gas/sh/sh64/err-3.s: Delete.
602         * testsuite/gas/sh/sh64/err-4.s: Delete.
603         * testsuite/gas/sh/sh64/err-abi-32.s: Delete.
604         * testsuite/gas/sh/sh64/err-abi-64.s: Delete.
605         * testsuite/gas/sh/sh64/err-dsp.s: Delete.
606         * testsuite/gas/sh/sh64/err-movi-noexp-1.s: Delete.
607         * testsuite/gas/sh/sh64/err-noexp-cmd1.s: Delete.
608         * testsuite/gas/sh/sh64/err-pt-1.s: Delete.
609         * testsuite/gas/sh/sh64/err-pt32-cmd1.s: Delete.
610         * testsuite/gas/sh/sh64/err-pt32-cmd2.s: Delete.
611         * testsuite/gas/sh/sh64/err-pt32-cmd3.s: Delete.
612         * testsuite/gas/sh/sh64/err-ptb-1.s: Delete.
613         * testsuite/gas/sh/sh64/err-ptb-2.s: Delete.
614         * testsuite/gas/sh/sh64/err.exp: Delete.
615         * testsuite/gas/sh/sh64/immexpr1.s: Delete.
616         * testsuite/gas/sh/sh64/immexpr2.s: Delete.
617         * testsuite/gas/sh/sh64/immexpr32-1.d: Delete.
618         * testsuite/gas/sh/sh64/immexpr32-2.d: Delete.
619         * testsuite/gas/sh/sh64/immexpr64-1.d: Delete.
620         * testsuite/gas/sh/sh64/immexpr64-2.d: Delete.
621         * testsuite/gas/sh/sh64/lineno.d: Delete.
622         * testsuite/gas/sh/sh64/lineno.s: Delete.
623         * testsuite/gas/sh/sh64/localcom-1.d: Delete.
624         * testsuite/gas/sh/sh64/localcom-1.s: Delete.
625         * testsuite/gas/sh/sh64/mix-1.d: Delete.
626         * testsuite/gas/sh/sh64/mix-1.s: Delete.
627         * testsuite/gas/sh/sh64/mix-noexp-1.d: Delete.
628         * testsuite/gas/sh/sh64/movi-1.s: Delete.
629         * testsuite/gas/sh/sh64/movi-2.s: Delete.
630         * testsuite/gas/sh/sh64/movi-3.d: Delete.
631         * testsuite/gas/sh/sh64/movi-3.s: Delete.
632         * testsuite/gas/sh/sh64/movi32-1.d: Delete.
633         * testsuite/gas/sh/sh64/movi32-2.d: Delete.
634         * testsuite/gas/sh/sh64/movi32-noexp-2.d: Delete.
635         * testsuite/gas/sh/sh64/movi64-1.d: Delete.
636         * testsuite/gas/sh/sh64/movi64-2.d: Delete.
637         * testsuite/gas/sh/sh64/movi64-2.s: Delete.
638         * testsuite/gas/sh/sh64/movi64-3.d: Delete.
639         * testsuite/gas/sh/sh64/movi64-noexp-2.d: Delete.
640         * testsuite/gas/sh/sh64/pt-1.d: Delete.
641         * testsuite/gas/sh/sh64/pt-1.s: Delete.
642         * testsuite/gas/sh/sh64/pt-2.s: Delete.
643         * testsuite/gas/sh/sh64/pt-noexp-1.d: Delete.
644         * testsuite/gas/sh/sh64/pt32-1.d: Delete.
645         * testsuite/gas/sh/sh64/pt32-noexp-2.d: Delete.
646         * testsuite/gas/sh/sh64/pt64-1.d: Delete.
647         * testsuite/gas/sh/sh64/pt64-32-1.d: Delete.
648         * testsuite/gas/sh/sh64/pt64-32-2.d: Delete.
649         * testsuite/gas/sh/sh64/pt64-noexp-2.d: Delete.
650         * testsuite/gas/sh/sh64/ptc-1.s: Delete.
651         * testsuite/gas/sh/sh64/ptc32-1.d: Delete.
652         * testsuite/gas/sh/sh64/ptc32-noexp-1.d: Delete.
653         * testsuite/gas/sh/sh64/ptc64-1.d: Delete.
654         * testsuite/gas/sh/sh64/ptc64-32-1.d: Delete.
655         * testsuite/gas/sh/sh64/ptc64-noexp-1.d: Delete.
656         * testsuite/gas/sh/sh64/ptext-1.s: Delete.
657         * testsuite/gas/sh/sh64/ptext32-1.d: Delete.
658         * testsuite/gas/sh/sh64/ptext32-noexp-1.d: Delete.
659         * testsuite/gas/sh/sh64/ptext64-1.d: Delete.
660         * testsuite/gas/sh/sh64/ptext64-32-1.d: Delete.
661         * testsuite/gas/sh/sh64/ptext64-noexp-1.d: Delete.
662         * testsuite/gas/sh/sh64/rel-1.s: Delete.
663         * testsuite/gas/sh/sh64/rel-2.s: Delete.
664         * testsuite/gas/sh/sh64/rel-3.s: Delete.
665         * testsuite/gas/sh/sh64/rel-4.s: Delete.
666         * testsuite/gas/sh/sh64/rel-5.s: Delete.
667         * testsuite/gas/sh/sh64/rel32-1.d: Delete.
668         * testsuite/gas/sh/sh64/rel32-2.d: Delete.
669         * testsuite/gas/sh/sh64/rel32-3.d: Delete.
670         * testsuite/gas/sh/sh64/rel32-4.d: Delete.
671         * testsuite/gas/sh/sh64/rel32-5.d: Delete.
672         * testsuite/gas/sh/sh64/rel64-1.d: Delete.
673         * testsuite/gas/sh/sh64/rel64-2.d: Delete.
674         * testsuite/gas/sh/sh64/rel64-3.d: Delete.
675         * testsuite/gas/sh/sh64/rel64-4.d: Delete.
676         * testsuite/gas/sh/sh64/rel64-5.d: Delete.
677         * testsuite/gas/sh/sh64/relax-1.d: Delete.
678         * testsuite/gas/sh/sh64/relax-1.s: Delete.
679         * testsuite/gas/sh/sh64/relax-2.d: Delete.
680         * testsuite/gas/sh/sh64/relax-2.s: Delete.
681         * testsuite/gas/sh/sh64/relax-3.d: Delete.
682         * testsuite/gas/sh/sh64/relax-3.s: Delete.
683         * testsuite/gas/sh/sh64/sh64.exp: Delete.
684         * testsuite/gas/sh/sh64/shift-1.s: Delete.
685         * testsuite/gas/sh/sh64/shift-2.s: Delete.
686         * testsuite/gas/sh/sh64/shift-3.s: Delete.
687         * testsuite/gas/sh/sh64/shift32-1.d: Delete.
688         * testsuite/gas/sh/sh64/shift32-3.d: Delete.
689         * testsuite/gas/sh/sh64/shift32-noexp-3.d: Delete.
690         * testsuite/gas/sh/sh64/shift64-1.d: Delete.
691         * testsuite/gas/sh/sh64/shift64-2.d: Delete.
692         * testsuite/gas/sh/sh64/shift64-3.d: Delete.
693         * testsuite/gas/sh/sh64/shift64-noexp-3.d: Delete.
694         * testsuite/gas/sh/sh64/syntax-1.d: Delete.
695         * testsuite/gas/sh/sh64/syntax-1.s: Delete.
696         * testsuite/gas/sh/sh64/syntax-2.d: Delete.
697         * testsuite/gas/sh/sh64/syntax-2.s: Delete.
698         * testsuite/gas/sh/sh64/ua-1.s: Delete.
699         * testsuite/gas/sh/sh64/ua32-1.d: Delete.
700         * testsuite/gas/sh/sh64/ua64-1.d: Delete.
701         * Makefile.in: Regenerate.
702         * doc/Makefile.in: Regenerate.
703         * po/POTFILES.in: Regenerate.
704
705 2018-04-16  Alan Modra  <amodra@gmail.com>
706
707         * config/tc-sh.c: Remove sh-symbianelf support.
708         * config/tc-sh.h: Likewise.
709         * configure.ac: Likewise.
710         * configure.tgt: Likewise.
711         * testsuite/gas/sh/reg-prefix.d: Likewise.
712         * testsuite/gas/sh/sh2a-pic.d: Likewise.
713         * config.in: Regenerate.
714         * configure: Regenerate.
715
716 2018-04-16  Alan Modra  <amodra@gmail.com>
717
718         * configure.ac: Remove m88k support.
719         * config.in: Regenerate.
720         * configure: Regenerate.
721
722 2018-04-16  Alan Modra  <amodra@gmail.com>
723
724         * Makefile.am: Remove i370 support.
725         * app.c: Likewise.
726         * config/obj-elf.c: Likewise.
727         * configure.tgt: Likewise.
728         * doc/Makefile.am: Likewise.
729         * doc/as.texinfo: Likewise.
730         * testsuite/gas/all/gas.exp: Likewise.
731         * testsuite/gas/elf/warn-2.s: Likewise.
732         * testsuite/gas/lns/lns.exp: Likewise.
733         * config/tc-i370.c: Delete.
734         * config/tc-i370.h: Delete.
735         * doc/c-i370.texi: Delete.
736         * Makefile.in: Regenerate.
737         * doc/Makefile.in: Regenerate.
738         * po/POTFILES.in: Regenerate.
739
740 2018-04-16  Alan Modra  <amodra@gmail.com>
741
742         * config/obj-coff.h: Remove h8500 support.
743
744 2018-04-16  Alan Modra  <amodra@gmail.com>
745
746         * config/obj-coff.h: Remove h8300-coff support.
747         * config/tc-h8300.c: Likewise.
748         * config/tc-h8300.h: Likewise.
749         * testsuite/gas/h8300/h8300.exp: Likewise.
750         * testsuite/gas/h8300/branch-coff.s: Delete.
751         * testsuite/gas/h8300/branchh-coff.s: Delete.
752         * testsuite/gas/h8300/branchs-coff.s: Delete.
753         * testsuite/gas/h8300/ffxx1-coff.d: Delete.
754         * testsuite/gas/h8300/ffxx1-coff.s: Delete.
755         * testsuite/gas/h8300/h8300-coff.exp: Delete.
756
757 2018-04-16  Alan Modra  <amodra@gmail.com>
758
759         * app.c: Remove IEEE 695 support.
760         * symbols.c: Likewise.
761
762 2018-04-16  Alan Modra  <amodra@gmail.com>
763
764         * Makefile.am: Remove netware support.
765         * config/tc-i386.c: Likewise.
766         * configure.tgt: Likewise.
767         * config/te-netware.h: Delete.
768         * Makefile.in: Regenerate.
769         * po/POTFILES.in: Regenerate.
770
771 2018-04-15  H.J. Lu  <hongjiu.lu@intel.com>
772
773         * testsuite/gas/i386/x86-64-waitpkg.s: Add 32-bit registers
774         tests for tpause and umwait.
775         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Updated.
776         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
777
778 2018-04-12  John Darrington  <john@darrington.wattle.id.au>
779
780         * as.c (main): Fail if the output is the same as one of the input
781         files.
782         * testsuite/gas/all/gas.exp: Test the new feature.
783
784 2018-04-12  Nick Clifton  <nickc@redhat.com>
785
786         * po/es.po: Updated Spanish translation.
787         * po/ru.po: Updated Russian translation.
788
789 2018-04-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
790
791         * config/tc-i386.c (cpu_arch): Add WAITPKG.
792         (cpu_noarch): Likewise.
793         * doc/c-i386.texi: Document WAITPKG.
794         * i386/i386.exp: Run WAITPKG tests.
795         * testsuite/gas/i386/waitpkg-intel.d: New test.
796         * testsuite/gas/i386/waitpkg.d: Likewise.
797         * testsuite/gas/i386/waitpkg.s: Likewise.
798         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Likewise.
799         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
800         * testsuite/gas/i386/x86-64-waitpkg.s: Likewise.
801
802 2018-04-11  Alan Modra  <amodra@gmail.com>
803
804         * config/aout_gnu.h: Delete.
805         * config/tc-i860.c: Delete.
806         * config/tc-i860.h: Delete.
807         * config/tc-i960.c: Delete.
808         * config/tc-i960.h: Delete.
809         * doc/c-i860.texi: Delete.
810         * doc/c-i960.texi: Delete.
811         * testsuite/gas/i860/README.i860: Delete.
812         * testsuite/gas/i860/bitwise.d: Delete.
813         * testsuite/gas/i860/bitwise.s: Delete.
814         * testsuite/gas/i860/branch.d: Delete.
815         * testsuite/gas/i860/branch.s: Delete.
816         * testsuite/gas/i860/bte.d: Delete.
817         * testsuite/gas/i860/bte.s: Delete.
818         * testsuite/gas/i860/dir-align01.d: Delete.
819         * testsuite/gas/i860/dir-align01.s: Delete.
820         * testsuite/gas/i860/dir-intel01.d: Delete.
821         * testsuite/gas/i860/dir-intel01.s: Delete.
822         * testsuite/gas/i860/dir-intel02.d: Delete.
823         * testsuite/gas/i860/dir-intel02.s: Delete.
824         * testsuite/gas/i860/dir-intel03-err.l: Delete.
825         * testsuite/gas/i860/dir-intel03-err.s: Delete.
826         * testsuite/gas/i860/dual01.d: Delete.
827         * testsuite/gas/i860/dual01.s: Delete.
828         * testsuite/gas/i860/dual02-err.l: Delete.
829         * testsuite/gas/i860/dual02-err.s: Delete.
830         * testsuite/gas/i860/dual03.d: Delete.
831         * testsuite/gas/i860/dual03.s: Delete.
832         * testsuite/gas/i860/fldst01.d: Delete.
833         * testsuite/gas/i860/fldst01.s: Delete.
834         * testsuite/gas/i860/fldst02.d: Delete.
835         * testsuite/gas/i860/fldst02.s: Delete.
836         * testsuite/gas/i860/fldst03.d: Delete.
837         * testsuite/gas/i860/fldst03.s: Delete.
838         * testsuite/gas/i860/fldst04.d: Delete.
839         * testsuite/gas/i860/fldst04.s: Delete.
840         * testsuite/gas/i860/fldst05.d: Delete.
841         * testsuite/gas/i860/fldst05.s: Delete.
842         * testsuite/gas/i860/fldst06.d: Delete.
843         * testsuite/gas/i860/fldst06.s: Delete.
844         * testsuite/gas/i860/fldst07.d: Delete.
845         * testsuite/gas/i860/fldst07.s: Delete.
846         * testsuite/gas/i860/fldst08.d: Delete.
847         * testsuite/gas/i860/fldst08.s: Delete.
848         * testsuite/gas/i860/float01.d: Delete.
849         * testsuite/gas/i860/float01.s: Delete.
850         * testsuite/gas/i860/float02.d: Delete.
851         * testsuite/gas/i860/float02.s: Delete.
852         * testsuite/gas/i860/float03.d: Delete.
853         * testsuite/gas/i860/float03.s: Delete.
854         * testsuite/gas/i860/float04.d: Delete.
855         * testsuite/gas/i860/float04.s: Delete.
856         * testsuite/gas/i860/form.d: Delete.
857         * testsuite/gas/i860/form.s: Delete.
858         * testsuite/gas/i860/i860.exp: Delete.
859         * testsuite/gas/i860/iarith.d: Delete.
860         * testsuite/gas/i860/iarith.s: Delete.
861         * testsuite/gas/i860/ldst01.d: Delete.
862         * testsuite/gas/i860/ldst01.s: Delete.
863         * testsuite/gas/i860/ldst02.d: Delete.
864         * testsuite/gas/i860/ldst02.s: Delete.
865         * testsuite/gas/i860/ldst03.d: Delete.
866         * testsuite/gas/i860/ldst03.s: Delete.
867         * testsuite/gas/i860/ldst04.d: Delete.
868         * testsuite/gas/i860/ldst04.s: Delete.
869         * testsuite/gas/i860/ldst05.d: Delete.
870         * testsuite/gas/i860/ldst05.s: Delete.
871         * testsuite/gas/i860/ldst06.d: Delete.
872         * testsuite/gas/i860/ldst06.s: Delete.
873         * testsuite/gas/i860/pfam.d: Delete.
874         * testsuite/gas/i860/pfam.s: Delete.
875         * testsuite/gas/i860/pfmam.d: Delete.
876         * testsuite/gas/i860/pfmam.s: Delete.
877         * testsuite/gas/i860/pfmsm.d: Delete.
878         * testsuite/gas/i860/pfmsm.s: Delete.
879         * testsuite/gas/i860/pfsm.d: Delete.
880         * testsuite/gas/i860/pfsm.s: Delete.
881         * testsuite/gas/i860/pseudo-ops01.d: Delete.
882         * testsuite/gas/i860/pseudo-ops01.s: Delete.
883         * testsuite/gas/i860/regress01.d: Delete.
884         * testsuite/gas/i860/regress01.s: Delete.
885         * testsuite/gas/i860/shift.d: Delete.
886         * testsuite/gas/i860/shift.s: Delete.
887         * testsuite/gas/i860/simd.d: Delete.
888         * testsuite/gas/i860/simd.s: Delete.
889         * testsuite/gas/i860/system.d: Delete.
890         * testsuite/gas/i860/system.s: Delete.
891         * testsuite/gas/i860/xp.d: Delete.
892         * testsuite/gas/i860/xp.s: Delete.
893         * Makefile.am: Remove i860 and i960 support.
894         * configure.tgt: Likewise.
895         * doc/Makefile.am: Likewise.
896         * doc/all.texi: Likewise.
897         * testsuite/gas/all/gas.exp
898         * config/obj-coff.h: Remove i960 support.
899         * doc/internals.texi: Likewise.
900         * expr.c: Likewise.
901         * read.c: Likewise.
902         * write.c: Likewise.
903         * write.h: Likewise.
904         * testsuite/gas/lns/lns.exp: Likewise.
905         * testsuite/gas/symver/symver.exp: Likewise.
906         * config/tc-m68k.c: Remove BOUT support.
907         * config/tc-score.c: Likewise.
908         * config/tc-score7.c: Likewise.
909         * config/tc-sparc.c: Likewise.
910         * symbols.c: Likewise.
911         * doc/h8.texi: Likewise.
912         * configure.ac: Remove BOUT and i860 support.
913         * doc/as.texinfo: Remove BOUT, i860 and i960 support
914         * Makefile.in: Regenerate.
915         * config.in: Regenerate.
916         * configure: Regenerate.
917         * doc/Makefile.in: Regenerate.
918         * po/POTFILES.in: Regenerate.
919
920 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
921
922         PR gas/22318
923         * configure: Regenerated.
924
925 2018-04-04  H.J. Lu  <hongjiu.lu@intel.com>
926
927         PR binutils/23025
928         * testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
929         VEX and EVEX prefixes.
930         * testsuite/gas/i386/prefix.d: Updated.
931
932 2018-03-30  Peter Bergner <bergner@vnet.ibm.com>
933
934         PR binutils/23013
935         * config/tc-ppc.c (ppc_set_cpu): Select appropriate cpu when ppc_obj64
936         and little endian.
937
938 2018-03-28  Renlin Li  <renlin.li@arm.com>
939
940         PR ld/22970
941         * config/tc-aarch64.c (reloc_table): Update entry for tprel_lo12 and
942         tprel_lo12_nc with pseudo relocations.
943         (ldst_lo12_determine_real_reloc_type): Add new relocations support.
944         (parse_operands): Handle BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 and
945         BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC pseudo relocations.
946         (md_apply_fix): Add handling for new relocation.
947         (aarch64_force_relocation): Likewise.
948         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.d: New.
949         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.s: New.
950         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.d: New.
951         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.s: New.
952         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.d: New.
953         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.s: New.
954         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.d: New.
955         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.s: New.
956         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.d: New.
957         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.s: New.
958         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.d: New.
959         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.s: New.
960         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.d: New.
961         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.s: New.
962         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.d: New.
963         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.s: New.
964         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16-ilp32.d: New.
965         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32-ilp32.d: New.
966         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64-ilp32.d: New.
967         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8-ilp32.d: New.
968         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16-ilp32.d: New.
969         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32-ilp32.d: New.
970         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64-ilp32.d: New.
971         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8-ilp32.d: New.
972
973 2018-03-28  Jan Beulich  <jbeulich@suse.com>
974
975         * config/tc-i386.c (check_VecOperands): Replace uses of
976         .vecesize. Always initialize op.
977         * testsuite/gas/i386/avx512_vpopcntdq.s,
978         testsuite/gas/i386/avx512bitalg_vl.s: Add Intel syntax vpopcnt
979         broadcast cases with explicit operand size.
980         * testsuite/gas/i386/avx512_vpopcntdq.d,
981         testsuite/gas/i386/avx512_vpopcntdq-intel.d,
982         testsuite/gas/i386/avx512bitalg_vl.d
983         testsuite/gas/i386/avx512bitalg_vl-intel.d: Adjust expectations.
984
985 2018-03-28  Jan Beulich  <jbeulich@suse.com>
986
987         * config/tc-i386.c (struct Broadcast_Operation): Adjust comment.
988         (check_VecOperands): Re-write broadcast validation code.
989         (check_VecOperations): Replace BROADCAST_1TO* uses.
990         * testsuite/gas/i386/inval-avx512f.s: Add various broadcast
991         cases.
992         * testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
993
994 2018-03-28  Jan Beulich  <jbeulich@suse.com>
995
996         * config/tc-i386.c (process_suffix): Check .todword/.toqword
997         before zapping suffix.
998
999 2018-03-28  Jan Beulich  <jbeulich@suse.com>
1000
1001         * testsuite/gas/i386/ilp32/x86-64-simd-suffix.d,
1002         testsuite/gas/i386/x86-64-simd-suffix.d: Drop q suffix from
1003         cvt*2si.
1004
1005 2018-03-28  Nick Clifton  <nickc@redhat.com>
1006
1007         PR 22988
1008         * config/tc-aarch64.c (parse_operands): Add code to handle
1009         AARCH64_OPN_SVE_ADDR_R.
1010         * testsuite/gas/aarch64/sve.s: Add tests for LDFF1xx instructions
1011         with an assumed XZR offset address register.
1012         * testsuite/gas/aarch64/sve.d: Update expected disassembly.
1013
1014 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1015
1016         * config/tc-i386.c (check_VecOperands): Latch
1017         i.broadcast->operand into op.
1018
1019 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1020
1021         * config/tc-i386.c (match_template): Special case base opcode
1022         0xa0 with HLE prefix.
1023         * testsuite/gas/i386/hle.s: Add mov-accumulator-to-disp cases.
1024         * testsuite/gas/i386/hle.d, testsuite/gas/i386/hle-intel.d:
1025         Adjust expectations.
1026
1027 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1028
1029         * testsuite/gas/i386/opts.s: Add bndmov cases.
1030         * testsuite/gas/i386/opts.d, testsuite/gas/i386/opts-intel.d,
1031         testsuite/gas/i386/sse2avx-opts.d,
1032         testsuite/gas/i386/sse2avx-opts-intel.d: Adjust expectations.
1033
1034 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1035
1036         * config/tc-i386.c (match_mem_size): Extend sub-xmmword
1037         exceptions.
1038         * testsuite/gas/i386/xmmword.l, testsuite/gas/i386/xmmword.s:
1039         New.
1040         * testsuite/gas/i386/i386.exp: Run new test.
1041
1042 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1043
1044         * config/tc-i386.c (match_template): Also match 2nd and 4th
1045         operand's register sizes.
1046         * testsuite/gas/i386/unspec.l, testsuite/gas/i386/unspec.s: New.
1047         * testsuite/gas/i386/i386.exp: Run new test.
1048
1049 2018-03-19  Nick Clifton  <nickc@redhat.com>
1050
1051         * po/uk.po: Updated Ukranian translation.
1052
1053 2018-03-16  Jim Wilson  <jimw@sifive.com>
1054
1055         * config/tc-riscv.c (check_absolute_expr): Expand comment.  New
1056         parameter maybe_csr.  If maybe_csr and O_symbol, print CSR name.
1057         (riscv_ip): Add new argument to check_absolute_expr calls.
1058         * testsuite/gas/riscv/bad-csr.d: New.
1059         * testsuite/gas/riscv/bad-csr.l: New.
1060         * testsuite/gas/riscv/bad-csr.s: New.
1061
1062 2018-03-14  Kito Cheng  <kito.cheng@gmail.com>
1063
1064         * config/tc-riscv.c (opcode_name_list): New.
1065         (opcode_names_hash): Likewise.
1066         (init_opcode_names_hash): Likewise.
1067         (opcode_name_lookup): Likewise.
1068         (validate_riscv_insn): New argument length, and add new format
1069         which used in .insn directive.
1070         (md_begin): Refine hash table initialization logic into
1071         init_opcode_hash.
1072         (init_opcode_hash): New.
1073         (my_getOpcodeExpression): Parse opcode name for .insn.
1074         (riscv_ip): New argument hash, able to handle .insn directive.
1075         (s_riscv_insn): Handler for .insn directive.
1076         (riscv_pseudo_table): New entry for .insn.
1077         * doc/c-riscv.texi: Add documentation for .insn directive.
1078         * testsuite/gas/riscv/insn.d: Add testcase for .insn directive.
1079         * testsuite/gas/riscv/insn.s: Likewise.
1080
1081 2018-03-13  Nick Clifton  <nickc@redhat.com>
1082
1083         * po/ru.po: Updated Russian translation.
1084
1085 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
1086
1087         * config/tc-i386.c (optimize_encoding): Encode EVEX instructions
1088         with VEX128 if EVEX encoding isn't required.
1089         * testsuite/gas/i386/optimize-1.d: Updated.
1090         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1091
1092 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
1093
1094         * config/tc-i386.c (check_VecOperations): Strip whitespace.
1095         * testsuite/gas/i386/optimize-1.s: Add whitespaces before
1096         {%k7} and {z},
1097         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1098
1099 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1100
1101         * config/tc-i386.c (set_cpu_arch): Set cpu_arch_isa_flags.
1102         (md_parse_option): Likewise.
1103         (optimize_encoding): Check i.tm.cpu_flags and cpu_arch_isa_flags
1104         for cpuavx512vl instead of cpu_arch_flags.  Optimize EVEX with
1105         EVEX128 when EVEX encoding is required.
1106         * testsuite/gas/i386/i386.exp: Run optimize-4, optimize-5,
1107         x86-64-optimize-5 and x86-64-optimize-6.
1108         * testsuite/gas/i386/optimize-1.d: Updated.
1109         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1110         * testsuite/gas/i386/optimize-4.d: New file.
1111         * testsuite/gas/i386/optimize-4.s: Likewise.
1112         * testsuite/gas/i386/optimize-5.d: Likewise.
1113         * testsuite/gas/i386/optimize-5.s: Likewise.
1114         * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1115         * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
1116         * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1117         * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
1118
1119 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1120
1121         * config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
1122         as "xor reg32, reg32".
1123         * testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
1124         * testsuite/gas/i386/x86-64-optimize-1.d: Updated.
1125
1126 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1127
1128         * NEWS: Mention -mold-gcc removal.
1129         * config/tc-i386.c (i386_error): Remove old_gcc_only.
1130         (old_gcc): Removed.
1131         (match_template): Remove old gcc support.
1132         (OPTION_MOLD_GCC): Removed.
1133         (OPTION_MRELAX_RELOCATIONS): Updated.
1134         (md_longopts): Remove OPTION_MOLD_GCC.
1135         (md_parse_option): Likewise.
1136         (md_show_usage): Remove -mold-gcc.
1137         * testsuite/gas/i386/general.s: Convert fsub/fdiv tests for old
1138         (<= 2.8.1) versions of gcc.
1139         * testsuite/gas/i386/intel.s: Likewise.
1140         * testsuite/gas/i386/general.l: Updated.
1141         * testsuite/gas/i386/intel-intel.d: Likewise.
1142         * testsuite/gas/i386/intel.d: Likewise.
1143         * testsuite/gas/i386/intel.e: Likewise.
1144         * testsuite/gas/i386/i386.exp: Don't pass -mold-gcc to general.
1145
1146 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1147
1148         * config/tc-i386.c (is_evex_encoding): New.
1149         (optimize_encoding, md_assemble, md_assemble,
1150         VEX_check_operands, build_modrm_byte): Use is_evex_encoding.
1151         (build_evex_prefix): Derive EVEX length field from actual
1152         operands if the template allows multiple ones.
1153
1154 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1155
1156         * config/tc-i386.c (build_modrm_byte): Make VexNDD handling cope
1157         with 3rd (immediate) operand.
1158
1159 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1160
1161         * config/tc-i386.c (XMMWORD_MNEM_SUFFIX, YMMWORD_MNEM_SUFFIX,
1162         ZMMWORD_MNEM_SUFFIX): Delete.
1163         (process_suffix): Drop their uses. Re-arrange final part of
1164         logic into a switch() statement. Drop special casing of
1165         cmpxchg8b.
1166
1167 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1168
1169         * config/tc-i386.c (match_template): Also match register
1170         operands 0 and 2 for 3-operand forms.
1171         * testsuite/gas/i386/unspec64.l, testsuite/gas/i386/unspec64.s:
1172         New.
1173         * testsuite/gas/i386/i386.exp: Run new test.
1174
1175 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1176
1177         * config/tc-i386.c (process_suffix): Do common part of register
1178         checks first.
1179
1180 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1181
1182         * config/tc-i386.c (parse_insn): Move success return up. Combine
1183         failure returns.
1184
1185 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1186
1187         * config/tc-i386.c (cpu_flags_match): Add GFNI check to AVX
1188         logic. Add respective logic for AVX512F.
1189         * testsuite/gas/i386/arch-avx-1.s: Add GFNI test.
1190         testsuite/gas/i386/arch-avx-1.d,
1191         testsuite/gas/i386/arch-avx-1-1.l,
1192         testsuite/gas/i386/arch-avx-1-2.l,
1193         testsuite/gas/i386/arch-avx-1-3.l,
1194         testsuite/gas/i386/arch-avx-1-4.l,
1195         testsuite/gas/i386/arch-avx-1-5.l,
1196         testsuite/gas/i386/arch-avx-1-6.l: Adjust expectations.
1197         * testsuite/gas/i386/arch-avx-1-7.l,
1198         testsuite/gas/i386/arch-avx-1-7.s,
1199         testsuite/gas/i386/arch-avx-1-8.l,
1200         testsuite/gas/i386/arch-avx-1-8.s,
1201         testsuite/gas/i386/avx512f-plain.l,
1202         testsuite/gas/i386/avx512f-plain.s,
1203         testsuite/gas/i386/avx512vl-plain.l,
1204         testsuite/gas/i386/avx512vl-plain.s: New.
1205         * testsuite/gas/i386/i386.exp: Run new tests.
1206
1207 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1208
1209         * config/tc-i386.c (cpu_flags_match): Move AVX512VL check ahead.
1210
1211 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1212
1213         * config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
1214         (cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
1215         CPU_FLAGS_32BIT_MATCH.
1216
1217 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1218
1219         * config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
1220         CPU_FLAGS_PCLMUL_MATCH): Delete.
1221         (CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
1222         (cpu_flags_match): Combine AVX checks into
1223         single if().
1224
1225 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1226
1227         * config/tc-i386.c (cpu_flags_match): Drop "else" branches
1228         setting CPU_FLAGS_ARCH_MATCH.
1229
1230 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1231
1232         * config/tc-i386.c (md_assemble): Extend SSE check conditional.
1233         * testsuite/gas/i386/ilp32/x86-64-sse-check-none.d,
1234         testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
1235         testsuite/gas/i386/ilp32/x86-64-sse-check.d,
1236         testsuite/gas/i386/sse-check-none.d,
1237         testsuite/gas/i386/sse-check-warn.d,
1238         testsuite/gas/i386/x86-64-sse-check.d,
1239         testsuite/gas/i386/x86-64-sse-check-none.d,
1240         testsuite/gas/i386/x86-64-sse-check-warn.d: Refer to sse-check.d.
1241         * testsuite/gas/i386/sse-check.s: Add AES, GFNI, and PCLMUL
1242         tests.
1243         * testsuite/gas/i386/sse-check-none.s: Replace code by inclusion
1244         of sse-check.s.
1245         * testsuite/gas/i386/sse-check.d: Adjust expectations.
1246         * testsuite/gas/i386/sse-check-error.l,
1247         testsuite/gas/i386/x86-64-sse-check-error.l: Likewise.
1248         * testsuite/gas/i386/sse-check-warn.e: Likewise.
1249
1250 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1251
1252         * config/tc-i386.c (operand_size_match): Drop / replace uses of
1253         .floatd.
1254
1255 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1256
1257         * testsuite/gas/i386/intel-intel.d: New.
1258         * testsuite/gas/i386/i386.exp: Run new test.
1259
1260 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1261
1262         * config/tc-i386.c (process_operands): Access operands only
1263         after operand count assertion. Sanitize warning text. Fix
1264         indentation.
1265         * testsuite/gas/i386/avx512_4fmaps-warn.l,
1266         gas/i386/x86-64-avx512_4fmaps-warn.l: Adjust expectations.
1267
1268 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1269
1270         * testsuite/gas/i386/x86-64-movd.s: Drop bogus vmovd memory forms.
1271         * testsuite/gas/i386/x86-64-movd.d,
1272         testsuite/gas/i386/x86-64-movd-intel.d: Adjust expectations.
1273
1274 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1275
1276         * config/tc-i386.c (operand_type_and_not): New.
1277         (build_modrm_byte): Use it to prevent clearing unrelated bits.
1278
1279 2018-03-08  Alan Modra  <amodra@gmail.com>
1280
1281         * config/tc-ppc.c (ppc_handle_align): Correct last patch.  Really
1282         don't emit a group terminating nop for power9.  Simplify cpu
1283         tests.
1284
1285 2018-03-08  Alan Modra  <amodra@gmail.com>
1286
1287         * config/tc-ppc.c (ppc_handle_align): Don't emit a group
1288         terminating nop for power9.
1289
1290 2018-03-07  H.J. Lu  <hongjiu.lu@intel.com>
1291
1292         PR gas/22874
1293         * config/tc-i386.c (f32_5): Removed.
1294         (f32_8): Likewise.
1295         (f32_9): Likewise.
1296         (f32_10): Likewise.
1297         (f32_11): Likewise.
1298         (f32_12): Likewise.
1299         (f32_13): Likewise.
1300         (f32_14): Likewise.
1301         (f16_5): Likewise.
1302         (f16_6): Likewise.
1303         (f16_7): Likewise.
1304         (f16_8): Likewise.
1305         (jump_31): Likewise.
1306         (alt64_11): Likewise.
1307         (alt64_patt): Likewise.
1308         (jump_disp8): New.
1309         (jump32_disp32): Likewise.
1310         (jump16_disp32): Likewise.
1311         (alt_11): Likewise.
1312         (f32_patt): Updated.
1313         (f16_patt): Likewise.
1314         (alt_patt): Add alt_11.
1315         (i386_align_code): Merged with ...
1316         (i386_generate_nops): This.  Rewritten.
1317         (fits_in_imm7): Moved before i386_generate_nops.
1318         (fits_in_imm31): Likewise.
1319         * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Updated to
1320         4095.
1321         (i386_align_code): Removed.
1322         (HANDLE_ALIGN): Rewritten with i386_generate_nops.
1323         * doc/as.texinfo: Update limits of control byte for x86 .nops
1324         directive.
1325         * testsuite/gas/i386/i386.exp: Run nops-7 and x86-64-nops-7.
1326         * gas/testsuite/gas/i386/noavx-3.l: Updated.
1327         * gas/testsuite/gas/i386/nop-1.d: Likewise.
1328         * gas/testsuite/gas/i386/nop-1.s: Likewise.
1329         * gas/testsuite/gas/i386/nop-2.d: Likewise.
1330         * gas/testsuite/gas/i386/nop-2.s: Likewise.
1331         * gas/testsuite/gas/i386/nop-3.d: Likewise.
1332         * gas/testsuite/gas/i386/nop-4.d: Likewise.
1333         * gas/testsuite/gas/i386/nop-5.d: Likewise.
1334         * gas/testsuite/gas/i386/nop-5.s: Likewise.
1335         * gas/testsuite/gas/i386/nop-6.d: Likewise.
1336         * gas/testsuite/gas/i386/nop-bad-1.l: Likewise.
1337         * gas/testsuite/gas/i386/nops-1-core2.d: Likewise.
1338         * gas/testsuite/gas/i386/nops-1-i386-i686.d: Likewise.
1339         * gas/testsuite/gas/i386/nops-1-i386.d: Likewise.
1340         * gas/testsuite/gas/i386/nops-1-i686.d: Likewise.
1341         * gas/testsuite/gas/i386/nops-1-k8.d: Likewise.
1342         * gas/testsuite/gas/i386/nops-1.d: Likewise.
1343         * gas/testsuite/gas/i386/nops-2-core2.d: Likewise.
1344         * gas/testsuite/gas/i386/nops-2-i386.d: Likewise.
1345         * gas/testsuite/gas/i386/nops-2.d: Likewise.
1346         * gas/testsuite/gas/i386/nops-3-i386.d: Likewise.
1347         * gas/testsuite/gas/i386/nops-3-i686.d: Likewise.
1348         * gas/testsuite/gas/i386/nops-3.d: Likewise.
1349         * gas/testsuite/gas/i386/nops-4-i386.d: Likewise.
1350         * gas/testsuite/gas/i386/nops-4-i686.d: Likewise.
1351         * gas/testsuite/gas/i386/nops-4.d: Likewise.
1352         * gas/testsuite/gas/i386/nops-4a-i686.d: Likewise.
1353         * gas/testsuite/gas/i386/nops-5-i686.d: Likewise.
1354         * gas/testsuite/gas/i386/nops-5.d: Likewise.
1355         * gas/testsuite/gas/i386/nops-6.d: Likewise.
1356         * gas/testsuite/gas/i386/nops16-1.d: Likewise.
1357         * gas/testsuite/gas/i386/x86-64-nop-1.d: Likewise.
1358         * gas/testsuite/gas/i386/x86-64-nop-2.d: Likewise.
1359         * gas/testsuite/gas/i386/x86-64-nop-5.d: Likewise.
1360         * gas/testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise.
1361         * gas/testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise.
1362         * gas/testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise.
1363         * gas/testsuite/gas/i386/x86-64-nops-1-pentium.d: Likewise.
1364         * gas/testsuite/gas/i386/x86-64-nops-1.d: Likewise.
1365         * gas/testsuite/gas/i386/x86-64-nops-2.d: Likewise.
1366         * gas/testsuite/gas/i386/x86-64-nops-3.d: Likewise.
1367         * gas/testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
1368         * gas/testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise.
1369         * gas/testsuite/gas/i386/x86-64-nops-4.d: Likewise.
1370         * gas/testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise.
1371         * gas/testsuite/gas/i386/x86-64-nops-5.d: Likewise.
1372         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
1373         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
1374         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
1375         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise.
1376         * gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise.
1377         * gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise.
1378         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
1379         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
1380         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise.
1381         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
1382         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise.
1383         * gas/testsuite/gas/i386/nops-7.d: New file.
1384         * gas/testsuite/gas/i386/nops-7.s: Likewise.
1385         * gas/testsuite/gas/i386/x86-64-nops-7.d: Likewise.
1386
1387 2018-03-07  Alan Modra  <amodra@gmail.com>
1388
1389         * testsuite/gas/ppc/aix.exp: Run for rs6000 too.
1390         * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets.
1391         * testsuite/gas/ppc/machine.d: Don't run for PE targets.
1392
1393 2018-03-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1394
1395         * config/tc-arm.c (md_begin): Add NULL pointer check before
1396         dereferencing march_ext_opt.
1397
1398 2018-03-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1399
1400         * config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
1401         legacy_cpu, legacy_fpu, mcpu_cpu_opt, dyn_mcpu_ext_opt,
1402         mcpu_fpu_opt, march_cpu_opt, dyn_march_ext_opt, march_fpu_opt,
1403         mfpu_opt, object_arch, selected_cpu): Comment meaning of variables.
1404         (dyn_mcpu_ext_opt): Also rename into ...
1405         (mcpu_ext_opt): This.
1406         (dyn_march_ext_opt): Also rename into ...
1407         (march_ext_opt): This.
1408         (object_arch): Also rename into ...
1409         (selected_object_arch): This and make it a plain arm_feature_set
1410         structure.
1411         (selected_arch, selected_ext, selected_fpu): New static variables.
1412         (mark_feature_used): Fix comments, feature is marked as used iff it is
1413         currently allowed.
1414         (do_bx): Adapt to change in name and type of object_arch.
1415         (md_begin): Set selected_arch rather than mcpu_cpu_opt, selected_ext
1416         rather than dyn_mcpu_ext_opt and selected_fpu rather than mfpu_opt.
1417         Remove dead code to set default FPU if architecture version is greater
1418         than 5.  Set all CPU bits of cpu_variant directly in autodection
1419         leaving mcpu_cpu_opt, selected_arch and selected_cpu unset.
1420         (arm_parse_extension): Take extension feature set pointer parameter by
1421         value rather than by pointer.  Remove allocation code.  Adapt code
1422         accordingly.
1423         (arm_parse_cpu): Adapt to variable renaming and changes in
1424         arm_parse_extension () signature.
1425         (arm_parse_arch): Likewise.
1426         (aeabi_set_public_attributes): Also set selected_arch and selected_ext
1427         in addition to selected_cpu.  Set flags_arch and flags_ext from them
1428         instead of selected_cpu.  Adapt to variables renaming and type change.
1429         (arm_md_post_relax): Adapt to variable renaming.
1430         (s_arm_cpu): Set selcted_cpu_cpu and selected_ext instead of
1431         mcpu_cpu_opt and dyn_mcpu_ext_opt.  Set selected_cpu from them and
1432         cpu_variant from selected_cpu and selected_fpu.
1433         (s_arm_arch): Likewise.
1434         (s_arm_object_arch): Adapt to variable renaming.
1435         (s_arm_arch_extension): Use ARM_CPU_IS_ANY instead of checking feature
1436         set against arm_any.  Check selected_arch rather than *mcpu_cpu_opt.
1437         Set selected_ext rather than *dyn_mcpu_ext_opt and remove allocation
1438         code.
1439         (s_arm_fpu): Set selected_fpu instead of mfpu_opt.  Set all CPU feature
1440         bits if in autodetection mode.
1441
1442 2018-03-01  H.J. Lu  <hongjiu.lu@intel.com>
1443
1444         * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
1445         AVX512 vpsub[bwdq] instructions.
1446         * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
1447         AVX512 vpsub[bwdq] instructions.
1448         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1449         * testsuite/gas/i386/optimize-1.d: Updated.
1450         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1451
1452 2018-03-01  Alan Modra  <amodra@gmail.com>
1453
1454         * configure.ac (ALL_LINGUAS): Add uk.  Sort.
1455         * configure: Regenerate.
1456
1457 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1458
1459         * NEWS: Rename .nop to .nops.
1460         * doc/as.texinfo: Likewise.
1461         * read.c (potable): Add "nops".  Remove "nop".
1462         (s_nop): Renamed to ...
1463         (s_nops): This.
1464         * read.h (s_nop): Renamed to ...
1465         (s_nops): This.
1466         * write.c (cvt_frag_to_fill): Rename .nop to .nops.
1467         (md_generate_nops): Likewise.
1468         (relax_segment): Likewise.
1469         * testsuite/gas/i386/nop-1.d: Updated.
1470         * testsuite/gas/i386/nop-1.s: Likewise.
1471         * testsuite/gas/i386/nop-2.d: Likewise.
1472         * testsuite/gas/i386/nop-2.s: Likewise.
1473         * testsuite/gas/i386/nop-3.d: Likewise.
1474         * testsuite/gas/i386/nop-3.s: Likewise.
1475         * testsuite/gas/i386/nop-4.d: Likewise.
1476         * testsuite/gas/i386/nop-4.s: Likewise.
1477         * testsuite/gas/i386/nop-5.d: Likewise.
1478         * testsuite/gas/i386/nop-5.s: Likewise.
1479         * testsuite/gas/i386/nop-6.d: Likewise.
1480         * testsuite/gas/i386/nop-6.s: Likewise.
1481         * testsuite/gas/i386/nop-bad-1.l: Likewise.
1482         * testsuite/gas/i386/nop-bad-1.s: Likewise.
1483         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
1484         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
1485         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
1486         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
1487         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
1488         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
1489
1490 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1491
1492         PR gas/22871
1493         * NEWS: Mention -O[2|s].
1494         * config/tc-i386.c (_i386_insn): Add no_optimize.
1495         (optimize): New.
1496         (optimize_for_space): Likewise.
1497         (fits_in_imm7): New function.
1498         (fits_in_imm31): Likewise.
1499         (optimize_encoding): Likewise.
1500         (md_assemble): Call optimize_encoding to optimize encoding.
1501         (parse_insn): Handle {nooptimize}.
1502         (md_shortopts): Append "O::".
1503         (md_parse_option): Handle -On.
1504         * doc/c-i386.texi: Document -O0, -O, -O1, -O2 and -Os as well
1505         as {nooptimize}.
1506         * testsuite/gas/cfi/cfi-x86_64.d: Pass -O0 to assembler.
1507         * testsuite/gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
1508         * testsuite/gas/i386/i386.exp: Run optimize-1, optimize-2,
1509         optimize-3, x86-64-optimize-1, x86-64-optimize-2,
1510         x86-64-optimize-3 and x86-64-optimize-4.
1511         * testsuite/gas/i386/optimize-1.d: New file.
1512         * testsuite/gas/i386/optimize-1.s: Likewise.
1513         * testsuite/gas/i386/optimize-2.d: Likewise.
1514         * testsuite/gas/i386/optimize-2.s: Likewise.
1515         * testsuite/gas/i386/optimize-3.d: Likewise.
1516         * testsuite/gas/i386/optimize-3.s: Likewise.
1517         * testsuite/gas/i386/x86-64-optimize-1.s: Likewise.
1518         * testsuite/gas/i386/x86-64-optimize-1.d: Likewise.
1519         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1520         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1521         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1522         * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1523         * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
1524         * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
1525
1526 2018-02-27  Nick Clifton  <nickc@redhat.com>
1527
1528         * po/ru.po: Updated Russian translation.
1529
1530 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
1531
1532         * doc/as.texinfo (Pseudo Ops): Clean up `.dc' and `.ds'
1533         descriptions.
1534
1535 2018-02-26  Nick Clifton  <nickc@redhat.com>
1536
1537         * doc/as.texinfo (Dc): Fix typo.
1538
1539 2018-02-26  Alan Modra  <amodra@gmail.com>
1540
1541         * testsuite/gas/mips/reginfo-2.l: Update.
1542
1543 2018-02-23  Alan Modra  <amodra@gmail.com>
1544
1545         * testsuite/gas/mips/reginfo-2.l: Update.
1546
1547 2018-02-23  Nick Clifton  <nickc@redhat.com>
1548
1549         * doc/as.texinfo (Pseudo Ops): Add nodes for .dc, .dcb and .ds.
1550
1551 2018-02-23  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
1552
1553         * config/tc-nds32.c (ict_model): New function. Hook new
1554         directive .ict_model.
1555         (nds32_insert_relax_entry): Tag the bits of entry relocation
1556         for .ict_model.
1557
1558 2018-02-22  H.J. Lu  <hongjiu.lu@intel.com>
1559
1560         * config/tc-i386.c (_i386_insn): Add rex_encoding.
1561         (md_assemble): When i.rex_encoding is true, generate a REX byte
1562         if possible.
1563         (parse_insn): Set i.rex_encoding for {rex}.
1564         * doc/c-i386.texi: Document {rex}.
1565         * testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
1566         * testsuite/gas/i386/x86-64-pseudos.d: Updated.
1567
1568 2018-02-22  A. Wilcox  <awilfox@adelielinux.org>
1569
1570         PR 22014
1571         * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
1572         instruction size suffix.
1573
1574 2018-02-20  Maciej W. Rozycki  <macro@mips.com>
1575
1576         * testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
1577         * testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
1578         * testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
1579         * testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
1580         * testsuite/gas/mips/mips.exp: Run the new tests.
1581
1582 2018-02-20  Max Filippov  <jcmvbkbc@gmail.com>
1583
1584         * config/tc-xtensa.c (struct litpool_frag): Add new field
1585         literal_count.
1586         (MAX_AUTO_POOL_LITERALS, MAX_EXPLICIT_POOL_LITERALS)
1587         (MAX_POOL_LITERALS): New macro definitions.
1588         (auto_litpool_limit): Initialize to 0.
1589         (md_parse_option): Set auto_litpool_limit in the presence of
1590         --auto-litpools option.
1591         (xtensa_maybe_create_literal_pool_frag): Zero-initialize
1592         literal_count field.
1593         (xg_find_litpool): New function. Make sure that found literal
1594         pool size is within the limit.
1595         (xtensa_move_literals): Extract literal pool search code into
1596         the new function.
1597         * testsuite/gas/xtensa/all.exp: Add auto-litpools-2 test.
1598         * testsuite/gas/xtensa/auto-litpools-2.d: New file.
1599         * testsuite/gas/xtensa/auto-litpools-2.s: New file.
1600         * testsuite/gas/xtensa/auto-litpools.d: Fix up changed
1601         addresses.
1602         * testsuite/gas/xtensa/auto-litpools.s: Change literal value so
1603         that objdump doesn't get out of sync.
1604
1605 2018-02-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1606
1607         * doc/c-arm.texi (.arch_extension): Mention extensions it accepts are
1608         also the same as -march.
1609
1610 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
1611
1612         * NEWS: Mention .nop directive.
1613         * as.h (_relax_state): Add rs_space_nop and rs_fill_nop.
1614         * read.c (potable): Add .nop.
1615         (s_nop): New function.
1616         * read.h (s_nop): New prototype.
1617         * write.c (cvt_frag_to_fill): Handle rs_space_nop and
1618         rs_fill_nop.
1619         (md_generate_nops): New function.
1620         (relax_segment): Likewise.
1621         (write_contents): Use md_generate_nops for rs_fill_nop.
1622         * config/tc-i386.c (alt64_11): New.
1623         (alt64_patt): Likewise.
1624         (md_convert_frag): Handle rs_space_nop.
1625         (i386_output_nops): New function.
1626         (i386_generate_nops): Likewise.
1627         (i386_align_code): Call i386_output_nops.
1628         * config/tc-i386.h (i386_generate_nops): New.
1629         (md_generate_nops): Likewise.
1630         * doc/as.texinfo: Document .nop directive.
1631         * testsuite/gas/i386/i386.exp: Run .nop directive tests.
1632         * testsuite/gas/i386/nop-1.d: New file.
1633         * testsuite/gas/i386/nop-1.s: Likewise.
1634         * testsuite/gas/i386/nop-2.d: Likewise.
1635         * testsuite/gas/i386/nop-2.s: Likewise.
1636         * testsuite/gas/i386/nop-3.d: Likewise.
1637         * testsuite/gas/i386/nop-3.s: Likewise.
1638         * testsuite/gas/i386/nop-4.d: Likewise.
1639         * testsuite/gas/i386/nop-4.s: Likewise.
1640         * testsuite/gas/i386/nop-5.d: Likewise.
1641         * testsuite/gas/i386/nop-5.s: Likewise.
1642         * testsuite/gas/i386/nop-6.d: Likewise.
1643         * testsuite/gas/i386/nop-6.s: Likewise.
1644         * testsuite/gas/i386/nop-bad-1.l: Likewise.
1645         * testsuite/gas/i386/nop-bad-1.s: Likewise.
1646         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
1647         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
1648         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
1649         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
1650         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
1651         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
1652
1653 2018-02-15  Tamar Christina  <tamar.christina@arm.com>
1654
1655         * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
1656         * testsuite/gas/arm/attr-march-armv8_4-a.d: New.
1657
1658 2018-02-13  Max Filippov  <jcmvbkbc@gmail.com>
1659
1660         * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
1661         frag that contains source address.
1662
1663 2018-02-13  Nick Clifton  <nickc@redhat.com>
1664
1665         PR 22773
1666         * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
1667         instruction before assuming that it is a MOV instruction.
1668         * testsuite/gas/arm/pr22773.s: New test.
1669         * testsuite/gas/arm/pr22773.d: New test driver.
1670         * testsuite/gas/arm/pr22773.l: New expected output.
1671
1672 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
1673
1674         PR gas/22791
1675         * config/tc-i386.c (need_plt32_p): New function.
1676         (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
1677         (md_estimate_size_before_relax): Likewise.
1678         * testsuite/gas/i386/reloc64.d: Updated.
1679         * testsuite/gas/i386/x86-64-jump.d: Likewise.
1680         * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
1681         * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
1682         * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
1683         * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
1684         * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
1685         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
1686
1687 2018-02-13  Maciej W. Rozycki  <macro@mips.com>
1688
1689         * testsuite/gas/mips/loongson-3a-2.d: Rename test.
1690
1691 2018-02-13  Nick Clifton  <nickc@redhat.com>
1692
1693         PR 22823
1694         * config/obj-elf.c (elf_pseudo_table): Remove now redundant
1695         casts.
1696         (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
1697         (obj_elf_vtable_inherit): New stub function that calls
1698         obj_elf_get_vtable_inherit.
1699         (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
1700         (obj_elf_vtable_entry): New stub function that calls
1701         obj_elf_get_vtable_entry.
1702         * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
1703         (obj_elf_vtable_entry) Likewise.
1704         (obj_elf_get_vtable_inherit) Likewise.
1705         (obj_elf_get_vtable_entry) Likewise.
1706         * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
1707         * config/tc-i386c (md_pseudo_table): Likewise.
1708         * config/tc-hppa.c (pa_vtable_entry): Call
1709         obj_elf_get_vtable_entry.
1710         (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
1711         * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
1712         with call to dwarf2_get_filename.
1713         * dwarf2dbg.c (dwarf2_directive_file): Rename to
1714         dwarf2_directive_filename.
1715         (dwarf2_directive_file): New stub function that calls
1716         dwarf2_directive_filename.
1717         * dwarf2dbg.h: Prototype dwarf2_directive_filename.
1718
1719 2018-02-12  Maciej W. Rozycki  <macro@mips.com>
1720
1721         * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
1722         `as' flags.
1723
1724 2018-02-12  Henry Wong <henry@stuffedcow.net>
1725
1726         * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
1727         * testsuite/gas/mips/r6-n32.d: Likewise.
1728         * testsuite/gas/mips/r6-n64.d: Likewise.
1729
1730 2018-02-12  Nick Clifton  <nickc@redhat.com>
1731
1732         * po/ru.po: Updated Russian translation.
1733
1734 2018-02-08  Alan Modra  <amodra@gmail.com>
1735
1736         PR 22819
1737         * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
1738         (ppc_frag_check): Likewise.
1739         * testsuite/gas/ppc/misalign.d,
1740         * testsuite/gas/ppc/misalign.l,
1741         * testsuite/gas/ppc/misalign.s: New test.
1742         * testsuite/gas/ppc/misalign2.d,
1743         * testsuite/gas/ppc/misalign2.s: New test.
1744         * testsuite/gas/ppc/ppc.exp: Run them.
1745
1746 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1747
1748         * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
1749         `expr' parameter to `ep'.
1750
1751 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1752
1753         * testsuite/gas/mips/reginfo-2.d: New test.
1754         * testsuite/gas/mips/reginfo-2-n32.d: New test.
1755         * testsuite/gas/mips/reginfo-2.l: New test stderr output.
1756         * testsuite/gas/mips/reginfo-2.s: New test source.
1757         * testsuite/gas/mips/mips.exp: Run the new tests.
1758
1759 2018-02-05  Nick Clifton  <nickc@redhat.com>
1760
1761         * po/ru.po: Updated Russian translation.
1762
1763 2018-01-31  Alan Modra  <amodra@gmail.com>
1764
1765         PR 22714
1766         * app.c (last_char): New static var.
1767         (struct app_save): Add last_char field.
1768         (app_push, app_pop): Handle it.
1769         (do_scrub_chars): Use last_char in test for "\@".  Set last_char.
1770
1771 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
1772
1773         PR gas/22738
1774         * config/tc-sparc.h (sparc_mach): Declare.
1775         (TARGET_MACH): Define to above.
1776         * config/tc-sparc.c (sparc_mach): New function.
1777         (sparc_md_end): Minor tweak.
1778
1779 2018-01-29  Nick Clifton  <nickc@redhat.com>
1780
1781         * po/ru.po: Updated Russian translation.
1782
1783 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
1784
1785         * configure.tgt: Use generic emulation for `mips-*-windiss',
1786         overriding the blanket choice made for `*-*-windiss'.
1787
1788 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
1789
1790         * configure.tgt: Use `mips-*-sysv4*' rather than
1791         `mips-*-sysv4*MP*'.
1792
1793 2018-01-24  Renlin Li  <renlin.li@arm.com>
1794
1795         * config/tc-aarch64.c (reloc_table): add entries for
1796         BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1797         BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1798         BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1799         BFD_RELOC_AARCH64_MOVW_PREL_G3.
1800         (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
1801         (md_apply_fix): Likewise
1802         * testsuite/gas/aarch64/prel_g0.s: New.
1803         * testsuite/gas/aarch64/prel_g0.d: New.
1804         * testsuite/gas/aarch64/prel_g0_nc.s: New.
1805         * testsuite/gas/aarch64/prel_g0_nc.d: New.
1806         * testsuite/gas/aarch64/prel_g1.s: New.
1807         * testsuite/gas/aarch64/prel_g1.d: New.
1808         * testsuite/gas/aarch64/prel_g1_nc.s: New.
1809         * testsuite/gas/aarch64/prel_g1_nc.d: New.
1810         * testsuite/gas/aarch64/prel_g2.s: New.
1811         * testsuite/gas/aarch64/prel_g2.d: New.
1812         * testsuite/gas/aarch64/prel_g2_nc.s: New.
1813         * testsuite/gas/aarch64/prel_g2_nc.d: New.
1814         * testsuite/gas/aarch64/prel_g3.s: New.
1815         * testsuite/gas/aarch64/prel_g3.d: New.
1816
1817 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1818
1819         * configure.ac: Also set `mips_default_abi' to N32_ABI for
1820         `mips64*-ps2-elf*'.
1821         * configure: Regenerate.
1822
1823 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1824
1825         * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
1826         enum value.
1827
1828 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1829
1830         * config/tc-i386.c (cpu_arch): Add .pconfig.
1831         * doc/c-i386.texi: Document .pconfig.
1832         * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
1833         * testsuite/gas/i386/pconfig-intel.d: New test.
1834         * testsuite/gas/i386/pconfig.d: Likewise.
1835         * testsuite/gas/i386/pconfig.s: Likewise.
1836         * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
1837         * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
1838         * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
1839
1840 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1841
1842         * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
1843         * doc/c-i386.texi: Document .wbnoinvd.
1844         * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
1845         * testsuite/gas/i386/wbnoinvd-intel.d: New test.
1846         * testsuite/gas/i386/wbnoinvd.d: Likewise.
1847         * testsuite/gas/i386/wbnoinvd.s: Likewise.
1848         * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
1849         * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
1850         * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
1851
1852 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1853
1854         * config/tc-mips.c (md_show_usage): Correctly indicate the
1855         configuration-specific default ABI.
1856
1857 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1858
1859         * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
1860         `-mno-mips16e2' options.
1861
1862 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
1863
1864         * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
1865         Correct syntax of the `.set nomips16e2' directive description.
1866
1867 2018-01-22  Oleg Endo  <olegendo@gcc.gnu.org>
1868
1869         PR 22737
1870         * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
1871         * testsuite/gas/rx/pr22737.s: New test.
1872         * testsuite/gas/rx/pr22737.d: Likewise.
1873         * testsuite/gas/rx/rx.exp: Run the new test.
1874
1875 2018-01-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1876
1877         * config/tc-arm.c (ToC macro): Remove spurious comment.
1878         (ToU macro): Likewise.
1879
1880 2018-01-17  Jim Wilson  <jimw@sifive.com>
1881
1882         * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
1883         (riscv_ip) <'z'>: New.
1884
1885 2018-01-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1886
1887         * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
1888         (cpu_noarch): Add noibt, noshstk.
1889         (parse_insn): Change cpucet to cpuibt.
1890         * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
1891         * testsuite/gas/i386/cet-ibt-inval.l: New test.
1892         * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
1893         * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
1894         * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
1895         * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
1896         * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
1897         * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
1898         * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
1899
1900 2018-01-16  Nick Clifton  <nickc@redhat.com>
1901
1902         * po/fr.po: Updated French translation.
1903
1904 2018-01-15  Jim Wilson  <jimw@sifive.com>
1905
1906         * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
1907         * testsuite/gas/riscv/c-zero-imm.d: Likewise.
1908
1909 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1910
1911         * config/tc-arm.c (ToC): Define macro.
1912         (ToU): Likewise.
1913         (insns): Make use of above macros for new instructions introduced in
1914         Armv8-M.
1915
1916 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1917
1918         * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
1919         and vlstm conditionally executable and reindent parameters.
1920         * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
1921         aforementionned instructions.
1922
1923 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1924
1925         * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
1926         profile architecture or if in autodetection mode.  Clarify that
1927         deprecation is for performance reason and concerns Armv8-A and Armv8-R.
1928         * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
1929         message.
1930         * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
1931         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
1932         * testsuite/gas/arm/udf.l: Likewise.
1933         * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
1934
1935 2018-01-15  Nick Clifton  <nickc@redhat.com>
1936
1937         * po/uk.po: Updated Ukranian translation.
1938
1939 2018-01-13  Nick Clifton  <nickc@redhat.com>
1940
1941         * po/gas.pot: Regenerated.
1942
1943 2018-01-13  Nick Clifton  <nickc@redhat.com>
1944
1945         * configure: Regenerate.
1946
1947 2018-01-13  Nick Clifton  <nickc@redhat.com>
1948
1949         2.30 branch created.
1950         * NEWS: Add marker for 2.30.
1951
1952 2018-01-12  Gunther Nikl  <gnikl@users.sourceforge.net>
1953
1954         * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
1955         define to 0 and 1. Remove a dangling reference to "AMD 29000"
1956         in a comment.
1957
1958 2018-01-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1959
1960         * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
1961         * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
1962         * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
1963         * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
1964         * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
1965         * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
1966         * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
1967         * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
1968         tests.
1969         * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
1970         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
1971         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
1972         * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
1973         * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
1974         * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
1975         * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
1976         * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
1977
1978 2018-01-11  Alan Modra  <amodra@gmail.com>
1979
1980         * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
1981         positive "‘profile’ may be used uninitialized".
1982
1983 2018-01-10  Jan Beulich  <jbeulich@suse.com>
1984
1985         * testsuite/gas/i386/avx512_4fmaps.s,
1986         testsuite/gas/i386/avx512_4fmaps_vl.s,
1987         testsuite/gas/i386/x86-64-avx512_4fmaps.s,
1988         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
1989         Disp8 forms (and the transition happening at the right
1990         boundary).
1991         * testsuite/gas/i386/avx512_4fmaps.d,
1992         testsuite/gas/i386/avx512_4fmaps-intel.d,
1993         testsuite/gas/i386/avx512_4fmaps_vl.d,
1994         testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
1995         testsuite/gas/i386/x86-64-avx512_4fmaps.d,
1996         testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
1997         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
1998         testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
1999         expectations.
2000
2001 2018-01-10  Jan Beulich  <jbeulich@suse.com>
2002
2003         * testsuite/gas/i386/avx512bw.s,
2004         testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
2005         operands.
2006         * testsuite/gas/i386/avx512bw-intel.d,
2007         testsuite/gas/i386/avx512bw.d,
2008         testsuite/gas/i386/avx512bw_vl-intel.d.
2009         testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
2010
2011 2018-01-09  Jim Wilson  <jimw@sifive.com>
2012
2013         * testsuite/gas/riscv/auipc-x0.d: New.
2014         * testsuite/gas/riscv/auipc-x0.s: New.
2015
2016 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
2017
2018         * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
2019         in Arm execution state, and Armv6T2 and above in Thumb execution
2020         state.
2021         * testsuite/gas/arm/csdb.s: New.
2022         * testsuite/gas/arm/csdb.d: New.
2023         * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
2024         * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
2025
2026 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
2027
2028         * testsuite/gas/aarch64/system.d: Update expected results to expect
2029         CSDB for hint 0x14.
2030
2031 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
2032
2033         PR gas/22681
2034         * testsuite/gas/i386/i386.exp: Run x86-64-movd and
2035         x86-64-movd-intel.
2036         * testsuite/gas/i386/x86-64-movd-intel.d: New file.
2037         * testsuite/gas/i386/x86-64-movd.d: Likewise.
2038         * testsuite/gas/i386/x86-64-movd.s: Likewise.
2039
2040 2018-01-08  Nick Clifton  <nickc@redhat.com>
2041
2042         PR 22553
2043         * doc/c-i386.texi (i386-Directives): Document the .largecomm
2044         directive.
2045
2046 2018-01-04  Jim Wilson  <jimw@sifive.com>
2047
2048         * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
2049         * testsuite/gas/riscv/priv-reg.d: Likewise.
2050
2051 2018-01-03  Alan Modra  <amodra@gmail.com>
2052
2053         Update year range in copyright notice of all files.
2054
2055 2018-01-02  Nick Clifton  <nickc@redhat.com>
2056
2057         PR 18119
2058         * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
2059         version of ARM MRS instruction.
2060
2061 For older changes see ChangeLog-2017
2062 \f
2063 Copyright (C) 2018 Free Software Foundation, Inc.
2064
2065 Copying and distribution of this file, with or without modification,
2066 are permitted in any medium without royalty provided the copyright
2067 notice and this notice are preserved.
2068
2069 Local Variables:
2070 mode: change-log
2071 left-margin: 8
2072 fill-column: 74
2073 version-control: never
2074 End: