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