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