x
[binutils-gdb.git] / gas / ChangeLog
1 Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
2
3 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
4 signed word.
5 (install_operand): Likewise.
6
7 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
8
9 Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
10
11 * configure.in (m88k-motorola-sysv*): New target.
12 * configure: Rebuild.
13 * config/te-delta88.h: New file.
14 * config/obj-coff.c (write_object_file): Use md_do_align if it is
15 defined.
16 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
17 (md_do_align): Define.
18 * config/tc-m88k.c: Include "subsegs.h".
19 (m88k_do_align): New function.
20
21 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
22 (COFF_NOLOAD_PROBLEM): Define.
23 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
24
25 Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
26
27 * config/tc-i386.c (md_assemble): For a jump instruction with
28 non-constant target, require 7 available bytes in the current
29 frag, not 6.
30
31 Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
32
33 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
34 bfd/libelf.h.
35
36 Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
37
38 * configure.in (alpha-*-linux*): Use ecoff.
39 * configure: Rebuild.
40 * ecoff.c (ecoff_directive_extern): New function.
41 (ecoff_directive_weakext): New function.
42 (ecoff_build_symbols): Handle weak symbols.
43 (ecoff_setup_ext): Likewise.
44 (ecoff_frob_symbol): Warn about weak common symbols.
45 * ecoff.h (ecoff_directive_extern): Declare.
46 (ecoff_directive_weakext): Declare.
47 * symbols.c (S_IS_WEAK): New function.
48 * symbols.h (S_IS_WEAK): Declare.
49 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
50 "weakext".
51 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
52 (s_extern): Remove.
53
54 Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
55
56 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
57
58 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
59 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
60 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
61 * config/obj-coff.c (coff_frob_symbol): Don't call
62 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
63 one. If OBJ_XCOFF, try to figure out whether the symbol is going
64 to be dropped.
65
66 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
67 (ppc_stab_symbol): New static variable.
68 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
69 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
70 sy_tc.real_name to the stab string.
71 (ppc_bc, ppc_ec): New static functions.
72 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
73 do anything.
74 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
75 suffix.
76 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
77 entries.
78
79 * input-scrub.c (input_scrub_push): Reset sb_index.
80
81 Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
82
83 * listing.c (listing_newline): Don't create a frag in the absolute
84 section.
85
86 Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
87
88 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
89 (ppc_csect): Move most of the code to ppc_change_csect, and call
90 it.
91 (ppc_change_csect): New static function, taken from ppc_csect.
92 (ppc_section): New static function.
93 (ppc_saw_abs): New static varable.
94 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
95 a symbol has no csect.
96 (ppc_adjust_symtab): New function.
97 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
98 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
99
100 * write.c (write_object_file): If tc_adjust_symtab is defined,
101 call it just before the call to obj_adjust_symtab.
102
103 * symbols.c (symbol_find_or_make): Change name to be const.
104 * symbols.h (symbol_find_or_make): Update declaration.
105
106 Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
107
108 * doc/as.texinfo (Align): Mention SH.
109 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
110 .align value.
111 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
112 (Z8000 Directives, even): Don't give numeric align value, instead
113 explain behavior.
114
115 Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
116
117 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
118 instruction.
119
120 Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
121
122 * Makefile.in (diststuff): Also make info.
123 (maintainer-clean realclean): Also make clean-info.
124
125 Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
126
127 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
128 (pa_subspace): For ".nsubspa", always create a new subspace
129 with the given attributes, even if one already exists with the
130 same name.
131
132 Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
133
134 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
135 TC_FORCE_RELOCATION, taking an additional section argument. If
136 the section of the target symbol is not the same as the current
137 section, always force the relocation to be used.
138 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
139
140 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
141 md_pcrel_from function, taking an additional section argument.
142 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
143
144 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
145 older TC_FORCE_RELOCATION if not defined.
146 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
147 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
148 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
149 TC_FORCE_RELOCATION.
150
151 Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
152
153 * input-scrub.c (as_where): Set name to null pointer if we don't
154 have a file name.
155 * messages.c (identify): Only print filename if non-null.
156 (as_show_where): Ditto, for line number too.
157 (as_warn_internal, as_bad_internal): Ditto.
158
159 * input-file.c (input_file_open): If the input file can't be
160 opened, consider it an error.
161
162 Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
163
164 * config/tc-mips.c: Added mips_4100 control, and support for
165 accepting the 4100 as a MIPS architecture variant (md_begin,
166 macro_build, mips_ip, md_parse_option). Adding suitable
167 command-line OPTIONs, and updating the help text (md_show_usage).
168
169 Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
170
171 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
172 BFD_ASSEMBLER is defined.
173
174 * Use one active frag and one obstack per frag chain:
175 * frags.c (frags): Variable deleted.
176 (frag_alloc): New function.
177 (frag_grow, frag_more, frag_variant, frag_now_fix,
178 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
179 frags variable.
180 (frag_new): Ditto. Verify that frch_last and frag_now match on
181 entry and exit, and that old frag_now has non-zero type. Replace
182 "know" uses with "assert". Use frag_alloc instead of mucking with
183 obstack alignment.
184 * frags.h (frags): Declaration deleted.
185 * subsegs.h (struct frchain): Add new field frch_frag_now.
186 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
187 variables.
188 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
189 give it any stricter alignment than frchainS structures need. Do
190 not initialize frags obstack. Set frag_now to point to
191 dummy_obstack. Initialize absolute_frchain.
192 (subseg_set_rest): Save and restore frag_now in frch_frag_now
193 field of frchainS. Don't create new frags on section switch, and
194 use frag_alloc when creating a new frag chain. For absolute
195 section, set frchain_now to absolute_frchain. Verify that
196 frch_last and frag_now match on entry and exit. Initialize
197 per-chain obstack, and under gcc, set required alignment to that
198 needed by fragS structure.
199
200 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
201
202 * stabs.c (get_stab_string_offset): Only copy input string if a
203 fresh copy is needed, not if the section already exists.
204 (s_stab_generic): Cache stab section name to bypass lookups, since
205 usually it will match. Could be made faster still by changing the
206 memory allocation rules.
207 (s_xstab): Cache section name to bypass repeated string
208 allocation.
209
210 * frags.c (frag_new): Deleted register declarations.
211
212 * listing.c (frag_now): Don't declare.
213
214 * as.c (chunksize): New variable.
215 (debug_memory): New variable.
216 (main): If debug_memory is set, reduce chunksize and
217 _bfd_chunksize.
218 * as.h (chunksize): Declare it.
219 * read.c (read_begin): Use it.
220
221 * config/tc-alpha.c (md_shortopts): Include 'g'.
222 (md_parse_option): Ignore it.
223
224 * Makefile.in (distclean): Remove Makefile and config.status from
225 testsuite directory.
226 (clean-here): Don't delete testsuite. Instead, delete only the
227 files within it that would be generated by running tests.
228
229 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
230 frag_now_fix instead of accessing obstack info directly.
231 * config/tc-arm.c (s_ltorg): Ditto.
232 (md_assemble): Ditto.
233
234 * config/tc-i386.c (md_assemble): Call frag_grow instead of
235 obstack_room.
236
237 Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
238
239 * stabs.c (aout_process_stab): Insert debug symbol into symbol
240 chain after parsing value expression, if any, to avoid separating
241 continued .stabs lines.
242
243 Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
244
245 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
246 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
247
248 Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
249
250 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
251 -mcom support and PPC_OPCODE_ANY for -many.
252 (md_parse_option): Ditto.
253 (ppc_arch): Ditto.
254 (md_begin): For duplicate instructions, print all duplicates
255 before aborting.
256
257 Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
258
259 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
260 common mode operation.
261 (md_show_usage): Add -mcom to usage message.
262
263 Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
264
265 * expr.c (op_rank): Add O_symbol_rva.
266 * expr.h (operatorT): Add O_symbol_rva.
267 * read.c (cons_worker): Set O_symbol_rva when necessary.
268 * write.c (fix_new_exp): Understand O_symbol_rva.
269
270 Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
271
272 * config/tc-mips.c: Correct s_cons arguments. From Michael
273 Joosten <joost@ori.cadlab.de>.
274
275 Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
276
277 * config/tc-ppc.c (ppc_macro): Make count unsigned.
278 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
279 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
280 the fix_line field.
281 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
282 make non-static. Change all users.
283 * config/obj-coff.h (coff_n_line_nos): Declare.
284
285 Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
286
287 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
288
289 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
290
291 * config/obj-elf.c (obj_elf_common): Convert specified byte
292 alignment to power of two. Set size of local bss symbol.
293
294 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
295
296 Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
297
298 * sb.c, macro.c: Decide whether to include <string.h> or
299 <strings.h> just as as.h does.
300
301 Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
302
303 * Makefile.in (site.exp): Fix setting of $srcdir.
304
305 * config/tc-arm.c (md_atof): Fix little-endian output.
306 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
307 all coff targets.
308
309 Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
310
311 * doc/as.texinfo: Split out the NS32k family documentation,
312 despite its being commented out for now.
313 * doc/c-ns32k.texi: New file.
314
315 * sb.c, macro.c: Include string.h.
316
317 * Makefile.in (comparison): Only check *.o; we don't care if
318 timestamps inserted by the native linker differ.
319
320 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
321 if alignment stricter than 4 bytes is requested; in that case,
322 align to a 4-byte boundary first.
323
324 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
325
326 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
327 uninitialized" warning for `Max_Source_Offset'.
328
329 Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
330
331 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
332 qualifiers and detect errors if present.
333 (md_assemble): Add call to parse_toc_entry. Also added some support
334 for the [tocv] qualifier.
335 (ppc_pe_tocd): New function to support data in the toc section.
336
337 Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
338
339 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
340 an absolute symbol.
341
342 Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
343
344 * config/tc-m68k.c (isword): Accept all values from -65536 to
345 +65535, so ~VAL will not be rejected.
346
347 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
348 skip characters after the pseudo-op.
349 (s_else): Likewise.
350 * read.c (get_line_sb): Don't look past buffer_limit.
351 (s_include): In MRI mode, skip characters after the file name.
352
353 Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
354
355 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
356 periods in register names.
357
358 For older changes see ChangeLog.1.