1 2003-08-04 Alan Modra <amodra@bigpond.net.au>
3 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
4 for memory operands. Pass the full operand_string to i386_index_check.
6 2003-08-01 Jason Eckhardt <jle@rice.edu>
8 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
9 (target_intel_syntax): Declare variable.
10 (OPTION_INTEL_SYNTAX): Declare macro.
11 (md_longopts): Add option -mintel-syntax.
12 (md_parse_option): Set target_intel_syntax.
13 (md_show_usage): Add -mintel-syntax usage.
14 (md_begin): Set reg_prefix based on target_intel_syntax.
15 (i860_process_insn): Skip register prefix only if there is one.
16 Parse relocatable expressions in either Intel or AT&T syntax based
17 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
18 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
19 about the differences in syntax.
21 2003-08-01 Dmitry Diky <diwil@mail.ru>
23 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
26 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
28 * config/tc-sh.c (md_assemble): For branches, check & update
31 2003-07-30 Jason Eckhardt <jle@rice.edu>
33 * config/tc-i860.c: Convert to ISO C90.
35 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37 * read.c (s_space): Revert 2003-07-28 change.
39 2003-07-30 Alan Modra <amodra@bigpond.net.au>
41 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
43 2003-07-29 Alan Modra <amodra@bigpond.net.au>
45 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
47 2003-07-29 Jakub Jelinek <jakub@redhat.com>
49 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
51 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
53 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
55 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
57 * read.c (s_space): Don't warn about .space 0.
59 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
61 * config/tc-mips.c (mips_flag_pdr): Define.
62 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
63 (s_mips_end) [OBJ_ELF]: Likewise.
64 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
65 (md_parse_option) [OBJ_ELF]: Handle them.
66 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
68 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
69 * doc/as.texinfo (Overview) [MIPS]: Likewise.
71 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
73 * config/obj-elf.c (obj_elf_change_section): Update
74 elf_section_type and elf_section_flags only when they are
77 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
79 * config/obj-elf.c (obj_elf_change_section): Always set section
82 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
84 * config/obj-elf.c (special_sections): Removed.
85 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
86 elf_section_type and elf_section_flags.
87 (elf_frob_file): Set SHT_GROUP.
89 * config/obj-elf.h (obj_sec_set_private_data): New.
91 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
92 * config/tc-ia64.h: Likewise.
93 * config/tc-m32r.h: Likewise.
94 * config/tc-m68hc11.h: Likewise.
95 * config/tc-mcore.h: Likewise.
96 * config/tc-mips.h: Likewise.
97 * config/tc-ppc.h: Likewise.
98 * config/tc-sh64.h: Likewise.
99 * config/tc-v850.h: Likewise.
100 * config/tc-xtensa.h: Likewise.
102 * config/tc-v850.h (SHF_V850_GPREL): Removed.
103 (SHF_V850_EPREL): Likewise.
104 (SHF_V850_R0REL): Likewise.
106 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
109 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
111 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
112 debugging symbols so that we handle page memory correctly.
114 2003-07-24 Nick Clifton <nickc@redhat.com>
116 * po/fr.po: Updated French translation.
118 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
120 * config/tc-arm.c (arm_archs): Add iwmmxt.
122 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
124 * read.c (do_parse_cons_expression): Mark nbytes unused to
127 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
129 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
132 * config/tc-h8300.c (md_assemble): Make sure characters after
133 slash and dot are lower-case.
135 2003-07-17 Nick Clifton <nickc@redhat.com>
137 * po/es.po: New Spanish translation.
138 * po/tr.po: New Turkish translation.
139 * po/opcodes.pot: Regenerate.
141 2003-07-16 Alan Modra <amodra@bigpond.net.au>
143 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
144 (generic_dwarf2_emit_offset): Don't define function when
145 TC__DWARF2_EMIT_OFFSET is defined.
147 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
149 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
150 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
151 * doc/c-mips.texi: Document -march=rm9000.
153 2003-07-15 Alan Modra <amodra@bigpond.net.au>
155 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
156 only for V850_OPERAND_DISP operands.
158 2003-07-15 Alan Modra <amodra@bigpond.net.au>
160 * frags.c (frag_more): Move segment checks to..
161 (frag_alloc_check): ..here. New function.
162 (frag_append_1_char): Call frag_alloc_check.
164 2003-07-14 Nick Clifton <nickc@redhat.com>
166 * po/tr.po: Update with latest version.
167 * po/POTFILES.in: Regenerate.
168 * po/gas.pot: Regenerate.
169 * configure: Regenerate.
171 2003-07-14 Nick Clifton <nickc@redhat.com>
173 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
174 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
175 "safe-ctype.h" and update use of macros.
176 * Makefile.am: Update dependencies.
177 * Makefile.in: Regenerate.
179 2003-07-11 Alan Modra <amodra@bigpond.net.au>
181 * po/gas.pot: Regenerate.
183 2003-07-10 Jakub Jelinek <jakub@redhat.com>
185 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
186 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
187 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
188 DWARF2_CIE_DATA_ALIGNMENT): Define.
189 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
191 (ppc_cie_data_alignment): Declare.
192 * config/tc-ppc.c: Include dw2gencfi.h.
193 (ppc_cie_data_alignment): Define.
194 (md_begin): Initialize ppc_cie_data_alignment.
195 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
197 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
198 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
199 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
200 DWARF2_CIE_DATA_ALIGNMENT): Define.
201 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
203 (s390_cie_data_alignment): Declare.
204 * config/tc-s390.c: Include dw2gencfi.h.
205 (s390_cie_data_alignment): Define.
206 (md_begin): Initialize s390_cie_data_alignment.
207 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
210 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
212 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
213 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
214 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
215 * configure.in (am33_2.0, mn10300-*-linux*): Added.
216 * configure: Rebuilt.
217 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
219 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
222 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
224 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
225 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
226 for subtracts from GLOBAL_OFFSET_TABLE that could not be
228 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
229 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
230 could not be simplified.
231 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
232 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
233 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
234 BDF_RELOC_MN10300_GOT32.
235 * config/tc-mn10300.c (mn10300_fix_adjustable): If
236 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
237 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
238 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
239 symbol if we know its value.
240 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
241 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
242 duplicate underscore prefix.
243 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
244 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
245 type in X_md, not X_add_number. Zero X_add_number.
246 (mn10300_check_fixup): Extract relocation type from X_md.
247 * config/tc-mn10300.h: Update comment.
248 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
249 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
251 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
252 (mn10300_check_fixup): Likewise.
253 (mn10300_parse_name): Set X_add_number to relocation type.
254 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
255 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
256 O_GOTOFF, O_PLT, O_GOT): Define.
257 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
258 (mn10300_check_fixup): New fn.
259 (md_assemble): Call it. Check for PIC-related relocs.
260 (mn10300_cons_fix_new): Likewise. New fn.
261 (mn10300_end_of_match): New fn.
262 (mn10300_md_parse_name_cont): New fn.
264 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
266 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
267 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
269 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
270 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
271 md_assemble, md_estimate_size_before_relax): Handle fbCC.
272 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
273 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
275 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
276 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
277 (HAVE_AM33): Match AM33_2 too.
278 (HAVE_AM33_2): New macro.
279 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
280 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
281 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
282 (float_registers, double_registers): New variables.
283 (float_register_name, double_register_name): New functions.
284 (md_assemble): Recognize FP registers. Implement FMT_D3.
285 (mn10300_insert_operand): Support FP registers.
287 2003-07-08 Chris Demetriou <cgd@broadcom.com>
289 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
290 target being a global symbol if not compiling SVR4 PIC code.
292 2003-07-07 Nick Clifton <nickc@redhat.com>
294 * doc/c-m32r.texi (M32R-Directives): New node. Document the
295 .high, .shigh and .low directives.
297 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
299 * config/tc-h8300.c (h8300sxnmode): Add prototype.
301 (parse_exp): Replace expressionS argument with a h8_op. Parse the
302 operand size as well.
303 (skip_colonthing): Remove unused expression argument. Tighten checks
305 (colonmod24): Remove.
306 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
307 (get_operand): Likewise. Use the standard code to read the size of
308 pc-relative operands.
309 (fix_operand_size): Include the size-guessing logic that used to be
310 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
311 offsets with a symbolic component.
313 2003-07-04 Nick Clifton <nickc@redhat.com>
315 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
316 macro to compute size of selected register name array.
318 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
320 * config/tc-s390.c (md_parse_option): Add cpu type z990.
321 (md_begin): Add minimal cpu type logic for instructions with different
322 binary format depending on the cpu.
323 (md_assemble): Remove check for minimal cpu.
324 (s390_insert_operand): Add support for long displacements.
325 (md_gather_operands): Likewise.
326 (tc_s390_fix_adjustable): Likewise.
327 (tc_s390_force_relocation): Likewise.
328 (md_apply_fix3): Likewise.
330 2003-06-30 Chris Demetriou <cgd@broadcom.com>
332 * config/tc-mips.c (s_mipsset): Implement -march= handling
335 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
337 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
338 prototypes and casts. Replace PTR with void *. Reformat.
339 * config/tc-mips.h: Likewise.
341 2003-06-30 Alan Modra <amodra@bigpond.net.au>
343 * config/tc-ia64.c (note_register_values): Warning fix.
344 * config/tc-mips.c (append_insn): Likewise.
346 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
348 * config/tc-mips.c (mips_set_options,mips_opts): Support for
350 (file_mips_arch): Rename mips_arch.
351 (mips_arch_info,mips_tune_info): Remove.
352 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
353 (mips_cpu_info_from_arch): New function.
354 (md_begin): Use file_mips_arch.
355 (macro_build,macro,mips_ip): Use mips_opts.arch.
356 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
357 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
359 (s_mipsset): Support for .set arch=FOO.
360 (mips_cpu_info_table): Fix typo.
362 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
364 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
366 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
368 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
369 unsigned 8-bit operands.
371 2003-06-24 Nick Clifton <nickc@redhat.com>
373 * read.c (s_comm): Change error message to assume an unsigned size
374 has been passed to .comm.
375 * config/tc-sparc.c (s_common): Likewise.
376 * write.c (write_contents): Replace 'unsigned long' with
377 'addressT' and 'long' with offsetT in order to allow computations
378 with very large values to work for 64-bit addressed targets.
379 (relax_and_size_all_segments): Likewise.
380 (relax_frag): Likewise.
381 (relax_segment): Likewise.
383 2003-06-23 Mark Mitchell <mark@codesourcery.com>
385 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
387 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
389 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
392 * gas/config/tc-i386.h (CpuPNI): New.
393 (CpuUnknownFlags): Add CpuPNI.
395 2003-06-23 <davidm@hpl.hp.com>
397 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
398 freebsd, openvms, and nsk (non-stop kernel).
400 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
402 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
403 all locals have been declared.
405 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
407 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
408 special handling for n32 ABI.
411 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
413 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
416 2003-06-19 Christian Groessler <chris@groessler.org>
418 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
419 now, not only a warning. Add some more checks to detect invalid
421 (get_operand): For CLASS_IR remember register size in mode struct.
422 (get_specific): Handle new CLASS_IRO type. Add register size
423 checks for CLASS_IR and CLASS_IRO.
424 (md_apply_fix3): Fix undefined usage of buf.
426 2003-06-19 Alan Modra <amodra@bigpond.net.au>
428 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
429 (ppc_change_csect): Add align param. Align frag at start of csect.
430 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
431 (ppc_frob_section): Align vma.
433 2003-06-18 Jakub Jelinek <jakub@redhat.com>
435 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
436 (output_cie): Don't pad.
437 (output_fde): Add align argument. Pad to align if not 0.
438 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
439 Pad just last FDE to EH_FRAME_ALIGNMENT.
441 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
443 * config/tc-s390.c (init_default_arch): Make current_mode_mask
444 dependent on s390_arch_size and current_cpu dependent on
447 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
449 * configure.in: Add c4x as an architecture variant to tic4x.
450 * configure: Regenerate.
451 * Makefile.in: Regenerate.
452 * doc/Makefile.in: Regenerate.
454 2003-06-18 Alan Modra <amodra@bigpond.net.au>
456 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
457 ".TOC." from PPC64_TOC relocs.
459 2003-06-17 Alan Modra <amodra@bigpond.net.au>
461 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
463 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
465 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
466 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
467 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
468 s_cprestore,s_cpadd): Use them.
470 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
472 * configure.in: Add specific case for cris-*-linux-gnu* with
474 * configure: Regenerate.
475 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
476 if TE_LINUX defined, else FALSE.
477 (bfd_boolean demand_register_prefix): Set default from
478 DEFAULT_CRIS_AXIS_LINUX_GNU.
479 (symbols_have_leading_underscore): Similar.
480 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
482 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
484 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
485 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
486 FPU_ARCH_FPA for AOUT.
487 (md_begin): Don't try to guess the floating point architecture from
488 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
490 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
492 * configure.in: Add i386-netbsd-gnu target.
493 * configure: Regenerate.
495 2003-06-12 Tom Tromey <tromey@redhat.com>
497 * doc/as.texinfo (Comm): Added @node. Moved before CFI
500 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
502 * config/tc-mips.c (append_insn): In a compound relocation, take the
503 field width from the final (outermost) operator.
505 2003-06-11 Richard Henderson <rth@redhat.com>
507 * dw2gencfi.c (struct cfi_escape_data): New.
508 (cfi_add_CFA_nop): Remove.
509 (CFI_escape, dot_cfi_escape): New.
510 (dot_cfi): Remove nop.
511 (cfi_pseudo_table): Remove nop; add escape.
512 (output_cfi_insn): Likewise.
513 (select_cie_for_fde): Stop on escape.
514 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
515 * read.c, read.h (do_parse_cons_expression): New.
516 * doc/as.texinfo (.cfi_escape): New.
518 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
520 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
521 (s_cprestore): Likewise.
522 (s_cpreturn): Likewise.
524 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
526 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
529 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
531 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
532 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
533 exceptions from size assert. Remove most of the addend fixup
534 specialcasing. Remove value, use valP directly. simplify fx_addnumber
535 handling. Remove zero addend specialcases.
536 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
537 the addend fixup specialcase.
538 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
540 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
542 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
543 in the RELOC_EXPANSION_POSSIBLE case.
545 2003-06-11 Alan Modra <amodra@bigpond.net.au>
547 * config/tc-i960.c (line_comment_chars): Add '#'.
548 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
550 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
552 * po/Make-in (DESTDIR): New.
553 (install-data-yes): Support $(DESTDIR).
554 (uninstall): Likewise.
556 2003-06-11 Alan Modra <amodra@bigpond.net.au>
558 * Makefile.am: Run "make dep-am".
559 * Makefile.in: Regenerate.
560 * po/POTFILES.in: Regenerate.
562 2003-06-10 Doug Evans <dje@sebabeach.org>
564 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
566 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
567 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
568 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
570 2003-06-10 Alan Modra <amodra@bigpond.net.au>
571 Gary Hade <garyhade@us.ibm.com>
573 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
574 (md_apply_fix3): Special case lq insn.
576 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
578 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
579 lists. Allow single-register ranges.
581 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
583 * config/tc-h8300.c (h8300sxnmode): New.
584 (md_pseudo_table): Add .h8300sxn entry.
586 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
588 * NEWS: Updated for the new -n option for the i386 assembler.
590 * config/tc-i386.c (optimize_align_code): New.
591 (md_shortopts): Add 'n'.
592 (md_parse_option): Handle 'n'.
593 (md_show_usage): Add '-n'.
595 * config/tc-i386.h (optimize_align_code): Declared.
596 (md_do_align): Optimize code alignment only if optimize_align_code
599 * doc/as.texinfo: Add the new -n option.
601 * doc/c-i386.texi: Document the new -n option.
603 2003-06-07 Richard Henderson <rth@redhat.com>
605 * doc/as.texinfo: Document .cfi_rel_offset.
607 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
608 (cfi_add_CFA_offset): Detect invalid offsets.
609 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
610 (cfi_add_CFA_restore_state): Restore it.
611 (CFI_rel_offset): New.
612 (cfi_pseudo_table): Add it.
613 (dot_cfi): Handle it.
615 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
617 * app.c (do_scrub_chars): Add states 14 and 15 to handle
620 2003-06-05 Michael Snyder <msnyder@redhat.com>
622 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
623 (build_bytes): Ditto.
625 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
627 * config/tc-h8sx.c (DMODE): Remove.
628 (colonmod24): Don't choose a default if the operand is a 16-bit
630 (fix_operand_size): New function.
631 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
632 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
634 2003-06-05 Michal Ludvig <mludvig@suse.cz>
636 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
637 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
638 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
639 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
640 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
641 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
642 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
643 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
644 (cfi_pseudo_table): New directives .cfi_return_column,
645 .cfi_restore, .cfi_undefined, .cfi_same_value,
646 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
647 (dot_cfi, output_cfi_insn): Handle new directives.
648 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
649 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
650 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
652 2003-06-04 Richard Henderson <rth@redhat.com>
654 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
656 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
658 2003-06-04 Richard Henderson <rth@redhat.com>
660 * config/tc-alpha.c (s_alpha_usepv): New.
661 (md_pseudo_table): Add it.
662 (alpha_cfi_frame_initial_instructions): New.
663 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
664 (tc_cfi_frame_initial_instructions): New.
665 * doc/c-alpha.texi: Document .usepv.
667 2003-06-04 Jakub Jelinek <jakub@redhat.com>
669 * as.c (show_usage): Document --execstack and --noexecstack.
670 (parse_args): Add --execstack and --noexecstack.
671 (main): Create .note.GNU-stack section if --execstack or
672 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
673 * as.h (flag_execstack, flag_noexecstack): New.
675 2003-06-03 Chris Demetriou <cgd@broadcom.com>
677 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
678 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
679 (OPTION_MISC_BASE): New defines.
680 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
681 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
682 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
683 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
684 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
685 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
686 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
687 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
688 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
689 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
690 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
691 (OPTION_TRAP): Redefine in terms of new defines.
692 (md_longopts): Reorder entries.
694 2003-05-14 Michael Snyder <msnyder@redhat.com>
695 From Bernd Schmidt <bernds@redhat.com>
696 and Michael Snyder <msnyder@redhat.com>
697 and Alexandre Oliva <aoliva@redhat.com>
698 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
699 * config/tc-h8300.h: Ditto.
701 2003-06-03 Nick Clifton <nickc@redhat.com>
703 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
704 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
705 before calling bfd_reloc_type_lookup.
707 2003-06-02 Alan Modra <amodra@bigpond.net.au>
709 * read.c (emit_expr): Set dot_value.
710 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
712 2003-06-02 Alan Modra <amodra@bigpond.net.au>
714 * macro.c (sub_actual): Don't lose string if it turns out that
715 &string wasn't an arg.
717 2003-05-31 Richard Henderson <rth@redhat.com>
719 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
720 (cfi_finish): Set flag_traditional_format around .eh_frame data.
722 2003-05-29 Richard Henderson <rth@redhat.com>
724 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
725 (all_frame_data, plast_frame_data, cur_frame_data): New.
726 (s_alpha_ent): Record data for dwarf2 cfi.
727 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
728 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
729 * config/tc-alpha.h (md_end): New.
730 (DWARF2_DEFAULT_RETURN_COLUMN): New.
731 (DWARF2_CIE_DATA_ALIGNMENT): New.
733 2003-05-29 Nick Clifton <nickc@redhat.com>
735 * configure.in: Add i386-*-freebsd* entry.
736 * configure: Regenerate.
738 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
740 * config/tc-m32r.c: Amend comment to refer to Renesas
742 2003-05-27 Richard Henderson <rth@redhat.com>
744 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
746 (current_location): Use symbol_temp_new_now.
747 * stabs.c (s_stab_generic): Use symbol_temp_new.
748 * symbols.c (temp_label_name): Remove.
749 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
751 2003-05-27 Richard Henderson <rth@redhat.com>
753 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
754 * as.c (main): Always call cfi_finish.
755 * config/tc-i386.c (x86_dwarf2_return_column): New.
756 (x86_cie_data_alignment): New.
757 (md_begin): Set them.
758 (tc_x86_cfi_init): Remove.
759 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
760 return int, not unsigned long; don't as_bad here.
761 (tc_x86_frame_initial_instructions): Streamline; use
763 * config/tc-i386.h (tc_cfi_init): Remove.
764 (DWARF2_DEFAULT_RETURN_COLUMN): New.
765 (DWARF2_CIE_DATA_ALIGNMENT): New.
767 2003-05-27 Richard Henderson <rth@redhat.com>
769 * symbols.c (temp_label_name): New.
770 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
771 (symbol_set_value_now): New.
772 * symbols.h: Prototype them.
773 * dwarf2dbg.c: Use them.
774 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
776 2003-05-23 Jason Eckhardt <jle@rice.edu>
778 * config/tc-i860.c (target_xp): Declare variable.
779 (OPTION_XP): Declare macro.
780 (md_longopts): Add option -mxp.
781 (md_parse_option): Set target_xp.
782 (md_show_usage): Add -mxp usage.
783 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
784 (md_assemble): Don't try expansions if XP_ONLY is set.
785 * doc/c-i860.texi: Document -mxp option and i860XP support.
787 2003-05-23 Eric Christopher <echristo@redhat.com>
789 * config/tc-mips.c (macro_build_jalr): Warning patrol.
791 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
793 * config/tc-mips.c (append_insn): Use actual relocation size for new
794 fixp's. Don't relax overflow checking for partial_inplace relocations.
795 Use the actual relocation type in combined relocs, not just the type
797 (macro_build_jalr): Use actual relocation size for new fix.
798 (s_cpsetup, s_gpdword): Likewise.
800 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
802 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
804 2003-05-22 Nick Clifton <nickc@redhat.com>
806 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
807 section relative offsets for relocs that will not be based on the
809 (xstormy16_md_apply_fix3): Remove previous patch to this
812 2003-05-07 Eric Christopher <echristo@redhat.com>
814 * config/tc-mips.c (mips_abicalls): New variable.
815 (md_parse_option): Use.
818 (mips_elf_final_processing): Set EF_MIPS_PIC and
819 EF_MIPS_CPIC dependent on above.
821 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
823 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
825 2003-05-21 Nick Clifton <nickc@redhat.com>
827 * config/obj-elf.c: Include dwarf2dbg.h.
828 (elf_pseudo_tab): Add .file and .loc.
829 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
830 * config/tc-arm.c: Likewise.
831 * config/tc-h8300.c: Likewise.
832 * config/tc-hppa.c: Likewise.
833 * config/tc-ia64.c: Likewise.
834 * config/tc-m68hc11.c: Likewise.
835 * config/tc-m68k.c: Likewise.
836 * config/tc-mmix.c: Likewise.
837 * config/tc-mn10300.c: Likewise.
838 * config/tc-ppc.c: Likewise.
839 * config/tc-sh.c: Likewise.
840 * config/tc-sparc.c: Likewise.
841 * config/tc-v850.c: Likewise.
842 * config/tc-frv.c: Likewise, and remove redundant inclusion of
844 * config/tc-ip2k.c: Likewise.
845 * config/tc-iq2000.c: Likewise.
846 * config/tc-xstormy16.c: Likewise.
847 * config/tc-xtensa.c: Likewise.
848 * Makefile.am: Regenerate dependencies.
849 * Makefile.in: Regenerate.
850 * aclocal.m4: Regenerate.
851 * config.in: Regenerate.
852 * configure: Regenerate.
853 * po/POTFILES.in: Regenerate.
854 * po/gas.pot: Regenerate.
856 2003-05-21 Nick Clifton <nickc@redhat.com>
858 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
859 BFD_ASSEMBLER targets.
860 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
861 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
862 defining BFD_ASSEMBLER.
864 2003-05-20 Michal Ludvig <mludvig@suse.cz>
866 * as.c (main): Remove tc_cfi_init().
867 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
869 (cfi_pseudo_table): Add "cfi_register" entry.
870 (cfi_make_insn): Handle CFA_register.
871 (cfi_output_insn): Ditto.
873 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
874 (dot_cfi_endproc): Reuse already emitted CIEs.
875 * testsuite/gas/cfi/cfi-i386.d: New pattern.
876 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
878 2003-05-20 Nick Clifton <nickc@redhat.com>
880 * config/tc-xstormy16.c: Include dwarf2dbg.h.
881 (md_pseudo_table): Add entries for .loc and .line.
883 2003-05-20 Alan Modra <amodra@bigpond.net.au>
885 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
887 (dot_cfi_endproc): Avoid C99 construct.
889 2003-05-20 Michal Ludvig <mludvig@suse.cz>
891 * dw2gencfi.c, dw2gencfi.h: New files.
892 * config/tc-i386.c (tc_x86_cfi_init): New function.
893 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
894 * as.c (parse_args): Set verbose flag on --verbose.
895 (main): Call tc_cfi_init()/cfi_finish().
896 * as.h (verbose): New external variable.
897 * read.c (pobegin): Insert CFI pops to the list.
898 * symbols.c (local_symbol_make): Make symbol external.
899 * symbols.h (local_symbol_make): New prototype.
900 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
901 * Makefile.in: Regenerate.
902 * doc/as.texinfo: Added node "CFI directives" with description of
903 all implemented .cfi_* directives.
904 * doc/Makefile.in: Regenerate.
905 * po/POTFILES.in: Regenerate.
907 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
909 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
911 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
913 2003-05-18 Jason Eckhardt <jle@rice.edu>
915 * config/tc-i860.c (i860_process_insn): Initialize fc after
916 each opcode mismatch.
918 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
920 * configure.in: Accept i[3-7]86 variants.
921 * configure: Regenerate.
923 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
925 * config/tc-mips.h: Fix comment formatting.
927 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
929 * read.c (old_buffer, old_input, old_limit): Remove variables.
930 (read_a_source_file): Delete label contin.
931 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
932 input as with macros, instead of in separate old_* variables.
933 Zero-terminate string being scrubbed.
935 2003-05-12 Nick Clifton <nickc@redhat.com>
937 * config/tc-xstormy16.c (skipping_fptr): New local variable.
938 (md_assemble): Reset skipping_fptr.
939 (md_operand): If @fptr() is followed by a minus sign, set
940 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
941 @fptr is detected, ignore it and reset skipping_fptr.
943 2003-05-11 Jason Eckhardt <jle@rice.edu>
945 * config/tc-i860.c (MAX_FIXUPS): Define.
946 (struct i860_fi fi[]): New struct.
947 (struct i860_it the_insn): Add above as member and move fields
948 exp, reloc, pcrel and fup into i860_fi.
949 (md_assemble): Replace all instances of exp, reloc, pcrel
950 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
951 Add a loop to possibly emit multiple fix-ups for each insn.
952 (i860_process_insn): Likewise.
953 (i860_get_expression): Likewise.
954 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
956 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
958 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
960 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
962 * config/tc-ia64.c (alias_hash): New.
963 (alias_name_hash): New.
964 (secalias_hash): New.
965 (secalias_name_hash): New.
966 (md_pseudo_table): Add "secalias".
967 (md_begin): Initialize alias_hash, alias_name_hash,
968 secalias_hash and secalias_name_hash.
970 (dot_alias): Implement .alias and .secalias directives.
972 (ia64_adjust_symtab): New.
974 (ia64_frob_file): New.
976 * config/tc-ia64.h (ia64_adjust_symtab): New.
977 (tc_adjust_symtab): Defined.
978 (ia64_frob_file): New.
979 (tc_frob_file): Defined.
981 2003-05-07 Dmitry Diky <diwil@mail.ru>
983 * tc-msp430.c: Add missing lines to known cpus list.
985 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
987 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
988 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
989 * config.in, configure: Rebuilt.
991 2003-05-05 H.J. Lu <hjl@gnu.org>
993 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
994 howto->partial_inplace is false.
996 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
998 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
999 symbol_used_in_reloc_p check.
1000 (md_apply_fix3): Remove check for howto->pcrel_offset.
1002 2003-05-03 H.J. Lu <hjl@gnu.org>
1004 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1005 fatal error for unknown section attribute.
1007 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1008 unknown section attribute.
1009 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1010 * config/tc-ppc.c (ppc_section_letter): Likewise.
1012 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1013 (ia64_elf_section_type): Accept "unwind".
1015 2003-05-02 H.J. Lu <hjl@gnu.org>
1017 * read.h (demand_copy_string): New.
1019 * config/tc-alpha.c (demand_copy_string): Removed.
1021 2003-05-02 Michael Snyder <msnyder@redhat.com>
1023 * write.h (FAKE_LABEL_NAME): Allow override
1024 (for targets that like eg. a leading dot in a local label).
1026 2003-05-02 Nick Clifton <nickc@redhat.com>
1028 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1029 addend with the symbol's value for pc-relative relocations against
1030 a defined symbol - this will be done automatically.
1032 2003-05-01 H.J. Lu <hjl@gnu.org>
1034 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1037 2003-05-01 H.J. Lu <hjl@gnu.org>
1039 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1041 * config/obj-elf.c (obj_elf_section_name): Call
1042 tc_canonicalize_section_name if it is defined.
1044 2003-05-01 H.J. Lu <hjl@gnu.org>
1046 * config/tc-ia64.c (ia64_check_label): New.
1047 * config/tc-ia64.h (tc_check_label): New.
1049 * read.c (read_a_source_file): Call tc_check_label after
1050 creating a user-defined label if defined.
1052 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1054 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1055 -be and split strings to below 509 bytes in length.
1057 2003-05-01 Christian Groessler <chris@groessler.org>
1059 * expr.h: Fix comments in operatorT typedef.
1060 * config/tc-z8k.c: Add 2003 to copyright message.
1061 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1062 decides by the parameter.
1063 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1064 command line argument was given to select the intended
1066 (get_interrupt_operand): Warn if NOP type code is emitted.
1067 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1068 (apply_fix): Call newfix with additional 'size' parameter.
1069 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1070 4 bit immediate arguments.
1071 (md_longopts): Add 'linkrelax' option.
1072 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1073 variable when 'linkrelax' command line option is specified.
1074 (md_show_usage): Display 'linkrelax' option.
1075 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1076 R_CALLR and R_REL16.
1077 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1079 2003-04-30 H.J. Lu <hjl@gnu.org>
1081 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1082 (ia64_float_to_chars): Likewise.
1083 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1084 and ia64_float_to_chars by tc_segment_info_data.endian from
1085 the current segment if byteorder == -1.
1086 (md_begin): Call dot_byteorder to set target_big_endian.
1087 (md_atof): Call ia64_float_to_chars to convert floating point.
1088 (ia64_float_to_chars_bigendian): New function.
1089 (ia64_float_to_chars_littleendian): Likewise.
1090 (ia64_elf_section_change_hook): Likewise.
1092 * config/tc-ia64.h (ia64_number_to_chars): New.
1093 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1094 (ia64_elf_section_change_hook): New.
1095 (md_elf_section_change_hook): Defined.
1096 (ia64_segment_info_type): New struct.
1097 (TC_SEGMENT_INFO_TYPE): Defined.
1099 2003-04-30 H.J. Lu <hjl@gnu.org>
1101 * config/tc-ia64.c (md_section_align): Deleted.
1103 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1104 (md_section_align): New.
1106 2003-04-30 H.J. Lu <hjl@gnu.org>
1108 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1110 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1112 (md_atof): Add 6 byte padding of zero for real16.
1114 2003-04-29 Nick Clifton <nickc@redhat.com>
1116 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1117 start of a version name.
1119 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1121 * configure.in (mips-*-*n*bsd*): Replace with...
1122 (mips-*-netbsd*, mips-*-openbsd*): These.
1123 * configure: Regenerate.
1125 2003-04-28 H.J. Lu <hjl@gnu.org>
1127 * config/tc-hppa.c (hppa_symbol_chars): New.
1128 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1130 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1132 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1134 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1136 * NEWS: Belatedly mention support for MIPS32 Release 2.
1138 2003-04-24 Eric Christopher <echristo@redhat.com>
1140 * config/tc-mips.c (nopic_need_relax): Revert previous
1143 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1145 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1146 * config/tc-h8300.c (dwarf2dbg.h): Include
1147 (md_pseudo_table): Handle .loc and .file
1148 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1149 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1150 * Makefile.in: Regenerate.
1152 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1154 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1155 (md_pseudo_table): Add h8300hn, h8300sn.
1156 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1157 * doc/c-h8300.texi : Add documentation for new machine directives.
1159 2003-04-24 Nick Clifton <nickc@redhat.com>
1161 * config/tc-ppc.c (ppc_symbol_chars): Define.
1162 * config/tc-ppc.h (tc_symbol_chars): Define.
1164 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1166 * config/tc-sh.c: Amend comment to refer to SuperH.
1167 * config/tc-sh.h: Likewise.
1168 (LISTING_HEADER): Amend to refer to SuperH.
1169 * config/tc-sh64.c: Change comment to refer to SuperH.
1170 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1171 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1172 * doc/c-sh.texi: Amend to refer to SuperH.
1173 Add SuperH architecture documentation references.
1174 * doc/c-sh64.texi: Change to refer to SuperH.
1176 2003-04-23 H.J. Lu <hjl@gnu.org>
1178 * app.c (do_scrub_chars): More checks for valid labels.
1180 2003-04-22 H.J. Lu <hjl@gnu.org>
1182 * app.c (do_scrub_chars): Check for valid label.
1184 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1186 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1187 references to Renesas M32R.
1188 * doc/c-m32r.texi: Likewise.
1190 2003-04-21 Richard Henderson <rth@redhat.com>
1192 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1193 (out_file_list): Assign non-null filename after generating error.
1195 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1197 * ehopt.c (check_eh_frame): For aug_size == 0
1198 in state_seeing_aug_size state skip the state_skipping_aug
1201 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1203 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1205 * doc/c-h8500.texi: Likewise.
1206 * doc/c-sh.texi: Likewise.
1207 * doc/c-sh64.texi: Likewise.
1208 * doc/h8.texi: Likewise.
1209 * config/tc-h8300.c: Likewise.
1210 * config/tc-h8300.h: Likewise.
1211 * config/tc-h8500.c: Likewise.
1212 * config/tc-h8500.h: Likewise.
1213 * config/tc-sh.c: Likewise.
1214 * config/tc-sh.h: Likewise.
1215 * config/tc-sh64.c: Likewise.
1216 * config/tc-sh64.h: Likewise.
1218 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1220 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1221 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1222 (append_insn): When filling delay slots with instructions
1223 that have fixups that tc_gen_reloc might consider modifyable
1224 in variant frags, start a new frag.
1225 (load_address): Generate GOT_DISP with of without offset
1226 depending on whether symbol is local. For -xgot, use
1227 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1228 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1229 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1230 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1231 <ld_st>: In NewABI with small got, always use
1232 GOT_PAGE/GOT_OFST, with the latter in the load/store
1233 instruction. With big got, use GOT_HI16/GOT_LO16 or
1235 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1236 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1237 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1238 (md_convert_frag): Use memmove for safe copying of overlapping
1241 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1243 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1244 -mlong, -mshort-double and -mlong-double options; use table @code.
1245 (M68HC11-Syntax): Update to document 68HC12 operands.
1246 (M68HC11-Modifiers): New section for operand modifiers.
1247 (M68HC11-Directives): New section for specific assembler directives.
1248 (M68HC11-Branch): Fix Overfull hbox error.
1250 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1252 * config/tc-mips.c (macro): Add comments explaining the rationale
1255 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1257 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1258 constant address that Alexandre took out by accident. Reject
1259 64-bit addresses that are not sign extensions of 32 bits only if
1260 we don't support 64-bit address constants.
1262 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1264 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1266 2003-04-08 Nick Clifton <nickc@redhat.com>
1268 * as.c (perform_an_assembly_pass): If using cgen, call
1270 * cgen.c (gas_cgen_begin): New function. If
1271 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1272 otherwise call cgen_clear_signed_overflow_ok.
1273 * cgen.h: Prototype gas_cgen_begin.
1275 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1277 * write.c (write_relocs): Remove unused variable.
1279 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1281 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1282 (macro): Use new macro to decide whether to emit constant address
1283 as 32 or 64 bits if addresses are 32-bit wide but registers are
1286 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1288 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1289 (M6811_OP_PAGE_ADDR): New internal define.
1290 (get_operand): New modifier %page and %addr to obtain page and
1291 address part of a far-function.
1292 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1293 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1295 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1296 (find_opcode): Add comment.
1297 (md_estimate_size_before_relax): Force relocation of
1298 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1299 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1300 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1301 on the symbol itself so that DWARF2 strings are merged correctly.
1303 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1305 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1306 default tic4x target format to 'coff2-tic4x'.
1307 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1309 * config/tc-tic4x.h: Ditto
1311 2003-04-03 Nick Clifton <nickc@redhat.com>
1313 * NEWS: Mention support for Xtensa architecture.
1315 2003-04-02 Philip Blundell <philb@gnu.org>
1317 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1319 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1321 * config/tc-mips.c (macro2): Adjust implementation of
1322 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1323 in the case where the source and destination registers
1326 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1328 * Makefile.am (CPU_TYPES): Add xtensa.
1329 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1330 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1331 (xtensa-relax.o): New target.
1333 * Makefile.in: Regenerate.
1334 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1335 extra_objects for xtensa targets.
1336 * configure: Regenerate.
1337 * write.c (write_object_file): Add new md_post_relax_hook.
1338 * config/tc-xtensa.c: New file.
1339 * config/tc-xtensa.h: Likewise.
1340 * config/xtensa-istack.h: Likewise.
1341 * config/xtensa-relax.c: Likewise.
1342 * config/xtensa-relax.h: Likewise.
1343 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1344 * doc/Makefile.in: Regenerate.
1345 * doc/all.texi: Set new XTENSA variable.
1346 * doc/as.texinfo: Set new Xtensa variable. Describe
1347 Xtensa-specific options. Define line comment character for
1348 Xtensa. Add Xtensa processors to list of ELF targets where
1349 alignment is specified in bytes. Add new Xtensa-Dependent node.
1350 Add acknowledgements for those contributing to the Xtensa port.
1351 * doc/internals.texi: Describe new md_post_relax_hook.
1352 * doc/c-xtensa.texi: New file.
1354 2003-04-01 Nick Clifton <nickc@redhat.com>
1355 Richard Earnshaw <rearnsha@arm.com>
1357 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1358 (ARM_ARCH_IWMMXT): Simplify.
1359 (insns): Place iwmmx instructions in correct place in table.
1360 (arm_add_note): New function: Add a note entry to a .note section.
1361 (md_begin): Make the default architecture be unknown.
1362 Suppress the creation of an arm note section.
1364 2003-03-26 Eric Christopher <echristo@redhat.com>
1366 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1368 2003-03-25 Stan Cox <scox@redhat.com>
1369 Nick Clifton <nickc@redhat.com>
1371 Contribute support for Intel's iWMMXt chip - an ARM variant:
1373 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1374 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1375 (enum wreg_type, enum iwmmxt_insn_type): New types.
1376 (wr_register, wc_register, wcg_register): New macros.
1377 (iwmmxt_table): New variable.
1378 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1379 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1380 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1381 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1382 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1383 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1384 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1385 cp_byte_address_offset, cp_byte_address_required_here,
1386 check_iwmmxt_insn): New functions.
1387 (asm_opcode_insns): Add iWMMXt instructions.
1388 (md_begin): Set the mach value for iWMMXt targets. Create a note
1389 section to identify iwmmxt binaries.
1390 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1391 * doc/c-arm.texi: Document the support for the iWMMXt.
1392 * NEWS: Mention new support.
1394 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1396 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1397 * doc/all.texi: Likewise.
1398 * doc/c-tic54x.texi: Likewise.
1400 2003-03-21 Andreas Schwab <schwab@suse.de>
1402 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1403 avoid aliasing issue.
1405 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1407 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1408 (current_arch_mask): Rename to current_mode_mask.
1409 (current_arch_requested): Remove variable.
1410 (current_cpu): New variable.
1411 (init_default_arch): Set defaults values for s390_arch_size,
1412 current_mode_mask and current_cpu.
1413 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1414 (md_begin): Replace current_arch_mask by current_cpu.
1415 (md_assemble): Adapt check and error message to current_mode_mask and
1418 2003-03-09 James E Wilson <wilson@tuliptree.org>
1420 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1421 * read.c (get_line_sb): Return end of line character or '\n' if
1422 it is zero or non-existent.
1424 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1426 * config/tc-mips.c (mips_validate_fix): New function.
1427 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1428 (mips_validate_fix): Declare.
1430 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1432 * Reverted 2003-03-02's patch.
1434 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1436 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1437 (TC_DWARF2_EMIT_OFFSET): Provide default.
1438 (out_debug_aranges, out_debug_info): Use it.
1439 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1440 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1441 (ia64_gen_real_reloc_type): ... here.
1442 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1444 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1446 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1447 (s_mips_ent): Likewise.
1449 2003-03-04 Dmitry Diky <diwil@mail.ru>
1451 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1452 and x1123 devices, add missed x437.
1453 (md_show_usage): Sort device list.
1455 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1457 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1458 (md_begin): Use preset_target_arch.
1459 (md_longopts): Make isa option unconditional.
1460 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1461 set preset_target_arch.
1462 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1463 by -S_GET_VALUE (fixP->fx_subsy).
1464 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1465 and the addend is 0.
1466 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1467 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1469 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1471 * config/tc-mips.c (append_insn): Add handling of
1472 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1473 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1474 misaligned address and reange overflow.
1475 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1476 earlier warnings about misaligned address and reange overflow.
1477 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1478 (md_apply_fix): Likewise. Fix warning output.
1479 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1480 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1481 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1483 2003-02-21 Nick Clifton <nickc@redhat.com>
1485 * NEWS: Mention availability of test generator program.
1487 2003-02-21 Miles Bader <miles@gnu.org>
1489 * config/tc-v850.c (system_registers): Add v850e debug registers.
1490 (system_register_name): Accept up to 27 (the last v850e sys register).
1492 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1494 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1495 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1496 Capitalize section headings consistently. Format index entries more
1497 consistently. Unconditionalize text about whether text and data
1498 sections are alterable. Use @ifnottex for alternatives to @tex output
1499 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1500 .size and .type directives. Be more polite about bad bug reports.
1501 Move FDL into a separate file.
1502 * doc/fdl.texi: New file.
1504 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1506 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1507 (macro): Check it to decide whether a new frag is needed.
1508 (my_getSmallExpression): Set it.
1510 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1512 * cgen.c: Fix typo: intial -> initial.
1514 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1516 * app.c (do_scrub_chars): Handle '||' in two states.
1518 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1520 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1521 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1523 2003-02-11 Uwe Stieber <uwe@wwws.de>
1525 * configure.in: Add support for kaOS as cross build target system.
1526 * configure: Regenerated.
1528 2003-02-10 Nick Clifton <nickc@redhat.com>
1530 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1531 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1532 bfd_mach_arm_ep9312 machine number.
1534 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1536 * config/tc-mips.c (reloc_needs_lo_p): New function.
1537 (fixup_has_matching_lo_p): New function.
1538 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1539 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1540 if that fixup already has a matching %lo(). Don't call frag_wane here.
1541 (macro): Call frag_wane here if the last unmatched hi was in the
1543 (pic_need_relax): New function, split out from...
1544 (md_estimate_size_before_relax): ...here.
1545 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1546 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1548 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1550 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1552 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1554 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1557 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1559 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1560 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1561 accept x@got+off etc.
1562 (md_assemble): Handle TLS relocs.
1563 (ppc_force_relocation): Force for all TLS relocs.
1564 (ppc_fix_adjustable): Likewise.
1565 (md_apply_fix3): Handle TLS relocs.
1567 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1569 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1570 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1572 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1574 * config/tc-mips.c (enum small_ex_type): Remove.
1575 (imm_unmatched_hi): Remove.
1576 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1577 argument from calls to append_insn.
1578 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1580 (macro_build): Update append_insn calls.
1581 (mips16_macro_build, macro_build_lui): Likewise.
1582 (mips_ip): Rework handling of small expressions. Move explicit
1583 relocation handling into my_getSmallExpression. Assume that the
1584 value of 'o' operands is zero if there is only one bracketed
1586 (percent_op): Make constant. Record the BFD relocation code
1587 associated with each operator.
1588 (my_getSmallParser, my_getPercentOp): Remove.
1589 (parse_relocation): New function.
1590 (my_getSamllExpression): Rework. Fill in relocations here
1591 rather than in mips_ip.
1593 2003-01-29 Nick Clifton <nickc@redhat.com>
1595 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1596 assembler's handling of # <linenum> "<filename>" directives work.
1598 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1600 * dwarf2dbg.c: Include filenames.h.
1601 (struct file_entry): Make filename const char *.
1602 (dirs, dirs_in_use, dirs_allocated): New variables.
1603 (get_filenum): Add NUM argument. Build directory table.
1604 (dwarf2_where): Adjust caller.
1605 (dwarf2_directive_file): Use get_filenum to allocate
1606 slot in file and directory tables.
1607 (dwarf2_directive_loc): Recreate full filename from
1608 directory and filename part if needed for listing.
1609 (out_file_list): Output directory table.
1610 Output main source file dirname before its filename.
1612 2003-01-28 Dmitry Diky <diwil@mail.ru>
1614 * config/tc-msp430.c: Replace occurences of 'tolower' with
1617 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1619 * config/tc-ia64.c (dot_vframesp): Correct error message.
1620 (dot_vframepsp): Ditto.
1622 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1624 * configure.in (em): Set to irix on all Irix systems.
1625 * configure: Rebuilt.
1626 * config/te-irix.h: New file.
1627 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1628 whether to use Irix-specific 64-bit format.
1630 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1632 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1634 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1636 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1637 (tc_gen_reloc): Handle TLS relocs.
1638 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1639 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1641 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1642 (obj_elf_type): Handle tls_object.
1644 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1646 * config/tc-s390.c (s390_tls_suffix): New function.
1647 (elf_suffix_type): Add suffix enums for TLS relocations.
1648 (s390_elf_suffix): Add suffix strings for TLS relocations.
1649 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1651 (md_gather_operands): Map new instruction operand/elf suffix
1652 combinations for TLS to bfd relocations.
1653 (tc_s390_fix_adjustable): Add new TLS relocations.
1654 (tc_s390_force_relocation): Likewise.
1655 (md_apply_fix3): Likewise.
1657 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1659 * as.h: Update copyright date.
1660 * symbols.c: Likewise.
1661 * config/tc-d10v.h: Likewise.
1662 * config/tc-fr30.h: Likewise.
1663 * config/tc-i960.h: Likewise.
1664 * config/tc-mips.h: Likewise.
1666 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1667 (MD_APPLY_SYM_VALUE): Move.
1669 2003-01-23 Nick Clifton <nickc@redhat.com>
1671 * NEWS: Announce sh2e support.
1674 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1675 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1676 (sh_elf_final_processing): Handle arch_sh2e.
1678 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1680 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1681 * symbols.h (S_FORCE_RELOC): Likewise.
1682 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1683 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1684 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1685 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1686 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1687 * write.c (generic_force_reloc): New function.
1688 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1689 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1690 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1691 * as.h (generic_force_reloc): Declare.
1692 * doc/internals.texi (S_FORCE_RELOC): Update.
1693 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1695 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1696 generic_force_reloc.
1697 (alpha_fix_adjustable): Likewise.
1698 * config/tc-arm.c (arm_force_relocation): Likewise.
1699 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1700 * config/tc-frv.c (frv_force_relocation): Likewise.
1701 * config/tc-i386.c (md_apply_fix3): Likewise.
1702 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1703 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1704 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1705 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1706 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1707 * config/tc-mips.c (mips_force_relocation): Likewise.
1708 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1709 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1710 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1711 * config/tc-sh.c (sh_force_relocation): Likewise.
1712 (md_pcrel_from_section): Likewise.
1713 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1714 * config/tc-v850.c (v850_force_relocation): Likewise.
1715 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1716 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1717 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1718 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1720 * config/tc-d10v.c (d10v_force_relocation): Delete.
1721 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1722 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1723 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1724 * config/tc-fr30.c (fr30_force_relocation): Delete.
1725 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1726 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1727 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1728 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1729 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1730 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1731 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1732 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1733 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1734 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1735 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1736 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1737 * config/tc-i386.c (i386_force_relocation): Delete.
1738 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1740 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1741 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1742 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1743 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1745 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1746 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1748 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1750 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1751 sh64_elf_section_data.
1752 * config/tc-sh64.h: Include elf32-sh64.h.
1753 * config/tc-m68hc11.c: Don't include stdio.h.
1754 (md_show_usage): Fix missing continuation.
1755 * Makefile.am: Run "make dep-am".
1756 * Makefile.in: Regenerate.
1758 2003-01-22 Nick Clifton <nickc@redhat.com>
1760 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1762 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1764 * configure.in: Handle *-*-aros*.
1765 * configure: Regenerated from configure.in.
1767 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1769 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1770 gotplt and pltoff relocations.
1771 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1772 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1773 gotplt and pltoff to bfd relocations.
1774 (md_gather_operands): Map new instruction operand/elf suffix
1775 combinations to bfd relocations.
1776 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1777 to the list of unadjustable relocations.
1778 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1779 and pltoff relocations.
1780 (md_apply_fix3): Add the new relocations.
1782 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1784 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1785 with a subsy symbol.
1787 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1789 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1790 of relocs for memory bank addressing.
1792 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1794 * config/tc-m68hc11.c (md_show_usage): Update usage.
1795 (md_parse_option): Recognize -m68hcs12.
1796 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1798 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1800 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1802 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1804 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1806 * Makefile.am: Run "make dep-am".
1807 * Makefile.in: Regenerate.
1808 * po/POTFILES.in: Regenerate.
1810 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1812 * read.c (get_absolute_expr): New, split out from..
1813 (get_absolute_expression): ..here.
1814 * read.h (get_absolute_expr): Declare.
1815 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1816 Trim size to arch bits_per_address, and test for negative input
1817 via get_absolute_expr.
1819 2003-01-07 DJ Delorie <dj@redhat.com>
1821 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1823 (xstormy16_md_apply_fix3): Use adjustment.
1825 2003-01-02 Ben Elliston <bje@redhat.com>
1827 * configure.in: Add iq2000-elf target.
1828 * configure: Regenerate.
1829 * config/tc-iq2000.c: New file.
1830 * config/tc-iq2000.h: Likewise.
1831 * po/gas.pot: Regenerate.
1833 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1835 * config/tc-mips.c: Update copyright years to include 2003.
1836 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1837 Additionally, clean up their code slightly and clean up their
1840 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1842 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1844 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1846 * doc/Makefile.in: Regenerate.
1848 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1850 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1851 of .init and .fini sections for array initializers and finalizers.
1853 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1855 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1856 the "+D" operand, which will be used only by the disassembler.
1858 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1860 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1862 * configure: Regenerate.
1863 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1864 (macro_build): Handle "K" operand.
1865 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1866 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1867 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1868 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1869 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1870 (validate_mips_insn): Implement "+" as a way to extend the
1871 allowed operands, and implement "K", "+A", "+B", and "+C"
1873 (OPTION_MIPS32R2): New define.
1874 (md_longopts): Add entry for OPTION_MIPS32R2.
1875 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1876 (md_parse_option): Handle OPTION_MIPS32R2.
1877 (s_mipsset): Reimplement handling of ".set mipsN" options
1878 and add support for ".set mips32r2".
1879 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1880 (md_show_usage): Document "-mips32r2" option.
1881 * doc/as.texinfo: Document "-mips32r2" option.
1882 * doc/c-mips.texi: Likewise.
1884 2002-12-30 Dmitry Diky <diwil@mail.ru>
1886 * configure.in: Add msp430 target.
1887 * configure: Regenerate.
1888 * Makefile.am: Add msp430 target.
1889 * Makefile.in: Regenerate.
1890 * config/tc-msp430.c: New file: msp430 assembler.
1891 * config/tc-msp430.h: New file: target macros for msp430.
1892 * doc/Makefile.am: Add msp430 target.
1893 * doc/Makefile.in: Regenerate.
1894 * doc/as.texinfo: Include msp430 documenation.
1895 * doc/all.texi: Enable msp430 documentation.
1896 * doc/c-msp430.texi: New file: document msp430 specific features
1899 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1901 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1902 (dwarf2_finish): Use it.
1903 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1904 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1906 2002-12-20 DJ Delorie <dj@redhat.com>
1908 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1909 BFD_RELOC_XSTORMY16_12.
1911 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1913 * doc/as.texinfo (Invoking): Typo fix.
1914 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1916 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1918 * doc/c-alpha.texi: Fix typos.
1919 * doc/c-arm.texi: Likewise.
1920 * doc/c-d10v.texi: Likewise.
1921 * doc/c-i370.texi: Likewise.
1922 * doc/c-i960.texi: Likewise.
1923 * doc/c-ia64.texi: Likewise.
1924 * doc/c-mmix.texi: Likewise.
1925 * doc/c-ns32k.texi: Likewise.
1926 * doc/c-pdp11.texi: Likewise.
1927 * doc/c-pj.texi: Likewise.
1928 * doc/c-sh64.texi: Likewise.
1929 * doc/c-sparc.texi: Likewise.
1930 * doc/c-tic54x.texi: Likewise.
1931 * doc/c-v850.texi: Likewise.
1932 * doc/c-vax.texi: Likewise.
1933 * doc/internals.texi: Likewise.
1935 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1937 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1938 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1939 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1940 arrange not to issue warnings about use of AT when AT is not
1943 2002-12-17 Nick Clifton <nickc@redhat.com>
1945 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1946 prevent it being confused with -k.
1948 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1950 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1951 has already been set up, use it.
1953 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1955 * ChangeLog-9295: Fix a typo.
1957 * config/tc-d10v.c: Fix a comment typo.
1958 * config/tc-dlx.c: Likewise.
1959 * config/tc-h8300.h: Likewise.
1960 * config/tc-h8500.h: Likewise.
1961 * config/tc-mips.c: Likewise.
1962 * config/tc-s390.c: Likewise.
1963 * config/tc-sh.h: Likewise.
1964 * config/tc-tic80.h: Likewise.
1965 * config/tc-w65.h: Likewise.
1966 * config/tc-z8k.c: Likewise.
1967 * config/tc-z8k.h: Likewise.
1968 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1970 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1972 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1973 Simplify sign extension. Remove redundant unsigned < 0 test.
1974 * config/tc-i960.c (md_ri_to_chars): Prototype.
1975 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1976 (dump_literals): Init brarsym, and test later instead of isforce.
1978 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1979 (parse): Constify line and lineptr.
1980 (md_begin): Calculate endop here.
1982 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1984 * config/obj-vms.c: Formatting. Include fnctl.h.
1985 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1986 (Object_Record_Offset): Make it a size_t.
1987 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1988 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1989 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1990 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1991 (vms_fixup_data_section <data_size>): Add here instead.
1992 * config/e-criself.c: Fix typo in last change.
1994 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1996 * write.c (write_object_file): Fix signed/unsigned warning.
1997 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1998 * config/e-criself.c (criself_bfd_name): Prototype.
1999 * config/obj-aout.c (s_sect): Remove unused function.
2000 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2001 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2002 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2003 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2004 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2005 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2006 (vms_fixup_text_section <text_siz>): Likewise.
2007 (synthesize_data_segment <data_size>): Likewise.
2008 (vms_fixup_xtors_section <sect_no>): Likewise.
2009 (structure_count): Don't use implicit int type.
2010 * config/tc-a29k.c (insert_sreg): Prototype.
2011 (define_some_regs): Prototype, make static.
2012 (parse_operand): Likewise.
2013 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2014 (md_show_usage <stream>): Likewise.
2015 (md_section_align <segment>): Likewise.
2016 (md_convert_frag <all args>): Likewise.
2017 (md_estimate_size_before_relax <all args>): Likewise.
2018 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2019 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2020 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2021 (md_undefined_symbol <name>): Likewise.
2022 (md_convert_frag <all args>): Likewise.
2023 (write_long <opcode>): Likewise.
2024 (tc_gen_reloc <seg>): Likewise.
2025 (md_estimate_size_before_relax <all args>): Likewise.
2026 (md_apply_fix3 <seg>): Likewise.
2027 (s_d30v_align <ignore>): Likewise.
2028 (build_insn): Correct format string.
2029 (md_apply_fix3): Likewise.
2030 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2031 (md_undefined_symbol <name>): Likewise.
2032 (md_convert_frag <all args>): Likewise.
2033 (md_cgen_lookup_reloc <insn>): Likewise.
2034 (md_begin): Delete unused vars.
2035 (md_assemble): Likewise.
2036 (md_estimate_size_before_relax): Likewise.
2037 (fr30_relax_frag): #if 0 out, seems unused.
2038 (md_atof): Remove declaration of atof_ieee.
2039 (restore_colon): Prototype.
2040 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2041 (frv_find_in_vliw): Likewise.
2042 (frv_debug_tomcat): Likewise.
2043 (frv_adjust_vliw_count): Likewise.
2044 (frv_tomcat_shuffle): Likewise.
2045 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2046 frv_find_in_vliw call.
2047 (md_atof): Remove declaration of atof_ieee.
2048 * config/tc-h8500.c (cons): Delete declaration.
2049 (md_begin <opcode>): Constify.
2050 (displacement_size, immediate_size, absolute_size): Remove.
2051 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2052 (tc_crawl_symbol_chain <headers>): Likewise.
2053 (md_undefined_symbol <name>): Likewise.
2054 (tc_headers_hook <headers>): Likewise.
2055 (md_parse_option <c,arg>): Likewise.
2056 (md_show_usage <stream>): Likewise.
2057 (md_convert_frag <headers, seg>): Likewise.
2058 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2059 (md_atof): Remove declaration of atof_ieee.
2060 (tc_aout_fix_to_chars): Remove unused function.
2061 (parse_reg): Prototype.
2062 (parse_exp): Prototype.
2063 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2064 (parse_reglist): Prototype.
2065 (get_operand): Prototype.
2066 (get_operands): Prototype.
2067 (get_specific): Prototype. Make "this_index" signed.
2068 (check): Prototype, make static.
2070 (build_relaxable_instruction): Prototype, make static.
2071 (build_bytes): Prototype.
2072 (wordify_scb): Prototype.
2073 * config/tc-h8500.h (start_label): Declare.
2074 (tc_coff_sizemachdep): Declare.
2075 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2076 (i370_rmode <unused>): Likewise.
2077 (i370_csect <unused>): Likewise.
2078 (i370_dc <unused>): Likewise.
2079 (i370_ds <unused>): Likewise.
2080 (i370_elf_lcomm <unused>): Likewise.
2081 (i370_ltorg <ignore>): Likewise.
2082 (i370_using <ignore>): Likewise.
2083 (i370_drop <ignore>): Likewise.
2084 (i370_byte <ignore>): Likewise.
2085 (i370_tc <ignore>): Likewise.
2086 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2087 (md_convert_frag <all args>): Likewise.
2088 (md_undefined_symbol <name>): Likewise.
2089 (md_pcrel_from_section <sec>): Likewise.
2090 (tc_gen_reloc <seg>): Likewise.
2091 (i370_section_letter): #if 0 unused functions.
2092 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2093 (symbol_locate): Prototype.
2094 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2095 (md_number_to_disp, md_number_to_field): Remove.
2096 (md_apply_fix3): Correct format string and cast "fup".
2097 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2098 (s_endian <ignore>): Likewise.
2099 (md_undefined_symbol <name>): Likewise.
2100 (tc_crawl_symbol_chain <headers>): Likewise.
2101 (tc_set_bal_of_call): Likewise.
2102 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2103 (i960_handle_align <fragp>): Likewise.
2104 (i960_validate_fix <this_segment_type>): Likewise
2105 (tc_gen_reloc <section>): Likewise.
2106 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2107 (struct memS, struct regop): Forward declare.
2108 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2109 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2110 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2111 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2112 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2113 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2114 (md_number_to_field): Likewise.
2115 (md_number_to_disp): Remove unused function.
2116 (md_atof): Remove declaration of atof_ieee.
2117 (md_apply_fix3): Correct md_number_to_imm call.
2118 * config/tc-ip2k.c (md_assemble): Warning fix.
2119 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2120 (fill_insn <ignore>): Likewise.
2121 (debug_sym <ignore>): Likewise.
2122 (md_undefined_symbol <name>): Likewise.
2123 (m32r_scomm <ignore>): Likewise.
2124 (md_convert_frag <abfd>): Likewise.
2125 (md_cgen_lookup_reloc <insn>): Likewise.
2126 (m32r_record_hi16 <seg>): Likewise.
2127 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2128 (allow_m32rx): Prototype.
2129 (first_writes_to_seconds_operands): Prototype.
2130 (writes_to_pc): Prototype.
2131 (can_make_parallel): Prototype.
2132 (make_parallel): Prototype.
2133 (target_make_parallel): Prototype.
2134 (assemble_two_insns): Prototype.
2135 (m32r_record_hi16): Prototype.
2136 (md_atof): Remove declaration of atof_ieee.
2137 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2138 (m32r_force_relocation): Prototype.
2139 (m32r_elf_section_change_hook): Prototype.
2140 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2141 (md_show_usage): Fix signed/unsigned warning.
2142 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2143 (calcop): Ditto for reg_prefix var.
2144 (hexval): Add cast to fix signed/unsigned warning.
2145 (md_number_to_disp): Delete unused function.
2146 (md_number_to_field): Likewise.
2147 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2148 (match_name): Prototype.
2149 (get_bf2): Prototype.
2150 (get_bf_offset_expression): Prototype.
2151 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2152 (md_undefined_symbol <ignore>): Likewise.
2153 (md_create_short_jump <all args>): Likewise.
2154 (md_create_long_jump <all args>): Likewise.
2155 (md_convert_frag <abfd, sec>): Likewise.
2156 (md_apply_fix3 <segment>): Likewise.
2157 (md_section_align <segment>): Likewise.
2158 (md_pcrel_from_section <sec>): Likewise.
2159 (tc_gen_reloc <section>): Likewise.
2160 (reg_m, reg_n, immediate): Delete unused vars.
2161 (dump_literals): Fix signed/unsigned warning.
2162 (enter_literal): Likewise.
2163 (parse_imm): Likewise. Also fix format string.
2164 (parse_mem): Remove unused var.
2165 (md_assemble <LS>): Abort on unexpected inst.
2166 (md_atof): Remove declaration of atof_ieee.
2167 (md_parse_option): Remove unused vars.
2168 (md_apply_fix3): Fix format strings, cast args.
2169 (tc_gen_reloc): Delete unused var.
2170 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2171 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2172 (md_undefined_symbol <name>): Likewise.
2173 (md_convert_frag <abfd>): Likewise.
2174 (tc_gen_reloc <seg>): Likewise.
2175 (check_operand <insn>): Likewise.
2176 (md_convert_frag): Fix format strings.
2177 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2178 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2179 (md_atof): Remove declaration of atof_ieee.
2180 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2181 (md_apply_fix3): Fix bogus >>='s.
2182 (md_undefined_symbol): Delete unused var.
2183 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2184 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2185 (fake_opcode): Adjust for pj_opc_int_t change.
2186 (md_begin): Likewise.
2187 (md_assemble): Likewise.
2188 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2189 instead of non-existent third arg of parse_exp_save_ilp.
2190 (md_parse_option): Correct "little" and "big" calls.
2191 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2192 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2193 (tc_gen_reloc <section>): Likewise.
2194 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2195 (debug): Rewrite using VA_* macros.
2196 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2197 (md_convert_frag): Likewise.
2198 (md_parse_option): Likewise.
2199 (md_show_usage): Likewise.
2200 (md_undefined_symbol): Likewise.
2201 (tc_gen_reloc): Likewise.
2202 (md_operand): Likewise.
2203 (tc_aout_pre_write_hook): Delete.
2204 (struct tic30_insn): Make "operands" unsigned.
2205 (struct tic30_par_insn): Likewise.
2206 (md_assemble): Likewise for "count", "i" and "numops".
2207 (tic30_parallel_insn): Likewise for vars here.
2208 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2209 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2210 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2211 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2212 (md_undefined_symbol): Likewise.
2213 (md_parse_option): Likewise.
2214 (md_convert_frag): Likewise.
2215 (tc_coff_symbol_emit_hook): Likewise.
2216 (md_atof): Remove declaration of atof_ieee.
2217 (const_overflow): Warning fixes, tidy.
2218 (get_operands): Delete unused vars.
2219 (internal_error_a): Adjust format string to expect a long for arg.
2220 (find_opcode): Warning fixes, simplify.
2221 (build_insn): Cast internal_error_a arg.
2222 (md_begin): Likewise.
2223 (md_apply_fix3): Likewise.
2224 (md_assemble): Delete unused var.
2225 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2226 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2227 (whatreg, parse_reg, parse_exp): Make static, prototype.
2228 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2229 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2230 (get_operand, get_operands, get_specific, newfix): Likewise.
2231 (apply_fix, build_bytes): Likewise.
2232 (md_atof): Remove declaration of atof_ieee.
2233 (tc_aout_fix_to_chars): Delete.
2234 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2236 (md_parse_option): Fix s_segm and s_unseg calls.
2238 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2240 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2242 (RELAX_BRANCH_RELOC_S2): Delete.
2243 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2244 Do not handle BFD_RELOC_16_PCREL.
2245 (macro_build, mips_ip): Likewise.
2246 (md_pcrel_from): Return 4 for undefined symbols regardless of
2248 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2249 Don't dereference howto if no such relocation is available.
2250 Do not apply hack for in-place zero addend in NEWABI.
2251 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2253 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2254 Alan Modra <amodra@bigpond.net.au>
2256 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2257 (TC_LINKRELAX_FIXUP): Add comments.
2259 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2261 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2263 (r_register_name, xr_register_name): Add prototype declarations.
2265 2002-12-08 H.J. Lu <hjl@gnu.org>
2267 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2268 copied from tc-i386.c.
2270 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2272 Fix Bug savannah/1825:
2273 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2274 (md_relax_table): Define specific relax for PC-rel offsets.
2275 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2276 (m68hc11_relax_frag): Handle the new relax code.
2277 (md_convert_frag): Likewise.
2278 (md_estimate_size_before_relax): Likewise.
2280 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2282 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2284 2002-12-05 Richard Henderson <rth@redhat.com>
2286 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2287 (ia64_gen_real_reloc_type): Handle it.
2288 (pseudo_func): Add @ltoffx.
2289 (md_begin): Build .<ltoffx>.
2290 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2292 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2294 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2295 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2296 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2297 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2298 COFF to call arm_force_relocation.
2300 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2302 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2304 (emit_one_bundle): Handle "hint" instruction.
2305 (operand_match): Match IA64_OPND_AR_CSD.
2307 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2309 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2312 2002-12-03 Nick Clifton <nickc@redhat.com>
2314 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2315 .PPC.EMB.apuinfo sections.
2317 2002-12-03 Richard Henderson <rth@redhat.com>
2319 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2321 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2323 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2324 (cons, s_align_bytes): Delete declaration.
2326 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2328 (dot): Delete unused function.
2329 (w65_expression): Remove unused arg.
2330 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2332 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2334 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2336 (check): Remove unused function.
2337 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2338 on unhandled switch case.
2339 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2341 (tc_crawl_symbol_chain): Delete unused function.
2342 (tc_headers_hook): Likewise.
2343 (tc_Nout_fix_to_chars): Likewise.
2344 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2345 (md_parse_option): Likewise.
2346 (md_convert_frag): Likewise.
2347 (tc_coff_symbol_emit_hook): Likewise.
2348 (md_show_usage): Likewise.
2349 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2350 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2351 (w65_expression): Declare.
2353 * po/POTFILES.in: Regenerate.
2355 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2356 and ARM_ADRL_IMMEDIATE.
2358 2002-12-02 Nick Clifton <nickc@redhat.com>
2360 * gasp.c: Delete. It has been deprecated.
2361 * NEWS: Mention that gasp has been removed.
2362 * Makefile.am: Remove references to gasp.
2363 * makefile.vms: Likewise.
2364 * mpw-make.sed: Likewise.
2365 * Makeile.in: Regenerate.
2366 * doc/gasp.texi: Delete.
2367 * doc/Makefile.am: Remove references to gasp.texi.
2368 * doc/Makefile.in: Regenerate.
2369 * macro.c: Delete references to gasp.
2370 Remove use of comment_char function parameter as it is no longer
2372 * macro.h: Update prototypes to remove comment_char parameter.
2374 * read.c (read_a_source_file, s_irp): Remove comment_char
2375 parameter from invocation of functions in macro.c
2377 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2379 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2381 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2383 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2384 (tc_gen_reloc): Mark section param as not used.
2386 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2388 Fix Bug savannah/1825:
2389 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2390 that are not pc-relative.
2391 (m68hc11_relax_frag): Declare.
2393 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2394 the offsetable indexed addressing modes (n,r).
2395 (build_insn): Cleanup some locals.
2396 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2397 relaxation of difference between two symbols of same section.
2398 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2399 only when this is a PC-relative operand and the offset is not absolute.
2400 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2401 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2402 be handled by m68hc11_relax_frag.
2404 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2406 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2407 (32-bit int, 64-bit double).
2408 (md_longopts): New options -mshort, -mlong, -mshort-double and
2409 -mlong-double to control the ABI.
2410 (md_show_usage): Update.
2411 (md_parse_option): Handle new options.
2412 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2414 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2416 * symbols.c (report_op_error): New function, broken out of ...
2417 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2420 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2422 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2423 for BFD_RELOC_32_PLT_PCREL.
2425 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2427 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2428 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2429 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2430 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2431 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2432 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2433 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2434 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2435 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2436 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2437 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2438 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2439 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2440 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2441 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2442 TRUE/FALSE. Formatting.
2444 2002-11-29 Nick Clifton <nickc@redhat.com>
2446 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2447 assume a value of zero.
2448 (do_bkpt): Likewise.
2450 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2452 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2453 for TLS relocations.
2455 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2457 * config/tc-ia64.c (md_apply_fix3): Add default case.
2459 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2461 * symbols.c (S_SET_THREAD_LOCAL): New function.
2462 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2463 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2464 for TLS relocations.
2465 * config/tc-ia64.c (md_apply_fix3): Likewise.
2466 * config/tc-alpha.c (md_apply_fix3): Likewise.
2468 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2470 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2473 2002-11-26 DJ Delorie <dj@redhat.com.
2475 * dwarf2dbg.c (scale_addr_delta): New.
2476 (size_inc_line_addr): Use it.
2477 (emit_inc_line_addr): Use it.
2479 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2481 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2482 (md_assemble): Don't pass on branches to constants as relaxable.
2485 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2487 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2489 2002-11-21 Randolph Chung <randolph@tausq.org>
2491 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2492 only if they have default visibility.
2494 2002-11-21 Richard Henderson <rth@redhat.com>
2496 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2499 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2501 * config/tc-mcore.c (mcore_pool_count): New function.
2502 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2504 2002-11-20 Klee Dienes <kdienes@apple.com>
2506 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2507 coalesce the name fields to use the same pointer.
2509 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2510 the name fields to use the same pointer.
2511 (get_specific): Check for opcodes with the same name using strcmp
2512 as well as comparing the pointer.
2514 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2516 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2519 2002-11-19 Richard Henderson <rth@redhat.com>
2521 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2522 visibility portion of st_other.
2524 2002-11-19 Klee Dienes <kdienes@apple.com>
2526 * config/tc-h8300.c (struct h8_instruction): New type, used to
2527 wrap h8_opcodes with length, noperands, idx, and size fields
2528 (computed at run-time).
2529 (h8_instructions): New variable.
2530 (md_begin): Allocate the storage for h8_instructions. Fill
2531 h8_instructions with pointers to the appropriate opcode and the
2532 correct value for the additional fields.
2533 (clever_message): Update to use h8_instructions instead of
2535 (build_bytes): Ditto.
2536 (get_specific): Ditto.
2537 (md_assemble): Ditto.
2539 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2541 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2542 adjustments to symbols in merge sections.
2544 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2546 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2548 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2550 * dwarf2dbg.h (dwarf2_format): New enum.
2551 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2552 (out_debug_line, out_debug_info): Add code for handling 64-bit
2554 * config/tc-mips.h (mips_dwarf2_format): Declare.
2555 * config/tc-mips.c (mips_dwarf2_format): New function.
2556 * doc/internals.texi (DWARF2_FORMAT): Document.
2558 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2560 * config/tc-mips.c (s_change_section): Make sure input buffer
2561 is not accessed past the end. Don't hand
2562 obj_elf_change_section a pointer into the input buffer.
2564 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2566 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2569 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2571 * config/tc-tic4x.c: Fixed proper commandline
2572 parameters. Added support for new opcode-list format. General
2573 error message fixups.
2574 (c4x_inst_add): Reject insn not for our CPU
2575 (md_begin): Added matrix for setting the proper opcode-level &
2576 device-flags according to cpu type and revision. Rewrite the
2578 (c4x_operand_parse): Fix opcode bug
2579 (c4x_operands_match): New function argument. Added dry-run
2580 mechanism, that is optional error generation. Added constraint 'i'
2582 (c4x_insn_check): Added new function for post-verification of the
2584 (md_assemble): Check all opcodes before croaking because of an
2585 argument mismatch. Need this to be able to fully support
2586 ortogonally arguments.
2587 (md_parse_options): Revised commandprompt swicthes and added new
2589 (md_show_usage): Complete rewrite of printout.
2591 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2593 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2594 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2595 warning when using constant direct bigger than 2^16. Add the new
2598 2002-11-11 Christopher Faylor <cgf@redhat.com>
2600 * configure.in: Use .gdbinit under Cygwin.
2601 * configure: Regenerate.
2603 2002-11-11 Christopher Faylor <cgf@redhat.com>
2605 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2608 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2610 * config/tc-tic4x.c: Declare as many functions as possible as
2611 static. Maintenance on the general indenting. Removed unnecessary
2612 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2613 function. Add support for new DSP, TMS320VC33. Fix bug for
2614 converting flonum constants.
2615 (c4x_do_align): Add proper align handling. Setup align to insert
2617 (c4x_gen_to_words): Support for extended TI type floats.
2618 (md_atof): Proper dumping of multiple-word littlenums.
2619 (c4x_atof): Added support for extended TI type floats.
2620 (c4x_stringer): Added new function to handle compact strings.
2621 (c4x_emit_char): Added new function argument to handle custom
2622 length inserts, like single-byte strings.
2623 * config/tc-tic4x.h: Add proper align handling with NOP's.
2624 * Makefile.am: Added tic4x dependecy
2625 * Makefile.in: Regenerate
2627 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2629 * macro.c (get_any_string): Correct logic for not going beyond end
2632 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2634 * config/tc-mmix.c (get_putget_operands): Mark both possible
2635 operands as invalid at beginning.
2637 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2638 Initialize target of fixup to zero.
2640 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2642 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2643 NEWABI, but we should still emit HI16_S for non-PIC n32.
2645 2002-11-06 Richard Henderson <rth@redhat.com>
2647 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2648 (alpha_fix_adjustable): ... here.
2649 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2651 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2653 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2656 2002-11-05 H.J. Lu <hjl@gnu.org>
2658 * config/tc-mips.c (support_64bit_objects): Check *l before it
2661 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2663 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2664 SEC_LOAD flags for sections marked as 's'.
2666 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2668 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2669 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2670 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2673 * dep-in.sed: Fix typo.
2675 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2677 * configure.in: Update ARM CPU patterns.
2678 * configure: Regenerated.
2680 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2682 * itbl-lex.l: Use #include <> for generated headers.
2683 * itbl-ops.c: Likewise.
2685 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2687 * doc/gasp.texi: Fix typo in deprecation note.
2689 2002-10-23 Nick Clifton <nickc@redhat.com>
2691 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2692 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2694 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2696 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2697 (tc_frob_file_before_adjust): Don't define.
2698 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2700 (mmix_frob_file_before_adjust): Remove ineffective function.
2702 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2704 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2705 (cris_relax_frag): New function.
2706 (md_estimate_size_before_relax) <case ENCODE_RELAX
2707 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2708 expressions that will become absolute expressions to relaxation.
2709 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2710 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2711 value, not distance to symbol.
2712 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2713 Ditto. Correct placement of fixup.
2714 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2716 * config/tc-cris.h (cris_relax_frag): Declare.
2717 (md_relax_frag): Define.
2719 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2721 * config/obj-elf.c (special_sections): Use correct types for init
2723 (obj_elf_change_section): Don't mess with init array section type.
2725 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2727 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2728 for relocs against symbols in a merged section.
2730 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2732 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2733 table as register names.
2735 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2737 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2740 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2742 * expr.c (operand): Add support for n.nn flonums.
2744 2002-10-17 Johannes Stezenbach <js@convergence.de>
2746 * itbl-parse.y (entry): Provide empty action.
2748 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2750 * configure.in (BFDVER_H): Set and subst.
2751 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2752 * Makefile.am: Run "make dep-am".
2754 * configure: Regenerate.
2755 * Makefile.in: Regenerate.
2756 * doc/Makefile.in: Regenerate.
2758 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2760 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2761 (MD_APPLY_SYM_VALUE): Define for PE too.
2763 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2765 * Makefile.am: Run "make dep-am".
2766 (CPU_OBJ_VALID): sh64 coff is invalid.
2767 * as.c: #include "bfdver.h".
2768 * Makefile.in: Regenerate.
2769 * config.in: Regenerate.
2771 2002-10-14 Momchil Velikov <velco@fadata.bg>
2773 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2775 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2777 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2778 * configure: Regenerate.
2780 2002-10-13 Eric Christopher <echristo@redhat.com>
2781 Alexandre Oliva <aoliva@redhat.com>
2783 * config/tc-mips.c (s_gpdword): New function.
2784 (mips_pseudo_table): Add .gpdword.
2785 (mips_need_elf_addend_fixup): never for NEWABI.
2786 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2788 (s_cpadd): Generate .cpadd on NEWABI.
2790 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2792 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2794 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2796 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2797 (md_relax_frag): Adjust macro.
2798 * config/tc-mips.c (mips_relax_branch): New variable.
2799 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2800 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2801 (RELAX_MIPS16_P): Adjust.
2802 (append_insn): Emit branch to non-constant in a frag_var if
2803 branch-relaxation is desirable and possible.
2804 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2805 (OPTION_ELF_BASE): Adjust.
2806 (md_parse_option): Handle new options.
2807 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2809 (relaxed_branch_length): New function.
2810 (md_estimate_size_before_relax): Handle branch frags.
2811 (mips_relax_frag): Likewise.
2812 (md_convert_frag): Handle branch frags. Warn if branch is
2815 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2817 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2819 (md_apply_fix3): Add TLS relocs.
2820 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2823 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2824 Alan Modra <amodra@bigpond.net.au>
2826 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2827 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2829 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2831 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2834 2002-10-09 Richard Shann <richard.shann@superh.com>
2835 Stephen Clarke <stephen.clarke@superh.com>
2837 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2840 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2842 * contig/tc-sh.c (sh_local_pcrel): New.
2843 (sh_force_relocation): Use sh_local_pcrel.
2844 (md_pcrel_from_section): Check the relocation type whether it
2845 should be resolved locally. Use S_FORCE_RELOC.
2847 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2849 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2850 (TC_FORCE_RELOCATION): Tidy arg.
2852 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2853 Ken Raeburn <raeburn@cygnus.com>
2854 Aldy Hernandez <aldyh@redhat.com>
2855 DJ Delorie <dj@redhat.com>
2856 Michael Meissner <meissner@redhat.com>
2857 Eric Christopher <echristo@redhat.com>
2858 Richard Sandiford <rsandifo@redhat.com>
2860 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2861 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2862 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2863 (hilo_interlocks): True for CPU_VR5500.
2864 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2865 (mips_fix_vr4122_bugs): New.
2866 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2867 (mips_emit_delays): Likewise.
2868 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2869 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2870 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2871 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2872 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2873 (OPTION_ELF_BASE): Bump.
2874 (md_parse_option): Handle the new options.
2875 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2878 2002-09-29 H.J. Lu <hjl@gnu.org>
2880 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2881 twice if howto->pcrel_offset is true.
2883 2002-09-28 Matt Thomas <matt@3am-software.com>
2884 Jason Thorpe <thorpej@wasabisystems.com>
2886 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2887 convert undefined references to GOT32/PLT32 if PIC code is
2888 requested. Fix comment.
2890 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2892 * config/tc-sh.c (sh_force_relocation): Return 0 for
2893 some PC relative relocations when not relaxing.
2895 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2897 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2898 Define them if not BFD_ASSEMBLER.
2899 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2901 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2902 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2903 (tc_gen_reloc): Handle x86-64 TLS relocs.
2905 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2907 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2908 fixups to current or absolute section.
2910 2002-09-26 Jim Wilson <wilson@redhat.com>
2912 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2915 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2917 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2918 capable configuration.
2919 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2921 (mips_ip): Likewise.
2923 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2925 * config/tc-mips.c (append_insn): Fix jump overflow check.
2927 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2929 * config/tc-i386.c (process_operands): Warn about "lea" segment
2932 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2934 * write.c: Delete set_segment_vma and prototype. Update all callers.
2936 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2938 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2939 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2940 Rename "fseg" to "sym_seg".
2941 * Makefile.am: Run "make dep-am".
2942 * Makefile.in: Regenerate.
2943 * doc/Makefile.in: Regenerate.
2945 2002-09-20 Nick Clifton <nickc@redhat.com>
2947 * symbols.c (colon): Do not allow symbols to be created in the
2948 absolute section if WORKING_DOT_WORD is not defined and
2949 new_broken_words would require a new frag to be created.
2951 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2953 * expr.c (expr): Simplify foo-foo here.
2954 (clean_up_expression): Remove O_subtract code.
2956 * write.h (struct fix): Add fx_dot_value.
2957 (dot_value): Declare.
2958 * write.c (dot_value): New var.
2959 (fix_new_internal): Save dot_value as fx_dot_value.
2960 (fixup_segment): Adjust fx_offset using fx_dot_value.
2961 * expr.c (expr): Update dot_value.
2963 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2965 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2966 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2967 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2969 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2970 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2971 BFD_RELOC_386_TLS_GOTIE.
2973 2002-09-19 Richard Henderson <rth@redhat.com>
2975 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2977 (alpha_force_relocation): Don't special-case branch type relocs.
2979 2002-09-19 Nick Clifton <nickc@redhat.com>
2981 * config/tc-m68k.c (select_control_regs): Handle situation where
2982 architecture has not yet been selected.
2984 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2986 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2987 (IS_SEXT_16BIT_NUM): New macro.
2988 (macro_build_ldst_constoffset): New function, to build a set of
2989 instructions to do a load or store from a constant offset relative
2990 to a given register.
2991 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2992 .cprestore pseudo-op.
2994 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2996 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2998 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3000 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3002 2002-09-17 Stan Cox <scox@redhat.com>
3004 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3005 (macro): Likewise for la. Likewise for ld.
3006 (mips_after_parse_args): Make -xgot optional, not the default.
3007 (md_apply_fix3): Allow composite relocation to set up gp.
3008 (tc_gen_reloc): Allow relaxing for newabi.
3009 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3010 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3012 2002-09-17 Nick Clifton <nickc@redhat.com>
3014 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3015 BFD_RELOC_ARM_IMMEDIATE has been done.
3016 (tc_gen_reloc): Do not issue reloc number of unimplemented
3017 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3018 their name is already in the error message - plus remove them
3019 from the default case.
3021 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3022 behavior of instructions.
3024 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3026 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3027 Convert functions to K&R format.
3029 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3031 * config/tc-mips.c (pdr_seg): Define only for ELF.
3032 (s_change_section): Remove unused variable. Don't use for nonELF.
3034 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3036 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3038 * config/obj-elf.h (obj_elf_change_section): Likewise.
3040 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3042 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3043 (out_debug_info): Likewise.
3045 2002-09-16 Bruno Haible <bruno@clisp.org>
3047 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3048 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3049 * config/tc-i386.c (i386_target_format): Likewise.
3050 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3051 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3053 2002-09-13 Nick Clifton <nickc@redhat.com>
3055 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3056 when deciding if any operands have been skipped.
3058 2002-09-11 Nick Clifton <nickc@redhat.com>
3060 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3062 * po/tr.po: Updated Turkish translation.
3064 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3066 * config/tc-i386.c (md_apply_fix3): Allow addend for
3067 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3068 BFD_RELOC_386_TLS_LE_32.
3070 2002-09-05 Jeff Law <law@redhat.com>
3072 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3073 marker relocations such as ENTRY/EXIT.
3074 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3075 to both OBJ_ELF and OBJ_SOM.
3077 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3079 * doc/internals.texi (md_apply_fix3): Expand.
3080 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3081 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3082 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3083 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3084 EXTERN_FORCE_RELOC): Document.
3085 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3086 * as.h: Don't include struc-symbol.h for arc.
3088 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3089 subtract absolute symbol.
3090 * obj.h (struct format_ops): Add frob_file_before_fix.
3091 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3092 * symbols.c (S_FORCE_RELOC): New function.
3093 * symbols.h (S_FORCE_RELOC): Declare.
3094 * write.c (TC_FORCE_RELOCATION): Change default.
3095 (TC_FORCE_RELOCATION_ABS): Define.
3096 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3097 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3098 (TC_FORCE_RELOCATION_SECTION): Don't define.
3099 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3100 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3101 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3102 (TC_VALIDATE_FIX_SUB): Define.
3103 (TC_FIX_ADJUSTABLE): Don't define.
3104 (MD_APPLY_SYM_VALUE): Define this instead.
3105 (abs_section_sym): New variable.
3106 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3107 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3108 Don't put the absolute section sym on fixups here.
3109 (fix_segment): New function.
3110 (write_relocs): Don't call fixup_segment from here.
3111 (write_object_file): Instead call tc_frob_file_before_fix,
3112 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3113 Don't output the absolute section symbol.
3114 (fixup_segment): Rewrite.
3115 * write.h (abs_section_sym): Declare.
3116 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3118 (aout_format_ops): Adjust to suit.
3119 * config/obj-aout.h (obj_frob_file): Don't define.
3120 (obj_frob_file_before_fix): Define.
3121 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3122 (S_FORCE_RELOC): Define.
3123 * config/obj-bout.h (S_FORCE_RELOC): Define.
3124 * config/obj-coff.c (coff_format_ops): Init new field.
3125 * config/obj-coff.h: Formatting fixes.
3126 (obj_sec_sym_ok_for_reloc): Define.
3127 (S_FORCE_RELOC): Define.
3128 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3129 (ecoff_frob_file): .. from here.
3130 (ecoff_format_ops): Add new function.
3131 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3132 (obj_frob_file_before_fix): Define.
3133 * config/obj-elf.c (elf_format_ops): Init new field.
3134 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3135 * config/obj-ieee.h: Formatting fixes.
3136 (S_FORCE_RELOC): Define.
3137 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3138 * config/obj-vms.h (S_FORCE_RELOC): Define.
3139 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3140 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3141 for BFD_RELOC_32 and BFD_RELOC_64.
3142 (alpha_fix_adjustable): Remove extern and weak tests.
3143 (alpha_before_fix): Rename from alpha_adjust_symtab.
3144 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3145 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3146 (TC_VALIDATE_FIX): Tweak param name.
3147 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3148 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3149 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3150 (MD_APPLY_SYM_VALUE): Define.
3151 (tc_adjust_symtab): Don't define.
3152 (alpha_adjust_symtab): Don't declare.
3153 (tc_frob_file_before_fix): Define.
3154 (alpha_before_fix): Declare.
3155 (TC_INIT_FIX_DATA): Tweak param names.
3156 * config/tc-arc.c: Include "struc-symbol.h".
3157 (md_pcrel_from): Remove undefined sym fudge.
3158 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3159 Don't set fx_addnumber.
3160 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3161 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3162 (EXTERN_FORCE_RELOC): Define.
3163 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3164 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3165 (arm_validate_fix): Return void.
3166 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3167 Add plt and got reloc tests.
3168 (arm_force_relocation): Call S_FORCE_RELOC.
3169 * config/tc-arm.h (struct fix): Forward declare.
3170 (TC_VALIDATE_FIX): No longer set add_symbolP.
3171 (arm_validate_fix): Adjust declaration.
3172 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3173 (TC_FORCE_RELOCATION): Tweak param name.
3174 (TC_INIT_FIX_DATA): Likewise.
3175 (obj_fix_adjustable): Don't define.
3176 (tc_fix_adjustable): Call arm_fix_adjustable.
3177 (TC_FIX_ADJUSTABLE): Don't define.
3178 (MD_APPLY_SYM_VALUE): Define.
3179 (EXTERN_FORCE_RELOC): Define.
3180 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3181 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3182 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3183 Remove *valP fudges and code to subtract abs sym. Don't set
3185 * config/tc-avr.h: Formatting.
3186 (EXTERN_FORCE_RELOC): Define.
3187 (MD_APPLY_SYM_VALUE): Define.
3188 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3189 (md_apply_fix3): Remove code to subtract abs sym.
3190 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3191 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3192 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3193 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3194 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3195 (tc_fix_adjustable): Remove extern, weak tests.
3196 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3197 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3198 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3199 and code to subtract abs sym.
3200 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3201 (d10v_force_relocation): Call S_FORCE_RELOC.
3202 * config/tc-d10v.h: Don't include write.h.
3203 (struct fix): Instead, forward declare.
3204 (MD_PCREL_FROM_SECTION): Tweak param names.
3205 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3206 (d10v_fix_adjustable): Likewise.
3207 (obj_fix_adjustable): Don't define.
3208 (tc_fix_adjustable): Define.
3209 (TC_FORCE_RELOCATION): Tweak param name.
3210 (MD_APPLY_SYM_VALUE): Define.
3211 (EXTERN_FORCE_RELOC): Define.
3212 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3213 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3214 and code to subtract abs sym.
3215 * config/tc-d30v.h: Don't include write.h.
3216 (struct fix): Instead, forward declare.
3217 (MD_PCREL_FROM_SECTION): Tweak param names.
3218 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3219 (MD_APPLY_SYM_VALUE): Define.
3220 (EXTERN_FORCE_RELOC): Define.
3221 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3222 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3223 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3224 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3225 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3226 Don't use fx_addnumber.
3227 * config/tc-dlx.h: Don't include write.h.
3228 (md_convert_frag): We're not alpha twice over.
3229 (EXTERN_FORCE_RELOC): Define.
3230 (obj_fix_adjustable): Don't define.
3231 (tc_fix_adjustable): Define.
3232 (TC_FIX_ADJUSTABLE): Don't define.
3233 (MD_APPLY_SYM_VALUE): Define.
3234 (LOCAL_LABELS_DOLLAR): Undef always.
3235 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3236 (fr30_fix_adjustable): Remove extern, weak tests.
3237 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3238 (obj_fix_adjustable): Don't define.
3239 (tc_fix_adjustable): Define.
3240 (struct fix): Forward declare.
3241 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3242 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3243 (frv_fix_adjustable): Don't do extern, weak tests.
3244 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3245 (TC_FIX_ADJUSTABLE): Don't define.
3246 (obj_fix_adjustable): Don't define.
3247 (tc_fix_adjustable): Define.
3248 (struct fix): Forward declare.
3249 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3250 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3251 * config/tc-h8300.h (struct fix): Forward declare.
3252 (EXTERN_FORCE_RELOC): Define.
3253 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3254 (hppa_fix_adjustable): Don't test extern or weak. Don't
3255 symbol_mark_used_in_reloc.
3256 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3258 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3259 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3260 (TC_FORCE_RELOCATION_SECTION): Don't define.
3261 (MD_APPLY_SYM_VALUE): Define.
3262 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3263 to subtract abs sym.
3264 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3265 (MD_APPLY_SYM_VALUE): Define.
3266 (MD_PCREL_FROM_SECTION): Tweak param name.
3267 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3268 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3269 (i386_force_relocation): New function.
3270 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3271 (TC_VALIDATE_FIX): Likewise.
3272 (TC_FIX_ADJUSTABLE): Don't define.
3273 (MD_APPLY_SYM_VALUE): Define.
3274 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3275 (i386_force_relocation): Declare.
3276 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3277 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3278 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3279 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3280 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3281 (EXTERN_FORCE_RELOC): Define.
3282 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3283 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3284 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3285 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3286 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3287 Remove #if 0 code. Invert return boolean.
3288 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3289 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3290 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3291 (tc_coff_sizemachdep): Prototype.
3292 (i960_handle_align): Likewise.
3293 (i960_validate_fix): Adjust declaration.
3294 (reloc_callj): Likewise.
3295 (EXTERN_FORCE_RELOC): Define.
3296 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3297 (TC_FORCE_RELOCATION_ABS): Define.
3298 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3299 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3300 (TC_FIX_ADJUSTABLE): Don't define.
3301 (MD_APPLY_SYM_VALUE): Define.
3302 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3303 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3304 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3305 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3306 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3307 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3308 (MD_APPLY_SYM_VALUE): Define.
3309 (EXTERN_FORCE_RELOC): Define.
3310 (TC_FORCE_RELOCATION): Tweak param name.
3311 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3312 (m32r_fix_adjustable): Don't test extern, weak.
3313 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3314 (MD_APPLY_SYM_VALUE): Define.
3315 (obj_fix_adjustable): Don't define.
3316 (tc_fix_adjustable): Define.
3317 (tc_frob_file): Don't define.
3318 (tc_frob_file_before_fix): Define.
3319 (EXTERN_FORCE_RELOC): Define.
3320 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3321 BFD_RELOC_VTABLE_ENTRY address.
3322 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3323 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3324 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3325 Remove duplicated fx_done code.
3326 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3327 (EXTERN_FORCE_RELOC): Define.
3328 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3330 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3331 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3332 (TC_FIX_ADJUSTABLE): Don't define.
3333 (EXTERN_FORCE_RELOC): Define.
3334 (MD_APPLY_SYM_VALUE): Define.
3335 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3336 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3337 Remove fx_addsy tests.
3338 (mcore_force_relocation): Call S_FORCE_RELOC.
3339 (mcore_fix_adjustable): Don't test fx_addsy.
3340 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3341 (EXTERN_FORCE_RELOC): Define.
3342 (obj_fix_adjustable): Don't define.
3343 (tc_fix_adjustable): Define.
3344 (MD_APPLY_SYM_VALUE): Define.
3345 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3346 (mips_pic): No longer static.
3347 (mips_force_relocation): Call S_FORCE_RELOC.
3348 (mips_fix_adjustable): Remove extern, weak tests.
3349 * config/tc-mips.h (enum mips_pic_level): Declare.
3350 (mips_pic): Declare.
3351 (tc_frob_file): Don't define.
3352 (tc_frob_file_before_fix): Define this instead.
3353 (EXTERN_FORCE_RELOC): Define.
3354 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3355 with reg_section tests. Set fx_done instead of calling
3356 symbol_clear_used_in_reloc on bad relocs.
3357 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3358 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3359 (mmix_adjust_symtab): Simplify list handling. Abort on any
3361 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3362 BFD_RELOC_MMIX_LOCAL.
3363 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3364 (EXTERN_FORCE_RELOC): Define.
3365 (MD_PCREL_FROM_SECTION): Tweak param name.
3366 (tc_frob_file): Don't define.
3367 (tc_frob_file_before_fix): Define this instead.
3368 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3369 Remove SEC_CODE checks.
3370 (mn10300_fix_adjustable): Remove extern and weak tests.
3371 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3372 (TC_FORCE_RELOCATION): Tweak param name.
3373 (obj_fix_adjustable): Don't define.
3374 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3375 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3376 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3377 (openrisc_fix_adjustable): Don't test fx_addsy.
3378 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3379 (obj_fix_adjustable): Don't define.
3380 (tc_fix_adjustable): Define this instead.
3381 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3382 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3383 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3384 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3385 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3386 (MD_APPLY_SYM_VALUE): Define.
3387 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3388 Don't subtract symbol value.
3389 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3390 (EXTERN_FORCE_RELOC): Define.
3391 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3392 (MD_APPLY_SYM_VALUE): Define.
3393 (obj_fix_adjustable): Don't define.
3394 (tc_fix_adjustable): Define this instead.
3395 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3397 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3398 (ppc_force_relocation <elf version>): New.
3399 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3400 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3401 comments. Don't subtract fx_subsy as that is already done.
3402 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3403 (MD_PCREL_FROM_SECTION): Likewise.
3404 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3405 ppc_force_relocation.
3406 (TC_FORCE_RELOCATION_SECTION): Delete.
3407 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3408 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3409 (MD_APPLY_SYM_VALUE): Define.
3410 * config/tc-s390.c: #include "dwarf2dbg.h".
3411 (s390_insn): Remove excess parens.
3412 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3413 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3414 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3415 non-NULL. Don't subtract off fx_addsy value.
3416 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3417 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3418 (TC_FIX_ADJUSTABLE): Don't define.
3419 (MD_APPLY_SYM_VALUE): Define.
3420 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3421 (SWITCH_TABLE): Likewise.
3422 (sh_force_relocation): Call S_FORCE_RELOC.
3423 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3424 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3425 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3426 fx_addnumber is zero on entry. Save val in fx_addnumber.
3427 (tc_gen_reloc): Don't subtract fx_subsy.
3428 * config/tc-sh.h (struct fix): Move.
3429 (obj_fix_adjustable): Don't define.
3430 (tc_fix_adjustable): Define this instead.
3431 (TC_FIX_ADJUSTABLE): Don't define.
3432 (MD_APPLY_SYM_VALUE): Define.
3433 (SWITCH_TABLE_CONS): Define.
3434 (SWITCH_TABLE): Define.
3435 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3436 (TC_VALIDATE_FIX_SUB): Define.
3437 (MD_PCREL_FROM_SECTION): Tweak param name.
3438 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3439 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3440 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3441 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3442 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3443 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3444 (TC_VALIDATE_FIX_SUB): Define.
3445 (MD_PCREL_FROM_SECTION): Tweak param name.
3446 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3447 (tc_gen_reloc): Use S_FORCE_RELOC.
3448 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3449 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3450 (TC_FORCE_RELOCATION_ABS): Define this instead.
3451 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3452 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3453 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3454 (MD_APPLY_SYM_VALUE): Define.
3455 (TC_FIX_DATA_PRINT): Tweak param name.
3456 * config/tc-tic30.c (USE_STDOUT): Don't define.
3457 (md_parse_option): Remove stupid debug code.
3458 (tc_gen_reloc): Don't use fx_addnumber.
3459 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3460 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3461 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3462 (tc_fix_adjustable): Define this instead.
3463 (TC_FIX_ADJUSTABLE): Don't define.
3464 (MD_APPLY_SYM_VALUE): Define this instead.
3465 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3466 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3467 (TC_FIX_ADJUSTABLE): Don't define.
3468 (MD_APPLY_SYM_VALUE): Define this instead.
3469 (tc_fix_adjustable): Remove extern and weak tests.
3470 * config/tc-w65.h (struct fix): Forward declare.
3471 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3473 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3474 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3475 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3477 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3478 (MD_APPLY_SYM_VALUE): Define.
3479 (obj_fix_adjustable): Don't define.
3480 (tc_fix_adjustable): Define this instead.
3481 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3483 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3485 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3486 (ppc_fix_adjustable <coff version>): Cleanup.
3488 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3489 (md_parse_option): No -a64 without BFD64.
3490 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3491 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3493 2002-09-04 Nick Clifton <nickc@redhat.com>
3495 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3496 instructions into the hash table if the target cpu is the BookE32.
3498 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3500 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3503 2000-08-28 Catherine Moore <clm@redhat.com>
3505 * tc-v850.c (v850_relax): Declare.
3506 (v850_longcode): New routine.
3507 (v850_handle_align): New routine.
3508 (md_pseudo_table): Add longcall and longjump.
3509 (md_parse_option): Check for relax option.
3510 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3511 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3512 (md_apply_fix3): Likewise.
3513 (v850_force_relocation): Likewise.
3514 (v850_comm): Change the current section.
3515 (md_assemble): Ensure that the correct value is put in the
3517 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3518 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3519 Remove redundant v850ea support.
3520 * tc-v850.h (HANDLE_ALIGN): Define.
3521 (v850_handle_align): Declare.
3522 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3524 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3526 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3527 * configure: Regenerate.
3528 * NEWS: Mention new port.
3530 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3532 * config/obj-coff.c: Add sdef definition.
3533 * config/obj-coff.h: Add tic4x include file and set
3535 * config/tc-tic4x.c: New file.
3536 * config/tc-tic4x.h: New file.
3538 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3540 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3541 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3542 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3543 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3544 (RELOC_ENUM): Define.
3545 (fix_new_internal): Use RELOC_ENUM.
3546 (fix_new, fix_new_exp): Likewise.
3547 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3548 Replace gotos with continue.
3549 (write_relocs): Formatting. Avoid symbol loops in
3550 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3551 errors, and error number in other cases.
3552 (fixup_segment): Remove param names from prototype. Rename
3553 "this_segment_type" to "this_segment". Update linkrelax comment.
3554 Remove "size, "place" and "where" local vars. Formatting. Update
3555 "no symbol" comment. Remove #if 0 and #if 1.
3557 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3559 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3561 * dwarf2dbg.c: Always include dwarf2dbg.h.
3562 (dwarf2_directive_file): Adjust dummy version args.
3563 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3564 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3565 when symbol values differ.
3566 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3567 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3568 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3570 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3572 * config/tc-w65.c (md_section_align): Fix typo.
3573 (md_parse_option): Return 0, not 1.
3575 2002-08-22 Nick Clifton <nickc@redhat.com>
3577 * doc/as.texinfo (Section): Note that if '@' is a comment
3578 character then another symbol is used to prefix the section's
3581 2002-08-22 Christian Groessler <chris@groessler.org>
3583 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3586 2002-08-12 Graeme Peterson <gp@qnx.com>
3588 * configure.in: Add support for sh-**-nto* target.
3589 * configure: Regenerate.
3591 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3593 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3595 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3597 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3599 (ppc_apuinfo_section_add): Define only if format is ELF.
3600 (md_assemble): Emit APUinfo section only if format is ELF.
3603 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3605 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3606 * config/tc-frv.c: Likewise.
3607 * config/tc-hppa.c: Likewise.
3608 * config/tc-ia64.c: Likewise.
3609 * config/tc-ip2k.c: Likewise.
3610 * config/tc-m68hc11.c: Likewise.
3611 * config/tc-m68k.c: Likewise.
3612 * config/tc-mmix.c: Likewise.
3613 * config/tc-mn10300.c: Likewise.
3614 * config/tc-sh.c: Likewise.
3615 * config/tc-sparc.c: Likewise.
3616 * config/tc-v850.c: Likewise.
3618 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3620 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3623 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3625 From matthew green <mrg@redhat.com>
3627 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3628 PPC_OPCODE_PPC is, except for BookE architectures.
3629 (md_parse_option): Add support for -mspe.
3630 (md_show_usage): Add -mspe.
3631 (md_parse_option): Add support for -me500 and
3632 -me500x2 to generate code for Motorola e500 core complex.
3633 (md_show_usage): Add -me500 and -me500x2.
3635 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3636 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3637 PPC_APUINFO_BRLOCK): New macros.
3639 (ppc_cleanup): New function.
3640 (ppc_apuinfo_section_add): New function.
3642 (md_assemble): Collect info and write the APUinfo section.
3644 * config/tc-ppc.h (md_cleanup): Define.
3645 (ppc_cleanup): Export.
3646 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3648 2002-08-17 Stan Cox <scox@redhat.com>
3650 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3651 config/tc-mips.c (s_change_section): New function to support
3652 IRIX .section pseudo-op.
3654 2002-08-16 Nick Clifton <nickc@redhat.com>
3656 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3658 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3660 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3661 the fix-up against on the right frag.
3662 (s_cpsetup): Likewise. Parse third argument as expression, to
3663 handle global symbols and forward/backward labels correctly.
3665 2002-08-14 Nick Clifton <nickc@redhat.com>
3667 * read.c (stringer): Catch attempts to create strings in the abs
3670 * config/tc-alpha.c: Fix compiling for COFF targets.
3671 Some minor formatting tidyups.
3673 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3675 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3676 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3677 according to the reloc.
3678 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3679 (TC_FORCE_RELOCATION): Define.
3680 (tc_m68hc11_force_relocation): Declare.
3682 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3683 (s_m68hc11_relax): New function for relax group.
3684 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3685 beginning of jump instruction.
3686 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3687 address computation.
3688 (tc-gen_reloc): Update.
3689 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3691 (tc_m68hc11_force_relocation): New function, handle new relocs.
3692 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3693 reloc for the linker relax pass.
3694 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3697 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3699 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3700 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3701 (s_m68hc11_mode): New function for .mode pseudo op.
3702 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3704 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3705 (m68hc11_elf_final_processing): Declare.
3707 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3709 * config/tc-m68hc11.c (md_begin): Take into account additional
3710 page operand for call instruction.
3711 (print_opcode_format): Likewise.
3712 (check_range): Likewise for page range checking.
3713 (get_operand): Don't skip a possible comma in operands.
3714 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3715 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3716 (fixup24): New to handle call reloc.
3717 (build_insn): Handle missing page operand for call instruction.
3719 (md_apply_fix3): Take into account new relocs.
3720 (get_operand): Fix the mode for indexed indirect addressing.
3721 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3723 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3725 * config/tc-mips.c (mips_ip): Don't work out the value of
3726 constant %hi()s here.
3728 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3730 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3731 for ELF, and don't bother checking ELF relocs when non-ELF.
3732 (i386_immediate): Allow absolute_section expressions for aout.
3733 (i386_displacement): Likewise. Also test bfd_is_com_section.
3734 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3735 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3736 not when fx_addsy. Remove dead code.
3738 2002-08-09 Graeme Peterson <gp@qnx.com>
3740 * configure.in: Add support for ppc-*-nto* target.
3741 * configure: Regenerate.
3743 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3745 * config/tc-i386.h: Reorganize.
3747 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3749 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3750 immediate offset in "dla" and "la" expansions.
3752 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3754 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3755 Remove "bfd_gas=yes" from target table when covered later.
3756 Consolidate some entries.
3757 * configure: Regenerate
3759 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3761 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3762 at start of insn, pass it to output_disp and output_imm.
3763 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3764 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3766 (output_imm): Added arguments. Compute properly addend for
3768 (md_apply_fix3): Remove R_386_GOTPC handling.
3770 2002-08-06 George France <france@handhelds.org>
3772 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3773 and m21264b processor names and cpu types.
3774 * doc/c-alpha.texi: Documented new types.
3776 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3778 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3780 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3782 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3783 handling to BFD_RELOC_MIPS16_GPREL.
3785 2002-08-01 Nick Clifton <nickc@redhat.com>
3787 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3788 pool is computed using signed arithmetic so that proper sign
3789 extension is performed if X_add_number is a 64-bit integer.
3791 2002-08-01 H.J. Lu <hjl@gnu.org>
3792 Daniel Jacobowitz <drow@mvista.com>
3794 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3795 .debug_line section unless it has line information.
3797 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3799 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3800 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3801 Allow default displacement size to be an option "--disp-size-default".
3802 (md_number_to_disp): Make error messages include value. Use %d to
3803 print integers, not %s.
3804 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3805 get duplicate messages sometimes.
3806 (convert_iif): Grow frag to max possible instruction size. Avoid
3807 creating unnecessary fixes.
3808 (md_number_to_field) Add prototype.
3809 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3810 prototypes and make static.
3811 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3812 (evaluate_expr): Use resultP argument instead of exprP global.
3813 (get_addr_mode): Quiten compiler warnings.
3814 (encode_operand): eliminate unused variables. Quiten compiler
3815 warnings. Eliminate nul character in format strings.
3816 (parse): argc is unsigned.
3817 (reloc): Type cast index to quieten compiler.
3818 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3819 (md_convert_frag): Note unused parameters. Remove unused
3821 (md_create_long_jump, md_create_short_jump,
3822 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3825 2002-07-31 Nick Clifton <nickc@redhat.com>
3827 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3828 of the PDP-11 and 2.11BSD a.out support.
3830 2002-07-31 Momchil Velikov <velco@fadata.bg>
3832 * config/tc-v850.c (md_assemble): Fix range check for immediate
3835 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3837 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3838 to Broadcom SB-1 core support.
3840 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3842 * config/tc-mips.c (mips_target_format): Fix formatting.
3843 Add recognition of n32 ABI formats.
3845 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3847 * tc-mips.c (load_address): Don't clobber $at when loading a
3848 64-bit address in non-PIC code if noat is in effect.
3851 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3853 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3854 used in division/multiply macro expansions similarly to how they
3855 are used in the variants with break instructions.
3858 2002-07-30 Graeme Peterson <gp@qnx.com>
3860 * configure.in: Add support for arm-*-nto target.
3861 * configure: Regenerate.
3863 2002-07-30 Nick Clifton <nickc@redhat.com>
3865 * config/tc-arm.c (struct literal_pool): Add fields to allow
3866 multiple literal pools to be maintained.
3867 (find_literal_pool): New function.
3868 (find_or_make_literal_pool): New function.
3869 (add_to_literal_pool): Use find_or_make_literal_pool.
3870 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3872 (s_ltorg): Use find_literal_pool.
3873 (arm_cleanup): Dump all literal pools.
3874 * doc/c-arm.texi: Document new behaviour of only dumping literal
3877 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3879 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3880 rather than PPC_OPCODE_32 for powerpc64*.
3882 2002-07-25 Nick Clifton <nickc@redhat.com>
3884 * po/es.po: Updated Spanish translation.
3885 * po/fr.po: Updated French translation.
3887 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3889 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3890 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3891 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3892 * configure, config.in: Regenerate.
3893 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3894 (mips_set_options): Remove "abi" field.
3895 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3898 (mips_arch_string, mips_arch_info): New vars.
3899 (mips_tune_string, mips_tune_info): New vars.
3900 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3901 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3902 (mips_isa_to_str, mips_cpu_to_str): Remove.
3903 (mips_ip): If the selected architecture is a generic ISA rather
3904 than a processor, only mention the ISA level in error messages.
3905 (OPTION_MCPU): Remove.
3907 (md_longopts): Add -mfp64, remove -mcpu.
3908 (mips_set_option_string): New fn.
3909 (md_parse_option): Make -mipsN update file_mips_isa rather than
3910 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3911 Don't let -mgp32 and -mfp32 change the ABI.
3912 (show): Move to end of file. Constify string argument.
3913 (md_show_usage): Move to the end of the file. Read available
3914 architectures from mips_cpu_info_table.
3915 (mips_set_architecture): New fn.
3916 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3917 is an alias for -march=mipsN. Don't change the ABI based on other
3918 flags. Infer the register size from the ABI as well as the
3919 architecture. Complain about more conflicting arguments.
3920 Unify logic with GCC.
3921 (s_mipsset): Don't change the ABI.
3922 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3923 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3924 "mipsN"-type entries. Remove entries that vary only in the
3925 manufacturer's prefix, or that have "000" replaced by "k".
3926 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3927 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3928 (mips_parse_cpu): New fn.
3929 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3930 (mips_cpu_info_from_isa): Minor formatting tweak.
3932 2002-07-24 Nick Clifton <nickc@redhat.com>
3934 * po/sv.po: Updated Swedish translation.
3935 * po/es.po: Updated Spanish translation.
3937 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3939 * Makefile.am: Run "make dep-am".
3940 * Makefile.in: Regenerate.
3941 * doc/Makefile.in: Regenerate.
3942 * config.in: Regenerate.
3943 * po/POTFILES.in: Regenerate.
3945 2002-07-23 Nick Clifton <nickc@redhat.com>
3947 * po/fr.po: Updated French translation.
3949 2002-07-23 Nick Clifton <nickc@redhat.com>
3951 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3954 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3956 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3957 instead of S_IS_EXTERN.
3958 (md_estimate_size_before_relax): Likewise.
3959 (mips_fix_adjustable): Likewise.
3961 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3963 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3965 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3966 Nick Clifton <nickc@redhat.com>
3968 * cond.c (s_ifdef): Treat a referenced but not yet defined
3969 symbol as if it were undefined, in exactly the same way as
3972 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3973 consider referenced bug not yet defined symbols to be
3976 2002-07-18 Denis Chertykov <denisc@overta.ru>
3977 Frank Ch. Eigler <fche@redhat.com>
3978 Alan Lehotsky <alehotsky@cygnus.com>
3979 John Healy <jhealy@redhat.com>
3980 Jeff Johnston <jjohnstn@redhat.com>
3982 * configure.in: Add ip2k configuraton.
3983 * configure: Regenerate.
3984 * Makefile.am: Add ip2k configuraton.
3985 * Makefile.in: Regenerate.
3986 * configure: Regenerate.
3987 * Makefile.in: Regenerate.
3988 * config/tc-ip2k.c: New file.
3989 * config/tc-ip2k.h: New files.
3990 * NEWS: Mention new support.
3991 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3992 * doc/Makefile.in: Regenerate.
3993 * doc/all.texi: Set IP2K
3994 * doc/as.texinfo: Add IP2K description.
3995 * doc/c-ip2k.texi: New file.
3997 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3999 * NEWS: Reformat to match style of other NEWS files.
4001 2002-07-17 Jan Hubicka <jh@suse.cz>
4003 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4005 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4007 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4009 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4011 * NEWS: Add 'Changes in 2.13'.
4013 2002-07-15 Matt Fredette <fredette@netbsd.org>
4015 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4017 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4019 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4020 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4023 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4025 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4026 (ppc_frob_file_before_adjust): New function.
4027 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4028 (ppc_elf_frob_symbol): Don't declare.
4029 (tc_frob_file_before_adjust): Define.
4030 (ppc_frob_file_before_adjust): Declare.
4032 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4033 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4036 (ppc_xcoff64): Rename to ppc_obj64.
4037 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4038 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4039 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4041 (ppc_target_format): Use ppc_obj64 to select format.
4042 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4043 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4044 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4045 (tc_frob_symbol): Likewise.
4046 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4047 BFD_DEFAULT_TARGET_SIZE.
4049 (ppc_is_toc_sym): Likewise.
4050 (md_apply_fix3): Likewise.
4051 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4052 BFD_DEFAULT_TARGET_SIZE.
4053 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4054 (tc_frob_symbol): Likewise.
4056 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4058 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4059 (mips_ip): Likewise.
4061 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4063 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4064 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4065 (md_apply_fix3): Formatting. Remove redundant test.
4066 (tc_gen_reloc): Remove redundant code.
4067 (tc_i386_force_relocation): Delete. Movy body of function to..
4068 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4070 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4072 * configure.in: Add hppa-*-openbsd* target, change
4073 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4075 * configure: Regenerate.
4077 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4079 * config/tc-mips.c (macro): Shift the 32-bit address range
4080 accessible with a lone "lui" down by 32768.
4082 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4084 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4085 instead of "dadd" in address calculations.
4088 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4090 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4092 (md_assemble): Instead, zap the suffix here.
4094 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4096 * NEWS: Remove next release number until the release is actually
4099 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4101 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4103 * Makefile.in: Regenerate.
4105 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4107 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4108 to symbols in merge sections, even non pc-relative ones.
4110 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4112 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4114 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4116 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4117 .softregs and .eeprom.
4119 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4121 * NEWS: Note the next release is 2.13.
4123 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4125 * po/tr.po: New translation imported.
4127 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4129 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4130 (ecoff_directive_def): Likewise.
4131 (ecoff_directive_tag): Likewise.
4132 * listing.c (file_info): Likewise.
4133 * hash.c (what): Likewise.
4135 2002-06-25 H.J. Lu <hjl@gnu.org>
4137 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4138 * Makefile.in: Regenerated.
4140 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4142 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4143 (assemble_ppi): Generate warning if the same register is used
4144 twice as destination in the same padd / pmuls instruction.
4146 2002-06-18 Dave Brolley <brolley@redhat.com>
4148 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4149 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4150 * configure.in: Support frv-*-*.
4151 * Makefile.am (CPU_TYPES): Add frv.
4152 (TARGET_CPU_CFILES): Add tc-frv.c.
4153 (TARGET_CPU_HFILES): Add tc-frv.h.
4154 (DEPTC_frv_coff): New variable.
4155 (DEPTC_frv_elf): New variable.
4156 (DEPOBJ_frv_coff): New variable.
4157 (DEPOBJ_frv_elf): New variable.
4158 (DEP_frv_coff): New variable.
4159 (DEP_frv_elf): New variable.
4160 * tc-frv.c: New file.
4161 * tc-frv.h: New file.
4163 2002-06-17 Catherine Moore <clm@redhat.com>
4165 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4167 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4169 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4171 2002-06-17 Tom Rix <trix@redhat.com>
4173 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4175 2002-06-14 H.J. Lu <hjl@gnu.org>
4176 Daniel Jacobowitz <drow@mvista.com>
4178 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4179 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4180 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4181 and new_logical_line for the first .file directive.
4182 * read.c (s_app_file_string): New function.
4183 (s_app_file): Call it.
4184 * read.h (s_app_file_string): Add declaration.
4186 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4188 * configure.in: Remove MIPS_STABS_ELF.
4189 * configure: Regenerated.
4190 * config.in: Regenerated.
4191 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4193 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4195 (pdr_seg): Declare unconditionally.
4196 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4197 (s_mips_end): Likewise. Generate stabs function markers.
4198 (s_mips_ent): Generate stabs function markers.
4199 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4201 (s_mips_mask): Likewise.
4202 (mips_flag_mdebug): New.
4203 (md_longopts): Add "mdebug" and "no-mdebug".
4204 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4205 (mips_after_parse_args): Set mips_flag_mdebug.
4206 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4208 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4210 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4211 value twice for RELA relocations.
4213 2002-06-12 Ben Elliston <bje@redhat.com>
4215 * symbols.c (resolve_symbol_value): Initialise final_val.
4217 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4219 2002-06-11 Tom Rix <trix@redhat.com>
4221 * config/tc-ppc.c (ppc_subseg_align): Delete.
4222 (ppc_change_csect): Default csect align is 2.
4223 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4225 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4227 * config/tc-avr.c (mcu_types): Update.
4229 2002-06-08 Matt Thomas <matt@3am-software.com>
4231 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4232 (vax-*-netbsd*): New targets.
4233 * configure: Regenerate.
4234 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4235 * config/tc-vax.c: Add support for ELF and PIC.
4236 (flag_want_pic): New flag.
4237 (float_cons): Fix prototype.
4238 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4239 (md_assemble): Introduce a new is_absolute local, and use it
4240 rather than repeating the test. Make fatal errors actually
4241 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4242 Add support for ELF. Add support for PIC.
4243 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4244 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4246 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4247 optional for a.out, and not allowed for VMS. Adjust all callers.
4248 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4249 (md_create_long_jump): Likewise.
4250 (md_undefined_symbol): Likewise.
4251 (md_section_align): Likewise.
4252 (md_shortopts): Allow -k and -K for ELF.
4253 (md_parse_option): Set flag_want_pic if -k or -K.
4254 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4255 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4256 * config/tc-vax.h (tc_headers_hook): Remove.
4257 (TARGET_FORMAT): Set according to object format and target
4259 (BFD_ARCH, TARGET_ARCH): Define.
4260 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4261 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4262 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4263 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4265 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4267 * Makefile.am: Run "make dep-am".
4268 * Makefile.in: Regenerate.
4270 * as.c: Replace CONST with const.
4271 * write.c: Likewise.
4272 * config/obj-coff.c: Likewise.
4273 * config/tc-a29k.c: Likewise.
4274 * config/tc-arm.c: Likewise.
4275 * config/tc-dlx.c: Likewise.
4276 * config/tc-h8300.c: Likewise.
4277 * config/tc-h8500.c: Likewise.
4278 * config/tc-i370.c: Likewise.
4279 * config/tc-i860.c: Likewise.
4280 * config/tc-i960.c: Likewise.
4281 * config/tc-m68hc11.c: Likewise.
4282 * config/tc-m68k.c: Likewise.
4283 * config/tc-m88k.c: Likewise.
4284 * config/tc-mcore.c: Likewise.
4285 * config/tc-mips.c: Likewise.
4286 * config/tc-ns32k.c: Likewise.
4287 * config/tc-pdp11.c: Likewise.
4288 * config/tc-pj.c: Likewise.
4289 * config/tc-s390.c: Likewise.
4290 * config/tc-sh.c: Likewise.
4291 * config/tc-sparc.c: Likewise.
4292 * config/tc-tahoe.c: Likewise.
4293 * config/tc-tic80.c: Likewise.
4294 * config/tc-v850.c: Likewise.
4295 * config/tc-vax.c: Likewise.
4296 * config/tc-w65.c: Likewise.
4297 * config/tc-z8k.c: Likewise.
4299 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4301 Based on patch from Matt Green:
4302 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4303 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4304 (s_mips_loc): New function.
4305 (mips_nonecoff_pseudo_table): Call them.
4306 (append_insn): Call dwarf2_emit_insn.
4308 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4310 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4312 (file_ase_mips16): New veriable.
4313 (mips_eabi64): Remove.
4314 (CPU_HAS_MIPS16): New define.
4315 (CPU_HAS_MDMX): Fix data type.
4316 (md_begin): Code cleanup. Use file_ase_mips16.
4317 (mips_elf_final_processing): Handle mips16 header flag.
4318 Handle EABI flag without intermediate variable.
4320 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4322 * doc/as.texinfo: Update MIPS documentation.
4324 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4326 * config/tc-mips.c: Add define for $zero register.
4327 (md_begin): Add $zero as alias name for $0.
4328 (insn_uses_reg): Use ZERO define.
4329 (mips_ip): Add $zero as alias name for $0.
4330 (mips16_ip): Likewise.
4331 (s_cplocal): Demand empty rest of input line.
4332 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4333 names. Use ZERO define. Fix input_line_pointer progress.
4335 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4337 * symbols.c: Replace CONST by const throughout.
4338 (symbol_find_exact): Split out from..
4339 (symbol_find_base): ..here.
4340 * symbols.h: Replace CONST by const throughout.
4341 (symbol_find_exact): Declare.
4342 * config/obj-elf.c: #include "struc-symbol.h".
4343 (elf_frob_file): If group name matches an exported symbol, use that
4344 symbol for the signature and ".group" as the section name.
4346 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4348 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4351 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4353 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4354 and mips_opts.ase_mdmx if they are uninitialized.
4356 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4358 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4359 (hppa_force_relocation): Check if a stub just before the start symbol
4360 of the last call_info is reachable before forcing relocation. Fix
4363 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4365 * config/tc-mips.c (mips_after_parse_args): New function.
4366 (md_begin): Move processing of defaults to mips_after_parse_args.
4367 config/tc-mips.h (md_after_parse_args): Define.
4369 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4371 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4372 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4373 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4374 * configure: Regenerate.
4375 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4378 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4380 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4382 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4384 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4385 linkonce flag. Print all warnings.
4386 (obj_elf_section): Parse ",comdat" for groups.
4387 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4388 consistency of comdat flag.
4390 2002-06-02 Richard Henderson <rth@redhat.com>
4392 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4393 with LITERALs without sequence numbers.
4395 2002-06-01 Richard Henderson <rth@redhat.com>
4397 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4398 Rename them LITUSE_ALPHA_*.
4400 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4402 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4403 accept parentheses enclosed register lists.
4405 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4407 * Makefile.am: Run "make dep-am".
4408 * Makefile.in: Regenerate.
4409 * po/POTFILES.in: Regenerate.
4411 2002-05-31 Graeme Peterson <gp@qnx.com>
4413 * configure.in: Add i386-*-nto-qnx*.
4414 * configure: Regenerate.
4416 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4418 * config/tc-mips.c (mips_ip): Use unsigned long values for
4421 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4423 * config/tc-mips.c (s_cpsetup): Fix initialization of
4424 mips_cpreturn_register and mips_cpreturn_offset.
4426 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4428 * config/tc-mips.c (s_cpsetup): Fix comment.
4430 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4432 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4433 (mips_ip): Likewise.
4434 (mips16_ip): Likewise.
4435 (tc_get_register): Likewise.
4437 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4438 Ed Satterthwaite <ehs@broadcom.com>
4440 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4441 (mips_opts): Initialize "ase_mdmx" member.
4442 (file_ase_mdmx): New variable.
4443 (CPU_HAS_MDMX): New macro.
4444 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4445 based on command line options and configuration defaults.
4446 (macro_build): Note in comment that use of MDMX in macros is
4447 not currently allowed.
4448 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4449 "Z" MDMX operand types.
4450 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4451 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4453 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4454 Add support for "-mdmx" and "-no-mdmx" options.
4455 (OPTION_ELF_BASE): Move to accomodate new options.
4456 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4457 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4458 file_ase_mdmx was set.
4459 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4460 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4463 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4465 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4466 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4467 command line switch conforming to gcc conventions.
4468 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4470 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4472 * config/tc-mips.c (macro_build_jalr): New Function.
4473 (md_begin): NewABI uses big GOTs.
4474 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4475 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4476 (load_address): Add some NewABI PIC support.
4478 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4479 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4481 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4483 * config/tc-mips.c (load_address): Use mips_gp_register instead
4484 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4486 (macro): Use mips_gp_register instead of hardcoded value.
4488 2002-05-30 Richard Henderson <rth@redhat.com>
4490 * expr.h (operatorT): Add O_md17..O_md32.
4491 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4492 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4493 O_tprelhi, O_tprello, O_tprel): New.
4494 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4495 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4496 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4497 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4498 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4499 (md_apply_fix3): Handle TLS relocations.
4500 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4501 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4502 associated TLS reloc. Check lituse_tls relocs match up.
4503 (emit_insn): Handle TLS relocations.
4506 * doc/c-alpha.texi: Add docs for tls relocations.
4508 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4510 * config/tc-mips.c (mips_gprel_offset): New variable.
4511 (s_gpvalue): Use it.
4513 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4515 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4516 write-write conflicts.
4517 (md_assemble): Reformat introductory comment.
4518 (parallel_ok): Prevent packing only if the first
4519 instruction cannot be packed.
4521 2002-05-30 Jason Eckhardt <jle@redhat.com>
4522 Tom Rix <trix@redhat.com>
4524 * config/tc-d10v.c (build_insn): Check for immediates.
4526 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4528 * config/tc-mips.c: Replace GP in comments by $gp.
4529 (mips_big_got): Initialize.
4530 (mips_trap): Initialize.
4531 (load_address): Use mips_gp_register instead of hardcoded value.
4532 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4533 (macro): Use mips_gp_register instead of hardcoded value.
4534 (macro2): Change load_address calls.
4535 (md_pcrel_from): Comment formatting.
4536 (s_cpload): Use mips_gp_register instead of hardcoded value.
4537 (s_cprestore): Likewise. Comment formatting.
4538 (s_gpword): Fix data type.
4539 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4540 (nopic_need_relax): Replace GP in comments by $gp.
4541 (mips_elf_final_processing): Better comment.
4543 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4545 * configure.in: Add DLX configuraton
4546 * Makefile.am: Add DLX configuraton
4547 * configure: Regenerate.
4548 * Makefile.in: Regenerate.
4549 * config/tc-dlx.c: New file.
4550 * config/tc-dlx.h: New files.
4551 * NEWS: Mention new support.
4553 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4555 * config/obj-coff.c (write_object_file): Add missing semicolon.
4557 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4559 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4560 by the define. Remove superfluous check of mips_opts.mips16.
4561 (append_insn): Likewise. Canonicalize variable increments.
4562 (macro_build): Canonicalize variable increments.
4563 (macro_build_lui): Likewise.
4564 (load_register): Likewise.
4565 (load_address): Move pointer initialization.
4566 (macro): Move pointer to a more local scope. Canonicalize variable
4567 increments. Better comments. Replace magic constant for RA by the
4569 (macro2): Replace magic constant for RA by the define. Canonicalize
4570 variable increments.
4571 (mips_ip): Canonicalize variable increments.
4572 (mips16_ip): Replace magic constant for RA by the define.
4573 (my_getSmallParser): Canonicalize variable increments/decrements.
4574 (my_getPercentOp): Likewise.
4575 (my_getSmallExpression): Likewise.
4576 (s_align): Likewise.
4577 (s_mipsset): Likewise.
4578 (s_cpsetup): Likewise.
4579 (s_insn): Remove superfluous check of mips_opts.mips16.
4580 (s_mips_stab): Likewise.
4581 (mips_handle_align): Canonicalize variable increments.
4582 (s_mips_ent): Likewise.
4583 (s_mips_end): Add comment.
4585 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4587 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4588 * configure: Regenerate.
4590 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4592 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4593 * Makefile.in: Regenerate.
4594 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4595 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4596 * configure: Regenerate.
4597 * as.h: Use #include "" instead of <> for local header files.
4598 * flonum-konst.c: Likewise.
4599 * flonum-mult.c: Likewise.
4601 * listing.c: Likewise.
4602 * config/tc-ia64.h: Likewise.
4603 * config/tc-v850.h: Likewise.
4605 2002-05-24 TAMURA Kent <kent@netbsd.org>
4607 * configure.in: Add a target for i386-netbsdpe.
4608 * configure: Regenerate.
4610 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4612 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4613 (obj_elf_common): Call elf_common.
4614 (obj_elf_tls_common): New function.
4615 (elf_pseudo_tab): Support .tls_common.
4616 (special_sections): Add .tdata and .tbss.
4617 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4619 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4620 (obj_elf_parse_section_letters): Include T in error message.
4621 * config/tc-ppc.c (ppc_section_letter): Likewise.
4622 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4623 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4625 * config/tc-sparc.c (md_apply_fix3): Likewise.
4626 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4627 Define them if not BFD_ASSEMBLER.
4628 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4630 (md_apply_fix3): Add TLS relocs.
4631 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4632 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4633 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4634 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4635 (ia64_elf_section_letter): Include T in error message.
4636 (md_begin): Support TLS operators.
4637 (md_operand): Likewise.
4638 (ia64_gen_real_reloc_type): Support TLS relocs.
4639 * write.c (adjust_reloc_syms): Don't change symbols in
4640 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4642 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4644 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4645 round the relocation up rather than down.
4647 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4649 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4651 * doc/as.texinfo: Document that the COFF version of .section
4652 ignores the 'a' flag.
4654 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4656 * config/tc-alpha.c (assemble_tokens): Protect use of
4657 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4659 * write.c (size_seg): Check adjustment to last frag.
4660 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4662 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4663 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4664 (write_object_file): Invoke md_do_align if available, and use
4665 frag_align_code on text sections.
4666 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4667 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4668 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4669 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4670 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4673 2002-05-22 H.J. Lu <hjl@gnu.org>
4675 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4678 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4680 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4683 2002-05-22 H.J. Lu <hjl@gnu.org>
4685 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4686 for one .loc for compiler.
4688 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4690 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4693 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4695 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4696 Optimize the rotate by zero case.
4698 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4700 * configure.in: Remove accidental enabling of bfd_gas=yes for
4702 * configure: Regenerate.
4704 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4706 * app.c: Fix formatting.
4708 * ehopt.c: Likewise.
4710 * input-file.c: Likewise.
4711 * listing.c: Likewise.
4712 * macro.h: Likewise.
4713 * stabs.c: Likewise.
4714 * symbols.c: Likewise.
4716 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4718 * config/obj-generic.c: Delete file.
4719 * config/obj-generic.h: Likewise.
4721 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4723 * config/tc-avr.c (mcu_types): Update for new devices.
4725 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4727 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4729 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4731 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4732 worked sometimes by accident. Fix copy&paste comment.
4734 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4736 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4737 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4738 (mips_elf_final_processing): Let n32 use .reginfo.
4740 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4742 * config/tc-mips.c (append_insn): Fix too small range of variable.
4744 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4746 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4747 listing_prev_line().
4749 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4751 * config/tc-arm.c (md_assemble): Remove redundant call to
4754 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4757 * stabs.c (s_stab_generic): Fix grammatical error in warning
4760 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4762 * write.c (subsegs_finish): Don't specially align last subseg.
4764 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4766 * stabs.c (s_stab_generic): Warn about a description field that is
4769 * config/obj-coff.c: Fix compile time warnings when compiling
4770 without BFD_ASSEMBLER defined.
4773 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4775 (md_pcrel_from_section): Use md_pcrel_from().
4777 2002-05-11 Bruno Haible <bruno@clisp.org>
4779 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4780 by dwarf2_directive_loc, instead of calling dwarf2_where.
4782 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4784 * config/obj-coff.h: Fix formatting.
4785 * config/tc-mcore.c: Likewise.
4786 * config/tc-mn10300.c: Likewise.
4787 * config/tc-openrisc.c: Likewise.
4788 * config/tc-or32.c: Likewise.
4789 * config/tc-pdp11.c: Likewise.
4790 * config/tc-ppc.c: Likewise.
4791 * config/tc-ppc.h: Likewise.
4792 * config/tc-sh64.c: Likewise.
4793 * config/tc-sh.c: Likewise.
4794 * config/tc-tic54x.c: Likewise.
4795 * config/tc-xstormy16.c: Likewise.
4796 * config/tc-xstormy16.h: Likewise.
4798 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4800 * config/obj-coff.c: Fix formatting.
4801 * config/obj-elf.c: Likewise.
4802 * config/tc-alpha.c: Likewise.
4803 * config/tc-arm.c: Likewise.
4804 * config/tc-d10v.c: Likewise.
4805 * config/tc-d30v.c: Likewise.
4806 * config/tc-h8300.c: Likewise.
4807 * config/tc-hppa.c: Likewise.
4809 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4811 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4812 reloc when no_cond_jump_promotion.
4814 2002-05-08 Jim Wilson <wilson@redhat.com>
4816 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4817 current variable part of frag.
4819 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4821 * config/tc-mmix.c: Fix formatting.
4822 * config/tc-mmix.h: Likewise.
4824 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4826 * configure: Regenerate.
4828 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4830 * config/tc-m68k.c: Fix formatting.
4832 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4834 * Makefile.am: Honour DESTDIR.
4835 * Makefile.in: Regenerate.
4837 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4839 * config/tc-ia64.c: Fix formatting.
4840 * config/tc-ia64.h: Likewise.
4842 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4844 * config/tc-mips.c: Fix formatting.
4845 * config/tc-s390.c: Likewise.
4846 * config/tc-s390.h: Likewise.
4848 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4850 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4851 information for instructions.
4853 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4855 * as.h: Fix formatting.
4858 * dwarf2dbg.c: Likewise.
4859 * frags.h: Likewise.
4861 * macro.c: Likewise.
4863 * stabs.c: Likewise.
4864 * symbols.c: Likewise.
4866 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4868 * app.c (mri_pseudo): Only declare for TC_M68K.
4870 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4871 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4872 BFD_RELOC_16_BASEREL.
4873 (md_assemble): Likewise.
4874 (md_apply_fix3): Likewise.
4876 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4878 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4879 zero into an add of zero - it is not the same.
4881 2002-05-01 Arati Dikey <aratid@kpit.com>
4883 * tc-sh.c (get_specific): Generate warning if the same
4884 destination register is used in parallel instructions.
4886 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4888 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4890 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4892 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4893 backwards to prevent cascading errors.
4895 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4897 * configure.in: Add support for powerpc-*-windiss.
4898 * configure: Regenerated.
4900 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4902 * config/tc-s390.c (md_parse_option): Formatting.
4904 * config/tc-i386.c: Formatting fixes, add missing space in error
4907 2002-04-24 Christian Groessler <chris@groessler.org>
4909 * config/tc-z8k.c (build_bytes): Add support for new cases:
4910 CLASS_IGNORE and ARG_NIM4.
4911 (md_assemble): Prevent destruction of input_line_pointer if
4912 get_operands returns failure.
4914 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4916 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4917 instructions to be generated by macros.
4919 2002-04-24 Andreas Schwab <schwab@suse.de>
4921 * config/tc-i386.c (output_jump, output_disp)
4922 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4924 (md_apply_fix3): Remember addend value for rela relocations.
4925 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4927 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4929 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4930 from previous change.
4932 2002-04-22 Eric Christopher <echristo@redhat.com>
4934 * config/tc-mips.c (macro_build): Add warning if macro instructions
4935 are expanded into a branch delay slot.
4937 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4939 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4940 numbers, gdb relies on them to detect the start of the prologue.
4942 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4944 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4945 symbols in merge sections.
4947 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4949 * as.c (main): Don't reference _bfd_chunksize.
4951 2002-04-15 Tom Rix <trix@redhat.com>
4953 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4954 symbols in merge sections.
4956 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4958 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4959 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4960 argument for the precision.
4961 (gen_to_words): Update accordingly.
4963 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4965 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4966 BFD_VERSION_STRING unavailable.
4967 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4969 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4971 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4972 symbol_used_in_reloc_p is true.
4974 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4977 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4979 * dep-in.sed: Cope with absolute paths.
4980 * Makefile.am (dep.sed): Subst TOPDIR.
4982 * Makefile.in: Regenerate.
4984 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4986 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4987 (mips_ip): Remove unused variable.
4988 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4989 unsigned char with bfd_byte.
4990 (s_file): Remove unused variable.
4991 (s_mips_ent): Likewise.
4993 2002-04-03 Tom Rix <trix@redhat.com>
4995 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4997 (find_opcode): Fix warning in as_warn.
4998 * config/tc-d10v.h: Update Copyright.
5000 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5001 Tom Rix <trix@redhat.com>
5003 From Jeff Knaggs <jknaggs@redhat.com>
5004 * config/tc-d10v.c (check_resource_conflict): New function to
5005 check for resource conflicts.
5007 From Jason Eckhardt <jle@redhat.com>
5008 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5010 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5011 reserved control registers is used.
5012 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5015 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5016 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5017 instruction cannot be packed.
5019 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5020 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5021 write-write conflicts.
5022 (md_assemble): Reformat introductory comment.
5023 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5026 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5028 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5029 O_logical_not>): Derive final_seg from add_symbol.
5030 <O_multiply..O_logical_or>: More final_seg twiddles.
5032 2002-04-01 Jessica Han <jessica@cup.hp.com>
5034 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5037 2002-03-27 Andreas Schwab <schwab@suse.de>
5039 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5040 field for pc-relative fixups.
5041 (output_disp): Likewise.
5042 (md_estimate_size_before_relax): Likewise.
5043 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5044 pc-relative fixups in 64bit mode.
5046 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5048 * config/te-aix5.h: Typo fix.
5050 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5052 * Makefile.am: Run "make dep-am".
5053 * Makefile.in: Regenerate.
5054 * doc/Makefile.in: Regenerate.
5056 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5058 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5059 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5061 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5063 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5064 the EXTENDED bit here; report the estimate according to the
5067 2002-03-18 Tom Rix <trix@redhat.com>
5069 * configure.in: Add AIX 5 support.
5070 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5071 * config/te-aix5.h: New file. AIX 5 support.
5072 * configure: Regenerate.
5074 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5076 * po/fr.po: Updated version.
5078 2002-03-16 Andreas Jaeger <aj@suse.de>
5080 * doc/c-mips.texi (Machine Dependencies): Add new node.
5082 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5084 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5085 (mips_opts): Initialize "ase_mips3d" member.
5086 (file_ase_mips3d): New variable.
5087 (CPU_HAS_MIPS3D): New macro.
5088 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5089 based on command line options and configuration defaults.
5090 (macro_build, mips_ip): Accept MIPS-3D instructions if
5091 mips_opts.ase_mips3d is set.
5092 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5093 Add support for "-mips3d" and "-no-mips3d" options.
5094 (OPTION_ELF_BASE): Move to accomodate new options.
5095 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5096 (mips_elf_final_processing): Add a comment indicating that a
5097 MIPS-3D ASE ELF header flag should be set, when one exists.
5098 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5099 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5100 nomips3d" directives.
5102 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5104 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5105 a weak symbol in same section to be within reach.
5107 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5109 * po/fr.po: Updated version.
5111 2002-03-12 Andreas Schwab <schwab@suse.de>
5113 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5114 body record so that an error is given for misplaced .save
5117 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5119 * config/tc-i386.h (REX_OPCODE): Define.
5120 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5121 (rex_byte): typedef to int.
5122 * config/tc-i386.c: Group prototypes and vars together.
5123 Formatting fixes. Remove occurrences of "register" keyword.
5126 (mode_from_disp_size): Add INLINE keyword to prototype.
5127 (fits_in_signed_byte): Likewise.
5128 (fits_in_unsigned_byte): Likewise.
5129 (fits_in_unsigned_word): Likewise.
5130 (fits_in_signed_word): Likewise.
5131 (fits_in_unsigned_long): Likewise.
5132 (fits_in_signed_long): Likewise.
5133 (type_names): Constify.
5134 (intel_float_operand): Constify param.
5135 (add_prefix): Use REX_OPCODE.
5136 (md_assemble): Likewise. Modify for changed rex_byte.
5137 (parse_insn): Split out of md_assemble.
5138 (parse_operands): Likewise.
5139 (swap_operands): Likewise.
5140 (optimize_imm): Likewise.
5141 (optimize_disp): Likewise.
5142 (match_template): Likewise.
5143 (check_string): Likewise.
5144 (process_suffix): Likewise.
5145 (check_byte_reg): Likewise.
5146 (check_long_reg): Likewise.
5147 (check_qword_reg): Likewise.
5148 (check_word_reg): Likewise.
5149 (finalize_imm): Likewise.
5150 (process_operands): Likewise.
5151 (build_modrm_byte): Likewise.
5152 (output_insn): Likewise.
5153 (output_branch): Likewise.
5154 (output_jump): Likewise.
5155 (output_interseg_jump): Likewise.
5156 (output_disp): Likewise.
5157 (output_imm): Likewise.
5159 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5161 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5163 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5165 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5166 relocs except when BFD64.
5168 * write.c (number_to_chars_bigendian): Don't abort when N is
5169 larger than sizeof (VAL).
5170 (number_to_chars_littleendian): Likewise.
5172 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5174 * config/tc-hppa.c (md_apply_fix3): Add cast.
5175 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5178 2002-03-05 Paul Koning <pkoning@equallogic.com>
5180 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5181 (parse_ac5): New function for parsing float regs in float operand.
5182 (parse_expression): Remove attempt to make literals be octal.
5183 (parse_op_no_deferred): Support float literals.
5184 (parse_op): Reject attempts to refer to float regs.
5185 (parse_fop): New function, like parse_op but for float operand.
5186 (md_assemble): Add cases to parse float operands. Also fix
5187 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5189 2002-03-04 H.J. Lu <hjl@gnu.org>
5191 * config/obj-elf.c (special_section): Add .init_array,
5192 .fini_array and .preinit_array.
5194 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5195 .init_array and .fini_array.
5197 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5199 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5201 (obj_frob_symbol): Copy visibility.
5203 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5205 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5207 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5209 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5211 * po/es.po: Updated.
5213 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5215 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5216 only, undo the changes made on 2001-06-08, with the
5217 effect being that common or extern symbols are
5218 adjusted for embedded-PIC, but weak symbols are not.
5219 (md_estimate_size_before_relax: Likewise, with the effect
5220 that extern symbols are treated the same as weak symbols
5221 only if not embedded-PIC.
5222 (mips_fix_adjustable) Likewise, with the effect that
5223 weak or extern symbols are not adjusted for embedded-PIC.
5224 (md_apply_fix3): Tweak so that the case where value is zero
5225 is handled more correctly for embedded-PIC code.
5227 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5229 * doc/as.texinfo (Overview): Add missing @ifset IA64
5231 * configure.in (LINGUAS): Add es.po.
5232 * configure: Regenerate.
5233 * po/es.po: New file.
5235 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5237 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5238 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5239 and NO_PIC cases. Code cleanup.
5240 (macro2): Fix handling of 64bit register loads.
5242 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5244 * doc/as.texinfo: Add entry for IA64.
5245 * doc/c-ia64.texi: New file.
5247 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5249 * config/tc-hppa.c: Update copyright date.
5251 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5252 Remove references to chip manufacturers.
5253 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5255 (md_show_usage): Remove references to chip manufacturers. Mention
5257 (md_begin): Test power4 opcode flag bits.
5259 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5261 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5262 count exceeds prologue count.
5263 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5264 (unwind.label_prologue_count): New member.
5266 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5268 (get_saved_prologue_count): New function.
5269 (save_prologue_count): New function.
5270 (free_saved_prologue_count): New function.
5271 (dot_label_state): Record state label by calling save_prologue_count().
5272 (dot_copy_state): Restore prologue count by calling
5273 get_saved_prologue_count().
5274 (generate_unwind_image): Free up list of saved prologue
5275 counts by calling free_saved_prologue_counts().
5277 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5279 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5280 function declarations.
5282 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5284 * NEWS: Note that GASP is now deprecated.
5285 * Makefile.am: Do not build gasp-new by default.
5286 * Makefile.in: Regenerate.
5287 * doc/Makefile.am: Do not install gasp.info.
5288 * doc/Makefile.in: Regenerate.
5289 * gas/gasp.texi: Note that gasp is now deprecated.
5291 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5293 * NEWS: Mark 2.12 branch.
5295 2002-02-19 Tom Tromey <tromey@redhat.com>
5297 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5299 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5301 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5304 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5306 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5307 Make bit size independent of architecture switch.
5308 (md_begin): Add warning for -m64 with -Aesa.
5309 (s390_md_end): Use renamed architecture defines.
5311 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5313 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5315 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5317 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5320 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5322 * config/tc-mips.c (md_estimate_size_before_relax): Really
5323 make sure we treat weak like extern only for ELF. (Fixes
5324 patch from 2001-07-25.)
5326 2002-02-15 Ben Elliston <bje@redhat.com>
5328 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5331 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5333 * NEWS: Mention support for MMIX.
5335 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5337 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5338 a sequence of indpendent 'if' statements for easier debugging
5339 and future modification.
5341 2002-02-13 Matt Fredette <fredette@netbsd.org>
5343 * config/tc-m68k.c (md_show_usage): No longer display a
5344 hard-coded "68020" for the default CPU, instead display the
5345 canonical name of the true, configured default CPU.
5346 (m68k_elf_final_processing): Mark objects for sub-68020
5347 CPUs with the new EF_M68000 flag.
5349 2002-02-13 Andreas Schwab <schwab@suse.de>
5351 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5352 pc-relative relocations to merge sections in 64-bit mode.
5354 2002-02-13 Ben Elliston <bje@redhat.com>
5356 * NEWS: Document floating point number handling in gasp.
5357 * gasp.c: Include <assert.h> and "xregex.h".
5358 (is_flonum): New function.
5359 (chew_flownum): Likewise.
5360 (change_base): Consume flonums from the input, where possible.
5361 * doc/gasp.texi (Constants): Document floating point numbers.
5363 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5365 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5366 that implicitly use LR and RR selectors.
5368 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5370 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5371 and `epsw' as available on AM33 and above only.
5372 (other_register_name): Add logic to handle machine type encoded in
5375 2002-02-11 Tom Rix <trix@redhat.com>
5377 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5380 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5382 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5385 2002-02-11 Jan Hubicka <jh@suse.cz>
5387 * i386.c (md_assemble): Support 32bit address prefix.
5388 (i386_displacement): Likewise.
5389 (i386_index_check): Accept 32bit addressing in 64bit mode.
5391 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5393 * config/tc-sh.c (dot): Removed unused function.
5395 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5397 * Makefile.am: "make dep-am".
5398 * Makefile.in: Regenerate.
5399 * aclocal.m4: Regenerate.
5400 * config.in: Regenerate.
5401 * configure: Regenerate.
5402 * doc/Makefile.in: Regenerate.
5404 2002-02-10 Richard Henderson <rth@redhat.com>
5406 * doc/c-alpha.texi: New file.
5407 * doc/Makefile.am (CPU_DOCS): Add it.
5408 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5410 2002-02-09 Richard Henderson <rth@redhat.com>
5412 * config/tc-alpha.c (O_samegp): New.
5413 (USER_RELOC_P): Include it.
5414 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5415 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5416 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5417 (alpha_validate_fix): New.
5418 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5420 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5422 * doc/c-cris.texi: New.
5423 * doc/all.texi: @set CRIS.
5424 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5425 Include c-cris.texi.
5426 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5427 * doc/Makefile.in: Regenerate.
5429 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5431 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5432 determine if a number is a sign-extended 32-bit number.
5433 (load_register): Use IS_SEXT_32BIT_NUM.
5434 (macro): Check if load/store macro handling is using a
5435 constant 32-bit address on 64-bit address systems, and if
5436 so optimize the generation of that address.
5438 2002-02-08 Richard Henderson <rth@redhat.com>
5440 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5441 we've eliminated all foreign relocation types yet.
5442 (alpha_fix_adjustable): Likewise.
5444 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5446 Contribute sh64-elf.
5447 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5448 Stephen Clarke <Stephen.Clarke@st.com>
5449 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5450 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5451 * config/tc-sh.c (md_relax_table): Added default sizes for
5452 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5453 MOVI_16, MOVI_32 and MOVI_48.
5454 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5455 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5457 (shmedia_md_estimate_size_before_relax): Remove redundant
5458 blocks. Set fragP->fr_var even if relaxation type unchanged.
5459 Retain UNDEF_MOVI until expression decays to number.
5460 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5461 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5462 relocation types. Take fixP->fx_addnumber into account too.
5463 (shmedia_md_apply_fix): Likewise.
5464 (shmedia_md_convert_frag): Likewise.
5465 (shmedia_build_Mytes): Likewise.
5466 (sh64_consume_datalabel): Complain about nested datalabel.
5467 Support PIC relocs. Call sh_parse_name.
5468 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5469 in tc-sh.h to SHmedia reloc types.
5470 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5471 MOVI_GOTPC): New relaxation constants.
5472 (md_relax_table): Introduce relaxation directives for PIC-related
5474 (sh_PIC_related_p): Handle datalabel.
5475 (sh_check_fixup): Choose SH5 PIC relocations.
5476 (sh_cons_fix_new): Added BDF_RELOC_64.
5477 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5478 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5479 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5480 current ISA is SHmedia, get 7 bytes.
5481 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5482 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5484 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5485 shmedia_apply_fix3 and make void.
5486 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5487 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5489 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5490 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5491 2001-03-14 DJ Delorie <dj@redhat.com>
5492 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5493 * doc/Makefile.in(CPU_DOCS): Ditto.
5494 * doc/c-sh64.texi: New file.
5495 * doc/as.texinfo: Add SH64 support.
5496 2001-03-13 DJ Delorie <dj@redhat.com>
5497 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5498 A_REUSE_PREV so that its purpose is more obvious.
5499 (shmedia_build_Mytes): Ditto.
5500 2001-03-07 DJ Delorie <dj@redhat.com>
5501 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5503 (sh64_vtable_inherit): Ditto.
5504 (strip_datalabels): New, strip "datalabel" from given line.
5505 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5507 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5508 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5510 (shmedia_build_Mytes): ... to here.
5511 2001-03-06 DJ Delorie <dj@redhat.com>
5512 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5514 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5515 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5516 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5517 address by one in call to dwarf2_emit_insn.
5518 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5519 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5520 alignment handling broken by imported changes.
5521 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5522 (sh64_handle_align): Declare.
5523 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5524 (sh64_max_mem_for_rs_align_code): Declare.
5525 (enum sh64_isa_values): Moved here from tc-sh64.c.
5526 (md_do_align): Define.
5527 (sh64_do_align): Declare.
5528 (struct sh64_tc_frag_data): New.
5529 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5531 (TC_FRAG_INIT): Change to set new datatype.
5532 (struct sh64_segment_info_type): Rename member
5533 last_flushed_location to last_contents_mark. All users changed.
5534 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5535 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5536 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5537 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5538 of unsetting seen_insn.
5539 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5540 call sh64_update_contents_mark.
5541 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5542 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5543 enum sh64_isa_values.
5544 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5545 (emitting_crange): Boolean guard moved to file scope from function
5546 scope in sh64_set_contents_type.
5548 (sh64_update_contents_mark): New; most split out from
5549 sh64_flush_pending_output.
5550 (shmedia_md_end): Call sh64_update_contents_mark. Set
5551 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5552 (sh64_do_align): New function.
5553 (sh64_max_mem_for_rs_align_code): New function.
5554 (sh64_handle_align): Rename from shmedia_do_align. Make
5555 non-static. Add head comment. Emit zero bytes for n bytes modulo
5556 four. Change return-type to void.
5557 (shmedia_elf_new_section): Remove.
5558 (shmedia_md_assemble): Call sh64_update_contents_mark.
5559 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5560 new frag. Call sh64_update_contents_mark after making the new
5562 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5563 and sh_flush_pending_output.
5564 (sh64_flag_output): Also call md_flush_pending_output, but add
5565 condition on not emitting_crange.
5566 (sh64_tc_cons_fix_new): Remove.
5567 2001-01-12 Nick Clifton <nickc@redhat.com>
5568 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5569 alignment handling scheme imported from sourceware.
5570 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5571 * config/tc-sh64.h (TARGET_FORMAT): Define.
5572 (sh64_target_format): Prototype.
5573 * config/tc-sh64.c (sh64_target_mach): New function.
5574 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5575 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5576 zero_address_frag instead of copying the frag of the symbol.
5577 (shmedia_frob_file_before_adjust): Ditto.
5578 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5579 to valueT to remove signedness.
5580 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5581 headers to output_bfd. Do not evaluate symbols if final is false;
5583 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5584 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5585 to the current frag, call shmedia_md_convert_frag to emit fixups
5586 and make frag_wane neutralize the frag. Update comments.
5587 * config/tc-sh.c (md_convert_frag): Change caller of
5588 shmedia_md_convert_frag.
5589 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5590 * config/tc-sh64.h: Tweak comments and correct formatting.
5591 * config/tc-sh64.c: Ditto.
5592 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5593 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5594 for the no-relocation case.
5595 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5596 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5598 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5600 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5601 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5603 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5605 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5606 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5607 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5608 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5609 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5610 if reloc is emitted.
5611 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5612 New options plus bugfixes.
5613 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5615 (md_parse_option): Handle new options.
5616 (md_show_usage): Add blurb for new options.
5617 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5618 (sh64_expand, sh64_pt32): New variables.
5619 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5620 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5621 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5622 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5623 <resolved previously-pc-relative relocs>: Handle
5624 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5625 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5626 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5627 points to SHcompact code.
5628 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5629 SH64PCREL16)>: Check that ISA of what operand points at and
5630 PTA/PTB matches, or emit error.
5631 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5632 SHMEDIA_BFD_RELOC_PT.
5633 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5635 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5636 condition for MOVI expansion.
5637 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5638 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5640 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5642 (sh64_target_format): Error-check setting of sh64_pt32 and
5643 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5644 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5645 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5646 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5647 * config/tc-sh64.c: Improve comments.
5648 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5649 not say the linker will check correctness of PTA/PTB expansion.
5650 (shmedia_md_end): Make non-static.
5651 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5653 * config/tc-sh.c (sh_finalize): Remove.
5654 * config/tc-sh.h (md_end): Do not define.
5655 Remove prototype for sh_finalize.
5656 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5657 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5658 sh64_section_data container when storing section type in tdata
5659 field in elf_section_data.
5660 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5662 * Makefile.am: Update dependencies.
5663 * Makefile.in: Regenerate.
5664 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5665 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5666 dwarf2_emit_insn call with test on debug_type.
5667 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5668 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5669 CRT_SH5_ISA32 sticky for 64-bit.
5670 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5671 Generate .crange sections when switching ISA mode or emitting
5672 constants in same section as code.
5673 * config/tc-sh64.c: Reformat structure definitions.
5674 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5676 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5677 to emit a .cranges descriptor when contents type changes. Only
5678 emit error if changing contents type and -no-mix is in effect.
5679 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5680 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5681 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5682 sh64_flush_last_crange over sections.
5683 When checking main symbol of datalabel symbol, check for
5684 STO_SH5_ISA32, not ISA type of section in definition.
5685 (shmedia_frob_file_before_adjust): Check main symbol for
5686 STO_SH5_ISA32; don't check ISA type of section in definition.
5687 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5688 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5689 .cranges entries have been output.
5690 (shmedia_elf_new_section): Just call md_flush_pending_output.
5691 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5692 fix. Do not set tc_segment_info_data.in_code for section. Call
5693 sh64_set_contents_type for SHmedia code.
5694 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5695 false. Call md_flush_pending_output.
5696 (sh64_target_format): Check that -no-mix and
5697 -shcompact-const-crange are used in sane combination with other
5699 (shmedia_md_pcrel_from_section): Check type of fix for how to
5701 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5702 not ISA type of section in definition.
5703 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5704 hold contents-type state.
5705 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5706 (sh64_flush_pending_output): Declare.
5707 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5708 (sh64_tc_cons_fix_new): Declare.
5709 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5710 call sh64_flag_output.
5711 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5712 call sh64_set_contents_type to mark SHcompact code and set
5714 (md_longopts): New options "-no-mix" and
5715 "-shcompact-const-crange".
5716 (md_parse_option): Handle new options.
5717 (md_show_usage): Add blurb for new options.
5718 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5719 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5720 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5721 (sh64_last_insn_frag): New.
5722 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5723 to get frag for insn opcode for generating fixups; do not assume it
5725 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5727 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5729 (TC_FRAG_TYPE): Define as fragS *.
5730 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5731 (sh64_last_insn_frag): Declare.
5732 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5733 not == NULL before dereferencing.
5734 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5735 Get rid of BFD section flag and EF_SH64_ABI64.
5736 * config/tc-sh64.c (shmedia_frob_section_type): Use
5737 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5738 communicate the section as containing SHmedia code. Describe why.
5739 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5740 EF_SH64 regardless of ABI.
5741 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5742 in error message. Handle resolved expressions for
5743 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5744 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5745 (shmedia_check_limits): Handle BFD_RELOC_64.
5746 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5747 a STO_SH5_ISA32 symbol, only the BFD value.
5748 2000-12-11 Ben Elliston <bje@redhat.com>
5749 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5750 dwarf2_generate_asm_lineno.
5751 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5752 Handle PC-relative MOVI expansions with assembler relaxation.
5753 Generate PC-relative relocs from 16-bit PC-relative expressions.
5754 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5755 (shmedia_md_pcrel_from_section): ...here.
5756 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5757 turned completely resolved. Adjust relocation type for 16-bit
5758 immediate operands that has turned PC-relative. Adjust back for
5759 MD_PCREL_FROM_SECTION being applied twice.
5760 (shmedia_md_convert_frag): Always emit reloc for expression with
5761 global or weak symbol. Handle relaxation result for PC-relative
5763 (shmedia_md_estimate_size_before_relax): An expression with a weak
5764 or global symbol can not be relaxed. Break out tests for
5765 relaxable symbol into variable sym_relaxable.
5766 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5767 UNDEF_MOVI)>: Break out any PC-relative expression and change
5769 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5771 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5772 MOVI expansion. If X_op_symbol of the immediate expression is
5773 set, make an expression symbol for the argument to frag_var.
5774 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5776 (END): Adjust for new relaxations.
5777 (md_relax_table): Add entries for new relaxations.
5778 2000-12-07 Ben Elliston <bje@redhat.com>
5779 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5780 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5781 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5782 SHORI operand offsets in PT/PTA/PTB expansions.
5783 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5784 Implement DataLabel semantics.
5785 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5786 shmedia_frob_file_before_adjust.
5787 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5788 (DATALABEL_SUFFIX): Define.
5789 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5790 symbol list to update "datalabel" symbols to their main symbol
5792 (shmedia_frob_file_before_adjust): New.
5793 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5794 undefined and set STT_DATALABEL.
5795 (sh64_frob_label): Initialize TC symbol field.
5796 (sh64_consume_datalabel): Actually implement semantics. New
5797 parameter operandf, call it instead of expression.
5798 (sh64_exclude_symbol): New.
5799 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5800 to sh64_consume_datalabel.
5801 (tc_symbol_new_hook): Define to tc_frob_symbol.
5802 (TC_SYMFIELD_TYPE): Define to symbolS *.
5803 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5804 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5805 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5807 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5808 generating dwarf2 debug information.
5809 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5810 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5811 elf64-sh64 for the 64-bit ABI.
5812 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5814 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5815 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5817 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5818 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5819 (enum sh64_abi_values): New type.
5820 (enum sh64_isa_values): New type.
5821 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5822 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5823 (sh64_abi): Replace shmedia_64.
5824 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5825 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5826 (s_sh64_mode): Check validity for this target.
5827 (sh64_target_format): Initialize defaults for ISA and ABI.
5828 Fallback to old object format if no SH64 ISA or ABI has been
5830 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5831 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5832 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5833 * config/tc-sh64.h: Fix typo in comment.
5834 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5835 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5836 <PT fixups for absolute values>: Size will be longest, not
5838 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5839 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5840 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5841 and l1 to hold lowercase of two first characters. Change all
5842 remaining TO_LOWER to tolower.
5843 * config/tc-sh64.c (TO_LOWER): Delete.
5844 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5845 (md_parse_name): Define.
5846 (sh64_consume_datalabel): Declare.
5847 (DOLLAR_DOT): Define.
5848 * config/tc-sh64.c (shmedia_parse_exp): New.
5849 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5850 (shmedia_parse_reg): Remove const from src
5852 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5853 (shmedia_md_assemble): Ditto for op_end variable.
5854 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5855 Use shmedia_parse_exp, not parse_exp.
5856 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5857 parameter. All callers changed.
5858 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5860 (shmedia_parse_reg): Put first two character in local variables.
5861 Use tolower, not TO_LOWER. If no register is found and argtype
5862 indicates a control register, scan shmedia_creg_table
5864 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5865 * Makefile.am (CPU_TYPES): Add sh64.
5866 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5867 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5868 Regenerate dependencies.
5869 * Makefile.in: Regenerate.
5870 * configure.in: Add support for sh64-*-elf*.
5871 * configure: Regenerate.
5872 * config/tc-sh64.h: New.
5873 * config/tc-sh64.c: New.
5874 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5875 .mode, .isa and .uaquad.
5876 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5877 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5878 [HAVE_SH64] (END): Define as 10.
5879 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5880 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5882 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5883 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5884 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5885 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5887 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5888 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5889 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5890 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5891 SHmedia instructions. Handle state-change after switching to
5893 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5894 (md_parse_option) [HAVE_SH64]: Parse new options.
5895 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5896 (md_convert_frag) [HAVE_SH64] <default>: Call
5897 shmedia_md_convert_frag instead of abort.
5898 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5899 BFD_RELOC_SH_SHMEDIA_CODE.
5900 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5901 SHcompact or SHmedia code.
5902 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5903 shmedia_md_apply_fix instead of abort.
5904 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5905 result from calling shmedia_md_estimate_size_before_relax instead
5907 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5909 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5910 shmedia_init_reloc and do nothing more if it returns non-zero.
5911 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5912 * po/POTFILES.in: Regenerate.
5913 * po/gas.pot: Regenerate.
5915 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5917 * config/tc-sh.c (parse_at): Install the correct version of
5920 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5921 assume fixP->fx_subsy is non-NULL.
5923 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5925 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5926 A_DISP_PC_ABS, and adjust it by -4.
5927 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5929 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5930 the operand type is not A_DISP_PC_ABS.
5932 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5934 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5935 common and weak symbols. Handle common and weak symbols as
5936 undefined symbols with regards to GREG handling and merging.
5937 (mmix_frob_file): Ditto.
5939 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5941 * configure.in (hppa-*-netbsd*): New target.
5942 * configure: Regenerate.
5943 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5945 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5947 * config/tc-v850.c: Add missing prototypes amd use old-style
5948 function definitions.
5949 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5950 (sdata_section tdata_section, zdata_section, sbss_section,
5951 tbss_section, zbss_section, rosdata_section, rozdata_section,
5952 scommon_section, tcommon_section, zcommon_section,
5953 call_table_data_section, call_table_text_section): Delete.
5954 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5955 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5956 v850_call_table_data, v850_call_table_text): Delete.
5957 (struct v850_seg_entry): New.
5958 (v850_seg_table): New.
5959 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5960 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5961 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5962 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5965 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5966 recording of alignment.
5967 (md_pseudo_table): Use v850_seg.
5968 (md_begin): Don't init .call_table_data and .call_table_text here.
5969 Set v850_seg_table bss entry.
5971 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5973 Support on-demand global register allocation by passing on
5974 base-plus-offset relocs to the linker.
5975 * config/tc-mmix.c: Tweak and fix typos in comments.
5976 (allocate_undefined_gregs_in_linker): New variable.
5977 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5978 (md_longopts): Add --linker-allocated-gregs.
5979 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5980 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5981 (md_show_usage): Update text for -x. Add text for
5982 --linker-allocated-gregs.
5983 (tc_gen_reloc): Derive default value for addend from val and
5984 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5985 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5986 GREG if allocate_undefined_gregs_in_linker.
5987 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5988 --linker-allocated-gregs.
5989 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5990 --linker-allocated-gregs. Mention that it's implied by -x.
5991 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5992 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5994 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5996 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5998 * Makefile.am: Run "make dep-am"
5999 * Makefile.in: Regenerate.
6001 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6003 * config/tc-or32.c: New file.
6004 * config/tc-or32.h: New file.
6005 * configure.in: Add support for or32 targets.
6006 * configure: Regenerate.
6007 * config/obj-coff.c: Add support for or32 targets.
6008 * config/obj-coff.h: Add support for or32 targets.
6009 * Makefile.am: Add support for or32 targets.
6010 * Makefile.in: Regenerate.
6011 * NEWS: Mention support for OpenRISC.
6012 * doc/Makefile.in: Regenerate.
6013 * po/POTFILES.in: Regenerate.
6014 * po/gas.pot: Regenerate.
6016 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6018 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6021 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6023 * config/tc-mips.c (tc_gen_reloc): Arrange for
6024 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6025 their LO16 parts, even for ELF.
6027 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6029 * config/tc-i386.c: Protect definitions of true and false
6032 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6034 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6035 made because of .weak, if they are neither defined nor used in any
6038 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6040 * configure: Regenerated.
6042 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6044 * doc/Makefile.am (install): Depend on install-info.
6045 * doc/Makefile.in: Regenerate.
6047 2002-01-26 Nick Clifton <nick@redhat.com>
6049 * po/fr.po: Updated version
6051 2002-01-24 Kazu Hirata <kazu@hxi.com>
6053 * config/tc-h8300.c (check_operand): Don't print a warning
6054 when a valid 24-bit address is given to a 16-bit address
6057 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6059 * config/tc-sh.c (sh_elf_suffix): Removed.
6060 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6061 sh_end_of_match, sh_parse_name): New functions.
6062 (sh_elf_cons): Simplify.
6063 (parse_exp): Reject misplaced PIC operands.
6064 (md_undefined_symbol): Simplify.
6065 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6066 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6067 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6068 Complain if subsy remains at the end.
6069 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6070 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6072 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6074 * config/tc-mn10300.c (xr_registers): Move `pc'...
6075 (other_registers): ... here.
6077 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6079 * Makefile.am: Run "make dep-am".
6080 * Makefile.in: Regenerate.
6081 * gas/po/POTFILES.in: Regenerate.
6083 2002-01-21 DJ Delorie <dj@redhat.com>
6085 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6086 stabstr_name allocation permanent, as it will be referenced from
6089 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6091 * configure.in (ia64-*-netbsd*): New target.
6092 * configure: Regenerate.
6094 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6096 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6098 <Detailed description, ARM options>: Ditto.
6099 * doc/c-arm.texi (ARM Options): Ditto.
6101 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6103 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6104 do_mia, do_mar and do_mra respectively.
6105 (do_mav_*): Renamed from do_c_*.
6106 (mav_reg_required_here, mav_parse_offset): Renamed from
6107 cirrus_reg_required_here and cirrus_parse_offset respectively.
6108 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6110 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6111 Keith Walker <keith.walker@arm.com>
6113 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6114 (insns): Add pattern for bxj instruction.
6115 (do_bxj): New function.
6116 (arm_cpus): Add arm926ej.
6117 (arm_archs): Add armv5tej.
6119 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6121 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6123 2002-01-19 Keith Walker <keith.walker@arm.com>
6125 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6127 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6129 * NEWS: Mention new ARM command-line options and VFP support.
6131 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6133 (ARM_CEXT_MAVERICK): Similarly.
6134 (ARM_ANY): Now means any core instruction.
6135 (CPU_DEFAULT): Default to ARM_ANY.
6136 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6137 (pic_code): Declare for all object types. Make type int.
6138 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6139 (march_fpu_opt, mfpu_opt): Declare.
6140 (md_longopts): Tidy up conditional definitions.
6141 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6142 (arm_long_opts): New tables.
6143 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6144 (arm_parse_extension): New function.
6145 (md_parse_option): Rewrite using new table-driven system.
6146 (md_show_usage): Use new table-driven system.
6147 (md_begin): Calculate cpu_variant from command line option data.
6148 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6149 command-line options.
6150 * doc/c-arm.texi: Likewise.
6152 2002-01-18 Andreas Jaeger <aj@suse.de>
6154 * as.c (parse_args): Update year.
6156 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6158 * config/tc-tic54x.c (encode_address): Add a more informative
6159 warning about incorrect syntax.
6161 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6163 * po/gas.pot: Regenerate.
6165 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6167 * macro.c (get_any_string): Add no-c-format comment to prevent
6168 confusion when translating string.
6169 * gasp.c (get_any_string): Add no-c-format comment to prevent
6170 confusion when translating string.
6172 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6173 Johannes Stezenbach <js@convergence.de>
6174 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6175 matched before the shorter ones.
6176 (my_getSmallParser): Fix handling of nested parentheses in
6177 percent_op's. Code cleanup.
6178 (my_getPercentOp): New function, code from my_getSmallParser.
6179 (my_getSmallExpression): Fix handling of closing parentheses.
6180 Code cleanup. Better comments.
6182 2002-01-16 Nick Clifton <nickc@redhat.com>
6184 po/tr.po: New file: Turkish translation.
6185 configure.in (LINGUAS): Add "tr".
6186 configure: Regenerate.
6188 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6190 Support for VFP instructions
6191 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6192 (cp_address_required_here): New argument wb_ok. When false, do not
6193 accept write-back forms of addressing. Change all callers.
6194 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6195 (FPU_VFP_EXT_V2): Define.
6196 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6197 Define in terms of above.
6198 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6199 (vfp_reg): New struct.
6200 (vfp_regs): New array of registers.
6201 (insns): Add VFP instructions.
6202 (sn_table): New array of VFP single-precision register names.
6203 (dn_table): New array of VFP double-precision register names.
6204 (all_reg_maps): Add the new register tables.
6205 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6206 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6207 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6208 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6209 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6210 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6211 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6212 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6213 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6214 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6215 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6216 (do_vfp_sp_dp_cvt): New functions.
6217 (md_begin): Set soft-float flag for appropriate VFP work.
6218 (md_atof): Handle VFP-format doubles.
6219 (md_parse_option): Handle VFP command-line options.
6220 (md_show_usage): Display VFP command-line options.
6222 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6224 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6225 various command line options.
6227 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6229 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6231 (xstormy16_md_apply_fix3): Do not return a value.
6233 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6235 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6236 the -EL/-EB option that matches the target's endianness.
6237 (md_parse_option): Likewise.
6239 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6241 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6242 is not dependent on ARM_BI_ENDIAN.
6244 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6246 * tc-arm.c (all error messages): Normalize capitalization of messages.
6248 * tc-arm.h (md_operand): Delete define.
6249 * tc-arm.c (in_my_get_expression): New static variable.
6250 (my_get_expression): Set and clear it.
6251 (md_operand): New function. If called from my_get_expression
6252 put the error in inst.error.
6253 (output_inst): Now takes argument of instruction being assembled.
6254 Print it out with any error message.
6255 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6257 (end_of_line): Don't update inst.error if it is already set.
6259 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6261 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6262 op that can be translated into a mvn instruction.
6264 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6266 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6267 setting default md.flags.
6268 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6269 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6270 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6271 for 32 bit unwind info blocks.
6272 (generate_unwind_image): Add support for different types
6273 of unwind images (32 bits and/or big-endian).
6274 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6275 (ia64_target_format): Add support for hpux target formats.
6276 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6277 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6278 SHT_FINI_ARRAY elf section types.
6280 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6282 * tc-arm.c (struct reg_entry): Move before prototypes.
6283 (int_register, cp_register, fp_register): Delete.
6284 (reg_table): Delete. Replaced with ...
6285 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6286 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6287 (mav_dspsc_table): ... one table per register set.
6288 (arm_reg_hsh): Delete.
6289 (struct reg_map): New structure.
6290 (all_reg_maps): New array.
6291 (enum arm_reg_type): New enums.
6292 (build_reg_hsh): New function.
6293 (insert_reg_alias): Use hash table passed by caller. Adjust all
6295 (create_register_alias): New function, split out from ...
6296 (md_assemble): ... here.
6297 (md_begin): Build new register hash tables.
6298 (arm_reg_parse): New argument for the hash table to search. Adjust all
6300 (arm_reg_parse_any): New function.
6301 (co_proc_number): Look up the processor number in the processor hash
6303 (cirrus_regtype): Delete.
6304 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6305 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6306 (ARM_EXT_MAVERICKsc_register): Delete.
6307 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6308 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6310 (do_c_triple_4, do_c_triple_5): Delete.
6311 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6312 (do_c_quad_6): Delete.
6313 (do_c_quad_6[ab]): New functions.
6314 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6315 arguments to use new register parsing methods.
6316 (cirrus_reg_required_here): Likewise.
6317 (insns): Reclassify cirrus maverick worker functions.
6318 (cirrus_valid_reg): Delete.
6320 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6322 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6323 (sh*-*-netbsdelf*): New target.
6324 * configure: Regenerate.
6325 * tc-sh.h: Update copyright years.
6326 (TARGET_FORMAT): Add version for TE_NetBSD.
6328 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6330 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6333 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6335 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6336 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6338 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6340 * tc-mips.c (mips_cprestore_valid): New flag.
6341 (mips_frame_reg_valid): New flag.
6342 (macro) [M_JAL_2]: Check both flags.
6343 [M_JAL_A]: Likewise.
6344 (s_cprestore): Set mips_cprestore_valid.
6345 (tc_get_register): If setting mips_frame_reg, set
6346 mips_frame_reg_valid and clear mips_cprestore_valid.
6347 (s_mips_ent): Clear both flags.
6348 (s_mips_end): Clear both flags.
6350 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6352 * write.c (write_object_file): Make use of bfd_section_list_remove.
6353 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6354 * config/tc-mmix.c (mmix_frob_file): Likewise.
6356 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6358 * configure.in (i386-*-netbsdelf*): Collapse target into...
6359 (i386-*-netbsd*): ...this. Add support for x86-64.
6360 * configure: Regenerated.
6362 2002-01-03 matthew green <mrg@redhat.com>
6364 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6366 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6368 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6371 For older changes see ChangeLog-0001
6377 version-control: never