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