Wed Oct 18 13:20:32 1995 Ken Raeburn * Use one active frag and one obstack per frag chain: * frags.c (frags): Variable deleted. (frag_alloc): New function. (frag_grow, frag_more, frag_variant, frag_now_fix, frag_append_1_char): Refer to frchain_now->frch_obstack instead of frags variable. (frag_new): Ditto. Verify that frch_last and frag_now match on entry and exit, and that old frag_now has non-zero type. Replace "know" uses with "assert". Use frag_alloc instead of mucking with obstack alignment. * frags.h (frags): Declaration deleted. * subsegs.h (struct frchain): Add new field frch_frag_now. * subsegs.c (frchains, dummy_frag, absolute_frchain): New static variables. (subsegs_begin): Initialize frchains obstack. Under gcc, don't give it any stricter alignment than frchainS structures need. Do not initialize frags obstack. Set frag_now to point to dummy_obstack. Initialize absolute_frchain. (subseg_set_rest): Save and restore frag_now in frch_frag_now field of frchainS. Don't create new frags on section switch, and use frag_alloc when creating a new frag chain. For absolute section, set frchain_now to absolute_frchain. Verify that frch_last and frag_now match on entry and exit. Initialize per-chain obstack, and under gcc, set required alignment to that needed by fragS structure. * write.c (chain_frchains_together_1): Verify fr_type is nonzero. * stabs.c (get_stab_string_offset): Only copy input string if a fresh copy is needed, not if the section already exists. (s_stab_generic): Cache stab section name to bypass lookups, since usually it will match. Could be made faster still by changing the memory allocation rules. (s_xstab): Cache section name to bypass repeated string allocation. * frags.c (frag_new): Deleted register declarations. * listing.c (frag_now): Don't declare. * as.c (chunksize): New variable. (debug_memory): New variable. (main): If debug_memory is set, reduce chunksize and _bfd_chunksize. * as.h (chunksize): Declare it. * read.c (read_begin): Use it. * config/tc-alpha.c (md_shortopts): Include 'g'. (md_parse_option): Ignore it. * Makefile.in (distclean): Remove Makefile and config.status from testsuite directory. (clean-here): Don't delete testsuite. Instead, delete only the files within it that would be generated by running tests. * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call frag_now_fix instead of accessing obstack info directly. * config/tc-arm.c (s_ltorg): Ditto. (md_assemble): Ditto. * config/tc-i386.c (md_assemble): Call frag_grow instead of obstack_room. Wed Oct 18 12:22:59 1995 Ken Raeburn * stabs.c (aout_process_stab): Insert debug symbol into symbol chain after parsing value expression, if any, to avoid separating continued .stabs lines. Mon Oct 16 10:56:41 1995 Ian Lance Taylor * config/tc-mips.c (mips_elf_pseudo_table): Remove. (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table. Mon Oct 16 07:07:37 1995 Michael Meissner * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for -mcom support and PPC_OPCODE_ANY for -many. (md_parse_option): Ditto. (ppc_arch): Ditto. (md_begin): For duplicate instructions, print all duplicates before aborting. Sun Oct 15 22:06:14 1995 Michael Meissner * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on common mode operation. (md_show_usage): Add -mcom to usage message. Fri Oct 13 13:32:45 1995 steve chamberlain * expr.c (op_rank): Add O_symbol_rva. * expr.h (operatorT): Add O_symbol_rva. * read.c (cons_worker): Set O_symbol_rva when necessary. * write.c (fix_new_exp): Understand O_symbol_rva. Tue Oct 10 11:34:14 1995 Ian Lance Taylor * config/tc-mips.c: Correct s_cons arguments. From Michael Joosten . Mon Oct 9 19:59:53 1995 Ian Lance Taylor * config/tc-ppc.c (ppc_macro): Make count unsigned. (ppc_biei): Set segment to now_seg and value to coff_n_line_nos. (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting the fix_line field. * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and make non-static. Change all users. * config/obj-coff.h (coff_n_line_nos): Declare. Fri Oct 6 16:24:27 1995 Ken Raeburn Mon Sep 25 22:49:32 1995 Andreas Schwab * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message. * config/obj-elf.c (obj_elf_common): Convert specified byte alignment to power of two. Set size of local bss symbol. * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name. Fri Oct 6 15:22:25 1995 Ian Lance Taylor * sb.c, macro.c: Decide whether to include or just as as.h does. Fri Oct 6 09:55:33 1995 Doug Evans * Makefile.in (site.exp): Fix setting of $srcdir. * config/tc-arm.c (md_atof): Fix little-endian output. * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for all coff targets. Thu Oct 5 20:17:30 1995 Ken Raeburn * doc/as.texinfo: Split out the NS32k family documentation, despite its being commented out for now. * doc/c-ns32k.texi: New file. * sb.c, macro.c: Include string.h. * Makefile.in (comparison): Only check *.o; we don't care if timestamps inserted by the native linker differ. * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern if alignment stricter than 4 bytes is requested; in that case, align to a 4-byte boundary first. Thu Sep 28 19:35:27 1995 Pat Rankin * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used uninitialized" warning for `Max_Source_Offset'. Wed Oct 4 16:17:02 1995 Kim Knuttila * config/tc-ppc.c (parse_toc_entry): New function to parse [toc] qualifiers and detect errors if present. (md_assemble): Add call to parse_toc_entry. Also added some support for the [tocv] qualifier. (ppc_pe_tocd): New function to support data in the toc section. Wed Oct 4 14:03:39 1995 Ian Lance Taylor * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for an absolute symbol. Tue Oct 3 12:18:19 1995 Ian Lance Taylor * config/tc-m68k.c (isbyte): Accept all values from -65536 to +65535, so ~VAL will not be rejected. * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode, skip characters after the pseudo-op. (s_else): Likewise. * read.c (get_line_sb): Don't look past buffer_limit. (s_include): In MRI mode, skip characters after the file name. Mon Oct 2 16:15:27 1995 Ian Lance Taylor * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit periods in register names. For older changes see ChangeLog.1.