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