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