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