1 2003-07-07 Nick Clifton <nickc@redhat.com>
3 * doc/c-m32r.texi (M32R-Directives): New node. Document the
4 .high, .shigh and .low directives.
6 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
8 * config/tc-h8300.c (h8300sxnmode): Add prototype.
10 (parse_exp): Replace expressionS argument with a h8_op. Parse the
12 (skip_colonthing): Remove unused expression argument. Tighten checks
15 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
16 (get_operand): Likewise. Use the standard code to read the size of
18 (fix_operand_size): Include the size-guessing logic that used to be
19 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
20 offsets with a symbolic component.
22 2003-07-04 Nick Clifton <nickc@redhat.com>
24 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
25 macro to compute size of selected register name array.
27 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
29 * config/tc-s390.c (md_parse_option): Add cpu type z990.
30 (md_begin): Add minimal cpu type logic for instructions with different
31 binary format depending on the cpu.
32 (md_assemble): Remove check for minimal cpu.
33 (s390_insert_operand): Add support for long displacements.
34 (md_gather_operands): Likewise.
35 (tc_s390_fix_adjustable): Likewise.
36 (tc_s390_force_relocation): Likewise.
37 (md_apply_fix3): Likewise.
39 2003-06-30 Chris Demetriou <cgd@broadcom.com>
41 * config/tc-mips.c (s_mipsset): Implement -march= handling
44 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
46 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
47 prototypes and casts. Replace PTR with void *. Reformat.
48 * config/tc-mips.h: Likewise.
50 2003-06-30 Alan Modra <amodra@bigpond.net.au>
52 * config/tc-ia64.c (note_register_values): Warning fix.
53 * config/tc-mips.c (append_insn): Likewise.
55 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
57 * config/tc-mips.c (mips_set_options,mips_opts): Support for
59 (file_mips_arch): Rename mips_arch.
60 (mips_arch_info,mips_tune_info): Remove.
61 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
62 (mips_cpu_info_from_arch): New function.
63 (md_begin): Use file_mips_arch.
64 (macro_build,macro,mips_ip): Use mips_opts.arch.
65 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
66 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
68 (s_mipsset): Support for .set arch=FOO.
69 (mips_cpu_info_table): Fix typo.
71 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
73 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
75 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
77 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
78 unsigned 8-bit operands.
80 2003-06-24 Nick Clifton <nickc@redhat.com>
82 * read.c (s_comm): Change error message to assume an unsigned size
83 has been passed to .comm.
84 * config/tc-sparc.c (s_common): Likewise.
85 * write.c (write_contents): Replace 'unsigned long' with
86 'addressT' and 'long' with offsetT in order to allow computations
87 with very large values to work for 64-bit addressed targets.
88 (relax_and_size_all_segments): Likewise.
89 (relax_frag): Likewise.
90 (relax_segment): Likewise.
92 2003-06-23 Mark Mitchell <mark@codesourcery.com>
94 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
96 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
98 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
101 * gas/config/tc-i386.h (CpuPNI): New.
102 (CpuUnknownFlags): Add CpuPNI.
104 2003-06-23 <davidm@hpl.hp.com>
106 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
107 freebsd, openvms, and nsk (non-stop kernel).
109 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
111 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
112 all locals have been declared.
114 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
116 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
117 special handling for n32 ABI.
120 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
122 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
125 2003-06-19 Christian Groessler <chris@groessler.org>
127 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
128 now, not only a warning. Add some more checks to detect invalid
130 (get_operand): For CLASS_IR remember register size in mode struct.
131 (get_specific): Handle new CLASS_IRO type. Add register size
132 checks for CLASS_IR and CLASS_IRO.
133 (md_apply_fix3): Fix undefined usage of buf.
135 2003-06-19 Alan Modra <amodra@bigpond.net.au>
137 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
138 (ppc_change_csect): Add align param. Align frag at start of csect.
139 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
140 (ppc_frob_section): Align vma.
142 2003-06-18 Jakub Jelinek <jakub@redhat.com>
144 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
145 (output_cie): Don't pad.
146 (output_fde): Add align argument. Pad to align if not 0.
147 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
148 Pad just last FDE to EH_FRAME_ALIGNMENT.
150 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
152 * config/tc-s390.c (init_default_arch): Make current_mode_mask
153 dependent on s390_arch_size and current_cpu dependent on
156 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
158 * configure.in: Add c4x as an architecture variant to tic4x.
159 * configure: Regenerate.
160 * Makefile.in: Regenerate.
161 * doc/Makefile.in: Regenerate.
163 2003-06-18 Alan Modra <amodra@bigpond.net.au>
165 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
166 ".TOC." from PPC64_TOC relocs.
168 2003-06-17 Alan Modra <amodra@bigpond.net.au>
170 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
172 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
174 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
175 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
176 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
177 s_cprestore,s_cpadd): Use them.
179 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
181 * configure.in: Add specific case for cris-*-linux-gnu* with
183 * configure: Regenerate.
184 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
185 if TE_LINUX defined, else FALSE.
186 (bfd_boolean demand_register_prefix): Set default from
187 DEFAULT_CRIS_AXIS_LINUX_GNU.
188 (symbols_have_leading_underscore): Similar.
189 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
191 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
193 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
194 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
195 FPU_ARCH_FPA for AOUT.
196 (md_begin): Don't try to guess the floating point architecture from
197 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
199 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
201 * configure.in: Add i386-netbsd-gnu target.
202 * configure: Regenerate.
204 2003-06-12 Tom Tromey <tromey@redhat.com>
206 * doc/as.texinfo (Comm): Added @node. Moved before CFI
209 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
211 * config/tc-mips.c (append_insn): In a compound relocation, take the
212 field width from the final (outermost) operator.
214 2003-06-11 Richard Henderson <rth@redhat.com>
216 * dw2gencfi.c (struct cfi_escape_data): New.
217 (cfi_add_CFA_nop): Remove.
218 (CFI_escape, dot_cfi_escape): New.
219 (dot_cfi): Remove nop.
220 (cfi_pseudo_table): Remove nop; add escape.
221 (output_cfi_insn): Likewise.
222 (select_cie_for_fde): Stop on escape.
223 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
224 * read.c, read.h (do_parse_cons_expression): New.
225 * doc/as.texinfo (.cfi_escape): New.
227 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
229 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
230 (s_cprestore): Likewise.
231 (s_cpreturn): Likewise.
233 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
235 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
238 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
240 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
241 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
242 exceptions from size assert. Remove most of the addend fixup
243 specialcasing. Remove value, use valP directly. simplify fx_addnumber
244 handling. Remove zero addend specialcases.
245 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
246 the addend fixup specialcase.
247 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
249 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
251 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
252 in the RELOC_EXPANSION_POSSIBLE case.
254 2003-06-11 Alan Modra <amodra@bigpond.net.au>
256 * config/tc-i960.c (line_comment_chars): Add '#'.
257 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
259 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
261 * po/Make-in (DESTDIR): New.
262 (install-data-yes): Support $(DESTDIR).
263 (uninstall): Likewise.
265 2003-06-11 Alan Modra <amodra@bigpond.net.au>
267 * Makefile.am: Run "make dep-am".
268 * Makefile.in: Regenerate.
269 * po/POTFILES.in: Regenerate.
271 2003-06-10 Doug Evans <dje@sebabeach.org>
273 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
275 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
276 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
277 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
279 2003-06-10 Alan Modra <amodra@bigpond.net.au>
280 Gary Hade <garyhade@us.ibm.com>
282 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
283 (md_apply_fix3): Special case lq insn.
285 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
287 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
288 lists. Allow single-register ranges.
290 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
292 * config/tc-h8300.c (h8300sxnmode): New.
293 (md_pseudo_table): Add .h8300sxn entry.
295 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
297 * NEWS: Updated for the new -n option for the i386 assembler.
299 * config/tc-i386.c (optimize_align_code): New.
300 (md_shortopts): Add 'n'.
301 (md_parse_option): Handle 'n'.
302 (md_show_usage): Add '-n'.
304 * config/tc-i386.h (optimize_align_code): Declared.
305 (md_do_align): Optimize code alignment only if optimize_align_code
308 * doc/as.texinfo: Add the new -n option.
310 * doc/c-i386.texi: Document the new -n option.
312 2003-06-07 Richard Henderson <rth@redhat.com>
314 * doc/as.texinfo: Document .cfi_rel_offset.
316 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
317 (cfi_add_CFA_offset): Detect invalid offsets.
318 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
319 (cfi_add_CFA_restore_state): Restore it.
320 (CFI_rel_offset): New.
321 (cfi_pseudo_table): Add it.
322 (dot_cfi): Handle it.
324 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
326 * app.c (do_scrub_chars): Add states 14 and 15 to handle
329 2003-06-05 Michael Snyder <msnyder@redhat.com>
331 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
332 (build_bytes): Ditto.
334 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
336 * config/tc-h8sx.c (DMODE): Remove.
337 (colonmod24): Don't choose a default if the operand is a 16-bit
339 (fix_operand_size): New function.
340 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
341 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
343 2003-06-05 Michal Ludvig <mludvig@suse.cz>
345 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
346 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
347 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
348 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
349 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
350 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
351 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
352 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
353 (cfi_pseudo_table): New directives .cfi_return_column,
354 .cfi_restore, .cfi_undefined, .cfi_same_value,
355 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
356 (dot_cfi, output_cfi_insn): Handle new directives.
357 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
358 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
359 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
361 2003-06-04 Richard Henderson <rth@redhat.com>
363 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
365 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
367 2003-06-04 Richard Henderson <rth@redhat.com>
369 * config/tc-alpha.c (s_alpha_usepv): New.
370 (md_pseudo_table): Add it.
371 (alpha_cfi_frame_initial_instructions): New.
372 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
373 (tc_cfi_frame_initial_instructions): New.
374 * doc/c-alpha.texi: Document .usepv.
376 2003-06-04 Jakub Jelinek <jakub@redhat.com>
378 * as.c (show_usage): Document --execstack and --noexecstack.
379 (parse_args): Add --execstack and --noexecstack.
380 (main): Create .note.GNU-stack section if --execstack or
381 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
382 * as.h (flag_execstack, flag_noexecstack): New.
384 2003-06-03 Chris Demetriou <cgd@broadcom.com>
386 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
387 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
388 (OPTION_MISC_BASE): New defines.
389 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
390 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
391 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
392 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
393 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
394 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
395 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
396 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
397 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
398 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
399 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
400 (OPTION_TRAP): Redefine in terms of new defines.
401 (md_longopts): Reorder entries.
403 2003-05-14 Michael Snyder <msnyder@redhat.com>
404 From Bernd Schmidt <bernds@redhat.com>
405 and Michael Snyder <msnyder@redhat.com>
406 and Alexandre Oliva <aoliva@redhat.com>
407 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
408 * config/tc-h8300.h: Ditto.
410 2003-06-03 Nick Clifton <nickc@redhat.com>
412 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
413 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
414 before calling bfd_reloc_type_lookup.
416 2003-06-02 Alan Modra <amodra@bigpond.net.au>
418 * read.c (emit_expr): Set dot_value.
419 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
421 2003-06-02 Alan Modra <amodra@bigpond.net.au>
423 * macro.c (sub_actual): Don't lose string if it turns out that
424 &string wasn't an arg.
426 2003-05-31 Richard Henderson <rth@redhat.com>
428 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
429 (cfi_finish): Set flag_traditional_format around .eh_frame data.
431 2003-05-29 Richard Henderson <rth@redhat.com>
433 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
434 (all_frame_data, plast_frame_data, cur_frame_data): New.
435 (s_alpha_ent): Record data for dwarf2 cfi.
436 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
437 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
438 * config/tc-alpha.h (md_end): New.
439 (DWARF2_DEFAULT_RETURN_COLUMN): New.
440 (DWARF2_CIE_DATA_ALIGNMENT): New.
442 2003-05-29 Nick Clifton <nickc@redhat.com>
444 * configure.in: Add i386-*-freebsd* entry.
445 * configure: Regenerate.
447 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
449 * config/tc-m32r.c: Amend comment to refer to Renesas
451 2003-05-27 Richard Henderson <rth@redhat.com>
453 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
455 (current_location): Use symbol_temp_new_now.
456 * stabs.c (s_stab_generic): Use symbol_temp_new.
457 * symbols.c (temp_label_name): Remove.
458 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
460 2003-05-27 Richard Henderson <rth@redhat.com>
462 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
463 * as.c (main): Always call cfi_finish.
464 * config/tc-i386.c (x86_dwarf2_return_column): New.
465 (x86_cie_data_alignment): New.
466 (md_begin): Set them.
467 (tc_x86_cfi_init): Remove.
468 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
469 return int, not unsigned long; don't as_bad here.
470 (tc_x86_frame_initial_instructions): Streamline; use
472 * config/tc-i386.h (tc_cfi_init): Remove.
473 (DWARF2_DEFAULT_RETURN_COLUMN): New.
474 (DWARF2_CIE_DATA_ALIGNMENT): New.
476 2003-05-27 Richard Henderson <rth@redhat.com>
478 * symbols.c (temp_label_name): New.
479 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
480 (symbol_set_value_now): New.
481 * symbols.h: Prototype them.
482 * dwarf2dbg.c: Use them.
483 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
485 2003-05-23 Jason Eckhardt <jle@rice.edu>
487 * config/tc-i860.c (target_xp): Declare variable.
488 (OPTION_XP): Declare macro.
489 (md_longopts): Add option -mxp.
490 (md_parse_option): Set target_xp.
491 (md_show_usage): Add -mxp usage.
492 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
493 (md_assemble): Don't try expansions if XP_ONLY is set.
494 * doc/c-i860.texi: Document -mxp option and i860XP support.
496 2003-05-23 Eric Christopher <echristo@redhat.com>
498 * config/tc-mips.c (macro_build_jalr): Warning patrol.
500 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
502 * config/tc-mips.c (append_insn): Use actual relocation size for new
503 fixp's. Don't relax overflow checking for partial_inplace relocations.
504 Use the actual relocation type in combined relocs, not just the type
506 (macro_build_jalr): Use actual relocation size for new fix.
507 (s_cpsetup, s_gpdword): Likewise.
509 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
511 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
513 2003-05-22 Nick Clifton <nickc@redhat.com>
515 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
516 section relative offsets for relocs that will not be based on the
518 (xstormy16_md_apply_fix3): Remove previous patch to this
521 2003-05-07 Eric Christopher <echristo@redhat.com>
523 * config/tc-mips.c (mips_abicalls): New variable.
524 (md_parse_option): Use.
527 (mips_elf_final_processing): Set EF_MIPS_PIC and
528 EF_MIPS_CPIC dependent on above.
530 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
532 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
534 2003-05-21 Nick Clifton <nickc@redhat.com>
536 * config/obj-elf.c: Include dwarf2dbg.h.
537 (elf_pseudo_tab): Add .file and .loc.
538 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
539 * config/tc-arm.c: Likewise.
540 * config/tc-h8300.c: Likewise.
541 * config/tc-hppa.c: Likewise.
542 * config/tc-ia64.c: Likewise.
543 * config/tc-m68hc11.c: Likewise.
544 * config/tc-m68k.c: Likewise.
545 * config/tc-mmix.c: Likewise.
546 * config/tc-mn10300.c: Likewise.
547 * config/tc-ppc.c: Likewise.
548 * config/tc-sh.c: Likewise.
549 * config/tc-sparc.c: Likewise.
550 * config/tc-v850.c: Likewise.
551 * config/tc-frv.c: Likewise, and remove redundant inclusion of
553 * config/tc-ip2k.c: Likewise.
554 * config/tc-iq2000.c: Likewise.
555 * config/tc-xstormy16.c: Likewise.
556 * config/tc-xtensa.c: Likewise.
557 * Makefile.am: Regenerate dependencies.
558 * Makefile.in: Regenerate.
559 * aclocal.m4: Regenerate.
560 * config.in: Regenerate.
561 * configure: Regenerate.
562 * po/POTFILES.in: Regenerate.
563 * po/gas.pot: Regenerate.
565 2003-05-21 Nick Clifton <nickc@redhat.com>
567 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
568 BFD_ASSEMBLER targets.
569 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
570 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
571 defining BFD_ASSEMBLER.
573 2003-05-20 Michal Ludvig <mludvig@suse.cz>
575 * as.c (main): Remove tc_cfi_init().
576 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
578 (cfi_pseudo_table): Add "cfi_register" entry.
579 (cfi_make_insn): Handle CFA_register.
580 (cfi_output_insn): Ditto.
582 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
583 (dot_cfi_endproc): Reuse already emitted CIEs.
584 * testsuite/gas/cfi/cfi-i386.d: New pattern.
585 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
587 2003-05-20 Nick Clifton <nickc@redhat.com>
589 * config/tc-xstormy16.c: Include dwarf2dbg.h.
590 (md_pseudo_table): Add entries for .loc and .line.
592 2003-05-20 Alan Modra <amodra@bigpond.net.au>
594 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
596 (dot_cfi_endproc): Avoid C99 construct.
598 2003-05-20 Michal Ludvig <mludvig@suse.cz>
600 * dw2gencfi.c, dw2gencfi.h: New files.
601 * config/tc-i386.c (tc_x86_cfi_init): New function.
602 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
603 * as.c (parse_args): Set verbose flag on --verbose.
604 (main): Call tc_cfi_init()/cfi_finish().
605 * as.h (verbose): New external variable.
606 * read.c (pobegin): Insert CFI pops to the list.
607 * symbols.c (local_symbol_make): Make symbol external.
608 * symbols.h (local_symbol_make): New prototype.
609 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
610 * Makefile.in: Regenerate.
611 * doc/as.texinfo: Added node "CFI directives" with description of
612 all implemented .cfi_* directives.
613 * doc/Makefile.in: Regenerate.
614 * po/POTFILES.in: Regenerate.
616 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
618 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
620 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
622 2003-05-18 Jason Eckhardt <jle@rice.edu>
624 * config/tc-i860.c (i860_process_insn): Initialize fc after
625 each opcode mismatch.
627 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
629 * configure.in: Accept i[3-7]86 variants.
630 * configure: Regenerate.
632 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
634 * config/tc-mips.h: Fix comment formatting.
636 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
638 * read.c (old_buffer, old_input, old_limit): Remove variables.
639 (read_a_source_file): Delete label contin.
640 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
641 input as with macros, instead of in separate old_* variables.
642 Zero-terminate string being scrubbed.
644 2003-05-12 Nick Clifton <nickc@redhat.com>
646 * config/tc-xstormy16.c (skipping_fptr): New local variable.
647 (md_assemble): Reset skipping_fptr.
648 (md_operand): If @fptr() is followed by a minus sign, set
649 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
650 @fptr is detected, ignore it and reset skipping_fptr.
652 2003-05-11 Jason Eckhardt <jle@rice.edu>
654 * config/tc-i860.c (MAX_FIXUPS): Define.
655 (struct i860_fi fi[]): New struct.
656 (struct i860_it the_insn): Add above as member and move fields
657 exp, reloc, pcrel and fup into i860_fi.
658 (md_assemble): Replace all instances of exp, reloc, pcrel
659 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
660 Add a loop to possibly emit multiple fix-ups for each insn.
661 (i860_process_insn): Likewise.
662 (i860_get_expression): Likewise.
663 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
665 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
667 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
669 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
671 * config/tc-ia64.c (alias_hash): New.
672 (alias_name_hash): New.
673 (secalias_hash): New.
674 (secalias_name_hash): New.
675 (md_pseudo_table): Add "secalias".
676 (md_begin): Initialize alias_hash, alias_name_hash,
677 secalias_hash and secalias_name_hash.
679 (dot_alias): Implement .alias and .secalias directives.
681 (ia64_adjust_symtab): New.
683 (ia64_frob_file): New.
685 * config/tc-ia64.h (ia64_adjust_symtab): New.
686 (tc_adjust_symtab): Defined.
687 (ia64_frob_file): New.
688 (tc_frob_file): Defined.
690 2003-05-07 Dmitry Diky <diwil@mail.ru>
692 * tc-msp430.c: Add missing lines to known cpus list.
694 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
696 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
697 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
698 * config.in, configure: Rebuilt.
700 2003-05-05 H.J. Lu <hjl@gnu.org>
702 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
703 howto->partial_inplace is false.
705 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
707 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
708 symbol_used_in_reloc_p check.
709 (md_apply_fix3): Remove check for howto->pcrel_offset.
711 2003-05-03 H.J. Lu <hjl@gnu.org>
713 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
714 fatal error for unknown section attribute.
716 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
717 unknown section attribute.
718 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
719 * config/tc-ppc.c (ppc_section_letter): Likewise.
721 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
722 (ia64_elf_section_type): Accept "unwind".
724 2003-05-02 H.J. Lu <hjl@gnu.org>
726 * read.h (demand_copy_string): New.
728 * config/tc-alpha.c (demand_copy_string): Removed.
730 2003-05-02 Michael Snyder <msnyder@redhat.com>
732 * write.h (FAKE_LABEL_NAME): Allow override
733 (for targets that like eg. a leading dot in a local label).
735 2003-05-02 Nick Clifton <nickc@redhat.com>
737 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
738 addend with the symbol's value for pc-relative relocations against
739 a defined symbol - this will be done automatically.
741 2003-05-01 H.J. Lu <hjl@gnu.org>
743 * config/obj-elf.c (obj_elf_type): Accept "notype" and
746 2003-05-01 H.J. Lu <hjl@gnu.org>
748 * config/tc-ia64.h (tc_canonicalize_section_name): New.
750 * config/obj-elf.c (obj_elf_section_name): Call
751 tc_canonicalize_section_name if it is defined.
753 2003-05-01 H.J. Lu <hjl@gnu.org>
755 * config/tc-ia64.c (ia64_check_label): New.
756 * config/tc-ia64.h (tc_check_label): New.
758 * read.c (read_a_source_file): Call tc_check_label after
759 creating a user-defined label if defined.
761 2003-05-02 Alan Modra <amodra@bigpond.net.au>
763 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
764 -be and split strings to below 509 bytes in length.
766 2003-05-01 Christian Groessler <chris@groessler.org>
768 * expr.h: Fix comments in operatorT typedef.
769 * config/tc-z8k.c: Add 2003 to copyright message.
770 Fold s_segm() and s_unseg() into one function s_segm(parm) which
771 decides by the parameter.
772 (md_begin): Don't set linkrelax. Only set Z8002 default if no
773 command line argument was given to select the intended
775 (get_interrupt_operand): Warn if NOP type code is emitted.
776 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
777 (apply_fix): Call newfix with additional 'size' parameter.
778 (build_bytes): Remove unused variable 'nib'. Detect overflow in
779 4 bit immediate arguments.
780 (md_longopts): Add 'linkrelax' option.
781 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
782 variable when 'linkrelax' command line option is specified.
783 (md_show_usage): Display 'linkrelax' option.
784 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
786 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
788 2003-04-30 H.J. Lu <hjl@gnu.org>
790 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
791 (ia64_float_to_chars): Likewise.
792 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
793 and ia64_float_to_chars by tc_segment_info_data.endian from
794 the current segment if byteorder == -1.
795 (md_begin): Call dot_byteorder to set target_big_endian.
796 (md_atof): Call ia64_float_to_chars to convert floating point.
797 (ia64_float_to_chars_bigendian): New function.
798 (ia64_float_to_chars_littleendian): Likewise.
799 (ia64_elf_section_change_hook): Likewise.
801 * config/tc-ia64.h (ia64_number_to_chars): New.
802 (md_number_to_chars): Changed to (*ia64_number_to_chars)
803 (ia64_elf_section_change_hook): New.
804 (md_elf_section_change_hook): Defined.
805 (ia64_segment_info_type): New struct.
806 (TC_SEGMENT_INFO_TYPE): Defined.
808 2003-04-30 H.J. Lu <hjl@gnu.org>
810 * config/tc-ia64.c (md_section_align): Deleted.
812 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
813 (md_section_align): New.
815 2003-04-30 H.J. Lu <hjl@gnu.org>
817 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
819 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
821 (md_atof): Add 6 byte padding of zero for real16.
823 2003-04-29 Nick Clifton <nickc@redhat.com>
825 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
826 start of a version name.
828 2003-04-28 Chris Demetriou <cgd@broadcom.com>
830 * configure.in (mips-*-*n*bsd*): Replace with...
831 (mips-*-netbsd*, mips-*-openbsd*): These.
832 * configure: Regenerate.
834 2003-04-28 H.J. Lu <hjl@gnu.org>
836 * config/tc-hppa.c (hppa_symbol_chars): New.
837 * config/tc-hppa.h (tc_symbol_chars): Likewise.
839 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
841 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
843 2003-04-25 Chris Demetriou <cgd@broadcom.com>
845 * NEWS: Belatedly mention support for MIPS32 Release 2.
847 2003-04-24 Eric Christopher <echristo@redhat.com>
849 * config/tc-mips.c (nopic_need_relax): Revert previous
852 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
854 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
855 * config/tc-h8300.c (dwarf2dbg.h): Include
856 (md_pseudo_table): Handle .loc and .file
857 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
858 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
859 * Makefile.in: Regenerate.
861 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
863 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
864 (md_pseudo_table): Add h8300hn, h8300sn.
865 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
866 * doc/c-h8300.texi : Add documentation for new machine directives.
868 2003-04-24 Nick Clifton <nickc@redhat.com>
870 * config/tc-ppc.c (ppc_symbol_chars): Define.
871 * config/tc-ppc.h (tc_symbol_chars): Define.
873 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
875 * config/tc-sh.c: Amend comment to refer to SuperH.
876 * config/tc-sh.h: Likewise.
877 (LISTING_HEADER): Amend to refer to SuperH.
878 * config/tc-sh64.c: Change comment to refer to SuperH.
879 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
880 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
881 * doc/c-sh.texi: Amend to refer to SuperH.
882 Add SuperH architecture documentation references.
883 * doc/c-sh64.texi: Change to refer to SuperH.
885 2003-04-23 H.J. Lu <hjl@gnu.org>
887 * app.c (do_scrub_chars): More checks for valid labels.
889 2003-04-22 H.J. Lu <hjl@gnu.org>
891 * app.c (do_scrub_chars): Check for valid label.
893 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
895 * doc/as.texinfo: Replace references to Mitsubishi M32R with
896 references to Renesas M32R.
897 * doc/c-m32r.texi: Likewise.
899 2003-04-21 Richard Henderson <rth@redhat.com>
901 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
902 (out_file_list): Assign non-null filename after generating error.
904 2003-04-18 Jakub Jelinek <jakub@redhat.com>
906 * ehopt.c (check_eh_frame): For aug_size == 0
907 in state_seeing_aug_size state skip the state_skipping_aug
910 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
912 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
914 * doc/c-h8500.texi: Likewise.
915 * doc/c-sh.texi: Likewise.
916 * doc/c-sh64.texi: Likewise.
917 * doc/h8.texi: Likewise.
918 * config/tc-h8300.c: Likewise.
919 * config/tc-h8300.h: Likewise.
920 * config/tc-h8500.c: Likewise.
921 * config/tc-h8500.h: Likewise.
922 * config/tc-sh.c: Likewise.
923 * config/tc-sh.h: Likewise.
924 * config/tc-sh64.c: Likewise.
925 * config/tc-sh64.h: Likewise.
927 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
929 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
930 * config/tc-mips.c: Use signed add for n32 address arithmetic.
931 (append_insn): When filling delay slots with instructions
932 that have fixups that tc_gen_reloc might consider modifyable
933 in variant frags, start a new frag.
934 (load_address): Generate GOT_DISP with of without offset
935 depending on whether symbol is local. For -xgot, use
936 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
937 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
938 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
939 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
940 <ld_st>: In NewABI with small got, always use
941 GOT_PAGE/GOT_OFST, with the latter in the load/store
942 instruction. With big got, use GOT_HI16/GOT_LO16 or
944 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
945 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
946 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
947 (md_convert_frag): Use memmove for safe copying of overlapping
950 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
952 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
953 -mlong, -mshort-double and -mlong-double options; use table @code.
954 (M68HC11-Syntax): Update to document 68HC12 operands.
955 (M68HC11-Modifiers): New section for operand modifiers.
956 (M68HC11-Directives): New section for specific assembler directives.
957 (M68HC11-Branch): Fix Overfull hbox error.
959 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
961 * config/tc-mips.c (macro): Add comments explaining the rationale
964 2003-04-09 Chris Demetriou <cgd@broadcom.com>
966 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
967 constant address that Alexandre took out by accident. Reject
968 64-bit addresses that are not sign extensions of 32 bits only if
969 we don't support 64-bit address constants.
971 2003-04-09 Alan Modra <amodra@bigpond.net.au>
973 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
975 2003-04-08 Nick Clifton <nickc@redhat.com>
977 * as.c (perform_an_assembly_pass): If using cgen, call
979 * cgen.c (gas_cgen_begin): New function. If
980 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
981 otherwise call cgen_clear_signed_overflow_ok.
982 * cgen.h: Prototype gas_cgen_begin.
984 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
986 * write.c (write_relocs): Remove unused variable.
988 2003-04-06 Chris Demetriou <cgd@broadcom.com>
990 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
991 (macro): Use new macro to decide whether to emit constant address
992 as 32 or 64 bits if addresses are 32-bit wide but registers are
995 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
997 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
998 (M6811_OP_PAGE_ADDR): New internal define.
999 (get_operand): New modifier %page and %addr to obtain page and
1000 address part of a far-function.
1001 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1002 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1004 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1005 (find_opcode): Add comment.
1006 (md_estimate_size_before_relax): Force relocation of
1007 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1008 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1009 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1010 on the symbol itself so that DWARF2 strings are merged correctly.
1012 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1014 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1015 default tic4x target format to 'coff2-tic4x'.
1016 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1018 * config/tc-tic4x.h: Ditto
1020 2003-04-03 Nick Clifton <nickc@redhat.com>
1022 * NEWS: Mention support for Xtensa architecture.
1024 2003-04-02 Philip Blundell <philb@gnu.org>
1026 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1028 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1030 * config/tc-mips.c (macro2): Adjust implementation of
1031 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1032 in the case where the source and destination registers
1035 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1037 * Makefile.am (CPU_TYPES): Add xtensa.
1038 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1039 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1040 (xtensa-relax.o): New target.
1042 * Makefile.in: Regenerate.
1043 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1044 extra_objects for xtensa targets.
1045 * configure: Regenerate.
1046 * write.c (write_object_file): Add new md_post_relax_hook.
1047 * config/tc-xtensa.c: New file.
1048 * config/tc-xtensa.h: Likewise.
1049 * config/xtensa-istack.h: Likewise.
1050 * config/xtensa-relax.c: Likewise.
1051 * config/xtensa-relax.h: Likewise.
1052 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1053 * doc/Makefile.in: Regenerate.
1054 * doc/all.texi: Set new XTENSA variable.
1055 * doc/as.texinfo: Set new Xtensa variable. Describe
1056 Xtensa-specific options. Define line comment character for
1057 Xtensa. Add Xtensa processors to list of ELF targets where
1058 alignment is specified in bytes. Add new Xtensa-Dependent node.
1059 Add acknowledgements for those contributing to the Xtensa port.
1060 * doc/internals.texi: Describe new md_post_relax_hook.
1061 * doc/c-xtensa.texi: New file.
1063 2003-04-01 Nick Clifton <nickc@redhat.com>
1064 Richard Earnshaw <rearnsha@arm.com>
1066 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1067 (ARM_ARCH_IWMMXT): Simplify.
1068 (insns): Place iwmmx instructions in correct place in table.
1069 (arm_add_note): New function: Add a note entry to a .note section.
1070 (md_begin): Make the default architecture be unknown.
1071 Suppress the creation of an arm note section.
1073 2003-03-26 Eric Christopher <echristo@redhat.com>
1075 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1077 2003-03-25 Stan Cox <scox@redhat.com>
1078 Nick Clifton <nickc@redhat.com>
1080 Contribute support for Intel's iWMMXt chip - an ARM variant:
1082 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1083 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1084 (enum wreg_type, enum iwmmxt_insn_type): New types.
1085 (wr_register, wc_register, wcg_register): New macros.
1086 (iwmmxt_table): New variable.
1087 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1088 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1089 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1090 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1091 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1092 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1093 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1094 cp_byte_address_offset, cp_byte_address_required_here,
1095 check_iwmmxt_insn): New functions.
1096 (asm_opcode_insns): Add iWMMXt instructions.
1097 (md_begin): Set the mach value for iWMMXt targets. Create a note
1098 section to identify iwmmxt binaries.
1099 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1100 * doc/c-arm.texi: Document the support for the iWMMXt.
1101 * NEWS: Mention new support.
1103 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1105 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1106 * doc/all.texi: Likewise.
1107 * doc/c-tic54x.texi: Likewise.
1109 2003-03-21 Andreas Schwab <schwab@suse.de>
1111 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1112 avoid aliasing issue.
1114 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1116 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1117 (current_arch_mask): Rename to current_mode_mask.
1118 (current_arch_requested): Remove variable.
1119 (current_cpu): New variable.
1120 (init_default_arch): Set defaults values for s390_arch_size,
1121 current_mode_mask and current_cpu.
1122 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1123 (md_begin): Replace current_arch_mask by current_cpu.
1124 (md_assemble): Adapt check and error message to current_mode_mask and
1127 2003-03-09 James E Wilson <wilson@tuliptree.org>
1129 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1130 * read.c (get_line_sb): Return end of line character or '\n' if
1131 it is zero or non-existent.
1133 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1135 * config/tc-mips.c (mips_validate_fix): New function.
1136 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1137 (mips_validate_fix): Declare.
1139 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1141 * Reverted 2003-03-02's patch.
1143 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1145 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1146 (TC_DWARF2_EMIT_OFFSET): Provide default.
1147 (out_debug_aranges, out_debug_info): Use it.
1148 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1149 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1150 (ia64_gen_real_reloc_type): ... here.
1151 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1153 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1155 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1156 (s_mips_ent): Likewise.
1158 2003-03-04 Dmitry Diky <diwil@mail.ru>
1160 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1161 and x1123 devices, add missed x437.
1162 (md_show_usage): Sort device list.
1164 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1166 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1167 (md_begin): Use preset_target_arch.
1168 (md_longopts): Make isa option unconditional.
1169 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1170 set preset_target_arch.
1171 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1172 by -S_GET_VALUE (fixP->fx_subsy).
1173 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1174 and the addend is 0.
1175 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1176 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1178 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1180 * config/tc-mips.c (append_insn): Add handling of
1181 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1182 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1183 misaligned address and reange overflow.
1184 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1185 earlier warnings about misaligned address and reange overflow.
1186 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1187 (md_apply_fix): Likewise. Fix warning output.
1188 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1189 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1190 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1192 2003-02-21 Nick Clifton <nickc@redhat.com>
1194 * NEWS: Mention availability of test generator program.
1196 2003-02-21 Miles Bader <miles@gnu.org>
1198 * config/tc-v850.c (system_registers): Add v850e debug registers.
1199 (system_register_name): Accept up to 27 (the last v850e sys register).
1201 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1203 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1204 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1205 Capitalize section headings consistently. Format index entries more
1206 consistently. Unconditionalize text about whether text and data
1207 sections are alterable. Use @ifnottex for alternatives to @tex output
1208 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1209 .size and .type directives. Be more polite about bad bug reports.
1210 Move FDL into a separate file.
1211 * doc/fdl.texi: New file.
1213 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1215 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1216 (macro): Check it to decide whether a new frag is needed.
1217 (my_getSmallExpression): Set it.
1219 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1221 * cgen.c: Fix typo: intial -> initial.
1223 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1225 * app.c (do_scrub_chars): Handle '||' in two states.
1227 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1229 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1230 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1232 2003-02-11 Uwe Stieber <uwe@wwws.de>
1234 * configure.in: Add support for kaOS as cross build target system.
1235 * configure: Regenerated.
1237 2003-02-10 Nick Clifton <nickc@redhat.com>
1239 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1240 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1241 bfd_mach_arm_ep9312 machine number.
1243 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1245 * config/tc-mips.c (reloc_needs_lo_p): New function.
1246 (fixup_has_matching_lo_p): New function.
1247 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1248 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1249 if that fixup already has a matching %lo(). Don't call frag_wane here.
1250 (macro): Call frag_wane here if the last unmatched hi was in the
1252 (pic_need_relax): New function, split out from...
1253 (md_estimate_size_before_relax): ...here.
1254 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1255 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1257 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1259 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1261 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1263 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1266 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1268 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1269 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1270 accept x@got+off etc.
1271 (md_assemble): Handle TLS relocs.
1272 (ppc_force_relocation): Force for all TLS relocs.
1273 (ppc_fix_adjustable): Likewise.
1274 (md_apply_fix3): Handle TLS relocs.
1276 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1278 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1279 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1281 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1283 * config/tc-mips.c (enum small_ex_type): Remove.
1284 (imm_unmatched_hi): Remove.
1285 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1286 argument from calls to append_insn.
1287 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1289 (macro_build): Update append_insn calls.
1290 (mips16_macro_build, macro_build_lui): Likewise.
1291 (mips_ip): Rework handling of small expressions. Move explicit
1292 relocation handling into my_getSmallExpression. Assume that the
1293 value of 'o' operands is zero if there is only one bracketed
1295 (percent_op): Make constant. Record the BFD relocation code
1296 associated with each operator.
1297 (my_getSmallParser, my_getPercentOp): Remove.
1298 (parse_relocation): New function.
1299 (my_getSamllExpression): Rework. Fill in relocations here
1300 rather than in mips_ip.
1302 2003-01-29 Nick Clifton <nickc@redhat.com>
1304 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1305 assembler's handling of # <linenum> "<filename>" directives work.
1307 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1309 * dwarf2dbg.c: Include filenames.h.
1310 (struct file_entry): Make filename const char *.
1311 (dirs, dirs_in_use, dirs_allocated): New variables.
1312 (get_filenum): Add NUM argument. Build directory table.
1313 (dwarf2_where): Adjust caller.
1314 (dwarf2_directive_file): Use get_filenum to allocate
1315 slot in file and directory tables.
1316 (dwarf2_directive_loc): Recreate full filename from
1317 directory and filename part if needed for listing.
1318 (out_file_list): Output directory table.
1319 Output main source file dirname before its filename.
1321 2003-01-28 Dmitry Diky <diwil@mail.ru>
1323 * config/tc-msp430.c: Replace occurences of 'tolower' with
1326 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1328 * config/tc-ia64.c (dot_vframesp): Correct error message.
1329 (dot_vframepsp): Ditto.
1331 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1333 * configure.in (em): Set to irix on all Irix systems.
1334 * configure: Rebuilt.
1335 * config/te-irix.h: New file.
1336 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1337 whether to use Irix-specific 64-bit format.
1339 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1341 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1343 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1345 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1346 (tc_gen_reloc): Handle TLS relocs.
1347 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1348 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1350 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1351 (obj_elf_type): Handle tls_object.
1353 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1355 * config/tc-s390.c (s390_tls_suffix): New function.
1356 (elf_suffix_type): Add suffix enums for TLS relocations.
1357 (s390_elf_suffix): Add suffix strings for TLS relocations.
1358 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1360 (md_gather_operands): Map new instruction operand/elf suffix
1361 combinations for TLS to bfd relocations.
1362 (tc_s390_fix_adjustable): Add new TLS relocations.
1363 (tc_s390_force_relocation): Likewise.
1364 (md_apply_fix3): Likewise.
1366 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1368 * as.h: Update copyright date.
1369 * symbols.c: Likewise.
1370 * config/tc-d10v.h: Likewise.
1371 * config/tc-fr30.h: Likewise.
1372 * config/tc-i960.h: Likewise.
1373 * config/tc-mips.h: Likewise.
1375 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1376 (MD_APPLY_SYM_VALUE): Move.
1378 2003-01-23 Nick Clifton <nickc@redhat.com>
1380 * NEWS: Announce sh2e support.
1383 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1384 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1385 (sh_elf_final_processing): Handle arch_sh2e.
1387 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1389 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1390 * symbols.h (S_FORCE_RELOC): Likewise.
1391 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1392 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1393 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1394 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1395 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1396 * write.c (generic_force_reloc): New function.
1397 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1398 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1399 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1400 * as.h (generic_force_reloc): Declare.
1401 * doc/internals.texi (S_FORCE_RELOC): Update.
1402 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1404 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1405 generic_force_reloc.
1406 (alpha_fix_adjustable): Likewise.
1407 * config/tc-arm.c (arm_force_relocation): Likewise.
1408 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1409 * config/tc-frv.c (frv_force_relocation): Likewise.
1410 * config/tc-i386.c (md_apply_fix3): Likewise.
1411 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1412 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1413 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1414 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1415 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1416 * config/tc-mips.c (mips_force_relocation): Likewise.
1417 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1418 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1419 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1420 * config/tc-sh.c (sh_force_relocation): Likewise.
1421 (md_pcrel_from_section): Likewise.
1422 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1423 * config/tc-v850.c (v850_force_relocation): Likewise.
1424 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1425 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1426 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1427 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1429 * config/tc-d10v.c (d10v_force_relocation): Delete.
1430 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1431 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1432 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1433 * config/tc-fr30.c (fr30_force_relocation): Delete.
1434 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1435 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1436 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1437 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1438 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1439 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1440 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1441 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1442 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1443 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1444 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1445 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1446 * config/tc-i386.c (i386_force_relocation): Delete.
1447 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1449 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1450 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1451 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1452 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1454 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1455 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1457 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1459 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1460 sh64_elf_section_data.
1461 * config/tc-sh64.h: Include elf32-sh64.h.
1462 * config/tc-m68hc11.c: Don't include stdio.h.
1463 (md_show_usage): Fix missing continuation.
1464 * Makefile.am: Run "make dep-am".
1465 * Makefile.in: Regenerate.
1467 2003-01-22 Nick Clifton <nickc@redhat.com>
1469 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1471 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1473 * configure.in: Handle *-*-aros*.
1474 * configure: Regenerated from configure.in.
1476 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1478 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1479 gotplt and pltoff relocations.
1480 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1481 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1482 gotplt and pltoff to bfd relocations.
1483 (md_gather_operands): Map new instruction operand/elf suffix
1484 combinations to bfd relocations.
1485 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1486 to the list of unadjustable relocations.
1487 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1488 and pltoff relocations.
1489 (md_apply_fix3): Add the new relocations.
1491 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1493 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1494 with a subsy symbol.
1496 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1498 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1499 of relocs for memory bank addressing.
1501 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1503 * config/tc-m68hc11.c (md_show_usage): Update usage.
1504 (md_parse_option): Recognize -m68hcs12.
1505 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1507 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1509 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1511 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1513 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1515 * Makefile.am: Run "make dep-am".
1516 * Makefile.in: Regenerate.
1517 * po/POTFILES.in: Regenerate.
1519 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1521 * read.c (get_absolute_expr): New, split out from..
1522 (get_absolute_expression): ..here.
1523 * read.h (get_absolute_expr): Declare.
1524 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1525 Trim size to arch bits_per_address, and test for negative input
1526 via get_absolute_expr.
1528 2003-01-07 DJ Delorie <dj@redhat.com>
1530 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1532 (xstormy16_md_apply_fix3): Use adjustment.
1534 2003-01-02 Ben Elliston <bje@redhat.com>
1536 * configure.in: Add iq2000-elf target.
1537 * configure: Regenerate.
1538 * config/tc-iq2000.c: New file.
1539 * config/tc-iq2000.h: Likewise.
1540 * po/gas.pot: Regenerate.
1542 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1544 * config/tc-mips.c: Update copyright years to include 2003.
1545 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1546 Additionally, clean up their code slightly and clean up their
1549 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1551 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1553 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1555 * doc/Makefile.in: Regenerate.
1557 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1559 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1560 of .init and .fini sections for array initializers and finalizers.
1562 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1564 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1565 the "+D" operand, which will be used only by the disassembler.
1567 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1569 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1571 * configure: Regenerate.
1572 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1573 (macro_build): Handle "K" operand.
1574 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1575 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1576 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1577 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1578 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1579 (validate_mips_insn): Implement "+" as a way to extend the
1580 allowed operands, and implement "K", "+A", "+B", and "+C"
1582 (OPTION_MIPS32R2): New define.
1583 (md_longopts): Add entry for OPTION_MIPS32R2.
1584 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1585 (md_parse_option): Handle OPTION_MIPS32R2.
1586 (s_mipsset): Reimplement handling of ".set mipsN" options
1587 and add support for ".set mips32r2".
1588 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1589 (md_show_usage): Document "-mips32r2" option.
1590 * doc/as.texinfo: Document "-mips32r2" option.
1591 * doc/c-mips.texi: Likewise.
1593 2002-12-30 Dmitry Diky <diwil@mail.ru>
1595 * configure.in: Add msp430 target.
1596 * configure: Regenerate.
1597 * Makefile.am: Add msp430 target.
1598 * Makefile.in: Regenerate.
1599 * config/tc-msp430.c: New file: msp430 assembler.
1600 * config/tc-msp430.h: New file: target macros for msp430.
1601 * doc/Makefile.am: Add msp430 target.
1602 * doc/Makefile.in: Regenerate.
1603 * doc/as.texinfo: Include msp430 documenation.
1604 * doc/all.texi: Enable msp430 documentation.
1605 * doc/c-msp430.texi: New file: document msp430 specific features
1608 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1610 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1611 (dwarf2_finish): Use it.
1612 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1613 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1615 2002-12-20 DJ Delorie <dj@redhat.com>
1617 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1618 BFD_RELOC_XSTORMY16_12.
1620 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1622 * doc/as.texinfo (Invoking): Typo fix.
1623 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1625 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1627 * doc/c-alpha.texi: Fix typos.
1628 * doc/c-arm.texi: Likewise.
1629 * doc/c-d10v.texi: Likewise.
1630 * doc/c-i370.texi: Likewise.
1631 * doc/c-i960.texi: Likewise.
1632 * doc/c-ia64.texi: Likewise.
1633 * doc/c-mmix.texi: Likewise.
1634 * doc/c-ns32k.texi: Likewise.
1635 * doc/c-pdp11.texi: Likewise.
1636 * doc/c-pj.texi: Likewise.
1637 * doc/c-sh64.texi: Likewise.
1638 * doc/c-sparc.texi: Likewise.
1639 * doc/c-tic54x.texi: Likewise.
1640 * doc/c-v850.texi: Likewise.
1641 * doc/c-vax.texi: Likewise.
1642 * doc/internals.texi: Likewise.
1644 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1646 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1647 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1648 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1649 arrange not to issue warnings about use of AT when AT is not
1652 2002-12-17 Nick Clifton <nickc@redhat.com>
1654 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1655 prevent it being confused with -k.
1657 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1659 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1660 has already been set up, use it.
1662 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1664 * ChangeLog-9295: Fix a typo.
1666 * config/tc-d10v.c: Fix a comment typo.
1667 * config/tc-dlx.c: Likewise.
1668 * config/tc-h8300.h: Likewise.
1669 * config/tc-h8500.h: Likewise.
1670 * config/tc-mips.c: Likewise.
1671 * config/tc-s390.c: Likewise.
1672 * config/tc-sh.h: Likewise.
1673 * config/tc-tic80.h: Likewise.
1674 * config/tc-w65.h: Likewise.
1675 * config/tc-z8k.c: Likewise.
1676 * config/tc-z8k.h: Likewise.
1677 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1679 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1681 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1682 Simplify sign extension. Remove redundant unsigned < 0 test.
1683 * config/tc-i960.c (md_ri_to_chars): Prototype.
1684 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1685 (dump_literals): Init brarsym, and test later instead of isforce.
1687 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1688 (parse): Constify line and lineptr.
1689 (md_begin): Calculate endop here.
1691 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1693 * config/obj-vms.c: Formatting. Include fnctl.h.
1694 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1695 (Object_Record_Offset): Make it a size_t.
1696 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1697 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1698 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1699 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1700 (vms_fixup_data_section <data_size>): Add here instead.
1701 * config/e-criself.c: Fix typo in last change.
1703 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1705 * write.c (write_object_file): Fix signed/unsigned warning.
1706 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1707 * config/e-criself.c (criself_bfd_name): Prototype.
1708 * config/obj-aout.c (s_sect): Remove unused function.
1709 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1710 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1711 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1712 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1713 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1714 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1715 (vms_fixup_text_section <text_siz>): Likewise.
1716 (synthesize_data_segment <data_size>): Likewise.
1717 (vms_fixup_xtors_section <sect_no>): Likewise.
1718 (structure_count): Don't use implicit int type.
1719 * config/tc-a29k.c (insert_sreg): Prototype.
1720 (define_some_regs): Prototype, make static.
1721 (parse_operand): Likewise.
1722 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1723 (md_show_usage <stream>): Likewise.
1724 (md_section_align <segment>): Likewise.
1725 (md_convert_frag <all args>): Likewise.
1726 (md_estimate_size_before_relax <all args>): Likewise.
1727 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1728 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1729 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1730 (md_undefined_symbol <name>): Likewise.
1731 (md_convert_frag <all args>): Likewise.
1732 (write_long <opcode>): Likewise.
1733 (tc_gen_reloc <seg>): Likewise.
1734 (md_estimate_size_before_relax <all args>): Likewise.
1735 (md_apply_fix3 <seg>): Likewise.
1736 (s_d30v_align <ignore>): Likewise.
1737 (build_insn): Correct format string.
1738 (md_apply_fix3): Likewise.
1739 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1740 (md_undefined_symbol <name>): Likewise.
1741 (md_convert_frag <all args>): Likewise.
1742 (md_cgen_lookup_reloc <insn>): Likewise.
1743 (md_begin): Delete unused vars.
1744 (md_assemble): Likewise.
1745 (md_estimate_size_before_relax): Likewise.
1746 (fr30_relax_frag): #if 0 out, seems unused.
1747 (md_atof): Remove declaration of atof_ieee.
1748 (restore_colon): Prototype.
1749 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1750 (frv_find_in_vliw): Likewise.
1751 (frv_debug_tomcat): Likewise.
1752 (frv_adjust_vliw_count): Likewise.
1753 (frv_tomcat_shuffle): Likewise.
1754 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1755 frv_find_in_vliw call.
1756 (md_atof): Remove declaration of atof_ieee.
1757 * config/tc-h8500.c (cons): Delete declaration.
1758 (md_begin <opcode>): Constify.
1759 (displacement_size, immediate_size, absolute_size): Remove.
1760 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1761 (tc_crawl_symbol_chain <headers>): Likewise.
1762 (md_undefined_symbol <name>): Likewise.
1763 (tc_headers_hook <headers>): Likewise.
1764 (md_parse_option <c,arg>): Likewise.
1765 (md_show_usage <stream>): Likewise.
1766 (md_convert_frag <headers, seg>): Likewise.
1767 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1768 (md_atof): Remove declaration of atof_ieee.
1769 (tc_aout_fix_to_chars): Remove unused function.
1770 (parse_reg): Prototype.
1771 (parse_exp): Prototype.
1772 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1773 (parse_reglist): Prototype.
1774 (get_operand): Prototype.
1775 (get_operands): Prototype.
1776 (get_specific): Prototype. Make "this_index" signed.
1777 (check): Prototype, make static.
1779 (build_relaxable_instruction): Prototype, make static.
1780 (build_bytes): Prototype.
1781 (wordify_scb): Prototype.
1782 * config/tc-h8500.h (start_label): Declare.
1783 (tc_coff_sizemachdep): Declare.
1784 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1785 (i370_rmode <unused>): Likewise.
1786 (i370_csect <unused>): Likewise.
1787 (i370_dc <unused>): Likewise.
1788 (i370_ds <unused>): Likewise.
1789 (i370_elf_lcomm <unused>): Likewise.
1790 (i370_ltorg <ignore>): Likewise.
1791 (i370_using <ignore>): Likewise.
1792 (i370_drop <ignore>): Likewise.
1793 (i370_byte <ignore>): Likewise.
1794 (i370_tc <ignore>): Likewise.
1795 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1796 (md_convert_frag <all args>): Likewise.
1797 (md_undefined_symbol <name>): Likewise.
1798 (md_pcrel_from_section <sec>): Likewise.
1799 (tc_gen_reloc <seg>): Likewise.
1800 (i370_section_letter): #if 0 unused functions.
1801 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1802 (symbol_locate): Prototype.
1803 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1804 (md_number_to_disp, md_number_to_field): Remove.
1805 (md_apply_fix3): Correct format string and cast "fup".
1806 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1807 (s_endian <ignore>): Likewise.
1808 (md_undefined_symbol <name>): Likewise.
1809 (tc_crawl_symbol_chain <headers>): Likewise.
1810 (tc_set_bal_of_call): Likewise.
1811 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1812 (i960_handle_align <fragp>): Likewise.
1813 (i960_validate_fix <this_segment_type>): Likewise
1814 (tc_gen_reloc <section>): Likewise.
1815 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1816 (struct memS, struct regop): Forward declare.
1817 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1818 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1819 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1820 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1821 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1822 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1823 (md_number_to_field): Likewise.
1824 (md_number_to_disp): Remove unused function.
1825 (md_atof): Remove declaration of atof_ieee.
1826 (md_apply_fix3): Correct md_number_to_imm call.
1827 * config/tc-ip2k.c (md_assemble): Warning fix.
1828 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1829 (fill_insn <ignore>): Likewise.
1830 (debug_sym <ignore>): Likewise.
1831 (md_undefined_symbol <name>): Likewise.
1832 (m32r_scomm <ignore>): Likewise.
1833 (md_convert_frag <abfd>): Likewise.
1834 (md_cgen_lookup_reloc <insn>): Likewise.
1835 (m32r_record_hi16 <seg>): Likewise.
1836 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1837 (allow_m32rx): Prototype.
1838 (first_writes_to_seconds_operands): Prototype.
1839 (writes_to_pc): Prototype.
1840 (can_make_parallel): Prototype.
1841 (make_parallel): Prototype.
1842 (target_make_parallel): Prototype.
1843 (assemble_two_insns): Prototype.
1844 (m32r_record_hi16): Prototype.
1845 (md_atof): Remove declaration of atof_ieee.
1846 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1847 (m32r_force_relocation): Prototype.
1848 (m32r_elf_section_change_hook): Prototype.
1849 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1850 (md_show_usage): Fix signed/unsigned warning.
1851 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1852 (calcop): Ditto for reg_prefix var.
1853 (hexval): Add cast to fix signed/unsigned warning.
1854 (md_number_to_disp): Delete unused function.
1855 (md_number_to_field): Likewise.
1856 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1857 (match_name): Prototype.
1858 (get_bf2): Prototype.
1859 (get_bf_offset_expression): Prototype.
1860 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1861 (md_undefined_symbol <ignore>): Likewise.
1862 (md_create_short_jump <all args>): Likewise.
1863 (md_create_long_jump <all args>): Likewise.
1864 (md_convert_frag <abfd, sec>): Likewise.
1865 (md_apply_fix3 <segment>): Likewise.
1866 (md_section_align <segment>): Likewise.
1867 (md_pcrel_from_section <sec>): Likewise.
1868 (tc_gen_reloc <section>): Likewise.
1869 (reg_m, reg_n, immediate): Delete unused vars.
1870 (dump_literals): Fix signed/unsigned warning.
1871 (enter_literal): Likewise.
1872 (parse_imm): Likewise. Also fix format string.
1873 (parse_mem): Remove unused var.
1874 (md_assemble <LS>): Abort on unexpected inst.
1875 (md_atof): Remove declaration of atof_ieee.
1876 (md_parse_option): Remove unused vars.
1877 (md_apply_fix3): Fix format strings, cast args.
1878 (tc_gen_reloc): Delete unused var.
1879 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1880 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1881 (md_undefined_symbol <name>): Likewise.
1882 (md_convert_frag <abfd>): Likewise.
1883 (tc_gen_reloc <seg>): Likewise.
1884 (check_operand <insn>): Likewise.
1885 (md_convert_frag): Fix format strings.
1886 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1887 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1888 (md_atof): Remove declaration of atof_ieee.
1889 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1890 (md_apply_fix3): Fix bogus >>='s.
1891 (md_undefined_symbol): Delete unused var.
1892 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1893 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1894 (fake_opcode): Adjust for pj_opc_int_t change.
1895 (md_begin): Likewise.
1896 (md_assemble): Likewise.
1897 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1898 instead of non-existent third arg of parse_exp_save_ilp.
1899 (md_parse_option): Correct "little" and "big" calls.
1900 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1901 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1902 (tc_gen_reloc <section>): Likewise.
1903 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1904 (debug): Rewrite using VA_* macros.
1905 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1906 (md_convert_frag): Likewise.
1907 (md_parse_option): Likewise.
1908 (md_show_usage): Likewise.
1909 (md_undefined_symbol): Likewise.
1910 (tc_gen_reloc): Likewise.
1911 (md_operand): Likewise.
1912 (tc_aout_pre_write_hook): Delete.
1913 (struct tic30_insn): Make "operands" unsigned.
1914 (struct tic30_par_insn): Likewise.
1915 (md_assemble): Likewise for "count", "i" and "numops".
1916 (tic30_parallel_insn): Likewise for vars here.
1917 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1918 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1919 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1920 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1921 (md_undefined_symbol): Likewise.
1922 (md_parse_option): Likewise.
1923 (md_convert_frag): Likewise.
1924 (tc_coff_symbol_emit_hook): Likewise.
1925 (md_atof): Remove declaration of atof_ieee.
1926 (const_overflow): Warning fixes, tidy.
1927 (get_operands): Delete unused vars.
1928 (internal_error_a): Adjust format string to expect a long for arg.
1929 (find_opcode): Warning fixes, simplify.
1930 (build_insn): Cast internal_error_a arg.
1931 (md_begin): Likewise.
1932 (md_apply_fix3): Likewise.
1933 (md_assemble): Delete unused var.
1934 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1935 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1936 (whatreg, parse_reg, parse_exp): Make static, prototype.
1937 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1938 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1939 (get_operand, get_operands, get_specific, newfix): Likewise.
1940 (apply_fix, build_bytes): Likewise.
1941 (md_atof): Remove declaration of atof_ieee.
1942 (tc_aout_fix_to_chars): Delete.
1943 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1945 (md_parse_option): Fix s_segm and s_unseg calls.
1947 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1949 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1951 (RELAX_BRANCH_RELOC_S2): Delete.
1952 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1953 Do not handle BFD_RELOC_16_PCREL.
1954 (macro_build, mips_ip): Likewise.
1955 (md_pcrel_from): Return 4 for undefined symbols regardless of
1957 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1958 Don't dereference howto if no such relocation is available.
1959 Do not apply hack for in-place zero addend in NEWABI.
1960 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1962 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1963 Alan Modra <amodra@bigpond.net.au>
1965 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1966 (TC_LINKRELAX_FIXUP): Add comments.
1968 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1970 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1972 (r_register_name, xr_register_name): Add prototype declarations.
1974 2002-12-08 H.J. Lu <hjl@gnu.org>
1976 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1977 copied from tc-i386.c.
1979 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1981 Fix Bug savannah/1825:
1982 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1983 (md_relax_table): Define specific relax for PC-rel offsets.
1984 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1985 (m68hc11_relax_frag): Handle the new relax code.
1986 (md_convert_frag): Likewise.
1987 (md_estimate_size_before_relax): Likewise.
1989 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1991 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1993 2002-12-05 Richard Henderson <rth@redhat.com>
1995 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1996 (ia64_gen_real_reloc_type): Handle it.
1997 (pseudo_func): Add @ltoffx.
1998 (md_begin): Build .<ltoffx>.
1999 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2001 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2003 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2004 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2005 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2006 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2007 COFF to call arm_force_relocation.
2009 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2011 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2013 (emit_one_bundle): Handle "hint" instruction.
2014 (operand_match): Match IA64_OPND_AR_CSD.
2016 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2018 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2021 2002-12-03 Nick Clifton <nickc@redhat.com>
2023 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2024 .PPC.EMB.apuinfo sections.
2026 2002-12-03 Richard Henderson <rth@redhat.com>
2028 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2030 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2032 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2033 (cons, s_align_bytes): Delete declaration.
2035 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2037 (dot): Delete unused function.
2038 (w65_expression): Remove unused arg.
2039 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2041 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2043 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2045 (check): Remove unused function.
2046 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2047 on unhandled switch case.
2048 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2050 (tc_crawl_symbol_chain): Delete unused function.
2051 (tc_headers_hook): Likewise.
2052 (tc_Nout_fix_to_chars): Likewise.
2053 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2054 (md_parse_option): Likewise.
2055 (md_convert_frag): Likewise.
2056 (tc_coff_symbol_emit_hook): Likewise.
2057 (md_show_usage): Likewise.
2058 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2059 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2060 (w65_expression): Declare.
2062 * po/POTFILES.in: Regenerate.
2064 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2065 and ARM_ADRL_IMMEDIATE.
2067 2002-12-02 Nick Clifton <nickc@redhat.com>
2069 * gasp.c: Delete. It has been deprecated.
2070 * NEWS: Mention that gasp has been removed.
2071 * Makefile.am: Remove references to gasp.
2072 * makefile.vms: Likewise.
2073 * mpw-make.sed: Likewise.
2074 * Makeile.in: Regenerate.
2075 * doc/gasp.texi: Delete.
2076 * doc/Makefile.am: Remove references to gasp.texi.
2077 * doc/Makefile.in: Regenerate.
2078 * macro.c: Delete references to gasp.
2079 Remove use of comment_char function parameter as it is no longer
2081 * macro.h: Update prototypes to remove comment_char parameter.
2083 * read.c (read_a_source_file, s_irp): Remove comment_char
2084 parameter from invocation of functions in macro.c
2086 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2088 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2090 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2092 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2093 (tc_gen_reloc): Mark section param as not used.
2095 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2097 Fix Bug savannah/1825:
2098 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2099 that are not pc-relative.
2100 (m68hc11_relax_frag): Declare.
2102 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2103 the offsetable indexed addressing modes (n,r).
2104 (build_insn): Cleanup some locals.
2105 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2106 relaxation of difference between two symbols of same section.
2107 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2108 only when this is a PC-relative operand and the offset is not absolute.
2109 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2110 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2111 be handled by m68hc11_relax_frag.
2113 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2115 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2116 (32-bit int, 64-bit double).
2117 (md_longopts): New options -mshort, -mlong, -mshort-double and
2118 -mlong-double to control the ABI.
2119 (md_show_usage): Update.
2120 (md_parse_option): Handle new options.
2121 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2123 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2125 * symbols.c (report_op_error): New function, broken out of ...
2126 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2129 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2131 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2132 for BFD_RELOC_32_PLT_PCREL.
2134 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2136 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2137 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2138 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2139 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2140 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2141 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2142 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2143 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2144 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2145 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2146 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2147 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2148 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2149 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2150 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2151 TRUE/FALSE. Formatting.
2153 2002-11-29 Nick Clifton <nickc@redhat.com>
2155 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2156 assume a value of zero.
2157 (do_bkpt): Likewise.
2159 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2161 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2162 for TLS relocations.
2164 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2166 * config/tc-ia64.c (md_apply_fix3): Add default case.
2168 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2170 * symbols.c (S_SET_THREAD_LOCAL): New function.
2171 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2172 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2173 for TLS relocations.
2174 * config/tc-ia64.c (md_apply_fix3): Likewise.
2175 * config/tc-alpha.c (md_apply_fix3): Likewise.
2177 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2179 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2182 2002-11-26 DJ Delorie <dj@redhat.com.
2184 * dwarf2dbg.c (scale_addr_delta): New.
2185 (size_inc_line_addr): Use it.
2186 (emit_inc_line_addr): Use it.
2188 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2190 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2191 (md_assemble): Don't pass on branches to constants as relaxable.
2194 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2196 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2198 2002-11-21 Randolph Chung <randolph@tausq.org>
2200 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2201 only if they have default visibility.
2203 2002-11-21 Richard Henderson <rth@redhat.com>
2205 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2208 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2210 * config/tc-mcore.c (mcore_pool_count): New function.
2211 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2213 2002-11-20 Klee Dienes <kdienes@apple.com>
2215 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2216 coalesce the name fields to use the same pointer.
2218 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2219 the name fields to use the same pointer.
2220 (get_specific): Check for opcodes with the same name using strcmp
2221 as well as comparing the pointer.
2223 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2225 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2228 2002-11-19 Richard Henderson <rth@redhat.com>
2230 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2231 visibility portion of st_other.
2233 2002-11-19 Klee Dienes <kdienes@apple.com>
2235 * config/tc-h8300.c (struct h8_instruction): New type, used to
2236 wrap h8_opcodes with length, noperands, idx, and size fields
2237 (computed at run-time).
2238 (h8_instructions): New variable.
2239 (md_begin): Allocate the storage for h8_instructions. Fill
2240 h8_instructions with pointers to the appropriate opcode and the
2241 correct value for the additional fields.
2242 (clever_message): Update to use h8_instructions instead of
2244 (build_bytes): Ditto.
2245 (get_specific): Ditto.
2246 (md_assemble): Ditto.
2248 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2250 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2251 adjustments to symbols in merge sections.
2253 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2255 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2257 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2259 * dwarf2dbg.h (dwarf2_format): New enum.
2260 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2261 (out_debug_line, out_debug_info): Add code for handling 64-bit
2263 * config/tc-mips.h (mips_dwarf2_format): Declare.
2264 * config/tc-mips.c (mips_dwarf2_format): New function.
2265 * doc/internals.texi (DWARF2_FORMAT): Document.
2267 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2269 * config/tc-mips.c (s_change_section): Make sure input buffer
2270 is not accessed past the end. Don't hand
2271 obj_elf_change_section a pointer into the input buffer.
2273 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2275 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2278 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2280 * config/tc-tic4x.c: Fixed proper commandline
2281 parameters. Added support for new opcode-list format. General
2282 error message fixups.
2283 (c4x_inst_add): Reject insn not for our CPU
2284 (md_begin): Added matrix for setting the proper opcode-level &
2285 device-flags according to cpu type and revision. Rewrite the
2287 (c4x_operand_parse): Fix opcode bug
2288 (c4x_operands_match): New function argument. Added dry-run
2289 mechanism, that is optional error generation. Added constraint 'i'
2291 (c4x_insn_check): Added new function for post-verification of the
2293 (md_assemble): Check all opcodes before croaking because of an
2294 argument mismatch. Need this to be able to fully support
2295 ortogonally arguments.
2296 (md_parse_options): Revised commandprompt swicthes and added new
2298 (md_show_usage): Complete rewrite of printout.
2300 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2302 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2303 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2304 warning when using constant direct bigger than 2^16. Add the new
2307 2002-11-11 Christopher Faylor <cgf@redhat.com>
2309 * configure.in: Use .gdbinit under Cygwin.
2310 * configure: Regenerate.
2312 2002-11-11 Christopher Faylor <cgf@redhat.com>
2314 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2317 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2319 * config/tc-tic4x.c: Declare as many functions as possible as
2320 static. Maintenance on the general indenting. Removed unnecessary
2321 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2322 function. Add support for new DSP, TMS320VC33. Fix bug for
2323 converting flonum constants.
2324 (c4x_do_align): Add proper align handling. Setup align to insert
2326 (c4x_gen_to_words): Support for extended TI type floats.
2327 (md_atof): Proper dumping of multiple-word littlenums.
2328 (c4x_atof): Added support for extended TI type floats.
2329 (c4x_stringer): Added new function to handle compact strings.
2330 (c4x_emit_char): Added new function argument to handle custom
2331 length inserts, like single-byte strings.
2332 * config/tc-tic4x.h: Add proper align handling with NOP's.
2333 * Makefile.am: Added tic4x dependecy
2334 * Makefile.in: Regenerate
2336 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2338 * macro.c (get_any_string): Correct logic for not going beyond end
2341 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2343 * config/tc-mmix.c (get_putget_operands): Mark both possible
2344 operands as invalid at beginning.
2346 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2347 Initialize target of fixup to zero.
2349 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2351 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2352 NEWABI, but we should still emit HI16_S for non-PIC n32.
2354 2002-11-06 Richard Henderson <rth@redhat.com>
2356 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2357 (alpha_fix_adjustable): ... here.
2358 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2360 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2362 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2365 2002-11-05 H.J. Lu <hjl@gnu.org>
2367 * config/tc-mips.c (support_64bit_objects): Check *l before it
2370 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2372 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2373 SEC_LOAD flags for sections marked as 's'.
2375 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2377 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2378 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2379 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2382 * dep-in.sed: Fix typo.
2384 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2386 * configure.in: Update ARM CPU patterns.
2387 * configure: Regenerated.
2389 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2391 * itbl-lex.l: Use #include <> for generated headers.
2392 * itbl-ops.c: Likewise.
2394 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2396 * doc/gasp.texi: Fix typo in deprecation note.
2398 2002-10-23 Nick Clifton <nickc@redhat.com>
2400 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2401 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2403 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2405 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2406 (tc_frob_file_before_adjust): Don't define.
2407 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2409 (mmix_frob_file_before_adjust): Remove ineffective function.
2411 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2413 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2414 (cris_relax_frag): New function.
2415 (md_estimate_size_before_relax) <case ENCODE_RELAX
2416 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2417 expressions that will become absolute expressions to relaxation.
2418 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2419 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2420 value, not distance to symbol.
2421 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2422 Ditto. Correct placement of fixup.
2423 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2425 * config/tc-cris.h (cris_relax_frag): Declare.
2426 (md_relax_frag): Define.
2428 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2430 * config/obj-elf.c (special_sections): Use correct types for init
2432 (obj_elf_change_section): Don't mess with init array section type.
2434 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2436 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2437 for relocs against symbols in a merged section.
2439 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2441 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2442 table as register names.
2444 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2446 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2449 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2451 * expr.c (operand): Add support for n.nn flonums.
2453 2002-10-17 Johannes Stezenbach <js@convergence.de>
2455 * itbl-parse.y (entry): Provide empty action.
2457 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2459 * configure.in (BFDVER_H): Set and subst.
2460 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2461 * Makefile.am: Run "make dep-am".
2463 * configure: Regenerate.
2464 * Makefile.in: Regenerate.
2465 * doc/Makefile.in: Regenerate.
2467 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2469 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2470 (MD_APPLY_SYM_VALUE): Define for PE too.
2472 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2474 * Makefile.am: Run "make dep-am".
2475 (CPU_OBJ_VALID): sh64 coff is invalid.
2476 * as.c: #include "bfdver.h".
2477 * Makefile.in: Regenerate.
2478 * config.in: Regenerate.
2480 2002-10-14 Momchil Velikov <velco@fadata.bg>
2482 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2484 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2486 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2487 * configure: Regenerate.
2489 2002-10-13 Eric Christopher <echristo@redhat.com>
2490 Alexandre Oliva <aoliva@redhat.com>
2492 * config/tc-mips.c (s_gpdword): New function.
2493 (mips_pseudo_table): Add .gpdword.
2494 (mips_need_elf_addend_fixup): never for NEWABI.
2495 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2497 (s_cpadd): Generate .cpadd on NEWABI.
2499 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2501 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2503 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2505 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2506 (md_relax_frag): Adjust macro.
2507 * config/tc-mips.c (mips_relax_branch): New variable.
2508 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2509 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2510 (RELAX_MIPS16_P): Adjust.
2511 (append_insn): Emit branch to non-constant in a frag_var if
2512 branch-relaxation is desirable and possible.
2513 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2514 (OPTION_ELF_BASE): Adjust.
2515 (md_parse_option): Handle new options.
2516 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2518 (relaxed_branch_length): New function.
2519 (md_estimate_size_before_relax): Handle branch frags.
2520 (mips_relax_frag): Likewise.
2521 (md_convert_frag): Handle branch frags. Warn if branch is
2524 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2526 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2528 (md_apply_fix3): Add TLS relocs.
2529 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2532 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2533 Alan Modra <amodra@bigpond.net.au>
2535 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2536 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2538 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2540 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2543 2002-10-09 Richard Shann <richard.shann@superh.com>
2544 Stephen Clarke <stephen.clarke@superh.com>
2546 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2549 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2551 * contig/tc-sh.c (sh_local_pcrel): New.
2552 (sh_force_relocation): Use sh_local_pcrel.
2553 (md_pcrel_from_section): Check the relocation type whether it
2554 should be resolved locally. Use S_FORCE_RELOC.
2556 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2558 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2559 (TC_FORCE_RELOCATION): Tidy arg.
2561 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2562 Ken Raeburn <raeburn@cygnus.com>
2563 Aldy Hernandez <aldyh@redhat.com>
2564 DJ Delorie <dj@redhat.com>
2565 Michael Meissner <meissner@redhat.com>
2566 Eric Christopher <echristo@redhat.com>
2567 Richard Sandiford <rsandifo@redhat.com>
2569 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2570 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2571 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2572 (hilo_interlocks): True for CPU_VR5500.
2573 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2574 (mips_fix_vr4122_bugs): New.
2575 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2576 (mips_emit_delays): Likewise.
2577 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2578 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2579 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2580 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2581 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2582 (OPTION_ELF_BASE): Bump.
2583 (md_parse_option): Handle the new options.
2584 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2587 2002-09-29 H.J. Lu <hjl@gnu.org>
2589 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2590 twice if howto->pcrel_offset is true.
2592 2002-09-28 Matt Thomas <matt@3am-software.com>
2593 Jason Thorpe <thorpej@wasabisystems.com>
2595 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2596 convert undefined references to GOT32/PLT32 if PIC code is
2597 requested. Fix comment.
2599 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2601 * config/tc-sh.c (sh_force_relocation): Return 0 for
2602 some PC relative relocations when not relaxing.
2604 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2606 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2607 Define them if not BFD_ASSEMBLER.
2608 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2610 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2611 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2612 (tc_gen_reloc): Handle x86-64 TLS relocs.
2614 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2616 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2617 fixups to current or absolute section.
2619 2002-09-26 Jim Wilson <wilson@redhat.com>
2621 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2624 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2626 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2627 capable configuration.
2628 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2630 (mips_ip): Likewise.
2632 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2634 * config/tc-mips.c (append_insn): Fix jump overflow check.
2636 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2638 * config/tc-i386.c (process_operands): Warn about "lea" segment
2641 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2643 * write.c: Delete set_segment_vma and prototype. Update all callers.
2645 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2647 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2648 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2649 Rename "fseg" to "sym_seg".
2650 * Makefile.am: Run "make dep-am".
2651 * Makefile.in: Regenerate.
2652 * doc/Makefile.in: Regenerate.
2654 2002-09-20 Nick Clifton <nickc@redhat.com>
2656 * symbols.c (colon): Do not allow symbols to be created in the
2657 absolute section if WORKING_DOT_WORD is not defined and
2658 new_broken_words would require a new frag to be created.
2660 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2662 * expr.c (expr): Simplify foo-foo here.
2663 (clean_up_expression): Remove O_subtract code.
2665 * write.h (struct fix): Add fx_dot_value.
2666 (dot_value): Declare.
2667 * write.c (dot_value): New var.
2668 (fix_new_internal): Save dot_value as fx_dot_value.
2669 (fixup_segment): Adjust fx_offset using fx_dot_value.
2670 * expr.c (expr): Update dot_value.
2672 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2674 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2675 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2676 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2678 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2679 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2680 BFD_RELOC_386_TLS_GOTIE.
2682 2002-09-19 Richard Henderson <rth@redhat.com>
2684 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2686 (alpha_force_relocation): Don't special-case branch type relocs.
2688 2002-09-19 Nick Clifton <nickc@redhat.com>
2690 * config/tc-m68k.c (select_control_regs): Handle situation where
2691 architecture has not yet been selected.
2693 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2695 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2696 (IS_SEXT_16BIT_NUM): New macro.
2697 (macro_build_ldst_constoffset): New function, to build a set of
2698 instructions to do a load or store from a constant offset relative
2699 to a given register.
2700 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2701 .cprestore pseudo-op.
2703 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2705 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2707 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2709 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2711 2002-09-17 Stan Cox <scox@redhat.com>
2713 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2714 (macro): Likewise for la. Likewise for ld.
2715 (mips_after_parse_args): Make -xgot optional, not the default.
2716 (md_apply_fix3): Allow composite relocation to set up gp.
2717 (tc_gen_reloc): Allow relaxing for newabi.
2718 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2719 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2721 2002-09-17 Nick Clifton <nickc@redhat.com>
2723 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2724 BFD_RELOC_ARM_IMMEDIATE has been done.
2725 (tc_gen_reloc): Do not issue reloc number of unimplemented
2726 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2727 their name is already in the error message - plus remove them
2728 from the default case.
2730 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2731 behavior of instructions.
2733 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2735 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2736 Convert functions to K&R format.
2738 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2740 * config/tc-mips.c (pdr_seg): Define only for ELF.
2741 (s_change_section): Remove unused variable. Don't use for nonELF.
2743 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2745 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2747 * config/obj-elf.h (obj_elf_change_section): Likewise.
2749 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2751 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2752 (out_debug_info): Likewise.
2754 2002-09-16 Bruno Haible <bruno@clisp.org>
2756 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2757 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2758 * config/tc-i386.c (i386_target_format): Likewise.
2759 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2760 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2762 2002-09-13 Nick Clifton <nickc@redhat.com>
2764 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2765 when deciding if any operands have been skipped.
2767 2002-09-11 Nick Clifton <nickc@redhat.com>
2769 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2771 * po/tr.po: Updated Turkish translation.
2773 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2775 * config/tc-i386.c (md_apply_fix3): Allow addend for
2776 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2777 BFD_RELOC_386_TLS_LE_32.
2779 2002-09-05 Jeff Law <law@redhat.com>
2781 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2782 marker relocations such as ENTRY/EXIT.
2783 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2784 to both OBJ_ELF and OBJ_SOM.
2786 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2788 * doc/internals.texi (md_apply_fix3): Expand.
2789 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2790 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2791 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2792 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2793 EXTERN_FORCE_RELOC): Document.
2794 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2795 * as.h: Don't include struc-symbol.h for arc.
2797 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2798 subtract absolute symbol.
2799 * obj.h (struct format_ops): Add frob_file_before_fix.
2800 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2801 * symbols.c (S_FORCE_RELOC): New function.
2802 * symbols.h (S_FORCE_RELOC): Declare.
2803 * write.c (TC_FORCE_RELOCATION): Change default.
2804 (TC_FORCE_RELOCATION_ABS): Define.
2805 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2806 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2807 (TC_FORCE_RELOCATION_SECTION): Don't define.
2808 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2809 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2810 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2811 (TC_VALIDATE_FIX_SUB): Define.
2812 (TC_FIX_ADJUSTABLE): Don't define.
2813 (MD_APPLY_SYM_VALUE): Define this instead.
2814 (abs_section_sym): New variable.
2815 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2816 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2817 Don't put the absolute section sym on fixups here.
2818 (fix_segment): New function.
2819 (write_relocs): Don't call fixup_segment from here.
2820 (write_object_file): Instead call tc_frob_file_before_fix,
2821 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2822 Don't output the absolute section symbol.
2823 (fixup_segment): Rewrite.
2824 * write.h (abs_section_sym): Declare.
2825 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2827 (aout_format_ops): Adjust to suit.
2828 * config/obj-aout.h (obj_frob_file): Don't define.
2829 (obj_frob_file_before_fix): Define.
2830 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2831 (S_FORCE_RELOC): Define.
2832 * config/obj-bout.h (S_FORCE_RELOC): Define.
2833 * config/obj-coff.c (coff_format_ops): Init new field.
2834 * config/obj-coff.h: Formatting fixes.
2835 (obj_sec_sym_ok_for_reloc): Define.
2836 (S_FORCE_RELOC): Define.
2837 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2838 (ecoff_frob_file): .. from here.
2839 (ecoff_format_ops): Add new function.
2840 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2841 (obj_frob_file_before_fix): Define.
2842 * config/obj-elf.c (elf_format_ops): Init new field.
2843 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2844 * config/obj-ieee.h: Formatting fixes.
2845 (S_FORCE_RELOC): Define.
2846 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2847 * config/obj-vms.h (S_FORCE_RELOC): Define.
2848 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2849 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2850 for BFD_RELOC_32 and BFD_RELOC_64.
2851 (alpha_fix_adjustable): Remove extern and weak tests.
2852 (alpha_before_fix): Rename from alpha_adjust_symtab.
2853 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2854 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2855 (TC_VALIDATE_FIX): Tweak param name.
2856 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2857 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2858 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2859 (MD_APPLY_SYM_VALUE): Define.
2860 (tc_adjust_symtab): Don't define.
2861 (alpha_adjust_symtab): Don't declare.
2862 (tc_frob_file_before_fix): Define.
2863 (alpha_before_fix): Declare.
2864 (TC_INIT_FIX_DATA): Tweak param names.
2865 * config/tc-arc.c: Include "struc-symbol.h".
2866 (md_pcrel_from): Remove undefined sym fudge.
2867 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2868 Don't set fx_addnumber.
2869 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2870 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2871 (EXTERN_FORCE_RELOC): Define.
2872 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2873 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2874 (arm_validate_fix): Return void.
2875 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2876 Add plt and got reloc tests.
2877 (arm_force_relocation): Call S_FORCE_RELOC.
2878 * config/tc-arm.h (struct fix): Forward declare.
2879 (TC_VALIDATE_FIX): No longer set add_symbolP.
2880 (arm_validate_fix): Adjust declaration.
2881 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2882 (TC_FORCE_RELOCATION): Tweak param name.
2883 (TC_INIT_FIX_DATA): Likewise.
2884 (obj_fix_adjustable): Don't define.
2885 (tc_fix_adjustable): Call arm_fix_adjustable.
2886 (TC_FIX_ADJUSTABLE): Don't define.
2887 (MD_APPLY_SYM_VALUE): Define.
2888 (EXTERN_FORCE_RELOC): Define.
2889 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2890 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2891 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2892 Remove *valP fudges and code to subtract abs sym. Don't set
2894 * config/tc-avr.h: Formatting.
2895 (EXTERN_FORCE_RELOC): Define.
2896 (MD_APPLY_SYM_VALUE): Define.
2897 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2898 (md_apply_fix3): Remove code to subtract abs sym.
2899 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2900 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2901 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2902 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2903 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2904 (tc_fix_adjustable): Remove extern, weak tests.
2905 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2906 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2907 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2908 and code to subtract abs sym.
2909 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2910 (d10v_force_relocation): Call S_FORCE_RELOC.
2911 * config/tc-d10v.h: Don't include write.h.
2912 (struct fix): Instead, forward declare.
2913 (MD_PCREL_FROM_SECTION): Tweak param names.
2914 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2915 (d10v_fix_adjustable): Likewise.
2916 (obj_fix_adjustable): Don't define.
2917 (tc_fix_adjustable): Define.
2918 (TC_FORCE_RELOCATION): Tweak param name.
2919 (MD_APPLY_SYM_VALUE): Define.
2920 (EXTERN_FORCE_RELOC): Define.
2921 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2922 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2923 and code to subtract abs sym.
2924 * config/tc-d30v.h: Don't include write.h.
2925 (struct fix): Instead, forward declare.
2926 (MD_PCREL_FROM_SECTION): Tweak param names.
2927 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2928 (MD_APPLY_SYM_VALUE): Define.
2929 (EXTERN_FORCE_RELOC): Define.
2930 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2931 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2932 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2933 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2934 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2935 Don't use fx_addnumber.
2936 * config/tc-dlx.h: Don't include write.h.
2937 (md_convert_frag): We're not alpha twice over.
2938 (EXTERN_FORCE_RELOC): Define.
2939 (obj_fix_adjustable): Don't define.
2940 (tc_fix_adjustable): Define.
2941 (TC_FIX_ADJUSTABLE): Don't define.
2942 (MD_APPLY_SYM_VALUE): Define.
2943 (LOCAL_LABELS_DOLLAR): Undef always.
2944 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2945 (fr30_fix_adjustable): Remove extern, weak tests.
2946 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2947 (obj_fix_adjustable): Don't define.
2948 (tc_fix_adjustable): Define.
2949 (struct fix): Forward declare.
2950 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2951 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2952 (frv_fix_adjustable): Don't do extern, weak tests.
2953 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2954 (TC_FIX_ADJUSTABLE): Don't define.
2955 (obj_fix_adjustable): Don't define.
2956 (tc_fix_adjustable): Define.
2957 (struct fix): Forward declare.
2958 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2959 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2960 * config/tc-h8300.h (struct fix): Forward declare.
2961 (EXTERN_FORCE_RELOC): Define.
2962 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2963 (hppa_fix_adjustable): Don't test extern or weak. Don't
2964 symbol_mark_used_in_reloc.
2965 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2967 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2968 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2969 (TC_FORCE_RELOCATION_SECTION): Don't define.
2970 (MD_APPLY_SYM_VALUE): Define.
2971 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2972 to subtract abs sym.
2973 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2974 (MD_APPLY_SYM_VALUE): Define.
2975 (MD_PCREL_FROM_SECTION): Tweak param name.
2976 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2977 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2978 (i386_force_relocation): New function.
2979 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2980 (TC_VALIDATE_FIX): Likewise.
2981 (TC_FIX_ADJUSTABLE): Don't define.
2982 (MD_APPLY_SYM_VALUE): Define.
2983 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2984 (i386_force_relocation): Declare.
2985 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2986 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2987 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2988 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2989 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2990 (EXTERN_FORCE_RELOC): Define.
2991 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2992 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2993 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2994 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2995 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2996 Remove #if 0 code. Invert return boolean.
2997 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2998 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2999 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3000 (tc_coff_sizemachdep): Prototype.
3001 (i960_handle_align): Likewise.
3002 (i960_validate_fix): Adjust declaration.
3003 (reloc_callj): Likewise.
3004 (EXTERN_FORCE_RELOC): Define.
3005 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3006 (TC_FORCE_RELOCATION_ABS): Define.
3007 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3008 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3009 (TC_FIX_ADJUSTABLE): Don't define.
3010 (MD_APPLY_SYM_VALUE): Define.
3011 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3012 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3013 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3014 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3015 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3016 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3017 (MD_APPLY_SYM_VALUE): Define.
3018 (EXTERN_FORCE_RELOC): Define.
3019 (TC_FORCE_RELOCATION): Tweak param name.
3020 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3021 (m32r_fix_adjustable): Don't test extern, weak.
3022 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3023 (MD_APPLY_SYM_VALUE): Define.
3024 (obj_fix_adjustable): Don't define.
3025 (tc_fix_adjustable): Define.
3026 (tc_frob_file): Don't define.
3027 (tc_frob_file_before_fix): Define.
3028 (EXTERN_FORCE_RELOC): Define.
3029 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3030 BFD_RELOC_VTABLE_ENTRY address.
3031 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3032 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3033 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3034 Remove duplicated fx_done code.
3035 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3036 (EXTERN_FORCE_RELOC): Define.
3037 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3039 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3040 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3041 (TC_FIX_ADJUSTABLE): Don't define.
3042 (EXTERN_FORCE_RELOC): Define.
3043 (MD_APPLY_SYM_VALUE): Define.
3044 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3045 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3046 Remove fx_addsy tests.
3047 (mcore_force_relocation): Call S_FORCE_RELOC.
3048 (mcore_fix_adjustable): Don't test fx_addsy.
3049 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3050 (EXTERN_FORCE_RELOC): Define.
3051 (obj_fix_adjustable): Don't define.
3052 (tc_fix_adjustable): Define.
3053 (MD_APPLY_SYM_VALUE): Define.
3054 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3055 (mips_pic): No longer static.
3056 (mips_force_relocation): Call S_FORCE_RELOC.
3057 (mips_fix_adjustable): Remove extern, weak tests.
3058 * config/tc-mips.h (enum mips_pic_level): Declare.
3059 (mips_pic): Declare.
3060 (tc_frob_file): Don't define.
3061 (tc_frob_file_before_fix): Define this instead.
3062 (EXTERN_FORCE_RELOC): Define.
3063 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3064 with reg_section tests. Set fx_done instead of calling
3065 symbol_clear_used_in_reloc on bad relocs.
3066 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3067 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3068 (mmix_adjust_symtab): Simplify list handling. Abort on any
3070 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3071 BFD_RELOC_MMIX_LOCAL.
3072 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3073 (EXTERN_FORCE_RELOC): Define.
3074 (MD_PCREL_FROM_SECTION): Tweak param name.
3075 (tc_frob_file): Don't define.
3076 (tc_frob_file_before_fix): Define this instead.
3077 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3078 Remove SEC_CODE checks.
3079 (mn10300_fix_adjustable): Remove extern and weak tests.
3080 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3081 (TC_FORCE_RELOCATION): Tweak param name.
3082 (obj_fix_adjustable): Don't define.
3083 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3084 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3085 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3086 (openrisc_fix_adjustable): Don't test fx_addsy.
3087 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3088 (obj_fix_adjustable): Don't define.
3089 (tc_fix_adjustable): Define this instead.
3090 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3091 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3092 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3093 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3094 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3095 (MD_APPLY_SYM_VALUE): Define.
3096 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3097 Don't subtract symbol value.
3098 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3099 (EXTERN_FORCE_RELOC): Define.
3100 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3101 (MD_APPLY_SYM_VALUE): Define.
3102 (obj_fix_adjustable): Don't define.
3103 (tc_fix_adjustable): Define this instead.
3104 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3106 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3107 (ppc_force_relocation <elf version>): New.
3108 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3109 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3110 comments. Don't subtract fx_subsy as that is already done.
3111 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3112 (MD_PCREL_FROM_SECTION): Likewise.
3113 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3114 ppc_force_relocation.
3115 (TC_FORCE_RELOCATION_SECTION): Delete.
3116 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3117 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3118 (MD_APPLY_SYM_VALUE): Define.
3119 * config/tc-s390.c: #include "dwarf2dbg.h".
3120 (s390_insn): Remove excess parens.
3121 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3122 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3123 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3124 non-NULL. Don't subtract off fx_addsy value.
3125 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3126 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3127 (TC_FIX_ADJUSTABLE): Don't define.
3128 (MD_APPLY_SYM_VALUE): Define.
3129 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3130 (SWITCH_TABLE): Likewise.
3131 (sh_force_relocation): Call S_FORCE_RELOC.
3132 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3133 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3134 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3135 fx_addnumber is zero on entry. Save val in fx_addnumber.
3136 (tc_gen_reloc): Don't subtract fx_subsy.
3137 * config/tc-sh.h (struct fix): Move.
3138 (obj_fix_adjustable): Don't define.
3139 (tc_fix_adjustable): Define this instead.
3140 (TC_FIX_ADJUSTABLE): Don't define.
3141 (MD_APPLY_SYM_VALUE): Define.
3142 (SWITCH_TABLE_CONS): Define.
3143 (SWITCH_TABLE): Define.
3144 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3145 (TC_VALIDATE_FIX_SUB): Define.
3146 (MD_PCREL_FROM_SECTION): Tweak param name.
3147 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3148 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3149 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3150 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3151 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3152 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3153 (TC_VALIDATE_FIX_SUB): Define.
3154 (MD_PCREL_FROM_SECTION): Tweak param name.
3155 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3156 (tc_gen_reloc): Use S_FORCE_RELOC.
3157 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3158 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3159 (TC_FORCE_RELOCATION_ABS): Define this instead.
3160 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3161 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3162 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3163 (MD_APPLY_SYM_VALUE): Define.
3164 (TC_FIX_DATA_PRINT): Tweak param name.
3165 * config/tc-tic30.c (USE_STDOUT): Don't define.
3166 (md_parse_option): Remove stupid debug code.
3167 (tc_gen_reloc): Don't use fx_addnumber.
3168 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3169 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3170 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3171 (tc_fix_adjustable): Define this instead.
3172 (TC_FIX_ADJUSTABLE): Don't define.
3173 (MD_APPLY_SYM_VALUE): Define this instead.
3174 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3175 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3176 (TC_FIX_ADJUSTABLE): Don't define.
3177 (MD_APPLY_SYM_VALUE): Define this instead.
3178 (tc_fix_adjustable): Remove extern and weak tests.
3179 * config/tc-w65.h (struct fix): Forward declare.
3180 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3182 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3183 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3184 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3186 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3187 (MD_APPLY_SYM_VALUE): Define.
3188 (obj_fix_adjustable): Don't define.
3189 (tc_fix_adjustable): Define this instead.
3190 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3192 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3194 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3195 (ppc_fix_adjustable <coff version>): Cleanup.
3197 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3198 (md_parse_option): No -a64 without BFD64.
3199 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3200 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3202 2002-09-04 Nick Clifton <nickc@redhat.com>
3204 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3205 instructions into the hash table if the target cpu is the BookE32.
3207 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3209 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3212 2000-08-28 Catherine Moore <clm@redhat.com>
3214 * tc-v850.c (v850_relax): Declare.
3215 (v850_longcode): New routine.
3216 (v850_handle_align): New routine.
3217 (md_pseudo_table): Add longcall and longjump.
3218 (md_parse_option): Check for relax option.
3219 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3220 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3221 (md_apply_fix3): Likewise.
3222 (v850_force_relocation): Likewise.
3223 (v850_comm): Change the current section.
3224 (md_assemble): Ensure that the correct value is put in the
3226 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3227 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3228 Remove redundant v850ea support.
3229 * tc-v850.h (HANDLE_ALIGN): Define.
3230 (v850_handle_align): Declare.
3231 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3233 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3235 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3236 * configure: Regenerate.
3237 * NEWS: Mention new port.
3239 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3241 * config/obj-coff.c: Add sdef definition.
3242 * config/obj-coff.h: Add tic4x include file and set
3244 * config/tc-tic4x.c: New file.
3245 * config/tc-tic4x.h: New file.
3247 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3249 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3250 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3251 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3252 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3253 (RELOC_ENUM): Define.
3254 (fix_new_internal): Use RELOC_ENUM.
3255 (fix_new, fix_new_exp): Likewise.
3256 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3257 Replace gotos with continue.
3258 (write_relocs): Formatting. Avoid symbol loops in
3259 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3260 errors, and error number in other cases.
3261 (fixup_segment): Remove param names from prototype. Rename
3262 "this_segment_type" to "this_segment". Update linkrelax comment.
3263 Remove "size, "place" and "where" local vars. Formatting. Update
3264 "no symbol" comment. Remove #if 0 and #if 1.
3266 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3268 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3270 * dwarf2dbg.c: Always include dwarf2dbg.h.
3271 (dwarf2_directive_file): Adjust dummy version args.
3272 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3273 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3274 when symbol values differ.
3275 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3276 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3277 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3279 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3281 * config/tc-w65.c (md_section_align): Fix typo.
3282 (md_parse_option): Return 0, not 1.
3284 2002-08-22 Nick Clifton <nickc@redhat.com>
3286 * doc/as.texinfo (Section): Note that if '@' is a comment
3287 character then another symbol is used to prefix the section's
3290 2002-08-22 Christian Groessler <chris@groessler.org>
3292 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3295 2002-08-12 Graeme Peterson <gp@qnx.com>
3297 * configure.in: Add support for sh-**-nto* target.
3298 * configure: Regenerate.
3300 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3302 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3304 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3306 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3308 (ppc_apuinfo_section_add): Define only if format is ELF.
3309 (md_assemble): Emit APUinfo section only if format is ELF.
3312 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3314 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3315 * config/tc-frv.c: Likewise.
3316 * config/tc-hppa.c: Likewise.
3317 * config/tc-ia64.c: Likewise.
3318 * config/tc-ip2k.c: Likewise.
3319 * config/tc-m68hc11.c: Likewise.
3320 * config/tc-m68k.c: Likewise.
3321 * config/tc-mmix.c: Likewise.
3322 * config/tc-mn10300.c: Likewise.
3323 * config/tc-sh.c: Likewise.
3324 * config/tc-sparc.c: Likewise.
3325 * config/tc-v850.c: Likewise.
3327 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3329 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3332 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3334 From matthew green <mrg@redhat.com>
3336 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3337 PPC_OPCODE_PPC is, except for BookE architectures.
3338 (md_parse_option): Add support for -mspe.
3339 (md_show_usage): Add -mspe.
3340 (md_parse_option): Add support for -me500 and
3341 -me500x2 to generate code for Motorola e500 core complex.
3342 (md_show_usage): Add -me500 and -me500x2.
3344 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3345 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3346 PPC_APUINFO_BRLOCK): New macros.
3348 (ppc_cleanup): New function.
3349 (ppc_apuinfo_section_add): New function.
3351 (md_assemble): Collect info and write the APUinfo section.
3353 * config/tc-ppc.h (md_cleanup): Define.
3354 (ppc_cleanup): Export.
3355 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3357 2002-08-17 Stan Cox <scox@redhat.com>
3359 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3360 config/tc-mips.c (s_change_section): New function to support
3361 IRIX .section pseudo-op.
3363 2002-08-16 Nick Clifton <nickc@redhat.com>
3365 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3367 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3369 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3370 the fix-up against on the right frag.
3371 (s_cpsetup): Likewise. Parse third argument as expression, to
3372 handle global symbols and forward/backward labels correctly.
3374 2002-08-14 Nick Clifton <nickc@redhat.com>
3376 * read.c (stringer): Catch attempts to create strings in the abs
3379 * config/tc-alpha.c: Fix compiling for COFF targets.
3380 Some minor formatting tidyups.
3382 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3384 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3385 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3386 according to the reloc.
3387 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3388 (TC_FORCE_RELOCATION): Define.
3389 (tc_m68hc11_force_relocation): Declare.
3391 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3392 (s_m68hc11_relax): New function for relax group.
3393 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3394 beginning of jump instruction.
3395 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3396 address computation.
3397 (tc-gen_reloc): Update.
3398 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3400 (tc_m68hc11_force_relocation): New function, handle new relocs.
3401 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3402 reloc for the linker relax pass.
3403 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3406 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3408 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3409 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3410 (s_m68hc11_mode): New function for .mode pseudo op.
3411 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3413 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3414 (m68hc11_elf_final_processing): Declare.
3416 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3418 * config/tc-m68hc11.c (md_begin): Take into account additional
3419 page operand for call instruction.
3420 (print_opcode_format): Likewise.
3421 (check_range): Likewise for page range checking.
3422 (get_operand): Don't skip a possible comma in operands.
3423 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3424 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3425 (fixup24): New to handle call reloc.
3426 (build_insn): Handle missing page operand for call instruction.
3428 (md_apply_fix3): Take into account new relocs.
3429 (get_operand): Fix the mode for indexed indirect addressing.
3430 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3432 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3434 * config/tc-mips.c (mips_ip): Don't work out the value of
3435 constant %hi()s here.
3437 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3439 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3440 for ELF, and don't bother checking ELF relocs when non-ELF.
3441 (i386_immediate): Allow absolute_section expressions for aout.
3442 (i386_displacement): Likewise. Also test bfd_is_com_section.
3443 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3444 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3445 not when fx_addsy. Remove dead code.
3447 2002-08-09 Graeme Peterson <gp@qnx.com>
3449 * configure.in: Add support for ppc-*-nto* target.
3450 * configure: Regenerate.
3452 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3454 * config/tc-i386.h: Reorganize.
3456 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3458 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3459 immediate offset in "dla" and "la" expansions.
3461 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3463 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3464 Remove "bfd_gas=yes" from target table when covered later.
3465 Consolidate some entries.
3466 * configure: Regenerate
3468 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3470 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3471 at start of insn, pass it to output_disp and output_imm.
3472 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3473 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3475 (output_imm): Added arguments. Compute properly addend for
3477 (md_apply_fix3): Remove R_386_GOTPC handling.
3479 2002-08-06 George France <france@handhelds.org>
3481 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3482 and m21264b processor names and cpu types.
3483 * doc/c-alpha.texi: Documented new types.
3485 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3487 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3489 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3491 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3492 handling to BFD_RELOC_MIPS16_GPREL.
3494 2002-08-01 Nick Clifton <nickc@redhat.com>
3496 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3497 pool is computed using signed arithmetic so that proper sign
3498 extension is performed if X_add_number is a 64-bit integer.
3500 2002-08-01 H.J. Lu <hjl@gnu.org>
3501 Daniel Jacobowitz <drow@mvista.com>
3503 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3504 .debug_line section unless it has line information.
3506 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3508 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3509 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3510 Allow default displacement size to be an option "--disp-size-default".
3511 (md_number_to_disp): Make error messages include value. Use %d to
3512 print integers, not %s.
3513 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3514 get duplicate messages sometimes.
3515 (convert_iif): Grow frag to max possible instruction size. Avoid
3516 creating unnecessary fixes.
3517 (md_number_to_field) Add prototype.
3518 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3519 prototypes and make static.
3520 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3521 (evaluate_expr): Use resultP argument instead of exprP global.
3522 (get_addr_mode): Quiten compiler warnings.
3523 (encode_operand): eliminate unused variables. Quiten compiler
3524 warnings. Eliminate nul character in format strings.
3525 (parse): argc is unsigned.
3526 (reloc): Type cast index to quieten compiler.
3527 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3528 (md_convert_frag): Note unused parameters. Remove unused
3530 (md_create_long_jump, md_create_short_jump,
3531 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3534 2002-07-31 Nick Clifton <nickc@redhat.com>
3536 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3537 of the PDP-11 and 2.11BSD a.out support.
3539 2002-07-31 Momchil Velikov <velco@fadata.bg>
3541 * config/tc-v850.c (md_assemble): Fix range check for immediate
3544 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3546 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3547 to Broadcom SB-1 core support.
3549 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3551 * config/tc-mips.c (mips_target_format): Fix formatting.
3552 Add recognition of n32 ABI formats.
3554 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3556 * tc-mips.c (load_address): Don't clobber $at when loading a
3557 64-bit address in non-PIC code if noat is in effect.
3560 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3562 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3563 used in division/multiply macro expansions similarly to how they
3564 are used in the variants with break instructions.
3567 2002-07-30 Graeme Peterson <gp@qnx.com>
3569 * configure.in: Add support for arm-*-nto target.
3570 * configure: Regenerate.
3572 2002-07-30 Nick Clifton <nickc@redhat.com>
3574 * config/tc-arm.c (struct literal_pool): Add fields to allow
3575 multiple literal pools to be maintained.
3576 (find_literal_pool): New function.
3577 (find_or_make_literal_pool): New function.
3578 (add_to_literal_pool): Use find_or_make_literal_pool.
3579 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3581 (s_ltorg): Use find_literal_pool.
3582 (arm_cleanup): Dump all literal pools.
3583 * doc/c-arm.texi: Document new behaviour of only dumping literal
3586 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3588 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3589 rather than PPC_OPCODE_32 for powerpc64*.
3591 2002-07-25 Nick Clifton <nickc@redhat.com>
3593 * po/es.po: Updated Spanish translation.
3594 * po/fr.po: Updated French translation.
3596 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3598 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3599 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3600 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3601 * configure, config.in: Regenerate.
3602 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3603 (mips_set_options): Remove "abi" field.
3604 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3607 (mips_arch_string, mips_arch_info): New vars.
3608 (mips_tune_string, mips_tune_info): New vars.
3609 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3610 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3611 (mips_isa_to_str, mips_cpu_to_str): Remove.
3612 (mips_ip): If the selected architecture is a generic ISA rather
3613 than a processor, only mention the ISA level in error messages.
3614 (OPTION_MCPU): Remove.
3616 (md_longopts): Add -mfp64, remove -mcpu.
3617 (mips_set_option_string): New fn.
3618 (md_parse_option): Make -mipsN update file_mips_isa rather than
3619 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3620 Don't let -mgp32 and -mfp32 change the ABI.
3621 (show): Move to end of file. Constify string argument.
3622 (md_show_usage): Move to the end of the file. Read available
3623 architectures from mips_cpu_info_table.
3624 (mips_set_architecture): New fn.
3625 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3626 is an alias for -march=mipsN. Don't change the ABI based on other
3627 flags. Infer the register size from the ABI as well as the
3628 architecture. Complain about more conflicting arguments.
3629 Unify logic with GCC.
3630 (s_mipsset): Don't change the ABI.
3631 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3632 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3633 "mipsN"-type entries. Remove entries that vary only in the
3634 manufacturer's prefix, or that have "000" replaced by "k".
3635 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3636 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3637 (mips_parse_cpu): New fn.
3638 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3639 (mips_cpu_info_from_isa): Minor formatting tweak.
3641 2002-07-24 Nick Clifton <nickc@redhat.com>
3643 * po/sv.po: Updated Swedish translation.
3644 * po/es.po: Updated Spanish translation.
3646 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3648 * Makefile.am: Run "make dep-am".
3649 * Makefile.in: Regenerate.
3650 * doc/Makefile.in: Regenerate.
3651 * config.in: Regenerate.
3652 * po/POTFILES.in: Regenerate.
3654 2002-07-23 Nick Clifton <nickc@redhat.com>
3656 * po/fr.po: Updated French translation.
3658 2002-07-23 Nick Clifton <nickc@redhat.com>
3660 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3663 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3665 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3666 instead of S_IS_EXTERN.
3667 (md_estimate_size_before_relax): Likewise.
3668 (mips_fix_adjustable): Likewise.
3670 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3672 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3674 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3675 Nick Clifton <nickc@redhat.com>
3677 * cond.c (s_ifdef): Treat a referenced but not yet defined
3678 symbol as if it were undefined, in exactly the same way as
3681 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3682 consider referenced bug not yet defined symbols to be
3685 2002-07-18 Denis Chertykov <denisc@overta.ru>
3686 Frank Ch. Eigler <fche@redhat.com>
3687 Alan Lehotsky <alehotsky@cygnus.com>
3688 John Healy <jhealy@redhat.com>
3689 Jeff Johnston <jjohnstn@redhat.com>
3691 * configure.in: Add ip2k configuraton.
3692 * configure: Regenerate.
3693 * Makefile.am: Add ip2k configuraton.
3694 * Makefile.in: Regenerate.
3695 * configure: Regenerate.
3696 * Makefile.in: Regenerate.
3697 * config/tc-ip2k.c: New file.
3698 * config/tc-ip2k.h: New files.
3699 * NEWS: Mention new support.
3700 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3701 * doc/Makefile.in: Regenerate.
3702 * doc/all.texi: Set IP2K
3703 * doc/as.texinfo: Add IP2K description.
3704 * doc/c-ip2k.texi: New file.
3706 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3708 * NEWS: Reformat to match style of other NEWS files.
3710 2002-07-17 Jan Hubicka <jh@suse.cz>
3712 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3714 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3716 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3718 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3720 * NEWS: Add 'Changes in 2.13'.
3722 2002-07-15 Matt Fredette <fredette@netbsd.org>
3724 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3726 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3728 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3729 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3732 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3734 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3735 (ppc_frob_file_before_adjust): New function.
3736 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3737 (ppc_elf_frob_symbol): Don't declare.
3738 (tc_frob_file_before_adjust): Define.
3739 (ppc_frob_file_before_adjust): Declare.
3741 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3742 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3745 (ppc_xcoff64): Rename to ppc_obj64.
3746 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3747 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3748 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3750 (ppc_target_format): Use ppc_obj64 to select format.
3751 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3752 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3753 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3754 (tc_frob_symbol): Likewise.
3755 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3756 BFD_DEFAULT_TARGET_SIZE.
3758 (ppc_is_toc_sym): Likewise.
3759 (md_apply_fix3): Likewise.
3760 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3761 BFD_DEFAULT_TARGET_SIZE.
3762 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3763 (tc_frob_symbol): Likewise.
3765 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3767 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3768 (mips_ip): Likewise.
3770 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3772 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3773 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3774 (md_apply_fix3): Formatting. Remove redundant test.
3775 (tc_gen_reloc): Remove redundant code.
3776 (tc_i386_force_relocation): Delete. Movy body of function to..
3777 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3779 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3781 * configure.in: Add hppa-*-openbsd* target, change
3782 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3784 * configure: Regenerate.
3786 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3788 * config/tc-mips.c (macro): Shift the 32-bit address range
3789 accessible with a lone "lui" down by 32768.
3791 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3793 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3794 instead of "dadd" in address calculations.
3797 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3799 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3801 (md_assemble): Instead, zap the suffix here.
3803 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3805 * NEWS: Remove next release number until the release is actually
3808 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3810 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3812 * Makefile.in: Regenerate.
3814 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3816 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3817 to symbols in merge sections, even non pc-relative ones.
3819 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3821 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3823 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3825 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3826 .softregs and .eeprom.
3828 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3830 * NEWS: Note the next release is 2.13.
3832 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3834 * po/tr.po: New translation imported.
3836 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3838 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3839 (ecoff_directive_def): Likewise.
3840 (ecoff_directive_tag): Likewise.
3841 * listing.c (file_info): Likewise.
3842 * hash.c (what): Likewise.
3844 2002-06-25 H.J. Lu <hjl@gnu.org>
3846 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3847 * Makefile.in: Regenerated.
3849 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3851 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3852 (assemble_ppi): Generate warning if the same register is used
3853 twice as destination in the same padd / pmuls instruction.
3855 2002-06-18 Dave Brolley <brolley@redhat.com>
3857 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3858 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3859 * configure.in: Support frv-*-*.
3860 * Makefile.am (CPU_TYPES): Add frv.
3861 (TARGET_CPU_CFILES): Add tc-frv.c.
3862 (TARGET_CPU_HFILES): Add tc-frv.h.
3863 (DEPTC_frv_coff): New variable.
3864 (DEPTC_frv_elf): New variable.
3865 (DEPOBJ_frv_coff): New variable.
3866 (DEPOBJ_frv_elf): New variable.
3867 (DEP_frv_coff): New variable.
3868 (DEP_frv_elf): New variable.
3869 * tc-frv.c: New file.
3870 * tc-frv.h: New file.
3872 2002-06-17 Catherine Moore <clm@redhat.com>
3874 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3876 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3878 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3880 2002-06-17 Tom Rix <trix@redhat.com>
3882 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3884 2002-06-14 H.J. Lu <hjl@gnu.org>
3885 Daniel Jacobowitz <drow@mvista.com>
3887 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3888 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3889 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3890 and new_logical_line for the first .file directive.
3891 * read.c (s_app_file_string): New function.
3892 (s_app_file): Call it.
3893 * read.h (s_app_file_string): Add declaration.
3895 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3897 * configure.in: Remove MIPS_STABS_ELF.
3898 * configure: Regenerated.
3899 * config.in: Regenerated.
3900 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3902 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3904 (pdr_seg): Declare unconditionally.
3905 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3906 (s_mips_end): Likewise. Generate stabs function markers.
3907 (s_mips_ent): Generate stabs function markers.
3908 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3910 (s_mips_mask): Likewise.
3911 (mips_flag_mdebug): New.
3912 (md_longopts): Add "mdebug" and "no-mdebug".
3913 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3914 (mips_after_parse_args): Set mips_flag_mdebug.
3915 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3917 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3919 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3920 value twice for RELA relocations.
3922 2002-06-12 Ben Elliston <bje@redhat.com>
3924 * symbols.c (resolve_symbol_value): Initialise final_val.
3926 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3928 2002-06-11 Tom Rix <trix@redhat.com>
3930 * config/tc-ppc.c (ppc_subseg_align): Delete.
3931 (ppc_change_csect): Default csect align is 2.
3932 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3934 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3936 * config/tc-avr.c (mcu_types): Update.
3938 2002-06-08 Matt Thomas <matt@3am-software.com>
3940 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3941 (vax-*-netbsd*): New targets.
3942 * configure: Regenerate.
3943 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3944 * config/tc-vax.c: Add support for ELF and PIC.
3945 (flag_want_pic): New flag.
3946 (float_cons): Fix prototype.
3947 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3948 (md_assemble): Introduce a new is_absolute local, and use it
3949 rather than repeating the test. Make fatal errors actually
3950 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3951 Add support for ELF. Add support for PIC.
3952 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3953 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3955 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3956 optional for a.out, and not allowed for VMS. Adjust all callers.
3957 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3958 (md_create_long_jump): Likewise.
3959 (md_undefined_symbol): Likewise.
3960 (md_section_align): Likewise.
3961 (md_shortopts): Allow -k and -K for ELF.
3962 (md_parse_option): Set flag_want_pic if -k or -K.
3963 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3964 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3965 * config/tc-vax.h (tc_headers_hook): Remove.
3966 (TARGET_FORMAT): Set according to object format and target
3968 (BFD_ARCH, TARGET_ARCH): Define.
3969 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3970 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3971 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3972 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3974 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3976 * Makefile.am: Run "make dep-am".
3977 * Makefile.in: Regenerate.
3979 * as.c: Replace CONST with const.
3980 * write.c: Likewise.
3981 * config/obj-coff.c: Likewise.
3982 * config/tc-a29k.c: Likewise.
3983 * config/tc-arm.c: Likewise.
3984 * config/tc-dlx.c: Likewise.
3985 * config/tc-h8300.c: Likewise.
3986 * config/tc-h8500.c: Likewise.
3987 * config/tc-i370.c: Likewise.
3988 * config/tc-i860.c: Likewise.
3989 * config/tc-i960.c: Likewise.
3990 * config/tc-m68hc11.c: Likewise.
3991 * config/tc-m68k.c: Likewise.
3992 * config/tc-m88k.c: Likewise.
3993 * config/tc-mcore.c: Likewise.
3994 * config/tc-mips.c: Likewise.
3995 * config/tc-ns32k.c: Likewise.
3996 * config/tc-pdp11.c: Likewise.
3997 * config/tc-pj.c: Likewise.
3998 * config/tc-s390.c: Likewise.
3999 * config/tc-sh.c: Likewise.
4000 * config/tc-sparc.c: Likewise.
4001 * config/tc-tahoe.c: Likewise.
4002 * config/tc-tic80.c: Likewise.
4003 * config/tc-v850.c: Likewise.
4004 * config/tc-vax.c: Likewise.
4005 * config/tc-w65.c: Likewise.
4006 * config/tc-z8k.c: Likewise.
4008 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4010 Based on patch from Matt Green:
4011 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4012 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4013 (s_mips_loc): New function.
4014 (mips_nonecoff_pseudo_table): Call them.
4015 (append_insn): Call dwarf2_emit_insn.
4017 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4019 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4021 (file_ase_mips16): New veriable.
4022 (mips_eabi64): Remove.
4023 (CPU_HAS_MIPS16): New define.
4024 (CPU_HAS_MDMX): Fix data type.
4025 (md_begin): Code cleanup. Use file_ase_mips16.
4026 (mips_elf_final_processing): Handle mips16 header flag.
4027 Handle EABI flag without intermediate variable.
4029 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4031 * doc/as.texinfo: Update MIPS documentation.
4033 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4035 * config/tc-mips.c: Add define for $zero register.
4036 (md_begin): Add $zero as alias name for $0.
4037 (insn_uses_reg): Use ZERO define.
4038 (mips_ip): Add $zero as alias name for $0.
4039 (mips16_ip): Likewise.
4040 (s_cplocal): Demand empty rest of input line.
4041 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4042 names. Use ZERO define. Fix input_line_pointer progress.
4044 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4046 * symbols.c: Replace CONST by const throughout.
4047 (symbol_find_exact): Split out from..
4048 (symbol_find_base): ..here.
4049 * symbols.h: Replace CONST by const throughout.
4050 (symbol_find_exact): Declare.
4051 * config/obj-elf.c: #include "struc-symbol.h".
4052 (elf_frob_file): If group name matches an exported symbol, use that
4053 symbol for the signature and ".group" as the section name.
4055 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4057 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4060 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4062 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4063 and mips_opts.ase_mdmx if they are uninitialized.
4065 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4067 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4068 (hppa_force_relocation): Check if a stub just before the start symbol
4069 of the last call_info is reachable before forcing relocation. Fix
4072 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4074 * config/tc-mips.c (mips_after_parse_args): New function.
4075 (md_begin): Move processing of defaults to mips_after_parse_args.
4076 config/tc-mips.h (md_after_parse_args): Define.
4078 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4080 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4081 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4082 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4083 * configure: Regenerate.
4084 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4087 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4089 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4091 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4093 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4094 linkonce flag. Print all warnings.
4095 (obj_elf_section): Parse ",comdat" for groups.
4096 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4097 consistency of comdat flag.
4099 2002-06-02 Richard Henderson <rth@redhat.com>
4101 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4102 with LITERALs without sequence numbers.
4104 2002-06-01 Richard Henderson <rth@redhat.com>
4106 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4107 Rename them LITUSE_ALPHA_*.
4109 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4111 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4112 accept parentheses enclosed register lists.
4114 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4116 * Makefile.am: Run "make dep-am".
4117 * Makefile.in: Regenerate.
4118 * po/POTFILES.in: Regenerate.
4120 2002-05-31 Graeme Peterson <gp@qnx.com>
4122 * configure.in: Add i386-*-nto-qnx*.
4123 * configure: Regenerate.
4125 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4127 * config/tc-mips.c (mips_ip): Use unsigned long values for
4130 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4132 * config/tc-mips.c (s_cpsetup): Fix initialization of
4133 mips_cpreturn_register and mips_cpreturn_offset.
4135 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4137 * config/tc-mips.c (s_cpsetup): Fix comment.
4139 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4141 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4142 (mips_ip): Likewise.
4143 (mips16_ip): Likewise.
4144 (tc_get_register): Likewise.
4146 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4147 Ed Satterthwaite <ehs@broadcom.com>
4149 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4150 (mips_opts): Initialize "ase_mdmx" member.
4151 (file_ase_mdmx): New variable.
4152 (CPU_HAS_MDMX): New macro.
4153 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4154 based on command line options and configuration defaults.
4155 (macro_build): Note in comment that use of MDMX in macros is
4156 not currently allowed.
4157 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4158 "Z" MDMX operand types.
4159 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4160 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4162 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4163 Add support for "-mdmx" and "-no-mdmx" options.
4164 (OPTION_ELF_BASE): Move to accomodate new options.
4165 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4166 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4167 file_ase_mdmx was set.
4168 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4169 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4172 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4174 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4175 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4176 command line switch conforming to gcc conventions.
4177 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4179 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4181 * config/tc-mips.c (macro_build_jalr): New Function.
4182 (md_begin): NewABI uses big GOTs.
4183 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4184 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4185 (load_address): Add some NewABI PIC support.
4187 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4188 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4190 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4192 * config/tc-mips.c (load_address): Use mips_gp_register instead
4193 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4195 (macro): Use mips_gp_register instead of hardcoded value.
4197 2002-05-30 Richard Henderson <rth@redhat.com>
4199 * expr.h (operatorT): Add O_md17..O_md32.
4200 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4201 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4202 O_tprelhi, O_tprello, O_tprel): New.
4203 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4204 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4205 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4206 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4207 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4208 (md_apply_fix3): Handle TLS relocations.
4209 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4210 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4211 associated TLS reloc. Check lituse_tls relocs match up.
4212 (emit_insn): Handle TLS relocations.
4215 * doc/c-alpha.texi: Add docs for tls relocations.
4217 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4219 * config/tc-mips.c (mips_gprel_offset): New variable.
4220 (s_gpvalue): Use it.
4222 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4224 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4225 write-write conflicts.
4226 (md_assemble): Reformat introductory comment.
4227 (parallel_ok): Prevent packing only if the first
4228 instruction cannot be packed.
4230 2002-05-30 Jason Eckhardt <jle@redhat.com>
4231 Tom Rix <trix@redhat.com>
4233 * config/tc-d10v.c (build_insn): Check for immediates.
4235 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4237 * config/tc-mips.c: Replace GP in comments by $gp.
4238 (mips_big_got): Initialize.
4239 (mips_trap): Initialize.
4240 (load_address): Use mips_gp_register instead of hardcoded value.
4241 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4242 (macro): Use mips_gp_register instead of hardcoded value.
4243 (macro2): Change load_address calls.
4244 (md_pcrel_from): Comment formatting.
4245 (s_cpload): Use mips_gp_register instead of hardcoded value.
4246 (s_cprestore): Likewise. Comment formatting.
4247 (s_gpword): Fix data type.
4248 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4249 (nopic_need_relax): Replace GP in comments by $gp.
4250 (mips_elf_final_processing): Better comment.
4252 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4254 * configure.in: Add DLX configuraton
4255 * Makefile.am: Add DLX configuraton
4256 * configure: Regenerate.
4257 * Makefile.in: Regenerate.
4258 * config/tc-dlx.c: New file.
4259 * config/tc-dlx.h: New files.
4260 * NEWS: Mention new support.
4262 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4264 * config/obj-coff.c (write_object_file): Add missing semicolon.
4266 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4268 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4269 by the define. Remove superfluous check of mips_opts.mips16.
4270 (append_insn): Likewise. Canonicalize variable increments.
4271 (macro_build): Canonicalize variable increments.
4272 (macro_build_lui): Likewise.
4273 (load_register): Likewise.
4274 (load_address): Move pointer initialization.
4275 (macro): Move pointer to a more local scope. Canonicalize variable
4276 increments. Better comments. Replace magic constant for RA by the
4278 (macro2): Replace magic constant for RA by the define. Canonicalize
4279 variable increments.
4280 (mips_ip): Canonicalize variable increments.
4281 (mips16_ip): Replace magic constant for RA by the define.
4282 (my_getSmallParser): Canonicalize variable increments/decrements.
4283 (my_getPercentOp): Likewise.
4284 (my_getSmallExpression): Likewise.
4285 (s_align): Likewise.
4286 (s_mipsset): Likewise.
4287 (s_cpsetup): Likewise.
4288 (s_insn): Remove superfluous check of mips_opts.mips16.
4289 (s_mips_stab): Likewise.
4290 (mips_handle_align): Canonicalize variable increments.
4291 (s_mips_ent): Likewise.
4292 (s_mips_end): Add comment.
4294 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4296 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4297 * configure: Regenerate.
4299 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4301 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4302 * Makefile.in: Regenerate.
4303 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4304 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4305 * configure: Regenerate.
4306 * as.h: Use #include "" instead of <> for local header files.
4307 * flonum-konst.c: Likewise.
4308 * flonum-mult.c: Likewise.
4310 * listing.c: Likewise.
4311 * config/tc-ia64.h: Likewise.
4312 * config/tc-v850.h: Likewise.
4314 2002-05-24 TAMURA Kent <kent@netbsd.org>
4316 * configure.in: Add a target for i386-netbsdpe.
4317 * configure: Regenerate.
4319 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4321 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4322 (obj_elf_common): Call elf_common.
4323 (obj_elf_tls_common): New function.
4324 (elf_pseudo_tab): Support .tls_common.
4325 (special_sections): Add .tdata and .tbss.
4326 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4328 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4329 (obj_elf_parse_section_letters): Include T in error message.
4330 * config/tc-ppc.c (ppc_section_letter): Likewise.
4331 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4332 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4334 * config/tc-sparc.c (md_apply_fix3): Likewise.
4335 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4336 Define them if not BFD_ASSEMBLER.
4337 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4339 (md_apply_fix3): Add TLS relocs.
4340 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4341 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4342 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4343 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4344 (ia64_elf_section_letter): Include T in error message.
4345 (md_begin): Support TLS operators.
4346 (md_operand): Likewise.
4347 (ia64_gen_real_reloc_type): Support TLS relocs.
4348 * write.c (adjust_reloc_syms): Don't change symbols in
4349 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4351 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4353 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4354 round the relocation up rather than down.
4356 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4358 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4360 * doc/as.texinfo: Document that the COFF version of .section
4361 ignores the 'a' flag.
4363 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4365 * config/tc-alpha.c (assemble_tokens): Protect use of
4366 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4368 * write.c (size_seg): Check adjustment to last frag.
4369 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4371 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4372 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4373 (write_object_file): Invoke md_do_align if available, and use
4374 frag_align_code on text sections.
4375 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4376 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4377 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4378 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4379 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4382 2002-05-22 H.J. Lu <hjl@gnu.org>
4384 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4387 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4389 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4392 2002-05-22 H.J. Lu <hjl@gnu.org>
4394 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4395 for one .loc for compiler.
4397 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4399 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4402 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4404 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4405 Optimize the rotate by zero case.
4407 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4409 * configure.in: Remove accidental enabling of bfd_gas=yes for
4411 * configure: Regenerate.
4413 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4415 * app.c: Fix formatting.
4417 * ehopt.c: Likewise.
4419 * input-file.c: Likewise.
4420 * listing.c: Likewise.
4421 * macro.h: Likewise.
4422 * stabs.c: Likewise.
4423 * symbols.c: Likewise.
4425 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4427 * config/obj-generic.c: Delete file.
4428 * config/obj-generic.h: Likewise.
4430 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4432 * config/tc-avr.c (mcu_types): Update for new devices.
4434 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4436 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4438 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4440 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4441 worked sometimes by accident. Fix copy&paste comment.
4443 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4445 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4446 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4447 (mips_elf_final_processing): Let n32 use .reginfo.
4449 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4451 * config/tc-mips.c (append_insn): Fix too small range of variable.
4453 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4455 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4456 listing_prev_line().
4458 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4460 * config/tc-arm.c (md_assemble): Remove redundant call to
4463 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4466 * stabs.c (s_stab_generic): Fix grammatical error in warning
4469 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4471 * write.c (subsegs_finish): Don't specially align last subseg.
4473 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4475 * stabs.c (s_stab_generic): Warn about a description field that is
4478 * config/obj-coff.c: Fix compile time warnings when compiling
4479 without BFD_ASSEMBLER defined.
4482 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4484 (md_pcrel_from_section): Use md_pcrel_from().
4486 2002-05-11 Bruno Haible <bruno@clisp.org>
4488 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4489 by dwarf2_directive_loc, instead of calling dwarf2_where.
4491 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4493 * config/obj-coff.h: Fix formatting.
4494 * config/tc-mcore.c: Likewise.
4495 * config/tc-mn10300.c: Likewise.
4496 * config/tc-openrisc.c: Likewise.
4497 * config/tc-or32.c: Likewise.
4498 * config/tc-pdp11.c: Likewise.
4499 * config/tc-ppc.c: Likewise.
4500 * config/tc-ppc.h: Likewise.
4501 * config/tc-sh64.c: Likewise.
4502 * config/tc-sh.c: Likewise.
4503 * config/tc-tic54x.c: Likewise.
4504 * config/tc-xstormy16.c: Likewise.
4505 * config/tc-xstormy16.h: Likewise.
4507 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4509 * config/obj-coff.c: Fix formatting.
4510 * config/obj-elf.c: Likewise.
4511 * config/tc-alpha.c: Likewise.
4512 * config/tc-arm.c: Likewise.
4513 * config/tc-d10v.c: Likewise.
4514 * config/tc-d30v.c: Likewise.
4515 * config/tc-h8300.c: Likewise.
4516 * config/tc-hppa.c: Likewise.
4518 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4520 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4521 reloc when no_cond_jump_promotion.
4523 2002-05-08 Jim Wilson <wilson@redhat.com>
4525 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4526 current variable part of frag.
4528 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4530 * config/tc-mmix.c: Fix formatting.
4531 * config/tc-mmix.h: Likewise.
4533 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4535 * configure: Regenerate.
4537 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4539 * config/tc-m68k.c: Fix formatting.
4541 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4543 * Makefile.am: Honour DESTDIR.
4544 * Makefile.in: Regenerate.
4546 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4548 * config/tc-ia64.c: Fix formatting.
4549 * config/tc-ia64.h: Likewise.
4551 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4553 * config/tc-mips.c: Fix formatting.
4554 * config/tc-s390.c: Likewise.
4555 * config/tc-s390.h: Likewise.
4557 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4559 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4560 information for instructions.
4562 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4564 * as.h: Fix formatting.
4567 * dwarf2dbg.c: Likewise.
4568 * frags.h: Likewise.
4570 * macro.c: Likewise.
4572 * stabs.c: Likewise.
4573 * symbols.c: Likewise.
4575 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4577 * app.c (mri_pseudo): Only declare for TC_M68K.
4579 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4580 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4581 BFD_RELOC_16_BASEREL.
4582 (md_assemble): Likewise.
4583 (md_apply_fix3): Likewise.
4585 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4587 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4588 zero into an add of zero - it is not the same.
4590 2002-05-01 Arati Dikey <aratid@kpit.com>
4592 * tc-sh.c (get_specific): Generate warning if the same
4593 destination register is used in parallel instructions.
4595 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4597 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4599 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4601 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4602 backwards to prevent cascading errors.
4604 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4606 * configure.in: Add support for powerpc-*-windiss.
4607 * configure: Regenerated.
4609 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4611 * config/tc-s390.c (md_parse_option): Formatting.
4613 * config/tc-i386.c: Formatting fixes, add missing space in error
4616 2002-04-24 Christian Groessler <chris@groessler.org>
4618 * config/tc-z8k.c (build_bytes): Add support for new cases:
4619 CLASS_IGNORE and ARG_NIM4.
4620 (md_assemble): Prevent destruction of input_line_pointer if
4621 get_operands returns failure.
4623 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4625 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4626 instructions to be generated by macros.
4628 2002-04-24 Andreas Schwab <schwab@suse.de>
4630 * config/tc-i386.c (output_jump, output_disp)
4631 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4633 (md_apply_fix3): Remember addend value for rela relocations.
4634 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4636 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4638 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4639 from previous change.
4641 2002-04-22 Eric Christopher <echristo@redhat.com>
4643 * config/tc-mips.c (macro_build): Add warning if macro instructions
4644 are expanded into a branch delay slot.
4646 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4648 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4649 numbers, gdb relies on them to detect the start of the prologue.
4651 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4653 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4654 symbols in merge sections.
4656 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4658 * as.c (main): Don't reference _bfd_chunksize.
4660 2002-04-15 Tom Rix <trix@redhat.com>
4662 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4663 symbols in merge sections.
4665 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4667 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4668 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4669 argument for the precision.
4670 (gen_to_words): Update accordingly.
4672 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4674 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4675 BFD_VERSION_STRING unavailable.
4676 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4678 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4680 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4681 symbol_used_in_reloc_p is true.
4683 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4686 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4688 * dep-in.sed: Cope with absolute paths.
4689 * Makefile.am (dep.sed): Subst TOPDIR.
4691 * Makefile.in: Regenerate.
4693 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4695 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4696 (mips_ip): Remove unused variable.
4697 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4698 unsigned char with bfd_byte.
4699 (s_file): Remove unused variable.
4700 (s_mips_ent): Likewise.
4702 2002-04-03 Tom Rix <trix@redhat.com>
4704 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4706 (find_opcode): Fix warning in as_warn.
4707 * config/tc-d10v.h: Update Copyright.
4709 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4710 Tom Rix <trix@redhat.com>
4712 From Jeff Knaggs <jknaggs@redhat.com>
4713 * config/tc-d10v.c (check_resource_conflict): New function to
4714 check for resource conflicts.
4716 From Jason Eckhardt <jle@redhat.com>
4717 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4719 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4720 reserved control registers is used.
4721 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4724 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4725 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4726 instruction cannot be packed.
4728 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4729 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4730 write-write conflicts.
4731 (md_assemble): Reformat introductory comment.
4732 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4735 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4737 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4738 O_logical_not>): Derive final_seg from add_symbol.
4739 <O_multiply..O_logical_or>: More final_seg twiddles.
4741 2002-04-01 Jessica Han <jessica@cup.hp.com>
4743 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4746 2002-03-27 Andreas Schwab <schwab@suse.de>
4748 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4749 field for pc-relative fixups.
4750 (output_disp): Likewise.
4751 (md_estimate_size_before_relax): Likewise.
4752 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4753 pc-relative fixups in 64bit mode.
4755 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4757 * config/te-aix5.h: Typo fix.
4759 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4761 * Makefile.am: Run "make dep-am".
4762 * Makefile.in: Regenerate.
4763 * doc/Makefile.in: Regenerate.
4765 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4767 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4768 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4770 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4772 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4773 the EXTENDED bit here; report the estimate according to the
4776 2002-03-18 Tom Rix <trix@redhat.com>
4778 * configure.in: Add AIX 5 support.
4779 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4780 * config/te-aix5.h: New file. AIX 5 support.
4781 * configure: Regenerate.
4783 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4785 * po/fr.po: Updated version.
4787 2002-03-16 Andreas Jaeger <aj@suse.de>
4789 * doc/c-mips.texi (Machine Dependencies): Add new node.
4791 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4793 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4794 (mips_opts): Initialize "ase_mips3d" member.
4795 (file_ase_mips3d): New variable.
4796 (CPU_HAS_MIPS3D): New macro.
4797 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4798 based on command line options and configuration defaults.
4799 (macro_build, mips_ip): Accept MIPS-3D instructions if
4800 mips_opts.ase_mips3d is set.
4801 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4802 Add support for "-mips3d" and "-no-mips3d" options.
4803 (OPTION_ELF_BASE): Move to accomodate new options.
4804 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4805 (mips_elf_final_processing): Add a comment indicating that a
4806 MIPS-3D ASE ELF header flag should be set, when one exists.
4807 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4808 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4809 nomips3d" directives.
4811 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4813 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4814 a weak symbol in same section to be within reach.
4816 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4818 * po/fr.po: Updated version.
4820 2002-03-12 Andreas Schwab <schwab@suse.de>
4822 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4823 body record so that an error is given for misplaced .save
4826 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4828 * config/tc-i386.h (REX_OPCODE): Define.
4829 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4830 (rex_byte): typedef to int.
4831 * config/tc-i386.c: Group prototypes and vars together.
4832 Formatting fixes. Remove occurrences of "register" keyword.
4835 (mode_from_disp_size): Add INLINE keyword to prototype.
4836 (fits_in_signed_byte): Likewise.
4837 (fits_in_unsigned_byte): Likewise.
4838 (fits_in_unsigned_word): Likewise.
4839 (fits_in_signed_word): Likewise.
4840 (fits_in_unsigned_long): Likewise.
4841 (fits_in_signed_long): Likewise.
4842 (type_names): Constify.
4843 (intel_float_operand): Constify param.
4844 (add_prefix): Use REX_OPCODE.
4845 (md_assemble): Likewise. Modify for changed rex_byte.
4846 (parse_insn): Split out of md_assemble.
4847 (parse_operands): Likewise.
4848 (swap_operands): Likewise.
4849 (optimize_imm): Likewise.
4850 (optimize_disp): Likewise.
4851 (match_template): Likewise.
4852 (check_string): Likewise.
4853 (process_suffix): Likewise.
4854 (check_byte_reg): Likewise.
4855 (check_long_reg): Likewise.
4856 (check_qword_reg): Likewise.
4857 (check_word_reg): Likewise.
4858 (finalize_imm): Likewise.
4859 (process_operands): Likewise.
4860 (build_modrm_byte): Likewise.
4861 (output_insn): Likewise.
4862 (output_branch): Likewise.
4863 (output_jump): Likewise.
4864 (output_interseg_jump): Likewise.
4865 (output_disp): Likewise.
4866 (output_imm): Likewise.
4868 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4870 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4872 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4874 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4875 relocs except when BFD64.
4877 * write.c (number_to_chars_bigendian): Don't abort when N is
4878 larger than sizeof (VAL).
4879 (number_to_chars_littleendian): Likewise.
4881 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4883 * config/tc-hppa.c (md_apply_fix3): Add cast.
4884 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4887 2002-03-05 Paul Koning <pkoning@equallogic.com>
4889 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4890 (parse_ac5): New function for parsing float regs in float operand.
4891 (parse_expression): Remove attempt to make literals be octal.
4892 (parse_op_no_deferred): Support float literals.
4893 (parse_op): Reject attempts to refer to float regs.
4894 (parse_fop): New function, like parse_op but for float operand.
4895 (md_assemble): Add cases to parse float operands. Also fix
4896 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4898 2002-03-04 H.J. Lu <hjl@gnu.org>
4900 * config/obj-elf.c (special_section): Add .init_array,
4901 .fini_array and .preinit_array.
4903 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4904 .init_array and .fini_array.
4906 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4908 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4910 (obj_frob_symbol): Copy visibility.
4912 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4914 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4916 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4918 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4920 * po/es.po: Updated.
4922 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4924 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4925 only, undo the changes made on 2001-06-08, with the
4926 effect being that common or extern symbols are
4927 adjusted for embedded-PIC, but weak symbols are not.
4928 (md_estimate_size_before_relax: Likewise, with the effect
4929 that extern symbols are treated the same as weak symbols
4930 only if not embedded-PIC.
4931 (mips_fix_adjustable) Likewise, with the effect that
4932 weak or extern symbols are not adjusted for embedded-PIC.
4933 (md_apply_fix3): Tweak so that the case where value is zero
4934 is handled more correctly for embedded-PIC code.
4936 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4938 * doc/as.texinfo (Overview): Add missing @ifset IA64
4940 * configure.in (LINGUAS): Add es.po.
4941 * configure: Regenerate.
4942 * po/es.po: New file.
4944 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4946 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4947 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4948 and NO_PIC cases. Code cleanup.
4949 (macro2): Fix handling of 64bit register loads.
4951 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4953 * doc/as.texinfo: Add entry for IA64.
4954 * doc/c-ia64.texi: New file.
4956 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4958 * config/tc-hppa.c: Update copyright date.
4960 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4961 Remove references to chip manufacturers.
4962 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4964 (md_show_usage): Remove references to chip manufacturers. Mention
4966 (md_begin): Test power4 opcode flag bits.
4968 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4970 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4971 count exceeds prologue count.
4972 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4973 (unwind.label_prologue_count): New member.
4975 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4977 (get_saved_prologue_count): New function.
4978 (save_prologue_count): New function.
4979 (free_saved_prologue_count): New function.
4980 (dot_label_state): Record state label by calling save_prologue_count().
4981 (dot_copy_state): Restore prologue count by calling
4982 get_saved_prologue_count().
4983 (generate_unwind_image): Free up list of saved prologue
4984 counts by calling free_saved_prologue_counts().
4986 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4988 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4989 function declarations.
4991 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4993 * NEWS: Note that GASP is now deprecated.
4994 * Makefile.am: Do not build gasp-new by default.
4995 * Makefile.in: Regenerate.
4996 * doc/Makefile.am: Do not install gasp.info.
4997 * doc/Makefile.in: Regenerate.
4998 * gas/gasp.texi: Note that gasp is now deprecated.
5000 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5002 * NEWS: Mark 2.12 branch.
5004 2002-02-19 Tom Tromey <tromey@redhat.com>
5006 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5008 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5010 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5013 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5015 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5016 Make bit size independent of architecture switch.
5017 (md_begin): Add warning for -m64 with -Aesa.
5018 (s390_md_end): Use renamed architecture defines.
5020 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5022 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5024 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5026 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5029 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5031 * config/tc-mips.c (md_estimate_size_before_relax): Really
5032 make sure we treat weak like extern only for ELF. (Fixes
5033 patch from 2001-07-25.)
5035 2002-02-15 Ben Elliston <bje@redhat.com>
5037 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5040 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5042 * NEWS: Mention support for MMIX.
5044 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5046 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5047 a sequence of indpendent 'if' statements for easier debugging
5048 and future modification.
5050 2002-02-13 Matt Fredette <fredette@netbsd.org>
5052 * config/tc-m68k.c (md_show_usage): No longer display a
5053 hard-coded "68020" for the default CPU, instead display the
5054 canonical name of the true, configured default CPU.
5055 (m68k_elf_final_processing): Mark objects for sub-68020
5056 CPUs with the new EF_M68000 flag.
5058 2002-02-13 Andreas Schwab <schwab@suse.de>
5060 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5061 pc-relative relocations to merge sections in 64-bit mode.
5063 2002-02-13 Ben Elliston <bje@redhat.com>
5065 * NEWS: Document floating point number handling in gasp.
5066 * gasp.c: Include <assert.h> and "xregex.h".
5067 (is_flonum): New function.
5068 (chew_flownum): Likewise.
5069 (change_base): Consume flonums from the input, where possible.
5070 * doc/gasp.texi (Constants): Document floating point numbers.
5072 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5074 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5075 that implicitly use LR and RR selectors.
5077 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5079 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5080 and `epsw' as available on AM33 and above only.
5081 (other_register_name): Add logic to handle machine type encoded in
5084 2002-02-11 Tom Rix <trix@redhat.com>
5086 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5089 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5091 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5094 2002-02-11 Jan Hubicka <jh@suse.cz>
5096 * i386.c (md_assemble): Support 32bit address prefix.
5097 (i386_displacement): Likewise.
5098 (i386_index_check): Accept 32bit addressing in 64bit mode.
5100 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5102 * config/tc-sh.c (dot): Removed unused function.
5104 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5106 * Makefile.am: "make dep-am".
5107 * Makefile.in: Regenerate.
5108 * aclocal.m4: Regenerate.
5109 * config.in: Regenerate.
5110 * configure: Regenerate.
5111 * doc/Makefile.in: Regenerate.
5113 2002-02-10 Richard Henderson <rth@redhat.com>
5115 * doc/c-alpha.texi: New file.
5116 * doc/Makefile.am (CPU_DOCS): Add it.
5117 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5119 2002-02-09 Richard Henderson <rth@redhat.com>
5121 * config/tc-alpha.c (O_samegp): New.
5122 (USER_RELOC_P): Include it.
5123 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5124 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5125 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5126 (alpha_validate_fix): New.
5127 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5129 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5131 * doc/c-cris.texi: New.
5132 * doc/all.texi: @set CRIS.
5133 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5134 Include c-cris.texi.
5135 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5136 * doc/Makefile.in: Regenerate.
5138 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5140 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5141 determine if a number is a sign-extended 32-bit number.
5142 (load_register): Use IS_SEXT_32BIT_NUM.
5143 (macro): Check if load/store macro handling is using a
5144 constant 32-bit address on 64-bit address systems, and if
5145 so optimize the generation of that address.
5147 2002-02-08 Richard Henderson <rth@redhat.com>
5149 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5150 we've eliminated all foreign relocation types yet.
5151 (alpha_fix_adjustable): Likewise.
5153 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5155 Contribute sh64-elf.
5156 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5157 Stephen Clarke <Stephen.Clarke@st.com>
5158 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5159 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5160 * config/tc-sh.c (md_relax_table): Added default sizes for
5161 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5162 MOVI_16, MOVI_32 and MOVI_48.
5163 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5164 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5166 (shmedia_md_estimate_size_before_relax): Remove redundant
5167 blocks. Set fragP->fr_var even if relaxation type unchanged.
5168 Retain UNDEF_MOVI until expression decays to number.
5169 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5170 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5171 relocation types. Take fixP->fx_addnumber into account too.
5172 (shmedia_md_apply_fix): Likewise.
5173 (shmedia_md_convert_frag): Likewise.
5174 (shmedia_build_Mytes): Likewise.
5175 (sh64_consume_datalabel): Complain about nested datalabel.
5176 Support PIC relocs. Call sh_parse_name.
5177 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5178 in tc-sh.h to SHmedia reloc types.
5179 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5180 MOVI_GOTPC): New relaxation constants.
5181 (md_relax_table): Introduce relaxation directives for PIC-related
5183 (sh_PIC_related_p): Handle datalabel.
5184 (sh_check_fixup): Choose SH5 PIC relocations.
5185 (sh_cons_fix_new): Added BDF_RELOC_64.
5186 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5187 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5188 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5189 current ISA is SHmedia, get 7 bytes.
5190 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5191 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5193 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5194 shmedia_apply_fix3 and make void.
5195 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5196 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5198 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5199 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5200 2001-03-14 DJ Delorie <dj@redhat.com>
5201 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5202 * doc/Makefile.in(CPU_DOCS): Ditto.
5203 * doc/c-sh64.texi: New file.
5204 * doc/as.texinfo: Add SH64 support.
5205 2001-03-13 DJ Delorie <dj@redhat.com>
5206 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5207 A_REUSE_PREV so that its purpose is more obvious.
5208 (shmedia_build_Mytes): Ditto.
5209 2001-03-07 DJ Delorie <dj@redhat.com>
5210 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5212 (sh64_vtable_inherit): Ditto.
5213 (strip_datalabels): New, strip "datalabel" from given line.
5214 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5216 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5217 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5219 (shmedia_build_Mytes): ... to here.
5220 2001-03-06 DJ Delorie <dj@redhat.com>
5221 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5223 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5224 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5225 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5226 address by one in call to dwarf2_emit_insn.
5227 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5228 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5229 alignment handling broken by imported changes.
5230 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5231 (sh64_handle_align): Declare.
5232 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5233 (sh64_max_mem_for_rs_align_code): Declare.
5234 (enum sh64_isa_values): Moved here from tc-sh64.c.
5235 (md_do_align): Define.
5236 (sh64_do_align): Declare.
5237 (struct sh64_tc_frag_data): New.
5238 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5240 (TC_FRAG_INIT): Change to set new datatype.
5241 (struct sh64_segment_info_type): Rename member
5242 last_flushed_location to last_contents_mark. All users changed.
5243 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5244 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5245 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5246 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5247 of unsetting seen_insn.
5248 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5249 call sh64_update_contents_mark.
5250 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5251 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5252 enum sh64_isa_values.
5253 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5254 (emitting_crange): Boolean guard moved to file scope from function
5255 scope in sh64_set_contents_type.
5257 (sh64_update_contents_mark): New; most split out from
5258 sh64_flush_pending_output.
5259 (shmedia_md_end): Call sh64_update_contents_mark. Set
5260 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5261 (sh64_do_align): New function.
5262 (sh64_max_mem_for_rs_align_code): New function.
5263 (sh64_handle_align): Rename from shmedia_do_align. Make
5264 non-static. Add head comment. Emit zero bytes for n bytes modulo
5265 four. Change return-type to void.
5266 (shmedia_elf_new_section): Remove.
5267 (shmedia_md_assemble): Call sh64_update_contents_mark.
5268 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5269 new frag. Call sh64_update_contents_mark after making the new
5271 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5272 and sh_flush_pending_output.
5273 (sh64_flag_output): Also call md_flush_pending_output, but add
5274 condition on not emitting_crange.
5275 (sh64_tc_cons_fix_new): Remove.
5276 2001-01-12 Nick Clifton <nickc@redhat.com>
5277 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5278 alignment handling scheme imported from sourceware.
5279 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5280 * config/tc-sh64.h (TARGET_FORMAT): Define.
5281 (sh64_target_format): Prototype.
5282 * config/tc-sh64.c (sh64_target_mach): New function.
5283 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5284 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5285 zero_address_frag instead of copying the frag of the symbol.
5286 (shmedia_frob_file_before_adjust): Ditto.
5287 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5288 to valueT to remove signedness.
5289 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5290 headers to output_bfd. Do not evaluate symbols if final is false;
5292 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5293 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5294 to the current frag, call shmedia_md_convert_frag to emit fixups
5295 and make frag_wane neutralize the frag. Update comments.
5296 * config/tc-sh.c (md_convert_frag): Change caller of
5297 shmedia_md_convert_frag.
5298 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5299 * config/tc-sh64.h: Tweak comments and correct formatting.
5300 * config/tc-sh64.c: Ditto.
5301 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5302 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5303 for the no-relocation case.
5304 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5305 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5307 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5309 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5310 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5312 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5314 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5315 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5316 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5317 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5318 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5319 if reloc is emitted.
5320 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5321 New options plus bugfixes.
5322 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5324 (md_parse_option): Handle new options.
5325 (md_show_usage): Add blurb for new options.
5326 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5327 (sh64_expand, sh64_pt32): New variables.
5328 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5329 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5330 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5331 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5332 <resolved previously-pc-relative relocs>: Handle
5333 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5334 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5335 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5336 points to SHcompact code.
5337 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5338 SH64PCREL16)>: Check that ISA of what operand points at and
5339 PTA/PTB matches, or emit error.
5340 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5341 SHMEDIA_BFD_RELOC_PT.
5342 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5344 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5345 condition for MOVI expansion.
5346 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5347 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5349 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5351 (sh64_target_format): Error-check setting of sh64_pt32 and
5352 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5353 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5354 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5355 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5356 * config/tc-sh64.c: Improve comments.
5357 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5358 not say the linker will check correctness of PTA/PTB expansion.
5359 (shmedia_md_end): Make non-static.
5360 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5362 * config/tc-sh.c (sh_finalize): Remove.
5363 * config/tc-sh.h (md_end): Do not define.
5364 Remove prototype for sh_finalize.
5365 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5366 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5367 sh64_section_data container when storing section type in tdata
5368 field in elf_section_data.
5369 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5371 * Makefile.am: Update dependencies.
5372 * Makefile.in: Regenerate.
5373 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5374 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5375 dwarf2_emit_insn call with test on debug_type.
5376 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5377 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5378 CRT_SH5_ISA32 sticky for 64-bit.
5379 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5380 Generate .crange sections when switching ISA mode or emitting
5381 constants in same section as code.
5382 * config/tc-sh64.c: Reformat structure definitions.
5383 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5385 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5386 to emit a .cranges descriptor when contents type changes. Only
5387 emit error if changing contents type and -no-mix is in effect.
5388 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5389 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5390 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5391 sh64_flush_last_crange over sections.
5392 When checking main symbol of datalabel symbol, check for
5393 STO_SH5_ISA32, not ISA type of section in definition.
5394 (shmedia_frob_file_before_adjust): Check main symbol for
5395 STO_SH5_ISA32; don't check ISA type of section in definition.
5396 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5397 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5398 .cranges entries have been output.
5399 (shmedia_elf_new_section): Just call md_flush_pending_output.
5400 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5401 fix. Do not set tc_segment_info_data.in_code for section. Call
5402 sh64_set_contents_type for SHmedia code.
5403 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5404 false. Call md_flush_pending_output.
5405 (sh64_target_format): Check that -no-mix and
5406 -shcompact-const-crange are used in sane combination with other
5408 (shmedia_md_pcrel_from_section): Check type of fix for how to
5410 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5411 not ISA type of section in definition.
5412 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5413 hold contents-type state.
5414 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5415 (sh64_flush_pending_output): Declare.
5416 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5417 (sh64_tc_cons_fix_new): Declare.
5418 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5419 call sh64_flag_output.
5420 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5421 call sh64_set_contents_type to mark SHcompact code and set
5423 (md_longopts): New options "-no-mix" and
5424 "-shcompact-const-crange".
5425 (md_parse_option): Handle new options.
5426 (md_show_usage): Add blurb for new options.
5427 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5428 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5429 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5430 (sh64_last_insn_frag): New.
5431 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5432 to get frag for insn opcode for generating fixups; do not assume it
5434 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5436 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5438 (TC_FRAG_TYPE): Define as fragS *.
5439 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5440 (sh64_last_insn_frag): Declare.
5441 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5442 not == NULL before dereferencing.
5443 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5444 Get rid of BFD section flag and EF_SH64_ABI64.
5445 * config/tc-sh64.c (shmedia_frob_section_type): Use
5446 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5447 communicate the section as containing SHmedia code. Describe why.
5448 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5449 EF_SH64 regardless of ABI.
5450 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5451 in error message. Handle resolved expressions for
5452 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5453 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5454 (shmedia_check_limits): Handle BFD_RELOC_64.
5455 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5456 a STO_SH5_ISA32 symbol, only the BFD value.
5457 2000-12-11 Ben Elliston <bje@redhat.com>
5458 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5459 dwarf2_generate_asm_lineno.
5460 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5461 Handle PC-relative MOVI expansions with assembler relaxation.
5462 Generate PC-relative relocs from 16-bit PC-relative expressions.
5463 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5464 (shmedia_md_pcrel_from_section): ...here.
5465 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5466 turned completely resolved. Adjust relocation type for 16-bit
5467 immediate operands that has turned PC-relative. Adjust back for
5468 MD_PCREL_FROM_SECTION being applied twice.
5469 (shmedia_md_convert_frag): Always emit reloc for expression with
5470 global or weak symbol. Handle relaxation result for PC-relative
5472 (shmedia_md_estimate_size_before_relax): An expression with a weak
5473 or global symbol can not be relaxed. Break out tests for
5474 relaxable symbol into variable sym_relaxable.
5475 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5476 UNDEF_MOVI)>: Break out any PC-relative expression and change
5478 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5480 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5481 MOVI expansion. If X_op_symbol of the immediate expression is
5482 set, make an expression symbol for the argument to frag_var.
5483 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5485 (END): Adjust for new relaxations.
5486 (md_relax_table): Add entries for new relaxations.
5487 2000-12-07 Ben Elliston <bje@redhat.com>
5488 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5489 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5490 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5491 SHORI operand offsets in PT/PTA/PTB expansions.
5492 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5493 Implement DataLabel semantics.
5494 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5495 shmedia_frob_file_before_adjust.
5496 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5497 (DATALABEL_SUFFIX): Define.
5498 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5499 symbol list to update "datalabel" symbols to their main symbol
5501 (shmedia_frob_file_before_adjust): New.
5502 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5503 undefined and set STT_DATALABEL.
5504 (sh64_frob_label): Initialize TC symbol field.
5505 (sh64_consume_datalabel): Actually implement semantics. New
5506 parameter operandf, call it instead of expression.
5507 (sh64_exclude_symbol): New.
5508 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5509 to sh64_consume_datalabel.
5510 (tc_symbol_new_hook): Define to tc_frob_symbol.
5511 (TC_SYMFIELD_TYPE): Define to symbolS *.
5512 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5513 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5514 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5516 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5517 generating dwarf2 debug information.
5518 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5519 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5520 elf64-sh64 for the 64-bit ABI.
5521 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5523 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5524 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5526 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5527 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5528 (enum sh64_abi_values): New type.
5529 (enum sh64_isa_values): New type.
5530 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5531 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5532 (sh64_abi): Replace shmedia_64.
5533 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5534 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5535 (s_sh64_mode): Check validity for this target.
5536 (sh64_target_format): Initialize defaults for ISA and ABI.
5537 Fallback to old object format if no SH64 ISA or ABI has been
5539 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5540 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5541 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5542 * config/tc-sh64.h: Fix typo in comment.
5543 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5544 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5545 <PT fixups for absolute values>: Size will be longest, not
5547 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5548 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5549 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5550 and l1 to hold lowercase of two first characters. Change all
5551 remaining TO_LOWER to tolower.
5552 * config/tc-sh64.c (TO_LOWER): Delete.
5553 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5554 (md_parse_name): Define.
5555 (sh64_consume_datalabel): Declare.
5556 (DOLLAR_DOT): Define.
5557 * config/tc-sh64.c (shmedia_parse_exp): New.
5558 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5559 (shmedia_parse_reg): Remove const from src
5561 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5562 (shmedia_md_assemble): Ditto for op_end variable.
5563 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5564 Use shmedia_parse_exp, not parse_exp.
5565 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5566 parameter. All callers changed.
5567 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5569 (shmedia_parse_reg): Put first two character in local variables.
5570 Use tolower, not TO_LOWER. If no register is found and argtype
5571 indicates a control register, scan shmedia_creg_table
5573 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5574 * Makefile.am (CPU_TYPES): Add sh64.
5575 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5576 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5577 Regenerate dependencies.
5578 * Makefile.in: Regenerate.
5579 * configure.in: Add support for sh64-*-elf*.
5580 * configure: Regenerate.
5581 * config/tc-sh64.h: New.
5582 * config/tc-sh64.c: New.
5583 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5584 .mode, .isa and .uaquad.
5585 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5586 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5587 [HAVE_SH64] (END): Define as 10.
5588 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5589 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5591 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5592 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5593 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5594 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5596 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5597 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5598 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5599 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5600 SHmedia instructions. Handle state-change after switching to
5602 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5603 (md_parse_option) [HAVE_SH64]: Parse new options.
5604 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5605 (md_convert_frag) [HAVE_SH64] <default>: Call
5606 shmedia_md_convert_frag instead of abort.
5607 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5608 BFD_RELOC_SH_SHMEDIA_CODE.
5609 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5610 SHcompact or SHmedia code.
5611 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5612 shmedia_md_apply_fix instead of abort.
5613 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5614 result from calling shmedia_md_estimate_size_before_relax instead
5616 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5618 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5619 shmedia_init_reloc and do nothing more if it returns non-zero.
5620 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5621 * po/POTFILES.in: Regenerate.
5622 * po/gas.pot: Regenerate.
5624 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5626 * config/tc-sh.c (parse_at): Install the correct version of
5629 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5630 assume fixP->fx_subsy is non-NULL.
5632 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5634 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5635 A_DISP_PC_ABS, and adjust it by -4.
5636 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5638 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5639 the operand type is not A_DISP_PC_ABS.
5641 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5643 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5644 common and weak symbols. Handle common and weak symbols as
5645 undefined symbols with regards to GREG handling and merging.
5646 (mmix_frob_file): Ditto.
5648 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5650 * configure.in (hppa-*-netbsd*): New target.
5651 * configure: Regenerate.
5652 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5654 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5656 * config/tc-v850.c: Add missing prototypes amd use old-style
5657 function definitions.
5658 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5659 (sdata_section tdata_section, zdata_section, sbss_section,
5660 tbss_section, zbss_section, rosdata_section, rozdata_section,
5661 scommon_section, tcommon_section, zcommon_section,
5662 call_table_data_section, call_table_text_section): Delete.
5663 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5664 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5665 v850_call_table_data, v850_call_table_text): Delete.
5666 (struct v850_seg_entry): New.
5667 (v850_seg_table): New.
5668 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5669 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5670 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5671 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5674 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5675 recording of alignment.
5676 (md_pseudo_table): Use v850_seg.
5677 (md_begin): Don't init .call_table_data and .call_table_text here.
5678 Set v850_seg_table bss entry.
5680 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5682 Support on-demand global register allocation by passing on
5683 base-plus-offset relocs to the linker.
5684 * config/tc-mmix.c: Tweak and fix typos in comments.
5685 (allocate_undefined_gregs_in_linker): New variable.
5686 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5687 (md_longopts): Add --linker-allocated-gregs.
5688 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5689 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5690 (md_show_usage): Update text for -x. Add text for
5691 --linker-allocated-gregs.
5692 (tc_gen_reloc): Derive default value for addend from val and
5693 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5694 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5695 GREG if allocate_undefined_gregs_in_linker.
5696 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5697 --linker-allocated-gregs.
5698 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5699 --linker-allocated-gregs. Mention that it's implied by -x.
5700 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5701 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5703 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5705 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5707 * Makefile.am: Run "make dep-am"
5708 * Makefile.in: Regenerate.
5710 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5712 * config/tc-or32.c: New file.
5713 * config/tc-or32.h: New file.
5714 * configure.in: Add support for or32 targets.
5715 * configure: Regenerate.
5716 * config/obj-coff.c: Add support for or32 targets.
5717 * config/obj-coff.h: Add support for or32 targets.
5718 * Makefile.am: Add support for or32 targets.
5719 * Makefile.in: Regenerate.
5720 * NEWS: Mention support for OpenRISC.
5721 * doc/Makefile.in: Regenerate.
5722 * po/POTFILES.in: Regenerate.
5723 * po/gas.pot: Regenerate.
5725 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5727 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5730 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5732 * config/tc-mips.c (tc_gen_reloc): Arrange for
5733 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5734 their LO16 parts, even for ELF.
5736 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5738 * config/tc-i386.c: Protect definitions of true and false
5741 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5743 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5744 made because of .weak, if they are neither defined nor used in any
5747 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5749 * configure: Regenerated.
5751 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5753 * doc/Makefile.am (install): Depend on install-info.
5754 * doc/Makefile.in: Regenerate.
5756 2002-01-26 Nick Clifton <nick@redhat.com>
5758 * po/fr.po: Updated version
5760 2002-01-24 Kazu Hirata <kazu@hxi.com>
5762 * config/tc-h8300.c (check_operand): Don't print a warning
5763 when a valid 24-bit address is given to a 16-bit address
5766 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5768 * config/tc-sh.c (sh_elf_suffix): Removed.
5769 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5770 sh_end_of_match, sh_parse_name): New functions.
5771 (sh_elf_cons): Simplify.
5772 (parse_exp): Reject misplaced PIC operands.
5773 (md_undefined_symbol): Simplify.
5774 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5775 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5776 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5777 Complain if subsy remains at the end.
5778 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5779 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5781 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5783 * config/tc-mn10300.c (xr_registers): Move `pc'...
5784 (other_registers): ... here.
5786 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5788 * Makefile.am: Run "make dep-am".
5789 * Makefile.in: Regenerate.
5790 * gas/po/POTFILES.in: Regenerate.
5792 2002-01-21 DJ Delorie <dj@redhat.com>
5794 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5795 stabstr_name allocation permanent, as it will be referenced from
5798 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5800 * configure.in (ia64-*-netbsd*): New target.
5801 * configure: Regenerate.
5803 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5805 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5807 <Detailed description, ARM options>: Ditto.
5808 * doc/c-arm.texi (ARM Options): Ditto.
5810 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5812 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5813 do_mia, do_mar and do_mra respectively.
5814 (do_mav_*): Renamed from do_c_*.
5815 (mav_reg_required_here, mav_parse_offset): Renamed from
5816 cirrus_reg_required_here and cirrus_parse_offset respectively.
5817 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5819 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5820 Keith Walker <keith.walker@arm.com>
5822 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5823 (insns): Add pattern for bxj instruction.
5824 (do_bxj): New function.
5825 (arm_cpus): Add arm926ej.
5826 (arm_archs): Add armv5tej.
5828 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5830 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5832 2002-01-19 Keith Walker <keith.walker@arm.com>
5834 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5836 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5838 * NEWS: Mention new ARM command-line options and VFP support.
5840 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5842 (ARM_CEXT_MAVERICK): Similarly.
5843 (ARM_ANY): Now means any core instruction.
5844 (CPU_DEFAULT): Default to ARM_ANY.
5845 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5846 (pic_code): Declare for all object types. Make type int.
5847 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5848 (march_fpu_opt, mfpu_opt): Declare.
5849 (md_longopts): Tidy up conditional definitions.
5850 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5851 (arm_long_opts): New tables.
5852 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5853 (arm_parse_extension): New function.
5854 (md_parse_option): Rewrite using new table-driven system.
5855 (md_show_usage): Use new table-driven system.
5856 (md_begin): Calculate cpu_variant from command line option data.
5857 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5858 command-line options.
5859 * doc/c-arm.texi: Likewise.
5861 2002-01-18 Andreas Jaeger <aj@suse.de>
5863 * as.c (parse_args): Update year.
5865 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5867 * config/tc-tic54x.c (encode_address): Add a more informative
5868 warning about incorrect syntax.
5870 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5872 * po/gas.pot: Regenerate.
5874 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5876 * macro.c (get_any_string): Add no-c-format comment to prevent
5877 confusion when translating string.
5878 * gasp.c (get_any_string): Add no-c-format comment to prevent
5879 confusion when translating string.
5881 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5882 Johannes Stezenbach <js@convergence.de>
5883 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5884 matched before the shorter ones.
5885 (my_getSmallParser): Fix handling of nested parentheses in
5886 percent_op's. Code cleanup.
5887 (my_getPercentOp): New function, code from my_getSmallParser.
5888 (my_getSmallExpression): Fix handling of closing parentheses.
5889 Code cleanup. Better comments.
5891 2002-01-16 Nick Clifton <nickc@redhat.com>
5893 po/tr.po: New file: Turkish translation.
5894 configure.in (LINGUAS): Add "tr".
5895 configure: Regenerate.
5897 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5899 Support for VFP instructions
5900 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5901 (cp_address_required_here): New argument wb_ok. When false, do not
5902 accept write-back forms of addressing. Change all callers.
5903 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5904 (FPU_VFP_EXT_V2): Define.
5905 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5906 Define in terms of above.
5907 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5908 (vfp_reg): New struct.
5909 (vfp_regs): New array of registers.
5910 (insns): Add VFP instructions.
5911 (sn_table): New array of VFP single-precision register names.
5912 (dn_table): New array of VFP double-precision register names.
5913 (all_reg_maps): Add the new register tables.
5914 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5915 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5916 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5917 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5918 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5919 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5920 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5921 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5922 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5923 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5924 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5925 (do_vfp_sp_dp_cvt): New functions.
5926 (md_begin): Set soft-float flag for appropriate VFP work.
5927 (md_atof): Handle VFP-format doubles.
5928 (md_parse_option): Handle VFP command-line options.
5929 (md_show_usage): Display VFP command-line options.
5931 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5933 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5934 various command line options.
5936 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5938 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5940 (xstormy16_md_apply_fix3): Do not return a value.
5942 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5944 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5945 the -EL/-EB option that matches the target's endianness.
5946 (md_parse_option): Likewise.
5948 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5950 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5951 is not dependent on ARM_BI_ENDIAN.
5953 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5955 * tc-arm.c (all error messages): Normalize capitalization of messages.
5957 * tc-arm.h (md_operand): Delete define.
5958 * tc-arm.c (in_my_get_expression): New static variable.
5959 (my_get_expression): Set and clear it.
5960 (md_operand): New function. If called from my_get_expression
5961 put the error in inst.error.
5962 (output_inst): Now takes argument of instruction being assembled.
5963 Print it out with any error message.
5964 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5966 (end_of_line): Don't update inst.error if it is already set.
5968 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5970 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5971 op that can be translated into a mvn instruction.
5973 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5975 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5976 setting default md.flags.
5977 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5978 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5979 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5980 for 32 bit unwind info blocks.
5981 (generate_unwind_image): Add support for different types
5982 of unwind images (32 bits and/or big-endian).
5983 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5984 (ia64_target_format): Add support for hpux target formats.
5985 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5986 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5987 SHT_FINI_ARRAY elf section types.
5989 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5991 * tc-arm.c (struct reg_entry): Move before prototypes.
5992 (int_register, cp_register, fp_register): Delete.
5993 (reg_table): Delete. Replaced with ...
5994 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5995 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5996 (mav_dspsc_table): ... one table per register set.
5997 (arm_reg_hsh): Delete.
5998 (struct reg_map): New structure.
5999 (all_reg_maps): New array.
6000 (enum arm_reg_type): New enums.
6001 (build_reg_hsh): New function.
6002 (insert_reg_alias): Use hash table passed by caller. Adjust all
6004 (create_register_alias): New function, split out from ...
6005 (md_assemble): ... here.
6006 (md_begin): Build new register hash tables.
6007 (arm_reg_parse): New argument for the hash table to search. Adjust all
6009 (arm_reg_parse_any): New function.
6010 (co_proc_number): Look up the processor number in the processor hash
6012 (cirrus_regtype): Delete.
6013 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6014 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6015 (ARM_EXT_MAVERICKsc_register): Delete.
6016 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6017 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6019 (do_c_triple_4, do_c_triple_5): Delete.
6020 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6021 (do_c_quad_6): Delete.
6022 (do_c_quad_6[ab]): New functions.
6023 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6024 arguments to use new register parsing methods.
6025 (cirrus_reg_required_here): Likewise.
6026 (insns): Reclassify cirrus maverick worker functions.
6027 (cirrus_valid_reg): Delete.
6029 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6031 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6032 (sh*-*-netbsdelf*): New target.
6033 * configure: Regenerate.
6034 * tc-sh.h: Update copyright years.
6035 (TARGET_FORMAT): Add version for TE_NetBSD.
6037 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6039 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6042 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6044 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6045 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6047 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6049 * tc-mips.c (mips_cprestore_valid): New flag.
6050 (mips_frame_reg_valid): New flag.
6051 (macro) [M_JAL_2]: Check both flags.
6052 [M_JAL_A]: Likewise.
6053 (s_cprestore): Set mips_cprestore_valid.
6054 (tc_get_register): If setting mips_frame_reg, set
6055 mips_frame_reg_valid and clear mips_cprestore_valid.
6056 (s_mips_ent): Clear both flags.
6057 (s_mips_end): Clear both flags.
6059 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6061 * write.c (write_object_file): Make use of bfd_section_list_remove.
6062 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6063 * config/tc-mmix.c (mmix_frob_file): Likewise.
6065 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6067 * configure.in (i386-*-netbsdelf*): Collapse target into...
6068 (i386-*-netbsd*): ...this. Add support for x86-64.
6069 * configure: Regenerated.
6071 2002-01-03 matthew green <mrg@redhat.com>
6073 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6075 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6077 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6080 For older changes see ChangeLog-0001
6086 version-control: never