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