* as.c: Replace CONST with const.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
5a38dc70
AM
12002-06-08 Alan Modra <amodra@bigpond.net.au>
2
3 * as.c: Replace CONST with const.
4 * write.c: Likewise.
5 * config/obj-coff.c: Likewise.
6 * config/tc-a29k.c: Likewise.
7 * config/tc-arm.c: Likewise.
8 * config/tc-dlx.c: Likewise.
9 * config/tc-h8300.c: Likewise.
10 * config/tc-h8500.c: Likewise.
11 * config/tc-i370.c: Likewise.
12 * config/tc-i860.c: Likewise.
13 * config/tc-i960.c: Likewise.
14 * config/tc-m68hc11.c: Likewise.
15 * config/tc-m68k.c: Likewise.
16 * config/tc-m88k.c: Likewise.
17 * config/tc-mcore.c: Likewise.
18 * config/tc-mips.c: Likewise.
19 * config/tc-ns32k.c: Likewise.
20 * config/tc-pdp11.c: Likewise.
21 * config/tc-pj.c: Likewise.
22 * config/tc-s390.c: Likewise.
23 * config/tc-sh.c: Likewise.
24 * config/tc-sparc.c: Likewise.
25 * config/tc-tahoe.c: Likewise.
26 * config/tc-tic80.c: Likewise.
27 * config/tc-v850.c: Likewise.
28 * config/tc-vax.c: Likewise.
29 * config/tc-w65.c: Likewise.
30 * config/tc-z8k.c: Likewise.
31
c5dd6aab
DJ
322002-06-08 Daniel Jacobowitz <drow@mvista.com>
33
34 Based on patch from Matt Green:
35 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
36 * config/tc-mips.c (s_mips_file): Renamed from s_file.
37 (s_mips_loc): New function.
38 (mips_nonecoff_pseudo_table): Call them.
39 (append_insn): Call dwarf2_emit_insn.
40
a4672219
TS
412002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
42
43 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
44 to -1.
45 (file_ase_mips16): New veriable.
46 (mips_eabi64): Remove.
47 (CPU_HAS_MIPS16): New define.
48 (CPU_HAS_MDMX): Fix data type.
49 (md_begin): Code cleanup. Use file_ase_mips16.
50 (mips_elf_final_processing): Handle mips16 header flag.
51 Handle EABI flag without intermediate variable.
52
437ee9d5
TS
532002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
54
55 * doc/as.texinfo: Update MIPS documentation.
56
85b51719
TS
572002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
58
59 * config/tc-mips.c: Add define for $zero register.
60 (md_begin): Add $zero as alias name for $0.
61 (insn_uses_reg): Use ZERO define.
62 (mips_ip): Add $zero as alias name for $0.
63 (mips16_ip): Likewise.
64 (s_cplocal): Demand empty rest of input line.
65 (tc_get_register): Likewise. Add support for $kt0, kt1 register
66 names. Use ZERO define. Fix input_line_pointer progress.
67
9758f3fc
AM
682002-06-07 Alan Modra <amodra@bigpond.net.au>
69
70 * symbols.c: Replace CONST by const throughout.
71 (symbol_find_exact): Split out from..
72 (symbol_find_base): ..here.
73 * symbols.h: Replace CONST by const throughout.
74 (symbol_find_exact): Declare.
75 * config/obj-elf.c: #include "struc-symbol.h".
76 (elf_frob_file): If group name matches an exported symbol, use that
77 symbol for the signature and ".group" as the section name.
78
9691d64f
JR
79Thu Jun 6 17:42:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
80
81 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
82 but warn about it.
83 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
84 * testsuite/gas/sh/pcrel.d: Update.
85 * testsuite/gas/sh/pcrel.l: New file.
86
ffdefa66
DJ
872002-06-06 Daniel Jacobowitz <drow@mvista.com>
88
89 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
90 and mips_opts.ase_mdmx if they are uninitialized.
91
ec8b3afd
JL
922002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
93
94 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
95 (hppa_force_relocation): Check if a stub just before the start symbol
96 of the last call_info is reachable before forcing relocation. Fix
97 typo.
98
e9670677
MR
992002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
100
101 * config/tc-mips.c (mips_after_parse_args): New function.
102 (md_begin): Move processing of defaults to mips_after_parse_args.
103 config/tc-mips.h (md_after_parse_args): Define.
104
5b0e55b6
JT
1052002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
106
107 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
108 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
109 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
110 * configure: Regenerate.
111 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
112 environment.
113
a074e149
JT
1142002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
115
116 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
117
d2dab548
AM
1182002-06-04 Alan Modra <amodra@bigpond.net.au>
119
120 * config/obj-elf.c (obj_elf_change_section): Set and check elf
121 linkonce flag. Print all warnings.
122 (obj_elf_section): Parse ",comdat" for groups.
123 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
124 consistency of comdat flag.
125
20e130e9
RH
1262002-06-02 Richard Henderson <rth@redhat.com>
127
128 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
129 with LITERALs without sequence numbers.
130
9e756d64
RH
1312002-06-01 Richard Henderson <rth@redhat.com>
132
133 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
134 Rename them LITUSE_ALPHA_*.
135
3048287a
NC
1362002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
137
138 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
139 accept parentheses enclosed register lists.
140
194b5210
AM
1412002-05-31 Alan Modra <amodra@bigpond.net.au>
142
143 * Makefile.am: Run "make dep-am".
144 * Makefile.in: Regenerate.
145 * po/POTFILES.in: Regenerate.
146
34e97952
AM
1472002-05-31 Graeme Peterson <gp@qnx.com>
148
149 * configure.in: Add i386-*-nto-qnx*.
150 * configure: Regenerate.
151
793b27f4
TS
1522002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
153
154 * config/tc-mips.c (mips_ip): Use unsigned long values for
155 warning output.
156
80245285
TS
1572002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
158
159 * config/tc-mips.c (s_cpsetup): Fix initialization of
160 mips_cpreturn_register and mips_cpreturn_offset.
161
698b7d9d
TS
1622002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
163
164 * config/tc-mips.c (s_cpsetup): Fix comment.
165
76db943d
TS
1662002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
167
168 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
169 (mips_ip): Likewise.
170 (mips16_ip): Likewise.
171 (tc_get_register): Likewise.
172
deec1734
CD
1732002-05-30 Chris G. Demetriou <cgd@broadcom.com>
174 Ed Satterthwaite <ehs@broadcom.com>
175
176 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
177 (mips_opts): Initialize "ase_mdmx" member.
178 (file_ase_mdmx): New variable.
179 (CPU_HAS_MDMX): New macro.
180 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
181 based on command line options and configuration defaults.
182 (macro_build): Note in comment that use of MDMX in macros is
183 not currently allowed.
184 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
185 "Z" MDMX operand types.
186 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
187 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
188 types.
189 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
190 Add support for "-mdmx" and "-no-mdmx" options.
191 (OPTION_ELF_BASE): Move to accomodate new options.
192 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
193 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
194 file_ase_mdmx was set.
195 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
196 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
197 nomdmx" directives.
198
9ee72ff1
TS
1992002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
200
201 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
202 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
203 command line switch conforming to gcc conventions.
204 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
205
438c16b8
TS
2062002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
207
208 * config/tc-mips.c (macro_build_jalr): New Function.
209 (md_begin): NewABI uses big GOTs.
210 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
211 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
212 (load_address): Add some NewABI PIC support.
213 (macro): Likewise.
214 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
215 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
216
f7ea7ef2
TS
2172002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
218
219 * config/tc-mips.c (load_address): Use mips_gp_register instead
220 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
221 instead.
222 (macro): Use mips_gp_register instead of hardcoded value.
223
3765b1be
RH
2242002-05-30 Richard Henderson <rth@redhat.com>
225
226 * expr.h (operatorT): Add O_md17..O_md32.
227 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
228 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
229 O_tprelhi, O_tprello, O_tprel): New.
230 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
231 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
232 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
233 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
234 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
235 (md_apply_fix3): Handle TLS relocations.
236 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
237 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
238 associated TLS reloc. Check lituse_tls relocs match up.
239 (emit_insn): Handle TLS relocations.
240 (ldX_op): Remove.
241
1c5cec28
RH
242 * doc/c-alpha.texi: Add docs for tls relocations.
243
def2e0dd
TS
2442002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
245
246 * config/tc-mips.c (mips_gprel_offset): New variable.
247 (s_gpvalue): Use it.
248
8ade06a8
TR
2492002-05-30 Diego Novillo <dnovillo@redhat.com>
250
251 * gas/config/tc-d10v.c (check_resource_conflict): Only check
252 write-write conflicts.
253 (md_assemble): Reformat introductory comment.
254 (parallel_ok): Prevent packing only if the first
255 instruction cannot be packed.
256
2572002-05-30 Jason Eckhardt <jle@redhat.com>
258 Tom Rix <trix@redhat.com>
259
260 * config/tc-d10v.c (build_insn): Check for immediates.
261
c9914766
TS
2622002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
263
264 * config/tc-mips.c: Replace GP in comments by $gp.
265 (mips_big_got): Initialize.
266 (mips_trap): Initialize.
267 (load_address): Use mips_gp_register instead of hardcoded value.
268 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
269 (macro): Use mips_gp_register instead of hardcoded value.
270 (macro2): Change load_address calls.
271 (md_pcrel_from): Comment formatting.
272 (s_cpload): Use mips_gp_register instead of hardcoded value.
273 (s_cprestore): Likewise. Comment formatting.
274 (s_gpword): Fix data type.
275 (s_cpadd): Use mips_gp_register instead of hardcoded value.
276 (nopic_need_relax): Replace GP in comments by $gp.
277 (mips_elf_final_processing): Better comment.
278
d172d4ba
NC
2792002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
280
281 * configure.in: Add DLX configuraton
282 * Makefile.am: Add DLX configuraton
283 * configure: Regenerate.
284 * Makefile.in: Regenerate.
285 * config/tc-dlx.c: New file.
286 * config/tc-dlx.h: New files.
52216602 287 * NEWS: Mention new support.
d172d4ba 288
e9732b6d
NC
2892002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
290
291 * config/obj-coff.c (write_object_file): Add missing semicolon.
292
f9419b05
TS
2932002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
294
295 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
296 by the define. Remove superfluous check of mips_opts.mips16.
297 (append_insn): Likewise. Canonicalize variable increments.
298 (macro_build): Canonicalize variable increments.
299 (macro_build_lui): Likewise.
300 (load_register): Likewise.
301 (load_address): Move pointer initialization.
302 (macro): Move pointer to a more local scope. Canonicalize variable
303 increments. Better comments. Replace magic constant for RA by the
304 define.
305 (macro2): Replace magic constant for RA by the define. Canonicalize
306 variable increments.
307 (mips_ip): Canonicalize variable increments.
308 (mips16_ip): Replace magic constant for RA by the define.
309 (my_getSmallParser): Canonicalize variable increments/decrements.
310 (my_getPercentOp): Likewise.
311 (my_getSmallExpression): Likewise.
312 (s_align): Likewise.
313 (s_mipsset): Likewise.
314 (s_cpsetup): Likewise.
315 (s_insn): Remove superfluous check of mips_opts.mips16.
316 (s_mips_stab): Likewise.
317 (mips_handle_align): Canonicalize variable increments.
318 (s_mips_ent): Likewise.
319 (s_mips_end): Add comment.
320
aa501e5c
JT
3212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
322
323 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
324 * configure: Regenerate.
325
29589b0c
AM
3262002-05-25 Alan Modra <amodra@bigpond.net.au>
327
328 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
329 * Makefile.in: Regenerate.
330 * dep-in.sed: Reorder to match OBJS in Makefile.am.
331 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
332 * configure: Regenerate.
333 * as.h: Use #include "" instead of <> for local header files.
334 * flonum-konst.c: Likewise.
335 * flonum-mult.c: Likewise.
336 * gasp.c: Likewise.
337 * listing.c: Likewise.
338 * config/tc-ia64.h: Likewise.
339 * config/tc-v850.h: Likewise.
340
436e8db0
NC
3412002-05-24 TAMURA Kent <kent@netbsd.org>
342
343 * configure.in: Add a target for i386-netbsdpe.
344 * configure: Regenerate.
345
13ae64f3
JJ
3462002-05-23 Jakub Jelinek <jakub@redhat.com>
347
348 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
349 (obj_elf_common): Call elf_common.
350 (obj_elf_tls_common): New function.
351 (elf_pseudo_tab): Support .tls_common.
352 (special_sections): Add .tdata and .tbss.
353 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
354 sections.
355 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
356 (obj_elf_parse_section_letters): Include T in error message.
357 * config/tc-ppc.c (ppc_section_letter): Likewise.
358 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
359 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
360 SEC_MERGE.
361 * config/tc-sparc.c (md_apply_fix3): Likewise.
362 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
363 Define them if not BFD_ASSEMBLER.
364 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
365 and @NTPOFF.
366 (md_apply_fix3): Add TLS relocs.
367 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
368 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
369 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
370 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
371 (ia64_elf_section_letter): Include T in error message.
372 (md_begin): Support TLS operators.
373 (md_operand): Likewise.
374 (ia64_gen_real_reloc_type): Support TLS relocs.
375 * testsuite/gas/i386/tlspic.s: New file.
376 * testsuite/gas/i386/tlsd.s: New file.
377 * testsuite/gas/i386/tlsnopic.s: New file.
378 * testsuite/gas/i386/tlsd.d: New file.
379 * testsuite/gas/i386/tlsnopic.d: New file.
380 * testsuite/gas/i386/tlspic.d: New file.
381 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
382 * testsuite/gas/ia64/tls.s: New file.
383 * testsuite/gas/ia64/tls.d: New file.
384 * testsuite/gas/ia64/ia64.exp: Add tls test.
385 * write.c (adjust_reloc_syms): Don't change symbols in
386 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
387
c62e1cc3
NC
3882002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
389
390 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
391 round the relocation up rather than down.
392
6ff96af6
NC
3932002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
394
395 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
396 flag.
397 * doc/as.texinfo: Document that the COFF version of .section
398 ignores the 'a' flag.
399
18e1d487
AM
4002002-05-23 Alan Modra <amodra@bigpond.net.au>
401
69108c1f
AM
402 * config/tc-alpha.c (assemble_tokens): Protect use of
403 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
404
18e1d487
AM
405 * write.c (size_seg): Check adjustment to last frag.
406 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
407 section alignment.
408 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
409 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
410 (write_object_file): Invoke md_do_align if available, and use
411 frag_align_code on text sections.
412 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
413 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
414 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
415 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
416 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
417 BFD_ASSEMBLER too.
418
9d66a1d9
L
4192002-05-22 H.J. Lu <hjl@gnu.org>
420
421 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
422 for source file.
423
76feaaf3
NC
4242002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
425
426 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
427 as ELF builds.
428
1080e97d
L
4292002-05-22 H.J. Lu <hjl@gnu.org>
430
431 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
432 for one .loc for compiler.
433
c90bbe5b
TS
4342002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
435
436 * config/tc-mips.c (macro): Relax warning, it's toot strict for
437 embedded-PIC.
438
771c7ce4
TS
4392002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
440
441 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
442 Optimize the rotate by zero case.
443
fa70f2ed
NC
4442002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
445
446 * configure.in: Remove accidental enabling of bfd_gas=yes for
447 sh-coff targets.
448 * configure: Regenerate.
449
411863a4
KH
4502002-05-18 Kazu Hirata <kazu@cs.umass.edu>
451
452 * app.c: Fix formatting.
453 * as.c: Likewise.
454 * ehopt.c: Likewise.
455 * expr.c: Likewise.
456 * input-file.c: Likewise.
457 * listing.c: Likewise.
458 * macro.h: Likewise.
459 * stabs.c: Likewise.
460 * symbols.c: Likewise.
461
eb268f46
AM
4622002-05-17 Alan Modra <amodra@bigpond.net.au>
463
464 * config/obj-generic.c: Delete file.
465 * config/obj-generic.h: Likewise.
466
bdfdba87
MM
4672002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
468
469 * config/tc-avr.c (mcu_types): Update for new devices.
470
3bec30a8
TS
4712002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
472
473 * config/tc-mips.c (macro): Warn about wrong la/dla use.
474
8586fc66
TS
4752002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
476
477 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
478 worked sometimes by accident. Fix copy&paste comment.
479
195325d2
TS
4802002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
481
482 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
483 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
484 (mips_elf_final_processing): Let n32 use .reginfo.
485
4db1a35d
TS
4862002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
487
488 * config/tc-mips.c (append_insn): Fix too small range of variable.
489
7f367f01
NC
4902002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
491
492 * config/tc-arm.c (arm_cleanup): Remove redundant call to
493 listing_prev_line().
494
7193a0e7
NC
4952002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
496
f5b4e9e4
NC
497 * config/tc-arm.c (md_assemble): Remove redundant call to
498 listing_prev().
499
b6675117
NC
500 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
501 loc_directive_seen.
502
7193a0e7
NC
503 * stabs.c (s_stab_generic): Fix grammatical error in warning
504 message.
505
50b31228
AM
5062002-05-13 Alan Modra <amodra@bigpond.net.au>
507
508 * write.c (subsegs_finish): Don't specially align last subseg.
509
cce5a618
NC
5102002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
511
6360824b
NC
512 * stabs.c (s_stab_generic): Warn about a description field that is
513 too big.
514
f8e42b8c
NC
515 * config/obj-coff.c: Fix compile time warnings when compiling
516 without BFD_ASSEMBLER defined.
517 Fix formatting.
518
cce5a618
NC
519 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
520 target.
521 (md_pcrel_from_section): Use md_pcrel_from().
522
d7c310c2
NC
5232002-05-11 Bruno Haible <bruno@clisp.org>
524
525 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
526 by dwarf2_directive_loc, instead of calling dwarf2_where.
527
5d6255fe
KH
5282002-05-11 Kazu Hirata <kazu@cs.umass.edu>
529
530 * config/obj-coff.h: Fix formatting.
531 * config/tc-mcore.c: Likewise.
532 * config/tc-mn10300.c: Likewise.
533 * config/tc-openrisc.c: Likewise.
534 * config/tc-or32.c: Likewise.
535 * config/tc-pdp11.c: Likewise.
536 * config/tc-ppc.c: Likewise.
537 * config/tc-ppc.h: Likewise.
538 * config/tc-sh64.c: Likewise.
539 * config/tc-sh.c: Likewise.
540 * config/tc-tic54x.c: Likewise.
541 * config/tc-xstormy16.c: Likewise.
542 * config/tc-xstormy16.h: Likewise.
543
cc8a6dd0
KH
5442002-05-09 Kazu Hirata <kazu@cs.umass.edu>
545
546 * config/obj-coff.c: Fix formatting.
547 * config/obj-elf.c: Likewise.
548 * config/tc-alpha.c: Likewise.
549 * config/tc-arm.c: Likewise.
550 * config/tc-d10v.c: Likewise.
551 * config/tc-d30v.c: Likewise.
552 * config/tc-h8300.c: Likewise.
553 * config/tc-hppa.c: Likewise.
554
412167cb
AM
5552002-05-09 Alan Modra <amodra@bigpond.net.au>
556
557 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
558 reloc when no_cond_jump_promotion.
559
91975467
JW
5602002-05-08 Jim Wilson <wilson@redhat.com>
561
562 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
563 current variable part of frag.
564
a1b6236b
KH
5652002-05-08 Kazu Hirata <kazu@cs.umass.edu>
566
567 * config/tc-mmix.c: Fix formatting.
568 * config/tc-mmix.h: Likewise.
569
c8615825
AM
5702002-05-08 Alan Modra <amodra@bigpond.net.au>
571
572 * configure: Regenerate.
573
8a104df9
KH
5742002-05-07 Kazu Hirata <kazu@cs.umass.edu>
575
576 * config/tc-m68k.c: Fix formatting.
577
d3d8a9ee
NC
5782002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
579
580 * Makefile.am: Honour DESTDIR.
581 * Makefile.in: Regenerate.
582
40449e9f
KH
5832002-05-06 Kazu Hirata <kazu@cs.umass.edu>
584
585 * config/tc-ia64.c: Fix formatting.
586 * config/tc-ia64.h: Likewise.
587
98d3f06f
KH
5882002-05-04 Kazu Hirata <kazu@cs.umass.edu>
589
590 * config/tc-mips.c: Fix formatting.
591 * config/tc-s390.c: Likewise.
592 * config/tc-s390.h: Likewise.
593
8f5b2891
AO
5942002-05-03 Alexandre Oliva <aoliva@redhat.com>
595
596 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
597 information for instructions.
598
d1a6c242
KH
5992002-05-02 Kazu Hirata <kazu@cs.umass.edu>
600
601 * as.h: Fix formatting.
602 * cgen.c: Likewise.
603 * cgen.h: Likewise.
604 * dwarf2dbg.c: Likewise.
605 * frags.h: Likewise.
606 * gasp.c: Likewise.
607 * macro.c: Likewise.
608 * read.c: Likewise.
609 * stabs.c: Likewise.
610 * symbols.c: Likewise.
611
1cfc59d5
AM
6122002-05-02 Alan Modra <amodra@bigpond.net.au>
613
72297628
AM
614 * app.c (mri_pseudo): Only declare for TC_M68K.
615
1cfc59d5
AM
616 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
617 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
618 BFD_RELOC_16_BASEREL.
619 (md_assemble): Likewise.
620 (md_apply_fix3): Likewise.
621
358b94bd
NC
6222002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
623
624 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
625 zero into an add of zero - it is not the same.
626
d8731e7d
NC
6272002-05-01 Arati Dikey <aratid@kpit.com>
628
629 * tc-sh.c (get_specific): Generate warning if the same
630 destination register is used in parallel instructions.
631
200dbde8
AM
6322002-05-01 Andrew Macleod <amacleod@cygnus.com>
633
634 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
635
3f3cdb03
AM
6362002-05-01 Alan Modra <amodra@bigpond.net.au>
637
638 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
639 backwards to prevent cascading errors.
640
9b2b7d69
MM
6412002-04-30 Mark Mitchell <mark@codesourcery.com>
642
643 * configure.in: Add support for powerpc-*-windiss.
644 * configure: Regenerated.
645
0f3f3d8b
AM
6462002-04-28 Alan Modra <amodra@bigpond.net.au>
647
819e6420
AM
648 * config/tc-s390.c (md_parse_option): Formatting.
649
0f3f3d8b
AM
650 * config/tc-i386.c: Formatting fixes, add missing space in error
651 message.
652
3c25c5f6
NC
6532002-04-24 Christian Groessler <chris@groessler.org>
654
655 * config/tc-z8k.c (build_bytes): Add support for new cases:
656 CLASS_IGNORE and ARG_NIM4.
657 (md_assemble): Prevent destruction of input_line_pointer if
658 get_operands returns failure.
659
af55c2e6
CD
6602002-04-24 Chris G. Demetriou <cgd@broadcom.com>
661
662 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
663 instructions to be generated by macros.
664
062cd5e7
AS
6652002-04-24 Andreas Schwab <schwab@suse.de>
666
667 * config/tc-i386.c (output_jump, output_disp)
668 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
669 more.
670 (md_apply_fix3): Remember addend value for rela relocations.
671 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
672
2b2e39bf
CD
6732002-04-22 Chris Demetriou <cgd@broadcom.com>
674
675 * config/tc-mips.c (macro_build): Add close-parenthesis missing
676 from previous change.
677
80cc45a5
EC
6782002-04-22 Eric Christopher <echristo@redhat.com>
679
2b2e39bf
CD
680 * config/tc-mips.c (macro_build): Add warning if macro instructions
681 are expanded into a branch delay slot.
80cc45a5 682
ffa554ed
GK
6832002-04-17 Geoffrey Keating <geoffk@redhat.com>
684
685 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
686 numbers, gdb relies on them to detect the start of the prologue.
687
302576af
MS
6882002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
689
690 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
691 symbols in merge sections.
692
0f3f3d8b 6932002-04-16 Alan Modra <amodra@bigpond.net.au>
091e58c1
AM
694
695 * as.c (main): Don't reference _bfd_chunksize.
696
76b999d0
TR
6972002-04-15 Tom Rix <trix@redhat.com>
698
80cc45a5 699 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
76b999d0
TR
700 symbols in merge sections.
701
580a832e
RS
7022002-04-11 Richard Sandiford <rsandifo@redhat.com>
703
704 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
705 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
706 argument for the precision.
707 (gen_to_words): Update accordingly.
708
edde18a5
AM
7092002-04-10 Alan Modra <amodra@bigpond.net.au>
710
711 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
712 BFD_VERSION_STRING unavailable.
713 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
714
5bcd00a6
JR
715Tue Apr 9 16:45:48 2002 J"orn Rennecke <joern.rennecke@superh.com>
716
717 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
718 symbol_used_in_reloc_p is true.
2ed5f585
JR
719
720 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
721 endian hosts.
722
8e42bcb6
AM
7232002-04-04 Alan Modra <amodra@bigpond.net.au>
724
725 * dep-in.sed: Cope with absolute paths.
726 * Makefile.am (dep.sed): Subst TOPDIR.
727 Run "make dep-am".
728 * Makefile.in: Regenerate.
729
874e8986
TS
7302002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
731
732 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
733 (mips_ip): Remove unused variable.
734 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
735 unsigned char with bfd_byte.
736 (s_file): Remove unused variable.
737 (s_mips_ent): Likewise.
738
fbdbf472
TR
7392002-04-03 Tom Rix <trix@redhat.com>
740
741 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
742 (build_insn): Same.
743 (find_opcode): Fix warning in as_warn.
744 * config/tc-d10v.h: Update Copyright.
745
7462002-04-03 Alan Matsuoka <alanm@redhat.com>
747 Tom Rix <trix@redhat.com>
748
749 From Jeff Knaggs <jknaggs@redhat.com>
80cc45a5 750 * config/tc-d10v.c (check_resource_conflict): New function to
fbdbf472
TR
751 check for resource conflicts.
752
753 From Jason Eckhardt <jle@redhat.com>
754 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
755 imm3 fields.
756 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
757 reserved control registers is used.
758 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
759 imm3 fields.
760
761 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
762 * tc-d10v.c (parallel_ok): Prevent packing only if the first
763 instruction cannot be packed.
764
765 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
766 * gas/config/tc-d10v.c (check_resource_conflict): Only check
767 write-write conflicts.
768 (md_assemble): Reformat introductory comment.
769 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
770 arguments.
771
784b640d
AM
7722002-04-03 Alan Modra <amodra@bigpond.net.au>
773
774 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
775 O_logical_not>): Derive final_seg from add_symbol.
776 <O_multiply..O_logical_or>: More final_seg twiddles.
777
5f44c186
RH
7782002-04-01 Jessica Han <jessica@cup.hp.com>
779
780 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
781 in 32-bit mode.
782
3458b54c
AS
7832002-03-27 Andreas Schwab <schwab@suse.de>
784
785 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
786 field for pc-relative fixups.
787 (output_disp): Likewise.
788 (md_estimate_size_before_relax): Likewise.
789 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
790 pc-relative fixups in 64bit mode.
791
815b453c
AM
7922002-03-22 Alan Modra <amodra@bigpond.net.au>
793
794 * config/te-aix5.h: Typo fix.
795
d5b32339
AM
7962002-03-21 Alan Modra <amodra@bigpond.net.au>
797
798 * Makefile.am: Run "make dep-am".
799 * Makefile.in: Regenerate.
800 * doc/Makefile.in: Regenerate.
801
f201ccb3
NC
8022002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
803
804 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
805 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
806
177b4a6a
AO
8072002-03-18 Alexandre Oliva <aoliva@redhat.com>
808
809 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
810 the EXTENDED bit here; report the estimate according to the
811 current size.
812
eb1e0e80
NC
8132002-03-18 Tom Rix <trix@redhat.com>
814
815 * configure.in: Add AIX 5 support.
816 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
817 * config/te-aix5.h: New file. AIX 5 support.
818 * configure: Regenerate.
819
a1c259a1
NC
8202002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
821
822 * po/fr.po: Updated version.
823
949f2b5c
AJ
8242002-03-16 Andreas Jaeger <aj@suse.de>
825
826 * doc/c-mips.texi (Machine Dependencies): Add new node.
827
1f25f5d3
CD
8282002-03-15 Chris G. Demetriou <cgd@broadcom.com>
829
830 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
831 (mips_opts): Initialize "ase_mips3d" member.
832 (file_ase_mips3d): New variable.
833 (CPU_HAS_MIPS3D): New macro.
834 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
835 based on command line options and configuration defaults.
836 (macro_build, mips_ip): Accept MIPS-3D instructions if
837 mips_opts.ase_mips3d is set.
838 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
839 Add support for "-mips3d" and "-no-mips3d" options.
840 (OPTION_ELF_BASE): Move to accomodate new options.
841 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
842 (mips_elf_final_processing): Add a comment indicating that a
843 MIPS-3D ASE ELF header flag should be set, when one exists.
844 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
845 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
846 nomips3d" directives.
949f2b5c 847
2be11e7e
HPN
8482002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
849
850 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
851 a weak symbol in same section to be within reach.
852
9ce88e60
NC
8532002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
854
855 * po/fr.po: Updated version.
856
1e16b528
AS
8572002-03-12 Andreas Schwab <schwab@suse.de>
858
859 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
860 body record so that an error is given for misplaced .save
861 pseudo-ops.
862
29b0f896
AM
8632002-03-09 Alan Modra <amodra@bigpond.net.au>
864
865 * config/tc-i386.h (REX_OPCODE): Define.
866 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
867 (rex_byte): typedef to int.
868 * config/tc-i386.c: Group prototypes and vars together.
869 Formatting fixes. Remove occurrences of "register" keyword.
870 (true): Delete.
871 (false): Delete.
872 (mode_from_disp_size): Add INLINE keyword to prototype.
873 (fits_in_signed_byte): Likewise.
874 (fits_in_unsigned_byte): Likewise.
875 (fits_in_unsigned_word): Likewise.
876 (fits_in_signed_word): Likewise.
877 (fits_in_unsigned_long): Likewise.
878 (fits_in_signed_long): Likewise.
879 (type_names): Constify.
880 (intel_float_operand): Constify param.
881 (add_prefix): Use REX_OPCODE.
882 (md_assemble): Likewise. Modify for changed rex_byte.
883 (parse_insn): Split out of md_assemble.
884 (parse_operands): Likewise.
885 (swap_operands): Likewise.
886 (optimize_imm): Likewise.
887 (optimize_disp): Likewise.
888 (match_template): Likewise.
889 (check_string): Likewise.
890 (process_suffix): Likewise.
891 (check_byte_reg): Likewise.
892 (check_long_reg): Likewise.
893 (check_qword_reg): Likewise.
894 (check_word_reg): Likewise.
895 (finalize_imm): Likewise.
896 (process_operands): Likewise.
897 (build_modrm_byte): Likewise.
898 (output_insn): Likewise.
899 (output_branch): Likewise.
900 (output_jump): Likewise.
901 (output_interseg_jump): Likewise.
902 (output_disp): Likewise.
903 (output_imm): Likewise.
904
2e64b665
DJ
9052002-03-07 Daniel Jacobowitz <drow@mvista.com>
906
907 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
908
937149dd
AM
9092002-03-06 Alan Modra <amodra@bigpond.net.au>
910
911 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
912 relocs except when BFD64.
913
914 * write.c (number_to_chars_bigendian): Don't abort when N is
915 larger than sizeof (VAL).
916 (number_to_chars_littleendian): Likewise.
917
40d74fb1
JL
9182002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
919
920 * config/tc-hppa.c (md_apply_fix3): Add cast.
921 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
922 e_rrsel.
923
cd3cde86
AM
9242002-03-05 Paul Koning <pkoning@equallogic.com>
925
926 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
927 (parse_ac5): New function for parsing float regs in float operand.
928 (parse_expression): Remove attempt to make literals be octal.
929 (parse_op_no_deferred): Support float literals.
930 (parse_op): Reject attempts to refer to float regs.
931 (parse_fop): New function, like parse_op but for float operand.
949f2b5c 932 (md_assemble): Add cases to parse float operands. Also fix
cd3cde86
AM
933 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
934
e9682144
L
9352002-03-04 H.J. Lu <hjl@gnu.org>
936
937 * config/obj-elf.c (special_section): Add .init_array,
938 .fini_array and .preinit_array.
939
940 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
941 .init_array and .fini_array.
942
26eb4093
JJ
9432002-03-01 Jakub Jelinek <jakub@redhat.com>
944
945 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
946 visibility.
947 (obj_frob_symbol): Copy visibility.
948
559e22f3
JJ
9492002-02-28 Jakub Jelinek <jakub@redhat.com>
950
951 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
952 s_text.
953 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
954
ef412327
NC
9552002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
956
957 * po/es.po: Updated.
958
b25a253c
CD
9592002-02-26 Chris Demetriou <cgd@broadcom.com>
960
961 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
962 only, undo the changes made on 2001-06-08, with the
963 effect being that common or extern symbols are
964 adjusted for embedded-PIC, but weak symbols are not.
965 (md_estimate_size_before_relax: Likewise, with the effect
966 that extern symbols are treated the same as weak symbols
967 only if not embedded-PIC.
968 (mips_fix_adjustable) Likewise, with the effect that
969 weak or extern symbols are not adjusted for embedded-PIC.
970 (md_apply_fix3): Tweak so that the case where value is zero
971 is handled more correctly for embedded-PIC code.
972
fe41178f
NC
9732002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
974
587fe2b3
NC
975 * doc/as.texinfo (Overview): Add missing @ifset IA64
976
fe41178f
NC
977 * configure.in (LINGUAS): Add es.po.
978 * configure: Regenerate.
979 * po/es.po: New file.
980
4d34fb5f
TS
9812002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
982
983 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
984 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
985 and NO_PIC cases. Code cleanup.
986 (macro2): Fix handling of 64bit register loads.
987
9e32ca89
NC
9882002-02-25 David Mosberger <davidm@hpl.hp.com>
989
990 * doc/as.texinfo: Add entry for IA64.
991 * doc/c-ia64.texi: New file.
992
23e1d84c
AM
9932002-02-25 Alan Modra <amodra@bigpond.net.au>
994
c7d004c5
AM
995 * config/tc-hppa.c: Update copyright date.
996
997 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
23e1d84c
AM
998 Remove references to chip manufacturers.
999 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1000 Correct comments.
1001 (md_show_usage): Remove references to chip manufacturers. Mention
1002 -mpower4.
1003 (md_begin): Test power4 opcode flag bits.
1004
b1c6bf70 10052002-02-22 David Mosberger <davidm@hpl.hp.com>
6290819d
NC
1006
1007 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1008 count exceeds prologue count.
1009 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1010 (unwind.label_prologue_count): New member.
1011
1012 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1013
1014 (get_saved_prologue_count): New function.
1015 (save_prologue_count): New function.
1016 (free_saved_prologue_count): New function.
1017 (dot_label_state): Record state label by calling save_prologue_count().
1018 (dot_copy_state): Restore prologue count by calling
1019 get_saved_prologue_count().
1020 (generate_unwind_image): Free up list of saved prologue
1021 counts by calling free_saved_prologue_counts().
1022
f1e7a2c9
NC
10232002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
1024
1025 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1026 function declarations.
1027
3f965e60
NC
10282002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
1029
1030 * NEWS: Note that GASP is now deprecated.
1031 * Makefile.am: Do not build gasp-new by default.
1032 * Makefile.in: Regenerate.
1033 * doc/Makefile.am: Do not install gasp.info.
1034 * doc/Makefile.in: Regenerate.
1035 * gas/gasp.texi: Note that gasp is now deprecated.
1036
9a66911f
NC
10372002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1038
1039 * NEWS: Mark 2.12 branch.
1040
f88fd9fe
TT
10412002-02-19 Tom Tromey <tromey@redhat.com>
1042
1043 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1044
da0e507f
TS
10452002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1046
1047 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1048 option input.
1049
ff0fb565
MS
10502002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1051
1052 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1053 Make bit size independent of architecture switch.
1054 (md_begin): Add warning for -m64 with -Aesa.
1055 (s390_md_end): Use renamed architecture defines.
1056
a245a9aa
DJ
10572002-02-18 Daniel Jacobowitz <drow@mvista.com>
1058
1059 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1060
8bf549a8
NC
10612002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
1062
1063 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1064 instead of CRIS.
1065
9151e8bf
CD
10662002-02-15 Chris Demetriou <cgd@broadcom.com>
1067
1068 * config/tc-mips.c (md_estimate_size_before_relax): Really
1069 make sure we treat weak like extern only for ELF. (Fixes
1070 patch from 2001-07-25.)
1071
59455fb1
BE
10722002-02-15 Ben Elliston <bje@redhat.com>
1073
1074 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1075 works as expected.
1076
49fda6c8
HPN
10772002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1078
1079 * NEWS: Mention support for MMIX.
1080
2d2bf3e0
CD
10812002-02-13 Chris Demetriou <cgd@broadcom.com>
1082
1083 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1084 a sequence of indpendent 'if' statements for easier debugging
1085 and future modification.
1086
76f57f3a
JT
10872002-02-13 Matt Fredette <fredette@netbsd.org>
1088
1089 * config/tc-m68k.c (md_show_usage): No longer display a
1090 hard-coded "68020" for the default CPU, instead display the
1091 canonical name of the true, configured default CPU.
1092 (m68k_elf_final_processing): Mark objects for sub-68020
1093 CPUs with the new EF_M68000 flag.
1094
3bf057fa
AS
10952002-02-13 Andreas Schwab <schwab@suse.de>
1096
1097 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1098 pc-relative relocations to merge sections in 64-bit mode.
1099
6334e312 11002002-02-13 Ben Elliston <bje@redhat.com>
1ac57253
BE
1101
1102 * NEWS: Document floating point number handling in gasp.
1103 * gasp.c: Include <assert.h> and "xregex.h".
1104 (is_flonum): New function.
1105 (chew_flownum): Likewise.
1106 (change_base): Consume flonums from the input, where possible.
1107 * doc/gasp.texi (Constants): Document floating point numbers.
1108
3dcfe21d
AM
11092002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1110
1111 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1112 that implicitly use LR and RR selectors.
1113
913572ec
AO
11142002-02-12 Alexandre Oliva <aoliva@redhat.com>
1115
1116 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
1117 and `epsw' as available on AM33 and above only.
1118 (other_register_name): Add logic to handle machine type encoded in
1119 reg_number.
1120
9b90b531
TR
11212002-02-11 Tom Rix <trix@redhat.com>
1122
949f2b5c 1123 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
9b90b531
TR
1124 xcoff64.
1125
6c1b24e4
AO
1126Mon Feb 11 11:23:38 2002 Alexandre Oliva <aoliva@redhat.com>
1127
1128 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1129 Use all over.
1130
7ecd2f8b
JH
1131Mon Feb 11 12:59:29 CET 2002 Jan Hubicka <jh@suse.cz>
1132
1133 * i386.c (md_assemble): Support 32bit address prefix.
1134 (i386_displacement): Likewise.
1135 (i386_index_check): Accept 32bit addressing in 64bit mode.
1136
7eb27ef2
AO
11372002-02-11 Alexandre Oliva <aoliva@redhat.com>
1138
1139 * config/tc-sh.c (dot): Removed unused function.
1140
fa702524
AM
11412002-02-11 Alan Modra <amodra@bigpond.net.au>
1142
1143 * Makefile.am: "make dep-am".
1144 * Makefile.in: Regenerate.
1145 * aclocal.m4: Regenerate.
1146 * config.in: Regenerate.
1147 * configure: Regenerate.
1148 * doc/Makefile.in: Regenerate.
1149
625e1353
RH
11502002-02-10 Richard Henderson <rth@redhat.com>
1151
1152 * doc/c-alpha.texi: New file.
1153 * doc/Makefile.am (CPU_DOCS): Add it.
1154 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1155
543833df
RH
11562002-02-09 Richard Henderson <rth@redhat.com>
1157
1158 * config/tc-alpha.c (O_samegp): New.
1159 (USER_RELOC_P): Include it.
1160 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1161 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1162 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1163 (alpha_validate_fix): New.
1164 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1165
328eb32e
HPN
11662002-02-09 Hans-Peter Nilsson <hp@axis.com>
1167
1168 * doc/c-cris.texi: New.
1169 * doc/all.texi: @set CRIS.
1170 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
1171 Include c-cris.texi.
1172 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1173 * doc/Makefile.in: Regenerate.
1174
6373ee54
CD
11752002-02-08 Chris Demetriou <cgd@broadcom.com>
1176
1177 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1178 determine if a number is a sign-extended 32-bit number.
1179 (load_register): Use IS_SEXT_32BIT_NUM.
1180 (macro): Check if load/store macro handling is using a
1181 constant 32-bit address on 64-bit address systems, and if
1182 so optimize the generation of that address.
1183
50a4c611
RH
11842002-02-08 Richard Henderson <rth@redhat.com>
1185
1186 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1187 we've eliminated all foreign relocation types yet.
1188 (alpha_fix_adjustable): Likewise.
1189
324bfcf3
AO
11902002-02-08 Alexandre Oliva <aoliva@redhat.com>
1191
1192 Contribute sh64-elf.
1193 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1194 Stephen Clarke <Stephen.Clarke@st.com>
1195 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1196 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
1197 * config/tc-sh.c (md_relax_table): Added default sizes for
1198 non-PC-relative UNDEF_MOVI, and relaxation sequences for
1199 MOVI_16, MOVI_32 and MOVI_48.
1200 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1201 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1202 and MOVI_16.
1203 (shmedia_md_estimate_size_before_relax): Remove redundant
1204 blocks. Set fragP->fr_var even if relaxation type unchanged.
1205 Retain UNDEF_MOVI until expression decays to number.
1206 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1207 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1208 relocation types. Take fixP->fx_addnumber into account too.
1209 (shmedia_md_apply_fix): Likewise.
1210 (shmedia_md_convert_frag): Likewise.
1211 (shmedia_build_Mytes): Likewise.
1212 (sh64_consume_datalabel): Complain about nested datalabel.
1213 Support PIC relocs. Call sh_parse_name.
1214 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1215 in tc-sh.h to SHmedia reloc types.
1216 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1217 MOVI_GOTPC): New relaxation constants.
1218 (md_relax_table): Introduce relaxation directives for PIC-related
1219 constants.
1220 (sh_PIC_related_p): Handle datalabel.
1221 (sh_check_fixup): Choose SH5 PIC relocations.
1222 (sh_cons_fix_new): Added BDF_RELOC_64.
1223 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
1224 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1225 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1226 current ISA is SHmedia, get 7 bytes.
1227 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
1228 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1229 void function.
1230 * config/tc-sh64.c (shmedia_apply_fix): Rename to
1231 shmedia_apply_fix3 and make void.
1232 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
1233 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1234 as_bad.
1235 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
1236 * config/tc-sh64.h (md_parse_name): Take &c as argument.
1237 2001-03-14 DJ Delorie <dj@redhat.com>
1238 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1239 * doc/Makefile.in(CPU_DOCS): Ditto.
1240 * doc/c-sh64.texi: New file.
1241 * doc/as.texinfo: Add SH64 support.
1242 2001-03-13 DJ Delorie <dj@redhat.com>
1243 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1244 A_REUSE_PREV so that its purpose is more obvious.
1245 (shmedia_build_Mytes): Ditto.
1246 2001-03-07 DJ Delorie <dj@redhat.com>
1247 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1248 before processing.
1249 (sh64_vtable_inherit): Ditto.
1250 (strip_datalabels): New, strip "datalabel" from given line.
1251 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1252 pseudos.
1253 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
1254 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1255 call ...
1256 (shmedia_build_Mytes): ... to here.
1257 2001-03-06 DJ Delorie <dj@redhat.com>
1258 * config/tc-sh.c: Remove sh64-specific uaquad now that there
1259 is a generic one.
1260 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
1261 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1262 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1263 address by one in call to dwarf2_emit_insn.
1264 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
1265 Implement ".abi" pseudo and correct .cranges descriptors. Correct
1266 alignment handling broken by imported changes.
1267 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1268 (sh64_handle_align): Declare.
1269 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1270 (sh64_max_mem_for_rs_align_code): Declare.
1271 (enum sh64_isa_values): Moved here from tc-sh64.c.
1272 (md_do_align): Define.
1273 (sh64_do_align): Declare.
1274 (struct sh64_tc_frag_data): New.
1275 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
1276 changed.
1277 (TC_FRAG_INIT): Change to set new datatype.
1278 (struct sh64_segment_info_type): Rename member
1279 last_flushed_location to last_contents_mark. All users changed.
1280 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1281 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1282 * config/tc-sh.c (md_pseudo_table): Add ".abi".
1283 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
1284 of unsetting seen_insn.
1285 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
1286 call sh64_update_contents_mark.
1287 (sh_handle_align): Remove HAVE_SH64-conditioned code.
1288 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
1289 enum sh64_isa_values.
1290 (sh64_set_contents_type): Drop segT parameter. All callers changed.
1291 (emitting_crange): Boolean guard moved to file scope from function
1292 scope in sh64_set_contents_type.
1293 (s_sh64_abi): New.
1294 (sh64_update_contents_mark): New; most split out from
1295 sh64_flush_pending_output.
1296 (shmedia_md_end): Call sh64_update_contents_mark. Set
1297 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
1298 (sh64_do_align): New function.
1299 (sh64_max_mem_for_rs_align_code): New function.
1300 (sh64_handle_align): Rename from shmedia_do_align. Make
1301 non-static. Add head comment. Emit zero bytes for n bytes modulo
1302 four. Change return-type to void.
1303 (shmedia_elf_new_section): Remove.
1304 (shmedia_md_assemble): Call sh64_update_contents_mark.
1305 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
1306 new frag. Call sh64_update_contents_mark after making the new
1307 frag.
1308 (sh64_flush_pending_output): Just call sh64_update_contents_mark
1309 and sh_flush_pending_output.
1310 (sh64_flag_output): Also call md_flush_pending_output, but add
1311 condition on not emitting_crange.
1312 (sh64_tc_cons_fix_new): Remove.
1313 2001-01-12 Nick Clifton <nickc@redhat.com>
1314 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
1315 alignment handling scheme imported from sourceware.
1316 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
1317 * config/tc-sh64.h (TARGET_FORMAT): Define.
1318 (sh64_target_format): Prototype.
1319 * config/tc-sh64.c (sh64_target_mach): New function.
1320 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
1321 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
1322 zero_address_frag instead of copying the frag of the symbol.
1323 (shmedia_frob_file_before_adjust): Ditto.
1324 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
1325 to valueT to remove signedness.
1326 (shmedia_md_convert_frag): Add parameter final. Rename parameter
1327 headers to output_bfd. Do not evaluate symbols if final is false;
1328 do emit fixups.
1329 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
1330 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
1331 to the current frag, call shmedia_md_convert_frag to emit fixups
1332 and make frag_wane neutralize the frag. Update comments.
1333 * config/tc-sh.c (md_convert_frag): Change caller of
1334 shmedia_md_convert_frag.
1335 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1336 * config/tc-sh64.h: Tweak comments and correct formatting.
1337 * config/tc-sh64.c: Ditto.
1338 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
1339 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
1340 for the no-relocation case.
1341 (shmedia_check_limits): Fix range check being off-by-one for PTA.
1342 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
1343 wrappers.
1344 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
1345 comment.
1346 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
1347 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
1348 expansion.
1349 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
1350 Correct comment.
1351 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1352 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
1353 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
1354 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
1355 al>: Set lowest bit of field to relocate to 1 and rest to empty,
949f2b5c 1356 if reloc is emitted.
324bfcf3
AO
1357 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1358 New options plus bugfixes.
1359 * config/tc-sh.c (md_longopts): New options "-no-expand" and
1360 "-expand-pt32".
1361 (md_parse_option): Handle new options.
1362 (md_show_usage): Add blurb for new options.
1363 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
1364 (sh64_expand, sh64_pt32): New variables.
1365 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
1366 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
1367 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
1368 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
1369 <resolved previously-pc-relative relocs>: Handle
1370 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
1371 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
1372 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
1373 points to SHcompact code.
1374 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
1375 SH64PCREL16)>: Check that ISA of what operand points at and
1376 PTA/PTB matches, or emit error.
1377 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
1378 SHMEDIA_BFD_RELOC_PT.
1379 (shmedia_immediate_op): If pcrel, emit fixup also for constant
1380 operand.
1381 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
1382 condition for MOVI expansion.
1383 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
1384 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
1385 sh64_expand.
1386 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
1387 fixup.
1388 (sh64_target_format): Error-check setting of sh64_pt32 and
1389 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
1390 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
1391 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
1392 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1393 * config/tc-sh64.c: Improve comments.
1394 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
1395 not say the linker will check correctness of PTA/PTB expansion.
1396 (shmedia_md_end): Make non-static.
1397 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
1398 prototype.
1399 * config/tc-sh.c (sh_finalize): Remove.
1400 * config/tc-sh.h (md_end): Do not define.
1401 Remove prototype for sh_finalize.
1402 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1403 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
1404 sh64_section_data container when storing section type in tdata
1405 field in elf_section_data.
1406 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
1407 EF_SH5.
1408 * Makefile.am: Update dependencies.
1409 * Makefile.in: Regenerate.
1410 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
1411 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
1412 dwarf2_emit_insn call with test on debug_type.
1413 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1414 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
1415 CRT_SH5_ISA32 sticky for 64-bit.
1416 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1417 Generate .crange sections when switching ISA mode or emitting
1418 constants in same section as code.
1419 * config/tc-sh64.c: Reformat structure definitions.
1420 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
1421 variables.
1422 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
1423 to emit a .cranges descriptor when contents type changes. Only
1424 emit error if changing contents type and -no-mix is in effect.
1425 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
1426 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
1427 (shmedia_md_end): Set sh64_end_of_assembly. Pass
1428 sh64_flush_last_crange over sections.
1429 When checking main symbol of datalabel symbol, check for
1430 STO_SH5_ISA32, not ISA type of section in definition.
1431 (shmedia_frob_file_before_adjust): Check main symbol for
1432 STO_SH5_ISA32; don't check ISA type of section in definition.
1433 (shmedia_frob_section_type): Adjust for .cranges; set section flag
1434 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
1435 .cranges entries have been output.
1436 (shmedia_elf_new_section): Just call md_flush_pending_output.
1437 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
1438 fix. Do not set tc_segment_info_data.in_code for section. Call
1439 sh64_set_contents_type for SHmedia code.
1440 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
1441 false. Call md_flush_pending_output.
1442 (sh64_target_format): Check that -no-mix and
1443 -shcompact-const-crange are used in sane combination with other
1444 options.
1445 (shmedia_md_pcrel_from_section): Check type of fix for how to
1446 adjust pc-relative.
1447 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
1448 not ISA type of section in definition.
1449 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
1450 hold contents-type state.
1451 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
1452 (sh64_flush_pending_output): Declare.
1453 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
1454 (sh64_tc_cons_fix_new): Declare.
1455 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
1456 call sh64_flag_output.
1457 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
1458 call sh64_set_contents_type to mark SHcompact code and set
1459 seen_insn.
1460 (md_longopts): New options "-no-mix" and
1461 "-shcompact-const-crange".
1462 (md_parse_option): Handle new options.
1463 (md_show_usage): Add blurb for new options.
1464 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
1465 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1466 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
1467 (sh64_last_insn_frag): New.
1468 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
1469 to get frag for insn opcode for generating fixups; do not assume it
1470 is the same frag.
1471 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
1472 for new insn.
1473 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
1474 section.
1475 (TC_FRAG_TYPE): Define as fragS *.
1476 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
1477 (sh64_last_insn_frag): Declare.
1478 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
1479 not == NULL before dereferencing.
1480 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1481 Get rid of BFD section flag and EF_SH64_ABI64.
1482 * config/tc-sh64.c (shmedia_frob_section_type): Use
1483 elf_section_data (sec)->tdata, not a specific BFD section flag, to
1484 communicate the section as containing SHmedia code. Describe why.
1485 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
1486 EF_SH64 regardless of ABI.
1487 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
1488 in error message. Handle resolved expressions for
1489 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1490 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
1491 (shmedia_check_limits): Handle BFD_RELOC_64.
1492 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
1493 a STO_SH5_ISA32 symbol, only the BFD value.
1494 2000-12-11 Ben Elliston <bje@redhat.com>
1495 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
1496 dwarf2_generate_asm_lineno.
1497 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
1498 Handle PC-relative MOVI expansions with assembler relaxation.
1499 Generate PC-relative relocs from 16-bit PC-relative expressions.
1500 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
1501 (shmedia_md_pcrel_from_section): ...here.
1502 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
1503 turned completely resolved. Adjust relocation type for 16-bit
1504 immediate operands that has turned PC-relative. Adjust back for
1505 MD_PCREL_FROM_SECTION being applied twice.
1506 (shmedia_md_convert_frag): Always emit reloc for expression with
1507 global or weak symbol. Handle relaxation result for PC-relative
1508 expressions.
1509 (shmedia_md_estimate_size_before_relax): An expression with a weak
1510 or global symbol can not be relaxed. Break out tests for
1511 relaxable symbol into variable sym_relaxable.
1512 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
1513 UNDEF_MOVI)>: Break out any PC-relative expression and change
1514 relaxation type.
1515 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
1516 opjp.
1517 <case A_IMMS16>: Fix typo for initial minor relaxation type of
1518 MOVI expansion. If X_op_symbol of the immediate expression is
1519 set, make an expression symbol for the argument to frag_var.
1520 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
1521 relaxations.
1522 (END): Adjust for new relaxations.
1523 (md_relax_table): Add entries for new relaxations.
1524 2000-12-07 Ben Elliston <bje@redhat.com>
1525 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
1526 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1527 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
1528 SHORI operand offsets in PT/PTA/PTB expansions.
1529 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1530 Implement DataLabel semantics.
1531 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
1532 shmedia_frob_file_before_adjust.
1533 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
1534 (DATALABEL_SUFFIX): Define.
1535 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
1536 symbol list to update "datalabel" symbols to their main symbol
1537 counterparts.
1538 (shmedia_frob_file_before_adjust): New.
1539 (sh64_adjust_symtab): For remaining datalabel symbols, set to
1540 undefined and set STT_DATALABEL.
1541 (sh64_frob_label): Initialize TC symbol field.
1542 (sh64_consume_datalabel): Actually implement semantics. New
1543 parameter operandf, call it instead of expression.
1544 (sh64_exclude_symbol): New.
1545 * config/tc-sh64.h (md_parse_name): Pass on the function operand
1546 to sh64_consume_datalabel.
1547 (tc_symbol_new_hook): Define to tc_frob_symbol.
1548 (TC_SYMFIELD_TYPE): Define to symbolS *.
1549 (tc_frob_symbol): Define to call sh64_exclude_symbol.
1550 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
1551 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
1552 case.
1553 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
1554 generating dwarf2 debug information.
1555 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1556 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
1557 elf64-sh64 for the 64-bit ABI.
1558 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
1559 option.
1560 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1561 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
1562 case-insensitivity.
1563 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1564 * config/tc-sh64.c: Tweak comments, formatting and error messages.
1565 (enum sh64_abi_values): New type.
1566 (enum sh64_isa_values): New type.
1567 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
1568 (seen_shcompact_mode, seen_shmedia_mode): Delete.
1569 (sh64_abi): Replace shmedia_64.
1570 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
1571 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
1572 (s_sh64_mode): Check validity for this target.
1573 (sh64_target_format): Initialize defaults for ISA and ABI.
1574 Fallback to old object format if no SH64 ISA or ABI has been
1575 specified.
1576 * config/tc-sh.c (md_parse_option): Check combinations for errors.
1577 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
1578 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
1579 * config/tc-sh64.h: Fix typo in comment.
1580 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
1581 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
1582 <PT fixups for absolute values>: Size will be longest, not
1583 shortest.
1584 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
1585 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
1586 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
1587 and l1 to hold lowercase of two first characters. Change all
1588 remaining TO_LOWER to tolower.
1589 * config/tc-sh64.c (TO_LOWER): Delete.
1590 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
1591 (md_parse_name): Define.
1592 (sh64_consume_datalabel): Declare.
1593 (DOLLAR_DOT): Define.
1594 * config/tc-sh64.c (shmedia_parse_exp): New.
1595 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
1596 (shmedia_parse_reg): Remove const from src
1597 parameter.
1598 (shmedia_get_operands): Ditto for args parameter and ptr variable.
1599 (shmedia_md_assemble): Ditto for op_end variable.
1600 (shmedia_get_operand): Ditto for ptr parameter and src variable.
1601 Use shmedia_parse_exp, not parse_exp.
1602 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
1603 parameter. All callers changed.
1604 (shmedia_get_operand): Add shmedia_arg_type parameter. All
1605 callers changed.
1606 (shmedia_parse_reg): Put first two character in local variables.
1607 Use tolower, not TO_LOWER. If no register is found and argtype
1608 indicates a control register, scan shmedia_creg_table
1609 case-insensitive.
1610 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1611 * Makefile.am (CPU_TYPES): Add sh64.
1612 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
1613 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
1614 Regenerate dependencies.
1615 * Makefile.in: Regenerate.
1616 * configure.in: Add support for sh64-*-elf*.
1617 * configure: Regenerate.
1618 * config/tc-sh64.h: New.
1619 * config/tc-sh64.c: New.
1620 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
1621 .mode, .isa and .uaquad.
1622 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
1623 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
1624 [HAVE_SH64] (END): Define as 10.
1625 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
1626 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
1627 MOVI_64): Define.
1628 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
1629 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
1630 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
1631 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
1632 Define.
1633 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
1634 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
1635 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
1636 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
1637 SHmedia instructions. Handle state-change after switching to
1638 SHcompact.
1639 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
1640 (md_parse_option) [HAVE_SH64]: Parse new options.
1641 (md_show_usage) [HAVE_SH64]: Show usage of new options.
1642 (md_convert_frag) [HAVE_SH64] <default>: Call
1643 shmedia_md_convert_frag instead of abort.
1644 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
1645 BFD_RELOC_SH_SHMEDIA_CODE.
1646 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
1647 SHcompact or SHmedia code.
1648 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
1649 shmedia_md_apply_fix instead of abort.
1650 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
1651 result from calling shmedia_md_estimate_size_before_relax instead
1652 of calling abort.
1653 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
1654 do the work.
1655 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
1656 shmedia_init_reloc and do nothing more if it returns non-zero.
1657 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
1658 * po/POTFILES.in: Regenerate.
1659 * po/gas.pot: Regenerate.
1660
ac3f04d7
AO
16612002-02-06 Alexandre Oliva <aoliva@redhat.com>
1662
6b32719e
AO
1663 * config/tc-sh.c (parse_at): Install the correct version of
1664 2002-02-04's patch.
949f2b5c 1665
ac3f04d7
AO
1666 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
1667 assume fixP->fx_subsy is non-NULL.
1668
7679ead9
AO
16692002-02-04 Alexandre Oliva <aoliva@redhat.com>
1670
1671 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
fdf4122d 1672 A_DISP_PC_ABS, and adjust it by -4.
7679ead9
AO
1673 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
1674 expected.
1675 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
1676 the operand type is not A_DISP_PC_ABS.
1677
5459d7a0
HPN
16782002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1679
1680 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
1681 common and weak symbols. Handle common and weak symbols as
1682 undefined symbols with regards to GREG handling and merging.
1683 (mmix_frob_file): Ditto.
1684
006336b8
JT
16852002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1686
1687 * configure.in (hppa-*-netbsd*): New target.
1688 * configure: Regenerate.
1689 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
1690
9e0665bc
AM
16912002-02-02 Alan Modra <amodra@bigpond.net.au>
1692
1693 * config/tc-v850.c: Add missing prototypes amd use old-style
1694 function definitions.
1695 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
1696 (sdata_section tdata_section, zdata_section, sbss_section,
1697 tbss_section, zbss_section, rosdata_section, rozdata_section,
1698 scommon_section, tcommon_section, zcommon_section,
1699 call_table_data_section, call_table_text_section): Delete.
1700 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1701 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
1702 v850_call_table_data, v850_call_table_text): Delete.
1703 (struct v850_seg_entry): New.
1704 (v850_seg_table): New.
1705 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
1706 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
1707 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
1708 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
1709 (do_v850_seg): New.
1710 (v850_seg): New.
1711 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
1712 recording of alignment.
1713 (md_pseudo_table): Use v850_seg.
1714 (md_begin): Don't init .call_table_data and .call_table_text here.
1715 Set v850_seg_table bss entry.
1716
973eb340
HPN
17172002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1718
1719 Support on-demand global register allocation by passing on
1720 base-plus-offset relocs to the linker.
1721 * config/tc-mmix.c: Tweak and fix typos in comments.
949f2b5c 1722 (allocate_undefined_gregs_in_linker): New variable.
973eb340
HPN
1723 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
1724 (md_longopts): Add --linker-allocated-gregs.
1725 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
1726 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
1727 (md_show_usage): Update text for -x. Add text for
1728 --linker-allocated-gregs.
1729 (tc_gen_reloc): Derive default value for addend from val and
1730 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
1731 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
1732 GREG if allocate_undefined_gregs_in_linker.
1733 * doc/as.texinfo (Overview) <Target MMIX options>: Add
1734 --linker-allocated-gregs.
1735 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
1736 --linker-allocated-gregs. Mention that it's implied by -x.
1737 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
1738 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
1739
1740 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
1741
ba323545
AM
17422002-02-01 Alan Modra <amodra@bigpond.net.au>
1743
1744 * Makefile.am: Run "make dep-am"
1745 * Makefile.in: Regenerate.
1746
3b16e843
NC
17472002-01-31 Ivan Guzvinec <ivang@opencores.org>
1748
1749 * config/tc-or32.c: New file.
1750 * config/tc-or32.h: New file.
1751 * configure.in: Add support for or32 targets.
1752 * configure: Regenerate.
1753 * config/obj-coff.c: Add support for or32 targets.
1754 * config/obj-coff.h: Add support for or32 targets.
1755 * Makefile.am: Add support for or32 targets.
1756 * Makefile.in: Regenerate.
1757 * NEWS: Mention support for OpenRISC.
1758 * doc/Makefile.in: Regenerate.
1759 * po/POTFILES.in: Regenerate.
1760 * po/gas.pot: Regenerate.
1761
912a07db
RS
17622002-01-30 Richard Sandiford <rsandifo@redhat.com>
1763
1764 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
1765 and mod.
1766
4514d474
CD
17672002-01-29 Chris Demetriou <cgd@broadcom.com>
1768
1769 * config/tc-mips.c (tc_gen_reloc): Arrange for
1770 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
1771 their LO16 parts, even for ELF.
1772
246fcdee
DJ
17732002-01-29 Daniel Jacobowitz <drow@mvista.com>
1774
1775 * config/tc-i386.c: Protect definitions of true and false
1776 from redefinition.
1777
00e6e13d
JJ
17782002-01-28 Jakub Jelinek <jakub@redhat.com>
1779
1780 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
1781 made because of .weak, if they are neither defined nor used in any
1782 way.
1783
4867be41
DJ
17842002-01-27 Daniel Jacobowitz <drow@mvista.com>
1785
1786 * configure: Regenerated.
1787
7562a296
HPN
17882002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1789
1790 * doc/Makefile.am (install): Depend on install-info.
1791 * doc/Makefile.in: Regenerate.
1792
1caa7b23
NC
17932002-01-26 Nick Clifton <nick@redhat.com>
1794
1795 * po/fr.po: Updated version
1796
166e23f9
KH
17972002-01-24 Kazu Hirata <kazu@hxi.com>
1798
1799 * config/tc-h8300.c (check_operand): Don't print a warning
1800 when a valid 24-bit address is given to a 16-bit address
1801 operand.
1802
538cd60f
AO
18032002-01-24 Alexandre Oliva <aoliva@redhat.com>
1804
1805 * config/tc-sh.c (sh_elf_suffix): Removed.
1806 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
1807 sh_end_of_match, sh_parse_name): New functions.
1808 (sh_elf_cons): Simplify.
1809 (parse_exp): Reject misplaced PIC operands.
1810 (md_undefined_symbol): Simplify.
1811 (sh_fix_adjustable): Let @GOTOFF be adjusted.
1812 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
1813 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
1814 Complain if subsy remains at the end.
1815 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
1816 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
1817
b386f24b
AO
18182002-01-22 Alexandre Oliva <aoliva@redhat.com>
1819
1820 * config/tc-mn10300.c (xr_registers): Move `pc'...
1821 (other_registers): ... here.
1822
c46f0c34
AM
18232002-01-22 Alan Modra <amodra@bigpond.net.au>
1824
1825 * Makefile.am: Run "make dep-am".
1826 * Makefile.in: Regenerate.
1827 * gas/po/POTFILES.in: Regenerate.
1828
23deb923
DD
18292002-01-21 DJ Delorie <dj@redhat.com>
1830
1831 * config/obj-coff.c (obj_coff_init_stab_section): Make the
1832 stabstr_name allocation permanent, as it will be referenced from
1833 the section hash.
1834
9596feea
JT
18352002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1836
1837 * configure.in (ia64-*-netbsd*): New target.
949f2b5c 1838 * configure: Regenerate.
9596feea 1839
92081f48
HPN
18402002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
1841
1842 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
1843 to @dots call.
1844 <Detailed description, ARM options>: Ditto.
1845 * doc/c-arm.texi (ARM Options): Ditto.
1846
63e63b07
RE
18472002-01-18 Richard Earnshaw <rearnsha@arm.com>
1848
1849 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
1850 do_mia, do_mar and do_mra respectively.
1851 (do_mav_*): Renamed from do_c_*.
1852 (mav_reg_required_here, mav_parse_offset): Renamed from
1853 cirrus_reg_required_here and cirrus_parse_offset respectively.
1854 (MAV_MODE?): Renamed from CIRRUS_MODE?.
1855
ea6ef066
RE
18562002-01-18 Richard Earnshaw <rearnsha@arm.com>
1857 Keith Walker <keith.walker@arm.com>
1858
1859 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
1860 (insns): Add pattern for bxj instruction.
1861 (do_bxj): New function.
1862 (arm_cpus): Add arm926ej.
1863 (arm_archs): Add armv5tej.
1864
bc89618b
RE
18652002-01-18 Richard Earnshaw <rearnsha@arm.com>
1866
1867 * doc/c-arm.texi: Add new fpe options to list of supported flags.
1868
d193a22a
RE
18692002-01-19 Keith Walker <keith.walker@arm.com>
1870
1871 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
1872
03b1477f
RE
18732002-01-18 Richard Earnshaw <rearnsha@arm.com>
1874
1875 * NEWS: Mention new ARM command-line options and VFP support.
1876
949f2b5c 1877 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
03b1477f
RE
1878 uses changed.
1879 (ARM_CEXT_MAVERICK): Similarly.
1880 (ARM_ANY): Now means any core instruction.
1881 (CPU_DEFAULT): Default to ARM_ANY.
1882 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
1883 (pic_code): Declare for all object types. Make type int.
1884 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
1885 (march_fpu_opt, mfpu_opt): Declare.
1886 (md_longopts): Tidy up conditional definitions.
1887 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
1888 (arm_long_opts): New tables.
1889 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
1890 (arm_parse_extension): New function.
1891 (md_parse_option): Rewrite using new table-driven system.
1892 (md_show_usage): Use new table-driven system.
1893 (md_begin): Calculate cpu_variant from command line option data.
1894 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
1895 command-line options.
1896 * doc/c-arm.texi: Likewise.
1897
2a538ba5
AJ
18982002-01-18 Andreas Jaeger <aj@suse.de>
1899
1900 * as.c (parse_args): Update year.
1901
b1ffc257 19022002-01-17 Timothy Wall <twall@alum.mit.edu>
2a538ba5 1903
b1ffc257
TW
1904 * config/tc-tic54x.c (encode_address): Add a more informative
1905 warning about incorrect syntax.
1906
328577ad
NC
19072002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1908
1909 * po/gas.pot: Regenerate.
1910
06f030db
NC
19112002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1912
1913 * macro.c (get_any_string): Add no-c-format comment to prevent
1914 confusion when translating string.
1915 * gasp.c (get_any_string): Add no-c-format comment to prevent
1916 confusion when translating string.
1917
394f9b3a
TS
19182002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1919 Johannes Stezenbach <js@convergence.de>
1920 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
1921 matched before the shorter ones.
1922 (my_getSmallParser): Fix handling of nested parentheses in
1923 percent_op's. Code cleanup.
1924 (my_getPercentOp): New function, code from my_getSmallParser.
1925 (my_getSmallExpression): Fix handling of closing parentheses.
1926 Code cleanup. Better comments.
1927
af3ae48d
NC
19282002-01-16 Nick Clifton <nickc@redhat.com>
1929
1930 po/tr.po: New file: Turkish translation.
1931 configure.in (LINGUAS): Add "tr".
1932 configure: Regenerate.
1933
bfae80f2
RE
19342002-01-15 Richard Earnshaw <rearnsha@arm.com>
1935
1936 Support for VFP instructions
1937 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
1938 (cp_address_required_here): New argument wb_ok. When false, do not
1939 accept write-back forms of addressing. Change all callers.
1940 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
1941 (FPU_VFP_EXT_V2): Define.
1942 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
1943 Define in terms of above.
1944 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
1945 (vfp_reg): New struct.
1946 (vfp_regs): New array of registers.
1947 (insns): Add VFP instructions.
1948 (sn_table): New array of VFP single-precision register names.
1949 (dn_table): New array of VFP double-precision register names.
1950 (all_reg_maps): Add the new register tables.
1951 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
1952 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
1953 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
1954 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
1955 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
1956 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
1957 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
1958 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
1959 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
1960 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
1961 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
1962 (do_vfp_sp_dp_cvt): New functions.
1963 (md_begin): Set soft-float flag for appropriate VFP work.
1964 (md_atof): Handle VFP-format doubles.
1965 (md_parse_option): Handle VFP command-line options.
1966 (md_show_usage): Display VFP command-line options.
1967
fcd6d8d6
RE
19682002-01-15 Richard Earnshaw <rearnsha@arm.com>
1969
2a538ba5 1970 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
fcd6d8d6
RE
1971 various command line options.
1972
1f7fd478
NC
19732002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1974
1975 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
1976 vtinherit relocs.
1977 (xstormy16_md_apply_fix3): Do not return a value.
1978
21f0f23a
RE
19792002-01-14 Richard Earnshaw <rearnsha@arm.com>
1980
1981 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
1982 the -EL/-EB option that matches the target's endianness.
1983 (md_parse_option): Likewise.
1984
ce058b6c
RE
19852002-01-14 Richard Earnshaw <rearnsha@arm.com>
1986
2a538ba5 1987 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
ce058b6c
RE
1988 is not dependent on ARM_BI_ENDIAN.
1989
f03698e6
RE
19902002-01-14 Richard Earnshaw <rearnsha@arm.com>
1991
1992 * tc-arm.c (all error messages): Normalize capitalization of messages.
1993
1994 * tc-arm.h (md_operand): Delete define.
1995 * tc-arm.c (in_my_get_expression): New static variable.
1996 (my_get_expression): Set and clear it.
1997 (md_operand): New function. If called from my_get_expression
1998 put the error in inst.error.
1999 (output_inst): Now takes argument of instruction being assembled.
2000 Print it out with any error message.
2001 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2002 with '=' syntax.
2003 (end_of_line): Don't update inst.error if it is already set.
2004
e28cd48c
RE
20052002-01-11 Richard Earnshaw <rearnsha@arm.com>
2006
2007 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
2008 op that can be translated into a mvn instruction.
2009
1cd8ff38
NC
20102002-01-11 Steve Ellcey <sje@cup.hp.com>
2011
2012 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2013 setting default md.flags.
2014 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2015 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2016 * gas/config/tc-ia64.c (setup_unwind_header): Add support
2017 for 32 bit unwind info blocks.
2018 (generate_unwind_image): Add support for different types
2019 of unwind images (32 bits and/or big-endian).
2020 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2021 (ia64_target_format): Add support for hpux target formats.
2022 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2023 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2024 SHT_FINI_ARRAY elf section types.
2025
6c43fab6
RE
20262002-01-10 Richard Earnshaw <rearnsha@arm.com>
2027
2028 * tc-arm.c (struct reg_entry): Move before prototypes.
2029 (int_register, cp_register, fp_register): Delete.
2030 (reg_table): Delete. Replaced with ...
2031 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2032 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2033 (mav_dspsc_table): ... one table per register set.
2034 (arm_reg_hsh): Delete.
2035 (struct reg_map): New structure.
2036 (all_reg_maps): New array.
2037 (enum arm_reg_type): New enums.
2038 (build_reg_hsh): New function.
2039 (insert_reg_alias): Use hash table passed by caller. Adjust all
2040 callers.
2041 (create_register_alias): New function, split out from ...
2042 (md_assemble): ... here.
2043 (md_begin): Build new register hash tables.
2044 (arm_reg_parse): New argument for the hash table to search. Adjust all
2045 callers.
2046 (arm_reg_parse_any): New function.
2047 (co_proc_number): Look up the processor number in the processor hash
2048 table.
2049 (cirrus_regtype): Delete.
2050 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2051 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2052 (ARM_EXT_MAVERICKsc_register): Delete.
2053 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2054 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2055 functions.
2056 (do_c_triple_4, do_c_triple_5): Delete.
2057 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2058 (do_c_quad_6): Delete.
2059 (do_c_quad_6[ab]): New functions.
2060 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2061 arguments to use new register parsing methods.
2062 (cirrus_reg_required_here): Likewise.
2063 (insns): Reclassify cirrus maverick worker functions.
2064 (cirrus_valid_reg): Delete.
2065
8d05742f
JT
20662002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2067
2068 * configure.in (sh*le): Set cpu_type=sh and endian=little.
2069 (sh*-*-netbsdelf*): New target.
2070 * configure: Regenerate.
2a538ba5 2071 * tc-sh.h: Update copyright years.
8d05742f
JT
2072 (TARGET_FORMAT): Add version for TE_NetBSD.
2073
ceac3f62
NC
20742002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2075
2076 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2077 negative.
2078
d7861ad2
AM
20792002-01-06 Alan Modra <amodra@bigpond.net.au>
2080
2081 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2082 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2083
7a621144
DJ
20842002-01-05 Daniel Jacobowitz <drow@mvista.com>
2085
2086 * tc-mips.c (mips_cprestore_valid): New flag.
2087 (mips_frame_reg_valid): New flag.
2088 (macro) [M_JAL_2]: Check both flags.
2089 [M_JAL_A]: Likewise.
2090 (s_cprestore): Set mips_cprestore_valid.
2091 (tc_get_register): If setting mips_frame_reg, set
2092 mips_frame_reg_valid and clear mips_cprestore_valid.
2093 (s_mips_ent): Clear both flags.
2094 (s_mips_end): Clear both flags.
2095
7c6beb69
AM
20962002-01-05 Alan Modra <amodra@bigpond.net.au>
2097
2098 * write.c (write_object_file): Make use of bfd_section_list_remove.
2099 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2100 * config/tc-mmix.c (mmix_frob_file): Likewise.
2101
8a8b2d4b
AJ
21022002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2103
2104 * configure.in (i386-*-netbsdelf*): Collapse target into...
2105 (i386-*-netbsd*): ...this. Add support for x86-64.
2106 * configure: Regenerated.
2107
a09cf9bd
MG
21082002-01-03 matthew green <mrg@redhat.com>
2109
2110 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2111
23b7f870
NC
21122002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2113
2114 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2115 NULL frag link.
2116
08d56133
NC
2117For older changes see ChangeLog-0001
2118\f
2119Local Variables:
2120mode: change-log
2121left-margin: 8
2122fill-column: 74
2123version-control: never
2124End:
This page took 0.185437 seconds and 4 git commands to generate.