ChangeLog revision 104834
12002-10-11  Michel Six  <msix@ccr.jussieu.fr>
2	    Alan Modra  <amodra@bigpond.net.au>
3
4	* config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
5	(md_estimate_size_before_relax): Likewise for 8 bit branches.
6
72002-09-24  Alan Modra  <amodra@bigpond.net.au>
8
9	* config/tc-i386.c (process_operands): Warn about "lea" segment
10	overrides.
11
122002-09-23  Daniel Jacobowitz  <drow@mvista.com>
13
14	Merge from mainline:
15	2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
16	* write.c: Delete set_segment_vma and prototype. Update all callers.
17
18	2002-09-19  Jakub Jelinek  <jakub@redhat.com>
19	* config/tc-i386.c (tc_i386_fix_adjustable): Handle
20	BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
21	(BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
22	if not defined.
23	(lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
24	(md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
25	BFD_RELOC_386_TLS_GOTIE.
26
27	2002-09-16  Chris Demetriou  <cgd@broadcom.com>
28	* config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
29	(IS_SEXT_16BIT_NUM): New macro.
30	(macro_build_ldst_constoffset): New function, to build a set of
31	instructions to do a load or store from a constant offset relative
32	to a given register.
33	(macro, s_cprestore): Use macro_build_ldst_constoffset to implement
34	.cprestore pseudo-op.
35
36	2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
37	* dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
38	(out_debug_info): Likewise.
39
40	2002-09-13  Nick Clifton  <nickc@redhat.com>
41	* config/tc-ppc.c (md_assemble): Do not count FAKE operands
42	when deciding if any operands have been skipped.
43
44	2002-09-11  Jakub Jelinek  <jakub@redhat.com>
45	* config/tc-i386.c (md_apply_fix3): Allow addend for
46	BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
47	BFD_RELOC_386_TLS_LE_32.
48
49	2002-09-11  Nick Clifton  <nickc@redhat.com>
50	* po/tr.po: Updated Turkish translation.
51
52	2002-09-04  Nick Clifton  <nickc@redhat.com>
53	* config/tc-ppc.c (md_begin): Do not insert non-BookE32
54	instructions into the hash table if the target cpu is the BookE32.
55
56	2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
57	* config/tc-mips.c (macro2): Implement rotates by zero using shifts
58	by zero.
59
60	2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
61	* config/tc-mips.c (macro_build_jalr): Make sure we generate
62	the fix-up against on the right frag.
63	(s_cpsetup): Likewise.  Parse third argument as expression, to
64	handle global symbols and forward/backward labels correctly.
65
66	2002-08-14  Nick Clifton  <nickc@redhat.com>
67	* read.c (stringer): Catch attempts to create strings in the abs
68	section.
69
70	2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
71	* config/tc-mips.c (mips_ip): Don't work out the value of
72	constant %hi()s here.
73
74	2002-08-10  Alan Modra  <amodra@bigpond.net.au>
75	* config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
76	for ELF, and don't bother checking ELF relocs when non-ELF.
77	(i386_immediate): Allow absolute_section expressions for aout.
78	(i386_displacement): Likewise.  Also test bfd_is_com_section.
79	(md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
80	(md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
81	not when fx_addsy.  Remove dead code.
82
83	2002-08-06  George France <france@handhelds.org>
84	* config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
85	and m21264b processor names and cpu types.
86	* doc/c-alpha.texi: Documented new types.
87
88	2002-08-06  Alan Modra  <amodra@bigpond.net.au>
89	* config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
90
91	2002-08-03  Jakub Jelinek  <jakub@redhat.com>
92	* config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
93	at start of insn, pass it to output_disp and output_imm.
94	(output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
95	in displacement for R_386_32 reloc, use R_386_GOTPC and compute
96	properly addend.
97	(output_imm): Added arguments.  Compute properly addend for
98	R_386_GOTPC.
99	(md_apply_fix3): Remove R_386_GOTPC handling.
100
101	2002-07-31  Momchil Velikov  <velco@fadata.bg>
102	* config/tc-v850.c (md_assemble): Fix range check for immediate
103	operand.
104
105	2002-07-04  Bruno Haible  <bruno@clisp.org>
106	* config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
107	(TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
108	* config/tc-i386.c (i386_target_format): Likewise.
109	* config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
110	(TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
111
1122002-08-26  Alan Modra  <amodra@bigpond.net.au>
113
114	* config/tc-w65.c (md_section_align): Fix typo.
115	(md_parse_option): Return 0, not 1.
116
1172002-08-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
118
119	* config/tc-mips.c (macro): Handle a register plus a 16-bit
120	immediate offset in "dla" and "la" expansions.
121
1222002-08-01  Daniel Jacobowitz  <drow@mvista.com>
123
124	Merge from mainline:
125	2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
126	* config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
127	handling to BFD_RELOC_MIPS16_GPREL.
128
1292002-08-01  H.J. Lu  <hjl@gnu.org>
130	    Daniel Jacobowitz  <drow@mvista.com>
131
132	* dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
133	.debug_line section unless it has line information.
134
1352002-07-31  Daniel Jacobowitz  <drow@mvista.com>
136
137	Merge from mainline:
138	2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
139	* tc-mips.c (load_address): Don't clobber $at when loading a
140	64-bit address in non-PIC code if noat is in effect.
141	(macro): Likewise.
142
143	2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
144	* config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
145	used in division/multiply macro expansions similarly to how they
146	are used in the variants with break instructions.
147	(macro2): Likewise.
148
1492002-07-26  Alan Modra  <amodra@bigpond.net.au>
150
151	* config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
152	rather than PPC_OPCODE_32 for powerpc64*.
153
1542002-07-25  Nick Clifton  <nickc@redhat.com>
155
156	* po/es.po: Updated Spanish translation.
157	* po/fr.po: Updated French translation.
158
1592002-07-24  Nick Clifton  <nickc@redhat.com>
160
161	* po/sv.po: Updated Swedish translation.
162	* po/es.po: Updated Spanish translation.
163
1642002-07-23  Daniel Jacobowitz  <drow@mvista.com>
165
166	* po/gas.pot: Regenerated.
167
1682002-07-23  Nick Clifton  <nickc@redhat.com>
169
170	* po/fr.po: Updated French translation.
171
1722002-07-16  Moritz Jodeit  <moritz@jodeit.org>
173
174	* config/tc-z8k.c (build_bytes): Correct order of memset args.
175
1762002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
177
178	* NEWS: Add 'Changes in 2.13'.
179
1802002-07-15  Matt Fredette  <fredette@netbsd.org>
181
182	* config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
183
1842002-07-12  Alan Modra  <amodra@bigpond.net.au>
185
186	* config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
187	case with non CODE_64BIT case.  Don't warn on "qword ptr" if
188	not CODE_64BIT.
189
1902002-07-11  Alan Modra  <amodra@bigpond.net.au>
191
192	* config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
193	(ppc_frob_file_before_adjust): New function.
194	* config/tc-ppc.h (tc_frob_symbol): Don't define.
195	(ppc_elf_frob_symbol): Don't declare.
196	(tc_frob_file_before_adjust): Define.
197	(ppc_frob_file_before_adjust): Declare.
198
199	* config/tc-ppc.c (md_pseudo_table): Warning fix.
200	(ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
201	flags.
202	(ppc_size): Delete.
203	(ppc_xcoff64): Rename to ppc_obj64.
204	(md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
205	(ppc_set_cpu): Set PPC_OPCODE_32 too.
206	(ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
207	or bfd_mach_ppc.
208	(ppc_target_format): Use ppc_obj64 to select format.
209	(md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
210	(ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
211	(ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
212	(tc_frob_symbol): Likewise.
213	(md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
214	BFD_DEFAULT_TARGET_SIZE.
215	(ppc_tc): Likewise.
216	(ppc_is_toc_sym): Likewise.
217	(md_apply_fix3): Likewise.
218	* config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
219	BFD_DEFAULT_TARGET_SIZE.
220	(ELF_TC_SPECIAL_SECTIONS): Likewise.
221	(tc_frob_symbol): Likewise.
222
2232002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
224
225	* config/tc-mips.c (macro_build): Handle MIPS16 insns.
226	(mips_ip): Likewise.
227
2282002-07-09  Alan Modra  <amodra@bigpond.net.au>
229
230	* config/tc-i386.c (md_pseudo_table <file>): Warning fix.
231	(BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
232	(md_apply_fix3): Formatting.  Remove redundant test.
233	(tc_gen_reloc): Remove redundant code.
234	(tc_i386_force_relocation): Delete.  Movy body of function to..
235	* config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
236
2372002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
238
239	* configure.in: Add hppa-*-openbsd* target, change
240	alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
241	with sparc64 cpu.
242	* configure: Regenerate.
243
2442002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
245
246	* config/tc-mips.c (macro): Shift the 32-bit address range
247	accessible with a lone "lui" down by 32768.
248
2492002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
250
251	* config/tc-mips.c (load_address): Use non-trapping "daddu"
252	instead of "dadd" in address calculations.
253	(macro): Likewise.
254
2552002-07-08  Alan Modra  <amodra@bigpond.net.au>
256
257	* config/tc-i386.c (process_suffix): Remove intel mode movsx and
258	movzx fudges.
259	(md_assemble): Instead, zap the suffix here.
260
2612002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
262
263	* NEWS: Remove next release number until the release is actually
264	upon us.
265
2662002-07-03  Alan Modra  <amodra@bigpond.net.au>
267
268	* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
269	Run "make dep-am".
270	* Makefile.in: Regenerate.
271
2722002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
273
274	* config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
275	to symbols in merge sections, even non pc-relative ones.
276
2772002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
278
279	* config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
280
2812002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
282
283	* config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
284	.softregs and .eeprom.
285
2862002-06-28  David O'Brien  <obrien@FreeBSD.org>
287
288	* NEWS: Note the next release is 2.13.
289
2902002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
291
292	* po/tr.po: New translation imported.
293
2942002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
295
296	* ecoff.c: (get_tag): Replace strcpy with xstrdup.
297	(ecoff_directive_def): Likewise.
298	(ecoff_directive_tag): Likewise.
299	* listing.c (file_info): Likewise.
300	* hash.c (what): Likewise.
301
3022002-06-25  H.J. Lu <hjl@gnu.org>
303
304	* Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
305	* Makefile.in: Regenerated.
306
3072002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
308
309	* config/tc-sh.c (get_specific): Revert 2002-05-01 change.
310	(assemble_ppi): Generate warning if the same register is used
311	twice as destination in the same padd / pmuls instruction.
312
3132002-06-18  Dave Brolley  <brolley@redhat.com>
314
315	From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
316	* po/POTFILES.in: Add tc-frv.c, tc-frv.h.
317	* configure.in: Support frv-*-*.
318	* Makefile.am (CPU_TYPES): Add frv.
319	(TARGET_CPU_CFILES): Add tc-frv.c.
320	(TARGET_CPU_HFILES): Add tc-frv.h.
321	(DEPTC_frv_coff): New variable.
322	(DEPTC_frv_elf): New variable.
323	(DEPOBJ_frv_coff): New variable.
324	(DEPOBJ_frv_elf): New variable.
325	(DEP_frv_coff): New variable.
326	(DEP_frv_elf): New variable.
327	* tc-frv.c: New file.
328	* tc-frv.h: New file.
329
3302002-06-17  Catherine Moore <clm@redhat.com>
331
332	* config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
333
3342002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
335
336	* config/tc-sh.c (assemble_ppi): Initialize reg_n.
337
3382002-06-17  Tom Rix <trix@redhat.com>
339
340	* config/tc-i370.h (tc_comment_chars): Define for i370-elf.
341
3422002-06-14  H.J. Lu  <hjl@gnu.org>
343	    Daniel Jacobowitz  <drow@mvista.com>
344
345	* dwarf2dbg.h (dwarf2_directive_file): Return char *.
346	* dwarf2dbg.c (dwarf2_directive_file): Return filename.
347	* config/tc-mips.c (s_mips_file): Call s_app_file_string
348	and new_logical_line for the first .file directive.
349	* read.c (s_app_file_string): New function.
350	(s_app_file): Call it.
351	* read.h (s_app_file_string): Add declaration.
352
3532002-06-14  Daniel Jacobowitz  <drow@mvista.com>
354
355	* configure.in: Remove MIPS_STABS_ELF.
356	* configure: Regenerated.
357	* config.in: Regenerated.
358	* config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
359	for MIPS targets.
360	* config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
361	".extern".
362	(pdr_seg): Declare unconditionally.
363	(md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
364	(s_mips_end): Likewise.  Generate stabs function markers.
365	(s_mips_ent): Generate stabs function markers.
366	(s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
367	ELF.
368	(s_mips_mask): Likewise.
369	(mips_flag_mdebug): New.
370	(md_longopts): Add "mdebug" and "no-mdebug".
371	(md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
372	(mips_after_parse_args): Set mips_flag_mdebug.
373	* doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
374
3752002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
376
377	* config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
378	value twice for RELA relocations.
379
3802002-06-12  Ben Elliston  <bje@redhat.com>
381
382	* symbols.c (resolve_symbol_value): Initialise final_val.
383
384	* subsegs.c (subsegs_print_statistics): Cast frchp to void *.
385
3862002-06-11  Tom Rix  <trix@redhat.com>
387
388	* config/tc-ppc.c (ppc_subseg_align): Delete.
389	(ppc_change_csect): Default csect align is 2.
390	* config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
391
3922002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
393
394	* config/tc-avr.c (mcu_types): Update.
395
3962002-06-08  Matt Thomas  <matt@3am-software.com>
397
398	* configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
399	(vax-*-netbsd*): New targets.
400	* configure: Regenerate.
401	* config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
402	* config/tc-vax.c: Add support for ELF and PIC.
403	(flag_want_pic): New flag.
404	(float_cons): Fix prototype.
405	(md_apply_fix3): Adjust for BFD_ASSEMBLER.
406	(md_assemble): Introduce a new is_absolute local, and use it
407	rather than repeating the test.  Make fatal errors actually
408	fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
409	Add support for ELF.  Add support for PIC.
410	(md_convert_frag): Adjust for BFD_ASSEMBLER.
411	(tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
412	BFD_ASSEMBLER.
413	(vax_reg_parse): Make the % register prefix mandatory for ELF,
414	optional for a.out, and not allowed for VMS.  Adjust all callers.
415	(md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
416	(md_create_long_jump): Likewise.
417	(md_undefined_symbol): Likewise.
418	(md_section_align): Likewise.
419	(md_shortopts): Allow -k and -K for ELF.
420	(md_parse_option): Set flag_want_pic if -k or -K.
421	(tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
422	(tc_gen_reloc): New function if BFD_ASSEMBLER.
423	* config/tc-vax.h (tc_headers_hook): Remove.
424	(TARGET_FORMAT): Set according to object format and target
425	environment.
426	(BFD_ARCH, TARGET_ARCH): Define.
427	(NO_RELOC): Adjust for BFD_ASSEMBLER.
428	(TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
429	(tc_fix_adjustable): Define if BFD_ASSEMBLER.
430	* config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
431
4322002-06-08  Alan Modra  <amodra@bigpond.net.au>
433
434	* Makefile.am: Run "make dep-am".
435	* Makefile.in: Regenerate.
436
437	* as.c: Replace CONST with const.
438	* write.c: Likewise.
439	* config/obj-coff.c: Likewise.
440	* config/tc-a29k.c: Likewise.
441	* config/tc-arm.c: Likewise.
442	* config/tc-dlx.c: Likewise.
443	* config/tc-h8300.c: Likewise.
444	* config/tc-h8500.c: Likewise.
445	* config/tc-i370.c: Likewise.
446	* config/tc-i860.c: Likewise.
447	* config/tc-i960.c: Likewise.
448	* config/tc-m68hc11.c: Likewise.
449	* config/tc-m68k.c: Likewise.
450	* config/tc-m88k.c: Likewise.
451	* config/tc-mcore.c: Likewise.
452	* config/tc-mips.c: Likewise.
453	* config/tc-ns32k.c: Likewise.
454	* config/tc-pdp11.c: Likewise.
455	* config/tc-pj.c: Likewise.
456	* config/tc-s390.c: Likewise.
457	* config/tc-sh.c: Likewise.
458	* config/tc-sparc.c: Likewise.
459	* config/tc-tahoe.c: Likewise.
460	* config/tc-tic80.c: Likewise.
461	* config/tc-v850.c: Likewise.
462	* config/tc-vax.c: Likewise.
463	* config/tc-w65.c: Likewise.
464	* config/tc-z8k.c: Likewise.
465
4662002-06-08  Daniel Jacobowitz  <drow@mvista.com>
467
468	Based on patch from Matt Green:
469	* config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
470	* config/tc-mips.c (s_mips_file): Renamed from s_file.
471	(s_mips_loc): New function.
472	(mips_nonecoff_pseudo_table): Call them.
473	(append_insn): Call dwarf2_emit_insn.
474
4752002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
476
477	* config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
478	to -1.
479	(file_ase_mips16): New veriable.
480	(mips_eabi64): Remove.
481	(CPU_HAS_MIPS16): New define.
482	(CPU_HAS_MDMX): Fix data type.
483	(md_begin): Code cleanup. Use file_ase_mips16.
484	(mips_elf_final_processing): Handle mips16 header flag.
485	Handle EABI flag without intermediate variable.
486
4872002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
488
489	* doc/as.texinfo: Update MIPS documentation.
490
4912002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
492
493	* config/tc-mips.c: Add define for $zero register.
494	(md_begin): Add $zero as alias name for $0.
495	(insn_uses_reg): Use ZERO define.
496	(mips_ip): Add $zero as alias name for $0.
497	(mips16_ip): Likewise.
498	(s_cplocal): Demand empty rest of input line.
499	(tc_get_register): Likewise. Add support for $kt0, kt1 register
500	names. Use ZERO define. Fix input_line_pointer progress.
501
5022002-06-07  Alan Modra  <amodra@bigpond.net.au>
503
504	* symbols.c: Replace CONST by const throughout.
505	(symbol_find_exact): Split out from..
506	(symbol_find_base): ..here.
507	* symbols.h: Replace CONST by const throughout.
508	(symbol_find_exact): Declare.
509	* config/obj-elf.c: #include "struc-symbol.h".
510	(elf_frob_file): If group name matches an exported symbol, use that
511	symbol for the signature and ".group" as the section name.
512
5132002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
514
515	* config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
516	but warn about it.
517	* testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
518	* testsuite/gas/sh/pcrel.d: Update.
519	* testsuite/gas/sh/pcrel.l: New file.
520
5212002-06-06  Daniel Jacobowitz  <drow@mvista.com>
522
523	* tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
524	and mips_opts.ase_mdmx if they are uninitialized.
525
5262002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
527
528	* gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
529	(hppa_force_relocation): Check if a stub just before the start symbol
530	of the last call_info is reachable before forcing relocation.  Fix
531	typo.
532
5332002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
534
535	* config/tc-mips.c (mips_after_parse_args): New function.
536	(md_begin): Move processing of defaults to mips_after_parse_args.
537	config/tc-mips.h (md_after_parse_args): Define.
538
5392002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
540
541	* configure.in (sh5*): Set cpu_type to sh64 and endian to big.
542	(sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
543	(sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
544	* configure: Regenerate.
545	* config/tc-sh64.c (sh64_target_format): Add support for NetBSD
546	environment.
547
5482002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
549
550	* config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
551
5522002-06-04  Alan Modra  <amodra@bigpond.net.au>
553
554	* config/obj-elf.c (obj_elf_change_section): Set and check elf
555	linkonce flag.  Print all warnings.
556	(obj_elf_section): Parse ",comdat" for groups.
557	(elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
558	consistency of comdat flag.
559
5602002-06-02  Richard Henderson  <rth@redhat.com>
561
562	* config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
563	with LITERALs without sequence numbers.
564
5652002-06-01  Richard Henderson  <rth@redhat.com>
566
567	* config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
568	Rename them LITUSE_ALPHA_*.
569
5702002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
571
572	* config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
573	accept parentheses enclosed register lists.
574
5752002-05-31  Alan Modra  <amodra@bigpond.net.au>
576
577	* Makefile.am: Run "make dep-am".
578	* Makefile.in: Regenerate.
579	* po/POTFILES.in: Regenerate.
580
5812002-05-31  Graeme Peterson  <gp@qnx.com>
582
583	* configure.in: Add i386-*-nto-qnx*.
584	* configure: Regenerate.
585
5862002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
587
588	* config/tc-mips.c (mips_ip): Use unsigned long values for
589	warning output.
590
5912002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
592
593	* config/tc-mips.c (s_cpsetup): Fix initialization of
594	mips_cpreturn_register and mips_cpreturn_offset.
595
5962002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
597
598	* config/tc-mips.c (s_cpsetup): Fix comment.
599
6002002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
601
602	* config/tc-mips.c (md_begin): Add $ra as alias name for $31.
603	(mips_ip): Likewise.
604	(mips16_ip): Likewise.
605	(tc_get_register): Likewise.
606
6072002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
608	    Ed Satterthwaite  <ehs@broadcom.com>
609
610	* config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
611	(mips_opts): Initialize "ase_mdmx" member.
612	(file_ase_mdmx): New variable.
613	(CPU_HAS_MDMX): New macro.
614	(md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
615	based on command line options and configuration defaults.
616	(macro_build): Note in comment that use of MDMX in macros is
617	not currently allowed.
618	(validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
619	"Z" MDMX operand types.
620	(mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
621	and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
622	types.
623	(OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
624	Add support for "-mdmx" and "-no-mdmx" options.
625	(OPTION_ELF_BASE): Move to accomodate new options.
626	(s_mipsset): Support ".set mdmx" and ".set nomdmx".
627	(mips_elf_final_processing): Set MDMX ASE ELF header flag if
628	file_ase_mdmx was set.
629	* doc/as.texinfo: Document -mdmx and -no-mdmx options.
630	* doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
631	nomdmx" directives.
632
6332002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
634
635	* config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
636	OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
637	command line switch conforming to gcc conventions.
638	* doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
639
6402002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
641
642	* config/tc-mips.c (macro_build_jalr): New Function.
643	(md_begin): NewABI uses big GOTs.
644	(macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
645	BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
646	(load_address): Add some NewABI PIC support.
647	(macro): Likewise.
648	(md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
649	(tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
650
6512002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
652
653	* config/tc-mips.c (load_address): Use mips_gp_register instead
654	of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
655	instead.
656	(macro): Use mips_gp_register instead of hardcoded value.
657
6582002-05-30  Richard Henderson  <rth@redhat.com>
659
660	* expr.h (operatorT): Add O_md17..O_md32.
661	* config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
662	O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
663	O_tprelhi, O_tprello, O_tprel): New.
664	(USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
665	(DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
666	(LITUSE_TLSGD, LITUSE_TLSLDM): New.
667	(struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
668	saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
669	(md_apply_fix3): Handle TLS relocations.
670	(alpha_force_relocation, alpha_fix_adjustable): Likewise.
671	(alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
672	associated TLS reloc.  Check lituse_tls relocs match up.
673	(emit_insn): Handle TLS relocations.
674	(ldX_op): Remove.
675
676	* doc/c-alpha.texi: Add docs for tls relocations.
677
6782002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
679
680	* config/tc-mips.c (mips_gprel_offset): New variable.
681	(s_gpvalue): Use it.
682
6832002-05-30  Diego Novillo  <dnovillo@redhat.com>
684
685	* gas/config/tc-d10v.c (check_resource_conflict): Only check
686	write-write conflicts.
687	(md_assemble): Reformat introductory comment.
688	(parallel_ok): Prevent packing only if the first
689	instruction cannot be packed.
690
6912002-05-30  Jason Eckhardt <jle@redhat.com>
692	    Tom Rix <trix@redhat.com>
693
694	* config/tc-d10v.c (build_insn): Check for immediates.
695
6962002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
697
698	* config/tc-mips.c: Replace GP in comments by $gp.
699	(mips_big_got): Initialize.
700	(mips_trap): Initialize.
701	(load_address): Use mips_gp_register instead of hardcoded value.
702	Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
703	(macro): Use mips_gp_register instead of hardcoded value.
704	(macro2): Change load_address calls.
705	(md_pcrel_from): Comment formatting.
706	(s_cpload): Use mips_gp_register instead of hardcoded value.
707	(s_cprestore): Likewise. Comment formatting.
708	(s_gpword): Fix data type.
709	(s_cpadd): Use mips_gp_register instead of hardcoded value.
710	(nopic_need_relax): Replace GP in comments by $gp.
711	(mips_elf_final_processing): Better comment.
712
7132002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
714
715	* configure.in: Add DLX configuraton
716	* Makefile.am: Add DLX configuraton
717	* configure: Regenerate.
718	* Makefile.in: Regenerate.
719	* config/tc-dlx.c: New file.
720	* config/tc-dlx.h: New files.
721	* NEWS: Mention new support.
722
7232002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
724
725	* config/obj-coff.c (write_object_file): Add missing semicolon.
726
7272002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
728
729	* config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
730	by the define. Remove superfluous check of mips_opts.mips16.
731	(append_insn): Likewise. Canonicalize variable increments.
732	(macro_build): Canonicalize variable increments.
733	(macro_build_lui): Likewise.
734	(load_register): Likewise.
735	(load_address): Move pointer initialization.
736	(macro): Move pointer to a more local scope. Canonicalize variable
737	increments. Better comments. Replace magic constant for RA by the
738	define.
739	(macro2): Replace magic constant for RA by the define. Canonicalize
740	variable increments.
741	(mips_ip): Canonicalize variable increments.
742	(mips16_ip): Replace magic constant for RA by the define.
743	(my_getSmallParser): Canonicalize variable increments/decrements.
744	(my_getPercentOp): Likewise.
745	(my_getSmallExpression): Likewise.
746	(s_align): Likewise.
747	(s_mipsset): Likewise.
748	(s_cpsetup): Likewise.
749	(s_insn): Remove superfluous check of mips_opts.mips16.
750	(s_mips_stab): Likewise.
751	(mips_handle_align): Canonicalize variable increments.
752	(s_mips_ent): Likewise.
753	(s_mips_end): Add comment.
754
7552002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
756
757	* configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
758	* configure: Regenerate.
759
7602002-05-25  Alan Modra  <amodra@bigpond.net.au>
761
762	* Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
763	* Makefile.in: Regenerate.
764	* dep-in.sed: Reorder to match OBJS in Makefile.am.
765	* configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
766	* configure: Regenerate.
767	* as.h: Use #include "" instead of <> for local header files.
768	* flonum-konst.c: Likewise.
769	* flonum-mult.c: Likewise.
770	* gasp.c: Likewise.
771	* listing.c: Likewise.
772	* config/tc-ia64.h: Likewise.
773	* config/tc-v850.h: Likewise.
774
7752002-05-24  TAMURA Kent <kent@netbsd.org>
776
777	* configure.in: Add a target for i386-netbsdpe.
778	* configure: Regenerate.
779
7802002-05-23  Jakub Jelinek  <jakub@redhat.com>
781
782	* config/obj-elf.c (elf_common): Renamed from obj_elf_common.
783	(obj_elf_common): Call elf_common.
784	(obj_elf_tls_common): New function.
785	(elf_pseudo_tab): Support .tls_common.
786	(special_sections): Add .tdata and .tbss.
787	(obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
788	sections.
789	(obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
790	(obj_elf_parse_section_letters): Include T in error message.
791	* config/tc-ppc.c (ppc_section_letter): Likewise.
792	* config/tc-alpha.c (alpha_elf_section_letter): Likewise.
793	(tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
794	SEC_MERGE.
795	* config/tc-sparc.c (md_apply_fix3): Likewise.
796	* config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
797	Define them if not BFD_ASSEMBLER.
798	(lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
799	and @NTPOFF.
800	(md_apply_fix3): Add TLS relocs.
801	* config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
802	FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
803	FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
804	(pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
805	(ia64_elf_section_letter): Include T in error message.
806	(md_begin): Support TLS operators.
807	(md_operand): Likewise.
808	(ia64_gen_real_reloc_type): Support TLS relocs.
809	* testsuite/gas/i386/tlspic.s: New file.
810	* testsuite/gas/i386/tlsd.s: New file.
811	* testsuite/gas/i386/tlsnopic.s: New file.
812	* testsuite/gas/i386/tlsd.d: New file.
813	* testsuite/gas/i386/tlsnopic.d: New file.
814	* testsuite/gas/i386/tlspic.d: New file.
815	* testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
816	* testsuite/gas/ia64/tls.s: New file.
817	* testsuite/gas/ia64/tls.d: New file.
818	* testsuite/gas/ia64/ia64.exp: Add tls test.
819	* write.c (adjust_reloc_syms): Don't change symbols in
820	SEC_THREAD_LOCAL sections to STT_SECTION + addend.
821
8222002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
823
824	* config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
825	round the relocation up rather than down.
826
8272002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
828
829	* config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
830	flag.
831	* doc/as.texinfo: Document that the COFF version of .section
832	ignores the 'a' flag.
833
8342002-05-23  Alan Modra  <amodra@bigpond.net.au>
835
836	* config/tc-alpha.c (assemble_tokens): Protect use of
837	ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
838
839	* write.c (size_seg): Check adjustment to last frag.
840	(SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
841	section alignment.
842	* config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
843	* config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
844	(write_object_file): Invoke md_do_align if available, and use
845	frag_align_code on text sections.
846	* config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
847	* config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
848	* config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
849	* config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
850	* config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
851	BFD_ASSEMBLER too.
852
8532002-05-22  H.J. Lu <hjl@gnu.org>
854
855	* dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
856	for source file.
857
8582002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
859
860	* config/tc-arm.c (arm_s_section): Enable for COFF builds as well
861	as ELF builds.
862
8632002-05-22  H.J. Lu <hjl@gnu.org>
864
865	* dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
866	for one .loc for compiler.
867
8682002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
869
870	* config/tc-mips.c (macro): Relax warning, it's toot strict for
871	embedded-PIC.
872
8732002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
874
875	* config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
876	Optimize the rotate by zero case.
877
8782002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
879
880	* configure.in: Remove accidental enabling of bfd_gas=yes for
881	sh-coff targets.
882	* configure: Regenerate.
883
8842002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
885
886	* app.c: Fix formatting.
887	* as.c: Likewise.
888	* ehopt.c: Likewise.
889	* expr.c: Likewise.
890	* input-file.c: Likewise.
891	* listing.c: Likewise.
892	* macro.h: Likewise.
893	* stabs.c: Likewise.
894	* symbols.c: Likewise.
895
8962002-05-17  Alan Modra  <amodra@bigpond.net.au>
897
898	* config/obj-generic.c: Delete file.
899	* config/obj-generic.h: Likewise.
900
9012002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
902
903	* config/tc-avr.c (mcu_types): Update for new devices.
904
9052002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
906
907	* config/tc-mips.c (macro): Warn about wrong la/dla use.
908
9092002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
910
911	* config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
912	worked sometimes by accident. Fix copy&paste comment.
913
9142002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
915
916	* config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
917	alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
918	(mips_elf_final_processing): Let n32 use .reginfo.
919
9202002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
921
922	* config/tc-mips.c (append_insn): Fix too small range of variable.
923
9242002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
925
926	* config/tc-arm.c (arm_cleanup): Remove redundant call to
927	listing_prev_line().
928
9292002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
930
931	* config/tc-arm.c (md_assemble): Remove redundant call to
932	listing_prev().
933
934	* dwarf2dbg.c (dwarf2_emit_insn): Do not reset
935	loc_directive_seen.
936
937	* stabs.c (s_stab_generic): Fix grammatical error in warning
938	message.
939
9402002-05-13  Alan Modra  <amodra@bigpond.net.au>
941
942	* write.c (subsegs_finish): Don't specially align last subseg.
943
9442002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
945
946	* stabs.c (s_stab_generic): Warn about a description field that is
947	too big.
948
949	* config/obj-coff.c: Fix compile time warnings when compiling
950	without BFD_ASSEMBLER defined.
951	Fix formatting.
952
953	* config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
954	target.
955	(md_pcrel_from_section): Use md_pcrel_from().
956
9572002-05-11  Bruno Haible  <bruno@clisp.org>
958
959	* dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
960	by dwarf2_directive_loc, instead of calling dwarf2_where.
961
9622002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
963
964	* config/obj-coff.h: Fix formatting.
965	* config/tc-mcore.c: Likewise.
966	* config/tc-mn10300.c: Likewise.
967	* config/tc-openrisc.c: Likewise.
968	* config/tc-or32.c: Likewise.
969	* config/tc-pdp11.c: Likewise.
970	* config/tc-ppc.c: Likewise.
971	* config/tc-ppc.h: Likewise.
972	* config/tc-sh64.c: Likewise.
973	* config/tc-sh.c: Likewise.
974	* config/tc-tic54x.c: Likewise.
975	* config/tc-xstormy16.c: Likewise.
976	* config/tc-xstormy16.h: Likewise.
977
9782002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
979
980	* config/obj-coff.c: Fix formatting.
981	* config/obj-elf.c: Likewise.
982	* config/tc-alpha.c: Likewise.
983	* config/tc-arm.c: Likewise.
984	* config/tc-d10v.c: Likewise.
985	* config/tc-d30v.c: Likewise.
986	* config/tc-h8300.c: Likewise.
987	* config/tc-hppa.c: Likewise.
988
9892002-05-09  Alan Modra  <amodra@bigpond.net.au>
990
991	* config/tc-i386.c (md_estimate_size_before_relax) Don't lose
992	reloc when no_cond_jump_promotion.
993
9942002-05-08  Jim Wilson  <wilson@redhat.com>
995
996	* config/tc-i960.c (md_estimate_size_before_relax): Return size of
997	current variable part of frag.
998
9992002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
1000
1001	* config/tc-mmix.c: Fix formatting.
1002	* config/tc-mmix.h: Likewise.
1003
10042002-05-08  Alan Modra  <amodra@bigpond.net.au>
1005
1006	* configure: Regenerate.
1007
10082002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
1009
1010	* config/tc-m68k.c: Fix formatting.
1011
10122002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1013
1014	* Makefile.am: Honour DESTDIR.
1015	* Makefile.in: Regenerate.
1016
10172002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
1018
1019	* config/tc-ia64.c: Fix formatting.
1020	* config/tc-ia64.h: Likewise.
1021
10222002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1023
1024	* config/tc-mips.c: Fix formatting.
1025	* config/tc-s390.c: Likewise.
1026	* config/tc-s390.h: Likewise.
1027
10282002-05-03  Alexandre Oliva  <aoliva@redhat.com>
1029
1030	* config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
1031	information for instructions.
1032
10332002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1034
1035	* as.h: Fix formatting.
1036	* cgen.c: Likewise.
1037	* cgen.h: Likewise.
1038	* dwarf2dbg.c: Likewise.
1039	* frags.h: Likewise.
1040	* gasp.c: Likewise.
1041	* macro.c: Likewise.
1042	* read.c: Likewise.
1043	* stabs.c: Likewise.
1044	* symbols.c: Likewise.
1045
10462002-05-02  Alan Modra  <amodra@bigpond.net.au>
1047
1048	* app.c (mri_pseudo): Only declare for TC_M68K.
1049
1050	* config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
1051	(ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
1052	BFD_RELOC_16_BASEREL.
1053	(md_assemble): Likewise.
1054	(md_apply_fix3): Likewise.
1055
10562002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
1057
1058	* config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
1059	zero into an add of zero - it is not the same.
1060
10612002-05-01  Arati Dikey <aratid@kpit.com>
1062
1063	* tc-sh.c (get_specific): Generate warning if the same
1064	destination register is used in parallel instructions.
1065
10662002-05-01  Andrew Macleod  <amacleod@cygnus.com>
1067
1068	* config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
1069
10702002-05-01  Alan Modra  <amodra@bigpond.net.au>
1071
1072	* write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
1073	backwards to prevent cascading errors.
1074
10752002-04-30  Mark Mitchell  <mark@codesourcery.com>
1076
1077	* configure.in: Add support for powerpc-*-windiss.
1078	* configure: Regenerated.
1079
10802002-04-28  Alan Modra  <amodra@bigpond.net.au>
1081
1082	* config/tc-s390.c (md_parse_option): Formatting.
1083
1084	* config/tc-i386.c: Formatting fixes, add missing space in error
1085	message.
1086
10872002-04-24  Christian Groessler <chris@groessler.org>
1088
1089	* config/tc-z8k.c (build_bytes): Add support for new cases:
1090	CLASS_IGNORE and ARG_NIM4.
1091	(md_assemble): Prevent destruction of input_line_pointer if
1092	get_operands returns failure.
1093
10942002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
1095
1096	* config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
1097	instructions to be generated by macros.
1098
10992002-04-24  Andreas Schwab  <schwab@suse.de>
1100
1101	* config/tc-i386.c (output_jump, output_disp)
1102	(md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
1103	more.
1104	(md_apply_fix3): Remember addend value for rela relocations.
1105	(tc_gen_reloc): Correctly compute pc-relative relocation addend.
1106
11072002-04-22  Chris Demetriou  <cgd@broadcom.com>
1108
1109	* config/tc-mips.c (macro_build): Add close-parenthesis missing
1110	from previous change.
1111
11122002-04-22  Eric Christopher  <echristo@redhat.com>
1113
1114	* config/tc-mips.c (macro_build): Add warning if macro instructions
1115	are expanded into a branch delay slot.
1116
11172002-04-17  Geoffrey Keating  <geoffk@redhat.com>
1118
1119	* dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
1120	numbers, gdb relies on them to detect the start of the prologue.
1121
11222002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1123
1124	* config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
1125	symbols in merge sections.
1126
11272002-04-16  Alan Modra  <amodra@bigpond.net.au>
1128
1129	* as.c (main): Don't reference _bfd_chunksize.
1130
11312002-04-15  Tom Rix  <trix@redhat.com>
1132
1133	* config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
1134	symbols in merge sections.
1135
11362002-04-11  Richard Sandiford  <rsandifo@redhat.com>
1137
1138	* doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
1139	* config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
1140	argument for the precision.
1141	(gen_to_words): Update accordingly.
1142
11432002-04-10  Alan Modra  <amodra@bigpond.net.au>
1144
1145	* as.c (parse_args <OPTION_VERSION>): Use VERSION is
1146	BFD_VERSION_STRING unavailable.
1147	* config/tc-i386.c (INLINE): Define (for non-BFD assembler).
1148
11492002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
1150
1151	* config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
1152	symbol_used_in_reloc_p is true.
1153
1154	* config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
1155	endian hosts.
1156
11572002-04-04  Alan Modra  <amodra@bigpond.net.au>
1158
1159	* dep-in.sed: Cope with absolute paths.
1160	* Makefile.am (dep.sed): Subst TOPDIR.
1161	Run "make dep-am".
1162	* Makefile.in: Regenerate.
1163
11642002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1165
1166	* config/tc-mips.c (mips16_macro_build): Cast type mismatch.
1167	(mips_ip): Remove unused variable.
1168	(md_apply_fix3): Cast signed/unsignes mismatches. Replace
1169	unsigned char with bfd_byte.
1170	(s_file): Remove unused variable.
1171	(s_mips_ent): Likewise.
1172
11732002-04-03  Tom Rix  <trix@redhat.com>
1174
1175	* config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
1176	(build_insn): Same.
1177	(find_opcode): Fix warning in as_warn.
1178	* config/tc-d10v.h: Update Copyright.
1179
11802002-04-03  Alan Matsuoka <alanm@redhat.com>
1181	    Tom Rix  <trix@redhat.com>
1182
1183	From Jeff Knaggs <jknaggs@redhat.com>
1184	* config/tc-d10v.c (check_resource_conflict): New function to
1185	check for resource conflicts.
1186
1187	From Jason Eckhardt  <jle@redhat.com>
1188	* config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1189	imm3 fields.
1190	* config/tc-d10v.c (find_opcode): Emit a warning if one of the
1191	reserved control registers is used.
1192	* config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1193	imm3 fields.
1194
1195	From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
1196	* tc-d10v.c (parallel_ok): Prevent packing only if the first
1197	instruction cannot be packed.
1198
1199	From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
1200	* gas/config/tc-d10v.c (check_resource_conflict): Only check
1201	write-write conflicts.
1202	(md_assemble): Reformat introductory comment.
1203	* opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
1204	arguments.
1205
12062002-04-03  Alan Modra  <amodra@bigpond.net.au>
1207
1208	* symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
1209	O_logical_not>): Derive final_seg from add_symbol.
1210	<O_multiply..O_logical_or>: More final_seg twiddles.
1211
12122002-04-01  Jessica Han  <jessica@cup.hp.com>
1213
1214	* config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
1215	in 32-bit mode.
1216
12172002-03-27  Andreas Schwab  <schwab@suse.de>
1218
1219	* config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
1220	field for pc-relative fixups.
1221	(output_disp): Likewise.
1222	(md_estimate_size_before_relax): Likewise.
1223	(tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
1224	pc-relative fixups in 64bit mode.
1225
12262002-03-22  Alan Modra  <amodra@bigpond.net.au>
1227
1228	* config/te-aix5.h: Typo fix.
1229
12302002-03-21  Alan Modra  <amodra@bigpond.net.au>
1231
1232	* Makefile.am: Run "make dep-am".
1233	* Makefile.in: Regenerate.
1234	* doc/Makefile.in: Regenerate.
1235
12362002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
1237
1238	* config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
1239	(vfp_sp_reg_pos -> vfp_dp_reg_pos).
1240
12412002-03-18  Alexandre Oliva  <aoliva@redhat.com>
1242
1243	* config/tc-mips.c (md_estimate_size_before_relax): Do not modify
1244	the EXTENDED bit here; report the estimate according to the
1245	current size.
1246
12472002-03-18  Tom Rix  <trix@redhat.com>
1248
1249	* configure.in: Add AIX 5 support.
1250	* config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
1251	* config/te-aix5.h: New file. AIX 5 support.
1252	* configure: Regenerate.
1253
12542002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1255
1256	* po/fr.po: Updated version.
1257
12582002-03-16  Andreas Jaeger  <aj@suse.de>
1259
1260	* doc/c-mips.texi (Machine Dependencies): Add new node.
1261
12622002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
1263
1264	* config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
1265	(mips_opts): Initialize "ase_mips3d" member.
1266	(file_ase_mips3d): New variable.
1267	(CPU_HAS_MIPS3D): New macro.
1268	(md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
1269	based on command line options and configuration defaults.
1270	(macro_build, mips_ip): Accept MIPS-3D instructions if
1271	mips_opts.ase_mips3d is set.
1272	(OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
1273	Add support for "-mips3d" and "-no-mips3d" options.
1274	(OPTION_ELF_BASE): Move to accomodate new options.
1275	(s_mipsset): Support ".set mips3d" and ".set nomips3d".
1276	(mips_elf_final_processing): Add a comment indicating that a
1277	MIPS-3D ASE ELF header flag should be set, when one exists.
1278	* doc/as.texinfo: Document -mips3d and -no-mips3d options.
1279	* doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
1280	nomips3d" directives.
1281
12822002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
1283
1284	* config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
1285	a weak symbol in same section to be within reach.
1286
12872002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1288
1289	* po/fr.po: Updated version.
1290
12912002-03-12  Andreas Schwab  <schwab@suse.de>
1292
1293	* config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
1294	body record so that an error is given for misplaced .save
1295	pseudo-ops.
1296
12972002-03-09  Alan Modra  <amodra@bigpond.net.au>
1298
1299	* config/tc-i386.h (REX_OPCODE): Define.
1300	(REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
1301	(rex_byte): typedef to int.
1302	* config/tc-i386.c: Group prototypes and vars together.
1303	Formatting fixes.  Remove occurrences of "register" keyword.
1304	(true): Delete.
1305	(false): Delete.
1306	(mode_from_disp_size): Add INLINE keyword to prototype.
1307	(fits_in_signed_byte): Likewise.
1308	(fits_in_unsigned_byte): Likewise.
1309	(fits_in_unsigned_word): Likewise.
1310	(fits_in_signed_word): Likewise.
1311	(fits_in_unsigned_long): Likewise.
1312	(fits_in_signed_long): Likewise.
1313	(type_names): Constify.
1314	(intel_float_operand): Constify param.
1315	(add_prefix): Use REX_OPCODE.
1316	(md_assemble): Likewise.  Modify for changed rex_byte.
1317	(parse_insn): Split out of md_assemble.
1318	(parse_operands): Likewise.
1319	(swap_operands): Likewise.
1320	(optimize_imm): Likewise.
1321	(optimize_disp): Likewise.
1322	(match_template): Likewise.
1323	(check_string): Likewise.
1324	(process_suffix): Likewise.
1325	(check_byte_reg): Likewise.
1326	(check_long_reg): Likewise.
1327	(check_qword_reg): Likewise.
1328	(check_word_reg): Likewise.
1329	(finalize_imm): Likewise.
1330	(process_operands): Likewise.
1331	(build_modrm_byte): Likewise.
1332	(output_insn): Likewise.
1333	(output_branch): Likewise.
1334	(output_jump): Likewise.
1335	(output_interseg_jump): Likewise.
1336	(output_disp): Likewise.
1337	(output_imm): Likewise.
1338
13392002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1340
1341	* doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1342
13432002-03-06  Alan Modra  <amodra@bigpond.net.au>
1344
1345	* config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
1346	relocs except when BFD64.
1347
1348	* write.c (number_to_chars_bigendian): Don't abort when N is
1349	larger than sizeof (VAL).
1350	(number_to_chars_littleendian): Likewise.
1351
13522002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1353
1354	* config/tc-hppa.c (md_apply_fix3): Add cast.
1355	(hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
1356	e_rrsel.
1357
13582002-03-05  Paul Koning  <pkoning@equallogic.com>
1359
1360	* tc-pdp11.c: Use VAX float format support for PDP-11 target.
1361	(parse_ac5): New function for parsing float regs in float operand.
1362	(parse_expression): Remove attempt to make literals be octal.
1363	(parse_op_no_deferred): Support float literals.
1364	(parse_op): Reject attempts to refer to float regs.
1365	(parse_fop): New function, like parse_op but for float operand.
1366	(md_assemble): Add cases to parse float operands.  Also fix
1367	IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
1368
13692002-03-04  H.J. Lu <hjl@gnu.org>
1370
1371	* config/obj-elf.c (special_section): Add .init_array,
1372	.fini_array and .preinit_array.
1373
1374	* config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
1375	.init_array and .fini_array.
1376
13772002-03-01  Jakub Jelinek  <jakub@redhat.com>
1378
1379	* config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
1380	visibility.
1381	(obj_frob_symbol): Copy visibility.
1382
13832002-02-28  Jakub Jelinek  <jakub@redhat.com>
1384
1385	* config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
1386	s_text.
1387	(s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
1388
13892002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
1390
1391	* po/es.po: Updated.
1392
13932002-02-26  Chris Demetriou  <cgd@broadcom.com>
1394
1395	* config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
1396	only, undo the changes made on 2001-06-08, with the
1397	effect being that common or extern symbols are
1398	adjusted for embedded-PIC, but weak symbols are not.
1399	(md_estimate_size_before_relax: Likewise, with the effect
1400	that extern symbols are treated the same as weak symbols
1401	only if not embedded-PIC.
1402	(mips_fix_adjustable) Likewise, with the effect that
1403	weak or extern symbols are not adjusted for embedded-PIC.
1404	(md_apply_fix3): Tweak so that the case where value is zero
1405	is handled more correctly for embedded-PIC code.
1406
14072002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
1408
1409	* doc/as.texinfo (Overview): Add missing @ifset IA64
1410
1411	* configure.in (LINGUAS): Add es.po.
1412	* configure: Regenerate.
1413	* po/es.po: New file.
1414
14152002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1416
1417	* config/tc-mips.c (set_at): Fix handling of 64bit register loads.
1418	(macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
1419	and NO_PIC cases. Code cleanup.
1420	(macro2): Fix handling of 64bit register loads.
1421
14222002-02-25  David Mosberger  <davidm@hpl.hp.com>
1423
1424	* doc/as.texinfo: Add entry for IA64.
1425	* doc/c-ia64.texi: New file.
1426
14272002-02-25  Alan Modra  <amodra@bigpond.net.au>
1428
1429	* config/tc-hppa.c: Update copyright date.
1430
1431	* doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1432	Remove references to chip manufacturers.
1433	* config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1434	Correct comments.
1435	(md_show_usage): Remove references to chip manufacturers.  Mention
1436	-mpower4.
1437	(md_begin): Test power4 opcode flag bits.
1438
14392002-02-22  David Mosberger  <davidm@hpl.hp.com>
1440
1441	* config/tc-ia64.c (dot_restore): Issue error message of epilogue
1442	count exceeds prologue count.
1443	(md_show_usage): Describe -mconstant-gp and -mauto-pic.
1444	(unwind.label_prologue_count): New member.
1445
1446	Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1447
1448	(get_saved_prologue_count): New function.
1449	(save_prologue_count): New function.
1450	(free_saved_prologue_count): New function.
1451	(dot_label_state): Record state label by calling save_prologue_count().
1452	(dot_copy_state): Restore prologue count by calling
1453	get_saved_prologue_count().
1454	(generate_unwind_image): Free up list of saved prologue
1455	counts by calling free_saved_prologue_counts().
1456
14572002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
1458
1459	* config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1460	function declarations.
1461
14622002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
1463
1464	* NEWS: Note that GASP is now deprecated.
1465	* Makefile.am: Do not build gasp-new by default.
1466	* Makefile.in: Regenerate.
1467	* doc/Makefile.am: Do not install gasp.info.
1468	* doc/Makefile.in: Regenerate.
1469	* gas/gasp.texi: Note that gasp is now deprecated.
1470
14712002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1472
1473	* NEWS: Mark 2.12 branch.
1474
14752002-02-19  Tom Tromey  <tromey@redhat.com>
1476
1477	* config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1478
14792002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1480
1481	* config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1482	option input.
1483
14842002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1485
1486	* config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1487	Make bit size independent of architecture switch.
1488	(md_begin): Add warning for -m64 with -Aesa.
1489	(s390_md_end): Use renamed architecture defines.
1490
14912002-02-18  Daniel Jacobowitz  <drow@mvista.com>
1492
1493	* config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1494
14952002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
1496
1497	* doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1498	instead of CRIS.
1499
15002002-02-15  Chris Demetriou  <cgd@broadcom.com>
1501
1502	* config/tc-mips.c (md_estimate_size_before_relax): Really
1503	make sure we treat weak like extern only for ELF.  (Fixes
1504	patch from 2001-07-25.)
1505
15062002-02-15  Ben Elliston  <bje@redhat.com>
1507
1508	* doc/as.texinfo: Add duplicate directory entry so that "info gas"
1509	works as expected.
1510
15112002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1512
1513	* NEWS: Mention support for MMIX.
1514
15152002-02-13  Chris Demetriou  <cgd@broadcom.com>
1516
1517	* config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1518	a sequence of indpendent 'if' statements for easier debugging
1519	and future modification.
1520
15212002-02-13  Matt Fredette  <fredette@netbsd.org>
1522
1523	* config/tc-m68k.c (md_show_usage): No longer display a
1524	hard-coded "68020" for the default CPU, instead display the
1525	canonical name of the true, configured default CPU.
1526	(m68k_elf_final_processing): Mark objects for sub-68020
1527	CPUs with the new EF_M68000 flag.
1528
15292002-02-13  Andreas Schwab  <schwab@suse.de>
1530
1531	* config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1532	pc-relative relocations to merge sections in 64-bit mode.
1533
15342002-02-13  Ben Elliston  <bje@redhat.com>
1535
1536	* NEWS: Document floating point number handling in gasp.
1537	* gasp.c: Include <assert.h> and "xregex.h".
1538	(is_flonum): New function.
1539	(chew_flownum): Likewise.
1540	(change_base): Consume flonums from the input, where possible.
1541	* doc/gasp.texi (Constants): Document floating point numbers.
1542
15432002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1544
1545	* config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1546	that implicitly use LR and RR selectors.
1547
15482002-02-12  Alexandre Oliva  <aoliva@redhat.com>
1549
1550	* config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
1551	and `epsw' as available on AM33 and above only.
1552	(other_register_name): Add logic to handle machine type encoded in
1553	reg_number.
1554
15552002-02-11  Tom Rix  <trix@redhat.com>
1556
1557	* config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1558	xcoff64.
1559
15602002-06-11  Alexandre Oliva  <aoliva@redhat.com>
1561
1562	* config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1563	Use all over.
1564
15652002-02-11  Jan Hubicka  <jh@suse.cz>
1566
1567	* i386.c (md_assemble): Support 32bit address prefix.
1568	(i386_displacement): Likewise.
1569	(i386_index_check): Accept 32bit addressing in 64bit mode.
1570
15712002-02-11  Alexandre Oliva  <aoliva@redhat.com>
1572
1573	* config/tc-sh.c (dot): Removed unused function.
1574
15752002-02-11  Alan Modra  <amodra@bigpond.net.au>
1576
1577	* Makefile.am: "make dep-am".
1578	* Makefile.in: Regenerate.
1579	* aclocal.m4: Regenerate.
1580	* config.in: Regenerate.
1581	* configure: Regenerate.
1582	* doc/Makefile.in: Regenerate.
1583
15842002-02-10  Richard Henderson  <rth@redhat.com>
1585
1586	* doc/c-alpha.texi: New file.
1587	* doc/Makefile.am (CPU_DOCS): Add it.
1588	* doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1589
15902002-02-09  Richard Henderson  <rth@redhat.com>
1591
1592	* config/tc-alpha.c (O_samegp): New.
1593	(USER_RELOC_P): Include it.
1594	(alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1595	(md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1596	(alpha_force_relocation, alpha_fix_adjustable): Likewise.
1597	(alpha_validate_fix): New.
1598	* config/tc-alpha.h (TC_VALIDATE_FIX): New.
1599
16002002-02-09  Hans-Peter Nilsson  <hp@axis.com>
1601
1602	* doc/c-cris.texi: New.
1603	* doc/all.texi: @set CRIS.
1604	* doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
1605	Include c-cris.texi.
1606	* doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1607	* doc/Makefile.in: Regenerate.
1608
16092002-02-08  Chris Demetriou  <cgd@broadcom.com>
1610
1611	* config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1612	determine if a number is a sign-extended 32-bit number.
1613	(load_register): Use IS_SEXT_32BIT_NUM.
1614	(macro): Check if load/store macro handling is using a
1615	constant 32-bit address on 64-bit address systems, and if
1616	so optimize the generation of that address.
1617
16182002-02-08  Richard Henderson  <rth@redhat.com>
1619
1620	* config/tc-alpha.c (alpha_force_relocation): Don't assert that
1621	we've eliminated all foreign relocation types yet.
1622	(alpha_fix_adjustable): Likewise.
1623
16242002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1625
1626	Contribute sh64-elf.
1627	2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1628		    Stephen Clarke <Stephen.Clarke@st.com>
1629	* doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1630	2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
1631	* config/tc-sh.c (md_relax_table): Added default sizes for
1632	non-PC-relative UNDEF_MOVI, and relaxation sequences for
1633	MOVI_16, MOVI_32 and MOVI_48.
1634	* config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1635	(shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1636	and MOVI_16.
1637	(shmedia_md_estimate_size_before_relax): Remove redundant
1638	blocks.	 Set fragP->fr_var even if relaxation type unchanged.
1639	Retain UNDEF_MOVI until expression decays to number.
1640	2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1641	* config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1642	relocation types.  Take fixP->fx_addnumber into account too.
1643	(shmedia_md_apply_fix): Likewise.
1644	(shmedia_md_convert_frag): Likewise.
1645	(shmedia_build_Mytes): Likewise.
1646	(sh64_consume_datalabel): Complain about nested datalabel.
1647	Support PIC relocs.  Call sh_parse_name.
1648	* config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1649	in tc-sh.h to SHmedia reloc types.
1650	* config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1651	MOVI_GOTPC): New relaxation constants.
1652	(md_relax_table): Introduce relaxation directives for PIC-related
1653	constants.
1654	(sh_PIC_related_p): Handle datalabel.
1655	(sh_check_fixup): Choose SH5 PIC relocations.
1656	(sh_cons_fix_new): Added BDF_RELOC_64.
1657	(md_apply_fix3, sh_parse_name): Handle GOTPLT.
1658	2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1659	* config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1660	current ISA is SHmedia, get 7 bytes.
1661	2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
1662	* config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1663	void function.
1664	* config/tc-sh64.c (shmedia_apply_fix): Rename to
1665	shmedia_apply_fix3 and make void.
1666	2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
1667	* config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1668	as_bad.
1669	2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
1670	* config/tc-sh64.h (md_parse_name): Take &c as argument.
1671	2001-03-14  DJ Delorie	<dj@redhat.com>
1672	* doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1673	* doc/Makefile.in(CPU_DOCS): Ditto.
1674	* doc/c-sh64.texi: New file.
1675	* doc/as.texinfo: Add SH64 support.
1676	2001-03-13  DJ Delorie	<dj@redhat.com>
1677	* config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1678	A_REUSE_PREV so that its purpose is more obvious.
1679	(shmedia_build_Mytes): Ditto.
1680	2001-03-07  DJ Delorie	<dj@redhat.com>
1681	* config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1682	before processing.
1683	(sh64_vtable_inherit): Ditto.
1684	(strip_datalabels): New, strip "datalabel" from given line.
1685	* config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1686	pseudos.
1687	2001-03-06  Hans-Peter Nilsson	<hpn@cygnus.com>
1688	* config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1689	call ...
1690	(shmedia_build_Mytes): ... to here.
1691	2001-03-06  DJ Delorie	<dj@redhat.com>
1692	* config/tc-sh.c: Remove sh64-specific uaquad now that there
1693	is a generic one.
1694	2001-01-21  Hans-Peter Nilsson	<hpn@cygnus.com>
1695	* config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1696	* config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1697	address by one in call to dwarf2_emit_insn.
1698	2001-01-13  Hans-Peter Nilsson	<hpn@cygnus.com>
1699	Implement ".abi" pseudo and correct .cranges descriptors.  Correct
1700	alignment handling broken by imported changes.
1701	* config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1702	(sh64_handle_align): Declare.
1703	(MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1704	(sh64_max_mem_for_rs_align_code): Declare.
1705	(enum sh64_isa_values): Moved here from tc-sh64.c.
1706	(md_do_align): Define.
1707	(sh64_do_align): Declare.
1708	(struct sh64_tc_frag_data): New.
1709	(TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
1710	changed.
1711	(TC_FRAG_INIT): Change to set new datatype.
1712	(struct sh64_segment_info_type): Rename member
1713	last_flushed_location to last_contents_mark.  All users changed.
1714	(md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1715	(shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1716	* config/tc-sh.c (md_pseudo_table): Add ".abi".
1717	(sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
1718	of unsetting seen_insn.
1719	(md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
1720	call sh64_update_contents_mark.
1721	(sh_handle_align): Remove HAVE_SH64-conditioned code.
1722	* config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
1723	enum sh64_isa_values.
1724	(sh64_set_contents_type): Drop segT parameter.	All callers changed.
1725	(emitting_crange): Boolean guard moved to file scope from function
1726	scope in sh64_set_contents_type.
1727	(s_sh64_abi): New.
1728	(sh64_update_contents_mark): New; most split out from
1729	sh64_flush_pending_output.
1730	(shmedia_md_end): Call sh64_update_contents_mark.  Set
1731	sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
1732	(sh64_do_align): New function.
1733	(sh64_max_mem_for_rs_align_code): New function.
1734	(sh64_handle_align): Rename from shmedia_do_align.  Make
1735	non-static.  Add head comment.	Emit zero bytes for n bytes modulo
1736	four.  Change return-type to void.
1737	(shmedia_elf_new_section): Remove.
1738	(shmedia_md_assemble): Call sh64_update_contents_mark.
1739	(s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
1740	new frag.  Call sh64_update_contents_mark after making the new
1741	frag.
1742	(sh64_flush_pending_output): Just call sh64_update_contents_mark
1743	and sh_flush_pending_output.
1744	(sh64_flag_output): Also call md_flush_pending_output, but add
1745	condition on not emitting_crange.
1746	(sh64_tc_cons_fix_new): Remove.
1747	2001-01-12  Nick Clifton  <nickc@redhat.com>
1748	* config/tc-sh64.c (shmedia_do_align): Fix to work with new
1749	alignment handling scheme imported from sourceware.
1750	2001-01-12  Hans-Peter Nilsson	<hpn@cygnus.com>
1751	* config/tc-sh64.h (TARGET_FORMAT): Define.
1752	(sh64_target_format): Prototype.
1753	* config/tc-sh64.c (sh64_target_mach): New function.
1754	2001-01-07  Hans-Peter Nilsson	<hpn@cygnus.com>
1755	* config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
1756	zero_address_frag instead of copying the frag of the symbol.
1757	(shmedia_frob_file_before_adjust): Ditto.
1758	(shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
1759	to valueT to remove signedness.
1760	(shmedia_md_convert_frag): Add parameter final.	 Rename parameter
1761	headers to output_bfd.	Do not evaluate symbols if final is false;
1762	do emit fixups.
1763	(shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
1764	UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
1765	to the current frag, call shmedia_md_convert_frag to emit fixups
1766	and make frag_wane neutralize the frag.	 Update comments.
1767	* config/tc-sh.c (md_convert_frag): Change caller of
1768	shmedia_md_convert_frag.
1769	2001-01-06  Hans-Peter Nilsson	<hpn@cygnus.com>
1770	* config/tc-sh64.h: Tweak comments and correct formatting.
1771	* config/tc-sh64.c: Ditto.
1772	(shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
1773	expansion, MOVI pcrel expansion>: Fix thinko calculating offset
1774	for the no-relocation case.
1775	(shmedia_check_limits): Fix range check being off-by-one for PTA.
1776	* config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
1777	wrappers.
1778	(SH64PCREL16_F): Increment for proper max-PTA handling.	 Update
1779	comment.
1780	(SH64PCREL16_M, MOVI_16_M): Correct range thinko.
1781	(SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
1782	expansion.
1783	(SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
1784	Correct comment.
1785	2001-01-05  Hans-Peter Nilsson	<hpn@cygnus.com>
1786	* config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
1787	BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
1788	(shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
1789	al>: Set lowest bit of field to relocate to 1 and rest to empty,
1790	if reloc is emitted.
1791	2000-12-31  Hans-Peter Nilsson	<hpn@cygnus.com>
1792	New options plus bugfixes.
1793	* config/tc-sh.c (md_longopts): New options "-no-expand" and
1794	"-expand-pt32".
1795	(md_parse_option): Handle new options.
1796	(md_show_usage): Add blurb for new options.
1797	* config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
1798	(sh64_expand, sh64_pt32): New variables.
1799	(shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
1800	(shmedia_md_apply_fix): Hold original fixP->fx_r_type in
1801	orig_fx_r_type.	 Change SHMEDIA_BFD_RELOC_PT into
1802	BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
1803	<resolved previously-pc-relative relocs>: Handle
1804	SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
1805	(shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
1806	case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
1807	points to SHcompact code.
1808	<case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
1809	SH64PCREL16)>: Check that ISA of what operand points at and
1810	PTA/PTB matches, or emit error.
1811	(shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
1812	SHMEDIA_BFD_RELOC_PT.
1813	(shmedia_immediate_op): If pcrel, emit fixup also for constant
1814	operand.
1815	(shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
1816	condition for MOVI expansion.
1817	<case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
1818	sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
1819	sh64_expand.
1820	<case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
1821	fixup.
1822	(sh64_target_format): Error-check setting of sh64_pt32 and
1823	sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
1824	(shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
1825	SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
1826	2000-12-31  Hans-Peter Nilsson	<hpn@cygnus.com>
1827	* config/tc-sh64.c: Improve comments.
1828	(shmedia_md_convert_frag): Remove inactive is_pt_variant code.	Do
1829	not say the linker will check correctness of PTA/PTB expansion.
1830	(shmedia_md_end): Make non-static.
1831	* config/tc-sh64.h (md_end): Define to shmedia_md_end.	Add
1832	prototype.
1833	* config/tc-sh.c (sh_finalize): Remove.
1834	* config/tc-sh.h (md_end): Do not define.
1835	Remove prototype for sh_finalize.
1836	2000-12-30  Hans-Peter Nilsson	<hpn@cygnus.com>
1837	* config/tc-sh64.c (shmedia_frob_section_type): Use a struct
1838	sh64_section_data container when storing section type in tdata
1839	field in elf_section_data.
1840	* config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
1841	EF_SH5.
1842	* Makefile.am: Update dependencies.
1843	* Makefile.in: Regenerate.
1844	2000-12-22  Hans-Peter Nilsson	<hpn@cygnus.com>
1845	* config/tc-sh64.c (shmedia_md_assemble): Don't protect
1846	dwarf2_emit_insn call with test on debug_type.
1847	2000-12-19  Hans-Peter Nilsson	<hpn@cygnus.com>
1848	* config/tc-sh64.c (sh64_set_contents_type): Make contents-type
1849	CRT_SH5_ISA32 sticky for 64-bit.
1850	2000-12-18  Hans-Peter Nilsson	<hpn@cygnus.com>
1851	Generate .crange sections when switching ISA mode or emitting
1852	constants in same section as code.
1853	* config/tc-sh64.c: Reformat structure definitions.
1854	(sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
1855	variables.
1856	(sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
1857	to emit a .cranges descriptor when contents type changes.  Only
1858	emit error if changing contents type and -no-mix is in effect.
1859	(sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
1860	sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
1861	(shmedia_md_end): Set sh64_end_of_assembly.  Pass
1862	sh64_flush_last_crange over sections.
1863	When checking main symbol of datalabel symbol, check for
1864	STO_SH5_ISA32, not ISA type of section in definition.
1865	(shmedia_frob_file_before_adjust): Check main symbol for
1866	STO_SH5_ISA32; don't check ISA type of section in definition.
1867	(shmedia_frob_section_type): Adjust for .cranges; set section flag
1868	to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
1869	.cranges entries have been output.
1870	(shmedia_elf_new_section): Just call md_flush_pending_output.
1871	(shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
1872	fix.  Do not set tc_segment_info_data.in_code for section.  Call
1873	sh64_set_contents_type for SHmedia code.
1874	(s_sh64_mode): Do not call sh64_init_section or set seen_insn to
1875	false.	Call md_flush_pending_output.
1876	(sh64_target_format): Check that -no-mix and
1877	-shcompact-const-crange are used in sane combination with other
1878	options.
1879	(shmedia_md_pcrel_from_section): Check type of fix for how to
1880	adjust pc-relative.
1881	(sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
1882	not ISA type of section in definition.
1883	* config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
1884	hold contents-type state.
1885	(md_flush_pending_output): Redefine to sh64_flush_pending_output.
1886	(sh64_flush_pending_output): Declare.
1887	(TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
1888	(sh64_tc_cons_fix_new): Declare.
1889	* config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
1890	call sh64_flag_output.
1891	(md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
1892	call sh64_set_contents_type to mark SHcompact code and set
1893	seen_insn.
1894	(md_longopts): New options "-no-mix" and
1895	"-shcompact-const-crange".
1896	(md_parse_option): Handle new options.
1897	(md_show_usage): Add blurb for new options.
1898	(md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
1899	2000-12-15  Hans-Peter Nilsson	<hpn@cygnus.com>
1900	* config/tc-sh64.c: Delete investigated and obsolete fixme:s.
1901	(sh64_last_insn_frag): New.
1902	(shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
1903	to get frag for insn opcode for generating fixups; do not assume it
1904	is the same frag.
1905	(shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
1906	for new insn.
1907	* config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
1908	section.
1909	(TC_FRAG_TYPE): Define as fragS *.
1910	(TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
1911	(sh64_last_insn_frag): Declare.
1912	(sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
1913	not == NULL before dereferencing.
1914	2000-12-12  Hans-Peter Nilsson	<hpn@cygnus.com>
1915	Get rid of BFD section flag and EF_SH64_ABI64.
1916	* config/tc-sh64.c (shmedia_frob_section_type): Use
1917	elf_section_data (sec)->tdata, not a specific BFD section flag, to
1918	communicate the section as containing SHmedia code.  Describe why.
1919	* config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
1920	EF_SH64 regardless of ABI.
1921	* config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
1922	in error message.  Handle resolved expressions for
1923	BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1924	BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
1925	(shmedia_check_limits): Handle BFD_RELOC_64.
1926	(sh64_adjust_symtab): Do not decrement the GAS symbol value for
1927	a STO_SH5_ISA32 symbol, only the BFD value.
1928	2000-12-11  Ben Elliston  <bje@redhat.com>
1929	* config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
1930	dwarf2_generate_asm_lineno.
1931	2000-12-11  Hans-Peter Nilsson	<hpn@cygnus.com>
1932	Handle PC-relative MOVI expansions with assembler relaxation.
1933	Generate PC-relative relocs from 16-bit PC-relative expressions.
1934	* config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
1935	(shmedia_md_pcrel_from_section): ...here.
1936	(shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
1937	turned completely resolved.  Adjust relocation type for 16-bit
1938	immediate operands that has turned PC-relative.	 Adjust back for
1939	MD_PCREL_FROM_SECTION being applied twice.
1940	(shmedia_md_convert_frag): Always emit reloc for expression with
1941	global or weak symbol.	Handle relaxation result for PC-relative
1942	expressions.
1943	(shmedia_md_estimate_size_before_relax): An expression with a weak
1944	or global symbol can not be relaxed.  Break out tests for
1945	relaxable symbol into variable sym_relaxable.
1946	<cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
1947	UNDEF_MOVI)>: Break out any PC-relative expression and change
1948	relaxation type.
1949	(shmedia_build_Mytes): CSE &operands->operands[j] into variable
1950	opjp.
1951	<case A_IMMS16>: Fix typo for initial minor relaxation type of
1952	MOVI expansion.	 If X_op_symbol of the immediate expression is
1953	set, make an expression symbol for the argument to frag_var.
1954	* config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
1955	relaxations.
1956	(END): Adjust for new relaxations.
1957	(md_relax_table): Add entries for new relaxations.
1958	2000-12-07  Ben Elliston  <bje@redhat.com>
1959	* config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
1960	2000-12-07  Hans-Peter Nilsson	<hpn@cygnus.com>
1961	* config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
1962	SHORI operand offsets in PT/PTA/PTB expansions.
1963	2000-12-05  Hans-Peter Nilsson	<hpn@cygnus.com>
1964	Implement DataLabel semantics.
1965	* config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
1966	shmedia_frob_file_before_adjust.
1967	* config/tc-sh64.c [! OBJ_ELF]: Emit #error.
1968	(DATALABEL_SUFFIX): Define.
1969	(shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
1970	symbol list to update "datalabel" symbols to their main symbol
1971	counterparts.
1972	(shmedia_frob_file_before_adjust): New.
1973	(sh64_adjust_symtab): For remaining datalabel symbols, set to
1974	undefined and set STT_DATALABEL.
1975	(sh64_frob_label): Initialize TC symbol field.
1976	(sh64_consume_datalabel): Actually implement semantics.	 New
1977	parameter operandf, call it instead of expression.
1978	(sh64_exclude_symbol): New.
1979	* config/tc-sh64.h (md_parse_name): Pass on the function operand
1980	to sh64_consume_datalabel.
1981	(tc_symbol_new_hook): Define to tc_frob_symbol.
1982	(TC_SYMFIELD_TYPE): Define to symbolS *.
1983	(tc_frob_symbol): Define to call sh64_exclude_symbol.
1984	2000-12-01  Hans-Peter Nilsson	<hpn@cygnus.com>
1985	* config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
1986	case.
1987	(shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
1988	generating dwarf2 debug information.
1989	2000-11-30  Hans-Peter Nilsson	<hpn@cygnus.com>
1990	* config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
1991	elf64-sh64 for the 64-bit ABI.
1992	* config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
1993	option.
1994	2000-11-29  Hans-Peter Nilsson	<hpn@cygnus.com>
1995	* config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
1996	case-insensitivity.
1997	2000-11-27  Hans-Peter Nilsson	<hpn@cygnus.com>
1998	* config/tc-sh64.c: Tweak comments, formatting and error messages.
1999	(enum sh64_abi_values): New type.
2000	(enum sh64_isa_values): New type.
2001	(sh64_isa_mode): Replace shmedia_mode.	All referers changed.
2002	(seen_shcompact_mode, seen_shmedia_mode): Delete.
2003	(sh64_abi): Replace shmedia_64.
2004	(shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
2005	C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
2006	(s_sh64_mode): Check validity for this target.
2007	(sh64_target_format): Initialize defaults for ISA and ABI.
2008	Fallback to old object format if no SH64 ISA or ABI has been
2009	specified.
2010	* config/tc-sh.c (md_parse_option): Check combinations for errors.
2011	(sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
2012	ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
2013	* config/tc-sh64.h: Fix typo in comment.
2014	2000-11-25  Hans-Peter Nilsson	<hpn@cygnus.com>
2015	* config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
2016	<PT fixups for absolute values>: Size will be longest, not
2017	shortest.
2018	(shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
2019	all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
2020	* config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
2021	and l1 to hold lowercase of two first characters.  Change all
2022	remaining TO_LOWER to tolower.
2023	* config/tc-sh64.c (TO_LOWER): Delete.
2024	(shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
2025	(md_parse_name): Define.
2026	(sh64_consume_datalabel): Declare.
2027	(DOLLAR_DOT): Define.
2028	* config/tc-sh64.c (shmedia_parse_exp): New.
2029	(sh64_consume_datalabel): New; just ignoring datalabel semantics.
2030	(shmedia_parse_reg): Remove const from src
2031	parameter.
2032	(shmedia_get_operands): Ditto for args parameter and ptr variable.
2033	(shmedia_md_assemble): Ditto for op_end variable.
2034	(shmedia_get_operand): Ditto for ptr parameter and src variable.
2035	Use shmedia_parse_exp, not parse_exp.
2036	* config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
2037	parameter.  All callers changed.
2038	(shmedia_get_operand): Add shmedia_arg_type parameter.	All
2039	callers changed.
2040	(shmedia_parse_reg): Put first two character in local variables.
2041	Use tolower, not TO_LOWER.  If no register is found and argtype
2042	indicates a control register, scan shmedia_creg_table
2043	case-insensitive.
2044	2000-11-24  Hans-Peter Nilsson	<hpn@cygnus.com>
2045	* Makefile.am (CPU_TYPES): Add sh64.
2046	(TARGET_CPU_CFILES): Add config/tc-sh64.c.
2047	(TARGET_CPU_HFILES): Add config/tc-sh64.h.
2048	Regenerate dependencies.
2049	* Makefile.in: Regenerate.
2050	* configure.in: Add support for sh64-*-elf*.
2051	* configure: Regenerate.
2052	* config/tc-sh64.h: New.
2053	* config/tc-sh64.c: New.
2054	* config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
2055	.mode, .isa and .uaquad.
2056	[HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
2057	SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
2058	[HAVE_SH64] (END): Define as 10.
2059	[HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
2060	SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
2061	MOVI_64): Define.
2062	[HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
2063	SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
2064	SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
2065	MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
2066	Define.
2067	(md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
2068	(md_begin) [HAVE_SH64]: Call shmedia_md_begin.
2069	(parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
2070	(md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
2071	SHmedia instructions.  Handle state-change after switching to
2072	SHcompact.
2073	(md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
2074	(md_parse_option) [HAVE_SH64]: Parse new options.
2075	(md_show_usage) [HAVE_SH64]: Show usage of new options.
2076	(md_convert_frag) [HAVE_SH64] <default>: Call
2077	shmedia_md_convert_frag instead of abort.
2078	(sh_force_relocation) [HAVE_SH64]: Also force relocation for
2079	BFD_RELOC_SH_SHMEDIA_CODE.
2080	(sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
2081	SHcompact or SHmedia code.
2082	(md_apply_fix) [HAVE_SH64] <default>: Return result from calling
2083	shmedia_md_apply_fix instead of abort.
2084	(md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
2085	result from calling shmedia_md_estimate_size_before_relax instead
2086	of calling abort.
2087	(sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
2088	do the work.
2089	(tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
2090	shmedia_init_reloc and do nothing more if it returns non-zero.
2091	(sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
2092	* po/POTFILES.in: Regenerate.
2093	* po/gas.pot: Regenerate.
2094
20952002-02-06  Alexandre Oliva  <aoliva@redhat.com>
2096
2097	* config/tc-sh.c (parse_at): Install the correct version of
2098	2002-02-04's patch.
2099
2100	* config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
2101	assume fixP->fx_subsy is non-NULL.
2102
21032002-02-04  Alexandre Oliva  <aoliva@redhat.com>
2104
2105	* config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
2106	A_DISP_PC_ABS, and adjust it by -4.
2107	(get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
2108	expected.
2109	(build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
2110	the operand type is not A_DISP_PC_ABS.
2111
21122002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
2113
2114	* config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
2115	common and weak symbols.  Handle common and weak symbols as
2116	undefined symbols with regards to GREG handling and merging.
2117	(mmix_frob_file): Ditto.
2118
21192002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
2120
2121	* configure.in (hppa-*-netbsd*): New target.
2122	* configure: Regenerate.
2123	* config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
2124
21252002-02-02  Alan Modra  <amodra@bigpond.net.au>
2126
2127	* config/tc-v850.c: Add missing prototypes amd use old-style
2128	function definitions.
2129	(AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
2130	(sdata_section tdata_section, zdata_section, sbss_section,
2131	tbss_section, zbss_section, rosdata_section, rozdata_section,
2132	scommon_section, tcommon_section, zcommon_section,
2133	call_table_data_section, call_table_text_section): Delete.
2134	(v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2135	v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
2136	v850_call_table_data, v850_call_table_text): Delete.
2137	(struct v850_seg_entry): New.
2138	(v850_seg_table): New.
2139	(SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
2140	TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
2141	ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
2142	CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
2143	(do_v850_seg): New.
2144	(v850_seg): New.
2145	(v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
2146	recording of alignment.
2147	(md_pseudo_table): Use v850_seg.
2148	(md_begin): Don't init .call_table_data and .call_table_text here.
2149	Set v850_seg_table bss entry.
2150
21512002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
2152
2153	Support on-demand global register allocation by passing on
2154	base-plus-offset relocs to the linker.
2155	* config/tc-mmix.c: Tweak and fix typos in comments.
2156	(allocate_undefined_gregs_in_linker): New variable.
2157	(OPTION_LINKER_ALLOCATED_GREGS): New option macro.
2158	(md_longopts): Add --linker-allocated-gregs.
2159	(md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
2160	<case OPTION_LINKER_ALLOCATED_GREGS>: New.
2161	(md_show_usage): Update text for -x.  Add text for
2162	--linker-allocated-gregs.
2163	(tc_gen_reloc): Derive default value for addend from val and
2164	baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
2165	emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
2166	GREG if allocate_undefined_gregs_in_linker.
2167	* doc/as.texinfo (Overview) <Target MMIX options>: Add
2168	--linker-allocated-gregs.
2169	* doc/c-mmix.texi (MMIX-Opts): Add blurb about
2170	--linker-allocated-gregs.  Mention that it's implied by -x.
2171	(MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
2172	(MMIX-mmixal): Clarify dated comparison and location of MMIXware.
2173
2174	* config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
2175
21762002-02-01  Alan Modra  <amodra@bigpond.net.au>
2177
2178	* Makefile.am: Run "make dep-am"
2179	* Makefile.in: Regenerate.
2180
21812002-01-31  Ivan Guzvinec  <ivang@opencores.org>
2182
2183	* config/tc-or32.c: New file.
2184	* config/tc-or32.h: New file.
2185	* configure.in: Add support for or32 targets.
2186	* configure: Regenerate.
2187	* config/obj-coff.c: Add support for or32 targets.
2188	* config/obj-coff.h: Add support for or32 targets.
2189	* Makefile.am: Add support for or32 targets.
2190	* Makefile.in: Regenerate.
2191	* NEWS: Mention support for OpenRISC.
2192	* doc/Makefile.in: Regenerate.
2193	* po/POTFILES.in: Regenerate.
2194	* po/gas.pot: Regenerate.
2195
21962002-01-30  Richard Sandiford  <rsandifo@redhat.com>
2197
2198	* config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
2199	and mod.
2200
22012002-01-29  Chris Demetriou  <cgd@broadcom.com>
2202
2203	* config/tc-mips.c (tc_gen_reloc): Arrange for
2204	BFD_RELOC_PCREL_HI16_S relocations to be output relative to
2205	their LO16 parts, even for ELF.
2206
22072002-01-29  Daniel Jacobowitz  <drow@mvista.com>
2208
2209	* config/tc-i386.c: Protect definitions of true and false
2210	from redefinition.
2211
22122002-01-28  Jakub Jelinek  <jakub@redhat.com>
2213
2214	* config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
2215	made because of .weak, if they are neither defined nor used in any
2216	way.
2217
22182002-01-27  Daniel Jacobowitz  <drow@mvista.com>
2219
2220	* configure: Regenerated.
2221
22222002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
2223
2224	* doc/Makefile.am (install): Depend on install-info.
2225	* doc/Makefile.in: Regenerate.
2226
22272002-01-26  Nick Clifton <nick@redhat.com>
2228
2229	* po/fr.po: Updated version
2230
22312002-01-24  Kazu Hirata  <kazu@hxi.com>
2232
2233	* config/tc-h8300.c (check_operand): Don't print a warning
2234	when a valid 24-bit address is given to a 16-bit address
2235	operand.
2236
22372002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2238
2239	* config/tc-sh.c (sh_elf_suffix): Removed.
2240	(sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
2241	sh_end_of_match, sh_parse_name): New functions.
2242	(sh_elf_cons): Simplify.
2243	(parse_exp): Reject misplaced PIC operands.
2244	(md_undefined_symbol): Simplify.
2245	(sh_fix_adjustable): Let @GOTOFF be adjusted.
2246	(md_apply_fix3): Write @PLT and @GOTOFF addends in place.
2247	(tc_gen_reloc): Move fixp subsy absolute value into addnumber.
2248	Complain if subsy remains at the end.
2249	* config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
2250	(md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
2251
22522002-01-22  Alexandre Oliva  <aoliva@redhat.com>
2253
2254	* config/tc-mn10300.c (xr_registers): Move `pc'...
2255	(other_registers): ... here.
2256
22572002-01-22  Alan Modra  <amodra@bigpond.net.au>
2258
2259	* Makefile.am: Run "make dep-am".
2260	* Makefile.in: Regenerate.
2261	* gas/po/POTFILES.in: Regenerate.
2262
22632002-01-21  DJ Delorie  <dj@redhat.com>
2264
2265	* config/obj-coff.c (obj_coff_init_stab_section): Make the
2266	stabstr_name allocation permanent, as it will be referenced from
2267	the section hash.
2268
22692002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
2270
2271	* configure.in (ia64-*-netbsd*): New target.
2272	* configure: Regenerate.
2273
22742002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
2275
2276	* doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
2277	to @dots call.
2278	<Detailed description, ARM options>: Ditto.
2279	* doc/c-arm.texi (ARM Options): Ditto.
2280
22812002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2282
2283	* tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
2284	do_mia, do_mar and do_mra respectively.
2285	(do_mav_*): Renamed from do_c_*.
2286	(mav_reg_required_here, mav_parse_offset): Renamed from
2287	cirrus_reg_required_here and cirrus_parse_offset respectively.
2288	(MAV_MODE?): Renamed from CIRRUS_MODE?.
2289
22902002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2291	    Keith Walker  <keith.walker@arm.com>
2292
2293	* tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
2294	(insns): Add pattern for bxj instruction.
2295	(do_bxj): New function.
2296	(arm_cpus): Add arm926ej.
2297	(arm_archs): Add armv5tej.
2298
22992002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2300
2301	* doc/c-arm.texi: Add new fpe options to list of supported flags.
2302
23032002-01-19  Keith Walker  <keith.walker@arm.com>
2304
2305	* tc-arm.c (arm_fpus): Add fpe2 and fpe3.
2306
23072002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2308
2309	* NEWS: Mention new ARM command-line options and VFP support.
2310
2311	* config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
2312	uses changed.
2313	(ARM_CEXT_MAVERICK): Similarly.
2314	(ARM_ANY): Now means any core instruction.
2315	(CPU_DEFAULT): Default to ARM_ANY.
2316	(uses_apcs_26, atcps, support_interwork, uses_apcs_float)
2317	(pic_code): Declare for all object types.  Make type int.
2318	(legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
2319	(march_fpu_opt, mfpu_opt): Declare.
2320	(md_longopts): Tidy up conditional definitions.
2321	(arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
2322	(arm_long_opts): New tables.
2323	(arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
2324	(arm_parse_extension): New function.
2325	(md_parse_option): Rewrite using new table-driven system.
2326	(md_show_usage): Use new table-driven system.
2327	(md_begin): Calculate cpu_variant from command line option data.
2328	* doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
2329	command-line options.
2330	* doc/c-arm.texi: Likewise.
2331
23322002-01-18  Andreas Jaeger  <aj@suse.de>
2333
2334	* as.c (parse_args): Update year.
2335
23362002-01-17  Timothy Wall  <twall@alum.mit.edu>
2337
2338	* config/tc-tic54x.c (encode_address): Add a more informative
2339	warning about incorrect syntax.
2340
23412002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2342
2343	* po/gas.pot: Regenerate.
2344
23452002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2346
2347	* macro.c (get_any_string): Add no-c-format comment to prevent
2348	confusion when translating string.
2349	* gasp.c (get_any_string): Add no-c-format comment to prevent
2350	confusion when translating string.
2351
23522002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2353	    Johannes Stezenbach <js@convergence.de>
2354	* config/tc-mips.c (percent_op): Ensure longer percent_op's are
2355	matched before the shorter ones.
2356	(my_getSmallParser): Fix handling of nested parentheses in
2357	percent_op's. Code cleanup.
2358	(my_getPercentOp): New function, code from my_getSmallParser.
2359	(my_getSmallExpression): Fix handling of closing parentheses.
2360	Code cleanup. Better comments.
2361
23622002-01-16  Nick Clifton <nickc@redhat.com>
2363
2364	po/tr.po: New file: Turkish translation.
2365	configure.in (LINGUAS): Add "tr".
2366	configure: Regenerate.
2367
23682002-01-15  Richard Earnshaw  <rearnsha@arm.com>
2369
2370	Support for VFP instructions
2371	* tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
2372	(cp_address_required_here): New argument wb_ok.  When false, do not
2373	accept write-back forms of addressing.  Change all callers.
2374	(FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
2375	(FPU_VFP_EXT_V2): Define.
2376	(FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
2377	Define in terms of above.
2378	(vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
2379	(vfp_reg): New struct.
2380	(vfp_regs): New array of registers.
2381	(insns): Add VFP instructions.
2382	(sn_table): New array of VFP single-precision register names.
2383	(dn_table): New array of VFP double-precision register names.
2384	(all_reg_maps): Add the new register tables.
2385	(arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
2386	(vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
2387	(do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
2388	(do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
2389	(do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
2390	(do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
2391	(do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
2392	(do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
2393	(vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
2394	(do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
2395	(do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
2396	(do_vfp_sp_dp_cvt): New functions.
2397	(md_begin): Set soft-float flag for appropriate VFP work.
2398	(md_atof): Handle VFP-format doubles.
2399	(md_parse_option): Handle VFP command-line options.
2400	(md_show_usage): Display VFP command-line options.
2401
24022002-01-15  Richard Earnshaw  <rearnsha@arm.com>
2403
2404	* tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
2405	various command line options.
2406
24072002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
2408
2409	* config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
2410	vtinherit relocs.
2411	(xstormy16_md_apply_fix3): Do not return a value.
2412
24132002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2414
2415	* tc-arm.c (md_longopts): On targets that aren't bi-endian, support
2416	the -EL/-EB option that matches the target's endianness.
2417	(md_parse_option): Likewise.
2418
24192002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2420
2421	* tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
2422	is not dependent on ARM_BI_ENDIAN.
2423
24242002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2425
2426	* tc-arm.c (all error messages): Normalize capitalization of messages.
2427
2428	* tc-arm.h (md_operand): Delete define.
2429	* tc-arm.c (in_my_get_expression): New static variable.
2430	(my_get_expression): Set and clear it.
2431	(md_operand): New function.  If called from my_get_expression
2432	put the error in inst.error.
2433	(output_inst): Now takes argument of instruction being assembled.
2434	Print it out with any error message.
2435	(do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2436	with '=' syntax.
2437	(end_of_line): Don't update inst.error if it is already set.
2438
24392002-01-11  Richard Earnshaw  <rearnsha@arm.com>
2440
2441	* tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
2442	op that can be translated into a mvn instruction.
2443
24442002-01-11  Steve Ellcey  <sje@cup.hp.com>
2445
2446	* gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2447	setting default md.flags.
2448	(SHT_INIT_ARRAY): New elf special section used by HP-UX.
2449	(SHT_FINI_ARRAY): New elf special section used by HP-UX.
2450	* gas/config/tc-ia64.c (setup_unwind_header): Add support
2451	for 32 bit unwind info blocks.
2452	(generate_unwind_image): Add support for different types
2453	of unwind images (32 bits and/or big-endian).
2454	(ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2455	(ia64_target_format): Add support for hpux target formats.
2456	(ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2457	(ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2458	SHT_FINI_ARRAY elf section types.
2459
24602002-01-10  Richard Earnshaw  <rearnsha@arm.com>
2461
2462	* tc-arm.c (struct reg_entry): Move before prototypes.
2463	(int_register, cp_register, fp_register): Delete.
2464	(reg_table): Delete.  Replaced with ...
2465	(rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2466	(mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2467	(mav_dspsc_table): ... one table per register set.
2468	(arm_reg_hsh): Delete.
2469	(struct reg_map): New structure.
2470	(all_reg_maps): New array.
2471	(enum arm_reg_type): New enums.
2472	(build_reg_hsh): New function.
2473	(insert_reg_alias): Use hash table passed by caller.  Adjust all
2474	callers.
2475	(create_register_alias): New function, split out from ...
2476	(md_assemble): ... here.
2477	(md_begin): Build new register hash tables.
2478	(arm_reg_parse): New argument for the hash table to search.  Adjust all
2479	callers.
2480	(arm_reg_parse_any): New function.
2481	(co_proc_number): Look up the processor number in the processor hash
2482	table.
2483	(cirrus_regtype): Delete.
2484	(cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2485	(cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2486	(ARM_EXT_MAVERICKsc_register): Delete.
2487	(do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2488	(do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2489	functions.
2490	(do_c_triple_4, do_c_triple_5): Delete.
2491	(do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2492	(do_c_quad_6): Delete.
2493	(do_c_quad_6[ab]): New functions.
2494	(do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2495	arguments to use new register parsing methods.
2496	(cirrus_reg_required_here): Likewise.
2497	(insns): Reclassify cirrus maverick worker functions.
2498	(cirrus_valid_reg): Delete.
2499
25002002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
2501
2502	* configure.in (sh*le): Set cpu_type=sh and endian=little.
2503	(sh*-*-netbsdelf*): New target.
2504	* configure: Regenerate.
2505	* tc-sh.h: Update copyright years.
2506	(TARGET_FORMAT): Add version for TE_NetBSD.
2507
25082002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
2509
2510	* read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2511	negative.
2512
25132002-01-06  Alan Modra  <amodra@bigpond.net.au>
2514
2515	* config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2516	* config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2517
25182002-01-05  Daniel Jacobowitz  <drow@mvista.com>
2519
2520	* tc-mips.c (mips_cprestore_valid): New flag.
2521	(mips_frame_reg_valid): New flag.
2522	(macro) [M_JAL_2]: Check both flags.
2523	[M_JAL_A]: Likewise.
2524	(s_cprestore): Set mips_cprestore_valid.
2525	(tc_get_register): If setting mips_frame_reg, set
2526	mips_frame_reg_valid and clear mips_cprestore_valid.
2527	(s_mips_ent): Clear both flags.
2528	(s_mips_end): Clear both flags.
2529
25302002-01-05  Alan Modra  <amodra@bigpond.net.au>
2531
2532	* write.c (write_object_file): Make use of bfd_section_list_remove.
2533	* config/obj-ecoff.c (ecoff_frob_file): Likewise.
2534	* config/tc-mmix.c (mmix_frob_file): Likewise.
2535
25362002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2537
2538	* configure.in (i386-*-netbsdelf*): Collapse target into...
2539	(i386-*-netbsd*): ...this.  Add support for x86-64.
2540	* configure: Regenerated.
2541
25422002-01-03  matthew green  <mrg@redhat.com>
2543
2544	* config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2545
25462002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
2547
2548	* config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2549	NULL frag link.
2550
2551For older changes see ChangeLog-0001
2552
2553Local Variables:
2554mode: change-log
2555left-margin: 8
2556fill-column: 74
2557version-control: never
2558End:
2559