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