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