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