1 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerate.
6 * as.c: Replace CONST with const.
8 * config/obj-coff.c: Likewise.
9 * config/tc-a29k.c: Likewise.
10 * config/tc-arm.c: Likewise.
11 * config/tc-dlx.c: Likewise.
12 * config/tc-h8300.c: Likewise.
13 * config/tc-h8500.c: Likewise.
14 * config/tc-i370.c: Likewise.
15 * config/tc-i860.c: Likewise.
16 * config/tc-i960.c: Likewise.
17 * config/tc-m68hc11.c: Likewise.
18 * config/tc-m68k.c: Likewise.
19 * config/tc-m88k.c: Likewise.
20 * config/tc-mcore.c: Likewise.
21 * config/tc-mips.c: Likewise.
22 * config/tc-ns32k.c: Likewise.
23 * config/tc-pdp11.c: Likewise.
24 * config/tc-pj.c: Likewise.
25 * config/tc-s390.c: Likewise.
26 * config/tc-sh.c: Likewise.
27 * config/tc-sparc.c: Likewise.
28 * config/tc-tahoe.c: Likewise.
29 * config/tc-tic80.c: Likewise.
30 * config/tc-v850.c: Likewise.
31 * config/tc-vax.c: Likewise.
32 * config/tc-w65.c: Likewise.
33 * config/tc-z8k.c: Likewise.
35 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
37 Based on patch from Matt Green:
38 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
39 * config/tc-mips.c (s_mips_file): Renamed from s_file.
40 (s_mips_loc): New function.
41 (mips_nonecoff_pseudo_table): Call them.
42 (append_insn): Call dwarf2_emit_insn.
44 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
46 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
48 (file_ase_mips16): New veriable.
49 (mips_eabi64): Remove.
50 (CPU_HAS_MIPS16): New define.
51 (CPU_HAS_MDMX): Fix data type.
52 (md_begin): Code cleanup. Use file_ase_mips16.
53 (mips_elf_final_processing): Handle mips16 header flag.
54 Handle EABI flag without intermediate variable.
56 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
58 * doc/as.texinfo: Update MIPS documentation.
60 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
62 * config/tc-mips.c: Add define for $zero register.
63 (md_begin): Add $zero as alias name for $0.
64 (insn_uses_reg): Use ZERO define.
65 (mips_ip): Add $zero as alias name for $0.
66 (mips16_ip): Likewise.
67 (s_cplocal): Demand empty rest of input line.
68 (tc_get_register): Likewise. Add support for $kt0, kt1 register
69 names. Use ZERO define. Fix input_line_pointer progress.
71 2002-06-07 Alan Modra <amodra@bigpond.net.au>
73 * symbols.c: Replace CONST by const throughout.
74 (symbol_find_exact): Split out from..
75 (symbol_find_base): ..here.
76 * symbols.h: Replace CONST by const throughout.
77 (symbol_find_exact): Declare.
78 * config/obj-elf.c: #include "struc-symbol.h".
79 (elf_frob_file): If group name matches an exported symbol, use that
80 symbol for the signature and ".group" as the section name.
82 Thu Jun 6 17:42:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
84 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
86 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
87 * testsuite/gas/sh/pcrel.d: Update.
88 * testsuite/gas/sh/pcrel.l: New file.
90 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
92 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
93 and mips_opts.ase_mdmx if they are uninitialized.
95 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
97 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
98 (hppa_force_relocation): Check if a stub just before the start symbol
99 of the last call_info is reachable before forcing relocation. Fix
102 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
104 * config/tc-mips.c (mips_after_parse_args): New function.
105 (md_begin): Move processing of defaults to mips_after_parse_args.
106 config/tc-mips.h (md_after_parse_args): Define.
108 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
110 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
111 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
112 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
113 * configure: Regenerate.
114 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
117 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
119 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
121 2002-06-04 Alan Modra <amodra@bigpond.net.au>
123 * config/obj-elf.c (obj_elf_change_section): Set and check elf
124 linkonce flag. Print all warnings.
125 (obj_elf_section): Parse ",comdat" for groups.
126 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
127 consistency of comdat flag.
129 2002-06-02 Richard Henderson <rth@redhat.com>
131 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
132 with LITERALs without sequence numbers.
134 2002-06-01 Richard Henderson <rth@redhat.com>
136 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
137 Rename them LITUSE_ALPHA_*.
139 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
141 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
142 accept parentheses enclosed register lists.
144 2002-05-31 Alan Modra <amodra@bigpond.net.au>
146 * Makefile.am: Run "make dep-am".
147 * Makefile.in: Regenerate.
148 * po/POTFILES.in: Regenerate.
150 2002-05-31 Graeme Peterson <gp@qnx.com>
152 * configure.in: Add i386-*-nto-qnx*.
153 * configure: Regenerate.
155 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
157 * config/tc-mips.c (mips_ip): Use unsigned long values for
160 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
162 * config/tc-mips.c (s_cpsetup): Fix initialization of
163 mips_cpreturn_register and mips_cpreturn_offset.
165 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
167 * config/tc-mips.c (s_cpsetup): Fix comment.
169 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
171 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
173 (mips16_ip): Likewise.
174 (tc_get_register): Likewise.
176 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
177 Ed Satterthwaite <ehs@broadcom.com>
179 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
180 (mips_opts): Initialize "ase_mdmx" member.
181 (file_ase_mdmx): New variable.
182 (CPU_HAS_MDMX): New macro.
183 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
184 based on command line options and configuration defaults.
185 (macro_build): Note in comment that use of MDMX in macros is
186 not currently allowed.
187 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
188 "Z" MDMX operand types.
189 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
190 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
192 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
193 Add support for "-mdmx" and "-no-mdmx" options.
194 (OPTION_ELF_BASE): Move to accomodate new options.
195 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
196 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
197 file_ase_mdmx was set.
198 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
199 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
202 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
204 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
205 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
206 command line switch conforming to gcc conventions.
207 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
209 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
211 * config/tc-mips.c (macro_build_jalr): New Function.
212 (md_begin): NewABI uses big GOTs.
213 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
214 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
215 (load_address): Add some NewABI PIC support.
217 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
218 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
220 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
222 * config/tc-mips.c (load_address): Use mips_gp_register instead
223 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
225 (macro): Use mips_gp_register instead of hardcoded value.
227 2002-05-30 Richard Henderson <rth@redhat.com>
229 * expr.h (operatorT): Add O_md17..O_md32.
230 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
231 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
232 O_tprelhi, O_tprello, O_tprel): New.
233 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
234 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
235 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
236 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
237 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
238 (md_apply_fix3): Handle TLS relocations.
239 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
240 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
241 associated TLS reloc. Check lituse_tls relocs match up.
242 (emit_insn): Handle TLS relocations.
245 * doc/c-alpha.texi: Add docs for tls relocations.
247 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
249 * config/tc-mips.c (mips_gprel_offset): New variable.
252 2002-05-30 Diego Novillo <dnovillo@redhat.com>
254 * gas/config/tc-d10v.c (check_resource_conflict): Only check
255 write-write conflicts.
256 (md_assemble): Reformat introductory comment.
257 (parallel_ok): Prevent packing only if the first
258 instruction cannot be packed.
260 2002-05-30 Jason Eckhardt <jle@redhat.com>
261 Tom Rix <trix@redhat.com>
263 * config/tc-d10v.c (build_insn): Check for immediates.
265 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
267 * config/tc-mips.c: Replace GP in comments by $gp.
268 (mips_big_got): Initialize.
269 (mips_trap): Initialize.
270 (load_address): Use mips_gp_register instead of hardcoded value.
271 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
272 (macro): Use mips_gp_register instead of hardcoded value.
273 (macro2): Change load_address calls.
274 (md_pcrel_from): Comment formatting.
275 (s_cpload): Use mips_gp_register instead of hardcoded value.
276 (s_cprestore): Likewise. Comment formatting.
277 (s_gpword): Fix data type.
278 (s_cpadd): Use mips_gp_register instead of hardcoded value.
279 (nopic_need_relax): Replace GP in comments by $gp.
280 (mips_elf_final_processing): Better comment.
282 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
284 * configure.in: Add DLX configuraton
285 * Makefile.am: Add DLX configuraton
286 * configure: Regenerate.
287 * Makefile.in: Regenerate.
288 * config/tc-dlx.c: New file.
289 * config/tc-dlx.h: New files.
290 * NEWS: Mention new support.
292 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
294 * config/obj-coff.c (write_object_file): Add missing semicolon.
296 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
298 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
299 by the define. Remove superfluous check of mips_opts.mips16.
300 (append_insn): Likewise. Canonicalize variable increments.
301 (macro_build): Canonicalize variable increments.
302 (macro_build_lui): Likewise.
303 (load_register): Likewise.
304 (load_address): Move pointer initialization.
305 (macro): Move pointer to a more local scope. Canonicalize variable
306 increments. Better comments. Replace magic constant for RA by the
308 (macro2): Replace magic constant for RA by the define. Canonicalize
310 (mips_ip): Canonicalize variable increments.
311 (mips16_ip): Replace magic constant for RA by the define.
312 (my_getSmallParser): Canonicalize variable increments/decrements.
313 (my_getPercentOp): Likewise.
314 (my_getSmallExpression): Likewise.
316 (s_mipsset): Likewise.
317 (s_cpsetup): Likewise.
318 (s_insn): Remove superfluous check of mips_opts.mips16.
319 (s_mips_stab): Likewise.
320 (mips_handle_align): Canonicalize variable increments.
321 (s_mips_ent): Likewise.
322 (s_mips_end): Add comment.
324 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
326 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
327 * configure: Regenerate.
329 2002-05-25 Alan Modra <amodra@bigpond.net.au>
331 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
332 * Makefile.in: Regenerate.
333 * dep-in.sed: Reorder to match OBJS in Makefile.am.
334 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
335 * configure: Regenerate.
336 * as.h: Use #include "" instead of <> for local header files.
337 * flonum-konst.c: Likewise.
338 * flonum-mult.c: Likewise.
340 * listing.c: Likewise.
341 * config/tc-ia64.h: Likewise.
342 * config/tc-v850.h: Likewise.
344 2002-05-24 TAMURA Kent <kent@netbsd.org>
346 * configure.in: Add a target for i386-netbsdpe.
347 * configure: Regenerate.
349 2002-05-23 Jakub Jelinek <jakub@redhat.com>
351 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
352 (obj_elf_common): Call elf_common.
353 (obj_elf_tls_common): New function.
354 (elf_pseudo_tab): Support .tls_common.
355 (special_sections): Add .tdata and .tbss.
356 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
358 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
359 (obj_elf_parse_section_letters): Include T in error message.
360 * config/tc-ppc.c (ppc_section_letter): Likewise.
361 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
362 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
364 * config/tc-sparc.c (md_apply_fix3): Likewise.
365 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
366 Define them if not BFD_ASSEMBLER.
367 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
369 (md_apply_fix3): Add TLS relocs.
370 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
371 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
372 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
373 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
374 (ia64_elf_section_letter): Include T in error message.
375 (md_begin): Support TLS operators.
376 (md_operand): Likewise.
377 (ia64_gen_real_reloc_type): Support TLS relocs.
378 * testsuite/gas/i386/tlspic.s: New file.
379 * testsuite/gas/i386/tlsd.s: New file.
380 * testsuite/gas/i386/tlsnopic.s: New file.
381 * testsuite/gas/i386/tlsd.d: New file.
382 * testsuite/gas/i386/tlsnopic.d: New file.
383 * testsuite/gas/i386/tlspic.d: New file.
384 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
385 * testsuite/gas/ia64/tls.s: New file.
386 * testsuite/gas/ia64/tls.d: New file.
387 * testsuite/gas/ia64/ia64.exp: Add tls test.
388 * write.c (adjust_reloc_syms): Don't change symbols in
389 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
391 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
393 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
394 round the relocation up rather than down.
396 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
398 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
400 * doc/as.texinfo: Document that the COFF version of .section
401 ignores the 'a' flag.
403 2002-05-23 Alan Modra <amodra@bigpond.net.au>
405 * config/tc-alpha.c (assemble_tokens): Protect use of
406 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
408 * write.c (size_seg): Check adjustment to last frag.
409 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
411 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
412 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
413 (write_object_file): Invoke md_do_align if available, and use
414 frag_align_code on text sections.
415 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
416 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
417 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
418 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
419 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
422 2002-05-22 H.J. Lu <hjl@gnu.org>
424 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
427 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
429 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
432 2002-05-22 H.J. Lu <hjl@gnu.org>
434 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
435 for one .loc for compiler.
437 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
439 * config/tc-mips.c (macro): Relax warning, it's toot strict for
442 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
444 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
445 Optimize the rotate by zero case.
447 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
449 * configure.in: Remove accidental enabling of bfd_gas=yes for
451 * configure: Regenerate.
453 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
455 * app.c: Fix formatting.
459 * input-file.c: Likewise.
460 * listing.c: Likewise.
463 * symbols.c: Likewise.
465 2002-05-17 Alan Modra <amodra@bigpond.net.au>
467 * config/obj-generic.c: Delete file.
468 * config/obj-generic.h: Likewise.
470 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
472 * config/tc-avr.c (mcu_types): Update for new devices.
474 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
476 * config/tc-mips.c (macro): Warn about wrong la/dla use.
478 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
480 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
481 worked sometimes by accident. Fix copy&paste comment.
483 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
485 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
486 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
487 (mips_elf_final_processing): Let n32 use .reginfo.
489 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
491 * config/tc-mips.c (append_insn): Fix too small range of variable.
493 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
495 * config/tc-arm.c (arm_cleanup): Remove redundant call to
498 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
500 * config/tc-arm.c (md_assemble): Remove redundant call to
503 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
506 * stabs.c (s_stab_generic): Fix grammatical error in warning
509 2002-05-13 Alan Modra <amodra@bigpond.net.au>
511 * write.c (subsegs_finish): Don't specially align last subseg.
513 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
515 * stabs.c (s_stab_generic): Warn about a description field that is
518 * config/obj-coff.c: Fix compile time warnings when compiling
519 without BFD_ASSEMBLER defined.
522 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
524 (md_pcrel_from_section): Use md_pcrel_from().
526 2002-05-11 Bruno Haible <bruno@clisp.org>
528 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
529 by dwarf2_directive_loc, instead of calling dwarf2_where.
531 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
533 * config/obj-coff.h: Fix formatting.
534 * config/tc-mcore.c: Likewise.
535 * config/tc-mn10300.c: Likewise.
536 * config/tc-openrisc.c: Likewise.
537 * config/tc-or32.c: Likewise.
538 * config/tc-pdp11.c: Likewise.
539 * config/tc-ppc.c: Likewise.
540 * config/tc-ppc.h: Likewise.
541 * config/tc-sh64.c: Likewise.
542 * config/tc-sh.c: Likewise.
543 * config/tc-tic54x.c: Likewise.
544 * config/tc-xstormy16.c: Likewise.
545 * config/tc-xstormy16.h: Likewise.
547 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
549 * config/obj-coff.c: Fix formatting.
550 * config/obj-elf.c: Likewise.
551 * config/tc-alpha.c: Likewise.
552 * config/tc-arm.c: Likewise.
553 * config/tc-d10v.c: Likewise.
554 * config/tc-d30v.c: Likewise.
555 * config/tc-h8300.c: Likewise.
556 * config/tc-hppa.c: Likewise.
558 2002-05-09 Alan Modra <amodra@bigpond.net.au>
560 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
561 reloc when no_cond_jump_promotion.
563 2002-05-08 Jim Wilson <wilson@redhat.com>
565 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
566 current variable part of frag.
568 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
570 * config/tc-mmix.c: Fix formatting.
571 * config/tc-mmix.h: Likewise.
573 2002-05-08 Alan Modra <amodra@bigpond.net.au>
575 * configure: Regenerate.
577 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
579 * config/tc-m68k.c: Fix formatting.
581 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
583 * Makefile.am: Honour DESTDIR.
584 * Makefile.in: Regenerate.
586 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
588 * config/tc-ia64.c: Fix formatting.
589 * config/tc-ia64.h: Likewise.
591 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
593 * config/tc-mips.c: Fix formatting.
594 * config/tc-s390.c: Likewise.
595 * config/tc-s390.h: Likewise.
597 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
599 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
600 information for instructions.
602 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
604 * as.h: Fix formatting.
607 * dwarf2dbg.c: Likewise.
613 * symbols.c: Likewise.
615 2002-05-02 Alan Modra <amodra@bigpond.net.au>
617 * app.c (mri_pseudo): Only declare for TC_M68K.
619 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
620 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
621 BFD_RELOC_16_BASEREL.
622 (md_assemble): Likewise.
623 (md_apply_fix3): Likewise.
625 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
627 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
628 zero into an add of zero - it is not the same.
630 2002-05-01 Arati Dikey <aratid@kpit.com>
632 * tc-sh.c (get_specific): Generate warning if the same
633 destination register is used in parallel instructions.
635 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
637 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
639 2002-05-01 Alan Modra <amodra@bigpond.net.au>
641 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
642 backwards to prevent cascading errors.
644 2002-04-30 Mark Mitchell <mark@codesourcery.com>
646 * configure.in: Add support for powerpc-*-windiss.
647 * configure: Regenerated.
649 2002-04-28 Alan Modra <amodra@bigpond.net.au>
651 * config/tc-s390.c (md_parse_option): Formatting.
653 * config/tc-i386.c: Formatting fixes, add missing space in error
656 2002-04-24 Christian Groessler <chris@groessler.org>
658 * config/tc-z8k.c (build_bytes): Add support for new cases:
659 CLASS_IGNORE and ARG_NIM4.
660 (md_assemble): Prevent destruction of input_line_pointer if
661 get_operands returns failure.
663 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
665 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
666 instructions to be generated by macros.
668 2002-04-24 Andreas Schwab <schwab@suse.de>
670 * config/tc-i386.c (output_jump, output_disp)
671 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
673 (md_apply_fix3): Remember addend value for rela relocations.
674 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
676 2002-04-22 Chris Demetriou <cgd@broadcom.com>
678 * config/tc-mips.c (macro_build): Add close-parenthesis missing
679 from previous change.
681 2002-04-22 Eric Christopher <echristo@redhat.com>
683 * config/tc-mips.c (macro_build): Add warning if macro instructions
684 are expanded into a branch delay slot.
686 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
688 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
689 numbers, gdb relies on them to detect the start of the prologue.
691 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
693 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
694 symbols in merge sections.
696 2002-04-16 Alan Modra <amodra@bigpond.net.au>
698 * as.c (main): Don't reference _bfd_chunksize.
700 2002-04-15 Tom Rix <trix@redhat.com>
702 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
703 symbols in merge sections.
705 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
707 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
708 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
709 argument for the precision.
710 (gen_to_words): Update accordingly.
712 2002-04-10 Alan Modra <amodra@bigpond.net.au>
714 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
715 BFD_VERSION_STRING unavailable.
716 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
718 Tue Apr 9 16:45:48 2002 J"orn Rennecke <joern.rennecke@superh.com>
720 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
721 symbol_used_in_reloc_p is true.
723 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
726 2002-04-04 Alan Modra <amodra@bigpond.net.au>
728 * dep-in.sed: Cope with absolute paths.
729 * Makefile.am (dep.sed): Subst TOPDIR.
731 * Makefile.in: Regenerate.
733 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
735 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
736 (mips_ip): Remove unused variable.
737 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
738 unsigned char with bfd_byte.
739 (s_file): Remove unused variable.
740 (s_mips_ent): Likewise.
742 2002-04-03 Tom Rix <trix@redhat.com>
744 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
746 (find_opcode): Fix warning in as_warn.
747 * config/tc-d10v.h: Update Copyright.
749 2002-04-03 Alan Matsuoka <alanm@redhat.com>
750 Tom Rix <trix@redhat.com>
752 From Jeff Knaggs <jknaggs@redhat.com>
753 * config/tc-d10v.c (check_resource_conflict): New function to
754 check for resource conflicts.
756 From Jason Eckhardt <jle@redhat.com>
757 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
759 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
760 reserved control registers is used.
761 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
764 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
765 * tc-d10v.c (parallel_ok): Prevent packing only if the first
766 instruction cannot be packed.
768 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
769 * gas/config/tc-d10v.c (check_resource_conflict): Only check
770 write-write conflicts.
771 (md_assemble): Reformat introductory comment.
772 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
775 2002-04-03 Alan Modra <amodra@bigpond.net.au>
777 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
778 O_logical_not>): Derive final_seg from add_symbol.
779 <O_multiply..O_logical_or>: More final_seg twiddles.
781 2002-04-01 Jessica Han <jessica@cup.hp.com>
783 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
786 2002-03-27 Andreas Schwab <schwab@suse.de>
788 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
789 field for pc-relative fixups.
790 (output_disp): Likewise.
791 (md_estimate_size_before_relax): Likewise.
792 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
793 pc-relative fixups in 64bit mode.
795 2002-03-22 Alan Modra <amodra@bigpond.net.au>
797 * config/te-aix5.h: Typo fix.
799 2002-03-21 Alan Modra <amodra@bigpond.net.au>
801 * Makefile.am: Run "make dep-am".
802 * Makefile.in: Regenerate.
803 * doc/Makefile.in: Regenerate.
805 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
807 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
808 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
810 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
812 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
813 the EXTENDED bit here; report the estimate according to the
816 2002-03-18 Tom Rix <trix@redhat.com>
818 * configure.in: Add AIX 5 support.
819 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
820 * config/te-aix5.h: New file. AIX 5 support.
821 * configure: Regenerate.
823 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
825 * po/fr.po: Updated version.
827 2002-03-16 Andreas Jaeger <aj@suse.de>
829 * doc/c-mips.texi (Machine Dependencies): Add new node.
831 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
833 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
834 (mips_opts): Initialize "ase_mips3d" member.
835 (file_ase_mips3d): New variable.
836 (CPU_HAS_MIPS3D): New macro.
837 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
838 based on command line options and configuration defaults.
839 (macro_build, mips_ip): Accept MIPS-3D instructions if
840 mips_opts.ase_mips3d is set.
841 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
842 Add support for "-mips3d" and "-no-mips3d" options.
843 (OPTION_ELF_BASE): Move to accomodate new options.
844 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
845 (mips_elf_final_processing): Add a comment indicating that a
846 MIPS-3D ASE ELF header flag should be set, when one exists.
847 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
848 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
849 nomips3d" directives.
851 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
853 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
854 a weak symbol in same section to be within reach.
856 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
858 * po/fr.po: Updated version.
860 2002-03-12 Andreas Schwab <schwab@suse.de>
862 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
863 body record so that an error is given for misplaced .save
866 2002-03-09 Alan Modra <amodra@bigpond.net.au>
868 * config/tc-i386.h (REX_OPCODE): Define.
869 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
870 (rex_byte): typedef to int.
871 * config/tc-i386.c: Group prototypes and vars together.
872 Formatting fixes. Remove occurrences of "register" keyword.
875 (mode_from_disp_size): Add INLINE keyword to prototype.
876 (fits_in_signed_byte): Likewise.
877 (fits_in_unsigned_byte): Likewise.
878 (fits_in_unsigned_word): Likewise.
879 (fits_in_signed_word): Likewise.
880 (fits_in_unsigned_long): Likewise.
881 (fits_in_signed_long): Likewise.
882 (type_names): Constify.
883 (intel_float_operand): Constify param.
884 (add_prefix): Use REX_OPCODE.
885 (md_assemble): Likewise. Modify for changed rex_byte.
886 (parse_insn): Split out of md_assemble.
887 (parse_operands): Likewise.
888 (swap_operands): Likewise.
889 (optimize_imm): Likewise.
890 (optimize_disp): Likewise.
891 (match_template): Likewise.
892 (check_string): Likewise.
893 (process_suffix): Likewise.
894 (check_byte_reg): Likewise.
895 (check_long_reg): Likewise.
896 (check_qword_reg): Likewise.
897 (check_word_reg): Likewise.
898 (finalize_imm): Likewise.
899 (process_operands): Likewise.
900 (build_modrm_byte): Likewise.
901 (output_insn): Likewise.
902 (output_branch): Likewise.
903 (output_jump): Likewise.
904 (output_interseg_jump): Likewise.
905 (output_disp): Likewise.
906 (output_imm): Likewise.
908 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
910 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
912 2002-03-06 Alan Modra <amodra@bigpond.net.au>
914 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
915 relocs except when BFD64.
917 * write.c (number_to_chars_bigendian): Don't abort when N is
918 larger than sizeof (VAL).
919 (number_to_chars_littleendian): Likewise.
921 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
923 * config/tc-hppa.c (md_apply_fix3): Add cast.
924 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
927 2002-03-05 Paul Koning <pkoning@equallogic.com>
929 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
930 (parse_ac5): New function for parsing float regs in float operand.
931 (parse_expression): Remove attempt to make literals be octal.
932 (parse_op_no_deferred): Support float literals.
933 (parse_op): Reject attempts to refer to float regs.
934 (parse_fop): New function, like parse_op but for float operand.
935 (md_assemble): Add cases to parse float operands. Also fix
936 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
938 2002-03-04 H.J. Lu <hjl@gnu.org>
940 * config/obj-elf.c (special_section): Add .init_array,
941 .fini_array and .preinit_array.
943 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
944 .init_array and .fini_array.
946 2002-03-01 Jakub Jelinek <jakub@redhat.com>
948 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
950 (obj_frob_symbol): Copy visibility.
952 2002-02-28 Jakub Jelinek <jakub@redhat.com>
954 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
956 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
958 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
962 2002-02-26 Chris Demetriou <cgd@broadcom.com>
964 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
965 only, undo the changes made on 2001-06-08, with the
966 effect being that common or extern symbols are
967 adjusted for embedded-PIC, but weak symbols are not.
968 (md_estimate_size_before_relax: Likewise, with the effect
969 that extern symbols are treated the same as weak symbols
970 only if not embedded-PIC.
971 (mips_fix_adjustable) Likewise, with the effect that
972 weak or extern symbols are not adjusted for embedded-PIC.
973 (md_apply_fix3): Tweak so that the case where value is zero
974 is handled more correctly for embedded-PIC code.
976 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
978 * doc/as.texinfo (Overview): Add missing @ifset IA64
980 * configure.in (LINGUAS): Add es.po.
981 * configure: Regenerate.
982 * po/es.po: New file.
984 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
986 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
987 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
988 and NO_PIC cases. Code cleanup.
989 (macro2): Fix handling of 64bit register loads.
991 2002-02-25 David Mosberger <davidm@hpl.hp.com>
993 * doc/as.texinfo: Add entry for IA64.
994 * doc/c-ia64.texi: New file.
996 2002-02-25 Alan Modra <amodra@bigpond.net.au>
998 * config/tc-hppa.c: Update copyright date.
1000 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1001 Remove references to chip manufacturers.
1002 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1004 (md_show_usage): Remove references to chip manufacturers. Mention
1006 (md_begin): Test power4 opcode flag bits.
1008 2002-02-22 David Mosberger <davidm@hpl.hp.com>
1010 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1011 count exceeds prologue count.
1012 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1013 (unwind.label_prologue_count): New member.
1015 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1017 (get_saved_prologue_count): New function.
1018 (save_prologue_count): New function.
1019 (free_saved_prologue_count): New function.
1020 (dot_label_state): Record state label by calling save_prologue_count().
1021 (dot_copy_state): Restore prologue count by calling
1022 get_saved_prologue_count().
1023 (generate_unwind_image): Free up list of saved prologue
1024 counts by calling free_saved_prologue_counts().
1026 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
1028 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1029 function declarations.
1031 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
1033 * NEWS: Note that GASP is now deprecated.
1034 * Makefile.am: Do not build gasp-new by default.
1035 * Makefile.in: Regenerate.
1036 * doc/Makefile.am: Do not install gasp.info.
1037 * doc/Makefile.in: Regenerate.
1038 * gas/gasp.texi: Note that gasp is now deprecated.
1040 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1042 * NEWS: Mark 2.12 branch.
1044 2002-02-19 Tom Tromey <tromey@redhat.com>
1046 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1048 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1050 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1053 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1055 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1056 Make bit size independent of architecture switch.
1057 (md_begin): Add warning for -m64 with -Aesa.
1058 (s390_md_end): Use renamed architecture defines.
1060 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
1062 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1064 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
1066 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1069 2002-02-15 Chris Demetriou <cgd@broadcom.com>
1071 * config/tc-mips.c (md_estimate_size_before_relax): Really
1072 make sure we treat weak like extern only for ELF. (Fixes
1073 patch from 2001-07-25.)
1075 2002-02-15 Ben Elliston <bje@redhat.com>
1077 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1080 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1082 * NEWS: Mention support for MMIX.
1084 2002-02-13 Chris Demetriou <cgd@broadcom.com>
1086 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1087 a sequence of indpendent 'if' statements for easier debugging
1088 and future modification.
1090 2002-02-13 Matt Fredette <fredette@netbsd.org>
1092 * config/tc-m68k.c (md_show_usage): No longer display a
1093 hard-coded "68020" for the default CPU, instead display the
1094 canonical name of the true, configured default CPU.
1095 (m68k_elf_final_processing): Mark objects for sub-68020
1096 CPUs with the new EF_M68000 flag.
1098 2002-02-13 Andreas Schwab <schwab@suse.de>
1100 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1101 pc-relative relocations to merge sections in 64-bit mode.
1103 2002-02-13 Ben Elliston <bje@redhat.com>
1105 * NEWS: Document floating point number handling in gasp.
1106 * gasp.c: Include <assert.h> and "xregex.h".
1107 (is_flonum): New function.
1108 (chew_flownum): Likewise.
1109 (change_base): Consume flonums from the input, where possible.
1110 * doc/gasp.texi (Constants): Document floating point numbers.
1112 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1114 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1115 that implicitly use LR and RR selectors.
1117 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1119 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
1120 and `epsw' as available on AM33 and above only.
1121 (other_register_name): Add logic to handle machine type encoded in
1124 2002-02-11 Tom Rix <trix@redhat.com>
1126 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1129 Mon Feb 11 11:23:38 2002 Alexandre Oliva <aoliva@redhat.com>
1131 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1134 Mon Feb 11 12:59:29 CET 2002 Jan Hubicka <jh@suse.cz>
1136 * i386.c (md_assemble): Support 32bit address prefix.
1137 (i386_displacement): Likewise.
1138 (i386_index_check): Accept 32bit addressing in 64bit mode.
1140 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1142 * config/tc-sh.c (dot): Removed unused function.
1144 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1146 * Makefile.am: "make dep-am".
1147 * Makefile.in: Regenerate.
1148 * aclocal.m4: Regenerate.
1149 * config.in: Regenerate.
1150 * configure: Regenerate.
1151 * doc/Makefile.in: Regenerate.
1153 2002-02-10 Richard Henderson <rth@redhat.com>
1155 * doc/c-alpha.texi: New file.
1156 * doc/Makefile.am (CPU_DOCS): Add it.
1157 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1159 2002-02-09 Richard Henderson <rth@redhat.com>
1161 * config/tc-alpha.c (O_samegp): New.
1162 (USER_RELOC_P): Include it.
1163 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1164 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1165 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1166 (alpha_validate_fix): New.
1167 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1169 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
1171 * doc/c-cris.texi: New.
1172 * doc/all.texi: @set CRIS.
1173 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
1174 Include c-cris.texi.
1175 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1176 * doc/Makefile.in: Regenerate.
1178 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1180 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1181 determine if a number is a sign-extended 32-bit number.
1182 (load_register): Use IS_SEXT_32BIT_NUM.
1183 (macro): Check if load/store macro handling is using a
1184 constant 32-bit address on 64-bit address systems, and if
1185 so optimize the generation of that address.
1187 2002-02-08 Richard Henderson <rth@redhat.com>
1189 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1190 we've eliminated all foreign relocation types yet.
1191 (alpha_fix_adjustable): Likewise.
1193 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1195 Contribute sh64-elf.
1196 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1197 Stephen Clarke <Stephen.Clarke@st.com>
1198 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1199 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
1200 * config/tc-sh.c (md_relax_table): Added default sizes for
1201 non-PC-relative UNDEF_MOVI, and relaxation sequences for
1202 MOVI_16, MOVI_32 and MOVI_48.
1203 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1204 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1206 (shmedia_md_estimate_size_before_relax): Remove redundant
1207 blocks. Set fragP->fr_var even if relaxation type unchanged.
1208 Retain UNDEF_MOVI until expression decays to number.
1209 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1210 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1211 relocation types. Take fixP->fx_addnumber into account too.
1212 (shmedia_md_apply_fix): Likewise.
1213 (shmedia_md_convert_frag): Likewise.
1214 (shmedia_build_Mytes): Likewise.
1215 (sh64_consume_datalabel): Complain about nested datalabel.
1216 Support PIC relocs. Call sh_parse_name.
1217 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1218 in tc-sh.h to SHmedia reloc types.
1219 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1220 MOVI_GOTPC): New relaxation constants.
1221 (md_relax_table): Introduce relaxation directives for PIC-related
1223 (sh_PIC_related_p): Handle datalabel.
1224 (sh_check_fixup): Choose SH5 PIC relocations.
1225 (sh_cons_fix_new): Added BDF_RELOC_64.
1226 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
1227 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1228 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1229 current ISA is SHmedia, get 7 bytes.
1230 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
1231 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1233 * config/tc-sh64.c (shmedia_apply_fix): Rename to
1234 shmedia_apply_fix3 and make void.
1235 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
1236 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1238 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
1239 * config/tc-sh64.h (md_parse_name): Take &c as argument.
1240 2001-03-14 DJ Delorie <dj@redhat.com>
1241 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1242 * doc/Makefile.in(CPU_DOCS): Ditto.
1243 * doc/c-sh64.texi: New file.
1244 * doc/as.texinfo: Add SH64 support.
1245 2001-03-13 DJ Delorie <dj@redhat.com>
1246 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1247 A_REUSE_PREV so that its purpose is more obvious.
1248 (shmedia_build_Mytes): Ditto.
1249 2001-03-07 DJ Delorie <dj@redhat.com>
1250 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1252 (sh64_vtable_inherit): Ditto.
1253 (strip_datalabels): New, strip "datalabel" from given line.
1254 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1256 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
1257 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1259 (shmedia_build_Mytes): ... to here.
1260 2001-03-06 DJ Delorie <dj@redhat.com>
1261 * config/tc-sh.c: Remove sh64-specific uaquad now that there
1263 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
1264 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1265 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1266 address by one in call to dwarf2_emit_insn.
1267 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
1268 Implement ".abi" pseudo and correct .cranges descriptors. Correct
1269 alignment handling broken by imported changes.
1270 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1271 (sh64_handle_align): Declare.
1272 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1273 (sh64_max_mem_for_rs_align_code): Declare.
1274 (enum sh64_isa_values): Moved here from tc-sh64.c.
1275 (md_do_align): Define.
1276 (sh64_do_align): Declare.
1277 (struct sh64_tc_frag_data): New.
1278 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
1280 (TC_FRAG_INIT): Change to set new datatype.
1281 (struct sh64_segment_info_type): Rename member
1282 last_flushed_location to last_contents_mark. All users changed.
1283 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1284 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1285 * config/tc-sh.c (md_pseudo_table): Add ".abi".
1286 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
1287 of unsetting seen_insn.
1288 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
1289 call sh64_update_contents_mark.
1290 (sh_handle_align): Remove HAVE_SH64-conditioned code.
1291 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
1292 enum sh64_isa_values.
1293 (sh64_set_contents_type): Drop segT parameter. All callers changed.
1294 (emitting_crange): Boolean guard moved to file scope from function
1295 scope in sh64_set_contents_type.
1297 (sh64_update_contents_mark): New; most split out from
1298 sh64_flush_pending_output.
1299 (shmedia_md_end): Call sh64_update_contents_mark. Set
1300 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
1301 (sh64_do_align): New function.
1302 (sh64_max_mem_for_rs_align_code): New function.
1303 (sh64_handle_align): Rename from shmedia_do_align. Make
1304 non-static. Add head comment. Emit zero bytes for n bytes modulo
1305 four. Change return-type to void.
1306 (shmedia_elf_new_section): Remove.
1307 (shmedia_md_assemble): Call sh64_update_contents_mark.
1308 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
1309 new frag. Call sh64_update_contents_mark after making the new
1311 (sh64_flush_pending_output): Just call sh64_update_contents_mark
1312 and sh_flush_pending_output.
1313 (sh64_flag_output): Also call md_flush_pending_output, but add
1314 condition on not emitting_crange.
1315 (sh64_tc_cons_fix_new): Remove.
1316 2001-01-12 Nick Clifton <nickc@redhat.com>
1317 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
1318 alignment handling scheme imported from sourceware.
1319 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
1320 * config/tc-sh64.h (TARGET_FORMAT): Define.
1321 (sh64_target_format): Prototype.
1322 * config/tc-sh64.c (sh64_target_mach): New function.
1323 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
1324 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
1325 zero_address_frag instead of copying the frag of the symbol.
1326 (shmedia_frob_file_before_adjust): Ditto.
1327 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
1328 to valueT to remove signedness.
1329 (shmedia_md_convert_frag): Add parameter final. Rename parameter
1330 headers to output_bfd. Do not evaluate symbols if final is false;
1332 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
1333 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
1334 to the current frag, call shmedia_md_convert_frag to emit fixups
1335 and make frag_wane neutralize the frag. Update comments.
1336 * config/tc-sh.c (md_convert_frag): Change caller of
1337 shmedia_md_convert_frag.
1338 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1339 * config/tc-sh64.h: Tweak comments and correct formatting.
1340 * config/tc-sh64.c: Ditto.
1341 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
1342 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
1343 for the no-relocation case.
1344 (shmedia_check_limits): Fix range check being off-by-one for PTA.
1345 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
1347 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
1349 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
1350 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
1352 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
1354 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1355 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
1356 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
1357 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
1358 al>: Set lowest bit of field to relocate to 1 and rest to empty,
1359 if reloc is emitted.
1360 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1361 New options plus bugfixes.
1362 * config/tc-sh.c (md_longopts): New options "-no-expand" and
1364 (md_parse_option): Handle new options.
1365 (md_show_usage): Add blurb for new options.
1366 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
1367 (sh64_expand, sh64_pt32): New variables.
1368 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
1369 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
1370 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
1371 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
1372 <resolved previously-pc-relative relocs>: Handle
1373 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
1374 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
1375 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
1376 points to SHcompact code.
1377 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
1378 SH64PCREL16)>: Check that ISA of what operand points at and
1379 PTA/PTB matches, or emit error.
1380 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
1381 SHMEDIA_BFD_RELOC_PT.
1382 (shmedia_immediate_op): If pcrel, emit fixup also for constant
1384 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
1385 condition for MOVI expansion.
1386 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
1387 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
1389 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
1391 (sh64_target_format): Error-check setting of sh64_pt32 and
1392 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
1393 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
1394 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
1395 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1396 * config/tc-sh64.c: Improve comments.
1397 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
1398 not say the linker will check correctness of PTA/PTB expansion.
1399 (shmedia_md_end): Make non-static.
1400 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
1402 * config/tc-sh.c (sh_finalize): Remove.
1403 * config/tc-sh.h (md_end): Do not define.
1404 Remove prototype for sh_finalize.
1405 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1406 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
1407 sh64_section_data container when storing section type in tdata
1408 field in elf_section_data.
1409 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
1411 * Makefile.am: Update dependencies.
1412 * Makefile.in: Regenerate.
1413 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
1414 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
1415 dwarf2_emit_insn call with test on debug_type.
1416 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1417 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
1418 CRT_SH5_ISA32 sticky for 64-bit.
1419 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1420 Generate .crange sections when switching ISA mode or emitting
1421 constants in same section as code.
1422 * config/tc-sh64.c: Reformat structure definitions.
1423 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
1425 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
1426 to emit a .cranges descriptor when contents type changes. Only
1427 emit error if changing contents type and -no-mix is in effect.
1428 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
1429 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
1430 (shmedia_md_end): Set sh64_end_of_assembly. Pass
1431 sh64_flush_last_crange over sections.
1432 When checking main symbol of datalabel symbol, check for
1433 STO_SH5_ISA32, not ISA type of section in definition.
1434 (shmedia_frob_file_before_adjust): Check main symbol for
1435 STO_SH5_ISA32; don't check ISA type of section in definition.
1436 (shmedia_frob_section_type): Adjust for .cranges; set section flag
1437 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
1438 .cranges entries have been output.
1439 (shmedia_elf_new_section): Just call md_flush_pending_output.
1440 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
1441 fix. Do not set tc_segment_info_data.in_code for section. Call
1442 sh64_set_contents_type for SHmedia code.
1443 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
1444 false. Call md_flush_pending_output.
1445 (sh64_target_format): Check that -no-mix and
1446 -shcompact-const-crange are used in sane combination with other
1448 (shmedia_md_pcrel_from_section): Check type of fix for how to
1450 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
1451 not ISA type of section in definition.
1452 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
1453 hold contents-type state.
1454 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
1455 (sh64_flush_pending_output): Declare.
1456 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
1457 (sh64_tc_cons_fix_new): Declare.
1458 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
1459 call sh64_flag_output.
1460 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
1461 call sh64_set_contents_type to mark SHcompact code and set
1463 (md_longopts): New options "-no-mix" and
1464 "-shcompact-const-crange".
1465 (md_parse_option): Handle new options.
1466 (md_show_usage): Add blurb for new options.
1467 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
1468 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1469 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
1470 (sh64_last_insn_frag): New.
1471 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
1472 to get frag for insn opcode for generating fixups; do not assume it
1474 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
1476 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
1478 (TC_FRAG_TYPE): Define as fragS *.
1479 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
1480 (sh64_last_insn_frag): Declare.
1481 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
1482 not == NULL before dereferencing.
1483 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1484 Get rid of BFD section flag and EF_SH64_ABI64.
1485 * config/tc-sh64.c (shmedia_frob_section_type): Use
1486 elf_section_data (sec)->tdata, not a specific BFD section flag, to
1487 communicate the section as containing SHmedia code. Describe why.
1488 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
1489 EF_SH64 regardless of ABI.
1490 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
1491 in error message. Handle resolved expressions for
1492 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1493 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
1494 (shmedia_check_limits): Handle BFD_RELOC_64.
1495 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
1496 a STO_SH5_ISA32 symbol, only the BFD value.
1497 2000-12-11 Ben Elliston <bje@redhat.com>
1498 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
1499 dwarf2_generate_asm_lineno.
1500 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
1501 Handle PC-relative MOVI expansions with assembler relaxation.
1502 Generate PC-relative relocs from 16-bit PC-relative expressions.
1503 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
1504 (shmedia_md_pcrel_from_section): ...here.
1505 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
1506 turned completely resolved. Adjust relocation type for 16-bit
1507 immediate operands that has turned PC-relative. Adjust back for
1508 MD_PCREL_FROM_SECTION being applied twice.
1509 (shmedia_md_convert_frag): Always emit reloc for expression with
1510 global or weak symbol. Handle relaxation result for PC-relative
1512 (shmedia_md_estimate_size_before_relax): An expression with a weak
1513 or global symbol can not be relaxed. Break out tests for
1514 relaxable symbol into variable sym_relaxable.
1515 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
1516 UNDEF_MOVI)>: Break out any PC-relative expression and change
1518 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
1520 <case A_IMMS16>: Fix typo for initial minor relaxation type of
1521 MOVI expansion. If X_op_symbol of the immediate expression is
1522 set, make an expression symbol for the argument to frag_var.
1523 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
1525 (END): Adjust for new relaxations.
1526 (md_relax_table): Add entries for new relaxations.
1527 2000-12-07 Ben Elliston <bje@redhat.com>
1528 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
1529 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1530 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
1531 SHORI operand offsets in PT/PTA/PTB expansions.
1532 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1533 Implement DataLabel semantics.
1534 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
1535 shmedia_frob_file_before_adjust.
1536 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
1537 (DATALABEL_SUFFIX): Define.
1538 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
1539 symbol list to update "datalabel" symbols to their main symbol
1541 (shmedia_frob_file_before_adjust): New.
1542 (sh64_adjust_symtab): For remaining datalabel symbols, set to
1543 undefined and set STT_DATALABEL.
1544 (sh64_frob_label): Initialize TC symbol field.
1545 (sh64_consume_datalabel): Actually implement semantics. New
1546 parameter operandf, call it instead of expression.
1547 (sh64_exclude_symbol): New.
1548 * config/tc-sh64.h (md_parse_name): Pass on the function operand
1549 to sh64_consume_datalabel.
1550 (tc_symbol_new_hook): Define to tc_frob_symbol.
1551 (TC_SYMFIELD_TYPE): Define to symbolS *.
1552 (tc_frob_symbol): Define to call sh64_exclude_symbol.
1553 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
1554 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
1556 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
1557 generating dwarf2 debug information.
1558 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1559 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
1560 elf64-sh64 for the 64-bit ABI.
1561 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
1563 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1564 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
1566 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1567 * config/tc-sh64.c: Tweak comments, formatting and error messages.
1568 (enum sh64_abi_values): New type.
1569 (enum sh64_isa_values): New type.
1570 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
1571 (seen_shcompact_mode, seen_shmedia_mode): Delete.
1572 (sh64_abi): Replace shmedia_64.
1573 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
1574 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
1575 (s_sh64_mode): Check validity for this target.
1576 (sh64_target_format): Initialize defaults for ISA and ABI.
1577 Fallback to old object format if no SH64 ISA or ABI has been
1579 * config/tc-sh.c (md_parse_option): Check combinations for errors.
1580 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
1581 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
1582 * config/tc-sh64.h: Fix typo in comment.
1583 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
1584 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
1585 <PT fixups for absolute values>: Size will be longest, not
1587 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
1588 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
1589 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
1590 and l1 to hold lowercase of two first characters. Change all
1591 remaining TO_LOWER to tolower.
1592 * config/tc-sh64.c (TO_LOWER): Delete.
1593 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
1594 (md_parse_name): Define.
1595 (sh64_consume_datalabel): Declare.
1596 (DOLLAR_DOT): Define.
1597 * config/tc-sh64.c (shmedia_parse_exp): New.
1598 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
1599 (shmedia_parse_reg): Remove const from src
1601 (shmedia_get_operands): Ditto for args parameter and ptr variable.
1602 (shmedia_md_assemble): Ditto for op_end variable.
1603 (shmedia_get_operand): Ditto for ptr parameter and src variable.
1604 Use shmedia_parse_exp, not parse_exp.
1605 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
1606 parameter. All callers changed.
1607 (shmedia_get_operand): Add shmedia_arg_type parameter. All
1609 (shmedia_parse_reg): Put first two character in local variables.
1610 Use tolower, not TO_LOWER. If no register is found and argtype
1611 indicates a control register, scan shmedia_creg_table
1613 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1614 * Makefile.am (CPU_TYPES): Add sh64.
1615 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
1616 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
1617 Regenerate dependencies.
1618 * Makefile.in: Regenerate.
1619 * configure.in: Add support for sh64-*-elf*.
1620 * configure: Regenerate.
1621 * config/tc-sh64.h: New.
1622 * config/tc-sh64.c: New.
1623 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
1624 .mode, .isa and .uaquad.
1625 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
1626 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
1627 [HAVE_SH64] (END): Define as 10.
1628 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
1629 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
1631 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
1632 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
1633 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
1634 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
1636 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
1637 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
1638 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
1639 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
1640 SHmedia instructions. Handle state-change after switching to
1642 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
1643 (md_parse_option) [HAVE_SH64]: Parse new options.
1644 (md_show_usage) [HAVE_SH64]: Show usage of new options.
1645 (md_convert_frag) [HAVE_SH64] <default>: Call
1646 shmedia_md_convert_frag instead of abort.
1647 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
1648 BFD_RELOC_SH_SHMEDIA_CODE.
1649 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
1650 SHcompact or SHmedia code.
1651 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
1652 shmedia_md_apply_fix instead of abort.
1653 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
1654 result from calling shmedia_md_estimate_size_before_relax instead
1656 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
1658 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
1659 shmedia_init_reloc and do nothing more if it returns non-zero.
1660 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
1661 * po/POTFILES.in: Regenerate.
1662 * po/gas.pot: Regenerate.
1664 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1666 * config/tc-sh.c (parse_at): Install the correct version of
1669 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
1670 assume fixP->fx_subsy is non-NULL.
1672 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1674 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
1675 A_DISP_PC_ABS, and adjust it by -4.
1676 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
1678 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
1679 the operand type is not A_DISP_PC_ABS.
1681 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1683 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
1684 common and weak symbols. Handle common and weak symbols as
1685 undefined symbols with regards to GREG handling and merging.
1686 (mmix_frob_file): Ditto.
1688 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1690 * configure.in (hppa-*-netbsd*): New target.
1691 * configure: Regenerate.
1692 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
1694 2002-02-02 Alan Modra <amodra@bigpond.net.au>
1696 * config/tc-v850.c: Add missing prototypes amd use old-style
1697 function definitions.
1698 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
1699 (sdata_section tdata_section, zdata_section, sbss_section,
1700 tbss_section, zbss_section, rosdata_section, rozdata_section,
1701 scommon_section, tcommon_section, zcommon_section,
1702 call_table_data_section, call_table_text_section): Delete.
1703 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1704 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
1705 v850_call_table_data, v850_call_table_text): Delete.
1706 (struct v850_seg_entry): New.
1707 (v850_seg_table): New.
1708 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
1709 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
1710 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
1711 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
1714 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
1715 recording of alignment.
1716 (md_pseudo_table): Use v850_seg.
1717 (md_begin): Don't init .call_table_data and .call_table_text here.
1718 Set v850_seg_table bss entry.
1720 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1722 Support on-demand global register allocation by passing on
1723 base-plus-offset relocs to the linker.
1724 * config/tc-mmix.c: Tweak and fix typos in comments.
1725 (allocate_undefined_gregs_in_linker): New variable.
1726 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
1727 (md_longopts): Add --linker-allocated-gregs.
1728 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
1729 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
1730 (md_show_usage): Update text for -x. Add text for
1731 --linker-allocated-gregs.
1732 (tc_gen_reloc): Derive default value for addend from val and
1733 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
1734 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
1735 GREG if allocate_undefined_gregs_in_linker.
1736 * doc/as.texinfo (Overview) <Target MMIX options>: Add
1737 --linker-allocated-gregs.
1738 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
1739 --linker-allocated-gregs. Mention that it's implied by -x.
1740 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
1741 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
1743 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
1745 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1747 * Makefile.am: Run "make dep-am"
1748 * Makefile.in: Regenerate.
1750 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1752 * config/tc-or32.c: New file.
1753 * config/tc-or32.h: New file.
1754 * configure.in: Add support for or32 targets.
1755 * configure: Regenerate.
1756 * config/obj-coff.c: Add support for or32 targets.
1757 * config/obj-coff.h: Add support for or32 targets.
1758 * Makefile.am: Add support for or32 targets.
1759 * Makefile.in: Regenerate.
1760 * NEWS: Mention support for OpenRISC.
1761 * doc/Makefile.in: Regenerate.
1762 * po/POTFILES.in: Regenerate.
1763 * po/gas.pot: Regenerate.
1765 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
1767 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
1770 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1772 * config/tc-mips.c (tc_gen_reloc): Arrange for
1773 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
1774 their LO16 parts, even for ELF.
1776 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
1778 * config/tc-i386.c: Protect definitions of true and false
1781 2002-01-28 Jakub Jelinek <jakub@redhat.com>
1783 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
1784 made because of .weak, if they are neither defined nor used in any
1787 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1789 * configure: Regenerated.
1791 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1793 * doc/Makefile.am (install): Depend on install-info.
1794 * doc/Makefile.in: Regenerate.
1796 2002-01-26 Nick Clifton <nick@redhat.com>
1798 * po/fr.po: Updated version
1800 2002-01-24 Kazu Hirata <kazu@hxi.com>
1802 * config/tc-h8300.c (check_operand): Don't print a warning
1803 when a valid 24-bit address is given to a 16-bit address
1806 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1808 * config/tc-sh.c (sh_elf_suffix): Removed.
1809 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
1810 sh_end_of_match, sh_parse_name): New functions.
1811 (sh_elf_cons): Simplify.
1812 (parse_exp): Reject misplaced PIC operands.
1813 (md_undefined_symbol): Simplify.
1814 (sh_fix_adjustable): Let @GOTOFF be adjusted.
1815 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
1816 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
1817 Complain if subsy remains at the end.
1818 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
1819 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
1821 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
1823 * config/tc-mn10300.c (xr_registers): Move `pc'...
1824 (other_registers): ... here.
1826 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1828 * Makefile.am: Run "make dep-am".
1829 * Makefile.in: Regenerate.
1830 * gas/po/POTFILES.in: Regenerate.
1832 2002-01-21 DJ Delorie <dj@redhat.com>
1834 * config/obj-coff.c (obj_coff_init_stab_section): Make the
1835 stabstr_name allocation permanent, as it will be referenced from
1838 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1840 * configure.in (ia64-*-netbsd*): New target.
1841 * configure: Regenerate.
1843 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
1845 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
1847 <Detailed description, ARM options>: Ditto.
1848 * doc/c-arm.texi (ARM Options): Ditto.
1850 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1852 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
1853 do_mia, do_mar and do_mra respectively.
1854 (do_mav_*): Renamed from do_c_*.
1855 (mav_reg_required_here, mav_parse_offset): Renamed from
1856 cirrus_reg_required_here and cirrus_parse_offset respectively.
1857 (MAV_MODE?): Renamed from CIRRUS_MODE?.
1859 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1860 Keith Walker <keith.walker@arm.com>
1862 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
1863 (insns): Add pattern for bxj instruction.
1864 (do_bxj): New function.
1865 (arm_cpus): Add arm926ej.
1866 (arm_archs): Add armv5tej.
1868 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1870 * doc/c-arm.texi: Add new fpe options to list of supported flags.
1872 2002-01-19 Keith Walker <keith.walker@arm.com>
1874 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
1876 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1878 * NEWS: Mention new ARM command-line options and VFP support.
1880 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
1882 (ARM_CEXT_MAVERICK): Similarly.
1883 (ARM_ANY): Now means any core instruction.
1884 (CPU_DEFAULT): Default to ARM_ANY.
1885 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
1886 (pic_code): Declare for all object types. Make type int.
1887 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
1888 (march_fpu_opt, mfpu_opt): Declare.
1889 (md_longopts): Tidy up conditional definitions.
1890 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
1891 (arm_long_opts): New tables.
1892 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
1893 (arm_parse_extension): New function.
1894 (md_parse_option): Rewrite using new table-driven system.
1895 (md_show_usage): Use new table-driven system.
1896 (md_begin): Calculate cpu_variant from command line option data.
1897 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
1898 command-line options.
1899 * doc/c-arm.texi: Likewise.
1901 2002-01-18 Andreas Jaeger <aj@suse.de>
1903 * as.c (parse_args): Update year.
1905 2002-01-17 Timothy Wall <twall@alum.mit.edu>
1907 * config/tc-tic54x.c (encode_address): Add a more informative
1908 warning about incorrect syntax.
1910 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1912 * po/gas.pot: Regenerate.
1914 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1916 * macro.c (get_any_string): Add no-c-format comment to prevent
1917 confusion when translating string.
1918 * gasp.c (get_any_string): Add no-c-format comment to prevent
1919 confusion when translating string.
1921 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1922 Johannes Stezenbach <js@convergence.de>
1923 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
1924 matched before the shorter ones.
1925 (my_getSmallParser): Fix handling of nested parentheses in
1926 percent_op's. Code cleanup.
1927 (my_getPercentOp): New function, code from my_getSmallParser.
1928 (my_getSmallExpression): Fix handling of closing parentheses.
1929 Code cleanup. Better comments.
1931 2002-01-16 Nick Clifton <nickc@redhat.com>
1933 po/tr.po: New file: Turkish translation.
1934 configure.in (LINGUAS): Add "tr".
1935 configure: Regenerate.
1937 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1939 Support for VFP instructions
1940 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
1941 (cp_address_required_here): New argument wb_ok. When false, do not
1942 accept write-back forms of addressing. Change all callers.
1943 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
1944 (FPU_VFP_EXT_V2): Define.
1945 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
1946 Define in terms of above.
1947 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
1948 (vfp_reg): New struct.
1949 (vfp_regs): New array of registers.
1950 (insns): Add VFP instructions.
1951 (sn_table): New array of VFP single-precision register names.
1952 (dn_table): New array of VFP double-precision register names.
1953 (all_reg_maps): Add the new register tables.
1954 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
1955 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
1956 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
1957 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
1958 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
1959 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
1960 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
1961 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
1962 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
1963 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
1964 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
1965 (do_vfp_sp_dp_cvt): New functions.
1966 (md_begin): Set soft-float flag for appropriate VFP work.
1967 (md_atof): Handle VFP-format doubles.
1968 (md_parse_option): Handle VFP command-line options.
1969 (md_show_usage): Display VFP command-line options.
1971 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1973 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
1974 various command line options.
1976 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1978 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
1980 (xstormy16_md_apply_fix3): Do not return a value.
1982 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1984 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
1985 the -EL/-EB option that matches the target's endianness.
1986 (md_parse_option): Likewise.
1988 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1990 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
1991 is not dependent on ARM_BI_ENDIAN.
1993 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1995 * tc-arm.c (all error messages): Normalize capitalization of messages.
1997 * tc-arm.h (md_operand): Delete define.
1998 * tc-arm.c (in_my_get_expression): New static variable.
1999 (my_get_expression): Set and clear it.
2000 (md_operand): New function. If called from my_get_expression
2001 put the error in inst.error.
2002 (output_inst): Now takes argument of instruction being assembled.
2003 Print it out with any error message.
2004 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2006 (end_of_line): Don't update inst.error if it is already set.
2008 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2010 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
2011 op that can be translated into a mvn instruction.
2013 2002-01-11 Steve Ellcey <sje@cup.hp.com>
2015 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2016 setting default md.flags.
2017 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2018 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2019 * gas/config/tc-ia64.c (setup_unwind_header): Add support
2020 for 32 bit unwind info blocks.
2021 (generate_unwind_image): Add support for different types
2022 of unwind images (32 bits and/or big-endian).
2023 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2024 (ia64_target_format): Add support for hpux target formats.
2025 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2026 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2027 SHT_FINI_ARRAY elf section types.
2029 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
2031 * tc-arm.c (struct reg_entry): Move before prototypes.
2032 (int_register, cp_register, fp_register): Delete.
2033 (reg_table): Delete. Replaced with ...
2034 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2035 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2036 (mav_dspsc_table): ... one table per register set.
2037 (arm_reg_hsh): Delete.
2038 (struct reg_map): New structure.
2039 (all_reg_maps): New array.
2040 (enum arm_reg_type): New enums.
2041 (build_reg_hsh): New function.
2042 (insert_reg_alias): Use hash table passed by caller. Adjust all
2044 (create_register_alias): New function, split out from ...
2045 (md_assemble): ... here.
2046 (md_begin): Build new register hash tables.
2047 (arm_reg_parse): New argument for the hash table to search. Adjust all
2049 (arm_reg_parse_any): New function.
2050 (co_proc_number): Look up the processor number in the processor hash
2052 (cirrus_regtype): Delete.
2053 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2054 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2055 (ARM_EXT_MAVERICKsc_register): Delete.
2056 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2057 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2059 (do_c_triple_4, do_c_triple_5): Delete.
2060 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2061 (do_c_quad_6): Delete.
2062 (do_c_quad_6[ab]): New functions.
2063 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2064 arguments to use new register parsing methods.
2065 (cirrus_reg_required_here): Likewise.
2066 (insns): Reclassify cirrus maverick worker functions.
2067 (cirrus_valid_reg): Delete.
2069 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2071 * configure.in (sh*le): Set cpu_type=sh and endian=little.
2072 (sh*-*-netbsdelf*): New target.
2073 * configure: Regenerate.
2074 * tc-sh.h: Update copyright years.
2075 (TARGET_FORMAT): Add version for TE_NetBSD.
2077 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2079 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2082 2002-01-06 Alan Modra <amodra@bigpond.net.au>
2084 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2085 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2087 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
2089 * tc-mips.c (mips_cprestore_valid): New flag.
2090 (mips_frame_reg_valid): New flag.
2091 (macro) [M_JAL_2]: Check both flags.
2092 [M_JAL_A]: Likewise.
2093 (s_cprestore): Set mips_cprestore_valid.
2094 (tc_get_register): If setting mips_frame_reg, set
2095 mips_frame_reg_valid and clear mips_cprestore_valid.
2096 (s_mips_ent): Clear both flags.
2097 (s_mips_end): Clear both flags.
2099 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2101 * write.c (write_object_file): Make use of bfd_section_list_remove.
2102 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2103 * config/tc-mmix.c (mmix_frob_file): Likewise.
2105 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2107 * configure.in (i386-*-netbsdelf*): Collapse target into...
2108 (i386-*-netbsd*): ...this. Add support for x86-64.
2109 * configure: Regenerated.
2111 2002-01-03 matthew green <mrg@redhat.com>
2113 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2115 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2117 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2120 For older changes see ChangeLog-0001
2126 version-control: never