3 * testsuite/gas/arc/nps400-0.d: New file.
4 * testsuite/gas/arc/nps400-0.s: New file.
5 * testsuite/gas/arc/nps400-1.d: New file.
6 * testsuite/gas/arc/nps400-1.s: New file.
10 * config/tc-arc.c (find_opcode_match): Move lnflg, and i
11 declarations to start of block. Reset code on all flags before
12 attempting to match them. Handle multiple hits on the same flag.
14 * testsuite/gas/arc/asm-errors.d: New file.
15 * testsuite/gas/arc/asm-errors.err: New file.
16 * testsuite/gas/arc/asm-errors.s: New file.
20 * config/tc-arc.c (cpu_types): Add nps400 entry.
21 (check_zol): Handle nps400.
25 * config/tc-arc.c (arc_select_cpu): Remove use of
30 * config/tc-arc.c (arc_target): Delay initialisation until
32 (arc_target_name): Likewise.
33 (arc_features): Likewise.
34 (arc_mach_type): Likewise.
35 (cpu_types): Remove "all" entry.
36 (arc_select_cpu): New function, most of the content is from...
37 (md_parse_option): ... here. Call new arc_select_cpu.
38 (md_begin): Call arc_select_cpu if needed, default is now arc700.
42 * testsuite/gas/arc/inline-data-1.d: Add target restriction.
43 * testsuite/gas/arc/inline-data-2.d: New file.
47 * atof-generic.c: Replace use of alloca with call to xmalloc.
49 * dwarf2dbg.c: Likewise.
53 * symbols.c: Likewise.
54 * config/obj-elf.c: Likewise.
55 * config/tc-aarch64.c: Likewise.
56 * config/tc-arc.c: Likewise.
57 * config/tc-arm.c: Likewise.
58 * config/tc-avr.c: Likewise.
59 * config/tc-ia64.c: Likewise.
60 * config/tc-mips.c: Likewise.
61 * config/tc-msp430.c: Likewise.
62 * config/tc-nds32.c: Likewise.
63 * config/tc-ppc.c: Likewise.
64 * config/tc-sh.c: Likewise.
65 * config/tc-tic30.c: Likewise.
66 * config/tc-tic54x.c: Likewise.
67 * config/tc-xstormy16.c: Likewise.
68 * config/te-vms.c: Likewise.
69 * configure: Regenerate.
73 * tc-i386.c (f32_1): Change type to unsigned char[].
104 (alt_patt): Likewise.
108 * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
109 .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
110 .tlsdescldr and .xword directives.
113 * testsuite/gas/aarch64/pr19721.s: New test source file.
114 * testsuite/gas/aarch64/pr19721.d: New test driver file.
116 * doc/as.texinfo: Place the target specific command line options
117 into their own man page section.
121 * config/tc-arm.c (N_S_32): New.
122 (N_F_16_32): Likewise.
123 (N_SUF_32): Support N_F16.
125 (neon_dyadic_misc): Likewise.
126 (do_neon_cmp): Likewise.
127 (do_neon_cmp_inv): Likewise.
128 (do_neon_mul): Likewise.
129 (do_neon_fcmp_absolute): Likewise.
130 (do_neon_step): Likewise.
131 (do_neon_abs_neg): Likewise.
132 (CVT_FLAVOR_VAR): Likewise.
133 (do_neon_cvt_1): Likewise.
134 (do_neon_recip_est): Likewise.
135 (do_vmaxnm): Likewise.
136 (do_vrint_1): Likewise.
137 (neon_check_type): Check architecture support for FP16 extension.
138 (insns): Update comments.
139 * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
140 * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
141 * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
142 * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
144 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
146 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
151 * read.c (emit_expr_with_reloc): Add code check a bignum with
153 * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
155 * testsuite/gas/elf/bignum.s: New test source file.
156 * testsuite/gas/elf/bignum.d: New test driver file.
157 * testsuite/gas/elf/elf.exp: Run the new test.
161 * doc/c-i386.texi (Register Naming): Update to details of the
162 latest architecture version.
167 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
169 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
170 (do_t_mov_cmp): Likewise.
171 (do_t_add_sub): Protect against bad relocations usage.
172 (do_t_mov_cmp): Likewise.
173 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
174 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
175 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
176 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
180 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
182 (do_neon_ld_st_lane): Likewise.
183 (do_neon_ld_dup): Likewise.
187 * testsuite/gas/arc/inline-data-1.d: New file.
188 * testsuite/gas/arc/inline-data-1.s: New file.
192 * config/tc-arm.c (arm_cpus): Add cortex-r8.
193 * doc/c-arm.texi: Add cortex-r8.
197 * config/tc-arc.c: Add const qualifiers.
198 * config/tc-h8300.c (md_begin): Likewise.
199 * config/tc-ia64.c (print_prmask): Likewise.
200 * config/tc-msp430.c (msp430_operands): Likewise.
201 * config/tc-nds32.c (struct suffix_name): Likewise.
202 (struct nds32_parse_option_table): Likewise.
203 (struct nds32_set_option_table): Likewise.
204 (do_pseudo_pushpopm): Likewise.
205 (do_pseudo_pushpop_stack): Likewise.
206 (nds32_relax_relocs): Likewise.
207 (nds32_flag): Likewise.
208 (struct nds32_hint_map): Likewise.
209 (nds32_find_reloc_table): Likewise.
210 (nds32_match_hint_insn): Likewise.
211 * config/tc-s390.c: Likewise.
212 * config/tc-sh.c (get_specific): Likewise.
213 * config/tc-tic30.c: Likewise.
214 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
215 (tic4x_indirect_parse): Likewise.
216 * config/tc-vax.c (vax_cons): Likewise.
217 * config/tc-z80.c (struct reg_entry): Likewise.
218 * config/tc-epiphany.c (md_assemble): Adjust.
219 (epiphany_assemble): New function.
220 (epiphany_elf_section_rtn): Call do_align directly.
221 (epiphany_elf_section_text): Likewise.
222 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
223 (ip2k_elf_section_text): Likewise.
224 * read.c (do_align): Make it not static.
225 * read.h (do_align): New prototype.
229 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
230 for ARMv8.1 AdvSIMD use.
231 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
232 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
236 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
238 (record_feature_use): New.
239 (mark_feature_used): Use record_feature_use.
240 (do_neon_qrdmlah): New.
241 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
243 (arm_extensions): Put into alphabetical order. Re-indent "simd"
244 and "rdma" entries. Fix the incorrect merge value for "+rdma".
245 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
246 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
247 Make source file explicit.
248 * testsuite/gas/arm/armv8-a+rdma.l: New.
249 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
250 directives. Fix white-space.
251 * testsuite/gas/arm/armv8_1-a+simd.d: New.
255 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
260 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
261 (tc_arc_fix_adjustable): Changed default return value to 1.
262 * testsuite/gas/arc/j.d: Updated expected symbol
263 * testsuite/gas/arc/jl.d: Likewise
264 * testsuite/gas/arc/relax-avoid1.d: Likewise
265 * testsuite/gas/arc/st.d: Likewise
269 * config/tc-arc.c: Enable code density instructions for ARC EM.
274 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
276 * as.c (flag_use_elf_stt_common): New.
277 (show_usage): Add --elf-stt-common=.
278 (option_values): Add OPTION_ELF_STT_COMMON.
279 (std_longopts): Add --elf-stt-common=.
280 (parse_args): Handle --elf-stt-common=.
281 * as.h (flag_use_elf_stt_common): New.
282 * config.in: Regenerated.
283 * configure: Likewise.
284 * configure.ac: Add --enable-elf-stt-common and define
285 DEFAULT_GENERATE_ELF_STT_COMMON.
286 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
287 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
288 * doc/as.texinfo: Document --elf-stt-common=.
289 * testsuite/gas/elf/common3.s: New file.
290 * testsuite/gas/elf/common3a.d: Likewise.
291 * testsuite/gas/elf/common3b.d: Likewise.
292 * testsuite/gas/elf/common4.s: Likewise.
293 * testsuite/gas/elf/common4a.d: Likewise.
294 * testsuite/gas/elf/common4b.d: Likewise.
295 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
296 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
297 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
299 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
300 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
301 --elf-stt-common=no to as.
302 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
303 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
304 --elf-stt-common=no to as.
305 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
306 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
307 of dw2-compress-3 and dw2-compressed-3.
311 * as.c (select_emulation_mode): Add const qualifiers.
313 * config/bfin-defs.h: Likewise.
314 * config/bfin-parse.y: Likewise.
315 * config/rx-parse.y: Likewise.
316 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
317 (struct aarch64_cpu_option_table): Likewise.
318 (struct aarch64_arch_option_table): Likewise.
319 (struct aarch64_option_cpu_value_table): Likewise.
320 (struct aarch64_long_option_table): Likewise.
321 (struct aarch64_option_abi_value_table): Likewise.
322 * config/tc-arm.c (struct reloc_entry): Likewise.
323 (tc_gen_reloc): Likewise.
324 (struct arm_option_table): Likewise.
325 (struct arm_legacy_option_table): Likewise.
326 (struct arm_cpu_option_table): Likewise.
327 (struct arm_arch_option_table): Likewise.
328 (struct arm_option_extension_value_table): Likewise.
329 (struct arm_option_fpu_value_table): Likewise.
330 (struct arm_option_value_table): Likewise.
331 (struct arm_long_option_table): Likewise.
332 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
333 (struct mcu_type_s): Likewise.
334 (struct exp_mod_s): Likewise.
335 (avr_operand): Likewise.
336 (avr_operands): Likewise.
337 * config/tc-d10v.c (md_begin): Likewise.
338 * config/tc-dlx.c: Likewise.
339 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
340 * config/tc-ft32.c (parse_condition): Likewise.
341 * config/tc-h8300.c (do_a_fix_imm): Likewise.
342 * config/tc-hppa.c (pa_ip): Likewise.
343 (hppa_regname_to_dw2regnum): Likewise.
344 * config/tc-i370.c (i370_elf_suffix): Likewise.
345 * config/tc-i960.c (struct tabentry): Likewise.
346 * config/tc-m32r.c: Likewise.
347 * config/tc-m68k.c: Likewise.
348 * config/tc-m68k.h: Likewise.
349 * config/tc-mcore.c (parse_psrmod): Likewise.
350 * config/tc-metag.c (struct metag_core_option): Likewise.
351 (struct metag_long_option): Likewise.
352 * config/tc-microblaze.c: Likewise.
353 * config/tc-mips.c (macro): Likewise.
354 * config/tc-mn10200.c: Likewise.
355 * config/tc-mn10300.c: Likewise.
356 * config/tc-msp430.c (struct rcodes_s): Likewise.
357 (struct hcodes_s): Likewise.
358 (md_parse_option): Likewise.
359 * config/tc-ns32k.c (struct ns32k_option): Likewise.
361 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
362 (tc_ppc_regname_to_dw2regnum): Likewise.
363 * config/tc-ppc.h: Likewise.
364 * config/tc-rl78.c: Likewise.
365 * config/tc-rx.c (struct cpu_type): Likewise.
366 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
367 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
368 (sparc_ip): Likewise.
369 * config/tc-spu.c (insn_fmt_string): Likewise.
370 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
371 * config/tc-v850.c: Likewise.
372 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
373 (struct visium_long_option_table): Likewise.
374 * config/tc-xgate.c: Likewise.
375 * config/tc-z8k.c: Likewise.
376 * read.c (add_include_dir): Likewise.
381 * testsuite/gas/all/gas.exp: Change target pattern to cover
383 * testsuite/gas/all/redef3.d: Likewise.
384 * testsuite/gas/elf/elf.exp: Likewise.
388 * config/tc-arm.c (BAD_FP16): New error message macro.
389 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
390 fp16 scalar instructions.
391 (neon_check_type): Allow different size from key.
392 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
393 (try_vfp_nsyn): Likewise.
394 (do_vfp_nsyn_mla_mls): Likewise.
395 (do_vfp_nsyn_fma_fms): Likewise.
396 (do_vfp_nsyn_ldm_stm): Likewise
397 (do_vfp_nsyn_sqrt): Likewise
398 (do_vfp_nsyn_div): Likewise
399 (do_vfp_nsyn_nmul): Likewise.
400 (do_vfp_nsyn_cmp): Likewise.
401 (do_neon_shll): Likewise.
402 (do_vfp_nsyn_cvt_fpv8): Likewise.
403 (do_neon_cvttb_2): Likewise.
404 (do_neon_mov): Likewise.
405 (do_neon_rshift_round_imm): Likewise.
406 (do_neon_ldr_str): Likewise.
407 (do_vfp_nsyn_fpv8): Likewise.
408 (do_vmaxnm): Likewise.
409 (do_vrint_1): Likewise.
410 (insns): New entry for vins, vmovx.
411 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
412 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
413 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
414 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
415 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
416 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
417 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
421 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
422 (neon_shape_class): New SC_HALF.
423 (neon_shape_el): New SE_H.
424 (neon_shape_el_size): New size for SE_H.
425 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
426 (neon_select_shape): Add SE_H support code.
427 (el_type_of_type_chk): Use N_F_ALL.
428 (do_vfp_nsyn_cvt): Add SE_H shape support.
429 (do_neon_cvtz): Likewise.
430 (do_neon_cvt_1): Likewise.
431 (do_neon_cvttb_1): Likewise.
435 * testsuite/gas/arm/copro.d: Adjust output.
436 * testsuite/gas/arm/copro.s: Adjust co-processor num.
440 * testsuite/gas/arm/mask_1.d: New.
441 * testsuite/gas/arm/mask_1.s: New.
445 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
446 * testsuite/gas/arm/copro.d: Update.
450 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
451 * doc/c-arm.texi (ARM Options): Document cortex-a32.
455 * doc/c-arm.texi (ARM Options): Document cortex-a17.
459 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
464 * output-file.c (output_file_create): Make file name argument const.
465 (output_file_close): Likewise.
466 * output-file.h (output_file_create): Adjust.
467 (output_file_close): Likewise.
468 * depend.c (quote_string_for_make): Make src argument const char *.
469 (register_dependency): Likewise.
470 (wrap_output): Likewise.
471 * as.h (register_dependency): Adjust.
472 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
474 * symbols.c (S_SET_EXTERNAL): Likewise.
475 * input-scrub.c (as_where): Return the file name.
476 * as.h (as_where): Adjust prototype.
477 * app.c (do_scrub_chars): Adjust.
478 * cond.c (s_elseif): Likewise.
480 (initialize_cframe): Likewise.
481 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
482 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
483 * config/obj-som.c (obj_som_init_stab_section): Likewise.
484 * config/tc-aarch64.c (output_info): Likewise.
485 * config/tc-ia64.c (md_assemble): Likewise.
486 (dot_alias): Likewise.
487 * config/tc-m68k.c (m68k_frob_label): Likewise.
488 * config/tc-mmix.c (s_bspec): Likewise.
489 (mmix_handle_mmixal): Likewise.
490 * config/tc-rx.c (rx_include): Likewise.
491 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
492 (tic54x_adjust_symtab): Likewise.
493 * config/tc-xtensa.c (directive_push): Likewise.
494 (xtensa_sanity_check): Likewise.
495 (xtensa_relax_frag): Likewise.
496 (md_convert_frag): Likewise.
497 (tinsn_to_slotbuf): Likewise.
498 * dwarf2dbg.c (dwarf2_where): Likewise.
499 * ecoff.c (add_file): Likewise.
500 (ecoff_generate_asm_lineno): Likewise.
501 * expr.c (make_expr_symbol): Likewise.
502 * frags.c (frag_new): Likewise.
503 (frag_var_init): Likewise.
504 * listing.c (listing_newline): Likewise.
505 * messages.c (identify): Likewise.
506 (as_show_where): Likewise.
507 (as_warn_internal): Likewise.
508 (as_bad_internal): Likewise.
509 * read.c (s_irp): Likewise.
512 * stabs.c (stabs_generate_asm_file): Likewise.
513 (stabs_generate_asm_lineno): Likewise.
514 (stabs_generate_asm_func): Likewise.
515 * write.c (fix_new_internal): Likewise.
516 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
517 (as_warn_value_out_of_range): Adjust prototype.
518 (as_bad_value_out_of_range): Adjust prototype.
519 * messages.c (identify): Make file name argument const char *.
520 (as_warn_internal): Likewise.
521 (as_warn_where): Likewise.
522 (as_bad_internal): Likewise.
523 (as_bad_where): Likewise.
524 (as_internal_value_out_of_range): Likewise.
525 (as_warn_value_out_of_range): Likewise.
526 (as_bad_value_out_of_range): Likewise.
527 * as.h (found_comment_file): Change type to const char *.
528 * cond.c (file_line::file): Likewise.
529 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
530 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
531 * config/obj-som.c (obj_som_init_stab_section): Likewise.
532 * config/tc-aarch64.c (output_info): Likewise.
533 * config/tc-alpha.c (insert_operand): Likewise.
534 * config/tc-arc.c (insert_operand): Likewise.
535 * config/tc-d30v.c (check_size): Likewise.
536 * config/tc-ia64.c (struct alias): Likewise.
537 * config/tc-m68k.c (struct label_line): Likewise.
538 * config/tc-mcore.c (md_apply_fix): Likewise.
539 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
540 * config/tc-mips.c (mips16_immed): Likewise.
541 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
542 * config/tc-ppc.c (ppc_insert_operand): Likewise.
543 * config/tc-rx.c (rx_include): Likewise.
544 * config/tc-s390.c (s390_insert_operand): Likewise.
545 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
546 (tic54x_adjust_symtab): Likewise.
547 * config/tc-tilegx.c (insert_operand): Likewise.
548 (apply_special_operator): Likewise.
549 * config/tc-tilepro.c (insert_operand): Likewise.
550 * config/tc-xtensa.c (directive_push): Likewise.
551 * ecoff.c (add_file): Likewise.
552 (ecoff_generate_asm_lineno): Likewise.
553 * listing.c (listing_newline): Likewise.
554 * read.c (s_irp): Likewise.
555 * write.c (install_reloc): Likewise.
556 * write.h (struct fix): Likewise.
557 * input-file.c (file_name): Change type to const char *.
558 (saved_file::file_name): Likewise.
559 (input_file_open): Change type of argument to const char *.
560 * input-file.h (input_file_open): Adjust.
561 * input-scrub.c (logical_input_file): change type to const char *.
562 (physical_input_file): Likewise.
563 (struct input_save): Adjust.
564 (input_scrub_push): Adjust.
565 (input_scrub_begin): Adjust.
567 * input-scrub.c (input_scrub_new_file): Make file name argument const.
568 (input_scrub_include_file): Likewise.
569 (new_logical_line_flags): Likewise.
570 (new_logical_line): Likewise.
572 * frags.h (struct frag): Change type of fr_file to const char *.
573 * expr.c (expr_symbol_where): Change type of file argument to
575 * expr.h (expr_symbol_where): Likewise.
576 * config/tc-i370.c (md_apply_fix): adjust.
577 * config/tc-mmix.c (mmix_md_end): Likewise.
578 * config/tc-ppc.c (md_apply_fix): Likewise.
579 * config/tc-s390.c (md_apply_fix): Likewise.
580 * symbols.c (report_op_error): Likewise.
581 (resolve_symbol_value): Likewise.
582 * config/tc-ia64.c (slot::src_file): Change type to const char *.
583 (rsrc::file): Likewise.
584 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
586 (xtensa_relax_frag): Likewise.
587 (md_convert_frag): Likewise.
588 (tinsn_to_slotbuf): Likewise.
589 * expr.c (expr_symbol_line): Likewise.
590 * macro.c (define_macro): Likewise.
591 * macro.h (macro_struct): Likewise.
592 * messages.c (as_show_where): Likewise.
593 * read.c (s_macro): Likewise.
594 * stabs.c (stabs_generate_asm_file): Likewise.
595 (generate_asm_file): Likewise.
596 (stabs_generate_asm_lineno): Likewise.
597 * write.h (struct reloc_list): Likewise.
598 * input-scrub.c (as_where): Change return type to const char *.
599 * as.h (as_wheree): Adjust.
603 * write.c (compress_debug): Move BFD compression bits setting
605 (write_object_file): Here.
609 * config/tc-i386.c (register_number): Check RegVRex.
610 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
611 with %zmm19 and %zmm3.
612 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
613 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
618 * config/tc-arm.c (arm_ext_fp16): New.
619 (arm_extensions): New entry for "fp16".
624 * read.c (read_a_source_file): Check for assemble_one returning
625 with input_line_pointer set to NULL.
629 * listing.c (rebuffer_line): Change return type to void.
631 * symbols.c (decode_local_label_name): Make type a const char *.
632 * listing.c (print_source): Make type of p const char *.
633 (print_line): Make type of string const char *.
634 (buffer_line): Return const char *.
635 (title): Make type const char *.
636 (subtitle): Likewise.
637 (listing_listing): Make type of p const char *.
638 * messages.c (as_internal_value_out_of_range): Make type of prefix
640 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
641 and string const char *.
642 * read.c (_bfd_rel): Make type of name const char *.
643 * app.c (out_string): Change type to const char *.
644 (struct app_save::out_string): Likewise.
649 * read.c (finish_bundle): Avoid recording a negative alignment.
650 (do_align): Use unsigned values for n, len and max. Only create
651 a frag if the alignment requirement is greater than the minimum
652 byte alignment. Avoid recording a negative alignment.
653 (s_align): Use unsigned values where appropriate.
654 (bss_alloc): Use an unsigned value for the alignment.
655 (sizeof_sleb128): Add a comment noting that we encode one octet
656 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
657 (emit_leb129_expr): Abort if the emitted encoding was longer than
659 * read.h (output_leb128): Update prototype.
660 (sizeof_leb128): Update prototype.
661 (bss_alloc): Update prototype.
662 * write.c (record_alignment): Use an unsigned value for the
663 alignment. Do not record alignments less than the minimum
664 alignment for a byte.
665 * write.h (record_alignment): Update prototype.
669 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
670 .init.literal/.fini.literal section name.
671 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
672 list of xtensa tests.
673 * testsuite/gas/xtensa/init-fini-literals.d: New file:
674 init-fini-literals test result patterns.
675 * testsuite/gas/xtensa/init-fini-literals.s: New file:
676 init-fini-literals test.
680 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
681 devices.csv file as of March 2016.
685 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
687 (tc_arc_regname_to_dw2regnum): Likewise.
688 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
689 (tc_cfi_frame_initial_instructions): Likewise.
690 (tc_regname_to_dw2regnum): Likewise.
691 * testsuite/gas/cfi/cfi-arc-1.d: New file.
692 * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
693 * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
697 * doc/internals.texi (S_IS_EXTERN): Remove.
701 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
707 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
708 * testsuite/gas/aarch64/movw_label.d: New.
709 * testsuite/gas/aarch64/movw_label.s: New.
714 * config/rx-parse.y (MOV): Opcode generation for index
715 register addressing mode.
716 * testsuite/gas/rx/rx.exp: Updated for new testcase.
717 * testsuite/gas/rx/pr19665.s: New file.
718 * testsuite/gas/rx/pr19665.s: New file.
719 * testsuite/gas/rx/mov.d: Update expected output.
723 * doc/as.texinfo (.section): Document that numeric values can now
724 be used for the flags and type fields of the ELF target's .section
725 directive. Add notes about the restrictions on setting flags and
727 * config/obj-elf.c (obj_elf_change_section): Allow known sections
728 to be given processor specific section types. Allow processor and
729 application specific flags of a section to be set after
731 (obj_elf_parse_section_letters): Handle parsing numeric values.
732 (obj_elf_section_type): Handle parsing numeric values.
733 (obj_elf_section): Allow numeric type values.
734 * config/obj-elf.h (obj_elf_change_section): Update prototype.
735 * testsuite/gas/elf/section10.d: New test.
736 * testsuite/gas/elf/section10.s: Source file for new test.
737 * testsuite/gas/elf/elf.exp: Run the new test.
738 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
739 the description of the flags produced by readelf.
740 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
741 * NEWS: Mention the new feature.
746 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
747 until it is actually used.
748 (cfi_set_sections): Set cfi_sections_set to true.
749 (dot_cfi_startproc): Likewise.
750 (dot_cfi_endproc): Likewise.
751 (dot_cfi_fde_data): Likewise.
752 (cfi_finish): Likewise.
753 (dot_cfi_sections): Do not set cfi_sections_set.
754 * doc/as.texinfo (.cfi_sections): Note that targets can provide
755 their own cfi section name. Also note that the directive can be
756 reissued provided that CFI generation has not started.
757 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
758 .cfi_endproc directives so that the redefinition of .cfi_sections
759 will trigger the generation of the error message.
760 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
761 number of error message.
766 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
767 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
769 (arc_flags, arc_relax_type): New structure.
770 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
771 (RELAX_TABLE_ENTRY_MAX): New define.
772 (relaxation_state, md_relax_table, arc_relaxable_insns)
773 (arc_num_relaxable_ins): New variable.
774 (rlx_operand_type, arc_rlx_types): New enums.
775 (arc_relaxable_ins): New structure.
776 (OPTION_RELAX): New option.
777 (arc_insn): New relax member.
779 (relax_insn_p): New function.
780 (apply_fixups): Likewise.
781 (relaxable_operand): Likewise.
782 (may_relax_expr): Likewise.
783 (relaxable_flag): Likewise.
784 (arc_pcrel_adjust): Likewise.
785 (md_estimate_size_before_relax): Implement.
786 (md_convert_frag): Likewise.
787 (md_parse_option): Handle new mrelax option.
788 (md_show_usage): Likewise.
789 (assemble_insn): Set relax member.
790 (emit_insn0): New function.
791 (emit_insn1): Likewise.
792 (emit_insn): Handle relaxation case.
793 * NEWS: Mention the new relaxation option.
794 * doc/c-arc.texi (ARC Options): Document new mrelax option.
795 * doc/as.texinfo (Target ARC Options): Likewise.
796 * testsuite/gas/arc/relax-avoid1.d: New file.
797 * testsuite/gas/arc/relax-avoid1.s: Likewise.
798 * testsuite/gas/arc/relax-avoid2.d: Likewise.
799 * testsuite/gas/arc/relax-avoid2.s: Likewise.
800 * testsuite/gas/arc/relax-avoid3.d: Likewise.
801 * testsuite/gas/arc/relax-avoid3.s: Likewise.
802 * testsuite/gas/arc/relax-b.d: Likewise.
803 * testsuite/gas/arc/relax-b.s: Likewise.
807 * config/tc-ia64.c (dot_prologue): Fix formatting.
811 * config/obj-elf.c (obj_elf_change_section): Remove support for
813 * config/tc-arm.c (arm_elf_section_letter): Delete.
814 * config/tc-arm.h (md_elf_section_letter): Delete.
815 * doc/c-arm.texi (ARM Section Attribute): Delete section.
816 * testsuite/gas/arm/section-execute-only.d: Delete.
817 * testsuite/gas/arm/section-execute-only.s: Delete.
822 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
823 to handle encoding of RRUX instruction.
824 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
826 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
830 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
831 substitutions for BFD_RELOC_* as unsigned.
832 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
833 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
834 * testsuite/gas/xtensa/loc.s: New file: loc test.
838 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
843 * NEWS: Mention new command line option -mrelax-relocations and
844 new configure option --enable-x86-relax-relocations for x86
846 * config.in: Regenerated.
847 * configure.ac: Add --enable-x86-relax-relocations.
848 (ac_default_x86_relax_relocations): New. Default to 1 except
849 for x86 Solaris targets older than Solaris 12.
850 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
851 * configure: Likewise.
852 * config/tc-i386.c (generate_relax_relocations): New.
853 (OPTION_MRELAX_RELOCATIONS): Likewise.
854 (output_disp): Don't generate relax relocations if
855 generate_relax_relocations is 0.
856 (md_longopts): Add -mrelax-relocations.
857 (md_show_usage): Likewise.
858 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
859 * doc/c-i386.texi: Document -mrelax-relocations=.
860 * testsuite/gas/i386/got-no-relax.d: New file.
861 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
862 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
863 * testsuite/gas/i386/localpic.d: Likewise.
864 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
865 * testsuite/gas/i386/reloc32.d: Likewise.
866 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
867 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
868 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
869 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
870 * testsuite/gas/i386/i386.exp: Run got-no-relax and
871 x86-64-gotpcrel-no-relax.
875 * NEWS: Mention new command line option -mfence-as-lock-add=yes
880 * NEWS: Remove duplicated marker for 2.26.
884 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
888 * testsuite/gas/ip2k/allinsn.d: New file.
889 * testsuite/gas/ip2k/allinsn.s: New file.
890 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
894 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
895 some load instructions.
896 * testsuite/gas/epiphany/allinsn.d: Likewise.
897 * testsuite/gas/epiphany/regression.d: Likewise.
901 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
902 suffixes from instruction mnemonics in expected output.
903 * testsuite/gas/epiphany/allinsn.d: Likewise.
904 * testsuite/gas/epiphany/regression.d: Likewise.
905 * testsuite/gas/epiphany/sample.d: Likewise.
909 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
911 * testsuite/gas/epiphany/allinsn.d: Likewise.
912 * testsuite/gas/epiphany/sample.d: Likewise.
916 * testsuite/gas/epiphany/sample.d: Update expected output.
920 * config/tc-arc.c (md_apply_fix): Allow addendum.
921 (arc_reloc_op): Allow complex expressions for tpoff.
922 (md_apply_fix): Handle resolved TLS local symbol.
924 * testsuite/gas/arc/tls-relocs1.d: New file.
925 * testsuite/gas/arc/tls-relocs1.s: Likewise.
930 * config/tc-arm.c (encode_arm_immediate): Recode to improve
931 efficiency and avoid an LLVM loop optimization bug.
935 * config/tc-microblaze.c (parse_imm): Fix compile time warning
936 message extending a negative 32-bit value into a larger signed
937 value on a 32-bit host.
942 * configure.ac (compressed_debug_sections): Replace == with =.
943 * configure: Regenerated.
948 * config/tc-i386.c (avoid_fence): New.
949 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
951 (OPTION_FENCE_AS_LOCK_ADD): New.
952 (md_longopts): Add -mfence-as-lock-add.
953 (md_parse_option): Handle -mfence-as-lock-add.
954 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
955 * doc/c-i386.texi (-mfence-as-lock-add): Document.
956 * testsuite/gas/i386/i386.exp: Run new tests.
957 * testsuite/gas/i386/fence-as-lock-add.s: New.
958 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
959 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
960 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
961 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
965 * configure.ac (compressed_debug_sections): Remove trailing `]'.
966 * configure: Regenerated.
970 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
971 (OPTION_MOMIT_LOCK_PREFIX): This.
972 (md_longopts): Updated.
973 (md_parse_option): Likewise.
977 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
978 if abicalls are in effect.
979 * testsuite/gas/mips/sdata-gp.s: New test.
980 * testsuite/gas/mips/sdata-gp.d: New expected output
981 * testsuite/gas/mips/mips.exp: Run new test.
985 * testsuite/gas/arm/thumb2_it_search.d: New.
986 * testsuite/gas/arm/thumb2_it_search.s: New.
991 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
992 with arm-netbsdelf target.
993 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
998 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
999 * testsuite/gas/arm/blx-bl-convert.d
1000 * testsuite/gas/arm/plt-1.d: Likewise.
1001 * testsuite/gas/arm/reloc-bad.d: Likewise.
1002 * testsuite/gas/arm/thumb-w-good.d: Likewise.
1003 * testsuite/gas/arm/thumb2_pool.d: Likewise.
1004 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
1005 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
1008 * doc/as.texinfo (Errors): Correct documentation describing the
1009 interaction of .file and .line with warning and error messages.
1012 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
1013 * testsuite/gas/arm/archv8m-main.d: Likewise.
1014 * testsuite/gas/arm/archv8m-base.d: Likewise.
1018 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
1019 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
1020 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
1025 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
1026 SHF_ARM_NOREAD section flag.
1027 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
1029 (arm_elf_section_letter) : Declare it.
1030 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
1031 SHF_ARM_NOREAD section flag.
1032 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
1034 * testsuite/gas/arm/section-execute-only.s: New test case.
1035 * testsuite/gas/arm/section-execute-only.d: Expected output.
1039 * config/tc-mips.c (micromips_insn_length): Remove the mention
1040 of 48-bit microMIPS instructions.
1044 * configure: Regenerate.
1048 * configure: Regenerate.
1052 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
1056 * testsuite/gas/rl78/sp-relative-movw.s: New test.
1057 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
1058 * testsuite/gas/rl78/rl78.exp: Run the new test.
1062 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
1063 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
1067 * config/tc-nios2.c (output_movia): Preset `code' to 0.
1071 * config/tc-h8300.c (get_operand): Remove spurious condition in
1072 test for closing parenthesis.
1076 * config/tc-arm.c (arm_ext_v8_2): New.
1078 * testsuite/gas/arm/armv8_2-a.d: New.
1079 * testsuite/gas/arm/armv8_2-a.s: New.
1083 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
1087 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
1088 xvcmpnesp, xvcmpnesp.>: Delete tests.
1089 * testsuite/gas/ppc/power9.s: Likewise.
1090 * testsuite/gas/ppc/vsx3.d: Likewise.
1091 * testsuite/gas/ppc/vsx3.s: Likewise.
1096 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
1097 * testsuite/gas/m68k/p13050-1.s: New file.
1098 * testsuite/gas/m68k/p13050-2.d: New file.
1099 * testsuite/gas/m68k/p13050-2.s: New file.
1103 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
1104 * testsuite/gas/arc/add.d: Likewise.
1105 * testsuite/gas/arc/and.d: Likewise.
1106 * testsuite/gas/arc/asl.d: Likewise.
1107 * testsuite/gas/arc/asr.d: Likewise.
1108 * testsuite/gas/arc/bic.d: Likewise.
1109 * testsuite/gas/arc/extb.d: Likewise.
1110 * testsuite/gas/arc/extw.d: Likewise.
1111 * testsuite/gas/arc/j.d: Likewise.
1112 * testsuite/gas/arc/jl.d: Likewise.
1113 * testsuite/gas/arc/ld2.d: Likewise.
1114 * testsuite/gas/arc/lsr.d: Likewise.
1115 * testsuite/gas/arc/mov.d: Likewise.
1116 * testsuite/gas/arc/or.d: Likewise.
1117 * testsuite/gas/arc/pcl-relocs.d: Likewise.
1118 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
1119 * testsuite/gas/arc/pic-relocs.d: Likewise.
1120 * testsuite/gas/arc/plt-relocs.d: Likewise.
1121 * testsuite/gas/arc/rlc.d: Likewise.
1122 * testsuite/gas/arc/ror.d: Likewise.
1123 * testsuite/gas/arc/rrc.d: Likewise.
1124 * testsuite/gas/arc/sbc.d: Likewise.
1125 * testsuite/gas/arc/sda-relocs.d: Likewise.
1126 * testsuite/gas/arc/sda-relocs2.d: Likewise.
1127 * testsuite/gas/arc/sexb.d: Likewise.
1128 * testsuite/gas/arc/sexw.d: Likewise.
1129 * testsuite/gas/arc/st.d: Likewise.
1130 * testsuite/gas/arc/sub.d: Likewise.
1131 * testsuite/gas/arc/tls-relocs.d: Likewise.
1132 * testsuite/gas/arc/xor.d: Likewise.
1136 Update year range in copyright notice of all files.
1138 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
1140 Copyright (C) 2016 Free Software Foundation, Inc.
1142 Copying and distribution of this file, with or without modification,
1143 are permitted in any medium without royalty provided the copyright
1144 notice and this notice are preserved.
1150 version-control: never