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