2003-11-11 Jan Hubicka <jh@suse.cz>
[binutils.git] / gas / ChangeLog
blob3a478ffeaaced7c51bcb656e6475e9b9132052b5
1 2003-11-11  Jan Hubicka  <jh@suse.cz>
3         * config/tc-i386.c (tc_i386_fix_adjustable):
5 2003-11-10  Alan Modra  <amodra@bigpond.net.au>
7         * config/tc-ia64.c (ia64_handle_align): Remove bogus be_nop.
9 2003-11-10  Alan Modra  <amodra@bigpond.net.au>
11         * README: Update bug report address.  Move bug reporting info to
12         binutils/README.
14 2003-11-07  Christian Groessler  <chris@groessler.org>
16         * doc/c-z8k.texi: Document command-line options.  Fix byte
17         register names.  Document '.z8001' and '.z8002' directives.
18         Extend addressing modes documentation.
20 2003-11-07  Jonathan R. Grant  <jg-binutils@jguk.org>
22         * input-file.c (input_file_open): Use "No such file" error
23         message.
25 2003-11-06  Pete Gonzalez  <pgonzalez@bluel.com>
27         * config/tc-arm.texi (struct reg_entry): Add new field 'builtin'.
28         (rn_table, iwmmxt_table, cp_table, cn_table, fn_table, sn_table,
29         dn_table, mav_mvf_table, mac_mvd_table, mav_mvfx_table,
30         mav_mvax_table, mav_dspc_table): Initialise new field.
31         (insert_reg_alias): Initialise new field.
32         (md_pseudo_table): Add "unreq" entry.
33         (s_unreq): New function: Undo the effects of a previous .req.
34         * doc/c-arm.texi: Document new pseudo op.
35         * NEWS: Mention new feature.
37 2003-11-06  Bruno Rohee  <bruno@rohee.com>
39         * config/obj-vms.c: Fix "the the" typo.
40         * doc/c-arm.texi: Likewise.
42 2003-11-06  Nick Clifton  <nickc@redhat.com>
44         * config/obj-vms.c: Convert to ISO-C.
46 2003-11-05  Alan Modra  <amodra@bigpond.net.au>
48         * config/tc-ppc.h (TC_FORCE_RELOCATION): Only define for ELF and XCOFF.
50 2003-10-31  Christian Groessler  <chris@groessler.org>
52         * config/tc-i860.c (md_pcrel_from): Fix typo in comment.
54 2003-10-29  Phil Edwards  <phil@codesourcery.com>
56         * configure.in (arm-*-vxworks, i386-*-vxworks, mips-*-vxworks,
57         ppc-*-vxworks, ppc-*-windiss):  Remove separate outdated stanzas.
58         (*-*-vxworks, *-*-windiss):  Use common stanzas, all ELF.
59         * configure:  Regenerated.
61 2003-10-27  Kazu Hirata  <kazu@cs.umass.edu>
63         * ChangeLog: Fix typos.
64         * ChangeLog-9295: Likewise.
65         * as.c: Fix comment typos.
66         * as.h: Likewise.
67         * atof-generic.c: Likewise.
68         * bit_fix.h: Likewise.
69         * frags.h: Likewise.
70         * hash.c: Likewise.
71         * input-file.c: Likewise.
72         * input-scrub.c: Likewise.
73         * itbl-ops.c: Likewise.
74         * itbl-parse.y: Likewise.
75         * listing.c: Likewise.
76         * macro.h: Likewise.
77         * read.c: Likewise.
78         * sb.c: Likewise.
79         * sb.h: Likewise.
80         * symbols.c: Likewise.
81         * symbols.h: Likewise.
83 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
85         * config/tc-m68hc11.c: Convert to ISO C90.
86         * config/tc-m68hc11.h: Likewise.
88 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
90         * doc/c-sh64.texi: Fix a typo.
92 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
94         * doc/c-alpha.texi: Fix typos.
95         * doc/c-ia64.texi: Likewise.
96         * doc/c-mmix.texi: Likewise.
97         * doc/c-sh64.texi: Likewise.
98         * doc/c-xtensa.texi: Likewise.
99         * doc/internals.texi: Likewise.
101 2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
103         * config/obj-elf.c (obj_elf_change_section): Allow SHF_ALLOC
104         for .interp, .strtab and .symtab. Use specified section
105         attributes.
107 2003-10-22  Andreas Schwab  <schwab@suse.de>
108             H.J. Lu  <hongjiu.lu@intel.com>
109             Jim Wilson <wilson@specifixinc.com>
111         * config/tc-ia64.c (update_qp_mutex): New.
112         (note_register_values): Properly handle one of PRs in compare
113         is PR0. Don't add a mutex relation for .and.orcm/.or.andcm.
114         Clear mutex relation for .none/.unc. Don't clear mutex relation
115         on predicated compare.
117 2003-10-21  Wouter van Heyst <wouter@vidicode.nl>
119         * config/tc-arm.c (all_reg_maps): Correct text describing Maverick
120         register requirements.
121         (md_begin): Remove F_SOFT_FLOAT if enabling MAVERICK FP.
123 2003-10-21  Peter Barada  <pbarada@mail.wm.sps.mot.com>
124             Bernardo Innocenti  <bernie@develer.com>
126         * config/tc-m68k.c: Add MCF528x (MCFv4) support.
127         * config/m68k-parse.h: Likewise.
128         * NEWS: Mention the new support.
129         * doc/c-m68k.texi: Document new processor selection switch.
131 2003-10-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
133         * config/tc-mips.c (normalize_constant_expr): New function to fix sign
134         extensions broken by gas' expression evaluation of constants.
135         (check_absolute_expr): Use it.
136         (mips_ip): Likewise.
138 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
140         Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
141         * doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
142         --no-stubs.
143         * config/tc-mmix.c: Include limits.h.  Expand on mmix_relax_table
144         comment.
145         (expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
146         (pushj_stubs): New variable.
147         (OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
148         (PUSHJSTUB_MAX): New macros.
149         (md_longopts): New options "--no-pushj-stubs" and synonym
150         "--no-stubs".
151         (mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
152         (md_parse_option): Handle OPTION_NOPUSHJSTUBS.
153         (md_estimate_size_before_relax): Modify STATE_PUSHJ state for
154         PUSHJ stub relaxation.
155         (md_convert_frag): Handle STATE_PUSHJSTUB.
156         (md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
157         (tc_gen_reloc): Ditto.
158         (mmix_md_relax_frag): Handle PUSHJ stub relaxation.
159         * config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
160         (struct mmix_segment_info_type): New.
162 2003-10-17  Paul Dale  <pauli@snapgear.com>
163             Bernardo Innocenti  <bernie@develer.com>
165         * config/tc-m68k.c (make_pcrel_absolute): Enforce
166         PC-relative jumps with --pcrel.
167         (md_convert_frag_1): Likewise.
168         (md_create_long_jump): Likewise.
170 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
172         * config/tc-h8300.c (PSIZE): Correct for Normal mode.
173         (get_operand): Accept both 16 bit 32 bit registers as pointer
174         registers, when operating in Normal mode.
175         (fix_operand_size): Make default address size 16 for Normal mode.
177 2003-10-17  Ian Lance Taylor  <ian@wasabisystems.com>
179         * config/tc-arm.c (do_iwmmxt_byte_addr): Reject control
180         registers.
181         (do_iwmmxt_word_addr): With a control register, reject conditional
182         execution and reject a non-word size.
184 2003-10-16  Peter Bergner  <bergner@vnet.ibm.com>
186         * configure.in: Set em=linux for ppc-*-linux-gnu* target.
187         * configure: Regenerate.
189 2003-10-15  Alan Modra  <amodra@bigpond.net.au>
191         * doc/as.texinfo (Align): Correct list of byte targets.
193 2003-10-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
195         * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
196         Fix indentation. Better error message.
198 2003-10-14  Bob Wilson  <bob.wilson@acm.org>
200         * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
201         argument in call to xtensa_get_property_section_name.  Formatting.
203 2003-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
205         * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
206         parenthesis.
208 2003-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
210         * config/tc-sh.c: Convert to ISO C90.  Remove unnecessary
211         prototypes and casts.
212         * config/tc-sh.h: Likewise.
213         * config/tc-sh64.c: Likewise.
214         * config/tc-sh64.h: Likewise.
216 2003-10-08  Dave Brolley  <brolley@redhat.com>
218         * config/tc-frv.c (fr550_check_insn_acc_range): New function.
219         (fr550_check_acc_range): New function.
220         (md_assemble): Call fr550_check_acc_range.
222 2003-10-08  Dave Brolley  <brolley@redhat.com>
224         * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
225         (md_parse_option): Handle OPTION_CPU==fr550.
226         (md_show_usage): Document fr550.
228 2003-10-08  Philippe De Muyter  <phdm@macqel.be>
230         * as.c (use_gnu_debug_info_extensions) : New variable.
231         (parse_args) : Accept new --gstabs+ option, and set
232         `use_gnu_debug_info_extensions'.
233         (show_usage) : Document --gstabs+ option.
234         * as.h (use_gnu_debug_info_extensions) : New extern declaration.
235         * stabs.c (stabs_generate_asm_file) : If
236         `use_gnu_debug_info_extensions' is set, add the compilation
237         directory to the stabs debug info.
238         * doc/as.texinfo : Document --gstabs+ option.
239         * NEWS: Mention new feature.
241 2003-10-06  Matt Thomas  <matt@3am-software.com>
243         Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
244         assembler syntax.
246         * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
247         register names.  Change all "defined (TE_LINUX)" to
248         "(defined (TE_LINUX) || defined (TE_NETBSD))".
250         * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
251         Remove NetBSD's use of LABELS_WITHOUT_COLONS.
253 2003-10-06  Robert Millan  <robertmh@gnu.org>
255         * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
256         * configure: Regenerate.
258 2003-10-05  Nick Clifton  <nickc@redhat.com>
260         * as.c (parse_args): Revert patch to change handling of -f
261         option.  Its behaviour is mandated by the POSIX 2 spec.
263 2003-10-04  Christian Groessler  <chris@groessler.org>
265         * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
266         (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
267         (md_pcrel_from): This function now gets called. Supply return
268         value.
270 2003-10-04  Nick Clifton  <nickc@redhat.com>
272         * as.c: Convert to ISO C90.
274 2003-10-04  Nick Clifton  <nickc@redhat.com>
276         * as.c (std_shortopts): Remove 'f'.
277         (std_longopts): Add 'f'.  Doing this prevents -f<foo> being
278         acecpted as an alias for -f.
280 2003-10-04  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
282         * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
283         Make 'r' mean readonly data.
285 2003-10-01  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
287         * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
288         Unbreak overflow checks.
290 2003-10-01  Chris Demetriou  <cgd@broadcom.com>
292         * config/tc-mips.c (s_cpreturn): Correct errors in comment.
294 2003-10-01  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
296         * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
297         tests.
298         (load_register): Likewise.
299         (macro): Likewise.
301 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
303         * config/tc-mips.c (mips_ip): Capitalize first word of
304         existing condition code warning, and add condition code
305         warnings for .ps instructions, and for bc1any[24][tf].
307 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
309         * NEWS: Mention support for MIPS64 Release 2.
311 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
313         * NEWS: Add an indication of the cutoff for 2.14.
315 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
317         * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
318         * configure: Regenerate.
319         * config/tc-mips.c (imm2_expr): New variable.
320         (md_assemble, mips16_ip): Initialize imm2_expr.
321         (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
322         (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
323         (macro): Handle M_DEXT and M_DINS.
324         (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
325         (mips_ip): Likewise.
326         (OPTION_MIPS64R2): New define.
327         (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
328         OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
329         (md_parse_option): Handle OPTION_MIPS64R2.
330         (s_mipsset): Handle setting "mips64r2" ISA.
331         (mips_cpu_info_table): Add mips64r2.
332         (md_show_usage): Document -mips64r2 option.
333         * doc/as.texinfo: Docuemnt -mips64r2 option.
334         * doc/c-mips.texi: Likewise.
336 2003-09-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
338         * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
340 2003-09-26  Matt Thomas  <matt@3am-software.com>
342         * config/tc-vax.c (md_shortopts): Fix a typo.  Remove 'K'.
343         (OPTION_PIC): Define.
344         (md_longopts): Add "pic" option.
345         (md_parse_option): Change 'K' to OPTION_PIC.
347 2003-09-23  Alan Modra  <alan@modra.org>
349         * config/obj-elf.c (obj_elf_change_section): Adjust for
350         _bfd_elf_get_sec_type_attr changes.  Allow SHF_MERGE and SHF_STRINGS
351         to be set when defaults are not.  Don't set attr from defaults if
352         old_sec.
354 2003-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
356         * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
357         truncate values which won't fit im 32 bits.
358         (load_register): Likewise.
359         (macro): Likewise.
361 2003-09-17  Dmitry Diky <diwil@mail.ru>
363         * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
364         (msp430_operands): Remove redundant l2[16] within switch-case.
366 2003-09-16  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
368         * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
369         * configure: Regenerate.
371 2003-09-14  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
373         * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
374         (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
375         the function prototype.
376         (load_register): Likewise. Simplify the checks for sign-extended
377         constants.
378         (macro): Likewise. Fix code generation for 64-bit address constants
379         outside the 32-bit compatibility space. Adjust
380         macro_build_ldst_constoffset calls.
381         (s_cprestore): Adjust macro_build_ldst_constoffset call.
383 2003-09-11  Bob Wilson  <bob.wilson@acm.org>
385         * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
386         literal_syms): New global variables.
387         (xtensa_define_label, add_target_symbol, xtensa_find_label,
388         map_over_defined_symbols, is_loop_target_label,
389         xtensa_mark_target_fragments, xtensa_move_frag_symbol,
390         xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
391         (xtensa_begin_directive): Call md_flush_pending_output.  Move symbols
392         from insn_labels to saved_insn_labels when entering a literal region.
393         (xtensa_end_directive): Call md_flush_pending_output.  Restore
394         insn_labels list when leaving a literal region.
395         (xtensa_literal_position): Call xtensa_clear_insn_labels.
396         (xtensa_literal_pseudo): Add check to disallow .literal inside a
397         literal region.  Move insn_labels to saved_insn_labels and then restore
398         insn_labels on exit.
399         (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
400         code to set is_loop_target or is_branch_target flag on the symbol
401         (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
402         (xtensa_add_literal_sym, xtensa_add_insn_label,
403         xtensa_clear_insn_labels): New functions.
404         (xtensa_move_labels): Remove old_frag and old_offset arguments.  Add
405         loops_ok argument.  Rewrite to use insn_labels list instead of
406         calling xtensa_find_label and to check the is_loop_target flag on
407         symbols when loops_ok is false.
408         (xtensa_frob_label): Remove call to xtensa_define_label.  Add call
409         to either xtensa_add_literal_sym or xtensa_add_insn_label.  Adjust
410         call to xtensa_move_labels.  Propagate is_branch_target and
411         is_loop_target flags from symbols to frags.
412         (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
413         (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
414         aligning a loop instruction.  Adjust call to xtensa_move_labels for
415         aligning entry instructions.  Add call to xtensa_clear_insn_labels.
416         (xtensa_end): Remove call to xtensa_mark_target_fragments.
417         (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
418         code to use new literal_syms list.
419         * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
420         is_branch_target flags.
422 2003-09-09  Bob Wilson  <bob.wilson@acm.org>
424         * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
425         "move_labels" argument and corresponding call to xtensa_move_labels.
426         (md_assemble): Add a separate call to xtensa_move_labels and remove
427         argument for call to xtensa_mark_literal_pool_location.
428         (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
429         calls to xtensa_mark_literal_pool_location.
430         (xtensa_create_local_symbol): Delete and inline the code into...
431         (xtensa_create_literal_symbol): ...here.
432         (xtensa_frob_label): Combine conditionals.
433         (expression_maybe_register, xtensa_symbol_new_hook,
434         fix_new_exp_in_seg): Use symbol_get_tc.
436 2003-09-09  Bob Wilson  <bob.wilson@acm.org>
438         * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
439         combining identical literals.
440         (expression_maybe_register): Remove call to find_lit_sym_translation.
441         (is_duplicate_expression, cache_literal, is_duplicate_literal,
442         add_lit_sym_translation, find_lit_sym_translation): Delete.
444 2003-09-07  Nick Clifton  <nickc@redhat.com>
446         * doc/as.texinfo (Comments): Comment character for PPC is #.
448 2003-09-06  Stephane Carrez  <stcarrez@nerim.fr>
450         PR savannah/4358:
451         * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
452         overflow complain.
454 2003-09-05  Richard Sandiford  <rsandifo@redhat.com>
456         * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
458 2003-09-04  Nick Clifton  <nickc@redhat.com>
460         * config/tc-v850.c (set_machine): Accept v850e1 machine number.
461         (md_pseudo_table): Add .v850e1 pseudo op.
462         (md_show_usage): Document -mv850e1 switch.
463         (md_parse_option): Accept -mv850e1 switch.
464         (md_begin): Allow TARGET_CPU to be v850e1.
465         * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
466         * NEWS: Mention support for v850e1.
468 2003-09-04  Alan Modra  <amodra@bigpond.net.au>
470         * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
471         ppc_cpu selection rather than replacing.
472         (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
473         (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
475 2003-09-03  Robert Millan  <robertmh@gnu.org>
477         * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
478         triplet.
479         * configure: Regenerate.
481 2003-09-02  Daniel Jacobowitz  <drow@mvista.com>
483         * configure.in: Update AC_PREREQ to 2.57.  Use AC_CONFIG_FILES
484         and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
485         Specify AC_CONFIG_AUX_DIR.
486         * aclocal.m4: Regenerated with aclocal-1.7.
487         * configure: Regenerated with autoconf 2.57.
488         * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
490 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
492         * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
493         (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
494         (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
495         nor tc_cfi_emit_pcrel_expr are defined.
496         (output_fde): Use tc_cfi_emit_pcrel_expr if available and
497         DIFF_EXPR_OK is not defined.
498         * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
499         (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
500         tc_cfi_emit_pcrel_expr): Define.
501         (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
502         sparc_cfi_emit_pcrel_expr): New prototypes.
503         (sparc_cie_data_alignment): New decl.
504         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
505         * config/tc-sparc.c: Include dw2gencfi.h.
506         (sparc_cie_data_alignment): New variable.
507         (md_begin): Initialize it.
508         (sparc_cfi_frame_initial_instructions): New function.
509         (sparc_regname_to_dw2regnum): Likewise.
510         (sparc_cfi_emit_pcrel_expr): Likewise.
511         * doc/as.texinfo: Document .cfi_window_save.
513         * config/tc-sparc.c (s_common): Cast last argument to long and
514         change format string to shut up warning.
516 2003-08-25  Jason Eckhardt  <jle@rice.edu>
518         * doc/c-i860.texi: Update text about relocatable address expansions.
520 2003-08-24  Jason Eckhardt  <jle@rice.edu>
522         * config/tc-i860.c (md_assemble): Use isrc2 from the original
523         instruction when expanding E_ADDR.
525 2003-08-21  Nick Clifton  <nickc@redhat.com>
527         * po/tr.po: Updated Turkish translation.
529 2003-08-20  Alan Modra  <amodra@bigpond.net.au>
531         * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
532         PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
534 2003-08-19  Nick Clifton  <nickc@redhat.com>
536         * config/tc-arm.c (cp_address_required_here): Add code to handle
537         unindexed addressing mode.
539 2003-08-19  Alan Modra  <amodra@bigpond.net.au>
541         * config/tc-ppc.c (md_parse_option): Handle -m440.
542         (md_show_usage): Add -m440.
543         (md_apply_fix3): Warning fix.
544         * doc/c-ppc.texi: Document -m440.
546 2003-08-16  Benjamin Kalytta  <bkausbk@web.de>
548         * read.c (s_print): Check for NULL.
550 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
552         * write.c (fixup_segment): When handling an expression involving
553         the subtraction of two symbols in the same segment, don't clear
554         fx_pcrel except for TC_M68K.
556 2003-08-14  Alan Modra  <amodra@bigpond.net.au>
558         * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
559         code.
560         * config/tc-i386.c: Likewise.
561         (RELOC_ENUM): Don't define.  Replace throughout with enum.
563         * dep-in.sed: Remove libintl.h.  Ignore include/fopen-*.h
564         * Makefile.am (POTFILES.in): Unset LC_COLLATE.
565         Run "make dep-am".
566         * Makefile.in: Regenerate.
568 2003-08-08  Andreas Schwab  <schwab@suse.de>
570         * config/tc-m68k.h (TARGET_USE_CFIPOP)
571         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
572         (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
573         Define.
574         * config/tc-m68k.c: Include "dw2gencfi.h".
575         (tc_m68k_regname_to_dw2regnum)
576         (tc_m68k_frame_initial_instructions): New functions.
578 2003-08-08 Dmitry Diky <diwil@mail.ru>
580         * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
581         according to gcc order.
583 2003-08-07  Jason Eckhardt  <jle@rice.edu>
585         * config/tc-i860.c (i860_check_label): New function.
586         * config/tc-i860.h (i860_check_label): New prototype.
587         (tc_check_label): Define macro as i860_check_label.
589 2003-08-06  Jason Eckhardt  <jle@rice.edu>
591         * config/tc-i860.c (s_align_wrapper): New function and prototype.
592         (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
593         surrounding OBJ_ELF ifdef, and re-format slightly.
594         * doc/c-i860.texi: Document the special .align syntax available
595         in Intel mode.
597 2003-08-06  Jason Eckhardt  <jle@rice.edu>
599         * config/tc-i860.c (i860_handle_align): New function.
600         * config/tc-i860.h (HANDLE_ALIGN): Define macro.
601         (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
603 2003-08-06  Jason Eckhardt  <jle@rice.edu>
605         * config/tc-i860.c (i860_process_insn): Check that instructions
606         with their dual-bit set are 8-byte aligned.
608 2003-08-06  Nick Clifton  <nickc@redhat.com>
610         * po/fr.po: Updated French translation.
612 2003-08-05  Jason Eckhardt  <jle@rice.edu>
614         * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
615         setting during flop argument parsing.  Instead, do it after
616         instruction is fully parsed.
618 2003-08-05  Jason Eckhardt  <jle@rice.edu>
620         * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
621         directives are only available in Intel syntax mode.
623 2003-08-05  Jason Eckhardt  <jle@rice.edu>
625         * config/tc-i860.c (s_dual): Accept .dual directive only in
626         the Intel syntax mode.
627         (s_enddual): Likewise for .enddual.
628         (s_atmp): Likewise for .atmp.
630 2003-08-04  Alan Modra  <amodra@bigpond.net.au>
632         * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
633         for memory operands.  Pass the full operand_string to i386_index_check.
635 2003-08-01  Jason Eckhardt  <jle@rice.edu>
637         * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
638         (target_intel_syntax): Declare variable.
639         (OPTION_INTEL_SYNTAX): Declare macro.
640         (md_longopts): Add option -mintel-syntax.
641         (md_parse_option): Set target_intel_syntax.
642         (md_show_usage): Add -mintel-syntax usage.
643         (md_begin): Set reg_prefix based on target_intel_syntax.
644         (i860_process_insn): Skip register prefix only if there is one.
645         Parse relocatable expressions in either Intel or AT&T syntax based
646         on target_intel_syntax instead of the SYNTAX_SVR4 macro.
647         * doc/c-i860.texi: Document -mintel-syntax option and give blurb
648         about the differences in syntax.
650 2003-08-01  Dmitry Diky  <diwil@mail.ru>
652         * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
653         to all arches.
655 2003-07-30  J"orn Rennecke <joern.rennecke@superh.com>
657         * config/tc-sh.c (md_assemble): For branches, check & update
658         valid_arch here.
660 2003-07-30  Jason Eckhardt  <jle@rice.edu>
662         * config/tc-i860.c: Convert to ISO C90.
664 2003-07-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
666         * read.c (s_space): Revert 2003-07-28 change.
668 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
670         * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
672 2003-07-29  Alan Modra  <amodra@bigpond.net.au>
674         * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
676 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
678         * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
680 2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>
682         * config/obj-elf.c (obj_elf_section_type): Also accept "note".
684 2003-07-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
686         * read.c (s_space): Don't warn about .space 0.
688 2003-07-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
690         * config/tc-mips.c (mips_flag_pdr): Define.
691         (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
692         (s_mips_end) [OBJ_ELF]: Likewise.
693         (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
694         (md_parse_option) [OBJ_ELF]: Handle them.
695         (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
697         * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
698         * doc/as.texinfo (Overview) [MIPS]: Likewise.
700 2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
702         * config/obj-elf.c (obj_elf_change_section): Update
703         elf_section_type and elf_section_flags only when they are
704         specified.
706 2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
708         * config/obj-elf.c (obj_elf_change_section): Always set section
709         type and flags.
711 2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
713         * config/obj-elf.c (special_sections): Removed.
714         (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
715         elf_section_type and elf_section_flags.
716         (elf_frob_file): Set SHT_GROUP.
718         * config/obj-elf.h (obj_sec_set_private_data): New.
720         * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
721         * config/tc-ia64.h: Likewise.
722         * config/tc-m32r.h: Likewise.
723         * config/tc-m68hc11.h: Likewise.
724         * config/tc-mcore.h: Likewise.
725         * config/tc-mips.h: Likewise.
726         * config/tc-ppc.h: Likewise.
727         * config/tc-sh64.h: Likewise.
728         * config/tc-v850.h: Likewise.
729         * config/tc-xtensa.h: Likewise.
731         * config/tc-v850.h (SHF_V850_GPREL): Removed.
732         (SHF_V850_EPREL): Likewise.
733         (SHF_V850_R0REL): Likewise.
735         * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
736         is defined.
738 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
740         * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
741         debugging symbols so that we handle page memory correctly.
743 2003-07-24  Nick Clifton  <nickc@redhat.com>
745         * po/fr.po: Updated French translation.
747 2003-07-23  Daniel Jacobowitz  <drow@mvista.com>
749         * config/tc-arm.c (arm_archs): Add iwmmxt.
751 2003-07-22  H.J. Lu <hongjiu.lu@intel.com>
753         * read.c (do_parse_cons_expression): Mark nbytes unused to
754         silence gcc.
756 2003-07-22  Alexandre Oliva  <aoliva@redhat.com>
758         * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
759         or bsr/bs.
761         * config/tc-h8300.c (md_assemble): Make sure characters after
762         slash and dot are lower-case.
764 2003-07-17  Nick Clifton  <nickc@redhat.com>
766         * po/es.po: New Spanish translation.
767         * po/tr.po: New Turkish translation.
768         * po/opcodes.pot: Regenerate.
770 2003-07-16  Alan Modra  <amodra@bigpond.net.au>
772         * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
773         (generic_dwarf2_emit_offset): Don't define function when
774         TC__DWARF2_EMIT_OFFSET is defined.
776 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
778         * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
779         (mips_cpu_info_table): Add rm7000 and rm9000 entries.
780         * doc/c-mips.texi: Document -march=rm9000.
782 2003-07-15  Alan Modra  <amodra@bigpond.net.au>
784         * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
785         only for V850_OPERAND_DISP operands.
787 2003-07-15  Alan Modra  <amodra@bigpond.net.au>
789         * frags.c (frag_more): Move segment checks to..
790         (frag_alloc_check): ..here.  New function.
791         (frag_append_1_char): Call frag_alloc_check.
793 2003-07-14  Nick Clifton  <nickc@redhat.com>
795         * po/tr.po: Update with latest version.
796         * po/POTFILES.in: Regenerate.
797         * po/gas.pot: Regenerate.
798         * configure: Regenerate.
800 2003-07-14  Nick Clifton  <nickc@redhat.com>
802         * config/tc-ip2k.c: Remove inclusion of <ctype.h>
803         * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
804         "safe-ctype.h" and update use of macros.
805         * Makefile.am: Update dependencies.
806         * Makefile.in: Regenerate.
808 2003-07-11  Alan Modra  <amodra@bigpond.net.au>
810         * po/gas.pot: Regenerate.
812 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
814         * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
815         (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
816         tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
817         DWARF2_CIE_DATA_ALIGNMENT): Define.
818         (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
819         prototypes.
820         (ppc_cie_data_alignment): Declare.
821         * config/tc-ppc.c: Include dw2gencfi.h.
822         (ppc_cie_data_alignment): Define.
823         (md_begin): Initialize ppc_cie_data_alignment.
824         (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
825         functions.
826         * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
827         (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
828         tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
829         DWARF2_CIE_DATA_ALIGNMENT): Define.
830         (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
831         New prototypes.
832         (s390_cie_data_alignment): Declare.
833         * config/tc-s390.c: Include dw2gencfi.h.
834         (s390_cie_data_alignment): Define.
835         (md_begin): Initialize s390_cie_data_alignment.
836         (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
837         New functions.
839 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
841         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
842         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
843         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
844         * configure.in (am33_2.0, mn10300-*-linux*): Added.
845         * configure: Rebuilt.
846         * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
847         elf32-am33lin.
848         * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
849         by default.
851 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
853         2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
854         * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
855         for subtracts from GLOBAL_OFFSET_TABLE that could not be
856         simplified.
857         2002-07-18  Alexandre Oliva  <aoliva@redhat.com>
858         * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
859         could not be simplified.
860         (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
861         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
862         * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
863         BDF_RELOC_MN10300_GOT32.
864         * config/tc-mn10300.c (mn10300_fix_adjustable): If
865         TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
866         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
867         * config/tc-mn10300.c (mn10300_parse_name): Don't return a
868         symbol if we know its value.
869         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
870         * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
871         duplicate underscore prefix.
872         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
873         * config/tc-mn10300.c (mn10300_parse_name): Store relocation
874         type in X_md, not X_add_number.  Zero X_add_number.
875         (mn10300_check_fixup): Extract relocation type from X_md.
876         * config/tc-mn10300.h: Update comment.
877         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
878         * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
879         (O_PIC_reloc): this.
880         * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
881         (mn10300_check_fixup): Likewise.
882         (mn10300_parse_name): Set X_add_number to relocation type.
883         * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
884         TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
885         O_GOTOFF, O_PLT, O_GOT): Define.
886         * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
887         (mn10300_check_fixup): New fn.
888         (md_assemble): Call it.  Check for PIC-related relocs.
889         (mn10300_cons_fix_new): Likewise.  New fn.
890         (mn10300_end_of_match): New fn.
891         (mn10300_md_parse_name_cont): New fn.
893 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
895         2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
896         * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
897         accumulator's shift.
898         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
899         * config/tc-mn10300.c (md_relax_table, md_convert_frag,
900         md_assemble, md_estimate_size_before_relax): Handle fbCC.
901         2000-04-20  Alexandre Oliva  <aoliva@cygnus.com>
902         * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
903         HAVE_AM33_2.
904         2000-04-03  Alexandre Oliva  <aoliva@cygnus.com>
905         * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
906         (HAVE_AM33): Match AM33_2 too.
907         (HAVE_AM33_2): New macro.
908         (md_assemble): Use it.  Match 2.0 registers only if HAVE_AM33_2.
909         2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
910         * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
911         (float_registers, double_registers): New variables.
912         (float_register_name, double_register_name): New functions.
913         (md_assemble): Recognize FP registers.  Implement FMT_D3.
914         (mn10300_insert_operand): Support FP registers.
916 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
918         * config/tc-mips.c (mips_validate_fix): Do not warn about branch
919         target being a global symbol if not compiling SVR4 PIC code.
921 2003-07-07  Nick Clifton  <nickc@redhat.com>
923         * doc/c-m32r.texi (M32R-Directives): New node.  Document the
924         .high, .shigh and .low directives.
926 2003-07-07  Richard Sandiford  <rsandifo@redhat.com>
928         * config/tc-h8300.c (h8300sxnmode): Add prototype.
929         (DSYMMODE): Remove.
930         (parse_exp): Replace expressionS argument with a h8_op.  Parse the
931         operand size as well.
932         (skip_colonthing): Remove unused expression argument.  Tighten checks
933         for 2-digit sizes.
934         (colonmod24): Remove.
935         (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
936         (get_operand): Likewise.  Use the standard code to read the size of
937         pc-relative operands.
938         (fix_operand_size): Include the size-guessing logic that used to be
939         in colonmod24 and get_operand.  Don't apply dd:2 optimizations to
940         offsets with a symbolic component.
942 2003-07-04  Nick Clifton  <nickc@redhat.com>
944         * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
945         macro to compute size of selected register name array.
947 2003-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
949         * config/tc-s390.c (md_parse_option): Add cpu type z990.
950         (md_begin): Add minimal cpu type logic for instructions with different
951         binary format depending on the cpu.
952         (md_assemble): Remove check for minimal cpu.
953         (s390_insert_operand): Add support for long displacements.
954         (md_gather_operands): Likewise.
955         (tc_s390_fix_adjustable): Likewise.
956         (tc_s390_force_relocation): Likewise.
957         (md_apply_fix3): Likewise.
959 2003-06-30  Chris Demetriou  <cgd@broadcom.com>
961         * config/tc-mips.c (s_mipsset): Implement -march= handling
962         differently.
964 2003-06-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
966         * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
967         prototypes and casts. Replace PTR with void *. Reformat.
968         * config/tc-mips.h: Likewise.
970 2003-06-30  Alan Modra  <amodra@bigpond.net.au>
972         * config/tc-ia64.c (note_register_values): Warning fix.
973         * config/tc-mips.c (append_insn): Likewise.
975 2003-06-29  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
977         * config/tc-mips.c (mips_set_options,mips_opts): Support for
978         .set arch=FOO.
979         (file_mips_arch): Rename mips_arch.
980         (mips_arch_info,mips_tune_info): Remove.
981         (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
982         (mips_cpu_info_from_arch): New function.
983         (md_begin): Use file_mips_arch.
984         (macro_build,macro,mips_ip): Use mips_opts.arch.
985         (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
986         (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
987         Use file_mips_arch.
988         (s_mipsset): Support for .set arch=FOO.
989         (mips_cpu_info_table): Fix typo.
991 2003-06-26  H.J. Lu <hongjiu.lu@intel.com>
993         * config/tc-i386.c (md_assemble): Declare "exp" before "if".
995 2003-06-25  Richard Sandiford  <rsandifo@redhat.com>
997         * config/tc-h8300.c (get_specific): Allow ':8' to be used for
998         unsigned 8-bit operands.
1000 2003-06-24  Nick Clifton  <nickc@redhat.com>
1002         * read.c (s_comm): Change error message to assume an unsigned size
1003         has been passed to .comm.
1004         * config/tc-sparc.c (s_common): Likewise.
1005         * write.c (write_contents): Replace 'unsigned long' with
1006         'addressT' and 'long' with offsetT in order to allow computations
1007         with very large values to work for 64-bit addressed targets.
1008         (relax_and_size_all_segments): Likewise.
1009         (relax_frag): Likewise.
1010         (relax_segment): Likewise.
1012 2003-06-23  Mark Mitchell  <mark@codesourcery.com>
1014         * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
1016 2003-06-23  H.J. Lu <hongjiu.lu@intel.com>
1018         * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
1019         Instructions.
1021         * gas/config/tc-i386.h (CpuPNI): New.
1022         (CpuUnknownFlags): Add CpuPNI.
1024 2003-06-23    <davidm@hpl.hp.com>
1026         * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
1027         freebsd, openvms, and nsk (non-stop kernel).
1029 2003-06-22  Jason Thorpe  <thorpej@wasabisystems.com>
1031         * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
1032         all locals have been declared.
1034 2003-06-21  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1036         * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
1037         special handling for n32 ABI.
1038         (macro): Likewise.
1040 2003-06-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1042         * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
1043         2003-06-11 change.
1045 2003-06-19  Christian Groessler  <chris@groessler.org>
1047         * config/tc-z8k.c (parse_reg): Invalid registers generate an error
1048         now, not only a warning.  Add some more checks to detect invalid
1049         registers.
1050         (get_operand): For CLASS_IR remember register size in mode struct.
1051         (get_specific): Handle new CLASS_IRO type.  Add register size
1052         checks for CLASS_IR and CLASS_IRO.
1053         (md_apply_fix3): Fix undefined usage of buf.
1055 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
1057         * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
1058         (ppc_change_csect): Add align param.  Align frag at start of csect.
1059         (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
1060         (ppc_frob_section): Align vma.
1062 2003-06-18  Jakub Jelinek  <jakub@redhat.com>
1064         * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
1065         (output_cie): Don't pad.
1066         (output_fde): Add align argument.  Pad to align if not 0.
1067         (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
1068         Pad just last FDE to EH_FRAME_ALIGNMENT.
1070 2003-06-18  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1072         * config/tc-s390.c (init_default_arch): Make current_mode_mask
1073         dependent on s390_arch_size and current_cpu dependent on
1074         current_mode_mask.
1076 2003-06-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
1078         * configure.in: Add c4x as an architecture variant to tic4x.
1079         * configure: Regenerate.
1080         * Makefile.in: Regenerate.
1081         * doc/Makefile.in: Regenerate.
1083 2003-06-18  Alan Modra  <amodra@bigpond.net.au>
1085         * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
1086         ".TOC." from PPC64_TOC relocs.
1088 2003-06-17  Alan Modra  <amodra@bigpond.net.au>
1090         * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
1092 2003-06-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1094         * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
1095         ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
1096         (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
1097         s_cprestore,s_cpadd): Use them.
1099 2003-06-16  Hans-Peter Nilsson  <hp@axis.com>
1101         * configure.in: Add specific case for cris-*-linux-gnu* with
1102         em=linux.
1103         * configure: Regenerate.
1104         * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
1105         if TE_LINUX defined, else FALSE.
1106         (bfd_boolean demand_register_prefix): Set default from
1107         DEFAULT_CRIS_AXIS_LINUX_GNU.
1108         (symbols_have_leading_underscore): Similar.
1109         * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
1111 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
1113         * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
1114         (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
1115         FPU_ARCH_FPA for AOUT.
1116         (md_begin): Don't try to guess the floating point architecture from
1117         the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
1119 2003-06-13  Robert Millan  <zeratul2@wanadoo.es>
1121         * configure.in: Add i386-netbsd-gnu target.
1122         * configure: Regenerate.
1124 2003-06-12  Tom Tromey  <tromey@redhat.com>
1126         * doc/as.texinfo (Comm): Added @node.  Moved before CFI
1127         directives node.
1129 2003-06-12  Richard Sandiford  <rsandifo@redhat.com>
1131         * config/tc-mips.c (append_insn): In a compound relocation, take the
1132         field width from the final (outermost) operator.
1134 2003-06-11  Richard Henderson  <rth@redhat.com>
1136         * dw2gencfi.c (struct cfi_escape_data): New.
1137         (cfi_add_CFA_nop): Remove.
1138         (CFI_escape, dot_cfi_escape): New.
1139         (dot_cfi): Remove nop.
1140         (cfi_pseudo_table): Remove nop; add escape.
1141         (output_cfi_insn): Likewise.
1142         (select_cie_for_fde): Stop on escape.
1143         * dw2gencfi.h (cfi_add_CFA_nop): Remove.
1144         * read.c, read.h (do_parse_cons_expression): New.
1145         * doc/as.texinfo (.cfi_escape): New.
1147 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1149         * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
1150         (s_cprestore): Likewise.
1151         (s_cpreturn): Likewise.
1153 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1155         * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
1156         with zeros.
1158 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1160         * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
1161         (md_apply_fix3): Ignore non-special relocations. Remove superfluous
1162         exceptions from size assert. Remove most of the addend fixup
1163         specialcasing. Remove value, use valP directly. simplify fx_addnumber
1164         handling. Remove zero addend specialcases.
1165         (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
1166         the addend fixup specialcase.
1167         * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
1169 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1171         * write.c (write_relocs): Use xcalloc. Fix relocs initialization
1172         in the RELOC_EXPANSION_POSSIBLE case.
1174 2003-06-11  Alan Modra  <amodra@bigpond.net.au>
1176         * config/tc-i960.c (line_comment_chars): Add '#'.
1177         * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
1179 2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
1181         * po/Make-in (DESTDIR): New.
1182         (install-data-yes): Support $(DESTDIR).
1183         (uninstall): Likewise.
1185 2003-06-11  Alan Modra  <amodra@bigpond.net.au>
1187         * Makefile.am: Run "make dep-am".
1188         * Makefile.in: Regenerate.
1189         * po/POTFILES.in: Regenerate.
1191 2003-06-10  Doug Evans  <dje@sebabeach.org>
1193         * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1194         CGEN_INSN_RELAXED.
1195         * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1196         * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1197         * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1199 2003-06-10  Alan Modra  <amodra@bigpond.net.au>
1200             Gary Hade <garyhade@us.ibm.com>
1202         * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1203         (md_apply_fix3): Special case lq insn.
1205 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
1207         * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1208         lists.  Allow single-register ranges.
1210 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
1212         * config/tc-h8300.c (h8300sxnmode): New.
1213         (md_pseudo_table): Add .h8300sxn entry.
1215 2003-06-09  H.J. Lu <hongjiu.lu@intel.com>
1217         * NEWS: Updated for the new -n option for the i386 assembler.
1219         * config/tc-i386.c (optimize_align_code): New.
1220         (md_shortopts): Add 'n'.
1221         (md_parse_option): Handle 'n'.
1222         (md_show_usage): Add '-n'.
1224         * config/tc-i386.h (optimize_align_code): Declared.
1225         (md_do_align): Optimize code alignment only if optimize_align_code
1226         is not 0.
1228         * doc/as.texinfo: Add the new -n option.
1230         * doc/c-i386.texi: Document the new -n option.
1232 2003-06-07  Richard Henderson  <rth@redhat.com>
1234         * doc/as.texinfo: Document .cfi_rel_offset.
1236         * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1237         (cfi_add_CFA_offset): Detect invalid offsets.
1238         (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1239         (cfi_add_CFA_restore_state): Restore it.
1240         (CFI_rel_offset): New.
1241         (cfi_pseudo_table): Add it.
1242         (dot_cfi): Handle it.
1244 2003-06-07  H.J. Lu <hongjiu.lu@intel.com>
1246         * app.c (do_scrub_chars): Add states 14 and 15 to handle
1247         predicate for ia64.
1249 2003-06-05  Michael Snyder  <msnyder@redhat.com>
1251         * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1252         (build_bytes): Ditto.
1254 2003-06-05  Richard Sandiford  <rsandifo@redhat.com>
1256         * config/tc-h8sx.c (DMODE): Remove.
1257         (colonmod24): Don't choose a default if the operand is a 16-bit
1258         constant integer.
1259         (fix_operand_size): New function.
1260         (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1261         Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1263 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
1265         * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1266         (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1267         (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1268         (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1269         (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1270         (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1271         (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1272         (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1273         (cfi_pseudo_table): New directives .cfi_return_column,
1274         .cfi_restore, .cfi_undefined, .cfi_same_value,
1275         .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1276         (dot_cfi, output_cfi_insn): Handle new directives.
1277         * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1278         (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1279         (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1281 2003-06-04  Richard Henderson  <rth@redhat.com>
1283         * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1285         * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1287 2003-06-04  Richard Henderson  <rth@redhat.com>
1289         * config/tc-alpha.c (s_alpha_usepv): New.
1290         (md_pseudo_table): Add it.
1291         (alpha_cfi_frame_initial_instructions): New.
1292         * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1293         (tc_cfi_frame_initial_instructions): New.
1294         * doc/c-alpha.texi: Document .usepv.
1296 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1298         * as.c (show_usage): Document --execstack and --noexecstack.
1299         (parse_args): Add --execstack and --noexecstack.
1300         (main): Create .note.GNU-stack section if --execstack or
1301         --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1302         * as.h (flag_execstack, flag_noexecstack): New.
1304 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
1306         * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1307         (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1308         (OPTION_MISC_BASE): New defines.
1309         (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1310         (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1311         (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1312         (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1313         (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1314         (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1315         (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1316         (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1317         (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1318         (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1319         (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1320         (OPTION_TRAP): Redefine in terms of new defines.
1321         (md_longopts): Reorder entries.
1323 2003-05-14  Michael Snyder  <msnyder@redhat.com>
1324         From Bernd Schmidt  <bernds@redhat.com>
1325         and Michael Snyder  <msnyder@redhat.com>
1326         and Alexandre Oliva <aoliva@redhat.com>
1327         * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1328         * config/tc-h8300.h: Ditto.
1330 2003-06-03  Nick Clifton  <nickc@redhat.com>
1332         * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1333         BFD_RELOC_32_PCREL if the reloc is pc-relative.  Do this
1334         before calling bfd_reloc_type_lookup.
1336 2003-06-02  Alan Modra  <amodra@bigpond.net.au>
1338         * read.c (emit_expr): Set dot_value.
1339         * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1341 2003-06-02  Alan Modra  <amodra@bigpond.net.au>
1343         * macro.c (sub_actual): Don't lose string if it turns out that
1344         &string wasn't an arg.
1346 2003-05-31  Richard Henderson  <rth@redhat.com>
1348         * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1349         (cfi_finish): Set flag_traditional_format around .eh_frame data.
1351 2003-05-29  Richard Henderson  <rth@redhat.com>
1353         * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1354         (all_frame_data, plast_frame_data, cur_frame_data): New.
1355         (s_alpha_ent): Record data for dwarf2 cfi.
1356         (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1357         (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1358         * config/tc-alpha.h (md_end): New.
1359         (DWARF2_DEFAULT_RETURN_COLUMN): New.
1360         (DWARF2_CIE_DATA_ALIGNMENT): New.
1362 2003-05-29  Nick Clifton  <nickc@redhat.com>
1364         * configure.in: Add i386-*-freebsd* entry.
1365         * configure: Regenerate.
1367 2003-05-29  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1369         * config/tc-m32r.c: Amend comment to refer to Renesas
1371 2003-05-27  Richard Henderson  <rth@redhat.com>
1373         * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1374         symbol_create call.
1375         (current_location): Use symbol_temp_new_now.
1376         * stabs.c (s_stab_generic): Use symbol_temp_new.
1377         * symbols.c (temp_label_name): Remove.
1378         (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1380 2003-05-27  Richard Henderson  <rth@redhat.com>
1382         * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1383         * as.c (main): Always call cfi_finish.
1384         * config/tc-i386.c (x86_dwarf2_return_column): New.
1385         (x86_cie_data_alignment): New.
1386         (md_begin): Set them.
1387         (tc_x86_cfi_init): Remove.
1388         (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1389         return int, not unsigned long; don't as_bad here.
1390         (tc_x86_frame_initial_instructions): Streamline; use
1391         updated api.
1392         * config/tc-i386.h (tc_cfi_init): Remove.
1393         (DWARF2_DEFAULT_RETURN_COLUMN): New.
1394         (DWARF2_CIE_DATA_ALIGNMENT): New.
1396 2003-05-27  Richard Henderson  <rth@redhat.com>
1398         * symbols.c (temp_label_name): New.
1399         (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1400         (symbol_set_value_now): New.
1401         * symbols.h: Prototype them.
1402         * dwarf2dbg.c: Use them.
1403         (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1405 2003-05-23  Jason Eckhardt  <jle@rice.edu>
1407         * config/tc-i860.c (target_xp): Declare variable.
1408         (OPTION_XP): Declare macro.
1409         (md_longopts): Add option -mxp.
1410         (md_parse_option): Set target_xp.
1411         (md_show_usage): Add -mxp usage.
1412         (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1413         (md_assemble): Don't try expansions if XP_ONLY is set.
1414         * doc/c-i860.texi: Document -mxp option and i860XP support.
1416 2003-05-23  Eric Christopher  <echristo@redhat.com>
1418         * config/tc-mips.c (macro_build_jalr): Warning patrol.
1420 2003-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1422         * config/tc-mips.c (append_insn): Use actual relocation size for new
1423         fixp's. Don't relax overflow checking for partial_inplace relocations.
1424         Use the actual relocation type in combined relocs, not just the type
1425         of the first one.
1426         (macro_build_jalr): Use actual relocation size for new fix.
1427         (s_cpsetup, s_gpdword): Likewise.
1429 2003-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1431         * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1433 2003-05-22  Nick Clifton  <nickc@redhat.com>
1435         * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1436         section relative offsets for relocs that will not be based on the
1437         section symbol.
1438         (xstormy16_md_apply_fix3): Remove previous patch to this
1439         function.
1441 2003-05-07  Eric Christopher  <echristo@redhat.com>
1443         * config/tc-mips.c (mips_abicalls): New variable.
1444         (md_parse_option): Use.
1445         (s_option): Ditto.
1446         (s_abicalls): Ditto.
1447         (mips_elf_final_processing): Set EF_MIPS_PIC and
1448         EF_MIPS_CPIC dependent on above.
1450 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1452         * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1454 2003-05-21  Nick Clifton  <nickc@redhat.com>
1456         * config/obj-elf.c: Include dwarf2dbg.h.
1457         (elf_pseudo_tab): Add .file and .loc.
1458         * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1459         * config/tc-arm.c: Likewise.
1460         * config/tc-h8300.c: Likewise.
1461         * config/tc-hppa.c: Likewise.
1462         * config/tc-ia64.c: Likewise.
1463         * config/tc-m68hc11.c: Likewise.
1464         * config/tc-m68k.c: Likewise.
1465         * config/tc-mmix.c: Likewise.
1466         * config/tc-mn10300.c: Likewise.
1467         * config/tc-ppc.c: Likewise.
1468         * config/tc-sh.c: Likewise.
1469         * config/tc-sparc.c: Likewise.
1470         * config/tc-v850.c: Likewise.
1471         * config/tc-frv.c: Likewise, and remove redundant inclusion of
1472         dwarf2dbg.h.
1473         * config/tc-ip2k.c: Likewise.
1474         * config/tc-iq2000.c: Likewise.
1475         * config/tc-xstormy16.c: Likewise.
1476         * config/tc-xtensa.c: Likewise.
1477         * Makefile.am: Regenerate dependencies.
1478         * Makefile.in: Regenerate.
1479         * aclocal.m4: Regenerate.
1480         * config.in: Regenerate.
1481         * configure: Regenerate.
1482         * po/POTFILES.in: Regenerate.
1483         * po/gas.pot: Regenerate.
1485 2003-05-21  Nick Clifton  <nickc@redhat.com>
1487         * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1488         BFD_ASSEMBLER targets.
1489         (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1490         (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1491         defining BFD_ASSEMBLER.
1493 2003-05-20  Michal Ludvig  <mludvig@suse.cz>
1495         * as.c (main): Remove tc_cfi_init().
1496         * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1497         with '%'.
1498         (cfi_pseudo_table): Add "cfi_register" entry.
1499         (cfi_make_insn): Handle CFA_register.
1500         (cfi_output_insn): Ditto.
1501         (dot_cfi): Ditto.
1502         (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1503         (dot_cfi_endproc): Reuse already emitted CIEs.
1504         * testsuite/gas/cfi/cfi-i386.d: New pattern.
1505         * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1507 2003-05-20  Nick Clifton  <nickc@redhat.com>
1509         * config/tc-xstormy16.c: Include dwarf2dbg.h.
1510         (md_pseudo_table): Add entries for .loc and .line.
1512 2003-05-20  Alan Modra  <amodra@bigpond.net.au>
1514         * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1515         defined.
1516         (dot_cfi_endproc): Avoid C99 construct.
1518 2003-05-20  Michal Ludvig  <mludvig@suse.cz>
1520         * dw2gencfi.c, dw2gencfi.h: New files.
1521         * config/tc-i386.c (tc_x86_cfi_init): New function.
1522         * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1523         * as.c (parse_args): Set verbose flag on --verbose.
1524         (main): Call tc_cfi_init()/cfi_finish().
1525         * as.h (verbose): New external variable.
1526         * read.c (pobegin): Insert CFI pops to the list.
1527         * symbols.c (local_symbol_make): Make symbol external.
1528         * symbols.h (local_symbol_make): New prototype.
1529         * Makefile.am: Add dw2gencfi.[ch] files.  Run "make dep-am".
1530         * Makefile.in: Regenerate.
1531         * doc/as.texinfo: Added node "CFI directives" with description of
1532         all implemented .cfi_* directives.
1533         * doc/Makefile.in: Regenerate.
1534         * po/POTFILES.in: Regenerate.
1536 2003-05-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
1538         * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1539         insns.
1540         * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1542 2003-05-18  Jason Eckhardt  <jle@rice.edu>
1544         * config/tc-i860.c (i860_process_insn): Initialize fc after
1545         each opcode mismatch.
1547 2003-05-16  Kelley Cook  <kelleycook@wideopenwest.com>
1549         * configure.in: Accept i[3-7]86 variants.
1550         * configure: Regenerate.
1552 2003-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1554         * config/tc-mips.h: Fix comment formatting.
1556 2003-05-13  Hans-Peter Nilsson  <hp@axis.com>
1558         * read.c (old_buffer, old_input, old_limit): Remove variables.
1559         (read_a_source_file): Delete label contin.
1560         <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1561         input as with macros, instead of in separate old_* variables.
1562         Zero-terminate string being scrubbed.
1564 2003-05-12  Nick Clifton  <nickc@redhat.com>
1566         * config/tc-xstormy16.c (skipping_fptr): New local variable.
1567         (md_assemble): Reset skipping_fptr.
1568         (md_operand): If @fptr() is followed by a minus sign, set
1569         skipping_fptr and ignore the fptr.  If skipping_fptr is set and an
1570         @fptr is detected, ignore it and reset skipping_fptr.
1572 2003-05-11  Jason Eckhardt  <jle@rice.edu>
1574         * config/tc-i860.c (MAX_FIXUPS): Define.
1575         (struct i860_fi fi[]): New struct.
1576         (struct i860_it the_insn): Add above as member and move fields
1577         exp, reloc, pcrel and fup into i860_fi.
1578         (md_assemble): Replace all instances of exp, reloc, pcrel
1579         and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1580         Add a loop to possibly emit multiple fix-ups for each insn.
1581         (i860_process_insn): Likewise.
1582         (i860_get_expression): Likewise.
1583         (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1585 2003-05-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1587         * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1589 2003-05-07  H.J. Lu <hongjiu.lu@intel.com>
1591         * config/tc-ia64.c (alias_hash): New.
1592         (alias_name_hash): New.
1593         (secalias_hash): New.
1594         (secalias_name_hash): New.
1595         (md_pseudo_table): Add "secalias".
1596         (md_begin): Initialize alias_hash, alias_name_hash,
1597         secalias_hash and secalias_name_hash.
1598         (struct alias): New.
1599         (dot_alias): Implement .alias and .secalias directives.
1600         (do_alias): New.
1601         (ia64_adjust_symtab): New.
1602         (do_secalias): New.
1603         (ia64_frob_file): New.
1605         * config/tc-ia64.h (ia64_adjust_symtab): New.
1606         (tc_adjust_symtab): Defined.
1607         (ia64_frob_file): New.
1608         (tc_frob_file): Defined.
1610 2003-05-07  Dmitry Diky  <diwil@mail.ru>
1612         * tc-msp430.c: Add missing lines to known cpus list.
1614 2003-05-06  Alexandre Oliva  <aoliva@redhat.com>
1616         * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1617         * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1618         * config.in, configure: Rebuilt.
1620 2003-05-05  H.J. Lu <hjl@gnu.org>
1622         * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1623         howto->partial_inplace is false.
1625 2003-05-05  Daniel Jacobowitz  <drow@mvista.com>
1627         * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1628         symbol_used_in_reloc_p check.
1629         (md_apply_fix3): Remove check for howto->pcrel_offset.
1631 2003-05-03  H.J. Lu <hjl@gnu.org>
1633         * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1634         fatal error for unknown section attribute.
1636         * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1637         unknown section attribute.
1638         * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1639         * config/tc-ppc.c (ppc_section_letter): Likewise.
1641         * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1642         (ia64_elf_section_type): Accept "unwind".
1644 2003-05-02  H.J. Lu <hjl@gnu.org>
1646         * read.h (demand_copy_string): New.
1648         * config/tc-alpha.c (demand_copy_string): Removed.
1650 2003-05-02  Michael Snyder  <msnyder@redhat.com>
1652         * write.h (FAKE_LABEL_NAME): Allow override
1653         (for targets that like eg. a leading dot in a local label).
1655 2003-05-02  Nick Clifton  <nickc@redhat.com>
1657         * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1658         addend with the symbol's value for pc-relative relocations against
1659         a defined symbol - this will be done automatically.
1661 2003-05-01  H.J. Lu <hjl@gnu.org>
1663         * config/obj-elf.c (obj_elf_type): Accept "notype" and
1664         "STT_NOTYPE".
1666 2003-05-01  H.J. Lu <hjl@gnu.org>
1668         * config/tc-ia64.h (tc_canonicalize_section_name): New.
1670         * config/obj-elf.c (obj_elf_section_name): Call
1671         tc_canonicalize_section_name if it is defined.
1673 2003-05-01  H.J. Lu <hjl@gnu.org>
1675         * config/tc-ia64.c (ia64_check_label): New.
1676         * config/tc-ia64.h (tc_check_label): New.
1678         * read.c (read_a_source_file): Call tc_check_label after
1679         creating a user-defined label if defined.
1681 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
1683         * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1684         -be and split strings to below 509 bytes in length.
1686 2003-05-01  Christian Groessler <chris@groessler.org>
1688         * expr.h: Fix comments in operatorT typedef.
1689         * config/tc-z8k.c: Add 2003 to copyright message.
1690         Fold s_segm() and s_unseg() into one function s_segm(parm) which
1691         decides by the parameter.
1692         (md_begin): Don't set linkrelax.  Only set Z8002 default if no
1693         command line argument was given to select the intended
1694         architecure.
1695         (get_interrupt_operand): Warn if NOP type code is emitted.
1696         (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1697         (apply_fix): Call newfix with additional 'size' parameter.
1698         (build_bytes): Remove unused variable 'nib'.  Detect overflow in
1699         4 bit immediate arguments.
1700         (md_longopts): Add 'linkrelax' option.
1701         (md_parse_option): Adapt to new s_segm function.  Set 'linkrelax'
1702         variable when 'linkrelax' command line option is specified.
1703         (md_show_usage): Display 'linkrelax' option.
1704         (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8.  Add cases
1705         R_CALLR and R_REL16.
1706         * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1708 2003-04-30  H.J. Lu <hjl@gnu.org>
1710         * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1711         (ia64_float_to_chars): Likewise.
1712         (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1713         and ia64_float_to_chars by tc_segment_info_data.endian from
1714         the current segment if byteorder == -1.
1715         (md_begin): Call dot_byteorder to set target_big_endian.
1716         (md_atof): Call ia64_float_to_chars to convert floating point.
1717         (ia64_float_to_chars_bigendian): New function.
1718         (ia64_float_to_chars_littleendian): Likewise.
1719         (ia64_elf_section_change_hook): Likewise.
1721         * config/tc-ia64.h (ia64_number_to_chars): New.
1722         (md_number_to_chars): Changed to (*ia64_number_to_chars)
1723         (ia64_elf_section_change_hook): New.
1724         (md_elf_section_change_hook): Defined.
1725         (ia64_segment_info_type): New struct.
1726         (TC_SEGMENT_INFO_TYPE): Defined.
1728 2003-04-30  H.J. Lu <hjl@gnu.org>
1730         * config/tc-ia64.c (md_section_align): Deleted.
1732         * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1733         (md_section_align): New.
1735 2003-04-30  H.J. Lu <hjl@gnu.org>
1737         * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1738         and add real16.
1739         (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1740         "real16.ua".
1741         (md_atof): Add 6 byte padding of zero for real16.
1743 2003-04-29  Nick Clifton  <nickc@redhat.com>
1745         * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1746         start of a version name.
1748 2003-04-28  Chris Demetriou  <cgd@broadcom.com>
1750         * configure.in (mips-*-*n*bsd*): Replace with...
1751         (mips-*-netbsd*, mips-*-openbsd*): These.
1752         * configure: Regenerate.
1754 2003-04-28  H.J. Lu <hjl@gnu.org>
1756         * config/tc-hppa.c (hppa_symbol_chars): New.
1757         * config/tc-hppa.h (tc_symbol_chars): Likewise.
1759 2003-04-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1761         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1763 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
1765         * NEWS: Belatedly mention support for MIPS32 Release 2.
1767 2003-04-24  Eric Christopher  <echristo@redhat.com>
1769         * config/tc-mips.c (nopic_need_relax): Revert previous
1770         change.
1772 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1774         * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1775         * config/tc-h8300.c (dwarf2dbg.h): Include
1776         (md_pseudo_table): Handle .loc and .file
1777         (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1778         * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1779         * Makefile.in: Regenerate.
1781 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1783         * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1784         (md_pseudo_table): Add h8300hn, h8300sn.
1785         * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1786         * doc/c-h8300.texi : Add documentation for new machine directives.
1788 2003-04-24  Nick Clifton  <nickc@redhat.com>
1790         * config/tc-ppc.c (ppc_symbol_chars): Define.
1791         * config/tc-ppc.h (tc_symbol_chars): Define.
1793 2003-04-23  J"orn Rennecke <joern.rennecke@superh.com>
1795         * config/tc-sh.c: Amend comment to refer to SuperH.
1796         * config/tc-sh.h: Likewise.
1797         (LISTING_HEADER): Amend to refer to SuperH.
1798         * config/tc-sh64.c: Change comment to refer to SuperH.
1799         * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1800         * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1801         * doc/c-sh.texi: Amend to refer to SuperH.
1802         Add SuperH architecture documentation references.
1803         * doc/c-sh64.texi: Change to refer to SuperH.
1805 2003-04-23  H.J. Lu <hjl@gnu.org>
1807         * app.c (do_scrub_chars): More checks for valid labels.
1809 2003-04-22  H.J. Lu <hjl@gnu.org>
1811         * app.c (do_scrub_chars): Check for valid label.
1813 2003-04-22  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1815         * doc/as.texinfo: Replace references to Mitsubishi M32R with
1816         references to Renesas M32R.
1817         * doc/c-m32r.texi: Likewise.
1819 2003-04-21  Richard Henderson  <rth@redhat.com>
1821         * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1822         (out_file_list): Assign non-null filename after generating error.
1824 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
1826         * ehopt.c (check_eh_frame): For aug_size == 0
1827         in state_seeing_aug_size state skip the state_skipping_aug
1828         state.
1830 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
1832         * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1833         'Renesas'.
1834         * doc/c-h8500.texi: Likewise.
1835         * doc/c-sh.texi: Likewise.
1836         * doc/c-sh64.texi: Likewise.
1837         * doc/h8.texi: Likewise.
1838         * config/tc-h8300.c: Likewise.
1839         * config/tc-h8300.h: Likewise.
1840         * config/tc-h8500.c: Likewise.
1841         * config/tc-h8500.h: Likewise.
1842         * config/tc-sh.c: Likewise.
1843         * config/tc-sh.h: Likewise.
1844         * config/tc-sh64.c: Likewise.
1845         * config/tc-sh64.h: Likewise.
1847 2003-04-10  Alexandre Oliva  <aoliva@redhat.com>
1849         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1850         * config/tc-mips.c: Use signed add for n32 address arithmetic.
1851         (append_insn): When filling delay slots with instructions
1852         that have fixups that tc_gen_reloc might consider modifyable
1853         in variant frags, start a new frag.
1854         (load_address): Generate GOT_DISP with of without offset
1855         depending on whether symbol is local.  For -xgot, use
1856         GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1857         (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1858         <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1859         CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1860         <ld_st>: In NewABI with small got, always use
1861         GOT_PAGE/GOT_OFST, with the latter in the load/store
1862         instruction.  With big got, use GOT_HI16/GOT_LO16 or
1863         GOT_PAGE/GOT_OFST.
1864         (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1865         Add tc_frag_data.tc_fr_offset to addends.  Decay CALL16,
1866         GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1867         (md_convert_frag): Use memmove for safe copying of overlapping
1868         regions.
1870 2003-04-09  Stephane Carrez  <stcarrez@nerim.fr>
1872         * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1873         -mlong, -mshort-double and -mlong-double options; use table @code.
1874         (M68HC11-Syntax): Update to document 68HC12 operands.
1875         (M68HC11-Modifiers): New section for operand modifiers.
1876         (M68HC11-Directives): New section for specific assembler directives.
1877         (M68HC11-Branch): Fix Overfull hbox error.
1879 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
1881         * config/tc-mips.c (macro): Add comments explaining the rationale
1882         for Chris' change.
1884 2003-04-09  Chris Demetriou  <cgd@broadcom.com>
1886         * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1887         constant address that Alexandre took out by accident.  Reject
1888         64-bit addresses that are not sign extensions of 32 bits only if
1889         we don't support 64-bit address constants.
1891 2003-04-09  Alan Modra  <amodra@bigpond.net.au>
1893         * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1895 2003-04-08  Nick Clifton  <nickc@redhat.com>
1897         * as.c (perform_an_assembly_pass): If using cgen, call
1898         gas_cgen_begin.
1899         * cgen.c (gas_cgen_begin): New function.  If
1900         flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1901         otherwise call cgen_clear_signed_overflow_ok.
1902         * cgen.h: Prototype gas_cgen_begin.
1904 2003-04-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1906         * write.c (write_relocs): Remove unused variable.
1908 2003-04-06  Chris Demetriou  <cgd@broadcom.com>
1910         * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1911         (macro): Use new macro to decide whether to emit constant address
1912         as 32 or 64 bits if addresses are 32-bit wide but registers are
1913         64-bit wide.
1915 2003-04-05  Stephane Carrez  <stcarrez@nerim.fr>
1917         * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1918         (M6811_OP_PAGE_ADDR): New internal define.
1919         (get_operand): New modifier %page and %addr to obtain page and
1920         address part of a far-function.
1921         (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1922         complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1923         relocs.
1924         (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1925         (find_opcode): Add comment.
1926         (md_estimate_size_before_relax): Force relocation of
1927         STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1928         (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1929         instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1930         on the symbol itself so that DWARF2 strings are merged correctly.
1932 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
1934         * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1935         default tic4x target format to 'coff2-tic4x'.
1936         * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1937         s/c3x/tic3x/
1938         * config/tc-tic4x.h: Ditto
1940 2003-04-03  Nick Clifton  <nickc@redhat.com>
1942         * NEWS: Mention support for Xtensa architecture.
1944 2003-04-02  Philip Blundell  <philb@gnu.org>
1946         * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1948 2003-04-02  Chris Demetriou  <cgd@broadcom.com>
1950         * config/tc-mips.c (macro2): Adjust implementation of
1951         M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1952         in the case where the source and destination registers
1953         are the same.
1955 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
1957         * Makefile.am (CPU_TYPES): Add xtensa.
1958         (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1959         (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1960         (xtensa-relax.o): New target.
1961         Run "make dep-am".
1962         * Makefile.in: Regenerate.
1963         * configure.in: Handle xtensa-*-*.  Add xtensa-relax.o to
1964         extra_objects for xtensa targets.
1965         * configure: Regenerate.
1966         * write.c (write_object_file): Add new md_post_relax_hook.
1967         * config/tc-xtensa.c: New file.
1968         * config/tc-xtensa.h: Likewise.
1969         * config/xtensa-istack.h: Likewise.
1970         * config/xtensa-relax.c: Likewise.
1971         * config/xtensa-relax.h: Likewise.
1972         * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1973         * doc/Makefile.in: Regenerate.
1974         * doc/all.texi: Set new XTENSA variable.
1975         * doc/as.texinfo: Set new Xtensa variable.  Describe
1976         Xtensa-specific options.  Define line comment character for
1977         Xtensa.  Add Xtensa processors to list of ELF targets where
1978         alignment is specified in bytes.  Add new Xtensa-Dependent node.
1979         Add acknowledgements for those contributing to the Xtensa port.
1980         * doc/internals.texi: Describe new md_post_relax_hook.
1981         * doc/c-xtensa.texi: New file.
1983 2003-04-01  Nick Clifton  <nickc@redhat.com>
1984             Richard Earnshaw  <rearnsha@arm.com>
1986         * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1987         (ARM_ARCH_IWMMXT): Simplify.
1988         (insns): Place iwmmx instructions in correct place in table.
1989         (arm_add_note): New function: Add a note entry to a .note section.
1990         (md_begin): Make the default architecture be unknown.
1991         Suppress the creation of an arm note section.
1993 2003-03-26  Eric Christopher  <echristo@redhat.com>
1995         * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1997 2003-03-25  Stan Cox   <scox@redhat.com>
1998             Nick Clifton  <nickc@redhat.com>
2000         Contribute support for Intel's iWMMXt chip - an ARM variant:
2002         * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
2003         WC_PREFIX, REG_TYPE_IWMMXT): New constants.
2004         (enum wreg_type, enum iwmmxt_insn_type): New types.
2005         (wr_register, wc_register, wcg_register): New macros.
2006         (iwmmxt_table): New variable.
2007         (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
2008         do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
2009         do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
2010         do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
2011         do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
2012         do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
2013         do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
2014         cp_byte_address_offset, cp_byte_address_required_here,
2015         check_iwmmxt_insn): New functions.
2016         (asm_opcode_insns): Add iWMMXt instructions.
2017         (md_begin): Set the mach value for iWMMXt targets.  Create a note
2018         section to identify iwmmxt binaries.
2019         (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
2020         * doc/c-arm.texi: Document the support for the iWMMXt.
2021         * NEWS: Mention new support.
2023 2003-03-24  Daniel Néri  <dne@mayonnaise.net>
2025         * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
2026         * doc/all.texi: Likewise.
2027         * doc/c-tic54x.texi: Likewise.
2029 2003-03-21  Andreas Schwab  <schwab@suse.de>
2031         * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
2032         avoid aliasing issue.
2034 2003-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2036         * config/tc-s390.c (s390_arch_size): Initialize to zero.
2037         (current_arch_mask): Rename to current_mode_mask.
2038         (current_arch_requested): Remove variable.
2039         (current_cpu): New variable.
2040         (init_default_arch): Set defaults values for s390_arch_size,
2041         current_mode_mask and current_cpu.
2042         (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
2043         (md_begin): Replace current_arch_mask by current_cpu.
2044         (md_assemble): Adapt check and error message to current_mode_mask and
2045         current_cpu.
2047 2003-03-09  James E Wilson  <wilson@tuliptree.org>
2049         * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
2050         * read.c (get_line_sb): Return end of line character or '\n' if
2051         it is zero or non-existent.
2053 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
2055         * config/tc-mips.c (mips_validate_fix): New function.
2056         * config/tc-mips.h (TC_VALIDATE_FIX): Define.
2057         (mips_validate_fix): Declare.
2059 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
2061         * Reverted 2003-03-02's patch.
2063 2003-03-11  Steve Ellcey  <sje@cup.hp.com>
2065         * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
2066         (TC_DWARF2_EMIT_OFFSET): Provide default.
2067         (out_debug_aranges, out_debug_info): Use it.
2068         * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
2069         (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
2070         (ia64_gen_real_reloc_type): ... here.
2071         * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
2073 2003-03-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2075         * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
2076         (s_mips_ent): Likewise.
2078 2003-03-04  Dmitry Diky  <diwil@mail.ru>
2080         * config/tc-msp430.c (mcu_types): Add recently announced x1122
2081         and x1123 devices, add missed x437.
2082         (md_show_usage): Sort device list.
2084 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
2086         * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
2087         (md_begin): Use preset_target_arch.
2088         (md_longopts): Make isa option unconditional.
2089         (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
2090         set preset_target_arch.
2091         (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
2092         by -S_GET_VALUE  (fixP->fx_subsy).
2093         (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
2094         and the addend is 0.
2095         Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
2096         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2098 2003-03-02  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2100         * config/tc-mips.c (append_insn): Add handling of
2101         BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
2102         BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
2103         misaligned address and reange overflow.
2104         (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
2105         earlier warnings about misaligned address and reange overflow.
2106         (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2107         (md_apply_fix): Likewise. Fix warning output.
2108         (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2109         Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
2110         (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2112 2003-02-21  Nick Clifton  <nickc@redhat.com>
2114         * NEWS: Mention availability of test generator program.
2116 2003-02-21  Miles Bader  <miles@gnu.org>
2118         * config/tc-v850.c (system_registers): Add v850e debug registers.
2119         (system_register_name): Accept up to 27 (the last v850e sys register).
2121 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
2123         * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
2124         relevant to both COFF and ELF.  Fix obvious typos and texinfo bugs.
2125         Capitalize section headings consistently.  Format index entries more
2126         consistently.  Unconditionalize text about whether text and data
2127         sections are alterable.  Use @ifnottex for alternatives to @tex output
2128         so that HTML works.  Clean up COFF vs. ELF descriptions of .section,
2129         .size and .type directives.  Be more polite about bad bug reports.
2130         Move FDL into a separate file.
2131         * doc/fdl.texi: New file.
2133 2003-02-21  Richard Sandiford  <rsandifo@redhat.com>
2135         * config/tc-mips.c (prev_reloc_op_frag): New variable.
2136         (macro): Check it to decide whether a new frag is needed.
2137         (my_getSmallExpression): Set it.
2139 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
2141         * cgen.c: Fix typo: intial -> initial.
2143 2003-02-19  Jie Zhang  <zhangjie@magima.com.cn>
2145         * app.c (do_scrub_chars): Handle '||' in two states.
2147 2003-02-13  Alan Modra  <amodra@bigpond.net.au>
2149         * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
2150         * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2152 2003-02-11  Uwe Stieber  <uwe@wwws.de>
2154         * configure.in: Add support for kaOS as cross build target system.
2155         * configure: Regenerated.
2157 2003-02-10  Nick Clifton  <nickc@redhat.com>
2159         * config/tc-arm.c (md_begin): If the Maverick co-processor is
2160         selected, set the EF_ARM_MAVERICK_FLOAT flag and
2161         bfd_mach_arm_ep9312 machine number.
2163 2003-02-08  Richard Sandiford  <rsandifo@redhat.com>
2165         * config/tc-mips.c (reloc_needs_lo_p): New function.
2166         (fixup_has_matching_lo_p): New function.
2167         (append_insn): Use reloc_needs_lo_p to check whether a relocation
2168         might need a matching %lo().  Reuse the head of mips_hi_fixup_list
2169         if that fixup already has a matching %lo().  Don't call frag_wane here.
2170         (macro): Call frag_wane here if the last unmatched hi was in the
2171         current frag.
2172         (pic_need_relax): New function, split out from...
2173         (md_estimate_size_before_relax): ...here.
2174         (mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
2175         whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
2177 2003-02-07  Richard Sandiford  <rsandifo@redhat.com>
2179         * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
2181 2003-02-06  Alan Modra  <amodra@bigpond.net.au>
2183         * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
2184         x@toc+off works.
2186 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
2188         * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2189         (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2190         accept x@got+off etc.
2191         (md_assemble): Handle TLS relocs.
2192         (ppc_force_relocation): Force for all TLS relocs.
2193         (ppc_fix_adjustable): Likewise.
2194         (md_apply_fix3): Handle TLS relocs.
2196 2003-02-04  Alan Modra  <amodra@bigpond.net.au>
2198         * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2199         SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2201 2003-02-02  Richard Sandiford  <rsandifo@redhat.com>
2203         * config/tc-mips.c (enum small_ex_type): Remove.
2204         (imm_unmatched_hi): Remove.
2205         (md_assemble): Remove use of imm_unmatched_hi.  Remove the last
2206         argument from calls to append_insn.
2207         (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2208         instead.
2209         (macro_build): Update append_insn calls.
2210         (mips16_macro_build, macro_build_lui): Likewise.
2211         (mips_ip): Rework handling of small expressions.  Move explicit
2212         relocation handling into my_getSmallExpression.  Assume that the
2213         value of 'o' operands is zero if there is only one bracketed
2214         expression left.
2215         (percent_op): Make constant.  Record the BFD relocation code
2216         associated with each operator.
2217         (my_getSmallParser, my_getPercentOp): Remove.
2218         (parse_relocation): New function.
2219         (my_getSamllExpression): Rework.  Fill in relocations here
2220         rather than in mips_ip.
2222 2003-01-29  Nick Clifton  <nickc@redhat.com>
2224         * config/tc-i386.c (line_comment_chars): Add '#'.  This makes the
2225         assembler's handling of # <linenum> "<filename>" directives work.
2227 2003-01-28  Jakub Jelinek  <jakub@redhat.com>
2229         * dwarf2dbg.c: Include filenames.h.
2230         (struct file_entry): Make filename const char *.
2231         (dirs, dirs_in_use, dirs_allocated): New variables.
2232         (get_filenum): Add NUM argument.  Build directory table.
2233         (dwarf2_where): Adjust caller.
2234         (dwarf2_directive_file): Use get_filenum to allocate
2235         slot in file and directory tables.
2236         (dwarf2_directive_loc): Recreate full filename from
2237         directory and filename part if needed for listing.
2238         (out_file_list): Output directory table.
2239         Output main source file dirname before its filename.
2241 2003-01-28    Dmitry Diky <diwil@mail.ru>
2243         * config/tc-msp430.c: Replace occurences of 'tolower' with
2244         'TOLOWER'.
2246 2003-01-27  David Mosberger  <davidm@hpl.hp.com>
2248         * config/tc-ia64.c (dot_vframesp): Correct error message.
2249         (dot_vframepsp): Ditto.
2251 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2253         * configure.in (em): Set to irix on all Irix systems.
2254         * configure: Rebuilt.
2255         * config/te-irix.h: New file.
2256         * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2257         whether to use Irix-specific 64-bit format.
2259 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2261         * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2263 2003-01-25  Jakub Jelinek  <jakub@redhat.com>
2265         * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2266         (tc_gen_reloc): Handle TLS relocs.
2267         (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2268         * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2269         relocs.
2270         * config/obj-elf.c (obj_elf_section_word): Handle tls.
2271         (obj_elf_type): Handle tls_object.
2273 2003-01-24  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2275         * config/tc-s390.c (s390_tls_suffix): New function.
2276         (elf_suffix_type): Add suffix enums for TLS relocations.
2277         (s390_elf_suffix): Add suffix strings for TLS relocations.
2278         (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2279         bfd relocations.
2280         (md_gather_operands): Map new instruction operand/elf suffix
2281         combinations for TLS to bfd relocations.
2282         (tc_s390_fix_adjustable): Add new TLS relocations.
2283         (tc_s390_force_relocation): Likewise.
2284         (md_apply_fix3): Likewise.
2286 2003-01-24  Alan Modra  <amodra@bigpond.net.au>
2288         * as.h: Update copyright date.
2289         * symbols.c: Likewise.
2290         * config/tc-d10v.h: Likewise.
2291         * config/tc-fr30.h: Likewise.
2292         * config/tc-i960.h: Likewise.
2293         * config/tc-mips.h: Likewise.
2295         * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2296         (MD_APPLY_SYM_VALUE): Move.
2298 2003-01-23  Nick Clifton  <nickc@redhat.com>
2300         * NEWS: Announce sh2e support.
2302         Add sh2e support:
2303         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
2304         * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2305         (sh_elf_final_processing): Handle arch_sh2e.
2307 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
2309         * symbols.c (S_FORCE_RELOC): Add "strict" param.
2310         * symbols.h (S_FORCE_RELOC): Likewise.
2311         * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2312         * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2313         * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2314         * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2315         * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2316         * write.c (generic_force_reloc): New function.
2317         (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2318         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2319         (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2320         * as.h (generic_force_reloc): Declare.
2321         * doc/internals.texi (S_FORCE_RELOC): Update.
2322         (TC_FORCE_RELOCATION_SUB_SAME): Update.
2324         * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2325         generic_force_reloc.
2326         (alpha_fix_adjustable): Likewise.
2327         * config/tc-arm.c (arm_force_relocation): Likewise.
2328         * config/tc-cris.c (md_cris_force_relocation): Likewise.
2329         * config/tc-frv.c (frv_force_relocation): Likewise.
2330         * config/tc-i386.c (md_apply_fix3): Likewise.
2331         * config/tc-ia64.c (ia64_force_relocation): Likewise.
2332         * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2333         * config/tc-m32r.c (m32r_force_relocation): Likewise.
2334         * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2335         * config/tc-mcore.c (mcore_force_relocation): Likewise.
2336         * config/tc-mips.c (mips_force_relocation): Likewise.
2337         * config/tc-mmix.c (mmix_force_relocation): Likewise.
2338         * config/tc-ppc.c (ppc_force_relocation): Likewise.
2339         * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2340         * config/tc-sh.c (sh_force_relocation): Likewise.
2341         (md_pcrel_from_section): Likewise.
2342         * config/tc-sparc.c (tc_gen_reloc): Likewise.
2343         * config/tc-v850.c (v850_force_relocation): Likewise.
2344         * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2345         * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2346         * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2347         * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2349         * config/tc-d10v.c (d10v_force_relocation): Delete.
2350         * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2351         * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2352         * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2353         * config/tc-fr30.c (fr30_force_relocation): Delete.
2354         * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2355         * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2356         * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2357         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2358         * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2359         * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2360         * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2361         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2362         * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2363         * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2364         * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2365         * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2366         * config/tc-i386.c (i386_force_relocation): Delete.
2367         * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2368         BFD_ASSEMBLER.
2369         (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2370         * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2371         * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2372         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2373         S_FORCE_RELOC.
2374         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2375         * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2377 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
2379         * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2380         sh64_elf_section_data.
2381         * config/tc-sh64.h: Include elf32-sh64.h.
2382         * config/tc-m68hc11.c: Don't include stdio.h.
2383         (md_show_usage): Fix missing continuation.
2384         * Makefile.am: Run "make dep-am".
2385         * Makefile.in: Regenerate.
2387 2003-01-22  Nick Clifton  <nickc@redhat.com>
2389         * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2391 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
2393         * configure.in: Handle *-*-aros*.
2394         * configure:    Regenerated from configure.in.
2396 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2398         * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2399         gotplt and pltoff relocations.
2400         (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2401         (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2402         gotplt and pltoff to bfd relocations.
2403         (md_gather_operands): Map new instruction operand/elf suffix
2404         combinations to bfd relocations.
2405         (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2406         to the list of unadjustable relocations.
2407         (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2408         and pltoff relocations.
2409         (md_apply_fix3): Add the new relocations.
2411 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2413         * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2414         with a subsy symbol.
2416 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
2418         * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2419         of relocs for memory bank addressing.
2421 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
2423         * config/tc-m68hc11.c (md_show_usage): Update usage.
2424         (md_parse_option): Recognize -m68hcs12.
2425         (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2426         HCS12.
2427         * doc/as.texinfo (Overview): Document new option -m68hcs12.
2429 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
2431         * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2433 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
2435         * Makefile.am: Run "make dep-am".
2436         * Makefile.in: Regenerate.
2437         * po/POTFILES.in: Regenerate.
2439 2003-01-11  Alan Modra  <amodra@bigpond.net.au>
2441         * read.c (get_absolute_expr): New, split out from..
2442         (get_absolute_expression): ..here.
2443         * read.h (get_absolute_expr): Declare.
2444         * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2445         Trim size to arch bits_per_address, and test for negative input
2446         via get_absolute_expr.
2448 2003-01-07  DJ Delorie  <dj@redhat.com>
2450         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2451         on operand type.
2452         (xstormy16_md_apply_fix3): Use adjustment.
2454 2003-01-02  Ben Elliston  <bje@redhat.com>
2456         * configure.in: Add iq2000-elf target.
2457         * configure: Regenerate.
2458         * config/tc-iq2000.c: New file.
2459         * config/tc-iq2000.h: Likewise.
2460         * po/gas.pot: Regenerate.
2462 2003-01-02  Chris Demetriou  <cgd@broadcom.com>
2464         * config/tc-mips.c: Update copyright years to include 2003.
2465         (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2466         Additionally, clean up their code slightly and clean up their
2467         comments some more.
2469         * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2471 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
2473         * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2474         $(CPU_DOCS)".
2475         * doc/Makefile.in: Regenerate.
2477 2003-01-01  John David Anglin  <dave.anglin@nrc.ca>
2479         * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2480         of .init and .fini sections for array initializers and finalizers.
2482 2002-12-31  Chris Demetriou  <cgd@broadcom.com>
2484         * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2485         the "+D" operand, which will be used only by the disassembler.
2487 2002-12-30  Chris Demetriou  <cgd@broadcom.com>
2489         * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2490         CPU variants.
2491         * configure: Regenerate.
2492         * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2493         (macro_build): Handle "K" operand.
2494         (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2495         CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2496         (mips_ip): New variable "lastpos", and implement "+A", "+B",
2497         and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2498         Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2499         (validate_mips_insn): Implement "+" as a way to extend the
2500         allowed operands, and implement "K", "+A", "+B", and "+C"
2501         operands.
2502         (OPTION_MIPS32R2): New define.
2503         (md_longopts): Add entry for OPTION_MIPS32R2.
2504         (OPTION_ELF_BASE): Adjust to accommodate OPTIONS_MIPS32R2.
2505         (md_parse_option): Handle OPTION_MIPS32R2.
2506         (s_mipsset): Reimplement handling of ".set mipsN" options
2507         and add support for ".set mips32r2".
2508         (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2509         (md_show_usage): Document "-mips32r2" option.
2510         * doc/as.texinfo: Document "-mips32r2" option.
2511         * doc/c-mips.texi: Likewise.
2513 2002-12-30  Dmitry Diky  <diwil@mail.ru>
2515         * configure.in: Add msp430 target.
2516         * configure: Regenerate.
2517         * Makefile.am: Add msp430 target.
2518         * Makefile.in: Regenerate.
2519         * config/tc-msp430.c: New file: msp430 assembler.
2520         * config/tc-msp430.h: New file: target macros for msp430.
2521         * doc/Makefile.am: Add msp430 target.
2522         * doc/Makefile.in: Regenerate.
2523         * doc/as.texinfo: Include msp430 documenation.
2524         * doc/all.texi: Enable msp430 documentation.
2525         * doc/c-msp430.texi: New file: document msp430 specific features
2526         of the assembler.
2528 2002-12-25  Alexandre Oliva  <aoliva@redhat.com>
2530         * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2531         (dwarf2_finish): Use it.
2532         * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2533         * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2535 2002-12-20  DJ Delorie  <dj@redhat.com>
2537         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2538         BFD_RELOC_XSTORMY16_12.
2540 2002-12-19  Alan Modra  <amodra@bigpond.net.au>
2542         * doc/as.texinfo (Invoking): Typo fix.
2543         * config/tc-tic54x.c (encode_operand): Comment typo fix.
2545 2002-12-18  Kazu Hirata  <kazu@cs.umass.edu>
2547         * doc/c-alpha.texi: Fix typos.
2548         * doc/c-arm.texi: Likewise.
2549         * doc/c-d10v.texi: Likewise.
2550         * doc/c-i370.texi: Likewise.
2551         * doc/c-i960.texi: Likewise.
2552         * doc/c-ia64.texi: Likewise.
2553         * doc/c-mmix.texi: Likewise.
2554         * doc/c-ns32k.texi: Likewise.
2555         * doc/c-pdp11.texi: Likewise.
2556         * doc/c-pj.texi: Likewise.
2557         * doc/c-sh64.texi: Likewise.
2558         * doc/c-sparc.texi: Likewise.
2559         * doc/c-tic54x.texi: Likewise.
2560         * doc/c-v850.texi: Likewise.
2561         * doc/c-vax.texi: Likewise.
2562         * doc/internals.texi: Likewise.
2564 2002-12-18  Chris Demetriou  <cgd@broadcom.com>
2566         * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2567         use hardware rotate ops as appropriate.  In M_DROL_I, M_DROR_I,
2568         M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2569         arrange not to issue warnings about use of AT when AT is not
2570         actually used.
2572 2002-12-17  Nick Clifton  <nickc@redhat.com>
2574         * as.c (std_longopts): Duplicate --keep-locals entry in order to
2575         prevent it being confused with -k.
2577 2002-12-16  Andrew MacLeod  <amacleod@redhat.com>
2579         * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2580         has already been set up, use it.
2582 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
2584         * ChangeLog-9295: Fix a typo.
2585         * README: Likewise.
2586         * config/tc-d10v.c: Fix a comment typo.
2587         * config/tc-dlx.c: Likewise.
2588         * config/tc-h8300.h: Likewise.
2589         * config/tc-h8500.h: Likewise.
2590         * config/tc-mips.c: Likewise.
2591         * config/tc-s390.c: Likewise.
2592         * config/tc-sh.h: Likewise.
2593         * config/tc-tic80.h: Likewise.
2594         * config/tc-w65.h: Likewise.
2595         * config/tc-z8k.c: Likewise.
2596         * config/tc-z8k.h: Likewise.
2597         * testsuite/gas/h8300/cmpsi2.s: Likewise.
2599 2002-12-16  Alan Modra  <amodra@bigpond.net.au>
2601         * config/tc-d30v.c (check_range): Warning fixes, formatting.
2602         Simplify sign extension.  Remove redundant unsigned < 0 test.
2603         * config/tc-i960.c (md_ri_to_chars): Prototype.
2604         * config/tc-mcore.c (md_pseudo_table): Fix typo.
2605         (dump_literals): Init brarsym, and test later instead of isforce.
2607         * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2608         (parse): Constify line and lineptr.
2609         (md_begin): Calculate endop here.
2611 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
2613         * config/obj-vms.c: Formatting.  Include fnctl.h.
2614         (Create_VMS_Object_File): Fix creat call for sane unix systems.
2615         (Object_Record_Offset): Make it a size_t.
2616         (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2617         (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2618         (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2619         (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2620         (vms_fixup_data_section <data_size>): Add here instead.
2621         * config/e-criself.c: Fix typo in last change.
2623 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
2625         * write.c (write_object_file): Fix signed/unsigned warning.
2626         * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2627         * config/e-criself.c (criself_bfd_name): Prototype.
2628         * config/obj-aout.c (s_sect): Remove unused function.
2629         * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2630         * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2631         (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2632         * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2633         * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2634         (VMS_RSYM_Parse <Current_Routine>): Likewise.
2635         (vms_fixup_text_section <text_siz>): Likewise.
2636         (synthesize_data_segment <data_size>): Likewise.
2637         (vms_fixup_xtors_section <sect_no>): Likewise.
2638         (structure_count): Don't use implicit int type.
2639         * config/tc-a29k.c (insert_sreg): Prototype.
2640         (define_some_regs): Prototype, make static.
2641         (parse_operand): Likewise.
2642         (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2643         (md_show_usage <stream>): Likewise.
2644         (md_section_align <segment>): Likewise.
2645         (md_convert_frag <all args>): Likewise.
2646         (md_estimate_size_before_relax <all args>): Likewise.
2647         (md_apply_fix3): Don't cast valP pointer type.  Fix bogus >>='s.
2648         * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2649         * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2650         (md_undefined_symbol <name>): Likewise.
2651         (md_convert_frag <all args>): Likewise.
2652         (write_long <opcode>): Likewise.
2653         (tc_gen_reloc <seg>): Likewise.
2654         (md_estimate_size_before_relax <all args>): Likewise.
2655         (md_apply_fix3 <seg>): Likewise.
2656         (s_d30v_align <ignore>): Likewise.
2657         (build_insn): Correct format string.
2658         (md_apply_fix3): Likewise.
2659         * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2660         (md_undefined_symbol <name>): Likewise.
2661         (md_convert_frag <all args>): Likewise.
2662         (md_cgen_lookup_reloc <insn>): Likewise.
2663         (md_begin): Delete unused vars.
2664         (md_assemble): Likewise.
2665         (md_estimate_size_before_relax): Likewise.
2666         (fr30_relax_frag): #if 0 out, seems unused.
2667         (md_atof): Remove declaration of atof_ieee.
2668         (restore_colon): Prototype.
2669         * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2670         (frv_find_in_vliw): Likewise.
2671         (frv_debug_tomcat): Likewise.
2672         (frv_adjust_vliw_count): Likewise.
2673         (frv_tomcat_shuffle): Likewise.
2674         (frv_tomcat_analyze_vliw_chains): Likewise.  Correct args to
2675         frv_find_in_vliw call.
2676         (md_atof): Remove declaration of atof_ieee.
2677         * config/tc-h8500.c (cons): Delete declaration.
2678         (md_begin <opcode>): Constify.
2679         (displacement_size, immediate_size, absolute_size): Remove.
2680         (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2681         (tc_crawl_symbol_chain <headers>): Likewise.
2682         (md_undefined_symbol <name>): Likewise.
2683         (tc_headers_hook <headers>): Likewise.
2684         (md_parse_option <c,arg>): Likewise.
2685         (md_show_usage <stream>): Likewise.
2686         (md_convert_frag <headers, seg>): Likewise.
2687         (tc_coff_symbol_emit_hook <ignore>): Likewise.
2688         (md_atof): Remove declaration of atof_ieee.
2689         (tc_aout_fix_to_chars): Remove unused function.
2690         (parse_reg): Prototype.
2691         (parse_exp): Prototype.
2692         (skip_colonthing): Prototype.  Use &&, not & in logical expressions.
2693         (parse_reglist): Prototype.
2694         (get_operand): Prototype.
2695         (get_operands): Prototype.
2696         (get_specific): Prototype.  Make "this_index" signed.
2697         (check): Prototype, make static.
2698         (insert): Prototype
2699         (build_relaxable_instruction): Prototype, make static.
2700         (build_bytes): Prototype.
2701         (wordify_scb): Prototype.
2702         * config/tc-h8500.h (start_label): Declare.
2703         (tc_coff_sizemachdep): Declare.
2704         * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2705         (i370_rmode <unused>): Likewise.
2706         (i370_csect <unused>): Likewise.
2707         (i370_dc <unused>): Likewise.
2708         (i370_ds <unused>): Likewise.
2709         (i370_elf_lcomm <unused>): Likewise.
2710         (i370_ltorg <ignore>): Likewise.
2711         (i370_using <ignore>): Likewise.
2712         (i370_drop <ignore>): Likewise.
2713         (i370_byte <ignore>): Likewise.
2714         (i370_tc <ignore>): Likewise.
2715         (md_estimate_size_before_relax <fragp, seg>): Likewise.
2716         (md_convert_frag <all args>): Likewise.
2717         (md_undefined_symbol <name>): Likewise.
2718         (md_pcrel_from_section <sec>): Likewise.
2719         (tc_gen_reloc <seg>): Likewise.
2720         (i370_section_letter): #if 0 unused functions.
2721         (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2722         (symbol_locate): Prototype.
2723         * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2724         (md_number_to_disp, md_number_to_field): Remove.
2725         (md_apply_fix3): Correct format string and cast "fup".
2726         * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2727         (s_endian <ignore>): Likewise.
2728         (md_undefined_symbol <name>): Likewise.
2729         (tc_crawl_symbol_chain <headers>): Likewise.
2730         (tc_set_bal_of_call): Likewise.
2731         (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2732         (i960_handle_align <fragp>): Likewise.
2733         (i960_validate_fix <this_segment_type>): Likewise
2734         (tc_gen_reloc <section>): Likewise.
2735         (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2736         (struct memS, struct regop): Forward declare.
2737         (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2738         get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2739         parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2740         reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2741         targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2742         (md_chars_to_number, md_number_to_imm): Make static, prototype.
2743         (md_number_to_field): Likewise.
2744         (md_number_to_disp): Remove unused function.
2745         (md_atof): Remove declaration of atof_ieee.
2746         (md_apply_fix3): Correct md_number_to_imm call.
2747         * config/tc-ip2k.c (md_assemble): Warning fix.
2748         * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2749         (fill_insn <ignore>): Likewise.
2750         (debug_sym <ignore>): Likewise.
2751         (md_undefined_symbol <name>): Likewise.
2752         (m32r_scomm <ignore>): Likewise.
2753         (md_convert_frag <abfd>): Likewise.
2754         (md_cgen_lookup_reloc <insn>): Likewise.
2755         (m32r_record_hi16 <seg>): Likewise.
2756         (md_estimate_size_before_relax): #if 0 old_fr_fix.
2757         (allow_m32rx): Prototype.
2758         (first_writes_to_seconds_operands): Prototype.
2759         (writes_to_pc): Prototype.
2760         (can_make_parallel): Prototype.
2761         (make_parallel): Prototype.
2762         (target_make_parallel): Prototype.
2763         (assemble_two_insns): Prototype.
2764         (m32r_record_hi16): Prototype.
2765         (md_atof): Remove declaration of atof_ieee.
2766         * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2767         (m32r_force_relocation): Prototype.
2768         (m32r_elf_section_change_hook): Prototype.
2769         * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2770         (md_show_usage): Fix signed/unsigned warning.
2771         * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2772         (calcop): Ditto for reg_prefix var.
2773         (hexval): Add cast to fix signed/unsigned warning.
2774         (md_number_to_disp): Delete unused function.
2775         (md_number_to_field): Likewise.
2776         (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2777         (match_name): Prototype.
2778         (get_bf2): Prototype.
2779         (get_bf_offset_expression): Prototype.
2780         * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2781         (md_undefined_symbol <ignore>): Likewise.
2782         (md_create_short_jump <all args>): Likewise.
2783         (md_create_long_jump <all args>): Likewise.
2784         (md_convert_frag <abfd, sec>): Likewise.
2785         (md_apply_fix3 <segment>): Likewise.
2786         (md_section_align <segment>): Likewise.
2787         (md_pcrel_from_section <sec>): Likewise.
2788         (tc_gen_reloc <section>): Likewise.
2789         (reg_m, reg_n, immediate): Delete unused vars.
2790         (dump_literals): Fix signed/unsigned warning.
2791         (enter_literal): Likewise.
2792         (parse_imm): Likewise.  Also fix format string.
2793         (parse_mem): Remove unused var.
2794         (md_assemble <LS>): Abort on unexpected inst.
2795         (md_atof): Remove declaration of atof_ieee.
2796         (md_parse_option): Remove unused vars.
2797         (md_apply_fix3): Fix format strings, cast args.
2798         (tc_gen_reloc): Delete unused var.
2799         * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2800         * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2801         (md_undefined_symbol <name>): Likewise.
2802         (md_convert_frag <abfd>): Likewise.
2803         (tc_gen_reloc <seg>): Likewise.
2804         (check_operand <insn>): Likewise.
2805         (md_convert_frag): Fix format strings.
2806         (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2807         * config/tc-openrisc.c (ignore_pseudo): Prototype.
2808         (md_atof): Remove declaration of atof_ieee.
2809         * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2810         (md_apply_fix3): Fix bogus >>='s.
2811         (md_undefined_symbol): Delete unused var.
2812         * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2813         (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2814         (fake_opcode): Adjust for pj_opc_int_t change.
2815         (md_begin): Likewise.
2816         (md_assemble): Likewise.
2817         (ipush_code): Correct parse_exp_save_ilp call.  Test pending_reloc
2818         instead of non-existent third arg of parse_exp_save_ilp.
2819         (md_parse_option): Correct "little" and "big" calls.
2820         * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2821         (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2822         (tc_gen_reloc <section>): Likewise.
2823         * config/tc-tic30.c: #include stdarg.h or varargs.h.
2824         (debug): Rewrite using VA_* macros.
2825         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2826         (md_convert_frag): Likewise.
2827         (md_parse_option): Likewise.
2828         (md_show_usage): Likewise.
2829         (md_undefined_symbol): Likewise.
2830         (tc_gen_reloc): Likewise.
2831         (md_operand): Likewise.
2832         (tc_aout_pre_write_hook): Delete.
2833         (struct tic30_insn): Make "operands" unsigned.
2834         (struct tic30_par_insn): Likewise.
2835         (md_assemble): Likewise for "count", "i" and "numops".
2836         (tic30_parallel_insn): Likewise for vars here.
2837         (tic30_operand): Likewise.  Remove useless unsigned >= 0 comparison.
2838         * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2839         * config/tc-tic80.c (obj_coff_section): Delete declaration.
2840         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2841         (md_undefined_symbol): Likewise.
2842         (md_parse_option): Likewise.
2843         (md_convert_frag): Likewise.
2844         (tc_coff_symbol_emit_hook): Likewise.
2845         (md_atof): Remove declaration of atof_ieee.
2846         (const_overflow): Warning fixes, tidy.
2847         (get_operands): Delete unused vars.
2848         (internal_error_a): Adjust format string to expect a long for arg.
2849         (find_opcode): Warning fixes, simplify.
2850         (build_insn): Cast internal_error_a arg.
2851         (md_begin): Likewise.
2852         (md_apply_fix3): Likewise.
2853         (md_assemble): Delete unused var.
2854         * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2855         * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2856         (whatreg, parse_reg, parse_exp): Make static, prototype.
2857         (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2858         (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2859         (get_operand, get_operands, get_specific, newfix): Likewise.
2860         (apply_fix, build_bytes): Likewise.
2861         (md_atof): Remove declaration of atof_ieee.
2862         (tc_aout_fix_to_chars): Delete.
2863         (md_begin): Constify "opcode".  Don't try to init opcode->idx.
2864         Fix s_unseg call.
2865         (md_parse_option): Fix s_segm and s_unseg calls.
2867 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
2869         * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2870         Adjust callers.
2871         (RELAX_BRANCH_RELOC_S2): Delete.
2872         (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2873         Do not handle BFD_RELOC_16_PCREL.
2874         (macro_build, mips_ip): Likewise.
2875         (md_pcrel_from): Return 4 for undefined symbols regardless of
2876         mips_pic.
2877         (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2878         Don't dereference howto if no such relocation is available.
2879         Do not apply hack for in-place zero addend in NEWABI.
2880         (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2882 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>,
2883             Alan Modra  <amodra@bigpond.net.au>
2885         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2886         (TC_LINKRELAX_FIXUP): Add comments.
2888 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
2890         * config/tc-mn10300.c (set_arch_mach): Change argument type to
2891         avoid warnings.
2892         (r_register_name, xr_register_name): Add prototype declarations.
2894 2002-12-08  H.J. Lu <hjl@gnu.org>
2896         * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2897         copied from tc-i386.c.
2899 2002-12-08  Stephane Carrez  <stcarrez@nerim.fr>
2901         Fix Bug savannah/1825:
2902         * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2903         (md_relax_table): Define specific relax for PC-rel offsets.
2904         (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2905         (m68hc11_relax_frag): Handle the new relax code.
2906         (md_convert_frag): Likewise.
2907         (md_estimate_size_before_relax): Likewise.
2909 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
2911         * subsegs.c (section_symbol): Use the symbol, not the section, name.
2913 2002-12-05  Richard Henderson  <rth@redhat.com>
2915         * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2916         (ia64_gen_real_reloc_type): Handle it.
2917         (pseudo_func): Add @ltoffx.
2918         (md_begin): Build .<ltoffx>.
2919         (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2921 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
2923         * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2924         Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2925         ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2926         * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2927         COFF to call arm_force_relocation.
2929 2002-12-04  David Mosberger  <davidm@hpl.hp.com>
2931         * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2932         instruction.
2933         (emit_one_bundle): Handle "hint" instruction.
2934         (operand_match): Match IA64_OPND_AR_CSD.
2936 2002-12-04  Alan Modra  <amodra@bigpond.net.au>
2938         * dwarf2dbg.c (scale_addr_delta): Correct parameter.  Move prototype
2939         inside #if.
2941 2002-12-03  Nick Clifton  <nickc@redhat.com>
2943         * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2944         .PPC.EMB.apuinfo sections.
2946 2002-12-03  Richard Henderson  <rth@redhat.com>
2948         * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2950 2002-12-03  Alan Modra  <amodra@bigpond.net.au>
2952         * config/tc-w65.c (s_longa): Prototype.  Make static, specify int arg.
2953         (cons, s_align_bytes): Delete declaration.
2954         (relax): Delete.
2955         (md_begin): Constify "struct opinfo *" var.  Don't try to make "name"
2956         strings common.
2957         (dot): Delete unused function.
2958         (w65_expression): Remove unused arg.
2959         (parse_exp): Prototype.  Remove unused arg.  Adjust w65_expression
2960         call.
2961         (get_operands): Prototype.  Constify "struct opinfo *" arg.  Fix
2962         parse_exp call.
2963         (get_specific): Prototype.  Constify "struct opinfo *" arg and return
2964         value.
2965         (check): Remove unused function.
2966         (build_Mytes): Prototype.  Constify "struct opinfo *" arg.  Abort
2967         on unhandled switch case.
2968         (md_assemble): Remove unused op_start, op_end, nlen, p vars.  Constify
2969         "opcode".
2970         (tc_crawl_symbol_chain): Delete unused function.
2971         (tc_headers_hook): Likewise.
2972         (tc_Nout_fix_to_chars): Likewise.
2973         (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2974         (md_parse_option): Likewise.
2975         (md_convert_frag): Likewise.
2976         (tc_coff_symbol_emit_hook): Likewise.
2977         (md_show_usage): Likewise.
2978         * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2979         (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2980         (w65_expression): Declare.
2982         * po/POTFILES.in: Regenerate.
2984         * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2985         and ARM_ADRL_IMMEDIATE.
2987 2002-12-02  Nick Clifton  <nickc@redhat.com>
2989         * gasp.c: Delete.  It has been deprecated.
2990         * NEWS: Mention that gasp has been removed.
2991         * Makefile.am: Remove references to gasp.
2992         * makefile.vms: Likewise.
2993         * mpw-make.sed: Likewise.
2994         * Makeile.in: Regenerate.
2995         * doc/gasp.texi: Delete.
2996         * doc/Makefile.am: Remove references to gasp.texi.
2997         * doc/Makefile.in: Regenerate.
2998         * macro.c: Delete references to gasp.
2999         Remove use of comment_char function parameter as it is no longer
3000         needed.
3001         * macro.h: Update prototypes to remove comment_char parameter.
3002         Fix formatting.
3003         * read.c (read_a_source_file, s_irp): Remove comment_char
3004         parameter from invocation of functions in macro.c
3006 2002-12-02  Hans-Peter Nilsson  <hp@axis.com>
3008         * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
3010 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
3012         * config/tc-m68hc11.c (md_begin): Fix qsort warning.
3013         (tc_gen_reloc): Mark section param as not used.
3015 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
3017         Fix Bug savannah/1825:
3018         * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
3019         that are not pc-relative.
3020         (m68hc11_relax_frag): Declare.
3022         * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
3023         the offsetable indexed addressing modes (n,r).
3024         (build_insn): Cleanup some locals.
3025         (m68hc11_relax_frag): New function imported from tc-cris.c to handle
3026         relaxation of difference between two symbols of same section.
3027         (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
3028         only when this is a PC-relative operand and the offset is not absolute.
3029         (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
3030         to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
3031         be handled by m68hc11_relax_frag.
3033 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
3035         * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
3036         (32-bit int, 64-bit double).
3037         (md_longopts): New options -mshort, -mlong, -mshort-double and
3038         -mlong-double to control the ABI.
3039         (md_show_usage): Update.
3040         (md_parse_option): Handle new options.
3041         * doc/as.texinfo (Overview): Document new options for HC11/HC12.
3043 2002-12-01  Nathan Sidwell  <nathan@codesourcery.com>
3045         * symbols.c (report_op_error): New function, broken out of ...
3046         (resolve_symbol_value): ... here. Use for both monadic and dyadic
3047         operators.
3049 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3051         * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
3052         for BFD_RELOC_32_PLT_PCREL.
3054 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
3056         * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
3057         config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
3058         config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
3059         config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
3060         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
3061         config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
3062         config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
3063         config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
3064         config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
3065         config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
3066         config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
3067         config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
3068         config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
3069         config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
3070         TRUE, false with FALSE.  Simplify comparisons of bfd_boolean vars with
3071         TRUE/FALSE.  Formatting.
3073 2002-11-29  Nick Clifton  <nickc@redhat.com>
3075         * config/tc-arm.c (do_t_bkpt): If no operand is specified,
3076         assume a value of zero.
3077         (do_bkpt): Likewise.
3079 2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3081         * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3082         for TLS relocations.
3084 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
3086         * config/tc-ia64.c (md_apply_fix3): Add default case.
3088 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
3090         * symbols.c (S_SET_THREAD_LOCAL): New function.
3091         * symbols.h (S_SET_THREAD_LOCAL): New prototype.
3092         * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3093         for TLS relocations.
3094         * config/tc-ia64.c (md_apply_fix3): Likewise.
3095         * config/tc-alpha.c (md_apply_fix3): Likewise.
3097 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
3099         * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
3100         to entsize.
3102 2002-11-26  DJ Delorie  <dj@redhat.com.
3104         * dwarf2dbg.c (scale_addr_delta): New.
3105         (size_inc_line_addr): Use it.
3106         (emit_inc_line_addr): Use it.
3108 2002-11-26  Hans-Peter Nilsson  <hp@axis.com>
3110         * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
3111         (md_assemble): Don't pass on branches to constants as relaxable.
3112         Tweak comment.
3114 2002-11-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
3116         * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
3118 2002-11-21  Randolph Chung  <randolph@tausq.org>
3120         * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
3121         only if they have default visibility.
3123 2002-11-21  Richard Henderson  <rth@redhat.com>
3125         * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
3126         S_IS_DEFINED test.
3128 2002-11-21  Alan Modra  <amodra@bigpond.net.au>
3130         * config/tc-mcore.c (mcore_pool_count): New function.
3131         (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
3133 2002-11-20  Klee Dienes  <kdienes@apple.com>
3135         * config/tc-mcore.c (md_begin): Use a const iterator.  Don't
3136         coalesce the name fields to use the same pointer.
3138         * config/tc-sh.c (md_begin): Use a const iterator.  Don't coalesce
3139         the name fields to use the same pointer.
3140         (get_specific): Check for opcodes with the same name using strcmp
3141         as well as comparing the pointer.
3143 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
3145         * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
3146         fx_subsy non-NULL.
3148 2002-11-19  Richard Henderson  <rth@redhat.com>
3150         * config/obj-elf.c (obj_elf_visibility): Overwrite only the
3151         visibility portion of st_other.
3153 2002-11-19  Klee Dienes  <kdienes@apple.com>
3155         * config/tc-h8300.c (struct h8_instruction): New type, used to
3156         wrap h8_opcodes with length, noperands, idx, and size fields
3157         (computed at run-time).
3158         (h8_instructions): New variable.
3159         (md_begin): Allocate the storage for h8_instructions.  Fill
3160         h8_instructions with pointers to the appropriate opcode and the
3161         correct value for the additional fields.
3162         (clever_message): Update to use h8_instructions instead of
3163         h8_opcodes.
3164         (build_bytes): Ditto.
3165         (get_specific): Ditto.
3166         (md_assemble): Ditto.
3168 2002-11-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3170         * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
3171         adjustments to symbols in merge sections.
3173 2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
3175         * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
3177 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
3179         * dwarf2dbg.h (dwarf2_format): New enum.
3180         * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
3181         (out_debug_line, out_debug_info): Add code for handling 64-bit
3182         DWARF 2 formats.
3183         * config/tc-mips.h (mips_dwarf2_format): Declare.
3184         * config/tc-mips.c (mips_dwarf2_format): New function.
3185         * doc/internals.texi (DWARF2_FORMAT): Document.
3187 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>
3189         * config/tc-mips.c (s_change_section): Make sure input buffer
3190         is not accessed past the end.  Don't hand
3191         obj_elf_change_section a pointer into the input buffer.
3193 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
3195         * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3196         GOT_LO16 on NEWABI.
3198 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
3200         * config/tc-tic4x.c: Fixed proper commandline
3201         parameters. Added support for new opcode-list format. General
3202         error message fixups.
3203         (c4x_inst_add): Reject insn not for our CPU
3204         (md_begin): Added matrix for setting the proper opcode-level &
3205         device-flags according to cpu type and revision. Rewrite the
3206         opcode hasher.
3207         (c4x_operand_parse): Fix opcode bug
3208         (c4x_operands_match): New function argument. Added dry-run
3209         mechanism, that is optional error generation. Added constraint 'i'
3210         and 'j'.
3211         (c4x_insn_check): Added new function for post-verification of the
3212         generated insn.
3213         (md_assemble): Check all opcodes before croaking because of an
3214         argument mismatch. Need this to be able to fully support
3215         ortogonally arguments.
3216         (md_parse_options): Revised commandprompt swicthes and added new
3217         ones.
3218         (md_show_usage): Complete rewrite of printout.
3220 2002-11-16  Svein E. Seldal  <Svein.Seldal@solidas.com>
3222         * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3223           (c4x_operands_match): Added check for 8-bits LDF insn. Give
3224           warning when using constant direct bigger than 2^16. Add the new
3225           arguments.
3227 2002-11-11  Christopher Faylor  <cgf@redhat.com>
3229         * configure.in: Use .gdbinit under Cygwin.
3230         * configure: Regenerate.
3232 2002-11-11  Christopher Faylor  <cgf@redhat.com>
3234         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3235         STRICT_PE_FORMAT.
3237 2002-11-11  Svein E. Seldal  <Svein.Seldal@solidas.com>
3239         * config/tc-tic4x.c: Declare as many functions as possible as
3240         static. Maintenance on the general indenting. Removed unnecessary
3241         pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3242         function. Add support for new DSP, TMS320VC33. Fix bug for
3243         converting flonum constants.
3244         (c4x_do_align): Add proper align handling. Setup align to insert
3245         NOP's.
3246         (c4x_gen_to_words): Support for extended TI type floats.
3247         (md_atof): Proper dumping of multiple-word littlenums.
3248         (c4x_atof): Added support for extended TI type floats.
3249         (c4x_stringer): Added new function to handle compact strings.
3250         (c4x_emit_char): Added new function argument to handle custom
3251         length inserts, like single-byte strings.
3252         * config/tc-tic4x.h: Add proper align handling with NOP's.
3253         * Makefile.am: Added tic4x dependecy
3254         * Makefile.in: Regenerate
3256 2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
3258         * macro.c (get_any_string): Correct logic for not going beyond end
3259         of in->ptr[].
3261 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
3263         * config/tc-mmix.c (get_putget_operands): Mark both possible
3264         operands as invalid at beginning.
3266         * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3267         Initialize target of fixup to zero.
3269 2002-11-07  Alexandre Oliva  <aoliva@redhat.com>
3271         * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3272         NEWABI, but we should still emit HI16_S for non-PIC n32.
3274 2002-11-06  Richard Henderson  <rth@redhat.com>
3276         * config/tc-alpha.c (alpha_validate_fix): Move code ...
3277         (alpha_fix_adjustable): ... here.
3278         * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3280 2002-11-07  Eric Kohl  <ekohl@rz-online.de>
3282         * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3283         of a label.
3285 2002-11-05  H.J. Lu <hjl@gnu.org>
3287         * config/tc-mips.c (support_64bit_objects): Check *l before it
3288         is freed.
3290 2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
3292         * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3293         SEC_LOAD flags for sections marked as 's'.
3295 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
3297         * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3298         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3299         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3300         default.
3302         * dep-in.sed: Fix typo.
3304 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
3306         * configure.in: Update ARM CPU patterns.
3307         * configure: Regenerated.
3309 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3311         * itbl-lex.l: Use #include <> for generated headers.
3312         * itbl-ops.c: Likewise.
3314 2002-10-28  Daniel Jacobowitz  <drow@mvista.com>
3316         * doc/gasp.texi: Fix typo in deprecation note.
3318 2002-10-23  Nick Clifton  <nickc@redhat.com>
3320         * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3321         _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3323 2002-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
3325         * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3326         (tc_frob_file_before_adjust): Don't define.
3327         * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3328         function.
3329         (mmix_frob_file_before_adjust): Remove ineffective function.
3331 2002-10-23  Hans-Peter Nilsson  <hp@axis.com>
3333         * config/tc-cris.c (SIMPLE_EXPR): New macro.
3334         (cris_relax_frag): New function.
3335         (md_estimate_size_before_relax) <case ENCODE_RELAX
3336         (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3337         expressions that will become absolute expressions to relaxation.
3338         (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3339         STATE_WORD)>: Expect only absolute expressions.  Use the symbol
3340         value, not distance to symbol.
3341         <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3342         Ditto.  Correct placement of fixup.
3343         (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3344         (gen_bdap): Ditto.
3345         * config/tc-cris.h (cris_relax_frag): Declare.
3346         (md_relax_frag): Define.
3348 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
3350         * config/obj-elf.c (special_sections): Use correct types for init
3351         array sections.
3352         (obj_elf_change_section): Don't mess with init array section type.
3354 2002-10-21  Richard Sandiford  <rsandifo@redhat.com>
3356         * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3357         for relocs against symbols in a merged section.
3359 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
3361         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3362         table as register names.
3364 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
3366         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3367         for option -m31.
3369 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
3371         * expr.c (operand): Add support for n.nn flonums.
3373 2002-10-17  Johannes Stezenbach  <js@convergence.de>
3375         * itbl-parse.y (entry): Provide empty action.
3377 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
3379         * configure.in (BFDVER_H): Set and subst.
3380         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3381         * Makefile.am: Run "make dep-am".
3382         (BFDVER_H): Define.
3383         * configure: Regenerate.
3384         * Makefile.in: Regenerate.
3385         * doc/Makefile.in: Regenerate.
3387 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
3389         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3390         (MD_APPLY_SYM_VALUE): Define for PE too.
3392 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
3394         * Makefile.am: Run "make dep-am".
3395         (CPU_OBJ_VALID): sh64 coff is invalid.
3396         * as.c: #include "bfdver.h".
3397         * Makefile.in: Regenerate.
3398         * config.in: Regenerate.
3400 2002-10-14  Momchil Velikov  <velco@fadata.bg>
3402         * config/tc-v850.c (CHECK_): Remove token pasting operator.
3404 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3406         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3407         * configure: Regenerate.
3409 2002-10-13  Eric Christopher  <echristo@redhat.com>
3410             Alexandre Oliva  <aoliva@redhat.com>
3412         * config/tc-mips.c (s_gpdword): New function.
3413         (mips_pseudo_table): Add .gpdword.
3414         (mips_need_elf_addend_fixup): never for NEWABI.
3415         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3416         GPREL32 as done.
3417         (s_cpadd): Generate .cpadd on NEWABI.
3419 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
3421         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3423 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
3425         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3426         (md_relax_frag): Adjust macro.
3427         * config/tc-mips.c (mips_relax_branch): New variable.
3428         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3429         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3430         (RELAX_MIPS16_P): Adjust.
3431         (append_insn): Emit branch to non-constant in a frag_var if
3432         branch-relaxation is desirable and possible.
3433         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3434         (OPTION_ELF_BASE): Adjust.
3435         (md_parse_option): Handle new options.
3436         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3437         branch relaxation.
3438         (relaxed_branch_length): New function.
3439         (md_estimate_size_before_relax): Handle branch frags.
3440         (mips_relax_frag): Likewise.
3441         (md_convert_frag): Handle branch frags.  Warn if branch is
3442         relaxed.
3444 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3446         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3447         emitted.
3448         (md_apply_fix3): Add TLS relocs.
3449         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3450         @DTPOFF.
3452 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
3453             Alan Modra  <amodra@bigpond.net.au>
3455         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3456         (md_estimate_size_before_relax): Likewise for 8 bit branches.
3458 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
3460         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3461         inside loop.
3463 2002-10-09  Richard Shann <richard.shann@superh.com>
3464             Stephen Clarke <stephen.clarke@superh.com>
3466         * config/tc-sh64.c (sh64_target_format): Add support for sh64
3467         Linux environment.
3469 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3471         * contig/tc-sh.c (sh_local_pcrel): New.
3472         (sh_force_relocation): Use sh_local_pcrel.
3473         (md_pcrel_from_section): Check the relocation type whether it
3474         should be resolved locally. Use S_FORCE_RELOC.
3476 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
3478         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3479         (TC_FORCE_RELOCATION): Tidy arg.
3481 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
3482             Ken Raeburn  <raeburn@cygnus.com>
3483             Aldy Hernandez  <aldyh@redhat.com>
3484             DJ Delorie  <dj@redhat.com>
3485             Michael Meissner  <meissner@redhat.com>
3486             Eric Christopher  <echristo@redhat.com>
3487             Richard Sandiford  <rsandifo@redhat.com>
3489         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3490         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
3491         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3492         (hilo_interlocks): True for CPU_VR5500.
3493         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3494         (mips_fix_vr4122_bugs): New.
3495         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3496         (mips_emit_delays): Likewise.
3497         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3498         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3499         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3500         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3501         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3502         (OPTION_ELF_BASE): Bump.
3503         (md_parse_option): Handle the new options.
3504         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3505         vr5400 and vr5500.
3507 2002-09-29  H.J. Lu <hjl@gnu.org>
3509         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3510         twice if howto->pcrel_offset is true.
3512 2002-09-28  Matt Thomas  <matt@3am-software.com>
3513             Jason Thorpe  <thorpej@wasabisystems.com>
3515         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3516         convert undefined references to GOT32/PLT32 if PIC code is
3517         requested.  Fix comment.
3519 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3521         * config/tc-sh.c (sh_force_relocation): Return 0 for
3522         some PC relative relocations when not relaxing.
3524 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
3526         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3527         Define them if not BFD_ASSEMBLER.
3528         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3529         @tlsld.
3530         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3531         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3532         (tc_gen_reloc): Handle x86-64 TLS relocs.
3534 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
3536         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3537         fixups to current or absolute section.
3539 2002-09-26  Jim Wilson  <wilson@redhat.com>
3541         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3542         and frag_more.
3544 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3546         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3547         capable configuration.
3548         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3549         generation.
3550         (mips_ip): Likewise.
3552 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3554         * config/tc-mips.c (append_insn): Fix jump overflow check.
3556 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
3558         * config/tc-i386.c (process_operands): Warn about "lea" segment
3559         overrides.
3561 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
3563         * write.c: Delete set_segment_vma and prototype. Update all callers.
3565 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
3567         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3568         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
3569         Rename "fseg" to "sym_seg".
3570         * Makefile.am: Run "make dep-am".
3571         * Makefile.in: Regenerate.
3572         * doc/Makefile.in: Regenerate.
3574 2002-09-20  Nick Clifton  <nickc@redhat.com>
3576         * symbols.c (colon): Do not allow symbols to be created in the
3577         absolute section if WORKING_DOT_WORD is not defined and
3578         new_broken_words would require a new frag to be created.
3580 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
3582         * expr.c (expr): Simplify foo-foo here.
3583         (clean_up_expression): Remove O_subtract code.
3585         * write.h (struct fix): Add fx_dot_value.
3586         (dot_value): Declare.
3587         * write.c (dot_value): New var.
3588         (fix_new_internal): Save dot_value as fx_dot_value.
3589         (fixup_segment): Adjust fx_offset using fx_dot_value.
3590         * expr.c (expr): Update dot_value.
3592 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
3594         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3595         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3596         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3597         if not defined.
3598         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3599         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3600         BFD_RELOC_386_TLS_GOTIE.
3602 2002-09-19  Richard Henderson  <rth@redhat.com>
3604         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3605         branch type relocs.
3606         (alpha_force_relocation): Don't special-case branch type relocs.
3608 2002-09-19  Nick Clifton  <nickc@redhat.com>
3610         * config/tc-m68k.c (select_control_regs): Handle situation where
3611         architecture has not yet been selected.
3613 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
3615         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3616         (IS_SEXT_16BIT_NUM): New macro.
3617         (macro_build_ldst_constoffset): New function, to build a set of
3618         instructions to do a load or store from a constant offset relative
3619         to a given register.
3620         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3621         .cprestore pseudo-op.
3623 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
3625         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3627 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3629         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3631 2002-09-17  Stan Cox  <scox@redhat.com>
3633         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3634         (macro): Likewise for la.  Likewise for ld.
3635         (mips_after_parse_args): Make -xgot optional, not the default.
3636         (md_apply_fix3): Allow composite relocation to set up gp.
3637         (tc_gen_reloc): Allow relaxing for newabi.
3638         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3639         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3641 2002-09-17  Nick Clifton  <nickc@redhat.com>
3643         * config/tc-arm.c (md_apply_fix3): Note that an implemented
3644         BFD_RELOC_ARM_IMMEDIATE has been done.
3645         (tc_gen_reloc): Do not issue reloc number of unimplemented
3646         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3647         their name is already in the error message - plus remove them
3648         from the default case.
3650         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3651         behavior of instructions.
3653 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
3655         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3656         Convert functions to K&R format.
3658 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3660         * config/tc-mips.c (pdr_seg): Define only for ELF.
3661         (s_change_section): Remove unused variable. Don't use for nonELF.
3663 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3665         * config/obj-elf.c (obj_elf_change_section): Move prototype to
3666         obj-elf.h
3667         * config/obj-elf.h (obj_elf_change_section): Likewise.
3669 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
3671         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3672         (out_debug_info): Likewise.
3674 2002-09-16  Bruno Haible  <bruno@clisp.org>
3676         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3677         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3678         * config/tc-i386.c (i386_target_format): Likewise.
3679         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3680         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3682 2002-09-13  Nick Clifton  <nickc@redhat.com>
3684         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3685         when deciding if any operands have been skipped.
3687 2002-09-11  Nick Clifton  <nickc@redhat.com>
3689         * NEWS: New TI port supports both C4x and C3x series of DSPs.
3691         * po/tr.po: Updated Turkish translation.
3693 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
3695         * config/tc-i386.c (md_apply_fix3): Allow addend for
3696         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3697         BFD_RELOC_386_TLS_LE_32.
3699 2002-09-05  Jeff Law  <law@redhat.com>
3701         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3702         marker relocations such as ENTRY/EXIT.
3703         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3704         to both OBJ_ELF and OBJ_SOM.
3706 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
3708         * doc/internals.texi (md_apply_fix3): Expand.
3709         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3710         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3711         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3712         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3713         EXTERN_FORCE_RELOC): Document.
3714         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3715         * as.h: Don't include struc-symbol.h for arc.
3716         (IS_ELF): Define.
3717         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3718         subtract absolute symbol.
3719         * obj.h (struct format_ops): Add frob_file_before_fix.
3720         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3721         * symbols.c (S_FORCE_RELOC): New function.
3722         * symbols.h (S_FORCE_RELOC): Declare.
3723         * write.c (TC_FORCE_RELOCATION): Change default.
3724         (TC_FORCE_RELOCATION_ABS): Define.
3725         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3726         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3727         (TC_FORCE_RELOCATION_SECTION): Don't define.
3728         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3729         (TC_FORCE_RELOCATION_SUB_ABS): Define.
3730         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3731         (TC_VALIDATE_FIX_SUB): Define.
3732         (TC_FIX_ADJUSTABLE): Don't define.
3733         (MD_APPLY_SYM_VALUE): Define this instead.
3734         (abs_section_sym): New variable.
3735         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
3736         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
3737         Don't put the absolute section sym on fixups here.
3738         (fix_segment): New function.
3739         (write_relocs): Don't call fixup_segment from here.
3740         (write_object_file): Instead call tc_frob_file_before_fix,
3741         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3742         Don't output the absolute section symbol.
3743         (fixup_segment): Rewrite.
3744         * write.h (abs_section_sym): Declare.
3745         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3746         obj_aout_frob_file.
3747         (aout_format_ops): Adjust to suit.
3748         * config/obj-aout.h (obj_frob_file): Don't define.
3749         (obj_frob_file_before_fix): Define.
3750         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3751         (S_FORCE_RELOC): Define.
3752         * config/obj-bout.h (S_FORCE_RELOC): Define.
3753         * config/obj-coff.c (coff_format_ops): Init new field.
3754         * config/obj-coff.h: Formatting fixes.
3755         (obj_sec_sym_ok_for_reloc): Define.
3756         (S_FORCE_RELOC): Define.
3757         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3758         (ecoff_frob_file): .. from here.
3759         (ecoff_format_ops): Add new function.
3760         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3761         (obj_frob_file_before_fix): Define.
3762         * config/obj-elf.c (elf_format_ops): Init new field.
3763         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3764         * config/obj-ieee.h: Formatting fixes.
3765         (S_FORCE_RELOC): Define.
3766         * config/obj-multi.h (obj_frob_file_before_fix): Define.
3767         * config/obj-vms.h (S_FORCE_RELOC): Define.
3768         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3769         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3770         for BFD_RELOC_32 and BFD_RELOC_64.
3771         (alpha_fix_adjustable): Remove extern and weak tests.
3772         (alpha_before_fix): Rename from alpha_adjust_symtab.
3773         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3774         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3775         (TC_VALIDATE_FIX): Tweak param name.
3776         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3777         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3778         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3779         (MD_APPLY_SYM_VALUE): Define.
3780         (tc_adjust_symtab): Don't define.
3781         (alpha_adjust_symtab): Don't declare.
3782         (tc_frob_file_before_fix): Define.
3783         (alpha_before_fix): Declare.
3784         (TC_INIT_FIX_DATA): Tweak param names.
3785         * config/tc-arc.c: Include "struc-symbol.h".
3786         (md_pcrel_from): Remove undefined sym fudge.
3787         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3788         Don't set fx_addnumber.
3789         (tc_gen_reloc): Remove spurious fx_addnumber comment.
3790         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3791         (EXTERN_FORCE_RELOC): Define.
3792         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3793         (tc_gen_reloc): Fudge ARM_GOTPC addend.
3794         (arm_validate_fix): Return void.
3795         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3796         Add plt and got reloc tests.
3797         (arm_force_relocation): Call S_FORCE_RELOC.
3798         * config/tc-arm.h (struct fix): Forward declare.
3799         (TC_VALIDATE_FIX): No longer set add_symbolP.
3800         (arm_validate_fix): Adjust declaration.
3801         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3802         (TC_FORCE_RELOCATION): Tweak param name.
3803         (TC_INIT_FIX_DATA): Likewise.
3804         (obj_fix_adjustable): Don't define.
3805         (tc_fix_adjustable): Call arm_fix_adjustable.
3806         (TC_FIX_ADJUSTABLE): Don't define.
3807         (MD_APPLY_SYM_VALUE): Define.
3808         (EXTERN_FORCE_RELOC): Define.
3809         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3810         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3811         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3812         Remove *valP fudges and code to subtract abs sym.  Don't set
3813         fx_addnumber.
3814         * config/tc-avr.h: Formatting.
3815         (EXTERN_FORCE_RELOC): Define.
3816         (MD_APPLY_SYM_VALUE): Define.
3817         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3818         (md_apply_fix3): Remove code to subtract abs sym.
3819         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
3820         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3821         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3822         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3823         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3824         (tc_fix_adjustable): Remove extern, weak tests.
3825         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3826         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
3827         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
3828         and code to subtract abs sym.
3829         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3830         (d10v_force_relocation): Call S_FORCE_RELOC.
3831         * config/tc-d10v.h: Don't include write.h.
3832         (struct fix): Instead, forward declare.
3833         (MD_PCREL_FROM_SECTION): Tweak param names.
3834         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3835         (d10v_fix_adjustable): Likewise.
3836         (obj_fix_adjustable): Don't define.
3837         (tc_fix_adjustable): Define.
3838         (TC_FORCE_RELOCATION): Tweak param name.
3839         (MD_APPLY_SYM_VALUE): Define.
3840         (EXTERN_FORCE_RELOC): Define.
3841         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3842         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
3843         and code to subtract abs sym.
3844         * config/tc-d30v.h: Don't include write.h.
3845         (struct fix): Instead, forward declare.
3846         (MD_PCREL_FROM_SECTION): Tweak param names.
3847         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3848         (MD_APPLY_SYM_VALUE): Define.
3849         (EXTERN_FORCE_RELOC): Define.
3850         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3851         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3852         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3853         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3854         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3855         Don't use fx_addnumber.
3856         * config/tc-dlx.h: Don't include write.h.
3857         (md_convert_frag): We're not alpha twice over.
3858         (EXTERN_FORCE_RELOC): Define.
3859         (obj_fix_adjustable): Don't define.
3860         (tc_fix_adjustable): Define.
3861         (TC_FIX_ADJUSTABLE): Don't define.
3862         (MD_APPLY_SYM_VALUE): Define.
3863         (LOCAL_LABELS_DOLLAR): Undef always.
3864         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3865         (fr30_fix_adjustable): Remove extern, weak tests.
3866         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3867         (obj_fix_adjustable): Don't define.
3868         (tc_fix_adjustable): Define.
3869         (struct fix): Forward declare.
3870         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
3871         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3872         (frv_fix_adjustable): Don't do extern, weak tests.
3873         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3874         (TC_FIX_ADJUSTABLE): Don't define.
3875         (obj_fix_adjustable): Don't define.
3876         (tc_fix_adjustable): Define.
3877         (struct fix): Forward declare.
3878         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
3879         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3880         * config/tc-h8300.h (struct fix): Forward declare.
3881         (EXTERN_FORCE_RELOC): Define.
3882         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3883         (hppa_fix_adjustable): Don't test extern or weak.  Don't
3884         symbol_mark_used_in_reloc.
3885         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3886         and S_IS_WEAK.
3887         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3888         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3889         (TC_FORCE_RELOCATION_SECTION): Don't define.
3890         (MD_APPLY_SYM_VALUE): Define.
3891         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3892         to subtract abs sym.
3893         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3894         (MD_APPLY_SYM_VALUE): Define.
3895         (MD_PCREL_FROM_SECTION): Tweak param name.
3896         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3897         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3898         (i386_force_relocation): New function.
3899         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3900         (TC_VALIDATE_FIX): Likewise.
3901         (TC_FIX_ADJUSTABLE): Don't define.
3902         (MD_APPLY_SYM_VALUE): Define.
3903         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3904         (i386_force_relocation): Declare.
3905         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3906         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3907         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3908         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3909         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3910         (EXTERN_FORCE_RELOC): Define.
3911         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
3912         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
3913         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
3914         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3915         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3916         Remove #if 0 code.  Invert return boolean.
3917         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3918         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3919         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3920         (tc_coff_sizemachdep): Prototype.
3921         (i960_handle_align): Likewise.
3922         (i960_validate_fix): Adjust declaration.
3923         (reloc_callj): Likewise.
3924         (EXTERN_FORCE_RELOC): Define.
3925         (TC_FORCE_RELOCATION_SUB_SAME): Define.
3926         (TC_FORCE_RELOCATION_ABS): Define.
3927         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3928         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3929         (TC_FIX_ADJUSTABLE): Don't define.
3930         (MD_APPLY_SYM_VALUE): Define.
3931         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3932         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3933         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3934         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3935         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3936         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3937         (MD_APPLY_SYM_VALUE): Define.
3938         (EXTERN_FORCE_RELOC): Define.
3939         (TC_FORCE_RELOCATION): Tweak param name.
3940         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3941         (m32r_fix_adjustable): Don't test extern, weak.
3942         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3943         (MD_APPLY_SYM_VALUE): Define.
3944         (obj_fix_adjustable): Don't define.
3945         (tc_fix_adjustable): Define.
3946         (tc_frob_file): Don't define.
3947         (tc_frob_file_before_fix): Define.
3948         (EXTERN_FORCE_RELOC): Define.
3949         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
3950         BFD_RELOC_VTABLE_ENTRY address.
3951         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3952         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3953         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3954         Remove duplicated fx_done code.
3955         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3956         (EXTERN_FORCE_RELOC): Define.
3957         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3958         relaxable_symbol.
3959         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3960         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3961         (TC_FIX_ADJUSTABLE): Don't define.
3962         (EXTERN_FORCE_RELOC): Define.
3963         (MD_APPLY_SYM_VALUE): Define.
3964         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3965         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3966         Remove fx_addsy tests.
3967         (mcore_force_relocation): Call S_FORCE_RELOC.
3968         (mcore_fix_adjustable): Don't test fx_addsy.
3969         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3970         (EXTERN_FORCE_RELOC): Define.
3971         (obj_fix_adjustable): Don't define.
3972         (tc_fix_adjustable): Define.
3973         (MD_APPLY_SYM_VALUE): Define.
3974         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3975         (mips_pic): No longer static.
3976         (mips_force_relocation): Call S_FORCE_RELOC.
3977         (mips_fix_adjustable): Remove extern, weak tests.
3978         * config/tc-mips.h (enum mips_pic_level): Declare.
3979         (mips_pic): Declare.
3980         (tc_frob_file): Don't define.
3981         (tc_frob_file_before_fix): Define this instead.
3982         (EXTERN_FORCE_RELOC): Define.
3983         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3984         with reg_section tests.  Set fx_done instead of calling
3985         symbol_clear_used_in_reloc on bad relocs.
3986         (tc_gen_reloc): Zero fx_addsy on bad relocs.
3987         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
3988         (mmix_adjust_symtab): Simplify list handling.  Abort on any
3989         nonsense.
3990         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
3991         BFD_RELOC_MMIX_LOCAL.
3992         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
3993         (EXTERN_FORCE_RELOC): Define.
3994         (MD_PCREL_FROM_SECTION): Tweak param name.
3995         (tc_frob_file): Don't define.
3996         (tc_frob_file_before_fix): Define this instead.
3997         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3998         Remove SEC_CODE checks.
3999         (mn10300_fix_adjustable): Remove extern and weak tests.
4000         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
4001         (TC_FORCE_RELOCATION): Tweak param name.
4002         (obj_fix_adjustable): Don't define.
4003         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
4004         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
4005         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
4006         (openrisc_fix_adjustable): Don't test fx_addsy.
4007         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
4008         (obj_fix_adjustable): Don't define.
4009         (tc_fix_adjustable): Define this instead.
4010         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4011         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
4012         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4013         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4014         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
4015         (MD_APPLY_SYM_VALUE): Define.
4016         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
4017         Don't subtract symbol value.
4018         * config/tc-pj.h (md_pcrel_from): Tweak param name.
4019         (EXTERN_FORCE_RELOC): Define.
4020         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4021         (MD_APPLY_SYM_VALUE): Define.
4022         (obj_fix_adjustable): Don't define.
4023         (tc_fix_adjustable): Define this instead.
4024         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
4025         section sym.
4026         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
4027         (ppc_force_relocation <elf version>): New.
4028         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
4029         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
4030         comments.  Don't subtract fx_subsy as that is already done.
4031         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
4032         (MD_PCREL_FROM_SECTION): Likewise.
4033         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
4034         ppc_force_relocation.
4035         (TC_FORCE_RELOCATION_SECTION): Delete.
4036         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4037         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4038         (MD_APPLY_SYM_VALUE): Define.
4039         * config/tc-s390.c: #include "dwarf2dbg.h".
4040         (s390_insn): Remove excess parens.
4041         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4042         (tc_s390_force_relocation): Call S_FORCE_RELOC.
4043         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
4044         non-NULL.  Don't subtract off fx_addsy value.
4045         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4046         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4047         (TC_FIX_ADJUSTABLE): Don't define.
4048         (MD_APPLY_SYM_VALUE): Define.
4049         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
4050         (SWITCH_TABLE): Likewise.
4051         (sh_force_relocation): Call S_FORCE_RELOC.
4052         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
4053         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
4054         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
4055         fx_addnumber is zero on entry.  Save val in fx_addnumber.
4056         (tc_gen_reloc): Don't subtract fx_subsy.
4057         * config/tc-sh.h (struct fix): Move.
4058         (obj_fix_adjustable): Don't define.
4059         (tc_fix_adjustable): Define this instead.
4060         (TC_FIX_ADJUSTABLE): Don't define.
4061         (MD_APPLY_SYM_VALUE): Define.
4062         (SWITCH_TABLE_CONS): Define.
4063         (SWITCH_TABLE): Define.
4064         (TC_FORCE_RELOCATION_SUB_SAME): Define.
4065         (TC_VALIDATE_FIX_SUB): Define.
4066         (MD_PCREL_FROM_SECTION): Tweak param name.
4067         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4068         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4069         (TC_FORCE_RELOCATION_SUB_ABS): Define.
4070         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4071         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4072         (TC_FORCE_RELOCATION_SUB_SAME): Define.
4073         (TC_VALIDATE_FIX_SUB): Define.
4074         (MD_PCREL_FROM_SECTION): Tweak param name.
4075         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
4076         (tc_gen_reloc): Use S_FORCE_RELOC.
4077         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
4078         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
4079         (TC_FORCE_RELOCATION_ABS): Define this instead.
4080         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4081         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4082         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
4083         (MD_APPLY_SYM_VALUE): Define.
4084         (TC_FIX_DATA_PRINT): Tweak param name.
4085         * config/tc-tic30.c (USE_STDOUT): Don't define.
4086         (md_parse_option): Remove stupid debug code.
4087         (tc_gen_reloc): Don't use fx_addnumber.
4088         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
4089         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
4090         * config/tc-v850.h (obj_fix_adjustable): Don't define.
4091         (tc_fix_adjustable): Define this instead.
4092         (TC_FIX_ADJUSTABLE): Don't define.
4093         (MD_APPLY_SYM_VALUE): Define this instead.
4094         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4095         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4096         (TC_FIX_ADJUSTABLE): Don't define.
4097         (MD_APPLY_SYM_VALUE): Define this instead.
4098         (tc_fix_adjustable): Remove extern and weak tests.
4099         * config/tc-w65.h (struct fix): Forward declare.
4100         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
4101         S_FORCE_RELOC.
4102         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
4103         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
4104         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
4105         absolute symbol.
4106         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
4107         (MD_APPLY_SYM_VALUE): Define.
4108         (obj_fix_adjustable): Don't define.
4109         (tc_fix_adjustable): Define this instead.
4110         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
4112 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
4114         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
4115         (ppc_fix_adjustable <coff version>): Cleanup.
4117         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
4118         (md_parse_option): No -a64 without BFD64.
4119         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
4120         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
4122 2002-09-04  Nick Clifton  <nickc@redhat.com>
4124         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
4125         instructions into the hash table if the target cpu is the BookE32.
4127 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
4129         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
4130         ATTRIBUTE_UNUSED.
4132 2000-08-28  Catherine Moore  <clm@redhat.com>
4134         * tc-v850.c (v850_relax): Declare.
4135         (v850_longcode): New routine.
4136         (v850_handle_align): New routine.
4137         (md_pseudo_table): Add longcall and longjump.
4138         (md_parse_option): Check for relax option.
4139         (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
4140         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
4141         (md_apply_fix3): Likewise.
4142         (v850_force_relocation): Likewise.
4143         (v850_comm): Change the current section.
4144         (md_assemble): Ensure that the correct value is put in the
4145         fixup.
4146         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4147         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
4148         Remove redundant v850ea support.
4149         * tc-v850.h (HANDLE_ALIGN): Define.
4150         (v850_handle_align): Declare.
4151         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
4153 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
4155         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
4156         * configure: Regenerate.
4157         * NEWS: Mention new port.
4159 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4161         * config/obj-coff.c: Add sdef definition.
4162         * config/obj-coff.h: Add tic4x include file and set
4163         target format.
4164         * config/tc-tic4x.c: New file.
4165         * config/tc-tic4x.h: New file.
4167 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
4169         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
4170         (TC_ADJUST_RELOC_COUNT): Tweak param name.
4171         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
4172         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
4173         (RELOC_ENUM): Define.
4174         (fix_new_internal): Use RELOC_ENUM.
4175         (fix_new, fix_new_exp): Likewise.
4176         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
4177         Replace gotos with continue.
4178         (write_relocs): Formatting.  Avoid symbol loops in
4179         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
4180         errors, and error number in other cases.
4181         (fixup_segment): Remove param names from prototype.  Rename
4182         "this_segment_type" to "this_segment".  Update linkrelax comment.
4183         Remove "size, "place" and "where" local vars.  Formatting.  Update
4184         "no symbol" comment.  Remove #if 0 and #if 1.
4186         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
4188 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
4190         * dwarf2dbg.c: Always include dwarf2dbg.h.
4191         (dwarf2_directive_file): Adjust dummy version args.
4192         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4193         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4194         when symbol values differ.
4195         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4196         (pseudo_set <O_subtract>): Remove unnecessary segment test.
4197         * config/obj-bout.c (obj_pseudo_table): Warning fix.
4199 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
4201         * config/tc-w65.c (md_section_align): Fix typo.
4202         (md_parse_option): Return 0, not 1.
4204 2002-08-22  Nick Clifton  <nickc@redhat.com>
4206         * doc/as.texinfo (Section): Note that if '@' is a comment
4207         character then another symbol is used to prefix the section's
4208         type.
4210 2002-08-22  Christian Groessler <chris@groessler.org>
4212         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4213         "case 0" case.
4215 2002-08-12  Graeme Peterson  <gp@qnx.com>
4217         * configure.in: Add support for sh-**-nto* target.
4218         * configure: Regenerate.
4220 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
4222         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4224 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4226         * config/tc-ppc.c (ppc_cleanup): Do something only if format
4227         is ELF.
4228         (ppc_apuinfo_section_add): Define only if format is ELF.
4229         (md_assemble): Emit APUinfo section only if format is ELF.
4230         Fix formatting.
4232 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
4234         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4235         * config/tc-frv.c: Likewise.
4236         * config/tc-hppa.c: Likewise.
4237         * config/tc-ia64.c: Likewise.
4238         * config/tc-ip2k.c: Likewise.
4239         * config/tc-m68hc11.c: Likewise.
4240         * config/tc-m68k.c: Likewise.
4241         * config/tc-mmix.c: Likewise.
4242         * config/tc-mn10300.c: Likewise.
4243         * config/tc-sh.c: Likewise.
4244         * config/tc-sparc.c: Likewise.
4245         * config/tc-v850.c: Likewise.
4247 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
4249         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4250         by zero.
4252 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4254         From matthew green  <mrg@redhat.com>
4256         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4257         PPC_OPCODE_PPC is, except for BookE architectures.
4258         (md_parse_option): Add support for -mspe.
4259         (md_show_usage): Add -mspe.
4260         (md_parse_option): Add support for -me500 and
4261         -me500x2 to generate code for Motorola e500 core complex.
4262         (md_show_usage): Add -me500 and -me500x2.
4264         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4265         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4266         PPC_APUINFO_BRLOCK): New macros.
4268         (ppc_cleanup): New function.
4269         (ppc_apuinfo_section_add): New function.
4270         (APUID): New macro.
4271         (md_assemble): Collect info and write the APUinfo section.
4273         * config/tc-ppc.h (md_cleanup): Define.
4274         (ppc_cleanup): Export.
4275         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4277 2002-08-17  Stan Cox  <scox@redhat.com>
4279         * config/obj-elf.c (obj_elf_change_section): Make non-static.
4280         config/tc-mips.c (s_change_section): New function to support
4281         IRIX .section pseudo-op.
4283 2002-08-16  Nick Clifton  <nickc@redhat.com>
4285         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4287 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
4289         * config/tc-mips.c (macro_build_jalr): Make sure we generate
4290         the fix-up against on the right frag.
4291         (s_cpsetup): Likewise.  Parse third argument as expression, to
4292         handle global symbols and forward/backward labels correctly.
4294 2002-08-14  Nick Clifton  <nickc@redhat.com>
4296         * read.c (stringer): Catch attempts to create strings in the abs
4297         section.
4299         * config/tc-alpha.c: Fix compiling for COFF targets.
4300         Some minor formatting tidyups.
4302 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4304         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4305         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4306         according to the reloc.
4307         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4308         (TC_FORCE_RELOCATION): Define.
4309         (tc_m68hc11_force_relocation): Declare.
4311         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4312         (s_m68hc11_relax): New function for relax group.
4313         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4314         beginning of jump instruction.
4315         (md_pcrel_from): Rename from md_pcrel_from_section and fix
4316         address computation.
4317         (tc-gen_reloc): Update.
4318         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4319         PC-relative fixup.
4320         (tc_m68hc11_force_relocation): New function, handle new relocs.
4321         (tc_m68hc11_fix_adjustable): New to make sure there are enough
4322         reloc for the linker relax pass.
4323         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4324         and VTABLE relocs.
4326 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4328         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4329         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4330         (s_m68hc11_mode): New function for .mode pseudo op.
4331         (s_m68hc11_mark_symbol): New function for .far and .interrupt
4332         pseudo op.
4333         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4334         (m68hc11_elf_final_processing): Declare.
4336 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4338         * config/tc-m68hc11.c (md_begin): Take into account additional
4339         page operand for call instruction.
4340         (print_opcode_format): Likewise.
4341         (check_range): Likewise for page range checking.
4342         (get_operand): Don't skip a possible comma in operands.
4343         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4344         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4345         (fixup24): New to handle call reloc.
4346         (build_insn): Handle missing page operand for call instruction.
4347         (find): Likewise.
4348         (md_apply_fix3): Take into account new relocs.
4349         (get_operand): Fix the mode for indexed indirect addressing.
4350         (build_indexed_byte): Fix post index byte for indexed indirect mode.
4352 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
4354         * config/tc-mips.c (mips_ip): Don't work out the value of
4355         constant %hi()s here.
4357 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
4359         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4360         for ELF, and don't bother checking ELF relocs when non-ELF.
4361         (i386_immediate): Allow absolute_section expressions for aout.
4362         (i386_displacement): Likewise.  Also test bfd_is_com_section.
4363         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4364         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4365         not when fx_addsy.  Remove dead code.
4367 2002-08-09  Graeme Peterson  <gp@qnx.com>
4369         * configure.in: Add support for ppc-*-nto* target.
4370         * configure: Regenerate.
4372 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
4374         * config/tc-i386.h: Reorganize.
4376 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4378         * config/tc-mips.c (macro): Handle a register plus a 16-bit
4379         immediate offset in "dla" and "la" expansions.
4381 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
4383         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
4384         Remove "bfd_gas=yes" from target table when covered later.
4385         Consolidate some entries.
4386         * configure: Regenerate
4388 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
4390         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4391         at start of insn, pass it to output_disp and output_imm.
4392         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
4393         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4394         properly addend.
4395         (output_imm): Added arguments.  Compute properly addend for
4396         R_386_GOTPC.
4397         (md_apply_fix3): Remove R_386_GOTPC handling.
4399 2002-08-06  George France <france@handhelds.org>
4401         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
4402         and m21264b processor names and cpu types.
4403         * doc/c-alpha.texi: Documented new types.
4405 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
4407         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4409 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
4411         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4412         handling to BFD_RELOC_MIPS16_GPREL.
4414 2002-08-01  Nick Clifton  <nickc@redhat.com>
4416         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4417         pool is computed using signed arithmetic so that proper sign
4418         extension is performed if X_add_number is a 64-bit integer.
4420 2002-08-01  H.J. Lu  <hjl@gnu.org>
4421             Daniel Jacobowitz  <drow@mvista.com>
4423         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4424         .debug_line section unless it has line information.
4426 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
4428         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4429         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4430         Allow default displacement size to be an option "--disp-size-default".
4431         (md_number_to_disp): Make error messages include value. Use %d to
4432         print integers, not %s.
4433         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4434         get duplicate messages sometimes.
4435         (convert_iif): Grow frag to max possible instruction size. Avoid
4436         creating unnecessary fixes.
4437         (md_number_to_field) Add prototype.
4438         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4439         prototypes and make static.
4440         (struct addr_mode): Make mode and scaled_mode explicitly signed.
4441         (evaluate_expr): Use resultP argument instead of exprP global.
4442         (get_addr_mode): Quiten compiler warnings.
4443         (encode_operand): eliminate unused variables. Quiten compiler
4444         warnings. Eliminate nul character in format strings.
4445         (parse): argc is unsigned.
4446         (reloc): Type cast index to quieten compiler.
4447         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4448         (md_convert_frag): Note unused parameters. Remove unused
4449         variables.
4450         (md_create_long_jump, md_create_short_jump,
4451         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4452         unused parameters.
4454 2002-07-31  Nick Clifton  <nickc@redhat.com>
4456         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4457         of the PDP-11 and 2.11BSD a.out support.
4459 2002-07-31  Momchil Velikov  <velco@fadata.bg>
4461         * config/tc-v850.c (md_assemble): Fix range check for immediate
4462         operand.
4464 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
4466         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4467         to Broadcom SB-1 core support.
4469 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4471         * config/tc-mips.c (mips_target_format): Fix formatting.
4472         Add recognition of n32 ABI formats.
4474 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4476         * tc-mips.c (load_address): Don't clobber $at when loading a
4477         64-bit address in non-PIC code if noat is in effect.
4478         (macro): Likewise.
4480 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4482         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4483         used in division/multiply macro expansions similarly to how they
4484         are used in the variants with break instructions.
4485         (macro2): Likewise.
4487 2002-07-30  Graeme Peterson  <gp@qnx.com>
4489         * configure.in: Add support for arm-*-nto target.
4490         * configure: Regenerate.
4492 2002-07-30  Nick Clifton  <nickc@redhat.com>
4494         * config/tc-arm.c (struct literal_pool): Add fields to allow
4495         multiple literal pools to be maintained.
4496         (find_literal_pool): New function.
4497         (find_or_make_literal_pool): New function.
4498         (add_to_literal_pool): Use find_or_make_literal_pool.
4499         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4500         needed.
4501         (s_ltorg): Use find_literal_pool.
4502         (arm_cleanup): Dump all literal pools.
4503         * doc/c-arm.texi: Document new behaviour of only dumping literal
4504         pools upon request.
4506 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
4508         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4509         rather than PPC_OPCODE_32 for powerpc64*.
4511 2002-07-25  Nick Clifton  <nickc@redhat.com>
4513         * po/es.po: Updated Spanish translation.
4514         * po/fr.po: Updated French translation.
4516 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
4518         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
4519         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4520         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4521         * configure, config.in: Regenerate.
4522         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4523         (mips_set_options): Remove "abi" field.
4524         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
4525         with mips_abi.
4526         (mips_cpu): Remove.
4527         (mips_arch_string, mips_arch_info): New vars.
4528         (mips_tune_string, mips_tune_info): New vars.
4529         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4530         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4531         (mips_isa_to_str, mips_cpu_to_str): Remove.
4532         (mips_ip): If the selected architecture is a generic ISA rather
4533         than a processor, only mention the ISA level in error messages.
4534         (OPTION_MCPU): Remove.
4535         (OPTION_FP64): New.
4536         (md_longopts): Add -mfp64, remove -mcpu.
4537         (mips_set_option_string): New fn.
4538         (md_parse_option): Make -mipsN update file_mips_isa rather than
4539         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
4540         Don't let -mgp32 and -mfp32 change the ABI.
4541         (show): Move to end of file.  Constify string argument.
4542         (md_show_usage): Move to the end of the file.  Read available
4543         architectures from mips_cpu_info_table.
4544         (mips_set_architecture): New fn.
4545         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
4546         is an alias for -march=mipsN.  Don't change the ABI based on other
4547         flags.  Infer the register size from the ABI as well as the
4548         architecture.  Complain about more conflicting arguments.
4549         Unify logic with GCC.
4550         (s_mipsset): Don't change the ABI.
4551         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4552         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4553         "mipsN"-type entries.  Remove entries that vary only in the
4554         manufacturer's prefix, or that have "000" replaced by "k".
4555         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
4556         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4557         (mips_parse_cpu): New fn.
4558         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4559         (mips_cpu_info_from_isa): Minor formatting tweak.
4561 2002-07-24  Nick Clifton  <nickc@redhat.com>
4563         * po/sv.po: Updated Swedish translation.
4564         * po/es.po: Updated Spanish translation.
4566 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
4568         * Makefile.am: Run "make dep-am".
4569         * Makefile.in: Regenerate.
4570         * doc/Makefile.in: Regenerate.
4571         * config.in: Regenerate.
4572         * po/POTFILES.in: Regenerate.
4574 2002-07-23  Nick Clifton  <nickc@redhat.com>
4576         * po/fr.po: Updated French translation.
4578 2002-07-23  Nick Clifton  <nickc@redhat.com>
4580         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4581         GAS.
4583 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4585         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4586         instead of S_IS_EXTERN.
4587         (md_estimate_size_before_relax): Likewise.
4588         (mips_fix_adjustable): Likewise.
4590 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4592         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4594 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4595             Nick Clifton  <nickc@redhat.com>
4597         * cond.c (s_ifdef): Treat a referenced but not yet defined
4598         symbol as if it were undefined, in exactly the same way as
4599         .equiv.
4601         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4602         consider referenced bug not yet defined symbols to be
4603         undefined.
4605 2002-07-18  Denis Chertykov  <denisc@overta.ru>
4606             Frank Ch. Eigler  <fche@redhat.com>
4607             Alan Lehotsky  <alehotsky@cygnus.com>
4608             John Healy  <jhealy@redhat.com>
4609             Jeff Johnston  <jjohnstn@redhat.com>
4611         * configure.in: Add ip2k configuraton.
4612         * configure: Regenerate.
4613         * Makefile.am: Add ip2k configuraton.
4614         * Makefile.in: Regenerate.
4615         * configure: Regenerate.
4616         * Makefile.in: Regenerate.
4617         * config/tc-ip2k.c: New file.
4618         * config/tc-ip2k.h: New files.
4619         * NEWS: Mention new support.
4620         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4621         * doc/Makefile.in: Regenerate.
4622         * doc/all.texi: Set IP2K
4623         * doc/as.texinfo: Add IP2K description.
4624         * doc/c-ip2k.texi: New file.
4626 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
4628         * NEWS: Reformat to match style of other NEWS files.
4630 2002-07-17  Jan Hubicka  <jh@suse.cz>
4632         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4634 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
4636         * config/tc-z8k.c (build_bytes): Correct order of memset args.
4638 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
4640         * NEWS: Add 'Changes in 2.13'.
4642 2002-07-15  Matt Fredette  <fredette@netbsd.org>
4644         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4646 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
4648         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4649         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
4650         not CODE_64BIT.
4652 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
4654         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4655         (ppc_frob_file_before_adjust): New function.
4656         * config/tc-ppc.h (tc_frob_symbol): Don't define.
4657         (ppc_elf_frob_symbol): Don't declare.
4658         (tc_frob_file_before_adjust): Define.
4659         (ppc_frob_file_before_adjust): Declare.
4661         * config/tc-ppc.c (md_pseudo_table): Warning fix.
4662         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4663         flags.
4664         (ppc_size): Delete.
4665         (ppc_xcoff64): Rename to ppc_obj64.
4666         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4667         (ppc_set_cpu): Set PPC_OPCODE_32 too.
4668         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4669         or bfd_mach_ppc.
4670         (ppc_target_format): Use ppc_obj64 to select format.
4671         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4672         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4673         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
4674         (tc_frob_symbol): Likewise.
4675         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
4676         BFD_DEFAULT_TARGET_SIZE.
4677         (ppc_tc): Likewise.
4678         (ppc_is_toc_sym): Likewise.
4679         (md_apply_fix3): Likewise.
4680         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4681         BFD_DEFAULT_TARGET_SIZE.
4682         (ELF_TC_SPECIAL_SECTIONS): Likewise.
4683         (tc_frob_symbol): Likewise.
4685 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4687         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4688         (mips_ip): Likewise.
4690 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
4692         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4693         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4694         (md_apply_fix3): Formatting.  Remove redundant test.
4695         (tc_gen_reloc): Remove redundant code.
4696         (tc_i386_force_relocation): Delete.  Movy body of function to..
4697         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4699 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
4701         * configure.in: Add hppa-*-openbsd* target, change
4702         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4703         with sparc64 cpu.
4704         * configure: Regenerate.
4706 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4708         * config/tc-mips.c (macro): Shift the 32-bit address range
4709         accessible with a lone "lui" down by 32768.
4711 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4713         * config/tc-mips.c (load_address): Use non-trapping "daddu"
4714         instead of "dadd" in address calculations.
4715         (macro): Likewise.
4717 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
4719         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4720         movzx fudges.
4721         (md_assemble): Instead, zap the suffix here.
4723 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
4725         * NEWS: Remove next release number until the release is actually
4726         upon us.
4728 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
4730         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4731         Run "make dep-am".
4732         * Makefile.in: Regenerate.
4734 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4736         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4737         to symbols in merge sections, even non pc-relative ones.
4739 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
4741         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4743 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
4745         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4746         .softregs and .eeprom.
4748 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
4750         * NEWS: Note the next release is 2.13.
4752 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
4754         * po/tr.po: New translation imported.
4756 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
4758         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4759         (ecoff_directive_def): Likewise.
4760         (ecoff_directive_tag): Likewise.
4761         * listing.c (file_info): Likewise.
4762         * hash.c (what): Likewise.
4764 2002-06-25  H.J. Lu <hjl@gnu.org>
4766         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4767         * Makefile.in: Regenerated.
4769 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
4771         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4772         (assemble_ppi): Generate warning if the same register is used
4773         twice as destination in the same padd / pmuls instruction.
4775 2002-06-18  Dave Brolley  <brolley@redhat.com>
4777         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4778         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4779         * configure.in: Support frv-*-*.
4780         * Makefile.am (CPU_TYPES): Add frv.
4781         (TARGET_CPU_CFILES): Add tc-frv.c.
4782         (TARGET_CPU_HFILES): Add tc-frv.h.
4783         (DEPTC_frv_coff): New variable.
4784         (DEPTC_frv_elf): New variable.
4785         (DEPOBJ_frv_coff): New variable.
4786         (DEPOBJ_frv_elf): New variable.
4787         (DEP_frv_coff): New variable.
4788         (DEP_frv_elf): New variable.
4789         * tc-frv.c: New file.
4790         * tc-frv.h: New file.
4792 2002-06-17  Catherine Moore <clm@redhat.com>
4794         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4796 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
4798         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4800 2002-06-17  Tom Rix <trix@redhat.com>
4802         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4804 2002-06-14  H.J. Lu  <hjl@gnu.org>
4805             Daniel Jacobowitz  <drow@mvista.com>
4807         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4808         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4809         * config/tc-mips.c (s_mips_file): Call s_app_file_string
4810         and new_logical_line for the first .file directive.
4811         * read.c (s_app_file_string): New function.
4812         (s_app_file): Call it.
4813         * read.h (s_app_file_string): Add declaration.
4815 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
4817         * configure.in: Remove MIPS_STABS_ELF.
4818         * configure: Regenerated.
4819         * config.in: Regenerated.
4820         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4821         for MIPS targets.
4822         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4823         ".extern".
4824         (pdr_seg): Declare unconditionally.
4825         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4826         (s_mips_end): Likewise.  Generate stabs function markers.
4827         (s_mips_ent): Generate stabs function markers.
4828         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4829         ELF.
4830         (s_mips_mask): Likewise.
4831         (mips_flag_mdebug): New.
4832         (md_longopts): Add "mdebug" and "no-mdebug".
4833         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4834         (mips_after_parse_args): Set mips_flag_mdebug.
4835         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4837 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4839         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4840         value twice for RELA relocations.
4842 2002-06-12  Ben Elliston  <bje@redhat.com>
4844         * symbols.c (resolve_symbol_value): Initialise final_val.
4846         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4848 2002-06-11  Tom Rix  <trix@redhat.com>
4850         * config/tc-ppc.c (ppc_subseg_align): Delete.
4851         (ppc_change_csect): Default csect align is 2.
4852         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4854 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4856         * config/tc-avr.c (mcu_types): Update.
4858 2002-06-08  Matt Thomas  <matt@3am-software.com>
4860         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4861         (vax-*-netbsd*): New targets.
4862         * configure: Regenerate.
4863         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4864         * config/tc-vax.c: Add support for ELF and PIC.
4865         (flag_want_pic): New flag.
4866         (float_cons): Fix prototype.
4867         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4868         (md_assemble): Introduce a new is_absolute local, and use it
4869         rather than repeating the test.  Make fatal errors actually
4870         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
4871         Add support for ELF.  Add support for PIC.
4872         (md_convert_frag): Adjust for BFD_ASSEMBLER.
4873         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4874         BFD_ASSEMBLER.
4875         (vax_reg_parse): Make the % register prefix mandatory for ELF,
4876         optional for a.out, and not allowed for VMS.  Adjust all callers.
4877         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4878         (md_create_long_jump): Likewise.
4879         (md_undefined_symbol): Likewise.
4880         (md_section_align): Likewise.
4881         (md_shortopts): Allow -k and -K for ELF.
4882         (md_parse_option): Set flag_want_pic if -k or -K.
4883         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4884         (tc_gen_reloc): New function if BFD_ASSEMBLER.
4885         * config/tc-vax.h (tc_headers_hook): Remove.
4886         (TARGET_FORMAT): Set according to object format and target
4887         environment.
4888         (BFD_ARCH, TARGET_ARCH): Define.
4889         (NO_RELOC): Adjust for BFD_ASSEMBLER.
4890         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4891         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4892         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4894 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
4896         * Makefile.am: Run "make dep-am".
4897         * Makefile.in: Regenerate.
4899         * as.c: Replace CONST with const.
4900         * write.c: Likewise.
4901         * config/obj-coff.c: Likewise.
4902         * config/tc-a29k.c: Likewise.
4903         * config/tc-arm.c: Likewise.
4904         * config/tc-dlx.c: Likewise.
4905         * config/tc-h8300.c: Likewise.
4906         * config/tc-h8500.c: Likewise.
4907         * config/tc-i370.c: Likewise.
4908         * config/tc-i860.c: Likewise.
4909         * config/tc-i960.c: Likewise.
4910         * config/tc-m68hc11.c: Likewise.
4911         * config/tc-m68k.c: Likewise.
4912         * config/tc-m88k.c: Likewise.
4913         * config/tc-mcore.c: Likewise.
4914         * config/tc-mips.c: Likewise.
4915         * config/tc-ns32k.c: Likewise.
4916         * config/tc-pdp11.c: Likewise.
4917         * config/tc-pj.c: Likewise.
4918         * config/tc-s390.c: Likewise.
4919         * config/tc-sh.c: Likewise.
4920         * config/tc-sparc.c: Likewise.
4921         * config/tc-tahoe.c: Likewise.
4922         * config/tc-tic80.c: Likewise.
4923         * config/tc-v850.c: Likewise.
4924         * config/tc-vax.c: Likewise.
4925         * config/tc-w65.c: Likewise.
4926         * config/tc-z8k.c: Likewise.
4928 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
4930         Based on patch from Matt Green:
4931         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4932         * config/tc-mips.c (s_mips_file): Renamed from s_file.
4933         (s_mips_loc): New function.
4934         (mips_nonecoff_pseudo_table): Call them.
4935         (append_insn): Call dwarf2_emit_insn.
4937 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4939         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4940         to -1.
4941         (file_ase_mips16): New veriable.
4942         (mips_eabi64): Remove.
4943         (CPU_HAS_MIPS16): New define.
4944         (CPU_HAS_MDMX): Fix data type.
4945         (md_begin): Code cleanup. Use file_ase_mips16.
4946         (mips_elf_final_processing): Handle mips16 header flag.
4947         Handle EABI flag without intermediate variable.
4949 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4951         * doc/as.texinfo: Update MIPS documentation.
4953 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4955         * config/tc-mips.c: Add define for $zero register.
4956         (md_begin): Add $zero as alias name for $0.
4957         (insn_uses_reg): Use ZERO define.
4958         (mips_ip): Add $zero as alias name for $0.
4959         (mips16_ip): Likewise.
4960         (s_cplocal): Demand empty rest of input line.
4961         (tc_get_register): Likewise. Add support for $kt0, kt1 register
4962         names. Use ZERO define. Fix input_line_pointer progress.
4964 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
4966         * symbols.c: Replace CONST by const throughout.
4967         (symbol_find_exact): Split out from..
4968         (symbol_find_base): ..here.
4969         * symbols.h: Replace CONST by const throughout.
4970         (symbol_find_exact): Declare.
4971         * config/obj-elf.c: #include "struc-symbol.h".
4972         (elf_frob_file): If group name matches an exported symbol, use that
4973         symbol for the signature and ".group" as the section name.
4975 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
4977         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4978         but warn about it.
4980 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
4982         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4983         and mips_opts.ase_mdmx if they are uninitialized.
4985 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4987         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4988         (hppa_force_relocation): Check if a stub just before the start symbol
4989         of the last call_info is reachable before forcing relocation.  Fix
4990         typo.
4992 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4994         * config/tc-mips.c (mips_after_parse_args): New function.
4995         (md_begin): Move processing of defaults to mips_after_parse_args.
4996         config/tc-mips.h (md_after_parse_args): Define.
4998 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
5000         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
5001         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
5002         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
5003         * configure: Regenerate.
5004         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
5005         environment.
5007 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
5009         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
5011 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
5013         * config/obj-elf.c (obj_elf_change_section): Set and check elf
5014         linkonce flag.  Print all warnings.
5015         (obj_elf_section): Parse ",comdat" for groups.
5016         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
5017         consistency of comdat flag.
5019 2002-06-02  Richard Henderson  <rth@redhat.com>
5021         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
5022         with LITERALs without sequence numbers.
5024 2002-06-01  Richard Henderson  <rth@redhat.com>
5026         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
5027         Rename them LITUSE_ALPHA_*.
5029 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
5031         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
5032         accept parentheses enclosed register lists.
5034 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
5036         * Makefile.am: Run "make dep-am".
5037         * Makefile.in: Regenerate.
5038         * po/POTFILES.in: Regenerate.
5040 2002-05-31  Graeme Peterson  <gp@qnx.com>
5042         * configure.in: Add i386-*-nto-qnx*.
5043         * configure: Regenerate.
5045 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5047         * config/tc-mips.c (mips_ip): Use unsigned long values for
5048         warning output.
5050 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5052         * config/tc-mips.c (s_cpsetup): Fix initialization of
5053         mips_cpreturn_register and mips_cpreturn_offset.
5055 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5057         * config/tc-mips.c (s_cpsetup): Fix comment.
5059 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5061         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
5062         (mips_ip): Likewise.
5063         (mips16_ip): Likewise.
5064         (tc_get_register): Likewise.
5066 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
5067             Ed Satterthwaite  <ehs@broadcom.com>
5069         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
5070         (mips_opts): Initialize "ase_mdmx" member.
5071         (file_ase_mdmx): New variable.
5072         (CPU_HAS_MDMX): New macro.
5073         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
5074         based on command line options and configuration defaults.
5075         (macro_build): Note in comment that use of MDMX in macros is
5076         not currently allowed.
5077         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
5078         "Z" MDMX operand types.
5079         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
5080         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
5081         types.
5082         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
5083         Add support for "-mdmx" and "-no-mdmx" options.
5084         (OPTION_ELF_BASE): Move to accommodate new options.
5085         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
5086         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
5087         file_ase_mdmx was set.
5088         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
5089         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
5090         nomdmx" directives.
5092 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5094         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
5095         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
5096         command line switch conforming to gcc conventions.
5097         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
5099 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5101         * config/tc-mips.c (macro_build_jalr): New Function.
5102         (md_begin): NewABI uses big GOTs.
5103         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
5104         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
5105         (load_address): Add some NewABI PIC support.
5106         (macro): Likewise.
5107         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
5108         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
5110 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5112         * config/tc-mips.c (load_address): Use mips_gp_register instead
5113         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
5114         instead.
5115         (macro): Use mips_gp_register instead of hardcoded value.
5117 2002-05-30  Richard Henderson  <rth@redhat.com>
5119         * expr.h (operatorT): Add O_md17..O_md32.
5120         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
5121         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
5122         O_tprelhi, O_tprello, O_tprel): New.
5123         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
5124         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
5125         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
5126         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
5127         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
5128         (md_apply_fix3): Handle TLS relocations.
5129         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5130         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
5131         associated TLS reloc.  Check lituse_tls relocs match up.
5132         (emit_insn): Handle TLS relocations.
5133         (ldX_op): Remove.
5135         * doc/c-alpha.texi: Add docs for tls relocations.
5137 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5139         * config/tc-mips.c (mips_gprel_offset): New variable.
5140         (s_gpvalue): Use it.
5142 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
5144         * gas/config/tc-d10v.c (check_resource_conflict): Only check
5145         write-write conflicts.
5146         (md_assemble): Reformat introductory comment.
5147         (parallel_ok): Prevent packing only if the first
5148         instruction cannot be packed.
5150 2002-05-30  Jason Eckhardt <jle@redhat.com>
5151             Tom Rix <trix@redhat.com>
5153         * config/tc-d10v.c (build_insn): Check for immediates.
5155 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5157         * config/tc-mips.c: Replace GP in comments by $gp.
5158         (mips_big_got): Initialize.
5159         (mips_trap): Initialize.
5160         (load_address): Use mips_gp_register instead of hardcoded value.
5161         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
5162         (macro): Use mips_gp_register instead of hardcoded value.
5163         (macro2): Change load_address calls.
5164         (md_pcrel_from): Comment formatting.
5165         (s_cpload): Use mips_gp_register instead of hardcoded value.
5166         (s_cprestore): Likewise. Comment formatting.
5167         (s_gpword): Fix data type.
5168         (s_cpadd): Use mips_gp_register instead of hardcoded value.
5169         (nopic_need_relax): Replace GP in comments by $gp.
5170         (mips_elf_final_processing): Better comment.
5172 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
5174         * configure.in: Add DLX configuraton
5175         * Makefile.am: Add DLX configuraton
5176         * configure: Regenerate.
5177         * Makefile.in: Regenerate.
5178         * config/tc-dlx.c: New file.
5179         * config/tc-dlx.h: New files.
5180         * NEWS: Mention new support.
5182 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
5184         * config/obj-coff.c (write_object_file): Add missing semicolon.
5186 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5188         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5189         by the define. Remove superfluous check of mips_opts.mips16.
5190         (append_insn): Likewise. Canonicalize variable increments.
5191         (macro_build): Canonicalize variable increments.
5192         (macro_build_lui): Likewise.
5193         (load_register): Likewise.
5194         (load_address): Move pointer initialization.
5195         (macro): Move pointer to a more local scope. Canonicalize variable
5196         increments. Better comments. Replace magic constant for RA by the
5197         define.
5198         (macro2): Replace magic constant for RA by the define. Canonicalize
5199         variable increments.
5200         (mips_ip): Canonicalize variable increments.
5201         (mips16_ip): Replace magic constant for RA by the define.
5202         (my_getSmallParser): Canonicalize variable increments/decrements.
5203         (my_getPercentOp): Likewise.
5204         (my_getSmallExpression): Likewise.
5205         (s_align): Likewise.
5206         (s_mipsset): Likewise.
5207         (s_cpsetup): Likewise.
5208         (s_insn): Remove superfluous check of mips_opts.mips16.
5209         (s_mips_stab): Likewise.
5210         (mips_handle_align): Canonicalize variable increments.
5211         (s_mips_ent): Likewise.
5212         (s_mips_end): Add comment.
5214 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5216         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5217         * configure: Regenerate.
5219 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
5221         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5222         * Makefile.in: Regenerate.
5223         * dep-in.sed: Reorder to match OBJS in Makefile.am.
5224         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5225         * configure: Regenerate.
5226         * as.h: Use #include "" instead of <> for local header files.
5227         * flonum-konst.c: Likewise.
5228         * flonum-mult.c: Likewise.
5229         * gasp.c: Likewise.
5230         * listing.c: Likewise.
5231         * config/tc-ia64.h: Likewise.
5232         * config/tc-v850.h: Likewise.
5234 2002-05-24  TAMURA Kent <kent@netbsd.org>
5236         * configure.in: Add a target for i386-netbsdpe.
5237         * configure: Regenerate.
5239 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5241         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5242         (obj_elf_common): Call elf_common.
5243         (obj_elf_tls_common): New function.
5244         (elf_pseudo_tab): Support .tls_common.
5245         (special_sections): Add .tdata and .tbss.
5246         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5247         sections.
5248         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5249         (obj_elf_parse_section_letters): Include T in error message.
5250         * config/tc-ppc.c (ppc_section_letter): Likewise.
5251         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5252         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5253         SEC_MERGE.
5254         * config/tc-sparc.c (md_apply_fix3): Likewise.
5255         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5256         Define them if not BFD_ASSEMBLER.
5257         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5258         and @NTPOFF.
5259         (md_apply_fix3): Add TLS relocs.
5260         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5261         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5262         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5263         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5264         (ia64_elf_section_letter): Include T in error message.
5265         (md_begin): Support TLS operators.
5266         (md_operand): Likewise.
5267         (ia64_gen_real_reloc_type): Support TLS relocs.
5268         * write.c (adjust_reloc_syms): Don't change symbols in
5269         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5271 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
5273         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5274         round the relocation up rather than down.
5276 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
5278         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5279         flag.
5280         * doc/as.texinfo: Document that the COFF version of .section
5281         ignores the 'a' flag.
5283 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
5285         * config/tc-alpha.c (assemble_tokens): Protect use of
5286         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5288         * write.c (size_seg): Check adjustment to last frag.
5289         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5290         section alignment.
5291         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5292         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5293         (write_object_file): Invoke md_do_align if available, and use
5294         frag_align_code on text sections.
5295         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5296         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5297         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5298         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5299         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
5300         BFD_ASSEMBLER too.
5302 2002-05-22  H.J. Lu <hjl@gnu.org>
5304         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5305         for source file.
5307 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
5309         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5310         as ELF builds.
5312 2002-05-22  H.J. Lu <hjl@gnu.org>
5314         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5315         for one .loc for compiler.
5317 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5319         * config/tc-mips.c (macro): Relax warning, it's toot strict for
5320         embedded-PIC.
5322 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5324         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5325         Optimize the rotate by zero case.
5327 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
5329         * configure.in: Remove accidental enabling of bfd_gas=yes for
5330         sh-coff targets.
5331         * configure: Regenerate.
5333 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
5335         * app.c: Fix formatting.
5336         * as.c: Likewise.
5337         * ehopt.c: Likewise.
5338         * expr.c: Likewise.
5339         * input-file.c: Likewise.
5340         * listing.c: Likewise.
5341         * macro.h: Likewise.
5342         * stabs.c: Likewise.
5343         * symbols.c: Likewise.
5345 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
5347         * config/obj-generic.c: Delete file.
5348         * config/obj-generic.h: Likewise.
5350 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5352         * config/tc-avr.c (mcu_types): Update for new devices.
5354 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5356         * config/tc-mips.c (macro): Warn about wrong la/dla use.
5358 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5360         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5361         worked sometimes by accident. Fix copy&paste comment.
5363 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5365         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5366         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5367         (mips_elf_final_processing): Let n32 use .reginfo.
5369 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5371         * config/tc-mips.c (append_insn): Fix too small range of variable.
5373 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
5375         * config/tc-arm.c (arm_cleanup): Remove redundant call to
5376         listing_prev_line().
5378 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
5380         * config/tc-arm.c (md_assemble): Remove redundant call to
5381         listing_prev().
5383         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5384         loc_directive_seen.
5386         * stabs.c (s_stab_generic): Fix grammatical error in warning
5387         message.
5389 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
5391         * write.c (subsegs_finish): Don't specially align last subseg.
5393 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
5395         * stabs.c (s_stab_generic): Warn about a description field that is
5396         too big.
5398         * config/obj-coff.c: Fix compile time warnings when compiling
5399         without BFD_ASSEMBLER defined.
5400         Fix formatting.
5402         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5403         target.
5404         (md_pcrel_from_section): Use md_pcrel_from().
5406 2002-05-11  Bruno Haible  <bruno@clisp.org>
5408         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5409         by dwarf2_directive_loc, instead of calling dwarf2_where.
5411 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
5413         * config/obj-coff.h: Fix formatting.
5414         * config/tc-mcore.c: Likewise.
5415         * config/tc-mn10300.c: Likewise.
5416         * config/tc-openrisc.c: Likewise.
5417         * config/tc-or32.c: Likewise.
5418         * config/tc-pdp11.c: Likewise.
5419         * config/tc-ppc.c: Likewise.
5420         * config/tc-ppc.h: Likewise.
5421         * config/tc-sh64.c: Likewise.
5422         * config/tc-sh.c: Likewise.
5423         * config/tc-tic54x.c: Likewise.
5424         * config/tc-xstormy16.c: Likewise.
5425         * config/tc-xstormy16.h: Likewise.
5427 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
5429         * config/obj-coff.c: Fix formatting.
5430         * config/obj-elf.c: Likewise.
5431         * config/tc-alpha.c: Likewise.
5432         * config/tc-arm.c: Likewise.
5433         * config/tc-d10v.c: Likewise.
5434         * config/tc-d30v.c: Likewise.
5435         * config/tc-h8300.c: Likewise.
5436         * config/tc-hppa.c: Likewise.
5438 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
5440         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5441         reloc when no_cond_jump_promotion.
5443 2002-05-08  Jim Wilson  <wilson@redhat.com>
5445         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5446         current variable part of frag.
5448 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
5450         * config/tc-mmix.c: Fix formatting.
5451         * config/tc-mmix.h: Likewise.
5453 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
5455         * configure: Regenerate.
5457 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
5459         * config/tc-m68k.c: Fix formatting.
5461 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
5463         * Makefile.am: Honour DESTDIR.
5464         * Makefile.in: Regenerate.
5466 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
5468         * config/tc-ia64.c: Fix formatting.
5469         * config/tc-ia64.h: Likewise.
5471 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
5473         * config/tc-mips.c: Fix formatting.
5474         * config/tc-s390.c: Likewise.
5475         * config/tc-s390.h: Likewise.
5477 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
5479         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5480         information for instructions.
5482 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
5484         * as.h: Fix formatting.
5485         * cgen.c: Likewise.
5486         * cgen.h: Likewise.
5487         * dwarf2dbg.c: Likewise.
5488         * frags.h: Likewise.
5489         * gasp.c: Likewise.
5490         * macro.c: Likewise.
5491         * read.c: Likewise.
5492         * stabs.c: Likewise.
5493         * symbols.c: Likewise.
5495 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
5497         * app.c (mri_pseudo): Only declare for TC_M68K.
5499         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5500         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5501         BFD_RELOC_16_BASEREL.
5502         (md_assemble): Likewise.
5503         (md_apply_fix3): Likewise.
5505 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
5507         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5508         zero into an add of zero - it is not the same.
5510 2002-05-01  Arati Dikey <aratid@kpit.com>
5512         * tc-sh.c (get_specific): Generate warning if the same
5513         destination register is used in parallel instructions.
5515 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
5517         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5519 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
5521         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5522         backwards to prevent cascading errors.
5524 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
5526         * configure.in: Add support for powerpc-*-windiss.
5527         * configure: Regenerated.
5529 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
5531         * config/tc-s390.c (md_parse_option): Formatting.
5533         * config/tc-i386.c: Formatting fixes, add missing space in error
5534         message.
5536 2002-04-24  Christian Groessler <chris@groessler.org>
5538         * config/tc-z8k.c (build_bytes): Add support for new cases:
5539         CLASS_IGNORE and ARG_NIM4.
5540         (md_assemble): Prevent destruction of input_line_pointer if
5541         get_operands returns failure.
5543 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
5545         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5546         instructions to be generated by macros.
5548 2002-04-24  Andreas Schwab  <schwab@suse.de>
5550         * config/tc-i386.c (output_jump, output_disp)
5551         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5552         more.
5553         (md_apply_fix3): Remember addend value for rela relocations.
5554         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5556 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
5558         * config/tc-mips.c (macro_build): Add close-parenthesis missing
5559         from previous change.
5561 2002-04-22  Eric Christopher  <echristo@redhat.com>
5563         * config/tc-mips.c (macro_build): Add warning if macro instructions
5564         are expanded into a branch delay slot.
5566 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
5568         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5569         numbers, gdb relies on them to detect the start of the prologue.
5571 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5573         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5574         symbols in merge sections.
5576 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
5578         * as.c (main): Don't reference _bfd_chunksize.
5580 2002-04-15  Tom Rix  <trix@redhat.com>
5582         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5583         symbols in merge sections.
5585 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
5587         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5588         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5589         argument for the precision.
5590         (gen_to_words): Update accordingly.
5592 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
5594         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5595         BFD_VERSION_STRING unavailable.
5596         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5598 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
5600         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5601         symbol_used_in_reloc_p is true.
5603         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5604         endian hosts.
5606 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
5608         * dep-in.sed: Cope with absolute paths.
5609         * Makefile.am (dep.sed): Subst TOPDIR.
5610         Run "make dep-am".
5611         * Makefile.in: Regenerate.
5613 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5615         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5616         (mips_ip): Remove unused variable.
5617         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5618         unsigned char with bfd_byte.
5619         (s_file): Remove unused variable.
5620         (s_mips_ent): Likewise.
5622 2002-04-03  Tom Rix  <trix@redhat.com>
5624         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5625         (build_insn): Same.
5626         (find_opcode): Fix warning in as_warn.
5627         * config/tc-d10v.h: Update Copyright.
5629 2002-04-03  Alan Matsuoka <alanm@redhat.com>
5630             Tom Rix  <trix@redhat.com>
5632         From Jeff Knaggs <jknaggs@redhat.com>
5633         * config/tc-d10v.c (check_resource_conflict): New function to
5634         check for resource conflicts.
5636         From Jason Eckhardt  <jle@redhat.com>
5637         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5638         imm3 fields.
5639         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5640         reserved control registers is used.
5641         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5642         imm3 fields.
5644         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
5645         * tc-d10v.c (parallel_ok): Prevent packing only if the first
5646         instruction cannot be packed.
5648         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
5649         * gas/config/tc-d10v.c (check_resource_conflict): Only check
5650         write-write conflicts.
5651         (md_assemble): Reformat introductory comment.
5652         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5653         arguments.
5655 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
5657         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5658         O_logical_not>): Derive final_seg from add_symbol.
5659         <O_multiply..O_logical_or>: More final_seg twiddles.
5661 2002-04-01  Jessica Han  <jessica@cup.hp.com>
5663         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5664         in 32-bit mode.
5666 2002-03-27  Andreas Schwab  <schwab@suse.de>
5668         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5669         field for pc-relative fixups.
5670         (output_disp): Likewise.
5671         (md_estimate_size_before_relax): Likewise.
5672         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5673         pc-relative fixups in 64bit mode.
5675 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
5677         * config/te-aix5.h: Typo fix.
5679 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
5681         * Makefile.am: Run "make dep-am".
5682         * Makefile.in: Regenerate.
5683         * doc/Makefile.in: Regenerate.
5685 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
5687         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5688         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5690 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
5692         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5693         the EXTENDED bit here; report the estimate according to the
5694         current size.
5696 2002-03-18  Tom Rix  <trix@redhat.com>
5698         * configure.in: Add AIX 5 support.
5699         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5700         * config/te-aix5.h: New file. AIX 5 support.
5701         * configure: Regenerate.
5703 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
5705         * po/fr.po: Updated version.
5707 2002-03-16  Andreas Jaeger  <aj@suse.de>
5709         * doc/c-mips.texi (Machine Dependencies): Add new node.
5711 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
5713         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5714         (mips_opts): Initialize "ase_mips3d" member.
5715         (file_ase_mips3d): New variable.
5716         (CPU_HAS_MIPS3D): New macro.
5717         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5718         based on command line options and configuration defaults.
5719         (macro_build, mips_ip): Accept MIPS-3D instructions if
5720         mips_opts.ase_mips3d is set.
5721         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5722         Add support for "-mips3d" and "-no-mips3d" options.
5723         (OPTION_ELF_BASE): Move to accommodate new options.
5724         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5725         (mips_elf_final_processing): Add a comment indicating that a
5726         MIPS-3D ASE ELF header flag should be set, when one exists.
5727         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5728         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5729         nomips3d" directives.
5731 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
5733         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5734         a weak symbol in same section to be within reach.
5736 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
5738         * po/fr.po: Updated version.
5740 2002-03-12  Andreas Schwab  <schwab@suse.de>
5742         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5743         body record so that an error is given for misplaced .save
5744         pseudo-ops.
5746 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
5748         * config/tc-i386.h (REX_OPCODE): Define.
5749         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5750         (rex_byte): typedef to int.
5751         * config/tc-i386.c: Group prototypes and vars together.
5752         Formatting fixes.  Remove occurrences of "register" keyword.
5753         (true): Delete.
5754         (false): Delete.
5755         (mode_from_disp_size): Add INLINE keyword to prototype.
5756         (fits_in_signed_byte): Likewise.
5757         (fits_in_unsigned_byte): Likewise.
5758         (fits_in_unsigned_word): Likewise.
5759         (fits_in_signed_word): Likewise.
5760         (fits_in_unsigned_long): Likewise.
5761         (fits_in_signed_long): Likewise.
5762         (type_names): Constify.
5763         (intel_float_operand): Constify param.
5764         (add_prefix): Use REX_OPCODE.
5765         (md_assemble): Likewise.  Modify for changed rex_byte.
5766         (parse_insn): Split out of md_assemble.
5767         (parse_operands): Likewise.
5768         (swap_operands): Likewise.
5769         (optimize_imm): Likewise.
5770         (optimize_disp): Likewise.
5771         (match_template): Likewise.
5772         (check_string): Likewise.
5773         (process_suffix): Likewise.
5774         (check_byte_reg): Likewise.
5775         (check_long_reg): Likewise.
5776         (check_qword_reg): Likewise.
5777         (check_word_reg): Likewise.
5778         (finalize_imm): Likewise.
5779         (process_operands): Likewise.
5780         (build_modrm_byte): Likewise.
5781         (output_insn): Likewise.
5782         (output_branch): Likewise.
5783         (output_jump): Likewise.
5784         (output_interseg_jump): Likewise.
5785         (output_disp): Likewise.
5786         (output_imm): Likewise.
5788 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
5790         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5792 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
5794         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5795         relocs except when BFD64.
5797         * write.c (number_to_chars_bigendian): Don't abort when N is
5798         larger than sizeof (VAL).
5799         (number_to_chars_littleendian): Likewise.
5801 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5803         * config/tc-hppa.c (md_apply_fix3): Add cast.
5804         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5805         e_rrsel.
5807 2002-03-05  Paul Koning  <pkoning@equallogic.com>
5809         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5810         (parse_ac5): New function for parsing float regs in float operand.
5811         (parse_expression): Remove attempt to make literals be octal.
5812         (parse_op_no_deferred): Support float literals.
5813         (parse_op): Reject attempts to refer to float regs.
5814         (parse_fop): New function, like parse_op but for float operand.
5815         (md_assemble): Add cases to parse float operands.  Also fix
5816         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5818 2002-03-04  H.J. Lu <hjl@gnu.org>
5820         * config/obj-elf.c (special_section): Add .init_array,
5821         .fini_array and .preinit_array.
5823         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5824         .init_array and .fini_array.
5826 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
5828         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5829         visibility.
5830         (obj_frob_symbol): Copy visibility.
5832 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5834         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5835         s_text.
5836         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5838 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
5840         * po/es.po: Updated.
5842 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
5844         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5845         only, undo the changes made on 2001-06-08, with the
5846         effect being that common or extern symbols are
5847         adjusted for embedded-PIC, but weak symbols are not.
5848         (md_estimate_size_before_relax: Likewise, with the effect
5849         that extern symbols are treated the same as weak symbols
5850         only if not embedded-PIC.
5851         (mips_fix_adjustable) Likewise, with the effect that
5852         weak or extern symbols are not adjusted for embedded-PIC.
5853         (md_apply_fix3): Tweak so that the case where value is zero
5854         is handled more correctly for embedded-PIC code.
5856 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
5858         * doc/as.texinfo (Overview): Add missing @ifset IA64
5860         * configure.in (LINGUAS): Add es.po.
5861         * configure: Regenerate.
5862         * po/es.po: New file.
5864 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5866         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5867         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5868         and NO_PIC cases. Code cleanup.
5869         (macro2): Fix handling of 64bit register loads.
5871 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
5873         * doc/as.texinfo: Add entry for IA64.
5874         * doc/c-ia64.texi: New file.
5876 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
5878         * config/tc-hppa.c: Update copyright date.
5880         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5881         Remove references to chip manufacturers.
5882         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5883         Correct comments.
5884         (md_show_usage): Remove references to chip manufacturers.  Mention
5885         -mpower4.
5886         (md_begin): Test power4 opcode flag bits.
5888 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
5890         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5891         count exceeds prologue count.
5892         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5893         (unwind.label_prologue_count): New member.
5895         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5897         (get_saved_prologue_count): New function.
5898         (save_prologue_count): New function.
5899         (free_saved_prologue_count): New function.
5900         (dot_label_state): Record state label by calling save_prologue_count().
5901         (dot_copy_state): Restore prologue count by calling
5902         get_saved_prologue_count().
5903         (generate_unwind_image): Free up list of saved prologue
5904         counts by calling free_saved_prologue_counts().
5906 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
5908         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5909         function declarations.
5911 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
5913         * NEWS: Note that GASP is now deprecated.
5914         * Makefile.am: Do not build gasp-new by default.
5915         * Makefile.in: Regenerate.
5916         * doc/Makefile.am: Do not install gasp.info.
5917         * doc/Makefile.in: Regenerate.
5918         * gas/gasp.texi: Note that gasp is now deprecated.
5920 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
5922         * NEWS: Mark 2.12 branch.
5924 2002-02-19  Tom Tromey  <tromey@redhat.com>
5926         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5928 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5930         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5931         option input.
5933 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5935         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5936         Make bit size independent of architecture switch.
5937         (md_begin): Add warning for -m64 with -Aesa.
5938         (s390_md_end): Use renamed architecture defines.
5940 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
5942         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5944 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
5946         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5947         instead of CRIS.
5949 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
5951         * config/tc-mips.c (md_estimate_size_before_relax): Really
5952         make sure we treat weak like extern only for ELF.  (Fixes
5953         patch from 2001-07-25.)
5955 2002-02-15  Ben Elliston  <bje@redhat.com>
5957         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5958         works as expected.
5960 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
5962         * NEWS: Mention support for MMIX.
5964 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
5966         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5967         a sequence of indpendent 'if' statements for easier debugging
5968         and future modification.
5970 2002-02-13  Matt Fredette  <fredette@netbsd.org>
5972         * config/tc-m68k.c (md_show_usage): No longer display a
5973         hard-coded "68020" for the default CPU, instead display the
5974         canonical name of the true, configured default CPU.
5975         (m68k_elf_final_processing): Mark objects for sub-68020
5976         CPUs with the new EF_M68000 flag.
5978 2002-02-13  Andreas Schwab  <schwab@suse.de>
5980         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5981         pc-relative relocations to merge sections in 64-bit mode.
5983 2002-02-13  Ben Elliston  <bje@redhat.com>
5985         * NEWS: Document floating point number handling in gasp.
5986         * gasp.c: Include <assert.h> and "xregex.h".
5987         (is_flonum): New function.
5988         (chew_flownum): Likewise.
5989         (change_base): Consume flonums from the input, where possible.
5990         * doc/gasp.texi (Constants): Document floating point numbers.
5992 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5994         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5995         that implicitly use LR and RR selectors.
5997 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
5999         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
6000         and `epsw' as available on AM33 and above only.
6001         (other_register_name): Add logic to handle machine type encoded in
6002         reg_number.
6004 2002-02-11  Tom Rix  <trix@redhat.com>
6006         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
6007         xcoff64.
6009 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
6011         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
6012         Use all over.
6014 2002-02-11  Jan Hubicka  <jh@suse.cz>
6016         * i386.c (md_assemble): Support 32bit address prefix.
6017         (i386_displacement): Likewise.
6018         (i386_index_check): Accept 32bit addressing in 64bit mode.
6020 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6022         * config/tc-sh.c (dot): Removed unused function.
6024 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
6026         * Makefile.am: "make dep-am".
6027         * Makefile.in: Regenerate.
6028         * aclocal.m4: Regenerate.
6029         * config.in: Regenerate.
6030         * configure: Regenerate.
6031         * doc/Makefile.in: Regenerate.
6033 2002-02-10  Richard Henderson  <rth@redhat.com>
6035         * doc/c-alpha.texi: New file.
6036         * doc/Makefile.am (CPU_DOCS): Add it.
6037         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
6039 2002-02-09  Richard Henderson  <rth@redhat.com>
6041         * config/tc-alpha.c (O_samegp): New.
6042         (USER_RELOC_P): Include it.
6043         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
6044         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
6045         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
6046         (alpha_validate_fix): New.
6047         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
6049 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
6051         * doc/c-cris.texi: New.
6052         * doc/all.texi: @set CRIS.
6053         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
6054         Include c-cris.texi.
6055         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
6056         * doc/Makefile.in: Regenerate.
6058 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6060         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
6061         determine if a number is a sign-extended 32-bit number.
6062         (load_register): Use IS_SEXT_32BIT_NUM.
6063         (macro): Check if load/store macro handling is using a
6064         constant 32-bit address on 64-bit address systems, and if
6065         so optimize the generation of that address.
6067 2002-02-08  Richard Henderson  <rth@redhat.com>
6069         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
6070         we've eliminated all foreign relocation types yet.
6071         (alpha_fix_adjustable): Likewise.
6073 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
6075         Contribute sh64-elf.
6076         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
6077                     Stephen Clarke <Stephen.Clarke@st.com>
6078         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
6079         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
6080         * config/tc-sh.c (md_relax_table): Added default sizes for
6081         non-PC-relative UNDEF_MOVI, and relaxation sequences for
6082         MOVI_16, MOVI_32 and MOVI_48.
6083         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
6084         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
6085         and MOVI_16.
6086         (shmedia_md_estimate_size_before_relax): Remove redundant
6087         blocks.  Set fragP->fr_var even if relaxation type unchanged.
6088         Retain UNDEF_MOVI until expression decays to number.
6089         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6090         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
6091         relocation types.  Take fixP->fx_addnumber into account too.
6092         (shmedia_md_apply_fix): Likewise.
6093         (shmedia_md_convert_frag): Likewise.
6094         (shmedia_build_Mytes): Likewise.
6095         (sh64_consume_datalabel): Complain about nested datalabel.
6096         Support PIC relocs.  Call sh_parse_name.
6097         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
6098         in tc-sh.h to SHmedia reloc types.
6099         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
6100         MOVI_GOTPC): New relaxation constants.
6101         (md_relax_table): Introduce relaxation directives for PIC-related
6102         constants.
6103         (sh_PIC_related_p): Handle datalabel.
6104         (sh_check_fixup): Choose SH5 PIC relocations.
6105         (sh_cons_fix_new): Added BDF_RELOC_64.
6106         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
6107         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6108         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
6109         current ISA is SHmedia, get 7 bytes.
6110         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
6111         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
6112         void function.
6113         * config/tc-sh64.c (shmedia_apply_fix): Rename to
6114         shmedia_apply_fix3 and make void.
6115         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
6116         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
6117         as_bad.
6118         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
6119         * config/tc-sh64.h (md_parse_name): Take &c as argument.
6120         2001-03-14  DJ Delorie  <dj@redhat.com>
6121         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
6122         * doc/Makefile.in(CPU_DOCS): Ditto.
6123         * doc/c-sh64.texi: New file.
6124         * doc/as.texinfo: Add SH64 support.
6125         2001-03-13  DJ Delorie  <dj@redhat.com>
6126         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
6127         A_REUSE_PREV so that its purpose is more obvious.
6128         (shmedia_build_Mytes): Ditto.
6129         2001-03-07  DJ Delorie  <dj@redhat.com>
6130         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
6131         before processing.
6132         (sh64_vtable_inherit): Ditto.
6133         (strip_datalabels): New, strip "datalabel" from given line.
6134         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
6135         pseudos.
6136         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
6137         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
6138         call ...
6139         (shmedia_build_Mytes): ... to here.
6140         2001-03-06  DJ Delorie  <dj@redhat.com>
6141         * config/tc-sh.c: Remove sh64-specific uaquad now that there
6142         is a generic one.
6143         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
6144         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
6145         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
6146         address by one in call to dwarf2_emit_insn.
6147         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
6148         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
6149         alignment handling broken by imported changes.
6150         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
6151         (sh64_handle_align): Declare.
6152         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
6153         (sh64_max_mem_for_rs_align_code): Declare.
6154         (enum sh64_isa_values): Moved here from tc-sh64.c.
6155         (md_do_align): Define.
6156         (sh64_do_align): Declare.
6157         (struct sh64_tc_frag_data): New.
6158         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
6159         changed.
6160         (TC_FRAG_INIT): Change to set new datatype.
6161         (struct sh64_segment_info_type): Rename member
6162         last_flushed_location to last_contents_mark.  All users changed.
6163         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
6164         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
6165         * config/tc-sh.c (md_pseudo_table): Add ".abi".
6166         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
6167         of unsetting seen_insn.
6168         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
6169         call sh64_update_contents_mark.
6170         (sh_handle_align): Remove HAVE_SH64-conditioned code.
6171         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
6172         enum sh64_isa_values.
6173         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
6174         (emitting_crange): Boolean guard moved to file scope from function
6175         scope in sh64_set_contents_type.
6176         (s_sh64_abi): New.
6177         (sh64_update_contents_mark): New; most split out from
6178         sh64_flush_pending_output.
6179         (shmedia_md_end): Call sh64_update_contents_mark.  Set
6180         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
6181         (sh64_do_align): New function.
6182         (sh64_max_mem_for_rs_align_code): New function.
6183         (sh64_handle_align): Rename from shmedia_do_align.  Make
6184         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
6185         four.  Change return-type to void.
6186         (shmedia_elf_new_section): Remove.
6187         (shmedia_md_assemble): Call sh64_update_contents_mark.
6188         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
6189         new frag.  Call sh64_update_contents_mark after making the new
6190         frag.
6191         (sh64_flush_pending_output): Just call sh64_update_contents_mark
6192         and sh_flush_pending_output.
6193         (sh64_flag_output): Also call md_flush_pending_output, but add
6194         condition on not emitting_crange.
6195         (sh64_tc_cons_fix_new): Remove.
6196         2001-01-12  Nick Clifton  <nickc@redhat.com>
6197         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6198         alignment handling scheme imported from sourceware.
6199         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
6200         * config/tc-sh64.h (TARGET_FORMAT): Define.
6201         (sh64_target_format): Prototype.
6202         * config/tc-sh64.c (sh64_target_mach): New function.
6203         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
6204         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6205         zero_address_frag instead of copying the frag of the symbol.
6206         (shmedia_frob_file_before_adjust): Ditto.
6207         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6208         to valueT to remove signedness.
6209         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
6210         headers to output_bfd.  Do not evaluate symbols if final is false;
6211         do emit fixups.
6212         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6213         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6214         to the current frag, call shmedia_md_convert_frag to emit fixups
6215         and make frag_wane neutralize the frag.  Update comments.
6216         * config/tc-sh.c (md_convert_frag): Change caller of
6217         shmedia_md_convert_frag.
6218         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
6219         * config/tc-sh64.h: Tweak comments and correct formatting.
6220         * config/tc-sh64.c: Ditto.
6221         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6222         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6223         for the no-relocation case.
6224         (shmedia_check_limits): Fix range check being off-by-one for PTA.
6225         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
6226         wrappers.
6227         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
6228         comment.
6229         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6230         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6231         expansion.
6232         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6233         Correct comment.
6234         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6235         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6236         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6237         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6238         al>: Set lowest bit of field to relocate to 1 and rest to empty,
6239         if reloc is emitted.
6240         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
6241         New options plus bugfixes.
6242         * config/tc-sh.c (md_longopts): New options "-no-expand" and
6243         "-expand-pt32".
6244         (md_parse_option): Handle new options.
6245         (md_show_usage): Add blurb for new options.
6246         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6247         (sh64_expand, sh64_pt32): New variables.
6248         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6249         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6250         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
6251         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
6252         <resolved previously-pc-relative relocs>: Handle
6253         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6254         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6255         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6256         points to SHcompact code.
6257         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6258         SH64PCREL16)>: Check that ISA of what operand points at and
6259         PTA/PTB matches, or emit error.
6260         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6261         SHMEDIA_BFD_RELOC_PT.
6262         (shmedia_immediate_op): If pcrel, emit fixup also for constant
6263         operand.
6264         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6265         condition for MOVI expansion.
6266         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6267         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
6268         sh64_expand.
6269         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6270         fixup.
6271         (sh64_target_format): Error-check setting of sh64_pt32 and
6272         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
6273         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6274         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6275         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
6276         * config/tc-sh64.c: Improve comments.
6277         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
6278         not say the linker will check correctness of PTA/PTB expansion.
6279         (shmedia_md_end): Make non-static.
6280         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
6281         prototype.
6282         * config/tc-sh.c (sh_finalize): Remove.
6283         * config/tc-sh.h (md_end): Do not define.
6284         Remove prototype for sh_finalize.
6285         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
6286         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6287         sh64_section_data container when storing section type in tdata
6288         field in elf_section_data.
6289         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6290         EF_SH5.
6291         * Makefile.am: Update dependencies.
6292         * Makefile.in: Regenerate.
6293         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
6294         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6295         dwarf2_emit_insn call with test on debug_type.
6296         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
6297         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6298         CRT_SH5_ISA32 sticky for 64-bit.
6299         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
6300         Generate .crange sections when switching ISA mode or emitting
6301         constants in same section as code.
6302         * config/tc-sh64.c: Reformat structure definitions.
6303         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6304         variables.
6305         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
6306         to emit a .cranges descriptor when contents type changes.  Only
6307         emit error if changing contents type and -no-mix is in effect.
6308         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6309         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6310         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
6311         sh64_flush_last_crange over sections.
6312         When checking main symbol of datalabel symbol, check for
6313         STO_SH5_ISA32, not ISA type of section in definition.
6314         (shmedia_frob_file_before_adjust): Check main symbol for
6315         STO_SH5_ISA32; don't check ISA type of section in definition.
6316         (shmedia_frob_section_type): Adjust for .cranges; set section flag
6317         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6318         .cranges entries have been output.
6319         (shmedia_elf_new_section): Just call md_flush_pending_output.
6320         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6321         fix.  Do not set tc_segment_info_data.in_code for section.  Call
6322         sh64_set_contents_type for SHmedia code.
6323         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6324         false.  Call md_flush_pending_output.
6325         (sh64_target_format): Check that -no-mix and
6326         -shcompact-const-crange are used in sane combination with other
6327         options.
6328         (shmedia_md_pcrel_from_section): Check type of fix for how to
6329         adjust pc-relative.
6330         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6331         not ISA type of section in definition.
6332         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6333         hold contents-type state.
6334         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6335         (sh64_flush_pending_output): Declare.
6336         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6337         (sh64_tc_cons_fix_new): Declare.
6338         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6339         call sh64_flag_output.
6340         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
6341         call sh64_set_contents_type to mark SHcompact code and set
6342         seen_insn.
6343         (md_longopts): New options "-no-mix" and
6344         "-shcompact-const-crange".
6345         (md_parse_option): Handle new options.
6346         (md_show_usage): Add blurb for new options.
6347         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6348         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
6349         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6350         (sh64_last_insn_frag): New.
6351         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6352         to get frag for insn opcode for generating fixups; do not assume it
6353         is the same frag.
6354         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6355         for new insn.
6356         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6357         section.
6358         (TC_FRAG_TYPE): Define as fragS *.
6359         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6360         (sh64_last_insn_frag): Declare.
6361         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6362         not == NULL before dereferencing.
6363         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
6364         Get rid of BFD section flag and EF_SH64_ABI64.
6365         * config/tc-sh64.c (shmedia_frob_section_type): Use
6366         elf_section_data (sec)->tdata, not a specific BFD section flag, to
6367         communicate the section as containing SHmedia code.  Describe why.
6368         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
6369         EF_SH64 regardless of ABI.
6370         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6371         in error message.  Handle resolved expressions for
6372         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6373         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6374         (shmedia_check_limits): Handle BFD_RELOC_64.
6375         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6376         a STO_SH5_ISA32 symbol, only the BFD value.
6377         2000-12-11  Ben Elliston  <bje@redhat.com>
6378         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6379         dwarf2_generate_asm_lineno.
6380         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
6381         Handle PC-relative MOVI expansions with assembler relaxation.
6382         Generate PC-relative relocs from 16-bit PC-relative expressions.
6383         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6384         (shmedia_md_pcrel_from_section): ...here.
6385         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6386         turned completely resolved.  Adjust relocation type for 16-bit
6387         immediate operands that has turned PC-relative.  Adjust back for
6388         MD_PCREL_FROM_SECTION being applied twice.
6389         (shmedia_md_convert_frag): Always emit reloc for expression with
6390         global or weak symbol.  Handle relaxation result for PC-relative
6391         expressions.
6392         (shmedia_md_estimate_size_before_relax): An expression with a weak
6393         or global symbol can not be relaxed.  Break out tests for
6394         relaxable symbol into variable sym_relaxable.
6395         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6396         UNDEF_MOVI)>: Break out any PC-relative expression and change
6397         relaxation type.
6398         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6399         opjp.
6400         <case A_IMMS16>: Fix typo for initial minor relaxation type of
6401         MOVI expansion.  If X_op_symbol of the immediate expression is
6402         set, make an expression symbol for the argument to frag_var.
6403         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6404         relaxations.
6405         (END): Adjust for new relaxations.
6406         (md_relax_table): Add entries for new relaxations.
6407         2000-12-07  Ben Elliston  <bje@redhat.com>
6408         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6409         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
6410         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6411         SHORI operand offsets in PT/PTA/PTB expansions.
6412         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6413         Implement DataLabel semantics.
6414         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6415         shmedia_frob_file_before_adjust.
6416         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6417         (DATALABEL_SUFFIX): Define.
6418         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6419         symbol list to update "datalabel" symbols to their main symbol
6420         counterparts.
6421         (shmedia_frob_file_before_adjust): New.
6422         (sh64_adjust_symtab): For remaining datalabel symbols, set to
6423         undefined and set STT_DATALABEL.
6424         (sh64_frob_label): Initialize TC symbol field.
6425         (sh64_consume_datalabel): Actually implement semantics.  New
6426         parameter operandf, call it instead of expression.
6427         (sh64_exclude_symbol): New.
6428         * config/tc-sh64.h (md_parse_name): Pass on the function operand
6429         to sh64_consume_datalabel.
6430         (tc_symbol_new_hook): Define to tc_frob_symbol.
6431         (TC_SYMFIELD_TYPE): Define to symbolS *.
6432         (tc_frob_symbol): Define to call sh64_exclude_symbol.
6433         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
6434         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6435         case.
6436         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6437         generating dwarf2 debug information.
6438         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
6439         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6440         elf64-sh64 for the 64-bit ABI.
6441         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6442         option.
6443         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
6444         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6445         case-insensitivity.
6446         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
6447         * config/tc-sh64.c: Tweak comments, formatting and error messages.
6448         (enum sh64_abi_values): New type.
6449         (enum sh64_isa_values): New type.
6450         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
6451         (seen_shcompact_mode, seen_shmedia_mode): Delete.
6452         (sh64_abi): Replace shmedia_64.
6453         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6454         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6455         (s_sh64_mode): Check validity for this target.
6456         (sh64_target_format): Initialize defaults for ISA and ABI.
6457         Fallback to old object format if no SH64 ISA or ABI has been
6458         specified.
6459         * config/tc-sh.c (md_parse_option): Check combinations for errors.
6460         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6461         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6462         * config/tc-sh64.h: Fix typo in comment.
6463         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
6464         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6465         <PT fixups for absolute values>: Size will be longest, not
6466         shortest.
6467         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
6468         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6469         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6470         and l1 to hold lowercase of two first characters.  Change all
6471         remaining TO_LOWER to tolower.
6472         * config/tc-sh64.c (TO_LOWER): Delete.
6473         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6474         (md_parse_name): Define.
6475         (sh64_consume_datalabel): Declare.
6476         (DOLLAR_DOT): Define.
6477         * config/tc-sh64.c (shmedia_parse_exp): New.
6478         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6479         (shmedia_parse_reg): Remove const from src
6480         parameter.
6481         (shmedia_get_operands): Ditto for args parameter and ptr variable.
6482         (shmedia_md_assemble): Ditto for op_end variable.
6483         (shmedia_get_operand): Ditto for ptr parameter and src variable.
6484         Use shmedia_parse_exp, not parse_exp.
6485         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6486         parameter.  All callers changed.
6487         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
6488         callers changed.
6489         (shmedia_parse_reg): Put first two character in local variables.
6490         Use tolower, not TO_LOWER.  If no register is found and argtype
6491         indicates a control register, scan shmedia_creg_table
6492         case-insensitive.
6493         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
6494         * Makefile.am (CPU_TYPES): Add sh64.
6495         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6496         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6497         Regenerate dependencies.
6498         * Makefile.in: Regenerate.
6499         * configure.in: Add support for sh64-*-elf*.
6500         * configure: Regenerate.
6501         * config/tc-sh64.h: New.
6502         * config/tc-sh64.c: New.
6503         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6504         .mode, .isa and .uaquad.
6505         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6506         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6507         [HAVE_SH64] (END): Define as 10.
6508         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6509         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6510         MOVI_64): Define.
6511         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6512         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6513         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6514         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6515         Define.
6516         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6517         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6518         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6519         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6520         SHmedia instructions.  Handle state-change after switching to
6521         SHcompact.
6522         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6523         (md_parse_option) [HAVE_SH64]: Parse new options.
6524         (md_show_usage) [HAVE_SH64]: Show usage of new options.
6525         (md_convert_frag) [HAVE_SH64] <default>: Call
6526         shmedia_md_convert_frag instead of abort.
6527         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6528         BFD_RELOC_SH_SHMEDIA_CODE.
6529         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6530         SHcompact or SHmedia code.
6531         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6532         shmedia_md_apply_fix instead of abort.
6533         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6534         result from calling shmedia_md_estimate_size_before_relax instead
6535         of calling abort.
6536         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6537         do the work.
6538         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6539         shmedia_init_reloc and do nothing more if it returns non-zero.
6540         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6541         * po/POTFILES.in: Regenerate.
6542         * po/gas.pot: Regenerate.
6544 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
6546         * config/tc-sh.c (parse_at): Install the correct version of
6547         2002-02-04's patch.
6549         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6550         assume fixP->fx_subsy is non-NULL.
6552 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6554         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6555         A_DISP_PC_ABS, and adjust it by -4.
6556         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6557         expected.
6558         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6559         the operand type is not A_DISP_PC_ABS.
6561 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
6563         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6564         common and weak symbols.  Handle common and weak symbols as
6565         undefined symbols with regards to GREG handling and merging.
6566         (mmix_frob_file): Ditto.
6568 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
6570         * configure.in (hppa-*-netbsd*): New target.
6571         * configure: Regenerate.
6572         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6574 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
6576         * config/tc-v850.c: Add missing prototypes amd use old-style
6577         function definitions.
6578         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6579         (sdata_section tdata_section, zdata_section, sbss_section,
6580         tbss_section, zbss_section, rosdata_section, rozdata_section,
6581         scommon_section, tcommon_section, zcommon_section,
6582         call_table_data_section, call_table_text_section): Delete.
6583         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6584         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6585         v850_call_table_data, v850_call_table_text): Delete.
6586         (struct v850_seg_entry): New.
6587         (v850_seg_table): New.
6588         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6589         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6590         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6591         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6592         (do_v850_seg): New.
6593         (v850_seg): New.
6594         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
6595         recording of alignment.
6596         (md_pseudo_table): Use v850_seg.
6597         (md_begin): Don't init .call_table_data and .call_table_text here.
6598         Set v850_seg_table bss entry.
6600 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
6602         Support on-demand global register allocation by passing on
6603         base-plus-offset relocs to the linker.
6604         * config/tc-mmix.c: Tweak and fix typos in comments.
6605         (allocate_undefined_gregs_in_linker): New variable.
6606         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6607         (md_longopts): Add --linker-allocated-gregs.
6608         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6609         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6610         (md_show_usage): Update text for -x.  Add text for
6611         --linker-allocated-gregs.
6612         (tc_gen_reloc): Derive default value for addend from val and
6613         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
6614         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6615         GREG if allocate_undefined_gregs_in_linker.
6616         * doc/as.texinfo (Overview) <Target MMIX options>: Add
6617         --linker-allocated-gregs.
6618         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6619         --linker-allocated-gregs.  Mention that it's implied by -x.
6620         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6621         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6623         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6625 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
6627         * Makefile.am: Run "make dep-am"
6628         * Makefile.in: Regenerate.
6630 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
6632         * config/tc-or32.c: New file.
6633         * config/tc-or32.h: New file.
6634         * configure.in: Add support for or32 targets.
6635         * configure: Regenerate.
6636         * config/obj-coff.c: Add support for or32 targets.
6637         * config/obj-coff.h: Add support for or32 targets.
6638         * Makefile.am: Add support for or32 targets.
6639         * Makefile.in: Regenerate.
6640         * NEWS: Mention support for OpenRISC.
6641         * doc/Makefile.in: Regenerate.
6642         * po/POTFILES.in: Regenerate.
6643         * po/gas.pot: Regenerate.
6645 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
6647         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6648         and mod.
6650 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
6652         * config/tc-mips.c (tc_gen_reloc): Arrange for
6653         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6654         their LO16 parts, even for ELF.
6656 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
6658         * config/tc-i386.c: Protect definitions of true and false
6659         from redefinition.
6661 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
6663         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6664         made because of .weak, if they are neither defined nor used in any
6665         way.
6667 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
6669         * configure: Regenerated.
6671 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
6673         * doc/Makefile.am (install): Depend on install-info.
6674         * doc/Makefile.in: Regenerate.
6676 2002-01-26  Nick Clifton <nick@redhat.com>
6678         * po/fr.po: Updated version
6680 2002-01-24  Kazu Hirata  <kazu@hxi.com>
6682         * config/tc-h8300.c (check_operand): Don't print a warning
6683         when a valid 24-bit address is given to a 16-bit address
6684         operand.
6686 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6688         * config/tc-sh.c (sh_elf_suffix): Removed.
6689         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6690         sh_end_of_match, sh_parse_name): New functions.
6691         (sh_elf_cons): Simplify.
6692         (parse_exp): Reject misplaced PIC operands.
6693         (md_undefined_symbol): Simplify.
6694         (sh_fix_adjustable): Let @GOTOFF be adjusted.
6695         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6696         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6697         Complain if subsy remains at the end.
6698         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6699         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6701 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
6703         * config/tc-mn10300.c (xr_registers): Move `pc'...
6704         (other_registers): ... here.
6706 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
6708         * Makefile.am: Run "make dep-am".
6709         * Makefile.in: Regenerate.
6710         * gas/po/POTFILES.in: Regenerate.
6712 2002-01-21  DJ Delorie  <dj@redhat.com>
6714         * config/obj-coff.c (obj_coff_init_stab_section): Make the
6715         stabstr_name allocation permanent, as it will be referenced from
6716         the section hash.
6718 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
6720         * configure.in (ia64-*-netbsd*): New target.
6721         * configure: Regenerate.
6723 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
6725         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6726         to @dots call.
6727         <Detailed description, ARM options>: Ditto.
6728         * doc/c-arm.texi (ARM Options): Ditto.
6730 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
6732         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6733         do_mia, do_mar and do_mra respectively.
6734         (do_mav_*): Renamed from do_c_*.
6735         (mav_reg_required_here, mav_parse_offset): Renamed from
6736         cirrus_reg_required_here and cirrus_parse_offset respectively.
6737         (MAV_MODE?): Renamed from CIRRUS_MODE?.
6739 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
6740             Keith Walker  <keith.walker@arm.com>
6742         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6743         (insns): Add pattern for bxj instruction.
6744         (do_bxj): New function.
6745         (arm_cpus): Add arm926ej.
6746         (arm_archs): Add armv5tej.
6748 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
6750         * doc/c-arm.texi: Add new fpe options to list of supported flags.
6752 2002-01-19  Keith Walker  <keith.walker@arm.com>
6754         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6756 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
6758         * NEWS: Mention new ARM command-line options and VFP support.
6760         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
6761         uses changed.
6762         (ARM_CEXT_MAVERICK): Similarly.
6763         (ARM_ANY): Now means any core instruction.
6764         (CPU_DEFAULT): Default to ARM_ANY.
6765         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6766         (pic_code): Declare for all object types.  Make type int.
6767         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6768         (march_fpu_opt, mfpu_opt): Declare.
6769         (md_longopts): Tidy up conditional definitions.
6770         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6771         (arm_long_opts): New tables.
6772         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6773         (arm_parse_extension): New function.
6774         (md_parse_option): Rewrite using new table-driven system.
6775         (md_show_usage): Use new table-driven system.
6776         (md_begin): Calculate cpu_variant from command line option data.
6777         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6778         command-line options.
6779         * doc/c-arm.texi: Likewise.
6781 2002-01-18  Andreas Jaeger  <aj@suse.de>
6783         * as.c (parse_args): Update year.
6785 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
6787         * config/tc-tic54x.c (encode_address): Add a more informative
6788         warning about incorrect syntax.
6790 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
6792         * po/gas.pot: Regenerate.
6794 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
6796         * macro.c (get_any_string): Add no-c-format comment to prevent
6797         confusion when translating string.
6798         * gasp.c (get_any_string): Add no-c-format comment to prevent
6799         confusion when translating string.
6801 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6802             Johannes Stezenbach <js@convergence.de>
6803         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6804         matched before the shorter ones.
6805         (my_getSmallParser): Fix handling of nested parentheses in
6806         percent_op's. Code cleanup.
6807         (my_getPercentOp): New function, code from my_getSmallParser.
6808         (my_getSmallExpression): Fix handling of closing parentheses.
6809         Code cleanup. Better comments.
6811 2002-01-16  Nick Clifton <nickc@redhat.com>
6813         po/tr.po: New file: Turkish translation.
6814         configure.in (LINGUAS): Add "tr".
6815         configure: Regenerate.
6817 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
6819         Support for VFP instructions
6820         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6821         (cp_address_required_here): New argument wb_ok.  When false, do not
6822         accept write-back forms of addressing.  Change all callers.
6823         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6824         (FPU_VFP_EXT_V2): Define.
6825         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6826         Define in terms of above.
6827         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6828         (vfp_reg): New struct.
6829         (vfp_regs): New array of registers.
6830         (insns): Add VFP instructions.
6831         (sn_table): New array of VFP single-precision register names.
6832         (dn_table): New array of VFP double-precision register names.
6833         (all_reg_maps): Add the new register tables.
6834         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
6835         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6836         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6837         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6838         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6839         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6840         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6841         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6842         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6843         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6844         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6845         (do_vfp_sp_dp_cvt): New functions.
6846         (md_begin): Set soft-float flag for appropriate VFP work.
6847         (md_atof): Handle VFP-format doubles.
6848         (md_parse_option): Handle VFP command-line options.
6849         (md_show_usage): Display VFP command-line options.
6851 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
6853         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6854         various command line options.
6856 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
6858         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6859         vtinherit relocs.
6860         (xstormy16_md_apply_fix3): Do not return a value.
6862 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
6864         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6865         the -EL/-EB option that matches the target's endianness.
6866         (md_parse_option): Likewise.
6868 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
6870         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6871         is not dependent on ARM_BI_ENDIAN.
6873 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
6875         * tc-arm.c (all error messages): Normalize capitalization of messages.
6877         * tc-arm.h (md_operand): Delete define.
6878         * tc-arm.c (in_my_get_expression): New static variable.
6879         (my_get_expression): Set and clear it.
6880         (md_operand): New function.  If called from my_get_expression
6881         put the error in inst.error.
6882         (output_inst): Now takes argument of instruction being assembled.
6883         Print it out with any error message.
6884         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6885         with '=' syntax.
6886         (end_of_line): Don't update inst.error if it is already set.
6888 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
6890         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6891         op that can be translated into a mvn instruction.
6893 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
6895         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6896         setting default md.flags.
6897         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6898         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6899         * gas/config/tc-ia64.c (setup_unwind_header): Add support
6900         for 32 bit unwind info blocks.
6901         (generate_unwind_image): Add support for different types
6902         of unwind images (32 bits and/or big-endian).
6903         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6904         (ia64_target_format): Add support for hpux target formats.
6905         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6906         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6907         SHT_FINI_ARRAY elf section types.
6909 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
6911         * tc-arm.c (struct reg_entry): Move before prototypes.
6912         (int_register, cp_register, fp_register): Delete.
6913         (reg_table): Delete.  Replaced with ...
6914         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6915         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6916         (mav_dspsc_table): ... one table per register set.
6917         (arm_reg_hsh): Delete.
6918         (struct reg_map): New structure.
6919         (all_reg_maps): New array.
6920         (enum arm_reg_type): New enums.
6921         (build_reg_hsh): New function.
6922         (insert_reg_alias): Use hash table passed by caller.  Adjust all
6923         callers.
6924         (create_register_alias): New function, split out from ...
6925         (md_assemble): ... here.
6926         (md_begin): Build new register hash tables.
6927         (arm_reg_parse): New argument for the hash table to search.  Adjust all
6928         callers.
6929         (arm_reg_parse_any): New function.
6930         (co_proc_number): Look up the processor number in the processor hash
6931         table.
6932         (cirrus_regtype): Delete.
6933         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6934         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6935         (ARM_EXT_MAVERICKsc_register): Delete.
6936         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6937         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6938         functions.
6939         (do_c_triple_4, do_c_triple_5): Delete.
6940         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6941         (do_c_quad_6): Delete.
6942         (do_c_quad_6[ab]): New functions.
6943         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6944         arguments to use new register parsing methods.
6945         (cirrus_reg_required_here): Likewise.
6946         (insns): Reclassify cirrus maverick worker functions.
6947         (cirrus_valid_reg): Delete.
6949 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
6951         * configure.in (sh*le): Set cpu_type=sh and endian=little.
6952         (sh*-*-netbsdelf*): New target.
6953         * configure: Regenerate.
6954         * tc-sh.h: Update copyright years.
6955         (TARGET_FORMAT): Add version for TE_NetBSD.
6957 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
6959         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6960         negative.
6962 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
6964         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6965         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6967 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
6969         * tc-mips.c (mips_cprestore_valid): New flag.
6970         (mips_frame_reg_valid): New flag.
6971         (macro) [M_JAL_2]: Check both flags.
6972         [M_JAL_A]: Likewise.
6973         (s_cprestore): Set mips_cprestore_valid.
6974         (tc_get_register): If setting mips_frame_reg, set
6975         mips_frame_reg_valid and clear mips_cprestore_valid.
6976         (s_mips_ent): Clear both flags.
6977         (s_mips_end): Clear both flags.
6979 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
6981         * write.c (write_object_file): Make use of bfd_section_list_remove.
6982         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6983         * config/tc-mmix.c (mmix_frob_file): Likewise.
6985 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
6987         * configure.in (i386-*-netbsdelf*): Collapse target into...
6988         (i386-*-netbsd*): ...this.  Add support for x86-64.
6989         * configure: Regenerated.
6991 2002-01-03  matthew green  <mrg@redhat.com>
6993         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6995 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
6997         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6998         NULL frag link.
7000 For older changes see ChangeLog-0001
7002 Local Variables:
7003 mode: change-log
7004 left-margin: 8
7005 fill-column: 74
7006 version-control: never
7007 End: