Add per-section and per-sub-section literal pools.
[binutils.git] / gas / ChangeLog
blob9ac2aa87bc21205249882d365d167e6c73fdcc76
1 2002-07-30  Nick Clifton  <nickc@redhat.com>
3         * config/tc-arm.c (struct literal_pool): Add fields to allow
4         multiple literal pools to be maintained.
5         (find_literal_pool): New function.
6         (find_or_make_literal_pool): New function.
7         (add_to_literal_pool): Use find_or_make_literal_pool.
8         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
9         needed.
10         (s_ltorg): Use find_literal_pool.
11         (arm_cleanup): Dump all literal pools.
12         * doc/c-arm.texi: Document new behaviour of only dumping literal
13         pools upon request.
15 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
17         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
18         rather than PPC_OPCODE_32 for powerpc64*.
20 2002-07-25  Nick Clifton  <nickc@redhat.com>
22         * po/es.po: Updated Spanish translation.
23         * po/fr.po: Updated French translation.
25 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
27         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
28         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
29         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
30         * configure, config.in: Regenerate.
31         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
32         (mips_set_options): Remove "abi" field.
33         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
34         with mips_abi.
35         (mips_cpu): Remove.
36         (mips_arch_string, mips_arch_info): New vars.
37         (mips_tune_string, mips_tune_info): New vars.
38         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
39         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
40         (mips_isa_to_str, mips_cpu_to_str): Remove.
41         (mips_ip): If the selected architecture is a generic ISA rather
42         than a processor, only mention the ISA level in error messages.
43         (OPTION_MCPU): Remove.
44         (OPTION_FP64): New.
45         (md_longopts): Add -mfp64, remove -mcpu.
46         (mips_set_option_string): New fn.
47         (md_parse_option): Make -mipsN update file_mips_isa rather than
48         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
49         Don't let -mgp32 and -mfp32 change the ABI.
50         (show): Move to end of file.  Constify string argument.
51         (md_show_usage): Move to the end of the file.  Read available
52         architectures from mips_cpu_info_table.
53         (mips_set_architecture): New fn.
54         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
55         is an alias for -march=mipsN.  Don't change the ABI based on other
56         flags.  Infer the register size from the ABI as well as the
57         architecture.  Complain about more conflicting arguments.
58         Unify logic with GCC.
59         (s_mipsset): Don't change the ABI.
60         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
61         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
62         "mipsN"-type entries.  Remove entries that vary only in the
63         manufacturer's prefix, or that have "000" replaced by "k".
64         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
65         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
66         (mips_parse_cpu): New fn.
67         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
68         (mips_cpu_info_from_isa): Minor formatting tweak.
70 2002-07-24  Nick Clifton  <nickc@redhat.com>
72         * po/sv.po: Updated Swedish translation.
73         * po/es.po: Updated Spanish translation.
75 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
77         * Makefile.am: Run "make dep-am".
78         * Makefile.in: Regenerate.
79         * doc/Makefile.in: Regenerate.
80         * config.in: Regenerate.
81         * po/POTFILES.in: Regenerate.
83 2002-07-23  Nick Clifton  <nickc@redhat.com>
85         * po/fr.po: Updated French translation.
87 2002-07-23  Nick Clifton  <nickc@redhat.com>
89         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
90         GAS.
92 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
94         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
95         instead of S_IS_EXTERN.
96         (md_estimate_size_before_relax): Likewise.
97         (mips_fix_adjustable): Likewise.
99 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
101         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
103 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
104             Nick Clifton  <nickc@redhat.com>
106         * cond.c (s_ifdef): Treat a referenced but not yet defined
107         symbol as if it were undefined, in exactly the same way as
108         .equiv.
110         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
111         consider referenced bug not yet defined symbols to be
112         undefined.
114 2002-07-18  Denis Chertykov  <denisc@overta.ru>
115             Frank Ch. Eigler  <fche@redhat.com>
116             Alan Lehotsky  <alehotsky@cygnus.com>
117             John Healy  <jhealy@redhat.com>
118             Jeff Johnston  <jjohnstn@redhat.com>
120         * configure.in: Add ip2k configuraton.
121         * configure: Regenerate.
122         * Makefile.am: Add ip2k configuraton.
123         * Makefile.in: Regenerate.
124         * configure: Regenerate.
125         * Makefile.in: Regenerate.
126         * config/tc-ip2k.c: New file.
127         * config/tc-ip2k.h: New files.
128         * NEWS: Mention new support.
129         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
130         * doc/Makefile.in: Regenerate.
131         * doc/all.texi: Set IP2K
132         * doc/as.texinfo: Add IP2K description.
133         * doc/c-ip2k.texi: New file.
135 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
137         * NEWS: Reformat to match style of other NEWS files.
139 2002-07-17  Jan Hubicka  <jh@suse.cz>
141         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
143 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
145         * config/tc-z8k.c (build_bytes): Correct order of memset args.
147 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
149         * NEWS: Add 'Changes in 2.13'.
151 2002-07-15  Matt Fredette  <fredette@netbsd.org>
153         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
155 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
157         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
158         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
159         not CODE_64BIT.
161 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
163         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
164         (ppc_frob_file_before_adjust): New function.
165         * config/tc-ppc.h (tc_frob_symbol): Don't define.
166         (ppc_elf_frob_symbol): Don't declare.
167         (tc_frob_file_before_adjust): Define.
168         (ppc_frob_file_before_adjust): Declare.
170         * config/tc-ppc.c (md_pseudo_table): Warning fix.
171         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
172         flags.
173         (ppc_size): Delete.
174         (ppc_xcoff64): Rename to ppc_obj64.
175         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
176         (ppc_set_cpu): Set PPC_OPCODE_32 too.
177         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
178         or bfd_mach_ppc.
179         (ppc_target_format): Use ppc_obj64 to select format.
180         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
181         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
182         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
183         (tc_frob_symbol): Likewise.
184         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
185         BFD_DEFAULT_TARGET_SIZE.
186         (ppc_tc): Likewise.
187         (ppc_is_toc_sym): Likewise.
188         (md_apply_fix3): Likewise.
189         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
190         BFD_DEFAULT_TARGET_SIZE.
191         (ELF_TC_SPECIAL_SECTIONS): Likewise.
192         (tc_frob_symbol): Likewise.
194 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
196         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
197         (mips_ip): Likewise.
199 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
201         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
202         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
203         (md_apply_fix3): Formatting.  Remove redundant test.
204         (tc_gen_reloc): Remove redundant code.
205         (tc_i386_force_relocation): Delete.  Movy body of function to..
206         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
208 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
210         * configure.in: Add hppa-*-openbsd* target, change
211         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
212         with sparc64 cpu.
213         * configure: Regenerate.
215 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
217         * config/tc-mips.c (macro): Shift the 32-bit address range
218         accessible with a lone "lui" down by 32768.
220 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
222         * config/tc-mips.c (load_address): Use non-trapping "daddu"
223         instead of "dadd" in address calculations.
224         (macro): Likewise.
226 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
228         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
229         movzx fudges.
230         (md_assemble): Instead, zap the suffix here.
232 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
234         * NEWS: Remove next release number until the release is actually
235         upon us.
237 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
239         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
240         Run "make dep-am".
241         * Makefile.in: Regenerate.
243 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
245         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
246         to symbols in merge sections, even non pc-relative ones.
248 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
250         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
252 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
254         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
255         .softregs and .eeprom.
257 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
259         * NEWS: Note the next release is 2.13.
261 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
263         * po/tr.po: New translation imported.
265 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
267         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
268         (ecoff_directive_def): Likewise.
269         (ecoff_directive_tag): Likewise.
270         * listing.c (file_info): Likewise.
271         * hash.c (what): Likewise.
273 2002-06-25  H.J. Lu <hjl@gnu.org>
275         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
276         * Makefile.in: Regenerated.
278 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
280         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
281         (assemble_ppi): Generate warning if the same register is used
282         twice as destination in the same padd / pmuls instruction.
284 2002-06-18  Dave Brolley  <brolley@redhat.com>
286         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
287         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
288         * configure.in: Support frv-*-*.
289         * Makefile.am (CPU_TYPES): Add frv.
290         (TARGET_CPU_CFILES): Add tc-frv.c.
291         (TARGET_CPU_HFILES): Add tc-frv.h.
292         (DEPTC_frv_coff): New variable.
293         (DEPTC_frv_elf): New variable.
294         (DEPOBJ_frv_coff): New variable.
295         (DEPOBJ_frv_elf): New variable.
296         (DEP_frv_coff): New variable.
297         (DEP_frv_elf): New variable.
298         * tc-frv.c: New file.
299         * tc-frv.h: New file.
301 2002-06-17  Catherine Moore <clm@redhat.com>
303         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
305 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
307         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
309 2002-06-17  Tom Rix <trix@redhat.com>
311         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
313 2002-06-14  H.J. Lu  <hjl@gnu.org>
314             Daniel Jacobowitz  <drow@mvista.com>
316         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
317         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
318         * config/tc-mips.c (s_mips_file): Call s_app_file_string
319         and new_logical_line for the first .file directive.
320         * read.c (s_app_file_string): New function.
321         (s_app_file): Call it.
322         * read.h (s_app_file_string): Add declaration.
324 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
326         * configure.in: Remove MIPS_STABS_ELF.
327         * configure: Regenerated.
328         * config.in: Regenerated.
329         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
330         for MIPS targets.
331         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
332         ".extern".
333         (pdr_seg): Declare unconditionally.
334         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
335         (s_mips_end): Likewise.  Generate stabs function markers.
336         (s_mips_ent): Generate stabs function markers.
337         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
338         ELF.
339         (s_mips_mask): Likewise.
340         (mips_flag_mdebug): New.
341         (md_longopts): Add "mdebug" and "no-mdebug".
342         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
343         (mips_after_parse_args): Set mips_flag_mdebug.
344         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
346 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
348         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
349         value twice for RELA relocations.
351 2002-06-12  Ben Elliston  <bje@redhat.com>
353         * symbols.c (resolve_symbol_value): Initialise final_val.
355         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
357 2002-06-11  Tom Rix  <trix@redhat.com>
359         * config/tc-ppc.c (ppc_subseg_align): Delete.
360         (ppc_change_csect): Default csect align is 2.
361         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
363 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
365         * config/tc-avr.c (mcu_types): Update.
367 2002-06-08  Matt Thomas  <matt@3am-software.com>
369         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
370         (vax-*-netbsd*): New targets.
371         * configure: Regenerate.
372         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
373         * config/tc-vax.c: Add support for ELF and PIC.
374         (flag_want_pic): New flag.
375         (float_cons): Fix prototype.
376         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
377         (md_assemble): Introduce a new is_absolute local, and use it
378         rather than repeating the test.  Make fatal errors actually
379         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
380         Add support for ELF.  Add support for PIC.
381         (md_convert_frag): Adjust for BFD_ASSEMBLER.
382         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
383         BFD_ASSEMBLER.
384         (vax_reg_parse): Make the % register prefix mandatory for ELF,
385         optional for a.out, and not allowed for VMS.  Adjust all callers.
386         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
387         (md_create_long_jump): Likewise.
388         (md_undefined_symbol): Likewise.
389         (md_section_align): Likewise.
390         (md_shortopts): Allow -k and -K for ELF.
391         (md_parse_option): Set flag_want_pic if -k or -K.
392         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
393         (tc_gen_reloc): New function if BFD_ASSEMBLER.
394         * config/tc-vax.h (tc_headers_hook): Remove.
395         (TARGET_FORMAT): Set according to object format and target
396         environment.
397         (BFD_ARCH, TARGET_ARCH): Define.
398         (NO_RELOC): Adjust for BFD_ASSEMBLER.
399         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
400         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
401         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
403 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
405         * Makefile.am: Run "make dep-am".
406         * Makefile.in: Regenerate.
408         * as.c: Replace CONST with const.
409         * write.c: Likewise.
410         * config/obj-coff.c: Likewise.
411         * config/tc-a29k.c: Likewise.
412         * config/tc-arm.c: Likewise.
413         * config/tc-dlx.c: Likewise.
414         * config/tc-h8300.c: Likewise.
415         * config/tc-h8500.c: Likewise.
416         * config/tc-i370.c: Likewise.
417         * config/tc-i860.c: Likewise.
418         * config/tc-i960.c: Likewise.
419         * config/tc-m68hc11.c: Likewise.
420         * config/tc-m68k.c: Likewise.
421         * config/tc-m88k.c: Likewise.
422         * config/tc-mcore.c: Likewise.
423         * config/tc-mips.c: Likewise.
424         * config/tc-ns32k.c: Likewise.
425         * config/tc-pdp11.c: Likewise.
426         * config/tc-pj.c: Likewise.
427         * config/tc-s390.c: Likewise.
428         * config/tc-sh.c: Likewise.
429         * config/tc-sparc.c: Likewise.
430         * config/tc-tahoe.c: Likewise.
431         * config/tc-tic80.c: Likewise.
432         * config/tc-v850.c: Likewise.
433         * config/tc-vax.c: Likewise.
434         * config/tc-w65.c: Likewise.
435         * config/tc-z8k.c: Likewise.
437 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
439         Based on patch from Matt Green:
440         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
441         * config/tc-mips.c (s_mips_file): Renamed from s_file.
442         (s_mips_loc): New function.
443         (mips_nonecoff_pseudo_table): Call them.
444         (append_insn): Call dwarf2_emit_insn.
446 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
448         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
449         to -1.
450         (file_ase_mips16): New veriable.
451         (mips_eabi64): Remove.
452         (CPU_HAS_MIPS16): New define.
453         (CPU_HAS_MDMX): Fix data type.
454         (md_begin): Code cleanup. Use file_ase_mips16.
455         (mips_elf_final_processing): Handle mips16 header flag.
456         Handle EABI flag without intermediate variable.
458 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
460         * doc/as.texinfo: Update MIPS documentation.
462 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
464         * config/tc-mips.c: Add define for $zero register.
465         (md_begin): Add $zero as alias name for $0.
466         (insn_uses_reg): Use ZERO define.
467         (mips_ip): Add $zero as alias name for $0.
468         (mips16_ip): Likewise.
469         (s_cplocal): Demand empty rest of input line.
470         (tc_get_register): Likewise. Add support for $kt0, kt1 register
471         names. Use ZERO define. Fix input_line_pointer progress.
473 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
475         * symbols.c: Replace CONST by const throughout.
476         (symbol_find_exact): Split out from..
477         (symbol_find_base): ..here.
478         * symbols.h: Replace CONST by const throughout.
479         (symbol_find_exact): Declare.
480         * config/obj-elf.c: #include "struc-symbol.h".
481         (elf_frob_file): If group name matches an exported symbol, use that
482         symbol for the signature and ".group" as the section name.
484 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
486         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
487         but warn about it.
488         * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
489         * testsuite/gas/sh/pcrel.d: Update.
490         * testsuite/gas/sh/pcrel.l: New file.
492 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
494         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
495         and mips_opts.ase_mdmx if they are uninitialized.
497 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
499         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
500         (hppa_force_relocation): Check if a stub just before the start symbol
501         of the last call_info is reachable before forcing relocation.  Fix
502         typo.
504 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
506         * config/tc-mips.c (mips_after_parse_args): New function.
507         (md_begin): Move processing of defaults to mips_after_parse_args.
508         config/tc-mips.h (md_after_parse_args): Define.
510 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
512         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
513         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
514         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
515         * configure: Regenerate.
516         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
517         environment.
519 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
521         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
523 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
525         * config/obj-elf.c (obj_elf_change_section): Set and check elf
526         linkonce flag.  Print all warnings.
527         (obj_elf_section): Parse ",comdat" for groups.
528         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
529         consistency of comdat flag.
531 2002-06-02  Richard Henderson  <rth@redhat.com>
533         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
534         with LITERALs without sequence numbers.
536 2002-06-01  Richard Henderson  <rth@redhat.com>
538         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
539         Rename them LITUSE_ALPHA_*.
541 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
543         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
544         accept parentheses enclosed register lists.
546 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
548         * Makefile.am: Run "make dep-am".
549         * Makefile.in: Regenerate.
550         * po/POTFILES.in: Regenerate.
552 2002-05-31  Graeme Peterson  <gp@qnx.com>
554         * configure.in: Add i386-*-nto-qnx*.
555         * configure: Regenerate.
557 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
559         * config/tc-mips.c (mips_ip): Use unsigned long values for
560         warning output.
562 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
564         * config/tc-mips.c (s_cpsetup): Fix initialization of
565         mips_cpreturn_register and mips_cpreturn_offset.
567 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
569         * config/tc-mips.c (s_cpsetup): Fix comment.
571 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
573         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
574         (mips_ip): Likewise.
575         (mips16_ip): Likewise.
576         (tc_get_register): Likewise.
578 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
579             Ed Satterthwaite  <ehs@broadcom.com>
581         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
582         (mips_opts): Initialize "ase_mdmx" member.
583         (file_ase_mdmx): New variable.
584         (CPU_HAS_MDMX): New macro.
585         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
586         based on command line options and configuration defaults.
587         (macro_build): Note in comment that use of MDMX in macros is
588         not currently allowed.
589         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
590         "Z" MDMX operand types.
591         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
592         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
593         types.
594         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
595         Add support for "-mdmx" and "-no-mdmx" options.
596         (OPTION_ELF_BASE): Move to accomodate new options.
597         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
598         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
599         file_ase_mdmx was set.
600         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
601         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
602         nomdmx" directives.
604 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
606         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
607         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
608         command line switch conforming to gcc conventions.
609         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
611 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
613         * config/tc-mips.c (macro_build_jalr): New Function.
614         (md_begin): NewABI uses big GOTs.
615         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
616         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
617         (load_address): Add some NewABI PIC support.
618         (macro): Likewise.
619         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
620         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
622 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
624         * config/tc-mips.c (load_address): Use mips_gp_register instead
625         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
626         instead.
627         (macro): Use mips_gp_register instead of hardcoded value.
629 2002-05-30  Richard Henderson  <rth@redhat.com>
631         * expr.h (operatorT): Add O_md17..O_md32.
632         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
633         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
634         O_tprelhi, O_tprello, O_tprel): New.
635         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
636         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
637         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
638         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
639         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
640         (md_apply_fix3): Handle TLS relocations.
641         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
642         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
643         associated TLS reloc.  Check lituse_tls relocs match up.
644         (emit_insn): Handle TLS relocations.
645         (ldX_op): Remove.
647         * doc/c-alpha.texi: Add docs for tls relocations.
649 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
651         * config/tc-mips.c (mips_gprel_offset): New variable.
652         (s_gpvalue): Use it.
654 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
656         * gas/config/tc-d10v.c (check_resource_conflict): Only check
657         write-write conflicts.
658         (md_assemble): Reformat introductory comment.
659         (parallel_ok): Prevent packing only if the first
660         instruction cannot be packed.
662 2002-05-30  Jason Eckhardt <jle@redhat.com>
663             Tom Rix <trix@redhat.com>
665         * config/tc-d10v.c (build_insn): Check for immediates.
667 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
669         * config/tc-mips.c: Replace GP in comments by $gp.
670         (mips_big_got): Initialize.
671         (mips_trap): Initialize.
672         (load_address): Use mips_gp_register instead of hardcoded value.
673         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
674         (macro): Use mips_gp_register instead of hardcoded value.
675         (macro2): Change load_address calls.
676         (md_pcrel_from): Comment formatting.
677         (s_cpload): Use mips_gp_register instead of hardcoded value.
678         (s_cprestore): Likewise. Comment formatting.
679         (s_gpword): Fix data type.
680         (s_cpadd): Use mips_gp_register instead of hardcoded value.
681         (nopic_need_relax): Replace GP in comments by $gp.
682         (mips_elf_final_processing): Better comment.
684 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
686         * configure.in: Add DLX configuraton
687         * Makefile.am: Add DLX configuraton
688         * configure: Regenerate.
689         * Makefile.in: Regenerate.
690         * config/tc-dlx.c: New file.
691         * config/tc-dlx.h: New files.
692         * NEWS: Mention new support.
694 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
696         * config/obj-coff.c (write_object_file): Add missing semicolon.
698 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
700         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
701         by the define. Remove superfluous check of mips_opts.mips16.
702         (append_insn): Likewise. Canonicalize variable increments.
703         (macro_build): Canonicalize variable increments.
704         (macro_build_lui): Likewise.
705         (load_register): Likewise.
706         (load_address): Move pointer initialization.
707         (macro): Move pointer to a more local scope. Canonicalize variable
708         increments. Better comments. Replace magic constant for RA by the
709         define.
710         (macro2): Replace magic constant for RA by the define. Canonicalize
711         variable increments.
712         (mips_ip): Canonicalize variable increments.
713         (mips16_ip): Replace magic constant for RA by the define.
714         (my_getSmallParser): Canonicalize variable increments/decrements.
715         (my_getPercentOp): Likewise.
716         (my_getSmallExpression): Likewise.
717         (s_align): Likewise.
718         (s_mipsset): Likewise.
719         (s_cpsetup): Likewise.
720         (s_insn): Remove superfluous check of mips_opts.mips16.
721         (s_mips_stab): Likewise.
722         (mips_handle_align): Canonicalize variable increments.
723         (s_mips_ent): Likewise.
724         (s_mips_end): Add comment.
726 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
728         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
729         * configure: Regenerate.
731 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
733         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
734         * Makefile.in: Regenerate.
735         * dep-in.sed: Reorder to match OBJS in Makefile.am.
736         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
737         * configure: Regenerate.
738         * as.h: Use #include "" instead of <> for local header files.
739         * flonum-konst.c: Likewise.
740         * flonum-mult.c: Likewise.
741         * gasp.c: Likewise.
742         * listing.c: Likewise.
743         * config/tc-ia64.h: Likewise.
744         * config/tc-v850.h: Likewise.
746 2002-05-24  TAMURA Kent <kent@netbsd.org>
748         * configure.in: Add a target for i386-netbsdpe.
749         * configure: Regenerate.
751 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
753         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
754         (obj_elf_common): Call elf_common.
755         (obj_elf_tls_common): New function.
756         (elf_pseudo_tab): Support .tls_common.
757         (special_sections): Add .tdata and .tbss.
758         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
759         sections.
760         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
761         (obj_elf_parse_section_letters): Include T in error message.
762         * config/tc-ppc.c (ppc_section_letter): Likewise.
763         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
764         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
765         SEC_MERGE.
766         * config/tc-sparc.c (md_apply_fix3): Likewise.
767         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
768         Define them if not BFD_ASSEMBLER.
769         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
770         and @NTPOFF.
771         (md_apply_fix3): Add TLS relocs.
772         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
773         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
774         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
775         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
776         (ia64_elf_section_letter): Include T in error message.
777         (md_begin): Support TLS operators.
778         (md_operand): Likewise.
779         (ia64_gen_real_reloc_type): Support TLS relocs.
780         * testsuite/gas/i386/tlspic.s: New file.
781         * testsuite/gas/i386/tlsd.s: New file.
782         * testsuite/gas/i386/tlsnopic.s: New file.
783         * testsuite/gas/i386/tlsd.d: New file.
784         * testsuite/gas/i386/tlsnopic.d: New file.
785         * testsuite/gas/i386/tlspic.d: New file.
786         * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
787         * testsuite/gas/ia64/tls.s: New file.
788         * testsuite/gas/ia64/tls.d: New file.
789         * testsuite/gas/ia64/ia64.exp: Add tls test.
790         * write.c (adjust_reloc_syms): Don't change symbols in
791         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
793 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
795         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
796         round the relocation up rather than down.
798 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
800         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
801         flag.
802         * doc/as.texinfo: Document that the COFF version of .section
803         ignores the 'a' flag.
805 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
807         * config/tc-alpha.c (assemble_tokens): Protect use of
808         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
810         * write.c (size_seg): Check adjustment to last frag.
811         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
812         section alignment.
813         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
814         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
815         (write_object_file): Invoke md_do_align if available, and use
816         frag_align_code on text sections.
817         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
818         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
819         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
820         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
821         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
822         BFD_ASSEMBLER too.
824 2002-05-22  H.J. Lu <hjl@gnu.org>
826         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
827         for source file.
829 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
831         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
832         as ELF builds.
834 2002-05-22  H.J. Lu <hjl@gnu.org>
836         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
837         for one .loc for compiler.
839 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
841         * config/tc-mips.c (macro): Relax warning, it's toot strict for
842         embedded-PIC.
844 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
846         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
847         Optimize the rotate by zero case.
849 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
851         * configure.in: Remove accidental enabling of bfd_gas=yes for
852         sh-coff targets.
853         * configure: Regenerate.
855 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
857         * app.c: Fix formatting.
858         * as.c: Likewise.
859         * ehopt.c: Likewise.
860         * expr.c: Likewise.
861         * input-file.c: Likewise.
862         * listing.c: Likewise.
863         * macro.h: Likewise.
864         * stabs.c: Likewise.
865         * symbols.c: Likewise.
867 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
869         * config/obj-generic.c: Delete file.
870         * config/obj-generic.h: Likewise.
872 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
874         * config/tc-avr.c (mcu_types): Update for new devices.
876 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
878         * config/tc-mips.c (macro): Warn about wrong la/dla use.
880 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
882         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
883         worked sometimes by accident. Fix copy&paste comment.
885 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
887         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
888         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
889         (mips_elf_final_processing): Let n32 use .reginfo.
891 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
893         * config/tc-mips.c (append_insn): Fix too small range of variable.
895 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
897         * config/tc-arm.c (arm_cleanup): Remove redundant call to
898         listing_prev_line().
900 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
902         * config/tc-arm.c (md_assemble): Remove redundant call to
903         listing_prev().
905         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
906         loc_directive_seen.
908         * stabs.c (s_stab_generic): Fix grammatical error in warning
909         message.
911 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
913         * write.c (subsegs_finish): Don't specially align last subseg.
915 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
917         * stabs.c (s_stab_generic): Warn about a description field that is
918         too big.
920         * config/obj-coff.c: Fix compile time warnings when compiling
921         without BFD_ASSEMBLER defined.
922         Fix formatting.
924         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
925         target.
926         (md_pcrel_from_section): Use md_pcrel_from().
928 2002-05-11  Bruno Haible  <bruno@clisp.org>
930         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
931         by dwarf2_directive_loc, instead of calling dwarf2_where.
933 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
935         * config/obj-coff.h: Fix formatting.
936         * config/tc-mcore.c: Likewise.
937         * config/tc-mn10300.c: Likewise.
938         * config/tc-openrisc.c: Likewise.
939         * config/tc-or32.c: Likewise.
940         * config/tc-pdp11.c: Likewise.
941         * config/tc-ppc.c: Likewise.
942         * config/tc-ppc.h: Likewise.
943         * config/tc-sh64.c: Likewise.
944         * config/tc-sh.c: Likewise.
945         * config/tc-tic54x.c: Likewise.
946         * config/tc-xstormy16.c: Likewise.
947         * config/tc-xstormy16.h: Likewise.
949 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
951         * config/obj-coff.c: Fix formatting.
952         * config/obj-elf.c: Likewise.
953         * config/tc-alpha.c: Likewise.
954         * config/tc-arm.c: Likewise.
955         * config/tc-d10v.c: Likewise.
956         * config/tc-d30v.c: Likewise.
957         * config/tc-h8300.c: Likewise.
958         * config/tc-hppa.c: Likewise.
960 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
962         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
963         reloc when no_cond_jump_promotion.
965 2002-05-08  Jim Wilson  <wilson@redhat.com>
967         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
968         current variable part of frag.
970 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
972         * config/tc-mmix.c: Fix formatting.
973         * config/tc-mmix.h: Likewise.
975 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
977         * configure: Regenerate.
979 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
981         * config/tc-m68k.c: Fix formatting.
983 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
985         * Makefile.am: Honour DESTDIR.
986         * Makefile.in: Regenerate.
988 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
990         * config/tc-ia64.c: Fix formatting.
991         * config/tc-ia64.h: Likewise.
993 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
995         * config/tc-mips.c: Fix formatting.
996         * config/tc-s390.c: Likewise.
997         * config/tc-s390.h: Likewise.
999 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
1001         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
1002         information for instructions.
1004 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1006         * as.h: Fix formatting.
1007         * cgen.c: Likewise.
1008         * cgen.h: Likewise.
1009         * dwarf2dbg.c: Likewise.
1010         * frags.h: Likewise.
1011         * gasp.c: Likewise.
1012         * macro.c: Likewise.
1013         * read.c: Likewise.
1014         * stabs.c: Likewise.
1015         * symbols.c: Likewise.
1017 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1019         * app.c (mri_pseudo): Only declare for TC_M68K.
1021         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
1022         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
1023         BFD_RELOC_16_BASEREL.
1024         (md_assemble): Likewise.
1025         (md_apply_fix3): Likewise.
1027 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
1029         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
1030         zero into an add of zero - it is not the same.
1032 2002-05-01  Arati Dikey <aratid@kpit.com>
1034         * tc-sh.c (get_specific): Generate warning if the same
1035         destination register is used in parallel instructions.
1037 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
1039         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
1041 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1043         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
1044         backwards to prevent cascading errors.
1046 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1048         * configure.in: Add support for powerpc-*-windiss.
1049         * configure: Regenerated.
1051 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1053         * config/tc-s390.c (md_parse_option): Formatting.
1055         * config/tc-i386.c: Formatting fixes, add missing space in error
1056         message.
1058 2002-04-24  Christian Groessler <chris@groessler.org>
1060         * config/tc-z8k.c (build_bytes): Add support for new cases:
1061         CLASS_IGNORE and ARG_NIM4.
1062         (md_assemble): Prevent destruction of input_line_pointer if
1063         get_operands returns failure.
1065 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
1067         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
1068         instructions to be generated by macros.
1070 2002-04-24  Andreas Schwab  <schwab@suse.de>
1072         * config/tc-i386.c (output_jump, output_disp)
1073         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
1074         more.
1075         (md_apply_fix3): Remember addend value for rela relocations.
1076         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
1078 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
1080         * config/tc-mips.c (macro_build): Add close-parenthesis missing
1081         from previous change.
1083 2002-04-22  Eric Christopher  <echristo@redhat.com>
1085         * config/tc-mips.c (macro_build): Add warning if macro instructions
1086         are expanded into a branch delay slot.
1088 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
1090         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
1091         numbers, gdb relies on them to detect the start of the prologue.
1093 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1095         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
1096         symbols in merge sections.
1098 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
1100         * as.c (main): Don't reference _bfd_chunksize.
1102 2002-04-15  Tom Rix  <trix@redhat.com>
1104         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
1105         symbols in merge sections.
1107 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
1109         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
1110         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
1111         argument for the precision.
1112         (gen_to_words): Update accordingly.
1114 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
1116         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
1117         BFD_VERSION_STRING unavailable.
1118         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
1120 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
1122         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
1123         symbol_used_in_reloc_p is true.
1125         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
1126         endian hosts.
1128 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1130         * dep-in.sed: Cope with absolute paths.
1131         * Makefile.am (dep.sed): Subst TOPDIR.
1132         Run "make dep-am".
1133         * Makefile.in: Regenerate.
1135 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1137         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
1138         (mips_ip): Remove unused variable.
1139         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
1140         unsigned char with bfd_byte.
1141         (s_file): Remove unused variable.
1142         (s_mips_ent): Likewise.
1144 2002-04-03  Tom Rix  <trix@redhat.com>
1146         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
1147         (build_insn): Same.
1148         (find_opcode): Fix warning in as_warn.
1149         * config/tc-d10v.h: Update Copyright.
1151 2002-04-03  Alan Matsuoka <alanm@redhat.com>
1152             Tom Rix  <trix@redhat.com>
1154         From Jeff Knaggs <jknaggs@redhat.com>
1155         * config/tc-d10v.c (check_resource_conflict): New function to
1156         check for resource conflicts.
1158         From Jason Eckhardt  <jle@redhat.com>
1159         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1160         imm3 fields.
1161         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
1162         reserved control registers is used.
1163         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1164         imm3 fields.
1166         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
1167         * tc-d10v.c (parallel_ok): Prevent packing only if the first
1168         instruction cannot be packed.
1170         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
1171         * gas/config/tc-d10v.c (check_resource_conflict): Only check
1172         write-write conflicts.
1173         (md_assemble): Reformat introductory comment.
1174         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
1175         arguments.
1177 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
1179         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
1180         O_logical_not>): Derive final_seg from add_symbol.
1181         <O_multiply..O_logical_or>: More final_seg twiddles.
1183 2002-04-01  Jessica Han  <jessica@cup.hp.com>
1185         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
1186         in 32-bit mode.
1188 2002-03-27  Andreas Schwab  <schwab@suse.de>
1190         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
1191         field for pc-relative fixups.
1192         (output_disp): Likewise.
1193         (md_estimate_size_before_relax): Likewise.
1194         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
1195         pc-relative fixups in 64bit mode.
1197 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
1199         * config/te-aix5.h: Typo fix.
1201 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1203         * Makefile.am: Run "make dep-am".
1204         * Makefile.in: Regenerate.
1205         * doc/Makefile.in: Regenerate.
1207 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
1209         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
1210         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
1212 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
1214         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
1215         the EXTENDED bit here; report the estimate according to the
1216         current size.
1218 2002-03-18  Tom Rix  <trix@redhat.com>
1220         * configure.in: Add AIX 5 support.
1221         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
1222         * config/te-aix5.h: New file. AIX 5 support.
1223         * configure: Regenerate.
1225 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1227         * po/fr.po: Updated version.
1229 2002-03-16  Andreas Jaeger  <aj@suse.de>
1231         * doc/c-mips.texi (Machine Dependencies): Add new node.
1233 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
1235         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
1236         (mips_opts): Initialize "ase_mips3d" member.
1237         (file_ase_mips3d): New variable.
1238         (CPU_HAS_MIPS3D): New macro.
1239         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
1240         based on command line options and configuration defaults.
1241         (macro_build, mips_ip): Accept MIPS-3D instructions if
1242         mips_opts.ase_mips3d is set.
1243         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
1244         Add support for "-mips3d" and "-no-mips3d" options.
1245         (OPTION_ELF_BASE): Move to accomodate new options.
1246         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
1247         (mips_elf_final_processing): Add a comment indicating that a
1248         MIPS-3D ASE ELF header flag should be set, when one exists.
1249         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
1250         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
1251         nomips3d" directives.
1253 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
1255         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
1256         a weak symbol in same section to be within reach.
1258 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1260         * po/fr.po: Updated version.
1262 2002-03-12  Andreas Schwab  <schwab@suse.de>
1264         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
1265         body record so that an error is given for misplaced .save
1266         pseudo-ops.
1268 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
1270         * config/tc-i386.h (REX_OPCODE): Define.
1271         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
1272         (rex_byte): typedef to int.
1273         * config/tc-i386.c: Group prototypes and vars together.
1274         Formatting fixes.  Remove occurrences of "register" keyword.
1275         (true): Delete.
1276         (false): Delete.
1277         (mode_from_disp_size): Add INLINE keyword to prototype.
1278         (fits_in_signed_byte): Likewise.
1279         (fits_in_unsigned_byte): Likewise.
1280         (fits_in_unsigned_word): Likewise.
1281         (fits_in_signed_word): Likewise.
1282         (fits_in_unsigned_long): Likewise.
1283         (fits_in_signed_long): Likewise.
1284         (type_names): Constify.
1285         (intel_float_operand): Constify param.
1286         (add_prefix): Use REX_OPCODE.
1287         (md_assemble): Likewise.  Modify for changed rex_byte.
1288         (parse_insn): Split out of md_assemble.
1289         (parse_operands): Likewise.
1290         (swap_operands): Likewise.
1291         (optimize_imm): Likewise.
1292         (optimize_disp): Likewise.
1293         (match_template): Likewise.
1294         (check_string): Likewise.
1295         (process_suffix): Likewise.
1296         (check_byte_reg): Likewise.
1297         (check_long_reg): Likewise.
1298         (check_qword_reg): Likewise.
1299         (check_word_reg): Likewise.
1300         (finalize_imm): Likewise.
1301         (process_operands): Likewise.
1302         (build_modrm_byte): Likewise.
1303         (output_insn): Likewise.
1304         (output_branch): Likewise.
1305         (output_jump): Likewise.
1306         (output_interseg_jump): Likewise.
1307         (output_disp): Likewise.
1308         (output_imm): Likewise.
1310 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1312         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1314 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
1316         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
1317         relocs except when BFD64.
1319         * write.c (number_to_chars_bigendian): Don't abort when N is
1320         larger than sizeof (VAL).
1321         (number_to_chars_littleendian): Likewise.
1323 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1325         * config/tc-hppa.c (md_apply_fix3): Add cast.
1326         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
1327         e_rrsel.
1329 2002-03-05  Paul Koning  <pkoning@equallogic.com>
1331         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
1332         (parse_ac5): New function for parsing float regs in float operand.
1333         (parse_expression): Remove attempt to make literals be octal.
1334         (parse_op_no_deferred): Support float literals.
1335         (parse_op): Reject attempts to refer to float regs.
1336         (parse_fop): New function, like parse_op but for float operand.
1337         (md_assemble): Add cases to parse float operands.  Also fix
1338         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
1340 2002-03-04  H.J. Lu <hjl@gnu.org>
1342         * config/obj-elf.c (special_section): Add .init_array,
1343         .fini_array and .preinit_array.
1345         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
1346         .init_array and .fini_array.
1348 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
1350         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
1351         visibility.
1352         (obj_frob_symbol): Copy visibility.
1354 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1356         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
1357         s_text.
1358         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
1360 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
1362         * po/es.po: Updated.
1364 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
1366         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
1367         only, undo the changes made on 2001-06-08, with the
1368         effect being that common or extern symbols are
1369         adjusted for embedded-PIC, but weak symbols are not.
1370         (md_estimate_size_before_relax: Likewise, with the effect
1371         that extern symbols are treated the same as weak symbols
1372         only if not embedded-PIC.
1373         (mips_fix_adjustable) Likewise, with the effect that
1374         weak or extern symbols are not adjusted for embedded-PIC.
1375         (md_apply_fix3): Tweak so that the case where value is zero
1376         is handled more correctly for embedded-PIC code.
1378 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
1380         * doc/as.texinfo (Overview): Add missing @ifset IA64
1382         * configure.in (LINGUAS): Add es.po.
1383         * configure: Regenerate.
1384         * po/es.po: New file.
1386 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1388         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
1389         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
1390         and NO_PIC cases. Code cleanup.
1391         (macro2): Fix handling of 64bit register loads.
1393 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
1395         * doc/as.texinfo: Add entry for IA64.
1396         * doc/c-ia64.texi: New file.
1398 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
1400         * config/tc-hppa.c: Update copyright date.
1402         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1403         Remove references to chip manufacturers.
1404         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1405         Correct comments.
1406         (md_show_usage): Remove references to chip manufacturers.  Mention
1407         -mpower4.
1408         (md_begin): Test power4 opcode flag bits.
1410 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
1412         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1413         count exceeds prologue count.
1414         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1415         (unwind.label_prologue_count): New member.
1417         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1419         (get_saved_prologue_count): New function.
1420         (save_prologue_count): New function.
1421         (free_saved_prologue_count): New function.
1422         (dot_label_state): Record state label by calling save_prologue_count().
1423         (dot_copy_state): Restore prologue count by calling
1424         get_saved_prologue_count().
1425         (generate_unwind_image): Free up list of saved prologue
1426         counts by calling free_saved_prologue_counts().
1428 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
1430         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1431         function declarations.
1433 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
1435         * NEWS: Note that GASP is now deprecated.
1436         * Makefile.am: Do not build gasp-new by default.
1437         * Makefile.in: Regenerate.
1438         * doc/Makefile.am: Do not install gasp.info.
1439         * doc/Makefile.in: Regenerate.
1440         * gas/gasp.texi: Note that gasp is now deprecated.
1442 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1444         * NEWS: Mark 2.12 branch.
1446 2002-02-19  Tom Tromey  <tromey@redhat.com>
1448         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1450 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1452         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1453         option input.
1455 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1457         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1458         Make bit size independent of architecture switch.
1459         (md_begin): Add warning for -m64 with -Aesa.
1460         (s390_md_end): Use renamed architecture defines.
1462 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
1464         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1466 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
1468         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1469         instead of CRIS.
1471 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
1473         * config/tc-mips.c (md_estimate_size_before_relax): Really
1474         make sure we treat weak like extern only for ELF.  (Fixes
1475         patch from 2001-07-25.)
1477 2002-02-15  Ben Elliston  <bje@redhat.com>
1479         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1480         works as expected.
1482 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1484         * NEWS: Mention support for MMIX.
1486 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
1488         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1489         a sequence of indpendent 'if' statements for easier debugging
1490         and future modification.
1492 2002-02-13  Matt Fredette  <fredette@netbsd.org>
1494         * config/tc-m68k.c (md_show_usage): No longer display a
1495         hard-coded "68020" for the default CPU, instead display the
1496         canonical name of the true, configured default CPU.
1497         (m68k_elf_final_processing): Mark objects for sub-68020
1498         CPUs with the new EF_M68000 flag.
1500 2002-02-13  Andreas Schwab  <schwab@suse.de>
1502         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1503         pc-relative relocations to merge sections in 64-bit mode.
1505 2002-02-13  Ben Elliston  <bje@redhat.com>
1507         * NEWS: Document floating point number handling in gasp.
1508         * gasp.c: Include <assert.h> and "xregex.h".
1509         (is_flonum): New function.
1510         (chew_flownum): Likewise.
1511         (change_base): Consume flonums from the input, where possible.
1512         * doc/gasp.texi (Constants): Document floating point numbers.
1514 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1516         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1517         that implicitly use LR and RR selectors.
1519 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
1521         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
1522         and `epsw' as available on AM33 and above only.
1523         (other_register_name): Add logic to handle machine type encoded in
1524         reg_number.
1526 2002-02-11  Tom Rix  <trix@redhat.com>
1528         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1529         xcoff64.
1531 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
1533         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1534         Use all over.
1536 2002-02-11  Jan Hubicka  <jh@suse.cz>
1538         * i386.c (md_assemble): Support 32bit address prefix.
1539         (i386_displacement): Likewise.
1540         (i386_index_check): Accept 32bit addressing in 64bit mode.
1542 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
1544         * config/tc-sh.c (dot): Removed unused function.
1546 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1548         * Makefile.am: "make dep-am".
1549         * Makefile.in: Regenerate.
1550         * aclocal.m4: Regenerate.
1551         * config.in: Regenerate.
1552         * configure: Regenerate.
1553         * doc/Makefile.in: Regenerate.
1555 2002-02-10  Richard Henderson  <rth@redhat.com>
1557         * doc/c-alpha.texi: New file.
1558         * doc/Makefile.am (CPU_DOCS): Add it.
1559         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1561 2002-02-09  Richard Henderson  <rth@redhat.com>
1563         * config/tc-alpha.c (O_samegp): New.
1564         (USER_RELOC_P): Include it.
1565         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1566         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1567         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1568         (alpha_validate_fix): New.
1569         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1571 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
1573         * doc/c-cris.texi: New.
1574         * doc/all.texi: @set CRIS.
1575         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
1576         Include c-cris.texi.
1577         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1578         * doc/Makefile.in: Regenerate.
1580 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
1582         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1583         determine if a number is a sign-extended 32-bit number.
1584         (load_register): Use IS_SEXT_32BIT_NUM.
1585         (macro): Check if load/store macro handling is using a
1586         constant 32-bit address on 64-bit address systems, and if
1587         so optimize the generation of that address.
1589 2002-02-08  Richard Henderson  <rth@redhat.com>
1591         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1592         we've eliminated all foreign relocation types yet.
1593         (alpha_fix_adjustable): Likewise.
1595 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1597         Contribute sh64-elf.
1598         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1599                     Stephen Clarke <Stephen.Clarke@st.com>
1600         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1601         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
1602         * config/tc-sh.c (md_relax_table): Added default sizes for
1603         non-PC-relative UNDEF_MOVI, and relaxation sequences for
1604         MOVI_16, MOVI_32 and MOVI_48.
1605         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1606         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1607         and MOVI_16.
1608         (shmedia_md_estimate_size_before_relax): Remove redundant
1609         blocks.  Set fragP->fr_var even if relaxation type unchanged.
1610         Retain UNDEF_MOVI until expression decays to number.
1611         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1612         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1613         relocation types.  Take fixP->fx_addnumber into account too.
1614         (shmedia_md_apply_fix): Likewise.
1615         (shmedia_md_convert_frag): Likewise.
1616         (shmedia_build_Mytes): Likewise.
1617         (sh64_consume_datalabel): Complain about nested datalabel.
1618         Support PIC relocs.  Call sh_parse_name.
1619         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1620         in tc-sh.h to SHmedia reloc types.
1621         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1622         MOVI_GOTPC): New relaxation constants.
1623         (md_relax_table): Introduce relaxation directives for PIC-related
1624         constants.
1625         (sh_PIC_related_p): Handle datalabel.
1626         (sh_check_fixup): Choose SH5 PIC relocations.
1627         (sh_cons_fix_new): Added BDF_RELOC_64.
1628         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
1629         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1630         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1631         current ISA is SHmedia, get 7 bytes.
1632         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
1633         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1634         void function.
1635         * config/tc-sh64.c (shmedia_apply_fix): Rename to
1636         shmedia_apply_fix3 and make void.
1637         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
1638         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1639         as_bad.
1640         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
1641         * config/tc-sh64.h (md_parse_name): Take &c as argument.
1642         2001-03-14  DJ Delorie  <dj@redhat.com>
1643         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1644         * doc/Makefile.in(CPU_DOCS): Ditto.
1645         * doc/c-sh64.texi: New file.
1646         * doc/as.texinfo: Add SH64 support.
1647         2001-03-13  DJ Delorie  <dj@redhat.com>
1648         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1649         A_REUSE_PREV so that its purpose is more obvious.
1650         (shmedia_build_Mytes): Ditto.
1651         2001-03-07  DJ Delorie  <dj@redhat.com>
1652         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1653         before processing.
1654         (sh64_vtable_inherit): Ditto.
1655         (strip_datalabels): New, strip "datalabel" from given line.
1656         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1657         pseudos.
1658         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1659         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1660         call ...
1661         (shmedia_build_Mytes): ... to here.
1662         2001-03-06  DJ Delorie  <dj@redhat.com>
1663         * config/tc-sh.c: Remove sh64-specific uaquad now that there
1664         is a generic one.
1665         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
1666         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1667         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1668         address by one in call to dwarf2_emit_insn.
1669         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
1670         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
1671         alignment handling broken by imported changes.
1672         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1673         (sh64_handle_align): Declare.
1674         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1675         (sh64_max_mem_for_rs_align_code): Declare.
1676         (enum sh64_isa_values): Moved here from tc-sh64.c.
1677         (md_do_align): Define.
1678         (sh64_do_align): Declare.
1679         (struct sh64_tc_frag_data): New.
1680         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
1681         changed.
1682         (TC_FRAG_INIT): Change to set new datatype.
1683         (struct sh64_segment_info_type): Rename member
1684         last_flushed_location to last_contents_mark.  All users changed.
1685         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1686         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1687         * config/tc-sh.c (md_pseudo_table): Add ".abi".
1688         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
1689         of unsetting seen_insn.
1690         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
1691         call sh64_update_contents_mark.
1692         (sh_handle_align): Remove HAVE_SH64-conditioned code.
1693         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
1694         enum sh64_isa_values.
1695         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
1696         (emitting_crange): Boolean guard moved to file scope from function
1697         scope in sh64_set_contents_type.
1698         (s_sh64_abi): New.
1699         (sh64_update_contents_mark): New; most split out from
1700         sh64_flush_pending_output.
1701         (shmedia_md_end): Call sh64_update_contents_mark.  Set
1702         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
1703         (sh64_do_align): New function.
1704         (sh64_max_mem_for_rs_align_code): New function.
1705         (sh64_handle_align): Rename from shmedia_do_align.  Make
1706         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
1707         four.  Change return-type to void.
1708         (shmedia_elf_new_section): Remove.
1709         (shmedia_md_assemble): Call sh64_update_contents_mark.
1710         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
1711         new frag.  Call sh64_update_contents_mark after making the new
1712         frag.
1713         (sh64_flush_pending_output): Just call sh64_update_contents_mark
1714         and sh_flush_pending_output.
1715         (sh64_flag_output): Also call md_flush_pending_output, but add
1716         condition on not emitting_crange.
1717         (sh64_tc_cons_fix_new): Remove.
1718         2001-01-12  Nick Clifton  <nickc@redhat.com>
1719         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
1720         alignment handling scheme imported from sourceware.
1721         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1722         * config/tc-sh64.h (TARGET_FORMAT): Define.
1723         (sh64_target_format): Prototype.
1724         * config/tc-sh64.c (sh64_target_mach): New function.
1725         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
1726         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
1727         zero_address_frag instead of copying the frag of the symbol.
1728         (shmedia_frob_file_before_adjust): Ditto.
1729         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
1730         to valueT to remove signedness.
1731         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
1732         headers to output_bfd.  Do not evaluate symbols if final is false;
1733         do emit fixups.
1734         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
1735         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
1736         to the current frag, call shmedia_md_convert_frag to emit fixups
1737         and make frag_wane neutralize the frag.  Update comments.
1738         * config/tc-sh.c (md_convert_frag): Change caller of
1739         shmedia_md_convert_frag.
1740         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1741         * config/tc-sh64.h: Tweak comments and correct formatting.
1742         * config/tc-sh64.c: Ditto.
1743         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
1744         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
1745         for the no-relocation case.
1746         (shmedia_check_limits): Fix range check being off-by-one for PTA.
1747         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
1748         wrappers.
1749         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
1750         comment.
1751         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
1752         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
1753         expansion.
1754         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
1755         Correct comment.
1756         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
1757         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
1758         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
1759         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
1760         al>: Set lowest bit of field to relocate to 1 and rest to empty,
1761         if reloc is emitted.
1762         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
1763         New options plus bugfixes.
1764         * config/tc-sh.c (md_longopts): New options "-no-expand" and
1765         "-expand-pt32".
1766         (md_parse_option): Handle new options.
1767         (md_show_usage): Add blurb for new options.
1768         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
1769         (sh64_expand, sh64_pt32): New variables.
1770         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
1771         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
1772         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
1773         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
1774         <resolved previously-pc-relative relocs>: Handle
1775         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
1776         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
1777         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
1778         points to SHcompact code.
1779         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
1780         SH64PCREL16)>: Check that ISA of what operand points at and
1781         PTA/PTB matches, or emit error.
1782         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
1783         SHMEDIA_BFD_RELOC_PT.
1784         (shmedia_immediate_op): If pcrel, emit fixup also for constant
1785         operand.
1786         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
1787         condition for MOVI expansion.
1788         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
1789         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
1790         sh64_expand.
1791         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
1792         fixup.
1793         (sh64_target_format): Error-check setting of sh64_pt32 and
1794         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
1795         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
1796         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
1797         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
1798         * config/tc-sh64.c: Improve comments.
1799         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
1800         not say the linker will check correctness of PTA/PTB expansion.
1801         (shmedia_md_end): Make non-static.
1802         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
1803         prototype.
1804         * config/tc-sh.c (sh_finalize): Remove.
1805         * config/tc-sh.h (md_end): Do not define.
1806         Remove prototype for sh_finalize.
1807         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1808         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
1809         sh64_section_data container when storing section type in tdata
1810         field in elf_section_data.
1811         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
1812         EF_SH5.
1813         * Makefile.am: Update dependencies.
1814         * Makefile.in: Regenerate.
1815         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
1816         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
1817         dwarf2_emit_insn call with test on debug_type.
1818         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
1819         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
1820         CRT_SH5_ISA32 sticky for 64-bit.
1821         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1822         Generate .crange sections when switching ISA mode or emitting
1823         constants in same section as code.
1824         * config/tc-sh64.c: Reformat structure definitions.
1825         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
1826         variables.
1827         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
1828         to emit a .cranges descriptor when contents type changes.  Only
1829         emit error if changing contents type and -no-mix is in effect.
1830         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
1831         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
1832         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
1833         sh64_flush_last_crange over sections.
1834         When checking main symbol of datalabel symbol, check for
1835         STO_SH5_ISA32, not ISA type of section in definition.
1836         (shmedia_frob_file_before_adjust): Check main symbol for
1837         STO_SH5_ISA32; don't check ISA type of section in definition.
1838         (shmedia_frob_section_type): Adjust for .cranges; set section flag
1839         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
1840         .cranges entries have been output.
1841         (shmedia_elf_new_section): Just call md_flush_pending_output.
1842         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
1843         fix.  Do not set tc_segment_info_data.in_code for section.  Call
1844         sh64_set_contents_type for SHmedia code.
1845         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
1846         false.  Call md_flush_pending_output.
1847         (sh64_target_format): Check that -no-mix and
1848         -shcompact-const-crange are used in sane combination with other
1849         options.
1850         (shmedia_md_pcrel_from_section): Check type of fix for how to
1851         adjust pc-relative.
1852         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
1853         not ISA type of section in definition.
1854         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
1855         hold contents-type state.
1856         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
1857         (sh64_flush_pending_output): Declare.
1858         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
1859         (sh64_tc_cons_fix_new): Declare.
1860         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
1861         call sh64_flag_output.
1862         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
1863         call sh64_set_contents_type to mark SHcompact code and set
1864         seen_insn.
1865         (md_longopts): New options "-no-mix" and
1866         "-shcompact-const-crange".
1867         (md_parse_option): Handle new options.
1868         (md_show_usage): Add blurb for new options.
1869         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
1870         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1871         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
1872         (sh64_last_insn_frag): New.
1873         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
1874         to get frag for insn opcode for generating fixups; do not assume it
1875         is the same frag.
1876         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
1877         for new insn.
1878         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
1879         section.
1880         (TC_FRAG_TYPE): Define as fragS *.
1881         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
1882         (sh64_last_insn_frag): Declare.
1883         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
1884         not == NULL before dereferencing.
1885         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1886         Get rid of BFD section flag and EF_SH64_ABI64.
1887         * config/tc-sh64.c (shmedia_frob_section_type): Use
1888         elf_section_data (sec)->tdata, not a specific BFD section flag, to
1889         communicate the section as containing SHmedia code.  Describe why.
1890         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
1891         EF_SH64 regardless of ABI.
1892         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
1893         in error message.  Handle resolved expressions for
1894         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1895         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
1896         (shmedia_check_limits): Handle BFD_RELOC_64.
1897         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
1898         a STO_SH5_ISA32 symbol, only the BFD value.
1899         2000-12-11  Ben Elliston  <bje@redhat.com>
1900         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
1901         dwarf2_generate_asm_lineno.
1902         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
1903         Handle PC-relative MOVI expansions with assembler relaxation.
1904         Generate PC-relative relocs from 16-bit PC-relative expressions.
1905         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
1906         (shmedia_md_pcrel_from_section): ...here.
1907         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
1908         turned completely resolved.  Adjust relocation type for 16-bit
1909         immediate operands that has turned PC-relative.  Adjust back for
1910         MD_PCREL_FROM_SECTION being applied twice.
1911         (shmedia_md_convert_frag): Always emit reloc for expression with
1912         global or weak symbol.  Handle relaxation result for PC-relative
1913         expressions.
1914         (shmedia_md_estimate_size_before_relax): An expression with a weak
1915         or global symbol can not be relaxed.  Break out tests for
1916         relaxable symbol into variable sym_relaxable.
1917         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
1918         UNDEF_MOVI)>: Break out any PC-relative expression and change
1919         relaxation type.
1920         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
1921         opjp.
1922         <case A_IMMS16>: Fix typo for initial minor relaxation type of
1923         MOVI expansion.  If X_op_symbol of the immediate expression is
1924         set, make an expression symbol for the argument to frag_var.
1925         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
1926         relaxations.
1927         (END): Adjust for new relaxations.
1928         (md_relax_table): Add entries for new relaxations.
1929         2000-12-07  Ben Elliston  <bje@redhat.com>
1930         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
1931         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
1932         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
1933         SHORI operand offsets in PT/PTA/PTB expansions.
1934         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
1935         Implement DataLabel semantics.
1936         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
1937         shmedia_frob_file_before_adjust.
1938         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
1939         (DATALABEL_SUFFIX): Define.
1940         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
1941         symbol list to update "datalabel" symbols to their main symbol
1942         counterparts.
1943         (shmedia_frob_file_before_adjust): New.
1944         (sh64_adjust_symtab): For remaining datalabel symbols, set to
1945         undefined and set STT_DATALABEL.
1946         (sh64_frob_label): Initialize TC symbol field.
1947         (sh64_consume_datalabel): Actually implement semantics.  New
1948         parameter operandf, call it instead of expression.
1949         (sh64_exclude_symbol): New.
1950         * config/tc-sh64.h (md_parse_name): Pass on the function operand
1951         to sh64_consume_datalabel.
1952         (tc_symbol_new_hook): Define to tc_frob_symbol.
1953         (TC_SYMFIELD_TYPE): Define to symbolS *.
1954         (tc_frob_symbol): Define to call sh64_exclude_symbol.
1955         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
1956         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
1957         case.
1958         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
1959         generating dwarf2 debug information.
1960         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1961         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
1962         elf64-sh64 for the 64-bit ABI.
1963         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
1964         option.
1965         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1966         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
1967         case-insensitivity.
1968         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
1969         * config/tc-sh64.c: Tweak comments, formatting and error messages.
1970         (enum sh64_abi_values): New type.
1971         (enum sh64_isa_values): New type.
1972         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
1973         (seen_shcompact_mode, seen_shmedia_mode): Delete.
1974         (sh64_abi): Replace shmedia_64.
1975         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
1976         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
1977         (s_sh64_mode): Check validity for this target.
1978         (sh64_target_format): Initialize defaults for ISA and ABI.
1979         Fallback to old object format if no SH64 ISA or ABI has been
1980         specified.
1981         * config/tc-sh.c (md_parse_option): Check combinations for errors.
1982         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
1983         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
1984         * config/tc-sh64.h: Fix typo in comment.
1985         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
1986         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
1987         <PT fixups for absolute values>: Size will be longest, not
1988         shortest.
1989         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
1990         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
1991         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
1992         and l1 to hold lowercase of two first characters.  Change all
1993         remaining TO_LOWER to tolower.
1994         * config/tc-sh64.c (TO_LOWER): Delete.
1995         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
1996         (md_parse_name): Define.
1997         (sh64_consume_datalabel): Declare.
1998         (DOLLAR_DOT): Define.
1999         * config/tc-sh64.c (shmedia_parse_exp): New.
2000         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
2001         (shmedia_parse_reg): Remove const from src
2002         parameter.
2003         (shmedia_get_operands): Ditto for args parameter and ptr variable.
2004         (shmedia_md_assemble): Ditto for op_end variable.
2005         (shmedia_get_operand): Ditto for ptr parameter and src variable.
2006         Use shmedia_parse_exp, not parse_exp.
2007         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
2008         parameter.  All callers changed.
2009         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
2010         callers changed.
2011         (shmedia_parse_reg): Put first two character in local variables.
2012         Use tolower, not TO_LOWER.  If no register is found and argtype
2013         indicates a control register, scan shmedia_creg_table
2014         case-insensitive.
2015         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
2016         * Makefile.am (CPU_TYPES): Add sh64.
2017         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
2018         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
2019         Regenerate dependencies.
2020         * Makefile.in: Regenerate.
2021         * configure.in: Add support for sh64-*-elf*.
2022         * configure: Regenerate.
2023         * config/tc-sh64.h: New.
2024         * config/tc-sh64.c: New.
2025         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
2026         .mode, .isa and .uaquad.
2027         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
2028         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
2029         [HAVE_SH64] (END): Define as 10.
2030         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
2031         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
2032         MOVI_64): Define.
2033         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
2034         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
2035         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
2036         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
2037         Define.
2038         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
2039         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
2040         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
2041         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
2042         SHmedia instructions.  Handle state-change after switching to
2043         SHcompact.
2044         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
2045         (md_parse_option) [HAVE_SH64]: Parse new options.
2046         (md_show_usage) [HAVE_SH64]: Show usage of new options.
2047         (md_convert_frag) [HAVE_SH64] <default>: Call
2048         shmedia_md_convert_frag instead of abort.
2049         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
2050         BFD_RELOC_SH_SHMEDIA_CODE.
2051         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
2052         SHcompact or SHmedia code.
2053         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
2054         shmedia_md_apply_fix instead of abort.
2055         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
2056         result from calling shmedia_md_estimate_size_before_relax instead
2057         of calling abort.
2058         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
2059         do the work.
2060         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
2061         shmedia_init_reloc and do nothing more if it returns non-zero.
2062         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
2063         * po/POTFILES.in: Regenerate.
2064         * po/gas.pot: Regenerate.
2066 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
2068         * config/tc-sh.c (parse_at): Install the correct version of
2069         2002-02-04's patch.
2071         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
2072         assume fixP->fx_subsy is non-NULL.
2074 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
2076         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
2077         A_DISP_PC_ABS, and adjust it by -4.
2078         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
2079         expected.
2080         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
2081         the operand type is not A_DISP_PC_ABS.
2083 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
2085         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
2086         common and weak symbols.  Handle common and weak symbols as
2087         undefined symbols with regards to GREG handling and merging.
2088         (mmix_frob_file): Ditto.
2090 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
2092         * configure.in (hppa-*-netbsd*): New target.
2093         * configure: Regenerate.
2094         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
2096 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
2098         * config/tc-v850.c: Add missing prototypes amd use old-style
2099         function definitions.
2100         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
2101         (sdata_section tdata_section, zdata_section, sbss_section,
2102         tbss_section, zbss_section, rosdata_section, rozdata_section,
2103         scommon_section, tcommon_section, zcommon_section,
2104         call_table_data_section, call_table_text_section): Delete.
2105         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2106         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
2107         v850_call_table_data, v850_call_table_text): Delete.
2108         (struct v850_seg_entry): New.
2109         (v850_seg_table): New.
2110         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
2111         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
2112         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
2113         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
2114         (do_v850_seg): New.
2115         (v850_seg): New.
2116         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
2117         recording of alignment.
2118         (md_pseudo_table): Use v850_seg.
2119         (md_begin): Don't init .call_table_data and .call_table_text here.
2120         Set v850_seg_table bss entry.
2122 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
2124         Support on-demand global register allocation by passing on
2125         base-plus-offset relocs to the linker.
2126         * config/tc-mmix.c: Tweak and fix typos in comments.
2127         (allocate_undefined_gregs_in_linker): New variable.
2128         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
2129         (md_longopts): Add --linker-allocated-gregs.
2130         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
2131         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
2132         (md_show_usage): Update text for -x.  Add text for
2133         --linker-allocated-gregs.
2134         (tc_gen_reloc): Derive default value for addend from val and
2135         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
2136         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
2137         GREG if allocate_undefined_gregs_in_linker.
2138         * doc/as.texinfo (Overview) <Target MMIX options>: Add
2139         --linker-allocated-gregs.
2140         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
2141         --linker-allocated-gregs.  Mention that it's implied by -x.
2142         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
2143         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
2145         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
2147 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
2149         * Makefile.am: Run "make dep-am"
2150         * Makefile.in: Regenerate.
2152 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
2154         * config/tc-or32.c: New file.
2155         * config/tc-or32.h: New file.
2156         * configure.in: Add support for or32 targets.
2157         * configure: Regenerate.
2158         * config/obj-coff.c: Add support for or32 targets.
2159         * config/obj-coff.h: Add support for or32 targets.
2160         * Makefile.am: Add support for or32 targets.
2161         * Makefile.in: Regenerate.
2162         * NEWS: Mention support for OpenRISC.
2163         * doc/Makefile.in: Regenerate.
2164         * po/POTFILES.in: Regenerate.
2165         * po/gas.pot: Regenerate.
2167 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
2169         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
2170         and mod.
2172 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
2174         * config/tc-mips.c (tc_gen_reloc): Arrange for
2175         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
2176         their LO16 parts, even for ELF.
2178 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
2180         * config/tc-i386.c: Protect definitions of true and false
2181         from redefinition.
2183 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
2185         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
2186         made because of .weak, if they are neither defined nor used in any
2187         way.
2189 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
2191         * configure: Regenerated.
2193 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
2195         * doc/Makefile.am (install): Depend on install-info.
2196         * doc/Makefile.in: Regenerate.
2198 2002-01-26  Nick Clifton <nick@redhat.com>
2200         * po/fr.po: Updated version
2202 2002-01-24  Kazu Hirata  <kazu@hxi.com>
2204         * config/tc-h8300.c (check_operand): Don't print a warning
2205         when a valid 24-bit address is given to a 16-bit address
2206         operand.
2208 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2210         * config/tc-sh.c (sh_elf_suffix): Removed.
2211         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
2212         sh_end_of_match, sh_parse_name): New functions.
2213         (sh_elf_cons): Simplify.
2214         (parse_exp): Reject misplaced PIC operands.
2215         (md_undefined_symbol): Simplify.
2216         (sh_fix_adjustable): Let @GOTOFF be adjusted.
2217         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
2218         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
2219         Complain if subsy remains at the end.
2220         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
2221         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
2223 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
2225         * config/tc-mn10300.c (xr_registers): Move `pc'...
2226         (other_registers): ... here.
2228 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
2230         * Makefile.am: Run "make dep-am".
2231         * Makefile.in: Regenerate.
2232         * gas/po/POTFILES.in: Regenerate.
2234 2002-01-21  DJ Delorie  <dj@redhat.com>
2236         * config/obj-coff.c (obj_coff_init_stab_section): Make the
2237         stabstr_name allocation permanent, as it will be referenced from
2238         the section hash.
2240 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
2242         * configure.in (ia64-*-netbsd*): New target.
2243         * configure: Regenerate.
2245 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
2247         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
2248         to @dots call.
2249         <Detailed description, ARM options>: Ditto.
2250         * doc/c-arm.texi (ARM Options): Ditto.
2252 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2254         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
2255         do_mia, do_mar and do_mra respectively.
2256         (do_mav_*): Renamed from do_c_*.
2257         (mav_reg_required_here, mav_parse_offset): Renamed from
2258         cirrus_reg_required_here and cirrus_parse_offset respectively.
2259         (MAV_MODE?): Renamed from CIRRUS_MODE?.
2261 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2262             Keith Walker  <keith.walker@arm.com>
2264         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
2265         (insns): Add pattern for bxj instruction.
2266         (do_bxj): New function.
2267         (arm_cpus): Add arm926ej.
2268         (arm_archs): Add armv5tej.
2270 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2272         * doc/c-arm.texi: Add new fpe options to list of supported flags.
2274 2002-01-19  Keith Walker  <keith.walker@arm.com>
2276         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
2278 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2280         * NEWS: Mention new ARM command-line options and VFP support.
2282         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
2283         uses changed.
2284         (ARM_CEXT_MAVERICK): Similarly.
2285         (ARM_ANY): Now means any core instruction.
2286         (CPU_DEFAULT): Default to ARM_ANY.
2287         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
2288         (pic_code): Declare for all object types.  Make type int.
2289         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
2290         (march_fpu_opt, mfpu_opt): Declare.
2291         (md_longopts): Tidy up conditional definitions.
2292         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
2293         (arm_long_opts): New tables.
2294         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
2295         (arm_parse_extension): New function.
2296         (md_parse_option): Rewrite using new table-driven system.
2297         (md_show_usage): Use new table-driven system.
2298         (md_begin): Calculate cpu_variant from command line option data.
2299         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
2300         command-line options.
2301         * doc/c-arm.texi: Likewise.
2303 2002-01-18  Andreas Jaeger  <aj@suse.de>
2305         * as.c (parse_args): Update year.
2307 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
2309         * config/tc-tic54x.c (encode_address): Add a more informative
2310         warning about incorrect syntax.
2312 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2314         * po/gas.pot: Regenerate.
2316 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2318         * macro.c (get_any_string): Add no-c-format comment to prevent
2319         confusion when translating string.
2320         * gasp.c (get_any_string): Add no-c-format comment to prevent
2321         confusion when translating string.
2323 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2324             Johannes Stezenbach <js@convergence.de>
2325         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
2326         matched before the shorter ones.
2327         (my_getSmallParser): Fix handling of nested parentheses in
2328         percent_op's. Code cleanup.
2329         (my_getPercentOp): New function, code from my_getSmallParser.
2330         (my_getSmallExpression): Fix handling of closing parentheses.
2331         Code cleanup. Better comments.
2333 2002-01-16  Nick Clifton <nickc@redhat.com>
2335         po/tr.po: New file: Turkish translation.
2336         configure.in (LINGUAS): Add "tr".
2337         configure: Regenerate.
2339 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
2341         Support for VFP instructions
2342         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
2343         (cp_address_required_here): New argument wb_ok.  When false, do not
2344         accept write-back forms of addressing.  Change all callers.
2345         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
2346         (FPU_VFP_EXT_V2): Define.
2347         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
2348         Define in terms of above.
2349         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
2350         (vfp_reg): New struct.
2351         (vfp_regs): New array of registers.
2352         (insns): Add VFP instructions.
2353         (sn_table): New array of VFP single-precision register names.
2354         (dn_table): New array of VFP double-precision register names.
2355         (all_reg_maps): Add the new register tables.
2356         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
2357         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
2358         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
2359         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
2360         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
2361         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
2362         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
2363         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
2364         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
2365         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
2366         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
2367         (do_vfp_sp_dp_cvt): New functions.
2368         (md_begin): Set soft-float flag for appropriate VFP work.
2369         (md_atof): Handle VFP-format doubles.
2370         (md_parse_option): Handle VFP command-line options.
2371         (md_show_usage): Display VFP command-line options.
2373 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
2375         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
2376         various command line options.
2378 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
2380         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
2381         vtinherit relocs.
2382         (xstormy16_md_apply_fix3): Do not return a value.
2384 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2386         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
2387         the -EL/-EB option that matches the target's endianness.
2388         (md_parse_option): Likewise.
2390 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2392         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
2393         is not dependent on ARM_BI_ENDIAN.
2395 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2397         * tc-arm.c (all error messages): Normalize capitalization of messages.
2399         * tc-arm.h (md_operand): Delete define.
2400         * tc-arm.c (in_my_get_expression): New static variable.
2401         (my_get_expression): Set and clear it.
2402         (md_operand): New function.  If called from my_get_expression
2403         put the error in inst.error.
2404         (output_inst): Now takes argument of instruction being assembled.
2405         Print it out with any error message.
2406         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2407         with '=' syntax.
2408         (end_of_line): Don't update inst.error if it is already set.
2410 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
2412         * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
2413         op that can be translated into a mvn instruction.
2415 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
2417         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2418         setting default md.flags.
2419         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2420         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2421         * gas/config/tc-ia64.c (setup_unwind_header): Add support
2422         for 32 bit unwind info blocks.
2423         (generate_unwind_image): Add support for different types
2424         of unwind images (32 bits and/or big-endian).
2425         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2426         (ia64_target_format): Add support for hpux target formats.
2427         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2428         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2429         SHT_FINI_ARRAY elf section types.
2431 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
2433         * tc-arm.c (struct reg_entry): Move before prototypes.
2434         (int_register, cp_register, fp_register): Delete.
2435         (reg_table): Delete.  Replaced with ...
2436         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2437         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2438         (mav_dspsc_table): ... one table per register set.
2439         (arm_reg_hsh): Delete.
2440         (struct reg_map): New structure.
2441         (all_reg_maps): New array.
2442         (enum arm_reg_type): New enums.
2443         (build_reg_hsh): New function.
2444         (insert_reg_alias): Use hash table passed by caller.  Adjust all
2445         callers.
2446         (create_register_alias): New function, split out from ...
2447         (md_assemble): ... here.
2448         (md_begin): Build new register hash tables.
2449         (arm_reg_parse): New argument for the hash table to search.  Adjust all
2450         callers.
2451         (arm_reg_parse_any): New function.
2452         (co_proc_number): Look up the processor number in the processor hash
2453         table.
2454         (cirrus_regtype): Delete.
2455         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2456         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2457         (ARM_EXT_MAVERICKsc_register): Delete.
2458         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2459         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2460         functions.
2461         (do_c_triple_4, do_c_triple_5): Delete.
2462         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2463         (do_c_quad_6): Delete.
2464         (do_c_quad_6[ab]): New functions.
2465         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2466         arguments to use new register parsing methods.
2467         (cirrus_reg_required_here): Likewise.
2468         (insns): Reclassify cirrus maverick worker functions.
2469         (cirrus_valid_reg): Delete.
2471 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
2473         * configure.in (sh*le): Set cpu_type=sh and endian=little.
2474         (sh*-*-netbsdelf*): New target.
2475         * configure: Regenerate.
2476         * tc-sh.h: Update copyright years.
2477         (TARGET_FORMAT): Add version for TE_NetBSD.
2479 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
2481         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2482         negative.
2484 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
2486         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2487         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2489 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
2491         * tc-mips.c (mips_cprestore_valid): New flag.
2492         (mips_frame_reg_valid): New flag.
2493         (macro) [M_JAL_2]: Check both flags.
2494         [M_JAL_A]: Likewise.
2495         (s_cprestore): Set mips_cprestore_valid.
2496         (tc_get_register): If setting mips_frame_reg, set
2497         mips_frame_reg_valid and clear mips_cprestore_valid.
2498         (s_mips_ent): Clear both flags.
2499         (s_mips_end): Clear both flags.
2501 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
2503         * write.c (write_object_file): Make use of bfd_section_list_remove.
2504         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2505         * config/tc-mmix.c (mmix_frob_file): Likewise.
2507 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2509         * configure.in (i386-*-netbsdelf*): Collapse target into...
2510         (i386-*-netbsd*): ...this.  Add support for x86-64.
2511         * configure: Regenerated.
2513 2002-01-03  matthew green  <mrg@redhat.com>
2515         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2517 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
2519         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2520         NULL frag link.
2522 For older changes see ChangeLog-0001
2524 Local Variables:
2525 mode: change-log
2526 left-margin: 8
2527 fill-column: 74
2528 version-control: never
2529 End: