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