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