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