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