Fix spelling in comments in Assembler files (gas)
[binutils-gdb.git] / gas / ChangeLog
1 2016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
2
3 * testsuite/gas/arm/local_function.d: Fix spelling in comments.
4 * testsuite/gas/arm/req.s: Fix spelling in comments.
5 * testsuite/gas/arm/vfp1.s: Fix spelling in comments.
6 * testsuite/gas/arm/vfp1_t2.s: Fix spelling in comments.
7 * testsuite/gas/arm/vfp1xD.s: Fix spelling in comments.
8 * testsuite/gas/arm/vfp1xD_t2.s: Fix spelling in comments.
9 * testsuite/gas/mcore/allinsn.s: Fix spelling in comments.
10 * testsuite/gas/mips/24k-triple-stores-5.s: Fix spelling in comments.
11 * testsuite/gas/mips/delay.d: Fix spelling in comments.
12 * testsuite/gas/mips/nodelay.d: Fix spelling in comments.
13 * testsuite/gas/mips/r5900-full.s: Fix spelling in comments.
14 * testsuite/gas/mips/r5900.s: Fix spelling in comments.
15
16 2016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
17
18 * as.h: Fix spelling in comments.
19 * config/obj-ecoff.c: Fix spelling in comments.
20 * config/obj-macho.c: Fix spelling in comments.
21 * config/tc-aarch64.c: Fix spelling in comments.
22 * config/tc-arc.c: Fix spelling in comments.
23 * config/tc-arm.c: Fix spelling in comments.
24 * config/tc-avr.c: Fix spelling in comments.
25 * config/tc-cr16.c: Fix spelling in comments.
26 * config/tc-epiphany.c: Fix spelling in comments.
27 * config/tc-frv.c: Fix spelling in comments.
28 * config/tc-hppa.c: Fix spelling in comments.
29 * config/tc-hppa.h: Fix spelling in comments.
30 * config/tc-i370.c: Fix spelling in comments.
31 * config/tc-m68hc11.c: Fix spelling in comments.
32 * config/tc-m68k.c: Fix spelling in comments.
33 * config/tc-mcore.c: Fix spelling in comments.
34 * config/tc-mep.c: Fix spelling in comments.
35 * config/tc-metag.c: Fix spelling in comments.
36 * config/tc-mips.c: Fix spelling in comments.
37 * config/tc-mn10200.c: Fix spelling in comments.
38 * config/tc-mn10300.c: Fix spelling in comments.
39 * config/tc-nds32.c: Fix spelling in comments.
40 * config/tc-nios2.c: Fix spelling in comments.
41 * config/tc-ns32k.c: Fix spelling in comments.
42 * config/tc-pdp11.c: Fix spelling in comments.
43 * config/tc-ppc.c: Fix spelling in comments.
44 * config/tc-riscv.c: Fix spelling in comments.
45 * config/tc-rx.c: Fix spelling in comments.
46 * config/tc-score.c: Fix spelling in comments.
47 * config/tc-score7.c: Fix spelling in comments.
48 * config/tc-sparc.c: Fix spelling in comments.
49 * config/tc-tic54x.c: Fix spelling in comments.
50 * config/tc-vax.c: Fix spelling in comments.
51 * config/tc-xgate.h: Fix spelling in comments.
52 * config/tc-xtensa.c: Fix spelling in comments.
53 * config/tc-z80.c: Fix spelling in comments.
54 * dwarf2dbg.c: Fix spelling in comments.
55 * input-file.h: Fix spelling in comments.
56 * itbl-ops.c: Fix spelling in comments.
57 * read.c: Fix spelling in comments.
58 * stabs.c: Fix spelling in comments.
59 * symbols.c: Fix spelling in comments.
60 * write.c: Fix spelling in comments.
61 * testsuite/gas/all/itbl-test.c: Fix spelling in comments.
62 * testsuite/gas/tic4x/opclasses.h: Fix spelling in comments.
63
64 2016-11-25 Jose E. Marchesi <jose.marchesi@oracle.com>
65
66 * config/tc-sparc.c (sparc_ip): Avoid emitting a cbcond error
67 messages for non-cbcond instructions.
68 * testsuite/gas/sparc/cbcond-diag.s: New file.
69 * testsuite/gas/sparc/cbcond-diag.l: Likewise.
70 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run cbcond-diag tests.
71
72 2016-11-23 Jose E. Marchesi <jose.marchesi@oracle.com>
73
74 * testsuite/gas/sparc/sparc.exp (gas_64_check): Make sure the
75 hwcaps-bump test is run with 64-bit objects.
76
77 2016-11-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
78
79 * config/tc-riscv.c: Add missing break.
80
81 2016-11-23 Alan Modra <amodra@gmail.com>
82
83 * po/POTFILES.in: Regenerate.
84
85 2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
86
87 * configure: Regenerate.
88
89 2016-11-22 Jose E. Marchesi <jose.marchesi@oracle.com>
90
91 * config/tc-sparc.c: Move HWS_* and HWS2_* definitions to
92 opcodes/sparc-opc.c.
93 (sparc_arch): Clarify the new role of the hwcap_allowed and
94 hwcap2_allowed fields.
95 (sparc_arch_table): Remove HWS_* and HWS2_* instances from
96 hwcap_allowed and hwcap2_allowed respectively.
97 (md_parse_option): Include the opcode arch hwcaps when processing
98 -A.
99 (sparc_ip): Use the current opcode arch hwcaps to update
100 hwcap_allowed, as well as the hwcaps of the instruction triggering
101 the bump.
102 * testsuite/gas/sparc/hwcaps-bump.s: New file.
103 * testsuite/gas/sparc/hwcaps-bump.l: Likewise.
104 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run tests in
105 hwcaps-bump.
106
107 2016-11-22 Claudiu Zissulescu <claziss@synopsys.com>
108
109 * testsuite/gas/arc/b.d: Update test result.
110
111 2016-11-22 Alan Modra <amodra@gmail.com>
112
113 PR 20744
114 * config/tc-ppc.c: Delete VLE insn defines.
115 (md_assemble): Swap use_a_reloc and use_d_reloc.
116 * testsuite/gas/ppc/vle-reloc.d: Update.
117
118 2016-11-21 Renlin Li <renlin.li@arm.com>
119
120 PR gas/20827
121 * config/tc-arm.c (encode_arm_shift): Don't assert for operands not
122 presented.
123 * testsuite/gas/arm/add-shift-two.d: New.
124 * testsuite/gas/arm/add-shift-two.s: New.
125
126 2016-11-21 Alan Modra <amodra@gmail.com>
127
128 * configure.ac: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
129 * Makefile.am (comparison): Rewrite using do_compare.
130 * configure: Regenerate.
131 * Makefile.in: Regenerate.
132 * doc/Makefile.in: Regenerate.
133
134 2016-11-18 Claudiu Zissulescu <claziss@synopsys.com>
135
136 * testsuite/gas/arc/cl-warn.s: New file.
137 * testsuite/gas/arc/cpu-pseudop-1.d: Likewise.
138 * testsuite/gas/arc/cpu-pseudop-1.s: Likewise.
139 * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
140 * testsuite/gas/arc/cpu-pseudop-2.s: Likewise.
141 * testsuite/gas/arc/cpu-warn2.s: Likewise.
142 * config/tc-arc.c (selected_cpu): Initialize.
143 (feature_type): New struct.
144 (feature_list): New variable.
145 (arc_check_feature): New function.
146 (arc_select_cpu): Check for .cpu duplicates. Don't overwrite the
147 current cpu features. Check if a feature is available for a given
148 cpu.
149 (md_parse_option): Test if features are available for a given cpu.
150
151 2016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
152
153 * config/tc-aarch64.c (parse_operands): Handle AARCH64_OPND_IMM_ROT*.
154 * testsuite/gas/aarch64/advsimd-armv8_3.d: New.
155 * testsuite/gas/aarch64/advsimd-armv8_3.s: New.
156 * testsuite/gas/aarch64/illegal-fcmla.s: New.
157 * testsuite/gas/aarch64/illegal-fcmla.l: New.
158 * testsuite/gas/aarch64/illegal-fcmla.d: New.
159
160 2016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
161
162 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Add ldaprb, ldaprh, ldapr tests.
163 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Likewise.
164 * testsuite/gas/aarch64/illegal-ldapr.s: Likewise.
165 * testsuite/gas/aarch64/illegal-ldapr.d: Likewise.
166 * testsuite/gas/aarch64/illegal-ldapr.l: Likewise.
167
168 2016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
169
170 * testsuite/gas/aarch64/fp-armv8_3.s: Add fjcvtzs test.
171 * testsuite/gas/aarch64/fp-armv8_3.d: Likewise.
172 * testsuite/gas/aarch64/illegal-fjcvtzs.s: Likewise.
173 * testsuite/gas/aarch64/illegal-fjcvtzs.d: Likewise.
174 * testsuite/gas/aarch64/illegal-fjcvtzs.l: Likewise.
175 * testsuite/gas/aarch64/illegal-nofp-armv8_3.s: Likewise.
176 * testsuite/gas/aarch64/illegal-nofp-armv8_3.d: Likewise.
177 * testsuite/gas/aarch64/illegal-nofp-armv8_3.l: Likewise.
178
179 2016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
180
181 * config/tc-aarch64.c (parse_operands): Handle AARCH64_OPND_ADDR_SIMM10.
182 (fix_insn): Likewise.
183 (warn_unpredictable_ldst): Handle ldst_imm10.
184 * testsuite/gas/aarch64/pac.s: Add ldraa and ldrab tests.
185 * testsuite/gas/aarch64/pac.d: Likewise.
186 * testsuite/gas/aarch64/illegal-ldraa.s: New.
187 * testsuite/gas/aarch64/illegal-ldraa.l: New.
188 * testsuite/gas/aarch64/illegal-ldraa.d: New.
189
190 2016-11-15 Nick Clifton <nickc@redhat.com>
191
192 PR gas/20803
193 * config/tc-sparc.c (cons_fix_new_sparc): Use unaligned relocs in
194 the .eh_frame section.
195
196 2016-11-13 Anthony Green <green@moxielogic.org>
197
198 * config/tc-moxie.c (md_assemble): Assemble 'bad' opcode.
199
200 2016-11-11 Nick Clifton <nickc@redhat.com>
201
202 PR gas/20732
203 * expr.c (integer_constant): If tc_allow_L_suffix is defined and
204 non-zero then accept a L or LL suffix.
205 * testsuite/gas/sparc/pr20732.d: New test source file.
206 * testsuite/gas/sparc/pr20732.d: New test output file.
207 * testsuite/gas/sparc/sparc.exp: Run new test.
208
209 2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
210
211 * testsuite/gas/aarch64/pac.s: Add ARMv8.3 branch instruction tests.
212 * testsuite/gas/aarch64/pac.d: Likewise.
213
214 2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
215
216 * config/tc-aarch64.c (process_omitted_operand): Handle AARCH64_OPND_Rm_SP.
217 (parse_operands): Likewise.
218 * testsuite/gas/aarch64/pac.s: Add pacga.
219 * testsuite/gas/aarch64/pac.d: Add pacga.
220
221 2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
222
223 * testsuite/gas/aarch64/pac.s: New.
224 * testsuite/gas/aarch64/pac.d: New.
225
226 2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
227
228 * testsuite/gas/aarch64/sysreg-3.s: New.
229 * testsuite/gas/aarch64/sysreg-3.d: New.
230 * testsuite/gas/aarch64/illegal-sysreg-3.l: New.
231 * testsuite/gas/aarch64/illegal-sysreg-3.d: New.
232
233 2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
234
235 * testsuite/gas/aarch64/system-3.s: New.
236 * testsuite/gas/aarch64/system-3.d: New.
237 * testsuite/gas/aarch64/system.d: Update expected output.
238
239 2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
240
241 * config/tc-aarch64.c (aarch64_archs): Add "armv8.3-a".
242 * doc/c-aarch64.texi (-march): Likewise.
243
244 2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
245
246 * config/tc-aarch64.c (aarch64_features): Fix "simd" and "crypto".
247 * testsuite/gas/aarch64/illegal-crypto-nofp.d: New.
248 * testsuite/gas/aarch64/illegal-crypto-nofp.l: New.
249 * testsuite/gas/aarch64/illegal-fp16-nofp.d: New.
250 * testsuite/gas/aarch64/illegal-fp16-nofp.l: New.
251 * testsuite/gas/aarch64/illegal-fp16-nofp.s: New.
252
253 2016-11-09 H.J. Lu <hongjiu.lu@intel.com>
254
255 PR binutils/20799
256 * testsuite/gas/i386/opcode.s: Add a test for EVEX vpextrw.
257 * testsuite/gas/i386/opcode-intel.d: Updated.
258 * testsuite/gas/i386/opcode-suffix.d: Likewise.
259 * testsuite/gas/i386/opcode.d: Likewise.
260 * testsuite/gas/i386/x86-64-avx512bw-opts.s: Remove vpextrw
261 tests.
262 * testsuite/gas/i386/x86-64-avx512bw-opts-intel.d: Updated.
263 * testsuite/gas/i386/x86-64-avx512bw-opts.d: Likewise.
264
265 2016-11-09 H.J. Lu <hongjiu.lu@intel.com>
266
267 PR binutils/20754
268 * testsuite/gas/i386/opcode-suffix.d: Updated.
269
270 2016-11-07 H.J. Lu <hongjiu.lu@intel.com>
271
272 PR binutils/20775
273 * testsuite/gas/i386/i386.exp: Run fpu-bad.
274 * testsuite/gas/i386/fpu-bad.d: New file.
275 * testsuite/gas/i386/fpu-bad.s: Likewise.
276
277 2016-11-04 Nathan Sidwell <nathan@acm.org>
278
279 gas/
280 * input-scrub.c (partial_size): Make size_t.
281 (buffer_length): Likewise. Adjust meaning.
282 (struct input_save): Adjust partial_size type.
283 (input_scrub_reinit): New.
284 (input_scrub_push, input_scrub_begin): Use it.
285 (input_scrub_next_buffer): Fix buffer extension logic. Only scan
286 newly read buffer for newline.
287
288 2016-11-04 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * config/tc-arc.c (find_opcode_match): Use insert function to
291 validate matching address type operands.
292 * testsuite/gas/arc/nps400-10.d: New file.
293 * testsuite/gas/arc/nps400-10.s: New file.
294
295 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
296
297 * config/tc-arm.c (cortex-m33): Declare new processor.
298 * doc/c-arm.texi (-mcpu ARM command line option): Document new
299 Cortex-M33 processor.
300 * NEWS: Mention ARM Cortex-M33 support.
301
302 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
303
304 * config/tc-arm.c (cortex-m23): Declare new processor.
305 * doc/c-arm.texi (-mcpu ARM command line option): Document new
306 Cortex-M23 processor.
307 * NEWS: Mention ARM Cortex-M23 support.
308
309 2016-11-04 Palmer Dabbelt <palmer@dabbelt.com>
310 Andrew Waterman <andrew@sifive.com>
311
312 * Makefile.am (CPU_DOCS): Add c-riscv.texi.
313 * Makefile.in: Regenerate.
314 * doc/all.texi: Set RISCV.
315 * doc/as.texinfo: Add RISCV options.
316 Add RISC-V-Dependent node.
317 Include c-riscv.texi.
318 * doc/c-riscv.texi: Rename RISC-V Options to RISC-V-Opts.
319
320 2016-11-03 Graham Markall <graham.markall@embecosm.com>
321
322 * testsuite/gas/arc/nps400-6.s: Change ldbit tests so that limm
323 operands are out of the range of an s9, in order to fix the test.
324 * testsuite/gas/arc/nps400-6.d: Updated to match new expected output.
325
326 2016-11-03 Graham Markall <graham.markall@embecosm.com>
327
328 * testsuite/gas/arc/nps-400-9.d: Added.
329 * testsuite/gas/arc/nps-400-9.s: Added.
330
331 2016-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
332
333 * config/tc-arc.c (struct arc_insn): Change type of insn field.
334 (md_number_to_chars_midend): Support 6- and 8-byte values.
335 (emit_insn0): Update debug output.
336 (find_opcode_match): Likewise.
337 (build_fake_opcode_hash_entry): Delete.
338 (find_special_case_long_opcode): Delete.
339 (find_special_case): Remove long format special case handling.
340 (insert_operand): Change instruction type and update debug print
341 format.
342 (assemble_insn): Change instruction type, update debug print
343 formats, and remove unneeded assert.
344
345 2016-11-03 Graham Markall <graham.markall@embecosm.com>
346
347 * config/tc-arc.c (assemble_insn): Replace use of ARC_SHORT with
348 arc_opcode_len.
349
350 2016-11-03 Graham Markall <graham.markall@embecosm.com>
351
352 * config/tc-arc.c (struct arc_insn): Replace short_insn flag with
353 len field.
354 (apply_fixups): Update to use len field.
355 (emit_insn0): Simplify code, making use of len field.
356 (md_convert_frag): Update to use len field.
357 (assemble_insn): Update to use len field.
358
359 2016-11-03 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
360
361 * config/tc-aarch64.c (aarch64_cpus): Add falkor.
362 * config/tc-arm.c (arm_cpus): Likewise.
363 * doc/c-aarch64.texi: Likewise.
364 * doc/c-arm.texi: Likewise.
365
366 2016-11-03 H.J. Lu <hongjiu.lu@intel.com>
367
368 PR binutils/20754
369 * testsuite/gas/i386/opcode.s: Add tests for opcode 0x82.
370 * testsuite/gas/i386/opcode-intel.d: Updated.
371 * testsuite/gas/i386/opcode.d: Likewise.
372
373 2016-11-02 Jiong Wang <jiong.wang@arm.com>
374
375 * config/tc-arm.c (SBIT_SHIFT): New.
376 (T2_SBIT_SHIFT): Likewise.
377 (t32_insn_ok): Return TRUE for MOV in ARMv8-M Baseline.
378 (md_apply_fix): Try UINT16 encoding when ARM/Thumb modified immediate
379 encoding failed.
380 * testsuite/gas/arm/archv6t2-bad.s: New error case.
381 * testsuite/gas/arm/archv6t2-bad.l: New error match.
382 * testsuite/gas/arm/archv6t2.s: New testcase.
383 * testsuite/gas/arm/archv6t2.d: New expected result.
384 * testsuite/gas/arm/archv8m.s: New testcase.
385 * testsuite/gas/arm/archv8m-base.d: New expected result.
386 * testsuite/gas/arm/archv8m-main.d: Likewise.
387 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
388
389 2016-11-02 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
390
391 * config/tc-i386.c: (cpu_arch) Add .avx512_4vnniw.
392 (cpu_noarch): Add noavx512_4vnniw.
393 * doc/c-i386.texi: Document avx512_4vnniw, noavx512_4vnniw.
394 * testsuite/gas/i386/i386.exp: Run AVX512_4VNNIW tests.
395 * testsuite/gas/i386/avx512_4vnniwd_vl-intel.d: New test.
396 * testsuite/gas/i386/avx512_4vnniwd_vl.d: Ditto.
397 * testsuite/gas/i386/avx512_4vnniwd_vl.s: Ditto.
398 * testsuite/gas/i386/avx512_4vnniwd-intel.d: Ditto.
399 * testsuite/gas/i386/avx512_4vnniwd.d: Ditto.
400 * testsuite/gas/i386/avx512_4vnniwd.s: Ditto.
401 * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl-intel.d: Ditto.
402 * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.d: Ditto.
403 * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.s: Ditto.
404 * testsuite/gas/i386/x86-64-avx512_4vnniwd-intel.d: Ditto.
405 * testsuite/gas/i386/x86-64-avx512_4vnniwd.d: Ditto.
406 * testsuite/gas/i386/x86-64-avx512_4vnniwd.s: Ditto.
407
408 2016-11-02 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
409
410 * config/tc-i386.c (cpu_arch): Add .avx512_4fmaps.
411 (cpu_noarch): Add noavx512_4fmaps.
412 (process_operands): Handle implicit quad group.
413 * doc/c-i386.texi: Document avx512_4fmaps, noavx512_4fmaps.
414 * testsuite/gas/i386/i386.exp: Add AVX512_4FMAPS tests.
415 * testsuite/gas/i386/avx512_4fmaps_vl-intel.d: New test.
416 * testsuite/gas/i386/avx512_4fmaps_vl.d: Ditto.
417 * testsuite/gas/i386/avx512_4fmaps_vl.s: Ditto.
418 * testsuite/gas/i386/avx512_4fmaps-intel.d: Ditto.
419 * testsuite/gas/i386/avx512_4fmaps.d: Ditto.
420 * testsuite/gas/i386/avx512_4fmaps.s: Ditto.
421 * testsuite/gas/i386/avx512_4fmaps-warn.l: Ditto.
422 * testsuite/gas/i386/avx512_4fmaps-warn.s: Ditto.
423 * testsuite/gas/i386/avx512_4fmaps_vl-warn.l: Ditto.
424 * testsuite/gas/i386/avx512_4fmaps_vl-warn.s: Ditto.
425 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Ditto.
426 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d: Ditto.
427 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Ditto.
428 * testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d: Ditto.
429 * testsuite/gas/i386/x86-64-avx512_4fmaps.d: Ditto.
430 * testsuite/gas/i386/x86-64-avx512_4fmaps.s: Ditto.
431 * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.l: Ditto.
432 * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.s: Ditto.
433 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.l: Ditto.
434 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.s: Ditto.
435
436 2016-11-01 Palmer Dabbelt <palmer@dabbelt.com>
437 Andrew Waterman <andrew@sifive.com>
438
439 Add support for RISC-V architecture.
440 * Makefile.am: Add riscv files.
441 * Makefile.in: Regenerate.
442 * NEWS: Mention the support for this architecture.
443 * configure.in: Define a default architecture.
444 * configure: Regenerate.
445 * configure.tgt: Add entries for riscv.
446 * doc/as.texinfo: Likewise.
447 * testsuite/gas/all/gas.exp: Expect the redef tests to fail.
448 * testsuite/gas/elf/elf.exp: Expect the groupauto tests to fail.
449 * config/tc-riscv.c: New file.
450 * config/tc-riscv.h: New file.
451 * doc/c-riscv.texi: New file.
452 * testsuite/gas/riscv: New directory.
453 * testsuite/gas/riscv/riscv.exp: New file.
454 * testsuite/gas/riscv/t_insns.d: New file.
455 * testsuite/gas/riscv/t_insns.s: New file.
456
457 2016-10-27 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * config/tc-arc.c (arc_target): Delete.
460 (arc_target_name): Delete.
461 (arc_features): Delete.
462 (arc_mach_type): Delete.
463 (mach_type_specified_p): Delete.
464 (enum mach_selection_type): New enum.
465 (mach_selection_mode): New static global.
466 (selected_cpu): New static global.
467 (arc_eflag): Rename to ...
468 (arc_initial_eflag): ...this, and make const.
469 (arc_select_cpu): Update comment, new parameter, check how
470 previous machine type selection was made, and record this
471 selection. Use selected_cpu instead of old globals.
472 (arc_option): Remove use of arc_get_mach, instead use
473 arc_select_cpu to validate machine type selection. Use
474 selected_cpu over old globals.
475 (allocate_tok): Use selected_cpu over old globals.
476 (find_opcode_match): Likewise.
477 (assemble_tokens): Likewise.
478 (arc_cons_fix_new): Likewise.
479 (arc_extinsn): Likewise.
480 (arc_extcorereg): Likewise.
481 (md_begin): Update default machine type selection, use
482 selected_cpu over old globals.
483 (md_parse_option): Update machine type selection option handling,
484 use selected_cpu over old globals.
485 * testsuite/gas/arc/nps400-0.s: Add .cpu directive.
486
487 2016-10-26 Alan Modra <amodra@gmail.com>
488
489 Revert 2016-10-06 Alan Modra <amodra@gmail.com>
490 * config/rl78-parse.y: Do use old %name-prefix syntax.
491 * config/rx-parse.y: Likewise.
492
493 2016-10-21 H.J. Lu <hongjiu.lu@intel.com>
494
495 * config/tc-i386.c (cpu_arch): Remove .pcommit.
496 * doc/c-i386.texi: Likewise.
497 * testsuite/gas/i386/i386.exp: Remove pcommit tests.
498 * testsuite/gas/i386/pcommit-intel.d: Removed.
499 * testsuite/gas/i386/pcommit.d: Likewise.
500 * testsuite/gas/i386/pcommit.s: Likewise.
501 * testsuite/gas/i386/x86-64-pcommit-intel.d: Likewise.
502 * testsuite/gas/i386/x86-64-pcommit.d: Likewise.
503 * testsuite/gas/i386/x86-64-pcommit.s: Likewise.
504
505 2016-10-20 H.J. Lu <hongjiu.lu@intel.com>
506
507 PR binutis/20705
508 * testsuite/gas/i386/i386.exp: Run x86-64-opcode-bad.
509 * testsuite/gas/i386/x86-64-opcode-bad.d: New file.
510 * testsuite/gas/i386/x86-64-opcode-bad.s: Likewise.
511
512 2016-10-19 Renlin Li <renlin.li@arm.com>
513
514 * config/tc-arm.c (encode_arm_shift): Generate unpredictable warning
515 for register-shifted register instructions.
516 * testsuite/gas/arm/shift-bad-pc.d: New.
517 * testsuite/gas/arm/shift-bad-pc.l: New.
518 * testsuite/gas/arm/shift-bad-pc.s: New.
519
520 2016-10-17 Cupertino Miranda <cmiranda@synopsys.com>
521
522 * testsuite/arc/dis-inv.d: Fixed matching.
523
524 2016-10-17 Cupertino Miranda <cmiranda@synopsys.com>
525
526 * testsuite/arc/dis-inv.s: Test to validate patch.
527 * testsuite/arc/dis-inv.d: Likewise.
528
529 2016-10-14 Claudiu Zissulescu <claziss@synopsys.com>
530
531 * testsuite/gas/arc/shortlimm_a7.d: New file.
532 * testsuite/gas/arc/shortlimm_a7.s: Likewise.
533 * testsuite/gas/arc/shortlimm_hs.d: Likewise.
534 * testsuite/gas/arc/shortlimm_hs.s: Likewise.
535
536 2016-10-11 Nick Clifton <nickc@redhat.com>
537
538 * gas/arm/tls.d: Adjust output to match change in objdump.
539
540 2016-10-11 Jiong Wang <jiong.wang@arm.com>
541
542 PR target/20666
543 * testsuite/gas/aarch64/alias-2.d: Update expected results.
544
545 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
546
547 * testsuite/gas/cfi/cfi-common-1.d: Adjust regexps for mips64.
548 * testsuite/gas/cfi/cfi-common-2.d: Likewise.
549 * testsuite/gas/cfi/cfi-common-3.d: Likewise.
550 * testsuite/gas/cfi/cfi-common-4.d: Likewise.
551 * testsuite/gas/cfi/cfi-common-5.d: Likewise.
552 * testsuite/gas/cfi/cfi-common-7.d: Likewise.
553 * testsuite/gas/cfi/cfi-common-8.d: Likewise.
554 * testsuite/gas/cfi/cfi-common-9.d: Likewise.
555 * testsuite/gas/cfi/cfi-mips-1.d: Likewise.
556
557 2016-10-08 Alan Modra <amodra@gmail.com>
558
559 * Makefile.am (EXTRA_as_new_SOURCES): Add config/rl78-parse.y and
560 config/rx-parse.y. Move config/bfin-parse.y.
561 (bfin-parse.@OBJEXT@, rl78-parse.@OBJEXT@, rx-parse.@OBJEXT@): Delete.
562 ($(srcdir)/config/rl78-defs.h): New rule.
563 * Makefile.in: Regenerate.
564
565 2016-10-07 Jiong Wang <jiong.wang@arm.com>
566
567 PR target/20667
568 * testsuite/gas/aarch64/sys-rt-reg.s: Test source for instructions using
569 SYS_Rt reg.
570 * testsuite/gas/aarch64/sys-rt-reg.d: New testcase.
571
572 2016-10-06 Claudiu Zissulescu <claziss@synopsys.com>
573
574 * testsuite/gas/arc/leave_enter.d: New file.
575 * testsuite/gas/arc/leave_enter.s: Likewise.
576 * testsuite/gas/arc/regnames.d: Likewise.
577 * testsuite/gas/arc/regnames.s: Likewise.
578 * config/tc-arc.c (arc_parse_name): Don't match reg names against
579 confirmed symbol names.
580
581 2016-10-06 Alan Modra <amodra@gmail.com>
582
583 * app.c (do_scrub_chars): Move fall through comment.
584 * expr.c (operand): Likewise.
585
586 2016-10-06 Matthew Fortune <matthew.fortune@imgtec.com>
587
588 PR gas/20648
589 * dw2gencfi.c (dot_cfi_sections): Refine the check for
590 inconsistent .cfi_sections to only consider compact vs non
591 compact forms.
592 * testsuite/gas/cfi/cfi-common-9.d: New file.
593 * testsuite/gas/cfi/cfi-common-9.s: New file.
594 * testsuite/gas/cfi/cfi.exp: Run new test.
595
596 2016-10-06 Alan Modra <amodra@gmail.com>
597
598 * app.c: Add missing fall through comments.
599 * dw2gencfi.c: Likewise.
600 * expr.c: Likewise.
601 * config/tc-alpha.c: Likewise.
602 * config/tc-arc.c: Likewise.
603 * config/tc-arm.c: Likewise.
604 * config/tc-cr16.c: Likewise.
605 * config/tc-crx.c: Likewise.
606 * config/tc-dlx.c: Likewise.
607 * config/tc-h8300.c: Likewise.
608 * config/tc-hppa.c: Likewise.
609 * config/tc-i370.c: Likewise.
610 * config/tc-i386.c: Likewise.
611 * config/tc-i960.c: Likewise.
612 * config/tc-ia64.c: Likewise.
613 * config/tc-m68hc11.c: Likewise.
614 * config/tc-m68k.c: Likewise.
615 * config/tc-mep.c: Likewise.
616 * config/tc-metag.c: Likewise.
617 * config/tc-microblaze.c: Likewise.
618 * config/tc-mips.c: Likewise.
619 * config/tc-ns32k.c: Likewise.
620 * config/tc-rx.c: Likewise.
621 * config/tc-score.c: Likewise.
622 * config/tc-score7.c: Likewise.
623 * config/tc-sh.c: Likewise.
624 * config/tc-tic4x.c: Likewise.
625 * config/tc-vax.c: Likewise.
626 * config/tc-xstormy16.c: Likewise.
627 * config/tc-z80.c: Likewise.
628 * config/tc-z8k.c: Likewise.
629 * config/obj-elf.c: Likewise.
630 * config/tc-i386.c: Likewise.
631 * depend.c: Spell fall through comments consistently.
632 * config/tc-arm.c: Likewise.
633 * config/tc-d10v.c: Likewise.
634 * config/tc-i960.c: Likewise.
635 * config/tc-ia64.c: Likewise.
636 * config/tc-m68k.c: Likewise.
637 * config/tc-mcore.c: Likewise.
638 * config/tc-mep.c: Likewise.
639 * config/tc-ns32k.c: Likewise.
640 * config/tc-visium.c: Likewise.
641 * config/tc-xstormy16.c: Likewise.
642 * config/tc-z8k.c: Likewise.
643
644 2016-10-06 Alan Modra <amodra@gmail.com>
645
646 * as.h (as_assert): Add ATTRIBUTE_NORETURN.
647
648 2016-10-06 Alan Modra <amodra@gmail.com>
649
650 * config/tc-arc.c (find_opcode_match): Add missing break.
651 * config/tc-i960.c (get_cdisp): Likewise.
652 * config/tc-metag.c (parse_swap, md_apply_fix): Likewise.
653 * config/tc-mt.c (md_parse_option): Likewise.
654 * config/tc-nds32.c (nds32_apply_fix): Likewise.
655 * config/tc-hppa.c (pa_ip): Assert rather than testing last
656 condition of multiple if statements.
657 * config/tc-s390.c (s390_exp_compare): Return 0 on error.
658 * config/tc-tic4x.c (tic4x_operand_parse): Add as_bad and break
659 out of case rather than falling into next case. Formatting.
660
661 2016-10-06 Alan Modra <amodra@gmail.com>
662
663 * config/rl78-parse.y: Don't use deprecated %name-prefix.
664 * config/rx-parse.y: Likewise.
665
666 2016-09-29 Jiong Wang <jiong.wang@arm.com>
667
668 PR target/20553
669 * testsuite/gas/aarch64/advsimd-fp16.s (indexed_elem): New high index
670 testcases for H and S variants. New low index testcases for D variant.
671 * testsuite/gas/aarch64/advsimd-fp16.d: Update expected results.
672
673 2016-09-29 Alan Modra <amodra@gmail.com>
674
675 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_OPTIONAL32.
676 * testsuite/gas/ppc/power8.s: Provide tbegin. operand.
677 * testsuite/gas/ppc/power9.d: Update cmprb disassembly.
678
679 2016-09-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
680
681 * config/tc-xtensa.c (xg_reverse_shift_count): Pass cnt_arg instead of
682 cnt_argp to concat.
683
684 2016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
685
686 * Makefile.in: Regenerate.
687 * configure: Likewise.
688 * doc/Makefile.in: Likewise.
689
690 2016-09-26 Alan Modra <amodra@gmail.com>
691
692 * config/tc-ppc.c (ppc_elf_gnu_attribute): New function.
693 (md_pseudo_table <ELF>): Handle "gnu_attribute".
694
695 2016-09-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
696
697 * config/tc-arm.c (v7m_psrs): Remove BASEPRI_MASK MRS/MSR special
698 register and redundant basepri_max.
699
700 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
701
702 * config/tc-aarch64.c (print_operands): Print spaces between
703 operands.
704 * testsuite/gas/aarch64/ilp32-basic.d: Expect spaces after ","
705 in addresses.
706 * testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise.
707 * testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise.
708 * testsuite/gas/aarch64/ldst-reg-pair.d: Likewise.
709 * testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise.
710 * testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise.
711 * testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise.
712 * testsuite/gas/aarch64/reloc-insn.d: Likewise.
713 * testsuite/gas/aarch64/sve.d: Likewise.
714 * testsuite/gas/aarch64/symbol.d: Likewise.
715 * testsuite/gas/aarch64/system.d: Likewise.
716 * testsuite/gas/aarch64/tls-desc.d: Likewise.
717 * testsuite/gas/aarch64/sve-invalid.l: Expect spaces after ","
718 in suggested alternatives.
719 * testsuite/gas/aarch64/verbose-error.l: Likewise.
720
721 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
722
723 * config/tc-aarch64.c (output_operand_error_record): Use "must be"
724 rather than "should be" or "expected to be" in error messages.
725 (parse_operands): Likewise.
726 * testsuite/gas/aarch64/diagnostic.l: Likewise.
727 * testsuite/gas/aarch64/legacy_reg_names.l: Likewise.
728 * testsuite/gas/aarch64/sve-invalid.l: Likewise.
729 * testsuite/gas/aarch64/sve-reg-diagnostic.l: Likewise.
730
731 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
732
733 * config/tc-aarch64.c (opcode_lookup): Search for the end of
734 a condition name, rather than assuming that it will have exactly
735 2 characters.
736 (parse_operands): Likewise.
737 * testsuite/gas/aarch64/alias.d: Add new condition-code comments
738 to the expected output.
739 * testsuite/gas/aarch64/beq_1.d: Likewise.
740 * testsuite/gas/aarch64/float-fp16.d: Likewise.
741 * testsuite/gas/aarch64/int-insns.d: Likewise.
742 * testsuite/gas/aarch64/no-aliases.d: Likewise.
743 * testsuite/gas/aarch64/programmer-friendly.d: Likewise.
744 * testsuite/gas/aarch64/reloc-insn.d: Likewise.
745 * testsuite/gas/aarch64/b_c_1.d, testsuite/gas/aarch64/b_c_1.s:
746 New test.
747
748 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
749
750 * testsuite/gas/aarch64/diagnostic.s,
751 testsuite/gas/aarch64/diagnostic.l: Add tests for
752 invalid uses of MUL VL and MUL in base AArch64 instructions.
753 * testsuite/gas/aarch64/sve-add.s, testsuite/gas/aarch64/sve-add.d,
754 testsuite/gas/aarch64/sve-dup.s, testsuite/gas/aarch64/sve-dup.d,
755 testsuite/gas/aarch64/sve-invalid.s,
756 testsuite/gas/aarch64/sve-invalid.d,
757 testsuite/gas/aarch64/sve-invalid.l,
758 testsuite/gas/aarch64/sve-reg-diagnostic.s,
759 testsuite/gas/aarch64/sve-reg-diagnostic.d,
760 testsuite/gas/aarch64/sve-reg-diagnostic.l,
761 testsuite/gas/aarch64/sve.s, testsuite/gas/aarch64/sve.d: New tests.
762
763 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
764
765 * doc/c-aarch64.texi: Document the "sve" feature.
766 * config/tc-aarch64.c (REG_TYPE_R_Z_BHSDQ_VZP): New register type.
767 (get_reg_expected_msg): Handle it.
768 (parse_operands): When parsing operands of an SVE instruction,
769 disallow immediates that match REG_TYPE_R_Z_BHSDQ_VZP.
770 (aarch64_features): Add an entry for SVE.
771
772 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
773
774 * config/tc-aarch64.c (parse_operands): Handle the new SVE core
775 and FP register operands.
776
777 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
778
779 * config/tc-aarch64.c (double_precision_operand_p): New function.
780 (parse_operands): Use it to calculate the dp_p input to
781 parse_aarch64_imm_float. Handle the new SVE FP immediate operands.
782
783 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
784
785 * config/tc-aarch64.c (parse_operands): Handle the new SVE integer
786 immediate operands.
787
788 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
789
790 * config/tc-aarch64.c (SHIFTED_NONE, SHIFTED_MUL_VL): New
791 parse_shift_modes.
792 (parse_shift): Handle SHIFTED_MUL_VL.
793 (parse_address_main): Add an imm_shift_mode parameter.
794 (parse_address, parse_sve_address): Update accordingly.
795 (parse_operands): Handle MUL VL addressing modes.
796
797 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
798
799 * config/tc-aarch64.c (REG_TYPE_SVE_BASE, REG_TYPE_SVE_OFFSET): New
800 register types.
801 (get_reg_expected_msg): Handle them.
802 (aarch64_addr_reg_parse): New function, split out from
803 aarch64_reg_parse_32_64. Handle Z registers too.
804 (aarch64_reg_parse_32_64): Call it.
805 (parse_address_main): Add base_qualifier, offset_qualifier,
806 base_type and offset_type parameters. Handle SVE base and offset
807 registers.
808 (parse_address): Update call to parse_address_main.
809 (parse_sve_address): New function.
810 (parse_operands): Parse the new SVE address operands.
811
812 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
813
814 * config/tc-aarch64.c (SHIFTED_MUL): New parse_shift_mode.
815 (parse_shift): Handle it. Reject AARCH64_MOD_MUL for all other
816 shift modes. Skip range tests for AARCH64_MOD_MUL.
817 (process_omitted_operand): Handle AARCH64_OPND_SVE_PATTERN_SCALED.
818 (parse_operands): Likewise.
819
820 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
821
822 * config/tc-aarch64.c (parse_enum_string): New function.
823 (po_enum_or_fail): New macro.
824 (parse_operands): Handle AARCH64_OPND_SVE_PATTERN and
825 AARCH64_OPND_SVE_PRFOP.
826
827 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
828
829 * config/tc-aarch64.c (vector_el_type): Add NT_zero and NT_merge.
830 (parse_vector_type_for_operand): Assert that the skipped character
831 is a '.'.
832 (parse_predication_for_operand): New function.
833 (parse_typed_reg): Parse /z and /m suffixes for predicate registers.
834 (vectype_to_qualifier): Handle NT_zero and NT_merge.
835
836 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
837
838 * config/tc-aarch64.c (NTA_HASVARWIDTH): New macro.
839 (AARCH64_REG_TYPES): Add ZN and PN.
840 (get_reg_expected_msg): Handle them.
841 (parse_vector_type_for_operand): Add a reg_type parameter.
842 Skip the width for Zn and Pn registers.
843 (parse_typed_reg): Extend vector handling to Zn and Pn. Update the
844 call to parse_vector_type_for_operand. Set HASVARTYPE for Zn and Pn,
845 expecting the width to be 0.
846 (parse_vector_reg_list): Restrict error about [BHSD]nn operands to
847 REG_TYPE_VN.
848 (vectype_to_qualifier): Use S_[BHSD] qualifiers for NTA_HASVARWIDTH.
849 (parse_operands): Handle the new Zn and Pn operands.
850 (REGSET16): New macro, split out from...
851 (REGSET31): ...here.
852 (reg_names): Add Zn and Pn entries.
853
854 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
855
856 * config/tc-aarch64.c (output_operand_error_record): Handle
857 AARCH64_OPDE_UNTIED_OPERAND.
858
859 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
860
861 * config/tc-aarch64.c (find_best_match): Simplify, allowing an
862 instruction with all-NIL qualifiers to fail to match.
863
864 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
865
866 * config/tc-aarch64.c (parse_address_main): Remove reloc and
867 accept_reg_post_index parameters. Parse relocations and register
868 post indexes unconditionally.
869 (parse_address): Remove accept_reg_post_index parameter.
870 Update call to parse_address_main.
871 (parse_address_reloc): Delete.
872 (parse_operands): Call parse_address instead of parse_address_main.
873 Update existing callers of parse_address and make them check
874 inst.reloc.type where appropriate.
875 * testsuite/gas/aarch64/diagnostic.s: Add tests for relocations
876 in ADDR_SIMPLE, SIMD_ADDR_SIMPLE, ADDR_SIMM7 and ADDR_SIMM9 addresses.
877 Also test for invalid uses of post-index register addressing.
878 * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
879
880 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
881
882 * config/tc-aarch64.c (REG_TYPE_R_Z, REG_TYPE_R_SP): New register
883 types.
884 (get_reg_expected_msg): Handle them and REG_TYPE_R64_SP.
885 (aarch64_check_reg_type): Simplify.
886 (aarch64_reg_parse_32_64): Return the reg_entry instead of the
887 register number. Return the type as a qualifier rather than an
888 "isreg32" boolean. Remove reject_sp, reject_rz and isregzero
889 parameters.
890 (parse_shifter_operand): Update call to aarch64_parse_32_64_reg.
891 Use get_reg_expected_msg.
892 (parse_address_main): Likewise. Use aarch64_check_reg_type.
893 (po_int_reg_or_fail): Replace reject_sp and reject_rz parameters
894 with a reg_type parameter. Update call to aarch64_parse_32_64_reg.
895 Use aarch64_check_reg_type to test the result.
896 (parse_operands): Update after the above changes. Parse ADDR_SIMPLE
897 addresses normally before enforcing the syntax restrictions.
898 * testsuite/gas/aarch64/diagnostic.s: Add tests for a post-index
899 zero register and for a stack pointer index.
900 * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
901 Also update existing diagnostic messages after the above changes.
902 * testsuite/gas/aarch64/illegal-lse.l: Update the error message
903 for 32-bit register bases.
904
905 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
906
907 * config/tc-aarch64.c (parse_aarch64_imm_float): Remove range check.
908 (parse_operands): Check the range of 8-bit FP immediates here instead.
909
910 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
911
912 * config/tc-aarch64.c (parse_aarch64_imm_float): Report a specific
913 low-severity error for registers.
914 (parse_operands): Report an invalid floating point constant for
915 if parsing an FPIMM8 fails, and if no better error has been
916 recorded.
917 * testsuite/gas/aarch64/diagnostic.s,
918 testsuite/gas/aarch64/diagnostic.l: Add tests for integer operands
919 to FMOV.
920
921 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
922
923 * config/tc-aarch64.c (aarch64_double_precision_fmovable): Rename
924 to...
925 (can_convert_double_to_float): ...this. Accept any double-precision
926 value that converts to single precision without loss of precision.
927 (parse_aarch64_imm_float): Update accordingly.
928
929 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
930
931 * config/tc-aarch64.c (parse_immediate_expression): Add a
932 reg_type parameter.
933 (parse_constant_immediate): Likewise, and update calls.
934 (parse_aarch64_imm_float): Likewise.
935 (parse_big_immediate): Likewise.
936 (po_imm_nc_or_fail): Update accordingly, passing down a new
937 imm_reg_type variable.
938 (po_imm_of_fail): Likewise.
939 (parse_operands): Likewise.
940
941 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
942
943 * config/tc-aarch64.c (parse_neon_reg_list): Rename to...
944 (parse_vector_reg_list): ...this and take a register type
945 as input.
946 (parse_operands): Update accordingly.
947
948 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
949
950 * config/tc-aarch64.c (parse_neon_type_for_operand): Rename to...
951 (parse_vector_type_for_operand): ...this.
952 (parse_typed_reg): Update accordingly.
953
954 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
955
956 * config/tc-aarch64.c (neon_type_el): Rename to...
957 (vector_type_el): ...this.
958 (parse_neon_type_for_operand): Update accordingly.
959 (parse_typed_reg): Likewise.
960 (aarch64_reg_parse): Likewise.
961 (vectype_to_qualifier): Likewise.
962 (parse_operands): Likewise.
963 (eq_neon_type_el): Likewise. Rename to...
964 (eq_vector_type_el): ...this.
965 (parse_neon_reg_list): Update accordingly.
966
967 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
968
969 * config/tc-aarch64.c (neon_el_type: Rename to...
970 (vector_el_type): ...this.
971 (neon_type_el): Update accordingly.
972 (parse_neon_type_for_operand): Likewise.
973 (vectype_to_qualifier): Likewise.
974
975 2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
976
977 * config/tc-aarch64.c (parse_neon_operand_type): Delete.
978 (parse_typed_reg): Call parse_neon_type_for_operand directly.
979
980 2016-09-15 Claudiu Zissulescu <claziss@synopsys.com>
981
982 * testsuite/gas/arc/textinsnxop.d: New file.
983 * testsuite/gas/arc/textinsnxop.s: Likewise.
984
985 2016-09-15 Jose E. Marchesi <jose.marchesi@oracle.com>
986
987 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
988 dcti-couples-v9 only in ELF targets to avoid spurious failures in
989 sparc-aout and sparc-coff targets.
990
991 2016-09-14 Peter Bergner <bergner@vnet.ibm.com>
992
993 * testsuite/gas/ppc/power9.d <slbiag, cpabort> New tests.
994 <addex., brd, brh, brw, lwzmx, nandxor, rldixor, setbool,
995 xor3, cp_abort, copy_first, paste, paste_last, sync>: Remove tests.
996 <copy, paste.>: Update tests.
997 * testsuite/gas/ppc/power9.s: Likewise.
998
999 2016-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1000
1001 * config/tc-sparc.c (sparc_ip): Print the instruction arguments
1002 in "architecture mismatch" error messages.
1003
1004 2016-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1005
1006 * config/tc-sparc.c (md_assemble): Detect and warning on
1007 unpredictable DCTI couples in certain arches.
1008 (dcti_couples_detect): New global.
1009 (md_longopts): Add command line option -dcti-couples-detect.
1010 (md_show_usage): Document -dcti-couples-detect.
1011 (md_parse_option): Handle OPTION_DCTI_COUPLES_DETECT.
1012 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
1013 dcti-couples-v8, dcti-couples-v9 and dcti-couples-v9c tests.
1014 * testsuite/gas/sparc/dcti-couples.s: New file.
1015 * testsuite/gas/sparc/dcti-couples-v9c.d: Likewise.
1016 * testsuite/gas/sparc/dcti-couples-v8.d: Likewise.
1017 * testsuite/gas/sparc/dcti-couples-v9.d: Likewise.
1018 * testsuite/gas/sparc/dcti-couples-v9c.l: Likewise.
1019 * testsuite/gas/sparc/dcti-couples-v8.l: Likewise.
1020 * doc/as.texinfo (Overview): Document --dcti-couples-detect.
1021 * doc/c-sparc.texi (Sparc-Opts): Likewise.
1022
1023 2016-09-14 Claudiu Zissulescu <claziss@synopsys.com>
1024
1025 * testsuite/gas/arc/tls-relocs2.d: New file.
1026 * testsuite/gas/arc/tls-relocs2.s: Likewise.
1027 * config/tc-arc.c (tokenize_arguments): Accept offsets when base
1028 is used.
1029
1030 2016-09-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1031
1032 * config/tc-s390.c (s390_parse_cpu): Support alternate arch
1033 strings.
1034 * doc/as.texinfo: Document new arch strings.
1035 * doc/c-s390.texi: Likewise.
1036
1037 2016-09-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1038
1039 * config/tc-s390.c: Set all facitily bits by default
1040
1041 2016-09-12 Patrick Steuer <steuer@linux.vnet.ibm.com>
1042
1043 * testsuite/gas/s390/zarch-z196.d: Adjust testcase.
1044
1045 2016-09-08 H.J. Lu <hongjiu.lu@intel.com>
1046
1047 * config/tc-i386.c (i386_target_format): Allow PROCESSOR_IAMCU
1048 for Intel MCU.
1049
1050 2016-09-07 H.J. Lu <hongjiu.lu@intel.com>
1051
1052 * config/tc-i386.c (valid_iamcu_cpu_flags): Removed.
1053 (set_cpu_arch): Updated.
1054 (md_parse_option): Likewise.
1055 * testsuite/gas/i386/i386.exp: Run iamcu-4 and iamcu-5. Remove
1056 iamcu-inval-2 and iamcu-inval-3.
1057 * testsuite/gas/i386/iamcu-4.d: New file.
1058 * testsuite/gas/i386/iamcu-4.s: Likewise.
1059 * testsuite/gas/i386/iamcu-5.d: Likewise.
1060 * testsuite/gas/i386/iamcu-5.s: Likewise.
1061 * testsuite/gas/i386/iamcu-inval-2.l: Removed.
1062 * testsuite/gas/i386/iamcu-inval-2.s: Likewise.
1063 * testsuite/gas/i386/iamcu-inval-3.l: Likewise.
1064 * testsuite/gas/i386/iamcu-inval-3.s: Likewise.
1065
1066 2016-09-07 Richard Earnshaw <rearnsha@arm.com>
1067
1068 * config/tc-arm.c ((arm_cpus): Use ARM_ARCH_V8A_CRC for all
1069 ARMv8-A CPUs except xgene1.
1070
1071 2016-08-31 Alan Modra <amodra@gmail.com>
1072
1073 * config/tc-ppc.c (md_assemble): Set sh_flags for VLE. Test
1074 ppc_cpu rather than calling ppc_mach to determine VLE mode.
1075 (ppc_frag_check, ppc_handle_align): Likewise use ppc_cpu.
1076
1077 2016-08-26 Jose E. Marchesi <jose.marchesi@oracle.com>
1078
1079 * testsuite/gas/sparc/crypto.d: Rename invalid opcode camellia_fi
1080 to camellia_fl.
1081 * testsuite/gas/sparc/crypto.s: Likewise.
1082
1083 2016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1084
1085 * config/tc-arm.c (v7m_psrs): Add MSPLIM, PSPLIM, MSPLIM_NS,
1086 PSPLIM_NS, PRIMASK_NS, BASEPRI_NS, FAULTMASK_NS, CONTROL_NS, SP_NS and
1087 their lowecase counterpart special registers. Write register
1088 identifier in hex.
1089 * testsuite/gas/arm/archv8m-cmse-msr.s: Reorganize tests per
1090 operation, special register and then case. Use different register for
1091 each operation. Add tests for new special registers.
1092 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Adapt expected result
1093 accordingly.
1094 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1095 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1096
1097 2016-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1098
1099 * config/tc-arm.c (v7m_psrs): Remove msp_s, MSP_S, psp_s and PSP_S
1100 special registers.
1101 * testsuite/gas/arm/archv8m-cmse-msr.s: Remove test for above special
1102 registers.
1103 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
1104 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1105 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1106
1107 2016-08-24 H.J. Lu <hongjiu.lu@intel.com>
1108
1109 * config/tc-i386.c (cpu_arch): Add .ptwrite.
1110 * doc/c-i386.texi: Document ptwrite and .ptwrite.
1111 * testsuite/gas/i386/i386.exp: Run ptwrite, ptwrite-intel,
1112 x86-64-ptwrite and x86-64-ptwrite-intel.
1113 * testsuite/gas/i386/ptwrite-intel.d: New file.
1114 * testsuite/gas/i386/ptwrite.d: Likewise.
1115 * testsuite/gas/i386/ptwrite.s: Likewise.
1116 * testsuite/gas/i386/x86-64-ptwrite-intel.d: Likewise.
1117 * testsuite/gas/i386/x86-64-ptwrite.d: Likewise.
1118 * testsuite/gas/i386/x86-64-ptwrite.s: Likewise.
1119
1120 2016-08-19 Tamar Christina <tamar.christina@arm.com>
1121
1122 * config/tc-arm.c (do_co_reg2c): Added constraint.
1123 * testsuite/gas/arm/dest-unpredictable.s: New.
1124 * testsuite/gas/arm/dest-unpredictable.l: New.
1125 * testsuite/gas/arm/dest-unpredictable.d: New.
1126
1127 2016-08-19 Nick Clifton <nickc@redhat.com>
1128
1129 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Adjust expected
1130 ordering of sections.
1131 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1132 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
1133 * testsuite/gas/ia64/alias.d: Likewise.
1134 * testsuite/gas/ia64/group-1.d: Likewise.
1135 * testsuite/gas/ia64/group-2.d: Likewise.
1136 * testsuite/gas/ia64/secname-ilp32.d: Likewise.
1137 * testsuite/gas/ia64/secname.d: Likewise.
1138 * testsuite/gas/ia64/unwind-ilp32.d: Likewise.
1139 * testsuite/gas/ia64/unwind.d: Likewise.
1140 * testsuite/gas/ia64/xdata-ilp32.d: Likewise.
1141 * testsuite/gas/ia64/xdata.d: Likewise.
1142 * testsuite/gas/mmix/bspec-1.d: Likewise.
1143 * testsuite/gas/mmix/bspec-2.d: Likewise.
1144 * testsuite/gas/mmix/byte-1.d: Likewise.
1145 * testsuite/gas/mmix/loc-1.d: Likewise.
1146 * testsuite/gas/mmix/loc-2.d: Likewise.
1147 * testsuite/gas/mmix/loc-3.d: Likewise.
1148 * testsuite/gas/mmix/loc-4.d: Likewise.
1149 * testsuite/gas/mmix/loc-5.d: Likewise.
1150 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1151
1152 2016-08-11 Richard Sandiford <richard.sandiford@arm.com>
1153
1154 * config/tc-aarch64.c (parse_aarch64_imm_float): Reject -0.0.
1155 * testsuite/gas/aarch64/illegal.s, testsuite/gas/aarch64/illegal.l:
1156 Add tests for -0.0. Add an end-of-file comment.
1157
1158 2016-08-05 Nick Clifton <nickc@redhat.com>
1159
1160 PR gas/20429
1161 * config/tc-arm.c (do_vfp_nsyn_push): Check that no more than 16
1162 registers are pushed.
1163 (do_vfp_nsyn_pop): Check that no more than 16 registers are
1164 popped.
1165 * testsuite/gas/arm/pr20429.s: New test.
1166 * testsuite/gas/arm/pr20429.d: New test driver.
1167 * testsuite/gas/arm/pr20429.1: Expected error output.
1168
1169 PR gas/20364
1170 * config/tc-aarch64.c (s_ltorg): Change the mapping state after
1171 aligning the frag.
1172 (aarch64_init): Treat rs_align frags in code sections as
1173 containing code, not data.
1174 * testsuite/gas/aarch64/pr20364.s: New test.
1175 * testsuite/gas/aarch64/pr20364.d: New test driver.
1176
1177 2016-08-04 Stefan Trleman <stefan.teleman@oracle.com>
1178
1179 PR gas/20427
1180 * config/tc-sparc.c (cons_fix_new_sparc): Prevent the generation
1181 of 64-bit relocation types when assembling for a 32-bit Solaris
1182 target.
1183
1184 2016-07-27 Jose E. Marchesi <jose.marchesi@oracle.com>
1185
1186 * testsuite/gas/sparc/sparc.exp: Use is_elf_format to discriminate
1187 ELF targets.
1188 Run natural, natural-32, pr4587, ticc-imm-reg, v8-movwr-imm,
1189 pause, save-args, cbcond, cfr, crypto edge, flush, hpcvis3, ima,
1190 ld_st_fsr, ldtw_sttw, ldd_std, ldx_stx, ldx_efsr, mwait, mcdper,
1191 sparc5vis4, xcrypto, v9branch1 and imm-plus-rreg only in ELF
1192 targets.
1193 (sparc_elf_setup): Delete.
1194 * testsuite/gas/sparc/save-args.d: Fix a copy-paste typo in the
1195 test's #name entry.
1196
1197 2016-07-27 Maciej W. Rozycki <macro@imgtec.com>
1198
1199 * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `nods' flag.
1200 (RELAX_MICROMIPS_RELAX32, RELAX_MICROMIPS_TOOFAR16)
1201 (RELAX_MICROMIPS_MARK_TOOFAR16, RELAX_MICROMIPS_CLEAR_TOOFAR16)
1202 (RELAX_MICROMIPS_TOOFAR32, RELAX_MICROMIPS_MARK_TOOFAR32)
1203 (RELAX_MICROMIPS_CLEAR_TOOFAR32): Shift bits.
1204 (get_append_method): Also return APPEND_ADD_COMPACT for
1205 microMIPS instructions.
1206 (find_altered_mips16_opcode): Exclude macros from matching.
1207 Factor code out...
1208 (find_altered_opcode): ... to this new function.
1209 (find_altered_micromips_opcode): New function.
1210 (frag_branch_delay_slot_size): Likewise.
1211 (append_insn): Handle microMIPS branch/jump compaction.
1212 (macro_start): Likewise.
1213 (relaxed_micromips_32bit_branch_length): Likewise.
1214 (md_convert_frag): Likewise.
1215 * testsuite/gas/mips/micromips.s: Add conditional explicit NOPs
1216 for delay slot filling.
1217 * testsuite/gas/mips/micromips-b16.s: Add explicit NOPs for
1218 delay slot filling.
1219 * testsuite/gas/mips/micromips-size-1.s: Likewise.
1220 * testsuite/gas/mips/micromips.l: Adjust line numbers.
1221 * testsuite/gas/mips/micromips-warn.l: Likewise.
1222 * testsuite/gas/mips/micromips-size-1.l: Likewise.
1223 * testsuite/gas/mips/micromips.d: Adjust padding.
1224 * testsuite/gas/mips/micromips-trap.d: Likewise.
1225 * testsuite/gas/mips/micromips-insn32.d: Likewise.
1226 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1227 * testsuite/gas/mips/micromips@beq.d: Update patterns for
1228 branch/jump compaction.
1229 * testsuite/gas/mips/micromips@bge.d: Likewise.
1230 * testsuite/gas/mips/micromips@bgeu.d: Likewise.
1231 * testsuite/gas/mips/micromips@blt.d: Likewise.
1232 * testsuite/gas/mips/micromips@bltu.d: Likewise.
1233 * testsuite/gas/mips/micromips@branch-misc-4.d: Likewise.
1234 * testsuite/gas/mips/micromips@branch-misc-4-64.d: Likewise.
1235 * testsuite/gas/mips/micromips@branch-misc-5.d: Likewise.
1236 * testsuite/gas/mips/micromips@branch-misc-5pic.d: Likewise.
1237 * testsuite/gas/mips/micromips@branch-misc-5-64.d: Likewise.
1238 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1239 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
1240 * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d:
1241 Likewise.
1242 * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d:
1243 Likewise.
1244 * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
1245 * testsuite/gas/mips/micromips@loc-swap-dis.d: Likewise.
1246 * testsuite/gas/mips/micromips@relax.d: Likewise.
1247 * testsuite/gas/mips/micromips@relax-at.d: Likewise.
1248 * testsuite/gas/mips/micromips@relax-swap3.d: Likewise.
1249 * testsuite/gas/mips/branch-extern-2.d: Likewise.
1250 * testsuite/gas/mips/branch-extern-4.d: Likewise.
1251 * testsuite/gas/mips/branch-section-2.d: Likewise.
1252 * testsuite/gas/mips/branch-section-4.d: Likewise.
1253 * testsuite/gas/mips/branch-weak-2.d: Likewise.
1254 * testsuite/gas/mips/branch-weak-5.d: Likewise.
1255 * testsuite/gas/mips/micromips-branch-absolute.d: Likewise.
1256 * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
1257 * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
1258 * testsuite/gas/mips/micromips-branch-absolute-addend.d:
1259 Likewise.
1260 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
1261 Likewise.
1262 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
1263 Likewise.
1264 * testsuite/gas/mips/micromips-compact.d: New test.
1265 * testsuite/gas/mips/mips.exp: Run the new test.
1266
1267 2016-07-27 Graham Markall <graham.markall@embecosm.com>
1268
1269 * config/tc-arc.c: Add new global arc_addrtype_hash.
1270 Define O_colon and O_addrtype.
1271 (debug_exp): Add O_colon and O_addrtype.
1272 (tokenize_arguments): Handle colon and address type
1273 tokens.
1274 (declare_addrtype): New function.
1275 (md_begin): Initialise arc_addrtype_hash.
1276 (arc_parse_name): Add lookup of address types.
1277 (assemble_insn): Handle colons and address types by
1278 ignoring them.
1279 * testsuite/gas/arc/nps400-8.s: New file.
1280 * testsuite/gas/arc/nps400-8.d: New file.
1281 * testsuite/gas/arc/nps400-8.s: Add PMU instruction tests.
1282 * testsuite/gas/arc/nps400-8.d: Add expected PMU
1283 instruction output.
1284
1285 2016-07-26 Maciej W. Rozycki <macro@imgtec.com>
1286
1287 * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `insn32' flag.
1288 (RELAX_MICROMIPS_INSN32): New macro.
1289 (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
1290 (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_RELAX32)
1291 (RELAX_MICROMIPS_TOOFAR16, RELAX_MICROMIPS_MARK_TOOFAR16)
1292 (RELAX_MICROMIPS_CLEAR_TOOFAR16, RELAX_MICROMIPS_TOOFAR32)
1293 (RELAX_MICROMIPS_MARK_TOOFAR32, RELAX_MICROMIPS_CLEAR_TOOFAR32):
1294 Shift bits.
1295 (append_insn): Record `mips_opts.insn32' with relaxed microMIPS
1296 branches.
1297 (relaxed_micromips_32bit_branch_length): Handle the `insn32'
1298 mode.
1299 (md_convert_frag): Likewise.
1300 * testsuite/gas/mips/micromips-branch-relax.s: Add `insn32'
1301 conditionals.
1302 * testsuite/gas/mips/micromips-branch-relax.l: Update line
1303 numbers accordingly.
1304 * testsuite/gas/mips/micromips-branch-relax-pic.l: Likewise.
1305 * testsuite/gas/mips/micromips-branch-relax-insn32.d: New test.
1306 * testsuite/gas/mips/micromips-branch-relax-insn32-pic.d: New
1307 test.
1308 * testsuite/gas/mips/micromips-branch-relax-insn32.l: New
1309 stderr output.
1310 * testsuite/gas/mips/micromips-branch-relax-insn32-pic.l: New
1311 stderr output.
1312 * testsuite/gas/mips/mips.exp: Run the new tests.
1313
1314 2016-07-21 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 * configure: Regenerated.
1317
1318 2016-07-20 Claudiu Zissulescu <claziss@synopsys.com>
1319
1320 * testsuite/gas/arc/dsp.d: New file.
1321 * testsuite/gas/arc/dsp.s: Likewise.
1322 * testsuite/gas/arc/fpu.d: Likewise.
1323 * testsuite/gas/arc/fpu.s: Likewise.
1324 * testsuite/gas/arc/ext2op.d: Add specific disassembler option.
1325 * testsuite/gas/arc/ext3op.d: Likewise.
1326 * testsuite/gas/arc/tdpfp.d: Likewise.
1327 * testsuite/gas/arc/tfpuda.d: Likewise.
1328
1329 2016-07-20 Maciej W. Rozycki <macro@imgtec.com>
1330
1331 * config/tc-mips.c (mips_force_relocation): Remove
1332 R_MIPS_PC26_S2 and R_MIPS_PC21_S2.
1333
1334 2016-07-19 Maciej W. Rozycki <macro@imgtec.com>
1335
1336 * config/tc-mips.c (mips_force_relocation, mips_fix_adjustable):
1337 Adjust comments for BAL to JALX linker conversion.
1338 (fix_bad_cross_mode_branch_p): Accept cross-mode BAL.
1339 * testsuite/gas/mips/unaligned-branch-1.l: Update error messages
1340 expected.
1341 * testsuite/gas/mips/unaligned-branch-micromips-1.l: Likewise.
1342 * testsuite/gas/mips/branch-local-4.d: New test.
1343 * testsuite/gas/mips/branch-local-n32-4.d: New test.
1344 * testsuite/gas/mips/branch-local-n64-4.d: New test.
1345 * testsuite/gas/mips/branch-addend.d: New test.
1346 * testsuite/gas/mips/branch-addend-n32.d: New test.
1347 * testsuite/gas/mips/branch-addend-n64.d: New test.
1348 * testsuite/gas/mips/branch-local-4.s: New test source.
1349 * testsuite/gas/mips/branch-addend.s: New test source.
1350 * testsuite/gas/mips/mips.exp: Run the new tests.
1351
1352 2016-07-19 Maciej W. Rozycki <macro@imgtec.com>
1353
1354 * config/tc-mips.c (mips_force_relocation): Also retain branch
1355 relocations against MIPS16 and microMIPS symbols.
1356 (fix_bad_cross_mode_jump_p): New function.
1357 (fix_bad_same_mode_jalx_p): Likewise.
1358 (fix_bad_misaligned_jump_p): Likewise.
1359 (fix_bad_cross_mode_branch_p): Likewise.
1360 (fix_bad_misaligned_branch_p): Likewise.
1361 (fix_validate_branch): Likewise.
1362 (md_apply_fix) <BFD_RELOC_MIPS_JMP, BFD_RELOC_MIPS16_JMP>
1363 <BFD_RELOC_MICROMIPS_JMP>: Separate from BFD_RELOC_MIPS_SHIFT5,
1364 etc. Verify the ISA mode and alignment of the jump target.
1365 <BFD_RELOC_MIPS_21_PCREL_S2>: Replace the inline alignment check
1366 with a call to `fix_validate_branch'.
1367 <BFD_RELOC_MIPS_26_PCREL_S2>: Likewise.
1368 <BFD_RELOC_16_PCREL_S2>: Likewise.
1369 <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
1370 <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Retain the original addend.
1371 Verify the ISA mode and alignment of the branch target.
1372 (md_convert_frag): Verify the ISA mode and alignment of resolved
1373 MIPS16 branch targets.
1374 * testsuite/gas/mips/branch-misc-1.s: Annotate non-instruction
1375 branch targets with `.insn'.
1376 * testsuite/gas/mips/branch-misc-5.s: Likewise.
1377 * testsuite/gas/mips/micromips@branch-misc-5-64.d: Update
1378 accordingly.
1379 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1380 * testsuite/gas/mips/micromips-branch-relax.s: Annotate
1381 non-instruction branch target with `.insn'.
1382 * testsuite/gas/mips/micromips.s: Replace microMIPS JALX targets
1383 with external symbols.
1384 * testsuite/gas/mips/micromips-insn32.d: Update accordingly.
1385 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1386 * testsuite/gas/mips/micromips-trap.d: Likewise.
1387 * testsuite/gas/mips/micromips.d: Likewise.
1388 * testsuite/gas/mips/mips16.s: Annotate non-instruction branch
1389 targets with `.insn'.
1390 * testsuite/gas/mips/mips16.d: Update accordingly.
1391 * testsuite/gas/mips/mips16-64.d: Likewise.
1392 * testsuite/gas/mips/mips16-dwarf2.s: Annotate non-instruction
1393 branch target with `.insn'.
1394 * testsuite/gas/mips/relax-swap3.s: Likewise.
1395 * testsuite/gas/mips/branch-local-2.l: New list test.
1396 * testsuite/gas/mips/branch-local-3.l: New list test.
1397 * testsuite/gas/mips/branch-local-n32-2.l: New list test.
1398 * testsuite/gas/mips/branch-local-n32-3.l: New list test.
1399 * testsuite/gas/mips/branch-local-n64-2.l: New list test.
1400 * testsuite/gas/mips/branch-local-n64-3.l: New list test.
1401 * testsuite/gas/mips/unaligned-jump-1.l: New list test.
1402 * testsuite/gas/mips/unaligned-jump-2.l: New list test.
1403 * testsuite/gas/mips/unaligned-jump-3.d: New test.
1404 * testsuite/gas/mips/unaligned-jump-mips16-1.l: New list test.
1405 * testsuite/gas/mips/unaligned-jump-mips16-2.l: New list test.
1406 * testsuite/gas/mips/unaligned-jump-mips16-3.d: New test.
1407 * testsuite/gas/mips/unaligned-jump-micromips-1.l: New list
1408 test.
1409 * testsuite/gas/mips/unaligned-jump-micromips-2.l: New list
1410 test.
1411 * testsuite/gas/mips/unaligned-jump-micromips-3.d: New test.
1412 * testsuite/gas/mips/unaligned-branch-1.l: New list test.
1413 * testsuite/gas/mips/unaligned-branch-2.l: New list test.
1414 * testsuite/gas/mips/unaligned-branch-3.d: New test.
1415 * testsuite/gas/mips/unaligned-branch-r6-1.l: New list test.
1416 * testsuite/gas/mips/unaligned-branch-r6-2.l: New list test.
1417 * testsuite/gas/mips/unaligned-branch-r6-3.l: New list test.
1418 * testsuite/gas/mips/unaligned-branch-r6-4.l: New list test.
1419 * testsuite/gas/mips/unaligned-branch-r6-5.d: New test.
1420 * testsuite/gas/mips/unaligned-branch-r6-6.d: New test.
1421 * testsuite/gas/mips/unaligned-branch-mips16-1.l: New list test.
1422 * testsuite/gas/mips/unaligned-branch-mips16-2.l: New list test.
1423 * testsuite/gas/mips/unaligned-branch-mips16-3.d: New test.
1424 * testsuite/gas/mips/unaligned-branch-micromips-1.l: New list
1425 test.
1426 * testsuite/gas/mips/unaligned-branch-micromips-2.l: New list
1427 test.
1428 * testsuite/gas/mips/unaligned-branch-micromips-3.d: New test.
1429 * testsuite/gas/mips/branch-local-2.s: New test source.
1430 * testsuite/gas/mips/branch-local-3.s: New test source.
1431 * testsuite/gas/mips/branch-local-n32-2.s: New test source.
1432 * testsuite/gas/mips/branch-local-n32-3.s: New test source.
1433 * testsuite/gas/mips/branch-local-n64-2.s: New test source.
1434 * testsuite/gas/mips/branch-local-n64-3.s: New test source.
1435 * testsuite/gas/mips/unaligned-jump-1.s: New test source.
1436 * testsuite/gas/mips/unaligned-jump-2.s: New test source.
1437 * testsuite/gas/mips/unaligned-jump-mips16-1.s: New test source.
1438 * testsuite/gas/mips/unaligned-jump-mips16-2.s: New test source.
1439 * testsuite/gas/mips/unaligned-jump-micromips-1.s: New test
1440 source.
1441 * testsuite/gas/mips/unaligned-jump-micromips-2.s: New test
1442 source.
1443 * testsuite/gas/mips/unaligned-branch-1.s: New test source.
1444 * testsuite/gas/mips/unaligned-branch-2.s: New test source.
1445 * testsuite/gas/mips/unaligned-branch-r6-1.s: New test source.
1446 * testsuite/gas/mips/unaligned-branch-r6-2.s: New test source.
1447 * testsuite/gas/mips/unaligned-branch-r6-3.s: New test source.
1448 * testsuite/gas/mips/unaligned-branch-r6-4.s: New test source.
1449 * testsuite/gas/mips/unaligned-branch-mips16-1.s: New test
1450 source.
1451 * testsuite/gas/mips/unaligned-branch-mips16-2.s: New test
1452 source.
1453 * testsuite/gas/mips/unaligned-branch-micromips-1.s: New test
1454 source.
1455 * testsuite/gas/mips/unaligned-branch-micromips-2.s: New test
1456 source.
1457 * testsuite/gas/mips/mips.exp: Run the new tests.
1458
1459 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1460
1461 * config/tc-nds32.c (struct nds32_pseudo_opcode): Make pseudo_val
1462 unsigned int.
1463 (do_pseudo_b): Adjust.
1464 (do_pseudo_bal): Likewise.
1465 (do_pseudo_bge): Likewise.
1466 (do_pseudo_bges): Likewise.
1467 (do_pseudo_bgt): Likewise.
1468 (do_pseudo_bgts): Likewise.
1469 (do_pseudo_ble): Likewise.
1470 (do_pseudo_bles): Likewise.
1471 (do_pseudo_blt): Likewise.
1472 (do_pseudo_blts): Likewise.
1473 (do_pseudo_br): Likewise.
1474 (do_pseudo_bral): Likewise.
1475 (do_pseudo_la): Likewise.
1476 (do_pseudo_li): Likewise.
1477 (do_pseudo_ls_bhw): Likewise.
1478 (do_pseudo_ls_bhwp): Likewise.
1479 (do_pseudo_ls_bhwpc): Likewise.
1480 (do_pseudo_ls_bhwi): Likewise.
1481 (do_pseudo_move): Likewise.
1482 (do_pseudo_neg): Likewise.
1483 (do_pseudo_not): Likewise.
1484 (do_pseudo_pushpopm): Likewise.
1485 (do_pseudo_pushpop): Likewise.
1486 (do_pseudo_v3push): Likewise.
1487 (do_pseudo_v3pop): Likewise.
1488 (do_pseudo_pushpop_stack): Likewise.
1489 (do_pseudo_push_bhwd): Likewise.
1490 (do_pseudo_pop_bhwd): Likewise.
1491 (do_pseudo_pusha): Likewise.
1492 (do_pseudo_pushi): Likewise.
1493
1494 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1495
1496 * config/tc-sparc.c (struct pop_entry): Make the type of reloc
1497 bfd_reloc_code_real_type.
1498
1499 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1500
1501 * config/tc-sparc.c (pop_table): Remove sentinel.
1502 (NUM_PERC_ENTRIES): Use ARRAY_SIZE on pop_table.
1503 (md_begin): Adjust.
1504
1505 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1506
1507 * config/tc-z8k.c (newfix): Make type of type argument
1508 bfd_reloc_code_real_type.
1509 (apply_fix): Likewise.
1510
1511 2016-07-16 Alan Modra <amodra@gmail.com>
1512
1513 * config/tc-epiphany.c: Don't include libbfd.h.
1514 * config/tc-frv.c: Likewise.
1515 * config/tc-ip2k.c: Likewise.
1516 * config/tc-iq2000.c: Likewise.
1517 * config/tc-m32c.c: Likewise.
1518 * config/tc-mep.c: Likewise.
1519 * config/tc-mt.c: Likewise.
1520 * config/tc-nios2.c: Likewise.
1521
1522 2016-07-16 Alan Modra <amodra@gmail.com>
1523
1524 * config/bfin-parse.y: Don't include libbfd.h.
1525 * config/tc-bfin.c: Likewise.
1526 * config/tc-rl78.c: Likewise.
1527 * config/tc-rx.c: Likewise.
1528 * config/tc-metag.c: Likewise.
1529 (create_dspreg_htabs, create_scond_htab): Use gas_assert not BFD_ASSERT.
1530 * Makefile.am: Update dependencies.
1531 * Makefile.in: Regenerate.
1532
1533 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
1534
1535 * config/tc-mips.h (TC_FORCE_RELOCATION_ABS): New macro.
1536 (mips_force_relocation_abs): New prototype.
1537 * config/tc-mips.c (mips_force_relocation_abs): New function.
1538 * testsuite/gas/mips/branch-absolute.d: Adjust dump patterns.
1539 * testsuite/gas/mips/mips16-branch-absolute.d: Likewise.
1540 * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
1541 * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
1542 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
1543 Likewise.
1544 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
1545 Likewise.
1546 * testsuite/gas/mips/branch-absolute-addend.d: New test.
1547 * testsuite/gas/mips/mips16-branch-absolute-addend.d: New test.
1548 * testsuite/gas/mips/micromips-branch-absolute-addend.d: New
1549 test.
1550 * testsuite/gas/mips/mips.exp: Run the new tests.
1551
1552 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
1553
1554 * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS16_16_PCREL_S1>
1555 <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
1556 <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Keep the ISA bit in the
1557 addend calculated.
1558 * testsuite/gas/mips/mips16-branch-absolute.s: Set the ISA bit
1559 in `bar', export `foo'.
1560 * testsuite/gas/mips/mips16-branch-absolute.d: Adjust
1561 accordingly.
1562 * testsuite/gas/mips/mips16-branch-absolute-n32.d: Likewise.
1563 * testsuite/gas/mips/mips16-branch-absolute-n64.d: Likewise.
1564 * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d:
1565 Likewise.
1566 * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d:
1567 Likewise.
1568
1569 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
1570
1571 * testsuite/gas/mips/mips16-branch-absolute.d: Update patterns.
1572 * testsuite/gas/mips/branch-absolute.d: New test.
1573 * testsuite/gas/mips/branch-absolute-n32.d: New test.
1574 * testsuite/gas/mips/branch-absolute-n64.d: New test.
1575 * testsuite/gas/mips/branch-absolute-addend-n32.d: New test.
1576 * testsuite/gas/mips/branch-absolute-addend-n64.d: New test.
1577 * testsuite/gas/mips/mips16-branch-absolute-n32.d: New test.
1578 * testsuite/gas/mips/mips16-branch-absolute-n64.d: New test.
1579 * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d: New
1580 test.
1581 * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d: New
1582 test.
1583 * testsuite/gas/mips/micromips-branch-absolute.d: New test.
1584 * testsuite/gas/mips/micromips-branch-absolute-n32.d: New test.
1585 * testsuite/gas/mips/micromips-branch-absolute-n64.d: New test.
1586 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d: New
1587 test.
1588 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d: New
1589 test.
1590 * testsuite/gas/mips/branch-absolute.s: New test source.
1591 * testsuite/gas/mips/branch-absolute-addend.s: New test source.
1592 * testsuite/gas/mips/mips16-branch-absolute-addend.s: New test
1593 source.
1594 * testsuite/gas/mips/micromips-branch-absolute.s: New test
1595 source.
1596 * testsuite/gas/mips/micromips-branch-absolute-addend.s: New
1597 test source.
1598 * testsuite/gas/mips/mips.exp: Run the new tests.
1599
1600 2016-07-13 Maciej W. Rozycki <macro@imgtec.com>
1601
1602 * testsuite/gas/mips/nal-1.d: New test.
1603 * testsuite/gas/mips/mipsr6@nal-1.d: New test.
1604 * testsuite/gas/mips/nal-2.d: New test.
1605 * testsuite/gas/mips/mipsr6@nal-2.d: New test.
1606 * testsuite/gas/mips/nal.s: New test source.
1607 * testsuite/gas/mips/mips.exp: Run the new tests.
1608
1609 2016-07-12 Jose E. Marchesi <jose.marchesi@oracle.com>
1610
1611 * testsuite/gas/sparc/ldtxa.s: New file.
1612 * testsuite/gas/sparc/ldtxa.d: Likewise.
1613 * testsuite/gas/sparc/sparc.exp: Execute the ldtxa test.
1614
1615 2016-07-11 Claudiu Zissulescu <claziss@synopsys.com>
1616
1617 * config/tc-arc.c (arc_reloc_op_tag): Allow complex ops for dtpoff.
1618 (tc_gen_reloc): Remove passing DTPOFF base info into reloc addendum
1619 as it is no longer needed.
1620
1621 2016-07-08 Maciej W. Rozycki <macro@imgtec.com>
1622
1623 * config/tc-mips.c (append_insn): Remove extraneous
1624 `install_insn' call.
1625
1626 2016-07-04 Jan Beulich <jbeulich@suse.com>
1627
1628 * config/tc-i386.c (check_qword_reg): Correct register kind
1629 checked.
1630 * testsuite/gas/i386/x86-64-suffix-bad.s: Add q-suffix with
1631 16-bit register cases.
1632 * testsuite/gas/i386/x86-64-suffix-bad.l: Adjust expectations.
1633
1634
1635 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
1636
1637 * testsuite/gas/mips/ecoff@ld.d: Remove test.
1638 * testsuite/gas/mips/ecoff@ld-forward.d: Remove test.
1639 * testsuite/gas/mips/ecoff@ld-zero-3.d: Remove test.
1640 * testsuite/gas/mips/ecoff@sd.d: Remove test.
1641 * testsuite/gas/mips/ecoff@sd-forward.d: Remove test.
1642 * testsuite/gas/mips/beq.d: Remove a.out and ECOFF support from
1643 reloc patterns.
1644 * testsuite/gas/mips/mipsr6@beq.d: Likewise.
1645 * testsuite/gas/mips/bge.d: Likewise.
1646 * testsuite/gas/mips/mipsr6@bge.d: Likewise.
1647 * testsuite/gas/mips/bgeu.d: Likewise.
1648 * testsuite/gas/mips/mipsr6@bgeu.d: Likewise.
1649 * testsuite/gas/mips/blt.d: Likewise.
1650 * testsuite/gas/mips/mipsr6@blt.d: Likewise.
1651 * testsuite/gas/mips/bltu.d: Likewise.
1652 * testsuite/gas/mips/mipsr6@bltu.d: Likewise.
1653 * testsuite/gas/mips/branch-likely.d: Likewise.
1654 * testsuite/gas/mips/la.d: Likewise.
1655 * testsuite/gas/mips/lb.d: Likewise.
1656 * testsuite/gas/mips/lifloat.d: Likewise.
1657 * testsuite/gas/mips/sb.d: Likewise.
1658 * testsuite/gas/mips/uld.d: Likewise.
1659 * testsuite/gas/mips/ulh.d: Likewise.
1660 * testsuite/gas/mips/ulw.d: Likewise.
1661 * testsuite/gas/mips/usd.d: Likewise.
1662 * testsuite/gas/mips/ush.d: Likewise.
1663 * testsuite/gas/mips/usw.d: Likewise.
1664
1665 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
1666
1667 * testsuite/gas/mips/branch-misc-2.s: Move non
1668 locally-defined-global symbol tests...
1669 * testsuite/gas/mips/branch-misc-5.s: ... to this new test.
1670 * testsuite/gas/mips/branch-misc-2.d: Update accordingly.
1671 * testsuite/gas/mips/branch-misc-2-64.d: Likewise.
1672 * testsuite/gas/mips/branch-misc-2pic.d: Likewise.
1673 * testsuite/gas/mips/branch-misc-2pic-64.d: Likewise.
1674 * testsuite/gas/mips/mipsr6@branch-misc-2-64.d: Likewise.
1675 * testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d: Likewise.
1676 * testsuite/gas/mips/micromips@branch-misc-2.d: Likewise.
1677 * testsuite/gas/mips/micromips@branch-misc-2-64.d: Likewise.
1678 * testsuite/gas/mips/micromips@branch-misc-2pic.d: Likewise.
1679 * testsuite/gas/mips/micromips@branch-misc-2pic-64.d: Likewise.
1680 * testsuite/gas/mips/branch-misc-5.d: New test.
1681 * testsuite/gas/mips/branch-misc-5pic.d: New test.
1682 * testsuite/gas/mips/branch-misc-5-64.d: New test.
1683 * testsuite/gas/mips/branch-misc-5pic-64.d: New test.
1684 * testsuite/gas/mips/mipsr6@branch-misc-5-64.d: New test.
1685 * testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d: New test.
1686 * testsuite/gas/mips/micromips@branch-misc-5.d: New test.
1687 * testsuite/gas/mips/micromips@branch-misc-5pic.d: New test.
1688 * testsuite/gas/mips/micromips@branch-misc-5-64.d: New test.
1689 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: New test.
1690 * testsuite/gas/mips/mips.exp: Run the new tests.
1691
1692 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
1693
1694 * testsuite/gas/mips/beq.s: Uncomment branches to undefined
1695 symbols.
1696 * testsuite/gas/mips/beq.d: Update accordingly.
1697 * testsuite/gas/mips/mipsr6@beq.d: Likewise.
1698 * testsuite/gas/mips/micromips@beq.d: Likewise.
1699
1700 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
1701
1702 * testsuite/gas/mips/mips.exp: Restrict 64-bit `branch-mips'
1703 tests to NewABI targets.
1704
1705 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
1706
1707 * testsuite/gas/mips/mips.exp: Group `branch-misc' tests
1708 together.
1709
1710 2016-07-01 Szabolcs Nagy <szabolcs.nagy@arm.com>
1711
1712 * config/tc-aarch64.c (struct aarch64_option_cpu_value_table): Add
1713 require field.
1714 (aarch64_features): Initialize require fields.
1715 (aarch64_parse_features): Handle dependencies.
1716 (aarch64_feature_enable_set, aarch64_feature_disable_set): New.
1717 (md_assemble): Use AARCH64_CPU_HAS_ALL_FEATURES.
1718 * testsuite/gas/aarch64/illegal-nofp16.s: New.
1719 * testsuite/gas/aarch64/illegal-nofp16.l: New.
1720 * testsuite/gas/aarch64/illegal-nofp16.d: New.
1721
1722 2016-07-01 Nick Clifton <nickc@redhat.com>
1723
1724 * macro.c (macro_expand_body): Use a buffer big enough to hold an
1725 extremely large integer.
1726
1727 2016-07-01 Jan Beulich <jbeulich@suse.com>
1728
1729 * testsuite/gas/i386/mpx-inval-2.l: Relax for COFF targets.
1730
1731 2016-07-01 Tristan Gingold <gingold@adacore.com>
1732
1733 * NEWS: Add marker for 2.27.
1734
1735 2016-07-01 Jan Beulich <jbeulich@suse.com>
1736
1737 * tc-i386.c (i386_index_check): Add special checks for bndmk,
1738 bndldx, and bndstx.
1739 * testsuite/gas/i386/mpx-inval-2.s: Add %rip and %eip relative
1740 as well as scaling by other than 1 tests.
1741 * testsuite/gas/i386/mpx-inval-2.l: Adjust accordingly.
1742
1743 2016-07-01 Jan Beulich <jbeulich@suse.com>
1744
1745 * tc-i386.c (md_assemble): Alter address size checking for MPX
1746 instructions.
1747 * testsuite/gas/i386/mpx-inval-2.s: New.
1748 * testsuite/gas/i386/mpx-inval-2.l: New.
1749 * testsuite/gas/i386/i386.exp: Run new test.
1750
1751 2016-07-01 Jan Beulich <jbeulich@suse.com>
1752
1753 PR gas/20318
1754 * config/tc-i386.c (match_template): Add char parameter,
1755 consumed in Intel mode for an extra suffix check.
1756 (md_assemble): New local variable mnem_suffix.
1757 * testsuite/gas/i386/suffix-bad.s: New.
1758 * testsuite/gas/i386/suffix-bad.l: New.
1759 * testsuite/gas/i386/i386.exp: Run new test (twice).
1760
1761 2016-07-01 Jan Beulich <jbeulich@suse.com>
1762
1763 * testsuite/gas/i386/movz.s: New.
1764 * testsuite/gas/i386/movz32.d: New.
1765 * testsuite/gas/i386/movz64.d: New.
1766 * testsuite/gas/i386/i386.exp: Run new tests.
1767
1768 2016-07-01 Jan Beulich <jbeulich@suse.com>
1769
1770 * config/tc-i386.c (struct _i386_insn): New field memop1_string.
1771 (md_assemble): Free first memory operand string.
1772 (i386_index_check): Use repprefixok to distingush xlat from
1773 other (real) string ops.
1774 (maybe_adjust_templates): New.
1775 (i386_att_operand). Call it. Store first memory operand string.
1776 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
1777 * testsuite/gas/i386/intel-movs.s: New.
1778 * testsuite/gas/i386/intel-movs32.d: New.
1779 * testsuite/gas/i386/intel-movs64.d: New.
1780 * testsuite/gas/i386/i386.exp: Run new tests. Invoke as for
1781 64-bits tests with "--defsym x86_64=1 --strip-local-absolute".
1782
1783 2016-06-30 Maciej W. Rozycki <macro@imgtec.com>
1784
1785 * config/tc-mips.c (get_append_method): Fix a comment typo.
1786
1787 2016-06-30 Matthew Fortune <Matthew.Fortune@imgtec.com>
1788 Maciej W. Rozycki <macro@imgtec.com>
1789
1790 * config/tc-mips.c (append_insn) <APPEND_SWAP>: Do not special
1791 case MIPS16 handling.
1792 * testsuite/gas/mips/branch-swap-3.d: New test.
1793 * testsuite/gas/mips/branch-swap-4.d: New test.
1794 * testsuite/gas/mips/mips16@branch-swap-3.d: New test.
1795 * testsuite/gas/mips/mips16@branch-swap-4.d: New test.
1796 * testsuite/gas/mips/micromips@branch-swap-3.d: New test.
1797 * testsuite/gas/mips/micromips@branch-swap-4.d: New test.
1798 * testsuite/gas/mips/branch-swap-3.s: New test source.
1799 * testsuite/gas/mips/mips.exp: Run the new tests.
1800
1801 2016-06-30 Maciej W. Rozycki <macro@imgtec.com>
1802
1803 * config/tc-mips.c (append_insn): Simplify non-MIPS16 branch
1804 swapping sequence.
1805
1806 2016-06-30 Maciej W. Rozycki <macro@imgtec.com>
1807
1808 PR gas/20312
1809 * write.c (subsegs_finish_section): Force no section padding to
1810 alignment on failed assembly, always set last frag's alignment
1811 from section.
1812 * testsuite/gas/all/pr20312.l: New list test.
1813 * testsuite/gas/all/pr20312.s: New test source.
1814 * testsuite/gas/all/gas.exp: Run the new test
1815
1816 2016-06-30 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * config.in (TARGET_WITH_CPU): Undefine.
1819 * configure.ac: Add --with-cpu support, and define in config.h.
1820 * configure: Regenerate.
1821 * config/tc-arc.c: Use TARGET_WITH_CPU to select default CPU.
1822 * NEWS: Mention new configure option.
1823
1824 2016-06-30 Matthew Wahab <matthew.wahab@arm.com>
1825
1826 * testsuite/gas/arm/armv8_2+rdma.d: New.
1827
1828 2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
1829
1830 * NEWS: Mention --enable-compressed-debug-sections=gas is the
1831 default for Linux/x86 targets.
1832 * configure.tgt (ac_default_compressed_debug_sections): Default
1833 to yes for Linux/x86 targets.
1834
1835 2016-06-29 Maciej W. Rozycki <macro@imgtec.com>
1836
1837 * write.c: Remove "libbfd.h" inclusion.
1838
1839 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
1840
1841 * testsuite/gas/elf/elf.exp: Use `supports_gnu_unique' with the
1842 `type' test.
1843
1844 2016-06-28 Alan Modra <amodra@gmail.com>
1845
1846 PR gas/20247
1847 * testsuite/gas/elf/section11.s: Don't start directives in first column.
1848
1849 2016-06-28 Richard Sandiford <richard.sandiford@arm.com>
1850
1851 * testsuite/gas/aarch64/diagnostic.s,
1852 testsuite/gas/aarch64/diagnostic.l: Add tests for out-of-range indices.
1853
1854 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
1855
1856 * config/tc-mips.c (mips16_reloc_p): Handle
1857 BFD_RELOC_MIPS16_16_PCREL_S1.
1858 (b_reloc_p): Likewise.
1859 (limited_pcrel_reloc_p): Likewise.
1860 (md_pcrel_from): Likewise.
1861 (md_apply_fix): Likewise.
1862 (tc_gen_reloc): Likewise.
1863 (md_convert_frag): Likewise.
1864 (mips_fix_adjustable): Update comment.
1865 * testsuite/gas/mips/mips16-branch-reloc-2.d: Remove error
1866 output, add dump patterns.
1867 * testsuite/gas/mips/mips16-branch-reloc-3.d: Remove error
1868 output, add dump patterns.
1869 * testsuite/gas/mips/mips16-branch-addend-2.d: Remove error
1870 output, add dump patterns.
1871 * testsuite/gas/mips/mips16-branch-addend-3.d: Remove error
1872 output, add dump patterns.
1873 * testsuite/gas/mips/mips16-branch-absolute.d: Remove error
1874 output, add dump patterns.
1875 * testsuite/gas/mips/mips16-branch-reloc-2.l: Remove file.
1876 * testsuite/gas/mips/mips16-branch-reloc-3.l: Remove file.
1877 * testsuite/gas/mips/mips16-branch-addend-2.l: Remove file.
1878 * testsuite/gas/mips/mips16-branch-addend-3.l: Remove file.
1879 * testsuite/gas/mips/mips16-branch-absolute.l: Remove file.
1880 * testsuite/gas/mips/mips16-branch-addend-2.s: Add padding.
1881 * testsuite/gas/mips/branch-weak.s: Adjust alignment, avoid
1882 implicit instruction padding, avoid MIPS16 JR->JRC conversion.
1883 * testsuite/gas/mips/branch-weak-6.d: New test.
1884 * testsuite/gas/mips/branch-weak-7.d: New test.
1885 * testsuite/gas/mips/mips.exp: Run the new tests.
1886
1887 2016-06-27 Vineet Gupta <vgupta@synopsys.com>
1888
1889 * config//tc-arc.c (tc_arc_frame_initial_instructions): Use
1890 cfi_add_CFA_def_cfa to generate default CFA with offset
1891 * testsuite/gas/cfi/cfi-arc-1.d: Update expected output.
1892
1893 2016-06-27 Nick Clifton <nickc@redhat.com>
1894
1895 PR gas/20247
1896 * as.h (do_not_pad_sections_to_alignment): New global variable.
1897 * as.c (show_usage): Add --no-pad-sections.
1898 (parse_args): Likewise.
1899 * write.c (size_seg): Skip padding the end of the section if
1900 requested from the command line.
1901 (SUB_SEGMENT_ALIGN): Likewise.
1902 * doc/as.texinfo: Document the new option.
1903 * NEWS: Mention the new feature.
1904 * testsuite/gas/elf/section11.s: New test.
1905 * testsuite/gas/elf/section11.d: New test driver.
1906 * testsuite/gas/elf/elf.exp: Run the new test.
1907
1908 2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1909
1910 * config/tc-dlx.c: Include bfd/elf32-dlx.h.
1911 * config/tc-dlx.h: Remove prototype of dlx_set_skip_hi16.
1912
1913 2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1914
1915 * config/tc-xtensa.c (xtensa_elf_suffix): Use ARRAY_SIZE instead of a
1916 sentinal element.
1917 (map_suffix_reloc_to_operator): Likewise.
1918 (map_operator_to_reloc): Likewise.
1919
1920 2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1921
1922 * config/tc-nds32.c (md_begin): Use ARRAY_SIZE instead of a sentinal
1923 element in relax_table.
1924
1925 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1926
1927 * config/tc-aarch64.c: Make the type of reg_entry::type
1928 aarch_reg_type.
1929
1930 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1931
1932 * config/tc-bfin.c (bfin_cpus): Remove sentinal.
1933 (md_parse_option): Adjust.
1934 * config/tc-aarch64.c (aarch64_parse_abi): Replace use of a sentinal
1935 with iteration from 0 to ARRAY_SIZE.
1936 * config/tc-mcore.c (md_begin): Likewise.
1937 * config/tc-visium.c (visium_parse_arch): Likewise.
1938
1939 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1940
1941 * config/tc-tic54x.c (tic54x_set_default_include): remove argument
1942 and simplify accordingly.
1943 (tic54x_include): Adjust.
1944 (tic54x_mlib): Likewise.
1945
1946 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1947
1948 * config/tc-xtensa.c (xtensa_make_property_section): Remove prototype.
1949
1950 2016-06-24 Maciej W. Rozycki <macro@imgtec.com>
1951
1952 * config/tc-mips.c (append_insn): Use any `O_symbol' expression
1953 unchanged with relaxed MIPS16 instructions.
1954 (mips16_extended_frag): Adjust accordingly. Return 1 right
1955 away if a relocation will be required for the symbol requested.
1956 Remove dead first relaxation pass code.
1957 (mips_relax_frag): Pass `sec' down to `mips16_extended_frag'.
1958 (md_convert_frag): Adjust symbol value calculation. Raise an
1959 error if a relocation is required for the symbol requested.
1960 * testsuite/gas/mips/mips16@relax-swap3.d: Remove dump patterns,
1961 add error output.
1962 * testsuite/gas/mips/mips16@relax-swap3.l: New error output.
1963 * testsuite/gas/mips/mips16-pcrel-relax-0.d: New test.
1964 * testsuite/gas/mips/mips16-pcrel-relax-1.d: New test.
1965 * testsuite/gas/mips/mips16-pcrel-relax-2.d: New test.
1966 * testsuite/gas/mips/mips16-pcrel-relax-3.d: New test.
1967 * testsuite/gas/mips/mips16-pcrel-reloc-0.d: New test.
1968 * testsuite/gas/mips/mips16-pcrel-reloc-1.d: New test.
1969 * testsuite/gas/mips/mips16-pcrel-reloc-2.d: New test.
1970 * testsuite/gas/mips/mips16-pcrel-reloc-3.d: New test.
1971 * testsuite/gas/mips/mips16-pcrel-reloc-4.d: New test.
1972 * testsuite/gas/mips/mips16-pcrel-reloc-5.d: New test.
1973 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: New test.
1974 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: New test.
1975 * testsuite/gas/mips/mips16-pcrel-addend-0.d: New test.
1976 * testsuite/gas/mips/mips16-pcrel-addend-1.d: New test.
1977 * testsuite/gas/mips/mips16-pcrel-addend-2.d: New test.
1978 * testsuite/gas/mips/mips16-pcrel-addend-3.d: New test.
1979 * testsuite/gas/mips/mips16-pcrel-absolute.d: New test.
1980 * testsuite/gas/mips/mips16-branch-reloc-0.d: New test.
1981 * testsuite/gas/mips/mips16-branch-reloc-1.d: New test.
1982 * testsuite/gas/mips/mips16-branch-reloc-2.d: New test.
1983 * testsuite/gas/mips/mips16-branch-reloc-3.d: New test.
1984 * testsuite/gas/mips/mips16-branch-addend-0.d: New test.
1985 * testsuite/gas/mips/mips16-branch-addend-1.d: New test.
1986 * testsuite/gas/mips/mips16-branch-addend-2.d: New test.
1987 * testsuite/gas/mips/mips16-branch-addend-3.d: New test.
1988 * testsuite/gas/mips/mips16-branch-absolute.d: New test.
1989 * testsuite/gas/mips/mips16-absolute-reloc-0.d: New test.
1990 * testsuite/gas/mips/mips16-absolute-reloc-1.d: New test.
1991 * testsuite/gas/mips/mips16-absolute-reloc-2.d: New test.
1992 * testsuite/gas/mips/mips16-absolute-reloc-3.d: New test.
1993 * testsuite/gas/mips/mips16-pcrel-reloc-2.l: New error output.
1994 * testsuite/gas/mips/mips16-pcrel-reloc-3.l: New error output.
1995 * testsuite/gas/mips/mips16-pcrel-reloc-6.l: New error output.
1996 * testsuite/gas/mips/mips16-pcrel-reloc-7.l: New error output.
1997 * testsuite/gas/mips/mips16-pcrel-addend-2.l: New error output.
1998 * testsuite/gas/mips/mips16-pcrel-addend-3.l: New error output.
1999 * testsuite/gas/mips/mips16-pcrel-absolute.l: New error output.
2000 * testsuite/gas/mips/mips16-branch-reloc-2.l: New error output.
2001 * testsuite/gas/mips/mips16-branch-reloc-3.l: New error output.
2002 * testsuite/gas/mips/mips16-branch-addend-2.l: New error output.
2003 * testsuite/gas/mips/mips16-branch-addend-3.l: New error output.
2004 * testsuite/gas/mips/mips16-branch-absolute.l: New error output.
2005 * testsuite/gas/mips/mips16-absolute-reloc-2.l: New error output.
2006 * testsuite/gas/mips/mips16-absolute-reloc-3.l: New error output.
2007 * testsuite/gas/mips/mips16-pcrel-relax-0.s: New test source.
2008 * testsuite/gas/mips/mips16-pcrel-relax-2.s: New test source.
2009 * testsuite/gas/mips/mips16-pcrel-reloc-0.s: New test source.
2010 * testsuite/gas/mips/mips16-pcrel-reloc-1.s: New test source.
2011 * testsuite/gas/mips/mips16-pcrel-reloc-2.s: New test source.
2012 * testsuite/gas/mips/mips16-pcrel-reloc-3.s: New test source.
2013 * testsuite/gas/mips/mips16-pcrel-reloc-4.s: New test source.
2014 * testsuite/gas/mips/mips16-pcrel-reloc-5.s: New test source.
2015 * testsuite/gas/mips/mips16-pcrel-reloc-6.s: New test source.
2016 * testsuite/gas/mips/mips16-pcrel-reloc-7.s: New test source.
2017 * testsuite/gas/mips/mips16-pcrel-addend-0.s: New test source.
2018 * testsuite/gas/mips/mips16-pcrel-addend-1.s: New test source.
2019 * testsuite/gas/mips/mips16-pcrel-addend-2.s: New test source.
2020 * testsuite/gas/mips/mips16-pcrel-addend-3.s: New test source.
2021 * testsuite/gas/mips/mips16-pcrel-absolute.s: New test source.
2022 * testsuite/gas/mips/mips16-branch-reloc-0.s: New test source.
2023 * testsuite/gas/mips/mips16-branch-reloc-1.s: New test source.
2024 * testsuite/gas/mips/mips16-branch-reloc-2.s: New test source.
2025 * testsuite/gas/mips/mips16-branch-reloc-3.s: New test source.
2026 * testsuite/gas/mips/mips16-branch-addend-0.s: New test source.
2027 * testsuite/gas/mips/mips16-branch-addend-1.s: New test source.
2028 * testsuite/gas/mips/mips16-branch-addend-2.s: New test source.
2029 * testsuite/gas/mips/mips16-branch-addend-3.s: New test source.
2030 * testsuite/gas/mips/mips16-branch-absolute.s: New test source.
2031 * testsuite/gas/mips/mips16-absolute-reloc-0.s: New test source.
2032 * testsuite/gas/mips/mips16-absolute-reloc-1.s: New test source.
2033 * testsuite/gas/mips/mips16-absolute-reloc-2.s: New test source.
2034 * testsuite/gas/mips/mips16-absolute-reloc-3.s: New test source.
2035 * testsuite/gas/mips/mips.exp: Run the new tests.
2036
2037 2016-06-24 Alan Modra <amodra@gmail.com>
2038
2039 * configure.tgt (alpha-*-openbsd*): Use em=nbsd.
2040
2041 2016-06-23 Maciej W. Rozycki <macro@imgtec.com>
2042
2043 * config/tc-mips.c (b_reloc_p): New function.
2044 (mips_fix_adjustable): Also keep the original microMIPS symbol
2045 referred from branch relocations.
2046 * testsuite/gas/mips/branch-local-1.d: New test.
2047 * testsuite/gas/mips/branch-local-n32-1.d: New test.
2048 * testsuite/gas/mips/branch-local-n64-1.d: New test.
2049 * testsuite/gas/mips/micromips@branch-misc-4-64.d: Update
2050 relocations.
2051 * testsuite/gas/mips/branch-local-1.s: New test source.
2052 * testsuite/gas/mips/mips.exp: Run the new cases.
2053
2054 2016-06-23 Graham Markall <graham.markall@embecosm.com>
2055
2056 * config/tc-arc.c (options, md_longopts, md_parse_option): Move
2057 -mspfp, -mdpfp and -mfpuda out of the sections for dummy
2058 options. Correct erroneous enabling of SPFP instructions when
2059 using -mnps400.
2060
2061 2016-06-22 Peter Bergner <bergner@vnet.ibm.com>
2062
2063 * testsuite/gas/ppc/power9.d <brd, brh, brw, mffs, mffs., mffsce,
2064 mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl, nandxor, rldixor,
2065 setbool, xor3>: New tests.
2066 * testsuite/gas/ppc/power9.s: Likewise.
2067
2068 2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2069
2070 * config/tc-xtensa.c: Include elf/xtensa.h.
2071
2072 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2073
2074 * config/tc-mips.c (calculate_reloc) <BFD_RELOC_HI16_S_PCREL>
2075 <BFD_RELOC_LO16_PCREL>: New switch cases.
2076 (md_apply_fix) <BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL>:
2077 Move switch cases along `BFD_RELOC_MIPS_JMP'.
2078 <BFD_RELOC_MIPS_21_PCREL_S2, BFD_RELOC_MIPS_26_PCREL_S2>
2079 <BFD_RELOC_MIPS_18_PCREL_S3, BFD_RELOC_MIPS_19_PCREL_S2>: Handle
2080 the resolved case.
2081 * testsuite/gas/mips/pcrel-reloc-4.d: New test.
2082 * testsuite/gas/mips/pcrel-reloc-4-r6.d: New test.
2083 * testsuite/gas/mips/pcrel-reloc-5.d: New test.
2084 * testsuite/gas/mips/pcrel-reloc-5-r6.d: New test.
2085 * testsuite/gas/mips/pcrel-reloc-6.d: New test.
2086 * testsuite/gas/mips/pcrel-reloc-6.l: New list test.
2087 * testsuite/gas/mips/pcrel-reloc-4.s: New test source.
2088 * testsuite/gas/mips/pcrel-reloc-6.s: New test source.
2089 * testsuite/gas/mips/mips.exp: Run the new tests.
2090
2091 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2092
2093 * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS_18_PCREL_S3>
2094 <BFD_RELOC_MIPS_19_PCREL_S2>: Avoid null pointer dereferences
2095 via `fixP->fx_addsy'.
2096
2097 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2098
2099 * config/tc-mips.c (md_pcrel_from) <BFD_RELOC_MIPS_18_PCREL_S3>:
2100 Calculate relocation from the containing aligned doubleword.
2101 (tc_gen_reloc) <BFD_RELOC_MIPS_18_PCREL_S3>: Calculate the
2102 addend from the containing aligned doubleword.
2103
2104 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2105
2106 * config/tc-mips.c (mips_force_relocation): Use `file_mips_opts'
2107 rather than `mips_opts' for the R6 ISA check.
2108 (mips_fix_adjustable): Likewise.
2109 * testsuite/gas/mips/pcrel-reloc-1.d: New test.
2110 * testsuite/gas/mips/pcrel-reloc-1-r6.d: New test.
2111 * testsuite/gas/mips/pcrel-reloc-2.d: New test.
2112 * testsuite/gas/mips/pcrel-reloc-2-r6.d: New test.
2113 * testsuite/gas/mips/pcrel-reloc-3.d: New test.
2114 * testsuite/gas/mips/pcrel-reloc-3-r6.d: New test.
2115 * testsuite/gas/mips/pcrel-reloc-1.s: New test source.
2116 * testsuite/gas/mips/mips.exp: Run the new tests.
2117
2118 2016-06-21 Graham Markall <graham.markall@embecosm.com>
2119
2120 * config/tc-arc.c (check_cpu_feature, md_parse_option):
2121 Add nps400 option and feature. Add check for nps400
2122 feature. Refactor existing checks to check subclass before
2123 feature enablement.
2124 (md_show_usage): Document flags for NPS-400 and add some other
2125 undocumented flags.
2126 (cpu_type): Remove nps400 CPU type entry
2127 (check_zol): Remove bfd_mach_arc_nps400 case.
2128 (md_show_usage): Add help on -mcpu=nps400.
2129 (cpu_types): Add entry for nps400 as arc700 plus nps400 extension
2130 set.
2131 * doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and
2132 -fpuda flags. Document -mcpu=nps400.
2133 * testsuite/gas/arc/nps-400-0.d: Use -mcpu=arc700 -mnps400. Change
2134 expected flags to match ARC700 instead of NPS400.
2135 * testsuite/gas/arc/nps-400-1.d: Use -mcpu=arc700 -mnps400.
2136 * testsuite/gas/arc/nps-400-2.d: Likewise.
2137 * testsuite/gas/arc/nps-400-3.d: Likewise.
2138 * testsuite/gas/arc/nps-400-4.d: Likewise.
2139 * testsuite/gas/arc/nps-400-5.d: Likewise.
2140 * testsuite/gas/arc/nps-400-6.d: Likewise.
2141 * testsuite/gas/arc/nps-400-7.d: Likewise.
2142 * testsuite/gas/arc/textinsn2op01.s: Change opcode of myinsn to
2143 avoid clash with cbba instruction.
2144 * testsuite/gas/arc/textinsn2op01.d: Likewise.
2145 * testsuite/gas/arc/textinsn3op.d: Likewise.
2146 * testsuite/gas/arc/textinsn3op.s: Likewise.
2147 * testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using
2148 -mcpu=nps400 as an alternative to -mcpu=arc700 -mnps400 flags.
2149
2150 2016-06-20 Maciej W. Rozycki <macro@imgtec.com>
2151
2152 * testsuite/gas/mips/r6-64-n32.d: Change the `name' tag.
2153 * testsuite/gas/mips/r6-64-n64.d: Likewise.
2154
2155 2016-06-20 Maciej W. Rozycki <macro@imgtec.com>
2156
2157 * config/tc-mips.c (mips_fix_adjustable): Update comment on jump
2158 reloc conversion.
2159
2160 2016-06-20 Virendra Pathak <virendra.pathak@broadcom.com>
2161
2162 * config/tc-aarch64.c (aarch64_cpus): Update vulcan feature set.
2163
2164 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2165
2166 * config/tc-sparc.c (hpriv_reg_table): Add registers %hmcdper,
2167 %hmcddfr and %hva_mask_nz.
2168 (sparc_ip): New handling of asr/privileged/hyperprivileged
2169 registers, adapted to the new form of the sparc opcodes table.
2170 * testsuite/gas/sparc/rdasr.s: New file.
2171 * testsuite/gas/sparc/rdasr.d: Likewise.
2172 * testsuite/gas/sparc/wrasr.s: Likewise.
2173 * testsuite/gas/sparc/wrasr.d: Likewise.
2174 * testsuite/gas/sparc/sparc.exp (sparc_elf_setup): Add rdasr and
2175 wrasr tests.
2176 * testsuite/gas/sparc/rdpr.d: Use -Av9m, as some privileged
2177 registers require it.
2178 * testsuite/gas/sparc/wrpr.s: Complete to cover all privileged
2179 registers and write instruction modalities.
2180 * testsuite/gas/sparc/wrpr.d: Likewise.
2181 * testsuite/gas/sparc/rdhpr.s: Likewise for hyperprivileged
2182 registers.
2183 * testsuite/gas/sparc/rdhpr.d: Likewise.
2184 * testsuite/gas/sparc/wrhpr.s: Likewise.
2185 * testsuite/gas/sparc/wrhpr.d: Likewise.
2186
2187 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2188
2189 * config/tc-sparc.c (sparc_arch_table): adjust the GAS
2190 architectures to use the right opcode architecture.
2191 (sparc_md_end): Handle v9{c,d,e,v,m}.
2192 (sparc_ip): Fix some comments.
2193 * testsuite/gas/sparc/ldx_efsr.d: Fix the architecture of this
2194 instruction, which is v9d.
2195 * testsuite/gas/sparc/mwait.s: Remove the `rd %mwait,%g1'
2196 instruction from the test, as %mwait is not readable.
2197 * testsuite/gas/sparc/mwait.d: Likewise.
2198 * testsuite/gas/sparc/mism-1.s: Expand to check v9b and v9e
2199 mismatch architecture errors.
2200 * testsuite/gas/sparc/mism-2.s: New file.
2201
2202 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2203
2204 * config/tc-sparc.c (priv_reg_table): Use NULL instead of the
2205 empty string to mark the end of the array.
2206 (hpriv_reg_table): Likewise.
2207 (v9a_asr_table): Likewise.
2208 (cmp_reg_entry): Handle entries with NULL names.
2209 (F_POP_V9): Define.
2210 (F_POP_PCREL): Likewise.
2211 (F_POP_TLS_CALL): Likewise.
2212 (F_POP_POSTFIX): Likewise.
2213 (struct pop_entry): New type.
2214 (pop_table): New variable.
2215 (enum pop_entry_type): New type.
2216 (struct perc_entry): Likewise.
2217 (NUM_PERC_ENTRIES): Define.
2218 (perc_table): New variable.
2219 (cmp_perc_entry): New function.
2220 (md_begin): Sort hpriv_reg_table and v9a_asr_table, and initialize
2221 perc_table.
2222 (sparc_ip): Handle entries with NULL names in priv_reg_table,
2223 hpriv_reg_table and v9a_asr_table. Use perc_table to handle
2224 %-pseudo-ops.
2225
2226 2016-06-15 Nick Clifton <nickc@redhat.com>
2227
2228 * config/tc-ft32.c (md_assemble): Call dwarf2_emit_insn with the
2229 instruction size.
2230 * config/tc-mcore.c (md_assemble): Likewise.
2231 * config/tc-mn10200.c (md_assemble): Likewise.
2232 * config/tc-moxie.c (md_assemble): Likewise.
2233 * config/tc-pj.c (md_apply_fix): Handle BFD_RELOC_PJ_CODE_REL32.
2234 * testsuite/gas/all/gas.exp (diff1 test): Alpha sort list of
2235 exception targets. Add alpha, hppa, microblaze and rl78 to list
2236 of exceptions.
2237 (forward): Add microblaze to list of exceptions.
2238 (fwdexp): Add alpha to list of exceptions.
2239 (redef2): Add arm-epoc-pe and rl78 to list of exceptions.
2240 (redef3): Add rl78 and x86_64 cygwin to list of exceptions.
2241 (do_930509a): Alpha sort list of exception targets. Add h8300 and
2242 mn10200 to list of exceptions.
2243 (align2): Expect to fail for nds32.
2244 (cond): Add alpha and rl78 to list of exceptions.
2245 * testsuite/gas/all/none.d: Skip for ft32 and hppa.
2246 * testsuite/gas/all/string.d: Skip for tic4x.
2247 * testsuite/gas/alpha/alpha.exp: Note that the alpha-linuxecoff
2248 target does not support ELF.
2249 * testsuite/gas/arm/blx-bl-convert.dL Skip for the nto target.
2250 * testsuite/gas/cfi/cfi-alpha-2.d: All extended format names.
2251 * testsuite/gas/cfi/cfi.exp: Alpha sort list of targets. Skip SH
2252 tests for sh-pe and sh-rtemscoff targets.
2253 * testsuite/gas/elf/elf.exp (redef): Add rl78, xgate and vax to
2254 list of exceptions.
2255 (type): Run the noifunc version for alpha-freebsd and visium.
2256 * testsuite/gas/elf/warn-2.s: Do not expect to fail on the mcore,
2257 mn10200 or moxie targets.
2258 * testsuite/gas/ft32/insn.d: Update expected disassembly.
2259 * testsuite/gas/i386/i386.exp (x86-64-pcrel): Skip for cygwin
2260 targets.
2261 * testsuite/gas/lns/lns.exp (lns-common-1): No longer skip for
2262 mcore and rx targets.
2263 * testsuite/gas/macros/macros.exp (dot): Add exceptions for ns32k,
2264 rl78 and vax.
2265 (purge): Expect to fail on the ns32k and vax.
2266 * testsuite/gas/nds32/alu-2.d: Update expected disassembly.
2267 * testsuite/gas/nds32/ls.d: Likewise.
2268 * testsuite/gas/nds32/sys-reg.d: Likewise.
2269 * testsuite/gas/nds32/usr-spe-reg.d: Likewise.
2270 * testsuite/gas/pe/aligncomm-d.d: Skip for the sh.
2271 * testsuite/gas/pe/section-align-3.d: Likewise.
2272 * testsuite/gas/pe/section-exclude.d: Likewise.
2273 * testsuite/gas/ppc/test2xcoff32.d: Pass once all the required
2274 data has been seen.
2275 * testsuite/gas/ppc/textalign-xcoff-001.d: Fix up regexp to allow
2276 for variations in whitespace.
2277 * testsuite/gas/tilepro/t_constants.d: Pass once all the required
2278 data has been seen.
2279 * testsuite/gas/tilepro/t_constants.s (.safe_word): New macro.
2280 Installs a 32-bit value without generating warnings on 64-bit
2281 hosts.
2282 Use the new macro to replace the .word directives.
2283
2284 2016-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * testsuite/gas/arc/add_s.d: New file.
2287 * testsuite/gas/arc/add_s.s: New file.
2288
2289 2016-06-14 Graham Markall <graham.markall@embecosm.com>
2290
2291 * testsuite/gas/arc/nps400-6.s: Add tests of ldbit.
2292 * testsuite/gas/arc/nps400-6.d: Likewise.
2293
2294 2016-06-14 Graham Markall <graham.markall@embecosm.com>
2295
2296 * testsuite/gas/arc/nps400-6.s: Add tests of hash, tr, utf8, e4by, and
2297 addf.
2298 * testsuite/gas/arc/nps400-6.d: Likewise.
2299
2300 2016-06-14 Graham Markall <graham.markall@embecosm.com>
2301
2302 * testsuite/gas/arc/nps400-6.s: Add tests of calcbsd, calcbxd,
2303 calckey, calcxkey, mxb, imxb, addl, subl, andl, orl, xorl, andab, orab,
2304 lbdsize, bdlen, csms, csma, cbba, zncv, and hofs.
2305 * testsuite/gas/arc/nps400-6.d: Likewise.
2306
2307 2016-06-14 Nick Clifton <nickc@redhat.com>
2308
2309 * config/tc-nds32.c (nds32_get_align): Avoid left shifting a
2310 signed constant.
2311
2312 2016-06-13 Maciej W. Rozycki <macro@imgtec.com>
2313
2314 * config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
2315 JALR relocations on R6.
2316 * testsuite/gas/mips/jal-svr4pic-local.d: New test.
2317 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: New test.
2318 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: New test.
2319 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: New test.
2320 * testsuite/gas/mips/jal-svr4pic-local-n32.d: New test.
2321 * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d: New
2322 test.
2323 * testsuite/gas/mips/jal-svr4pic-local-n64.d: New test.
2324 * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d: New
2325 test.
2326 * testsuite/gas/mips/jal-svr4pic-local.s: New test source.
2327 * testsuite/gas/mips/jal-svr4pic-local-newabi.s: New test
2328 source.
2329 * testsuite/gas/mips/mips.exp: Run the new tests.
2330
2331 2016-06-13 Virendra Pathak <virendra.pathak@broadcom.com>
2332
2333 * config/tc-aarch64.c (aarch64_cpus): Add Broadcom Vulcan.
2334 * doc/c-aarch64.texi: Document that vulcan is a valid processor
2335 name.
2336
2337 2016-06-13 Nick Clifton <nickc@redhat.com>
2338
2339 * config/tc-arm.c: For non-ELF based targets skip ARM feature sets
2340 that are not supported.
2341
2342 * config/tc-arc.c (md_apply_fix): Avoid left shifting a signed
2343 constant.
2344 * config/tc-cr16.c (check_range): Likewise.
2345 * config/tc-nios2.c (nios2_check_overflow): Likewise.
2346
2347 2016-06-08 Renlin Li <renlin.li@arm.com>
2348
2349 * config/tc-aarch64.c (print_operands): Substitute size.
2350 (output_operand_error_record): Likewise.
2351
2352 2016-06-07 Alan Modra <amodra@gmail.com>
2353
2354 * config/tc-ppc.c (PPC_APUINFO_ISEL, PPC_APUINFO_PMR,
2355 PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE,
2356 PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK, PPC_APUINFO_VLE): Don't define.
2357 (ppc_setup_opcodes): Check vle disables powerpc_opcodes overridden
2358 by vle_opcodes, and that vle flag doesn't enable opcodes. Don't
2359 add vle_opcodes twice.
2360 (ppc_cleanup): Use APUINFO_SECTION_NAME and APUINFO_LABEL.
2361
2362 2016-06-07 Matthew Wahab <matthew.wahab@arm.com>
2363
2364 * config/tc-arm.c (arm_ext_v8_2): Rename to arm_ext_ras.
2365 (arm_ext_ras): Renamed from arm_ext_v8_2.
2366 (insns): Update for arm_ext_v8_2 renaming.
2367 (arm_extensions): Add "ras".
2368 * doc/c-arm.texi (ARM Options): Add an entry for "ras".
2369 * testsuite/gas/arm/armv8-a+ras.d: New.
2370 * testsuite/gas/arm/armv8_2-a.d: Add explicit command line
2371 options.
2372
2373 2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2374
2375 * itbl-parse.y (yyerror): Use modern argument declaration style.
2376
2377 2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2378
2379 * config/tc-sh.c (parse_reg): Change type of mode argument to
2380 sh_arg_type.
2381 (get_operand): Adjust.
2382 (insert): Change type of how to bfd_reloc_code_real_type.
2383 (insert4): Likewise.
2384 * config/tc-sh64.c (shmedia_get_operand): Adjust.
2385 (shmedia_parse_reg): Change type of mode to shmedia_arg_type.
2386
2387 2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2388
2389 * config/tc-nds32.c (nds32_parse_option): Make the type of ptr_arg
2390 const char *.
2391
2392 2016-06-03 Peter Bergner <bergner@vnet.ibm.com>
2393
2394 PR binutils/20196
2395 * gas/testsuite/gas/ppc/e6500.s <lbarx, lharx, lwarx, ldarx,
2396 stbcx., sthcx., stwcx., stdcx.>: Add tests.
2397 * gas/testsuite/gas/ppc/e6500.d: Likewise.
2398 * gas/testsuite/gas/ppc/power8.s: Likewise.
2399 * gas/testsuite/gas/ppc/power8.d: Likewise.
2400 * gas/testsuite/gas/ppc/power4.s <lwarx, ldarx, stwcx.,
2401 stdcx.>: Add tests.
2402 * gas/testsuite/gas/ppc/power4.d: Likewise.
2403
2404 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
2405
2406 PR binutis/18386
2407 * testsuite/gas/i386/i386.exp: Run x86-64-branch-4.
2408 * testsuite/gas/i386/x86-64-branch.d: Updated.
2409 * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
2410 * testsuite/gas/i386/x86-64-branch-4.l: New file.
2411 * testsuite/gas/i386/x86-64-branch-4.s: Likewise.
2412
2413 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2414
2415 * config/tc-aarch64.c (aarch64_cpus): Add cortex-a73 entry.
2416 * doc/c-aarch64.texi (-mcpu): Document cortex-a73 value.
2417
2418 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2419
2420 * config/tc-arm.c (arm_cpus): Add cortex-a73 entry.
2421 * doc/c-arm.texi (-mcpu=): Document cortex-a73 value.
2422
2423 2016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
2424
2425 * configure.tgt: Replace -uclibc with *.
2426
2427 2016-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * config/tc-arc.c (parse_opcode_flags): New function.
2430 (find_opcode_match): Move flag parsing code out to new function.
2431 Ignore operands marked IGNORE.
2432 (build_fake_opcode_hash_entry): New function.
2433 (find_special_case_long_opcode): New function.
2434 (find_special_case): Lookup long opcodes.
2435 * testsuite/gas/arc/nps400-7.d: New file.
2436 * testsuite/gas/arc/nps400-7.s: New file.
2437
2438 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2439
2440 * config/tc-ns32k.c: Remove definition of input_line_pointer.
2441
2442 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2443
2444 * config/tc-avr.c (avr_parse_cons_expression): Replace iteration to
2445 sentinal with iteration to array size.
2446
2447 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2448
2449 * config/xtensa-relax.h: Move typedefs of enums to the enums
2450 definition.
2451
2452 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2453
2454 * config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
2455 macro.
2456
2457 2016-06-01 Graham Markall <graham.markall@embecosm.com>
2458
2459 * testsuite/gas/arc/nps-400-1.s: Add rflt variants with
2460 operands of types a,b,u6, 0,b,u6, and 0,b,limm.
2461 * testsuite/gas/arc/nps-400-1.d: Likewise.
2462
2463 2016-05-29 H.J. Lu <hongjiu.lu@intel.com>
2464
2465 PR gas/20145
2466 * config/tc-i386.c (cpu_noarch): Add noavx512f, noavx512cd,
2467 noavx512er, noavx512pf, noavx512dq, noavx512bw, noavx512vl,
2468 noavx512ifma and noavx512vbmi.
2469 * doc/c-i386.texi: Mention noavx512f, noavx512cd, noavx512er,
2470 noavx512pf, noavx512dq, noavx512bw, noavx512vl, noavx512ifma
2471 and noavx512vbmi.
2472 * testsuite/gas/i386/i386.exp: Run noavx512-1 and noavx512-2.
2473 * testsuite/gas/i386/noavx512-1.l: New file.
2474 * testsuite/gas/i386/noavx512-1.s: Likewise.
2475 * testsuite/gas/i386/noavx512-2.l: Likewise.
2476 * testsuite/gas/i386/noavx512-2.s: Likewise.
2477
2478 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
2479
2480 PR gas/20145
2481 * config/tc-i386.c (cpu_arch): Add 687.
2482 (cpu_noarch): Add no287, no387, no687, nosse2, nosse3, nossse3,
2483 nosse4.1, nosse4.2, nosse4 and noavx2.
2484 (parse_real_register): Check cpuregmmx instead of cpummx for MMX
2485 register. Check cpuregxmm instead of cpusse for XMM register.
2486 Check cpuregymm instead of cpuavx for YMM register. Check
2487 cpuregzmm/cpuregmask instead of cpuavx512f for ZMMM/mask register.
2488 * doc/c-i386.texi: Mention 687, no287, no387, no687, nosse2,
2489 nosse3, nossse3, nosse4.1, nosse4.2, nosse4 and noavx2.
2490 * testsuite/gas/i386/arch-10-prefetchw.d (as): Add mmx.
2491 * testsuite/gas/i386/arch-10.d (as): Likewise.
2492 * testsuite/gas/i386/arch-11.s: Add ".arch .mmx".
2493 * testsuite/gas/i386/i386.exp: Pass mmx to assembler for
2494 arch-10-3 and arch-10-4. Run no87-3, nosse-4, nosse-5, noavx-3
2495 and noavx-4.
2496 * testsuite/gas/i386/no87-3.l: New file.
2497 * testsuite/gas/i386/no87-3.s: Likewise.
2498 * testsuite/gas/i386/noavx-3.l: Likewise.
2499 * testsuite/gas/i386/noavx-3.s: Likewise.
2500 * testsuite/gas/i386/noavx-4.d: Likewise.
2501 * testsuite/gas/i386/noavx-4.s: Likewise.
2502 * testsuite/gas/i386/nosse-4.l: Likewise.
2503 * testsuite/gas/i386/nosse-4.s: Likewise.
2504 * testsuite/gas/i386/nosse-5.d: Likewise.
2505 * testsuite/gas/i386/nosse-5.s: Likewise.
2506
2507 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
2508
2509 PR gas/20154
2510 * config/tc-i386.c (cpu_flags_match): Don't set cpuamd64 nor
2511 cpuintel64.
2512 (match_template): Check Intel64/AMD64 ISA.
2513
2514 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
2515
2516 PR gas/20154
2517 * config/tc-i386.c (intel64): New.
2518 (cpu_flags_match): Set cpuamd64 and cpuintel64.
2519 (md_parse_option): Set intel64 instead of cpuamd64 and
2520 cpuintel64.
2521
2522 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
2523
2524 * config/tc-i386.c (cpu_flags_match): Don't clear cpu64 nor
2525 cpuno64.
2526
2527 2016-05-26 Peter Bergner <bergner@vnet.ibm.com>
2528
2529 * testsuite/gas/ppc/altivec3.d <vmsumudm>: Add test.
2530 * testsuite/gas/ppc/altivec3.s: Likewise.
2531 * testsuite/gas/ppc/power9.d <addex[.], lwzmx, vmsumudm>: Add tests.
2532 * testsuite/gas/ppc/power9.s: Likewise.
2533
2534 2016-05-26 H.J. Lu <hongjiu.lu@intel.com>
2535
2536 * testsuite/gas/i386/avx512vl-2.l: Append "#pass".
2537 * testsuite/gas/i386/noavx-1.l: Likewise.
2538 * testsuite/gas/i386/nommx-1.l: Likewise.
2539 * testsuite/gas/i386/nosse-1.l: Likewise.
2540 * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
2541 * testsuite/gas/i386/avx512vl-2.s: Append ".p2align 4".
2542 * testsuite/gas/i386/noavx-1.s: Likewise.
2543 * testsuite/gas/i386/nommx-1.s: Likewise.
2544 * testsuite/gas/i386/nosse-1.s: Likewise.
2545 * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
2546
2547 2016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2548
2549 * config/tc-metag.c (metag_handle_align): Make the type of noop
2550 unsigned char.
2551
2552 2016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2553
2554 * config/tc-rx.c (md_convert_frag): Make the type of reloc_type
2555 bfd_reloc_code_real_type.
2556
2557 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
2558
2559 PR gas/20140
2560 * config/tc-i386.c (cpu_flags_match): Require another match
2561 for AVX512VL.
2562 * testsuite/gas/i386/i386.exp: Run avx512vl-1, avx512vl-2,
2563 x86-64-avx512vl-1 and x86-64-avx512vl-2.
2564 * testsuite/gas/i386/avx512vl-1.l: New file.
2565 * testsuite/gas/i386/avx512vl-1.s: Likewise.
2566 * testsuite/gas/i386/avx512vl-2.l: Likewise.
2567 * testsuite/gas/i386/avx512vl-2.s: Likewise.
2568 * testsuite/gas/i386/x86-64-avx512vl-1.l: Likewise.
2569 * testsuite/gas/i386/x86-64-avx512vl-1.s: Likewise.
2570 * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
2571 * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
2572
2573 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
2574
2575 PR gas/20141
2576 * testsuite/gas/i386/i386.exp: Run x86-64-pr20141.
2577 * testsuite/gas/i386/x86-64-pr20141.d: New file.
2578 * testsuite/gas/i386/x86-64-pr20141.s: Likewise.
2579
2580 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
2581
2582 * config/tc-i386.c (arch_entry): Remove negated.
2583 (noarch_entry): New struct.
2584 (cpu_arch): Updated. Remove .no87, .nommx, .nosse and .noavx.
2585 (cpu_noarch): New.
2586 (set_cpu_arch): Check cpu_noarch after cpu_arch.
2587 (md_parse_option): Allow -march=+nosse. Check cpu_noarch after
2588 cpu_arch.
2589 (output_message): New function.
2590 (show_arch): Use it. Handle cpu_noarch.
2591 * testsuite/gas/i386/i386.exp: Run nommx-1, nommx-2, nommx-3,
2592 nosse-1, nosse-2, nosse-3, noavx-1 and noavx-2.
2593 * testsuite/gas/i386/noavx-1.l: New file.
2594 * testsuite/gas/i386/noavx-1.s: Likewise.
2595 * testsuite/gas/i386/noavx-2.s: Likewise.
2596 * testsuite/gas/i386/noavx-2.l: Likewise.
2597 * testsuite/gas/i386/nommx-1.s: Likewise.
2598 * testsuite/gas/i386/nommx-1.l: Likewise.
2599 * testsuite/gas/i386/nommx-2.s: Likewise.
2600 * testsuite/gas/i386/nommx-2.l: Likewise.
2601 * testsuite/gas/i386/nommx-3.s: Likewise.
2602 * testsuite/gas/i386/nommx-3.l: Likewise.
2603 * testsuite/gas/i386/nosse-1.s: Likewise.
2604 * testsuite/gas/i386/nosse-1.l: Likewise.
2605 * testsuite/gas/i386/nosse-2.s: Likewise.
2606 * testsuite/gas/i386/nosse-2.l: Likewise.
2607 * testsuite/gas/i386/nosse-3.s: Likewise.
2608 * testsuite/gas/i386/nosse-3.l: Likewise.
2609
2610 2016-05-25 Chua Zheng Leong <chuazl@comp.nus.edu.sg>
2611
2612 PR target/20067
2613 * config/tc-arm.c (move_or_literal_pool): Only generate a VMOV.I64
2614 instruction if supported by the currently selected fpu variant.
2615 * testsuite/gas/arm/vfpv3-ldr_immediate.s: Add test of this PR.
2616 * testsuite/gas/arm/vfpv3-ldr_immediate.d: Update expected disassembly.
2617
2618 2016-05-24 Maciej W. Rozycki <macro@imgtec.com>
2619
2620 * config/tc-mips.c (mips_fix_adjustable): Also return 0 for
2621 jump relocations against MIPS16 or microMIPS symbols on RELA
2622 targets.
2623 * testsuite/gas/mips/jalx-local.d: New test.
2624 * testsuite/gas/mips/jalx-local-n32.d: New test.
2625 * testsuite/gas/mips/jalx-local-n64.d: New test.
2626 * testsuite/gas/mips/jalx-local.s: New test source.
2627 * testsuite/gas/mips/mips.exp: Run the new tests.
2628
2629 2016-05-24 Maciej W. Rozycki <macro@imgtec.com>
2630
2631 * config/tc-mips.c (md_apply_fix)
2632 <BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust
2633 code accordingly.
2634
2635 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2636
2637 * config/tc-xtensa.c (struct suffix_reloc_map): Change type of field
2638 operator to operatorT.
2639 (map_suffix_reloc_to_operator): Change return type to operatorT.
2640
2641 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2642
2643 * config/tc-d30v.c (find_format): Change type of X_op to operatorT.
2644
2645 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2646
2647 * config/tc-mmix.c (mmix_parse_predefined_name): Change type of
2648 handler_charp to const char *.
2649
2650 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2651
2652 * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
2653 (ft32_target_format): Likewise.
2654 (TARGET_FORMAT): Adjust.
2655
2656 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2657
2658 * config/tc-ia64.c (dot_rot): simplify allocations from obstacks.
2659 (ia64_frob_label): Likewise.
2660
2661 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2662
2663 * config/tc-cr16.c (check_range): Make type of retval op_err.
2664 * config/tc-crx.c: Likewise.
2665
2666 2016-05-23 Claudiu Zissulescu <claziss@synopsys.com>
2667
2668 * config/tc-arc.c (md_begin): Add XY registers.
2669 (cpu_types): Code density is default off for ARC EM.
2670
2671 2016-05-23 Cupertino Miranda <cmiranda@synopsys.com>
2672
2673 * config/tc-arc.c (attributes_t): Renamed attribute class to
2674 attr_class.
2675 (find_opcode_match, assemble_insn, tokenize_extinsn): Changed.
2676
2677 2016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
2678
2679 * configuse.tgt: Add entry for arm-phoenix.
2680
2681 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2682
2683 * config/tc-tic54x.c (tic54x_sect): simplify string creation.
2684
2685 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2686
2687 * config/tc-spu.c (APUOP): Use OPCODE as an unsigned constant.
2688
2689 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2690
2691 * config/tc-tic54x.c (tic54x_mmregs): Adjust.
2692 (md_begin): Likewise.
2693 (encode_condition): Likewise.
2694 (encode_cc3): Likewise.
2695 (encode_cc2): Likewise.
2696 (encode_operand): Likewise.
2697 (tic54x_undefined_symbol): Likewise.
2698
2699 2016-05-20 Matthew Fortune <matthew.fortune@imgtec.com>
2700
2701 * config/tc-mips.c (mips_cpu_info_table): Update comment. Add
2702 p6600 entry.
2703 * doc/c-mips.texi: Document p6600 -march option.
2704
2705 2016-05-20 H.J. Lu <hongjiu.lu@intel.com>
2706
2707 PR gas/19600
2708 * config/tc-i386.c (md_apply_fix): Preserve addend for
2709 BFD_RELOC_386_GOT32 and BFD_RELOC_X86_64_GOT32.
2710 * testsuite/gas/i386/addend.d: New file.
2711 * testsuite/gas/i386/addend.s: Likewise.
2712 * testsuite/gas/i386/x86-64-addend.d: Likewise.
2713 * testsuite/gas/i386/x86-64-addend.s: Likewise.
2714 * testsuite/gas/i386/i386.exp: Run addend and x86-64-addend.
2715 * testsuite/gas/i386/reloc32.d: Updated.
2716
2717 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
2718
2719 * config/tc-mips.c (append_insn): Correct the encoding of a
2720 constant argument for microMIPS JALX.
2721 (tc_gen_reloc): Correct the encoding of an in-place addend for
2722 microMIPS JALX.
2723 * testsuite/gas/mips/jalx-addend.d: New test.
2724 * testsuite/gas/mips/jalx-addend-n32.d: New test.
2725 * testsuite/gas/mips/jalx-addend-n64.d: New test.
2726 * testsuite/gas/mips/jalx-imm.d: New test.
2727 * testsuite/gas/mips/jalx-imm-n32.d: New test.
2728 * testsuite/gas/mips/jalx-imm-n64.d: New test.
2729 * testsuite/gas/mips/jalx-addend.s: New test source.
2730 * testsuite/gas/mips/jalx-imm.s: New test source.
2731 * testsuite/gas/mips/mips.exp: Run the new tests.
2732
2733 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
2734
2735 * config/tc-mips.c: Correct tab-after-space formatting mistakes
2736 throughout.
2737
2738 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2739
2740 * config/tc-arc.c (find_opcode_match): Remove casting away of
2741 const.
2742 * config/tc-arc.h (struct arc_flags): Make flgp field const.
2743
2744 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2745
2746 * config/tc-arc.c (md_pcrel_from_section): Use BFD_VMA_FMT where
2747 appropriate.
2748 (md_convert_frag): Likewise.
2749
2750 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * config/tc-arc.c (arc_opcode_hash_entry_iterator_next): Set
2753 cached opcode to NULL when we reach a non-matching opcode.
2754 * testsuite/gas/arc/asm-errors-2.d: New file.
2755 * testsuite/gas/arc/asm-errors-2.err: New file.
2756 * testsuite/gas/arc/asm-errors-2.s: New file.
2757
2758 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * config/tc-arc.c (tokenize_arguments): Add checks for array
2761 overflow.
2762 * testsuite/gas/arc/asm-errors.s: Addition test line added.
2763 * testsuite/gas/arc/asm-errors.err: Update expected results.
2764
2765 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2766
2767 * config/tc-rx.c (struct cpu_type): Change the type of a field from
2768 int to enum rx_cpu_types.
2769
2770 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2771
2772 * config/tc-dlx.c (struct machine_it): change the type of a field from
2773 int to bfd_reloc_code_real_type.
2774 * config/tc-tic4x.c: Likewise.
2775
2776 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2777
2778 * config/tc-v850.c (v850_target_arch): change type to enum
2779 bfd_architecture.
2780 * config/tc-v850.h (v850_target_arch): Likewise.
2781
2782 2016-05-18 Alan Modra <amodra@gmail.com>
2783
2784 * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
2785 allowed negative range.
2786 * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
2787 * testsuite/gas/ppc/power9.d: Update.
2788
2789 2016-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
2790
2791 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
2792 disassembling and stop skipping targets.
2793 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
2794 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
2795 * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
2796 instruction for targets that have stronger alignment requirement.
2797 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
2798 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
2799 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
2800 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
2801 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
2802 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
2803 * testsuite/gas/arm/archv8m-main.d: Likewise.
2804 * testsuite/gas/arm/archv8m.s: Add label.
2805 * testsuite/gas/arm/archv8m-cmse.s: Likewise.
2806 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
2807 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
2808
2809 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2810
2811 * config/tc-m32r.c (mach_table): Make static and const.
2812
2813 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2814
2815 * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
2816 definition.
2817
2818 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2819
2820 * config/tc-mn10300.c (md_begin): set linkrelax here instead of
2821 defining it.
2822 * config/tc-msp430.c (md_begin): Likewise.
2823
2824 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2825
2826 * config/tc-m68hc11.c (fixup8): Change variables type from int to
2827 bfd_reloc_code_real_type where appropriate.
2828 (fixup16): Likewise.
2829 (fixup8_xg): Likewise.
2830
2831 2016-05-15 Maciej W. Rozycki <macro@imgtec.com>
2832
2833 * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
2834
2835 2016-05-13 Peter Bergner <bergner@vnet.ibm.com>
2836
2837 * testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
2838 * testsuite/gas/ppc/power9.s: Likewise.
2839
2840 2016-05-13 Alan Modra <amodra@gmail.com>
2841
2842 * config/obj-coff.c (weak_uniquify): Delete unused var.
2843
2844 2016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2845
2846 * app.c (app_push): Use XNEW and related macros.
2847 * as.c (parse_args): Likewise.
2848 * cgen.c (make_right_shifted_expr): Likewise.
2849 (gas_cgen_tc_gen_reloc): Likewise.
2850 * config/bfin-defs.h: Likewise.
2851 * config/bfin-parse.y: Likewise.
2852 * config/obj-coff.c (stack_init): Likewise.
2853 (stack_push): Likewise.
2854 (coff_obj_symbol_new_hook): Likewise.
2855 (coff_obj_symbol_clone_hook): Likewise.
2856 (add_lineno): Likewise.
2857 (coff_frob_symbol): Likewise.
2858 * config/obj-elf.c (obj_elf_section_name): Likewise.
2859 (build_group_lists): Likewise.
2860 * config/obj-evax.c (evax_symbol_new_hook): Likewise.
2861 * config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
2862 * config/tc-aarch64.c (insert_reg_alias): Likewise.
2863 (find_or_make_literal_pool): Likewise.
2864 (add_to_lit_pool): Likewise.
2865 (fill_instruction_hash_table): Likewise.
2866 * config/tc-alpha.c (load_expression): Likewise.
2867 (emit_jsrjmp): Likewise.
2868 (s_alpha_ent): Likewise.
2869 (s_alpha_end): Likewise.
2870 (s_alpha_linkage): Likewise.
2871 (md_begin): Likewise.
2872 (tc_gen_reloc): Likewise.
2873 * config/tc-arc.c (arc_insert_opcode): Likewise.
2874 (arc_extcorereg): Likewise.
2875 * config/tc-bfin.c: Likewise.
2876 * config/tc-cr16.c: Likewise.
2877 * config/tc-cris.c: Likewise.
2878 * config/tc-crx.c (preprocess_reglist): Likewise.
2879 * config/tc-d10v.c: Likewise.
2880 * config/tc-frv.c (frv_insert_vliw_insn): Likewise.
2881 (frv_tomcat_shuffle): Likewise.
2882 * config/tc-h8300.c: Likewise.
2883 * config/tc-i370.c (i370_macro): Likewise.
2884 * config/tc-i386.c (lex_got): Likewise.
2885 (md_parse_option): Likewise.
2886 * config/tc-ia64.c (alloc_record): Likewise.
2887 (set_imask): Likewise.
2888 (save_prologue_count): Likewise.
2889 (dot_proc): Likewise.
2890 (dot_endp): Likewise.
2891 (ia64_frob_label): Likewise.
2892 (add_qp_imply): Likewise.
2893 (add_qp_mutex): Likewise.
2894 (mark_resource): Likewise.
2895 (dot_alias): Likewise.
2896 * config/tc-m68hc11.c: Likewise.
2897 * config/tc-m68k.c (m68k_frob_label): Likewise.
2898 (s_save): Likewise.
2899 (mri_control_label): Likewise.
2900 (push_mri_control): Likewise.
2901 (build_mri_control_operand): Likewise.
2902 (s_mri_else): Likewise.
2903 (s_mri_break): Likewise.
2904 (s_mri_next): Likewise.
2905 (s_mri_for): Likewise.
2906 (s_mri_endw): Likewise.
2907 * config/tc-metag.c (create_mnemonic_htab): Likewise.
2908 * config/tc-microblaze.c: Likewise.
2909 * config/tc-mmix.c (s_loc): Likewise.
2910 * config/tc-nds32.c (nds32_relax_hint): Likewise.
2911 * config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
2912 * config/tc-rl78.c: Likewise.
2913 * config/tc-rx.c (rx_include): Likewise.
2914 * config/tc-sh.c: Likewise.
2915 * config/tc-sh64.c (shmedia_frob_section_type): Likewise.
2916 * config/tc-sparc.c: Likewise.
2917 * config/tc-spu.c: Likewise.
2918 * config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
2919 (tic6x_start_unwind_section): Likewise.
2920 * config/tc-tilegx.c: Likewise.
2921 * config/tc-tilepro.c: Likewise.
2922 * config/tc-v850.c: Likewise.
2923 * config/tc-visium.c: Likewise.
2924 * config/tc-xgate.c: Likewise.
2925 * config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
2926 (new_resource_table): Likewise.
2927 (resize_resource_table): Likewise.
2928 (xtensa_create_trampoline_frag): Likewise.
2929 (xtensa_maybe_create_literal_pool_frag): Likewise.
2930 (cache_literal_section): Likewise.
2931 * config/xtensa-relax.c (append_transition): Likewise.
2932 (append_condition): Likewise.
2933 (append_value_condition): Likewise.
2934 (append_constant_value_condition): Likewise.
2935 (append_literal_op): Likewise.
2936 (append_label_op): Likewise.
2937 (append_constant_op): Likewise.
2938 (append_field_op): Likewise.
2939 (append_user_fn_field_op): Likewise.
2940 (enter_opname_n): Likewise.
2941 (enter_opname): Likewise.
2942 (split_string): Likewise.
2943 (parse_insn_templ): Likewise.
2944 (clone_req_or_option_list): Likewise.
2945 (clone_req_option_list): Likewise.
2946 (parse_option_cond): Likewise.
2947 (parse_insn_pattern): Likewise.
2948 (parse_insn_repl): Likewise.
2949 (build_transition): Likewise.
2950 (build_transition_table): Likewise.
2951 * dw2gencfi.c (alloc_fde_entry): Likewise.
2952 (alloc_cfi_insn_data): Likewise.
2953 (cfi_add_CFA_remember_state): Likewise.
2954 (dot_cfi_escape): Likewise.
2955 (dot_cfi_fde_data): Likewise.
2956 (select_cie_for_fde): Likewise.
2957 * dwarf2dbg.c (dwarf2_directive_loc): Likewise.
2958 * ecoff.c (ecoff_add_bytes): Likewise.
2959 (ecoff_build_debug): Likewise.
2960 * input-scrub.c (input_scrub_push): Likewise.
2961 (input_scrub_begin): Likewise.
2962 (input_scrub_next_buffer): Likewise.
2963 * itbl-ops.c (append_insns_as_macros): Likewise.
2964 (alloc_entry): Likewise.
2965 (alloc_field): Likewise.
2966 * listing.c (listing_newline): Likewise.
2967 (listing_listing): Likewise.
2968 * macro.c (get_any_string): Likewise.
2969 (delete_macro): Likewise.
2970 * stabs.c (generate_asm_file): Likewise.
2971 (stabs_generate_asm_lineno): Likewise.
2972 * subsegs.c (subseg_change): Likewise.
2973 (subseg_get): Likewise.
2974 * symbols.c (define_dollar_label): Likewise.
2975 (symbol_relc_make_sym): Likewise.
2976 * write.c (write_relocs): Likewise.
2977
2978 2016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2979
2980 * config/obj-coff.c (obj_coff_def): Simplify string copying.
2981 (weak_name2altname): Likewise.
2982 (weak_uniquify): Likewise.
2983 (obj_coff_section): Likewise.
2984 (obj_coff_init_stab_section): Likewise.
2985 * config/obj-elf.c (obj_elf_section_name): Likewise.
2986 (obj_elf_init_stab_section): Likewise.
2987 * config/obj-evax.c (evax_shorten_name): Likewise.
2988 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
2989 * config/tc-aarch64.c (create_register_alias): Likewise.
2990 * config/tc-alpha.c (load_expression): Likewise.
2991 (s_alpha_file): Likewise.
2992 (s_alpha_section_name): Likewise.
2993 (tc_gen_reloc): Likewise.
2994 * config/tc-arc.c (md_assemble): Likewise.
2995 * config/tc-arm.c (create_neon_reg_alias): Likewise.
2996 (start_unwind_section): Likewise.
2997 * config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
2998 (hppa_elf_mark_end_of_function): Likewise.
2999 * config/tc-nios2.c (nios2_modify_arg): Likewise.
3000 (nios2_negate_arg): Likewise.
3001 * config/tc-rx.c (rx_section): Likewise.
3002 * config/tc-sh64.c (sh64_consume_datalabel): Likewise.
3003 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
3004 * config/tc-tic54x.c (tic54x_include): Likewise.
3005 (tic54x_macro_info): Likewise.
3006 (subsym_get_arg): Likewise.
3007 (subsym_substitute): Likewise.
3008 (tic54x_start_line_hook): Likewise.
3009 * config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
3010 (xg_reverse_shift_count): Likewise.
3011 * config/xtensa-relax.c (enter_opname_n): Likewise.
3012 (split_string): Likewise.
3013 * dwarf2dbg.c (get_filenum): Likewise.
3014 (process_entries): Likewise.
3015 * expr.c (operand): Likewise.
3016 * itbl-ops.c (alloc_entry): Likewise.
3017 * listing.c (listing_message): Likewise.
3018 (listing_title): Likewise.
3019 * macro.c (check_macro): Likewise.
3020 * stabs.c (s_xstab): Likewise.
3021 * symbols.c (symbol_relc_make_expr): Likewise.
3022 * write.c (compress_debug): Likewise.
3023
3024 2016-05-12 Nick Clifton <nickc@redhat.com>
3025
3026 PR target/20068
3027 * testsuite/gas/arm/pr20068.d: Use correct regexp syntax.
3028
3029 2016-05-11 Nick Clifton <nickc@redhat.com>
3030
3031 PR target/20068
3032 * testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
3033 big endian ARM configurations.
3034
3035 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
3036 Matthew Fortune <matthew.fortune@imgtec.com>
3037
3038 * config/tc-mips.c (options): Add OPTION_DSPR3 and
3039 OPTION_NO_DSPR3.
3040 (md_longopts): Likewise.
3041 (md_show_usage): Add help for -mdspr3 and -mno-dspr3.
3042 (mips_ases): Define availability for DSPr3.
3043 (mips_ase_groups): Add ASE_DSPR3 to the DSP group.
3044 (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
3045 * doc/as.texinfo: Document -mdspr3, -mno-dspr3. Fix -mdspr2
3046 formatting.
3047 * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
3048 .set nodspr3. Fix -mdspr2 formatting.
3049 * testsuite/gas/mips/mips32-dspr3.d: New file.
3050 * testsuite/gas/mips/mips32-dspr3.s: Likewise.
3051 * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
3052
3053 2016-05-11 Nick Clifton <nickc@redhat.com>
3054
3055 PR target/20068
3056 * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
3057 to the pool uses O_constant.
3058 * testsuite/gas/arm/pr20068.s: New test.
3059 * testsuite/gas/arm/pr20068.d: Test driver.
3060
3061 2016-05-11 Nick Clifton <nickc@redhat.com>
3062
3063 * testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
3064 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3065 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3066 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
3067 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3068 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3069 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3070 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3071 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
3072
3073 2016-05-10 Alexander Fomin <alexander.fomin@intel.com>
3074
3075 * testsuite/gas/i386/i386.exp: Run RDPID tests.
3076 * testsuite/gas/i386/prefix.d: Adjust.
3077 * testsuite/gas/i386/rdpid.s: New test.
3078 * testsuite/gas/i386/rdpid.d: Ditto.
3079 * testsuite/gas/i386/rdpid-intel.d: Ditto.
3080 * testsuite/gas/i386/x86-64-rdpid.s: Ditto.
3081 * testsuite/gas/i386/x86-64-rdpid.d: Ditto.
3082 * testsuite/gas/i386/x86-64-rdpid-intel.d: Ditto.
3083
3084 2016-05-10 Alexander Fomin <alexander.fomin@intel.com>
3085
3086 * config/tc-i386.c (cpu_arch): Add RDPID.
3087 * doc/c-i386.texi: Document RDPID.
3088
3089 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3090
3091 * config/tc-arm.c (arm_adjust_symtab): Use ARM_SET_SYM_BRANCH_TYPE to
3092 set branch type of a symbol.
3093
3094 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3095
3096 * NEWS: Document ARMv8-M and ARMv8-M Security and DSP Extensions.
3097 * config/tc-arm.c (arm_ext_dsp): New feature for Thumb DSP
3098 instructions.
3099 (arm_extensions): Add dsp extension for ARMv8-M Mainline.
3100 (aeabi_set_public_attributes): Memorize the feature bits of the
3101 architecture selected for Tag_CPU_arch. Use it to set
3102 Tag_DSP_extension to 1 for ARMv8-M Mainline with DSP extension.
3103 (arm_convert_symbolic_attribute): Define Tag_DSP_extension.
3104 * testsuite/gas/arm/arch7em-bad.d: Rename to ...
3105 * testsuite/gas/arm/arch7em-bad-1.d: This.
3106 * testsuite/gas/arm/arch7em-bad-2.d: New file.
3107 * testsuite/gas/arm/arch7em-bad-3.d: Likewise.
3108 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3109 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3110 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3111 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
3112 * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
3113 * testsuite/gas/arm/attr-march-armv8m.main.dsp.d: Likewise.
3114
3115 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3116
3117 * config/tc-arm.c (struct arm_option_extension_value_table): Make
3118 allowed_archs an array with 2 entries.
3119 (ARM_EXT_OPT): Adapt to only fill the first entry of allowed_archs.
3120 (ARM_EXT_OPT2): New macro filling the two entries of allowed_archs.
3121 (arm_extensions): Use separate entries in allowed_archs when several
3122 archs are allowed to use an extension and change ARCH_ANY in
3123 ARM_ARCH_NONE in allowed_archs.
3124 (arm_parse_extension): Check that, for each allowed_archs entry, all
3125 bits are set in the current architecture, ignoring ARM_ANY entries.
3126 (s_arm_arch_extension): Likewise.
3127
3128 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3129
3130 * config/tc-arm.c (arm_ext_m): Add feature bit ARM_EXT2_V8M_MAIN.
3131 (arm_ext_v8m_main): New feature set for bit ARM_EXT2_V8M_MAIN.
3132 (arm_ext_v8m_m_only): New feature set for instructions in ARMv8-M not
3133 shared with a non M profile architecture.
3134 (do_rn): New function.
3135 (known_t32_only_insn): Check opcode against arm_ext_v8m_m_only rather
3136 than arm_ext_v8m.
3137 (v7m_psrs): Add ARMv8-M security extensions new special registers.
3138 (insns): Add ARMv8-M Security Extensions instructions.
3139 (aeabi_set_public_attributes): Use arm_ext_v8m_m_only instead of
3140 arm_ext_v8m_m to decide the profile and the Thumb ISA.
3141 * testsuite/gas/arm/archv8m-cmse.s: New file.
3142 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise..
3143 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
3144 * testsuite/gas/arm/any-cmse.d: Likewise.
3145 * testsuite/gas/arm/any-cmse-main.d: Likewise.
3146 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
3147 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
3148 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3149 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3150 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3151
3152 2016-05-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3153
3154 * testsuite/gas/sparc/sparc5vis4.s: Fix mnemonic of faligndatai.
3155 * testsuite/gas/sparc/sparc5vis4.d: Likewise.
3156
3157 2016-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3158
3159 * config/tc-arm.c (fpu_arch_vfp_v1): Mark with ATTRIBUTE_UNUSED.
3160 (fpu_arch_vfp_v3): Likewise.
3161 (fpu_arch_neon_v1): Likewise.
3162 (arm_arch_full): Likewise.
3163 (parse_neon_el_struct_list): Initialize fields of firsttype.
3164
3165 2016-05-03 Claudiu Zissulescu <claziss@synopsys.com>
3166
3167 * config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
3168 (arc_extinsn): Handle new introduced syntax.
3169 * testsuite/gas/arc/textinsn1op.d: New file.
3170 * testsuite/gas/arc/textinsn1op.s: Likewise.
3171 * doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
3172
3173 2016-05-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3174
3175 * testsuite/gas/lns/lns.exp: Add avr to list of targets using
3176 DW_LNS_fixed_advance_pc.
3177
3178 2016-04-27 Alan Modra <amodra@gmail.com>
3179
3180 * as.h (inline, __PTR_TO_INT, __INT_TO_PTR): Don't define.
3181 (xmemdup0): New inline function.
3182
3183 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
3184
3185 * config/tc-mips.c (code_option_type): New enum.
3186 (parse_code_option): Return status indicating option type.
3187 (s_mipsset): Update `parse_code_option' call site accordingly.
3188 Always set register sizes from the ISA with ISA overrides.
3189 (s_module): Update `parse_code_option' call site.
3190 * testsuite/gas/mips/isa-override-1.d: New test.
3191 * testsuite/gas/mips/micromips@isa-override-1.d: New test.
3192 * testsuite/gas/mips/mips1@isa-override-1.d: New test.
3193 * testsuite/gas/mips/mips2@isa-override-1.d: New test.
3194 * testsuite/gas/mips/mips32@isa-override-1.d: New test.
3195 * testsuite/gas/mips/mips32r2@isa-override-1.d: New test.
3196 * testsuite/gas/mips/mips32r3@isa-override-1.d: New test.
3197 * testsuite/gas/mips/mips32r5@isa-override-1.d: New test.
3198 * testsuite/gas/mips/mips32r6@isa-override-1.d: New test.
3199 * testsuite/gas/mips/mips64r2@isa-override-1.d: New test.
3200 * testsuite/gas/mips/mips64r3@isa-override-1.d: New test.
3201 * testsuite/gas/mips/mips64r5@isa-override-1.d: New test.
3202 * testsuite/gas/mips/mips64r6@isa-override-1.d: New test.
3203 * testsuite/gas/mips/r3000@isa-override-1.d: New test.
3204 * testsuite/gas/mips/r3900@isa-override-1.d: New test.
3205 * testsuite/gas/mips/r5900@isa-override-1.d: New test.
3206 * testsuite/gas/mips/octeon@isa-override-1.d: New test.
3207 * testsuite/gas/mips/octeon3@isa-override-1.d: New test.
3208 * testsuite/gas/mips/isa-override-2.l: New list test.
3209 * testsuite/gas/mips/mips1@isa-override-2.l: New list test.
3210 * testsuite/gas/mips/mips2@isa-override-2.l: New list test.
3211 * testsuite/gas/mips/mips32@isa-override-2.l: New list test.
3212 * testsuite/gas/mips/mips32r2@isa-override-2.l: New list test.
3213 * testsuite/gas/mips/mips32r3@isa-override-2.l: New list test.
3214 * testsuite/gas/mips/mips32r5@isa-override-2.l: New list test.
3215 * testsuite/gas/mips/mips32r6@isa-override-2.l: New list test.
3216 * testsuite/gas/mips/r3000@isa-override-2.l: New list test.
3217 * testsuite/gas/mips/r3900@isa-override-2.l: New list test.
3218 * testsuite/gas/mips/octeon3@isa-override-2.l: New list test.
3219 * testsuite/gas/mips/octeon3@isa-override-1.l: New stderr
3220 output.
3221 * testsuite/gas/mips/isa-override-1.s: New test source.
3222 * testsuite/gas/mips/r5900@isa-override-1.s: New test source.
3223 * testsuite/gas/mips/isa-override-2.s: New test source.
3224 * testsuite/gas/mips/mips1@isa-override-2.s: New test source.
3225 * testsuite/gas/mips/mips2@isa-override-2.s: New test source.
3226 * testsuite/gas/mips/mips32@isa-override-2.s: New test source.
3227 * testsuite/gas/mips/mips32r2@isa-override-2.s: New test source.
3228 * testsuite/gas/mips/mips32r3@isa-override-2.s: New test source.
3229 * testsuite/gas/mips/mips32r5@isa-override-2.s: New test source.
3230 * testsuite/gas/mips/mips32r6@isa-override-2.s: New test source.
3231 * testsuite/gas/mips/r3000@isa-override-2.s: New test source.
3232 * testsuite/gas/mips/r3900@isa-override-2.s: New test source.
3233 * testsuite/gas/mips/octeon3@isa-override-2.s: New test source.
3234 * testsuite/gas/mips/mips.exp: Run the new tests.
3235
3236 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3237
3238 * cgen.c: Likewise.
3239 * config/tc-bfin.c: Likewise.
3240 * config/tc-ia64.c: Likewise.
3241 * config/tc-mep.c: Likewise.
3242 * config/tc-metag.c: Likewise.
3243 * config/tc-nios2.c: Likewise.
3244 * config/tc-rl78.c: Likewise.
3245
3246 2016-04-20 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
3249 -mcpu. Add cross reference to .cpu directive from -mcpu option.
3250 (ARC Directives): Add NPS400 to .cpu directive list.
3251
3252 2016-04-20 Matthew Wahab <matthew.wahab@arm.com>
3253
3254 * config/tc-aarch64.c (aarch64_features): Add "ras".
3255 * doc/c-aarch64.texi (AArch64 Extensions): Add "ras".
3256 * testsuite/gas/aarch64/armv8-ras-1.d: New.
3257 * testsuite/gas/aarch64/armv8-ras-1.s: New.
3258 * testsuite/gas/aarch64/illegal-ras-1.d: New.
3259 * testsuite/gas/aarch64/illegal-ras-1.s: New.
3260
3261 2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
3262
3263 * testsuite/gas/arc/nps400-6.d: New file.
3264 * testsuite/gas/arc/nps400-6.s: New file.
3265
3266 2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * testsuite/gas/arc/nps400-4.d: New file.
3269 * testsuite/gas/arc/nps400-4.s: New file.
3270 * testsuite/gas/arc/nps400-5.d: New file.
3271 * testsuite/gas/arc/nps400-5.s: New file.
3272
3273 2016-04-19 Martin Galvan <martin.galvan@tallertechnologies.com>
3274
3275 * doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
3276 documentation.
3277
3278 2016-04-17 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 Revert prevous change.
3281 * config/tc-arc.c (arc_option): Make .cpu directive
3282 case-sensitive again.
3283
3284 2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * config/tc-arc.c (arc_option): Make .cpu directive
3287 case-insensitive.
3288
3289 2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
3292
3293 2016-04-15 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3294
3295 * config/tc-mips.c (md_begin): Remove useless assignment.
3296
3297 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
3298
3299 * Makefile.in: Regenerated with automake 1.11.6.
3300 * aclocal.m4: Likewise.
3301 * doc/Makefile.in: Likewise.
3302
3303 2016-04-15 Alan Modra <amodra@gmail.com>
3304
3305 * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
3306
3307 2016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3308
3309 * config/tc-nios2.c (nios2_as_options): Make file static.
3310 * config/tc-ppc.c (toc_reloc_ypes): Likewise.
3311 * config/tc-sparc.c (native_op_table): Likewise.
3312
3313 2016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3314
3315 * config/tc-m32c.c (M32C_Macros): Remove.
3316 * config/tc-msp430.c (option_numbers): Likewise.
3317
3318 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * testsuite/gas/arc/nps400-3.d: New file.
3321 * testsuite/gas/arc/nps400-3.s: New file.
3322
3323 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * testsuite/gas/arc/add_s-err.s: Update target pattern.
3326 * testsuite/gas/arc/warn.s: Likewise.
3327 * testsuite/gas/elf/elf.exp: Run test for arc.
3328
3329 2016-04-14 Nick Clifton <nickc@redhat.com>
3330
3331 PR target/19938
3332 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Allow for the string
3333 sections possibly having the SHF_STRINGS flag bit set.
3334 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
3335
3336 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3337
3338 * config/tc-arc.c (mach_type_specified_p): Change type to
3339 bfd_boolean.
3340 (arc_option): Set private flags when parsing cpu pseudo-op.
3341 (md_parse_option): Set mach_type_specified_p to TRUE.
3342
3343 2016-04-13 Nick Clifton <nickc@redhat.com>
3344
3345 PR target/19937
3346 * testsuite/gas/v850/pr19937.s: New test.
3347 * testsuite/gas/v850/pr19937.d: New test control file.
3348 * testsuite/gas/v850/basic.exp: Run the new test.
3349
3350 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
3351 Andrew Bennett <andrew.bennett@imgtec.com>
3352
3353 * config/tc-mips.c (relaxed_branch_length): Use the long
3354 sequence where the target is a weak symbol.
3355 (relaxed_micromips_32bit_branch_length): Likewise.
3356 (relaxed_micromips_16bit_branch_length): Likewise.
3357 * testsuite/gas/mips/branch-weak-1.d: New test.
3358 * testsuite/gas/mips/branch-weak-2.d: New test.
3359 * testsuite/gas/mips/branch-weak-3.d: New test.
3360 * testsuite/gas/mips/branch-weak-4.d: New test.
3361 * testsuite/gas/mips/branch-weak-5.d: New test.
3362 * testsuite/gas/mips/branch-weak.l: New stderr output.
3363 * testsuite/gas/mips/branch-weak.s: New test source.
3364 * testsuite/gas/mips/mips.exp: Run the new tests.
3365
3366 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
3367
3368 * config/tc-mips.c (relaxed_branch_length): Use the long
3369 sequence where the distance cannot be determined.
3370 (relaxed_micromips_32bit_branch_length): Likewise.
3371 * testsuite/gas/mips/branch-extern-1.d: New test.
3372 * testsuite/gas/mips/branch-extern-2.d: New test.
3373 * testsuite/gas/mips/branch-extern-3.d: New test.
3374 * testsuite/gas/mips/branch-extern-4.d: New test.
3375 * testsuite/gas/mips/branch-extern.l: New stderr output.
3376 * testsuite/gas/mips/branch-extern.s: New test source.
3377 * testsuite/gas/mips/branch-section-1.d: New test.
3378 * testsuite/gas/mips/branch-section-2.d: New test.
3379 * testsuite/gas/mips/branch-section-3.d: New test.
3380 * testsuite/gas/mips/branch-section-4.d: New test.
3381 * testsuite/gas/mips/branch-section.l: New stderr output.
3382 * testsuite/gas/mips/branch-section.s: New test source.
3383 * testsuite/gas/mips/mips.exp: Run the new tests.
3384
3385 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3386
3387 * testsuite/gas/arc/textauxregister.d: New file.
3388 * testsuite/gas/arc/textauxregister.s: Likewise.
3389 * testsuite/gas/arc/textcondcode.d: Likewise.
3390 * testsuite/gas/arc/textcondcode.s: Likewise.
3391 * testsuite/gas/arc/textcoreregister.d: Likewise.
3392 * testsuite/gas/arc/textcoreregister.s: Likewise.
3393 * testsuite/gas/arc/textpseudoop.d: Likewise.
3394 * testsuite/gas/arc/textpseudoop.s: Likewise.
3395 * testsuite/gas/arc/ld2.d: Update test.
3396 * testsuite/gas/arc/st.d: Likewise.
3397 * testsuite/gas/arc/taux.d: Likewise.
3398 * doc/c-arc.texi (ARC Directives): Add .extCondCode,
3399 .extCoreRegister and .extAuxRegister documentation.
3400 * config/tc-arc.c (arc_extcorereg): New function.
3401 (md_pseudo_table): Add .extCondCode, .extCoreRegister and
3402 .extAuxRegister pseudo-ops.
3403 (extRegister_t): New type.
3404 (ext_condcode, arc_aux_hash): New global variable.
3405 (find_opcode_match): Check for extensions.
3406 (preprocess_operands): Likewise.
3407 (md_begin): Add aux registers in a hash.
3408 (assemble_insn): Update use arc_flags member.
3409 (tokenize_extregister): New function.
3410 (create_extcore_section): Likewise.
3411 * config/tc-arc.h (arc_flags): Delete code, add flgp.
3412
3413 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3414
3415 * testsuite/gas/arc/noargs_a7.d: New file.
3416 * testsuite/gas/arc/noargs_a7.s: Likewise.
3417 * testsuite/gas/arc/noargs_hs.d: Likewise.
3418 * testsuite/gas/arc/noargs_hs.s: Likewise.
3419
3420 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3421
3422 * testsuite/gas/arc/textinsn-errors.d: New File.
3423 * testsuite/gas/arc/textinsn-errors.err: Likewise.
3424 * testsuite/gas/arc/textinsn-errors.s: Likewise.
3425 * testsuite/gas/arc/textinsn2op.d: Likewise.
3426 * testsuite/gas/arc/textinsn2op.s: Likewise.
3427 * testsuite/gas/arc/textinsn2op01.d: Likewise.
3428 * testsuite/gas/arc/textinsn2op01.s: Likewise.
3429 * testsuite/gas/arc/textinsn3op.d: Likewise.
3430 * testsuite/gas/arc/textinsn3op.s: Likewise.
3431 * doc/c-arc.texi (ARC Directives): Add .extInstruction
3432 documentation.
3433 * config/tc-arc.c (arcext_section): New variable.
3434 (arc_extinsn): New function.
3435 (md_pseudo_table): Add .extInstruction pseudo op.
3436 (attributes_t): New type.
3437 (suffixclass, syntaxclass, syntaxclassmod): New constant
3438 structures.
3439 (find_opcode_match): Remove arc_num_opcodes.
3440 (md_begin): Likewise.
3441 (tokenize_extinsn): New function.
3442 (arc_set_ext_seg): Likewise.
3443 (create_extinst_section): Likewise.
3444
3445 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3446
3447 * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
3448 (arc_adjust_symtab): New function.
3449 * config/tc-arc.h (ARC_FLAG_AUX): Define.
3450 (obj_adjust_symtab): Likewise.
3451 * testsuite/gas/arc/taux.d: New file.
3452 * testsuite/gas/arc/taux.s: Likewise.
3453
3454 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3455
3456 * config/tc-mips.c (s_option): Sanitize `.option picX'
3457 pseudo-op.
3458 * testsuite/gas/mips/option-pic-1.d: New test.
3459 * testsuite/gas/mips/option-pic-2.l: New list test.
3460 * testsuite/gas/mips/option-pic-1.s: New test source.
3461 * testsuite/gas/mips/option-pic-2.s: New test source.
3462 * testsuite/gas/mips/mips.exp: Run the new tests.
3463
3464 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3465
3466 * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
3467 PIC.
3468 * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
3469 * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
3470 * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
3471 * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
3472 * testsuite/gas/mips/mips.exp: Run the new tests.
3473
3474 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3475
3476 * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
3477
3478 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3479
3480 * messages.c (as_bad): Fix a typo in description.
3481
3482 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3483
3484 * config/tc-mips.c (mips_check_options): Unify messages.
3485
3486 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3487
3488 * config/tc-mips.c (mips_check_options): Use `opts->isa'
3489 consistently.
3490
3491 2016-04-08 Nick Clifton <nickc@redhat.com>
3492
3493 PR target/19910
3494 * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
3495 COFF and AOUT sparc targets.
3496
3497 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
3500 * testsuite/gas/arc/nps400-2.d: New file.
3501 * testsuite/gas/arc/nps400-2.s: New file.
3502
3503 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
3506 structure.
3507 (arc_opcode_hash_entry_iterator_init): New function.
3508 (arc_opcode_hash_entry_iterator_next): New function.
3509 (find_opcode_match): Iterate over all arc_opcode entries
3510 referenced by the arc_opcode_hash_entry passed in as a parameter.
3511
3512 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * config/tc-arc.c (arc_find_opcode): Now returns
3515 arc_opcode_hash_entry pointer.
3516 (find_opcode_match): Update argument type, extract arc_opcode from
3517 incoming arc_opcode_hash_entry.
3518 (find_special_case_pseudo): Update return type.
3519 (find_special_case_flag): Update return type.
3520 (find_special_case): Update return type.
3521 (assemble_tokens): Lookup arc_opcode_hash_entry based on
3522 instruction mnemonic, then use find_opcode_match to identify
3523 specific arc_opcode.
3524
3525 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
3528 (arc_find_opcode): New function.
3529 (find_special_case_pseudo): Use arc_find_opcode.
3530 (find_special_case_flag): Likewise.
3531 (assemble_tokens): Likewise.
3532 (md_begin): Build hash using struct arc_opcode_hash_entry.
3533
3534 2016-04-07 Claudiu Zissulescu <claziss@synopsys.com>
3535
3536 * config/tc-arc.c (arc_option): Prepare string for automatic
3537 translation.
3538 (declare_register): Likewise.
3539
3540 2016-04-06 James Greenhalgh <james.greenhalgh@arm.com>
3541
3542 * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
3543 Correct entry for RDMA. Alpha sort entries.
3544
3545 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * config/tc-arc.c (tokenize_flags): Allow greater range of
3548 characters into flag names.
3549
3550 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
3553 new de_fault label.
3554 (preprocess_operands): Delete.
3555 (assemble_tokens): Remove call to preprocess_operands.
3556
3557 2016-04-07 Nick Clifton <nickc@redhat.com>
3558
3559 PR gas/19910
3560 * config/tc-sparc.c (sparc_ip): Report an error if the expression
3561 inside a %-macro could not be fully parsed.
3562 * expr.c (integer_constant): Accept and ignore U suffixes to
3563 integers.
3564 (operand): When a missing closing parenthesis is encountered,
3565 report the character that was found instead.
3566 * testsuite/gas/mips/tls-ill.l: Update expected error message.
3567 * testsuite/gas/sparc/pr19910-1.d: New test driver.
3568 * testsuite/gas/sparc/pr19910-1.s: New test.
3569 * testsuite/gas/sparc/pr19910-2.l: Expected error output.
3570 * testsuite/gas/sparc/pr19910-2.s: New test.
3571 * testsuite/gas/sparc/sparc.exp: Run the new tests.
3572
3573 2016-04-06 Nick Clifton <nickc@redhat.com>
3574
3575 * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
3576 an EINT instruction. Warn/fix as necessary.
3577 * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
3578 * testsuite/gas/msp430/bad.l: Update expected messages.
3579
3580 2016-04-05 Andrew Burgess <andrew.burgess@embecosm.com>
3581
3582 * testsuite/gas/arc/nps400-1.d: Update expected results.
3583 * testsuite/gas/arc/nps400-1.s: Additional test cases.
3584
3585 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
3586
3587 * config/tc-arc.c (is_code_density_p): Compare directly the
3588 subclass field.
3589 (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
3590 (check_cpu_feature): New function.
3591 (find_opcode_match): Use check_cpu_feature function.
3592 (preprocess_operands): Likewise.
3593 (md_parse_option): Use mfpuda, mdpfp, mspfp options.
3594 * testsuite/gas/arc/tdpfp.d: New file.
3595 * testsuite/gas/arc/tfpuda.d: Likewise.
3596 * testsuite/gas/arc/tfpx.s: Likewise.
3597
3598 2016-04-05 Jiong Wang <jiong.wang@arm.com>
3599
3600 * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
3601 * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
3602 * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
3603 * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
3604 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
3605 * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
3606 * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
3607 * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
3608 for Thumb.
3609 * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
3610
3611 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
3612
3613 * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
3614 JUMP instructions type.
3615 * testsuite/gas/arc/relocs-errors.d: New file.
3616 * testsuite/gas/arc/relocs-errors.err: Likewise.
3617 * testsuite/gas/arc/relocs-errors.s: Likewise.
3618
3619 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
3620
3621 PR gas/19909
3622 * config/tc-i386.c (check_VecOperands): Try vec_disp8 encoding
3623 only if i.disp_encoding != disp_encoding_32bit.
3624 * gas/testsuite/gas/i386/disp32.s: Add tests for vmovdqu64.d32.
3625 * gas/testsuite/gas/i386/x86-64-disp32.s: Likewise.
3626 * gas/testsuite/gas/i386/disp32.d: Updated.
3627 * gas/testsuite/gas/i386/x86-64-disp32.d: Likewise.
3628
3629 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
3630
3631 PR gas/19498
3632 * testsuite/gas/i386/i386.exp: Run pr19498.
3633 * testsuite/gas/i386/pr19498.d: New file.
3634 * testsuite/gas/i386/pr19498.s: Likewise.
3635
3636 2016-04-04 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * config/tc-arc.h: Include 'opcode/arc.h'.
3639 (MAX_INSN_ARGS): Delete.
3640 (MAX_INSN_FLGS): Delete.
3641
3642 2016-04-04 Alan Modra <amodra@gmail.com>
3643
3644 PR 19498
3645 * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
3646 from function on all paths that set sy_resolving.
3647
3648 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3649
3650 * app.c (app_push): use XNEW macro.
3651 * as.c: Likewise.
3652 * config/obj-elf.c (obj_elf_change_section): Likewise.
3653 (elf_copy_symbol_attributes): Likewise.
3654 (obj_elf_size): Likewise.
3655 (build_group_lists): Likewise.
3656 * config/tc-aarch64.c (add_operand_error_record): Likewise.
3657 (md_assemble): Likewise.
3658 (tc_gen_reloc): Likewise.
3659 (get_upper_str): Likewise.
3660 (aarch64_parse_features): Likewise.
3661 * config/tc-arm.c (insert_reg_alias): Likewise.
3662 (insert_neon_reg_alias): Likewise.
3663 (find_or_make_literal_pool): Likewise.
3664 (s_arm_elf_cons): Likewise.
3665 (add_unwind_opcode): Likewise.
3666 (arm_parse_extension): Likewise.
3667 * config/tc-avr.c (create_record_for_frag): Likewise.
3668 * config/tc-crx.c: Likewise.
3669 * config/tc-d30v.c: Likewise.
3670 * config/tc-dlx.c (s_proc): Likewise.
3671 * config/tc-ft32.c: Likewise.
3672 * config/tc-h8300.c: Likewise.
3673 * config/tc-hppa.c (pa_proc): Likewise.
3674 (create_new_space): Likewise.
3675 (create_new_subspace): Likewise.
3676 * config/tc-i860.c: Likewise.
3677 * config/tc-i960.c: Likewise.
3678 * config/tc-ia64.c: Likewise.
3679 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
3680 (iq2000_record_hi16): Likewise.
3681 * config/tc-m32c.c (m32c_indirect_operand): Likewise.
3682 * config/tc-m32r.c (debug_sym): Likewise.
3683 (m32r_record_hi16): Likewise.
3684 * config/tc-m68k.c (m68k_ip): Likewise.
3685 (md_begin): Likewise.
3686 * config/tc-mcore.c: Likewise.
3687 * config/tc-microblaze.c (check_got): Likewise.
3688 * config/tc-mips.c (append_insn): Likewise.
3689 (s_mipsset): Likewise.
3690 (mips_record_label): Likewise.
3691 (s_mips_end): Likewise.
3692 * config/tc-mmix.c (mmix_frob_file): Likewise.
3693 * config/tc-mn10200.c: Likewise.
3694 * config/tc-mn10300.c: Likewise.
3695 * config/tc-moxie.c: Likewise.
3696 * config/tc-msp430.c: Likewise.
3697 * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
3698 * config/tc-ns32k.c: Likewise.
3699 * config/tc-or1k.c: Likewise.
3700 * config/tc-pdp11.c: Likewise.
3701 * config/tc-pj.c (fake_opcode): Likewise.
3702 * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
3703 (ppc_macro): Likewise.
3704 (ppc_dwsect): Likewise.
3705 (ppc_machine): Likewise.
3706 * config/tc-rl78.c (rl78_frag_init): Likewise.
3707 * config/tc-rx.c (rx_frag_init): Likewise.
3708 * config/tc-s390.c (s390_lit_suffix): Likewise.
3709 (s390_machine): Likewise.
3710 (s390_machinemode): Likewise.
3711 * config/tc-score.c (s3_insert_reg): Likewise.
3712 (s3_gen_reloc): Likewise.
3713 * config/tc-score7.c (s7_insert_reg): Likewise.
3714 (s7_gen_reloc): Likewise.
3715 * config/tc-tic30.c (tic30_operand): Likewise.
3716 * config/tc-tic4x.c (tic4x_inst_make): Likewise.
3717 * config/tc-tic54x.c (stag_add_field): Likewise.
3718 (tic54x_struct): Likewise.
3719 (tic54x_space): Likewise.
3720 (tic54x_field): Likewise.
3721 (tic54x_mlib): Likewise.
3722 (subsym_substitute): Likewise.
3723 * config/tc-tic6x.c (tic6x_frob_label): Likewise.
3724 * config/tc-vax.c: Likewise.
3725 * config/tc-xc16x.c: Likewise.
3726 * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
3727 (directive_push): Likewise.
3728 (xtensa_begin_directive): Likewise.
3729 (tokenize_arguments): Likewise.
3730 (xtensa_add_literal_sym): Likewise.
3731 (new_resource_table): Likewise.
3732 (resize_resource_table): Likewise.
3733 (emit_single_op): Likewise.
3734 (xtensa_create_trampoline_frag): Likewise.
3735 (xtensa_maybe_create_literal_pool_frag): Likewise.
3736 (xtensa_add_config_info): Likewise.
3737 (xtensa_realloc_fixup_cache): Likewise.
3738 (add_subseg_info): Likewise.
3739 (cache_literal_section): Likewise.
3740 (add_xt_block_frags): Likewise.
3741 (add_xt_prop_frags): Likewise.
3742 (init_op_placement_info_table): Likewise.
3743 (build_section_rename): Likewise.
3744 * config/tc-z80.c: Likewise.
3745 * config/tc-z8k.c: Likewise.
3746 * depend.c (register_dependency): Likewise.
3747 * dwarf2dbg.c (get_line_subseg): Likewise.
3748 (dwarf2_gen_line_info_1): Likewise.
3749 (get_filenum): Likewise.
3750 * ecoff.c (allocate_scope): Likewise.
3751 (allocate_vlinks): Likewise.
3752 (allocate_shash): Likewise.
3753 (allocate_thash): Likewise.
3754 (allocate_tag): Likewise.
3755 (allocate_forward): Likewise.
3756 (allocate_thead): Likewise.
3757 (allocate_lineno_list): Likewise.
3758 * expr.c (make_expr_symbol): Likewise.
3759 * hash.c (hash_new_sized): Likewise.
3760 * input-file.c (input_file_push): Likewise.
3761 * listing.c (file_info): Likewise.
3762 (listing_newline): Likewise.
3763 * macro.c (new_formal): Likewise.
3764 (define_macro): Likewise.
3765 * remap.c (add_debug_prefix_map): Likewise.
3766 * symbols.c (symbol_find_noref): Likewise.
3767 (define_dollar_label): Likewise.
3768 (fb_label_instance_inc): Likewise.
3769 (symbol_relc_make_value): Likewise.
3770
3771 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3772
3773 * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
3774 * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
3775 (ppc_znop): Likewise.
3776 (ppc_pe_section): Likewise.
3777 (ppc_frob_symbol): Likewise.
3778 * config/tc-tic30.c (tic30_operand): Likewise.
3779 * config/tc-tic4x.c (tic4x_sect): Likewise.
3780 (tic4x_usect): Likewise.
3781
3782 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3783
3784 * config/tc-alpha.c: Const qualify FLT_CHARS.
3785 * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
3786 * config/tc-cris.h: Likewise.
3787 * expr.c: Likewise.
3788 * config/tc-mmix.c (md_atof): Adjust comment.
3789 * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
3790 * tc.h: Declare FLT_CHARS and EXP_CHARS.
3791
3792 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3793
3794 * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
3795 * config/tc-score7.c (s7_gen_reloc): Likewise.
3796
3797 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3798
3799 * config/tc-arm.c (do_t_branch): Change the type of reloc to
3800 bfd_reloc_code_real_type.
3801
3802 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3803
3804 * config/bfin-parse.y (current_inputline): Remove definition.
3805 * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
3806
3807 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3808
3809 * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
3810 strings.
3811
3812 2016-04-02 Alan Modra <amodra@gmail.com>
3813
3814 PR 19896
3815 * read.c (assign_symbol): Consume rest of line after an error
3816 rather than continuing to process the line.
3817
3818 2016-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
3821 (MAX_FLAG_NAME_LENGTH): ...this.
3822 (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
3823 * config/tc-arc.c (tokenize_flags): Likewise.
3824
3825 2016-04-01 Alan Modra <amodra@gmail.com>
3826
3827 * cgen.c (weak_operand_overflow_check): Return const char*.
3828 * messages.c (as_internal_value_out_of_range): Formatting.
3829 (as_warn_value_out_of_range): Consify prefix param.
3830 (as_bad_value_out_of_range): Likewise.
3831 * read.c (s_errwarn): Constify msg..
3832 (s_float_space, float_cons): ..and err.
3833 * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
3834 ieee_md_atof, vax_md_atof): Update prototypes.
3835 * tc.h (md_atof): Update prototype.
3836 * config/atof-ieee.c (ieee_md_atof): Return const char*.
3837 * config/atof-vax.c (vax_md_atof): Likewise.
3838 * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
3839 * config/tc-aarch64.c (md_atof): Return const char*.
3840 * config/tc-alpha.c (s_alpha_section_name): Likewise.
3841 (s_alpha_comm): Constify sec_name.
3842 (section_name): Constify.
3843 (s_alpha_section): Consify name..
3844 (alpha_elf_section_letter): ..and ptr_msg param..
3845 (md_atof): ..and return.
3846 * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
3847 * config/tc-arc.c (md_atof): Return const char*.
3848 * config/tc-arm.c (md_atof): Likewise.
3849 * config/tc-avr.c (md_atof): Likewise.
3850 * config/tc-bfin.c (md_atof): Likewise.
3851 * config/tc-cr16.c (md_atof): Likewise.
3852 * config/tc-cris.c (md_atof): Likewise.
3853 * config/tc-crx.c (md_atof): Likewise.
3854 * config/tc-d10v.c (md_atof): Likewise.
3855 * config/tc-d30v.c (md_atof): Likewise.
3856 * config/tc-dlx.c (md_atof): Likewise.
3857 * config/tc-epiphany.c (md_atof): Likewise.
3858 * config/tc-fr30.c (md_atof): Likewise.
3859 * config/tc-frv.c (md_atof): Likewise.
3860 * config/tc-ft32.c (md_atof): Likewise.
3861 * config/tc-h8300.c (md_atof): Likewise.
3862 * config/tc-hppa.c (struct default_subspace_dict): Constify name.
3863 (struct default_space_dict): Likewise.
3864 (create_new_space): Constify name param.
3865 (create_new_subspace): Likewise.
3866 (is_defined_space, is_defined_subspace): Likewise.
3867 (pa_parse_space_stmt): Constify space_name param.
3868 (md_atof): Return const char*.
3869 (pa_spaces_begin): Constify name.
3870 * config/tc-i370.c (md_atof): Return const char*.
3871 * config/tc-i386.c (md_atof): Likewise.
3872 (x86_64_section_letter): Constify ptr_msg param.
3873 * config/tc-i386.h (x86_64_section_letter): Update prototype.
3874 * config/tc-i860.c (struct i860_it): Constify error.
3875 (md_atof): Return const char*.
3876 * config/tc-i960.c (md_atof): Likewise.
3877 * config/tc-ia64.c (md_atof): Likewise.
3878 (ia64_elf_section_letter): Constify ptr_msg param.
3879 * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
3880 * config/tc-ip2k.c (md_atof): Return const char*.
3881 * config/tc-iq2000.c (md_atof): Likewise.
3882 * config/tc-lm32.c (md_atof): Likewise.
3883 * config/tc-m32c.c (md_atof): Likewise.
3884 * config/tc-m32r.c (md_atof): Likewise.
3885 * config/tc-m68hc11.c (md_atof): Likewise.
3886 * config/tc-m68k.c (md_atof): Likewise.
3887 * config/tc-mcore.c (md_atof): Likewise.
3888 * config/tc-mep.c (md_atof): Likewise.
3889 (mep_elf_section_letter): Constify ptr_msg param.
3890 * config/tc-mep.h (mep_elf_section_letter): Update prototype.
3891 * config/tc-metag.c (md_atof): Return const char*.
3892 * config/tc-microblaze.c (md_atof): Likewise.
3893 * config/tc-microblaze.h (md_atof): Delete prototype.
3894 * config/tc-mips.c (mips_parse_argument_token): Constify err.
3895 (md_atof): Return const char*.
3896 * config/tc-mmix.c (md_atof): Likewise.
3897 * config/tc-mn10200.c (md_atof): Likewise.
3898 * config/tc-mn10300.c (md_atof): Likewise.
3899 * config/tc-moxie.c (md_atof): Likewise.
3900 * config/tc-msp430.c (md_atof): Likewise.
3901 * config/tc-mt.c (md_atof): Likewise.
3902 * config/tc-nds32.c (md_atof): Likewise.
3903 * config/tc-nios2.c (md_atof): Likewise.
3904 (nios2_elf_section_letter): Constify ptr_msg param.
3905 * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
3906 * config/tc-ns32k.c (md_atof): Return const char*.
3907 * config/tc-or1k.c (md_atof): Likewise.
3908 * config/tc-pdp11.c (struct pdp11_code): Constify error.
3909 (md_atof): Return const char*.
3910 * config/tc-pj.c (md_atof): Likewise.
3911 * config/tc-ppc.c (md_atof): Likewise.
3912 * config/tc-rl78.c (md_atof): Likewise.
3913 * config/tc-rx.c (md_atof): Likewise.
3914 * config/tc-s390.c (md_atof): Likewise.
3915 * config/tc-score.c (s3_atof, md_atof): Likewise.
3916 * config/tc-sh.c (md_atof): Likewise.
3917 * config/tc-sparc.c (struct sparc_it): Constify error.
3918 (md_atof): Return const char*.
3919 * config/tc-spu.c (md_atof): Likewise.
3920 * config/tc-tic30.c (md_atof): Likewise.
3921 * config/tc-tic4x.c (md_atof): Likewise.
3922 * config/tc-tic54x.c (md_atof): Likewise.
3923 * config/tc-tic6x.c (md_atof): Likewise.
3924 * config/tc-tilegx.c (md_atof): Likewise.
3925 * config/tc-tilepro.c (md_atof): Likewise.
3926 * config/tc-v850.c (parse_register_list, md_atof): Likewise.
3927 * config/tc-vax.c (md_atof): Likewise.
3928 * config/tc-visium.c (md_atof): Likewise.
3929 * config/tc-xc16x.c (md_atof): Likewise.
3930 * config/tc-xgate.c (md_atof): Likewise.
3931 * config/tc-xstormy16.c (md_atof): Likewise.
3932 * config/tc-xtensa.c (md_atof): Likewise.
3933 * config/tc-z80.c (md_atof): Likewise.
3934 * config/tc-z8k.c (md_atof): Likewise.
3935
3936 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3937
3938 * config/tc-xtensa.c (struct rename_section_struct): Make old_name
3939 const.
3940 (xtensa_section_rename): Make argument type const char *.
3941 * config/tc-xtensa.h (xtensa_section_rename): Adjust.
3942
3943 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3944
3945 * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
3946 args[0].
3947
3948 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3949
3950 * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
3951 char *.
3952 (m32c_indirect_operand): Likewise.
3953 * config/tc-nds32.c (do_pseudo_b): Likewise.
3954 (do_pseudo_bal): Likewise.
3955 (do_pseudo_ls_bhw): Likewise.
3956
3957 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3958
3959 * as.c (parse_args): Cast literal to char * when assigning to optarg.
3960
3961 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3962
3963 * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
3964 get_symbol_name ().
3965 * config/tc-sparc.c (s_register): Cast a literal to char * in
3966 assignment.
3967
3968 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3969
3970 * config/tc-i960.c (parse_expr): Cast to char * when assigning to
3971 input_line_pointer.
3972 * config/tc-m32r.c (expand_debug_syms): Likewise.
3973 * config/tc-msp430.c (msp430_dstoperand): Likewise.
3974 * config/tc-z80.c (md_begin): Likewise.
3975 * stabs.c (stabs_generate_asm_func): Likewise.
3976
3977 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3978
3979 * cgen.c: Modernize the way functions declare arguments.
3980 * config/tc-bfin.c: Likewise.
3981 * config/tc-pdp11.c: Likewise.
3982 * literal.c: Likewise.
3983 * read.c: Likewise.
3984 * stabs.c: Likewise.
3985
3986 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3987
3988 * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
3989 variables unsigned char[].
3990 * config/tc-alpha.c (alpha_handle_align): Likewise.
3991 * config/tc-arm.c (arm_handle_align): Likewise.
3992 * config/tc-z80.c: Likewise.
3993
3994 2016-03-30 Nick Clifton <nickc@redhat.com>
3995
3996 PR target/19880
3997 * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
3998 shifting.
3999
4000 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
4001
4002 * testsuite/gas/all/gas.exp: Don't xfail on ARC.
4003 * testsuite/gas/elf/elf.exp: Likewise.
4004 * testsuite/gas/all/redef3.d: Allow execution for ARC.
4005
4006 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
4007
4008 * testsuite/gas/arc/warn.exp: Fix matching pattern.
4009
4010 2016-03-29 Claudiu Zissulescu <claziss@synopsys.com>
4011
4012 * testsuite/gas/arc/ext2op.d: New file.
4013 * testsuite/gas/arc/ext2op.s: Likewise.
4014 * testsuite/gas/arc/ext3op.d: Likewise.
4015 * testsuite/gas/arc/ext3op.s: Likewise.
4016
4017 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4018
4019 * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
4020 qualifier.
4021 * config/tc-alpha.c (md_parse_option): Likewise.
4022 * config/tc-arc.c (md_parse_option): Likewise.
4023 * config/tc-arm.c (struct arm_long_option_table): Likewise.
4024 (md_parse_option): Likewise.
4025 * config/tc-avr.c (md_parse_option): Likewise.
4026 * config/tc-bfin.c (md_parse_option): Likewise.
4027 * config/tc-cr16.c (md_parse_option): Likewise.
4028 * config/tc-cris.c (s_cris_arch): Likewise.
4029 (md_parse_option): Likewise.
4030 * config/tc-crx.c (md_parse_option): Likewise.
4031 * config/tc-d10v.c (md_parse_option): Likewise.
4032 * config/tc-d30v.c (md_parse_option): Likewise.
4033 * config/tc-dlx.c (md_parse_option): Likewise.
4034 * config/tc-epiphany.c (md_parse_option): Likewise.
4035 * config/tc-fr30.c (md_parse_option): Likewise.
4036 * config/tc-frv.c (md_parse_option): Likewise.
4037 * config/tc-ft32.c (md_parse_option): Likewise.
4038 * config/tc-h8300.c (md_parse_option): Likewise.
4039 * config/tc-hppa.c (md_parse_option): Likewise.
4040 * config/tc-i370.c (md_parse_option): Likewise.
4041 * config/tc-i386.c (md_parse_option): Likewise.
4042 * config/tc-i860.c (md_parse_option): Likewise.
4043 * config/tc-i960.c (md_parse_option): Likewise.
4044 * config/tc-ia64.c (md_parse_option): Likewise.
4045 * config/tc-ip2k.c (md_parse_option): Likewise.
4046 * config/tc-iq2000.c (md_parse_option): Likewise.
4047 * config/tc-lm32.c (md_parse_option): Likewise.
4048 * config/tc-m32c.c (md_parse_option): Likewise.
4049 * config/tc-m32r.c (md_parse_option): Likewise.
4050 * config/tc-m68hc11.c (md_parse_option): Likewise.
4051 * config/tc-m68k.c (md_parse_option): Likewise.
4052 * config/tc-mcore.c (md_parse_option): Likewise.
4053 * config/tc-mep.c (md_parse_option): Likewise.
4054 * config/tc-metag.c (struct metag_long_option): Likewise.
4055 (md_parse_option): Likewise.
4056 * config/tc-microblaze.c (md_parse_option): Likewise.
4057 * config/tc-microblaze.h (md_parse_option): Remove prototype.
4058 * config/tc-mips.c (md_parse_option): Adjust.
4059 * config/tc-mmix.c (md_parse_option): Likewise.
4060 * config/tc-mn10200.c (md_parse_option): Likewise.
4061 * config/tc-mn10300.c (md_parse_option): Likewise.
4062 * config/tc-moxie.c (md_parse_option): Likewise.
4063 * config/tc-msp430.c (md_parse_option): Likewise.
4064 * config/tc-mt.c (md_parse_option): Likewise.
4065 * config/tc-nds32.c (md_parse_option): Likewise.
4066 * config/tc-nds32.h (nds32_parse_option): Likewise.
4067 * config/tc-nios2.c (md_parse_option): Likewise.
4068 * config/tc-ns32k.c (md_parse_option): Likewise.
4069 * config/tc-or1k.c (md_parse_option): Likewise.
4070 * config/tc-pdp11.c (md_parse_option): Likewise.
4071 * config/tc-pj.c (md_parse_option): Likewise.
4072 * config/tc-ppc.c (md_parse_option): Likewise.
4073 * config/tc-rl78.c (md_parse_option): Likewise.
4074 * config/tc-rx.c (md_parse_option): Likewise.
4075 * config/tc-s390.c (s390_parse_cpu): Likewise.
4076 * config/tc-score.c (md_parse_option): Likewise.
4077 * config/tc-sh.c (md_parse_option): Likewise.
4078 * config/tc-sparc.c (md_parse_option): Likewise.
4079 * config/tc-spu.c (md_parse_option): Likewise.
4080 * config/tc-tic30.c (md_parse_option): Likewise.
4081 * config/tc-tic4x.c (md_parse_option): Likewise.
4082 * config/tc-tic54x.c (md_parse_option): Likewise.
4083 * config/tc-tic6x.c (md_parse_option): Likewise.
4084 * config/tc-tilegx.c (md_parse_option): Likewise.
4085 * config/tc-tilepro.c (md_parse_option): Likewise.
4086 * config/tc-v850.c (md_parse_option): Likewise.
4087 * config/tc-vax.c (md_parse_option): Likewise.
4088 * config/tc-visium.c (struct visium_long_option_table): Likewise.
4089 * config/tc-xc16x.c (md_parse_option): Likewise.
4090 * config/tc-xgate.c (md_parse_option): Likewise.
4091 * config/tc-xstormy16.c (md_parse_option): Likewise.
4092 * config/tc-xtensa.c (md_parse_option): Likewise.
4093 * config/tc-z80.c (md_parse_option): Likewise.
4094 * config/tc-z8k.c (md_parse_option): Likewise.
4095 * tc.h (md_parse_option): Likewise.
4096
4097 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4098
4099 * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
4100 * config/tc-hppa.c (fix_new_hppa): Likewise.
4101 (pa_vtable_entry): Likewise.
4102 (pa_vtable_inherit): Likewise.
4103 * config/tc-m68k.c (md_begin): Likewise.
4104
4105 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4106
4107 * config/obj-elf.c (obj_elf_section_name): Return const char *.
4108 * config/obj-elf.h (obj_elf_section_name): Adjust.
4109 * config/tc-aarch64.c (aarch64_parse_features): Likewise.
4110 (aarch64_parse_cpu): Likewise.
4111 (aarch64_parse_arch): Likewise.
4112 * config/tc-arm.c (arm_parse_extension): Likewise.
4113 (arm_parse_cpu): Likewise.
4114 (arm_parse_arch): Likewise.
4115 * config/tc-nds32.c: Likewise.
4116 * config/xtensa-relax.c (parse_special_fn): Likewise.
4117 * stabs.c (generate_asm_file): Likewise.
4118
4119 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4120
4121 * config/tc-cr16.c (cr16_assemble): New function.
4122 (md_assemble): Call cr16_assemble.
4123
4124 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4125
4126 * as.c (parse_args): Adjust.
4127 * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
4128 * config/obj-elf.c (elf_frob_symbol): Adjust.
4129
4130 2016-03-24 Jose E. Marchesi <jose.marchesi@oracle.com>
4131
4132 * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
4133 registers to be in the 16..31 range.
4134
4135 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4136
4137 * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
4138 frag_var ().
4139
4140 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4141
4142 * config/tc-visium.c (md_atof): Localize the string returned on
4143 failure.
4144
4145 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4146
4147 * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
4148 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
4149 * config/tc-m68hc11.c (md_begin): Likewise.
4150 (print_opcode_list): Likewise.
4151 * config/tc-msp430.c (msp430_section): Likewise.
4152 * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
4153 (s3_build_dependency_insn_hsh): Likewise.
4154 * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
4155 (s7_build_dependency_insn_hsh): Likewise.
4156 * config/tc-tic4x.c: Likewise.
4157 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4158 (subsym_get_arg): Likewise.
4159 * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
4160 (get_directive): Likewise.
4161 (cache_literal_section): Likewise.
4162 * config/xtensa-relax.c: Likewise.
4163 * symbols.c (symbol_create): Likewise.
4164 (local_symbol_make): Likewise.
4165 (symbol_relc_make_expr): Likewise.
4166
4167 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4168
4169 * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
4170 str.
4171
4172 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4173
4174 * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
4175 call with a switch.
4176
4177 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4178
4179 * config/tc-ia64.c (ia64_do_align): Remove.
4180 (ia64_cons_align): Call do_align () directly.
4181 (dot_proc): Likewise.
4182 (stmt_float_cons): Likewise.
4183
4184 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4185
4186 * listing.c (listing_message): Use XNEW style allocation macros.
4187 * read.c (read_a_source_file): Likewise.
4188 (read_symbol_name): Likewise.
4189 (s_mri_common): Likewise.
4190 (assign_symbol): Likewise.
4191 (s_reloc): Likewise.
4192 (emit_expr_with_reloc): Likewise.
4193 (s_incbin): Likewise.
4194 (s_include): Likewise.
4195 * sb.c (sb_build): Likewise.
4196 (sb_check): Likewise.
4197
4198 2016-03-22 Alan Modra <amodra@gmail.com>
4199
4200 * write.c (record_alignment): Revert 2016-02-18 change.
4201
4202 2016-03-22 Alan Modra <amodra@gmail.com>
4203
4204 * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
4205 (emit_jsrjmp, tc_gen_reloc): Likewise.
4206 * config/tc-i370.c (i370_macro): Likewise.
4207
4208 2016-03-22 Nick Clifton <nickc@redhat.com>
4209
4210 * configure: Regenerate.
4211
4212 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4213
4214 * testsuite/gas/arc/nps400-0.d: New file.
4215 * testsuite/gas/arc/nps400-0.s: New file.
4216 * testsuite/gas/arc/nps400-1.d: New file.
4217 * testsuite/gas/arc/nps400-1.s: New file.
4218
4219 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4220
4221 * config/tc-arc.c (find_opcode_match): Move lnflg, and i
4222 declarations to start of block. Reset code on all flags before
4223 attempting to match them. Handle multiple hits on the same flag.
4224 Handle flag class.
4225 * testsuite/gas/arc/asm-errors.d: New file.
4226 * testsuite/gas/arc/asm-errors.err: New file.
4227 * testsuite/gas/arc/asm-errors.s: New file.
4228
4229 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * config/tc-arc.c (cpu_types): Add nps400 entry.
4232 (check_zol): Handle nps400.
4233
4234 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4235
4236 * config/tc-arc.c (arc_select_cpu): Remove use of
4237 EF_ARC_CPU_GENERIC.
4238
4239 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4240
4241 * config/tc-arc.c (arc_target): Delay initialisation until
4242 arc_select_cpu.
4243 (arc_target_name): Likewise.
4244 (arc_features): Likewise.
4245 (arc_mach_type): Likewise.
4246 (cpu_types): Remove "all" entry.
4247 (arc_select_cpu): New function, most of the content is from...
4248 (md_parse_option): ... here. Call new arc_select_cpu.
4249 (md_begin): Call arc_select_cpu if needed, default is now arc700.
4250
4251 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4252
4253 * testsuite/gas/arc/inline-data-1.d: Add target restriction.
4254 * testsuite/gas/arc/inline-data-2.d: New file.
4255
4256 2016-03-21 Nick Clifton <nickc@redhat.com>
4257
4258 * atof-generic.c: Replace use of alloca with call to xmalloc.
4259 * cgen.c: Likewise.
4260 * dwarf2dbg.c: Likewise.
4261 * macro.c: Likewise.
4262 * remap.c: Likewise.
4263 * stabs.c: Likewise.
4264 * symbols.c: Likewise.
4265 * config/obj-elf.c: Likewise.
4266 * config/tc-aarch64.c: Likewise.
4267 * config/tc-arc.c: Likewise.
4268 * config/tc-arm.c: Likewise.
4269 * config/tc-avr.c: Likewise.
4270 * config/tc-ia64.c: Likewise.
4271 * config/tc-mips.c: Likewise.
4272 * config/tc-msp430.c: Likewise.
4273 * config/tc-nds32.c: Likewise.
4274 * config/tc-ppc.c: Likewise.
4275 * config/tc-sh.c: Likewise.
4276 * config/tc-tic30.c: Likewise.
4277 * config/tc-tic54x.c: Likewise.
4278 * config/tc-xstormy16.c: Likewise.
4279 * config/te-vms.c: Likewise.
4280 * configure: Regenerate.
4281
4282 2016-03-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4283
4284 * tc-i386.c (f32_1): Change type to unsigned char[].
4285 (f32_2): Likewise.
4286 (f32_3): Likewise.
4287 (f32_4): Likewise.
4288 (f32_5): Likewise.
4289 (f32_6): Likewise.
4290 (f32_7): Likewise.
4291 (f32_8): Likewise.
4292 (f32_9): Likewise.
4293 (f32_10): Likewise.
4294 (f32_11): Likewise.
4295 (f32_12): Likewise.
4296 (f32_13): Likewise.
4297 (f32_14): Likewise.
4298 (f16_3): Likewise.
4299 (f16_4): Likewise.
4300 (f16_5): Likewise.
4301 (f16_6): Likewise.
4302 (f16_7): Likewise.
4303 (f16_8): Likewise.
4304 (jump_31): Likewise.
4305 (f32_patt): Likewise.
4306 (f16_patt): Likewise.
4307 (alt_3): Likewise.
4308 (alt_4): Likewise.
4309 (alt_5): Likewise.
4310 (alt_6): Likewise.
4311 (alt_7): Likewise.
4312 (alt_8): Likewise.
4313 (alt_9): Likewise.
4314 (alt_10): Likewise.
4315 (alt_patt): Likewise.
4316
4317 2016-03-18 Nick Clifton <nickc@redhat.com>
4318
4319 * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
4320 .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
4321 .tlsdescldr and .xword directives.
4322
4323 PR target/19721
4324 * testsuite/gas/aarch64/pr19721.s: New test source file.
4325 * testsuite/gas/aarch64/pr19721.d: New test driver file.
4326
4327 * doc/as.texinfo: Place the target specific command line options
4328 into their own man page section.
4329
4330 2016-03-16 Jiong Wang <jiong.wang@arm.com>
4331
4332 * config/tc-arm.c (N_S_32): New.
4333 (N_F_16_32): Likewise.
4334 (N_SUF_32): Support N_F16.
4335 (N_IF_32): Likewise.
4336 (neon_dyadic_misc): Likewise.
4337 (do_neon_cmp): Likewise.
4338 (do_neon_cmp_inv): Likewise.
4339 (do_neon_mul): Likewise.
4340 (do_neon_fcmp_absolute): Likewise.
4341 (do_neon_step): Likewise.
4342 (do_neon_abs_neg): Likewise.
4343 (CVT_FLAVOR_VAR): Likewise.
4344 (do_neon_cvt_1): Likewise.
4345 (do_neon_recip_est): Likewise.
4346 (do_vmaxnm): Likewise.
4347 (do_vrint_1): Likewise.
4348 (neon_check_type): Check architecture support for FP16 extension.
4349 (insns): Update comments.
4350 * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
4351 * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
4352 * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
4353 * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
4354 arm mode.
4355 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
4356 thumb mode.
4357 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
4358 error file.
4359
4360 2016-03-16 Nick Clifton <nickc@redhat.com>
4361
4362 * read.c (emit_expr_with_reloc): Add code check a bignum with
4363 nbytes == 1.
4364 * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
4365 other than 32-bits.
4366 * testsuite/gas/elf/bignum.s: New test source file.
4367 * testsuite/gas/elf/bignum.d: New test driver file.
4368 * testsuite/gas/elf/elf.exp: Run the new test.
4369
4370 2016-03-15 Ulrich Drepper <drepper@gmail.com>
4371
4372 * doc/c-i386.texi (Register Naming): Update to details of the
4373 latest architecture version.
4374
4375 2016-03-10 Mickael Guene <mickael.guene@st.com>
4376
4377 PR gas/19744
4378 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
4379 (do_mov): Likewise.
4380 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
4381 (do_t_mov_cmp): Likewise.
4382 (do_t_add_sub): Protect against bad relocations usage.
4383 (do_t_mov_cmp): Likewise.
4384 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
4385 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
4386 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
4387 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
4388
4389 2016-03-09 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4390
4391 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
4392 do_alignment.
4393 (do_neon_ld_st_lane): Likewise.
4394 (do_neon_ld_dup): Likewise.
4395
4396 2016-03-08 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * testsuite/gas/arc/inline-data-1.d: New file.
4399 * testsuite/gas/arc/inline-data-1.s: New file.
4400
4401 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4402
4403 * config/tc-arm.c (arm_cpus): Add cortex-r8.
4404 * doc/c-arm.texi: Add cortex-r8.
4405
4406 2016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4407
4408 * config/tc-arc.c: Add const qualifiers.
4409 * config/tc-h8300.c (md_begin): Likewise.
4410 * config/tc-ia64.c (print_prmask): Likewise.
4411 * config/tc-msp430.c (msp430_operands): Likewise.
4412 * config/tc-nds32.c (struct suffix_name): Likewise.
4413 (struct nds32_parse_option_table): Likewise.
4414 (struct nds32_set_option_table): Likewise.
4415 (do_pseudo_pushpopm): Likewise.
4416 (do_pseudo_pushpop_stack): Likewise.
4417 (nds32_relax_relocs): Likewise.
4418 (nds32_flag): Likewise.
4419 (struct nds32_hint_map): Likewise.
4420 (nds32_find_reloc_table): Likewise.
4421 (nds32_match_hint_insn): Likewise.
4422 * config/tc-s390.c: Likewise.
4423 * config/tc-sh.c (get_specific): Likewise.
4424 * config/tc-tic30.c: Likewise.
4425 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
4426 (tic4x_indirect_parse): Likewise.
4427 * config/tc-vax.c (vax_cons): Likewise.
4428 * config/tc-z80.c (struct reg_entry): Likewise.
4429 * config/tc-epiphany.c (md_assemble): Adjust.
4430 (epiphany_assemble): New function.
4431 (epiphany_elf_section_rtn): Call do_align directly.
4432 (epiphany_elf_section_text): Likewise.
4433 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
4434 (ip2k_elf_section_text): Likewise.
4435 * read.c (do_align): Make it not static.
4436 * read.h (do_align): New prototype.
4437
4438 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
4439
4440 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
4441 for ARMv8.1 AdvSIMD use.
4442 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
4443 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
4444
4445 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
4446
4447 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
4448 feature.
4449 (record_feature_use): New.
4450 (mark_feature_used): Use record_feature_use.
4451 (do_neon_qrdmlah): New.
4452 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
4453 variants.
4454 (arm_extensions): Put into alphabetical order. Re-indent "simd"
4455 and "rdma" entries. Fix the incorrect merge value for "+rdma".
4456 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
4457 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
4458 Make source file explicit.
4459 * testsuite/gas/arm/armv8-a+rdma.l: New.
4460 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
4461 directives. Fix white-space.
4462 * testsuite/gas/arm/armv8_1-a+simd.d: New.
4463
4464 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4465
4466 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
4467
4468 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
4469 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
4470
4471 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
4472 (tc_arc_fix_adjustable): Changed default return value to 1.
4473 * testsuite/gas/arc/j.d: Updated expected symbol
4474 * testsuite/gas/arc/jl.d: Likewise
4475 * testsuite/gas/arc/relax-avoid1.d: Likewise
4476 * testsuite/gas/arc/st.d: Likewise
4477
4478 2016-02-29 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
4479
4480 * config/tc-arc.c: Enable code density instructions for ARC EM.
4481
4482 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
4483
4484 PR ld/19645
4485 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
4486 for ELF assemblers.
4487 * as.c (flag_use_elf_stt_common): New.
4488 (show_usage): Add --elf-stt-common=.
4489 (option_values): Add OPTION_ELF_STT_COMMON.
4490 (std_longopts): Add --elf-stt-common=.
4491 (parse_args): Handle --elf-stt-common=.
4492 * as.h (flag_use_elf_stt_common): New.
4493 * config.in: Regenerated.
4494 * configure: Likewise.
4495 * configure.ac: Add --enable-elf-stt-common and define
4496 DEFAULT_GENERATE_ELF_STT_COMMON.
4497 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
4498 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
4499 * doc/as.texinfo: Document --elf-stt-common=.
4500 * testsuite/gas/elf/common3.s: New file.
4501 * testsuite/gas/elf/common3a.d: Likewise.
4502 * testsuite/gas/elf/common3b.d: Likewise.
4503 * testsuite/gas/elf/common4.s: Likewise.
4504 * testsuite/gas/elf/common4a.d: Likewise.
4505 * testsuite/gas/elf/common4b.d: Likewise.
4506 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
4507 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
4508 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
4509 and common4b.
4510 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
4511 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
4512 --elf-stt-common=no to as.
4513 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
4514 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
4515 --elf-stt-common=no to as.
4516 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
4517 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
4518 of dw2-compress-3 and dw2-compressed-3.
4519
4520 2016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4521
4522 * as.c (select_emulation_mode): Add const qualifiers.
4523 * as.h: Likewise.
4524 * config/bfin-defs.h: Likewise.
4525 * config/bfin-parse.y: Likewise.
4526 * config/rx-parse.y: Likewise.
4527 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
4528 (struct aarch64_cpu_option_table): Likewise.
4529 (struct aarch64_arch_option_table): Likewise.
4530 (struct aarch64_option_cpu_value_table): Likewise.
4531 (struct aarch64_long_option_table): Likewise.
4532 (struct aarch64_option_abi_value_table): Likewise.
4533 * config/tc-arm.c (struct reloc_entry): Likewise.
4534 (tc_gen_reloc): Likewise.
4535 (struct arm_option_table): Likewise.
4536 (struct arm_legacy_option_table): Likewise.
4537 (struct arm_cpu_option_table): Likewise.
4538 (struct arm_arch_option_table): Likewise.
4539 (struct arm_option_extension_value_table): Likewise.
4540 (struct arm_option_fpu_value_table): Likewise.
4541 (struct arm_option_value_table): Likewise.
4542 (struct arm_long_option_table): Likewise.
4543 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
4544 (struct mcu_type_s): Likewise.
4545 (struct exp_mod_s): Likewise.
4546 (avr_operand): Likewise.
4547 (avr_operands): Likewise.
4548 * config/tc-d10v.c (md_begin): Likewise.
4549 * config/tc-dlx.c: Likewise.
4550 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
4551 * config/tc-ft32.c (parse_condition): Likewise.
4552 * config/tc-h8300.c (do_a_fix_imm): Likewise.
4553 * config/tc-hppa.c (pa_ip): Likewise.
4554 (hppa_regname_to_dw2regnum): Likewise.
4555 * config/tc-i370.c (i370_elf_suffix): Likewise.
4556 * config/tc-i960.c (struct tabentry): Likewise.
4557 * config/tc-m32r.c: Likewise.
4558 * config/tc-m68k.c: Likewise.
4559 * config/tc-m68k.h: Likewise.
4560 * config/tc-mcore.c (parse_psrmod): Likewise.
4561 * config/tc-metag.c (struct metag_core_option): Likewise.
4562 (struct metag_long_option): Likewise.
4563 * config/tc-microblaze.c: Likewise.
4564 * config/tc-mips.c (macro): Likewise.
4565 * config/tc-mn10200.c: Likewise.
4566 * config/tc-mn10300.c: Likewise.
4567 * config/tc-msp430.c (struct rcodes_s): Likewise.
4568 (struct hcodes_s): Likewise.
4569 (md_parse_option): Likewise.
4570 * config/tc-ns32k.c (struct ns32k_option): Likewise.
4571 (optlist): Likewise.
4572 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
4573 (tc_ppc_regname_to_dw2regnum): Likewise.
4574 * config/tc-ppc.h: Likewise.
4575 * config/tc-rl78.c: Likewise.
4576 * config/tc-rx.c (struct cpu_type): Likewise.
4577 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
4578 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
4579 (sparc_ip): Likewise.
4580 * config/tc-spu.c (insn_fmt_string): Likewise.
4581 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4582 * config/tc-v850.c: Likewise.
4583 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
4584 (struct visium_long_option_table): Likewise.
4585 * config/tc-xgate.c: Likewise.
4586 * config/tc-z8k.c: Likewise.
4587 * read.c (add_include_dir): Likewise.
4588 * read.h: Likewise.
4589
4590 2016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4591
4592 * testsuite/gas/all/gas.exp: Change target pattern to cover
4593 arceb-*.
4594 * testsuite/gas/all/redef3.d: Likewise.
4595 * testsuite/gas/elf/elf.exp: Likewise.
4596
4597 2016-02-24 Renlin Li <renlin.li@arm.com>
4598
4599 * config/tc-arm.c (BAD_FP16): New error message macro.
4600 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
4601 fp16 scalar instructions.
4602 (neon_check_type): Allow different size from key.
4603 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
4604 (try_vfp_nsyn): Likewise.
4605 (do_vfp_nsyn_mla_mls): Likewise.
4606 (do_vfp_nsyn_fma_fms): Likewise.
4607 (do_vfp_nsyn_ldm_stm): Likewise
4608 (do_vfp_nsyn_sqrt): Likewise
4609 (do_vfp_nsyn_div): Likewise
4610 (do_vfp_nsyn_nmul): Likewise.
4611 (do_vfp_nsyn_cmp): Likewise.
4612 (do_neon_shll): Likewise.
4613 (do_vfp_nsyn_cvt_fpv8): Likewise.
4614 (do_neon_cvttb_2): Likewise.
4615 (do_neon_mov): Likewise.
4616 (do_neon_rshift_round_imm): Likewise.
4617 (do_neon_ldr_str): Likewise.
4618 (do_vfp_nsyn_fpv8): Likewise.
4619 (do_vmaxnm): Likewise.
4620 (do_vrint_1): Likewise.
4621 (insns): New entry for vins, vmovx.
4622 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
4623 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
4624 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
4625 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
4626 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
4627 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
4628 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
4629
4630 2016-02-24 Renlin Li <renlin.li@arm.com>
4631
4632 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
4633 (neon_shape_class): New SC_HALF.
4634 (neon_shape_el): New SE_H.
4635 (neon_shape_el_size): New size for SE_H.
4636 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
4637 (neon_select_shape): Add SE_H support code.
4638 (el_type_of_type_chk): Use N_F_ALL.
4639 (do_vfp_nsyn_cvt): Add SE_H shape support.
4640 (do_neon_cvtz): Likewise.
4641 (do_neon_cvt_1): Likewise.
4642 (do_neon_cvttb_1): Likewise.
4643
4644 2016-02-24 Renlin Li <renlin.li@arm.com>
4645
4646 * testsuite/gas/arm/copro.d: Adjust output.
4647 * testsuite/gas/arm/copro.s: Adjust co-processor num.
4648
4649 2016-02-24 Renlin Li <renlin.li@arm.com>
4650
4651 * testsuite/gas/arm/mask_1.d: New.
4652 * testsuite/gas/arm/mask_1.s: New.
4653
4654 2016-02-24 Renlin Li <renlin.li@arm.com>
4655
4656 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
4657 * testsuite/gas/arm/copro.d: Update.
4658
4659 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4660
4661 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
4662 * doc/c-arm.texi (ARM Options): Document cortex-a32.
4663
4664 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4665
4666 * doc/c-arm.texi (ARM Options): Document cortex-a17.
4667
4668 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
4669
4670 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
4671 hpux.
4672
4673 2016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4674
4675 * output-file.c (output_file_create): Make file name argument const.
4676 (output_file_close): Likewise.
4677 * output-file.h (output_file_create): Adjust.
4678 (output_file_close): Likewise.
4679 * depend.c (quote_string_for_make): Make src argument const char *.
4680 (register_dependency): Likewise.
4681 (wrap_output): Likewise.
4682 * as.h (register_dependency): Adjust.
4683 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
4684 as_where ();
4685 * symbols.c (S_SET_EXTERNAL): Likewise.
4686 * input-scrub.c (as_where): Return the file name.
4687 * as.h (as_where): Adjust prototype.
4688 * app.c (do_scrub_chars): Adjust.
4689 * cond.c (s_elseif): Likewise.
4690 (s_else): Likewise.
4691 (initialize_cframe): Likewise.
4692 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
4693 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
4694 * config/obj-som.c (obj_som_init_stab_section): Likewise.
4695 * config/tc-aarch64.c (output_info): Likewise.
4696 * config/tc-ia64.c (md_assemble): Likewise.
4697 (dot_alias): Likewise.
4698 * config/tc-m68k.c (m68k_frob_label): Likewise.
4699 * config/tc-mmix.c (s_bspec): Likewise.
4700 (mmix_handle_mmixal): Likewise.
4701 * config/tc-rx.c (rx_include): Likewise.
4702 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4703 (tic54x_adjust_symtab): Likewise.
4704 * config/tc-xtensa.c (directive_push): Likewise.
4705 (xtensa_sanity_check): Likewise.
4706 (xtensa_relax_frag): Likewise.
4707 (md_convert_frag): Likewise.
4708 (tinsn_to_slotbuf): Likewise.
4709 * dwarf2dbg.c (dwarf2_where): Likewise.
4710 * ecoff.c (add_file): Likewise.
4711 (ecoff_generate_asm_lineno): Likewise.
4712 * expr.c (make_expr_symbol): Likewise.
4713 * frags.c (frag_new): Likewise.
4714 (frag_var_init): Likewise.
4715 * listing.c (listing_newline): Likewise.
4716 * messages.c (identify): Likewise.
4717 (as_show_where): Likewise.
4718 (as_warn_internal): Likewise.
4719 (as_bad_internal): Likewise.
4720 * read.c (s_irp): Likewise.
4721 (s_macro): Likewise.
4722 (s_reloc): Likewise.
4723 * stabs.c (stabs_generate_asm_file): Likewise.
4724 (stabs_generate_asm_lineno): Likewise.
4725 (stabs_generate_asm_func): Likewise.
4726 * write.c (fix_new_internal): Likewise.
4727 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
4728 (as_warn_value_out_of_range): Adjust prototype.
4729 (as_bad_value_out_of_range): Adjust prototype.
4730 * messages.c (identify): Make file name argument const char *.
4731 (as_warn_internal): Likewise.
4732 (as_warn_where): Likewise.
4733 (as_bad_internal): Likewise.
4734 (as_bad_where): Likewise.
4735 (as_internal_value_out_of_range): Likewise.
4736 (as_warn_value_out_of_range): Likewise.
4737 (as_bad_value_out_of_range): Likewise.
4738 * as.h (found_comment_file): Change type to const char *.
4739 * cond.c (file_line::file): Likewise.
4740 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
4741 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
4742 * config/obj-som.c (obj_som_init_stab_section): Likewise.
4743 * config/tc-aarch64.c (output_info): Likewise.
4744 * config/tc-alpha.c (insert_operand): Likewise.
4745 * config/tc-arc.c (insert_operand): Likewise.
4746 * config/tc-d30v.c (check_size): Likewise.
4747 * config/tc-ia64.c (struct alias): Likewise.
4748 * config/tc-m68k.c (struct label_line): Likewise.
4749 * config/tc-mcore.c (md_apply_fix): Likewise.
4750 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
4751 * config/tc-mips.c (mips16_immed): Likewise.
4752 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
4753 * config/tc-ppc.c (ppc_insert_operand): Likewise.
4754 * config/tc-rx.c (rx_include): Likewise.
4755 * config/tc-s390.c (s390_insert_operand): Likewise.
4756 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4757 (tic54x_adjust_symtab): Likewise.
4758 * config/tc-tilegx.c (insert_operand): Likewise.
4759 (apply_special_operator): Likewise.
4760 * config/tc-tilepro.c (insert_operand): Likewise.
4761 * config/tc-xtensa.c (directive_push): Likewise.
4762 * ecoff.c (add_file): Likewise.
4763 (ecoff_generate_asm_lineno): Likewise.
4764 * listing.c (listing_newline): Likewise.
4765 * read.c (s_irp): Likewise.
4766 * write.c (install_reloc): Likewise.
4767 * write.h (struct fix): Likewise.
4768 * input-file.c (file_name): Change type to const char *.
4769 (saved_file::file_name): Likewise.
4770 (input_file_open): Change type of argument to const char *.
4771 * input-file.h (input_file_open): Adjust.
4772 * input-scrub.c (logical_input_file): change type to const char *.
4773 (physical_input_file): Likewise.
4774 (struct input_save): Adjust.
4775 (input_scrub_push): Adjust.
4776 (input_scrub_begin): Adjust.
4777 (as_where): Adjust.
4778 * input-scrub.c (input_scrub_new_file): Make file name argument const.
4779 (input_scrub_include_file): Likewise.
4780 (new_logical_line_flags): Likewise.
4781 (new_logical_line): Likewise.
4782 * as.h: Adjust.
4783 * frags.h (struct frag): Change type of fr_file to const char *.
4784 * expr.c (expr_symbol_where): Change type of file argument to
4785 const char **.
4786 * expr.h (expr_symbol_where): Likewise.
4787 * config/tc-i370.c (md_apply_fix): adjust.
4788 * config/tc-mmix.c (mmix_md_end): Likewise.
4789 * config/tc-ppc.c (md_apply_fix): Likewise.
4790 * config/tc-s390.c (md_apply_fix): Likewise.
4791 * symbols.c (report_op_error): Likewise.
4792 (resolve_symbol_value): Likewise.
4793 * config/tc-ia64.c (slot::src_file): Change type to const char *.
4794 (rsrc::file): Likewise.
4795 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
4796 const char *.
4797 (xtensa_relax_frag): Likewise.
4798 (md_convert_frag): Likewise.
4799 (tinsn_to_slotbuf): Likewise.
4800 * expr.c (expr_symbol_line): Likewise.
4801 * macro.c (define_macro): Likewise.
4802 * macro.h (macro_struct): Likewise.
4803 * messages.c (as_show_where): Likewise.
4804 * read.c (s_macro): Likewise.
4805 * stabs.c (stabs_generate_asm_file): Likewise.
4806 (generate_asm_file): Likewise.
4807 (stabs_generate_asm_lineno): Likewise.
4808 * write.h (struct reloc_list): Likewise.
4809 * input-scrub.c (as_where): Change return type to const char *.
4810 * as.h (as_wheree): Adjust.
4811
4812 2016-02-21 H.J. Lu <hongjiu.lu@intel.com>
4813
4814 * write.c (compress_debug): Move BFD compression bits setting
4815 to ...
4816 (write_object_file): Here.
4817
4818 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
4819
4820 * config/tc-i386.c (register_number): Check RegVRex.
4821 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
4822 with %zmm19 and %zmm3.
4823 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
4824 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
4825
4826 2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
4827 Jiong Wang <jiong.wang@arm.com>
4828
4829 * config/tc-arm.c (arm_ext_fp16): New.
4830 (arm_extensions): New entry for "fp16".
4831
4832 2016-02-19 Nick Clifton <nickc@redhat.com>
4833
4834 PR 19630
4835 * read.c (read_a_source_file): Check for assemble_one returning
4836 with input_line_pointer set to NULL.
4837
4838 2016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4839
4840 * listing.c (rebuffer_line): Change return type to void.
4841
4842 * symbols.c (decode_local_label_name): Make type a const char *.
4843 * listing.c (print_source): Make type of p const char *.
4844 (print_line): Make type of string const char *.
4845 (buffer_line): Return const char *.
4846 (title): Make type const char *.
4847 (subtitle): Likewise.
4848 (listing_listing): Make type of p const char *.
4849 * messages.c (as_internal_value_out_of_range): Make type of prefix
4850 const char *.
4851 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
4852 and string const char *.
4853 * read.c (_bfd_rel): Make type of name const char *.
4854 * app.c (out_string): Change type to const char *.
4855 (struct app_save::out_string): Likewise.
4856
4857 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
4858 Nick Clifton <nickc@redhat.com>
4859
4860 * read.c (finish_bundle): Avoid recording a negative alignment.
4861 (do_align): Use unsigned values for n, len and max. Only create
4862 a frag if the alignment requirement is greater than the minimum
4863 byte alignment. Avoid recording a negative alignment.
4864 (s_align): Use unsigned values where appropriate.
4865 (bss_alloc): Use an unsigned value for the alignment.
4866 (sizeof_sleb128): Add a comment noting that we encode one octet
4867 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
4868 (emit_leb129_expr): Abort if the emitted encoding was longer than
4869 expected.
4870 * read.h (output_leb128): Update prototype.
4871 (sizeof_leb128): Update prototype.
4872 (bss_alloc): Update prototype.
4873 * write.c (record_alignment): Use an unsigned value for the
4874 alignment. Do not record alignments less than the minimum
4875 alignment for a byte.
4876 * write.h (record_alignment): Update prototype.
4877
4878 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
4879
4880 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
4881 .init.literal/.fini.literal section name.
4882 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
4883 list of xtensa tests.
4884 * testsuite/gas/xtensa/init-fini-literals.d: New file:
4885 init-fini-literals test result patterns.
4886 * testsuite/gas/xtensa/init-fini-literals.s: New file:
4887 init-fini-literals test.
4888
4889 2016-02-17 Nick Clifton <nickc@redhat.com>
4890
4891 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
4892 devices.csv file as of March 2016.
4893
4894 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
4895
4896 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
4897 function.
4898 (tc_arc_regname_to_dw2regnum): Likewise.
4899 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
4900 (tc_cfi_frame_initial_instructions): Likewise.
4901 (tc_regname_to_dw2regnum): Likewise.
4902 * testsuite/gas/cfi/cfi-arc-1.d: New file.
4903 * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
4904 * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
4905
4906 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
4907
4908 * doc/internals.texi (S_IS_EXTERN): Remove.
4909
4910 2016-02-16 Nick Clifton <nickc@redhat.com>
4911
4912 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
4913 update.
4914
4915 2016-02-16 Renlin Li <renlin.li@arm.com>
4916
4917 PR gas/19620
4918 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
4919 * testsuite/gas/aarch64/movw_label.d: New.
4920 * testsuite/gas/aarch64/movw_label.s: New.
4921
4922 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
4923
4924 PR gas/19556
4925 * config/rx-parse.y (MOV): Opcode generation for index
4926 register addressing mode.
4927 * testsuite/gas/rx/rx.exp: Updated for new testcase.
4928 * testsuite/gas/rx/pr19665.s: New file.
4929 * testsuite/gas/rx/pr19665.s: New file.
4930 * testsuite/gas/rx/mov.d: Update expected output.
4931
4932 2016-02-15 Nick Clifton <nickc@redhat.com>
4933
4934 * doc/as.texinfo (.section): Document that numeric values can now
4935 be used for the flags and type fields of the ELF target's .section
4936 directive. Add notes about the restrictions on setting flags and
4937 types.
4938 * config/obj-elf.c (obj_elf_change_section): Allow known sections
4939 to be given processor specific section types. Allow processor and
4940 application specific flags of a section to be set after
4941 definition.
4942 (obj_elf_parse_section_letters): Handle parsing numeric values.
4943 (obj_elf_section_type): Handle parsing numeric values.
4944 (obj_elf_section): Allow numeric type values.
4945 * config/obj-elf.h (obj_elf_change_section): Update prototype.
4946 * testsuite/gas/elf/section10.d: New test.
4947 * testsuite/gas/elf/section10.s: Source file for new test.
4948 * testsuite/gas/elf/elf.exp: Run the new test.
4949 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
4950 the description of the flags produced by readelf.
4951 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
4952 * NEWS: Mention the new feature.
4953
4954 2016-02-11 Nick Clifton <nickc@redhat.com>
4955
4956 PR gas/19614
4957 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
4958 until it is actually used.
4959 (cfi_set_sections): Set cfi_sections_set to true.
4960 (dot_cfi_startproc): Likewise.
4961 (dot_cfi_endproc): Likewise.
4962 (dot_cfi_fde_data): Likewise.
4963 (cfi_finish): Likewise.
4964 (dot_cfi_sections): Do not set cfi_sections_set.
4965 * doc/as.texinfo (.cfi_sections): Note that targets can provide
4966 their own cfi section name. Also note that the directive can be
4967 reissued provided that CFI generation has not started.
4968 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
4969 .cfi_endproc directives so that the redefinition of .cfi_sections
4970 will trigger the generation of the error message.
4971 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
4972 number of error message.
4973
4974 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
4975 Janek van Oirschot <jvanoirs@synopsys.com>
4976
4977 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
4978 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
4979 Define.
4980 (arc_flags, arc_relax_type): New structure.
4981 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
4982 (RELAX_TABLE_ENTRY_MAX): New define.
4983 (relaxation_state, md_relax_table, arc_relaxable_insns)
4984 (arc_num_relaxable_ins): New variable.
4985 (rlx_operand_type, arc_rlx_types): New enums.
4986 (arc_relaxable_ins): New structure.
4987 (OPTION_RELAX): New option.
4988 (arc_insn): New relax member.
4989 (arc_flags): Remove.
4990 (relax_insn_p): New function.
4991 (apply_fixups): Likewise.
4992 (relaxable_operand): Likewise.
4993 (may_relax_expr): Likewise.
4994 (relaxable_flag): Likewise.
4995 (arc_pcrel_adjust): Likewise.
4996 (md_estimate_size_before_relax): Implement.
4997 (md_convert_frag): Likewise.
4998 (md_parse_option): Handle new mrelax option.
4999 (md_show_usage): Likewise.
5000 (assemble_insn): Set relax member.
5001 (emit_insn0): New function.
5002 (emit_insn1): Likewise.
5003 (emit_insn): Handle relaxation case.
5004 * NEWS: Mention the new relaxation option.
5005 * doc/c-arc.texi (ARC Options): Document new mrelax option.
5006 * doc/as.texinfo (Target ARC Options): Likewise.
5007 * testsuite/gas/arc/relax-avoid1.d: New file.
5008 * testsuite/gas/arc/relax-avoid1.s: Likewise.
5009 * testsuite/gas/arc/relax-avoid2.d: Likewise.
5010 * testsuite/gas/arc/relax-avoid2.s: Likewise.
5011 * testsuite/gas/arc/relax-avoid3.d: Likewise.
5012 * testsuite/gas/arc/relax-avoid3.s: Likewise.
5013 * testsuite/gas/arc/relax-b.d: Likewise.
5014 * testsuite/gas/arc/relax-b.s: Likewise.
5015
5016 2016-02-08 Nick Clifton <nickc@redhat.com>
5017
5018 * config/tc-ia64.c (dot_prologue): Fix formatting.
5019
5020 2016-02-04 Nick Clifton <nickc@redhat.com>
5021
5022 * config/obj-elf.c (obj_elf_change_section): Remove support for
5023 ARM NOREAD sections.
5024 * config/tc-arm.c (arm_elf_section_letter): Delete.
5025 * config/tc-arm.h (md_elf_section_letter): Delete.
5026 * doc/c-arm.texi (ARM Section Attribute): Delete section.
5027 * testsuite/gas/arm/section-execute-only.d: Delete.
5028 * testsuite/gas/arm/section-execute-only.s: Delete.
5029
5030 2016-02-04 Nick Clifton <nickc@redhat.com>
5031
5032 PR target/19561
5033 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
5034 to handle encoding of RRUX instruction.
5035 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
5036 shift instructions.
5037 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
5038
5039 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
5040
5041 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
5042 substitutions for BFD_RELOC_* as unsigned.
5043 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
5044 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
5045 * testsuite/gas/xtensa/loc.s: New file: loc test.
5046
5047 2016-02-03 Kevin Buettner <kevinb@redhat.com>
5048
5049 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
5050
5051 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
5052
5053 PR gas/19520
5054 * NEWS: Mention new command line option -mrelax-relocations and
5055 new configure option --enable-x86-relax-relocations for x86
5056 target.
5057 * config.in: Regenerated.
5058 * configure.ac: Add --enable-x86-relax-relocations.
5059 (ac_default_x86_relax_relocations): New. Default to 1 except
5060 for x86 Solaris targets older than Solaris 12.
5061 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
5062 * configure: Likewise.
5063 * config/tc-i386.c (generate_relax_relocations): New.
5064 (OPTION_MRELAX_RELOCATIONS): Likewise.
5065 (output_disp): Don't generate relax relocations if
5066 generate_relax_relocations is 0.
5067 (md_longopts): Add -mrelax-relocations.
5068 (md_show_usage): Likewise.
5069 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
5070 * doc/c-i386.texi: Document -mrelax-relocations=.
5071 * testsuite/gas/i386/got-no-relax.d: New file.
5072 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
5073 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
5074 * testsuite/gas/i386/localpic.d: Likewise.
5075 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
5076 * testsuite/gas/i386/reloc32.d: Likewise.
5077 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
5078 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
5079 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
5080 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
5081 * testsuite/gas/i386/i386.exp: Run got-no-relax and
5082 x86-64-gotpcrel-no-relax.
5083
5084 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
5085
5086 * NEWS: Mention new command line option -mfence-as-lock-add=yes
5087 for x86 target.
5088
5089 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
5090
5091 * NEWS: Remove duplicated marker for 2.26.
5092
5093 2016-02-02 Renlin Li <renlin.li@arm.com>
5094
5095 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
5096
5097 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * testsuite/gas/ip2k/allinsn.d: New file.
5100 * testsuite/gas/ip2k/allinsn.s: New file.
5101 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
5102
5103 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5104
5105 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
5106 some load instructions.
5107 * testsuite/gas/epiphany/allinsn.d: Likewise.
5108 * testsuite/gas/epiphany/regression.d: Likewise.
5109
5110 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
5113 suffixes from instruction mnemonics in expected output.
5114 * testsuite/gas/epiphany/allinsn.d: Likewise.
5115 * testsuite/gas/epiphany/regression.d: Likewise.
5116 * testsuite/gas/epiphany/sample.d: Likewise.
5117
5118 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
5121 names.
5122 * testsuite/gas/epiphany/allinsn.d: Likewise.
5123 * testsuite/gas/epiphany/sample.d: Likewise.
5124
5125 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 * testsuite/gas/epiphany/sample.d: Update expected output.
5128
5129 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
5130
5131 * config/tc-arc.c (md_apply_fix): Allow addendum.
5132 (arc_reloc_op): Allow complex expressions for tpoff.
5133 (md_apply_fix): Handle resolved TLS local symbol.
5134 * testsuite/gas/arc/tls-relocs1.d: New file.
5135 * testsuite/gas/arc/tls-relocs1.s: Likewise.
5136
5137 2016-02-01 Loria <Loria@phantasia.org>
5138
5139 PR target/19311
5140 * config/tc-arm.c (encode_arm_immediate): Recode to improve
5141 efficiency and avoid an LLVM loop optimization bug.
5142
5143 2016-02-01 Nick Clifton <nickc@redhat.com>
5144
5145 * config/tc-microblaze.c (parse_imm): Fix compile time warning
5146 message extending a negative 32-bit value into a larger signed
5147 value on a 32-bit host.
5148
5149 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5150
5151 PR gas/19532
5152 * configure.ac (compressed_debug_sections): Replace == with =.
5153 * configure: Regenerated.
5154
5155 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
5156 H.J. Lu <hongjiu.lu@intel.com>
5157
5158 * config/tc-i386.c (avoid_fence): New.
5159 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
5160 is true.
5161 (OPTION_FENCE_AS_LOCK_ADD): New.
5162 (md_longopts): Add -mfence-as-lock-add.
5163 (md_parse_option): Handle -mfence-as-lock-add.
5164 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
5165 * doc/c-i386.texi (-mfence-as-lock-add): Document.
5166 * testsuite/gas/i386/i386.exp: Run new tests.
5167 * testsuite/gas/i386/fence-as-lock-add.s: New.
5168 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
5169 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
5170 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
5171 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
5172
5173 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
5174
5175 * configure.ac (compressed_debug_sections): Remove trailing `]'.
5176 * configure: Regenerated.
5177
5178 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
5179
5180 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
5181 (OPTION_MOMIT_LOCK_PREFIX): This.
5182 (md_longopts): Updated.
5183 (md_parse_option): Likewise.
5184
5185 2016-01-25 Catherine Moore <clm@codesourcery.com>
5186
5187 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
5188 if abicalls are in effect.
5189 * testsuite/gas/mips/sdata-gp.s: New test.
5190 * testsuite/gas/mips/sdata-gp.d: New expected output
5191 * testsuite/gas/mips/mips.exp: Run new test.
5192
5193 2016-01-25 Renlin Li <renlin.li@arm.com>
5194
5195 * testsuite/gas/arm/thumb2_it_search.d: New.
5196 * testsuite/gas/arm/thumb2_it_search.s: New.
5197
5198 2016-01-21 Nick Clifton <nickc@redhat.com>
5199
5200 PR gas/19454
5201 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
5202 with arm-netbsdelf target.
5203 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
5204
5205 2016-01-20 Nick Clifton <nickc@redhat.com>
5206
5207 PR 19456
5208 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
5209 * testsuite/gas/arm/blx-bl-convert.d
5210 * testsuite/gas/arm/plt-1.d: Likewise.
5211 * testsuite/gas/arm/reloc-bad.d: Likewise.
5212 * testsuite/gas/arm/thumb-w-good.d: Likewise.
5213 * testsuite/gas/arm/thumb2_pool.d: Likewise.
5214 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
5215 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
5216
5217 PR 19499
5218 * doc/as.texinfo (Errors): Correct documentation describing the
5219 interaction of .file and .line with warning and error messages.
5220
5221 PR 19458
5222 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
5223 * testsuite/gas/arm/archv8m-main.d: Likewise.
5224 * testsuite/gas/arm/archv8m-base.d: Likewise.
5225
5226 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
5227
5228 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
5229 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
5230 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
5231
5232 2016-01-20 Mickael Guene <mickael.guene@st.com>
5233 Terry Guo <terry.guo@arm.com>
5234
5235 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
5236 SHF_ARM_NOREAD section flag.
5237 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
5238 handle letter 'y'.
5239 (arm_elf_section_letter) : Declare it.
5240 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
5241 SHF_ARM_NOREAD section flag.
5242 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
5243
5244 * testsuite/gas/arm/section-execute-only.s: New test case.
5245 * testsuite/gas/arm/section-execute-only.d: Expected output.
5246
5247 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
5248
5249 * config/tc-mips.c (micromips_insn_length): Remove the mention
5250 of 48-bit microMIPS instructions.
5251
5252 2016-01-18 Alan Modra <amodra@gmail.com>
5253
5254 * configure: Regenerate.
5255
5256 2016-01-17 Alan Modra <amodra@gmail.com>
5257
5258 * configure: Regenerate.
5259
5260 2016-01-17 Alan Modra <amodra@gmail.com>
5261
5262 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
5263
5264 2016-01-14 Nick Clifton <nickc@redhat.com>
5265
5266 * testsuite/gas/rl78/sp-relative-movw.s: New test.
5267 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
5268 * testsuite/gas/rl78/rl78.exp: Run the new test.
5269
5270 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
5271
5272 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
5273 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
5274
5275 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
5276
5277 * config/tc-nios2.c (output_movia): Preset `code' to 0.
5278
5279 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
5280
5281 * config/tc-h8300.c (get_operand): Remove spurious condition in
5282 test for closing parenthesis.
5283
5284 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
5285
5286 * config/tc-arm.c (arm_ext_v8_2): New.
5287 (insns): Add "esb".
5288 * testsuite/gas/arm/armv8_2-a.d: New.
5289 * testsuite/gas/arm/armv8_2-a.s: New.
5290
5291 2016-01-12 Alan Modra <amodra@gmail.com>
5292
5293 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
5294
5295 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
5296
5297 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
5298 xvcmpnesp, xvcmpnesp.>: Delete tests.
5299 * testsuite/gas/ppc/power9.s: Likewise.
5300 * testsuite/gas/ppc/vsx3.d: Likewise.
5301 * testsuite/gas/ppc/vsx3.s: Likewise.
5302
5303 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
5304
5305 PR gas/13050
5306 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
5307 * testsuite/gas/m68k/p13050-1.s: New file.
5308 * testsuite/gas/m68k/p13050-2.d: New file.
5309 * testsuite/gas/m68k/p13050-2.s: New file.
5310
5311 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
5312
5313 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
5314 * testsuite/gas/arc/add.d: Likewise.
5315 * testsuite/gas/arc/and.d: Likewise.
5316 * testsuite/gas/arc/asl.d: Likewise.
5317 * testsuite/gas/arc/asr.d: Likewise.
5318 * testsuite/gas/arc/bic.d: Likewise.
5319 * testsuite/gas/arc/extb.d: Likewise.
5320 * testsuite/gas/arc/extw.d: Likewise.
5321 * testsuite/gas/arc/j.d: Likewise.
5322 * testsuite/gas/arc/jl.d: Likewise.
5323 * testsuite/gas/arc/ld2.d: Likewise.
5324 * testsuite/gas/arc/lsr.d: Likewise.
5325 * testsuite/gas/arc/mov.d: Likewise.
5326 * testsuite/gas/arc/or.d: Likewise.
5327 * testsuite/gas/arc/pcl-relocs.d: Likewise.
5328 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
5329 * testsuite/gas/arc/pic-relocs.d: Likewise.
5330 * testsuite/gas/arc/plt-relocs.d: Likewise.
5331 * testsuite/gas/arc/rlc.d: Likewise.
5332 * testsuite/gas/arc/ror.d: Likewise.
5333 * testsuite/gas/arc/rrc.d: Likewise.
5334 * testsuite/gas/arc/sbc.d: Likewise.
5335 * testsuite/gas/arc/sda-relocs.d: Likewise.
5336 * testsuite/gas/arc/sda-relocs2.d: Likewise.
5337 * testsuite/gas/arc/sexb.d: Likewise.
5338 * testsuite/gas/arc/sexw.d: Likewise.
5339 * testsuite/gas/arc/st.d: Likewise.
5340 * testsuite/gas/arc/sub.d: Likewise.
5341 * testsuite/gas/arc/tls-relocs.d: Likewise.
5342 * testsuite/gas/arc/xor.d: Likewise.
5343
5344 2016-01-01 Alan Modra <amodra@gmail.com>
5345
5346 Update year range in copyright notice of all files.
5347
5348 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
5349 \f
5350 Copyright (C) 2016 Free Software Foundation, Inc.
5351
5352 Copying and distribution of this file, with or without modification,
5353 are permitted in any medium without royalty provided the copyright
5354 notice and this notice are preserved.
5355
5356 Local Variables:
5357 mode: change-log
5358 left-margin: 8
5359 fill-column: 74
5360 version-control: never
5361 End: