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