Specify architecture for SPARC gas tests
[external/binutils.git] / gas / ChangeLog
1 2018-07-20  Jose E. Marchesi  <jose.marchesi@oracle.com>
2             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3
4         * testsuite/gas/sparc/sparc.exp (set_tests_arch): New proc.
5         Prefix v9c, v9d, v9v, v9m, v9m8 tests with corresponding
6         set_tests_arch.
7
8 2018-07-19  Jan Beulich  <jbeulich@suse.com>
9
10         * config/tc-i386.c (build_evex_prefix): Derive vector length
11         from broadcast specification if necessary.
12         (match_template): Also exclude broadcast when checking whether
13         to reject 32-bit operands on pre-386.
14
15 2018-07-19  Jan Beulich  <jbeulich@suse.com>
16
17         * testsuite/gas/i386/noavx512-2.l: Adjust expectations.
18
19 2018-07-19  Jan Beulich  <jbeulich@suse.com>
20
21         * config/tc-i386.c (is_evex_encoding): Also check disp8memshift.
22         (optimize_encoding): Also cover templates without cpuavx512vl
23         allowing for zmmword and having a ymmword actual.
24         (check_VecOperands): Handle DISP8_SHIFT_VL.
25         * testsuite/gas/i386/noavx512-2.l: Adjust expectations.
26
27 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
28
29         * testsuite/gas/mips/loongson-2e.d: Correct whitespace issues.
30         * testsuite/gas/mips/loongson-2f.d: Likewise.
31         * testsuite/gas/mips/loongson-2f-2.d: Likewise.
32         * testsuite/gas/mips/loongson-2f-3.d: Likewise.
33         * testsuite/gas/mips/loongson-3a.d: Likewise.
34         * testsuite/gas/mips/loongson-3a-2.d: Likewise.
35         * testsuite/gas/mips/loongson-2e.s: Likewise.
36         * testsuite/gas/mips/loongson-2f.s: Likewise.
37         * testsuite/gas/mips/loongson-2f-3.s: Likewise.
38         * testsuite/gas/mips/loongson-3a.s: Likewise.
39         * testsuite/gas/mips/loongson-3a-2.s: Likewise.
40
41 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
42
43         PR gas/23418
44         * testsuite/gas/i386/xmmword.s: Add tests for vcvtps2qq,
45         vcvtps2uqq, vcvttps2qq and vcvttps2uqq.
46         * testsuite/gas/i386/xmmword.l: Updated.
47
48 2018-07-16  Jan Beulich  <jbeulich@suse.com>
49
50         * config/tc-i386.c (match_reg_size): Split second parameter
51         into two.
52         (match_simd_size): Likewise.
53         (match_mem_size): Likewise.
54         (MATCH_STRAIGHT, MATCH_REVERSE): Define.
55         (operand_size_match): Change return type. New local variable
56         "match". Always check for reverse match when opcode_modifier.d
57         is set.
58         (match_template) New local variable "size_match". Skip further
59         matching if operand_size_match() did not report a respective
60         match.
61         * testsuite/gas/i386/inval.s: Add control register reads/writes.
62         * testsuite/gas/i386/inval.l: Adjust expectations.
63
64 2018-07-13  Nick Clifton  <nickc@redhat.com>
65
66         * testsuite/gas/elf/missing-build-notes.s: New test.  Checks that
67         relocs are correctly generated for missing build notes.
68         * testsuite/gas/elf/missing-build-notes.d: New file.  Expected
69         output from objdump.
70         * testsuite/gas/elf/elf.exp: Run the new test.
71
72 2018-07-13  Nick Clifton  <nickc@redhat.com>
73
74         * config/tc-arm.c (do_neon_mov): When converting an integer
75         immediate into a floating point value, check that the conversion
76         is valid.  Also warn if the immediate is valid as both a floating
77         point value and a bit pattern.
78         * testsuite/gas/arm/vfp-mov-enc.s: Add instructions that use
79         floating point bit patterns.
80         * testsuite/gas/arm/vfp-mov-enc.d: Add regexps for the disassembly
81         of the new insns.
82
83 2018-07-12  Sudakshina Das  <sudi.das@arm.com>
84
85         * testsuite/gas/aarch64/system.s: Add test for ssbb
86         and pssbb.
87         * testsuite/gas/aarch64/system.d: Update accordingly
88         and remove explicit addresses.
89
90 2018-07-11  Tamar Christina  <tamar.christina@arm.com>
91
92         PR binutils/23192
93         * testsuite/gas/aarch64/illegal-by-element.s: New.
94         * testsuite/gas/aarch64/illegal-by-element.d: New.
95         * testsuite/gas/aarch64/illegal-by-element.l: New.
96
97 2018-07-11  Sudakshina Das  <sudi.das@arm.com>
98
99         * config/tc-arm.c (insns): Add new ssbb and pssbb instructions.
100         * testsuite/gas/arm/csdb.s: Add new tests for ssbb and pssbb.
101         * testsuite/gas/arm/csdb.d: Likewise
102         * testsuite/gas/arm/thumb2_it_bad.s: Likewise.
103         * testsuite/gas/arm/thumb2_it_bad.l: Likewise.
104         * testsuite/gas/arm/barrier.d: Update with ssbb.
105         * testsuite/gas/arm/barrier-thumb.d: Likewise.
106
107 2018-07-11  Jan Beulich  <jbeulich@suse.com>
108
109         * config/tc-i386.c (inoutportreg, reg16_inoutportreg): Delete.
110         (i386_att_operand): Replace uses of reg16_inoutportreg and
111         inoutportreg.
112
113 2018-07-11  Jan Beulich  <jbeulich@suse.com>
114
115         * config/tc-i386.c (output_insn): Remove check_prefix label and
116         fold remaining expression.
117
118 2018-07-11  Jan Beulich  <jbeulich@suse.com>
119
120         * testsuite/gas/i386/cet.s, testsuite/gas/i386/x86-64-cet.s:
121         Add Intel cases with operand size specifiers.
122         * testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
123         testsuite/gas/i386/x86-64-cet-intel.d,
124         testsuite/gas/i386/x86-64-cet.d: Adjust expectations.
125
126 2018-07-11  Jan Beulich  <jbeulich@suse.com>
127
128         * config/tc-i386.c (md_assemble): Also replace an already
129         present REP prefix.
130         * testsuite/gas/i386/mpx-add-bnd-prefix.s,
131         testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.s: Test RET with
132         all REP flavors.
133         * testsuite/gas/i386/mpx-add-bnd-prefix.d,
134         testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d: Adjust
135         expectations.
136         * testsuite/gas/i386/mpx-add-bnd-prefix.e,
137         testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.e: New.
138
139 2018-07-09  Jeff Law  <law@redhat.com>
140
141         * testsuite/nds32/ji-jr.d: Fix name tag.
142
143 2018-07-06  Tamar Christina  <tamar.christina@arm.com>
144
145         PR binutils/23369
146         * testsuite/gas/aarch64/msr.d (csselr_el1,
147         vsesr_el2, osdtrrx_el1, osdtrtx_el1, pmsidr_el1): New.
148         * testsuite/gas/aarch64/msr.s: Likewise.
149
150 2018-07-06  Nick Clifton  <nickc@redhat.com>
151
152         * write.c (maybe_generate_build_notes): Bias reloc offsets by the
153         number of notes already generated.
154
155 2018-07-05  Nick Clifton  <nickc@redhat.com>
156
157         * po/ru.po: Updated Russian translation.
158
159 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
160
161         * config/tc-mips.c (macro_build) <'i', 'j'>: Also accept
162         BFD_RELOC_16, BFD_RELOC_MIPS_GOT16, BFD_RELOC_MIPS_CALL16,
163         BFD_RELOC_MIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16,
164         BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16,
165         BFD_RELOC_MIPS_SUB, BFD_RELOC_MIPS_GOT_PAGE,
166         BFD_RELOC_MIPS_HIGHEST, BFD_RELOC_MIPS_GOT_DISP,
167         BFD_RELOC_MIPS_TLS_GD, BFD_RELOC_MIPS_TLS_LDM,
168         BFD_RELOC_MIPS_TLS_DTPREL_HI16, BFD_RELOC_MIPS_TLS_DTPREL_LO16,
169         BFD_RELOC_MIPS_TLS_GOTTPREL, BFD_RELOC_MIPS_TLS_TPREL_HI16 and
170         BFD_RELOC_MIPS_TLS_TPREL_LO16 relocations if in the microMIPS
171         mode.
172         * testsuite/gas/mips/elf-rel28-lldscd-n32.d: New test.
173         * testsuite/gas/mips/elf-rel28-lldscd-micromips-n32.d: New test.
174         * testsuite/gas/mips/elf-rel28-lldscd-n64.d: New test.
175         * testsuite/gas/mips/elf-rel28-lldscd-micromips-n64.d: New test.
176         * testsuite/gas/mips/elf-rel28.s: Add instruction selection.
177         * testsuite/gas/mips/mips.exp: Run the new tests.
178
179 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
180
181         * testsuite/gas/mips/elf-rel28-micromips-n32.d: New test.
182         * testsuite/gas/mips/elf-rel28-micromips-n64.d: New test.
183         * testsuite/gas/mips/mips.exp: Run the new tests.
184
185 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
186
187         * config/tc-arm.c (cpu_arch_ver): Use symbolic TAG_CPU_ARCH macros
188         rather than hardcode their values.
189
190 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
191
192         * NEWS: Use command-line consistently when used in a compount word.
193         * doc/as.texi: Likewise.
194         * doc/c-aarch64.texi: Likewise.
195         * doc/c-alpha.texi: Likewise.
196         * doc/c-arc.texi: Likewise.
197         * doc/c-arm.texi: Likewise.
198         * doc/c-avr.texi: Likewise.
199         * doc/c-bfin.texi: Likewise.
200         * doc/c-cris.texi: Likewise.
201         * doc/c-epiphany.texi: Likewise.
202         * doc/c-i386.texi: Likewise.
203         * doc/c-ia64.texi: Likewise.
204         * doc/c-lm32.texi: Likewise.
205         * doc/c-m32r.texi: Likewise.
206         * doc/c-m68k.texi: Likewise.
207         * doc/c-mips.texi: Likewise.
208         * doc/c-mmix.texi: Likewise.
209         * doc/c-msp430.texi: Likewise.
210         * doc/c-mt.texi: Likewise.
211         * doc/c-nios2.texi: Likewise.
212         * doc/c-ppc.texi: Likewise.
213         * doc/c-pru.texi: Likewise.
214         * doc/c-rl78.texi: Likewise.
215         * doc/c-rx.texi: Likewise.
216         * doc/c-tic6x.texi: Likewise.
217         * doc/c-v850.texi: Likewise.
218         * doc/c-vax.texi: Likewise.
219         * doc/c-visium.texi: Likewise.
220         * doc/c-xstormy16.texi: Likewise.
221         * doc/c-xtensa.texi: Likewise.
222         * doc/c-z80.texi: Likewise.
223         * doc/c-z8k.texi: Likewise.
224         * doc/internals.texi: Likewise.
225
226 2018-06-29  Jim Wilson  <jimw@sifive.com>
227
228         * config/tc-riscv.c (md_begin): Call hash_reg_name for "fp".
229
230 2018-06-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
231
232         * config/tc-aarch64.c (warn_unpredictable_ldst): Add unpredictable
233         cases for ldxp, stlxrb, stlxrh, stlxr.
234         * testsuite/gas/aarch64/diagnostic.s: New tests.
235         * testsuite/gas/aarch64/diagnostic.l: Adjust.
236
237 2018-06-29  Tamar Christina  <tamar.christina@arm.com>
238
239         PR binutils/23192
240         * config/tc-aarch64.c (process_omitted_operand, parse_operands): Add
241         AARCH64_OPND_Em16
242         * testsuite/gas/aarch64/advsimd-armv8_3.s: Expand tests to cover upper
243         16 registers.
244         * testsuite/gas/aarch64/advsimd-armv8_3.d: Likewise.
245         * testsuite/gas/aarch64/advsimd-compnum.s: Likewise.
246         * testsuite/gas/aarch64/advsimd-compnum.d: Likewise.
247         * testsuite/gas/aarch64/sve.d: Likewise.
248
249 2018-06-27  Alan Modra  <amodra@gmail.com>
250
251         * configure.ac: Specify extra_objects with leading "config/"
252         for xtensa-relax.o and te-vms.o.  Use case statements to unique
253         extra_objects.  Formatting.
254         * configure: Regenerate.
255
256 2018-06-26  Nick Clifton  <nickc@redhat.com>
257
258         * po/uk.po: Updated Ukranian translation.
259
260 2018-06-26  Nick Clifton  <nickc@redhat.com>
261
262         PR 23335
263         * config/tc-msp430.c (check_reg): Only accept register name
264         strings that do not end in an alphanumeric character.
265         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
266
267 2018-06-24  Nick Clifton  <nickc@redhat.com>
268
269         * configure: Regenerate.
270         * po/gas.pot: Regenerate.
271
272 2018-06-24  Nick Clifton  <nickc@redhat.com>
273
274         2.31 branch created.
275         * NEWS: Add marker for 2.31.
276
277 2018-06-22  Tamar Christina  <tamar.christina@arm.com>
278
279         * testsuite/gas/aarch64/addsub.s: Add negs to zero reg test.
280         * testsuite/gas/aarch64/addsub.d: Likewise.
281
282 2018-06-21  Alan Modra  <amodra@gmail.com>
283
284         * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
285         * doc/Makefile.in: Regenerate.
286
287 2018-06-20  Nick Clifton  <nickc@redhat.com>
288
289         PR 21458
290         * tc-arm.c (do_adr): Only set the bottom bit of an imported thumb
291         function symbol address if -mthumb-interwork is active.
292         (do_adrl): Likewise.
293         * doc/c-arm.texi: Update descriptions of the -mthumb-interwork
294         option and the ADR and ADRL pseudo-ops.
295         * NEWS: Mention the new behaviour of the ADR and ADRL pseudo-ops.
296         * testsuite/gas/arm/pr21458.d: Add -mthumb-interwork option to
297         assembler command line.
298         * testsuite/gas/arm/adr.d: Likewise.
299         * testsuite/gas/arm/adrl.d: Likewise.
300
301 2018-06-20  Sebastian Huber  <sebastian.huber@embedded-brains.de>
302
303         PR gas/23305
304         * config/tc-riscv.c (riscv_ip): Add format specifier 'B' for
305         constants and symbols.
306         * testsuite/gas/riscv/lla32.d: New file.
307         * testsuite/gas/riscv/lla32.s: Likewise.
308         * testsuite/gas/riscv/lla64-fail.d: Likewise.
309         * testsuite/gas/riscv/lla64-fail.l: Likewise.
310         * testsuite/gas/riscv/lla64-fail.s: Likewise.
311         * testsuite/gas/riscv/lla64.d: Likewise.
312         * testsuite/gas/riscv/lla64.s: Likewise.
313
314 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
315
316         * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11, add subdir-objects.
317         (TARG_CPU_O, OBJ_FORMAT_O, ATOF_TARG_O): Add config/ prefix.
318         * configure.ac (TARG_CPU_O, OBJ_FORMAT_O, ATOF_TARG_O, emfiles,
319         extra_objects): Add config/ prefix.
320         * doc/as.texinfo: Rename to...
321         * doc/as.texi: ... this.
322         * doc/Makefile.am: Rename as.texinfo to as.texi throughout.
323         Remove DISTCLEANFILES hack.
324         (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add no-texinfo.tex and
325         info-in-builddir.
326         * Makefile.in: Re-generate.
327         * aclocal.m4: Re-generate.
328         * config.in: Re-generate.
329         * configure: Re-generate.
330         * doc/Makefile.in: Re-generate.
331
332 2018-06-14  Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
333
334         * NEWS: Mention MIPS Global INValidate ASE support.
335         * config/tc-mips.c (options): Add OPTION_GINV and OPTION_NO_GINV.
336         (md_longopts): Likewise.
337         (mips_ases): Define availability for GINV.
338         (mips_convert_ase_flags): Map ASE_GINV to AFL_ASE_GINV.
339         (md_show_usage): Add help for -mginv and -mno-ginv.
340         * doc/as.texinfo: Document -mginv, -mno-ginv.
341         * doc/c-mips.texi: Document -mginv, -mno-ginv, .set ginv and
342         .set noginv.
343         * testsuite/gas/mips/ase-errors-1.s: Add error checks for GINV
344         ASE.
345         * testsuite/gas/mips/ase-errors-2.s: Likewise.
346         * testsuite/gas/mips/ase-errors-1.l: Likewise.
347         * testsuite/gas/mips/ase-errors-2.l: Likewise.
348         * testsuite/gas/mips/ginv.d: New test.
349         * testsuite/gas/mips/ginv-err.d: New test.
350         * testsuite/gas/mips/ginv-err.l: New test stderr output.
351         * testsuite/gas/mips/ginv.s: New test source.
352         * testsuite/gas/mips/ginv-err.s: New test source.
353         * testsuite/gas/mips/mips.exp: Run the new tests.
354
355 2018-06-13  Scott Egerton  <scott.egerton@imgtec.com>
356             Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
357             Maciej W. Rozycki  <macro@mips.com>
358
359         * NEWS: Mention CRC ASE support.
360         * config/tc-mips.c (options): Add OPTION_CRC and OPTION_NO_CRC.
361         (md_longopts): Likewise.
362         (md_show_usage): Add help for -mcrc and -mno-crc.
363         (mips_ases): Define availability for CRC and CRC64.
364         (mips_convert_ase_flags): Map ASE_CRC to AFL_ASE_CRC.
365         * doc/as.texinfo: Document -mcrc, -mno-crc.
366         * doc/c-mips.texi: Document -mcrc, -mno-crc, .set crc and
367         .set no-crc.
368         * testsuite/gas/mips/ase-errors-1.l: Add error checks for CRC
369         ASE.
370         * testsuite/gas/mips/ase-errors-2.l: Likewise.
371         * testsuite/gas/mips/ase-errors-1.s: Likewise.
372         * testsuite/gas/mips/ase-errors-2.s: Likewise.
373         * testsuite/gas/mips/crc.d: New test.
374         * testsuite/gas/mips/crc64.d: New test.
375         * testsuite/gas/mips/crc-err.d: New test.
376         * testsuite/gas/mips/crc64-err.d: New test.
377         * testsuite/gas/mips/crc-err.l: New test stderr output.
378         * testsuite/gas/mips/crc64-err.l: New test stderr output.
379         * testsuite/gas/mips/crc.s: New test source.
380         * testsuite/gas/mips/crc64.s: New test source.
381         * testsuite/gas/mips/crc-err.s: New test source.
382         * testsuite/gas/mips/crc64-err.s: New test source.
383         * testsuite/gas/mips/mips.exp: Run the new tests.
384
385 2018-06-11  Maciej W. Rozycki  <macro@mips.com>
386
387         * config/tc-mips.c (md_show_usage): Correct help text for `-O0'
388         and `-O'.  Mention `-O1'.  Add `-O2' and its description.
389
390 2018-06-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
391
392         * config/tc-arm.c (arm_cpus): Add Cortex-A76 entry.
393         * doc/c-arm.texi (-mcpu): Document cortex-a76.
394
395 2018-06-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
396
397         * config/tc-aarch64.c (aarch64_cpus): Add Cortex-A76 entry.
398         * doc/c-aarch64.texi (-mcpu): Document cortex-a76.
399
400 2018-06-08  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>
401
402         PR 20319
403         * testsuite/gas/aarch64/illegal-3.s: Test if unallocated FMOV encodings
404         are detected as undefined.
405         * testsuite/gas/aarch64/illegal-3.d: Likewise.
406         * testsuite/gas/aarch64/illegal.s: Test if FMOV instructions that are
407         changing the size from 32 bits to 64 bits and vice versa trigger an
408         error.
409         * testsuite/gas/aarch64/illegal.l: Likewise.
410
411 2018-06-08  Tamar Christina  <tamar.christina@arm.com>
412
413         PR binutils/21446
414         * tc-aarch64.c (record_operand_error, record_operand_error_with_data):
415           Initialize non_fatal.
416
417 2018-06-06  Sameera Deshpande  <sameera.deshpande@linaro.org>
418
419         * config/tc-aarch64.c (aarch64_cpus): Add support of ARMv8.4 in
420         saphira.
421
422 2018-06-05  Alan Modra  <amodra@gmail.com>
423
424         * Makefile.in: Regenerate.
425
426 2018-06-04  Volodymyr Arbatov  <arbatov@cadence.com>
427
428         * config/tc-xtensa.c (elf32xtensa_separate_props): New
429         declaration.
430         (option_separate_props, option_no_separate_props): New
431         enumeration constants.
432         (md_longopts): Add separate-prop-tables option.
433         (md_parse_option): Add cases for option_separate_props and
434         option_no_separate_props.
435         (md_show_usage): Add help for [no-]separate-prop-tables options.
436
437 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
438
439         * configure: Regenerated.
440
441 2018-06-01  Alexandre Oliva <aoliva@redhat.com>
442
443         * dwarf2dbg.c (dwarf2_consume_line_info): Drop view.
444
445 2018-06-01  Jan Beulich  <jbeulich@suse.com>
446
447         * testsuite/gas/i386/ilp32/x86-64-opcode.d,
448         testsuite/gas/i386/x86-64-opcode.d: Adjust expectations.
449
450 2018-06-01  Jan Beulich  <jbeulich@suse.com>
451
452         * config/tc-i386.c (add_prefix): Check REX bits individually.
453         * testsuite/gas/i386/rex.s: Add tests for overriding individual
454         REX bits, including when others are already set.
455         * testsuite/gas/i386/ilp32/rex.d, testsuite/gas/i386/rex.d:
456         Adjust expectations.
457
458 2018-06-01  Jan Beulich  <jbeulich@suse.com>
459
460         * config/tc-i386.c (control): Delete.
461         (parse_real_register): Simply check "control" bit. Re-wrap.
462
463 2018-06-01  Jan Beulich  <jbeulich@suse.com>
464
465         * config/tc-i386.c (build_modrm_byte): Drop REX_B from condition
466         checking for the need of emitting LOCK. Check "control" bit just
467         once.
468
469 2018-06-01  Jan Beulich  <jbeulich@suse.com>
470
471         *  testsuite/gas/i386/invpcid.s,
472         testsuite/gas/i386/x86-64-invpcid.s: Add test with explicit
473         "oword ptr".
474         * testsuite/gas/i386/invpcid.d,
475         testsuite/gas/i386/invpcid-intel.d,
476         testsuite/gas/i386/x86-64-invpcid.d,
477         testsuite/gas/i386/x86-64-invpcid-intel.d: Adjust expectations.
478
479 2018-05-30  Amit Pawar  <amit.pawar@amd.com>
480
481         * config/tc-i386.c (cpu_flag_init): Add CPU_ZNVER2_FLAGS.
482         * doc/c-i386.texi : Document znver2.
483         * gas/testsuite/gas/i386/arch-13.s: Updated for znver2.
484         * gas/testsuite/gas/i386/arch-13.d: Updated.
485         * gas/testsuite/gas/i386/arch-13-znver1.d: Updated.
486         * gas/testsuite/gas/i386/arch-13-znver2.d: New file.
487         * gas/testsuite/gas/i386/x86-64-arch-3.s: Updated for znver2.
488         * gas/testsuite/gas/i386/x86-64-arch-3.d: Updated.
489         * gas/testsuite/gas/i386/x86-64-arch-3-znver1.d: Updated.
490         * gas/testsuite/gas/i386/x86-64-arch-3-znver2.d: New file.
491         * gas/testsuite/gas/i386/i386.exp: Updated for new test.
492
493 2018-05-25  Alan Modra  <amodra@gmail.com>
494
495         * po/POTFILES.in: Regenerate.
496
497 2018-05-24  Jim Wilson  <jimw@sifive.com>
498
499         PR gas/23219
500         * config/tc-riscv.c (riscv_frag_align_code): Move frag_more call after
501         !riscv_opts.relax check.
502         (riscv_handle_align): Rewrite !riscv_opts.relax support.
503         * config/tc-riscv (MAX_MEM_FOR_RS_ALIGN_CODE): Update.
504         * testsuite/gas/riscv/no-relax-align.d: New
505         * testsuite/gas/riscv/no-relax-align.s: New
506         * testsuite/gas/riscv/no-relax-align-2.d: New
507         * testsuite/gas/riscv/no-relax-align-2.s: New
508
509 2018-05-21  Peter Bergner  <bergner@vnet.ibm.com.com>
510
511         * config/tc-ppc.c (md_assemble): Delete handling of fake operands.
512         * testsuite/gas/ppc/common.s (crmove, cror, or., or, nor., nor): Add
513         test of extended mnemonics.
514         * testsuite/gas/ppc/common.d: Likewise.  Don't match instruction offset.
515         * testsuite/gas/ppc/spe.s (evor, evnor): Add test of extended mnemonics.
516         * testsuite/gas/ppc/spe.d: Likewise.  Don't match instruction offset.
517
518 2018-05-18  Kito Cheng  <kito.cheng@gmail.com>
519             Monk Chiang  <sh.chiang04@gmail.com>
520             Jim Wilson <jimw@sifive.com>
521
522         * config/tc-riscv.c (rve_abi): New.
523         (riscv_set_options): Add rve field.  Initialize it.
524         (riscv_set_rve) New function.
525         (riscv_set_arch): Support 'e' ISA subset.
526         (reg_lookup_internal): If rve, check register is available.
527         (riscv_set_abi): New parameter rve.
528         (md_parse_option): Pass new argument to riscv_set_abi.
529         (riscv_after_parse_args): Call riscv_set_rve.  If rve_abi, set
530         EF_RISCV_RVE.
531         * doc/c-riscv.texi (-mabi): Document new ilp32e argument.
532
533 2018-05-18  John Darrington  <john@darrington.wattle.id.au>
534
535         * Makefile.am: Add support for s12z target.
536         * Makefile.in: Regenerate.
537         * NEWS: Mention the new support.
538         * config/tc-s12z.c: New file.
539         * config/tc-s12z.h: New file.
540         * configure.tgt: Add  s12z support.
541         * doc/Makefile.am: Likewise.
542         * doc/Makefile.in: Regenerate.
543         * doc/all.texi: Add s12z documentation.
544         * doc/as.textinfo: Likewise.
545         * doc/c-s12z.texi: New file.
546         * testsuite/gas/s12z: New directory.
547         * testsuite/gas/s12z/abs.d: New file.
548         * testsuite/gas/s12z/abs.s: New file.
549         * testsuite/gas/s12z/adc-imm.d: New file.
550         * testsuite/gas/s12z/adc-imm.s: New file.
551         * testsuite/gas/s12z/adc-opr.d: New file.
552         * testsuite/gas/s12z/adc-opr.s: New file.
553         * testsuite/gas/s12z/add-imm.d: New file.
554         * testsuite/gas/s12z/add-imm.s: New file.
555         * testsuite/gas/s12z/add-opr.d: New file.
556         * testsuite/gas/s12z/add-opr.s: New file.
557         * testsuite/gas/s12z/and-imm.d: New file.
558         * testsuite/gas/s12z/and-imm.s: New file.
559         * testsuite/gas/s12z/and-opr.d: New file.
560         * testsuite/gas/s12z/and-opr.s: New file.
561         * testsuite/gas/s12z/and-or-cc.d: New file.
562         * testsuite/gas/s12z/and-or-cc.s: New file.
563         * testsuite/gas/s12z/bfext-special.d: New file.
564         * testsuite/gas/s12z/bfext-special.s: New file.
565         * testsuite/gas/s12z/bfext.d: New file.
566         * testsuite/gas/s12z/bfext.s: New file.
567         * testsuite/gas/s12z/bit-manip.d: New file.
568         * testsuite/gas/s12z/bit-manip.s: New file.
569         * testsuite/gas/s12z/bit.d: New file.
570         * testsuite/gas/s12z/bit.s: New file.
571         * testsuite/gas/s12z/bra-expression-defined.d: New file.
572         * testsuite/gas/s12z/bra-expression-defined.s: New file.
573         * testsuite/gas/s12z/bra-expression-undef.d: New file.
574         * testsuite/gas/s12z/bra-expression-undef.s: New file.
575         * testsuite/gas/s12z/bra.d: New file.
576         * testsuite/gas/s12z/bra.s: New file.
577         * testsuite/gas/s12z/brclr-symbols.d: New file.
578         * testsuite/gas/s12z/brclr-symbols.s: New file.
579         * testsuite/gas/s12z/brset-clr-opr-imm-rel.d: New file.
580         * testsuite/gas/s12z/brset-clr-opr-imm-rel.s: New file.
581         * testsuite/gas/s12z/brset-clr-opr-reg-rel.d: New file.
582         * testsuite/gas/s12z/brset-clr-opr-reg-rel.s: New file.
583         * testsuite/gas/s12z/brset-clr-reg-imm-rel.d: New file.
584         * testsuite/gas/s12z/brset-clr-reg-imm-rel.s: New file.
585         * testsuite/gas/s12z/brset-clr-reg-reg-rel.d: New file.
586         * testsuite/gas/s12z/brset-clr-reg-reg-rel.s: New file.
587         * testsuite/gas/s12z/clb.d: New file.
588         * testsuite/gas/s12z/clb.s: New file.
589         * testsuite/gas/s12z/clr-opr.d: New file.
590         * testsuite/gas/s12z/clr-opr.s: New file.
591         * testsuite/gas/s12z/clr.d: New file.
592         * testsuite/gas/s12z/clr.s: New file.
593         * testsuite/gas/s12z/cmp-imm.d: New file.
594         * testsuite/gas/s12z/cmp-imm.s: New file.
595         * testsuite/gas/s12z/cmp-opr-inc.d: New file.
596         * testsuite/gas/s12z/cmp-opr-inc.s: New file.
597         * testsuite/gas/s12z/cmp-opr-rdirect.d: New file.
598         * testsuite/gas/s12z/cmp-opr-rdirect.s: New file.
599         * testsuite/gas/s12z/cmp-opr-reg.d: New file.
600         * testsuite/gas/s12z/cmp-opr-reg.s: New file.
601         * testsuite/gas/s12z/cmp-opr-rindirect.d: New file.
602         * testsuite/gas/s12z/cmp-opr-rindirect.s: New file.
603         * testsuite/gas/s12z/cmp-opr-sxe4.d: New file.
604         * testsuite/gas/s12z/cmp-opr-sxe4.s: New file.
605         * testsuite/gas/s12z/cmp-opr-xys.d: New file.
606         * testsuite/gas/s12z/cmp-opr-xys.s: New file.
607         * testsuite/gas/s12z/cmp-s-imm.d: New file.
608         * testsuite/gas/s12z/cmp-s-imm.s: New file.
609         * testsuite/gas/s12z/cmp-s-opr.d: New file.
610         * testsuite/gas/s12z/cmp-s-opr.s: New file.
611         * testsuite/gas/s12z/cmp-xy.d: New file.
612         * testsuite/gas/s12z/cmp-xy.s: New file.
613         * testsuite/gas/s12z/com-opr.d: New file.
614         * testsuite/gas/s12z/com-opr.s: New file.
615         * testsuite/gas/s12z/complex-shifts.d: New file.
616         * testsuite/gas/s12z/complex-shifts.s: New file.
617         * testsuite/gas/s12z/db-tb-cc-opr.d: New file.
618         * testsuite/gas/s12z/db-tb-cc-opr.s: New file.
619         * testsuite/gas/s12z/db-tb-cc-reg.d: New file.
620         * testsuite/gas/s12z/db-tb-cc-reg.s: New file.
621         * testsuite/gas/s12z/dbCC.d: New file.
622         * testsuite/gas/s12z/dbCC.s: New file.
623         * testsuite/gas/s12z/dec-opr.d: New file.
624         * testsuite/gas/s12z/dec-opr.s: New file.
625         * testsuite/gas/s12z/dec.d: New file.
626         * testsuite/gas/s12z/dec.s: New file.
627         * testsuite/gas/s12z/div.d: New file.
628         * testsuite/gas/s12z/div.s: New file.
629         * testsuite/gas/s12z/eor.d: New file.
630         * testsuite/gas/s12z/eor.s: New file.
631         * testsuite/gas/s12z/exg.d: New file.
632         * testsuite/gas/s12z/exg.s: New file.
633         * testsuite/gas/s12z/ext24-ld-xy.d: New file.
634         * testsuite/gas/s12z/ext24-ld-xy.s: New file.
635         * testsuite/gas/s12z/inc-opr.d: New file.
636         * testsuite/gas/s12z/inc-opr.s: New file.
637         * testsuite/gas/s12z/inc.d: New file.
638         * testsuite/gas/s12z/inc.s: New file.
639         * testsuite/gas/s12z/inh.d: New file.
640         * testsuite/gas/s12z/inh.s: New file.
641         * testsuite/gas/s12z/jmp.d: New file.
642         * testsuite/gas/s12z/jmp.s: New file.
643         * testsuite/gas/s12z/jsr.d: New file.
644         * testsuite/gas/s12z/jsr.s: New file.
645         * testsuite/gas/s12z/ld-imm-page2.d: New file.
646         * testsuite/gas/s12z/ld-imm-page2.s: New file.
647         * testsuite/gas/s12z/ld-imm.d: New file.
648         * testsuite/gas/s12z/ld-imm.s: New file.
649         * testsuite/gas/s12z/ld-immu18.d: New file.
650         * testsuite/gas/s12z/ld-immu18.s: New file.
651         * testsuite/gas/s12z/ld-large-direct.d: New file.
652         * testsuite/gas/s12z/ld-large-direct.s: New file.
653         * testsuite/gas/s12z/ld-opr.d: New file.
654         * testsuite/gas/s12z/ld-opr.s: New file.
655         * testsuite/gas/s12z/ld-s-opr.d: New file.
656         * testsuite/gas/s12z/ld-s-opr.s: New file.
657         * testsuite/gas/s12z/ld-small-direct.d: New file.
658         * testsuite/gas/s12z/ld-small-direct.s: New file.
659         * testsuite/gas/s12z/lea-immu18.d: New file.
660         * testsuite/gas/s12z/lea-immu18.s: New file.
661         * testsuite/gas/s12z/lea.d: New file.
662         * testsuite/gas/s12z/lea.s: New file.
663         * testsuite/gas/s12z/mac.d: New file.
664         * testsuite/gas/s12z/mac.s: New file.
665         * testsuite/gas/s12z/min-max.d: New file.
666         * testsuite/gas/s12z/min-max.s: New file.
667         * testsuite/gas/s12z/mod.d: New file.
668         * testsuite/gas/s12z/mod.s: New file.
669         * testsuite/gas/s12z/mov.d: New file.
670         * testsuite/gas/s12z/mov.s: New file.
671         * testsuite/gas/s12z/mul-imm.d: New file.
672         * testsuite/gas/s12z/mul-imm.s: New file.
673         * testsuite/gas/s12z/mul-opr-opr.d: New file.
674         * testsuite/gas/s12z/mul-opr-opr.s: New file.
675         * testsuite/gas/s12z/mul-opr.d: New file.
676         * testsuite/gas/s12z/mul-opr.s: New file.
677         * testsuite/gas/s12z/mul-reg.d: New file.
678         * testsuite/gas/s12z/mul-reg.s: New file.
679         * testsuite/gas/s12z/mul.d: New file.
680         * testsuite/gas/s12z/mul.s: New file.
681         * testsuite/gas/s12z/neg-opr.d: New file.
682         * testsuite/gas/s12z/neg-opr.s: New file.
683         * testsuite/gas/s12z/not-so-simple-shifts.d: New file.
684         * testsuite/gas/s12z/not-so-simple-shifts.s: New file.
685         * testsuite/gas/s12z/opr-18u.d: New file.
686         * testsuite/gas/s12z/opr-18u.s: New file.
687         * testsuite/gas/s12z/opr-expr.d: New file.
688         * testsuite/gas/s12z/opr-expr.s: New file.
689         * testsuite/gas/s12z/opr-ext-18.d: New file.
690         * testsuite/gas/s12z/opr-ext-18.s: New file.
691         * testsuite/gas/s12z/opr-idx-24-reg.d: New file.
692         * testsuite/gas/s12z/opr-idx-24-reg.s: New file.
693         * testsuite/gas/s12z/opr-idx3-reg.d: New file.
694         * testsuite/gas/s12z/opr-idx3-reg.s: New file.
695         * testsuite/gas/s12z/opr-idx3-xysp-24.d: New file.
696         * testsuite/gas/s12z/opr-idx3-xysp-24.s: New file.
697         * testsuite/gas/s12z/opr-indirect-expr.d: New file.
698         * testsuite/gas/s12z/opr-indirect-expr.s: New file.
699         * testsuite/gas/s12z/opr-symbol.d: New file.
700         * testsuite/gas/s12z/opr-symbol.s: New file.
701         * testsuite/gas/s12z/or-imm.d: New file.
702         * testsuite/gas/s12z/or-imm.s: New file.
703         * testsuite/gas/s12z/or-opr.d: New file.
704         * testsuite/gas/s12z/or-opr.s: New file.
705         * testsuite/gas/s12z/p2-mul.d: New file.
706         * testsuite/gas/s12z/p2-mul.s: New file.
707         * testsuite/gas/s12z/page2-inh.d: New file.
708         * testsuite/gas/s12z/page2-inh.s: New file.
709         * testsuite/gas/s12z/psh-pul.d: New file.
710         * testsuite/gas/s12z/psh-pul.s: New file.
711         * testsuite/gas/s12z/qmul.d: New file.
712         * testsuite/gas/s12z/qmul.s: New file.
713         * testsuite/gas/s12z/rotate.d: New file.
714         * testsuite/gas/s12z/rotate.s: New file.
715         * testsuite/gas/s12z/s12z.exp: New file.
716         * testsuite/gas/s12z/sat.d: New file.
717         * testsuite/gas/s12z/sat.s: New file.
718         * testsuite/gas/s12z/sbc-imm.d: New file.
719         * testsuite/gas/s12z/sbc-imm.s: New file.
720         * testsuite/gas/s12z/sbc-opr.d: New file.
721         * testsuite/gas/s12z/sbc-opr.s: New file.
722         * testsuite/gas/s12z/shift.d: New file.
723         * testsuite/gas/s12z/shift.s: New file.
724         * testsuite/gas/s12z/simple-shift.d: New file.
725         * testsuite/gas/s12z/simple-shift.s: New file.
726         * testsuite/gas/s12z/single-ops.d: New file.
727         * testsuite/gas/s12z/single-ops.s: New file.
728         * testsuite/gas/s12z/specd6.d: New file.
729         * testsuite/gas/s12z/specd6.s: New file.
730         * testsuite/gas/s12z/st-large-direct.d: New file.
731         * testsuite/gas/s12z/st-large-direct.s: New file.
732         * testsuite/gas/s12z/st-opr.d: New file.
733         * testsuite/gas/s12z/st-opr.s: New file.
734         * testsuite/gas/s12z/st-s-opr.d: New file.
735         * testsuite/gas/s12z/st-s-opr.s: New file.
736         * testsuite/gas/s12z/st-small-direct.d: New file.
737         * testsuite/gas/s12z/st-small-direct.s: New file.
738         * testsuite/gas/s12z/st-xy.d: New file.
739         * testsuite/gas/s12z/st-xy.s: New file.
740         * testsuite/gas/s12z/sub-imm.d: New file.
741         * testsuite/gas/s12z/sub-imm.s: New file.
742         * testsuite/gas/s12z/sub-opr.d: New file.
743         * testsuite/gas/s12z/sub-opr.s: New file.
744         * testsuite/gas/s12z/tfr.d: New file.
745         * testsuite/gas/s12z/tfr.s: New file.
746         * testsuite/gas/s12z/trap.d: New file.
747         * testsuite/gas/s12z/trap.s: New file.
748
749 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
750
751         * tc-nds32.c (md_assemble): Rename `expr' local variable to
752         `insn_expr'.
753
754 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
755
756         PR binutils/21446
757         * testsuite/gas/aarch64/illegal-sysreg-2.s: Fix pmbidr_el1 test.
758         * testsuite/gas/aarch64/illegal-sysreg-2.l: Likewise.
759         * testsuite/gas/aarch64/illegal-sysreg-2.d: Likewise.
760         * testsuite/gas/aarch64/sysreg-diagnostic.s: New.
761         * testsuite/gas/aarch64/sysreg-diagnostic.l: New.
762         * testsuite/gas/aarch64/sysreg-diagnostic.d: New.
763
764 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
765
766         PR binutils/21446
767         * config/tc-aarch64.c (print_operands): Indicate no notes.
768         (output_operand_error_record): Support non-fatal errors.
769         (output_operand_error_report, warn_unpredictable_ldst, md_assemble):
770         Likewise.
771
772 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
773
774         PR binutils/21446
775         * config/tc-aarch64.c (parse_sys_reg): Return register flags.
776         (parse_operands): Fill in register flags.
777
778 2018-05-14  Nick Clifton  <nickc@redhat.com>
779
780         * write.c (maybe_generate_build_notes): Generate notes on a
781         per-code-section basis.  Skip linkonce sections.
782
783 2018-05-14  Nick Clifton  <nickc@redhat.com>
784
785         PR 23153
786         * as.c (main): When checking for an output file that is also an
787         input file, also check that the inode is not zero.
788
789 2018-05-12  Alan Modra  <amodra@gmail.com>
790
791         * config/tc-score.c (s3_do_macro_bcmp): Don't use fixed size
792         buffers.
793         (s3_do_macro_bcmpz): Likewise.
794
795 2018-05-10  Tamar Christina  <tamar.christina@arm.com>
796
797         * config/tc-aarch64.c (parse_aarch64_imm_float): Remove restrictions.
798         * testsuite/gas/aarch64/diagnostic.s: Move fmov int test to..
799         * testsuite/gas/aarch64/fpmov.s: Here.
800         * testsuite/gas/aarch64/fpmov.d: Update results with fmov.
801         * testsuite/gas/aarch64/diagnostic.l: Remove fmov values.
802         * testsuite/gas/aarch64/sve-invalid.s: Update test files.
803         * testsuite/gas/aarch64/sve-invalid.l: Likewise
804
805 2018-05-10  Tamar Christina  <tamar.christina@arm.com>
806
807         * gas/config/tc-arm.c (do_neon_mov): Allow integer literal for float
808         immediate.
809         * testsuite/gas/arm/vfp-mov-enc.s: New.
810         * testsuite/gas/arm/vfp-mov-enc.d: New.
811
812 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
813
814         * config/tc-xtensa.c (xtensa_is_init_fini): New function.
815         (xtensa_move_literals): Only attempt to assign literal pool to
816         literals with tc_frag_data.is_literal mark and not in .init or
817         .fini sections.
818         Join nested 'if' conditions to simplify function structure.
819         (xtensa_switch_to_non_abs_literal_fragment): Use
820         xtensa_is_init_fini to test for .init/.fini sections.
821         * testsuite/gas/xtensa/all.exp (auto-litpools-3)
822         (auto-litpools-4, text-section-literals-1): New tests.
823         * testsuite/gas/xtensa/auto-litpools-3.d: New test results.
824         * testsuite/gas/xtensa/auto-litpools-3.s: New test source.
825         * testsuite/gas/xtensa/auto-litpools-4.d: New test results.
826         * testsuite/gas/xtensa/auto-litpools-4.s: New test source.
827         * testsuite/gas/xtensa/text-section-literals-1.d: New test results.
828         * testsuite/gas/xtensa/text-section-literals-1.s: New test source.
829
830 2018-05-09  Dimitar Dimitrov  <dimitar@dinux.eu>
831
832         * config/tc-pru.c (md_apply_fix): Make LDI32 relocation conformant
833         to TI ABI.
834         (pru_assemble_arg_i): Likewise.
835         (output_insn_ldi32): Likewise.
836         * testsuite/gas/pru/ldi.d: Update test for the now fixed LDI32.
837         * gas/config/tc-pru.c (pru_assemble_arg_b): Check imm8 operand range.
838         * gas/testsuite/gas/pru/illegal2.l: New test.
839         * gas/testsuite/gas/pru/illegal2.s: New test.
840         * gas/testsuite/gas/pru/pru.exp: Register new illegal2 test.
841
842 2018-05-08  Jim Wilson  <jimw@sifive.com>
843
844         * testsuite/gas/riscv/c-zero-imm.d: Add more tests.
845         * testsuite/gas/riscv/c-zero-imm.s: Likewise.
846         * testsuite/gas/riscv/c-zero-reg.d: Fix typo in test.  Add disabled
847         future test for RV128 support.
848         * testsuite/gas/riscv/c-zero-reg.s: Likewise.
849
850 2018-05-07  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
851             H.J. Lu  <hongjiu.lu@intel.com>
852
853         * config/tc-i386.c (cpu_arch): Add .movdir, .movdir64b.
854         (cpu_noarch): Likewise.
855         (process_suffix): Add check for register size.
856         * doc/c-i386.texi: Document movdiri, movdir64b.
857         * testsuite/gas/i386/i386.exp: Run MOVDIR{I,64B} tests.
858         * testsuite/gas/i386/movdir-intel.d: New file.
859         * testsuite/gas/i386/movdir.d: Likewise.
860         * testsuite/gas/i386/movdir.s: Likewise.
861         * testsuite/gas/i386/movdir64b-reg.s: Likewise.
862         * testsuite/gas/i386/movdir64b-reg.l: Likewise.
863         * testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
864         * testsuite/gas/i386/x86-64-movdir.d: Likewise.
865         * testsuite/gas/i386/x86-64-movdir.s: Likewise.
866         * testsuite/gas/i386/x86-64-movdir64b-reg.s: Likewise.
867         * testsuite/gas/i386/x86-64-movdir64b-reg.l: Likewise.
868
869 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
870
871         * config/tc-i386.c (process_suffix): Check addrprefixopreg
872         instead of addrprefixop0.
873
874 2018-05-07  Peter Bergner  <bergner@vnet.ibm.com.com>
875
876         * config/tc-ppc.c (ppc_setup_opcodes) <powerpc_opcodes>: Rewrite code
877         to dump the entire opcode table.
878         (ppc_setup_opcodes) <spe2_opcodes>: Likewise.
879         (ppc_setup_opcodes) <vle_opcodes>: Likewise.  Fix calculation of
880         opcode index.
881
882 2018-05-06  H.J. Lu  <hongjiu.lu@intel.com>
883
884         * testsuite/gas/i386/xmmhi32.d: Also allow dir32 relocation.
885
886 2018-05-06  H.J. Lu  <hongjiu.lu@intel.com>
887
888         * testsuite/gas/i386/avx512f-plain.s: Append ".p2align 4,0".
889         * testsuite/gas/i386/avx512vl-plain.s: Likewise.
890         * testsuite/gas/i386/bnd.s: Likewise.
891         * testsuite/gas/i386/stN.s: Likewise.
892         * testsuite/gas/i386/avx512f-plain.l: Updated.
893         * testsuite/gas/i386/avx512vl-plain.l: Likewise.
894         * testsuite/gas/i386/bnd.l: Likewise.
895         * testsuite/gas/i386/stN.l: Likewise.
896
897 2018-05-04  Alan Modra  <amodra@gmail.com>
898
899         * config/obj-evax.c (shorten_identifier): Use memcpy in place
900         of strncpy.
901         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Ensure
902         segname and sectname fields are NUL terminated.
903
904 2018-05-01  Nick Clifton  <nickc@redhat.com>
905
906         * po/es.po: Updated Spanish translation.
907
908 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
909
910         * testsuite/lib/gas-defs.exp (run_dump_test): Use `match_target'
911         in place of `istarget' for matching with `target', `not-target',
912         `skip' and `not-skip' options.
913
914 2018-04-26  Nick Clifton  <nickc@redhat.com>
915
916         * as.c (flag_generate_build_notes): New variable.
917         (show_usage): Add entry for --generate-missing-build-notes.
918         (parse_args): Parse --generate-missing-build-notes.
919         * as.h: Export flag_generate_build_notes.
920         * symbols.c (save_symbol_name): Ensure that the name parameter is
921         not NULL.
922         * write.c (create_obj_attrs_section): Reformat.
923         (create_note_reloc): New function - creates a relocation for a
924         field in a GNU Build attribute note.
925         (maybe_generate_build_notes): New function - created GNU Build
926         attribute notes if none are present in the output file.
927         (write_object_file): Call maybe_generate_build_notes.
928         * configure.ac (--enable-generate-build-notes): New option.
929         * NEWS: Announce the new feature.
930         * doc/as.textinfo: Document the new option.
931         * config.in: Regenerate.
932         * configure: Regenerate.
933
934 2018-04-26  Jan Beulich  <jbeulich@suse.com>
935
936         * config/tc-i386.c (check_VecOperands): Add AVX512VL check. Set
937         .baseindex.
938         (match_template): Don't set suffix_check when Intel syntax and
939         broadcast. Make check_register a per-operand bitmap.
940
941 2018-04-26  Jan Beulich  <jbeulich@suse.com>
942
943         * config/tc-i386.c (optimize_encoding): Check for zeroing
944         masking.
945         * testsuite/gas/i386/optimize-1.d,
946         testsuite/gas/i386/optimize-4.d,
947         testsuite/gas/i386/optimize-5.d,
948         testsuite/gas/i386/x86-64-optimize-2.d,
949         testsuite/gas/i386/x86-64-optimize-5.d,
950         testsuite/gas/i386/x86-64-optimize-6.d: Adjust expectations.
951
952 2018-04-26  Jan Beulich  <jbeulich@suse.com>
953
954         * config/tc-i386.c (parse_real_register): Check .cpuvrex before
955         recording EVEX encoding. Don't check previously specified
956         encoding.
957         * testsuite/gas/i386/xmmhi32.s: Add {x,y,z}mm{16,24} cases.
958         * testsuite/gas/i386/xmmhi32.d: Adjust expectations.
959         * testsuite/gas/i386/xmmhi64.s, testsuite/gas/i386/xmmhi64.d:
960         New.
961         * testsuite/gas/i386/i386.exp: Run new test.
962
963 2018-04-26  Jan Beulich  <jbeulich@suse.com>
964
965         * testsuite/gas/i386/xsave.s: Add AVX, LWP, MPX, and PKU
966         dependency tests.
967         * testsuite/gas/i386/xsave.d,
968         testsuite/gas/i386/xsave-intel.d: Adjust expecations.
969
970 2018-04-26  Jan Beulich  <jbeulich@suse.com>
971
972         * config/tc-i386.c (parse_real_register): Re-write {,x,y,z}mm
973         and mask register handling.
974         * testsuite/gas/i386/avx512f-ymm.s, testsuite/gas/i386/avx512f-ymm.d,
975         testsuite/gas/i386/xmmhi32.s, testsuite/gas/i386/xmmhi32.d: New.
976         * testsuite/gas/i386/i386.exp: Run new tests.
977
978 2018-04-26  Jan Beulich  <jbeulich@suse.com>
979
980         * config/tc-i386.c (parse_real_register): Check bnd<N>
981         registers.
982         * testsuite/gas/i386/bnd.s, testsuite/gas/i386/bnd.l: New.
983         * testsuite/gas/i386/i386.exp: Run new test.
984
985 2018-04-26  Jan Beulich  <jbeulich@suse.com>
986
987         * config/tc-i386.c (parse_real_register): Check FPU register
988         earlier.
989         * testsuite/gas/i386/fpu.s, testsuite/gas/i386/fpu.l,
990         testsuite/gas/i386/stN.s, testsuite/gas/i386/stN.l: New.
991         * testsuite/gas/i386/i386.exp: Run new tests.
992
993 2018-04-26  Jan Beulich  <jbeulich@suse.com>
994
995         * config/tc-i386.c (build_modrm_byte): Use tabs for indentation.
996
997 2018-04-26  Jan Beulich  <jbeulich@suse.com>
998
999         * config/tc-i386.c (build_modrm_byte): Move and fold
1000         source/reg_slot calculations.
1001
1002 2018-04-26  Jan Beulich  <jbeulich@suse.com>
1003
1004         * config/tc-i386.c (build_modrm_byte): Drop .veximmext uses.
1005         Move part of the remaining assertion.
1006
1007 2018-04-26  Jan Beulich  <jbeulich@suse.com>
1008
1009         * config/tc-i386.c (build_modrm_byte): Extend assertion in
1010         vex_3_sources handling to cover more cases.
1011
1012 2018-04-26  Jan Beulich  <jbeulich@suse.com>
1013
1014         * config/tc-i386.c (build_modrm_byte): Drop code dealing with
1015         .veximmext and .immext set at the same time. Drop code dealing
1016         with .cpufma when .vexsources == VEX3SOURCES.
1017
1018 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
1019         Mickaël Guêné  <mickael.guene@st.com>
1020
1021         * config/tc-arm.c (reloc_names): Add TLSGD_FDPIC, TLSLDM_FDPIC,
1022         GOTTPOFF_FDIC relocations.
1023         (md_apply_fix): Handle the new TLS FDPIC relocations.
1024         (tc_gen_reloc): Likewise.
1025         (arm_fix_adjustable): Likewise.
1026
1027 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
1028         Mickaël Guêné  <mickael.guene@st.com>
1029
1030         * config/tc-arm.c (reloc_names): Add gotfuncdesc, gotofffuncdesc,
1031         funcdesc.
1032         (md_apply_fix): Support the new relocations.
1033         (tc_gen_reloc): Likewise.
1034         * testsuite/gas/arm/reloc-fdpic.d: New.
1035         * testsuite/gas/arm/reloc-fdpic.s: New.
1036
1037 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
1038         Mickaël Guêné  <mickael.guene@st.com>
1039
1040         * config/tc-arm.c (arm_fdpic): New.
1041         (elf32_arm_target_format): Support FDPIC.
1042         (OPTION_FDPIC): New.
1043         (md_longopts): Support FDPIC.
1044         (md_parse_option): Likewise.
1045         (md_show_usage): Likewise.
1046
1047 2018-04-25  Tamar Christina  <tamar.christina@arm.com>
1048
1049         * testsuite/gas/aarch64/rdma.s: Test for larger register numbers.
1050         * testsuite/gas/aarch64/rdma.d: Update results.
1051         * testsuite/gas/aarch64/rdma-directive.d: Likewise.
1052
1053 2018-04-25  Nick Clifton  <nickc@redhat.com>
1054
1055         * po/es.po: Updated Spanish translation.
1056
1057 2018-04-25  Alan Modra  <amodra@gmail.com>
1058
1059         * Makefile.am: Remove arm-aout and arm-coff support.
1060         * config/tc-arm.c: Likewise.
1061         * config/tc-arm.h: Likewise.
1062         * configure.tgt: Likewise.
1063         * testsuite/gas/aarch64/codealign.d: Likewise.
1064         * testsuite/gas/aarch64/mapping.d: Likewise.
1065         * testsuite/gas/aarch64/mapping2.d: Likewise.
1066         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: Likewise.
1067         * testsuite/gas/arm/adds-thumb1-reloc-local.d: Likewise.
1068         * testsuite/gas/arm/addsw-bad.d: Likewise.
1069         * testsuite/gas/arm/align.d: Likewise.
1070         * testsuite/gas/arm/align64.d: Likewise.
1071         * testsuite/gas/arm/arch7.d: Likewise.
1072         * testsuite/gas/arm/arch7a-mp.d: Likewise.
1073         * testsuite/gas/arm/arch7em.d: Likewise.
1074         * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
1075         * testsuite/gas/arm/arm-it-auto-2.d: Likewise.
1076         * testsuite/gas/arm/arm-it-auto-3.d: Likewise.
1077         * testsuite/gas/arm/arm-it-auto.d: Likewise.
1078         * testsuite/gas/arm/arm-it-bad-2.d: Likewise.
1079         * testsuite/gas/arm/arm-it.d: Likewise.
1080         * testsuite/gas/arm/armv7e-m+fpv5-d16.d: Likewise.
1081         * testsuite/gas/arm/armv7e-m+fpv5-sp-d16.d: Likewise.
1082         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: Likewise.
1083         * testsuite/gas/arm/armv8-2-fp16-scalar.d: Likewise.
1084         * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise.
1085         * testsuite/gas/arm/armv8-2-fp16-simd.d: Likewise.
1086         * testsuite/gas/arm/armv8-a+crypto.d: Likewise.
1087         * testsuite/gas/arm/armv8-a+fp.d: Likewise.
1088         * testsuite/gas/arm/armv8-a+ras.d: Likewise.
1089         * testsuite/gas/arm/armv8-a+rdma-warning.d: Likewise.
1090         * testsuite/gas/arm/armv8-a+rdma.d: Likewise.
1091         * testsuite/gas/arm/armv8-a+simd.d: Likewise.
1092         * testsuite/gas/arm/armv8-a-barrier-thumb.d: Likewise.
1093         * testsuite/gas/arm/armv8-r+fp.d: Likewise.
1094         * testsuite/gas/arm/armv8-r+simd.d: Likewise.
1095         * testsuite/gas/arm/armv8-r-barrier-thumb.d: Likewise.
1096         * testsuite/gas/arm/armv8_1-a+simd.d: Likewise.
1097         * testsuite/gas/arm/armv8_2+rdma.d: Likewise.
1098         * testsuite/gas/arm/armv8_2-a.d: Likewise.
1099         * testsuite/gas/arm/armv8_3-a-fp.d: Likewise.
1100         * testsuite/gas/arm/armv8_3-a-simd.d: Likewise.
1101         * testsuite/gas/arm/armv8a-automatic-hlt.d: Likewise.
1102         * testsuite/gas/arm/armv8a-automatic-lda.d: Likewise.
1103         * testsuite/gas/arm/attr-syntax.d: Likewise.
1104         * testsuite/gas/arm/automatic-bw.d: Likewise.
1105         * testsuite/gas/arm/automatic-cbz.d: Likewise.
1106         * testsuite/gas/arm/automatic-clrex.d: Likewise.
1107         * testsuite/gas/arm/automatic-lda.d: Likewise.
1108         * testsuite/gas/arm/automatic-ldaex.d: Likewise.
1109         * testsuite/gas/arm/automatic-ldaexb.d: Likewise.
1110         * testsuite/gas/arm/automatic-ldrex.d: Likewise.
1111         * testsuite/gas/arm/automatic-ldrexd.d: Likewise.
1112         * testsuite/gas/arm/automatic-movw.d: Likewise.
1113         * testsuite/gas/arm/automatic-sdiv.d: Likewise.
1114         * testsuite/gas/arm/automatic-strexb.d: Likewise.
1115         * testsuite/gas/arm/barrier-bad-thumb.d: Likewise.
1116         * testsuite/gas/arm/barrier-bad.d: Likewise.
1117         * testsuite/gas/arm/barrier-thumb.d: Likewise.
1118         * testsuite/gas/arm/barrier.d: Likewise.
1119         * testsuite/gas/arm/bignum1.d: Likewise.
1120         * testsuite/gas/arm/blx-bad.d: Likewise.
1121         * testsuite/gas/arm/blx-bl-convert.d: Likewise.
1122         * testsuite/gas/arm/blx-local.s: Likewise.
1123         * testsuite/gas/arm/crc32-armv8-a-bad.d: Likewise.
1124         * testsuite/gas/arm/crc32-armv8-a.d: Likewise.
1125         * testsuite/gas/arm/crc32-armv8-r-bad.d: Likewise.
1126         * testsuite/gas/arm/crc32-armv8-r.d: Likewise.
1127         * testsuite/gas/arm/dis-data.d: Likewise.
1128         * testsuite/gas/arm/dis-data2.d: Likewise.
1129         * testsuite/gas/arm/dis-data3.d: Likewise.
1130         * testsuite/gas/arm/eabi_attr_1.d: Likewise.
1131         * testsuite/gas/arm/fp-save.d: Likewise.
1132         * testsuite/gas/arm/group-reloc-alu-encoding-bad.d: Likewise.
1133         * testsuite/gas/arm/group-reloc-alu-parsing-bad.d: Likewise.
1134         * testsuite/gas/arm/group-reloc-alu.d: Likewise.
1135         * testsuite/gas/arm/group-reloc-ldc-encoding-bad.d: Likewise.
1136         * testsuite/gas/arm/group-reloc-ldc-parsing-bad.d: Likewise.
1137         * testsuite/gas/arm/group-reloc-ldc.d: Likewise.
1138         * testsuite/gas/arm/group-reloc-ldr-encoding-bad.d: Likewise.
1139         * testsuite/gas/arm/group-reloc-ldr-parsing-bad.d: Likewise.
1140         * testsuite/gas/arm/group-reloc-ldr.d: Likewise.
1141         * testsuite/gas/arm/group-reloc-ldrs-encoding-bad.d: Likewise.
1142         * testsuite/gas/arm/group-reloc-ldrs-parsing-bad.d: Likewise.
1143         * testsuite/gas/arm/group-reloc-ldrs.d: Likewise.
1144         * testsuite/gas/arm/insn-error-a.d: Likewise.
1145         * testsuite/gas/arm/insn-error-t.d: Likewise.
1146         * testsuite/gas/arm/inst-po-2.d: Likewise.
1147         * testsuite/gas/arm/inst-po-3.d: Likewise.
1148         * testsuite/gas/arm/inst-po-be.d: Likewise.
1149         * testsuite/gas/arm/inst-po.d: Likewise.
1150         * testsuite/gas/arm/ldconst.d: Likewise.
1151         * testsuite/gas/arm/ldgesb-bad.d: Likewise.
1152         * testsuite/gas/arm/ldgesh-bad.d: Likewise.
1153         * testsuite/gas/arm/ldst-offset0.d: Likewise.
1154         * testsuite/gas/arm/local_function.d: Likewise.
1155         * testsuite/gas/arm/local_label_coff.d: Likewise.
1156         * testsuite/gas/arm/local_label_elf.d: Likewise.
1157         * testsuite/gas/arm/mapping.d: Likewise.
1158         * testsuite/gas/arm/mapping2.d: Likewise.
1159         * testsuite/gas/arm/mapping3.d: Likewise.
1160         * testsuite/gas/arm/mapping4.d: Likewise.
1161         * testsuite/gas/arm/mapshort-elf.d: Likewise.
1162         * testsuite/gas/arm/mask_1-armv8-a.d: Likewise.
1163         * testsuite/gas/arm/mask_1-armv8-r.d: Likewise.
1164         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: Likewise.
1165         * testsuite/gas/arm/movs-thumb1-reloc-local.d: Likewise.
1166         * testsuite/gas/arm/movw-local.d: Likewise.
1167         * testsuite/gas/arm/mrs-msr-thumb-v6t2.d: Likewise.
1168         * testsuite/gas/arm/mrs-msr-thumb-v7-m.d: Likewise.
1169         * testsuite/gas/arm/mrs-msr-thumb-v7e-m.d: Likewise.
1170         * testsuite/gas/arm/msr-imm-bad.d: Likewise.
1171         * testsuite/gas/arm/msr-reg-bad.d: Likewise.
1172         * testsuite/gas/arm/msr-reg-thumb.d: Likewise.
1173         * testsuite/gas/arm/nomapping.d: Likewise.
1174         * testsuite/gas/arm/nops.d: Likewise.
1175         * testsuite/gas/arm/pic.d: Likewise.
1176         * testsuite/gas/arm/pinsn.d: Likewise.
1177         * testsuite/gas/arm/plt-1.d: Likewise.
1178         * testsuite/gas/arm/pr21458.d: Likewise.
1179         * testsuite/gas/arm/pr9722.d: Likewise.
1180         * testsuite/gas/arm/strex-t.d: Likewise.
1181         * testsuite/gas/arm/t2-branch-global.d: Likewise.
1182         * testsuite/gas/arm/target-reloc-1.d: Likewise.
1183         * testsuite/gas/arm/thumb-b-bad.d: Likewise.
1184         * testsuite/gas/arm/thumb-w-bad.d: Likewise.
1185         * testsuite/gas/arm/thumb-w-good.d: Likewise.
1186         * testsuite/gas/arm/thumb.d: Likewise.
1187         * testsuite/gas/arm/thumb2_it.d: Likewise.
1188         * testsuite/gas/arm/thumb2_it_auto.d: Likewise.
1189         * testsuite/gas/arm/thumb2_it_search.d: Likewise.
1190         * testsuite/gas/arm/thumb2_ldmstm.d: Likewise.
1191         * testsuite/gas/arm/thumb2_ldr_immediate_armv6.d: Likewise.
1192         * testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.d: Likewise.
1193         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Likewise.
1194         * testsuite/gas/arm/thumb2_pool.d: Likewise.
1195         * testsuite/gas/arm/thumb2_vpool.d: Likewise.
1196         * testsuite/gas/arm/thumb2_vpool_be.d: Likewise.
1197         * testsuite/gas/arm/thumb32.d: Likewise.
1198         * testsuite/gas/arm/thumbver.d: Likewise.
1199         * testsuite/gas/arm/tls.d: Likewise.
1200         * testsuite/gas/arm/tls_vxworks.d: Likewise.
1201         * testsuite/gas/arm/undefined.d: Likewise.
1202         * testsuite/gas/arm/undefined_coff.d: Likewise.
1203         * testsuite/gas/arm/unwind.d: Likewise.
1204         * testsuite/gas/arm/v4bx.d: Likewise.
1205         * testsuite/gas/arm/vcmp-noprefix-imm.d: Likewise.
1206         * testsuite/gas/arm/vcvt-bad.d: Likewise.
1207         * testsuite/gas/arm/vfma1.d: Likewise.
1208         * testsuite/gas/arm/vldconst.d: Likewise.
1209         * testsuite/gas/arm/vldconst_be.d: Likewise.
1210         * testsuite/gas/arm/vldm-arm.d: Likewise.
1211         * testsuite/gas/arm/vldr.d: Likewise.
1212         * testsuite/gas/arm/weakdef-1.d: Likewise.
1213         * testsuite/gas/arm/weakdef-2.d: Likewise.
1214         * config/te-riscix.h: Delete.
1215         * Makefile.in: Regenerate.
1216         * po/POTFILES.in: Regenerate.
1217
1218 2018-04-23  Alan Modra  <amodra@gmail.com>
1219
1220         * stabs.c (generate_asm_file): Use memcpy rather than strncpy.
1221         Remove call to strlen inside loop.
1222         * config/tc-cr16.c (getreg_image): Warning fix.
1223         * config/tc-crx.c (getreg_image): Warning fix.
1224
1225 2018-04-20  Kito Cheng  <kito.cheng@gmail.com>
1226
1227         * config/tc-riscv.c (options): Add OPTION_RELAX and
1228         OPTION_NO_RELAX.
1229         (md_longopts): New option -mrelax and -mno-relax.
1230         (md_parse_option): Handle -mrelax and -mno-relax.
1231         * doc/c-riscv.texi: Document for -mrelax and -mno-relax.
1232         * testsuite/gas/riscv/no-relax-reloc.d: New.
1233         * testsuite/gas/riscv/no-relax-reloc.s: New.
1234         * testsuite/gas/riscv/relax-reloc.d: New.
1235         * testsuite/gas/riscv/relax-reloc.s: New.
1236
1237 2018-04-20  Nick Clifton  <nickc@redhat.com>
1238
1239         * po/es.po: Updated Spanish translation.
1240
1241 2018-04-18  Alan Modra  <amodra@gmail.com>
1242
1243         * Makefile.am: Remove support for assorted i386 aout and coff targets.
1244         * config/obj-elf.c: Likewise.
1245         * config/tc-i386.h: Likewise.
1246         * configure.ac: Likewise.
1247         * configure.tgt: Likewise.
1248         * config/te-dynix.h: Delete.
1249         * config/te-i386aix.h: Delete.
1250         * config/te-mach.h: Delete.
1251         * Makefile.in: Regenerate.
1252         * config.in: Regenerate.
1253         * configure: Regenerate.
1254         * po/POTFILES.in: Regenerate.
1255
1256 2018-04-18  Alan Modra  <amodra@gmail.com>
1257
1258         * configure.tgt: Remove *-*-bsd* entry.
1259
1260 2018-04-17 Andrew Sadek  <andrew.sadek.se@gmail.com>
1261
1262         Microblaze Target: PIC data text relative
1263
1264         * gas/config/tc-microblaze.c (Handle new relocs directives in
1265         assembler): Handle new relocs from compiler output.
1266         (imm_types): add new imm types for data text relative addressing
1267         TEXT_OFFSET, TEXT_PC_OFFSET
1268         (md_convert_frag): conversion for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
1269         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1270         (md_apply_fix): apply fix for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
1271         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1272         (md_estimate_size_before_relax): estimate size for
1273         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
1274         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1275         (tc_gen_reloc): generate relocations for
1276         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
1277         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1278
1279 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1280
1281         * testsuite/gas/i386/nops.s: Revert back deleted lines and
1282         change encoding to 0x0f1c /1 to map to NOP.
1283         * testsuite/gas/i386/x86-64-nops.s: Likewise.
1284         * testsuite/gas/i386/nops.d: Likewise.
1285         * testsuite/gas/i386/x86-64-nops.d: Likewise.
1286         * testsuite/gas/i386/ilp32/x86-64-nops.d: Likewis.
1287
1288 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1289
1290         * config/tc-i386.c (cpu_arch): Add .cldemote.
1291         * doc/c-i386.texi: Document cldemote/.cldemote.
1292         * testsuite/gas/i386/cldemote-intel.d: New.
1293         * testsuite/gas/i386/cldemote.d: Likewise.
1294         * testsuite/gas/i386/cldemote.s: Likewise.
1295         * testsuite/gas/i386/i386.exp: Run new tests.
1296         * testsuite/gas/i386/x86-64-cldemote-intel.d: New.
1297         * testsuite/gas/i386/x86-64-cldemote.d: Likewise.
1298         * testsuite/gas/i386/x86-64-cldemote.s: Likewise.
1299         * testsuite/gas/i386/ilp32/x86-64-nops.d: Remove 0x0f1c
1300         NOP encoding that maps to cldemote.
1301         * testsuite/gas/i386/nops.d: Likewise.
1302         * testsuite/gas/i386/nops.s: Likewise.
1303         * testsuite/gas/i386/x86-64-nops.d: Likewise.
1304         * testsuite/gas/i386/x86-64-nops.s: Likewise.
1305
1306 2018-04-16  Nick Clifton  <nickc@redhat.com>
1307
1308         PR 23054
1309         * cond.c (s_ifsef): Replace use of obstack_copy with obstack_alloc
1310         followed by memcpy.
1311         (s_if, s_ifb, s_ifc, s_ifeqs): Likewise.
1312         * obj-elf.c (elf_adjust_symtab): Check for local symbols before
1313         attempting to dereference the sy_next field of a symbol.
1314         * stabs.c (get_stab_string_offset): Fail if there is no string
1315         following the stab directive.
1316
1317 2018-04-16  Alan Modra  <amodra@gmail.com>
1318
1319         * Makefile.am: Remove arm-epoc-pe support.
1320         * config/tc-arm.h: Likewise.
1321         * configure.tgt: Likewise.
1322         * testsuite/gas/all/gas.exp: Likewise.
1323         * testsuite/gas/arm/local_label_coff.d: Likewise.
1324         * testsuite/gas/arm/undefined.d: Likewise.
1325         * testsuite/gas/arm/undefined_coff.d: Likewise.
1326         * config/te-epoc-pe.h: Delete.
1327         * Makefile.in: Regenerate.
1328         * po/POTFILES.in: Regenerate.
1329
1330 2018-04-16  Alan Modra  <amodra@gmail.com>
1331
1332         * Makefile.am: Remove sparc-aout and sparc-coff support.
1333         * config/obj-coff.h: Likewise.
1334         * config/tc-sparc.c: Likewise.
1335         * config/tc-sparc.h: Likewise.
1336         * configure.tgt: Likewise.
1337         * config/te-sparcaout.h: Delete.
1338         * testsuite/gas/sun4/addend.d: Delete.
1339         * testsuite/gas/sun4/addend.exp: Delete.
1340         * testsuite/gas/sun4/addend.s: Delete.
1341         * Makefile.in: Regenerate.
1342         * po/POTFILES.in: Regenerate.
1343
1344 2018-04-16  Alan Modra  <amodra@gmail.com>
1345
1346         * Makefile.am: Remove m68k-aout and m68k-coff support.
1347         * config/tc-m68k.c: Likewise.
1348         * config/tc-m68k.h: Likewise.
1349         * configure.ac: Likewise.
1350         * configure.tgt: Likewise.
1351         * testsuite/gas/all/weakref1u.d: Likewise.
1352         * testsuite/gas/m68k/all.exp: Likewise.
1353         * testsuite/gas/m68k/br-isaa.d: Likewise.
1354         * testsuite/gas/m68k/br-isab.d: Likewise.
1355         * testsuite/gas/m68k/br-isac.d: Likewise.
1356         * config/te-psos.h: Delete.
1357         * config/te-sun3.h: Delete.
1358         * testsuite/gas/m68k-coff/gas.exp: Delete.
1359         * testsuite/gas/m68k-coff/p2389.s: Delete.
1360         * testsuite/gas/m68k-coff/p2389a.s: Delete.
1361         * testsuite/gas/m68k-coff/p2430.s: Delete.
1362         * testsuite/gas/m68k-coff/p2430a.s: Delete.
1363         * testsuite/gas/m68k-coff/t1.s: Delete.
1364         * testsuite/gas/m68k/p3041.d: Delete.
1365         * testsuite/gas/m68k/p3041.s: Delete.
1366         * testsuite/gas/m68k/p3041data.d: Delete.
1367         * testsuite/gas/m68k/p3041data.s: Delete.
1368         * testsuite/gas/m68k/p3041pcrel.d: Delete.
1369         * testsuite/gas/m68k/p3041pcrel.s: Delete.
1370         * testsuite/gas/m68k/t2.d: Delete.
1371         * Makefile.in: Regenerate.
1372         * config.in: Regenerate.
1373         * configure: Regenerate.
1374         * po/POTFILES.in: Regenerate.
1375
1376 2018-04-16  Alan Modra  <amodra@gmail.com>
1377
1378         * Makefile.am: Remove sh5 and sh64 support.
1379         * config/tc-sh.c: Likewise.
1380         * configure.tgt: Likewise.
1381         * doc/Makefile.am: Likewise.
1382         * doc/as.texinfo: Likewise.
1383         * testsuite/gas/cfi/cfi.exp: Likewise.
1384         * testsuite/gas/sh/basic.exp: Likewise.
1385         * config/tc-sh64.c: Delete.
1386         * config/tc-sh64.h: Delete.
1387         * doc/c-sh64.texi: Delete.
1388         * testsuite/gas/sh/sh64/abi-32.d: Delete.
1389         * testsuite/gas/sh/sh64/abi-32.s: Delete.
1390         * testsuite/gas/sh/sh64/abi-64.d: Delete.
1391         * testsuite/gas/sh/sh64/abi-64.s: Delete.
1392         * testsuite/gas/sh/sh64/basic-1.d: Delete.
1393         * testsuite/gas/sh/sh64/basic-1.s: Delete.
1394         * testsuite/gas/sh/sh64/case-1.d: Delete.
1395         * testsuite/gas/sh/sh64/case-1.s: Delete.
1396         * testsuite/gas/sh/sh64/case-noexp-1.d: Delete.
1397         * testsuite/gas/sh/sh64/crange1-1.d: Delete.
1398         * testsuite/gas/sh/sh64/crange1-2.d: Delete.
1399         * testsuite/gas/sh/sh64/crange1.s: Delete.
1400         * testsuite/gas/sh/sh64/crange2-1.d: Delete.
1401         * testsuite/gas/sh/sh64/crange2-2.d: Delete.
1402         * testsuite/gas/sh/sh64/crange2-noexp-1.d: Delete.
1403         * testsuite/gas/sh/sh64/crange2.s: Delete.
1404         * testsuite/gas/sh/sh64/crange3-1.d: Delete.
1405         * testsuite/gas/sh/sh64/crange3.s: Delete.
1406         * testsuite/gas/sh/sh64/crange4-1.d: Delete.
1407         * testsuite/gas/sh/sh64/crange4.s: Delete.
1408         * testsuite/gas/sh/sh64/crange5-1.d: Delete.
1409         * testsuite/gas/sh/sh64/crange5.s: Delete.
1410         * testsuite/gas/sh/sh64/creg-1.d: Delete.
1411         * testsuite/gas/sh/sh64/creg-1.s: Delete.
1412         * testsuite/gas/sh/sh64/creg-2.d: Delete.
1413         * testsuite/gas/sh/sh64/creg-2.s: Delete.
1414         * testsuite/gas/sh/sh64/datal-1.s: Delete.
1415         * testsuite/gas/sh/sh64/datal-2.d: Delete.
1416         * testsuite/gas/sh/sh64/datal-2.s: Delete.
1417         * testsuite/gas/sh/sh64/datal-3.s: Delete.
1418         * testsuite/gas/sh/sh64/datal32-1.d: Delete.
1419         * testsuite/gas/sh/sh64/datal32-3.d: Delete.
1420         * testsuite/gas/sh/sh64/datal64-1.d: Delete.
1421         * testsuite/gas/sh/sh64/datal64-3.d: Delete.
1422         * testsuite/gas/sh/sh64/eh-1.d: Delete.
1423         * testsuite/gas/sh/sh64/eh-1.s: Delete.
1424         * testsuite/gas/sh/sh64/endian-1.d: Delete.
1425         * testsuite/gas/sh/sh64/endian-1.s: Delete.
1426         * testsuite/gas/sh/sh64/endian-2.d: Delete.
1427         * testsuite/gas/sh/sh64/endian-2.s: Delete.
1428         * testsuite/gas/sh/sh64/err-1.s: Delete.
1429         * testsuite/gas/sh/sh64/err-2.s: Delete.
1430         * testsuite/gas/sh/sh64/err-3.s: Delete.
1431         * testsuite/gas/sh/sh64/err-4.s: Delete.
1432         * testsuite/gas/sh/sh64/err-abi-32.s: Delete.
1433         * testsuite/gas/sh/sh64/err-abi-64.s: Delete.
1434         * testsuite/gas/sh/sh64/err-dsp.s: Delete.
1435         * testsuite/gas/sh/sh64/err-movi-noexp-1.s: Delete.
1436         * testsuite/gas/sh/sh64/err-noexp-cmd1.s: Delete.
1437         * testsuite/gas/sh/sh64/err-pt-1.s: Delete.
1438         * testsuite/gas/sh/sh64/err-pt32-cmd1.s: Delete.
1439         * testsuite/gas/sh/sh64/err-pt32-cmd2.s: Delete.
1440         * testsuite/gas/sh/sh64/err-pt32-cmd3.s: Delete.
1441         * testsuite/gas/sh/sh64/err-ptb-1.s: Delete.
1442         * testsuite/gas/sh/sh64/err-ptb-2.s: Delete.
1443         * testsuite/gas/sh/sh64/err.exp: Delete.
1444         * testsuite/gas/sh/sh64/immexpr1.s: Delete.
1445         * testsuite/gas/sh/sh64/immexpr2.s: Delete.
1446         * testsuite/gas/sh/sh64/immexpr32-1.d: Delete.
1447         * testsuite/gas/sh/sh64/immexpr32-2.d: Delete.
1448         * testsuite/gas/sh/sh64/immexpr64-1.d: Delete.
1449         * testsuite/gas/sh/sh64/immexpr64-2.d: Delete.
1450         * testsuite/gas/sh/sh64/lineno.d: Delete.
1451         * testsuite/gas/sh/sh64/lineno.s: Delete.
1452         * testsuite/gas/sh/sh64/localcom-1.d: Delete.
1453         * testsuite/gas/sh/sh64/localcom-1.s: Delete.
1454         * testsuite/gas/sh/sh64/mix-1.d: Delete.
1455         * testsuite/gas/sh/sh64/mix-1.s: Delete.
1456         * testsuite/gas/sh/sh64/mix-noexp-1.d: Delete.
1457         * testsuite/gas/sh/sh64/movi-1.s: Delete.
1458         * testsuite/gas/sh/sh64/movi-2.s: Delete.
1459         * testsuite/gas/sh/sh64/movi-3.d: Delete.
1460         * testsuite/gas/sh/sh64/movi-3.s: Delete.
1461         * testsuite/gas/sh/sh64/movi32-1.d: Delete.
1462         * testsuite/gas/sh/sh64/movi32-2.d: Delete.
1463         * testsuite/gas/sh/sh64/movi32-noexp-2.d: Delete.
1464         * testsuite/gas/sh/sh64/movi64-1.d: Delete.
1465         * testsuite/gas/sh/sh64/movi64-2.d: Delete.
1466         * testsuite/gas/sh/sh64/movi64-2.s: Delete.
1467         * testsuite/gas/sh/sh64/movi64-3.d: Delete.
1468         * testsuite/gas/sh/sh64/movi64-noexp-2.d: Delete.
1469         * testsuite/gas/sh/sh64/pt-1.d: Delete.
1470         * testsuite/gas/sh/sh64/pt-1.s: Delete.
1471         * testsuite/gas/sh/sh64/pt-2.s: Delete.
1472         * testsuite/gas/sh/sh64/pt-noexp-1.d: Delete.
1473         * testsuite/gas/sh/sh64/pt32-1.d: Delete.
1474         * testsuite/gas/sh/sh64/pt32-noexp-2.d: Delete.
1475         * testsuite/gas/sh/sh64/pt64-1.d: Delete.
1476         * testsuite/gas/sh/sh64/pt64-32-1.d: Delete.
1477         * testsuite/gas/sh/sh64/pt64-32-2.d: Delete.
1478         * testsuite/gas/sh/sh64/pt64-noexp-2.d: Delete.
1479         * testsuite/gas/sh/sh64/ptc-1.s: Delete.
1480         * testsuite/gas/sh/sh64/ptc32-1.d: Delete.
1481         * testsuite/gas/sh/sh64/ptc32-noexp-1.d: Delete.
1482         * testsuite/gas/sh/sh64/ptc64-1.d: Delete.
1483         * testsuite/gas/sh/sh64/ptc64-32-1.d: Delete.
1484         * testsuite/gas/sh/sh64/ptc64-noexp-1.d: Delete.
1485         * testsuite/gas/sh/sh64/ptext-1.s: Delete.
1486         * testsuite/gas/sh/sh64/ptext32-1.d: Delete.
1487         * testsuite/gas/sh/sh64/ptext32-noexp-1.d: Delete.
1488         * testsuite/gas/sh/sh64/ptext64-1.d: Delete.
1489         * testsuite/gas/sh/sh64/ptext64-32-1.d: Delete.
1490         * testsuite/gas/sh/sh64/ptext64-noexp-1.d: Delete.
1491         * testsuite/gas/sh/sh64/rel-1.s: Delete.
1492         * testsuite/gas/sh/sh64/rel-2.s: Delete.
1493         * testsuite/gas/sh/sh64/rel-3.s: Delete.
1494         * testsuite/gas/sh/sh64/rel-4.s: Delete.
1495         * testsuite/gas/sh/sh64/rel-5.s: Delete.
1496         * testsuite/gas/sh/sh64/rel32-1.d: Delete.
1497         * testsuite/gas/sh/sh64/rel32-2.d: Delete.
1498         * testsuite/gas/sh/sh64/rel32-3.d: Delete.
1499         * testsuite/gas/sh/sh64/rel32-4.d: Delete.
1500         * testsuite/gas/sh/sh64/rel32-5.d: Delete.
1501         * testsuite/gas/sh/sh64/rel64-1.d: Delete.
1502         * testsuite/gas/sh/sh64/rel64-2.d: Delete.
1503         * testsuite/gas/sh/sh64/rel64-3.d: Delete.
1504         * testsuite/gas/sh/sh64/rel64-4.d: Delete.
1505         * testsuite/gas/sh/sh64/rel64-5.d: Delete.
1506         * testsuite/gas/sh/sh64/relax-1.d: Delete.
1507         * testsuite/gas/sh/sh64/relax-1.s: Delete.
1508         * testsuite/gas/sh/sh64/relax-2.d: Delete.
1509         * testsuite/gas/sh/sh64/relax-2.s: Delete.
1510         * testsuite/gas/sh/sh64/relax-3.d: Delete.
1511         * testsuite/gas/sh/sh64/relax-3.s: Delete.
1512         * testsuite/gas/sh/sh64/sh64.exp: Delete.
1513         * testsuite/gas/sh/sh64/shift-1.s: Delete.
1514         * testsuite/gas/sh/sh64/shift-2.s: Delete.
1515         * testsuite/gas/sh/sh64/shift-3.s: Delete.
1516         * testsuite/gas/sh/sh64/shift32-1.d: Delete.
1517         * testsuite/gas/sh/sh64/shift32-3.d: Delete.
1518         * testsuite/gas/sh/sh64/shift32-noexp-3.d: Delete.
1519         * testsuite/gas/sh/sh64/shift64-1.d: Delete.
1520         * testsuite/gas/sh/sh64/shift64-2.d: Delete.
1521         * testsuite/gas/sh/sh64/shift64-3.d: Delete.
1522         * testsuite/gas/sh/sh64/shift64-noexp-3.d: Delete.
1523         * testsuite/gas/sh/sh64/syntax-1.d: Delete.
1524         * testsuite/gas/sh/sh64/syntax-1.s: Delete.
1525         * testsuite/gas/sh/sh64/syntax-2.d: Delete.
1526         * testsuite/gas/sh/sh64/syntax-2.s: Delete.
1527         * testsuite/gas/sh/sh64/ua-1.s: Delete.
1528         * testsuite/gas/sh/sh64/ua32-1.d: Delete.
1529         * testsuite/gas/sh/sh64/ua64-1.d: Delete.
1530         * Makefile.in: Regenerate.
1531         * doc/Makefile.in: Regenerate.
1532         * po/POTFILES.in: Regenerate.
1533
1534 2018-04-16  Alan Modra  <amodra@gmail.com>
1535
1536         * config/tc-sh.c: Remove sh-symbianelf support.
1537         * config/tc-sh.h: Likewise.
1538         * configure.ac: Likewise.
1539         * configure.tgt: Likewise.
1540         * testsuite/gas/sh/reg-prefix.d: Likewise.
1541         * testsuite/gas/sh/sh2a-pic.d: Likewise.
1542         * config.in: Regenerate.
1543         * configure: Regenerate.
1544
1545 2018-04-16  Alan Modra  <amodra@gmail.com>
1546
1547         * configure.ac: Remove m88k support.
1548         * config.in: Regenerate.
1549         * configure: Regenerate.
1550
1551 2018-04-16  Alan Modra  <amodra@gmail.com>
1552
1553         * Makefile.am: Remove i370 support.
1554         * app.c: Likewise.
1555         * config/obj-elf.c: Likewise.
1556         * configure.tgt: Likewise.
1557         * doc/Makefile.am: Likewise.
1558         * doc/as.texinfo: Likewise.
1559         * testsuite/gas/all/gas.exp: Likewise.
1560         * testsuite/gas/elf/warn-2.s: Likewise.
1561         * testsuite/gas/lns/lns.exp: Likewise.
1562         * config/tc-i370.c: Delete.
1563         * config/tc-i370.h: Delete.
1564         * doc/c-i370.texi: Delete.
1565         * Makefile.in: Regenerate.
1566         * doc/Makefile.in: Regenerate.
1567         * po/POTFILES.in: Regenerate.
1568
1569 2018-04-16  Alan Modra  <amodra@gmail.com>
1570
1571         * config/obj-coff.h: Remove h8500 support.
1572
1573 2018-04-16  Alan Modra  <amodra@gmail.com>
1574
1575         * config/obj-coff.h: Remove h8300-coff support.
1576         * config/tc-h8300.c: Likewise.
1577         * config/tc-h8300.h: Likewise.
1578         * testsuite/gas/h8300/h8300.exp: Likewise.
1579         * testsuite/gas/h8300/branch-coff.s: Delete.
1580         * testsuite/gas/h8300/branchh-coff.s: Delete.
1581         * testsuite/gas/h8300/branchs-coff.s: Delete.
1582         * testsuite/gas/h8300/ffxx1-coff.d: Delete.
1583         * testsuite/gas/h8300/ffxx1-coff.s: Delete.
1584         * testsuite/gas/h8300/h8300-coff.exp: Delete.
1585
1586 2018-04-16  Alan Modra  <amodra@gmail.com>
1587
1588         * app.c: Remove IEEE 695 support.
1589         * symbols.c: Likewise.
1590
1591 2018-04-16  Alan Modra  <amodra@gmail.com>
1592
1593         * Makefile.am: Remove netware support.
1594         * config/tc-i386.c: Likewise.
1595         * configure.tgt: Likewise.
1596         * config/te-netware.h: Delete.
1597         * Makefile.in: Regenerate.
1598         * po/POTFILES.in: Regenerate.
1599
1600 2018-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1601
1602         * testsuite/gas/i386/x86-64-waitpkg.s: Add 32-bit registers
1603         tests for tpause and umwait.
1604         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Updated.
1605         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
1606
1607 2018-04-12  John Darrington  <john@darrington.wattle.id.au>
1608
1609         * as.c (main): Fail if the output is the same as one of the input
1610         files.
1611         * testsuite/gas/all/gas.exp: Test the new feature.
1612
1613 2018-04-12  Nick Clifton  <nickc@redhat.com>
1614
1615         * po/es.po: Updated Spanish translation.
1616         * po/ru.po: Updated Russian translation.
1617
1618 2018-04-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1619
1620         * config/tc-i386.c (cpu_arch): Add WAITPKG.
1621         (cpu_noarch): Likewise.
1622         * doc/c-i386.texi: Document WAITPKG.
1623         * i386/i386.exp: Run WAITPKG tests.
1624         * testsuite/gas/i386/waitpkg-intel.d: New test.
1625         * testsuite/gas/i386/waitpkg.d: Likewise.
1626         * testsuite/gas/i386/waitpkg.s: Likewise.
1627         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Likewise.
1628         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
1629         * testsuite/gas/i386/x86-64-waitpkg.s: Likewise.
1630
1631 2018-04-11  Alan Modra  <amodra@gmail.com>
1632
1633         * config/aout_gnu.h: Delete.
1634         * config/tc-i860.c: Delete.
1635         * config/tc-i860.h: Delete.
1636         * config/tc-i960.c: Delete.
1637         * config/tc-i960.h: Delete.
1638         * doc/c-i860.texi: Delete.
1639         * doc/c-i960.texi: Delete.
1640         * testsuite/gas/i860/README.i860: Delete.
1641         * testsuite/gas/i860/bitwise.d: Delete.
1642         * testsuite/gas/i860/bitwise.s: Delete.
1643         * testsuite/gas/i860/branch.d: Delete.
1644         * testsuite/gas/i860/branch.s: Delete.
1645         * testsuite/gas/i860/bte.d: Delete.
1646         * testsuite/gas/i860/bte.s: Delete.
1647         * testsuite/gas/i860/dir-align01.d: Delete.
1648         * testsuite/gas/i860/dir-align01.s: Delete.
1649         * testsuite/gas/i860/dir-intel01.d: Delete.
1650         * testsuite/gas/i860/dir-intel01.s: Delete.
1651         * testsuite/gas/i860/dir-intel02.d: Delete.
1652         * testsuite/gas/i860/dir-intel02.s: Delete.
1653         * testsuite/gas/i860/dir-intel03-err.l: Delete.
1654         * testsuite/gas/i860/dir-intel03-err.s: Delete.
1655         * testsuite/gas/i860/dual01.d: Delete.
1656         * testsuite/gas/i860/dual01.s: Delete.
1657         * testsuite/gas/i860/dual02-err.l: Delete.
1658         * testsuite/gas/i860/dual02-err.s: Delete.
1659         * testsuite/gas/i860/dual03.d: Delete.
1660         * testsuite/gas/i860/dual03.s: Delete.
1661         * testsuite/gas/i860/fldst01.d: Delete.
1662         * testsuite/gas/i860/fldst01.s: Delete.
1663         * testsuite/gas/i860/fldst02.d: Delete.
1664         * testsuite/gas/i860/fldst02.s: Delete.
1665         * testsuite/gas/i860/fldst03.d: Delete.
1666         * testsuite/gas/i860/fldst03.s: Delete.
1667         * testsuite/gas/i860/fldst04.d: Delete.
1668         * testsuite/gas/i860/fldst04.s: Delete.
1669         * testsuite/gas/i860/fldst05.d: Delete.
1670         * testsuite/gas/i860/fldst05.s: Delete.
1671         * testsuite/gas/i860/fldst06.d: Delete.
1672         * testsuite/gas/i860/fldst06.s: Delete.
1673         * testsuite/gas/i860/fldst07.d: Delete.
1674         * testsuite/gas/i860/fldst07.s: Delete.
1675         * testsuite/gas/i860/fldst08.d: Delete.
1676         * testsuite/gas/i860/fldst08.s: Delete.
1677         * testsuite/gas/i860/float01.d: Delete.
1678         * testsuite/gas/i860/float01.s: Delete.
1679         * testsuite/gas/i860/float02.d: Delete.
1680         * testsuite/gas/i860/float02.s: Delete.
1681         * testsuite/gas/i860/float03.d: Delete.
1682         * testsuite/gas/i860/float03.s: Delete.
1683         * testsuite/gas/i860/float04.d: Delete.
1684         * testsuite/gas/i860/float04.s: Delete.
1685         * testsuite/gas/i860/form.d: Delete.
1686         * testsuite/gas/i860/form.s: Delete.
1687         * testsuite/gas/i860/i860.exp: Delete.
1688         * testsuite/gas/i860/iarith.d: Delete.
1689         * testsuite/gas/i860/iarith.s: Delete.
1690         * testsuite/gas/i860/ldst01.d: Delete.
1691         * testsuite/gas/i860/ldst01.s: Delete.
1692         * testsuite/gas/i860/ldst02.d: Delete.
1693         * testsuite/gas/i860/ldst02.s: Delete.
1694         * testsuite/gas/i860/ldst03.d: Delete.
1695         * testsuite/gas/i860/ldst03.s: Delete.
1696         * testsuite/gas/i860/ldst04.d: Delete.
1697         * testsuite/gas/i860/ldst04.s: Delete.
1698         * testsuite/gas/i860/ldst05.d: Delete.
1699         * testsuite/gas/i860/ldst05.s: Delete.
1700         * testsuite/gas/i860/ldst06.d: Delete.
1701         * testsuite/gas/i860/ldst06.s: Delete.
1702         * testsuite/gas/i860/pfam.d: Delete.
1703         * testsuite/gas/i860/pfam.s: Delete.
1704         * testsuite/gas/i860/pfmam.d: Delete.
1705         * testsuite/gas/i860/pfmam.s: Delete.
1706         * testsuite/gas/i860/pfmsm.d: Delete.
1707         * testsuite/gas/i860/pfmsm.s: Delete.
1708         * testsuite/gas/i860/pfsm.d: Delete.
1709         * testsuite/gas/i860/pfsm.s: Delete.
1710         * testsuite/gas/i860/pseudo-ops01.d: Delete.
1711         * testsuite/gas/i860/pseudo-ops01.s: Delete.
1712         * testsuite/gas/i860/regress01.d: Delete.
1713         * testsuite/gas/i860/regress01.s: Delete.
1714         * testsuite/gas/i860/shift.d: Delete.
1715         * testsuite/gas/i860/shift.s: Delete.
1716         * testsuite/gas/i860/simd.d: Delete.
1717         * testsuite/gas/i860/simd.s: Delete.
1718         * testsuite/gas/i860/system.d: Delete.
1719         * testsuite/gas/i860/system.s: Delete.
1720         * testsuite/gas/i860/xp.d: Delete.
1721         * testsuite/gas/i860/xp.s: Delete.
1722         * Makefile.am: Remove i860 and i960 support.
1723         * configure.tgt: Likewise.
1724         * doc/Makefile.am: Likewise.
1725         * doc/all.texi: Likewise.
1726         * testsuite/gas/all/gas.exp
1727         * config/obj-coff.h: Remove i960 support.
1728         * doc/internals.texi: Likewise.
1729         * expr.c: Likewise.
1730         * read.c: Likewise.
1731         * write.c: Likewise.
1732         * write.h: Likewise.
1733         * testsuite/gas/lns/lns.exp: Likewise.
1734         * testsuite/gas/symver/symver.exp: Likewise.
1735         * config/tc-m68k.c: Remove BOUT support.
1736         * config/tc-score.c: Likewise.
1737         * config/tc-score7.c: Likewise.
1738         * config/tc-sparc.c: Likewise.
1739         * symbols.c: Likewise.
1740         * doc/h8.texi: Likewise.
1741         * configure.ac: Remove BOUT and i860 support.
1742         * doc/as.texinfo: Remove BOUT, i860 and i960 support
1743         * Makefile.in: Regenerate.
1744         * config.in: Regenerate.
1745         * configure: Regenerate.
1746         * doc/Makefile.in: Regenerate.
1747         * po/POTFILES.in: Regenerate.
1748
1749 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1750
1751         PR gas/22318
1752         * configure: Regenerated.
1753
1754 2018-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1755
1756         PR binutils/23025
1757         * testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
1758         VEX and EVEX prefixes.
1759         * testsuite/gas/i386/prefix.d: Updated.
1760
1761 2018-03-30  Peter Bergner <bergner@vnet.ibm.com>
1762
1763         PR binutils/23013
1764         * config/tc-ppc.c (ppc_set_cpu): Select appropriate cpu when ppc_obj64
1765         and little endian.
1766
1767 2018-03-28  Renlin Li  <renlin.li@arm.com>
1768
1769         PR ld/22970
1770         * config/tc-aarch64.c (reloc_table): Update entry for tprel_lo12 and
1771         tprel_lo12_nc with pseudo relocations.
1772         (ldst_lo12_determine_real_reloc_type): Add new relocations support.
1773         (parse_operands): Handle BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 and
1774         BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC pseudo relocations.
1775         (md_apply_fix): Add handling for new relocation.
1776         (aarch64_force_relocation): Likewise.
1777         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.d: New.
1778         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.s: New.
1779         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.d: New.
1780         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.s: New.
1781         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.d: New.
1782         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.s: New.
1783         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.d: New.
1784         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.s: New.
1785         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.d: New.
1786         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.s: New.
1787         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.d: New.
1788         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.s: New.
1789         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.d: New.
1790         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.s: New.
1791         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.d: New.
1792         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.s: New.
1793         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16-ilp32.d: New.
1794         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32-ilp32.d: New.
1795         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64-ilp32.d: New.
1796         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8-ilp32.d: New.
1797         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16-ilp32.d: New.
1798         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32-ilp32.d: New.
1799         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64-ilp32.d: New.
1800         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8-ilp32.d: New.
1801
1802 2018-03-28  Jan Beulich  <jbeulich@suse.com>
1803
1804         * config/tc-i386.c (check_VecOperands): Replace uses of
1805         .vecesize. Always initialize op.
1806         * testsuite/gas/i386/avx512_vpopcntdq.s,
1807         testsuite/gas/i386/avx512bitalg_vl.s: Add Intel syntax vpopcnt
1808         broadcast cases with explicit operand size.
1809         * testsuite/gas/i386/avx512_vpopcntdq.d,
1810         testsuite/gas/i386/avx512_vpopcntdq-intel.d,
1811         testsuite/gas/i386/avx512bitalg_vl.d
1812         testsuite/gas/i386/avx512bitalg_vl-intel.d: Adjust expectations.
1813
1814 2018-03-28  Jan Beulich  <jbeulich@suse.com>
1815
1816         * config/tc-i386.c (struct Broadcast_Operation): Adjust comment.
1817         (check_VecOperands): Re-write broadcast validation code.
1818         (check_VecOperations): Replace BROADCAST_1TO* uses.
1819         * testsuite/gas/i386/inval-avx512f.s: Add various broadcast
1820         cases.
1821         * testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
1822
1823 2018-03-28  Jan Beulich  <jbeulich@suse.com>
1824
1825         * config/tc-i386.c (process_suffix): Check .todword/.toqword
1826         before zapping suffix.
1827
1828 2018-03-28  Jan Beulich  <jbeulich@suse.com>
1829
1830         * testsuite/gas/i386/ilp32/x86-64-simd-suffix.d,
1831         testsuite/gas/i386/x86-64-simd-suffix.d: Drop q suffix from
1832         cvt*2si.
1833
1834 2018-03-28  Nick Clifton  <nickc@redhat.com>
1835
1836         PR 22988
1837         * config/tc-aarch64.c (parse_operands): Add code to handle
1838         AARCH64_OPN_SVE_ADDR_R.
1839         * testsuite/gas/aarch64/sve.s: Add tests for LDFF1xx instructions
1840         with an assumed XZR offset address register.
1841         * testsuite/gas/aarch64/sve.d: Update expected disassembly.
1842
1843 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1844
1845         * config/tc-i386.c (check_VecOperands): Latch
1846         i.broadcast->operand into op.
1847
1848 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1849
1850         * config/tc-i386.c (match_template): Special case base opcode
1851         0xa0 with HLE prefix.
1852         * testsuite/gas/i386/hle.s: Add mov-accumulator-to-disp cases.
1853         * testsuite/gas/i386/hle.d, testsuite/gas/i386/hle-intel.d:
1854         Adjust expectations.
1855
1856 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1857
1858         * testsuite/gas/i386/opts.s: Add bndmov cases.
1859         * testsuite/gas/i386/opts.d, testsuite/gas/i386/opts-intel.d,
1860         testsuite/gas/i386/sse2avx-opts.d,
1861         testsuite/gas/i386/sse2avx-opts-intel.d: Adjust expectations.
1862
1863 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1864
1865         * config/tc-i386.c (match_mem_size): Extend sub-xmmword
1866         exceptions.
1867         * testsuite/gas/i386/xmmword.l, testsuite/gas/i386/xmmword.s:
1868         New.
1869         * testsuite/gas/i386/i386.exp: Run new test.
1870
1871 2018-03-22  Jan Beulich  <jbeulich@suse.com>
1872
1873         * config/tc-i386.c (match_template): Also match 2nd and 4th
1874         operand's register sizes.
1875         * testsuite/gas/i386/unspec.l, testsuite/gas/i386/unspec.s: New.
1876         * testsuite/gas/i386/i386.exp: Run new test.
1877
1878 2018-03-19  Nick Clifton  <nickc@redhat.com>
1879
1880         * po/uk.po: Updated Ukranian translation.
1881
1882 2018-03-16  Jim Wilson  <jimw@sifive.com>
1883
1884         * config/tc-riscv.c (check_absolute_expr): Expand comment.  New
1885         parameter maybe_csr.  If maybe_csr and O_symbol, print CSR name.
1886         (riscv_ip): Add new argument to check_absolute_expr calls.
1887         * testsuite/gas/riscv/bad-csr.d: New.
1888         * testsuite/gas/riscv/bad-csr.l: New.
1889         * testsuite/gas/riscv/bad-csr.s: New.
1890
1891 2018-03-14  Kito Cheng  <kito.cheng@gmail.com>
1892
1893         * config/tc-riscv.c (opcode_name_list): New.
1894         (opcode_names_hash): Likewise.
1895         (init_opcode_names_hash): Likewise.
1896         (opcode_name_lookup): Likewise.
1897         (validate_riscv_insn): New argument length, and add new format
1898         which used in .insn directive.
1899         (md_begin): Refine hash table initialization logic into
1900         init_opcode_hash.
1901         (init_opcode_hash): New.
1902         (my_getOpcodeExpression): Parse opcode name for .insn.
1903         (riscv_ip): New argument hash, able to handle .insn directive.
1904         (s_riscv_insn): Handler for .insn directive.
1905         (riscv_pseudo_table): New entry for .insn.
1906         * doc/c-riscv.texi: Add documentation for .insn directive.
1907         * testsuite/gas/riscv/insn.d: Add testcase for .insn directive.
1908         * testsuite/gas/riscv/insn.s: Likewise.
1909
1910 2018-03-13  Nick Clifton  <nickc@redhat.com>
1911
1912         * po/ru.po: Updated Russian translation.
1913
1914 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
1915
1916         * config/tc-i386.c (optimize_encoding): Encode EVEX instructions
1917         with VEX128 if EVEX encoding isn't required.
1918         * testsuite/gas/i386/optimize-1.d: Updated.
1919         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1920
1921 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
1922
1923         * config/tc-i386.c (check_VecOperations): Strip whitespace.
1924         * testsuite/gas/i386/optimize-1.s: Add whitespaces before
1925         {%k7} and {z},
1926         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1927
1928 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1929
1930         * config/tc-i386.c (set_cpu_arch): Set cpu_arch_isa_flags.
1931         (md_parse_option): Likewise.
1932         (optimize_encoding): Check i.tm.cpu_flags and cpu_arch_isa_flags
1933         for cpuavx512vl instead of cpu_arch_flags.  Optimize EVEX with
1934         EVEX128 when EVEX encoding is required.
1935         * testsuite/gas/i386/i386.exp: Run optimize-4, optimize-5,
1936         x86-64-optimize-5 and x86-64-optimize-6.
1937         * testsuite/gas/i386/optimize-1.d: Updated.
1938         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1939         * testsuite/gas/i386/optimize-4.d: New file.
1940         * testsuite/gas/i386/optimize-4.s: Likewise.
1941         * testsuite/gas/i386/optimize-5.d: Likewise.
1942         * testsuite/gas/i386/optimize-5.s: Likewise.
1943         * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1944         * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
1945         * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1946         * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
1947
1948 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1949
1950         * config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
1951         as "xor reg32, reg32".
1952         * testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
1953         * testsuite/gas/i386/x86-64-optimize-1.d: Updated.
1954
1955 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1956
1957         * NEWS: Mention -mold-gcc removal.
1958         * config/tc-i386.c (i386_error): Remove old_gcc_only.
1959         (old_gcc): Removed.
1960         (match_template): Remove old gcc support.
1961         (OPTION_MOLD_GCC): Removed.
1962         (OPTION_MRELAX_RELOCATIONS): Updated.
1963         (md_longopts): Remove OPTION_MOLD_GCC.
1964         (md_parse_option): Likewise.
1965         (md_show_usage): Remove -mold-gcc.
1966         * testsuite/gas/i386/general.s: Convert fsub/fdiv tests for old
1967         (<= 2.8.1) versions of gcc.
1968         * testsuite/gas/i386/intel.s: Likewise.
1969         * testsuite/gas/i386/general.l: Updated.
1970         * testsuite/gas/i386/intel-intel.d: Likewise.
1971         * testsuite/gas/i386/intel.d: Likewise.
1972         * testsuite/gas/i386/intel.e: Likewise.
1973         * testsuite/gas/i386/i386.exp: Don't pass -mold-gcc to general.
1974
1975 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1976
1977         * config/tc-i386.c (is_evex_encoding): New.
1978         (optimize_encoding, md_assemble, md_assemble,
1979         VEX_check_operands, build_modrm_byte): Use is_evex_encoding.
1980         (build_evex_prefix): Derive EVEX length field from actual
1981         operands if the template allows multiple ones.
1982
1983 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1984
1985         * config/tc-i386.c (build_modrm_byte): Make VexNDD handling cope
1986         with 3rd (immediate) operand.
1987
1988 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1989
1990         * config/tc-i386.c (XMMWORD_MNEM_SUFFIX, YMMWORD_MNEM_SUFFIX,
1991         ZMMWORD_MNEM_SUFFIX): Delete.
1992         (process_suffix): Drop their uses. Re-arrange final part of
1993         logic into a switch() statement. Drop special casing of
1994         cmpxchg8b.
1995
1996 2018-03-08  Jan Beulich  <jbeulich@suse.com>
1997
1998         * config/tc-i386.c (match_template): Also match register
1999         operands 0 and 2 for 3-operand forms.
2000         * testsuite/gas/i386/unspec64.l, testsuite/gas/i386/unspec64.s:
2001         New.
2002         * testsuite/gas/i386/i386.exp: Run new test.
2003
2004 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2005
2006         * config/tc-i386.c (process_suffix): Do common part of register
2007         checks first.
2008
2009 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2010
2011         * config/tc-i386.c (parse_insn): Move success return up. Combine
2012         failure returns.
2013
2014 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2015
2016         * config/tc-i386.c (cpu_flags_match): Add GFNI check to AVX
2017         logic. Add respective logic for AVX512F.
2018         * testsuite/gas/i386/arch-avx-1.s: Add GFNI test.
2019         testsuite/gas/i386/arch-avx-1.d,
2020         testsuite/gas/i386/arch-avx-1-1.l,
2021         testsuite/gas/i386/arch-avx-1-2.l,
2022         testsuite/gas/i386/arch-avx-1-3.l,
2023         testsuite/gas/i386/arch-avx-1-4.l,
2024         testsuite/gas/i386/arch-avx-1-5.l,
2025         testsuite/gas/i386/arch-avx-1-6.l: Adjust expectations.
2026         * testsuite/gas/i386/arch-avx-1-7.l,
2027         testsuite/gas/i386/arch-avx-1-7.s,
2028         testsuite/gas/i386/arch-avx-1-8.l,
2029         testsuite/gas/i386/arch-avx-1-8.s,
2030         testsuite/gas/i386/avx512f-plain.l,
2031         testsuite/gas/i386/avx512f-plain.s,
2032         testsuite/gas/i386/avx512vl-plain.l,
2033         testsuite/gas/i386/avx512vl-plain.s: New.
2034         * testsuite/gas/i386/i386.exp: Run new tests.
2035
2036 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2037
2038         * config/tc-i386.c (cpu_flags_match): Move AVX512VL check ahead.
2039
2040 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2041
2042         * config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
2043         (cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
2044         CPU_FLAGS_32BIT_MATCH.
2045
2046 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2047
2048         * config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
2049         CPU_FLAGS_PCLMUL_MATCH): Delete.
2050         (CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
2051         (cpu_flags_match): Combine AVX checks into
2052         single if().
2053
2054 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2055
2056         * config/tc-i386.c (cpu_flags_match): Drop "else" branches
2057         setting CPU_FLAGS_ARCH_MATCH.
2058
2059 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2060
2061         * config/tc-i386.c (md_assemble): Extend SSE check conditional.
2062         * testsuite/gas/i386/ilp32/x86-64-sse-check-none.d,
2063         testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
2064         testsuite/gas/i386/ilp32/x86-64-sse-check.d,
2065         testsuite/gas/i386/sse-check-none.d,
2066         testsuite/gas/i386/sse-check-warn.d,
2067         testsuite/gas/i386/x86-64-sse-check.d,
2068         testsuite/gas/i386/x86-64-sse-check-none.d,
2069         testsuite/gas/i386/x86-64-sse-check-warn.d: Refer to sse-check.d.
2070         * testsuite/gas/i386/sse-check.s: Add AES, GFNI, and PCLMUL
2071         tests.
2072         * testsuite/gas/i386/sse-check-none.s: Replace code by inclusion
2073         of sse-check.s.
2074         * testsuite/gas/i386/sse-check.d: Adjust expectations.
2075         * testsuite/gas/i386/sse-check-error.l,
2076         testsuite/gas/i386/x86-64-sse-check-error.l: Likewise.
2077         * testsuite/gas/i386/sse-check-warn.e: Likewise.
2078
2079 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2080
2081         * config/tc-i386.c (operand_size_match): Drop / replace uses of
2082         .floatd.
2083
2084 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2085
2086         * testsuite/gas/i386/intel-intel.d: New.
2087         * testsuite/gas/i386/i386.exp: Run new test.
2088
2089 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2090
2091         * config/tc-i386.c (process_operands): Access operands only
2092         after operand count assertion. Sanitize warning text. Fix
2093         indentation.
2094         * testsuite/gas/i386/avx512_4fmaps-warn.l,
2095         gas/i386/x86-64-avx512_4fmaps-warn.l: Adjust expectations.
2096
2097 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2098
2099         * testsuite/gas/i386/x86-64-movd.s: Drop bogus vmovd memory forms.
2100         * testsuite/gas/i386/x86-64-movd.d,
2101         testsuite/gas/i386/x86-64-movd-intel.d: Adjust expectations.
2102
2103 2018-03-08  Jan Beulich  <jbeulich@suse.com>
2104
2105         * config/tc-i386.c (operand_type_and_not): New.
2106         (build_modrm_byte): Use it to prevent clearing unrelated bits.
2107
2108 2018-03-08  Alan Modra  <amodra@gmail.com>
2109
2110         * config/tc-ppc.c (ppc_handle_align): Correct last patch.  Really
2111         don't emit a group terminating nop for power9.  Simplify cpu
2112         tests.
2113
2114 2018-03-08  Alan Modra  <amodra@gmail.com>
2115
2116         * config/tc-ppc.c (ppc_handle_align): Don't emit a group
2117         terminating nop for power9.
2118
2119 2018-03-07  H.J. Lu  <hongjiu.lu@intel.com>
2120
2121         PR gas/22874
2122         * config/tc-i386.c (f32_5): Removed.
2123         (f32_8): Likewise.
2124         (f32_9): Likewise.
2125         (f32_10): Likewise.
2126         (f32_11): Likewise.
2127         (f32_12): Likewise.
2128         (f32_13): Likewise.
2129         (f32_14): Likewise.
2130         (f16_5): Likewise.
2131         (f16_6): Likewise.
2132         (f16_7): Likewise.
2133         (f16_8): Likewise.
2134         (jump_31): Likewise.
2135         (alt64_11): Likewise.
2136         (alt64_patt): Likewise.
2137         (jump_disp8): New.
2138         (jump32_disp32): Likewise.
2139         (jump16_disp32): Likewise.
2140         (alt_11): Likewise.
2141         (f32_patt): Updated.
2142         (f16_patt): Likewise.
2143         (alt_patt): Add alt_11.
2144         (i386_align_code): Merged with ...
2145         (i386_generate_nops): This.  Rewritten.
2146         (fits_in_imm7): Moved before i386_generate_nops.
2147         (fits_in_imm31): Likewise.
2148         * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Updated to
2149         4095.
2150         (i386_align_code): Removed.
2151         (HANDLE_ALIGN): Rewritten with i386_generate_nops.
2152         * doc/as.texinfo: Update limits of control byte for x86 .nops
2153         directive.
2154         * testsuite/gas/i386/i386.exp: Run nops-7 and x86-64-nops-7.
2155         * gas/testsuite/gas/i386/noavx-3.l: Updated.
2156         * gas/testsuite/gas/i386/nop-1.d: Likewise.
2157         * gas/testsuite/gas/i386/nop-1.s: Likewise.
2158         * gas/testsuite/gas/i386/nop-2.d: Likewise.
2159         * gas/testsuite/gas/i386/nop-2.s: Likewise.
2160         * gas/testsuite/gas/i386/nop-3.d: Likewise.
2161         * gas/testsuite/gas/i386/nop-4.d: Likewise.
2162         * gas/testsuite/gas/i386/nop-5.d: Likewise.
2163         * gas/testsuite/gas/i386/nop-5.s: Likewise.
2164         * gas/testsuite/gas/i386/nop-6.d: Likewise.
2165         * gas/testsuite/gas/i386/nop-bad-1.l: Likewise.
2166         * gas/testsuite/gas/i386/nops-1-core2.d: Likewise.
2167         * gas/testsuite/gas/i386/nops-1-i386-i686.d: Likewise.
2168         * gas/testsuite/gas/i386/nops-1-i386.d: Likewise.
2169         * gas/testsuite/gas/i386/nops-1-i686.d: Likewise.
2170         * gas/testsuite/gas/i386/nops-1-k8.d: Likewise.
2171         * gas/testsuite/gas/i386/nops-1.d: Likewise.
2172         * gas/testsuite/gas/i386/nops-2-core2.d: Likewise.
2173         * gas/testsuite/gas/i386/nops-2-i386.d: Likewise.
2174         * gas/testsuite/gas/i386/nops-2.d: Likewise.
2175         * gas/testsuite/gas/i386/nops-3-i386.d: Likewise.
2176         * gas/testsuite/gas/i386/nops-3-i686.d: Likewise.
2177         * gas/testsuite/gas/i386/nops-3.d: Likewise.
2178         * gas/testsuite/gas/i386/nops-4-i386.d: Likewise.
2179         * gas/testsuite/gas/i386/nops-4-i686.d: Likewise.
2180         * gas/testsuite/gas/i386/nops-4.d: Likewise.
2181         * gas/testsuite/gas/i386/nops-4a-i686.d: Likewise.
2182         * gas/testsuite/gas/i386/nops-5-i686.d: Likewise.
2183         * gas/testsuite/gas/i386/nops-5.d: Likewise.
2184         * gas/testsuite/gas/i386/nops-6.d: Likewise.
2185         * gas/testsuite/gas/i386/nops16-1.d: Likewise.
2186         * gas/testsuite/gas/i386/x86-64-nop-1.d: Likewise.
2187         * gas/testsuite/gas/i386/x86-64-nop-2.d: Likewise.
2188         * gas/testsuite/gas/i386/x86-64-nop-5.d: Likewise.
2189         * gas/testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise.
2190         * gas/testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise.
2191         * gas/testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise.
2192         * gas/testsuite/gas/i386/x86-64-nops-1-pentium.d: Likewise.
2193         * gas/testsuite/gas/i386/x86-64-nops-1.d: Likewise.
2194         * gas/testsuite/gas/i386/x86-64-nops-2.d: Likewise.
2195         * gas/testsuite/gas/i386/x86-64-nops-3.d: Likewise.
2196         * gas/testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
2197         * gas/testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise.
2198         * gas/testsuite/gas/i386/x86-64-nops-4.d: Likewise.
2199         * gas/testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise.
2200         * gas/testsuite/gas/i386/x86-64-nops-5.d: Likewise.
2201         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
2202         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
2203         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
2204         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise.
2205         * gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise.
2206         * gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise.
2207         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
2208         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
2209         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise.
2210         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
2211         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise.
2212         * gas/testsuite/gas/i386/nops-7.d: New file.
2213         * gas/testsuite/gas/i386/nops-7.s: Likewise.
2214         * gas/testsuite/gas/i386/x86-64-nops-7.d: Likewise.
2215
2216 2018-03-07  Alan Modra  <amodra@gmail.com>
2217
2218         * testsuite/gas/ppc/aix.exp: Run for rs6000 too.
2219         * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets.
2220         * testsuite/gas/ppc/machine.d: Don't run for PE targets.
2221
2222 2018-03-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2223
2224         * config/tc-arm.c (md_begin): Add NULL pointer check before
2225         dereferencing march_ext_opt.
2226
2227 2018-03-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2228
2229         * config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
2230         legacy_cpu, legacy_fpu, mcpu_cpu_opt, dyn_mcpu_ext_opt,
2231         mcpu_fpu_opt, march_cpu_opt, dyn_march_ext_opt, march_fpu_opt,
2232         mfpu_opt, object_arch, selected_cpu): Comment meaning of variables.
2233         (dyn_mcpu_ext_opt): Also rename into ...
2234         (mcpu_ext_opt): This.
2235         (dyn_march_ext_opt): Also rename into ...
2236         (march_ext_opt): This.
2237         (object_arch): Also rename into ...
2238         (selected_object_arch): This and make it a plain arm_feature_set
2239         structure.
2240         (selected_arch, selected_ext, selected_fpu): New static variables.
2241         (mark_feature_used): Fix comments, feature is marked as used iff it is
2242         currently allowed.
2243         (do_bx): Adapt to change in name and type of object_arch.
2244         (md_begin): Set selected_arch rather than mcpu_cpu_opt, selected_ext
2245         rather than dyn_mcpu_ext_opt and selected_fpu rather than mfpu_opt.
2246         Remove dead code to set default FPU if architecture version is greater
2247         than 5.  Set all CPU bits of cpu_variant directly in autodection
2248         leaving mcpu_cpu_opt, selected_arch and selected_cpu unset.
2249         (arm_parse_extension): Take extension feature set pointer parameter by
2250         value rather than by pointer.  Remove allocation code.  Adapt code
2251         accordingly.
2252         (arm_parse_cpu): Adapt to variable renaming and changes in
2253         arm_parse_extension () signature.
2254         (arm_parse_arch): Likewise.
2255         (aeabi_set_public_attributes): Also set selected_arch and selected_ext
2256         in addition to selected_cpu.  Set flags_arch and flags_ext from them
2257         instead of selected_cpu.  Adapt to variables renaming and type change.
2258         (arm_md_post_relax): Adapt to variable renaming.
2259         (s_arm_cpu): Set selcted_cpu_cpu and selected_ext instead of
2260         mcpu_cpu_opt and dyn_mcpu_ext_opt.  Set selected_cpu from them and
2261         cpu_variant from selected_cpu and selected_fpu.
2262         (s_arm_arch): Likewise.
2263         (s_arm_object_arch): Adapt to variable renaming.
2264         (s_arm_arch_extension): Use ARM_CPU_IS_ANY instead of checking feature
2265         set against arm_any.  Check selected_arch rather than *mcpu_cpu_opt.
2266         Set selected_ext rather than *dyn_mcpu_ext_opt and remove allocation
2267         code.
2268         (s_arm_fpu): Set selected_fpu instead of mfpu_opt.  Set all CPU feature
2269         bits if in autodetection mode.
2270
2271 2018-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2272
2273         * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
2274         AVX512 vpsub[bwdq] instructions.
2275         * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
2276         AVX512 vpsub[bwdq] instructions.
2277         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
2278         * testsuite/gas/i386/optimize-1.d: Updated.
2279         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
2280
2281 2018-03-01  Alan Modra  <amodra@gmail.com>
2282
2283         * configure.ac (ALL_LINGUAS): Add uk.  Sort.
2284         * configure: Regenerate.
2285
2286 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
2287
2288         * NEWS: Rename .nop to .nops.
2289         * doc/as.texinfo: Likewise.
2290         * read.c (potable): Add "nops".  Remove "nop".
2291         (s_nop): Renamed to ...
2292         (s_nops): This.
2293         * read.h (s_nop): Renamed to ...
2294         (s_nops): This.
2295         * write.c (cvt_frag_to_fill): Rename .nop to .nops.
2296         (md_generate_nops): Likewise.
2297         (relax_segment): Likewise.
2298         * testsuite/gas/i386/nop-1.d: Updated.
2299         * testsuite/gas/i386/nop-1.s: Likewise.
2300         * testsuite/gas/i386/nop-2.d: Likewise.
2301         * testsuite/gas/i386/nop-2.s: Likewise.
2302         * testsuite/gas/i386/nop-3.d: Likewise.
2303         * testsuite/gas/i386/nop-3.s: Likewise.
2304         * testsuite/gas/i386/nop-4.d: Likewise.
2305         * testsuite/gas/i386/nop-4.s: Likewise.
2306         * testsuite/gas/i386/nop-5.d: Likewise.
2307         * testsuite/gas/i386/nop-5.s: Likewise.
2308         * testsuite/gas/i386/nop-6.d: Likewise.
2309         * testsuite/gas/i386/nop-6.s: Likewise.
2310         * testsuite/gas/i386/nop-bad-1.l: Likewise.
2311         * testsuite/gas/i386/nop-bad-1.s: Likewise.
2312         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
2313         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
2314         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
2315         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
2316         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
2317         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
2318
2319 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
2320
2321         PR gas/22871
2322         * NEWS: Mention -O[2|s].
2323         * config/tc-i386.c (_i386_insn): Add no_optimize.
2324         (optimize): New.
2325         (optimize_for_space): Likewise.
2326         (fits_in_imm7): New function.
2327         (fits_in_imm31): Likewise.
2328         (optimize_encoding): Likewise.
2329         (md_assemble): Call optimize_encoding to optimize encoding.
2330         (parse_insn): Handle {nooptimize}.
2331         (md_shortopts): Append "O::".
2332         (md_parse_option): Handle -On.
2333         * doc/c-i386.texi: Document -O0, -O, -O1, -O2 and -Os as well
2334         as {nooptimize}.
2335         * testsuite/gas/cfi/cfi-x86_64.d: Pass -O0 to assembler.
2336         * testsuite/gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
2337         * testsuite/gas/i386/i386.exp: Run optimize-1, optimize-2,
2338         optimize-3, x86-64-optimize-1, x86-64-optimize-2,
2339         x86-64-optimize-3 and x86-64-optimize-4.
2340         * testsuite/gas/i386/optimize-1.d: New file.
2341         * testsuite/gas/i386/optimize-1.s: Likewise.
2342         * testsuite/gas/i386/optimize-2.d: Likewise.
2343         * testsuite/gas/i386/optimize-2.s: Likewise.
2344         * testsuite/gas/i386/optimize-3.d: Likewise.
2345         * testsuite/gas/i386/optimize-3.s: Likewise.
2346         * testsuite/gas/i386/x86-64-optimize-1.s: Likewise.
2347         * testsuite/gas/i386/x86-64-optimize-1.d: Likewise.
2348         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
2349         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
2350         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
2351         * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
2352         * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
2353         * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
2354
2355 2018-02-27  Nick Clifton  <nickc@redhat.com>
2356
2357         * po/ru.po: Updated Russian translation.
2358
2359 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
2360
2361         * doc/as.texinfo (Pseudo Ops): Clean up `.dc' and `.ds'
2362         descriptions.
2363
2364 2018-02-26  Nick Clifton  <nickc@redhat.com>
2365
2366         * doc/as.texinfo (Dc): Fix typo.
2367
2368 2018-02-26  Alan Modra  <amodra@gmail.com>
2369
2370         * testsuite/gas/mips/reginfo-2.l: Update.
2371
2372 2018-02-23  Alan Modra  <amodra@gmail.com>
2373
2374         * testsuite/gas/mips/reginfo-2.l: Update.
2375
2376 2018-02-23  Nick Clifton  <nickc@redhat.com>
2377
2378         * doc/as.texinfo (Pseudo Ops): Add nodes for .dc, .dcb and .ds.
2379
2380 2018-02-23  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
2381
2382         * config/tc-nds32.c (ict_model): New function. Hook new
2383         directive .ict_model.
2384         (nds32_insert_relax_entry): Tag the bits of entry relocation
2385         for .ict_model.
2386
2387 2018-02-22  H.J. Lu  <hongjiu.lu@intel.com>
2388
2389         * config/tc-i386.c (_i386_insn): Add rex_encoding.
2390         (md_assemble): When i.rex_encoding is true, generate a REX byte
2391         if possible.
2392         (parse_insn): Set i.rex_encoding for {rex}.
2393         * doc/c-i386.texi: Document {rex}.
2394         * testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
2395         * testsuite/gas/i386/x86-64-pseudos.d: Updated.
2396
2397 2018-02-22  A. Wilcox  <awilfox@adelielinux.org>
2398
2399         PR 22014
2400         * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
2401         instruction size suffix.
2402
2403 2018-02-20  Maciej W. Rozycki  <macro@mips.com>
2404
2405         * testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
2406         * testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
2407         * testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
2408         * testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
2409         * testsuite/gas/mips/mips.exp: Run the new tests.
2410
2411 2018-02-20  Max Filippov  <jcmvbkbc@gmail.com>
2412
2413         * config/tc-xtensa.c (struct litpool_frag): Add new field
2414         literal_count.
2415         (MAX_AUTO_POOL_LITERALS, MAX_EXPLICIT_POOL_LITERALS)
2416         (MAX_POOL_LITERALS): New macro definitions.
2417         (auto_litpool_limit): Initialize to 0.
2418         (md_parse_option): Set auto_litpool_limit in the presence of
2419         --auto-litpools option.
2420         (xtensa_maybe_create_literal_pool_frag): Zero-initialize
2421         literal_count field.
2422         (xg_find_litpool): New function. Make sure that found literal
2423         pool size is within the limit.
2424         (xtensa_move_literals): Extract literal pool search code into
2425         the new function.
2426         * testsuite/gas/xtensa/all.exp: Add auto-litpools-2 test.
2427         * testsuite/gas/xtensa/auto-litpools-2.d: New file.
2428         * testsuite/gas/xtensa/auto-litpools-2.s: New file.
2429         * testsuite/gas/xtensa/auto-litpools.d: Fix up changed
2430         addresses.
2431         * testsuite/gas/xtensa/auto-litpools.s: Change literal value so
2432         that objdump doesn't get out of sync.
2433
2434 2018-02-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2435
2436         * doc/c-arm.texi (.arch_extension): Mention extensions it accepts are
2437         also the same as -march.
2438
2439 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2440
2441         * NEWS: Mention .nop directive.
2442         * as.h (_relax_state): Add rs_space_nop and rs_fill_nop.
2443         * read.c (potable): Add .nop.
2444         (s_nop): New function.
2445         * read.h (s_nop): New prototype.
2446         * write.c (cvt_frag_to_fill): Handle rs_space_nop and
2447         rs_fill_nop.
2448         (md_generate_nops): New function.
2449         (relax_segment): Likewise.
2450         (write_contents): Use md_generate_nops for rs_fill_nop.
2451         * config/tc-i386.c (alt64_11): New.
2452         (alt64_patt): Likewise.
2453         (md_convert_frag): Handle rs_space_nop.
2454         (i386_output_nops): New function.
2455         (i386_generate_nops): Likewise.
2456         (i386_align_code): Call i386_output_nops.
2457         * config/tc-i386.h (i386_generate_nops): New.
2458         (md_generate_nops): Likewise.
2459         * doc/as.texinfo: Document .nop directive.
2460         * testsuite/gas/i386/i386.exp: Run .nop directive tests.
2461         * testsuite/gas/i386/nop-1.d: New file.
2462         * testsuite/gas/i386/nop-1.s: Likewise.
2463         * testsuite/gas/i386/nop-2.d: Likewise.
2464         * testsuite/gas/i386/nop-2.s: Likewise.
2465         * testsuite/gas/i386/nop-3.d: Likewise.
2466         * testsuite/gas/i386/nop-3.s: Likewise.
2467         * testsuite/gas/i386/nop-4.d: Likewise.
2468         * testsuite/gas/i386/nop-4.s: Likewise.
2469         * testsuite/gas/i386/nop-5.d: Likewise.
2470         * testsuite/gas/i386/nop-5.s: Likewise.
2471         * testsuite/gas/i386/nop-6.d: Likewise.
2472         * testsuite/gas/i386/nop-6.s: Likewise.
2473         * testsuite/gas/i386/nop-bad-1.l: Likewise.
2474         * testsuite/gas/i386/nop-bad-1.s: Likewise.
2475         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
2476         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
2477         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
2478         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
2479         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
2480         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
2481
2482 2018-02-15  Tamar Christina  <tamar.christina@arm.com>
2483
2484         * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
2485         * testsuite/gas/arm/attr-march-armv8_4-a.d: New.
2486
2487 2018-02-13  Max Filippov  <jcmvbkbc@gmail.com>
2488
2489         * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
2490         frag that contains source address.
2491
2492 2018-02-13  Nick Clifton  <nickc@redhat.com>
2493
2494         PR 22773
2495         * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
2496         instruction before assuming that it is a MOV instruction.
2497         * testsuite/gas/arm/pr22773.s: New test.
2498         * testsuite/gas/arm/pr22773.d: New test driver.
2499         * testsuite/gas/arm/pr22773.l: New expected output.
2500
2501 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
2502
2503         PR gas/22791
2504         * config/tc-i386.c (need_plt32_p): New function.
2505         (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
2506         (md_estimate_size_before_relax): Likewise.
2507         * testsuite/gas/i386/reloc64.d: Updated.
2508         * testsuite/gas/i386/x86-64-jump.d: Likewise.
2509         * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
2510         * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
2511         * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
2512         * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
2513         * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
2514         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
2515
2516 2018-02-13  Maciej W. Rozycki  <macro@mips.com>
2517
2518         * testsuite/gas/mips/loongson-3a-2.d: Rename test.
2519
2520 2018-02-13  Nick Clifton  <nickc@redhat.com>
2521
2522         PR 22823
2523         * config/obj-elf.c (elf_pseudo_table): Remove now redundant
2524         casts.
2525         (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
2526         (obj_elf_vtable_inherit): New stub function that calls
2527         obj_elf_get_vtable_inherit.
2528         (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
2529         (obj_elf_vtable_entry): New stub function that calls
2530         obj_elf_get_vtable_entry.
2531         * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
2532         (obj_elf_vtable_entry) Likewise.
2533         (obj_elf_get_vtable_inherit) Likewise.
2534         (obj_elf_get_vtable_entry) Likewise.
2535         * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
2536         * config/tc-i386c (md_pseudo_table): Likewise.
2537         * config/tc-hppa.c (pa_vtable_entry): Call
2538         obj_elf_get_vtable_entry.
2539         (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
2540         * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
2541         with call to dwarf2_get_filename.
2542         * dwarf2dbg.c (dwarf2_directive_file): Rename to
2543         dwarf2_directive_filename.
2544         (dwarf2_directive_file): New stub function that calls
2545         dwarf2_directive_filename.
2546         * dwarf2dbg.h: Prototype dwarf2_directive_filename.
2547
2548 2018-02-12  Maciej W. Rozycki  <macro@mips.com>
2549
2550         * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
2551         `as' flags.
2552
2553 2018-02-12  Henry Wong <henry@stuffedcow.net>
2554
2555         * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
2556         * testsuite/gas/mips/r6-n32.d: Likewise.
2557         * testsuite/gas/mips/r6-n64.d: Likewise.
2558
2559 2018-02-12  Nick Clifton  <nickc@redhat.com>
2560
2561         * po/ru.po: Updated Russian translation.
2562
2563 2018-02-08  Alan Modra  <amodra@gmail.com>
2564
2565         PR 22819
2566         * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
2567         (ppc_frag_check): Likewise.
2568         * testsuite/gas/ppc/misalign.d,
2569         * testsuite/gas/ppc/misalign.l,
2570         * testsuite/gas/ppc/misalign.s: New test.
2571         * testsuite/gas/ppc/misalign2.d,
2572         * testsuite/gas/ppc/misalign2.s: New test.
2573         * testsuite/gas/ppc/ppc.exp: Run them.
2574
2575 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
2576
2577         * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
2578         `expr' parameter to `ep'.
2579
2580 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
2581
2582         * testsuite/gas/mips/reginfo-2.d: New test.
2583         * testsuite/gas/mips/reginfo-2-n32.d: New test.
2584         * testsuite/gas/mips/reginfo-2.l: New test stderr output.
2585         * testsuite/gas/mips/reginfo-2.s: New test source.
2586         * testsuite/gas/mips/mips.exp: Run the new tests.
2587
2588 2018-02-05  Nick Clifton  <nickc@redhat.com>
2589
2590         * po/ru.po: Updated Russian translation.
2591
2592 2018-01-31  Alan Modra  <amodra@gmail.com>
2593
2594         PR 22714
2595         * app.c (last_char): New static var.
2596         (struct app_save): Add last_char field.
2597         (app_push, app_pop): Handle it.
2598         (do_scrub_chars): Use last_char in test for "\@".  Set last_char.
2599
2600 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
2601
2602         PR gas/22738
2603         * config/tc-sparc.h (sparc_mach): Declare.
2604         (TARGET_MACH): Define to above.
2605         * config/tc-sparc.c (sparc_mach): New function.
2606         (sparc_md_end): Minor tweak.
2607
2608 2018-01-29  Nick Clifton  <nickc@redhat.com>
2609
2610         * po/ru.po: Updated Russian translation.
2611
2612 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
2613
2614         * configure.tgt: Use generic emulation for `mips-*-windiss',
2615         overriding the blanket choice made for `*-*-windiss'.
2616
2617 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
2618
2619         * configure.tgt: Use `mips-*-sysv4*' rather than
2620         `mips-*-sysv4*MP*'.
2621
2622 2018-01-24  Renlin Li  <renlin.li@arm.com>
2623
2624         * config/tc-aarch64.c (reloc_table): add entries for
2625         BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2626         BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2627         BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2628         BFD_RELOC_AARCH64_MOVW_PREL_G3.
2629         (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
2630         (md_apply_fix): Likewise
2631         * testsuite/gas/aarch64/prel_g0.s: New.
2632         * testsuite/gas/aarch64/prel_g0.d: New.
2633         * testsuite/gas/aarch64/prel_g0_nc.s: New.
2634         * testsuite/gas/aarch64/prel_g0_nc.d: New.
2635         * testsuite/gas/aarch64/prel_g1.s: New.
2636         * testsuite/gas/aarch64/prel_g1.d: New.
2637         * testsuite/gas/aarch64/prel_g1_nc.s: New.
2638         * testsuite/gas/aarch64/prel_g1_nc.d: New.
2639         * testsuite/gas/aarch64/prel_g2.s: New.
2640         * testsuite/gas/aarch64/prel_g2.d: New.
2641         * testsuite/gas/aarch64/prel_g2_nc.s: New.
2642         * testsuite/gas/aarch64/prel_g2_nc.d: New.
2643         * testsuite/gas/aarch64/prel_g3.s: New.
2644         * testsuite/gas/aarch64/prel_g3.d: New.
2645
2646 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
2647
2648         * configure.ac: Also set `mips_default_abi' to N32_ABI for
2649         `mips64*-ps2-elf*'.
2650         * configure: Regenerate.
2651
2652 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
2653
2654         * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
2655         enum value.
2656
2657 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2658
2659         * config/tc-i386.c (cpu_arch): Add .pconfig.
2660         * doc/c-i386.texi: Document .pconfig.
2661         * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
2662         * testsuite/gas/i386/pconfig-intel.d: New test.
2663         * testsuite/gas/i386/pconfig.d: Likewise.
2664         * testsuite/gas/i386/pconfig.s: Likewise.
2665         * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
2666         * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
2667         * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
2668
2669 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2670
2671         * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
2672         * doc/c-i386.texi: Document .wbnoinvd.
2673         * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
2674         * testsuite/gas/i386/wbnoinvd-intel.d: New test.
2675         * testsuite/gas/i386/wbnoinvd.d: Likewise.
2676         * testsuite/gas/i386/wbnoinvd.s: Likewise.
2677         * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
2678         * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
2679         * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
2680
2681 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
2682
2683         * config/tc-mips.c (md_show_usage): Correctly indicate the
2684         configuration-specific default ABI.
2685
2686 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
2687
2688         * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
2689         `-mno-mips16e2' options.
2690
2691 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
2692
2693         * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
2694         Correct syntax of the `.set nomips16e2' directive description.
2695
2696 2018-01-22  Oleg Endo  <olegendo@gcc.gnu.org>
2697
2698         PR 22737
2699         * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
2700         * testsuite/gas/rx/pr22737.s: New test.
2701         * testsuite/gas/rx/pr22737.d: Likewise.
2702         * testsuite/gas/rx/rx.exp: Run the new test.
2703
2704 2018-01-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2705
2706         * config/tc-arm.c (ToC macro): Remove spurious comment.
2707         (ToU macro): Likewise.
2708
2709 2018-01-17  Jim Wilson  <jimw@sifive.com>
2710
2711         * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
2712         (riscv_ip) <'z'>: New.
2713
2714 2018-01-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2715
2716         * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
2717         (cpu_noarch): Add noibt, noshstk.
2718         (parse_insn): Change cpucet to cpuibt.
2719         * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
2720         * testsuite/gas/i386/cet-ibt-inval.l: New test.
2721         * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
2722         * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
2723         * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
2724         * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
2725         * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
2726         * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
2727         * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
2728
2729 2018-01-16  Nick Clifton  <nickc@redhat.com>
2730
2731         * po/fr.po: Updated French translation.
2732
2733 2018-01-15  Jim Wilson  <jimw@sifive.com>
2734
2735         * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
2736         * testsuite/gas/riscv/c-zero-imm.d: Likewise.
2737
2738 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2739
2740         * config/tc-arm.c (ToC): Define macro.
2741         (ToU): Likewise.
2742         (insns): Make use of above macros for new instructions introduced in
2743         Armv8-M.
2744
2745 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2746
2747         * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
2748         and vlstm conditionally executable and reindent parameters.
2749         * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
2750         aforementionned instructions.
2751
2752 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2753
2754         * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
2755         profile architecture or if in autodetection mode.  Clarify that
2756         deprecation is for performance reason and concerns Armv8-A and Armv8-R.
2757         * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
2758         message.
2759         * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
2760         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
2761         * testsuite/gas/arm/udf.l: Likewise.
2762         * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
2763
2764 2018-01-15  Nick Clifton  <nickc@redhat.com>
2765
2766         * po/uk.po: Updated Ukranian translation.
2767
2768 2018-01-13  Nick Clifton  <nickc@redhat.com>
2769
2770         * po/gas.pot: Regenerated.
2771
2772 2018-01-13  Nick Clifton  <nickc@redhat.com>
2773
2774         * configure: Regenerate.
2775
2776 2018-01-13  Nick Clifton  <nickc@redhat.com>
2777
2778         2.30 branch created.
2779         * NEWS: Add marker for 2.30.
2780
2781 2018-01-12  Gunther Nikl  <gnikl@users.sourceforge.net>
2782
2783         * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
2784         define to 0 and 1. Remove a dangling reference to "AMD 29000"
2785         in a comment.
2786
2787 2018-01-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2788
2789         * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
2790         * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
2791         * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
2792         * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
2793         * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
2794         * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
2795         * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
2796         * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
2797         tests.
2798         * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
2799         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
2800         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
2801         * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
2802         * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
2803         * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
2804         * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
2805         * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
2806
2807 2018-01-11  Alan Modra  <amodra@gmail.com>
2808
2809         * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
2810         positive "‘profile’ may be used uninitialized".
2811
2812 2018-01-10  Jan Beulich  <jbeulich@suse.com>
2813
2814         * testsuite/gas/i386/avx512_4fmaps.s,
2815         testsuite/gas/i386/avx512_4fmaps_vl.s,
2816         testsuite/gas/i386/x86-64-avx512_4fmaps.s,
2817         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
2818         Disp8 forms (and the transition happening at the right
2819         boundary).
2820         * testsuite/gas/i386/avx512_4fmaps.d,
2821         testsuite/gas/i386/avx512_4fmaps-intel.d,
2822         testsuite/gas/i386/avx512_4fmaps_vl.d,
2823         testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
2824         testsuite/gas/i386/x86-64-avx512_4fmaps.d,
2825         testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
2826         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
2827         testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
2828         expectations.
2829
2830 2018-01-10  Jan Beulich  <jbeulich@suse.com>
2831
2832         * testsuite/gas/i386/avx512bw.s,
2833         testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
2834         operands.
2835         * testsuite/gas/i386/avx512bw-intel.d,
2836         testsuite/gas/i386/avx512bw.d,
2837         testsuite/gas/i386/avx512bw_vl-intel.d.
2838         testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
2839
2840 2018-01-09  Jim Wilson  <jimw@sifive.com>
2841
2842         * testsuite/gas/riscv/auipc-x0.d: New.
2843         * testsuite/gas/riscv/auipc-x0.s: New.
2844
2845 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
2846
2847         * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
2848         in Arm execution state, and Armv6T2 and above in Thumb execution
2849         state.
2850         * testsuite/gas/arm/csdb.s: New.
2851         * testsuite/gas/arm/csdb.d: New.
2852         * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
2853         * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
2854
2855 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
2856
2857         * testsuite/gas/aarch64/system.d: Update expected results to expect
2858         CSDB for hint 0x14.
2859
2860 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
2861
2862         PR gas/22681
2863         * testsuite/gas/i386/i386.exp: Run x86-64-movd and
2864         x86-64-movd-intel.
2865         * testsuite/gas/i386/x86-64-movd-intel.d: New file.
2866         * testsuite/gas/i386/x86-64-movd.d: Likewise.
2867         * testsuite/gas/i386/x86-64-movd.s: Likewise.
2868
2869 2018-01-08  Nick Clifton  <nickc@redhat.com>
2870
2871         PR 22553
2872         * doc/c-i386.texi (i386-Directives): Document the .largecomm
2873         directive.
2874
2875 2018-01-04  Jim Wilson  <jimw@sifive.com>
2876
2877         * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
2878         * testsuite/gas/riscv/priv-reg.d: Likewise.
2879
2880 2018-01-03  Alan Modra  <amodra@gmail.com>
2881
2882         Update year range in copyright notice of all files.
2883
2884 2018-01-02  Nick Clifton  <nickc@redhat.com>
2885
2886         PR 18119
2887         * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
2888         version of ARM MRS instruction.
2889
2890 For older changes see ChangeLog-2017
2891 \f
2892 Copyright (C) 2018 Free Software Foundation, Inc.
2893
2894 Copying and distribution of this file, with or without modification,
2895 are permitted in any medium without royalty provided the copyright
2896 notice and this notice are preserved.
2897
2898 Local Variables:
2899 mode: change-log
2900 left-margin: 8
2901 fill-column: 74
2902 version-control: never
2903 End: