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