1 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
2 Andrew Bennett <andrew.bennett@imgtec.com>
4 * config/tc-mips.c (relaxed_branch_length): Use the long
5 sequence where the target is a weak symbol.
6 (relaxed_micromips_32bit_branch_length): Likewise.
7 (relaxed_micromips_16bit_branch_length): Likewise.
8 * testsuite/gas/mips/branch-weak-1.d: New test.
9 * testsuite/gas/mips/branch-weak-2.d: New test.
10 * testsuite/gas/mips/branch-weak-3.d: New test.
11 * testsuite/gas/mips/branch-weak-4.d: New test.
12 * testsuite/gas/mips/branch-weak-5.d: New test.
13 * testsuite/gas/mips/branch-weak.l: New stderr output.
14 * testsuite/gas/mips/branch-weak.s: New test source.
15 * testsuite/gas/mips/mips.exp: Run the new tests.
17 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
19 * config/tc-mips.c (relaxed_branch_length): Use the long
20 sequence where the distance cannot be determined.
21 (relaxed_micromips_32bit_branch_length): Likewise.
22 * testsuite/gas/mips/branch-extern-1.d: New test.
23 * testsuite/gas/mips/branch-extern-2.d: New test.
24 * testsuite/gas/mips/branch-extern-3.d: New test.
25 * testsuite/gas/mips/branch-extern-4.d: New test.
26 * testsuite/gas/mips/branch-extern.l: New stderr output.
27 * testsuite/gas/mips/branch-extern.s: New test source.
28 * testsuite/gas/mips/branch-section-1.d: New test.
29 * testsuite/gas/mips/branch-section-2.d: New test.
30 * testsuite/gas/mips/branch-section-3.d: New test.
31 * testsuite/gas/mips/branch-section-4.d: New test.
32 * testsuite/gas/mips/branch-section.l: New stderr output.
33 * testsuite/gas/mips/branch-section.s: New test source.
34 * testsuite/gas/mips/mips.exp: Run the new tests.
36 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
38 * testsuite/gas/arc/textauxregister.d: New file.
39 * testsuite/gas/arc/textauxregister.s: Likewise.
40 * testsuite/gas/arc/textcondcode.d: Likewise.
41 * testsuite/gas/arc/textcondcode.s: Likewise.
42 * testsuite/gas/arc/textcoreregister.d: Likewise.
43 * testsuite/gas/arc/textcoreregister.s: Likewise.
44 * testsuite/gas/arc/textpseudoop.d: Likewise.
45 * testsuite/gas/arc/textpseudoop.s: Likewise.
46 * testsuite/gas/arc/ld2.d: Update test.
47 * testsuite/gas/arc/st.d: Likewise.
48 * testsuite/gas/arc/taux.d: Likewise.
49 * doc/c-arc.texi (ARC Directives): Add .extCondCode,
50 .extCoreRegister and .extAuxRegister documentation.
51 * config/tc-arc.c (arc_extcorereg): New function.
52 (md_pseudo_table): Add .extCondCode, .extCoreRegister and
53 .extAuxRegister pseudo-ops.
54 (extRegister_t): New type.
55 (ext_condcode, arc_aux_hash): New global variable.
56 (find_opcode_match): Check for extensions.
57 (preprocess_operands): Likewise.
58 (md_begin): Add aux registers in a hash.
59 (assemble_insn): Update use arc_flags member.
60 (tokenize_extregister): New function.
61 (create_extcore_section): Likewise.
62 * config/tc-arc.h (arc_flags): Delete code, add flgp.
64 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
66 * testsuite/gas/arc/noargs_a7.d: New file.
67 * testsuite/gas/arc/noargs_a7.s: Likewise.
68 * testsuite/gas/arc/noargs_hs.d: Likewise.
69 * testsuite/gas/arc/noargs_hs.s: Likewise.
71 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
73 * testsuite/gas/arc/textinsn-errors.d: New File.
74 * testsuite/gas/arc/textinsn-errors.err: Likewise.
75 * testsuite/gas/arc/textinsn-errors.s: Likewise.
76 * testsuite/gas/arc/textinsn2op.d: Likewise.
77 * testsuite/gas/arc/textinsn2op.s: Likewise.
78 * testsuite/gas/arc/textinsn2op01.d: Likewise.
79 * testsuite/gas/arc/textinsn2op01.s: Likewise.
80 * testsuite/gas/arc/textinsn3op.d: Likewise.
81 * testsuite/gas/arc/textinsn3op.s: Likewise.
82 * doc/c-arc.texi (ARC Directives): Add .extInstruction
84 * config/tc-arc.c (arcext_section): New variable.
85 (arc_extinsn): New function.
86 (md_pseudo_table): Add .extInstruction pseudo op.
87 (attributes_t): New type.
88 (suffixclass, syntaxclass, syntaxclassmod): New constant
90 (find_opcode_match): Remove arc_num_opcodes.
92 (tokenize_extinsn): New function.
93 (arc_set_ext_seg): Likewise.
94 (create_extinst_section): Likewise.
96 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
98 * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
99 (arc_adjust_symtab): New function.
100 * config/tc-arc.h (ARC_FLAG_AUX): Define.
101 (obj_adjust_symtab): Likewise.
102 * testsuite/gas/arc/taux.d: New file.
103 * testsuite/gas/arc/taux.s: Likewise.
105 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
107 * config/tc-mips.c (s_option): Sanitize `.option picX'
109 * testsuite/gas/mips/option-pic-1.d: New test.
110 * testsuite/gas/mips/option-pic-2.l: New list test.
111 * testsuite/gas/mips/option-pic-1.s: New test source.
112 * testsuite/gas/mips/option-pic-2.s: New test source.
113 * testsuite/gas/mips/mips.exp: Run the new tests.
115 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
117 * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
119 * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
120 * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
121 * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
122 * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
123 * testsuite/gas/mips/mips.exp: Run the new tests.
125 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
127 * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
129 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
131 * messages.c (as_bad): Fix a typo in description.
133 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
135 * config/tc-mips.c (mips_check_options): Unify messages.
137 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
139 * config/tc-mips.c (mips_check_options): Use `opts->isa'
142 2016-04-08 Nick Clifton <nickc@redhat.com>
145 * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
146 COFF and AOUT sparc targets.
148 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
150 * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
151 * testsuite/gas/arc/nps400-2.d: New file.
152 * testsuite/gas/arc/nps400-2.s: New file.
154 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
156 * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
158 (arc_opcode_hash_entry_iterator_init): New function.
159 (arc_opcode_hash_entry_iterator_next): New function.
160 (find_opcode_match): Iterate over all arc_opcode entries
161 referenced by the arc_opcode_hash_entry passed in as a parameter.
163 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
165 * config/tc-arc.c (arc_find_opcode): Now returns
166 arc_opcode_hash_entry pointer.
167 (find_opcode_match): Update argument type, extract arc_opcode from
168 incoming arc_opcode_hash_entry.
169 (find_special_case_pseudo): Update return type.
170 (find_special_case_flag): Update return type.
171 (find_special_case): Update return type.
172 (assemble_tokens): Lookup arc_opcode_hash_entry based on
173 instruction mnemonic, then use find_opcode_match to identify
176 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
178 * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
179 (arc_find_opcode): New function.
180 (find_special_case_pseudo): Use arc_find_opcode.
181 (find_special_case_flag): Likewise.
182 (assemble_tokens): Likewise.
183 (md_begin): Build hash using struct arc_opcode_hash_entry.
185 2016-04-07 Claudiu Zissulescu <claziss@synopsys.com>
187 * config/tc-arc.c (arc_option): Prepare string for automatic
189 (declare_register): Likewise.
191 2016-04-06 James Greenhalgh <james.greenhalgh@arm.com>
193 * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
194 Correct entry for RDMA. Alpha sort entries.
196 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
198 * config/tc-arc.c (tokenize_flags): Allow greater range of
199 characters into flag names.
201 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
203 * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
205 (preprocess_operands): Delete.
206 (assemble_tokens): Remove call to preprocess_operands.
208 2016-04-07 Nick Clifton <nickc@redhat.com>
211 * config/tc-sparc.c (sparc_ip): Report an error if the expression
212 inside a %-macro could not be fully parsed.
213 * expr.c (integer_constant): Accept and ignore U suffixes to
215 (operand): When a missing closing parenthesis is encountered,
216 report the character that was found instead.
217 * testsuite/gas/mips/tls-ill.l: Update expected error message.
218 * testsuite/gas/sparc/pr19910-1.d: New test driver.
219 * testsuite/gas/sparc/pr19910-1.s: New test.
220 * testsuite/gas/sparc/pr19910-2.l: Expected error output.
221 * testsuite/gas/sparc/pr19910-2.s: New test.
222 * testsuite/gas/sparc/sparc.exp: Run the new tests.
224 2016-04-06 Nick Clifton <nickc@redhat.com>
226 * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
227 an EINT instruction. Warn/fix as necessary.
228 * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
229 * testsuite/gas/msp430/bad.l: Update expected messages.
231 2016-04-05 Andrew Burgess <andrew.burgess@embecosm.com>
233 * testsuite/gas/arc/nps400-1.d: Update expected results.
234 * testsuite/gas/arc/nps400-1.s: Additional test cases.
236 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
238 * config/tc-arc.c (is_code_density_p): Compare directly the
240 (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
241 (check_cpu_feature): New function.
242 (find_opcode_match): Use check_cpu_feature function.
243 (preprocess_operands): Likewise.
244 (md_parse_option): Use mfpuda, mdpfp, mspfp options.
245 * testsuite/gas/arc/tdpfp.d: New file.
246 * testsuite/gas/arc/tfpuda.d: Likewise.
247 * testsuite/gas/arc/tfpx.s: Likewise.
249 2016-04-05 Jiong Wang <jiong.wang@arm.com>
251 * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
252 * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
253 * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
254 * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
255 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
256 * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
257 * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
258 * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
260 * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
262 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
264 * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
265 JUMP instructions type.
266 * testsuite/gas/arc/relocs-errors.d: New file.
267 * testsuite/gas/arc/relocs-errors.err: Likewise.
268 * testsuite/gas/arc/relocs-errors.s: Likewise.
270 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
273 * testsuite/gas/i386/i386.exp: Run pr19498.
274 * testsuite/gas/i386/pr19498.d: New file.
275 * testsuite/gas/i386/pr19498.s: Likewise.
277 2016-04-04 Andrew Burgess <andrew.burgess@embecosm.com>
279 * config/tc-arc.h: Include 'opcode/arc.h'.
280 (MAX_INSN_ARGS): Delete.
281 (MAX_INSN_FLGS): Delete.
283 2016-04-04 Alan Modra <amodra@gmail.com>
286 * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
287 from function on all paths that set sy_resolving.
289 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
291 * app.c (app_push): use XNEW macro.
293 * config/obj-elf.c (obj_elf_change_section): Likewise.
294 (elf_copy_symbol_attributes): Likewise.
295 (obj_elf_size): Likewise.
296 (build_group_lists): Likewise.
297 * config/tc-aarch64.c (add_operand_error_record): Likewise.
298 (md_assemble): Likewise.
299 (tc_gen_reloc): Likewise.
300 (get_upper_str): Likewise.
301 (aarch64_parse_features): Likewise.
302 * config/tc-arm.c (insert_reg_alias): Likewise.
303 (insert_neon_reg_alias): Likewise.
304 (find_or_make_literal_pool): Likewise.
305 (s_arm_elf_cons): Likewise.
306 (add_unwind_opcode): Likewise.
307 (arm_parse_extension): Likewise.
308 * config/tc-avr.c (create_record_for_frag): Likewise.
309 * config/tc-crx.c: Likewise.
310 * config/tc-d30v.c: Likewise.
311 * config/tc-dlx.c (s_proc): Likewise.
312 * config/tc-ft32.c: Likewise.
313 * config/tc-h8300.c: Likewise.
314 * config/tc-hppa.c (pa_proc): Likewise.
315 (create_new_space): Likewise.
316 (create_new_subspace): Likewise.
317 * config/tc-i860.c: Likewise.
318 * config/tc-i960.c: Likewise.
319 * config/tc-ia64.c: Likewise.
320 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
321 (iq2000_record_hi16): Likewise.
322 * config/tc-m32c.c (m32c_indirect_operand): Likewise.
323 * config/tc-m32r.c (debug_sym): Likewise.
324 (m32r_record_hi16): Likewise.
325 * config/tc-m68k.c (m68k_ip): Likewise.
326 (md_begin): Likewise.
327 * config/tc-mcore.c: Likewise.
328 * config/tc-microblaze.c (check_got): Likewise.
329 * config/tc-mips.c (append_insn): Likewise.
330 (s_mipsset): Likewise.
331 (mips_record_label): Likewise.
332 (s_mips_end): Likewise.
333 * config/tc-mmix.c (mmix_frob_file): Likewise.
334 * config/tc-mn10200.c: Likewise.
335 * config/tc-mn10300.c: Likewise.
336 * config/tc-moxie.c: Likewise.
337 * config/tc-msp430.c: Likewise.
338 * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
339 * config/tc-ns32k.c: Likewise.
340 * config/tc-or1k.c: Likewise.
341 * config/tc-pdp11.c: Likewise.
342 * config/tc-pj.c (fake_opcode): Likewise.
343 * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
344 (ppc_macro): Likewise.
345 (ppc_dwsect): Likewise.
346 (ppc_machine): Likewise.
347 * config/tc-rl78.c (rl78_frag_init): Likewise.
348 * config/tc-rx.c (rx_frag_init): Likewise.
349 * config/tc-s390.c (s390_lit_suffix): Likewise.
350 (s390_machine): Likewise.
351 (s390_machinemode): Likewise.
352 * config/tc-score.c (s3_insert_reg): Likewise.
353 (s3_gen_reloc): Likewise.
354 * config/tc-score7.c (s7_insert_reg): Likewise.
355 (s7_gen_reloc): Likewise.
356 * config/tc-tic30.c (tic30_operand): Likewise.
357 * config/tc-tic4x.c (tic4x_inst_make): Likewise.
358 * config/tc-tic54x.c (stag_add_field): Likewise.
359 (tic54x_struct): Likewise.
360 (tic54x_space): Likewise.
361 (tic54x_field): Likewise.
362 (tic54x_mlib): Likewise.
363 (subsym_substitute): Likewise.
364 * config/tc-tic6x.c (tic6x_frob_label): Likewise.
365 * config/tc-vax.c: Likewise.
366 * config/tc-xc16x.c: Likewise.
367 * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
368 (directive_push): Likewise.
369 (xtensa_begin_directive): Likewise.
370 (tokenize_arguments): Likewise.
371 (xtensa_add_literal_sym): Likewise.
372 (new_resource_table): Likewise.
373 (resize_resource_table): Likewise.
374 (emit_single_op): Likewise.
375 (xtensa_create_trampoline_frag): Likewise.
376 (xtensa_maybe_create_literal_pool_frag): Likewise.
377 (xtensa_add_config_info): Likewise.
378 (xtensa_realloc_fixup_cache): Likewise.
379 (add_subseg_info): Likewise.
380 (cache_literal_section): Likewise.
381 (add_xt_block_frags): Likewise.
382 (add_xt_prop_frags): Likewise.
383 (init_op_placement_info_table): Likewise.
384 (build_section_rename): Likewise.
385 * config/tc-z80.c: Likewise.
386 * config/tc-z8k.c: Likewise.
387 * depend.c (register_dependency): Likewise.
388 * dwarf2dbg.c (get_line_subseg): Likewise.
389 (dwarf2_gen_line_info_1): Likewise.
390 (get_filenum): Likewise.
391 * ecoff.c (allocate_scope): Likewise.
392 (allocate_vlinks): Likewise.
393 (allocate_shash): Likewise.
394 (allocate_thash): Likewise.
395 (allocate_tag): Likewise.
396 (allocate_forward): Likewise.
397 (allocate_thead): Likewise.
398 (allocate_lineno_list): Likewise.
399 * expr.c (make_expr_symbol): Likewise.
400 * hash.c (hash_new_sized): Likewise.
401 * input-file.c (input_file_push): Likewise.
402 * listing.c (file_info): Likewise.
403 (listing_newline): Likewise.
404 * macro.c (new_formal): Likewise.
405 (define_macro): Likewise.
406 * remap.c (add_debug_prefix_map): Likewise.
407 * symbols.c (symbol_find_noref): Likewise.
408 (define_dollar_label): Likewise.
409 (fb_label_instance_inc): Likewise.
410 (symbol_relc_make_value): Likewise.
412 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
414 * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
415 * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
416 (ppc_znop): Likewise.
417 (ppc_pe_section): Likewise.
418 (ppc_frob_symbol): Likewise.
419 * config/tc-tic30.c (tic30_operand): Likewise.
420 * config/tc-tic4x.c (tic4x_sect): Likewise.
421 (tic4x_usect): Likewise.
423 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
425 * config/tc-alpha.c: Const qualify FLT_CHARS.
426 * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
427 * config/tc-cris.h: Likewise.
429 * config/tc-mmix.c (md_atof): Adjust comment.
430 * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
431 * tc.h: Declare FLT_CHARS and EXP_CHARS.
433 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
435 * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
436 * config/tc-score7.c (s7_gen_reloc): Likewise.
438 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
440 * config/tc-arm.c (do_t_branch): Change the type of reloc to
441 bfd_reloc_code_real_type.
443 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
445 * config/bfin-parse.y (current_inputline): Remove definition.
446 * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
448 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
450 * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
453 2016-04-02 Alan Modra <amodra@gmail.com>
456 * read.c (assign_symbol): Consume rest of line after an error
457 rather than continuing to process the line.
459 2016-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
461 * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
462 (MAX_FLAG_NAME_LENGTH): ...this.
463 (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
464 * config/tc-arc.c (tokenize_flags): Likewise.
466 2016-04-01 Alan Modra <amodra@gmail.com>
468 * cgen.c (weak_operand_overflow_check): Return const char*.
469 * messages.c (as_internal_value_out_of_range): Formatting.
470 (as_warn_value_out_of_range): Consify prefix param.
471 (as_bad_value_out_of_range): Likewise.
472 * read.c (s_errwarn): Constify msg..
473 (s_float_space, float_cons): ..and err.
474 * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
475 ieee_md_atof, vax_md_atof): Update prototypes.
476 * tc.h (md_atof): Update prototype.
477 * config/atof-ieee.c (ieee_md_atof): Return const char*.
478 * config/atof-vax.c (vax_md_atof): Likewise.
479 * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
480 * config/tc-aarch64.c (md_atof): Return const char*.
481 * config/tc-alpha.c (s_alpha_section_name): Likewise.
482 (s_alpha_comm): Constify sec_name.
483 (section_name): Constify.
484 (s_alpha_section): Consify name..
485 (alpha_elf_section_letter): ..and ptr_msg param..
486 (md_atof): ..and return.
487 * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
488 * config/tc-arc.c (md_atof): Return const char*.
489 * config/tc-arm.c (md_atof): Likewise.
490 * config/tc-avr.c (md_atof): Likewise.
491 * config/tc-bfin.c (md_atof): Likewise.
492 * config/tc-cr16.c (md_atof): Likewise.
493 * config/tc-cris.c (md_atof): Likewise.
494 * config/tc-crx.c (md_atof): Likewise.
495 * config/tc-d10v.c (md_atof): Likewise.
496 * config/tc-d30v.c (md_atof): Likewise.
497 * config/tc-dlx.c (md_atof): Likewise.
498 * config/tc-epiphany.c (md_atof): Likewise.
499 * config/tc-fr30.c (md_atof): Likewise.
500 * config/tc-frv.c (md_atof): Likewise.
501 * config/tc-ft32.c (md_atof): Likewise.
502 * config/tc-h8300.c (md_atof): Likewise.
503 * config/tc-hppa.c (struct default_subspace_dict): Constify name.
504 (struct default_space_dict): Likewise.
505 (create_new_space): Constify name param.
506 (create_new_subspace): Likewise.
507 (is_defined_space, is_defined_subspace): Likewise.
508 (pa_parse_space_stmt): Constify space_name param.
509 (md_atof): Return const char*.
510 (pa_spaces_begin): Constify name.
511 * config/tc-i370.c (md_atof): Return const char*.
512 * config/tc-i386.c (md_atof): Likewise.
513 (x86_64_section_letter): Constify ptr_msg param.
514 * config/tc-i386.h (x86_64_section_letter): Update prototype.
515 * config/tc-i860.c (struct i860_it): Constify error.
516 (md_atof): Return const char*.
517 * config/tc-i960.c (md_atof): Likewise.
518 * config/tc-ia64.c (md_atof): Likewise.
519 (ia64_elf_section_letter): Constify ptr_msg param.
520 * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
521 * config/tc-ip2k.c (md_atof): Return const char*.
522 * config/tc-iq2000.c (md_atof): Likewise.
523 * config/tc-lm32.c (md_atof): Likewise.
524 * config/tc-m32c.c (md_atof): Likewise.
525 * config/tc-m32r.c (md_atof): Likewise.
526 * config/tc-m68hc11.c (md_atof): Likewise.
527 * config/tc-m68k.c (md_atof): Likewise.
528 * config/tc-mcore.c (md_atof): Likewise.
529 * config/tc-mep.c (md_atof): Likewise.
530 (mep_elf_section_letter): Constify ptr_msg param.
531 * config/tc-mep.h (mep_elf_section_letter): Update prototype.
532 * config/tc-metag.c (md_atof): Return const char*.
533 * config/tc-microblaze.c (md_atof): Likewise.
534 * config/tc-microblaze.h (md_atof): Delete prototype.
535 * config/tc-mips.c (mips_parse_argument_token): Constify err.
536 (md_atof): Return const char*.
537 * config/tc-mmix.c (md_atof): Likewise.
538 * config/tc-mn10200.c (md_atof): Likewise.
539 * config/tc-mn10300.c (md_atof): Likewise.
540 * config/tc-moxie.c (md_atof): Likewise.
541 * config/tc-msp430.c (md_atof): Likewise.
542 * config/tc-mt.c (md_atof): Likewise.
543 * config/tc-nds32.c (md_atof): Likewise.
544 * config/tc-nios2.c (md_atof): Likewise.
545 (nios2_elf_section_letter): Constify ptr_msg param.
546 * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
547 * config/tc-ns32k.c (md_atof): Return const char*.
548 * config/tc-or1k.c (md_atof): Likewise.
549 * config/tc-pdp11.c (struct pdp11_code): Constify error.
550 (md_atof): Return const char*.
551 * config/tc-pj.c (md_atof): Likewise.
552 * config/tc-ppc.c (md_atof): Likewise.
553 * config/tc-rl78.c (md_atof): Likewise.
554 * config/tc-rx.c (md_atof): Likewise.
555 * config/tc-s390.c (md_atof): Likewise.
556 * config/tc-score.c (s3_atof, md_atof): Likewise.
557 * config/tc-sh.c (md_atof): Likewise.
558 * config/tc-sparc.c (struct sparc_it): Constify error.
559 (md_atof): Return const char*.
560 * config/tc-spu.c (md_atof): Likewise.
561 * config/tc-tic30.c (md_atof): Likewise.
562 * config/tc-tic4x.c (md_atof): Likewise.
563 * config/tc-tic54x.c (md_atof): Likewise.
564 * config/tc-tic6x.c (md_atof): Likewise.
565 * config/tc-tilegx.c (md_atof): Likewise.
566 * config/tc-tilepro.c (md_atof): Likewise.
567 * config/tc-v850.c (parse_register_list, md_atof): Likewise.
568 * config/tc-vax.c (md_atof): Likewise.
569 * config/tc-visium.c (md_atof): Likewise.
570 * config/tc-xc16x.c (md_atof): Likewise.
571 * config/tc-xgate.c (md_atof): Likewise.
572 * config/tc-xstormy16.c (md_atof): Likewise.
573 * config/tc-xtensa.c (md_atof): Likewise.
574 * config/tc-z80.c (md_atof): Likewise.
575 * config/tc-z8k.c (md_atof): Likewise.
577 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
579 * config/tc-xtensa.c (struct rename_section_struct): Make old_name
581 (xtensa_section_rename): Make argument type const char *.
582 * config/tc-xtensa.h (xtensa_section_rename): Adjust.
584 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
586 * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
589 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
591 * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
593 (m32c_indirect_operand): Likewise.
594 * config/tc-nds32.c (do_pseudo_b): Likewise.
595 (do_pseudo_bal): Likewise.
596 (do_pseudo_ls_bhw): Likewise.
598 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
600 * as.c (parse_args): Cast literal to char * when assigning to optarg.
602 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
604 * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
606 * config/tc-sparc.c (s_register): Cast a literal to char * in
609 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
611 * config/tc-i960.c (parse_expr): Cast to char * when assigning to
613 * config/tc-m32r.c (expand_debug_syms): Likewise.
614 * config/tc-msp430.c (msp430_dstoperand): Likewise.
615 * config/tc-z80.c (md_begin): Likewise.
616 * stabs.c (stabs_generate_asm_func): Likewise.
618 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
620 * cgen.c: Modernize the way functions declare arguments.
621 * config/tc-bfin.c: Likewise.
622 * config/tc-pdp11.c: Likewise.
623 * literal.c: Likewise.
627 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
629 * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
630 variables unsigned char[].
631 * config/tc-alpha.c (alpha_handle_align): Likewise.
632 * config/tc-arm.c (arm_handle_align): Likewise.
633 * config/tc-z80.c: Likewise.
635 2016-03-30 Nick Clifton <nickc@redhat.com>
638 * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
641 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
643 * testsuite/gas/all/gas.exp: Don't xfail on ARC.
644 * testsuite/gas/elf/elf.exp: Likewise.
645 * testsuite/gas/all/redef3.d: Allow execution for ARC.
647 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
649 * testsuite/gas/arc/warn.exp: Fix matching pattern.
651 2016-03-29 Claudiu Zissulescu <claziss@synopsys.com>
653 * testsuite/gas/arc/ext2op.d: New file.
654 * testsuite/gas/arc/ext2op.s: Likewise.
655 * testsuite/gas/arc/ext3op.d: Likewise.
656 * testsuite/gas/arc/ext3op.s: Likewise.
658 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
660 * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
662 * config/tc-alpha.c (md_parse_option): Likewise.
663 * config/tc-arc.c (md_parse_option): Likewise.
664 * config/tc-arm.c (struct arm_long_option_table): Likewise.
665 (md_parse_option): Likewise.
666 * config/tc-avr.c (md_parse_option): Likewise.
667 * config/tc-bfin.c (md_parse_option): Likewise.
668 * config/tc-cr16.c (md_parse_option): Likewise.
669 * config/tc-cris.c (s_cris_arch): Likewise.
670 (md_parse_option): Likewise.
671 * config/tc-crx.c (md_parse_option): Likewise.
672 * config/tc-d10v.c (md_parse_option): Likewise.
673 * config/tc-d30v.c (md_parse_option): Likewise.
674 * config/tc-dlx.c (md_parse_option): Likewise.
675 * config/tc-epiphany.c (md_parse_option): Likewise.
676 * config/tc-fr30.c (md_parse_option): Likewise.
677 * config/tc-frv.c (md_parse_option): Likewise.
678 * config/tc-ft32.c (md_parse_option): Likewise.
679 * config/tc-h8300.c (md_parse_option): Likewise.
680 * config/tc-hppa.c (md_parse_option): Likewise.
681 * config/tc-i370.c (md_parse_option): Likewise.
682 * config/tc-i386.c (md_parse_option): Likewise.
683 * config/tc-i860.c (md_parse_option): Likewise.
684 * config/tc-i960.c (md_parse_option): Likewise.
685 * config/tc-ia64.c (md_parse_option): Likewise.
686 * config/tc-ip2k.c (md_parse_option): Likewise.
687 * config/tc-iq2000.c (md_parse_option): Likewise.
688 * config/tc-lm32.c (md_parse_option): Likewise.
689 * config/tc-m32c.c (md_parse_option): Likewise.
690 * config/tc-m32r.c (md_parse_option): Likewise.
691 * config/tc-m68hc11.c (md_parse_option): Likewise.
692 * config/tc-m68k.c (md_parse_option): Likewise.
693 * config/tc-mcore.c (md_parse_option): Likewise.
694 * config/tc-mep.c (md_parse_option): Likewise.
695 * config/tc-metag.c (struct metag_long_option): Likewise.
696 (md_parse_option): Likewise.
697 * config/tc-microblaze.c (md_parse_option): Likewise.
698 * config/tc-microblaze.h (md_parse_option): Remove prototype.
699 * config/tc-mips.c (md_parse_option): Adjust.
700 * config/tc-mmix.c (md_parse_option): Likewise.
701 * config/tc-mn10200.c (md_parse_option): Likewise.
702 * config/tc-mn10300.c (md_parse_option): Likewise.
703 * config/tc-moxie.c (md_parse_option): Likewise.
704 * config/tc-msp430.c (md_parse_option): Likewise.
705 * config/tc-mt.c (md_parse_option): Likewise.
706 * config/tc-nds32.c (md_parse_option): Likewise.
707 * config/tc-nds32.h (nds32_parse_option): Likewise.
708 * config/tc-nios2.c (md_parse_option): Likewise.
709 * config/tc-ns32k.c (md_parse_option): Likewise.
710 * config/tc-or1k.c (md_parse_option): Likewise.
711 * config/tc-pdp11.c (md_parse_option): Likewise.
712 * config/tc-pj.c (md_parse_option): Likewise.
713 * config/tc-ppc.c (md_parse_option): Likewise.
714 * config/tc-rl78.c (md_parse_option): Likewise.
715 * config/tc-rx.c (md_parse_option): Likewise.
716 * config/tc-s390.c (s390_parse_cpu): Likewise.
717 * config/tc-score.c (md_parse_option): Likewise.
718 * config/tc-sh.c (md_parse_option): Likewise.
719 * config/tc-sparc.c (md_parse_option): Likewise.
720 * config/tc-spu.c (md_parse_option): Likewise.
721 * config/tc-tic30.c (md_parse_option): Likewise.
722 * config/tc-tic4x.c (md_parse_option): Likewise.
723 * config/tc-tic54x.c (md_parse_option): Likewise.
724 * config/tc-tic6x.c (md_parse_option): Likewise.
725 * config/tc-tilegx.c (md_parse_option): Likewise.
726 * config/tc-tilepro.c (md_parse_option): Likewise.
727 * config/tc-v850.c (md_parse_option): Likewise.
728 * config/tc-vax.c (md_parse_option): Likewise.
729 * config/tc-visium.c (struct visium_long_option_table): Likewise.
730 * config/tc-xc16x.c (md_parse_option): Likewise.
731 * config/tc-xgate.c (md_parse_option): Likewise.
732 * config/tc-xstormy16.c (md_parse_option): Likewise.
733 * config/tc-xtensa.c (md_parse_option): Likewise.
734 * config/tc-z80.c (md_parse_option): Likewise.
735 * config/tc-z8k.c (md_parse_option): Likewise.
736 * tc.h (md_parse_option): Likewise.
738 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
740 * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
741 * config/tc-hppa.c (fix_new_hppa): Likewise.
742 (pa_vtable_entry): Likewise.
743 (pa_vtable_inherit): Likewise.
744 * config/tc-m68k.c (md_begin): Likewise.
746 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
748 * config/obj-elf.c (obj_elf_section_name): Return const char *.
749 * config/obj-elf.h (obj_elf_section_name): Adjust.
750 * config/tc-aarch64.c (aarch64_parse_features): Likewise.
751 (aarch64_parse_cpu): Likewise.
752 (aarch64_parse_arch): Likewise.
753 * config/tc-arm.c (arm_parse_extension): Likewise.
754 (arm_parse_cpu): Likewise.
755 (arm_parse_arch): Likewise.
756 * config/tc-nds32.c: Likewise.
757 * config/xtensa-relax.c (parse_special_fn): Likewise.
758 * stabs.c (generate_asm_file): Likewise.
760 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
762 * config/tc-cr16.c (cr16_assemble): New function.
763 (md_assemble): Call cr16_assemble.
765 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
767 * as.c (parse_args): Adjust.
768 * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
769 * config/obj-elf.c (elf_frob_symbol): Adjust.
771 2016-03-24 Jose E. Marchesi <jose.marchesi@oracle.com>
773 * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
774 registers to be in the 16..31 range.
776 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
778 * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
781 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
783 * config/tc-visium.c (md_atof): Localize the string returned on
786 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
788 * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
789 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
790 * config/tc-m68hc11.c (md_begin): Likewise.
791 (print_opcode_list): Likewise.
792 * config/tc-msp430.c (msp430_section): Likewise.
793 * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
794 (s3_build_dependency_insn_hsh): Likewise.
795 * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
796 (s7_build_dependency_insn_hsh): Likewise.
797 * config/tc-tic4x.c: Likewise.
798 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
799 (subsym_get_arg): Likewise.
800 * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
801 (get_directive): Likewise.
802 (cache_literal_section): Likewise.
803 * config/xtensa-relax.c: Likewise.
804 * symbols.c (symbol_create): Likewise.
805 (local_symbol_make): Likewise.
806 (symbol_relc_make_expr): Likewise.
808 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
810 * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
813 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
815 * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
818 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
820 * config/tc-ia64.c (ia64_do_align): Remove.
821 (ia64_cons_align): Call do_align () directly.
822 (dot_proc): Likewise.
823 (stmt_float_cons): Likewise.
825 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
827 * listing.c (listing_message): Use XNEW style allocation macros.
828 * read.c (read_a_source_file): Likewise.
829 (read_symbol_name): Likewise.
830 (s_mri_common): Likewise.
831 (assign_symbol): Likewise.
833 (emit_expr_with_reloc): Likewise.
834 (s_incbin): Likewise.
835 (s_include): Likewise.
836 * sb.c (sb_build): Likewise.
837 (sb_check): Likewise.
839 2016-03-22 Alan Modra <amodra@gmail.com>
841 * write.c (record_alignment): Revert 2016-02-18 change.
843 2016-03-22 Alan Modra <amodra@gmail.com>
845 * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
846 (emit_jsrjmp, tc_gen_reloc): Likewise.
847 * config/tc-i370.c (i370_macro): Likewise.
849 2016-03-22 Nick Clifton <nickc@redhat.com>
851 * configure: Regenerate.
853 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
855 * testsuite/gas/arc/nps400-0.d: New file.
856 * testsuite/gas/arc/nps400-0.s: New file.
857 * testsuite/gas/arc/nps400-1.d: New file.
858 * testsuite/gas/arc/nps400-1.s: New file.
860 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
862 * config/tc-arc.c (find_opcode_match): Move lnflg, and i
863 declarations to start of block. Reset code on all flags before
864 attempting to match them. Handle multiple hits on the same flag.
866 * testsuite/gas/arc/asm-errors.d: New file.
867 * testsuite/gas/arc/asm-errors.err: New file.
868 * testsuite/gas/arc/asm-errors.s: New file.
870 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
872 * config/tc-arc.c (cpu_types): Add nps400 entry.
873 (check_zol): Handle nps400.
875 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
877 * config/tc-arc.c (arc_select_cpu): Remove use of
880 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
882 * config/tc-arc.c (arc_target): Delay initialisation until
884 (arc_target_name): Likewise.
885 (arc_features): Likewise.
886 (arc_mach_type): Likewise.
887 (cpu_types): Remove "all" entry.
888 (arc_select_cpu): New function, most of the content is from...
889 (md_parse_option): ... here. Call new arc_select_cpu.
890 (md_begin): Call arc_select_cpu if needed, default is now arc700.
892 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
894 * testsuite/gas/arc/inline-data-1.d: Add target restriction.
895 * testsuite/gas/arc/inline-data-2.d: New file.
897 2016-03-21 Nick Clifton <nickc@redhat.com>
899 * atof-generic.c: Replace use of alloca with call to xmalloc.
901 * dwarf2dbg.c: Likewise.
905 * symbols.c: Likewise.
906 * config/obj-elf.c: Likewise.
907 * config/tc-aarch64.c: Likewise.
908 * config/tc-arc.c: Likewise.
909 * config/tc-arm.c: Likewise.
910 * config/tc-avr.c: Likewise.
911 * config/tc-ia64.c: Likewise.
912 * config/tc-mips.c: Likewise.
913 * config/tc-msp430.c: Likewise.
914 * config/tc-nds32.c: Likewise.
915 * config/tc-ppc.c: Likewise.
916 * config/tc-sh.c: Likewise.
917 * config/tc-tic30.c: Likewise.
918 * config/tc-tic54x.c: Likewise.
919 * config/tc-xstormy16.c: Likewise.
920 * config/te-vms.c: Likewise.
921 * configure: Regenerate.
923 2016-03-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
925 * tc-i386.c (f32_1): Change type to unsigned char[].
946 (f32_patt): Likewise.
947 (f16_patt): Likewise.
956 (alt_patt): Likewise.
958 2016-03-18 Nick Clifton <nickc@redhat.com>
960 * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
961 .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
962 .tlsdescldr and .xword directives.
965 * testsuite/gas/aarch64/pr19721.s: New test source file.
966 * testsuite/gas/aarch64/pr19721.d: New test driver file.
968 * doc/as.texinfo: Place the target specific command line options
969 into their own man page section.
971 2016-03-16 Jiong Wang <jiong.wang@arm.com>
973 * config/tc-arm.c (N_S_32): New.
974 (N_F_16_32): Likewise.
975 (N_SUF_32): Support N_F16.
977 (neon_dyadic_misc): Likewise.
978 (do_neon_cmp): Likewise.
979 (do_neon_cmp_inv): Likewise.
980 (do_neon_mul): Likewise.
981 (do_neon_fcmp_absolute): Likewise.
982 (do_neon_step): Likewise.
983 (do_neon_abs_neg): Likewise.
984 (CVT_FLAVOR_VAR): Likewise.
985 (do_neon_cvt_1): Likewise.
986 (do_neon_recip_est): Likewise.
987 (do_vmaxnm): Likewise.
988 (do_vrint_1): Likewise.
989 (neon_check_type): Check architecture support for FP16 extension.
990 (insns): Update comments.
991 * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
992 * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
993 * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
994 * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
996 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
998 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
1001 2016-03-16 Nick Clifton <nickc@redhat.com>
1003 * read.c (emit_expr_with_reloc): Add code check a bignum with
1005 * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
1007 * testsuite/gas/elf/bignum.s: New test source file.
1008 * testsuite/gas/elf/bignum.d: New test driver file.
1009 * testsuite/gas/elf/elf.exp: Run the new test.
1011 2016-03-15 Ulrich Drepper <drepper@gmail.com>
1013 * doc/c-i386.texi (Register Naming): Update to details of the
1014 latest architecture version.
1016 2016-03-10 Mickael Guene <mickael.guene@st.com>
1019 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
1021 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
1022 (do_t_mov_cmp): Likewise.
1023 (do_t_add_sub): Protect against bad relocations usage.
1024 (do_t_mov_cmp): Likewise.
1025 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
1026 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
1027 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
1028 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
1030 2016-03-09 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1032 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
1034 (do_neon_ld_st_lane): Likewise.
1035 (do_neon_ld_dup): Likewise.
1037 2016-03-08 Andrew Burgess <andrew.burgess@embecosm.com>
1039 * testsuite/gas/arc/inline-data-1.d: New file.
1040 * testsuite/gas/arc/inline-data-1.s: New file.
1042 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
1044 * config/tc-arm.c (arm_cpus): Add cortex-r8.
1045 * doc/c-arm.texi: Add cortex-r8.
1047 2016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1049 * config/tc-arc.c: Add const qualifiers.
1050 * config/tc-h8300.c (md_begin): Likewise.
1051 * config/tc-ia64.c (print_prmask): Likewise.
1052 * config/tc-msp430.c (msp430_operands): Likewise.
1053 * config/tc-nds32.c (struct suffix_name): Likewise.
1054 (struct nds32_parse_option_table): Likewise.
1055 (struct nds32_set_option_table): Likewise.
1056 (do_pseudo_pushpopm): Likewise.
1057 (do_pseudo_pushpop_stack): Likewise.
1058 (nds32_relax_relocs): Likewise.
1059 (nds32_flag): Likewise.
1060 (struct nds32_hint_map): Likewise.
1061 (nds32_find_reloc_table): Likewise.
1062 (nds32_match_hint_insn): Likewise.
1063 * config/tc-s390.c: Likewise.
1064 * config/tc-sh.c (get_specific): Likewise.
1065 * config/tc-tic30.c: Likewise.
1066 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
1067 (tic4x_indirect_parse): Likewise.
1068 * config/tc-vax.c (vax_cons): Likewise.
1069 * config/tc-z80.c (struct reg_entry): Likewise.
1070 * config/tc-epiphany.c (md_assemble): Adjust.
1071 (epiphany_assemble): New function.
1072 (epiphany_elf_section_rtn): Call do_align directly.
1073 (epiphany_elf_section_text): Likewise.
1074 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
1075 (ip2k_elf_section_text): Likewise.
1076 * read.c (do_align): Make it not static.
1077 * read.h (do_align): New prototype.
1079 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
1081 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
1082 for ARMv8.1 AdvSIMD use.
1083 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
1084 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
1086 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
1088 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
1090 (record_feature_use): New.
1091 (mark_feature_used): Use record_feature_use.
1092 (do_neon_qrdmlah): New.
1093 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
1095 (arm_extensions): Put into alphabetical order. Re-indent "simd"
1096 and "rdma" entries. Fix the incorrect merge value for "+rdma".
1097 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
1098 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
1099 Make source file explicit.
1100 * testsuite/gas/arm/armv8-a+rdma.l: New.
1101 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
1102 directives. Fix white-space.
1103 * testsuite/gas/arm/armv8_1-a+simd.d: New.
1105 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
1107 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
1109 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
1110 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
1112 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
1113 (tc_arc_fix_adjustable): Changed default return value to 1.
1114 * testsuite/gas/arc/j.d: Updated expected symbol
1115 * testsuite/gas/arc/jl.d: Likewise
1116 * testsuite/gas/arc/relax-avoid1.d: Likewise
1117 * testsuite/gas/arc/st.d: Likewise
1119 2016-02-29 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
1121 * config/tc-arc.c: Enable code density instructions for ARC EM.
1123 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1126 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
1128 * as.c (flag_use_elf_stt_common): New.
1129 (show_usage): Add --elf-stt-common=.
1130 (option_values): Add OPTION_ELF_STT_COMMON.
1131 (std_longopts): Add --elf-stt-common=.
1132 (parse_args): Handle --elf-stt-common=.
1133 * as.h (flag_use_elf_stt_common): New.
1134 * config.in: Regenerated.
1135 * configure: Likewise.
1136 * configure.ac: Add --enable-elf-stt-common and define
1137 DEFAULT_GENERATE_ELF_STT_COMMON.
1138 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
1139 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
1140 * doc/as.texinfo: Document --elf-stt-common=.
1141 * testsuite/gas/elf/common3.s: New file.
1142 * testsuite/gas/elf/common3a.d: Likewise.
1143 * testsuite/gas/elf/common3b.d: Likewise.
1144 * testsuite/gas/elf/common4.s: Likewise.
1145 * testsuite/gas/elf/common4a.d: Likewise.
1146 * testsuite/gas/elf/common4b.d: Likewise.
1147 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
1148 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
1149 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
1151 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
1152 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
1153 --elf-stt-common=no to as.
1154 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
1155 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
1156 --elf-stt-common=no to as.
1157 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
1158 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
1159 of dw2-compress-3 and dw2-compressed-3.
1161 2016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1163 * as.c (select_emulation_mode): Add const qualifiers.
1165 * config/bfin-defs.h: Likewise.
1166 * config/bfin-parse.y: Likewise.
1167 * config/rx-parse.y: Likewise.
1168 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
1169 (struct aarch64_cpu_option_table): Likewise.
1170 (struct aarch64_arch_option_table): Likewise.
1171 (struct aarch64_option_cpu_value_table): Likewise.
1172 (struct aarch64_long_option_table): Likewise.
1173 (struct aarch64_option_abi_value_table): Likewise.
1174 * config/tc-arm.c (struct reloc_entry): Likewise.
1175 (tc_gen_reloc): Likewise.
1176 (struct arm_option_table): Likewise.
1177 (struct arm_legacy_option_table): Likewise.
1178 (struct arm_cpu_option_table): Likewise.
1179 (struct arm_arch_option_table): Likewise.
1180 (struct arm_option_extension_value_table): Likewise.
1181 (struct arm_option_fpu_value_table): Likewise.
1182 (struct arm_option_value_table): Likewise.
1183 (struct arm_long_option_table): Likewise.
1184 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
1185 (struct mcu_type_s): Likewise.
1186 (struct exp_mod_s): Likewise.
1187 (avr_operand): Likewise.
1188 (avr_operands): Likewise.
1189 * config/tc-d10v.c (md_begin): Likewise.
1190 * config/tc-dlx.c: Likewise.
1191 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
1192 * config/tc-ft32.c (parse_condition): Likewise.
1193 * config/tc-h8300.c (do_a_fix_imm): Likewise.
1194 * config/tc-hppa.c (pa_ip): Likewise.
1195 (hppa_regname_to_dw2regnum): Likewise.
1196 * config/tc-i370.c (i370_elf_suffix): Likewise.
1197 * config/tc-i960.c (struct tabentry): Likewise.
1198 * config/tc-m32r.c: Likewise.
1199 * config/tc-m68k.c: Likewise.
1200 * config/tc-m68k.h: Likewise.
1201 * config/tc-mcore.c (parse_psrmod): Likewise.
1202 * config/tc-metag.c (struct metag_core_option): Likewise.
1203 (struct metag_long_option): Likewise.
1204 * config/tc-microblaze.c: Likewise.
1205 * config/tc-mips.c (macro): Likewise.
1206 * config/tc-mn10200.c: Likewise.
1207 * config/tc-mn10300.c: Likewise.
1208 * config/tc-msp430.c (struct rcodes_s): Likewise.
1209 (struct hcodes_s): Likewise.
1210 (md_parse_option): Likewise.
1211 * config/tc-ns32k.c (struct ns32k_option): Likewise.
1212 (optlist): Likewise.
1213 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
1214 (tc_ppc_regname_to_dw2regnum): Likewise.
1215 * config/tc-ppc.h: Likewise.
1216 * config/tc-rl78.c: Likewise.
1217 * config/tc-rx.c (struct cpu_type): Likewise.
1218 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
1219 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
1220 (sparc_ip): Likewise.
1221 * config/tc-spu.c (insn_fmt_string): Likewise.
1222 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1223 * config/tc-v850.c: Likewise.
1224 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
1225 (struct visium_long_option_table): Likewise.
1226 * config/tc-xgate.c: Likewise.
1227 * config/tc-z8k.c: Likewise.
1228 * read.c (add_include_dir): Likewise.
1231 2016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1233 * testsuite/gas/all/gas.exp: Change target pattern to cover
1235 * testsuite/gas/all/redef3.d: Likewise.
1236 * testsuite/gas/elf/elf.exp: Likewise.
1238 2016-02-24 Renlin Li <renlin.li@arm.com>
1240 * config/tc-arm.c (BAD_FP16): New error message macro.
1241 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
1242 fp16 scalar instructions.
1243 (neon_check_type): Allow different size from key.
1244 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
1245 (try_vfp_nsyn): Likewise.
1246 (do_vfp_nsyn_mla_mls): Likewise.
1247 (do_vfp_nsyn_fma_fms): Likewise.
1248 (do_vfp_nsyn_ldm_stm): Likewise
1249 (do_vfp_nsyn_sqrt): Likewise
1250 (do_vfp_nsyn_div): Likewise
1251 (do_vfp_nsyn_nmul): Likewise.
1252 (do_vfp_nsyn_cmp): Likewise.
1253 (do_neon_shll): Likewise.
1254 (do_vfp_nsyn_cvt_fpv8): Likewise.
1255 (do_neon_cvttb_2): Likewise.
1256 (do_neon_mov): Likewise.
1257 (do_neon_rshift_round_imm): Likewise.
1258 (do_neon_ldr_str): Likewise.
1259 (do_vfp_nsyn_fpv8): Likewise.
1260 (do_vmaxnm): Likewise.
1261 (do_vrint_1): Likewise.
1262 (insns): New entry for vins, vmovx.
1263 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
1264 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
1265 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
1266 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
1267 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
1268 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
1269 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
1271 2016-02-24 Renlin Li <renlin.li@arm.com>
1273 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
1274 (neon_shape_class): New SC_HALF.
1275 (neon_shape_el): New SE_H.
1276 (neon_shape_el_size): New size for SE_H.
1277 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
1278 (neon_select_shape): Add SE_H support code.
1279 (el_type_of_type_chk): Use N_F_ALL.
1280 (do_vfp_nsyn_cvt): Add SE_H shape support.
1281 (do_neon_cvtz): Likewise.
1282 (do_neon_cvt_1): Likewise.
1283 (do_neon_cvttb_1): Likewise.
1285 2016-02-24 Renlin Li <renlin.li@arm.com>
1287 * testsuite/gas/arm/copro.d: Adjust output.
1288 * testsuite/gas/arm/copro.s: Adjust co-processor num.
1290 2016-02-24 Renlin Li <renlin.li@arm.com>
1292 * testsuite/gas/arm/mask_1.d: New.
1293 * testsuite/gas/arm/mask_1.s: New.
1295 2016-02-24 Renlin Li <renlin.li@arm.com>
1297 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
1298 * testsuite/gas/arm/copro.d: Update.
1300 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1302 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
1303 * doc/c-arm.texi (ARM Options): Document cortex-a32.
1305 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1307 * doc/c-arm.texi (ARM Options): Document cortex-a17.
1309 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
1311 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
1314 2016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1316 * output-file.c (output_file_create): Make file name argument const.
1317 (output_file_close): Likewise.
1318 * output-file.h (output_file_create): Adjust.
1319 (output_file_close): Likewise.
1320 * depend.c (quote_string_for_make): Make src argument const char *.
1321 (register_dependency): Likewise.
1322 (wrap_output): Likewise.
1323 * as.h (register_dependency): Adjust.
1324 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
1326 * symbols.c (S_SET_EXTERNAL): Likewise.
1327 * input-scrub.c (as_where): Return the file name.
1328 * as.h (as_where): Adjust prototype.
1329 * app.c (do_scrub_chars): Adjust.
1330 * cond.c (s_elseif): Likewise.
1332 (initialize_cframe): Likewise.
1333 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
1334 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
1335 * config/obj-som.c (obj_som_init_stab_section): Likewise.
1336 * config/tc-aarch64.c (output_info): Likewise.
1337 * config/tc-ia64.c (md_assemble): Likewise.
1338 (dot_alias): Likewise.
1339 * config/tc-m68k.c (m68k_frob_label): Likewise.
1340 * config/tc-mmix.c (s_bspec): Likewise.
1341 (mmix_handle_mmixal): Likewise.
1342 * config/tc-rx.c (rx_include): Likewise.
1343 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1344 (tic54x_adjust_symtab): Likewise.
1345 * config/tc-xtensa.c (directive_push): Likewise.
1346 (xtensa_sanity_check): Likewise.
1347 (xtensa_relax_frag): Likewise.
1348 (md_convert_frag): Likewise.
1349 (tinsn_to_slotbuf): Likewise.
1350 * dwarf2dbg.c (dwarf2_where): Likewise.
1351 * ecoff.c (add_file): Likewise.
1352 (ecoff_generate_asm_lineno): Likewise.
1353 * expr.c (make_expr_symbol): Likewise.
1354 * frags.c (frag_new): Likewise.
1355 (frag_var_init): Likewise.
1356 * listing.c (listing_newline): Likewise.
1357 * messages.c (identify): Likewise.
1358 (as_show_where): Likewise.
1359 (as_warn_internal): Likewise.
1360 (as_bad_internal): Likewise.
1361 * read.c (s_irp): Likewise.
1362 (s_macro): Likewise.
1363 (s_reloc): Likewise.
1364 * stabs.c (stabs_generate_asm_file): Likewise.
1365 (stabs_generate_asm_lineno): Likewise.
1366 (stabs_generate_asm_func): Likewise.
1367 * write.c (fix_new_internal): Likewise.
1368 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
1369 (as_warn_value_out_of_range): Adjust prototype.
1370 (as_bad_value_out_of_range): Adjust prototype.
1371 * messages.c (identify): Make file name argument const char *.
1372 (as_warn_internal): Likewise.
1373 (as_warn_where): Likewise.
1374 (as_bad_internal): Likewise.
1375 (as_bad_where): Likewise.
1376 (as_internal_value_out_of_range): Likewise.
1377 (as_warn_value_out_of_range): Likewise.
1378 (as_bad_value_out_of_range): Likewise.
1379 * as.h (found_comment_file): Change type to const char *.
1380 * cond.c (file_line::file): Likewise.
1381 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
1382 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
1383 * config/obj-som.c (obj_som_init_stab_section): Likewise.
1384 * config/tc-aarch64.c (output_info): Likewise.
1385 * config/tc-alpha.c (insert_operand): Likewise.
1386 * config/tc-arc.c (insert_operand): Likewise.
1387 * config/tc-d30v.c (check_size): Likewise.
1388 * config/tc-ia64.c (struct alias): Likewise.
1389 * config/tc-m68k.c (struct label_line): Likewise.
1390 * config/tc-mcore.c (md_apply_fix): Likewise.
1391 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
1392 * config/tc-mips.c (mips16_immed): Likewise.
1393 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
1394 * config/tc-ppc.c (ppc_insert_operand): Likewise.
1395 * config/tc-rx.c (rx_include): Likewise.
1396 * config/tc-s390.c (s390_insert_operand): Likewise.
1397 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1398 (tic54x_adjust_symtab): Likewise.
1399 * config/tc-tilegx.c (insert_operand): Likewise.
1400 (apply_special_operator): Likewise.
1401 * config/tc-tilepro.c (insert_operand): Likewise.
1402 * config/tc-xtensa.c (directive_push): Likewise.
1403 * ecoff.c (add_file): Likewise.
1404 (ecoff_generate_asm_lineno): Likewise.
1405 * listing.c (listing_newline): Likewise.
1406 * read.c (s_irp): Likewise.
1407 * write.c (install_reloc): Likewise.
1408 * write.h (struct fix): Likewise.
1409 * input-file.c (file_name): Change type to const char *.
1410 (saved_file::file_name): Likewise.
1411 (input_file_open): Change type of argument to const char *.
1412 * input-file.h (input_file_open): Adjust.
1413 * input-scrub.c (logical_input_file): change type to const char *.
1414 (physical_input_file): Likewise.
1415 (struct input_save): Adjust.
1416 (input_scrub_push): Adjust.
1417 (input_scrub_begin): Adjust.
1419 * input-scrub.c (input_scrub_new_file): Make file name argument const.
1420 (input_scrub_include_file): Likewise.
1421 (new_logical_line_flags): Likewise.
1422 (new_logical_line): Likewise.
1424 * frags.h (struct frag): Change type of fr_file to const char *.
1425 * expr.c (expr_symbol_where): Change type of file argument to
1427 * expr.h (expr_symbol_where): Likewise.
1428 * config/tc-i370.c (md_apply_fix): adjust.
1429 * config/tc-mmix.c (mmix_md_end): Likewise.
1430 * config/tc-ppc.c (md_apply_fix): Likewise.
1431 * config/tc-s390.c (md_apply_fix): Likewise.
1432 * symbols.c (report_op_error): Likewise.
1433 (resolve_symbol_value): Likewise.
1434 * config/tc-ia64.c (slot::src_file): Change type to const char *.
1435 (rsrc::file): Likewise.
1436 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
1438 (xtensa_relax_frag): Likewise.
1439 (md_convert_frag): Likewise.
1440 (tinsn_to_slotbuf): Likewise.
1441 * expr.c (expr_symbol_line): Likewise.
1442 * macro.c (define_macro): Likewise.
1443 * macro.h (macro_struct): Likewise.
1444 * messages.c (as_show_where): Likewise.
1445 * read.c (s_macro): Likewise.
1446 * stabs.c (stabs_generate_asm_file): Likewise.
1447 (generate_asm_file): Likewise.
1448 (stabs_generate_asm_lineno): Likewise.
1449 * write.h (struct reloc_list): Likewise.
1450 * input-scrub.c (as_where): Change return type to const char *.
1451 * as.h (as_wheree): Adjust.
1453 2016-02-21 H.J. Lu <hongjiu.lu@intel.com>
1455 * write.c (compress_debug): Move BFD compression bits setting
1457 (write_object_file): Here.
1459 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
1461 * config/tc-i386.c (register_number): Check RegVRex.
1462 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
1463 with %zmm19 and %zmm3.
1464 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
1465 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
1467 2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
1468 Jiong Wang <jiong.wang@arm.com>
1470 * config/tc-arm.c (arm_ext_fp16): New.
1471 (arm_extensions): New entry for "fp16".
1473 2016-02-19 Nick Clifton <nickc@redhat.com>
1476 * read.c (read_a_source_file): Check for assemble_one returning
1477 with input_line_pointer set to NULL.
1479 2016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1481 * listing.c (rebuffer_line): Change return type to void.
1483 * symbols.c (decode_local_label_name): Make type a const char *.
1484 * listing.c (print_source): Make type of p const char *.
1485 (print_line): Make type of string const char *.
1486 (buffer_line): Return const char *.
1487 (title): Make type const char *.
1488 (subtitle): Likewise.
1489 (listing_listing): Make type of p const char *.
1490 * messages.c (as_internal_value_out_of_range): Make type of prefix
1492 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
1493 and string const char *.
1494 * read.c (_bfd_rel): Make type of name const char *.
1495 * app.c (out_string): Change type to const char *.
1496 (struct app_save::out_string): Likewise.
1498 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
1499 Nick Clifton <nickc@redhat.com>
1501 * read.c (finish_bundle): Avoid recording a negative alignment.
1502 (do_align): Use unsigned values for n, len and max. Only create
1503 a frag if the alignment requirement is greater than the minimum
1504 byte alignment. Avoid recording a negative alignment.
1505 (s_align): Use unsigned values where appropriate.
1506 (bss_alloc): Use an unsigned value for the alignment.
1507 (sizeof_sleb128): Add a comment noting that we encode one octet
1508 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
1509 (emit_leb129_expr): Abort if the emitted encoding was longer than
1511 * read.h (output_leb128): Update prototype.
1512 (sizeof_leb128): Update prototype.
1513 (bss_alloc): Update prototype.
1514 * write.c (record_alignment): Use an unsigned value for the
1515 alignment. Do not record alignments less than the minimum
1516 alignment for a byte.
1517 * write.h (record_alignment): Update prototype.
1519 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
1521 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
1522 .init.literal/.fini.literal section name.
1523 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
1524 list of xtensa tests.
1525 * testsuite/gas/xtensa/init-fini-literals.d: New file:
1526 init-fini-literals test result patterns.
1527 * testsuite/gas/xtensa/init-fini-literals.s: New file:
1528 init-fini-literals test.
1530 2016-02-17 Nick Clifton <nickc@redhat.com>
1532 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
1533 devices.csv file as of March 2016.
1535 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
1537 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
1539 (tc_arc_regname_to_dw2regnum): Likewise.
1540 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
1541 (tc_cfi_frame_initial_instructions): Likewise.
1542 (tc_regname_to_dw2regnum): Likewise.
1543 * testsuite/gas/cfi/cfi-arc-1.d: New file.
1544 * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
1545 * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
1547 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
1549 * doc/internals.texi (S_IS_EXTERN): Remove.
1551 2016-02-16 Nick Clifton <nickc@redhat.com>
1553 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
1556 2016-02-16 Renlin Li <renlin.li@arm.com>
1559 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
1560 * testsuite/gas/aarch64/movw_label.d: New.
1561 * testsuite/gas/aarch64/movw_label.s: New.
1563 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
1566 * config/rx-parse.y (MOV): Opcode generation for index
1567 register addressing mode.
1568 * testsuite/gas/rx/rx.exp: Updated for new testcase.
1569 * testsuite/gas/rx/pr19665.s: New file.
1570 * testsuite/gas/rx/pr19665.s: New file.
1571 * testsuite/gas/rx/mov.d: Update expected output.
1573 2016-02-15 Nick Clifton <nickc@redhat.com>
1575 * doc/as.texinfo (.section): Document that numeric values can now
1576 be used for the flags and type fields of the ELF target's .section
1577 directive. Add notes about the restrictions on setting flags and
1579 * config/obj-elf.c (obj_elf_change_section): Allow known sections
1580 to be given processor specific section types. Allow processor and
1581 application specific flags of a section to be set after
1583 (obj_elf_parse_section_letters): Handle parsing numeric values.
1584 (obj_elf_section_type): Handle parsing numeric values.
1585 (obj_elf_section): Allow numeric type values.
1586 * config/obj-elf.h (obj_elf_change_section): Update prototype.
1587 * testsuite/gas/elf/section10.d: New test.
1588 * testsuite/gas/elf/section10.s: Source file for new test.
1589 * testsuite/gas/elf/elf.exp: Run the new test.
1590 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
1591 the description of the flags produced by readelf.
1592 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1593 * NEWS: Mention the new feature.
1595 2016-02-11 Nick Clifton <nickc@redhat.com>
1598 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
1599 until it is actually used.
1600 (cfi_set_sections): Set cfi_sections_set to true.
1601 (dot_cfi_startproc): Likewise.
1602 (dot_cfi_endproc): Likewise.
1603 (dot_cfi_fde_data): Likewise.
1604 (cfi_finish): Likewise.
1605 (dot_cfi_sections): Do not set cfi_sections_set.
1606 * doc/as.texinfo (.cfi_sections): Note that targets can provide
1607 their own cfi section name. Also note that the directive can be
1608 reissued provided that CFI generation has not started.
1609 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
1610 .cfi_endproc directives so that the redefinition of .cfi_sections
1611 will trigger the generation of the error message.
1612 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
1613 number of error message.
1615 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
1616 Janek van Oirschot <jvanoirs@synopsys.com>
1618 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
1619 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
1621 (arc_flags, arc_relax_type): New structure.
1622 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
1623 (RELAX_TABLE_ENTRY_MAX): New define.
1624 (relaxation_state, md_relax_table, arc_relaxable_insns)
1625 (arc_num_relaxable_ins): New variable.
1626 (rlx_operand_type, arc_rlx_types): New enums.
1627 (arc_relaxable_ins): New structure.
1628 (OPTION_RELAX): New option.
1629 (arc_insn): New relax member.
1630 (arc_flags): Remove.
1631 (relax_insn_p): New function.
1632 (apply_fixups): Likewise.
1633 (relaxable_operand): Likewise.
1634 (may_relax_expr): Likewise.
1635 (relaxable_flag): Likewise.
1636 (arc_pcrel_adjust): Likewise.
1637 (md_estimate_size_before_relax): Implement.
1638 (md_convert_frag): Likewise.
1639 (md_parse_option): Handle new mrelax option.
1640 (md_show_usage): Likewise.
1641 (assemble_insn): Set relax member.
1642 (emit_insn0): New function.
1643 (emit_insn1): Likewise.
1644 (emit_insn): Handle relaxation case.
1645 * NEWS: Mention the new relaxation option.
1646 * doc/c-arc.texi (ARC Options): Document new mrelax option.
1647 * doc/as.texinfo (Target ARC Options): Likewise.
1648 * testsuite/gas/arc/relax-avoid1.d: New file.
1649 * testsuite/gas/arc/relax-avoid1.s: Likewise.
1650 * testsuite/gas/arc/relax-avoid2.d: Likewise.
1651 * testsuite/gas/arc/relax-avoid2.s: Likewise.
1652 * testsuite/gas/arc/relax-avoid3.d: Likewise.
1653 * testsuite/gas/arc/relax-avoid3.s: Likewise.
1654 * testsuite/gas/arc/relax-b.d: Likewise.
1655 * testsuite/gas/arc/relax-b.s: Likewise.
1657 2016-02-08 Nick Clifton <nickc@redhat.com>
1659 * config/tc-ia64.c (dot_prologue): Fix formatting.
1661 2016-02-04 Nick Clifton <nickc@redhat.com>
1663 * config/obj-elf.c (obj_elf_change_section): Remove support for
1664 ARM NOREAD sections.
1665 * config/tc-arm.c (arm_elf_section_letter): Delete.
1666 * config/tc-arm.h (md_elf_section_letter): Delete.
1667 * doc/c-arm.texi (ARM Section Attribute): Delete section.
1668 * testsuite/gas/arm/section-execute-only.d: Delete.
1669 * testsuite/gas/arm/section-execute-only.s: Delete.
1671 2016-02-04 Nick Clifton <nickc@redhat.com>
1674 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
1675 to handle encoding of RRUX instruction.
1676 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
1678 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
1680 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
1682 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
1683 substitutions for BFD_RELOC_* as unsigned.
1684 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
1685 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
1686 * testsuite/gas/xtensa/loc.s: New file: loc test.
1688 2016-02-03 Kevin Buettner <kevinb@redhat.com>
1690 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
1692 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
1695 * NEWS: Mention new command line option -mrelax-relocations and
1696 new configure option --enable-x86-relax-relocations for x86
1698 * config.in: Regenerated.
1699 * configure.ac: Add --enable-x86-relax-relocations.
1700 (ac_default_x86_relax_relocations): New. Default to 1 except
1701 for x86 Solaris targets older than Solaris 12.
1702 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
1703 * configure: Likewise.
1704 * config/tc-i386.c (generate_relax_relocations): New.
1705 (OPTION_MRELAX_RELOCATIONS): Likewise.
1706 (output_disp): Don't generate relax relocations if
1707 generate_relax_relocations is 0.
1708 (md_longopts): Add -mrelax-relocations.
1709 (md_show_usage): Likewise.
1710 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
1711 * doc/c-i386.texi: Document -mrelax-relocations=.
1712 * testsuite/gas/i386/got-no-relax.d: New file.
1713 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
1714 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
1715 * testsuite/gas/i386/localpic.d: Likewise.
1716 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
1717 * testsuite/gas/i386/reloc32.d: Likewise.
1718 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
1719 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
1720 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
1721 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
1722 * testsuite/gas/i386/i386.exp: Run got-no-relax and
1723 x86-64-gotpcrel-no-relax.
1725 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
1727 * NEWS: Mention new command line option -mfence-as-lock-add=yes
1730 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
1732 * NEWS: Remove duplicated marker for 2.26.
1734 2016-02-02 Renlin Li <renlin.li@arm.com>
1736 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
1738 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1740 * testsuite/gas/ip2k/allinsn.d: New file.
1741 * testsuite/gas/ip2k/allinsn.s: New file.
1742 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
1744 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1746 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
1747 some load instructions.
1748 * testsuite/gas/epiphany/allinsn.d: Likewise.
1749 * testsuite/gas/epiphany/regression.d: Likewise.
1751 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1753 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
1754 suffixes from instruction mnemonics in expected output.
1755 * testsuite/gas/epiphany/allinsn.d: Likewise.
1756 * testsuite/gas/epiphany/regression.d: Likewise.
1757 * testsuite/gas/epiphany/sample.d: Likewise.
1759 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1761 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
1763 * testsuite/gas/epiphany/allinsn.d: Likewise.
1764 * testsuite/gas/epiphany/sample.d: Likewise.
1766 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1768 * testsuite/gas/epiphany/sample.d: Update expected output.
1770 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
1772 * config/tc-arc.c (md_apply_fix): Allow addendum.
1773 (arc_reloc_op): Allow complex expressions for tpoff.
1774 (md_apply_fix): Handle resolved TLS local symbol.
1775 * testsuite/gas/arc/tls-relocs1.d: New file.
1776 * testsuite/gas/arc/tls-relocs1.s: Likewise.
1778 2016-02-01 Loria <Loria@phantasia.org>
1781 * config/tc-arm.c (encode_arm_immediate): Recode to improve
1782 efficiency and avoid an LLVM loop optimization bug.
1784 2016-02-01 Nick Clifton <nickc@redhat.com>
1786 * config/tc-microblaze.c (parse_imm): Fix compile time warning
1787 message extending a negative 32-bit value into a larger signed
1788 value on a 32-bit host.
1790 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1793 * configure.ac (compressed_debug_sections): Replace == with =.
1794 * configure: Regenerated.
1796 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
1797 H.J. Lu <hongjiu.lu@intel.com>
1799 * config/tc-i386.c (avoid_fence): New.
1800 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
1802 (OPTION_FENCE_AS_LOCK_ADD): New.
1803 (md_longopts): Add -mfence-as-lock-add.
1804 (md_parse_option): Handle -mfence-as-lock-add.
1805 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
1806 * doc/c-i386.texi (-mfence-as-lock-add): Document.
1807 * testsuite/gas/i386/i386.exp: Run new tests.
1808 * testsuite/gas/i386/fence-as-lock-add.s: New.
1809 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
1810 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
1811 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
1812 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
1814 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
1816 * configure.ac (compressed_debug_sections): Remove trailing `]'.
1817 * configure: Regenerated.
1819 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
1821 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
1822 (OPTION_MOMIT_LOCK_PREFIX): This.
1823 (md_longopts): Updated.
1824 (md_parse_option): Likewise.
1826 2016-01-25 Catherine Moore <clm@codesourcery.com>
1828 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
1829 if abicalls are in effect.
1830 * testsuite/gas/mips/sdata-gp.s: New test.
1831 * testsuite/gas/mips/sdata-gp.d: New expected output
1832 * testsuite/gas/mips/mips.exp: Run new test.
1834 2016-01-25 Renlin Li <renlin.li@arm.com>
1836 * testsuite/gas/arm/thumb2_it_search.d: New.
1837 * testsuite/gas/arm/thumb2_it_search.s: New.
1839 2016-01-21 Nick Clifton <nickc@redhat.com>
1842 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
1843 with arm-netbsdelf target.
1844 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
1846 2016-01-20 Nick Clifton <nickc@redhat.com>
1849 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
1850 * testsuite/gas/arm/blx-bl-convert.d
1851 * testsuite/gas/arm/plt-1.d: Likewise.
1852 * testsuite/gas/arm/reloc-bad.d: Likewise.
1853 * testsuite/gas/arm/thumb-w-good.d: Likewise.
1854 * testsuite/gas/arm/thumb2_pool.d: Likewise.
1855 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
1856 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
1859 * doc/as.texinfo (Errors): Correct documentation describing the
1860 interaction of .file and .line with warning and error messages.
1863 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
1864 * testsuite/gas/arm/archv8m-main.d: Likewise.
1865 * testsuite/gas/arm/archv8m-base.d: Likewise.
1867 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
1869 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
1870 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
1871 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
1873 2016-01-20 Mickael Guene <mickael.guene@st.com>
1874 Terry Guo <terry.guo@arm.com>
1876 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
1877 SHF_ARM_NOREAD section flag.
1878 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
1880 (arm_elf_section_letter) : Declare it.
1881 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
1882 SHF_ARM_NOREAD section flag.
1883 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
1885 * testsuite/gas/arm/section-execute-only.s: New test case.
1886 * testsuite/gas/arm/section-execute-only.d: Expected output.
1888 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1890 * config/tc-mips.c (micromips_insn_length): Remove the mention
1891 of 48-bit microMIPS instructions.
1893 2016-01-18 Alan Modra <amodra@gmail.com>
1895 * configure: Regenerate.
1897 2016-01-17 Alan Modra <amodra@gmail.com>
1899 * configure: Regenerate.
1901 2016-01-17 Alan Modra <amodra@gmail.com>
1903 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
1905 2016-01-14 Nick Clifton <nickc@redhat.com>
1907 * testsuite/gas/rl78/sp-relative-movw.s: New test.
1908 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
1909 * testsuite/gas/rl78/rl78.exp: Run the new test.
1911 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
1913 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
1914 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
1916 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
1918 * config/tc-nios2.c (output_movia): Preset `code' to 0.
1920 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
1922 * config/tc-h8300.c (get_operand): Remove spurious condition in
1923 test for closing parenthesis.
1925 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
1927 * config/tc-arm.c (arm_ext_v8_2): New.
1929 * testsuite/gas/arm/armv8_2-a.d: New.
1930 * testsuite/gas/arm/armv8_2-a.s: New.
1932 2016-01-12 Alan Modra <amodra@gmail.com>
1934 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
1936 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
1938 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
1939 xvcmpnesp, xvcmpnesp.>: Delete tests.
1940 * testsuite/gas/ppc/power9.s: Likewise.
1941 * testsuite/gas/ppc/vsx3.d: Likewise.
1942 * testsuite/gas/ppc/vsx3.s: Likewise.
1944 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
1947 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
1948 * testsuite/gas/m68k/p13050-1.s: New file.
1949 * testsuite/gas/m68k/p13050-2.d: New file.
1950 * testsuite/gas/m68k/p13050-2.s: New file.
1952 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1954 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
1955 * testsuite/gas/arc/add.d: Likewise.
1956 * testsuite/gas/arc/and.d: Likewise.
1957 * testsuite/gas/arc/asl.d: Likewise.
1958 * testsuite/gas/arc/asr.d: Likewise.
1959 * testsuite/gas/arc/bic.d: Likewise.
1960 * testsuite/gas/arc/extb.d: Likewise.
1961 * testsuite/gas/arc/extw.d: Likewise.
1962 * testsuite/gas/arc/j.d: Likewise.
1963 * testsuite/gas/arc/jl.d: Likewise.
1964 * testsuite/gas/arc/ld2.d: Likewise.
1965 * testsuite/gas/arc/lsr.d: Likewise.
1966 * testsuite/gas/arc/mov.d: Likewise.
1967 * testsuite/gas/arc/or.d: Likewise.
1968 * testsuite/gas/arc/pcl-relocs.d: Likewise.
1969 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
1970 * testsuite/gas/arc/pic-relocs.d: Likewise.
1971 * testsuite/gas/arc/plt-relocs.d: Likewise.
1972 * testsuite/gas/arc/rlc.d: Likewise.
1973 * testsuite/gas/arc/ror.d: Likewise.
1974 * testsuite/gas/arc/rrc.d: Likewise.
1975 * testsuite/gas/arc/sbc.d: Likewise.
1976 * testsuite/gas/arc/sda-relocs.d: Likewise.
1977 * testsuite/gas/arc/sda-relocs2.d: Likewise.
1978 * testsuite/gas/arc/sexb.d: Likewise.
1979 * testsuite/gas/arc/sexw.d: Likewise.
1980 * testsuite/gas/arc/st.d: Likewise.
1981 * testsuite/gas/arc/sub.d: Likewise.
1982 * testsuite/gas/arc/tls-relocs.d: Likewise.
1983 * testsuite/gas/arc/xor.d: Likewise.
1985 2016-01-01 Alan Modra <amodra@gmail.com>
1987 Update year range in copyright notice of all files.
1989 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
1991 Copyright (C) 2016 Free Software Foundation, Inc.
1993 Copying and distribution of this file, with or without modification,
1994 are permitted in any medium without royalty provided the copyright
1995 notice and this notice are preserved.
2001 version-control: never