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