daily update
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
c2c607a4
AO
12001-12-04 Alexandre Oliva <aoliva@redhat.com>
2
3 * config/tc-d10v.c (write_2_short): Don't skip dummy fixups, so
4 that we can tell which operand refers to the insn put in the L
5 container and mark it as such, so that the relocation type can be
6 adjusted.
7
956cd1d6
TS
82001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
9
10 * config/tc-mips.c (mips_cpreturn_offset): Better comment.
11 (load_register): Better error message. Cast away signedness
12 mismatches. Add casts needed for varargs.
13 (load_address): Replace checks of HAVE_64BIT_ADDRESS with dbl.
14 Remove superfluous casts.
15 (macro): Cast away signedness mismatches. Remove superfluous casts.
16 (s_cpload): Fix wrong comment.
17 (s_mips_weakext): Standardize output message.
18 (get_number): Likewise.
19
7496292d
TS
202001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
21
22 * config/tc-mips.c (append_insn): Add jump address range overflow
23 check.
24
34ba82a8
TS
252001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
26
27 * config/tc-mips.c (md_parse_option): Fix comment. Allow -mabi option
28 for ELF only.
29 (show): Document -mabi option.
30
8350bcd9
NC
312001-12-03 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
32
33 * config/tc-arm.c (md_parse_option): Only clear cpu part when
34 specifying 'xscale' cpu (don't change the fpu part).
35
461448d8
AO
362001-12-04 Alexandre Oliva <aoliva@redhat.com>
37
38 * config/tc-d10v.c (find_opcode): Reject SP operand if
39 OPERAND_NOSP flag is present.
40
d11008e1
EC
412001-12-03 Eric Christopher <echristo@redhat.com>
42
43 * config/tc-mips.c (tc_gen_reloc): One missed BFD_RELOC_MIPS_GPREL.
44
cdf6fd85
TS
452001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
46
47 * config/tc-mips.c (macro_build): Replace BFD_RELOC_MIPS_GPREL
48 by BFD_RELOC_GPREL16.
49 (load_address): Likewise.
50 (macro): Likewise.
51 (md_apply_fix): Likewise. Replace BFD_RELOC_MIPS_GPREL32 by
52 BFD_RELOC_GPREL32.
53 (s_gpword): Replace BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
54 (tc_gen_reloc): Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
55 *config/tc-mips.h: Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
56
55aa1bc4
AO
572001-11-29 Alexandre Oliva <aoliva@redhat.com>
58
3543a2f1
AO
59 * config/tc-d10v.c (get_operands): Emit OPERAND_PLUS for
60 prefix `+'.
61
55aa1bc4
AO
62 * config/tc-d10v.c (find_opcode): Reject non-SP operand if
63 flags requires SP.
64
1000a02a
NC
652001-11-29 Arati Dikey <aratid@kpit.com>
66
67 * tc-sh.c (parse_at): Removed case-sensitivity of index register
68 R8, R9.
69
f7460f5f
JJ
702001-11-28 Jakub Jelinek <jakub@redhat.com>
71
72 * write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used
73 in reloc if it has non-zero addend.
74 * config/tc-alpha.c (tc_gen_reloc): Reinstall SEC_MERGE check.
75 * config/tc-sparc.c (md_apply_fix3): Likewise.
76
acebd4ce
AS
772001-11-28 Andreas Schwab <schwab@suse.de>
78
79 * as.c (parse_args): Call md_after_parse_args if defined.
80 * config/tc-ia64.h (md_after_parse_args): Define.
81 * config/tc-ia64.c (ia64_after_parse_args): Reject --gstabs.
82 * doc/internals.texi (CPU backend): Document md_after_parse_args.
83
f8df10f4
JJ
842001-11-23 Jakub Jelinek <jakub@redhat.com>
85
86 * config/tc-alpha.c (tc_gen_reloc): Remove SEC_MERGE test.
87 * write.c (adjust_reloc_syms): Don't handle relocs against
88 SEC_MERGE section symbols specially.
89 (fixup_segment): Likewise.
90
add55e1f
RS
912001-11-21 Richard Sandiford <rsandifo@redhat.com>
92
93 * config/tc-mips.c (mips_need_elf_addend_fixup): New, extracted from...
94 (md_apply_fix3): ...here. Don't prevent the symbol value being
95 subtracted twice from GPREL addends.
96 (tc_gen_reloc): Add the symbol value to a GPREL addend if it was
97 subtracted by the previous function.
98
a6567fe0
NC
992001-11-20 Nick Clifton <nickc@cambridge.redhat.com>
100
101 * config/tc-avr.c (md_apply_fix3): Fix typo introduced by
102 md_apply_fix3 change.
103
f021c2a7
BE
1042001-11-20 Ben Elliston <bje@redhat.com>
105
106 * config/tc-m88k.c (md_apply_fix3): Match local variable `val' to
107 usage after md_apply_fix3 cleanups.
108
13f7ad58
HPN
1092001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
110
111 * doc/c-mmix.texi: Use texinfo 4 features.
112 (MMIX-mmixal): Fix typo.
113
451a1fc5
HPN
1142001-11-17 Hans-Peter Nilsson <hp@axis.com>
115
116 * config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
117 val assignment.
118
bbe8ef22
AM
1192001-11-16 Alan Modra <amodra@bigpond.net.au>
120
121 * config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.
122
e0ac8af0
L
1232001-11-15 H.J. Lu <hjl@gnu.org>
124
125 * config/tc-hppa.c (md_apply_fix3): Fix a typo.
126
5ce56ab9
L
1272001-11-15 H.J. Lu <hjl@gnu.org>
128
129 * config/tc-alpha.c (md_apply_fix3): Fix a typo.
130
94f592af
NC
1312001-11-15 Nick Clifton <nickc@cambridge.redhat.com>
132
f021c2a7 133 * write.c (fixup_segment): Remove references to md_apply_fix and
94f592af
NC
134 TC_HANDLE_FX_DONE.
135 * cgen.c, config/obj-coff.c, config/tc-*.c: Update all occurances
136 of md_apply_fix to md_apply_fix3.
137 Make all md_apply_fix3 functions void.
138 * cgen.h, config/obj-coff.h, tc-*.h: Remove all definitions of
139 MD_APPLY_FIX3 and TC_HANDLE_FX_DONE.
140 * doc/internals.texi: Update references to md_apply_fix3.
141 * tc.h: Update prototype for md_apply_fix3.
142
c86380b5
AM
1432001-11-15 Alan Modra <amodra@bigpond.net.au>
144
a847613f
AM
145 * config/tc-i386.h (md_end): Define.
146 (i386_elf_emit_arch_note): Declare.
147 (CpuUnknown): Delete.
148 * config/tc-i386.c (default_arch): Constify.
149 (smallest_imm_type): Remove CpuUnknown test.
150 (md_assemble): Don't bother checking cpu_arch_flags non-zero.
151 (i386_elf_emit_arch_note): New function.
152
c86380b5
AM
153 * po/POTFILES.in: Regenerate.
154
645dc66c
TS
1552001-11-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
156
157 * config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
158
802a735e
AM
1592001-11-15 Alan Modra <amodra@bigpond.net.au>
160
33861b11
AM
161 * frags.c (frag_grow): Revert last change.
162
7c2b59d0
AM
163 * dwarf2dbg.c (get_frag_fix): Align last frag size.
164
802a735e
AM
165 * config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size)
166 to operand->insert.
167 (md_assemble): Likewise.
168
c1a44b08
NC
1692001-11-12 Nick Clifton <nickc@cambridge.redhat.com>
170
171 * frags.c (frag_grow): Use frag_make_room() to grow the
172 obstack.
173
42ebd756
NC
1742001-11-14 Nick Clifton <nickc@cambridge.redhat.com>
175
176 * config/tc-sparc.c (md_apply_fix3): Do not remove the symbol's
177 value from the addend for fixups against local symbols in
178 SEC_MERGE sections - it was not added in, in the first place.
179
6e917903
TW
1802001-11-11 Timothy Wall <twall@alum.mit.edu>
181
182 * write.c (relax_segment): Convert symbol address into an octet
183 offset prior to adding to the frag address, which is an octet
184 offset. Add comments to that effect.
185 * config/tc-tic54x.c: Fix bugs causing tests to fail.
186 * config/tc-tic54x.h: Ditch PARAMS macro.
d11008e1 187
e4afe742
AM
1882001-11-13 Alan Modra <amodra@bigpond.net.au>
189
190 * config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
191 put in note section. Use sizeof instead of hard-coded constants.
192
ae948b86
TS
1932001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
194
195 * config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
196 (md_longopts): Allow OPTION_MABI for ELF compilation only. RE-allow
197 OPTION_GP32, OPTION_GP64, OPTION_FP32 for non-ELF compilation.
198 Sort options a bit more logical.
199 (md_parse_option): Allow OPTION_32, OPTION_N32, OPTION_N64,
200 OPTION_MABI only for elf targets.
201
2396cfb9
TS
2022001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
203
204 * config/tc-mips.c (set_at): Add cast needed for varargs.
205 (load_register): Likewise.
206 (macro): Likewise. Some code reformatting.
207 (macro2): Add cast needed for varargs.
208 (mips16_macro): Likewise.
209
c4e7957c
TS
2102001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
211
212 * config/tc-mips.c (md_assemble): Remove superflous casts.
213 (append_insn): Likewise.
214 (mips16_macro_build): Likewise.
215 (macro): Likewise.
216 (mips16_ip): Likewise.
217 (s_cpload): Likewise.
218 (mips_relax_frag): Likewise.
219
a325df1d
TS
2202001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
221
222 * config/tc-mips.c (mips_abi_level): Move in front of
223 mips_set_options.
224 (mips_set_options): Add members gp32, fp32, abi.
225 (file_mips_gp32): New flag.
226 (file_mips_fp32): New flag.
227 (mips_opts): Initialize the new members.
228 (mips_gp32): Remove.
229 (mips_fp32): Remove.
230 (HAVE_32BIT_GPRS): Use the new values from mips_opts.
231 (HAVE_32BIT_FPRS): Likewise.
232 (HAVE_NEWABI): Likewise.
233 (HAVE_64BIT_OBJECTS): Likewise.
234 (md_begin): Likewise. Save default (file) values.
235 (md_parse_option): Use the new values from mips_opts.
236 (s_mipsset): Likewise. Fix logic to keep the ABI selection if
237 possible. Let .set mipsN work together with .set push/pop.
238 Enhance error messages.
239 (mips_elf_final_processing): Use file_mips_* for header processing.
240
1f8ae5e6
DC
2412001-11-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
242
243 * config/tc-avr.c (mcu_types): Update for new devices.
244
e4afe742 2452001-11-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
a4fb0134
SC
246
247 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
248 the page man title.
249 * doc/Makefile.in: Rebuild.
250 * doc/as.texinfo: Do not put man SEEALSO in document;
251 Use @command for commands, @option for options; Reorganize usage
252 to clearly identify target specific options.
253
d993a84e
TS
2542001-11-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
255
256 * config/tc-mips.c (mips_force_relocation): Remove duplicate code.
257
76b3015f
EC
2582001-11-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
259
260 * config/tc-mips.c (my_getSmallParser): Fix small parser bug.
261
b8edc45c
MS
2622001-11-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
263
264 * config/tc-s390.c (tc_s390_force_relocation): Force all relocations
265 that need the global offset table.
266 (md_apply_fix3): Add code to undo opertions done in fixup_segment
267 triggered by TC_FORCE_RELOCATION.
268 * config/tc-s390.h (TC_FORCE_RELOCATION): Replace macro code with
269 a call to function tc_s390_force_relocation.
270 (TC_FIX_ADJUSTABLE): Define.
271
9fb9af6e
CD
2722001-11-04 Chris Demetriou <cgd@broadcom.com>
273
274 * configure.in (mips-*-netbsd*): Add support for target.
275 * configure: Regenerate.
276
db94471d
NC
2772001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
278
279 * configure.in (ALL_LINGUAS): Add 'fr'.
280 * configure: Regernate.
281 * po/fr.po: New file. Obtained from the translation project web
282 site.
283
2842001-11-02 Richard Earnshaw <rearnsha@arm.com>
c9b604bd
RE
285
286 * tc-arm.c: Re-arrange prototypes by architecture.
287 (insns): Re-arrange instructions by archtitecture. Pld instruction
288 is part of ARMv5E.
289 (tinsns): blx and bkpt are part of ARMv5T.
290 (do_fp_{ctrl,ldst,ldstm,dyadic,monadic,cmp,from_reg,to_reg}): Rename
291 to do_fpa_*. All callers changed.
292
76b3015f 293 * tc-arm.c (insns): Add two temporary instructions to handle
c9b604bd
RE
294 ldrd/strd.
295
4fe7ef96
SC
2962001-11-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
297
298 * config/tc-m68hc11.c (build_jump_insn): Allocate worst case storage
299 for bra/bsr and use frag_variant(), this ensure that the possible
300 16-bit BFD_RELOC_16 will be in the same frag.
301
afdbd6d0
CD
3022001-10-31 Chris Demetriou <cgd@broadcom.com>
303
304 * config/tc-mips.c (HAVE_32BIT_ADDRESSES): If compiling embedded
305 PIC code, assume pointers the same size as GPRs.
306 (macro): In M_LA_AB handling for embedded PIC code, support
307 "la $treg,foo-bar($breg)". In load/store handling
308 (label ld_st) support "<op> $treg,<sym>-<local_sym>($breg)"
309 which is used by the compiler for switch statements.
310 In load/store double multi-instruction macro handling
311 (label ldd_std) add a comment that no special handling
312 is currently done for embedded PIC.
313 (mips_ip): In 'o' (16-bit offset) case, only accept 16
314 bit offsets.
315
b89dddec
RE
3162001-10-31 Richard Earnshaw <rearnsha@arm.com>
317
318 General cleanup of feature definitions.
319 * tc-arm.c (ARM_EXT_LONGMUL, ARM_EXT_HALFWORD, ARM_EXT_THUMB): Delete.
320 (ARM_2UP, ARM_ALL, ARM_3UP, ARM_6UP): Delete.
321 (FPU_CORE, FPU_FPA10, FPA_FPA11, FPU_ALL, FPA_MEMMULTI): Delete.
322 (ARM_EXT_V{1,2,2S,3,3M,4,4T,5T,5ExP}): New defines.
323 (ARM_EXT_V{5,5E}): Synchronize with above.
324 (ARM_ARCH_V*): Define a complete set in terms of above features.
325 (ARM_{1,2,3,250,6,7,8,9,STRONG}): Define in terms of architecture.
326 (FPU_FPA_EXT_V[12]): Define.
327 (FPU_ARCH_FPE, FPU_ARCH_FPA): Define in terms of above.
328 (FPU_ANY): Define.
329 (FPU_DEFAULT): Default to FPA.
330 (CPU_DEFAULT): For XScale, this is now just ARM_ARCH_XSCALE; for
331 Thumb, this is now ARM_ARCH_V5T.
332 (insns): Rework for new feature defines.
333 (tinsns): Likewise.
334 (opcode_select, do_ldst, md_begin, md_parse_option): Likewise.
335
7649aa50
NC
3362001-10-31 NIIBE Yutaka <gniibe@m17n.org>
337
338 * configure.in: Handle sh*eb-*-linux* and sh*-*-linux*.
339 * configure: Regenerate.
340 * Makefile.in: Regenerate.
341 * doc/c-sh.texi (SH Options): Added descriptions.
342
3c3bdf30
NC
3432001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
344
345 * configure.in: Update for MMIX port.
346 * Makefile.am: Ditto. Regenerate dependencies.
347 * Makefile.in: Regenerate.
348 * configure: Regenerate.
349 * config/tc-mmix.h, config/tc-mmix.c: New files.
350 * doc/Makefile.am (CPU_DOCS): Add c-mmix.texi
351 * doc/Makefile.in: Regenerate.
352 * doc/all.texi: @set MMIX.
353 * doc/as.texinfo: Ditto. Add MMIX gas manpage option overview.
354 Include c-mmix.texi.
355 * doc/c-mmix.texi: New file.
356
0a758a12
CD
3572001-10-24 Chris Demetriou <cgd@broadcom.com>
358
359 * config/tc-mips.c (hilo_interlocks, cop_interlocks): Make
360 these evaluate to true if mips_arch indicates SB-1.
361
6c19f338
AM
3622001-10-23 Alan Modra <amodra@bigpond.net.au>
363
364 * as.c (parse_args): Print the date as well for --version.
365
2e4acd24
CD
3662001-10-20 Chris Demetriou <cgd@broadcom.com>
367
368 * config/tc-mips.c (md_show_usage): Print "sb1" for Broadcom
369 SB-1 CPU for consistency.
370 (mips_cpu_info_table): Tweak comment about SB-1.
371
8420dfca
L
3722001-10-20 H.J. Lu <hjl@gnu.org>
373
374 * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
375 (cirrus_parse_offset): Likewise.
376
da89cce1
NC
3772001-10-19 Nick Clifton <nickc@cambridge.redhat.com>
378
379 * config/tc-arm.c: Restore line_comment_chars.
380
f57c81f6
NC
3812001-10-18 Nick Clifton <nickc@cambridge.redhat.com>
382
383 * config/tc-arm.c (comment_chars): Remove semi-colon accidentally
384 added to the list.
385
e5eeb0dd 3862001-10-18 Hans-Peter Nilsson <hp@bitrange.com>
7e9250a3
HPN
387
388 * write.c (fixup_segment): Handle fixups for SEC_MERGE sections as
389 for undefined symbols.
390
4058e45f
CD
3912001-10-17 Chris Demetriou <cgd@broadcom.com>
392
393 * doc/as.texinfo (MIPS ISA options): Added accidentally
394 omitted "-mips64" option to list of options.
395
f5c120c5
MG
3962001-10-17 matthew green <mrg@redhat.com>
397
398 * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
399 -m7410, -m7450 and -m7455 options.
400
15c1449b
AM
4012001-10-17 Alan Modra <amodra@bigpond.net.au>
402
403 * config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
404 (ppc_size): Select PPC_OPCODE_64 if 64 bit.
405 (md_begin): Don't set ppc_size here.
406 (ppc_target_format): Test ppc_size as well as BFD_DEFAULT_TARGET_SIZE.
407 (md_shortopts): Constify.
408 (md_longopts): Likewise.
409 (md_longopts_size): Likewise.
410 (ppc_elf_suffix): Only allow 64-bit relocs when ppc_size specifies
411 64-bit opcodes.
412 (ppc_machine): Explain why this function is a nop.
413
c1e4eef7
AM
4142001-10-17 Alan Modra <amodra@bigpond.net.au>
415
d3ecfc59
AM
416 * bit_fix.h: Comment typo fix.
417 * config/tc-mips.c: Likewise.
418 * config/tc-sh.c: Likewise.
419 * config/tc-arc.c (arc_code_symbol): Remove unnecessary test.
420
c1e4eef7
AM
421 * configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
422 that autoheader doesn't duplicate config.in entries.
423 (DEFAULT_ARCH): Ditto.
424 * configure: Regenerate.
425 * config.in: Regenerate.
426
18566f55
AM
4272001-10-16 Alan Modra <amodra@bigpond.net.au>
428
429 From Andrew Pines <apines@cosmodog.com>
430 * config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
431
05982cac
HPN
4322001-10-16 NIIBE Yutaka <gniibe@m17n.org>,
433 Hans-Peter Nilsson <hp@bitrange.com>
434
435 * config/tc-sh.c (shl): Remove.
436 (big): New function.
437 (little): Remove shl handling. Emit error for endian mismatch.
438 (md_show_usage): Add description of -big.
439 (md_parse_option): Handle OPTION_BIG. Remove shl handling.
440 (OPTION_BIG): Add.
441 (md_pseudo_table): Add .big.
442 (md_longopts): Add -big.
443 (md_begin): Don't set target_big_endian here.
444 * config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove.
445 (LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian.
446 (shl): Remove.
447 * configure.in (endian): Default is big.
448 (sh-*-pe*): Little endian.
449 (cpu_type): Set sh for target sh*.
450 * configure: Regenerate.
451
e369bcce
TS
4522001-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
453
454 * config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
455 relocations.
456
232431a0
NC
4572001-10-13 Nick Clifton <nickc@cambridge.redhat.com>
458
05d2d07e
NC
459 * config/tc-arm.c: Replace CONST with const.
460
232431a0
NC
461 * cgen.c: Tidy up formatting.
462
418c1742
MG
4632001-10-12 matthew green <mrg@redhat.com>
464
465 * config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455
466 flags, equivalent to -m7400. New -maltivec to enable AltiVec
467 instructions. New -mbook64 and -mbooke/-mbooke32 flags to enable
468 64-bit and 32-bit BookE support, respectively. Change -m403 and
469 -m405 to set PPC403 option.
470 (md_show_usage): Adjust for new options.
471 * doc/all.texi: Set PPC.
472 * doc/as.texinfo: Add PPC support and pull in c-ppc.texi.
473 * doc/c-ppc.texi: New file.
474 * doc/Makefile.am (CPU_DOCS): Add c-ppc.texi.
475 * doc/Makefile.in: Regenerate.
476
65bf64b3
NC
4772001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
478
7f28ab9d
NC
479 * read.c (s_bad_endr): New function. Issues a warning message
480 about a bad use of the .rept pseudo op.
481 (po_table[]): Add .endr.
482 * read.h: Prototype s_bad_endr.
483
65bf64b3
NC
484 * CONTRIBUTORS: Update contact email address.
485
b6ff326e
KH
4862001-10-11 Kazu Hirata <kazu@hxi.com>
487
488 * config/tc-alpha.c: Fix comment typos.
489 * config/tc-cris.c: Likewise.
490 * config/tc-hppa.c: Likewise.
491 * config/tc-i370.c: Likewise.
492 * config/tc-mips.c: Likewise.
493 * config/tc-mn10200.c: Likewise.
494 * config/tc-mn10300.c: Likewise.
495 * config/tc-sh.c: Likewise.
496 * config/tc-tahoe.c: Likewise.
497 * config/tc-v850.c: Likewise.
498
3b37fd66
KH
4992001-10-11 Kazu Hirata <kazu@hxi.com>
500
501 * app.c: Fix comment typos.
502 * bit_fix.h: Likewise.
503 * expr.c: Likewise.
504 * itbl-ops.c: Likewise.
505
685bd869
NC
5062001-10-11 Nick Clifton <nickc@cambridge.redhat.com>
507
508 * input-file.c: Include safe-ctype.h.
509 (input_file_open): Use ISSPACE instead of isspace.
510
6478892d
TS
5112001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
512
513 * config/tc-mips.c (mips_cpreturn_offset): New variable.
514 (mips_cpreturn_register): Likewise.
515 (mips_gp_register): Likewise.
516 (s_cpsetup): New function prototype.
517 (s_cplocal): Likewise.
518 (s_cpreturn): Likewise.
519 (s_gpvalue): Likewise.
520 (mips_pseudo_table): Add .cpsetup, .cplocal, .cpreturn, .gpvalue
521 pseudo-ops.
522 (macro): Don't warn about .cprestore for NewABI.
523 (md_pcrel_from): Code cleanup.
524 (mips_force_relocation): Force output of some NewABI relocations even
525 without a defined symbol.
526 (s_cpload): Ignore .cpload for NewABI.
527 (s_cpsetup): Handle .cpsetup.
528 (s_cplocal): Handle .cplocal.
529 (s_cprestore): Ignore .cprestore for NewABI.
530 (s_cpreturn): Handle .cpreturn.
531 (s_gpvalue): Handle .gpvalue.
532 (s_cpadd): Ignore .cpadd for NewABI.
533 (nopic_need_relax): Take g_switch_value into account as gp
534 optimization.
535 (tc_gen_reloc): Don't handle BFD_RELOC_MIPS_{CALL,GOT}* for NewABI.
536
ad8d3bb3
TS
5372001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
538
539 * config/tc-mips.c (my_getSmallParser): New function prototype.
540 (small_ex_type): Named this enum, more return values for
541 my_getSmallExpression.
542 (mips_ip): Allow SPC and HT between arguments. Handle some NewABI
543 triple relocations. Protect some parts with ifdef OBJ_ELF.
544 (percent_op_match): New struct, lookup table for %some_reloc().
545 (my_getSmallParser): New function, parses nested percent_ops also.
546 (my_getSmallExpression): Rewite to support nested percent_ops.
547
d6bc6245
TS
5482001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
549
550 * config/tc-mips.c
551 (load_address): Support both 32- and 64-bit addresses.
552 (macro): Call load_register correctly. Expand 64-bit loads ans stores.
553 (macro2): Call load_address correctly.
554
a5d2034a
NC
5552001-10-09 Christian Groessler <cpg@aladdin.de>
556
557 * config/tc-z8k.c: Include opcodes/z8k-opc.h after bfd.h
558 since z8k-opc.h now uses the PARAMS macro.
559
90f9b791
AH
5602001-10-09 Aldy Hernandez <aldyh@redhat.com>
561
562 * config/tc-arm.c: Change MAVERIK to MAVERICK.
563
aa1f4858
AM
5642001-10-09 Alan Modra <amodra@bigpond.net.au>
565
566 * config/obj-elf.c: Make use of elf_group_name and elf_next_in_group
567 throughout file.
568 (obj_elf_change_section): Rename "group" to "group_name".
569 (obj_elf_section): Likewise.
570 (elf_frob_file): Don't use sec->lineno for SHT_GROUP section to store
571 first member section; Instead use elf_next_in_group.
572
060adf0e
AM
5732001-10-09 Alan Modra <amodra@bigpond.net.au>
574
575 * config/obj-elf.c: (obj_elf_change_section): Add "group" param.
576 Set elf_section_data group from it. Warn if group name changed.
577 (obj_elf_parse_section_letters): Parse 'G' too.
578 (obj_elf_section): Parse group name.
579 (struct group_list): New.
580 (build_group_lists): New function.
581 (elf_frob_file): Create SEC_GROUP section(s).
582
583 * config/obj-elf.c: (elf_copy_symbol_attributes): Zap trailing
584 whitespace.
585
8913d9db
AH
5862001-10-08 Aldy Hernandez <aldyh@redhat.com>
587
588 * doc/arm/c-arm.texi (ARM Options): Add arm9e documentation.
589
404ff6b5
AH
590 * config/tc-arm.c (ARM_EXT_MAVERIK): New macro.
591 (cirrus_regtype): New enum.
592 (LONGEST_INST): Change to 10.
593 (CIRRUS_MODE1): New.
594 (CIRRUS_MODE2): New.
595 (CIRRUS_MODE3): New.
596 (CIRRUS_MODE4): New.
597 (CIRRUS_MODE5): New.
598 (CIRRUS_MODE6): New.
599 (insns): Add cirrus dsp instructions.
600 (ARM_EXT_MAVERIKSC_REG): New.
601 (cirrus_register): New.
602 (cirrus_mvf_register): New.
603 (cirrus_mvd_register): New.
604 (cirrus_mvfx_register): New.
605 (cirrus_mvdx_register): New.
606 (cirrus_mvax_register): New.
607 (ARM_EXT_MAVERIKsc_register): New.
608 (reg_table): Add cirrus registers.
609 (cirrus_valid_reg): New.
610 (cirrus_reg_required_here): New.
611 (do_c_binops_1): New.
612 (do_c_binops_2): New.
613 (do_c_binops_3): New.
614 (do_c_triple_4): New.
615 (do_c_triple_5): New.
616 (do_c_quad_6): New.
617 (do_c_dspsc_1): New.
618 (do_c_dspsc_2): New.
619 (do_c_shift_1): New.
620 (do_c_shift_2): New.
621 (do_c_ldst_1): New.
622 (do_c_ldst_2): New.
623 (do_c_ldst_3): New.
624 (do_c_ldst_4): New.
625 (do_c_binops): New.
626 (do_c_triple): New.
627 (do_c_quad): New.
628 (do_c_dspsc): New.
629 (do_c_shift): New.
630 (cirrus_parse_offset): New.
631 (do_c_ldst): New.
632 (md_parse_option): Add arm9e.
633 (md_show_usage): Same.
634
8642cce8
TR
6352001-10-08 Tom Rix <trix@redhat.com>
636
76b3015f 637 * config/tc-ppc (ppc_bf, ppc_biei) : Set first .bi lineno value to
8642cce8
TR
638 location of next .bf
639 * config/obj-coff.c (coff_frob_symbol) : XCOFF does not use endndx.
640
6ce8b369
AM
6412001-10-07 Alan Modra <amodra@bigpond.net.au>
642
643 * config/obj-elf.c: Standardize error/warning messages - don't
644 capitalise, no final period or newline, don't say "ignoring" for
645 as_bad messages. In some cases, change the wording to that used
646 elsewhere for similar messages.
647 (obj_elf_section_name): New function, split out from ..
648 (obj_elf_section): .. here. Correctly mask off SHF_MERGE if
649 entsize not specified.
650
ec38dd05
JJ
6512001-10-05 Jakub Jelinek <jakub@redhat.com>
652
653 * doc/as.texinfo: Document M and S ELF section flags.
654
ebeb9253
AM
6552001-10-05 Alan Modra <amodra@bigpond.net.au>
656
657 * subsegs.c (subseg_text_p): Return 0 for absolute section.
658 * read.c (do_align): If in absolute section, warn about and ignore
659 non-zero fill pattern.
660
7dc8f5ce
AO
6612001-10-05 Alexandre Oliva <aoliva@redhat.com>
662
663 * config/tc-mn10300.c (tc_gen_reloc): Don't free
664 reloc->sym_ptr_ptr if it's not allocated.
665
f6688943
TS
6662001-10-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
667
668 * config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
669 relocation triple.
670 (prev_insn_fixp): Likewise.
671 (append_insn): Changed prototype to accept a relocation pointer.
672 (imm_reloc): Make it an array.
673 (offset_reloc): Likewise.
674 (md_assemble): Handle triple relocations.
675 (append_insn): Likewise. Add handling for some NewABI relocations.
676 (mips_no_prev_insn): Handle triple relocations.
677 (macro_build): Likewise. Add handling for some NewABI relocations.
678 Move handling for the 'u' case to append_insn().
679 (mips16_macro_build): Handle triple relocations.
680 (macro_build_lui): Likewise. Don't handle _gp_disp as special symbol
681 for NewABI.
682 (mips_ip): Handle triple relocations.
683 (mips16_ip): Likewise.
684 (mips_force_relocation): Force handling of triple relocations
685 without symbols for NewABI.
686 (md_apply_fix): Add handling for some NewABI relocations.
687
1ae00879
AM
6882001-10-05 Alan Modra <amodra@bigpond.net.au>
689
690 * config/tc-i386.c (parse_register): If not producing code for
691 x86_64, reject x86_64 register name matches.
692 (md_assemble): Remove now redundant check for x86_64 regs.
693
9c7977b3
AM
6942001-10-04 Alan Modra <amodra@bigpond.net.au>
695
696 * config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
697 as BFD_DEFAULT_TARGET_SIZE.
698 (ppc_tc): Likewise.
699 (ppc_is_toc_sym): Likewise.
700 (md_apply_fix3): Likewise.
701
e013f690
TS
7022001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
703
704 * config/tc-mips.c (mips_64): Remove.
705 (mips_target_format): Move downwards in file, use HAVE_64BIT_OBJECTS
706 in it.
707 (mips_abi_level, mips_abi): New enum.
708 (mips_32bit_abi): Remove.
709 (HAVE*PRS): Use mips_abi instead of mips_32bit_abi.
710 (HAVE_NEWABI): New define.
711 (HAVE_64BIT_OBJECTS): New define.
712 (HAVE_32BIT_ADDRESSES): Don't return true for 64bit objects.
713 (HAVE_64BIT_ADDRESSES): New define, inverse of HAVE_32BIT_ADDRESSES.
714 (support_64bit_objects): New prototype.
715 (md_begin): Use mips_abi instead of mips_32bit_abi. Don't write
716 .reginfo section for n32, use .MIPS.options instead.
717 (support_64bit_objects): New function, code from md_parse_option.
718 (md_longopts): Add -n32 option.
719 (md_parse_option): Use mips_abi instead of mips_32bit_abi/mips64.
720 Add -n32 option. Protect with OBJ_ELF.
721 (s_mipsset): Use mips_abi instead of mips_32bit_abi.
722 (mips_elf_final_processing): Likewise. Don't write .reginfo section
723 for n32, use .MIPS.options instead.
724
fcd8210c
AM
7252001-10-03 Alan Modra <amodra@bigpond.net.au>
726
181ddcac 727 * po/POTFILES.in: Regenerate.
fcd8210c
AM
728 * configure: Regenerate.
729
403487ec
AM
7302001-10-02 Alan Modra <amodra@bigpond.net.au>
731
32a5aae2
AM
732 * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
733 bits if target is 64 bit.
734
f97d5f7c
AM
735 * doc/as.texinfo (listing): Fix typo.
736
403487ec
AM
737 * as.c (print_version_id): Use BFD_VERSION_STRING in place of
738 BFD_VERSION.
739 * Makefile.am (Makefile): Depend on bfd/configure.in.
740 Run "make dep-am".
741 * Makefile.in: Regenerate.
742
34105363
L
7432001-09-30 H.J. Lu <hjl@gnu.org>
744
745 * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
746 and "ams" for compatibility.
747
79ad6e94 7482001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
ef17112f
HPN
749
750 * config/tc-sh.c (md_pcrel_from_section): Transformed from
751 md_pcrel_from. Handle pc-relativeness against link-time
752 symbol. Handle relativeness to elsewhere than the fixup.
79ad6e94
HPN
753 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
754 (md_pcrel_from_section): Prototype.
528a2d4a
HPN
755
756 * Makefile.am: Update dependencies with "make dep-am".
757 * Makefile.in: Regenerate.
758
27302d63
SC
7592001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
760
761 * config/tc-m68hc11.c (cmp_opcode): Define prototype.
762 (print_opcode_format, skip_whites): Likewise.
763 (convert_branch, m68hc11_new_insn): Likewise.
764 (build_dbranch_insn, build_indexed_byte): Likewise.
765 (build_reg_mode, find, find_opcode): Likewise.
766 (print_insn_format): Fix call to print_opcode_format.
767 (md_assemble): Fix call to build_dbranch_insn.
768
2c20dfb2
NC
7692001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
770
771 * config/tc-arm.c: Add missing prototypes.
772
1fd716b9
JJ
7732001-09-26 Jeff Johnston <jjohnstn@redhat.com>
774
775 * input-file.c (input_file_open): When reading the
776 first line looking for #NO_APP, prepare for the possibility
777 of finding #APP instead. Also fix algorithm to allow
778 white-space to follow either #NO_APP or #APP directives.
779
97735a42
AM
7802001-09-25 Geoff Berry <geoff.berry@bops.com>
781
782 * listing.c (buffer_line): Don't write past the end of `line' when
783 EOF is reached.
784
6e22e505
AO
7852001-09-25 Alexandre Oliva <aoliva@redhat.com>
786
787 * config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
788 relocation for differences between symbols in a section other
789 than the one in which the difference is to be placed; apply
790 the relocation instead.
791
89b57c9a
NC
7922001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
793
794 * config/tc-arc.c: Add missing prototype.
795 (md_atof): Change type to int. Add missing prototype.
796 * config/tc-arc.h: Prototype exported functions.
797
a80076a1
NC
7982001-09-22 Nick Clifton <nickc@cambridge.redhat.com>
799
800 * as.c: Add missing function prototype.
801 * config/obj-aout.c: Fix compile time warning.
802
7146a6f5
AM
8032001-09-21 Bruno Haible <haible@clisp.cons.org>
804
805 * config/tc-openrisc.c: Don't include <ctype.h>.
806
16a419ba
NC
8072001-09-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
808
809 * gas/config/tc-s390.c: Add option -mwarn-areg-zero.
810
44addf7f
AM
8112001-09-19 Alan Modra <amodra@bigpond.net.au>
812
813 * config/tc-i370.c: Fix typo in last change.
814
2d5aaba0
NC
8152001-09-19 Nick Clifton <nickc@cambridge.redhat.com>
816
817 * doc/as.texinfo (Symbol Names): Improve documentation on local
818 labels and add documenation about dollar labels.
819
3882b010
L
8202001-09-18 Bruno Haible <haible@clisp.cons.org>
821
822 * as.h: Don't include <ctype.h>.
823 * as.c (main): For gettext, also set the LC_CTYPE locate facet.
824 * atof-generic.c: Include "safe-ctype.h" instead of <ctype.h>.
825 (atof_generic): Use ISDIGIT instead of isdigit.
826 * config/m68k-parse.y: Include "safe-ctype.h".
827 (yylex): Use ISDIGIT/ISALNUM instead of isdigit/isalnum.
828 * config/obj-elf.c: Include "safe-ctype.h".
829 (obj_elf_vtable_inherit): Use ISSPACE instead of isspace.
830 * config/obj-vms.c: Include "safe-ctype.h".
831 (Write_VMS_MHD_Records): Use TOUPPER instead of islower/toupper.
832 (VMS_Case_Hack_Symbol): Use ISUPPER/ISLOWER/TOUPPER/TOLOWER
833 instead of isupper/islower/toupper/tolower.
834 * config/tc-a29k.c: Include "safe-ctype.h" instead of <ctype.h>.
835 (insert_sreg): Use TOUPPER instead of islower/toupper.
836 (machine_ip): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead of
837 isalpha/isalnum/isupper/tolower.
838 (a29k_unrecognized_line, md_operand): Use ISDIGIT instead of
839 isdigit.
840 * config/tc-alpha.c: Include "safe-ctype.h" instead of <ctype.h>.
841 (md_undefined_symbol, s_alpha_ent): Use ISDIGIT instead of isdigit.
842 * config/tc-arc.c: Include "safe-ctype.h" instead of <ctype.h>.
843 (md_assemble): Use ISSPACE/ISALNUM instead of isspace/isalnum.
844 (arc_extoper): Use TOLOWER instead of isupper/tolower.
845 * config/tc-arm.c: Include "safe-ctype.h" instead of <ctype.h>.
846 (arm_psr_parse): Use ISALPHA instead of isalpha.
847 (accum0_required_here): Use ISALNUM instead of isalnum.
848 (do_ldrd): Use ISSPACE instead of isspace.
849 (decode_shift): Use ISALPHA instead of isalpha.
850 (insert_reg): Use TOUPPER instead of islower/toupper.
851 (arm_reg_parse): Use ISALPHA instead of isalpha.
852 (arm_parse_reloc): Use ISALNUM/ISPUNCT/TOLOWER instead of
853 isalnum/ispunct/tolower.
854 * config/tc-avr.c: Include "safe-ctype.h" instead of <ctype.h>.
855 (md_parse_option): Use TOLOWER instead of tolower.
856 (avr_operand): Use ISDIGIT/TOLOWER instead of isdigit/tolower.
857 * config/tc-cris.c: Include "safe-ctype.h" instead of <ctype.h>.
858 (cris_process_instruction): Use ISLOWER instead of islower.
859 (get_gen_reg): Use ISALNUM/ISDIGIT instead of isalnum/isdigit.
860 (get_spec_reg): Use TOLOWER/ISALNUM instead of isupper/tolower/isalnum.
861 (get_flags): Use ISSPACE instead of isspace.
862 * config/tc-d10v.c: Include "safe-ctype.h" instead of <ctype.h>.
863 (do_assemble): Use TOLOWER instead of tolower.
864 * config/tc-d30v.c: Include "safe-ctype.h" instead of <ctype.h>.
865 (do_assemble): Use TOLOWER instead of tolower.
866 (d30v_start_line): Use ISSPACE instead of isspace.
867 * config/tc-fr30.c: Include "safe-ctype.h" instead of <ctype.h>.
868 (fr30_is_colon_insn): Use TOLOWER instead of tolower.
869 * config/tc-h8300.c: Include "safe-ctype.h" instead of <ctype.h>.
870 (skip_colonthing, get_operand): Use ISDIGIT instead of isdigit.
871 * config/tc-h8500.c: Include "safe-ctype.h" instead of <ctype.h>.
872 (start_label): Use ISALPHA instead of isalpha.
873 * config/tc-hppa.c: Include "safe-ctype.h" instead of <ctype.h>.
874 (pa_ip): Use ISUPPER/ISLOWER/TOLOWER instead of
875 isupper/islower/tolower.
876 (pa_parse_number): Use ISDIGIT instead of isdigit.
877 (pa_chk_field_selector): Use TOLOWER instead of tolower.
878 (pa_stringer): Use ISDIGIT instead of isdigit.
879 * config/tc-i370.c: Include "safe-ctype.h" instead of <ctype.h>.
880 (register_name): Use ISALPHA instead of isalpha.
881 (i370_elf_suffix): Use ISALNUM/TOLOWER instead of
882 isalnum/islower/tolower.
883 (i370_addr_offset): Use ISDIGIT/ISALPHA instead of
884 isdigit/isalpha.
885 (i370_addr_cons): Use ISALPHA/ISXDIGIT instead of
886 isalpha/isxdigit.
887 (md_assemble): Use ISSPACE instead of isspace.
888 * config/tc-i386.c: Include "safe-ctype.h" instead of <ctype.h>.
889 (md_begin): Use ISDIGIT/ISLOWER/ISUPPER/TOLOWER/ISALPHA
890 instead of isdigit/islower/isupper/tolower/isalpha.
891 (output_invalid): Use ISPRINT instead of isprint.
892 * config/tc-i860.c: Include "safe-ctype.h" instead of <ctype.h>.
893 (i860_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
894 * config/tc-i960.c: Include "safe-ctype.h" instead of <ctype.h>.
895 (get_args): Use ISALNUM instead of isalnum.
896 * config/tc-ia64.c: Include "safe-ctype.h".
897 (dot_pred_rel): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
898 (ia64_unrecognized_line): Use ISDIGIT instead of isdigit.
899 (ia64_parse_name): Likewise.
900 * config/tc-m32r.c: Include "safe-ctype.h" instead of <ctype.h>.
901 (assemble_two_insns): Use ISSPACE/ISALNUM/ISUPPER/TOLOWER
902 instead of isspace/isalnum/isupper/tolower.
903 * config/tc-m68hc11.c: Include "safe-ctype.h" instead of <ctype.h>.
904 (md_assemble): Use TOLOWER/ISALNUM instead of tolower/isalnum.
905 * config/tc-m68k.c: Include "safe-ctype.h" instead of <ctype.h>.
906 (mklower_table): Remove variable.
907 (mklower): Remove macro.
908 (insert_reg): Use TOUPPER instead of islower/toupper.
909 (md_begin): Remove initialization of mklower_table.
910 (s_reg): Use ISALNUM instead of isalnum.
911 (mri_assemble): Use ISUPPER/TOLOWER instead of isupper/tolower.
912 (parse_mri_condition): Use TOLOWER instead of isupper/tolower.
913 (build_mri_control_operand): Use TOLOWER instead of tolower.
914 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
915 * config/tc-m88k.c: Include "safe-ctype.h" instead of <ctype.h>.
916 (md_assemble): Use ISSPACE instead of isspace.
917 (get_imm16): Use ISALNUM instead of isalnum.
918 (get_cnd): Use ISDIGIT/ISUPPER/TOLOWER instead of
919 isdigit/isupper/tolower.
920 (get_bf_offset_expression): Use ISALPHA/ISUPPER/TOLOWER
921 instead of isalpha/isupper/tolower.
922 (hexval): Use ISDIGIT/ISLOWER/ISUPPER instead of
923 isdigit/islower/isupper.
924 * config/tc-mcore.c: Include "safe-ctype.h" instead of <ctype.h>.
925 (mcore_s_section): Use ISSPACE instead of isspace.
926 (parse_reg): Use ISSPACE/TOLOWER/ISALNUM instead of
927 isspace/tolower/isalnum.
928 (parse_creg): Use ISSPACE/TOLOWER instead of isspace/tolower.
929 (parse_psrmod): Use TOLOWER instead of isascii/tolower.
930 (parse_exp, parse_mem, md_assemble): Use ISSPACE instead of
931 isspace.
932 * config/tc-mips.c: Include "safe-ctype.h" instead of <ctype.h>.
933 (mips_ip): Use ISSPACE/ISDIGIT instead of isspace/isdigit.
934 (mips16_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
935 (my_getSmallExpression): Use ISDIGIT/TOLOWER instead of
936 isdigit/tolower.
937 (tc_get_register): Likewise.
938 (get_number): Use ISDIGIT/ISXDIGIT instead of isdigit/isxdigit.
939 (s_mips_ent): Use ISDIGIT instead of isdigit.
940 * config/tc-mn10200.c: Include "safe-ctype.h" instead of <ctype.h>.
941 (md_assemble): Use ISSPACE instead of isspace.
942 * config/tc-mn10300.c: Include "safe-ctype.h" instead of <ctype.h>.
943 (md_assemble): Use ISSPACE instead of isspace.
944 * config/tc-ns32k.c: Don't include <ctype.h>.
945 * config/tc-pdp11.c: Include "safe-ctype.h".
946 (mklower): Remove function.
947 (parse_reg): Use TOLOWER instead of mklower.
948 * config/tc-pj.c: Include "safe-ctype.h".
949 (md_assemble): Use ISSPACE instead of isspace.
950 * config/tc-ppc.c: Include "safe-ctype.h" instead of <ctype.h>.
951 (register_name): Use ISALPHA instead of isalpha.
952 (ppc_elf_suffix): Use ISALNUM/TOLOWER instead of
953 isalnum/islower/tolower.
954 (md_assemble): Use ISSPACE instead of isspace.
955 (ppc_canonicalize_symbol_name): Use ISLOWER/TOUPPER instead of
956 islower/toupper.
957 * config/tc-s390.c: Include "safe-ctype.h" instead of <ctype.h>.
958 (register_name): Use ISALPHA instead of isalpha.
959 (s390_elf_suffix, s390_lit_suffix): Use ISALNUM instead of isalnum.
960 (md_gather_operands, md_assemble, s390_insn): Use ISSPACE instead of
961 isspace.
962 * config/tc-sh.c: Include "safe-ctype.h" instead of <ctype.h>.
963 (sh_elf_suffix): Use ISALNUM/TOLOWER instead of
964 isalnum/islower/tolower.
965 (IDENT_CHAR): Use ISALNUM instead of isalnum.
966 (parse_reg): Use TOLOWER instead of tolower.
967 (find_cooked_opcode): Use TOLOWER instead of isupper/tolower.
968 * config/tc-sparc.c: Include "safe-ctype.h" instead of <ctype.h>.
969 (sparc_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
970 (parse_keyword_arg): Use ISALNUM instead of isalnum.
971 * config/tc-tahoe.c: Include "safe-ctype.h".
972 (tahoe_reg_parse): Use ISDIGIT instead of isdigit.
973 (tip_op): Use TOLOWER instead of isupper/tolower.
974 * config/tc-tic30.c: Include "safe-ctype.h".
975 (md_begin): Use ISLOWER/ISDIGIT/ISUPPER/TOLOWER/ISLOWER/
976 ISALPHA instead of islower/isdigit/isupper/tolower/islower/isalpha.
977 (tic30_operand): Use TOLOWER instead of tolower.
978 (tic30_find_parallel_insn): Likewise.
979 (output_invalid): Use ISPRINT instead of isprint.
980 * config/tc-tic54x.c: Include "safe-ctype.h".
981 (tic54x_asg, tic54x_eval): Use ISALPHA instead of isalpha.
982 (lookup_version): Use TOUPPER instead of toupper.
983 (tic54x_var): Use ISALPHA instead of isalpha.
984 (tic54x_mlib): Use ISSPACE instead of isspace.
985 (subsym_iscons): Use TOUPPER instead of toupper.
986 (get_operands): Use ISSPACE instead of isspace.
987 (is_type): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
988 (encode_indirect, encode_operand): Use TOUPPER instead of toupper.
989 (next_line_shows_parallel): Use ISSPACE instead of isspace.
990 (subsym_get_arg, subsym_substitute): Use ISDIGIT instead of isdigit.
991 (tic54x_start_line_hook, md_assemble, tic54x_start_label): Use
992 ISSPACE instead of isspace.
993 * config/tc-tic80.c: Include "safe-ctype.h".
994 (md_assemble): Use ISSPACE instead of isspace.
995 * config/tc-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
996 (system_register_name): Use ISDIGIT instead of isdigit.
997 (md_assemble): Use ISSPACE instead of isspace.
998 * config/tc-vax.c: Include "safe-ctype.h" instead of <ctype.h>.
999 (vax_reg_parse): Use TOLOWER/ISDIGIT instead of
1000 isupper/tolower/isdigit.
1001 (vip_op): Use TOLOWER instead of isupper/tolower.
1002 * config/tc-w65.c: Don't include <ctype.h>.
1003 * config/tc-z8k.c: Include "safe-ctype.h" instead of <ctype.h>.
1004 (tohex): Use ISDIGIT/ISLOWER instead of isdigit/islower.
1005 (whatreg): Use ISDIGIT instead of isdigit.
1006 * ecoff.c: Include "safe-ctype.h" instead of <ctype.h>.
1007 (ecoff_directive_ent, ecoff_stab): Use ISDIGIT instead of isdigit.
1008 * expr.c: Include "safe-ctype.h" instead of <ctype.h>.
1009 (integer_constant): Use ISALNUM/TOUPPER instead of
1010 isalnum/islower/toupper.
1011 (operand): Use TOLOWER instead of isupper/tolower.
1012 * gasp.c: Include "safe-ctype.h" instead of <ctype.h>.
1013 (sb_strtol, level_0, change_base, doinstr): Use ISDIGIT instead
1014 of isdigit.
1015 (process_assigns, whatcond): Use TOUPPER instead of toupper.
1016 (chartype_init): Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
1017 (main): For gettext, also set the LC_CTYPE locate facet.
1018 * hash.c: Include "safe-ctype.h".
1019 (main): Use TOLOWER instead of isupper/tolower.
1020 * itbl-lex.l: Don't include <ctype.h>.
1021 * listing.c: Include "safe-ctype.h" instead of <ctype.h>.
1022 (listing_newline): Use ISCNTRL instead of isascii/iscntrl. Don't
1023 omit non-ASCII characters.
1024 (debugging_pseudo): Use ISSPACE instead of isspace.
1025 * macro.c: Include "safe-ctype.h" instead of <ctype.h>.
1026 (buffer_and_nest): Use ISALNUM instead of isalnum.
1027 (get_token): Use ISALPHA/ISALNUM instead of isalpha/isalnum.
1028 (define_macro): Use ISUPPER/TOLOWER instead of isupper/tolower.
1029 (macro_expand_body): Use ISALNUM/ISDIGIT/ISUPPER/ISALPHA
1030 instead of isalnum/isdigit/isupper/isalpha.
1031 (check_macro): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead
1032 of isalpha/isalnum/isupper/tolower.
1033 * read.c: Include "safe-ctype.h" instead of <ctype.h>.
1034 (read_a_source_file): Use ISUPPER/TOLOWER/ISDIGIT instead of
1035 isupper/tolower/isdigit.
1036 (s_mri_common): Use ISDIGIT instead of isdigit.
1037 (s_mri_sect): Use ISDIGIT/TOUPPER instead of isdigit/toupper.
1038 (s_float_space): Use ISALPHA instead of isalpha.
1039 (ignore_rest_of_line): Use ISPRINT instead of isprint.
1040 (float_cons): Use ISALPHA instead of isalpha.
1041 (next_char_of_string): Use ISDIGIT/ISXDIGIT instead of
1042 isdigit/isxdigit.
1043 * symbols.c: Include "safe-ctype.h" instead of <ctype.h>.
1044 (save_symbol_name): Use ISLOWER/TOUPPER instead of
1045 islower/toupper.
1046 (symbol_find_base): Use TOUPPER instead of islower/toupper.
1047 (decode_local_label_name): Use ISDIGIT instead of isdigit.
1048
b6849f55
NC
10492001-09-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
1050
1051 * tc-s390.c (s390_insn): Add code to cope with 6 byte O_constants
1052 in 64 bit mode and make format "e" work.
1053
0e1a166b
AM
10542001-09-18 Alan Modra <amodra@bigpond.net.au>
1055
1056 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.
1057
1058 * write.c (set_symtab): Update bfd_alloc declaration. Use a temp
1059 var to ensure bfd_alloc arg is the right type.
1060 (write_object_file): Cast args of bfd_seek. Replace bfd_write with
1061 bfd_bwrite.
1062
1063 * config/obj-coff.c: Replace calls to bfd_write with calls to
1064 bfd_bwrite. Cast args of bfd_seek.
1065
1066 * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned
1067 warning.
1068
1069 * config/tc-mn10300.c (set_arch_mach): Make param unsigned.
1070
1071 * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with
1072 call to bfd_bread.
1073
e08ae979
HPN
10742001-09-15 Hans-Peter Nilsson <hp@bitrange.com>
1075
1076 * config/tc-sh.h (sh_force_relocation): Prototype.
1077 (struct fix): Forward declare.
1078 * config/tc-sh.c (type sh_operand_info): Move to top of file.
1079 (cons, s_align_bytes): Remove old-type declarations.
1080 (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand,
1081 get_operands, get_specific, insert, build_relax,
1082 insert_loop_bounds, build_Mytes): Prototype.
1083 (little): Make static. Prototype.
1084 (check, tc_Nout_fix_to_chars): Delete unused functions.
1085
920acd62
EC
10862001-09-14 Eric Christopher <echristo@redhat.com>
1087
1088 * config/tc-mips.c (md_parse_option): Remove setting mips_64 via
1089 -mgp32/mgp64.
1090
056a1d49
NC
10912001-09-14 Kevin Lo <kevlo@openbsd.org>
1092
1093 * configure.in: Add arm-openbsd target.
1094 * configure: Regenerate.
1095
4008bd9b
TS
10962001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1097
1098 * configure.in: Change machine triplets from mips-*-linux-gnu* to
1099 mips*-*-linux*.
1100
233b8738
TS
11012001-09-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1102
1103 * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
1104
d61a78a7
RH
11052001-09-11 Richard Henderson <rth@redhat.com>
1106
1107 * config/tc-alpha.c (alpha_elf_section_letter): New.
1108 (alpha_elf_section_flags): New.
1109 * config/tc-alpha.h (md_elf_section_letter): New.
1110 (md_elf_section_flags): New.
1111 * config/tc-ia64.c (ia64_elf_section_letter): New.
1112 * config/tc-ia64.h (md_elf_section_letter): New.
1113
9469ddf0
JJ
11142001-09-11 Jakub Jelinek <jakub@redhat.com>
1115
1116 * config/obj-elf.c (obj_elf_parse_section_letters): Use 'M' instead
1117 of 'm', 'S' instead of 's'. Update bad_msg.
1118 * config/tc-ppc.c (ppc_section_letter): Update bad_msg.
1119 * config/tc-i370.c (i370_sectioN_letter): Update bad_msg.
1120
e0890092
AM
11212001-09-09 Alan Modra <amodra@bigpond.net.au>
1122
1123 * expr.c (expr): Move code setting "retval" to the end of the loop,
1124 and rearrange for efficiency. For "PIC code" subtraction, use
1125 "rightseg" rather than recalculating. For "symbol OP symbol"
1126 subtract, set "retval" to absolute_section if symbols in same
1127 section.
1128 * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an
1129 O_symbol. Simplify a +/- b code. Allow equality and non-equality
1130 comparisons on symbols from any section. Allow other comparison
1131 operators as for subtraction.
1132 (symbol_equated_reloc_p): New predicate function.
1133 * symbols.h (symbol_equated_reloc_p): Declare.
79bcdb56
AM
1134 * write.c (relax_segment <rs_machine_dependent>): Ensure segment
1135 for expression syms is set correctly.
1136 (adjust_reloc_syms): Use symbol_equated_reloc_p.
e0890092
AM
1137 (write_relocs): Likewise.
1138 (write_object_file): Likewise.
e0890092
AM
1139 * config/tc-mips.c (md_estimate_size_before_relax): Likewise.
1140 * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part
1141 of a complex expression when setting up frag_var.
1142
ec8fcf4a
RH
11432001-09-07 Richard Henderson <rth@redhat.com>
1144
1145 * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
1146 require_seq and allow_seq. Let !literal omit the sequence number.
1147 (tokenize_arguments): Reject sequence numbers of !allow_seq.
1148
891937bf
JJ
11492001-09-08 Jakub Jelinek <jakub@redhat.com>
1150
1151 * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
1152 section symbols the same way as externs.
1153
553178e4
TS
11542001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1155
1156 * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX
1157 pseudo-op.
ad58c921 1158
cb56d3d3
TS
11592001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1160
1161 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
1162 (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
1163 PIC, BFD_RELOC_16_PCREL for the rest.
1164 (mips_ip): Likewise.
79bcdb56
AM
1165 (md_pcrel_from): return the right offset for the differently shifted
1166 pcrel relocs.
cb56d3d3 1167 (md_apply_fix): Handle BFD_RELOC_16_PCREL.
ad58c921 1168
3969b680
RH
11692001-09-05 Richard Henderson <rth@redhat.com>
1170
1171 * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
1172 (pseudo_func): Add @iplt.
1173 (pseudo_opcode): Add data16 and data16.ua.
1174 (md_begin): Set iplt pseudo.
1175 (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
1176
11772001-09-04 Richard Henderson <rth@redhat.com>
19f78583
RH
1178
1179 * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
1180 (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
1181 (alpha_macros): Remove occurrences of same.
1182 (O_lituse_addr, O_gprel): New.
1183 (DUMMY_RELOC_LITUSE_*): New.
1184 (s_alpha_ucons, s_alpha_arch): Prototype.
1185 (alpha_reloc_op): Construct elements via DEF macro.
1186 (ALPHA_RELOC_SEQUENCE_OK): Remove.
1187 (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
1188 members to not be literal specific.
1189 (next_sequence_num): New.
1190 (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for
1191 added/removed BFD relocations.
1192 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1193 (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
1194 (tokenize_arguments): Parse ! relocations properly.
1195 (find_macro_match): Delete unused macro argument types.
1196 (assemble_insn): Add reloc parameter; emit that instead of the
1197 default as appropriate.
1198 (get_alpha_reloc_tag): New. Split from ...
1199 (emit_insn): ... here. Allocate a reloc tag for GPDISP.
1200 (assemble_tokens): Don't search macros if user relocation present.
1201 Copy reloc sequence number to insn struct.
1202 (emit_ldgp): Remove user reloc handling.
1203 (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
1204 (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
1205 (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
1206 * config/tc-alpha.h (tc_adjust_symtab): Always define.
1207 (struct alpha_fix_tag): Name members less literal specific.
1208
de342d07
JL
1209Tue Sep 4 20:01:19 2001 Jeffrey A Law (law@cygnus.com)
1210
1211 * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
1212 address of two symbols in different sections.
1213
3c02b2ab
EC
12142001-08-31 Eric Christopher <echristo@redhat.com>
1215 Jason Eckhardt <jle@redhat.com>
1216
1217 * config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
1218 5kc, and 20kc. Clean up old entries.
1219
36ed2fff
JL
1220Fri Aug 31 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1221 Jeff Law <law@redhat.com>
1222
3c1ba8a3
JL
1223 * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
1224 offset match H8 ELF spec.
1225 (md_section_align): Alternate implementation for BFD_ASSEMBLER.
1226 (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.
1227
36ed2fff
JL
1228 * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
1229 (build_bytes): Mark fixups for PCrel branches as signed. For
1230 OBJ_ELF, make sure the reloc's offset points to the first byte
1231 to be modified.
1232 (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
1233 * tc-h8300.h (relocation mappings): Add.
1234
f333765f
JL
1235Thu Aug 30 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1236
1237 * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
1238 define for BFD_ASSEMBLER.
1239 (tc_reloc_mangle): Likewise.
1240 (tc_gen_reloc): New function for BFD_ASSEMBLER.
1241
83e20b45
JL
1242Wed Aug 29 12:49:58 2001 Jeffrey A Law (law@cygnus.com)
1243
3c02b2ab 1244 * config/tc-h8300.c (h8300hmode): Record the machine type
83e20b45
JL
1245 if BFD_ASSEMBLER is defined.
1246 (h8300smode, md_begin): Similarly.
1247
f6314f3e
PB
12482001-08-29 Joel Sherrill <joel@OARcorp.com>
1249
3c02b2ab 1250 * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
f6314f3e
PB
1251 default from coff to elf.
1252 * configure: Regenerate.
1253
ccad732d
JL
1254Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1255
7e0de7bf
JL
1256 * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
1257 assorted coff relocations to the corresponding elf relocations.
1258 * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
1259
ccad732d
JL
1260 * configure.in: Add case for h8300-*-elf.
1261 * configure: Regenerate.
1262
1262d520
JR
1263Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1264
1265 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
82f3c9a3 1266 documentation to reflect reality.
1262d520 1267
7283eb86
TS
12682001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1269
ad58c921 1270 * config/tc-mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
7283eb86
TS
1271 (macro): Reflect change to MAX_GPREL_OFFSET.
1272
0baf16f2
AM
12732001-08-27 Torbjorn Granlund <tege@swox.com>
1274 Staffan Ulfberg <staffanu@swox.se>
1275 Linus Nordberg <linus@swox.se>
1276 Alan Modra <amodra@bigpond.net.au>
1277
1278 * configure.in: Recognise powerpc*le*, not just powerpcle*.
1279 * configure: Regenerate.
1280 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
1281 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
1282 (md_assemble): Use them.
1283 (ppc_machine): Support stub for ELF64 as well as XCOFF.
1284 (md_pseudo_table): Add "llong", "quad".
1285 (md_parse_option): Match default_cpu of powerpc*.
1286 (ppc_arch): Likewise.
1287 (ppc_subseg_align): Only for OBJ_XCOFF.
1288 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
1289 (md_begin): Select PPC_OPCODE_64 for 64 bit.
1290 (ppc_insert_operand): Don't bother testing 'file' before calling
1291 as_bad_where. Use as_bad_where for operand->insert errors.
1292 (mapping): Add ELF64 relocation modifiers.
1293 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
1294 expressions with abs_symbol.
1295 (ppc_elf_cons): Correct offset for little endian targets.
1296 (ppc_elf_frob_symbol): New.
1297 (md_assemble): Add support for 64 bit ELF relocs.
1298 (ppc_tc): Ensure 8 byte alignment when 64 bit.
1299 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
1300 ".toc" section for 64 bit ELF.
1301 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
1302 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
1303 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
1304 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
1305 Expand on comments, error message. Add support for 64 bit relocs,
1306 and use PPC_HI etc. macros.
1307 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1308 (HANDLE_ALIGN): Define to generate nops in code sections rather
1309 than zeros.
1310 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
1311 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
1312 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
1313 (ppc_fix_adjustable): Declare.
1314 (tc_frob_symbol): Define.
1315 (ppc_elf_frob_symbol): Declare.
1316
9d654c1c
AJ
13172001-08-26 Andreas Jaeger <aj@suse.de>
1318
1319 * config/tc-s390.c: Add missing prototypes
1320 (md_gather_operands): Make static.
1321
e7d556df
TS
13222001-08-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1323
ad58c921
TS
1324 * config/tc-mips.h (MAX_GPREL_OFFSET): Change it to the maximum
1325 allowed value, not the word beyond maximum.
1326 * config/tc-mips.c (macro_build_lui): Code cleanup.
e7d556df
TS
1327 (macro): Reflect change to MAX_GPREL_OFFSET.
1328 (mips_ip): Check explicitly against S_EX_NONE.
1329 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
1330 (md_apply_fix): Code cleanup.
1331
34f63668
AJ
13322001-08-24 Andreas Jaeger <aj@suse.de>
1333
1334 * config/tc-ppc.h: Fix prototype declaration.
1335
c538998c
JJ
13362001-08-23 Jakub Jelinek <jakub@redhat.com>
1337
1338 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
1339 * config/obj-elf.c (obj_elf_size): When size is constant, free
1340 and clear symbol_get_obj(sym)->size if any.
1341
1ff54a84
TS
13422001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1343
ad58c921
TS
1344 * config/tc-mips.c (md_begin): Warn about incompatibility between
1345 -march=FOO and -mipsN option, continue with default ISA.
1ff54a84 1346
a6bacc80
TS
13472001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1348
1349 * config/tc-mips.c (md_parse_option): #ifdef the
1350 traditional/non-traditional names as it is done in mips_target_format.
1351
ca3f7695
RH
13522001-08-20 Richard Henderson <rth@redhat.com>
1353
1354 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
1355 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
1356 use seg parameter instead of now_seg.
1357
e87a0284
L
13582001-08-18 H.J. Lu <hjl@gnu.org>
1359
1360 * config/tc-mips.c (show): Add the missing prototype.
1361
fb1b3232
TS
13622001-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1363
1364 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
1365 return values.
1366 (mips_ip): Use the new return values instead of characters. Add
1367 support for %higher and %highest.
1368 (LP): Remove.
1369 (RP): Remove.
1370 (my_getSmallExpression): Make parsing case insensitive and more
1371 reliable. Add support for %higher and %highest. Further support to
1372 parse %gprel and %neg is implemented but currently deactivated.
1373
23fe39df
AM
13742001-08-17 Alan Modra <amodra@bigpond.net.au>
1375
1376 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
1377 (ecoff_build_symbols): Likewise.
1378 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
1379
be00bddd
TS
13802001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1381
1382 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
1383 for n32 ABI if appropriate.
1384
07ae3efa
TS
13852001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1386
1387 * config/tc-mips.c (cons_fix_new_mips): Remove.
1388 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
1389 (cons_fix_new_mips): Remove.
1390
c68012fb
JJ
13912001-08-14 Jeff Johnston <jjohnstn@redhat.com>
1392
79bcdb56
AM
1393 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
1394 a label, not a hex constant.
c68012fb 1395
5d430f8b
NC
13962001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1397
1398 * config/tc-v850.h: Add missing prototypes.
1399
198ce79b
AJ
14002001-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
1401
1402 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
1403 relocations.
1404
4ffadb11
NC
14052001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1406
1407 * config/tc-sparc.c (cons_fix_new_sparc): Move
1408 `sparc_no_align_cons = 0;' to...
1409 (s_uacons): ...here so that sparc_no_align_cons will get
1410 cleared properly.
1411
f72c8c98
KH
14122001-08-11 Kazu Hirata <kazu@hxi.com>
1413
1414 * config/tc-mips.c: Fix a comment typo.
1415
ea1fb5dc
RS
14162001-08-10 Richard Sandiford <rsandifo@redhat.com>
1417
1418 * config/tc-mips.c (move_register): New function.
1419 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
1420 (mips_ip): Likewise.
1421 (macro2): Use move_register rather than macro_build for moves.
1422 (mips16_macro): Likewise.
1423 (macro): Likewise. Handle M_MOVE.
1424
0218d1e4
AJ
14252001-08-10 Andreas Jaeger <aj@suse.de>
1426
1427 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1428 to build warnings.
1429 * configure: Regenerate.
1430
11b37b7b
AM
14312001-08-10 Alan Modra <amodra@bigpond.net.au>
1432
fa6e9318
AM
1433 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
1434 Comment indentation of #pragma.
1435 * macro.c (alloca): Likewise.
1436
11b37b7b
AM
1437 * config/tc-ppc.c: Revert 2001-08-08.
1438
8d28c9d7
AM
14392001-08-09 Alan Modra <amodra@bigpond.net.au>
1440
1441 * symbols.c: Add missing prototypes.
1442 * config/e-i386elf.c: Likewise.
1443 * config/e-i386coff.c: Likewise.
1444 * config/e-i386aout.c: Likewise.
1445 * config/obj-coff.c: Likewise.
1446 (def_symbol_in_progress, stack): Move definition.
1447 * config/obj-elf.c: Add missing prototypes.
1448 (obj_elf_change_section): Make static.
1449 (obj_elf_parse_section_letters): Likewise.
1450 (obj_elf_section_word): Likewise.
1451 (obj_elf_section_type): Likewise.
1452
fce3099f
AM
14532001-08-08 Alan Modra <amodra@bigpond.net.au>
1454
1455 From 1999-10-25 Torbjorn Granlund <tege@swox.com>
1456 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
1457 determining reloc type with code reading operands->reloc field.
1458
d959c450
AM
14592001-08-08 Alan Modra <amodra@bigpond.net.au>
1460
8fd3e36b
AM
1461 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
1462 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
1463 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
1464 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
1465
8a543126
AM
1466 * output-file.c (output_file_create): Don't try to open a second
1467 time as it's unnecessary. FOPEN_W was undefined too.
d959c450 1468
38487616
TS
14692001-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1470
ad58c921 1471 * config/tc-mips.c (macro_build): Replace magic constants by defines.
38487616
TS
1472 (mips_ip): Likewise. Typo.
1473
9a41af64
TS
14742001-08-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1475
ad58c921
TS
1476 * config/tc-mips.c (mips_abi_string): Initialize with NULL instead
1477 of 0.
9a41af64
TS
1478 (RELAX_ENCODE): Replace bfd_vma by valueT.
1479 (load_address): Formatting.
1480 (macro): Likewise. Code cleanup. Typo.
1481 (macro2): Formatting.
1482 (md_parse_option): Typo.
1483 (s_mipsset): Reorder cases to look nicer.
1484 (md_estimate_size_before_relax): Formatting. Code cleanup.
1485 (mips_elf_final_processing): Check against NULL instead of 0.
1486 (md_obj_end): Remove ugly `' in message string.
1487 (s_mips_ent): Remove ugly `' in message string.
1488
6dce9e24
TS
14892001-07-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1490
1491 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
1492 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
1493 mutually exclusive (if they are different).
1494 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
1495 set more than once.
1496
236bd878
RS
14972001-08-03 Richard Sandiford <rsandifo@redhat.com>
1498
1499 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
1500 from GPREL addends.
1501
ca4e0257
RS
15022001-08-02 Richard Sandiford <rsandifo@redhat.com>
1503
1504 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
1505 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
1506 (md_long_opts): Add -mfp32 option.
1507 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
1508 (md_show_usage): Show usage for -mfp32 and -mgp32.
1509 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
1510 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
1511 (HAVE_32BIT_ADDRESSES): New macro.
1512 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
1513 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
1514 (s_cprestore, s_cpadd): Likewise.
1515 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
1516 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
1517 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
1518 to determine the width of addresses in load, store and jump macros.
1519 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
1520 used in set instructions; do not check the address size for them.
1521 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
1522 unaligned load and store macros.
1523 (mips_ip): Use the new macros to check the width of a register when
1524 processing float constants. Force a constant into memory if it is
1525 destined for an FPR and the FPRs are wider than the GPRs. Warn about
1526 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
1527 than mips_gp32 to select synthetic instructions.
1528 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
1529 synthetic instructions.
1530
28bab82b
NC
15312001-08-01 Christian Groessler <cpg@aladdin.de>
1532
1533 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
1534 "rh", "rr", "rq", or "sp" then don't automatically assume
1535 it's a register name. Check whether there is a number
1536 following.
1537
28f81592
AM
15382001-08-01 Alan Modra <amodra@bigpond.net.au>
1539
1540 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
1541 Don't allocate more space than necessary for the input line copy.
1542
0e389e77
AM
15432001-08-01 Alan Modra <amodra@bigpond.net.au>
1544
1545 * read.c: Standardize error/warning messages - don't capitalise, no
1546 final period or newline, don't say "ignored" or "zero assumed" for
1547 as_bad messages. In some cases, change the wording to that used
1548 elsewhere for similar messages.
1549 * app.c: Likewise.
1550 * as.c: Likewise.
1551 * atof-generic.c: Likewise.
1552 * cgen.c: Likewise.
1553 * cond.c: Likewise.
1554 * depend.c: Likewise.
1555 * dwarf2dbg.c: Likewise.
1556 * ecoff.c: Likewise.
1557 * expr.c: Likewise.
1558 * frags.c: Likewise.
1559 * input-file.c: Likewise.
1560 * input-scrub.c: Likewise.
1561 * listing.c: Likewise.
1562 * output-file.c: Likewise.
1563 * stabs.c: Likewise.
1564 * subsegs.c: Likewise.
1565 * symbols.c: Likewise.
1566 * write.c: Likewise.
1567 * ecoff.c (ecoff_directive_end): Test for missing name by
1568 comparing input line pointers rather than reading string.
1569 (ecoff_directive_ent): Likewise.
1570 * read.c (s_set): Likewise.
1571 (s_align): Report a warning rather than an error for
1572 alignment too large.
1573 (s_comm): Check for missing symbol name.
1574 (s_lcomm_internal): Likewise.
1575 (s_lsym): Likewise.
1576 (s_globl): Use is_end_of_line instead of looking for '\n'.
1577 (s_lcomm_internal): Likewise.
1578 (ignore_rest_of_line): Report a warning rather than an error.
1579
e138127a
GK
15802001-07-31 Geoffrey Keating <geoffk@redhat.com>
1581
1582 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
1583 any kind of relocation against a not-loaded section.
1584
468cced8
AM
15852001-07-30 Alan Modra <amodra@bigpond.net.au>
1586
1587 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
1588 to include '@' in symbol names when parsing versioned symbols
1589 rather than calling get_symbol_end multiple times.
1590 * config/tc-i370.c (register_name): Format fixes. Don't call
1591 get_symbol_end after parsing number.
1592 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
1593 code out of conditional.
1594 (address_register_name): Likewise.
1595 (other_register_name): Likewise.
1596 * config/tc-mn10300.c (r_register_name): Likewise.
1597 (xr_register_name): Likewise.
1598 (data_register_name): Likewise.
1599 (address_register_name): Likewise.
1600 (other_register_name): Likewise.
1601 * config/tc-ppc.c (register_name): Likewise.
1602 * config/tc-s390.c (register_name): Likewise.
1603
13283e2d
SC
16042001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1605
1606 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
1607 and bra relax: update fragP->fr_fix after the fixup.
1608
409d19c4
AM
16092001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
1610
1611 * read.c (s_set): Check for missing symbol name.
1612
050be34e
AM
16132001-07-26 Alan Modra <amodra@bigpond.net.au>
1614
1615 * write.c (relax_segment <rs_space>): Account for fr_fix.
1616
46bac6de
L
16172001-07-25 H.J. Lu <hjl@gnu.org>
1618
1619 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
1620 we treat weak like extern only for ELF.
1621 (mips_fix_adjustable): Make sure we don't adjust extern/weak
1622 symbols only for ELF.
1623
2f4dcb11
CD
16242001-07-25 Chris Demetriou <cgd@broadcom.com>
1625
1626 * config/tc-mips.c: Fix spelling error in comment.
1627
62f65a7b
DB
16282001-07-25 Dave Brolley <brolley@redhat.com>
1629
1630 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
1631 (IS_PARALLEL_SEPARATOR): New macro.
1632 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
1633 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
1634 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
1635 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
1636 been seen).
1637
3817f222
AM
16382001-07-24 Alan Modra <amodra@bigpond.net.au>
1639
1640 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
1641 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
1642 Update dependencies with "make dep-am".
1643 * Makefile.in: Regenerate.
1644 * doc/Makefile.in: Regenerate.
1645
07726851
KH
16462001-07-23 Kazu Hirata <kazu@hxi.com>
1647
1648 * config/tc-alpha.h: Fix formatting.
1649 * config/tc-arc.c: Likewise.
1650 * config/tc-d10v.h: Likewise.
1651 * config/tc-hppa.c: Likewise.
1652 * config/tc-i370.c: Likewise.
1653 * config/tc-i386.h: Likewise.
1654 * config/tc-i960.h: Likewise.
1655 * config/tc-ia64.c: Likewise.
1656 * config/tc-ia64.h: Likewise.
1657 * config/tc-m32r.c: Likewise.
1658 * config/tc-m68k.c: Likewise.
1659 * config/tc-m88k.c: Likewise.
1660 * config/tc-ns32k.c: Likewise.
1661 * config/tc-pdp11.c: Likewise.
1662 * config/tc-pj.h: Likewise.
1663 * config/tc-s390.c: Likewise.
1664 * config/tc-sparc.c: Likewise.
1665 * config/tc-sparc.h: Likewise.
1666 * config/tc-tic80.c: Likewise.
1667 * config/tc-w65.h: Likewise.
1668
ac62c346
AM
16692001-07-23 Alan Modra <amodra@bigpond.net.au>
1670
1671 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
1672 symbols specially. Always resolve, adding fr_address to value.
1673 * write.c (write_object_file): Don't add fr_address to sym values.
1674 (relax_frag): Likewise.
1675 (relax_segment): Likewise.
1676 * config/obj-ieee.c (do_symbols): Likewise.
1677 * config/tc-cris.c (md_convert_frag): Likewise.
1678 * config/tc-fr30.c (md_convert_frag): Likewise.
1679 * config/tc-i386.c (md_convert_frag): Likewise.
1680 * config/tc-m32r.c (md_convert_frag): Likewise.
1681 * config/tc-m68hc11.c (md_convert_frag): Likewise.
1682 * config/tc-mcore.c (md_convert_frag): Likewise.
1683 * config/tc-mips.c (mips16_extended_frag): Likewise.
1684 * config/tc-ns32k.c (md_convert_frag): Likewise.
1685 * config/tc-m68k.c (md_convert_frag_1): Likewise.
1686 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
1687 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
1688 (md_relax_table): Remove first four entries. Format.
1689 (md_estimate_size_before_relax): Remove old_fix. Don't bother
1690 setting fr_var. Simplify byte branch checks.
1691
677537c1
AM
16922001-07-23 Alan Modra <amodra@bigpond.net.au>
1693
1694 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
1695 "isbranch" param as all calls have it set.
1696 (pa_parse_neg_cmpsub_cmpltr): Likewise.
1697 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
1698 strcasecmp in "nullify" var.
1699 (pa_parse_neg_add_cmpltr): Likewise.
1700 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
1701 functions. Don't print wrong conditions in error messages.
1702
c745b67a
AJ
17032001-07-23 Andreas Jaeger <aj@suse.de>
1704
1705 * config/tc-s390.c (s390_force_relocation): Removed.
1706
1707 * config/tc-s390.h: Remove double declaration of
1708 TC_FORCE_RELOCATION.
1709
2b3c5a5d
L
17102001-07-22 H.J. Lu <hjl@gnu.org>
1711
1712 * config/tc-mips.c (s_mips_end): Remove unused variables.
1713 (s_mips_frame): Add ATTRIBUTE_UNUSED.
1714
f27a3839
AS
17152001-07-17 Andreas Schwab <schwab@suse.de>
1716
1717 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
1718 .loc.
1719 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
1720 insn.
1721 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1722
5bae9b28
MG
17232001-07-17 matthew green <mrg@eterna.com.au>
1724
1725 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
1726 TE_NetBSD.
1727 (line_comment_chars): Set to '/' if TE_NetBSD.
1728
7ed28e65
MG
17292001-07-14 matthew green <mrg@eterna.com.au>
1730
1731 * configure.in (i386-*-netbsdelf*): New target.
92c077a3 1732 * configure: Regenerate.
7ed28e65 1733
bdbe95c8
NC
17342001-07-10 Mark Elbrecht <snowball3@softhome.net>
1735
1736 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
1737 class of the non-debug symbol is C_NULL.
1738
15dcfbc3
NC
17392001-07-10 Anders Norlander <anorland@synergenix.se>
1740
1741 * doc/as.texinfo (Incbin): Fix grammatical errors.
1742
f740e790
NC
17432001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
1744
1745 * depend.c: Use FOPEN_.. macros in calls to fopen().
1746 * input-file.c: As above.
1747 * itbl-ops.c: As above.
1748 * listing.c: As above.
1749 * output-file.c: As above.
1750 * read.c: As above.
1751
7e005732
NC
17522001-07-08 Anders Norlander <anorland@synergenix.se>
1753
1754 * read.c (s_incbin): New .incbin function.
1755 * read.c (potable): Add "incbin" pseudo-op.
1756 * read.h: Add s_incbin prototype.
1757 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
1758 * NEWS: Mention new feature.
1759
ae341099
NC
17602001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
1761
1762 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
1763 DEBUG_UNSPECIFIED.
1764
002de68b
JH
17652001-07-06 John Healy <jhealy@redhat.com>
1766
1767 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
1768 set of fixups to be stored.
1769 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
1770 restored to be chosen from any that are saved.
1771 (gas_cgen_swap_fixups): Modified to allow the current set of
1772 fixups to be swapped with any other set that has been saved.
1773 (gas_cgen_initialize_saved_fixups_array): New routine.
1774 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
1775 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
1776 or MAX_SAVED_FIXUP_CHAINS.
1777 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
1778 store, swap and restore fuctions to reflect the new interface.
1779
7099f9f9
NC
17802001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
1781
1782 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
1783 ignore empty, ineffectual alignment frags when deciding if a
1784 branch can be short.
1785
557debba
JW
17862001-07-05 Steve Ellcey <sje@cup.hp.com>
1787
1788 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
1789 and SPECIAL_SECTION_FINI_ARRAY.
1790 (special_section_name): Add .init_array and .fini_array.
1791 (md_pseudo_table): Add init_array and fini_array.
1792 (md): Add pointer_size and pointer_size_shift fields.
1793 (setup_unwind_header): New static function.
1794 (output_unw_records): Modify to use setup_unwind_header.
1795 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
1796 md.pointer_size_shift.
1797 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
1798
4ad09363
BE
17992001-07-05 Ben Elliston <bje@redhat.com>
1800
464bb47c
BE
1801 * README (Supported platforms): m88k no longer suffers bitrot.
1802
4ad09363
BE
1803 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
1804
7fb088be
AM
18052001-07-05 Alan Modra <amodra@bigpond.net.au>
1806
1807 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
1808 lsy_value. Correct typos in comments.
1809 * symbols.c (local_symbol_make): Update for name change.
1810 (local_symbol_convert): Likewise.
1811 (colon): Likewise.
1812 (S_GET_VALUE): Likewise.
1813 (S_SET_VALUE): Likewise.
1814 (print_symbol_value_1): Likewise.
1815 (resolve_symbol_value): Likewise. Don't divide local sym values
1816 by OCTETS_PER_BYTE twice.
1817
3e37788f
JW
18182001-07-04 Jim Wilson <wilson@redhat.com>
1819
87885043
JW
1820 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
1821
3e37788f
JW
1822 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
1823 sched branches.
1824
81b0b3f1
BE
18252001-07-05 Ben Elliston <bje@redhat.com>
1826
2a1e2a6d
BE
1827 * read.c (s_fill): Correct spelling error in comments.
1828
81b0b3f1
BE
1829 * doc/c-m88k.texi: New file.
1830 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
1831 * doc/Makefile.in: Regenerate.
1832 * doc/all.texi: Set M880X0.
1833 * doc/as.texinfo: Hook in m88k-dependent documentation.
1834
18ae5d72
EC
18352001-07-04 Eric Christopher <echristo@redhat.com>
1836
1837 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
1838
1839 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
1840 and rm5721 as valid cpu strings.
1841 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
1842
7461da6e
RS
18432001-07-04 Richard Sandiford <rsandifo@redhat.com>
1844
1845 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
1846 if it's expected to be non-zero.
1847
87548816
NC
18482001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1849
7bcad3e5
NC
1850 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
1851 fscan->fx_frag.
1852
87548816 1853 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
ac62c346
AM
1854 (write_object_file): Set finalize_syms to
1855 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
1856 called.
87548816 1857
acebd4ce 1858 * doc/internals.texi: Document
18ae5d72 1859 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
87548816 1860
99a814a1
AM
18612001-07-02 Alan Modra <amodra@bigpond.net.au>
1862
1863 * config/tc-ppc.c: Formatting fixes.
1864
bd59b34f
BE
18652001-07-01 Ben Elliston <bje@redhat.com>
1866
1867 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
1868 they cause some subtle breakage. Will fix them again later.
1869
e237d851
NC
18702001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
1871
1872 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
1873 outside of a function as a .appline directive.
1874
ec68c924
EC
18752001-06-28 Eric Christopher <echristo@redhat.com>
1876 H.J. Lu <hjl@gnu.org>
1877
551b1d89
BE
1878 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
1879 of mips_cpu for the ISA selection.
1880 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
1881 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
ec68c924
EC
1882 (mips_tune): New. Use mips_tune for scheduling and optimization
1883 issues.
1884 (append_insn): Use mips_tune and mips_arch.
1885 (macro_build): Ditto.
1886 (mips_ip): Ditto.
1887 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
1888 backwards compatability mips_cpu generates arch and tune.
1889 (md_show_usage): Document new behavior.
1890
1891 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
1892 Deprecate -mcpu.
1893
1894 * NEWS: Update.
1895
d8273442
NC
18962001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
1897
38b87a1b
NC
1898 * write.c (write_object_file): Do not set finalize_syms until
1899 after the segments have been sized. Some backends may still
1900 need to access the syms's frags in order to adjust relaxed
1901 frags.
1902
d8273442
NC
1903 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
1904 constants.
1905
1a16aca4
AM
19062001-06-27 Alan Modra <amodra@bigpond.net.au>
1907
1908 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
1909 subtract MD_PCREL_FROM_SECTION for 68k.
1910 (fixup_segment <Difference of 2 syms different seg>): Only fudge
1911 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
1912
d48019e0
AM
19132001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
1914
1915 * write.c (fixup_segment <Difference of 2 syms same seg>): If
1916 pcrel, subtract MD_PCREL_FROM_SECTION value.
1917
37ffda10
BE
19182001-06-24 Ben Elliston <bje@redhat.com>
1919
1920 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
1921
6f112c47
JJ
19222001-06-24 Jakub Jelinek <jakub@redhat.com>
1923
1924 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
1925 section symbols the same way as externs.
1926
a181d81e
BE
19272001-06-24 Ben Elliston <bje@redhat.com>
1928
453520d7
BE
1929 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
1930 (emit_relocations): Ditto.
1931 (s_bss): Ditto.
1932 (md_begin): Reformat comments to conform to the GNU standards.
1933 (md_assemble): Ditto.
1934
e21e484e
BE
1935 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
1936 (md_parse_option): Mark parameters as unused.
1937 (md_show_usage): Ditto.
1938 (calcop): Adjust type of `reg_prefix' to char.
1939 (get_reg): Ditto.
1940 (getval): Adjust type of local `c' to char.
1941 (md_create_short_jump): Mark from_addr, to_addr params as unused.
1942 (md_create_long_jump): Ditto.
1943 (md_estimate_size_before_relax): Mark parameters as unused.
453520d7 1944
a181d81e
BE
1945 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
1946 to allay a possible compiler warning.
1947
dd9b19ab
NC
19482001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
1949
1950 * doc/internals.texi (CPU backend): Document md_atof.
1951
8be31359
NC
19522001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
1953
d48019e0
AM
1954 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
1955 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
1956 architecture.
8be31359 1957
1cac9012
NC
19582001-06-21 Philip Blundell <philb@gnu.org>
1959
1960 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
1961 updated.
1962 (insns): Remove entry for adrl. Add long_flag for adr.
1963 (do_adr): Handle `l' suffix.
1964 (do_adrl): Delete.
1965
b091f402
AM
19662001-06-21 Alan Modra <amodra@bigpond.net.au>
1967
1968 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
1969 (md_apply_fix): Use it here. Replace printf with equivalent
1970 as_bad_where.
1971 (tc_gen_reloc): Use as_bad_where instead of as_bad.
1972 (md_apply_fix): Here too.
1973 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
1974 * config/tc-m68k.c (tc_gen_reloc): Likewise.
1975 (md_convert_frag_1): Likewise.
1976
1ad63b2f
TR
19772000-06-20 Tom Rix <trix@redhat.com>
1978
1979 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
1980
c45021f2
NC
19812001-06-18 H.J. Lu <hjl@gnu.org>
1982
ac62c346
AM
1983 * doc/Makefile.am (info): Depend on $(MANS).
1984 (as.1): Remove the prefix `$(srcdir)/'.
1985 * doc/Makefile.in: Regenerated.
c45021f2 1986
ac62c346 1987 * as.1: Removed.
c45021f2 1988
2172d73b
PB
19892001-06-18 Philip Blundell <philb@gnu.org>
1990
1991 * config/tc-arm.c (do_msr): Remove restriction on usage of
1992 immediate operands.
1993
45c500fa
AM
19942001-06-19 Alan Modra <amodra@bigpond.net.au>
1995
1996 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
1997 line info.
1998
0b317b08
PB
19992001-06-13 Philip Blundell <philb@gnu.org>
2000
2001 * config/tc-arm.c (thumb_shift): Improve wording of error message.
2002 (do_t_arit): Likewise.
2003
07a7a145
NC
20042001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2005
2bc0a128
NC
2006 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
2007 .loc pseudos if the dfwarf2 functions are available.
2008 (md_assemble): Only call dwarf2_emit_insn if it is available.
2009
07a7a145
NC
2010 * expr.c: Fix typo in comment.
2011
b131d4dc
NC
20122001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2013
2014 * doc/as.texinfo (Infix Ops): Document that comparison and
2015 combiner operators can be used as infix operators.
2016
e1f44d10
NC
20172001-06-12 Peter Jakubek <pjak@snafu.de>
2018
8a543126 2019 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
ac62c346
AM
2020 of AND/OR.
2021 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
2022 (reverse_mri_condition): Likewise.
2023 (swap_mri_condition): Issue warning for conditions that can not be
2024 swapped.
2025 (build_mri_control_operand): Fix order of operands (swapped).
2026 (build_mri_control_operand): Allow upper case extension in structured
2027 control directives.
2028 (s_mri_else): Likewise.
2029 (s_mri_next): Likewise.
2030 (s_mri_for): Likewise.
2031 (s_mri_if): Fix handling comment ('*') in mri mode.
2032 (s_mri_while): Likewise.
8a543126 2033 * macro.c (macro_expand): Allow macro invocation with empty
ac62c346 2034 extension.
e1f44d10 2035
3971ce95
NC
20362001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2037
2038 * config/tc-arm.c: Fix test for overlow of literal pool.
2039
63486801
L
20402001-06-11 H.J. Lu <hjl@gnu.org>
2041
2042 * NEWS: Updated for the new -n option for the MIPS assembler.
2043
2044 * config/tc-mips.c (md_show_usage): Add -n.
2045
2046 * doc/as.texinfo: Document the new -n option.
2047 * doc/c-mips.texi: Likewise.
2048 * doc/as.1: Regenerated.
2049
5dd0794d
AM
20502001-06-10 Alan Modra <amodra@bigpond.net.au>
2051
2052 * config/obj-coff.c (obj_coff_section): Formatting fix.
2053
2054 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
2055 ",pn".
2056
39c0a331
L
20572001-06-08 H.J. Lu <hjl@gnu.org>
2058
2059 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
2060 disable warning about all NOPS that the assembler generates.
2061 (macro): Warn NOPS generated only if warn_nops is not 0.
2062 (md_shortopts): Add `n'.
2063 (md_parse_option): Set warn_nops to 1 for `n'.
2064
268f6bed
L
20652001-06-08 H.J. Lu <hjl@gnu.org>
2066
2067 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
2068
ea4ff978
L
20692001-06-08 H.J. Lu <hjl@gnu.org>
2070
2071 * config/tc-mips.c (md_apply_fix): Don't adjust common
2072 extern/weak symbols for ELF.
2073 (md_estimate_size_before_relax): Treat weak like extern for
2074 ELF.
2075 (mips_fix_adjustable): Don't adjust extern/weak symbols for
2076 ELF.
2077
98aa84af
AM
20782001-06-08 Alan Modra <amodra@bigpond.net.au>
2079
2080 * Makefile.am: 'som' is not wrongly spelled 'some'.
2081 * Makefile.in: Regenerate.
2082
2083 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
2084 S_GET_VALUE by using a temp.
c0037ab6 2085 (append_insn): Likewise, and for S_SET_VALUE too.
98aa84af
AM
2086 (mips_emit_delays): Likewise.
2087 (my_getExpression): Likewise.
2088 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
2089 (mips16_extended_frag): Remove code concerned with avoiding
2090 locking in a frag address now that symbols are not finalized until
2091 relaxation is complete. Cater for first relaxation pass having
2092 bogus addresses. Use relax_marker to reliably determine whether a
2093 symbol frag has been reached on the current pass.
2094
f85f789b
L
20952001-06-07 H.J. Lu <hjl@gnu.org>
2096
2097 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
2098 * configure: Regenerate.
2099
df3bcd6f
L
21002001-06-07 H.J. Lu <hjl@gnu.org>
2101
2102 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
2103 ecoff emulation.
2104 * configure: Regenerate.
2105
add56521
L
21062001-06-07 H.J. Lu <hjl@gnu.org>
2107
2108 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
2109 MIPS_STABS_ELF is defined.
2110
6da13e9a
NC
21112001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
2112
2113 * as.c (show_usage): Remove L from listing options. It is not a
2114 generic option.
2115
879db8be
NC
21162001-06-06 Christian Groessler <cpg@aladdin.de>
2117
c0037ab6 2118 * config/tc-z8k.c: Removed many warnings by removing unused
879db8be
NC
2119 variables and tagging unused parameters as such.
2120 (md_begin): Fixed a typo (","instead of ";").
2121 (struct ctrl_table): Add parentheses to initialize array
2122 correctly.
2123 (struct flag_table): Likewise.
2124 (struct intr_table): Likewise.
2125 (struct table): Likewise.
2126 (check_operand): "#if 0"'ed since it doesn't seem to be used.
2127
98b32482
NC
21282001-06-06 Peter Jakubek <pjak@snafu.de>
2129
8a543126 2130 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
98b32482
NC
2131 options to list (e.g. m5206e, m5307, m5407).
2132
6e139bf0
AM
21332001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2134
2135 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
2136 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
2137
cb9401fc
AM
21382001-06-06 Alan Modra <amodra@bigpond.net.au>
2139
2140 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
2141 <JumpByte, JumpDword insn output>: Remove dead code.
2142
3c5cdb54
AM
21432001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
2144
2145 * as.c (parse_args): Correct option name "listing-lhs-width2".
2146
92ed29ef
NC
21472001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
2148
2149 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
2150 status.
2151
371b7465
RH
21522001-05-30 Richard Henderson <rth@redhat.com>
2153
2154 * read.c (emit_leb128_expr): Call md_cons_align.
2155
0f2712ed
NC
21562001-05-28 Jeff Sturm <jsturm@one-point.com>
2157
2158 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
2159 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
2160 (tc_gen_reloc): Likewise.
2161 (sparc_cons_align): Don't clear sparc_no_align_cons.
c0037ab6 2162 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
0f2712ed
NC
2163 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
2164
fbe572f9
AM
21652001-05-27 Alan Modra <amodra@one.net.au>
2166
9e40345d
AM
2167 * write.c (relax_segment <rs_space>): Check the section of a
2168 symbol to determine whether it is absolute rather than comparing
2169 its frag against zero_address_frag as listings play tricks with
2170 frags.
2171
fbe572f9
AM
2172 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
2173 allocated in the same chunk as the fixed part.
2174
54d3cad9
AM
21752001-05-26 Alan Modra <amodra@one.net.au>
2176
2177 * write.c (relax_segment <rs_space>): Calculate growth using
2178 addresses before stretch. Prevent repeated error messages.
2179 From Peter Jakubek <pjak@snafu.de>
2180 Use as_bad_where and as_warn_where to pinpoint errors.
2181
766c03c9
AM
21822001-05-25 Alan Modra <amodra@one.net.au>
2183
05bdb37e
AM
2184 * symbols.c (resolve_symbol_value): Always set segment, even when
2185 not finalizing symbol value.
2186
1cd55018
AM
2187 * config/obj-ieee.c (write_object_file): Set finalize_syms.
2188 * config/obj-coff.c (write_object_file): Likewise.
2189 * (size_section): Remove rs_space assert as fr_symbol is no longer
2190 removed.
2191 (fill_section): Likewise.
2192
c709b096
AM
2193 * configure.in: Replace linuxoldld with linux*oldld.
2194 * configure: Regenerate.
2195
b58c9faf
AM
2196 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
2197 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
2198 that have been finalized.
2199
c89c8534
AM
2200 * symbols.c (resolve_symbol_value): Clear sy_resolving before
2201 taking exit_dont_set_value.
2202
54d3cad9
AM
2203 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
2204 relaxing.
766c03c9 2205
6877bb43
TR
22062000-05-24 Tom Rix <trix@redhat.com>
2207
5dd0794d 2208 * config/obj-coff.c (add_lineno): xcoff allows negative line
6877bb43 2209 numbers
5dd0794d 2210 * config/tc-ppc.c (ppc_stabx): fix generated symbol
c0037ab6 2211
e027f3e8
AM
22122001-05-24 Alan Modra <amodra@one.net.au>
2213
2214 * write.c (write_object_file): Set finalize_syms = 1 before
2215 size_seg is called.
2216
d1cf510e
NC
22172001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2218
2219 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
2220 architecture, remove erraneous ISA_MIPS32.
2221 (md_show_usage): Add MIPS r12k support.
2222 (mips_cpu_info_table): Add MIPS r12k support.
c0037ab6 2223
507c8a1a
AM
22242001-05-22 Alan Modra <amodra@one.net.au>
2225
2d0441d9
AM
2226 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
2227 testing for NULs.
2228
6386f3a7
AM
2229 * symbols.c (resolve_symbol_value): Remove "finalize" param,
2230 instead use finalize_syms directly. Don't treat expressions
2231 specially with regard to finalize_syms. Update calls to self.
2232 (resolve_local_symbol): Update call to resolve_symbol_value.
2233 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
2234 !finalize_syms.
2235 * symbols.h (resolve_symbol_value): Update prototype.
2236 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
2237 to resolve_symbol_value.
2238 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2239 * config/obj-coff.c (do_relocs_for): Likewise.
2240 (yank_symbols): Likewise.
2241 (fixup_segment): Likewise.
2242 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2243 * config/tc-mips.c (md_convert_frag): Likewise.
2244 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2245 (ppc_fix_adjustable): Likewise.
2246 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
2247 (dwarf2dbg_convert_frag): Likewise.
2248 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
2249 (eh_frame_convert_frag): Likewise.
2250 * expr.c (make_expr_symbol): Likewise.
2251 * write.c (adjust_reloc_syms): Likewise.
2252 (write_object_file): Likewise.
2253 (relax_segment): Likewise.
2254 (fixup_segment): Likewise.
2255 (finalize_syms): Init to zero, and update comment.
2256 (write_object_file): Set finalize_syms to 1 rather than 2.
2257 * doc/internals.texi (sy_value): Mention finalize_syms.
2258 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2259
c801568a
AM
2260 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
2261 as relaxable if embedded system, make weak syms non-relaxable.
2262 Move definition..
2263 (tc_m68k_fix_adjustable): ..so it can be used here.
2264 (md_apply_fix_2): Sign extend without conditional.
2265
507c8a1a
AM
2266 * config/tc-v850.c: Update copyright.
2267
aaa4f6d9
JJ
22682001-05-16 Jeff Johnston <jjohnstn@redhat.com>
2269
c0037ab6
AM
2270 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
2271 howto entry is not found.
aaa4f6d9 2272
7e8f4100
AO
22732001-05-15 Alexandre Oliva <aoliva@redhat.com>
2274
2275 * config/tc-mn10300.c (mn10300_force_relocation): Don't
2276 optimize differences between symbols in code sections to
2277 constants.
2278 (mn10300_fix_adjustable): Don't adjust to section+offset
2279 relocations pointing at symbols in code sections.
2280
9fcc94b6
AM
22812001-05-16 Alan Modra <amodra@one.net.au>
2282
2283 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
2284 for 8 byte insns.
2285 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
2286 opcodes are output rather than after. Delete insn_size.
2287 * config/tc-v850.c (md_assemble): Similarly, but delete
2288 total_insn_size.
2289
de1cb007
RH
22902001-05-14 Richard Henderson <rth@redhat.com>
2291
2292 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
2293 last change.
2294
67a659f6
RH
22952001-05-14 Richard Henderson <rth@redhat.com>
2296
2297 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
2298 also collect whether to expect an FDE augmentation.
2299 (check_eh_frame): Rewrite as a state machine. Track where in
2300 an FDE we are located, skip any augmentation.
2301 (eh_frame_estimate_size_before_relax): Get code alignment from
2302 the fragment subtype.
2303 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
2304 * read.c (emit_leb128_expr): Call check_eh_frame.
2305
076dc439
AO
23062001-05-14 Alexandre Oliva <aoliva@redhat.com>
2307
2308 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
2309 before a relaxable insns.
2310
4e75439a
AO
23112001-05-13 Alexandre Oliva <aoliva@redhat.com>
2312
2313 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
2314 between symbols if the base symbol is in the current section;
2315 emit a PC-relative relocation instead.
2316
bcee8eb8
AM
23172001-05-12 Peter Targett <peter.targett@arccores.com>
2318
2319 * config/tc-arc.c: Update copyright and tidy source comments.
2320 (md_pseudo_table): Add directive .cpu back as an alias for
2321 .option. Add .file and .line for dwarf2 support.
2322 (arc_mach_type): Make bfd_mach_arc_6 default.
2323 (md_longopts): Add entry 'pre-v6' representing old command line
2324 option when assembling for 'arc5' core versions.
2325 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
2326 default behaviour.
2327 (arc_code_symbol): Make symbol value for @h30 fixup expression
2328 equal to O_constant.
2329 (md_assemble): Call dwarf2_emit_insn.
2330 Include "dwarf2dbg2.h". Formatting fixes throughout file.
2331 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
bcee8eb8
AM
2332 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
2333
579f31ac
JJ
23342001-05-11 Jakub Jelinek <jakub@redhat.com>
2335
2336 * config/tc-ia64.c (special_linkonce_name): New.
2337 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
2338 .gnu.linkonce.ia64unw{,i}.FOO.
2339 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
2340 (dot_endp): Add comment about it.
2341
15f65ae4
NC
23422001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2343
c0037ab6 2344 * config/tc-arm.c (arm_handle_align): When truncating an aligned
15f65ae4
NC
2345 block, ensure that the low order bits of the alignment are
2346 preserved.
2347
606ab118
AM
23482001-05-10 Alan Modra <amodra@one.net.au>
2349
2350 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
2351 symbol_next.
2352
2353 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
2354 current variable part of frag.
2355 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
2356 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
2357 * config/tc-m68hc11.c (RELAX_STATE): Define.
2358 (RELAX_LENGTH): Define.
2359 (md_estimate_size_before_relax): Handle non-relaxable cases
2360 separately from relaxable cases for clarity, and return correct
2361 size for multi-pass relaxation.
2362 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
2363 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2364 (md_convert_frag): Remove "length_code".
2365 * config/tc-vax.c (RELAX_STATE): Define.
2366 (RELAX_LENGTH): Define.
2367 (md_relax_table): Add missing entry.
2368 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2369 (md_convert_frag): Remove "length_code".
2370 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
2371 don't bother setting fr_var. Return correct size for multi-pass
2372 relaxation.
2373 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
2374 (md_convert_frag): Don't bother clearing fr_var.
2375 (md_pseudo_table): Correct initialization.
2376 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
2377 (md_estimate_size_before_relax): No need to set fr_var.
2378 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
2379 (md_estimate_size_before_relax): No need to set fr_var.
2380
1f23ade4
RH
23812001-05-09 Richard Henderson <rth@redhat.com>
2382
2383 * config/tc-ia64.c (generate_unwind_image): Align the fragment
2384 beginning a function's unwind info block.
2385
96f37af6
AO
23862001-05-09 Alexandre Oliva <aoliva@redhat.com>
2387
2388 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
2389
8390138c
AS
23902001-05-08 Andreas Schwab <schwab@suse.de>
2391
2392 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
2393 fx_pcrel_adjust explicitly sign extend when reading it.
2394
5c65dbc1
AM
23952001-05-08 Alan Modra <amodra@one.net.au>
2396
2397 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
2398 from md_relax_table, and combine some switch cases.
2399
a7c92dae
AO
24002001-05-06 Alexandre Oliva <aoliva@redhat.com>
2401
2402 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
2403 from offset in non-pcrel operands too.
2404
d8708f40
NC
24052001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2406
2407 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
2408 * config/tc-arm.c (arm_handle_align): Do not insert more than
2409 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
2410 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
2411
3438adb3
AM
24122001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2413
2414 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
2415 Run "make dep-am".
2416 * Makefile.in: Regenerate.
2417 * configure.in: Remove duplicate mips-*-ecoff* entry.
2418 * configure: Regenerate.
2419
2420 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
2421 (n_names): Cast away type mismatch.
2422 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
2423 (obj_ecoff_frob_symbol): Likewise.
2424 * ecoff.c: (add_file): Add unused attribute.
2425 (ecoff_directive_begin): Likewise.
2426 (ecoff_directive_bend): Likewise.
2427 (ecoff_directive_def): Likewise.
2428 (ecoff_directive_dim): Likewise.
2429 (ecoff_directive_scl): Likewise.
2430 (ecoff_directive_size): Likewise.
2431 (ecoff_directive_type): Likewise.
2432 (ecoff_directive_tag): Likewise.
2433 (ecoff_directive_val): Likewise.
2434 (ecoff_directive_endef): Likewise.
2435 (ecoff_directive_end): Likewise.
2436 (ecoff_directive_ent): Likewise.
2437 (ecoff_directive_extern): Likewise.
2438 (ecoff_directive_file): Likewise.
2439 (ecoff_directive_fmask): Likewise.
2440 (ecoff_directive_frame): Likewise.
2441 (ecoff_directive_mask): Likewise.
2442 (ecoff_directive_loc): Likewise.
2443 (mark_stabs): Likewise.
2444 (ecoff_stab): Likewise.
2445 (ecoff_frob_symbol): Cast away type mismatch.
2446 (ecoff_padding_adjust): Likewise.
2447 (ecoff_build_symbols): Likewise.
2448 (ecoff_build_procs): Likewise.
2449 (ecoff_build_aux): Likewise.
2450 (ecoff_build_strings): Likewise.
2451 (ecoff_build_fdr): Likewise.
2452 (ecoff_build_debug): Likewise.
2453 * itbl-ops.c (itbl_assemble): Variable initialization.
2454
636c26b0
AM
24552001-05-03 Alan Modra <amodra@one.net.au>
2456
2457 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
2458 expressions rather than triggering an assert.
2459
c7e40348
NC
24602001-05-02 Johan Rydberg <jrydberg@opencores.org>
2461
3438adb3
AM
2462 * config/tc-openrisc.c: New file.
2463 * config/tc-openrisc.h: Likewise.
c7e40348 2464
3438adb3
AM
2465 * Makefile.am: Add OpenRISC target.
2466 * Makefile.in: Regenerated.
c7e40348 2467
3438adb3
AM
2468 * configure.in (openrisc-*-*): Add target.
2469 * configure: Regenerated.
c7e40348 2470
5cb1517b
NC
24712001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2472
2473 * config/tc-arm.c (arm_frag_align_code): Change error message to
2474 more explanatory version.
2475
f4ddc5e6
L
24762001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
2477
2478 * config/tc-mips.c (md_parse_option): Also accept
2479 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
2480
fa7fda74
L
24812001-04-27 David Mosberger <davidm@hpl.hp.com>
2482
2483 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
2484 argument passing order: predicate goes last, not first.
2485
87748b32
NC
24862001-04-27 Sean McNeil <sean@mcneil.com>
2487
2488 * configure.in: Add arm-vxworks.
2489 * configure: Regenerate.
2490
16a0c2d4
NC
24912001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
2492
2493 * config/tc-arm.c (arm_handle_align): New Function: Generate
2494 no-op filled alignment frags.
2495 (arm_frag_align_code): New Function: Create a code alignment frag.
2496 (arm_init_frag): New Function: Initialse the target dependent
2497 parts of a frag.
2498
2499 * config/tc-arm.h (TC_FRAG_TYPE): Define.
2500 (TC_FRAG_INIT): Define.
2501 (HANDLE_ALIGN): Define.
2502 (md_do_align): Define.
2503
ea3b9044
NC
25042001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
2505
2506 * config/obj-coff.c (do_linenos_for): Check to see if the filename
2507 symbol has been initialised before extracting its symbol index.
2508
d6d788bd
L
25092001-04-24 H.J. Lu <hjl@gnu.org>
2510
2511 * configure: Regenerated with the right version of autoconf.
2512
6840198f
NC
25132001-04-24 Christian Groessler <cpg@aladdin.de>
2514
2515 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
2516 generate R_CALLR and R_REL16 relocations
2517
1c97d17b
JE
25182000-04-20 Jason Eckhardt <jle@redhat.com>
2519
2520 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
2521 since frag_now can change after d10v_cleanup is called.
2522
1c33f1da
DB
25232001-04-16 David O'Brien <obrien@FreeBSD.org>
2524
2525 * configure.in: Add the em type for FreeBSD targets.
2526 * configure: Regenerate.
2527
eb0dfd58
AO
25282001-04-14 Alexandre Oliva <aoliva@redhat.com>
2529
8c5e1ccd
AO
2530 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
2531 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
2532
eb0dfd58
AO
2533 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
2534 pc-relative relocations not placed at the end of the instruction.
2535
1deb8127
JW
25362001-04-13 Jim Wilson <wilson@redhat.com>
2537
2538 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
2539 excluding br.i.
2540
f5fa8ca2
JJ
25412001-04-13 Jakub Jelinek <jakub@redhat.com>
2542
2543 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
2544 handle SHF_MERGE and SHF_STRINGS.
2545 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
2546 (obj_elf_section): Allow additional argument specifying entity size.
2547 * write.c (adjust_reloc_syms): Keep relocations against local symbols
2548 in SEC_MERGE sections.
2549
fb81275c
JM
25502001-04-12 Jason Merrill <jason_merrill@redhat.com>
2551
2552 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
2553
a8a22e33
AO
25542001-04-12 Alexandre Oliva <aoliva@redhat.com>
2555
2556 * expr.c (operand): Pass &c to md_parse_name().
2557 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
2558
af9539e4
L
25592001-04-07 Steven J. Hill <sjhill@cotw.com>
2560
2561 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
2562
2563 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
2564 * Makefile.in: Regenerated.
2565
2566 * configure.in: Use traditional MIPS targets for Linux/MIPS.
2567 * configure: Regenerated.
2568
4dfea105
AO
25692001-04-06 Alexandre Oliva <aoliva@redhat.com>
2570
2571 * config/tc-mn10300.c (xr_registers): Added `pc'.
2572
e66457fb
AM
25732001-04-05 Alan Modra <alan@linuxcare.com.au>
2574
2575 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
2576 * configure: Regenerate.
2577
2578 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
2579 cases, and always return size based on current fr_subtype.
2580 (md_begin): Move initialization of md_relax_table..
2581 (md_relax_table): ..to static initializer. Set rlx_length for
2582 UNDEF_WORD_DISP cases.
2583 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2584 (md_begin): Likewise.
2585 (md_relax_table): Likewise.
2586 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
2587 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2588 Set rlx_backward and rlx_forward to zero for unused states.
2589 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
2590 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2591 (UNCOND12, UNCOND32): Remove duplicate defines.
2592
aacb5251
HPN
25932001-04-04 Hans-Peter Nilsson <hp@axis.com>
2594
c335d394
HPN
2595 * config/tc-cris.c (md_estimate_size_before_relax) <case
2596 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
2597 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
2598 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
2599 Add cases to cover all relax states.
ed67db7a
HPN
2600 (cris_insn_first_word_frag): New.
2601 (md_assemble): Call cris_insn_first_word_frag to get the first
2602 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
2603 end. Drop variable insn_size.
2604 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
2605 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
2606 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
c335d394 2607
aacb5251
HPN
2608 * write.c (write_object_file): Reset broken word state before
2609 calling relax_seg.
2610
cdbc6895
AM
26112001-03-31 Alan Modra <alan@linuxcare.com.au>
2612
61b96bb4
AM
2613 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
2614 for one line if not already enabled.
2615 * cond.c (s_elseif): Correct conditional assembly listing.
2616 (s_else): Likewise.
2617
cdbc6895
AM
2618 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
2619 Don't abort on NULL current_cframe.
2620
93c2a809
AM
26212001-03-30 Alan Modra <alan@linuxcare.com.au>
2622
0529cb87 2623 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
1a5447b8
AM
2624 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
2625 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
2626 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2627 * config/obj-coff.c (do_relocs_for): Likewise.
2628 (yank_symbols): Likewise.
2629 (fixup_segment): Likewise.
2630 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2631 (ppc_fix_adjustable): Likewise.
2632 * config/tc-mips.c (md_convert_frag): Likewise.
2633 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2634 * ehopt.c (eh_frame_convert_frag): Likewise.
2635 * expr.c (make_expr_symbol): Likewise.
0529cb87 2636
e46d99eb
AM
2637 * frags.h (struct frag): Add last_fr_address. Reorder fields for
2638 better packing.
2639 * symbols.c (resolve_symbol_value): Don't fix expression values
2640 until relaxation is complete.
2641 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
2642 (S_GET_VALUE): Likewise, and return unresolved expression value.
2643 * write.c (finalize_syms): New.
2644 (relax_and_size_seg): Split into..
2645 (relax_seg): New function, returns 1 if anything changed..
2646 (size_seg): And the remainder of relax_and_size_seg.
2647 (fixup_segment): Arrange for final resolution of sym values.
2648 (adjust_reloc_syms): Likewise.
2649 (write_object_file): Likewise, and repeatedly call relax_seg until
2650 nothing more changes.
2651 (relax_segment): Return 1 if anything changed. Use correct types
2652 for rs_org `target' and `after'.
2653 * write.h (finalize_syms): Declare.
2654 (relax_segment): Update prototype.
2655
93c2a809
AM
2656 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
2657 do-nothing cases to switch to avoid abort on a second relaxation
2658 pass, and tidy code a little.
2659 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
2660 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
2661 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2662 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
2663 (md_relax_table): Remove first four unused entries. Increment
2664 rlx_length by one throughout table, and update comments to suit.
2665 (md_estimate_size_before_relax): Return size of current variable
2666 part of frag to reflect reality when relaxing more than once.
2667 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
2668 (COND32, UNCD32): Rename to DISP32 throughout.
2669 (UNDEF_WORD_DISP): Renumber to 3.
2670 (md_estimate_size_before_relax): Add extra do-nothing cases.
2671 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
2672 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
2673 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
2674 handle word and dword branches.
2675
d551a338
HPN
26762001-03-29 Hans-Peter Nilsson <hp@axis.com>
2677
2678 * config/tc-cris.h (tc_fix_adjustable): Allow only
2679 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
23ec5d03
HPN
2680 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
2681 example in comment to valid type.
d551a338 2682
440ecb38
L
26832001-03-28 H.J. Lu <hjl@gnu.org>
2684
2685 * read.c (equals): Set to local for COFF only if it hasn't been
2686 defined before.
2687
8a238888
AM
26882001-03-28 Alan Modra <alan@linuxcare.com.au>
2689
2690 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
2691 (md_begin): Use it when setting default architecture.
2692
775cf891
NC
26932001-03-27 Nick Papadonis <nick@coelacanth.com>
2694
2695 * read.c (equals): (for COFF) default symbols to being local.
2696
f9c19112
HPN
26972001-03-27 Hans-Peter Nilsson <hp@axis.com>
2698
2699 * configure.in (cris-*-*): Change default emulation to criself.
2700 (cris-*-*aout*): New rule.
2701 * configure: Regenerate.
2702
07855bec
NC
27032001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
2704
2705 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
2706 BFD_RELOC_390_GOTENT.
2707 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
2708 BFD_RELOC_390_GOTENT.
2709
27102001-03-26 Nick Clifton <nickc@redhat.com>
2711
2712 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
2713 * config/tc-s390.c (s390_force_relocation): New function: Force
2714 relocations for VTINHERIT relocs.
2715
0285c67d
NC
27162001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2717
2718 * doc/as.texinfo: Put @c man begin to generate the as man page.
2719 When generating man, define all the variables. Re-organize some
2720 options to obtain better indentation of man page.
2721 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2722 (as.1): Build from as.texinfo.
2723 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
2724
551c1ca1
AM
27252001-03-25 Alan Modra <alan@linuxcare.com.au>
2726
2727 * config/tc-i386.c (i386_scale): Accept an absolute expression for
2728 scale factor, and return the end of the expression.
2729 (i386_operand): Modify for above.
2730
c3a27914
NC
27312001-03-23 Nick Clifton <nickc@redhat.com>
2732
2733 * doc/as.texinfo: Document --listing-XXX command line switches.
2734 Explain why listings behave differently when -pipe is used.
2735
37006e43
NC
27362001-03-23 Richard Sandiford <rsandifo@redhat.com>
2737
2738 * write.c (fix_new_exp): Print an error if passed a register.
2739
08caf3f8
HPN
27402001-03-23 Hans-Peter Nilsson <hp@axis.com>
2741
2742 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
2743 (PIC_SUFFIX_CHAR): New macro.
2744 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
2745 (pic): New variable.
2746 (md_longopts): New option --pic.
2747 (OPTION_PIC): Define.
2748 (md_estimate_size_before_relax): Tweak longish comment.
2749 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
2750 (md_assemble): Handle a PIC relocation on prefix and normal
2751 instruction operands.
2752 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
2753 "complex" operand expressions. Call frag_more outside
2754 gen_cond_branch_32 parameter list.
2755 (cris_process_instruction): Handle PIC relocs on parsed
2756 operand expressions. Validize PIC reloc sizes.
2757 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
2758 (gen_bdap): Handle "complex" operand expressions.
2759 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
2760 ADD.D offset,PC as jump instruction if generating PIC. Generate
2761 error instead of crashing on complex expressions.
2762 (cris_number_to_imm): Add segT parameter. All callers changed.
2763 Use segT parameter, not now_seg, for segment of fixup. Handle
2764 PCREL relocations but check that they are fully resolved.
2765 (md_parse_option): Handle OPTION_PIC.
2766 (tc_gen_reloc): Handle PIC relocs.
2767 (md_show_usage): Update for --pic.
2768 (md_apply_fix3): Renamed from md_apply_fix.
2769 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
2770 (md_cris_force_relocation): Force relocation for PIC relocs.
2771
2772 * config/tc-cris.h: Tweak attribution.
2773 (MD_APPLY_FIX3): Define.
2774 (IS_CRIS_PIC_RELOC): New macro.
2775 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2776 (tc_fix_adjustable): Don't adjust a globally visible symbol when
2777 generating ELF.
8a238888 2778 (tc_frob_symbol): Avoid emitting undefined symbols.
08caf3f8 2779
38686296
AM
27802001-03-20 Alan Modra <alan@linuxcare.com.au>
2781
2782 * frags.h (struct frag): Add relax_marker.
2783 * write.c (is_dnrange): Delete.
2784 (relax_frag): Use correct types for `aim', `target', `address'.
2785 Delete `offset', `was_address'. Test `relax_marker' instead of
2786 using fragile (and slow) address test.
2787 (relax_segment): Init and flip `relax_marker'.
2788
2e98d2de
AM
27892001-03-19 Alan Modra <alan@linuxcare.com.au>
2790
2791 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
2792 used register name.
2793
e629c13f
SC
27942001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2795
2796 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
2797 with 'Motorola specification for assembly language input standard'.
2798
249e3833
RH
27992001-03-17 Richard Henderson <rth@redhat.com>
2800
2801 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
2802 (dwarf2_directive_loc): Don't use them.
2803 (dwarf2_directive_file): Reject duplicate file definitions.
2804 (get_filenum): Zero allocated memory.
2805 (out_file_list): Complain about missing file definitions.
2806
2289f85d
AM
28072001-03-17 Alan Modra <alan@linuxcare.com.au>
2808
2809 * read.c (do_org): Handle complex expressions.
2810 * cgen.c (gas_cgen_finish_insn): Likewise.
2811
4d5a53ff
JW
28122001-03-15 David Mosberger <davidm@hpl.hp.com>
2813
2814 * config/tc-ia64.c (md): New member keep_pending_output.
2815 (ia64_flush_pending_output): Flush only if md.keep_pending_output
2816 is not set.
2817 (dot_xdata): Turn on md.keep_pending_output for the duration of
2818 this function.
2819 (dot_xfloat_cons): Ditto.
2820 (dot_xstringer): Ditto.
2821 (dot_xdata_ua): Ditto.
2822 (dot_xfloat_cons_ua): Ditto.
2823
28242001-03-15 Jim Wilson <wilson@redhat.com>
2825
2826 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
2827 label support.
2828
19c0258a
AO
28292001-03-15 Alexandre Oliva <aoliva@redhat.com>
2830
2831 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
2832
d68d4570
DD
28332001-03-15 DJ Delorie <dj@redhat.com>
2834
2835 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
2836 blindly freeing string if it isn't at the top of the obstack.
2837
f3c180ae
AM
28382001-03-13 Alan Modra <alan@linuxcare.com.au>
2839
2840 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
2841 (NUM_FLAG_CODE): Define.
2842 (lex_got): New function.
2843 (got_reloc): New global var.
2844 (x86_cons_fix_new): New function.
2845 (x86_cons): New function.
2846 (i386_immediate): Use lex_got here, replacing inline code. Change
2847 "ignoring junk.." error message to "junk.."
2848 (i386_displacement): Likewise.
2849 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
2850 (x86_cons): Declare.
2851 (TC_CONS_FIX_NEW): Define.
2852 (x86_cons_fix_new): Declare.
2853
83e7603d
NC
28542001-03-12 Nick Clifton <nickc@redhat.com>
2855
2856 * config/tc-arm.c (md_begin): Always set machine type based on
2857 cpu_variant.
2858
1ae12ab7
AM
28592001-03-07 Alan Modra <alan@linuxcare.com.au>
2860
2861 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
f3c180ae 2862 (md_assemble) <smallest displacement>: Use correct field of i.op[]
1ae12ab7 2863 union.
f3c180ae
AM
2864 <JumpInterSegment output>: Use correct i.disp_reloc[].
2865 <immediate output>: Likewise.
1ae12ab7 2866
4f3c3dbb
NC
28672001-03-06 Nick Clifton <nickc@redhat.com>
2868
2869 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
2870 BLX(1) instruction.
2871
dc84e067
NC
28722001-03-06 Igor Shevlyakov <igor@windriver.com>
2873
2874 * config/tc-m68k.c : Add 5407 to archs[] table.
2875 (HAVE_LONG_BRANCH): Add mcf5407.
2876 (select_control_regs): Recognize 5407.
2877
a8150a88
DB
28782001-03-02 Dave Brolley <brolley@redhat.com>
2879
1ae12ab7
AM
2880 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
2881 than m32r_do_align.
a8150a88 2882
e103941e
NC
28832001-03-02 Richard Sandiford <rsandifo@redhat.com>
2884
2885 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
2886 (gen_to_words): Print warnings if NaNs are found and the target CPU
2887 does not support them. Allow largest exponent to be used in normal
2888 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
2889
7c44d1d3
AJ
28902001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
2891
2892 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
2893 anymore since we use bfd_elf_generic_reloc now.
2894 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
2895
27b7e12d
AM
28962001-02-27 Alan Modra <alan@linuxcare.com.au>
2897
2898 * configure.in (BFD_VERSION): New.
2899 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2900 * configure: Regenerate.
2901 * Makefile.am: Run "make dep-am"
2902 * Makefile.in: Regenerate.
2903 * doc/Makefile.in: Regenerate.
2904
1af96959
NC
29052001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
2906
2907 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
2908 SEC_NEVER_LOAD when the 'n' flag is used.
2909 Add SEC_NEVER_LOAD to matchflags.
2910
d95767bf
SC
29112001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2912
2913 * symbols.c (decode_local_label_name): Initialize message_format
2914 only when an error is reported (perf pb due to I18N).
2915
3737d051
L
29162001-02-23 H.J. Lu <hjl@gnu.org>
2917
2918 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
2919 BFD_ASSEMBLER is not defined.
2920
23fe39df 29212001-02-23 Richard Sandiford <rsandifo@redhat.com>
b653e7f9
NC
2922
2923 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
2924 done if it's against a symbol.
2925
7463c317
TW
29262001-02-22 Timothy Wall <twall@cygnus.com>
2927
2928 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
2929 target formats if applicable.
2930 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
2931 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
2932 * Makefile.in: Regenerated.
2933 * configure.in: Added configuration for ia64-*-aix*.
2934 * configure: Regenerated.
7c44d1d3 2935
87f8eb97
JW
29362001-02-21 David Mosberger <davidm@hpl.hp.com>
2937
2938 * config/tc-ia64.c (enum operand_match_result): New type.
2939 (operand_match): Change return type to operand_match_result.
2940 Fix all returns appropriately, adding support for returning the
2941 out-of-range result.
2942 (parse_operands): New locals result, error_pos, out_of_range_pos,
2943 curr_out_of_range_pos. Rewrite operand matching loop to give better
2944 error messages.
7c44d1d3 2945
33d01f33
JW
29462001-02-21 David Mosberger <davidm@hpl.hp.com>
2947
2948 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
2949 (dot_proc): Clear unwind.prologue_count to zero.
2950 (dot_prologue): Increment unwind.prologue_count.
2951 (dot_restore): If second operand is omitted, use
2952 unwind.prologue_count -1 for "ecount" (# of additional regions to
2953 pop). Decrement unwind.prologue_count by number of regions
2954 popped.
2955
7e84d676
NC
29562001-02-21 Nick Clifton <nickc@redhat.com>
2957
2958 * doc/as.texinfo (Section): Note that some flags to the COFF
2959 version of .section remove attributes rather than setting them.
2960
5cd4edbe
KH
29612001-02-20 Kazu Hirata <kazu@hxi.com>
2962
29184774
NC
2963 * config/tc-pdp11.c: Fix formatting.
2964 * config/tc-pdp11.h: Likewise.
5cd4edbe 2965
80b3ee89
AJ
29662001-02-20 Bo Thorsen <bo@suse.de>
2967
2968 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
2969 entry.
2970
0fde8cc6 29712001-02-18 David O'Brien <obrien@FreeBSD.org>
cac5b87b
DB
2972
2973 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
2974 all FreeBSD platforms should look the same at this level.
2975 * configure: Rebuilt.
2976 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
2977
e135f41b
NC
29782001-02-18 lars brinkhoff <lars@nocrew.org>
2979
2980 * Makefile.am: Add PDP-11 target.
2981 * configure.in: Likewise.
2982 * config/tc-pdp11.c: New file.
2983 * config/tc-pdp11.h: New file.
2984 * doc/Makefile.am: Add PDP-11 documentation.
2985 * doc/all.texi: Likewise.
2986 * doc/as.texinfo: Likewise.
2987 * doc/c-pdp11.texi: New file.
2988
363c574f
MG
29892001-02-16 matthew green <mrg@redhat.com>
2990
5dd0794d 2991 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
363c574f 2992
fa1cb89c
JW
29932001-02-13 Jim Wilson <wilson@redhat.com>
2994
2995 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
2996 reloc instead of a 0 reloc.
2997 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
2998 as done.
2999 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
3000
c842b53a
ILT
30012001-02-13 Ian Lance Taylor <ian@zembu.com>
3002
3003 * write.c (is_dnrange): Stop as soon as the address becomes
3004 larger.
3005 (relax_frag): Add segment parameter. Only call symbol_get_frag
3006 once. Only call is_dnrange if the symbol is in the same segment,
3007 and the symbol address is larger.
3008 (relax_segment): Pass segment to md_relax_frag and relax_frag.
3009 * write.h (relax_frag): Update declaration.
3010 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
3011 it to relax_frag.
3012 * config/tc-m32r.c (m32r_relax_frag): Likewise.
3013 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
3014 (m32r_relax_frag): Update declaration.
3015 * config/tc-mips.h (md_relax_frag): Add segment parameter.
3016 * config/tc-tic54x.h (md_relax_frag): Likewise.
3017 * doc/internals.texi (CPU backend): Update documentation for
3018 md_relax_frag.
3019
6fad6acb
AM
30202001-02-13 Alan Modra <alan@linuxcare.com.au>
3021
fddf5b5b
AM
3022 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
3023 Mention effect of < 386 architectures on jump promotion.
3024 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
3025
3026 * config/tc-i386.c (no_cond_jump_promotion): New.
3027 (set_cpu_arch): Parse "jumps" arch modifier.
3028 (insn_size): Modify usage comment.
3029 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
3030 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
3031 (TYPE_FROM_RELAX_STATE): New define.
3032 (UNCOND_JUMP, COND_JUMP): Renumber.
3033 (md_relax_table): Reorder to suit.
3034 (COND_JUMP86): New define.
3035 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
3036 (md_assemble): Create frag var for jumps of max size, encode relax
3037 state for COND_JUMP86.
3038 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
3039 leave conditional jumps small if no_cond_jump_promotion.
3040 (md_convert_frag): Likewise.
3041
6fad6acb
AM
3042 * expr.c (operator): Don't bump input_line_pointer for two char
3043 operators. Instead return operator size via new param num_chars.
3044 (expr): Use above to parse multi-char operators correctly.
3045
23df1078
JH
3046Mon Feb 12 17:45:50 CET 2001 Jan Hubicka <jh@suse.cz>
3047
29184774 3048 * config/tc-i386.c (i386_displacement): Fix handling of
23df1078
JH
3049 BFD_RELOC_X86_64_GOTPCREL.
3050 (i386_validate_fix): Likewise.
3051
b1e2e654
PB
30522001-02-12 Philip Blundell <pb@futuretv.com>
3053
3054 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
3055 ldrt/strt instructions.
3056
9117d219
NC
30572001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3058
3059 * config/tc-mips.c (macro): For M_LA_AB emit a
3060 BFD_RELOC_MIPS_CALL16 relocation or a
3061 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
3062 BFD_RELOC_MIPS_GOT16 and
3063 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
3064 loading the jump register when generating SVR4_PIC code.
3065
97238fbd
CD
30662001-02-10 Chris Demetriou <cgd@broadcom.com>
3067
3068 * configure.in: Make 'mipself' and 'mipsecoff' emulations
3069 map to MIPS-specific files, as they used to do before the
3070 change on 2000-05-21.
3071 * configure: Regerate.
3072
0f074f60
CD
30732001-02-10 Chris Demetriou <cgd@broadcom.com>
3074
3075 * config/tc-mips.c (md_parse_option): Don't try to compile
3076 ELF-only option code if not ELF.
3077
91a2ae2a
RH
30782001-02-08 David Mosberger <davidm@hpl.hp.com>
3079
3080 * config/tc-ia64.h (md_elf_section_type): New macro.
3081 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
3082 (they're now handled via ia64_elf_section_type.
3083
3084 * config/tc-ia64.c (unwind): New members saved_text_seg,
3085 saved_text_subseg, and force_unwind_entry.
3086 (optimize_unw_records): New function to optimize away unnecessary
3087 unwind directives.
3088 (ia64_elf_section_type): New function.
3089 (output_unw_records): Generate unwind info only if the size is
3090 non-zero or if it's forced for some other reason (e.g.,
3091 handlerdata or a personality routine).
3092 (generate_unwind_image): Don't switch back to previous
3093 section---stay inside the unwind info section instead so that
3094 handlerdata that may follow goes into the right place.
3095 (dot_handlerdata): Force generation of unwind entry and save the
3096 current active text segment before generating unwind image.
3097 (dot_unwentry): Force generation of unwind entry.
3098 (dot_personality): Ditto.
3099 (dot_endp): Generate unwind table entry only if there is
3100 some unwind info or the unwind entry was forced.
3101
3102 * config/tc-ia64.c (make_unw_section_name): New macro to form
3103 unwind section name.
3104 (generate_unwind_image): Add "text_name" argument. Use it to
3105 form unwind section name.
3106 (dot_handlerdata): Determine current segment (section) name and
3107 pass it to generate_unwind_image().
3108 (dot_endp): Determine current segment (section) name and use
3109 it to determine the appropriate unwind section name.
3110 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
3111 n, fill, and max arguments.
3112
a85d7ed0
NC
31132001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
3114
3115 * Makefile.am: Add linux target for S/390.
3116 * configure.in: Likewise.
3117 * config/tc-s390.c: New file.
3118 * config/tc-s390.h: New file.
3119
de68de20
AO
31202001-02-09 Alexandre Oliva <aoliva@redhat.com>
3121
3122 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
3123 2byte, 4byte and 8byte.
3124
23fe39df 31252001-02-08 Alan Modra <alan@linuxcare.com.au>
8ea46bbd
AM
3126
3127 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
3128 md_number_to_chars with size > sizeof (valueT).
3129
a99746f4
L
31302001-02-06 H.J. Lu <hjl@gnu.org>
3131
3132 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
3133 there is no relocation.
3134
f4e17b3d
L
31352001-02-06 H.J. Lu <hjl@gnu.org>
3136
3137 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
3138
3139 * config/tc-ia64.c (md_parse_option): Only accept the valid
3140 ia64 options on "-axxx".
3141
3557da92
JW
31422001-02-05 Jim Wilson <wilson@redhat.com>
3143
3144 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
3145 aborting for invalid operands.
3146
da6c73e0
AM
31472001-02-06 Alan Modra <alan@linuxcare.com.au>
3148
3149 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
3150 than via pointer. Update all callers.
3151 (UNWIND_LOW32): Define.
3152 (UNWIND_HIGH32): Define.
3153 (pa_build_unwind_subspace): Use the above macros instead of dumping
3154 bitfields directly. Call frag_more once rather than multiple times.
3155 (md_assemble): Use UNWIND_LOW32.
3156 (pa_entry): Likewise
3157 (pa_procend): Likewise.
3158 (process_exit): Use UNWIND_HIGH32.
3159
986c6f4b
SC
31602001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3161
3162 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
3163 function to select the header according to the cpu.
3164 (md_after_pass_hook, md_do_align): Remove.
3165 (md_cleanup, m68hc11_cleanup): Remove.
3166 (md_pcrel_from_section): Declare.
3167 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
3168 (build_jump_insn, build_insn): Likewise.
3169 (m68hc11_listing_header): New function.
3170 (m68hc11_cleanup): Remove.
3171
dbb8ad49
SC
31722001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3173
328dc123 3174 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
80b3ee89 3175 symbols because there is no support for shared libraries and these
328dc123 3176 symbols can't be overridden (unless they are weak).
dbb8ad49 3177
a987bfc9
RH
31782001-02-01 Momchil Velikov <velco@fadata.bg>
3179
3180 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
3181 for the compilation unit with a zero byte.
3182
22862cde
AM
31832001-01-30 Alan Modra <alan@linuxcare.com.au>
3184
3185 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
3186 destinations. Correct range check for 17 and 22 bit branches.
3187
8ec6253e
NC
31882001-01-25 Nick Clifton <nickc@redhat.com>
3189
3190 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
3191 still set. Issue an error message instead.
3192 (md_estimate_size_before_relax): Delete unused variable
3193 'buffer_address'. Fixup parentheses around if statement.
80b3ee89 3194
43ad3147
KH
31952001-01-23 Kazu Hirata <kazu@hxi.com>
3196
3197 * as.c: Fix formatting.
3198 * ehopt.c: Likewise.
3199 * messages.c: Likewise.
3200 * stabs.c: Likewise.
3201 * symbols.c: Likewise.
3202
015c05c1
AM
32032001-01-23 Ben Elliston <bje@redhat.com>
3204
3205 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
3206
66498417
KH
32072001-01-22 Kazu Hirata <kazu@hxi.com>
3208
3209 * config/tc-alpha.c: Fix formatting.
3210
1aad8cf8
KH
32112001-01-19 Kazu Hirata <kazu@hxi.com>
3212
3213 * config/tc-alpha.c: Fix formatting.
3214
32ff5c2e
KH
32152001-01-18 Kazu Hirata <kazu@hxi.com>
3216
3217 * config/tc-alpha.c: Fix formatting.
3218
cd17328a
NC
32192001-01-18 Nick Clifton <nickc@redhat.com>
3220
3221 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
3222 "da" flags.
3223 (stm_flags): Remove redundant bit from "ed" and "da" flags.
3224
81c425d1
AO
32252001-01-18 Alexandre Oliva <aoliva@redhat.com>
3226
3227 * configure.in (cpu_type, arch): Match i386 too.
3228 * configure: Rebuilt.
3229
e5cb08ac
KH
32302001-01-16 Kazu Hirata <kazu@hxi.com>
3231
3232 * config/tc-i386.c: Fix formatting.
3233
1d3d5051
AM
32342001-01-16 Alan Modra <alan@linuxcare.com.au>
3235
64afeba3
AM
3236 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
3237 relocs for .PARISC.unwind section.
3238
1d3d5051
AM
3239 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
3240 depending on section flags, not just for .text.
3241
b44b1b85
JW
32422001-01-15 Jim Wilson <wilson@redhat.com>
3243
3244 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
3245 not immediately followed by an instruction.
3246
098f2ec3
KH
32472001-01-15 Kazu Hirata <kazu@hxi.com>
3248
3249 * config/tc-m68hc11.c: Fix formatting.
3250
d4887adc
NC
32512001-01-15 Nick Clifton <nickc@redhat.com>
3252
3253 * symbols.c (colon): Change 'already defined symbol' from a
3254 fatal error to an ordinary error. There is no reason why this
3255 error should be fatal.
3256
3257 * message.c (as_fatal): Delete output file, if one has been
015c05c1 3258 created.
d4887adc 3259
fcfd4916
AM
32602001-01-14 Alan Modra <alan@linuxcare.com.au>
3261
3262 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
3263
bfb32b52
KH
32642001-01-14 Kazu Hirata <kazu@hxi.com>
3265
3266 * config/tc-alpha.c: Fix formatting.
3267 * config/tc-arc.c: Likewise.
3268 * config/tc-arc.h: Likewise.
3269 * config/tc-d10v.c: Likewise.
3270 * config/tc-i370.c: Likewise.
3271 * config/tc-i386.c: Likewise.
3272 * config/tc-i960.c: Likewise.
3273 * config/tc-m68k.c: Likewise.
3274 * config/tc-ppc.c: Likewise.
3275 * config/tc-sparc.c: Likewise.
3276 * config/tc-tahoe.c: Likewise.
3277 * config/tc-vax.c: Likewise.
3278
1e07b820
KH
3279 * config/tc-arc.c: Fix formatting.
3280
19203624
KH
3281 * config/tc-arc.c: Fix formatting.
3282
1328dc98
AM
32832001-01-14 Alan Modra <alan@linuxcare.com.au>
3284
c46b7515
AM
3285 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
3286 both 32 and 64 bit ELF.
3287
1328dc98
AM
3288 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
3289 and don't bother storing `m' for "ce" completer. Tidy handling of
3290 'J' and 'K' operands to suit. Handle '<' and '>' operands.
3291
b9d79e03
JH
3292Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
3293
29184774 3294 * config/tc-i386.h (TARGET_MACH): New macro.
b9d79e03 3295 (i386_mach): Declare.
29184774 3296 * config/tc-i386.c (i386_mach): New function.
b9d79e03 3297
a349d9dd
PB
32982001-01-13 Philip Blundell <philb@gnu.org>
3299
3300 * doc/as.texinfo: Fix spelling and cross-references.
3301
3302 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
3303 character for all systems, not just GNU/Linux. Make it explicit
3304 that `-k' doesn't affect code generation, just ELF flags.
3305
e2914f48
JH
3306Sat Jan 13 01:47:35 MET 2001 Jan Hubicka <jh@suse.cz>
3307
3308 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
3309 instructions.
3310
272d76e0
FCE
33112001-01-12 Frank Ch. Eigler <fche@redhat.com>
3312
3313 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
3314
d0398d6a
NC
33152001-01-12 Nick Clifton <nickc@redhat.com>
3316
3317 * as.c (print_args): Update copyright date to 2001.
3318
2d73a4ca
NC
33192001-01-12 Peter Targett <peter.targett@arccores.com>
3320
3321 * doc/c-arc.texi: New file.
3322 Some sections to be expanded.
3323
6e0b89ee
AM
33242001-01-12 Alan Modra <alan@linuxcare.com.au>
3325
3326 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
3327 (md_parse_option): Always accept "--32".
3328
0d2bcfaf
NC
33292001-01-11 Peter Targett <peter.targett@arccores.com>
3330
3331 * as.h (TC_ARC): Ensure struc-symbol.h included.
3332 * as.c (dwarf2dbg.h): Include to remove implicit declaration
3333 warnings.
3334 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
3335 (TARGET_SYMBOL_FIELDS) added.
3336
3337 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
3338 * doc/c-arc.texi: New file.
3339 Some sections to be expanded.
3340 * doc/as.texinfo: Update command-line options.
3341 Removed outdated text for ARC dependant features, instead include
3342 text from above file.
3343
3344 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
3345 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
3346 (targ-cpu.h) header.
3347 * config/tc-arc.h:
3348 * config/tc-arc.c: New updated configuration for
3349 ARC, including selection of core variants, and extensibility of
3350 instructions, registers etc. through directives.
3351
3352 * config/tc-arc.c (arc_extinst): Minor corrections for
3353 error messages.
3354 (arc_common) Likewise. Make alignment argument optional for local
3355 symbols also, with default of zero.
3356
88051039
SC
33572001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3358
3359 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
3360 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
3361 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
3362 and fix_new_exp() instead.
3363 (md_convert_frag): For indexed post byte use the symbol value
3364 rather than the displacement.
3365 (md_relax_table): Fix indexed offset relax.
3366
d8273f3b
SC
33672001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3368
3369 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
3370 relax weak symbols.
015c05c1 3371 (relaxable_symbol): New function.
d8273f3b 3372
eea2ad45
AJ
33732001-01-11 Andreas Jaeger <aj@suse.de>
3374
3375 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
3376 not used anywhere.
3377
7a91e76a
NC
33782001-01-10 Nick Clifton <nickc@redhat.com>
3379
3380 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
3381 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
3382
aa257fcd
NC
33832001-01-10 Nick Clifton <nickc@redhat.com>
3384
3385 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
3386 character used to dollar local symbols.
3387 (LOCAL_LABEL_CHAR): New constant - the magic character used to
3388 local label symbols.
3389 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
3390 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
3391 if defined.
3392 Use LOCAL_LABEL_CHAR.
3393 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
3394 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3395 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3396
b77a7acd
AJ
33972001-01-08 Bo Thorsen <bo@suse.de>
3398
015c05c1
AM
3399 * config/tc-i386.c (i386_immediate, i386_displacement):
3400 GOTPCREL check fix.
b77a7acd 3401
5c2bd011
ILT
34022001-01-07 Ian Lance Taylor <ian@zembu.com>
3403
3404 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
3405 in last change.
3406
46a04e3a
PB
34072001-01-07 Philip Blundell <philb@gnu.org>
3408
3409 * doc/as.texinfo (Bug Reporting): Update email address for
3410 reports.
3411 * README: Likewise.
3412
b96d3a20
JH
3413Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
3414
3415 * configure.in: Define DEFAULT_ARCH for i386.
29184774 3416 * config/tc-i386.c (md_assemble): Return after the error message;
b96d3a20
JH
3417 move testing for 64bit operands to proper place.
3418
55b62671
AJ
34192001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
3420
3421 * doc/as.texinfo: Document '#' as comment character for i386 and
3422 x86_64. Add AMD x86-64 into menu of machine dependent information.
3423
3424 * doc/c-i386.texi: Document x86_64 extensions.
3425
7bc70a8e
JH
3426Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
3427
29184774 3428 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
7bc70a8e 3429
a167610d
JH
3430Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
3431
29184774 3432 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
a167610d
JH
3433 * NEWS: Add note about Pentium4 support.
3434
09f131f2
JH
3435Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
3436
29184774 3437 * config/tc-i387.c (pi, pte, pt): Update.
09f131f2
JH
3438 (type_names): Add new types.
3439
6f8c0c4c
JH
3440Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
3441
29184774 3442 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
6f8c0c4c
JH
3443 CpuUnknown): Renumber
3444 (CpuP4, CpuSSE2): New.
3445 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
3446
b96ed59a
PB
34472001-01-03 Philip Blundell <pb@futuretv.com>
3448
3449 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
3450 relocs.
3451 (alpha_fix_adjustable): Likewise.
3452 (md_apply_fix): Likewise.
3453
a735d1cd
L
34542000-12-31 H.J. Lu <hjl@gnu.org>
3455
3456 * listing.c (listing_message): Allocate string only if it is
3457 used.
3458
3459 * configure: Rebuild.
3460
67db5ab4
HPN
34612000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
3462
3463 * doc/internals.texi (Relaxing with a table) <after relaxation>:
3464 Point out caveats with generating fixups for the opcode in a frag.
3465
c0d8940f
JH
3466Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
3467
3468 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
3469 * NEWS: Add x86_64.
3470
087f563c
L
34712000-12-29 H.J. Lu <hjl@gnu.org>
3472
3473 * listing.c (calc_hex): Print the variable part only if the
3474 fragment type is rs_fill.
3475
8108ad8e
HPN
34762000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3477
3478 * doc/internals.texi (tc_conditional_pseudoop,
3479 TC_LINKRELAX_FIXUP): Fix typos.
3480
799051fc
RH
34812000-12-28 Richard Henderson <rth@redhat.com>
3482
3483 * write.c (subsegs_finish): Fix thinko last change -- don't
3484 "optimize" the alignment == 0 case.
3485
0a9ef439
RH
34862000-12-28 Richard Henderson <rth@redhat.com>
3487
3488 * as.h (rs_align_test): New.
3489 * frags.c (NOP_OPCODE): Move default from read.c.
3490 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
3491 (frag_align_code): New.
3492 * frags.h (frag_align_code): Declare.
3493 * read.c (NOP_OPCODE): Remove.
3494 (do_align): Use frag_align_code.
3495 * write.c (NOP_OPCODE): Remove.
3496 (get_recorded_alignment): New.
3497 (cvt_frag_to_fill): Handle rs_align_test.
3498 (relax_segment): Likewise.
3499 (subsegs_finish): Align last subseg in section to the
3500 section alignment. Use frag_align_code.
3501 * write.h (get_recorded_alignment): Declare.
3502 * config/obj-coff.c (size_section): Handle rs_align_test.
3503 (fill_section, fixup_mdeps): Likewise.
3504 (write_object_file): Use frag_align_code.
3505
3506 * config/tc-alpha.c (alpha_align): Use frag_align_code.
3507 (alpha_handle_align): New.
3508 * config/tc-alpha.h (HANDLE_ALIGN): New.
3509 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3510
3511 * config/tc-i386.h (md_do_align): Use frag_align_code.
3512 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3513
3514 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
3515 (ia64_handle_align): New.
3516 * config/tc-ia64.h (HANDLE_ALIGN): New.
3517 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3518
3519 * config/tc-m32r.c (m32r_do_align): Remove.
3520 (m32r_handle_align): New.
3521 (fill_insn): Use frag_align_code.
3522 * config/tc-m32r.h (md_do_align): Remove.
3523 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
3524 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
3525 * config/tc-mips.c, config/tc-mips.h: Similarly.
3526
3527 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
3528 (sh_handle_align): Likewise. Handle rs_align_code.
3529 (sh_do_align): Remove.
3530 * config/tc-sh.h (md_do_align): Remove.
3531 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3532
3533 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
3534 (sparc_handle_align): Likewise. Handle rs_align_code.
3535 * config/tc-sparc.h (md_do_align): Remove.
3536 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3537
3cd4dda7
DD
35382000-12-22 DJ Delorie <dj@redhat.com>
3539
3540 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
3541 when we assemble the first half of a pair.
3542
ec56dfb4
L
35432000-12-22 H.J. Lu <hjl@gnu.org>
3544
3545 * config/tc-i386.c (reloc): Update the macro for non-bfd
3546 assembler.
3547 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
3548
ad1172d4
L
35492000-12-22 H.J. Lu <hjl@gnu.org>
3550
3551 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
3552
3e73aa7c
JH
3553Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
3554
29184774 3555 * config/tc-i386.h (i386_target_format): Define even for ELFs.
3e73aa7c
JH
3556 (QWORD_MNEM_SUFFIX): New macro.
3557 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
3558 New macros
3559 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
3560 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
3561 ImmExt): Renumber.
3562 (Size64, No_qSuf, NoRex64, Rex64): New macros.
3563 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
3564 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
3565 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
3566 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
3567 Renumber.
3568 (Reg, WordReg): Add Reg64.
3569 (Imm): Add Imm32S and Imm64.
3570 (EncImm): New.
3571 (Disp): Add Disp64 and Disp32S.
3572 (AnyMem): Add Disp32S.
3573 (RegRex, RegRex64): New macros.
3574 (rex_byte): New type.
29184774 3575 * config/tc-i386.c (set_16bit_code_flag): Kill.
3e73aa7c
JH
3576 (fits_in_unsigned_long, fits_in_signed_long): New functions.
3577 (reloc): New parameter "signed"; support x86_64.
3578 (set_code_flag): New.
3579 (DEFAULT_ARCH): New macro; default to "i386".
3580 (default_arch): New static variable.
3581 (struct _i386_insn): New fields Operand_PCrel; rex.
3582 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
3583 (flag_code): New enum and static variable.
3584 (use_rela_relocations): New static variable.
3585 (flag_code_names): New static variable.
3586 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
3587 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
3588 K6 and Athlon.
3589 (i386_align_code): Return plain "nop" for x86_64.
3590 (mode_from_disp_size): Support Disp32S.
3591 (smallest_imm_type): Support Imm32S and Imm64.
3592 (offset_in_range): Support size of 8.
3593 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
3594 (md_pseudo_table): Add "code64"; use set_code_flat.
3595 (md_begin): Emit sane error message on hash failure.
3596 (tc_i386_fix_adjustable): Support x86_64 relocations.
3597 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
3598 instructions supported on particular arch just partially,
3599 output of 64bit immediates, handling of Imm32S and Disp32S type.
3600 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
3601 (i386_displacement): Likewise.
3602 (i386_index_check): Cleanup; support 64bit addresses.
3603 (md_apply_fix3): Support x86_64 relocation and rela.
3604 (md_longopts): Add "32" and "64".
3605 (md_parse_option): Add OPTION_32 and OPTION_64.
3606 (i386_target_format): Call even for ELFs; choose between
3607 elf64-x86-64 and elf32-i386.
3608 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
3609 (tc_gen_reloc): Support rela relocations and x86_64.
3610 (intel_e09_1): Support QWORD.
3611
21d6c4af
DN
36122000-12-15 Diego Novillo <dnovillo@redhat.com>
3613
3614 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
55b62671 3615 it's not an offset expression.
21d6c4af
DN
3616 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
3617 keep the braces '[' and ']' in the output string.
3618 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
3619 != FLAT. There is no such op_modifier.
3620
6717891c
NC
36212000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3622
3623 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
3624 if we have it.
3625
ee515fb7
KH
36262000-12-13 Kazu Hirata <kazu@hxi.com>
3627
3628 * as.h: Fix formatting.
3629 * cgen.h: Likewise.
3630 * dwarf2dbg.c: Likewise.
3631 * input-scrub.c: Likewise.
3632 * read.h: Likewise.
3633
349a994c
DD
36342000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
3635
3636 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
3637 configure: Regenerate.
3638
42dbf88c
NC
36392000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3640
3641 * dwarf2dbg.c: #include <limits.h> only if it exists.
3642
0485cba3
AM
36432000-12-13 Rodney Brown <RodneyBrown@mynd.com>
3644
3645 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
3646 (md_apply_fix): Here too.
3647
514829c3
JW
36482000-12-12 Jim Wilson <wilson@redhat.com>
3649
3650 * config/tc-ia64.h (ia64_init): Add prototype.
3651
92eb7b32
L
36522000-12-12 H.J. Lu <hjl@gnu.org>
3653
3654 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
3655
3656 * read.h (outputting_stabs_line_debug): Change it to int.
3657 * stabs.c (outputting_stabs_line_debug): Likewise.
3658
8141c27d
GK
36592000-12-12 Geoffrey Keating <geoffk@redhat.com>
3660
3661 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
3662 the address of a function result.
3663
5d6f4f16
GK
36642000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3665
3666 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
3667 (md_assemble): Call dwarf2_emit_insn.
3668 (shlib): Fix typo SHILB -> SHLIB.
3669 (md_parse_option): Likewise.
3670 (ppc_elf_validate_fix): Likewise:
3671 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3672
d4c0c039
NC
36732000-12-12 Nick Clifton <nickc@redhat.com>
3674
3675 * cgen.h: Fix formatting.
3676 * input-scrub.c: Fix formatting.
3677 * macro.c: Fix formatting.
e972090a 3678 * config/tc-mips.c: Fix formatting.
584da044 3679 * doc/c-mips.texi: Fix formatting.
55b62671 3680
f16b83df
JH
3681Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
3682
29184774 3683 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
f16b83df
JH
3684 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
3685 references.
3686 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
3687 otherwise.
29184774 3688 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
f16b83df
JH
3689 (No_dSuf): Kill.
3690
3691 * i386.h (*_Suf): Remove No_dSuf.
3692 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
3693 Remove.
3694 (i386_optab): Remove 'd' in the suffixes.
3695
50705ef4
AM
36962000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3697
3698 * config/tc-i386.c (T_SHORT): Undefine before defining.
3699
beae10d5
KH
37002000-12-05 Kazu Hirata <kazu@hxi.com>
3701
3702 * config/tc-mips.c: Fix formatting.
3703
bccba5f0 37042000-12-04 Matthew Hiller <hiller@redhat.com>
50705ef4
AM
3705
3706 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
3707 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
3708 (md_show_usage): Ditto.
3709 (md_parse_option): Ditto.
3710 (d10v_cleanup): Writes pending instruction only if
3711 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
bccba5f0 3712 Fix compile time warning messages.
50705ef4
AM
3713
3714 * doc/c-d10v.texi: Documents new options.
bccba5f0
NC
3715
37162000-12-04 Matthew Hiller <hiller@redhat.com>
3717
50705ef4 3718 * stabs.c (outputting_stabs_line_debug): New variable.
bccba5f0
NC
3719 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
3720 function entry and unset at function exit.
3721
50705ef4 3722 * read.h (outputting_stabs_line_debug): New extern declaration.
bccba5f0
NC
3723
3724 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
3725
3726 * dwarf2dbg.c: Fix compile time warning messages.
3727
bc805888
KH
37282000-12-03 Kazu Hirata <kazu@hxi.com>
3729
3730 * config/tc-a29k.c: Fix formatting.
3731 * config/tc-alpha.c: Likewise.
3732 * config/tc-arm.c: Likewise.
3733 * config/tc-cris.c: Likewise.
3734 * config/tc-hppa.c: Likewise.
3735 * config/tc-i370.c: Likewise.
3736 * config/tc-i386.c: Likewise.
3737 * config/tc-i860.c: Likewise.
3738 * config/tc-i960.c: Likewise.
3739 * config/tc-ia64.c: Likewise.
3740 * config/tc-m68hc11.c: Likewise.
3741 * config/tc-m68k.c: Likewise.
3742 * config/tc-m88k.c: Likewise.
3743 * config/tc-pj.c: Likewise.
3744 * config/tc-ppc.c: Likewise.
3745 * config/tc-sh.c: Likewise.
3746 * config/tc-sparc.c: Likewise.
3747 * config/tc-tahoe.c: Likewise.
3748 * config/tc-vax.c: Likewise.
3749
3dacdf2e
NC
37502000-12-01 Chris Demetriou <cgd@sibyte.com>
3751
50705ef4
AM
3752 * config/tc-mips.c (mips_ip): When calculating offsets,
3753 don't accept as constant the difference between the
3754 addresses of symbols in two different sections.
3755
3756 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
3757 specifiers.
3758 (validate_mips_insn): Likewise. Also, update 'B' operand
3759 specifier to use OP_*_CODE20 constants and delete 'm' operand
3760 specifier.
3761 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
3762 operand specifiers. Change warning generated by 'B' operand
3763 specifier to reflect its new multi-purpose usage.
3764
3765 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
3766 -1, and update comment.
3767 (file_mips_isa): Likewise.
3768 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
3769 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
3770 ISA_* constants rather than hard-coded numbers.
3771 (mips_cpu_info): New structure.
3772 (mips_cpu_info_table): New table describing CPU and ISA names
3773 and numbers.
3774 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
3775 mips_cpu_info_from_cpu): New functions.
3776 (mips_isa_to_str): New function to get string for ISA name.
3777 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
3778 return const char *.
3779 (md_begin): Redo CPU and ISA selection logic, using
3780 mips_cpu_info_from_*. Convert to use ISA_* constants rather
3781 than hard-coded numbers.
3782 (append_insn, mips_emit_delays, macro, macro2): Convert to use
3783 ISA_* constants rather than hard-coded numbers.
3784 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
3785 (md_longopts): Delete OPTION_NO_MIPS32.
3786 (md_parse_option): Convert to use ISA_* constants rather than
3787 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
3788 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
3789 to use strcasecmp to recognize "default" and to use
3790 mips_cpu_info_from_name to get CPU numbers from argument.
3791 (md_show_usage): Move -mips32 so it's with the rest of the ISA
3792 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
3793 mips32-4k.
3794 (s_mipsset): Accept ISA value 32.
3795 * doc/as.texinfo: Clean up MIPS options summary slightly,
3796 remove -no-mips32. Add note about -mips4 and -mips32
3797 specifying those ISA levels. Delete -mips32 and -no-mips32
3798 cpu flag descriptions.
3799 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
3800 up the supported CPU switch list, and replace 4Kc, 4Km, and
3801 4Kp entries with a single mips32-4k entry. Note that you can
3802 use ".set mips32".
3803
29184774 3804 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
50705ef4
AM
3805 ISA_MIPS64.
3806 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
3807 -mips5 and -mips64.
3808 (md_parse_option): Add cases for OPTION_MIPS5 and
3809 OPTION_MIPS64.
3810 (md_show_usage): Mention -mips5 and -mips64 arguments.
3811 (s_mipsset): Add cases for MIPS5 and MIPS64.
3812 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
3813 and pseudo-CPUs.
3814 * doc/as.texinfo: Mention -mips5 and -mips64 options
3815 and their meanings.
3816 * doc/c-mips.texi: Likewise. Also update introduction
3817 and ".set" usage information.
3818
3819 * config/tc-mips.c (md_show_usage): Add "sb1" to the
3820 CPU list.
3821 (mips_cpu_info_table): Add SB-1 entries.
3822 * doc/c-mips.texi: Add "sb1" to the list of CPUs
3823 known to the -mcpu option.
3824
3825 * doc/as.texinfo: Correct description of MIPS -mcpu
3826 option, by copying some of the text from doc/c-mips.texi.
c6c98b38 3827
23fe39df 38282000-12-01 Joel Sherrill <joel@OARcorp.com>
5f68c319 3829
3dacdf2e
NC
3830 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3831 New targets.
3832 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3833 (sparc*-*-rtems*): Switched from a.out to ELF.
5f68c319
NC
3834 * configure: Regenerate.
3835 * config.in: Regenerate.
3836 * Makefile.in: Regenerate.
3837 * aclocal.m4: Regenerate.
3838 * po/gas.pot: Regenerate.
50705ef4 3839
4ce3447c
PB
38402000-11-30 Philip Blundell <pb@futuretv.com>
3841
3842 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
3843 even in non BFD_ASSEMBLER case.
3844
76a0ddac
DN
38452000-11-30 Diego Novillo <dnovillo@redhat.com>
3846
29184774 3847 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
76a0ddac
DN
3848 syntax.
3849
220e750f
RH
38502000-11-29 Richard Henderson <rth@redhat.com>
3851
3852 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
3853 until dwarf2_finish; use relaxation to get cross-fragment offsets;
3854 thread multiple subsegments properly; handle multiple code
3855 sections properly; emit proper compilation unit info for assembler
3856 generated debugging.
3857
3858 * as.h (enum _relax_state): Add rs_dwarf2dbg.
3859 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
3860 (dwarf2dbg_estimate_size_before_relax): Declare.
3861 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
3862 * write.c: Include dwarf2dbg.h.
3863 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
3864 (relax_segment): Likewise.
3865
99b222b4
HPN
38662000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
3867
3868 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
3869 jump>: Use as_bad_where instead of as_bad. Tweak error message
3870 accordingly. Stabilize frag by updating fix part and resetting
3871 variant part.
3872 <undefined symbol, unconditional jump>: Ditto.
dda5ecfc
HPN
3873 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
3874 indexing is_end_of_line[].
3875 (md_assemble): Initialize size to 0.
3876 (md_section_align): Mark parameter seg as unused.
e46fee70 3877 (parse_reg): Parse names case-insensitively.
99b222b4 3878
814f6641
KH
38792000-11-28 Kazu Hirata <kazu@hxi.com>
3880
3881 * config/obj-aout.h: Fix formatting.
3882 * config/obj-bout.h: Likewise.
3883 * config/obj-coff.c: Likewise.
3884 * config/obj-coff.h: Likewise.
3885 * config/obj-elf.h: Likewise.
3886 * config/obj-som.h: Likewise.
3887 * config/obj-vms.c: Likewise.
3888 * config/obj-vms.h: Likewise.
3889 * config/tc-h8300.h: Likewise.
3890 * config/tc-ns32k.h: Likewise.
3891 * config/tc-sparc.h: Likewise.
3892 * config/tc-tic54x.h: Likewise.
3893 * config/tc-z8k.h: Likewise.
3894
e47b9e39
NC
38952000-11-28 Nick Clifton <nickc@redhat.com>
3896
3897 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
3898 License is present in the sources, but not the output, and
3899 also available from the GNU website.
3900 (GNU Free Documentation License): Comment out this section.
3901
fcdc20a4
HPN
39022000-11-28 Hans-Peter Nilsson <hp@axis.com>
3903
43c34dee
HPN
3904 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
3905 targets. Remove i860 from valid a.out targets.
3906 * Makefile.in: Regenerate.
3907
fcdc20a4 3908 * config/tc-cris.c: Include dwarf2dbg.h.
50705ef4 3909 (md_pseudo_table): Add .file and .loc.
fcdc20a4
HPN
3910 (md_assemble): Call dwarf2_emit_insn if generating ELF.
3911 (s_cris_file, s_cris_loc): New.
3912 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3913 * Makefile.am: Regenerate dependencies.
3914 * Makefile.in: Regenerate.
3915
16887944
AM
39162000-11-28 Alan Modra <alan@linuxcare.com.au>
3917
3918 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
3919 (MRI_MUL_PRECEDENCE): Likewise.
3920 (op_rank): Fix a comment typo.
3921
ae3e85dd
SC
39222000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3923
3924 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
3925 the error message.
3926 (get_operand): Fix analysis for movw/movb instructions.
3927
077b8428
NC
39282000-11-24 Nick Clifton <nickc@redhat.com>
3929
3930 * configure.in (xscale-elf): Add target.
3931 (xscale-coff): Add target.
3932 * configure: Regenerate.
3933
3934 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
3935 extenstion.
3936 (ARM_EXT_XSCALE): New ARM architecture extension.
3937 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
3938 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
3939 (ARM_THUMB): Rename to ARM_EXT_THUMB.
3940 (ARM_ARCH_V4): Remove processor from architecture.
3941 (ARM_ARCH_3M): New architecutre definition.
3942 (ARM_ARCH_V5TE): New architecutre definition.
3943 (ARM_ARCH_XSCALE): New architecutre definition.
3944 (CPU_DEFAULT): Allow to be defaulted to XScale.
3945 (atpcs): New boolean variable.
3946 (ldr_flags): Support 'd' flag for double word loads.
3947 (str_flags): Support 'd' flag for double word stored.
3948 (do_mia): New function.
3949 (do_mar): New function.
3950 (do_mra): New function.
3951 (do_pld): New function.
3952 (do_ldrd): New function.
3953 (do_blx): New function.
3954 (do_bkpt): New function.
3955 (do_clz): New function.
3956 (do_lstc2): New function.
3957 (do_cdp2): New function.
3958 (do_t_blx): New function.
3959 (do_t_bkpt): New function.
3960 (do_smla): New function.
3961 (do_smlal): New function.
3962 (do_smul): New function.
3963 (do_qadd): New function.
3964 (do_co_reg2c): New function.
3965 (LONGEST_INSN): Redefine to 7.
3966
3967 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
3968 command line switches.
3969
2434f565
JW
39702000-11-22 Jim Wilson <wilson@redhat.com>
3971
3972 * config/tc-ia64.c (pseudo_func): Add missing initializers.
3973 (struct rsrc): Make line unsigned.
3974 (gr_values): Add missing initializer.
3975 (SLOT_NUM_NOT_SET): Add unsigned cast.
3976 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
3977 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
3978 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
3979 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
3980 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
3981 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
3982 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
3983 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
3984 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
3985 Add ATTRIBUTE_UNUSED to unused parameters.
3986 (convert_expr_to_ab_reg): Add parens.
3987 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
3988 (dot_prologue): Initialize grsave when declared.
3989 (md_pseudo_table): Add missing initializers.
3990 (operand_match): Add casts to bfd_vma.
3991 (emit_one_bundle): Delete unused local prev. Make required_template
3992 unsigned.
3993 (specify_resource): Cast i to unsigned.
3994 (note_register_values): Use fprintf_vma.
3995 (print_dependency): Likewise.
3996
5a080f89
JW
39972000-11-21 Jim Wilson <wilson@redhat.com>
3998
5e7474a7
JW
3999 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
4000 for unwind info section.
4001 (dot_endp): Likewise for unwind section.
4002
5a080f89
JW
4003 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
4004 fix_new_exp.
4005
732d96b6
JJ
40062000-11-21 Jakub Jelinek <jakub@redhat.com>
4007
4008 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
4009 (output_insn): Call dwarf2_emit_insn.
b8e904dc 4010 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
732d96b6 4011
6d2cf69f
RH
40122000-11-17 Richard Henderson <rth@redhat.com>
4013
4014 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
4015 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
4016 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
4017
8179bd9b
NC
40182000-11-17 Nick Clifton <nickc@redhat.com>
4019
4020 * config/tc-arm.c (md_pseudo_table): Add support for .line and
4021 .file pseudo ops.
4022
316e2c05
RH
40232000-11-17 Richard Henderson <rth@redhat.com>
4024
4025 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
4026
a8316fe2
RH
40272000-11-17 Richard Henderson <rth@redhat.com>
4028
4029 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
50705ef4 4030 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
a8316fe2
RH
4031 tri-state definition of alpha_flag_mdebug.
4032 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
4033 (s_alpha_file): Store first .file directive.
4034 (s_alpha_stab): New.
4035 (md_pseudo_table): Add stabs and stabn.
4036
e346e481
RH
40372000-11-17 Richard Henderson <rth@redhat.com>
4038
4039 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
4040
4dc7ead9
RH
40412000-11-17 Richard Henderson <rth@redhat.com>
4042
4043 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
39bb5fe6 4044 (main): Call dwarf2_finish.
4dc7ead9
RH
4045 * as.h (debug_type): Clarify documentation of the meaning
4046 of this variable.
4047 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
4048 (print_stats): Fix parenthesis problem.
4049 (now_subseg_size): New.
4050 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
4051 (dwarf2_directive_file): Don't set debug_type.
4052 (dwarf2_where): Honor DEBUG_DWARF2 first.
4053 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
4054 do nothing if not emitting dwarf2 debug info, or no work.
4055 * dwarf2dbg.h (dwarf2_emit_insn): Update.
4056 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
4057 (ecoff_new_file): Likewise.
4058 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
4059 commentary wrt dwarf2.
4060
4061 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
4062 ATTRIBUTE_UNUSED as needed.
4063 (emit_insn): Call dwarf2_emit_insn.
4064 (s_alpha_file): New.
4065 (s_alpha_loc): New.
4066 (s_alpha_coff_wrapper): Don't handle them.
4067 (md_pseudo_table): Update for .file and .loc.
4068 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4069
4070 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
4071 don't protect with debug_type.
4072 * config/tc-hppa.c (md_assemble): Likewise.
4073 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
4074 * config/tc-mn10300.c (md_assemble): Likewise.
4075 * config/tc-sh.c (md_assemble): Likewise.
4076 * config/tc-v850.c (md_assemble): Likewise.
4077
4078 * config/tc-arm.c (arm_end_of_source): Remove.
4079 * config/tc-hppa.c (pa_end_of_source): Remove.
4080 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
4081 * config/tc-mn10300.c (mn10300_finalize): Remove.
4082 * config/tc-sh.c (sh_finalize): Remove.
4083 * config/tc-v850.c (sh_finalize): Remove.
4084
4085 * config/tc-arm.h (md_end): Remove.
4086 * config/tc-hppa.h (md_end): Remove.
4087 (DWARF2_LINE_MIN_INSN_LENGTH): New.
4088 * config/tc-m68hc11.h (md_end): Remove.
4089 * config/tc-mn10300.h (md_end): Remove.
4090 * config/tc-sh.h (md_end): Remove.
4091 * config/tc-v850.h (md_end): Remove.
4092
4093 * config/tc-ia64.c (emit_one_bundle): Don't protect
4094 dwarf2 bits with debug_type.
4095 (md_assemble): Likewise.
4096 (ia64_end_of_source): Don't call dwarf2_finish.
4097
ca683b78
JW
40982000-11-16 Jim Wilson <wilson@redhat.com>
4099
4100 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
4101 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
4102 > 16.
4103
6f620856
L
41042000-11-16 H.J. Lu <hjl@gnu.org>
4105
4106 * config/obj-elf.c (obj_elf_symver): Don't check the missing
4107 version name.
4108
19d63e5d
KH
41092000-11-15 Kazu Hirata <kazu@hxi.com>
4110
4111 * config/tc-tic30.c: Fix formatting.
4112 * config/tc-tic80.c: Likewise.
4113 * config/tc-v850.c: Likewise.
4114 * config/tc-vax.c: Likewise.
4115 * config/tc-w65.c: Likewise.
4116 * config/tc-z8k.c: Likewise.
4117
a8761a19
DD
41182000-11-14 DJ Delorie <dj@redhat.com>
4119
4120 * config/tc-v850.c: Support dwarf2.
4121 * config/tc-v850.h: Ditto.
4122
4123 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
4124 parse_cons_expression_v850 to initialize hold_cons_reloc.
50705ef4 4125
88be23ec
BS
41262000-11-15 Bernd Schmidt <bernds@redhat.com>
4127
29184774 4128 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
88be23ec
BS
4129 (errata_nops_necessary_p): New function.
4130 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
4131 md.
4132
72a76794
JW
41332000-11-14 Jim Wilson <wilson@redhat.com>
4134
4135 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
4136 return little endian bfd formats.
4137
4a1805b1
KH
41382000-11-14 Kazu Hirata <kazu@hxi.com>
4139
4140 * config/aout_gnu.h: Fix formatting.
4141 * config/atof-vax.c: Likewise.
4142 * config/m68k-parse.h: Likewise.
4143 * config/m88k-opcode.h: Likewise.
4144 * config/obj-elf.c: Likewise.
4145 * config/tc-arm.c: Likewise.
4146 * config/tc-cris.c: Likewise.
4147 * config/tc-i386.c: Likewise.
4148 * config/tc-ia64.c: Likewise.
4149 * config/tc-mn10300.c: Likewise.
4150 * config/te-386bsd.h: Likewise.
4151 * config/te-hppa.h: Likewise.
4152 * config/te-nbsd.h: Likewise.
4153 * config/te-ppcnw.h: Likewise.
4154 * config/te-sparcaout.h: Likewise.
4155 * config/te-tmips.h: Likewise.
4156 * config/vax-inst.h: Likewise.
4157 * config/vms-conf.h: Likewise.
4158
c810873d
JJ
41592000-11-14 Jakub Jelinek <jakub@redhat.com>
4160
4161 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
4162
79082ff0
L
41632000-11-13 H.J. Lu <hjl@gnu.org>
4164
4165 * config/obj-elf.c (elf_frob_symbol): Support
4166 ".symver name,name2@@@nodename".
4167 (elf_frob_file_before_adjust): Likewise.
4168
4169 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
4170 and ".symver name,name2@@@nodename".
4171 Fix a typo.
4172
1da00eb4
L
41732000-11-12 H.J. Lu (hjl@gnu.org)
4174
4175 * config/obj-elf.c (obj_elf_symver): Check missing version
4176 name.
4177
f585997b
L
41782000-11-12 H.J. Lu (hjl@gnu.org)
4179
4180 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
4181 instead of bfd_vma for non-bfd assemblers.
4182
ef5c4bfc
KH
41832000-11-09 Kazu Hirata <kazu@hxi.com>
4184
4185 * itbl-ops.c: Fix comment typos.
4186
f5a30c2e
JW
41872000-11-08 Jim Wilson <wilson@redhat.com>
4188
4189 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
4190 (struct unwind): Add next_slot_frag field.
4191 (slot_index): New parameters slot_frag and first_frag. Add code
4192 to add in frag sizes when different. Add comments.
4193 (fixup_unw_records): New locals first_frag and last_frag. Pass new
4194 arguments to slot_index.
4195 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
4196 loop end. Set next_slot_frag field.
4197
339681c0
L
41982000-11-07 H.J. Lu <hjl@gnu.org>
4199
4200 * doc/as.texinfo (.symver): Updated for versioned symbol
4201 reference.
4202
4203 * obj.h (format_ops): Add the frob_file_before_adjust field.
4204
4205 * config/obj-aout.c (aout_format_ops): Set the
4206 frob_file_before_adjust field to 0.
4207 * config/obj-coff.c (coff_format_ops): Likewise.
4208 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
4209
4210 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
4211 name.
4212 (elf_frob_file_before_adjust): New function to remove unneeded
4213 versioned symbols from the symbol table.
4214 (elf_format_ops): Set the frob_file_before_adjust field to
4215 elf_frob_file_before_adjust.
4216
4217 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
4218 not defined.
4219
4220 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
4221
4a314ec8
NC
42222000-11-07 Peter Targett <peter.targett@arccores.com>
4223
8a543126 4224 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
4a314ec8 4225 BIG_ENDIAN macros.
8a543126 4226 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
4a314ec8 4227 Fix compile time warning messages.
50705ef4 4228
604d524f
NC
42292000-11-07 Nick Clifton <nickc@redhat.com>
4230
4231 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
4232 buffer in order to avoid buffer overflows.
4233
44f5c83a
JW
42342000-11-06 Steve Ellcey <sje@cup.hp.com>
4235
4236 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
4237 Change M to m for -milp32 or -mlp64 to match gcc.
4238 (dot_endp): Use bytes_per_address instead of 8.
4239 (emit_one_bundle): Use number_to_chars_littleendian instead of
4240 md_number_to_chars.
4241 (fix_insn): Likewise.
4242 (ia64_init): New function.
4243 (ia64_target_format): New function.
4244 (md_begin): Set endianness, arch, and machine as appropriate.
4245 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
4246 Make these macros depend on TE_HPUX macro.
4247 (TARGET_FORMAT): Define.
4248 (HOST_SPECIAL_INIT): Define.
4249 * config/te-hpux.h: New file.
4250 * configure.in: Add "ia64-*-hpux*" target to configure.
4251 * configure: Regenerate.
50705ef4 4252
7152f1dc
KH
42532000-11-06 Kazu Hirata <kazu@hxi.com>
4254
ef99799a
KH
4255 * as.c: Fix formatting.
4256 * dwarf2dbg.c: Likewise.
4257 * input-file.c: Likewise.
7152f1dc
KH
4258 * input-file.h: Likewise.
4259 * input-scrub.c: Likewise.
ef99799a
KH
4260 * itbl-ops.c: Likewise.
4261 * listing.c: Likewise.
4262 * macro.h: Likewise.
4263 * messages.c: Likewise.
4264 * read.c: Likewise.
4265 * subsegs.c: Likewise.
4266 * subsegs.h: Likewise.
4267 * write.c: Likewise.
7152f1dc 4268
cf055d54
NC
42692000-11-06 Nick Clifton <nickc@redhat.com>
4270
4271 * doc/as.texinfo: Add GNU Free Documentation License.
4272 * doc/gasp.texi: Add GNU Free Documentation License.
4273 * doc/as.1: Add GNU Free Documentation License.
4274
8d6b5c8e
NC
42752000-11-05 Nick Clifton <nickc@redhat.com>
4276
4277 * config/tc-arm.c: Add include of "dwarf2dbg.h"
4278
59ff2774
NC
42792000-11-02 Per Lundberg <plundis@chaosdev.org>
4280
4281 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
4282 * configure: Regenerate.
4283
37d8bb27
NC
42842000-11-01 Nick Clifton <nickc@redhat.com>
4285
4286 * read.c (original_case_string): New global variable.
4287 (read_a_source_file): Copy opcode string into
4288 original_case_string if clobbering the case of the opcode.
4289 * read.h: Export the definition of original_case_string.
4290 * config/tc-arm.c (md_assembler): When parsing a .req
4291 directive use the original opcode string, not the case
4292 clobbered version.
4293
d75bb8cf
NC
42942000-11-02 Nick Clifton <nickc@redhat.com>
4295
4296 * config/tc-mn10300.c (debug_line): Remove this static
37d8bb27 4297 variable.
d75bb8cf
NC
4298 (md_assemble): Call dwarf2_generate_asm_lineno instead of
4299 dwarf2_where and dwarf2_gen_line_info.
4300
6c17cfe4
PB
43012000-11-02 Theo Honohan <th@futuretv.com>
4302
50705ef4 4303 * config/tc-arm.c (do_msr): Improve error message.
6c17cfe4 4304
c51ce5f0
EC
43052000-10-31 Eric Christopher <echristo@redhat.com>
4306
4307 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
4308 or pc-relative, else use fx_offset.
4309
f1bcba5b
JW
43102000-10-31 Jim Wilson <wilson@redhat.com>
4311
4312 * config/tc-ia64.c (struct md): New field tag_fixups.
4313 (ia64_flush_insns): Handle tag_fixups. Error if dangling
4314 qualifying predicate.
4315 (emit_one_bundle): Delete spurious multiplication by one. Handle
4316 tag_fixups.
4317 (ia64_start_line): Error if dangling qualifying predicate.
4318 (defining_tag): New static variable.
4319 (ia64_unrecognized_line, case '['): Parse tags.
4320 (ia64_frob_label): Create tag_fixups.
4321 (md_assemble): Reset md.qp.X_op after using it.
c51ce5f0 4322
8637c045
AM
43232000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4324
4325 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
4326
ebeeafe6
BS
43272000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
4328
29184774 4329 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
ebeeafe6 4330
b041f888
KH
43312000-10-30 Kazu Hirata <kazu@hxi.com>
4332
4333 * expr.c: Fix formatting.
4334 * flonum-copy.c: Likewise.
4335 * flonum.h: Likewise.
4336 * gasp.c: Likewise.
4337 * hash.c: Likewise.
4338
d8374dcd
HPN
43392000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
4340
4341 * as.h (OPTION_MD_BASE): Bump to 190.
4342 * as.c (parse_args) <std_longopts>: Add comment about the need to
4343 check OPTION_MD_BASE in as.h.
4344
1308f14c
HPN
4345 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
4346 for weak symbols.
4347
6f6ef0fa
NC
43482000-10-27 Nick Clifton <nickc@redhat.com>
4349
4350 * configure.in (emulations): Add m68hc12.
4351 * configure: Regenerate.
4352 * po/gas.pot: Regenerate.
c51ce5f0 4353
bf1b5881
AH
43542000-10-27 Aldy Hernandez <aldyh@redhat.com>
4355
50705ef4
AM
4356 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
4357 cpsr*.
4358 (arm_psr_parse): Handle lowercase CPSR and SPSR.
bf1b5881 4359
85a39694
NC
43602000-10-25 Nick Clifton <nickc@redhat.com>
4361
4362 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
4363 a DWARF2 line number information sequence.
4364
4365 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
4366
4367 * read.c (generate_lineno_debug): Update comment describing why
4368 DWARF2 line number debug information is not generated
4369 automatically by this function.
4370
4371 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
4372 not all.
c51ce5f0 4373
85a39694
NC
4374 * config/tc-arm.h (md_end): Define.
4375 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
c51ce5f0 4376
85a39694
NC
4377 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
4378 if generating DWARF2 line numbers.
4379 (arm_end_of_source): New function. Call dwarf2_finish if
4380 necessary.
4381
4382 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
4383 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
4384 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
c51ce5f0 4385
cce0cbdc
DN
43862000-10-25 Diego Novillo <dnovillo@cygnus.com>
4387
29184774 4388 * config/tc-i386.c: Fix prototype declarations for functions taking no
cce0cbdc
DN
4389 arguments.
4390
64a0c779
DN
43912000-10-24 Diego Novillo <dnovillo@cygnus.com>
4392
29184774 4393 * config/tc-i386.c (i386_operand_modifier): Remove.
64a0c779
DN
4394 (build_displacement_string): Remove.
4395 (i386_parse_seg): Remove.
4396 (i386_intel_memory_operand): Remove.
4397 (i386_intel_operand): Re-write using recursive descent parser based
4398 on MASM documentation.
4399 (struct intel_parser_s): New structure.
4400 (intel_parser): New static variable.
4401 (struct intel_token): New structure.
4402 (cur_token, prev_token): New static variables.
4403 (T_NIL): Define.
4404 (T_CONST): Define.
4405 (T_REG): Define.
4406 (T_BYTE): Define.
4407 (T_WORD): Define.
4408 (T_DWORD): Define.
4409 (T_QWORD): Define.
4410 (T_XWORD): Define.
4411 (T_SHORT): Define.
4412 (T_OFFSET): Define.
4413 (T_PTR): Define.
4414 (T_ID): Define.
4415 (intel_match_token): New function.
4416 (intel_get_token): New function.
4417 (intel_putback_token): New function.
4418 (intel_expr): New function.
4419 (intel_e05): New function.
4420 (intel_e05_1): New function.
4421 (intel_e06): New function.
4422 (intel_e06_1): New function.
4423 (intel_e09): New function.
4424 (intel_e09_1): New function.
4425 (intel_e10): New function.
4426 (intel_e10_1): New function.
4427 (intel_e11): New function.
4428
19f7b010
JJ
44292000-10-20 Jakub Jelinek <jakub@redhat.com>
4430
4431 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
4432 instructions to loose any special insn->architecture mask.
4433
4434 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
4435 (sparc_md_end, sparc_arch_types, sparc_arch,
4436 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
4437 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
4438 request v9b architecture if they are used).
4439
3ae647a0
NC
44402000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4441
4442 * config/tc-m68k.c: Fix the previous misapplied patch.
4443
5cbdaa77
NC
44442000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4445
50705ef4
AM
4446 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
4447 BFD_ASSEMBLER and !BFD_ASSEMBLER.
4448 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
4449 BFD_RELOC_*.
5cbdaa77 4450
e6c774b4
KH
44512000-10-17 Kazu Hirata <kazu@hxi.com>
4452
4453 * debug.c: Fix formatting.
4454 * depend.c: Likewise.
4455 * dwarf2dbg.c: Likewise.
4456 * dwarf2dbg.h: Likewise.
4457 * ecoff.c: Likewise.
4458 * expr.c: Likewise.
4459 * expr.h: Likewise.
4460 * flonum-konst.c: Likewise.
4461 * frags.h: Likewise.
4462
ea20a7da
CC
44632000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4464
4465 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
4466 options.
4467 * doc/as.texinfo: Added notes about this new option.
4468
266cb5f1
HPN
44692000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
4470
4471 * config/tc-sh.c (JREG): Remove.
4472 (md_convert_frag): Remove #if 0:d code using JREG.
4473
6588847e
DN
44742000-10-15 Diego Novillo <dnovillo@cygnus.com>
4475
4476 * config/tc-i386.c (i386_operand_modifier): Only match
4477 modifiers SHORT and FLAT if they are followed by a space.
4478 (parse_register): When `allow_naked_reg' is set, do not confuse
4479 identifiers that start with a register name with a register.
4480
30a2b4ef
KH
44812000-10-12 Kazu Hirata <kazu@hxi.com>
4482
4483 * app.c: Fix formatting.
4484 * as.c: Likewise.
4485 * as.h: Likewise.
4486 * bit_fix.h: Likewise.
4487 * cgen.c: Likewise.
4488 * cgen.h: Likewise.
4489 * cond.c: Likewise.
4490
d01e2a23
AM
44912000-10-11 Alan Modra <alan@linuxcare.com.au>
4492
4493 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
4494
44852b19
AM
44952000-10-07 Alan Modra <alan@linuxcare.com.au>
4496
dc1fc56b
AM
4497 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
4498 Re-arrange function a little and improve error message.
4499
44852b19
AM
4500 * write.c (write_relocs): Fix a comment.
4501
4502 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
4503 link-once sections.
4504
afa680f8
JW
45052000-10-05 Jim Wilson <wilson@cygnus.com>
4506
4507 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
4508
ce8a8b2f
AM
45092000-10-05 Alan Modra <alan@linuxcare.com.au>
4510
4511 * config/tc-i386.c: Delete some useless comments, reformat others.
4512
4513 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
4514 non-global syms in linkonce sections.
4515
56d27c17
AM
45162000-10-04 Ralf Baechle <ralf@gnu.org>
4517
4518 * config/tc-ia64.c (operand_match): Don't use // style comments.
4519 * config/tc-i370.c: Likewise.
4520
7b15d668
HPN
45212000-09-29 Hans-Peter Nilsson <hp@axis.com>
4522
4523 Changes to handle varying register prefix and user symbol prefix.
4524 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
4525 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
4526 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
4527 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
4528 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
4529 (demand_register_prefix): New variable.
4530 (md_pseudo_table): New pseudo ".syntax".
4531 (md_longopts): New options --no-underscore and --underscore.
4532 (cris_target_format): Return elf32-us-cris or elf32-cris depending
4533 on symbols_have_leading_underscore.
4534 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
4535 (get_spec_reg): Ditto.
4536 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
4537 Fix formatting.
4538 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
4539 --help.
4540 <case OPTION_NO_US, case OPTION_US>: New.
4541 (md_show_usage): Be brief and reformat to match continuation of
4542 --help.
4543 * po/gas.pot: Regenerate.
4544
27df9f40
AM
45452000-09-28 Alan Modra <alan@linuxcare.com.au>
4546
4547 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
4548 force relocs for 12 bit branches.
4549 (md_apply_fix): Similarly, adjust logic here.
4550
5506e1a5
AM
45512000-09-28 Alan Modra <alan@linuxcare.com.au>
4552
4553 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
4554 adjust for external and weak syms as we will use a reloc. Allow
4555 for +8 offset when calculating limits of branches.
4556 (hppa_fix_adjustable): Undo 2000-09-23 change.
4557 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
4558 Correct distance calculation.
47d89dba
AM
4559 (tc_gen_reloc): Print the file name and line number if we can't
4560 handle a fixup.
5506e1a5
AM
4561
4562 From John David Anglin <dave@hiauly1.hia.nrc.ca>
4563 * config/tc-hppa.c (nonzero_dibits): Define.
4564 (arg_reloc_stub_needed): Check each arg and return value
4565 separately for zero case.
4566 (pa_align): Declare argument `bytes'.
4567
81d4177b
KH
45682000-09-25 Kazu Hirata <kazu@hxi.com>
4569
4570 * config/tc-cris.c: Fix formatting.
4571 * config/tc-d10v.h: Likewise.
4572 * config/tc-d30v.c: Likewise.
4573 * config/tc-d30v.h: Likewise.
4574 * config/tc-fr30.c: Likewise.
4575 * config/tc-fr30.h: Likewise.
4576 * config/tc-m68k.c: Likewise.
4577 * config/tc-m68k.h: Likewise.
4578 * config/tc-pj.h: Likewise.
4579 * config/tc-ppc.c: Likewise.
4580 * config/tc-ppc.h: Likewise.
4581 * config/tc-sh.c: Likewise.
4582 * config/tc-sh.h: Likewise.
4583 * config/tc-sparc.c: Likewise.
4584 * config/tc-v850.h: Likewise.
4585 * config/tc-vax.h: Likewise.
4586 * config/tc-w65.h: Likewise.
4587 * config/tc-z8k.h: Likewise.
4588
959ee541
AM
45892000-09-23 Alan Modra <alan@linuxcare.com.au>
4590
4591 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
4592 checks only for ELF.
4593 (hppa_force_relocation): Likewise.
4594
139368c9
JW
45952000-09-22 Jim Wilson <wilson@cygnus.com>
4596
4597 * config/tc-ia64.c (dv_sem): Add "stop".
4598 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
4599 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
4600 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
4601 match above.
4602 (mark_resources): Check IA64_RS_PRr.
4603
151337e8
NC
46042000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4605
56d27c17 4606 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
151337e8
NC
4607 md_estimate_size_before_relax): Redesign and clean up the
4608 relaxation mechanism.
4609
0b7410c4
KH
46102000-09-21 Kazu Hirata <kazu@hxi.com>
4611
4612 * config/tc-ns32k.c: Fix formatting.
4613 * config/tc-ns32k.h: Likewise.
4614
a4d24084
KH
46152000-09-20 Kazu Hirata <kazu@hxi.com>
4616
82efde3a
KH
4617 * config/tc-m32r.c: Fix formatting.
4618 * config/tc-m32r.h: Likewise.
4619 * config/tc-m68851.h: Likewise.
4620 * config/tc-m68hc11.c: Likewise.
4621 * config/tc-m68hc11.h: Likewise.
4622 * config/tc-m88k.c: Likewise.
4623 * config/tc-mcore.c: Likewise.
a75214e5 4624 * config/tc-mcore.h: Likewise.
82efde3a
KH
4625 * config/tc-mips.c: Likewise.
4626 * config/tc-mips.h: Likewise.
4627 * config/tc-mn10200.h: Likewise.
4628 * config/tc-mn10300.h: Likewise.
a75214e5 4629 * config/tc-tahoe.c: Likewise.
a4d24084
KH
4630 * config/tc-tahoe.h: Likewise.
4631
4844386e 46322000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a05388f4
NC
4633
4634 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
4635 Likewise in relaxation description comments.
4636
9e754211
AM
46372000-09-18 Alan Modra <alan@linuxcare.com.au>
4638
4639 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
4640 subtraction of two syms without emitting a relocation.
4641
4642 From David Huggins-Daines <dhd@linuxcare.com>
4643 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
4644 global or weak symbols.
4645
4a4f25cf
KH
46462000-09-15 Kazu Hirata <kazu@hxi.com>
4647
4648 * config/tc-h8300.h: Fix formatting.
4649 * config/tc-h8500.c: Likewise.
4650 * config/tc-h8500.h: Likewise.
4651 * config/tc-hppa.h: Likewise.
4652 * config/tc-i370.h: Likewise.
4653 * config/tc-i386.h: Likewise.
4654 * config/tc-i860.c: Likewise.
4655 * config/tc-i860.h: Likewise.
4656 * config/tc-i960.h: Likewise.
4657 * config/tc-ia64.c: Likewise.
4658 * config/tc-ia64.h: Likewise.
4659
1dab94dd
KH
46602000-09-14 Kazu Hirata <kazu@hxi.com>
4661
4662 * config/tc-a29k.c: Fix formatting.
4663 * config/tc-alpha.c: Likewise.
4664 * config/tc-arc.c: Likewise.
4665 * config/tc-arc.h: Likewise.
4666 * config/tc-arm.c: Likewise.
4667 * config/tc-arm.h: Likewise.
4668 * config/tc-avr.c: Likewise.
4669 * config/tc-avr.h: Likewise.
4670 * config/tc-tic30.c: Likewise.
4671 * config/tc-tic30.h: Likewise.
4672 * config/tc-tic54x.c: Likewise.
4673 * config/tc-tic54x.h: Likewise.
4674 * config/tc-tic80.c: Likewise.
4675 * config/tc-tic80.h: Likewise.
4676
7484b8e6
TW
46772000-09-14 Timothy Wall <twall@cygnus.com>
4678
4679 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
4680 parallel comparisons for later use.
4681 (struct rsrc): Add parallel comparison type.
4682 (resources_match): Skip special cases of PR usage (non-conflicting
4683 parallel compares).
56d27c17 4684
bf514e21
KH
46852000-09-13 Kazu Hirata <kazu@hxi.com>
4686
4687 * config/obj-ecoff.c: Fix formatting.
4688 * config/obj-elf.c: Likewise.
4689 * config/obj-elf.h: Likewise.
4690 * config/obj-evax.h: Likewise.
4691 * config/obj-generic.h: Likewise.
4692 * config/obj-hp300.c: Likewise.
4693 * config/obj-hp300.h: Likewise.
4694 * config/obj-ieee.h: Likewise.
4695 * config/obj-vms.c: Likewise.
4696 * config/obj-vms.h: Likewise.
4697
156c2f8b 46982000-09-13 Anders Norlander <anorland@acc.umu.se>
56d27c17 4699
50705ef4
AM
4700 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
4701 (md_parse_option): Ditto.
4702 (md_longopts): Add -mips32 option.
4703 (md_show_usage): Document new options.
4704 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
4705 (mips_ip): Assemble mfc0 with a sub-selection code.
4706 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
156c2f8b
NC
4707 (mips_cpu_to_str): New function.
4708 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
4709 Use CPU_* defines instead of hardcoded numbers.
4710
50705ef4
AM
4711 * doc/as.texinfo: Document new options.
4712 * doc/c-mips.texi: Ditto.
156c2f8b 4713
a01b9fa4
KH
47142000-09-12 Kazu Hirata <kazu@hxi.com>
4715
4716 * as.h: Fix formatting.
4717 * asintl.h: Likewise.
4718 * bit_fix.h: Likewise.
dcd619be
KH
4719 * config/obj-aout.c: Likewise.
4720 * config/obj-aout.h: Likewise.
4721 * config/obj-bout.c: Likewise.
4722 * config/obj-bout.h: Likewise.
4723 * config/obj-coff.c: Likewise.
4724 * config/obj-coff.h: Likewise.
a01b9fa4
KH
4725 * dwarf2dbg.h: Likewise.
4726 * expr.h: Likewise.
4727 * flonum.h: Likewise.
4728 * frags.h: Likewise.
4729 * itbl-ops.h: Likewise.
4730 * macro.h: Likewise.
4731 * read.h: Likewise.
4732 * sb.h: Likewise.
4733 * struc-symbol.h: Likewise.
4734 * subsegs.h: Likewise.
4735 * symbols.h: Likewise.
4736 * tc.h: Likewise.
4737 * write.h: Likewise.
4738
92774660
KH
47392000-09-11 Kazu Hirata <kazu@hxi.com>
4740
f0e652b4
KH
4741 * bignum-copy.c: Fix formatting.
4742 * config/tc-i370.c: Likewise.
92774660
KH
4743 * config/tc-i960.c: Likewise.
4744 * config/tc-m68k.c: Likewise.
f0e652b4
KH
4745 * ehopt.c: Likewise.
4746 * flonum-copy.c: Likewise.
4747 * flonum-konst.c: Likewise.
4748 * flonum-mult.c: Likewise.
4749 * literal.c: Likewise.
4750 * read.c: Likewise.
4751 * sb.c: Likewise.
4752 * stabs.c: Likewise.
4753 * subsegs.c: Likewise.
92774660 4754
222f8079
PB
47552000-09-09 Philip Blundell <philb@gnu.org>
4756
4757 * configure.in (arm*-*-uclinux*): New target.
4758 * configure: Regenerate.
4759
c488923f
KH
47602000-09-09 Kazu Hirata <kazu@hxi.com>
4761
4762 * input-file.c: Fix formatting.
4763 * itbl-ops.c: Likewise.
4764 * messages.c: Likewise.
4765
e0e3ecca
PB
47662000-09-08 Philip Blundell <philb@gnu.org>
4767
4768 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
4769 offset is negative.
4770
5d64ca4e
L
47712000-09-07 H.J. Lu <hjl@gnu.org>
4772
4773 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4774 * configure: Rebuild.
4775
bdaaa2e1
KH
47762000-09-07 Kazu Hirata <kazu@hxi.com>
4777
e49bc11e
KH
4778 * atof-generic.c: Fix formatting.
4779 * config/tc-mips.c: Likewise.
e13b337a
KH
4780 * config/tc-vax.c: Likewise.
4781 * input-scrub.c: Likewise.
bdaaa2e1 4782
d07ed2cd
AO
47832000-09-07 Alexandre Oliva <aoliva@redhat.com>
4784
4785 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
4786 * configure.in (sh-*-linux*): Added.
4787 * configure: Rebuilt.
4788
86905619
KH
47892000-09-06 Kazu Hirata <kazu@hxi.com>
4790
a28a3ccf
JL
4791 * config/tc-hppa.c: Fix formatting.
4792
86905619
KH
4793 * ecoff.c: Fix formatting.
4794
58cccadb
AO
47952000-09-06 Alexandre Oliva <aoliva@redhat.com>
4796
4797 * configure: Rebuilt with new libtool.m4.
4798
542d6675
KH
47992000-09-05 Kazu Hirata <kazu@hxi.com>
4800
4801 * cgen.c: Fix formatting.
4802 * config/tc-ia64.c: Likewise.
4803
5b343f5a
NC
48042000-09-05 Nick Clifton <nickc@redhat.com>
4805
4806 * aclocal.m4: Regenerate.
4807 * config.in: Regenerate.
4808 * configure: Regenerate.
4809 * po/gas.pot: Regenerate.
50bbae35 4810
07e90ad5
HPN
48112000-09-05 Hans-Peter Nilsson <hp@axis.com>
4812
4813 * config/tc-cris.c: Correct comment typos.
4814
1485d400
EC
48152000-09-05 Eric Christopher <echristo@cygnus.com>
4816
4817 * config/tc-mn10300.c: Cleanup.
4818 (md_pcrel_from): Enable.
4819
904a31bf
AM
48202000-09-05 Alan Modra <alan@linuxcare.com.au>
4821
927781e2
AM
4822 * expr.c (operand): Fix a comment typo.
4823 * write.c (write_relocs): Fix a signed/unsigned warning.
4824
ecacdc7a
AM
4825 * config/tc-hppa.c (fudge_reg_expressions): New
4826 (hppa_force_reg_syms_absolute): New.
4827 (pa_equ): Allow reg_section expressions.
4828 * config/tc-hppa.c (md_optimize_expr): Define.
4829 (hppa_force_reg_syms_absolute): Prototype.
4830
4831 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
4832 (pa_parse_number): Pass in arg to select fp reg parsing.
4833 Return 1 to indicate format checks pass. If strict, then only
4834 accept a register or register symbol. Return value in...
4835 (pa_number): New static for pa_parse_number.
4836 (FP_REG_BASE): Define.
4837 (FP_REG_RSEL): Define.
4838 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
4839 appropriate. White space changes.
4840 (need_pa11_opcode): Don't bother passing any params, get them from
4841 globals instead.
4842 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
4843 Remove extraneous check in case 'Q'.
4844 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
4845 reg, set section of resulting symbol to reg_section.
4846 (pa_parse_space_stmt): Modify call to pa_parse_number.
4847 (pa_space): Likewise.
4848
904a31bf
AM
4849 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
4850 (hppa_force_relocation): Handle vtable relocs.
4851 (pa_vtable_entry): New.
4852 (pa_vtable_inherit): New.
4853 (md_pseudo_table): Add entries for vtable pseudos.
4854 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
4855 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
4856 against weak syms.
4857 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
4858 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
4859 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
4860 millicode import.
4861 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
4862 specify a symbol type.
4863
4864 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
4865 dependent things together.
4866 (md_elf_symbol_type): Define.
4867
4868 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
4869 symbol.
4870 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
4871
4872 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
4873 (obj_elf_vtable_entry): Declare.
4874
4875 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
4876 and export function.
4877 (obj_elf_vtable_entry): Similarly.
4878 (elf_pseudo_table): Fix the damage with a cast.
4879
a47cf567 48802000-09-03 Richard Henderson <rth@cygnus.com>
032efc85
RH
4881
4882 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
4883 for template selection when a label is needed.
4884
197865e8
KH
48852000-09-02 Kazu Hirata <kazu@hxi.com>
4886
4887 * config/tc-ia64.c: Fix formatting.
4888
18e03609
NC
48892000-09-02 Nick Clifton <nickc@redhat.com>
4890
4891 * configure.in: Increase version number to 2.10.91.
4892 * configure: Regenerate.
4893 * aclocal.m4: Regenerate.
4894 * config.in: Regenerate.
4895 * po/gas.pot: Regenerate.
4896 * Makefile.in: Regenerate.
1485d400 4897
a1cc9221
AO
48982000-09-01 Alexandre Oliva <aoliva@redhat.com>
4899
4900 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
4901 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
4902 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
4903 similar relocs.
4904 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
4905 branches.
4906
49072000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4908
4909 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
4910 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
4911 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
4912 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
4913 (GOT_symbol): New variable.
4914 (md_undefined_symbol): Set it.
4915
44576e1f
RH
49162000-09-01 Richard Henderson <rth@cygnus.com>
4917
4918 * config/tc-ia64.c (match): Don't inline.
4919 (extra_goodness): New.
4920 (md_begin): Prefer nop.f and nop.b for best_template.
4921
29f8404c
KH
49222000-08-31 Kazu Hirata <kazu@hxi.com>
4923
76b0a8c0
KH
4924 * as.c: Fix formatting.
4925 * cond.c: Likewise.
4926 * frags.c: Likewise.
29f8404c
KH
4927 * macro.c: Likewise.
4928
b4c1ea07
EC
49292000-08-31 Eric Christopher <echristo@cygnus.com>
4930
4931 * config/tc-mn10300.c: Cleanup and fix warnings.
4932 (md_pseudo_table): Add initializers.
4933 (md_show_usage): Cleanup.
4934 (md_parse_option): Fix warnings.
4935 (md_undefined_symbol): Fix warnings.
4936 (md_conver_frag): Fix warnings.
4937 (tc_gen_reloc): Fix warnings.
4938 (md_apply_fix3): Fix warnings.
4939 (check_operand): Fix warnings.
4940
ac48eca1
AO
49412000-08-31 Alexandre Oliva <aoliva@redhat.com>
4942
4943 * acinclude.m4: Include libtool and gettext macros from the
4944 top level.
4945 * aclocal.m4, configure: Rebuilt.
4946
e0c21649
GK
49472000-08-30 Mark Hatle <mhatle@mvista.com>
4948
4949 * config/tc-ppc.c (md_parse_option): Recognize -m405.
4950
cf39a089
KH
49512000-08-31 Kazu Hirata <kazu@hxi.com>
4952
4953 * listing.c: Fix formatting.
4954
3ee4defc
KH
49552000-08-29 Kazu Hirata <kazu@hxi.com>
4956
4957 * app.c: Fix a comment typo. Fix formatting.
4958
1e8d20f4
NC
49592000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4960
29184774 4961 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
50bbae35
AM
4962 offset of the target destination for jmp instructions.
4963 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
1e8d20f4 4964
5bcac8a4
HPN
49652000-08-24 Hans-Peter Nilsson <hp@axis.com>
4966
4967 * NEWS: Mention support for CRIS.
4968
46547ecc
DC
4969Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
4970
4971 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
4972 Sets `.lcomm' alignment to zero.
4973
4b853faa
AO
49742000-08-23 Alexandre Oliva <aoliva@redhat.com>
4975
29184774
NC
4976 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
4977 TC_FIX_ADJUSTABLE): Define.
4b853faa 4978
efcc5914
JW
49792000-08-23 Jim Wilson <wilson@cygnus.com>
4980
4981 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
4982 unwind.personality_routine is set.
4983
aca719bf
AO
49842000-08-23 H.J. Lu <hjl@gnu.org>
4985
4986 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
4987
a3da4de1
AO
49882000-08-23 Alexandre Oliva <aoliva@redhat.com>
4989
4990 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
4991 environment is pe.
4992
56385375
L
49932000-08-22 H.J. Lu <hjl@gnu.org>
4994
4995 * config.in (STRICTCOFF): New for strict COFF.
4996
4997 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
4998 i386-*-go32* and i386-go32-rtems*.
4999 * configure: Rebuilt.
5000
5001 * config/obj-coff.c (obj_coff_endef): Follow the historical
5002 behavior if STRICTCOFF is not defined.
5003
5004 * doc/internals.texi: Document STRICTCOFF.
5005
8f36cd18
AO
50062000-08-22 Alexandre Oliva <aoliva@redhat.com>
5007
5008 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
5009 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
5010 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5011 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
5012 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5013 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
5014 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
5015 Likewise.
5016
58a77e41
EC
50172000-08-22 Eric Christopher <echristo@cygnus.com>
5018
5019 * config/tc-mn10300.c: (md_apply_fix): New function.
5020 (mn10300_force_relocation): New function.
5021 (mn10300_fix_adjustable): New function.
5022
5023 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
5024 (TC_HANDLES_FX_DONE): Define.
5025 (obj_fix_adjustable): Define.
5026 (MD_APPLY_FIX3): Define.
5027 (TC_LINKRELAX_FIXUP): Define.
5028
5029 * write.c: (TC_LINKRELAX_FIXUP): Define if not
5030 previously defined.
5031 (fixup_segment): Use TC_LINKRELAX_FIXUP.
5032
5033 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
5034
ded0649c
JE
50352000-08-21 Jason Eckhardt <jle@cygnus.com>
5036
5037 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
5038 if the fixup resulted in a relocation.
5039
66102fe2
NC
50402000-08-18 Nick Clifton <nickc@redhat.com>
5041
5042 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
5043 Make reference to first element of shift_names explicit.
5044
02198638
AO
50452000-08-18 Alexandre Oliva <aoliva@redhat.com>
5046
5047 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
5048 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
5049 add a symbol's address. Removed all target-specific #ifdefs that
5050 used to accomplished the same.
5051 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5052 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5053 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5054 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5055 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5056
353e2c69
KH
50572000-08-17 Kazu Hirata <kazu@hxi.com>
5058
5059 * dwarf2dbg.c: Fix formatting.
5060
4fb7971f
NC
50612000-08-17 Nick Clifton <nickc@redhat.com>
5062
5063 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
5064 to be recoded as logical shift lefts by zero.
5065
50b81f19
JW
50662000-08-16 Jim Wilson <wilson@cygnus.com>
5067
5068 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
5069 postincrement modified registers. Handle IA64_OPND_R3_2 addl
5070 source registers.
5071 (note_register_values): Handle IA64_OPND_R3_2 operands.
5072
f869cfc6
JE
50732000-08-16 Jason Eckhardt <jle@cygnus.com>
5074
50bbae35 5075 * config/tc-i860.c (md_operand): Silly typo fixed.
f869cfc6 5076
8cb8bcba
NC
50772000-08-16 Nick Clifton <nickc@redhat.com>
5078
5079 * config/tc-arm.c (struct asm_shift): Delete.
5080 (shift[]): Delete.
5081 (enum asm_shift_index): New.
5082 (struct asm_shift_properties): New.
5083 (struct asm_shift_name): New.
5084 (shift_properties[]); New.
5085 (shift_names[]); New.
5086
5087 (decode_shift): Use new structures.
5088 Issue a warning is "ROR #0" is used.
5089 Issue a warning if "ASR #0" or "LSR #0" is used.
5090
5091 (md_begin): Initialise arm_shift_hsh table from new
5092 asm_shift_name array.
5093
c2158c24
JJ
50942000-08-16 Jakub Jelinek <jakub@redhat.com>
5095
5096 * config/tc-sparc.c: Kill all warnings.
5097 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
5098 in -xarch= as well.
5099 (md_show_usage): Update usage text.
5100
70485b5c
NC
51012000-08-16 Nick Clifton <nickc@redhat.com>
5102
c2158c24 5103 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
70485b5c
NC
5104 useful.
5105
a47cf567 51062000-08-15 Will Cohen <wcohen@redhat.com>
0d10e182
JL
5107
5108 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
5109
5110 * config/tc-sh.c (md_assemble): Changed so debug_type
5111 test performed for ppi_assemble
5112 * config/tc-sh.c: Included dwarf2dbg.h.
5113 (debug_line): Defined.
5114 (md_assemble): Generates dwarf2 line info.
5115 (sh_finalize): New function. Finalize dwarf2 info.
5116 (assemble_ppi): Returns size of code generated.
5117 (build_Mytes): Returns size of code generated.
5118 (md_pseudo_table): Added "file" and "loc" psuedo ops.
5119 * config/tc-sh.h (md_end): Defined.
5120 (sh_finalize): Declared.
5121
1db77c8e
AO
51222000-08-15 Alexandre Oliva <aoliva@redhat.com>
5123
5124 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
5125 md_number_to_chars.
5126
046b3b54
NC
51272000-08-14 Nick Clifton <nickc@redhat.com>
5128
5129 * config/tc-arm.c (do_bx): Allow "bx pc".
5130
c43c2cc5
JW
51312000-08-14 Jim Wilson <wilson@cygnus.com>
5132
5133 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
5134 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
5135 (md_begin): Change assignment to md.flag to OR in the new bit.
5136
d1d8ba22
NC
51372000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
5138
5139 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
50705ef4
AM
5140 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
5141 C_MOU, and C_EOS.
d1d8ba22 5142
22b36938
JE
51432000-08-14 Jason Eckhardt <jle@cygnus.com>
5144
5145 * NEWS: Mention i860 support.
5146
c0bd0db2
JL
5147Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
5148
5149 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5150
0ac658b8
AS
51512000-08-14 Andreas Schwab <schwab@suse.de>
5152
5153 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
5154
9fc2dda2
JE
51552000-08-11 Andreas Schwab <schwab@suse.de>
5156
5157 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
5158 argument.
5159
bc4466dc
KH
51602000-08-11 Kazu Hirata <kazu@hxi.com>
5161
5162 * expr.c: Fix formatting.
351aa9f6 5163 * config/obj-bout.c: Likewise.
bc4466dc 5164
a9c99419
JE
51652000-08-10 Jason Eckhardt <jle@cygnus.com>
5166
5167 * doc/c-i860.texi: Flesh out the i860 section more.
5168
7c743825
KH
51692000-08-10 Kazu Hirata <kazu@hxi.com>
5170
5171 * symbols.c: Fix formatting.
929b12bc 5172 * expr.c: Likewise.
7c743825 5173
fa2255cb
DN
5174Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
5175
29184774
NC
5176 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
5177 modifier has the IgnoreSize bit set.
fa2255cb 5178
fc997f4b
AM
51792000-08-09 Alan Modra <alan@linuxcare.com.au>
5180
5181 From Rodney Brown <RodneyBrown@mynd.com>
5182 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
5183 * configure: Regenerate.
5184
a47cf567
NC
51852000-08-09 Kazu Hirata <kazu@hxi.com>
5186
5187 * hash.c: Fix formatting.
5188 * gasp.c: Likewise.
5189
305d537e
JE
51902000-08-08 Jason Eckhardt <jle@cygnus.com>
5191
5192 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
5193 (i860_fix_info): New enum.
5194 (MD_APPLY_FIX3): Define.
5195 (WORKING_DOT_WORD): Define.
5196 (TC_HANDLES_FX_DONE): Define.
5197 (DIFF_EXPR_OK): Define.
5198 (LISTING_HEADER): Define.
5199 (TARGET_FORMAT): Select target format based on endian flag.
5200 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
5201 (target_big_endian): Add external declaration.
5202
5203 * config/tc-i860.c: All existing code reworked completely. Other
5204 new code shown below.
5205 (SYNTAX_SVR4): Define.
5206 (target_warn_expand): New variable.
5207 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
5208 (md_longopts): Declare and define with new options (-EL, -EB,
5209 and -mwarn-expand).
5210 (md_show_usage): New function.
5211 (md_operand): New function.
5212 (obtain_reloc_for_imm16): New function.
5213 (md_apply_fix3): New function.
5214 (tc_gen_reloc): New function.
5215
df86943d
NC
52162000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5217
5218 * config/tc-m68hc11.c (build_jump_insn): Make sure the
5219 2 bytes of the jump address are in the same frag.
5220 (find): Accept 68hc12 register indirect modes.
5221
5222 * NEWS: Mention 68HC11 & 68HC12 support.
58a77e41 5223
30d25259
RH
52242000-08-07 Richard Henderson <rth@cygnus.com>
5225
5226 * config/tc-ia64.c (unwind): Add prologue_mask member.
5227 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
5228 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
5229 (dot_body): Clear unwind.prologue_mask.
5230 (dot_prologue): Set it. Accept a register second argument.
5231
2d484c7f
KH
52322000-08-07 Kazu Hirata <kazu@hxi.com>
5233
5234 * config/atof-ieee.c: Fix formatting.
5235 * config/atof-tahoe.c: Likewise.
5236
a47cf567 52372000-08-06 Nick Clifton <nickc@cygnus.com>
1485d400 5238
3d4ae3c0
NC
5239 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
5240 work.
5241
c91d2e08
NC
5242 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
5243 of .popsection, .previous, .pushsection, .subsection,
5244 .version, .vtable_entry, .vtable_inherit and .weak.
5245
47926f60
KH
52462000-08-05 Kazu Hirata <kazu@hxi.com>
5247
5248 * config/tc-cris.c: Fix formatting.
5249 * config/tc-i386.c: Likewise.
5250 * config/tc-sparc.c (sparc_ip): Simplify the code.
5251
ab3e48dc
KH
52522000-08-04 Kazu Hirata <kazu@hxi.com>
5253
5254 * config/tc-cris.c: Rearrange code for readability.
5255 * config/tc-d10v.c: Fix formatting.
5256 * config/tc-m32r.c: Likewise.
5257 * config/tc-sparc.c: Likewise.
5258
3d56ab85
JW
52592000-08-02 Jim Wilson <wilson@cygnus.com>
5260
5261 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
5262 before ia64_find_opcode.
5263 (md_assemble): Likewise.
5264
3f9dfb2c
NC
52652000-08-01 Nick Clifton <nickc@cygnus.com>
5266
a47cf567 5267 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
d78c7dca 5268 Undo some formatting fixes.
3f9dfb2c 5269
28e4f854
KH
52702000-08-01 Kazu Hirata <kazu@hxi.com>
5271
5272 * config/obj-som.c: Fix formatting.
5273 * config/obj-ieee.c: Likewise.
5274 * config/tc-arm.c: Likewise.
5275 * config/tc-v850.c: Likewise.
5276
a570e639
NC
52772000-08-01 Nick Clifton <nickc@redhat.com>
5278
5279 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
5280 index by command line option.
58a77e41 5281
a570e639
NC
52822000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5283
5284 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
5285 (@node M68K-Branch): Rewrite to match the reality.
5286
e3308d0d
JE
52872000-07-31 Jason Eckhardt <jle@cygnus.com>
5288
5289 * doc/c-i860.texi: New file.
5290 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
5291 * doc/Makefile.in: Regenerate.
5292 * doc/all.texi: Add I860 as relevant architecture.
5293 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
5294
2fd5405a
NC
52952000-07-31 Kazu Hirata <kazu@hxi.com>
5296
5297 * config/tc-d30v.c: Fix formatting.
5298
28e7409f
NC
52992000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5300
50bbae35
AM
5301 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
5302 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
5303 long emit a long branch if available instead of an absolute jump, never
5304 emit absolute jumps for anything with --pcrel.
28e7409f
NC
5305
5306 * doc/c-m68k.texi: Document new command line option.
58a77e41 5307
a47cf567
NC
53082000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
5309
5310 * config/tc-avr.c: Use PARAMS macro in function declarations.
5311 Don't declare md_pcrel_from_section (already in tc-avr.h).
5312 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
5313 (avr_operand): Don't set (unsigned) op_mask to -1.
5314
534022ea
JE
53152000-07-28 Jason Eckhardt <jle@cygnus.com>
5316
50bbae35
AM
5317 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
5318 * configure: Regenerated.
5319 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
5320 of operand to the .type directive (.e.g, "type").
534022ea 5321
4c400d5e
AM
53222000-07-28 Alan Modra <alan@linuxcare.com.au>
5323
5324 * as.h (warn_comment, found_comment, found_comment_file): Declare.
5325 * app.c (do_scrub_chars): Record where first comment found.
5326 * read.c (read_a_source_file): Init found_comment on entry, and
5327 notify whether comments found on exit.
5328 * config/tc-hppa.c (md_shortopts): Add "c".
5329 (md_longopts): Add warn-comment.
5330 (md_parse_option): Handle it.
5331 (md_show_usage): Show available options.
5332 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
5333
0aa529cb
AC
5334Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
5335
5336 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
5337 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
50bbae35 5338 sym_ptr_ptr
0aa529cb
AC
5339 (md_estimate_size_before_relax): Don't fall off end of function.
5340
c6a7ab1f
NC
53412000-07-27 Kazu Hirata <kazu@hxi.com>
5342
5343 * config/tc-avr.c: Fix formatting.
5344 * config/tc-ns32k.c: Likewise.
5345
e0c6ed95
AM
53462000-07-27 Alan Modra <alan@linuxcare.com.au>
5347
5348 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
5349
53502000-07-27 Kazu Hirata <kazu@hxi.com>
5351
5352 * config/tc-d10v.c: Fix formatting.
5353 * config/tc-z8k.c: Likewise.
5354 * config/tc-sparc.c: Likewise.
5355
6883dc5e 53562000-07-26 Dave Brolley <brolley@redhat.com>
eabed1c0
DB
5357
5358 * cgen.c (queue_fixup): Declare opinfo.
5359 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
5360 (gas_cgen_md_operand): Ditto.
5361 (gas_cgen_md_apply_fix3): Ditto.
5362
39da8128
DD
53632000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
5364
5365 * config/obj-coff.c (obj_frob_symbol): Don't merge
5366 labels. Don't merge if the symbol isn't constant. Return
5367 immediately if a symbol is merged.
5368
65e68b04
AM
53692000-07-22 Alan Modra <alan@linuxcare.com.au>
5370
5371 * frags.c (frag_align): Correct absolute section alignment.
5372
5e0d736c
DD
53732000-07-20 DJ Delorie <dj@redhat.com>
5374
5375 * config/obj-coff.c (obj_frob_symbol): revert previous change,
5376 it breaks linking against DLLs.
5377
3bcbcc3d
HPN
53782000-07-20 Hans-Peter Nilsson <hp@axis.com>
5379
5380 * configure.in: Add CRIS support.
5381 * configure: Regenerate.
5382 * Makefile.am: (CPU_TYPES): Add cris.
5383 (CPU_OBJ_VALID) [aout]: Add cris.
5384 (MULTI_CPU_TYPES): Add cris.
5385 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
50bbae35 5386 [coff]: Only i386 and mips are valid.
3bcbcc3d
HPN
5387 (TARGET_CPU_CFILES): Add config/tc-cris.c.
5388 (TARGET_CPU_HFILES): Add config/tc-cris.h.
5389 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
5390 Regenerate dependencies.
5391 * Makefile.in: Regenerate.
5392 * aclocal.m4: Regenerate.
5393 * as.c: Declare crisaout, criself.
5394 * config/tc-cris.h, config/tc-cris.c: New.
5395 * config/e-criself.c, config/e-crisaout.c: New.
5396 * po/POTFILES.in, po/gas.pot: Regenerate.
5397
041ff4dd 53982000-07-20 Kazu Hirata <kazu@hxi.com>
58a77e41 5399
041ff4dd 5400 * read.c: Fix formatting.
efaf0ba4 5401 * write.c: Fix formatting.
041ff4dd 5402
f980ada0
L
54032000-07-19 H.J. Lu <hjl@gnu.org>
5404
5405 * sb.c: Include <stdlib.h> if exists for abort ().
5406
25a8b250
AM
54072000-07-19 Alan Modra <alan@linuxcare.com.au>
5408
5409 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
5410 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
5411 (pa_type_args): Same here.
5412
7a9aaf92
NC
54132000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
5414
5415 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
5416 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
5417 the storage class is already set.
5418
8098403c
NC
54192000-07-17 Kazu Hirata <kazu@hxi.com>
5420
fafb6d17 5421 * config/tc-m68hc11.c: Fix formatting.
ff5a4f04
KH
5422 * config/tc-mn10200.c: Likewise.
5423 * config/tc-mn10300.c: Likewise.
5424 * config/tc-pj.c: Likewise.
5425 * config/tc-tic80.c: Likewise.
5426 * config/tc-w65.c: Likewise.
8098403c 5427
977e771a
FCE
54282000-07-17 Frank Ch. Eigler <fche@redhat.com>
5429
5430 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
5431 is defined.
5432
63bf5651
ILT
54332000-07-15 Ian Lance Taylor <ian@zembu.com>
5434
5435 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
5436 @code.
5437
1cd1c99b
AM
54382000-07-15 Alan Modra <alan@linuxcare.com.au>
5439
5440 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
5441 ELF as are used for SOM (except the 32-bit reloc one) to decide
5442 whether a symbol can be reduced to a section symbol. Expand on
5443 the comment for symbols involved in LR% and RR% expressions.
5444
119d663a
NC
54452000-07-14 Nick Clifton <nickc@cygnus.com>
5446
5447 * config/tc-mips.c (mips_disable_float_construction): New
5448 static variable. Set to true if doubles should not be
5449 constructed by loading two single width fp registers with
5450 halves of the value.
5451 (mips_ip): Test mips_disable_float_construction.
5452 (md_longopts): Add command line switches --construct-floats
5453 and --no-construct-floats.
5454 (md_parse_option): Parse new command line options.
5455 (md_show_usage): Describe new command line options.
5456
5457 * doc/c-mips.texi: Document new command line options.
5458
906fac54
AM
54592000-07-13 Koundinya K <kk@ddeorg.soft.net>
5460
5461 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
5462 * configure: Regenerate.
5463
54642000-07-13 Hans-Peter Nilsson <hp@axis.com>
5465
5466 * configure.in (DEFAULT_EMULATION setting): Revert part of
5467 2000-07-01 change that set te_multi=multi unless set to tmips.
5468 * configure: Regenerate.
5469
7f788821
NC
54702000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5471
5472 * config/obj-coff.c (coff_frob_section): Add padding to the last
50705ef4 5473 section when aligning it increases its size.
7f788821 5474
9a736b6b
NC
54752000-07-11 Kazu Hirata <kazu@hxi.com>
5476
5477 * config/tc-tic54x.c: Fix formatting.
5478
3dd5103b
NC
54792000-07-10 Kazu Hirata <kazu@hxi.com>
5480
5481 * config/tc-h8500.c: Fix formatting.
1aea3bb8 5482 * config/tc-tic54x.c: Fix formatting.
3dd5103b 5483
46b85d42
AM
54842000-07-10 Alan Modra <alan@linuxcare.com.au>
5485
5486 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
5487 displacements correctly.
5488
5489 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
5490
54912000-07-10 Ryan Bradetich <rbradetich@uswest.net>
5492
5493 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
5494 warning.
5495 (hash_jam): Ditto.
5496
ad1079af
AM
54972000-07-09 Alan Modra <alan@linuxcare.com.au>
5498
5499 From David Huggins-Daines <dhd@linuxcare.com>
5500 * config/te-hppalinux64.h: Add a new emulation.
5501 * configure.in (emulations): Add configure bits to support the
5502 64-bit Linux/parisc target.
5503 * configure: Regenerate.
5504
5505 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
5506 (md_shortopts): Add `V' for ELF.
5507
5508 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
5509 when SOM or ELF_ARG_RELOC are defined.
5510 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
5511 ELF_ARG_RELOC are defined.
5512 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
5513 (pa_stringer): ..Do it here instead. Fix comment typos.
5514 (hppa_force_relocation): Cast enums to int before comparing with
5515 ints.
5516
5517 From Ryan Bradetich <rbradetich@uswest.net>
5518 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
5519 redifinition warning.
5520 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
5521 (hppa_force_relocation): ditto
ad1079af
AM
5522 (md_apply_fix): Added cast to buf to fix warnings.
5523
5524 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
5525 cons_fix_new_hppa, hppa_force_relocation): Prototype.
5526
5527 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
5528 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
5529 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
5530 reloc_type** to avoid warnings in switch.
5531 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
5532 little earlier instead.
5533
5534 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
5535 and elf.
5536 (pa_type_args): Use symbol_arg_reloc_info.
5537 (struct pa_it): Make arg_reloc unsigned int.
5538 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
5539 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
5540 (pa_code): Delete. pa_text duplicates this function.
5541 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
5542 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
5543 int.
5544 (cons_fix_new_hppa): Actually change selector to e_fsel when
5545 warning about assuming so.
5546 (tc_gen_reloc): More example elf arg reloc code.
5547 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
5548 (hppa_force_relocation): Likewise.
5549
5550 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
5551 files.
5552 (pa_end_of_source): Prototype.
5553 (hppa_fix_adjustable): Prototype.
5554 (LABELS_WITHOUT_COLONS): Move it..
5555 * config/te-hppa.h: To here.
5556
5557 * config/te-hppa64.h: New file.
5558
5559 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
5560 type.
5561 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
5562 format -10, -16, 16 relocs.
5563 (hppa_elf_mark_end_of_function): Test for null
5564 last_call_info->start_symbol
5565
5566 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
5567 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
5568 re_assesmble_* functions. Delete extraneous statements. Fix
5569 typos in comments.
5570 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
5571 insn to re_assemble_*.
5572
623aa224
UC
55732000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
5574
5575 * doc/internals.texi (Expressions): Fix typo.
58a77e41 5576
c4aa876b
NC
55772000-07-08 Kazu Hirata <kazu@hxi.com>
5578
5579 * config/tc-sh.c: Fix formatting.
d0313fb7 5580 * config/tc-tic54x.c: Fix formatting.
f851444e
NC
5581 * depend.c: Fix formatting.
5582 * flonum-konst.c: Likewise.
5583 * flonum-mult.c: Likewise.
c4aa876b 5584
6b31947e
NC
55852000-07-07 Kazu Hirata <kazu@hxi.com>
5586
a5bfe8c9 5587 * config/tc-sh.c: Fix comments.
bc0d738a
NC
5588 * config/obj-vms.c: Fix comments.
5589 * config/tc-a29k.c: Likewise.
5590 * config/tc-alpha.c: Likewise.
5591 * config/tc-h8300.c: Likewise.
5592 * config/tc-h8500.c: Likewise.
5593 * config/tc-i370.c: Likewise.
5594 * config/tc-ia64.c: Likewise.
5595 * config/tc-m68hc11.c: Likewise.
5596 * config/tc-m68k.c: Likewise.
5597 * config/tc-mips.c: Likewise.
5598 * config/tc-ns32k.c: Likewise.
5599 * config/tc-ppc.c: Likewise.
5600 * config/tc-z8k.c: Likewise.
6b31947e 5601
b8a9dcab
NC
56022000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
5603
5604 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
5605 Default to '(SEC_LOAD | SEC_DATA)'.
5606 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
5607
5608 * doc/internals.texi (CPU Backend): Describe
5609 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
5610
beb2de9b
AC
5611Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
5612
5613 * as.c (parse_args): NULL terminate the long option list.
5614
24ddb296
AC
5615Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
5616
5617 * config/tc-d30v.h: Include "write.h" for fixS.
50bbae35 5618 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
24ddb296 5619
1fe72011
NC
56202000-07-05 Nick Clifton <nickc@cygnus.com>
5621
5622 * config/tc-d30v.c (write_2_short): Further changes to warning
5623 messages produced when combining EITHER_BUT_PREFER_MU attributed
5624 opcodes.
5625
a5bfe8c9 56262000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
5627
5628 * MAINTAINERS: new
5629
8de8f17e
AO
56302000-07-04 Alexandre Oliva <aoliva@redhat.com>
5631
5632 * config/tc-arm.c (psrs): Accept combinations of flags.
5633
00d2865b
NC
56342000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5635
5636 * config/tc-avr.c: Change _ () to _() around all strings marked
5637 for translation (exception from the usual coding style).
5638 (avr_opt): New struct variable, how the new switches are set.
5639 (OPTION_MMCU): Define as 'm' and actually use.
5640 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
5641 (show_mcu_list): New function, display the list of known MCUs.
5642 (md_show_usage): Document the new switches. Call show_mcu_list.
5643 (avr_set_arch): Change 'm' to OPTION_MMCU.
5644 (md_parse_option): Call show_mcu_list if unknown MCU specified.
5645 Handle the new switches.
5646 (avr_operands): Disable warnings for undefined combinations of
5647 operands if -mall-opcodes. Disable warnings for skipping two-word
5648 instructions if enhanced core or -mno-skip-bug.
5649 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
5650 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
5651 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
5652 (avr_ldi_expression): Warn about implicit lo8().
5653 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
5654
54588503
UC
56552000-07-01 Koundinya K <kk@ddeorg.soft.net>
5656
50bbae35
AM
5657 * configure.in: Add entry for mips-*-sysv4*MP*
5658 * configure: Rebuild
5659 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
5660 elf32-tradlittlemips for traditional mips targets.
5661 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
5662 test for Link Once sections as in adjust_reloc_syms.
5663 * config/te-tmips.h: New file for traditional mips targets. Define
5664 TE_TMIPS.
58a77e41 5665
c9900432
NC
56662000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5667
5668 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
5669 flags argument is not present, don't change an existing section's
5670 section's attributes. If the flags argument is present, warn if the
5671 attributes don't match the section's current attributes. When
5672 long section names are supported, set SEC_LINK_ONCE and
5673 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
5674
9d87310a
HPN
5675Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
5676
5677 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
5678 symbols; create them.
5679
dbddefbf
NC
56802000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5681
5682 * write.c (set_segment_vma): New: Set vma and lma for a segment.
6aa4f516 5683 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
dbddefbf 5684
2ae7e77b
AH
56852000-06-27 Aldy Hernandez <aldyh@redhat.com>
5686
5687 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
a47cf567
NC
5688 expressions. Ignore the problem when handling 16 bit signed
5689 immediates, because the assembler will take care of the relocation
5690 later.
2ae7e77b 5691
6b2539e3
NC
56922000-06-27 Nick Clifton <nickc@cygnus.com>
5693
5694 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
58a77e41 5695 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
6b2539e3
NC
5696 sequential order, and emit warning messages if the input source
5697 code contains constructs like that, or parallel constructs
5698 containing such opcodes.
5699
65aa24b6
NC
57002000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5701
5702 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
5703 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
5704 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
5705 (md_show_usage): Update usage message.
5706 (md_parse_option): Allow redefinition of MCU type within the
5707 same avr[1-5] bfd machine type. Show both old and new MCU type
5708 in the error message.
5709 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
5710 Simplify 8K wrap code.
5711
f0c56b90
NC
57122000-06-25 Kazu Hirata <kazu@hxi.com>
5713
50bbae35
AM
5714 * config/obj-aout.c: Remove all uses of DEFUN.
5715 * config/obj-ieee.c: Likewise.
5716 * config/tc-sh.c: Fix comment typos.
5717 * config/tc-tahoe.c: Likewise.
5718 * config/tc-vax.c: Likewise.
5719 * config/tc-w65.c: Likewise.
5720 * config/tc-z8k.c: Likewise.
f0c56b90
NC
5721 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
5722
6d249963
DD
57232000-06-24 DJ Delorie <dj@cygnus.com>
5724
5725 * config/tc-i386.c (md_estimate_size_before_relax): Revert
5726 more changes from Sept 1999
5727 (tc_i386_fix_adjustable): ditto
5728 (md_apply_fix3): ditto
5729
680d2857 57302000-06-24 Frank Ch. Eigler <fche@redhat.com>
58a77e41 5731
680d2857
FCE
5732 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
5733 (gas_cgen_parse_operand): Set it around expression() call.
5734 (gas_cgen_md_operand): Test for it before longjmp().
5735
e7b305a2
AM
57362000-06-24 Kazu Hirata <kazu@hxi.com>
5737
c0fecd35
AM
5738 * config/tc-h8500.c: Remove all uses of DEFUN.
5739 * config/tc-sh.c: Likewise.
5740 * config/tc-w65.c: Likewise.
5741 * config/tc-z8k.c: Likewise.
5742
e7b305a2
AM
5743 * config/tc-h8500.c: Fix typos in comments.
5744
ed6d6fd3
FCE
57452000-06-23 Frank Ch. Eigler <fche@redhat.com>
5746
5747 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
5748 is defined.
5749
f7c88872
AM
57502000-06-23 matthew green <mrg@redhat.com>
5751
5752 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
50bbae35 5753 defined. Fix error message for `[' grouping.
f7c88872 5754
70d6ecf3
AM
57552000-06-22 Kazu Hirata <kazu@hxi.com>
5756
5757 * config/tc-h8300.c: Fix formatting and comment typos.
5758
e9718fe1
TW
57592000-06-22 Timothy Wall <twall@cygnus.com>
5760
5761 * config/tc-ia64.c (note_register_values): Move premature QP
5762 notation clearing into the appropriate place.
5763
45288df1
AM
57642000-06-22 Alan Modra <alan@linuxcare.com.au>
5765
1581f8c9
AM
5766 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
5767 first before anything else. Add bin-bugs.h, emul.h and progress.h
5768 Sort list of files as for $(OBJS) in Makefile.am.
5769
5770 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
5771 find one. Remake dependencies.
5772 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
5773 * Makefile.in: Regenerate.
5774 * doc/Makefile.in: Regenerate.
5775
45288df1
AM
5776 * config/tc-i386.c (i386_displacement): Don't assume a constant
5777 displacement is necessarily 16 bits when in 16 bit code mode.
5778 (md_assemble): Instead size the displacement here after we know
5779 for sure that a .code16gcc operand hasn't automatically added
5780 operand size prefixes.
5781
01580992
L
57822000-06-21 H.J. Lu <hjl@gnu.org>
5783
5784 * Makefile.am: Rebuild dependency.
5785 * Makefile.in: Rebuild.
5786
40f09f82
JL
57872000-06-21 Kazu Hirata <kazu@hxi.com>
5788
5789 * config/tc-h8300.c (parse_reg): Make the function static.
5790 (parse_exp): Likewise.
5791
78295804
DD
57922000-06-20 DJ Delorie <dj@cygnus.com>
5793
5794 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
5795 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
5796 for cygwin import libraries to work properly.
5797
45f85b08
L
57982000-06-20 H.J. Lu <hjl@gnu.org>
5799
5800 * Makefile.am: Rebuild dependency.
5801 * Makefile.in: Rebuild.
5802 * configure: Likewise.
5803 * doc/Makefile.in: Likewise.
5804
39bec121
TW
58052000-06-20 Timothy Wall <twall@cygnus.com>
5806
5807 * doc/internals.texi (CPU backend): Add @itemx for
3e87a760 5808 TC_START_LABEL_WITHOUT_COLON.
39bec121
TW
5809 * doc/c-tic54x.texi: New.
5810 * doc/as.texinfo: Add tic54x features and include primary tic54x
3e87a760 5811 documentation file.
39bec121 5812 * doc/all.texi: Add C54X.
3e87a760 5813 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
39bec121
TW
5814 * doc/Makefile.in: Regenerate.
5815 * configure.in: Add tic54x and define LIBM for tic54x.
5816 * configure: Regenrate.
5817 * config/tc-tic54x.[ch]: New.
5818 * config/obj-coff.h: Add tic54x.
5819 * Makefile.am: (CPU_TYPES): Add tic54x.
5820 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
5821 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
5822 (as_new_LDADD): Add $(LIBM).
5823 * Makefile.in: Regenerate.
3e87a760 5824
60bcf0fa
NC
58252000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5826
5827 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
5828 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
5829 * doc/as.texinfo: Likewise.
5830
5831 * configure, Makefile.in: Regenerate.
5832 * configure.in (emulations): Recognize m6811 and m6812.
5833 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
5834 Added files for 68hc11 and 68hc12 assembler.
5835 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
5836 * config/tc-m68hc11.h: Header definition for that assembler.
5837
ec05f674
NC
58382000-06-18 Nick Clifton <nickc@redhat.com>
5839
24ef8152
NC
5840 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
5841 instead of OCTETS_PER_BYTE.
5842
ec05f674 5843 * config/tc-v850.c: Fix compile time warnings.
5480ccf3 5844 * config/tc-ppc.c: Fix compile time warnings.
ec05f674 5845
119caedd
L
58462000-06-18 H.J. Lu <hjl@gnu.org>
5847
5848 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
5849 * configure: Rebuild.
5850
607723e4
NC
58512000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
5852
3e87a760
AM
5853 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
5854 to BFD_ASSEMBLER.
607723e4 5855
b946ec34
NC
58562000-06-16 Nick Clifton <nickc@cygnus.com>
5857
5858 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
5859 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
5860
5861 * doc/c-mips.texi: Document newly accepted cpu variants.
5862
37ce37b1
UC
58632000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
5864
5865 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
5866
c06ae4f2
UC
58672000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
5868
5869 * macro.c (getstring): Make it possible to escape the quote
5870 character.
5871
20348649
JL
5872Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
5873
5874 * config/tc-hppa.c (pa_export): Weak symbols can be global.
5875
bcef29e6
L
58762000-06-13 H.J. Lu <hjl@gnu.org>
5877
5878 * configure: Regenerate.
5879
63a0b638
AM
58802000-06-09 Alan Modra <alan@linuxcare.com.au>
5881
5882 * app.c (do_scrub_begin): Don't default lex[';'] as a line
5883 separator.
5884 * doc/internals.texi (line_separator_chars): Semicolon is no
5885 longer a default. Mention null and newline as defaults.
5886
5887 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
5888
5889 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
5890 * config/tc-i860.h (line_separator_chars): Likewise.
5891 * config/tc-h8300.c (line_separator_chars): Likewise.
5892 * config/tc-i960.c (line_separator_chars): Likewise.
5893 * config/tc-m68k.c (line_separator_chars): Likewise.
5894 * config/tc-mips.c (line_separator_chars): Likewise.
5895 * config/tc-ns32k.c (line_separator_chars): Likewise.
5896 * config/tc-sparc.c (line_separator_chars): Likewise.
5897 * config/tc-vax.c (line_separator_chars): Likewise.
5898
5899 * config/tc-h8300.c (comment_chars): Use string initialiser.
5900 * config/tc-i960.c (line_comment_chars): Likewise.
5901 * config/tc-z8k.c (comment_chars, line_comment_chars,
5902 line_separator_chars): Likewise.
5903
5904 * config/tc-arm.c (line_separator_chars): Always use `;', not just
5905 for TE_LINUX.
5906
9bab9349
NC
59072000-06-08 Nick Clifton <nickc@cygnus.com>
5908
5909 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
5910 for size 1 fixes.
5911
946efd95
DB
59122000-06-08 David O'Brien <obrien@FreeBSD.org>
5913
5914 * configure.in (VERSION): Update to show this is the CVS mainline.
5915
6480b79a
DB
59162000-06-08 Matthew Jacob <mjacob@feral.com>
5917
5918 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
5919 $at is the integer register $r28, vs. both $r28 and the floating
5920 point register $f28.
5921
10850f29
JW
59222000-06-08 James E. Wilson <wilson@cygnus.com>
5923
5924 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
5925 (dot_endp): Don't call ia64_flush_insns.
5926 (emit_one_bundle): Don't delete prologue/body records from
5927 unwind_record list in first loop. Rewrite second loop to account for
5928 this.
5929
150f24a2
JW
59302000-06-07 David Mosberger <davidm@hpl.hp.com>
5931
5932 * config/tc-ia64.c: Add missing prototypes.
5933 (generate_unwind_image): Cast argument to output_unw_records call.
5934
e38c9cc2
DC
5935Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
5936
46b85d42 5937 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
e38c9cc2 5938
1188e082
DC
5939Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
5940
5941 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
5942 (REGISTER_P): likewise.
5943 (avr_opcodes): uses include/opcode/avr.h
5944 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
3e87a760 5945
ac743b2c
AM
59462000-06-04 Alan Modra <alan@linuxcare.com.au>
5947
0b545448
AM
5948 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
5949 initializers too.
ac743b2c 5950
969e1a7b
L
59512000-06-03 H.J. Lu <hjl@gnu.org>
5952
5953 * read.c (is_end_of_line): Put back `;'.
5954
65172ab8
AM
59552000-06-03 Alan Modra <alan@linuxcare.com.au>
5956
5957 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
5958
b75c0c92
AM
59592000-06-01 Alan Modra <alan@linuxcare.com.au>
5960
5961 * expr.c (operand): Test is_end_of_line outside switch to catch
5962 line separator chars that are also operators.
5963 (operator): Return O_illegal for line separator chars.
5964
5965 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
5966 entry (or `!' entry for TC_HPPA).
5967
5968 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
5969 before indexing is_end_of_line. Remove redundant check for '\0'.
5970 (fp_op2): Likewise.
5971 * config/tc-h8500.c (md_assemble): Likewise.
5972 * config/tc-mcore.c (md_assemble): Likewise.
5973 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
5974 (md_atof): Likewise
5975
5976 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
5977 is_end_of_line.
5978 * config/tc-mcore.c (mcore_cons): Likewise.
5979 (mcore_float_cons): Likewise.
5980 (mcore_stringer): Likewise.
5981 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
5982
a6836251
SB
59832000-06-01 Scott Bambrough <scottb@netwinder.org>
5984
5985 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
5986
43841e91
NC
59872000-05-29 Nick Clifton <nickc@cygnus.com>
5988
5989 * config/tc-sh.c: Fix compile time warning messages.
5990
5991 * config/tc-mips.c: Fix compile time warning messages.
5992
a057431b
PB
59932000-05-29 Philip Blundell <philb@gnu.org>
5994
5995 * doc/as.texinfo: Update copyright dates.
a81d9f0c 5996 (Local Labels): Delete misplaced mention of ARM.
a057431b
PB
5997 * NEWS: Mention ARM ELF support.
5998
3c07fb76
AO
59992000-05-27 Alexandre Oliva <aoliva@cygnus.com>
6000
6001 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
6002 it is modified, and use the real_size to compute the frag address
6003 for dwarf2 line info.
6004
ad4d6ccf
AM
60052000-05-27 Alan Modra <alan@linuxcare.com.au>
6006
6007 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
6008 line-matching scheme to cope with automake moving variables around.
6009 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
6010 * Makefile.in: Regenerate.
6011
6faf3d66
JJ
60122000-05-26 Jakub Jelinek <jakub@redhat.com>
6013
6014 * config/tc-sparc.c (sparc_relax): New.
6015 (md_longopts): Add -relax and -no-relax options.
6016 (md_parse_options, md_show_usage): Likewise.
6017 (md_apply_fix3): Optimize tail call into branch always if possible.
6018
0a44c2b1
DL
6019Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
6020
6021 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
6022 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
6023 rules, with warning when a GAS statement specifies a packing that
6024 will result in an instruction being squashed.
3e87a760
AM
6025 Added typdef packing_type and enumerals, changed various integer
6026 literals to use the enumerals.
0a44c2b1 6027
e0c9811a
JW
60282000-05-24 David Mosberger <davidm@hpl.hp.com>
6029
6030 * config/tc-ia64.c (dot_restorereg_p): New function.
6031 (md_pseudo_table): Add restorereg.p.
6032 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
6033 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
6034
6035 * config/tc-ia64.h (unw_record_type): Add unwabi.
6036 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
6037 called MASK with members for imask, and the masks produced by
6038 fr_mem, gr_mem, br_mem, and frgr_mem.
6039 (unw_p_record): Add members ABI and CONTEXT.
6040 (unw_x_record): Add member AB.
6041 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
6042 as pseudo-register for use during unwind info generation.
6043 (AR_PFS, AR_LC): New macros.
6044 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
6045 whose names start with an at sign (as in "@priunat").
6046 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
6047 register.
6048 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
6049 proc_end, unwind_info, personality_routine): Consolidate into
6050 "unwind" structure to reduce offset-table use. Add member
6051 NEXT_SLOT_NUMBER to track the slot number for the next instruction
6052 to be emitted.
6053 (output_R1_format, output_R3_format, output_P3_format,
6054 output_P6_format): Initialize R with zero to reduce compiler warnings.
6055 (output_P7_format): Ditto. Add `default' branch to switch
6056 statement to reduce compiler warnings.
6057 (output_P8_format, output_B1_format, output_B4_format): Ditto.
6058 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
6059 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
6060 into single argument.
6061 (output_X1_format, output_X3_format): Initialize R with zero to reduce
6062 compiler warnings. Merge A and B args into single argument.
6063 (output_X2_format, output_X4_format): Remove unused variable R. Merge
6064 A and B args into single argument.
6065 (free_record): Removed (wasn't used).
6066 (free_list_records): Also free imasks in prologue records.
6067 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
6068 (output_spill_mask): Remove.
6069 (output_unwabi): New function.
6070 (output_epilogue, output_label_state, output_copy_state): Call
6071 alloc_record.
6072 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
6073 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
6074 argument.
6075 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
6076 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
6077 as part of handling the prologue records. Emit region's imask if
6078 we have one. Handle unwabi, epilogue, label_state, copy_state,
6079 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
6080 spill_sprel_p, and spill_reg_p records.
6081 (set_imask, count_bits, slot_index): New function.
6082 (fixup_unw_records): Fix region size computation. Handle
6083 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
6084 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
6085 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
6086 set_imask accordingly. Update imask for gr_gr, and br_gr records.
6087 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
6088 (dot_save): Use manifest constants for applicaton registers.
6089 Handle REG_PR and REG_PRIUNAT.
6090 (dot_restore): Don't just ignore it.
6091 (dot_restorereg): New function..
6092 (generate_unwind_image): Ensure unwind info is a multiple of eight
6093 bytes, not just four bytes.
6094 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
6095 (dot_altrp): Don't just ignore it.
6096 (dot_savemem): New function. Replaces dot_savesp() and
6097 dot_savepsp(). Use manifest constants for applicaton registers.
6098 Handle REG_PR and REG_PRIUNAT.
6099 (dot_savef): Simplify.
6100 (dot_saveb): Support generation of br_gr.
6101 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
6102 dot_label_state, dot_copy_state): New function.
6103 (dot_unwabi): Don't just ignore it.
6104 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
3e87a760 6105 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
e0c9811a
JW
6106 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
6107 (emit_one_bundle): Set slot number for prologue/body records
6108 *before* emitting the first insn.
6109 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
6110 (md_begin): Declare "psp" pseudo-register.
6111 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
6112 so we don't get segfault.
6113 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
6114 counts as required per SW Conventions manual
6115 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
6116 output_preds_psprel, output_preds_sprel, output_spill_base,
6117 output_unat_psprel, output_unat_sprel, output_lc_psprel,
6118 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
6119 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
6120 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
6121 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
6122 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
6123 (dot_vframe): Implement.
6124 (dot_vframesp, dot_vframepsp): New function.
6125
f98fd99f
HPN
6126Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
6127
6128 * configure.in (i386-*-freebsd a.out entry): Quote properly.
4c8d9ec6 6129 * configure: Regenerate.
f98fd99f 6130
ee7fcc42
AM
61312000-05-23 Alan Modra <alan@linuxcare.com.au>
6132
6133 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
6134 (md_estimate_size_before_relax): so we can use it here instead of
6135 old kludges. Localise vars to blocks. Comment.
6136
6137 * frags.c (frag_new): Update fr_var comments.
6138 * frags.h (struct frag): Ditto.
6139
c67e42c9
RH
61402000-05-22 Richard Henderson <rth@cygnus.com>
6141
6142 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
6143 (pseudo_func): Add pcrel.
6144 (operand_match): Handle IA64_OPND_TGT64.
6145 (build_insn): Likewise.
6146 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
6147 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
6148 (fix_insn): Handle all three 64-bit relocation types.
6149
5110c57e
HPN
6150Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
6151
6152 * obj.h (struct format_ops): New members begin, app_file,
6153 s_set_other, s_set_desc, s_get_type, s_set_type,
6154 separate_stab_sections, init_stab_section.
6155
6156 * config/obj-multi.h: Update GPL notice to v2.
6157 (obj_begin): New.
6158 (obj_app_file): New.
6159 (S_SET_SIZE): Test s_set_size for NULL before calling.
6160 (S_SET_ALIGN): Similar for s_set_align.
6161 (S_SET_OTHER): New.
6162 (S_SET_DESC): New.
6163 (S_GET_TYPE): New.
6164 (S_SET_TYPE): New.
6165 (SEPARATE_STAB_SECTIONS): New.
6166 (INIT_STAB_SECTION): New.
6167 (EMIT_SECTION_SYMBOLS): New.
6168 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
6169
6170 * config/obj-elf.h: Update GPL notice to v2.
6171 Mention that this file is included from obj-multi.h.
6172 (obj_begin): Wrap definition in ifndef.
6173 (elf_file_symbol): Constify declaration.
6174 (obj_app_file): Ditto.
6175 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
6176 Wrap in ifndef SEPARATE_STAB_SECTIONS.
6177
6178 * config/obj-elf.c (elf_s_set_other): New.
6179 (elf_file_symbol): Constify argument.
6180 (elf_separate_stab_sections): New.
6181 (elf_init_stab_section): New.
6182 (elf_format_ops): Add new members. Remove comma at end.
6183
6184 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
6185 (ecoff_format_ops): Add new fields. Remove comma at end.
6186 Mention inconsistency for emit_section_symbols.
6187
6188 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
6189
6190 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
6191 (coff_separate_stab_sections): New.
6192 (coff_format_ops): Add new members.
6193
6194 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
6195 (obj_aout_s_set_other): New.
6196 (obj_aout_s_set_desc): New.
6197 (obj_aout_s_get_type): New.
6198 (obj_aout_s_set_type): New.
6199 (obj_aout_separate_stab_sections): New.
6200 (aout_format_ops): New members added. Use obj_aout_process_stab,
6201 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
6202 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
6203 appropriate.
6204 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
6205
b98ef147
AM
62062000-05-22 Alan Modra <alan@linuxcare.com.au>
6207
6208 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
6209 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
6210 (md_estimate_size_before_relax): Ensure jumps to weak and
6211 externally visible symbols are relocatable.
6212
0aa5d426
HPN
6213Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
6214
6215 * stabs.c (aout_process_stab): Make global.
6216 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
6217 * read.h (aout_process_stab): Declare.
6218
6219 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
6220 Generalize to *aout, *coff *elf.
6221 * configure: Regenerated.
6222
6223 * doc/internals.texi (Object format backend): Say
6224 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
b8166459
HPN
6225
6226 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
6227 * Makefile.in: Regenerated.
6228
7c3dc350
CM
62292000-05-19 Catherine Moore <clm@cygnus.com>
6230
6231 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
6232
b3b6a3fe
JL
62332000-05-18 Alan Modra <alan@linuxcare.com.au>
6234
6235 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
6236 instruction to reflect change in re_assemble_*.
6237
c9e10a08
JL
6238Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
6239
6240 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
6241 build PA64 ELF tools.
6242 * configure: Rebuilt.
6243
3043679f
AM
62442000-05-17 Alan Modra <alan@linuxcare.com.au>
6245
6246 * Makefile.am: Regenerate dependencies.
6247 * Makefile.in: Regenerate.
6248
322f2c45
NC
62492000-05-15 Nick Clifton <nickc@cygnus.com>
6250
6251 * config/tc-arm.c (struct asm_psr): Add boolean field
6252 distinguishing between CSPR and SPSR. Rename 'number' field
6253 to 'field'.
6254 (psrs): Rearrange contents to match new asm_psr structure.
6255 (arm_psr_parse): Move next to psr_required_here. Make it
6256 return an asm_psr structure.
6257 (psr_required_here): Use asm_psr structure returned by
6258 arm_psr_parse.
6259 (do_msr): Reorganise to allow psr_required_here to be called
6260 only once.
6261 (md_undefined_name): Mark 'name' parameter as unused, since
6262 the COFF target does not use it.
322f2c45 6263
5e6cbf41
PB
62642000-05-14 David O'Brien <obrien@FreeBSD.org>
6265
6266 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
6267 standards.
6268 * config/te-aux.h: Likewise.
6269 * config/te-dpx2.h: Likewise.
6270 * config/te-go32.h: Likewise.
6271 * config/te-hp300.h: Likewise.
6272 * config/te-hppa.h: Likewise.
6273 * config/te-i386aix.h: Likewise.
6274 * config/te-ic960.h: Likewise.
6275 * config/te-interix.h: Likewise.
6276 * config/te-nbsd532.h: Likewise.
6277 * config/te-pc532mach.h: Likewise.
6278 * config/te-ppcnw.h: Likewise.
6279 * config/te-psos.h: Likewise.
6280 * config/te-sparcaout.h: Likewise.
6281 * config/te-sun3.h: Likewise.
6282 * config/te-sysv32.h: Likewise.
6283
4132022d
AM
62842000-05-14 Alan Modra <alan@linuxcare.com.au>
6285
6286 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
6287 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
6288 and sign extend without an if statement.
6289 (build_bytes): Likewise.
6290
62912000-05-14 Kazu Hirata <kazu@hxi.com>
6292
6293 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
6294 X_add_symbol L_32 case.
6295
b4fd930a
AM
62962000-05-14 David O'Brien <obrien@FreeBSD.org>
6297
6298 * config/te-freebsd.h: New file.
6299
a38cf1db
AM
63002000-05-13 Alan Modra <alan@linuxcare.com.au>
6301
897083bd
AM
6302 * asintl.h (gettext, dgettext, dcgettext, textdomain,
6303 bindtextdomain): Replace defines with those from intl/libgettext.h
6304 to quieten gcc warnings.
6305
a38cf1db
AM
6306 * NEWS: Mention x86 .arch and -q.
6307
6308 * config/tc-i386.c (quiet_warnings): New.
6309 (md_assemble): Use quiet_warnings.
6310 (md_parse_option): Set quiet_warnings from -q.
6311 (md_show_usage): Mention -q, delete -m.
6312 (flag_do_long_jump): Delete.
6313 (md_parse_option): Remove -m.
6314 (md_show_usage): Remove -m.
6315 (md_create_long_jump): Remove useless flag_do_long_jump code.
6316
6317 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
6318 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
6319
e413e4e9
AM
63202000-05-13 Alan Modra <alan@linuxcare.com.au>
6321 Alexander Sokolov <robocop@netlink.ru>
6322
6323 * doc/c-i386.texi (i386-Arch): New section.
6324 (i386-Syntax): Mention .intel_syntax and .att_syntax.
6325
6326 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
6327 (smallest_imm_type): Use smallest opcode for shift by one if cpu
6328 architecture has been given and is not 486.
6329 (set_cpu_arch): New.
6330 (md_pseudo_table): Add .arch.
6331 (md_assemble): Warn if cpu architecture has been given and an
6332 unsupported instruction.
6333
6334 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
6335 Move operand_types bit defines after relevant template field.
6336 (template): Add cpu_flags.
6337 (Cpu*): Define.
6338 (arch_entry): New.
6339
e8b1cae5
AO
63402000-05-12 Alexandre Oliva <aoliva@cygnus.com>
6341
6342 * config/tc-mn10300.h (md_end): Define.
6343 (mn10300_finalize): Declare.
6344 * config/tc-mn10300.c: Include dwarf2dbg.h.
6345 (debug_line): Define.
6346 (md_assemble): Generate dwarf2 line info.
6347 (mn10300_finalize): New function. Finalize dwarf2 info.
6348
426b0403
AM
63492000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
6350
6351 * config/tc-mips.c (md_estimate_size_before_relax): Use the
6352 external version of the relocation for weak symbols.
6353
e4c58b25
JW
63542000-05-08 David Mosberger <davidm@hpl.hp.com>
6355
6356 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
6357 frame size in units of 16 bytes, as required per SW Conventions manual.
6358 (output_unw_records): Output info-block header as a dword to get
6359 byte-order right.
6360
8fce3f5e
AM
63612000-05-08 Alan Modra <alan@linuxcare.com.au>
6362
6363 * as.h: #include "file", not <file> on files from ../include.
6364 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
6365 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
6366 (md_convert_frag): Add ATTRIBUTE_UNUSED.
6367 (tc_coff_symbol_emit_hook): Ditto.
6368 (OPTCOUNT): Cast to int to avoid compiler warning.
6369 (md_begin): Fix signed/unsigned warnings.
6370
63712000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6372
6373 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
6374 ABRANCH LONG case for a conditional branch on a 68000.
6375 (md_estimate_size_before_relax): Likewise. Also handle
6376 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
6377 (m68k-ip: case ABSL): Relax absolute references to 16-bit
6378 PC-relative on all CPUs.
6379 (md_estimate_size_before_relax): Likewise.
6380
fb166ee3
AM
63812000-05-04 Alan Modra <alan@linuxcare.com.au>
6382
6383 * as.c (parse_args): Just mention current year in printed
6384 copyright message.
6385
7a899fff
C
63862000-05-03 J.T. Conklin <jtc@redback.com>
6387
6388 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
3e87a760 6389 unit registers.
7a899fff
C
6390 (md_parse_option): Recognize -m7400.
6391
44877466
ILT
63922000-05-03 Ian Lance Taylor <ian@zembu.com>
6393
6394 * config/atof-ieee.c (gen_to_words): When adding carry back in,
6395 don't permit lp to become less than the words array.
6396
eaa15ab8
NC
63972000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
6398
6399 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
6400 Fix little-endian case.
6401
7c4f6a03
AM
64022000-05-03 David O'Brien <obrien@NUXI.com>
6403
6404 * as.c (parse_args): Update copyright.
6405
da5d444c
AM
64062000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6407
8a543126 6408 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
da5d444c
AM
6409 for the .bss section too.
6410
3f9b03b5
AM
64112000-05-02 Alan Modra <alan@linuxcare.com.au>
6412
6413 * configure.in: Set em=linux for hppa-*-linux.
6414 * configure: Regenerate.
6415 * doc/Makefile.in: Regenerate with correct automake.
6416
6417 * frags.c (frag_grow): Sanity check chunk_size.
6418
6419 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
6420 * config/obj-som.h: Likewise.
6421 * config/obj-ieee.h: Likewise.
6422
6423 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
6424
6425 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
6426 (md_pseudo_table): Fully initialise OBJ_ELF cases.
6427 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
6428 (pa_ip): low_sign_unext now returns via function value. Use
6429 re_assemble_* instead of dis_assemble_* and
6430 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
6431 unnecessarily.
6432 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
6433 (md_section_align, md_parse_option, md_show_usage,
6434 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
6435 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
6436 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
6437 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
6438 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
6439 pa_text): Likewise.
6440 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
6441 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
6442 outside of switch. Correct mask and shifting errors in case 10
6443 and case -11. In case 21, compare against signed range to suit
6444 hppa_field_adjust changes. In case 12, use re_assemble_12. In
6445 case 17 and case 22, use offsetT variable to properly check range.
6446 Use re_assemble_* here too.
6447 (evaluate_absolute): Change type of value to offsetT. Call
6448 hppa_field_adjust to do the work for us.
6449 (pa_parse_cmpb_64_cmpltr): Delete save_s.
6450 (pa_parse_cmpib_64_cmpltr): Ditto.
6451 (pa_build_unwind_subspace): Delete unused var subseg. Change type
6452 of i to unsigned int.
6453 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
6454 (pa_end_of_source): Return type is void.
6455
a2984248
CM
6456Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
6457
6458 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
6459
df136245
DC
6460Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
6461
6462 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
6463 More comments added.
6464 (md_begin): Removed "construct symbols for each register name".
6465 Because register names conflicts with GCC generated function
6466 names.
6467 (avr_operand): Now constant numbers can be used as a register
6468 identifiers (0 as r0, 31 as r31).
6469 (md_assemble): use skip_space () before parsing instruction
6470 operands.
6471
c1e73230
AM
64722000-05-01 Alan Modra <alan@linuxcare.com.au>
6473
6474 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
6475 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
6476 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
6477 * configure: Regenerate.
6478
a1934524
AM
64792000-04-29 Andreas Jaeger <aj@suse.de>
6480
6481 * as.h: Correctly check GCC version.
6482
d9b7d820
AM
64832000-04-26 David O'Brien <obrien@FreeBSD.org>
6484
6485 * doc/as.1: Fix unbalanced brackets.
6486
6487 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
6488 TE_FreeBSD.
6489 (line_comment_chars): Set to '/' if TE_FreeBSD.
6490
cea1ab94
JL
6491Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
6492
6493 * configure.in: Configury support for PA64 (currently disabled).
6494 * configure: Rebuilt.
6495
e799a695
AM
64962000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
6497
3e87a760 6498 * config/tc-mips.c (s_change_sec): Use record_alignment, not
e799a695
AM
6499 bfd_set_section_alignment.
6500
3b0ec529
AM
65012000-04-25 Alan Modra <alan@linuxcare.com.au>
6502
6503 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
6504 than 32.
6505
adcf07e6
NC
65062000-04-24 Nick Clifton <nickc@cygnus.com>
6507
6508 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
6509 * doc/as.texinfo (Align): Include arm and strongarm in list of
6510 targets that have the second form of the behaviour of the .align
3e87a760 6511 directive.
adcf07e6 6512
5047a41f
JL
65132000-04-24 Mark Klein <mklein@dis.com>
6514
29184774 6515 * config/obj-som.c: Terminate obj_pseudo_table.
5047a41f 6516
a47cf567
NC
6517Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
6518
6519 * as.c (parse_args): Allow md_parse_option to override -a listing
6520 option.
6521 * config/obj-coff.c (add_lineno): Change type of offset parameter
6522 from "int" to "bfd_vma."
6523 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
6524 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
6525 (ppc_change_csect): Align correctly for XCOFF64.
6526 (ppc_machine): New function, which discards "ppc_machine" line.
6527 (ppc_tc): Cons for 8 when code is 64 bit.
6528 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
6529 relocations.
6530 (md_parse_option): Handle -a64 and -a32.
6531 (ppc_xcoff64): New.
6532 * config/tc-ppc.h (TARGET_MACH): Define.
6533 (TARGET_FORMAT): Move to function.
6534 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
6535
6536Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
6537
6538 * config/tc-avr.c: New AVR_ISA_ defined.
6539 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
6540 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
6541 for `fmul', `movw' and `lpm R,Z' instructions.
6542 (avr_operands): Warn if current opcode is a two-word instruction
6543 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
6544 (avr_opcodes): New commands added.
6545 (REGISTER_P): Check 'a' and 'v' constraint letters.
6546 (mcu_types): New MCU added.
6547
bf3ca999
TW
65482000-04-22 Timothy Wall <twall@cygnus.com>
6549
6550 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
6551 to "natval".
6552 (operand_match): Conditionally insert default bit values for IMMU9.
6553
98e5953c
JL
65542000-04-14 Matthew Green <mrg@cygnus.com>
6555
6556 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
6557 * configure: Rebuilt.
6558
a02fab7e
JL
6559Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
6560 Jason Eckhardt <jle@cygnus.com>
6561
c67e42c9 6562 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
a02fab7e
JL
6563
6564 * config/tc-hppa.c (CHECK_ALIGN): New macro.
6565 Added handling of new operand types l,y,&,fe,fE,fx.
6566
800eeca4
JW
6567Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6568 David Mosberger <davidm@hpl.hp.com>
6569 Timothy Wall <twall@cygnus.com>
6570 Andrew MacLeod <amacleod@cygnus.com>
6571 Jim Wilson <wilson@cygnus.com>
6572
6573 * Makefile.am (CPU_TYPES): Add ia64.
39bec121 6574 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
800eeca4
JW
6575 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
6576 * Makefile.in: Rebuild.
6577 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
6578 * configure: Rebuild.
6579 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
6580 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
6581 * expr.c (expr): Handle md_optimize_expr.
6582 * read.c (LEX_HASH): Add comment.
6583 * config/tc-ia64.c, config/tc-ia64.h: New files.
3e87a760 6584
66778679
RH
65852000-04-21 Richard Henderson <rth@cygnus.com>
6586
6587 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
6588 bundling a non-delayed branch type instruction.
6589
aa15f6f7
AO
65902000-04-20 Alexandre Oliva <aoliva@cygnus.com>
6591
6592 * config/tc-mn10300.c (HAVE_AM30): Define.
6593 (md_assemble): Use it.
6594
16adf844
AM
65952000-04-19 Alan Modra <alan@linuxcare.com.au>
6596
742f45cf
AM
6597 * config/obj-elf.c (obj_elf_change_section): Check for changed
6598 section attributes.
6599
16adf844
AM
6600 * Makefile.am: (CPU_MULTI_VALID): Remove.
6601 (MULTI_CPU_TYPES): Define.
6602 (MULTI_CPU_OBJ_VALID): Define.
6603 (DEPTC): Use the above.
6604 (DEPOBJ): Same here.
6605 (DEP2): And here.
6606 Regenerate dependencies.
6607 * Makefile.in: Regenerate.
6608
9c46fb1b
AM
66092000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6610
742f45cf 6611 * Makefile.am (YACC, LEX): Get them from configure.
9c46fb1b 6612
508866be
L
66132000-04-18 H.J. Lu (hjl@gnu.org)
6614
6615 * config/tc-i386.c (offset_in_range): Use addressT instead of
9c46fb1b 6616 bfd_vma for non-bfd assemblers.
508866be 6617
ba2adb93
AM
66182000-04-17 Alan Modra <alan@linuxcare.com.au>
6619
6620 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
6621 doesn't give spurious errors.
6622
12ff5d56
AM
66232000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6624
66778679 6625 * as.h (SEEK_SET): Define if undefined.
12ff5d56 6626
fc633e5b
AM
66272000-04-13 Alan Modra <alan@linuxcare.com.au>
6628
6629 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
6630 constants, and don't assume offsetT is 32 bits.
6631
1ed18ec1
NC
66322000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
6633
6634 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
6635 (md_pcrel_from_section): Add prototype.
6636 (d10v_fix_adjustable): Add prototype.
6637 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
6638
6639 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
6640
3db10f32
NC
66412000-04-12 Nick Clifton <nickc@cygnus.com>
6642
6643 * config/tc-d10v.c (find_opcode): Correctly calculate position of
6644 symbol in frag chain.
6645
847f7ad4
AM
66462000-04-10 Alan Modra <alan@linuxcare.com.au>
6647
6648 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
6649 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
6650 (fits_in_signed_word, smallest_imm_type): Ditto.
6651 (md_assemble): Use an offsetT var to hold offsetT values, not a
6652 long.
6653 (offset_in_range): New.
6654 (md_assemble): Use it.
6655 (md_convert_frag): Change type of target_address, opcode_address,
6656 and displacement_from_opcode_start to offsetT.
6657 (md_create_short_jump): Change type of offset to offsetT.
6658 (md_create_long_jump): Ditto.
6659 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
6660 (md_chars_to_number): Remove.
6661 (output_invalid): Remove duplicate prototype.
6662
ec694b89
NC
66632000-04-09 Nick Clifton <nickc@cygnus.com>
6664
6665 * Makefile.am (CPU_TYPES): Add 'avr'.
6666 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
6667 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
6668
16adf844 6669 * Makefile.in: Regenerate.
ec694b89
NC
6670
6671 * doc/as.texinfo: Add M32R documentation.
6672
a2d91340 6673Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3e87a760 6674
a2d91340 6675 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3e87a760 6676 --enable-build-warnings option.
a2d91340
AC
6677 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6678 * Makefile.in, configure: Re-generate.
6679
d92b1a8a
NC
66802000-04-07 Nick Clifton <nickc@cygnus.com>
6681
6682 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
6683 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
6684 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
6685 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
6686 (arm_force_relocation): Force relocations for
6687 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
6688
52ccafd0
JR
6689Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6690
6691 * config/tc-sh.c (get_operands): There's no third operand if the
6692 first operand is an immediate.
6693
015551fc
JR
6694Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6695
6696 * config/tc-sh.c (immediate): Delete.
6697 (sh_operand_info): Add immediate member.
6698 (parse_reg): Use A_PC for pc.
6699 (parse_exp): Add second argument 'op'. All callers changed.
6700 (parse_at): Expect pc to be coded as A_PC.
6701 Use immediate field in *op.
6702 (insert): Add fourth argument 'op'. All callers changed.
6703 (build_relax): Add second argument 'op'. All callers changed.
6704 (insert_loop_bounds): New function.
6705 (build_Mytes): Remove DISP_4.
6706 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
6707 (assemble_ppi): Use immediate field in *operand.
6708 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
6709 (md_apply_fix): Likewise.
6710 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
6711
79bd78be
AO
6712Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6713
6714 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
6715
e30e5a6a
HPN
6716Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
6717
6718 * internals.texi (CPU backend): Document
6719 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
6720
41b49281
AM
67212000-04-04 Alan Modra <alan@linuxcare.com.au>
6722
8ad3436c
AM
6723 * po/gas.pot: Regenerate.
6724
6725 * as.c (show_usage): Restore translated part of bug string.
6726 * gasp.c (show_usage): Likewise.
6727
41b49281
AM
6728 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
6729 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
6730 than move-if-change.
6731 (DEP1): Modify for "gcc -MM".
6732 (DEPTC): Likewise.
6733 (DEPOBJ): Likewise.
6734 (DEP2): Likewise.
6735 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
6736 Update dependencies.
6737 * Makefile.in: Regenerate.
6738
0a727238
AO
67392000-04-03 Alexandre Oliva <aoliva@cygnus.com>
6740
6741 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
6742 (md_begin): Likewise.
6743 (HAVE_AM33): New macro.
6744 (md_assemble): Use it. Match r_regs and xr_regs only if
6745 HAVE_AM33.
6746
c20f4f8c
AM
67472000-04-03 Alan Modra <alan@linuxcare.com.au>
6748
6749 * as.h: #include "bin-bugs.h"
6750 * as.c (show_usage): Use REPORT_BUGS_TO.
6751 * gasp.c: #include "bin-bugs.h"
6752 (show_usage): Use REPORT_BUGS_TO.
6753
6754 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
6755
753f6b12
HPN
6756Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
6757
6758 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
6759 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
6760 adjustments.
6761
726c5dcd
AM
67622000-04-03 Alan Modra <alan@linuxcare.com.au>
6763
6764 * config/tc-i386.c (i386_immediate): Don't assume a constant
6765 immediate is necessarily 16 bits when in 16 bit code mode.
6766 (md_assemble): Instead set guess_suffix here after we have checked
6767 registers.
6768
bf80011a
RH
67692000-04-02 Richard Henderson <rth@cygnus.com>
6770
6771 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
6772 quantities. Correct right shift sign extension.
6773 (build_insn): Make `number' unsigned long. Mask top 6 bits of
6774 32-bit value when shifting into place.
6775
92161534
ILT
67762000-04-01 Ian Lance Taylor <ian@zembu.com>
6777
6778 * app.c: Add ATTRIBUTE_UNUSED as needed.
6779 * config/tc-ppc.c: Likewise.
6780 (ppc_size): Make unsigned long.
6781 (ppc_insert_operand): Add casts to avoid warnings.
6782
447f3982
NC
67832000-03-31 Nick Clifton <nickc@cygnus.com>
6784
6785 * config/tc-d10v.h (md_flush_pending_output): Define.
6786
21d75ec2
NC
67872000-03-29 Nick Clifton <nickc@cygnus.com>
6788
6789 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
6790 segment. Works for both BFD_ASSEMBLER and others.
6791 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
6792
d1a1bf19
NC
67932000-03-29 Nick Clifton <nickc@cygnus.com
6794
6795 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
6796
224de7a5
AM
67972000-03-28 Alan Modra <alan@linuxcare.com.au>
6798
6799 * listing.c (LISTING_LHS_WIDTH): Default depends on
6800 LISTING_WORD_SIZE.
6801 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
6802
5b8274e3
ILT
68032000-03-27 Ian Lance Taylor <ian@zembu.com>
6804
6805 * config/tc-sh.c (md_show_usage): Use backslash before newline in
6806 string literal.
6807
224de7a5 68082000-03-27 Alan Modra <alan@linuxcare.com.au>
adde6300
AM
6809
6810 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
6811
6812 * config/tc-avr.c (mcu_types): Add missing initialiser.
6813 (md_pcrel_from_section): Add prototype.
6814 (avr_operand): Remove redundant test of unsigned < 0.
6815 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
6816
68172000-03-27 Denis Chertykov <denisc@overta.ru>
6818
6819 * config/tc-avr.c: New file for AVR support.
6820 * config/tc-avr.h: Likewise.
6821 * configure.in: Add AVR support.
6822 * configure: Regenerate.
6823
9f10757c
TW
68242000-03-26 Timothy Wall <twall@cygnus.com>
6825
6826 * gasp.c (macro_op): Add new argument to check_macro call.
6827 Macro structure definitions moved to macro.h
6828 * sb.h: Add argument to prototype for input_scrub_include_sb.
6829 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
6830 nesting checks with an additional flag.
6831 (struct input_save): Add flag to indicate whether current sb
6832 should be checked for proper macro/conditional nesting.
6833 (input_scrub_push/pop): Save/restore nest check flag.
6834 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
3e87a760 6835 defined.
9f10757c
TW
6836 * macro.c (check_macro): Allow caller to retrieve parsed macro
6837 information if a pointer is provided. This information may be
6838 used by the new macro hooks.
6839 * macro.h: Update prototype for check_macro. Macro struct
6840 definitions moved here from macro.c/gasp.c.
6841 * read.c (read_a_source_file): Add parameter to check_macro call,
6842 and pass macro info to the macro hook, if defined.
6843 (input_scrub_insert_line): New. Allow insertion of a line of
6844 characters into the input stream.
6845 (input_scrub_insert_file): New. Allow insertion of an arbitrary
6846 file into the input stream.
6847 (s_include): Use input_scrub_insert_file.
6848 * internals.texi: Document new macro hooks.
6849 * as.h: New prototypes added.
3e87a760 6850
224de7a5 68512000-03-26 Alan Modra <alan@linuxcare.com.au>
d0b47220
AM
6852
6853 * config/tc-i386.c: Don't start any as_bad or as_warn message with
6854 an initial capital letter.
6855 (i386_index_check): Reindent.
6856
11424155
NC
68572000-03-19 Nick Clifton <nickc@cygnus.com>
6858
eaa15ab8 6859 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
11424155
NC
6860 relative branches.
6861
43f05576
NC
68622000-03-17 Thomas de Lellis <tdel@windriver.com>
6863
66778679
RH
6864 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
6865 instruction operand bad if Rd > 7 when generating
6866 thumb instructions. Prevents for example,
6867 "adr r12,label" from silently failing and generating
6868 the wrong instruction.
3e87a760 6869
67231402
NC
68702000-03-17 Nick Clifton <nickc@cygnus.com>
6871
6872 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
6873 that have a destingation >= 0x400000.
3e87a760 6874 Fix compile time warning messages.
67231402 6875
a37c8f88
JR
6876Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6877
6878 * config/tc-sh.c (md_begin): When encountering insn that are
6879 not supported by the current arch, only change the name if
6880 its contents are the same as prev_name.
6881 (get_specific): If the the architecture doesn't match, fail.
6882
dead1419
JR
6883Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6884
6885 * config/tc-sh.c (IDENT_CHAR): Define.
6886 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
6887 matching back where it came from.
6888
182e89d3
JR
6889Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6890
6891 * config/tc-sh.c (md_show_usage): Add description of -dsp.
6892
84f73d89
NC
68932000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
6894
6895 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
6896 normal operands.
6897
dbbc7809
JL
68982000-03-15 Kazu Hirata <kazu@hxi.com>
6899
6900 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
6901
271bb601
HPN
6902Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
6903
6904 * expr.c (operand) [case 'f']: When testing if '0f' can start a
6905 floating-point-number, make sure 'f' is in FLT_CHARS.
6906
8684e216
HPN
6907Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
6908
6909 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
6910 (s_lcomm_internal): Use it.
6911 * doc/internals.texi (CPU backend): Document it.
6912 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
6913 bytes.
6914
bb2d6cd7
GK
69152000-03-10 Geoffrey Keating <geoffk@cygnus.com>
6916
6917 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
6918 when embedded-pic.
6919
6920 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
3e87a760
AM
6921 implementation doesn't have special handling for switch
6922 statements.
bb2d6cd7
GK
6923 (macro_build): Allow for code in sections other than .text.
6924 (macro): Likewise.
6925 (mips_ip): Likewise.
6926 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
3e87a760 6927 Don't perform relocs if we will be outputting them.
bb2d6cd7 6928 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
3e87a760
AM
6929 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
6930 embedded-pic.
bb2d6cd7 6931
5c86cbc7 69322000-03-09 Catherine Moore <clm@cygnus.com>
3e87a760 6933
66778679
RH
6934 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
6935 relocation type based on the entry in the fixup structure.
a47cf567 6936 Put S_IS_EXTERN processing back in.
5c86cbc7 6937
f8c827e9
L
69382000-03-08 H.J. Lu (hjl@gnu.org)
6939
6940 * Makefile.am (install-exec-tooldir): Depend on
6941 install-exec-bindir for parallel make.
6942 * Makefile.in: Regenerated.
6943
8ad9e709
NC
69442000-03-06 Nick Clifton <nickc@cygnus.com>
6945
6946 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
6947 switch.
6948 (md_parse_option): Parse -m32r command line switch - disable m32rx
6949 compatability.
ded0aeb7
NC
6950 (md_show_usage): Document new option.
6951
6952 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
6953 * doc/Makefile.in: Regenerate.
6954 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
8ad9e709 6955
b7b8f327
MM
69562000-03-02 Michael Meissner <meissner@redhat.com>
6957
6958 * config/tc-d30v.c (check_range): Remove code that incorrectly
6959 sign extended values where bits < 32.
6960
15886821
L
69612000-03-02 H.J. Lu (hjl@gnu.org)
6962
6963 * configure.in: Support --enable-targets=all on ia32.
6964 * configure: Regenerated.
6965
8bf950bf
NC
69662000-03-01 Nick Clifton <nickc@cygnus.com>
6967
6968 * gasp.c (do_align): Remove bogus check of alignment value.
6969
c5e54cc2
ILT
69702000-02-27 Thomas de Lellis <tdel@windriver.com>
6971
6972 * config/obj-elf.c (elf_frob_symbol): Remove code which when
6973 TC_PPC was defined forced the type of a symbol with no other type
6974 to be BSF_OBJECT.
6975
65fd87bc
ILT
69762000-02-27 Hans-Peter Nilsson <hp@axis.com>
6977
6978 * doc/internals.texi (CPU backend): Mention that
6979 line_separator_chars do not break up comments. Fix typos for
6980 LEX_AT and LEX_NAME descriptions. Document operands for
6981 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
6982 description of md_create_short_jump usage. Document argument for
6983 md_undefined_symbol.
6984
a25fe906
ILT
69852000-02-27 Jakub Jelinek <jakub@redhat.com>
6986
6987 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
6988 (md_parse_option): Handle it.
6989 (md_show_usage): Document it.
6990
21b10511
ILT
69912000-02-27 Ian Lance Taylor <ian@zembu.com>
6992
6993 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
6994 opcode, for the instruction `pal19'. From Andrea Arcangeli
6995 <andrea@suse.de>.
6996
773f551c
AM
69972000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
6998
6999 * config/tc-i386.c (i386_immediate): Move constant operand sizing
7000 from here..
7001 (md_assemble): To here, before template operands are matched.
7002 Also ensure a constant immediate is sign extended when we know the
7003 size is at most 16 bits. This is to catch cases like "add
7004 $0xffc0,%ax" where we don't know the size, and thus that the
7005 immediate can be represented as Imm8S until after parsing the
7006 register operand.
7007 (i386_displacement): Similarly sign extend 16 bit constant
7008 displacements.
7009 (md_assemble): Relax 16-bit jump constant range check to suit sign
7010 extended displacements.
7011
28d33191
JL
70122000-02-26 Andreas Jaeger <aj@suse.de>
7013
7014 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
7015
cc5ca5ce
AM
70162000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7017
7018 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
7019 call operands when intel_syntax.
7020 (intel_float_operand): Return 2 for "fi...".
7021 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
7022 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
7023 earlier "SHORT" change.
7024 (md_assemble): When determining suffix from Regs, exclude
7025 InOutPortReg.
7026
056350c6
NC
70272000-02-24 Nick Clifton <nickc@cygnus.com>
7028
7029 * configure: Add arm-wince, mips-pe and sh-pe targets.
7030 * configure: Regenerate.
7031
7032 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
7033 sh-pe targets.
7034 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
7035 "pe-mips" for the mips-pe target.
7036
7037 * config/tc-arm.c (insns): Change displacement encoded in BL
7038 and B instructions if the target port is arm-wince.
7039 (do_ldst): Do not bias the relocation offset if the target
7040 port is arm-wince.
7041 (md_pcrel_from): Add in missing relocation offset bias if the
7042 target os arm-wince.
7043
7044 * config/tc-mips.c (mips_target_format): Support COFF flavour.
7045 (md_begin): Disable -G support for mips-pe target.
7046 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
7047 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
7048 COFF flavour.
7049
7050 * config/tc-sh.c (md_begin): sh-pe target is little endian.
7051 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
7052 assembler, just set the alignment to 4.
7053
7054 * config/te-wince-pe.h: New file for WinCE targets. Define
7055 TE_WINCE.
7056
36bf8ab9
AM
70572000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7058
7059 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
7060 string instructions.
7061 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
7062 (i386_intel_memory_operand): After finding a segment override,
7063 check again for no `[' before looking for a displacement. Bomb if
7064 more than one displacement rather than silently discarding the
7065 second and subsequent ones. Free strings malloc'd by
7066 build_displacement_string.
7067
f5795b08
CM
70682000-02-24 Catherine Moore <clm@cygnus.com>
7069
7070 * config/obj-som.c (obj_pseudo_table): Add "weak".
7071 (obj_som_weak): New routine.
7072
abd63a32
AM
70732000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
7074
520dc8e8
AM
7075 * config/tc-i386.c (union i386_op): New.
7076 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
7077 Throughout file replace occurences of disps[n], imms[n], regs[n]
7078 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
7079 intel mode operand swapping. Add assert in regKludge and
7080 fake_zero_displacement code. Test i.types[n] when outputting
7081 displacements and immediates. Combine output of Disp16 with
7082 Disp32.
7f3f1ea2
AM
7083 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
7084 when in intel mode by (not) reversing fsub and fdiv operands
7085 before the template search. This fails for single operand
7086 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
7087 undefined. Instead fix the base_opcode after we've found the
7088 template. Move base_opcode xor with found_reverse_match from
7089 opcode output code to before this fix so we test for the correct
7090 opcodes.
7091 (md_assemble): Don't use strcmp when deciding to ignore the suffix
7092 check in intel mode. Instead compare opcodes.
520dc8e8
AM
7093
7094 * config/tc-i386.h (TC_RELOC): Delete.
7095 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
7096 with equivalent call to reloc.
7097
abd63a32
AM
7098 * as.h (flag_m68k_mri): Move declaration after target include, and
7099 only declare when TC_M68K defined. Define as zero otherwise.
7100 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
7101 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
7102 Define as zero otherwise.
7103 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
7104 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
7105 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
7106 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
7107 testing whether defined.
7108 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
7109 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
7110 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
7111 rather than testing whether defined.
7112 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
7113 (parse_mri_cons): Declare and use only when TC_M68K.
7114 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
7115 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
7116 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
7117
7118 * NEWS: Mention IBM 370 support.
7119
7e052742
RH
71202000-02-23 Richard Henderson <rth@cygnus.com>
7121
7122 * config/tc-i386.c (md_assemble): When swapping operands for
7123 intel_syntax, assume everything that's not Imm or Disp is a
7124 register.
7125
5b93d8bb
AM
71262000-02-23 Linas Vepstas <linas@linas.org>
7127
7128 * config/tc-i370.c, config/tc-i370.h: New files.
7129 * Makefile.am: Add support for Linux/IBM 370.
7130 * configure.in: Likewise.
7131 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
7132 * config/obj-elf.c: Include elf/i370.h
7133 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
7134
7135 * Makefile.in: Regenerate.
7136 * configure: Regenerate.
7137
7138 * doc/c-i370.texi: New file.
7139 * doc/all.texi: Include it.
7140 * doc/as.texinfo: And here.
3e87a760 7141 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
5b93d8bb
AM
7142 * doc/Makefile.in: Regenerate.
7143
25f2196d
CC
71442000-02-19 Michael Meissner <meissner@redhat.com>
7145
7146 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
7147 determine if an instruction can be used in parallel with an ADDppp
7148 or SUBppp instruction.
7149
6349b5f4
AH
71502000-02-22 Andrew Haley <aph@cygnus.com>
7151
7152 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
7153
2f6d2f85 71542000-02-22 Andrew Haley <aph@cygnus.com>
c97ef257
AH
7155
7156 * config/tc-mips.c (mips_gp32): New variable.
7157 (macro_build) Use mips_gp32.
7158 (mips_ip): Ditto.
7159 (md_longopts): Add "-mgp32" and "-mgp64".
7160 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
3e87a760 7161
a47cf567
NC
7162 (OPTION_M7900): Change offset
7163 (OPTION_NO_M7900): Ditto.
7164
b985eaa8
ILT
71652000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7166
7167 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
7168 warning, and bump it to 1.
7169
52454417
ILT
71702000-02-22 Ian Lance Taylor <ian@zembu.com>
7171
7172 From Brad Lucier <lucier@math.purdue.edu>:
7173 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
7174 match format.
7175
6b76fefe
CM
71762000-02-21 Catherine Moore <clm@cygnus.com>
7177
7178 * config/tc-mips.c (MF_HILO_INSN): Define.
7179 (mips_7000_hilo_fix): Declare.
7180 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
7181 (md_parse_option): Check for 7000_HILO_FIX options.
7182 (OPTION_M7000_HILO_FIX): Define.
7183 (OPTION_NO_M7000_HILO_FIX): Define.
7184 * doc/c-mips.texi (-mfix7000): Describe.
7185
f6af82bd
AM
71862000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7187
7188 * listing.c (print_lines): Remove unused variable `end'.
7189
7190 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
7191 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
3e87a760 7192 reloc_type when BFD_ASSEMBLER.
f6af82bd
AM
7193 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
7194 reloc_type when BFD_ASSEMBLER. Move common code out of switch
3e87a760 7195 statement and quell signed vs. unsigned comparison warning.
f6af82bd 7196
8c8281f4
NC
71972000-02-18 Nick Clifton <nickc@cygnus.com>
7198
7199 * config/tc-d10v.c (find_opcode): Add a symbol's value to
7200 the computed frag offset, rather than overwriting it.
7201
d4845d57
JR
7202Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7203
7204 * config/tc-sh.c ("elf/sh.h"): Include.
7205 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
7206 (md.begin): Initialize target_arch.
7207 Only include opcodes in has table that match selected architecture.
7208 (parse_reg): Recognize register names for sh-dsp.
7209 (parse_at): Recognize post-modify addressing.
7210 (get_operands): The leading space is now optional.
7211 (get_specific): Remove FDREG_N support. Add support for sh-dsp
7212 arguments. Update valid_arch.
7213 (build_Mytes): Add support for SDT_REG_N.
7214 (find_cooked_opcode): New function, broken out of md_assemble.
7215 (assemble_ppi, sh_elf_final_processing): New functions.
7216 (md_assemble): Use find_cooked_opcode and assemble_ppi.
7217 (md_longopts, md_parse_option): New option: -dsp.
7218 * config/tc-sh.h (elf_tc_final_processing): Define.
7219 (sh_elf_final_processing): Declare.
7220
c97305a1
JL
7221Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
7222
7223 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
7224 the unwinder subspace. Save the current seg/subseg before creating
7225 the new seg/subseg.
7226
bec50466
NC
72272000-02-10 Nick Clifton <nickc@cygnus.com>
7228
7229 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
66778679 7230 little endian targets.
bec50466 7231 (INST_BYTE1): Redefine to handle big and little endian
66778679 7232 targets.
bec50466
NC
7233 (cpu_type): New type: Select between M340 and M210.
7234 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
66778679 7235 instructions of the M340.
bec50466 7236 (md_assemble): Add support for the MULSH and OPSR classes of
66778679 7237 instructions.
bec50466
NC
7238 (md_atof): Add support for little endian targets.
7239 (md_parse_option): Add support for -EL, -EB and -mcpu command
66778679 7240 line switches.
bec50466
NC
7241 (md_convert_frag): Add support for little endian targets.
7242 (md_apply_fix3): Add support for little endian targets.
7243 (md_number_to_chars): Add support for little endian targets.
7244
a25c045a
TW
72452000-02-10 Timothy Wall <twall@redhat.com>
7246
7247 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
7248 defined, use it to verify the symbol just read should be a label.
7249
f28e8eb3
TW
72502000-02-10 Timothy Wall <twall@redhat.com>
7251
7252 * app.c (do_scrub_chars): Handle "||" for parallel instructions
7253 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
7254 around colons when KEEP_WHITE_AROUND_COLON is defined.
7255 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
7256 and KEEP_WHITE_AROUND_COLON.
7257
6dc19fc4
TW
72582000-02-08 Timothy Wall <twall@redhat.com>
7259
7260 * read.c (s_rept): Call do_repeat, which abstracts the repeat
3e87a760 7261 logic.
6dc19fc4 7262 (do_repeat): New. Abstract repeat logic so that a "break" can be
3e87a760 7263 implemented.
6dc19fc4
TW
7264 (end_repeat): New. Provide support for a "break" out of the
7265 repeat loop.
7266 * read.h: Add prototypes for new functions.
3e87a760 7267
f805106c
TW
72682000-02-08 Timothy Wall <twall@redhat.com>
7269
7270 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
7271 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
7272 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
3e87a760
AM
7273 non-zero.
7274
4469be0f
TW
72752000-02-08 Timothy Wall <twall@redhat.com>
7276
7277 * read.c: Added elseif to directives table.
7278 * read.h: Added prototype for s_elseif.
7279 * doc/as.texinfo: Added description for elseif.
7280 * cond.c (s_elseif): New function
3e87a760 7281
24a17b6c
TW
72822000-02-04 Timothy Wall <twall@redhat.com>
7283
7284 * listing.c (print_lines): Remove conditionals causing bug in
3e87a760 7285 listings.
24a17b6c 7286
bea9907b 72872000-02-03 Timothy Wall <twall@cygnus.com>
3e87a760 7288
bea9907b
TW
7289 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
7290 default values.
7291 * frags.c (frag_new): Calculate fr_fix in octets
7292 (frag_now_fix) Return offset as target address offset (bytes).
7293 (frag_now_fix_octets) New - Return offset in octets (8-bit
3e87a760 7294 quantities).
bea9907b
TW
7295 * frags.h: Added prototype for frag_now_fix_octets().
7296 Distinguish between octets and bytes in field descriptions.
7297 * listing.c (calc_hex): Account for octets vs bytes when
7298 printing addresses/offsets.
7299 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
7300 target is little-endian, print the octets in a word in big-endian
7301 order so that the display looks like a proper hexadecimal number,
7302 instead of having the octets reversed.
7303 * read.c (do_align): When recording alignment, alignment power
7304 should be in terms of target bytes (minimum addressible unit)
7305 instead of octets.
7306 (do_org) Convert ORG target address (byte) argument into an
7307 octet offset when generating a variable fragment.
7308 * symbols.c (resolve_symbol_value): Symbol final value
7309 converted to a target address offset (bytes) from its octet offset.
7310 * config/obj-coff.c (coff_frob_symbol): Symbol target address
7311 offset (bytes) is adjusted by the frag offset (octets) converted
7312 to bytes.
7313 (coff_frob_section) Section alignment power is in terms of bytes;
7314 convert it to an octet alignment power when calculating size (and
7315 size mask) in octets. Don't modify the section size in order to
7316 "align" it for TI COFF, since that format has a different method
7317 for storing alignment information.
3e87a760 7318
210dcc61
TW
73192000-02-01 Timothy Wall <twall@cygnus.com>
7320
7321 * stabs.c (generate_asm_file): Escape backslashes in stabs file
7322 entries, matching the way GCC generates them. If not escaped, the
7323 filename is encoded incorrectly.
7324
557537a5 73252000-01-31 Nick Clifton <nickc@cygnus.com>
eaa15ab8 7326
557537a5
NC
7327 * config/tc-arm.c (reg_table): Add support for ATPCS register
7328 naming conventions.
2c1c4c62 7329
557537a5 73302000-01-31 Geoff Keating <geoffk@cygnus.com>
3e87a760 7331
2c1c4c62
GK
7332 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
7333 already defined.
3e87a760 7334 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
2c1c4c62
GK
7335 New macro.
7336 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
7337 of a symbol when we really care about its value.
7338
23fe39df 73392000-01-19 Chandra Chavva <cchavva@cygnus.com>
2d473ce9
NC
7340
7341 * config/tc-mcore.c (md_assemble): Give warning message if
7342 operands passes to instruction are more than the spec.
7343
2f0ca46a
NC
73442000-01-27 Thomas de Lellis <tdel@windriver.com>
7345
66778679 7346 * config/tc-arm.c (armadjust_symtab): If the assembler is in
2f0ca46a 7347 Thumb mode but the label seen was not declared as '.thumb_func'
23fe39df 7348 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
3e87a760 7349 correct disassembly of Thumb code bounded by non function labels.
2f0ca46a 7350
4c63da97
AM
73512000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7352
7353 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
7354 Add dependencies for e-i386aout.o. Fix 2 comment lines.
7355
7356 * Makefile.in: Same here.
7357 Update copyright.
7358
7359 * configure.in: Set bfd_gas for i386-aout when primary target
7360 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
7361 we may need the primary te_file. Remove incorrect comment.
7362
7363 * configure: Regenerate.
7364
7365 * config/e-i386aout.c: New file.
7366
7367 * as.c (USE_EMULATIONS): Move to before print_version_id.
7368 (struct emulation): Add i386aout.
7369 (show_usage): Split text strings. Reformat -a text. Add --em
7370 help.
7371 Update copyright.
7372
7373 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
7374 (aout_format_ops): New.
7375 Update copyright.
7376
7377 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
7378 preprocessor conditional and add aout USE_EMULATIONS tests.
7379 (read_a_source_file): Don't pass error strings to printf as
7380 format arg.
7381 Update copyright.
7382
7383 * gasp.c (exp_get_abs): Don't pass error strings to printf as
7384 format arg.
7385 (do_data): Same here.
7386 (process_file): And here.
7387 Update copyright.
7388
7389 * symbols.c (colon): Rewrite "already defined" fatal message
7390 code for aout with USE_EMULATIONS.
7391 Update copyright.
7392
7393 * config/obj-aout.c (OBJ_HEADER): Define.
7394 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
3e87a760 7395 fields of sentinel.
4c63da97
AM
7396 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
7397 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
7398 forms here.
7399 (obj_aout_type): Expand S_SET_OTHER here too.
7400 (obj_read_begin_hook): Remove.
7401 (aout_pop_insert): New.
7402 (obj_aout_s_get_other): New.
7403 (obj_aout_s_get_desc): New.
7404 (aout_format_ops): New.
7405 Update copyright.
7406
7407 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
7408 gets aout_pseudo_table.
7409 (aout_pseudo_table): Declare.
7410 (obj_read_begin_hook): Define.
7411 Update copyright.
7412
7413 * config/obj-coff.c (obj_pseudo_table): Rename to
7414 coff_pseudo_table.
7415 (coff_pop_insert): Use coff_pseudo_table.
7416 (coff_sec_sym_ok_for_reloc): Remove.
7417 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
7418 and comment all zero entries and remove #if 0 code.
7419 Update copyright.
7420
7421 * config/obj-coff.h (obj_pop_insert): Define.
7422 (coff_pseudo_table): Declare.
7423 Update copyright.
7424
7425 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
7426 s_get_size, s_set_size. Comment all zero entries.
7427 Update copyright.
7428
7429 * config/obj-elf.c (elf_s_get_other): New function.
7430 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
7431 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
7432 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
7433 comment.
7434 (obj_elf_parse_section_letters): Don't pass error strings to
7435 printf as format arg.
7436 Update copyright.
7437
7438 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
7439 OBJ_MAYBE_ECOFF.
7440 (elf_s_get_other): Declare.
7441 (S_GET_OTHER) Define as elf_s_get_other if not already
7442 defined.
7443 (S_SET_OTHER): Only define when not already defined.
7444 (elf_obj_read_begin_hook): Declare.
7445 (obj_read_begin_hook): Define.
7446 (elf_obj_symbol_new_hook): Declare.
7447 (obj_symbol_new_hook): Define.
7448 Update copyright.
7449
7450 * config/obj-multi.h: Add copyright header and protect against
7451 multiple inclusion. Add * to all function pointers.
7452 (OBJ_HEADER): If defined, include it rather than other defines
7453 in this file.
7454 (obj_frob_file_after_relocs): Test for NULL.
7455 (obj_symbol_new_hook): Here too.
7456 (obj_sec_sym_ok_for_reloc): And here.
7457 (S_GET_OTHER): Define.
7458 (S_GET_DESC): Define.
7459 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
7460 (OBJ_MAYBE_ELF): Update comment.
7461
7462 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
7463 OBJ_AOUT preprocessor conditional and handle emulation by
7464 testing OUTPUT_FLAVOR.
7465 (i386_displacement): Here too.
7466 (md_section_align): Similarly here.
7467 (i386_target_format): Conditionally compile when more than one
7468 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
7469 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
7470 (i386_displacement): Here too.
7471 Update copyright.
7472
7473 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
7474 Define TARGET_FORMAT for aout only when not multi.
7475 Update copyright.
7476
7477 * config/te-multi.h: Delete file as it's identical to te-generic.h
7478
add0c677
AM
74792000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
7480
7481 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
7482 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
7483 LONG_MNEM_SUFFIX.
7484
7485 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
7486 DWORD_MNEM_SUFFIX.
7487 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
7488 comments.
7489
a19d8eb0
CP
74902000-01-13 Clinton Popetz <cpopetz@cygnus.com>
7491
66778679
RH
7492 * config/tc-mips.c (mips_do_align): New function.
7493 * config/tc-mips.h (md_do_align): Define.
a19d8eb0 7494
550262c4
NC
74952000-01-10 Philip Blundell <philb@gnu.org>
7496
7497 * doc/c-arm.texi (ARM Options): Fix typo.
3e87a760 7498 (ARM-Chars): Correct description of `#'. Mention that `;' is a
550262c4
NC
7499 line separator for Linux.
7500 * doc/as.texinfo (Comments): Mention the ARM.
7501
0decc840
NC
75022000-01-10 Philip Blundell <pb@futuretv.com>
7503
7504 * configure.in (arm*-*-conix*): New target.
7505 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
7506 armv*-*-linux-gnu.
7507 * configure: Regenerate.
7508
2e13b764
NC
75092000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7510
7511 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
7512 (obj_elf_visibility): New function.
3e87a760 7513
2e13b764
NC
7514 * doc/as.texinfo (Visibility): New node: document visibility
7515 pseudo ops.
7516
2f6d2f85 7517For older changes see ChangeLog-9899
This page took 0.456176 seconds and 4 git commands to generate.