X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gas%2FChangeLog;h=a026f92c4fdfd609eb68cf76667576ecb26e7043;hb=167795c45257ffcd940985513321496028f5fc00;hp=c98b409e66dfbe2a8b3563990a5ccf584fb041dc;hpb=b95d15c6c551abb0b3acba440e94013a3318f424;p=binutils-gdb.git diff --git a/gas/ChangeLog b/gas/ChangeLog index c98b409e66d..a026f92c4fd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,574 @@ +2002-12-13 Alan Modra + + * config/tc-tic30.c: #include stdarg.h or varargs.h. + (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. + * config/tc-z8k.c (cons, obj_coff_section): Delete declarations. + (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. + +2002-12-12 Alexandre Oliva + + * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument. + 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. + +2002-12-12 Alexandre Oliva , + Alan Modra + + * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define. + (TC_LINKRELAX_FIXUP): Add comments. + +2002-12-12 Alexandre Oliva + + * config/tc-mn10300.c (set_arch_mach): Change argument type to + avoid warnings. + (r_register_name, xr_register_name): Add prototype declarations. + +2002-12-08 H.J. Lu + + * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack + copied from tc-i386.c. + +2002-12-08 Stephane Carrez + + Fix Bug savannah/1825: + * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code. + (md_relax_table): Define specific relax for PC-rel offsets. + (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code. + (m68hc11_relax_frag): Handle the new relax code. + (md_convert_frag): Likewise. + (md_estimate_size_before_relax): Likewise. + +2002-12-08 Alan Modra + + * subsegs.c (section_symbol): Use the symbol, not the section, name. + +2002-12-05 Richard Henderson + + * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X. + (ia64_gen_real_reloc_type): Handle it. + (pseudo_func): Add @ltoffx. + (md_begin): Build .. + (ia64_force_relocation): True for LTOFF22X and LDXMOV. + +2002-12-05 Alan Modra + + * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF. + Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles + ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF. + * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and + COFF to call arm_force_relocation. + +2002-12-04 David Mosberger + + * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint" + instruction. + (emit_one_bundle): Handle "hint" instruction. + (operand_match): Match IA64_OPND_AR_CSD. + +2002-12-04 Alan Modra + + * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype + inside #if. + +2002-12-03 Nick Clifton + + * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on + .PPC.EMB.apuinfo sections. + +2002-12-03 Richard Henderson + + * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case. + +2002-12-03 Alan Modra + + * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg. + (cons, s_align_bytes): Delete declaration. + (relax): Delete. + (md_begin): Constify "struct opinfo *" var. Don't try to make "name" + strings common. + (dot): Delete unused function. + (w65_expression): Remove unused arg. + (parse_exp): Prototype. Remove unused arg. Adjust w65_expression + call. + (get_operands): Prototype. Constify "struct opinfo *" arg. Fix + parse_exp call. + (get_specific): Prototype. Constify "struct opinfo *" arg and return + value. + (check): Remove unused function. + (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort + on unhandled switch case. + (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify + "opcode". + (tc_crawl_symbol_chain): Delete unused function. + (tc_headers_hook): Likewise. + (tc_Nout_fix_to_chars): Likewise. + (md_undefined_symbol): Add ATTRIBUTE_UNUSED. + (md_parse_option): Likewise. + (md_convert_frag): Likewise. + (tc_coff_symbol_emit_hook): Likewise. + (md_show_usage): Likewise. + * config/tc-w65.h (tc_coff_sizemachdep): Declare. + (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg. + (w65_expression): Declare. + + * po/POTFILES.in: Regenerate. + + * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE + and ARM_ADRL_IMMEDIATE. + +2002-12-02 Nick Clifton + + * gasp.c: Delete. It has been deprecated. + * NEWS: Mention that gasp has been removed. + * Makefile.am: Remove references to gasp. + * makefile.vms: Likewise. + * mpw-make.sed: Likewise. + * Makeile.in: Regenerate. + * doc/gasp.texi: Delete. + * doc/Makefile.am: Remove references to gasp.texi. + * doc/Makefile.in: Regenerate. + * macro.c: Delete references to gasp. + Remove use of comment_char function parameter as it is no longer + needed. + * macro.h: Update prototypes to remove comment_char parameter. + Fix formatting. + * read.c (read_a_source_file, s_irp): Remove comment_char + parameter from invocation of functions in macro.c + +2002-12-02 Hans-Peter Nilsson + + * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump. + +2002-12-01 Stephane Carrez + + * config/tc-m68hc11.c (md_begin): Fix qsort warning. + (tc_gen_reloc): Mark section param as not used. + +2002-12-01 Stephane Carrez + + Fix Bug savannah/1825: + * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations + that are not pc-relative. + (m68hc11_relax_frag): Declare. + + * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle + the offsetable indexed addressing modes (n,r). + (build_insn): Cleanup some locals. + (m68hc11_relax_frag): New function imported from tc-cris.c to handle + relaxation of difference between two symbols of same section. + (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement + only when this is a PC-relative operand and the offset is not absolute. + (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag + to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will + be handled by m68hc11_relax_frag. + +2002-12-01 Stephane Carrez + + * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default + (32-bit int, 64-bit double). + (md_longopts): New options -mshort, -mlong, -mshort-double and + -mlong-double to control the ABI. + (md_show_usage): Update. + (md_parse_option): Handle new options. + * doc/as.texinfo (Overview): Document new options for HC11/HC12. + +2002-12-01 Nathan Sidwell + + * symbols.c (report_op_error): New function, broken out of ... + (resolve_symbol_value): ... here. Use for both monadic and dyadic + operators. + +2002-11-30 Kaz Kojima + + * config/tc-sh.c (md_apply_fix3): Take account of fx_offset + for BFD_RELOC_32_PLT_PCREL. + +2002-11-30 Alan Modra + + * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c, + config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c, + config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.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.c, config/tc-fr30.h, + config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c, + config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c, + config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h, + config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c, + config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c, + config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c, + config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c, + config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c, + config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with + TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with + TRUE/FALSE. Formatting. + +2002-11-29 Nick Clifton + + * config/tc-arm.c (do_t_bkpt): If no operand is specified, + assume a value of zero. + (do_bkpt): Likewise. + +2002-11-29 Kaz Kojima + + * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL + for TLS relocations. + +2002-11-29 Jakub Jelinek + + * config/tc-ia64.c (md_apply_fix3): Add default case. + +2002-11-28 Jakub Jelinek + + * symbols.c (S_SET_THREAD_LOCAL): New function. + * symbols.h (S_SET_THREAD_LOCAL): New prototype. + * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL + for TLS relocations. + * config/tc-ia64.c (md_apply_fix3): Likewise. + * config/tc-alpha.c (md_apply_fix3): Likewise. + +2002-11-28 Jakub Jelinek + + * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment + to entsize. + +2002-11-26 DJ Delorie + + * config/tc-cris.c (cris_relax_frag): Fix typo in comment. + (md_assemble): Don't pass on branches to constants as relaxable. + Tweak comment. + +2002-11-25 Svein E. Seldal + + * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode + +2002-11-21 Randolph Chung + + * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols + only if they have default visibility. + +2002-11-21 Richard Henderson + + * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant + S_IS_DEFINED test. + +2002-11-21 Alan Modra + + * config/tc-mcore.c (mcore_pool_count): New function. + (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it. + +2002-11-20 Klee Dienes + + * config/tc-mcore.c (md_begin): Use a const iterator. Don't + coalesce the name fields to use the same pointer. + + * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce + the name fields to use the same pointer. + (get_specific): Check for opcodes with the same name using strcmp + as well as comparing the pointer. + +2002-11-20 Alan Modra + + * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with + fx_subsy non-NULL. + +2002-11-19 Richard Henderson + + * config/obj-elf.c (obj_elf_visibility): Overwrite only the + visibility portion of st_other. + +2002-11-19 Klee Dienes + + * config/tc-h8300.c (struct h8_instruction): New type, used to + wrap h8_opcodes with length, noperands, idx, and size fields + (computed at run-time). + (h8_instructions): New variable. + (md_begin): Allocate the storage for h8_instructions. Fill + h8_instructions with pointers to the appropriate opcode and the + correct value for the additional fields. + (clever_message): Update to use h8_instructions instead of + h8_opcodes. + (build_bytes): Ditto. + (get_specific): Ditto. + (md_assemble): Ditto. + +2002-11-19 Martin Schwidefsky + + * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent + adjustments to symbols in merge sections. + +2002-11-19 Luke Deller + + * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL. + +2002-11-18 Kevin Buettner + + * dwarf2dbg.h (dwarf2_format): New enum. + * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition. + (out_debug_line, out_debug_info): Add code for handling 64-bit + DWARF 2 formats. + * config/tc-mips.h (mips_dwarf2_format): Declare. + * config/tc-mips.c (mips_dwarf2_format): New function. + * doc/internals.texi (DWARF2_FORMAT): Document. + +2002-11-18 Alexandre Oliva + + * config/tc-mips.c (s_change_section): Make sure input buffer + is not accessed past the end. Don't hand + obj_elf_change_section a pointer into the input buffer. + +2002-11-18 Alexandre Oliva , Chris Demetriou + + * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of + GOT_LO16 on NEWABI. + +2002-11-18 Svein E. Seldal + + * config/tc-tic4x.c: Fixed proper commandline + parameters. Added support for new opcode-list format. General + error message fixups. + (c4x_inst_add): Reject insn not for our CPU + (md_begin): Added matrix for setting the proper opcode-level & + device-flags according to cpu type and revision. Rewrite the + opcode hasher. + (c4x_operand_parse): Fix opcode bug + (c4x_operands_match): New function argument. Added dry-run + mechanism, that is optional error generation. Added constraint 'i' + and 'j'. + (c4x_insn_check): Added new function for post-verification of the + generated insn. + (md_assemble): Check all opcodes before croaking because of an + argument mismatch. Need this to be able to fully support + ortogonally arguments. + (md_parse_options): Revised commandprompt swicthes and added new + ones. + (md_show_usage): Complete rewrite of printout. + +2002-11-16 Svein E. Seldal + + * config/tc-tic4x.c: Remove c4x_pseudo_ignore function. + (c4x_operands_match): Added check for 8-bits LDF insn. Give + warning when using constant direct bigger than 2^16. Add the new + arguments. + +2002-11-11 Christopher Faylor + + * configure.in: Use .gdbinit under Cygwin. + * configure: Regenerate. + +2002-11-11 Christopher Faylor + + * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if + STRICT_PE_FORMAT. + +2002-11-11 Svein E. Seldal + + * config/tc-tic4x.c: Declare as many functions as possible as + static. Maintenance on the general indenting. Removed unnecessary + pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore + function. Add support for new DSP, TMS320VC33. Fix bug for + converting flonum constants. + (c4x_do_align): Add proper align handling. Setup align to insert + NOP's. + (c4x_gen_to_words): Support for extended TI type floats. + (md_atof): Proper dumping of multiple-word littlenums. + (c4x_atof): Added support for extended TI type floats. + (c4x_stringer): Added new function to handle compact strings. + (c4x_emit_char): Added new function argument to handle custom + length inserts, like single-byte strings. + * config/tc-tic4x.h: Add proper align handling with NOP's. + * Makefile.am: Added tic4x dependecy + * Makefile.in: Regenerate + +2002-11-11 Hans-Peter Nilsson + + * macro.c (get_any_string): Correct logic for not going beyond end + of in->ptr[]. + +2002-11-10 Hans-Peter Nilsson + + * config/tc-mmix.c (get_putget_operands): Mark both possible + operands as invalid at beginning. + + * config/tc-mmix.c (md_convert_frag) : + Initialize target of fixup to zero. + +2002-11-07 Alexandre Oliva + + * config/tc-mips.c (macro_build_lui): _gp_disp is not special on + NEWABI, but we should still emit HI16_S for non-PIC n32. + +2002-11-06 Richard Henderson + + * config/tc-alpha.c (alpha_validate_fix): Move code ... + (alpha_fix_adjustable): ... here. + * config/tc-alpha.h (TC_VALIDATE_FIX): Remove. + +2002-11-07 Eric Kohl + + * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character + of a label. + +2002-11-05 H.J. Lu + + * config/tc-mips.c (support_64bit_objects): Check *l before it + is freed. + +2002-11-04 Danny Smith + + * config/obj-coff.c (obj-coff-section): Set SEC_DATA and + SEC_LOAD flags for sections marked as 's'. + +2002-11-01 Alan Modra + + * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero. + (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK. + * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed + default. + + * dep-in.sed: Fix typo. + +2002-10-30 Daniel Jacobowitz + + * configure.in: Update ARM CPU patterns. + * configure: Regenerated. + +2002-10-29 Daniel Jacobowitz + + * itbl-lex.l: Use #include <> for generated headers. + * itbl-ops.c: Likewise. + +2002-10-28 Daniel Jacobowitz + + * doc/gasp.texi: Fix typo in deprecation note. + +2002-10-23 Nick Clifton + + * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to + _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc. + +2002-10-23 Hans-Peter Nilsson + + * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare. + (tc_frob_file_before_adjust): Don't define. + * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused + function. + (mmix_frob_file_before_adjust): Remove ineffective function. + +2002-10-23 Hans-Peter Nilsson + + * config/tc-cris.c (SIMPLE_EXPR): New macro. + (cris_relax_frag): New function. + (md_estimate_size_before_relax) : Pass on unresolved + expressions that will become absolute expressions to relaxation. + (md_convert_frag) : Expect only absolute expressions. Use the symbol + value, not distance to symbol. + : + Ditto. Correct placement of fixup. + (md_assemble): Use SIMPLE_EXPR when dissecting expressions. + (gen_bdap): Ditto. + * config/tc-cris.h (cris_relax_frag): Declare. + (md_relax_frag): Define. + +2002-10-22 Alan Modra + + * config/obj-elf.c (special_sections): Use correct types for init + array sections. + (obj_elf_change_section): Don't mess with init array section type. + +2002-10-21 Richard Sandiford + + * config/tc-mips.c (mips_need_elf_addend_fixup): Return true + for relocs against symbols in a merged section. + +2002-10-18 Alexandre Oliva + + * config/tc-mips.c (md_begin): Add $fcc registers to the symbol + table as register names. + +2002-10-18 Ulrich Weigand + + * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32 + for option -m31. + +2002-10-18 Svein E. Seldal + + * expr.c (operand): Add support for n.nn flonums. + +2002-10-17 Johannes Stezenbach + + * itbl-parse.y (entry): Provide empty action. + +2002-10-16 Alan Modra + + * configure.in (BFDVER_H): Set and subst. + * dep-in.sed: Replace bfdver.h with $(BFDVER_H). + * Makefile.am: Run "make dep-am". + (BFDVER_H): Define. + * configure: Regenerate. + * Makefile.in: Regenerate. + * doc/Makefile.in: Regenerate. + +2002-10-15 Alan Modra + + * config/tc-i386.h (EXTERN_FORCE_RELOC): Define. + (MD_APPLY_SYM_VALUE): Define for PE too. + 2002-10-14 Alan Modra * Makefile.am: Run "make dep-am". @@ -1004,9 +1575,6 @@ Thu Oct 10 14:31:30 2002 J"orn Rennecke (output_imm): Added arguments. Compute properly addend for R_386_GOTPC. (md_apply_fix3): Remove R_386_GOTPC handling. - * testsuite/gas/i386/gotpc.s: New. - * testsuite/gas/i386/gotpc.d: New. - * testsuite/gas/i386/i386.exp: Add gotpc test. 2002-08-06 George France @@ -1588,9 +2156,6 @@ Thu Oct 10 14:31:30 2002 J"orn Rennecke * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again, but warn about it. - * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc). - * testsuite/gas/sh/pcrel.d: Update. - * testsuite/gas/sh/pcrel.l: New file. 2002-06-06 Daniel Jacobowitz @@ -1880,16 +2445,6 @@ Thu Oct 10 14:31:30 2002 J"orn Rennecke (md_begin): Support TLS operators. (md_operand): Likewise. (ia64_gen_real_reloc_type): Support TLS relocs. - * testsuite/gas/i386/tlspic.s: New file. - * testsuite/gas/i386/tlsd.s: New file. - * testsuite/gas/i386/tlsnopic.s: New file. - * testsuite/gas/i386/tlsd.d: New file. - * testsuite/gas/i386/tlsnopic.d: New file. - * testsuite/gas/i386/tlspic.d: New file. - * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests. - * testsuite/gas/ia64/tls.s: New file. - * testsuite/gas/ia64/tls.d: New file. - * testsuite/gas/ia64/ia64.exp: Add tls test. * write.c (adjust_reloc_syms): Don't change symbols in SEC_THREAD_LOCAL sections to STT_SECTION + addend.