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