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