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