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