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