1 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3 * config/tc-xtensa.c (struct rename_section_struct): Make old_name
5 (xtensa_section_rename): Make argument type const char *.
6 * config/tc-xtensa.h (xtensa_section_rename): Adjust.
8 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
10 * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
13 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
15 * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
17 (m32c_indirect_operand): Likewise.
18 * config/tc-nds32.c (do_pseudo_b): Likewise.
19 (do_pseudo_bal): Likewise.
20 (do_pseudo_ls_bhw): Likewise.
22 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
24 * as.c (parse_args): Cast literal to char * when assigning to optarg.
26 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
28 * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
30 * config/tc-sparc.c (s_register): Cast a literal to char * in
33 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
35 * config/tc-i960.c (parse_expr): Cast to char * when assigning to
37 * config/tc-m32r.c (expand_debug_syms): Likewise.
38 * config/tc-msp430.c (msp430_dstoperand): Likewise.
39 * config/tc-z80.c (md_begin): Likewise.
40 * stabs.c (stabs_generate_asm_func): Likewise.
42 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
44 * cgen.c: Modernize the way functions declare arguments.
45 * config/tc-bfin.c: Likewise.
46 * config/tc-pdp11.c: Likewise.
47 * literal.c: Likewise.
51 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
53 * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
54 variables unsigned char[].
55 * config/tc-alpha.c (alpha_handle_align): Likewise.
56 * config/tc-arm.c (arm_handle_align): Likewise.
57 * config/tc-z80.c: Likewise.
59 2016-03-30 Nick Clifton <nickc@redhat.com>
62 * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
65 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
67 * testsuite/gas/all/gas.exp: Don't xfail on ARC.
68 * testsuite/gas/elf/elf.exp: Likewise.
69 * testsuite/gas/all/redef3.d: Allow execution for ARC.
71 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
73 * testsuite/gas/arc/warn.exp: Fix matching pattern.
75 2016-03-29 Claudiu Zissulescu <claziss@synopsys.com>
77 * testsuite/gas/arc/ext2op.d: New file.
78 * testsuite/gas/arc/ext2op.s: Likewise.
79 * testsuite/gas/arc/ext3op.d: Likewise.
80 * testsuite/gas/arc/ext3op.s: Likewise.
82 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
84 * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
86 * config/tc-alpha.c (md_parse_option): Likewise.
87 * config/tc-arc.c (md_parse_option): Likewise.
88 * config/tc-arm.c (struct arm_long_option_table): Likewise.
89 (md_parse_option): Likewise.
90 * config/tc-avr.c (md_parse_option): Likewise.
91 * config/tc-bfin.c (md_parse_option): Likewise.
92 * config/tc-cr16.c (md_parse_option): Likewise.
93 * config/tc-cris.c (s_cris_arch): Likewise.
94 (md_parse_option): Likewise.
95 * config/tc-crx.c (md_parse_option): Likewise.
96 * config/tc-d10v.c (md_parse_option): Likewise.
97 * config/tc-d30v.c (md_parse_option): Likewise.
98 * config/tc-dlx.c (md_parse_option): Likewise.
99 * config/tc-epiphany.c (md_parse_option): Likewise.
100 * config/tc-fr30.c (md_parse_option): Likewise.
101 * config/tc-frv.c (md_parse_option): Likewise.
102 * config/tc-ft32.c (md_parse_option): Likewise.
103 * config/tc-h8300.c (md_parse_option): Likewise.
104 * config/tc-hppa.c (md_parse_option): Likewise.
105 * config/tc-i370.c (md_parse_option): Likewise.
106 * config/tc-i386.c (md_parse_option): Likewise.
107 * config/tc-i860.c (md_parse_option): Likewise.
108 * config/tc-i960.c (md_parse_option): Likewise.
109 * config/tc-ia64.c (md_parse_option): Likewise.
110 * config/tc-ip2k.c (md_parse_option): Likewise.
111 * config/tc-iq2000.c (md_parse_option): Likewise.
112 * config/tc-lm32.c (md_parse_option): Likewise.
113 * config/tc-m32c.c (md_parse_option): Likewise.
114 * config/tc-m32r.c (md_parse_option): Likewise.
115 * config/tc-m68hc11.c (md_parse_option): Likewise.
116 * config/tc-m68k.c (md_parse_option): Likewise.
117 * config/tc-mcore.c (md_parse_option): Likewise.
118 * config/tc-mep.c (md_parse_option): Likewise.
119 * config/tc-metag.c (struct metag_long_option): Likewise.
120 (md_parse_option): Likewise.
121 * config/tc-microblaze.c (md_parse_option): Likewise.
122 * config/tc-microblaze.h (md_parse_option): Remove prototype.
123 * config/tc-mips.c (md_parse_option): Adjust.
124 * config/tc-mmix.c (md_parse_option): Likewise.
125 * config/tc-mn10200.c (md_parse_option): Likewise.
126 * config/tc-mn10300.c (md_parse_option): Likewise.
127 * config/tc-moxie.c (md_parse_option): Likewise.
128 * config/tc-msp430.c (md_parse_option): Likewise.
129 * config/tc-mt.c (md_parse_option): Likewise.
130 * config/tc-nds32.c (md_parse_option): Likewise.
131 * config/tc-nds32.h (nds32_parse_option): Likewise.
132 * config/tc-nios2.c (md_parse_option): Likewise.
133 * config/tc-ns32k.c (md_parse_option): Likewise.
134 * config/tc-or1k.c (md_parse_option): Likewise.
135 * config/tc-pdp11.c (md_parse_option): Likewise.
136 * config/tc-pj.c (md_parse_option): Likewise.
137 * config/tc-ppc.c (md_parse_option): Likewise.
138 * config/tc-rl78.c (md_parse_option): Likewise.
139 * config/tc-rx.c (md_parse_option): Likewise.
140 * config/tc-s390.c (s390_parse_cpu): Likewise.
141 * config/tc-score.c (md_parse_option): Likewise.
142 * config/tc-sh.c (md_parse_option): Likewise.
143 * config/tc-sparc.c (md_parse_option): Likewise.
144 * config/tc-spu.c (md_parse_option): Likewise.
145 * config/tc-tic30.c (md_parse_option): Likewise.
146 * config/tc-tic4x.c (md_parse_option): Likewise.
147 * config/tc-tic54x.c (md_parse_option): Likewise.
148 * config/tc-tic6x.c (md_parse_option): Likewise.
149 * config/tc-tilegx.c (md_parse_option): Likewise.
150 * config/tc-tilepro.c (md_parse_option): Likewise.
151 * config/tc-v850.c (md_parse_option): Likewise.
152 * config/tc-vax.c (md_parse_option): Likewise.
153 * config/tc-visium.c (struct visium_long_option_table): Likewise.
154 * config/tc-xc16x.c (md_parse_option): Likewise.
155 * config/tc-xgate.c (md_parse_option): Likewise.
156 * config/tc-xstormy16.c (md_parse_option): Likewise.
157 * config/tc-xtensa.c (md_parse_option): Likewise.
158 * config/tc-z80.c (md_parse_option): Likewise.
159 * config/tc-z8k.c (md_parse_option): Likewise.
160 * tc.h (md_parse_option): Likewise.
162 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
164 * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
165 * config/tc-hppa.c (fix_new_hppa): Likewise.
166 (pa_vtable_entry): Likewise.
167 (pa_vtable_inherit): Likewise.
168 * config/tc-m68k.c (md_begin): Likewise.
170 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
172 * config/obj-elf.c (obj_elf_section_name): Return const char *.
173 * config/obj-elf.h (obj_elf_section_name): Adjust.
174 * config/tc-aarch64.c (aarch64_parse_features): Likewise.
175 (aarch64_parse_cpu): Likewise.
176 (aarch64_parse_arch): Likewise.
177 * config/tc-arm.c (arm_parse_extension): Likewise.
178 (arm_parse_cpu): Likewise.
179 (arm_parse_arch): Likewise.
180 * config/tc-nds32.c: Likewise.
181 * config/xtensa-relax.c (parse_special_fn): Likewise.
182 * stabs.c (generate_asm_file): Likewise.
184 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
186 * config/tc-cr16.c (cr16_assemble): New function.
187 (md_assemble): Call cr16_assemble.
189 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
191 * as.c (parse_args): Adjust.
192 * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
193 * config/obj-elf.c (elf_frob_symbol): Adjust.
195 2016-03-24 Jose E. Marchesi <jose.marchesi@oracle.com>
197 * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
198 registers to be in the 16..31 range.
200 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
202 * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
205 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
207 * config/tc-visium.c (md_atof): Localize the string returned on
210 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
212 * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
213 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
214 * config/tc-m68hc11.c (md_begin): Likewise.
215 (print_opcode_list): Likewise.
216 * config/tc-msp430.c (msp430_section): Likewise.
217 * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
218 (s3_build_dependency_insn_hsh): Likewise.
219 * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
220 (s7_build_dependency_insn_hsh): Likewise.
221 * config/tc-tic4x.c: Likewise.
222 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
223 (subsym_get_arg): Likewise.
224 * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
225 (get_directive): Likewise.
226 (cache_literal_section): Likewise.
227 * config/xtensa-relax.c: Likewise.
228 * symbols.c (symbol_create): Likewise.
229 (local_symbol_make): Likewise.
230 (symbol_relc_make_expr): Likewise.
232 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
234 * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
237 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
239 * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
242 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
244 * config/tc-ia64.c (ia64_do_align): Remove.
245 (ia64_cons_align): Call do_align () directly.
246 (dot_proc): Likewise.
247 (stmt_float_cons): Likewise.
249 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
251 * listing.c (listing_message): Use XNEW style allocation macros.
252 * read.c (read_a_source_file): Likewise.
253 (read_symbol_name): Likewise.
254 (s_mri_common): Likewise.
255 (assign_symbol): Likewise.
257 (emit_expr_with_reloc): Likewise.
258 (s_incbin): Likewise.
259 (s_include): Likewise.
260 * sb.c (sb_build): Likewise.
261 (sb_check): Likewise.
263 2016-03-22 Alan Modra <amodra@gmail.com>
265 * write.c (record_alignment): Revert 2016-02-18 change.
267 2016-03-22 Alan Modra <amodra@gmail.com>
269 * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
270 (emit_jsrjmp, tc_gen_reloc): Likewise.
271 * config/tc-i370.c (i370_macro): Likewise.
273 2016-03-22 Nick Clifton <nickc@redhat.com>
275 * configure: Regenerate.
277 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
279 * testsuite/gas/arc/nps400-0.d: New file.
280 * testsuite/gas/arc/nps400-0.s: New file.
281 * testsuite/gas/arc/nps400-1.d: New file.
282 * testsuite/gas/arc/nps400-1.s: New file.
284 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
286 * config/tc-arc.c (find_opcode_match): Move lnflg, and i
287 declarations to start of block. Reset code on all flags before
288 attempting to match them. Handle multiple hits on the same flag.
290 * testsuite/gas/arc/asm-errors.d: New file.
291 * testsuite/gas/arc/asm-errors.err: New file.
292 * testsuite/gas/arc/asm-errors.s: New file.
294 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
296 * config/tc-arc.c (cpu_types): Add nps400 entry.
297 (check_zol): Handle nps400.
299 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
301 * config/tc-arc.c (arc_select_cpu): Remove use of
304 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
306 * config/tc-arc.c (arc_target): Delay initialisation until
308 (arc_target_name): Likewise.
309 (arc_features): Likewise.
310 (arc_mach_type): Likewise.
311 (cpu_types): Remove "all" entry.
312 (arc_select_cpu): New function, most of the content is from...
313 (md_parse_option): ... here. Call new arc_select_cpu.
314 (md_begin): Call arc_select_cpu if needed, default is now arc700.
316 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
318 * testsuite/gas/arc/inline-data-1.d: Add target restriction.
319 * testsuite/gas/arc/inline-data-2.d: New file.
321 2016-03-21 Nick Clifton <nickc@redhat.com>
323 * atof-generic.c: Replace use of alloca with call to xmalloc.
325 * dwarf2dbg.c: Likewise.
329 * symbols.c: Likewise.
330 * config/obj-elf.c: Likewise.
331 * config/tc-aarch64.c: Likewise.
332 * config/tc-arc.c: Likewise.
333 * config/tc-arm.c: Likewise.
334 * config/tc-avr.c: Likewise.
335 * config/tc-ia64.c: Likewise.
336 * config/tc-mips.c: Likewise.
337 * config/tc-msp430.c: Likewise.
338 * config/tc-nds32.c: Likewise.
339 * config/tc-ppc.c: Likewise.
340 * config/tc-sh.c: Likewise.
341 * config/tc-tic30.c: Likewise.
342 * config/tc-tic54x.c: Likewise.
343 * config/tc-xstormy16.c: Likewise.
344 * config/te-vms.c: Likewise.
345 * configure: Regenerate.
347 2016-03-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
349 * tc-i386.c (f32_1): Change type to unsigned char[].
370 (f32_patt): Likewise.
371 (f16_patt): Likewise.
380 (alt_patt): Likewise.
382 2016-03-18 Nick Clifton <nickc@redhat.com>
384 * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
385 .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
386 .tlsdescldr and .xword directives.
389 * testsuite/gas/aarch64/pr19721.s: New test source file.
390 * testsuite/gas/aarch64/pr19721.d: New test driver file.
392 * doc/as.texinfo: Place the target specific command line options
393 into their own man page section.
395 2016-03-16 Jiong Wang <jiong.wang@arm.com>
397 * config/tc-arm.c (N_S_32): New.
398 (N_F_16_32): Likewise.
399 (N_SUF_32): Support N_F16.
401 (neon_dyadic_misc): Likewise.
402 (do_neon_cmp): Likewise.
403 (do_neon_cmp_inv): Likewise.
404 (do_neon_mul): Likewise.
405 (do_neon_fcmp_absolute): Likewise.
406 (do_neon_step): Likewise.
407 (do_neon_abs_neg): Likewise.
408 (CVT_FLAVOR_VAR): Likewise.
409 (do_neon_cvt_1): Likewise.
410 (do_neon_recip_est): Likewise.
411 (do_vmaxnm): Likewise.
412 (do_vrint_1): Likewise.
413 (neon_check_type): Check architecture support for FP16 extension.
414 (insns): Update comments.
415 * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
416 * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
417 * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
418 * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
420 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
422 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
425 2016-03-16 Nick Clifton <nickc@redhat.com>
427 * read.c (emit_expr_with_reloc): Add code check a bignum with
429 * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
431 * testsuite/gas/elf/bignum.s: New test source file.
432 * testsuite/gas/elf/bignum.d: New test driver file.
433 * testsuite/gas/elf/elf.exp: Run the new test.
435 2016-03-15 Ulrich Drepper <drepper@gmail.com>
437 * doc/c-i386.texi (Register Naming): Update to details of the
438 latest architecture version.
440 2016-03-10 Mickael Guene <mickael.guene@st.com>
443 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
445 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
446 (do_t_mov_cmp): Likewise.
447 (do_t_add_sub): Protect against bad relocations usage.
448 (do_t_mov_cmp): Likewise.
449 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
450 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
451 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
452 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
454 2016-03-09 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
456 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
458 (do_neon_ld_st_lane): Likewise.
459 (do_neon_ld_dup): Likewise.
461 2016-03-08 Andrew Burgess <andrew.burgess@embecosm.com>
463 * testsuite/gas/arc/inline-data-1.d: New file.
464 * testsuite/gas/arc/inline-data-1.s: New file.
466 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
468 * config/tc-arm.c (arm_cpus): Add cortex-r8.
469 * doc/c-arm.texi: Add cortex-r8.
471 2016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
473 * config/tc-arc.c: Add const qualifiers.
474 * config/tc-h8300.c (md_begin): Likewise.
475 * config/tc-ia64.c (print_prmask): Likewise.
476 * config/tc-msp430.c (msp430_operands): Likewise.
477 * config/tc-nds32.c (struct suffix_name): Likewise.
478 (struct nds32_parse_option_table): Likewise.
479 (struct nds32_set_option_table): Likewise.
480 (do_pseudo_pushpopm): Likewise.
481 (do_pseudo_pushpop_stack): Likewise.
482 (nds32_relax_relocs): Likewise.
483 (nds32_flag): Likewise.
484 (struct nds32_hint_map): Likewise.
485 (nds32_find_reloc_table): Likewise.
486 (nds32_match_hint_insn): Likewise.
487 * config/tc-s390.c: Likewise.
488 * config/tc-sh.c (get_specific): Likewise.
489 * config/tc-tic30.c: Likewise.
490 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
491 (tic4x_indirect_parse): Likewise.
492 * config/tc-vax.c (vax_cons): Likewise.
493 * config/tc-z80.c (struct reg_entry): Likewise.
494 * config/tc-epiphany.c (md_assemble): Adjust.
495 (epiphany_assemble): New function.
496 (epiphany_elf_section_rtn): Call do_align directly.
497 (epiphany_elf_section_text): Likewise.
498 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
499 (ip2k_elf_section_text): Likewise.
500 * read.c (do_align): Make it not static.
501 * read.h (do_align): New prototype.
503 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
505 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
506 for ARMv8.1 AdvSIMD use.
507 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
508 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
510 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
512 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
514 (record_feature_use): New.
515 (mark_feature_used): Use record_feature_use.
516 (do_neon_qrdmlah): New.
517 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
519 (arm_extensions): Put into alphabetical order. Re-indent "simd"
520 and "rdma" entries. Fix the incorrect merge value for "+rdma".
521 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
522 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
523 Make source file explicit.
524 * testsuite/gas/arm/armv8-a+rdma.l: New.
525 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
526 directives. Fix white-space.
527 * testsuite/gas/arm/armv8_1-a+simd.d: New.
529 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
531 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
533 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
534 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
536 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
537 (tc_arc_fix_adjustable): Changed default return value to 1.
538 * testsuite/gas/arc/j.d: Updated expected symbol
539 * testsuite/gas/arc/jl.d: Likewise
540 * testsuite/gas/arc/relax-avoid1.d: Likewise
541 * testsuite/gas/arc/st.d: Likewise
543 2016-02-29 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
545 * config/tc-arc.c: Enable code density instructions for ARC EM.
547 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
550 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
552 * as.c (flag_use_elf_stt_common): New.
553 (show_usage): Add --elf-stt-common=.
554 (option_values): Add OPTION_ELF_STT_COMMON.
555 (std_longopts): Add --elf-stt-common=.
556 (parse_args): Handle --elf-stt-common=.
557 * as.h (flag_use_elf_stt_common): New.
558 * config.in: Regenerated.
559 * configure: Likewise.
560 * configure.ac: Add --enable-elf-stt-common and define
561 DEFAULT_GENERATE_ELF_STT_COMMON.
562 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
563 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
564 * doc/as.texinfo: Document --elf-stt-common=.
565 * testsuite/gas/elf/common3.s: New file.
566 * testsuite/gas/elf/common3a.d: Likewise.
567 * testsuite/gas/elf/common3b.d: Likewise.
568 * testsuite/gas/elf/common4.s: Likewise.
569 * testsuite/gas/elf/common4a.d: Likewise.
570 * testsuite/gas/elf/common4b.d: Likewise.
571 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
572 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
573 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
575 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
576 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
577 --elf-stt-common=no to as.
578 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
579 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
580 --elf-stt-common=no to as.
581 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
582 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
583 of dw2-compress-3 and dw2-compressed-3.
585 2016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
587 * as.c (select_emulation_mode): Add const qualifiers.
589 * config/bfin-defs.h: Likewise.
590 * config/bfin-parse.y: Likewise.
591 * config/rx-parse.y: Likewise.
592 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
593 (struct aarch64_cpu_option_table): Likewise.
594 (struct aarch64_arch_option_table): Likewise.
595 (struct aarch64_option_cpu_value_table): Likewise.
596 (struct aarch64_long_option_table): Likewise.
597 (struct aarch64_option_abi_value_table): Likewise.
598 * config/tc-arm.c (struct reloc_entry): Likewise.
599 (tc_gen_reloc): Likewise.
600 (struct arm_option_table): Likewise.
601 (struct arm_legacy_option_table): Likewise.
602 (struct arm_cpu_option_table): Likewise.
603 (struct arm_arch_option_table): Likewise.
604 (struct arm_option_extension_value_table): Likewise.
605 (struct arm_option_fpu_value_table): Likewise.
606 (struct arm_option_value_table): Likewise.
607 (struct arm_long_option_table): Likewise.
608 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
609 (struct mcu_type_s): Likewise.
610 (struct exp_mod_s): Likewise.
611 (avr_operand): Likewise.
612 (avr_operands): Likewise.
613 * config/tc-d10v.c (md_begin): Likewise.
614 * config/tc-dlx.c: Likewise.
615 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
616 * config/tc-ft32.c (parse_condition): Likewise.
617 * config/tc-h8300.c (do_a_fix_imm): Likewise.
618 * config/tc-hppa.c (pa_ip): Likewise.
619 (hppa_regname_to_dw2regnum): Likewise.
620 * config/tc-i370.c (i370_elf_suffix): Likewise.
621 * config/tc-i960.c (struct tabentry): Likewise.
622 * config/tc-m32r.c: Likewise.
623 * config/tc-m68k.c: Likewise.
624 * config/tc-m68k.h: Likewise.
625 * config/tc-mcore.c (parse_psrmod): Likewise.
626 * config/tc-metag.c (struct metag_core_option): Likewise.
627 (struct metag_long_option): Likewise.
628 * config/tc-microblaze.c: Likewise.
629 * config/tc-mips.c (macro): Likewise.
630 * config/tc-mn10200.c: Likewise.
631 * config/tc-mn10300.c: Likewise.
632 * config/tc-msp430.c (struct rcodes_s): Likewise.
633 (struct hcodes_s): Likewise.
634 (md_parse_option): Likewise.
635 * config/tc-ns32k.c (struct ns32k_option): Likewise.
637 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
638 (tc_ppc_regname_to_dw2regnum): Likewise.
639 * config/tc-ppc.h: Likewise.
640 * config/tc-rl78.c: Likewise.
641 * config/tc-rx.c (struct cpu_type): Likewise.
642 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
643 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
644 (sparc_ip): Likewise.
645 * config/tc-spu.c (insn_fmt_string): Likewise.
646 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
647 * config/tc-v850.c: Likewise.
648 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
649 (struct visium_long_option_table): Likewise.
650 * config/tc-xgate.c: Likewise.
651 * config/tc-z8k.c: Likewise.
652 * read.c (add_include_dir): Likewise.
655 2016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
657 * testsuite/gas/all/gas.exp: Change target pattern to cover
659 * testsuite/gas/all/redef3.d: Likewise.
660 * testsuite/gas/elf/elf.exp: Likewise.
662 2016-02-24 Renlin Li <renlin.li@arm.com>
664 * config/tc-arm.c (BAD_FP16): New error message macro.
665 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
666 fp16 scalar instructions.
667 (neon_check_type): Allow different size from key.
668 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
669 (try_vfp_nsyn): Likewise.
670 (do_vfp_nsyn_mla_mls): Likewise.
671 (do_vfp_nsyn_fma_fms): Likewise.
672 (do_vfp_nsyn_ldm_stm): Likewise
673 (do_vfp_nsyn_sqrt): Likewise
674 (do_vfp_nsyn_div): Likewise
675 (do_vfp_nsyn_nmul): Likewise.
676 (do_vfp_nsyn_cmp): Likewise.
677 (do_neon_shll): Likewise.
678 (do_vfp_nsyn_cvt_fpv8): Likewise.
679 (do_neon_cvttb_2): Likewise.
680 (do_neon_mov): Likewise.
681 (do_neon_rshift_round_imm): Likewise.
682 (do_neon_ldr_str): Likewise.
683 (do_vfp_nsyn_fpv8): Likewise.
684 (do_vmaxnm): Likewise.
685 (do_vrint_1): Likewise.
686 (insns): New entry for vins, vmovx.
687 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
688 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
689 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
690 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
691 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
692 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
693 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
695 2016-02-24 Renlin Li <renlin.li@arm.com>
697 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
698 (neon_shape_class): New SC_HALF.
699 (neon_shape_el): New SE_H.
700 (neon_shape_el_size): New size for SE_H.
701 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
702 (neon_select_shape): Add SE_H support code.
703 (el_type_of_type_chk): Use N_F_ALL.
704 (do_vfp_nsyn_cvt): Add SE_H shape support.
705 (do_neon_cvtz): Likewise.
706 (do_neon_cvt_1): Likewise.
707 (do_neon_cvttb_1): Likewise.
709 2016-02-24 Renlin Li <renlin.li@arm.com>
711 * testsuite/gas/arm/copro.d: Adjust output.
712 * testsuite/gas/arm/copro.s: Adjust co-processor num.
714 2016-02-24 Renlin Li <renlin.li@arm.com>
716 * testsuite/gas/arm/mask_1.d: New.
717 * testsuite/gas/arm/mask_1.s: New.
719 2016-02-24 Renlin Li <renlin.li@arm.com>
721 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
722 * testsuite/gas/arm/copro.d: Update.
724 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
726 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
727 * doc/c-arm.texi (ARM Options): Document cortex-a32.
729 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
731 * doc/c-arm.texi (ARM Options): Document cortex-a17.
733 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
735 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
738 2016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
740 * output-file.c (output_file_create): Make file name argument const.
741 (output_file_close): Likewise.
742 * output-file.h (output_file_create): Adjust.
743 (output_file_close): Likewise.
744 * depend.c (quote_string_for_make): Make src argument const char *.
745 (register_dependency): Likewise.
746 (wrap_output): Likewise.
747 * as.h (register_dependency): Adjust.
748 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
750 * symbols.c (S_SET_EXTERNAL): Likewise.
751 * input-scrub.c (as_where): Return the file name.
752 * as.h (as_where): Adjust prototype.
753 * app.c (do_scrub_chars): Adjust.
754 * cond.c (s_elseif): Likewise.
756 (initialize_cframe): Likewise.
757 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
758 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
759 * config/obj-som.c (obj_som_init_stab_section): Likewise.
760 * config/tc-aarch64.c (output_info): Likewise.
761 * config/tc-ia64.c (md_assemble): Likewise.
762 (dot_alias): Likewise.
763 * config/tc-m68k.c (m68k_frob_label): Likewise.
764 * config/tc-mmix.c (s_bspec): Likewise.
765 (mmix_handle_mmixal): Likewise.
766 * config/tc-rx.c (rx_include): Likewise.
767 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
768 (tic54x_adjust_symtab): Likewise.
769 * config/tc-xtensa.c (directive_push): Likewise.
770 (xtensa_sanity_check): Likewise.
771 (xtensa_relax_frag): Likewise.
772 (md_convert_frag): Likewise.
773 (tinsn_to_slotbuf): Likewise.
774 * dwarf2dbg.c (dwarf2_where): Likewise.
775 * ecoff.c (add_file): Likewise.
776 (ecoff_generate_asm_lineno): Likewise.
777 * expr.c (make_expr_symbol): Likewise.
778 * frags.c (frag_new): Likewise.
779 (frag_var_init): Likewise.
780 * listing.c (listing_newline): Likewise.
781 * messages.c (identify): Likewise.
782 (as_show_where): Likewise.
783 (as_warn_internal): Likewise.
784 (as_bad_internal): Likewise.
785 * read.c (s_irp): Likewise.
788 * stabs.c (stabs_generate_asm_file): Likewise.
789 (stabs_generate_asm_lineno): Likewise.
790 (stabs_generate_asm_func): Likewise.
791 * write.c (fix_new_internal): Likewise.
792 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
793 (as_warn_value_out_of_range): Adjust prototype.
794 (as_bad_value_out_of_range): Adjust prototype.
795 * messages.c (identify): Make file name argument const char *.
796 (as_warn_internal): Likewise.
797 (as_warn_where): Likewise.
798 (as_bad_internal): Likewise.
799 (as_bad_where): Likewise.
800 (as_internal_value_out_of_range): Likewise.
801 (as_warn_value_out_of_range): Likewise.
802 (as_bad_value_out_of_range): Likewise.
803 * as.h (found_comment_file): Change type to const char *.
804 * cond.c (file_line::file): Likewise.
805 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
806 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
807 * config/obj-som.c (obj_som_init_stab_section): Likewise.
808 * config/tc-aarch64.c (output_info): Likewise.
809 * config/tc-alpha.c (insert_operand): Likewise.
810 * config/tc-arc.c (insert_operand): Likewise.
811 * config/tc-d30v.c (check_size): Likewise.
812 * config/tc-ia64.c (struct alias): Likewise.
813 * config/tc-m68k.c (struct label_line): Likewise.
814 * config/tc-mcore.c (md_apply_fix): Likewise.
815 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
816 * config/tc-mips.c (mips16_immed): Likewise.
817 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
818 * config/tc-ppc.c (ppc_insert_operand): Likewise.
819 * config/tc-rx.c (rx_include): Likewise.
820 * config/tc-s390.c (s390_insert_operand): Likewise.
821 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
822 (tic54x_adjust_symtab): Likewise.
823 * config/tc-tilegx.c (insert_operand): Likewise.
824 (apply_special_operator): Likewise.
825 * config/tc-tilepro.c (insert_operand): Likewise.
826 * config/tc-xtensa.c (directive_push): Likewise.
827 * ecoff.c (add_file): Likewise.
828 (ecoff_generate_asm_lineno): Likewise.
829 * listing.c (listing_newline): Likewise.
830 * read.c (s_irp): Likewise.
831 * write.c (install_reloc): Likewise.
832 * write.h (struct fix): Likewise.
833 * input-file.c (file_name): Change type to const char *.
834 (saved_file::file_name): Likewise.
835 (input_file_open): Change type of argument to const char *.
836 * input-file.h (input_file_open): Adjust.
837 * input-scrub.c (logical_input_file): change type to const char *.
838 (physical_input_file): Likewise.
839 (struct input_save): Adjust.
840 (input_scrub_push): Adjust.
841 (input_scrub_begin): Adjust.
843 * input-scrub.c (input_scrub_new_file): Make file name argument const.
844 (input_scrub_include_file): Likewise.
845 (new_logical_line_flags): Likewise.
846 (new_logical_line): Likewise.
848 * frags.h (struct frag): Change type of fr_file to const char *.
849 * expr.c (expr_symbol_where): Change type of file argument to
851 * expr.h (expr_symbol_where): Likewise.
852 * config/tc-i370.c (md_apply_fix): adjust.
853 * config/tc-mmix.c (mmix_md_end): Likewise.
854 * config/tc-ppc.c (md_apply_fix): Likewise.
855 * config/tc-s390.c (md_apply_fix): Likewise.
856 * symbols.c (report_op_error): Likewise.
857 (resolve_symbol_value): Likewise.
858 * config/tc-ia64.c (slot::src_file): Change type to const char *.
859 (rsrc::file): Likewise.
860 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
862 (xtensa_relax_frag): Likewise.
863 (md_convert_frag): Likewise.
864 (tinsn_to_slotbuf): Likewise.
865 * expr.c (expr_symbol_line): Likewise.
866 * macro.c (define_macro): Likewise.
867 * macro.h (macro_struct): Likewise.
868 * messages.c (as_show_where): Likewise.
869 * read.c (s_macro): Likewise.
870 * stabs.c (stabs_generate_asm_file): Likewise.
871 (generate_asm_file): Likewise.
872 (stabs_generate_asm_lineno): Likewise.
873 * write.h (struct reloc_list): Likewise.
874 * input-scrub.c (as_where): Change return type to const char *.
875 * as.h (as_wheree): Adjust.
877 2016-02-21 H.J. Lu <hongjiu.lu@intel.com>
879 * write.c (compress_debug): Move BFD compression bits setting
881 (write_object_file): Here.
883 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
885 * config/tc-i386.c (register_number): Check RegVRex.
886 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
887 with %zmm19 and %zmm3.
888 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
889 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
891 2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
892 Jiong Wang <jiong.wang@arm.com>
894 * config/tc-arm.c (arm_ext_fp16): New.
895 (arm_extensions): New entry for "fp16".
897 2016-02-19 Nick Clifton <nickc@redhat.com>
900 * read.c (read_a_source_file): Check for assemble_one returning
901 with input_line_pointer set to NULL.
903 2016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
905 * listing.c (rebuffer_line): Change return type to void.
907 * symbols.c (decode_local_label_name): Make type a const char *.
908 * listing.c (print_source): Make type of p const char *.
909 (print_line): Make type of string const char *.
910 (buffer_line): Return const char *.
911 (title): Make type const char *.
912 (subtitle): Likewise.
913 (listing_listing): Make type of p const char *.
914 * messages.c (as_internal_value_out_of_range): Make type of prefix
916 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
917 and string const char *.
918 * read.c (_bfd_rel): Make type of name const char *.
919 * app.c (out_string): Change type to const char *.
920 (struct app_save::out_string): Likewise.
922 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
923 Nick Clifton <nickc@redhat.com>
925 * read.c (finish_bundle): Avoid recording a negative alignment.
926 (do_align): Use unsigned values for n, len and max. Only create
927 a frag if the alignment requirement is greater than the minimum
928 byte alignment. Avoid recording a negative alignment.
929 (s_align): Use unsigned values where appropriate.
930 (bss_alloc): Use an unsigned value for the alignment.
931 (sizeof_sleb128): Add a comment noting that we encode one octet
932 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
933 (emit_leb129_expr): Abort if the emitted encoding was longer than
935 * read.h (output_leb128): Update prototype.
936 (sizeof_leb128): Update prototype.
937 (bss_alloc): Update prototype.
938 * write.c (record_alignment): Use an unsigned value for the
939 alignment. Do not record alignments less than the minimum
940 alignment for a byte.
941 * write.h (record_alignment): Update prototype.
943 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
945 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
946 .init.literal/.fini.literal section name.
947 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
948 list of xtensa tests.
949 * testsuite/gas/xtensa/init-fini-literals.d: New file:
950 init-fini-literals test result patterns.
951 * testsuite/gas/xtensa/init-fini-literals.s: New file:
952 init-fini-literals test.
954 2016-02-17 Nick Clifton <nickc@redhat.com>
956 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
957 devices.csv file as of March 2016.
959 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
961 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
963 (tc_arc_regname_to_dw2regnum): Likewise.
964 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
965 (tc_cfi_frame_initial_instructions): Likewise.
966 (tc_regname_to_dw2regnum): Likewise.
967 * testsuite/gas/cfi/cfi-arc-1.d: New file.
968 * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
969 * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
971 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
973 * doc/internals.texi (S_IS_EXTERN): Remove.
975 2016-02-16 Nick Clifton <nickc@redhat.com>
977 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
980 2016-02-16 Renlin Li <renlin.li@arm.com>
983 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
984 * testsuite/gas/aarch64/movw_label.d: New.
985 * testsuite/gas/aarch64/movw_label.s: New.
987 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
990 * config/rx-parse.y (MOV): Opcode generation for index
991 register addressing mode.
992 * testsuite/gas/rx/rx.exp: Updated for new testcase.
993 * testsuite/gas/rx/pr19665.s: New file.
994 * testsuite/gas/rx/pr19665.s: New file.
995 * testsuite/gas/rx/mov.d: Update expected output.
997 2016-02-15 Nick Clifton <nickc@redhat.com>
999 * doc/as.texinfo (.section): Document that numeric values can now
1000 be used for the flags and type fields of the ELF target's .section
1001 directive. Add notes about the restrictions on setting flags and
1003 * config/obj-elf.c (obj_elf_change_section): Allow known sections
1004 to be given processor specific section types. Allow processor and
1005 application specific flags of a section to be set after
1007 (obj_elf_parse_section_letters): Handle parsing numeric values.
1008 (obj_elf_section_type): Handle parsing numeric values.
1009 (obj_elf_section): Allow numeric type values.
1010 * config/obj-elf.h (obj_elf_change_section): Update prototype.
1011 * testsuite/gas/elf/section10.d: New test.
1012 * testsuite/gas/elf/section10.s: Source file for new test.
1013 * testsuite/gas/elf/elf.exp: Run the new test.
1014 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
1015 the description of the flags produced by readelf.
1016 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1017 * NEWS: Mention the new feature.
1019 2016-02-11 Nick Clifton <nickc@redhat.com>
1022 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
1023 until it is actually used.
1024 (cfi_set_sections): Set cfi_sections_set to true.
1025 (dot_cfi_startproc): Likewise.
1026 (dot_cfi_endproc): Likewise.
1027 (dot_cfi_fde_data): Likewise.
1028 (cfi_finish): Likewise.
1029 (dot_cfi_sections): Do not set cfi_sections_set.
1030 * doc/as.texinfo (.cfi_sections): Note that targets can provide
1031 their own cfi section name. Also note that the directive can be
1032 reissued provided that CFI generation has not started.
1033 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
1034 .cfi_endproc directives so that the redefinition of .cfi_sections
1035 will trigger the generation of the error message.
1036 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
1037 number of error message.
1039 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
1040 Janek van Oirschot <jvanoirs@synopsys.com>
1042 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
1043 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
1045 (arc_flags, arc_relax_type): New structure.
1046 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
1047 (RELAX_TABLE_ENTRY_MAX): New define.
1048 (relaxation_state, md_relax_table, arc_relaxable_insns)
1049 (arc_num_relaxable_ins): New variable.
1050 (rlx_operand_type, arc_rlx_types): New enums.
1051 (arc_relaxable_ins): New structure.
1052 (OPTION_RELAX): New option.
1053 (arc_insn): New relax member.
1054 (arc_flags): Remove.
1055 (relax_insn_p): New function.
1056 (apply_fixups): Likewise.
1057 (relaxable_operand): Likewise.
1058 (may_relax_expr): Likewise.
1059 (relaxable_flag): Likewise.
1060 (arc_pcrel_adjust): Likewise.
1061 (md_estimate_size_before_relax): Implement.
1062 (md_convert_frag): Likewise.
1063 (md_parse_option): Handle new mrelax option.
1064 (md_show_usage): Likewise.
1065 (assemble_insn): Set relax member.
1066 (emit_insn0): New function.
1067 (emit_insn1): Likewise.
1068 (emit_insn): Handle relaxation case.
1069 * NEWS: Mention the new relaxation option.
1070 * doc/c-arc.texi (ARC Options): Document new mrelax option.
1071 * doc/as.texinfo (Target ARC Options): Likewise.
1072 * testsuite/gas/arc/relax-avoid1.d: New file.
1073 * testsuite/gas/arc/relax-avoid1.s: Likewise.
1074 * testsuite/gas/arc/relax-avoid2.d: Likewise.
1075 * testsuite/gas/arc/relax-avoid2.s: Likewise.
1076 * testsuite/gas/arc/relax-avoid3.d: Likewise.
1077 * testsuite/gas/arc/relax-avoid3.s: Likewise.
1078 * testsuite/gas/arc/relax-b.d: Likewise.
1079 * testsuite/gas/arc/relax-b.s: Likewise.
1081 2016-02-08 Nick Clifton <nickc@redhat.com>
1083 * config/tc-ia64.c (dot_prologue): Fix formatting.
1085 2016-02-04 Nick Clifton <nickc@redhat.com>
1087 * config/obj-elf.c (obj_elf_change_section): Remove support for
1088 ARM NOREAD sections.
1089 * config/tc-arm.c (arm_elf_section_letter): Delete.
1090 * config/tc-arm.h (md_elf_section_letter): Delete.
1091 * doc/c-arm.texi (ARM Section Attribute): Delete section.
1092 * testsuite/gas/arm/section-execute-only.d: Delete.
1093 * testsuite/gas/arm/section-execute-only.s: Delete.
1095 2016-02-04 Nick Clifton <nickc@redhat.com>
1098 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
1099 to handle encoding of RRUX instruction.
1100 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
1102 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
1104 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
1106 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
1107 substitutions for BFD_RELOC_* as unsigned.
1108 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
1109 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
1110 * testsuite/gas/xtensa/loc.s: New file: loc test.
1112 2016-02-03 Kevin Buettner <kevinb@redhat.com>
1114 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
1116 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
1119 * NEWS: Mention new command line option -mrelax-relocations and
1120 new configure option --enable-x86-relax-relocations for x86
1122 * config.in: Regenerated.
1123 * configure.ac: Add --enable-x86-relax-relocations.
1124 (ac_default_x86_relax_relocations): New. Default to 1 except
1125 for x86 Solaris targets older than Solaris 12.
1126 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
1127 * configure: Likewise.
1128 * config/tc-i386.c (generate_relax_relocations): New.
1129 (OPTION_MRELAX_RELOCATIONS): Likewise.
1130 (output_disp): Don't generate relax relocations if
1131 generate_relax_relocations is 0.
1132 (md_longopts): Add -mrelax-relocations.
1133 (md_show_usage): Likewise.
1134 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
1135 * doc/c-i386.texi: Document -mrelax-relocations=.
1136 * testsuite/gas/i386/got-no-relax.d: New file.
1137 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
1138 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
1139 * testsuite/gas/i386/localpic.d: Likewise.
1140 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
1141 * testsuite/gas/i386/reloc32.d: Likewise.
1142 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
1143 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
1144 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
1145 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
1146 * testsuite/gas/i386/i386.exp: Run got-no-relax and
1147 x86-64-gotpcrel-no-relax.
1149 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
1151 * NEWS: Mention new command line option -mfence-as-lock-add=yes
1154 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
1156 * NEWS: Remove duplicated marker for 2.26.
1158 2016-02-02 Renlin Li <renlin.li@arm.com>
1160 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
1162 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1164 * testsuite/gas/ip2k/allinsn.d: New file.
1165 * testsuite/gas/ip2k/allinsn.s: New file.
1166 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
1168 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1170 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
1171 some load instructions.
1172 * testsuite/gas/epiphany/allinsn.d: Likewise.
1173 * testsuite/gas/epiphany/regression.d: Likewise.
1175 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1177 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
1178 suffixes from instruction mnemonics in expected output.
1179 * testsuite/gas/epiphany/allinsn.d: Likewise.
1180 * testsuite/gas/epiphany/regression.d: Likewise.
1181 * testsuite/gas/epiphany/sample.d: Likewise.
1183 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1185 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
1187 * testsuite/gas/epiphany/allinsn.d: Likewise.
1188 * testsuite/gas/epiphany/sample.d: Likewise.
1190 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
1192 * testsuite/gas/epiphany/sample.d: Update expected output.
1194 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
1196 * config/tc-arc.c (md_apply_fix): Allow addendum.
1197 (arc_reloc_op): Allow complex expressions for tpoff.
1198 (md_apply_fix): Handle resolved TLS local symbol.
1200 * testsuite/gas/arc/tls-relocs1.d: New file.
1201 * testsuite/gas/arc/tls-relocs1.s: Likewise.
1203 2016-02-01 Loria <Loria@phantasia.org>
1206 * config/tc-arm.c (encode_arm_immediate): Recode to improve
1207 efficiency and avoid an LLVM loop optimization bug.
1209 2016-02-01 Nick Clifton <nickc@redhat.com>
1211 * config/tc-microblaze.c (parse_imm): Fix compile time warning
1212 message extending a negative 32-bit value into a larger signed
1213 value on a 32-bit host.
1215 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1218 * configure.ac (compressed_debug_sections): Replace == with =.
1219 * configure: Regenerated.
1221 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
1222 H.J. Lu <hongjiu.lu@intel.com>
1224 * config/tc-i386.c (avoid_fence): New.
1225 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
1227 (OPTION_FENCE_AS_LOCK_ADD): New.
1228 (md_longopts): Add -mfence-as-lock-add.
1229 (md_parse_option): Handle -mfence-as-lock-add.
1230 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
1231 * doc/c-i386.texi (-mfence-as-lock-add): Document.
1232 * testsuite/gas/i386/i386.exp: Run new tests.
1233 * testsuite/gas/i386/fence-as-lock-add.s: New.
1234 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
1235 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
1236 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
1237 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
1239 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
1241 * configure.ac (compressed_debug_sections): Remove trailing `]'.
1242 * configure: Regenerated.
1244 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
1246 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
1247 (OPTION_MOMIT_LOCK_PREFIX): This.
1248 (md_longopts): Updated.
1249 (md_parse_option): Likewise.
1251 2016-01-25 Catherine Moore <clm@codesourcery.com>
1253 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
1254 if abicalls are in effect.
1255 * testsuite/gas/mips/sdata-gp.s: New test.
1256 * testsuite/gas/mips/sdata-gp.d: New expected output
1257 * testsuite/gas/mips/mips.exp: Run new test.
1259 2016-01-25 Renlin Li <renlin.li@arm.com>
1261 * testsuite/gas/arm/thumb2_it_search.d: New.
1262 * testsuite/gas/arm/thumb2_it_search.s: New.
1264 2016-01-21 Nick Clifton <nickc@redhat.com>
1267 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
1268 with arm-netbsdelf target.
1269 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
1271 2016-01-20 Nick Clifton <nickc@redhat.com>
1274 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
1275 * testsuite/gas/arm/blx-bl-convert.d
1276 * testsuite/gas/arm/plt-1.d: Likewise.
1277 * testsuite/gas/arm/reloc-bad.d: Likewise.
1278 * testsuite/gas/arm/thumb-w-good.d: Likewise.
1279 * testsuite/gas/arm/thumb2_pool.d: Likewise.
1280 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
1281 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
1284 * doc/as.texinfo (Errors): Correct documentation describing the
1285 interaction of .file and .line with warning and error messages.
1288 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
1289 * testsuite/gas/arm/archv8m-main.d: Likewise.
1290 * testsuite/gas/arm/archv8m-base.d: Likewise.
1292 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
1294 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
1295 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
1296 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
1298 2016-01-20 Mickael Guene <mickael.guene@st.com>
1299 Terry Guo <terry.guo@arm.com>
1301 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
1302 SHF_ARM_NOREAD section flag.
1303 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
1305 (arm_elf_section_letter) : Declare it.
1306 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
1307 SHF_ARM_NOREAD section flag.
1308 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
1310 * testsuite/gas/arm/section-execute-only.s: New test case.
1311 * testsuite/gas/arm/section-execute-only.d: Expected output.
1313 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1315 * config/tc-mips.c (micromips_insn_length): Remove the mention
1316 of 48-bit microMIPS instructions.
1318 2016-01-18 Alan Modra <amodra@gmail.com>
1320 * configure: Regenerate.
1322 2016-01-17 Alan Modra <amodra@gmail.com>
1324 * configure: Regenerate.
1326 2016-01-17 Alan Modra <amodra@gmail.com>
1328 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
1330 2016-01-14 Nick Clifton <nickc@redhat.com>
1332 * testsuite/gas/rl78/sp-relative-movw.s: New test.
1333 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
1334 * testsuite/gas/rl78/rl78.exp: Run the new test.
1336 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
1338 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
1339 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
1341 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
1343 * config/tc-nios2.c (output_movia): Preset `code' to 0.
1345 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
1347 * config/tc-h8300.c (get_operand): Remove spurious condition in
1348 test for closing parenthesis.
1350 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
1352 * config/tc-arm.c (arm_ext_v8_2): New.
1354 * testsuite/gas/arm/armv8_2-a.d: New.
1355 * testsuite/gas/arm/armv8_2-a.s: New.
1357 2016-01-12 Alan Modra <amodra@gmail.com>
1359 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
1361 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
1363 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
1364 xvcmpnesp, xvcmpnesp.>: Delete tests.
1365 * testsuite/gas/ppc/power9.s: Likewise.
1366 * testsuite/gas/ppc/vsx3.d: Likewise.
1367 * testsuite/gas/ppc/vsx3.s: Likewise.
1369 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
1372 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
1373 * testsuite/gas/m68k/p13050-1.s: New file.
1374 * testsuite/gas/m68k/p13050-2.d: New file.
1375 * testsuite/gas/m68k/p13050-2.s: New file.
1377 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1379 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
1380 * testsuite/gas/arc/add.d: Likewise.
1381 * testsuite/gas/arc/and.d: Likewise.
1382 * testsuite/gas/arc/asl.d: Likewise.
1383 * testsuite/gas/arc/asr.d: Likewise.
1384 * testsuite/gas/arc/bic.d: Likewise.
1385 * testsuite/gas/arc/extb.d: Likewise.
1386 * testsuite/gas/arc/extw.d: Likewise.
1387 * testsuite/gas/arc/j.d: Likewise.
1388 * testsuite/gas/arc/jl.d: Likewise.
1389 * testsuite/gas/arc/ld2.d: Likewise.
1390 * testsuite/gas/arc/lsr.d: Likewise.
1391 * testsuite/gas/arc/mov.d: Likewise.
1392 * testsuite/gas/arc/or.d: Likewise.
1393 * testsuite/gas/arc/pcl-relocs.d: Likewise.
1394 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
1395 * testsuite/gas/arc/pic-relocs.d: Likewise.
1396 * testsuite/gas/arc/plt-relocs.d: Likewise.
1397 * testsuite/gas/arc/rlc.d: Likewise.
1398 * testsuite/gas/arc/ror.d: Likewise.
1399 * testsuite/gas/arc/rrc.d: Likewise.
1400 * testsuite/gas/arc/sbc.d: Likewise.
1401 * testsuite/gas/arc/sda-relocs.d: Likewise.
1402 * testsuite/gas/arc/sda-relocs2.d: Likewise.
1403 * testsuite/gas/arc/sexb.d: Likewise.
1404 * testsuite/gas/arc/sexw.d: Likewise.
1405 * testsuite/gas/arc/st.d: Likewise.
1406 * testsuite/gas/arc/sub.d: Likewise.
1407 * testsuite/gas/arc/tls-relocs.d: Likewise.
1408 * testsuite/gas/arc/xor.d: Likewise.
1410 2016-01-01 Alan Modra <amodra@gmail.com>
1412 Update year range in copyright notice of all files.
1414 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
1416 Copyright (C) 2016 Free Software Foundation, Inc.
1418 Copying and distribution of this file, with or without modification,
1419 are permitted in any medium without royalty provided the copyright
1420 notice and this notice are preserved.
1426 version-control: never