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