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