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