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