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