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