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