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