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