* as.h (assert): Warning fix.
[deliverable/binutils-gdb.git] / gas / ChangeLog
index ceb6e6ba47ac21c792a1bc4221cefd85d2f69de1..69911d1aa6a0fada77a32041fe94a02bc54905b4 100644 (file)
@@ -1,7 +1,426 @@
+2005-03-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * as.h (assert): Warning fix.
+       * expr.c (expr): Correct assertion.
+       * read.c (s_comm_internal): Remove assertion.
+       * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
+       (fixup_segment): Remove assertion.
+       * config/tc-dlx.c (machine_ip): Remove untrue assertions.
+       (md_apply_fix3): Likewise.
+       * config/tc-i370.c (md_begin): Correct assertion.
+       (i370_macro): Warning fix for assertion.
+
+2005-03-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * configure.in (AC_C_BIGENDIAN): Invoke.
+       * configure: Regenerate.
+       * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
+       host variable to set string header size.
+       * config/obj-aout.c (obj_header_append): Don't use host structs.
+       (obj_symbol_to_chars): Likewise.
+       (obj_emit_strings): Likewise.  Use the passed in output pointer.
+       * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
+       * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
+       not sizeof host struct.
+       (obj_header_append, obj_symbol_to_chars): Don't use host structs.
+       (obj_emit_strings): Likewise.
+       * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
+       (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
+       sizeof host struct.
+       (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
+       sizeof host struct.
+       (host_number_to_chars): Define.
+       * config/obj-hp300.c (hp300_header_append): Don't use sizeof
+       host internal struct to set header sizes.
+       * config/tc-i960.c (md_number_to_field): Warning fix.
+       (md_ri_to_chars): Use host byte order.
+       (get_cdisp, md_apply_fix3): Warning fix.
+       * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
+
+2005-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
+
+       * doc/c-arc.texi: Update documentation about ARC's extension
+       instructions.
+
+2005-02-27  Svein E. Seldal  <svein@dev.seldal.com>
+
+       * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
+       address for myself.
+
+2005-02-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * cgen.c: Warning fixes.
+       * config/tc-arc.c: Likewise.
+       * config/tc-arm.c: Likewise.
+       * config/tc-avr.c: Likewise.
+       * config/tc-d10v.c: Likewise.
+       * config/tc-d30v.c: Likewise.
+       * config/tc-frv.c: Likewise.
+       * config/tc-frv.h: Likewise.
+       * config/tc-h8300.c: Likewise.
+       * config/tc-h8500.c: Likewise.
+       * config/tc-i370.c: Likewise.
+       * config/tc-i960.c: Likewise.
+       * config/tc-ia64.c: Likewise.
+       * config/tc-ip2k.c: Likewise.
+       * config/tc-m68hc11.c: Likewise.
+       * config/tc-maxq.c: Likewise.
+       * config/tc-mcore.c: Likewise.
+       * config/tc-mips.c: Likewise.
+       * config/tc-msp430.c: Likewise.
+       * config/tc-pj.c: Likewise.
+       * config/tc-ppc.c: Likewise.
+       * config/tc-ppc.h: Likewise.
+       * config/tc-s390.c: Likewise.
+       * config/tc-sh.c: Likewise.
+       * config/tc-sh64.c: Likewise.
+       * config/tc-tic4x.c: Likewise.
+       * config/tc-tic80.c: Likewise.
+       * config/tc-v850.c: Likewise.
+       * config/tc-vax.c: Likewise.
+       * config/tc-w65.c: Likewise.
+       * config/tc-xstormy16.c: Likewise.
+       * config/tc-z8k.c: Likewise.
+
+2005-02-22  Catherine Moore  <clm@cm00re.com>
+
+       * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
+       * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
+
+2005-02-22  Eric Christopher  <echristo@redhat.com>
+
+       * config/tc-mips.c (struct proc): Change isym to
+       func_sym. New member func_end_sym.
+       (s_mips_ent): Update.
+       (s_mips_end): Ditto. Add code to compute function size.
+
+2005-02-22  Alan Modra  <amodra@bigpond.net.au>
+
+       * read.c: Warning fixes.
+       * config/obj-elf.c: Likewise.
+
+2005-02-22  Maciej W. Rozycki  <macro@mips.com>
+
+       * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
+       emitting insn.
+
+2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
+       SEC_COFF_SHARED.
+
+       * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
+       SEC_TIC54X_BLOCK.
+       (demand_empty_rest_of_line): Likewise.
+       (tic54x_sblock): Likewise.
+       (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
+
+2005-02-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * read.c (address_bytes): New function.
+       (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
+       (potable): Add "dc.a".
+       (cons_worker): Handle "dc.a".
+       * doc/internals.texi (TC_ADDRESS_BYTES): Document.
+
+2005-02-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * input-file.c (input_file_open): Rearrange to avoid warning.
+
+2005-02-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
+       * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
+       * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
+
+2005-02-18  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
+       uses after .set noat.
+       (load_address): Likewise.
+       (macro): Likewise. Don't try to avoid $at use by sacrificing
+       the target register before it is stored, it won't work.
+
+2005-02-17  James E Wilson  <wilson@specifixinc.com>
+
+       * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
+       see an instruction that specifies a template.
+
+2005-02-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
+       * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
+       * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
+
+2005-02-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * NEWS: Mention "-mhint.b=[ok|warning|error]".
+
+       * config/tc-ia64.c (md): Add hint_b.
+       (emit_one_bundle): Handle md.hint_b for "hint".
+       (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
+       (md_show_usage): Add "-mhint.b=[ok|warning|error]".
+       (ia64_init): Set md.hint_b to error.
+       (md_assemble): Handle md.hint_b for "hint.b".
+
+       * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
+       * doc/c-ia64.texi: Likewise.
+
+2005-02-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * tc.h (struct relax_type, relax_typeS): Move from here..
+       * as.h: ..to here.  Make rlx_forward and rlx_backward an offsetT.
+       * ecoff.c (ecoff_new_file): Add appfile param.
+       * ecoff.h (ecoff_new_file): Likewise.
+       * itbl-lex.h: New file.
+       * itbl-lex.l: Include itbl-lex.h.
+       * itbl-parse.y: Likewise.
+       (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
+       * read.c (s_app_file_string): Mark appfile possibly unused.
+       * subsegs.c (seg_not_empty_p): Make sec possibly unused.
+       * subsegs.h (struct seg_info_trash): Delete.
+       (seg_info): Use segment_info_type instead.
+       * config/obj-coff.c (struct filename_list): Make filename const char *.
+       * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
+       * config/obj-elf.c (elf_file_symbol): Similarly.
+       * config/tc-a29k.c (md_apply_fix3): Make val a valueT.  Don't use
+       signed right shift.
+       * config/tc-arc.c (md_operand): Warning fix.
+       * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
+       (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
+       * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
+       * config/tc-frv.c (frv_force_relocation): Warning fix.
+       * config/tc-m68k.c (md_parse_option): Delete unused var.
+       * config/tc-mcore.c (mylog2): Rename from log2 throughout.
+       * config/tc-sparc.c: Likewise.
+       (s_common): Warning fix.
+       * config/tc-mips.c (append_insn): Use unsigned long long expressions.
+       * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
+       addressT.
+       * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
+       * config/tc-sh.c (sh_cfi_frame_initial_instructions,
+       sh_regname_to_dw2regnum): Only define for OBJ_ELF.
+       * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
+       (tic4x_do_align): Use TIC_NOP_OPCODE.
+       * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
+       * config/tc-vax.c: Include netinet/in.h.
+       (tc_headers_hook): Formatting.
+       * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
+
+2005-02-17  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
+       parsing inN, locN, outN. Set 'idx' to offset register number starts
+       at. Don't handle numbers with leading zeroes or beyond 95. Remove
+       pointless cast.
+
+2005-02-16  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (load_address): Fix formatting.
+       (macro): Don't use AT if .set noat is in effect. Fix formatting.
+       Catch macros which are unexpandable without AT. Remove duplicate
+       zeroing of used_at.
+       (macro2): Remove duplicate zeroing of used_at.
+
+2005-02-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
+       than zero.
+
+2005-02-15  Nigel Stephens  <nigel@mips.com>
+           Maciej W. Rozycki  <macro@mips.com>
+
+       * config/tc-mips.c (reloc_needs_lo_p): Handle
+       BFD_RELOC_MIPS16_HI16_S.
+       (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
+       (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
+       and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
+       complaints on.
+       (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
+       BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
+       Call my_getSmallExpression() to parse percent operators.
+       (percent_op_match, mips_percent_op): Separate definitions.
+       (mips16_percent_op): Define percent operators for the MIPS16 mode.
+       (parse_relocation): Handle the MIPS16 mode using
+       mips16_percent_op.
+       (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
+       BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
+
+2005-02-15  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
+       instead of explicitly dealing with the translation; exclude
+       relocations that are already pcrel, however.
+
+2005-02-15  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c: Include limits.h (if available).
+       (gr_values[0]): Set path to INT_MAX.
+       (dot_reg_val): Don't allow changing value of r0. Limit range of
+       general registers at r127.
+       (specify_resource): Default resource index is -1. Don't set resource
+       index (in case IA64_RS_RSE) without setting the specific flag.
+       (note_register_values): Check operand is O_constant before tracking
+       input value of moves. Add tracking for dep.z with constant inputs.
+       (print_dependency): Resource index of specific resource may be zero.
+       (check_dependencies): Likewise.
+
+2005-02-15  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
+       reg_class. Check operands and emit diagnostics for illegal use of
+       registers.
+
+2005-02-15  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
+       new variables type, suffix, and width. Handle
+       BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
+       Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
+       FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
+       FUNC_DTP_RELATIVE case. Return incoming relocation type if
+       BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
+       if unable to translate relocation type, using the new variables.
+
+2005-02-15  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.h (ia64_symbol_chars): Declare.
+       (ty_symbol_chars): Define.
+       * config/tc-ia64.c (ia64_symbol_chars): Define.
+
+2005-02-15  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (ia64_parse_name): Only update next character if
+       input_line_pointer was advanced.
+
+2005-02-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * config/tc-sh.c (md_apply_fix3): Add parentheses around &
+       within |.
+
+2005-02-13  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
+       (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
+       indicator.
+       (ia64_init): Set md.detect_dv.
+       (ia64_start_line): New static variable warned. Warn only once when
+       encountering explicit stops in automatic mode.
+       * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
+       * NEWS: Mention new default mode.
+
+2005-02-13  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (dot_rot): Add comment that name strings should
+       be freed when wiping out previous state. Canonicalize names before
+       use. Free name string when detecting redefinition.
+       (dot_pred_rel): Call generic expression parser to process arguments.
+       Handle O_register case for individual predicates and O_subtract for
+       ranges.
+       (ia64_parse_name): Canonicalize name before looking it up in dynamic
+       register hash.
+       (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
+       Warn if multiple found, issue error if resulting symbol name has zero
+       length.
+       (dot_alias): Canonicalize name before use.
+
+2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
+       and 0 for error.
+       (in_procedure): Return -1 for warning.
+       (in_prologue): Likewise.
+       (in_body): Likewise.
+
+2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-ia64.c (dot_xdata): Undo the last change.
+       (dot_float_cons): Likewise.
+       (dot_xstringer): Likewise.
+       (dot_xdata_ua): Likewise.
+       (dot_float_cons_ua): Likewise.
+
+2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * NEWS: Mention "-munwind-check=[warning|error]".
+
+       * config/tc-ia64.c (md): Add unwind_check.
+       (unwind_diagnostic): New.
+       (in_procedure): Call unwind_diagnostic when a directive isn't
+       in procedure.
+       (in_prologue): Call unwind_diagnostic when a directive isn't in
+       prologue.
+       (in_body): Call unwind_diagnostic when a directive isn't in
+       body region.
+       (dot_endp): Set md.unwind_check to error before calling
+       in_procedure and restore it after. When the name is missing or
+       couldn't be found, use the one from the last .proc if
+       md.unwind_check isn't error. Warn if md.unwind_check is
+       warning.
+       (md_parse_option): Handle "-munwind-check=[warning|error]".
+       (md_show_usage): Add "-munwind-check=[warning|error]".
+       (ia64_init): Set md.unwind_check to warning.
+
+       * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
+       * doc/c-ia64.texi: Likewise.
+
+2005-02-11  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
+       (LEX_QM): Likewise.
+       (ia64_parse_name): New third parameter.
+       (md_parse_name): Pass third argument.
+       * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
+       (md_operand): Handling of '@'-prefixed symbols moved from here...
+       (ia64_parse_name): ...to here.
+
+2005-02-11  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (md): Remove last_groups and group_idx.
+       (errata_nop_necessary_p): Remove declaraction and definition.
+       (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
+       update md.group_idx. Don't reset md.last_groups.
+
+2005-02-11  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (parse_section_name): Handle non-quoted first
+       argument.
+       (dot_xdata): Free section name after use.
+       (dot_float_cons): Likewise.
+       (dot_xstringer): Likewise.
+       (dot_xdata_ua): Likewise.
+       (dot_float_cons_ua): Likewise.
+       (md_pseudo_table): Add xdata16 and xdata16.ua.
+
+2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * doc/all.texi: Add IA64.
+       * doc/as.texinfo: Likewise.
+
+       * doc/c-ia64.texi: Fix typos.
+
+2005-02-10  Julian Brown  <julian@codesourcery.com>
+
+       * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
+       BFD_RELOC_UNUSED.
+       (do_t_push_pop): Likewise.
+       (md_assemble): Likewise.
+       (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
+       BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
+       (create_unwind_entry): Output dependency on the required personality
+       routines.
+       testsuite/gas/arm/unwind.d: Alter expected output to include
+       dependency on __aeabi_unwind_cpp_pr[01].
+
+2005-02-07  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * as.h (seg_not_empty_p): Return int, not bfd_boolean.
+       * subsegs.c (seg_not_empty_p): Likewise.
+
 2005-02-07  Inderpreet Singh <inderpreetb@noida.hcltech.com>
 
        * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
-       relative jump calculation. 
+       relative jump calculation.
        <md_convert_frag) : Likewise.
        <output_disp): Likewise.
 
 
 2005-01-14  H.J. Lu  <hongjiu.lu@intel.com>
 
-       PR 659  
+       PR 659
        * config/tc-i386.c (i386_scale): Disallow 0 scale.
 
 2005-01-12  Nick Clifton  <nickc@redhat.com>
        * configure, Makefile.in: Rebuild.
 
 2004-12-22  Klaus Rudolph  <lts-rudolph@gmx.de>
-    
+
        * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
        R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
        instructions.
        * Makefile.in: Regenerated.
        * aclocal.m4: Likewise.
        * configure: Likewise.
-       * doc/Makefile.in: Regenerated. 
+       * doc/Makefile.in: Regenerated.
 
 2004-12-02  Bob Wilson  <bob.wilson@acm.org>
 
This page took 0.029041 seconds and 4 git commands to generate.