1 2003-08-14 Alan Modra <amodra@bigpond.net.au>
3 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
5 * config/tc-i386.c: Likewise.
6 (RELOC_ENUM): Don't define. Replace throughout with enum.
8 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
9 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
11 * Makefile.in: Regenerate.
13 2003-08-08 Andreas Schwab <schwab@suse.de>
15 * config/tc-m68k.h (TARGET_USE_CFIPOP)
16 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
17 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
19 * config/tc-m68k.c: Include "dw2gencfi.h".
20 (tc_m68k_regname_to_dw2regnum)
21 (tc_m68k_frame_initial_instructions): New functions.
23 2003-08-08 Dmitry Diky <diwil@mail.ru>
25 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
26 according to gcc order.
28 2003-08-07 Jason Eckhardt <jle@rice.edu>
30 * config/tc-i860.c (i860_check_label): New function.
31 * config/tc-i860.h (i860_check_label): New prototype.
32 (tc_check_label): Define macro as i860_check_label.
34 2003-08-06 Jason Eckhardt <jle@rice.edu>
36 * config/tc-i860.c (s_align_wrapper): New function and prototype.
37 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
38 surrounding OBJ_ELF ifdef, and re-format slightly.
39 * doc/c-i860.texi: Document the special .align syntax available
42 2003-08-06 Jason Eckhardt <jle@rice.edu>
44 * config/tc-i860.c (i860_handle_align): New function.
45 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
46 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
48 2003-08-06 Jason Eckhardt <jle@rice.edu>
50 * config/tc-i860.c (i860_process_insn): Check that instructions
51 with their dual-bit set are 8-byte aligned.
53 2003-08-06 Nick Clifton <nickc@redhat.com>
55 * po/fr.po: Updated French translation.
57 2003-08-05 Jason Eckhardt <jle@rice.edu>
59 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
60 setting during flop argument parsing. Instead, do it after
61 instruction is fully parsed.
63 2003-08-05 Jason Eckhardt <jle@rice.edu>
65 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
66 directives are only available in Intel syntax mode.
68 2003-08-05 Jason Eckhardt <jle@rice.edu>
70 * config/tc-i860.c (s_dual): Accept .dual directive only in
71 the Intel syntax mode.
72 (s_enddual): Likewise for .enddual.
73 (s_atmp): Likewise for .atmp.
75 2003-08-04 Alan Modra <amodra@bigpond.net.au>
77 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
78 for memory operands. Pass the full operand_string to i386_index_check.
80 2003-08-01 Jason Eckhardt <jle@rice.edu>
82 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
83 (target_intel_syntax): Declare variable.
84 (OPTION_INTEL_SYNTAX): Declare macro.
85 (md_longopts): Add option -mintel-syntax.
86 (md_parse_option): Set target_intel_syntax.
87 (md_show_usage): Add -mintel-syntax usage.
88 (md_begin): Set reg_prefix based on target_intel_syntax.
89 (i860_process_insn): Skip register prefix only if there is one.
90 Parse relocatable expressions in either Intel or AT&T syntax based
91 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
92 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
93 about the differences in syntax.
95 2003-08-01 Dmitry Diky <diwil@mail.ru>
97 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
100 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
102 * config/tc-sh.c (md_assemble): For branches, check & update
105 2003-07-30 Jason Eckhardt <jle@rice.edu>
107 * config/tc-i860.c: Convert to ISO C90.
109 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
111 * read.c (s_space): Revert 2003-07-28 change.
113 2003-07-30 Alan Modra <amodra@bigpond.net.au>
115 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
117 2003-07-29 Alan Modra <amodra@bigpond.net.au>
119 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
121 2003-07-29 Jakub Jelinek <jakub@redhat.com>
123 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
125 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
127 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
129 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
131 * read.c (s_space): Don't warn about .space 0.
133 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
135 * config/tc-mips.c (mips_flag_pdr): Define.
136 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
137 (s_mips_end) [OBJ_ELF]: Likewise.
138 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
139 (md_parse_option) [OBJ_ELF]: Handle them.
140 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
142 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
143 * doc/as.texinfo (Overview) [MIPS]: Likewise.
145 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
147 * config/obj-elf.c (obj_elf_change_section): Update
148 elf_section_type and elf_section_flags only when they are
151 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
153 * config/obj-elf.c (obj_elf_change_section): Always set section
156 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
158 * config/obj-elf.c (special_sections): Removed.
159 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
160 elf_section_type and elf_section_flags.
161 (elf_frob_file): Set SHT_GROUP.
163 * config/obj-elf.h (obj_sec_set_private_data): New.
165 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
166 * config/tc-ia64.h: Likewise.
167 * config/tc-m32r.h: Likewise.
168 * config/tc-m68hc11.h: Likewise.
169 * config/tc-mcore.h: Likewise.
170 * config/tc-mips.h: Likewise.
171 * config/tc-ppc.h: Likewise.
172 * config/tc-sh64.h: Likewise.
173 * config/tc-v850.h: Likewise.
174 * config/tc-xtensa.h: Likewise.
176 * config/tc-v850.h (SHF_V850_GPREL): Removed.
177 (SHF_V850_EPREL): Likewise.
178 (SHF_V850_R0REL): Likewise.
180 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
183 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
185 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
186 debugging symbols so that we handle page memory correctly.
188 2003-07-24 Nick Clifton <nickc@redhat.com>
190 * po/fr.po: Updated French translation.
192 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
194 * config/tc-arm.c (arm_archs): Add iwmmxt.
196 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
198 * read.c (do_parse_cons_expression): Mark nbytes unused to
201 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
203 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
206 * config/tc-h8300.c (md_assemble): Make sure characters after
207 slash and dot are lower-case.
209 2003-07-17 Nick Clifton <nickc@redhat.com>
211 * po/es.po: New Spanish translation.
212 * po/tr.po: New Turkish translation.
213 * po/opcodes.pot: Regenerate.
215 2003-07-16 Alan Modra <amodra@bigpond.net.au>
217 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
218 (generic_dwarf2_emit_offset): Don't define function when
219 TC__DWARF2_EMIT_OFFSET is defined.
221 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
223 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
224 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
225 * doc/c-mips.texi: Document -march=rm9000.
227 2003-07-15 Alan Modra <amodra@bigpond.net.au>
229 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
230 only for V850_OPERAND_DISP operands.
232 2003-07-15 Alan Modra <amodra@bigpond.net.au>
234 * frags.c (frag_more): Move segment checks to..
235 (frag_alloc_check): ..here. New function.
236 (frag_append_1_char): Call frag_alloc_check.
238 2003-07-14 Nick Clifton <nickc@redhat.com>
240 * po/tr.po: Update with latest version.
241 * po/POTFILES.in: Regenerate.
242 * po/gas.pot: Regenerate.
243 * configure: Regenerate.
245 2003-07-14 Nick Clifton <nickc@redhat.com>
247 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
248 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
249 "safe-ctype.h" and update use of macros.
250 * Makefile.am: Update dependencies.
251 * Makefile.in: Regenerate.
253 2003-07-11 Alan Modra <amodra@bigpond.net.au>
255 * po/gas.pot: Regenerate.
257 2003-07-10 Jakub Jelinek <jakub@redhat.com>
259 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
260 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
261 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
262 DWARF2_CIE_DATA_ALIGNMENT): Define.
263 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
265 (ppc_cie_data_alignment): Declare.
266 * config/tc-ppc.c: Include dw2gencfi.h.
267 (ppc_cie_data_alignment): Define.
268 (md_begin): Initialize ppc_cie_data_alignment.
269 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
271 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
272 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
273 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
274 DWARF2_CIE_DATA_ALIGNMENT): Define.
275 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
277 (s390_cie_data_alignment): Declare.
278 * config/tc-s390.c: Include dw2gencfi.h.
279 (s390_cie_data_alignment): Define.
280 (md_begin): Initialize s390_cie_data_alignment.
281 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
284 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
286 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
287 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
288 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
289 * configure.in (am33_2.0, mn10300-*-linux*): Added.
290 * configure: Rebuilt.
291 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
293 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
296 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
298 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
299 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
300 for subtracts from GLOBAL_OFFSET_TABLE that could not be
302 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
303 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
304 could not be simplified.
305 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
306 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
307 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
308 BDF_RELOC_MN10300_GOT32.
309 * config/tc-mn10300.c (mn10300_fix_adjustable): If
310 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
311 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
312 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
313 symbol if we know its value.
314 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
315 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
316 duplicate underscore prefix.
317 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
318 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
319 type in X_md, not X_add_number. Zero X_add_number.
320 (mn10300_check_fixup): Extract relocation type from X_md.
321 * config/tc-mn10300.h: Update comment.
322 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
323 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
325 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
326 (mn10300_check_fixup): Likewise.
327 (mn10300_parse_name): Set X_add_number to relocation type.
328 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
329 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
330 O_GOTOFF, O_PLT, O_GOT): Define.
331 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
332 (mn10300_check_fixup): New fn.
333 (md_assemble): Call it. Check for PIC-related relocs.
334 (mn10300_cons_fix_new): Likewise. New fn.
335 (mn10300_end_of_match): New fn.
336 (mn10300_md_parse_name_cont): New fn.
338 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
340 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
341 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
343 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
344 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
345 md_assemble, md_estimate_size_before_relax): Handle fbCC.
346 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
347 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
349 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
350 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
351 (HAVE_AM33): Match AM33_2 too.
352 (HAVE_AM33_2): New macro.
353 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
354 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
355 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
356 (float_registers, double_registers): New variables.
357 (float_register_name, double_register_name): New functions.
358 (md_assemble): Recognize FP registers. Implement FMT_D3.
359 (mn10300_insert_operand): Support FP registers.
361 2003-07-08 Chris Demetriou <cgd@broadcom.com>
363 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
364 target being a global symbol if not compiling SVR4 PIC code.
366 2003-07-07 Nick Clifton <nickc@redhat.com>
368 * doc/c-m32r.texi (M32R-Directives): New node. Document the
369 .high, .shigh and .low directives.
371 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
373 * config/tc-h8300.c (h8300sxnmode): Add prototype.
375 (parse_exp): Replace expressionS argument with a h8_op. Parse the
376 operand size as well.
377 (skip_colonthing): Remove unused expression argument. Tighten checks
379 (colonmod24): Remove.
380 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
381 (get_operand): Likewise. Use the standard code to read the size of
382 pc-relative operands.
383 (fix_operand_size): Include the size-guessing logic that used to be
384 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
385 offsets with a symbolic component.
387 2003-07-04 Nick Clifton <nickc@redhat.com>
389 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
390 macro to compute size of selected register name array.
392 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
394 * config/tc-s390.c (md_parse_option): Add cpu type z990.
395 (md_begin): Add minimal cpu type logic for instructions with different
396 binary format depending on the cpu.
397 (md_assemble): Remove check for minimal cpu.
398 (s390_insert_operand): Add support for long displacements.
399 (md_gather_operands): Likewise.
400 (tc_s390_fix_adjustable): Likewise.
401 (tc_s390_force_relocation): Likewise.
402 (md_apply_fix3): Likewise.
404 2003-06-30 Chris Demetriou <cgd@broadcom.com>
406 * config/tc-mips.c (s_mipsset): Implement -march= handling
409 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
411 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
412 prototypes and casts. Replace PTR with void *. Reformat.
413 * config/tc-mips.h: Likewise.
415 2003-06-30 Alan Modra <amodra@bigpond.net.au>
417 * config/tc-ia64.c (note_register_values): Warning fix.
418 * config/tc-mips.c (append_insn): Likewise.
420 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
422 * config/tc-mips.c (mips_set_options,mips_opts): Support for
424 (file_mips_arch): Rename mips_arch.
425 (mips_arch_info,mips_tune_info): Remove.
426 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
427 (mips_cpu_info_from_arch): New function.
428 (md_begin): Use file_mips_arch.
429 (macro_build,macro,mips_ip): Use mips_opts.arch.
430 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
431 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
433 (s_mipsset): Support for .set arch=FOO.
434 (mips_cpu_info_table): Fix typo.
436 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
438 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
440 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
442 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
443 unsigned 8-bit operands.
445 2003-06-24 Nick Clifton <nickc@redhat.com>
447 * read.c (s_comm): Change error message to assume an unsigned size
448 has been passed to .comm.
449 * config/tc-sparc.c (s_common): Likewise.
450 * write.c (write_contents): Replace 'unsigned long' with
451 'addressT' and 'long' with offsetT in order to allow computations
452 with very large values to work for 64-bit addressed targets.
453 (relax_and_size_all_segments): Likewise.
454 (relax_frag): Likewise.
455 (relax_segment): Likewise.
457 2003-06-23 Mark Mitchell <mark@codesourcery.com>
459 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
461 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
463 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
466 * gas/config/tc-i386.h (CpuPNI): New.
467 (CpuUnknownFlags): Add CpuPNI.
469 2003-06-23 <davidm@hpl.hp.com>
471 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
472 freebsd, openvms, and nsk (non-stop kernel).
474 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
476 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
477 all locals have been declared.
479 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
481 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
482 special handling for n32 ABI.
485 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
487 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
490 2003-06-19 Christian Groessler <chris@groessler.org>
492 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
493 now, not only a warning. Add some more checks to detect invalid
495 (get_operand): For CLASS_IR remember register size in mode struct.
496 (get_specific): Handle new CLASS_IRO type. Add register size
497 checks for CLASS_IR and CLASS_IRO.
498 (md_apply_fix3): Fix undefined usage of buf.
500 2003-06-19 Alan Modra <amodra@bigpond.net.au>
502 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
503 (ppc_change_csect): Add align param. Align frag at start of csect.
504 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
505 (ppc_frob_section): Align vma.
507 2003-06-18 Jakub Jelinek <jakub@redhat.com>
509 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
510 (output_cie): Don't pad.
511 (output_fde): Add align argument. Pad to align if not 0.
512 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
513 Pad just last FDE to EH_FRAME_ALIGNMENT.
515 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
517 * config/tc-s390.c (init_default_arch): Make current_mode_mask
518 dependent on s390_arch_size and current_cpu dependent on
521 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
523 * configure.in: Add c4x as an architecture variant to tic4x.
524 * configure: Regenerate.
525 * Makefile.in: Regenerate.
526 * doc/Makefile.in: Regenerate.
528 2003-06-18 Alan Modra <amodra@bigpond.net.au>
530 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
531 ".TOC." from PPC64_TOC relocs.
533 2003-06-17 Alan Modra <amodra@bigpond.net.au>
535 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
537 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
539 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
540 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
541 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
542 s_cprestore,s_cpadd): Use them.
544 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
546 * configure.in: Add specific case for cris-*-linux-gnu* with
548 * configure: Regenerate.
549 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
550 if TE_LINUX defined, else FALSE.
551 (bfd_boolean demand_register_prefix): Set default from
552 DEFAULT_CRIS_AXIS_LINUX_GNU.
553 (symbols_have_leading_underscore): Similar.
554 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
556 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
558 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
559 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
560 FPU_ARCH_FPA for AOUT.
561 (md_begin): Don't try to guess the floating point architecture from
562 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
564 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
566 * configure.in: Add i386-netbsd-gnu target.
567 * configure: Regenerate.
569 2003-06-12 Tom Tromey <tromey@redhat.com>
571 * doc/as.texinfo (Comm): Added @node. Moved before CFI
574 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
576 * config/tc-mips.c (append_insn): In a compound relocation, take the
577 field width from the final (outermost) operator.
579 2003-06-11 Richard Henderson <rth@redhat.com>
581 * dw2gencfi.c (struct cfi_escape_data): New.
582 (cfi_add_CFA_nop): Remove.
583 (CFI_escape, dot_cfi_escape): New.
584 (dot_cfi): Remove nop.
585 (cfi_pseudo_table): Remove nop; add escape.
586 (output_cfi_insn): Likewise.
587 (select_cie_for_fde): Stop on escape.
588 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
589 * read.c, read.h (do_parse_cons_expression): New.
590 * doc/as.texinfo (.cfi_escape): New.
592 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
594 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
595 (s_cprestore): Likewise.
596 (s_cpreturn): Likewise.
598 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
600 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
603 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
605 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
606 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
607 exceptions from size assert. Remove most of the addend fixup
608 specialcasing. Remove value, use valP directly. simplify fx_addnumber
609 handling. Remove zero addend specialcases.
610 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
611 the addend fixup specialcase.
612 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
614 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
616 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
617 in the RELOC_EXPANSION_POSSIBLE case.
619 2003-06-11 Alan Modra <amodra@bigpond.net.au>
621 * config/tc-i960.c (line_comment_chars): Add '#'.
622 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
624 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
626 * po/Make-in (DESTDIR): New.
627 (install-data-yes): Support $(DESTDIR).
628 (uninstall): Likewise.
630 2003-06-11 Alan Modra <amodra@bigpond.net.au>
632 * Makefile.am: Run "make dep-am".
633 * Makefile.in: Regenerate.
634 * po/POTFILES.in: Regenerate.
636 2003-06-10 Doug Evans <dje@sebabeach.org>
638 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
640 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
641 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
642 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
644 2003-06-10 Alan Modra <amodra@bigpond.net.au>
645 Gary Hade <garyhade@us.ibm.com>
647 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
648 (md_apply_fix3): Special case lq insn.
650 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
652 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
653 lists. Allow single-register ranges.
655 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
657 * config/tc-h8300.c (h8300sxnmode): New.
658 (md_pseudo_table): Add .h8300sxn entry.
660 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
662 * NEWS: Updated for the new -n option for the i386 assembler.
664 * config/tc-i386.c (optimize_align_code): New.
665 (md_shortopts): Add 'n'.
666 (md_parse_option): Handle 'n'.
667 (md_show_usage): Add '-n'.
669 * config/tc-i386.h (optimize_align_code): Declared.
670 (md_do_align): Optimize code alignment only if optimize_align_code
673 * doc/as.texinfo: Add the new -n option.
675 * doc/c-i386.texi: Document the new -n option.
677 2003-06-07 Richard Henderson <rth@redhat.com>
679 * doc/as.texinfo: Document .cfi_rel_offset.
681 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
682 (cfi_add_CFA_offset): Detect invalid offsets.
683 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
684 (cfi_add_CFA_restore_state): Restore it.
685 (CFI_rel_offset): New.
686 (cfi_pseudo_table): Add it.
687 (dot_cfi): Handle it.
689 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
691 * app.c (do_scrub_chars): Add states 14 and 15 to handle
694 2003-06-05 Michael Snyder <msnyder@redhat.com>
696 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
697 (build_bytes): Ditto.
699 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
701 * config/tc-h8sx.c (DMODE): Remove.
702 (colonmod24): Don't choose a default if the operand is a 16-bit
704 (fix_operand_size): New function.
705 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
706 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
708 2003-06-05 Michal Ludvig <mludvig@suse.cz>
710 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
711 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
712 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
713 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
714 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
715 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
716 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
717 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
718 (cfi_pseudo_table): New directives .cfi_return_column,
719 .cfi_restore, .cfi_undefined, .cfi_same_value,
720 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
721 (dot_cfi, output_cfi_insn): Handle new directives.
722 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
723 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
724 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
726 2003-06-04 Richard Henderson <rth@redhat.com>
728 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
730 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
732 2003-06-04 Richard Henderson <rth@redhat.com>
734 * config/tc-alpha.c (s_alpha_usepv): New.
735 (md_pseudo_table): Add it.
736 (alpha_cfi_frame_initial_instructions): New.
737 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
738 (tc_cfi_frame_initial_instructions): New.
739 * doc/c-alpha.texi: Document .usepv.
741 2003-06-04 Jakub Jelinek <jakub@redhat.com>
743 * as.c (show_usage): Document --execstack and --noexecstack.
744 (parse_args): Add --execstack and --noexecstack.
745 (main): Create .note.GNU-stack section if --execstack or
746 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
747 * as.h (flag_execstack, flag_noexecstack): New.
749 2003-06-03 Chris Demetriou <cgd@broadcom.com>
751 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
752 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
753 (OPTION_MISC_BASE): New defines.
754 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
755 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
756 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
757 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
758 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
759 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
760 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
761 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
762 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
763 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
764 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
765 (OPTION_TRAP): Redefine in terms of new defines.
766 (md_longopts): Reorder entries.
768 2003-05-14 Michael Snyder <msnyder@redhat.com>
769 From Bernd Schmidt <bernds@redhat.com>
770 and Michael Snyder <msnyder@redhat.com>
771 and Alexandre Oliva <aoliva@redhat.com>
772 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
773 * config/tc-h8300.h: Ditto.
775 2003-06-03 Nick Clifton <nickc@redhat.com>
777 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
778 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
779 before calling bfd_reloc_type_lookup.
781 2003-06-02 Alan Modra <amodra@bigpond.net.au>
783 * read.c (emit_expr): Set dot_value.
784 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
786 2003-06-02 Alan Modra <amodra@bigpond.net.au>
788 * macro.c (sub_actual): Don't lose string if it turns out that
789 &string wasn't an arg.
791 2003-05-31 Richard Henderson <rth@redhat.com>
793 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
794 (cfi_finish): Set flag_traditional_format around .eh_frame data.
796 2003-05-29 Richard Henderson <rth@redhat.com>
798 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
799 (all_frame_data, plast_frame_data, cur_frame_data): New.
800 (s_alpha_ent): Record data for dwarf2 cfi.
801 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
802 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
803 * config/tc-alpha.h (md_end): New.
804 (DWARF2_DEFAULT_RETURN_COLUMN): New.
805 (DWARF2_CIE_DATA_ALIGNMENT): New.
807 2003-05-29 Nick Clifton <nickc@redhat.com>
809 * configure.in: Add i386-*-freebsd* entry.
810 * configure: Regenerate.
812 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
814 * config/tc-m32r.c: Amend comment to refer to Renesas
816 2003-05-27 Richard Henderson <rth@redhat.com>
818 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
820 (current_location): Use symbol_temp_new_now.
821 * stabs.c (s_stab_generic): Use symbol_temp_new.
822 * symbols.c (temp_label_name): Remove.
823 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
825 2003-05-27 Richard Henderson <rth@redhat.com>
827 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
828 * as.c (main): Always call cfi_finish.
829 * config/tc-i386.c (x86_dwarf2_return_column): New.
830 (x86_cie_data_alignment): New.
831 (md_begin): Set them.
832 (tc_x86_cfi_init): Remove.
833 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
834 return int, not unsigned long; don't as_bad here.
835 (tc_x86_frame_initial_instructions): Streamline; use
837 * config/tc-i386.h (tc_cfi_init): Remove.
838 (DWARF2_DEFAULT_RETURN_COLUMN): New.
839 (DWARF2_CIE_DATA_ALIGNMENT): New.
841 2003-05-27 Richard Henderson <rth@redhat.com>
843 * symbols.c (temp_label_name): New.
844 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
845 (symbol_set_value_now): New.
846 * symbols.h: Prototype them.
847 * dwarf2dbg.c: Use them.
848 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
850 2003-05-23 Jason Eckhardt <jle@rice.edu>
852 * config/tc-i860.c (target_xp): Declare variable.
853 (OPTION_XP): Declare macro.
854 (md_longopts): Add option -mxp.
855 (md_parse_option): Set target_xp.
856 (md_show_usage): Add -mxp usage.
857 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
858 (md_assemble): Don't try expansions if XP_ONLY is set.
859 * doc/c-i860.texi: Document -mxp option and i860XP support.
861 2003-05-23 Eric Christopher <echristo@redhat.com>
863 * config/tc-mips.c (macro_build_jalr): Warning patrol.
865 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
867 * config/tc-mips.c (append_insn): Use actual relocation size for new
868 fixp's. Don't relax overflow checking for partial_inplace relocations.
869 Use the actual relocation type in combined relocs, not just the type
871 (macro_build_jalr): Use actual relocation size for new fix.
872 (s_cpsetup, s_gpdword): Likewise.
874 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
876 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
878 2003-05-22 Nick Clifton <nickc@redhat.com>
880 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
881 section relative offsets for relocs that will not be based on the
883 (xstormy16_md_apply_fix3): Remove previous patch to this
886 2003-05-07 Eric Christopher <echristo@redhat.com>
888 * config/tc-mips.c (mips_abicalls): New variable.
889 (md_parse_option): Use.
892 (mips_elf_final_processing): Set EF_MIPS_PIC and
893 EF_MIPS_CPIC dependent on above.
895 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
897 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
899 2003-05-21 Nick Clifton <nickc@redhat.com>
901 * config/obj-elf.c: Include dwarf2dbg.h.
902 (elf_pseudo_tab): Add .file and .loc.
903 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
904 * config/tc-arm.c: Likewise.
905 * config/tc-h8300.c: Likewise.
906 * config/tc-hppa.c: Likewise.
907 * config/tc-ia64.c: Likewise.
908 * config/tc-m68hc11.c: Likewise.
909 * config/tc-m68k.c: Likewise.
910 * config/tc-mmix.c: Likewise.
911 * config/tc-mn10300.c: Likewise.
912 * config/tc-ppc.c: Likewise.
913 * config/tc-sh.c: Likewise.
914 * config/tc-sparc.c: Likewise.
915 * config/tc-v850.c: Likewise.
916 * config/tc-frv.c: Likewise, and remove redundant inclusion of
918 * config/tc-ip2k.c: Likewise.
919 * config/tc-iq2000.c: Likewise.
920 * config/tc-xstormy16.c: Likewise.
921 * config/tc-xtensa.c: Likewise.
922 * Makefile.am: Regenerate dependencies.
923 * Makefile.in: Regenerate.
924 * aclocal.m4: Regenerate.
925 * config.in: Regenerate.
926 * configure: Regenerate.
927 * po/POTFILES.in: Regenerate.
928 * po/gas.pot: Regenerate.
930 2003-05-21 Nick Clifton <nickc@redhat.com>
932 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
933 BFD_ASSEMBLER targets.
934 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
935 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
936 defining BFD_ASSEMBLER.
938 2003-05-20 Michal Ludvig <mludvig@suse.cz>
940 * as.c (main): Remove tc_cfi_init().
941 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
943 (cfi_pseudo_table): Add "cfi_register" entry.
944 (cfi_make_insn): Handle CFA_register.
945 (cfi_output_insn): Ditto.
947 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
948 (dot_cfi_endproc): Reuse already emitted CIEs.
949 * testsuite/gas/cfi/cfi-i386.d: New pattern.
950 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
952 2003-05-20 Nick Clifton <nickc@redhat.com>
954 * config/tc-xstormy16.c: Include dwarf2dbg.h.
955 (md_pseudo_table): Add entries for .loc and .line.
957 2003-05-20 Alan Modra <amodra@bigpond.net.au>
959 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
961 (dot_cfi_endproc): Avoid C99 construct.
963 2003-05-20 Michal Ludvig <mludvig@suse.cz>
965 * dw2gencfi.c, dw2gencfi.h: New files.
966 * config/tc-i386.c (tc_x86_cfi_init): New function.
967 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
968 * as.c (parse_args): Set verbose flag on --verbose.
969 (main): Call tc_cfi_init()/cfi_finish().
970 * as.h (verbose): New external variable.
971 * read.c (pobegin): Insert CFI pops to the list.
972 * symbols.c (local_symbol_make): Make symbol external.
973 * symbols.h (local_symbol_make): New prototype.
974 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
975 * Makefile.in: Regenerate.
976 * doc/as.texinfo: Added node "CFI directives" with description of
977 all implemented .cfi_* directives.
978 * doc/Makefile.in: Regenerate.
979 * po/POTFILES.in: Regenerate.
981 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
983 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
985 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
987 2003-05-18 Jason Eckhardt <jle@rice.edu>
989 * config/tc-i860.c (i860_process_insn): Initialize fc after
990 each opcode mismatch.
992 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
994 * configure.in: Accept i[3-7]86 variants.
995 * configure: Regenerate.
997 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
999 * config/tc-mips.h: Fix comment formatting.
1001 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1003 * read.c (old_buffer, old_input, old_limit): Remove variables.
1004 (read_a_source_file): Delete label contin.
1005 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1006 input as with macros, instead of in separate old_* variables.
1007 Zero-terminate string being scrubbed.
1009 2003-05-12 Nick Clifton <nickc@redhat.com>
1011 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1012 (md_assemble): Reset skipping_fptr.
1013 (md_operand): If @fptr() is followed by a minus sign, set
1014 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1015 @fptr is detected, ignore it and reset skipping_fptr.
1017 2003-05-11 Jason Eckhardt <jle@rice.edu>
1019 * config/tc-i860.c (MAX_FIXUPS): Define.
1020 (struct i860_fi fi[]): New struct.
1021 (struct i860_it the_insn): Add above as member and move fields
1022 exp, reloc, pcrel and fup into i860_fi.
1023 (md_assemble): Replace all instances of exp, reloc, pcrel
1024 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1025 Add a loop to possibly emit multiple fix-ups for each insn.
1026 (i860_process_insn): Likewise.
1027 (i860_get_expression): Likewise.
1028 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1030 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1032 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1034 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1036 * config/tc-ia64.c (alias_hash): New.
1037 (alias_name_hash): New.
1038 (secalias_hash): New.
1039 (secalias_name_hash): New.
1040 (md_pseudo_table): Add "secalias".
1041 (md_begin): Initialize alias_hash, alias_name_hash,
1042 secalias_hash and secalias_name_hash.
1043 (struct alias): New.
1044 (dot_alias): Implement .alias and .secalias directives.
1046 (ia64_adjust_symtab): New.
1048 (ia64_frob_file): New.
1050 * config/tc-ia64.h (ia64_adjust_symtab): New.
1051 (tc_adjust_symtab): Defined.
1052 (ia64_frob_file): New.
1053 (tc_frob_file): Defined.
1055 2003-05-07 Dmitry Diky <diwil@mail.ru>
1057 * tc-msp430.c: Add missing lines to known cpus list.
1059 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1061 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1062 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1063 * config.in, configure: Rebuilt.
1065 2003-05-05 H.J. Lu <hjl@gnu.org>
1067 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1068 howto->partial_inplace is false.
1070 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1072 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1073 symbol_used_in_reloc_p check.
1074 (md_apply_fix3): Remove check for howto->pcrel_offset.
1076 2003-05-03 H.J. Lu <hjl@gnu.org>
1078 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1079 fatal error for unknown section attribute.
1081 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1082 unknown section attribute.
1083 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1084 * config/tc-ppc.c (ppc_section_letter): Likewise.
1086 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1087 (ia64_elf_section_type): Accept "unwind".
1089 2003-05-02 H.J. Lu <hjl@gnu.org>
1091 * read.h (demand_copy_string): New.
1093 * config/tc-alpha.c (demand_copy_string): Removed.
1095 2003-05-02 Michael Snyder <msnyder@redhat.com>
1097 * write.h (FAKE_LABEL_NAME): Allow override
1098 (for targets that like eg. a leading dot in a local label).
1100 2003-05-02 Nick Clifton <nickc@redhat.com>
1102 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1103 addend with the symbol's value for pc-relative relocations against
1104 a defined symbol - this will be done automatically.
1106 2003-05-01 H.J. Lu <hjl@gnu.org>
1108 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1111 2003-05-01 H.J. Lu <hjl@gnu.org>
1113 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1115 * config/obj-elf.c (obj_elf_section_name): Call
1116 tc_canonicalize_section_name if it is defined.
1118 2003-05-01 H.J. Lu <hjl@gnu.org>
1120 * config/tc-ia64.c (ia64_check_label): New.
1121 * config/tc-ia64.h (tc_check_label): New.
1123 * read.c (read_a_source_file): Call tc_check_label after
1124 creating a user-defined label if defined.
1126 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1128 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1129 -be and split strings to below 509 bytes in length.
1131 2003-05-01 Christian Groessler <chris@groessler.org>
1133 * expr.h: Fix comments in operatorT typedef.
1134 * config/tc-z8k.c: Add 2003 to copyright message.
1135 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1136 decides by the parameter.
1137 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1138 command line argument was given to select the intended
1140 (get_interrupt_operand): Warn if NOP type code is emitted.
1141 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1142 (apply_fix): Call newfix with additional 'size' parameter.
1143 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1144 4 bit immediate arguments.
1145 (md_longopts): Add 'linkrelax' option.
1146 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1147 variable when 'linkrelax' command line option is specified.
1148 (md_show_usage): Display 'linkrelax' option.
1149 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1150 R_CALLR and R_REL16.
1151 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1153 2003-04-30 H.J. Lu <hjl@gnu.org>
1155 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1156 (ia64_float_to_chars): Likewise.
1157 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1158 and ia64_float_to_chars by tc_segment_info_data.endian from
1159 the current segment if byteorder == -1.
1160 (md_begin): Call dot_byteorder to set target_big_endian.
1161 (md_atof): Call ia64_float_to_chars to convert floating point.
1162 (ia64_float_to_chars_bigendian): New function.
1163 (ia64_float_to_chars_littleendian): Likewise.
1164 (ia64_elf_section_change_hook): Likewise.
1166 * config/tc-ia64.h (ia64_number_to_chars): New.
1167 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1168 (ia64_elf_section_change_hook): New.
1169 (md_elf_section_change_hook): Defined.
1170 (ia64_segment_info_type): New struct.
1171 (TC_SEGMENT_INFO_TYPE): Defined.
1173 2003-04-30 H.J. Lu <hjl@gnu.org>
1175 * config/tc-ia64.c (md_section_align): Deleted.
1177 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1178 (md_section_align): New.
1180 2003-04-30 H.J. Lu <hjl@gnu.org>
1182 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1184 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1186 (md_atof): Add 6 byte padding of zero for real16.
1188 2003-04-29 Nick Clifton <nickc@redhat.com>
1190 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1191 start of a version name.
1193 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1195 * configure.in (mips-*-*n*bsd*): Replace with...
1196 (mips-*-netbsd*, mips-*-openbsd*): These.
1197 * configure: Regenerate.
1199 2003-04-28 H.J. Lu <hjl@gnu.org>
1201 * config/tc-hppa.c (hppa_symbol_chars): New.
1202 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1204 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1206 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1208 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1210 * NEWS: Belatedly mention support for MIPS32 Release 2.
1212 2003-04-24 Eric Christopher <echristo@redhat.com>
1214 * config/tc-mips.c (nopic_need_relax): Revert previous
1217 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1219 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1220 * config/tc-h8300.c (dwarf2dbg.h): Include
1221 (md_pseudo_table): Handle .loc and .file
1222 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1223 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1224 * Makefile.in: Regenerate.
1226 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1228 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1229 (md_pseudo_table): Add h8300hn, h8300sn.
1230 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1231 * doc/c-h8300.texi : Add documentation for new machine directives.
1233 2003-04-24 Nick Clifton <nickc@redhat.com>
1235 * config/tc-ppc.c (ppc_symbol_chars): Define.
1236 * config/tc-ppc.h (tc_symbol_chars): Define.
1238 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1240 * config/tc-sh.c: Amend comment to refer to SuperH.
1241 * config/tc-sh.h: Likewise.
1242 (LISTING_HEADER): Amend to refer to SuperH.
1243 * config/tc-sh64.c: Change comment to refer to SuperH.
1244 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1245 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1246 * doc/c-sh.texi: Amend to refer to SuperH.
1247 Add SuperH architecture documentation references.
1248 * doc/c-sh64.texi: Change to refer to SuperH.
1250 2003-04-23 H.J. Lu <hjl@gnu.org>
1252 * app.c (do_scrub_chars): More checks for valid labels.
1254 2003-04-22 H.J. Lu <hjl@gnu.org>
1256 * app.c (do_scrub_chars): Check for valid label.
1258 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1260 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1261 references to Renesas M32R.
1262 * doc/c-m32r.texi: Likewise.
1264 2003-04-21 Richard Henderson <rth@redhat.com>
1266 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1267 (out_file_list): Assign non-null filename after generating error.
1269 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1271 * ehopt.c (check_eh_frame): For aug_size == 0
1272 in state_seeing_aug_size state skip the state_skipping_aug
1275 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1277 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1279 * doc/c-h8500.texi: Likewise.
1280 * doc/c-sh.texi: Likewise.
1281 * doc/c-sh64.texi: Likewise.
1282 * doc/h8.texi: Likewise.
1283 * config/tc-h8300.c: Likewise.
1284 * config/tc-h8300.h: Likewise.
1285 * config/tc-h8500.c: Likewise.
1286 * config/tc-h8500.h: Likewise.
1287 * config/tc-sh.c: Likewise.
1288 * config/tc-sh.h: Likewise.
1289 * config/tc-sh64.c: Likewise.
1290 * config/tc-sh64.h: Likewise.
1292 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1294 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1295 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1296 (append_insn): When filling delay slots with instructions
1297 that have fixups that tc_gen_reloc might consider modifyable
1298 in variant frags, start a new frag.
1299 (load_address): Generate GOT_DISP with of without offset
1300 depending on whether symbol is local. For -xgot, use
1301 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1302 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1303 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1304 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1305 <ld_st>: In NewABI with small got, always use
1306 GOT_PAGE/GOT_OFST, with the latter in the load/store
1307 instruction. With big got, use GOT_HI16/GOT_LO16 or
1309 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1310 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1311 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1312 (md_convert_frag): Use memmove for safe copying of overlapping
1315 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1317 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1318 -mlong, -mshort-double and -mlong-double options; use table @code.
1319 (M68HC11-Syntax): Update to document 68HC12 operands.
1320 (M68HC11-Modifiers): New section for operand modifiers.
1321 (M68HC11-Directives): New section for specific assembler directives.
1322 (M68HC11-Branch): Fix Overfull hbox error.
1324 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1326 * config/tc-mips.c (macro): Add comments explaining the rationale
1329 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1331 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1332 constant address that Alexandre took out by accident. Reject
1333 64-bit addresses that are not sign extensions of 32 bits only if
1334 we don't support 64-bit address constants.
1336 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1338 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1340 2003-04-08 Nick Clifton <nickc@redhat.com>
1342 * as.c (perform_an_assembly_pass): If using cgen, call
1344 * cgen.c (gas_cgen_begin): New function. If
1345 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1346 otherwise call cgen_clear_signed_overflow_ok.
1347 * cgen.h: Prototype gas_cgen_begin.
1349 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1351 * write.c (write_relocs): Remove unused variable.
1353 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1355 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1356 (macro): Use new macro to decide whether to emit constant address
1357 as 32 or 64 bits if addresses are 32-bit wide but registers are
1360 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1362 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1363 (M6811_OP_PAGE_ADDR): New internal define.
1364 (get_operand): New modifier %page and %addr to obtain page and
1365 address part of a far-function.
1366 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1367 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1369 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1370 (find_opcode): Add comment.
1371 (md_estimate_size_before_relax): Force relocation of
1372 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1373 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1374 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1375 on the symbol itself so that DWARF2 strings are merged correctly.
1377 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1379 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1380 default tic4x target format to 'coff2-tic4x'.
1381 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1383 * config/tc-tic4x.h: Ditto
1385 2003-04-03 Nick Clifton <nickc@redhat.com>
1387 * NEWS: Mention support for Xtensa architecture.
1389 2003-04-02 Philip Blundell <philb@gnu.org>
1391 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1393 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1395 * config/tc-mips.c (macro2): Adjust implementation of
1396 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1397 in the case where the source and destination registers
1400 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1402 * Makefile.am (CPU_TYPES): Add xtensa.
1403 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1404 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1405 (xtensa-relax.o): New target.
1407 * Makefile.in: Regenerate.
1408 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1409 extra_objects for xtensa targets.
1410 * configure: Regenerate.
1411 * write.c (write_object_file): Add new md_post_relax_hook.
1412 * config/tc-xtensa.c: New file.
1413 * config/tc-xtensa.h: Likewise.
1414 * config/xtensa-istack.h: Likewise.
1415 * config/xtensa-relax.c: Likewise.
1416 * config/xtensa-relax.h: Likewise.
1417 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1418 * doc/Makefile.in: Regenerate.
1419 * doc/all.texi: Set new XTENSA variable.
1420 * doc/as.texinfo: Set new Xtensa variable. Describe
1421 Xtensa-specific options. Define line comment character for
1422 Xtensa. Add Xtensa processors to list of ELF targets where
1423 alignment is specified in bytes. Add new Xtensa-Dependent node.
1424 Add acknowledgements for those contributing to the Xtensa port.
1425 * doc/internals.texi: Describe new md_post_relax_hook.
1426 * doc/c-xtensa.texi: New file.
1428 2003-04-01 Nick Clifton <nickc@redhat.com>
1429 Richard Earnshaw <rearnsha@arm.com>
1431 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1432 (ARM_ARCH_IWMMXT): Simplify.
1433 (insns): Place iwmmx instructions in correct place in table.
1434 (arm_add_note): New function: Add a note entry to a .note section.
1435 (md_begin): Make the default architecture be unknown.
1436 Suppress the creation of an arm note section.
1438 2003-03-26 Eric Christopher <echristo@redhat.com>
1440 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1442 2003-03-25 Stan Cox <scox@redhat.com>
1443 Nick Clifton <nickc@redhat.com>
1445 Contribute support for Intel's iWMMXt chip - an ARM variant:
1447 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1448 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1449 (enum wreg_type, enum iwmmxt_insn_type): New types.
1450 (wr_register, wc_register, wcg_register): New macros.
1451 (iwmmxt_table): New variable.
1452 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1453 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1454 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1455 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1456 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1457 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1458 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1459 cp_byte_address_offset, cp_byte_address_required_here,
1460 check_iwmmxt_insn): New functions.
1461 (asm_opcode_insns): Add iWMMXt instructions.
1462 (md_begin): Set the mach value for iWMMXt targets. Create a note
1463 section to identify iwmmxt binaries.
1464 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1465 * doc/c-arm.texi: Document the support for the iWMMXt.
1466 * NEWS: Mention new support.
1468 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1470 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1471 * doc/all.texi: Likewise.
1472 * doc/c-tic54x.texi: Likewise.
1474 2003-03-21 Andreas Schwab <schwab@suse.de>
1476 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1477 avoid aliasing issue.
1479 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1481 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1482 (current_arch_mask): Rename to current_mode_mask.
1483 (current_arch_requested): Remove variable.
1484 (current_cpu): New variable.
1485 (init_default_arch): Set defaults values for s390_arch_size,
1486 current_mode_mask and current_cpu.
1487 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1488 (md_begin): Replace current_arch_mask by current_cpu.
1489 (md_assemble): Adapt check and error message to current_mode_mask and
1492 2003-03-09 James E Wilson <wilson@tuliptree.org>
1494 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1495 * read.c (get_line_sb): Return end of line character or '\n' if
1496 it is zero or non-existent.
1498 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1500 * config/tc-mips.c (mips_validate_fix): New function.
1501 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1502 (mips_validate_fix): Declare.
1504 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1506 * Reverted 2003-03-02's patch.
1508 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1510 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1511 (TC_DWARF2_EMIT_OFFSET): Provide default.
1512 (out_debug_aranges, out_debug_info): Use it.
1513 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1514 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1515 (ia64_gen_real_reloc_type): ... here.
1516 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1518 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1520 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1521 (s_mips_ent): Likewise.
1523 2003-03-04 Dmitry Diky <diwil@mail.ru>
1525 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1526 and x1123 devices, add missed x437.
1527 (md_show_usage): Sort device list.
1529 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1531 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1532 (md_begin): Use preset_target_arch.
1533 (md_longopts): Make isa option unconditional.
1534 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1535 set preset_target_arch.
1536 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1537 by -S_GET_VALUE (fixP->fx_subsy).
1538 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1539 and the addend is 0.
1540 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1541 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1543 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1545 * config/tc-mips.c (append_insn): Add handling of
1546 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1547 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1548 misaligned address and reange overflow.
1549 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1550 earlier warnings about misaligned address and reange overflow.
1551 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1552 (md_apply_fix): Likewise. Fix warning output.
1553 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1554 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1555 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1557 2003-02-21 Nick Clifton <nickc@redhat.com>
1559 * NEWS: Mention availability of test generator program.
1561 2003-02-21 Miles Bader <miles@gnu.org>
1563 * config/tc-v850.c (system_registers): Add v850e debug registers.
1564 (system_register_name): Accept up to 27 (the last v850e sys register).
1566 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1568 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1569 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1570 Capitalize section headings consistently. Format index entries more
1571 consistently. Unconditionalize text about whether text and data
1572 sections are alterable. Use @ifnottex for alternatives to @tex output
1573 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1574 .size and .type directives. Be more polite about bad bug reports.
1575 Move FDL into a separate file.
1576 * doc/fdl.texi: New file.
1578 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1580 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1581 (macro): Check it to decide whether a new frag is needed.
1582 (my_getSmallExpression): Set it.
1584 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1586 * cgen.c: Fix typo: intial -> initial.
1588 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1590 * app.c (do_scrub_chars): Handle '||' in two states.
1592 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1594 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1595 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1597 2003-02-11 Uwe Stieber <uwe@wwws.de>
1599 * configure.in: Add support for kaOS as cross build target system.
1600 * configure: Regenerated.
1602 2003-02-10 Nick Clifton <nickc@redhat.com>
1604 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1605 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1606 bfd_mach_arm_ep9312 machine number.
1608 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1610 * config/tc-mips.c (reloc_needs_lo_p): New function.
1611 (fixup_has_matching_lo_p): New function.
1612 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1613 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1614 if that fixup already has a matching %lo(). Don't call frag_wane here.
1615 (macro): Call frag_wane here if the last unmatched hi was in the
1617 (pic_need_relax): New function, split out from...
1618 (md_estimate_size_before_relax): ...here.
1619 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1620 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1622 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1624 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1626 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1628 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1631 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1633 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1634 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1635 accept x@got+off etc.
1636 (md_assemble): Handle TLS relocs.
1637 (ppc_force_relocation): Force for all TLS relocs.
1638 (ppc_fix_adjustable): Likewise.
1639 (md_apply_fix3): Handle TLS relocs.
1641 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1643 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1644 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1646 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1648 * config/tc-mips.c (enum small_ex_type): Remove.
1649 (imm_unmatched_hi): Remove.
1650 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1651 argument from calls to append_insn.
1652 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1654 (macro_build): Update append_insn calls.
1655 (mips16_macro_build, macro_build_lui): Likewise.
1656 (mips_ip): Rework handling of small expressions. Move explicit
1657 relocation handling into my_getSmallExpression. Assume that the
1658 value of 'o' operands is zero if there is only one bracketed
1660 (percent_op): Make constant. Record the BFD relocation code
1661 associated with each operator.
1662 (my_getSmallParser, my_getPercentOp): Remove.
1663 (parse_relocation): New function.
1664 (my_getSamllExpression): Rework. Fill in relocations here
1665 rather than in mips_ip.
1667 2003-01-29 Nick Clifton <nickc@redhat.com>
1669 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1670 assembler's handling of # <linenum> "<filename>" directives work.
1672 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1674 * dwarf2dbg.c: Include filenames.h.
1675 (struct file_entry): Make filename const char *.
1676 (dirs, dirs_in_use, dirs_allocated): New variables.
1677 (get_filenum): Add NUM argument. Build directory table.
1678 (dwarf2_where): Adjust caller.
1679 (dwarf2_directive_file): Use get_filenum to allocate
1680 slot in file and directory tables.
1681 (dwarf2_directive_loc): Recreate full filename from
1682 directory and filename part if needed for listing.
1683 (out_file_list): Output directory table.
1684 Output main source file dirname before its filename.
1686 2003-01-28 Dmitry Diky <diwil@mail.ru>
1688 * config/tc-msp430.c: Replace occurences of 'tolower' with
1691 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1693 * config/tc-ia64.c (dot_vframesp): Correct error message.
1694 (dot_vframepsp): Ditto.
1696 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1698 * configure.in (em): Set to irix on all Irix systems.
1699 * configure: Rebuilt.
1700 * config/te-irix.h: New file.
1701 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1702 whether to use Irix-specific 64-bit format.
1704 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1706 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1708 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1710 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1711 (tc_gen_reloc): Handle TLS relocs.
1712 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1713 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1715 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1716 (obj_elf_type): Handle tls_object.
1718 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1720 * config/tc-s390.c (s390_tls_suffix): New function.
1721 (elf_suffix_type): Add suffix enums for TLS relocations.
1722 (s390_elf_suffix): Add suffix strings for TLS relocations.
1723 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1725 (md_gather_operands): Map new instruction operand/elf suffix
1726 combinations for TLS to bfd relocations.
1727 (tc_s390_fix_adjustable): Add new TLS relocations.
1728 (tc_s390_force_relocation): Likewise.
1729 (md_apply_fix3): Likewise.
1731 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1733 * as.h: Update copyright date.
1734 * symbols.c: Likewise.
1735 * config/tc-d10v.h: Likewise.
1736 * config/tc-fr30.h: Likewise.
1737 * config/tc-i960.h: Likewise.
1738 * config/tc-mips.h: Likewise.
1740 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1741 (MD_APPLY_SYM_VALUE): Move.
1743 2003-01-23 Nick Clifton <nickc@redhat.com>
1745 * NEWS: Announce sh2e support.
1748 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1749 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1750 (sh_elf_final_processing): Handle arch_sh2e.
1752 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1754 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1755 * symbols.h (S_FORCE_RELOC): Likewise.
1756 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1757 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1758 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1759 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1760 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1761 * write.c (generic_force_reloc): New function.
1762 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1763 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1764 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1765 * as.h (generic_force_reloc): Declare.
1766 * doc/internals.texi (S_FORCE_RELOC): Update.
1767 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1769 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1770 generic_force_reloc.
1771 (alpha_fix_adjustable): Likewise.
1772 * config/tc-arm.c (arm_force_relocation): Likewise.
1773 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1774 * config/tc-frv.c (frv_force_relocation): Likewise.
1775 * config/tc-i386.c (md_apply_fix3): Likewise.
1776 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1777 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1778 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1779 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1780 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1781 * config/tc-mips.c (mips_force_relocation): Likewise.
1782 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1783 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1784 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1785 * config/tc-sh.c (sh_force_relocation): Likewise.
1786 (md_pcrel_from_section): Likewise.
1787 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1788 * config/tc-v850.c (v850_force_relocation): Likewise.
1789 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1790 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1791 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1792 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1794 * config/tc-d10v.c (d10v_force_relocation): Delete.
1795 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1796 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1797 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1798 * config/tc-fr30.c (fr30_force_relocation): Delete.
1799 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1800 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1801 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1802 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1803 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1804 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1805 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1806 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1807 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1808 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1809 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1810 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1811 * config/tc-i386.c (i386_force_relocation): Delete.
1812 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1814 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1815 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1816 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1817 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1819 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1820 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1822 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1824 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1825 sh64_elf_section_data.
1826 * config/tc-sh64.h: Include elf32-sh64.h.
1827 * config/tc-m68hc11.c: Don't include stdio.h.
1828 (md_show_usage): Fix missing continuation.
1829 * Makefile.am: Run "make dep-am".
1830 * Makefile.in: Regenerate.
1832 2003-01-22 Nick Clifton <nickc@redhat.com>
1834 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1836 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1838 * configure.in: Handle *-*-aros*.
1839 * configure: Regenerated from configure.in.
1841 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1843 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1844 gotplt and pltoff relocations.
1845 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1846 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1847 gotplt and pltoff to bfd relocations.
1848 (md_gather_operands): Map new instruction operand/elf suffix
1849 combinations to bfd relocations.
1850 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1851 to the list of unadjustable relocations.
1852 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1853 and pltoff relocations.
1854 (md_apply_fix3): Add the new relocations.
1856 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1858 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1859 with a subsy symbol.
1861 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1863 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1864 of relocs for memory bank addressing.
1866 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1868 * config/tc-m68hc11.c (md_show_usage): Update usage.
1869 (md_parse_option): Recognize -m68hcs12.
1870 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1872 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1874 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1876 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1878 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1880 * Makefile.am: Run "make dep-am".
1881 * Makefile.in: Regenerate.
1882 * po/POTFILES.in: Regenerate.
1884 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1886 * read.c (get_absolute_expr): New, split out from..
1887 (get_absolute_expression): ..here.
1888 * read.h (get_absolute_expr): Declare.
1889 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1890 Trim size to arch bits_per_address, and test for negative input
1891 via get_absolute_expr.
1893 2003-01-07 DJ Delorie <dj@redhat.com>
1895 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1897 (xstormy16_md_apply_fix3): Use adjustment.
1899 2003-01-02 Ben Elliston <bje@redhat.com>
1901 * configure.in: Add iq2000-elf target.
1902 * configure: Regenerate.
1903 * config/tc-iq2000.c: New file.
1904 * config/tc-iq2000.h: Likewise.
1905 * po/gas.pot: Regenerate.
1907 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1909 * config/tc-mips.c: Update copyright years to include 2003.
1910 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1911 Additionally, clean up their code slightly and clean up their
1914 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1916 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1918 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1920 * doc/Makefile.in: Regenerate.
1922 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1924 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1925 of .init and .fini sections for array initializers and finalizers.
1927 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1929 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1930 the "+D" operand, which will be used only by the disassembler.
1932 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1934 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1936 * configure: Regenerate.
1937 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1938 (macro_build): Handle "K" operand.
1939 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1940 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1941 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1942 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1943 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1944 (validate_mips_insn): Implement "+" as a way to extend the
1945 allowed operands, and implement "K", "+A", "+B", and "+C"
1947 (OPTION_MIPS32R2): New define.
1948 (md_longopts): Add entry for OPTION_MIPS32R2.
1949 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1950 (md_parse_option): Handle OPTION_MIPS32R2.
1951 (s_mipsset): Reimplement handling of ".set mipsN" options
1952 and add support for ".set mips32r2".
1953 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1954 (md_show_usage): Document "-mips32r2" option.
1955 * doc/as.texinfo: Document "-mips32r2" option.
1956 * doc/c-mips.texi: Likewise.
1958 2002-12-30 Dmitry Diky <diwil@mail.ru>
1960 * configure.in: Add msp430 target.
1961 * configure: Regenerate.
1962 * Makefile.am: Add msp430 target.
1963 * Makefile.in: Regenerate.
1964 * config/tc-msp430.c: New file: msp430 assembler.
1965 * config/tc-msp430.h: New file: target macros for msp430.
1966 * doc/Makefile.am: Add msp430 target.
1967 * doc/Makefile.in: Regenerate.
1968 * doc/as.texinfo: Include msp430 documenation.
1969 * doc/all.texi: Enable msp430 documentation.
1970 * doc/c-msp430.texi: New file: document msp430 specific features
1973 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1975 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1976 (dwarf2_finish): Use it.
1977 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1978 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1980 2002-12-20 DJ Delorie <dj@redhat.com>
1982 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1983 BFD_RELOC_XSTORMY16_12.
1985 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1987 * doc/as.texinfo (Invoking): Typo fix.
1988 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1990 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1992 * doc/c-alpha.texi: Fix typos.
1993 * doc/c-arm.texi: Likewise.
1994 * doc/c-d10v.texi: Likewise.
1995 * doc/c-i370.texi: Likewise.
1996 * doc/c-i960.texi: Likewise.
1997 * doc/c-ia64.texi: Likewise.
1998 * doc/c-mmix.texi: Likewise.
1999 * doc/c-ns32k.texi: Likewise.
2000 * doc/c-pdp11.texi: Likewise.
2001 * doc/c-pj.texi: Likewise.
2002 * doc/c-sh64.texi: Likewise.
2003 * doc/c-sparc.texi: Likewise.
2004 * doc/c-tic54x.texi: Likewise.
2005 * doc/c-v850.texi: Likewise.
2006 * doc/c-vax.texi: Likewise.
2007 * doc/internals.texi: Likewise.
2009 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2011 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2012 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2013 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2014 arrange not to issue warnings about use of AT when AT is not
2017 2002-12-17 Nick Clifton <nickc@redhat.com>
2019 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2020 prevent it being confused with -k.
2022 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2024 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2025 has already been set up, use it.
2027 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2029 * ChangeLog-9295: Fix a typo.
2031 * config/tc-d10v.c: Fix a comment typo.
2032 * config/tc-dlx.c: Likewise.
2033 * config/tc-h8300.h: Likewise.
2034 * config/tc-h8500.h: Likewise.
2035 * config/tc-mips.c: Likewise.
2036 * config/tc-s390.c: Likewise.
2037 * config/tc-sh.h: Likewise.
2038 * config/tc-tic80.h: Likewise.
2039 * config/tc-w65.h: Likewise.
2040 * config/tc-z8k.c: Likewise.
2041 * config/tc-z8k.h: Likewise.
2042 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2044 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2046 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2047 Simplify sign extension. Remove redundant unsigned < 0 test.
2048 * config/tc-i960.c (md_ri_to_chars): Prototype.
2049 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2050 (dump_literals): Init brarsym, and test later instead of isforce.
2052 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2053 (parse): Constify line and lineptr.
2054 (md_begin): Calculate endop here.
2056 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2058 * config/obj-vms.c: Formatting. Include fnctl.h.
2059 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2060 (Object_Record_Offset): Make it a size_t.
2061 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2062 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2063 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2064 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2065 (vms_fixup_data_section <data_size>): Add here instead.
2066 * config/e-criself.c: Fix typo in last change.
2068 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2070 * write.c (write_object_file): Fix signed/unsigned warning.
2071 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2072 * config/e-criself.c (criself_bfd_name): Prototype.
2073 * config/obj-aout.c (s_sect): Remove unused function.
2074 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2075 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2076 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2077 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2078 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2079 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2080 (vms_fixup_text_section <text_siz>): Likewise.
2081 (synthesize_data_segment <data_size>): Likewise.
2082 (vms_fixup_xtors_section <sect_no>): Likewise.
2083 (structure_count): Don't use implicit int type.
2084 * config/tc-a29k.c (insert_sreg): Prototype.
2085 (define_some_regs): Prototype, make static.
2086 (parse_operand): Likewise.
2087 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2088 (md_show_usage <stream>): Likewise.
2089 (md_section_align <segment>): Likewise.
2090 (md_convert_frag <all args>): Likewise.
2091 (md_estimate_size_before_relax <all args>): Likewise.
2092 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2093 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2094 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2095 (md_undefined_symbol <name>): Likewise.
2096 (md_convert_frag <all args>): Likewise.
2097 (write_long <opcode>): Likewise.
2098 (tc_gen_reloc <seg>): Likewise.
2099 (md_estimate_size_before_relax <all args>): Likewise.
2100 (md_apply_fix3 <seg>): Likewise.
2101 (s_d30v_align <ignore>): Likewise.
2102 (build_insn): Correct format string.
2103 (md_apply_fix3): Likewise.
2104 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2105 (md_undefined_symbol <name>): Likewise.
2106 (md_convert_frag <all args>): Likewise.
2107 (md_cgen_lookup_reloc <insn>): Likewise.
2108 (md_begin): Delete unused vars.
2109 (md_assemble): Likewise.
2110 (md_estimate_size_before_relax): Likewise.
2111 (fr30_relax_frag): #if 0 out, seems unused.
2112 (md_atof): Remove declaration of atof_ieee.
2113 (restore_colon): Prototype.
2114 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2115 (frv_find_in_vliw): Likewise.
2116 (frv_debug_tomcat): Likewise.
2117 (frv_adjust_vliw_count): Likewise.
2118 (frv_tomcat_shuffle): Likewise.
2119 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2120 frv_find_in_vliw call.
2121 (md_atof): Remove declaration of atof_ieee.
2122 * config/tc-h8500.c (cons): Delete declaration.
2123 (md_begin <opcode>): Constify.
2124 (displacement_size, immediate_size, absolute_size): Remove.
2125 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2126 (tc_crawl_symbol_chain <headers>): Likewise.
2127 (md_undefined_symbol <name>): Likewise.
2128 (tc_headers_hook <headers>): Likewise.
2129 (md_parse_option <c,arg>): Likewise.
2130 (md_show_usage <stream>): Likewise.
2131 (md_convert_frag <headers, seg>): Likewise.
2132 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2133 (md_atof): Remove declaration of atof_ieee.
2134 (tc_aout_fix_to_chars): Remove unused function.
2135 (parse_reg): Prototype.
2136 (parse_exp): Prototype.
2137 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2138 (parse_reglist): Prototype.
2139 (get_operand): Prototype.
2140 (get_operands): Prototype.
2141 (get_specific): Prototype. Make "this_index" signed.
2142 (check): Prototype, make static.
2144 (build_relaxable_instruction): Prototype, make static.
2145 (build_bytes): Prototype.
2146 (wordify_scb): Prototype.
2147 * config/tc-h8500.h (start_label): Declare.
2148 (tc_coff_sizemachdep): Declare.
2149 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2150 (i370_rmode <unused>): Likewise.
2151 (i370_csect <unused>): Likewise.
2152 (i370_dc <unused>): Likewise.
2153 (i370_ds <unused>): Likewise.
2154 (i370_elf_lcomm <unused>): Likewise.
2155 (i370_ltorg <ignore>): Likewise.
2156 (i370_using <ignore>): Likewise.
2157 (i370_drop <ignore>): Likewise.
2158 (i370_byte <ignore>): Likewise.
2159 (i370_tc <ignore>): Likewise.
2160 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2161 (md_convert_frag <all args>): Likewise.
2162 (md_undefined_symbol <name>): Likewise.
2163 (md_pcrel_from_section <sec>): Likewise.
2164 (tc_gen_reloc <seg>): Likewise.
2165 (i370_section_letter): #if 0 unused functions.
2166 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2167 (symbol_locate): Prototype.
2168 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2169 (md_number_to_disp, md_number_to_field): Remove.
2170 (md_apply_fix3): Correct format string and cast "fup".
2171 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2172 (s_endian <ignore>): Likewise.
2173 (md_undefined_symbol <name>): Likewise.
2174 (tc_crawl_symbol_chain <headers>): Likewise.
2175 (tc_set_bal_of_call): Likewise.
2176 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2177 (i960_handle_align <fragp>): Likewise.
2178 (i960_validate_fix <this_segment_type>): Likewise
2179 (tc_gen_reloc <section>): Likewise.
2180 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2181 (struct memS, struct regop): Forward declare.
2182 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2183 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2184 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2185 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2186 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2187 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2188 (md_number_to_field): Likewise.
2189 (md_number_to_disp): Remove unused function.
2190 (md_atof): Remove declaration of atof_ieee.
2191 (md_apply_fix3): Correct md_number_to_imm call.
2192 * config/tc-ip2k.c (md_assemble): Warning fix.
2193 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2194 (fill_insn <ignore>): Likewise.
2195 (debug_sym <ignore>): Likewise.
2196 (md_undefined_symbol <name>): Likewise.
2197 (m32r_scomm <ignore>): Likewise.
2198 (md_convert_frag <abfd>): Likewise.
2199 (md_cgen_lookup_reloc <insn>): Likewise.
2200 (m32r_record_hi16 <seg>): Likewise.
2201 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2202 (allow_m32rx): Prototype.
2203 (first_writes_to_seconds_operands): Prototype.
2204 (writes_to_pc): Prototype.
2205 (can_make_parallel): Prototype.
2206 (make_parallel): Prototype.
2207 (target_make_parallel): Prototype.
2208 (assemble_two_insns): Prototype.
2209 (m32r_record_hi16): Prototype.
2210 (md_atof): Remove declaration of atof_ieee.
2211 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2212 (m32r_force_relocation): Prototype.
2213 (m32r_elf_section_change_hook): Prototype.
2214 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2215 (md_show_usage): Fix signed/unsigned warning.
2216 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2217 (calcop): Ditto for reg_prefix var.
2218 (hexval): Add cast to fix signed/unsigned warning.
2219 (md_number_to_disp): Delete unused function.
2220 (md_number_to_field): Likewise.
2221 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2222 (match_name): Prototype.
2223 (get_bf2): Prototype.
2224 (get_bf_offset_expression): Prototype.
2225 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2226 (md_undefined_symbol <ignore>): Likewise.
2227 (md_create_short_jump <all args>): Likewise.
2228 (md_create_long_jump <all args>): Likewise.
2229 (md_convert_frag <abfd, sec>): Likewise.
2230 (md_apply_fix3 <segment>): Likewise.
2231 (md_section_align <segment>): Likewise.
2232 (md_pcrel_from_section <sec>): Likewise.
2233 (tc_gen_reloc <section>): Likewise.
2234 (reg_m, reg_n, immediate): Delete unused vars.
2235 (dump_literals): Fix signed/unsigned warning.
2236 (enter_literal): Likewise.
2237 (parse_imm): Likewise. Also fix format string.
2238 (parse_mem): Remove unused var.
2239 (md_assemble <LS>): Abort on unexpected inst.
2240 (md_atof): Remove declaration of atof_ieee.
2241 (md_parse_option): Remove unused vars.
2242 (md_apply_fix3): Fix format strings, cast args.
2243 (tc_gen_reloc): Delete unused var.
2244 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2245 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2246 (md_undefined_symbol <name>): Likewise.
2247 (md_convert_frag <abfd>): Likewise.
2248 (tc_gen_reloc <seg>): Likewise.
2249 (check_operand <insn>): Likewise.
2250 (md_convert_frag): Fix format strings.
2251 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2252 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2253 (md_atof): Remove declaration of atof_ieee.
2254 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2255 (md_apply_fix3): Fix bogus >>='s.
2256 (md_undefined_symbol): Delete unused var.
2257 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2258 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2259 (fake_opcode): Adjust for pj_opc_int_t change.
2260 (md_begin): Likewise.
2261 (md_assemble): Likewise.
2262 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2263 instead of non-existent third arg of parse_exp_save_ilp.
2264 (md_parse_option): Correct "little" and "big" calls.
2265 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2266 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2267 (tc_gen_reloc <section>): Likewise.
2268 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2269 (debug): Rewrite using VA_* macros.
2270 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2271 (md_convert_frag): Likewise.
2272 (md_parse_option): Likewise.
2273 (md_show_usage): Likewise.
2274 (md_undefined_symbol): Likewise.
2275 (tc_gen_reloc): Likewise.
2276 (md_operand): Likewise.
2277 (tc_aout_pre_write_hook): Delete.
2278 (struct tic30_insn): Make "operands" unsigned.
2279 (struct tic30_par_insn): Likewise.
2280 (md_assemble): Likewise for "count", "i" and "numops".
2281 (tic30_parallel_insn): Likewise for vars here.
2282 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2283 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2284 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2285 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2286 (md_undefined_symbol): Likewise.
2287 (md_parse_option): Likewise.
2288 (md_convert_frag): Likewise.
2289 (tc_coff_symbol_emit_hook): Likewise.
2290 (md_atof): Remove declaration of atof_ieee.
2291 (const_overflow): Warning fixes, tidy.
2292 (get_operands): Delete unused vars.
2293 (internal_error_a): Adjust format string to expect a long for arg.
2294 (find_opcode): Warning fixes, simplify.
2295 (build_insn): Cast internal_error_a arg.
2296 (md_begin): Likewise.
2297 (md_apply_fix3): Likewise.
2298 (md_assemble): Delete unused var.
2299 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2300 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2301 (whatreg, parse_reg, parse_exp): Make static, prototype.
2302 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2303 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2304 (get_operand, get_operands, get_specific, newfix): Likewise.
2305 (apply_fix, build_bytes): Likewise.
2306 (md_atof): Remove declaration of atof_ieee.
2307 (tc_aout_fix_to_chars): Delete.
2308 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2310 (md_parse_option): Fix s_segm and s_unseg calls.
2312 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2314 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2316 (RELAX_BRANCH_RELOC_S2): Delete.
2317 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2318 Do not handle BFD_RELOC_16_PCREL.
2319 (macro_build, mips_ip): Likewise.
2320 (md_pcrel_from): Return 4 for undefined symbols regardless of
2322 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2323 Don't dereference howto if no such relocation is available.
2324 Do not apply hack for in-place zero addend in NEWABI.
2325 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2327 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2328 Alan Modra <amodra@bigpond.net.au>
2330 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2331 (TC_LINKRELAX_FIXUP): Add comments.
2333 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2335 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2337 (r_register_name, xr_register_name): Add prototype declarations.
2339 2002-12-08 H.J. Lu <hjl@gnu.org>
2341 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2342 copied from tc-i386.c.
2344 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2346 Fix Bug savannah/1825:
2347 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2348 (md_relax_table): Define specific relax for PC-rel offsets.
2349 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2350 (m68hc11_relax_frag): Handle the new relax code.
2351 (md_convert_frag): Likewise.
2352 (md_estimate_size_before_relax): Likewise.
2354 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2356 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2358 2002-12-05 Richard Henderson <rth@redhat.com>
2360 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2361 (ia64_gen_real_reloc_type): Handle it.
2362 (pseudo_func): Add @ltoffx.
2363 (md_begin): Build .<ltoffx>.
2364 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2366 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2368 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2369 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2370 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2371 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2372 COFF to call arm_force_relocation.
2374 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2376 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2378 (emit_one_bundle): Handle "hint" instruction.
2379 (operand_match): Match IA64_OPND_AR_CSD.
2381 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2383 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2386 2002-12-03 Nick Clifton <nickc@redhat.com>
2388 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2389 .PPC.EMB.apuinfo sections.
2391 2002-12-03 Richard Henderson <rth@redhat.com>
2393 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2395 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2397 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2398 (cons, s_align_bytes): Delete declaration.
2400 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2402 (dot): Delete unused function.
2403 (w65_expression): Remove unused arg.
2404 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2406 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2408 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2410 (check): Remove unused function.
2411 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2412 on unhandled switch case.
2413 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2415 (tc_crawl_symbol_chain): Delete unused function.
2416 (tc_headers_hook): Likewise.
2417 (tc_Nout_fix_to_chars): Likewise.
2418 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2419 (md_parse_option): Likewise.
2420 (md_convert_frag): Likewise.
2421 (tc_coff_symbol_emit_hook): Likewise.
2422 (md_show_usage): Likewise.
2423 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2424 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2425 (w65_expression): Declare.
2427 * po/POTFILES.in: Regenerate.
2429 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2430 and ARM_ADRL_IMMEDIATE.
2432 2002-12-02 Nick Clifton <nickc@redhat.com>
2434 * gasp.c: Delete. It has been deprecated.
2435 * NEWS: Mention that gasp has been removed.
2436 * Makefile.am: Remove references to gasp.
2437 * makefile.vms: Likewise.
2438 * mpw-make.sed: Likewise.
2439 * Makeile.in: Regenerate.
2440 * doc/gasp.texi: Delete.
2441 * doc/Makefile.am: Remove references to gasp.texi.
2442 * doc/Makefile.in: Regenerate.
2443 * macro.c: Delete references to gasp.
2444 Remove use of comment_char function parameter as it is no longer
2446 * macro.h: Update prototypes to remove comment_char parameter.
2448 * read.c (read_a_source_file, s_irp): Remove comment_char
2449 parameter from invocation of functions in macro.c
2451 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2453 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2455 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2457 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2458 (tc_gen_reloc): Mark section param as not used.
2460 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2462 Fix Bug savannah/1825:
2463 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2464 that are not pc-relative.
2465 (m68hc11_relax_frag): Declare.
2467 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2468 the offsetable indexed addressing modes (n,r).
2469 (build_insn): Cleanup some locals.
2470 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2471 relaxation of difference between two symbols of same section.
2472 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2473 only when this is a PC-relative operand and the offset is not absolute.
2474 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2475 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2476 be handled by m68hc11_relax_frag.
2478 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2480 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2481 (32-bit int, 64-bit double).
2482 (md_longopts): New options -mshort, -mlong, -mshort-double and
2483 -mlong-double to control the ABI.
2484 (md_show_usage): Update.
2485 (md_parse_option): Handle new options.
2486 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2488 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2490 * symbols.c (report_op_error): New function, broken out of ...
2491 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2494 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2496 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2497 for BFD_RELOC_32_PLT_PCREL.
2499 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2501 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2502 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2503 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2504 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2505 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2506 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2507 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2508 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2509 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2510 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2511 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2512 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2513 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2514 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2515 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2516 TRUE/FALSE. Formatting.
2518 2002-11-29 Nick Clifton <nickc@redhat.com>
2520 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2521 assume a value of zero.
2522 (do_bkpt): Likewise.
2524 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2526 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2527 for TLS relocations.
2529 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2531 * config/tc-ia64.c (md_apply_fix3): Add default case.
2533 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2535 * symbols.c (S_SET_THREAD_LOCAL): New function.
2536 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2537 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2538 for TLS relocations.
2539 * config/tc-ia64.c (md_apply_fix3): Likewise.
2540 * config/tc-alpha.c (md_apply_fix3): Likewise.
2542 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2544 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2547 2002-11-26 DJ Delorie <dj@redhat.com.
2549 * dwarf2dbg.c (scale_addr_delta): New.
2550 (size_inc_line_addr): Use it.
2551 (emit_inc_line_addr): Use it.
2553 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2555 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2556 (md_assemble): Don't pass on branches to constants as relaxable.
2559 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2561 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2563 2002-11-21 Randolph Chung <randolph@tausq.org>
2565 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2566 only if they have default visibility.
2568 2002-11-21 Richard Henderson <rth@redhat.com>
2570 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2573 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2575 * config/tc-mcore.c (mcore_pool_count): New function.
2576 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2578 2002-11-20 Klee Dienes <kdienes@apple.com>
2580 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2581 coalesce the name fields to use the same pointer.
2583 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2584 the name fields to use the same pointer.
2585 (get_specific): Check for opcodes with the same name using strcmp
2586 as well as comparing the pointer.
2588 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2590 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2593 2002-11-19 Richard Henderson <rth@redhat.com>
2595 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2596 visibility portion of st_other.
2598 2002-11-19 Klee Dienes <kdienes@apple.com>
2600 * config/tc-h8300.c (struct h8_instruction): New type, used to
2601 wrap h8_opcodes with length, noperands, idx, and size fields
2602 (computed at run-time).
2603 (h8_instructions): New variable.
2604 (md_begin): Allocate the storage for h8_instructions. Fill
2605 h8_instructions with pointers to the appropriate opcode and the
2606 correct value for the additional fields.
2607 (clever_message): Update to use h8_instructions instead of
2609 (build_bytes): Ditto.
2610 (get_specific): Ditto.
2611 (md_assemble): Ditto.
2613 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2615 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2616 adjustments to symbols in merge sections.
2618 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2620 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2622 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2624 * dwarf2dbg.h (dwarf2_format): New enum.
2625 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2626 (out_debug_line, out_debug_info): Add code for handling 64-bit
2628 * config/tc-mips.h (mips_dwarf2_format): Declare.
2629 * config/tc-mips.c (mips_dwarf2_format): New function.
2630 * doc/internals.texi (DWARF2_FORMAT): Document.
2632 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2634 * config/tc-mips.c (s_change_section): Make sure input buffer
2635 is not accessed past the end. Don't hand
2636 obj_elf_change_section a pointer into the input buffer.
2638 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2640 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2643 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2645 * config/tc-tic4x.c: Fixed proper commandline
2646 parameters. Added support for new opcode-list format. General
2647 error message fixups.
2648 (c4x_inst_add): Reject insn not for our CPU
2649 (md_begin): Added matrix for setting the proper opcode-level &
2650 device-flags according to cpu type and revision. Rewrite the
2652 (c4x_operand_parse): Fix opcode bug
2653 (c4x_operands_match): New function argument. Added dry-run
2654 mechanism, that is optional error generation. Added constraint 'i'
2656 (c4x_insn_check): Added new function for post-verification of the
2658 (md_assemble): Check all opcodes before croaking because of an
2659 argument mismatch. Need this to be able to fully support
2660 ortogonally arguments.
2661 (md_parse_options): Revised commandprompt swicthes and added new
2663 (md_show_usage): Complete rewrite of printout.
2665 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2667 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2668 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2669 warning when using constant direct bigger than 2^16. Add the new
2672 2002-11-11 Christopher Faylor <cgf@redhat.com>
2674 * configure.in: Use .gdbinit under Cygwin.
2675 * configure: Regenerate.
2677 2002-11-11 Christopher Faylor <cgf@redhat.com>
2679 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2682 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2684 * config/tc-tic4x.c: Declare as many functions as possible as
2685 static. Maintenance on the general indenting. Removed unnecessary
2686 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2687 function. Add support for new DSP, TMS320VC33. Fix bug for
2688 converting flonum constants.
2689 (c4x_do_align): Add proper align handling. Setup align to insert
2691 (c4x_gen_to_words): Support for extended TI type floats.
2692 (md_atof): Proper dumping of multiple-word littlenums.
2693 (c4x_atof): Added support for extended TI type floats.
2694 (c4x_stringer): Added new function to handle compact strings.
2695 (c4x_emit_char): Added new function argument to handle custom
2696 length inserts, like single-byte strings.
2697 * config/tc-tic4x.h: Add proper align handling with NOP's.
2698 * Makefile.am: Added tic4x dependecy
2699 * Makefile.in: Regenerate
2701 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2703 * macro.c (get_any_string): Correct logic for not going beyond end
2706 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2708 * config/tc-mmix.c (get_putget_operands): Mark both possible
2709 operands as invalid at beginning.
2711 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2712 Initialize target of fixup to zero.
2714 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2716 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2717 NEWABI, but we should still emit HI16_S for non-PIC n32.
2719 2002-11-06 Richard Henderson <rth@redhat.com>
2721 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2722 (alpha_fix_adjustable): ... here.
2723 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2725 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2727 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2730 2002-11-05 H.J. Lu <hjl@gnu.org>
2732 * config/tc-mips.c (support_64bit_objects): Check *l before it
2735 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2737 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2738 SEC_LOAD flags for sections marked as 's'.
2740 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2742 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2743 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2744 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2747 * dep-in.sed: Fix typo.
2749 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2751 * configure.in: Update ARM CPU patterns.
2752 * configure: Regenerated.
2754 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2756 * itbl-lex.l: Use #include <> for generated headers.
2757 * itbl-ops.c: Likewise.
2759 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2761 * doc/gasp.texi: Fix typo in deprecation note.
2763 2002-10-23 Nick Clifton <nickc@redhat.com>
2765 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2766 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2768 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2770 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2771 (tc_frob_file_before_adjust): Don't define.
2772 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2774 (mmix_frob_file_before_adjust): Remove ineffective function.
2776 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2778 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2779 (cris_relax_frag): New function.
2780 (md_estimate_size_before_relax) <case ENCODE_RELAX
2781 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2782 expressions that will become absolute expressions to relaxation.
2783 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2784 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2785 value, not distance to symbol.
2786 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2787 Ditto. Correct placement of fixup.
2788 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2790 * config/tc-cris.h (cris_relax_frag): Declare.
2791 (md_relax_frag): Define.
2793 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2795 * config/obj-elf.c (special_sections): Use correct types for init
2797 (obj_elf_change_section): Don't mess with init array section type.
2799 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2801 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2802 for relocs against symbols in a merged section.
2804 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2806 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2807 table as register names.
2809 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2811 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2814 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2816 * expr.c (operand): Add support for n.nn flonums.
2818 2002-10-17 Johannes Stezenbach <js@convergence.de>
2820 * itbl-parse.y (entry): Provide empty action.
2822 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2824 * configure.in (BFDVER_H): Set and subst.
2825 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2826 * Makefile.am: Run "make dep-am".
2828 * configure: Regenerate.
2829 * Makefile.in: Regenerate.
2830 * doc/Makefile.in: Regenerate.
2832 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2834 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2835 (MD_APPLY_SYM_VALUE): Define for PE too.
2837 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2839 * Makefile.am: Run "make dep-am".
2840 (CPU_OBJ_VALID): sh64 coff is invalid.
2841 * as.c: #include "bfdver.h".
2842 * Makefile.in: Regenerate.
2843 * config.in: Regenerate.
2845 2002-10-14 Momchil Velikov <velco@fadata.bg>
2847 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2849 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2851 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2852 * configure: Regenerate.
2854 2002-10-13 Eric Christopher <echristo@redhat.com>
2855 Alexandre Oliva <aoliva@redhat.com>
2857 * config/tc-mips.c (s_gpdword): New function.
2858 (mips_pseudo_table): Add .gpdword.
2859 (mips_need_elf_addend_fixup): never for NEWABI.
2860 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2862 (s_cpadd): Generate .cpadd on NEWABI.
2864 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2866 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2868 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2870 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2871 (md_relax_frag): Adjust macro.
2872 * config/tc-mips.c (mips_relax_branch): New variable.
2873 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2874 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2875 (RELAX_MIPS16_P): Adjust.
2876 (append_insn): Emit branch to non-constant in a frag_var if
2877 branch-relaxation is desirable and possible.
2878 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2879 (OPTION_ELF_BASE): Adjust.
2880 (md_parse_option): Handle new options.
2881 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2883 (relaxed_branch_length): New function.
2884 (md_estimate_size_before_relax): Handle branch frags.
2885 (mips_relax_frag): Likewise.
2886 (md_convert_frag): Handle branch frags. Warn if branch is
2889 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2891 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2893 (md_apply_fix3): Add TLS relocs.
2894 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2897 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2898 Alan Modra <amodra@bigpond.net.au>
2900 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2901 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2903 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2905 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2908 2002-10-09 Richard Shann <richard.shann@superh.com>
2909 Stephen Clarke <stephen.clarke@superh.com>
2911 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2914 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2916 * contig/tc-sh.c (sh_local_pcrel): New.
2917 (sh_force_relocation): Use sh_local_pcrel.
2918 (md_pcrel_from_section): Check the relocation type whether it
2919 should be resolved locally. Use S_FORCE_RELOC.
2921 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2923 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2924 (TC_FORCE_RELOCATION): Tidy arg.
2926 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2927 Ken Raeburn <raeburn@cygnus.com>
2928 Aldy Hernandez <aldyh@redhat.com>
2929 DJ Delorie <dj@redhat.com>
2930 Michael Meissner <meissner@redhat.com>
2931 Eric Christopher <echristo@redhat.com>
2932 Richard Sandiford <rsandifo@redhat.com>
2934 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2935 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2936 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2937 (hilo_interlocks): True for CPU_VR5500.
2938 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2939 (mips_fix_vr4122_bugs): New.
2940 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2941 (mips_emit_delays): Likewise.
2942 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2943 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2944 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2945 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2946 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2947 (OPTION_ELF_BASE): Bump.
2948 (md_parse_option): Handle the new options.
2949 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2952 2002-09-29 H.J. Lu <hjl@gnu.org>
2954 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2955 twice if howto->pcrel_offset is true.
2957 2002-09-28 Matt Thomas <matt@3am-software.com>
2958 Jason Thorpe <thorpej@wasabisystems.com>
2960 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2961 convert undefined references to GOT32/PLT32 if PIC code is
2962 requested. Fix comment.
2964 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2966 * config/tc-sh.c (sh_force_relocation): Return 0 for
2967 some PC relative relocations when not relaxing.
2969 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2971 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2972 Define them if not BFD_ASSEMBLER.
2973 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2975 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2976 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2977 (tc_gen_reloc): Handle x86-64 TLS relocs.
2979 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2981 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2982 fixups to current or absolute section.
2984 2002-09-26 Jim Wilson <wilson@redhat.com>
2986 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2989 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2991 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2992 capable configuration.
2993 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2995 (mips_ip): Likewise.
2997 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2999 * config/tc-mips.c (append_insn): Fix jump overflow check.
3001 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3003 * config/tc-i386.c (process_operands): Warn about "lea" segment
3006 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3008 * write.c: Delete set_segment_vma and prototype. Update all callers.
3010 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3012 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3013 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3014 Rename "fseg" to "sym_seg".
3015 * Makefile.am: Run "make dep-am".
3016 * Makefile.in: Regenerate.
3017 * doc/Makefile.in: Regenerate.
3019 2002-09-20 Nick Clifton <nickc@redhat.com>
3021 * symbols.c (colon): Do not allow symbols to be created in the
3022 absolute section if WORKING_DOT_WORD is not defined and
3023 new_broken_words would require a new frag to be created.
3025 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3027 * expr.c (expr): Simplify foo-foo here.
3028 (clean_up_expression): Remove O_subtract code.
3030 * write.h (struct fix): Add fx_dot_value.
3031 (dot_value): Declare.
3032 * write.c (dot_value): New var.
3033 (fix_new_internal): Save dot_value as fx_dot_value.
3034 (fixup_segment): Adjust fx_offset using fx_dot_value.
3035 * expr.c (expr): Update dot_value.
3037 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3039 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3040 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3041 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3043 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3044 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3045 BFD_RELOC_386_TLS_GOTIE.
3047 2002-09-19 Richard Henderson <rth@redhat.com>
3049 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3051 (alpha_force_relocation): Don't special-case branch type relocs.
3053 2002-09-19 Nick Clifton <nickc@redhat.com>
3055 * config/tc-m68k.c (select_control_regs): Handle situation where
3056 architecture has not yet been selected.
3058 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3060 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3061 (IS_SEXT_16BIT_NUM): New macro.
3062 (macro_build_ldst_constoffset): New function, to build a set of
3063 instructions to do a load or store from a constant offset relative
3064 to a given register.
3065 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3066 .cprestore pseudo-op.
3068 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3070 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3072 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3074 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3076 2002-09-17 Stan Cox <scox@redhat.com>
3078 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3079 (macro): Likewise for la. Likewise for ld.
3080 (mips_after_parse_args): Make -xgot optional, not the default.
3081 (md_apply_fix3): Allow composite relocation to set up gp.
3082 (tc_gen_reloc): Allow relaxing for newabi.
3083 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3084 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3086 2002-09-17 Nick Clifton <nickc@redhat.com>
3088 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3089 BFD_RELOC_ARM_IMMEDIATE has been done.
3090 (tc_gen_reloc): Do not issue reloc number of unimplemented
3091 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3092 their name is already in the error message - plus remove them
3093 from the default case.
3095 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3096 behavior of instructions.
3098 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3100 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3101 Convert functions to K&R format.
3103 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3105 * config/tc-mips.c (pdr_seg): Define only for ELF.
3106 (s_change_section): Remove unused variable. Don't use for nonELF.
3108 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3110 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3112 * config/obj-elf.h (obj_elf_change_section): Likewise.
3114 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3116 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3117 (out_debug_info): Likewise.
3119 2002-09-16 Bruno Haible <bruno@clisp.org>
3121 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3122 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3123 * config/tc-i386.c (i386_target_format): Likewise.
3124 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3125 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3127 2002-09-13 Nick Clifton <nickc@redhat.com>
3129 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3130 when deciding if any operands have been skipped.
3132 2002-09-11 Nick Clifton <nickc@redhat.com>
3134 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3136 * po/tr.po: Updated Turkish translation.
3138 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3140 * config/tc-i386.c (md_apply_fix3): Allow addend for
3141 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3142 BFD_RELOC_386_TLS_LE_32.
3144 2002-09-05 Jeff Law <law@redhat.com>
3146 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3147 marker relocations such as ENTRY/EXIT.
3148 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3149 to both OBJ_ELF and OBJ_SOM.
3151 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3153 * doc/internals.texi (md_apply_fix3): Expand.
3154 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3155 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3156 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3157 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3158 EXTERN_FORCE_RELOC): Document.
3159 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3160 * as.h: Don't include struc-symbol.h for arc.
3162 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3163 subtract absolute symbol.
3164 * obj.h (struct format_ops): Add frob_file_before_fix.
3165 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3166 * symbols.c (S_FORCE_RELOC): New function.
3167 * symbols.h (S_FORCE_RELOC): Declare.
3168 * write.c (TC_FORCE_RELOCATION): Change default.
3169 (TC_FORCE_RELOCATION_ABS): Define.
3170 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3171 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3172 (TC_FORCE_RELOCATION_SECTION): Don't define.
3173 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3174 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3175 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3176 (TC_VALIDATE_FIX_SUB): Define.
3177 (TC_FIX_ADJUSTABLE): Don't define.
3178 (MD_APPLY_SYM_VALUE): Define this instead.
3179 (abs_section_sym): New variable.
3180 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3181 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3182 Don't put the absolute section sym on fixups here.
3183 (fix_segment): New function.
3184 (write_relocs): Don't call fixup_segment from here.
3185 (write_object_file): Instead call tc_frob_file_before_fix,
3186 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3187 Don't output the absolute section symbol.
3188 (fixup_segment): Rewrite.
3189 * write.h (abs_section_sym): Declare.
3190 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3192 (aout_format_ops): Adjust to suit.
3193 * config/obj-aout.h (obj_frob_file): Don't define.
3194 (obj_frob_file_before_fix): Define.
3195 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3196 (S_FORCE_RELOC): Define.
3197 * config/obj-bout.h (S_FORCE_RELOC): Define.
3198 * config/obj-coff.c (coff_format_ops): Init new field.
3199 * config/obj-coff.h: Formatting fixes.
3200 (obj_sec_sym_ok_for_reloc): Define.
3201 (S_FORCE_RELOC): Define.
3202 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3203 (ecoff_frob_file): .. from here.
3204 (ecoff_format_ops): Add new function.
3205 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3206 (obj_frob_file_before_fix): Define.
3207 * config/obj-elf.c (elf_format_ops): Init new field.
3208 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3209 * config/obj-ieee.h: Formatting fixes.
3210 (S_FORCE_RELOC): Define.
3211 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3212 * config/obj-vms.h (S_FORCE_RELOC): Define.
3213 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3214 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3215 for BFD_RELOC_32 and BFD_RELOC_64.
3216 (alpha_fix_adjustable): Remove extern and weak tests.
3217 (alpha_before_fix): Rename from alpha_adjust_symtab.
3218 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3219 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3220 (TC_VALIDATE_FIX): Tweak param name.
3221 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3222 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3223 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3224 (MD_APPLY_SYM_VALUE): Define.
3225 (tc_adjust_symtab): Don't define.
3226 (alpha_adjust_symtab): Don't declare.
3227 (tc_frob_file_before_fix): Define.
3228 (alpha_before_fix): Declare.
3229 (TC_INIT_FIX_DATA): Tweak param names.
3230 * config/tc-arc.c: Include "struc-symbol.h".
3231 (md_pcrel_from): Remove undefined sym fudge.
3232 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3233 Don't set fx_addnumber.
3234 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3235 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3236 (EXTERN_FORCE_RELOC): Define.
3237 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3238 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3239 (arm_validate_fix): Return void.
3240 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3241 Add plt and got reloc tests.
3242 (arm_force_relocation): Call S_FORCE_RELOC.
3243 * config/tc-arm.h (struct fix): Forward declare.
3244 (TC_VALIDATE_FIX): No longer set add_symbolP.
3245 (arm_validate_fix): Adjust declaration.
3246 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3247 (TC_FORCE_RELOCATION): Tweak param name.
3248 (TC_INIT_FIX_DATA): Likewise.
3249 (obj_fix_adjustable): Don't define.
3250 (tc_fix_adjustable): Call arm_fix_adjustable.
3251 (TC_FIX_ADJUSTABLE): Don't define.
3252 (MD_APPLY_SYM_VALUE): Define.
3253 (EXTERN_FORCE_RELOC): Define.
3254 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3255 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3256 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3257 Remove *valP fudges and code to subtract abs sym. Don't set
3259 * config/tc-avr.h: Formatting.
3260 (EXTERN_FORCE_RELOC): Define.
3261 (MD_APPLY_SYM_VALUE): Define.
3262 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3263 (md_apply_fix3): Remove code to subtract abs sym.
3264 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3265 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3266 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3267 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3268 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3269 (tc_fix_adjustable): Remove extern, weak tests.
3270 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3271 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3272 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3273 and code to subtract abs sym.
3274 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3275 (d10v_force_relocation): Call S_FORCE_RELOC.
3276 * config/tc-d10v.h: Don't include write.h.
3277 (struct fix): Instead, forward declare.
3278 (MD_PCREL_FROM_SECTION): Tweak param names.
3279 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3280 (d10v_fix_adjustable): Likewise.
3281 (obj_fix_adjustable): Don't define.
3282 (tc_fix_adjustable): Define.
3283 (TC_FORCE_RELOCATION): Tweak param name.
3284 (MD_APPLY_SYM_VALUE): Define.
3285 (EXTERN_FORCE_RELOC): Define.
3286 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3287 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3288 and code to subtract abs sym.
3289 * config/tc-d30v.h: Don't include write.h.
3290 (struct fix): Instead, forward declare.
3291 (MD_PCREL_FROM_SECTION): Tweak param names.
3292 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3293 (MD_APPLY_SYM_VALUE): Define.
3294 (EXTERN_FORCE_RELOC): Define.
3295 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3296 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3297 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3298 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3299 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3300 Don't use fx_addnumber.
3301 * config/tc-dlx.h: Don't include write.h.
3302 (md_convert_frag): We're not alpha twice over.
3303 (EXTERN_FORCE_RELOC): Define.
3304 (obj_fix_adjustable): Don't define.
3305 (tc_fix_adjustable): Define.
3306 (TC_FIX_ADJUSTABLE): Don't define.
3307 (MD_APPLY_SYM_VALUE): Define.
3308 (LOCAL_LABELS_DOLLAR): Undef always.
3309 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3310 (fr30_fix_adjustable): Remove extern, weak tests.
3311 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3312 (obj_fix_adjustable): Don't define.
3313 (tc_fix_adjustable): Define.
3314 (struct fix): Forward declare.
3315 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3316 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3317 (frv_fix_adjustable): Don't do extern, weak tests.
3318 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3319 (TC_FIX_ADJUSTABLE): Don't define.
3320 (obj_fix_adjustable): Don't define.
3321 (tc_fix_adjustable): Define.
3322 (struct fix): Forward declare.
3323 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3324 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3325 * config/tc-h8300.h (struct fix): Forward declare.
3326 (EXTERN_FORCE_RELOC): Define.
3327 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3328 (hppa_fix_adjustable): Don't test extern or weak. Don't
3329 symbol_mark_used_in_reloc.
3330 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3332 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3333 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3334 (TC_FORCE_RELOCATION_SECTION): Don't define.
3335 (MD_APPLY_SYM_VALUE): Define.
3336 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3337 to subtract abs sym.
3338 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3339 (MD_APPLY_SYM_VALUE): Define.
3340 (MD_PCREL_FROM_SECTION): Tweak param name.
3341 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3342 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3343 (i386_force_relocation): New function.
3344 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3345 (TC_VALIDATE_FIX): Likewise.
3346 (TC_FIX_ADJUSTABLE): Don't define.
3347 (MD_APPLY_SYM_VALUE): Define.
3348 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3349 (i386_force_relocation): Declare.
3350 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3351 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3352 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3353 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3354 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3355 (EXTERN_FORCE_RELOC): Define.
3356 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3357 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3358 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3359 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3360 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3361 Remove #if 0 code. Invert return boolean.
3362 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3363 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3364 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3365 (tc_coff_sizemachdep): Prototype.
3366 (i960_handle_align): Likewise.
3367 (i960_validate_fix): Adjust declaration.
3368 (reloc_callj): Likewise.
3369 (EXTERN_FORCE_RELOC): Define.
3370 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3371 (TC_FORCE_RELOCATION_ABS): Define.
3372 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3373 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3374 (TC_FIX_ADJUSTABLE): Don't define.
3375 (MD_APPLY_SYM_VALUE): Define.
3376 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3377 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3378 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3379 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3380 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3381 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3382 (MD_APPLY_SYM_VALUE): Define.
3383 (EXTERN_FORCE_RELOC): Define.
3384 (TC_FORCE_RELOCATION): Tweak param name.
3385 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3386 (m32r_fix_adjustable): Don't test extern, weak.
3387 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3388 (MD_APPLY_SYM_VALUE): Define.
3389 (obj_fix_adjustable): Don't define.
3390 (tc_fix_adjustable): Define.
3391 (tc_frob_file): Don't define.
3392 (tc_frob_file_before_fix): Define.
3393 (EXTERN_FORCE_RELOC): Define.
3394 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3395 BFD_RELOC_VTABLE_ENTRY address.
3396 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3397 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3398 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3399 Remove duplicated fx_done code.
3400 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3401 (EXTERN_FORCE_RELOC): Define.
3402 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3404 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3405 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3406 (TC_FIX_ADJUSTABLE): Don't define.
3407 (EXTERN_FORCE_RELOC): Define.
3408 (MD_APPLY_SYM_VALUE): Define.
3409 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3410 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3411 Remove fx_addsy tests.
3412 (mcore_force_relocation): Call S_FORCE_RELOC.
3413 (mcore_fix_adjustable): Don't test fx_addsy.
3414 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3415 (EXTERN_FORCE_RELOC): Define.
3416 (obj_fix_adjustable): Don't define.
3417 (tc_fix_adjustable): Define.
3418 (MD_APPLY_SYM_VALUE): Define.
3419 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3420 (mips_pic): No longer static.
3421 (mips_force_relocation): Call S_FORCE_RELOC.
3422 (mips_fix_adjustable): Remove extern, weak tests.
3423 * config/tc-mips.h (enum mips_pic_level): Declare.
3424 (mips_pic): Declare.
3425 (tc_frob_file): Don't define.
3426 (tc_frob_file_before_fix): Define this instead.
3427 (EXTERN_FORCE_RELOC): Define.
3428 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3429 with reg_section tests. Set fx_done instead of calling
3430 symbol_clear_used_in_reloc on bad relocs.
3431 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3432 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3433 (mmix_adjust_symtab): Simplify list handling. Abort on any
3435 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3436 BFD_RELOC_MMIX_LOCAL.
3437 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3438 (EXTERN_FORCE_RELOC): Define.
3439 (MD_PCREL_FROM_SECTION): Tweak param name.
3440 (tc_frob_file): Don't define.
3441 (tc_frob_file_before_fix): Define this instead.
3442 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3443 Remove SEC_CODE checks.
3444 (mn10300_fix_adjustable): Remove extern and weak tests.
3445 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3446 (TC_FORCE_RELOCATION): Tweak param name.
3447 (obj_fix_adjustable): Don't define.
3448 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3449 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3450 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3451 (openrisc_fix_adjustable): Don't test fx_addsy.
3452 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3453 (obj_fix_adjustable): Don't define.
3454 (tc_fix_adjustable): Define this instead.
3455 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3456 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3457 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3458 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3459 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3460 (MD_APPLY_SYM_VALUE): Define.
3461 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3462 Don't subtract symbol value.
3463 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3464 (EXTERN_FORCE_RELOC): Define.
3465 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3466 (MD_APPLY_SYM_VALUE): Define.
3467 (obj_fix_adjustable): Don't define.
3468 (tc_fix_adjustable): Define this instead.
3469 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3471 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3472 (ppc_force_relocation <elf version>): New.
3473 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3474 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3475 comments. Don't subtract fx_subsy as that is already done.
3476 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3477 (MD_PCREL_FROM_SECTION): Likewise.
3478 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3479 ppc_force_relocation.
3480 (TC_FORCE_RELOCATION_SECTION): Delete.
3481 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3482 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3483 (MD_APPLY_SYM_VALUE): Define.
3484 * config/tc-s390.c: #include "dwarf2dbg.h".
3485 (s390_insn): Remove excess parens.
3486 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3487 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3488 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3489 non-NULL. Don't subtract off fx_addsy value.
3490 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3491 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3492 (TC_FIX_ADJUSTABLE): Don't define.
3493 (MD_APPLY_SYM_VALUE): Define.
3494 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3495 (SWITCH_TABLE): Likewise.
3496 (sh_force_relocation): Call S_FORCE_RELOC.
3497 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3498 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3499 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3500 fx_addnumber is zero on entry. Save val in fx_addnumber.
3501 (tc_gen_reloc): Don't subtract fx_subsy.
3502 * config/tc-sh.h (struct fix): Move.
3503 (obj_fix_adjustable): Don't define.
3504 (tc_fix_adjustable): Define this instead.
3505 (TC_FIX_ADJUSTABLE): Don't define.
3506 (MD_APPLY_SYM_VALUE): Define.
3507 (SWITCH_TABLE_CONS): Define.
3508 (SWITCH_TABLE): Define.
3509 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3510 (TC_VALIDATE_FIX_SUB): Define.
3511 (MD_PCREL_FROM_SECTION): Tweak param name.
3512 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3513 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3514 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3515 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3516 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3517 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3518 (TC_VALIDATE_FIX_SUB): Define.
3519 (MD_PCREL_FROM_SECTION): Tweak param name.
3520 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3521 (tc_gen_reloc): Use S_FORCE_RELOC.
3522 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3523 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3524 (TC_FORCE_RELOCATION_ABS): Define this instead.
3525 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3526 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3527 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3528 (MD_APPLY_SYM_VALUE): Define.
3529 (TC_FIX_DATA_PRINT): Tweak param name.
3530 * config/tc-tic30.c (USE_STDOUT): Don't define.
3531 (md_parse_option): Remove stupid debug code.
3532 (tc_gen_reloc): Don't use fx_addnumber.
3533 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3534 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3535 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3536 (tc_fix_adjustable): Define this instead.
3537 (TC_FIX_ADJUSTABLE): Don't define.
3538 (MD_APPLY_SYM_VALUE): Define this instead.
3539 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3540 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3541 (TC_FIX_ADJUSTABLE): Don't define.
3542 (MD_APPLY_SYM_VALUE): Define this instead.
3543 (tc_fix_adjustable): Remove extern and weak tests.
3544 * config/tc-w65.h (struct fix): Forward declare.
3545 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3547 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3548 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3549 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3551 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3552 (MD_APPLY_SYM_VALUE): Define.
3553 (obj_fix_adjustable): Don't define.
3554 (tc_fix_adjustable): Define this instead.
3555 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3557 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3559 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3560 (ppc_fix_adjustable <coff version>): Cleanup.
3562 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3563 (md_parse_option): No -a64 without BFD64.
3564 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3565 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3567 2002-09-04 Nick Clifton <nickc@redhat.com>
3569 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3570 instructions into the hash table if the target cpu is the BookE32.
3572 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3574 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3577 2000-08-28 Catherine Moore <clm@redhat.com>
3579 * tc-v850.c (v850_relax): Declare.
3580 (v850_longcode): New routine.
3581 (v850_handle_align): New routine.
3582 (md_pseudo_table): Add longcall and longjump.
3583 (md_parse_option): Check for relax option.
3584 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3585 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3586 (md_apply_fix3): Likewise.
3587 (v850_force_relocation): Likewise.
3588 (v850_comm): Change the current section.
3589 (md_assemble): Ensure that the correct value is put in the
3591 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3592 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3593 Remove redundant v850ea support.
3594 * tc-v850.h (HANDLE_ALIGN): Define.
3595 (v850_handle_align): Declare.
3596 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3598 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3600 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3601 * configure: Regenerate.
3602 * NEWS: Mention new port.
3604 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3606 * config/obj-coff.c: Add sdef definition.
3607 * config/obj-coff.h: Add tic4x include file and set
3609 * config/tc-tic4x.c: New file.
3610 * config/tc-tic4x.h: New file.
3612 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3614 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3615 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3616 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3617 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3618 (RELOC_ENUM): Define.
3619 (fix_new_internal): Use RELOC_ENUM.
3620 (fix_new, fix_new_exp): Likewise.
3621 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3622 Replace gotos with continue.
3623 (write_relocs): Formatting. Avoid symbol loops in
3624 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3625 errors, and error number in other cases.
3626 (fixup_segment): Remove param names from prototype. Rename
3627 "this_segment_type" to "this_segment". Update linkrelax comment.
3628 Remove "size, "place" and "where" local vars. Formatting. Update
3629 "no symbol" comment. Remove #if 0 and #if 1.
3631 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3633 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3635 * dwarf2dbg.c: Always include dwarf2dbg.h.
3636 (dwarf2_directive_file): Adjust dummy version args.
3637 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3638 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3639 when symbol values differ.
3640 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3641 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3642 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3644 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3646 * config/tc-w65.c (md_section_align): Fix typo.
3647 (md_parse_option): Return 0, not 1.
3649 2002-08-22 Nick Clifton <nickc@redhat.com>
3651 * doc/as.texinfo (Section): Note that if '@' is a comment
3652 character then another symbol is used to prefix the section's
3655 2002-08-22 Christian Groessler <chris@groessler.org>
3657 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3660 2002-08-12 Graeme Peterson <gp@qnx.com>
3662 * configure.in: Add support for sh-**-nto* target.
3663 * configure: Regenerate.
3665 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3667 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3669 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3671 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3673 (ppc_apuinfo_section_add): Define only if format is ELF.
3674 (md_assemble): Emit APUinfo section only if format is ELF.
3677 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3679 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3680 * config/tc-frv.c: Likewise.
3681 * config/tc-hppa.c: Likewise.
3682 * config/tc-ia64.c: Likewise.
3683 * config/tc-ip2k.c: Likewise.
3684 * config/tc-m68hc11.c: Likewise.
3685 * config/tc-m68k.c: Likewise.
3686 * config/tc-mmix.c: Likewise.
3687 * config/tc-mn10300.c: Likewise.
3688 * config/tc-sh.c: Likewise.
3689 * config/tc-sparc.c: Likewise.
3690 * config/tc-v850.c: Likewise.
3692 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3694 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3697 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3699 From matthew green <mrg@redhat.com>
3701 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3702 PPC_OPCODE_PPC is, except for BookE architectures.
3703 (md_parse_option): Add support for -mspe.
3704 (md_show_usage): Add -mspe.
3705 (md_parse_option): Add support for -me500 and
3706 -me500x2 to generate code for Motorola e500 core complex.
3707 (md_show_usage): Add -me500 and -me500x2.
3709 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3710 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3711 PPC_APUINFO_BRLOCK): New macros.
3713 (ppc_cleanup): New function.
3714 (ppc_apuinfo_section_add): New function.
3716 (md_assemble): Collect info and write the APUinfo section.
3718 * config/tc-ppc.h (md_cleanup): Define.
3719 (ppc_cleanup): Export.
3720 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3722 2002-08-17 Stan Cox <scox@redhat.com>
3724 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3725 config/tc-mips.c (s_change_section): New function to support
3726 IRIX .section pseudo-op.
3728 2002-08-16 Nick Clifton <nickc@redhat.com>
3730 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3732 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3734 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3735 the fix-up against on the right frag.
3736 (s_cpsetup): Likewise. Parse third argument as expression, to
3737 handle global symbols and forward/backward labels correctly.
3739 2002-08-14 Nick Clifton <nickc@redhat.com>
3741 * read.c (stringer): Catch attempts to create strings in the abs
3744 * config/tc-alpha.c: Fix compiling for COFF targets.
3745 Some minor formatting tidyups.
3747 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3749 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3750 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3751 according to the reloc.
3752 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3753 (TC_FORCE_RELOCATION): Define.
3754 (tc_m68hc11_force_relocation): Declare.
3756 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3757 (s_m68hc11_relax): New function for relax group.
3758 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3759 beginning of jump instruction.
3760 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3761 address computation.
3762 (tc-gen_reloc): Update.
3763 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3765 (tc_m68hc11_force_relocation): New function, handle new relocs.
3766 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3767 reloc for the linker relax pass.
3768 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3771 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3773 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3774 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3775 (s_m68hc11_mode): New function for .mode pseudo op.
3776 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3778 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3779 (m68hc11_elf_final_processing): Declare.
3781 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3783 * config/tc-m68hc11.c (md_begin): Take into account additional
3784 page operand for call instruction.
3785 (print_opcode_format): Likewise.
3786 (check_range): Likewise for page range checking.
3787 (get_operand): Don't skip a possible comma in operands.
3788 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3789 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3790 (fixup24): New to handle call reloc.
3791 (build_insn): Handle missing page operand for call instruction.
3793 (md_apply_fix3): Take into account new relocs.
3794 (get_operand): Fix the mode for indexed indirect addressing.
3795 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3797 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3799 * config/tc-mips.c (mips_ip): Don't work out the value of
3800 constant %hi()s here.
3802 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3804 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3805 for ELF, and don't bother checking ELF relocs when non-ELF.
3806 (i386_immediate): Allow absolute_section expressions for aout.
3807 (i386_displacement): Likewise. Also test bfd_is_com_section.
3808 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3809 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3810 not when fx_addsy. Remove dead code.
3812 2002-08-09 Graeme Peterson <gp@qnx.com>
3814 * configure.in: Add support for ppc-*-nto* target.
3815 * configure: Regenerate.
3817 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3819 * config/tc-i386.h: Reorganize.
3821 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3823 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3824 immediate offset in "dla" and "la" expansions.
3826 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3828 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3829 Remove "bfd_gas=yes" from target table when covered later.
3830 Consolidate some entries.
3831 * configure: Regenerate
3833 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3835 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3836 at start of insn, pass it to output_disp and output_imm.
3837 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3838 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3840 (output_imm): Added arguments. Compute properly addend for
3842 (md_apply_fix3): Remove R_386_GOTPC handling.
3844 2002-08-06 George France <france@handhelds.org>
3846 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3847 and m21264b processor names and cpu types.
3848 * doc/c-alpha.texi: Documented new types.
3850 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3852 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3854 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3856 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3857 handling to BFD_RELOC_MIPS16_GPREL.
3859 2002-08-01 Nick Clifton <nickc@redhat.com>
3861 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3862 pool is computed using signed arithmetic so that proper sign
3863 extension is performed if X_add_number is a 64-bit integer.
3865 2002-08-01 H.J. Lu <hjl@gnu.org>
3866 Daniel Jacobowitz <drow@mvista.com>
3868 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3869 .debug_line section unless it has line information.
3871 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3873 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3874 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3875 Allow default displacement size to be an option "--disp-size-default".
3876 (md_number_to_disp): Make error messages include value. Use %d to
3877 print integers, not %s.
3878 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3879 get duplicate messages sometimes.
3880 (convert_iif): Grow frag to max possible instruction size. Avoid
3881 creating unnecessary fixes.
3882 (md_number_to_field) Add prototype.
3883 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3884 prototypes and make static.
3885 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3886 (evaluate_expr): Use resultP argument instead of exprP global.
3887 (get_addr_mode): Quiten compiler warnings.
3888 (encode_operand): eliminate unused variables. Quiten compiler
3889 warnings. Eliminate nul character in format strings.
3890 (parse): argc is unsigned.
3891 (reloc): Type cast index to quieten compiler.
3892 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3893 (md_convert_frag): Note unused parameters. Remove unused
3895 (md_create_long_jump, md_create_short_jump,
3896 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3899 2002-07-31 Nick Clifton <nickc@redhat.com>
3901 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3902 of the PDP-11 and 2.11BSD a.out support.
3904 2002-07-31 Momchil Velikov <velco@fadata.bg>
3906 * config/tc-v850.c (md_assemble): Fix range check for immediate
3909 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3911 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3912 to Broadcom SB-1 core support.
3914 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3916 * config/tc-mips.c (mips_target_format): Fix formatting.
3917 Add recognition of n32 ABI formats.
3919 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3921 * tc-mips.c (load_address): Don't clobber $at when loading a
3922 64-bit address in non-PIC code if noat is in effect.
3925 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3927 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3928 used in division/multiply macro expansions similarly to how they
3929 are used in the variants with break instructions.
3932 2002-07-30 Graeme Peterson <gp@qnx.com>
3934 * configure.in: Add support for arm-*-nto target.
3935 * configure: Regenerate.
3937 2002-07-30 Nick Clifton <nickc@redhat.com>
3939 * config/tc-arm.c (struct literal_pool): Add fields to allow
3940 multiple literal pools to be maintained.
3941 (find_literal_pool): New function.
3942 (find_or_make_literal_pool): New function.
3943 (add_to_literal_pool): Use find_or_make_literal_pool.
3944 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3946 (s_ltorg): Use find_literal_pool.
3947 (arm_cleanup): Dump all literal pools.
3948 * doc/c-arm.texi: Document new behaviour of only dumping literal
3951 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3953 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3954 rather than PPC_OPCODE_32 for powerpc64*.
3956 2002-07-25 Nick Clifton <nickc@redhat.com>
3958 * po/es.po: Updated Spanish translation.
3959 * po/fr.po: Updated French translation.
3961 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3963 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3964 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3965 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3966 * configure, config.in: Regenerate.
3967 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3968 (mips_set_options): Remove "abi" field.
3969 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3972 (mips_arch_string, mips_arch_info): New vars.
3973 (mips_tune_string, mips_tune_info): New vars.
3974 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3975 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3976 (mips_isa_to_str, mips_cpu_to_str): Remove.
3977 (mips_ip): If the selected architecture is a generic ISA rather
3978 than a processor, only mention the ISA level in error messages.
3979 (OPTION_MCPU): Remove.
3981 (md_longopts): Add -mfp64, remove -mcpu.
3982 (mips_set_option_string): New fn.
3983 (md_parse_option): Make -mipsN update file_mips_isa rather than
3984 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3985 Don't let -mgp32 and -mfp32 change the ABI.
3986 (show): Move to end of file. Constify string argument.
3987 (md_show_usage): Move to the end of the file. Read available
3988 architectures from mips_cpu_info_table.
3989 (mips_set_architecture): New fn.
3990 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3991 is an alias for -march=mipsN. Don't change the ABI based on other
3992 flags. Infer the register size from the ABI as well as the
3993 architecture. Complain about more conflicting arguments.
3994 Unify logic with GCC.
3995 (s_mipsset): Don't change the ABI.
3996 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3997 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3998 "mipsN"-type entries. Remove entries that vary only in the
3999 manufacturer's prefix, or that have "000" replaced by "k".
4000 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4001 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4002 (mips_parse_cpu): New fn.
4003 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4004 (mips_cpu_info_from_isa): Minor formatting tweak.
4006 2002-07-24 Nick Clifton <nickc@redhat.com>
4008 * po/sv.po: Updated Swedish translation.
4009 * po/es.po: Updated Spanish translation.
4011 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4013 * Makefile.am: Run "make dep-am".
4014 * Makefile.in: Regenerate.
4015 * doc/Makefile.in: Regenerate.
4016 * config.in: Regenerate.
4017 * po/POTFILES.in: Regenerate.
4019 2002-07-23 Nick Clifton <nickc@redhat.com>
4021 * po/fr.po: Updated French translation.
4023 2002-07-23 Nick Clifton <nickc@redhat.com>
4025 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4028 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4030 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4031 instead of S_IS_EXTERN.
4032 (md_estimate_size_before_relax): Likewise.
4033 (mips_fix_adjustable): Likewise.
4035 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4037 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4039 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4040 Nick Clifton <nickc@redhat.com>
4042 * cond.c (s_ifdef): Treat a referenced but not yet defined
4043 symbol as if it were undefined, in exactly the same way as
4046 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4047 consider referenced bug not yet defined symbols to be
4050 2002-07-18 Denis Chertykov <denisc@overta.ru>
4051 Frank Ch. Eigler <fche@redhat.com>
4052 Alan Lehotsky <alehotsky@cygnus.com>
4053 John Healy <jhealy@redhat.com>
4054 Jeff Johnston <jjohnstn@redhat.com>
4056 * configure.in: Add ip2k configuraton.
4057 * configure: Regenerate.
4058 * Makefile.am: Add ip2k configuraton.
4059 * Makefile.in: Regenerate.
4060 * configure: Regenerate.
4061 * Makefile.in: Regenerate.
4062 * config/tc-ip2k.c: New file.
4063 * config/tc-ip2k.h: New files.
4064 * NEWS: Mention new support.
4065 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4066 * doc/Makefile.in: Regenerate.
4067 * doc/all.texi: Set IP2K
4068 * doc/as.texinfo: Add IP2K description.
4069 * doc/c-ip2k.texi: New file.
4071 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4073 * NEWS: Reformat to match style of other NEWS files.
4075 2002-07-17 Jan Hubicka <jh@suse.cz>
4077 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4079 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4081 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4083 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4085 * NEWS: Add 'Changes in 2.13'.
4087 2002-07-15 Matt Fredette <fredette@netbsd.org>
4089 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4091 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4093 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4094 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4097 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4099 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4100 (ppc_frob_file_before_adjust): New function.
4101 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4102 (ppc_elf_frob_symbol): Don't declare.
4103 (tc_frob_file_before_adjust): Define.
4104 (ppc_frob_file_before_adjust): Declare.
4106 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4107 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4110 (ppc_xcoff64): Rename to ppc_obj64.
4111 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4112 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4113 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4115 (ppc_target_format): Use ppc_obj64 to select format.
4116 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4117 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4118 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4119 (tc_frob_symbol): Likewise.
4120 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4121 BFD_DEFAULT_TARGET_SIZE.
4123 (ppc_is_toc_sym): Likewise.
4124 (md_apply_fix3): Likewise.
4125 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4126 BFD_DEFAULT_TARGET_SIZE.
4127 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4128 (tc_frob_symbol): Likewise.
4130 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4132 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4133 (mips_ip): Likewise.
4135 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4137 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4138 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4139 (md_apply_fix3): Formatting. Remove redundant test.
4140 (tc_gen_reloc): Remove redundant code.
4141 (tc_i386_force_relocation): Delete. Movy body of function to..
4142 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4144 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4146 * configure.in: Add hppa-*-openbsd* target, change
4147 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4149 * configure: Regenerate.
4151 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4153 * config/tc-mips.c (macro): Shift the 32-bit address range
4154 accessible with a lone "lui" down by 32768.
4156 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4158 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4159 instead of "dadd" in address calculations.
4162 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4164 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4166 (md_assemble): Instead, zap the suffix here.
4168 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4170 * NEWS: Remove next release number until the release is actually
4173 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4175 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4177 * Makefile.in: Regenerate.
4179 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4181 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4182 to symbols in merge sections, even non pc-relative ones.
4184 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4186 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4188 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4190 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4191 .softregs and .eeprom.
4193 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4195 * NEWS: Note the next release is 2.13.
4197 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4199 * po/tr.po: New translation imported.
4201 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4203 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4204 (ecoff_directive_def): Likewise.
4205 (ecoff_directive_tag): Likewise.
4206 * listing.c (file_info): Likewise.
4207 * hash.c (what): Likewise.
4209 2002-06-25 H.J. Lu <hjl@gnu.org>
4211 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4212 * Makefile.in: Regenerated.
4214 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4216 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4217 (assemble_ppi): Generate warning if the same register is used
4218 twice as destination in the same padd / pmuls instruction.
4220 2002-06-18 Dave Brolley <brolley@redhat.com>
4222 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4223 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4224 * configure.in: Support frv-*-*.
4225 * Makefile.am (CPU_TYPES): Add frv.
4226 (TARGET_CPU_CFILES): Add tc-frv.c.
4227 (TARGET_CPU_HFILES): Add tc-frv.h.
4228 (DEPTC_frv_coff): New variable.
4229 (DEPTC_frv_elf): New variable.
4230 (DEPOBJ_frv_coff): New variable.
4231 (DEPOBJ_frv_elf): New variable.
4232 (DEP_frv_coff): New variable.
4233 (DEP_frv_elf): New variable.
4234 * tc-frv.c: New file.
4235 * tc-frv.h: New file.
4237 2002-06-17 Catherine Moore <clm@redhat.com>
4239 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4241 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4243 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4245 2002-06-17 Tom Rix <trix@redhat.com>
4247 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4249 2002-06-14 H.J. Lu <hjl@gnu.org>
4250 Daniel Jacobowitz <drow@mvista.com>
4252 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4253 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4254 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4255 and new_logical_line for the first .file directive.
4256 * read.c (s_app_file_string): New function.
4257 (s_app_file): Call it.
4258 * read.h (s_app_file_string): Add declaration.
4260 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4262 * configure.in: Remove MIPS_STABS_ELF.
4263 * configure: Regenerated.
4264 * config.in: Regenerated.
4265 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4267 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4269 (pdr_seg): Declare unconditionally.
4270 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4271 (s_mips_end): Likewise. Generate stabs function markers.
4272 (s_mips_ent): Generate stabs function markers.
4273 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4275 (s_mips_mask): Likewise.
4276 (mips_flag_mdebug): New.
4277 (md_longopts): Add "mdebug" and "no-mdebug".
4278 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4279 (mips_after_parse_args): Set mips_flag_mdebug.
4280 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4282 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4284 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4285 value twice for RELA relocations.
4287 2002-06-12 Ben Elliston <bje@redhat.com>
4289 * symbols.c (resolve_symbol_value): Initialise final_val.
4291 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4293 2002-06-11 Tom Rix <trix@redhat.com>
4295 * config/tc-ppc.c (ppc_subseg_align): Delete.
4296 (ppc_change_csect): Default csect align is 2.
4297 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4299 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4301 * config/tc-avr.c (mcu_types): Update.
4303 2002-06-08 Matt Thomas <matt@3am-software.com>
4305 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4306 (vax-*-netbsd*): New targets.
4307 * configure: Regenerate.
4308 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4309 * config/tc-vax.c: Add support for ELF and PIC.
4310 (flag_want_pic): New flag.
4311 (float_cons): Fix prototype.
4312 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4313 (md_assemble): Introduce a new is_absolute local, and use it
4314 rather than repeating the test. Make fatal errors actually
4315 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4316 Add support for ELF. Add support for PIC.
4317 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4318 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4320 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4321 optional for a.out, and not allowed for VMS. Adjust all callers.
4322 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4323 (md_create_long_jump): Likewise.
4324 (md_undefined_symbol): Likewise.
4325 (md_section_align): Likewise.
4326 (md_shortopts): Allow -k and -K for ELF.
4327 (md_parse_option): Set flag_want_pic if -k or -K.
4328 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4329 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4330 * config/tc-vax.h (tc_headers_hook): Remove.
4331 (TARGET_FORMAT): Set according to object format and target
4333 (BFD_ARCH, TARGET_ARCH): Define.
4334 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4335 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4336 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4337 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4339 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4341 * Makefile.am: Run "make dep-am".
4342 * Makefile.in: Regenerate.
4344 * as.c: Replace CONST with const.
4345 * write.c: Likewise.
4346 * config/obj-coff.c: Likewise.
4347 * config/tc-a29k.c: Likewise.
4348 * config/tc-arm.c: Likewise.
4349 * config/tc-dlx.c: Likewise.
4350 * config/tc-h8300.c: Likewise.
4351 * config/tc-h8500.c: Likewise.
4352 * config/tc-i370.c: Likewise.
4353 * config/tc-i860.c: Likewise.
4354 * config/tc-i960.c: Likewise.
4355 * config/tc-m68hc11.c: Likewise.
4356 * config/tc-m68k.c: Likewise.
4357 * config/tc-m88k.c: Likewise.
4358 * config/tc-mcore.c: Likewise.
4359 * config/tc-mips.c: Likewise.
4360 * config/tc-ns32k.c: Likewise.
4361 * config/tc-pdp11.c: Likewise.
4362 * config/tc-pj.c: Likewise.
4363 * config/tc-s390.c: Likewise.
4364 * config/tc-sh.c: Likewise.
4365 * config/tc-sparc.c: Likewise.
4366 * config/tc-tahoe.c: Likewise.
4367 * config/tc-tic80.c: Likewise.
4368 * config/tc-v850.c: Likewise.
4369 * config/tc-vax.c: Likewise.
4370 * config/tc-w65.c: Likewise.
4371 * config/tc-z8k.c: Likewise.
4373 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4375 Based on patch from Matt Green:
4376 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4377 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4378 (s_mips_loc): New function.
4379 (mips_nonecoff_pseudo_table): Call them.
4380 (append_insn): Call dwarf2_emit_insn.
4382 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4384 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4386 (file_ase_mips16): New veriable.
4387 (mips_eabi64): Remove.
4388 (CPU_HAS_MIPS16): New define.
4389 (CPU_HAS_MDMX): Fix data type.
4390 (md_begin): Code cleanup. Use file_ase_mips16.
4391 (mips_elf_final_processing): Handle mips16 header flag.
4392 Handle EABI flag without intermediate variable.
4394 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4396 * doc/as.texinfo: Update MIPS documentation.
4398 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4400 * config/tc-mips.c: Add define for $zero register.
4401 (md_begin): Add $zero as alias name for $0.
4402 (insn_uses_reg): Use ZERO define.
4403 (mips_ip): Add $zero as alias name for $0.
4404 (mips16_ip): Likewise.
4405 (s_cplocal): Demand empty rest of input line.
4406 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4407 names. Use ZERO define. Fix input_line_pointer progress.
4409 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4411 * symbols.c: Replace CONST by const throughout.
4412 (symbol_find_exact): Split out from..
4413 (symbol_find_base): ..here.
4414 * symbols.h: Replace CONST by const throughout.
4415 (symbol_find_exact): Declare.
4416 * config/obj-elf.c: #include "struc-symbol.h".
4417 (elf_frob_file): If group name matches an exported symbol, use that
4418 symbol for the signature and ".group" as the section name.
4420 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4422 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4425 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4427 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4428 and mips_opts.ase_mdmx if they are uninitialized.
4430 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4432 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4433 (hppa_force_relocation): Check if a stub just before the start symbol
4434 of the last call_info is reachable before forcing relocation. Fix
4437 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4439 * config/tc-mips.c (mips_after_parse_args): New function.
4440 (md_begin): Move processing of defaults to mips_after_parse_args.
4441 config/tc-mips.h (md_after_parse_args): Define.
4443 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4445 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4446 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4447 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4448 * configure: Regenerate.
4449 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4452 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4454 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4456 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4458 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4459 linkonce flag. Print all warnings.
4460 (obj_elf_section): Parse ",comdat" for groups.
4461 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4462 consistency of comdat flag.
4464 2002-06-02 Richard Henderson <rth@redhat.com>
4466 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4467 with LITERALs without sequence numbers.
4469 2002-06-01 Richard Henderson <rth@redhat.com>
4471 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4472 Rename them LITUSE_ALPHA_*.
4474 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4476 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4477 accept parentheses enclosed register lists.
4479 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4481 * Makefile.am: Run "make dep-am".
4482 * Makefile.in: Regenerate.
4483 * po/POTFILES.in: Regenerate.
4485 2002-05-31 Graeme Peterson <gp@qnx.com>
4487 * configure.in: Add i386-*-nto-qnx*.
4488 * configure: Regenerate.
4490 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4492 * config/tc-mips.c (mips_ip): Use unsigned long values for
4495 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4497 * config/tc-mips.c (s_cpsetup): Fix initialization of
4498 mips_cpreturn_register and mips_cpreturn_offset.
4500 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4502 * config/tc-mips.c (s_cpsetup): Fix comment.
4504 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4506 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4507 (mips_ip): Likewise.
4508 (mips16_ip): Likewise.
4509 (tc_get_register): Likewise.
4511 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4512 Ed Satterthwaite <ehs@broadcom.com>
4514 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4515 (mips_opts): Initialize "ase_mdmx" member.
4516 (file_ase_mdmx): New variable.
4517 (CPU_HAS_MDMX): New macro.
4518 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4519 based on command line options and configuration defaults.
4520 (macro_build): Note in comment that use of MDMX in macros is
4521 not currently allowed.
4522 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4523 "Z" MDMX operand types.
4524 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4525 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4527 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4528 Add support for "-mdmx" and "-no-mdmx" options.
4529 (OPTION_ELF_BASE): Move to accomodate new options.
4530 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4531 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4532 file_ase_mdmx was set.
4533 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4534 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4537 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4539 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4540 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4541 command line switch conforming to gcc conventions.
4542 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4544 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4546 * config/tc-mips.c (macro_build_jalr): New Function.
4547 (md_begin): NewABI uses big GOTs.
4548 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4549 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4550 (load_address): Add some NewABI PIC support.
4552 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4553 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4555 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4557 * config/tc-mips.c (load_address): Use mips_gp_register instead
4558 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4560 (macro): Use mips_gp_register instead of hardcoded value.
4562 2002-05-30 Richard Henderson <rth@redhat.com>
4564 * expr.h (operatorT): Add O_md17..O_md32.
4565 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4566 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4567 O_tprelhi, O_tprello, O_tprel): New.
4568 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4569 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4570 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4571 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4572 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4573 (md_apply_fix3): Handle TLS relocations.
4574 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4575 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4576 associated TLS reloc. Check lituse_tls relocs match up.
4577 (emit_insn): Handle TLS relocations.
4580 * doc/c-alpha.texi: Add docs for tls relocations.
4582 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4584 * config/tc-mips.c (mips_gprel_offset): New variable.
4585 (s_gpvalue): Use it.
4587 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4589 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4590 write-write conflicts.
4591 (md_assemble): Reformat introductory comment.
4592 (parallel_ok): Prevent packing only if the first
4593 instruction cannot be packed.
4595 2002-05-30 Jason Eckhardt <jle@redhat.com>
4596 Tom Rix <trix@redhat.com>
4598 * config/tc-d10v.c (build_insn): Check for immediates.
4600 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4602 * config/tc-mips.c: Replace GP in comments by $gp.
4603 (mips_big_got): Initialize.
4604 (mips_trap): Initialize.
4605 (load_address): Use mips_gp_register instead of hardcoded value.
4606 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4607 (macro): Use mips_gp_register instead of hardcoded value.
4608 (macro2): Change load_address calls.
4609 (md_pcrel_from): Comment formatting.
4610 (s_cpload): Use mips_gp_register instead of hardcoded value.
4611 (s_cprestore): Likewise. Comment formatting.
4612 (s_gpword): Fix data type.
4613 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4614 (nopic_need_relax): Replace GP in comments by $gp.
4615 (mips_elf_final_processing): Better comment.
4617 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4619 * configure.in: Add DLX configuraton
4620 * Makefile.am: Add DLX configuraton
4621 * configure: Regenerate.
4622 * Makefile.in: Regenerate.
4623 * config/tc-dlx.c: New file.
4624 * config/tc-dlx.h: New files.
4625 * NEWS: Mention new support.
4627 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4629 * config/obj-coff.c (write_object_file): Add missing semicolon.
4631 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4633 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4634 by the define. Remove superfluous check of mips_opts.mips16.
4635 (append_insn): Likewise. Canonicalize variable increments.
4636 (macro_build): Canonicalize variable increments.
4637 (macro_build_lui): Likewise.
4638 (load_register): Likewise.
4639 (load_address): Move pointer initialization.
4640 (macro): Move pointer to a more local scope. Canonicalize variable
4641 increments. Better comments. Replace magic constant for RA by the
4643 (macro2): Replace magic constant for RA by the define. Canonicalize
4644 variable increments.
4645 (mips_ip): Canonicalize variable increments.
4646 (mips16_ip): Replace magic constant for RA by the define.
4647 (my_getSmallParser): Canonicalize variable increments/decrements.
4648 (my_getPercentOp): Likewise.
4649 (my_getSmallExpression): Likewise.
4650 (s_align): Likewise.
4651 (s_mipsset): Likewise.
4652 (s_cpsetup): Likewise.
4653 (s_insn): Remove superfluous check of mips_opts.mips16.
4654 (s_mips_stab): Likewise.
4655 (mips_handle_align): Canonicalize variable increments.
4656 (s_mips_ent): Likewise.
4657 (s_mips_end): Add comment.
4659 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4661 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4662 * configure: Regenerate.
4664 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4666 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4667 * Makefile.in: Regenerate.
4668 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4669 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4670 * configure: Regenerate.
4671 * as.h: Use #include "" instead of <> for local header files.
4672 * flonum-konst.c: Likewise.
4673 * flonum-mult.c: Likewise.
4675 * listing.c: Likewise.
4676 * config/tc-ia64.h: Likewise.
4677 * config/tc-v850.h: Likewise.
4679 2002-05-24 TAMURA Kent <kent@netbsd.org>
4681 * configure.in: Add a target for i386-netbsdpe.
4682 * configure: Regenerate.
4684 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4686 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4687 (obj_elf_common): Call elf_common.
4688 (obj_elf_tls_common): New function.
4689 (elf_pseudo_tab): Support .tls_common.
4690 (special_sections): Add .tdata and .tbss.
4691 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4693 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4694 (obj_elf_parse_section_letters): Include T in error message.
4695 * config/tc-ppc.c (ppc_section_letter): Likewise.
4696 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4697 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4699 * config/tc-sparc.c (md_apply_fix3): Likewise.
4700 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4701 Define them if not BFD_ASSEMBLER.
4702 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4704 (md_apply_fix3): Add TLS relocs.
4705 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4706 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4707 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4708 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4709 (ia64_elf_section_letter): Include T in error message.
4710 (md_begin): Support TLS operators.
4711 (md_operand): Likewise.
4712 (ia64_gen_real_reloc_type): Support TLS relocs.
4713 * write.c (adjust_reloc_syms): Don't change symbols in
4714 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4716 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4718 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4719 round the relocation up rather than down.
4721 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4723 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4725 * doc/as.texinfo: Document that the COFF version of .section
4726 ignores the 'a' flag.
4728 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4730 * config/tc-alpha.c (assemble_tokens): Protect use of
4731 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4733 * write.c (size_seg): Check adjustment to last frag.
4734 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4736 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4737 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4738 (write_object_file): Invoke md_do_align if available, and use
4739 frag_align_code on text sections.
4740 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4741 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4742 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4743 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4744 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4747 2002-05-22 H.J. Lu <hjl@gnu.org>
4749 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4752 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4754 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4757 2002-05-22 H.J. Lu <hjl@gnu.org>
4759 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4760 for one .loc for compiler.
4762 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4764 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4767 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4769 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4770 Optimize the rotate by zero case.
4772 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4774 * configure.in: Remove accidental enabling of bfd_gas=yes for
4776 * configure: Regenerate.
4778 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4780 * app.c: Fix formatting.
4782 * ehopt.c: Likewise.
4784 * input-file.c: Likewise.
4785 * listing.c: Likewise.
4786 * macro.h: Likewise.
4787 * stabs.c: Likewise.
4788 * symbols.c: Likewise.
4790 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4792 * config/obj-generic.c: Delete file.
4793 * config/obj-generic.h: Likewise.
4795 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4797 * config/tc-avr.c (mcu_types): Update for new devices.
4799 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4801 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4803 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4805 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4806 worked sometimes by accident. Fix copy&paste comment.
4808 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4810 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4811 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4812 (mips_elf_final_processing): Let n32 use .reginfo.
4814 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4816 * config/tc-mips.c (append_insn): Fix too small range of variable.
4818 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4820 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4821 listing_prev_line().
4823 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4825 * config/tc-arm.c (md_assemble): Remove redundant call to
4828 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4831 * stabs.c (s_stab_generic): Fix grammatical error in warning
4834 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4836 * write.c (subsegs_finish): Don't specially align last subseg.
4838 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4840 * stabs.c (s_stab_generic): Warn about a description field that is
4843 * config/obj-coff.c: Fix compile time warnings when compiling
4844 without BFD_ASSEMBLER defined.
4847 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4849 (md_pcrel_from_section): Use md_pcrel_from().
4851 2002-05-11 Bruno Haible <bruno@clisp.org>
4853 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4854 by dwarf2_directive_loc, instead of calling dwarf2_where.
4856 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4858 * config/obj-coff.h: Fix formatting.
4859 * config/tc-mcore.c: Likewise.
4860 * config/tc-mn10300.c: Likewise.
4861 * config/tc-openrisc.c: Likewise.
4862 * config/tc-or32.c: Likewise.
4863 * config/tc-pdp11.c: Likewise.
4864 * config/tc-ppc.c: Likewise.
4865 * config/tc-ppc.h: Likewise.
4866 * config/tc-sh64.c: Likewise.
4867 * config/tc-sh.c: Likewise.
4868 * config/tc-tic54x.c: Likewise.
4869 * config/tc-xstormy16.c: Likewise.
4870 * config/tc-xstormy16.h: Likewise.
4872 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4874 * config/obj-coff.c: Fix formatting.
4875 * config/obj-elf.c: Likewise.
4876 * config/tc-alpha.c: Likewise.
4877 * config/tc-arm.c: Likewise.
4878 * config/tc-d10v.c: Likewise.
4879 * config/tc-d30v.c: Likewise.
4880 * config/tc-h8300.c: Likewise.
4881 * config/tc-hppa.c: Likewise.
4883 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4885 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4886 reloc when no_cond_jump_promotion.
4888 2002-05-08 Jim Wilson <wilson@redhat.com>
4890 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4891 current variable part of frag.
4893 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4895 * config/tc-mmix.c: Fix formatting.
4896 * config/tc-mmix.h: Likewise.
4898 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4900 * configure: Regenerate.
4902 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4904 * config/tc-m68k.c: Fix formatting.
4906 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4908 * Makefile.am: Honour DESTDIR.
4909 * Makefile.in: Regenerate.
4911 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4913 * config/tc-ia64.c: Fix formatting.
4914 * config/tc-ia64.h: Likewise.
4916 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4918 * config/tc-mips.c: Fix formatting.
4919 * config/tc-s390.c: Likewise.
4920 * config/tc-s390.h: Likewise.
4922 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4924 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4925 information for instructions.
4927 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4929 * as.h: Fix formatting.
4932 * dwarf2dbg.c: Likewise.
4933 * frags.h: Likewise.
4935 * macro.c: Likewise.
4937 * stabs.c: Likewise.
4938 * symbols.c: Likewise.
4940 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4942 * app.c (mri_pseudo): Only declare for TC_M68K.
4944 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4945 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4946 BFD_RELOC_16_BASEREL.
4947 (md_assemble): Likewise.
4948 (md_apply_fix3): Likewise.
4950 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4952 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4953 zero into an add of zero - it is not the same.
4955 2002-05-01 Arati Dikey <aratid@kpit.com>
4957 * tc-sh.c (get_specific): Generate warning if the same
4958 destination register is used in parallel instructions.
4960 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4962 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4964 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4966 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4967 backwards to prevent cascading errors.
4969 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4971 * configure.in: Add support for powerpc-*-windiss.
4972 * configure: Regenerated.
4974 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4976 * config/tc-s390.c (md_parse_option): Formatting.
4978 * config/tc-i386.c: Formatting fixes, add missing space in error
4981 2002-04-24 Christian Groessler <chris@groessler.org>
4983 * config/tc-z8k.c (build_bytes): Add support for new cases:
4984 CLASS_IGNORE and ARG_NIM4.
4985 (md_assemble): Prevent destruction of input_line_pointer if
4986 get_operands returns failure.
4988 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4990 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4991 instructions to be generated by macros.
4993 2002-04-24 Andreas Schwab <schwab@suse.de>
4995 * config/tc-i386.c (output_jump, output_disp)
4996 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4998 (md_apply_fix3): Remember addend value for rela relocations.
4999 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5001 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5003 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5004 from previous change.
5006 2002-04-22 Eric Christopher <echristo@redhat.com>
5008 * config/tc-mips.c (macro_build): Add warning if macro instructions
5009 are expanded into a branch delay slot.
5011 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5013 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5014 numbers, gdb relies on them to detect the start of the prologue.
5016 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5018 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5019 symbols in merge sections.
5021 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5023 * as.c (main): Don't reference _bfd_chunksize.
5025 2002-04-15 Tom Rix <trix@redhat.com>
5027 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5028 symbols in merge sections.
5030 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5032 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5033 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5034 argument for the precision.
5035 (gen_to_words): Update accordingly.
5037 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5039 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5040 BFD_VERSION_STRING unavailable.
5041 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5043 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5045 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5046 symbol_used_in_reloc_p is true.
5048 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5051 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5053 * dep-in.sed: Cope with absolute paths.
5054 * Makefile.am (dep.sed): Subst TOPDIR.
5056 * Makefile.in: Regenerate.
5058 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5060 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5061 (mips_ip): Remove unused variable.
5062 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5063 unsigned char with bfd_byte.
5064 (s_file): Remove unused variable.
5065 (s_mips_ent): Likewise.
5067 2002-04-03 Tom Rix <trix@redhat.com>
5069 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5071 (find_opcode): Fix warning in as_warn.
5072 * config/tc-d10v.h: Update Copyright.
5074 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5075 Tom Rix <trix@redhat.com>
5077 From Jeff Knaggs <jknaggs@redhat.com>
5078 * config/tc-d10v.c (check_resource_conflict): New function to
5079 check for resource conflicts.
5081 From Jason Eckhardt <jle@redhat.com>
5082 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5084 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5085 reserved control registers is used.
5086 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5089 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5090 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5091 instruction cannot be packed.
5093 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5094 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5095 write-write conflicts.
5096 (md_assemble): Reformat introductory comment.
5097 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5100 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5102 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5103 O_logical_not>): Derive final_seg from add_symbol.
5104 <O_multiply..O_logical_or>: More final_seg twiddles.
5106 2002-04-01 Jessica Han <jessica@cup.hp.com>
5108 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5111 2002-03-27 Andreas Schwab <schwab@suse.de>
5113 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5114 field for pc-relative fixups.
5115 (output_disp): Likewise.
5116 (md_estimate_size_before_relax): Likewise.
5117 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5118 pc-relative fixups in 64bit mode.
5120 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5122 * config/te-aix5.h: Typo fix.
5124 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5126 * Makefile.am: Run "make dep-am".
5127 * Makefile.in: Regenerate.
5128 * doc/Makefile.in: Regenerate.
5130 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5132 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5133 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5135 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5137 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5138 the EXTENDED bit here; report the estimate according to the
5141 2002-03-18 Tom Rix <trix@redhat.com>
5143 * configure.in: Add AIX 5 support.
5144 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5145 * config/te-aix5.h: New file. AIX 5 support.
5146 * configure: Regenerate.
5148 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5150 * po/fr.po: Updated version.
5152 2002-03-16 Andreas Jaeger <aj@suse.de>
5154 * doc/c-mips.texi (Machine Dependencies): Add new node.
5156 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5158 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5159 (mips_opts): Initialize "ase_mips3d" member.
5160 (file_ase_mips3d): New variable.
5161 (CPU_HAS_MIPS3D): New macro.
5162 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5163 based on command line options and configuration defaults.
5164 (macro_build, mips_ip): Accept MIPS-3D instructions if
5165 mips_opts.ase_mips3d is set.
5166 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5167 Add support for "-mips3d" and "-no-mips3d" options.
5168 (OPTION_ELF_BASE): Move to accomodate new options.
5169 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5170 (mips_elf_final_processing): Add a comment indicating that a
5171 MIPS-3D ASE ELF header flag should be set, when one exists.
5172 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5173 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5174 nomips3d" directives.
5176 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5178 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5179 a weak symbol in same section to be within reach.
5181 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5183 * po/fr.po: Updated version.
5185 2002-03-12 Andreas Schwab <schwab@suse.de>
5187 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5188 body record so that an error is given for misplaced .save
5191 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5193 * config/tc-i386.h (REX_OPCODE): Define.
5194 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5195 (rex_byte): typedef to int.
5196 * config/tc-i386.c: Group prototypes and vars together.
5197 Formatting fixes. Remove occurrences of "register" keyword.
5200 (mode_from_disp_size): Add INLINE keyword to prototype.
5201 (fits_in_signed_byte): Likewise.
5202 (fits_in_unsigned_byte): Likewise.
5203 (fits_in_unsigned_word): Likewise.
5204 (fits_in_signed_word): Likewise.
5205 (fits_in_unsigned_long): Likewise.
5206 (fits_in_signed_long): Likewise.
5207 (type_names): Constify.
5208 (intel_float_operand): Constify param.
5209 (add_prefix): Use REX_OPCODE.
5210 (md_assemble): Likewise. Modify for changed rex_byte.
5211 (parse_insn): Split out of md_assemble.
5212 (parse_operands): Likewise.
5213 (swap_operands): Likewise.
5214 (optimize_imm): Likewise.
5215 (optimize_disp): Likewise.
5216 (match_template): Likewise.
5217 (check_string): Likewise.
5218 (process_suffix): Likewise.
5219 (check_byte_reg): Likewise.
5220 (check_long_reg): Likewise.
5221 (check_qword_reg): Likewise.
5222 (check_word_reg): Likewise.
5223 (finalize_imm): Likewise.
5224 (process_operands): Likewise.
5225 (build_modrm_byte): Likewise.
5226 (output_insn): Likewise.
5227 (output_branch): Likewise.
5228 (output_jump): Likewise.
5229 (output_interseg_jump): Likewise.
5230 (output_disp): Likewise.
5231 (output_imm): Likewise.
5233 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5235 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5237 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5239 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5240 relocs except when BFD64.
5242 * write.c (number_to_chars_bigendian): Don't abort when N is
5243 larger than sizeof (VAL).
5244 (number_to_chars_littleendian): Likewise.
5246 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5248 * config/tc-hppa.c (md_apply_fix3): Add cast.
5249 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5252 2002-03-05 Paul Koning <pkoning@equallogic.com>
5254 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5255 (parse_ac5): New function for parsing float regs in float operand.
5256 (parse_expression): Remove attempt to make literals be octal.
5257 (parse_op_no_deferred): Support float literals.
5258 (parse_op): Reject attempts to refer to float regs.
5259 (parse_fop): New function, like parse_op but for float operand.
5260 (md_assemble): Add cases to parse float operands. Also fix
5261 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5263 2002-03-04 H.J. Lu <hjl@gnu.org>
5265 * config/obj-elf.c (special_section): Add .init_array,
5266 .fini_array and .preinit_array.
5268 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5269 .init_array and .fini_array.
5271 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5273 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5275 (obj_frob_symbol): Copy visibility.
5277 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5279 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5281 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5283 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5285 * po/es.po: Updated.
5287 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5289 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5290 only, undo the changes made on 2001-06-08, with the
5291 effect being that common or extern symbols are
5292 adjusted for embedded-PIC, but weak symbols are not.
5293 (md_estimate_size_before_relax: Likewise, with the effect
5294 that extern symbols are treated the same as weak symbols
5295 only if not embedded-PIC.
5296 (mips_fix_adjustable) Likewise, with the effect that
5297 weak or extern symbols are not adjusted for embedded-PIC.
5298 (md_apply_fix3): Tweak so that the case where value is zero
5299 is handled more correctly for embedded-PIC code.
5301 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5303 * doc/as.texinfo (Overview): Add missing @ifset IA64
5305 * configure.in (LINGUAS): Add es.po.
5306 * configure: Regenerate.
5307 * po/es.po: New file.
5309 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5311 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5312 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5313 and NO_PIC cases. Code cleanup.
5314 (macro2): Fix handling of 64bit register loads.
5316 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5318 * doc/as.texinfo: Add entry for IA64.
5319 * doc/c-ia64.texi: New file.
5321 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5323 * config/tc-hppa.c: Update copyright date.
5325 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5326 Remove references to chip manufacturers.
5327 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5329 (md_show_usage): Remove references to chip manufacturers. Mention
5331 (md_begin): Test power4 opcode flag bits.
5333 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5335 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5336 count exceeds prologue count.
5337 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5338 (unwind.label_prologue_count): New member.
5340 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5342 (get_saved_prologue_count): New function.
5343 (save_prologue_count): New function.
5344 (free_saved_prologue_count): New function.
5345 (dot_label_state): Record state label by calling save_prologue_count().
5346 (dot_copy_state): Restore prologue count by calling
5347 get_saved_prologue_count().
5348 (generate_unwind_image): Free up list of saved prologue
5349 counts by calling free_saved_prologue_counts().
5351 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5353 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5354 function declarations.
5356 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5358 * NEWS: Note that GASP is now deprecated.
5359 * Makefile.am: Do not build gasp-new by default.
5360 * Makefile.in: Regenerate.
5361 * doc/Makefile.am: Do not install gasp.info.
5362 * doc/Makefile.in: Regenerate.
5363 * gas/gasp.texi: Note that gasp is now deprecated.
5365 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5367 * NEWS: Mark 2.12 branch.
5369 2002-02-19 Tom Tromey <tromey@redhat.com>
5371 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5373 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5375 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5378 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5380 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5381 Make bit size independent of architecture switch.
5382 (md_begin): Add warning for -m64 with -Aesa.
5383 (s390_md_end): Use renamed architecture defines.
5385 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5387 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5389 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5391 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5394 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5396 * config/tc-mips.c (md_estimate_size_before_relax): Really
5397 make sure we treat weak like extern only for ELF. (Fixes
5398 patch from 2001-07-25.)
5400 2002-02-15 Ben Elliston <bje@redhat.com>
5402 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5405 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5407 * NEWS: Mention support for MMIX.
5409 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5411 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5412 a sequence of indpendent 'if' statements for easier debugging
5413 and future modification.
5415 2002-02-13 Matt Fredette <fredette@netbsd.org>
5417 * config/tc-m68k.c (md_show_usage): No longer display a
5418 hard-coded "68020" for the default CPU, instead display the
5419 canonical name of the true, configured default CPU.
5420 (m68k_elf_final_processing): Mark objects for sub-68020
5421 CPUs with the new EF_M68000 flag.
5423 2002-02-13 Andreas Schwab <schwab@suse.de>
5425 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5426 pc-relative relocations to merge sections in 64-bit mode.
5428 2002-02-13 Ben Elliston <bje@redhat.com>
5430 * NEWS: Document floating point number handling in gasp.
5431 * gasp.c: Include <assert.h> and "xregex.h".
5432 (is_flonum): New function.
5433 (chew_flownum): Likewise.
5434 (change_base): Consume flonums from the input, where possible.
5435 * doc/gasp.texi (Constants): Document floating point numbers.
5437 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5439 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5440 that implicitly use LR and RR selectors.
5442 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5444 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5445 and `epsw' as available on AM33 and above only.
5446 (other_register_name): Add logic to handle machine type encoded in
5449 2002-02-11 Tom Rix <trix@redhat.com>
5451 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5454 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5456 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5459 2002-02-11 Jan Hubicka <jh@suse.cz>
5461 * i386.c (md_assemble): Support 32bit address prefix.
5462 (i386_displacement): Likewise.
5463 (i386_index_check): Accept 32bit addressing in 64bit mode.
5465 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5467 * config/tc-sh.c (dot): Removed unused function.
5469 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5471 * Makefile.am: "make dep-am".
5472 * Makefile.in: Regenerate.
5473 * aclocal.m4: Regenerate.
5474 * config.in: Regenerate.
5475 * configure: Regenerate.
5476 * doc/Makefile.in: Regenerate.
5478 2002-02-10 Richard Henderson <rth@redhat.com>
5480 * doc/c-alpha.texi: New file.
5481 * doc/Makefile.am (CPU_DOCS): Add it.
5482 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5484 2002-02-09 Richard Henderson <rth@redhat.com>
5486 * config/tc-alpha.c (O_samegp): New.
5487 (USER_RELOC_P): Include it.
5488 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5489 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5490 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5491 (alpha_validate_fix): New.
5492 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5494 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5496 * doc/c-cris.texi: New.
5497 * doc/all.texi: @set CRIS.
5498 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5499 Include c-cris.texi.
5500 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5501 * doc/Makefile.in: Regenerate.
5503 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5505 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5506 determine if a number is a sign-extended 32-bit number.
5507 (load_register): Use IS_SEXT_32BIT_NUM.
5508 (macro): Check if load/store macro handling is using a
5509 constant 32-bit address on 64-bit address systems, and if
5510 so optimize the generation of that address.
5512 2002-02-08 Richard Henderson <rth@redhat.com>
5514 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5515 we've eliminated all foreign relocation types yet.
5516 (alpha_fix_adjustable): Likewise.
5518 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5520 Contribute sh64-elf.
5521 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5522 Stephen Clarke <Stephen.Clarke@st.com>
5523 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5524 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5525 * config/tc-sh.c (md_relax_table): Added default sizes for
5526 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5527 MOVI_16, MOVI_32 and MOVI_48.
5528 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5529 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5531 (shmedia_md_estimate_size_before_relax): Remove redundant
5532 blocks. Set fragP->fr_var even if relaxation type unchanged.
5533 Retain UNDEF_MOVI until expression decays to number.
5534 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5535 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5536 relocation types. Take fixP->fx_addnumber into account too.
5537 (shmedia_md_apply_fix): Likewise.
5538 (shmedia_md_convert_frag): Likewise.
5539 (shmedia_build_Mytes): Likewise.
5540 (sh64_consume_datalabel): Complain about nested datalabel.
5541 Support PIC relocs. Call sh_parse_name.
5542 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5543 in tc-sh.h to SHmedia reloc types.
5544 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5545 MOVI_GOTPC): New relaxation constants.
5546 (md_relax_table): Introduce relaxation directives for PIC-related
5548 (sh_PIC_related_p): Handle datalabel.
5549 (sh_check_fixup): Choose SH5 PIC relocations.
5550 (sh_cons_fix_new): Added BDF_RELOC_64.
5551 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5552 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5553 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5554 current ISA is SHmedia, get 7 bytes.
5555 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5556 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5558 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5559 shmedia_apply_fix3 and make void.
5560 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5561 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5563 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5564 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5565 2001-03-14 DJ Delorie <dj@redhat.com>
5566 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5567 * doc/Makefile.in(CPU_DOCS): Ditto.
5568 * doc/c-sh64.texi: New file.
5569 * doc/as.texinfo: Add SH64 support.
5570 2001-03-13 DJ Delorie <dj@redhat.com>
5571 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5572 A_REUSE_PREV so that its purpose is more obvious.
5573 (shmedia_build_Mytes): Ditto.
5574 2001-03-07 DJ Delorie <dj@redhat.com>
5575 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5577 (sh64_vtable_inherit): Ditto.
5578 (strip_datalabels): New, strip "datalabel" from given line.
5579 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5581 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5582 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5584 (shmedia_build_Mytes): ... to here.
5585 2001-03-06 DJ Delorie <dj@redhat.com>
5586 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5588 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5589 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5590 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5591 address by one in call to dwarf2_emit_insn.
5592 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5593 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5594 alignment handling broken by imported changes.
5595 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5596 (sh64_handle_align): Declare.
5597 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5598 (sh64_max_mem_for_rs_align_code): Declare.
5599 (enum sh64_isa_values): Moved here from tc-sh64.c.
5600 (md_do_align): Define.
5601 (sh64_do_align): Declare.
5602 (struct sh64_tc_frag_data): New.
5603 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5605 (TC_FRAG_INIT): Change to set new datatype.
5606 (struct sh64_segment_info_type): Rename member
5607 last_flushed_location to last_contents_mark. All users changed.
5608 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5609 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5610 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5611 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5612 of unsetting seen_insn.
5613 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5614 call sh64_update_contents_mark.
5615 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5616 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5617 enum sh64_isa_values.
5618 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5619 (emitting_crange): Boolean guard moved to file scope from function
5620 scope in sh64_set_contents_type.
5622 (sh64_update_contents_mark): New; most split out from
5623 sh64_flush_pending_output.
5624 (shmedia_md_end): Call sh64_update_contents_mark. Set
5625 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5626 (sh64_do_align): New function.
5627 (sh64_max_mem_for_rs_align_code): New function.
5628 (sh64_handle_align): Rename from shmedia_do_align. Make
5629 non-static. Add head comment. Emit zero bytes for n bytes modulo
5630 four. Change return-type to void.
5631 (shmedia_elf_new_section): Remove.
5632 (shmedia_md_assemble): Call sh64_update_contents_mark.
5633 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5634 new frag. Call sh64_update_contents_mark after making the new
5636 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5637 and sh_flush_pending_output.
5638 (sh64_flag_output): Also call md_flush_pending_output, but add
5639 condition on not emitting_crange.
5640 (sh64_tc_cons_fix_new): Remove.
5641 2001-01-12 Nick Clifton <nickc@redhat.com>
5642 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5643 alignment handling scheme imported from sourceware.
5644 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5645 * config/tc-sh64.h (TARGET_FORMAT): Define.
5646 (sh64_target_format): Prototype.
5647 * config/tc-sh64.c (sh64_target_mach): New function.
5648 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5649 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5650 zero_address_frag instead of copying the frag of the symbol.
5651 (shmedia_frob_file_before_adjust): Ditto.
5652 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5653 to valueT to remove signedness.
5654 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5655 headers to output_bfd. Do not evaluate symbols if final is false;
5657 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5658 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5659 to the current frag, call shmedia_md_convert_frag to emit fixups
5660 and make frag_wane neutralize the frag. Update comments.
5661 * config/tc-sh.c (md_convert_frag): Change caller of
5662 shmedia_md_convert_frag.
5663 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5664 * config/tc-sh64.h: Tweak comments and correct formatting.
5665 * config/tc-sh64.c: Ditto.
5666 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5667 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5668 for the no-relocation case.
5669 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5670 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5672 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5674 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5675 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5677 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5679 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5680 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5681 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5682 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5683 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5684 if reloc is emitted.
5685 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5686 New options plus bugfixes.
5687 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5689 (md_parse_option): Handle new options.
5690 (md_show_usage): Add blurb for new options.
5691 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5692 (sh64_expand, sh64_pt32): New variables.
5693 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5694 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5695 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5696 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5697 <resolved previously-pc-relative relocs>: Handle
5698 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5699 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5700 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5701 points to SHcompact code.
5702 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5703 SH64PCREL16)>: Check that ISA of what operand points at and
5704 PTA/PTB matches, or emit error.
5705 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5706 SHMEDIA_BFD_RELOC_PT.
5707 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5709 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5710 condition for MOVI expansion.
5711 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5712 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5714 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5716 (sh64_target_format): Error-check setting of sh64_pt32 and
5717 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5718 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5719 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5720 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5721 * config/tc-sh64.c: Improve comments.
5722 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5723 not say the linker will check correctness of PTA/PTB expansion.
5724 (shmedia_md_end): Make non-static.
5725 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5727 * config/tc-sh.c (sh_finalize): Remove.
5728 * config/tc-sh.h (md_end): Do not define.
5729 Remove prototype for sh_finalize.
5730 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5731 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5732 sh64_section_data container when storing section type in tdata
5733 field in elf_section_data.
5734 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5736 * Makefile.am: Update dependencies.
5737 * Makefile.in: Regenerate.
5738 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5739 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5740 dwarf2_emit_insn call with test on debug_type.
5741 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5742 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5743 CRT_SH5_ISA32 sticky for 64-bit.
5744 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5745 Generate .crange sections when switching ISA mode or emitting
5746 constants in same section as code.
5747 * config/tc-sh64.c: Reformat structure definitions.
5748 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5750 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5751 to emit a .cranges descriptor when contents type changes. Only
5752 emit error if changing contents type and -no-mix is in effect.
5753 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5754 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5755 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5756 sh64_flush_last_crange over sections.
5757 When checking main symbol of datalabel symbol, check for
5758 STO_SH5_ISA32, not ISA type of section in definition.
5759 (shmedia_frob_file_before_adjust): Check main symbol for
5760 STO_SH5_ISA32; don't check ISA type of section in definition.
5761 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5762 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5763 .cranges entries have been output.
5764 (shmedia_elf_new_section): Just call md_flush_pending_output.
5765 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5766 fix. Do not set tc_segment_info_data.in_code for section. Call
5767 sh64_set_contents_type for SHmedia code.
5768 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5769 false. Call md_flush_pending_output.
5770 (sh64_target_format): Check that -no-mix and
5771 -shcompact-const-crange are used in sane combination with other
5773 (shmedia_md_pcrel_from_section): Check type of fix for how to
5775 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5776 not ISA type of section in definition.
5777 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5778 hold contents-type state.
5779 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5780 (sh64_flush_pending_output): Declare.
5781 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5782 (sh64_tc_cons_fix_new): Declare.
5783 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5784 call sh64_flag_output.
5785 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5786 call sh64_set_contents_type to mark SHcompact code and set
5788 (md_longopts): New options "-no-mix" and
5789 "-shcompact-const-crange".
5790 (md_parse_option): Handle new options.
5791 (md_show_usage): Add blurb for new options.
5792 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5793 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5794 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5795 (sh64_last_insn_frag): New.
5796 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5797 to get frag for insn opcode for generating fixups; do not assume it
5799 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5801 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5803 (TC_FRAG_TYPE): Define as fragS *.
5804 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5805 (sh64_last_insn_frag): Declare.
5806 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5807 not == NULL before dereferencing.
5808 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5809 Get rid of BFD section flag and EF_SH64_ABI64.
5810 * config/tc-sh64.c (shmedia_frob_section_type): Use
5811 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5812 communicate the section as containing SHmedia code. Describe why.
5813 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5814 EF_SH64 regardless of ABI.
5815 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5816 in error message. Handle resolved expressions for
5817 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5818 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5819 (shmedia_check_limits): Handle BFD_RELOC_64.
5820 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5821 a STO_SH5_ISA32 symbol, only the BFD value.
5822 2000-12-11 Ben Elliston <bje@redhat.com>
5823 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5824 dwarf2_generate_asm_lineno.
5825 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5826 Handle PC-relative MOVI expansions with assembler relaxation.
5827 Generate PC-relative relocs from 16-bit PC-relative expressions.
5828 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5829 (shmedia_md_pcrel_from_section): ...here.
5830 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5831 turned completely resolved. Adjust relocation type for 16-bit
5832 immediate operands that has turned PC-relative. Adjust back for
5833 MD_PCREL_FROM_SECTION being applied twice.
5834 (shmedia_md_convert_frag): Always emit reloc for expression with
5835 global or weak symbol. Handle relaxation result for PC-relative
5837 (shmedia_md_estimate_size_before_relax): An expression with a weak
5838 or global symbol can not be relaxed. Break out tests for
5839 relaxable symbol into variable sym_relaxable.
5840 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5841 UNDEF_MOVI)>: Break out any PC-relative expression and change
5843 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5845 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5846 MOVI expansion. If X_op_symbol of the immediate expression is
5847 set, make an expression symbol for the argument to frag_var.
5848 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5850 (END): Adjust for new relaxations.
5851 (md_relax_table): Add entries for new relaxations.
5852 2000-12-07 Ben Elliston <bje@redhat.com>
5853 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5854 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5855 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5856 SHORI operand offsets in PT/PTA/PTB expansions.
5857 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5858 Implement DataLabel semantics.
5859 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5860 shmedia_frob_file_before_adjust.
5861 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5862 (DATALABEL_SUFFIX): Define.
5863 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5864 symbol list to update "datalabel" symbols to their main symbol
5866 (shmedia_frob_file_before_adjust): New.
5867 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5868 undefined and set STT_DATALABEL.
5869 (sh64_frob_label): Initialize TC symbol field.
5870 (sh64_consume_datalabel): Actually implement semantics. New
5871 parameter operandf, call it instead of expression.
5872 (sh64_exclude_symbol): New.
5873 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5874 to sh64_consume_datalabel.
5875 (tc_symbol_new_hook): Define to tc_frob_symbol.
5876 (TC_SYMFIELD_TYPE): Define to symbolS *.
5877 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5878 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5879 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5881 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5882 generating dwarf2 debug information.
5883 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5884 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5885 elf64-sh64 for the 64-bit ABI.
5886 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5888 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5889 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5891 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5892 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5893 (enum sh64_abi_values): New type.
5894 (enum sh64_isa_values): New type.
5895 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5896 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5897 (sh64_abi): Replace shmedia_64.
5898 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5899 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5900 (s_sh64_mode): Check validity for this target.
5901 (sh64_target_format): Initialize defaults for ISA and ABI.
5902 Fallback to old object format if no SH64 ISA or ABI has been
5904 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5905 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5906 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5907 * config/tc-sh64.h: Fix typo in comment.
5908 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5909 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5910 <PT fixups for absolute values>: Size will be longest, not
5912 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5913 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5914 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5915 and l1 to hold lowercase of two first characters. Change all
5916 remaining TO_LOWER to tolower.
5917 * config/tc-sh64.c (TO_LOWER): Delete.
5918 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5919 (md_parse_name): Define.
5920 (sh64_consume_datalabel): Declare.
5921 (DOLLAR_DOT): Define.
5922 * config/tc-sh64.c (shmedia_parse_exp): New.
5923 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5924 (shmedia_parse_reg): Remove const from src
5926 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5927 (shmedia_md_assemble): Ditto for op_end variable.
5928 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5929 Use shmedia_parse_exp, not parse_exp.
5930 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5931 parameter. All callers changed.
5932 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5934 (shmedia_parse_reg): Put first two character in local variables.
5935 Use tolower, not TO_LOWER. If no register is found and argtype
5936 indicates a control register, scan shmedia_creg_table
5938 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5939 * Makefile.am (CPU_TYPES): Add sh64.
5940 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5941 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5942 Regenerate dependencies.
5943 * Makefile.in: Regenerate.
5944 * configure.in: Add support for sh64-*-elf*.
5945 * configure: Regenerate.
5946 * config/tc-sh64.h: New.
5947 * config/tc-sh64.c: New.
5948 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5949 .mode, .isa and .uaquad.
5950 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5951 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5952 [HAVE_SH64] (END): Define as 10.
5953 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5954 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5956 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5957 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5958 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5959 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5961 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5962 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5963 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5964 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5965 SHmedia instructions. Handle state-change after switching to
5967 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5968 (md_parse_option) [HAVE_SH64]: Parse new options.
5969 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5970 (md_convert_frag) [HAVE_SH64] <default>: Call
5971 shmedia_md_convert_frag instead of abort.
5972 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5973 BFD_RELOC_SH_SHMEDIA_CODE.
5974 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5975 SHcompact or SHmedia code.
5976 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5977 shmedia_md_apply_fix instead of abort.
5978 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5979 result from calling shmedia_md_estimate_size_before_relax instead
5981 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5983 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5984 shmedia_init_reloc and do nothing more if it returns non-zero.
5985 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5986 * po/POTFILES.in: Regenerate.
5987 * po/gas.pot: Regenerate.
5989 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5991 * config/tc-sh.c (parse_at): Install the correct version of
5994 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5995 assume fixP->fx_subsy is non-NULL.
5997 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5999 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6000 A_DISP_PC_ABS, and adjust it by -4.
6001 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6003 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6004 the operand type is not A_DISP_PC_ABS.
6006 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6008 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6009 common and weak symbols. Handle common and weak symbols as
6010 undefined symbols with regards to GREG handling and merging.
6011 (mmix_frob_file): Ditto.
6013 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6015 * configure.in (hppa-*-netbsd*): New target.
6016 * configure: Regenerate.
6017 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6019 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6021 * config/tc-v850.c: Add missing prototypes amd use old-style
6022 function definitions.
6023 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6024 (sdata_section tdata_section, zdata_section, sbss_section,
6025 tbss_section, zbss_section, rosdata_section, rozdata_section,
6026 scommon_section, tcommon_section, zcommon_section,
6027 call_table_data_section, call_table_text_section): Delete.
6028 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6029 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6030 v850_call_table_data, v850_call_table_text): Delete.
6031 (struct v850_seg_entry): New.
6032 (v850_seg_table): New.
6033 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6034 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6035 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6036 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6039 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6040 recording of alignment.
6041 (md_pseudo_table): Use v850_seg.
6042 (md_begin): Don't init .call_table_data and .call_table_text here.
6043 Set v850_seg_table bss entry.
6045 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6047 Support on-demand global register allocation by passing on
6048 base-plus-offset relocs to the linker.
6049 * config/tc-mmix.c: Tweak and fix typos in comments.
6050 (allocate_undefined_gregs_in_linker): New variable.
6051 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6052 (md_longopts): Add --linker-allocated-gregs.
6053 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6054 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6055 (md_show_usage): Update text for -x. Add text for
6056 --linker-allocated-gregs.
6057 (tc_gen_reloc): Derive default value for addend from val and
6058 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6059 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6060 GREG if allocate_undefined_gregs_in_linker.
6061 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6062 --linker-allocated-gregs.
6063 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6064 --linker-allocated-gregs. Mention that it's implied by -x.
6065 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6066 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6068 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6070 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6072 * Makefile.am: Run "make dep-am"
6073 * Makefile.in: Regenerate.
6075 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6077 * config/tc-or32.c: New file.
6078 * config/tc-or32.h: New file.
6079 * configure.in: Add support for or32 targets.
6080 * configure: Regenerate.
6081 * config/obj-coff.c: Add support for or32 targets.
6082 * config/obj-coff.h: Add support for or32 targets.
6083 * Makefile.am: Add support for or32 targets.
6084 * Makefile.in: Regenerate.
6085 * NEWS: Mention support for OpenRISC.
6086 * doc/Makefile.in: Regenerate.
6087 * po/POTFILES.in: Regenerate.
6088 * po/gas.pot: Regenerate.
6090 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6092 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6095 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6097 * config/tc-mips.c (tc_gen_reloc): Arrange for
6098 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6099 their LO16 parts, even for ELF.
6101 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6103 * config/tc-i386.c: Protect definitions of true and false
6106 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6108 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6109 made because of .weak, if they are neither defined nor used in any
6112 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6114 * configure: Regenerated.
6116 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6118 * doc/Makefile.am (install): Depend on install-info.
6119 * doc/Makefile.in: Regenerate.
6121 2002-01-26 Nick Clifton <nick@redhat.com>
6123 * po/fr.po: Updated version
6125 2002-01-24 Kazu Hirata <kazu@hxi.com>
6127 * config/tc-h8300.c (check_operand): Don't print a warning
6128 when a valid 24-bit address is given to a 16-bit address
6131 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6133 * config/tc-sh.c (sh_elf_suffix): Removed.
6134 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6135 sh_end_of_match, sh_parse_name): New functions.
6136 (sh_elf_cons): Simplify.
6137 (parse_exp): Reject misplaced PIC operands.
6138 (md_undefined_symbol): Simplify.
6139 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6140 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6141 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6142 Complain if subsy remains at the end.
6143 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6144 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6146 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6148 * config/tc-mn10300.c (xr_registers): Move `pc'...
6149 (other_registers): ... here.
6151 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6153 * Makefile.am: Run "make dep-am".
6154 * Makefile.in: Regenerate.
6155 * gas/po/POTFILES.in: Regenerate.
6157 2002-01-21 DJ Delorie <dj@redhat.com>
6159 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6160 stabstr_name allocation permanent, as it will be referenced from
6163 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6165 * configure.in (ia64-*-netbsd*): New target.
6166 * configure: Regenerate.
6168 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6170 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6172 <Detailed description, ARM options>: Ditto.
6173 * doc/c-arm.texi (ARM Options): Ditto.
6175 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6177 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6178 do_mia, do_mar and do_mra respectively.
6179 (do_mav_*): Renamed from do_c_*.
6180 (mav_reg_required_here, mav_parse_offset): Renamed from
6181 cirrus_reg_required_here and cirrus_parse_offset respectively.
6182 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6184 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6185 Keith Walker <keith.walker@arm.com>
6187 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6188 (insns): Add pattern for bxj instruction.
6189 (do_bxj): New function.
6190 (arm_cpus): Add arm926ej.
6191 (arm_archs): Add armv5tej.
6193 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6195 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6197 2002-01-19 Keith Walker <keith.walker@arm.com>
6199 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6201 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6203 * NEWS: Mention new ARM command-line options and VFP support.
6205 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6207 (ARM_CEXT_MAVERICK): Similarly.
6208 (ARM_ANY): Now means any core instruction.
6209 (CPU_DEFAULT): Default to ARM_ANY.
6210 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6211 (pic_code): Declare for all object types. Make type int.
6212 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6213 (march_fpu_opt, mfpu_opt): Declare.
6214 (md_longopts): Tidy up conditional definitions.
6215 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6216 (arm_long_opts): New tables.
6217 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6218 (arm_parse_extension): New function.
6219 (md_parse_option): Rewrite using new table-driven system.
6220 (md_show_usage): Use new table-driven system.
6221 (md_begin): Calculate cpu_variant from command line option data.
6222 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6223 command-line options.
6224 * doc/c-arm.texi: Likewise.
6226 2002-01-18 Andreas Jaeger <aj@suse.de>
6228 * as.c (parse_args): Update year.
6230 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6232 * config/tc-tic54x.c (encode_address): Add a more informative
6233 warning about incorrect syntax.
6235 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6237 * po/gas.pot: Regenerate.
6239 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6241 * macro.c (get_any_string): Add no-c-format comment to prevent
6242 confusion when translating string.
6243 * gasp.c (get_any_string): Add no-c-format comment to prevent
6244 confusion when translating string.
6246 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6247 Johannes Stezenbach <js@convergence.de>
6248 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6249 matched before the shorter ones.
6250 (my_getSmallParser): Fix handling of nested parentheses in
6251 percent_op's. Code cleanup.
6252 (my_getPercentOp): New function, code from my_getSmallParser.
6253 (my_getSmallExpression): Fix handling of closing parentheses.
6254 Code cleanup. Better comments.
6256 2002-01-16 Nick Clifton <nickc@redhat.com>
6258 po/tr.po: New file: Turkish translation.
6259 configure.in (LINGUAS): Add "tr".
6260 configure: Regenerate.
6262 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6264 Support for VFP instructions
6265 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6266 (cp_address_required_here): New argument wb_ok. When false, do not
6267 accept write-back forms of addressing. Change all callers.
6268 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6269 (FPU_VFP_EXT_V2): Define.
6270 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6271 Define in terms of above.
6272 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6273 (vfp_reg): New struct.
6274 (vfp_regs): New array of registers.
6275 (insns): Add VFP instructions.
6276 (sn_table): New array of VFP single-precision register names.
6277 (dn_table): New array of VFP double-precision register names.
6278 (all_reg_maps): Add the new register tables.
6279 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6280 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6281 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6282 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6283 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6284 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6285 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6286 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6287 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6288 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6289 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6290 (do_vfp_sp_dp_cvt): New functions.
6291 (md_begin): Set soft-float flag for appropriate VFP work.
6292 (md_atof): Handle VFP-format doubles.
6293 (md_parse_option): Handle VFP command-line options.
6294 (md_show_usage): Display VFP command-line options.
6296 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6298 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6299 various command line options.
6301 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6303 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6305 (xstormy16_md_apply_fix3): Do not return a value.
6307 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6309 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6310 the -EL/-EB option that matches the target's endianness.
6311 (md_parse_option): Likewise.
6313 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6315 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6316 is not dependent on ARM_BI_ENDIAN.
6318 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6320 * tc-arm.c (all error messages): Normalize capitalization of messages.
6322 * tc-arm.h (md_operand): Delete define.
6323 * tc-arm.c (in_my_get_expression): New static variable.
6324 (my_get_expression): Set and clear it.
6325 (md_operand): New function. If called from my_get_expression
6326 put the error in inst.error.
6327 (output_inst): Now takes argument of instruction being assembled.
6328 Print it out with any error message.
6329 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6331 (end_of_line): Don't update inst.error if it is already set.
6333 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6335 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6336 op that can be translated into a mvn instruction.
6338 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6340 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6341 setting default md.flags.
6342 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6343 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6344 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6345 for 32 bit unwind info blocks.
6346 (generate_unwind_image): Add support for different types
6347 of unwind images (32 bits and/or big-endian).
6348 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6349 (ia64_target_format): Add support for hpux target formats.
6350 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6351 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6352 SHT_FINI_ARRAY elf section types.
6354 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6356 * tc-arm.c (struct reg_entry): Move before prototypes.
6357 (int_register, cp_register, fp_register): Delete.
6358 (reg_table): Delete. Replaced with ...
6359 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6360 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6361 (mav_dspsc_table): ... one table per register set.
6362 (arm_reg_hsh): Delete.
6363 (struct reg_map): New structure.
6364 (all_reg_maps): New array.
6365 (enum arm_reg_type): New enums.
6366 (build_reg_hsh): New function.
6367 (insert_reg_alias): Use hash table passed by caller. Adjust all
6369 (create_register_alias): New function, split out from ...
6370 (md_assemble): ... here.
6371 (md_begin): Build new register hash tables.
6372 (arm_reg_parse): New argument for the hash table to search. Adjust all
6374 (arm_reg_parse_any): New function.
6375 (co_proc_number): Look up the processor number in the processor hash
6377 (cirrus_regtype): Delete.
6378 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6379 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6380 (ARM_EXT_MAVERICKsc_register): Delete.
6381 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6382 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6384 (do_c_triple_4, do_c_triple_5): Delete.
6385 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6386 (do_c_quad_6): Delete.
6387 (do_c_quad_6[ab]): New functions.
6388 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6389 arguments to use new register parsing methods.
6390 (cirrus_reg_required_here): Likewise.
6391 (insns): Reclassify cirrus maverick worker functions.
6392 (cirrus_valid_reg): Delete.
6394 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6396 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6397 (sh*-*-netbsdelf*): New target.
6398 * configure: Regenerate.
6399 * tc-sh.h: Update copyright years.
6400 (TARGET_FORMAT): Add version for TE_NetBSD.
6402 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6404 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6407 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6409 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6410 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6412 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6414 * tc-mips.c (mips_cprestore_valid): New flag.
6415 (mips_frame_reg_valid): New flag.
6416 (macro) [M_JAL_2]: Check both flags.
6417 [M_JAL_A]: Likewise.
6418 (s_cprestore): Set mips_cprestore_valid.
6419 (tc_get_register): If setting mips_frame_reg, set
6420 mips_frame_reg_valid and clear mips_cprestore_valid.
6421 (s_mips_ent): Clear both flags.
6422 (s_mips_end): Clear both flags.
6424 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6426 * write.c (write_object_file): Make use of bfd_section_list_remove.
6427 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6428 * config/tc-mmix.c (mmix_frob_file): Likewise.
6430 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6432 * configure.in (i386-*-netbsdelf*): Collapse target into...
6433 (i386-*-netbsd*): ...this. Add support for x86-64.
6434 * configure: Regenerated.
6436 2002-01-03 matthew green <mrg@redhat.com>
6438 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6440 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6442 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6445 For older changes see ChangeLog-0001
6451 version-control: never