Fix compile time warnings from a GCC 4.0 compiler
[deliverable/binutils-gdb.git] / gas / ChangeLog
index ea056d4a7691d8daaa44e64efca7f0498b6185e9..c34b4e2d16c34ee8b85364fe780ee8f31516cee1 100644 (file)
@@ -1,3 +1,457 @@
+2005-07-05  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-pdp11.c (md_apply_fix): Cast first argument to
+       md_chars_to_numbers to an unsigned pointer in order to avoid a
+       compile time warning.
+
+2005-07-05  Paul Brook  <paul@codesourcery.com>
+
+       * config/tc-ppc.c (ppc_target_format): Add VxWorks.
+
+2005-07-05  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/tc-ms1.c: New.
+       * config/tc-ms1.h: New.
+       * testsuite/gas/ms1/allinsn.d: New.
+       * testsuite/gas/ms1/allinsn.s: New.
+       * testsuite/gas/ms1/badinsn.s: New.
+       * testsuite/gas/ms1/badinsn1.s: New.
+       * testsuite/gas/ms1/badoffsethigh.s: New.
+       * testsuite/gas/ms1/badoffsetlow.s: New.
+       * testsuite/gas/ms1/badorder.s: New.
+       * testsuite/gas/ms1/badreg.s: New.
+       * testsuite/gas/ms1/badsignedimmhigh.s: New.
+       * testsuite/gas/ms1/badsignedimmlow.s: New.
+       * testsuite/gas/ms1/badsyntax.s: New.
+       * testsuite/gas/ms1/badsyntax1.s: New.
+       * testsuite/gas/ms1/badunsignedimmhigh.s: New.
+       * testsuite/gas/ms1/badunsignedimmlow.s: New.
+       * testsuite/gas/ms1/errors.exp: New.
+       * testsuite/gas/ms1/ldst.s: New.
+       * testsuite/gas/ms1/misc.d: New.
+       * testsuite/gas/ms1/misc.s: New.
+       * testsuite/gas/ms1/ms1-16-003.d: New.
+       * testsuite/gas/ms1/ms1-16-003.s: New.
+       * testsuite/gas/ms1/ms1.exp: New.
+       * testsuite/gas/ms1/msys.d: New.
+       * testsuite/gas/ms1/msys.s: New.
+       * testsuite/gas/ms1/relocs.d: New.
+       * testsuite/gas/ms1/relocs.exp: New.
+       * testsuite/gas/ms1/relocs1.s: New.
+       * testsuite/gas/ms1/relocs2.s: New.
+
+2005-07-05  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-i386.h (CpuSVME): New.
+       (CpuUnknownFlags): Include CpuSVME.
+       * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
+       as alias of sledgehammer.
+       (md_assemble): Include invlpga in the check for insns with two source
+       operands.
+       (process_operands): Include SVME insns in the check for ignored
+       segment overrides. Adjust diagnostic.
+       (i386_index_check): Special-case SVME insns with memory operands.
+
+2005-07-04  Khem Raj  <kraj@mvista.com>
+           Nick Clifton  <nickc@redhat.com>
+
+       * tc-arm.c (struct arm_it): Make operands.imm signed to match its
+       use an immediate value.
+       (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
+       since the register field of the operands structure is unsigned.
+       (s_arm_unwind_save_vfp): Make "reg" unsigned.
+       (parse_operands): Make the 2ns parameter an unsigned pointer to
+       match its use.
+       (do_ldrd): When using the imm field of the operands structure as a
+       second register field, treat it as unsigned.
+
+2005-07-04  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 1004
+       * config/obj-elf.c (obj_elf_change_section): Use backend
+       get_sec_type_attr.
+
+2005-07-01  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
+       (output_spill_psprel, output_spill_psprel_p): Combine.
+       (output_spill_sprel, output_spill_sprel_p): Combine.
+       (output_spill_reg, output_spill_regp_p): Combine.
+       (process_one_record): Handle psp_psprel.
+       (parse_predicate_and_operand): New.
+       (convert_expr_to_ab_reg): Two new parameters. Return void. Always
+       initialize output values. Emit diagnostic case here.
+       (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
+       (add_unwind_entry): New second parameter. Allow first parameter to
+       be NULL. Parse optional tag, emit warning about further support for
+       it otherwise being missing. Check end-of-line when requested.
+       (dot_fframe): Clear operand when wrong. Allow tag.
+       (dot_vframe): Likewise.
+       (dot_vframesp): Likewise. Rename parameter, issue warning when psp
+       relative.
+       (dot_vframepsp): Remove.
+       (dot_altrp): Clear operand when wrong. Allow tag.
+       (dot_save): Likewise. Let default case also go through
+       add_unwind_entry.
+       (dot_savemem): Likewise.
+       (dot_restore): Don't return when wrong operand. Allow tag.
+       (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
+       parse_predicate_and_operand and the new arguments to
+       convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
+       when wrong operand. Allow tag.
+       (dot_restorereg, dot_restorereg_p): Likewise.
+       (dot_spillmem, dot_spillmem_p): Likewise.
+       (dot_saveg): Clear operand when wrong. Perform tighter operand
+       checks. Allow tag.
+       (dot_savef): Likewise.
+       (dot_saveb): Likewise.
+       (dot_savegf): Likewise.
+       (dot_spill): Remove end-of-line check.  Combine. Simplify by using
+       parse_predicate_and_operand and the new arguments to
+       convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
+       when wrong operand. Allow tag.
+       (popcount): New.
+       (dot_label_state): Don't return when wrong operand.
+       (dot_copy_state): Likewise.
+       (dot_unwabi): Likewise. Check if in prologue.
+       (dot_body): Don't call demand_empty_rest_of_line.
+       (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
+       operand checks.
+       (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
+       use dot_spillreg for .spillreg.p. Also use dot_spillmem for
+       .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
+       (parse_operand): New second parameter. Don't deal with '}' here
+       anymore. Don't advance past end-of-line.
+       (parse_operands): Pass second argument to parse_operand.
+       (ia64_start_line): Prevent out-of-bounds access through
+       input_line_pointer. Deal with '}' here.
+       (ia64_unrecognized_line): Don't deal with '}' here.
+       (dot_alias): Use ignore_rest_of_line not its deprecated alias
+       discard_rest_of_line.
+
+2005-06-30  Zack Weinberg  <zack@codesourcery.com>
+
+       * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
+       (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
+       (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
+       (do_branch): Always set inst.reloc.pc_rel.
+       (s_arm_elf_cons): Disallow use of (plt) suffix.
+       (do_adrl): Adjust X_add_number unconditionally.
+       (md_pcrel_from): Rename md_pcrel_from_section, add second segT
+       argument.  Handle all adjustment for pipeline offset here.
+       (md_apply_fix): No need to undo work of md_pcrel_from.  No
+       need to extract pre-encoded pipeline adjustments from various
+       branch instructions.  Generally, assume instructions are already
+       all-bits-zero in the field being fixed up.  Remove all OBJ_ELF
+       special cases.  Handle BFD_RELOC_ARM_PLT32 like
+       BFD_RELOC_ARM_PCREL_BRANCH.
+       (tc_gen_reloc): Remove OBJ_ELF special case.
+       * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
+
+2005-06-30  Ben Elliston  <bje@gnu.org>
+
+       * Makefile.am (check-DEJAGNU): Don't search for expect.
+       * Makefile.in: Regenerate.
+
+2005-06-30  Ben Elliston  <bje@gnu.org>
+
+       * Makefile.am (EXPECT): Set to expect.
+       (RUNTEST): Likewise, set to runtest.
+       * Makefile.in: Regenerate.
+
+2005-06-23  Ben Elliston  <bje@gnu.org>
+
+       * config/m68k-parse.h: Use ISO C90.
+       * config/m68k-parse.y: Likewise.
+       * config/tc-m68k.h: Likewise.
+
+2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 1013
+       * config/tc-i386.c (md_assemble): Don't call optimize_disp on
+       movabs.
+       (optimize_disp): Optimize only if possible. Don't use 64bit
+       displacement on non-constants and do same on constants if
+       possible.
+
+2005-06-17  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
+       (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
+       BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
+       (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
+       and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
+       aborting.
+       (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
+       Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
+       (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
+       Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
+       BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
+       BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
+       convert 8-byte pc-relative relocations.
+       (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
+       (i386_validate_fix): Likewise.
+       (x86_cons): Also handle quad values in 64-bit mode.
+       (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
+       (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
+       BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
+       to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
+
+2005-06-13  Zack Weinberg  <zack@codesourcery.com>
+
+       * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
+       symbolP as well as for names with a leading dot.  Use ACONCAT.
+       (md_apply_fix): For branch relocations, only replace value
+       with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
+       (arm_force_relocation): Remove #ifdef OBJ_ELF case.
+       * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
+       (LOCAL_LABEL_PREFIX): Don't define.
+
+2005-06-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-hppa.c (pa_block): Allocate just one byte for the
+       fill pattern.
+
+2005-06-08  James E Wilson  <wilson@specifixinc.com>
+
+       PR 994
+       * config/tc-ia64.c (slot_index): Revert last change.  If first_frag
+       is NULL, then emit a warning, and return the current index.
+
+2005-06-08  Tomas Hurka  <tom@hukatronic.cz>
+
+       PR 991
+       * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
+       temporary copy of the operands array so that changes can be safely
+       backed out if the insn does not match.
+       (m68k_compare_opcode): Shortcut the test when the parameters are
+       the same.  Return 1 if the names match but the second opcode is
+       further on in the array than the first.
+
+2005-06-08  Nick Clifton  <nickc@redhat.com>
+
+       PR 994
+       * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
+
+2005-06-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
+
+       * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
+
+2005-06-07  Aldy Hernandez  <aldyh@redhat.com>
+           Michael Snyder  <msnyder@redhat.com>
+           Stan Cox  <scox@redhat.com>
+
+       * configure.in: Add ms1 case.
+
+       * configure: Regenerate.
+
+       * configure.tgt: Add ms1 case.
+
+2005-06-07  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
+       * config/tc-xtensa.c (new_resource_table): Likewise.
+       (resize_resource_table): Likewise.
+       (release_resources): Fix assertion for unsigned values.
+
+2005-06-07  Zack Weinberg  <zack@codesourcery.com>
+
+       * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
+       * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
+       * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
+       * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
+       * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
+       * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
+       * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
+       * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
+       * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
+       * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
+       * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
+       * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
+       * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
+       * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
+       * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
+       * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
+       * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
+       * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
+       * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
+       * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
+       * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
+       * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
+       * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
+       * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
+       * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
+       * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
+       * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
+       * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
+       * config/tc-xtensa.c, config/tc-z8k.c:
+       Replace all instances of the string "_apply_fix3" with
+       "_apply_fix".
+       * po/POTFILES.in, po/gas.pot: Regenerate.
+
+2005-06-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Run "make dep-am".
+       (POTFILES): Remove GAS_CFILES.
+       * Makefile.in: Regenerate.
+
+2005-06-07  David Ung  <davidu@mips.com>
+
+       * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
+       24kc, 24kf and 24kfx under MIPS32 release 2.
+
+2005-06-04  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
+       to their Thumb-enabled equivalents.
+
+2005-06-01  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * config/tc-mips.c (load_register): Add leading "0x" to the
+       output of sprintf_vma().
+       (macro): Likewise.
+
+2005-06-01  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
+       test for the presence of thumb version of the parsing functions
+       since they must always exist and the test generates a compile time
+       warning message.
+
+2005-05-31  Richard Henderson  <rth@redhat.com>
+
+       * config/tc-alpha.c (O_lituse_jsrdirect): New.
+       (alpha_reloc_op): Add it.
+       (debug_exp): Handle it.
+       (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
+       (emit_insn): Handle it.
+       * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
+
+2005-05-31  Christian Groessler  <chris@groessler.org>
+
+       * write.c (dump_section_relocs): Convert to ISO-C.
+       (write_relocs): Avoid signed/unsigned and fprintf argument
+       warnings in debug code.
+
+2005-05-26  Zack Weinberg  <zack@codesourcery.com>
+
+       * config/tc-arm.h (TC_FIX_TYPE): Change to int.
+       (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
+       * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
+       (md_apply_fix3): Delete fix_is_thumb variable; refer to
+       fixP->tc_fix_data directly in the sole place it was used.
+       Explicitly truncate value, *valP, fixP->fx_addnumber, and
+       fixP->fx_offset to 32 bits, for consistent behavior between 32-
+       and 64-bit hosts.
+
+2005-05-27  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (struct proc_pending): New.
+       (unwind): Replace proc_start with proc_pending.
+       (unwind_diagnostic): Check unwind.proc_pending.sym.
+       (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
+       Check if previous proc not closed. Record all entry points.
+       (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
+       Set symbol sizes for entry points recorded in dot_proc. Check
+       arguments for consistency with respective .proc's.
+       (md_assemble): Replace unwind.proc_start with
+       unwind.proc_pending.sym.
+
+2005-05-27  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
+       and last_ptr. Check all in-use slots for first one with non-NULL
+       unwind_record. Don't reload end_ptr before second update round.
+
+2005-05-26  James E Wilson  <wilson@specifixinc.com>
+
+       * config/tc-ia64.c (extra_goodness): Update comment.
+       (md_begin): Add debugging code to print best_template table.
+
+2005-05-25  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
+       template.
+
+2005-05-25  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
+       BFD_RELOC_UNUSED when determining the width of the reloc.
+
+2005-05-25  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
+       section entry.
+
+2005-05-25  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (dot_radix): Rewrite.
+
+2005-05-25  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
+       and next_slot_frag.
+       (alloc_record): Remove references to next_slot_number and
+       next_slot_frag.
+       (emit_one_bundle): Likewise.
+
+2005-05-22  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-v850.c (md_apply_fix3): Pass the address of the
+       message buffer when invoking the insert function.
+
+2005-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
+       only if an instruction match is found.
+
+2005-05-20  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
+       to addition in argument to xtensa_dwarf2_emit_insn.
+
+2005-05-19  Zack Weinberg  <zack@codesourcery.com>
+
+       * Makefile.am: Have 'all' depend on 'info'.
+       * Makefile.in: Regenerate.
+
+2005-05-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
+
+2005-05-19  Anton Blanchard  <anton@samba.org>
+
+       * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
+       (md_show_usage): Document it.
+       (ppc_setup_opcodes): Insert POWER5 mnemonics.
+       * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
+
+2005-05-19  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
+       relocations in unwind section.
+
+2005-05-18  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
+       if one exists.  Ignore any error messages it may produce, just
+       allow it to perform the insertion.
+
+2005-05-17  Zack Weinberg  <zack@codesourcery.com>
+
+       * hash.c (hash_lookup): Add len parameter.  All callers changed.
+       (hash_find_n): New interface.
+       * hash.h: Prototype hash_find_n.
+       * sb.c: Include as.h.
+       (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
+       (sb_scrub_and_add_sb): New interface.
+       * sb.h: Prototype sb_scrub_and_add_sb.
+       * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
+
+       * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
+       reference to BFD_RELOC_ARM_GOT12 which is never generated.
+       * config/tc-arm.c: Rewrite, adding Thumb-2 support.
+
 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * doc/Makefile.am (gasver.texi): Don't use $<.
This page took 0.045692 seconds and 4 git commands to generate.