2002-11-20 Klee Dienes <kdienes@apple.com>
[binutils-gdb.git] / gas / ChangeLog
1 2002-11-20 Klee Dienes <kdienes@apple.com>
2
3 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
4 coalesce the name fields to use the same pointer.
5
6 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
7 the name fields to use the same pointer.
8 (get_specific): Check for opcodes with the same name using strcmp
9 as well as comparing the pointer.
10
11 2002-11-20 Alan Modra <amodra@bigpond.net.au>
12
13 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
14 fx_subsy non-NULL.
15
16 2002-11-19 Richard Henderson <rth@redhat.com>
17
18 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
19 visibility portion of st_other.
20
21 2002-11-19 Klee Dienes <kdienes@apple.com>
22
23 * config/tc-h8300.c (struct h8_instruction): New type, used to
24 wrap h8_opcodes with length, noperands, idx, and size fields
25 (computed at run-time).
26 (h8_instructions): New variable.
27 (md_begin): Allocate the storage for h8_instructions. Fill
28 h8_instructions with pointers to the appropriate opcode and the
29 correct value for the additional fields.
30 (clever_message): Update to use h8_instructions instead of
31 h8_opcodes.
32 (build_bytes): Ditto.
33 (get_specific): Ditto.
34 (md_assemble): Ditto.
35
36 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
37
38 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
39 adjustments to symbols in merge sections.
40
41 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
42
43 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
44
45 2002-11-18 Kevin Buettner <kevinb@redhat.com>
46
47 * dwarf2dbg.h (dwarf2_format): New enum.
48 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
49 (out_debug_line, out_debug_info): Add code for handling 64-bit
50 DWARF 2 formats.
51 * config/tc-mips.h (mips_dwarf2_format): Declare.
52 * config/tc-mips.c (mips_dwarf2_format): New function.
53 * doc/internals.texi (DWARF2_FORMAT): Document.
54
55 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
56
57 * config/tc-mips.c (s_change_section): Make sure input buffer
58 is not accessed past the end. Don't hand
59 obj_elf_change_section a pointer into the input buffer.
60
61 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
62
63 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
64 GOT_LO16 on NEWABI.
65
66 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
67
68 * config/tc-tic4x.c: Fixed proper commandline
69 parameters. Added support for new opcode-list format. General
70 error message fixups.
71 (c4x_inst_add): Reject insn not for our CPU
72 (md_begin): Added matrix for setting the proper opcode-level &
73 device-flags according to cpu type and revision. Rewrite the
74 opcode hasher.
75 (c4x_operand_parse): Fix opcode bug
76 (c4x_operands_match): New function argument. Added dry-run
77 mechanism, that is optional error generation. Added constraint 'i'
78 and 'j'.
79 (c4x_insn_check): Added new function for post-verification of the
80 generated insn.
81 (md_assemble): Check all opcodes before croaking because of an
82 argument mismatch. Need this to be able to fully support
83 ortogonally arguments.
84 (md_parse_options): Revised commandprompt swicthes and added new
85 ones.
86 (md_show_usage): Complete rewrite of printout.
87
88 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
89
90 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
91 (c4x_operands_match): Added check for 8-bits LDF insn. Give
92 warning when using constant direct bigger than 2^16. Add the new
93 arguments.
94
95 2002-11-11 Christopher Faylor <cgf@redhat.com>
96
97 * configure.in: Use .gdbinit under Cygwin.
98 * configure: Regenerate.
99
100 2002-11-11 Christopher Faylor <cgf@redhat.com>
101
102 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
103 STRICT_PE_FORMAT.
104
105 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
106
107 * config/tc-tic4x.c: Declare as many functions as possible as
108 static. Maintenance on the general indenting. Removed unnecessary
109 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
110 function. Add support for new DSP, TMS320VC33. Fix bug for
111 converting flonum constants.
112 (c4x_do_align): Add proper align handling. Setup align to insert
113 NOP's.
114 (c4x_gen_to_words): Support for extended TI type floats.
115 (md_atof): Proper dumping of multiple-word littlenums.
116 (c4x_atof): Added support for extended TI type floats.
117 (c4x_stringer): Added new function to handle compact strings.
118 (c4x_emit_char): Added new function argument to handle custom
119 length inserts, like single-byte strings.
120 * config/tc-tic4x.h: Add proper align handling with NOP's.
121 * Makefile.am: Added tic4x dependecy
122 * Makefile.in: Regenerate
123
124 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
125
126 * macro.c (get_any_string): Correct logic for not going beyond end
127 of in->ptr[].
128
129 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
130
131 * config/tc-mmix.c (get_putget_operands): Mark both possible
132 operands as invalid at beginning.
133
134 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
135 Initialize target of fixup to zero.
136
137 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
138
139 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
140 NEWABI, but we should still emit HI16_S for non-PIC n32.
141
142 2002-11-06 Richard Henderson <rth@redhat.com>
143
144 * config/tc-alpha.c (alpha_validate_fix): Move code ...
145 (alpha_fix_adjustable): ... here.
146 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
147
148 2002-11-07 Eric Kohl <ekohl@rz-online.de>
149
150 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
151 of a label.
152
153 2002-11-05 H.J. Lu <hjl@gnu.org>
154
155 * config/tc-mips.c (support_64bit_objects): Check *l before it
156 is freed.
157
158 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
159
160 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
161 SEC_LOAD flags for sections marked as 's'.
162
163 2002-11-01 Alan Modra <amodra@bigpond.net.au>
164
165 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
166 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
167 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
168 default.
169
170 * dep-in.sed: Fix typo.
171
172 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
173
174 * configure.in: Update ARM CPU patterns.
175 * configure: Regenerated.
176
177 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
178
179 * itbl-lex.l: Use #include <> for generated headers.
180 * itbl-ops.c: Likewise.
181
182 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
183
184 * doc/gasp.texi: Fix typo in deprecation note.
185
186 2002-10-23 Nick Clifton <nickc@redhat.com>
187
188 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
189 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
190
191 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
192
193 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
194 (tc_frob_file_before_adjust): Don't define.
195 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
196 function.
197 (mmix_frob_file_before_adjust): Remove ineffective function.
198
199 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
200
201 * config/tc-cris.c (SIMPLE_EXPR): New macro.
202 (cris_relax_frag): New function.
203 (md_estimate_size_before_relax) <case ENCODE_RELAX
204 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
205 expressions that will become absolute expressions to relaxation.
206 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
207 STATE_WORD)>: Expect only absolute expressions. Use the symbol
208 value, not distance to symbol.
209 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
210 Ditto. Correct placement of fixup.
211 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
212 (gen_bdap): Ditto.
213 * config/tc-cris.h (cris_relax_frag): Declare.
214 (md_relax_frag): Define.
215
216 2002-10-22 Alan Modra <amodra@bigpond.net.au>
217
218 * config/obj-elf.c (special_sections): Use correct types for init
219 array sections.
220 (obj_elf_change_section): Don't mess with init array section type.
221
222 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
223
224 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
225 for relocs against symbols in a merged section.
226
227 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
228
229 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
230 table as register names.
231
232 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
233
234 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
235 for option -m31.
236
237 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
238
239 * expr.c (operand): Add support for n.nn flonums.
240
241 2002-10-17 Johannes Stezenbach <js@convergence.de>
242
243 * itbl-parse.y (entry): Provide empty action.
244
245 2002-10-16 Alan Modra <amodra@bigpond.net.au>
246
247 * configure.in (BFDVER_H): Set and subst.
248 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
249 * Makefile.am: Run "make dep-am".
250 (BFDVER_H): Define.
251 * configure: Regenerate.
252 * Makefile.in: Regenerate.
253 * doc/Makefile.in: Regenerate.
254
255 2002-10-15 Alan Modra <amodra@bigpond.net.au>
256
257 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
258 (MD_APPLY_SYM_VALUE): Define for PE too.
259
260 2002-10-14 Alan Modra <amodra@bigpond.net.au>
261
262 * Makefile.am: Run "make dep-am".
263 (CPU_OBJ_VALID): sh64 coff is invalid.
264 * as.c: #include "bfdver.h".
265 * Makefile.in: Regenerate.
266 * config.in: Regenerate.
267
268 2002-10-14 Momchil Velikov <velco@fadata.bg>
269
270 * config/tc-v850.c (CHECK_): Remove token pasting operator.
271
272 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
273
274 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
275 * configure: Regenerate.
276
277 2002-10-13 Eric Christopher <echristo@redhat.com>
278 Alexandre Oliva <aoliva@redhat.com>
279
280 * config/tc-mips.c (s_gpdword): New function.
281 (mips_pseudo_table): Add .gpdword.
282 (mips_need_elf_addend_fixup): never for NEWABI.
283 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
284 GPREL32 as done.
285 (s_cpadd): Generate .cpadd on NEWABI.
286
287 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
288
289 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
290
291 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
292
293 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
294 (md_relax_frag): Adjust macro.
295 * config/tc-mips.c (mips_relax_branch): New variable.
296 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
297 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
298 (RELAX_MIPS16_P): Adjust.
299 (append_insn): Emit branch to non-constant in a frag_var if
300 branch-relaxation is desirable and possible.
301 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
302 (OPTION_ELF_BASE): Adjust.
303 (md_parse_option): Handle new options.
304 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
305 branch relaxation.
306 (relaxed_branch_length): New function.
307 (md_estimate_size_before_relax): Handle branch frags.
308 (mips_relax_frag): Likewise.
309 (md_convert_frag): Handle branch frags. Warn if branch is
310 relaxed.
311
312 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
313
314 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
315 emitted.
316 (md_apply_fix3): Add TLS relocs.
317 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
318 @DTPOFF.
319
320 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
321 Alan Modra <amodra@bigpond.net.au>
322
323 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
324 (md_estimate_size_before_relax): Likewise for 8 bit branches.
325
326 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
327
328 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
329 inside loop.
330
331 2002-10-09 Richard Shann <richard.shann@superh.com>
332 Stephen Clarke <stephen.clarke@superh.com>
333
334 * config/tc-sh64.c (sh64_target_format): Add support for sh64
335 Linux environment.
336
337 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
338
339 * contig/tc-sh.c (sh_local_pcrel): New.
340 (sh_force_relocation): Use sh_local_pcrel.
341 (md_pcrel_from_section): Check the relocation type whether it
342 should be resolved locally. Use S_FORCE_RELOC.
343
344 2002-10-01 Alan Modra <amodra@bigpond.net.au>
345
346 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
347 (TC_FORCE_RELOCATION): Tidy arg.
348
349 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
350 Ken Raeburn <raeburn@cygnus.com>
351 Aldy Hernandez <aldyh@redhat.com>
352 DJ Delorie <dj@redhat.com>
353 Michael Meissner <meissner@redhat.com>
354 Eric Christopher <echristo@redhat.com>
355 Richard Sandiford <rsandifo@redhat.com>
356
357 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
358 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
359 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
360 (hilo_interlocks): True for CPU_VR5500.
361 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
362 (mips_fix_vr4122_bugs): New.
363 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
364 (mips_emit_delays): Likewise.
365 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
366 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
367 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
368 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
369 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
370 (OPTION_ELF_BASE): Bump.
371 (md_parse_option): Handle the new options.
372 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
373 vr5400 and vr5500.
374
375 2002-09-29 H.J. Lu <hjl@gnu.org>
376
377 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
378 twice if howto->pcrel_offset is true.
379
380 2002-09-28 Matt Thomas <matt@3am-software.com>
381 Jason Thorpe <thorpej@wasabisystems.com>
382
383 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
384 convert undefined references to GOT32/PLT32 if PIC code is
385 requested. Fix comment.
386
387 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
388
389 * config/tc-sh.c (sh_force_relocation): Return 0 for
390 some PC relative relocations when not relaxing.
391
392 2002-09-26 Jakub Jelinek <jakub@redhat.com>
393
394 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
395 Define them if not BFD_ASSEMBLER.
396 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
397 @tlsld.
398 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
399 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
400 (tc_gen_reloc): Handle x86-64 TLS relocs.
401
402 2002-09-27 Alan Modra <amodra@bigpond.net.au>
403
404 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
405 fixups to current or absolute section.
406
407 2002-09-26 Jim Wilson <wilson@redhat.com>
408
409 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
410 and frag_more.
411
412 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
413
414 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
415 capable configuration.
416 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
417 generation.
418 (mips_ip): Likewise.
419
420 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
421
422 * config/tc-mips.c (append_insn): Fix jump overflow check.
423
424 2002-09-24 Alan Modra <amodra@bigpond.net.au>
425
426 * config/tc-i386.c (process_operands): Warn about "lea" segment
427 overrides.
428
429 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
430
431 * write.c: Delete set_segment_vma and prototype. Update all callers.
432
433 2002-09-21 Alan Modra <amodra@bigpond.net.au>
434
435 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
436 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
437 Rename "fseg" to "sym_seg".
438 * Makefile.am: Run "make dep-am".
439 * Makefile.in: Regenerate.
440 * doc/Makefile.in: Regenerate.
441
442 2002-09-20 Nick Clifton <nickc@redhat.com>
443
444 * symbols.c (colon): Do not allow symbols to be created in the
445 absolute section if WORKING_DOT_WORD is not defined and
446 new_broken_words would require a new frag to be created.
447
448 2002-09-20 Alan Modra <amodra@bigpond.net.au>
449
450 * expr.c (expr): Simplify foo-foo here.
451 (clean_up_expression): Remove O_subtract code.
452
453 * write.h (struct fix): Add fx_dot_value.
454 (dot_value): Declare.
455 * write.c (dot_value): New var.
456 (fix_new_internal): Save dot_value as fx_dot_value.
457 (fixup_segment): Adjust fx_offset using fx_dot_value.
458 * expr.c (expr): Update dot_value.
459
460 2002-09-19 Jakub Jelinek <jakub@redhat.com>
461
462 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
463 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
464 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
465 if not defined.
466 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
467 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
468 BFD_RELOC_386_TLS_GOTIE.
469
470 2002-09-19 Richard Henderson <rth@redhat.com>
471
472 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
473 branch type relocs.
474 (alpha_force_relocation): Don't special-case branch type relocs.
475
476 2002-09-19 Nick Clifton <nickc@redhat.com>
477
478 * config/tc-m68k.c (select_control_regs): Handle situation where
479 architecture has not yet been selected.
480
481 2002-09-18 Chris Demetriou <cgd@broadcom.com>
482
483 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
484 (IS_SEXT_16BIT_NUM): New macro.
485 (macro_build_ldst_constoffset): New function, to build a set of
486 instructions to do a load or store from a constant offset relative
487 to a given register.
488 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
489 .cprestore pseudo-op.
490
491 2002-09-18 Chris Demetriou <cgd@broadcom.com>
492
493 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
494
495 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
496
497 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
498
499 2002-09-17 Stan Cox <scox@redhat.com>
500
501 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
502 (macro): Likewise for la. Likewise for ld.
503 (mips_after_parse_args): Make -xgot optional, not the default.
504 (md_apply_fix3): Allow composite relocation to set up gp.
505 (tc_gen_reloc): Allow relaxing for newabi.
506 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
507 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
508
509 2002-09-17 Nick Clifton <nickc@redhat.com>
510
511 * config/tc-arm.c (md_apply_fix3): Note that an implemented
512 BFD_RELOC_ARM_IMMEDIATE has been done.
513 (tc_gen_reloc): Do not issue reloc number of unimplemented
514 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
515 their name is already in the error message - plus remove them
516 from the default case.
517
518 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
519 behavior of instructions.
520
521 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
522
523 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
524 Convert functions to K&R format.
525
526 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
527
528 * config/tc-mips.c (pdr_seg): Define only for ELF.
529 (s_change_section): Remove unused variable. Don't use for nonELF.
530
531 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
532
533 * config/obj-elf.c (obj_elf_change_section): Move prototype to
534 obj-elf.h
535 * config/obj-elf.h (obj_elf_change_section): Likewise.
536
537 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
538
539 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
540 (out_debug_info): Likewise.
541
542 2002-09-16 Bruno Haible <bruno@clisp.org>
543
544 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
545 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
546 * config/tc-i386.c (i386_target_format): Likewise.
547 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
548 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
549
550 2002-09-13 Nick Clifton <nickc@redhat.com>
551
552 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
553 when deciding if any operands have been skipped.
554
555 2002-09-11 Nick Clifton <nickc@redhat.com>
556
557 * NEWS: New TI port supports both C4x and C3x series of DSPs.
558
559 * po/tr.po: Updated Turkish translation.
560
561 2002-09-11 Jakub Jelinek <jakub@redhat.com>
562
563 * config/tc-i386.c (md_apply_fix3): Allow addend for
564 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
565 BFD_RELOC_386_TLS_LE_32.
566
567 2002-09-05 Jeff Law <law@redhat.com>
568
569 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
570 marker relocations such as ENTRY/EXIT.
571 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
572 to both OBJ_ELF and OBJ_SOM.
573
574 2002-09-05 Alan Modra <amodra@bigpond.net.au>
575
576 * doc/internals.texi (md_apply_fix3): Expand.
577 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
578 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
579 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
580 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
581 EXTERN_FORCE_RELOC): Document.
582 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
583 * as.h: Don't include struc-symbol.h for arc.
584 (IS_ELF): Define.
585 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
586 subtract absolute symbol.
587 * obj.h (struct format_ops): Add frob_file_before_fix.
588 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
589 * symbols.c (S_FORCE_RELOC): New function.
590 * symbols.h (S_FORCE_RELOC): Declare.
591 * write.c (TC_FORCE_RELOCATION): Change default.
592 (TC_FORCE_RELOCATION_ABS): Define.
593 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
594 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
595 (TC_FORCE_RELOCATION_SECTION): Don't define.
596 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
597 (TC_FORCE_RELOCATION_SUB_ABS): Define.
598 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
599 (TC_VALIDATE_FIX_SUB): Define.
600 (TC_FIX_ADJUSTABLE): Don't define.
601 (MD_APPLY_SYM_VALUE): Define this instead.
602 (abs_section_sym): New variable.
603 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
604 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
605 Don't put the absolute section sym on fixups here.
606 (fix_segment): New function.
607 (write_relocs): Don't call fixup_segment from here.
608 (write_object_file): Instead call tc_frob_file_before_fix,
609 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
610 Don't output the absolute section symbol.
611 (fixup_segment): Rewrite.
612 * write.h (abs_section_sym): Declare.
613 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
614 obj_aout_frob_file.
615 (aout_format_ops): Adjust to suit.
616 * config/obj-aout.h (obj_frob_file): Don't define.
617 (obj_frob_file_before_fix): Define.
618 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
619 (S_FORCE_RELOC): Define.
620 * config/obj-bout.h (S_FORCE_RELOC): Define.
621 * config/obj-coff.c (coff_format_ops): Init new field.
622 * config/obj-coff.h: Formatting fixes.
623 (obj_sec_sym_ok_for_reloc): Define.
624 (S_FORCE_RELOC): Define.
625 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
626 (ecoff_frob_file): .. from here.
627 (ecoff_format_ops): Add new function.
628 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
629 (obj_frob_file_before_fix): Define.
630 * config/obj-elf.c (elf_format_ops): Init new field.
631 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
632 * config/obj-ieee.h: Formatting fixes.
633 (S_FORCE_RELOC): Define.
634 * config/obj-multi.h (obj_frob_file_before_fix): Define.
635 * config/obj-vms.h (S_FORCE_RELOC): Define.
636 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
637 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
638 for BFD_RELOC_32 and BFD_RELOC_64.
639 (alpha_fix_adjustable): Remove extern and weak tests.
640 (alpha_before_fix): Rename from alpha_adjust_symtab.
641 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
642 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
643 (TC_VALIDATE_FIX): Tweak param name.
644 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
645 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
646 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
647 (MD_APPLY_SYM_VALUE): Define.
648 (tc_adjust_symtab): Don't define.
649 (alpha_adjust_symtab): Don't declare.
650 (tc_frob_file_before_fix): Define.
651 (alpha_before_fix): Declare.
652 (TC_INIT_FIX_DATA): Tweak param names.
653 * config/tc-arc.c: Include "struc-symbol.h".
654 (md_pcrel_from): Remove undefined sym fudge.
655 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
656 Don't set fx_addnumber.
657 (tc_gen_reloc): Remove spurious fx_addnumber comment.
658 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
659 (EXTERN_FORCE_RELOC): Define.
660 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
661 (tc_gen_reloc): Fudge ARM_GOTPC addend.
662 (arm_validate_fix): Return void.
663 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
664 Add plt and got reloc tests.
665 (arm_force_relocation): Call S_FORCE_RELOC.
666 * config/tc-arm.h (struct fix): Forward declare.
667 (TC_VALIDATE_FIX): No longer set add_symbolP.
668 (arm_validate_fix): Adjust declaration.
669 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
670 (TC_FORCE_RELOCATION): Tweak param name.
671 (TC_INIT_FIX_DATA): Likewise.
672 (obj_fix_adjustable): Don't define.
673 (tc_fix_adjustable): Call arm_fix_adjustable.
674 (TC_FIX_ADJUSTABLE): Don't define.
675 (MD_APPLY_SYM_VALUE): Define.
676 (EXTERN_FORCE_RELOC): Define.
677 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
678 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
679 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
680 Remove *valP fudges and code to subtract abs sym. Don't set
681 fx_addnumber.
682 * config/tc-avr.h: Formatting.
683 (EXTERN_FORCE_RELOC): Define.
684 (MD_APPLY_SYM_VALUE): Define.
685 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
686 (md_apply_fix3): Remove code to subtract abs sym.
687 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
688 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
689 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
690 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
691 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
692 (tc_fix_adjustable): Remove extern, weak tests.
693 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
694 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
695 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
696 and code to subtract abs sym.
697 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
698 (d10v_force_relocation): Call S_FORCE_RELOC.
699 * config/tc-d10v.h: Don't include write.h.
700 (struct fix): Instead, forward declare.
701 (MD_PCREL_FROM_SECTION): Tweak param names.
702 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
703 (d10v_fix_adjustable): Likewise.
704 (obj_fix_adjustable): Don't define.
705 (tc_fix_adjustable): Define.
706 (TC_FORCE_RELOCATION): Tweak param name.
707 (MD_APPLY_SYM_VALUE): Define.
708 (EXTERN_FORCE_RELOC): Define.
709 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
710 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
711 and code to subtract abs sym.
712 * config/tc-d30v.h: Don't include write.h.
713 (struct fix): Instead, forward declare.
714 (MD_PCREL_FROM_SECTION): Tweak param names.
715 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
716 (MD_APPLY_SYM_VALUE): Define.
717 (EXTERN_FORCE_RELOC): Define.
718 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
719 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
720 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
721 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
722 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
723 Don't use fx_addnumber.
724 * config/tc-dlx.h: Don't include write.h.
725 (md_convert_frag): We're not alpha twice over.
726 (EXTERN_FORCE_RELOC): Define.
727 (obj_fix_adjustable): Don't define.
728 (tc_fix_adjustable): Define.
729 (TC_FIX_ADJUSTABLE): Don't define.
730 (MD_APPLY_SYM_VALUE): Define.
731 (LOCAL_LABELS_DOLLAR): Undef always.
732 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
733 (fr30_fix_adjustable): Remove extern, weak tests.
734 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
735 (obj_fix_adjustable): Don't define.
736 (tc_fix_adjustable): Define.
737 (struct fix): Forward declare.
738 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
739 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
740 (frv_fix_adjustable): Don't do extern, weak tests.
741 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
742 (TC_FIX_ADJUSTABLE): Don't define.
743 (obj_fix_adjustable): Don't define.
744 (tc_fix_adjustable): Define.
745 (struct fix): Forward declare.
746 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
747 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
748 * config/tc-h8300.h (struct fix): Forward declare.
749 (EXTERN_FORCE_RELOC): Define.
750 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
751 (hppa_fix_adjustable): Don't test extern or weak. Don't
752 symbol_mark_used_in_reloc.
753 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
754 and S_IS_WEAK.
755 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
756 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
757 (TC_FORCE_RELOCATION_SECTION): Don't define.
758 (MD_APPLY_SYM_VALUE): Define.
759 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
760 to subtract abs sym.
761 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
762 (MD_APPLY_SYM_VALUE): Define.
763 (MD_PCREL_FROM_SECTION): Tweak param name.
764 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
765 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
766 (i386_force_relocation): New function.
767 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
768 (TC_VALIDATE_FIX): Likewise.
769 (TC_FIX_ADJUSTABLE): Don't define.
770 (MD_APPLY_SYM_VALUE): Define.
771 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
772 (i386_force_relocation): Declare.
773 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
774 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
775 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
776 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
777 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
778 (EXTERN_FORCE_RELOC): Define.
779 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
780 (md_apply_fix3): Don't cast valP pointer type. Move code here from
781 old fixup_segment. No need to test fx_pcrel before setting fx_done.
782 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
783 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
784 Remove #if 0 code. Invert return boolean.
785 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
786 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
787 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
788 (tc_coff_sizemachdep): Prototype.
789 (i960_handle_align): Likewise.
790 (i960_validate_fix): Adjust declaration.
791 (reloc_callj): Likewise.
792 (EXTERN_FORCE_RELOC): Define.
793 (TC_FORCE_RELOCATION_SUB_SAME): Define.
794 (TC_FORCE_RELOCATION_ABS): Define.
795 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
796 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
797 (TC_FIX_ADJUSTABLE): Don't define.
798 (MD_APPLY_SYM_VALUE): Define.
799 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
800 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
801 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
802 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
803 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
804 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
805 (MD_APPLY_SYM_VALUE): Define.
806 (EXTERN_FORCE_RELOC): Define.
807 (TC_FORCE_RELOCATION): Tweak param name.
808 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
809 (m32r_fix_adjustable): Don't test extern, weak.
810 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
811 (MD_APPLY_SYM_VALUE): Define.
812 (obj_fix_adjustable): Don't define.
813 (tc_fix_adjustable): Define.
814 (tc_frob_file): Don't define.
815 (tc_frob_file_before_fix): Define.
816 (EXTERN_FORCE_RELOC): Define.
817 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
818 BFD_RELOC_VTABLE_ENTRY address.
819 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
820 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
821 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
822 Remove duplicated fx_done code.
823 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
824 (EXTERN_FORCE_RELOC): Define.
825 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
826 relaxable_symbol.
827 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
828 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
829 (TC_FIX_ADJUSTABLE): Don't define.
830 (EXTERN_FORCE_RELOC): Define.
831 (MD_APPLY_SYM_VALUE): Define.
832 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
833 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
834 Remove fx_addsy tests.
835 (mcore_force_relocation): Call S_FORCE_RELOC.
836 (mcore_fix_adjustable): Don't test fx_addsy.
837 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
838 (EXTERN_FORCE_RELOC): Define.
839 (obj_fix_adjustable): Don't define.
840 (tc_fix_adjustable): Define.
841 (MD_APPLY_SYM_VALUE): Define.
842 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
843 (mips_pic): No longer static.
844 (mips_force_relocation): Call S_FORCE_RELOC.
845 (mips_fix_adjustable): Remove extern, weak tests.
846 * config/tc-mips.h (enum mips_pic_level): Declare.
847 (mips_pic): Declare.
848 (tc_frob_file): Don't define.
849 (tc_frob_file_before_fix): Define this instead.
850 (EXTERN_FORCE_RELOC): Define.
851 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
852 with reg_section tests. Set fx_done instead of calling
853 symbol_clear_used_in_reloc on bad relocs.
854 (tc_gen_reloc): Zero fx_addsy on bad relocs.
855 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
856 (mmix_adjust_symtab): Simplify list handling. Abort on any
857 nonsense.
858 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
859 BFD_RELOC_MMIX_LOCAL.
860 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
861 (EXTERN_FORCE_RELOC): Define.
862 (MD_PCREL_FROM_SECTION): Tweak param name.
863 (tc_frob_file): Don't define.
864 (tc_frob_file_before_fix): Define this instead.
865 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
866 Remove SEC_CODE checks.
867 (mn10300_fix_adjustable): Remove extern and weak tests.
868 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
869 (TC_FORCE_RELOCATION): Tweak param name.
870 (obj_fix_adjustable): Don't define.
871 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
872 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
873 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
874 (openrisc_fix_adjustable): Don't test fx_addsy.
875 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
876 (obj_fix_adjustable): Don't define.
877 (tc_fix_adjustable): Define this instead.
878 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
879 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
880 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
881 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
882 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
883 (MD_APPLY_SYM_VALUE): Define.
884 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
885 Don't subtract symbol value.
886 * config/tc-pj.h (md_pcrel_from): Tweak param name.
887 (EXTERN_FORCE_RELOC): Define.
888 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
889 (MD_APPLY_SYM_VALUE): Define.
890 (obj_fix_adjustable): Don't define.
891 (tc_fix_adjustable): Define this instead.
892 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
893 section sym.
894 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
895 (ppc_force_relocation <elf version>): New.
896 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
897 (md_apply_fix3): Don't subtract symbol values for ELF. Update
898 comments. Don't subtract fx_subsy as that is already done.
899 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
900 (MD_PCREL_FROM_SECTION): Likewise.
901 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
902 ppc_force_relocation.
903 (TC_FORCE_RELOCATION_SECTION): Delete.
904 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
905 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
906 (MD_APPLY_SYM_VALUE): Define.
907 * config/tc-s390.c: #include "dwarf2dbg.h".
908 (s390_insn): Remove excess parens.
909 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
910 (tc_s390_force_relocation): Call S_FORCE_RELOC.
911 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
912 non-NULL. Don't subtract off fx_addsy value.
913 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
914 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
915 (TC_FIX_ADJUSTABLE): Don't define.
916 (MD_APPLY_SYM_VALUE): Define.
917 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
918 (SWITCH_TABLE): Likewise.
919 (sh_force_relocation): Call S_FORCE_RELOC.
920 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
921 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
922 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
923 fx_addnumber is zero on entry. Save val in fx_addnumber.
924 (tc_gen_reloc): Don't subtract fx_subsy.
925 * config/tc-sh.h (struct fix): Move.
926 (obj_fix_adjustable): Don't define.
927 (tc_fix_adjustable): Define this instead.
928 (TC_FIX_ADJUSTABLE): Don't define.
929 (MD_APPLY_SYM_VALUE): Define.
930 (SWITCH_TABLE_CONS): Define.
931 (SWITCH_TABLE): Define.
932 (TC_FORCE_RELOCATION_SUB_SAME): Define.
933 (TC_VALIDATE_FIX_SUB): Define.
934 (MD_PCREL_FROM_SECTION): Tweak param name.
935 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
936 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
937 (TC_FORCE_RELOCATION_SUB_ABS): Define.
938 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
939 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
940 (TC_FORCE_RELOCATION_SUB_SAME): Define.
941 (TC_VALIDATE_FIX_SUB): Define.
942 (MD_PCREL_FROM_SECTION): Tweak param name.
943 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
944 (tc_gen_reloc): Use S_FORCE_RELOC.
945 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
946 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
947 (TC_FORCE_RELOCATION_ABS): Define this instead.
948 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
949 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
950 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
951 (MD_APPLY_SYM_VALUE): Define.
952 (TC_FIX_DATA_PRINT): Tweak param name.
953 * config/tc-tic30.c (USE_STDOUT): Don't define.
954 (md_parse_option): Remove stupid debug code.
955 (tc_gen_reloc): Don't use fx_addnumber.
956 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
957 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
958 * config/tc-v850.h (obj_fix_adjustable): Don't define.
959 (tc_fix_adjustable): Define this instead.
960 (TC_FIX_ADJUSTABLE): Don't define.
961 (MD_APPLY_SYM_VALUE): Define this instead.
962 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
963 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
964 (TC_FIX_ADJUSTABLE): Don't define.
965 (MD_APPLY_SYM_VALUE): Define this instead.
966 (tc_fix_adjustable): Remove extern and weak tests.
967 * config/tc-w65.h (struct fix): Forward declare.
968 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
969 S_FORCE_RELOC.
970 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
971 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
972 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
973 absolute symbol.
974 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
975 (MD_APPLY_SYM_VALUE): Define.
976 (obj_fix_adjustable): Don't define.
977 (tc_fix_adjustable): Define this instead.
978 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
979
980 2002-09-04 Alan Modra <amodra@bigpond.net.au>
981
982 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
983 (ppc_fix_adjustable <coff version>): Cleanup.
984
985 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
986 (md_parse_option): No -a64 without BFD64.
987 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
988 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
989
990 2002-09-04 Nick Clifton <nickc@redhat.com>
991
992 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
993 instructions into the hash table if the target cpu is the BookE32.
994
995 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
996
997 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
998 ATTRIBUTE_UNUSED.
999
1000 2000-08-28 Catherine Moore <clm@redhat.com>
1001
1002 * tc-v850.c (v850_relax): Declare.
1003 (v850_longcode): New routine.
1004 (v850_handle_align): New routine.
1005 (md_pseudo_table): Add longcall and longjump.
1006 (md_parse_option): Check for relax option.
1007 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1008 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1009 (md_apply_fix3): Likewise.
1010 (v850_force_relocation): Likewise.
1011 (v850_comm): Change the current section.
1012 (md_assemble): Ensure that the correct value is put in the
1013 fixup.
1014 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1015 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1016 Remove redundant v850ea support.
1017 * tc-v850.h (HANDLE_ALIGN): Define.
1018 (v850_handle_align): Declare.
1019 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1020
1021 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1022
1023 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1024 * configure: Regenerate.
1025 * NEWS: Mention new port.
1026
1027 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1028
1029 * config/obj-coff.c: Add sdef definition.
1030 * config/obj-coff.h: Add tic4x include file and set
1031 target format.
1032 * config/tc-tic4x.c: New file.
1033 * config/tc-tic4x.h: New file.
1034
1035 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1036
1037 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1038 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1039 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1040 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1041 (RELOC_ENUM): Define.
1042 (fix_new_internal): Use RELOC_ENUM.
1043 (fix_new, fix_new_exp): Likewise.
1044 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1045 Replace gotos with continue.
1046 (write_relocs): Formatting. Avoid symbol loops in
1047 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1048 errors, and error number in other cases.
1049 (fixup_segment): Remove param names from prototype. Rename
1050 "this_segment_type" to "this_segment". Update linkrelax comment.
1051 Remove "size, "place" and "where" local vars. Formatting. Update
1052 "no symbol" comment. Remove #if 0 and #if 1.
1053
1054 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1055
1056 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1057
1058 * dwarf2dbg.c: Always include dwarf2dbg.h.
1059 (dwarf2_directive_file): Adjust dummy version args.
1060 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1061 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1062 when symbol values differ.
1063 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1064 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1065 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1066
1067 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1068
1069 * config/tc-w65.c (md_section_align): Fix typo.
1070 (md_parse_option): Return 0, not 1.
1071
1072 2002-08-22 Nick Clifton <nickc@redhat.com>
1073
1074 * doc/as.texinfo (Section): Note that if '@' is a comment
1075 character then another symbol is used to prefix the section's
1076 type.
1077
1078 2002-08-22 Christian Groessler <chris@groessler.org>
1079
1080 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1081 "case 0" case.
1082
1083 2002-08-12 Graeme Peterson <gp@qnx.com>
1084
1085 * configure.in: Add support for sh-**-nto* target.
1086 * configure: Regenerate.
1087
1088 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1089
1090 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1091
1092 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1093
1094 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1095 is ELF.
1096 (ppc_apuinfo_section_add): Define only if format is ELF.
1097 (md_assemble): Emit APUinfo section only if format is ELF.
1098 Fix formatting.
1099
1100 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1101
1102 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1103 * config/tc-frv.c: Likewise.
1104 * config/tc-hppa.c: Likewise.
1105 * config/tc-ia64.c: Likewise.
1106 * config/tc-ip2k.c: Likewise.
1107 * config/tc-m68hc11.c: Likewise.
1108 * config/tc-m68k.c: Likewise.
1109 * config/tc-mmix.c: Likewise.
1110 * config/tc-mn10300.c: Likewise.
1111 * config/tc-sh.c: Likewise.
1112 * config/tc-sparc.c: Likewise.
1113 * config/tc-v850.c: Likewise.
1114
1115 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1116
1117 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1118 by zero.
1119
1120 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1121
1122 From matthew green <mrg@redhat.com>
1123
1124 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1125 PPC_OPCODE_PPC is, except for BookE architectures.
1126 (md_parse_option): Add support for -mspe.
1127 (md_show_usage): Add -mspe.
1128 (md_parse_option): Add support for -me500 and
1129 -me500x2 to generate code for Motorola e500 core complex.
1130 (md_show_usage): Add -me500 and -me500x2.
1131
1132 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1133 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1134 PPC_APUINFO_BRLOCK): New macros.
1135
1136 (ppc_cleanup): New function.
1137 (ppc_apuinfo_section_add): New function.
1138 (APUID): New macro.
1139 (md_assemble): Collect info and write the APUinfo section.
1140
1141 * config/tc-ppc.h (md_cleanup): Define.
1142 (ppc_cleanup): Export.
1143 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1144
1145 2002-08-17 Stan Cox <scox@redhat.com>
1146
1147 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1148 config/tc-mips.c (s_change_section): New function to support
1149 IRIX .section pseudo-op.
1150
1151 2002-08-16 Nick Clifton <nickc@redhat.com>
1152
1153 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1154
1155 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1156
1157 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1158 the fix-up against on the right frag.
1159 (s_cpsetup): Likewise. Parse third argument as expression, to
1160 handle global symbols and forward/backward labels correctly.
1161
1162 2002-08-14 Nick Clifton <nickc@redhat.com>
1163
1164 * read.c (stringer): Catch attempts to create strings in the abs
1165 section.
1166
1167 * config/tc-alpha.c: Fix compiling for COFF targets.
1168 Some minor formatting tidyups.
1169
1170 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1171
1172 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1173 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1174 according to the reloc.
1175 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1176 (TC_FORCE_RELOCATION): Define.
1177 (tc_m68hc11_force_relocation): Declare.
1178
1179 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1180 (s_m68hc11_relax): New function for relax group.
1181 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1182 beginning of jump instruction.
1183 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1184 address computation.
1185 (tc-gen_reloc): Update.
1186 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1187 PC-relative fixup.
1188 (tc_m68hc11_force_relocation): New function, handle new relocs.
1189 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1190 reloc for the linker relax pass.
1191 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1192 and VTABLE relocs.
1193
1194 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1195
1196 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1197 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1198 (s_m68hc11_mode): New function for .mode pseudo op.
1199 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1200 pseudo op.
1201 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1202 (m68hc11_elf_final_processing): Declare.
1203
1204 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1205
1206 * config/tc-m68hc11.c (md_begin): Take into account additional
1207 page operand for call instruction.
1208 (print_opcode_format): Likewise.
1209 (check_range): Likewise for page range checking.
1210 (get_operand): Don't skip a possible comma in operands.
1211 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1212 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1213 (fixup24): New to handle call reloc.
1214 (build_insn): Handle missing page operand for call instruction.
1215 (find): Likewise.
1216 (md_apply_fix3): Take into account new relocs.
1217 (get_operand): Fix the mode for indexed indirect addressing.
1218 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1219
1220 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1221
1222 * config/tc-mips.c (mips_ip): Don't work out the value of
1223 constant %hi()s here.
1224
1225 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1226
1227 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1228 for ELF, and don't bother checking ELF relocs when non-ELF.
1229 (i386_immediate): Allow absolute_section expressions for aout.
1230 (i386_displacement): Likewise. Also test bfd_is_com_section.
1231 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1232 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1233 not when fx_addsy. Remove dead code.
1234
1235 2002-08-09 Graeme Peterson <gp@qnx.com>
1236
1237 * configure.in: Add support for ppc-*-nto* target.
1238 * configure: Regenerate.
1239
1240 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1241
1242 * config/tc-i386.h: Reorganize.
1243
1244 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1245
1246 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1247 immediate offset in "dla" and "la" expansions.
1248
1249 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1250
1251 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1252 Remove "bfd_gas=yes" from target table when covered later.
1253 Consolidate some entries.
1254 * configure: Regenerate
1255
1256 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1257
1258 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1259 at start of insn, pass it to output_disp and output_imm.
1260 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1261 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1262 properly addend.
1263 (output_imm): Added arguments. Compute properly addend for
1264 R_386_GOTPC.
1265 (md_apply_fix3): Remove R_386_GOTPC handling.
1266
1267 2002-08-06 George France <france@handhelds.org>
1268
1269 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1270 and m21264b processor names and cpu types.
1271 * doc/c-alpha.texi: Documented new types.
1272
1273 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1274
1275 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1276
1277 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1278
1279 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1280 handling to BFD_RELOC_MIPS16_GPREL.
1281
1282 2002-08-01 Nick Clifton <nickc@redhat.com>
1283
1284 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1285 pool is computed using signed arithmetic so that proper sign
1286 extension is performed if X_add_number is a 64-bit integer.
1287
1288 2002-08-01 H.J. Lu <hjl@gnu.org>
1289 Daniel Jacobowitz <drow@mvista.com>
1290
1291 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1292 .debug_line section unless it has line information.
1293
1294 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1295
1296 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1297 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1298 Allow default displacement size to be an option "--disp-size-default".
1299 (md_number_to_disp): Make error messages include value. Use %d to
1300 print integers, not %s.
1301 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1302 get duplicate messages sometimes.
1303 (convert_iif): Grow frag to max possible instruction size. Avoid
1304 creating unnecessary fixes.
1305 (md_number_to_field) Add prototype.
1306 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1307 prototypes and make static.
1308 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1309 (evaluate_expr): Use resultP argument instead of exprP global.
1310 (get_addr_mode): Quiten compiler warnings.
1311 (encode_operand): eliminate unused variables. Quiten compiler
1312 warnings. Eliminate nul character in format strings.
1313 (parse): argc is unsigned.
1314 (reloc): Type cast index to quieten compiler.
1315 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1316 (md_convert_frag): Note unused parameters. Remove unused
1317 variables.
1318 (md_create_long_jump, md_create_short_jump,
1319 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1320 unused parameters.
1321
1322 2002-07-31 Nick Clifton <nickc@redhat.com>
1323
1324 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1325 of the PDP-11 and 2.11BSD a.out support.
1326
1327 2002-07-31 Momchil Velikov <velco@fadata.bg>
1328
1329 * config/tc-v850.c (md_assemble): Fix range check for immediate
1330 operand.
1331
1332 2002-07-30 Chris Demetriou <cgd@broadcom.com>
1333
1334 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1335 to Broadcom SB-1 core support.
1336
1337 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1338
1339 * config/tc-mips.c (mips_target_format): Fix formatting.
1340 Add recognition of n32 ABI formats.
1341
1342 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1343
1344 * tc-mips.c (load_address): Don't clobber $at when loading a
1345 64-bit address in non-PIC code if noat is in effect.
1346 (macro): Likewise.
1347
1348 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1349
1350 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1351 used in division/multiply macro expansions similarly to how they
1352 are used in the variants with break instructions.
1353 (macro2): Likewise.
1354
1355 2002-07-30 Graeme Peterson <gp@qnx.com>
1356
1357 * configure.in: Add support for arm-*-nto target.
1358 * configure: Regenerate.
1359
1360 2002-07-30 Nick Clifton <nickc@redhat.com>
1361
1362 * config/tc-arm.c (struct literal_pool): Add fields to allow
1363 multiple literal pools to be maintained.
1364 (find_literal_pool): New function.
1365 (find_or_make_literal_pool): New function.
1366 (add_to_literal_pool): Use find_or_make_literal_pool.
1367 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1368 needed.
1369 (s_ltorg): Use find_literal_pool.
1370 (arm_cleanup): Dump all literal pools.
1371 * doc/c-arm.texi: Document new behaviour of only dumping literal
1372 pools upon request.
1373
1374 2002-07-26 Alan Modra <amodra@bigpond.net.au>
1375
1376 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1377 rather than PPC_OPCODE_32 for powerpc64*.
1378
1379 2002-07-25 Nick Clifton <nickc@redhat.com>
1380
1381 * po/es.po: Updated Spanish translation.
1382 * po/fr.po: Updated French translation.
1383
1384 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
1385
1386 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
1387 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1388 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1389 * configure, config.in: Regenerate.
1390 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1391 (mips_set_options): Remove "abi" field.
1392 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
1393 with mips_abi.
1394 (mips_cpu): Remove.
1395 (mips_arch_string, mips_arch_info): New vars.
1396 (mips_tune_string, mips_tune_info): New vars.
1397 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1398 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1399 (mips_isa_to_str, mips_cpu_to_str): Remove.
1400 (mips_ip): If the selected architecture is a generic ISA rather
1401 than a processor, only mention the ISA level in error messages.
1402 (OPTION_MCPU): Remove.
1403 (OPTION_FP64): New.
1404 (md_longopts): Add -mfp64, remove -mcpu.
1405 (mips_set_option_string): New fn.
1406 (md_parse_option): Make -mipsN update file_mips_isa rather than
1407 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
1408 Don't let -mgp32 and -mfp32 change the ABI.
1409 (show): Move to end of file. Constify string argument.
1410 (md_show_usage): Move to the end of the file. Read available
1411 architectures from mips_cpu_info_table.
1412 (mips_set_architecture): New fn.
1413 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
1414 is an alias for -march=mipsN. Don't change the ABI based on other
1415 flags. Infer the register size from the ABI as well as the
1416 architecture. Complain about more conflicting arguments.
1417 Unify logic with GCC.
1418 (s_mipsset): Don't change the ABI.
1419 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1420 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1421 "mipsN"-type entries. Remove entries that vary only in the
1422 manufacturer's prefix, or that have "000" replaced by "k".
1423 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
1424 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1425 (mips_parse_cpu): New fn.
1426 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1427 (mips_cpu_info_from_isa): Minor formatting tweak.
1428
1429 2002-07-24 Nick Clifton <nickc@redhat.com>
1430
1431 * po/sv.po: Updated Swedish translation.
1432 * po/es.po: Updated Spanish translation.
1433
1434 2002-07-23 Alan Modra <amodra@bigpond.net.au>
1435
1436 * Makefile.am: Run "make dep-am".
1437 * Makefile.in: Regenerate.
1438 * doc/Makefile.in: Regenerate.
1439 * config.in: Regenerate.
1440 * po/POTFILES.in: Regenerate.
1441
1442 2002-07-23 Nick Clifton <nickc@redhat.com>
1443
1444 * po/fr.po: Updated French translation.
1445
1446 2002-07-23 Nick Clifton <nickc@redhat.com>
1447
1448 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1449 GAS.
1450
1451 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1452
1453 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1454 instead of S_IS_EXTERN.
1455 (md_estimate_size_before_relax): Likewise.
1456 (mips_fix_adjustable): Likewise.
1457
1458 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1459
1460 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1461
1462 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1463 Nick Clifton <nickc@redhat.com>
1464
1465 * cond.c (s_ifdef): Treat a referenced but not yet defined
1466 symbol as if it were undefined, in exactly the same way as
1467 .equiv.
1468
1469 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1470 consider referenced bug not yet defined symbols to be
1471 undefined.
1472
1473 2002-07-18 Denis Chertykov <denisc@overta.ru>
1474 Frank Ch. Eigler <fche@redhat.com>
1475 Alan Lehotsky <alehotsky@cygnus.com>
1476 John Healy <jhealy@redhat.com>
1477 Jeff Johnston <jjohnstn@redhat.com>
1478
1479 * configure.in: Add ip2k configuraton.
1480 * configure: Regenerate.
1481 * Makefile.am: Add ip2k configuraton.
1482 * Makefile.in: Regenerate.
1483 * configure: Regenerate.
1484 * Makefile.in: Regenerate.
1485 * config/tc-ip2k.c: New file.
1486 * config/tc-ip2k.h: New files.
1487 * NEWS: Mention new support.
1488 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1489 * doc/Makefile.in: Regenerate.
1490 * doc/all.texi: Set IP2K
1491 * doc/as.texinfo: Add IP2K description.
1492 * doc/c-ip2k.texi: New file.
1493
1494 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1495
1496 * NEWS: Reformat to match style of other NEWS files.
1497
1498 2002-07-17 Jan Hubicka <jh@suse.cz>
1499
1500 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1501
1502 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
1503
1504 * config/tc-z8k.c (build_bytes): Correct order of memset args.
1505
1506 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1507
1508 * NEWS: Add 'Changes in 2.13'.
1509
1510 2002-07-15 Matt Fredette <fredette@netbsd.org>
1511
1512 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1513
1514 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1515
1516 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1517 case with non CODE_64BIT case. Don't warn on "qword ptr" if
1518 not CODE_64BIT.
1519
1520 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1521
1522 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1523 (ppc_frob_file_before_adjust): New function.
1524 * config/tc-ppc.h (tc_frob_symbol): Don't define.
1525 (ppc_elf_frob_symbol): Don't declare.
1526 (tc_frob_file_before_adjust): Define.
1527 (ppc_frob_file_before_adjust): Declare.
1528
1529 * config/tc-ppc.c (md_pseudo_table): Warning fix.
1530 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1531 flags.
1532 (ppc_size): Delete.
1533 (ppc_xcoff64): Rename to ppc_obj64.
1534 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1535 (ppc_set_cpu): Set PPC_OPCODE_32 too.
1536 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1537 or bfd_mach_ppc.
1538 (ppc_target_format): Use ppc_obj64 to select format.
1539 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1540 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1541 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
1542 (tc_frob_symbol): Likewise.
1543 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
1544 BFD_DEFAULT_TARGET_SIZE.
1545 (ppc_tc): Likewise.
1546 (ppc_is_toc_sym): Likewise.
1547 (md_apply_fix3): Likewise.
1548 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1549 BFD_DEFAULT_TARGET_SIZE.
1550 (ELF_TC_SPECIAL_SECTIONS): Likewise.
1551 (tc_frob_symbol): Likewise.
1552
1553 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1554
1555 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1556 (mips_ip): Likewise.
1557
1558 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1559
1560 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1561 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1562 (md_apply_fix3): Formatting. Remove redundant test.
1563 (tc_gen_reloc): Remove redundant code.
1564 (tc_i386_force_relocation): Delete. Movy body of function to..
1565 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1566
1567 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1568
1569 * configure.in: Add hppa-*-openbsd* target, change
1570 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1571 with sparc64 cpu.
1572 * configure: Regenerate.
1573
1574 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1575
1576 * config/tc-mips.c (macro): Shift the 32-bit address range
1577 accessible with a lone "lui" down by 32768.
1578
1579 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1580
1581 * config/tc-mips.c (load_address): Use non-trapping "daddu"
1582 instead of "dadd" in address calculations.
1583 (macro): Likewise.
1584
1585 2002-07-08 Alan Modra <amodra@bigpond.net.au>
1586
1587 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1588 movzx fudges.
1589 (md_assemble): Instead, zap the suffix here.
1590
1591 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1592
1593 * NEWS: Remove next release number until the release is actually
1594 upon us.
1595
1596 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1597
1598 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1599 Run "make dep-am".
1600 * Makefile.in: Regenerate.
1601
1602 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1603
1604 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1605 to symbols in merge sections, even non pc-relative ones.
1606
1607 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1608
1609 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1610
1611 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1612
1613 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1614 .softregs and .eeprom.
1615
1616 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1617
1618 * NEWS: Note the next release is 2.13.
1619
1620 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
1621
1622 * po/tr.po: New translation imported.
1623
1624 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
1625
1626 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1627 (ecoff_directive_def): Likewise.
1628 (ecoff_directive_tag): Likewise.
1629 * listing.c (file_info): Likewise.
1630 * hash.c (what): Likewise.
1631
1632 2002-06-25 H.J. Lu <hjl@gnu.org>
1633
1634 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1635 * Makefile.in: Regenerated.
1636
1637 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1638
1639 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1640 (assemble_ppi): Generate warning if the same register is used
1641 twice as destination in the same padd / pmuls instruction.
1642
1643 2002-06-18 Dave Brolley <brolley@redhat.com>
1644
1645 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1646 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1647 * configure.in: Support frv-*-*.
1648 * Makefile.am (CPU_TYPES): Add frv.
1649 (TARGET_CPU_CFILES): Add tc-frv.c.
1650 (TARGET_CPU_HFILES): Add tc-frv.h.
1651 (DEPTC_frv_coff): New variable.
1652 (DEPTC_frv_elf): New variable.
1653 (DEPOBJ_frv_coff): New variable.
1654 (DEPOBJ_frv_elf): New variable.
1655 (DEP_frv_coff): New variable.
1656 (DEP_frv_elf): New variable.
1657 * tc-frv.c: New file.
1658 * tc-frv.h: New file.
1659
1660 2002-06-17 Catherine Moore <clm@redhat.com>
1661
1662 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1663
1664 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1665
1666 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1667
1668 2002-06-17 Tom Rix <trix@redhat.com>
1669
1670 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1671
1672 2002-06-14 H.J. Lu <hjl@gnu.org>
1673 Daniel Jacobowitz <drow@mvista.com>
1674
1675 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1676 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1677 * config/tc-mips.c (s_mips_file): Call s_app_file_string
1678 and new_logical_line for the first .file directive.
1679 * read.c (s_app_file_string): New function.
1680 (s_app_file): Call it.
1681 * read.h (s_app_file_string): Add declaration.
1682
1683 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1684
1685 * configure.in: Remove MIPS_STABS_ELF.
1686 * configure: Regenerated.
1687 * config.in: Regenerated.
1688 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1689 for MIPS targets.
1690 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1691 ".extern".
1692 (pdr_seg): Declare unconditionally.
1693 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1694 (s_mips_end): Likewise. Generate stabs function markers.
1695 (s_mips_ent): Generate stabs function markers.
1696 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1697 ELF.
1698 (s_mips_mask): Likewise.
1699 (mips_flag_mdebug): New.
1700 (md_longopts): Add "mdebug" and "no-mdebug".
1701 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1702 (mips_after_parse_args): Set mips_flag_mdebug.
1703 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1704
1705 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1706
1707 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1708 value twice for RELA relocations.
1709
1710 2002-06-12 Ben Elliston <bje@redhat.com>
1711
1712 * symbols.c (resolve_symbol_value): Initialise final_val.
1713
1714 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1715
1716 2002-06-11 Tom Rix <trix@redhat.com>
1717
1718 * config/tc-ppc.c (ppc_subseg_align): Delete.
1719 (ppc_change_csect): Default csect align is 2.
1720 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
1721
1722 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1723
1724 * config/tc-avr.c (mcu_types): Update.
1725
1726 2002-06-08 Matt Thomas <matt@3am-software.com>
1727
1728 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1729 (vax-*-netbsd*): New targets.
1730 * configure: Regenerate.
1731 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
1732 * config/tc-vax.c: Add support for ELF and PIC.
1733 (flag_want_pic): New flag.
1734 (float_cons): Fix prototype.
1735 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1736 (md_assemble): Introduce a new is_absolute local, and use it
1737 rather than repeating the test. Make fatal errors actually
1738 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
1739 Add support for ELF. Add support for PIC.
1740 (md_convert_frag): Adjust for BFD_ASSEMBLER.
1741 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1742 BFD_ASSEMBLER.
1743 (vax_reg_parse): Make the % register prefix mandatory for ELF,
1744 optional for a.out, and not allowed for VMS. Adjust all callers.
1745 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
1746 (md_create_long_jump): Likewise.
1747 (md_undefined_symbol): Likewise.
1748 (md_section_align): Likewise.
1749 (md_shortopts): Allow -k and -K for ELF.
1750 (md_parse_option): Set flag_want_pic if -k or -K.
1751 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
1752 (tc_gen_reloc): New function if BFD_ASSEMBLER.
1753 * config/tc-vax.h (tc_headers_hook): Remove.
1754 (TARGET_FORMAT): Set according to object format and target
1755 environment.
1756 (BFD_ARCH, TARGET_ARCH): Define.
1757 (NO_RELOC): Adjust for BFD_ASSEMBLER.
1758 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
1759 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
1760 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
1761
1762 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1763
1764 * Makefile.am: Run "make dep-am".
1765 * Makefile.in: Regenerate.
1766
1767 * as.c: Replace CONST with const.
1768 * write.c: Likewise.
1769 * config/obj-coff.c: Likewise.
1770 * config/tc-a29k.c: Likewise.
1771 * config/tc-arm.c: Likewise.
1772 * config/tc-dlx.c: Likewise.
1773 * config/tc-h8300.c: Likewise.
1774 * config/tc-h8500.c: Likewise.
1775 * config/tc-i370.c: Likewise.
1776 * config/tc-i860.c: Likewise.
1777 * config/tc-i960.c: Likewise.
1778 * config/tc-m68hc11.c: Likewise.
1779 * config/tc-m68k.c: Likewise.
1780 * config/tc-m88k.c: Likewise.
1781 * config/tc-mcore.c: Likewise.
1782 * config/tc-mips.c: Likewise.
1783 * config/tc-ns32k.c: Likewise.
1784 * config/tc-pdp11.c: Likewise.
1785 * config/tc-pj.c: Likewise.
1786 * config/tc-s390.c: Likewise.
1787 * config/tc-sh.c: Likewise.
1788 * config/tc-sparc.c: Likewise.
1789 * config/tc-tahoe.c: Likewise.
1790 * config/tc-tic80.c: Likewise.
1791 * config/tc-v850.c: Likewise.
1792 * config/tc-vax.c: Likewise.
1793 * config/tc-w65.c: Likewise.
1794 * config/tc-z8k.c: Likewise.
1795
1796 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
1797
1798 Based on patch from Matt Green:
1799 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
1800 * config/tc-mips.c (s_mips_file): Renamed from s_file.
1801 (s_mips_loc): New function.
1802 (mips_nonecoff_pseudo_table): Call them.
1803 (append_insn): Call dwarf2_emit_insn.
1804
1805 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1806
1807 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
1808 to -1.
1809 (file_ase_mips16): New veriable.
1810 (mips_eabi64): Remove.
1811 (CPU_HAS_MIPS16): New define.
1812 (CPU_HAS_MDMX): Fix data type.
1813 (md_begin): Code cleanup. Use file_ase_mips16.
1814 (mips_elf_final_processing): Handle mips16 header flag.
1815 Handle EABI flag without intermediate variable.
1816
1817 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1818
1819 * doc/as.texinfo: Update MIPS documentation.
1820
1821 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1822
1823 * config/tc-mips.c: Add define for $zero register.
1824 (md_begin): Add $zero as alias name for $0.
1825 (insn_uses_reg): Use ZERO define.
1826 (mips_ip): Add $zero as alias name for $0.
1827 (mips16_ip): Likewise.
1828 (s_cplocal): Demand empty rest of input line.
1829 (tc_get_register): Likewise. Add support for $kt0, kt1 register
1830 names. Use ZERO define. Fix input_line_pointer progress.
1831
1832 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1833
1834 * symbols.c: Replace CONST by const throughout.
1835 (symbol_find_exact): Split out from..
1836 (symbol_find_base): ..here.
1837 * symbols.h: Replace CONST by const throughout.
1838 (symbol_find_exact): Declare.
1839 * config/obj-elf.c: #include "struc-symbol.h".
1840 (elf_frob_file): If group name matches an exported symbol, use that
1841 symbol for the signature and ".group" as the section name.
1842
1843 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
1844
1845 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
1846 but warn about it.
1847
1848 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
1849
1850 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
1851 and mips_opts.ase_mdmx if they are uninitialized.
1852
1853 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1854
1855 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
1856 (hppa_force_relocation): Check if a stub just before the start symbol
1857 of the last call_info is reachable before forcing relocation. Fix
1858 typo.
1859
1860 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1861
1862 * config/tc-mips.c (mips_after_parse_args): New function.
1863 (md_begin): Move processing of defaults to mips_after_parse_args.
1864 config/tc-mips.h (md_after_parse_args): Define.
1865
1866 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1867
1868 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
1869 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
1870 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
1871 * configure: Regenerate.
1872 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
1873 environment.
1874
1875 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1876
1877 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
1878
1879 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1880
1881 * config/obj-elf.c (obj_elf_change_section): Set and check elf
1882 linkonce flag. Print all warnings.
1883 (obj_elf_section): Parse ",comdat" for groups.
1884 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
1885 consistency of comdat flag.
1886
1887 2002-06-02 Richard Henderson <rth@redhat.com>
1888
1889 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
1890 with LITERALs without sequence numbers.
1891
1892 2002-06-01 Richard Henderson <rth@redhat.com>
1893
1894 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
1895 Rename them LITUSE_ALPHA_*.
1896
1897 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
1898
1899 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
1900 accept parentheses enclosed register lists.
1901
1902 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1903
1904 * Makefile.am: Run "make dep-am".
1905 * Makefile.in: Regenerate.
1906 * po/POTFILES.in: Regenerate.
1907
1908 2002-05-31 Graeme Peterson <gp@qnx.com>
1909
1910 * configure.in: Add i386-*-nto-qnx*.
1911 * configure: Regenerate.
1912
1913 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1914
1915 * config/tc-mips.c (mips_ip): Use unsigned long values for
1916 warning output.
1917
1918 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1919
1920 * config/tc-mips.c (s_cpsetup): Fix initialization of
1921 mips_cpreturn_register and mips_cpreturn_offset.
1922
1923 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1924
1925 * config/tc-mips.c (s_cpsetup): Fix comment.
1926
1927 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1928
1929 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
1930 (mips_ip): Likewise.
1931 (mips16_ip): Likewise.
1932 (tc_get_register): Likewise.
1933
1934 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
1935 Ed Satterthwaite <ehs@broadcom.com>
1936
1937 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
1938 (mips_opts): Initialize "ase_mdmx" member.
1939 (file_ase_mdmx): New variable.
1940 (CPU_HAS_MDMX): New macro.
1941 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
1942 based on command line options and configuration defaults.
1943 (macro_build): Note in comment that use of MDMX in macros is
1944 not currently allowed.
1945 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
1946 "Z" MDMX operand types.
1947 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
1948 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
1949 types.
1950 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
1951 Add support for "-mdmx" and "-no-mdmx" options.
1952 (OPTION_ELF_BASE): Move to accomodate new options.
1953 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
1954 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
1955 file_ase_mdmx was set.
1956 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
1957 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
1958 nomdmx" directives.
1959
1960 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1961
1962 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
1963 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
1964 command line switch conforming to gcc conventions.
1965 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
1966
1967 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1968
1969 * config/tc-mips.c (macro_build_jalr): New Function.
1970 (md_begin): NewABI uses big GOTs.
1971 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
1972 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
1973 (load_address): Add some NewABI PIC support.
1974 (macro): Likewise.
1975 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
1976 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
1977
1978 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1979
1980 * config/tc-mips.c (load_address): Use mips_gp_register instead
1981 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
1982 instead.
1983 (macro): Use mips_gp_register instead of hardcoded value.
1984
1985 2002-05-30 Richard Henderson <rth@redhat.com>
1986
1987 * expr.h (operatorT): Add O_md17..O_md32.
1988 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
1989 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
1990 O_tprelhi, O_tprello, O_tprel): New.
1991 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
1992 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
1993 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
1994 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
1995 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
1996 (md_apply_fix3): Handle TLS relocations.
1997 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1998 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
1999 associated TLS reloc. Check lituse_tls relocs match up.
2000 (emit_insn): Handle TLS relocations.
2001 (ldX_op): Remove.
2002
2003 * doc/c-alpha.texi: Add docs for tls relocations.
2004
2005 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2006
2007 * config/tc-mips.c (mips_gprel_offset): New variable.
2008 (s_gpvalue): Use it.
2009
2010 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2011
2012 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2013 write-write conflicts.
2014 (md_assemble): Reformat introductory comment.
2015 (parallel_ok): Prevent packing only if the first
2016 instruction cannot be packed.
2017
2018 2002-05-30 Jason Eckhardt <jle@redhat.com>
2019 Tom Rix <trix@redhat.com>
2020
2021 * config/tc-d10v.c (build_insn): Check for immediates.
2022
2023 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2024
2025 * config/tc-mips.c: Replace GP in comments by $gp.
2026 (mips_big_got): Initialize.
2027 (mips_trap): Initialize.
2028 (load_address): Use mips_gp_register instead of hardcoded value.
2029 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2030 (macro): Use mips_gp_register instead of hardcoded value.
2031 (macro2): Change load_address calls.
2032 (md_pcrel_from): Comment formatting.
2033 (s_cpload): Use mips_gp_register instead of hardcoded value.
2034 (s_cprestore): Likewise. Comment formatting.
2035 (s_gpword): Fix data type.
2036 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2037 (nopic_need_relax): Replace GP in comments by $gp.
2038 (mips_elf_final_processing): Better comment.
2039
2040 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2041
2042 * configure.in: Add DLX configuraton
2043 * Makefile.am: Add DLX configuraton
2044 * configure: Regenerate.
2045 * Makefile.in: Regenerate.
2046 * config/tc-dlx.c: New file.
2047 * config/tc-dlx.h: New files.
2048 * NEWS: Mention new support.
2049
2050 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2051
2052 * config/obj-coff.c (write_object_file): Add missing semicolon.
2053
2054 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2055
2056 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2057 by the define. Remove superfluous check of mips_opts.mips16.
2058 (append_insn): Likewise. Canonicalize variable increments.
2059 (macro_build): Canonicalize variable increments.
2060 (macro_build_lui): Likewise.
2061 (load_register): Likewise.
2062 (load_address): Move pointer initialization.
2063 (macro): Move pointer to a more local scope. Canonicalize variable
2064 increments. Better comments. Replace magic constant for RA by the
2065 define.
2066 (macro2): Replace magic constant for RA by the define. Canonicalize
2067 variable increments.
2068 (mips_ip): Canonicalize variable increments.
2069 (mips16_ip): Replace magic constant for RA by the define.
2070 (my_getSmallParser): Canonicalize variable increments/decrements.
2071 (my_getPercentOp): Likewise.
2072 (my_getSmallExpression): Likewise.
2073 (s_align): Likewise.
2074 (s_mipsset): Likewise.
2075 (s_cpsetup): Likewise.
2076 (s_insn): Remove superfluous check of mips_opts.mips16.
2077 (s_mips_stab): Likewise.
2078 (mips_handle_align): Canonicalize variable increments.
2079 (s_mips_ent): Likewise.
2080 (s_mips_end): Add comment.
2081
2082 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2083
2084 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2085 * configure: Regenerate.
2086
2087 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2088
2089 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2090 * Makefile.in: Regenerate.
2091 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2092 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2093 * configure: Regenerate.
2094 * as.h: Use #include "" instead of <> for local header files.
2095 * flonum-konst.c: Likewise.
2096 * flonum-mult.c: Likewise.
2097 * gasp.c: Likewise.
2098 * listing.c: Likewise.
2099 * config/tc-ia64.h: Likewise.
2100 * config/tc-v850.h: Likewise.
2101
2102 2002-05-24 TAMURA Kent <kent@netbsd.org>
2103
2104 * configure.in: Add a target for i386-netbsdpe.
2105 * configure: Regenerate.
2106
2107 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2108
2109 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2110 (obj_elf_common): Call elf_common.
2111 (obj_elf_tls_common): New function.
2112 (elf_pseudo_tab): Support .tls_common.
2113 (special_sections): Add .tdata and .tbss.
2114 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2115 sections.
2116 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2117 (obj_elf_parse_section_letters): Include T in error message.
2118 * config/tc-ppc.c (ppc_section_letter): Likewise.
2119 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2120 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2121 SEC_MERGE.
2122 * config/tc-sparc.c (md_apply_fix3): Likewise.
2123 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2124 Define them if not BFD_ASSEMBLER.
2125 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2126 and @NTPOFF.
2127 (md_apply_fix3): Add TLS relocs.
2128 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2129 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2130 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2131 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2132 (ia64_elf_section_letter): Include T in error message.
2133 (md_begin): Support TLS operators.
2134 (md_operand): Likewise.
2135 (ia64_gen_real_reloc_type): Support TLS relocs.
2136 * write.c (adjust_reloc_syms): Don't change symbols in
2137 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2138
2139 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2140
2141 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2142 round the relocation up rather than down.
2143
2144 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2145
2146 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2147 flag.
2148 * doc/as.texinfo: Document that the COFF version of .section
2149 ignores the 'a' flag.
2150
2151 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2152
2153 * config/tc-alpha.c (assemble_tokens): Protect use of
2154 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2155
2156 * write.c (size_seg): Check adjustment to last frag.
2157 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2158 section alignment.
2159 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2160 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2161 (write_object_file): Invoke md_do_align if available, and use
2162 frag_align_code on text sections.
2163 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2164 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2165 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2166 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2167 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2168 BFD_ASSEMBLER too.
2169
2170 2002-05-22 H.J. Lu <hjl@gnu.org>
2171
2172 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2173 for source file.
2174
2175 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2176
2177 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2178 as ELF builds.
2179
2180 2002-05-22 H.J. Lu <hjl@gnu.org>
2181
2182 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2183 for one .loc for compiler.
2184
2185 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2186
2187 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2188 embedded-PIC.
2189
2190 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2191
2192 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2193 Optimize the rotate by zero case.
2194
2195 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2196
2197 * configure.in: Remove accidental enabling of bfd_gas=yes for
2198 sh-coff targets.
2199 * configure: Regenerate.
2200
2201 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2202
2203 * app.c: Fix formatting.
2204 * as.c: Likewise.
2205 * ehopt.c: Likewise.
2206 * expr.c: Likewise.
2207 * input-file.c: Likewise.
2208 * listing.c: Likewise.
2209 * macro.h: Likewise.
2210 * stabs.c: Likewise.
2211 * symbols.c: Likewise.
2212
2213 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2214
2215 * config/obj-generic.c: Delete file.
2216 * config/obj-generic.h: Likewise.
2217
2218 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2219
2220 * config/tc-avr.c (mcu_types): Update for new devices.
2221
2222 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2223
2224 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2225
2226 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2227
2228 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2229 worked sometimes by accident. Fix copy&paste comment.
2230
2231 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2232
2233 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2234 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2235 (mips_elf_final_processing): Let n32 use .reginfo.
2236
2237 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2238
2239 * config/tc-mips.c (append_insn): Fix too small range of variable.
2240
2241 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2242
2243 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2244 listing_prev_line().
2245
2246 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2247
2248 * config/tc-arm.c (md_assemble): Remove redundant call to
2249 listing_prev().
2250
2251 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2252 loc_directive_seen.
2253
2254 * stabs.c (s_stab_generic): Fix grammatical error in warning
2255 message.
2256
2257 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2258
2259 * write.c (subsegs_finish): Don't specially align last subseg.
2260
2261 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2262
2263 * stabs.c (s_stab_generic): Warn about a description field that is
2264 too big.
2265
2266 * config/obj-coff.c: Fix compile time warnings when compiling
2267 without BFD_ASSEMBLER defined.
2268 Fix formatting.
2269
2270 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2271 target.
2272 (md_pcrel_from_section): Use md_pcrel_from().
2273
2274 2002-05-11 Bruno Haible <bruno@clisp.org>
2275
2276 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2277 by dwarf2_directive_loc, instead of calling dwarf2_where.
2278
2279 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2280
2281 * config/obj-coff.h: Fix formatting.
2282 * config/tc-mcore.c: Likewise.
2283 * config/tc-mn10300.c: Likewise.
2284 * config/tc-openrisc.c: Likewise.
2285 * config/tc-or32.c: Likewise.
2286 * config/tc-pdp11.c: Likewise.
2287 * config/tc-ppc.c: Likewise.
2288 * config/tc-ppc.h: Likewise.
2289 * config/tc-sh64.c: Likewise.
2290 * config/tc-sh.c: Likewise.
2291 * config/tc-tic54x.c: Likewise.
2292 * config/tc-xstormy16.c: Likewise.
2293 * config/tc-xstormy16.h: Likewise.
2294
2295 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2296
2297 * config/obj-coff.c: Fix formatting.
2298 * config/obj-elf.c: Likewise.
2299 * config/tc-alpha.c: Likewise.
2300 * config/tc-arm.c: Likewise.
2301 * config/tc-d10v.c: Likewise.
2302 * config/tc-d30v.c: Likewise.
2303 * config/tc-h8300.c: Likewise.
2304 * config/tc-hppa.c: Likewise.
2305
2306 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2307
2308 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2309 reloc when no_cond_jump_promotion.
2310
2311 2002-05-08 Jim Wilson <wilson@redhat.com>
2312
2313 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2314 current variable part of frag.
2315
2316 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2317
2318 * config/tc-mmix.c: Fix formatting.
2319 * config/tc-mmix.h: Likewise.
2320
2321 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2322
2323 * configure: Regenerate.
2324
2325 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2326
2327 * config/tc-m68k.c: Fix formatting.
2328
2329 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2330
2331 * Makefile.am: Honour DESTDIR.
2332 * Makefile.in: Regenerate.
2333
2334 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2335
2336 * config/tc-ia64.c: Fix formatting.
2337 * config/tc-ia64.h: Likewise.
2338
2339 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2340
2341 * config/tc-mips.c: Fix formatting.
2342 * config/tc-s390.c: Likewise.
2343 * config/tc-s390.h: Likewise.
2344
2345 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
2346
2347 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2348 information for instructions.
2349
2350 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2351
2352 * as.h: Fix formatting.
2353 * cgen.c: Likewise.
2354 * cgen.h: Likewise.
2355 * dwarf2dbg.c: Likewise.
2356 * frags.h: Likewise.
2357 * gasp.c: Likewise.
2358 * macro.c: Likewise.
2359 * read.c: Likewise.
2360 * stabs.c: Likewise.
2361 * symbols.c: Likewise.
2362
2363 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2364
2365 * app.c (mri_pseudo): Only declare for TC_M68K.
2366
2367 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2368 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2369 BFD_RELOC_16_BASEREL.
2370 (md_assemble): Likewise.
2371 (md_apply_fix3): Likewise.
2372
2373 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2374
2375 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2376 zero into an add of zero - it is not the same.
2377
2378 2002-05-01 Arati Dikey <aratid@kpit.com>
2379
2380 * tc-sh.c (get_specific): Generate warning if the same
2381 destination register is used in parallel instructions.
2382
2383 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
2384
2385 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2386
2387 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2388
2389 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2390 backwards to prevent cascading errors.
2391
2392 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2393
2394 * configure.in: Add support for powerpc-*-windiss.
2395 * configure: Regenerated.
2396
2397 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2398
2399 * config/tc-s390.c (md_parse_option): Formatting.
2400
2401 * config/tc-i386.c: Formatting fixes, add missing space in error
2402 message.
2403
2404 2002-04-24 Christian Groessler <chris@groessler.org>
2405
2406 * config/tc-z8k.c (build_bytes): Add support for new cases:
2407 CLASS_IGNORE and ARG_NIM4.
2408 (md_assemble): Prevent destruction of input_line_pointer if
2409 get_operands returns failure.
2410
2411 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2412
2413 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2414 instructions to be generated by macros.
2415
2416 2002-04-24 Andreas Schwab <schwab@suse.de>
2417
2418 * config/tc-i386.c (output_jump, output_disp)
2419 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2420 more.
2421 (md_apply_fix3): Remember addend value for rela relocations.
2422 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2423
2424 2002-04-22 Chris Demetriou <cgd@broadcom.com>
2425
2426 * config/tc-mips.c (macro_build): Add close-parenthesis missing
2427 from previous change.
2428
2429 2002-04-22 Eric Christopher <echristo@redhat.com>
2430
2431 * config/tc-mips.c (macro_build): Add warning if macro instructions
2432 are expanded into a branch delay slot.
2433
2434 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
2435
2436 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2437 numbers, gdb relies on them to detect the start of the prologue.
2438
2439 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2440
2441 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2442 symbols in merge sections.
2443
2444 2002-04-16 Alan Modra <amodra@bigpond.net.au>
2445
2446 * as.c (main): Don't reference _bfd_chunksize.
2447
2448 2002-04-15 Tom Rix <trix@redhat.com>
2449
2450 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2451 symbols in merge sections.
2452
2453 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2454
2455 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2456 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2457 argument for the precision.
2458 (gen_to_words): Update accordingly.
2459
2460 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2461
2462 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2463 BFD_VERSION_STRING unavailable.
2464 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2465
2466 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
2467
2468 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2469 symbol_used_in_reloc_p is true.
2470
2471 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2472 endian hosts.
2473
2474 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2475
2476 * dep-in.sed: Cope with absolute paths.
2477 * Makefile.am (dep.sed): Subst TOPDIR.
2478 Run "make dep-am".
2479 * Makefile.in: Regenerate.
2480
2481 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2482
2483 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2484 (mips_ip): Remove unused variable.
2485 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2486 unsigned char with bfd_byte.
2487 (s_file): Remove unused variable.
2488 (s_mips_ent): Likewise.
2489
2490 2002-04-03 Tom Rix <trix@redhat.com>
2491
2492 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2493 (build_insn): Same.
2494 (find_opcode): Fix warning in as_warn.
2495 * config/tc-d10v.h: Update Copyright.
2496
2497 2002-04-03 Alan Matsuoka <alanm@redhat.com>
2498 Tom Rix <trix@redhat.com>
2499
2500 From Jeff Knaggs <jknaggs@redhat.com>
2501 * config/tc-d10v.c (check_resource_conflict): New function to
2502 check for resource conflicts.
2503
2504 From Jason Eckhardt <jle@redhat.com>
2505 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2506 imm3 fields.
2507 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2508 reserved control registers is used.
2509 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2510 imm3 fields.
2511
2512 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
2513 * tc-d10v.c (parallel_ok): Prevent packing only if the first
2514 instruction cannot be packed.
2515
2516 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
2517 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2518 write-write conflicts.
2519 (md_assemble): Reformat introductory comment.
2520 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2521 arguments.
2522
2523 2002-04-03 Alan Modra <amodra@bigpond.net.au>
2524
2525 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2526 O_logical_not>): Derive final_seg from add_symbol.
2527 <O_multiply..O_logical_or>: More final_seg twiddles.
2528
2529 2002-04-01 Jessica Han <jessica@cup.hp.com>
2530
2531 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2532 in 32-bit mode.
2533
2534 2002-03-27 Andreas Schwab <schwab@suse.de>
2535
2536 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2537 field for pc-relative fixups.
2538 (output_disp): Likewise.
2539 (md_estimate_size_before_relax): Likewise.
2540 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2541 pc-relative fixups in 64bit mode.
2542
2543 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2544
2545 * config/te-aix5.h: Typo fix.
2546
2547 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2548
2549 * Makefile.am: Run "make dep-am".
2550 * Makefile.in: Regenerate.
2551 * doc/Makefile.in: Regenerate.
2552
2553 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
2554
2555 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2556 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2557
2558 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2559
2560 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2561 the EXTENDED bit here; report the estimate according to the
2562 current size.
2563
2564 2002-03-18 Tom Rix <trix@redhat.com>
2565
2566 * configure.in: Add AIX 5 support.
2567 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2568 * config/te-aix5.h: New file. AIX 5 support.
2569 * configure: Regenerate.
2570
2571 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2572
2573 * po/fr.po: Updated version.
2574
2575 2002-03-16 Andreas Jaeger <aj@suse.de>
2576
2577 * doc/c-mips.texi (Machine Dependencies): Add new node.
2578
2579 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
2580
2581 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2582 (mips_opts): Initialize "ase_mips3d" member.
2583 (file_ase_mips3d): New variable.
2584 (CPU_HAS_MIPS3D): New macro.
2585 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2586 based on command line options and configuration defaults.
2587 (macro_build, mips_ip): Accept MIPS-3D instructions if
2588 mips_opts.ase_mips3d is set.
2589 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2590 Add support for "-mips3d" and "-no-mips3d" options.
2591 (OPTION_ELF_BASE): Move to accomodate new options.
2592 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2593 (mips_elf_final_processing): Add a comment indicating that a
2594 MIPS-3D ASE ELF header flag should be set, when one exists.
2595 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2596 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2597 nomips3d" directives.
2598
2599 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
2600
2601 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2602 a weak symbol in same section to be within reach.
2603
2604 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2605
2606 * po/fr.po: Updated version.
2607
2608 2002-03-12 Andreas Schwab <schwab@suse.de>
2609
2610 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2611 body record so that an error is given for misplaced .save
2612 pseudo-ops.
2613
2614 2002-03-09 Alan Modra <amodra@bigpond.net.au>
2615
2616 * config/tc-i386.h (REX_OPCODE): Define.
2617 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2618 (rex_byte): typedef to int.
2619 * config/tc-i386.c: Group prototypes and vars together.
2620 Formatting fixes. Remove occurrences of "register" keyword.
2621 (true): Delete.
2622 (false): Delete.
2623 (mode_from_disp_size): Add INLINE keyword to prototype.
2624 (fits_in_signed_byte): Likewise.
2625 (fits_in_unsigned_byte): Likewise.
2626 (fits_in_unsigned_word): Likewise.
2627 (fits_in_signed_word): Likewise.
2628 (fits_in_unsigned_long): Likewise.
2629 (fits_in_signed_long): Likewise.
2630 (type_names): Constify.
2631 (intel_float_operand): Constify param.
2632 (add_prefix): Use REX_OPCODE.
2633 (md_assemble): Likewise. Modify for changed rex_byte.
2634 (parse_insn): Split out of md_assemble.
2635 (parse_operands): Likewise.
2636 (swap_operands): Likewise.
2637 (optimize_imm): Likewise.
2638 (optimize_disp): Likewise.
2639 (match_template): Likewise.
2640 (check_string): Likewise.
2641 (process_suffix): Likewise.
2642 (check_byte_reg): Likewise.
2643 (check_long_reg): Likewise.
2644 (check_qword_reg): Likewise.
2645 (check_word_reg): Likewise.
2646 (finalize_imm): Likewise.
2647 (process_operands): Likewise.
2648 (build_modrm_byte): Likewise.
2649 (output_insn): Likewise.
2650 (output_branch): Likewise.
2651 (output_jump): Likewise.
2652 (output_interseg_jump): Likewise.
2653 (output_disp): Likewise.
2654 (output_imm): Likewise.
2655
2656 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2657
2658 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2659
2660 2002-03-06 Alan Modra <amodra@bigpond.net.au>
2661
2662 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2663 relocs except when BFD64.
2664
2665 * write.c (number_to_chars_bigendian): Don't abort when N is
2666 larger than sizeof (VAL).
2667 (number_to_chars_littleendian): Likewise.
2668
2669 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2670
2671 * config/tc-hppa.c (md_apply_fix3): Add cast.
2672 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2673 e_rrsel.
2674
2675 2002-03-05 Paul Koning <pkoning@equallogic.com>
2676
2677 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2678 (parse_ac5): New function for parsing float regs in float operand.
2679 (parse_expression): Remove attempt to make literals be octal.
2680 (parse_op_no_deferred): Support float literals.
2681 (parse_op): Reject attempts to refer to float regs.
2682 (parse_fop): New function, like parse_op but for float operand.
2683 (md_assemble): Add cases to parse float operands. Also fix
2684 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2685
2686 2002-03-04 H.J. Lu <hjl@gnu.org>
2687
2688 * config/obj-elf.c (special_section): Add .init_array,
2689 .fini_array and .preinit_array.
2690
2691 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2692 .init_array and .fini_array.
2693
2694 2002-03-01 Jakub Jelinek <jakub@redhat.com>
2695
2696 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2697 visibility.
2698 (obj_frob_symbol): Copy visibility.
2699
2700 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2701
2702 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2703 s_text.
2704 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2705
2706 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
2707
2708 * po/es.po: Updated.
2709
2710 2002-02-26 Chris Demetriou <cgd@broadcom.com>
2711
2712 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2713 only, undo the changes made on 2001-06-08, with the
2714 effect being that common or extern symbols are
2715 adjusted for embedded-PIC, but weak symbols are not.
2716 (md_estimate_size_before_relax: Likewise, with the effect
2717 that extern symbols are treated the same as weak symbols
2718 only if not embedded-PIC.
2719 (mips_fix_adjustable) Likewise, with the effect that
2720 weak or extern symbols are not adjusted for embedded-PIC.
2721 (md_apply_fix3): Tweak so that the case where value is zero
2722 is handled more correctly for embedded-PIC code.
2723
2724 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
2725
2726 * doc/as.texinfo (Overview): Add missing @ifset IA64
2727
2728 * configure.in (LINGUAS): Add es.po.
2729 * configure: Regenerate.
2730 * po/es.po: New file.
2731
2732 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2733
2734 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2735 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2736 and NO_PIC cases. Code cleanup.
2737 (macro2): Fix handling of 64bit register loads.
2738
2739 2002-02-25 David Mosberger <davidm@hpl.hp.com>
2740
2741 * doc/as.texinfo: Add entry for IA64.
2742 * doc/c-ia64.texi: New file.
2743
2744 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2745
2746 * config/tc-hppa.c: Update copyright date.
2747
2748 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
2749 Remove references to chip manufacturers.
2750 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
2751 Correct comments.
2752 (md_show_usage): Remove references to chip manufacturers. Mention
2753 -mpower4.
2754 (md_begin): Test power4 opcode flag bits.
2755
2756 2002-02-22 David Mosberger <davidm@hpl.hp.com>
2757
2758 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
2759 count exceeds prologue count.
2760 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
2761 (unwind.label_prologue_count): New member.
2762
2763 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
2764
2765 (get_saved_prologue_count): New function.
2766 (save_prologue_count): New function.
2767 (free_saved_prologue_count): New function.
2768 (dot_label_state): Record state label by calling save_prologue_count().
2769 (dot_copy_state): Restore prologue count by calling
2770 get_saved_prologue_count().
2771 (generate_unwind_image): Free up list of saved prologue
2772 counts by calling free_saved_prologue_counts().
2773
2774 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
2775
2776 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
2777 function declarations.
2778
2779 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
2780
2781 * NEWS: Note that GASP is now deprecated.
2782 * Makefile.am: Do not build gasp-new by default.
2783 * Makefile.in: Regenerate.
2784 * doc/Makefile.am: Do not install gasp.info.
2785 * doc/Makefile.in: Regenerate.
2786 * gas/gasp.texi: Note that gasp is now deprecated.
2787
2788 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2789
2790 * NEWS: Mark 2.12 branch.
2791
2792 2002-02-19 Tom Tromey <tromey@redhat.com>
2793
2794 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2795
2796 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2797
2798 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
2799 option input.
2800
2801 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2802
2803 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
2804 Make bit size independent of architecture switch.
2805 (md_begin): Add warning for -m64 with -Aesa.
2806 (s390_md_end): Use renamed architecture defines.
2807
2808 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
2809
2810 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2811
2812 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
2813
2814 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2815 instead of CRIS.
2816
2817 2002-02-15 Chris Demetriou <cgd@broadcom.com>
2818
2819 * config/tc-mips.c (md_estimate_size_before_relax): Really
2820 make sure we treat weak like extern only for ELF. (Fixes
2821 patch from 2001-07-25.)
2822
2823 2002-02-15 Ben Elliston <bje@redhat.com>
2824
2825 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
2826 works as expected.
2827
2828 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2829
2830 * NEWS: Mention support for MMIX.
2831
2832 2002-02-13 Chris Demetriou <cgd@broadcom.com>
2833
2834 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
2835 a sequence of indpendent 'if' statements for easier debugging
2836 and future modification.
2837
2838 2002-02-13 Matt Fredette <fredette@netbsd.org>
2839
2840 * config/tc-m68k.c (md_show_usage): No longer display a
2841 hard-coded "68020" for the default CPU, instead display the
2842 canonical name of the true, configured default CPU.
2843 (m68k_elf_final_processing): Mark objects for sub-68020
2844 CPUs with the new EF_M68000 flag.
2845
2846 2002-02-13 Andreas Schwab <schwab@suse.de>
2847
2848 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2849 pc-relative relocations to merge sections in 64-bit mode.
2850
2851 2002-02-13 Ben Elliston <bje@redhat.com>
2852
2853 * NEWS: Document floating point number handling in gasp.
2854 * gasp.c: Include <assert.h> and "xregex.h".
2855 (is_flonum): New function.
2856 (chew_flownum): Likewise.
2857 (change_base): Consume flonums from the input, where possible.
2858 * doc/gasp.texi (Constants): Document floating point numbers.
2859
2860 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2861
2862 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
2863 that implicitly use LR and RR selectors.
2864
2865 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2866
2867 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
2868 and `epsw' as available on AM33 and above only.
2869 (other_register_name): Add logic to handle machine type encoded in
2870 reg_number.
2871
2872 2002-02-11 Tom Rix <trix@redhat.com>
2873
2874 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
2875 xcoff64.
2876
2877 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
2878
2879 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
2880 Use all over.
2881
2882 2002-02-11 Jan Hubicka <jh@suse.cz>
2883
2884 * i386.c (md_assemble): Support 32bit address prefix.
2885 (i386_displacement): Likewise.
2886 (i386_index_check): Accept 32bit addressing in 64bit mode.
2887
2888 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2889
2890 * config/tc-sh.c (dot): Removed unused function.
2891
2892 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2893
2894 * Makefile.am: "make dep-am".
2895 * Makefile.in: Regenerate.
2896 * aclocal.m4: Regenerate.
2897 * config.in: Regenerate.
2898 * configure: Regenerate.
2899 * doc/Makefile.in: Regenerate.
2900
2901 2002-02-10 Richard Henderson <rth@redhat.com>
2902
2903 * doc/c-alpha.texi: New file.
2904 * doc/Makefile.am (CPU_DOCS): Add it.
2905 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
2906
2907 2002-02-09 Richard Henderson <rth@redhat.com>
2908
2909 * config/tc-alpha.c (O_samegp): New.
2910 (USER_RELOC_P): Include it.
2911 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
2912 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
2913 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2914 (alpha_validate_fix): New.
2915 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
2916
2917 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
2918
2919 * doc/c-cris.texi: New.
2920 * doc/all.texi: @set CRIS.
2921 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
2922 Include c-cris.texi.
2923 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
2924 * doc/Makefile.in: Regenerate.
2925
2926 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2927
2928 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
2929 determine if a number is a sign-extended 32-bit number.
2930 (load_register): Use IS_SEXT_32BIT_NUM.
2931 (macro): Check if load/store macro handling is using a
2932 constant 32-bit address on 64-bit address systems, and if
2933 so optimize the generation of that address.
2934
2935 2002-02-08 Richard Henderson <rth@redhat.com>
2936
2937 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
2938 we've eliminated all foreign relocation types yet.
2939 (alpha_fix_adjustable): Likewise.
2940
2941 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2942
2943 Contribute sh64-elf.
2944 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2945 Stephen Clarke <Stephen.Clarke@st.com>
2946 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
2947 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
2948 * config/tc-sh.c (md_relax_table): Added default sizes for
2949 non-PC-relative UNDEF_MOVI, and relaxation sequences for
2950 MOVI_16, MOVI_32 and MOVI_48.
2951 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
2952 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
2953 and MOVI_16.
2954 (shmedia_md_estimate_size_before_relax): Remove redundant
2955 blocks. Set fragP->fr_var even if relaxation type unchanged.
2956 Retain UNDEF_MOVI until expression decays to number.
2957 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2958 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
2959 relocation types. Take fixP->fx_addnumber into account too.
2960 (shmedia_md_apply_fix): Likewise.
2961 (shmedia_md_convert_frag): Likewise.
2962 (shmedia_build_Mytes): Likewise.
2963 (sh64_consume_datalabel): Complain about nested datalabel.
2964 Support PIC relocs. Call sh_parse_name.
2965 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
2966 in tc-sh.h to SHmedia reloc types.
2967 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
2968 MOVI_GOTPC): New relaxation constants.
2969 (md_relax_table): Introduce relaxation directives for PIC-related
2970 constants.
2971 (sh_PIC_related_p): Handle datalabel.
2972 (sh_check_fixup): Choose SH5 PIC relocations.
2973 (sh_cons_fix_new): Added BDF_RELOC_64.
2974 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
2975 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2976 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
2977 current ISA is SHmedia, get 7 bytes.
2978 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
2979 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
2980 void function.
2981 * config/tc-sh64.c (shmedia_apply_fix): Rename to
2982 shmedia_apply_fix3 and make void.
2983 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
2984 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
2985 as_bad.
2986 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2987 * config/tc-sh64.h (md_parse_name): Take &c as argument.
2988 2001-03-14 DJ Delorie <dj@redhat.com>
2989 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
2990 * doc/Makefile.in(CPU_DOCS): Ditto.
2991 * doc/c-sh64.texi: New file.
2992 * doc/as.texinfo: Add SH64 support.
2993 2001-03-13 DJ Delorie <dj@redhat.com>
2994 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
2995 A_REUSE_PREV so that its purpose is more obvious.
2996 (shmedia_build_Mytes): Ditto.
2997 2001-03-07 DJ Delorie <dj@redhat.com>
2998 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
2999 before processing.
3000 (sh64_vtable_inherit): Ditto.
3001 (strip_datalabels): New, strip "datalabel" from given line.
3002 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3003 pseudos.
3004 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3005 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3006 call ...
3007 (shmedia_build_Mytes): ... to here.
3008 2001-03-06 DJ Delorie <dj@redhat.com>
3009 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3010 is a generic one.
3011 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3012 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3013 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3014 address by one in call to dwarf2_emit_insn.
3015 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3016 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3017 alignment handling broken by imported changes.
3018 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3019 (sh64_handle_align): Declare.
3020 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3021 (sh64_max_mem_for_rs_align_code): Declare.
3022 (enum sh64_isa_values): Moved here from tc-sh64.c.
3023 (md_do_align): Define.
3024 (sh64_do_align): Declare.
3025 (struct sh64_tc_frag_data): New.
3026 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3027 changed.
3028 (TC_FRAG_INIT): Change to set new datatype.
3029 (struct sh64_segment_info_type): Rename member
3030 last_flushed_location to last_contents_mark. All users changed.
3031 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3032 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3033 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3034 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3035 of unsetting seen_insn.
3036 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3037 call sh64_update_contents_mark.
3038 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3039 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3040 enum sh64_isa_values.
3041 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3042 (emitting_crange): Boolean guard moved to file scope from function
3043 scope in sh64_set_contents_type.
3044 (s_sh64_abi): New.
3045 (sh64_update_contents_mark): New; most split out from
3046 sh64_flush_pending_output.
3047 (shmedia_md_end): Call sh64_update_contents_mark. Set
3048 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3049 (sh64_do_align): New function.
3050 (sh64_max_mem_for_rs_align_code): New function.
3051 (sh64_handle_align): Rename from shmedia_do_align. Make
3052 non-static. Add head comment. Emit zero bytes for n bytes modulo
3053 four. Change return-type to void.
3054 (shmedia_elf_new_section): Remove.
3055 (shmedia_md_assemble): Call sh64_update_contents_mark.
3056 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3057 new frag. Call sh64_update_contents_mark after making the new
3058 frag.
3059 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3060 and sh_flush_pending_output.
3061 (sh64_flag_output): Also call md_flush_pending_output, but add
3062 condition on not emitting_crange.
3063 (sh64_tc_cons_fix_new): Remove.
3064 2001-01-12 Nick Clifton <nickc@redhat.com>
3065 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3066 alignment handling scheme imported from sourceware.
3067 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3068 * config/tc-sh64.h (TARGET_FORMAT): Define.
3069 (sh64_target_format): Prototype.
3070 * config/tc-sh64.c (sh64_target_mach): New function.
3071 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3072 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3073 zero_address_frag instead of copying the frag of the symbol.
3074 (shmedia_frob_file_before_adjust): Ditto.
3075 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3076 to valueT to remove signedness.
3077 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3078 headers to output_bfd. Do not evaluate symbols if final is false;
3079 do emit fixups.
3080 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3081 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3082 to the current frag, call shmedia_md_convert_frag to emit fixups
3083 and make frag_wane neutralize the frag. Update comments.
3084 * config/tc-sh.c (md_convert_frag): Change caller of
3085 shmedia_md_convert_frag.
3086 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3087 * config/tc-sh64.h: Tweak comments and correct formatting.
3088 * config/tc-sh64.c: Ditto.
3089 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3090 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3091 for the no-relocation case.
3092 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3093 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3094 wrappers.
3095 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3096 comment.
3097 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3098 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3099 expansion.
3100 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3101 Correct comment.
3102 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3103 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3104 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3105 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3106 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3107 if reloc is emitted.
3108 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3109 New options plus bugfixes.
3110 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3111 "-expand-pt32".
3112 (md_parse_option): Handle new options.
3113 (md_show_usage): Add blurb for new options.
3114 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3115 (sh64_expand, sh64_pt32): New variables.
3116 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3117 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3118 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3119 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3120 <resolved previously-pc-relative relocs>: Handle
3121 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3122 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3123 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3124 points to SHcompact code.
3125 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3126 SH64PCREL16)>: Check that ISA of what operand points at and
3127 PTA/PTB matches, or emit error.
3128 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3129 SHMEDIA_BFD_RELOC_PT.
3130 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3131 operand.
3132 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3133 condition for MOVI expansion.
3134 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3135 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3136 sh64_expand.
3137 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3138 fixup.
3139 (sh64_target_format): Error-check setting of sh64_pt32 and
3140 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3141 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3142 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3143 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3144 * config/tc-sh64.c: Improve comments.
3145 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3146 not say the linker will check correctness of PTA/PTB expansion.
3147 (shmedia_md_end): Make non-static.
3148 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3149 prototype.
3150 * config/tc-sh.c (sh_finalize): Remove.
3151 * config/tc-sh.h (md_end): Do not define.
3152 Remove prototype for sh_finalize.
3153 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3154 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3155 sh64_section_data container when storing section type in tdata
3156 field in elf_section_data.
3157 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3158 EF_SH5.
3159 * Makefile.am: Update dependencies.
3160 * Makefile.in: Regenerate.
3161 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3162 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3163 dwarf2_emit_insn call with test on debug_type.
3164 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3165 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3166 CRT_SH5_ISA32 sticky for 64-bit.
3167 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3168 Generate .crange sections when switching ISA mode or emitting
3169 constants in same section as code.
3170 * config/tc-sh64.c: Reformat structure definitions.
3171 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3172 variables.
3173 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3174 to emit a .cranges descriptor when contents type changes. Only
3175 emit error if changing contents type and -no-mix is in effect.
3176 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3177 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3178 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3179 sh64_flush_last_crange over sections.
3180 When checking main symbol of datalabel symbol, check for
3181 STO_SH5_ISA32, not ISA type of section in definition.
3182 (shmedia_frob_file_before_adjust): Check main symbol for
3183 STO_SH5_ISA32; don't check ISA type of section in definition.
3184 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3185 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3186 .cranges entries have been output.
3187 (shmedia_elf_new_section): Just call md_flush_pending_output.
3188 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3189 fix. Do not set tc_segment_info_data.in_code for section. Call
3190 sh64_set_contents_type for SHmedia code.
3191 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3192 false. Call md_flush_pending_output.
3193 (sh64_target_format): Check that -no-mix and
3194 -shcompact-const-crange are used in sane combination with other
3195 options.
3196 (shmedia_md_pcrel_from_section): Check type of fix for how to
3197 adjust pc-relative.
3198 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3199 not ISA type of section in definition.
3200 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3201 hold contents-type state.
3202 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3203 (sh64_flush_pending_output): Declare.
3204 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3205 (sh64_tc_cons_fix_new): Declare.
3206 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3207 call sh64_flag_output.
3208 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3209 call sh64_set_contents_type to mark SHcompact code and set
3210 seen_insn.
3211 (md_longopts): New options "-no-mix" and
3212 "-shcompact-const-crange".
3213 (md_parse_option): Handle new options.
3214 (md_show_usage): Add blurb for new options.
3215 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3216 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3217 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3218 (sh64_last_insn_frag): New.
3219 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3220 to get frag for insn opcode for generating fixups; do not assume it
3221 is the same frag.
3222 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3223 for new insn.
3224 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3225 section.
3226 (TC_FRAG_TYPE): Define as fragS *.
3227 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3228 (sh64_last_insn_frag): Declare.
3229 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3230 not == NULL before dereferencing.
3231 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3232 Get rid of BFD section flag and EF_SH64_ABI64.
3233 * config/tc-sh64.c (shmedia_frob_section_type): Use
3234 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3235 communicate the section as containing SHmedia code. Describe why.
3236 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3237 EF_SH64 regardless of ABI.
3238 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3239 in error message. Handle resolved expressions for
3240 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3241 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3242 (shmedia_check_limits): Handle BFD_RELOC_64.
3243 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3244 a STO_SH5_ISA32 symbol, only the BFD value.
3245 2000-12-11 Ben Elliston <bje@redhat.com>
3246 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3247 dwarf2_generate_asm_lineno.
3248 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3249 Handle PC-relative MOVI expansions with assembler relaxation.
3250 Generate PC-relative relocs from 16-bit PC-relative expressions.
3251 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3252 (shmedia_md_pcrel_from_section): ...here.
3253 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3254 turned completely resolved. Adjust relocation type for 16-bit
3255 immediate operands that has turned PC-relative. Adjust back for
3256 MD_PCREL_FROM_SECTION being applied twice.
3257 (shmedia_md_convert_frag): Always emit reloc for expression with
3258 global or weak symbol. Handle relaxation result for PC-relative
3259 expressions.
3260 (shmedia_md_estimate_size_before_relax): An expression with a weak
3261 or global symbol can not be relaxed. Break out tests for
3262 relaxable symbol into variable sym_relaxable.
3263 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3264 UNDEF_MOVI)>: Break out any PC-relative expression and change
3265 relaxation type.
3266 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3267 opjp.
3268 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3269 MOVI expansion. If X_op_symbol of the immediate expression is
3270 set, make an expression symbol for the argument to frag_var.
3271 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3272 relaxations.
3273 (END): Adjust for new relaxations.
3274 (md_relax_table): Add entries for new relaxations.
3275 2000-12-07 Ben Elliston <bje@redhat.com>
3276 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3277 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3278 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3279 SHORI operand offsets in PT/PTA/PTB expansions.
3280 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3281 Implement DataLabel semantics.
3282 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3283 shmedia_frob_file_before_adjust.
3284 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3285 (DATALABEL_SUFFIX): Define.
3286 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3287 symbol list to update "datalabel" symbols to their main symbol
3288 counterparts.
3289 (shmedia_frob_file_before_adjust): New.
3290 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3291 undefined and set STT_DATALABEL.
3292 (sh64_frob_label): Initialize TC symbol field.
3293 (sh64_consume_datalabel): Actually implement semantics. New
3294 parameter operandf, call it instead of expression.
3295 (sh64_exclude_symbol): New.
3296 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3297 to sh64_consume_datalabel.
3298 (tc_symbol_new_hook): Define to tc_frob_symbol.
3299 (TC_SYMFIELD_TYPE): Define to symbolS *.
3300 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3301 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3302 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3303 case.
3304 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3305 generating dwarf2 debug information.
3306 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3307 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3308 elf64-sh64 for the 64-bit ABI.
3309 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3310 option.
3311 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3312 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3313 case-insensitivity.
3314 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3315 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3316 (enum sh64_abi_values): New type.
3317 (enum sh64_isa_values): New type.
3318 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3319 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3320 (sh64_abi): Replace shmedia_64.
3321 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3322 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3323 (s_sh64_mode): Check validity for this target.
3324 (sh64_target_format): Initialize defaults for ISA and ABI.
3325 Fallback to old object format if no SH64 ISA or ABI has been
3326 specified.
3327 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3328 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3329 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3330 * config/tc-sh64.h: Fix typo in comment.
3331 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3332 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3333 <PT fixups for absolute values>: Size will be longest, not
3334 shortest.
3335 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3336 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3337 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3338 and l1 to hold lowercase of two first characters. Change all
3339 remaining TO_LOWER to tolower.
3340 * config/tc-sh64.c (TO_LOWER): Delete.
3341 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3342 (md_parse_name): Define.
3343 (sh64_consume_datalabel): Declare.
3344 (DOLLAR_DOT): Define.
3345 * config/tc-sh64.c (shmedia_parse_exp): New.
3346 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3347 (shmedia_parse_reg): Remove const from src
3348 parameter.
3349 (shmedia_get_operands): Ditto for args parameter and ptr variable.
3350 (shmedia_md_assemble): Ditto for op_end variable.
3351 (shmedia_get_operand): Ditto for ptr parameter and src variable.
3352 Use shmedia_parse_exp, not parse_exp.
3353 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3354 parameter. All callers changed.
3355 (shmedia_get_operand): Add shmedia_arg_type parameter. All
3356 callers changed.
3357 (shmedia_parse_reg): Put first two character in local variables.
3358 Use tolower, not TO_LOWER. If no register is found and argtype
3359 indicates a control register, scan shmedia_creg_table
3360 case-insensitive.
3361 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3362 * Makefile.am (CPU_TYPES): Add sh64.
3363 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3364 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3365 Regenerate dependencies.
3366 * Makefile.in: Regenerate.
3367 * configure.in: Add support for sh64-*-elf*.
3368 * configure: Regenerate.
3369 * config/tc-sh64.h: New.
3370 * config/tc-sh64.c: New.
3371 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3372 .mode, .isa and .uaquad.
3373 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3374 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3375 [HAVE_SH64] (END): Define as 10.
3376 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3377 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3378 MOVI_64): Define.
3379 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3380 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3381 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3382 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3383 Define.
3384 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3385 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3386 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3387 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3388 SHmedia instructions. Handle state-change after switching to
3389 SHcompact.
3390 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3391 (md_parse_option) [HAVE_SH64]: Parse new options.
3392 (md_show_usage) [HAVE_SH64]: Show usage of new options.
3393 (md_convert_frag) [HAVE_SH64] <default>: Call
3394 shmedia_md_convert_frag instead of abort.
3395 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3396 BFD_RELOC_SH_SHMEDIA_CODE.
3397 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3398 SHcompact or SHmedia code.
3399 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3400 shmedia_md_apply_fix instead of abort.
3401 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3402 result from calling shmedia_md_estimate_size_before_relax instead
3403 of calling abort.
3404 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3405 do the work.
3406 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3407 shmedia_init_reloc and do nothing more if it returns non-zero.
3408 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3409 * po/POTFILES.in: Regenerate.
3410 * po/gas.pot: Regenerate.
3411
3412 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
3413
3414 * config/tc-sh.c (parse_at): Install the correct version of
3415 2002-02-04's patch.
3416
3417 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3418 assume fixP->fx_subsy is non-NULL.
3419
3420 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
3421
3422 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3423 A_DISP_PC_ABS, and adjust it by -4.
3424 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3425 expected.
3426 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3427 the operand type is not A_DISP_PC_ABS.
3428
3429 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3430
3431 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3432 common and weak symbols. Handle common and weak symbols as
3433 undefined symbols with regards to GREG handling and merging.
3434 (mmix_frob_file): Ditto.
3435
3436 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3437
3438 * configure.in (hppa-*-netbsd*): New target.
3439 * configure: Regenerate.
3440 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3441
3442 2002-02-02 Alan Modra <amodra@bigpond.net.au>
3443
3444 * config/tc-v850.c: Add missing prototypes amd use old-style
3445 function definitions.
3446 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3447 (sdata_section tdata_section, zdata_section, sbss_section,
3448 tbss_section, zbss_section, rosdata_section, rozdata_section,
3449 scommon_section, tcommon_section, zcommon_section,
3450 call_table_data_section, call_table_text_section): Delete.
3451 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3452 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3453 v850_call_table_data, v850_call_table_text): Delete.
3454 (struct v850_seg_entry): New.
3455 (v850_seg_table): New.
3456 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3457 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3458 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3459 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3460 (do_v850_seg): New.
3461 (v850_seg): New.
3462 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
3463 recording of alignment.
3464 (md_pseudo_table): Use v850_seg.
3465 (md_begin): Don't init .call_table_data and .call_table_text here.
3466 Set v850_seg_table bss entry.
3467
3468 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3469
3470 Support on-demand global register allocation by passing on
3471 base-plus-offset relocs to the linker.
3472 * config/tc-mmix.c: Tweak and fix typos in comments.
3473 (allocate_undefined_gregs_in_linker): New variable.
3474 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3475 (md_longopts): Add --linker-allocated-gregs.
3476 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3477 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3478 (md_show_usage): Update text for -x. Add text for
3479 --linker-allocated-gregs.
3480 (tc_gen_reloc): Derive default value for addend from val and
3481 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
3482 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3483 GREG if allocate_undefined_gregs_in_linker.
3484 * doc/as.texinfo (Overview) <Target MMIX options>: Add
3485 --linker-allocated-gregs.
3486 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3487 --linker-allocated-gregs. Mention that it's implied by -x.
3488 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3489 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3490
3491 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3492
3493 2002-02-01 Alan Modra <amodra@bigpond.net.au>
3494
3495 * Makefile.am: Run "make dep-am"
3496 * Makefile.in: Regenerate.
3497
3498 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3499
3500 * config/tc-or32.c: New file.
3501 * config/tc-or32.h: New file.
3502 * configure.in: Add support for or32 targets.
3503 * configure: Regenerate.
3504 * config/obj-coff.c: Add support for or32 targets.
3505 * config/obj-coff.h: Add support for or32 targets.
3506 * Makefile.am: Add support for or32 targets.
3507 * Makefile.in: Regenerate.
3508 * NEWS: Mention support for OpenRISC.
3509 * doc/Makefile.in: Regenerate.
3510 * po/POTFILES.in: Regenerate.
3511 * po/gas.pot: Regenerate.
3512
3513 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
3514
3515 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3516 and mod.
3517
3518 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3519
3520 * config/tc-mips.c (tc_gen_reloc): Arrange for
3521 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3522 their LO16 parts, even for ELF.
3523
3524 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
3525
3526 * config/tc-i386.c: Protect definitions of true and false
3527 from redefinition.
3528
3529 2002-01-28 Jakub Jelinek <jakub@redhat.com>
3530
3531 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3532 made because of .weak, if they are neither defined nor used in any
3533 way.
3534
3535 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3536
3537 * configure: Regenerated.
3538
3539 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3540
3541 * doc/Makefile.am (install): Depend on install-info.
3542 * doc/Makefile.in: Regenerate.
3543
3544 2002-01-26 Nick Clifton <nick@redhat.com>
3545
3546 * po/fr.po: Updated version
3547
3548 2002-01-24 Kazu Hirata <kazu@hxi.com>
3549
3550 * config/tc-h8300.c (check_operand): Don't print a warning
3551 when a valid 24-bit address is given to a 16-bit address
3552 operand.
3553
3554 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3555
3556 * config/tc-sh.c (sh_elf_suffix): Removed.
3557 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3558 sh_end_of_match, sh_parse_name): New functions.
3559 (sh_elf_cons): Simplify.
3560 (parse_exp): Reject misplaced PIC operands.
3561 (md_undefined_symbol): Simplify.
3562 (sh_fix_adjustable): Let @GOTOFF be adjusted.
3563 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3564 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3565 Complain if subsy remains at the end.
3566 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3567 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3568
3569 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3570
3571 * config/tc-mn10300.c (xr_registers): Move `pc'...
3572 (other_registers): ... here.
3573
3574 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3575
3576 * Makefile.am: Run "make dep-am".
3577 * Makefile.in: Regenerate.
3578 * gas/po/POTFILES.in: Regenerate.
3579
3580 2002-01-21 DJ Delorie <dj@redhat.com>
3581
3582 * config/obj-coff.c (obj_coff_init_stab_section): Make the
3583 stabstr_name allocation permanent, as it will be referenced from
3584 the section hash.
3585
3586 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3587
3588 * configure.in (ia64-*-netbsd*): New target.
3589 * configure: Regenerate.
3590
3591 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3592
3593 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3594 to @dots call.
3595 <Detailed description, ARM options>: Ditto.
3596 * doc/c-arm.texi (ARM Options): Ditto.
3597
3598 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3599
3600 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3601 do_mia, do_mar and do_mra respectively.
3602 (do_mav_*): Renamed from do_c_*.
3603 (mav_reg_required_here, mav_parse_offset): Renamed from
3604 cirrus_reg_required_here and cirrus_parse_offset respectively.
3605 (MAV_MODE?): Renamed from CIRRUS_MODE?.
3606
3607 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3608 Keith Walker <keith.walker@arm.com>
3609
3610 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3611 (insns): Add pattern for bxj instruction.
3612 (do_bxj): New function.
3613 (arm_cpus): Add arm926ej.
3614 (arm_archs): Add armv5tej.
3615
3616 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3617
3618 * doc/c-arm.texi: Add new fpe options to list of supported flags.
3619
3620 2002-01-19 Keith Walker <keith.walker@arm.com>
3621
3622 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3623
3624 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3625
3626 * NEWS: Mention new ARM command-line options and VFP support.
3627
3628 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
3629 uses changed.
3630 (ARM_CEXT_MAVERICK): Similarly.
3631 (ARM_ANY): Now means any core instruction.
3632 (CPU_DEFAULT): Default to ARM_ANY.
3633 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3634 (pic_code): Declare for all object types. Make type int.
3635 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3636 (march_fpu_opt, mfpu_opt): Declare.
3637 (md_longopts): Tidy up conditional definitions.
3638 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3639 (arm_long_opts): New tables.
3640 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3641 (arm_parse_extension): New function.
3642 (md_parse_option): Rewrite using new table-driven system.
3643 (md_show_usage): Use new table-driven system.
3644 (md_begin): Calculate cpu_variant from command line option data.
3645 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3646 command-line options.
3647 * doc/c-arm.texi: Likewise.
3648
3649 2002-01-18 Andreas Jaeger <aj@suse.de>
3650
3651 * as.c (parse_args): Update year.
3652
3653 2002-01-17 Timothy Wall <twall@alum.mit.edu>
3654
3655 * config/tc-tic54x.c (encode_address): Add a more informative
3656 warning about incorrect syntax.
3657
3658 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3659
3660 * po/gas.pot: Regenerate.
3661
3662 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3663
3664 * macro.c (get_any_string): Add no-c-format comment to prevent
3665 confusion when translating string.
3666 * gasp.c (get_any_string): Add no-c-format comment to prevent
3667 confusion when translating string.
3668
3669 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3670 Johannes Stezenbach <js@convergence.de>
3671 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3672 matched before the shorter ones.
3673 (my_getSmallParser): Fix handling of nested parentheses in
3674 percent_op's. Code cleanup.
3675 (my_getPercentOp): New function, code from my_getSmallParser.
3676 (my_getSmallExpression): Fix handling of closing parentheses.
3677 Code cleanup. Better comments.
3678
3679 2002-01-16 Nick Clifton <nickc@redhat.com>
3680
3681 po/tr.po: New file: Turkish translation.
3682 configure.in (LINGUAS): Add "tr".
3683 configure: Regenerate.
3684
3685 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3686
3687 Support for VFP instructions
3688 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3689 (cp_address_required_here): New argument wb_ok. When false, do not
3690 accept write-back forms of addressing. Change all callers.
3691 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3692 (FPU_VFP_EXT_V2): Define.
3693 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3694 Define in terms of above.
3695 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3696 (vfp_reg): New struct.
3697 (vfp_regs): New array of registers.
3698 (insns): Add VFP instructions.
3699 (sn_table): New array of VFP single-precision register names.
3700 (dn_table): New array of VFP double-precision register names.
3701 (all_reg_maps): Add the new register tables.
3702 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
3703 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3704 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3705 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3706 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3707 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3708 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3709 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3710 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3711 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3712 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3713 (do_vfp_sp_dp_cvt): New functions.
3714 (md_begin): Set soft-float flag for appropriate VFP work.
3715 (md_atof): Handle VFP-format doubles.
3716 (md_parse_option): Handle VFP command-line options.
3717 (md_show_usage): Display VFP command-line options.
3718
3719 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3720
3721 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
3722 various command line options.
3723
3724 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3725
3726 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3727 vtinherit relocs.
3728 (xstormy16_md_apply_fix3): Do not return a value.
3729
3730 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3731
3732 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3733 the -EL/-EB option that matches the target's endianness.
3734 (md_parse_option): Likewise.
3735
3736 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3737
3738 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
3739 is not dependent on ARM_BI_ENDIAN.
3740
3741 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3742
3743 * tc-arm.c (all error messages): Normalize capitalization of messages.
3744
3745 * tc-arm.h (md_operand): Delete define.
3746 * tc-arm.c (in_my_get_expression): New static variable.
3747 (my_get_expression): Set and clear it.
3748 (md_operand): New function. If called from my_get_expression
3749 put the error in inst.error.
3750 (output_inst): Now takes argument of instruction being assembled.
3751 Print it out with any error message.
3752 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
3753 with '=' syntax.
3754 (end_of_line): Don't update inst.error if it is already set.
3755
3756 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3757
3758 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
3759 op that can be translated into a mvn instruction.
3760
3761 2002-01-11 Steve Ellcey <sje@cup.hp.com>
3762
3763 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
3764 setting default md.flags.
3765 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
3766 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
3767 * gas/config/tc-ia64.c (setup_unwind_header): Add support
3768 for 32 bit unwind info blocks.
3769 (generate_unwind_image): Add support for different types
3770 of unwind images (32 bits and/or big-endian).
3771 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
3772 (ia64_target_format): Add support for hpux target formats.
3773 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
3774 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
3775 SHT_FINI_ARRAY elf section types.
3776
3777 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
3778
3779 * tc-arm.c (struct reg_entry): Move before prototypes.
3780 (int_register, cp_register, fp_register): Delete.
3781 (reg_table): Delete. Replaced with ...
3782 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
3783 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
3784 (mav_dspsc_table): ... one table per register set.
3785 (arm_reg_hsh): Delete.
3786 (struct reg_map): New structure.
3787 (all_reg_maps): New array.
3788 (enum arm_reg_type): New enums.
3789 (build_reg_hsh): New function.
3790 (insert_reg_alias): Use hash table passed by caller. Adjust all
3791 callers.
3792 (create_register_alias): New function, split out from ...
3793 (md_assemble): ... here.
3794 (md_begin): Build new register hash tables.
3795 (arm_reg_parse): New argument for the hash table to search. Adjust all
3796 callers.
3797 (arm_reg_parse_any): New function.
3798 (co_proc_number): Look up the processor number in the processor hash
3799 table.
3800 (cirrus_regtype): Delete.
3801 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
3802 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
3803 (ARM_EXT_MAVERICKsc_register): Delete.
3804 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
3805 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
3806 functions.
3807 (do_c_triple_4, do_c_triple_5): Delete.
3808 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
3809 (do_c_quad_6): Delete.
3810 (do_c_quad_6[ab]): New functions.
3811 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
3812 arguments to use new register parsing methods.
3813 (cirrus_reg_required_here): Likewise.
3814 (insns): Reclassify cirrus maverick worker functions.
3815 (cirrus_valid_reg): Delete.
3816
3817 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3818
3819 * configure.in (sh*le): Set cpu_type=sh and endian=little.
3820 (sh*-*-netbsdelf*): New target.
3821 * configure: Regenerate.
3822 * tc-sh.h: Update copyright years.
3823 (TARGET_FORMAT): Add version for TE_NetBSD.
3824
3825 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3826
3827 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
3828 negative.
3829
3830 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3831
3832 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
3833 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
3834
3835 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
3836
3837 * tc-mips.c (mips_cprestore_valid): New flag.
3838 (mips_frame_reg_valid): New flag.
3839 (macro) [M_JAL_2]: Check both flags.
3840 [M_JAL_A]: Likewise.
3841 (s_cprestore): Set mips_cprestore_valid.
3842 (tc_get_register): If setting mips_frame_reg, set
3843 mips_frame_reg_valid and clear mips_cprestore_valid.
3844 (s_mips_ent): Clear both flags.
3845 (s_mips_end): Clear both flags.
3846
3847 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3848
3849 * write.c (write_object_file): Make use of bfd_section_list_remove.
3850 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
3851 * config/tc-mmix.c (mmix_frob_file): Likewise.
3852
3853 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3854
3855 * configure.in (i386-*-netbsdelf*): Collapse target into...
3856 (i386-*-netbsd*): ...this. Add support for x86-64.
3857 * configure: Regenerated.
3858
3859 2002-01-03 matthew green <mrg@redhat.com>
3860
3861 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
3862
3863 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3864
3865 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
3866 NULL frag link.
3867
3868 For older changes see ChangeLog-0001
3869 \f
3870 Local Variables:
3871 mode: change-log
3872 left-margin: 8
3873 fill-column: 74
3874 version-control: never
3875 End: