x86: CET v2.0: Update NOTRACK prefix
[external/binutils.git] / gas / ChangeLog
1 2017-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * config/tc-i386.c (md_assemble): Update NOTRACK prefix check.
4         * testsuite/gas/i386/notrack-intel.d: Updated.
5         * testsuite/gas/i386/notrack.d: Likewise.
6         * testsuite/gas/i386/notrackbad.l: Likewise.
7         * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
8         * testsuite/gas/i386/x86-64-notrack.d: Likewise.
9         * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
10         * testsuite/gas/i386/notrack.s: Add NOTRACK prefix tests with
11         memory indirect branch.
12         * testsuite/gas/i386/x86-64-notrack.s: Likewise.
13         * testsuite/gas/i386/notrackbad.s: Remove memory indirect branch
14         with NOTRACK prefix.
15         * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
16
17 2017-06-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18
19         * config/tc-arm.c (arm_extensions): New duplicate idiv entry to enable
20         Thumb division for ARMv7 architecture.
21         (arm_parse_extension): Document expected behavior for duplicate
22         entries.
23         (s_arm_arch_extension): Likewise.
24         * testsuite/gas/arm/forbid-armv7-idiv-ext.d: New test.
25         * testsuite/gas/arm/forbid-armv7-idiv-ext.l: New expected output for
26         above test.
27
28 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29
30         * config/tc-arm.c (aeabi_set_public_attributes): Populate flags from
31         feature bits used or selected_cpu depending on whether a CPU was
32         selected by the user.
33
34 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35
36         * config/tc-arm.c (aeabi_set_public_attributes): Test *mcpu_ext_opt to
37         decide whether to set Tag_DSP_extension build attribute value.  Remove
38         now useless arm_arch variable.
39
40 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41
42         * config/tc-arm.c (dyn_mcpu_ext_opt): New static variable.
43         (dyn_march_ext_opt): Likewise.
44         (md_begin): Copy extension feature bits alongside architecture ones.
45         Merge extensions feature bits in selected_cpu and cpu_variant if there
46         is some.
47         (arm_parse_extension): Pass architecture and extension feature bits in
48         separate parameters, with architecture bits being read only.  Update
49         **opt_p directly rather than *ext_set and initialize it if needed.
50         (arm_parse_cpu): Stop merging architecture and extension feature bits
51         and instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
52         respectively.  Adapt to change in parameters of arm_parse_extension.
53         (arm_parse_arch): Adapt to change in parameters of arm_parse_extension.
54         (aeabi_set_attribute_string): Make function static.
55         (arm_md_post_relax): New function.
56         (s_arm_cpu): Stop merging architecture and extension feature bits and
57         instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
58         respectively.  Merge extension feature bits in cpu_variant
59         if there is any.
60         (s_arm_arch): Reset extension feature bit.  Set selected_cpu from
61         *mcpu_cpu_opt and cpu_variant from selected_cpu and *mfpu_opt for
62         consistency with s_arm_cpu.
63         (s_arm_arch_extension): Update *dyn_mcpu_ext_opt rather than
64         selected_cpu, allocating it before hand if needed.  Set selected_cpu
65         from it and then cpu_variant.
66         (s_arm_fpu): Merge *mcpu_ext_opt feature bits if any in cpu_variant.
67         * config/tc-arm.h (md_post_relax_hook): Set to arm_md_post_relax.
68         (aeabi_set_public_attributes): Delete external declaration.
69         (arm_md_post_relax): Declare externally.
70
71 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
72
73         * config/tc-arm.c (struct arm_cpu_option_table): New ext field.
74         (ARM_CPU_OPT): Add parameter to set new ext field and reorder canonical
75         name field just after the name field.
76         (arm_cpus): Move extension feature bit from value field to ext field,
77         reorder parameter according to changes in ARM_CPU_OPT and reindent.
78         (arm_parse_cpu): Point mcpu_cpu_opt to a bitfield merging the value and
79         ext field from the selected arm_cpus entry.
80         (s_arm_cpu): Likewise.
81
82 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
83
84         * config/tc-aarch64.c (aarch64_cpus): Add cortex-a55 and cortex-a75.
85         * doc/c-aarch64.texi (-mcpu): Document cortex-a55 and cortex-a75.
86
87 2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
88
89         PR binutils/21594
90         * testsuite/gas/i386/mpx.s: Add 2 tests with invalid bnd
91         register.
92         * testsuite/gas/i386/x86-64-mpx.s: Likewise.
93         * testsuite/gas/i386/mpx.d: Updated.
94         * testsuite/gas/i386/x86-64-mpx.d: Likewise.
95
96 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
97
98         * config/tc-xtensa.c (density_supported, xtensa_fetch_width,
99         absolute_literals_supported): Leave definitions uninitialized.
100         (directive_state): Leave entries for directive_density and
101         directive_absolute_literals initialized to false.
102         (xg_init_global_config, xtensa_init): New functions.
103         * config/tc-xtensa.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
104         (HOST_SPECIAL_INIT): New definition.
105         (xtensa_init): New declaration.
106
107 2017-06-07  Michael Collison  <michael.collison@arm.com>
108
109         * config/tc-aarch64.c (reg_entry_reg_names): Add IP0,
110         IP1, FP, and LR as register aliases of register 16, 17, 29
111         and 30 respectively.
112         * testsuite/gas/aarch64/diagnostic.l: Remove diagnostic
113         prohibiting register 'lr' which is now an alias.
114         * testsuite/gas/aarch64/diagnostic.s: Remove instruction
115         utilizing register 'lr' which is now an alias.
116
117 2017-06-06  Jiong Wang  <jiong.wang@arm.com>
118
119         * config/tc-arm.c (reject_bad_reg): Allow REG_SP on ARMv8-A.
120         (parse_operands): Allow REG_SP for OP_oRRnpcsp and OP_RRnpcsp on
121         ARMv8-A.
122         (do_co_reg): Allow REG_SP for Rd on ARMv8-A.
123         (do_t_add_sub): Likewise.
124         (do_t_mov_cmp): Likewise.
125         (do_t_tb): Likewise.
126         * testsuite/gas/arm/ld-sp-warn.l: Delete the warning on REG_SP as Rt for
127         ldrsb.
128         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.d: New test.
129         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: New test.
130         * testsuite/gas/arm/sp-pc-validations-bad-t.d: Specifies -march=armv7-a.
131         * testsuite/gas/arm/sp-pc-validations-bad-t.s: Remove ".arch armv7-a".
132         * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.d: New test.
133         * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.l: New test.
134         * testsuite/gas/arm/sp-usage-thumb2-relax-on-v8.d: New test.
135         * testsuite/gas/arm/sp-usage-thumb2-relax.s: New test.
136         * testsuite/gas/arm/strex-bad-t.d: Specifies -march=armv7-a.
137
138 2017-06-05  Jim Wilson  <jim.wilson@linaro.org>
139
140         * config/tc-arm.c (arm_cpus): Delete falkor and qdf24xx entries.
141         * doc/c-arm.texi (-mcpu): Likewise.
142
143 2017-05-30  Anton Kolesov  <anton.kolesov@synopsys.com>
144
145         * config/tc-arc.c (cpu_types): Include arc-cpu.def
146
147 2017-05-23  H.J. Lu  <hongjiu.lu@intel.com>
148
149         * gas/testsuite/gas/i386/notrackbad.l: Updated for non-ELF
150         targets.
151         * gas/testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
152
153 2017-05-23  Claudiu Zissulescu <claziss@synopsys.com>
154
155         * config/tc-arc.c (md_apply_fix): Use as_bad_where.
156         (assemble_insn): Use as_bad.
157
158 2017-05-22  H.J. Lu  <hongjiu.lu@intel.com>
159
160         * config/tc-i386.c (REX_PREFIX): Changed to 7.
161         (NOTRACK_PREFIX): New.
162         (MAX_PREFIXES): Changed to 8.
163         (_i386_insn): Add notrack_prefix.
164         (PREFIX_GROUP): Add PREFIX_DS.
165         (add_prefix): Return PREFIX_DS for DS_PREFIX_OPCODE.
166         (md_assemble): Check if NOTRACK prefix is supported.
167         (parse_insn): Set notrack_prefix and issue an error for
168         other prefixes after NOTRACK prefix.
169         * testsuite/gas/i386/i386.exp: Run tests for NOTRACK prefix.
170         * testsuite/gas/i386/notrack-intel.d: New file.
171         * testsuite/gas/i386/notrack.d: Likewise.
172         * testsuite/gas/i386/notrack.s: Likewise.
173         * testsuite/gas/i386/notrackbad.l: Likewise.
174         * testsuite/gas/i386/notrackbad.s: Likewise.
175         * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
176         * testsuite/gas/i386/x86-64-notrack.d: Likewise.
177         * testsuite/gas/i386/x86-64-notrack.s: Likewise.
178         * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
179         * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
180
181 2017-05-22  Jiong Wang <jiong.wang@arm.com>
182
183         * configure.tgt: Set "arch" to "aarch64" if ${cpu} equals "aarch64".
184         Recognize the new triplet name aarch64*-linux-gnu_ilp32.
185         * configure.ac: Output DEFAULT_ARCH macro for AArch64.
186         * configure: Regenerate.
187         * config/tc-aarch64.h (aarch64_after_parse_args): New declaration.
188         (md_after_parse_args): New define.
189         * config/tc-aarch64.c (aarch64_abi_type): New enumeration
190         AARCH64_ABI_NONE.
191         (DEFAULT_ARCH): New define.
192         (aarch64_abi): Set default value to AARCH64_ABI_NONE.
193         (aarch64_after_parse_args): New function.
194
195 2017-05-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
196
197         * config/tc-sparc.c (sparc_arch_table): Entries for `sparc6',
198         `v9m8' and `v8plusm8'.
199         (sparc_md_end): Handle SPARC_OPCODE_ARCH_M8.
200         (get_hwcap_name): Support the M8 hardware capabilities.
201         (sparc_ip): Handle new operand types.
202         * doc/c-sparc.texi (Sparc-Opts): Document -Av9m8, -Av8plusm8 and
203         -Asparc6, and the corresponding -xarch aliases.
204         * testsuite/gas/sparc/sparc6.s: New file.
205         * testsuite/gas/sparc/sparc6.d: Likewise.
206         * testsuite/gas/sparc/sparc6-diag.s: Likewise.
207         * testsuite/gas/sparc/sparc6-diag.l: Likewise.
208         * testsuite/gas/sparc/fpcmpshl.s: Likewise.
209         * testsuite/gas/sparc/fpcmpshl.d: Likewise.
210         * testsuite/gas/sparc/fpcmpshl-diag.s: Likewise.
211         * testsuite/gas/sparc/fpcmpshl-diag.l: Likewise.
212         * testsuite/gas/sparc/ldm-stm.s: Likewise.
213         * testsuite/gas/sparc/ldm-stm.d: Likewise.
214         * testsuite/gas/sparc/ldm-stm-diag.s: Likewise.
215         * testsuite/gas/sparc/ldm-stm-diag.l: Likewise.
216         * testsuite/gas/sparc/ldmf-stmf.s: Likewise.
217         * testsuite/gas/sparc/ldmf-stmf.d: Likewise.
218         * testsuite/gas/sparc/ldmf-stmf-diag.s: Likewise.
219         * testsuite/gas/sparc/ldmf-stmf-diag.l: Likewise.
220         * testsuite/gas/sparc/on.s: Likewise.
221         * testsuite/gas/sparc/on.d: Likewise.
222         * testsuite/gas/sparc/on-diag.s: Likewise.
223         * testsuite/gas/sparc/on-diag.l: Likewise.
224         * testsuite/gas/sparc/rle.s: Likewise.
225         * testsuite/gas/sparc/rle.d: Likewise.
226         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run new tests.
227         * testsuite/gas/sparc/rdasr.s: Add test for RDENTROPY.
228         * testsuite/gas/sparc/rdasr.d: Likewise.
229
230 2017-05-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
231
232         * testsuite/gas/sparc/call-relax.d: Support 32-bit targets.
233         * testsuite/gas/sparc/sparc.exp (gas_64_check): Use -64 to
234         run asi-bump-warn.
235
236 2017-05-19  Georg-Johann Lay  <avr@gjlay.de>
237
238         PR ld/21472
239         * config/tc-avr.c (mcu_types): Add entries for: attiny416,
240         attiny417, attiny816, attiny817.
241
242 2017-05-18  Alan Modra  <amodra@gmail.com>
243
244         * config/tc-aarch64.c: Don't compare booleans against TRUE or FALSE.
245         * config/tc-hppa.c: Likewise.
246         * config/tc-mips.c: Likewise.
247         * config/tc-score7.c: Likewise.
248
249 2017-05-16  Alan Modra  <amodra@gmail.com>
250
251         * write.c (GENERIC_FORCE_RELOCATION_LOCAL): Define.
252         (TC_FORCE_RELOCATION_LOCAL): Use it.
253         (GENERIC_FORCE_RELOCATION_SUB_SAME): Define.
254         (TC_FORCE_RELOCATION_SUB_SAME): Use it.
255         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL,
256         TC_FORCE_RELOCATION_SUB_SAME): Use GENERIC defines.
257         * config/tc-aarch64.h: Similarly.
258         * config/tc-avr.h: Similarly.
259         * config/tc-cris.h: Similarly.
260         * config/tc-i386.h: Similarly.
261         * config/tc-i960.h: Similarly.
262         * config/tc-ia64.h: Similarly.
263         * config/tc-microblaze.h: Similarly.
264         * config/tc-mips.h: Similarly.
265         * config/tc-msp430.h: Similarly.
266         * config/tc-nds32.h: Similarly.
267         * config/tc-pru.h: Similarly.
268         * config/tc-riscv.h: Similarly.
269         * config/tc-rl78.h: Similarly.
270         * config/tc-s390.h: Similarly.
271         * config/tc-sh.h: Similarly.
272         * config/tc-sh64.h: Similarly.
273         * config/tc-sparc.h: Similarly.
274         * config/tc-xtensa.h: Similarly.
275         * config/tc-mn10300.h: Similarly.
276         (GENERIC_FORCE_RELOCATION_LOCAL): Define.
277         * config/tc-msp430.c (msp430_force_relocation_local): Modify to
278         be addition to rather than replacement of standard
279         TC_FORCE_RELOCATION_LOCAL.
280
281 2017-05-15  Nick Clifton  <nickc@redhat.com>
282
283         PR gas/21458
284         * config/tc-arm.c (do_adr): If the ADR involves a thumb function
285         symbol, ensure that the T bit will be set.
286         (do_adrl): Likewise.
287         (do_t_adr): Likewise.
288         * testsuite/gas/arm/pr21458.s: New test.
289         * testsuite/gas/arm/pr21458.d: New test driver.
290
291 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
292
293         * testsuite/gas/mips/mips16-pcrel-1.d: Remove `-mips3' from `as'
294         flags.
295         * testsuite/gas/mips/mips16-pcrel-pic-1.d: Likewise.
296         * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
297         * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
298         * testsuite/gas/mips/mips16-pcrel-n64-0.d: Likewise.
299         * testsuite/gas/mips/mips16-pcrel-n64-1.d: Likewise.
300         * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
301         * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
302         * testsuite/gas/mips/mips16-pcrel-reloc-4.d: Likewise.
303         * testsuite/gas/mips/mips16-pcrel-reloc-5.d: Likewise.
304         * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Likewise.
305         * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Likewise.
306         * testsuite/gas/mips/mips16-pcrel-addend-4.d: Likewise.
307         * testsuite/gas/mips/mips16-pcrel-addend-5.d: Likewise.
308         * testsuite/gas/mips/mips16-pcrel-addend-6.d: Likewise.
309         * testsuite/gas/mips/mips16-pcrel-addend-7.d: Likewise.
310         * testsuite/gas/mips/mips16-pcrel-addend-9.d: Likewise.
311         * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: Likewise.
312         * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: Likewise.
313         * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: Likewise.
314         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d:
315         Likewise.
316         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d:
317         Likewise.
318         * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: Likewise.
319         * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: Likewise.
320         * testsuite/gas/mips/mips16-pcrel-absolute-2.d: Likewise.
321         * testsuite/gas/mips/mips16-pcrel-absolute-3.d: Likewise.
322         * testsuite/gas/mips/mips16-pcrel-absolute-6.d: Likewise.
323         * testsuite/gas/mips/mips16-pcrel-absolute-7.d: Likewise.
324         * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: Likewise.
325         * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: Likewise.
326         * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: Likewise.
327         * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: Likewise.
328         * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: Likewise.
329         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d:
330         Likewise.
331         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d:
332         Likewise.
333         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d:
334         Likewise.
335         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d:
336         Likewise.
337         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d:
338         Likewise.
339         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d:
340         Likewise.
341         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
342         Likewise.
343         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
344         Likewise.
345         * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: New test.
346         * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: New test.
347         * testsuite/gas/mips/mips16e2@mips16-pcrel-2.d: New test.
348         * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: New test.
349         * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: New test.
350         * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d: New
351         test.
352         * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d: New
353         test.
354         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: New test.
355         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: New test.
356         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-2.d: New test.
357         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-3.d: New test.
358         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-6.d: New test.
359         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-7.d: New test.
360         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-2.d: New test.
361         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-3.d: New test.
362         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-6.d: New test.
363         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-7.d: New test.
364         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-8.d: New test.
365         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-9.d: New test.
366         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-8.d: New
367         test.
368         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-9.d: New
369         test.
370         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-8.d:
371         New test.
372         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-9.d:
373         New test.
374         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute.d: New test.
375         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-1.d: New
376         test.
377         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-2.d: New
378         test.
379         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-3.d: New
380         test.
381         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-4.d: New
382         test.
383         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-5.d: New
384         test.
385         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-6.d: New
386         test.
387         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-7.d: New
388         test.
389         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-4.d: New
390         test.
391         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-6.d: New
392         test.
393         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-4.d: New
394         test.
395         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-6.d: New
396         test.
397         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-4.d:
398         New test.
399         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-6.d:
400         New test.
401         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-4.d:
402         New test.
403         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-6.d:
404         New test.
405         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-4.d:
406         New test.
407         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-6.d:
408         New test.
409         * testsuite/gas/mips/mips16-pcrel-1.l: Adjust line numbers.
410         * testsuite/gas/mips/mips16-pcrel-1.s: Adjust for alignment
411         preservation between MIPS16 and MIPS16e2 code.
412         * testsuite/gas/mips/mips.exp: Run MIPS16 relaxation tests over
413         all MIPS16 architectures.
414
415 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
416
417         * testsuite/gas/mips/mips16e2.d: New test.
418         * testsuite/gas/mips/mips16e2-mt.d: New test.
419         * testsuite/gas/mips/mips16e2-sub.d: New test.
420         * testsuite/gas/mips/mips16e2@mips16e2-sub.d: New test.
421         * testsuite/gas/mips/mips16e2-mt-sub.d: New test.
422         * testsuite/gas/mips/mips16e2@mips16e2-mt-sub.d: New test.
423         * testsuite/gas/mips/mips16e2-hilo.d: New test.
424         * testsuite/gas/mips/mips16e2-hilo-n32.d: New test.
425         * testsuite/gas/mips/mips16e2-reloc-error.d: New test.
426         * testsuite/gas/mips/mips16e2-imm-error.d: New test.
427         * testsuite/gas/mips/elf_ase_mips16e2.d: New test.
428         * testsuite/gas/mips/elf_ase_mips16e2-2.d: New test.
429         * testsuite/gas/mips/elf-rel9-mips16e2.d: New test.
430         * testsuite/gas/mips/mips16e2-lui.d: New test.
431         * testsuite/gas/mips/mips16e2@mips32r2-sync.d: New test.
432         * testsuite/gas/mips/mips16e2@mips32r2-sync-1.d: New test.
433         * testsuite/gas/mips/mips16e2@lui-2.d: New test.
434         * testsuite/gas/mips/mips16e2-reloc-error.l: New stderr output.
435         * testsuite/gas/mips/mips16e2-imm-error.l: New stderr output.
436         * testsuite/gas/mips/mips16e2@lui-2.l: New stderr output.
437         * testsuite/gas/mips/mips16e2.s: New test source.
438         * testsuite/gas/mips/mips16e2-mt.s: New test source.
439         * testsuite/gas/mips/mips16e2-sub.s: New test source.
440         * testsuite/gas/mips/mips16e2-mt-sub.s: New test source.
441         * testsuite/gas/mips/mips16e2-hilo.s: New test source.
442         * testsuite/gas/mips/mips16e2-reloc-error.s: New test source.
443         * testsuite/gas/mips/mips16e2-imm-error.s: New test source.
444         * testsuite/gas/mips/elf-rel9-mips16e2.s: New test source.
445         * testsuite/gas/mips/mips16e2-lui.s: New test source.
446         * testsuite/gas/mips/mips.exp: Expand `mips32r2-sync',
447         `mips32r2-sync-1', `lui-1' and `lui-2' tests across MIPS16e2
448         architectures.  Run the new tests.
449
450 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
451
452         * testsuite/gas/mips/mips.exp (run_dump_test_arch): Add
453         `mips16e2@' prefix.
454         (run_list_test_arch): Likewise.
455         (mips16e2-32, mips16e2-64): New architectures.
456         * testsuite/gas/mips/mips16e2-32@mips16-macro.d: New test.
457         * testsuite/gas/mips/mips16e2-32@mips16-macro-t.d: New test.
458         * testsuite/gas/mips/mips16e2-32@mips16-macro-e.d: New test.
459         * testsuite/gas/mips/mips16e2-32@mips16-insn-t.d: New test.
460         * testsuite/gas/mips/mips16e2-32@mips16-insn-e.d: New test.
461         * testsuite/gas/mips/mips16e2-32@mips16e-64.d: New test.
462         * testsuite/gas/mips/mips16e2-32@mips16-sub.d: New test.
463         * testsuite/gas/mips/mips16e2-32@mips16e-64-sub.d: New test.
464         * testsuite/gas/mips/mips16e2@relax-swap3.d: New test.
465         * testsuite/gas/mips/mips16-32@mips16-asmacro.d: Remove `source'
466         tag.  Add `-I$srcdir/$subdir' to `as' flags.
467         * testsuite/gas/mips/mips16-64@mips16-asmacro.d: Likewise.
468         * testsuite/gas/mips/mips16e2-32@mips16-macro.l: New stderr
469         output.
470         * testsuite/gas/mips/mips16e2-32@mips16-macro-t.l: New stderr
471         output.
472         * testsuite/gas/mips/mips16e2-32@mips16-macro-e.l: New stderr
473         output.
474         * testsuite/gas/mips/mips16e2-32@mips16-insn-t.l: New stderr
475         output.
476         * testsuite/gas/mips/mips16e2-32@mips16-insn-e.l: New stderr
477         output.
478         * testsuite/gas/mips/mips16-sub.s: Add `.set nomips16e2'.
479         * testsuite/gas/mips/mips16e-sub.s: Likewise.
480         * testsuite/gas/mips/mips16e-64-sub.s: Likewise.
481         * testsuite/gas/mips/mips16-asmacro.s: Remove `.set mips32'.
482         * testsuite/gas/mips/mips16-32@mips16-asmacro.s: New test
483         source.
484         * testsuite/gas/mips/mips16-64@mips16-asmacro.s: New test
485         source.
486
487 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
488             Matthew Fortune  <matthew.fortune@imgtec.com>
489             Andrew Bennett  <andrew.bennett@imgtec.com>
490
491         * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `e2' flag.
492         (RELAX_MIPS16_E2): New macro.
493         (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO)
494         (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
495         (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
496         (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
497         (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
498         (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
499         (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED, RELAX_MIPS16_MACRO)
500         (RELAX_MIPS16_MARK_MACRO, RELAX_MIPS16_CLEAR_MACRO): Shift bits.
501         (mips16_immed_extend): New prototype.
502         (options): Add OPTION_MIPS16E2 and OPTION_NO_MIPS16E2 enum
503         values.
504         (md_longopts): Add "mmips16e2" and "mno-mips16e2" options.
505         (mips_ases): Add "mips16e2" entry.
506         (mips_set_ase): Handle MIPS16e2 ASE.
507         (insn_insert_operand): Explicitly handle immediates with MIPS16
508         instructions that require 32-bit encoding.
509         (is_opcode_valid_16): Pass enabled ASE bitmask on to
510         `opcode_is_member'.
511         (validate_mips_insn): Explicitly handle immediates with MIPS16
512         instructions that require 32-bit encoding.
513         (operand_reg_mask) <OP_REG28>: Add handler.
514         (match_reg28_operand): New function.
515         (match_operand) <OP_REG28>: Add handler.
516         (append_insn): Pass ASE_MIPS16E2 setting to RELAX_MIPS16_ENCODE.
517         (match_mips16_insn): Handle MIPS16 instructions that require
518         32-bit encoding and `V' and `u' operand codes.
519         (mips16_ip): Allow any characters except from `.' in opcodes.
520         (mips16_immed_extend): Handle 9-bit immediates.  Do not shuffle
521         immediates whose width is not one of these listed.
522         (md_estimate_size_before_relax): Handle MIPS16e2 relaxation.
523         (mips_relax_frag): Likewise.
524         (md_convert_frag): Likewise.
525         (mips_convert_ase_flags): Handle MIPS16e2 ASE.
526
527         * doc/as.texinfo (Target MIPS options): Add `-mmips16e2' and
528         `-mno-mips16e2' options.
529         (-mmips16e2, -mno-mips16e2): New options.
530         * doc/c-mips.texi (MIPS Options): Add `-mmips16e2' and
531         `-mno-mips16e2' options.
532         (MIPS ASE Instruction Generation Overrides): Add `.set mips16e2'
533         and `.set nomips16e2'.
534
535 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
536
537         * config/tc-mips.c (match_int_operand): Call
538         `match_out_of_range' before returning failure for 0x8000-0xffff
539         values conditionally allowed.
540
541 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
542
543         * config/tc-mips.c (match_int_operand): Call
544         `match_not_constant' before returning failure for a non-constant
545         16-bit immediate conditionally allowed.
546
547 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
548
549         * config/tc-mips.c (match_const_int): Call `match_out_of_range'
550         rather than `match_not_constant' for unrelocated operands
551         retrieved as an `O_big' expression.
552         (match_int_operand): Call `match_out_of_range' for relocatable
553         operands retrieved as an `O_big' expression.
554         (match_mips16_insn): Call `match_out_of_range' for relaxable
555         operands retrieved as an `O_big' expression.
556         * testsuite/gas/mips/addiu-error.d: New test.
557         * testsuite/gas/mips/mips16@addiu-error.d: New test.
558         * testsuite/gas/mips/micromips@addiu-error.d: New test.
559         * testsuite/gas/mips/break-error.d: New test.
560         * testsuite/gas/mips/lui-1.l: Adjust error message.
561         * testsuite/gas/mips/addiu-error.l: New stderr output.
562         * testsuite/gas/mips/mips16@addiu-error.l: New stderr output.
563         * testsuite/gas/mips/micromips@addiu-error.l: New stderr output.
564         * testsuite/gas/mips/break-error.l: New stderr output.
565         * testsuite/gas/mips/addiu-error.s: New test source.
566         * testsuite/gas/mips/break-error.s: New test source.
567         * testsuite/gas/mips/mips.exp: Run the new tests.
568
569 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
570
571         * config/tc-mips.c (match_mips16_insn): Remove the explicit
572         OT_INTEGER check before the `match_expression' call.
573         * testsuite/gas/mips/mips16-insn-e.l: Adjust messages.
574         * testsuite/gas/mips/mips16-32@mips16-insn-e.l: Likewise.
575         * testsuite/gas/mips/mips16-64@mips16-insn-e.l: Likewise.
576         * testsuite/gas/mips/mips16e-32@mips16-insn-e.l: Likewise.
577         * testsuite/gas/mips/mips16-reg-error.d: New test.
578         * testsuite/gas/mips/mips16-reg-error.l: New stderr output.
579         * testsuite/gas/mips/mips16-reg-error.s: New test source.
580         * testsuite/gas/mips/mips.exp: Run the new test.
581
582 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
583
584         * config/tc-mips.c (match_mips16_insn): Call
585         `match_not_constant' for a disallowed relocation operation.
586         * testsuite/gas/mips/mips16-reloc-error.d: New test.
587         * testsuite/gas/mips/mips16-reloc-error.l: New stderr output.
588         * testsuite/gas/mips/mips16-reloc-error.s: New test source.
589         * testsuite/gas/mips/mips.exp: Run the new test.
590
591 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
592
593         * testsuite/gas/mips/lui-1.d: New test.
594         * testsuite/gas/mips/lui-2.d: New test.
595         * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
596         into the new tests.
597
598 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
599
600         * config/tc-mips.c (match_const_int): Update description.
601
602 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
603
604         * doc/as.texinfo (-mips16, -no-mips16): Refer to `.module
605         mips16' rather than `.set mips16'.
606         (-mmicromips, -mno-micromips): Refer to `.module micromips' and
607         `.module nomicromips' rather than `.set micromips' and `.set
608         nomicromips'.
609         (-msmartmips, -mno-smartmips): Refer to `.module smartmips'
610         rather than `.set smartmips'.
611         * doc/c-mips.texi (MIPS Options): Refer to `.module mips16',
612         `.module micromips', `.module nomicromips' and `.module
613         smartmips' rather than `.set mips16', `.set micromips', `.set
614         nomicromips' and `.set smartmips' respectively.
615
616 2017-05-12  Maciej W. Rozycki  <macro@imgtec.com>
617             Matthew Fortune  <matthew.fortune@imgtec.com>
618
619         * config/tc-mips.c (mips_percent_op): Add "%gprel".
620         (mips16_percent_op): Add "%gp_rel".
621         * testsuite/gas/mips/elf-rel8.s:: Add `%gprel' forms.
622         * testsuite/gas/mips/elf-rel8-mips16.s: Add `%gp_rel' forms.
623         * testsuite/gas/mips/elf-rel8.d: Adjust accordingly.
624         * testsuite/gas/mips/elf-rel8-mips16.d: Likewise.
625
626 2017-05-12  Maciej W. Rozycki  <macro@imgtec.com>
627
628         * testsuite/gas/mips/mips16.d: Adjust BREAK disassembly.
629         * testsuite/gas/mips/mips16-64@mips16.d: Likewise.
630         * testsuite/gas/mips/mips16-64.d: Likewise.
631         * testsuite/gas/mips/mips16-64@mips16-64.d: Likewise.
632         * testsuite/gas/mips/mips16-macro.d: Likewise.
633         * testsuite/gas/mips/mips16-64@mips16-macro.d: Likewise.
634         * testsuite/gas/mips/mips16-sub.d: Likewise.
635         * testsuite/gas/mips/mips16-32@mips16-sub.d: Likewise.
636
637 2017-05-11  Maciej W. Rozycki  <macro@imgtec.com>
638
639         * testsuite/gas/mips/mips32r2-sync-1.d: New test.
640         * testsuite/gas/mips/micromips@mips32r2-sync-1.d: New test.
641         * testsuite/gas/mips/mips.exp: Run the new tests.
642
643 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
644
645         * testsuite/gas/mips/isa-override-2.d: New test.
646         * testsuite/gas/mips/mips1@isa-override-2.d: New test.
647         * testsuite/gas/mips/r3000@isa-override-2.d: New test.
648         * testsuite/gas/mips/r3900@isa-override-2.d: New test.
649         * testsuite/gas/mips/mips2@isa-override-2.d: New test.
650         * testsuite/gas/mips/mips32@isa-override-2.d: New test.
651         * testsuite/gas/mips/mips32r2@isa-override-2.d: New test.
652         * testsuite/gas/mips/mips32r3@isa-override-2.d: New test.
653         * testsuite/gas/mips/mips32r5@isa-override-2.d: New test.
654         * testsuite/gas/mips/mips32r6@isa-override-2.d: New test.
655         * testsuite/gas/mips/octeon3@isa-override-2.d: New test.
656         * testsuite/gas/mips/r3000@isa-override-2.l: Remove list test.
657         * testsuite/gas/mips/mips1@isa-override-2.s: Remove test source.
658         * testsuite/gas/mips/r3000@isa-override-2.s: Remove test source.
659         * testsuite/gas/mips/r3900@isa-override-2.s: Remove test source.
660         * testsuite/gas/mips/mips2@isa-override-2.s: Remove test source.
661         * testsuite/gas/mips/mips32@isa-override-2.s: Remove test
662         source.
663         * testsuite/gas/mips/mips32r2@isa-override-2.s: Remove test
664         source.
665         * testsuite/gas/mips/mips32r3@isa-override-2.s: Remove test
666         source.
667         * testsuite/gas/mips/mips32r5@isa-override-2.s: Remove test
668         source.
669         * testsuite/gas/mips/mips32r6@isa-override-2.s: Remove test
670         source.
671         * testsuite/gas/mips/octeon3@isa-override-2.s: Remove test
672         source.
673         * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
674         into the new tests.
675
676 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
677
678         * testsuite/gas/mips/mips16e-sub.d: Correct test name.
679         * testsuite/gas/mips/mips16-32@mips16e-sub.d: Likewise.
680         * testsuite/gas/mips/mips16-64@mips16e-sub.d: Likewise.
681         * testsuite/gas/mips/mips16e-64-sub.d: Likewise.
682         * testsuite/gas/mips/mips16-32@mips16e-64-sub.d: Likewise.
683         * testsuite/gas/mips/mips16-64@mips16e-64-sub.d: Likewise.
684         * testsuite/gas/mips/mips16e-32@mips16e-64-sub.d: Likewise.
685
686 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
687
688         * testsuite/gas/mips/mips16-macro.l: Remove list test.
689
690 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
691
692         * testsuite/gas/mips/r3900@ecoff@ld.d: Remove test.
693         * testsuite/gas/mips/mips2@ecoff@ld.d: Remove test.
694         * testsuite/gas/mips/mips32@ecoff@ld.d: Remove test.
695         * testsuite/gas/mips/mips32r2@ecoff@ld.d: Remove test.
696         * testsuite/gas/mips/r3900@ecoff@ld-forward.d: Remove test.
697         * testsuite/gas/mips/mips2@ecoff@ld-forward.d: Remove test.
698         * testsuite/gas/mips/mips32@ecoff@ld-forward.d: Remove test.
699         * testsuite/gas/mips/mips32r2@ecoff@ld-forward.d: Remove test.
700         * testsuite/gas/mips/mips1@ecoff@sd.d: Remove test.
701         * testsuite/gas/mips/r3000@ecoff@sd.d: Remove test.
702         * testsuite/gas/mips/r3900@ecoff@sd.d: Remove test.
703         * testsuite/gas/mips/mips2@ecoff@sd.d: Remove test.
704         * testsuite/gas/mips/mips32@ecoff@sd.d: Remove test.
705         * testsuite/gas/mips/mips32r2@ecoff@sd.d: Remove test.
706         * testsuite/gas/mips/mips1@ecoff@sd-forward.d: Remove test.
707         * testsuite/gas/mips/r3000@ecoff@sd-forward.d: Remove test.
708         * testsuite/gas/mips/r3900@ecoff@sd-forward.d: Remove test.
709         * testsuite/gas/mips/mips2@ecoff@sd-forward.d: Remove test.
710         * testsuite/gas/mips/mips32@ecoff@sd-forward.d: Remove test.
711         * testsuite/gas/mips/mips32r2@ecoff@sd-forward.d: Remove test.
712
713 2017-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
714
715         * testsuite/gas/arc/attr-arc600.d: New file.
716         * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise.
717         * testsuite/gas/arc/attr-arc600_norm.d: Likewise.
718         * testsuite/gas/arc/attr-arc601.d: Likewise.
719         * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise.
720         * testsuite/gas/arc/attr-arc601_mul64.d: Likewise.
721         * testsuite/gas/arc/attr-arc601_norm.d: Likewise.
722         * testsuite/gas/arc/attr-arc700.d: Likewise.
723         * testsuite/gas/arc/attr-arcem.d: Likewise.
724         * testsuite/gas/arc/attr-archs.d: Likewise.
725         * testsuite/gas/arc/attr-autodetect-1.d: Likewise.
726         * testsuite/gas/arc/attr-autodetect-1.s: Likewise.
727         * testsuite/gas/arc/attr-cpu-a601.d: Likewise.
728         * testsuite/gas/arc/attr-cpu-a601.s: Likewise.
729         * testsuite/gas/arc/attr-cpu-a700.d: Likewise.
730         * testsuite/gas/arc/attr-cpu-a700.s: Likewise.
731         * testsuite/gas/arc/attr-cpu-em.d: Likewise.
732         * testsuite/gas/arc/attr-cpu-em.s: Likewise.
733         * testsuite/gas/arc/attr-cpu-hs.d: Likewise.
734         * testsuite/gas/arc/attr-cpu-hs.s: Likewise.
735         * testsuite/gas/arc/attr-em.d: Likewise.
736         * testsuite/gas/arc/attr-em4.d: Likewise.
737         * testsuite/gas/arc/attr-em4_dmips.d: Likewise.
738         * testsuite/gas/arc/attr-em4_fpuda.d: Likewise.
739         * testsuite/gas/arc/attr-em4_fpus.d: Likewise.
740         * testsuite/gas/arc/attr-hs.d: Likewise.
741         * testsuite/gas/arc/attr-hs34.d: Likewise.
742         * testsuite/gas/arc/attr-hs38.d: Likewise.
743         * testsuite/gas/arc/attr-hs38_linux.d: Likewise.
744         * testsuite/gas/arc/attr-mul64.d: Likewise.
745         * testsuite/gas/arc/attr-name.d: Likewise.
746         * testsuite/gas/arc/attr-name.s: Likewise.
747         * testsuite/gas/arc/attr-nps400.d: Likewise.
748         * testsuite/gas/arc/attr-override-mcpu.d: Likewise.
749         * testsuite/gas/arc/attr-override-mcpu.s
750         * testsuite/gas/arc/attr-quarkse_em.d: Likewise.
751         * testsuite/gas/arc/blank.s: Likewise.
752         * testsuite/gas/elf/section2.e-arc: Likewise.
753         * testsuite/gas/arc/cpu-pseudop-1.d: Update test.
754         * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
755         * testsuite/gas/arc/nps400-0.d: Likewise.
756         * testsuite/gas/elf/elf.exp: Set target_machine for ARC.
757         * config/tc-arc.c (opcode/arc-attrs.h): Include.
758         (ARC_GET_FLAG, ARC_SET_FLAG, streq): Define.
759         (arc_attribute): Declare new function.
760         (md_pseudo_table): Add arc_attribute.
761         (cpu_types): Rename default cpu features.
762         (selected_cpu): Set the default OSABI flag.
763         (mpy_option): New variable.
764         (pic_option): Likewise.
765         (sda_option): Likewise.
766         (tls_option): Likewise.
767         (feature_type, feature_list): Remove.
768         (arc_initial_eflag): Likewise.
769         (attributes_set_explicitly): New variable.
770         (arc_check_feature): Check also for the conflicting features.
771         (arc_select_cpu): Refactor assignment of selected_cpu.eflags.
772         (arc_option): Remove setting of private flags and architecture.
773         (check_cpu_feature): Refactor feature names.
774         (autodetect_attributes): New function.
775         (assemble_tokens): Use above function.
776         (md_parse_option): Refactor feature names.
777         (arc_attribute): New function.
778         (arc_set_attribute_int): Likewise.
779         (arc_set_attribute_string): Likewise.
780         (arc_stralloc): Likewise.
781         (arc_set_public_attributes): Likewise.
782         (arc_md_end): Likewise.
783         (arc_copy_symbol_attributes): Likewise.
784         (rc_convert_symbolic_attribute): Likewise.
785         * config/tc-arc.h (md_end): Define.
786         (CONVERT_SYMBOLIC_ATTRIBUTE): Likewise.
787         (TC_COPY_SYMBOL_ATTRIBUTES): Likewise.
788         * doc/c-arc.texi: Document ARC object attributes.
789
790 2017-05-03  Maciej W. Rozycki  <macro@imgtec.com>
791
792         * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `pic', `sym32' and
793         `nomacro' flags.
794         (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO):
795         New macros.
796         (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
797         (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
798         (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
799         (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
800         (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
801         (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): Shift bits.
802         (RELAX_MIPS16_MACRO, RELAX_MIPS16_MARK_MACRO)
803         (RELAX_MIPS16_CLEAR_MACRO): New macros.
804         (append_insn): Pass `mips_pic', HAVE_32BIT_SYMBOLS and
805         `mips_opts.warn_about_macros' settings to RELAX_MIPS16_ENCODE.
806         (mips16_macro_frag): New function.
807         (md_estimate_size_before_relax): Handle HI16/LO16 relaxation.
808         (mips_relax_frag): Likewise.
809         (md_convert_frag): Likewise.
810
811         * testsuite/gas/mips/mips16@relax-swap3.d: Remove error output,
812         add dump patterns.
813         * testsuite/gas/mips/mips16e@relax-swap3.d: New test
814         subarchitecture.
815         * testsuite/gas/mips/micromips@relax-swap3.d: Remove trailing
816         NOP padding.
817         * testsuite/gas/mips/mips16-pcrel-reloc-2.d: Remove error
818         output, add dump patterns.
819         * testsuite/gas/mips/mips16-pcrel-reloc-3.d: Remove error
820         output, add dump patterns.
821         * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Remove error
822         output, add dump patterns.
823         * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Remove error
824         output, add dump patterns.
825         * testsuite/gas/mips/mips16-pcrel-addend-2.d: Remove error
826         output, add dump patterns.
827         * testsuite/gas/mips/mips16-pcrel-addend-3.d: Remove error
828         output, add dump patterns.
829         * testsuite/gas/mips/mips16-pcrel-absolute.d: Remove error
830         output, add dump patterns.
831         * testsuite/gas/mips/mips16-pcrel-absolute-1.d: Remove error
832         output, add dump patterns.
833         * testsuite/gas/mips/mips16@relax-swap3.l: Remove file.
834         * testsuite/gas/mips/mips16-pcrel-reloc-2.l: Remove file.
835         * testsuite/gas/mips/mips16-pcrel-reloc-3.l: Remove file.
836         * testsuite/gas/mips/mips16-pcrel-reloc-6.l: Remove file.
837         * testsuite/gas/mips/mips16-pcrel-reloc-7.l: Remove file.
838         * testsuite/gas/mips/mips16-pcrel-addend-2.l: Remove file.
839         * testsuite/gas/mips/mips16-pcrel-addend-3.l: Remove file.
840         * testsuite/gas/mips/mips16-pcrel-absolute.l: Remove file.
841         * testsuite/gas/mips/mips16-pcrel-absolute-1.l: Remove file.
842         * testsuite/gas/mips/relax-swap3.s: Adjust trailing padding.
843
844         * testsuite/gas/mips/mips16-pcrel-0.d: New test.
845         * testsuite/gas/mips/mips16-pcrel-1.d: New test.
846         * testsuite/gas/mips/mips16-pcrel-2.d: New test.
847         * testsuite/gas/mips/mips16-pcrel-3.d: New test.
848         * testsuite/gas/mips/mips16-pcrel-4.d: New test.
849         * testsuite/gas/mips/mips16-pcrel-5.d: New test.
850         * testsuite/gas/mips/mips16-pcrel-pic-0.d: New test.
851         * testsuite/gas/mips/mips16-pcrel-pic-1.d: New test.
852         * testsuite/gas/mips/mips16-pcrel-n32-0.d: New test.
853         * testsuite/gas/mips/mips16-pcrel-n32-1.d: New test.
854         * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: New test.
855         * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: New test.
856         * testsuite/gas/mips/mips16-pcrel-n64-0.d: New test.
857         * testsuite/gas/mips/mips16-pcrel-n64-1.d: New test.
858         * testsuite/gas/mips/mips16-pcrel-delay-0.d: New test.
859         * testsuite/gas/mips/mips16-pcrel-delay-1.d: New test.
860         * testsuite/gas/mips/mips16-pcrel-addend-4.d: New test.
861         * testsuite/gas/mips/mips16-pcrel-addend-5.d: New test.
862         * testsuite/gas/mips/mips16-pcrel-addend-6.d: New test.
863         * testsuite/gas/mips/mips16-pcrel-addend-7.d: New test.
864         * testsuite/gas/mips/mips16-pcrel-addend-8.d: New test.
865         * testsuite/gas/mips/mips16-pcrel-addend-9.d: New test.
866         * testsuite/gas/mips/mips16-pcrel-addend-pic-8.d: New test.
867         * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: New test.
868         * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: New test.
869         * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: New test.
870         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d: New test.
871         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d: New test.
872         * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: New test.
873         * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: New test.
874         * testsuite/gas/mips/mips16-pcrel-absolute-2.d: New test.
875         * testsuite/gas/mips/mips16-pcrel-absolute-3.d: New test.
876         * testsuite/gas/mips/mips16-pcrel-absolute-4.d: New test.
877         * testsuite/gas/mips/mips16-pcrel-absolute-5.d: New test.
878         * testsuite/gas/mips/mips16-pcrel-absolute-6.d: New test.
879         * testsuite/gas/mips/mips16-pcrel-absolute-7.d: New test.
880         * testsuite/gas/mips/mips16-pcrel-absolute-pic-4.d: New test.
881         * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: New test.
882         * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: New test.
883         * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: New test.
884         * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: New test.
885         * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: New test.
886         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d: New
887         test.
888         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d: New
889         test.
890         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d: New
891         test.
892         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d: New
893         test.
894         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d: New
895         test.
896         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d: New
897         test.
898         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
899         New test.
900         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
901         New test.
902         * testsuite/gas/mips/mips16-pcrel-0.l: New stderr output.
903         * testsuite/gas/mips/mips16-pcrel-1.l: New stderr output.
904         * testsuite/gas/mips/mips16-pcrel-2.l: New stderr output.
905         * testsuite/gas/mips/mips16-pcrel-3.l: New stderr output.
906         * testsuite/gas/mips/mips16-pcrel-4.l: New stderr output.
907         * testsuite/gas/mips/mips16-pcrel-5.l: New stderr output.
908         * testsuite/gas/mips/mips16-pcrel-delay-0.l: New stderr output.
909         * testsuite/gas/mips/mips16-pcrel-delay-1.l: New stderr output.
910         * testsuite/gas/mips/mips16-pcrel-addend-8.l: New stderr output.
911         * testsuite/gas/mips/mips16-pcrel-addend-9.l: New stderr output.
912         * testsuite/gas/mips/mips16-pcrel-absolute-4.l: New stderr
913         output.
914         * testsuite/gas/mips/mips16-pcrel-absolute-6.l: New stderr
915         output.
916         * testsuite/gas/mips/mips16-pcrel-0.s: New test source.
917         * testsuite/gas/mips/mips16-pcrel-1.s: New test source.
918         * testsuite/gas/mips/mips16-pcrel-2.s: New test source.
919         * testsuite/gas/mips/mips16-pcrel-3.s: New test source.
920         * testsuite/gas/mips/mips16-pcrel-4.s: New test source.
921         * testsuite/gas/mips/mips16-pcrel-5.s: New test source.
922         * testsuite/gas/mips/mips16-pcrel-delay-0.s: New test source.
923         * testsuite/gas/mips/mips16-pcrel-delay-1.s: New test source.
924         * testsuite/gas/mips/mips16-pcrel-addend-4.s: New test source.
925         * testsuite/gas/mips/mips16-pcrel-addend-5.s: New test source.
926         * testsuite/gas/mips/mips16-pcrel-addend-6.s: New test source.
927         * testsuite/gas/mips/mips16-pcrel-addend-7.s: New test source.
928         * testsuite/gas/mips/mips16-pcrel-addend-8.s: New test source.
929         * testsuite/gas/mips/mips16-pcrel-addend-9.s: New test source.
930         * testsuite/gas/mips/mips16-pcrel-absolute-2.s: New test.
931         * testsuite/gas/mips/mips16-pcrel-absolute-3.s: New test.
932         * testsuite/gas/mips/mips16-pcrel-absolute-4.s: New test.
933         * testsuite/gas/mips/mips16-pcrel-absolute-5.s: New test.
934         * testsuite/gas/mips/mips16-pcrel-absolute-6.s: New test.
935         * testsuite/gas/mips/mips16-pcrel-absolute-7.s: New test.
936         * testsuite/gas/mips/mips.exp: Run the new tests.
937
938 2017-05-03  Nick Clifton  <nickc@redhat.com>
939
940         PR gas/20941
941         * symbols.c (snapshot_symbol): Handle the case where
942         resolve_expression returns a local symbol.
943
944 2017-05-02  Maciej W. Rozycki  <macro@imgtec.com>
945
946         * config/tc-mips.c (append_insn): Call `symbol_append' for any
947         expression symbol created for MIPS16 relaxation.
948         (match_mips16_insn): Don't encode a constant value as an
949         immediate with a PC-relative operand.
950
951         * testsuite/gas/mips/mips16-pcrel-absolute-1.d: New test.
952         * testsuite/gas/mips/mips16-branch-absolute-1.d: New test.
953         * testsuite/gas/mips/mips16-branch-absolute-2.d: New test.
954         * testsuite/gas/mips/mips16-branch-absolute-addend-1.d: New
955         test.
956         * testsuite/gas/mips/mips16-branch-absolute-n32-1.d: New test.
957         * testsuite/gas/mips/mips16-branch-absolute-n32-2.d: New test.
958         * testsuite/gas/mips/mips16-branch-absolute-addend-n32-1.d: New
959         test.
960         * testsuite/gas/mips/mips16-branch-absolute-n64-1.d: New test.
961         * testsuite/gas/mips/mips16-branch-absolute-n64-2.d: New test.
962         * testsuite/gas/mips/mips16-branch-absolute-addend-n64-1.d: New
963         test.
964         * testsuite/gas/mips/mips16-pcrel-absolute-1.l: New stderr
965         output.
966         * testsuite/gas/mips/mips16-pcrel-absolute-1.s: New test source.
967         * testsuite/gas/mips/mips16-branch-absolute-1.s: New test
968         source.
969         * testsuite/gas/mips/mips16-branch-absolute-2.s: New test
970         source.
971         * testsuite/gas/mips/mips16-branch-absolute-addend-1.s: New test
972         source.
973         * testsuite/gas/mips/mips.exp: Run the new tests.
974
975 2017-04-27  Maciej W. Rozycki  <macro@imgtec.com>
976
977         * config/tc-mips.c (mips16_pcrel_val): New function, factored
978         out from...
979         (mips16_extended_frag): ... here.
980         (md_convert_frag): Use `mips16_pcrel_val' rather than repeated
981         code in MIPS16 relaxation, with `stretch' hardcoded to 0.
982
983 2017-04-27  Maciej W. Rozycki  <macro@imgtec.com>
984
985         * config/tc-mips.c (RELAX_MIPS16_LONG_BRANCH): Rename to...
986         (RELAX_MIPS16_ALWAYS_EXTENDED): ... this.
987         (RELAX_MIPS16_MARK_LONG_BRANCH): Rename to...
988         (RELAX_MIPS16_MARK_ALWAYS_EXTENDED): ... this.
989         (RELAX_MIPS16_CLEAR_LONG_BRANCH): Rename to...
990         (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): ... this.
991         (mips16_extended_frag): Adjust accordingly.
992
993 2017-04-27  Alan Modra  <amodra@gmail.com>
994
995         * symbols.c (S_FORCE_RELOC): Separate section and symbol tests.
996
997 2017-04-26  Maciej W. Rozycki  <macro@imgtec.com>
998
999         * config/tc-mips.c (RELAX_ENCODE): Add `PIC' flag.
1000         (RELAX_PIC): New macro.
1001         (RELAX_USE_SECOND, RELAX_SECOND_LONGER, RELAX_NOMACRO)
1002         (RELAX_DELAY_SLOT, RELAX_DELAY_SLOT_16BIT)
1003         (RELAX_DELAY_SLOT_SIZE_FIRST, RELAX_DELAY_SLOT_SIZE_SECOND):
1004         Shift bits.
1005         (RELAX_BRANCH_ENCODE): Add `pic' flag.
1006         (RELAX_BRANCH_UNCOND, RELAX_BRANCH_LIKELY, RELAX_BRANCH_LINK)
1007         (RELAX_BRANCH_TOOFAR): Shift bits.
1008         (RELAX_BRANCH_PIC): New macro.
1009         (RELAX_MICROMIPS_ENCODE): Add `pic' flag.
1010         (RELAX_MICROMIPS_PIC): New macro.
1011         (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
1012         (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_NODS)
1013         (RELAX_MICROMIPS_RELAX32): Shift bits.
1014         (relax_close_frag): Pass `mips_pic' setting to RELAX_ENCODE.
1015         (append_insn): Pass `mips_pic' setting to RELAX_BRANCH_ENCODE
1016         and RELAX_MICROMIPS_ENCODE, and record it in `fx_tcbit2' of the
1017         first fixup created.
1018         (md_apply_fix) <BFD_RELOC_16_PCREL_S2>: Use `fx_tcbit2' of the
1019         fixup processed rather than `mips_pic' in choosing to relax an
1020         out of range branch to a jump.
1021         (relaxed_branch_length): Use the `pic' flag of the relaxed frag
1022         rather than `mips_pic'.
1023         (relaxed_micromips_32bit_branch_length): Likewise.
1024         (md_estimate_size_before_relax): Likewise.
1025         (md_convert_frag): Likewise.
1026
1027         * testsuite/gas/mips/option-pic-relax-0.d: New test.
1028         * testsuite/gas/mips/option-pic-relax-1.d: New test.
1029         * testsuite/gas/mips/option-pic-relax-2.d: New test.
1030         * testsuite/gas/mips/option-pic-relax-3.d: New test.
1031         * testsuite/gas/mips/option-pic-relax-3a.d: New test.
1032         * testsuite/gas/mips/option-pic-relax-4.d: New test.
1033         * testsuite/gas/mips/option-pic-relax-5.d: New test.
1034         * testsuite/gas/mips/option-pic-relax-2.l: New stderr output.
1035         * testsuite/gas/mips/option-pic-relax-3.l: New stderr output.
1036         * testsuite/gas/mips/option-pic-relax-4.l: New stderr output.
1037         * testsuite/gas/mips/option-pic-relax-5.l: New stderr output.
1038         * testsuite/gas/mips/option-pic-relax-0.s: New test source.
1039         * testsuite/gas/mips/option-pic-relax-1.s: New test source.
1040         * testsuite/gas/mips/option-pic-relax-2.s: New test source.
1041         * testsuite/gas/mips/option-pic-relax-3.s: New test source.
1042         * testsuite/gas/mips/option-pic-relax-4.s: New test source.
1043         * testsuite/gas/mips/option-pic-relax-5.s: New test source.
1044         * testsuite/gas/mips/mips.exp: Run the new tests.
1045
1046 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1047
1048         * testsuite/gas/arc/leave_enter.d: Update test.
1049         * testsuite/gas/arc/leave_enter.s: Likewise.
1050
1051 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1052
1053         * testsuite/gas/arc/b.d: Update test.
1054         * testsuite/gas/arc/noargs_hs.d: Likewise.
1055
1056 2017-04-25  Maciej W. Rozycki  <macro@imgtec.com>
1057
1058         * config/tc-mips.c (md_convert_frag): Correct
1059         BFD_RELOC_MIPS16_16_PCREL_S1 fixup size.
1060         * testsuite/gas/mips/mips16-branch-addend-4.d: New test.
1061         * testsuite/gas/mips/mips16-branch-addend-5.d: New test.
1062         * testsuite/gas/mips/mips16-branch-addend-5.l: New stderr
1063         output.
1064         * testsuite/gas/mips/mips16-branch-addend-4.s: New test source.
1065         * testsuite/gas/mips/mips16-branch-addend-5.s: New test source.
1066         * testsuite/gas/mips/mips.exp: Run the new tests.
1067
1068 2017-04-25  Jose E. Marchesi  <jose.marchesi@oracle.com>
1069
1070         PR gas/21407
1071         * config/tc-sparc.c (md_apply_fix): Do not transform `call'
1072         instructions into branch instructions in fixups generating
1073         additional relocations.
1074         * testsuite/gas/sparc/call-relax.s: New file.
1075         * testsuite/gas/sparc/call-relax.d: Likewise.
1076         * testsuite/gas/sparc/call-relax-aout.d: Likewise.
1077         * testsuite/gas/sparc/sparc.exp: Test call-relax and call-relax-aout.
1078
1079 2017-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1080
1081         * config/tc-arm.c (move_or_literal_pool): Remove code generating MOVS.
1082         Forbid MOV.W and MOVW if destination is SP or PC.
1083         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: Explain
1084         expectation of LDR not generating a MOVS for low registers and small
1085         constants.  Add tests of MOVW generation.
1086         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Update
1087         expected disassembly.
1088
1089 2017-04-22  Alan Modra  <amodra@gmail.com>
1090
1091         * testsuite/gas/ppc/vle.s: Format.  Add se_rfgi and e_sc.
1092         * testsuite/gas/ppc/vle.d: Update.
1093
1094 2017-04-21  Nick Clifton  <nickc@redhat.com>
1095
1096         PR binutils/21380
1097         * testsuite/gas/aarch64/illegal-3.s: New file.
1098         * testsuite/gas/aarch64/illegal-3.d: New file.
1099
1100 2017-04-11  Alan Modra  <amodra@gmail.com>
1101
1102         * config/tc-ppc.c (md_show_usage): Delete mention of -mhtm.
1103         * testsuite/gas/ppc/htm.d: Pass -mpower8 and -Mpower8.
1104
1105 2017-04-10  Max Filippov  <jcmvbkbc@gmail.com>
1106
1107         * config/tc-xtensa.c (xtensa_maybe_create_literal_pool_frag):
1108         Initialize lps->frag_count with auto_litpool_limit.
1109         (xg_promote_candidate_litpool): New function.
1110         (xtensa_move_literals): Extract candidate litpool promotion code
1111         into separate function. Call it for all possible found
1112         candidates.
1113         (xtensa_switch_to_literal_fragment): Drop 'recursive' flag and
1114         call to xtensa_mark_literal_pool_location that it guards.
1115         Replace it with call to xtensa_maybe_create_literal_pool_frag.
1116         Initialize pool_location with created literal pool candidate.
1117         * testsuite/gas/xtensa/all.exp: Add new tests.
1118         * testsuite/gas/xtensa/auto-litpools-first1.d: New test results.
1119         * testsuite/gas/xtensa/auto-litpools-first1.s: New test.
1120         * testsuite/gas/xtensa/auto-litpools-first2.d: New test results.
1121         * testsuite/gas/xtensa/auto-litpools-first2.s: New test.
1122         * testsuite/gas/xtensa/auto-litpools.d: Fix offsets changed due
1123         to additional jump instruction.
1124
1125 2017-04-07  Alan Modra  <amodra@gmail.com>
1126
1127         * testsuite/gas/ppc/altivec2.s: Delete E6500 vector insns.
1128         * testsuite/gas/ppc/altivec2.d: Adjust to suit.
1129
1130 2017-04-07  Alan Modra  <amodra@gmail.com>
1131
1132         * testsuite/gas/elf/section12a.d: Don't expect alignment of 1
1133         for .mbind.text.
1134
1135 2017-04-06  Pip Cet  <pipcet@gmail.com>
1136
1137         * testsuite/gas/wasm32/allinsn.d: Adjust test for disassembler
1138         changes.
1139         * testsuite/gas/wasm32/disass.d: New test.
1140         * testsuite/gas/wasm32/disass.s: New test.
1141         * testsuite/gas/wasm32/disass-2.d: New test.
1142         * testsuite/gas/wasm32/disass-2.s: New test.
1143         * testsuite/gas/wasm32/reloc.d: Adjust test for changed reloc
1144         names.
1145         * testsuite/gas/wasm32/reloc.s: Update test for changed assembler
1146         syntax.
1147         * testsuite/gas/wasm32/wasm32.exp: Run new tests.  Expect allinsn
1148         test to succeed.
1149
1150 2017-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1151
1152         * NEWS: Mention support for ELF SHF_GNU_MBIND.
1153         * config/obj-elf.c (section_match): New.
1154         (get_section): Match both sh_info and group name.
1155         (obj_elf_change_section): Add argument for sh_info.  Pass both
1156         sh_info and group name to get_section. Issue an error for
1157         SHF_GNU_MBIND section without SHF_ALLOC.  Set sh_info.
1158         (obj_elf_parse_section_letters): Set SHF_GNU_MBIND for 'd'.
1159         (obj_elf_section): Support SHF_GNU_MBIND section info.
1160         * config/obj-elf.h (obj_elf_change_section): Add argument for
1161         sh_info.
1162         * config/tc-arm.c (start_unwind_section): Pass 0 as sh_info to
1163         obj_elf_change_section.
1164         * config/tc-ia64.c (obj_elf_vms_common): Likewise.
1165         * config/tc-microblaze.c (microblaze_s_data): Likewise.
1166         (microblaze_s_sdata): Likewise.
1167         (microblaze_s_rdata): Likewise.
1168         (microblaze_s_bss): Likewise.
1169         * config/tc-mips.c (s_change_section): Likewise.
1170         * config/tc-msp430.c (msp430_profiler): Likewise.
1171         * config/tc-rx.c (parse_rx_section): Likewise.
1172         * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1173         * doc/as.texinfo: Document 'd' for SHF_GNU_MBIND.
1174         * testsuite/gas/elf/elf.exp: Run section12a, section12b and
1175         section13.
1176         * testsuite/gas/elf/section10.d: Updated.
1177         * testsuite/gas/elf/section10.s: Likewise.
1178         * testsuite/gas/elf/section12.s: New file.
1179         * testsuite/gas/elf/section12a.d: Likewise.
1180         * testsuite/gas/elf/section12b.d: Likewise.
1181         * testsuite/gas/elf/section13.l: Likewise.
1182         * testsuite/gas/elf/section13.d: Likewise.
1183         * testsuite/gas/elf/section13.s: Likewise.
1184
1185 2017-04-03  Palmer Dabbelt  <palmer@dabbelt.com>
1186
1187         * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to
1188         avoid const warnings.
1189
1190 2017-03-30  Palmer Dabbelt  <palmer@dabbelt.com>
1191
1192         * config/tc-riscv.c (riscv_clear_subsets): New function.
1193         (riscv_add_subset): Call riscv_clear_subsets and riscv_set_rvc to
1194         clear RVC when it's been previously set.
1195
1196 2017-03-31  Nick Clifton  <nickc@redhat.com>
1197
1198         PR gas/21333
1199         * config/tc-s390.c (tc_s390_fix_adjustable): Allow non pc-relative
1200         fixups in mergeable sections to be adjusted.
1201
1202 2017-03-30  Pip Cet  <pipcet@gmail.com>
1203
1204         * config/tc-wasm32.h: New file: Add WebAssembly assembler target.
1205         * config/tc-wasm32.c: New file: Add WebAssembly assembler target.
1206         * Makefile.am: Add WebAssembly assembler target.
1207         * configure.tgt: Add WebAssembly assembler target.
1208         * doc/c-wasm32.texi: New file: Start documenting WebAssembly
1209         assembler.
1210         * doc/all.texi: Define WASM32.
1211         * doc/as.texinfo: Add WebAssembly entries.
1212         * NEWS: Mention the new support.
1213         * Makefile.in: Regenerate.
1214         * po/gas.pot: Regenerate.
1215         * po/POTFILES.in: Regenerate.
1216         * testsuite/gas/wasm32: New directory.
1217         * testsuite/gas/wasm32/allinsn.d: New file.
1218         * testsuite/gas/wasm32/allinsn.s: New file.
1219         * testsuite/gas/wasm32/illegal.l: New file.
1220         * testsuite/gas/wasm32/illegal.s: New file.
1221         * testsuite/gas/wasm32/illegal-2.l: New file.
1222         * testsuite/gas/wasm32/illegal-2.s: New file.
1223         * testsuite/gas/wasm32/illegal-3.l: New file.
1224         * testsuite/gas/wasm32/illegal-3.s: New file.
1225         * testsuite/gas/wasm32/illegal-4.l: New file.
1226         * testsuite/gas/wasm32/illegal-4.s: New file.
1227         * testsuite/gas/wasm32/illegal-5.l: New file.
1228         * testsuite/gas/wasm32/illegal-5.s: New file.
1229         * testsuite/gas/wasm32/illegal-6.l: New file.
1230         * testsuite/gas/wasm32/illegal-6.s: New file.
1231         * testsuite/gas/wasm32/illegal-7.l: New file.
1232         * testsuite/gas/wasm32/illegal-7.s: New file.
1233         * testsuite/gas/wasm32/illegal-8.l: New file.
1234         * testsuite/gas/wasm32/illegal-8.s: New file.
1235         * testsuite/gas/wasm32/illegal-9.l: New file.
1236         * testsuite/gas/wasm32/illegal-9.s: New file.
1237         * testsuite/gas/wasm32/illegal-10.l: New file.
1238         * testsuite/gas/wasm32/illegal-10.s: New file.
1239         * testsuite/gas/wasm32/illegal-11.l: New file.
1240         * testsuite/gas/wasm32/illegal-11.s: New file.
1241         * testsuite/gas/wasm32/illegal-12.l: New file.
1242         * testsuite/gas/wasm32/illegal-12.s: New file.
1243         * testsuite/gas/wasm32/illegal-13.l: New file.
1244         * testsuite/gas/wasm32/illegal-13.s: New file.
1245         * testsuite/gas/wasm32/illegal-14.l: New file.
1246         * testsuite/gas/wasm32/illegal-14.s: New file.
1247         * testsuite/gas/wasm32/illegal-15.l: New file.
1248         * testsuite/gas/wasm32/illegal-15.s: New file.
1249         * testsuite/gas/wasm32/illegal-16.l: New file.
1250         * testsuite/gas/wasm32/illegal-16.s: New file.
1251         * testsuite/gas/wasm32/illegal-17.l: New file.
1252         * testsuite/gas/wasm32/illegal-17.s: New file.
1253         * testsuite/gas/wasm32/illegal-18.l: New file.
1254         * testsuite/gas/wasm32/illegal-18.s: New file.
1255         * testsuite/gas/wasm32/illegal-19.l: New file.
1256         * testsuite/gas/wasm32/illegal-19.s: New file.
1257         * testsuite/gas/wasm32/illegal-20.l: New file.
1258         * testsuite/gas/wasm32/illegal-20.s: New file.
1259         * testsuite/gas/wasm32/illegal-21.l: New file.
1260         * testsuite/gas/wasm32/illegal-21.s: New file.
1261         * testsuite/gas/wasm32/illegal-22.l: New file.
1262         * testsuite/gas/wasm32/illegal-22.s: New file.
1263         * testsuite/gas/wasm32/illegal-24.l: New file.
1264         * testsuite/gas/wasm32/illegal-24.s: New file.
1265         * testsuite/gas/wasm32/illegal-25.l: New file.
1266         * testsuite/gas/wasm32/illegal-25.s: New file.
1267         * testsuite/gas/wasm32/reloc.d: New file.
1268         * testsuite/gas/wasm32/reloc.s: New file.
1269         * testsuite/gas/wasm32/wasm32.exp: New tests for WebAssembly
1270         architecture.
1271
1272 2017-03-29  Alan Modra  <amodra@gmail.com>
1273
1274         * config/tc-ppc.c (md_parse_option): Reject -mraw.
1275
1276 2017-03-27  Alan Modra  <amodra@gmail.com>
1277
1278         PR 21303
1279         * testsuite/gas/ppc/pr21303.d,
1280         * testsuite/gas/ppc/pr21303.s: New test
1281         * testsuite/gas/ppc/ppc.exp: Run it.
1282
1283 2017-03-27  Rinat Zelig  <rinat@mellanox.com>
1284
1285         * testsuite/gas/arc/nps400-12.s: New file.
1286         * testsuite/gas/arc/nps400-12.d: New file.
1287
1288 2017-03-24  Thomas preud'homme  <thomas.preudhomme@arm.com>
1289
1290         * config/tc-arm.: (md_begin): Set selected_cpu from *mcpu_cpu_opt when
1291         CPU_DEFAULT is defined.
1292
1293 2017-03-21  Palmer Dabbbelt  <palmer@dabbelt.com>
1294
1295         * config/tc-riscv.c (md_show_usage): Remode defuct -m32, -m64,
1296         -msoft-float, -mhard-float, -mno-rvc, and -mrvc options; and don't
1297         print an invalid default ISA string.
1298         * doc/c-riscv.texi (OPTIONS): Add -fpic and -fno-pic options.
1299
1300 2017-03-22  Max Filippov  <jcmvbkbc@gmail.com>
1301
1302         * config/tc-xtensa.c (xtensa_relax_frag): Change fx_size of the
1303         reassigned fixup to size of jump instruction (3) and fx_r_type
1304         to BFD_RELOC_XTENSA_SLOT0_OP, as there's only one slot.
1305         (add_jump_to_trampoline): Search
1306         origfrag->tc_frag_data.slot_symbols for the slot with non-NULL
1307         symbol and use that slot instead of slot 0.
1308
1309 2017-03-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1310
1311         * config/tc-s390.c (s390_parse_cpu): Remove S390_INSTR_FLAG_VX2
1312         from cpu_table.  Remove vx2, and novx2 from cpu_flags.
1313
1314 2017-03-21  Rinat Zelig  <rinat@mellanox.com>
1315
1316         * testsuite/gas/arc/nps400-11.s: New file.
1317         * testsuite/gas/arc/nps400-11.d: New file.
1318
1319 2017-03-20  Nick Clifton  <nickc@redhat.com>
1320
1321         * doc/as.texinfo (2byte): Note that if no expressions are present
1322         the directive does nothing.  Emphasize that the output is
1323         unaligned, and that this can have an effect on the relocations
1324         generated.
1325         (4byte): Simplify description.  Refer back to the 2byte
1326         description.
1327         (8byte): Likewise.
1328
1329 2017-03-20  Richard Earnshaw  <rearnsha@arm.com>
1330
1331         * config/tc-arm.c (arm_fpus): Note entires that should not be
1332         documented.
1333         * doc/c-arm.texi (-mfpu): Add missing FPU entries for neon-vfpv3 and
1334         neon-fp16.  Fix spelling error.
1335
1336 2017-03-20  Richard Earnshaw  <rearnsha@arm.com>
1337
1338         * config/tc-arm.c (arm_fpus): Add neon-vfpv3 as an alias for neon.
1339
1340 2017-03-16  Rinat Zelig  <rinat@mellanox.com>
1341
1342         * config/tc-arc.c (assemble_insn): Only handle ".t" and ".nt"
1343         specially for ARCv2.
1344
1345 2017-03-14  Kito Cheng  <kito.cheng@gmail.com>
1346
1347         * config/tc-riscv.c (validate_riscv_insn): Add 'o' RVC immediate
1348         encoding format, which can accept 0-valued immediates.
1349         (riscv_ip): Likewise.
1350
1351 2017-03-15  Nick Clifton  <nickc@redhat.com>
1352
1353         * config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
1354         warning about discarding a const qualifier.
1355
1356 2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
1357
1358         * config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.
1359
1360 2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
1361
1362         * config/tc-riscv.c (md_apply_fix): Set fx_frag and
1363         fx_next->fx_frag for CFA_advance_loc relocations.
1364
1365 2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
1366
1367         * config/tc-riscv.c (md_apply_fix): Compute the correct offsets
1368         for CFA relocations.
1369
1370 2017-03-13  Nick Clifton  <nickc@redhat.com>
1371
1372         PR binutils/21202
1373         * config/tc-aarch64.c (reloc_table): Rename
1374         BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC to
1375         BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.  Rname
1376         BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC to
1377         BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
1378         (md_apply_fix): Likewise.
1379         (aarch64_force_relocation): Likewise.
1380         * testsuite/gas/aarch64/tls.d: Update regexp.
1381
1382 2017-03-10  Tobin C. Harding  <me@tobin.cc>
1383             Nick Clifton  <nickc@redhat.com>
1384
1385         * doc/as.texinfo (2byte): Tidy up wording.  Add note that
1386         overlarge values will produce a warning message and be trunacted.
1387         (4byte): Likewise.
1388
1389 2017-03-09  H.J. Lu  <hongjiu.lu@intel.com>
1390
1391         * config/tc-i386.c (_i386_insn): Add dir_encoding and
1392         vec_encoding.  Remove swap_operand and need_vrex.
1393         (extra_symbol_chars): Add '}'.
1394         (md_begin): Mark '}' with LEX_BEGIN_NAME.  Allow '}' in
1395         mnemonic.
1396         (build_vex_prefix): Don't use 2-byte VEX encoding with
1397         {vex3}.  Check dir_encoding and load.
1398         (parse_insn): Check pseudo prefixes.  Set dir_encoding.
1399         (VEX_check_operands): Likewise.
1400         (match_template): Check dir_encoding and load.
1401         (parse_real_register): Set vec_encoding instead of need_vrex.
1402         (parse_register): Likewise.
1403         * doc/c-i386.texi: Document {disp8}, {disp32}, {load}, {store},
1404         {vex2}, {vex3} and {evex}.  Remove ".s", ".d8" and ".d32"
1405         * testsuite/gas/i386/i386.exp: Run pseudos and x86-64-pseudos.
1406         * testsuite/gas/i386/pseudos.d: New file.
1407         * testsuite/gas/i386/pseudos.s: Likewise.
1408         * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1409         * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
1410
1411 2017-03-08  Peter Bergner <bergner@vnet.ibm.com>
1412
1413         * testsuite/gas/ppc/altivec2.d (as): Use the -mpower8 option.
1414         (objdump): Use the -Mpower8 option.
1415
1416 2017-03-08  Peter Bergner <bergner@vnet.ibm.com>
1417
1418         * testsuite/gas/ppc/power9.d <lnia> New test.
1419         * testsuite/gas/ppc/power9.s: Likewise.
1420
1421 2017-03-07  Alan Modra  <amodra@gmail.com>
1422
1423         * doc/as.texinfo (2byte, 4byte, 8byte): Correct @section placement.
1424
1425 2017-03-07  Tobin C. Harding  <me@tobin.cc>
1426             Alan Modra  <amodra@gmail.com>
1427
1428         * doc/as.texinfo (2byte, 4byte, 8byte): Document.
1429         * doc/c-arm.texi (2byte, 4byte, 8byte): Omit if ELF.
1430
1431 2017-03-06  H.J. Lu  <hongjiu.lu@intel.com>
1432
1433         * config/tc-i386.c (cpu_arch): Add .cet.
1434         * doc/c-i386.texi: Document cet.
1435         * testsuite/gas/i386/cet-intel.d: New file.
1436         * testsuite/gas/i386/cet.d: Likewise.
1437         * testsuite/gas/i386/cet.s: Likewise.
1438         * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
1439         * testsuite/gas/i386/x86-64-cet.d: Likewise.
1440         * testsuite/gas/i386/x86-64-cet.s: Likewise.
1441         * testsuite/gas/i386/i386.exp: Run Intel CET tests.
1442
1443 2017-03-06  H.J. Lu  <hongjiu.lu@intel.com>
1444
1445         * testsuite/gas/i386/x86-64-mpx-inval-2.s: Force a good alignment.
1446         * testsuite/gas/i386/x86-64-mpx-inval-2.l: Expect [0-9A-F]+.
1447
1448 2017-03-06  Alan Modra  <amodra@gmail.com>
1449
1450         * dw2gencfi.c (encoding_size): Return unsigned int.
1451         (emit_expr_encoded): Assert size matches reloc bitsize.
1452         (output_fde): Use unsigned for offset_size and addr_size.  Set
1453         addr_size earlier and use in place of constant 4 and uses of
1454         DWARF2_FDE_RELOC_SIZE.  Assert it matches reloc bitsize.
1455
1456 2017-03-06  Alan Modra  <amodra@gmail.com>
1457
1458         * dw2gencfi.c: Wrap overlong lines.  Add parens for emacs
1459         auto reformat.  Formatting and whitespace fixes.
1460
1461 2017-03-05  Mark Wielaard  <mark@klomp.org>
1462
1463         * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_strp instead of
1464         DW_FORM_string for DW_AT_name, DW_AT_comp_dir and DW_AT_producer.
1465         (out_debug_info): Accept symbols to name, comp_dir and producer in
1466         the .debug_str section and emit those offsets not full strings.
1467         (out_debug_str): New function that outputs the strings for name,
1468         comp_dir and producer in .debug_str and generates symbols to those
1469         strings.
1470         (out_debug_line): Create a .debug_str section if necessary and call
1471         out_debug_str before calling out_debug_info.
1472         * testsuite/gas/aarch64/dwarf.d: Add extra section symbol to expected
1473         output.
1474
1475 2017-03-02  Maciej W. Rozycki  <macro@imgtec.com>
1476
1477         * write.c (relax_segment) <rs_org>: Only bail out if the fixed
1478         part of the frag has overrun the location requested.
1479
1480         * testsuite/gas/all/org-1.d: New test.
1481         * testsuite/gas/all/org-2.d: New test.
1482         * testsuite/gas/all/org-3.d: New test.
1483         * testsuite/gas/all/org-4.d: New test.
1484         * testsuite/gas/all/org-5.d: New test.
1485         * testsuite/gas/all/org-6.d: New test.
1486         * testsuite/gas/all/org-1.l: New stderr output.
1487         * testsuite/gas/all/org-2.l: New stderr output.
1488         * testsuite/gas/all/org-3.l: New stderr output.
1489         * testsuite/gas/all/org-1.s: New test source.
1490         * testsuite/gas/all/org-2.s: New test source.
1491         * testsuite/gas/all/org-3.s: New test source.
1492         * testsuite/gas/all/org-4.s: New test source.
1493         * testsuite/gas/all/org-5.s: New test source.
1494         * testsuite/gas/all/org-6.s: New test source.
1495         * testsuite/gas/all/gas.exp: Run the new tests.
1496
1497         * testsuite/gas/mips/org-1.d: New test.
1498         * testsuite/gas/mips/org-2.d: New test.
1499         * testsuite/gas/mips/org-3.d: New test.
1500         * testsuite/gas/mips/org-4.d: New test.
1501         * testsuite/gas/mips/org-5.d: New test.
1502         * testsuite/gas/mips/org-6.d: New test.
1503         * testsuite/gas/mips/org-7.d: New test.
1504         * testsuite/gas/mips/org-8.d: New test.
1505         * testsuite/gas/mips/org-9.d: New test.
1506         * testsuite/gas/mips/org-10.d: New test.
1507         * testsuite/gas/mips/org-11.d: New test.
1508         * testsuite/gas/mips/org-12.d: New test.
1509         * testsuite/gas/mips/org-1.l: New stderr output.
1510         * testsuite/gas/mips/org-4.l: New stderr output.
1511         * testsuite/gas/mips/org-5.l: New stderr output.
1512         * testsuite/gas/mips/org-6.l: New stderr output.
1513         * testsuite/gas/mips/org-10.l: New stderr output.
1514         * testsuite/gas/mips/org-1.s: New test source.
1515         * testsuite/gas/mips/org-2.s: New test source.
1516         * testsuite/gas/mips/org-3.s: New test source.
1517         * testsuite/gas/mips/org-4.s: New test source.
1518         * testsuite/gas/mips/org-5.s: New test source.
1519         * testsuite/gas/mips/org-6.s: New test source.
1520         * testsuite/gas/mips/org-7.s: New test source.
1521         * testsuite/gas/mips/org-8.s: New test source.
1522         * testsuite/gas/mips/org-9.s: New test source.
1523         * testsuite/gas/mips/org-10.s: New test source.
1524         * testsuite/gas/mips/org-11.s: New test source.
1525         * testsuite/gas/mips/org-12.s: New test source.
1526         * testsuite/gas/mips/mips.exp: Run the new tests.
1527
1528 2017-03-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1529
1530         * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
1531
1532 2017-02-28  Jan Beulich  <jbeulich@suse.com>
1533
1534         * testsuite/gas/i386/x86-64-avx.s: Add suffixed variants of
1535         VPCMPESTR{I,M}.
1536         * testsuite/gas/i386/x86-64-sse2avx.s: Likewise.
1537         * testsuite/gas/i386/x86-64-sse4_2.s: Add suffixed variants
1538         of PCMPESTR{I,M}.
1539         * testsuite/gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
1540         * testsuite/gas/i386/ilp32/x86-64-avx.d: Likewise.
1541         * testsuite/gas/i386/ilp32/x86-64-sse2avx.d: Likewise.
1542         * testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d: Likewise.
1543         * testsuite/gas/i386/ilp32/x86-64-sse4_2.d: Likewise.
1544         * testsuite/gas/i386/x86-64-avx-intel.d: Likewise.
1545         * testsuite/gas/i386/x86-64-avx.d: Likewise.
1546         * testsuite/gas/i386/x86-64-sse2avx.d: Likewise.
1547         * testsuite/gas/i386/x86-64-sse4_2-intel.d: Likewise.
1548         * testsuite/gas/i386/x86-64-sse4_2.d: Likewise.
1549
1550 2017-02-28  Alan Modra  <amodra@gmail.com>
1551
1552         * config/tc-nios2.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1553
1554 2017-02-28  Alan Modra  <amodra@gmail.com>
1555
1556         * config/tc-ppc.c (md_assemble): Use BFD_RELOC_PPC_16DX_HA for addpcis.
1557         (md_apply_fix): Remove fx_subsy check.  Move code converting to
1558         pcrel reloc earlier and handle BFD_RELOC_PPC_16DX_HA.  Remove code
1559         emiiting errors on seeing fx_pcrel set on unexpected relocs, as
1560         that is done now by the generic code via..
1561         * config/tc-ppc.h (TC_FORCE_RELOCATION_SUB_LOCAL): ..this. Define.
1562         (TC_VALIDATE_FIX_SUB): Define.
1563
1564 2017-02-28  Maciej W. Rozycki  <macro@imgtec.com>
1565
1566         * testsuite/gas/mips/jalr4.s: Add `jalr $0, $25' instructions.
1567         * testsuite/gas/mips/jalr4.d: Adjust accordingly.  Remove MIPSr6
1568         encoding patterns.
1569         * testsuite/gas/mips/jalr4-n64.d: Likewise.
1570         * testsuite/gas/mips/mipsr6@jalr4.d: New test.
1571         * testsuite/gas/mips/mipsr6@jalr4-n32.d: New test.
1572         * testsuite/gas/mips/mipsr6@jalr4-n64.d: New test.
1573
1574 2017-02-25  Alan Modra  <amodra@gmail.com>
1575
1576         * testsuite/gas/elf/strtab.s: Don't put directives on first
1577         column or continuation with labels not in first column.
1578
1579 2017-02-24  Richard Sandiford  <richard.sandiford@arm.com>
1580
1581         * doc/c-aarch64.texi: Document that sve implies fp16, simd and compnum.
1582         * config/tc-aarch64.c (parse_vector_type_for_operand): Allow .q
1583         to be used with SVE registers.
1584         (parse_operands): Handle new SVE operands.
1585         (aarch64_features): Make "sve" require F16 rather than FP.  Also
1586         require COMPNUM.
1587         * testsuite/gas/aarch64/sve.s: Add tests for new instructions.
1588         Include compnum tests.
1589         * testsuite/gas/aarch64/sve.d: Update accordingly.
1590         * testsuite/gas/aarch64/sve-invalid.s: Add tests for new instructions.
1591         * testsuite/gas/aarch64/sve-invalid.l: Update accordingly.  Also
1592         update expected output for new FMOV and MOV alternatives.
1593
1594 2017-02-24  Richard Sandiford  <richard.sandiford@arm.com>
1595
1596         * doc/c-aarch64.texi: Add a "compnum" entry.
1597         * config/tc-aarch64.c (aarch64_features): Likewise,
1598         * testsuite/gas/aarch64/advsimd-compnum.s: New test.
1599         * testsuite/gas/aarch64/advsimd-compnum.d: Likewise.
1600
1601 2017-02-24  Jan Beulich  <jbeulich@suse.com>
1602
1603         * testsuite/gas/i386/opcode.s: Add alternative TEST forms.
1604         * testsuite/gas/i386/x86-64-opcode.s: Likewise.
1605         * testsuite/gas/i386/opcode.d: Adjust accordingly.
1606         * testsuite/gas/i386/opcode-intel.d: Likewise.
1607         * testsuite/gas/i386/x86-64-opcode.d: Likewise.
1608         * testsuite/gas/i386/ilp32/x86-64-opcode.d: Likewise.
1609
1610 2017-02-24  Sheldon Lobo  <sheldon.lobo@oracle.com>
1611
1612         Test cases for the architecture level aware SPARC ASI work.
1613         * gas/testsuite/gas/sparc/sparc.exp: 2 new tests
1614         * gas/testsuite/gas/sparc/asi-bump-warn.s: New test
1615         * gas/testsuite/gas/sparc/asi-bump-warn.l: Likewise
1616         * gas/testsuite/gas/sparc/asi-arch-error.s: Likewise
1617         * gas/testsuite/gas/sparc/asi-arch-error.l: Likewise
1618
1619 2017-02-23  Maciej W. Rozycki  <macro@imgtec.com>
1620
1621         * testsuite/gas/mips/jalr4.d: New test.
1622         * testsuite/gas/mips/jalr4-n32.d: New test.
1623         * testsuite/gas/mips/jalr4-n64.d: New test.
1624         * testsuite/gas/mips/jalr4.s: New test source.
1625         * testsuite/gas/mips/mips.exp: Run the new tests.
1626
1627 2017-02-23  Sheldon Lobo <sheldon.lobo@oracle.com>
1628
1629         Add support for associating SPARC ASIs with an architecture level.
1630         * config/tc-sparc.c (parse_sparc_asi): New encode SPARC ASIs.
1631
1632 2017-02-23  Jan Beulich  <jbeulich@suse.com>
1633
1634         * testsuite/gas/all/err-sizeof.s: Don't use sums or differences
1635         of symbols as expression.
1636
1637 2017-02-23  Jan Beulich  <jbeulich@suse.com>
1638
1639         * gas/testsuite/gas/i386/x86-64-mpx-inval-2.d: Add 32- and 16-
1640         bit GPR forms of BNDCL, BNDCU, and BNDCN. Add RSP-as-index
1641         Intel syntax forms of BNDMK, BNDSTX, and BNDLDX.
1642         * gas/testsuite/gas/i386/x86-64-mpx-inval-2.l: Adjust.
1643
1644 2017-02-22  Maciej W. Rozycki  <macro@imgtec.com>
1645
1646         * ecoff.c (ecoff_directive_end) [md_flush_pending_output]: Call
1647         `md_flush_pending_output'.
1648         * config/tc-mips.c (s_mips_end) [md_flush_pending_output]: Call
1649         `md_flush_pending_output' unconditionally.
1650         * testsuite/gas/mips/debug-label-end-1.d: New test.
1651         * testsuite/gas/mips/debug-label-end-2.d: New test.
1652         * testsuite/gas/mips/debug-label-end-3.d: New test.
1653         * testsuite/gas/mips/debug-label-end.s: New test source.
1654         * testsuite/gas/mips/mips.exp: Run the new tests.
1655
1656 2017-02-22  Hans-Peter Nilsson  <hp@axis.com>
1657
1658         * testsuite/gas/all/err-sizeof.s: Include cris*-*-* in the list of
1659         targets yielding an error message matching "too complex".
1660
1661 2017-02-22  Nick Clifton  <nickc@redhat.com>
1662
1663         * testsuite/gas/arm/vcmp-noprefix-imm.d: Skip for non-ELF targets.
1664
1665 2017-02-21  Jan Beulich  <jbeulich@suse.com>
1666
1667         * expr.c (operand): Handle missing operand to .startof.() and
1668         .sizeof.().
1669         * testsuite/gas/all/err-sizeof.s: New.
1670
1671 2017-02-20  Alan Modra  <amodra@gmail.com>
1672
1673         PR 21118
1674         * NEWS: Revise powerpc register check.
1675         * config/tc-ppc.c (ppc_optimize_expr, md_assemble): Make "invalid
1676         register expression" a warning.
1677
1678 2017-02-17  Maciej W. Rozycki  <macro@imgtec.com>
1679
1680         * ecoff.c (ecoff_directive_ent, add_procedure): Handle `.aent'.
1681         * config/obj-ecoff.c (obj_pseudo_table): Add "aent" entry.
1682         * config/obj-elf.c (ecoff_debug_pseudo_table): Likewise.
1683         * testsuite/gas/mips/aent-2.d: New test.
1684         * testsuite/gas/mips/aent-mdebug.d: New test.
1685         * testsuite/gas/mips/aent-mdebug-2.d: New test.
1686         * testsuite/gas/mips/mips.exp: Run the new tests.
1687
1688 2017-02-15  Richard Sandiford  <richard.sandiford@arm.com>
1689
1690         * testsuite/gas/aarch64/sve-sysreg.s,
1691         testsuite/gas/aarch64/sve-sysreg.d,
1692         testsuite/gas/aarch64/sve-sysreg-invalid.d,
1693         testsuite/gas/aarch64/sve-sysreg-invalid.l: New tests.
1694
1695 2017-02-15  Richard Sandiford  <richard.sandiford@arm.com>
1696
1697         * doc/c-aarch64.texi: Fix sve entry.
1698
1699 2017-02-15  Claudiu Zissulescu  <claziss@synopsys.com>
1700
1701         * config/tc-arc.c (md_convert_frag): Remove @pcl relocation
1702         information from input expression.
1703         (assemble_insn): Make sure pcrel is correctly set.
1704         (arc_pcrel_adjust): Compensate for PCL rounding.
1705         * testsuite/gas/arc/relax-add01.d: New file.
1706         * testsuite/gas/arc/relax-add01.s: Likewise.
1707         * testsuite/gas/arc/relax-add02.d: Likewise.
1708         * testsuite/gas/arc/relax-add02.s: Likewise.
1709         * testsuite/gas/arc/relax-add03.d: Likewise.
1710         * testsuite/gas/arc/relax-add03.s: Likewise.
1711         * testsuite/gas/arc/relax-add04.d: Likewise.
1712         * testsuite/gas/arc/relax-add04.s: Likewise.
1713         * testsuite/gas/arc/relax-ld01.d: Likewise.
1714         * testsuite/gas/arc/relax-ld01.s: Likewise.
1715         * testsuite/gas/arc/relax-ld02.d: Likewise.
1716         * testsuite/gas/arc/relax-ld02.s: Likewise.
1717         * testsuite/gas/arc/relax-mov01.d: Likewise.
1718         * testsuite/gas/arc/relax-mov01.s: Likewise.
1719         * testsuite/gas/arc/relax-mov02.d: Likewise.
1720         * testsuite/gas/arc/relax-mov02.s: Likewise.
1721         * testsuite/gas/arc/relax-mpy01.d: Likewise.
1722         * testsuite/gas/arc/relax-mpy01.s: Likewise.
1723         * testsuite/gas/arc/relax-sub01.d: Likewise.
1724         * testsuite/gas/arc/relax-sub01.s: Likewise.
1725         * testsuite/gas/arc/relax-sub02.d: Likewise.
1726         * testsuite/gas/arc/relax-sub02.s: Likewise.
1727         * testsuite/gas/arc/relax-sub03.d: Likewise.
1728         * testsuite/gas/arc/relax-sub03.s: Likewise.
1729         * testsuite/gas/arc/relax-sub04.d: Likewise.
1730         * testsuite/gas/arc/relax-sub04.s: Likewise.
1731
1732 2017-02-09  Vineet Gupta <vgupta@synopsys.com>
1733
1734         * testsuite/gas/arc/st.d: Update for 0xe having a name now
1735
1736 2017-02-14  Alan Modra  <amodra@gmail.com>
1737
1738         PR 21118
1739         * NEWS: Mention powerpc register checks.
1740         * config/tc-ppc.c (struct pd_reg): Make value a short.  Add flags.
1741         (pre_defined_registers): Delete fpscr and pmr entries.  Set
1742         register type in flags.
1743         (cr_names): Set type in flags.
1744         (reg_name_search): Return pointer to struct pd_reg rather than value.
1745         (register_name): Adjust to suit.  Set X_md from flags.
1746         (ppc_parse_name): Likewise.
1747         (ppc_optimize_expr): New function.
1748         (md_assemble): Verify expresion reg flags match operand.
1749         * config/tc-ppc.h (md_optimize_expr): Define.
1750         (ppc_optimize_expr): Declare.
1751
1752 2017-02-14  Alan Modra  <amodra@gmail.com>
1753
1754         * testsuite/gas/ppc/cell.s: Correct invalid registers.
1755         * testsuite/gas/ppc/vle-simple-1.s: Likewise.
1756         * testsuite/gas/ppc/vle-simple-2.s: Likewise.
1757
1758 2017-02-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1759
1760         * config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
1761         syntax.
1762         * testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
1763         * testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
1764
1765 2017-02-10  Nicholas Piggin  <npiggin@gmail.com>
1766
1767         * testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
1768
1769 2017-02-02  Maciej W. Rozycki  <macro@imgtec.com>
1770
1771         * doc/as.texinfo (Overview): Select MIPS options for man page
1772         inclusion.
1773
1774 2017-01-30  Maciej W. Rozycki  <macro@imgtec.com>
1775
1776         * config/tc-mips.c (mips_ignore_branch_isa): New variable.
1777         (options): Add OPTION_IGNORE_BRANCH_ISA and
1778         OPTION_NO_IGNORE_BRANCH_ISA enum values.
1779         (md_longopts): Add "mignore-branch-isa" and
1780         "mno-ignore-branch-isa" options.
1781         (md_parse_option): Handle OPTION_IGNORE_BRANCH_ISA and
1782         OPTION_NO_IGNORE_BRANCH_ISA.
1783         (fix_bad_cross_mode_branch_p): Return FALSE if
1784         `mips_ignore_branch_isa' has been set.
1785         (md_show_usage): Add `-mignore-branch-isa' and
1786         `-mno-ignore-branch-isa'.
1787
1788         * doc/as.texinfo (Target MIPS options): Add
1789         `-mignore-branch-isa' and `-mno-ignore-branch-isa' options.
1790         (-mignore-branch-isa, -mno-ignore-branch-isa): New options.
1791         * doc/c-mips.texi (MIPS Options): Add `-mignore-branch-isa' and
1792         `-mno-ignore-branch-isa' options.
1793
1794         * testsuite/gas/mips/branch-local-ignore-2.d: New test.
1795         * testsuite/gas/mips/branch-local-ignore-3.d: New test.
1796         * testsuite/gas/mips/branch-local-ignore-n32-2.d: New test.
1797         * testsuite/gas/mips/branch-local-ignore-n32-3.d: New test.
1798         * testsuite/gas/mips/branch-local-ignore-n64-2.d: New test.
1799         * testsuite/gas/mips/branch-local-ignore-n64-3.d: New test.
1800         * testsuite/gas/mips/mips.exp: Run the new tests.
1801
1802 2017-01-30  Maciej W. Rozycki  <macro@imgtec.com>
1803
1804         * testsuite/gas/mips/branch-local-2.d: New test.
1805         * testsuite/gas/mips/branch-local-3.d: New test.
1806         * testsuite/gas/mips/branch-local-n32-2.d: New test.
1807         * testsuite/gas/mips/branch-local-n32-3.d: New test.
1808         * testsuite/gas/mips/branch-local-n64-2.d: New test.
1809         * testsuite/gas/mips/branch-local-n64-3.d: New test.
1810         * testsuite/gas/mips/mips.exp: Fold corresponding list tests
1811         into the new tests.
1812
1813 2017-01-27  Alexis Deruell  <alexis.deruelle@gmail.com>
1814
1815         PR 21056
1816         * testsuite/gas/tic6x/insns16-parallel.s: New test case.
1817         * testsuite/gas/tic6x/insns16-parallel.d: New test driver.
1818
1819 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1820
1821         * configure.tgt (aarch64*-*-rtems*): Remove.
1822         (bfin-*-rtems*): Likewise.
1823         (h8300-*-rtems*): Likewise.
1824         (i386-*-rtems*): Likewise.
1825         (m32c-*-rtems*): Likewise.
1826         (m32r-*-rtems*): Likewise.
1827         (m68k-*-rtems*): Likewise.
1828         (mips-*-rtems*): Likewise.
1829         (nios2-*-rtems*): Likewise.
1830         (ppc-*-rtems*): Likewise.
1831         (sh-*-rtems*): Likewise.
1832         (sparc64-*-rtems*): Likewise.
1833         (sparc-*-rtems*): Likewise.
1834         (*-*-rtems*) Use ELF format.
1835
1836 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1837
1838         * configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
1839
1840 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1841
1842         * configure.tgt (sh-*-rtemscoff*): Remove.
1843
1844 2017-01-24  Sebastian Huber <sebastian.huber@embedded-brains.de>
1845
1846         * configure.tgt (riscv*-*-*): Remove em=linux.
1847
1848 2017-01-23  Sebastian Rasmussen  <sebras@gmail.com>
1849
1850         PR gas/21072
1851         * asintl.h: Fix spelling mistakes and typos.
1852         * atof-generic.c: Likewise.
1853         * bit_fix.h: Likewise.
1854         * config/atof-ieee.c: Likewise.
1855         * config/bfin-defs.h: Likewise.
1856         * config/bfin-parse.y: Likewise.
1857         * config/obj-coff-seh.h: Likewise.
1858         * config/obj-coff.c: Likewise.
1859         * config/obj-evax.c: Likewise.
1860         * config/obj-macho.c: Likewise.
1861         * config/rx-parse.y: Likewise.
1862         * config/tc-aarch64.c: Likewise.
1863         * config/tc-alpha.c: Likewise.
1864         * config/tc-arc.c: Likewise.
1865         * config/tc-arm.c: Likewise.
1866         * config/tc-avr.c: Likewise.
1867         * config/tc-bfin.c: Likewise.
1868         * config/tc-cr16.c: Likewise.
1869         * config/tc-cris.c: Likewise.
1870         * config/tc-crx.c: Likewise.
1871         * config/tc-d10v.c: Likewise.
1872         * config/tc-d30v.c: Likewise.
1873         * config/tc-dlx.c: Likewise.
1874         * config/tc-epiphany.c: Likewise.
1875         * config/tc-frv.c: Likewise.
1876         * config/tc-hppa.c: Likewise.
1877         * config/tc-i370.c: Likewise.
1878         * config/tc-i386-intel.c: Likewise.
1879         * config/tc-i386.c: Likewise.
1880         * config/tc-i960.c: Likewise.
1881         * config/tc-ia64.c: Likewise.
1882         * config/tc-m32r.c: Likewise.
1883         * config/tc-m68hc11.c: Likewise.
1884         * config/tc-m68k.c: Likewise.
1885         * config/tc-mcore.c: Likewise.
1886         * config/tc-mep.c: Likewise.
1887         * config/tc-mep.h: Likewise.
1888         * config/tc-metag.c: Likewise.
1889         * config/tc-microblaze.c: Likewise.
1890         * config/tc-mips.c: Likewise.
1891         * config/tc-mmix.c: Likewise.
1892         * config/tc-mn10200.c: Likewise.
1893         * config/tc-mn10300.c: Likewise.
1894         * config/tc-msp430.c: Likewise.
1895         * config/tc-msp430.h: Likewise.
1896         * config/tc-nds32.c: Likewise.
1897         * config/tc-nds32.h: Likewise.
1898         * config/tc-nios2.c: Likewise.
1899         * config/tc-nios2.h: Likewise.
1900         * config/tc-ns32k.c: Likewise.
1901         * config/tc-pdp11.c: Likewise.
1902         * config/tc-ppc.c: Likewise.
1903         * config/tc-pru.c: Likewise.
1904         * config/tc-rx.c: Likewise.
1905         * config/tc-s390.c: Likewise.
1906         * config/tc-score.c: Likewise.
1907         * config/tc-score7.c: Likewise.
1908         * config/tc-sh.c: Likewise.
1909         * config/tc-sh64.c: Likewise.
1910         * config/tc-sparc.c: Likewise.
1911         * config/tc-tic4x.c: Likewise.
1912         * config/tc-tic54x.c: Likewise.
1913         * config/tc-v850.c: Likewise.
1914         * config/tc-vax.c: Likewise.
1915         * config/tc-visium.c: Likewise.
1916         * config/tc-xgate.c: Likewise.
1917         * config/tc-xtensa.c: Likewise.
1918         * config/tc-z80.c: Likewise.
1919         * config/tc-z8k.c: Likewise.
1920         * config/te-vms.c: Likewise.
1921         * config/xtensa-relax.c: Likewise.
1922         * doc/as.texinfo: Likewise.
1923         * doc/c-arm.texi: Likewise.
1924         * doc/c-hppa.texi: Likewise.
1925         * doc/c-i370.texi: Likewise.
1926         * doc/c-i386.texi: Likewise.
1927         * doc/c-m32r.texi: Likewise.
1928         * doc/c-m68k.texi: Likewise.
1929         * doc/c-mmix.texi: Likewise.
1930         * doc/c-msp430.texi: Likewise.
1931         * doc/c-nds32.texi: Likewise.
1932         * doc/c-ns32k.texi: Likewise.
1933         * doc/c-riscv.texi: Likewise.
1934         * doc/c-rx.texi: Likewise.
1935         * doc/c-s390.texi: Likewise.
1936         * doc/c-tic6x.texi: Likewise.
1937         * doc/c-tilegx.texi: Likewise.
1938         * doc/c-tilepro.texi: Likewise.
1939         * doc/c-v850.texi: Likewise.
1940         * doc/c-xgate.texi: Likewise.
1941         * doc/c-xtensa.texi: Likewise.
1942         * dwarf2dbg.c: Likewise.
1943         * ecoff.c: Likewise.
1944         * itbl-ops.c: Likewise.
1945         * listing.c: Likewise.
1946         * macro.c: Likewise.
1947         * po/gas.pot: Likewise.
1948         * read.c: Likewise.
1949         * struc-symbol.h: Likewise.
1950         * symbols.h: Likewise.
1951         * testsuite/gas/arc/relocs-errors.err: Likewise.
1952         * write.c: Likewise.
1953
1954 2017-01-23  Nick Clifton  <nickc@redhat.com>
1955
1956         * po/sv.po: Updated Swedish translation.
1957
1958 2017-01-20  Nick Clifton  <nickc@redhat.com>
1959
1960         * config/tc-i386.c (parse_operands): Check for operand overflow
1961         before setting the unspecified bit.
1962
1963 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
1964
1965         PR gas/20649
1966         * config/tc-mips.c (pic_need_relax): Don't check for linkonce
1967         symbols, remove the `segtype' parameter.
1968         (mips_frob_file, md_estimate_size_before_relax): Adjust
1969         accordingly.
1970         (s_is_linkonce): Add an explanatory comment.
1971         * testsuite/gas/mips/comdat-reloc.d: New test.
1972         * testsuite/gas/mips/comdat-reloc.s: New test source.
1973         * testsuite/gas/mips/mips.exp: Run the new test.
1974
1975 2017-01-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1976
1977         * testsuite/gas/arm/armv8_3-a-simd.s: Add vcmla tests.
1978         * testsuite/gas/arm/armv8_3-a-simd.d: Update.
1979
1980 2017-01-18  Bernhard Rosenkranzer  <bero@lindev.ch>
1981
1982         PR 21059
1983         * config/bfin-lex.l: Support processing with flex 2.6.3.
1984         * itbl-lex.l: Likewise.
1985
1986 2017-01-18  Nathan Sidwell  <nathan@acm.org>
1987
1988         * as.h (gas_assert): Use abort.
1989         (as_assert): Remove.
1990         (signal_init): Declare.
1991         * as.c (main): Call signal_init.
1992         * messages.c: #include <signal.h>
1993         (as_assert): Delete.
1994         (as_abort): Allow NULL FILE.
1995         (signal_crash): New.
1996         (signal_init): Register fatal signal handlers.
1997         * configure.ac: Check for strsignal.
1998         * config.in: Rebuilt.
1999         * configure: Rebuilt.
2000
2001 2017-01-17  Nick Clifton  <nickc@redhat.com>
2002
2003         * po/sv.po: Updated Swedish translation.
2004
2005 2017-01-12  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2006
2007         * config/tc-i386.c (cpu_arch): Add .avx512_vpopcntdq.
2008         (cpu_noarch): Add noavx512_vpopcntdq.
2009         * doc/c-i386.texi: Document avx512_vpopcntdq, noavx512_vpopcntdq.
2010         * testsuite/gas/i386/i386.exp: Run AVX512_VPOPCNTDQ tests.
2011         * testsuite/gas/i386/avx512_vpopcntdqd-intel.d: New file.
2012         * testsuite/gas/i386/avx512_vpopcntdqd.d: Ditto.
2013         * testsuite/gas/i386/avx512_vpopcntdqd.s: Ditto.
2014         * testsuite/gas/i386/x86-64-avx512_vpopcntdqd-intel.d: Ditto.
2015         * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.d: Ditto.
2016         * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.s: Ditto.
2017
2018 2017-01-12  Nick Clifton  <nickc@redhat.com>
2019
2020         * read.c (temp_ilp): New function.  Installs a temporary input
2021         line pointer.
2022         (restore_ilp): New function.  Restores the original input line
2023         pointer.
2024         * read.h (temp_ilp): Prototype.
2025         (restore_ilp): Prototype.
2026         * stabs.c (dot_func_p): Use bfd_boolean type.
2027         (generate_asm_file): Use temp_ilp and restore_ilp.
2028         (stabs_generate_asm_lineno): Likewise.
2029         (stabs_generate_asm_endfunc): Likewise.
2030
2031 2017-01-11  Jeremy Soller  <jackpot51@gmail.com>
2032
2033         * configure.tgt: Add entry for i386-redox.
2034
2035 2017-01-10  Nick Clifton  <nickc@redhat.com>
2036
2037         * po/sv.po: Updated Swedish translation.
2038
2039 2017-01-10  Tristan Gingold  <gingold@adacore.com>
2040
2041         * testsuite/gas/all/sleb128-8.d: Adjust test.
2042         * testsuite/gas/all/gas.exp (test_cond): Likewise.
2043
2044 2017-01-10  Tristan Gingold  <gingold@adacore.com>
2045
2046         * read.c (emit_leb128_expr): Extended unsigned big number for
2047         sleb128.
2048         * testsuite/gas/all/gas.exp (test_cond): Add sleb128-8 test.
2049         * testsuite/gas/all/sleb128.d: New test.
2050         * testsuite/gas/all/sleb128.s: New test source.
2051
2052 2017-01-09  Andrew Waterman <andrew@sifive.com>
2053
2054         * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
2055         against constants.
2056         (md_apply_fix): Mark relocations against constants as "done."
2057
2058 2017-01-09  Andrew Waterman <andrew@sifive.com>
2059
2060         * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
2061         against constants.
2062         (md_apply_fix): Mark relocations against constants as "done."
2063
2064 2017-01-09  Palmer Dabbelt <palmer@dabbelt.com>
2065             Kito Cheng <kito.cheng@gmail.com>
2066
2067         * emulparams/elf32lriscv-defs.sh (INITIAL_READONLY_SECTIONS):
2068         Removed.
2069         (SDATA_START_SYMBOLS): Likewise.
2070
2071 2017-01-09  Nick Clifton  <nickc@redhat.com>
2072
2073         * po/sv.po: New Swedish translation.
2074         * configure.ac (ALL_LINGUAS): Add sv.
2075         * configure: Regenerate.
2076
2077 2017-01-09  Andrew Waterman <andrew@sifive.com>
2078
2079         * config/tc-riscv.c (relaxed_branch_length): Use the long
2080         sequence when the target is a weak symbol.
2081
2082 2017-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2083
2084         * config/tc-aarch64.c (aarch64_features): Add rcpc.
2085         * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
2086         * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Rename to ...
2087         * testsuite/gas/aarch64/ldst-rcpc.d: This.
2088         * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Rename to ...
2089         * testsuite/gas/aarch64/ldst-rcpc.s: This.
2090         * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: New test.
2091
2092 2017-01-04  Norm Jacobs  <norm.jacobs@oracle.com>
2093
2094         PR gas/20992
2095         * configure.tgt: Treat sparcv9 as sparc64.
2096
2097 2017-01-03  Kito Cheng  <kito.cheng@gmail.com>
2098
2099         * config/tc-riscv.c (riscv_set_arch): Whitelist the "q" ISA
2100         extension.
2101         (riscv_after_parse_args): Set FLOAT_ABI_QUAD when the Q ISA is
2102         enabled and no other ABI is specified.
2103
2104 2017-01-03  Dimitar Dimitrov  <dimitar@dinux.eu>
2105
2106         * config/tc-pru.c (md_number_to_chars): Fix parameter to be
2107         valueT, as declared in tc.h.
2108         (md_apply_fix): Fix to work on 32-bit hosts.
2109
2110 2017-01-02  Alan Modra  <amodra@gmail.com>
2111
2112         Update year range in copyright notice of all files.
2113
2114 For older changes see ChangeLog-2016
2115 \f
2116 Copyright (C) 2017 Free Software Foundation, Inc.
2117
2118 Copying and distribution of this file, with or without modification,
2119 are permitted in any medium without royalty provided the copyright
2120 notice and this notice are preserved.
2121
2122 Local Variables:
2123 mode: change-log
2124 left-margin: 8
2125 fill-column: 74
2126 version-control: never
2127 End: