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