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