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