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