1 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
4 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
6 * as.c (flag_use_elf_stt_common): New.
7 (show_usage): Add --elf-stt-common=.
8 (option_values): Add OPTION_ELF_STT_COMMON.
9 (std_longopts): Add --elf-stt-common=.
10 (parse_args): Handle --elf-stt-common=.
11 * as.h (flag_use_elf_stt_common): New.
12 * config.in: Regenerated.
13 * configure: Likewise.
14 * configure.ac: Add --enable-elf-stt-common and define
15 DEFAULT_GENERATE_ELF_STT_COMMON.
16 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
17 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
18 * doc/as.texinfo: Document --elf-stt-common=.
19 * testsuite/gas/elf/common3.s: New file.
20 * testsuite/gas/elf/common3a.d: Likewise.
21 * testsuite/gas/elf/common3b.d: Likewise.
22 * testsuite/gas/elf/common4.s: Likewise.
23 * testsuite/gas/elf/common4a.d: Likewise.
24 * testsuite/gas/elf/common4b.d: Likewise.
25 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
26 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
27 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
29 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
30 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
31 --elf-stt-common=no to as.
32 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
33 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
34 --elf-stt-common=no to as.
35 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
36 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
37 of dw2-compress-3 and dw2-compressed-3.
39 2016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
41 * as.c (select_emulation_mode): Add const qualifiers.
43 * config/bfin-defs.h: Likewise.
44 * config/bfin-parse.y: Likewise.
45 * config/rx-parse.y: Likewise.
46 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
47 (struct aarch64_cpu_option_table): Likewise.
48 (struct aarch64_arch_option_table): Likewise.
49 (struct aarch64_option_cpu_value_table): Likewise.
50 (struct aarch64_long_option_table): Likewise.
51 (struct aarch64_option_abi_value_table): Likewise.
52 * config/tc-arm.c (struct reloc_entry): Likewise.
53 (tc_gen_reloc): Likewise.
54 (struct arm_option_table): Likewise.
55 (struct arm_legacy_option_table): Likewise.
56 (struct arm_cpu_option_table): Likewise.
57 (struct arm_arch_option_table): Likewise.
58 (struct arm_option_extension_value_table): Likewise.
59 (struct arm_option_fpu_value_table): Likewise.
60 (struct arm_option_value_table): Likewise.
61 (struct arm_long_option_table): Likewise.
62 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
63 (struct mcu_type_s): Likewise.
64 (struct exp_mod_s): Likewise.
65 (avr_operand): Likewise.
66 (avr_operands): Likewise.
67 * config/tc-d10v.c (md_begin): Likewise.
68 * config/tc-dlx.c: Likewise.
69 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
70 * config/tc-ft32.c (parse_condition): Likewise.
71 * config/tc-h8300.c (do_a_fix_imm): Likewise.
72 * config/tc-hppa.c (pa_ip): Likewise.
73 (hppa_regname_to_dw2regnum): Likewise.
74 * config/tc-i370.c (i370_elf_suffix): Likewise.
75 * config/tc-i960.c (struct tabentry): Likewise.
76 * config/tc-m32r.c: Likewise.
77 * config/tc-m68k.c: Likewise.
78 * config/tc-m68k.h: Likewise.
79 * config/tc-mcore.c (parse_psrmod): Likewise.
80 * config/tc-metag.c (struct metag_core_option): Likewise.
81 (struct metag_long_option): Likewise.
82 * config/tc-microblaze.c: Likewise.
83 * config/tc-mips.c (macro): Likewise.
84 * config/tc-mn10200.c: Likewise.
85 * config/tc-mn10300.c: Likewise.
86 * config/tc-msp430.c (struct rcodes_s): Likewise.
87 (struct hcodes_s): Likewise.
88 (md_parse_option): Likewise.
89 * config/tc-ns32k.c (struct ns32k_option): Likewise.
91 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
92 (tc_ppc_regname_to_dw2regnum): Likewise.
93 * config/tc-ppc.h: Likewise.
94 * config/tc-rl78.c: Likewise.
95 * config/tc-rx.c (struct cpu_type): Likewise.
96 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
97 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
99 * config/tc-spu.c (insn_fmt_string): Likewise.
100 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
101 * config/tc-v850.c: Likewise.
102 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
103 (struct visium_long_option_table): Likewise.
104 * config/tc-xgate.c: Likewise.
105 * config/tc-z8k.c: Likewise.
106 * read.c (add_include_dir): Likewise.
109 2016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
111 * testsuite/gas/all/gas.exp: Change target pattern to cover
113 * testsuite/gas/all/redef3.d: Likewise.
114 * testsuite/gas/elf/elf.exp: Likewise.
116 2016-02-24 Renlin Li <renlin.li@arm.com>
118 * config/tc-arm.c (BAD_FP16): New error message macro.
119 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
120 fp16 scalar instructions.
121 (neon_check_type): Allow different size from key.
122 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
123 (try_vfp_nsyn): Likewise.
124 (do_vfp_nsyn_mla_mls): Likewise.
125 (do_vfp_nsyn_fma_fms): Likewise.
126 (do_vfp_nsyn_ldm_stm): Likewise
127 (do_vfp_nsyn_sqrt): Likewise
128 (do_vfp_nsyn_div): Likewise
129 (do_vfp_nsyn_nmul): Likewise.
130 (do_vfp_nsyn_cmp): Likewise.
131 (do_neon_shll): Likewise.
132 (do_vfp_nsyn_cvt_fpv8): Likewise.
133 (do_neon_cvttb_2): Likewise.
134 (do_neon_mov): Likewise.
135 (do_neon_rshift_round_imm): Likewise.
136 (do_neon_ldr_str): Likewise.
137 (do_vfp_nsyn_fpv8): Likewise.
138 (do_vmaxnm): Likewise.
139 (do_vrint_1): Likewise.
140 (insns): New entry for vins, vmovx.
141 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
142 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
143 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
144 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
145 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
146 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
147 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
149 2016-02-24 Renlin Li <renlin.li@arm.com>
151 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
152 (neon_shape_class): New SC_HALF.
153 (neon_shape_el): New SE_H.
154 (neon_shape_el_size): New size for SE_H.
155 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
156 (neon_select_shape): Add SE_H support code.
157 (el_type_of_type_chk): Use N_F_ALL.
158 (do_vfp_nsyn_cvt): Add SE_H shape support.
159 (do_neon_cvtz): Likewise.
160 (do_neon_cvt_1): Likewise.
161 (do_neon_cvttb_1): Likewise.
163 2016-02-24 Renlin Li <renlin.li@arm.com>
165 * testsuite/gas/arm/copro.d: Adjust output.
166 * testsuite/gas/arm/copro.s: Adjust co-processor num.
168 2016-02-24 Renlin Li <renlin.li@arm.com>
170 * testsuite/gas/arm/mask_1.d: New.
171 * testsuite/gas/arm/mask_1.s: New.
173 2016-02-24 Renlin Li <renlin.li@arm.com>
175 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
176 * testsuite/gas/arm/copro.d: Update.
178 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
180 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
181 * doc/c-arm.texi (ARM Options): Document cortex-a32.
183 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
185 * doc/c-arm.texi (ARM Options): Document cortex-a17.
187 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
189 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
192 2016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
194 * output-file.c (output_file_create): Make file name argument const.
195 (output_file_close): Likewise.
196 * output-file.h (output_file_create): Adjust.
197 (output_file_close): Likewise.
198 * depend.c (quote_string_for_make): Make src argument const char *.
199 (register_dependency): Likewise.
200 (wrap_output): Likewise.
201 * as.h (register_dependency): Adjust.
202 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
204 * symbols.c (S_SET_EXTERNAL): Likewise.
205 * input-scrub.c (as_where): Return the file name.
206 * as.h (as_where): Adjust prototype.
207 * app.c (do_scrub_chars): Adjust.
208 * cond.c (s_elseif): Likewise.
210 (initialize_cframe): Likewise.
211 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
212 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
213 * config/obj-som.c (obj_som_init_stab_section): Likewise.
214 * config/tc-aarch64.c (output_info): Likewise.
215 * config/tc-ia64.c (md_assemble): Likewise.
216 (dot_alias): Likewise.
217 * config/tc-m68k.c (m68k_frob_label): Likewise.
218 * config/tc-mmix.c (s_bspec): Likewise.
219 (mmix_handle_mmixal): Likewise.
220 * config/tc-rx.c (rx_include): Likewise.
221 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
222 (tic54x_adjust_symtab): Likewise.
223 * config/tc-xtensa.c (directive_push): Likewise.
224 (xtensa_sanity_check): Likewise.
225 (xtensa_relax_frag): Likewise.
226 (md_convert_frag): Likewise.
227 (tinsn_to_slotbuf): Likewise.
228 * dwarf2dbg.c (dwarf2_where): Likewise.
229 * ecoff.c (add_file): Likewise.
230 (ecoff_generate_asm_lineno): Likewise.
231 * expr.c (make_expr_symbol): Likewise.
232 * frags.c (frag_new): Likewise.
233 (frag_var_init): Likewise.
234 * listing.c (listing_newline): Likewise.
235 * messages.c (identify): Likewise.
236 (as_show_where): Likewise.
237 (as_warn_internal): Likewise.
238 (as_bad_internal): Likewise.
239 * read.c (s_irp): Likewise.
242 * stabs.c (stabs_generate_asm_file): Likewise.
243 (stabs_generate_asm_lineno): Likewise.
244 (stabs_generate_asm_func): Likewise.
245 * write.c (fix_new_internal): Likewise.
246 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
247 (as_warn_value_out_of_range): Adjust prototype.
248 (as_bad_value_out_of_range): Adjust prototype.
249 * messages.c (identify): Make file name argument const char *.
250 (as_warn_internal): Likewise.
251 (as_warn_where): Likewise.
252 (as_bad_internal): Likewise.
253 (as_bad_where): Likewise.
254 (as_internal_value_out_of_range): Likewise.
255 (as_warn_value_out_of_range): Likewise.
256 (as_bad_value_out_of_range): Likewise.
257 * as.h (found_comment_file): Change type to const char *.
258 * cond.c (file_line::file): Likewise.
259 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
260 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
261 * config/obj-som.c (obj_som_init_stab_section): Likewise.
262 * config/tc-aarch64.c (output_info): Likewise.
263 * config/tc-alpha.c (insert_operand): Likewise.
264 * config/tc-arc.c (insert_operand): Likewise.
265 * config/tc-d30v.c (check_size): Likewise.
266 * config/tc-ia64.c (struct alias): Likewise.
267 * config/tc-m68k.c (struct label_line): Likewise.
268 * config/tc-mcore.c (md_apply_fix): Likewise.
269 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
270 * config/tc-mips.c (mips16_immed): Likewise.
271 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
272 * config/tc-ppc.c (ppc_insert_operand): Likewise.
273 * config/tc-rx.c (rx_include): Likewise.
274 * config/tc-s390.c (s390_insert_operand): Likewise.
275 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
276 (tic54x_adjust_symtab): Likewise.
277 * config/tc-tilegx.c (insert_operand): Likewise.
278 (apply_special_operator): Likewise.
279 * config/tc-tilepro.c (insert_operand): Likewise.
280 * config/tc-xtensa.c (directive_push): Likewise.
281 * ecoff.c (add_file): Likewise.
282 (ecoff_generate_asm_lineno): Likewise.
283 * listing.c (listing_newline): Likewise.
284 * read.c (s_irp): Likewise.
285 * write.c (install_reloc): Likewise.
286 * write.h (struct fix): Likewise.
287 * input-file.c (file_name): Change type to const char *.
288 (saved_file::file_name): Likewise.
289 (input_file_open): Change type of argument to const char *.
290 * input-file.h (input_file_open): Adjust.
291 * input-scrub.c (logical_input_file): change type to const char *.
292 (physical_input_file): Likewise.
293 (struct input_save): Adjust.
294 (input_scrub_push): Adjust.
295 (input_scrub_begin): Adjust.
297 * input-scrub.c (input_scrub_new_file): Make file name argument const.
298 (input_scrub_include_file): Likewise.
299 (new_logical_line_flags): Likewise.
300 (new_logical_line): Likewise.
302 * frags.h (struct frag): Change type of fr_file to const char *.
303 * expr.c (expr_symbol_where): Change type of file argument to
305 * expr.h (expr_symbol_where): Likewise.
306 * config/tc-i370.c (md_apply_fix): adjust.
307 * config/tc-mmix.c (mmix_md_end): Likewise.
308 * config/tc-ppc.c (md_apply_fix): Likewise.
309 * config/tc-s390.c (md_apply_fix): Likewise.
310 * symbols.c (report_op_error): Likewise.
311 (resolve_symbol_value): Likewise.
312 * config/tc-ia64.c (slot::src_file): Change type to const char *.
313 (rsrc::file): Likewise.
314 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
316 (xtensa_relax_frag): Likewise.
317 (md_convert_frag): Likewise.
318 (tinsn_to_slotbuf): Likewise.
319 * expr.c (expr_symbol_line): Likewise.
320 * macro.c (define_macro): Likewise.
321 * macro.h (macro_struct): Likewise.
322 * messages.c (as_show_where): Likewise.
323 * read.c (s_macro): Likewise.
324 * stabs.c (stabs_generate_asm_file): Likewise.
325 (generate_asm_file): Likewise.
326 (stabs_generate_asm_lineno): Likewise.
327 * write.h (struct reloc_list): Likewise.
328 * input-scrub.c (as_where): Change return type to const char *.
329 * as.h (as_wheree): Adjust.
331 2016-02-21 H.J. Lu <hongjiu.lu@intel.com>
333 * write.c (compress_debug): Move BFD compression bits setting
335 (write_object_file): Here.
337 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
339 * config/tc-i386.c (register_number): Check RegVRex.
340 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
341 with %zmm19 and %zmm3.
342 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
343 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
345 2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
346 Jiong Wang <jiong.wang@arm.com>
348 * config/tc-arm.c (arm_ext_fp16): New.
349 (arm_extensions): New entry for "fp16".
351 2016-02-19 Nick Clifton <nickc@redhat.com>
354 * read.c (read_a_source_file): Check for assemble_one returning
355 with input_line_pointer set to NULL.
357 2016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
359 * listing.c (rebuffer_line): Change return type to void.
361 * symbols.c (decode_local_label_name): Make type a const char *.
362 * listing.c (print_source): Make type of p const char *.
363 (print_line): Make type of string const char *.
364 (buffer_line): Return const char *.
365 (title): Make type const char *.
366 (subtitle): Likewise.
367 (listing_listing): Make type of p const char *.
368 * messages.c (as_internal_value_out_of_range): Make type of prefix
370 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
371 and string const char *.
372 * read.c (_bfd_rel): Make type of name const char *.
373 * app.c (out_string): Change type to const char *.
374 (struct app_save::out_string): Likewise.
376 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
377 Nick Clifton <nickc@redhat.com>
379 * read.c (finish_bundle): Avoid recording a negative alignment.
380 (do_align): Use unsigned values for n, len and max. Only create
381 a frag if the alignment requirement is greater than the minimum
382 byte alignment. Avoid recording a negative alignment.
383 (s_align): Use unsigned values where appropriate.
384 (bss_alloc): Use an unsigned value for the alignment.
385 (sizeof_sleb128): Add a comment noting that we encode one octet
386 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
387 (emit_leb129_expr): Abort if the emitted encoding was longer than
389 * read.h (output_leb128): Update prototype.
390 (sizeof_leb128): Update prototype.
391 (bss_alloc): Update prototype.
392 * write.c (record_alignment): Use an unsigned value for the
393 alignment. Do not record alignments less than the minimum
394 alignment for a byte.
395 * write.h (record_alignment): Update prototype.
397 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
399 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
400 .init.literal/.fini.literal section name.
401 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
402 list of xtensa tests.
403 * testsuite/gas/xtensa/init-fini-literals.d: New file:
404 init-fini-literals test result patterns.
405 * testsuite/gas/xtensa/init-fini-literals.s: New file:
406 init-fini-literals test.
408 2016-02-17 Nick Clifton <nickc@redhat.com>
410 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
411 devices.csv file as of March 2016.
413 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
415 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
417 (tc_arc_regname_to_dw2regnum): Likewise.
418 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
419 (tc_cfi_frame_initial_instructions): Likewise.
420 (tc_regname_to_dw2regnum): Likewise.
422 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
424 * doc/internals.texi (S_IS_EXTERN): Remove.
426 2016-02-16 Nick Clifton <nickc@redhat.com>
428 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
431 2016-02-16 Renlin Li <renlin.li@arm.com>
434 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
435 * testsuite/gas/aarch64/movw_label.d: New.
436 * testsuite/gas/aarch64/movw_label.s: New.
438 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
441 * config/rx-parse.y (MOV): Opcode generation for index
442 register addressing mode.
443 * testsuite/gas/rx/rx.exp: Updated for new testcase.
444 * testsuite/gas/rx/pr19665.s: New file.
445 * testsuite/gas/rx/pr19665.s: New file.
446 * testsuite/gas/rx/mov.d: Update expected output.
448 2016-02-15 Nick Clifton <nickc@redhat.com>
450 * doc/as.texinfo (.section): Document that numeric values can now
451 be used for the flags and type fields of the ELF target's .section
452 directive. Add notes about the restrictions on setting flags and
454 * config/obj-elf.c (obj_elf_change_section): Allow known sections
455 to be given processor specific section types. Allow processor and
456 application specific flags of a section to be set after
458 (obj_elf_parse_section_letters): Handle parsing numeric values.
459 (obj_elf_section_type): Handle parsing numeric values.
460 (obj_elf_section): Allow numeric type values.
461 * config/obj-elf.h (obj_elf_change_section): Update prototype.
462 * testsuite/gas/elf/section10.d: New test.
463 * testsuite/gas/elf/section10.s: Source file for new test.
464 * testsuite/gas/elf/elf.exp: Run the new test.
465 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
466 the description of the flags produced by readelf.
467 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
468 * NEWS: Mention the new feature.
470 2016-02-11 Nick Clifton <nickc@redhat.com>
473 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
474 until it is actually used.
475 (cfi_set_sections): Set cfi_sections_set to true.
476 (dot_cfi_startproc): Likewise.
477 (dot_cfi_endproc): Likewise.
478 (dot_cfi_fde_data): Likewise.
479 (cfi_finish): Likewise.
480 (dot_cfi_sections): Do not set cfi_sections_set.
481 * doc/as.texinfo (.cfi_sections): Note that targets can provide
482 their own cfi section name. Also note that the directive can be
483 reissued provided that CFI generation has not started.
484 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
485 .cfi_endproc directives so that the redefinition of .cfi_sections
486 will trigger the generation of the error message.
487 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
488 number of error message.
490 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
491 Janek van Oirschot <jvanoirs@synopsys.com>
493 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
494 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
496 (arc_flags, arc_relax_type): New structure.
497 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
498 (RELAX_TABLE_ENTRY_MAX): New define.
499 (relaxation_state, md_relax_table, arc_relaxable_insns)
500 (arc_num_relaxable_ins): New variable.
501 (rlx_operand_type, arc_rlx_types): New enums.
502 (arc_relaxable_ins): New structure.
503 (OPTION_RELAX): New option.
504 (arc_insn): New relax member.
506 (relax_insn_p): New function.
507 (apply_fixups): Likewise.
508 (relaxable_operand): Likewise.
509 (may_relax_expr): Likewise.
510 (relaxable_flag): Likewise.
511 (arc_pcrel_adjust): Likewise.
512 (md_estimate_size_before_relax): Implement.
513 (md_convert_frag): Likewise.
514 (md_parse_option): Handle new mrelax option.
515 (md_show_usage): Likewise.
516 (assemble_insn): Set relax member.
517 (emit_insn0): New function.
518 (emit_insn1): Likewise.
519 (emit_insn): Handle relaxation case.
520 * NEWS: Mention the new relaxation option.
521 * doc/c-arc.texi (ARC Options): Document new mrelax option.
522 * doc/as.texinfo (Target ARC Options): Likewise.
523 * testsuite/gas/arc/relax-avoid1.d: New file.
524 * testsuite/gas/arc/relax-avoid1.s: Likewise.
525 * testsuite/gas/arc/relax-avoid2.d: Likewise.
526 * testsuite/gas/arc/relax-avoid2.s: Likewise.
527 * testsuite/gas/arc/relax-avoid3.d: Likewise.
528 * testsuite/gas/arc/relax-avoid3.s: Likewise.
529 * testsuite/gas/arc/relax-b.d: Likewise.
530 * testsuite/gas/arc/relax-b.s: Likewise.
532 2016-02-08 Nick Clifton <nickc@redhat.com>
534 * config/tc-ia64.c (dot_prologue): Fix formatting.
536 2016-02-04 Nick Clifton <nickc@redhat.com>
538 * config/obj-elf.c (obj_elf_change_section): Remove support for
540 * config/tc-arm.c (arm_elf_section_letter): Delete.
541 * config/tc-arm.h (md_elf_section_letter): Delete.
542 * doc/c-arm.texi (ARM Section Attribute): Delete section.
543 * testsuite/gas/arm/section-execute-only.d: Delete.
544 * testsuite/gas/arm/section-execute-only.s: Delete.
546 2016-02-04 Nick Clifton <nickc@redhat.com>
549 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
550 to handle encoding of RRUX instruction.
551 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
553 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
555 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
557 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
558 substitutions for BFD_RELOC_* as unsigned.
559 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
560 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
561 * testsuite/gas/xtensa/loc.s: New file: loc test.
563 2016-02-03 Kevin Buettner <kevinb@redhat.com>
565 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
567 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
570 * NEWS: Mention new command line option -mrelax-relocations and
571 new configure option --enable-x86-relax-relocations for x86
573 * config.in: Regenerated.
574 * configure.ac: Add --enable-x86-relax-relocations.
575 (ac_default_x86_relax_relocations): New. Default to 1 except
576 for x86 Solaris targets older than Solaris 12.
577 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
578 * configure: Likewise.
579 * config/tc-i386.c (generate_relax_relocations): New.
580 (OPTION_MRELAX_RELOCATIONS): Likewise.
581 (output_disp): Don't generate relax relocations if
582 generate_relax_relocations is 0.
583 (md_longopts): Add -mrelax-relocations.
584 (md_show_usage): Likewise.
585 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
586 * doc/c-i386.texi: Document -mrelax-relocations=.
587 * testsuite/gas/i386/got-no-relax.d: New file.
588 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
589 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
590 * testsuite/gas/i386/localpic.d: Likewise.
591 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
592 * testsuite/gas/i386/reloc32.d: Likewise.
593 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
594 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
595 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
596 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
597 * testsuite/gas/i386/i386.exp: Run got-no-relax and
598 x86-64-gotpcrel-no-relax.
600 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
602 * NEWS: Mention new command line option -mfence-as-lock-add=yes
605 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
607 * NEWS: Remove duplicated marker for 2.26.
609 2016-02-02 Renlin Li <renlin.li@arm.com>
611 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
613 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
615 * testsuite/gas/ip2k/allinsn.d: New file.
616 * testsuite/gas/ip2k/allinsn.s: New file.
617 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
619 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
621 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
622 some load instructions.
623 * testsuite/gas/epiphany/allinsn.d: Likewise.
624 * testsuite/gas/epiphany/regression.d: Likewise.
626 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
628 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
629 suffixes from instruction mnemonics in expected output.
630 * testsuite/gas/epiphany/allinsn.d: Likewise.
631 * testsuite/gas/epiphany/regression.d: Likewise.
632 * testsuite/gas/epiphany/sample.d: Likewise.
634 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
636 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
638 * testsuite/gas/epiphany/allinsn.d: Likewise.
639 * testsuite/gas/epiphany/sample.d: Likewise.
641 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
643 * testsuite/gas/epiphany/sample.d: Update expected output.
645 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
647 * config/tc-arc.c (md_apply_fix): Allow addendum.
648 (arc_reloc_op): Allow complex expressions for tpoff.
649 (md_apply_fix): Handle resolved TLS local symbol.
651 * testsuite/gas/arc/tls-relocs1.d: New file.
652 * testsuite/gas/arc/tls-relocs1.s: Likewise.
654 2016-02-01 Loria <Loria@phantasia.org>
657 * config/tc-arm.c (encode_arm_immediate): Recode to improve
658 efficiency and avoid an LLVM loop optimization bug.
660 2016-02-01 Nick Clifton <nickc@redhat.com>
662 * config/tc-microblaze.c (parse_imm): Fix compile time warning
663 message extending a negative 32-bit value into a larger signed
664 value on a 32-bit host.
666 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
669 * configure.ac (compressed_debug_sections): Replace == with =.
670 * configure: Regenerated.
672 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
673 H.J. Lu <hongjiu.lu@intel.com>
675 * config/tc-i386.c (avoid_fence): New.
676 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
678 (OPTION_FENCE_AS_LOCK_ADD): New.
679 (md_longopts): Add -mfence-as-lock-add.
680 (md_parse_option): Handle -mfence-as-lock-add.
681 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
682 * doc/c-i386.texi (-mfence-as-lock-add): Document.
683 * testsuite/gas/i386/i386.exp: Run new tests.
684 * testsuite/gas/i386/fence-as-lock-add.s: New.
685 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
686 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
687 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
688 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
690 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
692 * configure.ac (compressed_debug_sections): Remove trailing `]'.
693 * configure: Regenerated.
695 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
697 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
698 (OPTION_MOMIT_LOCK_PREFIX): This.
699 (md_longopts): Updated.
700 (md_parse_option): Likewise.
702 2016-01-25 Catherine Moore <clm@codesourcery.com>
704 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
705 if abicalls are in effect.
706 * testsuite/gas/mips/sdata-gp.s: New test.
707 * testsuite/gas/mips/sdata-gp.d: New expected output
708 * testsuite/gas/mips/mips.exp: Run new test.
710 2016-01-25 Renlin Li <renlin.li@arm.com>
712 * testsuite/gas/arm/thumb2_it_search.d: New.
713 * testsuite/gas/arm/thumb2_it_search.s: New.
715 2016-01-21 Nick Clifton <nickc@redhat.com>
718 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
719 with arm-netbsdelf target.
720 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
722 2016-01-20 Nick Clifton <nickc@redhat.com>
725 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
726 * testsuite/gas/arm/blx-bl-convert.d
727 * testsuite/gas/arm/plt-1.d: Likewise.
728 * testsuite/gas/arm/reloc-bad.d: Likewise.
729 * testsuite/gas/arm/thumb-w-good.d: Likewise.
730 * testsuite/gas/arm/thumb2_pool.d: Likewise.
731 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
732 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
735 * doc/as.texinfo (Errors): Correct documentation describing the
736 interaction of .file and .line with warning and error messages.
739 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
740 * testsuite/gas/arm/archv8m-main.d: Likewise.
741 * testsuite/gas/arm/archv8m-base.d: Likewise.
743 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
745 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
746 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
747 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
749 2016-01-20 Mickael Guene <mickael.guene@st.com>
750 Terry Guo <terry.guo@arm.com>
752 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
753 SHF_ARM_NOREAD section flag.
754 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
756 (arm_elf_section_letter) : Declare it.
757 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
758 SHF_ARM_NOREAD section flag.
759 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
761 * testsuite/gas/arm/section-execute-only.s: New test case.
762 * testsuite/gas/arm/section-execute-only.d: Expected output.
764 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
766 * config/tc-mips.c (micromips_insn_length): Remove the mention
767 of 48-bit microMIPS instructions.
769 2016-01-18 Alan Modra <amodra@gmail.com>
771 * configure: Regenerate.
773 2016-01-17 Alan Modra <amodra@gmail.com>
775 * configure: Regenerate.
777 2016-01-17 Alan Modra <amodra@gmail.com>
779 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
781 2016-01-14 Nick Clifton <nickc@redhat.com>
783 * testsuite/gas/rl78/sp-relative-movw.s: New test.
784 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
785 * testsuite/gas/rl78/rl78.exp: Run the new test.
787 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
789 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
790 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
792 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
794 * config/tc-nios2.c (output_movia): Preset `code' to 0.
796 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
798 * config/tc-h8300.c (get_operand): Remove spurious condition in
799 test for closing parenthesis.
801 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
803 * config/tc-arm.c (arm_ext_v8_2): New.
805 * testsuite/gas/arm/armv8_2-a.d: New.
806 * testsuite/gas/arm/armv8_2-a.s: New.
808 2016-01-12 Alan Modra <amodra@gmail.com>
810 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
812 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
814 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
815 xvcmpnesp, xvcmpnesp.>: Delete tests.
816 * testsuite/gas/ppc/power9.s: Likewise.
817 * testsuite/gas/ppc/vsx3.d: Likewise.
818 * testsuite/gas/ppc/vsx3.s: Likewise.
820 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
823 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
824 * testsuite/gas/m68k/p13050-1.s: New file.
825 * testsuite/gas/m68k/p13050-2.d: New file.
826 * testsuite/gas/m68k/p13050-2.s: New file.
828 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
830 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
831 * testsuite/gas/arc/add.d: Likewise.
832 * testsuite/gas/arc/and.d: Likewise.
833 * testsuite/gas/arc/asl.d: Likewise.
834 * testsuite/gas/arc/asr.d: Likewise.
835 * testsuite/gas/arc/bic.d: Likewise.
836 * testsuite/gas/arc/extb.d: Likewise.
837 * testsuite/gas/arc/extw.d: Likewise.
838 * testsuite/gas/arc/j.d: Likewise.
839 * testsuite/gas/arc/jl.d: Likewise.
840 * testsuite/gas/arc/ld2.d: Likewise.
841 * testsuite/gas/arc/lsr.d: Likewise.
842 * testsuite/gas/arc/mov.d: Likewise.
843 * testsuite/gas/arc/or.d: Likewise.
844 * testsuite/gas/arc/pcl-relocs.d: Likewise.
845 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
846 * testsuite/gas/arc/pic-relocs.d: Likewise.
847 * testsuite/gas/arc/plt-relocs.d: Likewise.
848 * testsuite/gas/arc/rlc.d: Likewise.
849 * testsuite/gas/arc/ror.d: Likewise.
850 * testsuite/gas/arc/rrc.d: Likewise.
851 * testsuite/gas/arc/sbc.d: Likewise.
852 * testsuite/gas/arc/sda-relocs.d: Likewise.
853 * testsuite/gas/arc/sda-relocs2.d: Likewise.
854 * testsuite/gas/arc/sexb.d: Likewise.
855 * testsuite/gas/arc/sexw.d: Likewise.
856 * testsuite/gas/arc/st.d: Likewise.
857 * testsuite/gas/arc/sub.d: Likewise.
858 * testsuite/gas/arc/tls-relocs.d: Likewise.
859 * testsuite/gas/arc/xor.d: Likewise.
861 2016-01-01 Alan Modra <amodra@gmail.com>
863 Update year range in copyright notice of all files.
865 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
867 Copyright (C) 2016 Free Software Foundation, Inc.
869 Copying and distribution of this file, with or without modification,
870 are permitted in any medium without royalty provided the copyright
871 notice and this notice are preserved.
877 version-control: never