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