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