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