Add more const type qualifiers to GAS sources.
[deliverable/binutils-gdb.git] / gas / ChangeLog
index 56146c7f804c398a377c02982b0c2950f1feb913..2059a6575e9bbd45efd3cfb57b149c9734cdd735 100644 (file)
@@ -1,7 +1,411 @@
+2016-02-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
+       * output-file.c (output_file_create): Make file name argument const.
+       (output_file_close): Likewise.
+       * output-file.h (output_file_create): Adjust.
+       (output_file_close): Likewise.
+       * depend.c (quote_string_for_make): Make src argument const char *.
+       (register_dependency): Likewise.
+       (wrap_output): Likewise.
+       * as.h (register_dependency): Adjust.
+       * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
+       as_where ();
+       * symbols.c (S_SET_EXTERNAL): Likewise.
+       * input-scrub.c (as_where): Return the file name.
+       * as.h (as_where): Adjust prototype.
+       * app.c (do_scrub_chars): Adjust.
+       * cond.c (s_elseif): Likewise.
+       (s_else): Likewise.
+       (initialize_cframe): Likewise.
+       * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
+       * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
+       * config/obj-som.c (obj_som_init_stab_section): Likewise.
+       * config/tc-aarch64.c (output_info): Likewise.
+       * config/tc-ia64.c (md_assemble): Likewise.
+       (dot_alias): Likewise.
+       * config/tc-m68k.c (m68k_frob_label): Likewise.
+       * config/tc-mmix.c (s_bspec): Likewise.
+       (mmix_handle_mmixal): Likewise.
+       * config/tc-rx.c (rx_include): Likewise.
+       * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
+       (tic54x_adjust_symtab): Likewise.
+       * config/tc-xtensa.c (directive_push): Likewise.
+       (xtensa_sanity_check): Likewise.
+       (xtensa_relax_frag): Likewise.
+       (md_convert_frag): Likewise.
+       (tinsn_to_slotbuf): Likewise.
+       * dwarf2dbg.c (dwarf2_where): Likewise.
+       * ecoff.c (add_file): Likewise.
+       (ecoff_generate_asm_lineno): Likewise.
+       * expr.c (make_expr_symbol): Likewise.
+       * frags.c (frag_new): Likewise.
+       (frag_var_init): Likewise.
+       * listing.c (listing_newline): Likewise.
+       * messages.c (identify): Likewise.
+       (as_show_where): Likewise.
+       (as_warn_internal): Likewise.
+       (as_bad_internal): Likewise.
+       * read.c (s_irp): Likewise.
+       (s_macro): Likewise.
+       (s_reloc): Likewise.
+       * stabs.c (stabs_generate_asm_file): Likewise.
+       (stabs_generate_asm_lineno): Likewise.
+       (stabs_generate_asm_func): Likewise.
+       * write.c (fix_new_internal): Likewise.
+       * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
+       (as_warn_value_out_of_range): Adjust prototype.
+       (as_bad_value_out_of_range): Adjust prototype.
+       * messages.c (identify): Make file name argument const char *.
+       (as_warn_internal): Likewise.
+       (as_warn_where): Likewise.
+       (as_bad_internal): Likewise.
+       (as_bad_where): Likewise.
+       (as_internal_value_out_of_range): Likewise.
+       (as_warn_value_out_of_range): Likewise.
+       (as_bad_value_out_of_range): Likewise.
+       * as.h (found_comment_file): Change type to const char *.
+       * cond.c (file_line::file): Likewise.
+       * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
+       * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
+       * config/obj-som.c (obj_som_init_stab_section): Likewise.
+       * config/tc-aarch64.c (output_info): Likewise.
+       * config/tc-alpha.c (insert_operand): Likewise.
+       * config/tc-arc.c (insert_operand): Likewise.
+       * config/tc-d30v.c (check_size): Likewise.
+       * config/tc-ia64.c (struct alias): Likewise.
+       * config/tc-m68k.c (struct label_line): Likewise.
+       * config/tc-mcore.c (md_apply_fix): Likewise.
+       * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
+       * config/tc-mips.c (mips16_immed): Likewise.
+       * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
+       * config/tc-ppc.c (ppc_insert_operand): Likewise.
+       * config/tc-rx.c (rx_include): Likewise.
+       * config/tc-s390.c (s390_insert_operand): Likewise.
+       * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
+       (tic54x_adjust_symtab): Likewise.
+       * config/tc-tilegx.c (insert_operand): Likewise.
+       (apply_special_operator): Likewise.
+       * config/tc-tilepro.c (insert_operand): Likewise.
+       * config/tc-xtensa.c (directive_push): Likewise.
+       * ecoff.c (add_file): Likewise.
+       (ecoff_generate_asm_lineno): Likewise.
+       * listing.c (listing_newline): Likewise.
+       * read.c (s_irp): Likewise.
+       * write.c (install_reloc): Likewise.
+       * write.h (struct fix): Likewise.
+       * input-file.c (file_name): Change type to const char *.
+       (saved_file::file_name): Likewise.
+       (input_file_open): Change type of argument to const char *.
+       * input-file.h (input_file_open): Adjust.
+       * input-scrub.c (logical_input_file): change type to const char *.
+       (physical_input_file): Likewise.
+               (struct input_save): Adjust.
+       (input_scrub_push): Adjust.
+       (input_scrub_begin): Adjust.
+       (as_where): Adjust.
+       * input-scrub.c (input_scrub_new_file): Make file name argument const.
+       (input_scrub_include_file): Likewise.
+       (new_logical_line_flags): Likewise.
+       (new_logical_line): Likewise.
+       * as.h: Adjust.
+       * frags.h (struct frag): Change type of fr_file to const char *.
+       * expr.c (expr_symbol_where): Change type of file argument to
+       const char **.
+       * expr.h (expr_symbol_where): Likewise.
+       * config/tc-i370.c (md_apply_fix): adjust.
+       * config/tc-mmix.c (mmix_md_end): Likewise.
+       * config/tc-ppc.c (md_apply_fix): Likewise.
+       * config/tc-s390.c (md_apply_fix): Likewise.
+       * symbols.c (report_op_error): Likewise.
+       (resolve_symbol_value): Likewise.
+       * config/tc-ia64.c (slot::src_file): Change type to const char *.
+       (rsrc::file): Likewise.
+       * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
+       const char *.
+       (xtensa_relax_frag): Likewise.
+       (md_convert_frag): Likewise.
+       (tinsn_to_slotbuf): Likewise.
+       * expr.c (expr_symbol_line): Likewise.
+       * macro.c (define_macro): Likewise.
+       * macro.h (macro_struct): Likewise.
+       * messages.c (as_show_where): Likewise.
+       * read.c (s_macro): Likewise.
+       * stabs.c (stabs_generate_asm_file): Likewise.
+       (generate_asm_file): Likewise.
+       (stabs_generate_asm_lineno): Likewise.
+       * write.h (struct reloc_list): Likewise.
+       * input-scrub.c (as_where): Change return type to const char *.
+       * as.h (as_wheree): Adjust.
+
+2016-02-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * write.c (compress_debug): Move BFD compression bits setting
+       to ...
+       (write_object_file): Here.
+
+2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-i386.c (register_number): Check RegVRex.
+       * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
+       with %zmm19 and %zmm3.
+       * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
+       * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
+
+2016-02-19  Matthew Wahab  <matthew.wahab@arm.com>
+           Jiong Wang  <jiong.wang@arm.com>
+
+       * config/tc-arm.c (arm_ext_fp16): New.
+       (arm_extensions): New entry for "fp16".
+
+2016-02-19  Nick Clifton  <nickc@redhat.com>
+
+       PR 19630
+       * read.c (read_a_source_file): Check for assemble_one returning
+       with input_line_pointer set to NULL.
+
+2016-02-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
+       * listing.c (rebuffer_line): Change return type to void.
+
+       * symbols.c (decode_local_label_name): Make type a const char *.
+       * listing.c (print_source): Make type of p const char *.
+       (print_line): Make type of string const char *.
+       (buffer_line): Return const char *.
+       (title): Make type const char *.
+       (subtitle): Likewise.
+       (listing_listing): Make type of p const char *.
+       * messages.c (as_internal_value_out_of_range): Make type of prefix
+       const char *.
+       * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
+       and string const char *.
+       * read.c (_bfd_rel): Make type of name const char *.
+       * app.c (out_string): Change type to const char *.
+               (struct app_save::out_string): Likewise.
+
+2016-02-18  Dan Gisselquist  <dgisselq@verizon.net>
+           Nick Clifton  <nickc@redhat.com>
+
+       * read.c (finish_bundle): Avoid recording a negative alignment.
+       (do_align): Use unsigned values for n, len and max.  Only create
+       a frag if the alignment requirement is greater than the minimum
+       byte alignment.  Avoid recording a negative alignment.
+       (s_align): Use unsigned values where appropriate.
+       (bss_alloc): Use an unsigned value for the alignment.
+       (sizeof_sleb128): Add a comment noting that we encode one octet
+       per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
+       (emit_leb129_expr): Abort if the emitted encoding was longer than
+       expected.
+       * read.h (output_leb128): Update prototype.
+       (sizeof_leb128): Update prototype.
+       (bss_alloc): Update prototype.
+       * write.c (record_alignment): Use an unsigned value for the
+       alignment.  Do not record alignments less than the minimum
+       alignment for a byte.
+       * write.h (record_alignment): Update prototype.
+
+2016-02-17  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * config/tc-xtensa.c (xtensa_move_literals): Fix check for
+       .init.literal/.fini.literal section name.
+       * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
+       list of xtensa tests.
+       * testsuite/gas/xtensa/init-fini-literals.d: New file:
+       init-fini-literals test result patterns.
+       * testsuite/gas/xtensa/init-fini-literals.s: New file:
+       init-fini-literals test.
+
+2016-02-17  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
+       devices.csv file as of March 2016.
+
+2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/tc-arc.c (tc_arc_frame_initial_instructions): New
+       function.
+       (tc_arc_regname_to_dw2regnum): Likewise.
+       * config/tc-arc.h (TARGET_USE_CFIPOP): Define
+       (tc_cfi_frame_initial_instructions): Likewise.
+       (tc_regname_to_dw2regnum): Likewise.
+
+2016-02-16  Trevor Saunders  <tbsaunde@tbsaunde.org>
+
+       * doc/internals.texi (S_IS_EXTERN): Remove.
+
+2016-02-16  Nick Clifton  <nickc@redhat.com>
+
+       * doc/as.texinfo (Section): Fix up texinfo snafus in previous
+       update.
+
+2016-02-16  Renlin Li  <renlin.li@arm.com>
+
+       PR gas/19620
+       * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
+       * testsuite/gas/aarch64/movw_label.d: New.
+       * testsuite/gas/aarch64/movw_label.s: New.
+
+2016-02-15  Vinay Kumar G. <Vinay.G@kpit.com>
+
+       PR gas/19556
+       * config/rx-parse.y (MOV):  Opcode generation for index
+       register addressing mode.
+       * testsuite/gas/rx/rx.exp: Updated for new testcase.
+       * testsuite/gas/rx/pr19665.s: New file.
+       * testsuite/gas/rx/pr19665.s: New file.
+       * testsuite/gas/rx/mov.d: Update expected output.
+
+2016-02-15  Nick Clifton  <nickc@redhat.com>
+
+       * doc/as.texinfo (.section): Document that numeric values can now
+       be used for the flags and type fields of the ELF target's .section
+       directive.  Add notes about the restrictions on setting flags and
+       types.
+       * config/obj-elf.c (obj_elf_change_section): Allow known sections
+       to be given processor specific section types.  Allow processor and
+       application specific flags of a section to be set after
+       definition.
+       (obj_elf_parse_section_letters): Handle parsing numeric values.
+       (obj_elf_section_type): Handle parsing numeric values.
+       (obj_elf_section): Allow numeric type values.
+       * config/obj-elf.h (obj_elf_change_section): Update prototype.
+       * testsuite/gas/elf/section10.d: New test.
+       * testsuite/gas/elf/section10.s: Source file for new test.
+       * testsuite/gas/elf/elf.exp: Run the new test.
+       * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
+       the description of the flags produced by readelf.
+       * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
+       * NEWS: Mention the new feature.
+
+2016-02-11  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/19614
+       * dw2gencfi.c (cfi_sections_set): Delay setting this variable
+       until it is actually used.
+       (cfi_set_sections): Set cfi_sections_set to true.
+       (dot_cfi_startproc): Likewise.
+       (dot_cfi_endproc): Likewise.
+       (dot_cfi_fde_data): Likewise.
+       (cfi_finish): Likewise.
+       (dot_cfi_sections): Do not set cfi_sections_set.
+       * doc/as.texinfo (.cfi_sections): Note that targets can provide
+       their own cfi section name.  Also note that the directive can be
+       reissued provided that CFI generation has not started.
+       * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
+       .cfi_endproc directives so that the redefinition of .cfi_sections
+       will trigger the generation of the error message.
+       * testsuite/gas/mips/compact-eh-err2.l: Update expected line
+       number of error message.
+
+2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
+           Janek van Oirschot <jvanoirs@synopsys.com>
+
+       * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
+       (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
+       Define.
+       (arc_flags, arc_relax_type): New structure.
+       * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
+       (RELAX_TABLE_ENTRY_MAX): New define.
+       (relaxation_state, md_relax_table, arc_relaxable_insns)
+       (arc_num_relaxable_ins): New variable.
+       (rlx_operand_type, arc_rlx_types): New enums.
+       (arc_relaxable_ins): New structure.
+       (OPTION_RELAX): New option.
+       (arc_insn): New relax member.
+       (arc_flags): Remove.
+       (relax_insn_p): New function.
+       (apply_fixups): Likewise.
+       (relaxable_operand): Likewise.
+       (may_relax_expr): Likewise.
+       (relaxable_flag): Likewise.
+       (arc_pcrel_adjust): Likewise.
+       (md_estimate_size_before_relax): Implement.
+       (md_convert_frag): Likewise.
+       (md_parse_option): Handle new mrelax option.
+       (md_show_usage): Likewise.
+       (assemble_insn): Set relax member.
+       (emit_insn0): New function.
+       (emit_insn1): Likewise.
+       (emit_insn): Handle relaxation case.
+       * NEWS: Mention the new relaxation option.
+       * doc/c-arc.texi (ARC Options): Document new mrelax option.
+       * doc/as.texinfo (Target ARC Options): Likewise.
+       * testsuite/gas/arc/relax-avoid1.d: New file.
+       * testsuite/gas/arc/relax-avoid1.s: Likewise.
+       * testsuite/gas/arc/relax-avoid2.d: Likewise.
+       * testsuite/gas/arc/relax-avoid2.s: Likewise.
+       * testsuite/gas/arc/relax-avoid3.d: Likewise.
+       * testsuite/gas/arc/relax-avoid3.s: Likewise.
+       * testsuite/gas/arc/relax-b.d: Likewise.
+       * testsuite/gas/arc/relax-b.s: Likewise.
+
+2016-02-08  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-ia64.c (dot_prologue): Fix formatting.
+
+2016-02-04  Nick Clifton  <nickc@redhat.com>
+
+       * config/obj-elf.c (obj_elf_change_section): Remove support for
+       ARM NOREAD sections.
+       * config/tc-arm.c (arm_elf_section_letter): Delete.
+       * config/tc-arm.h (md_elf_section_letter): Delete.
+       * doc/c-arm.texi (ARM Section Attribute): Delete section.
+       * testsuite/gas/arm/section-execute-only.d: Delete.
+       * testsuite/gas/arm/section-execute-only.s: Delete.
+
+2016-02-04  Nick Clifton  <nickc@redhat.com>
+
+       PR target/19561
+       * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
+       to handle encoding of RRUX instruction.
+       * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
+       shift instructions.
+       * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
+
+2016-02-03  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
+       substitutions for BFD_RELOC_* as unsigned.
+       * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
+       * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
+       * testsuite/gas/xtensa/loc.s: New file: loc test.
+
 2016-02-03  Kevin Buettner  <kevinb@redhat.com>
 
        * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
 
+2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/19520
+       * NEWS: Mention new command line option -mrelax-relocations and
+       new configure option --enable-x86-relax-relocations for x86
+       target.
+       * config.in: Regenerated.
+       * configure.ac: Add --enable-x86-relax-relocations.
+       (ac_default_x86_relax_relocations): New.  Default to 1 except
+       for x86 Solaris targets older than Solaris 12.
+       (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
+       * configure: Likewise.
+       * config/tc-i386.c (generate_relax_relocations): New.
+       (OPTION_MRELAX_RELOCATIONS): Likewise.
+       (output_disp): Don't generate relax relocations if
+       generate_relax_relocations is 0.
+       (md_longopts): Add -mrelax-relocations.
+       (md_show_usage): Likewise.
+       (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
+       * doc/c-i386.texi: Document -mrelax-relocations=.
+       * testsuite/gas/i386/got-no-relax.d: New file.
+       * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
+       * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
+       * testsuite/gas/i386/localpic.d: Likewise.
+       * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
+       * testsuite/gas/i386/reloc32.d: Likewise.
+       * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
+       * testsuite/gas/i386/x86-64-localpic.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
+       * testsuite/gas/i386/i386.exp: Run got-no-relax and
+       x86-64-gotpcrel-no-relax.
+
 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        * NEWS: Mention new command line option -mfence-as-lock-add=yes
This page took 0.027413 seconds and 4 git commands to generate.