1 2016-03-10 Mickael Guene <mickael.guene@st.com>
4 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
6 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
7 (do_t_mov_cmp): Likewise.
8 (do_t_add_sub): Protect against bad relocations usage.
9 (do_t_mov_cmp): Likewise.
11 2016-03-09 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
13 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
15 (do_neon_ld_st_lane): Likewise.
16 (do_neon_ld_dup): Likewise.
18 2016-03-08 Andrew Burgess <andrew.burgess@embecosm.com>
20 * testsuite/gas/arc/inline-data-1.d: New file.
21 * testsuite/gas/arc/inline-data-1.s: New file.
23 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
25 * config/tc-arm.c (arm_cpus): Add cortex-r8.
26 * doc/c-arm.texi: Add cortex-r8.
28 2016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
30 * config/tc-arc.c: Add const qualifiers.
31 * config/tc-h8300.c (md_begin): Likewise.
32 * config/tc-ia64.c (print_prmask): Likewise.
33 * config/tc-msp430.c (msp430_operands): Likewise.
34 * config/tc-nds32.c (struct suffix_name): Likewise.
35 (struct nds32_parse_option_table): Likewise.
36 (struct nds32_set_option_table): Likewise.
37 (do_pseudo_pushpopm): Likewise.
38 (do_pseudo_pushpop_stack): Likewise.
39 (nds32_relax_relocs): Likewise.
40 (nds32_flag): Likewise.
41 (struct nds32_hint_map): Likewise.
42 (nds32_find_reloc_table): Likewise.
43 (nds32_match_hint_insn): Likewise.
44 * config/tc-s390.c: Likewise.
45 * config/tc-sh.c (get_specific): Likewise.
46 * config/tc-tic30.c: Likewise.
47 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
48 (tic4x_indirect_parse): Likewise.
49 * config/tc-vax.c (vax_cons): Likewise.
50 * config/tc-z80.c (struct reg_entry): Likewise.
51 * config/tc-epiphany.c (md_assemble): Adjust.
52 (epiphany_assemble): New function.
53 (epiphany_elf_section_rtn): Call do_align directly.
54 (epiphany_elf_section_text): Likewise.
55 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
56 (ip2k_elf_section_text): Likewise.
57 * read.c (do_align): Make it not static.
58 * read.h (do_align): New prototype.
60 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
62 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
63 for ARMv8.1 AdvSIMD use.
64 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
65 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
67 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
69 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
71 (record_feature_use): New.
72 (mark_feature_used): Use record_feature_use.
73 (do_neon_qrdmlah): New.
74 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
76 (arm_extensions): Put into alphabetical order. Re-indent "simd"
77 and "rdma" entries. Fix the incorrect merge value for "+rdma".
78 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
79 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
80 Make source file explicit.
81 * testsuite/gas/arm/armv8-a+rdma.l: New.
82 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
83 directives. Fix white-space.
84 * testsuite/gas/arm/armv8_1-a+simd.d: New.
86 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
88 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
90 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
91 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
93 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
94 (tc_arc_fix_adjustable): Changed default return value to 1.
95 * testsuite/gas/arc/j.d: Updated expected symbol
96 * testsuite/gas/arc/jl.d: Likewise
97 * testsuite/gas/arc/relax-avoid1.d: Likewise
98 * testsuite/gas/arc/st.d: Likewise
100 2016-02-29 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
102 * config/tc-arc.c: Enable code density instructions for ARC EM.
104 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
107 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
109 * as.c (flag_use_elf_stt_common): New.
110 (show_usage): Add --elf-stt-common=.
111 (option_values): Add OPTION_ELF_STT_COMMON.
112 (std_longopts): Add --elf-stt-common=.
113 (parse_args): Handle --elf-stt-common=.
114 * as.h (flag_use_elf_stt_common): New.
115 * config.in: Regenerated.
116 * configure: Likewise.
117 * configure.ac: Add --enable-elf-stt-common and define
118 DEFAULT_GENERATE_ELF_STT_COMMON.
119 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
120 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
121 * doc/as.texinfo: Document --elf-stt-common=.
122 * testsuite/gas/elf/common3.s: New file.
123 * testsuite/gas/elf/common3a.d: Likewise.
124 * testsuite/gas/elf/common3b.d: Likewise.
125 * testsuite/gas/elf/common4.s: Likewise.
126 * testsuite/gas/elf/common4a.d: Likewise.
127 * testsuite/gas/elf/common4b.d: Likewise.
128 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
129 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
130 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
132 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
133 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
134 --elf-stt-common=no to as.
135 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
136 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
137 --elf-stt-common=no to as.
138 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
139 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
140 of dw2-compress-3 and dw2-compressed-3.
142 2016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
144 * as.c (select_emulation_mode): Add const qualifiers.
146 * config/bfin-defs.h: Likewise.
147 * config/bfin-parse.y: Likewise.
148 * config/rx-parse.y: Likewise.
149 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
150 (struct aarch64_cpu_option_table): Likewise.
151 (struct aarch64_arch_option_table): Likewise.
152 (struct aarch64_option_cpu_value_table): Likewise.
153 (struct aarch64_long_option_table): Likewise.
154 (struct aarch64_option_abi_value_table): Likewise.
155 * config/tc-arm.c (struct reloc_entry): Likewise.
156 (tc_gen_reloc): Likewise.
157 (struct arm_option_table): Likewise.
158 (struct arm_legacy_option_table): Likewise.
159 (struct arm_cpu_option_table): Likewise.
160 (struct arm_arch_option_table): Likewise.
161 (struct arm_option_extension_value_table): Likewise.
162 (struct arm_option_fpu_value_table): Likewise.
163 (struct arm_option_value_table): Likewise.
164 (struct arm_long_option_table): Likewise.
165 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
166 (struct mcu_type_s): Likewise.
167 (struct exp_mod_s): Likewise.
168 (avr_operand): Likewise.
169 (avr_operands): Likewise.
170 * config/tc-d10v.c (md_begin): Likewise.
171 * config/tc-dlx.c: Likewise.
172 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
173 * config/tc-ft32.c (parse_condition): Likewise.
174 * config/tc-h8300.c (do_a_fix_imm): Likewise.
175 * config/tc-hppa.c (pa_ip): Likewise.
176 (hppa_regname_to_dw2regnum): Likewise.
177 * config/tc-i370.c (i370_elf_suffix): Likewise.
178 * config/tc-i960.c (struct tabentry): Likewise.
179 * config/tc-m32r.c: Likewise.
180 * config/tc-m68k.c: Likewise.
181 * config/tc-m68k.h: Likewise.
182 * config/tc-mcore.c (parse_psrmod): Likewise.
183 * config/tc-metag.c (struct metag_core_option): Likewise.
184 (struct metag_long_option): Likewise.
185 * config/tc-microblaze.c: Likewise.
186 * config/tc-mips.c (macro): Likewise.
187 * config/tc-mn10200.c: Likewise.
188 * config/tc-mn10300.c: Likewise.
189 * config/tc-msp430.c (struct rcodes_s): Likewise.
190 (struct hcodes_s): Likewise.
191 (md_parse_option): Likewise.
192 * config/tc-ns32k.c (struct ns32k_option): Likewise.
194 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
195 (tc_ppc_regname_to_dw2regnum): Likewise.
196 * config/tc-ppc.h: Likewise.
197 * config/tc-rl78.c: Likewise.
198 * config/tc-rx.c (struct cpu_type): Likewise.
199 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
200 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
201 (sparc_ip): Likewise.
202 * config/tc-spu.c (insn_fmt_string): Likewise.
203 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
204 * config/tc-v850.c: Likewise.
205 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
206 (struct visium_long_option_table): Likewise.
207 * config/tc-xgate.c: Likewise.
208 * config/tc-z8k.c: Likewise.
209 * read.c (add_include_dir): Likewise.
212 2016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
214 * testsuite/gas/all/gas.exp: Change target pattern to cover
216 * testsuite/gas/all/redef3.d: Likewise.
217 * testsuite/gas/elf/elf.exp: Likewise.
219 2016-02-24 Renlin Li <renlin.li@arm.com>
221 * config/tc-arm.c (BAD_FP16): New error message macro.
222 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
223 fp16 scalar instructions.
224 (neon_check_type): Allow different size from key.
225 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
226 (try_vfp_nsyn): Likewise.
227 (do_vfp_nsyn_mla_mls): Likewise.
228 (do_vfp_nsyn_fma_fms): Likewise.
229 (do_vfp_nsyn_ldm_stm): Likewise
230 (do_vfp_nsyn_sqrt): Likewise
231 (do_vfp_nsyn_div): Likewise
232 (do_vfp_nsyn_nmul): Likewise.
233 (do_vfp_nsyn_cmp): Likewise.
234 (do_neon_shll): Likewise.
235 (do_vfp_nsyn_cvt_fpv8): Likewise.
236 (do_neon_cvttb_2): Likewise.
237 (do_neon_mov): Likewise.
238 (do_neon_rshift_round_imm): Likewise.
239 (do_neon_ldr_str): Likewise.
240 (do_vfp_nsyn_fpv8): Likewise.
241 (do_vmaxnm): Likewise.
242 (do_vrint_1): Likewise.
243 (insns): New entry for vins, vmovx.
244 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
245 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
246 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
247 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
248 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
249 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
250 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
252 2016-02-24 Renlin Li <renlin.li@arm.com>
254 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
255 (neon_shape_class): New SC_HALF.
256 (neon_shape_el): New SE_H.
257 (neon_shape_el_size): New size for SE_H.
258 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
259 (neon_select_shape): Add SE_H support code.
260 (el_type_of_type_chk): Use N_F_ALL.
261 (do_vfp_nsyn_cvt): Add SE_H shape support.
262 (do_neon_cvtz): Likewise.
263 (do_neon_cvt_1): Likewise.
264 (do_neon_cvttb_1): Likewise.
266 2016-02-24 Renlin Li <renlin.li@arm.com>
268 * testsuite/gas/arm/copro.d: Adjust output.
269 * testsuite/gas/arm/copro.s: Adjust co-processor num.
271 2016-02-24 Renlin Li <renlin.li@arm.com>
273 * testsuite/gas/arm/mask_1.d: New.
274 * testsuite/gas/arm/mask_1.s: New.
276 2016-02-24 Renlin Li <renlin.li@arm.com>
278 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
279 * testsuite/gas/arm/copro.d: Update.
281 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
283 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
284 * doc/c-arm.texi (ARM Options): Document cortex-a32.
286 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
288 * doc/c-arm.texi (ARM Options): Document cortex-a17.
290 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
292 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
295 2016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
297 * output-file.c (output_file_create): Make file name argument const.
298 (output_file_close): Likewise.
299 * output-file.h (output_file_create): Adjust.
300 (output_file_close): Likewise.
301 * depend.c (quote_string_for_make): Make src argument const char *.
302 (register_dependency): Likewise.
303 (wrap_output): Likewise.
304 * as.h (register_dependency): Adjust.
305 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
307 * symbols.c (S_SET_EXTERNAL): Likewise.
308 * input-scrub.c (as_where): Return the file name.
309 * as.h (as_where): Adjust prototype.
310 * app.c (do_scrub_chars): Adjust.
311 * cond.c (s_elseif): Likewise.
313 (initialize_cframe): Likewise.
314 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
315 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
316 * config/obj-som.c (obj_som_init_stab_section): Likewise.
317 * config/tc-aarch64.c (output_info): Likewise.
318 * config/tc-ia64.c (md_assemble): Likewise.
319 (dot_alias): Likewise.
320 * config/tc-m68k.c (m68k_frob_label): Likewise.
321 * config/tc-mmix.c (s_bspec): Likewise.
322 (mmix_handle_mmixal): Likewise.
323 * config/tc-rx.c (rx_include): Likewise.
324 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
325 (tic54x_adjust_symtab): Likewise.
326 * config/tc-xtensa.c (directive_push): Likewise.
327 (xtensa_sanity_check): Likewise.
328 (xtensa_relax_frag): Likewise.
329 (md_convert_frag): Likewise.
330 (tinsn_to_slotbuf): Likewise.
331 * dwarf2dbg.c (dwarf2_where): Likewise.
332 * ecoff.c (add_file): Likewise.
333 (ecoff_generate_asm_lineno): Likewise.
334 * expr.c (make_expr_symbol): Likewise.
335 * frags.c (frag_new): Likewise.
336 (frag_var_init): Likewise.
337 * listing.c (listing_newline): Likewise.
338 * messages.c (identify): Likewise.
339 (as_show_where): Likewise.
340 (as_warn_internal): Likewise.
341 (as_bad_internal): Likewise.
342 * read.c (s_irp): Likewise.
345 * stabs.c (stabs_generate_asm_file): Likewise.
346 (stabs_generate_asm_lineno): Likewise.
347 (stabs_generate_asm_func): Likewise.
348 * write.c (fix_new_internal): Likewise.
349 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
350 (as_warn_value_out_of_range): Adjust prototype.
351 (as_bad_value_out_of_range): Adjust prototype.
352 * messages.c (identify): Make file name argument const char *.
353 (as_warn_internal): Likewise.
354 (as_warn_where): Likewise.
355 (as_bad_internal): Likewise.
356 (as_bad_where): Likewise.
357 (as_internal_value_out_of_range): Likewise.
358 (as_warn_value_out_of_range): Likewise.
359 (as_bad_value_out_of_range): Likewise.
360 * as.h (found_comment_file): Change type to const char *.
361 * cond.c (file_line::file): Likewise.
362 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
363 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
364 * config/obj-som.c (obj_som_init_stab_section): Likewise.
365 * config/tc-aarch64.c (output_info): Likewise.
366 * config/tc-alpha.c (insert_operand): Likewise.
367 * config/tc-arc.c (insert_operand): Likewise.
368 * config/tc-d30v.c (check_size): Likewise.
369 * config/tc-ia64.c (struct alias): Likewise.
370 * config/tc-m68k.c (struct label_line): Likewise.
371 * config/tc-mcore.c (md_apply_fix): Likewise.
372 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
373 * config/tc-mips.c (mips16_immed): Likewise.
374 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
375 * config/tc-ppc.c (ppc_insert_operand): Likewise.
376 * config/tc-rx.c (rx_include): Likewise.
377 * config/tc-s390.c (s390_insert_operand): Likewise.
378 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
379 (tic54x_adjust_symtab): Likewise.
380 * config/tc-tilegx.c (insert_operand): Likewise.
381 (apply_special_operator): Likewise.
382 * config/tc-tilepro.c (insert_operand): Likewise.
383 * config/tc-xtensa.c (directive_push): Likewise.
384 * ecoff.c (add_file): Likewise.
385 (ecoff_generate_asm_lineno): Likewise.
386 * listing.c (listing_newline): Likewise.
387 * read.c (s_irp): Likewise.
388 * write.c (install_reloc): Likewise.
389 * write.h (struct fix): Likewise.
390 * input-file.c (file_name): Change type to const char *.
391 (saved_file::file_name): Likewise.
392 (input_file_open): Change type of argument to const char *.
393 * input-file.h (input_file_open): Adjust.
394 * input-scrub.c (logical_input_file): change type to const char *.
395 (physical_input_file): Likewise.
396 (struct input_save): Adjust.
397 (input_scrub_push): Adjust.
398 (input_scrub_begin): Adjust.
400 * input-scrub.c (input_scrub_new_file): Make file name argument const.
401 (input_scrub_include_file): Likewise.
402 (new_logical_line_flags): Likewise.
403 (new_logical_line): Likewise.
405 * frags.h (struct frag): Change type of fr_file to const char *.
406 * expr.c (expr_symbol_where): Change type of file argument to
408 * expr.h (expr_symbol_where): Likewise.
409 * config/tc-i370.c (md_apply_fix): adjust.
410 * config/tc-mmix.c (mmix_md_end): Likewise.
411 * config/tc-ppc.c (md_apply_fix): Likewise.
412 * config/tc-s390.c (md_apply_fix): Likewise.
413 * symbols.c (report_op_error): Likewise.
414 (resolve_symbol_value): Likewise.
415 * config/tc-ia64.c (slot::src_file): Change type to const char *.
416 (rsrc::file): Likewise.
417 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
419 (xtensa_relax_frag): Likewise.
420 (md_convert_frag): Likewise.
421 (tinsn_to_slotbuf): Likewise.
422 * expr.c (expr_symbol_line): Likewise.
423 * macro.c (define_macro): Likewise.
424 * macro.h (macro_struct): Likewise.
425 * messages.c (as_show_where): Likewise.
426 * read.c (s_macro): Likewise.
427 * stabs.c (stabs_generate_asm_file): Likewise.
428 (generate_asm_file): Likewise.
429 (stabs_generate_asm_lineno): Likewise.
430 * write.h (struct reloc_list): Likewise.
431 * input-scrub.c (as_where): Change return type to const char *.
432 * as.h (as_wheree): Adjust.
434 2016-02-21 H.J. Lu <hongjiu.lu@intel.com>
436 * write.c (compress_debug): Move BFD compression bits setting
438 (write_object_file): Here.
440 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
442 * config/tc-i386.c (register_number): Check RegVRex.
443 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
444 with %zmm19 and %zmm3.
445 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
446 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
448 2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
449 Jiong Wang <jiong.wang@arm.com>
451 * config/tc-arm.c (arm_ext_fp16): New.
452 (arm_extensions): New entry for "fp16".
454 2016-02-19 Nick Clifton <nickc@redhat.com>
457 * read.c (read_a_source_file): Check for assemble_one returning
458 with input_line_pointer set to NULL.
460 2016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
462 * listing.c (rebuffer_line): Change return type to void.
464 * symbols.c (decode_local_label_name): Make type a const char *.
465 * listing.c (print_source): Make type of p const char *.
466 (print_line): Make type of string const char *.
467 (buffer_line): Return const char *.
468 (title): Make type const char *.
469 (subtitle): Likewise.
470 (listing_listing): Make type of p const char *.
471 * messages.c (as_internal_value_out_of_range): Make type of prefix
473 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
474 and string const char *.
475 * read.c (_bfd_rel): Make type of name const char *.
476 * app.c (out_string): Change type to const char *.
477 (struct app_save::out_string): Likewise.
479 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
480 Nick Clifton <nickc@redhat.com>
482 * read.c (finish_bundle): Avoid recording a negative alignment.
483 (do_align): Use unsigned values for n, len and max. Only create
484 a frag if the alignment requirement is greater than the minimum
485 byte alignment. Avoid recording a negative alignment.
486 (s_align): Use unsigned values where appropriate.
487 (bss_alloc): Use an unsigned value for the alignment.
488 (sizeof_sleb128): Add a comment noting that we encode one octet
489 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
490 (emit_leb129_expr): Abort if the emitted encoding was longer than
492 * read.h (output_leb128): Update prototype.
493 (sizeof_leb128): Update prototype.
494 (bss_alloc): Update prototype.
495 * write.c (record_alignment): Use an unsigned value for the
496 alignment. Do not record alignments less than the minimum
497 alignment for a byte.
498 * write.h (record_alignment): Update prototype.
500 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
502 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
503 .init.literal/.fini.literal section name.
504 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
505 list of xtensa tests.
506 * testsuite/gas/xtensa/init-fini-literals.d: New file:
507 init-fini-literals test result patterns.
508 * testsuite/gas/xtensa/init-fini-literals.s: New file:
509 init-fini-literals test.
511 2016-02-17 Nick Clifton <nickc@redhat.com>
513 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
514 devices.csv file as of March 2016.
516 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
518 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
520 (tc_arc_regname_to_dw2regnum): Likewise.
521 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
522 (tc_cfi_frame_initial_instructions): Likewise.
523 (tc_regname_to_dw2regnum): Likewise.
525 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
527 * doc/internals.texi (S_IS_EXTERN): Remove.
529 2016-02-16 Nick Clifton <nickc@redhat.com>
531 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
534 2016-02-16 Renlin Li <renlin.li@arm.com>
537 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
538 * testsuite/gas/aarch64/movw_label.d: New.
539 * testsuite/gas/aarch64/movw_label.s: New.
541 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
544 * config/rx-parse.y (MOV): Opcode generation for index
545 register addressing mode.
546 * testsuite/gas/rx/rx.exp: Updated for new testcase.
547 * testsuite/gas/rx/pr19665.s: New file.
548 * testsuite/gas/rx/pr19665.s: New file.
549 * testsuite/gas/rx/mov.d: Update expected output.
551 2016-02-15 Nick Clifton <nickc@redhat.com>
553 * doc/as.texinfo (.section): Document that numeric values can now
554 be used for the flags and type fields of the ELF target's .section
555 directive. Add notes about the restrictions on setting flags and
557 * config/obj-elf.c (obj_elf_change_section): Allow known sections
558 to be given processor specific section types. Allow processor and
559 application specific flags of a section to be set after
561 (obj_elf_parse_section_letters): Handle parsing numeric values.
562 (obj_elf_section_type): Handle parsing numeric values.
563 (obj_elf_section): Allow numeric type values.
564 * config/obj-elf.h (obj_elf_change_section): Update prototype.
565 * testsuite/gas/elf/section10.d: New test.
566 * testsuite/gas/elf/section10.s: Source file for new test.
567 * testsuite/gas/elf/elf.exp: Run the new test.
568 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
569 the description of the flags produced by readelf.
570 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
571 * NEWS: Mention the new feature.
573 2016-02-11 Nick Clifton <nickc@redhat.com>
576 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
577 until it is actually used.
578 (cfi_set_sections): Set cfi_sections_set to true.
579 (dot_cfi_startproc): Likewise.
580 (dot_cfi_endproc): Likewise.
581 (dot_cfi_fde_data): Likewise.
582 (cfi_finish): Likewise.
583 (dot_cfi_sections): Do not set cfi_sections_set.
584 * doc/as.texinfo (.cfi_sections): Note that targets can provide
585 their own cfi section name. Also note that the directive can be
586 reissued provided that CFI generation has not started.
587 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
588 .cfi_endproc directives so that the redefinition of .cfi_sections
589 will trigger the generation of the error message.
590 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
591 number of error message.
593 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
594 Janek van Oirschot <jvanoirs@synopsys.com>
596 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
597 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
599 (arc_flags, arc_relax_type): New structure.
600 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
601 (RELAX_TABLE_ENTRY_MAX): New define.
602 (relaxation_state, md_relax_table, arc_relaxable_insns)
603 (arc_num_relaxable_ins): New variable.
604 (rlx_operand_type, arc_rlx_types): New enums.
605 (arc_relaxable_ins): New structure.
606 (OPTION_RELAX): New option.
607 (arc_insn): New relax member.
609 (relax_insn_p): New function.
610 (apply_fixups): Likewise.
611 (relaxable_operand): Likewise.
612 (may_relax_expr): Likewise.
613 (relaxable_flag): Likewise.
614 (arc_pcrel_adjust): Likewise.
615 (md_estimate_size_before_relax): Implement.
616 (md_convert_frag): Likewise.
617 (md_parse_option): Handle new mrelax option.
618 (md_show_usage): Likewise.
619 (assemble_insn): Set relax member.
620 (emit_insn0): New function.
621 (emit_insn1): Likewise.
622 (emit_insn): Handle relaxation case.
623 * NEWS: Mention the new relaxation option.
624 * doc/c-arc.texi (ARC Options): Document new mrelax option.
625 * doc/as.texinfo (Target ARC Options): Likewise.
626 * testsuite/gas/arc/relax-avoid1.d: New file.
627 * testsuite/gas/arc/relax-avoid1.s: Likewise.
628 * testsuite/gas/arc/relax-avoid2.d: Likewise.
629 * testsuite/gas/arc/relax-avoid2.s: Likewise.
630 * testsuite/gas/arc/relax-avoid3.d: Likewise.
631 * testsuite/gas/arc/relax-avoid3.s: Likewise.
632 * testsuite/gas/arc/relax-b.d: Likewise.
633 * testsuite/gas/arc/relax-b.s: Likewise.
635 2016-02-08 Nick Clifton <nickc@redhat.com>
637 * config/tc-ia64.c (dot_prologue): Fix formatting.
639 2016-02-04 Nick Clifton <nickc@redhat.com>
641 * config/obj-elf.c (obj_elf_change_section): Remove support for
643 * config/tc-arm.c (arm_elf_section_letter): Delete.
644 * config/tc-arm.h (md_elf_section_letter): Delete.
645 * doc/c-arm.texi (ARM Section Attribute): Delete section.
646 * testsuite/gas/arm/section-execute-only.d: Delete.
647 * testsuite/gas/arm/section-execute-only.s: Delete.
649 2016-02-04 Nick Clifton <nickc@redhat.com>
652 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
653 to handle encoding of RRUX instruction.
654 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
656 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
658 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
660 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
661 substitutions for BFD_RELOC_* as unsigned.
662 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
663 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
664 * testsuite/gas/xtensa/loc.s: New file: loc test.
666 2016-02-03 Kevin Buettner <kevinb@redhat.com>
668 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
670 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
673 * NEWS: Mention new command line option -mrelax-relocations and
674 new configure option --enable-x86-relax-relocations for x86
676 * config.in: Regenerated.
677 * configure.ac: Add --enable-x86-relax-relocations.
678 (ac_default_x86_relax_relocations): New. Default to 1 except
679 for x86 Solaris targets older than Solaris 12.
680 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
681 * configure: Likewise.
682 * config/tc-i386.c (generate_relax_relocations): New.
683 (OPTION_MRELAX_RELOCATIONS): Likewise.
684 (output_disp): Don't generate relax relocations if
685 generate_relax_relocations is 0.
686 (md_longopts): Add -mrelax-relocations.
687 (md_show_usage): Likewise.
688 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
689 * doc/c-i386.texi: Document -mrelax-relocations=.
690 * testsuite/gas/i386/got-no-relax.d: New file.
691 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
692 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
693 * testsuite/gas/i386/localpic.d: Likewise.
694 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
695 * testsuite/gas/i386/reloc32.d: Likewise.
696 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
697 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
698 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
699 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
700 * testsuite/gas/i386/i386.exp: Run got-no-relax and
701 x86-64-gotpcrel-no-relax.
703 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
705 * NEWS: Mention new command line option -mfence-as-lock-add=yes
708 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
710 * NEWS: Remove duplicated marker for 2.26.
712 2016-02-02 Renlin Li <renlin.li@arm.com>
714 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
716 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
718 * testsuite/gas/ip2k/allinsn.d: New file.
719 * testsuite/gas/ip2k/allinsn.s: New file.
720 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
722 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
724 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
725 some load instructions.
726 * testsuite/gas/epiphany/allinsn.d: Likewise.
727 * testsuite/gas/epiphany/regression.d: Likewise.
729 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
731 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
732 suffixes from instruction mnemonics in expected output.
733 * testsuite/gas/epiphany/allinsn.d: Likewise.
734 * testsuite/gas/epiphany/regression.d: Likewise.
735 * testsuite/gas/epiphany/sample.d: Likewise.
737 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
739 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
741 * testsuite/gas/epiphany/allinsn.d: Likewise.
742 * testsuite/gas/epiphany/sample.d: Likewise.
744 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
746 * testsuite/gas/epiphany/sample.d: Update expected output.
748 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
750 * config/tc-arc.c (md_apply_fix): Allow addendum.
751 (arc_reloc_op): Allow complex expressions for tpoff.
752 (md_apply_fix): Handle resolved TLS local symbol.
754 * testsuite/gas/arc/tls-relocs1.d: New file.
755 * testsuite/gas/arc/tls-relocs1.s: Likewise.
757 2016-02-01 Loria <Loria@phantasia.org>
760 * config/tc-arm.c (encode_arm_immediate): Recode to improve
761 efficiency and avoid an LLVM loop optimization bug.
763 2016-02-01 Nick Clifton <nickc@redhat.com>
765 * config/tc-microblaze.c (parse_imm): Fix compile time warning
766 message extending a negative 32-bit value into a larger signed
767 value on a 32-bit host.
769 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
772 * configure.ac (compressed_debug_sections): Replace == with =.
773 * configure: Regenerated.
775 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
776 H.J. Lu <hongjiu.lu@intel.com>
778 * config/tc-i386.c (avoid_fence): New.
779 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
781 (OPTION_FENCE_AS_LOCK_ADD): New.
782 (md_longopts): Add -mfence-as-lock-add.
783 (md_parse_option): Handle -mfence-as-lock-add.
784 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
785 * doc/c-i386.texi (-mfence-as-lock-add): Document.
786 * testsuite/gas/i386/i386.exp: Run new tests.
787 * testsuite/gas/i386/fence-as-lock-add.s: New.
788 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
789 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
790 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
791 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
793 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
795 * configure.ac (compressed_debug_sections): Remove trailing `]'.
796 * configure: Regenerated.
798 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
800 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
801 (OPTION_MOMIT_LOCK_PREFIX): This.
802 (md_longopts): Updated.
803 (md_parse_option): Likewise.
805 2016-01-25 Catherine Moore <clm@codesourcery.com>
807 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
808 if abicalls are in effect.
809 * testsuite/gas/mips/sdata-gp.s: New test.
810 * testsuite/gas/mips/sdata-gp.d: New expected output
811 * testsuite/gas/mips/mips.exp: Run new test.
813 2016-01-25 Renlin Li <renlin.li@arm.com>
815 * testsuite/gas/arm/thumb2_it_search.d: New.
816 * testsuite/gas/arm/thumb2_it_search.s: New.
818 2016-01-21 Nick Clifton <nickc@redhat.com>
821 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
822 with arm-netbsdelf target.
823 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
825 2016-01-20 Nick Clifton <nickc@redhat.com>
828 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
829 * testsuite/gas/arm/blx-bl-convert.d
830 * testsuite/gas/arm/plt-1.d: Likewise.
831 * testsuite/gas/arm/reloc-bad.d: Likewise.
832 * testsuite/gas/arm/thumb-w-good.d: Likewise.
833 * testsuite/gas/arm/thumb2_pool.d: Likewise.
834 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
835 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
838 * doc/as.texinfo (Errors): Correct documentation describing the
839 interaction of .file and .line with warning and error messages.
842 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
843 * testsuite/gas/arm/archv8m-main.d: Likewise.
844 * testsuite/gas/arm/archv8m-base.d: Likewise.
846 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
848 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
849 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
850 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
852 2016-01-20 Mickael Guene <mickael.guene@st.com>
853 Terry Guo <terry.guo@arm.com>
855 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
856 SHF_ARM_NOREAD section flag.
857 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
859 (arm_elf_section_letter) : Declare it.
860 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
861 SHF_ARM_NOREAD section flag.
862 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
864 * testsuite/gas/arm/section-execute-only.s: New test case.
865 * testsuite/gas/arm/section-execute-only.d: Expected output.
867 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
869 * config/tc-mips.c (micromips_insn_length): Remove the mention
870 of 48-bit microMIPS instructions.
872 2016-01-18 Alan Modra <amodra@gmail.com>
874 * configure: Regenerate.
876 2016-01-17 Alan Modra <amodra@gmail.com>
878 * configure: Regenerate.
880 2016-01-17 Alan Modra <amodra@gmail.com>
882 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
884 2016-01-14 Nick Clifton <nickc@redhat.com>
886 * testsuite/gas/rl78/sp-relative-movw.s: New test.
887 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
888 * testsuite/gas/rl78/rl78.exp: Run the new test.
890 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
892 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
893 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
895 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
897 * config/tc-nios2.c (output_movia): Preset `code' to 0.
899 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
901 * config/tc-h8300.c (get_operand): Remove spurious condition in
902 test for closing parenthesis.
904 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
906 * config/tc-arm.c (arm_ext_v8_2): New.
908 * testsuite/gas/arm/armv8_2-a.d: New.
909 * testsuite/gas/arm/armv8_2-a.s: New.
911 2016-01-12 Alan Modra <amodra@gmail.com>
913 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
915 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
917 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
918 xvcmpnesp, xvcmpnesp.>: Delete tests.
919 * testsuite/gas/ppc/power9.s: Likewise.
920 * testsuite/gas/ppc/vsx3.d: Likewise.
921 * testsuite/gas/ppc/vsx3.s: Likewise.
923 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
926 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
927 * testsuite/gas/m68k/p13050-1.s: New file.
928 * testsuite/gas/m68k/p13050-2.d: New file.
929 * testsuite/gas/m68k/p13050-2.s: New file.
931 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
933 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
934 * testsuite/gas/arc/add.d: Likewise.
935 * testsuite/gas/arc/and.d: Likewise.
936 * testsuite/gas/arc/asl.d: Likewise.
937 * testsuite/gas/arc/asr.d: Likewise.
938 * testsuite/gas/arc/bic.d: Likewise.
939 * testsuite/gas/arc/extb.d: Likewise.
940 * testsuite/gas/arc/extw.d: Likewise.
941 * testsuite/gas/arc/j.d: Likewise.
942 * testsuite/gas/arc/jl.d: Likewise.
943 * testsuite/gas/arc/ld2.d: Likewise.
944 * testsuite/gas/arc/lsr.d: Likewise.
945 * testsuite/gas/arc/mov.d: Likewise.
946 * testsuite/gas/arc/or.d: Likewise.
947 * testsuite/gas/arc/pcl-relocs.d: Likewise.
948 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
949 * testsuite/gas/arc/pic-relocs.d: Likewise.
950 * testsuite/gas/arc/plt-relocs.d: Likewise.
951 * testsuite/gas/arc/rlc.d: Likewise.
952 * testsuite/gas/arc/ror.d: Likewise.
953 * testsuite/gas/arc/rrc.d: Likewise.
954 * testsuite/gas/arc/sbc.d: Likewise.
955 * testsuite/gas/arc/sda-relocs.d: Likewise.
956 * testsuite/gas/arc/sda-relocs2.d: Likewise.
957 * testsuite/gas/arc/sexb.d: Likewise.
958 * testsuite/gas/arc/sexw.d: Likewise.
959 * testsuite/gas/arc/st.d: Likewise.
960 * testsuite/gas/arc/sub.d: Likewise.
961 * testsuite/gas/arc/tls-relocs.d: Likewise.
962 * testsuite/gas/arc/xor.d: Likewise.
964 2016-01-01 Alan Modra <amodra@gmail.com>
966 Update year range in copyright notice of all files.
968 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
970 Copyright (C) 2016 Free Software Foundation, Inc.
972 Copying and distribution of this file, with or without modification,
973 are permitted in any medium without royalty provided the copyright
974 notice and this notice are preserved.
980 version-control: never