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