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