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