Fix PR 8255
[binutils-gdb.git] / gas / ChangeLog
1 Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2
3 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
4 TC_FORCE_RELOCATION, taking an additional section argument. If
5 the section of the target symbol is not the same as the current
6 section, always force the relocation to be used.
7 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
8
9 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
10 md_pcrel_from function, taking an additional section argument.
11 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
12
13 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
14 older TC_FORCE_RELOCATION if not defined.
15 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
16 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
17 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
18 TC_FORCE_RELOCATION.
19
20 Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
21
22 * input-scrub.c (as_where): Set name to null pointer if we don't
23 have a file name.
24 * messages.c (identify): Only print filename if non-null.
25 (as_show_where): Ditto, for line number too.
26 (as_warn_internal, as_bad_internal): Ditto.
27
28 * input-file.c (input_file_open): If the input file can't be
29 opened, consider it an error.
30
31 Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
32
33 * config/tc-mips.c: Added mips_4100 control, and support for
34 accepting the 4100 as a MIPS architecture variant (md_begin,
35 macro_build, mips_ip, md_parse_option). Adding suitable
36 command-line OPTIONs, and updating the help text (md_show_usage).
37
38 Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
39
40 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
41 BFD_ASSEMBLER is defined.
42
43 * Use one active frag and one obstack per frag chain:
44 * frags.c (frags): Variable deleted.
45 (frag_alloc): New function.
46 (frag_grow, frag_more, frag_variant, frag_now_fix,
47 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
48 frags variable.
49 (frag_new): Ditto. Verify that frch_last and frag_now match on
50 entry and exit, and that old frag_now has non-zero type. Replace
51 "know" uses with "assert". Use frag_alloc instead of mucking with
52 obstack alignment.
53 * frags.h (frags): Declaration deleted.
54 * subsegs.h (struct frchain): Add new field frch_frag_now.
55 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
56 variables.
57 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
58 give it any stricter alignment than frchainS structures need. Do
59 not initialize frags obstack. Set frag_now to point to
60 dummy_obstack. Initialize absolute_frchain.
61 (subseg_set_rest): Save and restore frag_now in frch_frag_now
62 field of frchainS. Don't create new frags on section switch, and
63 use frag_alloc when creating a new frag chain. For absolute
64 section, set frchain_now to absolute_frchain. Verify that
65 frch_last and frag_now match on entry and exit. Initialize
66 per-chain obstack, and under gcc, set required alignment to that
67 needed by fragS structure.
68
69 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
70
71 * stabs.c (get_stab_string_offset): Only copy input string if a
72 fresh copy is needed, not if the section already exists.
73 (s_stab_generic): Cache stab section name to bypass lookups, since
74 usually it will match. Could be made faster still by changing the
75 memory allocation rules.
76 (s_xstab): Cache section name to bypass repeated string
77 allocation.
78
79 * frags.c (frag_new): Deleted register declarations.
80
81 * listing.c (frag_now): Don't declare.
82
83 * as.c (chunksize): New variable.
84 (debug_memory): New variable.
85 (main): If debug_memory is set, reduce chunksize and
86 _bfd_chunksize.
87 * as.h (chunksize): Declare it.
88 * read.c (read_begin): Use it.
89
90 * config/tc-alpha.c (md_shortopts): Include 'g'.
91 (md_parse_option): Ignore it.
92
93 * Makefile.in (distclean): Remove Makefile and config.status from
94 testsuite directory.
95 (clean-here): Don't delete testsuite. Instead, delete only the
96 files within it that would be generated by running tests.
97
98 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
99 frag_now_fix instead of accessing obstack info directly.
100 * config/tc-arm.c (s_ltorg): Ditto.
101 (md_assemble): Ditto.
102
103 * config/tc-i386.c (md_assemble): Call frag_grow instead of
104 obstack_room.
105
106 Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
107
108 * stabs.c (aout_process_stab): Insert debug symbol into symbol
109 chain after parsing value expression, if any, to avoid separating
110 continued .stabs lines.
111
112 Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
113
114 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
115 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
116
117 Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
118
119 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
120 -mcom support and PPC_OPCODE_ANY for -many.
121 (md_parse_option): Ditto.
122 (ppc_arch): Ditto.
123 (md_begin): For duplicate instructions, print all duplicates
124 before aborting.
125
126 Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
127
128 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
129 common mode operation.
130 (md_show_usage): Add -mcom to usage message.
131
132 Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
133
134 * expr.c (op_rank): Add O_symbol_rva.
135 * expr.h (operatorT): Add O_symbol_rva.
136 * read.c (cons_worker): Set O_symbol_rva when necessary.
137 * write.c (fix_new_exp): Understand O_symbol_rva.
138
139 Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
140
141 * config/tc-mips.c: Correct s_cons arguments. From Michael
142 Joosten <joost@ori.cadlab.de>.
143
144 Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
145
146 * config/tc-ppc.c (ppc_macro): Make count unsigned.
147 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
148 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
149 the fix_line field.
150 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
151 make non-static. Change all users.
152 * config/obj-coff.h (coff_n_line_nos): Declare.
153
154 Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
155
156 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
157
158 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
159
160 * config/obj-elf.c (obj_elf_common): Convert specified byte
161 alignment to power of two. Set size of local bss symbol.
162
163 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
164
165 Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
166
167 * sb.c, macro.c: Decide whether to include <string.h> or
168 <strings.h> just as as.h does.
169
170 Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
171
172 * Makefile.in (site.exp): Fix setting of $srcdir.
173
174 * config/tc-arm.c (md_atof): Fix little-endian output.
175 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
176 all coff targets.
177
178 Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
179
180 * doc/as.texinfo: Split out the NS32k family documentation,
181 despite its being commented out for now.
182 * doc/c-ns32k.texi: New file.
183
184 * sb.c, macro.c: Include string.h.
185
186 * Makefile.in (comparison): Only check *.o; we don't care if
187 timestamps inserted by the native linker differ.
188
189 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
190 if alignment stricter than 4 bytes is requested; in that case,
191 align to a 4-byte boundary first.
192
193 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
194
195 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
196 uninitialized" warning for `Max_Source_Offset'.
197
198 Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
199
200 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
201 qualifiers and detect errors if present.
202 (md_assemble): Add call to parse_toc_entry. Also added some support
203 for the [tocv] qualifier.
204 (ppc_pe_tocd): New function to support data in the toc section.
205
206 Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
207
208 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
209 an absolute symbol.
210
211 Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
212
213 * config/tc-m68k.c (isbyte): Accept all values from -65536 to
214 +65535, so ~VAL will not be rejected.
215
216 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
217 skip characters after the pseudo-op.
218 (s_else): Likewise.
219 * read.c (get_line_sb): Don't look past buffer_limit.
220 (s_include): In MRI mode, skip characters after the file name.
221
222 Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
223
224 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
225 periods in register names.
226
227 For older changes see ChangeLog.1.