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