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