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