ChangeLog revision 94536
194536Sobrien2002-04-10  Alan Modra  <amodra@bigpond.net.au>
294536Sobrien
394536Sobrien	* as.c (parse_args <OPTION_VERSION>): Use VERSION is
494536Sobrien	BFD_VERSION_STRING unavailable.
594536Sobrien	* config/tc-i386.c (INLINE): Define (for non-BFD assembler).
694536Sobrien
794536Sobrien2002-04-04  Alan Modra  <amodra@bigpond.net.au>
894536Sobrien
994536Sobrien	* dep-in.sed: Cope with absolute paths.
1094536Sobrien	* Makefile.am (dep.sed): Subst TOPDIR.
1194536Sobrien	Run "make dep-am".
1294536Sobrien	* Makefile.in: Regenerate.
1394536Sobrien
1494536Sobrien2002-04-01  Jessica Han  <jessica@cup.hp.com>
1594536Sobrien
1694536Sobrien	* config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
1794536Sobrien	in 32-bit mode.
1894536Sobrien
1994536Sobrien2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2094536Sobrien
2194536Sobrien	* aclocal.m4: Regenerate.
2294536Sobrien	* config.in: Regenerate.
2394536Sobrien	* Makefile.am: Run "make dep-am".
2494536Sobrien	* Makefile.in: Regenerate.
2594536Sobrien	* doc/Makefile.in: Regenerate.
2694536Sobrien
2794536Sobrien	Merge from mainline.
2894536Sobrien	2002-03-12  Andreas Schwab  <schwab@suse.de>
2994536Sobrien	* config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3094536Sobrien	body record so that an error is given for misplaced .save
3194536Sobrien	pseudo-ops.
3294536Sobrien
3394536Sobrien	2002-03-09  Alan Modra  <amodra@bigpond.net.au>
3494536Sobrien	* config/tc-i386.h (REX_OPCODE): Define.
3594536Sobrien	(REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3694536Sobrien	(rex_byte): typedef to int.
3794536Sobrien	* config/tc-i386.c: Group prototypes and vars together.
3894536Sobrien	Formatting fixes.  Remove occurrences of "register" keyword.
3994536Sobrien	(true): Delete.
4094536Sobrien	(false): Delete.
4194536Sobrien	(mode_from_disp_size): Add INLINE keyword to prototype.
4294536Sobrien	(fits_in_signed_byte): Likewise.
4394536Sobrien	(fits_in_unsigned_byte): Likewise.
4494536Sobrien	(fits_in_unsigned_word): Likewise.
4594536Sobrien	(fits_in_signed_word): Likewise.
4694536Sobrien	(fits_in_unsigned_long): Likewise.
4794536Sobrien	(fits_in_signed_long): Likewise.
4894536Sobrien	(type_names): Constify.
4994536Sobrien	(intel_float_operand): Constify param.
5094536Sobrien	(add_prefix): Use REX_OPCODE.
5194536Sobrien	(md_assemble): Likewise.  Modify for changed rex_byte.
5294536Sobrien	(parse_insn): Split out of md_assemble.
5394536Sobrien	(parse_operands): Likewise.
5494536Sobrien	(swap_operands): Likewise.
5594536Sobrien	(optimize_imm): Likewise.
5694536Sobrien	(optimize_disp): Likewise.
5794536Sobrien	(match_template): Likewise.
5894536Sobrien	(check_string): Likewise.
5994536Sobrien	(process_suffix): Likewise.
6094536Sobrien	(check_byte_reg): Likewise.
6194536Sobrien	(check_long_reg): Likewise.
6294536Sobrien	(check_qword_reg): Likewise.
6394536Sobrien	(check_word_reg): Likewise.
6494536Sobrien	(finalize_imm): Likewise.
6594536Sobrien	(process_operands): Likewise.
6694536Sobrien	(build_modrm_byte): Likewise.
6794536Sobrien	(output_insn): Likewise.
6894536Sobrien	(output_branch): Likewise.
6994536Sobrien	(output_jump): Likewise.
7094536Sobrien	(output_interseg_jump): Likewise.
7194536Sobrien	(output_disp): Likewise.
7294536Sobrien	(output_imm): Likewise.
7394536Sobrien
7494536Sobrien	2002-03-06  Alan Modra  <amodra@bigpond.net.au>
7594536Sobrien	* config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
7694536Sobrien	relocs except when BFD64.
7794536Sobrien	* write.c (number_to_chars_bigendian): Don't abort when N is
7894536Sobrien	larger than sizeof (VAL).
7994536Sobrien	(number_to_chars_littleendian): Likewise.
8094536Sobrien
8194536Sobrien	2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8294536Sobrien	* config/tc-hppa.c (md_apply_fix3): Add cast.
8394536Sobrien	(hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
8494536Sobrien	e_rrsel.
8594536Sobrien
8694536Sobrien	2002-03-04  H.J. Lu <hjl@gnu.org>
8794536Sobrien	* config/obj-elf.c (special_section): Add .init_array,
8894536Sobrien	.fini_array and .preinit_array.
8994536Sobrien	* config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
9094536Sobrien	.init_array and .fini_array.
9194536Sobrien
9294536Sobrien	2002-03-01  Jakub Jelinek  <jakub@redhat.com>
9394536Sobrien	* config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
9494536Sobrien	visibility.
9594536Sobrien	(obj_frob_symbol): Copy visibility.
9694536Sobrien
9794536Sobrien2002-03-27  Andreas Schwab  <schwab@suse.de>
9894536Sobrien
9994536Sobrien	* config/tc-i386.c (md_assemble): Set fx_pcrel_adjust to size of
10094536Sobrien	field for pc-relative fixups.
10194536Sobrien	(md_estimate_size_before_relax): Likewise.
10294536Sobrien	(tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
10394536Sobrien	pc-relative fixups in 64bit mode.
10494536Sobrien
10594536Sobrien2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
10694536Sobrien
10794536Sobrien	* config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
10894536Sobrien	(vfp_sp_reg_pos -> vfp_dp_reg_pos).
10994536Sobrien
11092828Sobrien2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11192828Sobrien
11292828Sobrien	* config/tc-mips.c (md_estimate_size_before_relax): Do not modify
11392828Sobrien	the EXTENDED bit here; report the estimate according to the
11492828Sobrien	current size.
11592828Sobrien
11692828Sobrien2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
11792828Sobrien
11892828Sobrien	* config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
11992828Sobrien	a weak symbol in same section to be within reach.
12092828Sobrien
12192828Sobrien2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
12292828Sobrien
12392828Sobrien	* doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
12492828Sobrien
12592828Sobrien2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
12692828Sobrien
12792828Sobrien	* NEWS: Mark version 2.12.
12892828Sobrien
12992828Sobrien2002-02-28  Jakub Jelinek  <jakub@redhat.com>
13092828Sobrien
13192828Sobrien	* config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
13292828Sobrien	s_text.
13392828Sobrien	(s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
13492828Sobrien
13592828Sobrien2002-02-26  Chris Demetriou  <cgd@broadcom.com>
13692828Sobrien
13792828Sobrien	* config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
13892828Sobrien	only, undo the changes made on 2001-06-08, with the
13992828Sobrien	effect being that common or extern symbols are
14092828Sobrien	adjusted for embedded-PIC, but weak symbols are not.
14192828Sobrien	(md_estimate_size_before_relax: Likewise, with the effect
14292828Sobrien	that extern symbols are treated the same as weak symbols
14392828Sobrien	only if not embedded-PIC.
14492828Sobrien	(mips_fix_adjustable) Likewise, with the effect that
14592828Sobrien	weak or extern symbols are not adjusted for embedded-PIC.
14692828Sobrien	(md_apply_fix3): Tweak so that the case where value is zero
14792828Sobrien	is handled more correctly for embedded-PIC code.
14892828Sobrien
14992828Sobrien2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
15092828Sobrien
15192828Sobrien	* configure.in (LINGUAS): Add es.po.
15292828Sobrien	* configure: Regenerate.
15392828Sobrien	* po/es.po: New file.
15492828Sobrien
15592828Sobrien2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
15692828Sobrien
15792828Sobrien	* config/tc-mips.c (set_at): Fix handling of 64bit register loads.
15892828Sobrien	(macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
15992828Sobrien	and NO_PIC cases. Code cleanup.
16092828Sobrien	(macro2): Fix handling of 64bit register loads.
16192828Sobrien
16292828Sobrien2002-02-25  Alan Modra  <amodra@bigpond.net.au>
16392828Sobrien
16492828Sobrien	* doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400.
16592828Sobrien	Remove references to chip manufacturers.
16692828Sobrien	* config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
16792828Sobrien	Correct comments.
16892828Sobrien	(md_show_usage): Remove references to chip manufacturers.  Mention
16992828Sobrien	-mpower4.
17092828Sobrien	(md_begin): Test power4 opcode flag bits.
17192828Sobrien
17292828Sobrien2002-02-22  David Mosberger  <davidm@hpl.hp.com>
17392828Sobrien
17492828Sobrien	* config/tc-ia64.c (dot_restore): Issue error message of epilogue
17592828Sobrien	count exceeds prologue count.
17692828Sobrien	(md_show_usage): Describe -mconstant-gp and -mauto-pic.
17792828Sobrien	(unwind.label_prologue_count): New member.
17892828Sobrien
17992828Sobrien	Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
18092828Sobrien
18192828Sobrien	(get_saved_prologue_count): New function.
18292828Sobrien	(save_prologue_count): New function.
18392828Sobrien	(free_saved_prologue_count): New function.
18492828Sobrien	(dot_label_state): Record state label by calling save_prologue_count().
18592828Sobrien	(dot_copy_state): Restore prologue count by calling
18692828Sobrien	get_saved_prologue_count().
18792828Sobrien	(generate_unwind_image): Free up list of saved prologue
18892828Sobrien	counts by calling free_saved_prologue_counts().
18992828Sobrien
19091041Sobrien2002-02-21  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
19191041Sobrien
19291041Sobrien	* config/tc-mips.c (md_parse_option): Complain about invalid -mabi
19391041Sobrien	option input.
19491041Sobrien
19591041Sobrien2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
19691041Sobrien
19791041Sobrien	* config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
19891041Sobrien
19991041Sobrien2002-02-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20091041Sobrien
20191041Sobrien	* config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
20291041Sobrien	that implicitly use LR and RR selectors.
20391041Sobrien
20491041Sobrien2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
20591041Sobrien
20691041Sobrien	* doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
20791041Sobrien	instead of CRIS.
20891041Sobrien
20991041Sobrien2002-02-15  Chris Demetriou  <cgd@broadcom.com>
21091041Sobrien
21191041Sobrien        * config/tc-mips.c (md_estimate_size_before_relax): Really
21291041Sobrien	make sure we treat weak like extern only for ELF.  (Fixes
21391041Sobrien	patch from 2001-07-25.)
21491041Sobrien
21591041Sobrien2002-02-15  Ben Elliston  <bje@redhat.com>
21691041Sobrien
21791041Sobrien	* doc/as.texinfo: Add duplicate directory entry so that "info gas"
21891041Sobrien	works as expected.
21991041Sobrien
22091041SobrienFri Feb 15 15:18:51 CET 2002  Jan Hubicka  <jh@suse.cz>
22191041Sobrien
22291041Sobrien	* i386.c (md_assemble): Support 32bit address prefix.
22391041Sobrien	(i386_displacement): Likewise.
22491041Sobrien	(i386_index_check): Accept 32bit addressing in 64bit mode.
22591041Sobrien
22691041Sobrien2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
22791041Sobrien
22891041Sobrien	* NEWS: Mention support for MMIX.
22991041Sobrien
23091041Sobrien2002-02-13  Chris Demetriou  <cgd@broadcom.com>
23191041Sobrien
23291041Sobrien	* config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
23391041Sobrien	a sequence of indpendent 'if' statements for easier debugging
23491041Sobrien	and future modification.
23591041Sobrien
23691041Sobrien2002-02-13  Matt Fredette  <fredette@netbsd.org>
23791041Sobrien
23891041Sobrien	* config/tc-m68k.c (md_show_usage): No longer display a
23991041Sobrien	hard-coded "68020" for the default CPU, instead display the
24091041Sobrien	canonical name of the true, configured default CPU.
24191041Sobrien	(m68k_elf_final_processing): Mark objects for sub-68020
24291041Sobrien	CPUs with the new EF_M68000 flag.
24391041Sobrien
24491041Sobrien2002-02-13  Andreas Schwab  <schwab@suse.de>
24591041Sobrien
24691041Sobrien	* config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
24791041Sobrien	pc-relative relocations to merge sections in 64-bit mode.
24891041Sobrien
24991041Sobrien2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
25091041Sobrien
25191041Sobrien	* config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
25291041Sobrien	and `epsw' as available on AM33 and above only.
25391041Sobrien	(other_register_name): Add logic to handle machine type encoded in
25491041Sobrien	reg_number.
25591041Sobrien
25691041Sobrien2002-02-11  Tom Rix  <trix@redhat.com>
25791041Sobrien
25894536Sobrien	* config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
25991041Sobrien	xcoff64.
26091041Sobrien
26191041Sobrien2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
26291041Sobrien
26391041Sobrien	* config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
26491041Sobrien	Use all over.
26591041Sobrien
26691041Sobrien2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
26791041Sobrien
26891041Sobrien	* config/tc-sh.c (dot): Removed unused function.
26991041Sobrien
27091041Sobrien2002-02-10  Richard Henderson  <rth@redhat.com>
27191041Sobrien
27291041Sobrien	* doc/c-alpha.texi: New file.
27391041Sobrien	* doc/Makefile.am (CPU_DOCS): Add it.
27491041Sobrien	* doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
27591041Sobrien
27691041Sobrien2002-02-09  Richard Henderson  <rth@redhat.com>
27791041Sobrien
27891041Sobrien	* config/tc-alpha.c (O_samegp): New.
27991041Sobrien	(USER_RELOC_P): Include it.
28091041Sobrien	(alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
28191041Sobrien	(md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
28291041Sobrien	(alpha_force_relocation, alpha_fix_adjustable): Likewise.
28391041Sobrien	(alpha_validate_fix): New.
28491041Sobrien	* config/tc-alpha.h (TC_VALIDATE_FIX): New.
28591041Sobrien
28691041Sobrien2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
28791041Sobrien
28891041Sobrien	* doc/c-cris.texi: New.
28991041Sobrien	* doc/all.texi: @set CRIS.
29091041Sobrien	* doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
29191041Sobrien	Include c-cris.texi.
29291041Sobrien	* doc/Makefile.am (CPU_DOCS): Add c-cris.texi
29391041Sobrien	* doc/Makefile.in: Regenerate.
29491041Sobrien
29591041Sobrien2002-02-08  Chris Demetriou  <cgd@broadcom.com>
29691041Sobrien
29791041Sobrien	* config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
29891041Sobrien	determine if a number is a sign-extended 32-bit number.
29991041Sobrien	(load_register): Use IS_SEXT_32BIT_NUM.
30091041Sobrien	(macro): Check if load/store macro handling is using a
30191041Sobrien	constant 32-bit address on 64-bit address systems, and if
30291041Sobrien	so optimize the generation of that address.
30391041Sobrien
30491041Sobrien2002-02-08  Richard Henderson  <rth@redhat.com>
30591041Sobrien
30691041Sobrien	* config/tc-alpha.c (alpha_force_relocation): Don't assert that
30791041Sobrien	we've eliminated all foreign relocation types yet.
30891041Sobrien	(alpha_fix_adjustable): Likewise.
30991041Sobrien
31091041Sobrien2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
31191041Sobrien
31291041Sobrien	Contribute sh64-elf.
31391041Sobrien	2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
31491041Sobrien		    Stephen Clarke <Stephen.Clarke@st.com>
31591041Sobrien	* doc/c-sh64.texi: Fix citation of SH64 architecture manual.
31691041Sobrien	2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
31791041Sobrien	* config/tc-sh.c (md_relax_table): Added default sizes for
31891041Sobrien	non-PC-relative UNDEF_MOVI, and relaxation sequences for
31991041Sobrien	MOVI_16, MOVI_32 and MOVI_48.
32091041Sobrien	* config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
32191041Sobrien	(shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
32291041Sobrien	and MOVI_16.
32391041Sobrien	(shmedia_md_estimate_size_before_relax): Remove redundant
32491041Sobrien	blocks.	 Set fragP->fr_var even if relaxation type unchanged.
32591041Sobrien	Retain UNDEF_MOVI until expression decays to number.
32691041Sobrien	2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
32791041Sobrien	* config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
32891041Sobrien	relocation types.  Take fixP->fx_addnumber into account too.
32991041Sobrien	(shmedia_md_apply_fix): Likewise.
33091041Sobrien	(shmedia_md_convert_frag): Likewise.
33191041Sobrien	(shmedia_build_Mytes): Likewise.
33291041Sobrien	(sh64_consume_datalabel): Complain about nested datalabel.
33391041Sobrien	Support PIC relocs.  Call sh_parse_name.
33491041Sobrien	* config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
33591041Sobrien	in tc-sh.h to SHmedia reloc types.
33691041Sobrien	* config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
33791041Sobrien	MOVI_GOTPC): New relaxation constants.
33891041Sobrien	(md_relax_table): Introduce relaxation directives for PIC-related
33991041Sobrien	constants.
34091041Sobrien	(sh_PIC_related_p): Handle datalabel.
34191041Sobrien	(sh_check_fixup): Choose SH5 PIC relocations.
34291041Sobrien	(sh_cons_fix_new): Added BDF_RELOC_64.
34391041Sobrien	(md_apply_fix3, sh_parse_name): Handle GOTPLT.
34491041Sobrien	2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
34591041Sobrien	* config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
34691041Sobrien	current ISA is SHmedia, get 7 bytes.
34791041Sobrien	2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
34891041Sobrien	* config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
34991041Sobrien	void function.
35091041Sobrien	* config/tc-sh64.c (shmedia_apply_fix): Rename to
35191041Sobrien	shmedia_apply_fix3 and make void.
35291041Sobrien	2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
35391041Sobrien	* config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
35491041Sobrien	as_bad.
35591041Sobrien	2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
35691041Sobrien	* config/tc-sh64.h (md_parse_name): Take &c as argument.
35791041Sobrien	2001-03-14  DJ Delorie	<dj@redhat.com>
35891041Sobrien	* doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
35991041Sobrien	* doc/Makefile.in(CPU_DOCS): Ditto.
36091041Sobrien	* doc/c-sh64.texi: New file.
36191041Sobrien	* doc/as.texinfo: Add SH64 support.
36291041Sobrien	2001-03-13  DJ Delorie	<dj@redhat.com>
36391041Sobrien	* config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
36491041Sobrien	A_REUSE_PREV so that its purpose is more obvious.
36591041Sobrien	(shmedia_build_Mytes): Ditto.
36691041Sobrien	2001-03-07  DJ Delorie	<dj@redhat.com>
36791041Sobrien	* config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
36891041Sobrien	before processing.
36991041Sobrien	(sh64_vtable_inherit): Ditto.
37091041Sobrien	(strip_datalabels): New, strip "datalabel" from given line.
37191041Sobrien	* config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
37291041Sobrien	pseudos.
37391041Sobrien	2001-03-06  Hans-Peter Nilsson	<hpn@cygnus.com>
37491041Sobrien	* config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
37591041Sobrien	call ...
37691041Sobrien	(shmedia_build_Mytes): ... to here.
37791041Sobrien	2001-03-06  DJ Delorie	<dj@redhat.com>
37891041Sobrien	* config/tc-sh.c: Remove sh64-specific uaquad now that there
37991041Sobrien	is a generic one.
38091041Sobrien	2001-01-21  Hans-Peter Nilsson	<hpn@cygnus.com>
38191041Sobrien	* config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
38291041Sobrien	* config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
38391041Sobrien	address by one in call to dwarf2_emit_insn.
38491041Sobrien	2001-01-13  Hans-Peter Nilsson	<hpn@cygnus.com>
38591041Sobrien	Implement ".abi" pseudo and correct .cranges descriptors.  Correct
38691041Sobrien	alignment handling broken by imported changes.
38791041Sobrien	* config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
38891041Sobrien	(sh64_handle_align): Declare.
38991041Sobrien	(MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
39091041Sobrien	(sh64_max_mem_for_rs_align_code): Declare.
39191041Sobrien	(enum sh64_isa_values): Moved here from tc-sh64.c.
39291041Sobrien	(md_do_align): Define.
39391041Sobrien	(sh64_do_align): Declare.
39491041Sobrien	(struct sh64_tc_frag_data): New.
39591041Sobrien	(TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
39691041Sobrien	changed.
39791041Sobrien	(TC_FRAG_INIT): Change to set new datatype.
39891041Sobrien	(struct sh64_segment_info_type): Rename member
39991041Sobrien	last_flushed_location to last_contents_mark.  All users changed.
40091041Sobrien	(md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
40191041Sobrien	(shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
40291041Sobrien	* config/tc-sh.c (md_pseudo_table): Add ".abi".
40391041Sobrien	(sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
40491041Sobrien	of unsetting seen_insn.
40591041Sobrien	(md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
40691041Sobrien	call sh64_update_contents_mark.
40791041Sobrien	(sh_handle_align): Remove HAVE_SH64-conditioned code.
40891041Sobrien	* config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
40991041Sobrien	enum sh64_isa_values.
41091041Sobrien	(sh64_set_contents_type): Drop segT parameter.	All callers changed.
41191041Sobrien	(emitting_crange): Boolean guard moved to file scope from function
41291041Sobrien	scope in sh64_set_contents_type.
41391041Sobrien	(s_sh64_abi): New.
41491041Sobrien	(sh64_update_contents_mark): New; most split out from
41591041Sobrien	sh64_flush_pending_output.
41691041Sobrien	(shmedia_md_end): Call sh64_update_contents_mark.  Set
41791041Sobrien	sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
41891041Sobrien	(sh64_do_align): New function.
41991041Sobrien	(sh64_max_mem_for_rs_align_code): New function.
42091041Sobrien	(sh64_handle_align): Rename from shmedia_do_align.  Make
42191041Sobrien	non-static.  Add head comment.	Emit zero bytes for n bytes modulo
42291041Sobrien	four.  Change return-type to void.
42391041Sobrien	(shmedia_elf_new_section): Remove.
42491041Sobrien	(shmedia_md_assemble): Call sh64_update_contents_mark.
42591041Sobrien	(s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
42691041Sobrien	new frag.  Call sh64_update_contents_mark after making the new
42791041Sobrien	frag.
42891041Sobrien	(sh64_flush_pending_output): Just call sh64_update_contents_mark
42991041Sobrien	and sh_flush_pending_output.
43091041Sobrien	(sh64_flag_output): Also call md_flush_pending_output, but add
43191041Sobrien	condition on not emitting_crange.
43291041Sobrien	(sh64_tc_cons_fix_new): Remove.
43391041Sobrien	2001-01-12  Nick Clifton  <nickc@redhat.com>
43491041Sobrien	* config/tc-sh64.c (shmedia_do_align): Fix to work with new
43591041Sobrien	alignment handling scheme imported from sourceware.
43691041Sobrien	2001-01-12  Hans-Peter Nilsson	<hpn@cygnus.com>
43791041Sobrien	* config/tc-sh64.h (TARGET_FORMAT): Define.
43891041Sobrien	(sh64_target_format): Prototype.
43991041Sobrien	* config/tc-sh64.c (sh64_target_mach): New function.
44091041Sobrien	2001-01-07  Hans-Peter Nilsson	<hpn@cygnus.com>
44191041Sobrien	* config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
44291041Sobrien	zero_address_frag instead of copying the frag of the symbol.
44391041Sobrien	(shmedia_frob_file_before_adjust): Ditto.
44491041Sobrien	(shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
44591041Sobrien	to valueT to remove signedness.
44691041Sobrien	(shmedia_md_convert_frag): Add parameter final.	 Rename parameter
44791041Sobrien	headers to output_bfd.	Do not evaluate symbols if final is false;
44891041Sobrien	do emit fixups.
44991041Sobrien	(shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
45091041Sobrien	UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
45191041Sobrien	to the current frag, call shmedia_md_convert_frag to emit fixups
45291041Sobrien	and make frag_wane neutralize the frag.	 Update comments.
45391041Sobrien	* config/tc-sh.c (md_convert_frag): Change caller of
45491041Sobrien	shmedia_md_convert_frag.
45591041Sobrien	2001-01-06  Hans-Peter Nilsson	<hpn@cygnus.com>
45691041Sobrien	* config/tc-sh64.h: Tweak comments and correct formatting.
45791041Sobrien	* config/tc-sh64.c: Ditto.
45891041Sobrien	(shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
45991041Sobrien	expansion, MOVI pcrel expansion>: Fix thinko calculating offset
46091041Sobrien	for the no-relocation case.
46191041Sobrien	(shmedia_check_limits): Fix range check being off-by-one for PTA.
46291041Sobrien	* config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
46391041Sobrien	wrappers.
46491041Sobrien	(SH64PCREL16_F): Increment for proper max-PTA handling.	 Update
46591041Sobrien	comment.
46691041Sobrien	(SH64PCREL16_M, MOVI_16_M): Correct range thinko.
46791041Sobrien	(SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
46891041Sobrien	expansion.
46991041Sobrien	(SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
47091041Sobrien	Correct comment.
47191041Sobrien	2001-01-05  Hans-Peter Nilsson	<hpn@cygnus.com>
47291041Sobrien	* config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
47391041Sobrien	BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
47491041Sobrien	(shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
47591041Sobrien	al>: Set lowest bit of field to relocate to 1 and rest to empty,
47694536Sobrien	if reloc is emitted.
47791041Sobrien	2000-12-31  Hans-Peter Nilsson	<hpn@cygnus.com>
47891041Sobrien	New options plus bugfixes.
47991041Sobrien	* config/tc-sh.c (md_longopts): New options "-no-expand" and
48091041Sobrien	"-expand-pt32".
48191041Sobrien	(md_parse_option): Handle new options.
48291041Sobrien	(md_show_usage): Add blurb for new options.
48391041Sobrien	* config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
48491041Sobrien	(sh64_expand, sh64_pt32): New variables.
48591041Sobrien	(shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
48691041Sobrien	(shmedia_md_apply_fix): Hold original fixP->fx_r_type in
48791041Sobrien	orig_fx_r_type.	 Change SHMEDIA_BFD_RELOC_PT into
48891041Sobrien	BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
48991041Sobrien	<resolved previously-pc-relative relocs>: Handle
49091041Sobrien	SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
49191041Sobrien	(shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
49291041Sobrien	case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
49391041Sobrien	points to SHcompact code.
49491041Sobrien	<case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
49591041Sobrien	SH64PCREL16)>: Check that ISA of what operand points at and
49691041Sobrien	PTA/PTB matches, or emit error.
49791041Sobrien	(shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
49891041Sobrien	SHMEDIA_BFD_RELOC_PT.
49991041Sobrien	(shmedia_immediate_op): If pcrel, emit fixup also for constant
50091041Sobrien	operand.
50191041Sobrien	(shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
50291041Sobrien	condition for MOVI expansion.
50391041Sobrien	<case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
50491041Sobrien	sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
50591041Sobrien	sh64_expand.
50691041Sobrien	<case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
50791041Sobrien	fixup.
50891041Sobrien	(sh64_target_format): Error-check setting of sh64_pt32 and
50991041Sobrien	sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
51091041Sobrien	(shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
51191041Sobrien	SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
51291041Sobrien	2000-12-31  Hans-Peter Nilsson	<hpn@cygnus.com>
51391041Sobrien	* config/tc-sh64.c: Improve comments.
51491041Sobrien	(shmedia_md_convert_frag): Remove inactive is_pt_variant code.	Do
51591041Sobrien	not say the linker will check correctness of PTA/PTB expansion.
51691041Sobrien	(shmedia_md_end): Make non-static.
51791041Sobrien	* config/tc-sh64.h (md_end): Define to shmedia_md_end.	Add
51891041Sobrien	prototype.
51991041Sobrien	* config/tc-sh.c (sh_finalize): Remove.
52091041Sobrien	* config/tc-sh.h (md_end): Do not define.
52191041Sobrien	Remove prototype for sh_finalize.
52291041Sobrien	2000-12-30  Hans-Peter Nilsson	<hpn@cygnus.com>
52391041Sobrien	* config/tc-sh64.c (shmedia_frob_section_type): Use a struct
52491041Sobrien	sh64_section_data container when storing section type in tdata
52591041Sobrien	field in elf_section_data.
52691041Sobrien	* config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
52791041Sobrien	EF_SH5.
52891041Sobrien	* Makefile.am: Update dependencies.
52991041Sobrien	* Makefile.in: Regenerate.
53091041Sobrien	2000-12-22  Hans-Peter Nilsson	<hpn@cygnus.com>
53191041Sobrien	* config/tc-sh64.c (shmedia_md_assemble): Don't protect
53291041Sobrien	dwarf2_emit_insn call with test on debug_type.
53391041Sobrien	2000-12-19  Hans-Peter Nilsson	<hpn@cygnus.com>
53491041Sobrien	* config/tc-sh64.c (sh64_set_contents_type): Make contents-type
53591041Sobrien	CRT_SH5_ISA32 sticky for 64-bit.
53691041Sobrien	2000-12-18  Hans-Peter Nilsson	<hpn@cygnus.com>
53791041Sobrien	Generate .crange sections when switching ISA mode or emitting
53891041Sobrien	constants in same section as code.
53991041Sobrien	* config/tc-sh64.c: Reformat structure definitions.
54091041Sobrien	(sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
54191041Sobrien	variables.
54291041Sobrien	(sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
54391041Sobrien	to emit a .cranges descriptor when contents type changes.  Only
54491041Sobrien	emit error if changing contents type and -no-mix is in effect.
54591041Sobrien	(sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
54691041Sobrien	sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
54791041Sobrien	(shmedia_md_end): Set sh64_end_of_assembly.  Pass
54891041Sobrien	sh64_flush_last_crange over sections.
54991041Sobrien	When checking main symbol of datalabel symbol, check for
55091041Sobrien	STO_SH5_ISA32, not ISA type of section in definition.
55191041Sobrien	(shmedia_frob_file_before_adjust): Check main symbol for
55291041Sobrien	STO_SH5_ISA32; don't check ISA type of section in definition.
55391041Sobrien	(shmedia_frob_section_type): Adjust for .cranges; set section flag
55491041Sobrien	to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
55591041Sobrien	.cranges entries have been output.
55691041Sobrien	(shmedia_elf_new_section): Just call md_flush_pending_output.
55791041Sobrien	(shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
55891041Sobrien	fix.  Do not set tc_segment_info_data.in_code for section.  Call
55991041Sobrien	sh64_set_contents_type for SHmedia code.
56091041Sobrien	(s_sh64_mode): Do not call sh64_init_section or set seen_insn to
56191041Sobrien	false.	Call md_flush_pending_output.
56291041Sobrien	(sh64_target_format): Check that -no-mix and
56391041Sobrien	-shcompact-const-crange are used in sane combination with other
56491041Sobrien	options.
56591041Sobrien	(shmedia_md_pcrel_from_section): Check type of fix for how to
56691041Sobrien	adjust pc-relative.
56791041Sobrien	(sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
56891041Sobrien	not ISA type of section in definition.
56991041Sobrien	* config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
57091041Sobrien	hold contents-type state.
57191041Sobrien	(md_flush_pending_output): Redefine to sh64_flush_pending_output.
57291041Sobrien	(sh64_flush_pending_output): Declare.
57391041Sobrien	(TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
57491041Sobrien	(sh64_tc_cons_fix_new): Declare.
57591041Sobrien	* config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
57691041Sobrien	call sh64_flag_output.
57791041Sobrien	(md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
57891041Sobrien	call sh64_set_contents_type to mark SHcompact code and set
57991041Sobrien	seen_insn.
58091041Sobrien	(md_longopts): New options "-no-mix" and
58191041Sobrien	"-shcompact-const-crange".
58291041Sobrien	(md_parse_option): Handle new options.
58391041Sobrien	(md_show_usage): Add blurb for new options.
58491041Sobrien	(md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
58591041Sobrien	2000-12-15  Hans-Peter Nilsson	<hpn@cygnus.com>
58691041Sobrien	* config/tc-sh64.c: Delete investigated and obsolete fixme:s.
58791041Sobrien	(sh64_last_insn_frag): New.
58891041Sobrien	(shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
58991041Sobrien	to get frag for insn opcode for generating fixups; do not assume it
59091041Sobrien	is the same frag.
59191041Sobrien	(shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
59291041Sobrien	for new insn.
59391041Sobrien	* config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
59491041Sobrien	section.
59591041Sobrien	(TC_FRAG_TYPE): Define as fragS *.
59691041Sobrien	(TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
59791041Sobrien	(sh64_last_insn_frag): Declare.
59891041Sobrien	(sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
59991041Sobrien	not == NULL before dereferencing.
60091041Sobrien	2000-12-12  Hans-Peter Nilsson	<hpn@cygnus.com>
60191041Sobrien	Get rid of BFD section flag and EF_SH64_ABI64.
60291041Sobrien	* config/tc-sh64.c (shmedia_frob_section_type): Use
60391041Sobrien	elf_section_data (sec)->tdata, not a specific BFD section flag, to
60491041Sobrien	communicate the section as containing SHmedia code.  Describe why.
60591041Sobrien	* config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
60691041Sobrien	EF_SH64 regardless of ABI.
60791041Sobrien	* config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
60891041Sobrien	in error message.  Handle resolved expressions for
60991041Sobrien	BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
61091041Sobrien	BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
61191041Sobrien	(shmedia_check_limits): Handle BFD_RELOC_64.
61291041Sobrien	(sh64_adjust_symtab): Do not decrement the GAS symbol value for
61391041Sobrien	a STO_SH5_ISA32 symbol, only the BFD value.
61491041Sobrien	2000-12-11  Ben Elliston  <bje@redhat.com>
61591041Sobrien	* config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
61691041Sobrien	dwarf2_generate_asm_lineno.
61791041Sobrien	2000-12-11  Hans-Peter Nilsson	<hpn@cygnus.com>
61891041Sobrien	Handle PC-relative MOVI expansions with assembler relaxation.
61991041Sobrien	Generate PC-relative relocs from 16-bit PC-relative expressions.
62091041Sobrien	* config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
62191041Sobrien	(shmedia_md_pcrel_from_section): ...here.
62291041Sobrien	(shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
62391041Sobrien	turned completely resolved.  Adjust relocation type for 16-bit
62491041Sobrien	immediate operands that has turned PC-relative.	 Adjust back for
62591041Sobrien	MD_PCREL_FROM_SECTION being applied twice.
62691041Sobrien	(shmedia_md_convert_frag): Always emit reloc for expression with
62791041Sobrien	global or weak symbol.	Handle relaxation result for PC-relative
62891041Sobrien	expressions.
62991041Sobrien	(shmedia_md_estimate_size_before_relax): An expression with a weak
63091041Sobrien	or global symbol can not be relaxed.  Break out tests for
63191041Sobrien	relaxable symbol into variable sym_relaxable.
63291041Sobrien	<cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
63391041Sobrien	UNDEF_MOVI)>: Break out any PC-relative expression and change
63491041Sobrien	relaxation type.
63591041Sobrien	(shmedia_build_Mytes): CSE &operands->operands[j] into variable
63691041Sobrien	opjp.
63791041Sobrien	<case A_IMMS16>: Fix typo for initial minor relaxation type of
63891041Sobrien	MOVI expansion.	 If X_op_symbol of the immediate expression is
63991041Sobrien	set, make an expression symbol for the argument to frag_var.
64091041Sobrien	* config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
64191041Sobrien	relaxations.
64291041Sobrien	(END): Adjust for new relaxations.
64391041Sobrien	(md_relax_table): Add entries for new relaxations.
64491041Sobrien	2000-12-07  Ben Elliston  <bje@redhat.com>
64591041Sobrien	* config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
64691041Sobrien	2000-12-07  Hans-Peter Nilsson	<hpn@cygnus.com>
64791041Sobrien	* config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
64891041Sobrien	SHORI operand offsets in PT/PTA/PTB expansions.
64991041Sobrien	2000-12-05  Hans-Peter Nilsson	<hpn@cygnus.com>
65091041Sobrien	Implement DataLabel semantics.
65191041Sobrien	* config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
65291041Sobrien	shmedia_frob_file_before_adjust.
65391041Sobrien	* config/tc-sh64.c [! OBJ_ELF]: Emit #error.
65491041Sobrien	(DATALABEL_SUFFIX): Define.
65591041Sobrien	(shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
65691041Sobrien	symbol list to update "datalabel" symbols to their main symbol
65791041Sobrien	counterparts.
65891041Sobrien	(shmedia_frob_file_before_adjust): New.
65991041Sobrien	(sh64_adjust_symtab): For remaining datalabel symbols, set to
66091041Sobrien	undefined and set STT_DATALABEL.
66191041Sobrien	(sh64_frob_label): Initialize TC symbol field.
66291041Sobrien	(sh64_consume_datalabel): Actually implement semantics.	 New
66391041Sobrien	parameter operandf, call it instead of expression.
66491041Sobrien	(sh64_exclude_symbol): New.
66591041Sobrien	* config/tc-sh64.h (md_parse_name): Pass on the function operand
66691041Sobrien	to sh64_consume_datalabel.
66791041Sobrien	(tc_symbol_new_hook): Define to tc_frob_symbol.
66891041Sobrien	(TC_SYMFIELD_TYPE): Define to symbolS *.
66991041Sobrien	(tc_frob_symbol): Define to call sh64_exclude_symbol.
67091041Sobrien	2000-12-01  Hans-Peter Nilsson	<hpn@cygnus.com>
67191041Sobrien	* config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
67291041Sobrien	case.
67391041Sobrien	(shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
67491041Sobrien	generating dwarf2 debug information.
67591041Sobrien	2000-11-30  Hans-Peter Nilsson	<hpn@cygnus.com>
67691041Sobrien	* config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
67791041Sobrien	elf64-sh64 for the 64-bit ABI.
67891041Sobrien	* config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
67991041Sobrien	option.
68091041Sobrien	2000-11-29  Hans-Peter Nilsson	<hpn@cygnus.com>
68191041Sobrien	* config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
68291041Sobrien	case-insensitivity.
68391041Sobrien	2000-11-27  Hans-Peter Nilsson	<hpn@cygnus.com>
68491041Sobrien	* config/tc-sh64.c: Tweak comments, formatting and error messages.
68591041Sobrien	(enum sh64_abi_values): New type.
68691041Sobrien	(enum sh64_isa_values): New type.
68791041Sobrien	(sh64_isa_mode): Replace shmedia_mode.	All referers changed.
68891041Sobrien	(seen_shcompact_mode, seen_shmedia_mode): Delete.
68991041Sobrien	(sh64_abi): Replace shmedia_64.
69091041Sobrien	(shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
69191041Sobrien	C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
69291041Sobrien	(s_sh64_mode): Check validity for this target.
69391041Sobrien	(sh64_target_format): Initialize defaults for ISA and ABI.
69491041Sobrien	Fallback to old object format if no SH64 ISA or ABI has been
69591041Sobrien	specified.
69691041Sobrien	* config/tc-sh.c (md_parse_option): Check combinations for errors.
69791041Sobrien	(sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
69891041Sobrien	ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
69991041Sobrien	* config/tc-sh64.h: Fix typo in comment.
70091041Sobrien	2000-11-25  Hans-Peter Nilsson	<hpn@cygnus.com>
70191041Sobrien	* config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
70291041Sobrien	<PT fixups for absolute values>: Size will be longest, not
70391041Sobrien	shortest.
70491041Sobrien	(shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
70591041Sobrien	all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
70691041Sobrien	* config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
70791041Sobrien	and l1 to hold lowercase of two first characters.  Change all
70891041Sobrien	remaining TO_LOWER to tolower.
70991041Sobrien	* config/tc-sh64.c (TO_LOWER): Delete.
71091041Sobrien	(shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
71191041Sobrien	(md_parse_name): Define.
71291041Sobrien	(sh64_consume_datalabel): Declare.
71391041Sobrien	(DOLLAR_DOT): Define.
71491041Sobrien	* config/tc-sh64.c (shmedia_parse_exp): New.
71591041Sobrien	(sh64_consume_datalabel): New; just ignoring datalabel semantics.
71691041Sobrien	(shmedia_parse_reg): Remove const from src
71791041Sobrien	parameter.
71891041Sobrien	(shmedia_get_operands): Ditto for args parameter and ptr variable.
71991041Sobrien	(shmedia_md_assemble): Ditto for op_end variable.
72091041Sobrien	(shmedia_get_operand): Ditto for ptr parameter and src variable.
72191041Sobrien	Use shmedia_parse_exp, not parse_exp.
72291041Sobrien	* config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
72391041Sobrien	parameter.  All callers changed.
72491041Sobrien	(shmedia_get_operand): Add shmedia_arg_type parameter.	All
72591041Sobrien	callers changed.
72691041Sobrien	(shmedia_parse_reg): Put first two character in local variables.
72791041Sobrien	Use tolower, not TO_LOWER.  If no register is found and argtype
72891041Sobrien	indicates a control register, scan shmedia_creg_table
72991041Sobrien	case-insensitive.
73091041Sobrien	2000-11-24  Hans-Peter Nilsson	<hpn@cygnus.com>
73191041Sobrien	* Makefile.am (CPU_TYPES): Add sh64.
73291041Sobrien	(TARGET_CPU_CFILES): Add config/tc-sh64.c.
73391041Sobrien	(TARGET_CPU_HFILES): Add config/tc-sh64.h.
73491041Sobrien	Regenerate dependencies.
73591041Sobrien	* Makefile.in: Regenerate.
73691041Sobrien	* configure.in: Add support for sh64-*-elf*.
73791041Sobrien	* configure: Regenerate.
73891041Sobrien	* config/tc-sh64.h: New.
73991041Sobrien	* config/tc-sh64.c: New.
74091041Sobrien	* config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
74191041Sobrien	.mode, .isa and .uaquad.
74291041Sobrien	[HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
74391041Sobrien	SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
74491041Sobrien	[HAVE_SH64] (END): Define as 10.
74591041Sobrien	[HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
74691041Sobrien	SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
74791041Sobrien	MOVI_64): Define.
74891041Sobrien	[HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
74991041Sobrien	SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
75091041Sobrien	SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
75191041Sobrien	MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
75291041Sobrien	Define.
75391041Sobrien	(md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
75491041Sobrien	(md_begin) [HAVE_SH64]: Call shmedia_md_begin.
75591041Sobrien	(parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
75691041Sobrien	(md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
75791041Sobrien	SHmedia instructions.  Handle state-change after switching to
75891041Sobrien	SHcompact.
75991041Sobrien	(md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
76091041Sobrien	(md_parse_option) [HAVE_SH64]: Parse new options.
76191041Sobrien	(md_show_usage) [HAVE_SH64]: Show usage of new options.
76291041Sobrien	(md_convert_frag) [HAVE_SH64] <default>: Call
76391041Sobrien	shmedia_md_convert_frag instead of abort.
76491041Sobrien	(sh_force_relocation) [HAVE_SH64]: Also force relocation for
76591041Sobrien	BFD_RELOC_SH_SHMEDIA_CODE.
76691041Sobrien	(sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
76791041Sobrien	SHcompact or SHmedia code.
76891041Sobrien	(md_apply_fix) [HAVE_SH64] <default>: Return result from calling
76991041Sobrien	shmedia_md_apply_fix instead of abort.
77091041Sobrien	(md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
77191041Sobrien	result from calling shmedia_md_estimate_size_before_relax instead
77291041Sobrien	of calling abort.
77391041Sobrien	(sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
77491041Sobrien	do the work.
77591041Sobrien	(tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
77691041Sobrien	shmedia_init_reloc and do nothing more if it returns non-zero.
77791041Sobrien	(sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
77891041Sobrien	* po/POTFILES.in: Regenerate.
77991041Sobrien	* po/gas.pot: Regenerate.
78091041Sobrien
78191041Sobrien2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
78291041Sobrien
78391041Sobrien	* config/tc-sh.c (parse_at): Install the correct version of
78491041Sobrien	2002-02-04's patch.
78594536Sobrien
78691041Sobrien	* config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
78791041Sobrien	assume fixP->fx_subsy is non-NULL.
78891041Sobrien
78991041Sobrien2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
79091041Sobrien
79191041Sobrien	* config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
79291041Sobrien	A_DISP_PC_ABS, and adjust it by -4.
79391041Sobrien	(get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
79491041Sobrien	expected.
79591041Sobrien	(build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
79691041Sobrien	the operand type is not A_DISP_PC_ABS.
79791041Sobrien
79891041Sobrien2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
79991041Sobrien
80091041Sobrien	* config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
80191041Sobrien	common and weak symbols.  Handle common and weak symbols as
80291041Sobrien	undefined symbols with regards to GREG handling and merging.
80391041Sobrien	(mmix_frob_file): Ditto.
80491041Sobrien
80591041Sobrien2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
80691041Sobrien
80791041Sobrien	* configure.in (hppa-*-netbsd*): New target.
80891041Sobrien	* configure: Regenerate.
80991041Sobrien	* config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
81091041Sobrien
81191041Sobrien2002-02-02  Alan Modra  <amodra@bigpond.net.au>
81291041Sobrien
81391041Sobrien	* config/tc-v850.c: Add missing prototypes amd use old-style
81491041Sobrien	function definitions.
81591041Sobrien	(AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
81691041Sobrien	(sdata_section tdata_section, zdata_section, sbss_section,
81791041Sobrien	tbss_section, zbss_section, rosdata_section, rozdata_section,
81891041Sobrien	scommon_section, tcommon_section, zcommon_section,
81991041Sobrien	call_table_data_section, call_table_text_section): Delete.
82091041Sobrien	(v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
82191041Sobrien	v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
82291041Sobrien	v850_call_table_data, v850_call_table_text): Delete.
82391041Sobrien	(struct v850_seg_entry): New.
82491041Sobrien	(v850_seg_table): New.
82591041Sobrien	(SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
82691041Sobrien	TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
82791041Sobrien	ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
82891041Sobrien	CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
82991041Sobrien	(do_v850_seg): New.
83091041Sobrien	(v850_seg): New.
83191041Sobrien	(v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
83291041Sobrien	recording of alignment.
83391041Sobrien	(md_pseudo_table): Use v850_seg.
83491041Sobrien	(md_begin): Don't init .call_table_data and .call_table_text here.
83591041Sobrien	Set v850_seg_table bss entry.
83691041Sobrien
83791041Sobrien2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
83891041Sobrien
83991041Sobrien	Support on-demand global register allocation by passing on
84091041Sobrien	base-plus-offset relocs to the linker.
84191041Sobrien	* config/tc-mmix.c: Tweak and fix typos in comments.
84294536Sobrien	(allocate_undefined_gregs_in_linker): New variable.
84391041Sobrien	(OPTION_LINKER_ALLOCATED_GREGS): New option macro.
84491041Sobrien	(md_longopts): Add --linker-allocated-gregs.
84591041Sobrien	(md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
84691041Sobrien	<case OPTION_LINKER_ALLOCATED_GREGS>: New.
84791041Sobrien	(md_show_usage): Update text for -x.  Add text for
84891041Sobrien	--linker-allocated-gregs.
84991041Sobrien	(tc_gen_reloc): Derive default value for addend from val and
85091041Sobrien	baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
85191041Sobrien	emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
85291041Sobrien	GREG if allocate_undefined_gregs_in_linker.
85391041Sobrien	* doc/as.texinfo (Overview) <Target MMIX options>: Add
85491041Sobrien	--linker-allocated-gregs.
85591041Sobrien	* doc/c-mmix.texi (MMIX-Opts): Add blurb about
85691041Sobrien	--linker-allocated-gregs.  Mention that it's implied by -x.
85791041Sobrien	(MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
85891041Sobrien	(MMIX-mmixal): Clarify dated comparison and location of MMIXware.
85991041Sobrien
86091041Sobrien	* config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
86191041Sobrien
86291041Sobrien2002-02-01  Alan Modra  <amodra@bigpond.net.au>
86391041Sobrien
86491041Sobrien	* Makefile.am: Run "make dep-am"
86591041Sobrien	* Makefile.in: Regenerate.
86691041Sobrien
86791041Sobrien2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
86891041Sobrien
86991041Sobrien	* config/tc-or32.c: New file.
87091041Sobrien	* config/tc-or32.h: New file.
87191041Sobrien	* configure.in: Add support for or32 targets.
87291041Sobrien	* configure: Regenerate.
87391041Sobrien	* config/obj-coff.c: Add support for or32 targets.
87491041Sobrien	* config/obj-coff.h: Add support for or32 targets.
87591041Sobrien	* Makefile.am: Add support for or32 targets.
87691041Sobrien	* Makefile.in: Regenerate.
87791041Sobrien	* NEWS: Mention support for OpenRISC.
87891041Sobrien	* doc/Makefile.in: Regenerate.
87991041Sobrien	* po/POTFILES.in: Regenerate.
88091041Sobrien	* po/gas.pot: Regenerate.
88191041Sobrien
88291041Sobrien2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
88391041Sobrien
88491041Sobrien	* config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
88591041Sobrien	and mod.
88691041Sobrien
88791041Sobrien2002-01-29  Chris Demetriou  <cgd@broadcom.com>
88891041Sobrien
88991041Sobrien	* config/tc-mips.c (tc_gen_reloc): Arrange for
89091041Sobrien	BFD_RELOC_PCREL_HI16_S relocations to be output relative to
89191041Sobrien	their LO16 parts, even for ELF.
89291041Sobrien
89391041Sobrien2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
89491041Sobrien
89591041Sobrien	* config/tc-i386.c: Protect definitions of true and false
89691041Sobrien	from redefinition.
89791041Sobrien
89891041Sobrien2002-01-28  Jakub Jelinek  <jakub@redhat.com>
89991041Sobrien
90091041Sobrien	* config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
90191041Sobrien	made because of .weak, if they are neither defined nor used in any
90291041Sobrien	way.
90391041Sobrien
90491041Sobrien2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
90591041Sobrien
90691041Sobrien	* configure: Regenerated.
90791041Sobrien
90891041Sobrien2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
90991041Sobrien
91091041Sobrien	* doc/Makefile.am (install): Depend on install-info.
91191041Sobrien	* doc/Makefile.in: Regenerate.
91291041Sobrien
91389857Sobrien2002-01-26  Nick Clifton <nick@redhat.com>
91485815Sobrien
91589857Sobrien	* po/fr.po: Updated version
91685815Sobrien
91789857Sobrien2002-01-24  Kazu Hirata  <kazu@hxi.com>
91885815Sobrien
91989857Sobrien	* config/tc-h8300.c (check_operand): Don't print a warning
92089857Sobrien	when a valid 24-bit address is given to a 16-bit address
92189857Sobrien	operand.
92285815Sobrien
92389857Sobrien2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
92485815Sobrien
92589857Sobrien	* config/tc-sh.c (sh_elf_suffix): Removed.
92689857Sobrien	(sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
92789857Sobrien	sh_end_of_match, sh_parse_name): New functions.
92889857Sobrien	(sh_elf_cons): Simplify.
92989857Sobrien	(parse_exp): Reject misplaced PIC operands.
93089857Sobrien	(md_undefined_symbol): Simplify.
93189857Sobrien	(sh_fix_adjustable): Let @GOTOFF be adjusted.
93289857Sobrien	(md_apply_fix3): Write @PLT and @GOTOFF addends in place.
93389857Sobrien	(tc_gen_reloc): Move fixp subsy absolute value into addnumber.
93489857Sobrien	Complain if subsy remains at the end.
93589857Sobrien	* config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
93689857Sobrien	(md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
93785815Sobrien
93889857Sobrien2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
93985815Sobrien
94089857Sobrien	* config/tc-mn10300.c (xr_registers): Move `pc'...
94189857Sobrien	(other_registers): ... here.
94285815Sobrien
94389857Sobrien2002-01-22  Alan Modra  <amodra@bigpond.net.au>
94485815Sobrien
94589857Sobrien	* Makefile.am: Run "make dep-am".
94678828Sobrien	* Makefile.in: Regenerate.
94789857Sobrien	* gas/po/POTFILES.in: Regenerate.
94878828Sobrien
94989857Sobrien2002-01-21  DJ Delorie  <dj@redhat.com>
95078828Sobrien
95189857Sobrien	* config/obj-coff.c (obj_coff_init_stab_section): Make the
95289857Sobrien	stabstr_name allocation permanent, as it will be referenced from
95389857Sobrien	the section hash.
95478828Sobrien
95589857Sobrien2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
95678828Sobrien
95789857Sobrien	* configure.in (ia64-*-netbsd*): New target.
95894536Sobrien	* configure: Regenerate.
95978828Sobrien
96089857Sobrien2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
96178828Sobrien
96289857Sobrien	* doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
96389857Sobrien	to @dots call.
96489857Sobrien	<Detailed description, ARM options>: Ditto.
96589857Sobrien	* doc/c-arm.texi (ARM Options): Ditto.
96678828Sobrien
96789857Sobrien2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
96878828Sobrien
96989857Sobrien	* tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
97089857Sobrien	do_mia, do_mar and do_mra respectively.
97189857Sobrien	(do_mav_*): Renamed from do_c_*.
97289857Sobrien	(mav_reg_required_here, mav_parse_offset): Renamed from
97389857Sobrien	cirrus_reg_required_here and cirrus_parse_offset respectively.
97489857Sobrien	(MAV_MODE?): Renamed from CIRRUS_MODE?.
97578828Sobrien
97689857Sobrien2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
97789857Sobrien	    Keith Walker  <keith.walker@arm.com>
97878828Sobrien
97989857Sobrien	* tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
98089857Sobrien	(insns): Add pattern for bxj instruction.
98189857Sobrien	(do_bxj): New function.
98289857Sobrien	(arm_cpus): Add arm926ej.
98389857Sobrien	(arm_archs): Add armv5tej.
98478828Sobrien
98589857Sobrien2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
98678828Sobrien
98789857Sobrien	* doc/c-arm.texi: Add new fpe options to list of supported flags.
98878828Sobrien
98989857Sobrien2002-01-19  Keith Walker  <keith.walker@arm.com>
99078828Sobrien
99189857Sobrien	* tc-arm.c (arm_fpus): Add fpe2 and fpe3.
99278828Sobrien
99389857Sobrien2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
99478828Sobrien
99589857Sobrien	* NEWS: Mention new ARM command-line options and VFP support.
99678828Sobrien
99794536Sobrien	* config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
99889857Sobrien	uses changed.
99989857Sobrien	(ARM_CEXT_MAVERICK): Similarly.
100089857Sobrien	(ARM_ANY): Now means any core instruction.
100189857Sobrien	(CPU_DEFAULT): Default to ARM_ANY.
100289857Sobrien	(uses_apcs_26, atcps, support_interwork, uses_apcs_float)
100389857Sobrien	(pic_code): Declare for all object types.  Make type int.
100489857Sobrien	(legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
100589857Sobrien	(march_fpu_opt, mfpu_opt): Declare.
100689857Sobrien	(md_longopts): Tidy up conditional definitions.
100789857Sobrien	(arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
100889857Sobrien	(arm_long_opts): New tables.
100989857Sobrien	(arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
101089857Sobrien	(arm_parse_extension): New function.
101189857Sobrien	(md_parse_option): Rewrite using new table-driven system.
101289857Sobrien	(md_show_usage): Use new table-driven system.
101389857Sobrien	(md_begin): Calculate cpu_variant from command line option data.
101489857Sobrien	* doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
101589857Sobrien	command-line options.
101689857Sobrien	* doc/c-arm.texi: Likewise.
101778828Sobrien
101889857Sobrien2002-01-18  Andreas Jaeger  <aj@suse.de>
101978828Sobrien
102089857Sobrien	* as.c (parse_args): Update year.
102178828Sobrien
102289857Sobrien2002-01-17  Timothy Wall  <twall@alum.mit.edu>
102378828Sobrien
102489857Sobrien	* config/tc-tic54x.c (encode_address): Add a more informative
102589857Sobrien	warning about incorrect syntax.
102678828Sobrien
102789857Sobrien2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
102878828Sobrien
102989857Sobrien	* po/gas.pot: Regenerate.
103078828Sobrien
103189857Sobrien2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
103278828Sobrien
103389857Sobrien	* macro.c (get_any_string): Add no-c-format comment to prevent
103489857Sobrien	confusion when translating string.
103589857Sobrien	* gasp.c (get_any_string): Add no-c-format comment to prevent
103689857Sobrien	confusion when translating string.
103778828Sobrien
103889857Sobrien2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
103989857Sobrien	    Johannes Stezenbach <js@convergence.de>
104089857Sobrien	* config/tc-mips.c (percent_op): Ensure longer percent_op's are
104189857Sobrien	matched before the shorter ones.
104289857Sobrien	(my_getSmallParser): Fix handling of nested parentheses in
104389857Sobrien	percent_op's. Code cleanup.
104489857Sobrien	(my_getPercentOp): New function, code from my_getSmallParser.
104589857Sobrien	(my_getSmallExpression): Fix handling of closing parentheses.
104689857Sobrien	Code cleanup. Better comments.
104778828Sobrien
104889857Sobrien2002-01-16  Nick Clifton <nickc@redhat.com>
104978828Sobrien
105089857Sobrien	po/tr.po: New file: Turkish translation.
105189857Sobrien	configure.in (LINGUAS): Add "tr".
105277298Sobrien	configure: Regenerate.
105338889Sjdp
105489857Sobrien2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
105538889Sjdp
105689857Sobrien	Support for VFP instructions
105789857Sobrien	* tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
105889857Sobrien	(cp_address_required_here): New argument wb_ok.  When false, do not
105989857Sobrien	accept write-back forms of addressing.  Change all callers.
106089857Sobrien	(FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
106189857Sobrien	(FPU_VFP_EXT_V2): Define.
106289857Sobrien	(FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
106389857Sobrien	Define in terms of above.
106489857Sobrien	(vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
106589857Sobrien	(vfp_reg): New struct.
106689857Sobrien	(vfp_regs): New array of registers.
106789857Sobrien	(insns): Add VFP instructions.
106889857Sobrien	(sn_table): New array of VFP single-precision register names.
106989857Sobrien	(dn_table): New array of VFP double-precision register names.
107089857Sobrien	(all_reg_maps): Add the new register tables.
107189857Sobrien	(arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
107289857Sobrien	(vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
107389857Sobrien	(do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
107489857Sobrien	(do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
107589857Sobrien	(do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
107689857Sobrien	(do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
107789857Sobrien	(do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
107889857Sobrien	(do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
107989857Sobrien	(vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
108089857Sobrien	(do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
108189857Sobrien	(do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
108289857Sobrien	(do_vfp_sp_dp_cvt): New functions.
108389857Sobrien	(md_begin): Set soft-float flag for appropriate VFP work.
108489857Sobrien	(md_atof): Handle VFP-format doubles.
108589857Sobrien	(md_parse_option): Handle VFP command-line options.
108689857Sobrien	(md_show_usage): Display VFP command-line options.
108738889Sjdp
108889857Sobrien2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
108938889Sjdp
109089857Sobrien	* tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
109189857Sobrien	various command line options.
109238889Sjdp
109389857Sobrien2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
109438889Sjdp
109589857Sobrien	* config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
109689857Sobrien	vtinherit relocs.
109789857Sobrien	(xstormy16_md_apply_fix3): Do not return a value.
109838889Sjdp
109989857Sobrien2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
110038889Sjdp
110189857Sobrien	* tc-arm.c (md_longopts): On targets that aren't bi-endian, support
110289857Sobrien	the -EL/-EB option that matches the target's endianness.
110377298Sobrien	(md_parse_option): Likewise.
110438889Sjdp
110589857Sobrien2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
110638889Sjdp
110789857Sobrien	* tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
110889857Sobrien	is not dependent on ARM_BI_ENDIAN.
110938889Sjdp
111089857Sobrien2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
111138889Sjdp
111289857Sobrien	* tc-arm.c (all error messages): Normalize capitalization of messages.
111338889Sjdp
111489857Sobrien	* tc-arm.h (md_operand): Delete define.
111589857Sobrien	* tc-arm.c (in_my_get_expression): New static variable.
111689857Sobrien	(my_get_expression): Set and clear it.
111789857Sobrien	(md_operand): New function.  If called from my_get_expression
111889857Sobrien	put the error in inst.error.
111989857Sobrien	(output_inst): Now takes argument of instruction being assembled.
112089857Sobrien	Print it out with any error message.
112189857Sobrien	(do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
112289857Sobrien	with '=' syntax.
112389857Sobrien	(end_of_line): Don't update inst.error if it is already set.
112438889Sjdp
112589857Sobrien2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
112638889Sjdp
112789857Sobrien	* tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
112889857Sobrien	op that can be translated into a mvn instruction.
112938889Sjdp
113089857Sobrien2002-01-11  Steve Ellcey  <sje@cup.hp.com>
113138889Sjdp
113289857Sobrien	* gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
113389857Sobrien	setting default md.flags.
113489857Sobrien	(SHT_INIT_ARRAY): New elf special section used by HP-UX.
113589857Sobrien	(SHT_FINI_ARRAY): New elf special section used by HP-UX.
113689857Sobrien	* gas/config/tc-ia64.c (setup_unwind_header): Add support
113789857Sobrien	for 32 bit unwind info blocks.
113889857Sobrien	(generate_unwind_image): Add support for different types
113989857Sobrien	of unwind images (32 bits and/or big-endian).
114089857Sobrien	(ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
114189857Sobrien	(ia64_target_format): Add support for hpux target formats.
114289857Sobrien	(ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
114389857Sobrien	(ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
114489857Sobrien	SHT_FINI_ARRAY elf section types.
114538889Sjdp
114689857Sobrien2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
114738889Sjdp
114889857Sobrien	* tc-arm.c (struct reg_entry): Move before prototypes.
114989857Sobrien	(int_register, cp_register, fp_register): Delete.
115089857Sobrien	(reg_table): Delete.  Replaced with ...
115189857Sobrien	(rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
115289857Sobrien	(mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
115389857Sobrien	(mav_dspsc_table): ... one table per register set.
115489857Sobrien	(arm_reg_hsh): Delete.
115589857Sobrien	(struct reg_map): New structure.
115689857Sobrien	(all_reg_maps): New array.
115789857Sobrien	(enum arm_reg_type): New enums.
115889857Sobrien	(build_reg_hsh): New function.
115989857Sobrien	(insert_reg_alias): Use hash table passed by caller.  Adjust all
116089857Sobrien	callers.
116189857Sobrien	(create_register_alias): New function, split out from ...
116289857Sobrien	(md_assemble): ... here.
116389857Sobrien	(md_begin): Build new register hash tables.
116489857Sobrien	(arm_reg_parse): New argument for the hash table to search.  Adjust all
116589857Sobrien	callers.
116689857Sobrien	(arm_reg_parse_any): New function.
116789857Sobrien	(co_proc_number): Look up the processor number in the processor hash
116889857Sobrien	table.
116989857Sobrien	(cirrus_regtype): Delete.
117089857Sobrien	(cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
117189857Sobrien	(cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
117289857Sobrien	(ARM_EXT_MAVERICKsc_register): Delete.
117389857Sobrien	(do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
117489857Sobrien	(do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
117589857Sobrien	functions.
117689857Sobrien	(do_c_triple_4, do_c_triple_5): Delete.
117789857Sobrien	(do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
117889857Sobrien	(do_c_quad_6): Delete.
117989857Sobrien	(do_c_quad_6[ab]): New functions.
118089857Sobrien	(do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
118189857Sobrien	arguments to use new register parsing methods.
118289857Sobrien	(cirrus_reg_required_here): Likewise.
118389857Sobrien	(insns): Reclassify cirrus maverick worker functions.
118489857Sobrien	(cirrus_valid_reg): Delete.
118538889Sjdp
118689857Sobrien2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
118738889Sjdp
118889857Sobrien	* configure.in (sh*le): Set cpu_type=sh and endian=little.
118989857Sobrien	(sh*-*-netbsdelf*): New target.
119060484Sobrien	* configure: Regenerate.
119189857Sobrien	* tc-sh.h: Update copyright years.
119289857Sobrien	(TARGET_FORMAT): Add version for TE_NetBSD.
119338889Sjdp
119489857Sobrien2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
119538889Sjdp
119689857Sobrien	* read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
119789857Sobrien	negative.
119838889Sjdp
119989857Sobrien2002-01-06  Alan Modra  <amodra@bigpond.net.au>
120038889Sjdp
120189857Sobrien	* config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
120289857Sobrien	* config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
120338889Sjdp
120489857Sobrien2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
120538889Sjdp
120689857Sobrien	* tc-mips.c (mips_cprestore_valid): New flag.
120789857Sobrien	(mips_frame_reg_valid): New flag.
120889857Sobrien	(macro) [M_JAL_2]: Check both flags.
120989857Sobrien	[M_JAL_A]: Likewise.
121089857Sobrien	(s_cprestore): Set mips_cprestore_valid.
121189857Sobrien	(tc_get_register): If setting mips_frame_reg, set
121289857Sobrien	mips_frame_reg_valid and clear mips_cprestore_valid.
121389857Sobrien	(s_mips_ent): Clear both flags.
121489857Sobrien	(s_mips_end): Clear both flags.
121538889Sjdp
121689857Sobrien2002-01-05  Alan Modra  <amodra@bigpond.net.au>
121738889Sjdp
121889857Sobrien	* write.c (write_object_file): Make use of bfd_section_list_remove.
121989857Sobrien	* config/obj-ecoff.c (ecoff_frob_file): Likewise.
122089857Sobrien	* config/tc-mmix.c (mmix_frob_file): Likewise.
122138889Sjdp
122289857Sobrien2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
122338889Sjdp
122489857Sobrien	* configure.in (i386-*-netbsdelf*): Collapse target into...
122589857Sobrien	(i386-*-netbsd*): ...this.  Add support for x86-64.
122660484Sobrien	* configure: Regenerated.
122733965Sjdp
122889857Sobrien2002-01-03  matthew green  <mrg@redhat.com>
122933965Sjdp
123089857Sobrien	* config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
123133965Sjdp
123289857Sobrien2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
123333965Sjdp
123489857Sobrien	* config/tc-m68k.c (md_estimate_size_before_relax): Test for a
123589857Sobrien	NULL frag link.
123633965Sjdp
123789857SobrienFor older changes see ChangeLog-0001
123889857Sobrien
123989857SobrienLocal Variables:
124089857Sobrienmode: change-log
124189857Sobrienleft-margin: 8
124289857Sobrienfill-column: 74
124389857Sobrienversion-control: never
124489857SobrienEnd:
1245