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