1 2003-09-07 Nick Clifton <nickc@redhat.com>
3 * doc/as.texinfo (Comments): Comment character for PPC is #.
5 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
8 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
11 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
13 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
15 2003-09-04 Nick Clifton <nickc@redhat.com>
17 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
18 (md_pseudo_table): Add .v850e1 pseudo op.
19 (md_show_usage): Document -mv850e1 switch.
20 (md_parse_option): Accept -mv850e1 switch.
21 (md_begin): Allow TARGET_CPU to be v850e1.
22 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
23 * NEWS: Mention support for v850e1.
25 2003-09-04 Alan Modra <amodra@bigpond.net.au>
27 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
28 ppc_cpu selection rather than replacing.
29 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
30 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
32 2003-09-03 Robert Millan <robertmh@gnu.org>
34 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
36 * configure: Regenerate.
38 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
40 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
41 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
42 Specify AC_CONFIG_AUX_DIR.
43 * aclocal.m4: Regenerated with aclocal-1.7.
44 * configure: Regenerated with autoconf 2.57.
45 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
47 2003-08-29 Jakub Jelinek <jakub@redhat.com>
49 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
50 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
51 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
52 nor tc_cfi_emit_pcrel_expr are defined.
53 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
54 DIFF_EXPR_OK is not defined.
55 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
56 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
57 tc_cfi_emit_pcrel_expr): Define.
58 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
59 sparc_cfi_emit_pcrel_expr): New prototypes.
60 (sparc_cie_data_alignment): New decl.
61 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
62 * config/tc-sparc.c: Include dw2gencfi.h.
63 (sparc_cie_data_alignment): New variable.
64 (md_begin): Initialize it.
65 (sparc_cfi_frame_initial_instructions): New function.
66 (sparc_regname_to_dw2regnum): Likewise.
67 (sparc_cfi_emit_pcrel_expr): Likewise.
68 * doc/as.texinfo: Document .cfi_window_save.
70 * config/tc-sparc.c (s_common): Cast last argument to long and
71 change format string to shut up warning.
73 2003-08-25 Jason Eckhardt <jle@rice.edu>
75 * doc/c-i860.texi: Update text about relocatable address expansions.
77 2003-08-24 Jason Eckhardt <jle@rice.edu>
79 * config/tc-i860.c (md_assemble): Use isrc2 from the original
80 instruction when expanding E_ADDR.
82 2003-08-21 Nick Clifton <nickc@redhat.com>
84 * po/tr.po: Updated Turkish translation.
86 2003-08-20 Alan Modra <amodra@bigpond.net.au>
88 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
89 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
91 2003-08-19 Nick Clifton <nickc@redhat.com>
93 * config/tc-arm.c (cp_address_required_here): Add code to handle
94 unindexed addressing mode.
96 2003-08-19 Alan Modra <amodra@bigpond.net.au>
98 * config/tc-ppc.c (md_parse_option): Handle -m440.
99 (md_show_usage): Add -m440.
100 (md_apply_fix3): Warning fix.
101 * doc/c-ppc.texi: Document -m440.
103 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
105 * read.c (s_print): Check for NULL.
107 2003-08-16 Alan Modra <amodra@bigpond.net.au>
109 * write.c (fixup_segment): When handling an expression involving
110 the subtraction of two symbols in the same segment, don't clear
111 fx_pcrel except for TC_M68K.
113 2003-08-14 Alan Modra <amodra@bigpond.net.au>
115 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
117 * config/tc-i386.c: Likewise.
118 (RELOC_ENUM): Don't define. Replace throughout with enum.
120 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
121 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
123 * Makefile.in: Regenerate.
125 2003-08-08 Andreas Schwab <schwab@suse.de>
127 * config/tc-m68k.h (TARGET_USE_CFIPOP)
128 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
129 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
131 * config/tc-m68k.c: Include "dw2gencfi.h".
132 (tc_m68k_regname_to_dw2regnum)
133 (tc_m68k_frame_initial_instructions): New functions.
135 2003-08-08 Dmitry Diky <diwil@mail.ru>
137 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
138 according to gcc order.
140 2003-08-07 Jason Eckhardt <jle@rice.edu>
142 * config/tc-i860.c (i860_check_label): New function.
143 * config/tc-i860.h (i860_check_label): New prototype.
144 (tc_check_label): Define macro as i860_check_label.
146 2003-08-06 Jason Eckhardt <jle@rice.edu>
148 * config/tc-i860.c (s_align_wrapper): New function and prototype.
149 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
150 surrounding OBJ_ELF ifdef, and re-format slightly.
151 * doc/c-i860.texi: Document the special .align syntax available
154 2003-08-06 Jason Eckhardt <jle@rice.edu>
156 * config/tc-i860.c (i860_handle_align): New function.
157 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
158 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
160 2003-08-06 Jason Eckhardt <jle@rice.edu>
162 * config/tc-i860.c (i860_process_insn): Check that instructions
163 with their dual-bit set are 8-byte aligned.
165 2003-08-06 Nick Clifton <nickc@redhat.com>
167 * po/fr.po: Updated French translation.
169 2003-08-05 Jason Eckhardt <jle@rice.edu>
171 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
172 setting during flop argument parsing. Instead, do it after
173 instruction is fully parsed.
175 2003-08-05 Jason Eckhardt <jle@rice.edu>
177 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
178 directives are only available in Intel syntax mode.
180 2003-08-05 Jason Eckhardt <jle@rice.edu>
182 * config/tc-i860.c (s_dual): Accept .dual directive only in
183 the Intel syntax mode.
184 (s_enddual): Likewise for .enddual.
185 (s_atmp): Likewise for .atmp.
187 2003-08-04 Alan Modra <amodra@bigpond.net.au>
189 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
190 for memory operands. Pass the full operand_string to i386_index_check.
192 2003-08-01 Jason Eckhardt <jle@rice.edu>
194 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
195 (target_intel_syntax): Declare variable.
196 (OPTION_INTEL_SYNTAX): Declare macro.
197 (md_longopts): Add option -mintel-syntax.
198 (md_parse_option): Set target_intel_syntax.
199 (md_show_usage): Add -mintel-syntax usage.
200 (md_begin): Set reg_prefix based on target_intel_syntax.
201 (i860_process_insn): Skip register prefix only if there is one.
202 Parse relocatable expressions in either Intel or AT&T syntax based
203 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
204 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
205 about the differences in syntax.
207 2003-08-01 Dmitry Diky <diwil@mail.ru>
209 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
212 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
214 * config/tc-sh.c (md_assemble): For branches, check & update
217 2003-07-30 Jason Eckhardt <jle@rice.edu>
219 * config/tc-i860.c: Convert to ISO C90.
221 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
223 * read.c (s_space): Revert 2003-07-28 change.
225 2003-07-30 Alan Modra <amodra@bigpond.net.au>
227 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
229 2003-07-29 Alan Modra <amodra@bigpond.net.au>
231 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
233 2003-07-29 Jakub Jelinek <jakub@redhat.com>
235 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
237 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
239 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
241 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
243 * read.c (s_space): Don't warn about .space 0.
245 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
247 * config/tc-mips.c (mips_flag_pdr): Define.
248 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
249 (s_mips_end) [OBJ_ELF]: Likewise.
250 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
251 (md_parse_option) [OBJ_ELF]: Handle them.
252 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
254 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
255 * doc/as.texinfo (Overview) [MIPS]: Likewise.
257 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
259 * config/obj-elf.c (obj_elf_change_section): Update
260 elf_section_type and elf_section_flags only when they are
263 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
265 * config/obj-elf.c (obj_elf_change_section): Always set section
268 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
270 * config/obj-elf.c (special_sections): Removed.
271 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
272 elf_section_type and elf_section_flags.
273 (elf_frob_file): Set SHT_GROUP.
275 * config/obj-elf.h (obj_sec_set_private_data): New.
277 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
278 * config/tc-ia64.h: Likewise.
279 * config/tc-m32r.h: Likewise.
280 * config/tc-m68hc11.h: Likewise.
281 * config/tc-mcore.h: Likewise.
282 * config/tc-mips.h: Likewise.
283 * config/tc-ppc.h: Likewise.
284 * config/tc-sh64.h: Likewise.
285 * config/tc-v850.h: Likewise.
286 * config/tc-xtensa.h: Likewise.
288 * config/tc-v850.h (SHF_V850_GPREL): Removed.
289 (SHF_V850_EPREL): Likewise.
290 (SHF_V850_R0REL): Likewise.
292 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
295 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
297 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
298 debugging symbols so that we handle page memory correctly.
300 2003-07-24 Nick Clifton <nickc@redhat.com>
302 * po/fr.po: Updated French translation.
304 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
306 * config/tc-arm.c (arm_archs): Add iwmmxt.
308 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
310 * read.c (do_parse_cons_expression): Mark nbytes unused to
313 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
315 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
318 * config/tc-h8300.c (md_assemble): Make sure characters after
319 slash and dot are lower-case.
321 2003-07-17 Nick Clifton <nickc@redhat.com>
323 * po/es.po: New Spanish translation.
324 * po/tr.po: New Turkish translation.
325 * po/opcodes.pot: Regenerate.
327 2003-07-16 Alan Modra <amodra@bigpond.net.au>
329 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
330 (generic_dwarf2_emit_offset): Don't define function when
331 TC__DWARF2_EMIT_OFFSET is defined.
333 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
335 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
336 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
337 * doc/c-mips.texi: Document -march=rm9000.
339 2003-07-15 Alan Modra <amodra@bigpond.net.au>
341 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
342 only for V850_OPERAND_DISP operands.
344 2003-07-15 Alan Modra <amodra@bigpond.net.au>
346 * frags.c (frag_more): Move segment checks to..
347 (frag_alloc_check): ..here. New function.
348 (frag_append_1_char): Call frag_alloc_check.
350 2003-07-14 Nick Clifton <nickc@redhat.com>
352 * po/tr.po: Update with latest version.
353 * po/POTFILES.in: Regenerate.
354 * po/gas.pot: Regenerate.
355 * configure: Regenerate.
357 2003-07-14 Nick Clifton <nickc@redhat.com>
359 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
360 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
361 "safe-ctype.h" and update use of macros.
362 * Makefile.am: Update dependencies.
363 * Makefile.in: Regenerate.
365 2003-07-11 Alan Modra <amodra@bigpond.net.au>
367 * po/gas.pot: Regenerate.
369 2003-07-10 Jakub Jelinek <jakub@redhat.com>
371 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
372 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
373 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
374 DWARF2_CIE_DATA_ALIGNMENT): Define.
375 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
377 (ppc_cie_data_alignment): Declare.
378 * config/tc-ppc.c: Include dw2gencfi.h.
379 (ppc_cie_data_alignment): Define.
380 (md_begin): Initialize ppc_cie_data_alignment.
381 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
383 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
384 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
385 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
386 DWARF2_CIE_DATA_ALIGNMENT): Define.
387 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
389 (s390_cie_data_alignment): Declare.
390 * config/tc-s390.c: Include dw2gencfi.h.
391 (s390_cie_data_alignment): Define.
392 (md_begin): Initialize s390_cie_data_alignment.
393 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
396 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
398 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
399 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
400 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
401 * configure.in (am33_2.0, mn10300-*-linux*): Added.
402 * configure: Rebuilt.
403 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
405 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
408 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
410 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
411 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
412 for subtracts from GLOBAL_OFFSET_TABLE that could not be
414 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
415 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
416 could not be simplified.
417 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
418 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
419 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
420 BDF_RELOC_MN10300_GOT32.
421 * config/tc-mn10300.c (mn10300_fix_adjustable): If
422 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
423 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
424 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
425 symbol if we know its value.
426 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
427 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
428 duplicate underscore prefix.
429 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
430 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
431 type in X_md, not X_add_number. Zero X_add_number.
432 (mn10300_check_fixup): Extract relocation type from X_md.
433 * config/tc-mn10300.h: Update comment.
434 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
435 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
437 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
438 (mn10300_check_fixup): Likewise.
439 (mn10300_parse_name): Set X_add_number to relocation type.
440 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
441 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
442 O_GOTOFF, O_PLT, O_GOT): Define.
443 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
444 (mn10300_check_fixup): New fn.
445 (md_assemble): Call it. Check for PIC-related relocs.
446 (mn10300_cons_fix_new): Likewise. New fn.
447 (mn10300_end_of_match): New fn.
448 (mn10300_md_parse_name_cont): New fn.
450 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
452 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
453 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
455 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
456 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
457 md_assemble, md_estimate_size_before_relax): Handle fbCC.
458 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
459 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
461 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
462 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
463 (HAVE_AM33): Match AM33_2 too.
464 (HAVE_AM33_2): New macro.
465 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
466 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
467 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
468 (float_registers, double_registers): New variables.
469 (float_register_name, double_register_name): New functions.
470 (md_assemble): Recognize FP registers. Implement FMT_D3.
471 (mn10300_insert_operand): Support FP registers.
473 2003-07-08 Chris Demetriou <cgd@broadcom.com>
475 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
476 target being a global symbol if not compiling SVR4 PIC code.
478 2003-07-07 Nick Clifton <nickc@redhat.com>
480 * doc/c-m32r.texi (M32R-Directives): New node. Document the
481 .high, .shigh and .low directives.
483 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
485 * config/tc-h8300.c (h8300sxnmode): Add prototype.
487 (parse_exp): Replace expressionS argument with a h8_op. Parse the
488 operand size as well.
489 (skip_colonthing): Remove unused expression argument. Tighten checks
491 (colonmod24): Remove.
492 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
493 (get_operand): Likewise. Use the standard code to read the size of
494 pc-relative operands.
495 (fix_operand_size): Include the size-guessing logic that used to be
496 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
497 offsets with a symbolic component.
499 2003-07-04 Nick Clifton <nickc@redhat.com>
501 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
502 macro to compute size of selected register name array.
504 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
506 * config/tc-s390.c (md_parse_option): Add cpu type z990.
507 (md_begin): Add minimal cpu type logic for instructions with different
508 binary format depending on the cpu.
509 (md_assemble): Remove check for minimal cpu.
510 (s390_insert_operand): Add support for long displacements.
511 (md_gather_operands): Likewise.
512 (tc_s390_fix_adjustable): Likewise.
513 (tc_s390_force_relocation): Likewise.
514 (md_apply_fix3): Likewise.
516 2003-06-30 Chris Demetriou <cgd@broadcom.com>
518 * config/tc-mips.c (s_mipsset): Implement -march= handling
521 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
523 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
524 prototypes and casts. Replace PTR with void *. Reformat.
525 * config/tc-mips.h: Likewise.
527 2003-06-30 Alan Modra <amodra@bigpond.net.au>
529 * config/tc-ia64.c (note_register_values): Warning fix.
530 * config/tc-mips.c (append_insn): Likewise.
532 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
534 * config/tc-mips.c (mips_set_options,mips_opts): Support for
536 (file_mips_arch): Rename mips_arch.
537 (mips_arch_info,mips_tune_info): Remove.
538 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
539 (mips_cpu_info_from_arch): New function.
540 (md_begin): Use file_mips_arch.
541 (macro_build,macro,mips_ip): Use mips_opts.arch.
542 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
543 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
545 (s_mipsset): Support for .set arch=FOO.
546 (mips_cpu_info_table): Fix typo.
548 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
550 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
552 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
554 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
555 unsigned 8-bit operands.
557 2003-06-24 Nick Clifton <nickc@redhat.com>
559 * read.c (s_comm): Change error message to assume an unsigned size
560 has been passed to .comm.
561 * config/tc-sparc.c (s_common): Likewise.
562 * write.c (write_contents): Replace 'unsigned long' with
563 'addressT' and 'long' with offsetT in order to allow computations
564 with very large values to work for 64-bit addressed targets.
565 (relax_and_size_all_segments): Likewise.
566 (relax_frag): Likewise.
567 (relax_segment): Likewise.
569 2003-06-23 Mark Mitchell <mark@codesourcery.com>
571 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
573 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
575 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
578 * gas/config/tc-i386.h (CpuPNI): New.
579 (CpuUnknownFlags): Add CpuPNI.
581 2003-06-23 <davidm@hpl.hp.com>
583 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
584 freebsd, openvms, and nsk (non-stop kernel).
586 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
588 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
589 all locals have been declared.
591 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
593 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
594 special handling for n32 ABI.
597 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
599 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
602 2003-06-19 Christian Groessler <chris@groessler.org>
604 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
605 now, not only a warning. Add some more checks to detect invalid
607 (get_operand): For CLASS_IR remember register size in mode struct.
608 (get_specific): Handle new CLASS_IRO type. Add register size
609 checks for CLASS_IR and CLASS_IRO.
610 (md_apply_fix3): Fix undefined usage of buf.
612 2003-06-19 Alan Modra <amodra@bigpond.net.au>
614 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
615 (ppc_change_csect): Add align param. Align frag at start of csect.
616 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
617 (ppc_frob_section): Align vma.
619 2003-06-18 Jakub Jelinek <jakub@redhat.com>
621 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
622 (output_cie): Don't pad.
623 (output_fde): Add align argument. Pad to align if not 0.
624 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
625 Pad just last FDE to EH_FRAME_ALIGNMENT.
627 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
629 * config/tc-s390.c (init_default_arch): Make current_mode_mask
630 dependent on s390_arch_size and current_cpu dependent on
633 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
635 * configure.in: Add c4x as an architecture variant to tic4x.
636 * configure: Regenerate.
637 * Makefile.in: Regenerate.
638 * doc/Makefile.in: Regenerate.
640 2003-06-18 Alan Modra <amodra@bigpond.net.au>
642 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
643 ".TOC." from PPC64_TOC relocs.
645 2003-06-17 Alan Modra <amodra@bigpond.net.au>
647 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
649 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
651 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
652 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
653 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
654 s_cprestore,s_cpadd): Use them.
656 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
658 * configure.in: Add specific case for cris-*-linux-gnu* with
660 * configure: Regenerate.
661 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
662 if TE_LINUX defined, else FALSE.
663 (bfd_boolean demand_register_prefix): Set default from
664 DEFAULT_CRIS_AXIS_LINUX_GNU.
665 (symbols_have_leading_underscore): Similar.
666 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
668 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
670 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
671 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
672 FPU_ARCH_FPA for AOUT.
673 (md_begin): Don't try to guess the floating point architecture from
674 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
676 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
678 * configure.in: Add i386-netbsd-gnu target.
679 * configure: Regenerate.
681 2003-06-12 Tom Tromey <tromey@redhat.com>
683 * doc/as.texinfo (Comm): Added @node. Moved before CFI
686 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
688 * config/tc-mips.c (append_insn): In a compound relocation, take the
689 field width from the final (outermost) operator.
691 2003-06-11 Richard Henderson <rth@redhat.com>
693 * dw2gencfi.c (struct cfi_escape_data): New.
694 (cfi_add_CFA_nop): Remove.
695 (CFI_escape, dot_cfi_escape): New.
696 (dot_cfi): Remove nop.
697 (cfi_pseudo_table): Remove nop; add escape.
698 (output_cfi_insn): Likewise.
699 (select_cie_for_fde): Stop on escape.
700 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
701 * read.c, read.h (do_parse_cons_expression): New.
702 * doc/as.texinfo (.cfi_escape): New.
704 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
706 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
707 (s_cprestore): Likewise.
708 (s_cpreturn): Likewise.
710 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
712 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
715 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
717 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
718 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
719 exceptions from size assert. Remove most of the addend fixup
720 specialcasing. Remove value, use valP directly. simplify fx_addnumber
721 handling. Remove zero addend specialcases.
722 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
723 the addend fixup specialcase.
724 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
726 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
728 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
729 in the RELOC_EXPANSION_POSSIBLE case.
731 2003-06-11 Alan Modra <amodra@bigpond.net.au>
733 * config/tc-i960.c (line_comment_chars): Add '#'.
734 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
736 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
738 * po/Make-in (DESTDIR): New.
739 (install-data-yes): Support $(DESTDIR).
740 (uninstall): Likewise.
742 2003-06-11 Alan Modra <amodra@bigpond.net.au>
744 * Makefile.am: Run "make dep-am".
745 * Makefile.in: Regenerate.
746 * po/POTFILES.in: Regenerate.
748 2003-06-10 Doug Evans <dje@sebabeach.org>
750 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
752 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
753 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
754 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
756 2003-06-10 Alan Modra <amodra@bigpond.net.au>
757 Gary Hade <garyhade@us.ibm.com>
759 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
760 (md_apply_fix3): Special case lq insn.
762 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
764 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
765 lists. Allow single-register ranges.
767 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
769 * config/tc-h8300.c (h8300sxnmode): New.
770 (md_pseudo_table): Add .h8300sxn entry.
772 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
774 * NEWS: Updated for the new -n option for the i386 assembler.
776 * config/tc-i386.c (optimize_align_code): New.
777 (md_shortopts): Add 'n'.
778 (md_parse_option): Handle 'n'.
779 (md_show_usage): Add '-n'.
781 * config/tc-i386.h (optimize_align_code): Declared.
782 (md_do_align): Optimize code alignment only if optimize_align_code
785 * doc/as.texinfo: Add the new -n option.
787 * doc/c-i386.texi: Document the new -n option.
789 2003-06-07 Richard Henderson <rth@redhat.com>
791 * doc/as.texinfo: Document .cfi_rel_offset.
793 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
794 (cfi_add_CFA_offset): Detect invalid offsets.
795 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
796 (cfi_add_CFA_restore_state): Restore it.
797 (CFI_rel_offset): New.
798 (cfi_pseudo_table): Add it.
799 (dot_cfi): Handle it.
801 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
803 * app.c (do_scrub_chars): Add states 14 and 15 to handle
806 2003-06-05 Michael Snyder <msnyder@redhat.com>
808 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
809 (build_bytes): Ditto.
811 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
813 * config/tc-h8sx.c (DMODE): Remove.
814 (colonmod24): Don't choose a default if the operand is a 16-bit
816 (fix_operand_size): New function.
817 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
818 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
820 2003-06-05 Michal Ludvig <mludvig@suse.cz>
822 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
823 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
824 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
825 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
826 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
827 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
828 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
829 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
830 (cfi_pseudo_table): New directives .cfi_return_column,
831 .cfi_restore, .cfi_undefined, .cfi_same_value,
832 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
833 (dot_cfi, output_cfi_insn): Handle new directives.
834 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
835 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
836 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
838 2003-06-04 Richard Henderson <rth@redhat.com>
840 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
842 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
844 2003-06-04 Richard Henderson <rth@redhat.com>
846 * config/tc-alpha.c (s_alpha_usepv): New.
847 (md_pseudo_table): Add it.
848 (alpha_cfi_frame_initial_instructions): New.
849 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
850 (tc_cfi_frame_initial_instructions): New.
851 * doc/c-alpha.texi: Document .usepv.
853 2003-06-04 Jakub Jelinek <jakub@redhat.com>
855 * as.c (show_usage): Document --execstack and --noexecstack.
856 (parse_args): Add --execstack and --noexecstack.
857 (main): Create .note.GNU-stack section if --execstack or
858 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
859 * as.h (flag_execstack, flag_noexecstack): New.
861 2003-06-03 Chris Demetriou <cgd@broadcom.com>
863 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
864 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
865 (OPTION_MISC_BASE): New defines.
866 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
867 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
868 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
869 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
870 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
871 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
872 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
873 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
874 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
875 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
876 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
877 (OPTION_TRAP): Redefine in terms of new defines.
878 (md_longopts): Reorder entries.
880 2003-05-14 Michael Snyder <msnyder@redhat.com>
881 From Bernd Schmidt <bernds@redhat.com>
882 and Michael Snyder <msnyder@redhat.com>
883 and Alexandre Oliva <aoliva@redhat.com>
884 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
885 * config/tc-h8300.h: Ditto.
887 2003-06-03 Nick Clifton <nickc@redhat.com>
889 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
890 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
891 before calling bfd_reloc_type_lookup.
893 2003-06-02 Alan Modra <amodra@bigpond.net.au>
895 * read.c (emit_expr): Set dot_value.
896 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
898 2003-06-02 Alan Modra <amodra@bigpond.net.au>
900 * macro.c (sub_actual): Don't lose string if it turns out that
901 &string wasn't an arg.
903 2003-05-31 Richard Henderson <rth@redhat.com>
905 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
906 (cfi_finish): Set flag_traditional_format around .eh_frame data.
908 2003-05-29 Richard Henderson <rth@redhat.com>
910 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
911 (all_frame_data, plast_frame_data, cur_frame_data): New.
912 (s_alpha_ent): Record data for dwarf2 cfi.
913 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
914 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
915 * config/tc-alpha.h (md_end): New.
916 (DWARF2_DEFAULT_RETURN_COLUMN): New.
917 (DWARF2_CIE_DATA_ALIGNMENT): New.
919 2003-05-29 Nick Clifton <nickc@redhat.com>
921 * configure.in: Add i386-*-freebsd* entry.
922 * configure: Regenerate.
924 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
926 * config/tc-m32r.c: Amend comment to refer to Renesas
928 2003-05-27 Richard Henderson <rth@redhat.com>
930 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
932 (current_location): Use symbol_temp_new_now.
933 * stabs.c (s_stab_generic): Use symbol_temp_new.
934 * symbols.c (temp_label_name): Remove.
935 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
937 2003-05-27 Richard Henderson <rth@redhat.com>
939 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
940 * as.c (main): Always call cfi_finish.
941 * config/tc-i386.c (x86_dwarf2_return_column): New.
942 (x86_cie_data_alignment): New.
943 (md_begin): Set them.
944 (tc_x86_cfi_init): Remove.
945 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
946 return int, not unsigned long; don't as_bad here.
947 (tc_x86_frame_initial_instructions): Streamline; use
949 * config/tc-i386.h (tc_cfi_init): Remove.
950 (DWARF2_DEFAULT_RETURN_COLUMN): New.
951 (DWARF2_CIE_DATA_ALIGNMENT): New.
953 2003-05-27 Richard Henderson <rth@redhat.com>
955 * symbols.c (temp_label_name): New.
956 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
957 (symbol_set_value_now): New.
958 * symbols.h: Prototype them.
959 * dwarf2dbg.c: Use them.
960 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
962 2003-05-23 Jason Eckhardt <jle@rice.edu>
964 * config/tc-i860.c (target_xp): Declare variable.
965 (OPTION_XP): Declare macro.
966 (md_longopts): Add option -mxp.
967 (md_parse_option): Set target_xp.
968 (md_show_usage): Add -mxp usage.
969 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
970 (md_assemble): Don't try expansions if XP_ONLY is set.
971 * doc/c-i860.texi: Document -mxp option and i860XP support.
973 2003-05-23 Eric Christopher <echristo@redhat.com>
975 * config/tc-mips.c (macro_build_jalr): Warning patrol.
977 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
979 * config/tc-mips.c (append_insn): Use actual relocation size for new
980 fixp's. Don't relax overflow checking for partial_inplace relocations.
981 Use the actual relocation type in combined relocs, not just the type
983 (macro_build_jalr): Use actual relocation size for new fix.
984 (s_cpsetup, s_gpdword): Likewise.
986 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
988 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
990 2003-05-22 Nick Clifton <nickc@redhat.com>
992 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
993 section relative offsets for relocs that will not be based on the
995 (xstormy16_md_apply_fix3): Remove previous patch to this
998 2003-05-07 Eric Christopher <echristo@redhat.com>
1000 * config/tc-mips.c (mips_abicalls): New variable.
1001 (md_parse_option): Use.
1003 (s_abicalls): Ditto.
1004 (mips_elf_final_processing): Set EF_MIPS_PIC and
1005 EF_MIPS_CPIC dependent on above.
1007 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1009 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1011 2003-05-21 Nick Clifton <nickc@redhat.com>
1013 * config/obj-elf.c: Include dwarf2dbg.h.
1014 (elf_pseudo_tab): Add .file and .loc.
1015 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1016 * config/tc-arm.c: Likewise.
1017 * config/tc-h8300.c: Likewise.
1018 * config/tc-hppa.c: Likewise.
1019 * config/tc-ia64.c: Likewise.
1020 * config/tc-m68hc11.c: Likewise.
1021 * config/tc-m68k.c: Likewise.
1022 * config/tc-mmix.c: Likewise.
1023 * config/tc-mn10300.c: Likewise.
1024 * config/tc-ppc.c: Likewise.
1025 * config/tc-sh.c: Likewise.
1026 * config/tc-sparc.c: Likewise.
1027 * config/tc-v850.c: Likewise.
1028 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1030 * config/tc-ip2k.c: Likewise.
1031 * config/tc-iq2000.c: Likewise.
1032 * config/tc-xstormy16.c: Likewise.
1033 * config/tc-xtensa.c: Likewise.
1034 * Makefile.am: Regenerate dependencies.
1035 * Makefile.in: Regenerate.
1036 * aclocal.m4: Regenerate.
1037 * config.in: Regenerate.
1038 * configure: Regenerate.
1039 * po/POTFILES.in: Regenerate.
1040 * po/gas.pot: Regenerate.
1042 2003-05-21 Nick Clifton <nickc@redhat.com>
1044 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1045 BFD_ASSEMBLER targets.
1046 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1047 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1048 defining BFD_ASSEMBLER.
1050 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1052 * as.c (main): Remove tc_cfi_init().
1053 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1055 (cfi_pseudo_table): Add "cfi_register" entry.
1056 (cfi_make_insn): Handle CFA_register.
1057 (cfi_output_insn): Ditto.
1059 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1060 (dot_cfi_endproc): Reuse already emitted CIEs.
1061 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1062 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1064 2003-05-20 Nick Clifton <nickc@redhat.com>
1066 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1067 (md_pseudo_table): Add entries for .loc and .line.
1069 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1071 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1073 (dot_cfi_endproc): Avoid C99 construct.
1075 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1077 * dw2gencfi.c, dw2gencfi.h: New files.
1078 * config/tc-i386.c (tc_x86_cfi_init): New function.
1079 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1080 * as.c (parse_args): Set verbose flag on --verbose.
1081 (main): Call tc_cfi_init()/cfi_finish().
1082 * as.h (verbose): New external variable.
1083 * read.c (pobegin): Insert CFI pops to the list.
1084 * symbols.c (local_symbol_make): Make symbol external.
1085 * symbols.h (local_symbol_make): New prototype.
1086 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1087 * Makefile.in: Regenerate.
1088 * doc/as.texinfo: Added node "CFI directives" with description of
1089 all implemented .cfi_* directives.
1090 * doc/Makefile.in: Regenerate.
1091 * po/POTFILES.in: Regenerate.
1093 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1095 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1097 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1099 2003-05-18 Jason Eckhardt <jle@rice.edu>
1101 * config/tc-i860.c (i860_process_insn): Initialize fc after
1102 each opcode mismatch.
1104 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1106 * configure.in: Accept i[3-7]86 variants.
1107 * configure: Regenerate.
1109 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1111 * config/tc-mips.h: Fix comment formatting.
1113 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1115 * read.c (old_buffer, old_input, old_limit): Remove variables.
1116 (read_a_source_file): Delete label contin.
1117 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1118 input as with macros, instead of in separate old_* variables.
1119 Zero-terminate string being scrubbed.
1121 2003-05-12 Nick Clifton <nickc@redhat.com>
1123 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1124 (md_assemble): Reset skipping_fptr.
1125 (md_operand): If @fptr() is followed by a minus sign, set
1126 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1127 @fptr is detected, ignore it and reset skipping_fptr.
1129 2003-05-11 Jason Eckhardt <jle@rice.edu>
1131 * config/tc-i860.c (MAX_FIXUPS): Define.
1132 (struct i860_fi fi[]): New struct.
1133 (struct i860_it the_insn): Add above as member and move fields
1134 exp, reloc, pcrel and fup into i860_fi.
1135 (md_assemble): Replace all instances of exp, reloc, pcrel
1136 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1137 Add a loop to possibly emit multiple fix-ups for each insn.
1138 (i860_process_insn): Likewise.
1139 (i860_get_expression): Likewise.
1140 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1142 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1144 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1146 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1148 * config/tc-ia64.c (alias_hash): New.
1149 (alias_name_hash): New.
1150 (secalias_hash): New.
1151 (secalias_name_hash): New.
1152 (md_pseudo_table): Add "secalias".
1153 (md_begin): Initialize alias_hash, alias_name_hash,
1154 secalias_hash and secalias_name_hash.
1155 (struct alias): New.
1156 (dot_alias): Implement .alias and .secalias directives.
1158 (ia64_adjust_symtab): New.
1160 (ia64_frob_file): New.
1162 * config/tc-ia64.h (ia64_adjust_symtab): New.
1163 (tc_adjust_symtab): Defined.
1164 (ia64_frob_file): New.
1165 (tc_frob_file): Defined.
1167 2003-05-07 Dmitry Diky <diwil@mail.ru>
1169 * tc-msp430.c: Add missing lines to known cpus list.
1171 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1173 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1174 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1175 * config.in, configure: Rebuilt.
1177 2003-05-05 H.J. Lu <hjl@gnu.org>
1179 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1180 howto->partial_inplace is false.
1182 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1184 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1185 symbol_used_in_reloc_p check.
1186 (md_apply_fix3): Remove check for howto->pcrel_offset.
1188 2003-05-03 H.J. Lu <hjl@gnu.org>
1190 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1191 fatal error for unknown section attribute.
1193 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1194 unknown section attribute.
1195 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1196 * config/tc-ppc.c (ppc_section_letter): Likewise.
1198 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1199 (ia64_elf_section_type): Accept "unwind".
1201 2003-05-02 H.J. Lu <hjl@gnu.org>
1203 * read.h (demand_copy_string): New.
1205 * config/tc-alpha.c (demand_copy_string): Removed.
1207 2003-05-02 Michael Snyder <msnyder@redhat.com>
1209 * write.h (FAKE_LABEL_NAME): Allow override
1210 (for targets that like eg. a leading dot in a local label).
1212 2003-05-02 Nick Clifton <nickc@redhat.com>
1214 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1215 addend with the symbol's value for pc-relative relocations against
1216 a defined symbol - this will be done automatically.
1218 2003-05-01 H.J. Lu <hjl@gnu.org>
1220 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1223 2003-05-01 H.J. Lu <hjl@gnu.org>
1225 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1227 * config/obj-elf.c (obj_elf_section_name): Call
1228 tc_canonicalize_section_name if it is defined.
1230 2003-05-01 H.J. Lu <hjl@gnu.org>
1232 * config/tc-ia64.c (ia64_check_label): New.
1233 * config/tc-ia64.h (tc_check_label): New.
1235 * read.c (read_a_source_file): Call tc_check_label after
1236 creating a user-defined label if defined.
1238 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1240 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1241 -be and split strings to below 509 bytes in length.
1243 2003-05-01 Christian Groessler <chris@groessler.org>
1245 * expr.h: Fix comments in operatorT typedef.
1246 * config/tc-z8k.c: Add 2003 to copyright message.
1247 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1248 decides by the parameter.
1249 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1250 command line argument was given to select the intended
1252 (get_interrupt_operand): Warn if NOP type code is emitted.
1253 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1254 (apply_fix): Call newfix with additional 'size' parameter.
1255 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1256 4 bit immediate arguments.
1257 (md_longopts): Add 'linkrelax' option.
1258 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1259 variable when 'linkrelax' command line option is specified.
1260 (md_show_usage): Display 'linkrelax' option.
1261 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1262 R_CALLR and R_REL16.
1263 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1265 2003-04-30 H.J. Lu <hjl@gnu.org>
1267 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1268 (ia64_float_to_chars): Likewise.
1269 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1270 and ia64_float_to_chars by tc_segment_info_data.endian from
1271 the current segment if byteorder == -1.
1272 (md_begin): Call dot_byteorder to set target_big_endian.
1273 (md_atof): Call ia64_float_to_chars to convert floating point.
1274 (ia64_float_to_chars_bigendian): New function.
1275 (ia64_float_to_chars_littleendian): Likewise.
1276 (ia64_elf_section_change_hook): Likewise.
1278 * config/tc-ia64.h (ia64_number_to_chars): New.
1279 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1280 (ia64_elf_section_change_hook): New.
1281 (md_elf_section_change_hook): Defined.
1282 (ia64_segment_info_type): New struct.
1283 (TC_SEGMENT_INFO_TYPE): Defined.
1285 2003-04-30 H.J. Lu <hjl@gnu.org>
1287 * config/tc-ia64.c (md_section_align): Deleted.
1289 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1290 (md_section_align): New.
1292 2003-04-30 H.J. Lu <hjl@gnu.org>
1294 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1296 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1298 (md_atof): Add 6 byte padding of zero for real16.
1300 2003-04-29 Nick Clifton <nickc@redhat.com>
1302 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1303 start of a version name.
1305 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1307 * configure.in (mips-*-*n*bsd*): Replace with...
1308 (mips-*-netbsd*, mips-*-openbsd*): These.
1309 * configure: Regenerate.
1311 2003-04-28 H.J. Lu <hjl@gnu.org>
1313 * config/tc-hppa.c (hppa_symbol_chars): New.
1314 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1316 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1318 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1320 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1322 * NEWS: Belatedly mention support for MIPS32 Release 2.
1324 2003-04-24 Eric Christopher <echristo@redhat.com>
1326 * config/tc-mips.c (nopic_need_relax): Revert previous
1329 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1331 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1332 * config/tc-h8300.c (dwarf2dbg.h): Include
1333 (md_pseudo_table): Handle .loc and .file
1334 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1335 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1336 * Makefile.in: Regenerate.
1338 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1340 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1341 (md_pseudo_table): Add h8300hn, h8300sn.
1342 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1343 * doc/c-h8300.texi : Add documentation for new machine directives.
1345 2003-04-24 Nick Clifton <nickc@redhat.com>
1347 * config/tc-ppc.c (ppc_symbol_chars): Define.
1348 * config/tc-ppc.h (tc_symbol_chars): Define.
1350 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1352 * config/tc-sh.c: Amend comment to refer to SuperH.
1353 * config/tc-sh.h: Likewise.
1354 (LISTING_HEADER): Amend to refer to SuperH.
1355 * config/tc-sh64.c: Change comment to refer to SuperH.
1356 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1357 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1358 * doc/c-sh.texi: Amend to refer to SuperH.
1359 Add SuperH architecture documentation references.
1360 * doc/c-sh64.texi: Change to refer to SuperH.
1362 2003-04-23 H.J. Lu <hjl@gnu.org>
1364 * app.c (do_scrub_chars): More checks for valid labels.
1366 2003-04-22 H.J. Lu <hjl@gnu.org>
1368 * app.c (do_scrub_chars): Check for valid label.
1370 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1372 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1373 references to Renesas M32R.
1374 * doc/c-m32r.texi: Likewise.
1376 2003-04-21 Richard Henderson <rth@redhat.com>
1378 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1379 (out_file_list): Assign non-null filename after generating error.
1381 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1383 * ehopt.c (check_eh_frame): For aug_size == 0
1384 in state_seeing_aug_size state skip the state_skipping_aug
1387 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1389 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1391 * doc/c-h8500.texi: Likewise.
1392 * doc/c-sh.texi: Likewise.
1393 * doc/c-sh64.texi: Likewise.
1394 * doc/h8.texi: Likewise.
1395 * config/tc-h8300.c: Likewise.
1396 * config/tc-h8300.h: Likewise.
1397 * config/tc-h8500.c: Likewise.
1398 * config/tc-h8500.h: Likewise.
1399 * config/tc-sh.c: Likewise.
1400 * config/tc-sh.h: Likewise.
1401 * config/tc-sh64.c: Likewise.
1402 * config/tc-sh64.h: Likewise.
1404 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1406 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1407 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1408 (append_insn): When filling delay slots with instructions
1409 that have fixups that tc_gen_reloc might consider modifyable
1410 in variant frags, start a new frag.
1411 (load_address): Generate GOT_DISP with of without offset
1412 depending on whether symbol is local. For -xgot, use
1413 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1414 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1415 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1416 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1417 <ld_st>: In NewABI with small got, always use
1418 GOT_PAGE/GOT_OFST, with the latter in the load/store
1419 instruction. With big got, use GOT_HI16/GOT_LO16 or
1421 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1422 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1423 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1424 (md_convert_frag): Use memmove for safe copying of overlapping
1427 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1429 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1430 -mlong, -mshort-double and -mlong-double options; use table @code.
1431 (M68HC11-Syntax): Update to document 68HC12 operands.
1432 (M68HC11-Modifiers): New section for operand modifiers.
1433 (M68HC11-Directives): New section for specific assembler directives.
1434 (M68HC11-Branch): Fix Overfull hbox error.
1436 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1438 * config/tc-mips.c (macro): Add comments explaining the rationale
1441 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1443 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1444 constant address that Alexandre took out by accident. Reject
1445 64-bit addresses that are not sign extensions of 32 bits only if
1446 we don't support 64-bit address constants.
1448 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1450 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1452 2003-04-08 Nick Clifton <nickc@redhat.com>
1454 * as.c (perform_an_assembly_pass): If using cgen, call
1456 * cgen.c (gas_cgen_begin): New function. If
1457 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1458 otherwise call cgen_clear_signed_overflow_ok.
1459 * cgen.h: Prototype gas_cgen_begin.
1461 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1463 * write.c (write_relocs): Remove unused variable.
1465 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1467 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1468 (macro): Use new macro to decide whether to emit constant address
1469 as 32 or 64 bits if addresses are 32-bit wide but registers are
1472 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1474 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1475 (M6811_OP_PAGE_ADDR): New internal define.
1476 (get_operand): New modifier %page and %addr to obtain page and
1477 address part of a far-function.
1478 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1479 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1481 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1482 (find_opcode): Add comment.
1483 (md_estimate_size_before_relax): Force relocation of
1484 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1485 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1486 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1487 on the symbol itself so that DWARF2 strings are merged correctly.
1489 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1491 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1492 default tic4x target format to 'coff2-tic4x'.
1493 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1495 * config/tc-tic4x.h: Ditto
1497 2003-04-03 Nick Clifton <nickc@redhat.com>
1499 * NEWS: Mention support for Xtensa architecture.
1501 2003-04-02 Philip Blundell <philb@gnu.org>
1503 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1505 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1507 * config/tc-mips.c (macro2): Adjust implementation of
1508 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1509 in the case where the source and destination registers
1512 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1514 * Makefile.am (CPU_TYPES): Add xtensa.
1515 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1516 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1517 (xtensa-relax.o): New target.
1519 * Makefile.in: Regenerate.
1520 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1521 extra_objects for xtensa targets.
1522 * configure: Regenerate.
1523 * write.c (write_object_file): Add new md_post_relax_hook.
1524 * config/tc-xtensa.c: New file.
1525 * config/tc-xtensa.h: Likewise.
1526 * config/xtensa-istack.h: Likewise.
1527 * config/xtensa-relax.c: Likewise.
1528 * config/xtensa-relax.h: Likewise.
1529 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1530 * doc/Makefile.in: Regenerate.
1531 * doc/all.texi: Set new XTENSA variable.
1532 * doc/as.texinfo: Set new Xtensa variable. Describe
1533 Xtensa-specific options. Define line comment character for
1534 Xtensa. Add Xtensa processors to list of ELF targets where
1535 alignment is specified in bytes. Add new Xtensa-Dependent node.
1536 Add acknowledgements for those contributing to the Xtensa port.
1537 * doc/internals.texi: Describe new md_post_relax_hook.
1538 * doc/c-xtensa.texi: New file.
1540 2003-04-01 Nick Clifton <nickc@redhat.com>
1541 Richard Earnshaw <rearnsha@arm.com>
1543 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1544 (ARM_ARCH_IWMMXT): Simplify.
1545 (insns): Place iwmmx instructions in correct place in table.
1546 (arm_add_note): New function: Add a note entry to a .note section.
1547 (md_begin): Make the default architecture be unknown.
1548 Suppress the creation of an arm note section.
1550 2003-03-26 Eric Christopher <echristo@redhat.com>
1552 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1554 2003-03-25 Stan Cox <scox@redhat.com>
1555 Nick Clifton <nickc@redhat.com>
1557 Contribute support for Intel's iWMMXt chip - an ARM variant:
1559 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1560 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1561 (enum wreg_type, enum iwmmxt_insn_type): New types.
1562 (wr_register, wc_register, wcg_register): New macros.
1563 (iwmmxt_table): New variable.
1564 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1565 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1566 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1567 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1568 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1569 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1570 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1571 cp_byte_address_offset, cp_byte_address_required_here,
1572 check_iwmmxt_insn): New functions.
1573 (asm_opcode_insns): Add iWMMXt instructions.
1574 (md_begin): Set the mach value for iWMMXt targets. Create a note
1575 section to identify iwmmxt binaries.
1576 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1577 * doc/c-arm.texi: Document the support for the iWMMXt.
1578 * NEWS: Mention new support.
1580 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1582 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1583 * doc/all.texi: Likewise.
1584 * doc/c-tic54x.texi: Likewise.
1586 2003-03-21 Andreas Schwab <schwab@suse.de>
1588 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1589 avoid aliasing issue.
1591 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1593 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1594 (current_arch_mask): Rename to current_mode_mask.
1595 (current_arch_requested): Remove variable.
1596 (current_cpu): New variable.
1597 (init_default_arch): Set defaults values for s390_arch_size,
1598 current_mode_mask and current_cpu.
1599 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1600 (md_begin): Replace current_arch_mask by current_cpu.
1601 (md_assemble): Adapt check and error message to current_mode_mask and
1604 2003-03-09 James E Wilson <wilson@tuliptree.org>
1606 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1607 * read.c (get_line_sb): Return end of line character or '\n' if
1608 it is zero or non-existent.
1610 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1612 * config/tc-mips.c (mips_validate_fix): New function.
1613 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1614 (mips_validate_fix): Declare.
1616 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1618 * Reverted 2003-03-02's patch.
1620 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1622 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1623 (TC_DWARF2_EMIT_OFFSET): Provide default.
1624 (out_debug_aranges, out_debug_info): Use it.
1625 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1626 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1627 (ia64_gen_real_reloc_type): ... here.
1628 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1630 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1632 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1633 (s_mips_ent): Likewise.
1635 2003-03-04 Dmitry Diky <diwil@mail.ru>
1637 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1638 and x1123 devices, add missed x437.
1639 (md_show_usage): Sort device list.
1641 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1643 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1644 (md_begin): Use preset_target_arch.
1645 (md_longopts): Make isa option unconditional.
1646 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1647 set preset_target_arch.
1648 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1649 by -S_GET_VALUE (fixP->fx_subsy).
1650 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1651 and the addend is 0.
1652 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1653 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1655 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1657 * config/tc-mips.c (append_insn): Add handling of
1658 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1659 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1660 misaligned address and reange overflow.
1661 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1662 earlier warnings about misaligned address and reange overflow.
1663 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1664 (md_apply_fix): Likewise. Fix warning output.
1665 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1666 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1667 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1669 2003-02-21 Nick Clifton <nickc@redhat.com>
1671 * NEWS: Mention availability of test generator program.
1673 2003-02-21 Miles Bader <miles@gnu.org>
1675 * config/tc-v850.c (system_registers): Add v850e debug registers.
1676 (system_register_name): Accept up to 27 (the last v850e sys register).
1678 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1680 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1681 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1682 Capitalize section headings consistently. Format index entries more
1683 consistently. Unconditionalize text about whether text and data
1684 sections are alterable. Use @ifnottex for alternatives to @tex output
1685 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1686 .size and .type directives. Be more polite about bad bug reports.
1687 Move FDL into a separate file.
1688 * doc/fdl.texi: New file.
1690 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1692 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1693 (macro): Check it to decide whether a new frag is needed.
1694 (my_getSmallExpression): Set it.
1696 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1698 * cgen.c: Fix typo: intial -> initial.
1700 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1702 * app.c (do_scrub_chars): Handle '||' in two states.
1704 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1706 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1707 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1709 2003-02-11 Uwe Stieber <uwe@wwws.de>
1711 * configure.in: Add support for kaOS as cross build target system.
1712 * configure: Regenerated.
1714 2003-02-10 Nick Clifton <nickc@redhat.com>
1716 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1717 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1718 bfd_mach_arm_ep9312 machine number.
1720 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1722 * config/tc-mips.c (reloc_needs_lo_p): New function.
1723 (fixup_has_matching_lo_p): New function.
1724 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1725 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1726 if that fixup already has a matching %lo(). Don't call frag_wane here.
1727 (macro): Call frag_wane here if the last unmatched hi was in the
1729 (pic_need_relax): New function, split out from...
1730 (md_estimate_size_before_relax): ...here.
1731 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1732 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1734 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1736 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1738 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1740 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1743 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1745 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1746 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1747 accept x@got+off etc.
1748 (md_assemble): Handle TLS relocs.
1749 (ppc_force_relocation): Force for all TLS relocs.
1750 (ppc_fix_adjustable): Likewise.
1751 (md_apply_fix3): Handle TLS relocs.
1753 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1755 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1756 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1758 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1760 * config/tc-mips.c (enum small_ex_type): Remove.
1761 (imm_unmatched_hi): Remove.
1762 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1763 argument from calls to append_insn.
1764 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1766 (macro_build): Update append_insn calls.
1767 (mips16_macro_build, macro_build_lui): Likewise.
1768 (mips_ip): Rework handling of small expressions. Move explicit
1769 relocation handling into my_getSmallExpression. Assume that the
1770 value of 'o' operands is zero if there is only one bracketed
1772 (percent_op): Make constant. Record the BFD relocation code
1773 associated with each operator.
1774 (my_getSmallParser, my_getPercentOp): Remove.
1775 (parse_relocation): New function.
1776 (my_getSamllExpression): Rework. Fill in relocations here
1777 rather than in mips_ip.
1779 2003-01-29 Nick Clifton <nickc@redhat.com>
1781 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1782 assembler's handling of # <linenum> "<filename>" directives work.
1784 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1786 * dwarf2dbg.c: Include filenames.h.
1787 (struct file_entry): Make filename const char *.
1788 (dirs, dirs_in_use, dirs_allocated): New variables.
1789 (get_filenum): Add NUM argument. Build directory table.
1790 (dwarf2_where): Adjust caller.
1791 (dwarf2_directive_file): Use get_filenum to allocate
1792 slot in file and directory tables.
1793 (dwarf2_directive_loc): Recreate full filename from
1794 directory and filename part if needed for listing.
1795 (out_file_list): Output directory table.
1796 Output main source file dirname before its filename.
1798 2003-01-28 Dmitry Diky <diwil@mail.ru>
1800 * config/tc-msp430.c: Replace occurences of 'tolower' with
1803 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1805 * config/tc-ia64.c (dot_vframesp): Correct error message.
1806 (dot_vframepsp): Ditto.
1808 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1810 * configure.in (em): Set to irix on all Irix systems.
1811 * configure: Rebuilt.
1812 * config/te-irix.h: New file.
1813 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1814 whether to use Irix-specific 64-bit format.
1816 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1818 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1820 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1822 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1823 (tc_gen_reloc): Handle TLS relocs.
1824 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1825 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1827 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1828 (obj_elf_type): Handle tls_object.
1830 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1832 * config/tc-s390.c (s390_tls_suffix): New function.
1833 (elf_suffix_type): Add suffix enums for TLS relocations.
1834 (s390_elf_suffix): Add suffix strings for TLS relocations.
1835 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1837 (md_gather_operands): Map new instruction operand/elf suffix
1838 combinations for TLS to bfd relocations.
1839 (tc_s390_fix_adjustable): Add new TLS relocations.
1840 (tc_s390_force_relocation): Likewise.
1841 (md_apply_fix3): Likewise.
1843 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1845 * as.h: Update copyright date.
1846 * symbols.c: Likewise.
1847 * config/tc-d10v.h: Likewise.
1848 * config/tc-fr30.h: Likewise.
1849 * config/tc-i960.h: Likewise.
1850 * config/tc-mips.h: Likewise.
1852 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1853 (MD_APPLY_SYM_VALUE): Move.
1855 2003-01-23 Nick Clifton <nickc@redhat.com>
1857 * NEWS: Announce sh2e support.
1860 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1861 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1862 (sh_elf_final_processing): Handle arch_sh2e.
1864 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1866 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1867 * symbols.h (S_FORCE_RELOC): Likewise.
1868 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1869 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1870 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1871 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1872 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1873 * write.c (generic_force_reloc): New function.
1874 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1875 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1876 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1877 * as.h (generic_force_reloc): Declare.
1878 * doc/internals.texi (S_FORCE_RELOC): Update.
1879 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1881 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1882 generic_force_reloc.
1883 (alpha_fix_adjustable): Likewise.
1884 * config/tc-arm.c (arm_force_relocation): Likewise.
1885 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1886 * config/tc-frv.c (frv_force_relocation): Likewise.
1887 * config/tc-i386.c (md_apply_fix3): Likewise.
1888 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1889 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1890 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1891 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1892 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1893 * config/tc-mips.c (mips_force_relocation): Likewise.
1894 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1895 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1896 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1897 * config/tc-sh.c (sh_force_relocation): Likewise.
1898 (md_pcrel_from_section): Likewise.
1899 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1900 * config/tc-v850.c (v850_force_relocation): Likewise.
1901 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1902 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1903 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1904 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1906 * config/tc-d10v.c (d10v_force_relocation): Delete.
1907 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1908 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1909 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1910 * config/tc-fr30.c (fr30_force_relocation): Delete.
1911 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1912 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1913 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1914 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1915 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1916 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1917 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1918 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1919 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1920 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1921 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1922 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1923 * config/tc-i386.c (i386_force_relocation): Delete.
1924 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1926 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1927 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1928 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1929 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1931 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1932 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1934 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1936 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1937 sh64_elf_section_data.
1938 * config/tc-sh64.h: Include elf32-sh64.h.
1939 * config/tc-m68hc11.c: Don't include stdio.h.
1940 (md_show_usage): Fix missing continuation.
1941 * Makefile.am: Run "make dep-am".
1942 * Makefile.in: Regenerate.
1944 2003-01-22 Nick Clifton <nickc@redhat.com>
1946 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1948 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1950 * configure.in: Handle *-*-aros*.
1951 * configure: Regenerated from configure.in.
1953 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1955 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1956 gotplt and pltoff relocations.
1957 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1958 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1959 gotplt and pltoff to bfd relocations.
1960 (md_gather_operands): Map new instruction operand/elf suffix
1961 combinations to bfd relocations.
1962 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1963 to the list of unadjustable relocations.
1964 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1965 and pltoff relocations.
1966 (md_apply_fix3): Add the new relocations.
1968 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1970 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1971 with a subsy symbol.
1973 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1975 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1976 of relocs for memory bank addressing.
1978 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1980 * config/tc-m68hc11.c (md_show_usage): Update usage.
1981 (md_parse_option): Recognize -m68hcs12.
1982 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1984 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1986 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1988 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1990 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1992 * Makefile.am: Run "make dep-am".
1993 * Makefile.in: Regenerate.
1994 * po/POTFILES.in: Regenerate.
1996 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1998 * read.c (get_absolute_expr): New, split out from..
1999 (get_absolute_expression): ..here.
2000 * read.h (get_absolute_expr): Declare.
2001 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2002 Trim size to arch bits_per_address, and test for negative input
2003 via get_absolute_expr.
2005 2003-01-07 DJ Delorie <dj@redhat.com>
2007 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2009 (xstormy16_md_apply_fix3): Use adjustment.
2011 2003-01-02 Ben Elliston <bje@redhat.com>
2013 * configure.in: Add iq2000-elf target.
2014 * configure: Regenerate.
2015 * config/tc-iq2000.c: New file.
2016 * config/tc-iq2000.h: Likewise.
2017 * po/gas.pot: Regenerate.
2019 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2021 * config/tc-mips.c: Update copyright years to include 2003.
2022 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2023 Additionally, clean up their code slightly and clean up their
2026 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2028 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2030 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2032 * doc/Makefile.in: Regenerate.
2034 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2036 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2037 of .init and .fini sections for array initializers and finalizers.
2039 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2041 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2042 the "+D" operand, which will be used only by the disassembler.
2044 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2046 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2048 * configure: Regenerate.
2049 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2050 (macro_build): Handle "K" operand.
2051 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2052 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2053 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2054 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2055 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2056 (validate_mips_insn): Implement "+" as a way to extend the
2057 allowed operands, and implement "K", "+A", "+B", and "+C"
2059 (OPTION_MIPS32R2): New define.
2060 (md_longopts): Add entry for OPTION_MIPS32R2.
2061 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2062 (md_parse_option): Handle OPTION_MIPS32R2.
2063 (s_mipsset): Reimplement handling of ".set mipsN" options
2064 and add support for ".set mips32r2".
2065 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2066 (md_show_usage): Document "-mips32r2" option.
2067 * doc/as.texinfo: Document "-mips32r2" option.
2068 * doc/c-mips.texi: Likewise.
2070 2002-12-30 Dmitry Diky <diwil@mail.ru>
2072 * configure.in: Add msp430 target.
2073 * configure: Regenerate.
2074 * Makefile.am: Add msp430 target.
2075 * Makefile.in: Regenerate.
2076 * config/tc-msp430.c: New file: msp430 assembler.
2077 * config/tc-msp430.h: New file: target macros for msp430.
2078 * doc/Makefile.am: Add msp430 target.
2079 * doc/Makefile.in: Regenerate.
2080 * doc/as.texinfo: Include msp430 documenation.
2081 * doc/all.texi: Enable msp430 documentation.
2082 * doc/c-msp430.texi: New file: document msp430 specific features
2085 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2087 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2088 (dwarf2_finish): Use it.
2089 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2090 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2092 2002-12-20 DJ Delorie <dj@redhat.com>
2094 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2095 BFD_RELOC_XSTORMY16_12.
2097 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2099 * doc/as.texinfo (Invoking): Typo fix.
2100 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2102 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2104 * doc/c-alpha.texi: Fix typos.
2105 * doc/c-arm.texi: Likewise.
2106 * doc/c-d10v.texi: Likewise.
2107 * doc/c-i370.texi: Likewise.
2108 * doc/c-i960.texi: Likewise.
2109 * doc/c-ia64.texi: Likewise.
2110 * doc/c-mmix.texi: Likewise.
2111 * doc/c-ns32k.texi: Likewise.
2112 * doc/c-pdp11.texi: Likewise.
2113 * doc/c-pj.texi: Likewise.
2114 * doc/c-sh64.texi: Likewise.
2115 * doc/c-sparc.texi: Likewise.
2116 * doc/c-tic54x.texi: Likewise.
2117 * doc/c-v850.texi: Likewise.
2118 * doc/c-vax.texi: Likewise.
2119 * doc/internals.texi: Likewise.
2121 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2123 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2124 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2125 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2126 arrange not to issue warnings about use of AT when AT is not
2129 2002-12-17 Nick Clifton <nickc@redhat.com>
2131 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2132 prevent it being confused with -k.
2134 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2136 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2137 has already been set up, use it.
2139 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2141 * ChangeLog-9295: Fix a typo.
2143 * config/tc-d10v.c: Fix a comment typo.
2144 * config/tc-dlx.c: Likewise.
2145 * config/tc-h8300.h: Likewise.
2146 * config/tc-h8500.h: Likewise.
2147 * config/tc-mips.c: Likewise.
2148 * config/tc-s390.c: Likewise.
2149 * config/tc-sh.h: Likewise.
2150 * config/tc-tic80.h: Likewise.
2151 * config/tc-w65.h: Likewise.
2152 * config/tc-z8k.c: Likewise.
2153 * config/tc-z8k.h: Likewise.
2154 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2156 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2158 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2159 Simplify sign extension. Remove redundant unsigned < 0 test.
2160 * config/tc-i960.c (md_ri_to_chars): Prototype.
2161 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2162 (dump_literals): Init brarsym, and test later instead of isforce.
2164 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2165 (parse): Constify line and lineptr.
2166 (md_begin): Calculate endop here.
2168 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2170 * config/obj-vms.c: Formatting. Include fnctl.h.
2171 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2172 (Object_Record_Offset): Make it a size_t.
2173 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2174 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2175 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2176 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2177 (vms_fixup_data_section <data_size>): Add here instead.
2178 * config/e-criself.c: Fix typo in last change.
2180 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2182 * write.c (write_object_file): Fix signed/unsigned warning.
2183 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2184 * config/e-criself.c (criself_bfd_name): Prototype.
2185 * config/obj-aout.c (s_sect): Remove unused function.
2186 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2187 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2188 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2189 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2190 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2191 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2192 (vms_fixup_text_section <text_siz>): Likewise.
2193 (synthesize_data_segment <data_size>): Likewise.
2194 (vms_fixup_xtors_section <sect_no>): Likewise.
2195 (structure_count): Don't use implicit int type.
2196 * config/tc-a29k.c (insert_sreg): Prototype.
2197 (define_some_regs): Prototype, make static.
2198 (parse_operand): Likewise.
2199 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2200 (md_show_usage <stream>): Likewise.
2201 (md_section_align <segment>): Likewise.
2202 (md_convert_frag <all args>): Likewise.
2203 (md_estimate_size_before_relax <all args>): Likewise.
2204 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2205 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2206 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2207 (md_undefined_symbol <name>): Likewise.
2208 (md_convert_frag <all args>): Likewise.
2209 (write_long <opcode>): Likewise.
2210 (tc_gen_reloc <seg>): Likewise.
2211 (md_estimate_size_before_relax <all args>): Likewise.
2212 (md_apply_fix3 <seg>): Likewise.
2213 (s_d30v_align <ignore>): Likewise.
2214 (build_insn): Correct format string.
2215 (md_apply_fix3): Likewise.
2216 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2217 (md_undefined_symbol <name>): Likewise.
2218 (md_convert_frag <all args>): Likewise.
2219 (md_cgen_lookup_reloc <insn>): Likewise.
2220 (md_begin): Delete unused vars.
2221 (md_assemble): Likewise.
2222 (md_estimate_size_before_relax): Likewise.
2223 (fr30_relax_frag): #if 0 out, seems unused.
2224 (md_atof): Remove declaration of atof_ieee.
2225 (restore_colon): Prototype.
2226 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2227 (frv_find_in_vliw): Likewise.
2228 (frv_debug_tomcat): Likewise.
2229 (frv_adjust_vliw_count): Likewise.
2230 (frv_tomcat_shuffle): Likewise.
2231 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2232 frv_find_in_vliw call.
2233 (md_atof): Remove declaration of atof_ieee.
2234 * config/tc-h8500.c (cons): Delete declaration.
2235 (md_begin <opcode>): Constify.
2236 (displacement_size, immediate_size, absolute_size): Remove.
2237 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2238 (tc_crawl_symbol_chain <headers>): Likewise.
2239 (md_undefined_symbol <name>): Likewise.
2240 (tc_headers_hook <headers>): Likewise.
2241 (md_parse_option <c,arg>): Likewise.
2242 (md_show_usage <stream>): Likewise.
2243 (md_convert_frag <headers, seg>): Likewise.
2244 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2245 (md_atof): Remove declaration of atof_ieee.
2246 (tc_aout_fix_to_chars): Remove unused function.
2247 (parse_reg): Prototype.
2248 (parse_exp): Prototype.
2249 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2250 (parse_reglist): Prototype.
2251 (get_operand): Prototype.
2252 (get_operands): Prototype.
2253 (get_specific): Prototype. Make "this_index" signed.
2254 (check): Prototype, make static.
2256 (build_relaxable_instruction): Prototype, make static.
2257 (build_bytes): Prototype.
2258 (wordify_scb): Prototype.
2259 * config/tc-h8500.h (start_label): Declare.
2260 (tc_coff_sizemachdep): Declare.
2261 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2262 (i370_rmode <unused>): Likewise.
2263 (i370_csect <unused>): Likewise.
2264 (i370_dc <unused>): Likewise.
2265 (i370_ds <unused>): Likewise.
2266 (i370_elf_lcomm <unused>): Likewise.
2267 (i370_ltorg <ignore>): Likewise.
2268 (i370_using <ignore>): Likewise.
2269 (i370_drop <ignore>): Likewise.
2270 (i370_byte <ignore>): Likewise.
2271 (i370_tc <ignore>): Likewise.
2272 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2273 (md_convert_frag <all args>): Likewise.
2274 (md_undefined_symbol <name>): Likewise.
2275 (md_pcrel_from_section <sec>): Likewise.
2276 (tc_gen_reloc <seg>): Likewise.
2277 (i370_section_letter): #if 0 unused functions.
2278 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2279 (symbol_locate): Prototype.
2280 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2281 (md_number_to_disp, md_number_to_field): Remove.
2282 (md_apply_fix3): Correct format string and cast "fup".
2283 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2284 (s_endian <ignore>): Likewise.
2285 (md_undefined_symbol <name>): Likewise.
2286 (tc_crawl_symbol_chain <headers>): Likewise.
2287 (tc_set_bal_of_call): Likewise.
2288 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2289 (i960_handle_align <fragp>): Likewise.
2290 (i960_validate_fix <this_segment_type>): Likewise
2291 (tc_gen_reloc <section>): Likewise.
2292 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2293 (struct memS, struct regop): Forward declare.
2294 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2295 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2296 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2297 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2298 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2299 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2300 (md_number_to_field): Likewise.
2301 (md_number_to_disp): Remove unused function.
2302 (md_atof): Remove declaration of atof_ieee.
2303 (md_apply_fix3): Correct md_number_to_imm call.
2304 * config/tc-ip2k.c (md_assemble): Warning fix.
2305 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2306 (fill_insn <ignore>): Likewise.
2307 (debug_sym <ignore>): Likewise.
2308 (md_undefined_symbol <name>): Likewise.
2309 (m32r_scomm <ignore>): Likewise.
2310 (md_convert_frag <abfd>): Likewise.
2311 (md_cgen_lookup_reloc <insn>): Likewise.
2312 (m32r_record_hi16 <seg>): Likewise.
2313 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2314 (allow_m32rx): Prototype.
2315 (first_writes_to_seconds_operands): Prototype.
2316 (writes_to_pc): Prototype.
2317 (can_make_parallel): Prototype.
2318 (make_parallel): Prototype.
2319 (target_make_parallel): Prototype.
2320 (assemble_two_insns): Prototype.
2321 (m32r_record_hi16): Prototype.
2322 (md_atof): Remove declaration of atof_ieee.
2323 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2324 (m32r_force_relocation): Prototype.
2325 (m32r_elf_section_change_hook): Prototype.
2326 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2327 (md_show_usage): Fix signed/unsigned warning.
2328 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2329 (calcop): Ditto for reg_prefix var.
2330 (hexval): Add cast to fix signed/unsigned warning.
2331 (md_number_to_disp): Delete unused function.
2332 (md_number_to_field): Likewise.
2333 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2334 (match_name): Prototype.
2335 (get_bf2): Prototype.
2336 (get_bf_offset_expression): Prototype.
2337 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2338 (md_undefined_symbol <ignore>): Likewise.
2339 (md_create_short_jump <all args>): Likewise.
2340 (md_create_long_jump <all args>): Likewise.
2341 (md_convert_frag <abfd, sec>): Likewise.
2342 (md_apply_fix3 <segment>): Likewise.
2343 (md_section_align <segment>): Likewise.
2344 (md_pcrel_from_section <sec>): Likewise.
2345 (tc_gen_reloc <section>): Likewise.
2346 (reg_m, reg_n, immediate): Delete unused vars.
2347 (dump_literals): Fix signed/unsigned warning.
2348 (enter_literal): Likewise.
2349 (parse_imm): Likewise. Also fix format string.
2350 (parse_mem): Remove unused var.
2351 (md_assemble <LS>): Abort on unexpected inst.
2352 (md_atof): Remove declaration of atof_ieee.
2353 (md_parse_option): Remove unused vars.
2354 (md_apply_fix3): Fix format strings, cast args.
2355 (tc_gen_reloc): Delete unused var.
2356 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2357 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2358 (md_undefined_symbol <name>): Likewise.
2359 (md_convert_frag <abfd>): Likewise.
2360 (tc_gen_reloc <seg>): Likewise.
2361 (check_operand <insn>): Likewise.
2362 (md_convert_frag): Fix format strings.
2363 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2364 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2365 (md_atof): Remove declaration of atof_ieee.
2366 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2367 (md_apply_fix3): Fix bogus >>='s.
2368 (md_undefined_symbol): Delete unused var.
2369 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2370 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2371 (fake_opcode): Adjust for pj_opc_int_t change.
2372 (md_begin): Likewise.
2373 (md_assemble): Likewise.
2374 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2375 instead of non-existent third arg of parse_exp_save_ilp.
2376 (md_parse_option): Correct "little" and "big" calls.
2377 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2378 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2379 (tc_gen_reloc <section>): Likewise.
2380 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2381 (debug): Rewrite using VA_* macros.
2382 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2383 (md_convert_frag): Likewise.
2384 (md_parse_option): Likewise.
2385 (md_show_usage): Likewise.
2386 (md_undefined_symbol): Likewise.
2387 (tc_gen_reloc): Likewise.
2388 (md_operand): Likewise.
2389 (tc_aout_pre_write_hook): Delete.
2390 (struct tic30_insn): Make "operands" unsigned.
2391 (struct tic30_par_insn): Likewise.
2392 (md_assemble): Likewise for "count", "i" and "numops".
2393 (tic30_parallel_insn): Likewise for vars here.
2394 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2395 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2396 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2397 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2398 (md_undefined_symbol): Likewise.
2399 (md_parse_option): Likewise.
2400 (md_convert_frag): Likewise.
2401 (tc_coff_symbol_emit_hook): Likewise.
2402 (md_atof): Remove declaration of atof_ieee.
2403 (const_overflow): Warning fixes, tidy.
2404 (get_operands): Delete unused vars.
2405 (internal_error_a): Adjust format string to expect a long for arg.
2406 (find_opcode): Warning fixes, simplify.
2407 (build_insn): Cast internal_error_a arg.
2408 (md_begin): Likewise.
2409 (md_apply_fix3): Likewise.
2410 (md_assemble): Delete unused var.
2411 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2412 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2413 (whatreg, parse_reg, parse_exp): Make static, prototype.
2414 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2415 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2416 (get_operand, get_operands, get_specific, newfix): Likewise.
2417 (apply_fix, build_bytes): Likewise.
2418 (md_atof): Remove declaration of atof_ieee.
2419 (tc_aout_fix_to_chars): Delete.
2420 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2422 (md_parse_option): Fix s_segm and s_unseg calls.
2424 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2426 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2428 (RELAX_BRANCH_RELOC_S2): Delete.
2429 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2430 Do not handle BFD_RELOC_16_PCREL.
2431 (macro_build, mips_ip): Likewise.
2432 (md_pcrel_from): Return 4 for undefined symbols regardless of
2434 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2435 Don't dereference howto if no such relocation is available.
2436 Do not apply hack for in-place zero addend in NEWABI.
2437 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2439 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2440 Alan Modra <amodra@bigpond.net.au>
2442 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2443 (TC_LINKRELAX_FIXUP): Add comments.
2445 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2447 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2449 (r_register_name, xr_register_name): Add prototype declarations.
2451 2002-12-08 H.J. Lu <hjl@gnu.org>
2453 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2454 copied from tc-i386.c.
2456 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2458 Fix Bug savannah/1825:
2459 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2460 (md_relax_table): Define specific relax for PC-rel offsets.
2461 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2462 (m68hc11_relax_frag): Handle the new relax code.
2463 (md_convert_frag): Likewise.
2464 (md_estimate_size_before_relax): Likewise.
2466 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2468 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2470 2002-12-05 Richard Henderson <rth@redhat.com>
2472 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2473 (ia64_gen_real_reloc_type): Handle it.
2474 (pseudo_func): Add @ltoffx.
2475 (md_begin): Build .<ltoffx>.
2476 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2478 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2480 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2481 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2482 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2483 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2484 COFF to call arm_force_relocation.
2486 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2488 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2490 (emit_one_bundle): Handle "hint" instruction.
2491 (operand_match): Match IA64_OPND_AR_CSD.
2493 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2495 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2498 2002-12-03 Nick Clifton <nickc@redhat.com>
2500 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2501 .PPC.EMB.apuinfo sections.
2503 2002-12-03 Richard Henderson <rth@redhat.com>
2505 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2507 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2509 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2510 (cons, s_align_bytes): Delete declaration.
2512 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2514 (dot): Delete unused function.
2515 (w65_expression): Remove unused arg.
2516 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2518 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2520 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2522 (check): Remove unused function.
2523 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2524 on unhandled switch case.
2525 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2527 (tc_crawl_symbol_chain): Delete unused function.
2528 (tc_headers_hook): Likewise.
2529 (tc_Nout_fix_to_chars): Likewise.
2530 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2531 (md_parse_option): Likewise.
2532 (md_convert_frag): Likewise.
2533 (tc_coff_symbol_emit_hook): Likewise.
2534 (md_show_usage): Likewise.
2535 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2536 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2537 (w65_expression): Declare.
2539 * po/POTFILES.in: Regenerate.
2541 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2542 and ARM_ADRL_IMMEDIATE.
2544 2002-12-02 Nick Clifton <nickc@redhat.com>
2546 * gasp.c: Delete. It has been deprecated.
2547 * NEWS: Mention that gasp has been removed.
2548 * Makefile.am: Remove references to gasp.
2549 * makefile.vms: Likewise.
2550 * mpw-make.sed: Likewise.
2551 * Makeile.in: Regenerate.
2552 * doc/gasp.texi: Delete.
2553 * doc/Makefile.am: Remove references to gasp.texi.
2554 * doc/Makefile.in: Regenerate.
2555 * macro.c: Delete references to gasp.
2556 Remove use of comment_char function parameter as it is no longer
2558 * macro.h: Update prototypes to remove comment_char parameter.
2560 * read.c (read_a_source_file, s_irp): Remove comment_char
2561 parameter from invocation of functions in macro.c
2563 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2565 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2567 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2569 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2570 (tc_gen_reloc): Mark section param as not used.
2572 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2574 Fix Bug savannah/1825:
2575 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2576 that are not pc-relative.
2577 (m68hc11_relax_frag): Declare.
2579 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2580 the offsetable indexed addressing modes (n,r).
2581 (build_insn): Cleanup some locals.
2582 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2583 relaxation of difference between two symbols of same section.
2584 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2585 only when this is a PC-relative operand and the offset is not absolute.
2586 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2587 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2588 be handled by m68hc11_relax_frag.
2590 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2592 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2593 (32-bit int, 64-bit double).
2594 (md_longopts): New options -mshort, -mlong, -mshort-double and
2595 -mlong-double to control the ABI.
2596 (md_show_usage): Update.
2597 (md_parse_option): Handle new options.
2598 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2600 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2602 * symbols.c (report_op_error): New function, broken out of ...
2603 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2606 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2608 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2609 for BFD_RELOC_32_PLT_PCREL.
2611 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2613 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2614 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2615 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2616 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2617 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2618 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2619 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2620 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2621 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2622 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2623 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2624 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2625 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2626 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2627 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2628 TRUE/FALSE. Formatting.
2630 2002-11-29 Nick Clifton <nickc@redhat.com>
2632 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2633 assume a value of zero.
2634 (do_bkpt): Likewise.
2636 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2638 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2639 for TLS relocations.
2641 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2643 * config/tc-ia64.c (md_apply_fix3): Add default case.
2645 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2647 * symbols.c (S_SET_THREAD_LOCAL): New function.
2648 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2649 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2650 for TLS relocations.
2651 * config/tc-ia64.c (md_apply_fix3): Likewise.
2652 * config/tc-alpha.c (md_apply_fix3): Likewise.
2654 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2656 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2659 2002-11-26 DJ Delorie <dj@redhat.com.
2661 * dwarf2dbg.c (scale_addr_delta): New.
2662 (size_inc_line_addr): Use it.
2663 (emit_inc_line_addr): Use it.
2665 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2667 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2668 (md_assemble): Don't pass on branches to constants as relaxable.
2671 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2673 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2675 2002-11-21 Randolph Chung <randolph@tausq.org>
2677 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2678 only if they have default visibility.
2680 2002-11-21 Richard Henderson <rth@redhat.com>
2682 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2685 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2687 * config/tc-mcore.c (mcore_pool_count): New function.
2688 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2690 2002-11-20 Klee Dienes <kdienes@apple.com>
2692 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2693 coalesce the name fields to use the same pointer.
2695 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2696 the name fields to use the same pointer.
2697 (get_specific): Check for opcodes with the same name using strcmp
2698 as well as comparing the pointer.
2700 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2702 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2705 2002-11-19 Richard Henderson <rth@redhat.com>
2707 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2708 visibility portion of st_other.
2710 2002-11-19 Klee Dienes <kdienes@apple.com>
2712 * config/tc-h8300.c (struct h8_instruction): New type, used to
2713 wrap h8_opcodes with length, noperands, idx, and size fields
2714 (computed at run-time).
2715 (h8_instructions): New variable.
2716 (md_begin): Allocate the storage for h8_instructions. Fill
2717 h8_instructions with pointers to the appropriate opcode and the
2718 correct value for the additional fields.
2719 (clever_message): Update to use h8_instructions instead of
2721 (build_bytes): Ditto.
2722 (get_specific): Ditto.
2723 (md_assemble): Ditto.
2725 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2727 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2728 adjustments to symbols in merge sections.
2730 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2732 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2734 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2736 * dwarf2dbg.h (dwarf2_format): New enum.
2737 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2738 (out_debug_line, out_debug_info): Add code for handling 64-bit
2740 * config/tc-mips.h (mips_dwarf2_format): Declare.
2741 * config/tc-mips.c (mips_dwarf2_format): New function.
2742 * doc/internals.texi (DWARF2_FORMAT): Document.
2744 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2746 * config/tc-mips.c (s_change_section): Make sure input buffer
2747 is not accessed past the end. Don't hand
2748 obj_elf_change_section a pointer into the input buffer.
2750 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2752 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2755 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2757 * config/tc-tic4x.c: Fixed proper commandline
2758 parameters. Added support for new opcode-list format. General
2759 error message fixups.
2760 (c4x_inst_add): Reject insn not for our CPU
2761 (md_begin): Added matrix for setting the proper opcode-level &
2762 device-flags according to cpu type and revision. Rewrite the
2764 (c4x_operand_parse): Fix opcode bug
2765 (c4x_operands_match): New function argument. Added dry-run
2766 mechanism, that is optional error generation. Added constraint 'i'
2768 (c4x_insn_check): Added new function for post-verification of the
2770 (md_assemble): Check all opcodes before croaking because of an
2771 argument mismatch. Need this to be able to fully support
2772 ortogonally arguments.
2773 (md_parse_options): Revised commandprompt swicthes and added new
2775 (md_show_usage): Complete rewrite of printout.
2777 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2779 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2780 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2781 warning when using constant direct bigger than 2^16. Add the new
2784 2002-11-11 Christopher Faylor <cgf@redhat.com>
2786 * configure.in: Use .gdbinit under Cygwin.
2787 * configure: Regenerate.
2789 2002-11-11 Christopher Faylor <cgf@redhat.com>
2791 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2794 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2796 * config/tc-tic4x.c: Declare as many functions as possible as
2797 static. Maintenance on the general indenting. Removed unnecessary
2798 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2799 function. Add support for new DSP, TMS320VC33. Fix bug for
2800 converting flonum constants.
2801 (c4x_do_align): Add proper align handling. Setup align to insert
2803 (c4x_gen_to_words): Support for extended TI type floats.
2804 (md_atof): Proper dumping of multiple-word littlenums.
2805 (c4x_atof): Added support for extended TI type floats.
2806 (c4x_stringer): Added new function to handle compact strings.
2807 (c4x_emit_char): Added new function argument to handle custom
2808 length inserts, like single-byte strings.
2809 * config/tc-tic4x.h: Add proper align handling with NOP's.
2810 * Makefile.am: Added tic4x dependecy
2811 * Makefile.in: Regenerate
2813 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2815 * macro.c (get_any_string): Correct logic for not going beyond end
2818 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2820 * config/tc-mmix.c (get_putget_operands): Mark both possible
2821 operands as invalid at beginning.
2823 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2824 Initialize target of fixup to zero.
2826 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2828 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2829 NEWABI, but we should still emit HI16_S for non-PIC n32.
2831 2002-11-06 Richard Henderson <rth@redhat.com>
2833 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2834 (alpha_fix_adjustable): ... here.
2835 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2837 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2839 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2842 2002-11-05 H.J. Lu <hjl@gnu.org>
2844 * config/tc-mips.c (support_64bit_objects): Check *l before it
2847 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2849 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2850 SEC_LOAD flags for sections marked as 's'.
2852 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2854 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2855 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2856 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2859 * dep-in.sed: Fix typo.
2861 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2863 * configure.in: Update ARM CPU patterns.
2864 * configure: Regenerated.
2866 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2868 * itbl-lex.l: Use #include <> for generated headers.
2869 * itbl-ops.c: Likewise.
2871 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2873 * doc/gasp.texi: Fix typo in deprecation note.
2875 2002-10-23 Nick Clifton <nickc@redhat.com>
2877 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2878 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2880 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2882 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2883 (tc_frob_file_before_adjust): Don't define.
2884 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2886 (mmix_frob_file_before_adjust): Remove ineffective function.
2888 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2890 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2891 (cris_relax_frag): New function.
2892 (md_estimate_size_before_relax) <case ENCODE_RELAX
2893 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2894 expressions that will become absolute expressions to relaxation.
2895 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2896 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2897 value, not distance to symbol.
2898 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2899 Ditto. Correct placement of fixup.
2900 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2902 * config/tc-cris.h (cris_relax_frag): Declare.
2903 (md_relax_frag): Define.
2905 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2907 * config/obj-elf.c (special_sections): Use correct types for init
2909 (obj_elf_change_section): Don't mess with init array section type.
2911 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2913 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2914 for relocs against symbols in a merged section.
2916 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2918 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2919 table as register names.
2921 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2923 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2926 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2928 * expr.c (operand): Add support for n.nn flonums.
2930 2002-10-17 Johannes Stezenbach <js@convergence.de>
2932 * itbl-parse.y (entry): Provide empty action.
2934 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2936 * configure.in (BFDVER_H): Set and subst.
2937 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2938 * Makefile.am: Run "make dep-am".
2940 * configure: Regenerate.
2941 * Makefile.in: Regenerate.
2942 * doc/Makefile.in: Regenerate.
2944 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2946 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2947 (MD_APPLY_SYM_VALUE): Define for PE too.
2949 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2951 * Makefile.am: Run "make dep-am".
2952 (CPU_OBJ_VALID): sh64 coff is invalid.
2953 * as.c: #include "bfdver.h".
2954 * Makefile.in: Regenerate.
2955 * config.in: Regenerate.
2957 2002-10-14 Momchil Velikov <velco@fadata.bg>
2959 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2961 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2963 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2964 * configure: Regenerate.
2966 2002-10-13 Eric Christopher <echristo@redhat.com>
2967 Alexandre Oliva <aoliva@redhat.com>
2969 * config/tc-mips.c (s_gpdword): New function.
2970 (mips_pseudo_table): Add .gpdword.
2971 (mips_need_elf_addend_fixup): never for NEWABI.
2972 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2974 (s_cpadd): Generate .cpadd on NEWABI.
2976 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2978 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2980 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2982 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2983 (md_relax_frag): Adjust macro.
2984 * config/tc-mips.c (mips_relax_branch): New variable.
2985 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2986 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2987 (RELAX_MIPS16_P): Adjust.
2988 (append_insn): Emit branch to non-constant in a frag_var if
2989 branch-relaxation is desirable and possible.
2990 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2991 (OPTION_ELF_BASE): Adjust.
2992 (md_parse_option): Handle new options.
2993 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2995 (relaxed_branch_length): New function.
2996 (md_estimate_size_before_relax): Handle branch frags.
2997 (mips_relax_frag): Likewise.
2998 (md_convert_frag): Handle branch frags. Warn if branch is
3001 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3003 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3005 (md_apply_fix3): Add TLS relocs.
3006 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3009 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3010 Alan Modra <amodra@bigpond.net.au>
3012 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3013 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3015 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3017 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3020 2002-10-09 Richard Shann <richard.shann@superh.com>
3021 Stephen Clarke <stephen.clarke@superh.com>
3023 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3026 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3028 * contig/tc-sh.c (sh_local_pcrel): New.
3029 (sh_force_relocation): Use sh_local_pcrel.
3030 (md_pcrel_from_section): Check the relocation type whether it
3031 should be resolved locally. Use S_FORCE_RELOC.
3033 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3035 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3036 (TC_FORCE_RELOCATION): Tidy arg.
3038 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3039 Ken Raeburn <raeburn@cygnus.com>
3040 Aldy Hernandez <aldyh@redhat.com>
3041 DJ Delorie <dj@redhat.com>
3042 Michael Meissner <meissner@redhat.com>
3043 Eric Christopher <echristo@redhat.com>
3044 Richard Sandiford <rsandifo@redhat.com>
3046 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3047 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3048 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3049 (hilo_interlocks): True for CPU_VR5500.
3050 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3051 (mips_fix_vr4122_bugs): New.
3052 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3053 (mips_emit_delays): Likewise.
3054 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3055 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3056 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3057 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3058 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3059 (OPTION_ELF_BASE): Bump.
3060 (md_parse_option): Handle the new options.
3061 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3064 2002-09-29 H.J. Lu <hjl@gnu.org>
3066 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3067 twice if howto->pcrel_offset is true.
3069 2002-09-28 Matt Thomas <matt@3am-software.com>
3070 Jason Thorpe <thorpej@wasabisystems.com>
3072 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3073 convert undefined references to GOT32/PLT32 if PIC code is
3074 requested. Fix comment.
3076 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3078 * config/tc-sh.c (sh_force_relocation): Return 0 for
3079 some PC relative relocations when not relaxing.
3081 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3083 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3084 Define them if not BFD_ASSEMBLER.
3085 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3087 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3088 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3089 (tc_gen_reloc): Handle x86-64 TLS relocs.
3091 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3093 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3094 fixups to current or absolute section.
3096 2002-09-26 Jim Wilson <wilson@redhat.com>
3098 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3101 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3103 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3104 capable configuration.
3105 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3107 (mips_ip): Likewise.
3109 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3111 * config/tc-mips.c (append_insn): Fix jump overflow check.
3113 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3115 * config/tc-i386.c (process_operands): Warn about "lea" segment
3118 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3120 * write.c: Delete set_segment_vma and prototype. Update all callers.
3122 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3124 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3125 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3126 Rename "fseg" to "sym_seg".
3127 * Makefile.am: Run "make dep-am".
3128 * Makefile.in: Regenerate.
3129 * doc/Makefile.in: Regenerate.
3131 2002-09-20 Nick Clifton <nickc@redhat.com>
3133 * symbols.c (colon): Do not allow symbols to be created in the
3134 absolute section if WORKING_DOT_WORD is not defined and
3135 new_broken_words would require a new frag to be created.
3137 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3139 * expr.c (expr): Simplify foo-foo here.
3140 (clean_up_expression): Remove O_subtract code.
3142 * write.h (struct fix): Add fx_dot_value.
3143 (dot_value): Declare.
3144 * write.c (dot_value): New var.
3145 (fix_new_internal): Save dot_value as fx_dot_value.
3146 (fixup_segment): Adjust fx_offset using fx_dot_value.
3147 * expr.c (expr): Update dot_value.
3149 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3151 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3152 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3153 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3155 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3156 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3157 BFD_RELOC_386_TLS_GOTIE.
3159 2002-09-19 Richard Henderson <rth@redhat.com>
3161 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3163 (alpha_force_relocation): Don't special-case branch type relocs.
3165 2002-09-19 Nick Clifton <nickc@redhat.com>
3167 * config/tc-m68k.c (select_control_regs): Handle situation where
3168 architecture has not yet been selected.
3170 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3172 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3173 (IS_SEXT_16BIT_NUM): New macro.
3174 (macro_build_ldst_constoffset): New function, to build a set of
3175 instructions to do a load or store from a constant offset relative
3176 to a given register.
3177 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3178 .cprestore pseudo-op.
3180 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3182 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3184 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3186 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3188 2002-09-17 Stan Cox <scox@redhat.com>
3190 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3191 (macro): Likewise for la. Likewise for ld.
3192 (mips_after_parse_args): Make -xgot optional, not the default.
3193 (md_apply_fix3): Allow composite relocation to set up gp.
3194 (tc_gen_reloc): Allow relaxing for newabi.
3195 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3196 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3198 2002-09-17 Nick Clifton <nickc@redhat.com>
3200 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3201 BFD_RELOC_ARM_IMMEDIATE has been done.
3202 (tc_gen_reloc): Do not issue reloc number of unimplemented
3203 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3204 their name is already in the error message - plus remove them
3205 from the default case.
3207 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3208 behavior of instructions.
3210 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3212 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3213 Convert functions to K&R format.
3215 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3217 * config/tc-mips.c (pdr_seg): Define only for ELF.
3218 (s_change_section): Remove unused variable. Don't use for nonELF.
3220 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3222 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3224 * config/obj-elf.h (obj_elf_change_section): Likewise.
3226 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3228 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3229 (out_debug_info): Likewise.
3231 2002-09-16 Bruno Haible <bruno@clisp.org>
3233 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3234 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3235 * config/tc-i386.c (i386_target_format): Likewise.
3236 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3237 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3239 2002-09-13 Nick Clifton <nickc@redhat.com>
3241 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3242 when deciding if any operands have been skipped.
3244 2002-09-11 Nick Clifton <nickc@redhat.com>
3246 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3248 * po/tr.po: Updated Turkish translation.
3250 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3252 * config/tc-i386.c (md_apply_fix3): Allow addend for
3253 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3254 BFD_RELOC_386_TLS_LE_32.
3256 2002-09-05 Jeff Law <law@redhat.com>
3258 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3259 marker relocations such as ENTRY/EXIT.
3260 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3261 to both OBJ_ELF and OBJ_SOM.
3263 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3265 * doc/internals.texi (md_apply_fix3): Expand.
3266 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3267 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3268 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3269 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3270 EXTERN_FORCE_RELOC): Document.
3271 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3272 * as.h: Don't include struc-symbol.h for arc.
3274 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3275 subtract absolute symbol.
3276 * obj.h (struct format_ops): Add frob_file_before_fix.
3277 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3278 * symbols.c (S_FORCE_RELOC): New function.
3279 * symbols.h (S_FORCE_RELOC): Declare.
3280 * write.c (TC_FORCE_RELOCATION): Change default.
3281 (TC_FORCE_RELOCATION_ABS): Define.
3282 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3283 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3284 (TC_FORCE_RELOCATION_SECTION): Don't define.
3285 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3286 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3287 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3288 (TC_VALIDATE_FIX_SUB): Define.
3289 (TC_FIX_ADJUSTABLE): Don't define.
3290 (MD_APPLY_SYM_VALUE): Define this instead.
3291 (abs_section_sym): New variable.
3292 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3293 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3294 Don't put the absolute section sym on fixups here.
3295 (fix_segment): New function.
3296 (write_relocs): Don't call fixup_segment from here.
3297 (write_object_file): Instead call tc_frob_file_before_fix,
3298 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3299 Don't output the absolute section symbol.
3300 (fixup_segment): Rewrite.
3301 * write.h (abs_section_sym): Declare.
3302 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3304 (aout_format_ops): Adjust to suit.
3305 * config/obj-aout.h (obj_frob_file): Don't define.
3306 (obj_frob_file_before_fix): Define.
3307 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3308 (S_FORCE_RELOC): Define.
3309 * config/obj-bout.h (S_FORCE_RELOC): Define.
3310 * config/obj-coff.c (coff_format_ops): Init new field.
3311 * config/obj-coff.h: Formatting fixes.
3312 (obj_sec_sym_ok_for_reloc): Define.
3313 (S_FORCE_RELOC): Define.
3314 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3315 (ecoff_frob_file): .. from here.
3316 (ecoff_format_ops): Add new function.
3317 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3318 (obj_frob_file_before_fix): Define.
3319 * config/obj-elf.c (elf_format_ops): Init new field.
3320 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3321 * config/obj-ieee.h: Formatting fixes.
3322 (S_FORCE_RELOC): Define.
3323 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3324 * config/obj-vms.h (S_FORCE_RELOC): Define.
3325 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3326 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3327 for BFD_RELOC_32 and BFD_RELOC_64.
3328 (alpha_fix_adjustable): Remove extern and weak tests.
3329 (alpha_before_fix): Rename from alpha_adjust_symtab.
3330 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3331 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3332 (TC_VALIDATE_FIX): Tweak param name.
3333 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3334 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3335 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3336 (MD_APPLY_SYM_VALUE): Define.
3337 (tc_adjust_symtab): Don't define.
3338 (alpha_adjust_symtab): Don't declare.
3339 (tc_frob_file_before_fix): Define.
3340 (alpha_before_fix): Declare.
3341 (TC_INIT_FIX_DATA): Tweak param names.
3342 * config/tc-arc.c: Include "struc-symbol.h".
3343 (md_pcrel_from): Remove undefined sym fudge.
3344 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3345 Don't set fx_addnumber.
3346 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3347 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3348 (EXTERN_FORCE_RELOC): Define.
3349 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3350 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3351 (arm_validate_fix): Return void.
3352 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3353 Add plt and got reloc tests.
3354 (arm_force_relocation): Call S_FORCE_RELOC.
3355 * config/tc-arm.h (struct fix): Forward declare.
3356 (TC_VALIDATE_FIX): No longer set add_symbolP.
3357 (arm_validate_fix): Adjust declaration.
3358 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3359 (TC_FORCE_RELOCATION): Tweak param name.
3360 (TC_INIT_FIX_DATA): Likewise.
3361 (obj_fix_adjustable): Don't define.
3362 (tc_fix_adjustable): Call arm_fix_adjustable.
3363 (TC_FIX_ADJUSTABLE): Don't define.
3364 (MD_APPLY_SYM_VALUE): Define.
3365 (EXTERN_FORCE_RELOC): Define.
3366 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3367 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3368 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3369 Remove *valP fudges and code to subtract abs sym. Don't set
3371 * config/tc-avr.h: Formatting.
3372 (EXTERN_FORCE_RELOC): Define.
3373 (MD_APPLY_SYM_VALUE): Define.
3374 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3375 (md_apply_fix3): Remove code to subtract abs sym.
3376 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3377 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3378 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3379 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3380 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3381 (tc_fix_adjustable): Remove extern, weak tests.
3382 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3383 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3384 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3385 and code to subtract abs sym.
3386 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3387 (d10v_force_relocation): Call S_FORCE_RELOC.
3388 * config/tc-d10v.h: Don't include write.h.
3389 (struct fix): Instead, forward declare.
3390 (MD_PCREL_FROM_SECTION): Tweak param names.
3391 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3392 (d10v_fix_adjustable): Likewise.
3393 (obj_fix_adjustable): Don't define.
3394 (tc_fix_adjustable): Define.
3395 (TC_FORCE_RELOCATION): Tweak param name.
3396 (MD_APPLY_SYM_VALUE): Define.
3397 (EXTERN_FORCE_RELOC): Define.
3398 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3399 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3400 and code to subtract abs sym.
3401 * config/tc-d30v.h: Don't include write.h.
3402 (struct fix): Instead, forward declare.
3403 (MD_PCREL_FROM_SECTION): Tweak param names.
3404 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3405 (MD_APPLY_SYM_VALUE): Define.
3406 (EXTERN_FORCE_RELOC): Define.
3407 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3408 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3409 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3410 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3411 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3412 Don't use fx_addnumber.
3413 * config/tc-dlx.h: Don't include write.h.
3414 (md_convert_frag): We're not alpha twice over.
3415 (EXTERN_FORCE_RELOC): Define.
3416 (obj_fix_adjustable): Don't define.
3417 (tc_fix_adjustable): Define.
3418 (TC_FIX_ADJUSTABLE): Don't define.
3419 (MD_APPLY_SYM_VALUE): Define.
3420 (LOCAL_LABELS_DOLLAR): Undef always.
3421 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3422 (fr30_fix_adjustable): Remove extern, weak tests.
3423 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3424 (obj_fix_adjustable): Don't define.
3425 (tc_fix_adjustable): Define.
3426 (struct fix): Forward declare.
3427 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3428 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3429 (frv_fix_adjustable): Don't do extern, weak tests.
3430 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3431 (TC_FIX_ADJUSTABLE): Don't define.
3432 (obj_fix_adjustable): Don't define.
3433 (tc_fix_adjustable): Define.
3434 (struct fix): Forward declare.
3435 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3436 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3437 * config/tc-h8300.h (struct fix): Forward declare.
3438 (EXTERN_FORCE_RELOC): Define.
3439 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3440 (hppa_fix_adjustable): Don't test extern or weak. Don't
3441 symbol_mark_used_in_reloc.
3442 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3444 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3445 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3446 (TC_FORCE_RELOCATION_SECTION): Don't define.
3447 (MD_APPLY_SYM_VALUE): Define.
3448 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3449 to subtract abs sym.
3450 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3451 (MD_APPLY_SYM_VALUE): Define.
3452 (MD_PCREL_FROM_SECTION): Tweak param name.
3453 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3454 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3455 (i386_force_relocation): New function.
3456 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3457 (TC_VALIDATE_FIX): Likewise.
3458 (TC_FIX_ADJUSTABLE): Don't define.
3459 (MD_APPLY_SYM_VALUE): Define.
3460 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3461 (i386_force_relocation): Declare.
3462 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3463 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3464 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3465 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3466 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3467 (EXTERN_FORCE_RELOC): Define.
3468 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3469 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3470 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3471 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3472 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3473 Remove #if 0 code. Invert return boolean.
3474 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3475 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3476 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3477 (tc_coff_sizemachdep): Prototype.
3478 (i960_handle_align): Likewise.
3479 (i960_validate_fix): Adjust declaration.
3480 (reloc_callj): Likewise.
3481 (EXTERN_FORCE_RELOC): Define.
3482 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3483 (TC_FORCE_RELOCATION_ABS): Define.
3484 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3485 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3486 (TC_FIX_ADJUSTABLE): Don't define.
3487 (MD_APPLY_SYM_VALUE): Define.
3488 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3489 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3490 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3491 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3492 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3493 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3494 (MD_APPLY_SYM_VALUE): Define.
3495 (EXTERN_FORCE_RELOC): Define.
3496 (TC_FORCE_RELOCATION): Tweak param name.
3497 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3498 (m32r_fix_adjustable): Don't test extern, weak.
3499 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3500 (MD_APPLY_SYM_VALUE): Define.
3501 (obj_fix_adjustable): Don't define.
3502 (tc_fix_adjustable): Define.
3503 (tc_frob_file): Don't define.
3504 (tc_frob_file_before_fix): Define.
3505 (EXTERN_FORCE_RELOC): Define.
3506 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3507 BFD_RELOC_VTABLE_ENTRY address.
3508 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3509 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3510 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3511 Remove duplicated fx_done code.
3512 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3513 (EXTERN_FORCE_RELOC): Define.
3514 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3516 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3517 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3518 (TC_FIX_ADJUSTABLE): Don't define.
3519 (EXTERN_FORCE_RELOC): Define.
3520 (MD_APPLY_SYM_VALUE): Define.
3521 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3522 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3523 Remove fx_addsy tests.
3524 (mcore_force_relocation): Call S_FORCE_RELOC.
3525 (mcore_fix_adjustable): Don't test fx_addsy.
3526 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3527 (EXTERN_FORCE_RELOC): Define.
3528 (obj_fix_adjustable): Don't define.
3529 (tc_fix_adjustable): Define.
3530 (MD_APPLY_SYM_VALUE): Define.
3531 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3532 (mips_pic): No longer static.
3533 (mips_force_relocation): Call S_FORCE_RELOC.
3534 (mips_fix_adjustable): Remove extern, weak tests.
3535 * config/tc-mips.h (enum mips_pic_level): Declare.
3536 (mips_pic): Declare.
3537 (tc_frob_file): Don't define.
3538 (tc_frob_file_before_fix): Define this instead.
3539 (EXTERN_FORCE_RELOC): Define.
3540 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3541 with reg_section tests. Set fx_done instead of calling
3542 symbol_clear_used_in_reloc on bad relocs.
3543 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3544 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3545 (mmix_adjust_symtab): Simplify list handling. Abort on any
3547 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3548 BFD_RELOC_MMIX_LOCAL.
3549 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3550 (EXTERN_FORCE_RELOC): Define.
3551 (MD_PCREL_FROM_SECTION): Tweak param name.
3552 (tc_frob_file): Don't define.
3553 (tc_frob_file_before_fix): Define this instead.
3554 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3555 Remove SEC_CODE checks.
3556 (mn10300_fix_adjustable): Remove extern and weak tests.
3557 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3558 (TC_FORCE_RELOCATION): Tweak param name.
3559 (obj_fix_adjustable): Don't define.
3560 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3561 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3562 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3563 (openrisc_fix_adjustable): Don't test fx_addsy.
3564 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3565 (obj_fix_adjustable): Don't define.
3566 (tc_fix_adjustable): Define this instead.
3567 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3568 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3569 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3570 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3571 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3572 (MD_APPLY_SYM_VALUE): Define.
3573 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3574 Don't subtract symbol value.
3575 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3576 (EXTERN_FORCE_RELOC): Define.
3577 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3578 (MD_APPLY_SYM_VALUE): Define.
3579 (obj_fix_adjustable): Don't define.
3580 (tc_fix_adjustable): Define this instead.
3581 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3583 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3584 (ppc_force_relocation <elf version>): New.
3585 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3586 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3587 comments. Don't subtract fx_subsy as that is already done.
3588 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3589 (MD_PCREL_FROM_SECTION): Likewise.
3590 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3591 ppc_force_relocation.
3592 (TC_FORCE_RELOCATION_SECTION): Delete.
3593 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3594 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3595 (MD_APPLY_SYM_VALUE): Define.
3596 * config/tc-s390.c: #include "dwarf2dbg.h".
3597 (s390_insn): Remove excess parens.
3598 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3599 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3600 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3601 non-NULL. Don't subtract off fx_addsy value.
3602 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3603 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3604 (TC_FIX_ADJUSTABLE): Don't define.
3605 (MD_APPLY_SYM_VALUE): Define.
3606 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3607 (SWITCH_TABLE): Likewise.
3608 (sh_force_relocation): Call S_FORCE_RELOC.
3609 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3610 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3611 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3612 fx_addnumber is zero on entry. Save val in fx_addnumber.
3613 (tc_gen_reloc): Don't subtract fx_subsy.
3614 * config/tc-sh.h (struct fix): Move.
3615 (obj_fix_adjustable): Don't define.
3616 (tc_fix_adjustable): Define this instead.
3617 (TC_FIX_ADJUSTABLE): Don't define.
3618 (MD_APPLY_SYM_VALUE): Define.
3619 (SWITCH_TABLE_CONS): Define.
3620 (SWITCH_TABLE): Define.
3621 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3622 (TC_VALIDATE_FIX_SUB): Define.
3623 (MD_PCREL_FROM_SECTION): Tweak param name.
3624 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3625 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3626 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3627 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3628 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3629 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3630 (TC_VALIDATE_FIX_SUB): Define.
3631 (MD_PCREL_FROM_SECTION): Tweak param name.
3632 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3633 (tc_gen_reloc): Use S_FORCE_RELOC.
3634 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3635 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3636 (TC_FORCE_RELOCATION_ABS): Define this instead.
3637 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3638 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3639 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3640 (MD_APPLY_SYM_VALUE): Define.
3641 (TC_FIX_DATA_PRINT): Tweak param name.
3642 * config/tc-tic30.c (USE_STDOUT): Don't define.
3643 (md_parse_option): Remove stupid debug code.
3644 (tc_gen_reloc): Don't use fx_addnumber.
3645 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3646 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3647 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3648 (tc_fix_adjustable): Define this instead.
3649 (TC_FIX_ADJUSTABLE): Don't define.
3650 (MD_APPLY_SYM_VALUE): Define this instead.
3651 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3652 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3653 (TC_FIX_ADJUSTABLE): Don't define.
3654 (MD_APPLY_SYM_VALUE): Define this instead.
3655 (tc_fix_adjustable): Remove extern and weak tests.
3656 * config/tc-w65.h (struct fix): Forward declare.
3657 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3659 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3660 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3661 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3663 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3664 (MD_APPLY_SYM_VALUE): Define.
3665 (obj_fix_adjustable): Don't define.
3666 (tc_fix_adjustable): Define this instead.
3667 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3669 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3671 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3672 (ppc_fix_adjustable <coff version>): Cleanup.
3674 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3675 (md_parse_option): No -a64 without BFD64.
3676 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3677 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3679 2002-09-04 Nick Clifton <nickc@redhat.com>
3681 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3682 instructions into the hash table if the target cpu is the BookE32.
3684 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3686 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3689 2000-08-28 Catherine Moore <clm@redhat.com>
3691 * tc-v850.c (v850_relax): Declare.
3692 (v850_longcode): New routine.
3693 (v850_handle_align): New routine.
3694 (md_pseudo_table): Add longcall and longjump.
3695 (md_parse_option): Check for relax option.
3696 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3697 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3698 (md_apply_fix3): Likewise.
3699 (v850_force_relocation): Likewise.
3700 (v850_comm): Change the current section.
3701 (md_assemble): Ensure that the correct value is put in the
3703 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3704 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3705 Remove redundant v850ea support.
3706 * tc-v850.h (HANDLE_ALIGN): Define.
3707 (v850_handle_align): Declare.
3708 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3710 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3712 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3713 * configure: Regenerate.
3714 * NEWS: Mention new port.
3716 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3718 * config/obj-coff.c: Add sdef definition.
3719 * config/obj-coff.h: Add tic4x include file and set
3721 * config/tc-tic4x.c: New file.
3722 * config/tc-tic4x.h: New file.
3724 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3726 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3727 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3728 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3729 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3730 (RELOC_ENUM): Define.
3731 (fix_new_internal): Use RELOC_ENUM.
3732 (fix_new, fix_new_exp): Likewise.
3733 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3734 Replace gotos with continue.
3735 (write_relocs): Formatting. Avoid symbol loops in
3736 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3737 errors, and error number in other cases.
3738 (fixup_segment): Remove param names from prototype. Rename
3739 "this_segment_type" to "this_segment". Update linkrelax comment.
3740 Remove "size, "place" and "where" local vars. Formatting. Update
3741 "no symbol" comment. Remove #if 0 and #if 1.
3743 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3745 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3747 * dwarf2dbg.c: Always include dwarf2dbg.h.
3748 (dwarf2_directive_file): Adjust dummy version args.
3749 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3750 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3751 when symbol values differ.
3752 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3753 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3754 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3756 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3758 * config/tc-w65.c (md_section_align): Fix typo.
3759 (md_parse_option): Return 0, not 1.
3761 2002-08-22 Nick Clifton <nickc@redhat.com>
3763 * doc/as.texinfo (Section): Note that if '@' is a comment
3764 character then another symbol is used to prefix the section's
3767 2002-08-22 Christian Groessler <chris@groessler.org>
3769 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3772 2002-08-12 Graeme Peterson <gp@qnx.com>
3774 * configure.in: Add support for sh-**-nto* target.
3775 * configure: Regenerate.
3777 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3779 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3781 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3783 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3785 (ppc_apuinfo_section_add): Define only if format is ELF.
3786 (md_assemble): Emit APUinfo section only if format is ELF.
3789 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3791 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3792 * config/tc-frv.c: Likewise.
3793 * config/tc-hppa.c: Likewise.
3794 * config/tc-ia64.c: Likewise.
3795 * config/tc-ip2k.c: Likewise.
3796 * config/tc-m68hc11.c: Likewise.
3797 * config/tc-m68k.c: Likewise.
3798 * config/tc-mmix.c: Likewise.
3799 * config/tc-mn10300.c: Likewise.
3800 * config/tc-sh.c: Likewise.
3801 * config/tc-sparc.c: Likewise.
3802 * config/tc-v850.c: Likewise.
3804 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3806 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3809 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3811 From matthew green <mrg@redhat.com>
3813 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3814 PPC_OPCODE_PPC is, except for BookE architectures.
3815 (md_parse_option): Add support for -mspe.
3816 (md_show_usage): Add -mspe.
3817 (md_parse_option): Add support for -me500 and
3818 -me500x2 to generate code for Motorola e500 core complex.
3819 (md_show_usage): Add -me500 and -me500x2.
3821 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3822 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3823 PPC_APUINFO_BRLOCK): New macros.
3825 (ppc_cleanup): New function.
3826 (ppc_apuinfo_section_add): New function.
3828 (md_assemble): Collect info and write the APUinfo section.
3830 * config/tc-ppc.h (md_cleanup): Define.
3831 (ppc_cleanup): Export.
3832 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3834 2002-08-17 Stan Cox <scox@redhat.com>
3836 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3837 config/tc-mips.c (s_change_section): New function to support
3838 IRIX .section pseudo-op.
3840 2002-08-16 Nick Clifton <nickc@redhat.com>
3842 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3844 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3846 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3847 the fix-up against on the right frag.
3848 (s_cpsetup): Likewise. Parse third argument as expression, to
3849 handle global symbols and forward/backward labels correctly.
3851 2002-08-14 Nick Clifton <nickc@redhat.com>
3853 * read.c (stringer): Catch attempts to create strings in the abs
3856 * config/tc-alpha.c: Fix compiling for COFF targets.
3857 Some minor formatting tidyups.
3859 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3861 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3862 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3863 according to the reloc.
3864 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3865 (TC_FORCE_RELOCATION): Define.
3866 (tc_m68hc11_force_relocation): Declare.
3868 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3869 (s_m68hc11_relax): New function for relax group.
3870 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3871 beginning of jump instruction.
3872 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3873 address computation.
3874 (tc-gen_reloc): Update.
3875 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3877 (tc_m68hc11_force_relocation): New function, handle new relocs.
3878 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3879 reloc for the linker relax pass.
3880 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3883 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3885 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3886 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3887 (s_m68hc11_mode): New function for .mode pseudo op.
3888 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3890 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3891 (m68hc11_elf_final_processing): Declare.
3893 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3895 * config/tc-m68hc11.c (md_begin): Take into account additional
3896 page operand for call instruction.
3897 (print_opcode_format): Likewise.
3898 (check_range): Likewise for page range checking.
3899 (get_operand): Don't skip a possible comma in operands.
3900 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3901 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3902 (fixup24): New to handle call reloc.
3903 (build_insn): Handle missing page operand for call instruction.
3905 (md_apply_fix3): Take into account new relocs.
3906 (get_operand): Fix the mode for indexed indirect addressing.
3907 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3909 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3911 * config/tc-mips.c (mips_ip): Don't work out the value of
3912 constant %hi()s here.
3914 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3916 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3917 for ELF, and don't bother checking ELF relocs when non-ELF.
3918 (i386_immediate): Allow absolute_section expressions for aout.
3919 (i386_displacement): Likewise. Also test bfd_is_com_section.
3920 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3921 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3922 not when fx_addsy. Remove dead code.
3924 2002-08-09 Graeme Peterson <gp@qnx.com>
3926 * configure.in: Add support for ppc-*-nto* target.
3927 * configure: Regenerate.
3929 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3931 * config/tc-i386.h: Reorganize.
3933 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3935 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3936 immediate offset in "dla" and "la" expansions.
3938 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3940 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3941 Remove "bfd_gas=yes" from target table when covered later.
3942 Consolidate some entries.
3943 * configure: Regenerate
3945 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3947 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3948 at start of insn, pass it to output_disp and output_imm.
3949 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3950 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3952 (output_imm): Added arguments. Compute properly addend for
3954 (md_apply_fix3): Remove R_386_GOTPC handling.
3956 2002-08-06 George France <france@handhelds.org>
3958 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3959 and m21264b processor names and cpu types.
3960 * doc/c-alpha.texi: Documented new types.
3962 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3964 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3966 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3968 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3969 handling to BFD_RELOC_MIPS16_GPREL.
3971 2002-08-01 Nick Clifton <nickc@redhat.com>
3973 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3974 pool is computed using signed arithmetic so that proper sign
3975 extension is performed if X_add_number is a 64-bit integer.
3977 2002-08-01 H.J. Lu <hjl@gnu.org>
3978 Daniel Jacobowitz <drow@mvista.com>
3980 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3981 .debug_line section unless it has line information.
3983 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3985 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3986 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3987 Allow default displacement size to be an option "--disp-size-default".
3988 (md_number_to_disp): Make error messages include value. Use %d to
3989 print integers, not %s.
3990 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3991 get duplicate messages sometimes.
3992 (convert_iif): Grow frag to max possible instruction size. Avoid
3993 creating unnecessary fixes.
3994 (md_number_to_field) Add prototype.
3995 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3996 prototypes and make static.
3997 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3998 (evaluate_expr): Use resultP argument instead of exprP global.
3999 (get_addr_mode): Quiten compiler warnings.
4000 (encode_operand): eliminate unused variables. Quiten compiler
4001 warnings. Eliminate nul character in format strings.
4002 (parse): argc is unsigned.
4003 (reloc): Type cast index to quieten compiler.
4004 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4005 (md_convert_frag): Note unused parameters. Remove unused
4007 (md_create_long_jump, md_create_short_jump,
4008 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4011 2002-07-31 Nick Clifton <nickc@redhat.com>
4013 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4014 of the PDP-11 and 2.11BSD a.out support.
4016 2002-07-31 Momchil Velikov <velco@fadata.bg>
4018 * config/tc-v850.c (md_assemble): Fix range check for immediate
4021 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4023 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4024 to Broadcom SB-1 core support.
4026 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4028 * config/tc-mips.c (mips_target_format): Fix formatting.
4029 Add recognition of n32 ABI formats.
4031 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4033 * tc-mips.c (load_address): Don't clobber $at when loading a
4034 64-bit address in non-PIC code if noat is in effect.
4037 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4039 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4040 used in division/multiply macro expansions similarly to how they
4041 are used in the variants with break instructions.
4044 2002-07-30 Graeme Peterson <gp@qnx.com>
4046 * configure.in: Add support for arm-*-nto target.
4047 * configure: Regenerate.
4049 2002-07-30 Nick Clifton <nickc@redhat.com>
4051 * config/tc-arm.c (struct literal_pool): Add fields to allow
4052 multiple literal pools to be maintained.
4053 (find_literal_pool): New function.
4054 (find_or_make_literal_pool): New function.
4055 (add_to_literal_pool): Use find_or_make_literal_pool.
4056 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4058 (s_ltorg): Use find_literal_pool.
4059 (arm_cleanup): Dump all literal pools.
4060 * doc/c-arm.texi: Document new behaviour of only dumping literal
4063 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4065 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4066 rather than PPC_OPCODE_32 for powerpc64*.
4068 2002-07-25 Nick Clifton <nickc@redhat.com>
4070 * po/es.po: Updated Spanish translation.
4071 * po/fr.po: Updated French translation.
4073 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4075 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4076 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4077 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4078 * configure, config.in: Regenerate.
4079 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4080 (mips_set_options): Remove "abi" field.
4081 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4084 (mips_arch_string, mips_arch_info): New vars.
4085 (mips_tune_string, mips_tune_info): New vars.
4086 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4087 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4088 (mips_isa_to_str, mips_cpu_to_str): Remove.
4089 (mips_ip): If the selected architecture is a generic ISA rather
4090 than a processor, only mention the ISA level in error messages.
4091 (OPTION_MCPU): Remove.
4093 (md_longopts): Add -mfp64, remove -mcpu.
4094 (mips_set_option_string): New fn.
4095 (md_parse_option): Make -mipsN update file_mips_isa rather than
4096 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4097 Don't let -mgp32 and -mfp32 change the ABI.
4098 (show): Move to end of file. Constify string argument.
4099 (md_show_usage): Move to the end of the file. Read available
4100 architectures from mips_cpu_info_table.
4101 (mips_set_architecture): New fn.
4102 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4103 is an alias for -march=mipsN. Don't change the ABI based on other
4104 flags. Infer the register size from the ABI as well as the
4105 architecture. Complain about more conflicting arguments.
4106 Unify logic with GCC.
4107 (s_mipsset): Don't change the ABI.
4108 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4109 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4110 "mipsN"-type entries. Remove entries that vary only in the
4111 manufacturer's prefix, or that have "000" replaced by "k".
4112 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4113 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4114 (mips_parse_cpu): New fn.
4115 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4116 (mips_cpu_info_from_isa): Minor formatting tweak.
4118 2002-07-24 Nick Clifton <nickc@redhat.com>
4120 * po/sv.po: Updated Swedish translation.
4121 * po/es.po: Updated Spanish translation.
4123 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4125 * Makefile.am: Run "make dep-am".
4126 * Makefile.in: Regenerate.
4127 * doc/Makefile.in: Regenerate.
4128 * config.in: Regenerate.
4129 * po/POTFILES.in: Regenerate.
4131 2002-07-23 Nick Clifton <nickc@redhat.com>
4133 * po/fr.po: Updated French translation.
4135 2002-07-23 Nick Clifton <nickc@redhat.com>
4137 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4140 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4142 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4143 instead of S_IS_EXTERN.
4144 (md_estimate_size_before_relax): Likewise.
4145 (mips_fix_adjustable): Likewise.
4147 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4149 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4151 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4152 Nick Clifton <nickc@redhat.com>
4154 * cond.c (s_ifdef): Treat a referenced but not yet defined
4155 symbol as if it were undefined, in exactly the same way as
4158 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4159 consider referenced bug not yet defined symbols to be
4162 2002-07-18 Denis Chertykov <denisc@overta.ru>
4163 Frank Ch. Eigler <fche@redhat.com>
4164 Alan Lehotsky <alehotsky@cygnus.com>
4165 John Healy <jhealy@redhat.com>
4166 Jeff Johnston <jjohnstn@redhat.com>
4168 * configure.in: Add ip2k configuraton.
4169 * configure: Regenerate.
4170 * Makefile.am: Add ip2k configuraton.
4171 * Makefile.in: Regenerate.
4172 * configure: Regenerate.
4173 * Makefile.in: Regenerate.
4174 * config/tc-ip2k.c: New file.
4175 * config/tc-ip2k.h: New files.
4176 * NEWS: Mention new support.
4177 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4178 * doc/Makefile.in: Regenerate.
4179 * doc/all.texi: Set IP2K
4180 * doc/as.texinfo: Add IP2K description.
4181 * doc/c-ip2k.texi: New file.
4183 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4185 * NEWS: Reformat to match style of other NEWS files.
4187 2002-07-17 Jan Hubicka <jh@suse.cz>
4189 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4191 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4193 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4195 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4197 * NEWS: Add 'Changes in 2.13'.
4199 2002-07-15 Matt Fredette <fredette@netbsd.org>
4201 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4203 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4205 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4206 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4209 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4211 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4212 (ppc_frob_file_before_adjust): New function.
4213 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4214 (ppc_elf_frob_symbol): Don't declare.
4215 (tc_frob_file_before_adjust): Define.
4216 (ppc_frob_file_before_adjust): Declare.
4218 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4219 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4222 (ppc_xcoff64): Rename to ppc_obj64.
4223 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4224 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4225 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4227 (ppc_target_format): Use ppc_obj64 to select format.
4228 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4229 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4230 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4231 (tc_frob_symbol): Likewise.
4232 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4233 BFD_DEFAULT_TARGET_SIZE.
4235 (ppc_is_toc_sym): Likewise.
4236 (md_apply_fix3): Likewise.
4237 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4238 BFD_DEFAULT_TARGET_SIZE.
4239 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4240 (tc_frob_symbol): Likewise.
4242 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4244 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4245 (mips_ip): Likewise.
4247 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4249 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4250 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4251 (md_apply_fix3): Formatting. Remove redundant test.
4252 (tc_gen_reloc): Remove redundant code.
4253 (tc_i386_force_relocation): Delete. Movy body of function to..
4254 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4256 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4258 * configure.in: Add hppa-*-openbsd* target, change
4259 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4261 * configure: Regenerate.
4263 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4265 * config/tc-mips.c (macro): Shift the 32-bit address range
4266 accessible with a lone "lui" down by 32768.
4268 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4270 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4271 instead of "dadd" in address calculations.
4274 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4276 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4278 (md_assemble): Instead, zap the suffix here.
4280 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4282 * NEWS: Remove next release number until the release is actually
4285 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4287 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4289 * Makefile.in: Regenerate.
4291 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4293 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4294 to symbols in merge sections, even non pc-relative ones.
4296 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4298 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4300 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4302 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4303 .softregs and .eeprom.
4305 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4307 * NEWS: Note the next release is 2.13.
4309 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4311 * po/tr.po: New translation imported.
4313 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4315 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4316 (ecoff_directive_def): Likewise.
4317 (ecoff_directive_tag): Likewise.
4318 * listing.c (file_info): Likewise.
4319 * hash.c (what): Likewise.
4321 2002-06-25 H.J. Lu <hjl@gnu.org>
4323 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4324 * Makefile.in: Regenerated.
4326 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4328 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4329 (assemble_ppi): Generate warning if the same register is used
4330 twice as destination in the same padd / pmuls instruction.
4332 2002-06-18 Dave Brolley <brolley@redhat.com>
4334 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4335 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4336 * configure.in: Support frv-*-*.
4337 * Makefile.am (CPU_TYPES): Add frv.
4338 (TARGET_CPU_CFILES): Add tc-frv.c.
4339 (TARGET_CPU_HFILES): Add tc-frv.h.
4340 (DEPTC_frv_coff): New variable.
4341 (DEPTC_frv_elf): New variable.
4342 (DEPOBJ_frv_coff): New variable.
4343 (DEPOBJ_frv_elf): New variable.
4344 (DEP_frv_coff): New variable.
4345 (DEP_frv_elf): New variable.
4346 * tc-frv.c: New file.
4347 * tc-frv.h: New file.
4349 2002-06-17 Catherine Moore <clm@redhat.com>
4351 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4353 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4355 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4357 2002-06-17 Tom Rix <trix@redhat.com>
4359 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4361 2002-06-14 H.J. Lu <hjl@gnu.org>
4362 Daniel Jacobowitz <drow@mvista.com>
4364 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4365 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4366 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4367 and new_logical_line for the first .file directive.
4368 * read.c (s_app_file_string): New function.
4369 (s_app_file): Call it.
4370 * read.h (s_app_file_string): Add declaration.
4372 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4374 * configure.in: Remove MIPS_STABS_ELF.
4375 * configure: Regenerated.
4376 * config.in: Regenerated.
4377 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4379 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4381 (pdr_seg): Declare unconditionally.
4382 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4383 (s_mips_end): Likewise. Generate stabs function markers.
4384 (s_mips_ent): Generate stabs function markers.
4385 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4387 (s_mips_mask): Likewise.
4388 (mips_flag_mdebug): New.
4389 (md_longopts): Add "mdebug" and "no-mdebug".
4390 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4391 (mips_after_parse_args): Set mips_flag_mdebug.
4392 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4394 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4396 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4397 value twice for RELA relocations.
4399 2002-06-12 Ben Elliston <bje@redhat.com>
4401 * symbols.c (resolve_symbol_value): Initialise final_val.
4403 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4405 2002-06-11 Tom Rix <trix@redhat.com>
4407 * config/tc-ppc.c (ppc_subseg_align): Delete.
4408 (ppc_change_csect): Default csect align is 2.
4409 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4411 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4413 * config/tc-avr.c (mcu_types): Update.
4415 2002-06-08 Matt Thomas <matt@3am-software.com>
4417 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4418 (vax-*-netbsd*): New targets.
4419 * configure: Regenerate.
4420 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4421 * config/tc-vax.c: Add support for ELF and PIC.
4422 (flag_want_pic): New flag.
4423 (float_cons): Fix prototype.
4424 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4425 (md_assemble): Introduce a new is_absolute local, and use it
4426 rather than repeating the test. Make fatal errors actually
4427 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4428 Add support for ELF. Add support for PIC.
4429 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4430 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4432 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4433 optional for a.out, and not allowed for VMS. Adjust all callers.
4434 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4435 (md_create_long_jump): Likewise.
4436 (md_undefined_symbol): Likewise.
4437 (md_section_align): Likewise.
4438 (md_shortopts): Allow -k and -K for ELF.
4439 (md_parse_option): Set flag_want_pic if -k or -K.
4440 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4441 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4442 * config/tc-vax.h (tc_headers_hook): Remove.
4443 (TARGET_FORMAT): Set according to object format and target
4445 (BFD_ARCH, TARGET_ARCH): Define.
4446 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4447 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4448 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4449 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4451 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4453 * Makefile.am: Run "make dep-am".
4454 * Makefile.in: Regenerate.
4456 * as.c: Replace CONST with const.
4457 * write.c: Likewise.
4458 * config/obj-coff.c: Likewise.
4459 * config/tc-a29k.c: Likewise.
4460 * config/tc-arm.c: Likewise.
4461 * config/tc-dlx.c: Likewise.
4462 * config/tc-h8300.c: Likewise.
4463 * config/tc-h8500.c: Likewise.
4464 * config/tc-i370.c: Likewise.
4465 * config/tc-i860.c: Likewise.
4466 * config/tc-i960.c: Likewise.
4467 * config/tc-m68hc11.c: Likewise.
4468 * config/tc-m68k.c: Likewise.
4469 * config/tc-m88k.c: Likewise.
4470 * config/tc-mcore.c: Likewise.
4471 * config/tc-mips.c: Likewise.
4472 * config/tc-ns32k.c: Likewise.
4473 * config/tc-pdp11.c: Likewise.
4474 * config/tc-pj.c: Likewise.
4475 * config/tc-s390.c: Likewise.
4476 * config/tc-sh.c: Likewise.
4477 * config/tc-sparc.c: Likewise.
4478 * config/tc-tahoe.c: Likewise.
4479 * config/tc-tic80.c: Likewise.
4480 * config/tc-v850.c: Likewise.
4481 * config/tc-vax.c: Likewise.
4482 * config/tc-w65.c: Likewise.
4483 * config/tc-z8k.c: Likewise.
4485 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4487 Based on patch from Matt Green:
4488 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4489 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4490 (s_mips_loc): New function.
4491 (mips_nonecoff_pseudo_table): Call them.
4492 (append_insn): Call dwarf2_emit_insn.
4494 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4496 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4498 (file_ase_mips16): New veriable.
4499 (mips_eabi64): Remove.
4500 (CPU_HAS_MIPS16): New define.
4501 (CPU_HAS_MDMX): Fix data type.
4502 (md_begin): Code cleanup. Use file_ase_mips16.
4503 (mips_elf_final_processing): Handle mips16 header flag.
4504 Handle EABI flag without intermediate variable.
4506 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4508 * doc/as.texinfo: Update MIPS documentation.
4510 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4512 * config/tc-mips.c: Add define for $zero register.
4513 (md_begin): Add $zero as alias name for $0.
4514 (insn_uses_reg): Use ZERO define.
4515 (mips_ip): Add $zero as alias name for $0.
4516 (mips16_ip): Likewise.
4517 (s_cplocal): Demand empty rest of input line.
4518 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4519 names. Use ZERO define. Fix input_line_pointer progress.
4521 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4523 * symbols.c: Replace CONST by const throughout.
4524 (symbol_find_exact): Split out from..
4525 (symbol_find_base): ..here.
4526 * symbols.h: Replace CONST by const throughout.
4527 (symbol_find_exact): Declare.
4528 * config/obj-elf.c: #include "struc-symbol.h".
4529 (elf_frob_file): If group name matches an exported symbol, use that
4530 symbol for the signature and ".group" as the section name.
4532 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4534 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4537 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4539 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4540 and mips_opts.ase_mdmx if they are uninitialized.
4542 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4544 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4545 (hppa_force_relocation): Check if a stub just before the start symbol
4546 of the last call_info is reachable before forcing relocation. Fix
4549 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4551 * config/tc-mips.c (mips_after_parse_args): New function.
4552 (md_begin): Move processing of defaults to mips_after_parse_args.
4553 config/tc-mips.h (md_after_parse_args): Define.
4555 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4557 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4558 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4559 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4560 * configure: Regenerate.
4561 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4564 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4566 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4568 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4570 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4571 linkonce flag. Print all warnings.
4572 (obj_elf_section): Parse ",comdat" for groups.
4573 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4574 consistency of comdat flag.
4576 2002-06-02 Richard Henderson <rth@redhat.com>
4578 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4579 with LITERALs without sequence numbers.
4581 2002-06-01 Richard Henderson <rth@redhat.com>
4583 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4584 Rename them LITUSE_ALPHA_*.
4586 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4588 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4589 accept parentheses enclosed register lists.
4591 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4593 * Makefile.am: Run "make dep-am".
4594 * Makefile.in: Regenerate.
4595 * po/POTFILES.in: Regenerate.
4597 2002-05-31 Graeme Peterson <gp@qnx.com>
4599 * configure.in: Add i386-*-nto-qnx*.
4600 * configure: Regenerate.
4602 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4604 * config/tc-mips.c (mips_ip): Use unsigned long values for
4607 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4609 * config/tc-mips.c (s_cpsetup): Fix initialization of
4610 mips_cpreturn_register and mips_cpreturn_offset.
4612 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4614 * config/tc-mips.c (s_cpsetup): Fix comment.
4616 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4618 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4619 (mips_ip): Likewise.
4620 (mips16_ip): Likewise.
4621 (tc_get_register): Likewise.
4623 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4624 Ed Satterthwaite <ehs@broadcom.com>
4626 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4627 (mips_opts): Initialize "ase_mdmx" member.
4628 (file_ase_mdmx): New variable.
4629 (CPU_HAS_MDMX): New macro.
4630 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4631 based on command line options and configuration defaults.
4632 (macro_build): Note in comment that use of MDMX in macros is
4633 not currently allowed.
4634 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4635 "Z" MDMX operand types.
4636 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4637 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4639 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4640 Add support for "-mdmx" and "-no-mdmx" options.
4641 (OPTION_ELF_BASE): Move to accomodate new options.
4642 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4643 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4644 file_ase_mdmx was set.
4645 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4646 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4649 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4651 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4652 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4653 command line switch conforming to gcc conventions.
4654 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4656 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4658 * config/tc-mips.c (macro_build_jalr): New Function.
4659 (md_begin): NewABI uses big GOTs.
4660 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4661 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4662 (load_address): Add some NewABI PIC support.
4664 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4665 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4667 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4669 * config/tc-mips.c (load_address): Use mips_gp_register instead
4670 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4672 (macro): Use mips_gp_register instead of hardcoded value.
4674 2002-05-30 Richard Henderson <rth@redhat.com>
4676 * expr.h (operatorT): Add O_md17..O_md32.
4677 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4678 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4679 O_tprelhi, O_tprello, O_tprel): New.
4680 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4681 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4682 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4683 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4684 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4685 (md_apply_fix3): Handle TLS relocations.
4686 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4687 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4688 associated TLS reloc. Check lituse_tls relocs match up.
4689 (emit_insn): Handle TLS relocations.
4692 * doc/c-alpha.texi: Add docs for tls relocations.
4694 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4696 * config/tc-mips.c (mips_gprel_offset): New variable.
4697 (s_gpvalue): Use it.
4699 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4701 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4702 write-write conflicts.
4703 (md_assemble): Reformat introductory comment.
4704 (parallel_ok): Prevent packing only if the first
4705 instruction cannot be packed.
4707 2002-05-30 Jason Eckhardt <jle@redhat.com>
4708 Tom Rix <trix@redhat.com>
4710 * config/tc-d10v.c (build_insn): Check for immediates.
4712 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4714 * config/tc-mips.c: Replace GP in comments by $gp.
4715 (mips_big_got): Initialize.
4716 (mips_trap): Initialize.
4717 (load_address): Use mips_gp_register instead of hardcoded value.
4718 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4719 (macro): Use mips_gp_register instead of hardcoded value.
4720 (macro2): Change load_address calls.
4721 (md_pcrel_from): Comment formatting.
4722 (s_cpload): Use mips_gp_register instead of hardcoded value.
4723 (s_cprestore): Likewise. Comment formatting.
4724 (s_gpword): Fix data type.
4725 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4726 (nopic_need_relax): Replace GP in comments by $gp.
4727 (mips_elf_final_processing): Better comment.
4729 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4731 * configure.in: Add DLX configuraton
4732 * Makefile.am: Add DLX configuraton
4733 * configure: Regenerate.
4734 * Makefile.in: Regenerate.
4735 * config/tc-dlx.c: New file.
4736 * config/tc-dlx.h: New files.
4737 * NEWS: Mention new support.
4739 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4741 * config/obj-coff.c (write_object_file): Add missing semicolon.
4743 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4745 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4746 by the define. Remove superfluous check of mips_opts.mips16.
4747 (append_insn): Likewise. Canonicalize variable increments.
4748 (macro_build): Canonicalize variable increments.
4749 (macro_build_lui): Likewise.
4750 (load_register): Likewise.
4751 (load_address): Move pointer initialization.
4752 (macro): Move pointer to a more local scope. Canonicalize variable
4753 increments. Better comments. Replace magic constant for RA by the
4755 (macro2): Replace magic constant for RA by the define. Canonicalize
4756 variable increments.
4757 (mips_ip): Canonicalize variable increments.
4758 (mips16_ip): Replace magic constant for RA by the define.
4759 (my_getSmallParser): Canonicalize variable increments/decrements.
4760 (my_getPercentOp): Likewise.
4761 (my_getSmallExpression): Likewise.
4762 (s_align): Likewise.
4763 (s_mipsset): Likewise.
4764 (s_cpsetup): Likewise.
4765 (s_insn): Remove superfluous check of mips_opts.mips16.
4766 (s_mips_stab): Likewise.
4767 (mips_handle_align): Canonicalize variable increments.
4768 (s_mips_ent): Likewise.
4769 (s_mips_end): Add comment.
4771 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4773 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4774 * configure: Regenerate.
4776 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4778 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4779 * Makefile.in: Regenerate.
4780 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4781 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4782 * configure: Regenerate.
4783 * as.h: Use #include "" instead of <> for local header files.
4784 * flonum-konst.c: Likewise.
4785 * flonum-mult.c: Likewise.
4787 * listing.c: Likewise.
4788 * config/tc-ia64.h: Likewise.
4789 * config/tc-v850.h: Likewise.
4791 2002-05-24 TAMURA Kent <kent@netbsd.org>
4793 * configure.in: Add a target for i386-netbsdpe.
4794 * configure: Regenerate.
4796 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4798 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4799 (obj_elf_common): Call elf_common.
4800 (obj_elf_tls_common): New function.
4801 (elf_pseudo_tab): Support .tls_common.
4802 (special_sections): Add .tdata and .tbss.
4803 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4805 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4806 (obj_elf_parse_section_letters): Include T in error message.
4807 * config/tc-ppc.c (ppc_section_letter): Likewise.
4808 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4809 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4811 * config/tc-sparc.c (md_apply_fix3): Likewise.
4812 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4813 Define them if not BFD_ASSEMBLER.
4814 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4816 (md_apply_fix3): Add TLS relocs.
4817 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4818 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4819 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4820 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4821 (ia64_elf_section_letter): Include T in error message.
4822 (md_begin): Support TLS operators.
4823 (md_operand): Likewise.
4824 (ia64_gen_real_reloc_type): Support TLS relocs.
4825 * write.c (adjust_reloc_syms): Don't change symbols in
4826 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4828 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4830 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4831 round the relocation up rather than down.
4833 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4835 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4837 * doc/as.texinfo: Document that the COFF version of .section
4838 ignores the 'a' flag.
4840 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4842 * config/tc-alpha.c (assemble_tokens): Protect use of
4843 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4845 * write.c (size_seg): Check adjustment to last frag.
4846 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4848 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4849 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4850 (write_object_file): Invoke md_do_align if available, and use
4851 frag_align_code on text sections.
4852 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4853 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4854 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4855 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4856 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4859 2002-05-22 H.J. Lu <hjl@gnu.org>
4861 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4864 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4866 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4869 2002-05-22 H.J. Lu <hjl@gnu.org>
4871 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4872 for one .loc for compiler.
4874 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4876 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4879 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4881 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4882 Optimize the rotate by zero case.
4884 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4886 * configure.in: Remove accidental enabling of bfd_gas=yes for
4888 * configure: Regenerate.
4890 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4892 * app.c: Fix formatting.
4894 * ehopt.c: Likewise.
4896 * input-file.c: Likewise.
4897 * listing.c: Likewise.
4898 * macro.h: Likewise.
4899 * stabs.c: Likewise.
4900 * symbols.c: Likewise.
4902 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4904 * config/obj-generic.c: Delete file.
4905 * config/obj-generic.h: Likewise.
4907 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4909 * config/tc-avr.c (mcu_types): Update for new devices.
4911 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4913 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4915 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4917 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4918 worked sometimes by accident. Fix copy&paste comment.
4920 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4922 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4923 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4924 (mips_elf_final_processing): Let n32 use .reginfo.
4926 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4928 * config/tc-mips.c (append_insn): Fix too small range of variable.
4930 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4932 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4933 listing_prev_line().
4935 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4937 * config/tc-arm.c (md_assemble): Remove redundant call to
4940 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4943 * stabs.c (s_stab_generic): Fix grammatical error in warning
4946 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4948 * write.c (subsegs_finish): Don't specially align last subseg.
4950 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4952 * stabs.c (s_stab_generic): Warn about a description field that is
4955 * config/obj-coff.c: Fix compile time warnings when compiling
4956 without BFD_ASSEMBLER defined.
4959 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4961 (md_pcrel_from_section): Use md_pcrel_from().
4963 2002-05-11 Bruno Haible <bruno@clisp.org>
4965 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4966 by dwarf2_directive_loc, instead of calling dwarf2_where.
4968 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4970 * config/obj-coff.h: Fix formatting.
4971 * config/tc-mcore.c: Likewise.
4972 * config/tc-mn10300.c: Likewise.
4973 * config/tc-openrisc.c: Likewise.
4974 * config/tc-or32.c: Likewise.
4975 * config/tc-pdp11.c: Likewise.
4976 * config/tc-ppc.c: Likewise.
4977 * config/tc-ppc.h: Likewise.
4978 * config/tc-sh64.c: Likewise.
4979 * config/tc-sh.c: Likewise.
4980 * config/tc-tic54x.c: Likewise.
4981 * config/tc-xstormy16.c: Likewise.
4982 * config/tc-xstormy16.h: Likewise.
4984 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4986 * config/obj-coff.c: Fix formatting.
4987 * config/obj-elf.c: Likewise.
4988 * config/tc-alpha.c: Likewise.
4989 * config/tc-arm.c: Likewise.
4990 * config/tc-d10v.c: Likewise.
4991 * config/tc-d30v.c: Likewise.
4992 * config/tc-h8300.c: Likewise.
4993 * config/tc-hppa.c: Likewise.
4995 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4997 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4998 reloc when no_cond_jump_promotion.
5000 2002-05-08 Jim Wilson <wilson@redhat.com>
5002 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5003 current variable part of frag.
5005 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5007 * config/tc-mmix.c: Fix formatting.
5008 * config/tc-mmix.h: Likewise.
5010 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5012 * configure: Regenerate.
5014 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5016 * config/tc-m68k.c: Fix formatting.
5018 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5020 * Makefile.am: Honour DESTDIR.
5021 * Makefile.in: Regenerate.
5023 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5025 * config/tc-ia64.c: Fix formatting.
5026 * config/tc-ia64.h: Likewise.
5028 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5030 * config/tc-mips.c: Fix formatting.
5031 * config/tc-s390.c: Likewise.
5032 * config/tc-s390.h: Likewise.
5034 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5036 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5037 information for instructions.
5039 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5041 * as.h: Fix formatting.
5044 * dwarf2dbg.c: Likewise.
5045 * frags.h: Likewise.
5047 * macro.c: Likewise.
5049 * stabs.c: Likewise.
5050 * symbols.c: Likewise.
5052 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5054 * app.c (mri_pseudo): Only declare for TC_M68K.
5056 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5057 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5058 BFD_RELOC_16_BASEREL.
5059 (md_assemble): Likewise.
5060 (md_apply_fix3): Likewise.
5062 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5064 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5065 zero into an add of zero - it is not the same.
5067 2002-05-01 Arati Dikey <aratid@kpit.com>
5069 * tc-sh.c (get_specific): Generate warning if the same
5070 destination register is used in parallel instructions.
5072 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5074 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5076 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5078 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5079 backwards to prevent cascading errors.
5081 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5083 * configure.in: Add support for powerpc-*-windiss.
5084 * configure: Regenerated.
5086 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5088 * config/tc-s390.c (md_parse_option): Formatting.
5090 * config/tc-i386.c: Formatting fixes, add missing space in error
5093 2002-04-24 Christian Groessler <chris@groessler.org>
5095 * config/tc-z8k.c (build_bytes): Add support for new cases:
5096 CLASS_IGNORE and ARG_NIM4.
5097 (md_assemble): Prevent destruction of input_line_pointer if
5098 get_operands returns failure.
5100 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5102 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5103 instructions to be generated by macros.
5105 2002-04-24 Andreas Schwab <schwab@suse.de>
5107 * config/tc-i386.c (output_jump, output_disp)
5108 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5110 (md_apply_fix3): Remember addend value for rela relocations.
5111 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5113 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5115 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5116 from previous change.
5118 2002-04-22 Eric Christopher <echristo@redhat.com>
5120 * config/tc-mips.c (macro_build): Add warning if macro instructions
5121 are expanded into a branch delay slot.
5123 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5125 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5126 numbers, gdb relies on them to detect the start of the prologue.
5128 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5130 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5131 symbols in merge sections.
5133 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5135 * as.c (main): Don't reference _bfd_chunksize.
5137 2002-04-15 Tom Rix <trix@redhat.com>
5139 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5140 symbols in merge sections.
5142 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5144 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5145 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5146 argument for the precision.
5147 (gen_to_words): Update accordingly.
5149 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5151 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5152 BFD_VERSION_STRING unavailable.
5153 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5155 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5157 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5158 symbol_used_in_reloc_p is true.
5160 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5163 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5165 * dep-in.sed: Cope with absolute paths.
5166 * Makefile.am (dep.sed): Subst TOPDIR.
5168 * Makefile.in: Regenerate.
5170 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5172 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5173 (mips_ip): Remove unused variable.
5174 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5175 unsigned char with bfd_byte.
5176 (s_file): Remove unused variable.
5177 (s_mips_ent): Likewise.
5179 2002-04-03 Tom Rix <trix@redhat.com>
5181 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5183 (find_opcode): Fix warning in as_warn.
5184 * config/tc-d10v.h: Update Copyright.
5186 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5187 Tom Rix <trix@redhat.com>
5189 From Jeff Knaggs <jknaggs@redhat.com>
5190 * config/tc-d10v.c (check_resource_conflict): New function to
5191 check for resource conflicts.
5193 From Jason Eckhardt <jle@redhat.com>
5194 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5196 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5197 reserved control registers is used.
5198 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5201 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5202 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5203 instruction cannot be packed.
5205 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5206 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5207 write-write conflicts.
5208 (md_assemble): Reformat introductory comment.
5209 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5212 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5214 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5215 O_logical_not>): Derive final_seg from add_symbol.
5216 <O_multiply..O_logical_or>: More final_seg twiddles.
5218 2002-04-01 Jessica Han <jessica@cup.hp.com>
5220 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5223 2002-03-27 Andreas Schwab <schwab@suse.de>
5225 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5226 field for pc-relative fixups.
5227 (output_disp): Likewise.
5228 (md_estimate_size_before_relax): Likewise.
5229 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5230 pc-relative fixups in 64bit mode.
5232 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5234 * config/te-aix5.h: Typo fix.
5236 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5238 * Makefile.am: Run "make dep-am".
5239 * Makefile.in: Regenerate.
5240 * doc/Makefile.in: Regenerate.
5242 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5244 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5245 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5247 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5249 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5250 the EXTENDED bit here; report the estimate according to the
5253 2002-03-18 Tom Rix <trix@redhat.com>
5255 * configure.in: Add AIX 5 support.
5256 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5257 * config/te-aix5.h: New file. AIX 5 support.
5258 * configure: Regenerate.
5260 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5262 * po/fr.po: Updated version.
5264 2002-03-16 Andreas Jaeger <aj@suse.de>
5266 * doc/c-mips.texi (Machine Dependencies): Add new node.
5268 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5270 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5271 (mips_opts): Initialize "ase_mips3d" member.
5272 (file_ase_mips3d): New variable.
5273 (CPU_HAS_MIPS3D): New macro.
5274 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5275 based on command line options and configuration defaults.
5276 (macro_build, mips_ip): Accept MIPS-3D instructions if
5277 mips_opts.ase_mips3d is set.
5278 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5279 Add support for "-mips3d" and "-no-mips3d" options.
5280 (OPTION_ELF_BASE): Move to accomodate new options.
5281 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5282 (mips_elf_final_processing): Add a comment indicating that a
5283 MIPS-3D ASE ELF header flag should be set, when one exists.
5284 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5285 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5286 nomips3d" directives.
5288 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5290 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5291 a weak symbol in same section to be within reach.
5293 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5295 * po/fr.po: Updated version.
5297 2002-03-12 Andreas Schwab <schwab@suse.de>
5299 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5300 body record so that an error is given for misplaced .save
5303 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5305 * config/tc-i386.h (REX_OPCODE): Define.
5306 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5307 (rex_byte): typedef to int.
5308 * config/tc-i386.c: Group prototypes and vars together.
5309 Formatting fixes. Remove occurrences of "register" keyword.
5312 (mode_from_disp_size): Add INLINE keyword to prototype.
5313 (fits_in_signed_byte): Likewise.
5314 (fits_in_unsigned_byte): Likewise.
5315 (fits_in_unsigned_word): Likewise.
5316 (fits_in_signed_word): Likewise.
5317 (fits_in_unsigned_long): Likewise.
5318 (fits_in_signed_long): Likewise.
5319 (type_names): Constify.
5320 (intel_float_operand): Constify param.
5321 (add_prefix): Use REX_OPCODE.
5322 (md_assemble): Likewise. Modify for changed rex_byte.
5323 (parse_insn): Split out of md_assemble.
5324 (parse_operands): Likewise.
5325 (swap_operands): Likewise.
5326 (optimize_imm): Likewise.
5327 (optimize_disp): Likewise.
5328 (match_template): Likewise.
5329 (check_string): Likewise.
5330 (process_suffix): Likewise.
5331 (check_byte_reg): Likewise.
5332 (check_long_reg): Likewise.
5333 (check_qword_reg): Likewise.
5334 (check_word_reg): Likewise.
5335 (finalize_imm): Likewise.
5336 (process_operands): Likewise.
5337 (build_modrm_byte): Likewise.
5338 (output_insn): Likewise.
5339 (output_branch): Likewise.
5340 (output_jump): Likewise.
5341 (output_interseg_jump): Likewise.
5342 (output_disp): Likewise.
5343 (output_imm): Likewise.
5345 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5347 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5349 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5351 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5352 relocs except when BFD64.
5354 * write.c (number_to_chars_bigendian): Don't abort when N is
5355 larger than sizeof (VAL).
5356 (number_to_chars_littleendian): Likewise.
5358 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5360 * config/tc-hppa.c (md_apply_fix3): Add cast.
5361 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5364 2002-03-05 Paul Koning <pkoning@equallogic.com>
5366 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5367 (parse_ac5): New function for parsing float regs in float operand.
5368 (parse_expression): Remove attempt to make literals be octal.
5369 (parse_op_no_deferred): Support float literals.
5370 (parse_op): Reject attempts to refer to float regs.
5371 (parse_fop): New function, like parse_op but for float operand.
5372 (md_assemble): Add cases to parse float operands. Also fix
5373 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5375 2002-03-04 H.J. Lu <hjl@gnu.org>
5377 * config/obj-elf.c (special_section): Add .init_array,
5378 .fini_array and .preinit_array.
5380 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5381 .init_array and .fini_array.
5383 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5385 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5387 (obj_frob_symbol): Copy visibility.
5389 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5391 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5393 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5395 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5397 * po/es.po: Updated.
5399 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5401 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5402 only, undo the changes made on 2001-06-08, with the
5403 effect being that common or extern symbols are
5404 adjusted for embedded-PIC, but weak symbols are not.
5405 (md_estimate_size_before_relax: Likewise, with the effect
5406 that extern symbols are treated the same as weak symbols
5407 only if not embedded-PIC.
5408 (mips_fix_adjustable) Likewise, with the effect that
5409 weak or extern symbols are not adjusted for embedded-PIC.
5410 (md_apply_fix3): Tweak so that the case where value is zero
5411 is handled more correctly for embedded-PIC code.
5413 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5415 * doc/as.texinfo (Overview): Add missing @ifset IA64
5417 * configure.in (LINGUAS): Add es.po.
5418 * configure: Regenerate.
5419 * po/es.po: New file.
5421 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5423 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5424 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5425 and NO_PIC cases. Code cleanup.
5426 (macro2): Fix handling of 64bit register loads.
5428 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5430 * doc/as.texinfo: Add entry for IA64.
5431 * doc/c-ia64.texi: New file.
5433 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5435 * config/tc-hppa.c: Update copyright date.
5437 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5438 Remove references to chip manufacturers.
5439 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5441 (md_show_usage): Remove references to chip manufacturers. Mention
5443 (md_begin): Test power4 opcode flag bits.
5445 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5447 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5448 count exceeds prologue count.
5449 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5450 (unwind.label_prologue_count): New member.
5452 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5454 (get_saved_prologue_count): New function.
5455 (save_prologue_count): New function.
5456 (free_saved_prologue_count): New function.
5457 (dot_label_state): Record state label by calling save_prologue_count().
5458 (dot_copy_state): Restore prologue count by calling
5459 get_saved_prologue_count().
5460 (generate_unwind_image): Free up list of saved prologue
5461 counts by calling free_saved_prologue_counts().
5463 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5465 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5466 function declarations.
5468 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5470 * NEWS: Note that GASP is now deprecated.
5471 * Makefile.am: Do not build gasp-new by default.
5472 * Makefile.in: Regenerate.
5473 * doc/Makefile.am: Do not install gasp.info.
5474 * doc/Makefile.in: Regenerate.
5475 * gas/gasp.texi: Note that gasp is now deprecated.
5477 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5479 * NEWS: Mark 2.12 branch.
5481 2002-02-19 Tom Tromey <tromey@redhat.com>
5483 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5485 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5487 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5490 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5492 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5493 Make bit size independent of architecture switch.
5494 (md_begin): Add warning for -m64 with -Aesa.
5495 (s390_md_end): Use renamed architecture defines.
5497 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5499 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5501 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5503 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5506 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5508 * config/tc-mips.c (md_estimate_size_before_relax): Really
5509 make sure we treat weak like extern only for ELF. (Fixes
5510 patch from 2001-07-25.)
5512 2002-02-15 Ben Elliston <bje@redhat.com>
5514 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5517 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5519 * NEWS: Mention support for MMIX.
5521 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5523 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5524 a sequence of indpendent 'if' statements for easier debugging
5525 and future modification.
5527 2002-02-13 Matt Fredette <fredette@netbsd.org>
5529 * config/tc-m68k.c (md_show_usage): No longer display a
5530 hard-coded "68020" for the default CPU, instead display the
5531 canonical name of the true, configured default CPU.
5532 (m68k_elf_final_processing): Mark objects for sub-68020
5533 CPUs with the new EF_M68000 flag.
5535 2002-02-13 Andreas Schwab <schwab@suse.de>
5537 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5538 pc-relative relocations to merge sections in 64-bit mode.
5540 2002-02-13 Ben Elliston <bje@redhat.com>
5542 * NEWS: Document floating point number handling in gasp.
5543 * gasp.c: Include <assert.h> and "xregex.h".
5544 (is_flonum): New function.
5545 (chew_flownum): Likewise.
5546 (change_base): Consume flonums from the input, where possible.
5547 * doc/gasp.texi (Constants): Document floating point numbers.
5549 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5551 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5552 that implicitly use LR and RR selectors.
5554 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5556 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5557 and `epsw' as available on AM33 and above only.
5558 (other_register_name): Add logic to handle machine type encoded in
5561 2002-02-11 Tom Rix <trix@redhat.com>
5563 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5566 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5568 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5571 2002-02-11 Jan Hubicka <jh@suse.cz>
5573 * i386.c (md_assemble): Support 32bit address prefix.
5574 (i386_displacement): Likewise.
5575 (i386_index_check): Accept 32bit addressing in 64bit mode.
5577 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5579 * config/tc-sh.c (dot): Removed unused function.
5581 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5583 * Makefile.am: "make dep-am".
5584 * Makefile.in: Regenerate.
5585 * aclocal.m4: Regenerate.
5586 * config.in: Regenerate.
5587 * configure: Regenerate.
5588 * doc/Makefile.in: Regenerate.
5590 2002-02-10 Richard Henderson <rth@redhat.com>
5592 * doc/c-alpha.texi: New file.
5593 * doc/Makefile.am (CPU_DOCS): Add it.
5594 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5596 2002-02-09 Richard Henderson <rth@redhat.com>
5598 * config/tc-alpha.c (O_samegp): New.
5599 (USER_RELOC_P): Include it.
5600 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5601 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5602 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5603 (alpha_validate_fix): New.
5604 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5606 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5608 * doc/c-cris.texi: New.
5609 * doc/all.texi: @set CRIS.
5610 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5611 Include c-cris.texi.
5612 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5613 * doc/Makefile.in: Regenerate.
5615 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5617 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5618 determine if a number is a sign-extended 32-bit number.
5619 (load_register): Use IS_SEXT_32BIT_NUM.
5620 (macro): Check if load/store macro handling is using a
5621 constant 32-bit address on 64-bit address systems, and if
5622 so optimize the generation of that address.
5624 2002-02-08 Richard Henderson <rth@redhat.com>
5626 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5627 we've eliminated all foreign relocation types yet.
5628 (alpha_fix_adjustable): Likewise.
5630 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5632 Contribute sh64-elf.
5633 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5634 Stephen Clarke <Stephen.Clarke@st.com>
5635 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5636 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5637 * config/tc-sh.c (md_relax_table): Added default sizes for
5638 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5639 MOVI_16, MOVI_32 and MOVI_48.
5640 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5641 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5643 (shmedia_md_estimate_size_before_relax): Remove redundant
5644 blocks. Set fragP->fr_var even if relaxation type unchanged.
5645 Retain UNDEF_MOVI until expression decays to number.
5646 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5647 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5648 relocation types. Take fixP->fx_addnumber into account too.
5649 (shmedia_md_apply_fix): Likewise.
5650 (shmedia_md_convert_frag): Likewise.
5651 (shmedia_build_Mytes): Likewise.
5652 (sh64_consume_datalabel): Complain about nested datalabel.
5653 Support PIC relocs. Call sh_parse_name.
5654 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5655 in tc-sh.h to SHmedia reloc types.
5656 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5657 MOVI_GOTPC): New relaxation constants.
5658 (md_relax_table): Introduce relaxation directives for PIC-related
5660 (sh_PIC_related_p): Handle datalabel.
5661 (sh_check_fixup): Choose SH5 PIC relocations.
5662 (sh_cons_fix_new): Added BDF_RELOC_64.
5663 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5664 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5665 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5666 current ISA is SHmedia, get 7 bytes.
5667 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5668 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5670 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5671 shmedia_apply_fix3 and make void.
5672 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5673 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5675 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5676 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5677 2001-03-14 DJ Delorie <dj@redhat.com>
5678 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5679 * doc/Makefile.in(CPU_DOCS): Ditto.
5680 * doc/c-sh64.texi: New file.
5681 * doc/as.texinfo: Add SH64 support.
5682 2001-03-13 DJ Delorie <dj@redhat.com>
5683 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5684 A_REUSE_PREV so that its purpose is more obvious.
5685 (shmedia_build_Mytes): Ditto.
5686 2001-03-07 DJ Delorie <dj@redhat.com>
5687 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5689 (sh64_vtable_inherit): Ditto.
5690 (strip_datalabels): New, strip "datalabel" from given line.
5691 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5693 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5694 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5696 (shmedia_build_Mytes): ... to here.
5697 2001-03-06 DJ Delorie <dj@redhat.com>
5698 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5700 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5701 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5702 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5703 address by one in call to dwarf2_emit_insn.
5704 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5705 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5706 alignment handling broken by imported changes.
5707 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5708 (sh64_handle_align): Declare.
5709 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5710 (sh64_max_mem_for_rs_align_code): Declare.
5711 (enum sh64_isa_values): Moved here from tc-sh64.c.
5712 (md_do_align): Define.
5713 (sh64_do_align): Declare.
5714 (struct sh64_tc_frag_data): New.
5715 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5717 (TC_FRAG_INIT): Change to set new datatype.
5718 (struct sh64_segment_info_type): Rename member
5719 last_flushed_location to last_contents_mark. All users changed.
5720 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5721 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5722 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5723 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5724 of unsetting seen_insn.
5725 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5726 call sh64_update_contents_mark.
5727 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5728 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5729 enum sh64_isa_values.
5730 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5731 (emitting_crange): Boolean guard moved to file scope from function
5732 scope in sh64_set_contents_type.
5734 (sh64_update_contents_mark): New; most split out from
5735 sh64_flush_pending_output.
5736 (shmedia_md_end): Call sh64_update_contents_mark. Set
5737 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5738 (sh64_do_align): New function.
5739 (sh64_max_mem_for_rs_align_code): New function.
5740 (sh64_handle_align): Rename from shmedia_do_align. Make
5741 non-static. Add head comment. Emit zero bytes for n bytes modulo
5742 four. Change return-type to void.
5743 (shmedia_elf_new_section): Remove.
5744 (shmedia_md_assemble): Call sh64_update_contents_mark.
5745 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5746 new frag. Call sh64_update_contents_mark after making the new
5748 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5749 and sh_flush_pending_output.
5750 (sh64_flag_output): Also call md_flush_pending_output, but add
5751 condition on not emitting_crange.
5752 (sh64_tc_cons_fix_new): Remove.
5753 2001-01-12 Nick Clifton <nickc@redhat.com>
5754 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5755 alignment handling scheme imported from sourceware.
5756 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5757 * config/tc-sh64.h (TARGET_FORMAT): Define.
5758 (sh64_target_format): Prototype.
5759 * config/tc-sh64.c (sh64_target_mach): New function.
5760 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5761 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5762 zero_address_frag instead of copying the frag of the symbol.
5763 (shmedia_frob_file_before_adjust): Ditto.
5764 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5765 to valueT to remove signedness.
5766 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5767 headers to output_bfd. Do not evaluate symbols if final is false;
5769 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5770 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5771 to the current frag, call shmedia_md_convert_frag to emit fixups
5772 and make frag_wane neutralize the frag. Update comments.
5773 * config/tc-sh.c (md_convert_frag): Change caller of
5774 shmedia_md_convert_frag.
5775 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5776 * config/tc-sh64.h: Tweak comments and correct formatting.
5777 * config/tc-sh64.c: Ditto.
5778 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5779 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5780 for the no-relocation case.
5781 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5782 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5784 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5786 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5787 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5789 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5791 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5792 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5793 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5794 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5795 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5796 if reloc is emitted.
5797 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5798 New options plus bugfixes.
5799 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5801 (md_parse_option): Handle new options.
5802 (md_show_usage): Add blurb for new options.
5803 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5804 (sh64_expand, sh64_pt32): New variables.
5805 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5806 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5807 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5808 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5809 <resolved previously-pc-relative relocs>: Handle
5810 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5811 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5812 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5813 points to SHcompact code.
5814 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5815 SH64PCREL16)>: Check that ISA of what operand points at and
5816 PTA/PTB matches, or emit error.
5817 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5818 SHMEDIA_BFD_RELOC_PT.
5819 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5821 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5822 condition for MOVI expansion.
5823 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5824 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5826 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5828 (sh64_target_format): Error-check setting of sh64_pt32 and
5829 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5830 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5831 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5832 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5833 * config/tc-sh64.c: Improve comments.
5834 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5835 not say the linker will check correctness of PTA/PTB expansion.
5836 (shmedia_md_end): Make non-static.
5837 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5839 * config/tc-sh.c (sh_finalize): Remove.
5840 * config/tc-sh.h (md_end): Do not define.
5841 Remove prototype for sh_finalize.
5842 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5843 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5844 sh64_section_data container when storing section type in tdata
5845 field in elf_section_data.
5846 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5848 * Makefile.am: Update dependencies.
5849 * Makefile.in: Regenerate.
5850 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5851 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5852 dwarf2_emit_insn call with test on debug_type.
5853 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5854 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5855 CRT_SH5_ISA32 sticky for 64-bit.
5856 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5857 Generate .crange sections when switching ISA mode or emitting
5858 constants in same section as code.
5859 * config/tc-sh64.c: Reformat structure definitions.
5860 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5862 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5863 to emit a .cranges descriptor when contents type changes. Only
5864 emit error if changing contents type and -no-mix is in effect.
5865 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5866 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5867 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5868 sh64_flush_last_crange over sections.
5869 When checking main symbol of datalabel symbol, check for
5870 STO_SH5_ISA32, not ISA type of section in definition.
5871 (shmedia_frob_file_before_adjust): Check main symbol for
5872 STO_SH5_ISA32; don't check ISA type of section in definition.
5873 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5874 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5875 .cranges entries have been output.
5876 (shmedia_elf_new_section): Just call md_flush_pending_output.
5877 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5878 fix. Do not set tc_segment_info_data.in_code for section. Call
5879 sh64_set_contents_type for SHmedia code.
5880 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5881 false. Call md_flush_pending_output.
5882 (sh64_target_format): Check that -no-mix and
5883 -shcompact-const-crange are used in sane combination with other
5885 (shmedia_md_pcrel_from_section): Check type of fix for how to
5887 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5888 not ISA type of section in definition.
5889 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5890 hold contents-type state.
5891 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5892 (sh64_flush_pending_output): Declare.
5893 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5894 (sh64_tc_cons_fix_new): Declare.
5895 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5896 call sh64_flag_output.
5897 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5898 call sh64_set_contents_type to mark SHcompact code and set
5900 (md_longopts): New options "-no-mix" and
5901 "-shcompact-const-crange".
5902 (md_parse_option): Handle new options.
5903 (md_show_usage): Add blurb for new options.
5904 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5905 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5906 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5907 (sh64_last_insn_frag): New.
5908 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5909 to get frag for insn opcode for generating fixups; do not assume it
5911 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5913 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5915 (TC_FRAG_TYPE): Define as fragS *.
5916 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5917 (sh64_last_insn_frag): Declare.
5918 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5919 not == NULL before dereferencing.
5920 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5921 Get rid of BFD section flag and EF_SH64_ABI64.
5922 * config/tc-sh64.c (shmedia_frob_section_type): Use
5923 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5924 communicate the section as containing SHmedia code. Describe why.
5925 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5926 EF_SH64 regardless of ABI.
5927 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5928 in error message. Handle resolved expressions for
5929 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5930 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5931 (shmedia_check_limits): Handle BFD_RELOC_64.
5932 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5933 a STO_SH5_ISA32 symbol, only the BFD value.
5934 2000-12-11 Ben Elliston <bje@redhat.com>
5935 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5936 dwarf2_generate_asm_lineno.
5937 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5938 Handle PC-relative MOVI expansions with assembler relaxation.
5939 Generate PC-relative relocs from 16-bit PC-relative expressions.
5940 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5941 (shmedia_md_pcrel_from_section): ...here.
5942 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5943 turned completely resolved. Adjust relocation type for 16-bit
5944 immediate operands that has turned PC-relative. Adjust back for
5945 MD_PCREL_FROM_SECTION being applied twice.
5946 (shmedia_md_convert_frag): Always emit reloc for expression with
5947 global or weak symbol. Handle relaxation result for PC-relative
5949 (shmedia_md_estimate_size_before_relax): An expression with a weak
5950 or global symbol can not be relaxed. Break out tests for
5951 relaxable symbol into variable sym_relaxable.
5952 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5953 UNDEF_MOVI)>: Break out any PC-relative expression and change
5955 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5957 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5958 MOVI expansion. If X_op_symbol of the immediate expression is
5959 set, make an expression symbol for the argument to frag_var.
5960 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5962 (END): Adjust for new relaxations.
5963 (md_relax_table): Add entries for new relaxations.
5964 2000-12-07 Ben Elliston <bje@redhat.com>
5965 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5966 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5967 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5968 SHORI operand offsets in PT/PTA/PTB expansions.
5969 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5970 Implement DataLabel semantics.
5971 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5972 shmedia_frob_file_before_adjust.
5973 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5974 (DATALABEL_SUFFIX): Define.
5975 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5976 symbol list to update "datalabel" symbols to their main symbol
5978 (shmedia_frob_file_before_adjust): New.
5979 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5980 undefined and set STT_DATALABEL.
5981 (sh64_frob_label): Initialize TC symbol field.
5982 (sh64_consume_datalabel): Actually implement semantics. New
5983 parameter operandf, call it instead of expression.
5984 (sh64_exclude_symbol): New.
5985 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5986 to sh64_consume_datalabel.
5987 (tc_symbol_new_hook): Define to tc_frob_symbol.
5988 (TC_SYMFIELD_TYPE): Define to symbolS *.
5989 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5990 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5991 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5993 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5994 generating dwarf2 debug information.
5995 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5996 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5997 elf64-sh64 for the 64-bit ABI.
5998 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6000 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6001 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6003 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6004 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6005 (enum sh64_abi_values): New type.
6006 (enum sh64_isa_values): New type.
6007 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6008 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6009 (sh64_abi): Replace shmedia_64.
6010 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6011 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6012 (s_sh64_mode): Check validity for this target.
6013 (sh64_target_format): Initialize defaults for ISA and ABI.
6014 Fallback to old object format if no SH64 ISA or ABI has been
6016 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6017 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6018 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6019 * config/tc-sh64.h: Fix typo in comment.
6020 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6021 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6022 <PT fixups for absolute values>: Size will be longest, not
6024 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6025 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6026 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6027 and l1 to hold lowercase of two first characters. Change all
6028 remaining TO_LOWER to tolower.
6029 * config/tc-sh64.c (TO_LOWER): Delete.
6030 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6031 (md_parse_name): Define.
6032 (sh64_consume_datalabel): Declare.
6033 (DOLLAR_DOT): Define.
6034 * config/tc-sh64.c (shmedia_parse_exp): New.
6035 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6036 (shmedia_parse_reg): Remove const from src
6038 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6039 (shmedia_md_assemble): Ditto for op_end variable.
6040 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6041 Use shmedia_parse_exp, not parse_exp.
6042 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6043 parameter. All callers changed.
6044 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6046 (shmedia_parse_reg): Put first two character in local variables.
6047 Use tolower, not TO_LOWER. If no register is found and argtype
6048 indicates a control register, scan shmedia_creg_table
6050 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6051 * Makefile.am (CPU_TYPES): Add sh64.
6052 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6053 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6054 Regenerate dependencies.
6055 * Makefile.in: Regenerate.
6056 * configure.in: Add support for sh64-*-elf*.
6057 * configure: Regenerate.
6058 * config/tc-sh64.h: New.
6059 * config/tc-sh64.c: New.
6060 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6061 .mode, .isa and .uaquad.
6062 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6063 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6064 [HAVE_SH64] (END): Define as 10.
6065 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6066 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6068 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6069 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6070 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6071 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6073 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6074 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6075 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6076 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6077 SHmedia instructions. Handle state-change after switching to
6079 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6080 (md_parse_option) [HAVE_SH64]: Parse new options.
6081 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6082 (md_convert_frag) [HAVE_SH64] <default>: Call
6083 shmedia_md_convert_frag instead of abort.
6084 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6085 BFD_RELOC_SH_SHMEDIA_CODE.
6086 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6087 SHcompact or SHmedia code.
6088 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6089 shmedia_md_apply_fix instead of abort.
6090 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6091 result from calling shmedia_md_estimate_size_before_relax instead
6093 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6095 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6096 shmedia_init_reloc and do nothing more if it returns non-zero.
6097 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6098 * po/POTFILES.in: Regenerate.
6099 * po/gas.pot: Regenerate.
6101 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6103 * config/tc-sh.c (parse_at): Install the correct version of
6106 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6107 assume fixP->fx_subsy is non-NULL.
6109 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6111 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6112 A_DISP_PC_ABS, and adjust it by -4.
6113 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6115 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6116 the operand type is not A_DISP_PC_ABS.
6118 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6120 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6121 common and weak symbols. Handle common and weak symbols as
6122 undefined symbols with regards to GREG handling and merging.
6123 (mmix_frob_file): Ditto.
6125 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6127 * configure.in (hppa-*-netbsd*): New target.
6128 * configure: Regenerate.
6129 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6131 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6133 * config/tc-v850.c: Add missing prototypes amd use old-style
6134 function definitions.
6135 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6136 (sdata_section tdata_section, zdata_section, sbss_section,
6137 tbss_section, zbss_section, rosdata_section, rozdata_section,
6138 scommon_section, tcommon_section, zcommon_section,
6139 call_table_data_section, call_table_text_section): Delete.
6140 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6141 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6142 v850_call_table_data, v850_call_table_text): Delete.
6143 (struct v850_seg_entry): New.
6144 (v850_seg_table): New.
6145 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6146 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6147 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6148 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6151 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6152 recording of alignment.
6153 (md_pseudo_table): Use v850_seg.
6154 (md_begin): Don't init .call_table_data and .call_table_text here.
6155 Set v850_seg_table bss entry.
6157 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6159 Support on-demand global register allocation by passing on
6160 base-plus-offset relocs to the linker.
6161 * config/tc-mmix.c: Tweak and fix typos in comments.
6162 (allocate_undefined_gregs_in_linker): New variable.
6163 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6164 (md_longopts): Add --linker-allocated-gregs.
6165 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6166 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6167 (md_show_usage): Update text for -x. Add text for
6168 --linker-allocated-gregs.
6169 (tc_gen_reloc): Derive default value for addend from val and
6170 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6171 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6172 GREG if allocate_undefined_gregs_in_linker.
6173 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6174 --linker-allocated-gregs.
6175 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6176 --linker-allocated-gregs. Mention that it's implied by -x.
6177 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6178 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6180 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6182 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6184 * Makefile.am: Run "make dep-am"
6185 * Makefile.in: Regenerate.
6187 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6189 * config/tc-or32.c: New file.
6190 * config/tc-or32.h: New file.
6191 * configure.in: Add support for or32 targets.
6192 * configure: Regenerate.
6193 * config/obj-coff.c: Add support for or32 targets.
6194 * config/obj-coff.h: Add support for or32 targets.
6195 * Makefile.am: Add support for or32 targets.
6196 * Makefile.in: Regenerate.
6197 * NEWS: Mention support for OpenRISC.
6198 * doc/Makefile.in: Regenerate.
6199 * po/POTFILES.in: Regenerate.
6200 * po/gas.pot: Regenerate.
6202 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6204 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6207 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6209 * config/tc-mips.c (tc_gen_reloc): Arrange for
6210 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6211 their LO16 parts, even for ELF.
6213 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6215 * config/tc-i386.c: Protect definitions of true and false
6218 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6220 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6221 made because of .weak, if they are neither defined nor used in any
6224 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6226 * configure: Regenerated.
6228 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6230 * doc/Makefile.am (install): Depend on install-info.
6231 * doc/Makefile.in: Regenerate.
6233 2002-01-26 Nick Clifton <nick@redhat.com>
6235 * po/fr.po: Updated version
6237 2002-01-24 Kazu Hirata <kazu@hxi.com>
6239 * config/tc-h8300.c (check_operand): Don't print a warning
6240 when a valid 24-bit address is given to a 16-bit address
6243 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6245 * config/tc-sh.c (sh_elf_suffix): Removed.
6246 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6247 sh_end_of_match, sh_parse_name): New functions.
6248 (sh_elf_cons): Simplify.
6249 (parse_exp): Reject misplaced PIC operands.
6250 (md_undefined_symbol): Simplify.
6251 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6252 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6253 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6254 Complain if subsy remains at the end.
6255 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6256 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6258 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6260 * config/tc-mn10300.c (xr_registers): Move `pc'...
6261 (other_registers): ... here.
6263 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6265 * Makefile.am: Run "make dep-am".
6266 * Makefile.in: Regenerate.
6267 * gas/po/POTFILES.in: Regenerate.
6269 2002-01-21 DJ Delorie <dj@redhat.com>
6271 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6272 stabstr_name allocation permanent, as it will be referenced from
6275 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6277 * configure.in (ia64-*-netbsd*): New target.
6278 * configure: Regenerate.
6280 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6282 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6284 <Detailed description, ARM options>: Ditto.
6285 * doc/c-arm.texi (ARM Options): Ditto.
6287 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6289 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6290 do_mia, do_mar and do_mra respectively.
6291 (do_mav_*): Renamed from do_c_*.
6292 (mav_reg_required_here, mav_parse_offset): Renamed from
6293 cirrus_reg_required_here and cirrus_parse_offset respectively.
6294 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6296 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6297 Keith Walker <keith.walker@arm.com>
6299 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6300 (insns): Add pattern for bxj instruction.
6301 (do_bxj): New function.
6302 (arm_cpus): Add arm926ej.
6303 (arm_archs): Add armv5tej.
6305 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6307 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6309 2002-01-19 Keith Walker <keith.walker@arm.com>
6311 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6313 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6315 * NEWS: Mention new ARM command-line options and VFP support.
6317 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6319 (ARM_CEXT_MAVERICK): Similarly.
6320 (ARM_ANY): Now means any core instruction.
6321 (CPU_DEFAULT): Default to ARM_ANY.
6322 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6323 (pic_code): Declare for all object types. Make type int.
6324 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6325 (march_fpu_opt, mfpu_opt): Declare.
6326 (md_longopts): Tidy up conditional definitions.
6327 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6328 (arm_long_opts): New tables.
6329 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6330 (arm_parse_extension): New function.
6331 (md_parse_option): Rewrite using new table-driven system.
6332 (md_show_usage): Use new table-driven system.
6333 (md_begin): Calculate cpu_variant from command line option data.
6334 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6335 command-line options.
6336 * doc/c-arm.texi: Likewise.
6338 2002-01-18 Andreas Jaeger <aj@suse.de>
6340 * as.c (parse_args): Update year.
6342 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6344 * config/tc-tic54x.c (encode_address): Add a more informative
6345 warning about incorrect syntax.
6347 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6349 * po/gas.pot: Regenerate.
6351 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6353 * macro.c (get_any_string): Add no-c-format comment to prevent
6354 confusion when translating string.
6355 * gasp.c (get_any_string): Add no-c-format comment to prevent
6356 confusion when translating string.
6358 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6359 Johannes Stezenbach <js@convergence.de>
6360 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6361 matched before the shorter ones.
6362 (my_getSmallParser): Fix handling of nested parentheses in
6363 percent_op's. Code cleanup.
6364 (my_getPercentOp): New function, code from my_getSmallParser.
6365 (my_getSmallExpression): Fix handling of closing parentheses.
6366 Code cleanup. Better comments.
6368 2002-01-16 Nick Clifton <nickc@redhat.com>
6370 po/tr.po: New file: Turkish translation.
6371 configure.in (LINGUAS): Add "tr".
6372 configure: Regenerate.
6374 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6376 Support for VFP instructions
6377 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6378 (cp_address_required_here): New argument wb_ok. When false, do not
6379 accept write-back forms of addressing. Change all callers.
6380 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6381 (FPU_VFP_EXT_V2): Define.
6382 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6383 Define in terms of above.
6384 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6385 (vfp_reg): New struct.
6386 (vfp_regs): New array of registers.
6387 (insns): Add VFP instructions.
6388 (sn_table): New array of VFP single-precision register names.
6389 (dn_table): New array of VFP double-precision register names.
6390 (all_reg_maps): Add the new register tables.
6391 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6392 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6393 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6394 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6395 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6396 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6397 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6398 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6399 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6400 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6401 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6402 (do_vfp_sp_dp_cvt): New functions.
6403 (md_begin): Set soft-float flag for appropriate VFP work.
6404 (md_atof): Handle VFP-format doubles.
6405 (md_parse_option): Handle VFP command-line options.
6406 (md_show_usage): Display VFP command-line options.
6408 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6410 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6411 various command line options.
6413 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6415 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6417 (xstormy16_md_apply_fix3): Do not return a value.
6419 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6421 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6422 the -EL/-EB option that matches the target's endianness.
6423 (md_parse_option): Likewise.
6425 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6427 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6428 is not dependent on ARM_BI_ENDIAN.
6430 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6432 * tc-arm.c (all error messages): Normalize capitalization of messages.
6434 * tc-arm.h (md_operand): Delete define.
6435 * tc-arm.c (in_my_get_expression): New static variable.
6436 (my_get_expression): Set and clear it.
6437 (md_operand): New function. If called from my_get_expression
6438 put the error in inst.error.
6439 (output_inst): Now takes argument of instruction being assembled.
6440 Print it out with any error message.
6441 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6443 (end_of_line): Don't update inst.error if it is already set.
6445 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6447 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6448 op that can be translated into a mvn instruction.
6450 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6452 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6453 setting default md.flags.
6454 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6455 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6456 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6457 for 32 bit unwind info blocks.
6458 (generate_unwind_image): Add support for different types
6459 of unwind images (32 bits and/or big-endian).
6460 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6461 (ia64_target_format): Add support for hpux target formats.
6462 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6463 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6464 SHT_FINI_ARRAY elf section types.
6466 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6468 * tc-arm.c (struct reg_entry): Move before prototypes.
6469 (int_register, cp_register, fp_register): Delete.
6470 (reg_table): Delete. Replaced with ...
6471 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6472 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6473 (mav_dspsc_table): ... one table per register set.
6474 (arm_reg_hsh): Delete.
6475 (struct reg_map): New structure.
6476 (all_reg_maps): New array.
6477 (enum arm_reg_type): New enums.
6478 (build_reg_hsh): New function.
6479 (insert_reg_alias): Use hash table passed by caller. Adjust all
6481 (create_register_alias): New function, split out from ...
6482 (md_assemble): ... here.
6483 (md_begin): Build new register hash tables.
6484 (arm_reg_parse): New argument for the hash table to search. Adjust all
6486 (arm_reg_parse_any): New function.
6487 (co_proc_number): Look up the processor number in the processor hash
6489 (cirrus_regtype): Delete.
6490 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6491 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6492 (ARM_EXT_MAVERICKsc_register): Delete.
6493 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6494 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6496 (do_c_triple_4, do_c_triple_5): Delete.
6497 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6498 (do_c_quad_6): Delete.
6499 (do_c_quad_6[ab]): New functions.
6500 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6501 arguments to use new register parsing methods.
6502 (cirrus_reg_required_here): Likewise.
6503 (insns): Reclassify cirrus maverick worker functions.
6504 (cirrus_valid_reg): Delete.
6506 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6508 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6509 (sh*-*-netbsdelf*): New target.
6510 * configure: Regenerate.
6511 * tc-sh.h: Update copyright years.
6512 (TARGET_FORMAT): Add version for TE_NetBSD.
6514 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6516 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6519 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6521 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6522 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6524 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6526 * tc-mips.c (mips_cprestore_valid): New flag.
6527 (mips_frame_reg_valid): New flag.
6528 (macro) [M_JAL_2]: Check both flags.
6529 [M_JAL_A]: Likewise.
6530 (s_cprestore): Set mips_cprestore_valid.
6531 (tc_get_register): If setting mips_frame_reg, set
6532 mips_frame_reg_valid and clear mips_cprestore_valid.
6533 (s_mips_ent): Clear both flags.
6534 (s_mips_end): Clear both flags.
6536 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6538 * write.c (write_object_file): Make use of bfd_section_list_remove.
6539 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6540 * config/tc-mmix.c (mmix_frob_file): Likewise.
6542 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6544 * configure.in (i386-*-netbsdelf*): Collapse target into...
6545 (i386-*-netbsd*): ...this. Add support for x86-64.
6546 * configure: Regenerated.
6548 2002-01-03 matthew green <mrg@redhat.com>
6550 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6552 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6554 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6557 For older changes see ChangeLog-0001
6563 version-control: never