1 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3 * config/tc-mips.c (mips_abi_level): Move in front of
5 (mips_set_options): Add members gp32, fp32, abi.
6 (file_mips_gp32): New flag.
7 (file_mips_fp32): New flag.
8 (mips_opts): Initialize the new members.
11 (HAVE_32BIT_GPRS): Use the new values from mips_opts.
12 (HAVE_32BIT_FPRS): Likewise.
13 (HAVE_NEWABI): Likewise.
14 (HAVE_64BIT_OBJECTS): Likewise.
15 (md_begin): Likewise. Save default (file) values.
16 (md_parse_option): Use the new values from mips_opts.
17 (s_mipsset): Likewise. Fix logic to keep the ABI selection if
18 possible. Let .set mipsN work together with .set push/pop.
19 Enhance error messages.
20 (mips_elf_final_processing): Use file_mips_* for header processing.
22 2001-11-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
24 * config/tc-avr.c (mcu_types): Update for new devices.
26 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
28 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
30 * doc/Makefile.in: Rebuild.
31 * doc/as.texinfo: Do not put man SEEALSO in document;
32 Use @command for commands, @option for options; Reorganize usage
33 to clearly identify target specific options.
35 2001-11-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
37 * config/tc-mips.c (mips_force_relocation): Remove duplicate code.
39 2001-11-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
41 * config/tc-mips.c (my_getSmallParser): Fix small parser bug.
43 2001-11-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
45 * config/tc-s390.c (tc_s390_force_relocation): Force all relocations
46 that need the global offset table.
47 (md_apply_fix3): Add code to undo opertions done in fixup_segment
48 triggered by TC_FORCE_RELOCATION.
49 * config/tc-s390.h (TC_FORCE_RELOCATION): Replace macro code with
50 a call to function tc_s390_force_relocation.
51 (TC_FIX_ADJUSTABLE): Define.
53 2001-11-04 Chris Demetriou <cgd@broadcom.com>
55 * configure.in (mips-*-netbsd*): Add support for target.
56 * configure: Regenerate.
58 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
60 * configure.in (ALL_LINGUAS): Add 'fr'.
61 * configure: Regernate.
62 * po/fr.po: New file. Obtained from the translation project web
65 2001-11-02 Richard Earnshaw <rearnsha@arm.com>
67 * tc-arm.c: Re-arrange prototypes by architecture.
68 (insns): Re-arrange instructions by archtitecture. Pld instruction
70 (tinsns): blx and bkpt are part of ARMv5T.
71 (do_fp_{ctrl,ldst,ldstm,dyadic,monadic,cmp,from_reg,to_reg}): Rename
72 to do_fpa_*. All callers changed.
74 * tc-arm.c (insns): Add two temporary instructions to handle
77 2001-11-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
79 * config/tc-m68hc11.c (build_jump_insn): Allocate worst case storage
80 for bra/bsr and use frag_variant(), this ensure that the possible
81 16-bit BFD_RELOC_16 will be in the same frag.
83 2001-10-31 Chris Demetriou <cgd@broadcom.com>
85 * config/tc-mips.c (HAVE_32BIT_ADDRESSES): If compiling embedded
86 PIC code, assume pointers the same size as GPRs.
87 (macro): In M_LA_AB handling for embedded PIC code, support
88 "la $treg,foo-bar($breg)". In load/store handling
89 (label ld_st) support "<op> $treg,<sym>-<local_sym>($breg)"
90 which is used by the compiler for switch statements.
91 In load/store double multi-instruction macro handling
92 (label ldd_std) add a comment that no special handling
93 is currently done for embedded PIC.
94 (mips_ip): In 'o' (16-bit offset) case, only accept 16
97 2001-10-31 Richard Earnshaw <rearnsha@arm.com>
99 General cleanup of feature definitions.
100 * tc-arm.c (ARM_EXT_LONGMUL, ARM_EXT_HALFWORD, ARM_EXT_THUMB): Delete.
101 (ARM_2UP, ARM_ALL, ARM_3UP, ARM_6UP): Delete.
102 (FPU_CORE, FPU_FPA10, FPA_FPA11, FPU_ALL, FPA_MEMMULTI): Delete.
103 (ARM_EXT_V{1,2,2S,3,3M,4,4T,5T,5ExP}): New defines.
104 (ARM_EXT_V{5,5E}): Synchronize with above.
105 (ARM_ARCH_V*): Define a complete set in terms of above features.
106 (ARM_{1,2,3,250,6,7,8,9,STRONG}): Define in terms of architecture.
107 (FPU_FPA_EXT_V[12]): Define.
108 (FPU_ARCH_FPE, FPU_ARCH_FPA): Define in terms of above.
110 (FPU_DEFAULT): Default to FPA.
111 (CPU_DEFAULT): For XScale, this is now just ARM_ARCH_XSCALE; for
112 Thumb, this is now ARM_ARCH_V5T.
113 (insns): Rework for new feature defines.
115 (opcode_select, do_ldst, md_begin, md_parse_option): Likewise.
117 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
119 * configure.in: Handle sh*eb-*-linux* and sh*-*-linux*.
120 * configure: Regenerate.
121 * Makefile.in: Regenerate.
122 * doc/c-sh.texi (SH Options): Added descriptions.
124 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
126 * configure.in: Update for MMIX port.
127 * Makefile.am: Ditto. Regenerate dependencies.
128 * Makefile.in: Regenerate.
129 * configure: Regenerate.
130 * config/tc-mmix.h, config/tc-mmix.c: New files.
131 * doc/Makefile.am (CPU_DOCS): Add c-mmix.texi
132 * doc/Makefile.in: Regenerate.
133 * doc/all.texi: @set MMIX.
134 * doc/as.texinfo: Ditto. Add MMIX gas manpage option overview.
136 * doc/c-mmix.texi: New file.
138 2001-10-24 Chris Demetriou <cgd@broadcom.com>
140 * config/tc-mips.c (hilo_interlocks, cop_interlocks): Make
141 these evaluate to true if mips_arch indicates SB-1.
143 2001-10-23 Alan Modra <amodra@bigpond.net.au>
145 * as.c (parse_args): Print the date as well for --version.
147 2001-10-20 Chris Demetriou <cgd@broadcom.com>
149 * config/tc-mips.c (md_show_usage): Print "sb1" for Broadcom
150 SB-1 CPU for consistency.
151 (mips_cpu_info_table): Tweak comment about SB-1.
153 2001-10-20 H.J. Lu <hjl@gnu.org>
155 * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
156 (cirrus_parse_offset): Likewise.
158 2001-10-19 Nick Clifton <nickc@cambridge.redhat.com>
160 * config/tc-arm.c: Restore line_comment_chars.
162 2001-10-18 Nick Clifton <nickc@cambridge.redhat.com>
164 * config/tc-arm.c (comment_chars): Remove semi-colon accidentally
167 2001-10-18 Hans-Peter Nilsson <hp@bitrange.com>
169 * write.c (fixup_segment): Handle fixups for SEC_MERGE sections as
170 for undefined symbols.
172 2001-10-17 Chris Demetriou <cgd@broadcom.com>
174 * doc/as.texinfo (MIPS ISA options): Added accidentally
175 omitted "-mips64" option to list of options.
177 2001-10-17 matthew green <mrg@redhat.com>
179 * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
180 -m7410, -m7450 and -m7455 options.
182 2001-10-17 Alan Modra <amodra@bigpond.net.au>
184 * config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
185 (ppc_size): Select PPC_OPCODE_64 if 64 bit.
186 (md_begin): Don't set ppc_size here.
187 (ppc_target_format): Test ppc_size as well as BFD_DEFAULT_TARGET_SIZE.
188 (md_shortopts): Constify.
189 (md_longopts): Likewise.
190 (md_longopts_size): Likewise.
191 (ppc_elf_suffix): Only allow 64-bit relocs when ppc_size specifies
193 (ppc_machine): Explain why this function is a nop.
195 2001-10-17 Alan Modra <amodra@bigpond.net.au>
197 * bit_fix.h: Comment typo fix.
198 * config/tc-mips.c: Likewise.
199 * config/tc-sh.c: Likewise.
200 * config/tc-arc.c (arc_code_symbol): Remove unnecessary test.
202 * configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
203 that autoheader doesn't duplicate config.in entries.
204 (DEFAULT_ARCH): Ditto.
205 * configure: Regenerate.
206 * config.in: Regenerate.
208 2001-10-16 Alan Modra <amodra@bigpond.net.au>
210 From Andrew Pines <apines@cosmodog.com>
211 * config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
213 2001-10-16 NIIBE Yutaka <gniibe@m17n.org>,
214 Hans-Peter Nilsson <hp@bitrange.com>
216 * config/tc-sh.c (shl): Remove.
218 (little): Remove shl handling. Emit error for endian mismatch.
219 (md_show_usage): Add description of -big.
220 (md_parse_option): Handle OPTION_BIG. Remove shl handling.
222 (md_pseudo_table): Add .big.
223 (md_longopts): Add -big.
224 (md_begin): Don't set target_big_endian here.
225 * config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove.
226 (LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian.
228 * configure.in (endian): Default is big.
229 (sh-*-pe*): Little endian.
230 (cpu_type): Set sh for target sh*.
231 * configure: Regenerate.
233 2001-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
235 * config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
238 2001-10-13 Nick Clifton <nickc@cambridge.redhat.com>
240 * config/tc-arm.c: Replace CONST with const.
242 * cgen.c: Tidy up formatting.
244 2001-10-12 matthew green <mrg@redhat.com>
246 * config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455
247 flags, equivalent to -m7400. New -maltivec to enable AltiVec
248 instructions. New -mbook64 and -mbooke/-mbooke32 flags to enable
249 64-bit and 32-bit BookE support, respectively. Change -m403 and
250 -m405 to set PPC403 option.
251 (md_show_usage): Adjust for new options.
252 * doc/all.texi: Set PPC.
253 * doc/as.texinfo: Add PPC support and pull in c-ppc.texi.
254 * doc/c-ppc.texi: New file.
255 * doc/Makefile.am (CPU_DOCS): Add c-ppc.texi.
256 * doc/Makefile.in: Regenerate.
258 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
260 * read.c (s_bad_endr): New function. Issues a warning message
261 about a bad use of the .rept pseudo op.
262 (po_table[]): Add .endr.
263 * read.h: Prototype s_bad_endr.
265 * CONTRIBUTORS: Update contact email address.
267 2001-10-11 Kazu Hirata <kazu@hxi.com>
269 * config/tc-alpha.c: Fix comment typos.
270 * config/tc-cris.c: Likewise.
271 * config/tc-hppa.c: Likewise.
272 * config/tc-i370.c: Likewise.
273 * config/tc-mips.c: Likewise.
274 * config/tc-mn10200.c: Likewise.
275 * config/tc-mn10300.c: Likewise.
276 * config/tc-sh.c: Likewise.
277 * config/tc-tahoe.c: Likewise.
278 * config/tc-v850.c: Likewise.
280 2001-10-11 Kazu Hirata <kazu@hxi.com>
282 * app.c: Fix comment typos.
283 * bit_fix.h: Likewise.
285 * itbl-ops.c: Likewise.
287 2001-10-11 Nick Clifton <nickc@cambridge.redhat.com>
289 * input-file.c: Include safe-ctype.h.
290 (input_file_open): Use ISSPACE instead of isspace.
292 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
294 * config/tc-mips.c (mips_cpreturn_offset): New variable.
295 (mips_cpreturn_register): Likewise.
296 (mips_gp_register): Likewise.
297 (s_cpsetup): New function prototype.
298 (s_cplocal): Likewise.
299 (s_cpreturn): Likewise.
300 (s_gpvalue): Likewise.
301 (mips_pseudo_table): Add .cpsetup, .cplocal, .cpreturn, .gpvalue
303 (macro): Don't warn about .cprestore for NewABI.
304 (md_pcrel_from): Code cleanup.
305 (mips_force_relocation): Force output of some NewABI relocations even
306 without a defined symbol.
307 (s_cpload): Ignore .cpload for NewABI.
308 (s_cpsetup): Handle .cpsetup.
309 (s_cplocal): Handle .cplocal.
310 (s_cprestore): Ignore .cprestore for NewABI.
311 (s_cpreturn): Handle .cpreturn.
312 (s_gpvalue): Handle .gpvalue.
313 (s_cpadd): Ignore .cpadd for NewABI.
314 (nopic_need_relax): Take g_switch_value into account as gp
316 (tc_gen_reloc): Don't handle BFD_RELOC_MIPS_{CALL,GOT}* for NewABI.
318 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
320 * config/tc-mips.c (my_getSmallParser): New function prototype.
321 (small_ex_type): Named this enum, more return values for
322 my_getSmallExpression.
323 (mips_ip): Allow SPC and HT between arguments. Handle some NewABI
324 triple relocations. Protect some parts with ifdef OBJ_ELF.
325 (percent_op_match): New struct, lookup table for %some_reloc().
326 (my_getSmallParser): New function, parses nested percent_ops also.
327 (my_getSmallExpression): Rewite to support nested percent_ops.
329 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
332 (load_address): Support both 32- and 64-bit addresses.
333 (macro): Call load_register correctly. Expand 64-bit loads ans stores.
334 (macro2): Call load_address correctly.
336 2001-10-09 Christian Groessler <cpg@aladdin.de>
338 * config/tc-z8k.c: Include opcodes/z8k-opc.h after bfd.h
339 since z8k-opc.h now uses the PARAMS macro.
341 2001-10-09 Aldy Hernandez <aldyh@redhat.com>
343 * config/tc-arm.c: Change MAVERIK to MAVERICK.
345 2001-10-09 Alan Modra <amodra@bigpond.net.au>
347 * config/obj-elf.c: Make use of elf_group_name and elf_next_in_group
349 (obj_elf_change_section): Rename "group" to "group_name".
350 (obj_elf_section): Likewise.
351 (elf_frob_file): Don't use sec->lineno for SHT_GROUP section to store
352 first member section; Instead use elf_next_in_group.
354 2001-10-09 Alan Modra <amodra@bigpond.net.au>
356 * config/obj-elf.c: (obj_elf_change_section): Add "group" param.
357 Set elf_section_data group from it. Warn if group name changed.
358 (obj_elf_parse_section_letters): Parse 'G' too.
359 (obj_elf_section): Parse group name.
360 (struct group_list): New.
361 (build_group_lists): New function.
362 (elf_frob_file): Create SEC_GROUP section(s).
364 * config/obj-elf.c: (elf_copy_symbol_attributes): Zap trailing
367 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
369 * doc/arm/c-arm.texi (ARM Options): Add arm9e documentation.
371 * config/tc-arm.c (ARM_EXT_MAVERIK): New macro.
372 (cirrus_regtype): New enum.
373 (LONGEST_INST): Change to 10.
380 (insns): Add cirrus dsp instructions.
381 (ARM_EXT_MAVERIKSC_REG): New.
382 (cirrus_register): New.
383 (cirrus_mvf_register): New.
384 (cirrus_mvd_register): New.
385 (cirrus_mvfx_register): New.
386 (cirrus_mvdx_register): New.
387 (cirrus_mvax_register): New.
388 (ARM_EXT_MAVERIKsc_register): New.
389 (reg_table): Add cirrus registers.
390 (cirrus_valid_reg): New.
391 (cirrus_reg_required_here): New.
392 (do_c_binops_1): New.
393 (do_c_binops_2): New.
394 (do_c_binops_3): New.
395 (do_c_triple_4): New.
396 (do_c_triple_5): New.
411 (cirrus_parse_offset): New.
413 (md_parse_option): Add arm9e.
414 (md_show_usage): Same.
416 2001-10-08 Tom Rix <trix@redhat.com>
418 * config/tc-ppc (ppc_bf, ppc_biei) : Set first .bi lineno value to
420 * config/obj-coff.c (coff_frob_symbol) : XCOFF does not use endndx.
422 2001-10-07 Alan Modra <amodra@bigpond.net.au>
424 * config/obj-elf.c: Standardize error/warning messages - don't
425 capitalise, no final period or newline, don't say "ignoring" for
426 as_bad messages. In some cases, change the wording to that used
427 elsewhere for similar messages.
428 (obj_elf_section_name): New function, split out from ..
429 (obj_elf_section): .. here. Correctly mask off SHF_MERGE if
430 entsize not specified.
432 2001-10-05 Jakub Jelinek <jakub@redhat.com>
434 * doc/as.texinfo: Document M and S ELF section flags.
436 2001-10-05 Alan Modra <amodra@bigpond.net.au>
438 * subsegs.c (subseg_text_p): Return 0 for absolute section.
439 * read.c (do_align): If in absolute section, warn about and ignore
440 non-zero fill pattern.
442 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
444 * config/tc-mn10300.c (tc_gen_reloc): Don't free
445 reloc->sym_ptr_ptr if it's not allocated.
447 2001-10-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
449 * config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
451 (prev_insn_fixp): Likewise.
452 (append_insn): Changed prototype to accept a relocation pointer.
453 (imm_reloc): Make it an array.
454 (offset_reloc): Likewise.
455 (md_assemble): Handle triple relocations.
456 (append_insn): Likewise. Add handling for some NewABI relocations.
457 (mips_no_prev_insn): Handle triple relocations.
458 (macro_build): Likewise. Add handling for some NewABI relocations.
459 Move handling for the 'u' case to append_insn().
460 (mips16_macro_build): Handle triple relocations.
461 (macro_build_lui): Likewise. Don't handle _gp_disp as special symbol
463 (mips_ip): Handle triple relocations.
464 (mips16_ip): Likewise.
465 (mips_force_relocation): Force handling of triple relocations
466 without symbols for NewABI.
467 (md_apply_fix): Add handling for some NewABI relocations.
469 2001-10-05 Alan Modra <amodra@bigpond.net.au>
471 * config/tc-i386.c (parse_register): If not producing code for
472 x86_64, reject x86_64 register name matches.
473 (md_assemble): Remove now redundant check for x86_64 regs.
475 2001-10-04 Alan Modra <amodra@bigpond.net.au>
477 * config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
478 as BFD_DEFAULT_TARGET_SIZE.
480 (ppc_is_toc_sym): Likewise.
481 (md_apply_fix3): Likewise.
483 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
485 * config/tc-mips.c (mips_64): Remove.
486 (mips_target_format): Move downwards in file, use HAVE_64BIT_OBJECTS
488 (mips_abi_level, mips_abi): New enum.
489 (mips_32bit_abi): Remove.
490 (HAVE*PRS): Use mips_abi instead of mips_32bit_abi.
491 (HAVE_NEWABI): New define.
492 (HAVE_64BIT_OBJECTS): New define.
493 (HAVE_32BIT_ADDRESSES): Don't return true for 64bit objects.
494 (HAVE_64BIT_ADDRESSES): New define, inverse of HAVE_32BIT_ADDRESSES.
495 (support_64bit_objects): New prototype.
496 (md_begin): Use mips_abi instead of mips_32bit_abi. Don't write
497 .reginfo section for n32, use .MIPS.options instead.
498 (support_64bit_objects): New function, code from md_parse_option.
499 (md_longopts): Add -n32 option.
500 (md_parse_option): Use mips_abi instead of mips_32bit_abi/mips64.
501 Add -n32 option. Protect with OBJ_ELF.
502 (s_mipsset): Use mips_abi instead of mips_32bit_abi.
503 (mips_elf_final_processing): Likewise. Don't write .reginfo section
504 for n32, use .MIPS.options instead.
506 2001-10-03 Alan Modra <amodra@bigpond.net.au>
508 * po/POTFILES.in: Regenerate.
509 * configure: Regenerate.
511 2001-10-02 Alan Modra <amodra@bigpond.net.au>
513 * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
514 bits if target is 64 bit.
516 * doc/as.texinfo (listing): Fix typo.
518 * as.c (print_version_id): Use BFD_VERSION_STRING in place of
520 * Makefile.am (Makefile): Depend on bfd/configure.in.
522 * Makefile.in: Regenerate.
524 2001-09-30 H.J. Lu <hjl@gnu.org>
526 * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
527 and "ams" for compatibility.
529 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
531 * config/tc-sh.c (md_pcrel_from_section): Transformed from
532 md_pcrel_from. Handle pc-relativeness against link-time
533 symbol. Handle relativeness to elsewhere than the fixup.
534 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
535 (md_pcrel_from_section): Prototype.
537 * Makefile.am: Update dependencies with "make dep-am".
538 * Makefile.in: Regenerate.
540 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
542 * config/tc-m68hc11.c (cmp_opcode): Define prototype.
543 (print_opcode_format, skip_whites): Likewise.
544 (convert_branch, m68hc11_new_insn): Likewise.
545 (build_dbranch_insn, build_indexed_byte): Likewise.
546 (build_reg_mode, find, find_opcode): Likewise.
547 (print_insn_format): Fix call to print_opcode_format.
548 (md_assemble): Fix call to build_dbranch_insn.
550 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
552 * config/tc-arm.c: Add missing prototypes.
554 2001-09-26 Jeff Johnston <jjohnstn@redhat.com>
556 * input-file.c (input_file_open): When reading the
557 first line looking for #NO_APP, prepare for the possibility
558 of finding #APP instead. Also fix algorithm to allow
559 white-space to follow either #NO_APP or #APP directives.
561 2001-09-25 Geoff Berry <geoff.berry@bops.com>
563 * listing.c (buffer_line): Don't write past the end of `line' when
566 2001-09-25 Alexandre Oliva <aoliva@redhat.com>
568 * config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
569 relocation for differences between symbols in a section other
570 than the one in which the difference is to be placed; apply
571 the relocation instead.
573 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
575 * config/tc-arc.c: Add missing prototype.
576 (md_atof): Change type to int. Add missing prototype.
577 * config/tc-arc.h: Prototype exported functions.
579 2001-09-22 Nick Clifton <nickc@cambridge.redhat.com>
581 * as.c: Add missing function prototype.
582 * config/obj-aout.c: Fix compile time warning.
584 2001-09-21 Bruno Haible <haible@clisp.cons.org>
586 * config/tc-openrisc.c: Don't include <ctype.h>.
588 2001-09-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
590 * gas/config/tc-s390.c: Add option -mwarn-areg-zero.
592 2001-09-19 Alan Modra <amodra@bigpond.net.au>
594 * config/tc-i370.c: Fix typo in last change.
596 2001-09-19 Nick Clifton <nickc@cambridge.redhat.com>
598 * doc/as.texinfo (Symbol Names): Improve documentation on local
599 labels and add documenation about dollar labels.
601 2001-09-18 Bruno Haible <haible@clisp.cons.org>
603 * as.h: Don't include <ctype.h>.
604 * as.c (main): For gettext, also set the LC_CTYPE locate facet.
605 * atof-generic.c: Include "safe-ctype.h" instead of <ctype.h>.
606 (atof_generic): Use ISDIGIT instead of isdigit.
607 * config/m68k-parse.y: Include "safe-ctype.h".
608 (yylex): Use ISDIGIT/ISALNUM instead of isdigit/isalnum.
609 * config/obj-elf.c: Include "safe-ctype.h".
610 (obj_elf_vtable_inherit): Use ISSPACE instead of isspace.
611 * config/obj-vms.c: Include "safe-ctype.h".
612 (Write_VMS_MHD_Records): Use TOUPPER instead of islower/toupper.
613 (VMS_Case_Hack_Symbol): Use ISUPPER/ISLOWER/TOUPPER/TOLOWER
614 instead of isupper/islower/toupper/tolower.
615 * config/tc-a29k.c: Include "safe-ctype.h" instead of <ctype.h>.
616 (insert_sreg): Use TOUPPER instead of islower/toupper.
617 (machine_ip): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead of
618 isalpha/isalnum/isupper/tolower.
619 (a29k_unrecognized_line, md_operand): Use ISDIGIT instead of
621 * config/tc-alpha.c: Include "safe-ctype.h" instead of <ctype.h>.
622 (md_undefined_symbol, s_alpha_ent): Use ISDIGIT instead of isdigit.
623 * config/tc-arc.c: Include "safe-ctype.h" instead of <ctype.h>.
624 (md_assemble): Use ISSPACE/ISALNUM instead of isspace/isalnum.
625 (arc_extoper): Use TOLOWER instead of isupper/tolower.
626 * config/tc-arm.c: Include "safe-ctype.h" instead of <ctype.h>.
627 (arm_psr_parse): Use ISALPHA instead of isalpha.
628 (accum0_required_here): Use ISALNUM instead of isalnum.
629 (do_ldrd): Use ISSPACE instead of isspace.
630 (decode_shift): Use ISALPHA instead of isalpha.
631 (insert_reg): Use TOUPPER instead of islower/toupper.
632 (arm_reg_parse): Use ISALPHA instead of isalpha.
633 (arm_parse_reloc): Use ISALNUM/ISPUNCT/TOLOWER instead of
634 isalnum/ispunct/tolower.
635 * config/tc-avr.c: Include "safe-ctype.h" instead of <ctype.h>.
636 (md_parse_option): Use TOLOWER instead of tolower.
637 (avr_operand): Use ISDIGIT/TOLOWER instead of isdigit/tolower.
638 * config/tc-cris.c: Include "safe-ctype.h" instead of <ctype.h>.
639 (cris_process_instruction): Use ISLOWER instead of islower.
640 (get_gen_reg): Use ISALNUM/ISDIGIT instead of isalnum/isdigit.
641 (get_spec_reg): Use TOLOWER/ISALNUM instead of isupper/tolower/isalnum.
642 (get_flags): Use ISSPACE instead of isspace.
643 * config/tc-d10v.c: Include "safe-ctype.h" instead of <ctype.h>.
644 (do_assemble): Use TOLOWER instead of tolower.
645 * config/tc-d30v.c: Include "safe-ctype.h" instead of <ctype.h>.
646 (do_assemble): Use TOLOWER instead of tolower.
647 (d30v_start_line): Use ISSPACE instead of isspace.
648 * config/tc-fr30.c: Include "safe-ctype.h" instead of <ctype.h>.
649 (fr30_is_colon_insn): Use TOLOWER instead of tolower.
650 * config/tc-h8300.c: Include "safe-ctype.h" instead of <ctype.h>.
651 (skip_colonthing, get_operand): Use ISDIGIT instead of isdigit.
652 * config/tc-h8500.c: Include "safe-ctype.h" instead of <ctype.h>.
653 (start_label): Use ISALPHA instead of isalpha.
654 * config/tc-hppa.c: Include "safe-ctype.h" instead of <ctype.h>.
655 (pa_ip): Use ISUPPER/ISLOWER/TOLOWER instead of
656 isupper/islower/tolower.
657 (pa_parse_number): Use ISDIGIT instead of isdigit.
658 (pa_chk_field_selector): Use TOLOWER instead of tolower.
659 (pa_stringer): Use ISDIGIT instead of isdigit.
660 * config/tc-i370.c: Include "safe-ctype.h" instead of <ctype.h>.
661 (register_name): Use ISALPHA instead of isalpha.
662 (i370_elf_suffix): Use ISALNUM/TOLOWER instead of
663 isalnum/islower/tolower.
664 (i370_addr_offset): Use ISDIGIT/ISALPHA instead of
666 (i370_addr_cons): Use ISALPHA/ISXDIGIT instead of
668 (md_assemble): Use ISSPACE instead of isspace.
669 * config/tc-i386.c: Include "safe-ctype.h" instead of <ctype.h>.
670 (md_begin): Use ISDIGIT/ISLOWER/ISUPPER/TOLOWER/ISALPHA
671 instead of isdigit/islower/isupper/tolower/isalpha.
672 (output_invalid): Use ISPRINT instead of isprint.
673 * config/tc-i860.c: Include "safe-ctype.h" instead of <ctype.h>.
674 (i860_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
675 * config/tc-i960.c: Include "safe-ctype.h" instead of <ctype.h>.
676 (get_args): Use ISALNUM instead of isalnum.
677 * config/tc-ia64.c: Include "safe-ctype.h".
678 (dot_pred_rel): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
679 (ia64_unrecognized_line): Use ISDIGIT instead of isdigit.
680 (ia64_parse_name): Likewise.
681 * config/tc-m32r.c: Include "safe-ctype.h" instead of <ctype.h>.
682 (assemble_two_insns): Use ISSPACE/ISALNUM/ISUPPER/TOLOWER
683 instead of isspace/isalnum/isupper/tolower.
684 * config/tc-m68hc11.c: Include "safe-ctype.h" instead of <ctype.h>.
685 (md_assemble): Use TOLOWER/ISALNUM instead of tolower/isalnum.
686 * config/tc-m68k.c: Include "safe-ctype.h" instead of <ctype.h>.
687 (mklower_table): Remove variable.
688 (mklower): Remove macro.
689 (insert_reg): Use TOUPPER instead of islower/toupper.
690 (md_begin): Remove initialization of mklower_table.
691 (s_reg): Use ISALNUM instead of isalnum.
692 (mri_assemble): Use ISUPPER/TOLOWER instead of isupper/tolower.
693 (parse_mri_condition): Use TOLOWER instead of isupper/tolower.
694 (build_mri_control_operand): Use TOLOWER instead of tolower.
695 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
696 * config/tc-m88k.c: Include "safe-ctype.h" instead of <ctype.h>.
697 (md_assemble): Use ISSPACE instead of isspace.
698 (get_imm16): Use ISALNUM instead of isalnum.
699 (get_cnd): Use ISDIGIT/ISUPPER/TOLOWER instead of
700 isdigit/isupper/tolower.
701 (get_bf_offset_expression): Use ISALPHA/ISUPPER/TOLOWER
702 instead of isalpha/isupper/tolower.
703 (hexval): Use ISDIGIT/ISLOWER/ISUPPER instead of
704 isdigit/islower/isupper.
705 * config/tc-mcore.c: Include "safe-ctype.h" instead of <ctype.h>.
706 (mcore_s_section): Use ISSPACE instead of isspace.
707 (parse_reg): Use ISSPACE/TOLOWER/ISALNUM instead of
708 isspace/tolower/isalnum.
709 (parse_creg): Use ISSPACE/TOLOWER instead of isspace/tolower.
710 (parse_psrmod): Use TOLOWER instead of isascii/tolower.
711 (parse_exp, parse_mem, md_assemble): Use ISSPACE instead of
713 * config/tc-mips.c: Include "safe-ctype.h" instead of <ctype.h>.
714 (mips_ip): Use ISSPACE/ISDIGIT instead of isspace/isdigit.
715 (mips16_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
716 (my_getSmallExpression): Use ISDIGIT/TOLOWER instead of
718 (tc_get_register): Likewise.
719 (get_number): Use ISDIGIT/ISXDIGIT instead of isdigit/isxdigit.
720 (s_mips_ent): Use ISDIGIT instead of isdigit.
721 * config/tc-mn10200.c: Include "safe-ctype.h" instead of <ctype.h>.
722 (md_assemble): Use ISSPACE instead of isspace.
723 * config/tc-mn10300.c: Include "safe-ctype.h" instead of <ctype.h>.
724 (md_assemble): Use ISSPACE instead of isspace.
725 * config/tc-ns32k.c: Don't include <ctype.h>.
726 * config/tc-pdp11.c: Include "safe-ctype.h".
727 (mklower): Remove function.
728 (parse_reg): Use TOLOWER instead of mklower.
729 * config/tc-pj.c: Include "safe-ctype.h".
730 (md_assemble): Use ISSPACE instead of isspace.
731 * config/tc-ppc.c: Include "safe-ctype.h" instead of <ctype.h>.
732 (register_name): Use ISALPHA instead of isalpha.
733 (ppc_elf_suffix): Use ISALNUM/TOLOWER instead of
734 isalnum/islower/tolower.
735 (md_assemble): Use ISSPACE instead of isspace.
736 (ppc_canonicalize_symbol_name): Use ISLOWER/TOUPPER instead of
738 * config/tc-s390.c: Include "safe-ctype.h" instead of <ctype.h>.
739 (register_name): Use ISALPHA instead of isalpha.
740 (s390_elf_suffix, s390_lit_suffix): Use ISALNUM instead of isalnum.
741 (md_gather_operands, md_assemble, s390_insn): Use ISSPACE instead of
743 * config/tc-sh.c: Include "safe-ctype.h" instead of <ctype.h>.
744 (sh_elf_suffix): Use ISALNUM/TOLOWER instead of
745 isalnum/islower/tolower.
746 (IDENT_CHAR): Use ISALNUM instead of isalnum.
747 (parse_reg): Use TOLOWER instead of tolower.
748 (find_cooked_opcode): Use TOLOWER instead of isupper/tolower.
749 * config/tc-sparc.c: Include "safe-ctype.h" instead of <ctype.h>.
750 (sparc_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
751 (parse_keyword_arg): Use ISALNUM instead of isalnum.
752 * config/tc-tahoe.c: Include "safe-ctype.h".
753 (tahoe_reg_parse): Use ISDIGIT instead of isdigit.
754 (tip_op): Use TOLOWER instead of isupper/tolower.
755 * config/tc-tic30.c: Include "safe-ctype.h".
756 (md_begin): Use ISLOWER/ISDIGIT/ISUPPER/TOLOWER/ISLOWER/
757 ISALPHA instead of islower/isdigit/isupper/tolower/islower/isalpha.
758 (tic30_operand): Use TOLOWER instead of tolower.
759 (tic30_find_parallel_insn): Likewise.
760 (output_invalid): Use ISPRINT instead of isprint.
761 * config/tc-tic54x.c: Include "safe-ctype.h".
762 (tic54x_asg, tic54x_eval): Use ISALPHA instead of isalpha.
763 (lookup_version): Use TOUPPER instead of toupper.
764 (tic54x_var): Use ISALPHA instead of isalpha.
765 (tic54x_mlib): Use ISSPACE instead of isspace.
766 (subsym_iscons): Use TOUPPER instead of toupper.
767 (get_operands): Use ISSPACE instead of isspace.
768 (is_type): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
769 (encode_indirect, encode_operand): Use TOUPPER instead of toupper.
770 (next_line_shows_parallel): Use ISSPACE instead of isspace.
771 (subsym_get_arg, subsym_substitute): Use ISDIGIT instead of isdigit.
772 (tic54x_start_line_hook, md_assemble, tic54x_start_label): Use
773 ISSPACE instead of isspace.
774 * config/tc-tic80.c: Include "safe-ctype.h".
775 (md_assemble): Use ISSPACE instead of isspace.
776 * config/tc-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
777 (system_register_name): Use ISDIGIT instead of isdigit.
778 (md_assemble): Use ISSPACE instead of isspace.
779 * config/tc-vax.c: Include "safe-ctype.h" instead of <ctype.h>.
780 (vax_reg_parse): Use TOLOWER/ISDIGIT instead of
781 isupper/tolower/isdigit.
782 (vip_op): Use TOLOWER instead of isupper/tolower.
783 * config/tc-w65.c: Don't include <ctype.h>.
784 * config/tc-z8k.c: Include "safe-ctype.h" instead of <ctype.h>.
785 (tohex): Use ISDIGIT/ISLOWER instead of isdigit/islower.
786 (whatreg): Use ISDIGIT instead of isdigit.
787 * ecoff.c: Include "safe-ctype.h" instead of <ctype.h>.
788 (ecoff_directive_ent, ecoff_stab): Use ISDIGIT instead of isdigit.
789 * expr.c: Include "safe-ctype.h" instead of <ctype.h>.
790 (integer_constant): Use ISALNUM/TOUPPER instead of
791 isalnum/islower/toupper.
792 (operand): Use TOLOWER instead of isupper/tolower.
793 * gasp.c: Include "safe-ctype.h" instead of <ctype.h>.
794 (sb_strtol, level_0, change_base, doinstr): Use ISDIGIT instead
796 (process_assigns, whatcond): Use TOUPPER instead of toupper.
797 (chartype_init): Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
798 (main): For gettext, also set the LC_CTYPE locate facet.
799 * hash.c: Include "safe-ctype.h".
800 (main): Use TOLOWER instead of isupper/tolower.
801 * itbl-lex.l: Don't include <ctype.h>.
802 * listing.c: Include "safe-ctype.h" instead of <ctype.h>.
803 (listing_newline): Use ISCNTRL instead of isascii/iscntrl. Don't
804 omit non-ASCII characters.
805 (debugging_pseudo): Use ISSPACE instead of isspace.
806 * macro.c: Include "safe-ctype.h" instead of <ctype.h>.
807 (buffer_and_nest): Use ISALNUM instead of isalnum.
808 (get_token): Use ISALPHA/ISALNUM instead of isalpha/isalnum.
809 (define_macro): Use ISUPPER/TOLOWER instead of isupper/tolower.
810 (macro_expand_body): Use ISALNUM/ISDIGIT/ISUPPER/ISALPHA
811 instead of isalnum/isdigit/isupper/isalpha.
812 (check_macro): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead
813 of isalpha/isalnum/isupper/tolower.
814 * read.c: Include "safe-ctype.h" instead of <ctype.h>.
815 (read_a_source_file): Use ISUPPER/TOLOWER/ISDIGIT instead of
816 isupper/tolower/isdigit.
817 (s_mri_common): Use ISDIGIT instead of isdigit.
818 (s_mri_sect): Use ISDIGIT/TOUPPER instead of isdigit/toupper.
819 (s_float_space): Use ISALPHA instead of isalpha.
820 (ignore_rest_of_line): Use ISPRINT instead of isprint.
821 (float_cons): Use ISALPHA instead of isalpha.
822 (next_char_of_string): Use ISDIGIT/ISXDIGIT instead of
824 * symbols.c: Include "safe-ctype.h" instead of <ctype.h>.
825 (save_symbol_name): Use ISLOWER/TOUPPER instead of
827 (symbol_find_base): Use TOUPPER instead of islower/toupper.
828 (decode_local_label_name): Use ISDIGIT instead of isdigit.
830 2001-09-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
832 * tc-s390.c (s390_insn): Add code to cope with 6 byte O_constants
833 in 64 bit mode and make format "e" work.
835 2001-09-18 Alan Modra <amodra@bigpond.net.au>
837 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.
839 * write.c (set_symtab): Update bfd_alloc declaration. Use a temp
840 var to ensure bfd_alloc arg is the right type.
841 (write_object_file): Cast args of bfd_seek. Replace bfd_write with
844 * config/obj-coff.c: Replace calls to bfd_write with calls to
845 bfd_bwrite. Cast args of bfd_seek.
847 * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned
850 * config/tc-mn10300.c (set_arch_mach): Make param unsigned.
852 * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with
855 2001-09-15 Hans-Peter Nilsson <hp@bitrange.com>
857 * config/tc-sh.h (sh_force_relocation): Prototype.
858 (struct fix): Forward declare.
859 * config/tc-sh.c (type sh_operand_info): Move to top of file.
860 (cons, s_align_bytes): Remove old-type declarations.
861 (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand,
862 get_operands, get_specific, insert, build_relax,
863 insert_loop_bounds, build_Mytes): Prototype.
864 (little): Make static. Prototype.
865 (check, tc_Nout_fix_to_chars): Delete unused functions.
867 2001-09-14 Eric Christopher <echristo@redhat.com>
869 * config/tc-mips.c (md_parse_option): Remove setting mips_64 via
872 2001-09-14 Kevin Lo <kevlo@openbsd.org>
874 * configure.in: Add arm-openbsd target.
875 * configure: Regenerate.
877 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
879 * configure.in: Change machine triplets from mips-*-linux-gnu* to
882 2001-09-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
884 * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
886 2001-09-11 Richard Henderson <rth@redhat.com>
888 * config/tc-alpha.c (alpha_elf_section_letter): New.
889 (alpha_elf_section_flags): New.
890 * config/tc-alpha.h (md_elf_section_letter): New.
891 (md_elf_section_flags): New.
892 * config/tc-ia64.c (ia64_elf_section_letter): New.
893 * config/tc-ia64.h (md_elf_section_letter): New.
895 2001-09-11 Jakub Jelinek <jakub@redhat.com>
897 * config/obj-elf.c (obj_elf_parse_section_letters): Use 'M' instead
898 of 'm', 'S' instead of 's'. Update bad_msg.
899 * config/tc-ppc.c (ppc_section_letter): Update bad_msg.
900 * config/tc-i370.c (i370_sectioN_letter): Update bad_msg.
902 2001-09-09 Alan Modra <amodra@bigpond.net.au>
904 * expr.c (expr): Move code setting "retval" to the end of the loop,
905 and rearrange for efficiency. For "PIC code" subtraction, use
906 "rightseg" rather than recalculating. For "symbol OP symbol"
907 subtract, set "retval" to absolute_section if symbols in same
909 * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an
910 O_symbol. Simplify a +/- b code. Allow equality and non-equality
911 comparisons on symbols from any section. Allow other comparison
912 operators as for subtraction.
913 (symbol_equated_reloc_p): New predicate function.
914 * symbols.h (symbol_equated_reloc_p): Declare.
915 * write.c (relax_segment <rs_machine_dependent>): Ensure segment
916 for expression syms is set correctly.
917 (adjust_reloc_syms): Use symbol_equated_reloc_p.
918 (write_relocs): Likewise.
919 (write_object_file): Likewise.
920 * config/tc-mips.c (md_estimate_size_before_relax): Likewise.
921 * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part
922 of a complex expression when setting up frag_var.
924 2001-09-07 Richard Henderson <rth@redhat.com>
926 * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
927 require_seq and allow_seq. Let !literal omit the sequence number.
928 (tokenize_arguments): Reject sequence numbers of !allow_seq.
930 2001-09-08 Jakub Jelinek <jakub@redhat.com>
932 * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
933 section symbols the same way as externs.
935 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
937 * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX
940 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
942 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
943 (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
944 PIC, BFD_RELOC_16_PCREL for the rest.
946 (md_pcrel_from): return the right offset for the differently shifted
948 (md_apply_fix): Handle BFD_RELOC_16_PCREL.
950 2001-09-05 Richard Henderson <rth@redhat.com>
952 * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
953 (pseudo_func): Add @iplt.
954 (pseudo_opcode): Add data16 and data16.ua.
955 (md_begin): Set iplt pseudo.
956 (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
958 2001-09-04 Richard Henderson <rth@redhat.com>
960 * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
961 (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
962 (alpha_macros): Remove occurrences of same.
963 (O_lituse_addr, O_gprel): New.
964 (DUMMY_RELOC_LITUSE_*): New.
965 (s_alpha_ucons, s_alpha_arch): Prototype.
966 (alpha_reloc_op): Construct elements via DEF macro.
967 (ALPHA_RELOC_SEQUENCE_OK): Remove.
968 (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
969 members to not be literal specific.
970 (next_sequence_num): New.
971 (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for
972 added/removed BFD relocations.
973 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
974 (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
975 (tokenize_arguments): Parse ! relocations properly.
976 (find_macro_match): Delete unused macro argument types.
977 (assemble_insn): Add reloc parameter; emit that instead of the
978 default as appropriate.
979 (get_alpha_reloc_tag): New. Split from ...
980 (emit_insn): ... here. Allocate a reloc tag for GPDISP.
981 (assemble_tokens): Don't search macros if user relocation present.
982 Copy reloc sequence number to insn struct.
983 (emit_ldgp): Remove user reloc handling.
984 (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
985 (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
986 (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
987 * config/tc-alpha.h (tc_adjust_symtab): Always define.
988 (struct alpha_fix_tag): Name members less literal specific.
990 Tue Sep 4 20:01:19 2001 Jeffrey A Law (law@cygnus.com)
992 * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
993 address of two symbols in different sections.
995 2001-08-31 Eric Christopher <echristo@redhat.com>
996 Jason Eckhardt <jle@redhat.com>
998 * config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
999 5kc, and 20kc. Clean up old entries.
1001 Fri Aug 31 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1002 Jeff Law <law@redhat.com>
1004 * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
1005 offset match H8 ELF spec.
1006 (md_section_align): Alternate implementation for BFD_ASSEMBLER.
1007 (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.
1009 * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
1010 (build_bytes): Mark fixups for PCrel branches as signed. For
1011 OBJ_ELF, make sure the reloc's offset points to the first byte
1013 (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
1014 * tc-h8300.h (relocation mappings): Add.
1016 Thu Aug 30 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1018 * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
1019 define for BFD_ASSEMBLER.
1020 (tc_reloc_mangle): Likewise.
1021 (tc_gen_reloc): New function for BFD_ASSEMBLER.
1023 Wed Aug 29 12:49:58 2001 Jeffrey A Law (law@cygnus.com)
1025 * config/tc-h8300.c (h8300hmode): Record the machine type
1026 if BFD_ASSEMBLER is defined.
1027 (h8300smode, md_begin): Similarly.
1029 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1031 * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1032 default from coff to elf.
1033 * configure: Regenerate.
1035 Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1037 * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
1038 assorted coff relocations to the corresponding elf relocations.
1039 * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
1041 * configure.in: Add case for h8300-*-elf.
1042 * configure: Regenerate.
1044 Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1046 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
1047 documentation to reflect reality.
1049 2001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1051 * config/tc-mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
1052 (macro): Reflect change to MAX_GPREL_OFFSET.
1054 2001-08-27 Torbjorn Granlund <tege@swox.com>
1055 Staffan Ulfberg <staffanu@swox.se>
1056 Linus Nordberg <linus@swox.se>
1057 Alan Modra <amodra@bigpond.net.au>
1059 * configure.in: Recognise powerpc*le*, not just powerpcle*.
1060 * configure: Regenerate.
1061 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
1062 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
1063 (md_assemble): Use them.
1064 (ppc_machine): Support stub for ELF64 as well as XCOFF.
1065 (md_pseudo_table): Add "llong", "quad".
1066 (md_parse_option): Match default_cpu of powerpc*.
1067 (ppc_arch): Likewise.
1068 (ppc_subseg_align): Only for OBJ_XCOFF.
1069 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
1070 (md_begin): Select PPC_OPCODE_64 for 64 bit.
1071 (ppc_insert_operand): Don't bother testing 'file' before calling
1072 as_bad_where. Use as_bad_where for operand->insert errors.
1073 (mapping): Add ELF64 relocation modifiers.
1074 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
1075 expressions with abs_symbol.
1076 (ppc_elf_cons): Correct offset for little endian targets.
1077 (ppc_elf_frob_symbol): New.
1078 (md_assemble): Add support for 64 bit ELF relocs.
1079 (ppc_tc): Ensure 8 byte alignment when 64 bit.
1080 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
1081 ".toc" section for 64 bit ELF.
1082 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
1083 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
1084 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
1085 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
1086 Expand on comments, error message. Add support for 64 bit relocs,
1087 and use PPC_HI etc. macros.
1088 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1089 (HANDLE_ALIGN): Define to generate nops in code sections rather
1091 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
1092 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
1093 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
1094 (ppc_fix_adjustable): Declare.
1095 (tc_frob_symbol): Define.
1096 (ppc_elf_frob_symbol): Declare.
1098 2001-08-26 Andreas Jaeger <aj@suse.de>
1100 * config/tc-s390.c: Add missing prototypes
1101 (md_gather_operands): Make static.
1103 2001-08-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1105 * config/tc-mips.h (MAX_GPREL_OFFSET): Change it to the maximum
1106 allowed value, not the word beyond maximum.
1107 * config/tc-mips.c (macro_build_lui): Code cleanup.
1108 (macro): Reflect change to MAX_GPREL_OFFSET.
1109 (mips_ip): Check explicitly against S_EX_NONE.
1110 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
1111 (md_apply_fix): Code cleanup.
1113 2001-08-24 Andreas Jaeger <aj@suse.de>
1115 * config/tc-ppc.h: Fix prototype declaration.
1117 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1119 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
1120 * config/obj-elf.c (obj_elf_size): When size is constant, free
1121 and clear symbol_get_obj(sym)->size if any.
1123 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1125 * config/tc-mips.c (md_begin): Warn about incompatibility between
1126 -march=FOO and -mipsN option, continue with default ISA.
1128 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1130 * config/tc-mips.c (md_parse_option): #ifdef the
1131 traditional/non-traditional names as it is done in mips_target_format.
1133 2001-08-20 Richard Henderson <rth@redhat.com>
1135 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
1136 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
1137 use seg parameter instead of now_seg.
1139 2001-08-18 H.J. Lu <hjl@gnu.org>
1141 * config/tc-mips.c (show): Add the missing prototype.
1143 2001-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1145 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
1147 (mips_ip): Use the new return values instead of characters. Add
1148 support for %higher and %highest.
1151 (my_getSmallExpression): Make parsing case insensitive and more
1152 reliable. Add support for %higher and %highest. Further support to
1153 parse %gprel and %neg is implemented but currently deactivated.
1155 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1157 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
1158 (ecoff_build_symbols): Likewise.
1159 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
1161 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1163 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
1164 for n32 ABI if appropriate.
1166 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1168 * config/tc-mips.c (cons_fix_new_mips): Remove.
1169 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
1170 (cons_fix_new_mips): Remove.
1172 2001-08-14 Jeff Johnston <jjohnstn@redhat.com>
1174 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
1175 a label, not a hex constant.
1177 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1179 * config/tc-v850.h: Add missing prototypes.
1181 2001-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
1183 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
1186 2001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1188 * config/tc-sparc.c (cons_fix_new_sparc): Move
1189 `sparc_no_align_cons = 0;' to...
1190 (s_uacons): ...here so that sparc_no_align_cons will get
1193 2001-08-11 Kazu Hirata <kazu@hxi.com>
1195 * config/tc-mips.c: Fix a comment typo.
1197 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
1199 * config/tc-mips.c (move_register): New function.
1200 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
1201 (mips_ip): Likewise.
1202 (macro2): Use move_register rather than macro_build for moves.
1203 (mips16_macro): Likewise.
1204 (macro): Likewise. Handle M_MOVE.
1206 2001-08-10 Andreas Jaeger <aj@suse.de>
1208 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1210 * configure: Regenerate.
1212 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1214 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
1215 Comment indentation of #pragma.
1216 * macro.c (alloca): Likewise.
1218 * config/tc-ppc.c: Revert 2001-08-08.
1220 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1222 * symbols.c: Add missing prototypes.
1223 * config/e-i386elf.c: Likewise.
1224 * config/e-i386coff.c: Likewise.
1225 * config/e-i386aout.c: Likewise.
1226 * config/obj-coff.c: Likewise.
1227 (def_symbol_in_progress, stack): Move definition.
1228 * config/obj-elf.c: Add missing prototypes.
1229 (obj_elf_change_section): Make static.
1230 (obj_elf_parse_section_letters): Likewise.
1231 (obj_elf_section_word): Likewise.
1232 (obj_elf_section_type): Likewise.
1234 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1236 From 1999-10-25 Torbjorn Granlund <tege@swox.com>
1237 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
1238 determining reloc type with code reading operands->reloc field.
1240 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1242 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
1243 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
1244 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
1245 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
1247 * output-file.c (output_file_create): Don't try to open a second
1248 time as it's unnecessary. FOPEN_W was undefined too.
1250 2001-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1252 * config/tc-mips.c (macro_build): Replace magic constants by defines.
1253 (mips_ip): Likewise. Typo.
1255 2001-08-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1257 * config/tc-mips.c (mips_abi_string): Initialize with NULL instead
1259 (RELAX_ENCODE): Replace bfd_vma by valueT.
1260 (load_address): Formatting.
1261 (macro): Likewise. Code cleanup. Typo.
1262 (macro2): Formatting.
1263 (md_parse_option): Typo.
1264 (s_mipsset): Reorder cases to look nicer.
1265 (md_estimate_size_before_relax): Formatting. Code cleanup.
1266 (mips_elf_final_processing): Check against NULL instead of 0.
1267 (md_obj_end): Remove ugly `' in message string.
1268 (s_mips_ent): Remove ugly `' in message string.
1270 2001-07-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1272 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
1273 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
1274 mutually exclusive (if they are different).
1275 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
1278 2001-08-03 Richard Sandiford <rsandifo@redhat.com>
1280 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
1283 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
1285 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
1286 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
1287 (md_long_opts): Add -mfp32 option.
1288 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
1289 (md_show_usage): Show usage for -mfp32 and -mgp32.
1290 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
1291 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
1292 (HAVE_32BIT_ADDRESSES): New macro.
1293 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
1294 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
1295 (s_cprestore, s_cpadd): Likewise.
1296 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
1297 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
1298 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
1299 to determine the width of addresses in load, store and jump macros.
1300 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
1301 used in set instructions; do not check the address size for them.
1302 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
1303 unaligned load and store macros.
1304 (mips_ip): Use the new macros to check the width of a register when
1305 processing float constants. Force a constant into memory if it is
1306 destined for an FPR and the FPRs are wider than the GPRs. Warn about
1307 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
1308 than mips_gp32 to select synthetic instructions.
1309 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
1310 synthetic instructions.
1312 2001-08-01 Christian Groessler <cpg@aladdin.de>
1314 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
1315 "rh", "rr", "rq", or "sp" then don't automatically assume
1316 it's a register name. Check whether there is a number
1319 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1321 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
1322 Don't allocate more space than necessary for the input line copy.
1324 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1326 * read.c: Standardize error/warning messages - don't capitalise, no
1327 final period or newline, don't say "ignored" or "zero assumed" for
1328 as_bad messages. In some cases, change the wording to that used
1329 elsewhere for similar messages.
1332 * atof-generic.c: Likewise.
1335 * depend.c: Likewise.
1336 * dwarf2dbg.c: Likewise.
1337 * ecoff.c: Likewise.
1339 * frags.c: Likewise.
1340 * input-file.c: Likewise.
1341 * input-scrub.c: Likewise.
1342 * listing.c: Likewise.
1343 * output-file.c: Likewise.
1344 * stabs.c: Likewise.
1345 * subsegs.c: Likewise.
1346 * symbols.c: Likewise.
1347 * write.c: Likewise.
1348 * ecoff.c (ecoff_directive_end): Test for missing name by
1349 comparing input line pointers rather than reading string.
1350 (ecoff_directive_ent): Likewise.
1351 * read.c (s_set): Likewise.
1352 (s_align): Report a warning rather than an error for
1353 alignment too large.
1354 (s_comm): Check for missing symbol name.
1355 (s_lcomm_internal): Likewise.
1357 (s_globl): Use is_end_of_line instead of looking for '\n'.
1358 (s_lcomm_internal): Likewise.
1359 (ignore_rest_of_line): Report a warning rather than an error.
1361 2001-07-31 Geoffrey Keating <geoffk@redhat.com>
1363 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
1364 any kind of relocation against a not-loaded section.
1366 2001-07-30 Alan Modra <amodra@bigpond.net.au>
1368 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
1369 to include '@' in symbol names when parsing versioned symbols
1370 rather than calling get_symbol_end multiple times.
1371 * config/tc-i370.c (register_name): Format fixes. Don't call
1372 get_symbol_end after parsing number.
1373 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
1374 code out of conditional.
1375 (address_register_name): Likewise.
1376 (other_register_name): Likewise.
1377 * config/tc-mn10300.c (r_register_name): Likewise.
1378 (xr_register_name): Likewise.
1379 (data_register_name): Likewise.
1380 (address_register_name): Likewise.
1381 (other_register_name): Likewise.
1382 * config/tc-ppc.c (register_name): Likewise.
1383 * config/tc-s390.c (register_name): Likewise.
1385 2001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1387 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
1388 and bra relax: update fragP->fr_fix after the fixup.
1390 2001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
1392 * read.c (s_set): Check for missing symbol name.
1394 2001-07-26 Alan Modra <amodra@bigpond.net.au>
1396 * write.c (relax_segment <rs_space>): Account for fr_fix.
1398 2001-07-25 H.J. Lu <hjl@gnu.org>
1400 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
1401 we treat weak like extern only for ELF.
1402 (mips_fix_adjustable): Make sure we don't adjust extern/weak
1403 symbols only for ELF.
1405 2001-07-25 Chris Demetriou <cgd@broadcom.com>
1407 * config/tc-mips.c: Fix spelling error in comment.
1409 2001-07-25 Dave Brolley <brolley@redhat.com>
1411 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
1412 (IS_PARALLEL_SEPARATOR): New macro.
1413 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
1414 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
1415 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
1416 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
1419 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1421 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
1422 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
1423 Update dependencies with "make dep-am".
1424 * Makefile.in: Regenerate.
1425 * doc/Makefile.in: Regenerate.
1427 2001-07-23 Kazu Hirata <kazu@hxi.com>
1429 * config/tc-alpha.h: Fix formatting.
1430 * config/tc-arc.c: Likewise.
1431 * config/tc-d10v.h: Likewise.
1432 * config/tc-hppa.c: Likewise.
1433 * config/tc-i370.c: Likewise.
1434 * config/tc-i386.h: Likewise.
1435 * config/tc-i960.h: Likewise.
1436 * config/tc-ia64.c: Likewise.
1437 * config/tc-ia64.h: Likewise.
1438 * config/tc-m32r.c: Likewise.
1439 * config/tc-m68k.c: Likewise.
1440 * config/tc-m88k.c: Likewise.
1441 * config/tc-ns32k.c: Likewise.
1442 * config/tc-pdp11.c: Likewise.
1443 * config/tc-pj.h: Likewise.
1444 * config/tc-s390.c: Likewise.
1445 * config/tc-sparc.c: Likewise.
1446 * config/tc-sparc.h: Likewise.
1447 * config/tc-tic80.c: Likewise.
1448 * config/tc-w65.h: Likewise.
1450 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1452 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
1453 symbols specially. Always resolve, adding fr_address to value.
1454 * write.c (write_object_file): Don't add fr_address to sym values.
1455 (relax_frag): Likewise.
1456 (relax_segment): Likewise.
1457 * config/obj-ieee.c (do_symbols): Likewise.
1458 * config/tc-cris.c (md_convert_frag): Likewise.
1459 * config/tc-fr30.c (md_convert_frag): Likewise.
1460 * config/tc-i386.c (md_convert_frag): Likewise.
1461 * config/tc-m32r.c (md_convert_frag): Likewise.
1462 * config/tc-m68hc11.c (md_convert_frag): Likewise.
1463 * config/tc-mcore.c (md_convert_frag): Likewise.
1464 * config/tc-mips.c (mips16_extended_frag): Likewise.
1465 * config/tc-ns32k.c (md_convert_frag): Likewise.
1466 * config/tc-m68k.c (md_convert_frag_1): Likewise.
1467 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
1468 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
1469 (md_relax_table): Remove first four entries. Format.
1470 (md_estimate_size_before_relax): Remove old_fix. Don't bother
1471 setting fr_var. Simplify byte branch checks.
1473 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1475 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
1476 "isbranch" param as all calls have it set.
1477 (pa_parse_neg_cmpsub_cmpltr): Likewise.
1478 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
1479 strcasecmp in "nullify" var.
1480 (pa_parse_neg_add_cmpltr): Likewise.
1481 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
1482 functions. Don't print wrong conditions in error messages.
1484 2001-07-23 Andreas Jaeger <aj@suse.de>
1486 * config/tc-s390.c (s390_force_relocation): Removed.
1488 * config/tc-s390.h: Remove double declaration of
1489 TC_FORCE_RELOCATION.
1491 2001-07-22 H.J. Lu <hjl@gnu.org>
1493 * config/tc-mips.c (s_mips_end): Remove unused variables.
1494 (s_mips_frame): Add ATTRIBUTE_UNUSED.
1496 2001-07-17 Andreas Schwab <schwab@suse.de>
1498 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
1500 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
1502 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1504 2001-07-17 matthew green <mrg@eterna.com.au>
1506 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
1508 (line_comment_chars): Set to '/' if TE_NetBSD.
1510 2001-07-14 matthew green <mrg@eterna.com.au>
1512 * configure.in (i386-*-netbsdelf*): New target.
1513 * configure: Regenerate.
1515 2001-07-10 Mark Elbrecht <snowball3@softhome.net>
1517 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
1518 class of the non-debug symbol is C_NULL.
1520 2001-07-10 Anders Norlander <anorland@synergenix.se>
1522 * doc/as.texinfo (Incbin): Fix grammatical errors.
1524 2001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
1526 * depend.c: Use FOPEN_.. macros in calls to fopen().
1527 * input-file.c: As above.
1528 * itbl-ops.c: As above.
1529 * listing.c: As above.
1530 * output-file.c: As above.
1533 2001-07-08 Anders Norlander <anorland@synergenix.se>
1535 * read.c (s_incbin): New .incbin function.
1536 * read.c (potable): Add "incbin" pseudo-op.
1537 * read.h: Add s_incbin prototype.
1538 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
1539 * NEWS: Mention new feature.
1541 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
1543 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
1546 2001-07-06 John Healy <jhealy@redhat.com>
1548 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
1549 set of fixups to be stored.
1550 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
1551 restored to be chosen from any that are saved.
1552 (gas_cgen_swap_fixups): Modified to allow the current set of
1553 fixups to be swapped with any other set that has been saved.
1554 (gas_cgen_initialize_saved_fixups_array): New routine.
1555 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
1556 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
1557 or MAX_SAVED_FIXUP_CHAINS.
1558 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
1559 store, swap and restore fuctions to reflect the new interface.
1561 2001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
1563 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
1564 ignore empty, ineffectual alignment frags when deciding if a
1565 branch can be short.
1567 2001-07-05 Steve Ellcey <sje@cup.hp.com>
1569 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
1570 and SPECIAL_SECTION_FINI_ARRAY.
1571 (special_section_name): Add .init_array and .fini_array.
1572 (md_pseudo_table): Add init_array and fini_array.
1573 (md): Add pointer_size and pointer_size_shift fields.
1574 (setup_unwind_header): New static function.
1575 (output_unw_records): Modify to use setup_unwind_header.
1576 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
1577 md.pointer_size_shift.
1578 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
1580 2001-07-05 Ben Elliston <bje@redhat.com>
1582 * README (Supported platforms): m88k no longer suffers bitrot.
1584 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
1586 2001-07-05 Alan Modra <amodra@bigpond.net.au>
1588 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
1589 lsy_value. Correct typos in comments.
1590 * symbols.c (local_symbol_make): Update for name change.
1591 (local_symbol_convert): Likewise.
1593 (S_GET_VALUE): Likewise.
1594 (S_SET_VALUE): Likewise.
1595 (print_symbol_value_1): Likewise.
1596 (resolve_symbol_value): Likewise. Don't divide local sym values
1597 by OCTETS_PER_BYTE twice.
1599 2001-07-04 Jim Wilson <wilson@redhat.com>
1601 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
1603 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
1606 2001-07-05 Ben Elliston <bje@redhat.com>
1608 * read.c (s_fill): Correct spelling error in comments.
1610 * doc/c-m88k.texi: New file.
1611 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
1612 * doc/Makefile.in: Regenerate.
1613 * doc/all.texi: Set M880X0.
1614 * doc/as.texinfo: Hook in m88k-dependent documentation.
1616 2001-07-04 Eric Christopher <echristo@redhat.com>
1618 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
1620 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
1621 and rm5721 as valid cpu strings.
1622 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
1624 2001-07-04 Richard Sandiford <rsandifo@redhat.com>
1626 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
1627 if it's expected to be non-zero.
1629 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1631 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
1634 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
1635 (write_object_file): Set finalize_syms to
1636 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
1639 * doc/internals.texi; Document
1640 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
1642 2001-07-02 Alan Modra <amodra@bigpond.net.au>
1644 * config/tc-ppc.c: Formatting fixes.
1646 2001-07-01 Ben Elliston <bje@redhat.com>
1648 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
1649 they cause some subtle breakage. Will fix them again later.
1651 2001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
1653 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
1654 outside of a function as a .appline directive.
1656 2001-06-28 Eric Christopher <echristo@redhat.com>
1657 H.J. Lu <hjl@gnu.org>
1659 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
1660 of mips_cpu for the ISA selection.
1661 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
1662 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
1663 (mips_tune): New. Use mips_tune for scheduling and optimization
1665 (append_insn): Use mips_tune and mips_arch.
1666 (macro_build): Ditto.
1668 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
1669 backwards compatability mips_cpu generates arch and tune.
1670 (md_show_usage): Document new behavior.
1672 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
1677 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
1679 * write.c (write_object_file): Do not set finalize_syms until
1680 after the segments have been sized. Some backends may still
1681 need to access the syms's frags in order to adjust relaxed
1684 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
1687 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1689 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
1690 subtract MD_PCREL_FROM_SECTION for 68k.
1691 (fixup_segment <Difference of 2 syms different seg>): Only fudge
1692 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
1694 2001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
1696 * write.c (fixup_segment <Difference of 2 syms same seg>): If
1697 pcrel, subtract MD_PCREL_FROM_SECTION value.
1699 2001-06-24 Ben Elliston <bje@redhat.com>
1701 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
1703 2001-06-24 Jakub Jelinek <jakub@redhat.com>
1705 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
1706 section symbols the same way as externs.
1708 2001-06-24 Ben Elliston <bje@redhat.com>
1710 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
1711 (emit_relocations): Ditto.
1713 (md_begin): Reformat comments to conform to the GNU standards.
1714 (md_assemble): Ditto.
1716 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
1717 (md_parse_option): Mark parameters as unused.
1718 (md_show_usage): Ditto.
1719 (calcop): Adjust type of `reg_prefix' to char.
1721 (getval): Adjust type of local `c' to char.
1722 (md_create_short_jump): Mark from_addr, to_addr params as unused.
1723 (md_create_long_jump): Ditto.
1724 (md_estimate_size_before_relax): Mark parameters as unused.
1726 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
1727 to allay a possible compiler warning.
1729 2001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
1731 * doc/internals.texi (CPU backend): Document md_atof.
1733 2001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
1735 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
1736 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
1739 2001-06-21 Philip Blundell <philb@gnu.org>
1741 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
1743 (insns): Remove entry for adrl. Add long_flag for adr.
1744 (do_adr): Handle `l' suffix.
1747 2001-06-21 Alan Modra <amodra@bigpond.net.au>
1749 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
1750 (md_apply_fix): Use it here. Replace printf with equivalent
1752 (tc_gen_reloc): Use as_bad_where instead of as_bad.
1753 (md_apply_fix): Here too.
1754 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
1755 * config/tc-m68k.c (tc_gen_reloc): Likewise.
1756 (md_convert_frag_1): Likewise.
1758 2000-06-20 Tom Rix <trix@redhat.com>
1760 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
1762 2001-06-18 H.J. Lu <hjl@gnu.org>
1764 * doc/Makefile.am (info): Depend on $(MANS).
1765 (as.1): Remove the prefix `$(srcdir)/'.
1766 * doc/Makefile.in: Regenerated.
1770 2001-06-18 Philip Blundell <philb@gnu.org>
1772 * config/tc-arm.c (do_msr): Remove restriction on usage of
1775 2001-06-19 Alan Modra <amodra@bigpond.net.au>
1777 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
1780 2001-06-13 Philip Blundell <philb@gnu.org>
1782 * config/tc-arm.c (thumb_shift): Improve wording of error message.
1783 (do_t_arit): Likewise.
1785 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1787 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
1788 .loc pseudos if the dfwarf2 functions are available.
1789 (md_assemble): Only call dwarf2_emit_insn if it is available.
1791 * expr.c: Fix typo in comment.
1793 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1795 * doc/as.texinfo (Infix Ops): Document that comparison and
1796 combiner operators can be used as infix operators.
1798 2001-06-12 Peter Jakubek <pjak@snafu.de>
1800 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
1802 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
1803 (reverse_mri_condition): Likewise.
1804 (swap_mri_condition): Issue warning for conditions that can not be
1806 (build_mri_control_operand): Fix order of operands (swapped).
1807 (build_mri_control_operand): Allow upper case extension in structured
1809 (s_mri_else): Likewise.
1810 (s_mri_next): Likewise.
1811 (s_mri_for): Likewise.
1812 (s_mri_if): Fix handling comment ('*') in mri mode.
1813 (s_mri_while): Likewise.
1814 * macro.c (macro_expand): Allow macro invocation with empty
1817 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1819 * config/tc-arm.c: Fix test for overlow of literal pool.
1821 2001-06-11 H.J. Lu <hjl@gnu.org>
1823 * NEWS: Updated for the new -n option for the MIPS assembler.
1825 * config/tc-mips.c (md_show_usage): Add -n.
1827 * doc/as.texinfo: Document the new -n option.
1828 * doc/c-mips.texi: Likewise.
1829 * doc/as.1: Regenerated.
1831 2001-06-10 Alan Modra <amodra@bigpond.net.au>
1833 * config/obj-coff.c (obj_coff_section): Formatting fix.
1835 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
1838 2001-06-08 H.J. Lu <hjl@gnu.org>
1840 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
1841 disable warning about all NOPS that the assembler generates.
1842 (macro): Warn NOPS generated only if warn_nops is not 0.
1843 (md_shortopts): Add `n'.
1844 (md_parse_option): Set warn_nops to 1 for `n'.
1846 2001-06-08 H.J. Lu <hjl@gnu.org>
1848 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
1850 2001-06-08 H.J. Lu <hjl@gnu.org>
1852 * config/tc-mips.c (md_apply_fix): Don't adjust common
1853 extern/weak symbols for ELF.
1854 (md_estimate_size_before_relax): Treat weak like extern for
1856 (mips_fix_adjustable): Don't adjust extern/weak symbols for
1859 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1861 * Makefile.am: 'som' is not wrongly spelled 'some'.
1862 * Makefile.in: Regenerate.
1864 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
1865 S_GET_VALUE by using a temp.
1866 (append_insn): Likewise, and for S_SET_VALUE too.
1867 (mips_emit_delays): Likewise.
1868 (my_getExpression): Likewise.
1869 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
1870 (mips16_extended_frag): Remove code concerned with avoiding
1871 locking in a frag address now that symbols are not finalized until
1872 relaxation is complete. Cater for first relaxation pass having
1873 bogus addresses. Use relax_marker to reliably determine whether a
1874 symbol frag has been reached on the current pass.
1876 2001-06-07 H.J. Lu <hjl@gnu.org>
1878 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
1879 * configure: Regenerate.
1881 2001-06-07 H.J. Lu <hjl@gnu.org>
1883 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
1885 * configure: Regenerate.
1887 2001-06-07 H.J. Lu <hjl@gnu.org>
1889 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
1890 MIPS_STABS_ELF is defined.
1892 2001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
1894 * as.c (show_usage): Remove L from listing options. It is not a
1897 2001-06-06 Christian Groessler <cpg@aladdin.de>
1899 * config/tc-z8k.c: Removed many warnings by removing unused
1900 variables and tagging unused parameters as such.
1901 (md_begin): Fixed a typo (","instead of ";").
1902 (struct ctrl_table): Add parentheses to initialize array
1904 (struct flag_table): Likewise.
1905 (struct intr_table): Likewise.
1906 (struct table): Likewise.
1907 (check_operand): "#if 0"'ed since it doesn't seem to be used.
1909 2001-06-06 Peter Jakubek <pjak@snafu.de>
1911 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
1912 options to list (e.g. m5206e, m5307, m5407).
1914 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1916 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
1917 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
1919 2001-06-06 Alan Modra <amodra@bigpond.net.au>
1921 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
1922 <JumpByte, JumpDword insn output>: Remove dead code.
1924 2001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
1926 * as.c (parse_args): Correct option name "listing-lhs-width2".
1928 2001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
1930 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
1933 2001-05-30 Richard Henderson <rth@redhat.com>
1935 * read.c (emit_leb128_expr): Call md_cons_align.
1937 2001-05-28 Jeff Sturm <jsturm@one-point.com>
1939 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
1940 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
1941 (tc_gen_reloc): Likewise.
1942 (sparc_cons_align): Don't clear sparc_no_align_cons.
1943 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
1944 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
1946 2001-05-27 Alan Modra <amodra@one.net.au>
1948 * write.c (relax_segment <rs_space>): Check the section of a
1949 symbol to determine whether it is absolute rather than comparing
1950 its frag against zero_address_frag as listings play tricks with
1953 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
1954 allocated in the same chunk as the fixed part.
1956 2001-05-26 Alan Modra <amodra@one.net.au>
1958 * write.c (relax_segment <rs_space>): Calculate growth using
1959 addresses before stretch. Prevent repeated error messages.
1960 From Peter Jakubek <pjak@snafu.de>
1961 Use as_bad_where and as_warn_where to pinpoint errors.
1963 2001-05-25 Alan Modra <amodra@one.net.au>
1965 * symbols.c (resolve_symbol_value): Always set segment, even when
1966 not finalizing symbol value.
1968 * config/obj-ieee.c (write_object_file): Set finalize_syms.
1969 * config/obj-coff.c (write_object_file): Likewise.
1970 * (size_section): Remove rs_space assert as fr_symbol is no longer
1972 (fill_section): Likewise.
1974 * configure.in: Replace linuxoldld with linux*oldld.
1975 * configure: Regenerate.
1977 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
1978 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
1979 that have been finalized.
1981 * symbols.c (resolve_symbol_value): Clear sy_resolving before
1982 taking exit_dont_set_value.
1984 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
1987 2000-05-24 Tom Rix <trix@redhat.com>
1989 * config/obj-coff.c (add_lineno): xcoff allows negative line
1991 * config/tc-ppc.c (ppc_stabx): fix generated symbol
1993 2001-05-24 Alan Modra <amodra@one.net.au>
1995 * write.c (write_object_file): Set finalize_syms = 1 before
1998 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2000 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
2001 architecture, remove erraneous ISA_MIPS32.
2002 (md_show_usage): Add MIPS r12k support.
2003 (mips_cpu_info_table): Add MIPS r12k support.
2005 2001-05-22 Alan Modra <amodra@one.net.au>
2007 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
2010 * symbols.c (resolve_symbol_value): Remove "finalize" param,
2011 instead use finalize_syms directly. Don't treat expressions
2012 specially with regard to finalize_syms. Update calls to self.
2013 (resolve_local_symbol): Update call to resolve_symbol_value.
2014 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
2016 * symbols.h (resolve_symbol_value): Update prototype.
2017 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
2018 to resolve_symbol_value.
2019 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2020 * config/obj-coff.c (do_relocs_for): Likewise.
2021 (yank_symbols): Likewise.
2022 (fixup_segment): Likewise.
2023 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2024 * config/tc-mips.c (md_convert_frag): Likewise.
2025 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2026 (ppc_fix_adjustable): Likewise.
2027 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
2028 (dwarf2dbg_convert_frag): Likewise.
2029 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
2030 (eh_frame_convert_frag): Likewise.
2031 * expr.c (make_expr_symbol): Likewise.
2032 * write.c (adjust_reloc_syms): Likewise.
2033 (write_object_file): Likewise.
2034 (relax_segment): Likewise.
2035 (fixup_segment): Likewise.
2036 (finalize_syms): Init to zero, and update comment.
2037 (write_object_file): Set finalize_syms to 1 rather than 2.
2038 * doc/internals.texi (sy_value): Mention finalize_syms.
2039 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2041 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
2042 as relaxable if embedded system, make weak syms non-relaxable.
2044 (tc_m68k_fix_adjustable): ..so it can be used here.
2045 (md_apply_fix_2): Sign extend without conditional.
2047 * config/tc-v850.c: Update copyright.
2049 2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
2051 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
2052 howto entry is not found.
2054 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2056 * config/tc-mn10300.c (mn10300_force_relocation): Don't
2057 optimize differences between symbols in code sections to
2059 (mn10300_fix_adjustable): Don't adjust to section+offset
2060 relocations pointing at symbols in code sections.
2062 2001-05-16 Alan Modra <amodra@one.net.au>
2064 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
2066 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
2067 opcodes are output rather than after. Delete insn_size.
2068 * config/tc-v850.c (md_assemble): Similarly, but delete
2071 2001-05-14 Richard Henderson <rth@redhat.com>
2073 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
2076 2001-05-14 Richard Henderson <rth@redhat.com>
2078 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
2079 also collect whether to expect an FDE augmentation.
2080 (check_eh_frame): Rewrite as a state machine. Track where in
2081 an FDE we are located, skip any augmentation.
2082 (eh_frame_estimate_size_before_relax): Get code alignment from
2083 the fragment subtype.
2084 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
2085 * read.c (emit_leb128_expr): Call check_eh_frame.
2087 2001-05-14 Alexandre Oliva <aoliva@redhat.com>
2089 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
2090 before a relaxable insns.
2092 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2094 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
2095 between symbols if the base symbol is in the current section;
2096 emit a PC-relative relocation instead.
2098 2001-05-12 Peter Targett <peter.targett@arccores.com>
2100 * config/tc-arc.c: Update copyright and tidy source comments.
2101 (md_pseudo_table): Add directive .cpu back as an alias for
2102 .option. Add .file and .line for dwarf2 support.
2103 (arc_mach_type): Make bfd_mach_arc_6 default.
2104 (md_longopts): Add entry 'pre-v6' representing old command line
2105 option when assembling for 'arc5' core versions.
2106 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
2108 (arc_code_symbol): Make symbol value for @h30 fixup expression
2109 equal to O_constant.
2110 (md_assemble): Call dwarf2_emit_insn.
2111 Include "dwarf2dbg2.h". Formatting fixes throughout file.
2112 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2113 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
2115 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2117 * config/tc-ia64.c (special_linkonce_name): New.
2118 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
2119 .gnu.linkonce.ia64unw{,i}.FOO.
2120 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
2121 (dot_endp): Add comment about it.
2123 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2125 * config/tc-arm.c (arm_handle_align): When truncating an aligned
2126 block, ensure that the low order bits of the alignment are
2129 2001-05-10 Alan Modra <amodra@one.net.au>
2131 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
2134 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
2135 current variable part of frag.
2136 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
2137 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
2138 * config/tc-m68hc11.c (RELAX_STATE): Define.
2139 (RELAX_LENGTH): Define.
2140 (md_estimate_size_before_relax): Handle non-relaxable cases
2141 separately from relaxable cases for clarity, and return correct
2142 size for multi-pass relaxation.
2143 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
2144 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2145 (md_convert_frag): Remove "length_code".
2146 * config/tc-vax.c (RELAX_STATE): Define.
2147 (RELAX_LENGTH): Define.
2148 (md_relax_table): Add missing entry.
2149 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2150 (md_convert_frag): Remove "length_code".
2151 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
2152 don't bother setting fr_var. Return correct size for multi-pass
2154 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
2155 (md_convert_frag): Don't bother clearing fr_var.
2156 (md_pseudo_table): Correct initialization.
2157 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
2158 (md_estimate_size_before_relax): No need to set fr_var.
2159 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
2160 (md_estimate_size_before_relax): No need to set fr_var.
2162 2001-05-09 Richard Henderson <rth@redhat.com>
2164 * config/tc-ia64.c (generate_unwind_image): Align the fragment
2165 beginning a function's unwind info block.
2167 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2169 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
2171 2001-05-08 Andreas Schwab <schwab@suse.de>
2173 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
2174 fx_pcrel_adjust explicitly sign extend when reading it.
2176 2001-05-08 Alan Modra <amodra@one.net.au>
2178 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
2179 from md_relax_table, and combine some switch cases.
2181 2001-05-06 Alexandre Oliva <aoliva@redhat.com>
2183 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
2184 from offset in non-pcrel operands too.
2186 2001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2188 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
2189 * config/tc-arm.c (arm_handle_align): Do not insert more than
2190 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
2191 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
2193 2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2195 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
2197 * Makefile.in: Regenerate.
2198 * configure.in: Remove duplicate mips-*-ecoff* entry.
2199 * configure: Regenerate.
2201 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
2202 (n_names): Cast away type mismatch.
2203 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
2204 (obj_ecoff_frob_symbol): Likewise.
2205 * ecoff.c: (add_file): Add unused attribute.
2206 (ecoff_directive_begin): Likewise.
2207 (ecoff_directive_bend): Likewise.
2208 (ecoff_directive_def): Likewise.
2209 (ecoff_directive_dim): Likewise.
2210 (ecoff_directive_scl): Likewise.
2211 (ecoff_directive_size): Likewise.
2212 (ecoff_directive_type): Likewise.
2213 (ecoff_directive_tag): Likewise.
2214 (ecoff_directive_val): Likewise.
2215 (ecoff_directive_endef): Likewise.
2216 (ecoff_directive_end): Likewise.
2217 (ecoff_directive_ent): Likewise.
2218 (ecoff_directive_extern): Likewise.
2219 (ecoff_directive_file): Likewise.
2220 (ecoff_directive_fmask): Likewise.
2221 (ecoff_directive_frame): Likewise.
2222 (ecoff_directive_mask): Likewise.
2223 (ecoff_directive_loc): Likewise.
2224 (mark_stabs): Likewise.
2225 (ecoff_stab): Likewise.
2226 (ecoff_frob_symbol): Cast away type mismatch.
2227 (ecoff_padding_adjust): Likewise.
2228 (ecoff_build_symbols): Likewise.
2229 (ecoff_build_procs): Likewise.
2230 (ecoff_build_aux): Likewise.
2231 (ecoff_build_strings): Likewise.
2232 (ecoff_build_fdr): Likewise.
2233 (ecoff_build_debug): Likewise.
2234 * itbl-ops.c (itbl_assemble): Variable initialization.
2236 2001-05-03 Alan Modra <amodra@one.net.au>
2238 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
2239 expressions rather than triggering an assert.
2241 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2243 * config/tc-openrisc.c: New file.
2244 * config/tc-openrisc.h: Likewise.
2246 * Makefile.am: Add OpenRISC target.
2247 * Makefile.in: Regenerated.
2249 * configure.in (openrisc-*-*): Add target.
2250 * configure: Regenerated.
2252 2001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2254 * config/tc-arm.c (arm_frag_align_code): Change error message to
2255 more explanatory version.
2257 2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
2259 * config/tc-mips.c (md_parse_option): Also accept
2260 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
2262 2001-04-27 David Mosberger <davidm@hpl.hp.com>
2264 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
2265 argument passing order: predicate goes last, not first.
2267 2001-04-27 Sean McNeil <sean@mcneil.com>
2269 * configure.in: Add arm-vxworks.
2270 * configure: Regenerate.
2272 2001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
2274 * config/tc-arm.c (arm_handle_align): New Function: Generate
2275 no-op filled alignment frags.
2276 (arm_frag_align_code): New Function: Create a code alignment frag.
2277 (arm_init_frag): New Function: Initialse the target dependent
2280 * config/tc-arm.h (TC_FRAG_TYPE): Define.
2281 (TC_FRAG_INIT): Define.
2282 (HANDLE_ALIGN): Define.
2283 (md_do_align): Define.
2285 2001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
2287 * config/obj-coff.c (do_linenos_for): Check to see if the filename
2288 symbol has been initialised before extracting its symbol index.
2290 2001-04-24 H.J. Lu <hjl@gnu.org>
2292 * configure: Regenerated with the right version of autoconf.
2294 2001-04-24 Christian Groessler <cpg@aladdin.de>
2296 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
2297 generate R_CALLR and R_REL16 relocations
2299 2000-04-20 Jason Eckhardt <jle@redhat.com>
2301 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
2302 since frag_now can change after d10v_cleanup is called.
2304 2001-04-16 David O'Brien <obrien@FreeBSD.org>
2306 * configure.in: Add the em type for FreeBSD targets.
2307 * configure: Regenerate.
2309 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2311 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
2312 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
2314 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
2315 pc-relative relocations not placed at the end of the instruction.
2317 2001-04-13 Jim Wilson <wilson@redhat.com>
2319 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
2322 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2324 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
2325 handle SHF_MERGE and SHF_STRINGS.
2326 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
2327 (obj_elf_section): Allow additional argument specifying entity size.
2328 * write.c (adjust_reloc_syms): Keep relocations against local symbols
2329 in SEC_MERGE sections.
2331 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
2333 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
2335 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2337 * expr.c (operand): Pass &c to md_parse_name().
2338 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
2340 2001-04-07 Steven J. Hill <sjhill@cotw.com>
2342 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
2344 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
2345 * Makefile.in: Regenerated.
2347 * configure.in: Use traditional MIPS targets for Linux/MIPS.
2348 * configure: Regenerated.
2350 2001-04-06 Alexandre Oliva <aoliva@redhat.com>
2352 * config/tc-mn10300.c (xr_registers): Added `pc'.
2354 2001-04-05 Alan Modra <alan@linuxcare.com.au>
2356 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
2357 * configure: Regenerate.
2359 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
2360 cases, and always return size based on current fr_subtype.
2361 (md_begin): Move initialization of md_relax_table..
2362 (md_relax_table): ..to static initializer. Set rlx_length for
2363 UNDEF_WORD_DISP cases.
2364 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2365 (md_begin): Likewise.
2366 (md_relax_table): Likewise.
2367 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
2368 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2369 Set rlx_backward and rlx_forward to zero for unused states.
2370 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
2371 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2372 (UNCOND12, UNCOND32): Remove duplicate defines.
2374 2001-04-04 Hans-Peter Nilsson <hp@axis.com>
2376 * config/tc-cris.c (md_estimate_size_before_relax) <case
2377 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
2378 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
2379 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
2380 Add cases to cover all relax states.
2381 (cris_insn_first_word_frag): New.
2382 (md_assemble): Call cris_insn_first_word_frag to get the first
2383 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
2384 end. Drop variable insn_size.
2385 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
2386 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
2387 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
2389 * write.c (write_object_file): Reset broken word state before
2392 2001-03-31 Alan Modra <alan@linuxcare.com.au>
2394 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
2395 for one line if not already enabled.
2396 * cond.c (s_elseif): Correct conditional assembly listing.
2399 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
2400 Don't abort on NULL current_cframe.
2402 2001-03-30 Alan Modra <alan@linuxcare.com.au>
2404 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
2405 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
2406 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
2407 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2408 * config/obj-coff.c (do_relocs_for): Likewise.
2409 (yank_symbols): Likewise.
2410 (fixup_segment): Likewise.
2411 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2412 (ppc_fix_adjustable): Likewise.
2413 * config/tc-mips.c (md_convert_frag): Likewise.
2414 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2415 * ehopt.c (eh_frame_convert_frag): Likewise.
2416 * expr.c (make_expr_symbol): Likewise.
2418 * frags.h (struct frag): Add last_fr_address. Reorder fields for
2420 * symbols.c (resolve_symbol_value): Don't fix expression values
2421 until relaxation is complete.
2422 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
2423 (S_GET_VALUE): Likewise, and return unresolved expression value.
2424 * write.c (finalize_syms): New.
2425 (relax_and_size_seg): Split into..
2426 (relax_seg): New function, returns 1 if anything changed..
2427 (size_seg): And the remainder of relax_and_size_seg.
2428 (fixup_segment): Arrange for final resolution of sym values.
2429 (adjust_reloc_syms): Likewise.
2430 (write_object_file): Likewise, and repeatedly call relax_seg until
2431 nothing more changes.
2432 (relax_segment): Return 1 if anything changed. Use correct types
2433 for rs_org `target' and `after'.
2434 * write.h (finalize_syms): Declare.
2435 (relax_segment): Update prototype.
2437 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
2438 do-nothing cases to switch to avoid abort on a second relaxation
2439 pass, and tidy code a little.
2440 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
2441 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
2442 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2443 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
2444 (md_relax_table): Remove first four unused entries. Increment
2445 rlx_length by one throughout table, and update comments to suit.
2446 (md_estimate_size_before_relax): Return size of current variable
2447 part of frag to reflect reality when relaxing more than once.
2448 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
2449 (COND32, UNCD32): Rename to DISP32 throughout.
2450 (UNDEF_WORD_DISP): Renumber to 3.
2451 (md_estimate_size_before_relax): Add extra do-nothing cases.
2452 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
2453 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
2454 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
2455 handle word and dword branches.
2457 2001-03-29 Hans-Peter Nilsson <hp@axis.com>
2459 * config/tc-cris.h (tc_fix_adjustable): Allow only
2460 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
2461 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
2462 example in comment to valid type.
2464 2001-03-28 H.J. Lu <hjl@gnu.org>
2466 * read.c (equals): Set to local for COFF only if it hasn't been
2469 2001-03-28 Alan Modra <alan@linuxcare.com.au>
2471 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
2472 (md_begin): Use it when setting default architecture.
2474 2001-03-27 Nick Papadonis <nick@coelacanth.com>
2476 * read.c (equals): (for COFF) default symbols to being local.
2478 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2480 * configure.in (cris-*-*): Change default emulation to criself.
2481 (cris-*-*aout*): New rule.
2482 * configure: Regenerate.
2484 2001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
2486 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
2487 BFD_RELOC_390_GOTENT.
2488 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
2489 BFD_RELOC_390_GOTENT.
2491 2001-03-26 Nick Clifton <nickc@redhat.com>
2493 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
2494 * config/tc-s390.c (s390_force_relocation): New function: Force
2495 relocations for VTINHERIT relocs.
2497 2001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2499 * doc/as.texinfo: Put @c man begin to generate the as man page.
2500 When generating man, define all the variables. Re-organize some
2501 options to obtain better indentation of man page.
2502 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2503 (as.1): Build from as.texinfo.
2504 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
2506 2001-03-25 Alan Modra <alan@linuxcare.com.au>
2508 * config/tc-i386.c (i386_scale): Accept an absolute expression for
2509 scale factor, and return the end of the expression.
2510 (i386_operand): Modify for above.
2512 2001-03-23 Nick Clifton <nickc@redhat.com>
2514 * doc/as.texinfo: Document --listing-XXX command line switches.
2515 Explain why listings behave differently when -pipe is used.
2517 2001-03-23 Richard Sandiford <rsandifo@redhat.com>
2519 * write.c (fix_new_exp): Print an error if passed a register.
2521 2001-03-23 Hans-Peter Nilsson <hp@axis.com>
2523 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
2524 (PIC_SUFFIX_CHAR): New macro.
2525 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
2526 (pic): New variable.
2527 (md_longopts): New option --pic.
2528 (OPTION_PIC): Define.
2529 (md_estimate_size_before_relax): Tweak longish comment.
2530 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
2531 (md_assemble): Handle a PIC relocation on prefix and normal
2532 instruction operands.
2533 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
2534 "complex" operand expressions. Call frag_more outside
2535 gen_cond_branch_32 parameter list.
2536 (cris_process_instruction): Handle PIC relocs on parsed
2537 operand expressions. Validize PIC reloc sizes.
2538 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
2539 (gen_bdap): Handle "complex" operand expressions.
2540 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
2541 ADD.D offset,PC as jump instruction if generating PIC. Generate
2542 error instead of crashing on complex expressions.
2543 (cris_number_to_imm): Add segT parameter. All callers changed.
2544 Use segT parameter, not now_seg, for segment of fixup. Handle
2545 PCREL relocations but check that they are fully resolved.
2546 (md_parse_option): Handle OPTION_PIC.
2547 (tc_gen_reloc): Handle PIC relocs.
2548 (md_show_usage): Update for --pic.
2549 (md_apply_fix3): Renamed from md_apply_fix.
2550 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
2551 (md_cris_force_relocation): Force relocation for PIC relocs.
2553 * config/tc-cris.h: Tweak attribution.
2554 (MD_APPLY_FIX3): Define.
2555 (IS_CRIS_PIC_RELOC): New macro.
2556 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2557 (tc_fix_adjustable): Don't adjust a globally visible symbol when
2559 (tc_frob_symbol): Avoid emitting undefined symbols.
2561 2001-03-20 Alan Modra <alan@linuxcare.com.au>
2563 * frags.h (struct frag): Add relax_marker.
2564 * write.c (is_dnrange): Delete.
2565 (relax_frag): Use correct types for `aim', `target', `address'.
2566 Delete `offset', `was_address'. Test `relax_marker' instead of
2567 using fragile (and slow) address test.
2568 (relax_segment): Init and flip `relax_marker'.
2570 2001-03-19 Alan Modra <alan@linuxcare.com.au>
2572 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
2575 2001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2577 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
2578 with 'Motorola specification for assembly language input standard'.
2580 2001-03-17 Richard Henderson <rth@redhat.com>
2582 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
2583 (dwarf2_directive_loc): Don't use them.
2584 (dwarf2_directive_file): Reject duplicate file definitions.
2585 (get_filenum): Zero allocated memory.
2586 (out_file_list): Complain about missing file definitions.
2588 2001-03-17 Alan Modra <alan@linuxcare.com.au>
2590 * read.c (do_org): Handle complex expressions.
2591 * cgen.c (gas_cgen_finish_insn): Likewise.
2593 2001-03-15 David Mosberger <davidm@hpl.hp.com>
2595 * config/tc-ia64.c (md): New member keep_pending_output.
2596 (ia64_flush_pending_output): Flush only if md.keep_pending_output
2598 (dot_xdata): Turn on md.keep_pending_output for the duration of
2600 (dot_xfloat_cons): Ditto.
2601 (dot_xstringer): Ditto.
2602 (dot_xdata_ua): Ditto.
2603 (dot_xfloat_cons_ua): Ditto.
2605 2001-03-15 Jim Wilson <wilson@redhat.com>
2607 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
2610 2001-03-15 Alexandre Oliva <aoliva@redhat.com>
2612 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
2614 2001-03-15 DJ Delorie <dj@redhat.com>
2616 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
2617 blindly freeing string if it isn't at the top of the obstack.
2619 2001-03-13 Alan Modra <alan@linuxcare.com.au>
2621 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
2622 (NUM_FLAG_CODE): Define.
2623 (lex_got): New function.
2624 (got_reloc): New global var.
2625 (x86_cons_fix_new): New function.
2626 (x86_cons): New function.
2627 (i386_immediate): Use lex_got here, replacing inline code. Change
2628 "ignoring junk.." error message to "junk.."
2629 (i386_displacement): Likewise.
2630 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
2631 (x86_cons): Declare.
2632 (TC_CONS_FIX_NEW): Define.
2633 (x86_cons_fix_new): Declare.
2635 2001-03-12 Nick Clifton <nickc@redhat.com>
2637 * config/tc-arm.c (md_begin): Always set machine type based on
2640 2001-03-07 Alan Modra <alan@linuxcare.com.au>
2642 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
2643 (md_assemble) <smallest displacement>: Use correct field of i.op[]
2645 <JumpInterSegment output>: Use correct i.disp_reloc[].
2646 <immediate output>: Likewise.
2648 2001-03-06 Nick Clifton <nickc@redhat.com>
2650 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
2653 2001-03-06 Igor Shevlyakov <igor@windriver.com>
2655 * config/tc-m68k.c : Add 5407 to archs[] table.
2656 (HAVE_LONG_BRANCH): Add mcf5407.
2657 (select_control_regs): Recognize 5407.
2659 2001-03-02 Dave Brolley <brolley@redhat.com>
2661 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
2664 2001-03-02 Richard Sandiford <rsandifo@redhat.com>
2666 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
2667 (gen_to_words): Print warnings if NaNs are found and the target CPU
2668 does not support them. Allow largest exponent to be used in normal
2669 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
2671 2001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
2673 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
2674 anymore since we use bfd_elf_generic_reloc now.
2675 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
2677 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2679 * configure.in (BFD_VERSION): New.
2680 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2681 * configure: Regenerate.
2682 * Makefile.am: Run "make dep-am"
2683 * Makefile.in: Regenerate.
2684 * doc/Makefile.in: Regenerate.
2686 2001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
2688 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
2689 SEC_NEVER_LOAD when the 'n' flag is used.
2690 Add SEC_NEVER_LOAD to matchflags.
2692 2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2694 * symbols.c (decode_local_label_name): Initialize message_format
2695 only when an error is reported (perf pb due to I18N).
2697 2001-02-23 H.J. Lu <hjl@gnu.org>
2699 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
2700 BFD_ASSEMBLER is not defined.
2702 2001-02-23 Richard Sandiford <rsandifo@redhat.com>
2704 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
2705 done if it's against a symbol.
2707 2001-02-22 Timothy Wall <twall@cygnus.com>
2709 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
2710 target formats if applicable.
2711 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
2712 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
2713 * Makefile.in: Regenerated.
2714 * configure.in: Added configuration for ia64-*-aix*.
2715 * configure: Regenerated.
2717 2001-02-21 David Mosberger <davidm@hpl.hp.com>
2719 * config/tc-ia64.c (enum operand_match_result): New type.
2720 (operand_match): Change return type to operand_match_result.
2721 Fix all returns appropriately, adding support for returning the
2722 out-of-range result.
2723 (parse_operands): New locals result, error_pos, out_of_range_pos,
2724 curr_out_of_range_pos. Rewrite operand matching loop to give better
2727 2001-02-21 David Mosberger <davidm@hpl.hp.com>
2729 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
2730 (dot_proc): Clear unwind.prologue_count to zero.
2731 (dot_prologue): Increment unwind.prologue_count.
2732 (dot_restore): If second operand is omitted, use
2733 unwind.prologue_count -1 for "ecount" (# of additional regions to
2734 pop). Decrement unwind.prologue_count by number of regions
2737 2001-02-21 Nick Clifton <nickc@redhat.com>
2739 * doc/as.texinfo (Section): Note that some flags to the COFF
2740 version of .section remove attributes rather than setting them.
2742 2001-02-20 Kazu Hirata <kazu@hxi.com>
2744 * config/tc-pdp11.c: Fix formatting.
2745 * config/tc-pdp11.h: Likewise.
2747 2001-02-20 Bo Thorsen <bo@suse.de>
2749 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
2752 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2754 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
2755 all FreeBSD platforms should look the same at this level.
2756 * configure: Rebuilt.
2757 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
2759 2001-02-18 lars brinkhoff <lars@nocrew.org>
2761 * Makefile.am: Add PDP-11 target.
2762 * configure.in: Likewise.
2763 * config/tc-pdp11.c: New file.
2764 * config/tc-pdp11.h: New file.
2765 * doc/Makefile.am: Add PDP-11 documentation.
2766 * doc/all.texi: Likewise.
2767 * doc/as.texinfo: Likewise.
2768 * doc/c-pdp11.texi: New file.
2770 2001-02-16 matthew green <mrg@redhat.com>
2772 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
2774 2001-02-13 Jim Wilson <wilson@redhat.com>
2776 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
2777 reloc instead of a 0 reloc.
2778 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
2780 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
2782 2001-02-13 Ian Lance Taylor <ian@zembu.com>
2784 * write.c (is_dnrange): Stop as soon as the address becomes
2786 (relax_frag): Add segment parameter. Only call symbol_get_frag
2787 once. Only call is_dnrange if the symbol is in the same segment,
2788 and the symbol address is larger.
2789 (relax_segment): Pass segment to md_relax_frag and relax_frag.
2790 * write.h (relax_frag): Update declaration.
2791 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
2793 * config/tc-m32r.c (m32r_relax_frag): Likewise.
2794 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
2795 (m32r_relax_frag): Update declaration.
2796 * config/tc-mips.h (md_relax_frag): Add segment parameter.
2797 * config/tc-tic54x.h (md_relax_frag): Likewise.
2798 * doc/internals.texi (CPU backend): Update documentation for
2801 2001-02-13 Alan Modra <alan@linuxcare.com.au>
2803 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
2804 Mention effect of < 386 architectures on jump promotion.
2805 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
2807 * config/tc-i386.c (no_cond_jump_promotion): New.
2808 (set_cpu_arch): Parse "jumps" arch modifier.
2809 (insn_size): Modify usage comment.
2810 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
2811 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
2812 (TYPE_FROM_RELAX_STATE): New define.
2813 (UNCOND_JUMP, COND_JUMP): Renumber.
2814 (md_relax_table): Reorder to suit.
2815 (COND_JUMP86): New define.
2816 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
2817 (md_assemble): Create frag var for jumps of max size, encode relax
2818 state for COND_JUMP86.
2819 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
2820 leave conditional jumps small if no_cond_jump_promotion.
2821 (md_convert_frag): Likewise.
2823 * expr.c (operator): Don't bump input_line_pointer for two char
2824 operators. Instead return operator size via new param num_chars.
2825 (expr): Use above to parse multi-char operators correctly.
2827 Mon Feb 12 17:45:50 CET 2001 Jan Hubicka <jh@suse.cz>
2829 * config/tc-i386.c (i386_displacement): Fix handling of
2830 BFD_RELOC_X86_64_GOTPCREL.
2831 (i386_validate_fix): Likewise.
2833 2001-02-12 Philip Blundell <pb@futuretv.com>
2835 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
2836 ldrt/strt instructions.
2838 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2840 * config/tc-mips.c (macro): For M_LA_AB emit a
2841 BFD_RELOC_MIPS_CALL16 relocation or a
2842 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
2843 BFD_RELOC_MIPS_GOT16 and
2844 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
2845 loading the jump register when generating SVR4_PIC code.
2847 2001-02-10 Chris Demetriou <cgd@broadcom.com>
2849 * configure.in: Make 'mipself' and 'mipsecoff' emulations
2850 map to MIPS-specific files, as they used to do before the
2851 change on 2000-05-21.
2852 * configure: Regerate.
2854 2001-02-10 Chris Demetriou <cgd@broadcom.com>
2856 * config/tc-mips.c (md_parse_option): Don't try to compile
2857 ELF-only option code if not ELF.
2859 2001-02-08 David Mosberger <davidm@hpl.hp.com>
2861 * config/tc-ia64.h (md_elf_section_type): New macro.
2862 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
2863 (they're now handled via ia64_elf_section_type.
2865 * config/tc-ia64.c (unwind): New members saved_text_seg,
2866 saved_text_subseg, and force_unwind_entry.
2867 (optimize_unw_records): New function to optimize away unnecessary
2869 (ia64_elf_section_type): New function.
2870 (output_unw_records): Generate unwind info only if the size is
2871 non-zero or if it's forced for some other reason (e.g.,
2872 handlerdata or a personality routine).
2873 (generate_unwind_image): Don't switch back to previous
2874 section---stay inside the unwind info section instead so that
2875 handlerdata that may follow goes into the right place.
2876 (dot_handlerdata): Force generation of unwind entry and save the
2877 current active text segment before generating unwind image.
2878 (dot_unwentry): Force generation of unwind entry.
2879 (dot_personality): Ditto.
2880 (dot_endp): Generate unwind table entry only if there is
2881 some unwind info or the unwind entry was forced.
2883 * config/tc-ia64.c (make_unw_section_name): New macro to form
2884 unwind section name.
2885 (generate_unwind_image): Add "text_name" argument. Use it to
2886 form unwind section name.
2887 (dot_handlerdata): Determine current segment (section) name and
2888 pass it to generate_unwind_image().
2889 (dot_endp): Determine current segment (section) name and use
2890 it to determine the appropriate unwind section name.
2891 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
2892 n, fill, and max arguments.
2894 2001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
2896 * Makefile.am: Add linux target for S/390.
2897 * configure.in: Likewise.
2898 * config/tc-s390.c: New file.
2899 * config/tc-s390.h: New file.
2901 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
2903 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
2904 2byte, 4byte and 8byte.
2906 2001-02-08 Alan Modra <alan@linuxcare.com.au>
2908 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
2909 md_number_to_chars with size > sizeof (valueT).
2911 2001-02-06 H.J. Lu <hjl@gnu.org>
2913 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
2914 there is no relocation.
2916 2001-02-06 H.J. Lu <hjl@gnu.org>
2918 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
2920 * config/tc-ia64.c (md_parse_option): Only accept the valid
2921 ia64 options on "-axxx".
2923 2001-02-05 Jim Wilson <wilson@redhat.com>
2925 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
2926 aborting for invalid operands.
2928 2001-02-06 Alan Modra <alan@linuxcare.com.au>
2930 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
2931 than via pointer. Update all callers.
2932 (UNWIND_LOW32): Define.
2933 (UNWIND_HIGH32): Define.
2934 (pa_build_unwind_subspace): Use the above macros instead of dumping
2935 bitfields directly. Call frag_more once rather than multiple times.
2936 (md_assemble): Use UNWIND_LOW32.
2937 (pa_entry): Likewise
2938 (pa_procend): Likewise.
2939 (process_exit): Use UNWIND_HIGH32.
2941 2001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2943 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
2944 function to select the header according to the cpu.
2945 (md_after_pass_hook, md_do_align): Remove.
2946 (md_cleanup, m68hc11_cleanup): Remove.
2947 (md_pcrel_from_section): Declare.
2948 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
2949 (build_jump_insn, build_insn): Likewise.
2950 (m68hc11_listing_header): New function.
2951 (m68hc11_cleanup): Remove.
2953 2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2955 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
2956 symbols because there is no support for shared libraries and these
2957 symbols can't be overridden (unless they are weak).
2959 2001-02-01 Momchil Velikov <velco@fadata.bg>
2961 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
2962 for the compilation unit with a zero byte.
2964 2001-01-30 Alan Modra <alan@linuxcare.com.au>
2966 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
2967 destinations. Correct range check for 17 and 22 bit branches.
2969 2001-01-25 Nick Clifton <nickc@redhat.com>
2971 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
2972 still set. Issue an error message instead.
2973 (md_estimate_size_before_relax): Delete unused variable
2974 'buffer_address'. Fixup parentheses around if statement.
2976 2001-01-23 Kazu Hirata <kazu@hxi.com>
2978 * as.c: Fix formatting.
2979 * ehopt.c: Likewise.
2980 * messages.c: Likewise.
2981 * stabs.c: Likewise.
2982 * symbols.c: Likewise.
2984 2001-01-23 Ben Elliston <bje@redhat.com>
2986 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
2988 2001-01-22 Kazu Hirata <kazu@hxi.com>
2990 * config/tc-alpha.c: Fix formatting.
2992 2001-01-19 Kazu Hirata <kazu@hxi.com>
2994 * config/tc-alpha.c: Fix formatting.
2996 2001-01-18 Kazu Hirata <kazu@hxi.com>
2998 * config/tc-alpha.c: Fix formatting.
3000 2001-01-18 Nick Clifton <nickc@redhat.com>
3002 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
3004 (stm_flags): Remove redundant bit from "ed" and "da" flags.
3006 2001-01-18 Alexandre Oliva <aoliva@redhat.com>
3008 * configure.in (cpu_type, arch): Match i386 too.
3009 * configure: Rebuilt.
3011 2001-01-16 Kazu Hirata <kazu@hxi.com>
3013 * config/tc-i386.c: Fix formatting.
3015 2001-01-16 Alan Modra <alan@linuxcare.com.au>
3017 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
3018 relocs for .PARISC.unwind section.
3020 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
3021 depending on section flags, not just for .text.
3023 2001-01-15 Jim Wilson <wilson@redhat.com>
3025 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
3026 not immediately followed by an instruction.
3028 2001-01-15 Kazu Hirata <kazu@hxi.com>
3030 * config/tc-m68hc11.c: Fix formatting.
3032 2001-01-15 Nick Clifton <nickc@redhat.com>
3034 * symbols.c (colon): Change 'already defined symbol' from a
3035 fatal error to an ordinary error. There is no reason why this
3036 error should be fatal.
3038 * message.c (as_fatal): Delete output file, if one has been
3041 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3043 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
3045 2001-01-14 Kazu Hirata <kazu@hxi.com>
3047 * config/tc-alpha.c: Fix formatting.
3048 * config/tc-arc.c: Likewise.
3049 * config/tc-arc.h: Likewise.
3050 * config/tc-d10v.c: Likewise.
3051 * config/tc-i370.c: Likewise.
3052 * config/tc-i386.c: Likewise.
3053 * config/tc-i960.c: Likewise.
3054 * config/tc-m68k.c: Likewise.
3055 * config/tc-ppc.c: Likewise.
3056 * config/tc-sparc.c: Likewise.
3057 * config/tc-tahoe.c: Likewise.
3058 * config/tc-vax.c: Likewise.
3060 * config/tc-arc.c: Fix formatting.
3062 * config/tc-arc.c: Fix formatting.
3064 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3066 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
3067 both 32 and 64 bit ELF.
3069 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
3070 and don't bother storing `m' for "ce" completer. Tidy handling of
3071 'J' and 'K' operands to suit. Handle '<' and '>' operands.
3073 Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
3075 * config/tc-i386.h (TARGET_MACH): New macro.
3076 (i386_mach): Declare.
3077 * config/tc-i386.c (i386_mach): New function.
3079 2001-01-13 Philip Blundell <philb@gnu.org>
3081 * doc/as.texinfo: Fix spelling and cross-references.
3083 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
3084 character for all systems, not just GNU/Linux. Make it explicit
3085 that `-k' doesn't affect code generation, just ELF flags.
3087 Sat Jan 13 01:47:35 MET 2001 Jan Hubicka <jh@suse.cz>
3089 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
3092 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
3094 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
3096 2001-01-12 Nick Clifton <nickc@redhat.com>
3098 * as.c (print_args): Update copyright date to 2001.
3100 2001-01-12 Peter Targett <peter.targett@arccores.com>
3102 * doc/c-arc.texi: New file.
3103 Some sections to be expanded.
3105 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3107 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
3108 (md_parse_option): Always accept "--32".
3110 2001-01-11 Peter Targett <peter.targett@arccores.com>
3112 * as.h (TC_ARC): Ensure struc-symbol.h included.
3113 * as.c (dwarf2dbg.h): Include to remove implicit declaration
3115 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
3116 (TARGET_SYMBOL_FIELDS) added.
3118 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
3119 * doc/c-arc.texi: New file.
3120 Some sections to be expanded.
3121 * doc/as.texinfo: Update command-line options.
3122 Removed outdated text for ARC dependant features, instead include
3123 text from above file.
3125 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
3126 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
3127 (targ-cpu.h) header.
3129 * config/tc-arc.c: New updated configuration for
3130 ARC, including selection of core variants, and extensibility of
3131 instructions, registers etc. through directives.
3133 * config/tc-arc.c (arc_extinst): Minor corrections for
3135 (arc_common) Likewise. Make alignment argument optional for local
3136 symbols also, with default of zero.
3138 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3140 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
3141 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
3142 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
3143 and fix_new_exp() instead.
3144 (md_convert_frag): For indexed post byte use the symbol value
3145 rather than the displacement.
3146 (md_relax_table): Fix indexed offset relax.
3148 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3150 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
3152 (relaxable_symbol): New function.
3154 2001-01-11 Andreas Jaeger <aj@suse.de>
3156 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
3159 2001-01-10 Nick Clifton <nickc@redhat.com>
3161 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
3162 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
3164 2001-01-10 Nick Clifton <nickc@redhat.com>
3166 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
3167 character used to dollar local symbols.
3168 (LOCAL_LABEL_CHAR): New constant - the magic character used to
3169 local label symbols.
3170 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
3171 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
3173 Use LOCAL_LABEL_CHAR.
3174 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
3175 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3176 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3178 2001-01-08 Bo Thorsen <bo@suse.de>
3180 * config/tc-i386.c (i386_immediate, i386_displacement):
3183 2001-01-07 Ian Lance Taylor <ian@zembu.com>
3185 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
3188 2001-01-07 Philip Blundell <philb@gnu.org>
3190 * doc/as.texinfo (Bug Reporting): Update email address for
3194 Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
3196 * configure.in: Define DEFAULT_ARCH for i386.
3197 * config/tc-i386.c (md_assemble): Return after the error message;
3198 move testing for 64bit operands to proper place.
3200 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
3202 * doc/as.texinfo: Document '#' as comment character for i386 and
3203 x86_64. Add AMD x86-64 into menu of machine dependent information.
3205 * doc/c-i386.texi: Document x86_64 extensions.
3207 Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
3209 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
3211 Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
3213 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
3214 * NEWS: Add note about Pentium4 support.
3216 Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
3218 * config/tc-i387.c (pi, pte, pt): Update.
3219 (type_names): Add new types.
3221 Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
3223 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
3224 CpuUnknown): Renumber
3225 (CpuP4, CpuSSE2): New.
3226 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
3228 2001-01-03 Philip Blundell <pb@futuretv.com>
3230 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
3232 (alpha_fix_adjustable): Likewise.
3233 (md_apply_fix): Likewise.
3235 2000-12-31 H.J. Lu <hjl@gnu.org>
3237 * listing.c (listing_message): Allocate string only if it is
3240 * configure: Rebuild.
3242 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
3244 * doc/internals.texi (Relaxing with a table) <after relaxation>:
3245 Point out caveats with generating fixups for the opcode in a frag.
3247 Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
3249 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
3252 2000-12-29 H.J. Lu <hjl@gnu.org>
3254 * listing.c (calc_hex): Print the variable part only if the
3255 fragment type is rs_fill.
3257 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3259 * doc/internals.texi (tc_conditional_pseudoop,
3260 TC_LINKRELAX_FIXUP): Fix typos.
3262 2000-12-28 Richard Henderson <rth@redhat.com>
3264 * write.c (subsegs_finish): Fix thinko last change -- don't
3265 "optimize" the alignment == 0 case.
3267 2000-12-28 Richard Henderson <rth@redhat.com>
3269 * as.h (rs_align_test): New.
3270 * frags.c (NOP_OPCODE): Move default from read.c.
3271 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
3272 (frag_align_code): New.
3273 * frags.h (frag_align_code): Declare.
3274 * read.c (NOP_OPCODE): Remove.
3275 (do_align): Use frag_align_code.
3276 * write.c (NOP_OPCODE): Remove.
3277 (get_recorded_alignment): New.
3278 (cvt_frag_to_fill): Handle rs_align_test.
3279 (relax_segment): Likewise.
3280 (subsegs_finish): Align last subseg in section to the
3281 section alignment. Use frag_align_code.
3282 * write.h (get_recorded_alignment): Declare.
3283 * config/obj-coff.c (size_section): Handle rs_align_test.
3284 (fill_section, fixup_mdeps): Likewise.
3285 (write_object_file): Use frag_align_code.
3287 * config/tc-alpha.c (alpha_align): Use frag_align_code.
3288 (alpha_handle_align): New.
3289 * config/tc-alpha.h (HANDLE_ALIGN): New.
3290 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3292 * config/tc-i386.h (md_do_align): Use frag_align_code.
3293 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3295 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
3296 (ia64_handle_align): New.
3297 * config/tc-ia64.h (HANDLE_ALIGN): New.
3298 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3300 * config/tc-m32r.c (m32r_do_align): Remove.
3301 (m32r_handle_align): New.
3302 (fill_insn): Use frag_align_code.
3303 * config/tc-m32r.h (md_do_align): Remove.
3304 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
3305 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
3306 * config/tc-mips.c, config/tc-mips.h: Similarly.
3308 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
3309 (sh_handle_align): Likewise. Handle rs_align_code.
3310 (sh_do_align): Remove.
3311 * config/tc-sh.h (md_do_align): Remove.
3312 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3314 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
3315 (sparc_handle_align): Likewise. Handle rs_align_code.
3316 * config/tc-sparc.h (md_do_align): Remove.
3317 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3319 2000-12-22 DJ Delorie <dj@redhat.com>
3321 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
3322 when we assemble the first half of a pair.
3324 2000-12-22 H.J. Lu <hjl@gnu.org>
3326 * config/tc-i386.c (reloc): Update the macro for non-bfd
3328 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
3330 2000-12-22 H.J. Lu <hjl@gnu.org>
3332 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
3334 Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
3336 * config/tc-i386.h (i386_target_format): Define even for ELFs.
3337 (QWORD_MNEM_SUFFIX): New macro.
3338 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
3340 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
3341 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
3343 (Size64, No_qSuf, NoRex64, Rex64): New macros.
3344 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
3345 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
3346 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
3347 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
3349 (Reg, WordReg): Add Reg64.
3350 (Imm): Add Imm32S and Imm64.
3352 (Disp): Add Disp64 and Disp32S.
3353 (AnyMem): Add Disp32S.
3354 (RegRex, RegRex64): New macros.
3355 (rex_byte): New type.
3356 * config/tc-i386.c (set_16bit_code_flag): Kill.
3357 (fits_in_unsigned_long, fits_in_signed_long): New functions.
3358 (reloc): New parameter "signed"; support x86_64.
3359 (set_code_flag): New.
3360 (DEFAULT_ARCH): New macro; default to "i386".
3361 (default_arch): New static variable.
3362 (struct _i386_insn): New fields Operand_PCrel; rex.
3363 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
3364 (flag_code): New enum and static variable.
3365 (use_rela_relocations): New static variable.
3366 (flag_code_names): New static variable.
3367 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
3368 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
3370 (i386_align_code): Return plain "nop" for x86_64.
3371 (mode_from_disp_size): Support Disp32S.
3372 (smallest_imm_type): Support Imm32S and Imm64.
3373 (offset_in_range): Support size of 8.
3374 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
3375 (md_pseudo_table): Add "code64"; use set_code_flat.
3376 (md_begin): Emit sane error message on hash failure.
3377 (tc_i386_fix_adjustable): Support x86_64 relocations.
3378 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
3379 instructions supported on particular arch just partially,
3380 output of 64bit immediates, handling of Imm32S and Disp32S type.
3381 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
3382 (i386_displacement): Likewise.
3383 (i386_index_check): Cleanup; support 64bit addresses.
3384 (md_apply_fix3): Support x86_64 relocation and rela.
3385 (md_longopts): Add "32" and "64".
3386 (md_parse_option): Add OPTION_32 and OPTION_64.
3387 (i386_target_format): Call even for ELFs; choose between
3388 elf64-x86-64 and elf32-i386.
3389 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
3390 (tc_gen_reloc): Support rela relocations and x86_64.
3391 (intel_e09_1): Support QWORD.
3393 2000-12-15 Diego Novillo <dnovillo@redhat.com>
3395 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
3396 it's not an offset expression.
3397 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
3398 keep the braces '[' and ']' in the output string.
3399 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
3400 != FLAT. There is no such op_modifier.
3402 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3404 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
3407 2000-12-13 Kazu Hirata <kazu@hxi.com>
3409 * as.h: Fix formatting.
3411 * dwarf2dbg.c: Likewise.
3412 * input-scrub.c: Likewise.
3415 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
3417 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
3418 configure: Regenerate.
3420 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3422 * dwarf2dbg.c: #include <limits.h> only if it exists.
3424 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
3426 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
3427 (md_apply_fix): Here too.
3429 2000-12-12 Jim Wilson <wilson@redhat.com>
3431 * config/tc-ia64.h (ia64_init): Add prototype.
3433 2000-12-12 H.J. Lu <hjl@gnu.org>
3435 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
3437 * read.h (outputting_stabs_line_debug): Change it to int.
3438 * stabs.c (outputting_stabs_line_debug): Likewise.
3440 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3442 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
3443 the address of a function result.
3445 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3447 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
3448 (md_assemble): Call dwarf2_emit_insn.
3449 (shlib): Fix typo SHILB -> SHLIB.
3450 (md_parse_option): Likewise.
3451 (ppc_elf_validate_fix): Likewise:
3452 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3454 2000-12-12 Nick Clifton <nickc@redhat.com>
3456 * cgen.h: Fix formatting.
3457 * input-scrub.c: Fix formatting.
3458 * macro.c: Fix formatting.
3459 * config/tc-mips.c: Fix formatting.
3460 * doc/c-mips.texi: Fix formatting.
3462 Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
3464 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
3465 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
3467 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
3469 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
3472 * i386.h (*_Suf): Remove No_dSuf.
3473 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
3475 (i386_optab): Remove 'd' in the suffixes.
3477 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3479 * config/tc-i386.c (T_SHORT): Undefine before defining.
3481 2000-12-05 Kazu Hirata <kazu@hxi.com>
3483 * config/tc-mips.c: Fix formatting.
3485 2000-12-04 Matthew Hiller <hiller@redhat.com>
3487 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
3488 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
3489 (md_show_usage): Ditto.
3490 (md_parse_option): Ditto.
3491 (d10v_cleanup): Writes pending instruction only if
3492 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
3493 Fix compile time warning messages.
3495 * doc/c-d10v.texi: Documents new options.
3497 2000-12-04 Matthew Hiller <hiller@redhat.com>
3499 * stabs.c (outputting_stabs_line_debug): New variable.
3500 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
3501 function entry and unset at function exit.
3503 * read.h (outputting_stabs_line_debug): New extern declaration.
3505 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
3507 * dwarf2dbg.c: Fix compile time warning messages.
3509 2000-12-03 Kazu Hirata <kazu@hxi.com>
3511 * config/tc-a29k.c: Fix formatting.
3512 * config/tc-alpha.c: Likewise.
3513 * config/tc-arm.c: Likewise.
3514 * config/tc-cris.c: Likewise.
3515 * config/tc-hppa.c: Likewise.
3516 * config/tc-i370.c: Likewise.
3517 * config/tc-i386.c: Likewise.
3518 * config/tc-i860.c: Likewise.
3519 * config/tc-i960.c: Likewise.
3520 * config/tc-ia64.c: Likewise.
3521 * config/tc-m68hc11.c: Likewise.
3522 * config/tc-m68k.c: Likewise.
3523 * config/tc-m88k.c: Likewise.
3524 * config/tc-pj.c: Likewise.
3525 * config/tc-ppc.c: Likewise.
3526 * config/tc-sh.c: Likewise.
3527 * config/tc-sparc.c: Likewise.
3528 * config/tc-tahoe.c: Likewise.
3529 * config/tc-vax.c: Likewise.
3531 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3533 * config/tc-mips.c (mips_ip): When calculating offsets,
3534 don't accept as constant the difference between the
3535 addresses of symbols in two different sections.
3537 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
3539 (validate_mips_insn): Likewise. Also, update 'B' operand
3540 specifier to use OP_*_CODE20 constants and delete 'm' operand
3542 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
3543 operand specifiers. Change warning generated by 'B' operand
3544 specifier to reflect its new multi-purpose usage.
3546 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
3547 -1, and update comment.
3548 (file_mips_isa): Likewise.
3549 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
3550 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
3551 ISA_* constants rather than hard-coded numbers.
3552 (mips_cpu_info): New structure.
3553 (mips_cpu_info_table): New table describing CPU and ISA names
3555 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
3556 mips_cpu_info_from_cpu): New functions.
3557 (mips_isa_to_str): New function to get string for ISA name.
3558 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
3559 return const char *.
3560 (md_begin): Redo CPU and ISA selection logic, using
3561 mips_cpu_info_from_*. Convert to use ISA_* constants rather
3562 than hard-coded numbers.
3563 (append_insn, mips_emit_delays, macro, macro2): Convert to use
3564 ISA_* constants rather than hard-coded numbers.
3565 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
3566 (md_longopts): Delete OPTION_NO_MIPS32.
3567 (md_parse_option): Convert to use ISA_* constants rather than
3568 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
3569 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
3570 to use strcasecmp to recognize "default" and to use
3571 mips_cpu_info_from_name to get CPU numbers from argument.
3572 (md_show_usage): Move -mips32 so it's with the rest of the ISA
3573 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
3575 (s_mipsset): Accept ISA value 32.
3576 * doc/as.texinfo: Clean up MIPS options summary slightly,
3577 remove -no-mips32. Add note about -mips4 and -mips32
3578 specifying those ISA levels. Delete -mips32 and -no-mips32
3579 cpu flag descriptions.
3580 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
3581 up the supported CPU switch list, and replace 4Kc, 4Km, and
3582 4Kp entries with a single mips32-4k entry. Note that you can
3585 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
3587 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
3589 (md_parse_option): Add cases for OPTION_MIPS5 and
3591 (md_show_usage): Mention -mips5 and -mips64 arguments.
3592 (s_mipsset): Add cases for MIPS5 and MIPS64.
3593 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
3595 * doc/as.texinfo: Mention -mips5 and -mips64 options
3597 * doc/c-mips.texi: Likewise. Also update introduction
3598 and ".set" usage information.
3600 * config/tc-mips.c (md_show_usage): Add "sb1" to the
3602 (mips_cpu_info_table): Add SB-1 entries.
3603 * doc/c-mips.texi: Add "sb1" to the list of CPUs
3604 known to the -mcpu option.
3606 * doc/as.texinfo: Correct description of MIPS -mcpu
3607 option, by copying some of the text from doc/c-mips.texi.
3609 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3611 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3613 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3614 (sparc*-*-rtems*): Switched from a.out to ELF.
3615 * configure: Regenerate.
3616 * config.in: Regenerate.
3617 * Makefile.in: Regenerate.
3618 * aclocal.m4: Regenerate.
3619 * po/gas.pot: Regenerate.
3621 2000-11-30 Philip Blundell <pb@futuretv.com>
3623 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
3624 even in non BFD_ASSEMBLER case.
3626 2000-11-30 Diego Novillo <dnovillo@redhat.com>
3628 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
3631 2000-11-29 Richard Henderson <rth@redhat.com>
3633 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
3634 until dwarf2_finish; use relaxation to get cross-fragment offsets;
3635 thread multiple subsegments properly; handle multiple code
3636 sections properly; emit proper compilation unit info for assembler
3637 generated debugging.
3639 * as.h (enum _relax_state): Add rs_dwarf2dbg.
3640 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
3641 (dwarf2dbg_estimate_size_before_relax): Declare.
3642 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
3643 * write.c: Include dwarf2dbg.h.
3644 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
3645 (relax_segment): Likewise.
3647 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
3649 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
3650 jump>: Use as_bad_where instead of as_bad. Tweak error message
3651 accordingly. Stabilize frag by updating fix part and resetting
3653 <undefined symbol, unconditional jump>: Ditto.
3654 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
3655 indexing is_end_of_line[].
3656 (md_assemble): Initialize size to 0.
3657 (md_section_align): Mark parameter seg as unused.
3658 (parse_reg): Parse names case-insensitively.
3660 2000-11-28 Kazu Hirata <kazu@hxi.com>
3662 * config/obj-aout.h: Fix formatting.
3663 * config/obj-bout.h: Likewise.
3664 * config/obj-coff.c: Likewise.
3665 * config/obj-coff.h: Likewise.
3666 * config/obj-elf.h: Likewise.
3667 * config/obj-som.h: Likewise.
3668 * config/obj-vms.c: Likewise.
3669 * config/obj-vms.h: Likewise.
3670 * config/tc-h8300.h: Likewise.
3671 * config/tc-ns32k.h: Likewise.
3672 * config/tc-sparc.h: Likewise.
3673 * config/tc-tic54x.h: Likewise.
3674 * config/tc-z8k.h: Likewise.
3676 2000-11-28 Nick Clifton <nickc@redhat.com>
3678 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
3679 License is present in the sources, but not the output, and
3680 also available from the GNU website.
3681 (GNU Free Documentation License): Comment out this section.
3683 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
3685 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
3686 targets. Remove i860 from valid a.out targets.
3687 * Makefile.in: Regenerate.
3689 * config/tc-cris.c: Include dwarf2dbg.h.
3690 (md_pseudo_table): Add .file and .loc.
3691 (md_assemble): Call dwarf2_emit_insn if generating ELF.
3692 (s_cris_file, s_cris_loc): New.
3693 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3694 * Makefile.am: Regenerate dependencies.
3695 * Makefile.in: Regenerate.
3697 2000-11-28 Alan Modra <alan@linuxcare.com.au>
3699 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
3700 (MRI_MUL_PRECEDENCE): Likewise.
3701 (op_rank): Fix a comment typo.
3703 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3705 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
3707 (get_operand): Fix analysis for movw/movb instructions.
3709 2000-11-24 Nick Clifton <nickc@redhat.com>
3711 * configure.in (xscale-elf): Add target.
3712 (xscale-coff): Add target.
3713 * configure: Regenerate.
3715 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
3717 (ARM_EXT_XSCALE): New ARM architecture extension.
3718 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
3719 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
3720 (ARM_THUMB): Rename to ARM_EXT_THUMB.
3721 (ARM_ARCH_V4): Remove processor from architecture.
3722 (ARM_ARCH_3M): New architecutre definition.
3723 (ARM_ARCH_V5TE): New architecutre definition.
3724 (ARM_ARCH_XSCALE): New architecutre definition.
3725 (CPU_DEFAULT): Allow to be defaulted to XScale.
3726 (atpcs): New boolean variable.
3727 (ldr_flags): Support 'd' flag for double word loads.
3728 (str_flags): Support 'd' flag for double word stored.
3729 (do_mia): New function.
3730 (do_mar): New function.
3731 (do_mra): New function.
3732 (do_pld): New function.
3733 (do_ldrd): New function.
3734 (do_blx): New function.
3735 (do_bkpt): New function.
3736 (do_clz): New function.
3737 (do_lstc2): New function.
3738 (do_cdp2): New function.
3739 (do_t_blx): New function.
3740 (do_t_bkpt): New function.
3741 (do_smla): New function.
3742 (do_smlal): New function.
3743 (do_smul): New function.
3744 (do_qadd): New function.
3745 (do_co_reg2c): New function.
3746 (LONGEST_INSN): Redefine to 7.
3748 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
3749 command line switches.
3751 2000-11-22 Jim Wilson <wilson@redhat.com>
3753 * config/tc-ia64.c (pseudo_func): Add missing initializers.
3754 (struct rsrc): Make line unsigned.
3755 (gr_values): Add missing initializer.
3756 (SLOT_NUM_NOT_SET): Add unsigned cast.
3757 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
3758 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
3759 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
3760 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
3761 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
3762 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
3763 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
3764 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
3765 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
3766 Add ATTRIBUTE_UNUSED to unused parameters.
3767 (convert_expr_to_ab_reg): Add parens.
3768 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
3769 (dot_prologue): Initialize grsave when declared.
3770 (md_pseudo_table): Add missing initializers.
3771 (operand_match): Add casts to bfd_vma.
3772 (emit_one_bundle): Delete unused local prev. Make required_template
3774 (specify_resource): Cast i to unsigned.
3775 (note_register_values): Use fprintf_vma.
3776 (print_dependency): Likewise.
3778 2000-11-21 Jim Wilson <wilson@redhat.com>
3780 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
3781 for unwind info section.
3782 (dot_endp): Likewise for unwind section.
3784 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
3787 2000-11-21 Jakub Jelinek <jakub@redhat.com>
3789 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
3790 (output_insn): Call dwarf2_emit_insn.
3791 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3793 2000-11-17 Richard Henderson <rth@redhat.com>
3795 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
3796 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
3797 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
3799 2000-11-17 Nick Clifton <nickc@redhat.com>
3801 * config/tc-arm.c (md_pseudo_table): Add support for .line and
3804 2000-11-17 Richard Henderson <rth@redhat.com>
3806 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
3808 2000-11-17 Richard Henderson <rth@redhat.com>
3810 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
3811 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
3812 tri-state definition of alpha_flag_mdebug.
3813 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
3814 (s_alpha_file): Store first .file directive.
3815 (s_alpha_stab): New.
3816 (md_pseudo_table): Add stabs and stabn.
3818 2000-11-17 Richard Henderson <rth@redhat.com>
3820 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
3822 2000-11-17 Richard Henderson <rth@redhat.com>
3824 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
3825 (main): Call dwarf2_finish.
3826 * as.h (debug_type): Clarify documentation of the meaning
3828 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
3829 (print_stats): Fix parenthesis problem.
3830 (now_subseg_size): New.
3831 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
3832 (dwarf2_directive_file): Don't set debug_type.
3833 (dwarf2_where): Honor DEBUG_DWARF2 first.
3834 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
3835 do nothing if not emitting dwarf2 debug info, or no work.
3836 * dwarf2dbg.h (dwarf2_emit_insn): Update.
3837 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
3838 (ecoff_new_file): Likewise.
3839 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
3840 commentary wrt dwarf2.
3842 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
3843 ATTRIBUTE_UNUSED as needed.
3844 (emit_insn): Call dwarf2_emit_insn.
3845 (s_alpha_file): New.
3847 (s_alpha_coff_wrapper): Don't handle them.
3848 (md_pseudo_table): Update for .file and .loc.
3849 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3851 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
3852 don't protect with debug_type.
3853 * config/tc-hppa.c (md_assemble): Likewise.
3854 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
3855 * config/tc-mn10300.c (md_assemble): Likewise.
3856 * config/tc-sh.c (md_assemble): Likewise.
3857 * config/tc-v850.c (md_assemble): Likewise.
3859 * config/tc-arm.c (arm_end_of_source): Remove.
3860 * config/tc-hppa.c (pa_end_of_source): Remove.
3861 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
3862 * config/tc-mn10300.c (mn10300_finalize): Remove.
3863 * config/tc-sh.c (sh_finalize): Remove.
3864 * config/tc-v850.c (sh_finalize): Remove.
3866 * config/tc-arm.h (md_end): Remove.
3867 * config/tc-hppa.h (md_end): Remove.
3868 (DWARF2_LINE_MIN_INSN_LENGTH): New.
3869 * config/tc-m68hc11.h (md_end): Remove.
3870 * config/tc-mn10300.h (md_end): Remove.
3871 * config/tc-sh.h (md_end): Remove.
3872 * config/tc-v850.h (md_end): Remove.
3874 * config/tc-ia64.c (emit_one_bundle): Don't protect
3875 dwarf2 bits with debug_type.
3876 (md_assemble): Likewise.
3877 (ia64_end_of_source): Don't call dwarf2_finish.
3879 2000-11-16 Jim Wilson <wilson@redhat.com>
3881 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
3882 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
3885 2000-11-16 H.J. Lu <hjl@gnu.org>
3887 * config/obj-elf.c (obj_elf_symver): Don't check the missing
3890 2000-11-15 Kazu Hirata <kazu@hxi.com>
3892 * config/tc-tic30.c: Fix formatting.
3893 * config/tc-tic80.c: Likewise.
3894 * config/tc-v850.c: Likewise.
3895 * config/tc-vax.c: Likewise.
3896 * config/tc-w65.c: Likewise.
3897 * config/tc-z8k.c: Likewise.
3899 2000-11-14 DJ Delorie <dj@redhat.com>
3901 * config/tc-v850.c: Support dwarf2.
3902 * config/tc-v850.h: Ditto.
3904 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
3905 parse_cons_expression_v850 to initialize hold_cons_reloc.
3907 2000-11-15 Bernd Schmidt <bernds@redhat.com>
3909 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
3910 (errata_nops_necessary_p): New function.
3911 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
3914 2000-11-14 Jim Wilson <wilson@redhat.com>
3916 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
3917 return little endian bfd formats.
3919 2000-11-14 Kazu Hirata <kazu@hxi.com>
3921 * config/aout_gnu.h: Fix formatting.
3922 * config/atof-vax.c: Likewise.
3923 * config/m68k-parse.h: Likewise.
3924 * config/m88k-opcode.h: Likewise.
3925 * config/obj-elf.c: Likewise.
3926 * config/tc-arm.c: Likewise.
3927 * config/tc-cris.c: Likewise.
3928 * config/tc-i386.c: Likewise.
3929 * config/tc-ia64.c: Likewise.
3930 * config/tc-mn10300.c: Likewise.
3931 * config/te-386bsd.h: Likewise.
3932 * config/te-hppa.h: Likewise.
3933 * config/te-nbsd.h: Likewise.
3934 * config/te-ppcnw.h: Likewise.
3935 * config/te-sparcaout.h: Likewise.
3936 * config/te-tmips.h: Likewise.
3937 * config/vax-inst.h: Likewise.
3938 * config/vms-conf.h: Likewise.
3940 2000-11-14 Jakub Jelinek <jakub@redhat.com>
3942 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
3944 2000-11-13 H.J. Lu <hjl@gnu.org>
3946 * config/obj-elf.c (elf_frob_symbol): Support
3947 ".symver name,name2@@@nodename".
3948 (elf_frob_file_before_adjust): Likewise.
3950 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
3951 and ".symver name,name2@@@nodename".
3954 2000-11-12 H.J. Lu (hjl@gnu.org)
3956 * config/obj-elf.c (obj_elf_symver): Check missing version
3959 2000-11-12 H.J. Lu (hjl@gnu.org)
3961 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
3962 instead of bfd_vma for non-bfd assemblers.
3964 2000-11-09 Kazu Hirata <kazu@hxi.com>
3966 * itbl-ops.c: Fix comment typos.
3968 2000-11-08 Jim Wilson <wilson@redhat.com>
3970 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
3971 (struct unwind): Add next_slot_frag field.
3972 (slot_index): New parameters slot_frag and first_frag. Add code
3973 to add in frag sizes when different. Add comments.
3974 (fixup_unw_records): New locals first_frag and last_frag. Pass new
3975 arguments to slot_index.
3976 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
3977 loop end. Set next_slot_frag field.
3979 2000-11-07 H.J. Lu <hjl@gnu.org>
3981 * doc/as.texinfo (.symver): Updated for versioned symbol
3984 * obj.h (format_ops): Add the frob_file_before_adjust field.
3986 * config/obj-aout.c (aout_format_ops): Set the
3987 frob_file_before_adjust field to 0.
3988 * config/obj-coff.c (coff_format_ops): Likewise.
3989 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
3991 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
3993 (elf_frob_file_before_adjust): New function to remove unneeded
3994 versioned symbols from the symbol table.
3995 (elf_format_ops): Set the frob_file_before_adjust field to
3996 elf_frob_file_before_adjust.
3998 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
4001 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
4003 2000-11-07 Peter Targett <peter.targett@arccores.com>
4005 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
4007 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
4008 Fix compile time warning messages.
4010 2000-11-07 Nick Clifton <nickc@redhat.com>
4012 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
4013 buffer in order to avoid buffer overflows.
4015 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4017 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
4018 Change M to m for -milp32 or -mlp64 to match gcc.
4019 (dot_endp): Use bytes_per_address instead of 8.
4020 (emit_one_bundle): Use number_to_chars_littleendian instead of
4022 (fix_insn): Likewise.
4023 (ia64_init): New function.
4024 (ia64_target_format): New function.
4025 (md_begin): Set endianness, arch, and machine as appropriate.
4026 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
4027 Make these macros depend on TE_HPUX macro.
4028 (TARGET_FORMAT): Define.
4029 (HOST_SPECIAL_INIT): Define.
4030 * config/te-hpux.h: New file.
4031 * configure.in: Add "ia64-*-hpux*" target to configure.
4032 * configure: Regenerate.
4034 2000-11-06 Kazu Hirata <kazu@hxi.com>
4036 * as.c: Fix formatting.
4037 * dwarf2dbg.c: Likewise.
4038 * input-file.c: Likewise.
4039 * input-file.h: Likewise.
4040 * input-scrub.c: Likewise.
4041 * itbl-ops.c: Likewise.
4042 * listing.c: Likewise.
4043 * macro.h: Likewise.
4044 * messages.c: Likewise.
4046 * subsegs.c: Likewise.
4047 * subsegs.h: Likewise.
4048 * write.c: Likewise.
4050 2000-11-06 Nick Clifton <nickc@redhat.com>
4052 * doc/as.texinfo: Add GNU Free Documentation License.
4053 * doc/gasp.texi: Add GNU Free Documentation License.
4054 * doc/as.1: Add GNU Free Documentation License.
4056 2000-11-05 Nick Clifton <nickc@redhat.com>
4058 * config/tc-arm.c: Add include of "dwarf2dbg.h"
4060 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4062 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
4063 * configure: Regenerate.
4065 2000-11-01 Nick Clifton <nickc@redhat.com>
4067 * read.c (original_case_string): New global variable.
4068 (read_a_source_file): Copy opcode string into
4069 original_case_string if clobbering the case of the opcode.
4070 * read.h: Export the definition of original_case_string.
4071 * config/tc-arm.c (md_assembler): When parsing a .req
4072 directive use the original opcode string, not the case
4075 2000-11-02 Nick Clifton <nickc@redhat.com>
4077 * config/tc-mn10300.c (debug_line): Remove this static
4079 (md_assemble): Call dwarf2_generate_asm_lineno instead of
4080 dwarf2_where and dwarf2_gen_line_info.
4082 2000-11-02 Theo Honohan <th@futuretv.com>
4084 * config/tc-arm.c (do_msr): Improve error message.
4086 2000-10-31 Eric Christopher <echristo@redhat.com>
4088 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
4089 or pc-relative, else use fx_offset.
4091 2000-10-31 Jim Wilson <wilson@redhat.com>
4093 * config/tc-ia64.c (struct md): New field tag_fixups.
4094 (ia64_flush_insns): Handle tag_fixups. Error if dangling
4095 qualifying predicate.
4096 (emit_one_bundle): Delete spurious multiplication by one. Handle
4098 (ia64_start_line): Error if dangling qualifying predicate.
4099 (defining_tag): New static variable.
4100 (ia64_unrecognized_line, case '['): Parse tags.
4101 (ia64_frob_label): Create tag_fixups.
4102 (md_assemble): Reset md.qp.X_op after using it.
4104 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4106 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
4108 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
4110 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
4112 2000-10-30 Kazu Hirata <kazu@hxi.com>
4114 * expr.c: Fix formatting.
4115 * flonum-copy.c: Likewise.
4116 * flonum.h: Likewise.
4120 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
4122 * as.h (OPTION_MD_BASE): Bump to 190.
4123 * as.c (parse_args) <std_longopts>: Add comment about the need to
4124 check OPTION_MD_BASE in as.h.
4126 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
4129 2000-10-27 Nick Clifton <nickc@redhat.com>
4131 * configure.in (emulations): Add m68hc12.
4132 * configure: Regenerate.
4133 * po/gas.pot: Regenerate.
4135 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
4137 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
4139 (arm_psr_parse): Handle lowercase CPSR and SPSR.
4141 2000-10-25 Nick Clifton <nickc@redhat.com>
4143 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
4144 a DWARF2 line number information sequence.
4146 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
4148 * read.c (generate_lineno_debug): Update comment describing why
4149 DWARF2 line number debug information is not generated
4150 automatically by this function.
4152 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
4155 * config/tc-arm.h (md_end): Define.
4156 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4158 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
4159 if generating DWARF2 line numbers.
4160 (arm_end_of_source): New function. Call dwarf2_finish if
4163 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
4164 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
4165 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
4167 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
4169 * config/tc-i386.c: Fix prototype declarations for functions taking no
4172 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
4174 * config/tc-i386.c (i386_operand_modifier): Remove.
4175 (build_displacement_string): Remove.
4176 (i386_parse_seg): Remove.
4177 (i386_intel_memory_operand): Remove.
4178 (i386_intel_operand): Re-write using recursive descent parser based
4179 on MASM documentation.
4180 (struct intel_parser_s): New structure.
4181 (intel_parser): New static variable.
4182 (struct intel_token): New structure.
4183 (cur_token, prev_token): New static variables.
4196 (intel_match_token): New function.
4197 (intel_get_token): New function.
4198 (intel_putback_token): New function.
4199 (intel_expr): New function.
4200 (intel_e05): New function.
4201 (intel_e05_1): New function.
4202 (intel_e06): New function.
4203 (intel_e06_1): New function.
4204 (intel_e09): New function.
4205 (intel_e09_1): New function.
4206 (intel_e10): New function.
4207 (intel_e10_1): New function.
4208 (intel_e11): New function.
4210 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4212 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
4213 instructions to loose any special insn->architecture mask.
4215 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
4216 (sparc_md_end, sparc_arch_types, sparc_arch,
4217 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
4218 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
4219 request v9b architecture if they are used).
4221 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4223 * config/tc-m68k.c: Fix the previous misapplied patch.
4225 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4227 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
4228 BFD_ASSEMBLER and !BFD_ASSEMBLER.
4229 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
4232 2000-10-17 Kazu Hirata <kazu@hxi.com>
4234 * debug.c: Fix formatting.
4235 * depend.c: Likewise.
4236 * dwarf2dbg.c: Likewise.
4237 * dwarf2dbg.h: Likewise.
4238 * ecoff.c: Likewise.
4241 * flonum-konst.c: Likewise.
4242 * frags.h: Likewise.
4244 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4246 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
4248 * doc/as.texinfo: Added notes about this new option.
4250 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
4252 * config/tc-sh.c (JREG): Remove.
4253 (md_convert_frag): Remove #if 0:d code using JREG.
4255 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
4257 * config/tc-i386.c (i386_operand_modifier): Only match
4258 modifiers SHORT and FLAT if they are followed by a space.
4259 (parse_register): When `allow_naked_reg' is set, do not confuse
4260 identifiers that start with a register name with a register.
4262 2000-10-12 Kazu Hirata <kazu@hxi.com>
4264 * app.c: Fix formatting.
4267 * bit_fix.h: Likewise.
4272 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4274 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
4276 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4278 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
4279 Re-arrange function a little and improve error message.
4281 * write.c (write_relocs): Fix a comment.
4283 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
4286 2000-10-05 Jim Wilson <wilson@cygnus.com>
4288 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
4290 2000-10-05 Alan Modra <alan@linuxcare.com.au>
4292 * config/tc-i386.c: Delete some useless comments, reformat others.
4294 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
4295 non-global syms in linkonce sections.
4297 2000-10-04 Ralf Baechle <ralf@gnu.org>
4299 * config/tc-ia64.c (operand_match): Don't use // style comments.
4300 * config/tc-i370.c: Likewise.
4302 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4304 Changes to handle varying register prefix and user symbol prefix.
4305 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
4306 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
4307 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
4308 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
4309 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
4310 (demand_register_prefix): New variable.
4311 (md_pseudo_table): New pseudo ".syntax".
4312 (md_longopts): New options --no-underscore and --underscore.
4313 (cris_target_format): Return elf32-us-cris or elf32-cris depending
4314 on symbols_have_leading_underscore.
4315 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
4316 (get_spec_reg): Ditto.
4317 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
4319 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
4321 <case OPTION_NO_US, case OPTION_US>: New.
4322 (md_show_usage): Be brief and reformat to match continuation of
4324 * po/gas.pot: Regenerate.
4326 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4328 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
4329 force relocs for 12 bit branches.
4330 (md_apply_fix): Similarly, adjust logic here.
4332 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4334 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
4335 adjust for external and weak syms as we will use a reloc. Allow
4336 for +8 offset when calculating limits of branches.
4337 (hppa_fix_adjustable): Undo 2000-09-23 change.
4338 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
4339 Correct distance calculation.
4340 (tc_gen_reloc): Print the file name and line number if we can't
4343 From John David Anglin <dave@hiauly1.hia.nrc.ca>
4344 * config/tc-hppa.c (nonzero_dibits): Define.
4345 (arg_reloc_stub_needed): Check each arg and return value
4346 separately for zero case.
4347 (pa_align): Declare argument `bytes'.
4349 2000-09-25 Kazu Hirata <kazu@hxi.com>
4351 * config/tc-cris.c: Fix formatting.
4352 * config/tc-d10v.h: Likewise.
4353 * config/tc-d30v.c: Likewise.
4354 * config/tc-d30v.h: Likewise.
4355 * config/tc-fr30.c: Likewise.
4356 * config/tc-fr30.h: Likewise.
4357 * config/tc-m68k.c: Likewise.
4358 * config/tc-m68k.h: Likewise.
4359 * config/tc-pj.h: Likewise.
4360 * config/tc-ppc.c: Likewise.
4361 * config/tc-ppc.h: Likewise.
4362 * config/tc-sh.c: Likewise.
4363 * config/tc-sh.h: Likewise.
4364 * config/tc-sparc.c: Likewise.
4365 * config/tc-v850.h: Likewise.
4366 * config/tc-vax.h: Likewise.
4367 * config/tc-w65.h: Likewise.
4368 * config/tc-z8k.h: Likewise.
4370 2000-09-23 Alan Modra <alan@linuxcare.com.au>
4372 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
4373 checks only for ELF.
4374 (hppa_force_relocation): Likewise.
4376 2000-09-22 Jim Wilson <wilson@cygnus.com>
4378 * config/tc-ia64.c (dv_sem): Add "stop".
4379 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
4380 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
4381 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
4383 (mark_resources): Check IA64_RS_PRr.
4385 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4387 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
4388 md_estimate_size_before_relax): Redesign and clean up the
4389 relaxation mechanism.
4391 2000-09-21 Kazu Hirata <kazu@hxi.com>
4393 * config/tc-ns32k.c: Fix formatting.
4394 * config/tc-ns32k.h: Likewise.
4396 2000-09-20 Kazu Hirata <kazu@hxi.com>
4398 * config/tc-m32r.c: Fix formatting.
4399 * config/tc-m32r.h: Likewise.
4400 * config/tc-m68851.h: Likewise.
4401 * config/tc-m68hc11.c: Likewise.
4402 * config/tc-m68hc11.h: Likewise.
4403 * config/tc-m88k.c: Likewise.
4404 * config/tc-mcore.c: Likewise.
4405 * config/tc-mcore.h: Likewise.
4406 * config/tc-mips.c: Likewise.
4407 * config/tc-mips.h: Likewise.
4408 * config/tc-mn10200.h: Likewise.
4409 * config/tc-mn10300.h: Likewise.
4410 * config/tc-tahoe.c: Likewise.
4411 * config/tc-tahoe.h: Likewise.
4413 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4415 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
4416 Likewise in relaxation description comments.
4418 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4420 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
4421 subtraction of two syms without emitting a relocation.
4423 From David Huggins-Daines <dhd@linuxcare.com>
4424 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
4425 global or weak symbols.
4427 2000-09-15 Kazu Hirata <kazu@hxi.com>
4429 * config/tc-h8300.h: Fix formatting.
4430 * config/tc-h8500.c: Likewise.
4431 * config/tc-h8500.h: Likewise.
4432 * config/tc-hppa.h: Likewise.
4433 * config/tc-i370.h: Likewise.
4434 * config/tc-i386.h: Likewise.
4435 * config/tc-i860.c: Likewise.
4436 * config/tc-i860.h: Likewise.
4437 * config/tc-i960.h: Likewise.
4438 * config/tc-ia64.c: Likewise.
4439 * config/tc-ia64.h: Likewise.
4441 2000-09-14 Kazu Hirata <kazu@hxi.com>
4443 * config/tc-a29k.c: Fix formatting.
4444 * config/tc-alpha.c: Likewise.
4445 * config/tc-arc.c: Likewise.
4446 * config/tc-arc.h: Likewise.
4447 * config/tc-arm.c: Likewise.
4448 * config/tc-arm.h: Likewise.
4449 * config/tc-avr.c: Likewise.
4450 * config/tc-avr.h: Likewise.
4451 * config/tc-tic30.c: Likewise.
4452 * config/tc-tic30.h: Likewise.
4453 * config/tc-tic54x.c: Likewise.
4454 * config/tc-tic54x.h: Likewise.
4455 * config/tc-tic80.c: Likewise.
4456 * config/tc-tic80.h: Likewise.
4458 2000-09-14 Timothy Wall <twall@cygnus.com>
4460 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
4461 parallel comparisons for later use.
4462 (struct rsrc): Add parallel comparison type.
4463 (resources_match): Skip special cases of PR usage (non-conflicting
4466 2000-09-13 Kazu Hirata <kazu@hxi.com>
4468 * config/obj-ecoff.c: Fix formatting.
4469 * config/obj-elf.c: Likewise.
4470 * config/obj-elf.h: Likewise.
4471 * config/obj-evax.h: Likewise.
4472 * config/obj-generic.h: Likewise.
4473 * config/obj-hp300.c: Likewise.
4474 * config/obj-hp300.h: Likewise.
4475 * config/obj-ieee.h: Likewise.
4476 * config/obj-vms.c: Likewise.
4477 * config/obj-vms.h: Likewise.
4479 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4481 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
4482 (md_parse_option): Ditto.
4483 (md_longopts): Add -mips32 option.
4484 (md_show_usage): Document new options.
4485 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
4486 (mips_ip): Assemble mfc0 with a sub-selection code.
4487 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
4488 (mips_cpu_to_str): New function.
4489 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
4490 Use CPU_* defines instead of hardcoded numbers.
4492 * doc/as.texinfo: Document new options.
4493 * doc/c-mips.texi: Ditto.
4495 2000-09-12 Kazu Hirata <kazu@hxi.com>
4497 * as.h: Fix formatting.
4498 * asintl.h: Likewise.
4499 * bit_fix.h: Likewise.
4500 * config/obj-aout.c: Likewise.
4501 * config/obj-aout.h: Likewise.
4502 * config/obj-bout.c: Likewise.
4503 * config/obj-bout.h: Likewise.
4504 * config/obj-coff.c: Likewise.
4505 * config/obj-coff.h: Likewise.
4506 * dwarf2dbg.h: Likewise.
4508 * flonum.h: Likewise.
4509 * frags.h: Likewise.
4510 * itbl-ops.h: Likewise.
4511 * macro.h: Likewise.
4514 * struc-symbol.h: Likewise.
4515 * subsegs.h: Likewise.
4516 * symbols.h: Likewise.
4518 * write.h: Likewise.
4520 2000-09-11 Kazu Hirata <kazu@hxi.com>
4522 * bignum-copy.c: Fix formatting.
4523 * config/tc-i370.c: Likewise.
4524 * config/tc-i960.c: Likewise.
4525 * config/tc-m68k.c: Likewise.
4526 * ehopt.c: Likewise.
4527 * flonum-copy.c: Likewise.
4528 * flonum-konst.c: Likewise.
4529 * flonum-mult.c: Likewise.
4530 * literal.c: Likewise.
4533 * stabs.c: Likewise.
4534 * subsegs.c: Likewise.
4536 2000-09-09 Philip Blundell <philb@gnu.org>
4538 * configure.in (arm*-*-uclinux*): New target.
4539 * configure: Regenerate.
4541 2000-09-09 Kazu Hirata <kazu@hxi.com>
4543 * input-file.c: Fix formatting.
4544 * itbl-ops.c: Likewise.
4545 * messages.c: Likewise.
4547 2000-09-08 Philip Blundell <philb@gnu.org>
4549 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
4552 2000-09-07 H.J. Lu <hjl@gnu.org>
4554 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4555 * configure: Rebuild.
4557 2000-09-07 Kazu Hirata <kazu@hxi.com>
4559 * atof-generic.c: Fix formatting.
4560 * config/tc-mips.c: Likewise.
4561 * config/tc-vax.c: Likewise.
4562 * input-scrub.c: Likewise.
4564 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4566 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
4567 * configure.in (sh-*-linux*): Added.
4568 * configure: Rebuilt.
4570 2000-09-06 Kazu Hirata <kazu@hxi.com>
4572 * config/tc-hppa.c: Fix formatting.
4574 * ecoff.c: Fix formatting.
4576 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4578 * configure: Rebuilt with new libtool.m4.
4580 2000-09-05 Kazu Hirata <kazu@hxi.com>
4582 * cgen.c: Fix formatting.
4583 * config/tc-ia64.c: Likewise.
4585 2000-09-05 Nick Clifton <nickc@redhat.com>
4587 * aclocal.m4: Regenerate.
4588 * config.in: Regenerate.
4589 * configure: Regenerate.
4590 * po/gas.pot: Regenerate.
4592 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
4594 * config/tc-cris.c: Correct comment typos.
4596 2000-09-05 Eric Christopher <echristo@cygnus.com>
4598 * config/tc-mn10300.c: Cleanup.
4599 (md_pcrel_from): Enable.
4601 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4603 * expr.c (operand): Fix a comment typo.
4604 * write.c (write_relocs): Fix a signed/unsigned warning.
4606 * config/tc-hppa.c (fudge_reg_expressions): New
4607 (hppa_force_reg_syms_absolute): New.
4608 (pa_equ): Allow reg_section expressions.
4609 * config/tc-hppa.c (md_optimize_expr): Define.
4610 (hppa_force_reg_syms_absolute): Prototype.
4612 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
4613 (pa_parse_number): Pass in arg to select fp reg parsing.
4614 Return 1 to indicate format checks pass. If strict, then only
4615 accept a register or register symbol. Return value in...
4616 (pa_number): New static for pa_parse_number.
4617 (FP_REG_BASE): Define.
4618 (FP_REG_RSEL): Define.
4619 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
4620 appropriate. White space changes.
4621 (need_pa11_opcode): Don't bother passing any params, get them from
4623 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
4624 Remove extraneous check in case 'Q'.
4625 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
4626 reg, set section of resulting symbol to reg_section.
4627 (pa_parse_space_stmt): Modify call to pa_parse_number.
4628 (pa_space): Likewise.
4630 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
4631 (hppa_force_relocation): Handle vtable relocs.
4632 (pa_vtable_entry): New.
4633 (pa_vtable_inherit): New.
4634 (md_pseudo_table): Add entries for vtable pseudos.
4635 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
4636 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
4638 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
4639 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
4640 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
4642 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
4643 specify a symbol type.
4645 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
4646 dependent things together.
4647 (md_elf_symbol_type): Define.
4649 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
4651 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
4653 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
4654 (obj_elf_vtable_entry): Declare.
4656 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
4657 and export function.
4658 (obj_elf_vtable_entry): Similarly.
4659 (elf_pseudo_table): Fix the damage with a cast.
4661 2000-09-03 Richard Henderson <rth@cygnus.com>
4663 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
4664 for template selection when a label is needed.
4666 2000-09-02 Kazu Hirata <kazu@hxi.com>
4668 * config/tc-ia64.c: Fix formatting.
4670 2000-09-02 Nick Clifton <nickc@redhat.com>
4672 * configure.in: Increase version number to 2.10.91.
4673 * configure: Regenerate.
4674 * aclocal.m4: Regenerate.
4675 * config.in: Regenerate.
4676 * po/gas.pot: Regenerate.
4677 * Makefile.in: Regenerate.
4679 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
4681 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
4682 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
4683 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
4685 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
4688 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4690 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
4691 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
4692 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
4693 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
4694 (GOT_symbol): New variable.
4695 (md_undefined_symbol): Set it.
4697 2000-09-01 Richard Henderson <rth@cygnus.com>
4699 * config/tc-ia64.c (match): Don't inline.
4700 (extra_goodness): New.
4701 (md_begin): Prefer nop.f and nop.b for best_template.
4703 2000-08-31 Kazu Hirata <kazu@hxi.com>
4705 * as.c: Fix formatting.
4707 * frags.c: Likewise.
4708 * macro.c: Likewise.
4710 2000-08-31 Eric Christopher <echristo@cygnus.com>
4712 * config/tc-mn10300.c: Cleanup and fix warnings.
4713 (md_pseudo_table): Add initializers.
4714 (md_show_usage): Cleanup.
4715 (md_parse_option): Fix warnings.
4716 (md_undefined_symbol): Fix warnings.
4717 (md_conver_frag): Fix warnings.
4718 (tc_gen_reloc): Fix warnings.
4719 (md_apply_fix3): Fix warnings.
4720 (check_operand): Fix warnings.
4722 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4724 * acinclude.m4: Include libtool and gettext macros from the
4726 * aclocal.m4, configure: Rebuilt.
4728 2000-08-30 Mark Hatle <mhatle@mvista.com>
4730 * config/tc-ppc.c (md_parse_option): Recognize -m405.
4732 2000-08-31 Kazu Hirata <kazu@hxi.com>
4734 * listing.c: Fix formatting.
4736 2000-08-29 Kazu Hirata <kazu@hxi.com>
4738 * app.c: Fix a comment typo. Fix formatting.
4740 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4742 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
4743 offset of the target destination for jmp instructions.
4744 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
4746 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4748 * NEWS: Mention support for CRIS.
4750 Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
4752 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
4753 Sets `.lcomm' alignment to zero.
4755 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
4757 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
4758 TC_FIX_ADJUSTABLE): Define.
4760 2000-08-23 Jim Wilson <wilson@cygnus.com>
4762 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
4763 unwind.personality_routine is set.
4765 2000-08-23 H.J. Lu <hjl@gnu.org>
4767 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
4769 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
4771 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
4774 2000-08-22 H.J. Lu <hjl@gnu.org>
4776 * config.in (STRICTCOFF): New for strict COFF.
4778 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
4779 i386-*-go32* and i386-go32-rtems*.
4780 * configure: Rebuilt.
4782 * config/obj-coff.c (obj_coff_endef): Follow the historical
4783 behavior if STRICTCOFF is not defined.
4785 * doc/internals.texi: Document STRICTCOFF.
4787 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
4789 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
4790 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
4791 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
4792 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
4793 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
4794 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
4795 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
4798 2000-08-22 Eric Christopher <echristo@cygnus.com>
4800 * config/tc-mn10300.c: (md_apply_fix): New function.
4801 (mn10300_force_relocation): New function.
4802 (mn10300_fix_adjustable): New function.
4804 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
4805 (TC_HANDLES_FX_DONE): Define.
4806 (obj_fix_adjustable): Define.
4807 (MD_APPLY_FIX3): Define.
4808 (TC_LINKRELAX_FIXUP): Define.
4810 * write.c: (TC_LINKRELAX_FIXUP): Define if not
4812 (fixup_segment): Use TC_LINKRELAX_FIXUP.
4814 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
4816 2000-08-21 Jason Eckhardt <jle@cygnus.com>
4818 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
4819 if the fixup resulted in a relocation.
4821 2000-08-18 Nick Clifton <nickc@redhat.com>
4823 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
4824 Make reference to first element of shift_names explicit.
4826 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
4828 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
4829 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
4830 add a symbol's address. Removed all target-specific #ifdefs that
4831 used to accomplished the same.
4832 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4833 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4834 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4835 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4836 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4838 2000-08-17 Kazu Hirata <kazu@hxi.com>
4840 * dwarf2dbg.c: Fix formatting.
4842 2000-08-17 Nick Clifton <nickc@redhat.com>
4844 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
4845 to be recoded as logical shift lefts by zero.
4847 2000-08-16 Jim Wilson <wilson@cygnus.com>
4849 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
4850 postincrement modified registers. Handle IA64_OPND_R3_2 addl
4852 (note_register_values): Handle IA64_OPND_R3_2 operands.
4854 2000-08-16 Jason Eckhardt <jle@cygnus.com>
4856 * config/tc-i860.c (md_operand): Silly typo fixed.
4858 2000-08-16 Nick Clifton <nickc@redhat.com>
4860 * config/tc-arm.c (struct asm_shift): Delete.
4862 (enum asm_shift_index): New.
4863 (struct asm_shift_properties): New.
4864 (struct asm_shift_name): New.
4865 (shift_properties[]); New.
4866 (shift_names[]); New.
4868 (decode_shift): Use new structures.
4869 Issue a warning is "ROR #0" is used.
4870 Issue a warning if "ASR #0" or "LSR #0" is used.
4872 (md_begin): Initialise arm_shift_hsh table from new
4873 asm_shift_name array.
4875 2000-08-16 Jakub Jelinek <jakub@redhat.com>
4877 * config/tc-sparc.c: Kill all warnings.
4878 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
4880 (md_show_usage): Update usage text.
4882 2000-08-16 Nick Clifton <nickc@redhat.com>
4884 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
4887 2000-08-15 Will Cohen <wcohen@redhat.com>
4889 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
4891 * config/tc-sh.c (md_assemble): Changed so debug_type
4892 test performed for ppi_assemble
4893 * config/tc-sh.c: Included dwarf2dbg.h.
4894 (debug_line): Defined.
4895 (md_assemble): Generates dwarf2 line info.
4896 (sh_finalize): New function. Finalize dwarf2 info.
4897 (assemble_ppi): Returns size of code generated.
4898 (build_Mytes): Returns size of code generated.
4899 (md_pseudo_table): Added "file" and "loc" psuedo ops.
4900 * config/tc-sh.h (md_end): Defined.
4901 (sh_finalize): Declared.
4903 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
4905 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
4908 2000-08-14 Nick Clifton <nickc@redhat.com>
4910 * config/tc-arm.c (do_bx): Allow "bx pc".
4912 2000-08-14 Jim Wilson <wilson@cygnus.com>
4914 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
4915 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
4916 (md_begin): Change assignment to md.flag to OR in the new bit.
4918 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
4920 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
4921 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
4924 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4926 * NEWS: Mention i860 support.
4928 Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
4930 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4932 2000-08-14 Andreas Schwab <schwab@suse.de>
4934 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
4936 2000-08-11 Andreas Schwab <schwab@suse.de>
4938 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
4941 2000-08-11 Kazu Hirata <kazu@hxi.com>
4943 * expr.c: Fix formatting.
4944 * config/obj-bout.c: Likewise.
4946 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4948 * doc/c-i860.texi: Flesh out the i860 section more.
4950 2000-08-10 Kazu Hirata <kazu@hxi.com>
4952 * symbols.c: Fix formatting.
4955 Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
4957 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
4958 modifier has the IgnoreSize bit set.
4960 2000-08-09 Alan Modra <alan@linuxcare.com.au>
4962 From Rodney Brown <RodneyBrown@mynd.com>
4963 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
4964 * configure: Regenerate.
4966 2000-08-09 Kazu Hirata <kazu@hxi.com>
4968 * hash.c: Fix formatting.
4971 2000-08-08 Jason Eckhardt <jle@cygnus.com>
4973 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
4974 (i860_fix_info): New enum.
4975 (MD_APPLY_FIX3): Define.
4976 (WORKING_DOT_WORD): Define.
4977 (TC_HANDLES_FX_DONE): Define.
4978 (DIFF_EXPR_OK): Define.
4979 (LISTING_HEADER): Define.
4980 (TARGET_FORMAT): Select target format based on endian flag.
4981 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
4982 (target_big_endian): Add external declaration.
4984 * config/tc-i860.c: All existing code reworked completely. Other
4985 new code shown below.
4986 (SYNTAX_SVR4): Define.
4987 (target_warn_expand): New variable.
4988 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
4989 (md_longopts): Declare and define with new options (-EL, -EB,
4991 (md_show_usage): New function.
4992 (md_operand): New function.
4993 (obtain_reloc_for_imm16): New function.
4994 (md_apply_fix3): New function.
4995 (tc_gen_reloc): New function.
4997 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4999 * config/tc-m68hc11.c (build_jump_insn): Make sure the
5000 2 bytes of the jump address are in the same frag.
5001 (find): Accept 68hc12 register indirect modes.
5003 * NEWS: Mention 68HC11 & 68HC12 support.
5005 2000-08-07 Richard Henderson <rth@cygnus.com>
5007 * config/tc-ia64.c (unwind): Add prologue_mask member.
5008 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
5009 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
5010 (dot_body): Clear unwind.prologue_mask.
5011 (dot_prologue): Set it. Accept a register second argument.
5013 2000-08-07 Kazu Hirata <kazu@hxi.com>
5015 * config/atof-ieee.c: Fix formatting.
5016 * config/atof-tahoe.c: Likewise.
5018 2000-08-06 Nick Clifton <nickc@cygnus.com>
5020 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
5023 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
5024 of .popsection, .previous, .pushsection, .subsection,
5025 .version, .vtable_entry, .vtable_inherit and .weak.
5027 2000-08-05 Kazu Hirata <kazu@hxi.com>
5029 * config/tc-cris.c: Fix formatting.
5030 * config/tc-i386.c: Likewise.
5031 * config/tc-sparc.c (sparc_ip): Simplify the code.
5033 2000-08-04 Kazu Hirata <kazu@hxi.com>
5035 * config/tc-cris.c: Rearrange code for readability.
5036 * config/tc-d10v.c: Fix formatting.
5037 * config/tc-m32r.c: Likewise.
5038 * config/tc-sparc.c: Likewise.
5040 2000-08-02 Jim Wilson <wilson@cygnus.com>
5042 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
5043 before ia64_find_opcode.
5044 (md_assemble): Likewise.
5046 2000-08-01 Nick Clifton <nickc@cygnus.com>
5048 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
5049 Undo some formatting fixes.
5051 2000-08-01 Kazu Hirata <kazu@hxi.com>
5053 * config/obj-som.c: Fix formatting.
5054 * config/obj-ieee.c: Likewise.
5055 * config/tc-arm.c: Likewise.
5056 * config/tc-v850.c: Likewise.
5058 2000-08-01 Nick Clifton <nickc@redhat.com>
5060 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
5061 index by command line option.
5063 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5065 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
5066 (@node M68K-Branch): Rewrite to match the reality.
5068 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5070 * doc/c-i860.texi: New file.
5071 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
5072 * doc/Makefile.in: Regenerate.
5073 * doc/all.texi: Add I860 as relevant architecture.
5074 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
5076 2000-07-31 Kazu Hirata <kazu@hxi.com>
5078 * config/tc-d30v.c: Fix formatting.
5080 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5082 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
5083 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
5084 long emit a long branch if available instead of an absolute jump, never
5085 emit absolute jumps for anything with --pcrel.
5087 * doc/c-m68k.texi: Document new command line option.
5089 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
5091 * config/tc-avr.c: Use PARAMS macro in function declarations.
5092 Don't declare md_pcrel_from_section (already in tc-avr.h).
5093 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
5094 (avr_operand): Don't set (unsigned) op_mask to -1.
5096 2000-07-28 Jason Eckhardt <jle@cygnus.com>
5098 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
5099 * configure: Regenerated.
5100 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
5101 of operand to the .type directive (.e.g, "type").
5103 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5105 * as.h (warn_comment, found_comment, found_comment_file): Declare.
5106 * app.c (do_scrub_chars): Record where first comment found.
5107 * read.c (read_a_source_file): Init found_comment on entry, and
5108 notify whether comments found on exit.
5109 * config/tc-hppa.c (md_shortopts): Add "c".
5110 (md_longopts): Add warn-comment.
5111 (md_parse_option): Handle it.
5112 (md_show_usage): Show available options.
5113 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
5115 Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
5117 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
5118 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
5120 (md_estimate_size_before_relax): Don't fall off end of function.
5122 2000-07-27 Kazu Hirata <kazu@hxi.com>
5124 * config/tc-avr.c: Fix formatting.
5125 * config/tc-ns32k.c: Likewise.
5127 2000-07-27 Alan Modra <alan@linuxcare.com.au>
5129 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
5131 2000-07-27 Kazu Hirata <kazu@hxi.com>
5133 * config/tc-d10v.c: Fix formatting.
5134 * config/tc-z8k.c: Likewise.
5135 * config/tc-sparc.c: Likewise.
5137 2000-07-26 Dave Brolley <brolley@redhat.com>
5139 * cgen.c (queue_fixup): Declare opinfo.
5140 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
5141 (gas_cgen_md_operand): Ditto.
5142 (gas_cgen_md_apply_fix3): Ditto.
5144 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
5146 * config/obj-coff.c (obj_frob_symbol): Don't merge
5147 labels. Don't merge if the symbol isn't constant. Return
5148 immediately if a symbol is merged.
5150 2000-07-22 Alan Modra <alan@linuxcare.com.au>
5152 * frags.c (frag_align): Correct absolute section alignment.
5154 2000-07-20 DJ Delorie <dj@redhat.com>
5156 * config/obj-coff.c (obj_frob_symbol): revert previous change,
5157 it breaks linking against DLLs.
5159 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5161 * configure.in: Add CRIS support.
5162 * configure: Regenerate.
5163 * Makefile.am: (CPU_TYPES): Add cris.
5164 (CPU_OBJ_VALID) [aout]: Add cris.
5165 (MULTI_CPU_TYPES): Add cris.
5166 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
5167 [coff]: Only i386 and mips are valid.
5168 (TARGET_CPU_CFILES): Add config/tc-cris.c.
5169 (TARGET_CPU_HFILES): Add config/tc-cris.h.
5170 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
5171 Regenerate dependencies.
5172 * Makefile.in: Regenerate.
5173 * aclocal.m4: Regenerate.
5174 * as.c: Declare crisaout, criself.
5175 * config/tc-cris.h, config/tc-cris.c: New.
5176 * config/e-criself.c, config/e-crisaout.c: New.
5177 * po/POTFILES.in, po/gas.pot: Regenerate.
5179 2000-07-20 Kazu Hirata <kazu@hxi.com>
5181 * read.c: Fix formatting.
5182 * write.c: Fix formatting.
5184 2000-07-19 H.J. Lu <hjl@gnu.org>
5186 * sb.c: Include <stdlib.h> if exists for abort ().
5188 2000-07-19 Alan Modra <alan@linuxcare.com.au>
5190 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
5191 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
5192 (pa_type_args): Same here.
5194 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
5196 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
5197 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
5198 the storage class is already set.
5200 2000-07-17 Kazu Hirata <kazu@hxi.com>
5202 * config/tc-m68hc11.c: Fix formatting.
5203 * config/tc-mn10200.c: Likewise.
5204 * config/tc-mn10300.c: Likewise.
5205 * config/tc-pj.c: Likewise.
5206 * config/tc-tic80.c: Likewise.
5207 * config/tc-w65.c: Likewise.
5209 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
5211 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
5214 2000-07-15 Ian Lance Taylor <ian@zembu.com>
5216 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
5219 2000-07-15 Alan Modra <alan@linuxcare.com.au>
5221 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
5222 ELF as are used for SOM (except the 32-bit reloc one) to decide
5223 whether a symbol can be reduced to a section symbol. Expand on
5224 the comment for symbols involved in LR% and RR% expressions.
5226 2000-07-14 Nick Clifton <nickc@cygnus.com>
5228 * config/tc-mips.c (mips_disable_float_construction): New
5229 static variable. Set to true if doubles should not be
5230 constructed by loading two single width fp registers with
5231 halves of the value.
5232 (mips_ip): Test mips_disable_float_construction.
5233 (md_longopts): Add command line switches --construct-floats
5234 and --no-construct-floats.
5235 (md_parse_option): Parse new command line options.
5236 (md_show_usage): Describe new command line options.
5238 * doc/c-mips.texi: Document new command line options.
5240 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
5242 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
5243 * configure: Regenerate.
5245 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
5247 * configure.in (DEFAULT_EMULATION setting): Revert part of
5248 2000-07-01 change that set te_multi=multi unless set to tmips.
5249 * configure: Regenerate.
5251 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5253 * config/obj-coff.c (coff_frob_section): Add padding to the last
5254 section when aligning it increases its size.
5256 2000-07-11 Kazu Hirata <kazu@hxi.com>
5258 * config/tc-tic54x.c: Fix formatting.
5260 2000-07-10 Kazu Hirata <kazu@hxi.com>
5262 * config/tc-h8500.c: Fix formatting.
5263 * config/tc-tic54x.c: Fix formatting.
5265 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5267 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
5268 displacements correctly.
5270 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
5272 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
5274 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
5278 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5280 From David Huggins-Daines <dhd@linuxcare.com>
5281 * config/te-hppalinux64.h: Add a new emulation.
5282 * configure.in (emulations): Add configure bits to support the
5283 64-bit Linux/parisc target.
5284 * configure: Regenerate.
5286 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
5287 (md_shortopts): Add `V' for ELF.
5289 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
5290 when SOM or ELF_ARG_RELOC are defined.
5291 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
5292 ELF_ARG_RELOC are defined.
5293 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
5294 (pa_stringer): ..Do it here instead. Fix comment typos.
5295 (hppa_force_relocation): Cast enums to int before comparing with
5298 From Ryan Bradetich <rbradetich@uswest.net>
5299 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
5300 redifinition warning.
5301 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
5302 (hppa_force_relocation): ditto
5303 (md_apply_fix): Added cast to buf to fix warnings.
5305 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
5306 cons_fix_new_hppa, hppa_force_relocation): Prototype.
5308 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
5309 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
5310 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
5311 reloc_type** to avoid warnings in switch.
5312 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
5313 little earlier instead.
5315 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
5317 (pa_type_args): Use symbol_arg_reloc_info.
5318 (struct pa_it): Make arg_reloc unsigned int.
5319 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
5320 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
5321 (pa_code): Delete. pa_text duplicates this function.
5322 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
5323 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
5325 (cons_fix_new_hppa): Actually change selector to e_fsel when
5326 warning about assuming so.
5327 (tc_gen_reloc): More example elf arg reloc code.
5328 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
5329 (hppa_force_relocation): Likewise.
5331 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
5333 (pa_end_of_source): Prototype.
5334 (hppa_fix_adjustable): Prototype.
5335 (LABELS_WITHOUT_COLONS): Move it..
5336 * config/te-hppa.h: To here.
5338 * config/te-hppa64.h: New file.
5340 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
5342 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
5343 format -10, -16, 16 relocs.
5344 (hppa_elf_mark_end_of_function): Test for null
5345 last_call_info->start_symbol
5347 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
5348 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
5349 re_assesmble_* functions. Delete extraneous statements. Fix
5351 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
5352 insn to re_assemble_*.
5354 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
5356 * doc/internals.texi (Expressions): Fix typo.
5358 2000-07-08 Kazu Hirata <kazu@hxi.com>
5360 * config/tc-sh.c: Fix formatting.
5361 * config/tc-tic54x.c: Fix formatting.
5362 * depend.c: Fix formatting.
5363 * flonum-konst.c: Likewise.
5364 * flonum-mult.c: Likewise.
5366 2000-07-07 Kazu Hirata <kazu@hxi.com>
5368 * config/tc-sh.c: Fix comments.
5369 * config/obj-vms.c: Fix comments.
5370 * config/tc-a29k.c: Likewise.
5371 * config/tc-alpha.c: Likewise.
5372 * config/tc-h8300.c: Likewise.
5373 * config/tc-h8500.c: Likewise.
5374 * config/tc-i370.c: Likewise.
5375 * config/tc-ia64.c: Likewise.
5376 * config/tc-m68hc11.c: Likewise.
5377 * config/tc-m68k.c: Likewise.
5378 * config/tc-mips.c: Likewise.
5379 * config/tc-ns32k.c: Likewise.
5380 * config/tc-ppc.c: Likewise.
5381 * config/tc-z8k.c: Likewise.
5383 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
5385 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
5386 Default to '(SEC_LOAD | SEC_DATA)'.
5387 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
5389 * doc/internals.texi (CPU Backend): Describe
5390 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
5392 Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
5394 * as.c (parse_args): NULL terminate the long option list.
5396 Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
5398 * config/tc-d30v.h: Include "write.h" for fixS.
5399 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
5401 2000-07-05 Nick Clifton <nickc@cygnus.com>
5403 * config/tc-d30v.c (write_2_short): Further changes to warning
5404 messages produced when combining EITHER_BUT_PREFER_MU attributed
5407 2000-07-05 DJ Delorie <dj@redhat.com>
5411 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5413 * config/tc-arm.c (psrs): Accept combinations of flags.
5415 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5417 * config/tc-avr.c: Change _ () to _() around all strings marked
5418 for translation (exception from the usual coding style).
5419 (avr_opt): New struct variable, how the new switches are set.
5420 (OPTION_MMCU): Define as 'm' and actually use.
5421 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
5422 (show_mcu_list): New function, display the list of known MCUs.
5423 (md_show_usage): Document the new switches. Call show_mcu_list.
5424 (avr_set_arch): Change 'm' to OPTION_MMCU.
5425 (md_parse_option): Call show_mcu_list if unknown MCU specified.
5426 Handle the new switches.
5427 (avr_operands): Disable warnings for undefined combinations of
5428 operands if -mall-opcodes. Disable warnings for skipping two-word
5429 instructions if enhanced core or -mno-skip-bug.
5430 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
5431 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
5432 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
5433 (avr_ldi_expression): Warn about implicit lo8().
5434 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
5436 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5438 * configure.in: Add entry for mips-*-sysv4*MP*
5439 * configure: Rebuild
5440 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
5441 elf32-tradlittlemips for traditional mips targets.
5442 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
5443 test for Link Once sections as in adjust_reloc_syms.
5444 * config/te-tmips.h: New file for traditional mips targets. Define
5447 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5449 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
5450 flags argument is not present, don't change an existing section's
5451 section's attributes. If the flags argument is present, warn if the
5452 attributes don't match the section's current attributes. When
5453 long section names are supported, set SEC_LINK_ONCE and
5454 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
5456 Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
5458 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
5459 symbols; create them.
5461 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5463 * write.c (set_segment_vma): New: Set vma and lma for a segment.
5464 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
5466 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
5468 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
5469 expressions. Ignore the problem when handling 16 bit signed
5470 immediates, because the assembler will take care of the relocation
5473 2000-06-27 Nick Clifton <nickc@cygnus.com>
5475 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
5476 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
5477 sequential order, and emit warning messages if the input source
5478 code contains constructs like that, or parallel constructs
5479 containing such opcodes.
5481 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5483 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
5484 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
5485 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
5486 (md_show_usage): Update usage message.
5487 (md_parse_option): Allow redefinition of MCU type within the
5488 same avr[1-5] bfd machine type. Show both old and new MCU type
5489 in the error message.
5490 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
5491 Simplify 8K wrap code.
5493 2000-06-25 Kazu Hirata <kazu@hxi.com>
5495 * config/obj-aout.c: Remove all uses of DEFUN.
5496 * config/obj-ieee.c: Likewise.
5497 * config/tc-sh.c: Fix comment typos.
5498 * config/tc-tahoe.c: Likewise.
5499 * config/tc-vax.c: Likewise.
5500 * config/tc-w65.c: Likewise.
5501 * config/tc-z8k.c: Likewise.
5502 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
5504 2000-06-24 DJ Delorie <dj@cygnus.com>
5506 * config/tc-i386.c (md_estimate_size_before_relax): Revert
5507 more changes from Sept 1999
5508 (tc_i386_fix_adjustable): ditto
5509 (md_apply_fix3): ditto
5511 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
5513 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
5514 (gas_cgen_parse_operand): Set it around expression() call.
5515 (gas_cgen_md_operand): Test for it before longjmp().
5517 2000-06-24 Kazu Hirata <kazu@hxi.com>
5519 * config/tc-h8500.c: Remove all uses of DEFUN.
5520 * config/tc-sh.c: Likewise.
5521 * config/tc-w65.c: Likewise.
5522 * config/tc-z8k.c: Likewise.
5524 * config/tc-h8500.c: Fix typos in comments.
5526 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
5528 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
5531 2000-06-23 matthew green <mrg@redhat.com>
5533 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
5534 defined. Fix error message for `[' grouping.
5536 2000-06-22 Kazu Hirata <kazu@hxi.com>
5538 * config/tc-h8300.c: Fix formatting and comment typos.
5540 2000-06-22 Timothy Wall <twall@cygnus.com>
5542 * config/tc-ia64.c (note_register_values): Move premature QP
5543 notation clearing into the appropriate place.
5545 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5547 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
5548 first before anything else. Add bin-bugs.h, emul.h and progress.h
5549 Sort list of files as for $(OBJS) in Makefile.am.
5551 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
5552 find one. Remake dependencies.
5553 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
5554 * Makefile.in: Regenerate.
5555 * doc/Makefile.in: Regenerate.
5557 * config/tc-i386.c (i386_displacement): Don't assume a constant
5558 displacement is necessarily 16 bits when in 16 bit code mode.
5559 (md_assemble): Instead size the displacement here after we know
5560 for sure that a .code16gcc operand hasn't automatically added
5561 operand size prefixes.
5563 2000-06-21 H.J. Lu <hjl@gnu.org>
5565 * Makefile.am: Rebuild dependency.
5566 * Makefile.in: Rebuild.
5568 2000-06-21 Kazu Hirata <kazu@hxi.com>
5570 * config/tc-h8300.c (parse_reg): Make the function static.
5571 (parse_exp): Likewise.
5573 2000-06-20 DJ Delorie <dj@cygnus.com>
5575 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
5576 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
5577 for cygwin import libraries to work properly.
5579 2000-06-20 H.J. Lu <hjl@gnu.org>
5581 * Makefile.am: Rebuild dependency.
5582 * Makefile.in: Rebuild.
5583 * configure: Likewise.
5584 * doc/Makefile.in: Likewise.
5586 2000-06-20 Timothy Wall <twall@cygnus.com>
5588 * doc/internals.texi (CPU backend): Add @itemx for
5589 TC_START_LABEL_WITHOUT_COLON.
5590 * doc/c-tic54x.texi: New.
5591 * doc/as.texinfo: Add tic54x features and include primary tic54x
5593 * doc/all.texi: Add C54X.
5594 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
5595 * doc/Makefile.in: Regenerate.
5596 * configure.in: Add tic54x and define LIBM for tic54x.
5597 * configure: Regenrate.
5598 * config/tc-tic54x.[ch]: New.
5599 * config/obj-coff.h: Add tic54x.
5600 * Makefile.am: (CPU_TYPES): Add tic54x.
5601 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
5602 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
5603 (as_new_LDADD): Add $(LIBM).
5604 * Makefile.in: Regenerate.
5606 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5608 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
5609 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
5610 * doc/as.texinfo: Likewise.
5612 * configure, Makefile.in: Regenerate.
5613 * configure.in (emulations): Recognize m6811 and m6812.
5614 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
5615 Added files for 68hc11 and 68hc12 assembler.
5616 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
5617 * config/tc-m68hc11.h: Header definition for that assembler.
5619 2000-06-18 Nick Clifton <nickc@redhat.com>
5621 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
5622 instead of OCTETS_PER_BYTE.
5624 * config/tc-v850.c: Fix compile time warnings.
5625 * config/tc-ppc.c: Fix compile time warnings.
5627 2000-06-18 H.J. Lu <hjl@gnu.org>
5629 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
5630 * configure: Rebuild.
5632 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
5634 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
5637 2000-06-16 Nick Clifton <nickc@cygnus.com>
5639 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
5640 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
5642 * doc/c-mips.texi: Document newly accepted cpu variants.
5644 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
5646 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
5648 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
5650 * macro.c (getstring): Make it possible to escape the quote
5653 Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
5655 * config/tc-hppa.c (pa_export): Weak symbols can be global.
5657 2000-06-13 H.J. Lu <hjl@gnu.org>
5659 * configure: Regenerate.
5661 2000-06-09 Alan Modra <alan@linuxcare.com.au>
5663 * app.c (do_scrub_begin): Don't default lex[';'] as a line
5665 * doc/internals.texi (line_separator_chars): Semicolon is no
5666 longer a default. Mention null and newline as defaults.
5668 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
5670 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
5671 * config/tc-i860.h (line_separator_chars): Likewise.
5672 * config/tc-h8300.c (line_separator_chars): Likewise.
5673 * config/tc-i960.c (line_separator_chars): Likewise.
5674 * config/tc-m68k.c (line_separator_chars): Likewise.
5675 * config/tc-mips.c (line_separator_chars): Likewise.
5676 * config/tc-ns32k.c (line_separator_chars): Likewise.
5677 * config/tc-sparc.c (line_separator_chars): Likewise.
5678 * config/tc-vax.c (line_separator_chars): Likewise.
5680 * config/tc-h8300.c (comment_chars): Use string initialiser.
5681 * config/tc-i960.c (line_comment_chars): Likewise.
5682 * config/tc-z8k.c (comment_chars, line_comment_chars,
5683 line_separator_chars): Likewise.
5685 * config/tc-arm.c (line_separator_chars): Always use `;', not just
5688 2000-06-08 Nick Clifton <nickc@cygnus.com>
5690 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
5693 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5695 * configure.in (VERSION): Update to show this is the CVS mainline.
5697 2000-06-08 Matthew Jacob <mjacob@feral.com>
5699 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
5700 $at is the integer register $r28, vs. both $r28 and the floating
5701 point register $f28.
5703 2000-06-08 James E. Wilson <wilson@cygnus.com>
5705 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
5706 (dot_endp): Don't call ia64_flush_insns.
5707 (emit_one_bundle): Don't delete prologue/body records from
5708 unwind_record list in first loop. Rewrite second loop to account for
5711 2000-06-07 David Mosberger <davidm@hpl.hp.com>
5713 * config/tc-ia64.c: Add missing prototypes.
5714 (generate_unwind_image): Cast argument to output_unw_records call.
5716 Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
5718 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
5720 Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
5722 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
5723 (REGISTER_P): likewise.
5724 (avr_opcodes): uses include/opcode/avr.h
5725 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
5727 2000-06-04 Alan Modra <alan@linuxcare.com.au>
5729 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
5732 2000-06-03 H.J. Lu <hjl@gnu.org>
5734 * read.c (is_end_of_line): Put back `;'.
5736 2000-06-03 Alan Modra <alan@linuxcare.com.au>
5738 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
5740 2000-06-01 Alan Modra <alan@linuxcare.com.au>
5742 * expr.c (operand): Test is_end_of_line outside switch to catch
5743 line separator chars that are also operators.
5744 (operator): Return O_illegal for line separator chars.
5746 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
5747 entry (or `!' entry for TC_HPPA).
5749 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
5750 before indexing is_end_of_line. Remove redundant check for '\0'.
5752 * config/tc-h8500.c (md_assemble): Likewise.
5753 * config/tc-mcore.c (md_assemble): Likewise.
5754 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
5757 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
5759 * config/tc-mcore.c (mcore_cons): Likewise.
5760 (mcore_float_cons): Likewise.
5761 (mcore_stringer): Likewise.
5762 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
5764 2000-06-01 Scott Bambrough <scottb@netwinder.org>
5766 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
5768 2000-05-29 Nick Clifton <nickc@cygnus.com>
5770 * config/tc-sh.c: Fix compile time warning messages.
5772 * config/tc-mips.c: Fix compile time warning messages.
5774 2000-05-29 Philip Blundell <philb@gnu.org>
5776 * doc/as.texinfo: Update copyright dates.
5777 (Local Labels): Delete misplaced mention of ARM.
5778 * NEWS: Mention ARM ELF support.
5780 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
5782 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
5783 it is modified, and use the real_size to compute the frag address
5784 for dwarf2 line info.
5786 2000-05-27 Alan Modra <alan@linuxcare.com.au>
5788 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
5789 line-matching scheme to cope with automake moving variables around.
5790 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
5791 * Makefile.in: Regenerate.
5793 2000-05-26 Jakub Jelinek <jakub@redhat.com>
5795 * config/tc-sparc.c (sparc_relax): New.
5796 (md_longopts): Add -relax and -no-relax options.
5797 (md_parse_options, md_show_usage): Likewise.
5798 (md_apply_fix3): Optimize tail call into branch always if possible.
5800 Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
5802 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
5803 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
5804 rules, with warning when a GAS statement specifies a packing that
5805 will result in an instruction being squashed.
5806 Added typdef packing_type and enumerals, changed various integer
5807 literals to use the enumerals.
5809 2000-05-24 David Mosberger <davidm@hpl.hp.com>
5811 * config/tc-ia64.c (dot_restorereg_p): New function.
5812 (md_pseudo_table): Add restorereg.p.
5813 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
5814 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
5816 * config/tc-ia64.h (unw_record_type): Add unwabi.
5817 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
5818 called MASK with members for imask, and the masks produced by
5819 fr_mem, gr_mem, br_mem, and frgr_mem.
5820 (unw_p_record): Add members ABI and CONTEXT.
5821 (unw_x_record): Add member AB.
5822 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
5823 as pseudo-register for use during unwind info generation.
5824 (AR_PFS, AR_LC): New macros.
5825 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
5826 whose names start with an at sign (as in "@priunat").
5827 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
5829 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
5830 proc_end, unwind_info, personality_routine): Consolidate into
5831 "unwind" structure to reduce offset-table use. Add member
5832 NEXT_SLOT_NUMBER to track the slot number for the next instruction
5834 (output_R1_format, output_R3_format, output_P3_format,
5835 output_P6_format): Initialize R with zero to reduce compiler warnings.
5836 (output_P7_format): Ditto. Add `default' branch to switch
5837 statement to reduce compiler warnings.
5838 (output_P8_format, output_B1_format, output_B4_format): Ditto.
5839 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
5840 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
5841 into single argument.
5842 (output_X1_format, output_X3_format): Initialize R with zero to reduce
5843 compiler warnings. Merge A and B args into single argument.
5844 (output_X2_format, output_X4_format): Remove unused variable R. Merge
5845 A and B args into single argument.
5846 (free_record): Removed (wasn't used).
5847 (free_list_records): Also free imasks in prologue records.
5848 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
5849 (output_spill_mask): Remove.
5850 (output_unwabi): New function.
5851 (output_epilogue, output_label_state, output_copy_state): Call
5853 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
5854 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
5856 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
5857 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
5858 as part of handling the prologue records. Emit region's imask if
5859 we have one. Handle unwabi, epilogue, label_state, copy_state,
5860 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
5861 spill_sprel_p, and spill_reg_p records.
5862 (set_imask, count_bits, slot_index): New function.
5863 (fixup_unw_records): Fix region size computation. Handle
5864 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
5865 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
5866 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
5867 set_imask accordingly. Update imask for gr_gr, and br_gr records.
5868 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
5869 (dot_save): Use manifest constants for applicaton registers.
5870 Handle REG_PR and REG_PRIUNAT.
5871 (dot_restore): Don't just ignore it.
5872 (dot_restorereg): New function..
5873 (generate_unwind_image): Ensure unwind info is a multiple of eight
5874 bytes, not just four bytes.
5875 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
5876 (dot_altrp): Don't just ignore it.
5877 (dot_savemem): New function. Replaces dot_savesp() and
5878 dot_savepsp(). Use manifest constants for applicaton registers.
5879 Handle REG_PR and REG_PRIUNAT.
5880 (dot_savef): Simplify.
5881 (dot_saveb): Support generation of br_gr.
5882 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
5883 dot_label_state, dot_copy_state): New function.
5884 (dot_unwabi): Don't just ignore it.
5885 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
5886 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
5887 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
5888 (emit_one_bundle): Set slot number for prologue/body records
5889 *before* emitting the first insn.
5890 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
5891 (md_begin): Declare "psp" pseudo-register.
5892 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
5893 so we don't get segfault.
5894 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
5895 counts as required per SW Conventions manual
5896 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
5897 output_preds_psprel, output_preds_sprel, output_spill_base,
5898 output_unat_psprel, output_unat_sprel, output_lc_psprel,
5899 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
5900 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
5901 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
5902 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
5903 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
5904 (dot_vframe): Implement.
5905 (dot_vframesp, dot_vframepsp): New function.
5907 Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
5909 * configure.in (i386-*-freebsd a.out entry): Quote properly.
5910 * configure: Regenerate.
5912 2000-05-23 Alan Modra <alan@linuxcare.com.au>
5914 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
5915 (md_estimate_size_before_relax): so we can use it here instead of
5916 old kludges. Localise vars to blocks. Comment.
5918 * frags.c (frag_new): Update fr_var comments.
5919 * frags.h (struct frag): Ditto.
5921 2000-05-22 Richard Henderson <rth@cygnus.com>
5923 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
5924 (pseudo_func): Add pcrel.
5925 (operand_match): Handle IA64_OPND_TGT64.
5926 (build_insn): Likewise.
5927 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
5928 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
5929 (fix_insn): Handle all three 64-bit relocation types.
5931 Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
5933 * obj.h (struct format_ops): New members begin, app_file,
5934 s_set_other, s_set_desc, s_get_type, s_set_type,
5935 separate_stab_sections, init_stab_section.
5937 * config/obj-multi.h: Update GPL notice to v2.
5939 (obj_app_file): New.
5940 (S_SET_SIZE): Test s_set_size for NULL before calling.
5941 (S_SET_ALIGN): Similar for s_set_align.
5946 (SEPARATE_STAB_SECTIONS): New.
5947 (INIT_STAB_SECTION): New.
5948 (EMIT_SECTION_SYMBOLS): New.
5949 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
5951 * config/obj-elf.h: Update GPL notice to v2.
5952 Mention that this file is included from obj-multi.h.
5953 (obj_begin): Wrap definition in ifndef.
5954 (elf_file_symbol): Constify declaration.
5955 (obj_app_file): Ditto.
5956 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
5957 Wrap in ifndef SEPARATE_STAB_SECTIONS.
5959 * config/obj-elf.c (elf_s_set_other): New.
5960 (elf_file_symbol): Constify argument.
5961 (elf_separate_stab_sections): New.
5962 (elf_init_stab_section): New.
5963 (elf_format_ops): Add new members. Remove comma at end.
5965 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
5966 (ecoff_format_ops): Add new fields. Remove comma at end.
5967 Mention inconsistency for emit_section_symbols.
5969 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
5971 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
5972 (coff_separate_stab_sections): New.
5973 (coff_format_ops): Add new members.
5975 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
5976 (obj_aout_s_set_other): New.
5977 (obj_aout_s_set_desc): New.
5978 (obj_aout_s_get_type): New.
5979 (obj_aout_s_set_type): New.
5980 (obj_aout_separate_stab_sections): New.
5981 (aout_format_ops): New members added. Use obj_aout_process_stab,
5982 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
5983 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
5985 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
5987 2000-05-22 Alan Modra <alan@linuxcare.com.au>
5989 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
5990 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
5991 (md_estimate_size_before_relax): Ensure jumps to weak and
5992 externally visible symbols are relocatable.
5994 Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
5996 * stabs.c (aout_process_stab): Make global.
5997 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
5998 * read.h (aout_process_stab): Declare.
6000 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
6001 Generalize to *aout, *coff *elf.
6002 * configure: Regenerated.
6004 * doc/internals.texi (Object format backend): Say
6005 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
6007 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
6008 * Makefile.in: Regenerated.
6010 2000-05-19 Catherine Moore <clm@cygnus.com>
6012 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
6014 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6016 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
6017 instruction to reflect change in re_assemble_*.
6019 Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
6021 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
6022 build PA64 ELF tools.
6023 * configure: Rebuilt.
6025 2000-05-17 Alan Modra <alan@linuxcare.com.au>
6027 * Makefile.am: Regenerate dependencies.
6028 * Makefile.in: Regenerate.
6030 2000-05-15 Nick Clifton <nickc@cygnus.com>
6032 * config/tc-arm.c (struct asm_psr): Add boolean field
6033 distinguishing between CSPR and SPSR. Rename 'number' field
6035 (psrs): Rearrange contents to match new asm_psr structure.
6036 (arm_psr_parse): Move next to psr_required_here. Make it
6037 return an asm_psr structure.
6038 (psr_required_here): Use asm_psr structure returned by
6040 (do_msr): Reorganise to allow psr_required_here to be called
6042 (md_undefined_name): Mark 'name' parameter as unused, since
6043 the COFF target does not use it.
6045 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6047 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
6049 * config/te-aux.h: Likewise.
6050 * config/te-dpx2.h: Likewise.
6051 * config/te-go32.h: Likewise.
6052 * config/te-hp300.h: Likewise.
6053 * config/te-hppa.h: Likewise.
6054 * config/te-i386aix.h: Likewise.
6055 * config/te-ic960.h: Likewise.
6056 * config/te-interix.h: Likewise.
6057 * config/te-nbsd532.h: Likewise.
6058 * config/te-pc532mach.h: Likewise.
6059 * config/te-ppcnw.h: Likewise.
6060 * config/te-psos.h: Likewise.
6061 * config/te-sparcaout.h: Likewise.
6062 * config/te-sun3.h: Likewise.
6063 * config/te-sysv32.h: Likewise.
6065 2000-05-14 Alan Modra <alan@linuxcare.com.au>
6067 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
6068 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
6069 and sign extend without an if statement.
6070 (build_bytes): Likewise.
6072 2000-05-14 Kazu Hirata <kazu@hxi.com>
6074 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
6075 X_add_symbol L_32 case.
6077 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6079 * config/te-freebsd.h: New file.
6081 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6083 * asintl.h (gettext, dgettext, dcgettext, textdomain,
6084 bindtextdomain): Replace defines with those from intl/libgettext.h
6085 to quieten gcc warnings.
6087 * NEWS: Mention x86 .arch and -q.
6089 * config/tc-i386.c (quiet_warnings): New.
6090 (md_assemble): Use quiet_warnings.
6091 (md_parse_option): Set quiet_warnings from -q.
6092 (md_show_usage): Mention -q, delete -m.
6093 (flag_do_long_jump): Delete.
6094 (md_parse_option): Remove -m.
6095 (md_show_usage): Remove -m.
6096 (md_create_long_jump): Remove useless flag_do_long_jump code.
6098 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
6099 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
6101 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6102 Alexander Sokolov <robocop@netlink.ru>
6104 * doc/c-i386.texi (i386-Arch): New section.
6105 (i386-Syntax): Mention .intel_syntax and .att_syntax.
6107 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
6108 (smallest_imm_type): Use smallest opcode for shift by one if cpu
6109 architecture has been given and is not 486.
6110 (set_cpu_arch): New.
6111 (md_pseudo_table): Add .arch.
6112 (md_assemble): Warn if cpu architecture has been given and an
6113 unsupported instruction.
6115 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
6116 Move operand_types bit defines after relevant template field.
6117 (template): Add cpu_flags.
6121 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
6123 * config/tc-mn10300.h (md_end): Define.
6124 (mn10300_finalize): Declare.
6125 * config/tc-mn10300.c: Include dwarf2dbg.h.
6126 (debug_line): Define.
6127 (md_assemble): Generate dwarf2 line info.
6128 (mn10300_finalize): New function. Finalize dwarf2 info.
6130 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
6132 * config/tc-mips.c (md_estimate_size_before_relax): Use the
6133 external version of the relocation for weak symbols.
6135 2000-05-08 David Mosberger <davidm@hpl.hp.com>
6137 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
6138 frame size in units of 16 bytes, as required per SW Conventions manual.
6139 (output_unw_records): Output info-block header as a dword to get
6142 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6144 * as.h: #include "file", not <file> on files from ../include.
6145 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
6146 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
6147 (md_convert_frag): Add ATTRIBUTE_UNUSED.
6148 (tc_coff_symbol_emit_hook): Ditto.
6149 (OPTCOUNT): Cast to int to avoid compiler warning.
6150 (md_begin): Fix signed/unsigned warnings.
6152 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6154 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
6155 ABRANCH LONG case for a conditional branch on a 68000.
6156 (md_estimate_size_before_relax): Likewise. Also handle
6157 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
6158 (m68k-ip: case ABSL): Relax absolute references to 16-bit
6159 PC-relative on all CPUs.
6160 (md_estimate_size_before_relax): Likewise.
6162 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6164 * as.c (parse_args): Just mention current year in printed
6167 2000-05-03 J.T. Conklin <jtc@redback.com>
6169 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
6171 (md_parse_option): Recognize -m7400.
6173 2000-05-03 Ian Lance Taylor <ian@zembu.com>
6175 * config/atof-ieee.c (gen_to_words): When adding carry back in,
6176 don't permit lp to become less than the words array.
6178 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
6180 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
6181 Fix little-endian case.
6183 2000-05-03 David O'Brien <obrien@NUXI.com>
6185 * as.c (parse_args): Update copyright.
6187 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6189 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
6190 for the .bss section too.
6192 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6194 * configure.in: Set em=linux for hppa-*-linux.
6195 * configure: Regenerate.
6196 * doc/Makefile.in: Regenerate with correct automake.
6198 * frags.c (frag_grow): Sanity check chunk_size.
6200 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
6201 * config/obj-som.h: Likewise.
6202 * config/obj-ieee.h: Likewise.
6204 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
6206 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
6207 (md_pseudo_table): Fully initialise OBJ_ELF cases.
6208 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
6209 (pa_ip): low_sign_unext now returns via function value. Use
6210 re_assemble_* instead of dis_assemble_* and
6211 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
6213 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
6214 (md_section_align, md_parse_option, md_show_usage,
6215 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
6216 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
6217 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
6218 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
6219 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
6221 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
6222 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
6223 outside of switch. Correct mask and shifting errors in case 10
6224 and case -11. In case 21, compare against signed range to suit
6225 hppa_field_adjust changes. In case 12, use re_assemble_12. In
6226 case 17 and case 22, use offsetT variable to properly check range.
6227 Use re_assemble_* here too.
6228 (evaluate_absolute): Change type of value to offsetT. Call
6229 hppa_field_adjust to do the work for us.
6230 (pa_parse_cmpb_64_cmpltr): Delete save_s.
6231 (pa_parse_cmpib_64_cmpltr): Ditto.
6232 (pa_build_unwind_subspace): Delete unused var subseg. Change type
6233 of i to unsigned int.
6234 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
6235 (pa_end_of_source): Return type is void.
6237 Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
6239 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
6241 Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
6243 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
6244 More comments added.
6245 (md_begin): Removed "construct symbols for each register name".
6246 Because register names conflicts with GCC generated function
6248 (avr_operand): Now constant numbers can be used as a register
6249 identifiers (0 as r0, 31 as r31).
6250 (md_assemble): use skip_space () before parsing instruction
6253 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6255 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
6256 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
6257 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
6258 * configure: Regenerate.
6260 2000-04-29 Andreas Jaeger <aj@suse.de>
6262 * as.h: Correctly check GCC version.
6264 2000-04-26 David O'Brien <obrien@FreeBSD.org>
6266 * doc/as.1: Fix unbalanced brackets.
6268 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
6270 (line_comment_chars): Set to '/' if TE_FreeBSD.
6272 Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
6274 * configure.in: Configury support for PA64 (currently disabled).
6275 * configure: Rebuilt.
6277 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
6279 * config/tc-mips.c (s_change_sec): Use record_alignment, not
6280 bfd_set_section_alignment.
6282 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6284 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
6287 2000-04-24 Nick Clifton <nickc@cygnus.com>
6289 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
6290 * doc/as.texinfo (Align): Include arm and strongarm in list of
6291 targets that have the second form of the behaviour of the .align
6294 2000-04-24 Mark Klein <mklein@dis.com>
6296 * config/obj-som.c: Terminate obj_pseudo_table.
6298 Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
6300 * as.c (parse_args): Allow md_parse_option to override -a listing
6302 * config/obj-coff.c (add_lineno): Change type of offset parameter
6303 from "int" to "bfd_vma."
6304 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
6305 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
6306 (ppc_change_csect): Align correctly for XCOFF64.
6307 (ppc_machine): New function, which discards "ppc_machine" line.
6308 (ppc_tc): Cons for 8 when code is 64 bit.
6309 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
6311 (md_parse_option): Handle -a64 and -a32.
6313 * config/tc-ppc.h (TARGET_MACH): Define.
6314 (TARGET_FORMAT): Move to function.
6315 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
6317 Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
6319 * config/tc-avr.c: New AVR_ISA_ defined.
6320 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
6321 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
6322 for `fmul', `movw' and `lpm R,Z' instructions.
6323 (avr_operands): Warn if current opcode is a two-word instruction
6324 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
6325 (avr_opcodes): New commands added.
6326 (REGISTER_P): Check 'a' and 'v' constraint letters.
6327 (mcu_types): New MCU added.
6329 2000-04-22 Timothy Wall <twall@cygnus.com>
6331 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
6333 (operand_match): Conditionally insert default bit values for IMMU9.
6335 2000-04-14 Matthew Green <mrg@cygnus.com>
6337 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
6338 * configure: Rebuilt.
6340 Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
6341 Jason Eckhardt <jle@cygnus.com>
6343 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
6345 * config/tc-hppa.c (CHECK_ALIGN): New macro.
6346 Added handling of new operand types l,y,&,fe,fE,fx.
6348 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6349 David Mosberger <davidm@hpl.hp.com>
6350 Timothy Wall <twall@cygnus.com>
6351 Andrew MacLeod <amacleod@cygnus.com>
6352 Jim Wilson <wilson@cygnus.com>
6354 * Makefile.am (CPU_TYPES): Add ia64.
6355 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
6356 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
6357 * Makefile.in: Rebuild.
6358 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
6359 * configure: Rebuild.
6360 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
6361 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
6362 * expr.c (expr): Handle md_optimize_expr.
6363 * read.c (LEX_HASH): Add comment.
6364 * config/tc-ia64.c, config/tc-ia64.h: New files.
6366 2000-04-21 Richard Henderson <rth@cygnus.com>
6368 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
6369 bundling a non-delayed branch type instruction.
6371 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
6373 * config/tc-mn10300.c (HAVE_AM30): Define.
6374 (md_assemble): Use it.
6376 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6378 * config/obj-elf.c (obj_elf_change_section): Check for changed
6381 * Makefile.am: (CPU_MULTI_VALID): Remove.
6382 (MULTI_CPU_TYPES): Define.
6383 (MULTI_CPU_OBJ_VALID): Define.
6384 (DEPTC): Use the above.
6385 (DEPOBJ): Same here.
6387 Regenerate dependencies.
6388 * Makefile.in: Regenerate.
6390 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6392 * Makefile.am (YACC, LEX): Get them from configure.
6394 2000-04-18 H.J. Lu (hjl@gnu.org)
6396 * config/tc-i386.c (offset_in_range): Use addressT instead of
6397 bfd_vma for non-bfd assemblers.
6399 2000-04-17 Alan Modra <alan@linuxcare.com.au>
6401 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
6402 doesn't give spurious errors.
6404 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6406 * as.h (SEEK_SET): Define if undefined.
6408 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6410 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
6411 constants, and don't assume offsetT is 32 bits.
6413 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
6415 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
6416 (md_pcrel_from_section): Add prototype.
6417 (d10v_fix_adjustable): Add prototype.
6418 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
6420 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
6422 2000-04-12 Nick Clifton <nickc@cygnus.com>
6424 * config/tc-d10v.c (find_opcode): Correctly calculate position of
6425 symbol in frag chain.
6427 2000-04-10 Alan Modra <alan@linuxcare.com.au>
6429 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
6430 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
6431 (fits_in_signed_word, smallest_imm_type): Ditto.
6432 (md_assemble): Use an offsetT var to hold offsetT values, not a
6434 (offset_in_range): New.
6435 (md_assemble): Use it.
6436 (md_convert_frag): Change type of target_address, opcode_address,
6437 and displacement_from_opcode_start to offsetT.
6438 (md_create_short_jump): Change type of offset to offsetT.
6439 (md_create_long_jump): Ditto.
6440 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
6441 (md_chars_to_number): Remove.
6442 (output_invalid): Remove duplicate prototype.
6444 2000-04-09 Nick Clifton <nickc@cygnus.com>
6446 * Makefile.am (CPU_TYPES): Add 'avr'.
6447 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
6448 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
6450 * Makefile.in: Regenerate.
6452 * doc/as.texinfo: Add M32R documentation.
6454 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6456 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6457 --enable-build-warnings option.
6458 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6459 * Makefile.in, configure: Re-generate.
6461 2000-04-07 Nick Clifton <nickc@cygnus.com>
6463 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
6464 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
6465 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
6466 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
6467 (arm_force_relocation): Force relocations for
6468 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
6470 Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6472 * config/tc-sh.c (get_operands): There's no third operand if the
6473 first operand is an immediate.
6475 Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6477 * config/tc-sh.c (immediate): Delete.
6478 (sh_operand_info): Add immediate member.
6479 (parse_reg): Use A_PC for pc.
6480 (parse_exp): Add second argument 'op'. All callers changed.
6481 (parse_at): Expect pc to be coded as A_PC.
6482 Use immediate field in *op.
6483 (insert): Add fourth argument 'op'. All callers changed.
6484 (build_relax): Add second argument 'op'. All callers changed.
6485 (insert_loop_bounds): New function.
6486 (build_Mytes): Remove DISP_4.
6487 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
6488 (assemble_ppi): Use immediate field in *operand.
6489 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
6490 (md_apply_fix): Likewise.
6491 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
6493 Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6495 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
6497 Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
6499 * internals.texi (CPU backend): Document
6500 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
6502 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6504 * po/gas.pot: Regenerate.
6506 * as.c (show_usage): Restore translated part of bug string.
6507 * gasp.c (show_usage): Likewise.
6509 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
6510 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
6511 than move-if-change.
6512 (DEP1): Modify for "gcc -MM".
6516 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
6517 Update dependencies.
6518 * Makefile.in: Regenerate.
6520 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
6522 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
6523 (md_begin): Likewise.
6524 (HAVE_AM33): New macro.
6525 (md_assemble): Use it. Match r_regs and xr_regs only if
6528 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6530 * as.h: #include "bin-bugs.h"
6531 * as.c (show_usage): Use REPORT_BUGS_TO.
6532 * gasp.c: #include "bin-bugs.h"
6533 (show_usage): Use REPORT_BUGS_TO.
6535 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
6537 Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
6539 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
6540 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
6543 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6545 * config/tc-i386.c (i386_immediate): Don't assume a constant
6546 immediate is necessarily 16 bits when in 16 bit code mode.
6547 (md_assemble): Instead set guess_suffix here after we have checked
6550 2000-04-02 Richard Henderson <rth@cygnus.com>
6552 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
6553 quantities. Correct right shift sign extension.
6554 (build_insn): Make `number' unsigned long. Mask top 6 bits of
6555 32-bit value when shifting into place.
6557 2000-04-01 Ian Lance Taylor <ian@zembu.com>
6559 * app.c: Add ATTRIBUTE_UNUSED as needed.
6560 * config/tc-ppc.c: Likewise.
6561 (ppc_size): Make unsigned long.
6562 (ppc_insert_operand): Add casts to avoid warnings.
6564 2000-03-31 Nick Clifton <nickc@cygnus.com>
6566 * config/tc-d10v.h (md_flush_pending_output): Define.
6568 2000-03-29 Nick Clifton <nickc@cygnus.com>
6570 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
6571 segment. Works for both BFD_ASSEMBLER and others.
6572 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
6574 2000-03-29 Nick Clifton <nickc@cygnus.com
6576 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
6578 2000-03-28 Alan Modra <alan@linuxcare.com.au>
6580 * listing.c (LISTING_LHS_WIDTH): Default depends on
6582 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
6584 2000-03-27 Ian Lance Taylor <ian@zembu.com>
6586 * config/tc-sh.c (md_show_usage): Use backslash before newline in
6589 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6591 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
6593 * config/tc-avr.c (mcu_types): Add missing initialiser.
6594 (md_pcrel_from_section): Add prototype.
6595 (avr_operand): Remove redundant test of unsigned < 0.
6596 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
6598 2000-03-27 Denis Chertykov <denisc@overta.ru>
6600 * config/tc-avr.c: New file for AVR support.
6601 * config/tc-avr.h: Likewise.
6602 * configure.in: Add AVR support.
6603 * configure: Regenerate.
6605 2000-03-26 Timothy Wall <twall@cygnus.com>
6607 * gasp.c (macro_op): Add new argument to check_macro call.
6608 Macro structure definitions moved to macro.h
6609 * sb.h: Add argument to prototype for input_scrub_include_sb.
6610 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
6611 nesting checks with an additional flag.
6612 (struct input_save): Add flag to indicate whether current sb
6613 should be checked for proper macro/conditional nesting.
6614 (input_scrub_push/pop): Save/restore nest check flag.
6615 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
6617 * macro.c (check_macro): Allow caller to retrieve parsed macro
6618 information if a pointer is provided. This information may be
6619 used by the new macro hooks.
6620 * macro.h: Update prototype for check_macro. Macro struct
6621 definitions moved here from macro.c/gasp.c.
6622 * read.c (read_a_source_file): Add parameter to check_macro call,
6623 and pass macro info to the macro hook, if defined.
6624 (input_scrub_insert_line): New. Allow insertion of a line of
6625 characters into the input stream.
6626 (input_scrub_insert_file): New. Allow insertion of an arbitrary
6627 file into the input stream.
6628 (s_include): Use input_scrub_insert_file.
6629 * internals.texi: Document new macro hooks.
6630 * as.h: New prototypes added.
6632 2000-03-26 Alan Modra <alan@linuxcare.com.au>
6634 * config/tc-i386.c: Don't start any as_bad or as_warn message with
6635 an initial capital letter.
6636 (i386_index_check): Reindent.
6638 2000-03-19 Nick Clifton <nickc@cygnus.com>
6640 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
6643 2000-03-17 Thomas de Lellis <tdel@windriver.com>
6645 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
6646 instruction operand bad if Rd > 7 when generating
6647 thumb instructions. Prevents for example,
6648 "adr r12,label" from silently failing and generating
6649 the wrong instruction.
6651 2000-03-17 Nick Clifton <nickc@cygnus.com>
6653 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
6654 that have a destingation >= 0x400000.
6655 Fix compile time warning messages.
6657 Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6659 * config/tc-sh.c (md_begin): When encountering insn that are
6660 not supported by the current arch, only change the name if
6661 its contents are the same as prev_name.
6662 (get_specific): If the the architecture doesn't match, fail.
6664 Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6666 * config/tc-sh.c (IDENT_CHAR): Define.
6667 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
6668 matching back where it came from.
6670 Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6672 * config/tc-sh.c (md_show_usage): Add description of -dsp.
6674 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
6676 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
6679 2000-03-15 Kazu Hirata <kazu@hxi.com>
6681 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
6683 Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
6685 * expr.c (operand) [case 'f']: When testing if '0f' can start a
6686 floating-point-number, make sure 'f' is in FLT_CHARS.
6688 Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
6690 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
6691 (s_lcomm_internal): Use it.
6692 * doc/internals.texi (CPU backend): Document it.
6693 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
6696 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
6698 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
6701 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
6702 implementation doesn't have special handling for switch
6704 (macro_build): Allow for code in sections other than .text.
6706 (mips_ip): Likewise.
6707 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
6708 Don't perform relocs if we will be outputting them.
6709 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
6710 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
6713 2000-03-09 Catherine Moore <clm@cygnus.com>
6715 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
6716 relocation type based on the entry in the fixup structure.
6717 Put S_IS_EXTERN processing back in.
6719 2000-03-08 H.J. Lu (hjl@gnu.org)
6721 * Makefile.am (install-exec-tooldir): Depend on
6722 install-exec-bindir for parallel make.
6723 * Makefile.in: Regenerated.
6725 2000-03-06 Nick Clifton <nickc@cygnus.com>
6727 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
6729 (md_parse_option): Parse -m32r command line switch - disable m32rx
6731 (md_show_usage): Document new option.
6733 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
6734 * doc/Makefile.in: Regenerate.
6735 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
6737 2000-03-02 Michael Meissner <meissner@redhat.com>
6739 * config/tc-d30v.c (check_range): Remove code that incorrectly
6740 sign extended values where bits < 32.
6742 2000-03-02 H.J. Lu (hjl@gnu.org)
6744 * configure.in: Support --enable-targets=all on ia32.
6745 * configure: Regenerated.
6747 2000-03-01 Nick Clifton <nickc@cygnus.com>
6749 * gasp.c (do_align): Remove bogus check of alignment value.
6751 2000-02-27 Thomas de Lellis <tdel@windriver.com>
6753 * config/obj-elf.c (elf_frob_symbol): Remove code which when
6754 TC_PPC was defined forced the type of a symbol with no other type
6757 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
6759 * doc/internals.texi (CPU backend): Mention that
6760 line_separator_chars do not break up comments. Fix typos for
6761 LEX_AT and LEX_NAME descriptions. Document operands for
6762 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
6763 description of md_create_short_jump usage. Document argument for
6764 md_undefined_symbol.
6766 2000-02-27 Jakub Jelinek <jakub@redhat.com>
6768 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
6769 (md_parse_option): Handle it.
6770 (md_show_usage): Document it.
6772 2000-02-27 Ian Lance Taylor <ian@zembu.com>
6774 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
6775 opcode, for the instruction `pal19'. From Andrea Arcangeli
6778 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
6780 * config/tc-i386.c (i386_immediate): Move constant operand sizing
6782 (md_assemble): To here, before template operands are matched.
6783 Also ensure a constant immediate is sign extended when we know the
6784 size is at most 16 bits. This is to catch cases like "add
6785 $0xffc0,%ax" where we don't know the size, and thus that the
6786 immediate can be represented as Imm8S until after parsing the
6788 (i386_displacement): Similarly sign extend 16 bit constant
6790 (md_assemble): Relax 16-bit jump constant range check to suit sign
6791 extended displacements.
6793 2000-02-26 Andreas Jaeger <aj@suse.de>
6795 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
6797 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
6799 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
6800 call operands when intel_syntax.
6801 (intel_float_operand): Return 2 for "fi...".
6802 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
6803 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
6804 earlier "SHORT" change.
6805 (md_assemble): When determining suffix from Regs, exclude
6808 2000-02-24 Nick Clifton <nickc@cygnus.com>
6810 * configure: Add arm-wince, mips-pe and sh-pe targets.
6811 * configure: Regenerate.
6813 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
6815 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
6816 "pe-mips" for the mips-pe target.
6818 * config/tc-arm.c (insns): Change displacement encoded in BL
6819 and B instructions if the target port is arm-wince.
6820 (do_ldst): Do not bias the relocation offset if the target
6822 (md_pcrel_from): Add in missing relocation offset bias if the
6823 target os arm-wince.
6825 * config/tc-mips.c (mips_target_format): Support COFF flavour.
6826 (md_begin): Disable -G support for mips-pe target.
6827 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
6828 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
6831 * config/tc-sh.c (md_begin): sh-pe target is little endian.
6832 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
6833 assembler, just set the alignment to 4.
6835 * config/te-wince-pe.h: New file for WinCE targets. Define
6838 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
6840 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
6841 string instructions.
6842 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
6843 (i386_intel_memory_operand): After finding a segment override,
6844 check again for no `[' before looking for a displacement. Bomb if
6845 more than one displacement rather than silently discarding the
6846 second and subsequent ones. Free strings malloc'd by
6847 build_displacement_string.
6849 2000-02-24 Catherine Moore <clm@cygnus.com>
6851 * config/obj-som.c (obj_pseudo_table): Add "weak".
6852 (obj_som_weak): New routine.
6854 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
6856 * config/tc-i386.c (union i386_op): New.
6857 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
6858 Throughout file replace occurences of disps[n], imms[n], regs[n]
6859 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
6860 intel mode operand swapping. Add assert in regKludge and
6861 fake_zero_displacement code. Test i.types[n] when outputting
6862 displacements and immediates. Combine output of Disp16 with
6864 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
6865 when in intel mode by (not) reversing fsub and fdiv operands
6866 before the template search. This fails for single operand
6867 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
6868 undefined. Instead fix the base_opcode after we've found the
6869 template. Move base_opcode xor with found_reverse_match from
6870 opcode output code to before this fix so we test for the correct
6872 (md_assemble): Don't use strcmp when deciding to ignore the suffix
6873 check in intel mode. Instead compare opcodes.
6875 * config/tc-i386.h (TC_RELOC): Delete.
6876 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
6877 with equivalent call to reloc.
6879 * as.h (flag_m68k_mri): Move declaration after target include, and
6880 only declare when TC_M68K defined. Define as zero otherwise.
6881 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
6882 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
6883 Define as zero otherwise.
6884 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
6885 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
6886 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
6887 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
6888 testing whether defined.
6889 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
6890 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
6891 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
6892 rather than testing whether defined.
6893 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
6894 (parse_mri_cons): Declare and use only when TC_M68K.
6895 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
6896 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
6897 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
6899 * NEWS: Mention IBM 370 support.
6901 2000-02-23 Richard Henderson <rth@cygnus.com>
6903 * config/tc-i386.c (md_assemble): When swapping operands for
6904 intel_syntax, assume everything that's not Imm or Disp is a
6907 2000-02-23 Linas Vepstas <linas@linas.org>
6909 * config/tc-i370.c, config/tc-i370.h: New files.
6910 * Makefile.am: Add support for Linux/IBM 370.
6911 * configure.in: Likewise.
6912 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
6913 * config/obj-elf.c: Include elf/i370.h
6914 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
6916 * Makefile.in: Regenerate.
6917 * configure: Regenerate.
6919 * doc/c-i370.texi: New file.
6920 * doc/all.texi: Include it.
6921 * doc/as.texinfo: And here.
6922 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
6923 * doc/Makefile.in: Regenerate.
6925 2000-02-19 Michael Meissner <meissner@redhat.com>
6927 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
6928 determine if an instruction can be used in parallel with an ADDppp
6929 or SUBppp instruction.
6931 2000-02-22 Andrew Haley <aph@cygnus.com>
6933 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
6935 2000-02-22 Andrew Haley <aph@cygnus.com>
6937 * config/tc-mips.c (mips_gp32): New variable.
6938 (macro_build) Use mips_gp32.
6940 (md_longopts): Add "-mgp32" and "-mgp64".
6941 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
6943 (OPTION_M7900): Change offset
6944 (OPTION_NO_M7900): Ditto.
6946 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6948 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
6949 warning, and bump it to 1.
6951 2000-02-22 Ian Lance Taylor <ian@zembu.com>
6953 From Brad Lucier <lucier@math.purdue.edu>:
6954 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
6957 2000-02-21 Catherine Moore <clm@cygnus.com>
6959 * config/tc-mips.c (MF_HILO_INSN): Define.
6960 (mips_7000_hilo_fix): Declare.
6961 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
6962 (md_parse_option): Check for 7000_HILO_FIX options.
6963 (OPTION_M7000_HILO_FIX): Define.
6964 (OPTION_NO_M7000_HILO_FIX): Define.
6965 * doc/c-mips.texi (-mfix7000): Describe.
6967 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6969 * listing.c (print_lines): Remove unused variable `end'.
6971 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
6972 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
6973 reloc_type when BFD_ASSEMBLER.
6974 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
6975 reloc_type when BFD_ASSEMBLER. Move common code out of switch
6976 statement and quell signed vs. unsigned comparison warning.
6978 2000-02-18 Nick Clifton <nickc@cygnus.com>
6980 * config/tc-d10v.c (find_opcode): Add a symbol's value to
6981 the computed frag offset, rather than overwriting it.
6983 Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6985 * config/tc-sh.c ("elf/sh.h"): Include.
6986 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
6987 (md.begin): Initialize target_arch.
6988 Only include opcodes in has table that match selected architecture.
6989 (parse_reg): Recognize register names for sh-dsp.
6990 (parse_at): Recognize post-modify addressing.
6991 (get_operands): The leading space is now optional.
6992 (get_specific): Remove FDREG_N support. Add support for sh-dsp
6993 arguments. Update valid_arch.
6994 (build_Mytes): Add support for SDT_REG_N.
6995 (find_cooked_opcode): New function, broken out of md_assemble.
6996 (assemble_ppi, sh_elf_final_processing): New functions.
6997 (md_assemble): Use find_cooked_opcode and assemble_ppi.
6998 (md_longopts, md_parse_option): New option: -dsp.
6999 * config/tc-sh.h (elf_tc_final_processing): Define.
7000 (sh_elf_final_processing): Declare.
7002 Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
7004 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
7005 the unwinder subspace. Save the current seg/subseg before creating
7008 2000-02-10 Nick Clifton <nickc@cygnus.com>
7010 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
7011 little endian targets.
7012 (INST_BYTE1): Redefine to handle big and little endian
7014 (cpu_type): New type: Select between M340 and M210.
7015 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
7016 instructions of the M340.
7017 (md_assemble): Add support for the MULSH and OPSR classes of
7019 (md_atof): Add support for little endian targets.
7020 (md_parse_option): Add support for -EL, -EB and -mcpu command
7022 (md_convert_frag): Add support for little endian targets.
7023 (md_apply_fix3): Add support for little endian targets.
7024 (md_number_to_chars): Add support for little endian targets.
7026 2000-02-10 Timothy Wall <twall@redhat.com>
7028 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
7029 defined, use it to verify the symbol just read should be a label.
7031 2000-02-10 Timothy Wall <twall@redhat.com>
7033 * app.c (do_scrub_chars): Handle "||" for parallel instructions
7034 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
7035 around colons when KEEP_WHITE_AROUND_COLON is defined.
7036 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
7037 and KEEP_WHITE_AROUND_COLON.
7039 2000-02-08 Timothy Wall <twall@redhat.com>
7041 * read.c (s_rept): Call do_repeat, which abstracts the repeat
7043 (do_repeat): New. Abstract repeat logic so that a "break" can be
7045 (end_repeat): New. Provide support for a "break" out of the
7047 * read.h: Add prototypes for new functions.
7049 2000-02-08 Timothy Wall <twall@redhat.com>
7051 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
7052 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
7053 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
7056 2000-02-08 Timothy Wall <twall@redhat.com>
7058 * read.c: Added elseif to directives table.
7059 * read.h: Added prototype for s_elseif.
7060 * doc/as.texinfo: Added description for elseif.
7061 * cond.c (s_elseif): New function
7063 2000-02-04 Timothy Wall <twall@redhat.com>
7065 * listing.c (print_lines): Remove conditionals causing bug in
7068 2000-02-03 Timothy Wall <twall@cygnus.com>
7070 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
7072 * frags.c (frag_new): Calculate fr_fix in octets
7073 (frag_now_fix) Return offset as target address offset (bytes).
7074 (frag_now_fix_octets) New - Return offset in octets (8-bit
7076 * frags.h: Added prototype for frag_now_fix_octets().
7077 Distinguish between octets and bytes in field descriptions.
7078 * listing.c (calc_hex): Account for octets vs bytes when
7079 printing addresses/offsets.
7080 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
7081 target is little-endian, print the octets in a word in big-endian
7082 order so that the display looks like a proper hexadecimal number,
7083 instead of having the octets reversed.
7084 * read.c (do_align): When recording alignment, alignment power
7085 should be in terms of target bytes (minimum addressible unit)
7087 (do_org) Convert ORG target address (byte) argument into an
7088 octet offset when generating a variable fragment.
7089 * symbols.c (resolve_symbol_value): Symbol final value
7090 converted to a target address offset (bytes) from its octet offset.
7091 * config/obj-coff.c (coff_frob_symbol): Symbol target address
7092 offset (bytes) is adjusted by the frag offset (octets) converted
7094 (coff_frob_section) Section alignment power is in terms of bytes;
7095 convert it to an octet alignment power when calculating size (and
7096 size mask) in octets. Don't modify the section size in order to
7097 "align" it for TI COFF, since that format has a different method
7098 for storing alignment information.
7100 2000-02-01 Timothy Wall <twall@cygnus.com>
7102 * stabs.c (generate_asm_file): Escape backslashes in stabs file
7103 entries, matching the way GCC generates them. If not escaped, the
7104 filename is encoded incorrectly.
7106 2000-01-31 Nick Clifton <nickc@cygnus.com>
7108 * config/tc-arm.c (reg_table): Add support for ATPCS register
7111 2000-01-31 Geoff Keating <geoffk@cygnus.com>
7113 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
7115 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
7117 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
7118 of a symbol when we really care about its value.
7120 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
7122 * config/tc-mcore.c (md_assemble): Give warning message if
7123 operands passes to instruction are more than the spec.
7125 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7127 * config/tc-arm.c (armadjust_symtab): If the assembler is in
7128 Thumb mode but the label seen was not declared as '.thumb_func'
7129 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
7130 correct disassembly of Thumb code bounded by non function labels.
7132 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7134 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
7135 Add dependencies for e-i386aout.o. Fix 2 comment lines.
7137 * Makefile.in: Same here.
7140 * configure.in: Set bfd_gas for i386-aout when primary target
7141 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
7142 we may need the primary te_file. Remove incorrect comment.
7144 * configure: Regenerate.
7146 * config/e-i386aout.c: New file.
7148 * as.c (USE_EMULATIONS): Move to before print_version_id.
7149 (struct emulation): Add i386aout.
7150 (show_usage): Split text strings. Reformat -a text. Add --em
7154 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
7155 (aout_format_ops): New.
7158 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
7159 preprocessor conditional and add aout USE_EMULATIONS tests.
7160 (read_a_source_file): Don't pass error strings to printf as
7164 * gasp.c (exp_get_abs): Don't pass error strings to printf as
7166 (do_data): Same here.
7167 (process_file): And here.
7170 * symbols.c (colon): Rewrite "already defined" fatal message
7171 code for aout with USE_EMULATIONS.
7174 * config/obj-aout.c (OBJ_HEADER): Define.
7175 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
7177 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
7178 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
7180 (obj_aout_type): Expand S_SET_OTHER here too.
7181 (obj_read_begin_hook): Remove.
7182 (aout_pop_insert): New.
7183 (obj_aout_s_get_other): New.
7184 (obj_aout_s_get_desc): New.
7185 (aout_format_ops): New.
7188 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
7189 gets aout_pseudo_table.
7190 (aout_pseudo_table): Declare.
7191 (obj_read_begin_hook): Define.
7194 * config/obj-coff.c (obj_pseudo_table): Rename to
7196 (coff_pop_insert): Use coff_pseudo_table.
7197 (coff_sec_sym_ok_for_reloc): Remove.
7198 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
7199 and comment all zero entries and remove #if 0 code.
7202 * config/obj-coff.h (obj_pop_insert): Define.
7203 (coff_pseudo_table): Declare.
7206 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
7207 s_get_size, s_set_size. Comment all zero entries.
7210 * config/obj-elf.c (elf_s_get_other): New function.
7211 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
7212 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
7213 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
7215 (obj_elf_parse_section_letters): Don't pass error strings to
7216 printf as format arg.
7219 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
7221 (elf_s_get_other): Declare.
7222 (S_GET_OTHER) Define as elf_s_get_other if not already
7224 (S_SET_OTHER): Only define when not already defined.
7225 (elf_obj_read_begin_hook): Declare.
7226 (obj_read_begin_hook): Define.
7227 (elf_obj_symbol_new_hook): Declare.
7228 (obj_symbol_new_hook): Define.
7231 * config/obj-multi.h: Add copyright header and protect against
7232 multiple inclusion. Add * to all function pointers.
7233 (OBJ_HEADER): If defined, include it rather than other defines
7235 (obj_frob_file_after_relocs): Test for NULL.
7236 (obj_symbol_new_hook): Here too.
7237 (obj_sec_sym_ok_for_reloc): And here.
7238 (S_GET_OTHER): Define.
7239 (S_GET_DESC): Define.
7240 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
7241 (OBJ_MAYBE_ELF): Update comment.
7243 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
7244 OBJ_AOUT preprocessor conditional and handle emulation by
7245 testing OUTPUT_FLAVOR.
7246 (i386_displacement): Here too.
7247 (md_section_align): Similarly here.
7248 (i386_target_format): Conditionally compile when more than one
7249 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
7250 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
7251 (i386_displacement): Here too.
7254 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
7255 Define TARGET_FORMAT for aout only when not multi.
7258 * config/te-multi.h: Delete file as it's identical to te-generic.h
7260 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
7262 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
7263 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
7266 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
7268 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
7271 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
7273 * config/tc-mips.c (mips_do_align): New function.
7274 * config/tc-mips.h (md_do_align): Define.
7276 2000-01-10 Philip Blundell <philb@gnu.org>
7278 * doc/c-arm.texi (ARM Options): Fix typo.
7279 (ARM-Chars): Correct description of `#'. Mention that `;' is a
7280 line separator for Linux.
7281 * doc/as.texinfo (Comments): Mention the ARM.
7283 2000-01-10 Philip Blundell <pb@futuretv.com>
7285 * configure.in (arm*-*-conix*): New target.
7286 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
7288 * configure: Regenerate.
7290 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7292 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
7293 (obj_elf_visibility): New function.
7295 * doc/as.texinfo (Visibility): New node: document visibility
7298 For older changes see ChangeLog-9899