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