1 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
5 2002-08-27 Alan Modra <amodra@bigpond.net.au>
7 * dwarf2dbg.c: Always include dwarf2dbg.h.
8 (dwarf2_directive_file): Adjust dummy version args.
9 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
10 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
11 when symbol values differ.
12 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
13 (pseudo_set <O_subtract>): Remove unnecessary segment test.
14 * config/obj-bout.c (obj_pseudo_table): Warning fix.
16 2002-08-26 Alan Modra <amodra@bigpond.net.au>
18 * config/tc-w65.c (md_section_align): Fix typo.
19 (md_parse_option): Return 0, not 1.
21 2002-08-22 Nick Clifton <nickc@redhat.com>
23 * doc/as.texinfo (Section): Note that if '@' is a comment
24 character then another symbol is used to prefix the section's
27 2002-08-22 Christian Groessler <chris@groessler.org>
29 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
32 2002-08-12 Graeme Peterson <gp@qnx.com>
34 * configure.in: Add support for sh-**-nto* target.
35 * configure: Regenerate.
37 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
39 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
41 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
43 * config/tc-ppc.c (ppc_cleanup): Do something only if format
45 (ppc_apuinfo_section_add): Define only if format is ELF.
46 (md_assemble): Emit APUinfo section only if format is ELF.
49 2002-08-21 Alan Modra <amodra@bigpond.net.au>
51 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
52 * config/tc-frv.c: Likewise.
53 * config/tc-hppa.c: Likewise.
54 * config/tc-ia64.c: Likewise.
55 * config/tc-ip2k.c: Likewise.
56 * config/tc-m68hc11.c: Likewise.
57 * config/tc-m68k.c: Likewise.
58 * config/tc-mmix.c: Likewise.
59 * config/tc-mn10300.c: Likewise.
60 * config/tc-sh.c: Likewise.
61 * config/tc-sparc.c: Likewise.
62 * config/tc-v850.c: Likewise.
64 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
66 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
69 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
71 From matthew green <mrg@redhat.com>
73 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
74 PPC_OPCODE_PPC is, except for BookE architectures.
75 (md_parse_option): Add support for -mspe.
76 (md_show_usage): Add -mspe.
77 (md_parse_option): Add support for -me500 and
78 -me500x2 to generate code for Motorola e500 core complex.
79 (md_show_usage): Add -me500 and -me500x2.
81 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
82 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
83 PPC_APUINFO_BRLOCK): New macros.
85 (ppc_cleanup): New function.
86 (ppc_apuinfo_section_add): New function.
88 (md_assemble): Collect info and write the APUinfo section.
90 * config/tc-ppc.h (md_cleanup): Define.
91 (ppc_cleanup): Export.
92 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
94 2002-08-17 Stan Cox <scox@redhat.com>
96 * config/obj-elf.c (obj_elf_change_section): Make non-static.
97 config/tc-mips.c (s_change_section): New function to support
98 IRIX .section pseudo-op.
100 2002-08-16 Nick Clifton <nickc@redhat.com>
102 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
104 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
106 * config/tc-mips.c (macro_build_jalr): Make sure we generate
107 the fix-up against on the right frag.
108 (s_cpsetup): Likewise. Parse third argument as expression, to
109 handle global symbols and forward/backward labels correctly.
111 2002-08-14 Nick Clifton <nickc@redhat.com>
113 * read.c (stringer): Catch attempts to create strings in the abs
116 * config/tc-alpha.c: Fix compiling for COFF targets.
117 Some minor formatting tidyups.
119 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
121 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
122 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
123 according to the reloc.
124 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
125 (TC_FORCE_RELOCATION): Define.
126 (tc_m68hc11_force_relocation): Declare.
128 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
129 (s_m68hc11_relax): New function for relax group.
130 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
131 beginning of jump instruction.
132 (md_pcrel_from): Rename from md_pcrel_from_section and fix
134 (tc-gen_reloc): Update.
135 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
137 (tc_m68hc11_force_relocation): New function, handle new relocs.
138 (tc_m68hc11_fix_adjustable): New to make sure there are enough
139 reloc for the linker relax pass.
140 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
143 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
145 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
146 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
147 (s_m68hc11_mode): New function for .mode pseudo op.
148 (s_m68hc11_mark_symbol): New function for .far and .interrupt
150 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
151 (m68hc11_elf_final_processing): Declare.
153 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
155 * config/tc-m68hc11.c (md_begin): Take into account additional
156 page operand for call instruction.
157 (print_opcode_format): Likewise.
158 (check_range): Likewise for page range checking.
159 (get_operand): Don't skip a possible comma in operands.
160 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
161 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
162 (fixup24): New to handle call reloc.
163 (build_insn): Handle missing page operand for call instruction.
165 (md_apply_fix3): Take into account new relocs.
166 (get_operand): Fix the mode for indexed indirect addressing.
167 (build_indexed_byte): Fix post index byte for indexed indirect mode.
169 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
171 * config/tc-mips.c (mips_ip): Don't work out the value of
172 constant %hi()s here.
174 2002-08-10 Alan Modra <amodra@bigpond.net.au>
176 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
177 for ELF, and don't bother checking ELF relocs when non-ELF.
178 (i386_immediate): Allow absolute_section expressions for aout.
179 (i386_displacement): Likewise. Also test bfd_is_com_section.
180 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
181 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
182 not when fx_addsy. Remove dead code.
184 2002-08-09 Graeme Peterson <gp@qnx.com>
186 * configure.in: Add support for ppc-*-nto* target.
187 * configure: Regenerate.
189 2002-08-09 Alan Modra <amodra@bigpond.net.au>
191 * config/tc-i386.h: Reorganize.
193 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
195 * config/tc-mips.c (macro): Handle a register plus a 16-bit
196 immediate offset in "dla" and "la" expansions.
198 2002-08-09 Alan Modra <amodra@bigpond.net.au>
200 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
201 Remove "bfd_gas=yes" from target table when covered later.
202 Consolidate some entries.
203 * configure: Regenerate
205 2002-08-09 Jakub Jelinek <jakub@redhat.com>
207 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
208 at start of insn, pass it to output_disp and output_imm.
209 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
210 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
212 (output_imm): Added arguments. Compute properly addend for
214 (md_apply_fix3): Remove R_386_GOTPC handling.
215 * testsuite/gas/i386/gotpc.s: New.
216 * testsuite/gas/i386/gotpc.d: New.
217 * testsuite/gas/i386/i386.exp: Add gotpc test.
219 2002-08-06 George France <france@handhelds.org>
221 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
222 and m21264b processor names and cpu types.
223 * doc/c-alpha.texi: Documented new types.
225 2002-08-06 Alan Modra <amodra@bigpond.net.au>
227 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
229 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
231 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
232 handling to BFD_RELOC_MIPS16_GPREL.
234 2002-08-01 Nick Clifton <nickc@redhat.com>
236 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
237 pool is computed using signed arithmetic so that proper sign
238 extension is performed if X_add_number is a 64-bit integer.
240 2002-08-01 H.J. Lu <hjl@gnu.org>
241 Daniel Jacobowitz <drow@mvista.com>
243 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
244 .debug_line section unless it has line information.
246 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
248 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
249 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
250 Allow default displacement size to be an option "--disp-size-default".
251 (md_number_to_disp): Make error messages include value. Use %d to
252 print integers, not %s.
253 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
254 get duplicate messages sometimes.
255 (convert_iif): Grow frag to max possible instruction size. Avoid
256 creating unnecessary fixes.
257 (md_number_to_field) Add prototype.
258 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
259 prototypes and make static.
260 (struct addr_mode): Make mode and scaled_mode explicitly signed.
261 (evaluate_expr): Use resultP argument instead of exprP global.
262 (get_addr_mode): Quiten compiler warnings.
263 (encode_operand): eliminate unused variables. Quiten compiler
264 warnings. Eliminate nul character in format strings.
265 (parse): argc is unsigned.
266 (reloc): Type cast index to quieten compiler.
267 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
268 (md_convert_frag): Note unused parameters. Remove unused
270 (md_create_long_jump, md_create_short_jump,
271 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
274 2002-07-31 Nick Clifton <nickc@redhat.com>
276 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
277 of the PDP-11 and 2.11BSD a.out support.
279 2002-07-31 Momchil Velikov <velco@fadata.bg>
281 * config/tc-v850.c (md_assemble): Fix range check for immediate
284 2002-07-30 Chris Demetriou <cgd@broadcom.com>
286 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
287 to Broadcom SB-1 core support.
289 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
291 * config/tc-mips.c (mips_target_format): Fix formatting.
292 Add recognition of n32 ABI formats.
294 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
296 * tc-mips.c (load_address): Don't clobber $at when loading a
297 64-bit address in non-PIC code if noat is in effect.
300 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
302 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
303 used in division/multiply macro expansions similarly to how they
304 are used in the variants with break instructions.
307 2002-07-30 Graeme Peterson <gp@qnx.com>
309 * configure.in: Add support for arm-*-nto target.
310 * configure: Regenerate.
312 2002-07-30 Nick Clifton <nickc@redhat.com>
314 * config/tc-arm.c (struct literal_pool): Add fields to allow
315 multiple literal pools to be maintained.
316 (find_literal_pool): New function.
317 (find_or_make_literal_pool): New function.
318 (add_to_literal_pool): Use find_or_make_literal_pool.
319 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
321 (s_ltorg): Use find_literal_pool.
322 (arm_cleanup): Dump all literal pools.
323 * doc/c-arm.texi: Document new behaviour of only dumping literal
326 2002-07-26 Alan Modra <amodra@bigpond.net.au>
328 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
329 rather than PPC_OPCODE_32 for powerpc64*.
331 2002-07-25 Nick Clifton <nickc@redhat.com>
333 * po/es.po: Updated Spanish translation.
334 * po/fr.po: Updated French translation.
336 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
338 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
339 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
340 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
341 * configure, config.in: Regenerate.
342 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
343 (mips_set_options): Remove "abi" field.
344 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
347 (mips_arch_string, mips_arch_info): New vars.
348 (mips_tune_string, mips_tune_info): New vars.
349 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
350 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
351 (mips_isa_to_str, mips_cpu_to_str): Remove.
352 (mips_ip): If the selected architecture is a generic ISA rather
353 than a processor, only mention the ISA level in error messages.
354 (OPTION_MCPU): Remove.
356 (md_longopts): Add -mfp64, remove -mcpu.
357 (mips_set_option_string): New fn.
358 (md_parse_option): Make -mipsN update file_mips_isa rather than
359 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
360 Don't let -mgp32 and -mfp32 change the ABI.
361 (show): Move to end of file. Constify string argument.
362 (md_show_usage): Move to the end of the file. Read available
363 architectures from mips_cpu_info_table.
364 (mips_set_architecture): New fn.
365 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
366 is an alias for -march=mipsN. Don't change the ABI based on other
367 flags. Infer the register size from the ABI as well as the
368 architecture. Complain about more conflicting arguments.
369 Unify logic with GCC.
370 (s_mipsset): Don't change the ABI.
371 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
372 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
373 "mipsN"-type entries. Remove entries that vary only in the
374 manufacturer's prefix, or that have "000" replaced by "k".
375 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
376 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
377 (mips_parse_cpu): New fn.
378 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
379 (mips_cpu_info_from_isa): Minor formatting tweak.
381 2002-07-24 Nick Clifton <nickc@redhat.com>
383 * po/sv.po: Updated Swedish translation.
384 * po/es.po: Updated Spanish translation.
386 2002-07-23 Alan Modra <amodra@bigpond.net.au>
388 * Makefile.am: Run "make dep-am".
389 * Makefile.in: Regenerate.
390 * doc/Makefile.in: Regenerate.
391 * config.in: Regenerate.
392 * po/POTFILES.in: Regenerate.
394 2002-07-23 Nick Clifton <nickc@redhat.com>
396 * po/fr.po: Updated French translation.
398 2002-07-23 Nick Clifton <nickc@redhat.com>
400 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
403 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
405 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
406 instead of S_IS_EXTERN.
407 (md_estimate_size_before_relax): Likewise.
408 (mips_fix_adjustable): Likewise.
410 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
412 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
414 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
415 Nick Clifton <nickc@redhat.com>
417 * cond.c (s_ifdef): Treat a referenced but not yet defined
418 symbol as if it were undefined, in exactly the same way as
421 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
422 consider referenced bug not yet defined symbols to be
425 2002-07-18 Denis Chertykov <denisc@overta.ru>
426 Frank Ch. Eigler <fche@redhat.com>
427 Alan Lehotsky <alehotsky@cygnus.com>
428 John Healy <jhealy@redhat.com>
429 Jeff Johnston <jjohnstn@redhat.com>
431 * configure.in: Add ip2k configuraton.
432 * configure: Regenerate.
433 * Makefile.am: Add ip2k configuraton.
434 * Makefile.in: Regenerate.
435 * configure: Regenerate.
436 * Makefile.in: Regenerate.
437 * config/tc-ip2k.c: New file.
438 * config/tc-ip2k.h: New files.
439 * NEWS: Mention new support.
440 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
441 * doc/Makefile.in: Regenerate.
442 * doc/all.texi: Set IP2K
443 * doc/as.texinfo: Add IP2K description.
444 * doc/c-ip2k.texi: New file.
446 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
448 * NEWS: Reformat to match style of other NEWS files.
450 2002-07-17 Jan Hubicka <jh@suse.cz>
452 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
454 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
456 * config/tc-z8k.c (build_bytes): Correct order of memset args.
458 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
460 * NEWS: Add 'Changes in 2.13'.
462 2002-07-15 Matt Fredette <fredette@netbsd.org>
464 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
466 2002-07-12 Alan Modra <amodra@bigpond.net.au>
468 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
469 case with non CODE_64BIT case. Don't warn on "qword ptr" if
472 2002-07-11 Alan Modra <amodra@bigpond.net.au>
474 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
475 (ppc_frob_file_before_adjust): New function.
476 * config/tc-ppc.h (tc_frob_symbol): Don't define.
477 (ppc_elf_frob_symbol): Don't declare.
478 (tc_frob_file_before_adjust): Define.
479 (ppc_frob_file_before_adjust): Declare.
481 * config/tc-ppc.c (md_pseudo_table): Warning fix.
482 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
485 (ppc_xcoff64): Rename to ppc_obj64.
486 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
487 (ppc_set_cpu): Set PPC_OPCODE_32 too.
488 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
490 (ppc_target_format): Use ppc_obj64 to select format.
491 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
492 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
493 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
494 (tc_frob_symbol): Likewise.
495 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
496 BFD_DEFAULT_TARGET_SIZE.
498 (ppc_is_toc_sym): Likewise.
499 (md_apply_fix3): Likewise.
500 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
501 BFD_DEFAULT_TARGET_SIZE.
502 (ELF_TC_SPECIAL_SECTIONS): Likewise.
503 (tc_frob_symbol): Likewise.
505 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
507 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
510 2002-07-09 Alan Modra <amodra@bigpond.net.au>
512 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
513 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
514 (md_apply_fix3): Formatting. Remove redundant test.
515 (tc_gen_reloc): Remove redundant code.
516 (tc_i386_force_relocation): Delete. Movy body of function to..
517 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
519 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
521 * configure.in: Add hppa-*-openbsd* target, change
522 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
524 * configure: Regenerate.
526 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
528 * config/tc-mips.c (macro): Shift the 32-bit address range
529 accessible with a lone "lui" down by 32768.
531 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
533 * config/tc-mips.c (load_address): Use non-trapping "daddu"
534 instead of "dadd" in address calculations.
537 2002-07-08 Alan Modra <amodra@bigpond.net.au>
539 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
541 (md_assemble): Instead, zap the suffix here.
543 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
545 * NEWS: Remove next release number until the release is actually
548 2002-07-03 Alan Modra <amodra@bigpond.net.au>
550 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
552 * Makefile.in: Regenerate.
554 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
556 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
557 to symbols in merge sections, even non pc-relative ones.
559 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
561 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
563 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
565 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
566 .softregs and .eeprom.
568 2002-06-28 David O'Brien <obrien@FreeBSD.org>
570 * NEWS: Note the next release is 2.13.
572 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
574 * po/tr.po: New translation imported.
576 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
578 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
579 (ecoff_directive_def): Likewise.
580 (ecoff_directive_tag): Likewise.
581 * listing.c (file_info): Likewise.
582 * hash.c (what): Likewise.
584 2002-06-25 H.J. Lu <hjl@gnu.org>
586 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
587 * Makefile.in: Regenerated.
589 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
591 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
592 (assemble_ppi): Generate warning if the same register is used
593 twice as destination in the same padd / pmuls instruction.
595 2002-06-18 Dave Brolley <brolley@redhat.com>
597 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
598 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
599 * configure.in: Support frv-*-*.
600 * Makefile.am (CPU_TYPES): Add frv.
601 (TARGET_CPU_CFILES): Add tc-frv.c.
602 (TARGET_CPU_HFILES): Add tc-frv.h.
603 (DEPTC_frv_coff): New variable.
604 (DEPTC_frv_elf): New variable.
605 (DEPOBJ_frv_coff): New variable.
606 (DEPOBJ_frv_elf): New variable.
607 (DEP_frv_coff): New variable.
608 (DEP_frv_elf): New variable.
609 * tc-frv.c: New file.
610 * tc-frv.h: New file.
612 2002-06-17 Catherine Moore <clm@redhat.com>
614 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
616 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
618 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
620 2002-06-17 Tom Rix <trix@redhat.com>
622 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
624 2002-06-14 H.J. Lu <hjl@gnu.org>
625 Daniel Jacobowitz <drow@mvista.com>
627 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
628 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
629 * config/tc-mips.c (s_mips_file): Call s_app_file_string
630 and new_logical_line for the first .file directive.
631 * read.c (s_app_file_string): New function.
632 (s_app_file): Call it.
633 * read.h (s_app_file_string): Add declaration.
635 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
637 * configure.in: Remove MIPS_STABS_ELF.
638 * configure: Regenerated.
639 * config.in: Regenerated.
640 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
642 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
644 (pdr_seg): Declare unconditionally.
645 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
646 (s_mips_end): Likewise. Generate stabs function markers.
647 (s_mips_ent): Generate stabs function markers.
648 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
650 (s_mips_mask): Likewise.
651 (mips_flag_mdebug): New.
652 (md_longopts): Add "mdebug" and "no-mdebug".
653 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
654 (mips_after_parse_args): Set mips_flag_mdebug.
655 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
657 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
659 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
660 value twice for RELA relocations.
662 2002-06-12 Ben Elliston <bje@redhat.com>
664 * symbols.c (resolve_symbol_value): Initialise final_val.
666 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
668 2002-06-11 Tom Rix <trix@redhat.com>
670 * config/tc-ppc.c (ppc_subseg_align): Delete.
671 (ppc_change_csect): Default csect align is 2.
672 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
674 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
676 * config/tc-avr.c (mcu_types): Update.
678 2002-06-08 Matt Thomas <matt@3am-software.com>
680 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
681 (vax-*-netbsd*): New targets.
682 * configure: Regenerate.
683 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
684 * config/tc-vax.c: Add support for ELF and PIC.
685 (flag_want_pic): New flag.
686 (float_cons): Fix prototype.
687 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
688 (md_assemble): Introduce a new is_absolute local, and use it
689 rather than repeating the test. Make fatal errors actually
690 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
691 Add support for ELF. Add support for PIC.
692 (md_convert_frag): Adjust for BFD_ASSEMBLER.
693 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
695 (vax_reg_parse): Make the % register prefix mandatory for ELF,
696 optional for a.out, and not allowed for VMS. Adjust all callers.
697 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
698 (md_create_long_jump): Likewise.
699 (md_undefined_symbol): Likewise.
700 (md_section_align): Likewise.
701 (md_shortopts): Allow -k and -K for ELF.
702 (md_parse_option): Set flag_want_pic if -k or -K.
703 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
704 (tc_gen_reloc): New function if BFD_ASSEMBLER.
705 * config/tc-vax.h (tc_headers_hook): Remove.
706 (TARGET_FORMAT): Set according to object format and target
708 (BFD_ARCH, TARGET_ARCH): Define.
709 (NO_RELOC): Adjust for BFD_ASSEMBLER.
710 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
711 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
712 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
714 2002-06-08 Alan Modra <amodra@bigpond.net.au>
716 * Makefile.am: Run "make dep-am".
717 * Makefile.in: Regenerate.
719 * as.c: Replace CONST with const.
721 * config/obj-coff.c: Likewise.
722 * config/tc-a29k.c: Likewise.
723 * config/tc-arm.c: Likewise.
724 * config/tc-dlx.c: Likewise.
725 * config/tc-h8300.c: Likewise.
726 * config/tc-h8500.c: Likewise.
727 * config/tc-i370.c: Likewise.
728 * config/tc-i860.c: Likewise.
729 * config/tc-i960.c: Likewise.
730 * config/tc-m68hc11.c: Likewise.
731 * config/tc-m68k.c: Likewise.
732 * config/tc-m88k.c: Likewise.
733 * config/tc-mcore.c: Likewise.
734 * config/tc-mips.c: Likewise.
735 * config/tc-ns32k.c: Likewise.
736 * config/tc-pdp11.c: Likewise.
737 * config/tc-pj.c: Likewise.
738 * config/tc-s390.c: Likewise.
739 * config/tc-sh.c: Likewise.
740 * config/tc-sparc.c: Likewise.
741 * config/tc-tahoe.c: Likewise.
742 * config/tc-tic80.c: Likewise.
743 * config/tc-v850.c: Likewise.
744 * config/tc-vax.c: Likewise.
745 * config/tc-w65.c: Likewise.
746 * config/tc-z8k.c: Likewise.
748 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
750 Based on patch from Matt Green:
751 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
752 * config/tc-mips.c (s_mips_file): Renamed from s_file.
753 (s_mips_loc): New function.
754 (mips_nonecoff_pseudo_table): Call them.
755 (append_insn): Call dwarf2_emit_insn.
757 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
759 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
761 (file_ase_mips16): New veriable.
762 (mips_eabi64): Remove.
763 (CPU_HAS_MIPS16): New define.
764 (CPU_HAS_MDMX): Fix data type.
765 (md_begin): Code cleanup. Use file_ase_mips16.
766 (mips_elf_final_processing): Handle mips16 header flag.
767 Handle EABI flag without intermediate variable.
769 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
771 * doc/as.texinfo: Update MIPS documentation.
773 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
775 * config/tc-mips.c: Add define for $zero register.
776 (md_begin): Add $zero as alias name for $0.
777 (insn_uses_reg): Use ZERO define.
778 (mips_ip): Add $zero as alias name for $0.
779 (mips16_ip): Likewise.
780 (s_cplocal): Demand empty rest of input line.
781 (tc_get_register): Likewise. Add support for $kt0, kt1 register
782 names. Use ZERO define. Fix input_line_pointer progress.
784 2002-06-07 Alan Modra <amodra@bigpond.net.au>
786 * symbols.c: Replace CONST by const throughout.
787 (symbol_find_exact): Split out from..
788 (symbol_find_base): ..here.
789 * symbols.h: Replace CONST by const throughout.
790 (symbol_find_exact): Declare.
791 * config/obj-elf.c: #include "struc-symbol.h".
792 (elf_frob_file): If group name matches an exported symbol, use that
793 symbol for the signature and ".group" as the section name.
795 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
797 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
799 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
800 * testsuite/gas/sh/pcrel.d: Update.
801 * testsuite/gas/sh/pcrel.l: New file.
803 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
805 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
806 and mips_opts.ase_mdmx if they are uninitialized.
808 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
810 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
811 (hppa_force_relocation): Check if a stub just before the start symbol
812 of the last call_info is reachable before forcing relocation. Fix
815 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
817 * config/tc-mips.c (mips_after_parse_args): New function.
818 (md_begin): Move processing of defaults to mips_after_parse_args.
819 config/tc-mips.h (md_after_parse_args): Define.
821 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
823 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
824 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
825 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
826 * configure: Regenerate.
827 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
830 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
832 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
834 2002-06-04 Alan Modra <amodra@bigpond.net.au>
836 * config/obj-elf.c (obj_elf_change_section): Set and check elf
837 linkonce flag. Print all warnings.
838 (obj_elf_section): Parse ",comdat" for groups.
839 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
840 consistency of comdat flag.
842 2002-06-02 Richard Henderson <rth@redhat.com>
844 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
845 with LITERALs without sequence numbers.
847 2002-06-01 Richard Henderson <rth@redhat.com>
849 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
850 Rename them LITUSE_ALPHA_*.
852 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
854 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
855 accept parentheses enclosed register lists.
857 2002-05-31 Alan Modra <amodra@bigpond.net.au>
859 * Makefile.am: Run "make dep-am".
860 * Makefile.in: Regenerate.
861 * po/POTFILES.in: Regenerate.
863 2002-05-31 Graeme Peterson <gp@qnx.com>
865 * configure.in: Add i386-*-nto-qnx*.
866 * configure: Regenerate.
868 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
870 * config/tc-mips.c (mips_ip): Use unsigned long values for
873 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
875 * config/tc-mips.c (s_cpsetup): Fix initialization of
876 mips_cpreturn_register and mips_cpreturn_offset.
878 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
880 * config/tc-mips.c (s_cpsetup): Fix comment.
882 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
884 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
886 (mips16_ip): Likewise.
887 (tc_get_register): Likewise.
889 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
890 Ed Satterthwaite <ehs@broadcom.com>
892 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
893 (mips_opts): Initialize "ase_mdmx" member.
894 (file_ase_mdmx): New variable.
895 (CPU_HAS_MDMX): New macro.
896 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
897 based on command line options and configuration defaults.
898 (macro_build): Note in comment that use of MDMX in macros is
899 not currently allowed.
900 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
901 "Z" MDMX operand types.
902 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
903 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
905 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
906 Add support for "-mdmx" and "-no-mdmx" options.
907 (OPTION_ELF_BASE): Move to accomodate new options.
908 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
909 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
910 file_ase_mdmx was set.
911 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
912 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
915 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
917 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
918 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
919 command line switch conforming to gcc conventions.
920 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
922 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
924 * config/tc-mips.c (macro_build_jalr): New Function.
925 (md_begin): NewABI uses big GOTs.
926 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
927 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
928 (load_address): Add some NewABI PIC support.
930 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
931 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
933 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
935 * config/tc-mips.c (load_address): Use mips_gp_register instead
936 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
938 (macro): Use mips_gp_register instead of hardcoded value.
940 2002-05-30 Richard Henderson <rth@redhat.com>
942 * expr.h (operatorT): Add O_md17..O_md32.
943 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
944 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
945 O_tprelhi, O_tprello, O_tprel): New.
946 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
947 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
948 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
949 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
950 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
951 (md_apply_fix3): Handle TLS relocations.
952 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
953 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
954 associated TLS reloc. Check lituse_tls relocs match up.
955 (emit_insn): Handle TLS relocations.
958 * doc/c-alpha.texi: Add docs for tls relocations.
960 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
962 * config/tc-mips.c (mips_gprel_offset): New variable.
965 2002-05-30 Diego Novillo <dnovillo@redhat.com>
967 * gas/config/tc-d10v.c (check_resource_conflict): Only check
968 write-write conflicts.
969 (md_assemble): Reformat introductory comment.
970 (parallel_ok): Prevent packing only if the first
971 instruction cannot be packed.
973 2002-05-30 Jason Eckhardt <jle@redhat.com>
974 Tom Rix <trix@redhat.com>
976 * config/tc-d10v.c (build_insn): Check for immediates.
978 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
980 * config/tc-mips.c: Replace GP in comments by $gp.
981 (mips_big_got): Initialize.
982 (mips_trap): Initialize.
983 (load_address): Use mips_gp_register instead of hardcoded value.
984 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
985 (macro): Use mips_gp_register instead of hardcoded value.
986 (macro2): Change load_address calls.
987 (md_pcrel_from): Comment formatting.
988 (s_cpload): Use mips_gp_register instead of hardcoded value.
989 (s_cprestore): Likewise. Comment formatting.
990 (s_gpword): Fix data type.
991 (s_cpadd): Use mips_gp_register instead of hardcoded value.
992 (nopic_need_relax): Replace GP in comments by $gp.
993 (mips_elf_final_processing): Better comment.
995 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
997 * configure.in: Add DLX configuraton
998 * Makefile.am: Add DLX configuraton
999 * configure: Regenerate.
1000 * Makefile.in: Regenerate.
1001 * config/tc-dlx.c: New file.
1002 * config/tc-dlx.h: New files.
1003 * NEWS: Mention new support.
1005 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
1007 * config/obj-coff.c (write_object_file): Add missing semicolon.
1009 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1011 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
1012 by the define. Remove superfluous check of mips_opts.mips16.
1013 (append_insn): Likewise. Canonicalize variable increments.
1014 (macro_build): Canonicalize variable increments.
1015 (macro_build_lui): Likewise.
1016 (load_register): Likewise.
1017 (load_address): Move pointer initialization.
1018 (macro): Move pointer to a more local scope. Canonicalize variable
1019 increments. Better comments. Replace magic constant for RA by the
1021 (macro2): Replace magic constant for RA by the define. Canonicalize
1022 variable increments.
1023 (mips_ip): Canonicalize variable increments.
1024 (mips16_ip): Replace magic constant for RA by the define.
1025 (my_getSmallParser): Canonicalize variable increments/decrements.
1026 (my_getPercentOp): Likewise.
1027 (my_getSmallExpression): Likewise.
1028 (s_align): Likewise.
1029 (s_mipsset): Likewise.
1030 (s_cpsetup): Likewise.
1031 (s_insn): Remove superfluous check of mips_opts.mips16.
1032 (s_mips_stab): Likewise.
1033 (mips_handle_align): Canonicalize variable increments.
1034 (s_mips_ent): Likewise.
1035 (s_mips_end): Add comment.
1037 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1039 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1040 * configure: Regenerate.
1042 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1044 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
1045 * Makefile.in: Regenerate.
1046 * dep-in.sed: Reorder to match OBJS in Makefile.am.
1047 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
1048 * configure: Regenerate.
1049 * as.h: Use #include "" instead of <> for local header files.
1050 * flonum-konst.c: Likewise.
1051 * flonum-mult.c: Likewise.
1053 * listing.c: Likewise.
1054 * config/tc-ia64.h: Likewise.
1055 * config/tc-v850.h: Likewise.
1057 2002-05-24 TAMURA Kent <kent@netbsd.org>
1059 * configure.in: Add a target for i386-netbsdpe.
1060 * configure: Regenerate.
1062 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1064 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
1065 (obj_elf_common): Call elf_common.
1066 (obj_elf_tls_common): New function.
1067 (elf_pseudo_tab): Support .tls_common.
1068 (special_sections): Add .tdata and .tbss.
1069 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
1071 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
1072 (obj_elf_parse_section_letters): Include T in error message.
1073 * config/tc-ppc.c (ppc_section_letter): Likewise.
1074 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
1075 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
1077 * config/tc-sparc.c (md_apply_fix3): Likewise.
1078 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
1079 Define them if not BFD_ASSEMBLER.
1080 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
1082 (md_apply_fix3): Add TLS relocs.
1083 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
1084 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
1085 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
1086 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
1087 (ia64_elf_section_letter): Include T in error message.
1088 (md_begin): Support TLS operators.
1089 (md_operand): Likewise.
1090 (ia64_gen_real_reloc_type): Support TLS relocs.
1091 * testsuite/gas/i386/tlspic.s: New file.
1092 * testsuite/gas/i386/tlsd.s: New file.
1093 * testsuite/gas/i386/tlsnopic.s: New file.
1094 * testsuite/gas/i386/tlsd.d: New file.
1095 * testsuite/gas/i386/tlsnopic.d: New file.
1096 * testsuite/gas/i386/tlspic.d: New file.
1097 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
1098 * testsuite/gas/ia64/tls.s: New file.
1099 * testsuite/gas/ia64/tls.d: New file.
1100 * testsuite/gas/ia64/ia64.exp: Add tls test.
1101 * write.c (adjust_reloc_syms): Don't change symbols in
1102 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
1104 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1106 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
1107 round the relocation up rather than down.
1109 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1111 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
1113 * doc/as.texinfo: Document that the COFF version of .section
1114 ignores the 'a' flag.
1116 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1118 * config/tc-alpha.c (assemble_tokens): Protect use of
1119 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
1121 * write.c (size_seg): Check adjustment to last frag.
1122 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
1124 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
1125 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
1126 (write_object_file): Invoke md_do_align if available, and use
1127 frag_align_code on text sections.
1128 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
1129 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
1130 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
1131 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1132 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
1135 2002-05-22 H.J. Lu <hjl@gnu.org>
1137 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
1140 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
1142 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
1145 2002-05-22 H.J. Lu <hjl@gnu.org>
1147 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
1148 for one .loc for compiler.
1150 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1152 * config/tc-mips.c (macro): Relax warning, it's toot strict for
1155 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1157 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
1158 Optimize the rotate by zero case.
1160 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
1162 * configure.in: Remove accidental enabling of bfd_gas=yes for
1164 * configure: Regenerate.
1166 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1168 * app.c: Fix formatting.
1170 * ehopt.c: Likewise.
1172 * input-file.c: Likewise.
1173 * listing.c: Likewise.
1174 * macro.h: Likewise.
1175 * stabs.c: Likewise.
1176 * symbols.c: Likewise.
1178 2002-05-17 Alan Modra <amodra@bigpond.net.au>
1180 * config/obj-generic.c: Delete file.
1181 * config/obj-generic.h: Likewise.
1183 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1185 * config/tc-avr.c (mcu_types): Update for new devices.
1187 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1189 * config/tc-mips.c (macro): Warn about wrong la/dla use.
1191 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1193 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
1194 worked sometimes by accident. Fix copy&paste comment.
1196 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1198 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
1199 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
1200 (mips_elf_final_processing): Let n32 use .reginfo.
1202 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1204 * config/tc-mips.c (append_insn): Fix too small range of variable.
1206 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
1208 * config/tc-arm.c (arm_cleanup): Remove redundant call to
1209 listing_prev_line().
1211 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
1213 * config/tc-arm.c (md_assemble): Remove redundant call to
1216 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
1219 * stabs.c (s_stab_generic): Fix grammatical error in warning
1222 2002-05-13 Alan Modra <amodra@bigpond.net.au>
1224 * write.c (subsegs_finish): Don't specially align last subseg.
1226 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1228 * stabs.c (s_stab_generic): Warn about a description field that is
1231 * config/obj-coff.c: Fix compile time warnings when compiling
1232 without BFD_ASSEMBLER defined.
1235 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
1237 (md_pcrel_from_section): Use md_pcrel_from().
1239 2002-05-11 Bruno Haible <bruno@clisp.org>
1241 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
1242 by dwarf2_directive_loc, instead of calling dwarf2_where.
1244 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1246 * config/obj-coff.h: Fix formatting.
1247 * config/tc-mcore.c: Likewise.
1248 * config/tc-mn10300.c: Likewise.
1249 * config/tc-openrisc.c: Likewise.
1250 * config/tc-or32.c: Likewise.
1251 * config/tc-pdp11.c: Likewise.
1252 * config/tc-ppc.c: Likewise.
1253 * config/tc-ppc.h: Likewise.
1254 * config/tc-sh64.c: Likewise.
1255 * config/tc-sh.c: Likewise.
1256 * config/tc-tic54x.c: Likewise.
1257 * config/tc-xstormy16.c: Likewise.
1258 * config/tc-xstormy16.h: Likewise.
1260 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1262 * config/obj-coff.c: Fix formatting.
1263 * config/obj-elf.c: Likewise.
1264 * config/tc-alpha.c: Likewise.
1265 * config/tc-arm.c: Likewise.
1266 * config/tc-d10v.c: Likewise.
1267 * config/tc-d30v.c: Likewise.
1268 * config/tc-h8300.c: Likewise.
1269 * config/tc-hppa.c: Likewise.
1271 2002-05-09 Alan Modra <amodra@bigpond.net.au>
1273 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
1274 reloc when no_cond_jump_promotion.
1276 2002-05-08 Jim Wilson <wilson@redhat.com>
1278 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
1279 current variable part of frag.
1281 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1283 * config/tc-mmix.c: Fix formatting.
1284 * config/tc-mmix.h: Likewise.
1286 2002-05-08 Alan Modra <amodra@bigpond.net.au>
1288 * configure: Regenerate.
1290 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1292 * config/tc-m68k.c: Fix formatting.
1294 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1296 * Makefile.am: Honour DESTDIR.
1297 * Makefile.in: Regenerate.
1299 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
1301 * config/tc-ia64.c: Fix formatting.
1302 * config/tc-ia64.h: Likewise.
1304 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1306 * config/tc-mips.c: Fix formatting.
1307 * config/tc-s390.c: Likewise.
1308 * config/tc-s390.h: Likewise.
1310 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
1312 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
1313 information for instructions.
1315 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1317 * as.h: Fix formatting.
1320 * dwarf2dbg.c: Likewise.
1321 * frags.h: Likewise.
1323 * macro.c: Likewise.
1325 * stabs.c: Likewise.
1326 * symbols.c: Likewise.
1328 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1330 * app.c (mri_pseudo): Only declare for TC_M68K.
1332 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
1333 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
1334 BFD_RELOC_16_BASEREL.
1335 (md_assemble): Likewise.
1336 (md_apply_fix3): Likewise.
1338 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1340 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
1341 zero into an add of zero - it is not the same.
1343 2002-05-01 Arati Dikey <aratid@kpit.com>
1345 * tc-sh.c (get_specific): Generate warning if the same
1346 destination register is used in parallel instructions.
1348 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
1350 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
1352 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1354 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
1355 backwards to prevent cascading errors.
1357 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1359 * configure.in: Add support for powerpc-*-windiss.
1360 * configure: Regenerated.
1362 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1364 * config/tc-s390.c (md_parse_option): Formatting.
1366 * config/tc-i386.c: Formatting fixes, add missing space in error
1369 2002-04-24 Christian Groessler <chris@groessler.org>
1371 * config/tc-z8k.c (build_bytes): Add support for new cases:
1372 CLASS_IGNORE and ARG_NIM4.
1373 (md_assemble): Prevent destruction of input_line_pointer if
1374 get_operands returns failure.
1376 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1378 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
1379 instructions to be generated by macros.
1381 2002-04-24 Andreas Schwab <schwab@suse.de>
1383 * config/tc-i386.c (output_jump, output_disp)
1384 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
1386 (md_apply_fix3): Remember addend value for rela relocations.
1387 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
1389 2002-04-22 Chris Demetriou <cgd@broadcom.com>
1391 * config/tc-mips.c (macro_build): Add close-parenthesis missing
1392 from previous change.
1394 2002-04-22 Eric Christopher <echristo@redhat.com>
1396 * config/tc-mips.c (macro_build): Add warning if macro instructions
1397 are expanded into a branch delay slot.
1399 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
1401 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
1402 numbers, gdb relies on them to detect the start of the prologue.
1404 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
1406 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
1407 symbols in merge sections.
1409 2002-04-16 Alan Modra <amodra@bigpond.net.au>
1411 * as.c (main): Don't reference _bfd_chunksize.
1413 2002-04-15 Tom Rix <trix@redhat.com>
1415 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
1416 symbols in merge sections.
1418 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1420 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
1421 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
1422 argument for the precision.
1423 (gen_to_words): Update accordingly.
1425 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1427 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
1428 BFD_VERSION_STRING unavailable.
1429 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
1431 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
1433 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
1434 symbol_used_in_reloc_p is true.
1436 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
1439 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1441 * dep-in.sed: Cope with absolute paths.
1442 * Makefile.am (dep.sed): Subst TOPDIR.
1444 * Makefile.in: Regenerate.
1446 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1448 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
1449 (mips_ip): Remove unused variable.
1450 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
1451 unsigned char with bfd_byte.
1452 (s_file): Remove unused variable.
1453 (s_mips_ent): Likewise.
1455 2002-04-03 Tom Rix <trix@redhat.com>
1457 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
1459 (find_opcode): Fix warning in as_warn.
1460 * config/tc-d10v.h: Update Copyright.
1462 2002-04-03 Alan Matsuoka <alanm@redhat.com>
1463 Tom Rix <trix@redhat.com>
1465 From Jeff Knaggs <jknaggs@redhat.com>
1466 * config/tc-d10v.c (check_resource_conflict): New function to
1467 check for resource conflicts.
1469 From Jason Eckhardt <jle@redhat.com>
1470 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1472 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
1473 reserved control registers is used.
1474 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1477 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
1478 * tc-d10v.c (parallel_ok): Prevent packing only if the first
1479 instruction cannot be packed.
1481 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
1482 * gas/config/tc-d10v.c (check_resource_conflict): Only check
1483 write-write conflicts.
1484 (md_assemble): Reformat introductory comment.
1485 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
1488 2002-04-03 Alan Modra <amodra@bigpond.net.au>
1490 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
1491 O_logical_not>): Derive final_seg from add_symbol.
1492 <O_multiply..O_logical_or>: More final_seg twiddles.
1494 2002-04-01 Jessica Han <jessica@cup.hp.com>
1496 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
1499 2002-03-27 Andreas Schwab <schwab@suse.de>
1501 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
1502 field for pc-relative fixups.
1503 (output_disp): Likewise.
1504 (md_estimate_size_before_relax): Likewise.
1505 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
1506 pc-relative fixups in 64bit mode.
1508 2002-03-22 Alan Modra <amodra@bigpond.net.au>
1510 * config/te-aix5.h: Typo fix.
1512 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1514 * Makefile.am: Run "make dep-am".
1515 * Makefile.in: Regenerate.
1516 * doc/Makefile.in: Regenerate.
1518 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
1520 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
1521 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
1523 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
1525 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
1526 the EXTENDED bit here; report the estimate according to the
1529 2002-03-18 Tom Rix <trix@redhat.com>
1531 * configure.in: Add AIX 5 support.
1532 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
1533 * config/te-aix5.h: New file. AIX 5 support.
1534 * configure: Regenerate.
1536 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1538 * po/fr.po: Updated version.
1540 2002-03-16 Andreas Jaeger <aj@suse.de>
1542 * doc/c-mips.texi (Machine Dependencies): Add new node.
1544 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
1546 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
1547 (mips_opts): Initialize "ase_mips3d" member.
1548 (file_ase_mips3d): New variable.
1549 (CPU_HAS_MIPS3D): New macro.
1550 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
1551 based on command line options and configuration defaults.
1552 (macro_build, mips_ip): Accept MIPS-3D instructions if
1553 mips_opts.ase_mips3d is set.
1554 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
1555 Add support for "-mips3d" and "-no-mips3d" options.
1556 (OPTION_ELF_BASE): Move to accomodate new options.
1557 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
1558 (mips_elf_final_processing): Add a comment indicating that a
1559 MIPS-3D ASE ELF header flag should be set, when one exists.
1560 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
1561 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
1562 nomips3d" directives.
1564 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
1566 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
1567 a weak symbol in same section to be within reach.
1569 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1571 * po/fr.po: Updated version.
1573 2002-03-12 Andreas Schwab <schwab@suse.de>
1575 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
1576 body record so that an error is given for misplaced .save
1579 2002-03-09 Alan Modra <amodra@bigpond.net.au>
1581 * config/tc-i386.h (REX_OPCODE): Define.
1582 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
1583 (rex_byte): typedef to int.
1584 * config/tc-i386.c: Group prototypes and vars together.
1585 Formatting fixes. Remove occurrences of "register" keyword.
1588 (mode_from_disp_size): Add INLINE keyword to prototype.
1589 (fits_in_signed_byte): Likewise.
1590 (fits_in_unsigned_byte): Likewise.
1591 (fits_in_unsigned_word): Likewise.
1592 (fits_in_signed_word): Likewise.
1593 (fits_in_unsigned_long): Likewise.
1594 (fits_in_signed_long): Likewise.
1595 (type_names): Constify.
1596 (intel_float_operand): Constify param.
1597 (add_prefix): Use REX_OPCODE.
1598 (md_assemble): Likewise. Modify for changed rex_byte.
1599 (parse_insn): Split out of md_assemble.
1600 (parse_operands): Likewise.
1601 (swap_operands): Likewise.
1602 (optimize_imm): Likewise.
1603 (optimize_disp): Likewise.
1604 (match_template): Likewise.
1605 (check_string): Likewise.
1606 (process_suffix): Likewise.
1607 (check_byte_reg): Likewise.
1608 (check_long_reg): Likewise.
1609 (check_qword_reg): Likewise.
1610 (check_word_reg): Likewise.
1611 (finalize_imm): Likewise.
1612 (process_operands): Likewise.
1613 (build_modrm_byte): Likewise.
1614 (output_insn): Likewise.
1615 (output_branch): Likewise.
1616 (output_jump): Likewise.
1617 (output_interseg_jump): Likewise.
1618 (output_disp): Likewise.
1619 (output_imm): Likewise.
1621 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1623 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1625 2002-03-06 Alan Modra <amodra@bigpond.net.au>
1627 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
1628 relocs except when BFD64.
1630 * write.c (number_to_chars_bigendian): Don't abort when N is
1631 larger than sizeof (VAL).
1632 (number_to_chars_littleendian): Likewise.
1634 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1636 * config/tc-hppa.c (md_apply_fix3): Add cast.
1637 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
1640 2002-03-05 Paul Koning <pkoning@equallogic.com>
1642 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
1643 (parse_ac5): New function for parsing float regs in float operand.
1644 (parse_expression): Remove attempt to make literals be octal.
1645 (parse_op_no_deferred): Support float literals.
1646 (parse_op): Reject attempts to refer to float regs.
1647 (parse_fop): New function, like parse_op but for float operand.
1648 (md_assemble): Add cases to parse float operands. Also fix
1649 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
1651 2002-03-04 H.J. Lu <hjl@gnu.org>
1653 * config/obj-elf.c (special_section): Add .init_array,
1654 .fini_array and .preinit_array.
1656 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
1657 .init_array and .fini_array.
1659 2002-03-01 Jakub Jelinek <jakub@redhat.com>
1661 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
1663 (obj_frob_symbol): Copy visibility.
1665 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1667 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
1669 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
1671 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
1673 * po/es.po: Updated.
1675 2002-02-26 Chris Demetriou <cgd@broadcom.com>
1677 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
1678 only, undo the changes made on 2001-06-08, with the
1679 effect being that common or extern symbols are
1680 adjusted for embedded-PIC, but weak symbols are not.
1681 (md_estimate_size_before_relax: Likewise, with the effect
1682 that extern symbols are treated the same as weak symbols
1683 only if not embedded-PIC.
1684 (mips_fix_adjustable) Likewise, with the effect that
1685 weak or extern symbols are not adjusted for embedded-PIC.
1686 (md_apply_fix3): Tweak so that the case where value is zero
1687 is handled more correctly for embedded-PIC code.
1689 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
1691 * doc/as.texinfo (Overview): Add missing @ifset IA64
1693 * configure.in (LINGUAS): Add es.po.
1694 * configure: Regenerate.
1695 * po/es.po: New file.
1697 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1699 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
1700 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
1701 and NO_PIC cases. Code cleanup.
1702 (macro2): Fix handling of 64bit register loads.
1704 2002-02-25 David Mosberger <davidm@hpl.hp.com>
1706 * doc/as.texinfo: Add entry for IA64.
1707 * doc/c-ia64.texi: New file.
1709 2002-02-25 Alan Modra <amodra@bigpond.net.au>
1711 * config/tc-hppa.c: Update copyright date.
1713 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1714 Remove references to chip manufacturers.
1715 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1717 (md_show_usage): Remove references to chip manufacturers. Mention
1719 (md_begin): Test power4 opcode flag bits.
1721 2002-02-22 David Mosberger <davidm@hpl.hp.com>
1723 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1724 count exceeds prologue count.
1725 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1726 (unwind.label_prologue_count): New member.
1728 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1730 (get_saved_prologue_count): New function.
1731 (save_prologue_count): New function.
1732 (free_saved_prologue_count): New function.
1733 (dot_label_state): Record state label by calling save_prologue_count().
1734 (dot_copy_state): Restore prologue count by calling
1735 get_saved_prologue_count().
1736 (generate_unwind_image): Free up list of saved prologue
1737 counts by calling free_saved_prologue_counts().
1739 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
1741 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1742 function declarations.
1744 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
1746 * NEWS: Note that GASP is now deprecated.
1747 * Makefile.am: Do not build gasp-new by default.
1748 * Makefile.in: Regenerate.
1749 * doc/Makefile.am: Do not install gasp.info.
1750 * doc/Makefile.in: Regenerate.
1751 * gas/gasp.texi: Note that gasp is now deprecated.
1753 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1755 * NEWS: Mark 2.12 branch.
1757 2002-02-19 Tom Tromey <tromey@redhat.com>
1759 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1761 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1763 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1766 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1768 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1769 Make bit size independent of architecture switch.
1770 (md_begin): Add warning for -m64 with -Aesa.
1771 (s390_md_end): Use renamed architecture defines.
1773 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
1775 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1777 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
1779 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1782 2002-02-15 Chris Demetriou <cgd@broadcom.com>
1784 * config/tc-mips.c (md_estimate_size_before_relax): Really
1785 make sure we treat weak like extern only for ELF. (Fixes
1786 patch from 2001-07-25.)
1788 2002-02-15 Ben Elliston <bje@redhat.com>
1790 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1793 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1795 * NEWS: Mention support for MMIX.
1797 2002-02-13 Chris Demetriou <cgd@broadcom.com>
1799 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1800 a sequence of indpendent 'if' statements for easier debugging
1801 and future modification.
1803 2002-02-13 Matt Fredette <fredette@netbsd.org>
1805 * config/tc-m68k.c (md_show_usage): No longer display a
1806 hard-coded "68020" for the default CPU, instead display the
1807 canonical name of the true, configured default CPU.
1808 (m68k_elf_final_processing): Mark objects for sub-68020
1809 CPUs with the new EF_M68000 flag.
1811 2002-02-13 Andreas Schwab <schwab@suse.de>
1813 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1814 pc-relative relocations to merge sections in 64-bit mode.
1816 2002-02-13 Ben Elliston <bje@redhat.com>
1818 * NEWS: Document floating point number handling in gasp.
1819 * gasp.c: Include <assert.h> and "xregex.h".
1820 (is_flonum): New function.
1821 (chew_flownum): Likewise.
1822 (change_base): Consume flonums from the input, where possible.
1823 * doc/gasp.texi (Constants): Document floating point numbers.
1825 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1827 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1828 that implicitly use LR and RR selectors.
1830 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1832 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
1833 and `epsw' as available on AM33 and above only.
1834 (other_register_name): Add logic to handle machine type encoded in
1837 2002-02-11 Tom Rix <trix@redhat.com>
1839 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1842 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
1844 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1847 2002-02-11 Jan Hubicka <jh@suse.cz>
1849 * i386.c (md_assemble): Support 32bit address prefix.
1850 (i386_displacement): Likewise.
1851 (i386_index_check): Accept 32bit addressing in 64bit mode.
1853 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1855 * config/tc-sh.c (dot): Removed unused function.
1857 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1859 * Makefile.am: "make dep-am".
1860 * Makefile.in: Regenerate.
1861 * aclocal.m4: Regenerate.
1862 * config.in: Regenerate.
1863 * configure: Regenerate.
1864 * doc/Makefile.in: Regenerate.
1866 2002-02-10 Richard Henderson <rth@redhat.com>
1868 * doc/c-alpha.texi: New file.
1869 * doc/Makefile.am (CPU_DOCS): Add it.
1870 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1872 2002-02-09 Richard Henderson <rth@redhat.com>
1874 * config/tc-alpha.c (O_samegp): New.
1875 (USER_RELOC_P): Include it.
1876 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1877 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1878 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1879 (alpha_validate_fix): New.
1880 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1882 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
1884 * doc/c-cris.texi: New.
1885 * doc/all.texi: @set CRIS.
1886 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
1887 Include c-cris.texi.
1888 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1889 * doc/Makefile.in: Regenerate.
1891 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1893 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1894 determine if a number is a sign-extended 32-bit number.
1895 (load_register): Use IS_SEXT_32BIT_NUM.
1896 (macro): Check if load/store macro handling is using a
1897 constant 32-bit address on 64-bit address systems, and if
1898 so optimize the generation of that address.
1900 2002-02-08 Richard Henderson <rth@redhat.com>
1902 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1903 we've eliminated all foreign relocation types yet.
1904 (alpha_fix_adjustable): Likewise.
1906 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1908 Contribute sh64-elf.
1909 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1910 Stephen Clarke <Stephen.Clarke@st.com>
1911 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1912 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
1913 * config/tc-sh.c (md_relax_table): Added default sizes for
1914 non-PC-relative UNDEF_MOVI, and relaxation sequences for
1915 MOVI_16, MOVI_32 and MOVI_48.
1916 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1917 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1919 (shmedia_md_estimate_size_before_relax): Remove redundant
1920 blocks. Set fragP->fr_var even if relaxation type unchanged.
1921 Retain UNDEF_MOVI until expression decays to number.
1922 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1923 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1924 relocation types. Take fixP->fx_addnumber into account too.
1925 (shmedia_md_apply_fix): Likewise.
1926 (shmedia_md_convert_frag): Likewise.
1927 (shmedia_build_Mytes): Likewise.
1928 (sh64_consume_datalabel): Complain about nested datalabel.
1929 Support PIC relocs. Call sh_parse_name.
1930 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1931 in tc-sh.h to SHmedia reloc types.
1932 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1933 MOVI_GOTPC): New relaxation constants.
1934 (md_relax_table): Introduce relaxation directives for PIC-related
1936 (sh_PIC_related_p): Handle datalabel.
1937 (sh_check_fixup): Choose SH5 PIC relocations.
1938 (sh_cons_fix_new): Added BDF_RELOC_64.
1939 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
1940 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1941 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1942 current ISA is SHmedia, get 7 bytes.
1943 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
1944 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1946 * config/tc-sh64.c (shmedia_apply_fix): Rename to
1947 shmedia_apply_fix3 and make void.
1948 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
1949 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1951 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
1952 * config/tc-sh64.h (md_parse_name): Take &c as argument.
1953 2001-03-14 DJ Delorie <dj@redhat.com>
1954 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1955 * doc/Makefile.in(CPU_DOCS): Ditto.
1956 * doc/c-sh64.texi: New file.
1957 * doc/as.texinfo: Add SH64 support.
1958 2001-03-13 DJ Delorie <dj@redhat.com>
1959 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1960 A_REUSE_PREV so that its purpose is more obvious.
1961 (shmedia_build_Mytes): Ditto.
1962 2001-03-07 DJ Delorie <dj@redhat.com>
1963 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1965 (sh64_vtable_inherit): Ditto.
1966 (strip_datalabels): New, strip "datalabel" from given line.
1967 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1969 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
1970 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1972 (shmedia_build_Mytes): ... to here.
1973 2001-03-06 DJ Delorie <dj@redhat.com>
1974 * config/tc-sh.c: Remove sh64-specific uaquad now that there
1976 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
1977 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1978 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1979 address by one in call to dwarf2_emit_insn.
1980 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
1981 Implement ".abi" pseudo and correct .cranges descriptors. Correct
1982 alignment handling broken by imported changes.
1983 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1984 (sh64_handle_align): Declare.
1985 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1986 (sh64_max_mem_for_rs_align_code): Declare.
1987 (enum sh64_isa_values): Moved here from tc-sh64.c.
1988 (md_do_align): Define.
1989 (sh64_do_align): Declare.
1990 (struct sh64_tc_frag_data): New.
1991 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
1993 (TC_FRAG_INIT): Change to set new datatype.
1994 (struct sh64_segment_info_type): Rename member
1995 last_flushed_location to last_contents_mark. All users changed.
1996 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1997 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1998 * config/tc-sh.c (md_pseudo_table): Add ".abi".
1999 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
2000 of unsetting seen_insn.
2001 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
2002 call sh64_update_contents_mark.
2003 (sh_handle_align): Remove HAVE_SH64-conditioned code.
2004 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
2005 enum sh64_isa_values.
2006 (sh64_set_contents_type): Drop segT parameter. All callers changed.
2007 (emitting_crange): Boolean guard moved to file scope from function
2008 scope in sh64_set_contents_type.
2010 (sh64_update_contents_mark): New; most split out from
2011 sh64_flush_pending_output.
2012 (shmedia_md_end): Call sh64_update_contents_mark. Set
2013 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
2014 (sh64_do_align): New function.
2015 (sh64_max_mem_for_rs_align_code): New function.
2016 (sh64_handle_align): Rename from shmedia_do_align. Make
2017 non-static. Add head comment. Emit zero bytes for n bytes modulo
2018 four. Change return-type to void.
2019 (shmedia_elf_new_section): Remove.
2020 (shmedia_md_assemble): Call sh64_update_contents_mark.
2021 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
2022 new frag. Call sh64_update_contents_mark after making the new
2024 (sh64_flush_pending_output): Just call sh64_update_contents_mark
2025 and sh_flush_pending_output.
2026 (sh64_flag_output): Also call md_flush_pending_output, but add
2027 condition on not emitting_crange.
2028 (sh64_tc_cons_fix_new): Remove.
2029 2001-01-12 Nick Clifton <nickc@redhat.com>
2030 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
2031 alignment handling scheme imported from sourceware.
2032 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
2033 * config/tc-sh64.h (TARGET_FORMAT): Define.
2034 (sh64_target_format): Prototype.
2035 * config/tc-sh64.c (sh64_target_mach): New function.
2036 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
2037 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
2038 zero_address_frag instead of copying the frag of the symbol.
2039 (shmedia_frob_file_before_adjust): Ditto.
2040 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
2041 to valueT to remove signedness.
2042 (shmedia_md_convert_frag): Add parameter final. Rename parameter
2043 headers to output_bfd. Do not evaluate symbols if final is false;
2045 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
2046 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
2047 to the current frag, call shmedia_md_convert_frag to emit fixups
2048 and make frag_wane neutralize the frag. Update comments.
2049 * config/tc-sh.c (md_convert_frag): Change caller of
2050 shmedia_md_convert_frag.
2051 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2052 * config/tc-sh64.h: Tweak comments and correct formatting.
2053 * config/tc-sh64.c: Ditto.
2054 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
2055 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
2056 for the no-relocation case.
2057 (shmedia_check_limits): Fix range check being off-by-one for PTA.
2058 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
2060 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
2062 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
2063 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
2065 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
2067 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2068 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
2069 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
2070 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
2071 al>: Set lowest bit of field to relocate to 1 and rest to empty,
2072 if reloc is emitted.
2073 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2074 New options plus bugfixes.
2075 * config/tc-sh.c (md_longopts): New options "-no-expand" and
2077 (md_parse_option): Handle new options.
2078 (md_show_usage): Add blurb for new options.
2079 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
2080 (sh64_expand, sh64_pt32): New variables.
2081 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
2082 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
2083 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
2084 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
2085 <resolved previously-pc-relative relocs>: Handle
2086 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
2087 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
2088 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
2089 points to SHcompact code.
2090 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
2091 SH64PCREL16)>: Check that ISA of what operand points at and
2092 PTA/PTB matches, or emit error.
2093 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
2094 SHMEDIA_BFD_RELOC_PT.
2095 (shmedia_immediate_op): If pcrel, emit fixup also for constant
2097 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
2098 condition for MOVI expansion.
2099 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
2100 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
2102 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
2104 (sh64_target_format): Error-check setting of sh64_pt32 and
2105 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
2106 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
2107 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
2108 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2109 * config/tc-sh64.c: Improve comments.
2110 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
2111 not say the linker will check correctness of PTA/PTB expansion.
2112 (shmedia_md_end): Make non-static.
2113 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
2115 * config/tc-sh.c (sh_finalize): Remove.
2116 * config/tc-sh.h (md_end): Do not define.
2117 Remove prototype for sh_finalize.
2118 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2119 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
2120 sh64_section_data container when storing section type in tdata
2121 field in elf_section_data.
2122 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
2124 * Makefile.am: Update dependencies.
2125 * Makefile.in: Regenerate.
2126 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
2127 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
2128 dwarf2_emit_insn call with test on debug_type.
2129 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2130 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
2131 CRT_SH5_ISA32 sticky for 64-bit.
2132 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2133 Generate .crange sections when switching ISA mode or emitting
2134 constants in same section as code.
2135 * config/tc-sh64.c: Reformat structure definitions.
2136 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
2138 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
2139 to emit a .cranges descriptor when contents type changes. Only
2140 emit error if changing contents type and -no-mix is in effect.
2141 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
2142 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
2143 (shmedia_md_end): Set sh64_end_of_assembly. Pass
2144 sh64_flush_last_crange over sections.
2145 When checking main symbol of datalabel symbol, check for
2146 STO_SH5_ISA32, not ISA type of section in definition.
2147 (shmedia_frob_file_before_adjust): Check main symbol for
2148 STO_SH5_ISA32; don't check ISA type of section in definition.
2149 (shmedia_frob_section_type): Adjust for .cranges; set section flag
2150 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
2151 .cranges entries have been output.
2152 (shmedia_elf_new_section): Just call md_flush_pending_output.
2153 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
2154 fix. Do not set tc_segment_info_data.in_code for section. Call
2155 sh64_set_contents_type for SHmedia code.
2156 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
2157 false. Call md_flush_pending_output.
2158 (sh64_target_format): Check that -no-mix and
2159 -shcompact-const-crange are used in sane combination with other
2161 (shmedia_md_pcrel_from_section): Check type of fix for how to
2163 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
2164 not ISA type of section in definition.
2165 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
2166 hold contents-type state.
2167 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
2168 (sh64_flush_pending_output): Declare.
2169 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
2170 (sh64_tc_cons_fix_new): Declare.
2171 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
2172 call sh64_flag_output.
2173 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
2174 call sh64_set_contents_type to mark SHcompact code and set
2176 (md_longopts): New options "-no-mix" and
2177 "-shcompact-const-crange".
2178 (md_parse_option): Handle new options.
2179 (md_show_usage): Add blurb for new options.
2180 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
2181 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2182 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
2183 (sh64_last_insn_frag): New.
2184 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
2185 to get frag for insn opcode for generating fixups; do not assume it
2187 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
2189 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
2191 (TC_FRAG_TYPE): Define as fragS *.
2192 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
2193 (sh64_last_insn_frag): Declare.
2194 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
2195 not == NULL before dereferencing.
2196 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2197 Get rid of BFD section flag and EF_SH64_ABI64.
2198 * config/tc-sh64.c (shmedia_frob_section_type): Use
2199 elf_section_data (sec)->tdata, not a specific BFD section flag, to
2200 communicate the section as containing SHmedia code. Describe why.
2201 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
2202 EF_SH64 regardless of ABI.
2203 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
2204 in error message. Handle resolved expressions for
2205 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2206 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
2207 (shmedia_check_limits): Handle BFD_RELOC_64.
2208 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
2209 a STO_SH5_ISA32 symbol, only the BFD value.
2210 2000-12-11 Ben Elliston <bje@redhat.com>
2211 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
2212 dwarf2_generate_asm_lineno.
2213 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
2214 Handle PC-relative MOVI expansions with assembler relaxation.
2215 Generate PC-relative relocs from 16-bit PC-relative expressions.
2216 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
2217 (shmedia_md_pcrel_from_section): ...here.
2218 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
2219 turned completely resolved. Adjust relocation type for 16-bit
2220 immediate operands that has turned PC-relative. Adjust back for
2221 MD_PCREL_FROM_SECTION being applied twice.
2222 (shmedia_md_convert_frag): Always emit reloc for expression with
2223 global or weak symbol. Handle relaxation result for PC-relative
2225 (shmedia_md_estimate_size_before_relax): An expression with a weak
2226 or global symbol can not be relaxed. Break out tests for
2227 relaxable symbol into variable sym_relaxable.
2228 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
2229 UNDEF_MOVI)>: Break out any PC-relative expression and change
2231 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
2233 <case A_IMMS16>: Fix typo for initial minor relaxation type of
2234 MOVI expansion. If X_op_symbol of the immediate expression is
2235 set, make an expression symbol for the argument to frag_var.
2236 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
2238 (END): Adjust for new relaxations.
2239 (md_relax_table): Add entries for new relaxations.
2240 2000-12-07 Ben Elliston <bje@redhat.com>
2241 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
2242 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2243 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
2244 SHORI operand offsets in PT/PTA/PTB expansions.
2245 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2246 Implement DataLabel semantics.
2247 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
2248 shmedia_frob_file_before_adjust.
2249 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
2250 (DATALABEL_SUFFIX): Define.
2251 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
2252 symbol list to update "datalabel" symbols to their main symbol
2254 (shmedia_frob_file_before_adjust): New.
2255 (sh64_adjust_symtab): For remaining datalabel symbols, set to
2256 undefined and set STT_DATALABEL.
2257 (sh64_frob_label): Initialize TC symbol field.
2258 (sh64_consume_datalabel): Actually implement semantics. New
2259 parameter operandf, call it instead of expression.
2260 (sh64_exclude_symbol): New.
2261 * config/tc-sh64.h (md_parse_name): Pass on the function operand
2262 to sh64_consume_datalabel.
2263 (tc_symbol_new_hook): Define to tc_frob_symbol.
2264 (TC_SYMFIELD_TYPE): Define to symbolS *.
2265 (tc_frob_symbol): Define to call sh64_exclude_symbol.
2266 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
2267 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
2269 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
2270 generating dwarf2 debug information.
2271 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2272 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
2273 elf64-sh64 for the 64-bit ABI.
2274 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
2276 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2277 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
2279 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2280 * config/tc-sh64.c: Tweak comments, formatting and error messages.
2281 (enum sh64_abi_values): New type.
2282 (enum sh64_isa_values): New type.
2283 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
2284 (seen_shcompact_mode, seen_shmedia_mode): Delete.
2285 (sh64_abi): Replace shmedia_64.
2286 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
2287 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
2288 (s_sh64_mode): Check validity for this target.
2289 (sh64_target_format): Initialize defaults for ISA and ABI.
2290 Fallback to old object format if no SH64 ISA or ABI has been
2292 * config/tc-sh.c (md_parse_option): Check combinations for errors.
2293 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
2294 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
2295 * config/tc-sh64.h: Fix typo in comment.
2296 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
2297 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
2298 <PT fixups for absolute values>: Size will be longest, not
2300 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
2301 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
2302 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
2303 and l1 to hold lowercase of two first characters. Change all
2304 remaining TO_LOWER to tolower.
2305 * config/tc-sh64.c (TO_LOWER): Delete.
2306 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
2307 (md_parse_name): Define.
2308 (sh64_consume_datalabel): Declare.
2309 (DOLLAR_DOT): Define.
2310 * config/tc-sh64.c (shmedia_parse_exp): New.
2311 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
2312 (shmedia_parse_reg): Remove const from src
2314 (shmedia_get_operands): Ditto for args parameter and ptr variable.
2315 (shmedia_md_assemble): Ditto for op_end variable.
2316 (shmedia_get_operand): Ditto for ptr parameter and src variable.
2317 Use shmedia_parse_exp, not parse_exp.
2318 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
2319 parameter. All callers changed.
2320 (shmedia_get_operand): Add shmedia_arg_type parameter. All
2322 (shmedia_parse_reg): Put first two character in local variables.
2323 Use tolower, not TO_LOWER. If no register is found and argtype
2324 indicates a control register, scan shmedia_creg_table
2326 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2327 * Makefile.am (CPU_TYPES): Add sh64.
2328 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
2329 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
2330 Regenerate dependencies.
2331 * Makefile.in: Regenerate.
2332 * configure.in: Add support for sh64-*-elf*.
2333 * configure: Regenerate.
2334 * config/tc-sh64.h: New.
2335 * config/tc-sh64.c: New.
2336 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
2337 .mode, .isa and .uaquad.
2338 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
2339 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
2340 [HAVE_SH64] (END): Define as 10.
2341 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
2342 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
2344 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
2345 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
2346 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
2347 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
2349 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
2350 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
2351 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
2352 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
2353 SHmedia instructions. Handle state-change after switching to
2355 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
2356 (md_parse_option) [HAVE_SH64]: Parse new options.
2357 (md_show_usage) [HAVE_SH64]: Show usage of new options.
2358 (md_convert_frag) [HAVE_SH64] <default>: Call
2359 shmedia_md_convert_frag instead of abort.
2360 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
2361 BFD_RELOC_SH_SHMEDIA_CODE.
2362 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
2363 SHcompact or SHmedia code.
2364 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
2365 shmedia_md_apply_fix instead of abort.
2366 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
2367 result from calling shmedia_md_estimate_size_before_relax instead
2369 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
2371 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
2372 shmedia_init_reloc and do nothing more if it returns non-zero.
2373 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
2374 * po/POTFILES.in: Regenerate.
2375 * po/gas.pot: Regenerate.
2377 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2379 * config/tc-sh.c (parse_at): Install the correct version of
2382 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
2383 assume fixP->fx_subsy is non-NULL.
2385 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
2387 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
2388 A_DISP_PC_ABS, and adjust it by -4.
2389 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
2391 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
2392 the operand type is not A_DISP_PC_ABS.
2394 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2396 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
2397 common and weak symbols. Handle common and weak symbols as
2398 undefined symbols with regards to GREG handling and merging.
2399 (mmix_frob_file): Ditto.
2401 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2403 * configure.in (hppa-*-netbsd*): New target.
2404 * configure: Regenerate.
2405 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
2407 2002-02-02 Alan Modra <amodra@bigpond.net.au>
2409 * config/tc-v850.c: Add missing prototypes amd use old-style
2410 function definitions.
2411 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
2412 (sdata_section tdata_section, zdata_section, sbss_section,
2413 tbss_section, zbss_section, rosdata_section, rozdata_section,
2414 scommon_section, tcommon_section, zcommon_section,
2415 call_table_data_section, call_table_text_section): Delete.
2416 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2417 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
2418 v850_call_table_data, v850_call_table_text): Delete.
2419 (struct v850_seg_entry): New.
2420 (v850_seg_table): New.
2421 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
2422 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
2423 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
2424 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
2427 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
2428 recording of alignment.
2429 (md_pseudo_table): Use v850_seg.
2430 (md_begin): Don't init .call_table_data and .call_table_text here.
2431 Set v850_seg_table bss entry.
2433 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2435 Support on-demand global register allocation by passing on
2436 base-plus-offset relocs to the linker.
2437 * config/tc-mmix.c: Tweak and fix typos in comments.
2438 (allocate_undefined_gregs_in_linker): New variable.
2439 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
2440 (md_longopts): Add --linker-allocated-gregs.
2441 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
2442 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
2443 (md_show_usage): Update text for -x. Add text for
2444 --linker-allocated-gregs.
2445 (tc_gen_reloc): Derive default value for addend from val and
2446 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
2447 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
2448 GREG if allocate_undefined_gregs_in_linker.
2449 * doc/as.texinfo (Overview) <Target MMIX options>: Add
2450 --linker-allocated-gregs.
2451 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
2452 --linker-allocated-gregs. Mention that it's implied by -x.
2453 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
2454 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
2456 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
2458 2002-02-01 Alan Modra <amodra@bigpond.net.au>
2460 * Makefile.am: Run "make dep-am"
2461 * Makefile.in: Regenerate.
2463 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2465 * config/tc-or32.c: New file.
2466 * config/tc-or32.h: New file.
2467 * configure.in: Add support for or32 targets.
2468 * configure: Regenerate.
2469 * config/obj-coff.c: Add support for or32 targets.
2470 * config/obj-coff.h: Add support for or32 targets.
2471 * Makefile.am: Add support for or32 targets.
2472 * Makefile.in: Regenerate.
2473 * NEWS: Mention support for OpenRISC.
2474 * doc/Makefile.in: Regenerate.
2475 * po/POTFILES.in: Regenerate.
2476 * po/gas.pot: Regenerate.
2478 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
2480 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
2483 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2485 * config/tc-mips.c (tc_gen_reloc): Arrange for
2486 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
2487 their LO16 parts, even for ELF.
2489 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
2491 * config/tc-i386.c: Protect definitions of true and false
2494 2002-01-28 Jakub Jelinek <jakub@redhat.com>
2496 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
2497 made because of .weak, if they are neither defined nor used in any
2500 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2502 * configure: Regenerated.
2504 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2506 * doc/Makefile.am (install): Depend on install-info.
2507 * doc/Makefile.in: Regenerate.
2509 2002-01-26 Nick Clifton <nick@redhat.com>
2511 * po/fr.po: Updated version
2513 2002-01-24 Kazu Hirata <kazu@hxi.com>
2515 * config/tc-h8300.c (check_operand): Don't print a warning
2516 when a valid 24-bit address is given to a 16-bit address
2519 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2521 * config/tc-sh.c (sh_elf_suffix): Removed.
2522 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
2523 sh_end_of_match, sh_parse_name): New functions.
2524 (sh_elf_cons): Simplify.
2525 (parse_exp): Reject misplaced PIC operands.
2526 (md_undefined_symbol): Simplify.
2527 (sh_fix_adjustable): Let @GOTOFF be adjusted.
2528 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
2529 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
2530 Complain if subsy remains at the end.
2531 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
2532 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
2534 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
2536 * config/tc-mn10300.c (xr_registers): Move `pc'...
2537 (other_registers): ... here.
2539 2002-01-22 Alan Modra <amodra@bigpond.net.au>
2541 * Makefile.am: Run "make dep-am".
2542 * Makefile.in: Regenerate.
2543 * gas/po/POTFILES.in: Regenerate.
2545 2002-01-21 DJ Delorie <dj@redhat.com>
2547 * config/obj-coff.c (obj_coff_init_stab_section): Make the
2548 stabstr_name allocation permanent, as it will be referenced from
2551 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2553 * configure.in (ia64-*-netbsd*): New target.
2554 * configure: Regenerate.
2556 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
2558 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
2560 <Detailed description, ARM options>: Ditto.
2561 * doc/c-arm.texi (ARM Options): Ditto.
2563 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2565 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
2566 do_mia, do_mar and do_mra respectively.
2567 (do_mav_*): Renamed from do_c_*.
2568 (mav_reg_required_here, mav_parse_offset): Renamed from
2569 cirrus_reg_required_here and cirrus_parse_offset respectively.
2570 (MAV_MODE?): Renamed from CIRRUS_MODE?.
2572 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2573 Keith Walker <keith.walker@arm.com>
2575 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
2576 (insns): Add pattern for bxj instruction.
2577 (do_bxj): New function.
2578 (arm_cpus): Add arm926ej.
2579 (arm_archs): Add armv5tej.
2581 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2583 * doc/c-arm.texi: Add new fpe options to list of supported flags.
2585 2002-01-19 Keith Walker <keith.walker@arm.com>
2587 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
2589 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2591 * NEWS: Mention new ARM command-line options and VFP support.
2593 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
2595 (ARM_CEXT_MAVERICK): Similarly.
2596 (ARM_ANY): Now means any core instruction.
2597 (CPU_DEFAULT): Default to ARM_ANY.
2598 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
2599 (pic_code): Declare for all object types. Make type int.
2600 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
2601 (march_fpu_opt, mfpu_opt): Declare.
2602 (md_longopts): Tidy up conditional definitions.
2603 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
2604 (arm_long_opts): New tables.
2605 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
2606 (arm_parse_extension): New function.
2607 (md_parse_option): Rewrite using new table-driven system.
2608 (md_show_usage): Use new table-driven system.
2609 (md_begin): Calculate cpu_variant from command line option data.
2610 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
2611 command-line options.
2612 * doc/c-arm.texi: Likewise.
2614 2002-01-18 Andreas Jaeger <aj@suse.de>
2616 * as.c (parse_args): Update year.
2618 2002-01-17 Timothy Wall <twall@alum.mit.edu>
2620 * config/tc-tic54x.c (encode_address): Add a more informative
2621 warning about incorrect syntax.
2623 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2625 * po/gas.pot: Regenerate.
2627 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2629 * macro.c (get_any_string): Add no-c-format comment to prevent
2630 confusion when translating string.
2631 * gasp.c (get_any_string): Add no-c-format comment to prevent
2632 confusion when translating string.
2634 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2635 Johannes Stezenbach <js@convergence.de>
2636 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
2637 matched before the shorter ones.
2638 (my_getSmallParser): Fix handling of nested parentheses in
2639 percent_op's. Code cleanup.
2640 (my_getPercentOp): New function, code from my_getSmallParser.
2641 (my_getSmallExpression): Fix handling of closing parentheses.
2642 Code cleanup. Better comments.
2644 2002-01-16 Nick Clifton <nickc@redhat.com>
2646 po/tr.po: New file: Turkish translation.
2647 configure.in (LINGUAS): Add "tr".
2648 configure: Regenerate.
2650 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2652 Support for VFP instructions
2653 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
2654 (cp_address_required_here): New argument wb_ok. When false, do not
2655 accept write-back forms of addressing. Change all callers.
2656 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
2657 (FPU_VFP_EXT_V2): Define.
2658 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
2659 Define in terms of above.
2660 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
2661 (vfp_reg): New struct.
2662 (vfp_regs): New array of registers.
2663 (insns): Add VFP instructions.
2664 (sn_table): New array of VFP single-precision register names.
2665 (dn_table): New array of VFP double-precision register names.
2666 (all_reg_maps): Add the new register tables.
2667 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
2668 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
2669 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
2670 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
2671 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
2672 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
2673 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
2674 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
2675 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
2676 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
2677 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
2678 (do_vfp_sp_dp_cvt): New functions.
2679 (md_begin): Set soft-float flag for appropriate VFP work.
2680 (md_atof): Handle VFP-format doubles.
2681 (md_parse_option): Handle VFP command-line options.
2682 (md_show_usage): Display VFP command-line options.
2684 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2686 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
2687 various command line options.
2689 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2691 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
2693 (xstormy16_md_apply_fix3): Do not return a value.
2695 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2697 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
2698 the -EL/-EB option that matches the target's endianness.
2699 (md_parse_option): Likewise.
2701 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2703 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
2704 is not dependent on ARM_BI_ENDIAN.
2706 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2708 * tc-arm.c (all error messages): Normalize capitalization of messages.
2710 * tc-arm.h (md_operand): Delete define.
2711 * tc-arm.c (in_my_get_expression): New static variable.
2712 (my_get_expression): Set and clear it.
2713 (md_operand): New function. If called from my_get_expression
2714 put the error in inst.error.
2715 (output_inst): Now takes argument of instruction being assembled.
2716 Print it out with any error message.
2717 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2719 (end_of_line): Don't update inst.error if it is already set.
2721 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2723 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
2724 op that can be translated into a mvn instruction.
2726 2002-01-11 Steve Ellcey <sje@cup.hp.com>
2728 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2729 setting default md.flags.
2730 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2731 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2732 * gas/config/tc-ia64.c (setup_unwind_header): Add support
2733 for 32 bit unwind info blocks.
2734 (generate_unwind_image): Add support for different types
2735 of unwind images (32 bits and/or big-endian).
2736 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2737 (ia64_target_format): Add support for hpux target formats.
2738 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2739 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2740 SHT_FINI_ARRAY elf section types.
2742 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
2744 * tc-arm.c (struct reg_entry): Move before prototypes.
2745 (int_register, cp_register, fp_register): Delete.
2746 (reg_table): Delete. Replaced with ...
2747 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2748 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2749 (mav_dspsc_table): ... one table per register set.
2750 (arm_reg_hsh): Delete.
2751 (struct reg_map): New structure.
2752 (all_reg_maps): New array.
2753 (enum arm_reg_type): New enums.
2754 (build_reg_hsh): New function.
2755 (insert_reg_alias): Use hash table passed by caller. Adjust all
2757 (create_register_alias): New function, split out from ...
2758 (md_assemble): ... here.
2759 (md_begin): Build new register hash tables.
2760 (arm_reg_parse): New argument for the hash table to search. Adjust all
2762 (arm_reg_parse_any): New function.
2763 (co_proc_number): Look up the processor number in the processor hash
2765 (cirrus_regtype): Delete.
2766 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2767 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2768 (ARM_EXT_MAVERICKsc_register): Delete.
2769 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2770 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2772 (do_c_triple_4, do_c_triple_5): Delete.
2773 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2774 (do_c_quad_6): Delete.
2775 (do_c_quad_6[ab]): New functions.
2776 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2777 arguments to use new register parsing methods.
2778 (cirrus_reg_required_here): Likewise.
2779 (insns): Reclassify cirrus maverick worker functions.
2780 (cirrus_valid_reg): Delete.
2782 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2784 * configure.in (sh*le): Set cpu_type=sh and endian=little.
2785 (sh*-*-netbsdelf*): New target.
2786 * configure: Regenerate.
2787 * tc-sh.h: Update copyright years.
2788 (TARGET_FORMAT): Add version for TE_NetBSD.
2790 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2792 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2795 2002-01-06 Alan Modra <amodra@bigpond.net.au>
2797 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2798 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2800 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
2802 * tc-mips.c (mips_cprestore_valid): New flag.
2803 (mips_frame_reg_valid): New flag.
2804 (macro) [M_JAL_2]: Check both flags.
2805 [M_JAL_A]: Likewise.
2806 (s_cprestore): Set mips_cprestore_valid.
2807 (tc_get_register): If setting mips_frame_reg, set
2808 mips_frame_reg_valid and clear mips_cprestore_valid.
2809 (s_mips_ent): Clear both flags.
2810 (s_mips_end): Clear both flags.
2812 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2814 * write.c (write_object_file): Make use of bfd_section_list_remove.
2815 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2816 * config/tc-mmix.c (mmix_frob_file): Likewise.
2818 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2820 * configure.in (i386-*-netbsdelf*): Collapse target into...
2821 (i386-*-netbsd*): ...this. Add support for x86-64.
2822 * configure: Regenerated.
2824 2002-01-03 matthew green <mrg@redhat.com>
2826 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2828 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2830 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2833 For older changes see ChangeLog-0001
2839 version-control: never