aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2003-01-03 * configure.in: Add iq2000-elf target.Stan Cox6-4/+1291
* configure: Regenerate. * config/tc-iq2000.c: New file. * config/tc-iq2000.h: Likewise.
2003-01-03 * gas/iq2000: New testsuite.Stan Cox57-0/+10467
2003-01-02[ gas/ChangeLog ]Chris Demetriou5-56/+88
2003-01-02 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c: Update copyright years to include 2003. (mips_ip): Fix indentation of "+A", "+B", and "+C" handling. Additionally, clean up their code slightly and clean up their comments some more. * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation. [ gas/testsuite/ChangeLog ] 2003-01-02 Chris Demetriou <cgd@broadcom.com> * gas/mips/elf_arch_mips32r2.d: Fix file description comment. [ include/opcode/ChangeLog ] 2003-01-02 Chris Demetriou <cgd@broadcom.com> * mips.h: Update copyright years to include 2002 (which had been missed previously) and 2003. Make comments about "+A", "+B", and "+C" operand types more descriptive.
2003-01-02 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texiDaniel Jacobowitz3-2/+8
$(CPU_DOCS)". * doc/Makefile.in: Regenerate.
2003-01-01 * config/obj-elf.c (special_sections): Work around HP's incorrect usageDave Anglin2-0/+10
of .init and .fini sections for array initializers and finalizers.
2002-12-31[ gas/ChangeLog ]Chris Demetriou10-0/+1438
2002-12-31 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize the "+D" operand, which will be used only by the disassembler. [ gas/testsuite/ChangeLog ] 2002-12-31 Chris Demetriou <cgd@broadcom.com> * gas/mips/cp0sel-names-mips32.d: New test. * gas/mips/cp0sel-names-mips32r2.d: New test. * gas/mips/cp0sel-names-mips64.d: New test. * gas/mips/cp0sel-names-numeric.d: New test. * gas/mips/cp0sel-names-sb1.d: New test. * gas/mips/cp0sel-names.s: New test source file. * gas/mips/mips.exp: Run new tests. [ include/opcode/ChangeLog ] 2002-12-31 Chris Demetriou <cgd@broadcom.com> * mips.h: Note that the "+D" operand type name is now used. [ opcodes/ChangeLog ] 2002-12-31 Chris Demetriou <cgd@broadcom.com> * mips-dis.c (mips_cp0sel_name): New structure. (mips_cp0sel_names_mips3264, mips_cp0sel_names_mips3264r2) (mips_cp0sel_names_sb1): New arrays. (mips_arch_choice): New structure members "cp0sel_names" and "cp0sel_names_len". (mips_arch_choices): Add references to new cp0sel_names arrays as appropriate, and make all existing entries reference appropriate mips_XXX_names_numeric arrays rather than simply using NULL. (mips_cp0sel_names, mips_cp0sel_names_len): New variables. (lookup_mips_cp0sel_name): New function. (set_default_mips_dis_options): Set mips_cp0sel_names and mips_cp0sel_names_len as appropriate. Remove now-unnecessary checks for NULL register name arrays. (parse_mips_dis_option): Likewise. (print_insn_arg): Handle "+D" operand type. * mips-opc.c (mips_builtin_opcodes): Add new "+D" variants of mfc0, mtc0, dmfc0, and dmtc0 to print CP0+sel register names symbolically.
2002-12-31[ gas/testsuite/ChangeLog ]Chris Demetriou13-4/+96
2002-12-30 Chris Demetriou <cgd@broadcom.com> * gas/mips/elf_arch_mips1.d: New test. * gas/mips/elf_arch_mips2.d: New test. * gas/mips/elf_arch_mips3.d: New test. * gas/mips/elf_arch_mips4.d: New test. * gas/mips/elf_arch_mips5.d: New test. * gas/mips/elf_arch_mips32.d: New test. * gas/mips/elf_arch_mips32r2.d: New test. * gas/mips/elf_arch_mips64.d: New test. * gas/mips/empty.s: New test source file. * gas/mips/mips.exp: Run new tests. * gas/mips/elf_ase_mips16.d: Change to use empty.s * gas/mips/elf_ase_mips16.s: Remove.
2002-12-31oops - omitted from previous deltaNick Clifton3-0/+119
2002-12-31fix date on last entry. *sigh*Chris Demetriou1-1/+1
2002-12-31[ bfd/ChangeLog ]Chris Demetriou16-225/+772
2002-12-30 Chris Demetriou <cgd@broadcom.com> * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mipsisa32r2 case. * archures.c (bfd_mach_mipsisa32r2): New define. * bfd-in2.h: Regenerate. * cpu-mips.c (I_mipsisa32r2): New enum value. (arch_info_struct): Add entry for I_mipsisa32r2. * elfxx-mips.c (elf_mips_isa, _bfd_elf_mips_mach) (_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_32R2. (_bfd_mips_elf_final_write_processing): Add bfd_mach_mipsisa32r2 case. (_bfd_mips_elf_merge_private_bfd_data): Handle merging of binaries marked as using MIPS32 Release 2. [ binutils/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * doc/binutils.texi (objdump): Note MIPS HWR (Hardware Register) changes in MIPS -M options. [ gas/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and CPU variants. * configure: Regenerate. * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines. (macro_build): Handle "K" operand. (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where CPU_HAS_DROR and CPU_HAS_ROR are currently used. (mips_ip): New variable "lastpos", and implement "+A", "+B", and "+C" operands for MIPS32 Release 2 ins/ext instructions. Implement "K" operand for MIPS32 Release 2 rdhwr instruction. (validate_mips_insn): Implement "+" as a way to extend the allowed operands, and implement "K", "+A", "+B", and "+C" operands. (OPTION_MIPS32R2): New define. (md_longopts): Add entry for OPTION_MIPS32R2. (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2. (md_parse_option): Handle OPTION_MIPS32R2. (s_mipsset): Reimplement handling of ".set mipsN" options and add support for ".set mips32r2". (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2). (md_show_usage): Document "-mips32r2" option. * doc/as.texinfo: Document "-mips32r2" option. * doc/c-mips.texi: Likewise. [ gas/testsuite/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * gas/mips/cp0-names-mips32r2.d: New test. * gas/mips/hwr-names-mips32r2.d: New test. * gas/mips/hwr-names-numeric.d: New test. * gas/mips/hwr-names.s: New test source file. * gas/mips/mips32r2.d: New test. * gas/mips/mips32r2.s: New test source file. * gas/mips/mips32r2-ill.l: New test. * gas/mips/mips32r2-ill.s: New test source file. * gas/mips/mips.exp: Add mips32r2 architecture data array entry. Run new tests mentioned above. [ include/elf/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * mips.h (E_MIPS_ARCH_32R2): New define. [ include/opcode/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * mips.h: Document "+" as the start of two-character operand type names, and add new "K", "+A", "+B", and "+C" operand types. (OP_MASK_INSMSB, OP_SH_INSMSB, OP_MASK_EXTMSB) (OP_SH_EXTMSB, INSN_ISA32R2, ISA_MIPS32R2, CPU_MIPS32R2): New defines. [ opcodes/ChangeLog ] 2002-12-30 Chris Demetriou <cgd@broadcom.com> * mips-dis.c (mips_cp0_names_mips3264r2, mips_hwr_names_numeric) (mips_hwr_names_mips3264r2): New arrays. (mips_arch_choice): New "hwr_names" member. (mips_arch_choices): Adjust for structure change, and add a new entry for "mips32r2" ISA. (mips_hwr_names): New variable. (set_default_mips_dis_options): Set mips_hwr_names. (parse_mips_dis_option): New "hwr-names" option which sets mips_hwr_names, and adjust "reg-names=ARCH" to set mips_hwr_names. (print_insn_arg): Change return type to "int" and use that to indicate number of characters consumed. Add support for "+" operand extension character, "+A", "+B", "+C", and "K" operands. (print_insn_mips): Adjust for changes to print_insn_arg. (print_mips_disassembler_options): Adjust for "hwr-names" addition and "reg-names" change. * mips-opc (I33): New define (shorthand for INSN_ISA32R2). (mips_builtin_opcodes): Note that "nop" and "ssnop" are special forms of "sll". Add new MIPS32 Release 2 instructions: ehb, di, ei, ext, ins, jr.hb, jalr.hb, mfhc1, mfhc2, mthc1, mthc2, rdhwr, rdpgpr, seb, seh, synci, wrpgpr, wsbh. Note that hardware rotate instructions (ror, rorv) can be used on MIPS32 Release 2, and add the official mnemonics for them (rotr, rotrv) and the similar "rotl" mnemonic for left-rotate.
2002-12-30Add support for msp430.Nick Clifton14-175/+2104
2002-12-272002-12-27 Chris Demetriou <cgd@broadcom.com>Chris Demetriou22-66/+596
* gas/mips/mips.exp: Define the notion of an "architecture data array," add comments indicating how to add a new architecture and suggestions for adding new tests. Populate the architecture data array with many known architectures and convert many tests to be run for multiple architectures. (mips_arches): New global array. (mips_arch_create, mips_arch_list_all, mips_arch_data) (mips_arch_displayname, mips_arch_properties) (mips_arch_as_flags, mips_arch_objdump_flags, mips_arch_matches) (mips_arch_list_matching): New functions to operate on mips_arches. (run_dump_test_arch, run_dump_test_arches, run_list_test_arch) (run_list_test_arches): New functions. (run_list_test): Document and add an optional "test name" argument. * gas/mips/abs.d: Remove CPU-specific assembler and objdump flags, and CPU names from test names. * gas/mips/add.d: Likewise. * gas/mips/and.d: Likewise. * gas/mips/dli.d: Likewise. * gas/mips/jal-empic-elf-2.d: Likewise. * gas/mips/jal-empic-elf-3.d: Likewise. * gas/mips/jal-empic-elf.d: Likewise. * gas/mips/lb-svr4pic.d: Likewise. * gas/mips/lb.d: Likewise. * gas/mips/mips32.d: Likewise. * gas/mips/mips4.d: Likewise. * gas/mips/mips64.d: Likewise. * gas/mips/rol-hw.d: Likewise. * gas/mips/rol.d: Likewise. * gas/mips/rol64-hw.d: Likewise. * gas/mips/rol64.d: Likewise. * gas/mips/elf-jal.d: Likewise. Also, indicate ELF in test name. * gas/mips/mips64-mdmx.d: Tweak printed name to indicate that this test uses the -mdmx flag. * gas/mips/mips64-mips3d.d: Tweak printed name to indicate that this test uses the -mips3d flag. * gas/mips/mips64-mips3d-incl.d: New file.
2002-12-27[ binutils/ChangeLog ]Chris Demetriou17-0/+672
2002-12-27 Chris Demetriou <cgd@broadcom.com> * doc/binutils.texi (objdump): Document MIPS -M options. [ gas/testsuite/ChangeLog ] 2002-12-27 Chris Demetriou <cgd@broadcom.com> * gas/mips/cp0-names-mips32.d: New file. * gas/mips/cp0-names-mips64.d: New file. * gas/mips/cp0-names-numeric.d: New file. * gas/mips/cp0-names-sb1.d: New file. * gas/mips/cp0-names.s: New file. * gas/mips/fpr-names-32.d: New file. * gas/mips/fpr-names-64.d: New file. * gas/mips/fpr-names-n32.d: New file. * gas/mips/fpr-names-numeric.d: New file. * gas/mips/fpr-names.s: New file. * gas/mips/gpr-names-32.d: New file. * gas/mips/gpr-names-64.d: New file. * gas/mips/gpr-names-n32.d: New file. * gas/mips/gpr-names-numeric.d: New file. * gas/mips/gpr-names.s: New file. * gas/mips/mips.exp: Run new tests. [ include/ChangeLog ] 2002-12-27 Chris Demetriou <cgd@broadcom.com> * dis-asm.h (print_mips_disassembler_options): Prototype. [ include/opcode/ChangeLog ] 2002-12-19 Chris Demetriou <cgd@broadcom.com> * mips.h (OP_OP_COP0, OP_OP_COP1, OP_OP_COP2, OP_OP_COP3) (OP_OP_LWC1, OP_OP_LWC2, OP_OP_LWC3, OP_OP_LDC1, OP_OP_LDC2) (OP_OP_LDC3, OP_OP_SWC1, OP_OP_SWC2, OP_OP_SWC3, OP_OP_SDC1) (OP_OP_SDC2, OP_OP_SDC3): Define. [ opcodes/ChangeLog ] 2002-12-27 Chris Demetriou <cgd@broadcom.com> * disassemble.c (disassembler_usage): Add invocation of print_mips_disassembler_options. * mips-dis.c (print_mips_disassembler_options) (set_default_mips_dis_options, parse_mips_dis_option) (parse_mips_dis_options, choose_abi_by_name, choose_arch_by_name) (choose_arch_by_number): New functions. (mips_abi_choice, mips_arch_choice): New structures. (mips32_reg_names, mips64_reg_names, reg_names): Remove. (mips_gpr_names_numeric, mips_gpr_names_oldabi) (mips_gpr_names_newabi, mips_fpr_names_numeric) (mips_fpr_names_32, mips_fpr_names_n32, mips_fpr_names_64) (mips_cp0_names_numeric, mips_cp0_names_mips3264) (mips_cp0_names_sb1, mips_abi_choices, mips_arch_choices) (mips_processor, mips_isa, mips_gpr_names, mips_fpr_names) (mips_cp0_names): New variables. (print_insn_args): Use new variables to print GPR, FPR, and CP0 register names. (mips_isa_type): Remove. (print_insn_mips): Remove ISA and CPU setup since it is now done... (_print_insn_mips): Here. Remove register setup code, and call set_default_mips_dis_options and parse_mips_dis_options instead. (print_mips16_insn_arg): Use mips_gpr_names instead of mips32_names.
2002-12-25* dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.Alexandre Oliva4-2/+23
(dwarf2_finish): Use it. * doc/internals.texi (DWARF2_ADDR_SIZE): Document it. * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2002-12-212002-12-20 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-6/+27
* lib/gas-defs.exp (run_dump_test): Add a new optional argument, "extra_options".
2002-12-20* config/tc-xstormy16.c (md_cgen_lookup_reloc): SupportDJ Delorie2-1/+9
BFD_RELOC_XSTORMY16_12.
2002-12-20* gas/xstormy16/allinsn.sh: Add tests for 12-bit reloc.DJ Delorie4-0/+244
* gas/xstormy16/allinsn.s: Likewise. * gas/xstormy16/allinsn.d: Likewise.
2002-12-19 * doc/as.texinfo (Invoking): Typo fix.Alan Modra3-2/+7
* config/tc-tic54x.c (encode_operand): Comment typo fix.
2002-12-19 * doc/c-alpha.texi: Fix typos.Kazu Hirata17-27/+46
* doc/c-arm.texi: Likewise. * doc/c-d10v.texi: Likewise. * doc/c-i370.texi: Likewise. * doc/c-i960.texi: Likewise. * doc/c-ia64.texi: Likewise. * doc/c-mmix.texi: Likewise. * doc/c-ns32k.texi: Likewise. * doc/c-pdp11.texi: Likewise. * doc/c-pj.texi: Likewise. * doc/c-sh64.texi: Likewise. * doc/c-sparc.texi: Likewise. * doc/c-tic54x.texi: Likewise. * doc/c-v850.texi: Likewise. * doc/c-vax.texi: Likewise. * doc/internals.texi: Likewise.
2002-12-18[ opcodes/ChangeLog ]Chris Demetriou14-52/+333
2002-12-18 Chris Demetriou <cgd@broadcom.com> * mips-opc.c (mips_builtin_opcodes): Remove one "ror" and two "dror" entries, and reorder the remaining "dror" and "ror" entries. [ gas/ChangeLog ] 2002-12-18 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR, use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I, M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and arrange not to issue warnings about use of AT when AT is not actually used. [ gas/testsuite/ChangeLog ] 2002-12-18 Chris Demetriou <cgd@broadcom.com> * gas/mips/rol.s: Add ".set noat" and some new instructions to test. * gas/mips/rol64.s: Likewise. * gas/mips/rol.l: New file. * gas/mips/rol.d: Adjust to use rol.l and for rol.s changes. * gas/mips/rol64.l: New file. * gas/mips/rol64.d: Adjust to use rol64.l and for rol64.s changes. * gas/mips/rol-hw.d: New file. * gas/mips/rol-hw.l: New file. * gas/mips/rol64-hw.d: New file. * gas/mips/rol64-hw.l: New file. * gas/mips/mips.exp: Run rol-hw and rol64-hw tests.
2002-12-18kill bogus line between the last 2 entriesChris Demetriou1-1/+0
2002-12-17Duplicate --keep-locals entry in order to prevent it being confused with -k.Nick Clifton2-0/+9
2002-12-17* config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocationDJ Delorie2-0/+8
has already been set up, use it.
2002-12-17 * ChangeLog-9295: Fix a typo.Kazu Hirata15-15/+32
* README: Likewise. * config/tc-d10v.c: Fix a comment typo. * config/tc-dlx.c: Likewise. * config/tc-h8300.h: Likewise. * config/tc-h8500.h: Likewise. * config/tc-mips.c: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.h: Likewise. * config/tc-tic80.h: Likewise. * config/tc-w65.h: Likewise. * config/tc-z8k.c: Likewise. * config/tc-z8k.h: Likewise. * testsuite/gas/h8300/cmpsi2.s: Likewise.
2002-12-16 * config/tc-d30v.c (check_range): Warning fixes, formatting.Alan Modra4-12/+18
Simplify sign extension. Remove redundant unsigned < 0 test. * config/tc-i960.c (md_ri_to_chars): Prototype. * config/tc-mcore.c (md_pseudo_table): Fix typo. (dump_literals): Init brarsym, and test later instead of isforce.
2002-12-16 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.Alan Modra2-8/+20
(parse): Constify line and lineptr. (md_begin): Calculate endop here.
2002-12-13 * config/obj-vms.c: Formatting. Include fnctl.h.Alan Modra2-85/+165
(Create_VMS_Object_File): Fix creat call for sane unix systems. (Object_Record_Offset): Make it a size_t. (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning. (VMS_TBT_Routine_End <Size>): Make var unsigned long. (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT. (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED. (vms_fixup_data_section <data_size>): Add here instead. * config/e-criself.c: Fix typo in last change.
2002-12-12 * config/e-criself.c: Fix typo in last change.Alan Modra2-3/+7
2002-12-12 * write.c (write_object_file): Fix signed/unsigned warning.Alan Modra9-67/+33
* config/e-crisaout.c (crisaout_bfd_name): Prototype. * config/e-criself.c (criself_bfd_name): Prototype. * config/obj-aout.c (s_sect): Remove unused function. * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED. * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF. (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED. * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise. * config/obj-vms.c (setup_basic_type <spnt>): Likewise. (VMS_RSYM_Parse <Current_Routine>): Likewise. (vms_fixup_text_section <text_siz>): Likewise. (synthesize_data_segment <data_size>): Likewise. (vms_fixup_xtors_section <sect_no>): Likewise. (structure_count): Don't use implicit int type.
2002-12-12 * config/tc-a29k.c (insert_sreg): Prototype.Alan Modra3-14/+29
(define_some_regs): Prototype, make static. (parse_operand): Likewise. (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED. (md_show_usage <stream>): Likewise. (md_section_align <segment>): Likewise. (md_convert_frag <all args>): Likewise. (md_estimate_size_before_relax <all args>): Likewise. (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s. * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2002-12-12 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.Alan Modra2-14/+24
(md_undefined_symbol <name>): Likewise. (md_convert_frag <all args>): Likewise. (write_long <opcode>): Likewise. (tc_gen_reloc <seg>): Likewise. (md_estimate_size_before_relax <all args>): Likewise. (md_apply_fix3 <seg>): Likewise. (s_d30v_align <ignore>): Likewise. (build_insn): Correct format string. (md_apply_fix3): Likewise.
2002-12-12 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.Alan Modra2-17/+27
(md_undefined_symbol <name>): Likewise. (md_convert_frag <all args>): Likewise. (md_cgen_lookup_reloc <insn>): Likewise. (md_begin): Delete unused vars. (md_assemble): Likewise. (md_estimate_size_before_relax): Likewise. (fr30_relax_frag): #if 0 out, seems unused. (md_atof): Remove declaration of atof_ieee. (restore_colon): Prototype.
2002-12-12 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.Alan Modra2-3/+22
(frv_find_in_vliw): Likewise. (frv_debug_tomcat): Likewise. (frv_adjust_vliw_count): Likewise. (frv_tomcat_shuffle): Likewise. (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to frv_find_in_vliw call. (md_atof): Remove declaration of atof_ieee.
2002-12-12 * h8500-opc.h (h8500_table): Add missing initializers to quietAlan Modra3-31/+73
warnings. * config/tc-h8500.c (cons): Delete declaration. (md_begin <opcode>): Constify. (displacement_size, immediate_size, absolute_size): Remove. (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED. (tc_crawl_symbol_chain <headers>): Likewise. (md_undefined_symbol <name>): Likewise. (tc_headers_hook <headers>): Likewise. (md_parse_option <c,arg>): Likewise. (md_show_usage <stream>): Likewise. (md_convert_frag <headers, seg>): Likewise. (tc_coff_symbol_emit_hook <ignore>): Likewise. (md_atof): Remove declaration of atof_ieee. (tc_aout_fix_to_chars): Remove unused function. (parse_reg): Prototype. (parse_exp): Prototype. (skip_colonthing): Prototype. Use &&, not & in logical expressions. (parse_reglist): Prototype. (get_operand): Prototype. (get_operands): Prototype. (get_specific): Prototype. Make "this_index" signed. (check): Prototype, make static. (insert): Prototype (build_relaxable_instruction): Prototype, make static. (build_bytes): Prototype. (wordify_scb): Prototype. * config/tc-h8500.h (start_label): Declare. (tc_coff_sizemachdep): Declare.
2002-12-12 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.Alan Modra2-21/+43
(i370_rmode <unused>): Likewise. (i370_csect <unused>): Likewise. (i370_dc <unused>): Likewise. (i370_ds <unused>): Likewise. (i370_elf_lcomm <unused>): Likewise. (i370_ltorg <ignore>): Likewise. (i370_using <ignore>): Likewise. (i370_drop <ignore>): Likewise. (i370_byte <ignore>): Likewise. (i370_tc <ignore>): Likewise. (md_estimate_size_before_relax <fragp, seg>): Likewise. (md_convert_frag <all args>): Likewise. (md_undefined_symbol <name>): Likewise. (md_pcrel_from_section <sec>): Likewise. (tc_gen_reloc <seg>): Likewise. (i370_section_letter): #if 0 unused functions. (i370_section_word, i370_section_type, i370_section_flags): Likewise. (symbol_locate): Prototype.
2002-12-12 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.Alan Modra2-22/+4
(md_number_to_disp, md_number_to_field): Remove. (md_apply_fix3): Correct format string and cast "fup".
2002-12-12 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.Alan Modra2-91/+117
(s_endian <ignore>): Likewise. (md_undefined_symbol <name>): Likewise. (tc_crawl_symbol_chain <headers>): Likewise. (tc_set_bal_of_call): Likewise. (tc_coff_symbol_emit_hook <symbolP>): Likewise. (i960_handle_align <fragp>): Likewise. (i960_validate_fix <this_segment_type>): Likewise (tc_gen_reloc <section>): Likewise. (tc_coff_symbol_emit_hook): Only define for OBJ_COFF. (struct memS, struct regop): Forward declare. (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args, get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb, parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop, reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax, targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype. (md_chars_to_number, md_number_to_imm): Make static, prototype. (md_number_to_field): Likewise. (md_number_to_disp): Remove unused function. (md_atof): Remove declaration of atof_ieee. (md_apply_fix3): Correct md_number_to_imm call.
2002-12-12 * config/tc-ip2k.c (md_assemble): Warning fix.Alan Modra2-6/+8
2002-12-12 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.Alan Modra3-11/+51
(fill_insn <ignore>): Likewise. (debug_sym <ignore>): Likewise. (md_undefined_symbol <name>): Likewise. (m32r_scomm <ignore>): Likewise. (md_convert_frag <abfd>): Likewise. (md_cgen_lookup_reloc <insn>): Likewise. (m32r_record_hi16 <seg>): Likewise. (md_estimate_size_before_relax): #if 0 old_fr_fix. (allow_m32rx): Prototype. (first_writes_to_seconds_operands): Prototype. (writes_to_pc): Prototype. (can_make_parallel): Prototype. (make_parallel): Prototype. (target_make_parallel): Prototype. (assemble_two_insns): Prototype. (m32r_record_hi16): Prototype. (md_atof): Remove declaration of atof_ieee. * config/tc-m32r.h (m32r_fix_adjustable): Declare. (m32r_force_relocation): Prototype. (m32r_elf_section_change_hook): Prototype.
2002-12-12 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.Alan Modra2-2/+5
(md_show_usage): Fix signed/unsigned warning.
2002-12-12 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.Alan Modra2-27/+16
(calcop): Ditto for reg_prefix var. (hexval): Add cast to fix signed/unsigned warning. (md_number_to_disp): Delete unused function. (md_number_to_field): Likewise. (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl. (match_name): Prototype. (get_bf2): Prototype. (get_bf_offset_expression): Prototype.
2002-12-12 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.Alan Modra3-40/+52
(md_undefined_symbol <ignore>): Likewise. (md_create_short_jump <all args>): Likewise. (md_create_long_jump <all args>): Likewise. (md_convert_frag <abfd, sec>): Likewise. (md_apply_fix3 <segment>): Likewise. (md_section_align <segment>): Likewise. (md_pcrel_from_section <sec>): Likewise. (tc_gen_reloc <section>): Likewise. (reg_m, reg_n, immediate): Delete unused vars. (dump_literals): Fix signed/unsigned warning. (enter_literal): Likewise. (parse_imm): Likewise. Also fix format string. (parse_mem): Remove unused var. (md_assemble <LS>): Abort on unexpected inst. (md_atof): Remove declaration of atof_ieee. (md_parse_option): Remove unused vars. (md_apply_fix3): Fix format strings, cast args. (tc_gen_reloc): Delete unused var. * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2002-12-12 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.Alan Modra2-30/+20
(md_undefined_symbol <name>): Likewise. (md_convert_frag <abfd>): Likewise. (tc_gen_reloc <seg>): Likewise. (check_operand <insn>): Likewise. (md_convert_frag): Fix format strings. (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2002-12-12 * config/tc-openrisc.c (ignore_pseudo): Prototype.Alan Modra3-9/+11
(md_atof): Remove declaration of atof_ieee. * config/tc-or32.c (parse_operand): Prototype non-BFD too. (md_apply_fix3): Fix bogus >>='s. (md_undefined_symbol): Delete unused var.
2002-12-12 * pj.h (pj_opc_info_t): Add union.Alan Modra2-11/+36
* pj-dis.c (print_insn_pj): Adjust for pj_opc_info_t change. * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype. (c_to_r, ipush_code, fake_opcode, alias): Likewise. (fake_opcode): Adjust for pj_opc_int_t change. (md_begin): Likewise. (md_assemble): Likewise. (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc instead of non-existent third arg of parse_exp_save_ilp. (md_parse_option): Correct "little" and "big" calls.
2002-12-12 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.Alan Modra2-2/+7
(md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED. (tc_gen_reloc <section>): Likewise.
2002-12-12 * config/tc-tic30.c: #include stdarg.h or varargs.h.Alan Modra5-97/+100
(debug): Rewrite using VA_* macros. (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args. (md_convert_frag): Likewise. (md_parse_option): Likewise. (md_show_usage): Likewise. (md_undefined_symbol): Likewise. (tc_gen_reloc): Likewise. (md_operand): Likewise. (tc_aout_pre_write_hook): Delete. (struct tic30_insn): Make "operands" unsigned. (struct tic30_par_insn): Likewise. (md_assemble): Likewise for "count", "i" and "numops". (tic30_parallel_insn): Likewise for vars here. (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison. * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty. * config/tc-tic80.c (obj_coff_section): Delete declaration. (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args. (md_undefined_symbol): Likewise. (md_parse_option): Likewise. (md_convert_frag): Likewise. (tc_coff_symbol_emit_hook): Likewise. (md_atof): Remove declaration of atof_ieee. (const_overflow): Warning fixes, tidy. (get_operands): Delete unused vars. (internal_error_a): Adjust format string to expect a long for arg. (find_opcode): Warning fixes, simplify. (build_insn): Cast internal_error_a arg. (md_begin): Likewise. (md_apply_fix3): Likewise. (md_assemble): Delete unused var. * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2002-12-12 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.Alan Modra2-39/+71
(whatreg, parse_reg, parse_exp): Make static, prototype. (checkfor, regword, regaddr, get_ctrl_operand): Prototype. (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise. (get_operand, get_operands, get_specific, newfix): Likewise. (apply_fix, build_bytes): Likewise. (md_atof): Remove declaration of atof_ieee. (tc_aout_fix_to_chars): Delete. (md_begin): Constify "opcode". Don't try to init opcode->idx. Fix s_unseg call. (md_parse_option): Fix s_segm and s_unseg calls. * z8kgen.c: Include "libiberty.h". (opt, args, toks): Fix initializer warnings. (chewname): Make "name" a char **. Return mnemonic trimmed of operands. (gas): Improve emitted "DO NOT EDIT" warning. Format emitted opcode_entry_type, and make "nicename" and "name" const. Make z8k_table const too. Formatting. Generate idx as gas needs it. * z8k-opc.h: Regenerate.
2002-12-12* gas/mips/beq.d: Comment out branches to undefined symbols,Alexandre Oliva15-122/+122
no longer supported. * gas/mips/beq.s: Likewise. * gas/mips/bge.d: Likewise. * gas/mips/bge.s: Likewise. * gas/mips/bgeu.d: Likewise. * gas/mips/bgeu.s: Likewise. * gas/mips/blt.d: Likewise. * gas/mips/blt.s: Likewise. * gas/mips/bltu.d: Likewise. * gas/mips/bltu.s: Likewise. * gas/mips/mips.exp: Change branch-misc-2 test to run_list_test. * gas/mips/branch-misc-2.d: Removed. * gas/mips/branch-misc-2.s: Added branches to undefined symbols. * gas/mips/branch-misc-2.l: New.
2002-12-12* tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.Alexandre Oliva2-43/+28
Adjust callers. (RELAX_BRANCH_RELOC_S2): Delete. (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches. Do not handle BFD_RELOC_16_PCREL. (macro_build, mips_ip): Likewise. (md_pcrel_from): Return 4 for undefined symbols regardless of mips_pic. (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches. Don't dereference howto if no such relocation is available. Do not apply hack for in-place zero addend in NEWABI. (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.