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