2003-03-03 David Carlton <carlton@math.stanford.edu>
[binutils-gdb.git] / gas / ChangeLog
1 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2
3 * config/tc-mips.c (append_insn): Add handling of
4 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
5 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
6 misaligned address and reange overflow.
7 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
8 earlier warnings about misaligned address and reange overflow.
9 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
10 (md_apply_fix): Likewise. Fix warning output.
11 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
12 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
13 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
14
15 2003-02-21 Nick Clifton <nickc@redhat.com>
16
17 * NEWS: Mention availability of test generator program.
18
19 2003-02-21 Miles Bader <miles@gnu.org>
20
21 * config/tc-v850.c (system_registers): Add v850e debug registers.
22 (system_register_name): Accept up to 27 (the last v850e sys register).
23
24 2003-02-21 Bob Wilson <bob.wilson@acm.org>
25
26 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
27 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
28 Capitalize section headings consistently. Format index entries more
29 consistently. Unconditionalize text about whether text and data
30 sections are alterable. Use @ifnottex for alternatives to @tex output
31 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
32 .size and .type directives. Be more polite about bad bug reports.
33 Move FDL into a separate file.
34 * doc/fdl.texi: New file.
35
36 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
37
38 * config/tc-mips.c (prev_reloc_op_frag): New variable.
39 (macro): Check it to decide whether a new frag is needed.
40 (my_getSmallExpression): Set it.
41
42 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
43
44 * cgen.c: Fix typo: intial -> initial.
45
46 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
47
48 * app.c (do_scrub_chars): Handle '||' in two states.
49
50 2003-02-13 Alan Modra <amodra@bigpond.net.au>
51
52 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
53 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
54
55 2003-02-11 Uwe Stieber <uwe@wwws.de>
56
57 * configure.in: Add support for kaOS as cross build target system.
58 * configure: Regenerated.
59
60 2003-02-10 Nick Clifton <nickc@redhat.com>
61
62 * config/tc-arm.c (md_begin): If the Maverick co-processor is
63 selected, set the EF_ARM_MAVERICK_FLOAT flag and
64 bfd_mach_arm_ep9312 machine number.
65
66 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
67
68 * config/tc-mips.c (reloc_needs_lo_p): New function.
69 (fixup_has_matching_lo_p): New function.
70 (append_insn): Use reloc_needs_lo_p to check whether a relocation
71 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
72 if that fixup already has a matching %lo(). Don't call frag_wane here.
73 (macro): Call frag_wane here if the last unmatched hi was in the
74 current frag.
75 (pic_need_relax): New function, split out from...
76 (md_estimate_size_before_relax): ...here.
77 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
78 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
79
80 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
81
82 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
83
84 2003-02-06 Alan Modra <amodra@bigpond.net.au>
85
86 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
87 x@toc+off works.
88
89 2003-02-05 Alan Modra <amodra@bigpond.net.au>
90
91 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
92 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
93 accept x@got+off etc.
94 (md_assemble): Handle TLS relocs.
95 (ppc_force_relocation): Force for all TLS relocs.
96 (ppc_fix_adjustable): Likewise.
97 (md_apply_fix3): Handle TLS relocs.
98
99 2003-02-04 Alan Modra <amodra@bigpond.net.au>
100
101 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
102 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
103
104 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
105
106 * config/tc-mips.c (enum small_ex_type): Remove.
107 (imm_unmatched_hi): Remove.
108 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
109 argument from calls to append_insn.
110 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
111 instead.
112 (macro_build): Update append_insn calls.
113 (mips16_macro_build, macro_build_lui): Likewise.
114 (mips_ip): Rework handling of small expressions. Move explicit
115 relocation handling into my_getSmallExpression. Assume that the
116 value of 'o' operands is zero if there is only one bracketed
117 expression left.
118 (percent_op): Make constant. Record the BFD relocation code
119 associated with each operator.
120 (my_getSmallParser, my_getPercentOp): Remove.
121 (parse_relocation): New function.
122 (my_getSamllExpression): Rework. Fill in relocations here
123 rather than in mips_ip.
124
125 2003-01-29 Nick Clifton <nickc@redhat.com>
126
127 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
128 assembler's handling of # <linenum> "<filename>" directives work.
129
130 2003-01-28 Jakub Jelinek <jakub@redhat.com>
131
132 * dwarf2dbg.c: Include filenames.h.
133 (struct file_entry): Make filename const char *.
134 (dirs, dirs_in_use, dirs_allocated): New variables.
135 (get_filenum): Add NUM argument. Build directory table.
136 (dwarf2_where): Adjust caller.
137 (dwarf2_directive_file): Use get_filenum to allocate
138 slot in file and directory tables.
139 (dwarf2_directive_loc): Recreate full filename from
140 directory and filename part if needed for listing.
141 (out_file_list): Output directory table.
142 Output main source file dirname before its filename.
143
144 2003-01-28 Dmitry Diky <diwil@mail.ru>
145
146 * config/tc-msp430.c: Replace occurences of 'tolower' with
147 'TOLOWER'.
148
149 2003-01-27 David Mosberger <davidm@hpl.hp.com>
150
151 * config/tc-ia64.c (dot_vframesp): Correct error message.
152 (dot_vframepsp): Ditto.
153
154 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
155
156 * configure.in (em): Set to irix on all Irix systems.
157 * configure: Rebuilt.
158 * config/te-irix.h: New file.
159 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
160 whether to use Irix-specific 64-bit format.
161
162 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
163
164 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
165
166 2003-01-25 Jakub Jelinek <jakub@redhat.com>
167
168 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
169 (tc_gen_reloc): Handle TLS relocs.
170 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
171 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
172 relocs.
173 * config/obj-elf.c (obj_elf_section_word): Handle tls.
174 (obj_elf_type): Handle tls_object.
175
176 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
177
178 * config/tc-s390.c (s390_tls_suffix): New function.
179 (elf_suffix_type): Add suffix enums for TLS relocations.
180 (s390_elf_suffix): Add suffix strings for TLS relocations.
181 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
182 bfd relocations.
183 (md_gather_operands): Map new instruction operand/elf suffix
184 combinations for TLS to bfd relocations.
185 (tc_s390_fix_adjustable): Add new TLS relocations.
186 (tc_s390_force_relocation): Likewise.
187 (md_apply_fix3): Likewise.
188
189 2003-01-24 Alan Modra <amodra@bigpond.net.au>
190
191 * as.h: Update copyright date.
192 * symbols.c: Likewise.
193 * config/tc-d10v.h: Likewise.
194 * config/tc-fr30.h: Likewise.
195 * config/tc-i960.h: Likewise.
196 * config/tc-mips.h: Likewise.
197
198 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
199 (MD_APPLY_SYM_VALUE): Move.
200
201 2003-01-23 Nick Clifton <nickc@redhat.com>
202
203 NEWS: Announce sh2e support.
204
205 * Add sh2e support:
206
207 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
208
209 * config/tc-sh.c (md_show_usage): Added sh2e next to
210 sh3e.
211 (sh_elf_final_processing): Handle arch_sh2e.
212
213 2003-01-23 Alan Modra <amodra@bigpond.net.au>
214
215 * symbols.c (S_FORCE_RELOC): Add "strict" param.
216 * symbols.h (S_FORCE_RELOC): Likewise.
217 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
218 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
219 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
220 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
221 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
222 * write.c (generic_force_reloc): New function.
223 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
224 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
225 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
226 * as.h (generic_force_reloc): Declare.
227 * doc/internals.texi (S_FORCE_RELOC): Update.
228 (TC_FORCE_RELOCATION_SUB_SAME): Update.
229
230 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
231 generic_force_reloc.
232 (alpha_fix_adjustable): Likewise.
233 * config/tc-arm.c (arm_force_relocation): Likewise.
234 * config/tc-cris.c (md_cris_force_relocation): Likewise.
235 * config/tc-frv.c (frv_force_relocation): Likewise.
236 * config/tc-i386.c (md_apply_fix3): Likewise.
237 * config/tc-ia64.c (ia64_force_relocation): Likewise.
238 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
239 * config/tc-m32r.c (m32r_force_relocation): Likewise.
240 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
241 * config/tc-mcore.c (mcore_force_relocation): Likewise.
242 * config/tc-mips.c (mips_force_relocation): Likewise.
243 * config/tc-mmix.c (mmix_force_relocation): Likewise.
244 * config/tc-ppc.c (ppc_force_relocation): Likewise.
245 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
246 * config/tc-sh.c (sh_force_relocation): Likewise.
247 (md_pcrel_from_section): Likewise.
248 * config/tc-sparc.c (tc_gen_reloc): Likewise.
249 * config/tc-v850.c (v850_force_relocation): Likewise.
250 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
251 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
252 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
253 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
254
255 * config/tc-d10v.c (d10v_force_relocation): Delete.
256 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
257 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
258 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
259 * config/tc-fr30.c (fr30_force_relocation): Delete.
260 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
261 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
262 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
263 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
264 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
265 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
266 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
267 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
268 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
269 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
270 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
271 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
272 * config/tc-i386.c (i386_force_relocation): Delete.
273 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
274 BFD_ASSEMBLER.
275 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
276 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
277 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
278 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
279 S_FORCE_RELOC.
280 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
281 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
282
283 2003-01-23 Alan Modra <amodra@bigpond.net.au>
284
285 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
286 sh64_elf_section_data.
287 * config/tc-sh64.h: Include elf32-sh64.h.
288 * config/tc-m68hc11.c: Don't include stdio.h.
289 (md_show_usage): Fix missing continuation.
290 * Makefile.am: Run "make dep-am".
291 * Makefile.in: Regenerate.
292
293 2003-01-22 Nick Clifton <nickc@redhat.com>
294
295 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
296
297 2003-01-21 Fabio Alemagna <falemagn@aros.org>
298
299 * configure.in: Handle *-*-aros*.
300 * configure: Regenerated from configure.in.
301
302 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
303
304 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
305 gotplt and pltoff relocations.
306 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
307 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
308 gotplt and pltoff to bfd relocations.
309 (md_gather_operands): Map new instruction operand/elf suffix
310 combinations to bfd relocations.
311 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
312 to the list of unadjustable relocations.
313 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
314 and pltoff relocations.
315 (md_apply_fix3): Add the new relocations.
316
317 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
318
319 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
320 with a subsy symbol.
321
322 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
323
324 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
325 of relocs for memory bank addressing.
326
327 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
328
329 * config/tc-m68hc11.c (md_show_usage): Update usage.
330 (md_parse_option): Recognize -m68hcs12.
331 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
332 HCS12.
333 * doc/as.texinfo (Overview): Document new option -m68hcs12.
334
335 2003-01-16 Jakub Jelinek <jakub@redhat.com>
336
337 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
338
339 2003-01-16 Alan Modra <amodra@bigpond.net.au>
340
341 * Makefile.am: Run "make dep-am".
342 * Makefile.in: Regenerate.
343 * po/POTFILES.in: Regenerate.
344
345 2003-01-11 Alan Modra <amodra@bigpond.net.au>
346
347 * read.c (get_absolute_expr): New, split out from..
348 (get_absolute_expression): ..here.
349 * read.h (get_absolute_expr): Declare.
350 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
351 Trim size to arch bits_per_address, and test for negative input
352 via get_absolute_expr.
353
354 2003-01-07 DJ Delorie <dj@redhat.com>
355
356 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
357 on operand type.
358 (xstormy16_md_apply_fix3): Use adjustment.
359
360 2003-01-02 Ben Elliston <bje@redhat.com>
361
362 * configure.in: Add iq2000-elf target.
363 * configure: Regenerate.
364 * config/tc-iq2000.c: New file.
365 * config/tc-iq2000.h: Likewise.
366 * po/gas.pot: Regenerate.
367
368 2003-01-02 Chris Demetriou <cgd@broadcom.com>
369
370 * config/tc-mips.c: Update copyright years to include 2003.
371 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
372 Additionally, clean up their code slightly and clean up their
373 comments some more.
374
375 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
376
377 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
378
379 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
380 $(CPU_DOCS)".
381 * doc/Makefile.in: Regenerate.
382
383 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
384
385 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
386 of .init and .fini sections for array initializers and finalizers.
387
388 2002-12-31 Chris Demetriou <cgd@broadcom.com>
389
390 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
391 the "+D" operand, which will be used only by the disassembler.
392
393 2002-12-30 Chris Demetriou <cgd@broadcom.com>
394
395 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
396 CPU variants.
397 * configure: Regenerate.
398 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
399 (macro_build): Handle "K" operand.
400 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
401 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
402 (mips_ip): New variable "lastpos", and implement "+A", "+B",
403 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
404 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
405 (validate_mips_insn): Implement "+" as a way to extend the
406 allowed operands, and implement "K", "+A", "+B", and "+C"
407 operands.
408 (OPTION_MIPS32R2): New define.
409 (md_longopts): Add entry for OPTION_MIPS32R2.
410 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
411 (md_parse_option): Handle OPTION_MIPS32R2.
412 (s_mipsset): Reimplement handling of ".set mipsN" options
413 and add support for ".set mips32r2".
414 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
415 (md_show_usage): Document "-mips32r2" option.
416 * doc/as.texinfo: Document "-mips32r2" option.
417 * doc/c-mips.texi: Likewise.
418
419 2002-12-30 Dmitry Diky <diwil@mail.ru>
420
421 * configure.in: Add msp430 target.
422 * configure: Regenerate.
423 * Makefile.am: Add msp430 target.
424 * Makefile.in: Regenerate.
425 * config/tc-msp430.c: New file: msp430 assembler.
426 * config/tc-msp430.h: New file: target macros for msp430.
427 * doc/Makefile.am: Add msp430 target.
428 * doc/Makefile.in: Regenerate.
429 * doc/as.texinfo: Include msp430 documenation.
430 * doc/all.texi: Enable msp430 documentation.
431 * doc/c-msp430.texi: New file: document msp430 specific features
432 of the assembler.
433
434 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
435
436 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
437 (dwarf2_finish): Use it.
438 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
439 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
440
441 2002-12-20 DJ Delorie <dj@redhat.com>
442
443 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
444 BFD_RELOC_XSTORMY16_12.
445
446 2002-12-19 Alan Modra <amodra@bigpond.net.au>
447
448 * doc/as.texinfo (Invoking): Typo fix.
449 * config/tc-tic54x.c (encode_operand): Comment typo fix.
450
451 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
452
453 * doc/c-alpha.texi: Fix typos.
454 * doc/c-arm.texi: Likewise.
455 * doc/c-d10v.texi: Likewise.
456 * doc/c-i370.texi: Likewise.
457 * doc/c-i960.texi: Likewise.
458 * doc/c-ia64.texi: Likewise.
459 * doc/c-mmix.texi: Likewise.
460 * doc/c-ns32k.texi: Likewise.
461 * doc/c-pdp11.texi: Likewise.
462 * doc/c-pj.texi: Likewise.
463 * doc/c-sh64.texi: Likewise.
464 * doc/c-sparc.texi: Likewise.
465 * doc/c-tic54x.texi: Likewise.
466 * doc/c-v850.texi: Likewise.
467 * doc/c-vax.texi: Likewise.
468 * doc/internals.texi: Likewise.
469
470 2002-12-18 Chris Demetriou <cgd@broadcom.com>
471
472 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
473 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
474 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
475 arrange not to issue warnings about use of AT when AT is not
476 actually used.
477
478 2002-12-17 Nick Clifton <nickc@redhat.com>
479
480 * as.c (std_longopts): Duplicate --keep-locals entry in order to
481 prevent it being confused with -k.
482
483 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
484
485 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
486 has already been set up, use it.
487
488 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
489
490 * ChangeLog-9295: Fix a typo.
491 * README: Likewise.
492 * config/tc-d10v.c: Fix a comment typo.
493 * config/tc-dlx.c: Likewise.
494 * config/tc-h8300.h: Likewise.
495 * config/tc-h8500.h: Likewise.
496 * config/tc-mips.c: Likewise.
497 * config/tc-s390.c: Likewise.
498 * config/tc-sh.h: Likewise.
499 * config/tc-tic80.h: Likewise.
500 * config/tc-w65.h: Likewise.
501 * config/tc-z8k.c: Likewise.
502 * config/tc-z8k.h: Likewise.
503 * testsuite/gas/h8300/cmpsi2.s: Likewise.
504
505 2002-12-16 Alan Modra <amodra@bigpond.net.au>
506
507 * config/tc-d30v.c (check_range): Warning fixes, formatting.
508 Simplify sign extension. Remove redundant unsigned < 0 test.
509 * config/tc-i960.c (md_ri_to_chars): Prototype.
510 * config/tc-mcore.c (md_pseudo_table): Fix typo.
511 (dump_literals): Init brarsym, and test later instead of isforce.
512
513 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
514 (parse): Constify line and lineptr.
515 (md_begin): Calculate endop here.
516
517 2002-12-13 Alan Modra <amodra@bigpond.net.au>
518
519 * config/obj-vms.c: Formatting. Include fnctl.h.
520 (Create_VMS_Object_File): Fix creat call for sane unix systems.
521 (Object_Record_Offset): Make it a size_t.
522 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
523 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
524 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
525 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
526 (vms_fixup_data_section <data_size>): Add here instead.
527 * config/e-criself.c: Fix typo in last change.
528
529 2002-12-13 Alan Modra <amodra@bigpond.net.au>
530
531 * write.c (write_object_file): Fix signed/unsigned warning.
532 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
533 * config/e-criself.c (criself_bfd_name): Prototype.
534 * config/obj-aout.c (s_sect): Remove unused function.
535 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
536 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
537 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
538 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
539 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
540 (VMS_RSYM_Parse <Current_Routine>): Likewise.
541 (vms_fixup_text_section <text_siz>): Likewise.
542 (synthesize_data_segment <data_size>): Likewise.
543 (vms_fixup_xtors_section <sect_no>): Likewise.
544 (structure_count): Don't use implicit int type.
545 * config/tc-a29k.c (insert_sreg): Prototype.
546 (define_some_regs): Prototype, make static.
547 (parse_operand): Likewise.
548 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
549 (md_show_usage <stream>): Likewise.
550 (md_section_align <segment>): Likewise.
551 (md_convert_frag <all args>): Likewise.
552 (md_estimate_size_before_relax <all args>): Likewise.
553 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
554 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
555 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
556 (md_undefined_symbol <name>): Likewise.
557 (md_convert_frag <all args>): Likewise.
558 (write_long <opcode>): Likewise.
559 (tc_gen_reloc <seg>): Likewise.
560 (md_estimate_size_before_relax <all args>): Likewise.
561 (md_apply_fix3 <seg>): Likewise.
562 (s_d30v_align <ignore>): Likewise.
563 (build_insn): Correct format string.
564 (md_apply_fix3): Likewise.
565 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
566 (md_undefined_symbol <name>): Likewise.
567 (md_convert_frag <all args>): Likewise.
568 (md_cgen_lookup_reloc <insn>): Likewise.
569 (md_begin): Delete unused vars.
570 (md_assemble): Likewise.
571 (md_estimate_size_before_relax): Likewise.
572 (fr30_relax_frag): #if 0 out, seems unused.
573 (md_atof): Remove declaration of atof_ieee.
574 (restore_colon): Prototype.
575 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
576 (frv_find_in_vliw): Likewise.
577 (frv_debug_tomcat): Likewise.
578 (frv_adjust_vliw_count): Likewise.
579 (frv_tomcat_shuffle): Likewise.
580 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
581 frv_find_in_vliw call.
582 (md_atof): Remove declaration of atof_ieee.
583 * config/tc-h8500.c (cons): Delete declaration.
584 (md_begin <opcode>): Constify.
585 (displacement_size, immediate_size, absolute_size): Remove.
586 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
587 (tc_crawl_symbol_chain <headers>): Likewise.
588 (md_undefined_symbol <name>): Likewise.
589 (tc_headers_hook <headers>): Likewise.
590 (md_parse_option <c,arg>): Likewise.
591 (md_show_usage <stream>): Likewise.
592 (md_convert_frag <headers, seg>): Likewise.
593 (tc_coff_symbol_emit_hook <ignore>): Likewise.
594 (md_atof): Remove declaration of atof_ieee.
595 (tc_aout_fix_to_chars): Remove unused function.
596 (parse_reg): Prototype.
597 (parse_exp): Prototype.
598 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
599 (parse_reglist): Prototype.
600 (get_operand): Prototype.
601 (get_operands): Prototype.
602 (get_specific): Prototype. Make "this_index" signed.
603 (check): Prototype, make static.
604 (insert): Prototype
605 (build_relaxable_instruction): Prototype, make static.
606 (build_bytes): Prototype.
607 (wordify_scb): Prototype.
608 * config/tc-h8500.h (start_label): Declare.
609 (tc_coff_sizemachdep): Declare.
610 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
611 (i370_rmode <unused>): Likewise.
612 (i370_csect <unused>): Likewise.
613 (i370_dc <unused>): Likewise.
614 (i370_ds <unused>): Likewise.
615 (i370_elf_lcomm <unused>): Likewise.
616 (i370_ltorg <ignore>): Likewise.
617 (i370_using <ignore>): Likewise.
618 (i370_drop <ignore>): Likewise.
619 (i370_byte <ignore>): Likewise.
620 (i370_tc <ignore>): Likewise.
621 (md_estimate_size_before_relax <fragp, seg>): Likewise.
622 (md_convert_frag <all args>): Likewise.
623 (md_undefined_symbol <name>): Likewise.
624 (md_pcrel_from_section <sec>): Likewise.
625 (tc_gen_reloc <seg>): Likewise.
626 (i370_section_letter): #if 0 unused functions.
627 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
628 (symbol_locate): Prototype.
629 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
630 (md_number_to_disp, md_number_to_field): Remove.
631 (md_apply_fix3): Correct format string and cast "fup".
632 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
633 (s_endian <ignore>): Likewise.
634 (md_undefined_symbol <name>): Likewise.
635 (tc_crawl_symbol_chain <headers>): Likewise.
636 (tc_set_bal_of_call): Likewise.
637 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
638 (i960_handle_align <fragp>): Likewise.
639 (i960_validate_fix <this_segment_type>): Likewise
640 (tc_gen_reloc <section>): Likewise.
641 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
642 (struct memS, struct regop): Forward declare.
643 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
644 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
645 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
646 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
647 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
648 (md_chars_to_number, md_number_to_imm): Make static, prototype.
649 (md_number_to_field): Likewise.
650 (md_number_to_disp): Remove unused function.
651 (md_atof): Remove declaration of atof_ieee.
652 (md_apply_fix3): Correct md_number_to_imm call.
653 * config/tc-ip2k.c (md_assemble): Warning fix.
654 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
655 (fill_insn <ignore>): Likewise.
656 (debug_sym <ignore>): Likewise.
657 (md_undefined_symbol <name>): Likewise.
658 (m32r_scomm <ignore>): Likewise.
659 (md_convert_frag <abfd>): Likewise.
660 (md_cgen_lookup_reloc <insn>): Likewise.
661 (m32r_record_hi16 <seg>): Likewise.
662 (md_estimate_size_before_relax): #if 0 old_fr_fix.
663 (allow_m32rx): Prototype.
664 (first_writes_to_seconds_operands): Prototype.
665 (writes_to_pc): Prototype.
666 (can_make_parallel): Prototype.
667 (make_parallel): Prototype.
668 (target_make_parallel): Prototype.
669 (assemble_two_insns): Prototype.
670 (m32r_record_hi16): Prototype.
671 (md_atof): Remove declaration of atof_ieee.
672 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
673 (m32r_force_relocation): Prototype.
674 (m32r_elf_section_change_hook): Prototype.
675 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
676 (md_show_usage): Fix signed/unsigned warning.
677 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
678 (calcop): Ditto for reg_prefix var.
679 (hexval): Add cast to fix signed/unsigned warning.
680 (md_number_to_disp): Delete unused function.
681 (md_number_to_field): Likewise.
682 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
683 (match_name): Prototype.
684 (get_bf2): Prototype.
685 (get_bf_offset_expression): Prototype.
686 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
687 (md_undefined_symbol <ignore>): Likewise.
688 (md_create_short_jump <all args>): Likewise.
689 (md_create_long_jump <all args>): Likewise.
690 (md_convert_frag <abfd, sec>): Likewise.
691 (md_apply_fix3 <segment>): Likewise.
692 (md_section_align <segment>): Likewise.
693 (md_pcrel_from_section <sec>): Likewise.
694 (tc_gen_reloc <section>): Likewise.
695 (reg_m, reg_n, immediate): Delete unused vars.
696 (dump_literals): Fix signed/unsigned warning.
697 (enter_literal): Likewise.
698 (parse_imm): Likewise. Also fix format string.
699 (parse_mem): Remove unused var.
700 (md_assemble <LS>): Abort on unexpected inst.
701 (md_atof): Remove declaration of atof_ieee.
702 (md_parse_option): Remove unused vars.
703 (md_apply_fix3): Fix format strings, cast args.
704 (tc_gen_reloc): Delete unused var.
705 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
706 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
707 (md_undefined_symbol <name>): Likewise.
708 (md_convert_frag <abfd>): Likewise.
709 (tc_gen_reloc <seg>): Likewise.
710 (check_operand <insn>): Likewise.
711 (md_convert_frag): Fix format strings.
712 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
713 * config/tc-openrisc.c (ignore_pseudo): Prototype.
714 (md_atof): Remove declaration of atof_ieee.
715 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
716 (md_apply_fix3): Fix bogus >>='s.
717 (md_undefined_symbol): Delete unused var.
718 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
719 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
720 (fake_opcode): Adjust for pj_opc_int_t change.
721 (md_begin): Likewise.
722 (md_assemble): Likewise.
723 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
724 instead of non-existent third arg of parse_exp_save_ilp.
725 (md_parse_option): Correct "little" and "big" calls.
726 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
727 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
728 (tc_gen_reloc <section>): Likewise.
729 * config/tc-tic30.c: #include stdarg.h or varargs.h.
730 (debug): Rewrite using VA_* macros.
731 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
732 (md_convert_frag): Likewise.
733 (md_parse_option): Likewise.
734 (md_show_usage): Likewise.
735 (md_undefined_symbol): Likewise.
736 (tc_gen_reloc): Likewise.
737 (md_operand): Likewise.
738 (tc_aout_pre_write_hook): Delete.
739 (struct tic30_insn): Make "operands" unsigned.
740 (struct tic30_par_insn): Likewise.
741 (md_assemble): Likewise for "count", "i" and "numops".
742 (tic30_parallel_insn): Likewise for vars here.
743 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
744 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
745 * config/tc-tic80.c (obj_coff_section): Delete declaration.
746 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
747 (md_undefined_symbol): Likewise.
748 (md_parse_option): Likewise.
749 (md_convert_frag): Likewise.
750 (tc_coff_symbol_emit_hook): Likewise.
751 (md_atof): Remove declaration of atof_ieee.
752 (const_overflow): Warning fixes, tidy.
753 (get_operands): Delete unused vars.
754 (internal_error_a): Adjust format string to expect a long for arg.
755 (find_opcode): Warning fixes, simplify.
756 (build_insn): Cast internal_error_a arg.
757 (md_begin): Likewise.
758 (md_apply_fix3): Likewise.
759 (md_assemble): Delete unused var.
760 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
761 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
762 (whatreg, parse_reg, parse_exp): Make static, prototype.
763 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
764 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
765 (get_operand, get_operands, get_specific, newfix): Likewise.
766 (apply_fix, build_bytes): Likewise.
767 (md_atof): Remove declaration of atof_ieee.
768 (tc_aout_fix_to_chars): Delete.
769 (md_begin): Constify "opcode". Don't try to init opcode->idx.
770 Fix s_unseg call.
771 (md_parse_option): Fix s_segm and s_unseg calls.
772
773 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
774
775 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
776 Adjust callers.
777 (RELAX_BRANCH_RELOC_S2): Delete.
778 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
779 Do not handle BFD_RELOC_16_PCREL.
780 (macro_build, mips_ip): Likewise.
781 (md_pcrel_from): Return 4 for undefined symbols regardless of
782 mips_pic.
783 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
784 Don't dereference howto if no such relocation is available.
785 Do not apply hack for in-place zero addend in NEWABI.
786 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
787
788 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
789 Alan Modra <amodra@bigpond.net.au>
790
791 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
792 (TC_LINKRELAX_FIXUP): Add comments.
793
794 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
795
796 * config/tc-mn10300.c (set_arch_mach): Change argument type to
797 avoid warnings.
798 (r_register_name, xr_register_name): Add prototype declarations.
799
800 2002-12-08 H.J. Lu <hjl@gnu.org>
801
802 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
803 copied from tc-i386.c.
804
805 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
806
807 Fix Bug savannah/1825:
808 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
809 (md_relax_table): Define specific relax for PC-rel offsets.
810 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
811 (m68hc11_relax_frag): Handle the new relax code.
812 (md_convert_frag): Likewise.
813 (md_estimate_size_before_relax): Likewise.
814
815 2002-12-08 Alan Modra <amodra@bigpond.net.au>
816
817 * subsegs.c (section_symbol): Use the symbol, not the section, name.
818
819 2002-12-05 Richard Henderson <rth@redhat.com>
820
821 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
822 (ia64_gen_real_reloc_type): Handle it.
823 (pseudo_func): Add @ltoffx.
824 (md_begin): Build .<ltoffx>.
825 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
826
827 2002-12-05 Alan Modra <amodra@bigpond.net.au>
828
829 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
830 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
831 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
832 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
833 COFF to call arm_force_relocation.
834
835 2002-12-04 David Mosberger <davidm@hpl.hp.com>
836
837 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
838 instruction.
839 (emit_one_bundle): Handle "hint" instruction.
840 (operand_match): Match IA64_OPND_AR_CSD.
841
842 2002-12-04 Alan Modra <amodra@bigpond.net.au>
843
844 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
845 inside #if.
846
847 2002-12-03 Nick Clifton <nickc@redhat.com>
848
849 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
850 .PPC.EMB.apuinfo sections.
851
852 2002-12-03 Richard Henderson <rth@redhat.com>
853
854 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
855
856 2002-12-03 Alan Modra <amodra@bigpond.net.au>
857
858 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
859 (cons, s_align_bytes): Delete declaration.
860 (relax): Delete.
861 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
862 strings common.
863 (dot): Delete unused function.
864 (w65_expression): Remove unused arg.
865 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
866 call.
867 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
868 parse_exp call.
869 (get_specific): Prototype. Constify "struct opinfo *" arg and return
870 value.
871 (check): Remove unused function.
872 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
873 on unhandled switch case.
874 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
875 "opcode".
876 (tc_crawl_symbol_chain): Delete unused function.
877 (tc_headers_hook): Likewise.
878 (tc_Nout_fix_to_chars): Likewise.
879 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
880 (md_parse_option): Likewise.
881 (md_convert_frag): Likewise.
882 (tc_coff_symbol_emit_hook): Likewise.
883 (md_show_usage): Likewise.
884 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
885 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
886 (w65_expression): Declare.
887
888 * po/POTFILES.in: Regenerate.
889
890 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
891 and ARM_ADRL_IMMEDIATE.
892
893 2002-12-02 Nick Clifton <nickc@redhat.com>
894
895 * gasp.c: Delete. It has been deprecated.
896 * NEWS: Mention that gasp has been removed.
897 * Makefile.am: Remove references to gasp.
898 * makefile.vms: Likewise.
899 * mpw-make.sed: Likewise.
900 * Makeile.in: Regenerate.
901 * doc/gasp.texi: Delete.
902 * doc/Makefile.am: Remove references to gasp.texi.
903 * doc/Makefile.in: Regenerate.
904 * macro.c: Delete references to gasp.
905 Remove use of comment_char function parameter as it is no longer
906 needed.
907 * macro.h: Update prototypes to remove comment_char parameter.
908 Fix formatting.
909 * read.c (read_a_source_file, s_irp): Remove comment_char
910 parameter from invocation of functions in macro.c
911
912 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
913
914 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
915
916 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
917
918 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
919 (tc_gen_reloc): Mark section param as not used.
920
921 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
922
923 Fix Bug savannah/1825:
924 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
925 that are not pc-relative.
926 (m68hc11_relax_frag): Declare.
927
928 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
929 the offsetable indexed addressing modes (n,r).
930 (build_insn): Cleanup some locals.
931 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
932 relaxation of difference between two symbols of same section.
933 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
934 only when this is a PC-relative operand and the offset is not absolute.
935 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
936 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
937 be handled by m68hc11_relax_frag.
938
939 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
940
941 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
942 (32-bit int, 64-bit double).
943 (md_longopts): New options -mshort, -mlong, -mshort-double and
944 -mlong-double to control the ABI.
945 (md_show_usage): Update.
946 (md_parse_option): Handle new options.
947 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
948
949 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
950
951 * symbols.c (report_op_error): New function, broken out of ...
952 (resolve_symbol_value): ... here. Use for both monadic and dyadic
953 operators.
954
955 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
956
957 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
958 for BFD_RELOC_32_PLT_PCREL.
959
960 2002-11-30 Alan Modra <amodra@bigpond.net.au>
961
962 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
963 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
964 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
965 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
966 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
967 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
968 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
969 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
970 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
971 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
972 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
973 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
974 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
975 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
976 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
977 TRUE/FALSE. Formatting.
978
979 2002-11-29 Nick Clifton <nickc@redhat.com>
980
981 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
982 assume a value of zero.
983 (do_bkpt): Likewise.
984
985 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
986
987 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
988 for TLS relocations.
989
990 2002-11-29 Jakub Jelinek <jakub@redhat.com>
991
992 * config/tc-ia64.c (md_apply_fix3): Add default case.
993
994 2002-11-28 Jakub Jelinek <jakub@redhat.com>
995
996 * symbols.c (S_SET_THREAD_LOCAL): New function.
997 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
998 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
999 for TLS relocations.
1000 * config/tc-ia64.c (md_apply_fix3): Likewise.
1001 * config/tc-alpha.c (md_apply_fix3): Likewise.
1002
1003 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1004
1005 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1006 to entsize.
1007
1008 2002-11-26 DJ Delorie <dj@redhat.com.
1009
1010 * dwarf2dbg.c (scale_addr_delta): New.
1011 (size_inc_line_addr): Use it.
1012 (emit_inc_line_addr): Use it.
1013
1014 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1015
1016 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1017 (md_assemble): Don't pass on branches to constants as relaxable.
1018 Tweak comment.
1019
1020 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1021
1022 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1023
1024 2002-11-21 Randolph Chung <randolph@tausq.org>
1025
1026 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1027 only if they have default visibility.
1028
1029 2002-11-21 Richard Henderson <rth@redhat.com>
1030
1031 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1032 S_IS_DEFINED test.
1033
1034 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1035
1036 * config/tc-mcore.c (mcore_pool_count): New function.
1037 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1038
1039 2002-11-20 Klee Dienes <kdienes@apple.com>
1040
1041 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1042 coalesce the name fields to use the same pointer.
1043
1044 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1045 the name fields to use the same pointer.
1046 (get_specific): Check for opcodes with the same name using strcmp
1047 as well as comparing the pointer.
1048
1049 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1050
1051 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1052 fx_subsy non-NULL.
1053
1054 2002-11-19 Richard Henderson <rth@redhat.com>
1055
1056 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1057 visibility portion of st_other.
1058
1059 2002-11-19 Klee Dienes <kdienes@apple.com>
1060
1061 * config/tc-h8300.c (struct h8_instruction): New type, used to
1062 wrap h8_opcodes with length, noperands, idx, and size fields
1063 (computed at run-time).
1064 (h8_instructions): New variable.
1065 (md_begin): Allocate the storage for h8_instructions. Fill
1066 h8_instructions with pointers to the appropriate opcode and the
1067 correct value for the additional fields.
1068 (clever_message): Update to use h8_instructions instead of
1069 h8_opcodes.
1070 (build_bytes): Ditto.
1071 (get_specific): Ditto.
1072 (md_assemble): Ditto.
1073
1074 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1075
1076 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1077 adjustments to symbols in merge sections.
1078
1079 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1080
1081 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1082
1083 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1084
1085 * dwarf2dbg.h (dwarf2_format): New enum.
1086 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1087 (out_debug_line, out_debug_info): Add code for handling 64-bit
1088 DWARF 2 formats.
1089 * config/tc-mips.h (mips_dwarf2_format): Declare.
1090 * config/tc-mips.c (mips_dwarf2_format): New function.
1091 * doc/internals.texi (DWARF2_FORMAT): Document.
1092
1093 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1094
1095 * config/tc-mips.c (s_change_section): Make sure input buffer
1096 is not accessed past the end. Don't hand
1097 obj_elf_change_section a pointer into the input buffer.
1098
1099 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1100
1101 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1102 GOT_LO16 on NEWABI.
1103
1104 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1105
1106 * config/tc-tic4x.c: Fixed proper commandline
1107 parameters. Added support for new opcode-list format. General
1108 error message fixups.
1109 (c4x_inst_add): Reject insn not for our CPU
1110 (md_begin): Added matrix for setting the proper opcode-level &
1111 device-flags according to cpu type and revision. Rewrite the
1112 opcode hasher.
1113 (c4x_operand_parse): Fix opcode bug
1114 (c4x_operands_match): New function argument. Added dry-run
1115 mechanism, that is optional error generation. Added constraint 'i'
1116 and 'j'.
1117 (c4x_insn_check): Added new function for post-verification of the
1118 generated insn.
1119 (md_assemble): Check all opcodes before croaking because of an
1120 argument mismatch. Need this to be able to fully support
1121 ortogonally arguments.
1122 (md_parse_options): Revised commandprompt swicthes and added new
1123 ones.
1124 (md_show_usage): Complete rewrite of printout.
1125
1126 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1127
1128 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1129 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1130 warning when using constant direct bigger than 2^16. Add the new
1131 arguments.
1132
1133 2002-11-11 Christopher Faylor <cgf@redhat.com>
1134
1135 * configure.in: Use .gdbinit under Cygwin.
1136 * configure: Regenerate.
1137
1138 2002-11-11 Christopher Faylor <cgf@redhat.com>
1139
1140 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1141 STRICT_PE_FORMAT.
1142
1143 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1144
1145 * config/tc-tic4x.c: Declare as many functions as possible as
1146 static. Maintenance on the general indenting. Removed unnecessary
1147 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1148 function. Add support for new DSP, TMS320VC33. Fix bug for
1149 converting flonum constants.
1150 (c4x_do_align): Add proper align handling. Setup align to insert
1151 NOP's.
1152 (c4x_gen_to_words): Support for extended TI type floats.
1153 (md_atof): Proper dumping of multiple-word littlenums.
1154 (c4x_atof): Added support for extended TI type floats.
1155 (c4x_stringer): Added new function to handle compact strings.
1156 (c4x_emit_char): Added new function argument to handle custom
1157 length inserts, like single-byte strings.
1158 * config/tc-tic4x.h: Add proper align handling with NOP's.
1159 * Makefile.am: Added tic4x dependecy
1160 * Makefile.in: Regenerate
1161
1162 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1163
1164 * macro.c (get_any_string): Correct logic for not going beyond end
1165 of in->ptr[].
1166
1167 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1168
1169 * config/tc-mmix.c (get_putget_operands): Mark both possible
1170 operands as invalid at beginning.
1171
1172 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1173 Initialize target of fixup to zero.
1174
1175 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1176
1177 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1178 NEWABI, but we should still emit HI16_S for non-PIC n32.
1179
1180 2002-11-06 Richard Henderson <rth@redhat.com>
1181
1182 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1183 (alpha_fix_adjustable): ... here.
1184 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1185
1186 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1187
1188 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1189 of a label.
1190
1191 2002-11-05 H.J. Lu <hjl@gnu.org>
1192
1193 * config/tc-mips.c (support_64bit_objects): Check *l before it
1194 is freed.
1195
1196 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1197
1198 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1199 SEC_LOAD flags for sections marked as 's'.
1200
1201 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1202
1203 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1204 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1205 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1206 default.
1207
1208 * dep-in.sed: Fix typo.
1209
1210 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1211
1212 * configure.in: Update ARM CPU patterns.
1213 * configure: Regenerated.
1214
1215 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1216
1217 * itbl-lex.l: Use #include <> for generated headers.
1218 * itbl-ops.c: Likewise.
1219
1220 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1221
1222 * doc/gasp.texi: Fix typo in deprecation note.
1223
1224 2002-10-23 Nick Clifton <nickc@redhat.com>
1225
1226 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1227 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1228
1229 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1230
1231 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1232 (tc_frob_file_before_adjust): Don't define.
1233 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1234 function.
1235 (mmix_frob_file_before_adjust): Remove ineffective function.
1236
1237 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1238
1239 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1240 (cris_relax_frag): New function.
1241 (md_estimate_size_before_relax) <case ENCODE_RELAX
1242 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1243 expressions that will become absolute expressions to relaxation.
1244 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1245 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1246 value, not distance to symbol.
1247 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1248 Ditto. Correct placement of fixup.
1249 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1250 (gen_bdap): Ditto.
1251 * config/tc-cris.h (cris_relax_frag): Declare.
1252 (md_relax_frag): Define.
1253
1254 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1255
1256 * config/obj-elf.c (special_sections): Use correct types for init
1257 array sections.
1258 (obj_elf_change_section): Don't mess with init array section type.
1259
1260 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1261
1262 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1263 for relocs against symbols in a merged section.
1264
1265 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1266
1267 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1268 table as register names.
1269
1270 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1271
1272 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1273 for option -m31.
1274
1275 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1276
1277 * expr.c (operand): Add support for n.nn flonums.
1278
1279 2002-10-17 Johannes Stezenbach <js@convergence.de>
1280
1281 * itbl-parse.y (entry): Provide empty action.
1282
1283 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1284
1285 * configure.in (BFDVER_H): Set and subst.
1286 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1287 * Makefile.am: Run "make dep-am".
1288 (BFDVER_H): Define.
1289 * configure: Regenerate.
1290 * Makefile.in: Regenerate.
1291 * doc/Makefile.in: Regenerate.
1292
1293 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1294
1295 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1296 (MD_APPLY_SYM_VALUE): Define for PE too.
1297
1298 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1299
1300 * Makefile.am: Run "make dep-am".
1301 (CPU_OBJ_VALID): sh64 coff is invalid.
1302 * as.c: #include "bfdver.h".
1303 * Makefile.in: Regenerate.
1304 * config.in: Regenerate.
1305
1306 2002-10-14 Momchil Velikov <velco@fadata.bg>
1307
1308 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1309
1310 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1311
1312 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1313 * configure: Regenerate.
1314
1315 2002-10-13 Eric Christopher <echristo@redhat.com>
1316 Alexandre Oliva <aoliva@redhat.com>
1317
1318 * config/tc-mips.c (s_gpdword): New function.
1319 (mips_pseudo_table): Add .gpdword.
1320 (mips_need_elf_addend_fixup): never for NEWABI.
1321 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1322 GPREL32 as done.
1323 (s_cpadd): Generate .cpadd on NEWABI.
1324
1325 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1326
1327 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1328
1329 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1330
1331 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1332 (md_relax_frag): Adjust macro.
1333 * config/tc-mips.c (mips_relax_branch): New variable.
1334 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1335 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1336 (RELAX_MIPS16_P): Adjust.
1337 (append_insn): Emit branch to non-constant in a frag_var if
1338 branch-relaxation is desirable and possible.
1339 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1340 (OPTION_ELF_BASE): Adjust.
1341 (md_parse_option): Handle new options.
1342 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1343 branch relaxation.
1344 (relaxed_branch_length): New function.
1345 (md_estimate_size_before_relax): Handle branch frags.
1346 (mips_relax_frag): Likewise.
1347 (md_convert_frag): Handle branch frags. Warn if branch is
1348 relaxed.
1349
1350 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1351
1352 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1353 emitted.
1354 (md_apply_fix3): Add TLS relocs.
1355 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1356 @DTPOFF.
1357
1358 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1359 Alan Modra <amodra@bigpond.net.au>
1360
1361 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1362 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1363
1364 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1365
1366 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1367 inside loop.
1368
1369 2002-10-09 Richard Shann <richard.shann@superh.com>
1370 Stephen Clarke <stephen.clarke@superh.com>
1371
1372 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1373 Linux environment.
1374
1375 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1376
1377 * contig/tc-sh.c (sh_local_pcrel): New.
1378 (sh_force_relocation): Use sh_local_pcrel.
1379 (md_pcrel_from_section): Check the relocation type whether it
1380 should be resolved locally. Use S_FORCE_RELOC.
1381
1382 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1383
1384 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1385 (TC_FORCE_RELOCATION): Tidy arg.
1386
1387 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1388 Ken Raeburn <raeburn@cygnus.com>
1389 Aldy Hernandez <aldyh@redhat.com>
1390 DJ Delorie <dj@redhat.com>
1391 Michael Meissner <meissner@redhat.com>
1392 Eric Christopher <echristo@redhat.com>
1393 Richard Sandiford <rsandifo@redhat.com>
1394
1395 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1396 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1397 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1398 (hilo_interlocks): True for CPU_VR5500.
1399 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1400 (mips_fix_vr4122_bugs): New.
1401 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1402 (mips_emit_delays): Likewise.
1403 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1404 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1405 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1406 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1407 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1408 (OPTION_ELF_BASE): Bump.
1409 (md_parse_option): Handle the new options.
1410 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1411 vr5400 and vr5500.
1412
1413 2002-09-29 H.J. Lu <hjl@gnu.org>
1414
1415 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1416 twice if howto->pcrel_offset is true.
1417
1418 2002-09-28 Matt Thomas <matt@3am-software.com>
1419 Jason Thorpe <thorpej@wasabisystems.com>
1420
1421 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1422 convert undefined references to GOT32/PLT32 if PIC code is
1423 requested. Fix comment.
1424
1425 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1426
1427 * config/tc-sh.c (sh_force_relocation): Return 0 for
1428 some PC relative relocations when not relaxing.
1429
1430 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1431
1432 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1433 Define them if not BFD_ASSEMBLER.
1434 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1435 @tlsld.
1436 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1437 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1438 (tc_gen_reloc): Handle x86-64 TLS relocs.
1439
1440 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1441
1442 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1443 fixups to current or absolute section.
1444
1445 2002-09-26 Jim Wilson <wilson@redhat.com>
1446
1447 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1448 and frag_more.
1449
1450 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1451
1452 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1453 capable configuration.
1454 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1455 generation.
1456 (mips_ip): Likewise.
1457
1458 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1459
1460 * config/tc-mips.c (append_insn): Fix jump overflow check.
1461
1462 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1463
1464 * config/tc-i386.c (process_operands): Warn about "lea" segment
1465 overrides.
1466
1467 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1468
1469 * write.c: Delete set_segment_vma and prototype. Update all callers.
1470
1471 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1472
1473 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1474 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1475 Rename "fseg" to "sym_seg".
1476 * Makefile.am: Run "make dep-am".
1477 * Makefile.in: Regenerate.
1478 * doc/Makefile.in: Regenerate.
1479
1480 2002-09-20 Nick Clifton <nickc@redhat.com>
1481
1482 * symbols.c (colon): Do not allow symbols to be created in the
1483 absolute section if WORKING_DOT_WORD is not defined and
1484 new_broken_words would require a new frag to be created.
1485
1486 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1487
1488 * expr.c (expr): Simplify foo-foo here.
1489 (clean_up_expression): Remove O_subtract code.
1490
1491 * write.h (struct fix): Add fx_dot_value.
1492 (dot_value): Declare.
1493 * write.c (dot_value): New var.
1494 (fix_new_internal): Save dot_value as fx_dot_value.
1495 (fixup_segment): Adjust fx_offset using fx_dot_value.
1496 * expr.c (expr): Update dot_value.
1497
1498 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1499
1500 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1501 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1502 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1503 if not defined.
1504 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1505 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1506 BFD_RELOC_386_TLS_GOTIE.
1507
1508 2002-09-19 Richard Henderson <rth@redhat.com>
1509
1510 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1511 branch type relocs.
1512 (alpha_force_relocation): Don't special-case branch type relocs.
1513
1514 2002-09-19 Nick Clifton <nickc@redhat.com>
1515
1516 * config/tc-m68k.c (select_control_regs): Handle situation where
1517 architecture has not yet been selected.
1518
1519 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1520
1521 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1522 (IS_SEXT_16BIT_NUM): New macro.
1523 (macro_build_ldst_constoffset): New function, to build a set of
1524 instructions to do a load or store from a constant offset relative
1525 to a given register.
1526 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1527 .cprestore pseudo-op.
1528
1529 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1530
1531 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1532
1533 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1534
1535 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1536
1537 2002-09-17 Stan Cox <scox@redhat.com>
1538
1539 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1540 (macro): Likewise for la. Likewise for ld.
1541 (mips_after_parse_args): Make -xgot optional, not the default.
1542 (md_apply_fix3): Allow composite relocation to set up gp.
1543 (tc_gen_reloc): Allow relaxing for newabi.
1544 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1545 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1546
1547 2002-09-17 Nick Clifton <nickc@redhat.com>
1548
1549 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1550 BFD_RELOC_ARM_IMMEDIATE has been done.
1551 (tc_gen_reloc): Do not issue reloc number of unimplemented
1552 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1553 their name is already in the error message - plus remove them
1554 from the default case.
1555
1556 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1557 behavior of instructions.
1558
1559 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1560
1561 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1562 Convert functions to K&R format.
1563
1564 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1565
1566 * config/tc-mips.c (pdr_seg): Define only for ELF.
1567 (s_change_section): Remove unused variable. Don't use for nonELF.
1568
1569 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1570
1571 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1572 obj-elf.h
1573 * config/obj-elf.h (obj_elf_change_section): Likewise.
1574
1575 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1576
1577 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1578 (out_debug_info): Likewise.
1579
1580 2002-09-16 Bruno Haible <bruno@clisp.org>
1581
1582 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1583 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1584 * config/tc-i386.c (i386_target_format): Likewise.
1585 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1586 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1587
1588 2002-09-13 Nick Clifton <nickc@redhat.com>
1589
1590 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1591 when deciding if any operands have been skipped.
1592
1593 2002-09-11 Nick Clifton <nickc@redhat.com>
1594
1595 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1596
1597 * po/tr.po: Updated Turkish translation.
1598
1599 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1600
1601 * config/tc-i386.c (md_apply_fix3): Allow addend for
1602 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1603 BFD_RELOC_386_TLS_LE_32.
1604
1605 2002-09-05 Jeff Law <law@redhat.com>
1606
1607 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1608 marker relocations such as ENTRY/EXIT.
1609 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1610 to both OBJ_ELF and OBJ_SOM.
1611
1612 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1613
1614 * doc/internals.texi (md_apply_fix3): Expand.
1615 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1616 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1617 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1618 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1619 EXTERN_FORCE_RELOC): Document.
1620 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1621 * as.h: Don't include struc-symbol.h for arc.
1622 (IS_ELF): Define.
1623 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1624 subtract absolute symbol.
1625 * obj.h (struct format_ops): Add frob_file_before_fix.
1626 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1627 * symbols.c (S_FORCE_RELOC): New function.
1628 * symbols.h (S_FORCE_RELOC): Declare.
1629 * write.c (TC_FORCE_RELOCATION): Change default.
1630 (TC_FORCE_RELOCATION_ABS): Define.
1631 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1632 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1633 (TC_FORCE_RELOCATION_SECTION): Don't define.
1634 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1635 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1636 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1637 (TC_VALIDATE_FIX_SUB): Define.
1638 (TC_FIX_ADJUSTABLE): Don't define.
1639 (MD_APPLY_SYM_VALUE): Define this instead.
1640 (abs_section_sym): New variable.
1641 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1642 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1643 Don't put the absolute section sym on fixups here.
1644 (fix_segment): New function.
1645 (write_relocs): Don't call fixup_segment from here.
1646 (write_object_file): Instead call tc_frob_file_before_fix,
1647 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1648 Don't output the absolute section symbol.
1649 (fixup_segment): Rewrite.
1650 * write.h (abs_section_sym): Declare.
1651 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1652 obj_aout_frob_file.
1653 (aout_format_ops): Adjust to suit.
1654 * config/obj-aout.h (obj_frob_file): Don't define.
1655 (obj_frob_file_before_fix): Define.
1656 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1657 (S_FORCE_RELOC): Define.
1658 * config/obj-bout.h (S_FORCE_RELOC): Define.
1659 * config/obj-coff.c (coff_format_ops): Init new field.
1660 * config/obj-coff.h: Formatting fixes.
1661 (obj_sec_sym_ok_for_reloc): Define.
1662 (S_FORCE_RELOC): Define.
1663 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1664 (ecoff_frob_file): .. from here.
1665 (ecoff_format_ops): Add new function.
1666 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1667 (obj_frob_file_before_fix): Define.
1668 * config/obj-elf.c (elf_format_ops): Init new field.
1669 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1670 * config/obj-ieee.h: Formatting fixes.
1671 (S_FORCE_RELOC): Define.
1672 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1673 * config/obj-vms.h (S_FORCE_RELOC): Define.
1674 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1675 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1676 for BFD_RELOC_32 and BFD_RELOC_64.
1677 (alpha_fix_adjustable): Remove extern and weak tests.
1678 (alpha_before_fix): Rename from alpha_adjust_symtab.
1679 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1680 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1681 (TC_VALIDATE_FIX): Tweak param name.
1682 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1683 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1684 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1685 (MD_APPLY_SYM_VALUE): Define.
1686 (tc_adjust_symtab): Don't define.
1687 (alpha_adjust_symtab): Don't declare.
1688 (tc_frob_file_before_fix): Define.
1689 (alpha_before_fix): Declare.
1690 (TC_INIT_FIX_DATA): Tweak param names.
1691 * config/tc-arc.c: Include "struc-symbol.h".
1692 (md_pcrel_from): Remove undefined sym fudge.
1693 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1694 Don't set fx_addnumber.
1695 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1696 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1697 (EXTERN_FORCE_RELOC): Define.
1698 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1699 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1700 (arm_validate_fix): Return void.
1701 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1702 Add plt and got reloc tests.
1703 (arm_force_relocation): Call S_FORCE_RELOC.
1704 * config/tc-arm.h (struct fix): Forward declare.
1705 (TC_VALIDATE_FIX): No longer set add_symbolP.
1706 (arm_validate_fix): Adjust declaration.
1707 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1708 (TC_FORCE_RELOCATION): Tweak param name.
1709 (TC_INIT_FIX_DATA): Likewise.
1710 (obj_fix_adjustable): Don't define.
1711 (tc_fix_adjustable): Call arm_fix_adjustable.
1712 (TC_FIX_ADJUSTABLE): Don't define.
1713 (MD_APPLY_SYM_VALUE): Define.
1714 (EXTERN_FORCE_RELOC): Define.
1715 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1716 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1717 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1718 Remove *valP fudges and code to subtract abs sym. Don't set
1719 fx_addnumber.
1720 * config/tc-avr.h: Formatting.
1721 (EXTERN_FORCE_RELOC): Define.
1722 (MD_APPLY_SYM_VALUE): Define.
1723 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1724 (md_apply_fix3): Remove code to subtract abs sym.
1725 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1726 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1727 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1728 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1729 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1730 (tc_fix_adjustable): Remove extern, weak tests.
1731 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1732 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1733 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1734 and code to subtract abs sym.
1735 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1736 (d10v_force_relocation): Call S_FORCE_RELOC.
1737 * config/tc-d10v.h: Don't include write.h.
1738 (struct fix): Instead, forward declare.
1739 (MD_PCREL_FROM_SECTION): Tweak param names.
1740 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1741 (d10v_fix_adjustable): Likewise.
1742 (obj_fix_adjustable): Don't define.
1743 (tc_fix_adjustable): Define.
1744 (TC_FORCE_RELOCATION): Tweak param name.
1745 (MD_APPLY_SYM_VALUE): Define.
1746 (EXTERN_FORCE_RELOC): Define.
1747 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1748 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1749 and code to subtract abs sym.
1750 * config/tc-d30v.h: Don't include write.h.
1751 (struct fix): Instead, forward declare.
1752 (MD_PCREL_FROM_SECTION): Tweak param names.
1753 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1754 (MD_APPLY_SYM_VALUE): Define.
1755 (EXTERN_FORCE_RELOC): Define.
1756 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1757 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1758 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1759 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1760 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1761 Don't use fx_addnumber.
1762 * config/tc-dlx.h: Don't include write.h.
1763 (md_convert_frag): We're not alpha twice over.
1764 (EXTERN_FORCE_RELOC): Define.
1765 (obj_fix_adjustable): Don't define.
1766 (tc_fix_adjustable): Define.
1767 (TC_FIX_ADJUSTABLE): Don't define.
1768 (MD_APPLY_SYM_VALUE): Define.
1769 (LOCAL_LABELS_DOLLAR): Undef always.
1770 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1771 (fr30_fix_adjustable): Remove extern, weak tests.
1772 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1773 (obj_fix_adjustable): Don't define.
1774 (tc_fix_adjustable): Define.
1775 (struct fix): Forward declare.
1776 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1777 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1778 (frv_fix_adjustable): Don't do extern, weak tests.
1779 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1780 (TC_FIX_ADJUSTABLE): Don't define.
1781 (obj_fix_adjustable): Don't define.
1782 (tc_fix_adjustable): Define.
1783 (struct fix): Forward declare.
1784 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1785 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1786 * config/tc-h8300.h (struct fix): Forward declare.
1787 (EXTERN_FORCE_RELOC): Define.
1788 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1789 (hppa_fix_adjustable): Don't test extern or weak. Don't
1790 symbol_mark_used_in_reloc.
1791 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1792 and S_IS_WEAK.
1793 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1794 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1795 (TC_FORCE_RELOCATION_SECTION): Don't define.
1796 (MD_APPLY_SYM_VALUE): Define.
1797 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1798 to subtract abs sym.
1799 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1800 (MD_APPLY_SYM_VALUE): Define.
1801 (MD_PCREL_FROM_SECTION): Tweak param name.
1802 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1803 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1804 (i386_force_relocation): New function.
1805 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1806 (TC_VALIDATE_FIX): Likewise.
1807 (TC_FIX_ADJUSTABLE): Don't define.
1808 (MD_APPLY_SYM_VALUE): Define.
1809 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1810 (i386_force_relocation): Declare.
1811 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1812 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1813 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1814 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1815 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1816 (EXTERN_FORCE_RELOC): Define.
1817 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1818 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1819 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1820 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1821 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1822 Remove #if 0 code. Invert return boolean.
1823 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1824 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1825 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1826 (tc_coff_sizemachdep): Prototype.
1827 (i960_handle_align): Likewise.
1828 (i960_validate_fix): Adjust declaration.
1829 (reloc_callj): Likewise.
1830 (EXTERN_FORCE_RELOC): Define.
1831 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1832 (TC_FORCE_RELOCATION_ABS): Define.
1833 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1834 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1835 (TC_FIX_ADJUSTABLE): Don't define.
1836 (MD_APPLY_SYM_VALUE): Define.
1837 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1838 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1839 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1840 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1841 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1842 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1843 (MD_APPLY_SYM_VALUE): Define.
1844 (EXTERN_FORCE_RELOC): Define.
1845 (TC_FORCE_RELOCATION): Tweak param name.
1846 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1847 (m32r_fix_adjustable): Don't test extern, weak.
1848 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1849 (MD_APPLY_SYM_VALUE): Define.
1850 (obj_fix_adjustable): Don't define.
1851 (tc_fix_adjustable): Define.
1852 (tc_frob_file): Don't define.
1853 (tc_frob_file_before_fix): Define.
1854 (EXTERN_FORCE_RELOC): Define.
1855 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1856 BFD_RELOC_VTABLE_ENTRY address.
1857 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1858 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1859 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1860 Remove duplicated fx_done code.
1861 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1862 (EXTERN_FORCE_RELOC): Define.
1863 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1864 relaxable_symbol.
1865 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1866 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1867 (TC_FIX_ADJUSTABLE): Don't define.
1868 (EXTERN_FORCE_RELOC): Define.
1869 (MD_APPLY_SYM_VALUE): Define.
1870 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1871 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1872 Remove fx_addsy tests.
1873 (mcore_force_relocation): Call S_FORCE_RELOC.
1874 (mcore_fix_adjustable): Don't test fx_addsy.
1875 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1876 (EXTERN_FORCE_RELOC): Define.
1877 (obj_fix_adjustable): Don't define.
1878 (tc_fix_adjustable): Define.
1879 (MD_APPLY_SYM_VALUE): Define.
1880 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1881 (mips_pic): No longer static.
1882 (mips_force_relocation): Call S_FORCE_RELOC.
1883 (mips_fix_adjustable): Remove extern, weak tests.
1884 * config/tc-mips.h (enum mips_pic_level): Declare.
1885 (mips_pic): Declare.
1886 (tc_frob_file): Don't define.
1887 (tc_frob_file_before_fix): Define this instead.
1888 (EXTERN_FORCE_RELOC): Define.
1889 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1890 with reg_section tests. Set fx_done instead of calling
1891 symbol_clear_used_in_reloc on bad relocs.
1892 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1893 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1894 (mmix_adjust_symtab): Simplify list handling. Abort on any
1895 nonsense.
1896 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1897 BFD_RELOC_MMIX_LOCAL.
1898 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1899 (EXTERN_FORCE_RELOC): Define.
1900 (MD_PCREL_FROM_SECTION): Tweak param name.
1901 (tc_frob_file): Don't define.
1902 (tc_frob_file_before_fix): Define this instead.
1903 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1904 Remove SEC_CODE checks.
1905 (mn10300_fix_adjustable): Remove extern and weak tests.
1906 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1907 (TC_FORCE_RELOCATION): Tweak param name.
1908 (obj_fix_adjustable): Don't define.
1909 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1910 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1911 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1912 (openrisc_fix_adjustable): Don't test fx_addsy.
1913 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1914 (obj_fix_adjustable): Don't define.
1915 (tc_fix_adjustable): Define this instead.
1916 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1917 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1918 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1919 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1920 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1921 (MD_APPLY_SYM_VALUE): Define.
1922 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1923 Don't subtract symbol value.
1924 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1925 (EXTERN_FORCE_RELOC): Define.
1926 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1927 (MD_APPLY_SYM_VALUE): Define.
1928 (obj_fix_adjustable): Don't define.
1929 (tc_fix_adjustable): Define this instead.
1930 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1931 section sym.
1932 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1933 (ppc_force_relocation <elf version>): New.
1934 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1935 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1936 comments. Don't subtract fx_subsy as that is already done.
1937 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1938 (MD_PCREL_FROM_SECTION): Likewise.
1939 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1940 ppc_force_relocation.
1941 (TC_FORCE_RELOCATION_SECTION): Delete.
1942 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1943 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1944 (MD_APPLY_SYM_VALUE): Define.
1945 * config/tc-s390.c: #include "dwarf2dbg.h".
1946 (s390_insn): Remove excess parens.
1947 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1948 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1949 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1950 non-NULL. Don't subtract off fx_addsy value.
1951 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1952 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1953 (TC_FIX_ADJUSTABLE): Don't define.
1954 (MD_APPLY_SYM_VALUE): Define.
1955 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1956 (SWITCH_TABLE): Likewise.
1957 (sh_force_relocation): Call S_FORCE_RELOC.
1958 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1959 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1960 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1961 fx_addnumber is zero on entry. Save val in fx_addnumber.
1962 (tc_gen_reloc): Don't subtract fx_subsy.
1963 * config/tc-sh.h (struct fix): Move.
1964 (obj_fix_adjustable): Don't define.
1965 (tc_fix_adjustable): Define this instead.
1966 (TC_FIX_ADJUSTABLE): Don't define.
1967 (MD_APPLY_SYM_VALUE): Define.
1968 (SWITCH_TABLE_CONS): Define.
1969 (SWITCH_TABLE): Define.
1970 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1971 (TC_VALIDATE_FIX_SUB): Define.
1972 (MD_PCREL_FROM_SECTION): Tweak param name.
1973 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1974 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1975 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1976 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1977 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1978 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1979 (TC_VALIDATE_FIX_SUB): Define.
1980 (MD_PCREL_FROM_SECTION): Tweak param name.
1981 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1982 (tc_gen_reloc): Use S_FORCE_RELOC.
1983 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1984 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1985 (TC_FORCE_RELOCATION_ABS): Define this instead.
1986 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1987 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1988 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1989 (MD_APPLY_SYM_VALUE): Define.
1990 (TC_FIX_DATA_PRINT): Tweak param name.
1991 * config/tc-tic30.c (USE_STDOUT): Don't define.
1992 (md_parse_option): Remove stupid debug code.
1993 (tc_gen_reloc): Don't use fx_addnumber.
1994 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1995 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1996 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1997 (tc_fix_adjustable): Define this instead.
1998 (TC_FIX_ADJUSTABLE): Don't define.
1999 (MD_APPLY_SYM_VALUE): Define this instead.
2000 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2001 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2002 (TC_FIX_ADJUSTABLE): Don't define.
2003 (MD_APPLY_SYM_VALUE): Define this instead.
2004 (tc_fix_adjustable): Remove extern and weak tests.
2005 * config/tc-w65.h (struct fix): Forward declare.
2006 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2007 S_FORCE_RELOC.
2008 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2009 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2010 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2011 absolute symbol.
2012 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2013 (MD_APPLY_SYM_VALUE): Define.
2014 (obj_fix_adjustable): Don't define.
2015 (tc_fix_adjustable): Define this instead.
2016 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2017
2018 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2019
2020 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2021 (ppc_fix_adjustable <coff version>): Cleanup.
2022
2023 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2024 (md_parse_option): No -a64 without BFD64.
2025 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2026 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2027
2028 2002-09-04 Nick Clifton <nickc@redhat.com>
2029
2030 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2031 instructions into the hash table if the target cpu is the BookE32.
2032
2033 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2034
2035 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2036 ATTRIBUTE_UNUSED.
2037
2038 2000-08-28 Catherine Moore <clm@redhat.com>
2039
2040 * tc-v850.c (v850_relax): Declare.
2041 (v850_longcode): New routine.
2042 (v850_handle_align): New routine.
2043 (md_pseudo_table): Add longcall and longjump.
2044 (md_parse_option): Check for relax option.
2045 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2046 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2047 (md_apply_fix3): Likewise.
2048 (v850_force_relocation): Likewise.
2049 (v850_comm): Change the current section.
2050 (md_assemble): Ensure that the correct value is put in the
2051 fixup.
2052 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2053 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2054 Remove redundant v850ea support.
2055 * tc-v850.h (HANDLE_ALIGN): Define.
2056 (v850_handle_align): Declare.
2057 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2058
2059 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2060
2061 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2062 * configure: Regenerate.
2063 * NEWS: Mention new port.
2064
2065 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2066
2067 * config/obj-coff.c: Add sdef definition.
2068 * config/obj-coff.h: Add tic4x include file and set
2069 target format.
2070 * config/tc-tic4x.c: New file.
2071 * config/tc-tic4x.h: New file.
2072
2073 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2074
2075 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2076 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2077 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2078 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2079 (RELOC_ENUM): Define.
2080 (fix_new_internal): Use RELOC_ENUM.
2081 (fix_new, fix_new_exp): Likewise.
2082 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2083 Replace gotos with continue.
2084 (write_relocs): Formatting. Avoid symbol loops in
2085 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2086 errors, and error number in other cases.
2087 (fixup_segment): Remove param names from prototype. Rename
2088 "this_segment_type" to "this_segment". Update linkrelax comment.
2089 Remove "size, "place" and "where" local vars. Formatting. Update
2090 "no symbol" comment. Remove #if 0 and #if 1.
2091
2092 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2093
2094 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2095
2096 * dwarf2dbg.c: Always include dwarf2dbg.h.
2097 (dwarf2_directive_file): Adjust dummy version args.
2098 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2099 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2100 when symbol values differ.
2101 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2102 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2103 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2104
2105 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2106
2107 * config/tc-w65.c (md_section_align): Fix typo.
2108 (md_parse_option): Return 0, not 1.
2109
2110 2002-08-22 Nick Clifton <nickc@redhat.com>
2111
2112 * doc/as.texinfo (Section): Note that if '@' is a comment
2113 character then another symbol is used to prefix the section's
2114 type.
2115
2116 2002-08-22 Christian Groessler <chris@groessler.org>
2117
2118 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2119 "case 0" case.
2120
2121 2002-08-12 Graeme Peterson <gp@qnx.com>
2122
2123 * configure.in: Add support for sh-**-nto* target.
2124 * configure: Regenerate.
2125
2126 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2127
2128 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2129
2130 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2131
2132 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2133 is ELF.
2134 (ppc_apuinfo_section_add): Define only if format is ELF.
2135 (md_assemble): Emit APUinfo section only if format is ELF.
2136 Fix formatting.
2137
2138 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2139
2140 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2141 * config/tc-frv.c: Likewise.
2142 * config/tc-hppa.c: Likewise.
2143 * config/tc-ia64.c: Likewise.
2144 * config/tc-ip2k.c: Likewise.
2145 * config/tc-m68hc11.c: Likewise.
2146 * config/tc-m68k.c: Likewise.
2147 * config/tc-mmix.c: Likewise.
2148 * config/tc-mn10300.c: Likewise.
2149 * config/tc-sh.c: Likewise.
2150 * config/tc-sparc.c: Likewise.
2151 * config/tc-v850.c: Likewise.
2152
2153 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2154
2155 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2156 by zero.
2157
2158 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2159
2160 From matthew green <mrg@redhat.com>
2161
2162 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2163 PPC_OPCODE_PPC is, except for BookE architectures.
2164 (md_parse_option): Add support for -mspe.
2165 (md_show_usage): Add -mspe.
2166 (md_parse_option): Add support for -me500 and
2167 -me500x2 to generate code for Motorola e500 core complex.
2168 (md_show_usage): Add -me500 and -me500x2.
2169
2170 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2171 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2172 PPC_APUINFO_BRLOCK): New macros.
2173
2174 (ppc_cleanup): New function.
2175 (ppc_apuinfo_section_add): New function.
2176 (APUID): New macro.
2177 (md_assemble): Collect info and write the APUinfo section.
2178
2179 * config/tc-ppc.h (md_cleanup): Define.
2180 (ppc_cleanup): Export.
2181 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2182
2183 2002-08-17 Stan Cox <scox@redhat.com>
2184
2185 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2186 config/tc-mips.c (s_change_section): New function to support
2187 IRIX .section pseudo-op.
2188
2189 2002-08-16 Nick Clifton <nickc@redhat.com>
2190
2191 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2192
2193 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2194
2195 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2196 the fix-up against on the right frag.
2197 (s_cpsetup): Likewise. Parse third argument as expression, to
2198 handle global symbols and forward/backward labels correctly.
2199
2200 2002-08-14 Nick Clifton <nickc@redhat.com>
2201
2202 * read.c (stringer): Catch attempts to create strings in the abs
2203 section.
2204
2205 * config/tc-alpha.c: Fix compiling for COFF targets.
2206 Some minor formatting tidyups.
2207
2208 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2209
2210 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2211 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2212 according to the reloc.
2213 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2214 (TC_FORCE_RELOCATION): Define.
2215 (tc_m68hc11_force_relocation): Declare.
2216
2217 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2218 (s_m68hc11_relax): New function for relax group.
2219 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2220 beginning of jump instruction.
2221 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2222 address computation.
2223 (tc-gen_reloc): Update.
2224 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2225 PC-relative fixup.
2226 (tc_m68hc11_force_relocation): New function, handle new relocs.
2227 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2228 reloc for the linker relax pass.
2229 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2230 and VTABLE relocs.
2231
2232 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2233
2234 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2235 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2236 (s_m68hc11_mode): New function for .mode pseudo op.
2237 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2238 pseudo op.
2239 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2240 (m68hc11_elf_final_processing): Declare.
2241
2242 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2243
2244 * config/tc-m68hc11.c (md_begin): Take into account additional
2245 page operand for call instruction.
2246 (print_opcode_format): Likewise.
2247 (check_range): Likewise for page range checking.
2248 (get_operand): Don't skip a possible comma in operands.
2249 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2250 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2251 (fixup24): New to handle call reloc.
2252 (build_insn): Handle missing page operand for call instruction.
2253 (find): Likewise.
2254 (md_apply_fix3): Take into account new relocs.
2255 (get_operand): Fix the mode for indexed indirect addressing.
2256 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2257
2258 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2259
2260 * config/tc-mips.c (mips_ip): Don't work out the value of
2261 constant %hi()s here.
2262
2263 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2264
2265 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2266 for ELF, and don't bother checking ELF relocs when non-ELF.
2267 (i386_immediate): Allow absolute_section expressions for aout.
2268 (i386_displacement): Likewise. Also test bfd_is_com_section.
2269 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2270 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2271 not when fx_addsy. Remove dead code.
2272
2273 2002-08-09 Graeme Peterson <gp@qnx.com>
2274
2275 * configure.in: Add support for ppc-*-nto* target.
2276 * configure: Regenerate.
2277
2278 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2279
2280 * config/tc-i386.h: Reorganize.
2281
2282 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2283
2284 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2285 immediate offset in "dla" and "la" expansions.
2286
2287 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2288
2289 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2290 Remove "bfd_gas=yes" from target table when covered later.
2291 Consolidate some entries.
2292 * configure: Regenerate
2293
2294 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2295
2296 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2297 at start of insn, pass it to output_disp and output_imm.
2298 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2299 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2300 properly addend.
2301 (output_imm): Added arguments. Compute properly addend for
2302 R_386_GOTPC.
2303 (md_apply_fix3): Remove R_386_GOTPC handling.
2304
2305 2002-08-06 George France <france@handhelds.org>
2306
2307 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2308 and m21264b processor names and cpu types.
2309 * doc/c-alpha.texi: Documented new types.
2310
2311 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2312
2313 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2314
2315 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2316
2317 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2318 handling to BFD_RELOC_MIPS16_GPREL.
2319
2320 2002-08-01 Nick Clifton <nickc@redhat.com>
2321
2322 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2323 pool is computed using signed arithmetic so that proper sign
2324 extension is performed if X_add_number is a 64-bit integer.
2325
2326 2002-08-01 H.J. Lu <hjl@gnu.org>
2327 Daniel Jacobowitz <drow@mvista.com>
2328
2329 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2330 .debug_line section unless it has line information.
2331
2332 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2333
2334 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2335 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2336 Allow default displacement size to be an option "--disp-size-default".
2337 (md_number_to_disp): Make error messages include value. Use %d to
2338 print integers, not %s.
2339 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2340 get duplicate messages sometimes.
2341 (convert_iif): Grow frag to max possible instruction size. Avoid
2342 creating unnecessary fixes.
2343 (md_number_to_field) Add prototype.
2344 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2345 prototypes and make static.
2346 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2347 (evaluate_expr): Use resultP argument instead of exprP global.
2348 (get_addr_mode): Quiten compiler warnings.
2349 (encode_operand): eliminate unused variables. Quiten compiler
2350 warnings. Eliminate nul character in format strings.
2351 (parse): argc is unsigned.
2352 (reloc): Type cast index to quieten compiler.
2353 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2354 (md_convert_frag): Note unused parameters. Remove unused
2355 variables.
2356 (md_create_long_jump, md_create_short_jump,
2357 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2358 unused parameters.
2359
2360 2002-07-31 Nick Clifton <nickc@redhat.com>
2361
2362 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2363 of the PDP-11 and 2.11BSD a.out support.
2364
2365 2002-07-31 Momchil Velikov <velco@fadata.bg>
2366
2367 * config/tc-v850.c (md_assemble): Fix range check for immediate
2368 operand.
2369
2370 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2371
2372 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2373 to Broadcom SB-1 core support.
2374
2375 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2376
2377 * config/tc-mips.c (mips_target_format): Fix formatting.
2378 Add recognition of n32 ABI formats.
2379
2380 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2381
2382 * tc-mips.c (load_address): Don't clobber $at when loading a
2383 64-bit address in non-PIC code if noat is in effect.
2384 (macro): Likewise.
2385
2386 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2387
2388 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2389 used in division/multiply macro expansions similarly to how they
2390 are used in the variants with break instructions.
2391 (macro2): Likewise.
2392
2393 2002-07-30 Graeme Peterson <gp@qnx.com>
2394
2395 * configure.in: Add support for arm-*-nto target.
2396 * configure: Regenerate.
2397
2398 2002-07-30 Nick Clifton <nickc@redhat.com>
2399
2400 * config/tc-arm.c (struct literal_pool): Add fields to allow
2401 multiple literal pools to be maintained.
2402 (find_literal_pool): New function.
2403 (find_or_make_literal_pool): New function.
2404 (add_to_literal_pool): Use find_or_make_literal_pool.
2405 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2406 needed.
2407 (s_ltorg): Use find_literal_pool.
2408 (arm_cleanup): Dump all literal pools.
2409 * doc/c-arm.texi: Document new behaviour of only dumping literal
2410 pools upon request.
2411
2412 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2413
2414 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2415 rather than PPC_OPCODE_32 for powerpc64*.
2416
2417 2002-07-25 Nick Clifton <nickc@redhat.com>
2418
2419 * po/es.po: Updated Spanish translation.
2420 * po/fr.po: Updated French translation.
2421
2422 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2423
2424 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2425 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2426 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2427 * configure, config.in: Regenerate.
2428 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2429 (mips_set_options): Remove "abi" field.
2430 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2431 with mips_abi.
2432 (mips_cpu): Remove.
2433 (mips_arch_string, mips_arch_info): New vars.
2434 (mips_tune_string, mips_tune_info): New vars.
2435 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2436 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2437 (mips_isa_to_str, mips_cpu_to_str): Remove.
2438 (mips_ip): If the selected architecture is a generic ISA rather
2439 than a processor, only mention the ISA level in error messages.
2440 (OPTION_MCPU): Remove.
2441 (OPTION_FP64): New.
2442 (md_longopts): Add -mfp64, remove -mcpu.
2443 (mips_set_option_string): New fn.
2444 (md_parse_option): Make -mipsN update file_mips_isa rather than
2445 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2446 Don't let -mgp32 and -mfp32 change the ABI.
2447 (show): Move to end of file. Constify string argument.
2448 (md_show_usage): Move to the end of the file. Read available
2449 architectures from mips_cpu_info_table.
2450 (mips_set_architecture): New fn.
2451 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2452 is an alias for -march=mipsN. Don't change the ABI based on other
2453 flags. Infer the register size from the ABI as well as the
2454 architecture. Complain about more conflicting arguments.
2455 Unify logic with GCC.
2456 (s_mipsset): Don't change the ABI.
2457 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2458 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2459 "mipsN"-type entries. Remove entries that vary only in the
2460 manufacturer's prefix, or that have "000" replaced by "k".
2461 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2462 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2463 (mips_parse_cpu): New fn.
2464 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2465 (mips_cpu_info_from_isa): Minor formatting tweak.
2466
2467 2002-07-24 Nick Clifton <nickc@redhat.com>
2468
2469 * po/sv.po: Updated Swedish translation.
2470 * po/es.po: Updated Spanish translation.
2471
2472 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2473
2474 * Makefile.am: Run "make dep-am".
2475 * Makefile.in: Regenerate.
2476 * doc/Makefile.in: Regenerate.
2477 * config.in: Regenerate.
2478 * po/POTFILES.in: Regenerate.
2479
2480 2002-07-23 Nick Clifton <nickc@redhat.com>
2481
2482 * po/fr.po: Updated French translation.
2483
2484 2002-07-23 Nick Clifton <nickc@redhat.com>
2485
2486 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2487 GAS.
2488
2489 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2490
2491 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2492 instead of S_IS_EXTERN.
2493 (md_estimate_size_before_relax): Likewise.
2494 (mips_fix_adjustable): Likewise.
2495
2496 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2497
2498 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2499
2500 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2501 Nick Clifton <nickc@redhat.com>
2502
2503 * cond.c (s_ifdef): Treat a referenced but not yet defined
2504 symbol as if it were undefined, in exactly the same way as
2505 .equiv.
2506
2507 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2508 consider referenced bug not yet defined symbols to be
2509 undefined.
2510
2511 2002-07-18 Denis Chertykov <denisc@overta.ru>
2512 Frank Ch. Eigler <fche@redhat.com>
2513 Alan Lehotsky <alehotsky@cygnus.com>
2514 John Healy <jhealy@redhat.com>
2515 Jeff Johnston <jjohnstn@redhat.com>
2516
2517 * configure.in: Add ip2k configuraton.
2518 * configure: Regenerate.
2519 * Makefile.am: Add ip2k configuraton.
2520 * Makefile.in: Regenerate.
2521 * configure: Regenerate.
2522 * Makefile.in: Regenerate.
2523 * config/tc-ip2k.c: New file.
2524 * config/tc-ip2k.h: New files.
2525 * NEWS: Mention new support.
2526 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2527 * doc/Makefile.in: Regenerate.
2528 * doc/all.texi: Set IP2K
2529 * doc/as.texinfo: Add IP2K description.
2530 * doc/c-ip2k.texi: New file.
2531
2532 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2533
2534 * NEWS: Reformat to match style of other NEWS files.
2535
2536 2002-07-17 Jan Hubicka <jh@suse.cz>
2537
2538 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2539
2540 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2541
2542 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2543
2544 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2545
2546 * NEWS: Add 'Changes in 2.13'.
2547
2548 2002-07-15 Matt Fredette <fredette@netbsd.org>
2549
2550 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2551
2552 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2553
2554 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2555 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2556 not CODE_64BIT.
2557
2558 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2559
2560 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2561 (ppc_frob_file_before_adjust): New function.
2562 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2563 (ppc_elf_frob_symbol): Don't declare.
2564 (tc_frob_file_before_adjust): Define.
2565 (ppc_frob_file_before_adjust): Declare.
2566
2567 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2568 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2569 flags.
2570 (ppc_size): Delete.
2571 (ppc_xcoff64): Rename to ppc_obj64.
2572 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2573 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2574 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2575 or bfd_mach_ppc.
2576 (ppc_target_format): Use ppc_obj64 to select format.
2577 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2578 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2579 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2580 (tc_frob_symbol): Likewise.
2581 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2582 BFD_DEFAULT_TARGET_SIZE.
2583 (ppc_tc): Likewise.
2584 (ppc_is_toc_sym): Likewise.
2585 (md_apply_fix3): Likewise.
2586 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2587 BFD_DEFAULT_TARGET_SIZE.
2588 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2589 (tc_frob_symbol): Likewise.
2590
2591 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2592
2593 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2594 (mips_ip): Likewise.
2595
2596 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2597
2598 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2599 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2600 (md_apply_fix3): Formatting. Remove redundant test.
2601 (tc_gen_reloc): Remove redundant code.
2602 (tc_i386_force_relocation): Delete. Movy body of function to..
2603 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2604
2605 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2606
2607 * configure.in: Add hppa-*-openbsd* target, change
2608 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2609 with sparc64 cpu.
2610 * configure: Regenerate.
2611
2612 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2613
2614 * config/tc-mips.c (macro): Shift the 32-bit address range
2615 accessible with a lone "lui" down by 32768.
2616
2617 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2618
2619 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2620 instead of "dadd" in address calculations.
2621 (macro): Likewise.
2622
2623 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2624
2625 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2626 movzx fudges.
2627 (md_assemble): Instead, zap the suffix here.
2628
2629 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2630
2631 * NEWS: Remove next release number until the release is actually
2632 upon us.
2633
2634 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2635
2636 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2637 Run "make dep-am".
2638 * Makefile.in: Regenerate.
2639
2640 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2641
2642 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2643 to symbols in merge sections, even non pc-relative ones.
2644
2645 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2646
2647 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2648
2649 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2650
2651 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2652 .softregs and .eeprom.
2653
2654 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2655
2656 * NEWS: Note the next release is 2.13.
2657
2658 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2659
2660 * po/tr.po: New translation imported.
2661
2662 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2663
2664 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2665 (ecoff_directive_def): Likewise.
2666 (ecoff_directive_tag): Likewise.
2667 * listing.c (file_info): Likewise.
2668 * hash.c (what): Likewise.
2669
2670 2002-06-25 H.J. Lu <hjl@gnu.org>
2671
2672 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2673 * Makefile.in: Regenerated.
2674
2675 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2676
2677 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2678 (assemble_ppi): Generate warning if the same register is used
2679 twice as destination in the same padd / pmuls instruction.
2680
2681 2002-06-18 Dave Brolley <brolley@redhat.com>
2682
2683 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2684 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2685 * configure.in: Support frv-*-*.
2686 * Makefile.am (CPU_TYPES): Add frv.
2687 (TARGET_CPU_CFILES): Add tc-frv.c.
2688 (TARGET_CPU_HFILES): Add tc-frv.h.
2689 (DEPTC_frv_coff): New variable.
2690 (DEPTC_frv_elf): New variable.
2691 (DEPOBJ_frv_coff): New variable.
2692 (DEPOBJ_frv_elf): New variable.
2693 (DEP_frv_coff): New variable.
2694 (DEP_frv_elf): New variable.
2695 * tc-frv.c: New file.
2696 * tc-frv.h: New file.
2697
2698 2002-06-17 Catherine Moore <clm@redhat.com>
2699
2700 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2701
2702 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2703
2704 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2705
2706 2002-06-17 Tom Rix <trix@redhat.com>
2707
2708 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2709
2710 2002-06-14 H.J. Lu <hjl@gnu.org>
2711 Daniel Jacobowitz <drow@mvista.com>
2712
2713 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2714 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2715 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2716 and new_logical_line for the first .file directive.
2717 * read.c (s_app_file_string): New function.
2718 (s_app_file): Call it.
2719 * read.h (s_app_file_string): Add declaration.
2720
2721 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2722
2723 * configure.in: Remove MIPS_STABS_ELF.
2724 * configure: Regenerated.
2725 * config.in: Regenerated.
2726 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2727 for MIPS targets.
2728 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2729 ".extern".
2730 (pdr_seg): Declare unconditionally.
2731 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2732 (s_mips_end): Likewise. Generate stabs function markers.
2733 (s_mips_ent): Generate stabs function markers.
2734 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2735 ELF.
2736 (s_mips_mask): Likewise.
2737 (mips_flag_mdebug): New.
2738 (md_longopts): Add "mdebug" and "no-mdebug".
2739 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2740 (mips_after_parse_args): Set mips_flag_mdebug.
2741 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2742
2743 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2744
2745 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2746 value twice for RELA relocations.
2747
2748 2002-06-12 Ben Elliston <bje@redhat.com>
2749
2750 * symbols.c (resolve_symbol_value): Initialise final_val.
2751
2752 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2753
2754 2002-06-11 Tom Rix <trix@redhat.com>
2755
2756 * config/tc-ppc.c (ppc_subseg_align): Delete.
2757 (ppc_change_csect): Default csect align is 2.
2758 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2759
2760 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2761
2762 * config/tc-avr.c (mcu_types): Update.
2763
2764 2002-06-08 Matt Thomas <matt@3am-software.com>
2765
2766 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2767 (vax-*-netbsd*): New targets.
2768 * configure: Regenerate.
2769 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2770 * config/tc-vax.c: Add support for ELF and PIC.
2771 (flag_want_pic): New flag.
2772 (float_cons): Fix prototype.
2773 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2774 (md_assemble): Introduce a new is_absolute local, and use it
2775 rather than repeating the test. Make fatal errors actually
2776 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2777 Add support for ELF. Add support for PIC.
2778 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2779 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2780 BFD_ASSEMBLER.
2781 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2782 optional for a.out, and not allowed for VMS. Adjust all callers.
2783 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2784 (md_create_long_jump): Likewise.
2785 (md_undefined_symbol): Likewise.
2786 (md_section_align): Likewise.
2787 (md_shortopts): Allow -k and -K for ELF.
2788 (md_parse_option): Set flag_want_pic if -k or -K.
2789 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2790 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2791 * config/tc-vax.h (tc_headers_hook): Remove.
2792 (TARGET_FORMAT): Set according to object format and target
2793 environment.
2794 (BFD_ARCH, TARGET_ARCH): Define.
2795 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2796 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2797 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2798 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2799
2800 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2801
2802 * Makefile.am: Run "make dep-am".
2803 * Makefile.in: Regenerate.
2804
2805 * as.c: Replace CONST with const.
2806 * write.c: Likewise.
2807 * config/obj-coff.c: Likewise.
2808 * config/tc-a29k.c: Likewise.
2809 * config/tc-arm.c: Likewise.
2810 * config/tc-dlx.c: Likewise.
2811 * config/tc-h8300.c: Likewise.
2812 * config/tc-h8500.c: Likewise.
2813 * config/tc-i370.c: Likewise.
2814 * config/tc-i860.c: Likewise.
2815 * config/tc-i960.c: Likewise.
2816 * config/tc-m68hc11.c: Likewise.
2817 * config/tc-m68k.c: Likewise.
2818 * config/tc-m88k.c: Likewise.
2819 * config/tc-mcore.c: Likewise.
2820 * config/tc-mips.c: Likewise.
2821 * config/tc-ns32k.c: Likewise.
2822 * config/tc-pdp11.c: Likewise.
2823 * config/tc-pj.c: Likewise.
2824 * config/tc-s390.c: Likewise.
2825 * config/tc-sh.c: Likewise.
2826 * config/tc-sparc.c: Likewise.
2827 * config/tc-tahoe.c: Likewise.
2828 * config/tc-tic80.c: Likewise.
2829 * config/tc-v850.c: Likewise.
2830 * config/tc-vax.c: Likewise.
2831 * config/tc-w65.c: Likewise.
2832 * config/tc-z8k.c: Likewise.
2833
2834 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2835
2836 Based on patch from Matt Green:
2837 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2838 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2839 (s_mips_loc): New function.
2840 (mips_nonecoff_pseudo_table): Call them.
2841 (append_insn): Call dwarf2_emit_insn.
2842
2843 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2844
2845 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2846 to -1.
2847 (file_ase_mips16): New veriable.
2848 (mips_eabi64): Remove.
2849 (CPU_HAS_MIPS16): New define.
2850 (CPU_HAS_MDMX): Fix data type.
2851 (md_begin): Code cleanup. Use file_ase_mips16.
2852 (mips_elf_final_processing): Handle mips16 header flag.
2853 Handle EABI flag without intermediate variable.
2854
2855 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2856
2857 * doc/as.texinfo: Update MIPS documentation.
2858
2859 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2860
2861 * config/tc-mips.c: Add define for $zero register.
2862 (md_begin): Add $zero as alias name for $0.
2863 (insn_uses_reg): Use ZERO define.
2864 (mips_ip): Add $zero as alias name for $0.
2865 (mips16_ip): Likewise.
2866 (s_cplocal): Demand empty rest of input line.
2867 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2868 names. Use ZERO define. Fix input_line_pointer progress.
2869
2870 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2871
2872 * symbols.c: Replace CONST by const throughout.
2873 (symbol_find_exact): Split out from..
2874 (symbol_find_base): ..here.
2875 * symbols.h: Replace CONST by const throughout.
2876 (symbol_find_exact): Declare.
2877 * config/obj-elf.c: #include "struc-symbol.h".
2878 (elf_frob_file): If group name matches an exported symbol, use that
2879 symbol for the signature and ".group" as the section name.
2880
2881 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2882
2883 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2884 but warn about it.
2885
2886 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2887
2888 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2889 and mips_opts.ase_mdmx if they are uninitialized.
2890
2891 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2892
2893 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2894 (hppa_force_relocation): Check if a stub just before the start symbol
2895 of the last call_info is reachable before forcing relocation. Fix
2896 typo.
2897
2898 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2899
2900 * config/tc-mips.c (mips_after_parse_args): New function.
2901 (md_begin): Move processing of defaults to mips_after_parse_args.
2902 config/tc-mips.h (md_after_parse_args): Define.
2903
2904 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2905
2906 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2907 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2908 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2909 * configure: Regenerate.
2910 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2911 environment.
2912
2913 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2914
2915 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2916
2917 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2918
2919 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2920 linkonce flag. Print all warnings.
2921 (obj_elf_section): Parse ",comdat" for groups.
2922 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2923 consistency of comdat flag.
2924
2925 2002-06-02 Richard Henderson <rth@redhat.com>
2926
2927 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2928 with LITERALs without sequence numbers.
2929
2930 2002-06-01 Richard Henderson <rth@redhat.com>
2931
2932 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2933 Rename them LITUSE_ALPHA_*.
2934
2935 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2936
2937 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2938 accept parentheses enclosed register lists.
2939
2940 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2941
2942 * Makefile.am: Run "make dep-am".
2943 * Makefile.in: Regenerate.
2944 * po/POTFILES.in: Regenerate.
2945
2946 2002-05-31 Graeme Peterson <gp@qnx.com>
2947
2948 * configure.in: Add i386-*-nto-qnx*.
2949 * configure: Regenerate.
2950
2951 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2952
2953 * config/tc-mips.c (mips_ip): Use unsigned long values for
2954 warning output.
2955
2956 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2957
2958 * config/tc-mips.c (s_cpsetup): Fix initialization of
2959 mips_cpreturn_register and mips_cpreturn_offset.
2960
2961 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2962
2963 * config/tc-mips.c (s_cpsetup): Fix comment.
2964
2965 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2966
2967 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2968 (mips_ip): Likewise.
2969 (mips16_ip): Likewise.
2970 (tc_get_register): Likewise.
2971
2972 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2973 Ed Satterthwaite <ehs@broadcom.com>
2974
2975 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2976 (mips_opts): Initialize "ase_mdmx" member.
2977 (file_ase_mdmx): New variable.
2978 (CPU_HAS_MDMX): New macro.
2979 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2980 based on command line options and configuration defaults.
2981 (macro_build): Note in comment that use of MDMX in macros is
2982 not currently allowed.
2983 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2984 "Z" MDMX operand types.
2985 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2986 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2987 types.
2988 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2989 Add support for "-mdmx" and "-no-mdmx" options.
2990 (OPTION_ELF_BASE): Move to accomodate new options.
2991 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2992 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2993 file_ase_mdmx was set.
2994 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2995 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2996 nomdmx" directives.
2997
2998 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2999
3000 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3001 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3002 command line switch conforming to gcc conventions.
3003 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3004
3005 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3006
3007 * config/tc-mips.c (macro_build_jalr): New Function.
3008 (md_begin): NewABI uses big GOTs.
3009 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3010 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3011 (load_address): Add some NewABI PIC support.
3012 (macro): Likewise.
3013 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3014 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3015
3016 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3017
3018 * config/tc-mips.c (load_address): Use mips_gp_register instead
3019 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3020 instead.
3021 (macro): Use mips_gp_register instead of hardcoded value.
3022
3023 2002-05-30 Richard Henderson <rth@redhat.com>
3024
3025 * expr.h (operatorT): Add O_md17..O_md32.
3026 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3027 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3028 O_tprelhi, O_tprello, O_tprel): New.
3029 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3030 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3031 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3032 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3033 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3034 (md_apply_fix3): Handle TLS relocations.
3035 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3036 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3037 associated TLS reloc. Check lituse_tls relocs match up.
3038 (emit_insn): Handle TLS relocations.
3039 (ldX_op): Remove.
3040
3041 * doc/c-alpha.texi: Add docs for tls relocations.
3042
3043 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3044
3045 * config/tc-mips.c (mips_gprel_offset): New variable.
3046 (s_gpvalue): Use it.
3047
3048 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3049
3050 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3051 write-write conflicts.
3052 (md_assemble): Reformat introductory comment.
3053 (parallel_ok): Prevent packing only if the first
3054 instruction cannot be packed.
3055
3056 2002-05-30 Jason Eckhardt <jle@redhat.com>
3057 Tom Rix <trix@redhat.com>
3058
3059 * config/tc-d10v.c (build_insn): Check for immediates.
3060
3061 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3062
3063 * config/tc-mips.c: Replace GP in comments by $gp.
3064 (mips_big_got): Initialize.
3065 (mips_trap): Initialize.
3066 (load_address): Use mips_gp_register instead of hardcoded value.
3067 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3068 (macro): Use mips_gp_register instead of hardcoded value.
3069 (macro2): Change load_address calls.
3070 (md_pcrel_from): Comment formatting.
3071 (s_cpload): Use mips_gp_register instead of hardcoded value.
3072 (s_cprestore): Likewise. Comment formatting.
3073 (s_gpword): Fix data type.
3074 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3075 (nopic_need_relax): Replace GP in comments by $gp.
3076 (mips_elf_final_processing): Better comment.
3077
3078 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3079
3080 * configure.in: Add DLX configuraton
3081 * Makefile.am: Add DLX configuraton
3082 * configure: Regenerate.
3083 * Makefile.in: Regenerate.
3084 * config/tc-dlx.c: New file.
3085 * config/tc-dlx.h: New files.
3086 * NEWS: Mention new support.
3087
3088 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3089
3090 * config/obj-coff.c (write_object_file): Add missing semicolon.
3091
3092 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3093
3094 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3095 by the define. Remove superfluous check of mips_opts.mips16.
3096 (append_insn): Likewise. Canonicalize variable increments.
3097 (macro_build): Canonicalize variable increments.
3098 (macro_build_lui): Likewise.
3099 (load_register): Likewise.
3100 (load_address): Move pointer initialization.
3101 (macro): Move pointer to a more local scope. Canonicalize variable
3102 increments. Better comments. Replace magic constant for RA by the
3103 define.
3104 (macro2): Replace magic constant for RA by the define. Canonicalize
3105 variable increments.
3106 (mips_ip): Canonicalize variable increments.
3107 (mips16_ip): Replace magic constant for RA by the define.
3108 (my_getSmallParser): Canonicalize variable increments/decrements.
3109 (my_getPercentOp): Likewise.
3110 (my_getSmallExpression): Likewise.
3111 (s_align): Likewise.
3112 (s_mipsset): Likewise.
3113 (s_cpsetup): Likewise.
3114 (s_insn): Remove superfluous check of mips_opts.mips16.
3115 (s_mips_stab): Likewise.
3116 (mips_handle_align): Canonicalize variable increments.
3117 (s_mips_ent): Likewise.
3118 (s_mips_end): Add comment.
3119
3120 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3121
3122 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3123 * configure: Regenerate.
3124
3125 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3126
3127 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3128 * Makefile.in: Regenerate.
3129 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3130 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3131 * configure: Regenerate.
3132 * as.h: Use #include "" instead of <> for local header files.
3133 * flonum-konst.c: Likewise.
3134 * flonum-mult.c: Likewise.
3135 * gasp.c: Likewise.
3136 * listing.c: Likewise.
3137 * config/tc-ia64.h: Likewise.
3138 * config/tc-v850.h: Likewise.
3139
3140 2002-05-24 TAMURA Kent <kent@netbsd.org>
3141
3142 * configure.in: Add a target for i386-netbsdpe.
3143 * configure: Regenerate.
3144
3145 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3146
3147 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3148 (obj_elf_common): Call elf_common.
3149 (obj_elf_tls_common): New function.
3150 (elf_pseudo_tab): Support .tls_common.
3151 (special_sections): Add .tdata and .tbss.
3152 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3153 sections.
3154 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3155 (obj_elf_parse_section_letters): Include T in error message.
3156 * config/tc-ppc.c (ppc_section_letter): Likewise.
3157 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3158 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3159 SEC_MERGE.
3160 * config/tc-sparc.c (md_apply_fix3): Likewise.
3161 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3162 Define them if not BFD_ASSEMBLER.
3163 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3164 and @NTPOFF.
3165 (md_apply_fix3): Add TLS relocs.
3166 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3167 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3168 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3169 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3170 (ia64_elf_section_letter): Include T in error message.
3171 (md_begin): Support TLS operators.
3172 (md_operand): Likewise.
3173 (ia64_gen_real_reloc_type): Support TLS relocs.
3174 * write.c (adjust_reloc_syms): Don't change symbols in
3175 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3176
3177 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3178
3179 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3180 round the relocation up rather than down.
3181
3182 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3183
3184 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3185 flag.
3186 * doc/as.texinfo: Document that the COFF version of .section
3187 ignores the 'a' flag.
3188
3189 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3190
3191 * config/tc-alpha.c (assemble_tokens): Protect use of
3192 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3193
3194 * write.c (size_seg): Check adjustment to last frag.
3195 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3196 section alignment.
3197 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3198 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3199 (write_object_file): Invoke md_do_align if available, and use
3200 frag_align_code on text sections.
3201 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3202 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3203 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3204 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3205 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3206 BFD_ASSEMBLER too.
3207
3208 2002-05-22 H.J. Lu <hjl@gnu.org>
3209
3210 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3211 for source file.
3212
3213 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3214
3215 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3216 as ELF builds.
3217
3218 2002-05-22 H.J. Lu <hjl@gnu.org>
3219
3220 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3221 for one .loc for compiler.
3222
3223 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3224
3225 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3226 embedded-PIC.
3227
3228 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3229
3230 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3231 Optimize the rotate by zero case.
3232
3233 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3234
3235 * configure.in: Remove accidental enabling of bfd_gas=yes for
3236 sh-coff targets.
3237 * configure: Regenerate.
3238
3239 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3240
3241 * app.c: Fix formatting.
3242 * as.c: Likewise.
3243 * ehopt.c: Likewise.
3244 * expr.c: Likewise.
3245 * input-file.c: Likewise.
3246 * listing.c: Likewise.
3247 * macro.h: Likewise.
3248 * stabs.c: Likewise.
3249 * symbols.c: Likewise.
3250
3251 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3252
3253 * config/obj-generic.c: Delete file.
3254 * config/obj-generic.h: Likewise.
3255
3256 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3257
3258 * config/tc-avr.c (mcu_types): Update for new devices.
3259
3260 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3261
3262 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3263
3264 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3265
3266 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3267 worked sometimes by accident. Fix copy&paste comment.
3268
3269 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3270
3271 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3272 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3273 (mips_elf_final_processing): Let n32 use .reginfo.
3274
3275 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3276
3277 * config/tc-mips.c (append_insn): Fix too small range of variable.
3278
3279 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3280
3281 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3282 listing_prev_line().
3283
3284 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3285
3286 * config/tc-arm.c (md_assemble): Remove redundant call to
3287 listing_prev().
3288
3289 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3290 loc_directive_seen.
3291
3292 * stabs.c (s_stab_generic): Fix grammatical error in warning
3293 message.
3294
3295 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3296
3297 * write.c (subsegs_finish): Don't specially align last subseg.
3298
3299 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3300
3301 * stabs.c (s_stab_generic): Warn about a description field that is
3302 too big.
3303
3304 * config/obj-coff.c: Fix compile time warnings when compiling
3305 without BFD_ASSEMBLER defined.
3306 Fix formatting.
3307
3308 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3309 target.
3310 (md_pcrel_from_section): Use md_pcrel_from().
3311
3312 2002-05-11 Bruno Haible <bruno@clisp.org>
3313
3314 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3315 by dwarf2_directive_loc, instead of calling dwarf2_where.
3316
3317 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3318
3319 * config/obj-coff.h: Fix formatting.
3320 * config/tc-mcore.c: Likewise.
3321 * config/tc-mn10300.c: Likewise.
3322 * config/tc-openrisc.c: Likewise.
3323 * config/tc-or32.c: Likewise.
3324 * config/tc-pdp11.c: Likewise.
3325 * config/tc-ppc.c: Likewise.
3326 * config/tc-ppc.h: Likewise.
3327 * config/tc-sh64.c: Likewise.
3328 * config/tc-sh.c: Likewise.
3329 * config/tc-tic54x.c: Likewise.
3330 * config/tc-xstormy16.c: Likewise.
3331 * config/tc-xstormy16.h: Likewise.
3332
3333 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3334
3335 * config/obj-coff.c: Fix formatting.
3336 * config/obj-elf.c: Likewise.
3337 * config/tc-alpha.c: Likewise.
3338 * config/tc-arm.c: Likewise.
3339 * config/tc-d10v.c: Likewise.
3340 * config/tc-d30v.c: Likewise.
3341 * config/tc-h8300.c: Likewise.
3342 * config/tc-hppa.c: Likewise.
3343
3344 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3345
3346 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3347 reloc when no_cond_jump_promotion.
3348
3349 2002-05-08 Jim Wilson <wilson@redhat.com>
3350
3351 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3352 current variable part of frag.
3353
3354 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3355
3356 * config/tc-mmix.c: Fix formatting.
3357 * config/tc-mmix.h: Likewise.
3358
3359 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3360
3361 * configure: Regenerate.
3362
3363 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3364
3365 * config/tc-m68k.c: Fix formatting.
3366
3367 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3368
3369 * Makefile.am: Honour DESTDIR.
3370 * Makefile.in: Regenerate.
3371
3372 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3373
3374 * config/tc-ia64.c: Fix formatting.
3375 * config/tc-ia64.h: Likewise.
3376
3377 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3378
3379 * config/tc-mips.c: Fix formatting.
3380 * config/tc-s390.c: Likewise.
3381 * config/tc-s390.h: Likewise.
3382
3383 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3384
3385 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3386 information for instructions.
3387
3388 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3389
3390 * as.h: Fix formatting.
3391 * cgen.c: Likewise.
3392 * cgen.h: Likewise.
3393 * dwarf2dbg.c: Likewise.
3394 * frags.h: Likewise.
3395 * gasp.c: Likewise.
3396 * macro.c: Likewise.
3397 * read.c: Likewise.
3398 * stabs.c: Likewise.
3399 * symbols.c: Likewise.
3400
3401 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3402
3403 * app.c (mri_pseudo): Only declare for TC_M68K.
3404
3405 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3406 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3407 BFD_RELOC_16_BASEREL.
3408 (md_assemble): Likewise.
3409 (md_apply_fix3): Likewise.
3410
3411 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3412
3413 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3414 zero into an add of zero - it is not the same.
3415
3416 2002-05-01 Arati Dikey <aratid@kpit.com>
3417
3418 * tc-sh.c (get_specific): Generate warning if the same
3419 destination register is used in parallel instructions.
3420
3421 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3422
3423 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3424
3425 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3426
3427 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3428 backwards to prevent cascading errors.
3429
3430 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3431
3432 * configure.in: Add support for powerpc-*-windiss.
3433 * configure: Regenerated.
3434
3435 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3436
3437 * config/tc-s390.c (md_parse_option): Formatting.
3438
3439 * config/tc-i386.c: Formatting fixes, add missing space in error
3440 message.
3441
3442 2002-04-24 Christian Groessler <chris@groessler.org>
3443
3444 * config/tc-z8k.c (build_bytes): Add support for new cases:
3445 CLASS_IGNORE and ARG_NIM4.
3446 (md_assemble): Prevent destruction of input_line_pointer if
3447 get_operands returns failure.
3448
3449 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3450
3451 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3452 instructions to be generated by macros.
3453
3454 2002-04-24 Andreas Schwab <schwab@suse.de>
3455
3456 * config/tc-i386.c (output_jump, output_disp)
3457 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3458 more.
3459 (md_apply_fix3): Remember addend value for rela relocations.
3460 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3461
3462 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3463
3464 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3465 from previous change.
3466
3467 2002-04-22 Eric Christopher <echristo@redhat.com>
3468
3469 * config/tc-mips.c (macro_build): Add warning if macro instructions
3470 are expanded into a branch delay slot.
3471
3472 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3473
3474 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3475 numbers, gdb relies on them to detect the start of the prologue.
3476
3477 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3478
3479 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3480 symbols in merge sections.
3481
3482 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3483
3484 * as.c (main): Don't reference _bfd_chunksize.
3485
3486 2002-04-15 Tom Rix <trix@redhat.com>
3487
3488 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3489 symbols in merge sections.
3490
3491 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3492
3493 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3494 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3495 argument for the precision.
3496 (gen_to_words): Update accordingly.
3497
3498 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3499
3500 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3501 BFD_VERSION_STRING unavailable.
3502 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3503
3504 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3505
3506 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3507 symbol_used_in_reloc_p is true.
3508
3509 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3510 endian hosts.
3511
3512 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3513
3514 * dep-in.sed: Cope with absolute paths.
3515 * Makefile.am (dep.sed): Subst TOPDIR.
3516 Run "make dep-am".
3517 * Makefile.in: Regenerate.
3518
3519 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3520
3521 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3522 (mips_ip): Remove unused variable.
3523 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3524 unsigned char with bfd_byte.
3525 (s_file): Remove unused variable.
3526 (s_mips_ent): Likewise.
3527
3528 2002-04-03 Tom Rix <trix@redhat.com>
3529
3530 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3531 (build_insn): Same.
3532 (find_opcode): Fix warning in as_warn.
3533 * config/tc-d10v.h: Update Copyright.
3534
3535 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3536 Tom Rix <trix@redhat.com>
3537
3538 From Jeff Knaggs <jknaggs@redhat.com>
3539 * config/tc-d10v.c (check_resource_conflict): New function to
3540 check for resource conflicts.
3541
3542 From Jason Eckhardt <jle@redhat.com>
3543 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3544 imm3 fields.
3545 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3546 reserved control registers is used.
3547 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3548 imm3 fields.
3549
3550 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3551 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3552 instruction cannot be packed.
3553
3554 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3555 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3556 write-write conflicts.
3557 (md_assemble): Reformat introductory comment.
3558 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3559 arguments.
3560
3561 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3562
3563 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3564 O_logical_not>): Derive final_seg from add_symbol.
3565 <O_multiply..O_logical_or>: More final_seg twiddles.
3566
3567 2002-04-01 Jessica Han <jessica@cup.hp.com>
3568
3569 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3570 in 32-bit mode.
3571
3572 2002-03-27 Andreas Schwab <schwab@suse.de>
3573
3574 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3575 field for pc-relative fixups.
3576 (output_disp): Likewise.
3577 (md_estimate_size_before_relax): Likewise.
3578 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3579 pc-relative fixups in 64bit mode.
3580
3581 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3582
3583 * config/te-aix5.h: Typo fix.
3584
3585 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3586
3587 * Makefile.am: Run "make dep-am".
3588 * Makefile.in: Regenerate.
3589 * doc/Makefile.in: Regenerate.
3590
3591 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3592
3593 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3594 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3595
3596 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3597
3598 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3599 the EXTENDED bit here; report the estimate according to the
3600 current size.
3601
3602 2002-03-18 Tom Rix <trix@redhat.com>
3603
3604 * configure.in: Add AIX 5 support.
3605 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3606 * config/te-aix5.h: New file. AIX 5 support.
3607 * configure: Regenerate.
3608
3609 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3610
3611 * po/fr.po: Updated version.
3612
3613 2002-03-16 Andreas Jaeger <aj@suse.de>
3614
3615 * doc/c-mips.texi (Machine Dependencies): Add new node.
3616
3617 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3618
3619 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3620 (mips_opts): Initialize "ase_mips3d" member.
3621 (file_ase_mips3d): New variable.
3622 (CPU_HAS_MIPS3D): New macro.
3623 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3624 based on command line options and configuration defaults.
3625 (macro_build, mips_ip): Accept MIPS-3D instructions if
3626 mips_opts.ase_mips3d is set.
3627 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3628 Add support for "-mips3d" and "-no-mips3d" options.
3629 (OPTION_ELF_BASE): Move to accomodate new options.
3630 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3631 (mips_elf_final_processing): Add a comment indicating that a
3632 MIPS-3D ASE ELF header flag should be set, when one exists.
3633 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3634 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3635 nomips3d" directives.
3636
3637 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3638
3639 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3640 a weak symbol in same section to be within reach.
3641
3642 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3643
3644 * po/fr.po: Updated version.
3645
3646 2002-03-12 Andreas Schwab <schwab@suse.de>
3647
3648 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3649 body record so that an error is given for misplaced .save
3650 pseudo-ops.
3651
3652 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3653
3654 * config/tc-i386.h (REX_OPCODE): Define.
3655 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3656 (rex_byte): typedef to int.
3657 * config/tc-i386.c: Group prototypes and vars together.
3658 Formatting fixes. Remove occurrences of "register" keyword.
3659 (true): Delete.
3660 (false): Delete.
3661 (mode_from_disp_size): Add INLINE keyword to prototype.
3662 (fits_in_signed_byte): Likewise.
3663 (fits_in_unsigned_byte): Likewise.
3664 (fits_in_unsigned_word): Likewise.
3665 (fits_in_signed_word): Likewise.
3666 (fits_in_unsigned_long): Likewise.
3667 (fits_in_signed_long): Likewise.
3668 (type_names): Constify.
3669 (intel_float_operand): Constify param.
3670 (add_prefix): Use REX_OPCODE.
3671 (md_assemble): Likewise. Modify for changed rex_byte.
3672 (parse_insn): Split out of md_assemble.
3673 (parse_operands): Likewise.
3674 (swap_operands): Likewise.
3675 (optimize_imm): Likewise.
3676 (optimize_disp): Likewise.
3677 (match_template): Likewise.
3678 (check_string): Likewise.
3679 (process_suffix): Likewise.
3680 (check_byte_reg): Likewise.
3681 (check_long_reg): Likewise.
3682 (check_qword_reg): Likewise.
3683 (check_word_reg): Likewise.
3684 (finalize_imm): Likewise.
3685 (process_operands): Likewise.
3686 (build_modrm_byte): Likewise.
3687 (output_insn): Likewise.
3688 (output_branch): Likewise.
3689 (output_jump): Likewise.
3690 (output_interseg_jump): Likewise.
3691 (output_disp): Likewise.
3692 (output_imm): Likewise.
3693
3694 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3695
3696 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3697
3698 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3699
3700 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3701 relocs except when BFD64.
3702
3703 * write.c (number_to_chars_bigendian): Don't abort when N is
3704 larger than sizeof (VAL).
3705 (number_to_chars_littleendian): Likewise.
3706
3707 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3708
3709 * config/tc-hppa.c (md_apply_fix3): Add cast.
3710 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3711 e_rrsel.
3712
3713 2002-03-05 Paul Koning <pkoning@equallogic.com>
3714
3715 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3716 (parse_ac5): New function for parsing float regs in float operand.
3717 (parse_expression): Remove attempt to make literals be octal.
3718 (parse_op_no_deferred): Support float literals.
3719 (parse_op): Reject attempts to refer to float regs.
3720 (parse_fop): New function, like parse_op but for float operand.
3721 (md_assemble): Add cases to parse float operands. Also fix
3722 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3723
3724 2002-03-04 H.J. Lu <hjl@gnu.org>
3725
3726 * config/obj-elf.c (special_section): Add .init_array,
3727 .fini_array and .preinit_array.
3728
3729 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3730 .init_array and .fini_array.
3731
3732 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3733
3734 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3735 visibility.
3736 (obj_frob_symbol): Copy visibility.
3737
3738 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3739
3740 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3741 s_text.
3742 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3743
3744 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3745
3746 * po/es.po: Updated.
3747
3748 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3749
3750 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3751 only, undo the changes made on 2001-06-08, with the
3752 effect being that common or extern symbols are
3753 adjusted for embedded-PIC, but weak symbols are not.
3754 (md_estimate_size_before_relax: Likewise, with the effect
3755 that extern symbols are treated the same as weak symbols
3756 only if not embedded-PIC.
3757 (mips_fix_adjustable) Likewise, with the effect that
3758 weak or extern symbols are not adjusted for embedded-PIC.
3759 (md_apply_fix3): Tweak so that the case where value is zero
3760 is handled more correctly for embedded-PIC code.
3761
3762 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3763
3764 * doc/as.texinfo (Overview): Add missing @ifset IA64
3765
3766 * configure.in (LINGUAS): Add es.po.
3767 * configure: Regenerate.
3768 * po/es.po: New file.
3769
3770 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3771
3772 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3773 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3774 and NO_PIC cases. Code cleanup.
3775 (macro2): Fix handling of 64bit register loads.
3776
3777 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3778
3779 * doc/as.texinfo: Add entry for IA64.
3780 * doc/c-ia64.texi: New file.
3781
3782 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3783
3784 * config/tc-hppa.c: Update copyright date.
3785
3786 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3787 Remove references to chip manufacturers.
3788 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3789 Correct comments.
3790 (md_show_usage): Remove references to chip manufacturers. Mention
3791 -mpower4.
3792 (md_begin): Test power4 opcode flag bits.
3793
3794 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3795
3796 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3797 count exceeds prologue count.
3798 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3799 (unwind.label_prologue_count): New member.
3800
3801 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3802
3803 (get_saved_prologue_count): New function.
3804 (save_prologue_count): New function.
3805 (free_saved_prologue_count): New function.
3806 (dot_label_state): Record state label by calling save_prologue_count().
3807 (dot_copy_state): Restore prologue count by calling
3808 get_saved_prologue_count().
3809 (generate_unwind_image): Free up list of saved prologue
3810 counts by calling free_saved_prologue_counts().
3811
3812 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3813
3814 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3815 function declarations.
3816
3817 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3818
3819 * NEWS: Note that GASP is now deprecated.
3820 * Makefile.am: Do not build gasp-new by default.
3821 * Makefile.in: Regenerate.
3822 * doc/Makefile.am: Do not install gasp.info.
3823 * doc/Makefile.in: Regenerate.
3824 * gas/gasp.texi: Note that gasp is now deprecated.
3825
3826 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3827
3828 * NEWS: Mark 2.12 branch.
3829
3830 2002-02-19 Tom Tromey <tromey@redhat.com>
3831
3832 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3833
3834 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3835
3836 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3837 option input.
3838
3839 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3840
3841 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3842 Make bit size independent of architecture switch.
3843 (md_begin): Add warning for -m64 with -Aesa.
3844 (s390_md_end): Use renamed architecture defines.
3845
3846 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3847
3848 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3849
3850 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3851
3852 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3853 instead of CRIS.
3854
3855 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3856
3857 * config/tc-mips.c (md_estimate_size_before_relax): Really
3858 make sure we treat weak like extern only for ELF. (Fixes
3859 patch from 2001-07-25.)
3860
3861 2002-02-15 Ben Elliston <bje@redhat.com>
3862
3863 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3864 works as expected.
3865
3866 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3867
3868 * NEWS: Mention support for MMIX.
3869
3870 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3871
3872 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3873 a sequence of indpendent 'if' statements for easier debugging
3874 and future modification.
3875
3876 2002-02-13 Matt Fredette <fredette@netbsd.org>
3877
3878 * config/tc-m68k.c (md_show_usage): No longer display a
3879 hard-coded "68020" for the default CPU, instead display the
3880 canonical name of the true, configured default CPU.
3881 (m68k_elf_final_processing): Mark objects for sub-68020
3882 CPUs with the new EF_M68000 flag.
3883
3884 2002-02-13 Andreas Schwab <schwab@suse.de>
3885
3886 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3887 pc-relative relocations to merge sections in 64-bit mode.
3888
3889 2002-02-13 Ben Elliston <bje@redhat.com>
3890
3891 * NEWS: Document floating point number handling in gasp.
3892 * gasp.c: Include <assert.h> and "xregex.h".
3893 (is_flonum): New function.
3894 (chew_flownum): Likewise.
3895 (change_base): Consume flonums from the input, where possible.
3896 * doc/gasp.texi (Constants): Document floating point numbers.
3897
3898 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3899
3900 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3901 that implicitly use LR and RR selectors.
3902
3903 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3904
3905 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3906 and `epsw' as available on AM33 and above only.
3907 (other_register_name): Add logic to handle machine type encoded in
3908 reg_number.
3909
3910 2002-02-11 Tom Rix <trix@redhat.com>
3911
3912 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3913 xcoff64.
3914
3915 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3916
3917 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3918 Use all over.
3919
3920 2002-02-11 Jan Hubicka <jh@suse.cz>
3921
3922 * i386.c (md_assemble): Support 32bit address prefix.
3923 (i386_displacement): Likewise.
3924 (i386_index_check): Accept 32bit addressing in 64bit mode.
3925
3926 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3927
3928 * config/tc-sh.c (dot): Removed unused function.
3929
3930 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3931
3932 * Makefile.am: "make dep-am".
3933 * Makefile.in: Regenerate.
3934 * aclocal.m4: Regenerate.
3935 * config.in: Regenerate.
3936 * configure: Regenerate.
3937 * doc/Makefile.in: Regenerate.
3938
3939 2002-02-10 Richard Henderson <rth@redhat.com>
3940
3941 * doc/c-alpha.texi: New file.
3942 * doc/Makefile.am (CPU_DOCS): Add it.
3943 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3944
3945 2002-02-09 Richard Henderson <rth@redhat.com>
3946
3947 * config/tc-alpha.c (O_samegp): New.
3948 (USER_RELOC_P): Include it.
3949 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3950 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3951 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3952 (alpha_validate_fix): New.
3953 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3954
3955 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3956
3957 * doc/c-cris.texi: New.
3958 * doc/all.texi: @set CRIS.
3959 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3960 Include c-cris.texi.
3961 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3962 * doc/Makefile.in: Regenerate.
3963
3964 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3965
3966 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3967 determine if a number is a sign-extended 32-bit number.
3968 (load_register): Use IS_SEXT_32BIT_NUM.
3969 (macro): Check if load/store macro handling is using a
3970 constant 32-bit address on 64-bit address systems, and if
3971 so optimize the generation of that address.
3972
3973 2002-02-08 Richard Henderson <rth@redhat.com>
3974
3975 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3976 we've eliminated all foreign relocation types yet.
3977 (alpha_fix_adjustable): Likewise.
3978
3979 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3980
3981 Contribute sh64-elf.
3982 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3983 Stephen Clarke <Stephen.Clarke@st.com>
3984 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3985 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3986 * config/tc-sh.c (md_relax_table): Added default sizes for
3987 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3988 MOVI_16, MOVI_32 and MOVI_48.
3989 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3990 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3991 and MOVI_16.
3992 (shmedia_md_estimate_size_before_relax): Remove redundant
3993 blocks. Set fragP->fr_var even if relaxation type unchanged.
3994 Retain UNDEF_MOVI until expression decays to number.
3995 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3996 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3997 relocation types. Take fixP->fx_addnumber into account too.
3998 (shmedia_md_apply_fix): Likewise.
3999 (shmedia_md_convert_frag): Likewise.
4000 (shmedia_build_Mytes): Likewise.
4001 (sh64_consume_datalabel): Complain about nested datalabel.
4002 Support PIC relocs. Call sh_parse_name.
4003 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4004 in tc-sh.h to SHmedia reloc types.
4005 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4006 MOVI_GOTPC): New relaxation constants.
4007 (md_relax_table): Introduce relaxation directives for PIC-related
4008 constants.
4009 (sh_PIC_related_p): Handle datalabel.
4010 (sh_check_fixup): Choose SH5 PIC relocations.
4011 (sh_cons_fix_new): Added BDF_RELOC_64.
4012 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4013 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4014 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4015 current ISA is SHmedia, get 7 bytes.
4016 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4017 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4018 void function.
4019 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4020 shmedia_apply_fix3 and make void.
4021 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4022 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4023 as_bad.
4024 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4025 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4026 2001-03-14 DJ Delorie <dj@redhat.com>
4027 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4028 * doc/Makefile.in(CPU_DOCS): Ditto.
4029 * doc/c-sh64.texi: New file.
4030 * doc/as.texinfo: Add SH64 support.
4031 2001-03-13 DJ Delorie <dj@redhat.com>
4032 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4033 A_REUSE_PREV so that its purpose is more obvious.
4034 (shmedia_build_Mytes): Ditto.
4035 2001-03-07 DJ Delorie <dj@redhat.com>
4036 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4037 before processing.
4038 (sh64_vtable_inherit): Ditto.
4039 (strip_datalabels): New, strip "datalabel" from given line.
4040 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4041 pseudos.
4042 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4043 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4044 call ...
4045 (shmedia_build_Mytes): ... to here.
4046 2001-03-06 DJ Delorie <dj@redhat.com>
4047 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4048 is a generic one.
4049 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4050 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4051 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4052 address by one in call to dwarf2_emit_insn.
4053 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4054 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4055 alignment handling broken by imported changes.
4056 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4057 (sh64_handle_align): Declare.
4058 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4059 (sh64_max_mem_for_rs_align_code): Declare.
4060 (enum sh64_isa_values): Moved here from tc-sh64.c.
4061 (md_do_align): Define.
4062 (sh64_do_align): Declare.
4063 (struct sh64_tc_frag_data): New.
4064 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4065 changed.
4066 (TC_FRAG_INIT): Change to set new datatype.
4067 (struct sh64_segment_info_type): Rename member
4068 last_flushed_location to last_contents_mark. All users changed.
4069 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4070 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4071 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4072 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4073 of unsetting seen_insn.
4074 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4075 call sh64_update_contents_mark.
4076 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4077 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4078 enum sh64_isa_values.
4079 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4080 (emitting_crange): Boolean guard moved to file scope from function
4081 scope in sh64_set_contents_type.
4082 (s_sh64_abi): New.
4083 (sh64_update_contents_mark): New; most split out from
4084 sh64_flush_pending_output.
4085 (shmedia_md_end): Call sh64_update_contents_mark. Set
4086 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4087 (sh64_do_align): New function.
4088 (sh64_max_mem_for_rs_align_code): New function.
4089 (sh64_handle_align): Rename from shmedia_do_align. Make
4090 non-static. Add head comment. Emit zero bytes for n bytes modulo
4091 four. Change return-type to void.
4092 (shmedia_elf_new_section): Remove.
4093 (shmedia_md_assemble): Call sh64_update_contents_mark.
4094 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4095 new frag. Call sh64_update_contents_mark after making the new
4096 frag.
4097 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4098 and sh_flush_pending_output.
4099 (sh64_flag_output): Also call md_flush_pending_output, but add
4100 condition on not emitting_crange.
4101 (sh64_tc_cons_fix_new): Remove.
4102 2001-01-12 Nick Clifton <nickc@redhat.com>
4103 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4104 alignment handling scheme imported from sourceware.
4105 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4106 * config/tc-sh64.h (TARGET_FORMAT): Define.
4107 (sh64_target_format): Prototype.
4108 * config/tc-sh64.c (sh64_target_mach): New function.
4109 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4110 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4111 zero_address_frag instead of copying the frag of the symbol.
4112 (shmedia_frob_file_before_adjust): Ditto.
4113 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4114 to valueT to remove signedness.
4115 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4116 headers to output_bfd. Do not evaluate symbols if final is false;
4117 do emit fixups.
4118 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4119 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4120 to the current frag, call shmedia_md_convert_frag to emit fixups
4121 and make frag_wane neutralize the frag. Update comments.
4122 * config/tc-sh.c (md_convert_frag): Change caller of
4123 shmedia_md_convert_frag.
4124 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4125 * config/tc-sh64.h: Tweak comments and correct formatting.
4126 * config/tc-sh64.c: Ditto.
4127 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4128 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4129 for the no-relocation case.
4130 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4131 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4132 wrappers.
4133 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4134 comment.
4135 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4136 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4137 expansion.
4138 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4139 Correct comment.
4140 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4141 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4142 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4143 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4144 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4145 if reloc is emitted.
4146 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4147 New options plus bugfixes.
4148 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4149 "-expand-pt32".
4150 (md_parse_option): Handle new options.
4151 (md_show_usage): Add blurb for new options.
4152 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4153 (sh64_expand, sh64_pt32): New variables.
4154 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4155 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4156 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4157 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4158 <resolved previously-pc-relative relocs>: Handle
4159 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4160 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4161 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4162 points to SHcompact code.
4163 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4164 SH64PCREL16)>: Check that ISA of what operand points at and
4165 PTA/PTB matches, or emit error.
4166 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4167 SHMEDIA_BFD_RELOC_PT.
4168 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4169 operand.
4170 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4171 condition for MOVI expansion.
4172 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4173 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4174 sh64_expand.
4175 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4176 fixup.
4177 (sh64_target_format): Error-check setting of sh64_pt32 and
4178 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4179 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4180 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4181 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4182 * config/tc-sh64.c: Improve comments.
4183 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4184 not say the linker will check correctness of PTA/PTB expansion.
4185 (shmedia_md_end): Make non-static.
4186 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4187 prototype.
4188 * config/tc-sh.c (sh_finalize): Remove.
4189 * config/tc-sh.h (md_end): Do not define.
4190 Remove prototype for sh_finalize.
4191 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4192 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4193 sh64_section_data container when storing section type in tdata
4194 field in elf_section_data.
4195 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4196 EF_SH5.
4197 * Makefile.am: Update dependencies.
4198 * Makefile.in: Regenerate.
4199 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4200 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4201 dwarf2_emit_insn call with test on debug_type.
4202 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4203 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4204 CRT_SH5_ISA32 sticky for 64-bit.
4205 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4206 Generate .crange sections when switching ISA mode or emitting
4207 constants in same section as code.
4208 * config/tc-sh64.c: Reformat structure definitions.
4209 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4210 variables.
4211 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4212 to emit a .cranges descriptor when contents type changes. Only
4213 emit error if changing contents type and -no-mix is in effect.
4214 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4215 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4216 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4217 sh64_flush_last_crange over sections.
4218 When checking main symbol of datalabel symbol, check for
4219 STO_SH5_ISA32, not ISA type of section in definition.
4220 (shmedia_frob_file_before_adjust): Check main symbol for
4221 STO_SH5_ISA32; don't check ISA type of section in definition.
4222 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4223 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4224 .cranges entries have been output.
4225 (shmedia_elf_new_section): Just call md_flush_pending_output.
4226 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4227 fix. Do not set tc_segment_info_data.in_code for section. Call
4228 sh64_set_contents_type for SHmedia code.
4229 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4230 false. Call md_flush_pending_output.
4231 (sh64_target_format): Check that -no-mix and
4232 -shcompact-const-crange are used in sane combination with other
4233 options.
4234 (shmedia_md_pcrel_from_section): Check type of fix for how to
4235 adjust pc-relative.
4236 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4237 not ISA type of section in definition.
4238 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4239 hold contents-type state.
4240 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4241 (sh64_flush_pending_output): Declare.
4242 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4243 (sh64_tc_cons_fix_new): Declare.
4244 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4245 call sh64_flag_output.
4246 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4247 call sh64_set_contents_type to mark SHcompact code and set
4248 seen_insn.
4249 (md_longopts): New options "-no-mix" and
4250 "-shcompact-const-crange".
4251 (md_parse_option): Handle new options.
4252 (md_show_usage): Add blurb for new options.
4253 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4254 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4255 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4256 (sh64_last_insn_frag): New.
4257 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4258 to get frag for insn opcode for generating fixups; do not assume it
4259 is the same frag.
4260 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4261 for new insn.
4262 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4263 section.
4264 (TC_FRAG_TYPE): Define as fragS *.
4265 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4266 (sh64_last_insn_frag): Declare.
4267 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4268 not == NULL before dereferencing.
4269 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4270 Get rid of BFD section flag and EF_SH64_ABI64.
4271 * config/tc-sh64.c (shmedia_frob_section_type): Use
4272 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4273 communicate the section as containing SHmedia code. Describe why.
4274 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4275 EF_SH64 regardless of ABI.
4276 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4277 in error message. Handle resolved expressions for
4278 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4279 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4280 (shmedia_check_limits): Handle BFD_RELOC_64.
4281 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4282 a STO_SH5_ISA32 symbol, only the BFD value.
4283 2000-12-11 Ben Elliston <bje@redhat.com>
4284 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4285 dwarf2_generate_asm_lineno.
4286 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4287 Handle PC-relative MOVI expansions with assembler relaxation.
4288 Generate PC-relative relocs from 16-bit PC-relative expressions.
4289 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4290 (shmedia_md_pcrel_from_section): ...here.
4291 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4292 turned completely resolved. Adjust relocation type for 16-bit
4293 immediate operands that has turned PC-relative. Adjust back for
4294 MD_PCREL_FROM_SECTION being applied twice.
4295 (shmedia_md_convert_frag): Always emit reloc for expression with
4296 global or weak symbol. Handle relaxation result for PC-relative
4297 expressions.
4298 (shmedia_md_estimate_size_before_relax): An expression with a weak
4299 or global symbol can not be relaxed. Break out tests for
4300 relaxable symbol into variable sym_relaxable.
4301 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4302 UNDEF_MOVI)>: Break out any PC-relative expression and change
4303 relaxation type.
4304 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4305 opjp.
4306 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4307 MOVI expansion. If X_op_symbol of the immediate expression is
4308 set, make an expression symbol for the argument to frag_var.
4309 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4310 relaxations.
4311 (END): Adjust for new relaxations.
4312 (md_relax_table): Add entries for new relaxations.
4313 2000-12-07 Ben Elliston <bje@redhat.com>
4314 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4315 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4316 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4317 SHORI operand offsets in PT/PTA/PTB expansions.
4318 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4319 Implement DataLabel semantics.
4320 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4321 shmedia_frob_file_before_adjust.
4322 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4323 (DATALABEL_SUFFIX): Define.
4324 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4325 symbol list to update "datalabel" symbols to their main symbol
4326 counterparts.
4327 (shmedia_frob_file_before_adjust): New.
4328 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4329 undefined and set STT_DATALABEL.
4330 (sh64_frob_label): Initialize TC symbol field.
4331 (sh64_consume_datalabel): Actually implement semantics. New
4332 parameter operandf, call it instead of expression.
4333 (sh64_exclude_symbol): New.
4334 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4335 to sh64_consume_datalabel.
4336 (tc_symbol_new_hook): Define to tc_frob_symbol.
4337 (TC_SYMFIELD_TYPE): Define to symbolS *.
4338 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4339 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4340 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4341 case.
4342 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4343 generating dwarf2 debug information.
4344 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4345 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4346 elf64-sh64 for the 64-bit ABI.
4347 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4348 option.
4349 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4350 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4351 case-insensitivity.
4352 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4353 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4354 (enum sh64_abi_values): New type.
4355 (enum sh64_isa_values): New type.
4356 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4357 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4358 (sh64_abi): Replace shmedia_64.
4359 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4360 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4361 (s_sh64_mode): Check validity for this target.
4362 (sh64_target_format): Initialize defaults for ISA and ABI.
4363 Fallback to old object format if no SH64 ISA or ABI has been
4364 specified.
4365 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4366 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4367 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4368 * config/tc-sh64.h: Fix typo in comment.
4369 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4370 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4371 <PT fixups for absolute values>: Size will be longest, not
4372 shortest.
4373 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4374 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4375 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4376 and l1 to hold lowercase of two first characters. Change all
4377 remaining TO_LOWER to tolower.
4378 * config/tc-sh64.c (TO_LOWER): Delete.
4379 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4380 (md_parse_name): Define.
4381 (sh64_consume_datalabel): Declare.
4382 (DOLLAR_DOT): Define.
4383 * config/tc-sh64.c (shmedia_parse_exp): New.
4384 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4385 (shmedia_parse_reg): Remove const from src
4386 parameter.
4387 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4388 (shmedia_md_assemble): Ditto for op_end variable.
4389 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4390 Use shmedia_parse_exp, not parse_exp.
4391 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4392 parameter. All callers changed.
4393 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4394 callers changed.
4395 (shmedia_parse_reg): Put first two character in local variables.
4396 Use tolower, not TO_LOWER. If no register is found and argtype
4397 indicates a control register, scan shmedia_creg_table
4398 case-insensitive.
4399 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4400 * Makefile.am (CPU_TYPES): Add sh64.
4401 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4402 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4403 Regenerate dependencies.
4404 * Makefile.in: Regenerate.
4405 * configure.in: Add support for sh64-*-elf*.
4406 * configure: Regenerate.
4407 * config/tc-sh64.h: New.
4408 * config/tc-sh64.c: New.
4409 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4410 .mode, .isa and .uaquad.
4411 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4412 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4413 [HAVE_SH64] (END): Define as 10.
4414 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4415 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4416 MOVI_64): Define.
4417 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4418 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4419 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4420 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4421 Define.
4422 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4423 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4424 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4425 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4426 SHmedia instructions. Handle state-change after switching to
4427 SHcompact.
4428 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4429 (md_parse_option) [HAVE_SH64]: Parse new options.
4430 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4431 (md_convert_frag) [HAVE_SH64] <default>: Call
4432 shmedia_md_convert_frag instead of abort.
4433 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4434 BFD_RELOC_SH_SHMEDIA_CODE.
4435 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4436 SHcompact or SHmedia code.
4437 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4438 shmedia_md_apply_fix instead of abort.
4439 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4440 result from calling shmedia_md_estimate_size_before_relax instead
4441 of calling abort.
4442 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4443 do the work.
4444 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4445 shmedia_init_reloc and do nothing more if it returns non-zero.
4446 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4447 * po/POTFILES.in: Regenerate.
4448 * po/gas.pot: Regenerate.
4449
4450 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4451
4452 * config/tc-sh.c (parse_at): Install the correct version of
4453 2002-02-04's patch.
4454
4455 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4456 assume fixP->fx_subsy is non-NULL.
4457
4458 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4459
4460 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4461 A_DISP_PC_ABS, and adjust it by -4.
4462 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4463 expected.
4464 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4465 the operand type is not A_DISP_PC_ABS.
4466
4467 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4468
4469 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4470 common and weak symbols. Handle common and weak symbols as
4471 undefined symbols with regards to GREG handling and merging.
4472 (mmix_frob_file): Ditto.
4473
4474 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4475
4476 * configure.in (hppa-*-netbsd*): New target.
4477 * configure: Regenerate.
4478 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4479
4480 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4481
4482 * config/tc-v850.c: Add missing prototypes amd use old-style
4483 function definitions.
4484 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4485 (sdata_section tdata_section, zdata_section, sbss_section,
4486 tbss_section, zbss_section, rosdata_section, rozdata_section,
4487 scommon_section, tcommon_section, zcommon_section,
4488 call_table_data_section, call_table_text_section): Delete.
4489 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4490 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4491 v850_call_table_data, v850_call_table_text): Delete.
4492 (struct v850_seg_entry): New.
4493 (v850_seg_table): New.
4494 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4495 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4496 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4497 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4498 (do_v850_seg): New.
4499 (v850_seg): New.
4500 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4501 recording of alignment.
4502 (md_pseudo_table): Use v850_seg.
4503 (md_begin): Don't init .call_table_data and .call_table_text here.
4504 Set v850_seg_table bss entry.
4505
4506 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4507
4508 Support on-demand global register allocation by passing on
4509 base-plus-offset relocs to the linker.
4510 * config/tc-mmix.c: Tweak and fix typos in comments.
4511 (allocate_undefined_gregs_in_linker): New variable.
4512 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4513 (md_longopts): Add --linker-allocated-gregs.
4514 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4515 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4516 (md_show_usage): Update text for -x. Add text for
4517 --linker-allocated-gregs.
4518 (tc_gen_reloc): Derive default value for addend from val and
4519 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4520 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4521 GREG if allocate_undefined_gregs_in_linker.
4522 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4523 --linker-allocated-gregs.
4524 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4525 --linker-allocated-gregs. Mention that it's implied by -x.
4526 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4527 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4528
4529 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4530
4531 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4532
4533 * Makefile.am: Run "make dep-am"
4534 * Makefile.in: Regenerate.
4535
4536 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4537
4538 * config/tc-or32.c: New file.
4539 * config/tc-or32.h: New file.
4540 * configure.in: Add support for or32 targets.
4541 * configure: Regenerate.
4542 * config/obj-coff.c: Add support for or32 targets.
4543 * config/obj-coff.h: Add support for or32 targets.
4544 * Makefile.am: Add support for or32 targets.
4545 * Makefile.in: Regenerate.
4546 * NEWS: Mention support for OpenRISC.
4547 * doc/Makefile.in: Regenerate.
4548 * po/POTFILES.in: Regenerate.
4549 * po/gas.pot: Regenerate.
4550
4551 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4552
4553 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4554 and mod.
4555
4556 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4557
4558 * config/tc-mips.c (tc_gen_reloc): Arrange for
4559 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4560 their LO16 parts, even for ELF.
4561
4562 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4563
4564 * config/tc-i386.c: Protect definitions of true and false
4565 from redefinition.
4566
4567 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4568
4569 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4570 made because of .weak, if they are neither defined nor used in any
4571 way.
4572
4573 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4574
4575 * configure: Regenerated.
4576
4577 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4578
4579 * doc/Makefile.am (install): Depend on install-info.
4580 * doc/Makefile.in: Regenerate.
4581
4582 2002-01-26 Nick Clifton <nick@redhat.com>
4583
4584 * po/fr.po: Updated version
4585
4586 2002-01-24 Kazu Hirata <kazu@hxi.com>
4587
4588 * config/tc-h8300.c (check_operand): Don't print a warning
4589 when a valid 24-bit address is given to a 16-bit address
4590 operand.
4591
4592 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4593
4594 * config/tc-sh.c (sh_elf_suffix): Removed.
4595 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4596 sh_end_of_match, sh_parse_name): New functions.
4597 (sh_elf_cons): Simplify.
4598 (parse_exp): Reject misplaced PIC operands.
4599 (md_undefined_symbol): Simplify.
4600 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4601 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4602 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4603 Complain if subsy remains at the end.
4604 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4605 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4606
4607 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4608
4609 * config/tc-mn10300.c (xr_registers): Move `pc'...
4610 (other_registers): ... here.
4611
4612 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4613
4614 * Makefile.am: Run "make dep-am".
4615 * Makefile.in: Regenerate.
4616 * gas/po/POTFILES.in: Regenerate.
4617
4618 2002-01-21 DJ Delorie <dj@redhat.com>
4619
4620 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4621 stabstr_name allocation permanent, as it will be referenced from
4622 the section hash.
4623
4624 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4625
4626 * configure.in (ia64-*-netbsd*): New target.
4627 * configure: Regenerate.
4628
4629 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4630
4631 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4632 to @dots call.
4633 <Detailed description, ARM options>: Ditto.
4634 * doc/c-arm.texi (ARM Options): Ditto.
4635
4636 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4637
4638 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4639 do_mia, do_mar and do_mra respectively.
4640 (do_mav_*): Renamed from do_c_*.
4641 (mav_reg_required_here, mav_parse_offset): Renamed from
4642 cirrus_reg_required_here and cirrus_parse_offset respectively.
4643 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4644
4645 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4646 Keith Walker <keith.walker@arm.com>
4647
4648 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4649 (insns): Add pattern for bxj instruction.
4650 (do_bxj): New function.
4651 (arm_cpus): Add arm926ej.
4652 (arm_archs): Add armv5tej.
4653
4654 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4655
4656 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4657
4658 2002-01-19 Keith Walker <keith.walker@arm.com>
4659
4660 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4661
4662 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4663
4664 * NEWS: Mention new ARM command-line options and VFP support.
4665
4666 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4667 uses changed.
4668 (ARM_CEXT_MAVERICK): Similarly.
4669 (ARM_ANY): Now means any core instruction.
4670 (CPU_DEFAULT): Default to ARM_ANY.
4671 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4672 (pic_code): Declare for all object types. Make type int.
4673 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4674 (march_fpu_opt, mfpu_opt): Declare.
4675 (md_longopts): Tidy up conditional definitions.
4676 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4677 (arm_long_opts): New tables.
4678 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4679 (arm_parse_extension): New function.
4680 (md_parse_option): Rewrite using new table-driven system.
4681 (md_show_usage): Use new table-driven system.
4682 (md_begin): Calculate cpu_variant from command line option data.
4683 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4684 command-line options.
4685 * doc/c-arm.texi: Likewise.
4686
4687 2002-01-18 Andreas Jaeger <aj@suse.de>
4688
4689 * as.c (parse_args): Update year.
4690
4691 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4692
4693 * config/tc-tic54x.c (encode_address): Add a more informative
4694 warning about incorrect syntax.
4695
4696 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4697
4698 * po/gas.pot: Regenerate.
4699
4700 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4701
4702 * macro.c (get_any_string): Add no-c-format comment to prevent
4703 confusion when translating string.
4704 * gasp.c (get_any_string): Add no-c-format comment to prevent
4705 confusion when translating string.
4706
4707 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4708 Johannes Stezenbach <js@convergence.de>
4709 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4710 matched before the shorter ones.
4711 (my_getSmallParser): Fix handling of nested parentheses in
4712 percent_op's. Code cleanup.
4713 (my_getPercentOp): New function, code from my_getSmallParser.
4714 (my_getSmallExpression): Fix handling of closing parentheses.
4715 Code cleanup. Better comments.
4716
4717 2002-01-16 Nick Clifton <nickc@redhat.com>
4718
4719 po/tr.po: New file: Turkish translation.
4720 configure.in (LINGUAS): Add "tr".
4721 configure: Regenerate.
4722
4723 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4724
4725 Support for VFP instructions
4726 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4727 (cp_address_required_here): New argument wb_ok. When false, do not
4728 accept write-back forms of addressing. Change all callers.
4729 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4730 (FPU_VFP_EXT_V2): Define.
4731 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4732 Define in terms of above.
4733 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4734 (vfp_reg): New struct.
4735 (vfp_regs): New array of registers.
4736 (insns): Add VFP instructions.
4737 (sn_table): New array of VFP single-precision register names.
4738 (dn_table): New array of VFP double-precision register names.
4739 (all_reg_maps): Add the new register tables.
4740 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4741 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4742 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4743 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4744 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4745 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4746 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4747 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4748 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4749 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4750 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4751 (do_vfp_sp_dp_cvt): New functions.
4752 (md_begin): Set soft-float flag for appropriate VFP work.
4753 (md_atof): Handle VFP-format doubles.
4754 (md_parse_option): Handle VFP command-line options.
4755 (md_show_usage): Display VFP command-line options.
4756
4757 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4758
4759 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4760 various command line options.
4761
4762 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4763
4764 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4765 vtinherit relocs.
4766 (xstormy16_md_apply_fix3): Do not return a value.
4767
4768 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4769
4770 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4771 the -EL/-EB option that matches the target's endianness.
4772 (md_parse_option): Likewise.
4773
4774 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4775
4776 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4777 is not dependent on ARM_BI_ENDIAN.
4778
4779 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4780
4781 * tc-arm.c (all error messages): Normalize capitalization of messages.
4782
4783 * tc-arm.h (md_operand): Delete define.
4784 * tc-arm.c (in_my_get_expression): New static variable.
4785 (my_get_expression): Set and clear it.
4786 (md_operand): New function. If called from my_get_expression
4787 put the error in inst.error.
4788 (output_inst): Now takes argument of instruction being assembled.
4789 Print it out with any error message.
4790 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4791 with '=' syntax.
4792 (end_of_line): Don't update inst.error if it is already set.
4793
4794 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4795
4796 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4797 op that can be translated into a mvn instruction.
4798
4799 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4800
4801 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4802 setting default md.flags.
4803 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4804 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4805 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4806 for 32 bit unwind info blocks.
4807 (generate_unwind_image): Add support for different types
4808 of unwind images (32 bits and/or big-endian).
4809 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4810 (ia64_target_format): Add support for hpux target formats.
4811 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4812 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4813 SHT_FINI_ARRAY elf section types.
4814
4815 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4816
4817 * tc-arm.c (struct reg_entry): Move before prototypes.
4818 (int_register, cp_register, fp_register): Delete.
4819 (reg_table): Delete. Replaced with ...
4820 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4821 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4822 (mav_dspsc_table): ... one table per register set.
4823 (arm_reg_hsh): Delete.
4824 (struct reg_map): New structure.
4825 (all_reg_maps): New array.
4826 (enum arm_reg_type): New enums.
4827 (build_reg_hsh): New function.
4828 (insert_reg_alias): Use hash table passed by caller. Adjust all
4829 callers.
4830 (create_register_alias): New function, split out from ...
4831 (md_assemble): ... here.
4832 (md_begin): Build new register hash tables.
4833 (arm_reg_parse): New argument for the hash table to search. Adjust all
4834 callers.
4835 (arm_reg_parse_any): New function.
4836 (co_proc_number): Look up the processor number in the processor hash
4837 table.
4838 (cirrus_regtype): Delete.
4839 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4840 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4841 (ARM_EXT_MAVERICKsc_register): Delete.
4842 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4843 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4844 functions.
4845 (do_c_triple_4, do_c_triple_5): Delete.
4846 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4847 (do_c_quad_6): Delete.
4848 (do_c_quad_6[ab]): New functions.
4849 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4850 arguments to use new register parsing methods.
4851 (cirrus_reg_required_here): Likewise.
4852 (insns): Reclassify cirrus maverick worker functions.
4853 (cirrus_valid_reg): Delete.
4854
4855 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4856
4857 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4858 (sh*-*-netbsdelf*): New target.
4859 * configure: Regenerate.
4860 * tc-sh.h: Update copyright years.
4861 (TARGET_FORMAT): Add version for TE_NetBSD.
4862
4863 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4864
4865 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4866 negative.
4867
4868 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4869
4870 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4871 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4872
4873 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4874
4875 * tc-mips.c (mips_cprestore_valid): New flag.
4876 (mips_frame_reg_valid): New flag.
4877 (macro) [M_JAL_2]: Check both flags.
4878 [M_JAL_A]: Likewise.
4879 (s_cprestore): Set mips_cprestore_valid.
4880 (tc_get_register): If setting mips_frame_reg, set
4881 mips_frame_reg_valid and clear mips_cprestore_valid.
4882 (s_mips_ent): Clear both flags.
4883 (s_mips_end): Clear both flags.
4884
4885 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4886
4887 * write.c (write_object_file): Make use of bfd_section_list_remove.
4888 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4889 * config/tc-mmix.c (mmix_frob_file): Likewise.
4890
4891 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4892
4893 * configure.in (i386-*-netbsdelf*): Collapse target into...
4894 (i386-*-netbsd*): ...this. Add support for x86-64.
4895 * configure: Regenerated.
4896
4897 2002-01-03 matthew green <mrg@redhat.com>
4898
4899 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4900
4901 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4902
4903 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4904 NULL frag link.
4905
4906 For older changes see ChangeLog-0001
4907 \f
4908 Local Variables:
4909 mode: change-log
4910 left-margin: 8
4911 fill-column: 74
4912 version-control: never
4913 End: