* dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
[binutils-gdb.git] / gas / ChangeLog
index 9955a551edfa1028e282db5eaf8b9135ade3aec4..cd2c1d6e7dcbb3d3321b3c42d4bb0a1b18c2993d 100644 (file)
@@ -1,3 +1,361 @@
+2003-06-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
+       (output_cie): Don't pad.
+       (output_fde): Add align argument.  Pad to align if not 0.
+       (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
+       Pad just last FDE to EH_FRAME_ALIGNMENT.
+
+2003-06-18  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * config/tc-s390.c (init_default_arch): Make current_mode_mask
+       dependent on s390_arch_size and current_cpu dependent on
+       current_mode_mask.
+
+2003-06-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
+
+       * configure.in: Add c4x as an architecture variant to tic4x.
+       * configure: Regenerate.
+       * Makefile.in: Regenerate.
+       * doc/Makefile.in: Regenerate.
+
+2003-06-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
+       ".TOC." from PPC64_TOC relocs.
+
+2003-06-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
+
+2003-06-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
+       ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
+       (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
+       s_cprestore,s_cpadd): Use them.
+
+2003-06-16  Hans-Peter Nilsson  <hp@axis.com>
+
+       * configure.in: Add specific case for cris-*-linux-gnu* with
+       em=linux.
+       * configure: Regenerate.
+       * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
+       if TE_LINUX defined, else FALSE.
+       (bfd_boolean demand_register_prefix): Set default from
+       DEFAULT_CRIS_AXIS_LINUX_GNU.
+       (symbols_have_leading_underscore): Similar.
+       * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
+
+2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
+
+       * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
+       (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
+       FPU_ARCH_FPA for AOUT.
+       (md_begin): Don't try to guess the floating point architecture from
+       the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
+
+2003-06-13  Robert Millan  <zeratul2@wanadoo.es>
+
+       * configure.in: Add i386-netbsd-gnu target.
+       * configure: Regenerate.
+
+2003-06-12  Tom Tromey  <tromey@redhat.com>
+
+       * doc/as.texinfo (Comm): Added @node.  Moved before CFI
+       directives node.
+
+2003-06-12  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/tc-mips.c (append_insn): In a compound relocation, take the
+       field width from the final (outermost) operator.
+
+2003-06-11  Richard Henderson  <rth@redhat.com>
+
+       * dw2gencfi.c (struct cfi_escape_data): New.
+       (cfi_add_CFA_nop): Remove.
+       (CFI_escape, dot_cfi_escape): New.
+       (dot_cfi): Remove nop.
+       (cfi_pseudo_table): Remove nop; add escape.
+       (output_cfi_insn): Likewise.
+       (select_cie_for_fde): Stop on escape.
+       * dw2gencfi.h (cfi_add_CFA_nop): Remove.
+       * read.c, read.h (do_parse_cons_expression): New.
+       * doc/as.texinfo (.cfi_escape): New.
+
+2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
+       (s_cprestore): Likewise.
+       (s_cpreturn): Likewise.
+
+2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
+       with zeros.
+
+2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
+       (md_apply_fix3): Ignore non-special relocations. Remove superfluous
+       exceptions from size assert. Remove most of the addend fixup
+       specialcasing. Remove value, use valP directly. simplify fx_addnumber
+       handling. Remove zero addend specialcases.
+       (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
+       the addend fixup specialcase.
+       * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
+
+2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * write.c (write_relocs): Use xcalloc. Fix relocs initialization
+       in the RELOC_EXPANSION_POSSIBLE case.
+
+2003-06-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-i960.c (line_comment_chars): Add '#'.
+       * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
+
+2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
+
+       * po/Make-in (DESTDIR): New.
+       (install-data-yes): Support $(DESTDIR).
+       (uninstall): Likewise.
+
+2003-06-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+       * po/POTFILES.in: Regenerate.
+
+2003-06-10  Doug Evans  <dje@sebabeach.org>
+
+       * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
+       CGEN_INSN_RELAXED.
+       * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
+       * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
+       * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
+
+2003-06-10  Alan Modra  <amodra@bigpond.net.au>
+           Gary Hade <garyhade@us.ibm.com>
+
+       * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
+       (md_apply_fix3): Special case lq insn.
+
+2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
+       lists.  Allow single-register ranges.
+
+2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/tc-h8300.c (h8300sxnmode): New.
+       (md_pseudo_table): Add .h8300sxn entry.
+
+2003-06-09  H.J. Lu <hongjiu.lu@intel.com>
+
+       * NEWS: Updated for the new -n option for the i386 assembler.
+
+       * config/tc-i386.c (optimize_align_code): New.
+       (md_shortopts): Add 'n'.
+       (md_parse_option): Handle 'n'.
+       (md_show_usage): Add '-n'.
+
+       * config/tc-i386.h (optimize_align_code): Declared.
+       (md_do_align): Optimize code alignment only if optimize_align_code
+       is not 0.
+
+       * doc/as.texinfo: Add the new -n option.
+
+       * doc/c-i386.texi: Document the new -n option.
+
+2003-06-07  Richard Henderson  <rth@redhat.com>
+
+       * doc/as.texinfo: Document .cfi_rel_offset.
+
+       * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
+       (cfi_add_CFA_offset): Detect invalid offsets.
+       (cfi_add_CFA_remember_state): Save cur_cfa_offset.
+       (cfi_add_CFA_restore_state): Restore it.
+       (CFI_rel_offset): New.
+       (cfi_pseudo_table): Add it.
+       (dot_cfi): Handle it.
+
+2003-06-07  H.J. Lu <hongjiu.lu@intel.com>
+
+       * app.c (do_scrub_chars): Add states 14 and 15 to handle
+       predicate for ia64.
+
+2003-06-05  Michael Snyder  <msnyder@redhat.com>
+
+       * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
+       (build_bytes): Ditto.
+
+2003-06-05  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/tc-h8sx.c (DMODE): Remove.
+       (colonmod24): Don't choose a default if the operand is a 16-bit
+       constant integer.
+       (fix_operand_size): New function.
+       (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
+       Adjust @(d:2,ERn) operands before choosing the specific opcodes.
+
+2003-06-05  Michal Ludvig  <mludvig@suse.cz>
+
+       * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
+       (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
+       (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
+       (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
+       (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
+       (cfi_add_CFA_restore, cfi_add_CFA_undefined)
+       (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
+       (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
+       (cfi_pseudo_table): New directives .cfi_return_column,
+       .cfi_restore, .cfi_undefined, .cfi_same_value,
+       .cfi_remember_state, .cfi_restore_state, .cfi_nop.
+       (dot_cfi, output_cfi_insn): Handle new directives.
+       * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
+       (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
+       (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
+
+2003-06-04  Richard Henderson  <rth@redhat.com>
+
+       * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
+
+       * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
+
+2003-06-04  Richard Henderson  <rth@redhat.com>
+
+       * config/tc-alpha.c (s_alpha_usepv): New.
+       (md_pseudo_table): Add it.
+       (alpha_cfi_frame_initial_instructions): New.
+       * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
+       (tc_cfi_frame_initial_instructions): New.
+       * doc/c-alpha.texi: Document .usepv.
+
+2003-06-04  Jakub Jelinek  <jakub@redhat.com>
+
+       * as.c (show_usage): Document --execstack and --noexecstack.
+       (parse_args): Add --execstack and --noexecstack.
+       (main): Create .note.GNU-stack section if --execstack or
+       --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
+       * as.h (flag_execstack, flag_noexecstack): New.
+
+2003-06-03  Chris Demetriou  <cgd@broadcom.com>
+
+       * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
+       (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
+       (OPTION_MISC_BASE): New defines.
+       (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
+       (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
+       (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
+       (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
+       (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
+       (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
+       (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
+       (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
+       (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
+       (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
+       (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
+       (OPTION_TRAP): Redefine in terms of new defines.
+       (md_longopts): Reorder entries.
+
+2003-05-14  Michael Snyder  <msnyder@redhat.com>
+       From Bernd Schmidt  <bernds@redhat.com>
+       and Michael Snyder  <msnyder@redhat.com>
+       and Alexandre Oliva <aoliva@redhat.com>
+       * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
+       * config/tc-h8300.h: Ditto.
+
+2003-06-03  Nick Clifton  <nickc@redhat.com>
+
+       * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
+       BFD_RELOC_32_PCREL if the reloc is pc-relative.  Do this
+       before calling bfd_reloc_type_lookup.
+
+2003-06-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * read.c (emit_expr): Set dot_value.
+       * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
+
+2003-06-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * macro.c (sub_actual): Don't lose string if it turns out that
+       &string wasn't an arg.
+
+2003-05-31  Richard Henderson  <rth@redhat.com>
+
+       * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
+       (cfi_finish): Set flag_traditional_format around .eh_frame data.
+
+2003-05-29  Richard Henderson  <rth@redhat.com>
+
+       * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
+       (all_frame_data, plast_frame_data, cur_frame_data): New.
+       (s_alpha_ent): Record data for dwarf2 cfi.
+       (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
+       (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
+       * config/tc-alpha.h (md_end): New.
+       (DWARF2_DEFAULT_RETURN_COLUMN): New.
+       (DWARF2_CIE_DATA_ALIGNMENT): New.
+
+2003-05-29  Nick Clifton  <nickc@redhat.com>
+
+       * configure.in: Add i386-*-freebsd* entry.
+       * configure: Regenerate.
+
+2003-05-29  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
+
+       * config/tc-m32r.c: Amend comment to refer to Renesas
+
+2003-05-27  Richard Henderson  <rth@redhat.com>
+
+       * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
+       symbol_create call.
+       (current_location): Use symbol_temp_new_now.
+       * stabs.c (s_stab_generic): Use symbol_temp_new.
+       * symbols.c (temp_label_name): Remove.
+       (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
+
+2003-05-27  Richard Henderson  <rth@redhat.com>
+
+       * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
+       * as.c (main): Always call cfi_finish.
+       * config/tc-i386.c (x86_dwarf2_return_column): New.
+       (x86_cie_data_alignment): New.
+       (md_begin): Set them.
+       (tc_x86_cfi_init): Remove.
+       (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
+       return int, not unsigned long; don't as_bad here.
+       (tc_x86_frame_initial_instructions): Streamline; use
+       updated api.
+       * config/tc-i386.h (tc_cfi_init): Remove.
+       (DWARF2_DEFAULT_RETURN_COLUMN): New.
+       (DWARF2_CIE_DATA_ALIGNMENT): New.
+
+2003-05-27  Richard Henderson  <rth@redhat.com>
+
+       * symbols.c (temp_label_name): New.
+       (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
+       (symbol_set_value_now): New.
+       * symbols.h: Prototype them.
+       * dwarf2dbg.c: Use them.
+       (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
+
+2003-05-23  Jason Eckhardt  <jle@rice.edu>
+
+       * config/tc-i860.c (target_xp): Declare variable.
+       (OPTION_XP): Declare macro.
+       (md_longopts): Add option -mxp.
+       (md_parse_option): Set target_xp.
+       (md_show_usage): Add -mxp usage.
+       (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
+       (md_assemble): Don't try expansions if XP_ONLY is set.
+       * doc/c-i860.texi: Document -mxp option and i860XP support.
+
+2003-05-23  Eric Christopher  <echristo@redhat.com>
+
+       * config/tc-mips.c (macro_build_jalr): Warning patrol.
+
 2003-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
 
        * config/tc-mips.c (append_insn): Use actual relocation size for new
 
 2003-05-07  Eric Christopher  <echristo@redhat.com>
 
-        * config/tc-mips.c (mips_abicalls): New variable.
-        (md_parse_option): Use.
-        (s_option): Ditto.
-        (s_abicalls): Ditto.
-        (mips_elf_final_processing): Set EF_MIPS_PIC and
-        EF_MIPS_CPIC dependent on above.
+       * config/tc-mips.c (mips_abicalls): New variable.
+       (md_parse_option): Use.
+       (s_option): Ditto.
+       (s_abicalls): Ditto.
+       (mips_elf_final_processing): Set EF_MIPS_PIC and
+       EF_MIPS_CPIC dependent on above.
 
 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
 
 2003-05-21  Nick Clifton  <nickc@redhat.com>
 
-        * config/obj-elf.c: Include dwarf2dbg.h.
-        (elf_pseudo_tab): Add .file and .loc.
-        * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
-        * config/tc-arm.c: Likewise.
-        * config/tc-h8300.c: Likewise.
-        * config/tc-hppa.c: Likewise.
-        * config/tc-ia64.c: Likewise.
-        * config/tc-m68hc11.c: Likewise.
-        * config/tc-m68k.c: Likewise.
-        * config/tc-mmix.c: Likewise.
-        * config/tc-mn10300.c: Likewise.
-        * config/tc-ppc.c: Likewise.
-        * config/tc-sh.c: Likewise.
-        * config/tc-sparc.c: Likewise.
-        * config/tc-v850.c: Likewise.
-        * config/tc-frv.c: Likewise, and remove redundant inclusion of
-        dwarf2dbg.h.
-        * config/tc-ip2k.c: Likewise.
-        * config/tc-iq2000.c: Likewise.
-        * config/tc-xstormy16.c: Likewise.
-        * config/tc-xtensa.c: Likewise.
+       * config/obj-elf.c: Include dwarf2dbg.h.
+       (elf_pseudo_tab): Add .file and .loc.
+       * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
+       * config/tc-arm.c: Likewise.
+       * config/tc-h8300.c: Likewise.
+       * config/tc-hppa.c: Likewise.
+       * config/tc-ia64.c: Likewise.
+       * config/tc-m68hc11.c: Likewise.
+       * config/tc-m68k.c: Likewise.
+       * config/tc-mmix.c: Likewise.
+       * config/tc-mn10300.c: Likewise.
+       * config/tc-ppc.c: Likewise.
+       * config/tc-sh.c: Likewise.
+       * config/tc-sparc.c: Likewise.
+       * config/tc-v850.c: Likewise.
+       * config/tc-frv.c: Likewise, and remove redundant inclusion of
+       dwarf2dbg.h.
+       * config/tc-ip2k.c: Likewise.
+       * config/tc-iq2000.c: Likewise.
+       * config/tc-xstormy16.c: Likewise.
+       * config/tc-xtensa.c: Likewise.
        * Makefile.am: Regenerate dependencies.
-        * Makefile.in: Regenerate.
-        * aclocal.m4: Regenerate.
-        * config.in: Regenerate.
-        * configure: Regenerate.
-        * po/POTFILES.in: Regenerate.
-        * po/gas.pot: Regenerate.
+       * Makefile.in: Regenerate.
+       * aclocal.m4: Regenerate.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * po/POTFILES.in: Regenerate.
+       * po/gas.pot: Regenerate.
 
 2003-05-21  Nick Clifton  <nickc@redhat.com>