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