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