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