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