1 Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
3 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
5 * expr.c (operand): Handle MRI suffixes after unadorned 0.
7 Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
10 * Makefile.in (VERSION): Updated to 2.6.
12 * config/obj-coff.c (write_object_file): Change use of md_do_align
13 to pass a pointer rather than a fill value, to match other uses.
15 Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
17 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
19 * as.c (main): Move md_end call to just after call to
20 perform_an_assembly_pass. Delete cpu-specific code here.
21 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
23 * config/tc-rce.c (md_end): Deleted.
24 * config/tc-rce.h (md_end): New macro, calls dump_literals.
26 * config/tc-arm.c (md_end): Unused function deleted.
27 * config/tc-ns32k.c (md_end): Ditto.
29 * config/tc-i386.c (i386_align_code): New function, moved here
30 from HANDLE_ALIGN macro.
31 * config/tc-i386.h (HANDLE_ALIGN): Call it.
33 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
35 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
38 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
40 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
41 multi-byte nops to avoid changing gcc. The necessary gcc change
42 might break old assemblers.
44 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
46 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
47 generate optimal multi-byte nop instructions for ".align n"
48 ".align n,0x90", and aligns requiring more than 15 bytes of
49 padding still generate multiple 0x90's as before.
51 Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
53 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
55 Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
57 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
59 * mpw-make.sed: Reorder commands to make sed happier.
60 * config/te-macos.h: New file.
61 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
63 Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
65 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
67 (md_apply_fix): Likewise.
69 Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
71 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
72 generate a reloc which the linker will not handle correctly. Fix
73 overflow checking--R_IREL is 18 bits, not 17.
75 Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
77 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
78 from a PC relative reloc if TC_A29K.
80 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
83 * config/tc-a29k.c (md_operand): Handle $float, $double, and
84 $extend. Based on code from Eric Freudenthal
85 <freudenthal@nyu.edu>.
86 * config/tc-a29k.h (LEX_DOLLAR): Define.
87 * read.c (LEX_DOLLAR): Define if not defined.
88 (lex_type): Use LEX_DOLLAR.
90 Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
92 * configure.in (a29k-nyu-sym1): New target, just like other a29k
95 Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
97 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
99 Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
101 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
102 used only by "dlltool.c".
104 Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
106 * config/tc-alpha.c: Undefine inline if not __GNUC__.
107 (md_pseudo_table): Don't define "extern".
109 Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
111 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
113 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
115 Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
117 * macro.c (macro_expand_body): Don't warn about == with a
118 nonexistent parameter, in case it is in a comment field.
120 * as.c (main): On TC_A29K, call macro_init with macro_alternate
122 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
123 set, even if macro_alternate is set.
124 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
125 (sub_actual): If macro_strip_at, and kind is '@', don't look up
126 the token unless it ended in '@'.
127 * config/tc-a29k.c (line_separator_chars): Remove '@'.
128 * doc/c-a29k.texi: Document macro usage on A29K.
130 Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
132 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
134 (install_operand): Likewise.
136 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
138 Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
140 * configure.in (m88k-motorola-sysv*): New target.
141 * configure: Rebuild.
142 * config/te-delta88.h: New file.
143 * config/obj-coff.c (write_object_file): Use md_do_align if it is
145 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
146 (md_do_align): Define.
147 * config/tc-m88k.c: Include "subsegs.h".
148 (m88k_do_align): New function.
150 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
151 (COFF_NOLOAD_PROBLEM): Define.
152 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
154 Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
156 * config/tc-i386.c (md_assemble): For a jump instruction with
157 non-constant target, require 7 available bytes in the current
160 Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
162 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
165 Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
167 * configure.in (alpha-*-linux*): Use ecoff.
168 * configure: Rebuild.
169 * ecoff.c (ecoff_directive_extern): New function.
170 (ecoff_directive_weakext): New function.
171 (ecoff_build_symbols): Handle weak symbols.
172 (ecoff_setup_ext): Likewise.
173 (ecoff_frob_symbol): Warn about weak common symbols.
174 * ecoff.h (ecoff_directive_extern): Declare.
175 (ecoff_directive_weakext): Declare.
176 * symbols.c (S_IS_WEAK): New function.
177 * symbols.h (S_IS_WEAK): Declare.
178 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
180 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
183 Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
185 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
187 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
188 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
189 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
190 * config/obj-coff.c (coff_frob_symbol): Don't call
191 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
192 one. If OBJ_XCOFF, try to figure out whether the symbol is going
195 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
196 (ppc_stab_symbol): New static variable.
197 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
198 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
199 sy_tc.real_name to the stab string.
200 (ppc_bc, ppc_ec): New static functions.
201 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
203 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
205 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
208 * input-scrub.c (input_scrub_push): Reset sb_index.
210 Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
212 * listing.c (listing_newline): Don't create a frag in the absolute
215 Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
217 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
218 (ppc_csect): Move most of the code to ppc_change_csect, and call
220 (ppc_change_csect): New static function, taken from ppc_csect.
221 (ppc_section): New static function.
222 (ppc_saw_abs): New static varable.
223 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
224 a symbol has no csect.
225 (ppc_adjust_symtab): New function.
226 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
227 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
229 * write.c (write_object_file): If tc_adjust_symtab is defined,
230 call it just before the call to obj_adjust_symtab.
232 * symbols.c (symbol_find_or_make): Change name to be const.
233 * symbols.h (symbol_find_or_make): Update declaration.
235 Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
237 * doc/as.texinfo (Align): Mention SH.
238 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
240 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
241 (Z8000 Directives, even): Don't give numeric align value, instead
244 Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
246 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
249 Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
251 * Makefile.in (diststuff): Also make info.
252 (maintainer-clean realclean): Also make clean-info.
254 Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
256 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
257 (pa_subspace): For ".nsubspa", always create a new subspace
258 with the given attributes, even if one already exists with the
261 Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
263 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
264 TC_FORCE_RELOCATION, taking an additional section argument. If
265 the section of the target symbol is not the same as the current
266 section, always force the relocation to be used.
267 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
269 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
270 md_pcrel_from function, taking an additional section argument.
271 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
273 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
274 older TC_FORCE_RELOCATION if not defined.
275 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
276 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
277 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
280 Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
282 * input-scrub.c (as_where): Set name to null pointer if we don't
284 * messages.c (identify): Only print filename if non-null.
285 (as_show_where): Ditto, for line number too.
286 (as_warn_internal, as_bad_internal): Ditto.
288 * input-file.c (input_file_open): If the input file can't be
289 opened, consider it an error.
291 Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
293 * config/tc-mips.c: Added mips_4100 control, and support for
294 accepting the 4100 as a MIPS architecture variant (md_begin,
295 macro_build, mips_ip, md_parse_option). Adding suitable
296 command-line OPTIONs, and updating the help text (md_show_usage).
298 Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
300 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
301 BFD_ASSEMBLER is defined.
303 * Use one active frag and one obstack per frag chain:
304 * frags.c (frags): Variable deleted.
305 (frag_alloc): New function.
306 (frag_grow, frag_more, frag_variant, frag_now_fix,
307 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
309 (frag_new): Ditto. Verify that frch_last and frag_now match on
310 entry and exit, and that old frag_now has non-zero type. Replace
311 "know" uses with "assert". Use frag_alloc instead of mucking with
313 * frags.h (frags): Declaration deleted.
314 * subsegs.h (struct frchain): Add new field frch_frag_now.
315 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
317 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
318 give it any stricter alignment than frchainS structures need. Do
319 not initialize frags obstack. Set frag_now to point to
320 dummy_obstack. Initialize absolute_frchain.
321 (subseg_set_rest): Save and restore frag_now in frch_frag_now
322 field of frchainS. Don't create new frags on section switch, and
323 use frag_alloc when creating a new frag chain. For absolute
324 section, set frchain_now to absolute_frchain. Verify that
325 frch_last and frag_now match on entry and exit. Initialize
326 per-chain obstack, and under gcc, set required alignment to that
327 needed by fragS structure.
329 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
331 * stabs.c (get_stab_string_offset): Only copy input string if a
332 fresh copy is needed, not if the section already exists.
333 (s_stab_generic): Cache stab section name to bypass lookups, since
334 usually it will match. Could be made faster still by changing the
335 memory allocation rules.
336 (s_xstab): Cache section name to bypass repeated string
339 * frags.c (frag_new): Deleted register declarations.
341 * listing.c (frag_now): Don't declare.
343 * as.c (chunksize): New variable.
344 (debug_memory): New variable.
345 (main): If debug_memory is set, reduce chunksize and
347 * as.h (chunksize): Declare it.
348 * read.c (read_begin): Use it.
350 * config/tc-alpha.c (md_shortopts): Include 'g'.
351 (md_parse_option): Ignore it.
353 * Makefile.in (distclean): Remove Makefile and config.status from
355 (clean-here): Don't delete testsuite. Instead, delete only the
356 files within it that would be generated by running tests.
358 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
359 frag_now_fix instead of accessing obstack info directly.
360 * config/tc-arm.c (s_ltorg): Ditto.
361 (md_assemble): Ditto.
363 * config/tc-i386.c (md_assemble): Call frag_grow instead of
366 Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
368 * stabs.c (aout_process_stab): Insert debug symbol into symbol
369 chain after parsing value expression, if any, to avoid separating
370 continued .stabs lines.
372 Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
374 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
375 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
377 Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
379 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
380 -mcom support and PPC_OPCODE_ANY for -many.
381 (md_parse_option): Ditto.
383 (md_begin): For duplicate instructions, print all duplicates
386 Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
388 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
389 common mode operation.
390 (md_show_usage): Add -mcom to usage message.
392 Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
394 * expr.c (op_rank): Add O_symbol_rva.
395 * expr.h (operatorT): Add O_symbol_rva.
396 * read.c (cons_worker): Set O_symbol_rva when necessary.
397 * write.c (fix_new_exp): Understand O_symbol_rva.
399 Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
401 * config/tc-mips.c: Correct s_cons arguments. From Michael
402 Joosten <joost@ori.cadlab.de>.
404 Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
406 * config/tc-ppc.c (ppc_macro): Make count unsigned.
407 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
408 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
410 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
411 make non-static. Change all users.
412 * config/obj-coff.h (coff_n_line_nos): Declare.
414 Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
416 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
418 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
420 * config/obj-elf.c (obj_elf_common): Convert specified byte
421 alignment to power of two. Set size of local bss symbol.
423 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
425 Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
427 * sb.c, macro.c: Decide whether to include <string.h> or
428 <strings.h> just as as.h does.
430 Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
432 * Makefile.in (site.exp): Fix setting of $srcdir.
434 * config/tc-arm.c (md_atof): Fix little-endian output.
435 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
438 Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
440 * doc/as.texinfo: Split out the NS32k family documentation,
441 despite its being commented out for now.
442 * doc/c-ns32k.texi: New file.
444 * sb.c, macro.c: Include string.h.
446 * Makefile.in (comparison): Only check *.o; we don't care if
447 timestamps inserted by the native linker differ.
449 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
450 if alignment stricter than 4 bytes is requested; in that case,
451 align to a 4-byte boundary first.
453 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
455 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
456 uninitialized" warning for `Max_Source_Offset'.
458 Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
460 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
461 qualifiers and detect errors if present.
462 (md_assemble): Add call to parse_toc_entry. Also added some support
463 for the [tocv] qualifier.
464 (ppc_pe_tocd): New function to support data in the toc section.
466 Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
468 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
471 Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
473 * config/tc-m68k.c (isword): Accept all values from -65536 to
474 +65535, so ~VAL will not be rejected.
476 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
477 skip characters after the pseudo-op.
479 * read.c (get_line_sb): Don't look past buffer_limit.
480 (s_include): In MRI mode, skip characters after the file name.
482 Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
484 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
485 periods in register names.
487 For older changes see ChangeLog.1.