ChangeLog revision 92828
12002-03-19  Alexandre Oliva  <aoliva@redhat.com>
2
3	* config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4	the EXTENDED bit here; report the estimate according to the
5	current size.
6
72002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
8
9	* config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
10	a weak symbol in same section to be within reach.
11
122002-03-07  Daniel Jacobowitz  <drow@mvista.com>
13
14	* doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
15
162002-03-07  Daniel Jacobowitz  <drow@mvista.com>
17
18	* NEWS: Mark version 2.12.
19
202002-02-28  Jakub Jelinek  <jakub@redhat.com>
21
22	* config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
23	s_text.
24	(s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
25
262002-02-26  Chris Demetriou  <cgd@broadcom.com>
27
28	* config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
29	only, undo the changes made on 2001-06-08, with the
30	effect being that common or extern symbols are
31	adjusted for embedded-PIC, but weak symbols are not.
32	(md_estimate_size_before_relax: Likewise, with the effect
33	that extern symbols are treated the same as weak symbols
34	only if not embedded-PIC.
35	(mips_fix_adjustable) Likewise, with the effect that
36	weak or extern symbols are not adjusted for embedded-PIC.
37	(md_apply_fix3): Tweak so that the case where value is zero
38	is handled more correctly for embedded-PIC code.
39
402002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
41
42	* configure.in (LINGUAS): Add es.po.
43	* configure: Regenerate.
44	* po/es.po: New file.
45
462002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
47
48	* config/tc-mips.c (set_at): Fix handling of 64bit register loads.
49	(macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
50	and NO_PIC cases. Code cleanup.
51	(macro2): Fix handling of 64bit register loads.
52
532002-02-25  Alan Modra  <amodra@bigpond.net.au>
54
55	* doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400.
56	Remove references to chip manufacturers.
57	* config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
58	Correct comments.
59	(md_show_usage): Remove references to chip manufacturers.  Mention
60	-mpower4.
61	(md_begin): Test power4 opcode flag bits.
62
632002-02-22  David Mosberger  <davidm@hpl.hp.com>
64
65	* config/tc-ia64.c (dot_restore): Issue error message of epilogue
66	count exceeds prologue count.
67	(md_show_usage): Describe -mconstant-gp and -mauto-pic.
68	(unwind.label_prologue_count): New member.
69
70	Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
71
72	(get_saved_prologue_count): New function.
73	(save_prologue_count): New function.
74	(free_saved_prologue_count): New function.
75	(dot_label_state): Record state label by calling save_prologue_count().
76	(dot_copy_state): Restore prologue count by calling
77	get_saved_prologue_count().
78	(generate_unwind_image): Free up list of saved prologue
79	counts by calling free_saved_prologue_counts().
80
812002-02-21  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
82
83	* config/tc-mips.c (md_parse_option): Complain about invalid -mabi
84	option input.
85
862002-02-18  Daniel Jacobowitz  <drow@mvista.com>
87
88	* config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
89
902002-02-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
91
92	* config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
93	that implicitly use LR and RR selectors.
94
952002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
96
97	* doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
98	instead of CRIS.
99
1002002-02-15  Chris Demetriou  <cgd@broadcom.com>
101
102        * config/tc-mips.c (md_estimate_size_before_relax): Really
103	make sure we treat weak like extern only for ELF.  (Fixes
104	patch from 2001-07-25.)
105
1062002-02-15  Ben Elliston  <bje@redhat.com>
107
108	* doc/as.texinfo: Add duplicate directory entry so that "info gas"
109	works as expected.
110
111Fri Feb 15 15:18:51 CET 2002  Jan Hubicka  <jh@suse.cz>
112
113	* i386.c (md_assemble): Support 32bit address prefix.
114	(i386_displacement): Likewise.
115	(i386_index_check): Accept 32bit addressing in 64bit mode.
116
1172002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
118
119	* NEWS: Mention support for MMIX.
120
1212002-02-13  Chris Demetriou  <cgd@broadcom.com>
122
123	* config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
124	a sequence of indpendent 'if' statements for easier debugging
125	and future modification.
126
1272002-02-13  Matt Fredette  <fredette@netbsd.org>
128
129	* config/tc-m68k.c (md_show_usage): No longer display a
130	hard-coded "68020" for the default CPU, instead display the
131	canonical name of the true, configured default CPU.
132	(m68k_elf_final_processing): Mark objects for sub-68020
133	CPUs with the new EF_M68000 flag.
134
1352002-02-13  Andreas Schwab  <schwab@suse.de>
136
137	* config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
138	pc-relative relocations to merge sections in 64-bit mode.
139
1402002-02-12  Alexandre Oliva  <aoliva@redhat.com>
141
142	* config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
143	and `epsw' as available on AM33 and above only.
144	(other_register_name): Add logic to handle machine type encoded in
145	reg_number.
146
1472002-02-11  Tom Rix  <trix@redhat.com>
148
149	* config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for 
150	xcoff64.
151
1522002-02-11  Alexandre Oliva  <aoliva@redhat.com>
153
154	* config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
155	Use all over.
156
1572002-02-11  Alexandre Oliva  <aoliva@redhat.com>
158
159	* config/tc-sh.c (dot): Removed unused function.
160
1612002-02-10  Richard Henderson  <rth@redhat.com>
162
163	* doc/c-alpha.texi: New file.
164	* doc/Makefile.am (CPU_DOCS): Add it.
165	* doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
166
1672002-02-09  Richard Henderson  <rth@redhat.com>
168
169	* config/tc-alpha.c (O_samegp): New.
170	(USER_RELOC_P): Include it.
171	(alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
172	(md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
173	(alpha_force_relocation, alpha_fix_adjustable): Likewise.
174	(alpha_validate_fix): New.
175	* config/tc-alpha.h (TC_VALIDATE_FIX): New.
176
1772002-02-09  Hans-Peter Nilsson  <hp@axis.com>
178
179	* doc/c-cris.texi: New.
180	* doc/all.texi: @set CRIS.
181	* doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
182	Include c-cris.texi.
183	* doc/Makefile.am (CPU_DOCS): Add c-cris.texi
184	* doc/Makefile.in: Regenerate.
185
1862002-02-08  Chris Demetriou  <cgd@broadcom.com>
187
188	* config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
189	determine if a number is a sign-extended 32-bit number.
190	(load_register): Use IS_SEXT_32BIT_NUM.
191	(macro): Check if load/store macro handling is using a
192	constant 32-bit address on 64-bit address systems, and if
193	so optimize the generation of that address.
194
1952002-02-08  Richard Henderson  <rth@redhat.com>
196
197	* config/tc-alpha.c (alpha_force_relocation): Don't assert that
198	we've eliminated all foreign relocation types yet.
199	(alpha_fix_adjustable): Likewise.
200
2012002-02-08  Alexandre Oliva  <aoliva@redhat.com>
202
203	Contribute sh64-elf.
204	2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
205		    Stephen Clarke <Stephen.Clarke@st.com>
206	* doc/c-sh64.texi: Fix citation of SH64 architecture manual.
207	2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
208	* config/tc-sh.c (md_relax_table): Added default sizes for
209	non-PC-relative UNDEF_MOVI, and relaxation sequences for
210	MOVI_16, MOVI_32 and MOVI_48.
211	* config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
212	(shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
213	and MOVI_16.
214	(shmedia_md_estimate_size_before_relax): Remove redundant
215	blocks.	 Set fragP->fr_var even if relaxation type unchanged.
216	Retain UNDEF_MOVI until expression decays to number.
217	2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
218	* config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
219	relocation types.  Take fixP->fx_addnumber into account too.
220	(shmedia_md_apply_fix): Likewise.
221	(shmedia_md_convert_frag): Likewise.
222	(shmedia_build_Mytes): Likewise.
223	(sh64_consume_datalabel): Complain about nested datalabel.
224	Support PIC relocs.  Call sh_parse_name.
225	* config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
226	in tc-sh.h to SHmedia reloc types.
227	* config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
228	MOVI_GOTPC): New relaxation constants.
229	(md_relax_table): Introduce relaxation directives for PIC-related
230	constants.
231	(sh_PIC_related_p): Handle datalabel.
232	(sh_check_fixup): Choose SH5 PIC relocations.
233	(sh_cons_fix_new): Added BDF_RELOC_64.
234	(md_apply_fix3, sh_parse_name): Handle GOTPLT.
235	2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
236	* config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
237	current ISA is SHmedia, get 7 bytes.
238	2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
239	* config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
240	void function.
241	* config/tc-sh64.c (shmedia_apply_fix): Rename to
242	shmedia_apply_fix3 and make void.
243	2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
244	* config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
245	as_bad.
246	2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
247	* config/tc-sh64.h (md_parse_name): Take &c as argument.
248	2001-03-14  DJ Delorie	<dj@redhat.com>
249	* doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
250	* doc/Makefile.in(CPU_DOCS): Ditto.
251	* doc/c-sh64.texi: New file.
252	* doc/as.texinfo: Add SH64 support.
253	2001-03-13  DJ Delorie	<dj@redhat.com>
254	* config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
255	A_REUSE_PREV so that its purpose is more obvious.
256	(shmedia_build_Mytes): Ditto.
257	2001-03-07  DJ Delorie	<dj@redhat.com>
258	* config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
259	before processing.
260	(sh64_vtable_inherit): Ditto.
261	(strip_datalabels): New, strip "datalabel" from given line.
262	* config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
263	pseudos.
264	2001-03-06  Hans-Peter Nilsson	<hpn@cygnus.com>
265	* config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
266	call ...
267	(shmedia_build_Mytes): ... to here.
268	2001-03-06  DJ Delorie	<dj@redhat.com>
269	* config/tc-sh.c: Remove sh64-specific uaquad now that there
270	is a generic one.
271	2001-01-21  Hans-Peter Nilsson	<hpn@cygnus.com>
272	* config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
273	* config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
274	address by one in call to dwarf2_emit_insn.
275	2001-01-13  Hans-Peter Nilsson	<hpn@cygnus.com>
276	Implement ".abi" pseudo and correct .cranges descriptors.  Correct
277	alignment handling broken by imported changes.
278	* config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
279	(sh64_handle_align): Declare.
280	(MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
281	(sh64_max_mem_for_rs_align_code): Declare.
282	(enum sh64_isa_values): Moved here from tc-sh64.c.
283	(md_do_align): Define.
284	(sh64_do_align): Declare.
285	(struct sh64_tc_frag_data): New.
286	(TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
287	changed.
288	(TC_FRAG_INIT): Change to set new datatype.
289	(struct sh64_segment_info_type): Rename member
290	last_flushed_location to last_contents_mark.  All users changed.
291	(md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
292	(shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
293	* config/tc-sh.c (md_pseudo_table): Add ".abi".
294	(sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
295	of unsetting seen_insn.
296	(md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
297	call sh64_update_contents_mark.
298	(sh_handle_align): Remove HAVE_SH64-conditioned code.
299	* config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
300	enum sh64_isa_values.
301	(sh64_set_contents_type): Drop segT parameter.	All callers changed.
302	(emitting_crange): Boolean guard moved to file scope from function
303	scope in sh64_set_contents_type.
304	(s_sh64_abi): New.
305	(sh64_update_contents_mark): New; most split out from
306	sh64_flush_pending_output.
307	(shmedia_md_end): Call sh64_update_contents_mark.  Set
308	sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
309	(sh64_do_align): New function.
310	(sh64_max_mem_for_rs_align_code): New function.
311	(sh64_handle_align): Rename from shmedia_do_align.  Make
312	non-static.  Add head comment.	Emit zero bytes for n bytes modulo
313	four.  Change return-type to void.
314	(shmedia_elf_new_section): Remove.
315	(shmedia_md_assemble): Call sh64_update_contents_mark.
316	(s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
317	new frag.  Call sh64_update_contents_mark after making the new
318	frag.
319	(sh64_flush_pending_output): Just call sh64_update_contents_mark
320	and sh_flush_pending_output.
321	(sh64_flag_output): Also call md_flush_pending_output, but add
322	condition on not emitting_crange.
323	(sh64_tc_cons_fix_new): Remove.
324	2001-01-12  Nick Clifton  <nickc@redhat.com>
325	* config/tc-sh64.c (shmedia_do_align): Fix to work with new
326	alignment handling scheme imported from sourceware.
327	2001-01-12  Hans-Peter Nilsson	<hpn@cygnus.com>
328	* config/tc-sh64.h (TARGET_FORMAT): Define.
329	(sh64_target_format): Prototype.
330	* config/tc-sh64.c (sh64_target_mach): New function.
331	2001-01-07  Hans-Peter Nilsson	<hpn@cygnus.com>
332	* config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
333	zero_address_frag instead of copying the frag of the symbol.
334	(shmedia_frob_file_before_adjust): Ditto.
335	(shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
336	to valueT to remove signedness.
337	(shmedia_md_convert_frag): Add parameter final.	 Rename parameter
338	headers to output_bfd.	Do not evaluate symbols if final is false;
339	do emit fixups.
340	(shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
341	UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
342	to the current frag, call shmedia_md_convert_frag to emit fixups
343	and make frag_wane neutralize the frag.	 Update comments.
344	* config/tc-sh.c (md_convert_frag): Change caller of
345	shmedia_md_convert_frag.
346	2001-01-06  Hans-Peter Nilsson	<hpn@cygnus.com>
347	* config/tc-sh64.h: Tweak comments and correct formatting.
348	* config/tc-sh64.c: Ditto.
349	(shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
350	expansion, MOVI pcrel expansion>: Fix thinko calculating offset
351	for the no-relocation case.
352	(shmedia_check_limits): Fix range check being off-by-one for PTA.
353	* config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
354	wrappers.
355	(SH64PCREL16_F): Increment for proper max-PTA handling.	 Update
356	comment.
357	(SH64PCREL16_M, MOVI_16_M): Correct range thinko.
358	(SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
359	expansion.
360	(SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
361	Correct comment.
362	2001-01-05  Hans-Peter Nilsson	<hpn@cygnus.com>
363	* config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
364	BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
365	(shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
366	al>: Set lowest bit of field to relocate to 1 and rest to empty,
367	if reloc is emitted. 
368	2000-12-31  Hans-Peter Nilsson	<hpn@cygnus.com>
369	New options plus bugfixes.
370	* config/tc-sh.c (md_longopts): New options "-no-expand" and
371	"-expand-pt32".
372	(md_parse_option): Handle new options.
373	(md_show_usage): Add blurb for new options.
374	* config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
375	(sh64_expand, sh64_pt32): New variables.
376	(shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
377	(shmedia_md_apply_fix): Hold original fixP->fx_r_type in
378	orig_fx_r_type.	 Change SHMEDIA_BFD_RELOC_PT into
379	BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
380	<resolved previously-pc-relative relocs>: Handle
381	SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
382	(shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
383	case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
384	points to SHcompact code.
385	<case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
386	SH64PCREL16)>: Check that ISA of what operand points at and
387	PTA/PTB matches, or emit error.
388	(shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
389	SHMEDIA_BFD_RELOC_PT.
390	(shmedia_immediate_op): If pcrel, emit fixup also for constant
391	operand.
392	(shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
393	condition for MOVI expansion.
394	<case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
395	sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
396	sh64_expand.
397	<case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
398	fixup.
399	(sh64_target_format): Error-check setting of sh64_pt32 and
400	sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
401	(shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
402	SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
403	2000-12-31  Hans-Peter Nilsson	<hpn@cygnus.com>
404	* config/tc-sh64.c: Improve comments.
405	(shmedia_md_convert_frag): Remove inactive is_pt_variant code.	Do
406	not say the linker will check correctness of PTA/PTB expansion.
407	(shmedia_md_end): Make non-static.
408	* config/tc-sh64.h (md_end): Define to shmedia_md_end.	Add
409	prototype.
410	* config/tc-sh.c (sh_finalize): Remove.
411	* config/tc-sh.h (md_end): Do not define.
412	Remove prototype for sh_finalize.
413	2000-12-30  Hans-Peter Nilsson	<hpn@cygnus.com>
414	* config/tc-sh64.c (shmedia_frob_section_type): Use a struct
415	sh64_section_data container when storing section type in tdata
416	field in elf_section_data.
417	* config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
418	EF_SH5.
419	* Makefile.am: Update dependencies.
420	* Makefile.in: Regenerate.
421	2000-12-22  Hans-Peter Nilsson	<hpn@cygnus.com>
422	* config/tc-sh64.c (shmedia_md_assemble): Don't protect
423	dwarf2_emit_insn call with test on debug_type.
424	2000-12-19  Hans-Peter Nilsson	<hpn@cygnus.com>
425	* config/tc-sh64.c (sh64_set_contents_type): Make contents-type
426	CRT_SH5_ISA32 sticky for 64-bit.
427	2000-12-18  Hans-Peter Nilsson	<hpn@cygnus.com>
428	Generate .crange sections when switching ISA mode or emitting
429	constants in same section as code.
430	* config/tc-sh64.c: Reformat structure definitions.
431	(sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
432	variables.
433	(sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
434	to emit a .cranges descriptor when contents type changes.  Only
435	emit error if changing contents type and -no-mix is in effect.
436	(sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
437	sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
438	(shmedia_md_end): Set sh64_end_of_assembly.  Pass
439	sh64_flush_last_crange over sections.
440	When checking main symbol of datalabel symbol, check for
441	STO_SH5_ISA32, not ISA type of section in definition.
442	(shmedia_frob_file_before_adjust): Check main symbol for
443	STO_SH5_ISA32; don't check ISA type of section in definition.
444	(shmedia_frob_section_type): Adjust for .cranges; set section flag
445	to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
446	.cranges entries have been output.
447	(shmedia_elf_new_section): Just call md_flush_pending_output.
448	(shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
449	fix.  Do not set tc_segment_info_data.in_code for section.  Call
450	sh64_set_contents_type for SHmedia code.
451	(s_sh64_mode): Do not call sh64_init_section or set seen_insn to
452	false.	Call md_flush_pending_output.
453	(sh64_target_format): Check that -no-mix and
454	-shcompact-const-crange are used in sane combination with other
455	options.
456	(shmedia_md_pcrel_from_section): Check type of fix for how to
457	adjust pc-relative.
458	(sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
459	not ISA type of section in definition.
460	* config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
461	hold contents-type state.
462	(md_flush_pending_output): Redefine to sh64_flush_pending_output.
463	(sh64_flush_pending_output): Declare.
464	(TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
465	(sh64_tc_cons_fix_new): Declare.
466	* config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
467	call sh64_flag_output.
468	(md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
469	call sh64_set_contents_type to mark SHcompact code and set
470	seen_insn.
471	(md_longopts): New options "-no-mix" and
472	"-shcompact-const-crange".
473	(md_parse_option): Handle new options.
474	(md_show_usage): Add blurb for new options.
475	(md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
476	2000-12-15  Hans-Peter Nilsson	<hpn@cygnus.com>
477	* config/tc-sh64.c: Delete investigated and obsolete fixme:s.
478	(sh64_last_insn_frag): New.
479	(shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
480	to get frag for insn opcode for generating fixups; do not assume it
481	is the same frag.
482	(shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
483	for new insn.
484	* config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
485	section.
486	(TC_FRAG_TYPE): Define as fragS *.
487	(TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
488	(sh64_last_insn_frag): Declare.
489	(sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
490	not == NULL before dereferencing.
491	2000-12-12  Hans-Peter Nilsson	<hpn@cygnus.com>
492	Get rid of BFD section flag and EF_SH64_ABI64.
493	* config/tc-sh64.c (shmedia_frob_section_type): Use
494	elf_section_data (sec)->tdata, not a specific BFD section flag, to
495	communicate the section as containing SHmedia code.  Describe why.
496	* config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
497	EF_SH64 regardless of ABI.
498	* config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
499	in error message.  Handle resolved expressions for
500	BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
501	BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
502	(shmedia_check_limits): Handle BFD_RELOC_64.
503	(sh64_adjust_symtab): Do not decrement the GAS symbol value for
504	a STO_SH5_ISA32 symbol, only the BFD value.
505	2000-12-11  Ben Elliston  <bje@redhat.com>
506	* config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
507	dwarf2_generate_asm_lineno.
508	2000-12-11  Hans-Peter Nilsson	<hpn@cygnus.com>
509	Handle PC-relative MOVI expansions with assembler relaxation.
510	Generate PC-relative relocs from 16-bit PC-relative expressions.
511	* config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
512	(shmedia_md_pcrel_from_section): ...here.
513	(shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
514	turned completely resolved.  Adjust relocation type for 16-bit
515	immediate operands that has turned PC-relative.	 Adjust back for
516	MD_PCREL_FROM_SECTION being applied twice.
517	(shmedia_md_convert_frag): Always emit reloc for expression with
518	global or weak symbol.	Handle relaxation result for PC-relative
519	expressions.
520	(shmedia_md_estimate_size_before_relax): An expression with a weak
521	or global symbol can not be relaxed.  Break out tests for
522	relaxable symbol into variable sym_relaxable.
523	<cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
524	UNDEF_MOVI)>: Break out any PC-relative expression and change
525	relaxation type.
526	(shmedia_build_Mytes): CSE &operands->operands[j] into variable
527	opjp.
528	<case A_IMMS16>: Fix typo for initial minor relaxation type of
529	MOVI expansion.	 If X_op_symbol of the immediate expression is
530	set, make an expression symbol for the argument to frag_var.
531	* config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
532	relaxations.
533	(END): Adjust for new relaxations.
534	(md_relax_table): Add entries for new relaxations.
535	2000-12-07  Ben Elliston  <bje@redhat.com>
536	* config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
537	2000-12-07  Hans-Peter Nilsson	<hpn@cygnus.com>
538	* config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
539	SHORI operand offsets in PT/PTA/PTB expansions.
540	2000-12-05  Hans-Peter Nilsson	<hpn@cygnus.com>
541	Implement DataLabel semantics.
542	* config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
543	shmedia_frob_file_before_adjust.
544	* config/tc-sh64.c [! OBJ_ELF]: Emit #error.
545	(DATALABEL_SUFFIX): Define.
546	(shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
547	symbol list to update "datalabel" symbols to their main symbol
548	counterparts.
549	(shmedia_frob_file_before_adjust): New.
550	(sh64_adjust_symtab): For remaining datalabel symbols, set to
551	undefined and set STT_DATALABEL.
552	(sh64_frob_label): Initialize TC symbol field.
553	(sh64_consume_datalabel): Actually implement semantics.	 New
554	parameter operandf, call it instead of expression.
555	(sh64_exclude_symbol): New.
556	* config/tc-sh64.h (md_parse_name): Pass on the function operand
557	to sh64_consume_datalabel.
558	(tc_symbol_new_hook): Define to tc_frob_symbol.
559	(TC_SYMFIELD_TYPE): Define to symbolS *.
560	(tc_frob_symbol): Define to call sh64_exclude_symbol.
561	2000-12-01  Hans-Peter Nilsson	<hpn@cygnus.com>
562	* config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
563	case.
564	(shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
565	generating dwarf2 debug information.
566	2000-11-30  Hans-Peter Nilsson	<hpn@cygnus.com>
567	* config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
568	elf64-sh64 for the 64-bit ABI.
569	* config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
570	option.
571	2000-11-29  Hans-Peter Nilsson	<hpn@cygnus.com>
572	* config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
573	case-insensitivity.
574	2000-11-27  Hans-Peter Nilsson	<hpn@cygnus.com>
575	* config/tc-sh64.c: Tweak comments, formatting and error messages.
576	(enum sh64_abi_values): New type.
577	(enum sh64_isa_values): New type.
578	(sh64_isa_mode): Replace shmedia_mode.	All referers changed.
579	(seen_shcompact_mode, seen_shmedia_mode): Delete.
580	(sh64_abi): Replace shmedia_64.
581	(shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
582	C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
583	(s_sh64_mode): Check validity for this target.
584	(sh64_target_format): Initialize defaults for ISA and ABI.
585	Fallback to old object format if no SH64 ISA or ABI has been
586	specified.
587	* config/tc-sh.c (md_parse_option): Check combinations for errors.
588	(sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
589	ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
590	* config/tc-sh64.h: Fix typo in comment.
591	2000-11-25  Hans-Peter Nilsson	<hpn@cygnus.com>
592	* config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
593	<PT fixups for absolute values>: Size will be longest, not
594	shortest.
595	(shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
596	all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
597	* config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
598	and l1 to hold lowercase of two first characters.  Change all
599	remaining TO_LOWER to tolower.
600	* config/tc-sh64.c (TO_LOWER): Delete.
601	(shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
602	(md_parse_name): Define.
603	(sh64_consume_datalabel): Declare.
604	(DOLLAR_DOT): Define.
605	* config/tc-sh64.c (shmedia_parse_exp): New.
606	(sh64_consume_datalabel): New; just ignoring datalabel semantics.
607	(shmedia_parse_reg): Remove const from src
608	parameter.
609	(shmedia_get_operands): Ditto for args parameter and ptr variable.
610	(shmedia_md_assemble): Ditto for op_end variable.
611	(shmedia_get_operand): Ditto for ptr parameter and src variable.
612	Use shmedia_parse_exp, not parse_exp.
613	* config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
614	parameter.  All callers changed.
615	(shmedia_get_operand): Add shmedia_arg_type parameter.	All
616	callers changed.
617	(shmedia_parse_reg): Put first two character in local variables.
618	Use tolower, not TO_LOWER.  If no register is found and argtype
619	indicates a control register, scan shmedia_creg_table
620	case-insensitive.
621	2000-11-24  Hans-Peter Nilsson	<hpn@cygnus.com>
622	* Makefile.am (CPU_TYPES): Add sh64.
623	(TARGET_CPU_CFILES): Add config/tc-sh64.c.
624	(TARGET_CPU_HFILES): Add config/tc-sh64.h.
625	Regenerate dependencies.
626	* Makefile.in: Regenerate.
627	* configure.in: Add support for sh64-*-elf*.
628	* configure: Regenerate.
629	* config/tc-sh64.h: New.
630	* config/tc-sh64.c: New.
631	* config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
632	.mode, .isa and .uaquad.
633	[HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
634	SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
635	[HAVE_SH64] (END): Define as 10.
636	[HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
637	SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
638	MOVI_64): Define.
639	[HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
640	SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
641	SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
642	MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
643	Define.
644	(md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
645	(md_begin) [HAVE_SH64]: Call shmedia_md_begin.
646	(parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
647	(md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
648	SHmedia instructions.  Handle state-change after switching to
649	SHcompact.
650	(md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
651	(md_parse_option) [HAVE_SH64]: Parse new options.
652	(md_show_usage) [HAVE_SH64]: Show usage of new options.
653	(md_convert_frag) [HAVE_SH64] <default>: Call
654	shmedia_md_convert_frag instead of abort.
655	(sh_force_relocation) [HAVE_SH64]: Also force relocation for
656	BFD_RELOC_SH_SHMEDIA_CODE.
657	(sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
658	SHcompact or SHmedia code.
659	(md_apply_fix) [HAVE_SH64] <default>: Return result from calling
660	shmedia_md_apply_fix instead of abort.
661	(md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
662	result from calling shmedia_md_estimate_size_before_relax instead
663	of calling abort.
664	(sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
665	do the work.
666	(tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
667	shmedia_init_reloc and do nothing more if it returns non-zero.
668	(sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
669	* po/POTFILES.in: Regenerate.
670	* po/gas.pot: Regenerate.
671
6722002-02-06  Alexandre Oliva  <aoliva@redhat.com>
673
674	* config/tc-sh.c (parse_at): Install the correct version of
675	2002-02-04's patch.
676	
677	* config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
678	assume fixP->fx_subsy is non-NULL.
679
6802002-02-04  Alexandre Oliva  <aoliva@redhat.com>
681
682	* config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
683	A_DISP_PC_ABS, and adjust it by -4.
684	(get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
685	expected.
686	(build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
687	the operand type is not A_DISP_PC_ABS.
688
6892002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
690
691	* config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
692	common and weak symbols.  Handle common and weak symbols as
693	undefined symbols with regards to GREG handling and merging.
694	(mmix_frob_file): Ditto.
695
6962002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
697
698	* configure.in (hppa-*-netbsd*): New target.
699	* configure: Regenerate.
700	* config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
701
7022002-02-02  Alan Modra  <amodra@bigpond.net.au>
703
704	* config/tc-v850.c: Add missing prototypes amd use old-style
705	function definitions.
706	(AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
707	(sdata_section tdata_section, zdata_section, sbss_section,
708	tbss_section, zbss_section, rosdata_section, rozdata_section,
709	scommon_section, tcommon_section, zcommon_section,
710	call_table_data_section, call_table_text_section): Delete.
711	(v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
712	v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
713	v850_call_table_data, v850_call_table_text): Delete.
714	(struct v850_seg_entry): New.
715	(v850_seg_table): New.
716	(SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
717	TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
718	ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
719	CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
720	(do_v850_seg): New.
721	(v850_seg): New.
722	(v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
723	recording of alignment.
724	(md_pseudo_table): Use v850_seg.
725	(md_begin): Don't init .call_table_data and .call_table_text here.
726	Set v850_seg_table bss entry.
727
7282002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
729
730	Support on-demand global register allocation by passing on
731	base-plus-offset relocs to the linker.
732	* config/tc-mmix.c: Tweak and fix typos in comments.
733 	(allocate_undefined_gregs_in_linker): New variable.
734	(OPTION_LINKER_ALLOCATED_GREGS): New option macro.
735	(md_longopts): Add --linker-allocated-gregs.
736	(md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
737	<case OPTION_LINKER_ALLOCATED_GREGS>: New.
738	(md_show_usage): Update text for -x.  Add text for
739	--linker-allocated-gregs.
740	(tc_gen_reloc): Derive default value for addend from val and
741	baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
742	emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
743	GREG if allocate_undefined_gregs_in_linker.
744	* doc/as.texinfo (Overview) <Target MMIX options>: Add
745	--linker-allocated-gregs.
746	* doc/c-mmix.texi (MMIX-Opts): Add blurb about
747	--linker-allocated-gregs.  Mention that it's implied by -x.
748	(MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
749	(MMIX-mmixal): Clarify dated comparison and location of MMIXware.
750
751	* config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
752
7532002-02-01  Alan Modra  <amodra@bigpond.net.au>
754
755	* Makefile.am: Run "make dep-am"
756	* Makefile.in: Regenerate.
757
7582002-01-31  Ivan Guzvinec  <ivang@opencores.org>
759
760	* config/tc-or32.c: New file.
761	* config/tc-or32.h: New file.
762	* configure.in: Add support for or32 targets.
763	* configure: Regenerate.
764	* config/obj-coff.c: Add support for or32 targets.
765	* config/obj-coff.h: Add support for or32 targets.
766	* Makefile.am: Add support for or32 targets.
767	* Makefile.in: Regenerate.
768	* NEWS: Mention support for OpenRISC.
769	* doc/Makefile.in: Regenerate.
770	* po/POTFILES.in: Regenerate.
771	* po/gas.pot: Regenerate.
772
7732002-01-30  Richard Sandiford  <rsandifo@redhat.com>
774
775	* config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
776	and mod.
777
7782002-01-29  Chris Demetriou  <cgd@broadcom.com>
779
780	* config/tc-mips.c (tc_gen_reloc): Arrange for
781	BFD_RELOC_PCREL_HI16_S relocations to be output relative to
782	their LO16 parts, even for ELF.
783
7842002-01-29  Daniel Jacobowitz  <drow@mvista.com>
785
786	* config/tc-i386.c: Protect definitions of true and false
787	from redefinition.
788
7892002-01-28  Jakub Jelinek  <jakub@redhat.com>
790
791	* config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
792	made because of .weak, if they are neither defined nor used in any
793	way.
794
7952002-01-27  Daniel Jacobowitz  <drow@mvista.com>
796
797	* configure: Regenerated.
798
7992002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
800
801	* doc/Makefile.am (install): Depend on install-info.
802	* doc/Makefile.in: Regenerate.
803
8042002-01-26  Nick Clifton <nick@redhat.com>
805
806	* po/fr.po: Updated version
807
8082002-01-24  Kazu Hirata  <kazu@hxi.com>
809
810	* config/tc-h8300.c (check_operand): Don't print a warning
811	when a valid 24-bit address is given to a 16-bit address
812	operand.
813
8142002-01-24  Alexandre Oliva  <aoliva@redhat.com>
815
816	* config/tc-sh.c (sh_elf_suffix): Removed.
817	(sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
818	sh_end_of_match, sh_parse_name): New functions.
819	(sh_elf_cons): Simplify.
820	(parse_exp): Reject misplaced PIC operands.
821	(md_undefined_symbol): Simplify.
822	(sh_fix_adjustable): Let @GOTOFF be adjusted.
823	(md_apply_fix3): Write @PLT and @GOTOFF addends in place.
824	(tc_gen_reloc): Move fixp subsy absolute value into addnumber.
825	Complain if subsy remains at the end.
826	* config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
827	(md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
828
8292002-01-22  Alexandre Oliva  <aoliva@redhat.com>
830
831	* config/tc-mn10300.c (xr_registers): Move `pc'...
832	(other_registers): ... here.
833
8342002-01-22  Alan Modra  <amodra@bigpond.net.au>
835
836	* Makefile.am: Run "make dep-am".
837	* Makefile.in: Regenerate.
838	* gas/po/POTFILES.in: Regenerate.
839
8402002-01-21  DJ Delorie  <dj@redhat.com>
841
842	* config/obj-coff.c (obj_coff_init_stab_section): Make the
843	stabstr_name allocation permanent, as it will be referenced from
844	the section hash.
845
8462002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
847
848	* configure.in (ia64-*-netbsd*): New target.
849	* configure: Regenerate. 
850
8512002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
852
853	* doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
854	to @dots call.
855	<Detailed description, ARM options>: Ditto.
856	* doc/c-arm.texi (ARM Options): Ditto.
857
8582002-01-18  Richard Earnshaw  <rearnsha@arm.com>
859
860	* tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
861	do_mia, do_mar and do_mra respectively.
862	(do_mav_*): Renamed from do_c_*.
863	(mav_reg_required_here, mav_parse_offset): Renamed from
864	cirrus_reg_required_here and cirrus_parse_offset respectively.
865	(MAV_MODE?): Renamed from CIRRUS_MODE?.
866
8672002-01-18  Richard Earnshaw  <rearnsha@arm.com>
868	    Keith Walker  <keith.walker@arm.com>
869
870	* tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
871	(insns): Add pattern for bxj instruction.
872	(do_bxj): New function.
873	(arm_cpus): Add arm926ej.
874	(arm_archs): Add armv5tej.
875
8762002-01-18  Richard Earnshaw  <rearnsha@arm.com>
877
878	* doc/c-arm.texi: Add new fpe options to list of supported flags.
879
8802002-01-19  Keith Walker  <keith.walker@arm.com>
881
882	* tc-arm.c (arm_fpus): Add fpe2 and fpe3.
883
8842002-01-18  Richard Earnshaw  <rearnsha@arm.com>
885
886	* NEWS: Mention new ARM command-line options and VFP support.
887
888	* config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All 
889	uses changed.
890	(ARM_CEXT_MAVERICK): Similarly.
891	(ARM_ANY): Now means any core instruction.
892	(CPU_DEFAULT): Default to ARM_ANY.
893	(uses_apcs_26, atcps, support_interwork, uses_apcs_float)
894	(pic_code): Declare for all object types.  Make type int.
895	(legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
896	(march_fpu_opt, mfpu_opt): Declare.
897	(md_longopts): Tidy up conditional definitions.
898	(arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
899	(arm_long_opts): New tables.
900	(arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
901	(arm_parse_extension): New function.
902	(md_parse_option): Rewrite using new table-driven system.
903	(md_show_usage): Use new table-driven system.
904	(md_begin): Calculate cpu_variant from command line option data.
905	* doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
906	command-line options.
907	* doc/c-arm.texi: Likewise.
908
9092002-01-18  Andreas Jaeger  <aj@suse.de>
910
911	* as.c (parse_args): Update year.
912
9132002-01-17  Timothy Wall  <twall@alum.mit.edu>
914
915	* config/tc-tic54x.c (encode_address): Add a more informative
916	warning about incorrect syntax.
917
9182002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
919
920	* po/gas.pot: Regenerate.
921
9222002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
923
924	* macro.c (get_any_string): Add no-c-format comment to prevent
925	confusion when translating string.
926	* gasp.c (get_any_string): Add no-c-format comment to prevent
927	confusion when translating string.
928
9292002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
930	    Johannes Stezenbach <js@convergence.de>
931	* config/tc-mips.c (percent_op): Ensure longer percent_op's are
932	matched before the shorter ones.
933	(my_getSmallParser): Fix handling of nested parentheses in
934	percent_op's. Code cleanup.
935	(my_getPercentOp): New function, code from my_getSmallParser.
936	(my_getSmallExpression): Fix handling of closing parentheses.
937	Code cleanup. Better comments.
938
9392002-01-16  Nick Clifton <nickc@redhat.com>
940
941	po/tr.po: New file: Turkish translation.
942	configure.in (LINGUAS): Add "tr".
943	configure: Regenerate.
944
9452002-01-15  Richard Earnshaw  <rearnsha@arm.com>
946
947	Support for VFP instructions
948	* tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
949	(cp_address_required_here): New argument wb_ok.  When false, do not
950	accept write-back forms of addressing.  Change all callers.
951	(FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
952	(FPU_VFP_EXT_V2): Define.
953	(FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
954	Define in terms of above.
955	(vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
956	(vfp_reg): New struct.
957	(vfp_regs): New array of registers.
958	(insns): Add VFP instructions.
959	(sn_table): New array of VFP single-precision register names.
960	(dn_table): New array of VFP double-precision register names.
961	(all_reg_maps): Add the new register tables.
962	(arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
963	(vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
964	(do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
965	(do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
966	(do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
967	(do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
968	(do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
969	(do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
970	(vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
971	(do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
972	(do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
973	(do_vfp_sp_dp_cvt): New functions.
974	(md_begin): Set soft-float flag for appropriate VFP work.
975	(md_atof): Handle VFP-format doubles.
976	(md_parse_option): Handle VFP command-line options.
977	(md_show_usage): Display VFP command-line options.
978
9792002-01-15  Richard Earnshaw  <rearnsha@arm.com>
980
981	* tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
982	various command line options.
983
9842002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
985
986	* config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
987	vtinherit relocs.
988	(xstormy16_md_apply_fix3): Do not return a value.
989
9902002-01-14  Richard Earnshaw  <rearnsha@arm.com>
991
992	* tc-arm.c (md_longopts): On targets that aren't bi-endian, support
993	the -EL/-EB option that matches the target's endianness.
994	(md_parse_option): Likewise.
995
9962002-01-14  Richard Earnshaw  <rearnsha@arm.com>
997
998	* tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
999	is not dependent on ARM_BI_ENDIAN.
1000
10012002-01-14  Richard Earnshaw  <rearnsha@arm.com>
1002
1003	* tc-arm.c (all error messages): Normalize capitalization of messages.
1004
1005	* tc-arm.h (md_operand): Delete define.
1006	* tc-arm.c (in_my_get_expression): New static variable.
1007	(my_get_expression): Set and clear it.
1008	(md_operand): New function.  If called from my_get_expression
1009	put the error in inst.error.
1010	(output_inst): Now takes argument of instruction being assembled.
1011	Print it out with any error message.
1012	(do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
1013	with '=' syntax.
1014	(end_of_line): Don't update inst.error if it is already set.
1015
10162002-01-11  Richard Earnshaw  <rearnsha@arm.com>
1017
1018	* tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
1019	op that can be translated into a mvn instruction.
1020
10212002-01-11  Steve Ellcey  <sje@cup.hp.com>
1022
1023	* gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
1024	setting default md.flags.
1025	(SHT_INIT_ARRAY): New elf special section used by HP-UX.
1026	(SHT_FINI_ARRAY): New elf special section used by HP-UX.
1027	* gas/config/tc-ia64.c (setup_unwind_header): Add support
1028	for 32 bit unwind info blocks.
1029	(generate_unwind_image): Add support for different types
1030	of unwind images (32 bits and/or big-endian).
1031	(ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
1032	(ia64_target_format): Add support for hpux target formats.
1033	(ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
1034	(ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
1035	SHT_FINI_ARRAY elf section types.
1036
10372002-01-10  Richard Earnshaw  <rearnsha@arm.com>
1038
1039	* tc-arm.c (struct reg_entry): Move before prototypes.
1040	(int_register, cp_register, fp_register): Delete.
1041	(reg_table): Delete.  Replaced with ...
1042	(rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
1043	(mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
1044	(mav_dspsc_table): ... one table per register set.
1045	(arm_reg_hsh): Delete.
1046	(struct reg_map): New structure.
1047	(all_reg_maps): New array.
1048	(enum arm_reg_type): New enums.
1049	(build_reg_hsh): New function.
1050	(insert_reg_alias): Use hash table passed by caller.  Adjust all
1051	callers.
1052	(create_register_alias): New function, split out from ...
1053	(md_assemble): ... here.
1054	(md_begin): Build new register hash tables.
1055	(arm_reg_parse): New argument for the hash table to search.  Adjust all
1056	callers.
1057	(arm_reg_parse_any): New function.
1058	(co_proc_number): Look up the processor number in the processor hash
1059	table.
1060	(cirrus_regtype): Delete.
1061	(cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
1062	(cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
1063	(ARM_EXT_MAVERICKsc_register): Delete.
1064	(do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
1065	(do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
1066	functions.
1067	(do_c_triple_4, do_c_triple_5): Delete.
1068	(do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
1069	(do_c_quad_6): Delete.
1070	(do_c_quad_6[ab]): New functions.
1071	(do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
1072	arguments to use new register parsing methods.
1073	(cirrus_reg_required_here): Likewise.
1074	(insns): Reclassify cirrus maverick worker functions.
1075	(cirrus_valid_reg): Delete.
1076
10772002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1078
1079	* configure.in (sh*le): Set cpu_type=sh and endian=little.
1080	(sh*-*-netbsdelf*): New target.
1081	* configure: Regenerate.
1082	* tc-sh.h: Update copyright years.
1083	(TARGET_FORMAT): Add version for TE_NetBSD.
1084
10852002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1086
1087	* read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
1088	negative.
1089
10902002-01-06  Alan Modra  <amodra@bigpond.net.au>
1091
1092	* config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
1093	* config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
1094
10952002-01-05  Daniel Jacobowitz  <drow@mvista.com>
1096
1097	* tc-mips.c (mips_cprestore_valid): New flag.
1098	(mips_frame_reg_valid): New flag.
1099	(macro) [M_JAL_2]: Check both flags.
1100	[M_JAL_A]: Likewise.
1101	(s_cprestore): Set mips_cprestore_valid.
1102	(tc_get_register): If setting mips_frame_reg, set
1103	mips_frame_reg_valid and clear mips_cprestore_valid.
1104	(s_mips_ent): Clear both flags.
1105	(s_mips_end): Clear both flags.
1106
11072002-01-05  Alan Modra  <amodra@bigpond.net.au>
1108
1109	* write.c (write_object_file): Make use of bfd_section_list_remove.
1110	* config/obj-ecoff.c (ecoff_frob_file): Likewise.
1111	* config/tc-mmix.c (mmix_frob_file): Likewise.
1112
11132002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1114
1115	* configure.in (i386-*-netbsdelf*): Collapse target into...
1116	(i386-*-netbsd*): ...this.  Add support for x86-64.
1117	* configure: Regenerated.
1118
11192002-01-03  matthew green  <mrg@redhat.com>
1120
1121	* config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
1122
11232002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
1124
1125	* config/tc-m68k.c (md_estimate_size_before_relax): Test for a
1126	NULL frag link.
1127
1128For older changes see ChangeLog-0001
1129
1130Local Variables:
1131mode: change-log
1132left-margin: 8
1133fill-column: 74
1134version-control: never
1135End:
1136