Support aligning text section from odd addresses
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
e5b737de
AW
12016-12-21 Andrew Waterman <andrew@sifive.com>
2
3 * config/tc-riscv.c (riscv_make_nops): Emit 2-byte NOPs.
4 (riscv_frag_align_code): Correct frag_align_code arg.
5
ad5bc882
TN
62016-12-21 Tim Newsome <tim@sifive.com>
7
8 * config/tc-riscv.c (riscv_pre_output_hook): Remove const from
9 loc4_frag.
10
4e25adb3
AM
112016-12-21 Alan Modra <amodra@gmail.com>
12
13 * doc/c-lm32.texi: Fix chars with high bit set.
14 * testsuite/gas/bfin/vector2.s: Likewise.
15
9962fe29
AM
162016-12-21 Alan Modra <amodra@gmail.com>
17
18 PR gas/10946
19 * doc/as.texinfo (Chars): Document escape sequences.
20
11dd08e9
MR
212016-12-20 Maciej W. Rozycki <macro@imgtec.com>
22
23 * testsuite/gas/mips/mips16-sub.d: New test.
24 * testsuite/gas/mips/mips16-32@mips16-sub.d: New test.
25 * testsuite/gas/mips/mips16e-32@mips16-sub.d: New test.
26 * testsuite/gas/mips/mips16e-sub.d: New test.
27 * testsuite/gas/mips/mips16-32@mips16e-sub.d: New test.
28 * testsuite/gas/mips/mips16-64@mips16e-sub.d: New test.
29 * testsuite/gas/mips/mips16e-64-sub.d: New test.
30 * testsuite/gas/mips/mips16-32@mips16e-64-sub.d: New test.
31 * testsuite/gas/mips/mips16-64@mips16e-64-sub.d: New test.
32 * testsuite/gas/mips/mips16e-32@mips16e-64-sub.d: New test.
33 * testsuite/gas/mips/mips16-sub.s: New test source.
34 * testsuite/gas/mips/mips16e-sub.s: New test source.
35 * testsuite/gas/mips/mips16e-64-sub.s: New test source.
36 * testsuite/gas/mips/mips.exp: Run the new tests.
37
853faf5c
MR
382016-12-20 Maciej W. Rozycki <macro@imgtec.com>
39
40 * testsuite/gas/mips/mips16e.s: Add a RESTORE instruction.
41 * testsuite/gas/mips/mips16e.d: Adjust accordingly.
42
c60aaac1
MR
432016-12-20 Maciej W. Rozycki <macro@imgtec.com>
44
45 * testsuite/gas/mips/mips16.d: Adjust test for multiple MIPS16
46 ISA testing.
47 * testsuite/gas/mips/mips16-64.d: Adjust test for multiple
48 MIPS16 ISA testing.
49 * testsuite/gas/mips/mips16e-64.d: Adjust test for multiple
50 MIPS16 ISA testing.
51 * testsuite/gas/mips/mips16-macro.d: Adjust test for multiple
52 MIPS16 ISA testing.
53 * testsuite/gas/mips/mips16e-64.s: Ensure MIPS16 ISA annotation.
54 * testsuite/gas/mips/mips16e-64.l: Rename to...
55 * testsuite/gas/mips/mips16e-32@mips16e-64.l: ... this.
56 * testsuite/gas/mips/mips16-64@mips16.d: New test.
57 * testsuite/gas/mips/mips16-64@mips16-64.d: New test.
58 * testsuite/gas/mips/mips16e-32@mips16e-64.d: New test.
59 * testsuite/gas/mips/mips16-32@mips16-macro.d: New test.
60 * testsuite/gas/mips/mips16-64@mips16-macro.d: New test.
61 * testsuite/gas/mips/mips16e-32@mips16-macro.d: New test.
62 * testsuite/gas/mips/mips16-32@mips16-macro-e.d: New test.
63 * testsuite/gas/mips/mips16e-32@mips16-macro-e.d: New test.
64 * testsuite/gas/mips/mips16-32@mips16-macro-t.d: New test.
65 * testsuite/gas/mips/mips16e-32@mips16-macro-t.d: New test.
66 * testsuite/gas/mips/mips16e-32@mips16e-64.l: New stderr output.
67 * testsuite/gas/mips/mips16-32@mips16-macro.l: New stderr
68 output.
69 * testsuite/gas/mips/mips16e-32@mips16-macro.l: New stderr
70 output.
71 * testsuite/gas/mips/mips16-32@mips16-macro-e.l: New stderr
72 output.
73 * testsuite/gas/mips/mips16e-32@mips16-macro-e.l: New stderr
74 output.
75 * testsuite/gas/mips/mips16-32@mips16-macro-t.l: New stderr
76 output.
77 * testsuite/gas/mips/mips16e-32@mips16-macro-t.l: New stderr
78 output.
79 * testsuite/gas/mips/mips.exp: Run `mips16', `mips16-64',
80 `mips16-macro', `mips16-macro-t', `mips16-macro-e' and
81 `mips16e-64' testing across multiple MIPS16 ISAs. Fold
82 `mips16-macro' and `mips16e-64' list test invocations into
83 corresponding dump tests.
84
6b438200
MR
852016-12-20 Maciej W. Rozycki <macro@imgtec.com>
86
87 * testsuite/gas/mips/mips.exp (run_dump_test_arch): Add
88 `mips16e' and `mips16' prefixes.
89 (run_list_test_arch): Likewise.
90 Rename `mips16' architecture to `mips16-32'. Add `mips16-64',
91 `mips16e-32' and `mips16e-64' architectures. Update `rol64',
92 `mips16e', `elf${el}-rel2' and `elf-rel4' test invocations
93 accordingly.
94 * testsuite/gas/mips/mips16e@branch-swap-3.d: New test.
95 * testsuite/gas/mips/mips16e@branch-swap-4.d: New test.
96 * testsuite/gas/mips/mips16e@loc-swap-dis.d: New test.
97 * testsuite/gas/mips/mips16e@loc-swap.d: New test.
98
23c21251
MR
992016-12-20 Maciej W. Rozycki <macro@imgtec.com>
100
101 * testsuite/gas/mips/loc-swap.s: Use zeros rather than NOPs for
102 trailing alignment padding.
103 * testsuite/gas/mips/loc-swap.d: Adjust accordingly.
104 * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
105 * testsuite/gas/mips/mips16@loc-swap-dis.d: Likewise.
106
7fd53920
MR
1072016-12-20 Maciej W. Rozycki <macro@imgtec.com>
108
109 * config/tc-mips.c (micromips_insn_length): Use
110 `mips_opcode_32bit_p'.
111 (is_size_valid): Adjust description.
112 (is_size_valid_16): New function.
113 (validate_mips_insn): Use `mips_opcode_32bit_p' in MIPS16
114 operand decoding.
115 (validate_mips16_insn): Remove `a' and `i' operand code special
116 casing, use `mips_opcode_32bit_p' to determine instruction
117 width.
118 (append_insn): Adjust forced MIPS16 instruction size
119 determination.
120 (match_mips16_insn): Likewise. Don't shift the instruction's
121 opcode with the `a' and `i' operand codes. Use
122 `mips_opcode_32bit_p' in operand decoding.
123 (match_mips16_insns): Check for forced instruction size's
124 validity.
125 (mips16_ip): Don't force instruction size in the `noautoextend'
126 mode.
127 * testsuite/gas/mips/mips16-jal-e.d: New test.
128 * testsuite/gas/mips/mips16-jal-t.d: New test.
129 * testsuite/gas/mips/mips16-macro-e.d: New test.
130 * testsuite/gas/mips/mips16-macro-t.d: New test.
131 * testsuite/gas/mips/mips16-jal-t.l: New stderr output.
132 * testsuite/gas/mips/mips16-macro-e.l: New stderr output.
133 * testsuite/gas/mips/mips16-macro-t.l: New stderr output.
134 * testsuite/gas/mips/mips16-jal-e.s: New test source.
135 * testsuite/gas/mips/mips16-jal-t.s: New test source.
136 * testsuite/gas/mips/mips16-macro-e.s: New test source.
137 * testsuite/gas/mips/mips16-macro-t.s: New test source.
138 * testsuite/gas/mips/mips.exp: Run the new tests.
139
4ebce1a0
MR
1402016-12-20 Maciej W. Rozycki <macro@imgtec.com>
141
142 * testsuite/gas/mips/mips16-macro.l: New list test.
143 * testsuite/gas/mips/mips.exp: Run the new test.
144
c97dda72
MR
1452016-12-20 Maciej W. Rozycki <macro@imgtec.com>
146
147 * testsuite/gas/mips/mips16-sdrasp.d: New test.
148 * testsuite/gas/mips/mips16-sdrasp.l: New stderr output.
149 * testsuite/gas/mips/mips16-sdrasp.s: New test source.
150 * testsuite/gas/mips/mips.exp: Run the new test.
151
95f6ac88
MR
1522016-12-20 Maciej W. Rozycki <macro@imgtec.com>
153
154 * testsuite/gas/mips/mips.exp: Limit remaining tests that
155 require NewABI support to `has_newabi' targets.
156
d115ab8e
AW
1572015-12-20 Andrew Waterman <andrew@sifive.com>
158
159 * config/tc-riscv.c (riscv_pseudo_table): Remove "align",
160 "p2align", and "balign".
161 (s_align): Remove.
162 (riscv_handle_align): New function.
163 (riscv_frag_align_code): Likewise.
164 (riscv_make_nops): Likewise.
165 * config/tc-riscv.h (MAX_MEM_FOR_RS_ALIGN_CODE): Change to 7.
166 (HANDLE_ALIGN): Define.
167 (md_do_align): Define.
168 (riscv_handle_align): Declare.
169 (riscv_frag_align_code): Likewise.
170
2922d21d
AW
1712016-12-20 Andrew Waterman <andrew@sifive.com>
172
173 * config/tc-riscv.h (xlen): Delete.
174 * config/tc-riscv.c (xlen): Make static.
175 (abi_xlen): New variable.
176 (options): Replace OPTION_{M32,M64,MSOFT_FLOAT,MHARD_FLOAT,MRVC}
177 with OPTION_MABI.
178 (md_longopts): Likewise.
179 (md_parse_option): Likewise.
180 (riscv_elf_final_processing): Likewise.
181 * doc/as.texinfo (Target RISC-V options): Likewise.
182 * doc/c-riscv.texi (OPTIONS): Likewise.
183 * config/tc-riscv.c (float_mode): Removed.
184 (float_abi): New type, specifies the floating-point ABI.
185 (riscv_set_abi): New function.
186 (riscv_add_subset): Only allow lower-case ISA names and require
187 them to start with "rv".
188 (riscv_after_parse_args): Likewise.
189
45f76423
AW
1902016-12-20 Andrew Waterman <andrew@sifive.com>
191 Kuan-Lin Chen <kuanlinchentw@gmail.com>
192
193 * config/tc-riscv.c (riscv_set_options): Add relax.
194 (riscv_opts): Likewise.
195 (s_riscv_option): Add relax and norelax.
196 (riscv_apply_const_reloc): New function.
197 (append_insn): Move constant relocation handling to
198 riscv_apply_const_reloc.
199 (md_pcrel_from): Likewise.
200 (parse_relocation): Skip BFD_RELOC_UNUSED.
201 (md_pcrel_from): Handle BFD_RELOC_RISCV_SUB6,
202 BFD_RELOC_RISCV_RELAX, BFD_RELOC_RISCV_CFA.
203 (md_apply_fix): Likewise.
204 (riscv_pre_output_hook): New function.
205 * config/tc-riscv.h (md_pre_output_hook): Define.
206 (riscv_pre_output_hook): Declare.
207 (DWARF_CIE_DATA_ALIGNMENT): Always -4.
208
1d65abb5
AW
2092016-12-20 Andrew Waterman <andrew@sifive.com>
210
211 * config/tc-riscv.c: Formatting and comment fixes throughout.
212
eefc3365
MR
2132016-12-14 Maciej W. Rozycki <macro@imgtec.com>
214
215 * config/tc-mips.c (md_convert_frag): Report an error instead of
216 asserting on `ext'.
217 * testsuite/gas/mips/mips16-branch-unextended-1.d: New test.
218 * testsuite/gas/mips/mips16-branch-unextended-2.d: New test.
219 * testsuite/gas/mips/mips16-branch-unextended-1.s: New test
220 source.
221 * testsuite/gas/mips/mips16-branch-unextended-2.s: New test.
222 * testsuite/gas/mips/mips16-branch-unextended.l: New stderr
223 output.
224 * testsuite/gas/mips/mips.exp: Run the new tests.
225
353abf7c
MR
2262016-12-14 Maciej W. Rozycki <macro@imgtec.com>
227
228 * testsuite/gas/mips/mips16-sprel-swap.d: New test.
229 * testsuite/gas/mips/mips16-sprel-swap.s: New test source.
230 * testsuite/gas/mips/mips.exp: Run the new test.
231
a6a51754
RL
2322016-12-13 Renlin Li <renlin.li@arm.com>
233
234 * config/tc-aarch64.c (AARCH64_REG_TYPES): Remove CN register.
235 (get_reg_expected_msg): Remove CN register case.
236 (parse_operands): rewrite parser for CRn, CRm operand.
237 (reg_names): Remove CN register.
238 * testsuite/gas/aarch64/diagnostic.s: Add a new test case.
239 * testsuite/gas/aarch64/diagnostic.l: Adjust error message.
240
1bec0c86
JW
2412016-12-13 Jiong Wang <jiong.wang@arm.com>
242
243 * gas/testsuite/gas/aarch64/addsub.d: Support ILP32 mode.
244 * gas/testsuite/gas/aarch64/advsimd-across.d: Likewise.
245 * gas/testsuite/gas/aarch64/advsimd-armv8_3.d: Likewise.
246 * gas/testsuite/gas/aarch64/advsimd-fp16.d: Likewise.
247 * gas/testsuite/gas/aarch64/advsimd-misc.d: Likewise.
248 * gas/testsuite/gas/aarch64/advsisd-copy.d: Likewise.
249 * gas/testsuite/gas/aarch64/advsisd-misc.d: Likewise.
250 * gas/testsuite/gas/aarch64/alias.d: Likewise.
251 * gas/testsuite/gas/aarch64/armv8-ras-1.d: Likewise.
252 * gas/testsuite/gas/aarch64/b_1.d: Likewise.
253 * gas/testsuite/gas/aarch64/beq_1.d: Likewise.
254 * gas/testsuite/gas/aarch64/bitfield-dump: Likewise.
255 * gas/testsuite/gas/aarch64/bitfield-no-aliases.d: Likewise.
256 * gas/testsuite/gas/aarch64/codealign.d: Likewise.
257 * gas/testsuite/gas/aarch64/codealign_1.d: Likewise.
258 * gas/testsuite/gas/aarch64/crc32-directive.d: Likewise.
259 * gas/testsuite/gas/aarch64/crc32.d: Likewise.
260 * gas/testsuite/gas/aarch64/crypto-directive.d: Likewise.
261 * gas/testsuite/gas/aarch64/crypto.d: Likewise.
262 * gas/testsuite/gas/aarch64/dwarf.d: Likewise.
263 * gas/testsuite/gas/aarch64/float-fp16.d: Likewise.
264 * gas/testsuite/gas/aarch64/floatdp2.d: Likewise.
265 * gas/testsuite/gas/aarch64/fp-armv8_3.d: Likewise.
266 * gas/testsuite/gas/aarch64/fp-const0-parse.d: Likewise.
267 * gas/testsuite/gas/aarch64/fp_cvt_int.d: Likewise.
268 * gas/testsuite/gas/aarch64/fpmov.d: Likewise.
269 * gas/testsuite/gas/aarch64/inst-directive.d: Likewise.
270 * gas/testsuite/gas/aarch64/ldr_1.d: Likewise.
271 * gas/testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Likewise.
272 * gas/testsuite/gas/aarch64/ldst-exclusive.d: Likewise.
273 * gas/testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise.
274 * gas/testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise.
275 * gas/testsuite/gas/aarch64/ldst-reg-pair.d: Likewise.
276 * gas/testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise.
277 * gas/testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise.
278 * gas/testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise.
279 * gas/testsuite/gas/aarch64/lor-directive.d: Likewise.
280 * gas/testsuite/gas/aarch64/lor.d: Likewise.
281 * gas/testsuite/gas/aarch64/lse-atomic.d: Likewise.
282 * gas/testsuite/gas/aarch64/mapmisc.d: Likewise.
283 * gas/testsuite/gas/aarch64/mov-no-aliases.d: Likewise.
284 * gas/testsuite/gas/aarch64/mov.d: Likewise.
285 * gas/testsuite/gas/aarch64/movi.d: Likewise.
286 * gas/testsuite/gas/aarch64/movw_label.d: Likewise.
287 * gas/testsuite/gas/aarch64/msr.d: Likewise.
288 * gas/testsuite/gas/aarch64/neon-fp-cvt-int.d: Likewise.
289 * gas/testsuite/gas/aarch64/neon-frint.d: Likewise.
290 * gas/testsuite/gas/aarch64/neon-ins.d: Likewise.
291 * gas/testsuite/gas/aarch64/neon-not.d: Likewise.
292 * gas/testsuite/gas/aarch64/neon-vfp-reglist-post.d: Likewise.
293 * gas/testsuite/gas/aarch64/neon-vfp-reglist.d: Likewise.
294 * gas/testsuite/gas/aarch64/no-aliases.d: Likewise.
295 * gas/testsuite/gas/aarch64/optional.d: Likewise.
296 * gas/testsuite/gas/aarch64/pac.d: Likewise.
297 * gas/testsuite/gas/aarch64/pan-directive.d: Likewise.
298 * gas/testsuite/gas/aarch64/pan.d: Likewise.
299 * gas/testsuite/gas/aarch64/rdma-directive.d: Likewise.
300 * gas/testsuite/gas/aarch64/rdma.d: Likewise.
301 * gas/testsuite/gas/aarch64/reloc-dtprel_g0.d: Likewise.
302 * gas/testsuite/gas/aarch64/reloc-dtprel_g0_nc.d: Likewise.
303 * gas/testsuite/gas/aarch64/reloc-dtprel_g1.d: Likewise.
304 * gas/testsuite/gas/aarch64/reloc-dtprel_hi12.d: Likewise.
305 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-1.d: Likewise.
306 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc.d: Likewise.
307 * gas/testsuite/gas/aarch64/reloc-tlsldm-1.d: Likewise.
308 * gas/testsuite/gas/aarch64/reloc-tlsldm-page-1.d: Likewise.
309 * gas/testsuite/gas/aarch64/reloc-tlsldm_lo12_nc-1.d: Likewise.
310 * gas/testsuite/gas/aarch64/shifted.d: Likewise.
311 * gas/testsuite/gas/aarch64/sve.d: Likewise.
312 * gas/testsuite/gas/aarch64/symbol.d: Likewise.
313 * gas/testsuite/gas/aarch64/sysreg-1.d: Likewise.
314 * gas/testsuite/gas/aarch64/sysreg-2.d: Likewise.
315 * gas/testsuite/gas/aarch64/sysreg-3.d: Likewise.
316 * gas/testsuite/gas/aarch64/sysreg.d: Likewise.
317 * gas/testsuite/gas/aarch64/system-2.d: Likewise.
318 * gas/testsuite/gas/aarch64/system-3.d: Likewise.
319 * gas/testsuite/gas/aarch64/system.d: Likewise.
320 * gas/testsuite/gas/aarch64/tbz_1.d: Likewise.
321 * gas/testsuite/gas/aarch64/tlbi_op.d: Likewise.
322 * gas/testsuite/gas/aarch64/tls.d: Likewise.
323 * gas/testsuite/gas/aarch64/uao-directive.d: Likewise.
324 * gas/testsuite/gas/aarch64/uao.d: Likewise.
325 * gas/testsuite/gas/aarch64/virthostext-directive.d: Likewise.
326 * gas/testsuite/gas/aarch64/virthostext.d: Likewise.
327 * gas/testsuite/gas/aarch64/adr_1.d: Restrict test under -mabi=lp64.
328 * gas/testsuite/gas/aarch64/int-insns.d: Likewise.
329 * gas/testsuite/gas/aarch64/programmer-friendly.d: Likewise.
330 * gas/testsuite/gas/aarch64/reloc-data.d: Likewise.
331 * gas/testsuite/gas/aarch64/reloc-dtprel_g1_nc.d: Likewise.
332 * gas/testsuite/gas/aarch64/reloc-dtprel_g2.d: Likewise.
333 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst16.d: Likewise.
334 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst32.d: Likewise.
335 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst64.d: Likewise.
336 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst8.d: Likewise.
337 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst16.d: Likewise.
338 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst32.d: Likewise.
339 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst64.d: Likewise.
340 * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst8.d: Likewise.
341 * gas/testsuite/gas/aarch64/reloc-gotoff_g0_nc.d: Likewise.
342 * gas/testsuite/gas/aarch64/reloc-gotoff_g1.d: Likewise.
343 * gas/testsuite/gas/aarch64/reloc-gottprel_g0_nc.d: Likewise.
344 * gas/testsuite/gas/aarch64/reloc-gottprel_g1.d: Likewise.
345 * gas/testsuite/gas/aarch64/reloc-insn.d: Likewise.
346 * gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g0_nc.d: Likewise.
347 * gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g1.d: Likewise.
348 * gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.d: Likewise.
349 * gas/testsuite/gas/aarch64/reloc-tlsgd_g1.d: Likewise.
350 * gas/testsuite/gas/aarch64/tail_padding.d: Likewise.
351 * gas/testsuite/gas/aarch64/tls-desc.d: Likewise.
352
64c11183
MR
3532016-12-09 Maciej W. Rozycki <macro@imgtec.com>
354
355 * config/tc-mips.c (mips16_macro_build) <'>'>: Remove case.
356
f17ecb4b
MR
3572016-12-09 Maciej W. Rozycki <macro@imgtec.com>
358
359 * testsuite/gas/mips/mips16-extend.d: New test.
360 * testsuite/gas/mips/mips16-extend.s: New test source.
361 * testsuite/gas/mips/mips.exp: Run the new test.
362
731f7c4e
MR
3632016-12-08 Maciej W. Rozycki <macro@imgtec.com>
364
365 * config/tc-arc.c (arc_show_cpu_list): Rename `spaces' local
366 variable to `space_buf'.
367
bf355b69
MR
3682016-12-08 Maciej W. Rozycki <macro@imgtec.com>
369
370 * config/tc-arm.c (encode_arm_shift): Rename `index' local
371 variable to `op_index'.
372
da17fe9d
AM
3732016-12-08 Alan Modra <amodra@gmail.com>
374
375 * configure: Regenerate.
376
be0fcbee
MR
3772016-12-07 Maciej W. Rozycki <macro@imgtec.com>
378
379 * config/tc-mips.c (is_opcode_valid): Use local `isa'
380 consistently.
381
5e359a63
NC
3822016-12-06 Nick Clifton <nickc@redhat.com>
383
005304aa
NC
384 PR gas/20901
385 * read.c (s_space): Place an upper limit on the number of spaces
386 generated.
387
5e359a63
NC
388 PR gas/20896
389 * testsuite/gas/mmix/err-byte1.s: Adjust expected warning messages
390 to account for patch to next_char_of_string.
391
14c1428b
NC
3922016-12-05 Nick Clifton <nickc@redhat.com>
393
f49547a6
NC
394 PR gas/20902
395 * read.c (next_char_of_string): Do end advance past the end of the
396 buffer.
397
14c1428b
NC
398 PR gas/20904
399 * as.h (SKIP_ALL_WHITESPACE): New macro.
400 * expr.c (operand): Use it.
401
c28eeff2
SN
4022016-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
403
404 * config/tc-arm.c (do_vcmla, do_vcadd): Define.
405 (neon_scalar_for_vcmla): Define.
406 (enum operand_parse_code): Add OP_IROT1 and OP_IROT2.
407 (NEON_ENC_TAB): Add DDSI and QQSI variants.
408 (insns): Add vcmla and vcadd.
409 * testsuite/gas/arm/armv8_3-a-simd.d: New.
410 * testsuite/gas/arm/armv8_3-a-simd.s: New.
411 * testsuite/gas/arm/armv8_3-a-simd-bad.d: New.
412 * testsuite/gas/arm/armv8_3-a-simd-bad.l: New.
413 * testsuite/gas/arm/armv8_3-a-simd-bad.s: New.
414
06911889
CZ
4152016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
416
417 * testsuite/gas/arc/textauxregister-1.d: New file.
418 * testsuite/gas/arc/textauxregister-1.s: Likewise.
419 * testsuite/gas/arc/textcondcode-err.s: Likewise.
420 * testsuite/gas/arc/textcoreregister-err.s: Likewise.
421 * config/tc-arc.c (tokenize_extregister): Return bfd_boolean,
422 don't check second argument of extension auxiliary register for
423 signess.
424 (arc_extcorereg): Consider the return of tokenize_extregister
425 function call.
426
49e8a725
SN
4272016-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
428
429 * config/tc-arm.c (arm_ext_v8_3, do_vjcvt): Define.
430 (insns): Add vjcvt.
431 * testsuite/gas/aarch64/armv8_3-a-fp.s: New.
432 * testsuite/gas/aarch64/armv8_3-a-fp.d: New.
433 * testsuite/gas/aarch64/armv8_3-a-fp-bad.s: New.
434 * testsuite/gas/aarch64/armv8_3-a-fp-bad.d: New.
435 * testsuite/gas/aarch64/armv8_3-a-fp-bad.l: New.
436
a12fd8e1
SN
4372016-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
438
439 * config/tc-arm.c (arm_archs): Add "armv8.3-a".
440 * doc/c-arm.texi (-march): Add "armv8.3-a".
441
a9752fdf
CZ
4422016-12-02 Claudiu Zissulescu <claziss@synopsys.com>
443
444 * testsuite/gas/arc/cpu-em-err.s: New file.
445 * testsuite/gas/arc/cpu-em4-err.s: Likewise.
446 * testsuite/gas/arc/cpu-fpuda-err.s: Likewise.
447 * testsuite/gas/arc/cpu-hs-err.s: Likewise.
448 * testsuite/gas/arc/cpu-quarkse-err.s: Likewise.
449 * testsuite/gas/arc/noargs_a7.s: Add .cpu.
450 * config/tc-arc.c (ARC_CPU_TYPE_A6xx): Define.
451 (ARC_CPU_TYPE_A7xx): Likewise.
452 (ARC_CPU_TYPE_AV2EM): Likewise.
453 (ARC_CPU_TYPE_AV2HS): Likewise.
454 (cpu_types): Update list of known CPU names.
455 (arc_show_cpu_list): New function.
456 (md_show_usage): Print accepted CPU names.
457 (cl_features): New variable.
458 (arc_select_cpu): Use cl_features.
459 (arc_option): Allow various .cpu names.
460 (md_parse_option): Set cl_features.
461 * doc/c-arc.texi: Update -mcpu and .cpu documentation.
462
d5451cd4
JC
4632016-12-02 Josh Conner <joshconner@google.com>
464
465 * configure.tgt: Add support for fuchsia (OS).
466
6d6ad65b
NC
4672016-12-01 Nick Clifton <nickc@redhat.com>
468
69ace220
NC
469 PR gas/20898
470 * app.c (do_scrub_chars): Do not attempt to unget EOF.
471
4cbd8408
NC
472 PR gas/20897
473 * subsegs.c (subsegs_print_statistics): Do nothing if no output
474 file was created.
475
6d6ad65b
NC
476 PR gas/20895
477 * symbols.c (resolve_symbol_value): Gracefully handle erroneous
478 symbolic expressions.
479
abe7c33b
CZ
4802016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
481
482 * config/tc-arc.c (find_opcode_match): New function argument
483 errmsg.
484 (assemble_tokens): Collect and report the eventual error message
485 found during opcode matching process.
486 * testsuite/gas/arc/lpcount-err.s: New file.
487 * testsuite/gas/arc/add_s-err.s: Update error message.
488
abfcb414
AP
4892016-11-28 Ramiro Polla <ramiro@hex-rays.com>
490 Amit Pawar <amit.pawar@amd.com>
491
492 PR binutils/20637
493 * testsuite/gas/i386/xop32reg.d: New file.
494 * testsuite/gas/i386/xop32reg.s: New file.
495 * testsuite/gas/i386/i386.exp: Run new test.
496
a582903f
AM
4972016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
498
499 * arparse.y: Fix spelling in comments.
500
8f02b5ad
AM
5012016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
502
503 * config/bfin-lex.l: Fix spelling in comments.
504
c29ae970
AM
5052016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
506
507 * testsuite/gas/all/gas.exp: Fix spelling in comments.
508 * testsuite/gas/cris/cris.exp: Fix spelling in comments.
509 * testsuite/gas/hppa/basic/basic.exp: Fix spelling in comments.
510 * testsuite/gas/hppa/parse/parse.exp: Fix spelling in comments.
511 * testsuite/gas/hppa/reloc/reloc.exp: Fix spelling in comments.
512 * testsuite/gas/sh/arch/arch.exp: Fix spelling in comments.
513 * testsuite/gas/tic4x/tic4x.exp: Fix spelling in comments.
514
a40d0312
AM
5152016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
516
517 * testsuite/gas/arm/local_function.d: Fix spelling in comments.
518 * testsuite/gas/arm/req.s: Fix spelling in comments.
519 * testsuite/gas/arm/vfp1.s: Fix spelling in comments.
520 * testsuite/gas/arm/vfp1_t2.s: Fix spelling in comments.
521 * testsuite/gas/arm/vfp1xD.s: Fix spelling in comments.
522 * testsuite/gas/arm/vfp1xD_t2.s: Fix spelling in comments.
523 * testsuite/gas/mcore/allinsn.s: Fix spelling in comments.
524 * testsuite/gas/mips/24k-triple-stores-5.s: Fix spelling in comments.
525 * testsuite/gas/mips/delay.d: Fix spelling in comments.
526 * testsuite/gas/mips/nodelay.d: Fix spelling in comments.
527 * testsuite/gas/mips/r5900-full.s: Fix spelling in comments.
528 * testsuite/gas/mips/r5900.s: Fix spelling in comments.
529
2b0f3761
AM
5302016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
531
532 * as.h: Fix spelling in comments.
533 * config/obj-ecoff.c: Fix spelling in comments.
534 * config/obj-macho.c: Fix spelling in comments.
535 * config/tc-aarch64.c: Fix spelling in comments.
536 * config/tc-arc.c: Fix spelling in comments.
537 * config/tc-arm.c: Fix spelling in comments.
538 * config/tc-avr.c: Fix spelling in comments.
539 * config/tc-cr16.c: Fix spelling in comments.
540 * config/tc-epiphany.c: Fix spelling in comments.
541 * config/tc-frv.c: Fix spelling in comments.
542 * config/tc-hppa.c: Fix spelling in comments.
543 * config/tc-hppa.h: Fix spelling in comments.
544 * config/tc-i370.c: Fix spelling in comments.
545 * config/tc-m68hc11.c: Fix spelling in comments.
546 * config/tc-m68k.c: Fix spelling in comments.
547 * config/tc-mcore.c: Fix spelling in comments.
548 * config/tc-mep.c: Fix spelling in comments.
549 * config/tc-metag.c: Fix spelling in comments.
550 * config/tc-mips.c: Fix spelling in comments.
551 * config/tc-mn10200.c: Fix spelling in comments.
552 * config/tc-mn10300.c: Fix spelling in comments.
553 * config/tc-nds32.c: Fix spelling in comments.
554 * config/tc-nios2.c: Fix spelling in comments.
555 * config/tc-ns32k.c: Fix spelling in comments.
556 * config/tc-pdp11.c: Fix spelling in comments.
557 * config/tc-ppc.c: Fix spelling in comments.
558 * config/tc-riscv.c: Fix spelling in comments.
559 * config/tc-rx.c: Fix spelling in comments.
560 * config/tc-score.c: Fix spelling in comments.
561 * config/tc-score7.c: Fix spelling in comments.
562 * config/tc-sparc.c: Fix spelling in comments.
563 * config/tc-tic54x.c: Fix spelling in comments.
564 * config/tc-vax.c: Fix spelling in comments.
565 * config/tc-xgate.h: Fix spelling in comments.
566 * config/tc-xtensa.c: Fix spelling in comments.
567 * config/tc-z80.c: Fix spelling in comments.
568 * dwarf2dbg.c: Fix spelling in comments.
569 * input-file.h: Fix spelling in comments.
570 * itbl-ops.c: Fix spelling in comments.
571 * read.c: Fix spelling in comments.
572 * stabs.c: Fix spelling in comments.
573 * symbols.c: Fix spelling in comments.
574 * write.c: Fix spelling in comments.
575 * testsuite/gas/all/itbl-test.c: Fix spelling in comments.
576 * testsuite/gas/tic4x/opclasses.h: Fix spelling in comments.
577
65d1cff9
JM
5782016-11-25 Jose E. Marchesi <jose.marchesi@oracle.com>
579
580 * config/tc-sparc.c (sparc_ip): Avoid emitting a cbcond error
581 messages for non-cbcond instructions.
582 * testsuite/gas/sparc/cbcond-diag.s: New file.
583 * testsuite/gas/sparc/cbcond-diag.l: Likewise.
584 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run cbcond-diag tests.
585
128e85e3
JM
5862016-11-23 Jose E. Marchesi <jose.marchesi@oracle.com>
587
588 * testsuite/gas/sparc/sparc.exp (gas_64_check): Make sure the
589 hwcaps-bump test is run with 64-bit objects.
590
073808ed
KLC
5912016-11-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
592
593 * config/tc-riscv.c: Add missing break.
594
3ae0486c
AM
5952016-11-23 Alan Modra <amodra@gmail.com>
596
597 * po/POTFILES.in: Regenerate.
598
96fe4562
AM
5992016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
600
601 * configure: Regenerate.
602
6884417a
JM
6032016-11-22 Jose E. Marchesi <jose.marchesi@oracle.com>
604
605 * config/tc-sparc.c: Move HWS_* and HWS2_* definitions to
606 opcodes/sparc-opc.c.
607 (sparc_arch): Clarify the new role of the hwcap_allowed and
608 hwcap2_allowed fields.
609 (sparc_arch_table): Remove HWS_* and HWS2_* instances from
610 hwcap_allowed and hwcap2_allowed respectively.
611 (md_parse_option): Include the opcode arch hwcaps when processing
612 -A.
613 (sparc_ip): Use the current opcode arch hwcaps to update
614 hwcap_allowed, as well as the hwcaps of the instruction triggering
615 the bump.
616 * testsuite/gas/sparc/hwcaps-bump.s: New file.
617 * testsuite/gas/sparc/hwcaps-bump.l: Likewise.
618 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run tests in
619 hwcaps-bump.
620
c4b943d7
CZ
6212016-11-22 Claudiu Zissulescu <claziss@synopsys.com>
622
623 * testsuite/gas/arc/b.d: Update test result.
624
08dc996f
AM
6252016-11-22 Alan Modra <amodra@gmail.com>
626
627 PR 20744
628 * config/tc-ppc.c: Delete VLE insn defines.
629 (md_assemble): Swap use_a_reloc and use_d_reloc.
630 * testsuite/gas/ppc/vle-reloc.d: Update.
631
5689c942
RL
6322016-11-21 Renlin Li <renlin.li@arm.com>
633
634 PR gas/20827
635 * config/tc-arm.c (encode_arm_shift): Don't assert for operands not
636 presented.
637 * testsuite/gas/arm/add-shift-two.d: New.
638 * testsuite/gas/arm/add-shift-two.s: New.
639
2d7f2507
AM
6402016-11-21 Alan Modra <amodra@gmail.com>
641
642 * configure.ac: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
643 * Makefile.am (comparison): Rewrite using do_compare.
644 * configure: Regenerate.
645 * Makefile.in: Regenerate.
646 * doc/Makefile.in: Regenerate.
647
bb050a69
CZ
6482016-11-18 Claudiu Zissulescu <claziss@synopsys.com>
649
650 * testsuite/gas/arc/cl-warn.s: New file.
651 * testsuite/gas/arc/cpu-pseudop-1.d: Likewise.
652 * testsuite/gas/arc/cpu-pseudop-1.s: Likewise.
653 * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
654 * testsuite/gas/arc/cpu-pseudop-2.s: Likewise.
655 * testsuite/gas/arc/cpu-warn2.s: Likewise.
656 * config/tc-arc.c (selected_cpu): Initialize.
657 (feature_type): New struct.
658 (feature_list): New variable.
659 (arc_check_feature): New function.
660 (arc_select_cpu): Check for .cpu duplicates. Don't overwrite the
661 current cpu features. Check if a feature is available for a given
662 cpu.
663 (md_parse_option): Test if features are available for a given cpu.
664
c2c4ff8d
SN
6652016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
666
667 * config/tc-aarch64.c (parse_operands): Handle AARCH64_OPND_IMM_ROT*.
668 * testsuite/gas/aarch64/advsimd-armv8_3.d: New.
669 * testsuite/gas/aarch64/advsimd-armv8_3.s: New.
670 * testsuite/gas/aarch64/illegal-fcmla.s: New.
671 * testsuite/gas/aarch64/illegal-fcmla.l: New.
672 * testsuite/gas/aarch64/illegal-fcmla.d: New.
673
28617675
SN
6742016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
675
676 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Add ldaprb, ldaprh, ldapr tests.
677 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Likewise.
678 * testsuite/gas/aarch64/illegal-ldapr.s: Likewise.
679 * testsuite/gas/aarch64/illegal-ldapr.d: Likewise.
680 * testsuite/gas/aarch64/illegal-ldapr.l: Likewise.
681
ccfc90a3
SN
6822016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
683
684 * testsuite/gas/aarch64/fp-armv8_3.s: Add fjcvtzs test.
685 * testsuite/gas/aarch64/fp-armv8_3.d: Likewise.
686 * testsuite/gas/aarch64/illegal-fjcvtzs.s: Likewise.
687 * testsuite/gas/aarch64/illegal-fjcvtzs.d: Likewise.
688 * testsuite/gas/aarch64/illegal-fjcvtzs.l: Likewise.
689 * testsuite/gas/aarch64/illegal-nofp-armv8_3.s: Likewise.
690 * testsuite/gas/aarch64/illegal-nofp-armv8_3.d: Likewise.
691 * testsuite/gas/aarch64/illegal-nofp-armv8_3.l: Likewise.
692
3f06e550
SN
6932016-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
694
695 * config/tc-aarch64.c (parse_operands): Handle AARCH64_OPND_ADDR_SIMM10.
696 (fix_insn): Likewise.
697 (warn_unpredictable_ldst): Handle ldst_imm10.
698 * testsuite/gas/aarch64/pac.s: Add ldraa and ldrab tests.
699 * testsuite/gas/aarch64/pac.d: Likewise.
700 * testsuite/gas/aarch64/illegal-ldraa.s: New.
701 * testsuite/gas/aarch64/illegal-ldraa.l: New.
702 * testsuite/gas/aarch64/illegal-ldraa.d: New.
703
93ca3936
NC
7042016-11-15 Nick Clifton <nickc@redhat.com>
705
706 PR gas/20803
707 * config/tc-sparc.c (cons_fix_new_sparc): Use unaligned relocs in
708 the .eh_frame section.
709
b612f419
AG
7102016-11-13 Anthony Green <green@moxielogic.org>
711
712 * config/tc-moxie.c (md_assemble): Assemble 'bad' opcode.
713
86b80085
NC
7142016-11-11 Nick Clifton <nickc@redhat.com>
715
716 PR gas/20732
717 * expr.c (integer_constant): If tc_allow_L_suffix is defined and
718 non-zero then accept a L or LL suffix.
719 * testsuite/gas/sparc/pr20732.d: New test source file.
720 * testsuite/gas/sparc/pr20732.d: New test output file.
721 * testsuite/gas/sparc/sparc.exp: Run new test.
722
74f5402d
SN
7232016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
724
725 * testsuite/gas/aarch64/pac.s: Add ARMv8.3 branch instruction tests.
726 * testsuite/gas/aarch64/pac.d: Likewise.
727
c84364ec
SN
7282016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
729
730 * config/tc-aarch64.c (process_omitted_operand): Handle AARCH64_OPND_Rm_SP.
731 (parse_operands): Likewise.
732 * testsuite/gas/aarch64/pac.s: Add pacga.
733 * testsuite/gas/aarch64/pac.d: Add pacga.
734
a2cfc830
SN
7352016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
736
737 * testsuite/gas/aarch64/pac.s: New.
738 * testsuite/gas/aarch64/pac.d: New.
739
b0bfa7b5
SN
7402016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
741
742 * testsuite/gas/aarch64/sysreg-3.s: New.
743 * testsuite/gas/aarch64/sysreg-3.d: New.
744 * testsuite/gas/aarch64/illegal-sysreg-3.l: New.
745 * testsuite/gas/aarch64/illegal-sysreg-3.d: New.
746
8787d804
SN
7472016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
748
749 * testsuite/gas/aarch64/system-3.s: New.
750 * testsuite/gas/aarch64/system-3.d: New.
751 * testsuite/gas/aarch64/system.d: Update expected output.
752
1924ff75
SN
7532016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
754
755 * config/tc-aarch64.c (aarch64_archs): Add "armv8.3-a".
756 * doc/c-aarch64.texi (-march): Likewise.
757
fa09f4ea
SN
7582016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
759
760 * config/tc-aarch64.c (aarch64_features): Fix "simd" and "crypto".
761 * testsuite/gas/aarch64/illegal-crypto-nofp.d: New.
762 * testsuite/gas/aarch64/illegal-crypto-nofp.l: New.
763 * testsuite/gas/aarch64/illegal-fp16-nofp.d: New.
764 * testsuite/gas/aarch64/illegal-fp16-nofp.l: New.
765 * testsuite/gas/aarch64/illegal-fp16-nofp.s: New.
766
60227d64
L
7672016-11-09 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR binutils/20799
770 * testsuite/gas/i386/opcode.s: Add a test for EVEX vpextrw.
771 * testsuite/gas/i386/opcode-intel.d: Updated.
772 * testsuite/gas/i386/opcode-suffix.d: Likewise.
773 * testsuite/gas/i386/opcode.d: Likewise.
774 * testsuite/gas/i386/x86-64-avx512bw-opts.s: Remove vpextrw
775 tests.
776 * testsuite/gas/i386/x86-64-avx512bw-opts-intel.d: Updated.
777 * testsuite/gas/i386/x86-64-avx512bw-opts.d: Likewise.
778
7766fd10
L
7792016-11-09 H.J. Lu <hongjiu.lu@intel.com>
780
781 PR binutils/20754
782 * testsuite/gas/i386/opcode-suffix.d: Updated.
783
48c97fa1
L
7842016-11-07 H.J. Lu <hongjiu.lu@intel.com>
785
786 PR binutils/20775
787 * testsuite/gas/i386/i386.exp: Run fpu-bad.
788 * testsuite/gas/i386/fpu-bad.d: New file.
789 * testsuite/gas/i386/fpu-bad.s: Likewise.
790
9cee1c1e
NS
7912016-11-04 Nathan Sidwell <nathan@acm.org>
792
793 gas/
794 * input-scrub.c (partial_size): Make size_t.
795 (buffer_length): Likewise. Adjust meaning.
796 (struct input_save): Adjust partial_size type.
797 (input_scrub_reinit): New.
798 (input_scrub_push, input_scrub_begin): Use it.
799 (input_scrub_next_buffer): Fix buffer extension logic. Only scan
800 newly read buffer for newline.
801
b437d035
AB
8022016-11-04 Andrew Burgess <andrew.burgess@embecosm.com>
803
804 * config/tc-arc.c (find_opcode_match): Use insert function to
805 validate matching address type operands.
806 * testsuite/gas/arc/nps400-10.d: New file.
807 * testsuite/gas/arc/nps400-10.s: New file.
808
b19ea8d2
TP
8092016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
810
811 * config/tc-arm.c (cortex-m33): Declare new processor.
812 * doc/c-arm.texi (-mcpu ARM command line option): Document new
813 Cortex-M33 processor.
814 * NEWS: Mention ARM Cortex-M33 support.
815
ce1b0a45
TP
8162016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
817
818 * config/tc-arm.c (cortex-m23): Declare new processor.
819 * doc/c-arm.texi (-mcpu ARM command line option): Document new
820 Cortex-M23 processor.
821 * NEWS: Mention ARM Cortex-M23 support.
822
4f7eddc4
PD
8232016-11-04 Palmer Dabbelt <palmer@dabbelt.com>
824 Andrew Waterman <andrew@sifive.com>
825
826 * Makefile.am (CPU_DOCS): Add c-riscv.texi.
827 * Makefile.in: Regenerate.
828 * doc/all.texi: Set RISCV.
829 * doc/as.texinfo: Add RISCV options.
830 Add RISC-V-Dependent node.
831 Include c-riscv.texi.
832 * doc/c-riscv.texi: Rename RISC-V Options to RISC-V-Opts.
833
98d0e90c
GM
8342016-11-03 Graham Markall <graham.markall@embecosm.com>
835
836 * testsuite/gas/arc/nps400-6.s: Change ldbit tests so that limm
837 operands are out of the range of an s9, in order to fix the test.
838 * testsuite/gas/arc/nps400-6.d: Updated to match new expected output.
839
5a736821
GM
8402016-11-03 Graham Markall <graham.markall@embecosm.com>
841
842 * testsuite/gas/arc/nps-400-9.d: Added.
843 * testsuite/gas/arc/nps-400-9.s: Added.
844
bdfe53e3
AB
8452016-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * config/tc-arc.c (struct arc_insn): Change type of insn field.
848 (md_number_to_chars_midend): Support 6- and 8-byte values.
849 (emit_insn0): Update debug output.
850 (find_opcode_match): Likewise.
851 (build_fake_opcode_hash_entry): Delete.
852 (find_special_case_long_opcode): Delete.
853 (find_special_case): Remove long format special case handling.
854 (insert_operand): Change instruction type and update debug print
855 format.
856 (assemble_insn): Change instruction type, update debug print
857 formats, and remove unneeded assert.
858
06fe285f
GM
8592016-11-03 Graham Markall <graham.markall@embecosm.com>
860
861 * config/tc-arc.c (assemble_insn): Replace use of ARC_SHORT with
862 arc_opcode_len.
863
91fdca6f
GM
8642016-11-03 Graham Markall <graham.markall@embecosm.com>
865
866 * config/tc-arc.c (struct arc_insn): Replace short_insn flag with
867 len field.
868 (apply_fixups): Update to use len field.
869 (emit_insn0): Simplify code, making use of len field.
870 (md_convert_frag): Update to use len field.
871 (assemble_insn): Update to use len field.
872
2fe9c2a0
SP
8732016-11-03 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
874
875 * config/tc-aarch64.c (aarch64_cpus): Add falkor.
876 * config/tc-arm.c (arm_cpus): Likewise.
877 * doc/c-aarch64.texi: Likewise.
878 * doc/c-arm.texi: Likewise.
879
8b89fe14
L
8802016-11-03 H.J. Lu <hongjiu.lu@intel.com>
881
882 PR binutils/20754
883 * testsuite/gas/i386/opcode.s: Add tests for opcode 0x82.
884 * testsuite/gas/i386/opcode-intel.d: Updated.
885 * testsuite/gas/i386/opcode.d: Likewise.
886
bada4342
JW
8872016-11-02 Jiong Wang <jiong.wang@arm.com>
888
889 * config/tc-arm.c (SBIT_SHIFT): New.
890 (T2_SBIT_SHIFT): Likewise.
891 (t32_insn_ok): Return TRUE for MOV in ARMv8-M Baseline.
892 (md_apply_fix): Try UINT16 encoding when ARM/Thumb modified immediate
893 encoding failed.
894 * testsuite/gas/arm/archv6t2-bad.s: New error case.
895 * testsuite/gas/arm/archv6t2-bad.l: New error match.
896 * testsuite/gas/arm/archv6t2.s: New testcase.
897 * testsuite/gas/arm/archv6t2.d: New expected result.
898 * testsuite/gas/arm/archv8m.s: New testcase.
899 * testsuite/gas/arm/archv8m-base.d: New expected result.
900 * testsuite/gas/arm/archv8m-main.d: Likewise.
901 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
902
47acf0bd
IT
9032016-11-02 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
904
905 * config/tc-i386.c: (cpu_arch) Add .avx512_4vnniw.
906 (cpu_noarch): Add noavx512_4vnniw.
907 * doc/c-i386.texi: Document avx512_4vnniw, noavx512_4vnniw.
908 * testsuite/gas/i386/i386.exp: Run AVX512_4VNNIW tests.
909 * testsuite/gas/i386/avx512_4vnniwd_vl-intel.d: New test.
910 * testsuite/gas/i386/avx512_4vnniwd_vl.d: Ditto.
911 * testsuite/gas/i386/avx512_4vnniwd_vl.s: Ditto.
912 * testsuite/gas/i386/avx512_4vnniwd-intel.d: Ditto.
913 * testsuite/gas/i386/avx512_4vnniwd.d: Ditto.
914 * testsuite/gas/i386/avx512_4vnniwd.s: Ditto.
915 * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl-intel.d: Ditto.
916 * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.d: Ditto.
917 * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.s: Ditto.
918 * testsuite/gas/i386/x86-64-avx512_4vnniwd-intel.d: Ditto.
919 * testsuite/gas/i386/x86-64-avx512_4vnniwd.d: Ditto.
920 * testsuite/gas/i386/x86-64-avx512_4vnniwd.s: Ditto.
921
920d2ddc
IT
9222016-11-02 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
923
924 * config/tc-i386.c (cpu_arch): Add .avx512_4fmaps.
925 (cpu_noarch): Add noavx512_4fmaps.
926 (process_operands): Handle implicit quad group.
927 * doc/c-i386.texi: Document avx512_4fmaps, noavx512_4fmaps.
928 * testsuite/gas/i386/i386.exp: Add AVX512_4FMAPS tests.
929 * testsuite/gas/i386/avx512_4fmaps_vl-intel.d: New test.
930 * testsuite/gas/i386/avx512_4fmaps_vl.d: Ditto.
931 * testsuite/gas/i386/avx512_4fmaps_vl.s: Ditto.
932 * testsuite/gas/i386/avx512_4fmaps-intel.d: Ditto.
933 * testsuite/gas/i386/avx512_4fmaps.d: Ditto.
934 * testsuite/gas/i386/avx512_4fmaps.s: Ditto.
935 * testsuite/gas/i386/avx512_4fmaps-warn.l: Ditto.
936 * testsuite/gas/i386/avx512_4fmaps-warn.s: Ditto.
937 * testsuite/gas/i386/avx512_4fmaps_vl-warn.l: Ditto.
938 * testsuite/gas/i386/avx512_4fmaps_vl-warn.s: Ditto.
939 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Ditto.
940 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d: Ditto.
941 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Ditto.
942 * testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d: Ditto.
943 * testsuite/gas/i386/x86-64-avx512_4fmaps.d: Ditto.
944 * testsuite/gas/i386/x86-64-avx512_4fmaps.s: Ditto.
945 * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.l: Ditto.
946 * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.s: Ditto.
947 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.l: Ditto.
948 * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.s: Ditto.
949
e23eba97
NC
9502016-11-01 Palmer Dabbelt <palmer@dabbelt.com>
951 Andrew Waterman <andrew@sifive.com>
952
953 Add support for RISC-V architecture.
954 * Makefile.am: Add riscv files.
955 * Makefile.in: Regenerate.
956 * NEWS: Mention the support for this architecture.
957 * configure.in: Define a default architecture.
958 * configure: Regenerate.
959 * configure.tgt: Add entries for riscv.
960 * doc/as.texinfo: Likewise.
961 * testsuite/gas/all/gas.exp: Expect the redef tests to fail.
962 * testsuite/gas/elf/elf.exp: Expect the groupauto tests to fail.
963 * config/tc-riscv.c: New file.
964 * config/tc-riscv.h: New file.
965 * doc/c-riscv.texi: New file.
966 * testsuite/gas/riscv: New directory.
967 * testsuite/gas/riscv/riscv.exp: New file.
968 * testsuite/gas/riscv/t_insns.d: New file.
969 * testsuite/gas/riscv/t_insns.s: New file.
970
bb65a718
AB
9712016-10-27 Andrew Burgess <andrew.burgess@embecosm.com>
972
973 * config/tc-arc.c (arc_target): Delete.
974 (arc_target_name): Delete.
975 (arc_features): Delete.
976 (arc_mach_type): Delete.
977 (mach_type_specified_p): Delete.
978 (enum mach_selection_type): New enum.
979 (mach_selection_mode): New static global.
980 (selected_cpu): New static global.
981 (arc_eflag): Rename to ...
982 (arc_initial_eflag): ...this, and make const.
983 (arc_select_cpu): Update comment, new parameter, check how
984 previous machine type selection was made, and record this
985 selection. Use selected_cpu instead of old globals.
986 (arc_option): Remove use of arc_get_mach, instead use
987 arc_select_cpu to validate machine type selection. Use
988 selected_cpu over old globals.
989 (allocate_tok): Use selected_cpu over old globals.
990 (find_opcode_match): Likewise.
991 (assemble_tokens): Likewise.
992 (arc_cons_fix_new): Likewise.
993 (arc_extinsn): Likewise.
994 (arc_extcorereg): Likewise.
995 (md_begin): Update default machine type selection, use
996 selected_cpu over old globals.
997 (md_parse_option): Update machine type selection option handling,
998 use selected_cpu over old globals.
999 * testsuite/gas/arc/nps400-0.s: Add .cpu directive.
1000
2a3a7490
AM
10012016-10-26 Alan Modra <amodra@gmail.com>
1002
1003 Revert 2016-10-06 Alan Modra <amodra@gmail.com>
1004 * config/rl78-parse.y: Do use old %name-prefix syntax.
1005 * config/rx-parse.y: Likewise.
1006
b5cefcca
L
10072016-10-21 H.J. Lu <hongjiu.lu@intel.com>
1008
1009 * config/tc-i386.c (cpu_arch): Remove .pcommit.
1010 * doc/c-i386.texi: Likewise.
1011 * testsuite/gas/i386/i386.exp: Remove pcommit tests.
1012 * testsuite/gas/i386/pcommit-intel.d: Removed.
1013 * testsuite/gas/i386/pcommit.d: Likewise.
1014 * testsuite/gas/i386/pcommit.s: Likewise.
1015 * testsuite/gas/i386/x86-64-pcommit-intel.d: Likewise.
1016 * testsuite/gas/i386/x86-64-pcommit.d: Likewise.
1017 * testsuite/gas/i386/x86-64-pcommit.s: Likewise.
1018
9889cbb1
L
10192016-10-20 H.J. Lu <hongjiu.lu@intel.com>
1020
1021 PR binutis/20705
1022 * testsuite/gas/i386/i386.exp: Run x86-64-opcode-bad.
1023 * testsuite/gas/i386/x86-64-opcode-bad.d: New file.
1024 * testsuite/gas/i386/x86-64-opcode-bad.s: Likewise.
1025
008a97ef
RL
10262016-10-19 Renlin Li <renlin.li@arm.com>
1027
1028 * config/tc-arm.c (encode_arm_shift): Generate unpredictable warning
1029 for register-shifted register instructions.
1030 * testsuite/gas/arm/shift-bad-pc.d: New.
1031 * testsuite/gas/arm/shift-bad-pc.l: New.
1032 * testsuite/gas/arm/shift-bad-pc.s: New.
1033
8cae7a47
CM
10342016-10-17 Cupertino Miranda <cmiranda@synopsys.com>
1035
1036 * testsuite/arc/dis-inv.d: Fixed matching.
1037
decf5bd1
CM
10382016-10-17 Cupertino Miranda <cmiranda@synopsys.com>
1039
1040 * testsuite/arc/dis-inv.s: Test to validate patch.
1041 * testsuite/arc/dis-inv.d: Likewise.
1042
e5b06ef0
CZ
10432016-10-14 Claudiu Zissulescu <claziss@synopsys.com>
1044
1045 * testsuite/gas/arc/shortlimm_a7.d: New file.
1046 * testsuite/gas/arc/shortlimm_a7.s: Likewise.
1047 * testsuite/gas/arc/shortlimm_hs.d: Likewise.
1048 * testsuite/gas/arc/shortlimm_hs.s: Likewise.
1049
a24bb4f0
NC
10502016-10-11 Nick Clifton <nickc@redhat.com>
1051
1052 * gas/arm/tls.d: Adjust output to match change in objdump.
1053
93562a34
JW
10542016-10-11 Jiong Wang <jiong.wang@arm.com>
1055
1056 PR target/20666
1057 * testsuite/gas/aarch64/alias-2.d: Update expected results.
1058
969b385b
AK
10592016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1060
1061 * testsuite/gas/cfi/cfi-common-1.d: Adjust regexps for mips64.
1062 * testsuite/gas/cfi/cfi-common-2.d: Likewise.
1063 * testsuite/gas/cfi/cfi-common-3.d: Likewise.
1064 * testsuite/gas/cfi/cfi-common-4.d: Likewise.
1065 * testsuite/gas/cfi/cfi-common-5.d: Likewise.
1066 * testsuite/gas/cfi/cfi-common-7.d: Likewise.
1067 * testsuite/gas/cfi/cfi-common-8.d: Likewise.
1068 * testsuite/gas/cfi/cfi-common-9.d: Likewise.
1069 * testsuite/gas/cfi/cfi-mips-1.d: Likewise.
1070
b6f80bb8
AM
10712016-10-08 Alan Modra <amodra@gmail.com>
1072
1073 * Makefile.am (EXTRA_as_new_SOURCES): Add config/rl78-parse.y and
1074 config/rx-parse.y. Move config/bfin-parse.y.
1075 (bfin-parse.@OBJEXT@, rl78-parse.@OBJEXT@, rx-parse.@OBJEXT@): Delete.
1076 ($(srcdir)/config/rl78-defs.h): New rule.
1077 * Makefile.in: Regenerate.
1078
362c0c4d
JW
10792016-10-07 Jiong Wang <jiong.wang@arm.com>
1080
1081 PR target/20667
1082 * testsuite/gas/aarch64/sys-rt-reg.s: Test source for instructions using
1083 SYS_Rt reg.
1084 * testsuite/gas/aarch64/sys-rt-reg.d: New testcase.
1085
08ec958f
CZ
10862016-10-06 Claudiu Zissulescu <claziss@synopsys.com>
1087
1088 * testsuite/gas/arc/leave_enter.d: New file.
1089 * testsuite/gas/arc/leave_enter.s: Likewise.
1090 * testsuite/gas/arc/regnames.d: Likewise.
1091 * testsuite/gas/arc/regnames.s: Likewise.
1092 * config/tc-arc.c (arc_parse_name): Don't match reg names against
1093 confirmed symbol names.
1094
fcddde94
AM
10952016-10-06 Alan Modra <amodra@gmail.com>
1096
1097 * app.c (do_scrub_chars): Move fall through comment.
1098 * expr.c (operand): Likewise.
1099
3d3424e9
MF
11002016-10-06 Matthew Fortune <matthew.fortune@imgtec.com>
1101
1102 PR gas/20648
1103 * dw2gencfi.c (dot_cfi_sections): Refine the check for
1104 inconsistent .cfi_sections to only consider compact vs non
1105 compact forms.
1106 * testsuite/gas/cfi/cfi-common-9.d: New file.
1107 * testsuite/gas/cfi/cfi-common-9.s: New file.
1108 * testsuite/gas/cfi/cfi.exp: Run new test.
1109
1a0670f3
AM
11102016-10-06 Alan Modra <amodra@gmail.com>
1111
1112 * app.c: Add missing fall through comments.
1113 * dw2gencfi.c: Likewise.
1114 * expr.c: Likewise.
1115 * config/tc-alpha.c: Likewise.
1116 * config/tc-arc.c: Likewise.
1117 * config/tc-arm.c: Likewise.
1118 * config/tc-cr16.c: Likewise.
1119 * config/tc-crx.c: Likewise.
1120 * config/tc-dlx.c: Likewise.
1121 * config/tc-h8300.c: Likewise.
1122 * config/tc-hppa.c: Likewise.
1123 * config/tc-i370.c: Likewise.
1124 * config/tc-i386.c: Likewise.
1125 * config/tc-i960.c: Likewise.
1126 * config/tc-ia64.c: Likewise.
1127 * config/tc-m68hc11.c: Likewise.
1128 * config/tc-m68k.c: Likewise.
1129 * config/tc-mep.c: Likewise.
1130 * config/tc-metag.c: Likewise.
1131 * config/tc-microblaze.c: Likewise.
1132 * config/tc-mips.c: Likewise.
1133 * config/tc-ns32k.c: Likewise.
1134 * config/tc-rx.c: Likewise.
1135 * config/tc-score.c: Likewise.
1136 * config/tc-score7.c: Likewise.
1137 * config/tc-sh.c: Likewise.
1138 * config/tc-tic4x.c: Likewise.
1139 * config/tc-vax.c: Likewise.
1140 * config/tc-xstormy16.c: Likewise.
1141 * config/tc-z80.c: Likewise.
1142 * config/tc-z8k.c: Likewise.
1143 * config/obj-elf.c: Likewise.
1144 * config/tc-i386.c: Likewise.
1145 * depend.c: Spell fall through comments consistently.
1146 * config/tc-arm.c: Likewise.
1147 * config/tc-d10v.c: Likewise.
1148 * config/tc-i960.c: Likewise.
1149 * config/tc-ia64.c: Likewise.
1150 * config/tc-m68k.c: Likewise.
1151 * config/tc-mcore.c: Likewise.
1152 * config/tc-mep.c: Likewise.
1153 * config/tc-ns32k.c: Likewise.
1154 * config/tc-visium.c: Likewise.
1155 * config/tc-xstormy16.c: Likewise.
1156 * config/tc-z8k.c: Likewise.
1157
1e0f0b4d
AM
11582016-10-06 Alan Modra <amodra@gmail.com>
1159
1160 * as.h (as_assert): Add ATTRIBUTE_NORETURN.
1161
2b804145
AM
11622016-10-06 Alan Modra <amodra@gmail.com>
1163
1164 * config/tc-arc.c (find_opcode_match): Add missing break.
1165 * config/tc-i960.c (get_cdisp): Likewise.
1166 * config/tc-metag.c (parse_swap, md_apply_fix): Likewise.
1167 * config/tc-mt.c (md_parse_option): Likewise.
1168 * config/tc-nds32.c (nds32_apply_fix): Likewise.
1169 * config/tc-hppa.c (pa_ip): Assert rather than testing last
1170 condition of multiple if statements.
1171 * config/tc-s390.c (s390_exp_compare): Return 0 on error.
1172 * config/tc-tic4x.c (tic4x_operand_parse): Add as_bad and break
1173 out of case rather than falling into next case. Formatting.
1174
95e61695
AM
11752016-10-06 Alan Modra <amodra@gmail.com>
1176
1177 * config/rl78-parse.y: Don't use deprecated %name-prefix.
1178 * config/rx-parse.y: Likewise.
1179
744ce302
JW
11802016-09-29 Jiong Wang <jiong.wang@arm.com>
1181
1182 PR target/20553
1183 * testsuite/gas/aarch64/advsimd-fp16.s (indexed_elem): New high index
1184 testcases for H and S variants. New low index testcases for D variant.
1185 * testsuite/gas/aarch64/advsimd-fp16.d: Update expected results.
1186
a5721ba2
AM
11872016-09-29 Alan Modra <amodra@gmail.com>
1188
1189 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_OPTIONAL32.
1190 * testsuite/gas/ppc/power8.s: Provide tbegin. operand.
1191 * testsuite/gas/ppc/power9.d: Update cmprb disassembly.
1192
78fb7e37
TS
11932016-09-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1194
1195 * config/tc-xtensa.c (xg_reverse_shift_count): Pass cnt_arg instead of
1196 cnt_argp to concat.
1197
c5da1932
VZ
11982016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
1199
1200 * Makefile.in: Regenerate.
1201 * configure: Likewise.
1202 * doc/Makefile.in: Likewise.
1203
005d79fd
AM
12042016-09-26 Alan Modra <amodra@gmail.com>
1205
1206 * config/tc-ppc.c (ppc_elf_gnu_attribute): New function.
1207 (md_pseudo_table <ELF>): Handle "gnu_attribute".
1208
870dd155
TP
12092016-09-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1210
1211 * config/tc-arm.c (v7m_psrs): Remove BASEPRI_MASK MRS/MSR special
1212 register and redundant basepri_max.
1213
ad43e107
RS
12142016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1215
1216 * config/tc-aarch64.c (print_operands): Print spaces between
1217 operands.
1218 * testsuite/gas/aarch64/ilp32-basic.d: Expect spaces after ","
1219 in addresses.
1220 * testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise.
1221 * testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise.
1222 * testsuite/gas/aarch64/ldst-reg-pair.d: Likewise.
1223 * testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise.
1224 * testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise.
1225 * testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise.
1226 * testsuite/gas/aarch64/reloc-insn.d: Likewise.
1227 * testsuite/gas/aarch64/sve.d: Likewise.
1228 * testsuite/gas/aarch64/symbol.d: Likewise.
1229 * testsuite/gas/aarch64/system.d: Likewise.
1230 * testsuite/gas/aarch64/tls-desc.d: Likewise.
1231 * testsuite/gas/aarch64/sve-invalid.l: Expect spaces after ","
1232 in suggested alternatives.
1233 * testsuite/gas/aarch64/verbose-error.l: Likewise.
1234
ab3b8fcf
RS
12352016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1236
1237 * config/tc-aarch64.c (output_operand_error_record): Use "must be"
1238 rather than "should be" or "expected to be" in error messages.
1239 (parse_operands): Likewise.
1240 * testsuite/gas/aarch64/diagnostic.l: Likewise.
1241 * testsuite/gas/aarch64/legacy_reg_names.l: Likewise.
1242 * testsuite/gas/aarch64/sve-invalid.l: Likewise.
1243 * testsuite/gas/aarch64/sve-reg-diagnostic.l: Likewise.
1244
bb7eff52
RS
12452016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1246
1247 * config/tc-aarch64.c (opcode_lookup): Search for the end of
1248 a condition name, rather than assuming that it will have exactly
1249 2 characters.
1250 (parse_operands): Likewise.
1251 * testsuite/gas/aarch64/alias.d: Add new condition-code comments
1252 to the expected output.
1253 * testsuite/gas/aarch64/beq_1.d: Likewise.
1254 * testsuite/gas/aarch64/float-fp16.d: Likewise.
1255 * testsuite/gas/aarch64/int-insns.d: Likewise.
1256 * testsuite/gas/aarch64/no-aliases.d: Likewise.
1257 * testsuite/gas/aarch64/programmer-friendly.d: Likewise.
1258 * testsuite/gas/aarch64/reloc-insn.d: Likewise.
1259 * testsuite/gas/aarch64/b_c_1.d, testsuite/gas/aarch64/b_c_1.s:
1260 New test.
1261
f2a5c4f5
RS
12622016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1263
1264 * testsuite/gas/aarch64/diagnostic.s,
1265 testsuite/gas/aarch64/diagnostic.l: Add tests for
1266 invalid uses of MUL VL and MUL in base AArch64 instructions.
1267 * testsuite/gas/aarch64/sve-add.s, testsuite/gas/aarch64/sve-add.d,
1268 testsuite/gas/aarch64/sve-dup.s, testsuite/gas/aarch64/sve-dup.d,
1269 testsuite/gas/aarch64/sve-invalid.s,
1270 testsuite/gas/aarch64/sve-invalid.d,
1271 testsuite/gas/aarch64/sve-invalid.l,
1272 testsuite/gas/aarch64/sve-reg-diagnostic.s,
1273 testsuite/gas/aarch64/sve-reg-diagnostic.d,
1274 testsuite/gas/aarch64/sve-reg-diagnostic.l,
1275 testsuite/gas/aarch64/sve.s, testsuite/gas/aarch64/sve.d: New tests.
1276
c0890d26
RS
12772016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1278
1279 * doc/c-aarch64.texi: Document the "sve" feature.
1280 * config/tc-aarch64.c (REG_TYPE_R_Z_BHSDQ_VZP): New register type.
1281 (get_reg_expected_msg): Handle it.
1282 (parse_operands): When parsing operands of an SVE instruction,
1283 disallow immediates that match REG_TYPE_R_Z_BHSDQ_VZP.
1284 (aarch64_features): Add an entry for SVE.
1285
047cd301
RS
12862016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1287
1288 * config/tc-aarch64.c (parse_operands): Handle the new SVE core
1289 and FP register operands.
1290
165d4950
RS
12912016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1292
1293 * config/tc-aarch64.c (double_precision_operand_p): New function.
1294 (parse_operands): Use it to calculate the dp_p input to
1295 parse_aarch64_imm_float. Handle the new SVE FP immediate operands.
1296
e950b345
RS
12972016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1298
1299 * config/tc-aarch64.c (parse_operands): Handle the new SVE integer
1300 immediate operands.
1301
98907a70
RS
13022016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1303
1304 * config/tc-aarch64.c (SHIFTED_NONE, SHIFTED_MUL_VL): New
1305 parse_shift_modes.
1306 (parse_shift): Handle SHIFTED_MUL_VL.
1307 (parse_address_main): Add an imm_shift_mode parameter.
1308 (parse_address, parse_sve_address): Update accordingly.
1309 (parse_operands): Handle MUL VL addressing modes.
1310
4df068de
RS
13112016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1312
1313 * config/tc-aarch64.c (REG_TYPE_SVE_BASE, REG_TYPE_SVE_OFFSET): New
1314 register types.
1315 (get_reg_expected_msg): Handle them.
1316 (aarch64_addr_reg_parse): New function, split out from
1317 aarch64_reg_parse_32_64. Handle Z registers too.
1318 (aarch64_reg_parse_32_64): Call it.
1319 (parse_address_main): Add base_qualifier, offset_qualifier,
1320 base_type and offset_type parameters. Handle SVE base and offset
1321 registers.
1322 (parse_address): Update call to parse_address_main.
1323 (parse_sve_address): New function.
1324 (parse_operands): Parse the new SVE address operands.
1325
2442d846
RS
13262016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1327
1328 * config/tc-aarch64.c (SHIFTED_MUL): New parse_shift_mode.
1329 (parse_shift): Handle it. Reject AARCH64_MOD_MUL for all other
1330 shift modes. Skip range tests for AARCH64_MOD_MUL.
1331 (process_omitted_operand): Handle AARCH64_OPND_SVE_PATTERN_SCALED.
1332 (parse_operands): Likewise.
1333
245d2e3f
RS
13342016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1335
1336 * config/tc-aarch64.c (parse_enum_string): New function.
1337 (po_enum_or_fail): New macro.
1338 (parse_operands): Handle AARCH64_OPND_SVE_PATTERN and
1339 AARCH64_OPND_SVE_PRFOP.
1340
d50c751e
RS
13412016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1342
1343 * config/tc-aarch64.c (vector_el_type): Add NT_zero and NT_merge.
1344 (parse_vector_type_for_operand): Assert that the skipped character
1345 is a '.'.
1346 (parse_predication_for_operand): New function.
1347 (parse_typed_reg): Parse /z and /m suffixes for predicate registers.
1348 (vectype_to_qualifier): Handle NT_zero and NT_merge.
1349
f11ad6bc
RS
13502016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1351
1352 * config/tc-aarch64.c (NTA_HASVARWIDTH): New macro.
1353 (AARCH64_REG_TYPES): Add ZN and PN.
1354 (get_reg_expected_msg): Handle them.
1355 (parse_vector_type_for_operand): Add a reg_type parameter.
1356 Skip the width for Zn and Pn registers.
1357 (parse_typed_reg): Extend vector handling to Zn and Pn. Update the
1358 call to parse_vector_type_for_operand. Set HASVARTYPE for Zn and Pn,
1359 expecting the width to be 0.
1360 (parse_vector_reg_list): Restrict error about [BHSD]nn operands to
1361 REG_TYPE_VN.
1362 (vectype_to_qualifier): Use S_[BHSD] qualifiers for NTA_HASVARWIDTH.
1363 (parse_operands): Handle the new Zn and Pn operands.
1364 (REGSET16): New macro, split out from...
1365 (REGSET31): ...here.
1366 (reg_names): Add Zn and Pn entries.
1367
0c608d6b
RS
13682016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1369
1370 * config/tc-aarch64.c (output_operand_error_record): Handle
1371 AARCH64_OPDE_UNTIED_OPERAND.
1372
4989adac
RS
13732016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1374
1375 * config/tc-aarch64.c (find_best_match): Simplify, allowing an
1376 instruction with all-NIL qualifiers to fail to match.
1377
73866052
RS
13782016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1379
1380 * config/tc-aarch64.c (parse_address_main): Remove reloc and
1381 accept_reg_post_index parameters. Parse relocations and register
1382 post indexes unconditionally.
1383 (parse_address): Remove accept_reg_post_index parameter.
1384 Update call to parse_address_main.
1385 (parse_address_reloc): Delete.
1386 (parse_operands): Call parse_address instead of parse_address_main.
1387 Update existing callers of parse_address and make them check
1388 inst.reloc.type where appropriate.
1389 * testsuite/gas/aarch64/diagnostic.s: Add tests for relocations
1390 in ADDR_SIMPLE, SIMD_ADDR_SIMPLE, ADDR_SIMM7 and ADDR_SIMM9 addresses.
1391 Also test for invalid uses of post-index register addressing.
1392 * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
1393
e1b988bb
RS
13942016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1395
1396 * config/tc-aarch64.c (REG_TYPE_R_Z, REG_TYPE_R_SP): New register
1397 types.
1398 (get_reg_expected_msg): Handle them and REG_TYPE_R64_SP.
1399 (aarch64_check_reg_type): Simplify.
1400 (aarch64_reg_parse_32_64): Return the reg_entry instead of the
1401 register number. Return the type as a qualifier rather than an
1402 "isreg32" boolean. Remove reject_sp, reject_rz and isregzero
1403 parameters.
1404 (parse_shifter_operand): Update call to aarch64_parse_32_64_reg.
1405 Use get_reg_expected_msg.
1406 (parse_address_main): Likewise. Use aarch64_check_reg_type.
1407 (po_int_reg_or_fail): Replace reject_sp and reject_rz parameters
1408 with a reg_type parameter. Update call to aarch64_parse_32_64_reg.
1409 Use aarch64_check_reg_type to test the result.
1410 (parse_operands): Update after the above changes. Parse ADDR_SIMPLE
1411 addresses normally before enforcing the syntax restrictions.
1412 * testsuite/gas/aarch64/diagnostic.s: Add tests for a post-index
1413 zero register and for a stack pointer index.
1414 * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
1415 Also update existing diagnostic messages after the above changes.
1416 * testsuite/gas/aarch64/illegal-lse.l: Update the error message
1417 for 32-bit register bases.
1418
874d7e6e
RS
14192016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1420
1421 * config/tc-aarch64.c (parse_aarch64_imm_float): Remove range check.
1422 (parse_operands): Check the range of 8-bit FP immediates here instead.
1423
6a9deabe
RS
14242016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1425
1426 * config/tc-aarch64.c (parse_aarch64_imm_float): Report a specific
1427 low-severity error for registers.
1428 (parse_operands): Report an invalid floating point constant for
1429 if parsing an FPIMM8 fails, and if no better error has been
1430 recorded.
1431 * testsuite/gas/aarch64/diagnostic.s,
1432 testsuite/gas/aarch64/diagnostic.l: Add tests for integer operands
1433 to FMOV.
1434
04a3379a
RS
14352016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1436
1437 * config/tc-aarch64.c (aarch64_double_precision_fmovable): Rename
1438 to...
1439 (can_convert_double_to_float): ...this. Accept any double-precision
1440 value that converts to single precision without loss of precision.
1441 (parse_aarch64_imm_float): Update accordingly.
1442
1799c0d0
RS
14432016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1444
1445 * config/tc-aarch64.c (parse_immediate_expression): Add a
1446 reg_type parameter.
1447 (parse_constant_immediate): Likewise, and update calls.
1448 (parse_aarch64_imm_float): Likewise.
1449 (parse_big_immediate): Likewise.
1450 (po_imm_nc_or_fail): Update accordingly, passing down a new
1451 imm_reg_type variable.
1452 (po_imm_of_fail): Likewise.
1453 (parse_operands): Likewise.
1454
10d76650
RS
14552016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1456
1457 * config/tc-aarch64.c (parse_neon_reg_list): Rename to...
1458 (parse_vector_reg_list): ...this and take a register type
1459 as input.
1460 (parse_operands): Update accordingly.
1461
53021dd1
RS
14622016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1463
1464 * config/tc-aarch64.c (parse_neon_type_for_operand): Rename to...
1465 (parse_vector_type_for_operand): ...this.
1466 (parse_typed_reg): Update accordingly.
1467
8f9a77af
RS
14682016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1469
1470 * config/tc-aarch64.c (neon_type_el): Rename to...
1471 (vector_type_el): ...this.
1472 (parse_neon_type_for_operand): Update accordingly.
1473 (parse_typed_reg): Likewise.
1474 (aarch64_reg_parse): Likewise.
1475 (vectype_to_qualifier): Likewise.
1476 (parse_operands): Likewise.
1477 (eq_neon_type_el): Likewise. Rename to...
1478 (eq_vector_type_el): ...this.
1479 (parse_neon_reg_list): Update accordingly.
1480
f06935a5
RS
14812016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1482
1483 * config/tc-aarch64.c (neon_el_type: Rename to...
1484 (vector_el_type): ...this.
1485 (neon_type_el): Update accordingly.
1486 (parse_neon_type_for_operand): Likewise.
1487 (vectype_to_qualifier): Likewise.
1488
a235d3ae
RS
14892016-09-21 Richard Sandiford <richard.sandiford@arm.com>
1490
1491 * config/tc-aarch64.c (parse_neon_operand_type): Delete.
1492 (parse_typed_reg): Call parse_neon_type_for_operand directly.
1493
f807f43d
CZ
14942016-09-15 Claudiu Zissulescu <claziss@synopsys.com>
1495
1496 * testsuite/gas/arc/textinsnxop.d: New file.
1497 * testsuite/gas/arc/textinsnxop.s: Likewise.
1498
d7cd93a7
JM
14992016-09-15 Jose E. Marchesi <jose.marchesi@oracle.com>
1500
1501 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
1502 dcti-couples-v9 only in ELF targets to avoid spurious failures in
1503 sparc-aout and sparc-coff targets.
1504
fd486b63
PB
15052016-09-14 Peter Bergner <bergner@vnet.ibm.com>
1506
1507 * testsuite/gas/ppc/power9.d <slbiag, cpabort> New tests.
1508 <addex., brd, brh, brw, lwzmx, nandxor, rldixor, setbool,
1509 xor3, cp_abort, copy_first, paste, paste_last, sync>: Remove tests.
1510 <copy, paste.>: Update tests.
1511 * testsuite/gas/ppc/power9.s: Likewise.
1512
fc7514d6
JM
15132016-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1514
1515 * config/tc-sparc.c (sparc_ip): Print the instruction arguments
1516 in "architecture mismatch" error messages.
1517
46a2d504
JM
15182016-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1519
1520 * config/tc-sparc.c (md_assemble): Detect and warning on
1521 unpredictable DCTI couples in certain arches.
1522 (dcti_couples_detect): New global.
1523 (md_longopts): Add command line option -dcti-couples-detect.
1524 (md_show_usage): Document -dcti-couples-detect.
1525 (md_parse_option): Handle OPTION_DCTI_COUPLES_DETECT.
1526 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
1527 dcti-couples-v8, dcti-couples-v9 and dcti-couples-v9c tests.
1528 * testsuite/gas/sparc/dcti-couples.s: New file.
1529 * testsuite/gas/sparc/dcti-couples-v9c.d: Likewise.
1530 * testsuite/gas/sparc/dcti-couples-v8.d: Likewise.
1531 * testsuite/gas/sparc/dcti-couples-v9.d: Likewise.
1532 * testsuite/gas/sparc/dcti-couples-v9c.l: Likewise.
1533 * testsuite/gas/sparc/dcti-couples-v8.l: Likewise.
1534 * doc/as.texinfo (Overview): Document --dcti-couples-detect.
1535 * doc/c-sparc.texi (Sparc-Opts): Likewise.
1536
32348c58
CZ
15372016-09-14 Claudiu Zissulescu <claziss@synopsys.com>
1538
1539 * testsuite/gas/arc/tls-relocs2.d: New file.
1540 * testsuite/gas/arc/tls-relocs2.s: Likewise.
1541 * config/tc-arc.c (tokenize_arguments): Accept offsets when base
1542 is used.
1543
952c3f51
AK
15442016-09-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1545
1546 * config/tc-s390.c (s390_parse_cpu): Support alternate arch
1547 strings.
1548 * doc/as.texinfo: Document new arch strings.
1549 * doc/c-s390.texi: Likewise.
1550
58af6397
AK
15512016-09-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1552
1553 * config/tc-s390.c: Set all facitily bits by default
1554
8b71537b
PS
15552016-09-12 Patrick Steuer <steuer@linux.vnet.ibm.com>
1556
1557 * testsuite/gas/s390/zarch-z196.d: Adjust testcase.
1558
8d471ec1
L
15592016-09-08 H.J. Lu <hongjiu.lu@intel.com>
1560
1561 * config/tc-i386.c (i386_target_format): Allow PROCESSOR_IAMCU
1562 for Intel MCU.
1563
5b64d091
L
15642016-09-07 H.J. Lu <hongjiu.lu@intel.com>
1565
1566 * config/tc-i386.c (valid_iamcu_cpu_flags): Removed.
1567 (set_cpu_arch): Updated.
1568 (md_parse_option): Likewise.
1569 * testsuite/gas/i386/i386.exp: Run iamcu-4 and iamcu-5. Remove
1570 iamcu-inval-2 and iamcu-inval-3.
1571 * testsuite/gas/i386/iamcu-4.d: New file.
1572 * testsuite/gas/i386/iamcu-4.s: Likewise.
1573 * testsuite/gas/i386/iamcu-5.d: Likewise.
1574 * testsuite/gas/i386/iamcu-5.s: Likewise.
1575 * testsuite/gas/i386/iamcu-inval-2.l: Removed.
1576 * testsuite/gas/i386/iamcu-inval-2.s: Likewise.
1577 * testsuite/gas/i386/iamcu-inval-3.l: Likewise.
1578 * testsuite/gas/i386/iamcu-inval-3.s: Likewise.
1579
27e5a270
RE
15802016-09-07 Richard Earnshaw <rearnsha@arm.com>
1581
1582 * config/tc-arm.c ((arm_cpus): Use ARM_ARCH_V8A_CRC for all
1583 ARMv8-A CPUs except xgene1.
1584
f7d69005
AM
15852016-08-31 Alan Modra <amodra@gmail.com>
1586
1587 * config/tc-ppc.c (md_assemble): Set sh_flags for VLE. Test
1588 ppc_cpu rather than calling ppc_mach to determine VLE mode.
1589 (ppc_frag_check, ppc_handle_align): Likewise use ppc_cpu.
1590
1b8b6532
JM
15912016-08-26 Jose E. Marchesi <jose.marchesi@oracle.com>
1592
1593 * testsuite/gas/sparc/crypto.d: Rename invalid opcode camellia_fi
1594 to camellia_fl.
1595 * testsuite/gas/sparc/crypto.s: Likewise.
1596
1a336194
TP
15972016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1598
1599 * config/tc-arm.c (v7m_psrs): Add MSPLIM, PSPLIM, MSPLIM_NS,
1600 PSPLIM_NS, PRIMASK_NS, BASEPRI_NS, FAULTMASK_NS, CONTROL_NS, SP_NS and
1601 their lowecase counterpart special registers. Write register
1602 identifier in hex.
1603 * testsuite/gas/arm/archv8m-cmse-msr.s: Reorganize tests per
1604 operation, special register and then case. Use different register for
1605 each operation. Add tests for new special registers.
1606 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Adapt expected result
1607 accordingly.
1608 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1609 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1610
c4dd0ba2
TP
16112016-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1612
1613 * config/tc-arm.c (v7m_psrs): Remove msp_s, MSP_S, psp_s and PSP_S
1614 special registers.
1615 * testsuite/gas/arm/archv8m-cmse-msr.s: Remove test for above special
1616 registers.
1617 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
1618 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1619 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1620
6b40c462
L
16212016-08-24 H.J. Lu <hongjiu.lu@intel.com>
1622
1623 * config/tc-i386.c (cpu_arch): Add .ptwrite.
1624 * doc/c-i386.texi: Document ptwrite and .ptwrite.
1625 * testsuite/gas/i386/i386.exp: Run ptwrite, ptwrite-intel,
1626 x86-64-ptwrite and x86-64-ptwrite-intel.
1627 * testsuite/gas/i386/ptwrite-intel.d: New file.
1628 * testsuite/gas/i386/ptwrite.d: Likewise.
1629 * testsuite/gas/i386/ptwrite.s: Likewise.
1630 * testsuite/gas/i386/x86-64-ptwrite-intel.d: Likewise.
1631 * testsuite/gas/i386/x86-64-ptwrite.d: Likewise.
1632 * testsuite/gas/i386/x86-64-ptwrite.s: Likewise.
1633
873f10f0
TC
16342016-08-19 Tamar Christina <tamar.christina@arm.com>
1635
1636 * config/tc-arm.c (do_co_reg2c): Added constraint.
1637 * testsuite/gas/arm/dest-unpredictable.s: New.
1638 * testsuite/gas/arm/dest-unpredictable.l: New.
1639 * testsuite/gas/arm/dest-unpredictable.d: New.
1640
dd905818
NC
16412016-08-19 Nick Clifton <nickc@redhat.com>
1642
1643 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Adjust expected
1644 ordering of sections.
1645 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1646 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
1647 * testsuite/gas/ia64/alias.d: Likewise.
1648 * testsuite/gas/ia64/group-1.d: Likewise.
1649 * testsuite/gas/ia64/group-2.d: Likewise.
1650 * testsuite/gas/ia64/secname-ilp32.d: Likewise.
1651 * testsuite/gas/ia64/secname.d: Likewise.
1652 * testsuite/gas/ia64/unwind-ilp32.d: Likewise.
1653 * testsuite/gas/ia64/unwind.d: Likewise.
1654 * testsuite/gas/ia64/xdata-ilp32.d: Likewise.
1655 * testsuite/gas/ia64/xdata.d: Likewise.
1656 * testsuite/gas/mmix/bspec-1.d: Likewise.
1657 * testsuite/gas/mmix/bspec-2.d: Likewise.
1658 * testsuite/gas/mmix/byte-1.d: Likewise.
1659 * testsuite/gas/mmix/loc-1.d: Likewise.
1660 * testsuite/gas/mmix/loc-2.d: Likewise.
1661 * testsuite/gas/mmix/loc-3.d: Likewise.
1662 * testsuite/gas/mmix/loc-4.d: Likewise.
1663 * testsuite/gas/mmix/loc-5.d: Likewise.
1664 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1665
dbd8770c
RS
16662016-08-11 Richard Sandiford <richard.sandiford@arm.com>
1667
1668 * config/tc-aarch64.c (parse_aarch64_imm_float): Reject -0.0.
1669 * testsuite/gas/aarch64/illegal.s, testsuite/gas/aarch64/illegal.l:
1670 Add tests for -0.0. Add an end-of-file comment.
1671
7ea12e5c
NC
16722016-08-05 Nick Clifton <nickc@redhat.com>
1673
b126985e
NC
1674 PR gas/20429
1675 * config/tc-arm.c (do_vfp_nsyn_push): Check that no more than 16
1676 registers are pushed.
1677 (do_vfp_nsyn_pop): Check that no more than 16 registers are
1678 popped.
1679 * testsuite/gas/arm/pr20429.s: New test.
1680 * testsuite/gas/arm/pr20429.d: New test driver.
1681 * testsuite/gas/arm/pr20429.1: Expected error output.
1682
7ea12e5c
NC
1683 PR gas/20364
1684 * config/tc-aarch64.c (s_ltorg): Change the mapping state after
1685 aligning the frag.
1686 (aarch64_init): Treat rs_align frags in code sections as
1687 containing code, not data.
1688 * testsuite/gas/aarch64/pr20364.s: New test.
1689 * testsuite/gas/aarch64/pr20364.d: New test driver.
1690
02442566
ST
16912016-08-04 Stefan Trleman <stefan.teleman@oracle.com>
1692
1693 PR gas/20427
1694 * config/tc-sparc.c (cons_fix_new_sparc): Prevent the generation
1695 of 64-bit relocation types when assembling for a 32-bit Solaris
1696 target.
1697
c88960d0
JM
16982016-07-27 Jose E. Marchesi <jose.marchesi@oracle.com>
1699
1700 * testsuite/gas/sparc/sparc.exp: Use is_elf_format to discriminate
1701 ELF targets.
1702 Run natural, natural-32, pr4587, ticc-imm-reg, v8-movwr-imm,
1703 pause, save-args, cbcond, cfr, crypto edge, flush, hpcvis3, ima,
1704 ld_st_fsr, ldtw_sttw, ldd_std, ldx_stx, ldx_efsr, mwait, mcdper,
1705 sparc5vis4, xcrypto, v9branch1 and imm-plus-rreg only in ELF
1706 targets.
1707 (sparc_elf_setup): Delete.
1708 * testsuite/gas/sparc/save-args.d: Fix a copy-paste typo in the
1709 test's #name entry.
1710
7bd374a4
MR
17112016-07-27 Maciej W. Rozycki <macro@imgtec.com>
1712
1713 * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `nods' flag.
1714 (RELAX_MICROMIPS_RELAX32, RELAX_MICROMIPS_TOOFAR16)
1715 (RELAX_MICROMIPS_MARK_TOOFAR16, RELAX_MICROMIPS_CLEAR_TOOFAR16)
1716 (RELAX_MICROMIPS_TOOFAR32, RELAX_MICROMIPS_MARK_TOOFAR32)
1717 (RELAX_MICROMIPS_CLEAR_TOOFAR32): Shift bits.
1718 (get_append_method): Also return APPEND_ADD_COMPACT for
1719 microMIPS instructions.
1720 (find_altered_mips16_opcode): Exclude macros from matching.
1721 Factor code out...
1722 (find_altered_opcode): ... to this new function.
1723 (find_altered_micromips_opcode): New function.
1724 (frag_branch_delay_slot_size): Likewise.
1725 (append_insn): Handle microMIPS branch/jump compaction.
1726 (macro_start): Likewise.
1727 (relaxed_micromips_32bit_branch_length): Likewise.
1728 (md_convert_frag): Likewise.
1729 * testsuite/gas/mips/micromips.s: Add conditional explicit NOPs
1730 for delay slot filling.
1731 * testsuite/gas/mips/micromips-b16.s: Add explicit NOPs for
1732 delay slot filling.
1733 * testsuite/gas/mips/micromips-size-1.s: Likewise.
1734 * testsuite/gas/mips/micromips.l: Adjust line numbers.
1735 * testsuite/gas/mips/micromips-warn.l: Likewise.
1736 * testsuite/gas/mips/micromips-size-1.l: Likewise.
1737 * testsuite/gas/mips/micromips.d: Adjust padding.
1738 * testsuite/gas/mips/micromips-trap.d: Likewise.
1739 * testsuite/gas/mips/micromips-insn32.d: Likewise.
1740 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1741 * testsuite/gas/mips/micromips@beq.d: Update patterns for
1742 branch/jump compaction.
1743 * testsuite/gas/mips/micromips@bge.d: Likewise.
1744 * testsuite/gas/mips/micromips@bgeu.d: Likewise.
1745 * testsuite/gas/mips/micromips@blt.d: Likewise.
1746 * testsuite/gas/mips/micromips@bltu.d: Likewise.
1747 * testsuite/gas/mips/micromips@branch-misc-4.d: Likewise.
1748 * testsuite/gas/mips/micromips@branch-misc-4-64.d: Likewise.
1749 * testsuite/gas/mips/micromips@branch-misc-5.d: Likewise.
1750 * testsuite/gas/mips/micromips@branch-misc-5pic.d: Likewise.
1751 * testsuite/gas/mips/micromips@branch-misc-5-64.d: Likewise.
1752 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1753 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
1754 * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d:
1755 Likewise.
1756 * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d:
1757 Likewise.
1758 * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
1759 * testsuite/gas/mips/micromips@loc-swap-dis.d: Likewise.
1760 * testsuite/gas/mips/micromips@relax.d: Likewise.
1761 * testsuite/gas/mips/micromips@relax-at.d: Likewise.
1762 * testsuite/gas/mips/micromips@relax-swap3.d: Likewise.
1763 * testsuite/gas/mips/branch-extern-2.d: Likewise.
1764 * testsuite/gas/mips/branch-extern-4.d: Likewise.
1765 * testsuite/gas/mips/branch-section-2.d: Likewise.
1766 * testsuite/gas/mips/branch-section-4.d: Likewise.
1767 * testsuite/gas/mips/branch-weak-2.d: Likewise.
1768 * testsuite/gas/mips/branch-weak-5.d: Likewise.
1769 * testsuite/gas/mips/micromips-branch-absolute.d: Likewise.
1770 * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
1771 * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
1772 * testsuite/gas/mips/micromips-branch-absolute-addend.d:
1773 Likewise.
1774 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
1775 Likewise.
1776 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
1777 Likewise.
1778 * testsuite/gas/mips/micromips-compact.d: New test.
1779 * testsuite/gas/mips/mips.exp: Run the new test.
1780
db18dbab
GM
17812016-07-27 Graham Markall <graham.markall@embecosm.com>
1782
1783 * config/tc-arc.c: Add new global arc_addrtype_hash.
1784 Define O_colon and O_addrtype.
1785 (debug_exp): Add O_colon and O_addrtype.
1786 (tokenize_arguments): Handle colon and address type
1787 tokens.
1788 (declare_addrtype): New function.
1789 (md_begin): Initialise arc_addrtype_hash.
1790 (arc_parse_name): Add lookup of address types.
1791 (assemble_insn): Handle colons and address types by
1792 ignoring them.
1793 * testsuite/gas/arc/nps400-8.s: New file.
1794 * testsuite/gas/arc/nps400-8.d: New file.
1795 * testsuite/gas/arc/nps400-8.s: Add PMU instruction tests.
1796 * testsuite/gas/arc/nps400-8.d: Add expected PMU
1797 instruction output.
1798
8484fb75
MR
17992016-07-26 Maciej W. Rozycki <macro@imgtec.com>
1800
1801 * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `insn32' flag.
1802 (RELAX_MICROMIPS_INSN32): New macro.
1803 (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
1804 (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_RELAX32)
1805 (RELAX_MICROMIPS_TOOFAR16, RELAX_MICROMIPS_MARK_TOOFAR16)
1806 (RELAX_MICROMIPS_CLEAR_TOOFAR16, RELAX_MICROMIPS_TOOFAR32)
1807 (RELAX_MICROMIPS_MARK_TOOFAR32, RELAX_MICROMIPS_CLEAR_TOOFAR32):
1808 Shift bits.
1809 (append_insn): Record `mips_opts.insn32' with relaxed microMIPS
1810 branches.
1811 (relaxed_micromips_32bit_branch_length): Handle the `insn32'
1812 mode.
1813 (md_convert_frag): Likewise.
1814 * testsuite/gas/mips/micromips-branch-relax.s: Add `insn32'
1815 conditionals.
1816 * testsuite/gas/mips/micromips-branch-relax.l: Update line
1817 numbers accordingly.
1818 * testsuite/gas/mips/micromips-branch-relax-pic.l: Likewise.
1819 * testsuite/gas/mips/micromips-branch-relax-insn32.d: New test.
1820 * testsuite/gas/mips/micromips-branch-relax-insn32-pic.d: New
1821 test.
1822 * testsuite/gas/mips/micromips-branch-relax-insn32.l: New
1823 stderr output.
1824 * testsuite/gas/mips/micromips-branch-relax-insn32-pic.l: New
1825 stderr output.
1826 * testsuite/gas/mips/mips.exp: Run the new tests.
1827
fecd57f9
L
18282016-07-21 H.J. Lu <hongjiu.lu@intel.com>
1829
1830 * configure: Regenerated.
1831
37fd5ef3
CZ
18322016-07-20 Claudiu Zissulescu <claziss@synopsys.com>
1833
1834 * testsuite/gas/arc/dsp.d: New file.
1835 * testsuite/gas/arc/dsp.s: Likewise.
1836 * testsuite/gas/arc/fpu.d: Likewise.
1837 * testsuite/gas/arc/fpu.s: Likewise.
1838 * testsuite/gas/arc/ext2op.d: Add specific disassembler option.
1839 * testsuite/gas/arc/ext3op.d: Likewise.
1840 * testsuite/gas/arc/tdpfp.d: Likewise.
1841 * testsuite/gas/arc/tfpuda.d: Likewise.
1842
5caa2b07
MR
18432016-07-20 Maciej W. Rozycki <macro@imgtec.com>
1844
1845 * config/tc-mips.c (mips_force_relocation): Remove
1846 R_MIPS_PC26_S2 and R_MIPS_PC21_S2.
1847
a6ebf616
MR
18482016-07-19 Maciej W. Rozycki <macro@imgtec.com>
1849
1850 * config/tc-mips.c (mips_force_relocation, mips_fix_adjustable):
1851 Adjust comments for BAL to JALX linker conversion.
1852 (fix_bad_cross_mode_branch_p): Accept cross-mode BAL.
1853 * testsuite/gas/mips/unaligned-branch-1.l: Update error messages
1854 expected.
1855 * testsuite/gas/mips/unaligned-branch-micromips-1.l: Likewise.
1856 * testsuite/gas/mips/branch-local-4.d: New test.
1857 * testsuite/gas/mips/branch-local-n32-4.d: New test.
1858 * testsuite/gas/mips/branch-local-n64-4.d: New test.
1859 * testsuite/gas/mips/branch-addend.d: New test.
1860 * testsuite/gas/mips/branch-addend-n32.d: New test.
1861 * testsuite/gas/mips/branch-addend-n64.d: New test.
1862 * testsuite/gas/mips/branch-local-4.s: New test source.
1863 * testsuite/gas/mips/branch-addend.s: New test source.
1864 * testsuite/gas/mips/mips.exp: Run the new tests.
1865
9d862524
MR
18662016-07-19 Maciej W. Rozycki <macro@imgtec.com>
1867
1868 * config/tc-mips.c (mips_force_relocation): Also retain branch
1869 relocations against MIPS16 and microMIPS symbols.
1870 (fix_bad_cross_mode_jump_p): New function.
1871 (fix_bad_same_mode_jalx_p): Likewise.
1872 (fix_bad_misaligned_jump_p): Likewise.
1873 (fix_bad_cross_mode_branch_p): Likewise.
1874 (fix_bad_misaligned_branch_p): Likewise.
1875 (fix_validate_branch): Likewise.
1876 (md_apply_fix) <BFD_RELOC_MIPS_JMP, BFD_RELOC_MIPS16_JMP>
1877 <BFD_RELOC_MICROMIPS_JMP>: Separate from BFD_RELOC_MIPS_SHIFT5,
1878 etc. Verify the ISA mode and alignment of the jump target.
1879 <BFD_RELOC_MIPS_21_PCREL_S2>: Replace the inline alignment check
1880 with a call to `fix_validate_branch'.
1881 <BFD_RELOC_MIPS_26_PCREL_S2>: Likewise.
1882 <BFD_RELOC_16_PCREL_S2>: Likewise.
1883 <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
1884 <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Retain the original addend.
1885 Verify the ISA mode and alignment of the branch target.
1886 (md_convert_frag): Verify the ISA mode and alignment of resolved
1887 MIPS16 branch targets.
1888 * testsuite/gas/mips/branch-misc-1.s: Annotate non-instruction
1889 branch targets with `.insn'.
1890 * testsuite/gas/mips/branch-misc-5.s: Likewise.
1891 * testsuite/gas/mips/micromips@branch-misc-5-64.d: Update
1892 accordingly.
1893 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1894 * testsuite/gas/mips/micromips-branch-relax.s: Annotate
1895 non-instruction branch target with `.insn'.
1896 * testsuite/gas/mips/micromips.s: Replace microMIPS JALX targets
1897 with external symbols.
1898 * testsuite/gas/mips/micromips-insn32.d: Update accordingly.
1899 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1900 * testsuite/gas/mips/micromips-trap.d: Likewise.
1901 * testsuite/gas/mips/micromips.d: Likewise.
1902 * testsuite/gas/mips/mips16.s: Annotate non-instruction branch
1903 targets with `.insn'.
1904 * testsuite/gas/mips/mips16.d: Update accordingly.
1905 * testsuite/gas/mips/mips16-64.d: Likewise.
1906 * testsuite/gas/mips/mips16-dwarf2.s: Annotate non-instruction
1907 branch target with `.insn'.
1908 * testsuite/gas/mips/relax-swap3.s: Likewise.
1909 * testsuite/gas/mips/branch-local-2.l: New list test.
1910 * testsuite/gas/mips/branch-local-3.l: New list test.
1911 * testsuite/gas/mips/branch-local-n32-2.l: New list test.
1912 * testsuite/gas/mips/branch-local-n32-3.l: New list test.
1913 * testsuite/gas/mips/branch-local-n64-2.l: New list test.
1914 * testsuite/gas/mips/branch-local-n64-3.l: New list test.
1915 * testsuite/gas/mips/unaligned-jump-1.l: New list test.
1916 * testsuite/gas/mips/unaligned-jump-2.l: New list test.
1917 * testsuite/gas/mips/unaligned-jump-3.d: New test.
1918 * testsuite/gas/mips/unaligned-jump-mips16-1.l: New list test.
1919 * testsuite/gas/mips/unaligned-jump-mips16-2.l: New list test.
1920 * testsuite/gas/mips/unaligned-jump-mips16-3.d: New test.
1921 * testsuite/gas/mips/unaligned-jump-micromips-1.l: New list
1922 test.
1923 * testsuite/gas/mips/unaligned-jump-micromips-2.l: New list
1924 test.
1925 * testsuite/gas/mips/unaligned-jump-micromips-3.d: New test.
1926 * testsuite/gas/mips/unaligned-branch-1.l: New list test.
1927 * testsuite/gas/mips/unaligned-branch-2.l: New list test.
1928 * testsuite/gas/mips/unaligned-branch-3.d: New test.
1929 * testsuite/gas/mips/unaligned-branch-r6-1.l: New list test.
1930 * testsuite/gas/mips/unaligned-branch-r6-2.l: New list test.
1931 * testsuite/gas/mips/unaligned-branch-r6-3.l: New list test.
1932 * testsuite/gas/mips/unaligned-branch-r6-4.l: New list test.
1933 * testsuite/gas/mips/unaligned-branch-r6-5.d: New test.
1934 * testsuite/gas/mips/unaligned-branch-r6-6.d: New test.
1935 * testsuite/gas/mips/unaligned-branch-mips16-1.l: New list test.
1936 * testsuite/gas/mips/unaligned-branch-mips16-2.l: New list test.
1937 * testsuite/gas/mips/unaligned-branch-mips16-3.d: New test.
1938 * testsuite/gas/mips/unaligned-branch-micromips-1.l: New list
1939 test.
1940 * testsuite/gas/mips/unaligned-branch-micromips-2.l: New list
1941 test.
1942 * testsuite/gas/mips/unaligned-branch-micromips-3.d: New test.
1943 * testsuite/gas/mips/branch-local-2.s: New test source.
1944 * testsuite/gas/mips/branch-local-3.s: New test source.
1945 * testsuite/gas/mips/branch-local-n32-2.s: New test source.
1946 * testsuite/gas/mips/branch-local-n32-3.s: New test source.
1947 * testsuite/gas/mips/branch-local-n64-2.s: New test source.
1948 * testsuite/gas/mips/branch-local-n64-3.s: New test source.
1949 * testsuite/gas/mips/unaligned-jump-1.s: New test source.
1950 * testsuite/gas/mips/unaligned-jump-2.s: New test source.
1951 * testsuite/gas/mips/unaligned-jump-mips16-1.s: New test source.
1952 * testsuite/gas/mips/unaligned-jump-mips16-2.s: New test source.
1953 * testsuite/gas/mips/unaligned-jump-micromips-1.s: New test
1954 source.
1955 * testsuite/gas/mips/unaligned-jump-micromips-2.s: New test
1956 source.
1957 * testsuite/gas/mips/unaligned-branch-1.s: New test source.
1958 * testsuite/gas/mips/unaligned-branch-2.s: New test source.
1959 * testsuite/gas/mips/unaligned-branch-r6-1.s: New test source.
1960 * testsuite/gas/mips/unaligned-branch-r6-2.s: New test source.
1961 * testsuite/gas/mips/unaligned-branch-r6-3.s: New test source.
1962 * testsuite/gas/mips/unaligned-branch-r6-4.s: New test source.
1963 * testsuite/gas/mips/unaligned-branch-mips16-1.s: New test
1964 source.
1965 * testsuite/gas/mips/unaligned-branch-mips16-2.s: New test
1966 source.
1967 * testsuite/gas/mips/unaligned-branch-micromips-1.s: New test
1968 source.
1969 * testsuite/gas/mips/unaligned-branch-micromips-2.s: New test
1970 source.
1971 * testsuite/gas/mips/mips.exp: Run the new tests.
1972
065251a0
TS
19732016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1974
1975 * config/tc-nds32.c (struct nds32_pseudo_opcode): Make pseudo_val
1976 unsigned int.
1977 (do_pseudo_b): Adjust.
1978 (do_pseudo_bal): Likewise.
1979 (do_pseudo_bge): Likewise.
1980 (do_pseudo_bges): Likewise.
1981 (do_pseudo_bgt): Likewise.
1982 (do_pseudo_bgts): Likewise.
1983 (do_pseudo_ble): Likewise.
1984 (do_pseudo_bles): Likewise.
1985 (do_pseudo_blt): Likewise.
1986 (do_pseudo_blts): Likewise.
1987 (do_pseudo_br): Likewise.
1988 (do_pseudo_bral): Likewise.
1989 (do_pseudo_la): Likewise.
1990 (do_pseudo_li): Likewise.
1991 (do_pseudo_ls_bhw): Likewise.
1992 (do_pseudo_ls_bhwp): Likewise.
1993 (do_pseudo_ls_bhwpc): Likewise.
1994 (do_pseudo_ls_bhwi): Likewise.
1995 (do_pseudo_move): Likewise.
1996 (do_pseudo_neg): Likewise.
1997 (do_pseudo_not): Likewise.
1998 (do_pseudo_pushpopm): Likewise.
1999 (do_pseudo_pushpop): Likewise.
2000 (do_pseudo_v3push): Likewise.
2001 (do_pseudo_v3pop): Likewise.
2002 (do_pseudo_pushpop_stack): Likewise.
2003 (do_pseudo_push_bhwd): Likewise.
2004 (do_pseudo_pop_bhwd): Likewise.
2005 (do_pseudo_pusha): Likewise.
2006 (do_pseudo_pushi): Likewise.
2007
9bceab41
TS
20082016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2009
2010 * config/tc-sparc.c (struct pop_entry): Make the type of reloc
2011 bfd_reloc_code_real_type.
2012
cf80913a
TS
20132016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2014
2015 * config/tc-sparc.c (pop_table): Remove sentinel.
2016 (NUM_PERC_ENTRIES): Use ARRAY_SIZE on pop_table.
2017 (md_begin): Adjust.
2018
35fec4ff
TS
20192016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2020
2021 * config/tc-z8k.c (newfix): Make type of type argument
2022 bfd_reloc_code_real_type.
2023 (apply_fix): Likewise.
2024
00dad9a4
AM
20252016-07-16 Alan Modra <amodra@gmail.com>
2026
2027 * config/tc-epiphany.c: Don't include libbfd.h.
2028 * config/tc-frv.c: Likewise.
2029 * config/tc-ip2k.c: Likewise.
2030 * config/tc-iq2000.c: Likewise.
2031 * config/tc-m32c.c: Likewise.
2032 * config/tc-mep.c: Likewise.
2033 * config/tc-mt.c: Likewise.
2034 * config/tc-nios2.c: Likewise.
2035
76e7a751
AM
20362016-07-16 Alan Modra <amodra@gmail.com>
2037
2038 * config/bfin-parse.y: Don't include libbfd.h.
2039 * config/tc-bfin.c: Likewise.
2040 * config/tc-rl78.c: Likewise.
2041 * config/tc-rx.c: Likewise.
2042 * config/tc-metag.c: Likewise.
2043 (create_dspreg_htabs, create_scond_htab): Use gas_assert not BFD_ASSERT.
2044 * Makefile.am: Update dependencies.
2045 * Makefile.in: Regenerate.
2046
b416ba9b
MR
20472016-07-14 Maciej W. Rozycki <macro@imgtec.com>
2048
2049 * config/tc-mips.h (TC_FORCE_RELOCATION_ABS): New macro.
2050 (mips_force_relocation_abs): New prototype.
2051 * config/tc-mips.c (mips_force_relocation_abs): New function.
2052 * testsuite/gas/mips/branch-absolute.d: Adjust dump patterns.
2053 * testsuite/gas/mips/mips16-branch-absolute.d: Likewise.
2054 * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
2055 * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
2056 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
2057 Likewise.
2058 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
2059 Likewise.
2060 * testsuite/gas/mips/branch-absolute-addend.d: New test.
2061 * testsuite/gas/mips/mips16-branch-absolute-addend.d: New test.
2062 * testsuite/gas/mips/micromips-branch-absolute-addend.d: New
2063 test.
2064 * testsuite/gas/mips/mips.exp: Run the new tests.
2065
96e9ba5f
MR
20662016-07-14 Maciej W. Rozycki <macro@imgtec.com>
2067
2068 * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS16_16_PCREL_S1>
2069 <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
2070 <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Keep the ISA bit in the
2071 addend calculated.
2072 * testsuite/gas/mips/mips16-branch-absolute.s: Set the ISA bit
2073 in `bar', export `foo'.
2074 * testsuite/gas/mips/mips16-branch-absolute.d: Adjust
2075 accordingly.
2076 * testsuite/gas/mips/mips16-branch-absolute-n32.d: Likewise.
2077 * testsuite/gas/mips/mips16-branch-absolute-n64.d: Likewise.
2078 * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d:
2079 Likewise.
2080 * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d:
2081 Likewise.
2082
0c117286
MR
20832016-07-14 Maciej W. Rozycki <macro@imgtec.com>
2084
2085 * testsuite/gas/mips/mips16-branch-absolute.d: Update patterns.
2086 * testsuite/gas/mips/branch-absolute.d: New test.
2087 * testsuite/gas/mips/branch-absolute-n32.d: New test.
2088 * testsuite/gas/mips/branch-absolute-n64.d: New test.
2089 * testsuite/gas/mips/branch-absolute-addend-n32.d: New test.
2090 * testsuite/gas/mips/branch-absolute-addend-n64.d: New test.
2091 * testsuite/gas/mips/mips16-branch-absolute-n32.d: New test.
2092 * testsuite/gas/mips/mips16-branch-absolute-n64.d: New test.
2093 * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d: New
2094 test.
2095 * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d: New
2096 test.
2097 * testsuite/gas/mips/micromips-branch-absolute.d: New test.
2098 * testsuite/gas/mips/micromips-branch-absolute-n32.d: New test.
2099 * testsuite/gas/mips/micromips-branch-absolute-n64.d: New test.
2100 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d: New
2101 test.
2102 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d: New
2103 test.
2104 * testsuite/gas/mips/branch-absolute.s: New test source.
2105 * testsuite/gas/mips/branch-absolute-addend.s: New test source.
2106 * testsuite/gas/mips/mips16-branch-absolute-addend.s: New test
2107 source.
2108 * testsuite/gas/mips/micromips-branch-absolute.s: New test
2109 source.
2110 * testsuite/gas/mips/micromips-branch-absolute-addend.s: New
2111 test source.
2112 * testsuite/gas/mips/mips.exp: Run the new tests.
2113
92281a5b
MR
21142016-07-13 Maciej W. Rozycki <macro@imgtec.com>
2115
2116 * testsuite/gas/mips/nal-1.d: New test.
2117 * testsuite/gas/mips/mipsr6@nal-1.d: New test.
2118 * testsuite/gas/mips/nal-2.d: New test.
2119 * testsuite/gas/mips/mipsr6@nal-2.d: New test.
2120 * testsuite/gas/mips/nal.s: New test source.
2121 * testsuite/gas/mips/mips.exp: Run the new tests.
2122
6e7ced37
JM
21232016-07-12 Jose E. Marchesi <jose.marchesi@oracle.com>
2124
2125 * testsuite/gas/sparc/ldtxa.s: New file.
2126 * testsuite/gas/sparc/ldtxa.d: Likewise.
2127 * testsuite/gas/sparc/sparc.exp: Execute the ldtxa test.
2128
05bbf016
CZ
21292016-07-11 Claudiu Zissulescu <claziss@synopsys.com>
2130
2131 * config/tc-arc.c (arc_reloc_op_tag): Allow complex ops for dtpoff.
2132 (tc_gen_reloc): Remove passing DTPOFF base info into reloc addendum
2133 as it is no longer needed.
2134
d9dcf8c6
MR
21352016-07-08 Maciej W. Rozycki <macro@imgtec.com>
2136
2137 * config/tc-mips.c (append_insn): Remove extraneous
2138 `install_insn' call.
2139
33d0ab95
JB
21402016-07-04 Jan Beulich <jbeulich@suse.com>
2141
2142 * config/tc-i386.c (check_qword_reg): Correct register kind
2143 checked.
2144 * testsuite/gas/i386/x86-64-suffix-bad.s: Add q-suffix with
2145 16-bit register cases.
2146 * testsuite/gas/i386/x86-64-suffix-bad.l: Adjust expectations.
2147
2148
fcedb9f3
MR
21492016-07-02 Maciej W. Rozycki <macro@imgtec.com>
2150
2151 * testsuite/gas/mips/ecoff@ld.d: Remove test.
2152 * testsuite/gas/mips/ecoff@ld-forward.d: Remove test.
2153 * testsuite/gas/mips/ecoff@ld-zero-3.d: Remove test.
2154 * testsuite/gas/mips/ecoff@sd.d: Remove test.
2155 * testsuite/gas/mips/ecoff@sd-forward.d: Remove test.
2156 * testsuite/gas/mips/beq.d: Remove a.out and ECOFF support from
2157 reloc patterns.
2158 * testsuite/gas/mips/mipsr6@beq.d: Likewise.
2159 * testsuite/gas/mips/bge.d: Likewise.
2160 * testsuite/gas/mips/mipsr6@bge.d: Likewise.
2161 * testsuite/gas/mips/bgeu.d: Likewise.
2162 * testsuite/gas/mips/mipsr6@bgeu.d: Likewise.
2163 * testsuite/gas/mips/blt.d: Likewise.
2164 * testsuite/gas/mips/mipsr6@blt.d: Likewise.
2165 * testsuite/gas/mips/bltu.d: Likewise.
2166 * testsuite/gas/mips/mipsr6@bltu.d: Likewise.
2167 * testsuite/gas/mips/branch-likely.d: Likewise.
2168 * testsuite/gas/mips/la.d: Likewise.
2169 * testsuite/gas/mips/lb.d: Likewise.
2170 * testsuite/gas/mips/lifloat.d: Likewise.
2171 * testsuite/gas/mips/sb.d: Likewise.
2172 * testsuite/gas/mips/uld.d: Likewise.
2173 * testsuite/gas/mips/ulh.d: Likewise.
2174 * testsuite/gas/mips/ulw.d: Likewise.
2175 * testsuite/gas/mips/usd.d: Likewise.
2176 * testsuite/gas/mips/ush.d: Likewise.
2177 * testsuite/gas/mips/usw.d: Likewise.
2178
00437d3b
MR
21792016-07-02 Maciej W. Rozycki <macro@imgtec.com>
2180
2181 * testsuite/gas/mips/branch-misc-2.s: Move non
2182 locally-defined-global symbol tests...
2183 * testsuite/gas/mips/branch-misc-5.s: ... to this new test.
2184 * testsuite/gas/mips/branch-misc-2.d: Update accordingly.
2185 * testsuite/gas/mips/branch-misc-2-64.d: Likewise.
2186 * testsuite/gas/mips/branch-misc-2pic.d: Likewise.
2187 * testsuite/gas/mips/branch-misc-2pic-64.d: Likewise.
2188 * testsuite/gas/mips/mipsr6@branch-misc-2-64.d: Likewise.
2189 * testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d: Likewise.
2190 * testsuite/gas/mips/micromips@branch-misc-2.d: Likewise.
2191 * testsuite/gas/mips/micromips@branch-misc-2-64.d: Likewise.
2192 * testsuite/gas/mips/micromips@branch-misc-2pic.d: Likewise.
2193 * testsuite/gas/mips/micromips@branch-misc-2pic-64.d: Likewise.
2194 * testsuite/gas/mips/branch-misc-5.d: New test.
2195 * testsuite/gas/mips/branch-misc-5pic.d: New test.
2196 * testsuite/gas/mips/branch-misc-5-64.d: New test.
2197 * testsuite/gas/mips/branch-misc-5pic-64.d: New test.
2198 * testsuite/gas/mips/mipsr6@branch-misc-5-64.d: New test.
2199 * testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d: New test.
2200 * testsuite/gas/mips/micromips@branch-misc-5.d: New test.
2201 * testsuite/gas/mips/micromips@branch-misc-5pic.d: New test.
2202 * testsuite/gas/mips/micromips@branch-misc-5-64.d: New test.
2203 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: New test.
2204 * testsuite/gas/mips/mips.exp: Run the new tests.
2205
f26c9c2e
MR
22062016-07-02 Maciej W. Rozycki <macro@imgtec.com>
2207
2208 * testsuite/gas/mips/beq.s: Uncomment branches to undefined
2209 symbols.
2210 * testsuite/gas/mips/beq.d: Update accordingly.
2211 * testsuite/gas/mips/mipsr6@beq.d: Likewise.
2212 * testsuite/gas/mips/micromips@beq.d: Likewise.
2213
d7f20d66
MR
22142016-07-02 Maciej W. Rozycki <macro@imgtec.com>
2215
2216 * testsuite/gas/mips/mips.exp: Restrict 64-bit `branch-mips'
2217 tests to NewABI targets.
2218
e51af157
MR
22192016-07-02 Maciej W. Rozycki <macro@imgtec.com>
2220
2221 * testsuite/gas/mips/mips.exp: Group `branch-misc' tests
2222 together.
2223
93d8990c
SN
22242016-07-01 Szabolcs Nagy <szabolcs.nagy@arm.com>
2225
2226 * config/tc-aarch64.c (struct aarch64_option_cpu_value_table): Add
2227 require field.
2228 (aarch64_features): Initialize require fields.
2229 (aarch64_parse_features): Handle dependencies.
2230 (aarch64_feature_enable_set, aarch64_feature_disable_set): New.
2231 (md_assemble): Use AARCH64_CPU_HAS_ALL_FEATURES.
2232 * testsuite/gas/aarch64/illegal-nofp16.s: New.
2233 * testsuite/gas/aarch64/illegal-nofp16.l: New.
2234 * testsuite/gas/aarch64/illegal-nofp16.d: New.
2235
98a4fc78
NC
22362016-07-01 Nick Clifton <nickc@redhat.com>
2237
2238 * macro.c (macro_expand_body): Use a buffer big enough to hold an
2239 extremely large integer.
2240
248feb2f
JB
22412016-07-01 Jan Beulich <jbeulich@suse.com>
2242
2243 * testsuite/gas/i386/mpx-inval-2.l: Relax for COFF targets.
2244
96a84ea3
TG
22452016-07-01 Tristan Gingold <gingold@adacore.com>
2246
2247 * NEWS: Add marker for 2.27.
2248
8178be5b
JB
22492016-07-01 Jan Beulich <jbeulich@suse.com>
2250
2251 * tc-i386.c (i386_index_check): Add special checks for bndmk,
2252 bndldx, and bndstx.
2253 * testsuite/gas/i386/mpx-inval-2.s: Add %rip and %eip relative
2254 as well as scaling by other than 1 tests.
2255 * testsuite/gas/i386/mpx-inval-2.l: Adjust accordingly.
2256
327e8c42
JB
22572016-07-01 Jan Beulich <jbeulich@suse.com>
2258
2259 * tc-i386.c (md_assemble): Alter address size checking for MPX
2260 instructions.
2261 * testsuite/gas/i386/mpx-inval-2.s: New.
2262 * testsuite/gas/i386/mpx-inval-2.l: New.
2263 * testsuite/gas/i386/i386.exp: Run new test.
2264
83b16ac6
JB
22652016-07-01 Jan Beulich <jbeulich@suse.com>
2266
2267 PR gas/20318
2268 * config/tc-i386.c (match_template): Add char parameter,
2269 consumed in Intel mode for an extra suffix check.
2270 (md_assemble): New local variable mnem_suffix.
2271 * testsuite/gas/i386/suffix-bad.s: New.
2272 * testsuite/gas/i386/suffix-bad.l: New.
2273 * testsuite/gas/i386/i386.exp: Run new test (twice).
2274
c07315e0
JB
22752016-07-01 Jan Beulich <jbeulich@suse.com>
2276
2277 * testsuite/gas/i386/movz.s: New.
2278 * testsuite/gas/i386/movz32.d: New.
2279 * testsuite/gas/i386/movz64.d: New.
2280 * testsuite/gas/i386/i386.exp: Run new tests.
2281
8325cc63
JB
22822016-07-01 Jan Beulich <jbeulich@suse.com>
2283
2284 * config/tc-i386.c (struct _i386_insn): New field memop1_string.
2285 (md_assemble): Free first memory operand string.
2286 (i386_index_check): Use repprefixok to distingush xlat from
2287 other (real) string ops.
2288 (maybe_adjust_templates): New.
2289 (i386_att_operand). Call it. Store first memory operand string.
2290 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
2291 * testsuite/gas/i386/intel-movs.s: New.
2292 * testsuite/gas/i386/intel-movs32.d: New.
2293 * testsuite/gas/i386/intel-movs64.d: New.
2294 * testsuite/gas/i386/i386.exp: Run new tests. Invoke as for
2295 64-bits tests with "--defsym x86_64=1 --strip-local-absolute".
2296
3b821a28
MR
22972016-06-30 Maciej W. Rozycki <macro@imgtec.com>
2298
2299 * config/tc-mips.c (get_append_method): Fix a comment typo.
2300
99e7978b
MF
23012016-06-30 Matthew Fortune <Matthew.Fortune@imgtec.com>
2302 Maciej W. Rozycki <macro@imgtec.com>
2303
2304 * config/tc-mips.c (append_insn) <APPEND_SWAP>: Do not special
2305 case MIPS16 handling.
2306 * testsuite/gas/mips/branch-swap-3.d: New test.
2307 * testsuite/gas/mips/branch-swap-4.d: New test.
2308 * testsuite/gas/mips/mips16@branch-swap-3.d: New test.
2309 * testsuite/gas/mips/mips16@branch-swap-4.d: New test.
2310 * testsuite/gas/mips/micromips@branch-swap-3.d: New test.
2311 * testsuite/gas/mips/micromips@branch-swap-4.d: New test.
2312 * testsuite/gas/mips/branch-swap-3.s: New test source.
2313 * testsuite/gas/mips/mips.exp: Run the new tests.
2314
5e35670b
MR
23152016-06-30 Maciej W. Rozycki <macro@imgtec.com>
2316
2317 * config/tc-mips.c (append_insn): Simplify non-MIPS16 branch
2318 swapping sequence.
2319
93a24ba7
MR
23202016-06-30 Maciej W. Rozycki <macro@imgtec.com>
2321
2322 PR gas/20312
2323 * write.c (subsegs_finish_section): Force no section padding to
2324 alignment on failed assembly, always set last frag's alignment
2325 from section.
2326 * testsuite/gas/all/pr20312.l: New list test.
2327 * testsuite/gas/all/pr20312.s: New test source.
2328 * testsuite/gas/all/gas.exp: Run the new test
2329
8d6f5ac3
AB
23302016-06-30 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * config.in (TARGET_WITH_CPU): Undefine.
2333 * configure.ac: Add --with-cpu support, and define in config.h.
2334 * configure: Regenerate.
2335 * config/tc-arc.c: Use TARGET_WITH_CPU to select default CPU.
2336 * NEWS: Mention new configure option.
2337
534dbe46
MW
23382016-06-30 Matthew Wahab <matthew.wahab@arm.com>
2339
2340 * testsuite/gas/arm/armv8_2+rdma.d: New.
2341
4e3e1fdf
L
23422016-06-29 H.J. Lu <hongjiu.lu@intel.com>
2343
2344 * NEWS: Mention --enable-compressed-debug-sections=gas is the
2345 default for Linux/x86 targets.
2346 * configure.tgt (ac_default_compressed_debug_sections): Default
2347 to yes for Linux/x86 targets.
2348
6d44f09a
MR
23492016-06-29 Maciej W. Rozycki <macro@imgtec.com>
2350
2351 * write.c: Remove "libbfd.h" inclusion.
2352
eb9bb5b4
MR
23532016-06-28 Maciej W. Rozycki <macro@imgtec.com>
2354
2355 * testsuite/gas/elf/elf.exp: Use `supports_gnu_unique' with the
2356 `type' test.
2357
d48796b5
AM
23582016-06-28 Alan Modra <amodra@gmail.com>
2359
2360 PR gas/20247
2361 * testsuite/gas/elf/section11.s: Don't start directives in first column.
2362
dab26bf4
RS
23632016-06-28 Richard Sandiford <richard.sandiford@arm.com>
2364
2365 * testsuite/gas/aarch64/diagnostic.s,
2366 testsuite/gas/aarch64/diagnostic.l: Add tests for out-of-range indices.
2367
c9775dde
MR
23682016-06-28 Maciej W. Rozycki <macro@imgtec.com>
2369
2370 * config/tc-mips.c (mips16_reloc_p): Handle
2371 BFD_RELOC_MIPS16_16_PCREL_S1.
2372 (b_reloc_p): Likewise.
2373 (limited_pcrel_reloc_p): Likewise.
2374 (md_pcrel_from): Likewise.
2375 (md_apply_fix): Likewise.
2376 (tc_gen_reloc): Likewise.
2377 (md_convert_frag): Likewise.
2378 (mips_fix_adjustable): Update comment.
2379 * testsuite/gas/mips/mips16-branch-reloc-2.d: Remove error
2380 output, add dump patterns.
2381 * testsuite/gas/mips/mips16-branch-reloc-3.d: Remove error
2382 output, add dump patterns.
2383 * testsuite/gas/mips/mips16-branch-addend-2.d: Remove error
2384 output, add dump patterns.
2385 * testsuite/gas/mips/mips16-branch-addend-3.d: Remove error
2386 output, add dump patterns.
2387 * testsuite/gas/mips/mips16-branch-absolute.d: Remove error
2388 output, add dump patterns.
2389 * testsuite/gas/mips/mips16-branch-reloc-2.l: Remove file.
2390 * testsuite/gas/mips/mips16-branch-reloc-3.l: Remove file.
2391 * testsuite/gas/mips/mips16-branch-addend-2.l: Remove file.
2392 * testsuite/gas/mips/mips16-branch-addend-3.l: Remove file.
2393 * testsuite/gas/mips/mips16-branch-absolute.l: Remove file.
2394 * testsuite/gas/mips/mips16-branch-addend-2.s: Add padding.
2395 * testsuite/gas/mips/branch-weak.s: Adjust alignment, avoid
2396 implicit instruction padding, avoid MIPS16 JR->JRC conversion.
2397 * testsuite/gas/mips/branch-weak-6.d: New test.
2398 * testsuite/gas/mips/branch-weak-7.d: New test.
2399 * testsuite/gas/mips/mips.exp: Run the new tests.
2400
45a54ee5
VG
24012016-06-27 Vineet Gupta <vgupta@synopsys.com>
2402
2403 * config//tc-arc.c (tc_arc_frame_initial_instructions): Use
2404 cfi_add_CFA_def_cfa to generate default CFA with offset
2405 * testsuite/gas/cfi/cfi-arc-1.d: Update expected output.
2406
95daf210
NC
24072016-06-27 Nick Clifton <nickc@redhat.com>
2408
2409 PR gas/20247
2410 * as.h (do_not_pad_sections_to_alignment): New global variable.
2411 * as.c (show_usage): Add --no-pad-sections.
2412 (parse_args): Likewise.
2413 * write.c (size_seg): Skip padding the end of the section if
2414 requested from the command line.
2415 (SUB_SEGMENT_ALIGN): Likewise.
2416 * doc/as.texinfo: Document the new option.
2417 * NEWS: Mention the new feature.
2418 * testsuite/gas/elf/section11.s: New test.
2419 * testsuite/gas/elf/section11.d: New test driver.
2420 * testsuite/gas/elf/elf.exp: Run the new test.
2421
3cd72572
TS
24222016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2423
2424 * config/tc-dlx.c: Include bfd/elf32-dlx.h.
2425 * config/tc-dlx.h: Remove prototype of dlx_set_skip_hi16.
2426
e066bf5f
TS
24272016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2428
2429 * config/tc-xtensa.c (xtensa_elf_suffix): Use ARRAY_SIZE instead of a
2430 sentinal element.
2431 (map_suffix_reloc_to_operator): Likewise.
2432 (map_operator_to_reloc): Likewise.
2433
0708347f
TS
24342016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2435
2436 * config/tc-nds32.c (md_begin): Use ARRAY_SIZE instead of a sentinal
2437 element in relax_table.
2438
8a0b252a
TS
24392016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2440
2441 * config/tc-aarch64.c: Make the type of reg_entry::type
2442 aarch_reg_type.
2443
5703197e
TS
24442016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2445
2446 * config/tc-bfin.c (bfin_cpus): Remove sentinal.
2447 (md_parse_option): Adjust.
2448 * config/tc-aarch64.c (aarch64_parse_abi): Replace use of a sentinal
2449 with iteration from 0 to ARRAY_SIZE.
2450 * config/tc-mcore.c (md_begin): Likewise.
2451 * config/tc-visium.c (visium_parse_arch): Likewise.
2452
4b92e388
TS
24532016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2454
2455 * config/tc-tic54x.c (tic54x_set_default_include): remove argument
2456 and simplify accordingly.
2457 (tic54x_include): Adjust.
2458 (tic54x_mlib): Likewise.
2459
7c2c4aa1
TS
24602016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2461
2462 * config/tc-xtensa.c (xtensa_make_property_section): Remove prototype.
2463
88a7ef16
MR
24642016-06-24 Maciej W. Rozycki <macro@imgtec.com>
2465
2466 * config/tc-mips.c (append_insn): Use any `O_symbol' expression
2467 unchanged with relaxed MIPS16 instructions.
2468 (mips16_extended_frag): Adjust accordingly. Return 1 right
2469 away if a relocation will be required for the symbol requested.
2470 Remove dead first relaxation pass code.
2471 (mips_relax_frag): Pass `sec' down to `mips16_extended_frag'.
2472 (md_convert_frag): Adjust symbol value calculation. Raise an
2473 error if a relocation is required for the symbol requested.
2474 * testsuite/gas/mips/mips16@relax-swap3.d: Remove dump patterns,
2475 add error output.
2476 * testsuite/gas/mips/mips16@relax-swap3.l: New error output.
2477 * testsuite/gas/mips/mips16-pcrel-relax-0.d: New test.
2478 * testsuite/gas/mips/mips16-pcrel-relax-1.d: New test.
2479 * testsuite/gas/mips/mips16-pcrel-relax-2.d: New test.
2480 * testsuite/gas/mips/mips16-pcrel-relax-3.d: New test.
2481 * testsuite/gas/mips/mips16-pcrel-reloc-0.d: New test.
2482 * testsuite/gas/mips/mips16-pcrel-reloc-1.d: New test.
2483 * testsuite/gas/mips/mips16-pcrel-reloc-2.d: New test.
2484 * testsuite/gas/mips/mips16-pcrel-reloc-3.d: New test.
2485 * testsuite/gas/mips/mips16-pcrel-reloc-4.d: New test.
2486 * testsuite/gas/mips/mips16-pcrel-reloc-5.d: New test.
2487 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: New test.
2488 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: New test.
2489 * testsuite/gas/mips/mips16-pcrel-addend-0.d: New test.
2490 * testsuite/gas/mips/mips16-pcrel-addend-1.d: New test.
2491 * testsuite/gas/mips/mips16-pcrel-addend-2.d: New test.
2492 * testsuite/gas/mips/mips16-pcrel-addend-3.d: New test.
2493 * testsuite/gas/mips/mips16-pcrel-absolute.d: New test.
2494 * testsuite/gas/mips/mips16-branch-reloc-0.d: New test.
2495 * testsuite/gas/mips/mips16-branch-reloc-1.d: New test.
2496 * testsuite/gas/mips/mips16-branch-reloc-2.d: New test.
2497 * testsuite/gas/mips/mips16-branch-reloc-3.d: New test.
2498 * testsuite/gas/mips/mips16-branch-addend-0.d: New test.
2499 * testsuite/gas/mips/mips16-branch-addend-1.d: New test.
2500 * testsuite/gas/mips/mips16-branch-addend-2.d: New test.
2501 * testsuite/gas/mips/mips16-branch-addend-3.d: New test.
2502 * testsuite/gas/mips/mips16-branch-absolute.d: New test.
2503 * testsuite/gas/mips/mips16-absolute-reloc-0.d: New test.
2504 * testsuite/gas/mips/mips16-absolute-reloc-1.d: New test.
2505 * testsuite/gas/mips/mips16-absolute-reloc-2.d: New test.
2506 * testsuite/gas/mips/mips16-absolute-reloc-3.d: New test.
2507 * testsuite/gas/mips/mips16-pcrel-reloc-2.l: New error output.
2508 * testsuite/gas/mips/mips16-pcrel-reloc-3.l: New error output.
2509 * testsuite/gas/mips/mips16-pcrel-reloc-6.l: New error output.
2510 * testsuite/gas/mips/mips16-pcrel-reloc-7.l: New error output.
2511 * testsuite/gas/mips/mips16-pcrel-addend-2.l: New error output.
2512 * testsuite/gas/mips/mips16-pcrel-addend-3.l: New error output.
2513 * testsuite/gas/mips/mips16-pcrel-absolute.l: New error output.
2514 * testsuite/gas/mips/mips16-branch-reloc-2.l: New error output.
2515 * testsuite/gas/mips/mips16-branch-reloc-3.l: New error output.
2516 * testsuite/gas/mips/mips16-branch-addend-2.l: New error output.
2517 * testsuite/gas/mips/mips16-branch-addend-3.l: New error output.
2518 * testsuite/gas/mips/mips16-branch-absolute.l: New error output.
2519 * testsuite/gas/mips/mips16-absolute-reloc-2.l: New error output.
2520 * testsuite/gas/mips/mips16-absolute-reloc-3.l: New error output.
2521 * testsuite/gas/mips/mips16-pcrel-relax-0.s: New test source.
2522 * testsuite/gas/mips/mips16-pcrel-relax-2.s: New test source.
2523 * testsuite/gas/mips/mips16-pcrel-reloc-0.s: New test source.
2524 * testsuite/gas/mips/mips16-pcrel-reloc-1.s: New test source.
2525 * testsuite/gas/mips/mips16-pcrel-reloc-2.s: New test source.
2526 * testsuite/gas/mips/mips16-pcrel-reloc-3.s: New test source.
2527 * testsuite/gas/mips/mips16-pcrel-reloc-4.s: New test source.
2528 * testsuite/gas/mips/mips16-pcrel-reloc-5.s: New test source.
2529 * testsuite/gas/mips/mips16-pcrel-reloc-6.s: New test source.
2530 * testsuite/gas/mips/mips16-pcrel-reloc-7.s: New test source.
2531 * testsuite/gas/mips/mips16-pcrel-addend-0.s: New test source.
2532 * testsuite/gas/mips/mips16-pcrel-addend-1.s: New test source.
2533 * testsuite/gas/mips/mips16-pcrel-addend-2.s: New test source.
2534 * testsuite/gas/mips/mips16-pcrel-addend-3.s: New test source.
2535 * testsuite/gas/mips/mips16-pcrel-absolute.s: New test source.
2536 * testsuite/gas/mips/mips16-branch-reloc-0.s: New test source.
2537 * testsuite/gas/mips/mips16-branch-reloc-1.s: New test source.
2538 * testsuite/gas/mips/mips16-branch-reloc-2.s: New test source.
2539 * testsuite/gas/mips/mips16-branch-reloc-3.s: New test source.
2540 * testsuite/gas/mips/mips16-branch-addend-0.s: New test source.
2541 * testsuite/gas/mips/mips16-branch-addend-1.s: New test source.
2542 * testsuite/gas/mips/mips16-branch-addend-2.s: New test source.
2543 * testsuite/gas/mips/mips16-branch-addend-3.s: New test source.
2544 * testsuite/gas/mips/mips16-branch-absolute.s: New test source.
2545 * testsuite/gas/mips/mips16-absolute-reloc-0.s: New test source.
2546 * testsuite/gas/mips/mips16-absolute-reloc-1.s: New test source.
2547 * testsuite/gas/mips/mips16-absolute-reloc-2.s: New test source.
2548 * testsuite/gas/mips/mips16-absolute-reloc-3.s: New test source.
2549 * testsuite/gas/mips/mips.exp: Run the new tests.
2550
5c0ff163
AM
25512016-06-24 Alan Modra <amodra@gmail.com>
2552
2553 * configure.tgt (alpha-*-openbsd*): Use em=nbsd.
2554
0e9c5a5c
MR
25552016-06-23 Maciej W. Rozycki <macro@imgtec.com>
2556
2557 * config/tc-mips.c (b_reloc_p): New function.
2558 (mips_fix_adjustable): Also keep the original microMIPS symbol
2559 referred from branch relocations.
2560 * testsuite/gas/mips/branch-local-1.d: New test.
2561 * testsuite/gas/mips/branch-local-n32-1.d: New test.
2562 * testsuite/gas/mips/branch-local-n64-1.d: New test.
2563 * testsuite/gas/mips/micromips@branch-misc-4-64.d: Update
2564 relocations.
2565 * testsuite/gas/mips/branch-local-1.s: New test source.
2566 * testsuite/gas/mips/mips.exp: Run the new cases.
2567
ce440d63
GM
25682016-06-23 Graham Markall <graham.markall@embecosm.com>
2569
2570 * config/tc-arc.c (options, md_longopts, md_parse_option): Move
2571 -mspfp, -mdpfp and -mfpuda out of the sections for dummy
2572 options. Correct erroneous enabling of SPFP instructions when
2573 using -mnps400.
2574
6fd3a02d
PB
25752016-06-22 Peter Bergner <bergner@vnet.ibm.com>
2576
2577 * testsuite/gas/ppc/power9.d <brd, brh, brw, mffs, mffs., mffsce,
2578 mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl, nandxor, rldixor,
2579 setbool, xor3>: New tests.
2580 * testsuite/gas/ppc/power9.s: Likewise.
2581
b0b79343
TS
25822016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2583
2584 * config/tc-xtensa.c: Include elf/xtensa.h.
2585
8cec2cfe
MR
25862016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2587
2588 * config/tc-mips.c (calculate_reloc) <BFD_RELOC_HI16_S_PCREL>
2589 <BFD_RELOC_LO16_PCREL>: New switch cases.
2590 (md_apply_fix) <BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL>:
2591 Move switch cases along `BFD_RELOC_MIPS_JMP'.
2592 <BFD_RELOC_MIPS_21_PCREL_S2, BFD_RELOC_MIPS_26_PCREL_S2>
2593 <BFD_RELOC_MIPS_18_PCREL_S3, BFD_RELOC_MIPS_19_PCREL_S2>: Handle
2594 the resolved case.
2595 * testsuite/gas/mips/pcrel-reloc-4.d: New test.
2596 * testsuite/gas/mips/pcrel-reloc-4-r6.d: New test.
2597 * testsuite/gas/mips/pcrel-reloc-5.d: New test.
2598 * testsuite/gas/mips/pcrel-reloc-5-r6.d: New test.
2599 * testsuite/gas/mips/pcrel-reloc-6.d: New test.
2600 * testsuite/gas/mips/pcrel-reloc-6.l: New list test.
2601 * testsuite/gas/mips/pcrel-reloc-4.s: New test source.
2602 * testsuite/gas/mips/pcrel-reloc-6.s: New test source.
2603 * testsuite/gas/mips/mips.exp: Run the new tests.
2604
717ba204
MR
26052016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2606
2607 * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS_18_PCREL_S3>
2608 <BFD_RELOC_MIPS_19_PCREL_S2>: Avoid null pointer dereferences
2609 via `fixP->fx_addsy'.
2610
51f6035b
MR
26112016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2612
2613 * config/tc-mips.c (md_pcrel_from) <BFD_RELOC_MIPS_18_PCREL_S3>:
2614 Calculate relocation from the containing aligned doubleword.
2615 (tc_gen_reloc) <BFD_RELOC_MIPS_18_PCREL_S3>: Calculate the
2616 addend from the containing aligned doubleword.
2617
912815f0
MR
26182016-06-21 Maciej W. Rozycki <macro@imgtec.com>
2619
2620 * config/tc-mips.c (mips_force_relocation): Use `file_mips_opts'
2621 rather than `mips_opts' for the R6 ISA check.
2622 (mips_fix_adjustable): Likewise.
2623 * testsuite/gas/mips/pcrel-reloc-1.d: New test.
2624 * testsuite/gas/mips/pcrel-reloc-1-r6.d: New test.
2625 * testsuite/gas/mips/pcrel-reloc-2.d: New test.
2626 * testsuite/gas/mips/pcrel-reloc-2-r6.d: New test.
2627 * testsuite/gas/mips/pcrel-reloc-3.d: New test.
2628 * testsuite/gas/mips/pcrel-reloc-3-r6.d: New test.
2629 * testsuite/gas/mips/pcrel-reloc-1.s: New test source.
2630 * testsuite/gas/mips/mips.exp: Run the new tests.
2631
bdd582db
GM
26322016-06-21 Graham Markall <graham.markall@embecosm.com>
2633
2634 * config/tc-arc.c (check_cpu_feature, md_parse_option):
2635 Add nps400 option and feature. Add check for nps400
2636 feature. Refactor existing checks to check subclass before
2637 feature enablement.
2638 (md_show_usage): Document flags for NPS-400 and add some other
2639 undocumented flags.
2640 (cpu_type): Remove nps400 CPU type entry
2641 (check_zol): Remove bfd_mach_arc_nps400 case.
2642 (md_show_usage): Add help on -mcpu=nps400.
2643 (cpu_types): Add entry for nps400 as arc700 plus nps400 extension
2644 set.
2645 * doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and
2646 -fpuda flags. Document -mcpu=nps400.
2647 * testsuite/gas/arc/nps-400-0.d: Use -mcpu=arc700 -mnps400. Change
2648 expected flags to match ARC700 instead of NPS400.
2649 * testsuite/gas/arc/nps-400-1.d: Use -mcpu=arc700 -mnps400.
2650 * testsuite/gas/arc/nps-400-2.d: Likewise.
2651 * testsuite/gas/arc/nps-400-3.d: Likewise.
2652 * testsuite/gas/arc/nps-400-4.d: Likewise.
2653 * testsuite/gas/arc/nps-400-5.d: Likewise.
2654 * testsuite/gas/arc/nps-400-6.d: Likewise.
2655 * testsuite/gas/arc/nps-400-7.d: Likewise.
2656 * testsuite/gas/arc/textinsn2op01.s: Change opcode of myinsn to
2657 avoid clash with cbba instruction.
2658 * testsuite/gas/arc/textinsn2op01.d: Likewise.
2659 * testsuite/gas/arc/textinsn3op.d: Likewise.
2660 * testsuite/gas/arc/textinsn3op.s: Likewise.
2661 * testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using
2662 -mcpu=nps400 as an alternative to -mcpu=arc700 -mnps400 flags.
2663
ff03d62a
MR
26642016-06-20 Maciej W. Rozycki <macro@imgtec.com>
2665
2666 * testsuite/gas/mips/r6-64-n32.d: Change the `name' tag.
2667 * testsuite/gas/mips/r6-64-n64.d: Likewise.
2668
507dcb32
MR
26692016-06-20 Maciej W. Rozycki <macro@imgtec.com>
2670
2671 * config/tc-mips.c (mips_fix_adjustable): Update comment on jump
2672 reloc conversion.
2673
9f99c22e
VP
26742016-06-20 Virendra Pathak <virendra.pathak@broadcom.com>
2675
2676 * config/tc-aarch64.c (aarch64_cpus): Update vulcan feature set.
2677
96074adc
JM
26782016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2679
2680 * config/tc-sparc.c (hpriv_reg_table): Add registers %hmcdper,
2681 %hmcddfr and %hva_mask_nz.
2682 (sparc_ip): New handling of asr/privileged/hyperprivileged
2683 registers, adapted to the new form of the sparc opcodes table.
2684 * testsuite/gas/sparc/rdasr.s: New file.
2685 * testsuite/gas/sparc/rdasr.d: Likewise.
2686 * testsuite/gas/sparc/wrasr.s: Likewise.
2687 * testsuite/gas/sparc/wrasr.d: Likewise.
2688 * testsuite/gas/sparc/sparc.exp (sparc_elf_setup): Add rdasr and
2689 wrasr tests.
2690 * testsuite/gas/sparc/rdpr.d: Use -Av9m, as some privileged
2691 registers require it.
2692 * testsuite/gas/sparc/wrpr.s: Complete to cover all privileged
2693 registers and write instruction modalities.
2694 * testsuite/gas/sparc/wrpr.d: Likewise.
2695 * testsuite/gas/sparc/rdhpr.s: Likewise for hyperprivileged
2696 registers.
2697 * testsuite/gas/sparc/rdhpr.d: Likewise.
2698 * testsuite/gas/sparc/wrhpr.s: Likewise.
2699 * testsuite/gas/sparc/wrhpr.d: Likewise.
2700
7a10c22f
JM
27012016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2702
2703 * config/tc-sparc.c (sparc_arch_table): adjust the GAS
2704 architectures to use the right opcode architecture.
2705 (sparc_md_end): Handle v9{c,d,e,v,m}.
2706 (sparc_ip): Fix some comments.
2707 * testsuite/gas/sparc/ldx_efsr.d: Fix the architecture of this
2708 instruction, which is v9d.
2709 * testsuite/gas/sparc/mwait.s: Remove the `rd %mwait,%g1'
2710 instruction from the test, as %mwait is not readable.
2711 * testsuite/gas/sparc/mwait.d: Likewise.
2712 * testsuite/gas/sparc/mism-1.s: Expand to check v9b and v9e
2713 mismatch architecture errors.
2714 * testsuite/gas/sparc/mism-2.s: New file.
2715
8b8c7c9f
JM
27162016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2717
2718 * config/tc-sparc.c (priv_reg_table): Use NULL instead of the
2719 empty string to mark the end of the array.
2720 (hpriv_reg_table): Likewise.
2721 (v9a_asr_table): Likewise.
2722 (cmp_reg_entry): Handle entries with NULL names.
2723 (F_POP_V9): Define.
2724 (F_POP_PCREL): Likewise.
2725 (F_POP_TLS_CALL): Likewise.
2726 (F_POP_POSTFIX): Likewise.
2727 (struct pop_entry): New type.
2728 (pop_table): New variable.
2729 (enum pop_entry_type): New type.
2730 (struct perc_entry): Likewise.
2731 (NUM_PERC_ENTRIES): Define.
2732 (perc_table): New variable.
2733 (cmp_perc_entry): New function.
2734 (md_begin): Sort hpriv_reg_table and v9a_asr_table, and initialize
2735 perc_table.
2736 (sparc_ip): Handle entries with NULL names in priv_reg_table,
2737 hpriv_reg_table and v9a_asr_table. Use perc_table to handle
2738 %-pseudo-ops.
2739
3ee6e4fb
NC
27402016-06-15 Nick Clifton <nickc@redhat.com>
2741
2742 * config/tc-ft32.c (md_assemble): Call dwarf2_emit_insn with the
2743 instruction size.
2744 * config/tc-mcore.c (md_assemble): Likewise.
2745 * config/tc-mn10200.c (md_assemble): Likewise.
2746 * config/tc-moxie.c (md_assemble): Likewise.
2747 * config/tc-pj.c (md_apply_fix): Handle BFD_RELOC_PJ_CODE_REL32.
2748 * testsuite/gas/all/gas.exp (diff1 test): Alpha sort list of
2749 exception targets. Add alpha, hppa, microblaze and rl78 to list
2750 of exceptions.
2751 (forward): Add microblaze to list of exceptions.
2752 (fwdexp): Add alpha to list of exceptions.
2753 (redef2): Add arm-epoc-pe and rl78 to list of exceptions.
2754 (redef3): Add rl78 and x86_64 cygwin to list of exceptions.
2755 (do_930509a): Alpha sort list of exception targets. Add h8300 and
2756 mn10200 to list of exceptions.
2757 (align2): Expect to fail for nds32.
2758 (cond): Add alpha and rl78 to list of exceptions.
2759 * testsuite/gas/all/none.d: Skip for ft32 and hppa.
2760 * testsuite/gas/all/string.d: Skip for tic4x.
2761 * testsuite/gas/alpha/alpha.exp: Note that the alpha-linuxecoff
2762 target does not support ELF.
2763 * testsuite/gas/arm/blx-bl-convert.dL Skip for the nto target.
2764 * testsuite/gas/cfi/cfi-alpha-2.d: All extended format names.
2765 * testsuite/gas/cfi/cfi.exp: Alpha sort list of targets. Skip SH
2766 tests for sh-pe and sh-rtemscoff targets.
2767 * testsuite/gas/elf/elf.exp (redef): Add rl78, xgate and vax to
2768 list of exceptions.
2769 (type): Run the noifunc version for alpha-freebsd and visium.
2770 * testsuite/gas/elf/warn-2.s: Do not expect to fail on the mcore,
2771 mn10200 or moxie targets.
2772 * testsuite/gas/ft32/insn.d: Update expected disassembly.
2773 * testsuite/gas/i386/i386.exp (x86-64-pcrel): Skip for cygwin
2774 targets.
2775 * testsuite/gas/lns/lns.exp (lns-common-1): No longer skip for
2776 mcore and rx targets.
2777 * testsuite/gas/macros/macros.exp (dot): Add exceptions for ns32k,
2778 rl78 and vax.
2779 (purge): Expect to fail on the ns32k and vax.
2780 * testsuite/gas/nds32/alu-2.d: Update expected disassembly.
2781 * testsuite/gas/nds32/ls.d: Likewise.
2782 * testsuite/gas/nds32/sys-reg.d: Likewise.
2783 * testsuite/gas/nds32/usr-spe-reg.d: Likewise.
2784 * testsuite/gas/pe/aligncomm-d.d: Skip for the sh.
2785 * testsuite/gas/pe/section-align-3.d: Likewise.
2786 * testsuite/gas/pe/section-exclude.d: Likewise.
2787 * testsuite/gas/ppc/test2xcoff32.d: Pass once all the required
2788 data has been seen.
2789 * testsuite/gas/ppc/textalign-xcoff-001.d: Fix up regexp to allow
2790 for variations in whitespace.
2791 * testsuite/gas/tilepro/t_constants.d: Pass once all the required
2792 data has been seen.
2793 * testsuite/gas/tilepro/t_constants.s (.safe_word): New macro.
2794 Installs a 32-bit value without generating warnings on 64-bit
2795 hosts.
2796 Use the new macro to replace the .word directives.
2797
02f3be19
AB
27982016-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2799
2800 * testsuite/gas/arc/add_s.d: New file.
2801 * testsuite/gas/arc/add_s.s: New file.
2802
6f9f37ed 28032016-06-14 Graham Markall <graham.markall@embecosm.com>
28215275
GM
2804
2805 * testsuite/gas/arc/nps400-6.s: Add tests of ldbit.
2806 * testsuite/gas/arc/nps400-6.d: Likewise.
2807
6f9f37ed 28082016-06-14 Graham Markall <graham.markall@embecosm.com>
9ba75c88
GM
2809
2810 * testsuite/gas/arc/nps400-6.s: Add tests of hash, tr, utf8, e4by, and
2811 addf.
2812 * testsuite/gas/arc/nps400-6.d: Likewise.
2813
6f9f37ed 28142016-06-14 Graham Markall <graham.markall@embecosm.com>
14053c19
GM
2815
2816 * testsuite/gas/arc/nps400-6.s: Add tests of calcbsd, calcbxd,
2817 calckey, calcxkey, mxb, imxb, addl, subl, andl, orl, xorl, andab, orab,
2818 lbdsize, bdlen, csms, csma, cbba, zncv, and hofs.
2819 * testsuite/gas/arc/nps400-6.d: Likewise.
2820
d2dfe54d
NC
28212016-06-14 Nick Clifton <nickc@redhat.com>
2822
2823 * config/tc-nds32.c (nds32_get_align): Avoid left shifting a
2824 signed constant.
2825
97f50151
MR
28262016-06-13 Maciej W. Rozycki <macro@imgtec.com>
2827
2828 * config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
2829 JALR relocations on R6.
2830 * testsuite/gas/mips/jal-svr4pic-local.d: New test.
2831 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: New test.
2832 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: New test.
2833 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: New test.
2834 * testsuite/gas/mips/jal-svr4pic-local-n32.d: New test.
2835 * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d: New
2836 test.
2837 * testsuite/gas/mips/jal-svr4pic-local-n64.d: New test.
2838 * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d: New
2839 test.
2840 * testsuite/gas/mips/jal-svr4pic-local.s: New test source.
2841 * testsuite/gas/mips/jal-svr4pic-local-newabi.s: New test
2842 source.
2843 * testsuite/gas/mips/mips.exp: Run the new tests.
2844
0a8be2fe
VP
28452016-06-13 Virendra Pathak <virendra.pathak@broadcom.com>
2846
2847 * config/tc-aarch64.c (aarch64_cpus): Add Broadcom Vulcan.
2848 * doc/c-aarch64.texi: Document that vulcan is a valid processor
2849 name.
2850
69c9e028
NC
28512016-06-13 Nick Clifton <nickc@redhat.com>
2852
2853 * config/tc-arm.c: For non-ELF based targets skip ARM feature sets
2854 that are not supported.
2855
2856 * config/tc-arc.c (md_apply_fix): Avoid left shifting a signed
2857 constant.
2858 * config/tc-cr16.c (check_range): Likewise.
2859 * config/tc-nios2.c (nios2_check_overflow): Likewise.
2860
08d3b0cc
RL
28612016-06-08 Renlin Li <renlin.li@arm.com>
2862
2863 * config/tc-aarch64.c (print_operands): Substitute size.
2864 (output_operand_error_record): Likewise.
2865
14b57c7c
AM
28662016-06-07 Alan Modra <amodra@gmail.com>
2867
2868 * config/tc-ppc.c (PPC_APUINFO_ISEL, PPC_APUINFO_PMR,
2869 PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE,
2870 PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK, PPC_APUINFO_VLE): Don't define.
2871 (ppc_setup_opcodes): Check vle disables powerpc_opcodes overridden
2872 by vle_opcodes, and that vle flag doesn't enable opcodes. Don't
2873 add vle_opcodes twice.
2874 (ppc_cleanup): Use APUINFO_SECTION_NAME and APUINFO_LABEL.
2875
4d1464f2
MW
28762016-06-07 Matthew Wahab <matthew.wahab@arm.com>
2877
2878 * config/tc-arm.c (arm_ext_v8_2): Rename to arm_ext_ras.
2879 (arm_ext_ras): Renamed from arm_ext_v8_2.
2880 (insns): Update for arm_ext_v8_2 renaming.
2881 (arm_extensions): Add "ras".
2882 * doc/c-arm.texi (ARM Options): Add an entry for "ras".
2883 * testsuite/gas/arm/armv8-a+ras.d: New.
2884 * testsuite/gas/arm/armv8_2-a.d: Add explicit command line
2885 options.
2886
852a1d49
TS
28872016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2888
2889 * itbl-parse.y (yyerror): Use modern argument declaration style.
2890
c4212e11
TS
28912016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2892
2893 * config/tc-sh.c (parse_reg): Change type of mode argument to
2894 sh_arg_type.
2895 (get_operand): Adjust.
2896 (insert): Change type of how to bfd_reloc_code_real_type.
2897 (insert4): Likewise.
2898 * config/tc-sh64.c (shmedia_get_operand): Adjust.
2899 (shmedia_parse_reg): Change type of mode to shmedia_arg_type.
2900
73a229c7
TS
29012016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2902
2903 * config/tc-nds32.c (nds32_parse_option): Make the type of ptr_arg
2904 const char *.
2905
026122a6
PB
29062016-06-03 Peter Bergner <bergner@vnet.ibm.com>
2907
2908 PR binutils/20196
2909 * gas/testsuite/gas/ppc/e6500.s <lbarx, lharx, lwarx, ldarx,
2910 stbcx., sthcx., stwcx., stdcx.>: Add tests.
2911 * gas/testsuite/gas/ppc/e6500.d: Likewise.
2912 * gas/testsuite/gas/ppc/power8.s: Likewise.
2913 * gas/testsuite/gas/ppc/power8.d: Likewise.
2914 * gas/testsuite/gas/ppc/power4.s <lwarx, ldarx, stwcx.,
2915 stdcx.>: Add tests.
2916 * gas/testsuite/gas/ppc/power4.d: Likewise.
2917
07f5af7d
L
29182016-06-03 H.J. Lu <hongjiu.lu@intel.com>
2919
2920 PR binutis/18386
2921 * testsuite/gas/i386/i386.exp: Run x86-64-branch-4.
2922 * testsuite/gas/i386/x86-64-branch.d: Updated.
2923 * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
2924 * testsuite/gas/i386/x86-64-branch-4.l: New file.
2925 * testsuite/gas/i386/x86-64-branch-4.s: Likewise.
2926
1aa70332
KT
29272016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2928
2929 * config/tc-aarch64.c (aarch64_cpus): Add cortex-a73 entry.
2930 * doc/c-aarch64.texi (-mcpu): Document cortex-a73 value.
2931
362a3eba
KT
29322016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2933
2934 * config/tc-arm.c (arm_cpus): Add cortex-a73 entry.
2935 * doc/c-arm.texi (-mcpu=): Document cortex-a73 value.
2936
4ad0bb5f
VG
29372016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
2938
2939 * configure.tgt: Replace -uclibc with *.
2940
4eb6f892
AB
29412016-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2942
2943 * config/tc-arc.c (parse_opcode_flags): New function.
2944 (find_opcode_match): Move flag parsing code out to new function.
2945 Ignore operands marked IGNORE.
2946 (build_fake_opcode_hash_entry): New function.
2947 (find_special_case_long_opcode): New function.
2948 (find_special_case): Lookup long opcodes.
2949 * testsuite/gas/arc/nps400-7.d: New file.
2950 * testsuite/gas/arc/nps400-7.s: New file.
2951
c273521c
TS
29522016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2953
2954 * config/tc-ns32k.c: Remove definition of input_line_pointer.
2955
814f1489
TS
29562016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2957
2958 * config/tc-avr.c (avr_parse_cons_expression): Replace iteration to
2959 sentinal with iteration to array size.
2960
d05584d3
TS
29612016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2962
2963 * config/xtensa-relax.h: Move typedefs of enums to the enums
2964 definition.
2965
5e429f4c
TS
29662016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2967
2968 * config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
2969 macro.
2970
315f180f
GM
29712016-06-01 Graham Markall <graham.markall@embecosm.com>
2972
2973 * testsuite/gas/arc/nps-400-1.s: Add rflt variants with
2974 operands of types a,b,u6, 0,b,u6, and 0,b,limm.
2975 * testsuite/gas/arc/nps-400-1.d: Likewise.
2976
0cbd0046
L
29772016-05-29 H.J. Lu <hongjiu.lu@intel.com>
2978
2979 PR gas/20145
2980 * config/tc-i386.c (cpu_noarch): Add noavx512f, noavx512cd,
2981 noavx512er, noavx512pf, noavx512dq, noavx512bw, noavx512vl,
2982 noavx512ifma and noavx512vbmi.
2983 * doc/c-i386.texi: Mention noavx512f, noavx512cd, noavx512er,
2984 noavx512pf, noavx512dq, noavx512bw, noavx512vl, noavx512ifma
2985 and noavx512vbmi.
2986 * testsuite/gas/i386/i386.exp: Run noavx512-1 and noavx512-2.
2987 * testsuite/gas/i386/noavx512-1.l: New file.
2988 * testsuite/gas/i386/noavx512-1.s: Likewise.
2989 * testsuite/gas/i386/noavx512-2.l: Likewise.
2990 * testsuite/gas/i386/noavx512-2.s: Likewise.
2991
1848e567
L
29922016-05-27 H.J. Lu <hongjiu.lu@intel.com>
2993
2994 PR gas/20145
2995 * config/tc-i386.c (cpu_arch): Add 687.
2996 (cpu_noarch): Add no287, no387, no687, nosse2, nosse3, nossse3,
2997 nosse4.1, nosse4.2, nosse4 and noavx2.
2998 (parse_real_register): Check cpuregmmx instead of cpummx for MMX
2999 register. Check cpuregxmm instead of cpusse for XMM register.
3000 Check cpuregymm instead of cpuavx for YMM register. Check
3001 cpuregzmm/cpuregmask instead of cpuavx512f for ZMMM/mask register.
3002 * doc/c-i386.texi: Mention 687, no287, no387, no687, nosse2,
3003 nosse3, nossse3, nosse4.1, nosse4.2, nosse4 and noavx2.
3004 * testsuite/gas/i386/arch-10-prefetchw.d (as): Add mmx.
3005 * testsuite/gas/i386/arch-10.d (as): Likewise.
3006 * testsuite/gas/i386/arch-11.s: Add ".arch .mmx".
3007 * testsuite/gas/i386/i386.exp: Pass mmx to assembler for
3008 arch-10-3 and arch-10-4. Run no87-3, nosse-4, nosse-5, noavx-3
3009 and noavx-4.
3010 * testsuite/gas/i386/no87-3.l: New file.
3011 * testsuite/gas/i386/no87-3.s: Likewise.
3012 * testsuite/gas/i386/noavx-3.l: Likewise.
3013 * testsuite/gas/i386/noavx-3.s: Likewise.
3014 * testsuite/gas/i386/noavx-4.d: Likewise.
3015 * testsuite/gas/i386/noavx-4.s: Likewise.
3016 * testsuite/gas/i386/nosse-4.l: Likewise.
3017 * testsuite/gas/i386/nosse-4.s: Likewise.
3018 * testsuite/gas/i386/nosse-5.d: Likewise.
3019 * testsuite/gas/i386/nosse-5.s: Likewise.
3020
e92bae62
L
30212016-05-27 H.J. Lu <hongjiu.lu@intel.com>
3022
3023 PR gas/20154
3024 * config/tc-i386.c (cpu_flags_match): Don't set cpuamd64 nor
3025 cpuintel64.
3026 (match_template): Check Intel64/AMD64 ISA.
3027
e89c5eaa
L
30282016-05-27 H.J. Lu <hongjiu.lu@intel.com>
3029
3030 PR gas/20154
3031 * config/tc-i386.c (intel64): New.
3032 (cpu_flags_match): Set cpuamd64 and cpuintel64.
3033 (md_parse_option): Set intel64 instead of cpuamd64 and
3034 cpuintel64.
3035
9d07ebe1
L
30362016-05-27 H.J. Lu <hongjiu.lu@intel.com>
3037
3038 * config/tc-i386.c (cpu_flags_match): Don't clear cpu64 nor
3039 cpuno64.
3040
19dfcc89
PB
30412016-05-26 Peter Bergner <bergner@vnet.ibm.com>
3042
3043 * testsuite/gas/ppc/altivec3.d <vmsumudm>: Add test.
3044 * testsuite/gas/ppc/altivec3.s: Likewise.
3045 * testsuite/gas/ppc/power9.d <addex[.], lwzmx, vmsumudm>: Add tests.
3046 * testsuite/gas/ppc/power9.s: Likewise.
3047
8d5b9a5a
L
30482016-05-26 H.J. Lu <hongjiu.lu@intel.com>
3049
3050 * testsuite/gas/i386/avx512vl-2.l: Append "#pass".
3051 * testsuite/gas/i386/noavx-1.l: Likewise.
3052 * testsuite/gas/i386/nommx-1.l: Likewise.
3053 * testsuite/gas/i386/nosse-1.l: Likewise.
3054 * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
3055 * testsuite/gas/i386/avx512vl-2.s: Append ".p2align 4".
3056 * testsuite/gas/i386/noavx-1.s: Likewise.
3057 * testsuite/gas/i386/nommx-1.s: Likewise.
3058 * testsuite/gas/i386/nosse-1.s: Likewise.
3059 * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
3060
81cead6f
TS
30612016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3062
3063 * config/tc-metag.c (metag_handle_align): Make the type of noop
3064 unsigned char.
3065
79052aae
TS
30662016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3067
3068 * config/tc-rx.c (md_convert_frag): Make the type of reloc_type
3069 bfd_reloc_code_real_type.
3070
73b090a9
L
30712016-05-25 H.J. Lu <hongjiu.lu@intel.com>
3072
3073 PR gas/20140
3074 * config/tc-i386.c (cpu_flags_match): Require another match
3075 for AVX512VL.
3076 * testsuite/gas/i386/i386.exp: Run avx512vl-1, avx512vl-2,
3077 x86-64-avx512vl-1 and x86-64-avx512vl-2.
3078 * testsuite/gas/i386/avx512vl-1.l: New file.
3079 * testsuite/gas/i386/avx512vl-1.s: Likewise.
3080 * testsuite/gas/i386/avx512vl-2.l: Likewise.
3081 * testsuite/gas/i386/avx512vl-2.s: Likewise.
3082 * testsuite/gas/i386/x86-64-avx512vl-1.l: Likewise.
3083 * testsuite/gas/i386/x86-64-avx512vl-1.s: Likewise.
3084 * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
3085 * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
3086
f1360d58
L
30872016-05-25 H.J. Lu <hongjiu.lu@intel.com>
3088
3089 PR gas/20141
3090 * testsuite/gas/i386/i386.exp: Run x86-64-pr20141.
3091 * testsuite/gas/i386/x86-64-pr20141.d: New file.
3092 * testsuite/gas/i386/x86-64-pr20141.s: Likewise.
3093
293f5f65
L
30942016-05-25 H.J. Lu <hongjiu.lu@intel.com>
3095
3096 * config/tc-i386.c (arch_entry): Remove negated.
3097 (noarch_entry): New struct.
3098 (cpu_arch): Updated. Remove .no87, .nommx, .nosse and .noavx.
3099 (cpu_noarch): New.
3100 (set_cpu_arch): Check cpu_noarch after cpu_arch.
3101 (md_parse_option): Allow -march=+nosse. Check cpu_noarch after
3102 cpu_arch.
3103 (output_message): New function.
3104 (show_arch): Use it. Handle cpu_noarch.
3105 * testsuite/gas/i386/i386.exp: Run nommx-1, nommx-2, nommx-3,
3106 nosse-1, nosse-2, nosse-3, noavx-1 and noavx-2.
3107 * testsuite/gas/i386/noavx-1.l: New file.
3108 * testsuite/gas/i386/noavx-1.s: Likewise.
3109 * testsuite/gas/i386/noavx-2.s: Likewise.
3110 * testsuite/gas/i386/noavx-2.l: Likewise.
3111 * testsuite/gas/i386/nommx-1.s: Likewise.
3112 * testsuite/gas/i386/nommx-1.l: Likewise.
3113 * testsuite/gas/i386/nommx-2.s: Likewise.
3114 * testsuite/gas/i386/nommx-2.l: Likewise.
3115 * testsuite/gas/i386/nommx-3.s: Likewise.
3116 * testsuite/gas/i386/nommx-3.l: Likewise.
3117 * testsuite/gas/i386/nosse-1.s: Likewise.
3118 * testsuite/gas/i386/nosse-1.l: Likewise.
3119 * testsuite/gas/i386/nosse-2.s: Likewise.
3120 * testsuite/gas/i386/nosse-2.l: Likewise.
3121 * testsuite/gas/i386/nosse-3.s: Likewise.
3122 * testsuite/gas/i386/nosse-3.l: Likewise.
3123
934c2632
CZL
31242016-05-25 Chua Zheng Leong <chuazl@comp.nus.edu.sg>
3125
ee4d7613 3126 PR target/20067
934c2632
CZL
3127 * config/tc-arm.c (move_or_literal_pool): Only generate a VMOV.I64
3128 instruction if supported by the currently selected fpu variant.
3129 * testsuite/gas/arm/vfpv3-ldr_immediate.s: Add test of this PR.
3130 * testsuite/gas/arm/vfpv3-ldr_immediate.d: Update expected disassembly.
3131
44d3da23 31322016-05-24 Maciej W. Rozycki <macro@imgtec.com>
934c2632 3133
44d3da23
MR
3134 * config/tc-mips.c (mips_fix_adjustable): Also return 0 for
3135 jump relocations against MIPS16 or microMIPS symbols on RELA
3136 targets.
3137 * testsuite/gas/mips/jalx-local.d: New test.
3138 * testsuite/gas/mips/jalx-local-n32.d: New test.
3139 * testsuite/gas/mips/jalx-local-n64.d: New test.
3140 * testsuite/gas/mips/jalx-local.s: New test source.
3141 * testsuite/gas/mips/mips.exp: Run the new tests.
3142
4512dafa
MR
31432016-05-24 Maciej W. Rozycki <macro@imgtec.com>
3144
3145 * config/tc-mips.c (md_apply_fix)
3146 <BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust
3147 code accordingly.
3148
cc34adb2
TS
31492016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3150
3151 * config/tc-xtensa.c (struct suffix_reloc_map): Change type of field
3152 operator to operatorT.
3153 (map_suffix_reloc_to_operator): Change return type to operatorT.
3154
c023823f
TS
31552016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3156
3157 * config/tc-d30v.c (find_format): Change type of X_op to operatorT.
3158
049efc64
TS
31592016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3160
3161 * config/tc-mmix.c (mmix_parse_predefined_name): Change type of
3162 handler_charp to const char *.
3163
b19e0aeb
TS
31642016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3165
3166 * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
3167 (ft32_target_format): Likewise.
3168 (TARGET_FORMAT): Adjust.
3169
e5e27b07
TS
31702016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3171
3172 * config/tc-ia64.c (dot_rot): simplify allocations from obstacks.
3173 (ia64_frob_label): Likewise.
3174
6610dc6d
TS
31752016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3176
3177 * config/tc-cr16.c (check_range): Make type of retval op_err.
3178 * config/tc-crx.c: Likewise.
3179
87789e08
CZ
31802016-05-23 Claudiu Zissulescu <claziss@synopsys.com>
3181
3182 * config/tc-arc.c (md_begin): Add XY registers.
3183 (cpu_types): Code density is default off for ARC EM.
3184
c810e0b8
CZ
31852016-05-23 Cupertino Miranda <cmiranda@synopsys.com>
3186
3187 * config/tc-arc.c (attributes_t): Renamed attribute class to
3188 attr_class.
3189 (find_opcode_match, assemble_insn, tokenize_extinsn): Changed.
3190
d26a14db
NC
31912016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
3192
3193 * configuse.tgt: Add entry for arm-phoenix.
3194
f10e0aef
TS
31952016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3196
3197 * config/tc-tic54x.c (tic54x_sect): simplify string creation.
3198
2900e701
TS
31992016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3200
3201 * config/tc-spu.c (APUOP): Use OPCODE as an unsigned constant.
3202
3d207518
TS
32032016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3204
3205 * config/tc-tic54x.c (tic54x_mmregs): Adjust.
3206 (md_begin): Likewise.
3207 (encode_condition): Likewise.
3208 (encode_cc3): Likewise.
3209 (encode_cc2): Likewise.
3210 (encode_operand): Likewise.
3211 (tic54x_undefined_symbol): Likewise.
3212
a4968f42
MF
32132016-05-20 Matthew Fortune <matthew.fortune@imgtec.com>
3214
3215 * config/tc-mips.c (mips_cpu_info_table): Update comment. Add
3216 p6600 entry.
3217 * doc/c-mips.texi: Document p6600 -march option.
3218
4e21640f
L
32192016-05-20 H.J. Lu <hongjiu.lu@intel.com>
3220
3221 PR gas/19600
3222 * config/tc-i386.c (md_apply_fix): Preserve addend for
3223 BFD_RELOC_386_GOT32 and BFD_RELOC_X86_64_GOT32.
3224 * testsuite/gas/i386/addend.d: New file.
3225 * testsuite/gas/i386/addend.s: Likewise.
3226 * testsuite/gas/i386/x86-64-addend.d: Likewise.
3227 * testsuite/gas/i386/x86-64-addend.s: Likewise.
3228 * testsuite/gas/i386/i386.exp: Run addend and x86-64-addend.
3229 * testsuite/gas/i386/reloc32.d: Updated.
3230
17c6c9d9
MR
32312016-05-20 Maciej W. Rozycki <macro@imgtec.com>
3232
3233 * config/tc-mips.c (append_insn): Correct the encoding of a
3234 constant argument for microMIPS JALX.
3235 (tc_gen_reloc): Correct the encoding of an in-place addend for
3236 microMIPS JALX.
3237 * testsuite/gas/mips/jalx-addend.d: New test.
3238 * testsuite/gas/mips/jalx-addend-n32.d: New test.
3239 * testsuite/gas/mips/jalx-addend-n64.d: New test.
3240 * testsuite/gas/mips/jalx-imm.d: New test.
3241 * testsuite/gas/mips/jalx-imm-n32.d: New test.
3242 * testsuite/gas/mips/jalx-imm-n64.d: New test.
3243 * testsuite/gas/mips/jalx-addend.s: New test source.
3244 * testsuite/gas/mips/jalx-imm.s: New test source.
3245 * testsuite/gas/mips/mips.exp: Run the new tests.
3246
134c0c8b
MR
32472016-05-20 Maciej W. Rozycki <macro@imgtec.com>
3248
3249 * config/tc-mips.c: Correct tab-after-space formatting mistakes
3250 throughout.
3251
38cd8a0d
AB
32522016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * config/tc-arc.c (find_opcode_match): Remove casting away of
3255 const.
3256 * config/tc-arc.h (struct arc_flags): Make flgp field const.
3257
9e32d9ae
AB
32582016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3259
3260 * config/tc-arc.c (md_pcrel_from_section): Use BFD_VMA_FMT where
3261 appropriate.
3262 (md_convert_frag): Likewise.
3263
fe779266
AB
32642016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3265
3266 * config/tc-arc.c (arc_opcode_hash_entry_iterator_next): Set
3267 cached opcode to NULL when we reach a non-matching opcode.
3268 * testsuite/gas/arc/asm-errors-2.d: New file.
3269 * testsuite/gas/arc/asm-errors-2.err: New file.
3270 * testsuite/gas/arc/asm-errors-2.s: New file.
3271
3b889a78
AB
32722016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3273
3274 * config/tc-arc.c (tokenize_arguments): Add checks for array
3275 overflow.
3276 * testsuite/gas/arc/asm-errors.s: Addition test line added.
3277 * testsuite/gas/arc/asm-errors.err: Update expected results.
3278
42e58860
TS
32792016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3280
3281 * config/tc-rx.c (struct cpu_type): Change the type of a field from
3282 int to enum rx_cpu_types.
3283
4bfaa1ca
TS
32842016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3285
3286 * config/tc-dlx.c (struct machine_it): change the type of a field from
3287 int to bfd_reloc_code_real_type.
3288 * config/tc-tic4x.c: Likewise.
3289
eb408eaa
TS
32902016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3291
3292 * config/tc-v850.c (v850_target_arch): change type to enum
3293 bfd_architecture.
3294 * config/tc-v850.h (v850_target_arch): Likewise.
3295
a255f00a
AM
32962016-05-18 Alan Modra <amodra@gmail.com>
3297
3298 * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
3299 allowed negative range.
3300 * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
3301 * testsuite/gas/ppc/power9.d: Update.
3302
659f032c
TP
33032016-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
3304
3305 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
3306 disassembling and stop skipping targets.
3307 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3308 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
3309 * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
3310 instruction for targets that have stronger alignment requirement.
3311 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
3312 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3313 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3314 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3315 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3316 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3317 * testsuite/gas/arm/archv8m-main.d: Likewise.
3318 * testsuite/gas/arm/archv8m.s: Add label.
3319 * testsuite/gas/arm/archv8m-cmse.s: Likewise.
3320 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
3321 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
3322
7b14583e
TS
33232016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3324
3325 * config/tc-m32r.c (mach_table): Make static and const.
3326
0591130a
TS
33272016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3328
3329 * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
3330 definition.
3331
9117cd3e
TS
33322016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3333
3334 * config/tc-mn10300.c (md_begin): set linkrelax here instead of
3335 defining it.
3336 * config/tc-msp430.c (md_begin): Likewise.
3337
e1838240
TS
33382016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3339
3340 * config/tc-m68hc11.c (fixup8): Change variables type from int to
3341 bfd_reloc_code_real_type where appropriate.
3342 (fixup16): Likewise.
3343 (fixup8_xg): Likewise.
3344
9dfa3e63
MR
33452016-05-15 Maciej W. Rozycki <macro@imgtec.com>
3346
3347 * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
3348
1178da44
PB
33492016-05-13 Peter Bergner <bergner@vnet.ibm.com>
3350
3351 * testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
3352 * testsuite/gas/ppc/power9.s: Likewise.
3353
d2edc834
AM
33542016-05-13 Alan Modra <amodra@gmail.com>
3355
3356 * config/obj-coff.c (weak_uniquify): Delete unused var.
3357
add39d23
TS
33582016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3359
3360 * app.c (app_push): Use XNEW and related macros.
3361 * as.c (parse_args): Likewise.
3362 * cgen.c (make_right_shifted_expr): Likewise.
3363 (gas_cgen_tc_gen_reloc): Likewise.
3364 * config/bfin-defs.h: Likewise.
3365 * config/bfin-parse.y: Likewise.
3366 * config/obj-coff.c (stack_init): Likewise.
3367 (stack_push): Likewise.
3368 (coff_obj_symbol_new_hook): Likewise.
3369 (coff_obj_symbol_clone_hook): Likewise.
3370 (add_lineno): Likewise.
3371 (coff_frob_symbol): Likewise.
3372 * config/obj-elf.c (obj_elf_section_name): Likewise.
3373 (build_group_lists): Likewise.
3374 * config/obj-evax.c (evax_symbol_new_hook): Likewise.
3375 * config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
3376 * config/tc-aarch64.c (insert_reg_alias): Likewise.
3377 (find_or_make_literal_pool): Likewise.
3378 (add_to_lit_pool): Likewise.
3379 (fill_instruction_hash_table): Likewise.
3380 * config/tc-alpha.c (load_expression): Likewise.
3381 (emit_jsrjmp): Likewise.
3382 (s_alpha_ent): Likewise.
3383 (s_alpha_end): Likewise.
3384 (s_alpha_linkage): Likewise.
3385 (md_begin): Likewise.
3386 (tc_gen_reloc): Likewise.
3387 * config/tc-arc.c (arc_insert_opcode): Likewise.
3388 (arc_extcorereg): Likewise.
3389 * config/tc-bfin.c: Likewise.
3390 * config/tc-cr16.c: Likewise.
3391 * config/tc-cris.c: Likewise.
3392 * config/tc-crx.c (preprocess_reglist): Likewise.
3393 * config/tc-d10v.c: Likewise.
3394 * config/tc-frv.c (frv_insert_vliw_insn): Likewise.
3395 (frv_tomcat_shuffle): Likewise.
3396 * config/tc-h8300.c: Likewise.
3397 * config/tc-i370.c (i370_macro): Likewise.
3398 * config/tc-i386.c (lex_got): Likewise.
3399 (md_parse_option): Likewise.
3400 * config/tc-ia64.c (alloc_record): Likewise.
3401 (set_imask): Likewise.
3402 (save_prologue_count): Likewise.
3403 (dot_proc): Likewise.
3404 (dot_endp): Likewise.
3405 (ia64_frob_label): Likewise.
3406 (add_qp_imply): Likewise.
3407 (add_qp_mutex): Likewise.
3408 (mark_resource): Likewise.
3409 (dot_alias): Likewise.
3410 * config/tc-m68hc11.c: Likewise.
3411 * config/tc-m68k.c (m68k_frob_label): Likewise.
3412 (s_save): Likewise.
3413 (mri_control_label): Likewise.
3414 (push_mri_control): Likewise.
3415 (build_mri_control_operand): Likewise.
3416 (s_mri_else): Likewise.
3417 (s_mri_break): Likewise.
3418 (s_mri_next): Likewise.
3419 (s_mri_for): Likewise.
3420 (s_mri_endw): Likewise.
3421 * config/tc-metag.c (create_mnemonic_htab): Likewise.
3422 * config/tc-microblaze.c: Likewise.
3423 * config/tc-mmix.c (s_loc): Likewise.
3424 * config/tc-nds32.c (nds32_relax_hint): Likewise.
3425 * config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
3426 * config/tc-rl78.c: Likewise.
3427 * config/tc-rx.c (rx_include): Likewise.
3428 * config/tc-sh.c: Likewise.
3429 * config/tc-sh64.c (shmedia_frob_section_type): Likewise.
3430 * config/tc-sparc.c: Likewise.
3431 * config/tc-spu.c: Likewise.
3432 * config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
3433 (tic6x_start_unwind_section): Likewise.
3434 * config/tc-tilegx.c: Likewise.
3435 * config/tc-tilepro.c: Likewise.
3436 * config/tc-v850.c: Likewise.
3437 * config/tc-visium.c: Likewise.
3438 * config/tc-xgate.c: Likewise.
3439 * config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
3440 (new_resource_table): Likewise.
3441 (resize_resource_table): Likewise.
3442 (xtensa_create_trampoline_frag): Likewise.
3443 (xtensa_maybe_create_literal_pool_frag): Likewise.
3444 (cache_literal_section): Likewise.
3445 * config/xtensa-relax.c (append_transition): Likewise.
3446 (append_condition): Likewise.
3447 (append_value_condition): Likewise.
3448 (append_constant_value_condition): Likewise.
3449 (append_literal_op): Likewise.
3450 (append_label_op): Likewise.
3451 (append_constant_op): Likewise.
3452 (append_field_op): Likewise.
3453 (append_user_fn_field_op): Likewise.
3454 (enter_opname_n): Likewise.
3455 (enter_opname): Likewise.
3456 (split_string): Likewise.
3457 (parse_insn_templ): Likewise.
3458 (clone_req_or_option_list): Likewise.
3459 (clone_req_option_list): Likewise.
3460 (parse_option_cond): Likewise.
3461 (parse_insn_pattern): Likewise.
3462 (parse_insn_repl): Likewise.
3463 (build_transition): Likewise.
3464 (build_transition_table): Likewise.
3465 * dw2gencfi.c (alloc_fde_entry): Likewise.
3466 (alloc_cfi_insn_data): Likewise.
3467 (cfi_add_CFA_remember_state): Likewise.
3468 (dot_cfi_escape): Likewise.
3469 (dot_cfi_fde_data): Likewise.
3470 (select_cie_for_fde): Likewise.
3471 * dwarf2dbg.c (dwarf2_directive_loc): Likewise.
3472 * ecoff.c (ecoff_add_bytes): Likewise.
3473 (ecoff_build_debug): Likewise.
3474 * input-scrub.c (input_scrub_push): Likewise.
3475 (input_scrub_begin): Likewise.
3476 (input_scrub_next_buffer): Likewise.
3477 * itbl-ops.c (append_insns_as_macros): Likewise.
3478 (alloc_entry): Likewise.
3479 (alloc_field): Likewise.
3480 * listing.c (listing_newline): Likewise.
3481 (listing_listing): Likewise.
3482 * macro.c (get_any_string): Likewise.
3483 (delete_macro): Likewise.
3484 * stabs.c (generate_asm_file): Likewise.
3485 (stabs_generate_asm_lineno): Likewise.
3486 * subsegs.c (subseg_change): Likewise.
3487 (subseg_get): Likewise.
3488 * symbols.c (define_dollar_label): Likewise.
3489 (symbol_relc_make_sym): Likewise.
3490 * write.c (write_relocs): Likewise.
3491
29a2809e
TS
34922016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3493
3494 * config/obj-coff.c (obj_coff_def): Simplify string copying.
3495 (weak_name2altname): Likewise.
3496 (weak_uniquify): Likewise.
3497 (obj_coff_section): Likewise.
3498 (obj_coff_init_stab_section): Likewise.
3499 * config/obj-elf.c (obj_elf_section_name): Likewise.
3500 (obj_elf_init_stab_section): Likewise.
3501 * config/obj-evax.c (evax_shorten_name): Likewise.
3502 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
3503 * config/tc-aarch64.c (create_register_alias): Likewise.
3504 * config/tc-alpha.c (load_expression): Likewise.
3505 (s_alpha_file): Likewise.
3506 (s_alpha_section_name): Likewise.
3507 (tc_gen_reloc): Likewise.
3508 * config/tc-arc.c (md_assemble): Likewise.
3509 * config/tc-arm.c (create_neon_reg_alias): Likewise.
3510 (start_unwind_section): Likewise.
3511 * config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
3512 (hppa_elf_mark_end_of_function): Likewise.
3513 * config/tc-nios2.c (nios2_modify_arg): Likewise.
3514 (nios2_negate_arg): Likewise.
3515 * config/tc-rx.c (rx_section): Likewise.
3516 * config/tc-sh64.c (sh64_consume_datalabel): Likewise.
3517 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
3518 * config/tc-tic54x.c (tic54x_include): Likewise.
3519 (tic54x_macro_info): Likewise.
3520 (subsym_get_arg): Likewise.
3521 (subsym_substitute): Likewise.
3522 (tic54x_start_line_hook): Likewise.
3523 * config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
3524 (xg_reverse_shift_count): Likewise.
3525 * config/xtensa-relax.c (enter_opname_n): Likewise.
3526 (split_string): Likewise.
3527 * dwarf2dbg.c (get_filenum): Likewise.
3528 (process_entries): Likewise.
3529 * expr.c (operand): Likewise.
3530 * itbl-ops.c (alloc_entry): Likewise.
3531 * listing.c (listing_message): Likewise.
3532 (listing_title): Likewise.
3533 * macro.c (check_macro): Likewise.
3534 * stabs.c (s_xstab): Likewise.
3535 * symbols.c (symbol_relc_make_expr): Likewise.
3536 * write.c (compress_debug): Likewise.
3537
58c7f094
NC
35382016-05-12 Nick Clifton <nickc@redhat.com>
3539
3540 PR target/20068
3541 * testsuite/gas/arm/pr20068.d: Use correct regexp syntax.
3542
d5e74e8d
NC
35432016-05-11 Nick Clifton <nickc@redhat.com>
3544
3545 PR target/20068
3546 * testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
3547 big endian ARM configurations.
3548
8f4f9071
MF
35492016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
3550 Matthew Fortune <matthew.fortune@imgtec.com>
3551
3552 * config/tc-mips.c (options): Add OPTION_DSPR3 and
3553 OPTION_NO_DSPR3.
3554 (md_longopts): Likewise.
3555 (md_show_usage): Add help for -mdspr3 and -mno-dspr3.
3556 (mips_ases): Define availability for DSPr3.
3557 (mips_ase_groups): Add ASE_DSPR3 to the DSP group.
3558 (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
3559 * doc/as.texinfo: Document -mdspr3, -mno-dspr3. Fix -mdspr2
3560 formatting.
3561 * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
3562 .set nodspr3. Fix -mdspr2 formatting.
3563 * testsuite/gas/mips/mips32-dspr3.d: New file.
3564 * testsuite/gas/mips/mips32-dspr3.s: Likewise.
3565 * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
3566
a6684f0d
NC
35672016-05-11 Nick Clifton <nickc@redhat.com>
3568
3569 PR target/20068
3570 * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
3571 to the pool uses O_constant.
3572 * testsuite/gas/arm/pr20068.s: New test.
3573 * testsuite/gas/arm/pr20068.d: Test driver.
3574
be5c445b
NC
35752016-05-11 Nick Clifton <nickc@redhat.com>
3576
4179a6a2
NC
3577 * testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
3578 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3579 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3580 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
3581 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3582 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3583 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3584 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3585 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
be5c445b
NC
3586
35872016-05-10 Alexander Fomin <alexander.fomin@intel.com>
3588
3589 * testsuite/gas/i386/i386.exp: Run RDPID tests.
3590 * testsuite/gas/i386/prefix.d: Adjust.
3591 * testsuite/gas/i386/rdpid.s: New test.
3592 * testsuite/gas/i386/rdpid.d: Ditto.
3593 * testsuite/gas/i386/rdpid-intel.d: Ditto.
3594 * testsuite/gas/i386/x86-64-rdpid.s: Ditto.
3595 * testsuite/gas/i386/x86-64-rdpid.d: Ditto.
3596 * testsuite/gas/i386/x86-64-rdpid-intel.d: Ditto.
3597
8bc52696
AF
35982016-05-10 Alexander Fomin <alexander.fomin@intel.com>
3599
3600 * config/tc-i386.c (cpu_arch): Add RDPID.
3601 * doc/c-i386.texi: Document RDPID.
3602
39d911fc
TP
36032016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3604
3605 * config/tc-arm.c (arm_adjust_symtab): Use ARM_SET_SYM_BRANCH_TYPE to
3606 set branch type of a symbol.
3607
15afaa63
TP
36082016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3609
3610 * NEWS: Document ARMv8-M and ARMv8-M Security and DSP Extensions.
3611 * config/tc-arm.c (arm_ext_dsp): New feature for Thumb DSP
3612 instructions.
3613 (arm_extensions): Add dsp extension for ARMv8-M Mainline.
3614 (aeabi_set_public_attributes): Memorize the feature bits of the
3615 architecture selected for Tag_CPU_arch. Use it to set
3616 Tag_DSP_extension to 1 for ARMv8-M Mainline with DSP extension.
3617 (arm_convert_symbolic_attribute): Define Tag_DSP_extension.
3618 * testsuite/gas/arm/arch7em-bad.d: Rename to ...
3619 * testsuite/gas/arm/arch7em-bad-1.d: This.
3620 * testsuite/gas/arm/arch7em-bad-2.d: New file.
3621 * testsuite/gas/arm/arch7em-bad-3.d: Likewise.
3622 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3623 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3624 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3625 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
3626 * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
3627 * testsuite/gas/arm/attr-march-armv8m.main.dsp.d: Likewise.
3628
d942732e
TP
36292016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3630
3631 * config/tc-arm.c (struct arm_option_extension_value_table): Make
3632 allowed_archs an array with 2 entries.
3633 (ARM_EXT_OPT): Adapt to only fill the first entry of allowed_archs.
3634 (ARM_EXT_OPT2): New macro filling the two entries of allowed_archs.
3635 (arm_extensions): Use separate entries in allowed_archs when several
3636 archs are allowed to use an extension and change ARCH_ANY in
3637 ARM_ARCH_NONE in allowed_archs.
3638 (arm_parse_extension): Check that, for each allowed_archs entry, all
3639 bits are set in the current architecture, ignoring ARM_ANY entries.
3640 (s_arm_arch_extension): Likewise.
3641
16a1fa25
TP
36422016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3643
3644 * config/tc-arm.c (arm_ext_m): Add feature bit ARM_EXT2_V8M_MAIN.
3645 (arm_ext_v8m_main): New feature set for bit ARM_EXT2_V8M_MAIN.
3646 (arm_ext_v8m_m_only): New feature set for instructions in ARMv8-M not
3647 shared with a non M profile architecture.
3648 (do_rn): New function.
3649 (known_t32_only_insn): Check opcode against arm_ext_v8m_m_only rather
3650 than arm_ext_v8m.
3651 (v7m_psrs): Add ARMv8-M security extensions new special registers.
3652 (insns): Add ARMv8-M Security Extensions instructions.
3653 (aeabi_set_public_attributes): Use arm_ext_v8m_m_only instead of
3654 arm_ext_v8m_m to decide the profile and the Thumb ISA.
3655 * testsuite/gas/arm/archv8m-cmse.s: New file.
3656 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise..
3657 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
3658 * testsuite/gas/arm/any-cmse.d: Likewise.
3659 * testsuite/gas/arm/any-cmse-main.d: Likewise.
3660 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
3661 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
3662 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3663 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3664 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3665
d751b79e
JM
36662016-05-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3667
3668 * testsuite/gas/sparc/sparc5vis4.s: Fix mnemonic of faligndatai.
3669 * testsuite/gas/sparc/sparc5vis4.d: Likewise.
3670
f85d59c3
KT
36712016-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3672
3673 * config/tc-arm.c (fpu_arch_vfp_v1): Mark with ATTRIBUTE_UNUSED.
3674 (fpu_arch_vfp_v3): Likewise.
3675 (fpu_arch_neon_v1): Likewise.
3676 (arm_arch_full): Likewise.
3677 (parse_neon_el_struct_list): Initialize fields of firsttype.
3678
945e0f82
CZ
36792016-05-03 Claudiu Zissulescu <claziss@synopsys.com>
3680
3681 * config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
3682 (arc_extinsn): Handle new introduced syntax.
3683 * testsuite/gas/arc/textinsn1op.d: New file.
3684 * testsuite/gas/arc/textinsn1op.s: Likewise.
3685 * doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
3686
b782c63d
PS
36872016-05-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3688
3689 * testsuite/gas/lns/lns.exp: Add avr to list of targets using
3690 DW_LNS_fixed_advance_pc.
3691
25771140
AM
36922016-04-27 Alan Modra <amodra@gmail.com>
3693
3694 * as.h (inline, __PTR_TO_INT, __INT_TO_PTR): Don't define.
3695 (xmemdup0): New inline function.
3696
22522f88
MR
36972016-04-22 Maciej W. Rozycki <macro@imgtec.com>
3698
3699 * config/tc-mips.c (code_option_type): New enum.
3700 (parse_code_option): Return status indicating option type.
3701 (s_mipsset): Update `parse_code_option' call site accordingly.
3702 Always set register sizes from the ISA with ISA overrides.
3703 (s_module): Update `parse_code_option' call site.
3704 * testsuite/gas/mips/isa-override-1.d: New test.
3705 * testsuite/gas/mips/micromips@isa-override-1.d: New test.
3706 * testsuite/gas/mips/mips1@isa-override-1.d: New test.
3707 * testsuite/gas/mips/mips2@isa-override-1.d: New test.
3708 * testsuite/gas/mips/mips32@isa-override-1.d: New test.
3709 * testsuite/gas/mips/mips32r2@isa-override-1.d: New test.
3710 * testsuite/gas/mips/mips32r3@isa-override-1.d: New test.
3711 * testsuite/gas/mips/mips32r5@isa-override-1.d: New test.
3712 * testsuite/gas/mips/mips32r6@isa-override-1.d: New test.
3713 * testsuite/gas/mips/mips64r2@isa-override-1.d: New test.
3714 * testsuite/gas/mips/mips64r3@isa-override-1.d: New test.
3715 * testsuite/gas/mips/mips64r5@isa-override-1.d: New test.
3716 * testsuite/gas/mips/mips64r6@isa-override-1.d: New test.
3717 * testsuite/gas/mips/r3000@isa-override-1.d: New test.
3718 * testsuite/gas/mips/r3900@isa-override-1.d: New test.
3719 * testsuite/gas/mips/r5900@isa-override-1.d: New test.
3720 * testsuite/gas/mips/octeon@isa-override-1.d: New test.
3721 * testsuite/gas/mips/octeon3@isa-override-1.d: New test.
3722 * testsuite/gas/mips/isa-override-2.l: New list test.
3723 * testsuite/gas/mips/mips1@isa-override-2.l: New list test.
3724 * testsuite/gas/mips/mips2@isa-override-2.l: New list test.
3725 * testsuite/gas/mips/mips32@isa-override-2.l: New list test.
3726 * testsuite/gas/mips/mips32r2@isa-override-2.l: New list test.
3727 * testsuite/gas/mips/mips32r3@isa-override-2.l: New list test.
3728 * testsuite/gas/mips/mips32r5@isa-override-2.l: New list test.
3729 * testsuite/gas/mips/mips32r6@isa-override-2.l: New list test.
3730 * testsuite/gas/mips/r3000@isa-override-2.l: New list test.
3731 * testsuite/gas/mips/r3900@isa-override-2.l: New list test.
3732 * testsuite/gas/mips/octeon3@isa-override-2.l: New list test.
3733 * testsuite/gas/mips/octeon3@isa-override-1.l: New stderr
3734 output.
3735 * testsuite/gas/mips/isa-override-1.s: New test source.
3736 * testsuite/gas/mips/r5900@isa-override-1.s: New test source.
3737 * testsuite/gas/mips/isa-override-2.s: New test source.
3738 * testsuite/gas/mips/mips1@isa-override-2.s: New test source.
3739 * testsuite/gas/mips/mips2@isa-override-2.s: New test source.
3740 * testsuite/gas/mips/mips32@isa-override-2.s: New test source.
3741 * testsuite/gas/mips/mips32r2@isa-override-2.s: New test source.
3742 * testsuite/gas/mips/mips32r3@isa-override-2.s: New test source.
3743 * testsuite/gas/mips/mips32r5@isa-override-2.s: New test source.
3744 * testsuite/gas/mips/mips32r6@isa-override-2.s: New test source.
3745 * testsuite/gas/mips/r3000@isa-override-2.s: New test source.
3746 * testsuite/gas/mips/r3900@isa-override-2.s: New test source.
3747 * testsuite/gas/mips/octeon3@isa-override-2.s: New test source.
3748 * testsuite/gas/mips/mips.exp: Run the new tests.
3749
e6c7cdec
TS
37502016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3751
3752 * cgen.c: Likewise.
3753 * config/tc-bfin.c: Likewise.
3754 * config/tc-ia64.c: Likewise.
3755 * config/tc-mep.c: Likewise.
3756 * config/tc-metag.c: Likewise.
3757 * config/tc-nios2.c: Likewise.
3758 * config/tc-rl78.c: Likewise.
3759
2533af11
AB
37602016-04-20 Andrew Burgess <andrew.burgess@embecosm.com>
3761
3762 * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
3763 -mcpu. Add cross reference to .cpu directive from -mcpu option.
3764 (ARC Directives): Add NPS400 to .cpu directive list.
3765
50cc854c
MW
37662016-04-20 Matthew Wahab <matthew.wahab@arm.com>
3767
3768 * config/tc-aarch64.c (aarch64_features): Add "ras".
3769 * doc/c-aarch64.texi (AArch64 Extensions): Add "ras".
3770 * testsuite/gas/aarch64/armv8-ras-1.d: New.
3771 * testsuite/gas/aarch64/armv8-ras-1.s: New.
3772 * testsuite/gas/aarch64/illegal-ras-1.d: New.
3773 * testsuite/gas/aarch64/illegal-ras-1.s: New.
3774
537aefaf
AB
37752016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
3776
3777 * testsuite/gas/arc/nps400-6.d: New file.
3778 * testsuite/gas/arc/nps400-6.s: New file.
3779
c8f785f2
AB
37802016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * testsuite/gas/arc/nps400-4.d: New file.
3783 * testsuite/gas/arc/nps400-4.s: New file.
3784 * testsuite/gas/arc/nps400-5.d: New file.
3785 * testsuite/gas/arc/nps400-5.s: New file.
3786
48eac74c
MG
37872016-04-19 Martin Galvan <martin.galvan@tallertechnologies.com>
3788
3789 * doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
3790 documentation.
3791
644aca26
AB
37922016-04-17 Andrew Burgess <andrew.burgess@embecosm.com>
3793
3794 Revert prevous change.
3795 * config/tc-arc.c (arc_option): Make .cpu directive
3796 case-sensitive again.
3797
9a452709
AB
37982016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
3799
3800 * config/tc-arc.c (arc_option): Make .cpu directive
3801 case-insensitive.
3802
5e001f26
AB
38032016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
3806
92fce9bd
TS
38072016-04-15 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3808
3809 * config/tc-mips.c (md_begin): Remove useless assignment.
3810
6fd8e7c2
L
38112016-04-15 H.J. Lu <hongjiu.lu@intel.com>
3812
3813 * Makefile.in: Regenerated with automake 1.11.6.
3814 * aclocal.m4: Likewise.
3815 * doc/Makefile.in: Likewise.
3816
05f7541e
AM
38172016-04-15 Alan Modra <amodra@gmail.com>
3818
3819 * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
3820
4f2a7b51
TS
38212016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3822
3823 * config/tc-nios2.c (nios2_as_options): Make file static.
3824 * config/tc-ppc.c (toc_reloc_ypes): Likewise.
3825 * config/tc-sparc.c (native_op_table): Likewise.
3826
85e53f62
TS
38272016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3828
3829 * config/tc-m32c.c (M32C_Macros): Remove.
3830 * config/tc-msp430.c (option_numbers): Likewise.
3831
4b0c052e
AB
38322016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * testsuite/gas/arc/nps400-3.d: New file.
3835 * testsuite/gas/arc/nps400-3.s: New file.
3836
d105775e
AB
38372016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * testsuite/gas/arc/add_s-err.s: Update target pattern.
3840 * testsuite/gas/arc/warn.s: Likewise.
3841 * testsuite/gas/elf/elf.exp: Run test for arc.
3842
84865015
NC
38432016-04-14 Nick Clifton <nickc@redhat.com>
3844
3845 PR target/19938
3846 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Allow for the string
3847 sections possibly having the SHF_STRINGS flag bit set.
3848 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
3849
1adc8a9a
CZ
38502016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3851
3852 * config/tc-arc.c (mach_type_specified_p): Change type to
3853 bfd_boolean.
3854 (arc_option): Set private flags when parsing cpu pseudo-op.
3855 (md_parse_option): Set mach_type_specified_p to TRUE.
3856
e4449be8
NC
38572016-04-13 Nick Clifton <nickc@redhat.com>
3858
3859 PR target/19937
3860 * testsuite/gas/v850/pr19937.s: New test.
3861 * testsuite/gas/v850/pr19937.d: New test control file.
3862 * testsuite/gas/v850/basic.exp: Run the new test.
3863
991f40a9
MR
38642016-04-13 Maciej W. Rozycki <macro@imgtec.com>
3865 Andrew Bennett <andrew.bennett@imgtec.com>
3866
3867 * config/tc-mips.c (relaxed_branch_length): Use the long
3868 sequence where the target is a weak symbol.
3869 (relaxed_micromips_32bit_branch_length): Likewise.
3870 (relaxed_micromips_16bit_branch_length): Likewise.
3871 * testsuite/gas/mips/branch-weak-1.d: New test.
3872 * testsuite/gas/mips/branch-weak-2.d: New test.
3873 * testsuite/gas/mips/branch-weak-3.d: New test.
3874 * testsuite/gas/mips/branch-weak-4.d: New test.
3875 * testsuite/gas/mips/branch-weak-5.d: New test.
3876 * testsuite/gas/mips/branch-weak.l: New stderr output.
3877 * testsuite/gas/mips/branch-weak.s: New test source.
3878 * testsuite/gas/mips/mips.exp: Run the new tests.
3879
c1f61bd2
MR
38802016-04-13 Maciej W. Rozycki <macro@imgtec.com>
3881
3882 * config/tc-mips.c (relaxed_branch_length): Use the long
3883 sequence where the distance cannot be determined.
3884 (relaxed_micromips_32bit_branch_length): Likewise.
3885 * testsuite/gas/mips/branch-extern-1.d: New test.
3886 * testsuite/gas/mips/branch-extern-2.d: New test.
3887 * testsuite/gas/mips/branch-extern-3.d: New test.
3888 * testsuite/gas/mips/branch-extern-4.d: New test.
3889 * testsuite/gas/mips/branch-extern.l: New stderr output.
3890 * testsuite/gas/mips/branch-extern.s: New test source.
3891 * testsuite/gas/mips/branch-section-1.d: New test.
3892 * testsuite/gas/mips/branch-section-2.d: New test.
3893 * testsuite/gas/mips/branch-section-3.d: New test.
3894 * testsuite/gas/mips/branch-section-4.d: New test.
3895 * testsuite/gas/mips/branch-section.l: New stderr output.
3896 * testsuite/gas/mips/branch-section.s: New test source.
3897 * testsuite/gas/mips/mips.exp: Run the new tests.
3898
f36e33da
CZ
38992016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3900
3901 * testsuite/gas/arc/textauxregister.d: New file.
3902 * testsuite/gas/arc/textauxregister.s: Likewise.
3903 * testsuite/gas/arc/textcondcode.d: Likewise.
3904 * testsuite/gas/arc/textcondcode.s: Likewise.
3905 * testsuite/gas/arc/textcoreregister.d: Likewise.
3906 * testsuite/gas/arc/textcoreregister.s: Likewise.
3907 * testsuite/gas/arc/textpseudoop.d: Likewise.
3908 * testsuite/gas/arc/textpseudoop.s: Likewise.
3909 * testsuite/gas/arc/ld2.d: Update test.
3910 * testsuite/gas/arc/st.d: Likewise.
3911 * testsuite/gas/arc/taux.d: Likewise.
3912 * doc/c-arc.texi (ARC Directives): Add .extCondCode,
3913 .extCoreRegister and .extAuxRegister documentation.
3914 * config/tc-arc.c (arc_extcorereg): New function.
3915 (md_pseudo_table): Add .extCondCode, .extCoreRegister and
3916 .extAuxRegister pseudo-ops.
3917 (extRegister_t): New type.
3918 (ext_condcode, arc_aux_hash): New global variable.
3919 (find_opcode_match): Check for extensions.
3920 (preprocess_operands): Likewise.
3921 (md_begin): Add aux registers in a hash.
3922 (assemble_insn): Update use arc_flags member.
3923 (tokenize_extregister): New function.
3924 (create_extcore_section): Likewise.
3925 * config/tc-arc.h (arc_flags): Delete code, add flgp.
3926
1c2e355e
CZ
39272016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3928
3929 * testsuite/gas/arc/noargs_a7.d: New file.
3930 * testsuite/gas/arc/noargs_a7.s: Likewise.
3931 * testsuite/gas/arc/noargs_hs.d: Likewise.
3932 * testsuite/gas/arc/noargs_hs.s: Likewise.
3933
b99747ae
CZ
39342016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3935
3936 * testsuite/gas/arc/textinsn-errors.d: New File.
3937 * testsuite/gas/arc/textinsn-errors.err: Likewise.
3938 * testsuite/gas/arc/textinsn-errors.s: Likewise.
3939 * testsuite/gas/arc/textinsn2op.d: Likewise.
3940 * testsuite/gas/arc/textinsn2op.s: Likewise.
3941 * testsuite/gas/arc/textinsn2op01.d: Likewise.
3942 * testsuite/gas/arc/textinsn2op01.s: Likewise.
3943 * testsuite/gas/arc/textinsn3op.d: Likewise.
3944 * testsuite/gas/arc/textinsn3op.s: Likewise.
3945 * doc/c-arc.texi (ARC Directives): Add .extInstruction
3946 documentation.
3947 * config/tc-arc.c (arcext_section): New variable.
3948 (arc_extinsn): New function.
3949 (md_pseudo_table): Add .extInstruction pseudo op.
3950 (attributes_t): New type.
3951 (suffixclass, syntaxclass, syntaxclassmod): New constant
3952 structures.
3953 (find_opcode_match): Remove arc_num_opcodes.
3954 (md_begin): Likewise.
3955 (tokenize_extinsn): New function.
3956 (arc_set_ext_seg): Likewise.
3957 (create_extinst_section): Likewise.
3958
37ab9779
CZ
39592016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
3960
3961 * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
3962 (arc_adjust_symtab): New function.
3963 * config/tc-arc.h (ARC_FLAG_AUX): Define.
3964 (obj_adjust_symtab): Likewise.
3965 * testsuite/gas/arc/taux.d: New file.
3966 * testsuite/gas/arc/taux.s: Likewise.
3967
41a1578e
MR
39682016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3969
3970 * config/tc-mips.c (s_option): Sanitize `.option picX'
3971 pseudo-op.
3972 * testsuite/gas/mips/option-pic-1.d: New test.
3973 * testsuite/gas/mips/option-pic-2.l: New list test.
3974 * testsuite/gas/mips/option-pic-1.s: New test source.
3975 * testsuite/gas/mips/option-pic-2.s: New test source.
3976 * testsuite/gas/mips/mips.exp: Run the new tests.
3977
668c5ebc
MR
39782016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3979
3980 * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
3981 PIC.
3982 * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
3983 * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
3984 * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
3985 * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
3986 * testsuite/gas/mips/mips.exp: Run the new tests.
3987
41065f5e
MR
39882016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3989
3990 * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
3991
08918cc8
MR
39922016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3993
3994 * messages.c (as_bad): Fix a typo in description.
3995
1357373c
MR
39962016-04-09 Maciej W. Rozycki <macro@imgtec.com>
3997
3998 * config/tc-mips.c (mips_check_options): Unify messages.
3999
5f4678bb
MR
40002016-04-09 Maciej W. Rozycki <macro@imgtec.com>
4001
4002 * config/tc-mips.c (mips_check_options): Use `opts->isa'
4003 consistently.
4004
992dc2c4
NC
40052016-04-08 Nick Clifton <nickc@redhat.com>
4006
4007 PR target/19910
4008 * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
4009 COFF and AOUT sparc targets.
4010
a42a4f84
AB
40112016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
4012
4013 * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
4014 * testsuite/gas/arc/nps400-2.d: New file.
4015 * testsuite/gas/arc/nps400-2.s: New file.
4016
1328504b
AB
40172016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
4020 structure.
4021 (arc_opcode_hash_entry_iterator_init): New function.
4022 (arc_opcode_hash_entry_iterator_next): New function.
4023 (find_opcode_match): Iterate over all arc_opcode entries
4024 referenced by the arc_opcode_hash_entry passed in as a parameter.
4025
b9b47ab7
AB
40262016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * config/tc-arc.c (arc_find_opcode): Now returns
4029 arc_opcode_hash_entry pointer.
4030 (find_opcode_match): Update argument type, extract arc_opcode from
4031 incoming arc_opcode_hash_entry.
4032 (find_special_case_pseudo): Update return type.
4033 (find_special_case_flag): Update return type.
4034 (find_special_case): Update return type.
4035 (assemble_tokens): Lookup arc_opcode_hash_entry based on
4036 instruction mnemonic, then use find_opcode_match to identify
4037 specific arc_opcode.
4038
da5be039
AB
40392016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
4040
4041 * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
4042 (arc_find_opcode): New function.
4043 (find_special_case_pseudo): Use arc_find_opcode.
4044 (find_special_case_flag): Likewise.
4045 (assemble_tokens): Likewise.
4046 (md_begin): Build hash using struct arc_opcode_hash_entry.
4047
e6ba1cba
CZ
40482016-04-07 Claudiu Zissulescu <claziss@synopsys.com>
4049
abe051ba
AM
4050 * config/tc-arc.c (arc_option): Prepare string for automatic
4051 translation.
4052 (declare_register): Likewise.
e6ba1cba 4053
b607cde1
JG
40542016-04-06 James Greenhalgh <james.greenhalgh@arm.com>
4055
4056 * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
4057 Correct entry for RDMA. Alpha sort entries.
4058
692166c2
AB
40592016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
4060
4061 * config/tc-arc.c (tokenize_flags): Allow greater range of
4062 characters into flag names.
4063
22b92fc4
AB
40642016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
4065
4066 * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
4067 new de_fault label.
4068 (preprocess_operands): Delete.
4069 (assemble_tokens): Remove call to preprocess_operands.
4070
e140100a
NC
40712016-04-07 Nick Clifton <nickc@redhat.com>
4072
4073 PR gas/19910
4074 * config/tc-sparc.c (sparc_ip): Report an error if the expression
4075 inside a %-macro could not be fully parsed.
4076 * expr.c (integer_constant): Accept and ignore U suffixes to
4077 integers.
4078 (operand): When a missing closing parenthesis is encountered,
4079 report the character that was found instead.
4080 * testsuite/gas/mips/tls-ill.l: Update expected error message.
4081 * testsuite/gas/sparc/pr19910-1.d: New test driver.
4082 * testsuite/gas/sparc/pr19910-1.s: New test.
4083 * testsuite/gas/sparc/pr19910-2.l: Expected error output.
4084 * testsuite/gas/sparc/pr19910-2.s: New test.
4085 * testsuite/gas/sparc/sparc.exp: Run the new tests.
4086
927f2d25
NC
40872016-04-06 Nick Clifton <nickc@redhat.com>
4088
4089 * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
4090 an EINT instruction. Warn/fix as necessary.
4091 * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
4092 * testsuite/gas/msp430/bad.l: Update expected messages.
4093
820f03ff
AB
40942016-04-05 Andrew Burgess <andrew.burgess@embecosm.com>
4095
4096 * testsuite/gas/arc/nps400-1.d: Update expected results.
4097 * testsuite/gas/arc/nps400-1.s: Additional test cases.
4098
8ddf6b2a
CZ
40992016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
4100
abe051ba
AM
4101 * config/tc-arc.c (is_code_density_p): Compare directly the
4102 subclass field.
4103 (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
4104 (check_cpu_feature): New function.
4105 (find_opcode_match): Use check_cpu_feature function.
4106 (preprocess_operands): Likewise.
4107 (md_parse_option): Use mfpuda, mdpfp, mspfp options.
4108 * testsuite/gas/arc/tdpfp.d: New file.
4109 * testsuite/gas/arc/tfpuda.d: Likewise.
4110 * testsuite/gas/arc/tfpx.s: Likewise.
8ddf6b2a 4111
589a7d88
JW
41122016-04-05 Jiong Wang <jiong.wang@arm.com>
4113
4114 * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
4115 * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
4116 * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
4117 * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
4118 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
4119 * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
4120 * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
abe051ba
AM
4121 * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
4122 for Thumb.
589a7d88
JW
4123 * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
4124
6ec1f282
CZ
41252016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
4126
abe051ba 4127 * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
6ec1f282 4128 JUMP instructions type.
abe051ba
AM
4129 * testsuite/gas/arc/relocs-errors.d: New file.
4130 * testsuite/gas/arc/relocs-errors.err: Likewise.
4131 * testsuite/gas/arc/relocs-errors.s: Likewise.
6ec1f282 4132
0796a629
L
41332016-04-04 H.J. Lu <hongjiu.lu@intel.com>
4134
4135 PR gas/19909
4136 * config/tc-i386.c (check_VecOperands): Try vec_disp8 encoding
4137 only if i.disp_encoding != disp_encoding_32bit.
4138 * gas/testsuite/gas/i386/disp32.s: Add tests for vmovdqu64.d32.
4139 * gas/testsuite/gas/i386/x86-64-disp32.s: Likewise.
4140 * gas/testsuite/gas/i386/disp32.d: Updated.
4141 * gas/testsuite/gas/i386/x86-64-disp32.d: Likewise.
4142
df41fdf4
L
41432016-04-04 H.J. Lu <hongjiu.lu@intel.com>
4144
4145 PR gas/19498
4146 * testsuite/gas/i386/i386.exp: Run pr19498.
4147 * testsuite/gas/i386/pr19498.d: New file.
4148 * testsuite/gas/i386/pr19498.s: Likewise.
4149
26cdfd92
AB
41502016-04-04 Andrew Burgess <andrew.burgess@embecosm.com>
4151
4152 * config/tc-arc.h: Include 'opcode/arc.h'.
4153 (MAX_INSN_ARGS): Delete.
4154 (MAX_INSN_FLGS): Delete.
4155
22987cec
AM
41562016-04-04 Alan Modra <amodra@gmail.com>
4157
4158 PR 19498
4159 * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
4160 from function on all paths that set sy_resolving.
4161
325801bd
TS
41622016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4163
4164 * app.c (app_push): use XNEW macro.
4165 * as.c: Likewise.
4166 * config/obj-elf.c (obj_elf_change_section): Likewise.
4167 (elf_copy_symbol_attributes): Likewise.
4168 (obj_elf_size): Likewise.
4169 (build_group_lists): Likewise.
4170 * config/tc-aarch64.c (add_operand_error_record): Likewise.
4171 (md_assemble): Likewise.
4172 (tc_gen_reloc): Likewise.
4173 (get_upper_str): Likewise.
4174 (aarch64_parse_features): Likewise.
4175 * config/tc-arm.c (insert_reg_alias): Likewise.
4176 (insert_neon_reg_alias): Likewise.
4177 (find_or_make_literal_pool): Likewise.
4178 (s_arm_elf_cons): Likewise.
4179 (add_unwind_opcode): Likewise.
4180 (arm_parse_extension): Likewise.
4181 * config/tc-avr.c (create_record_for_frag): Likewise.
4182 * config/tc-crx.c: Likewise.
4183 * config/tc-d30v.c: Likewise.
4184 * config/tc-dlx.c (s_proc): Likewise.
4185 * config/tc-ft32.c: Likewise.
4186 * config/tc-h8300.c: Likewise.
4187 * config/tc-hppa.c (pa_proc): Likewise.
4188 (create_new_space): Likewise.
4189 (create_new_subspace): Likewise.
4190 * config/tc-i860.c: Likewise.
4191 * config/tc-i960.c: Likewise.
4192 * config/tc-ia64.c: Likewise.
4193 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
4194 (iq2000_record_hi16): Likewise.
4195 * config/tc-m32c.c (m32c_indirect_operand): Likewise.
4196 * config/tc-m32r.c (debug_sym): Likewise.
4197 (m32r_record_hi16): Likewise.
4198 * config/tc-m68k.c (m68k_ip): Likewise.
4199 (md_begin): Likewise.
4200 * config/tc-mcore.c: Likewise.
4201 * config/tc-microblaze.c (check_got): Likewise.
4202 * config/tc-mips.c (append_insn): Likewise.
4203 (s_mipsset): Likewise.
4204 (mips_record_label): Likewise.
4205 (s_mips_end): Likewise.
4206 * config/tc-mmix.c (mmix_frob_file): Likewise.
4207 * config/tc-mn10200.c: Likewise.
4208 * config/tc-mn10300.c: Likewise.
4209 * config/tc-moxie.c: Likewise.
4210 * config/tc-msp430.c: Likewise.
4211 * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
4212 * config/tc-ns32k.c: Likewise.
4213 * config/tc-or1k.c: Likewise.
4214 * config/tc-pdp11.c: Likewise.
4215 * config/tc-pj.c (fake_opcode): Likewise.
4216 * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
4217 (ppc_macro): Likewise.
4218 (ppc_dwsect): Likewise.
4219 (ppc_machine): Likewise.
4220 * config/tc-rl78.c (rl78_frag_init): Likewise.
4221 * config/tc-rx.c (rx_frag_init): Likewise.
4222 * config/tc-s390.c (s390_lit_suffix): Likewise.
4223 (s390_machine): Likewise.
4224 (s390_machinemode): Likewise.
4225 * config/tc-score.c (s3_insert_reg): Likewise.
4226 (s3_gen_reloc): Likewise.
4227 * config/tc-score7.c (s7_insert_reg): Likewise.
4228 (s7_gen_reloc): Likewise.
4229 * config/tc-tic30.c (tic30_operand): Likewise.
4230 * config/tc-tic4x.c (tic4x_inst_make): Likewise.
4231 * config/tc-tic54x.c (stag_add_field): Likewise.
4232 (tic54x_struct): Likewise.
4233 (tic54x_space): Likewise.
4234 (tic54x_field): Likewise.
4235 (tic54x_mlib): Likewise.
4236 (subsym_substitute): Likewise.
4237 * config/tc-tic6x.c (tic6x_frob_label): Likewise.
4238 * config/tc-vax.c: Likewise.
4239 * config/tc-xc16x.c: Likewise.
4240 * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
4241 (directive_push): Likewise.
4242 (xtensa_begin_directive): Likewise.
4243 (tokenize_arguments): Likewise.
4244 (xtensa_add_literal_sym): Likewise.
4245 (new_resource_table): Likewise.
4246 (resize_resource_table): Likewise.
4247 (emit_single_op): Likewise.
4248 (xtensa_create_trampoline_frag): Likewise.
4249 (xtensa_maybe_create_literal_pool_frag): Likewise.
4250 (xtensa_add_config_info): Likewise.
4251 (xtensa_realloc_fixup_cache): Likewise.
4252 (add_subseg_info): Likewise.
4253 (cache_literal_section): Likewise.
4254 (add_xt_block_frags): Likewise.
4255 (add_xt_prop_frags): Likewise.
4256 (init_op_placement_info_table): Likewise.
4257 (build_section_rename): Likewise.
4258 * config/tc-z80.c: Likewise.
4259 * config/tc-z8k.c: Likewise.
4260 * depend.c (register_dependency): Likewise.
4261 * dwarf2dbg.c (get_line_subseg): Likewise.
4262 (dwarf2_gen_line_info_1): Likewise.
4263 (get_filenum): Likewise.
4264 * ecoff.c (allocate_scope): Likewise.
4265 (allocate_vlinks): Likewise.
4266 (allocate_shash): Likewise.
4267 (allocate_thash): Likewise.
4268 (allocate_tag): Likewise.
4269 (allocate_forward): Likewise.
4270 (allocate_thead): Likewise.
4271 (allocate_lineno_list): Likewise.
4272 * expr.c (make_expr_symbol): Likewise.
4273 * hash.c (hash_new_sized): Likewise.
4274 * input-file.c (input_file_push): Likewise.
4275 * listing.c (file_info): Likewise.
4276 (listing_newline): Likewise.
4277 * macro.c (new_formal): Likewise.
4278 (define_macro): Likewise.
4279 * remap.c (add_debug_prefix_map): Likewise.
4280 * symbols.c (symbol_find_noref): Likewise.
4281 (define_dollar_label): Likewise.
4282 (fb_label_instance_inc): Likewise.
4283 (symbol_relc_make_value): Likewise.
4284
a44e2901
TS
42852016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4286
4287 * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
4288 * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
4289 (ppc_znop): Likewise.
4290 (ppc_pe_section): Likewise.
4291 (ppc_frob_symbol): Likewise.
4292 * config/tc-tic30.c (tic30_operand): Likewise.
4293 * config/tc-tic4x.c (tic4x_sect): Likewise.
4294 (tic4x_usect): Likewise.
4295
ae2689b0
TS
42962016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4297
4298 * config/tc-alpha.c: Const qualify FLT_CHARS.
4299 * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
4300 * config/tc-cris.h: Likewise.
4301 * expr.c: Likewise.
4302 * config/tc-mmix.c (md_atof): Adjust comment.
4303 * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
4304 * tc.h: Declare FLT_CHARS and EXP_CHARS.
4305
a51ef392
TS
43062016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4307
4308 * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
4309 * config/tc-score7.c (s7_gen_reloc): Likewise.
4310
2fe88214
TS
43112016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4312
4313 * config/tc-arm.c (do_t_branch): Change the type of reloc to
4314 bfd_reloc_code_real_type.
4315
e1ec8109
TS
43162016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4317
4318 * config/bfin-parse.y (current_inputline): Remove definition.
4319 * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
4320
f73e41ef
TS
43212016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4322
4323 * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
4324 strings.
4325
62bd6b5f
AM
43262016-04-02 Alan Modra <amodra@gmail.com>
4327
4328 PR 19896
4329 * read.c (assign_symbol): Consume rest of line after an error
4330 rather than continuing to process the line.
4331
83cda17b
AB
43322016-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
4333
4334 * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
4335 (MAX_FLAG_NAME_LENGTH): ...this.
4336 (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
4337 * config/tc-arc.c (tokenize_flags): Likewise.
4338
6d4af3c2
AM
43392016-04-01 Alan Modra <amodra@gmail.com>
4340
4341 * cgen.c (weak_operand_overflow_check): Return const char*.
4342 * messages.c (as_internal_value_out_of_range): Formatting.
4343 (as_warn_value_out_of_range): Consify prefix param.
4344 (as_bad_value_out_of_range): Likewise.
4345 * read.c (s_errwarn): Constify msg..
4346 (s_float_space, float_cons): ..and err.
4347 * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
4348 ieee_md_atof, vax_md_atof): Update prototypes.
4349 * tc.h (md_atof): Update prototype.
4350 * config/atof-ieee.c (ieee_md_atof): Return const char*.
4351 * config/atof-vax.c (vax_md_atof): Likewise.
4352 * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
4353 * config/tc-aarch64.c (md_atof): Return const char*.
4354 * config/tc-alpha.c (s_alpha_section_name): Likewise.
4355 (s_alpha_comm): Constify sec_name.
4356 (section_name): Constify.
4357 (s_alpha_section): Consify name..
4358 (alpha_elf_section_letter): ..and ptr_msg param..
4359 (md_atof): ..and return.
4360 * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
4361 * config/tc-arc.c (md_atof): Return const char*.
4362 * config/tc-arm.c (md_atof): Likewise.
4363 * config/tc-avr.c (md_atof): Likewise.
4364 * config/tc-bfin.c (md_atof): Likewise.
4365 * config/tc-cr16.c (md_atof): Likewise.
4366 * config/tc-cris.c (md_atof): Likewise.
4367 * config/tc-crx.c (md_atof): Likewise.
4368 * config/tc-d10v.c (md_atof): Likewise.
4369 * config/tc-d30v.c (md_atof): Likewise.
4370 * config/tc-dlx.c (md_atof): Likewise.
4371 * config/tc-epiphany.c (md_atof): Likewise.
4372 * config/tc-fr30.c (md_atof): Likewise.
4373 * config/tc-frv.c (md_atof): Likewise.
4374 * config/tc-ft32.c (md_atof): Likewise.
4375 * config/tc-h8300.c (md_atof): Likewise.
4376 * config/tc-hppa.c (struct default_subspace_dict): Constify name.
4377 (struct default_space_dict): Likewise.
4378 (create_new_space): Constify name param.
4379 (create_new_subspace): Likewise.
4380 (is_defined_space, is_defined_subspace): Likewise.
4381 (pa_parse_space_stmt): Constify space_name param.
4382 (md_atof): Return const char*.
4383 (pa_spaces_begin): Constify name.
4384 * config/tc-i370.c (md_atof): Return const char*.
4385 * config/tc-i386.c (md_atof): Likewise.
4386 (x86_64_section_letter): Constify ptr_msg param.
4387 * config/tc-i386.h (x86_64_section_letter): Update prototype.
4388 * config/tc-i860.c (struct i860_it): Constify error.
4389 (md_atof): Return const char*.
4390 * config/tc-i960.c (md_atof): Likewise.
4391 * config/tc-ia64.c (md_atof): Likewise.
4392 (ia64_elf_section_letter): Constify ptr_msg param.
4393 * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
4394 * config/tc-ip2k.c (md_atof): Return const char*.
4395 * config/tc-iq2000.c (md_atof): Likewise.
4396 * config/tc-lm32.c (md_atof): Likewise.
4397 * config/tc-m32c.c (md_atof): Likewise.
4398 * config/tc-m32r.c (md_atof): Likewise.
4399 * config/tc-m68hc11.c (md_atof): Likewise.
4400 * config/tc-m68k.c (md_atof): Likewise.
4401 * config/tc-mcore.c (md_atof): Likewise.
4402 * config/tc-mep.c (md_atof): Likewise.
4403 (mep_elf_section_letter): Constify ptr_msg param.
4404 * config/tc-mep.h (mep_elf_section_letter): Update prototype.
4405 * config/tc-metag.c (md_atof): Return const char*.
4406 * config/tc-microblaze.c (md_atof): Likewise.
4407 * config/tc-microblaze.h (md_atof): Delete prototype.
4408 * config/tc-mips.c (mips_parse_argument_token): Constify err.
4409 (md_atof): Return const char*.
4410 * config/tc-mmix.c (md_atof): Likewise.
4411 * config/tc-mn10200.c (md_atof): Likewise.
4412 * config/tc-mn10300.c (md_atof): Likewise.
4413 * config/tc-moxie.c (md_atof): Likewise.
4414 * config/tc-msp430.c (md_atof): Likewise.
4415 * config/tc-mt.c (md_atof): Likewise.
4416 * config/tc-nds32.c (md_atof): Likewise.
4417 * config/tc-nios2.c (md_atof): Likewise.
4418 (nios2_elf_section_letter): Constify ptr_msg param.
4419 * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
4420 * config/tc-ns32k.c (md_atof): Return const char*.
4421 * config/tc-or1k.c (md_atof): Likewise.
4422 * config/tc-pdp11.c (struct pdp11_code): Constify error.
4423 (md_atof): Return const char*.
4424 * config/tc-pj.c (md_atof): Likewise.
4425 * config/tc-ppc.c (md_atof): Likewise.
4426 * config/tc-rl78.c (md_atof): Likewise.
4427 * config/tc-rx.c (md_atof): Likewise.
4428 * config/tc-s390.c (md_atof): Likewise.
4429 * config/tc-score.c (s3_atof, md_atof): Likewise.
4430 * config/tc-sh.c (md_atof): Likewise.
4431 * config/tc-sparc.c (struct sparc_it): Constify error.
4432 (md_atof): Return const char*.
4433 * config/tc-spu.c (md_atof): Likewise.
4434 * config/tc-tic30.c (md_atof): Likewise.
4435 * config/tc-tic4x.c (md_atof): Likewise.
4436 * config/tc-tic54x.c (md_atof): Likewise.
4437 * config/tc-tic6x.c (md_atof): Likewise.
4438 * config/tc-tilegx.c (md_atof): Likewise.
4439 * config/tc-tilepro.c (md_atof): Likewise.
4440 * config/tc-v850.c (parse_register_list, md_atof): Likewise.
4441 * config/tc-vax.c (md_atof): Likewise.
4442 * config/tc-visium.c (md_atof): Likewise.
4443 * config/tc-xc16x.c (md_atof): Likewise.
4444 * config/tc-xgate.c (md_atof): Likewise.
4445 * config/tc-xstormy16.c (md_atof): Likewise.
4446 * config/tc-xtensa.c (md_atof): Likewise.
4447 * config/tc-z80.c (md_atof): Likewise.
4448 * config/tc-z8k.c (md_atof): Likewise.
4449
e4a0c708
TS
44502016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4451
4452 * config/tc-xtensa.c (struct rename_section_struct): Make old_name
4453 const.
4454 (xtensa_section_rename): Make argument type const char *.
4455 * config/tc-xtensa.h (xtensa_section_rename): Adjust.
4456
e2c7dcae
TS
44572016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4458
4459 * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
4460 args[0].
4461
f854977c
TS
44622016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4463
4464 * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
4465 char *.
4466 (m32c_indirect_operand): Likewise.
4467 * config/tc-nds32.c (do_pseudo_b): Likewise.
4468 (do_pseudo_bal): Likewise.
4469 (do_pseudo_ls_bhw): Likewise.
4470
97830986
TS
44712016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4472
4473 * as.c (parse_args): Cast literal to char * when assigning to optarg.
4474
e87de513
TS
44752016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4476
4477 * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
4478 get_symbol_name ().
4479 * config/tc-sparc.c (s_register): Cast a literal to char * in
4480 assignment.
4481
47990a6a
TS
44822016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4483
4484 * config/tc-i960.c (parse_expr): Cast to char * when assigning to
4485 input_line_pointer.
4486 * config/tc-m32r.c (expand_debug_syms): Likewise.
4487 * config/tc-msp430.c (msp430_dstoperand): Likewise.
4488 * config/tc-z80.c (md_begin): Likewise.
4489 * stabs.c (stabs_generate_asm_func): Likewise.
4490
e046cf80
TS
44912016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4492
4493 * cgen.c: Modernize the way functions declare arguments.
4494 * config/tc-bfin.c: Likewise.
4495 * config/tc-pdp11.c: Likewise.
4496 * literal.c: Likewise.
4497 * read.c: Likewise.
4498 * stabs.c: Likewise.
4499
d9235011
TS
45002016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4501
4502 * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
4503 variables unsigned char[].
4504 * config/tc-alpha.c (alpha_handle_align): Likewise.
4505 * config/tc-arm.c (arm_handle_align): Likewise.
4506 * config/tc-z80.c: Likewise.
4507
c6025a80
NC
45082016-03-30 Nick Clifton <nickc@redhat.com>
4509
4510 PR target/19880
4511 * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
4512 shifting.
4513
f89a23cf
CZ
45142016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
4515
abe051ba
AM
4516 * testsuite/gas/all/gas.exp: Don't xfail on ARC.
4517 * testsuite/gas/elf/elf.exp: Likewise.
4518 * testsuite/gas/all/redef3.d: Allow execution for ARC.
f89a23cf 4519
f621ad3c
CZ
45202016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
4521
abe051ba 4522 * testsuite/gas/arc/warn.exp: Fix matching pattern.
f621ad3c 4523
f2dd8838
CZ
45242016-03-29 Claudiu Zissulescu <claziss@synopsys.com>
4525
abe051ba
AM
4526 * testsuite/gas/arc/ext2op.d: New file.
4527 * testsuite/gas/arc/ext2op.s: Likewise.
4528 * testsuite/gas/arc/ext3op.d: Likewise.
4529 * testsuite/gas/arc/ext3op.s: Likewise.
f2dd8838 4530
17b9d67d
TS
45312016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4532
4533 * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
4534 qualifier.
4535 * config/tc-alpha.c (md_parse_option): Likewise.
4536 * config/tc-arc.c (md_parse_option): Likewise.
4537 * config/tc-arm.c (struct arm_long_option_table): Likewise.
4538 (md_parse_option): Likewise.
4539 * config/tc-avr.c (md_parse_option): Likewise.
4540 * config/tc-bfin.c (md_parse_option): Likewise.
4541 * config/tc-cr16.c (md_parse_option): Likewise.
4542 * config/tc-cris.c (s_cris_arch): Likewise.
4543 (md_parse_option): Likewise.
4544 * config/tc-crx.c (md_parse_option): Likewise.
4545 * config/tc-d10v.c (md_parse_option): Likewise.
4546 * config/tc-d30v.c (md_parse_option): Likewise.
4547 * config/tc-dlx.c (md_parse_option): Likewise.
4548 * config/tc-epiphany.c (md_parse_option): Likewise.
4549 * config/tc-fr30.c (md_parse_option): Likewise.
4550 * config/tc-frv.c (md_parse_option): Likewise.
4551 * config/tc-ft32.c (md_parse_option): Likewise.
4552 * config/tc-h8300.c (md_parse_option): Likewise.
4553 * config/tc-hppa.c (md_parse_option): Likewise.
4554 * config/tc-i370.c (md_parse_option): Likewise.
4555 * config/tc-i386.c (md_parse_option): Likewise.
4556 * config/tc-i860.c (md_parse_option): Likewise.
4557 * config/tc-i960.c (md_parse_option): Likewise.
4558 * config/tc-ia64.c (md_parse_option): Likewise.
4559 * config/tc-ip2k.c (md_parse_option): Likewise.
4560 * config/tc-iq2000.c (md_parse_option): Likewise.
4561 * config/tc-lm32.c (md_parse_option): Likewise.
4562 * config/tc-m32c.c (md_parse_option): Likewise.
4563 * config/tc-m32r.c (md_parse_option): Likewise.
4564 * config/tc-m68hc11.c (md_parse_option): Likewise.
4565 * config/tc-m68k.c (md_parse_option): Likewise.
4566 * config/tc-mcore.c (md_parse_option): Likewise.
4567 * config/tc-mep.c (md_parse_option): Likewise.
4568 * config/tc-metag.c (struct metag_long_option): Likewise.
4569 (md_parse_option): Likewise.
4570 * config/tc-microblaze.c (md_parse_option): Likewise.
4571 * config/tc-microblaze.h (md_parse_option): Remove prototype.
4572 * config/tc-mips.c (md_parse_option): Adjust.
4573 * config/tc-mmix.c (md_parse_option): Likewise.
4574 * config/tc-mn10200.c (md_parse_option): Likewise.
4575 * config/tc-mn10300.c (md_parse_option): Likewise.
4576 * config/tc-moxie.c (md_parse_option): Likewise.
4577 * config/tc-msp430.c (md_parse_option): Likewise.
4578 * config/tc-mt.c (md_parse_option): Likewise.
4579 * config/tc-nds32.c (md_parse_option): Likewise.
4580 * config/tc-nds32.h (nds32_parse_option): Likewise.
4581 * config/tc-nios2.c (md_parse_option): Likewise.
4582 * config/tc-ns32k.c (md_parse_option): Likewise.
4583 * config/tc-or1k.c (md_parse_option): Likewise.
4584 * config/tc-pdp11.c (md_parse_option): Likewise.
4585 * config/tc-pj.c (md_parse_option): Likewise.
4586 * config/tc-ppc.c (md_parse_option): Likewise.
4587 * config/tc-rl78.c (md_parse_option): Likewise.
4588 * config/tc-rx.c (md_parse_option): Likewise.
4589 * config/tc-s390.c (s390_parse_cpu): Likewise.
4590 * config/tc-score.c (md_parse_option): Likewise.
4591 * config/tc-sh.c (md_parse_option): Likewise.
4592 * config/tc-sparc.c (md_parse_option): Likewise.
4593 * config/tc-spu.c (md_parse_option): Likewise.
4594 * config/tc-tic30.c (md_parse_option): Likewise.
4595 * config/tc-tic4x.c (md_parse_option): Likewise.
4596 * config/tc-tic54x.c (md_parse_option): Likewise.
4597 * config/tc-tic6x.c (md_parse_option): Likewise.
4598 * config/tc-tilegx.c (md_parse_option): Likewise.
4599 * config/tc-tilepro.c (md_parse_option): Likewise.
4600 * config/tc-v850.c (md_parse_option): Likewise.
4601 * config/tc-vax.c (md_parse_option): Likewise.
4602 * config/tc-visium.c (struct visium_long_option_table): Likewise.
4603 * config/tc-xc16x.c (md_parse_option): Likewise.
4604 * config/tc-xgate.c (md_parse_option): Likewise.
4605 * config/tc-xstormy16.c (md_parse_option): Likewise.
4606 * config/tc-xtensa.c (md_parse_option): Likewise.
4607 * config/tc-z80.c (md_parse_option): Likewise.
4608 * config/tc-z8k.c (md_parse_option): Likewise.
4609 * tc.h (md_parse_option): Likewise.
4610
30bd735c
TS
46112016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4612
4613 * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
4614 * config/tc-hppa.c (fix_new_hppa): Likewise.
4615 (pa_vtable_entry): Likewise.
4616 (pa_vtable_inherit): Likewise.
4617 * config/tc-m68k.c (md_begin): Likewise.
4618
82b8a785
TS
46192016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4620
4621 * config/obj-elf.c (obj_elf_section_name): Return const char *.
4622 * config/obj-elf.h (obj_elf_section_name): Adjust.
4623 * config/tc-aarch64.c (aarch64_parse_features): Likewise.
4624 (aarch64_parse_cpu): Likewise.
4625 (aarch64_parse_arch): Likewise.
4626 * config/tc-arm.c (arm_parse_extension): Likewise.
4627 (arm_parse_cpu): Likewise.
4628 (arm_parse_arch): Likewise.
4629 * config/tc-nds32.c: Likewise.
4630 * config/xtensa-relax.c (parse_special_fn): Likewise.
4631 * stabs.c (generate_asm_file): Likewise.
4632
9202e88a
TS
46332016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4634
4635 * config/tc-cr16.c (cr16_assemble): New function.
4636 (md_assemble): Call cr16_assemble.
4637
a90fb5e3
TS
46382016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4639
4640 * as.c (parse_args): Adjust.
4641 * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
4642 * config/obj-elf.c (elf_frob_symbol): Adjust.
4643
f65c3d1b
JM
46442016-03-24 Jose E. Marchesi <jose.marchesi@oracle.com>
4645
4646 * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
4647 registers to be in the 16..31 range.
4648
e742e119
TS
46492016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4650
4651 * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
4652 frag_var ().
4653
eda6e9a4
TS
46542016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4655
4656 * config/tc-visium.c (md_atof): Localize the string returned on
4657 failure.
4658
b9bb4a93
TS
46592016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4660
4661 * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
4662 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
4663 * config/tc-m68hc11.c (md_begin): Likewise.
4664 (print_opcode_list): Likewise.
4665 * config/tc-msp430.c (msp430_section): Likewise.
4666 * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
4667 (s3_build_dependency_insn_hsh): Likewise.
4668 * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
4669 (s7_build_dependency_insn_hsh): Likewise.
4670 * config/tc-tic4x.c: Likewise.
4671 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4672 (subsym_get_arg): Likewise.
4673 * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
4674 (get_directive): Likewise.
4675 (cache_literal_section): Likewise.
4676 * config/xtensa-relax.c: Likewise.
4677 * symbols.c (symbol_create): Likewise.
4678 (local_symbol_make): Likewise.
4679 (symbol_relc_make_expr): Likewise.
4680
986d894b
TS
46812016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4682
4683 * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
4684 str.
4685
74b4e47a
TS
46862016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4687
4688 * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
4689 call with a switch.
4690
0a433ebc
TS
46912016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4692
4693 * config/tc-ia64.c (ia64_do_align): Remove.
4694 (ia64_cons_align): Call do_align () directly.
4695 (dot_proc): Likewise.
4696 (stmt_float_cons): Likewise.
4697
8860a416
TS
46982016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4699
4700 * listing.c (listing_message): Use XNEW style allocation macros.
4701 * read.c (read_a_source_file): Likewise.
4702 (read_symbol_name): Likewise.
4703 (s_mri_common): Likewise.
4704 (assign_symbol): Likewise.
4705 (s_reloc): Likewise.
4706 (emit_expr_with_reloc): Likewise.
4707 (s_incbin): Likewise.
4708 (s_include): Likewise.
4709 * sb.c (sb_build): Likewise.
4710 (sb_check): Likewise.
4711
49636823
AM
47122016-03-22 Alan Modra <amodra@gmail.com>
4713
4714 * write.c (record_alignment): Revert 2016-02-18 change.
4715
39a0d071
AM
47162016-03-22 Alan Modra <amodra@gmail.com>
4717
4718 * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
4719 (emit_jsrjmp, tc_gen_reloc): Likewise.
4720 * config/tc-i370.c (i370_macro): Likewise.
4721
9780e045
NC
47222016-03-22 Nick Clifton <nickc@redhat.com>
4723
4724 * configure: Regenerate.
4725
e23e8ebe
AB
47262016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4727
4728 * testsuite/gas/arc/nps400-0.d: New file.
4729 * testsuite/gas/arc/nps400-0.s: New file.
4730 * testsuite/gas/arc/nps400-1.d: New file.
4731 * testsuite/gas/arc/nps400-1.s: New file.
4732
1ae8ab47
AB
47332016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * config/tc-arc.c (find_opcode_match): Move lnflg, and i
4736 declarations to start of block. Reset code on all flags before
4737 attempting to match them. Handle multiple hits on the same flag.
4738 Handle flag class.
4739 * testsuite/gas/arc/asm-errors.d: New file.
4740 * testsuite/gas/arc/asm-errors.err: New file.
4741 * testsuite/gas/arc/asm-errors.s: New file.
4742
8699fc3e
AB
47432016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * config/tc-arc.c (cpu_types): Add nps400 entry.
4746 (check_zol): Handle nps400.
4747
a9522a21
AB
47482016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * config/tc-arc.c (arc_select_cpu): Remove use of
4751 EF_ARC_CPU_GENERIC.
4752
24740d83
AB
47532016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4754
4755 * config/tc-arc.c (arc_target): Delay initialisation until
4756 arc_select_cpu.
4757 (arc_target_name): Likewise.
4758 (arc_features): Likewise.
4759 (arc_mach_type): Likewise.
4760 (cpu_types): Remove "all" entry.
4761 (arc_select_cpu): New function, most of the content is from...
4762 (md_parse_option): ... here. Call new arc_select_cpu.
4763 (md_begin): Call arc_select_cpu if needed, default is now arc700.
4764
62f6f9c2
AB
47652016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
4766
4767 * testsuite/gas/arc/inline-data-1.d: Add target restriction.
4768 * testsuite/gas/arc/inline-data-2.d: New file.
4769
e1fa0163
NC
47702016-03-21 Nick Clifton <nickc@redhat.com>
4771
4772 * atof-generic.c: Replace use of alloca with call to xmalloc.
4773 * cgen.c: Likewise.
4774 * dwarf2dbg.c: Likewise.
4775 * macro.c: Likewise.
4776 * remap.c: Likewise.
4777 * stabs.c: Likewise.
4778 * symbols.c: Likewise.
4779 * config/obj-elf.c: Likewise.
4780 * config/tc-aarch64.c: Likewise.
4781 * config/tc-arc.c: Likewise.
4782 * config/tc-arm.c: Likewise.
4783 * config/tc-avr.c: Likewise.
4784 * config/tc-ia64.c: Likewise.
4785 * config/tc-mips.c: Likewise.
4786 * config/tc-msp430.c: Likewise.
4787 * config/tc-nds32.c: Likewise.
4788 * config/tc-ppc.c: Likewise.
4789 * config/tc-sh.c: Likewise.
4790 * config/tc-tic30.c: Likewise.
4791 * config/tc-tic54x.c: Likewise.
4792 * config/tc-xstormy16.c: Likewise.
4793 * config/te-vms.c: Likewise.
4794 * configure: Regenerate.
4795
bad6e36d
TS
47962016-03-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4797
4798 * tc-i386.c (f32_1): Change type to unsigned char[].
4799 (f32_2): Likewise.
4800 (f32_3): Likewise.
4801 (f32_4): Likewise.
4802 (f32_5): Likewise.
4803 (f32_6): Likewise.
4804 (f32_7): Likewise.
4805 (f32_8): Likewise.
4806 (f32_9): Likewise.
4807 (f32_10): Likewise.
4808 (f32_11): Likewise.
4809 (f32_12): Likewise.
4810 (f32_13): Likewise.
4811 (f32_14): Likewise.
4812 (f16_3): Likewise.
4813 (f16_4): Likewise.
4814 (f16_5): Likewise.
4815 (f16_6): Likewise.
4816 (f16_7): Likewise.
4817 (f16_8): Likewise.
4818 (jump_31): Likewise.
4819 (f32_patt): Likewise.
4820 (f16_patt): Likewise.
4821 (alt_3): Likewise.
4822 (alt_4): Likewise.
4823 (alt_5): Likewise.
4824 (alt_6): Likewise.
4825 (alt_7): Likewise.
4826 (alt_8): Likewise.
4827 (alt_9): Likewise.
4828 (alt_10): Likewise.
4829 (alt_patt): Likewise.
4830
6387924a
NC
48312016-03-18 Nick Clifton <nickc@redhat.com>
4832
30fab421
NC
4833 * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
4834 .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
4835 .tlsdescldr and .xword directives.
4836
8678914f
NC
4837 PR target/19721
4838 * testsuite/gas/aarch64/pr19721.s: New test source file.
4839 * testsuite/gas/aarch64/pr19721.d: New test driver file.
4840
6387924a
NC
4841 * doc/as.texinfo: Place the target specific command line options
4842 into their own man page section.
4843
cc933301
JW
48442016-03-16 Jiong Wang <jiong.wang@arm.com>
4845
4846 * config/tc-arm.c (N_S_32): New.
4847 (N_F_16_32): Likewise.
4848 (N_SUF_32): Support N_F16.
4849 (N_IF_32): Likewise.
4850 (neon_dyadic_misc): Likewise.
4851 (do_neon_cmp): Likewise.
4852 (do_neon_cmp_inv): Likewise.
4853 (do_neon_mul): Likewise.
4854 (do_neon_fcmp_absolute): Likewise.
4855 (do_neon_step): Likewise.
4856 (do_neon_abs_neg): Likewise.
4857 (CVT_FLAVOR_VAR): Likewise.
4858 (do_neon_cvt_1): Likewise.
4859 (do_neon_recip_est): Likewise.
4860 (do_vmaxnm): Likewise.
4861 (do_vrint_1): Likewise.
4862 (neon_check_type): Check architecture support for FP16 extension.
4863 (insns): Update comments.
4864 * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
4865 * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
4866 * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
4867 * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
4868 arm mode.
4869 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
4870 thumb mode.
4871 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
4872 error file.
4873
5f2b6bc9
NC
48742016-03-16 Nick Clifton <nickc@redhat.com>
4875
4876 * read.c (emit_expr_with_reloc): Add code check a bignum with
4877 nbytes == 1.
4878 * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
4879 other than 32-bits.
4880 * testsuite/gas/elf/bignum.s: New test source file.
4881 * testsuite/gas/elf/bignum.d: New test driver file.
4882 * testsuite/gas/elf/elf.exp: Run the new test.
4883
4bde3cdd
UD
48842016-03-15 Ulrich Drepper <drepper@gmail.com>
4885
4886 * doc/c-i386.texi (Register Naming): Update to details of the
abe051ba 4887 latest architecture version.
4bde3cdd 4888
a9f02af8
MG
48892016-03-10 Mickael Guene <mickael.guene@st.com>
4890
4891 PR gas/19744
4892 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
4893 (do_mov): Likewise.
4894 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
4895 (do_t_mov_cmp): Likewise.
4896 (do_t_add_sub): Protect against bad relocations usage.
4897 (do_t_mov_cmp): Likewise.
5dafb246
AM
4898 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
4899 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
4900 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
4901 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
a9f02af8 4902
aa8a0863
TS
49032016-03-09 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4904
4905 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
4906 do_alignment.
4907 (do_neon_ld_st_lane): Likewise.
4908 (do_neon_ld_dup): Likewise.
4909
72f3b6aa
CZ
49102016-03-08 Andrew Burgess <andrew.burgess@embecosm.com>
4911
4912 * testsuite/gas/arc/inline-data-1.d: New file.
4913 * testsuite/gas/arc/inline-data-1.s: New file.
4914
5f474010
TP
49152016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4916
4917 * config/tc-arm.c (arm_cpus): Add cortex-r8.
4918 * doc/c-arm.texi: Add cortex-r8.
4919
f86f5863
TS
49202016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4921
4922 * config/tc-arc.c: Add const qualifiers.
4923 * config/tc-h8300.c (md_begin): Likewise.
4924 * config/tc-ia64.c (print_prmask): Likewise.
4925 * config/tc-msp430.c (msp430_operands): Likewise.
4926 * config/tc-nds32.c (struct suffix_name): Likewise.
4927 (struct nds32_parse_option_table): Likewise.
4928 (struct nds32_set_option_table): Likewise.
4929 (do_pseudo_pushpopm): Likewise.
4930 (do_pseudo_pushpop_stack): Likewise.
4931 (nds32_relax_relocs): Likewise.
4932 (nds32_flag): Likewise.
4933 (struct nds32_hint_map): Likewise.
4934 (nds32_find_reloc_table): Likewise.
4935 (nds32_match_hint_insn): Likewise.
4936 * config/tc-s390.c: Likewise.
4937 * config/tc-sh.c (get_specific): Likewise.
4938 * config/tc-tic30.c: Likewise.
4939 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
4940 (tic4x_indirect_parse): Likewise.
4941 * config/tc-vax.c (vax_cons): Likewise.
4942 * config/tc-z80.c (struct reg_entry): Likewise.
4943 * config/tc-epiphany.c (md_assemble): Adjust.
4944 (epiphany_assemble): New function.
4945 (epiphany_elf_section_rtn): Call do_align directly.
4946 (epiphany_elf_section_text): Likewise.
4947 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
4948 (ip2k_elf_section_text): Likewise.
4949 * read.c (do_align): Make it not static.
4950 * read.h (do_align): New prototype.
4951
9411fd44
MW
49522016-03-04 Matthew Wahab <matthew.wahab@arm.com>
4953
4954 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
4955 for ARMv8.1 AdvSIMD use.
4956 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
4957 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
4958
643afb90
MW
49592016-03-04 Matthew Wahab <matthew.wahab@arm.com>
4960
4961 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
4962 feature.
4963 (record_feature_use): New.
4964 (mark_feature_used): Use record_feature_use.
4965 (do_neon_qrdmlah): New.
4966 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
4967 variants.
4968 (arm_extensions): Put into alphabetical order. Re-indent "simd"
4969 and "rdma" entries. Fix the incorrect merge value for "+rdma".
4970 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
4971 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
4972 Make source file explicit.
4973 * testsuite/gas/arm/armv8-a+rdma.l: New.
4974 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
4975 directives. Fix white-space.
4976 * testsuite/gas/arm/armv8_1-a+simd.d: New.
4977
25aa3689
L
49782016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4979
4980 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
4981
841fdfcd
CZ
49822016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
4983 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
4984
abe051ba
AM
4985 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
4986 (tc_arc_fix_adjustable): Changed default return value to 1.
4987 * testsuite/gas/arc/j.d: Updated expected symbol
4988 * testsuite/gas/arc/jl.d: Likewise
4989 * testsuite/gas/arc/relax-avoid1.d: Likewise
4990 * testsuite/gas/arc/st.d: Likewise
841fdfcd 4991
7e458899
CZ
49922016-02-29 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
4993
4994 * config/tc-arc.c: Enable code density instructions for ARC EM.
4995
11e5f1ec
L
49962016-02-26 H.J. Lu <hongjiu.lu@intel.com>
4997
4998 PR ld/19645
4999 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
5000 for ELF assemblers.
5001 * as.c (flag_use_elf_stt_common): New.
5002 (show_usage): Add --elf-stt-common=.
5003 (option_values): Add OPTION_ELF_STT_COMMON.
5004 (std_longopts): Add --elf-stt-common=.
5005 (parse_args): Handle --elf-stt-common=.
5006 * as.h (flag_use_elf_stt_common): New.
5007 * config.in: Regenerated.
5008 * configure: Likewise.
5009 * configure.ac: Add --enable-elf-stt-common and define
5010 DEFAULT_GENERATE_ELF_STT_COMMON.
5011 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
5012 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
5013 * doc/as.texinfo: Document --elf-stt-common=.
5014 * testsuite/gas/elf/common3.s: New file.
5015 * testsuite/gas/elf/common3a.d: Likewise.
5016 * testsuite/gas/elf/common3b.d: Likewise.
5017 * testsuite/gas/elf/common4.s: Likewise.
5018 * testsuite/gas/elf/common4a.d: Likewise.
5019 * testsuite/gas/elf/common4b.d: Likewise.
5020 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
5021 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
5022 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
5023 and common4b.
5024 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
5025 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
5026 --elf-stt-common=no to as.
5027 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
5028 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
5029 --elf-stt-common=no to as.
5030 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
5031 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
5032 of dw2-compress-3 and dw2-compressed-3.
5033
e0471c16
TS
50342016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5035
5036 * as.c (select_emulation_mode): Add const qualifiers.
5037 * as.h: Likewise.
5038 * config/bfin-defs.h: Likewise.
5039 * config/bfin-parse.y: Likewise.
5040 * config/rx-parse.y: Likewise.
5041 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
5042 (struct aarch64_cpu_option_table): Likewise.
5043 (struct aarch64_arch_option_table): Likewise.
5044 (struct aarch64_option_cpu_value_table): Likewise.
5045 (struct aarch64_long_option_table): Likewise.
5046 (struct aarch64_option_abi_value_table): Likewise.
5047 * config/tc-arm.c (struct reloc_entry): Likewise.
5048 (tc_gen_reloc): Likewise.
5049 (struct arm_option_table): Likewise.
5050 (struct arm_legacy_option_table): Likewise.
5051 (struct arm_cpu_option_table): Likewise.
5052 (struct arm_arch_option_table): Likewise.
5053 (struct arm_option_extension_value_table): Likewise.
5054 (struct arm_option_fpu_value_table): Likewise.
5055 (struct arm_option_value_table): Likewise.
5056 (struct arm_long_option_table): Likewise.
5057 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
5058 (struct mcu_type_s): Likewise.
5059 (struct exp_mod_s): Likewise.
5060 (avr_operand): Likewise.
5061 (avr_operands): Likewise.
5062 * config/tc-d10v.c (md_begin): Likewise.
5063 * config/tc-dlx.c: Likewise.
5064 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
5065 * config/tc-ft32.c (parse_condition): Likewise.
5066 * config/tc-h8300.c (do_a_fix_imm): Likewise.
5067 * config/tc-hppa.c (pa_ip): Likewise.
5068 (hppa_regname_to_dw2regnum): Likewise.
5069 * config/tc-i370.c (i370_elf_suffix): Likewise.
5070 * config/tc-i960.c (struct tabentry): Likewise.
5071 * config/tc-m32r.c: Likewise.
5072 * config/tc-m68k.c: Likewise.
5073 * config/tc-m68k.h: Likewise.
5074 * config/tc-mcore.c (parse_psrmod): Likewise.
5075 * config/tc-metag.c (struct metag_core_option): Likewise.
5076 (struct metag_long_option): Likewise.
5077 * config/tc-microblaze.c: Likewise.
5078 * config/tc-mips.c (macro): Likewise.
5079 * config/tc-mn10200.c: Likewise.
5080 * config/tc-mn10300.c: Likewise.
5081 * config/tc-msp430.c (struct rcodes_s): Likewise.
5082 (struct hcodes_s): Likewise.
5083 (md_parse_option): Likewise.
5084 * config/tc-ns32k.c (struct ns32k_option): Likewise.
5085 (optlist): Likewise.
5086 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
5087 (tc_ppc_regname_to_dw2regnum): Likewise.
5088 * config/tc-ppc.h: Likewise.
5089 * config/tc-rl78.c: Likewise.
5090 * config/tc-rx.c (struct cpu_type): Likewise.
5091 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
5092 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
5093 (sparc_ip): Likewise.
5094 * config/tc-spu.c (insn_fmt_string): Likewise.
5095 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
5096 * config/tc-v850.c: Likewise.
5097 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
5098 (struct visium_long_option_table): Likewise.
5099 * config/tc-xgate.c: Likewise.
5100 * config/tc-z8k.c: Likewise.
5101 * read.c (add_include_dir): Likewise.
5102 * read.h: Likewise.
5103
e6e7b7c4
AB
51042016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5105
5106 * testsuite/gas/all/gas.exp: Change target pattern to cover
5107 arceb-*.
5108 * testsuite/gas/all/redef3.d: Likewise.
5109 * testsuite/gas/elf/elf.exp: Likewise.
5110
9db2f6b4
RL
51112016-02-24 Renlin Li <renlin.li@arm.com>
5112
5113 * config/tc-arm.c (BAD_FP16): New error message macro.
5114 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
5115 fp16 scalar instructions.
5116 (neon_check_type): Allow different size from key.
5117 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
5118 (try_vfp_nsyn): Likewise.
5119 (do_vfp_nsyn_mla_mls): Likewise.
5120 (do_vfp_nsyn_fma_fms): Likewise.
5121 (do_vfp_nsyn_ldm_stm): Likewise
5122 (do_vfp_nsyn_sqrt): Likewise
5123 (do_vfp_nsyn_div): Likewise
5124 (do_vfp_nsyn_nmul): Likewise.
5125 (do_vfp_nsyn_cmp): Likewise.
5126 (do_neon_shll): Likewise.
5127 (do_vfp_nsyn_cvt_fpv8): Likewise.
5128 (do_neon_cvttb_2): Likewise.
5129 (do_neon_mov): Likewise.
5130 (do_neon_rshift_round_imm): Likewise.
5131 (do_neon_ldr_str): Likewise.
5132 (do_vfp_nsyn_fpv8): Likewise.
5133 (do_vmaxnm): Likewise.
5134 (do_vrint_1): Likewise.
5135 (insns): New entry for vins, vmovx.
5136 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
5137 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
5138 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
5139 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
5140 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
5141 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
5142 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
5143
d54af2d0
RL
51442016-02-24 Renlin Li <renlin.li@arm.com>
5145
5146 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
5147 (neon_shape_class): New SC_HALF.
5148 (neon_shape_el): New SE_H.
5149 (neon_shape_el_size): New size for SE_H.
5150 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
5151 (neon_select_shape): Add SE_H support code.
5152 (el_type_of_type_chk): Use N_F_ALL.
5153 (do_vfp_nsyn_cvt): Add SE_H shape support.
5154 (do_neon_cvtz): Likewise.
5155 (do_neon_cvt_1): Likewise.
5156 (do_neon_cvttb_1): Likewise.
5157
b0c11777
RL
51582016-02-24 Renlin Li <renlin.li@arm.com>
5159
5160 * testsuite/gas/arm/copro.d: Adjust output.
5161 * testsuite/gas/arm/copro.s: Adjust co-processor num.
5162
3e309328
RL
51632016-02-24 Renlin Li <renlin.li@arm.com>
5164
5165 * testsuite/gas/arm/mask_1.d: New.
5166 * testsuite/gas/arm/mask_1.s: New.
5167
8afc7bea
RL
51682016-02-24 Renlin Li <renlin.li@arm.com>
5169
5170 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
5171 * testsuite/gas/arm/copro.d: Update.
5172
6735952f
KT
51732016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5174
5175 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
5176 * doc/c-arm.texi (ARM Options): Document cortex-a32.
5177
ed5491b9
KT
51782016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5179
abe051ba 5180 * doc/c-arm.texi (ARM Options): Document cortex-a17.
ed5491b9 5181
742e5034
L
51822016-02-23 H.J. Lu <hongjiu.lu@intel.com>
5183
5184 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
5185 hpux.
5186
3b4dbbbf
TS
51872016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5188
5189 * output-file.c (output_file_create): Make file name argument const.
5190 (output_file_close): Likewise.
5191 * output-file.h (output_file_create): Adjust.
5192 (output_file_close): Likewise.
5193 * depend.c (quote_string_for_make): Make src argument const char *.
5194 (register_dependency): Likewise.
5195 (wrap_output): Likewise.
5196 * as.h (register_dependency): Adjust.
5197 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
5198 as_where ();
5199 * symbols.c (S_SET_EXTERNAL): Likewise.
5200 * input-scrub.c (as_where): Return the file name.
5201 * as.h (as_where): Adjust prototype.
5202 * app.c (do_scrub_chars): Adjust.
5203 * cond.c (s_elseif): Likewise.
5204 (s_else): Likewise.
5205 (initialize_cframe): Likewise.
5206 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
5207 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
5208 * config/obj-som.c (obj_som_init_stab_section): Likewise.
5209 * config/tc-aarch64.c (output_info): Likewise.
5210 * config/tc-ia64.c (md_assemble): Likewise.
5211 (dot_alias): Likewise.
5212 * config/tc-m68k.c (m68k_frob_label): Likewise.
5213 * config/tc-mmix.c (s_bspec): Likewise.
5214 (mmix_handle_mmixal): Likewise.
5215 * config/tc-rx.c (rx_include): Likewise.
5216 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
5217 (tic54x_adjust_symtab): Likewise.
5218 * config/tc-xtensa.c (directive_push): Likewise.
5219 (xtensa_sanity_check): Likewise.
5220 (xtensa_relax_frag): Likewise.
5221 (md_convert_frag): Likewise.
5222 (tinsn_to_slotbuf): Likewise.
5223 * dwarf2dbg.c (dwarf2_where): Likewise.
5224 * ecoff.c (add_file): Likewise.
5225 (ecoff_generate_asm_lineno): Likewise.
5226 * expr.c (make_expr_symbol): Likewise.
5227 * frags.c (frag_new): Likewise.
5228 (frag_var_init): Likewise.
5229 * listing.c (listing_newline): Likewise.
5230 * messages.c (identify): Likewise.
5231 (as_show_where): Likewise.
5232 (as_warn_internal): Likewise.
5233 (as_bad_internal): Likewise.
5234 * read.c (s_irp): Likewise.
5235 (s_macro): Likewise.
5236 (s_reloc): Likewise.
5237 * stabs.c (stabs_generate_asm_file): Likewise.
5238 (stabs_generate_asm_lineno): Likewise.
5239 (stabs_generate_asm_func): Likewise.
5240 * write.c (fix_new_internal): Likewise.
5241 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
5242 (as_warn_value_out_of_range): Adjust prototype.
5243 (as_bad_value_out_of_range): Adjust prototype.
5244 * messages.c (identify): Make file name argument const char *.
5245 (as_warn_internal): Likewise.
5246 (as_warn_where): Likewise.
5247 (as_bad_internal): Likewise.
5248 (as_bad_where): Likewise.
5249 (as_internal_value_out_of_range): Likewise.
5250 (as_warn_value_out_of_range): Likewise.
5251 (as_bad_value_out_of_range): Likewise.
5252 * as.h (found_comment_file): Change type to const char *.
5253 * cond.c (file_line::file): Likewise.
5254 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
5255 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
5256 * config/obj-som.c (obj_som_init_stab_section): Likewise.
5257 * config/tc-aarch64.c (output_info): Likewise.
5258 * config/tc-alpha.c (insert_operand): Likewise.
5259 * config/tc-arc.c (insert_operand): Likewise.
5260 * config/tc-d30v.c (check_size): Likewise.
5261 * config/tc-ia64.c (struct alias): Likewise.
5262 * config/tc-m68k.c (struct label_line): Likewise.
5263 * config/tc-mcore.c (md_apply_fix): Likewise.
5264 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
5265 * config/tc-mips.c (mips16_immed): Likewise.
5266 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
5267 * config/tc-ppc.c (ppc_insert_operand): Likewise.
5268 * config/tc-rx.c (rx_include): Likewise.
5269 * config/tc-s390.c (s390_insert_operand): Likewise.
5270 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
5271 (tic54x_adjust_symtab): Likewise.
5272 * config/tc-tilegx.c (insert_operand): Likewise.
5273 (apply_special_operator): Likewise.
5274 * config/tc-tilepro.c (insert_operand): Likewise.
5275 * config/tc-xtensa.c (directive_push): Likewise.
5276 * ecoff.c (add_file): Likewise.
5277 (ecoff_generate_asm_lineno): Likewise.
5278 * listing.c (listing_newline): Likewise.
5279 * read.c (s_irp): Likewise.
5280 * write.c (install_reloc): Likewise.
5281 * write.h (struct fix): Likewise.
5282 * input-file.c (file_name): Change type to const char *.
5283 (saved_file::file_name): Likewise.
5284 (input_file_open): Change type of argument to const char *.
5285 * input-file.h (input_file_open): Adjust.
5286 * input-scrub.c (logical_input_file): change type to const char *.
5287 (physical_input_file): Likewise.
abe051ba 5288 (struct input_save): Adjust.
3b4dbbbf
TS
5289 (input_scrub_push): Adjust.
5290 (input_scrub_begin): Adjust.
5291 (as_where): Adjust.
5292 * input-scrub.c (input_scrub_new_file): Make file name argument const.
5293 (input_scrub_include_file): Likewise.
5294 (new_logical_line_flags): Likewise.
5295 (new_logical_line): Likewise.
5296 * as.h: Adjust.
5297 * frags.h (struct frag): Change type of fr_file to const char *.
5298 * expr.c (expr_symbol_where): Change type of file argument to
5299 const char **.
5300 * expr.h (expr_symbol_where): Likewise.
5301 * config/tc-i370.c (md_apply_fix): adjust.
5302 * config/tc-mmix.c (mmix_md_end): Likewise.
5303 * config/tc-ppc.c (md_apply_fix): Likewise.
5304 * config/tc-s390.c (md_apply_fix): Likewise.
5305 * symbols.c (report_op_error): Likewise.
5306 (resolve_symbol_value): Likewise.
5307 * config/tc-ia64.c (slot::src_file): Change type to const char *.
5308 (rsrc::file): Likewise.
5309 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
5310 const char *.
5311 (xtensa_relax_frag): Likewise.
5312 (md_convert_frag): Likewise.
5313 (tinsn_to_slotbuf): Likewise.
5314 * expr.c (expr_symbol_line): Likewise.
5315 * macro.c (define_macro): Likewise.
5316 * macro.h (macro_struct): Likewise.
5317 * messages.c (as_show_where): Likewise.
5318 * read.c (s_macro): Likewise.
5319 * stabs.c (stabs_generate_asm_file): Likewise.
5320 (generate_asm_file): Likewise.
5321 (stabs_generate_asm_lineno): Likewise.
5322 * write.h (struct reloc_list): Likewise.
5323 * input-scrub.c (as_where): Change return type to const char *.
5324 * as.h (as_wheree): Adjust.
5325
8ecb73dd
L
53262016-02-21 H.J. Lu <hongjiu.lu@intel.com>
5327
5328 * write.c (compress_debug): Move BFD compression bits setting
5329 to ...
5330 (write_object_file): Here.
5331
200cbe0f
L
53322016-02-20 H.J. Lu <hongjiu.lu@intel.com>
5333
5334 * config/tc-i386.c (register_number): Check RegVRex.
5335 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
5336 with %zmm19 and %zmm3.
5337 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
5338 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
5339
b8ec4e87
JW
53402016-02-19 Matthew Wahab <matthew.wahab@arm.com>
5341 Jiong Wang <jiong.wang@arm.com>
5342
5343 * config/tc-arm.c (arm_ext_fp16): New.
5344 (arm_extensions): New entry for "fp16".
5345
3be64886
NC
53462016-02-19 Nick Clifton <nickc@redhat.com>
5347
5348 PR 19630
5349 * read.c (read_a_source_file): Check for assemble_one returning
5350 with input_line_pointer set to NULL.
5351
3b4dbbbf 53522016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
cd0bbe6e 5353
3d13c647
TS
5354 * listing.c (rebuffer_line): Change return type to void.
5355
cd0bbe6e
TS
5356 * symbols.c (decode_local_label_name): Make type a const char *.
5357 * listing.c (print_source): Make type of p const char *.
5358 (print_line): Make type of string const char *.
5359 (buffer_line): Return const char *.
5360 (title): Make type const char *.
5361 (subtitle): Likewise.
5362 (listing_listing): Make type of p const char *.
5363 * messages.c (as_internal_value_out_of_range): Make type of prefix
5364 const char *.
5365 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
5366 and string const char *.
5367 * read.c (_bfd_rel): Make type of name const char *.
5368 * app.c (out_string): Change type to const char *.
abe051ba 5369 (struct app_save::out_string): Likewise.
cd0bbe6e 5370
9136aa49
DG
53712016-02-18 Dan Gisselquist <dgisselq@verizon.net>
5372 Nick Clifton <nickc@redhat.com>
5373
5374 * read.c (finish_bundle): Avoid recording a negative alignment.
5375 (do_align): Use unsigned values for n, len and max. Only create
5376 a frag if the alignment requirement is greater than the minimum
5377 byte alignment. Avoid recording a negative alignment.
5378 (s_align): Use unsigned values where appropriate.
5379 (bss_alloc): Use an unsigned value for the alignment.
5380 (sizeof_sleb128): Add a comment noting that we encode one octet
5381 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
5382 (emit_leb129_expr): Abort if the emitted encoding was longer than
5383 expected.
5384 * read.h (output_leb128): Update prototype.
5385 (sizeof_leb128): Update prototype.
5386 (bss_alloc): Update prototype.
5387 * write.c (record_alignment): Use an unsigned value for the
5388 alignment. Do not record alignments less than the minimum
5389 alignment for a byte.
5390 * write.h (record_alignment): Update prototype.
5391
4111950f
MF
53922016-02-17 Max Filippov <jcmvbkbc@gmail.com>
5393
5394 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
5395 .init.literal/.fini.literal section name.
5396 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
5397 list of xtensa tests.
5398 * testsuite/gas/xtensa/init-fini-literals.d: New file:
5399 init-fini-literals test result patterns.
5400 * testsuite/gas/xtensa/init-fini-literals.s: New file:
5401 init-fini-literals test.
5402
b27c40ec
NC
54032016-02-17 Nick Clifton <nickc@redhat.com>
5404
5405 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
5406 devices.csv file as of March 2016.
5407
726c18e1
CZ
54082016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5409
5410 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
5411 function.
5412 (tc_arc_regname_to_dw2regnum): Likewise.
5413 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
5414 (tc_cfi_frame_initial_instructions): Likewise.
5415 (tc_regname_to_dw2regnum): Likewise.
5dafb246
AM
5416 * testsuite/gas/cfi/cfi-arc-1.d: New file.
5417 * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
5418 * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
726c18e1 5419
9406ee73
TS
54202016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
5421
5422 * doc/internals.texi (S_IS_EXTERN): Remove.
5423
eda683bb
NC
54242016-02-16 Nick Clifton <nickc@redhat.com>
5425
5426 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
5427 update.
5428
671eeb28
RL
54292016-02-16 Renlin Li <renlin.li@arm.com>
5430
5431 PR gas/19620
5432 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
5433 * testsuite/gas/aarch64/movw_label.d: New.
5434 * testsuite/gas/aarch64/movw_label.s: New.
5435
804021fb 54362016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
6439ea1a 5437
58cda018 5438 PR gas/19556
6439ea1a
VK
5439 * config/rx-parse.y (MOV): Opcode generation for index
5440 register addressing mode.
5441 * testsuite/gas/rx/rx.exp: Updated for new testcase.
5442 * testsuite/gas/rx/pr19665.s: New file.
5443 * testsuite/gas/rx/pr19665.s: New file.
5444 * testsuite/gas/rx/mov.d: Update expected output.
5445
804021fb 54462016-02-15 Nick Clifton <nickc@redhat.com>
9fb71ee4
NC
5447
5448 * doc/as.texinfo (.section): Document that numeric values can now
5449 be used for the flags and type fields of the ELF target's .section
5450 directive. Add notes about the restrictions on setting flags and
5451 types.
5452 * config/obj-elf.c (obj_elf_change_section): Allow known sections
5453 to be given processor specific section types. Allow processor and
5454 application specific flags of a section to be set after
5455 definition.
5456 (obj_elf_parse_section_letters): Handle parsing numeric values.
5457 (obj_elf_section_type): Handle parsing numeric values.
5458 (obj_elf_section): Allow numeric type values.
5459 * config/obj-elf.h (obj_elf_change_section): Update prototype.
5460 * testsuite/gas/elf/section10.d: New test.
5461 * testsuite/gas/elf/section10.s: Source file for new test.
5462 * testsuite/gas/elf/elf.exp: Run the new test.
5463 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
5464 the description of the flags produced by readelf.
5465 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
5466 * NEWS: Mention the new feature.
5467
bd5608dc
NC
54682016-02-11 Nick Clifton <nickc@redhat.com>
5469
5470 PR gas/19614
5471 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
5472 until it is actually used.
5473 (cfi_set_sections): Set cfi_sections_set to true.
5474 (dot_cfi_startproc): Likewise.
5475 (dot_cfi_endproc): Likewise.
5476 (dot_cfi_fde_data): Likewise.
5477 (cfi_finish): Likewise.
5478 (dot_cfi_sections): Do not set cfi_sections_set.
5479 * doc/as.texinfo (.cfi_sections): Note that targets can provide
5480 their own cfi section name. Also note that the directive can be
5481 reissued provided that CFI generation has not started.
5482 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
5483 .cfi_endproc directives so that the redefinition of .cfi_sections
5484 will trigger the generation of the error message.
5485 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
5486 number of error message.
5487
4670103e
CZ
54882016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
5489 Janek van Oirschot <jvanoirs@synopsys.com>
5490
5491 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
5492 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
5493 Define.
5494 (arc_flags, arc_relax_type): New structure.
5495 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
5496 (RELAX_TABLE_ENTRY_MAX): New define.
5497 (relaxation_state, md_relax_table, arc_relaxable_insns)
5498 (arc_num_relaxable_ins): New variable.
5499 (rlx_operand_type, arc_rlx_types): New enums.
5500 (arc_relaxable_ins): New structure.
5501 (OPTION_RELAX): New option.
5502 (arc_insn): New relax member.
5503 (arc_flags): Remove.
5504 (relax_insn_p): New function.
5505 (apply_fixups): Likewise.
5506 (relaxable_operand): Likewise.
5507 (may_relax_expr): Likewise.
5508 (relaxable_flag): Likewise.
5509 (arc_pcrel_adjust): Likewise.
5510 (md_estimate_size_before_relax): Implement.
5511 (md_convert_frag): Likewise.
5512 (md_parse_option): Handle new mrelax option.
5513 (md_show_usage): Likewise.
5514 (assemble_insn): Set relax member.
5515 (emit_insn0): New function.
5516 (emit_insn1): Likewise.
5517 (emit_insn): Handle relaxation case.
5518 * NEWS: Mention the new relaxation option.
5519 * doc/c-arc.texi (ARC Options): Document new mrelax option.
5520 * doc/as.texinfo (Target ARC Options): Likewise.
5521 * testsuite/gas/arc/relax-avoid1.d: New file.
5522 * testsuite/gas/arc/relax-avoid1.s: Likewise.
5523 * testsuite/gas/arc/relax-avoid2.d: Likewise.
5524 * testsuite/gas/arc/relax-avoid2.s: Likewise.
5525 * testsuite/gas/arc/relax-avoid3.d: Likewise.
5526 * testsuite/gas/arc/relax-avoid3.s: Likewise.
5527 * testsuite/gas/arc/relax-b.d: Likewise.
5528 * testsuite/gas/arc/relax-b.s: Likewise.
5529
9264d325
NC
55302016-02-08 Nick Clifton <nickc@redhat.com>
5531
5532 * config/tc-ia64.c (dot_prologue): Fix formatting.
5533
39306124
NC
55342016-02-04 Nick Clifton <nickc@redhat.com>
5535
5536 * config/obj-elf.c (obj_elf_change_section): Remove support for
5537 ARM NOREAD sections.
5538 * config/tc-arm.c (arm_elf_section_letter): Delete.
5539 * config/tc-arm.h (md_elf_section_letter): Delete.
5540 * doc/c-arm.texi (ARM Section Attribute): Delete section.
5541 * testsuite/gas/arm/section-execute-only.d: Delete.
5542 * testsuite/gas/arm/section-execute-only.s: Delete.
5543
c1d9289f
NC
55442016-02-04 Nick Clifton <nickc@redhat.com>
5545
5546 PR target/19561
5547 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
5548 to handle encoding of RRUX instruction.
5549 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
5550 shift instructions.
5551 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
5552
ea173078
MF
55532016-02-03 Max Filippov <jcmvbkbc@gmail.com>
5554
5555 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
5556 substitutions for BFD_RELOC_* as unsigned.
c1d9289f
NC
5557 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
5558 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
5559 * testsuite/gas/xtensa/loc.s: New file: loc test.
ea173078 5560
3d8efabf
KB
55612016-02-03 Kevin Buettner <kevinb@redhat.com>
5562
abe051ba 5563 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
3d8efabf 5564
0cb4071e
L
55652016-02-03 H.J. Lu <hongjiu.lu@intel.com>
5566
5567 PR gas/19520
5568 * NEWS: Mention new command line option -mrelax-relocations and
5569 new configure option --enable-x86-relax-relocations for x86
5570 target.
5571 * config.in: Regenerated.
5572 * configure.ac: Add --enable-x86-relax-relocations.
5573 (ac_default_x86_relax_relocations): New. Default to 1 except
5574 for x86 Solaris targets older than Solaris 12.
5575 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
5576 * configure: Likewise.
5577 * config/tc-i386.c (generate_relax_relocations): New.
5578 (OPTION_MRELAX_RELOCATIONS): Likewise.
5579 (output_disp): Don't generate relax relocations if
5580 generate_relax_relocations is 0.
5581 (md_longopts): Add -mrelax-relocations.
5582 (md_show_usage): Likewise.
5583 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
5584 * doc/c-i386.texi: Document -mrelax-relocations=.
5585 * testsuite/gas/i386/got-no-relax.d: New file.
5586 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
5587 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
5588 * testsuite/gas/i386/localpic.d: Likewise.
5589 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
5590 * testsuite/gas/i386/reloc32.d: Likewise.
5591 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
5592 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
5593 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
5594 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
5595 * testsuite/gas/i386/i386.exp: Run got-no-relax and
5596 x86-64-gotpcrel-no-relax.
5597
9d3fc4e1
L
55982016-02-03 H.J. Lu <hongjiu.lu@intel.com>
5599
5600 * NEWS: Mention new command line option -mfence-as-lock-add=yes
5601 for x86 target.
5602
ab71ce86
L
56032016-02-03 H.J. Lu <hongjiu.lu@intel.com>
5604
5605 * NEWS: Remove duplicated marker for 2.26.
5606
46d70d04
RL
56072016-02-02 Renlin Li <renlin.li@arm.com>
5608
5609 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
5610
0f99255d
AB
56112016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5612
5613 * testsuite/gas/ip2k/allinsn.d: New file.
5614 * testsuite/gas/ip2k/allinsn.s: New file.
5615 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
5616
5d7a9011
AB
56172016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5618
5619 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
5620 some load instructions.
5621 * testsuite/gas/epiphany/allinsn.d: Likewise.
5622 * testsuite/gas/epiphany/regression.d: Likewise.
5623
a012b298
AB
56242016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
5627 suffixes from instruction mnemonics in expected output.
5628 * testsuite/gas/epiphany/allinsn.d: Likewise.
5629 * testsuite/gas/epiphany/regression.d: Likewise.
5630 * testsuite/gas/epiphany/sample.d: Likewise.
5631
2f74d480
AB
56322016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5633
5634 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
5635 names.
5636 * testsuite/gas/epiphany/allinsn.d: Likewise.
5637 * testsuite/gas/epiphany/sample.d: Likewise.
5638
b89807c6
AB
56392016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * testsuite/gas/epiphany/sample.d: Update expected output.
5642
b125bd17
CZ
56432016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
5644
abe051ba
AM
5645 * config/tc-arc.c (md_apply_fix): Allow addendum.
5646 (arc_reloc_op): Allow complex expressions for tpoff.
5647 (md_apply_fix): Handle resolved TLS local symbol.
b125bd17
CZ
5648 * testsuite/gas/arc/tls-relocs1.d: New file.
5649 * testsuite/gas/arc/tls-relocs1.s: Likewise.
5650
4f1d6205
L
56512016-02-01 Loria <Loria@phantasia.org>
5652
5653 PR target/19311
5654 * config/tc-arm.c (encode_arm_immediate): Recode to improve
5655 efficiency and avoid an LLVM loop optimization bug.
5656
ac0d427f
NC
56572016-02-01 Nick Clifton <nickc@redhat.com>
5658
5659 * config/tc-microblaze.c (parse_imm): Fix compile time warning
5660 message extending a negative 32-bit value into a larger signed
5661 value on a 32-bit host.
5662
348ef89a
L
56632016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5664
5665 PR gas/19532
5666 * configure.ac (compressed_debug_sections): Replace == with =.
5667 * configure: Regenerated.
5668
e4e00185
AS
56692016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
5670 H.J. Lu <hongjiu.lu@intel.com>
5671
5672 * config/tc-i386.c (avoid_fence): New.
5673 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
5674 is true.
5675 (OPTION_FENCE_AS_LOCK_ADD): New.
5676 (md_longopts): Add -mfence-as-lock-add.
5677 (md_parse_option): Handle -mfence-as-lock-add.
5678 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
5679 * doc/c-i386.texi (-mfence-as-lock-add): Document.
ac2789d7
L
5680 * testsuite/gas/i386/i386.exp: Run new tests.
5681 * testsuite/gas/i386/fence-as-lock-add.s: New.
5682 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
5683 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
5684 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
5685 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
e4e00185 5686
27ba7c94
L
56872016-01-27 H.J. Lu <hongjiu.lu@intel.com>
5688
5689 * configure.ac (compressed_debug_sections): Remove trailing `]'.
5690 * configure: Regenerated.
5691
d1982f93
L
56922016-01-25 H.J. Lu <hongjiu.lu@intel.com>
5693
5694 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
5695 (OPTION_MOMIT_LOCK_PREFIX): This.
5696 (md_longopts): Updated.
5697 (md_parse_option): Likewise.
5698
00acd688
CM
56992016-01-25 Catherine Moore <clm@codesourcery.com>
5700
5701 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
5702 if abicalls are in effect.
5703 * testsuite/gas/mips/sdata-gp.s: New test.
5704 * testsuite/gas/mips/sdata-gp.d: New expected output
5705 * testsuite/gas/mips/mips.exp: Run new test.
5706
5bc5ae88
RL
57072016-01-25 Renlin Li <renlin.li@arm.com>
5708
5709 * testsuite/gas/arm/thumb2_it_search.d: New.
5710 * testsuite/gas/arm/thumb2_it_search.s: New.
5711
61e137e2
NC
57122016-01-21 Nick Clifton <nickc@redhat.com>
5713
5714 PR gas/19454
5715 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
5716 with arm-netbsdelf target.
5717 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
5718
aed5fc75
NC
57192016-01-20 Nick Clifton <nickc@redhat.com>
5720
74b92a5c
NC
5721 PR 19456
5722 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
5723 * testsuite/gas/arm/blx-bl-convert.d
5724 * testsuite/gas/arm/plt-1.d: Likewise.
5725 * testsuite/gas/arm/reloc-bad.d: Likewise.
5726 * testsuite/gas/arm/thumb-w-good.d: Likewise.
5727 * testsuite/gas/arm/thumb2_pool.d: Likewise.
5728 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
5729 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
5730
72e0b254
NC
5731 PR 19499
5732 * doc/as.texinfo (Errors): Correct documentation describing the
5733 interaction of .file and .line with warning and error messages.
5734
aed5fc75
NC
5735 PR 19458
5736 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
5737 * testsuite/gas/arm/archv8m-main.d: Likewise.
5738 * testsuite/gas/arm/archv8m-base.d: Likewise.
5739
0bff6e2d
MW
57402016-01-20 Matthew Wahab <matthew.wahab@arm.com>
5741
5742 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
5743 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
5744 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
5745
91f68a68
MG
57462016-01-20 Mickael Guene <mickael.guene@st.com>
5747 Terry Guo <terry.guo@arm.com>
5748
5749 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
5750 SHF_ARM_NOREAD section flag.
5751 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
5752 handle letter 'y'.
5753 (arm_elf_section_letter) : Declare it.
5754 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
5755 SHF_ARM_NOREAD section flag.
5756 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
5757
5758 * testsuite/gas/arm/section-execute-only.s: New test case.
5759 * testsuite/gas/arm/section-execute-only.d: Expected output.
5760
100b4f2e
MR
57612016-01-18 Maciej W. Rozycki <macro@imgtec.com>
5762
5763 * config/tc-mips.c (micromips_insn_length): Remove the mention
5764 of 48-bit microMIPS instructions.
5765
3d961d0d
AM
57662016-01-18 Alan Modra <amodra@gmail.com>
5767
5768 * configure: Regenerate.
5769
5c14705f
AM
57702016-01-17 Alan Modra <amodra@gmail.com>
5771
5772 * configure: Regenerate.
5773
b3066ae8
AM
57742016-01-17 Alan Modra <amodra@gmail.com>
5775
5776 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
5777
4d82fe66
NC
57782016-01-14 Nick Clifton <nickc@redhat.com>
5779
5780 * testsuite/gas/rl78/sp-relative-movw.s: New test.
5781 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
5782 * testsuite/gas/rl78/rl78.exp: Run the new test.
5783
651657fa
MW
57842016-01-14 Matthew Wahab <matthew.wahab@arm.com>
5785
5786 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
5787 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
5788
3facb0e9
MR
57892016-01-13 Maciej W. Rozycki <macro@imgtec.com>
5790
5791 * config/tc-nios2.c (output_movia): Preset `code' to 0.
5792
8a4c2869
YS
57932016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
5794
5795 * config/tc-h8300.c (get_operand): Remove spurious condition in
5796 test for closing parenthesis.
5797
105bde57
MW
57982016-01-12 Matthew Wahab <matthew.wahab@arm.com>
5799
5800 * config/tc-arm.c (arm_ext_v8_2): New.
5801 (insns): Add "esb".
5802 * testsuite/gas/arm/armv8_2-a.d: New.
5803 * testsuite/gas/arm/armv8_2-a.s: New.
5804
5230aa4d
AM
58052016-01-12 Alan Modra <amodra@gmail.com>
5806
5807 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
5808
afa8d405
PB
58092016-01-11 Peter Bergner <bergner@vnet.ibm.com>
5810
5811 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
5812 xvcmpnesp, xvcmpnesp.>: Delete tests.
5813 * testsuite/gas/ppc/power9.s: Likewise.
5814 * testsuite/gas/ppc/vsx3.d: Likewise.
5815 * testsuite/gas/ppc/vsx3.s: Likewise.
5816
83c3256e
AS
58172016-01-08 Andreas Schwab <schwab@linux-m68k.org>
5818
5819 PR gas/13050
5820 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
5821 * testsuite/gas/m68k/p13050-1.s: New file.
5822 * testsuite/gas/m68k/p13050-2.d: New file.
5823 * testsuite/gas/m68k/p13050-2.s: New file.
5824
b05a65d0
AB
58252016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
5826
5827 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
5828 * testsuite/gas/arc/add.d: Likewise.
5829 * testsuite/gas/arc/and.d: Likewise.
5830 * testsuite/gas/arc/asl.d: Likewise.
5831 * testsuite/gas/arc/asr.d: Likewise.
5832 * testsuite/gas/arc/bic.d: Likewise.
5833 * testsuite/gas/arc/extb.d: Likewise.
5834 * testsuite/gas/arc/extw.d: Likewise.
5835 * testsuite/gas/arc/j.d: Likewise.
5836 * testsuite/gas/arc/jl.d: Likewise.
5837 * testsuite/gas/arc/ld2.d: Likewise.
5838 * testsuite/gas/arc/lsr.d: Likewise.
5839 * testsuite/gas/arc/mov.d: Likewise.
5840 * testsuite/gas/arc/or.d: Likewise.
5841 * testsuite/gas/arc/pcl-relocs.d: Likewise.
5842 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
5843 * testsuite/gas/arc/pic-relocs.d: Likewise.
5844 * testsuite/gas/arc/plt-relocs.d: Likewise.
5845 * testsuite/gas/arc/rlc.d: Likewise.
5846 * testsuite/gas/arc/ror.d: Likewise.
5847 * testsuite/gas/arc/rrc.d: Likewise.
5848 * testsuite/gas/arc/sbc.d: Likewise.
5849 * testsuite/gas/arc/sda-relocs.d: Likewise.
5850 * testsuite/gas/arc/sda-relocs2.d: Likewise.
5851 * testsuite/gas/arc/sexb.d: Likewise.
5852 * testsuite/gas/arc/sexw.d: Likewise.
5853 * testsuite/gas/arc/st.d: Likewise.
5854 * testsuite/gas/arc/sub.d: Likewise.
5855 * testsuite/gas/arc/tls-relocs.d: Likewise.
5856 * testsuite/gas/arc/xor.d: Likewise.
5857
6f2750fe
AM
58582016-01-01 Alan Modra <amodra@gmail.com>
5859
5860 Update year range in copyright notice of all files.
5861
3499769a
AM
5862For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
5863\f
5864Copyright (C) 2016 Free Software Foundation, Inc.
5865
5866Copying and distribution of this file, with or without modification,
5867are permitted in any medium without royalty provided the copyright
5868notice and this notice are preserved.
5869
5870Local Variables:
5871mode: change-log
5872left-margin: 8
5873fill-column: 74
5874version-control: never
5875End:
This page took 0.545126 seconds and 4 git commands to generate.