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