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