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