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