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