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