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