Note that if '@' is a comment character then another symbol is used to prefix
[binutils.git] / gas / ChangeLog
blobff65a9904e2220d35bdd5a8a614e1c7af8177a38
1 2002-08-22  Nick Clifton  <nickc@redhat.com>
3         * doc/as.texinfo (Section): Note that if '@' is a comment
4         character then another symbol is used to prefix the section's
5         type.
7 2002-08-22  Christian Groessler <chris@groessler.org>
9         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
10         "case 0" case.
12 2002-08-12  Graeme Peterson  <gp@qnx.com>
14         * configure.in: Add support for sh-**-nto* target.
15         * configure: Regenerate.
17 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
19         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
21 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
23         * config/tc-ppc.c (ppc_cleanup): Do something only if format
24         is ELF.
25         (ppc_apuinfo_section_add): Define only if format is ELF.
26         (md_assemble): Emit APUinfo section only if format is ELF.
27         Fix formatting.
29 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
31         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast. 
32         * config/tc-frv.c: Likewise.
33         * config/tc-hppa.c: Likewise.
34         * config/tc-ia64.c: Likewise.
35         * config/tc-ip2k.c: Likewise.
36         * config/tc-m68hc11.c: Likewise.
37         * config/tc-m68k.c: Likewise.
38         * config/tc-mmix.c: Likewise.
39         * config/tc-mn10300.c: Likewise.
40         * config/tc-sh.c: Likewise.
41         * config/tc-sparc.c: Likewise.
42         * config/tc-v850.c: Likewise.
44 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
46         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
47         by zero.
49 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
51         From matthew green  <mrg@redhat.com>
53         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
54         PPC_OPCODE_PPC is, except for BookE architectures.
55         (md_parse_option): Add support for -mspe.
56         (md_show_usage): Add -mspe.
57         (md_parse_option): Add support for -me500 and
58         -me500x2 to generate code for Motorola e500 core complex.
59         (md_show_usage): Add -me500 and -me500x2.
61         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
62         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
63         PPC_APUINFO_BRLOCK): New macros.
65         (ppc_cleanup): New function.
66         (ppc_apuinfo_section_add): New function.
67         (APUID): New macro.
68         (md_assemble): Collect info and write the APUinfo section.
70         * config/tc-ppc.h (md_cleanup): Define.
71         (ppc_cleanup): Export.
72         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
74 2002-08-17  Stan Cox  <scox@redhat.com>
76         * config/obj-elf.c (obj_elf_change_section): Make non-static.
77         config/tc-mips.c (s_change_section): New function to support
78         IRIX .section pseudo-op.
80 2002-08-16  Nick Clifton  <nickc@redhat.com>
82         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
84 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
86         * config/tc-mips.c (macro_build_jalr): Make sure we generate
87         the fix-up against on the right frag.
88         (s_cpsetup): Likewise.  Parse third argument as expression, to
89         handle global symbols and forward/backward labels correctly.
91 2002-08-14  Nick Clifton  <nickc@redhat.com>
93         * read.c (stringer): Catch attempts to create strings in the abs
94         section.
96         * config/tc-alpha.c: Fix compiling for COFF targets.
97         Some minor formatting tidyups.
99 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
101         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
102         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
103         according to the reloc.
104         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
105         (TC_FORCE_RELOCATION): Define.
106         (tc_m68hc11_force_relocation): Declare.
108         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
109         (s_m68hc11_relax): New function for relax group.
110         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at 
111         beginning of jump instruction.
112         (md_pcrel_from): Rename from md_pcrel_from_section and fix
113         address computation.
114         (tc-gen_reloc): Update.
115         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as 
116         PC-relative fixup.
117         (tc_m68hc11_force_relocation): New function, handle new relocs.
118         (tc_m68hc11_fix_adjustable): New to make sure there are enough
119         reloc for the linker relax pass.
120         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
121         and VTABLE relocs.
123 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
125         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
126         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
127         (s_m68hc11_mode): New function for .mode pseudo op.
128         (s_m68hc11_mark_symbol): New function for .far and .interrupt
129         pseudo op.
130         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
131         (m68hc11_elf_final_processing): Declare.
133 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
135         * config/tc-m68hc11.c (md_begin): Take into account additional
136         page operand for call instruction.
137         (print_opcode_format): Likewise.
138         (check_range): Likewise for page range checking.
139         (get_operand): Don't skip a possible comma in operands.
140         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
141         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
142         (fixup24): New to handle call reloc.
143         (build_insn): Handle missing page operand for call instruction.
144         (find): Likewise.
145         (md_apply_fix3): Take into account new relocs.
146         (get_operand): Fix the mode for indexed indirect addressing.
147         (build_indexed_byte): Fix post index byte for indexed indirect mode.
149 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
151         * config/tc-mips.c (mips_ip): Don't work out the value of
152         constant %hi()s here.
154 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
156         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
157         for ELF, and don't bother checking ELF relocs when non-ELF.
158         (i386_immediate): Allow absolute_section expressions for aout.
159         (i386_displacement): Likewise.  Also test bfd_is_com_section.
160         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
161         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
162         not when fx_addsy.  Remove dead code.
164 2002-08-09  Graeme Peterson  <gp@qnx.com>
166         * configure.in: Add support for ppc-*-nto* target.
167         * configure: Regenerate.
168         
169 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
171         * config/tc-i386.h: Reorganize.
173 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
175         * config/tc-mips.c (macro): Handle a register plus a 16-bit
176         immediate offset in "dla" and "la" expansions.
178 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
180         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
181         Remove "bfd_gas=yes" from target table when covered later.
182         Consolidate some entries.
183         * configure: Regenerate
185 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
187         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
188         at start of insn, pass it to output_disp and output_imm.
189         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
190         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
191         properly addend.
192         (output_imm): Added arguments.  Compute properly addend for
193         R_386_GOTPC.
194         (md_apply_fix3): Remove R_386_GOTPC handling.
195         * testsuite/gas/i386/gotpc.s: New.
196         * testsuite/gas/i386/gotpc.d: New.
197         * testsuite/gas/i386/i386.exp: Add gotpc test.
199 2002-08-06  George France <france@handhelds.org>
201         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
202         and m21264b processor names and cpu types.
203         * doc/c-alpha.texi: Documented new types.
205 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
207         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
209 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
211         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
212         handling to BFD_RELOC_MIPS16_GPREL.
214 2002-08-01  Nick Clifton  <nickc@redhat.com>
216         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
217         pool is computed using signed arithmetic so that proper sign
218         extension is performed if X_add_number is a 64-bit integer.
220 2002-08-01  H.J. Lu  <hjl@gnu.org>
221             Daniel Jacobowitz  <drow@mvista.com>
223         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
224         .debug_line section unless it has line information.
226 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
228         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
229         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
230         Allow default displacement size to be an option "--disp-size-default".
231         (md_number_to_disp): Make error messages include value. Use %d to
232         print integers, not %s.
233         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
234         get duplicate messages sometimes.
235         (convert_iif): Grow frag to max possible instruction size. Avoid
236         creating unnecessary fixes.
237         (md_number_to_field) Add prototype.
238         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
239         prototypes and make static.
240         (struct addr_mode): Make mode and scaled_mode explicitly signed.
241         (evaluate_expr): Use resultP argument instead of exprP global.
242         (get_addr_mode): Quiten compiler warnings.
243         (encode_operand): eliminate unused variables. Quiten compiler
244         warnings. Eliminate nul character in format strings.
245         (parse): argc is unsigned.
246         (reloc): Type cast index to quieten compiler.
247         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
248         (md_convert_frag): Note unused parameters. Remove unused
249         variables.
250         (md_create_long_jump, md_create_short_jump,
251         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
252         unused parameters.
253         
254 2002-07-31  Nick Clifton  <nickc@redhat.com>
256         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
257         of the PDP-11 and 2.11BSD a.out support.
259 2002-07-31  Momchil Velikov  <velco@fadata.bg>
261         * config/tc-v850.c (md_assemble): Fix range check for immediate
262         operand.
264 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
266         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
267         to Broadcom SB-1 core support.
269 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
271         * config/tc-mips.c (mips_target_format): Fix formatting.
272         Add recognition of n32 ABI formats.
274 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
276         * tc-mips.c (load_address): Don't clobber $at when loading a
277         64-bit address in non-PIC code if noat is in effect.
278         (macro): Likewise.
280 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
282         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
283         used in division/multiply macro expansions similarly to how they
284         are used in the variants with break instructions.
285         (macro2): Likewise.
287 2002-07-30  Graeme Peterson  <gp@qnx.com>
289         * configure.in: Add support for arm-*-nto target.
290         * configure: Regenerate.
291         
292 2002-07-30  Nick Clifton  <nickc@redhat.com>
294         * config/tc-arm.c (struct literal_pool): Add fields to allow
295         multiple literal pools to be maintained.
296         (find_literal_pool): New function.
297         (find_or_make_literal_pool): New function.
298         (add_to_literal_pool): Use find_or_make_literal_pool.
299         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
300         needed.
301         (s_ltorg): Use find_literal_pool.
302         (arm_cleanup): Dump all literal pools.
303         * doc/c-arm.texi: Document new behaviour of only dumping literal
304         pools upon request.
306 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
308         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
309         rather than PPC_OPCODE_32 for powerpc64*.
311 2002-07-25  Nick Clifton  <nickc@redhat.com>
313         * po/es.po: Updated Spanish translation.
314         * po/fr.po: Updated French translation.
316 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
318         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
319         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
320         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
321         * configure, config.in: Regenerate.
322         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
323         (mips_set_options): Remove "abi" field.
324         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
325         with mips_abi.
326         (mips_cpu): Remove.
327         (mips_arch_string, mips_arch_info): New vars.
328         (mips_tune_string, mips_tune_info): New vars.
329         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
330         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
331         (mips_isa_to_str, mips_cpu_to_str): Remove.
332         (mips_ip): If the selected architecture is a generic ISA rather
333         than a processor, only mention the ISA level in error messages.
334         (OPTION_MCPU): Remove.
335         (OPTION_FP64): New.
336         (md_longopts): Add -mfp64, remove -mcpu.
337         (mips_set_option_string): New fn.
338         (md_parse_option): Make -mipsN update file_mips_isa rather than
339         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
340         Don't let -mgp32 and -mfp32 change the ABI.
341         (show): Move to end of file.  Constify string argument.
342         (md_show_usage): Move to the end of the file.  Read available
343         architectures from mips_cpu_info_table.
344         (mips_set_architecture): New fn.
345         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
346         is an alias for -march=mipsN.  Don't change the ABI based on other
347         flags.  Infer the register size from the ABI as well as the
348         architecture.  Complain about more conflicting arguments.
349         Unify logic with GCC.
350         (s_mipsset): Don't change the ABI.
351         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
352         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
353         "mipsN"-type entries.  Remove entries that vary only in the
354         manufacturer's prefix, or that have "000" replaced by "k".
355         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
356         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
357         (mips_parse_cpu): New fn.
358         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
359         (mips_cpu_info_from_isa): Minor formatting tweak.
361 2002-07-24  Nick Clifton  <nickc@redhat.com>
363         * po/sv.po: Updated Swedish translation.
364         * po/es.po: Updated Spanish translation.
366 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
368         * Makefile.am: Run "make dep-am".
369         * Makefile.in: Regenerate.
370         * doc/Makefile.in: Regenerate.
371         * config.in: Regenerate.
372         * po/POTFILES.in: Regenerate.
374 2002-07-23  Nick Clifton  <nickc@redhat.com>
376         * po/fr.po: Updated French translation.
378 2002-07-23  Nick Clifton  <nickc@redhat.com>
380         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
381         GAS.
383 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
385         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
386         instead of S_IS_EXTERN.
387         (md_estimate_size_before_relax): Likewise.
388         (mips_fix_adjustable): Likewise.
390 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
392         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
394 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
395             Nick Clifton  <nickc@redhat.com>
397         * cond.c (s_ifdef): Treat a referenced but not yet defined
398         symbol as if it were undefined, in exactly the same way as
399         .equiv.
401         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
402         consider referenced bug not yet defined symbols to be
403         undefined.
405 2002-07-18  Denis Chertykov  <denisc@overta.ru>
406             Frank Ch. Eigler  <fche@redhat.com>
407             Alan Lehotsky  <alehotsky@cygnus.com>
408             John Healy  <jhealy@redhat.com>
409             Jeff Johnston  <jjohnstn@redhat.com>
411         * configure.in: Add ip2k configuraton.
412         * configure: Regenerate.
413         * Makefile.am: Add ip2k configuraton.
414         * Makefile.in: Regenerate.
415         * configure: Regenerate.
416         * Makefile.in: Regenerate.
417         * config/tc-ip2k.c: New file.
418         * config/tc-ip2k.h: New files.
419         * NEWS: Mention new support.
420         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
421         * doc/Makefile.in: Regenerate.
422         * doc/all.texi: Set IP2K
423         * doc/as.texinfo: Add IP2K description.
424         * doc/c-ip2k.texi: New file.
426 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
428         * NEWS: Reformat to match style of other NEWS files.
430 2002-07-17  Jan Hubicka  <jh@suse.cz>
432         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
434 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
436         * config/tc-z8k.c (build_bytes): Correct order of memset args.
438 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
440         * NEWS: Add 'Changes in 2.13'.
442 2002-07-15  Matt Fredette  <fredette@netbsd.org>
444         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
446 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
448         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
449         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
450         not CODE_64BIT.
452 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
454         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
455         (ppc_frob_file_before_adjust): New function.
456         * config/tc-ppc.h (tc_frob_symbol): Don't define.
457         (ppc_elf_frob_symbol): Don't declare.
458         (tc_frob_file_before_adjust): Define.
459         (ppc_frob_file_before_adjust): Declare.
461         * config/tc-ppc.c (md_pseudo_table): Warning fix.
462         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
463         flags.
464         (ppc_size): Delete.
465         (ppc_xcoff64): Rename to ppc_obj64.
466         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
467         (ppc_set_cpu): Set PPC_OPCODE_32 too.
468         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
469         or bfd_mach_ppc.
470         (ppc_target_format): Use ppc_obj64 to select format.
471         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
472         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
473         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
474         (tc_frob_symbol): Likewise.
475         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
476         BFD_DEFAULT_TARGET_SIZE.
477         (ppc_tc): Likewise.
478         (ppc_is_toc_sym): Likewise.
479         (md_apply_fix3): Likewise.
480         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
481         BFD_DEFAULT_TARGET_SIZE.
482         (ELF_TC_SPECIAL_SECTIONS): Likewise.
483         (tc_frob_symbol): Likewise.
485 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
487         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
488         (mips_ip): Likewise.
490 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
492         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
493         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
494         (md_apply_fix3): Formatting.  Remove redundant test.
495         (tc_gen_reloc): Remove redundant code.
496         (tc_i386_force_relocation): Delete.  Movy body of function to..
497         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
499 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
501         * configure.in: Add hppa-*-openbsd* target, change
502         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
503         with sparc64 cpu.
504         * configure: Regenerate.
506 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
508         * config/tc-mips.c (macro): Shift the 32-bit address range
509         accessible with a lone "lui" down by 32768.
511 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
513         * config/tc-mips.c (load_address): Use non-trapping "daddu"
514         instead of "dadd" in address calculations.
515         (macro): Likewise.
517 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
519         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
520         movzx fudges.
521         (md_assemble): Instead, zap the suffix here.
523 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
525         * NEWS: Remove next release number until the release is actually
526         upon us.
528 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
530         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
531         Run "make dep-am".
532         * Makefile.in: Regenerate.
534 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
536         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
537         to symbols in merge sections, even non pc-relative ones.
539 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
541         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
543 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
545         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
546         .softregs and .eeprom.
548 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
550         * NEWS: Note the next release is 2.13.
552 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
554         * po/tr.po: New translation imported.
556 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
558         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
559         (ecoff_directive_def): Likewise.
560         (ecoff_directive_tag): Likewise.
561         * listing.c (file_info): Likewise.
562         * hash.c (what): Likewise.
564 2002-06-25  H.J. Lu <hjl@gnu.org>
566         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
567         * Makefile.in: Regenerated.
569 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
571         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
572         (assemble_ppi): Generate warning if the same register is used
573         twice as destination in the same padd / pmuls instruction.
575 2002-06-18  Dave Brolley  <brolley@redhat.com>
577         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
578         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
579         * configure.in: Support frv-*-*.
580         * Makefile.am (CPU_TYPES): Add frv.
581         (TARGET_CPU_CFILES): Add tc-frv.c.
582         (TARGET_CPU_HFILES): Add tc-frv.h.
583         (DEPTC_frv_coff): New variable.
584         (DEPTC_frv_elf): New variable.
585         (DEPOBJ_frv_coff): New variable.
586         (DEPOBJ_frv_elf): New variable.
587         (DEP_frv_coff): New variable.
588         (DEP_frv_elf): New variable.
589         * tc-frv.c: New file.
590         * tc-frv.h: New file.
592 2002-06-17  Catherine Moore <clm@redhat.com>
594         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
596 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
598         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
600 2002-06-17  Tom Rix <trix@redhat.com>
602         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
604 2002-06-14  H.J. Lu  <hjl@gnu.org>
605             Daniel Jacobowitz  <drow@mvista.com>
607         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
608         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
609         * config/tc-mips.c (s_mips_file): Call s_app_file_string
610         and new_logical_line for the first .file directive.
611         * read.c (s_app_file_string): New function.
612         (s_app_file): Call it.
613         * read.h (s_app_file_string): Add declaration.
615 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
617         * configure.in: Remove MIPS_STABS_ELF.
618         * configure: Regenerated.
619         * config.in: Regenerated.
620         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
621         for MIPS targets.
622         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
623         ".extern".
624         (pdr_seg): Declare unconditionally.
625         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
626         (s_mips_end): Likewise.  Generate stabs function markers.
627         (s_mips_ent): Generate stabs function markers.
628         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
629         ELF.
630         (s_mips_mask): Likewise.
631         (mips_flag_mdebug): New.
632         (md_longopts): Add "mdebug" and "no-mdebug".
633         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
634         (mips_after_parse_args): Set mips_flag_mdebug.
635         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
637 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
639         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
640         value twice for RELA relocations.
642 2002-06-12  Ben Elliston  <bje@redhat.com>
644         * symbols.c (resolve_symbol_value): Initialise final_val.
646         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
648 2002-06-11  Tom Rix  <trix@redhat.com>
650         * config/tc-ppc.c (ppc_subseg_align): Delete.
651         (ppc_change_csect): Default csect align is 2.
652         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
654 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
656         * config/tc-avr.c (mcu_types): Update.
658 2002-06-08  Matt Thomas  <matt@3am-software.com>
660         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
661         (vax-*-netbsd*): New targets.
662         * configure: Regenerate.
663         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
664         * config/tc-vax.c: Add support for ELF and PIC.
665         (flag_want_pic): New flag.
666         (float_cons): Fix prototype.
667         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
668         (md_assemble): Introduce a new is_absolute local, and use it
669         rather than repeating the test.  Make fatal errors actually
670         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
671         Add support for ELF.  Add support for PIC.
672         (md_convert_frag): Adjust for BFD_ASSEMBLER.
673         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
674         BFD_ASSEMBLER.
675         (vax_reg_parse): Make the % register prefix mandatory for ELF,
676         optional for a.out, and not allowed for VMS.  Adjust all callers.
677         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
678         (md_create_long_jump): Likewise.
679         (md_undefined_symbol): Likewise.
680         (md_section_align): Likewise.
681         (md_shortopts): Allow -k and -K for ELF.
682         (md_parse_option): Set flag_want_pic if -k or -K.
683         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
684         (tc_gen_reloc): New function if BFD_ASSEMBLER.
685         * config/tc-vax.h (tc_headers_hook): Remove.
686         (TARGET_FORMAT): Set according to object format and target
687         environment.
688         (BFD_ARCH, TARGET_ARCH): Define.
689         (NO_RELOC): Adjust for BFD_ASSEMBLER.
690         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
691         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
692         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
694 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
696         * Makefile.am: Run "make dep-am".
697         * Makefile.in: Regenerate.
699         * as.c: Replace CONST with const.
700         * write.c: Likewise.
701         * config/obj-coff.c: Likewise.
702         * config/tc-a29k.c: Likewise.
703         * config/tc-arm.c: Likewise.
704         * config/tc-dlx.c: Likewise.
705         * config/tc-h8300.c: Likewise.
706         * config/tc-h8500.c: Likewise.
707         * config/tc-i370.c: Likewise.
708         * config/tc-i860.c: Likewise.
709         * config/tc-i960.c: Likewise.
710         * config/tc-m68hc11.c: Likewise.
711         * config/tc-m68k.c: Likewise.
712         * config/tc-m88k.c: Likewise.
713         * config/tc-mcore.c: Likewise.
714         * config/tc-mips.c: Likewise.
715         * config/tc-ns32k.c: Likewise.
716         * config/tc-pdp11.c: Likewise.
717         * config/tc-pj.c: Likewise.
718         * config/tc-s390.c: Likewise.
719         * config/tc-sh.c: Likewise.
720         * config/tc-sparc.c: Likewise.
721         * config/tc-tahoe.c: Likewise.
722         * config/tc-tic80.c: Likewise.
723         * config/tc-v850.c: Likewise.
724         * config/tc-vax.c: Likewise.
725         * config/tc-w65.c: Likewise.
726         * config/tc-z8k.c: Likewise.
728 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
730         Based on patch from Matt Green:
731         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
732         * config/tc-mips.c (s_mips_file): Renamed from s_file.
733         (s_mips_loc): New function.
734         (mips_nonecoff_pseudo_table): Call them.
735         (append_insn): Call dwarf2_emit_insn.
737 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
739         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
740         to -1.
741         (file_ase_mips16): New veriable.
742         (mips_eabi64): Remove.
743         (CPU_HAS_MIPS16): New define.
744         (CPU_HAS_MDMX): Fix data type.
745         (md_begin): Code cleanup. Use file_ase_mips16.
746         (mips_elf_final_processing): Handle mips16 header flag.
747         Handle EABI flag without intermediate variable.
749 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
751         * doc/as.texinfo: Update MIPS documentation.
753 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
755         * config/tc-mips.c: Add define for $zero register.
756         (md_begin): Add $zero as alias name for $0.
757         (insn_uses_reg): Use ZERO define.
758         (mips_ip): Add $zero as alias name for $0.
759         (mips16_ip): Likewise.
760         (s_cplocal): Demand empty rest of input line.
761         (tc_get_register): Likewise. Add support for $kt0, kt1 register
762         names. Use ZERO define. Fix input_line_pointer progress.
764 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
766         * symbols.c: Replace CONST by const throughout.
767         (symbol_find_exact): Split out from..
768         (symbol_find_base): ..here.
769         * symbols.h: Replace CONST by const throughout.
770         (symbol_find_exact): Declare.
771         * config/obj-elf.c: #include "struc-symbol.h".
772         (elf_frob_file): If group name matches an exported symbol, use that
773         symbol for the signature and ".group" as the section name.
775 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
777         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
778         but warn about it.
779         * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
780         * testsuite/gas/sh/pcrel.d: Update.
781         * testsuite/gas/sh/pcrel.l: New file.
783 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
785         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
786         and mips_opts.ase_mdmx if they are uninitialized.
788 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
790         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
791         (hppa_force_relocation): Check if a stub just before the start symbol
792         of the last call_info is reachable before forcing relocation.  Fix
793         typo.
795 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
797         * config/tc-mips.c (mips_after_parse_args): New function.
798         (md_begin): Move processing of defaults to mips_after_parse_args.
799         config/tc-mips.h (md_after_parse_args): Define.
801 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
803         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
804         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
805         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
806         * configure: Regenerate.
807         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
808         environment.
810 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
812         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
814 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
816         * config/obj-elf.c (obj_elf_change_section): Set and check elf
817         linkonce flag.  Print all warnings.
818         (obj_elf_section): Parse ",comdat" for groups.
819         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
820         consistency of comdat flag.
822 2002-06-02  Richard Henderson  <rth@redhat.com>
824         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
825         with LITERALs without sequence numbers.
827 2002-06-01  Richard Henderson  <rth@redhat.com>
829         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
830         Rename them LITUSE_ALPHA_*.
832 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
834         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
835         accept parentheses enclosed register lists.
837 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
839         * Makefile.am: Run "make dep-am".
840         * Makefile.in: Regenerate.
841         * po/POTFILES.in: Regenerate.
843 2002-05-31  Graeme Peterson  <gp@qnx.com>
845         * configure.in: Add i386-*-nto-qnx*.
846         * configure: Regenerate.
848 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
850         * config/tc-mips.c (mips_ip): Use unsigned long values for
851         warning output.
853 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
855         * config/tc-mips.c (s_cpsetup): Fix initialization of
856         mips_cpreturn_register and mips_cpreturn_offset.
858 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
860         * config/tc-mips.c (s_cpsetup): Fix comment.
862 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
864         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
865         (mips_ip): Likewise.
866         (mips16_ip): Likewise.
867         (tc_get_register): Likewise.
869 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
870             Ed Satterthwaite  <ehs@broadcom.com>
872         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
873         (mips_opts): Initialize "ase_mdmx" member.
874         (file_ase_mdmx): New variable.
875         (CPU_HAS_MDMX): New macro.
876         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
877         based on command line options and configuration defaults.
878         (macro_build): Note in comment that use of MDMX in macros is
879         not currently allowed.
880         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
881         "Z" MDMX operand types.
882         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
883         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
884         types.
885         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
886         Add support for "-mdmx" and "-no-mdmx" options.
887         (OPTION_ELF_BASE): Move to accomodate new options.
888         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
889         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
890         file_ase_mdmx was set.
891         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
892         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
893         nomdmx" directives.
895 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
897         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
898         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
899         command line switch conforming to gcc conventions.
900         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
902 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
904         * config/tc-mips.c (macro_build_jalr): New Function.
905         (md_begin): NewABI uses big GOTs.
906         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
907         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
908         (load_address): Add some NewABI PIC support.
909         (macro): Likewise.
910         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
911         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
913 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
915         * config/tc-mips.c (load_address): Use mips_gp_register instead
916         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
917         instead.
918         (macro): Use mips_gp_register instead of hardcoded value.
920 2002-05-30  Richard Henderson  <rth@redhat.com>
922         * expr.h (operatorT): Add O_md17..O_md32.
923         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
924         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
925         O_tprelhi, O_tprello, O_tprel): New.
926         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
927         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
928         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
929         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
930         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
931         (md_apply_fix3): Handle TLS relocations.
932         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
933         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
934         associated TLS reloc.  Check lituse_tls relocs match up.
935         (emit_insn): Handle TLS relocations.
936         (ldX_op): Remove.
938         * doc/c-alpha.texi: Add docs for tls relocations.
940 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
942         * config/tc-mips.c (mips_gprel_offset): New variable.
943         (s_gpvalue): Use it.
945 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
947         * gas/config/tc-d10v.c (check_resource_conflict): Only check
948         write-write conflicts.
949         (md_assemble): Reformat introductory comment.
950         (parallel_ok): Prevent packing only if the first
951         instruction cannot be packed.
953 2002-05-30  Jason Eckhardt <jle@redhat.com>
954             Tom Rix <trix@redhat.com>
956         * config/tc-d10v.c (build_insn): Check for immediates.
958 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
960         * config/tc-mips.c: Replace GP in comments by $gp.
961         (mips_big_got): Initialize.
962         (mips_trap): Initialize.
963         (load_address): Use mips_gp_register instead of hardcoded value.
964         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
965         (macro): Use mips_gp_register instead of hardcoded value.
966         (macro2): Change load_address calls.
967         (md_pcrel_from): Comment formatting.
968         (s_cpload): Use mips_gp_register instead of hardcoded value.
969         (s_cprestore): Likewise. Comment formatting.
970         (s_gpword): Fix data type.
971         (s_cpadd): Use mips_gp_register instead of hardcoded value.
972         (nopic_need_relax): Replace GP in comments by $gp.
973         (mips_elf_final_processing): Better comment.
975 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
977         * configure.in: Add DLX configuraton
978         * Makefile.am: Add DLX configuraton
979         * configure: Regenerate.
980         * Makefile.in: Regenerate.
981         * config/tc-dlx.c: New file.
982         * config/tc-dlx.h: New files.
983         * NEWS: Mention new support.
985 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
987         * config/obj-coff.c (write_object_file): Add missing semicolon.
989 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
991         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
992         by the define. Remove superfluous check of mips_opts.mips16.
993         (append_insn): Likewise. Canonicalize variable increments.
994         (macro_build): Canonicalize variable increments.
995         (macro_build_lui): Likewise.
996         (load_register): Likewise.
997         (load_address): Move pointer initialization.
998         (macro): Move pointer to a more local scope. Canonicalize variable
999         increments. Better comments. Replace magic constant for RA by the
1000         define.
1001         (macro2): Replace magic constant for RA by the define. Canonicalize
1002         variable increments.
1003         (mips_ip): Canonicalize variable increments.
1004         (mips16_ip): Replace magic constant for RA by the define.
1005         (my_getSmallParser): Canonicalize variable increments/decrements.
1006         (my_getPercentOp): Likewise.
1007         (my_getSmallExpression): Likewise.
1008         (s_align): Likewise.
1009         (s_mipsset): Likewise.
1010         (s_cpsetup): Likewise.
1011         (s_insn): Remove superfluous check of mips_opts.mips16.
1012         (s_mips_stab): Likewise.
1013         (mips_handle_align): Canonicalize variable increments.
1014         (s_mips_ent): Likewise.
1015         (s_mips_end): Add comment.
1017 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1019         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1020         * configure: Regenerate.
1022 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
1024         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
1025         * Makefile.in: Regenerate.
1026         * dep-in.sed: Reorder to match OBJS in Makefile.am.
1027         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
1028         * configure: Regenerate.
1029         * as.h: Use #include "" instead of <> for local header files.
1030         * flonum-konst.c: Likewise.
1031         * flonum-mult.c: Likewise.
1032         * gasp.c: Likewise.
1033         * listing.c: Likewise.
1034         * config/tc-ia64.h: Likewise.
1035         * config/tc-v850.h: Likewise.
1037 2002-05-24  TAMURA Kent <kent@netbsd.org>
1039         * configure.in: Add a target for i386-netbsdpe.
1040         * configure: Regenerate.
1042 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1044         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
1045         (obj_elf_common): Call elf_common.
1046         (obj_elf_tls_common): New function.
1047         (elf_pseudo_tab): Support .tls_common.
1048         (special_sections): Add .tdata and .tbss.
1049         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
1050         sections.
1051         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
1052         (obj_elf_parse_section_letters): Include T in error message.
1053         * config/tc-ppc.c (ppc_section_letter): Likewise.
1054         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
1055         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
1056         SEC_MERGE.
1057         * config/tc-sparc.c (md_apply_fix3): Likewise.
1058         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
1059         Define them if not BFD_ASSEMBLER.
1060         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
1061         and @NTPOFF.
1062         (md_apply_fix3): Add TLS relocs.
1063         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
1064         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
1065         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
1066         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
1067         (ia64_elf_section_letter): Include T in error message.
1068         (md_begin): Support TLS operators.
1069         (md_operand): Likewise.
1070         (ia64_gen_real_reloc_type): Support TLS relocs.
1071         * testsuite/gas/i386/tlspic.s: New file.
1072         * testsuite/gas/i386/tlsd.s: New file.
1073         * testsuite/gas/i386/tlsnopic.s: New file.
1074         * testsuite/gas/i386/tlsd.d: New file.
1075         * testsuite/gas/i386/tlsnopic.d: New file.
1076         * testsuite/gas/i386/tlspic.d: New file.
1077         * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
1078         * testsuite/gas/ia64/tls.s: New file.
1079         * testsuite/gas/ia64/tls.d: New file.
1080         * testsuite/gas/ia64/ia64.exp: Add tls test.
1081         * write.c (adjust_reloc_syms): Don't change symbols in
1082         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
1084 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1086         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
1087         round the relocation up rather than down.
1089 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1091         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
1092         flag.
1093         * doc/as.texinfo: Document that the COFF version of .section
1094         ignores the 'a' flag.
1096 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1098         * config/tc-alpha.c (assemble_tokens): Protect use of
1099         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
1101         * write.c (size_seg): Check adjustment to last frag.
1102         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
1103         section alignment.
1104         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
1105         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
1106         (write_object_file): Invoke md_do_align if available, and use
1107         frag_align_code on text sections.
1108         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
1109         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
1110         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
1111         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1112         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
1113         BFD_ASSEMBLER too.
1115 2002-05-22  H.J. Lu <hjl@gnu.org>
1117         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
1118         for source file.
1120 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
1122         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
1123         as ELF builds.
1125 2002-05-22  H.J. Lu <hjl@gnu.org>
1127         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
1128         for one .loc for compiler.
1130 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1132         * config/tc-mips.c (macro): Relax warning, it's toot strict for
1133         embedded-PIC.
1135 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1137         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
1138         Optimize the rotate by zero case.
1140 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
1142         * configure.in: Remove accidental enabling of bfd_gas=yes for
1143         sh-coff targets.
1144         * configure: Regenerate.
1146 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
1148         * app.c: Fix formatting.
1149         * as.c: Likewise.
1150         * ehopt.c: Likewise.
1151         * expr.c: Likewise.
1152         * input-file.c: Likewise.
1153         * listing.c: Likewise.
1154         * macro.h: Likewise.
1155         * stabs.c: Likewise.
1156         * symbols.c: Likewise.
1158 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
1160         * config/obj-generic.c: Delete file.
1161         * config/obj-generic.h: Likewise.
1163 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1165         * config/tc-avr.c (mcu_types): Update for new devices.
1167 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1169         * config/tc-mips.c (macro): Warn about wrong la/dla use.
1171 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1173         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
1174         worked sometimes by accident. Fix copy&paste comment.
1176 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1178         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
1179         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
1180         (mips_elf_final_processing): Let n32 use .reginfo.
1182 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1184         * config/tc-mips.c (append_insn): Fix too small range of variable.
1186 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
1188         * config/tc-arm.c (arm_cleanup): Remove redundant call to
1189         listing_prev_line().
1191 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
1193         * config/tc-arm.c (md_assemble): Remove redundant call to
1194         listing_prev().
1196         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
1197         loc_directive_seen.
1199         * stabs.c (s_stab_generic): Fix grammatical error in warning
1200         message.
1202 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
1204         * write.c (subsegs_finish): Don't specially align last subseg.
1206 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
1208         * stabs.c (s_stab_generic): Warn about a description field that is
1209         too big.
1211         * config/obj-coff.c: Fix compile time warnings when compiling
1212         without BFD_ASSEMBLER defined.
1213         Fix formatting.
1215         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
1216         target.
1217         (md_pcrel_from_section): Use md_pcrel_from().
1219 2002-05-11  Bruno Haible  <bruno@clisp.org>
1221         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
1222         by dwarf2_directive_loc, instead of calling dwarf2_where.
1224 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
1226         * config/obj-coff.h: Fix formatting.
1227         * config/tc-mcore.c: Likewise.
1228         * config/tc-mn10300.c: Likewise.
1229         * config/tc-openrisc.c: Likewise.
1230         * config/tc-or32.c: Likewise.
1231         * config/tc-pdp11.c: Likewise.
1232         * config/tc-ppc.c: Likewise.
1233         * config/tc-ppc.h: Likewise.
1234         * config/tc-sh64.c: Likewise.
1235         * config/tc-sh.c: Likewise.
1236         * config/tc-tic54x.c: Likewise.
1237         * config/tc-xstormy16.c: Likewise.
1238         * config/tc-xstormy16.h: Likewise.
1240 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
1242         * config/obj-coff.c: Fix formatting.
1243         * config/obj-elf.c: Likewise.
1244         * config/tc-alpha.c: Likewise.
1245         * config/tc-arm.c: Likewise.
1246         * config/tc-d10v.c: Likewise.
1247         * config/tc-d30v.c: Likewise.
1248         * config/tc-h8300.c: Likewise.
1249         * config/tc-hppa.c: Likewise.
1251 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
1253         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
1254         reloc when no_cond_jump_promotion.
1256 2002-05-08  Jim Wilson  <wilson@redhat.com>
1258         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
1259         current variable part of frag.
1261 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
1263         * config/tc-mmix.c: Fix formatting.
1264         * config/tc-mmix.h: Likewise.
1266 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
1268         * configure: Regenerate.
1270 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
1272         * config/tc-m68k.c: Fix formatting.
1274 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1276         * Makefile.am: Honour DESTDIR.
1277         * Makefile.in: Regenerate.
1279 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
1281         * config/tc-ia64.c: Fix formatting.
1282         * config/tc-ia64.h: Likewise.
1284 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1286         * config/tc-mips.c: Fix formatting.
1287         * config/tc-s390.c: Likewise.
1288         * config/tc-s390.h: Likewise.
1290 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
1292         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
1293         information for instructions.
1295 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1297         * as.h: Fix formatting.
1298         * cgen.c: Likewise.
1299         * cgen.h: Likewise.
1300         * dwarf2dbg.c: Likewise.
1301         * frags.h: Likewise.
1302         * gasp.c: Likewise.
1303         * macro.c: Likewise.
1304         * read.c: Likewise.
1305         * stabs.c: Likewise.
1306         * symbols.c: Likewise.
1308 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1310         * app.c (mri_pseudo): Only declare for TC_M68K.
1312         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
1313         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
1314         BFD_RELOC_16_BASEREL.
1315         (md_assemble): Likewise.
1316         (md_apply_fix3): Likewise.
1318 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
1320         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
1321         zero into an add of zero - it is not the same.
1323 2002-05-01  Arati Dikey <aratid@kpit.com>
1325         * tc-sh.c (get_specific): Generate warning if the same
1326         destination register is used in parallel instructions.
1328 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
1330         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
1332 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1334         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
1335         backwards to prevent cascading errors.
1337 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1339         * configure.in: Add support for powerpc-*-windiss.
1340         * configure: Regenerated.
1342 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1344         * config/tc-s390.c (md_parse_option): Formatting.
1346         * config/tc-i386.c: Formatting fixes, add missing space in error
1347         message.
1349 2002-04-24  Christian Groessler <chris@groessler.org>
1351         * config/tc-z8k.c (build_bytes): Add support for new cases:
1352         CLASS_IGNORE and ARG_NIM4.
1353         (md_assemble): Prevent destruction of input_line_pointer if
1354         get_operands returns failure.
1356 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
1358         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
1359         instructions to be generated by macros.
1361 2002-04-24  Andreas Schwab  <schwab@suse.de>
1363         * config/tc-i386.c (output_jump, output_disp)
1364         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
1365         more.
1366         (md_apply_fix3): Remember addend value for rela relocations.
1367         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
1369 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
1371         * config/tc-mips.c (macro_build): Add close-parenthesis missing
1372         from previous change.
1374 2002-04-22  Eric Christopher  <echristo@redhat.com>
1376         * config/tc-mips.c (macro_build): Add warning if macro instructions
1377         are expanded into a branch delay slot.
1379 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
1381         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
1382         numbers, gdb relies on them to detect the start of the prologue.
1384 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1386         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
1387         symbols in merge sections.
1389 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
1391         * as.c (main): Don't reference _bfd_chunksize.
1393 2002-04-15  Tom Rix  <trix@redhat.com>
1395         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
1396         symbols in merge sections.
1398 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
1400         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
1401         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
1402         argument for the precision.
1403         (gen_to_words): Update accordingly.
1405 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
1407         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
1408         BFD_VERSION_STRING unavailable.
1409         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
1411 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
1413         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
1414         symbol_used_in_reloc_p is true.
1416         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
1417         endian hosts.
1419 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1421         * dep-in.sed: Cope with absolute paths.
1422         * Makefile.am (dep.sed): Subst TOPDIR.
1423         Run "make dep-am".
1424         * Makefile.in: Regenerate.
1426 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1428         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
1429         (mips_ip): Remove unused variable.
1430         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
1431         unsigned char with bfd_byte.
1432         (s_file): Remove unused variable.
1433         (s_mips_ent): Likewise.
1435 2002-04-03  Tom Rix  <trix@redhat.com>
1437         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
1438         (build_insn): Same.
1439         (find_opcode): Fix warning in as_warn.
1440         * config/tc-d10v.h: Update Copyright.
1442 2002-04-03  Alan Matsuoka <alanm@redhat.com>
1443             Tom Rix  <trix@redhat.com>
1445         From Jeff Knaggs <jknaggs@redhat.com>
1446         * config/tc-d10v.c (check_resource_conflict): New function to
1447         check for resource conflicts.
1449         From Jason Eckhardt  <jle@redhat.com>
1450         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1451         imm3 fields.
1452         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
1453         reserved control registers is used.
1454         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1455         imm3 fields.
1457         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
1458         * tc-d10v.c (parallel_ok): Prevent packing only if the first
1459         instruction cannot be packed.
1461         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
1462         * gas/config/tc-d10v.c (check_resource_conflict): Only check
1463         write-write conflicts.
1464         (md_assemble): Reformat introductory comment.
1465         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
1466         arguments.
1468 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
1470         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
1471         O_logical_not>): Derive final_seg from add_symbol.
1472         <O_multiply..O_logical_or>: More final_seg twiddles.
1474 2002-04-01  Jessica Han  <jessica@cup.hp.com>
1476         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
1477         in 32-bit mode.
1479 2002-03-27  Andreas Schwab  <schwab@suse.de>
1481         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
1482         field for pc-relative fixups.
1483         (output_disp): Likewise.
1484         (md_estimate_size_before_relax): Likewise.
1485         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
1486         pc-relative fixups in 64bit mode.
1488 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
1490         * config/te-aix5.h: Typo fix.
1492 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1494         * Makefile.am: Run "make dep-am".
1495         * Makefile.in: Regenerate.
1496         * doc/Makefile.in: Regenerate.
1498 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
1500         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
1501         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
1503 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
1505         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
1506         the EXTENDED bit here; report the estimate according to the
1507         current size.
1509 2002-03-18  Tom Rix  <trix@redhat.com>
1511         * configure.in: Add AIX 5 support.
1512         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
1513         * config/te-aix5.h: New file. AIX 5 support.
1514         * configure: Regenerate.
1516 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1518         * po/fr.po: Updated version.
1520 2002-03-16  Andreas Jaeger  <aj@suse.de>
1522         * doc/c-mips.texi (Machine Dependencies): Add new node.
1524 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
1526         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
1527         (mips_opts): Initialize "ase_mips3d" member.
1528         (file_ase_mips3d): New variable.
1529         (CPU_HAS_MIPS3D): New macro.
1530         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
1531         based on command line options and configuration defaults.
1532         (macro_build, mips_ip): Accept MIPS-3D instructions if
1533         mips_opts.ase_mips3d is set.
1534         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
1535         Add support for "-mips3d" and "-no-mips3d" options.
1536         (OPTION_ELF_BASE): Move to accomodate new options.
1537         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
1538         (mips_elf_final_processing): Add a comment indicating that a
1539         MIPS-3D ASE ELF header flag should be set, when one exists.
1540         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
1541         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
1542         nomips3d" directives.
1544 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
1546         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
1547         a weak symbol in same section to be within reach.
1549 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1551         * po/fr.po: Updated version.
1553 2002-03-12  Andreas Schwab  <schwab@suse.de>
1555         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
1556         body record so that an error is given for misplaced .save
1557         pseudo-ops.
1559 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
1561         * config/tc-i386.h (REX_OPCODE): Define.
1562         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
1563         (rex_byte): typedef to int.
1564         * config/tc-i386.c: Group prototypes and vars together.
1565         Formatting fixes.  Remove occurrences of "register" keyword.
1566         (true): Delete.
1567         (false): Delete.
1568         (mode_from_disp_size): Add INLINE keyword to prototype.
1569         (fits_in_signed_byte): Likewise.
1570         (fits_in_unsigned_byte): Likewise.
1571         (fits_in_unsigned_word): Likewise.
1572         (fits_in_signed_word): Likewise.
1573         (fits_in_unsigned_long): Likewise.
1574         (fits_in_signed_long): Likewise.
1575         (type_names): Constify.
1576         (intel_float_operand): Constify param.
1577         (add_prefix): Use REX_OPCODE.
1578         (md_assemble): Likewise.  Modify for changed rex_byte.
1579         (parse_insn): Split out of md_assemble.
1580         (parse_operands): Likewise.
1581         (swap_operands): Likewise.
1582         (optimize_imm): Likewise.
1583         (optimize_disp): Likewise.
1584         (match_template): Likewise.
1585         (check_string): Likewise.
1586         (process_suffix): Likewise.
1587         (check_byte_reg): Likewise.
1588         (check_long_reg): Likewise.
1589         (check_qword_reg): Likewise.
1590         (check_word_reg): Likewise.
1591         (finalize_imm): Likewise.
1592         (process_operands): Likewise.
1593         (build_modrm_byte): Likewise.
1594         (output_insn): Likewise.
1595         (output_branch): Likewise.
1596         (output_jump): Likewise.
1597         (output_interseg_jump): Likewise.
1598         (output_disp): Likewise.
1599         (output_imm): Likewise.
1601 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1603         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1605 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
1607         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
1608         relocs except when BFD64.
1610         * write.c (number_to_chars_bigendian): Don't abort when N is
1611         larger than sizeof (VAL).
1612         (number_to_chars_littleendian): Likewise.
1614 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1616         * config/tc-hppa.c (md_apply_fix3): Add cast.
1617         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
1618         e_rrsel.
1620 2002-03-05  Paul Koning  <pkoning@equallogic.com>
1622         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
1623         (parse_ac5): New function for parsing float regs in float operand.
1624         (parse_expression): Remove attempt to make literals be octal.
1625         (parse_op_no_deferred): Support float literals.
1626         (parse_op): Reject attempts to refer to float regs.
1627         (parse_fop): New function, like parse_op but for float operand.
1628         (md_assemble): Add cases to parse float operands.  Also fix
1629         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
1631 2002-03-04  H.J. Lu <hjl@gnu.org>
1633         * config/obj-elf.c (special_section): Add .init_array,
1634         .fini_array and .preinit_array.
1636         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
1637         .init_array and .fini_array.
1639 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
1641         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
1642         visibility.
1643         (obj_frob_symbol): Copy visibility.
1645 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1647         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
1648         s_text.
1649         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
1651 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
1653         * po/es.po: Updated.
1655 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
1657         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
1658         only, undo the changes made on 2001-06-08, with the
1659         effect being that common or extern symbols are
1660         adjusted for embedded-PIC, but weak symbols are not.
1661         (md_estimate_size_before_relax: Likewise, with the effect
1662         that extern symbols are treated the same as weak symbols
1663         only if not embedded-PIC.
1664         (mips_fix_adjustable) Likewise, with the effect that
1665         weak or extern symbols are not adjusted for embedded-PIC.
1666         (md_apply_fix3): Tweak so that the case where value is zero
1667         is handled more correctly for embedded-PIC code.
1669 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
1671         * doc/as.texinfo (Overview): Add missing @ifset IA64
1673         * configure.in (LINGUAS): Add es.po.
1674         * configure: Regenerate.
1675         * po/es.po: New file.
1677 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1679         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
1680         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
1681         and NO_PIC cases. Code cleanup.
1682         (macro2): Fix handling of 64bit register loads.
1684 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
1686         * doc/as.texinfo: Add entry for IA64.
1687         * doc/c-ia64.texi: New file.
1689 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
1691         * config/tc-hppa.c: Update copyright date.
1693         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1694         Remove references to chip manufacturers.
1695         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1696         Correct comments.
1697         (md_show_usage): Remove references to chip manufacturers.  Mention
1698         -mpower4.
1699         (md_begin): Test power4 opcode flag bits.
1701 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
1703         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1704         count exceeds prologue count.
1705         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1706         (unwind.label_prologue_count): New member.
1708         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1710         (get_saved_prologue_count): New function.
1711         (save_prologue_count): New function.
1712         (free_saved_prologue_count): New function.
1713         (dot_label_state): Record state label by calling save_prologue_count().
1714         (dot_copy_state): Restore prologue count by calling
1715         get_saved_prologue_count().
1716         (generate_unwind_image): Free up list of saved prologue
1717         counts by calling free_saved_prologue_counts().
1719 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
1721         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1722         function declarations.
1724 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
1726         * NEWS: Note that GASP is now deprecated.
1727         * Makefile.am: Do not build gasp-new by default.
1728         * Makefile.in: Regenerate.
1729         * doc/Makefile.am: Do not install gasp.info.
1730         * doc/Makefile.in: Regenerate.
1731         * gas/gasp.texi: Note that gasp is now deprecated.
1733 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1735         * NEWS: Mark 2.12 branch.
1737 2002-02-19  Tom Tromey  <tromey@redhat.com>
1739         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1741 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1743         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1744         option input.
1746 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1748         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1749         Make bit size independent of architecture switch.
1750         (md_begin): Add warning for -m64 with -Aesa.
1751         (s390_md_end): Use renamed architecture defines.
1753 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
1755         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1757 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
1759         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1760         instead of CRIS.
1762 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
1764         * config/tc-mips.c (md_estimate_size_before_relax): Really
1765         make sure we treat weak like extern only for ELF.  (Fixes
1766         patch from 2001-07-25.)
1768 2002-02-15  Ben Elliston  <bje@redhat.com>
1770         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1771         works as expected.
1773 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1775         * NEWS: Mention support for MMIX.
1777 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
1779         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1780         a sequence of indpendent 'if' statements for easier debugging
1781         and future modification.
1783 2002-02-13  Matt Fredette  <fredette@netbsd.org>
1785         * config/tc-m68k.c (md_show_usage): No longer display a
1786         hard-coded "68020" for the default CPU, instead display the
1787         canonical name of the true, configured default CPU.
1788         (m68k_elf_final_processing): Mark objects for sub-68020
1789         CPUs with the new EF_M68000 flag.
1791 2002-02-13  Andreas Schwab  <schwab@suse.de>
1793         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1794         pc-relative relocations to merge sections in 64-bit mode.
1796 2002-02-13  Ben Elliston  <bje@redhat.com>
1798         * NEWS: Document floating point number handling in gasp.
1799         * gasp.c: Include <assert.h> and "xregex.h".
1800         (is_flonum): New function.
1801         (chew_flownum): Likewise.
1802         (change_base): Consume flonums from the input, where possible.
1803         * doc/gasp.texi (Constants): Document floating point numbers.
1805 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1807         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1808         that implicitly use LR and RR selectors.
1810 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
1812         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
1813         and `epsw' as available on AM33 and above only.
1814         (other_register_name): Add logic to handle machine type encoded in
1815         reg_number.
1817 2002-02-11  Tom Rix  <trix@redhat.com>
1819         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1820         xcoff64.
1822 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
1824         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1825         Use all over.
1827 2002-02-11  Jan Hubicka  <jh@suse.cz>
1829         * i386.c (md_assemble): Support 32bit address prefix.
1830         (i386_displacement): Likewise.
1831         (i386_index_check): Accept 32bit addressing in 64bit mode.
1833 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
1835         * config/tc-sh.c (dot): Removed unused function.
1837 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1839         * Makefile.am: "make dep-am".
1840         * Makefile.in: Regenerate.
1841         * aclocal.m4: Regenerate.
1842         * config.in: Regenerate.
1843         * configure: Regenerate.
1844         * doc/Makefile.in: Regenerate.
1846 2002-02-10  Richard Henderson  <rth@redhat.com>
1848         * doc/c-alpha.texi: New file.
1849         * doc/Makefile.am (CPU_DOCS): Add it.
1850         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1852 2002-02-09  Richard Henderson  <rth@redhat.com>
1854         * config/tc-alpha.c (O_samegp): New.
1855         (USER_RELOC_P): Include it.
1856         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1857         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1858         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1859         (alpha_validate_fix): New.
1860         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1862 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
1864         * doc/c-cris.texi: New.
1865         * doc/all.texi: @set CRIS.
1866         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
1867         Include c-cris.texi.
1868         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1869         * doc/Makefile.in: Regenerate.
1871 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
1873         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1874         determine if a number is a sign-extended 32-bit number.
1875         (load_register): Use IS_SEXT_32BIT_NUM.
1876         (macro): Check if load/store macro handling is using a
1877         constant 32-bit address on 64-bit address systems, and if
1878         so optimize the generation of that address.
1880 2002-02-08  Richard Henderson  <rth@redhat.com>
1882         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1883         we've eliminated all foreign relocation types yet.
1884         (alpha_fix_adjustable): Likewise.
1886 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1888         Contribute sh64-elf.
1889         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1890                     Stephen Clarke <Stephen.Clarke@st.com>
1891         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1892         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
1893         * config/tc-sh.c (md_relax_table): Added default sizes for
1894         non-PC-relative UNDEF_MOVI, and relaxation sequences for
1895         MOVI_16, MOVI_32 and MOVI_48.
1896         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1897         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1898         and MOVI_16.
1899         (shmedia_md_estimate_size_before_relax): Remove redundant
1900         blocks.  Set fragP->fr_var even if relaxation type unchanged.
1901         Retain UNDEF_MOVI until expression decays to number.
1902         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1903         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1904         relocation types.  Take fixP->fx_addnumber into account too.
1905         (shmedia_md_apply_fix): Likewise.
1906         (shmedia_md_convert_frag): Likewise.
1907         (shmedia_build_Mytes): Likewise.
1908         (sh64_consume_datalabel): Complain about nested datalabel.
1909         Support PIC relocs.  Call sh_parse_name.
1910         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1911         in tc-sh.h to SHmedia reloc types.
1912         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1913         MOVI_GOTPC): New relaxation constants.
1914         (md_relax_table): Introduce relaxation directives for PIC-related
1915         constants.
1916         (sh_PIC_related_p): Handle datalabel.
1917         (sh_check_fixup): Choose SH5 PIC relocations.
1918         (sh_cons_fix_new): Added BDF_RELOC_64.
1919         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
1920         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1921         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1922         current ISA is SHmedia, get 7 bytes.
1923         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
1924         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1925         void function.
1926         * config/tc-sh64.c (shmedia_apply_fix): Rename to
1927         shmedia_apply_fix3 and make void.
1928         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
1929         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1930         as_bad.
1931         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
1932         * config/tc-sh64.h (md_parse_name): Take &c as argument.
1933         2001-03-14  DJ Delorie  <dj@redhat.com>
1934         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1935         * doc/Makefile.in(CPU_DOCS): Ditto.
1936         * doc/c-sh64.texi: New file.
1937         * doc/as.texinfo: Add SH64 support.
1938         2001-03-13  DJ Delorie  <dj@redhat.com>
1939         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1940         A_REUSE_PREV so that its purpose is more obvious.
1941         (shmedia_build_Mytes): Ditto.
1942         2001-03-07  DJ Delorie  <dj@redhat.com>
1943         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1944         before processing.
1945         (sh64_vtable_inherit): Ditto.
1946         (strip_datalabels): New, strip "datalabel" from given line.
1947         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1948         pseudos.
1949         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1950         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1951         call ...
1952         (shmedia_build_Mytes): ... to here.
1953         2001-03-06  DJ Delorie  <dj@redhat.com>
1954         * config/tc-sh.c: Remove sh64-specific uaquad now that there
1955         is a generic one.
1956         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
1957         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1958         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1959         address by one in call to dwarf2_emit_insn.
1960         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
1961         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
1962         alignment handling broken by imported changes.
1963         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1964         (sh64_handle_align): Declare.
1965         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1966         (sh64_max_mem_for_rs_align_code): Declare.
1967         (enum sh64_isa_values): Moved here from tc-sh64.c.
1968         (md_do_align): Define.
1969         (sh64_do_align): Declare.
1970         (struct sh64_tc_frag_data): New.
1971         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
1972         changed.
1973         (TC_FRAG_INIT): Change to set new datatype.
1974         (struct sh64_segment_info_type): Rename member
1975         last_flushed_location to last_contents_mark.  All users changed.
1976         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1977         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1978         * config/tc-sh.c (md_pseudo_table): Add ".abi".
1979         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
1980         of unsetting seen_insn.
1981         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
1982         call sh64_update_contents_mark.
1983         (sh_handle_align): Remove HAVE_SH64-conditioned code.
1984         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
1985         enum sh64_isa_values.
1986         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
1987         (emitting_crange): Boolean guard moved to file scope from function
1988         scope in sh64_set_contents_type.
1989         (s_sh64_abi): New.
1990         (sh64_update_contents_mark): New; most split out from
1991         sh64_flush_pending_output.
1992         (shmedia_md_end): Call sh64_update_contents_mark.  Set
1993         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
1994         (sh64_do_align): New function.
1995         (sh64_max_mem_for_rs_align_code): New function.
1996         (sh64_handle_align): Rename from shmedia_do_align.  Make
1997         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
1998         four.  Change return-type to void.
1999         (shmedia_elf_new_section): Remove.
2000         (shmedia_md_assemble): Call sh64_update_contents_mark.
2001         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
2002         new frag.  Call sh64_update_contents_mark after making the new
2003         frag.
2004         (sh64_flush_pending_output): Just call sh64_update_contents_mark
2005         and sh_flush_pending_output.
2006         (sh64_flag_output): Also call md_flush_pending_output, but add
2007         condition on not emitting_crange.
2008         (sh64_tc_cons_fix_new): Remove.
2009         2001-01-12  Nick Clifton  <nickc@redhat.com>
2010         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
2011         alignment handling scheme imported from sourceware.
2012         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
2013         * config/tc-sh64.h (TARGET_FORMAT): Define.
2014         (sh64_target_format): Prototype.
2015         * config/tc-sh64.c (sh64_target_mach): New function.
2016         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
2017         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
2018         zero_address_frag instead of copying the frag of the symbol.
2019         (shmedia_frob_file_before_adjust): Ditto.
2020         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
2021         to valueT to remove signedness.
2022         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
2023         headers to output_bfd.  Do not evaluate symbols if final is false;
2024         do emit fixups.
2025         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
2026         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
2027         to the current frag, call shmedia_md_convert_frag to emit fixups
2028         and make frag_wane neutralize the frag.  Update comments.
2029         * config/tc-sh.c (md_convert_frag): Change caller of
2030         shmedia_md_convert_frag.
2031         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
2032         * config/tc-sh64.h: Tweak comments and correct formatting.
2033         * config/tc-sh64.c: Ditto.
2034         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
2035         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
2036         for the no-relocation case.
2037         (shmedia_check_limits): Fix range check being off-by-one for PTA.
2038         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
2039         wrappers.
2040         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
2041         comment.
2042         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
2043         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
2044         expansion.
2045         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
2046         Correct comment.
2047         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
2048         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
2049         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
2050         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
2051         al>: Set lowest bit of field to relocate to 1 and rest to empty,
2052         if reloc is emitted.
2053         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
2054         New options plus bugfixes.
2055         * config/tc-sh.c (md_longopts): New options "-no-expand" and
2056         "-expand-pt32".
2057         (md_parse_option): Handle new options.
2058         (md_show_usage): Add blurb for new options.
2059         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
2060         (sh64_expand, sh64_pt32): New variables.
2061         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
2062         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
2063         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
2064         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
2065         <resolved previously-pc-relative relocs>: Handle
2066         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
2067         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
2068         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
2069         points to SHcompact code.
2070         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
2071         SH64PCREL16)>: Check that ISA of what operand points at and
2072         PTA/PTB matches, or emit error.
2073         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
2074         SHMEDIA_BFD_RELOC_PT.
2075         (shmedia_immediate_op): If pcrel, emit fixup also for constant
2076         operand.
2077         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
2078         condition for MOVI expansion.
2079         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
2080         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
2081         sh64_expand.
2082         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
2083         fixup.
2084         (sh64_target_format): Error-check setting of sh64_pt32 and
2085         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
2086         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
2087         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
2088         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
2089         * config/tc-sh64.c: Improve comments.
2090         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
2091         not say the linker will check correctness of PTA/PTB expansion.
2092         (shmedia_md_end): Make non-static.
2093         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
2094         prototype.
2095         * config/tc-sh.c (sh_finalize): Remove.
2096         * config/tc-sh.h (md_end): Do not define.
2097         Remove prototype for sh_finalize.
2098         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2099         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
2100         sh64_section_data container when storing section type in tdata
2101         field in elf_section_data.
2102         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
2103         EF_SH5.
2104         * Makefile.am: Update dependencies.
2105         * Makefile.in: Regenerate.
2106         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
2107         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
2108         dwarf2_emit_insn call with test on debug_type.
2109         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
2110         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
2111         CRT_SH5_ISA32 sticky for 64-bit.
2112         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2113         Generate .crange sections when switching ISA mode or emitting
2114         constants in same section as code.
2115         * config/tc-sh64.c: Reformat structure definitions.
2116         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
2117         variables.
2118         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
2119         to emit a .cranges descriptor when contents type changes.  Only
2120         emit error if changing contents type and -no-mix is in effect.
2121         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
2122         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
2123         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
2124         sh64_flush_last_crange over sections.
2125         When checking main symbol of datalabel symbol, check for
2126         STO_SH5_ISA32, not ISA type of section in definition.
2127         (shmedia_frob_file_before_adjust): Check main symbol for
2128         STO_SH5_ISA32; don't check ISA type of section in definition.
2129         (shmedia_frob_section_type): Adjust for .cranges; set section flag
2130         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
2131         .cranges entries have been output.
2132         (shmedia_elf_new_section): Just call md_flush_pending_output.
2133         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
2134         fix.  Do not set tc_segment_info_data.in_code for section.  Call
2135         sh64_set_contents_type for SHmedia code.
2136         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
2137         false.  Call md_flush_pending_output.
2138         (sh64_target_format): Check that -no-mix and
2139         -shcompact-const-crange are used in sane combination with other
2140         options.
2141         (shmedia_md_pcrel_from_section): Check type of fix for how to
2142         adjust pc-relative.
2143         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
2144         not ISA type of section in definition.
2145         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
2146         hold contents-type state.
2147         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
2148         (sh64_flush_pending_output): Declare.
2149         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
2150         (sh64_tc_cons_fix_new): Declare.
2151         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
2152         call sh64_flag_output.
2153         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
2154         call sh64_set_contents_type to mark SHcompact code and set
2155         seen_insn.
2156         (md_longopts): New options "-no-mix" and
2157         "-shcompact-const-crange".
2158         (md_parse_option): Handle new options.
2159         (md_show_usage): Add blurb for new options.
2160         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
2161         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
2162         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
2163         (sh64_last_insn_frag): New.
2164         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
2165         to get frag for insn opcode for generating fixups; do not assume it
2166         is the same frag.
2167         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
2168         for new insn.
2169         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
2170         section.
2171         (TC_FRAG_TYPE): Define as fragS *.
2172         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
2173         (sh64_last_insn_frag): Declare.
2174         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
2175         not == NULL before dereferencing.
2176         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
2177         Get rid of BFD section flag and EF_SH64_ABI64.
2178         * config/tc-sh64.c (shmedia_frob_section_type): Use
2179         elf_section_data (sec)->tdata, not a specific BFD section flag, to
2180         communicate the section as containing SHmedia code.  Describe why.
2181         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
2182         EF_SH64 regardless of ABI.
2183         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
2184         in error message.  Handle resolved expressions for
2185         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2186         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
2187         (shmedia_check_limits): Handle BFD_RELOC_64.
2188         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
2189         a STO_SH5_ISA32 symbol, only the BFD value.
2190         2000-12-11  Ben Elliston  <bje@redhat.com>
2191         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
2192         dwarf2_generate_asm_lineno.
2193         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
2194         Handle PC-relative MOVI expansions with assembler relaxation.
2195         Generate PC-relative relocs from 16-bit PC-relative expressions.
2196         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
2197         (shmedia_md_pcrel_from_section): ...here.
2198         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
2199         turned completely resolved.  Adjust relocation type for 16-bit
2200         immediate operands that has turned PC-relative.  Adjust back for
2201         MD_PCREL_FROM_SECTION being applied twice.
2202         (shmedia_md_convert_frag): Always emit reloc for expression with
2203         global or weak symbol.  Handle relaxation result for PC-relative
2204         expressions.
2205         (shmedia_md_estimate_size_before_relax): An expression with a weak
2206         or global symbol can not be relaxed.  Break out tests for
2207         relaxable symbol into variable sym_relaxable.
2208         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
2209         UNDEF_MOVI)>: Break out any PC-relative expression and change
2210         relaxation type.
2211         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
2212         opjp.
2213         <case A_IMMS16>: Fix typo for initial minor relaxation type of
2214         MOVI expansion.  If X_op_symbol of the immediate expression is
2215         set, make an expression symbol for the argument to frag_var.
2216         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
2217         relaxations.
2218         (END): Adjust for new relaxations.
2219         (md_relax_table): Add entries for new relaxations.
2220         2000-12-07  Ben Elliston  <bje@redhat.com>
2221         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
2222         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
2223         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
2224         SHORI operand offsets in PT/PTA/PTB expansions.
2225         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
2226         Implement DataLabel semantics.
2227         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
2228         shmedia_frob_file_before_adjust.
2229         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
2230         (DATALABEL_SUFFIX): Define.
2231         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
2232         symbol list to update "datalabel" symbols to their main symbol
2233         counterparts.
2234         (shmedia_frob_file_before_adjust): New.
2235         (sh64_adjust_symtab): For remaining datalabel symbols, set to
2236         undefined and set STT_DATALABEL.
2237         (sh64_frob_label): Initialize TC symbol field.
2238         (sh64_consume_datalabel): Actually implement semantics.  New
2239         parameter operandf, call it instead of expression.
2240         (sh64_exclude_symbol): New.
2241         * config/tc-sh64.h (md_parse_name): Pass on the function operand
2242         to sh64_consume_datalabel.
2243         (tc_symbol_new_hook): Define to tc_frob_symbol.
2244         (TC_SYMFIELD_TYPE): Define to symbolS *.
2245         (tc_frob_symbol): Define to call sh64_exclude_symbol.
2246         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
2247         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
2248         case.
2249         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
2250         generating dwarf2 debug information.
2251         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2252         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
2253         elf64-sh64 for the 64-bit ABI.
2254         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
2255         option.
2256         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
2257         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
2258         case-insensitivity.
2259         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
2260         * config/tc-sh64.c: Tweak comments, formatting and error messages.
2261         (enum sh64_abi_values): New type.
2262         (enum sh64_isa_values): New type.
2263         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
2264         (seen_shcompact_mode, seen_shmedia_mode): Delete.
2265         (sh64_abi): Replace shmedia_64.
2266         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
2267         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
2268         (s_sh64_mode): Check validity for this target.
2269         (sh64_target_format): Initialize defaults for ISA and ABI.
2270         Fallback to old object format if no SH64 ISA or ABI has been
2271         specified.
2272         * config/tc-sh.c (md_parse_option): Check combinations for errors.
2273         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
2274         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
2275         * config/tc-sh64.h: Fix typo in comment.
2276         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
2277         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
2278         <PT fixups for absolute values>: Size will be longest, not
2279         shortest.
2280         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
2281         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
2282         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
2283         and l1 to hold lowercase of two first characters.  Change all
2284         remaining TO_LOWER to tolower.
2285         * config/tc-sh64.c (TO_LOWER): Delete.
2286         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
2287         (md_parse_name): Define.
2288         (sh64_consume_datalabel): Declare.
2289         (DOLLAR_DOT): Define.
2290         * config/tc-sh64.c (shmedia_parse_exp): New.
2291         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
2292         (shmedia_parse_reg): Remove const from src
2293         parameter.
2294         (shmedia_get_operands): Ditto for args parameter and ptr variable.
2295         (shmedia_md_assemble): Ditto for op_end variable.
2296         (shmedia_get_operand): Ditto for ptr parameter and src variable.
2297         Use shmedia_parse_exp, not parse_exp.
2298         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
2299         parameter.  All callers changed.
2300         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
2301         callers changed.
2302         (shmedia_parse_reg): Put first two character in local variables.
2303         Use tolower, not TO_LOWER.  If no register is found and argtype
2304         indicates a control register, scan shmedia_creg_table
2305         case-insensitive.
2306         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
2307         * Makefile.am (CPU_TYPES): Add sh64.
2308         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
2309         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
2310         Regenerate dependencies.
2311         * Makefile.in: Regenerate.
2312         * configure.in: Add support for sh64-*-elf*.
2313         * configure: Regenerate.
2314         * config/tc-sh64.h: New.
2315         * config/tc-sh64.c: New.
2316         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
2317         .mode, .isa and .uaquad.
2318         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
2319         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
2320         [HAVE_SH64] (END): Define as 10.
2321         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
2322         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
2323         MOVI_64): Define.
2324         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
2325         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
2326         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
2327         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
2328         Define.
2329         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
2330         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
2331         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
2332         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
2333         SHmedia instructions.  Handle state-change after switching to
2334         SHcompact.
2335         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
2336         (md_parse_option) [HAVE_SH64]: Parse new options.
2337         (md_show_usage) [HAVE_SH64]: Show usage of new options.
2338         (md_convert_frag) [HAVE_SH64] <default>: Call
2339         shmedia_md_convert_frag instead of abort.
2340         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
2341         BFD_RELOC_SH_SHMEDIA_CODE.
2342         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
2343         SHcompact or SHmedia code.
2344         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
2345         shmedia_md_apply_fix instead of abort.
2346         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
2347         result from calling shmedia_md_estimate_size_before_relax instead
2348         of calling abort.
2349         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
2350         do the work.
2351         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
2352         shmedia_init_reloc and do nothing more if it returns non-zero.
2353         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
2354         * po/POTFILES.in: Regenerate.
2355         * po/gas.pot: Regenerate.
2357 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
2359         * config/tc-sh.c (parse_at): Install the correct version of
2360         2002-02-04's patch.
2362         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
2363         assume fixP->fx_subsy is non-NULL.
2365 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
2367         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
2368         A_DISP_PC_ABS, and adjust it by -4.
2369         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
2370         expected.
2371         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
2372         the operand type is not A_DISP_PC_ABS.
2374 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
2376         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
2377         common and weak symbols.  Handle common and weak symbols as
2378         undefined symbols with regards to GREG handling and merging.
2379         (mmix_frob_file): Ditto.
2381 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
2383         * configure.in (hppa-*-netbsd*): New target.
2384         * configure: Regenerate.
2385         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
2387 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
2389         * config/tc-v850.c: Add missing prototypes amd use old-style
2390         function definitions.
2391         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
2392         (sdata_section tdata_section, zdata_section, sbss_section,
2393         tbss_section, zbss_section, rosdata_section, rozdata_section,
2394         scommon_section, tcommon_section, zcommon_section,
2395         call_table_data_section, call_table_text_section): Delete.
2396         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2397         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
2398         v850_call_table_data, v850_call_table_text): Delete.
2399         (struct v850_seg_entry): New.
2400         (v850_seg_table): New.
2401         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
2402         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
2403         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
2404         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
2405         (do_v850_seg): New.
2406         (v850_seg): New.
2407         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
2408         recording of alignment.
2409         (md_pseudo_table): Use v850_seg.
2410         (md_begin): Don't init .call_table_data and .call_table_text here.
2411         Set v850_seg_table bss entry.
2413 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
2415         Support on-demand global register allocation by passing on
2416         base-plus-offset relocs to the linker.
2417         * config/tc-mmix.c: Tweak and fix typos in comments.
2418         (allocate_undefined_gregs_in_linker): New variable.
2419         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
2420         (md_longopts): Add --linker-allocated-gregs.
2421         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
2422         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
2423         (md_show_usage): Update text for -x.  Add text for
2424         --linker-allocated-gregs.
2425         (tc_gen_reloc): Derive default value for addend from val and
2426         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
2427         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
2428         GREG if allocate_undefined_gregs_in_linker.
2429         * doc/as.texinfo (Overview) <Target MMIX options>: Add
2430         --linker-allocated-gregs.
2431         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
2432         --linker-allocated-gregs.  Mention that it's implied by -x.
2433         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
2434         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
2436         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
2438 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
2440         * Makefile.am: Run "make dep-am"
2441         * Makefile.in: Regenerate.
2443 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
2445         * config/tc-or32.c: New file.
2446         * config/tc-or32.h: New file.
2447         * configure.in: Add support for or32 targets.
2448         * configure: Regenerate.
2449         * config/obj-coff.c: Add support for or32 targets.
2450         * config/obj-coff.h: Add support for or32 targets.
2451         * Makefile.am: Add support for or32 targets.
2452         * Makefile.in: Regenerate.
2453         * NEWS: Mention support for OpenRISC.
2454         * doc/Makefile.in: Regenerate.
2455         * po/POTFILES.in: Regenerate.
2456         * po/gas.pot: Regenerate.
2458 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
2460         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
2461         and mod.
2463 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
2465         * config/tc-mips.c (tc_gen_reloc): Arrange for
2466         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
2467         their LO16 parts, even for ELF.
2469 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
2471         * config/tc-i386.c: Protect definitions of true and false
2472         from redefinition.
2474 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
2476         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
2477         made because of .weak, if they are neither defined nor used in any
2478         way.
2480 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
2482         * configure: Regenerated.
2484 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
2486         * doc/Makefile.am (install): Depend on install-info.
2487         * doc/Makefile.in: Regenerate.
2489 2002-01-26  Nick Clifton <nick@redhat.com>
2491         * po/fr.po: Updated version
2493 2002-01-24  Kazu Hirata  <kazu@hxi.com>
2495         * config/tc-h8300.c (check_operand): Don't print a warning
2496         when a valid 24-bit address is given to a 16-bit address
2497         operand.
2499 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2501         * config/tc-sh.c (sh_elf_suffix): Removed.
2502         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
2503         sh_end_of_match, sh_parse_name): New functions.
2504         (sh_elf_cons): Simplify.
2505         (parse_exp): Reject misplaced PIC operands.
2506         (md_undefined_symbol): Simplify.
2507         (sh_fix_adjustable): Let @GOTOFF be adjusted.
2508         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
2509         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
2510         Complain if subsy remains at the end.
2511         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
2512         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
2514 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
2516         * config/tc-mn10300.c (xr_registers): Move `pc'...
2517         (other_registers): ... here.
2519 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
2521         * Makefile.am: Run "make dep-am".
2522         * Makefile.in: Regenerate.
2523         * gas/po/POTFILES.in: Regenerate.
2525 2002-01-21  DJ Delorie  <dj@redhat.com>
2527         * config/obj-coff.c (obj_coff_init_stab_section): Make the
2528         stabstr_name allocation permanent, as it will be referenced from
2529         the section hash.
2531 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
2533         * configure.in (ia64-*-netbsd*): New target.
2534         * configure: Regenerate.
2536 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
2538         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
2539         to @dots call.
2540         <Detailed description, ARM options>: Ditto.
2541         * doc/c-arm.texi (ARM Options): Ditto.
2543 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2545         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
2546         do_mia, do_mar and do_mra respectively.
2547         (do_mav_*): Renamed from do_c_*.
2548         (mav_reg_required_here, mav_parse_offset): Renamed from
2549         cirrus_reg_required_here and cirrus_parse_offset respectively.
2550         (MAV_MODE?): Renamed from CIRRUS_MODE?.
2552 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2553             Keith Walker  <keith.walker@arm.com>
2555         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
2556         (insns): Add pattern for bxj instruction.
2557         (do_bxj): New function.
2558         (arm_cpus): Add arm926ej.
2559         (arm_archs): Add armv5tej.
2561 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2563         * doc/c-arm.texi: Add new fpe options to list of supported flags.
2565 2002-01-19  Keith Walker  <keith.walker@arm.com>
2567         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
2569 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
2571         * NEWS: Mention new ARM command-line options and VFP support.
2573         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
2574         uses changed.
2575         (ARM_CEXT_MAVERICK): Similarly.
2576         (ARM_ANY): Now means any core instruction.
2577         (CPU_DEFAULT): Default to ARM_ANY.
2578         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
2579         (pic_code): Declare for all object types.  Make type int.
2580         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
2581         (march_fpu_opt, mfpu_opt): Declare.
2582         (md_longopts): Tidy up conditional definitions.
2583         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
2584         (arm_long_opts): New tables.
2585         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
2586         (arm_parse_extension): New function.
2587         (md_parse_option): Rewrite using new table-driven system.
2588         (md_show_usage): Use new table-driven system.
2589         (md_begin): Calculate cpu_variant from command line option data.
2590         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
2591         command-line options.
2592         * doc/c-arm.texi: Likewise.
2594 2002-01-18  Andreas Jaeger  <aj@suse.de>
2596         * as.c (parse_args): Update year.
2598 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
2600         * config/tc-tic54x.c (encode_address): Add a more informative
2601         warning about incorrect syntax.
2603 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2605         * po/gas.pot: Regenerate.
2607 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2609         * macro.c (get_any_string): Add no-c-format comment to prevent
2610         confusion when translating string.
2611         * gasp.c (get_any_string): Add no-c-format comment to prevent
2612         confusion when translating string.
2614 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2615             Johannes Stezenbach <js@convergence.de>
2616         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
2617         matched before the shorter ones.
2618         (my_getSmallParser): Fix handling of nested parentheses in
2619         percent_op's. Code cleanup.
2620         (my_getPercentOp): New function, code from my_getSmallParser.
2621         (my_getSmallExpression): Fix handling of closing parentheses.
2622         Code cleanup. Better comments.
2624 2002-01-16  Nick Clifton <nickc@redhat.com>
2626         po/tr.po: New file: Turkish translation.
2627         configure.in (LINGUAS): Add "tr".
2628         configure: Regenerate.
2630 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
2632         Support for VFP instructions
2633         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
2634         (cp_address_required_here): New argument wb_ok.  When false, do not
2635         accept write-back forms of addressing.  Change all callers.
2636         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
2637         (FPU_VFP_EXT_V2): Define.
2638         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
2639         Define in terms of above.
2640         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
2641         (vfp_reg): New struct.
2642         (vfp_regs): New array of registers.
2643         (insns): Add VFP instructions.
2644         (sn_table): New array of VFP single-precision register names.
2645         (dn_table): New array of VFP double-precision register names.
2646         (all_reg_maps): Add the new register tables.
2647         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
2648         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
2649         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
2650         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
2651         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
2652         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
2653         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
2654         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
2655         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
2656         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
2657         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
2658         (do_vfp_sp_dp_cvt): New functions.
2659         (md_begin): Set soft-float flag for appropriate VFP work.
2660         (md_atof): Handle VFP-format doubles.
2661         (md_parse_option): Handle VFP command-line options.
2662         (md_show_usage): Display VFP command-line options.
2664 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
2666         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
2667         various command line options.
2669 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
2671         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
2672         vtinherit relocs.
2673         (xstormy16_md_apply_fix3): Do not return a value.
2675 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2677         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
2678         the -EL/-EB option that matches the target's endianness.
2679         (md_parse_option): Likewise.
2681 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2683         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
2684         is not dependent on ARM_BI_ENDIAN.
2686 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
2688         * tc-arm.c (all error messages): Normalize capitalization of messages.
2690         * tc-arm.h (md_operand): Delete define.
2691         * tc-arm.c (in_my_get_expression): New static variable.
2692         (my_get_expression): Set and clear it.
2693         (md_operand): New function.  If called from my_get_expression
2694         put the error in inst.error.
2695         (output_inst): Now takes argument of instruction being assembled.
2696         Print it out with any error message.
2697         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2698         with '=' syntax.
2699         (end_of_line): Don't update inst.error if it is already set.
2701 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
2703         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
2704         op that can be translated into a mvn instruction.
2706 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
2708         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2709         setting default md.flags.
2710         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2711         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2712         * gas/config/tc-ia64.c (setup_unwind_header): Add support
2713         for 32 bit unwind info blocks.
2714         (generate_unwind_image): Add support for different types
2715         of unwind images (32 bits and/or big-endian).
2716         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2717         (ia64_target_format): Add support for hpux target formats.
2718         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2719         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2720         SHT_FINI_ARRAY elf section types.
2722 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
2724         * tc-arm.c (struct reg_entry): Move before prototypes.
2725         (int_register, cp_register, fp_register): Delete.
2726         (reg_table): Delete.  Replaced with ...
2727         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2728         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2729         (mav_dspsc_table): ... one table per register set.
2730         (arm_reg_hsh): Delete.
2731         (struct reg_map): New structure.
2732         (all_reg_maps): New array.
2733         (enum arm_reg_type): New enums.
2734         (build_reg_hsh): New function.
2735         (insert_reg_alias): Use hash table passed by caller.  Adjust all
2736         callers.
2737         (create_register_alias): New function, split out from ...
2738         (md_assemble): ... here.
2739         (md_begin): Build new register hash tables.
2740         (arm_reg_parse): New argument for the hash table to search.  Adjust all
2741         callers.
2742         (arm_reg_parse_any): New function.
2743         (co_proc_number): Look up the processor number in the processor hash
2744         table.
2745         (cirrus_regtype): Delete.
2746         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2747         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2748         (ARM_EXT_MAVERICKsc_register): Delete.
2749         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2750         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2751         functions.
2752         (do_c_triple_4, do_c_triple_5): Delete.
2753         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2754         (do_c_quad_6): Delete.
2755         (do_c_quad_6[ab]): New functions.
2756         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2757         arguments to use new register parsing methods.
2758         (cirrus_reg_required_here): Likewise.
2759         (insns): Reclassify cirrus maverick worker functions.
2760         (cirrus_valid_reg): Delete.
2762 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
2764         * configure.in (sh*le): Set cpu_type=sh and endian=little.
2765         (sh*-*-netbsdelf*): New target.
2766         * configure: Regenerate.
2767         * tc-sh.h: Update copyright years.
2768         (TARGET_FORMAT): Add version for TE_NetBSD.
2770 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
2772         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2773         negative.
2775 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
2777         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2778         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2780 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
2782         * tc-mips.c (mips_cprestore_valid): New flag.
2783         (mips_frame_reg_valid): New flag.
2784         (macro) [M_JAL_2]: Check both flags.
2785         [M_JAL_A]: Likewise.
2786         (s_cprestore): Set mips_cprestore_valid.
2787         (tc_get_register): If setting mips_frame_reg, set
2788         mips_frame_reg_valid and clear mips_cprestore_valid.
2789         (s_mips_ent): Clear both flags.
2790         (s_mips_end): Clear both flags.
2792 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
2794         * write.c (write_object_file): Make use of bfd_section_list_remove.
2795         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2796         * config/tc-mmix.c (mmix_frob_file): Likewise.
2798 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2800         * configure.in (i386-*-netbsdelf*): Collapse target into...
2801         (i386-*-netbsd*): ...this.  Add support for x86-64.
2802         * configure: Regenerated.
2804 2002-01-03  matthew green  <mrg@redhat.com>
2806         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2808 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
2810         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2811         NULL frag link.
2813 For older changes see ChangeLog-0001
2815 Local Variables:
2816 mode: change-log
2817 left-margin: 8
2818 fill-column: 74
2819 version-control: never
2820 End: