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