* config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT instead of long
[binutils-gdb.git] / gas / ChangeLog
1 Tue Dec 20 14:56:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2
3 * config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT
4 instead of long and unsigned long.
5 (md_apply_fix): Cast value before passing it.
6
7 * config/obj-aout.h, config/obj-coff.c, config/obj-elf.h,
8 config/obj-som.h, config/tc-h8500.c, config/tc-hppa.c,
9 config/tc-hppa.h, config/tc-sh.c, config/tc-z8k.c: Don't rely on
10 use of ".." when including header files.
11 start-sanitize-rce
12 * config/tc-rce.c: Ditto.
13 end-sanitize-rce
14
15 * config/obj-coff.c (fixup_segment): Reformat condition in an `if'
16 statement.
17
18 * Makefile.in (SUBDIR_INCLUDES): Deleted.
19
20 Tue Dec 20 13:40:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
21
22 * config/obj-coff.h: Include bfd/libcoff.h, not libcoff.h.
23
24 start-sanitize-arc
25 Tue Dec 20 09:10:40 1994 Doug Evans <dje@canuck.cygnus.com>
26
27 * config/tc-arc.c: Delete lots of sparc pseudo-ops.
28 end-sanitize-arc
29
30 Mon Dec 19 16:53:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
31
32 * config/tc-mips.c (load_register): Rewrite to handle O_big 64 bit
33 constants.
34 (mips_ip): Accept O_big constants in case 'I'. Change case
35 'i'/'j' to treat an O_big constant as an out of range value.
36
37 Mon Dec 19 14:15:07 1994 Jeff Law (law@snake.cs.utah.edu)
38
39 * config/tc-hppa.c (pa_subspace): Make sure SEC_HAS_CONTENTS is
40 clear for a section with the "ZERO" attribute.
41
42 * Reduce useless symbols for ELF in an attempt to make smaller
43 objects and speed up the linker.
44 * config/tc-hppa.c (struct call_info): Replace end_symbol field
45 with a size field.
46 (hppa_elf_mark_end_function): Delete unneeded function.
47 (pa_build_unwind_subspace): For the 2nd unwind relocation, use
48 the function symbol + function size instead of a special symbol
49 for the end of the function.
50 (process_exit): Compute the function size here. Don't call
51 hppa_elf_mark_end_of_function anymore.
52 (pa_procend): Likewise.
53 (hppa_fix_adjustable): Only reject 32bit relocations for SOM.
54 (elf_hppa_final_processing): Simplify.
55
56 start-sanitize-arc
57 Mon Dec 19 12:57:09 1994 Doug Evans <dje@canuck.cygnus.com>
58
59 * config/tc-arc.c (arc_insert_operand): Change reg parm to pointer
60 to table entry. All callers changed.
61 (md_shortopts): New argument -mmult.
62 (md_parse_option): Recognize it.
63 (md_show_usage): Print it.
64 (md_begin): If -mmult, say we have the new multiply and shift insns.
65 (md_assemble): Fix reloc generation for 32 bit immediate values.
66 Clean up modifier handling. Try next insn if fake operand says there's
67 an error. Update to new syntax of insertion/extraction fns.
68 Recognize predefined aux regs. Don't abort if insertion fn missing.
69 end-sanitize-arc
70
71 Mon Dec 19 13:49:07 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
72
73 * configure.in: Recognize mips-sony-bsd and mips-dec-bsd, but
74 reject other vendors until we can be sure we're consistent with
75 bfd.
76
77 * config/obj-vms.c (Create_VMS_Object_File): Instead of formatting
78 a buffer to pass to `error', just call `as_fatal' directly.
79 (VMS_Psect_Spec): Ditto.
80 (VMS_TBT_Module_Begin, VMS_TBT_Source_File, gen1,
81 VMS_typedef_parse, VMS_LSYM_Parse, VMS_Emit_Globalvalues): Call
82 as_tsktsk instead of printf.
83 (VMS_TBT_Module_Begin, VMS_TBT_Line_PC_Correlation,
84 VMS_TBT_Source_File, VMS_TBT_Source_Lines,
85 VMS_Store_Repeated_Data, VMS_Check_For_Main): Use explicit
86 integers rather than sizeof expressions using basic integer types,
87 in case host and target aren't the same. Use memcpy or COPY_*
88 macros instead of possibly unaligned word or longword assignment.
89
90 * config/obj-vms.h (OBJ_SYMFIELD_TYPE): New macro.
91 * config/obj-vms.c (VMS_Store_PIC_Symbol_Reference,
92 VMS_Check_For_Main, VMS_write_object_file): Use sy_obj instead of
93 forcing sy_number to hold a pointer.
94
95 Fri Dec 16 14:40:16 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
96
97 * config/tc-sh.c (md_begin): Don't fill in md_relax_table here.
98 (md_relax_table): Use static initialization.
99
100 * config/tc-h8300.c (parse_exp, get_operands, clever_message,
101 md_assemble, tc_crawl_symbol_chain, md_undefined_symbol,
102 tc_headers_hook, md_operand, md_number_to_chars): Don't use DEFUN.
103
104 * Makefile.in (CHECKFLAGS): Don't pass AS_FOR_TARGET,
105 CC_FOR_TARGET, OBJDUMP_FOR_TARGET, NM_FOR_TARGET; they're not
106 used.
107 (AS_FOR_TARGET, CC_FOR_TARGET, OBJDUMP, OBJDUMP_FOR_TARGET, NM,
108 NM_FOR_TARGET): Don't define.
109 (VMS_OTHER_OBJS): Add xmalloc.o and xexit.o from libiberty.
110 (tooldir): Use exec_prefix, not libdir.
111
112 Fri Dec 16 11:07:10 1994 Stan Shebs <shebs@andros.cygnus.com>
113
114 * config/obj-coff.h: Include libcoff.h, not ../bfd/libcoff.h.
115
116 * as.h: Include progress.h.
117 * as.c (main): Call START_PROGRESS and END_PROGRESS.
118 (main, perform_an_assembly_pass): Call PROGRESS.
119
120 Fri Dec 16 00:46:08 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
121
122 * write.c (adjust_reloc_syms): Use bfd_is_und_section and
123 bfd_is_abs_section rather than comparing against &bfd_und_section
124 and &bfd_abs_section.
125
126 Thu Dec 15 15:27:14 1994 Jim Wilson <wilson@chestnut.cygnus.com>
127
128 * config/tc-sh.c (md_begin): Use a local variable when
129 initializing md_relax_table to avoid errors about modifying a
130 const data structure.
131
132 Tue Dec 13 15:42:27 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
133
134 * config/tc-ppc.c (tc_gen_reloc): Remove OBJ_ELF hack which
135 appears to no longer be needed.
136
137 Tue Dec 13 08:04:15 1994 Ian Lance Taylor <ian@cygnus.com>
138
139 * config/tc-mips.c (macro_build): Accept BFD_RELOC_PCREL* without
140 requiring that the X_op_symbol be in the text_section.
141 (macro): Change the test for a legel expression difference to
142 correspond to changes in pseudo_set in read.c.
143
144 Fri Dec 9 21:04:17 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
145
146 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Use
147 bfd_install_relocation.
148
149 * ecoff.c (ecoff_set_gp_prolog_size): If there is no current
150 routine, just return.
151
152 * config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode
153 value from pattern instead of assuming jsr.
154 * config/alpha-opcode.h (jmp): Add a "1,Bc" form.
155
156 Thu Dec 8 17:48:25 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
157
158 * Makefile.in (NM_FOR_TARGET): Use ../binutils/nm.new, not just
159 plain nm.
160
161 * configure.in (ns32k-pc532-mach*): Select correct emulation.
162 (mips-sony-bsd*): Use ecoff.
163 (mips-*-gnu*): New target, using aout format, from Roland McGrath.
164 * configure: Regenerated.
165
166 start-sanitize-arc
167 Tue Nov 29 18:12:22 1994 Doug Evans <dje@canuck.cygnus.com>
168
169 * configure.in (arc-*-elf*): Recognize.
170 * configure: "regenerated".
171 * config/tc-arc.c, config/tc-arc.h, config/arc.mt: New files.
172 end-sanitize-arc
173
174 Tue Nov 29 13:58:10 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
175
176 Use libiberty version of xmalloc:
177 * Makefile.in (REAL_SOURCES): Delete xmalloc.c.
178 (OBJS): Delete xmalloc.o.
179 (xmalloc.o): Delete dependencies.
180 * as.c (main): Call xmalloc_set_program_name once program name is
181 known.
182
183 * config/tc-alpha.c (in_range_signed, in_range_unsigned): New
184 routines, split from in_range.
185 (in_range): Deleted. All calls changed to in_range_*signed.
186 (create_lita_section): Macro deleted. Single use expanded in
187 place.
188 (alpha_ip): Handle `t' and `8' operand types.
189 (md_apply_fix): Handle BFD_RELOC_12_PCREL. Print name of
190 unhandled relocation types.
191 * config/alpha-opcode.h: Added HALT and DRAINA. Disabled MOVI,
192 since it doesn't work, and isn't supported by the native
193 assembler.
194
195 * input-scrub.c: Change wording of a comment to avoid interference
196 with Cygnus source-control tools.
197
198 * as.h (errno) [NEED_DECLARATION_ERRNO]: Declare.
199
200 * config/tc-m68k.c (init_table): List buscr and pcr control
201 registers.
202 (m68k_ip, case 'J'): Handle them.
203
204 Delete signal handler code. It's been disabled since March 1993
205 without complaints.
206 * as.c: Don't include signal.h.
207 (got_sig): Unused function deleted, declaration deleted.
208 (SIGTY): Macro deleted.
209 (main): Deleted disabled code for establishing signal handler.
210
211 start-sanitize-rce
212 Tiemann should've noted something like this:
213 * config/tc-rce.c, config/tc-rce.h: New files.
214 * as.c (main) [TC_RCE]: Call dump_literals.
215 * configure.in: Handle rce-*-aout.
216 * configure: Regenerated.
217 end-sanitize-rce
218
219 Mon Nov 28 11:37:35 1994 Doug Evans <dje@canuck.cygnus.com>
220
221 * app.c (do_scrub_next_char): Insert missing newline at end of file
222 like warning says we do.
223
224 Mon Nov 28 00:11:15 1994 Jeff Law (law@snake.cs.utah.edu)
225
226 * config/tc-hppa.h (pa_check_eof): Declare new extern function.
227 (tc_frob_file): Define to call pa_check_eof.
228
229 * config/tc-hppa.c (pa_check_current_space_and_subspace): New
230 function to verify the current space and subspace are reasonable.
231 Call for the appropriate pseudo-ops and before instruction parsing.
232 (pa_check_eof): New function to verify enter/exit and proc/procend
233 pairs match at EOF.
234 (pa_code): Simplify.
235
236 * config/obj-som.c: Delete #if 0 code.
237
238 Wed Nov 23 19:36:09 1994 Steve Chamberlain (sac@jonny.cygnus.com)
239
240 * config/obj-coff.h (TARGET_FORMAT): Select between coff-shl and coff-sh.
241 * config/sh.mh (TARG_CPU_DEPENDENTS): Get it right.
242 * config/tc-sh.c (little): New function.
243 (md_parse_option): Notice new option.
244 (build_relax, build_Mytes, md_atof, md_convert_frag, md_apply_fix):
245 Cope with little endian data.
246 * config/tc-sh.h (COFF_MAGIC, LISTING_HEADER): Endian dependent.
247
248 Wed Nov 23 10:54:38 1994 Jeff Law (law@snake.cs.utah.edu)
249
250 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Revert last
251 change. The real bug was in bfd/elfcode.h and has been fixed.
252
253 Tue Nov 22 23:31:20 1994 Jeff Law (law@snake.cs.utah.edu)
254
255 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Add section->vma
256 to the relocation's offset.
257
258 Tue Nov 22 14:37:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
259
260 * Makefile.in (INSTALL_XFORM): Fix typo.
261
262 Tue Nov 22 10:23:25 1994 J.T. Conklin <jtc@rtl.cygnus.com>
263
264 * config/tc-alpha.c (s_alpha_set): Ignore the .set (no)move and
265 .set (no)volatile directives.
266
267 Tue Nov 15 21:44:13 1994 Jeff Law (law@snake.cs.utah.edu)
268
269 * config/tc-hppa.c (pa_subspace): Make sure to always reset
270 current_subspace.
271 (pa_text, pa_data): Likewise.
272
273 * config/tc-hppa.c (pa_align): New function. Aligns the current
274 offset within the current subspace along with updating the
275 alignment of the subspace itself.
276 (pa_subspace): Default alignment to one byte rathern than zero
277 bytes to avoid setting alignment to log2(0).
278 (md_pseudo_table): Use pa_alignment for .align.
279
280 Tue Nov 15 15:24:45 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
281
282 * messages.c (as_fatal): Always put a space after "fatal error:"
283 when printing message.
284
285 Tue Nov 15 11:10:43 1994 Jeff Law (law@snake.cs.utah.edu)
286
287 * config/tc-hppa.h (obj_frob_symbol): Delete.
288 (tc_frob_symbol): Make definition conditional on OBJ_SOM or
289 OBJ_ELF. For ELF subtract out symbol->section->vma for non common
290 symbols.
291
292 Wed Nov 9 14:53:03 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
293
294 * config/te-delta.h: New file, derived from te-sysv32.h.
295
296 Wed Nov 9 11:52:44 1994 Ian Lance Taylor (ian@cygnus.com)
297
298 * config/tc-ppc.c (ppc_bf): Always set coff_line_base.
299
300 Mon Nov 7 01:58:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
301
302 * Makefile.in (VERSION): Bump to 2.5.3.
303
304 * configure.in: Compare generic cpu name against "sparc", not
305 "sparc*", since sparc variants should be changed to "sparc".
306 * configure: Regenerated with autoconf 2.1.
307
308 * config/tc-a29k.c (octal, toHex): Variables deleted.
309 (isoctal): Macro deleted.
310 (md_begin): Don't initialize them.
311 (machine_ip, case 'P'/'A'): For absolute operand, generate an
312 error message if it's out of range.
313 (md_apply_fix, case RELOC_JUMPTARG): Check range for PC-relative
314 jumps.
315 (md_apply_fix): Delete code inside "#if 0".
316
317 Thu Nov 3 20:20:40 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
318
319 * config/go32.mh: Unused file deleted.
320
321 * read.c (get_absolute_expression): Indicate that the error may
322 merely be that the expression can't currently be reduced.
323
324 Thu Nov 3 16:09:59 1994 J.T. Conklin (jtc@rtl.cygnus.com)
325
326 * config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as
327 "a.out-m68k-netbsd".
328 * config/tc-sparc.h (TARGET_FORMAT): If TE_NetBSD define as
329 "a.out-sparc-netbsd".
330
331 * config/te-nbsd.h: New file, NetBSD target emulation
332 * config/te-netbsd.h: Removed.
333 * configure.in (i[345]86-*-netbsd*,m68*-*-netbsd*,sparc*-*-netbsd*):
334 Set bfd_gas. Use nbsd emulation.
335
336 Thu Nov 3 17:44:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
337
338 Changes from net 2.5.2 release branch:
339
340 * configure.in: Put AC_DEFINE(sparcv9) on its own line, so that
341 the shell variable settings associated with it are permanent. For
342 CPUs requiring bfd_gas=yes, select it based on CPU only, not
343 individual target names. Handle m68k-hp-hpux*, not just -hpux.
344
345 * config/tc-z8k.c (tc_coff_symbol_emit_hook): Add dummy argument
346 to match prototype in obj-coff.h.
347
348 * configure.in: Skip tests for defining WANT_FOPEN_BIN and
349 IBM_COMPILER_SUX.
350 * acconfig.h: Deleted them.
351 * configure, conf.in: Rebuild with autoconf 2.0.
352 * config/go32.cfg, config/vms-conf.h: Updated.
353
354 * config/tc-m68k.c (md_apply_fix_2, md_convert_frag_1): Always use
355 IBM_COMPILER_SUX version of code, with comments indicating why.
356
357 * listing.c (file_info): Use text mode when opening file for read.
358 Use "r" directly, no macro.
359 * input-file.c (input_file_open): Don't use FOPEN_RT, just use
360 "r".
361 * read.c (s_include): Ditto.
362 * output-file.c (output_file_create): Try both "wb" and "w", don't
363 bother with FOPEN_* macros.
364 * as.h: Don't include fopen-*.h.
365
366 * config/alpha-opcode.h: Make "ret" with no operands equivalent to
367 "ret zero,(ra)", to match OSF1 and to be consistent with both
368 one-operand forms.
369
370 Patches from DJ Delorie:
371 * as.h (alloca): undef alloca before defining it just in case
372 * config/go32.cfg: new file for autoconf values
373 * config/te-go32.h: new file
374 * configure.bat: new for autoconf
375
376 * config/tc-i386.c (md_assemble): Fix typo in GOTPC check; had =
377 for ==.
378
379 * configure.in: If target_frag doesn't exist, use /dev/null.
380
381 * as.c (parse_args): For non-VMS systems, re-add `v' to
382 std_shortopts. Add "verbose" to list of long options.
383
384 * write.c (adjust_reloc_syms): When generating an absolute section
385 symbol as a placeholder, don't mark it as used in a relocation
386 entry, here.
387
388 * Makefile.in (comparison): Compare using makefile code from gcc,
389 stripped down to discard subdir stuff and adapted to give a
390 non-zero exit status if either file differs.
391
392 Thu Nov 3 15:43:02 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
393
394 * config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments for
395 NO_PIC case.
396
397 Tue Nov 1 16:10:59 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
398
399 * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit
400 switching to the readonly data section.
401
402 * ecoff.c (ecoff_directive_type): Fix warning message.
403
404 Sun Oct 30 00:57:35 1994 Jeff Law (law@snake.cs.utah.edu)
405
406 * config/tc-hppa.c (pa_proc): Delete disabled code to put each
407 proc in its own subspace, we're not going to use it.
408
409 Tue Oct 25 14:44:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
410
411 * config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD in
412 .rdata does not become a variant frag.
413
414 * config/tc-mips.c (mips_cpu): Initialize to -1.
415 (md_begin): Don't mips_cpu if it was already set.
416 (md_parse_option): For -mipsN, don't set mips_cpu if it was
417 already set. For -mcpu=, just set mips_cpu, not mips_isa.
418
419 Fri Oct 21 20:42:29 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
420
421 * config/tc-mips.c (md_pseudo_table): If OBJ_ELF, handle .section.
422 (s_elf_section): New static function.
423 * ecoff.c (ecoff_build_symbols): Don't abort if we don't recognize
424 the section when setting the storage class; default to sc_Data.
425
426 Thu Oct 20 00:43:38 1994 Jeff Law (law@snake.cs.utah.edu)
427
428 * config/tc-hppa.c (md_apply_fix): Set new_val to 8 for all
429 fixups to branch instructions (not just pc-relative ones) which
430 will generate SOM relocations.
431
432 Wed Oct 19 13:41:56 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
433
434 * config/tc-a29k.c: Include ctype.h with angle brackets.
435 (define_some_regs): Add new special register names defined on the
436 29040.
437 (parse_operand): Add argument opt. If non-zero, don't warn about
438 a missing operand.
439 (machine_ip): If handling argument type 'I', pass opt as non-zero
440 to parse_operand. Handle new optional operand type 'I'.
441 (md_undefined_symbol): Handle special register names (srNN).
442
443 Tue Oct 18 00:45:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
444
445 * write.c (renumber_sections): New static BFD_ASSEMBLER function.
446 (write_object_file): Call it after removing gas created sections.
447
448 Mon Oct 17 18:06:05 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
449
450 * symbols.c (symbol_create): Use udata.p, not just udata.
451 * config/obj-elf.c (obj_ecoff_set_ext): Likewise.
452 (elf_get_extr): Likewise.
453
454 * read.c (read_a_source_file): The second argument to as_where is
455 unsigned int *, not int *.
456
457 Mon Oct 17 02:26:32 1994 Jeff Law (law@snake.cs.utah.edu)
458
459 * config/tc-hppa.c: Eliminate all uses of fx_addnumber.
460 (tc_gen_reloc): Simplify. It's no longer necessary to set a
461 reloc's addend field to zero for function symbols.
462 (md_apply_fix): Simplify. For fixups which will require a SOM
463 reloc, just clear out the necessary bits in the output file.
464
465 Fri Oct 14 19:06:46 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
466
467 * Makefile.in (BISON): Use bison -y, not bison.
468
469 Thu Oct 13 19:22:54 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
470
471 * Makefile.in (VERSION): Updated to 2.5.
472 (clean-here): Delete stamp-mk.com.
473 (distclean): Delete .gdbinit.
474 * Version 2.5 released.
475
476 Wed Oct 12 20:30:51 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
477
478 * config/te-nbsd532.h: Renamed from te-netbsd532.h.
479 * configure.in, configure: Adjusted.
480
481 Wed Oct 12 16:33:38 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
482
483 * config/cplus-dem.c: Removed. It isn't used. Even if it was,
484 it's better to use the one in libiberty.
485
486 Wed Oct 12 18:48:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
487
488 * symbols.c (resolve_symbol_value, case O_symbol): Undo last
489 change; it breaks the rs6000 support, and doesn't seem to be
490 needed.
491
492 Wed Oct 12 11:56:50 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
493
494 * config/tc-i386.h,te-netbsd532.h (TARGET_FORMAT): Changed to
495 a.out-<arch>-netbsd to match corresponding changes in BFD.
496
497 Wed Oct 12 11:06:11 1994 Ian Lance Taylor (ian@cygnus.com)
498
499 * config/tc-ppc.c (ppc_fix_adjustable): Resolve symbol values
500 rather than explicitly adding the frag address.
501 * config/obj-coff.c (coff_frob_symbol): Add a zero entry to mark
502 the end of the line numbers; this replaces the zero entry which
503 used to be added by coff_add_linesym, removed Oct 7.
504 (coff_adjust_section_syms): Ignore sections with no seginfo.
505
506 Wed Oct 12 01:41:37 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
507
508 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Create a
509 "stage" symlink to the appropriate stage* directory, and use it
510 instead in the -B options.
511 (comparison): Revert yesterday's change.
512
513 Tue Oct 11 16:48:11 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
514
515 * config/tc-sparc.c (tc_gen_reloc): For non-a.out relocations, if
516 pc-relative, use fx_offset only, ignore address of relocation.
517
518 Tue Oct 11 15:24:00 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
519
520 * config/tc-mips.c (mips_ip): Don't use S_IS_LOCAL when checking
521 for an embedded PIC switch expression, since the definition of
522 S_IS_LOCAL was changed.
523
524 Tue Oct 11 15:05:11 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
525
526 * Makefile.in (comparison): When comparing as.new or gasp.new, try
527 running the binary through sed to avoid differences due to
528 "stage1" or "stage2" having been written into the binary.
529
530 Sat Oct 8 01:48:04 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
531
532 ELF symbol size handling, based on code from Eric Youngdale:
533 * config/obj-elf.h (OBJ_SYMFIELD_TYPE): New macro. Adds an
534 expression pointer to the symbol structure, used for `size'
535 expressions that couldn't be reduced to constants when initially
536 processed.
537 (elf_frob_symbol): Declare.
538 (obj_frob_symbol): Call elf_frob_symbol always, rather than
539 ecoff_frob_symbol only if ECOFF_DEBUGGING defined.
540 * config/obj-elf.c (obj_symbol_new_hook): Deleted unused code.
541 Clear sy_obj field.
542 (obj_elf_size): Deleted unused code. If size is non-reducible
543 expression, allocate some storage for the sy_obj field and copy
544 the expression.
545 (elf_frob_symbol): New function. Computes sizes, calls
546 ecoff_frob_symbol if appropriate.
547
548 * write.c (fixup_segment): For i386 elf and coff (for now), don't
549 add in value of symbol from another defined section of the file.
550
551 Fri Oct 7 17:54:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
552
553 * config/tc-m88k.h (TC_KEEP_FX_OFFSET): Define.
554 * config/obj-coff.c (do_relocs_for): Test only TC_KEEP_FX_OFFSET,
555 rather than both it and TC_M88K.
556 (coff_adjust_section_syms): New function.
557 (coff_frob_section): For non-empty sections, create aux entry for
558 the section symbol, indicating the size.
559 (n_line_nos): New variable.
560 (add_lineno): Increment it.
561 (coff_add_linesym): Increment n_line_nos, don't call add_lineno.
562 (coff_frob_file): New function; map coff_adjust_section_syms over
563 sections.
564 (obj_coff_line): Only reset line_base for .bf symbols.
565 * config/obj-coff.h (coff_adjust_section_syms, coff_frob_file):
566 Declare.
567 (obj_frob_file): New macro.
568
569 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Renamed from
570 obj_frob_forward_symbol, and rewritten for new parameter list.
571
572 Mon Oct 3 21:02:38 1994 Pat Rankin (rankin@eql.caltech.edu)
573
574 * config/obj-vms.h (S_IS_LOCAL): fix obsolete flagseen[] reference.
575
576 Wed Oct 5 11:49:26 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
577
578 * config/obj-ecoff.c (obj_pseudo_table): Accept .esize and .etype
579 as synonyms for .size and .type.
580
581 Wed Oct 5 00:08:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
582
583 * config/obj-coff.c (coff_frob_section): Remove assert about
584 section alignment.
585 * config/tc-sparc.c (md_section_align): Use section alignment, not
586 xvec align_power_min field.
587
588 Fri Sep 30 19:05:20 1994 Pat Rankin (rankin@eql.caltech.edu)
589
590 * vmsconf.sh (make-gas.com): handle DCL verification to enable
591 sensible feedback to the user while gas is being built.
592
593 Fri Sep 30 16:23:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
594
595 * Makefile.in (DISTSTUFF): New variable, listing only make-gas.com
596 for now.
597 (diststuff): New target; builds DISTSTUFF.
598 (realclean): Separate target, depend on clean and distclean, then
599 delete DISTSTUFF.
600 * make-gas.com: Deleted.
601
602 * config/tc-i386.c (i386_validate_fix) [BFD_ASSEMBLER]: New
603 function. Converts reloc for "foo-GOT" to BFD_RELOC_386_GOTOFF
604 reloc for "foo".
605 (i386_operand): Don't look up section symbol for
606 undefined_section.
607 (reloc): Always permit return of 8- and 16-bit relocation types.
608 Add a space after "pc-relative" in the error message.
609 (tc_i386_fix_adjustable) [BFD_ASSEMBLER]: Reject
610 BFD_RELOC_386_GOTOFF relocs.
611 (i386_operand): For any GOTOFF reloc, convert it to a BFD_RELOC_32
612 with a "foo-GOT" value.
613 * config/tc-i386.h (i386_validate_fix): Declare it.
614 (TC_VALIDATE_FIX): New macro -- call it.
615 (NOP_OPCODE): Cast to `char' to avoid compiler warnings.
616
617 * as.h: If __STDC__ is not defined and varargs.h is available, use
618 it rather than stdarg.h.
619
620 * write.h (struct fix): Added new bitfield fx_plt, for fixups
621 referring to PLT entries.
622 * write.c (fix_new_internal): Initialize fx_plt to zero.
623 (adjust_reloc_syms): Re-fetch `sym' after top of reduction loop.
624 Don't adjust fx_offset by frag address, since S_GET_VALUE now
625 includes the frag address.
626 (fixup_segment): Changed local var PCREL to type int, added PLT.
627 If PC-relative fixup refers to a PLT entry for a symbol in the
628 current section, don't reduce it.
629
630 * write.c (adjust_reloc_syms): Exit loop through a label. If
631 DEBUG5 is defined, print out each fixup before and after
632 processing.
633 (fixup_segment): If DEBUG5 is defined, print out each fixup before
634 and after processing.
635 (print_fixup): Added prototype. Show address on first line. Show
636 fx_offset and fx_subsy. [!BFD_ASSEMBLER]: Only show fx_r_type if
637 NEED_FX_R_TYPE is defined.
638
639 * symbols.c (print_symbol_value_1): Check S_IS_LOCAL, S_IS_EXTERN,
640 S_IS_DEBUG, S_IS_DEFINED also.
641
642 Thu Sep 29 18:57:06 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
643
644 * Makefile.in (all): Depend on .gdbinit.
645 (.gdbinit): Rebuild from gdbinit.in by running config.status.
646
647 * gdbinit.in: Define new function "pf". Fix doc on "pe" and "ps".
648
649 * write.c (print_fixup): Print source location on first line.
650 Show fx_r_type and fx_addsy fields.
651
652 Wed Sep 28 14:56:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
653
654 * configure.in: Set bfd_gas for all sparc targets in one place,
655 instead of separately for each. Correctly handle user-supplied
656 "--enable-bfd-gas" option.
657
658 * gdbinit.in: Move "break abort" to end, in case gdb complains.
659
660 * as.h (PRINTF_WHERE_LIKE, PRINT_LIKE) [USE_STDARG, !__GNUC__]:
661 Use PARAMS macro.
662
663 * symbols.c (resolve_symbol_value, case O_symbol): Don't do any
664 processing if add_symbol is undefined or in expr_section.
665 (resolve_symbol_value, case O_add): For symbol plus
666 constant-valued symbol, convert to O_symbol and re-reduce.
667 (S_GET_VALUE): If symbol needs resolving, resolve it.
668 (indent_level): No longer static.
669 (print_symbol_value_1): Don't print frag address if it matches
670 zero_address_frag. Don't print "resolving" if already resolved.
671 Print segment name. Don't call print_expr_1 on an undefined
672 symbol.
673 (print_expr_1): Fix whitespace before printing X_add_number.
674
675 * expr.c (make_expr_symbol): No longer static. Use symbol_create,
676 not symbol_new, for symbols holding expression values.
677 * expr.h (make_expr_symbol): Move declaration here.
678 * write.c (fix_new_exp): Handle O_add by creating an
679 expression-valued symbol, and calling fix_new_exp recursively.
680 (adjust_reloc_syms): If a fixup's symbol value is a sum of an
681 undefined symbol and a constant, fold the constant into the fixup,
682 and refer to the undefined symbol directly. Then process the
683 fixup again from scratch.
684 (write_object_file): Before calling adjust_reloc_syms, make a pass
685 through the symbol list trying to resolve values.
686
687 * write.c (print_fixup): New routine, for debugging.
688 (write_relocs): Call bfd_install_relocation. Deleted various
689 hacks for working around problems with bfd_perform_relocation.
690
691 * Makefile.in (VERSION): Update to 2.4.90.
692
693 Wed Sep 28 11:50:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
694
695 * Makefile.in (gasp.o): Depends upon config.h.
696
697 * config/tc-mips.c: Include subsegs.h.
698 (md_apply_fix): If an unconditional b or bal overflows, and we are
699 not assembling PIC code, replace it with a j or jal.
700
701 * config/tc-mips.c (md_apply_fix): Correct branch overflow test.
702 Use as_bad_where and as_warn_where rather than as_bad and as_warn.
703
704 Mon Sep 26 17:15:59 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
705
706 * write.c (write_relocs): Add file name and line number to
707 as_fatal calls. Handle bfd_reloc_overflow case specifically when
708 RELOC_EXPANSION_POSSIBLE.
709
710 Fri Sep 23 16:11:28 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
711
712 * as.h (USE_STDARG, USE_VARARGS): Define one or neither of these
713 here. Use them for deciding which PRINTF*LIKE macro definitions
714 to use.
715 * messages.c: Use them, instead of NO_STDARG, NO_VARARGS.
716 [!USE_STDARG && !USE_VARARGS] (va_alist, va_dcl, ...): Provide
717 default definitions matching what we were doing before.
718 (as_tsktsk): Remove the non-stdarg, non-varargs version, and
719 always use the varargs form if not using stdarg. It's safe to
720 always use vfprintf, because libiberty will provide it if the
721 native system doesn't. Also, always make format be const.
722 (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
723
724 Fri Sep 23 14:42:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
725
726 * config/tc-mips.c (load_register): Always use addiu when adding a
727 constant to $zero--no need to use daddiu.
728 (macro): Hack the -mips3 overflow tests to not fail when offsetT
729 is only 32 bits.
730
731 * symbols.h (copy_symbol_attributes): Declare.
732
733 Thu Sep 22 21:58:24 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
734
735 * listing.c: Bugfixes based in part on patches from Paul
736 Kranenburg.
737 (listing_newline): Check filename as well as line number when
738 deciding whether to record it.
739 (list_symbol_table) [S_IS_REGISTER]: Check that S_IS_REGISTER is
740 false (if defined) as well as checking for reg_section.
741 (listing_listing): Iterate fetching lines while line number is too
742 low, and we haven't run off the end of the input file.
743
744 * config/vms-conf.h: Changed HAVE_DELETE to HAVE_REMOVE.
745
746 Thu Sep 22 13:39:10 1994 Kung Hsu (kung@x1.cygnus.com)
747
748 * ecoff.c (ecoff_generate_asm_lineno): check if
749 current_stabs_filename is NULL before strcmp.
750 * read.c (read_a_source_file): fix a bug in generate_asm_lineno
751 checking.
752
753 Wed Sep 21 18:17:35 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
754
755 * config/ho-*.h: Now-unused files deleted.
756
757 * symbols.c (copy_symbol_attributes): New function. Copies BFD
758 symbol flags and calls OBJ_COPY_SYMBOL_ATTRIBUTES.
759 (resolve_symbol_value, case O_symbol): Call it, if X_add_number is
760 zero. Don't call obj_frob_forward_symbol.
761 * read.c (pseudo_set): Call copy_symbol_attributes, but only if
762 X_add_number is zero.
763 * config/obj-elf.h (obj_frob_forward_symbol): Deleted.
764
765 * config/tc-i960.c: Lots of whitespace, comment reformatting,
766 using GNU indent.
767 (strchr): Don't declare.
768 [BFD_ASSEMBLER]: Don't compile md_convert_frag,
769 md_estimate_size_before_relax, md_ri_to_chars,
770 md_create_short_jump, md_create_long_jump.
771 (brtab_emit): Use data_section, not SEG_DATA.
772
773 Mon Sep 19 17:14:44 1994 Pat Rankin (rankin@eql.caltech.edu)
774
775 * config/vms-conf.h: new file, manually derived from conf.in.
776 * config-gas.com: use it, and eliminate obsolete "host.h".
777
778 Wed Sep 21 11:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
779
780 * config/tc-ppc.c (ppc_current_block): New static variable.
781 (ppc_stabx): Set sy_tc.within of a C_STSYM symbol to
782 ppc_current_block. Don't move around any stab symbol, just those
783 for common symbols.
784 (ppc_bs): Set ppc_current_block.
785 (ppc_es): Clear ppc_current_block.
786 (ppc_frob_symbol): Set the value of a C_STSYM symbol to the offset
787 from the csect of the enclosing block.
788
789 * config/tc-mips.c (insns_since_cache_access): Remove.
790 (append_insn): Remove setting of insns_since_cache_access, and
791 special 4600 handling; it turns out not to be required.
792
793 Tue Sep 20 16:13:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
794
795 * config/tc-mips.c (md_shortopts): Remove E.
796 (md_longopts): Add EB and EL.
797 (md_parse_option): Handle -EB and -EL as separate options, rather
798 than as a single -E option with an argument.
799
800 Mon Sep 19 12:42:05 1994 Jeff Law (law@snake.cs.utah.edu)
801
802 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
803 involving global symbols too.
804
805 Mon Sep 19 12:12:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
806
807 * as.h: Test NEED_DECLARATION_*, not NEED_*_DECLARATION.
808
809 * configure.in: Test for remove, not delete. Fix cross-assembler
810 test.
811 * as.h: Test HAVE_REMOVE, not HAVE_DELETE; define unlink to
812 remove, not delete.
813
814 * read.c (pseudo_set, case O_symbol): If
815 OBJ_COPY_SYMBOL_ATTRIBUTES is defined, invoke it.
816 [BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too.
817 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define.
818
819 Wed Aug 10 19:15:30 1994 Pat Rankin (rankin@eql.caltech.edu)
820
821 * config/obj-vms.h (DSG_S_C_UBITU, DST_K_VFLAGS_DSC, DST_K_TS_ATOM,
822 many others): new macros; values obtained from "DSTRECRDS.SDL".
823 * config/obj-vms.h (various): use them.
824 (USE_BITSTRING_DESCRIPTOR): new macro, for selecting bitfield
825 representation (only enum bitfields can avoid being bitstrings).
826 (bitfield_suffix, setup_basic_type): new routines.
827 (VMS_typedef_parse): use them. Now recognize bitfields of all
828 integral types, not just type `int'. Caveat: the representation
829 used for bitfields still does not work for objects placed in
830 registers, and gcc's optimizer sometimes puts small structs there.
831
832 Tue Jun 14 17:31:44 1994 Pat Rankin (rankin@eql.caltech.edu)
833
834 * read.c (s_text) [#if OBJ_VMS]: clear the IN_DEFAULT_SECTION
835 bit from const_flag.
836 * config/obj-vms.h (IN_DEFAULT_SECTION): define this macro.
837 (tc_frob_label): define this to call vms_check_for_special_label,
838 and declare the latter.
839 * config/obj-vms.c (vax_g_doubles): declare this file-scope
840 variable.
841 (const_flag): initialize to IN_DEFAULT_SECTION instead of 0.
842 (vms_check_for_special_label): new routine (tc_frob_label).
843 (VMS_TBT_Routine_End): don't bother checking for `gcc_compiled.'
844 and `gcc2_compiled.' labels; they won't reach here any more.
845 (VMS_typedef_parse) [case 'r']: for types `double' and `complex
846 double', use `vax_g_doubles' flag to select type of double.
847 (VMS_write_object_file) [traceback setup]: don't pass symbols
848 with the IN_DEFAULT_SECTION attribute to the TBT_Routine_Begin
849 and TBT_Routine_End functions.
850
851 Mon Jun 6 20:52:20 1994 Pat Rankin (rankin@eql.caltech.edu)
852
853 * config/obj-vms.c (VMS_TBT_Routine_End): cache the result of
854 S_GET_VALUE() to avoid many repeated function calls.
855 (VMS_Check_For_Main) [#if HACK_DEC_C_STARTUP]: capitalize
856 _C$MAIN_ARGS in advance, in case -h3 (leave symbol name as-is)
857 gets requested. [All the HACK_DEC_C_STARTUP code appears to
858 be obsolete; gcc does it automatically for vms target. It's
859 also misnamed, because it is for the "VAX C" run-time library,
860 not the newer "DEC C" one which has much different startup code.]
861 {various}: use `S_SET_xxx(symbol,new_value)' rather than
862 `S_GET_xxx(symbol) = new_value'.
863
864 Mon Sep 19 12:05:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
865
866 * config/obj-coff.c (c_dot_file_symbol): Use bfd_abs_section_ptr,
867 not &bfd_abs_section.
868
869 Thu Sep 15 18:36:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
870
871 * expr.c (clean_up_expression): Use addressT, not bfd_vma.
872
873 Tue Sep 13 20:05:47 1994 Jeff Law (law@snake.cs.utah.edu)
874
875 * expr.c (expr): Don't reduce the difference of two symbols in the
876 same frag if the symbols are not in normal sections.
877
878 * config/obj-som.h (S_SET_OTHER, S_SET_TYPE): Delete a.out crud.
879 (S_SET_DESC, S_GET_OTHER, S_GET_TYPE, S_GET_DESC): Likewise.
880 (obj_attach_unwind_info): Do not define. Not needed anymore.
881 * config/tc-hppa.c: Delete whitespace at EOL.
882 (struct hppa_fix_struct): Delete fx_unwind field and all references.
883 (fix_new_hppa): Last arg is now a pointer to an int. Do not
884 call obj_attach_unwind_info anymore. For SOM R_ENTRY and R_EXIT
885 fixups, store 32bits of unwind information in the fx_addnumber
886 field of the fixup.
887 (md_assemble, pa_entry, process_exit, pa_procend): For SOM R_ENTRY
888 and R_EXIT fixups, pass a NULL pointer to fix_new_hppa, and a
889 pointer to 32 bits of unwind info.
890 (tc_gen_reloc): For SOM R_ENTRY and R_EXIT fixups, set the symbol
891 pointer to the dummy symbol; set the addend field to fx_addnumber.
892 (pa_comm, pa_equ, pa_type_args, pa_import): Use bfd_XXX_section_ptr
893 rather than &bfd_XXX_section.
894
895 Tue Sep 13 21:15:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
896
897 * config/tc-i386.c (md_apply_fix_1): For GOTPC relocs, decrement
898 value by one; discard adjustments previously being made. From
899 Eric Youngdale.
900
901 VMS- and Vax-related changes from Pat Rankin:
902 * Makefile.in (VMS_OTHER_OBJS): add concat, getopt, and getopt1.
903 * vmsconf.sh: no longer have make-gas.com echo text about needing
904 to modify the gcc-vms driver when intending to use with gcc 1.x.
905 * as.c (parse_options): suppress 'v' from std_short_options and
906 eliminate VMS-specific conditional initialization;
907 [default case]: check for '-v' if md_parse_options doesn't recognize
908 an option;
909 [default case, #if VMS]: check for filename argument when '-v' seen;
910 [case 'v']: delete.
911 * config/tc-vax.c (md_assemble): don't rely on `this_add_number'
912 for O_big literal operands (double floats and long long ints);
913 [VMS, md_shortopts]: add second colon after 'v';
914 (md_parse_options) [VMS, case 'v']: check for argument, so
915 caller can handle `-v' w/o arg.
916
917 Tue Sep 13 16:45:08 1994 Steve Chamberlain (sac@jonny.cygnus.com)
918
919 * config/obj-coff.c (do_relocs_for): If TC_KEEP_FX_OFFSET
920 is defined, put the tx_offset into the r_offset.
921 * config/tc-sh.c (line_comment_chars): Add #
922 (tc_reloc_mangle): Deleted.
923 * config/tc-sh.h (TC_KEEP_FX_OFFSET): Define.
924 (TC_RELOC_MANGLE): Delete.
925
926 Tue Sep 13 16:20:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
927
928 * flonum-konst.c: Change preprocessor tests of HO_VMS to just VMS.
929 * hex-value.c: Ditto.
930 * config/obj-vms.c: Ditto.
931
932 * config/tc-sparc.c (sparc_ip): Replace as_bad/exit sequence with
933 a call to as_fatal.
934 * config/tc-i860.c (i860_ip): Ditto.
935 * config/tc-hppa.c (pa_ip): Ditto.
936 * config/tc-alpha.c (alpha_ip): Ditto.
937 * as.c (parse_args): Ditto.
938
939 * config/tc-mips.c (mips_ip): Replace as_warn/exit sequence with a
940 call to as_fatal.
941
942 * write.c (write_contents): Use EXIT_FAILURE.
943 * output-file.c (output_file_create, output_file_close,
944 output_file_create, output_file_close): Ditto.
945 * messages.c (as_fatal): Ditto.
946 * config/obj-som.c (obj_som_version, obj_som_copyright): Ditto.
947 * config/obj-ieee.c (write_object_file): Ditto.
948 * config/obj-coff.c (write_object_file): Ditto.
949 * config/tc-vax.c (main): Use EXIT_SUCCESS.
950 * config/tc-m68k.c (main): Ditto.
951
952 * hash.c (main): Pass a value to exit().
953
954 * as.h (EXIT_SUCCESS, EXIT_FAILURE): Moved here.
955 * as.c: ...from here.
956 (parse_args): Use them always.
957 (main): Use exit rather than return.
958
959 * Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall):
960 Rewrite handling of program_transform_name.
961
962 * configure.in: Test for functions unlink and delete.
963 * as.h: If unlink isn't available but delete is, define unlink to
964 be delete.
965
966 Update for autoconf 1.118:
967 * gdbinit.in: New file, created from old .gdbinit.
968 * .gdbinit: Deleted.
969 * aclocal.m4 (GAS_GDBINIT): Deleted.
970 * configure.in: Don't use it. Instead, generate .gdbinit from
971 gdbinit.in. Don't substitute cpu_type, obj_format, emulation,
972 atof. Switched order of AC_LINK_FILES arguments. Use AC_PREREQ
973 to ensure that older versions of autoconf aren't used.
974 * Makefile.in: Added @configure_input@ line.
975 (configure): Deleted rule.
976
977 Tue Sep 13 12:08:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
978
979 * config/obj-coff.c (fixup_segment): After handling the difference
980 of two symbols from the same segment, set fx_subsy to NULL, to
981 satisfy existing TC_COUNT_RELOC macros.
982
983 Tue Sep 13 01:47:08 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
984
985 * aclocal.m4 (GAS_GDBINIT): New macro.
986 * configure.in: Use it.
987 * configure: Regenerated.
988
989 Mon Sep 12 20:56:38 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
990
991 * .gdbinit (pe, ps): Define new commands.
992 * symbols.c (indent_level): New static variable.
993 (indent, print_expr_1, print_symbol_value_1, print_symbol_value,
994 print_expr): New functions.
995
996 * Makefile.in (config-stamp): Add a "this file generated by make"
997 message to config.h.
998
999 PIC implementation for i386-linux, based on code from Eric
1000 Youngdale and Paul Kranenburg, with some work of my own:
1001
1002 * write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup
1003 before processing same-section pcrel relocations.
1004 (TC_RELOC_RTSYM_LOC_FIXUP): Default to 1.
1005
1006 * expr.c (make_expr_symbol): If operator is O_symbol and
1007 X_add_number is zero, just return the symbol. If operator is
1008 O_constant, resolve the symbol's value before returning.
1009 (operand): Permit use of "[]" for grouping.
1010 (clean_up_expression): For difference of two symbols in the same
1011 frag, add the difference of their offsets into X_add_number.
1012 (expr): Reduce difference of two symbols in same frag to their
1013 difference.
1014
1015 * config/tc-i386.c (TC_RELOC): New macro.
1016 (struct _i386_insn): New field disp_reloc.
1017 (GOT_symbol): New variable.
1018 (operand_special_chars): Added square-brackets and at-sign.
1019 (reloc) [BFD_ASSEMBLER]: Added new argument OTHER; if it is not
1020 NO_RELOC, just return it.
1021 (reloc) [! BFD_ASSEMBLER]: Add third argument to dummy macro.
1022 (BFD_RELOC_386_PLT32, _GOT32, _GOTOFF) [! BFD_ASSEMBLER]: More
1023 dummy macros.
1024 (tc_i386_fix_adjustable): New function. Returns zero if symbol in
1025 fixup is not local, to prevent relocations against externals from
1026 being dropped.
1027 (md_assemble): Initialize disp_reloc field to NO_RELOC. Pass
1028 disp_reloc field to reloc() function, and use TC_RELOC to generate
1029 value to pass to fix_new_exp.
1030 (md_assemble): Change 32-bit reloc against GOT_symbol into a GOTPC
1031 reloc.
1032 (i386_operand): Initialize disp_reloc field to NO_RELOC. Handle
1033 @GOTOFF, @PLT, @GOT operands. For GOTOFF relocations with local
1034 symbols, force generation of the section symbol.
1035 (md_estimate_size_before_relax): If GOT_symbol exists, decide
1036 we're generating PIC code, and convert relocations against
1037 undefined symbols from PCREL to PLT32.
1038 (md_apply_fix_1) [OBJ_ELF]: Fix up values for dynamic-linking
1039 relocs.
1040 (md_undefined_symbol): Notice GLOBAL_OFFSET_TABLE_NAME and set
1041 and return GOT_symbol if it matches.
1042 (F, MAP): Move macro definitions outside function.
1043 (tc_gen_reloc): Only switch on size and pcrel if code wasn't
1044 already supplied as PLT32. GOT32, GOTOFF, or GOTPC. Convert
1045 BFD_RELOC_32 using GOT_symbol into GOTPC.
1046 * config/tc-i386.h (TC_RELOC, tc_fix_adjustable,
1047 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): New
1048 macros.
1049 (NEED_FX_R_TYPE): Define.
1050 (LOCAL_LABEL): Accept ".X" prefix too.
1051 (GLOBAL_OFFSET_TABLE_NAME): Default to "_GLOBAL_OFFSET_TABLE_".
1052
1053 Mon Sep 12 17:51:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1054
1055 * config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
1056 reportedly to be used on Irix 6.
1057
1058 * config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
1059 (s_mips_globl): New static function; needed for Irix 5 support.
1060 * ecoff.c (ecoff_build_symbols): If BSF_FUNCTION is set for an
1061 external symbol with no type, set the type to st_Proc rather than
1062 st_Global. Don't set the index of an external st_Proc or
1063 st_StaticProc symbol unless it is also a local symbol.
1064
1065 * read.c (read_a_source_file): The second argument to as_where is
1066 unsigned int *, not int *.
1067
1068 Thu Sep 8 17:18:24 1994 Kung Hsu (kung@mexican.cygnus.com)
1069
1070 * config/obj-ecoff.h : Change names to OBJ_GENERATE_ASM_LINENO,
1071 and generate_asm_lineno.
1072 * config/obj-elf.h : ditto.
1073 * read.h : ditto.
1074 * read.c (read_a_source_file): if no file when inst is read, set
1075 generate_asm_lineno to true.
1076 * ecoff.h : change name to generate_asm_lineno and add function
1077 ecoff_no_current_file.
1078 * ecoff.c : change name to generate_asm_lineno.
1079 * ecoff.c (ecoff_generate_asm_lineno) : new function, to generate
1080 ecoff style line for asm file.
1081
1082 Thu Sep 8 19:43:49 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1083
1084 * config/obj-coff.c (size_section): Do an fprintf to stderr rather
1085 than a printf.
1086 (fixup_segment): Use as_bad_where rather than as_bad.
1087
1088 Wed Sep 7 17:21:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1089
1090 * config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing
1091 nothing becomes macro doing nothing.
1092
1093 Wed Sep 7 19:10:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1094
1095 * Makefile.in (Makefile): Depend on config.status.
1096 (config.status): Run config.status from . instead of srcdir.
1097
1098 * config/tc-i386.c (tc_gen_reloc): Use bfd_get_reloc_code_name to
1099 display the name of the relocation type that couldn't be handled.
1100 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1101 * config/tc-alpha.c (tc_gen_reloc): Likewise. Deleted abort call
1102 after call to as_fatal.
1103
1104 * configure.in (i386-*-linux*): Don't set bfd_gas.
1105
1106 * Makefile.in (CC_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET,
1107 install, uninstall): Don't use "brokensed" hack any more, the new
1108 autoconf code should never let program_transform_name be empty.
1109
1110 Update for autoconf beta 1.112:
1111 * aclocal.m4 (GAS_CHECK_DECL_NEEDED, GAS_WORKING_ASSERT): New
1112 macros.
1113 * configure.in: Use them. Use AC_ARG_PROGRAM (now provided by
1114 autoconf) instead of my hacked-up AC_PROGRAM_TRANSFORM_NAME. Move
1115 test for CROSS_COMPILE just before AC_FUNC_ALLOCA, and emit a
1116 message to try to ease confusion about autoconf's
1117 "cross-compiling" message.
1118 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_FREE,
1119 NEED_DECLARATION_ERRNO): Renamed from NEED_*_DECLARATION.
1120 * configure, conf.in: Regenerated.
1121
1122 Wed Sep 7 12:49:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1123
1124 * configure.in: Check ${host} and ${target} rather than
1125 ${host_canon} and ${target_canon}.
1126 * configure: Likewise.
1127
1128 Tue Sep 6 11:42:38 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1129
1130 * config/tc-mips.c (mips_cpu): New static variable.
1131 (insns_since_cache_access): New static variable.
1132 (md_begin): Set mips_cpu as well as mips_isa.
1133 (append_insn): If mips_cpu is 4600, require four nop instructions
1134 between an instruction which accesses the cache and certain CACHE
1135 instructions. Keep track of the number of instructions seen since
1136 an instruction which accesses the cache.
1137 (md_parse_option): Set mips_cpu as well as mips_isa.
1138
1139 Mon Sep 5 07:09:00 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1140
1141 * doc/Makefile.in (VPATH): Define using @srcdir@.
1142 (prefix, program_transform_name, exec_prefix): Use autoconf style
1143 @-substitutions.
1144
1145 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
1146
1147 * config/ho-riscix.h, config/tc-arm.c, config/tc-arm.h: New files
1148 * configure.in: Recognize the arm.
1149
1150 Fri Sep 2 16:05:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1151
1152 * ecoff.c (add_file): Don't try to generate line numbers if the
1153 symbol table has been frozen.
1154
1155 Thu Sep 1 19:48:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1156
1157 * aclocal.m4 (AC_PROG_CC): Use AC_DEFUN, and omit AC_PROVIDE.
1158
1159 * configure.in: Handle user-specified bfd-assembler option with
1160 separate variable from preferred configuration, until the two are
1161 resolved. Indicate bfd_gas=preferred for linux a.out. Use
1162 AC_PROGRAM_TRANSFORM_NAME, for which a patch has been sent to djm.
1163 * Makefile.in (target_alias, program_transform_name): Define,
1164 using autoconf @-substitutions.
1165
1166 Wed Aug 31 17:43:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1167
1168 * atof-generic.c: Deleted alloca handling here.
1169
1170 * Makefile.in (prefix, exec_prefix): Use @-subtitutions.
1171
1172 * aclocal.m4 (AC_OUTPUT_LINKS): Deleted redefinition, since
1173 autoconf 1.109 has this fixed.
1174 * configure.in: Don't change quote characters around AC_MSG_ERROR
1175 invocation. Don't use AC_HEADER_STDC, since it requires running a
1176 program. Cache NEED_*_DECLARATION values.
1177 * configure, conf.in: Regenerated with a modified autoconf 1.109.
1178
1179 * as.h (volatile): Don't test or define here; not needed.
1180 (alloca): Replace alloca-conf.h inclusion with code recommended in
1181 autoconf documentation. Include config.h first.
1182
1183 Wed Aug 31 11:20:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1184
1185 * config/obj-coff.h (S_IS_DEFINED): Absolute symbols are defined
1186 also.
1187
1188 * configure.in, configure: Initialize bfd_gas to no.
1189
1190 Tue Aug 30 19:31:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1191
1192 * as.h: Include alloca-conf.h from "libiberty", not
1193 "../libiberty".
1194
1195 Mon Aug 29 16:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1196
1197 * config/tc-ppc.c (md_apply_fix): Don't generate a reloc when a
1198 symbol is used as an offset into a CSECT that is not a TOC. These
1199 types of loads are generated by gcc -mminimal-toc.
1200
1201 Sun Aug 28 13:22:52 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
1202
1203 * as.h (flag_*): Added comments describing meanings of some of
1204 these variables.
1205 (struct frag): Add some comments about the ns32k-specific fields
1206 and why they're here.
1207 (SIZEOF_STRUCT_FRAG): Cast addresses to char*, not int.
1208 (flag_print_statistics): Declare.
1209
1210 * as.c (parse_args): Set flag_print_statistics instead of
1211 statistics_flag. Options array is now const. Added new option
1212 "dump-config"; if specified, print TARGET_ALIAS, TARGET_CANONICAL,
1213 TARGET_CPU, TARGET_OBJ_FORMAT, and TARGET_FORMAT, if defined.
1214 (main): Change test to check flag_print_statistics.
1215 (statistics_flag): Deleted.
1216
1217 * frags.c (frag_variant): Removed PCREL_ADJUST and BSR arguments.
1218 Always initialize them to zero.
1219 * frags.h (frag_variant): Fixed prototype.
1220 * config/tc-i960.c (get_cdisp): Don't pass the extra zero args.
1221 * config/tc-ns32k.c (convert_iif): Don't pass the arguments; cache
1222 the value of frag_now and fill in the fields later.
1223
1224 * Makefile.in (distclean, realclean): Remove new
1225 configure-generated files.
1226
1227 Sat Aug 27 20:26:12 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
1228
1229 Conversion to autoconf:
1230 * acconfig.h, aclocal.m4: New files.
1231 * configure.in: Rewritten (except for some target-specific code)
1232 for autoconf.
1233 * conf.in, configure: New files, generated from the above.
1234 * Makefile.in: Changed magic sequence indicating insertion of
1235 makefile fragments.
1236 (VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions
1237 from configure.
1238 (LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
1239 (config.status, configure): Rewrite rules.
1240 (config-stamp): Depend on conf. Skip variables that configure is
1241 now substituting itself.
1242 (*.o dependencies): Deleted host.h.
1243 (distclean, realclean): Don't delete host.h.
1244 * as.c: Don't include stdio.h, string.h, sys/types.h. Include
1245 signal.h after as.h.
1246 * as.h: Include alloca-conf.h first. Include ctype.h, string.h,
1247 strings.h, stdlib.h, unistd.h, sys/types.h, fopen-bin.h,
1248 fopen-same.h, as suggested by autoconf test results.
1249 [BROKEN_ASSERT]: Don't include assert.h.
1250 (strdup): Declare.
1251 (volatile, const): Define if not __STDC__ and not already defined.
1252 (malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
1253 (free) [NEED_FREE_DECLARATION]: Declare.
1254 * gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't
1255 include host.h.
1256 (malloc) [NEED_MALLOC_DECLARATION]: Declare.
1257 * messages.c: Include as.h first. Include errno.h only if
1258 HAVE_ERRNO_H. If HAVE_VARARGS_H and not __STDC__, undefine
1259 HAVE_STDARG_H. Set NO_STDARG and NO_VARARGS as appropriate.
1260 * doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM,
1261 INSTALL_DATA): Use autoconf @-substitutions.
1262
1263 * input-file.c: Don't include assert.h here, 'cause as.h already
1264 includes it.
1265
1266 * config/tc-alpha.c: Added various prototypes for static
1267 functions.
1268 (in_range): New function, tests whether a value can fit in an
1269 N-bit field.
1270 (build_mem, build_operate_n): New functions for constructing
1271 opcode values.
1272 (emit_sll_n, emit_ldah_num, emit_addq_r, emit_lda_n): New
1273 functions for emitting single instructions, no longer requiring a
1274 recursive call to md_assemble.
1275 (emit_add64): New function for expanding a REG:=REG+CONST
1276 operation into one or more instructions, to handle wide constants.
1277 (clear_insn): New variable.
1278 (md_begin): Fill it in with zeros and BFD_RELOC_NONE values.
1279 (alpha_ip): Use it to initialize local variable insns.
1280 (alpha_ip, label "immediate" and cases 'P', 'G'): Use emit_add64
1281 for calculations.
1282
1283 Fri Aug 26 14:46:15 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
1284
1285 * subsegs.c (section_symbol): Reverse still-wrong test of
1286 EMIT_SECTION_SYMBOLS.
1287
1288 * write.c (BFD_FAST_SECTION_FILL): Always define.
1289 (write_contents): If fill_size is 1, use memset instead of looping
1290 calling memcpy.
1291
1292 Wed Aug 24 12:46:08 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1293
1294 * config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibility
1295 with native MIPS assembler.
1296 * configure.in (mips-*-irix*): Don't set emulation.
1297 * config/te-irix.h: Remove.
1298
1299 * ecoff.c (ecoff_symbol_new_hook): Don't add a new file if we
1300 haven't seen any input files yet.
1301 * config/tc-alpha.c (md_begin): Just call symbol_create, rather
1302 than calling symbol_new and then removing the symbol from the
1303 list.
1304
1305 * as.c (main): Move a inside the #if 0 block which uses it.
1306 * ecoff.c (current_stabs_filename): Make const.
1307 * frags.h (frag_align_pattern): Declare.
1308 * gasp.c (new_file): Cast isp to long, and use %ld to print it.
1309 * config/tc-alpha.h (md_operand): Add cast to void.
1310 (alpha_do_align): Declare argument types.
1311 (tc_get_register): Declare.
1312 (alpha_frob_ecoff_data): Declare.
1313 * config/tc-alpha.c: Include <ctype.h>.
1314 (s_mask): Don't declare; does not exist.
1315 (line_comment_chars): Remove /* from descriptive comment.
1316 (tc_get_register): Remove unused local reg.
1317 (tc_gen_reloc): Don't bother to compare unsigned to zero.
1318 (s_base): Correct warning to actually print register number.
1319 (md_begin): Remove unused locals retval, lose, and i.
1320 (alpha_fix_adjustable): Move default case inside switch to avoid
1321 warning.
1322 (load_symbol_address): Remove unused locals reloc_addr, p, sym,
1323 and addend.
1324 (emit_byte_manip_r): Declare types for all arguments.
1325 (emit_extract_r, emit_insert_r, emit_mask_r): Likewise.
1326 (emit_sign_extend, emit_bis_r, s_proc): Likewise.
1327 (alpha_ip): Use sprint_value to print offsetT value. Remove
1328 unused local size. Remove unused label get_macro.
1329 (alpha_do_align): Make fill const.
1330 (md_apply_fix): Remove unused label check_zov.
1331
1332 * configure.in: Recognize i586 as a synonym for i[34]86.
1333
1334 Tue Aug 23 12:32:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1335
1336 * config/obj-coff.c (c_line_new): Change line_number argument from
1337 unsigned short to int so that the type in the prototype matches
1338 the promoted type in the definition.
1339 (stack_delete): Comment out; not used.
1340 * config/obj-coff.h (tc_coff_symbol_emit_hook): Declare if not
1341 BFD_ASSEMBLER, not if BFD_ASSEMBLER. Declare argument type.
1342 * config/tc-m68k.h (tc_coff_sizemachdep): Declare.
1343 * config/tc-m68k.c (tc_coff_symbol_emit_hook): Add ignored
1344 argument.
1345
1346 Tue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu)
1347
1348 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
1349 the common symbol to the zero address frag (the correct fix).
1350
1351 Tue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu)
1352
1353 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
1354 the common symbol to the zero address frag (the correct fix).
1355
1356 * config/tc-hppa.c (pa_comm): Set sy_resolved for the common
1357 symbol.
1358
1359 Fri Aug 12 17:51:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1360
1361 * config/tc-mips.c (md_begin): Drop "el" from the end of
1362 TARGET_CPU. Check for mips64orion.
1363
1364 Tue Aug 9 19:43:45 1994 Stu Grossman (grossman@cygnus.com)
1365
1366 * configure.in: Recognize ppc-*-netware.
1367 * config/te-ppcnw.h: New file to support Power-PC/Netware
1368 configurations. Currently, it just enables the use of backslash
1369 escapes in string directives.
1370
1371 Tue Aug 9 11:12:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1372
1373 * config/tc-ppc.c (ppc_stabx): Call expression directly, rather
1374 than via pseudo_set. If expression is a symbol, move stab symbol
1375 to just after symbol from expression.
1376
1377 * ecoff.c (ecoff_build_procs): Don't force adr of first fdr to be
1378 zero. Undoes change of June 4, 1993.
1379
1380 * config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, and
1381 orion.
1382
1383 Mon Aug 8 16:28:08 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1384
1385 * as.h: Remove FOPEN_WB patch of Aug 6.
1386 * configure.in: Configure for ho-go32 correctly.
1387 * config/ho-go32.h: Fix copyright.
1388
1389 Mon Aug 8 11:59:51 1994 Jeff Law (law@snake.cs.utah.edu)
1390
1391 * gas/config/tc-hppa.c (md_pseudo_table): Delete redundant
1392 upper-case versions of the pseudo-ops.
1393
1394 Mon Aug 8 13:42:16 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1395
1396 * config/tc-sparc.c (md_apply_fix): If we are going to generate a
1397 non PC relative reloc, don't put the addend in the object file.
1398
1399 Sat Aug 6 01:15:02 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1400
1401 * as.h: If FOPEN_WB is not defined, do the right thing in a go32
1402 environment.
1403
1404 Mon Jul 11 11:34:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1405
1406 * config/tc-h8300.c (pint): New function for handling varying
1407 size of int pseudo op.
1408 * doc/as.texinfo: Fix typo describing .h8300h pseduop.
1409
1410 Mon Aug 1 02:40:43 1994 Jeff Law (law@snake.cs.utah.edu)
1411
1412 * config/tc-hppa.c (create_new_space): Initialize sd_subspaces
1413 field in the space chain.
1414
1415 * config/tc-hppa.c (tc_gen_reloc): Cast return value from
1416 hppa_gen_reloc_type.
1417
1418 Thu Jul 28 15:45:37 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1419
1420 * config/tc-sparc.c (sparc_ip): Check more carefully for
1421 conflicting architectures.
1422 (md_parse_option) [NO_V9]: Complain if v9 was selected.
1423 (md_show_usage): Derive architecture list in usage message from
1424 architecture_pname array.
1425 (cypress): Macro deleted.
1426 (op_hash): Don't initialize.
1427 (s_common): Use bfd_und_section_ptr instead of bfd_und_section.
1428
1429 * config/tc-sparc.c (BSR): New function.
1430 (sparc_ip): Use it for right-shift operations of 32 bits or more.
1431
1432 * config/tc-sparc.c (sparc_ip): Implement new operand type 'x'.
1433
1434 Tue Jul 26 18:21:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1435
1436 * config/obj-coff.h: Moved common includes and TARGET_FORMAT
1437 definitions together.
1438 (WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD,
1439 OBJ_COFF_OMIT_OPTIONAL_HEADER, BFD_HEADERS, BFD) [!BFD_ASSEMBLER]:
1440 Moved these definitions to the start of the file, before the
1441 includes.
1442 (SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always
1443 define these.
1444 (S_GET_ZEROES): Deleted.
1445 (S_SET_ZEROES): Moved to obj-coff.c.
1446
1447 * config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted
1448 forward declarations.
1449 (obj_pseudo_table): Moved to one version end of file,
1450 conditionalized internally.
1451 (stack typedef, stack_init, stack_delete, stack_push, stack_pop,
1452 tag_hash, tag_init, tag_insert, tag_find, tag_find_or_make): Moved
1453 to one combined version at top of file, unconditional. Deleted
1454 forward declarations.
1455 (s_get_name): Moved one copy of declarations to start of file.
1456 (def_symbol_in_progress): Ditto. Don't initialize.
1457 (S_SET_ZEROES): Moved here from obj-coff.h.
1458 (write_object_file): If TC_COFF_SET_MACHINE is defined, call it on
1459 the file headers.
1460
1461 * config/obj-coff.c (seg_info_off_by_4): Now const and static.
1462 (SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted.
1463 (previous_file_symbol, def_symbol_in_progress, symbol_externP,
1464 symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't
1465 bother explicitly initializing to zero value.
1466
1467 * config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME
1468 and SF_GET_CALLNAME instead of the TC_S_IS_ versions.
1469
1470 * config/tc-i960.h (TC_COFF_SET_MACHINE): New macro. Calls
1471 tc_headers_hook.
1472
1473 * config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX
1474 was used previously.
1475 (tc_headers_hook): If I_CX2 is found, set flags to F_I960CA.
1476
1477 * config/tc-i960.c (po_hash): Declaration deleted.
1478 (next_object_file_charP): Ditto.
1479 (regnames, aregs, coj): Now const.
1480 (parse_memop): Static array def_scale now const.
1481 (md_begin): Cast away const when passing hash routines addresses
1482 of values in regnames or aregs.
1483 (md_longopts): Added "link-relax" and "no-relax" hyphenated forms.
1484 Continue to accept one-word forms.
1485 (struct tabentry, arch_tab): Moved to top level from inside
1486 md_parse_option. Now const.
1487 (md_show_usage): Use arch_tab to generate usage message. Print
1488 hyphenated forms of relax options.
1489
1490 * config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC,
1491 TC_S_FORCE_TO_*): Moved from here...
1492 * config/tc-i960.c: ... to here. Changed DEFINE_I960_AOUT stuff
1493 to test OBJ_AOUT and OBJ_BOUT directly.
1494
1495 * config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ,
1496 M1-M3, REG_OPC, R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F,
1497 {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK, FP_OK, REG_ALIGN, MEMOP, I_*):
1498 Macros deleted.
1499
1500 start-sanitize-i960xl
1501 * config/tc-i960.c (ARCH_XL): Define.
1502 (arch_tab): Include XL.
1503 (targ_has_sfr, targ_has_iclass): Handle XL.
1504 (tc_headers_hook): Set flags to F_I960XL for i960XL.
1505 end-sanitize-i960xl
1506
1507 Fri Jul 15 15:36:51 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1508
1509 * subsegs.c (section_symbol): Had last change backwards.
1510
1511 Thu Jul 14 13:21:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1512
1513 * config/atof-ns32k.c: Deleted.
1514
1515 * config/obj-aout.c (obj_aout_frob_symbol): Use
1516 bfd_ind_section_ptr and bfd_und_section_ptr.
1517
1518 * subsegs.c (subseg_set_rest): Compare segT values directly,
1519 without casting to int first.
1520
1521 * config/tc-ns32k.c (md_begin): Return value from hash_insert
1522 should be pointer to const. Don't call exit explicitly after
1523 calling as_fatal; it won't return.
1524 (convert_iif): Make local variable j be pointer to bit_fixS, since
1525 that's how it's used.
1526 (encode_operand, case 'b'): Ignore sprintf return value. Don't try
1527 converting freeptr to int and back.
1528
1529 Merged in NS32K support update from Ian Dall (dall@hfrd.dsto.gov.au):
1530
1531 * config/te-pc532mach.h: New file. pc532-mach target emulation.
1532
1533 * config/te-netbsd532.h: New file. Netbsd532 target emulation.
1534
1535 * config/tc-ns32k.h: Add definition of NOP_OPCODE.
1536
1537 * config/tc-ns32k.h: Add prototype for fix_new_ns32k_exp.
1538
1539 * config/tc-ns32k.h: Add BFD_ASSEMBLER support.
1540
1541 * config/tc-ns32k.c (tc_gen_reloc): New function for BFD_ASSEMBLER.
1542
1543 * config/tc-ns32k.c (fix_new_ns32k_exp): Get reloc type
1544 differently for BFD_ASSEMBLER.
1545
1546 * config/tc-ns32k.c (md_estimate_size_before_relax): Get reloc
1547 type differently for BFD_ASSEMBLER.
1548
1549 * config/tc-ns32k.c (md_create_long_jump): Size of opcode is one
1550 not 2.
1551
1552 * config/tc-ns32k.c (md_convert_frag): Code for the BFD_ASSEMBLER
1553 case. Also use smart md_pcrel_adjust function.
1554
1555 * config/tc-ns32k.c (md_apply_fix): Code for the BFD_ASSEMBLER
1556 case. Also use smart md_fix_pcrel_adjust function.
1557
1558 * config/tc-ns32k.c (md_fix_pcrel_adjust): New function which can
1559 find offset from opcode to operand even if in another frag
1560 and in the presence of relaxing.
1561
1562 * config/tc-ns32k.c (md_pcrel_adjust): New function which can
1563 find offset from opcode to operand even if in another frag
1564 and in the presence of relaxing.
1565
1566 * config/tc-ns32k.c (md_number_to_disp): Check ranges properly.
1567
1568 * config/tc-ns32k.c (md_atof): use atof_ieee instead of special
1569 atof_ns32k.
1570
1571 * config/tc-ns32k.c (reloc): New (static) function for
1572 BFD_ASSEMBLER.
1573
1574 * config/tc-ns32k.c (convert_iif): More correct pc relative code.
1575 md_relax must be able to find opcode address even if in another frag.
1576
1577 * config/tc-ns32k.c: More extensive comments.
1578
1579 * config/tc-ns32k.c (encode_operand): Support new operand classes I
1580 and Z. Drop Q.
1581
1582 * config/tc-ns32k.c (fix_new_ns32k_exp): new function and
1583 corresponding prototype.
1584
1585 * config/tc-ns32k.c: make 32532 default machine instead of 32032.
1586
1587 * config/tc-ns32k.c: include opcode/ns32k.h after as.h
1588
1589 * aout_gnu.h: r_disp needs to be 2 bits for TC_NS32K
1590
1591 * write.h: fx_im_disp needs to be 2 bits big for TC_NS32K
1592
1593 * write.c (relax_segment): Use TC_PCREL_ADJUST macro (if defined)
1594 instead of adding pcrel_adjust.
1595
1596 * write.c (write_object_file): Adjust to_addr for the
1597 BROKEN_DOT_WORD feature for the BFD_ASSEMBLER case.
1598
1599 * write.c (write_object_file): Use TC_CONS_FIX_NEW if it is defined.
1600
1601 * write.c (write_contents): Add code (currently if
1602 BFD_FAST_SECTION_FILL is defined) to make large fills a lot faster.
1603
1604 * configure.in: Remove ns32k from special FP list. All the ns32k
1605 series use ieee float.
1606
1607 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd targets
1608
1609 * as.h: include expr.h before targ-env.h. Some target dependent file
1610 want to use expr structures.
1611
1612 Wed Jul 13 14:49:05 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1613
1614 * config/tc-m68k.c (m68k_ip): Change rp to be a const pointer.
1615 (md_parse_option): Clear cpu field of current_architecture before
1616 setting a new cpu type. Clear no_68881 for m68881 or m68882.
1617 Clear no_68851 for m68851.
1618
1619 Tue Jul 12 21:27:05 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1620
1621 * config/ho-sysv.h (realloc): Declare.
1622
1623 * symbols.c (symbol_create): New function, most of the guts of the
1624 old symbol_new function.
1625 (symbol_new): Now just checks symbol_table_frozen, calls
1626 symbol_create, and enters the symbol into the symbol table.
1627 * subsegs.c (section_symbol): If EMIT_SECTION_SYMBOLS is not true,
1628 and the symbol table is frozen, call symbol_create instead of
1629 symbol_new.
1630 * symbols.h (symbol_create, symbol_table_frozen): Declare.
1631
1632 * symbols.c (symbol_clear_list_pointers): Always a function now.
1633 * struc-symbol.h (symbol_clear_list_pointers): Deleted macro
1634 version.
1635
1636 * symbols.c (debug_verify_symchain): New macro, defined to be
1637 verify_symbol_chain or a cast to void, depending on DEBUG_SYMS.
1638 (many functions): Invoke debug_verify_symchain unconditionally.
1639
1640 Tue Jul 12 12:06:42 1994 Kung Hsu (kung@x1.cygnus.com)
1641
1642 * config/obj-ecoff.h: change calling interface of
1643 OBJ_GENERATE_ASM_LINE_STAB.
1644 * config/obj-elf.h: ditto.
1645 * read.c (read_a_source_file): ditto.
1646 * ecoff.h: change calling interface of
1647 ecoff_generate_asm_line_stab.
1648 * ecoff.c (add_file): record of filename to handle case of include
1649 files, also change default built-in type from int to void for
1650 asm file.
1651 * ecoff.c (ecoff_generate_asm_line_stab): handle case of include
1652 files.
1653
1654 Mon Jul 11 17:20:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1655
1656 * config/tc-mips.c (macro): In case M_LA_AB, SVR4_PIC, large
1657 constant, and case ldd_std, set mips_optimize to 2 temporarily to
1658 avoid inserting an unexpected nop instruction.
1659
1660 Sat Jul 9 00:05:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1661
1662 * ecoff.c (ecoff_build_lineno): Handle count correctly for last
1663 line number.
1664
1665 Fri Jul 8 15:22:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1666
1667 * gasp.c (process_pseudo_op): Pass right args to do do_aif.
1668 (get_any_string): New arg 'pretend_quote'.
1669 (get_and_process, do_formals, macro_expand, do_sdata,
1670 process_pseudo_op): Use new arg.
1671
1672 Fri Jul 8 12:23:44 1994 Kung Hsu (kung@mexican.cygnus.com)
1673
1674 * config/obj-ecoff.h: define macro OBJ_GENERATE_ASM_LINE_STAB.
1675 * config/obj-elf.h: ditto.
1676 * read.c (read_a_source_file): generate line stabs for asm file.
1677 * read.h: add extern generate_asm_line_stab.
1678 * ecoff.h : add prototype for ecoff_generate_asm_line_stab().
1679 * ecoff.c (add_file): if there's no filename provided, set switch
1680 to generate line stabs for .s file.
1681 * ecoff.c (add_procedure): add stabs symbol for .ent directive.
1682 * ecoff.c (generate_ecoff_stab): creates an artificial stabs.
1683 * ecoff.c (generate_asm_line_stab): generate a artifitial label
1684 for each line and generate a stabn for the line.
1685
1686 Thu Jul 7 17:04:03 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1687
1688 * gasp.c (get_any_string): Cope with getting a string with an
1689 alternate base specifier.
1690 (do_aif, do_aelse): Only enable output if expression is true and previous
1691 level was on.
1692 (chartype_init): Add BASEBIT chartype.
1693 (process_pseudo_op): Notice nesteed AIFs.
1694
1695 Thu Jul 7 12:30:22 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1696
1697 * h8300.c (do_a_fix_imm): Code for 2 bit reloc type using in trapa
1698 insn. (fix pr 5165, 5174)
1699
1700 Thu Jul 7 11:31:32 1994 Jeff Law (law@snake.cs.utah.edu)
1701
1702 * config/tc-hppa.c (R_DLT_REL): If it isn't defined, then define
1703 to an appropriate value to avoid losing on old hpux systems.
1704
1705 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions for
1706 symbols in DLT relative relocs.
1707 (tc_gen_reloc): Zero out the addend field for DLT relative relocs.
1708
1709 Wed Jul 6 01:07:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1710
1711 * config/tc-ppc.c (ppc_tc): If not OBJ_COFF, force TOC entry to
1712 align to a four byte boundary.
1713
1714 Tue Jul 5 15:42:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1715
1716 * config/tc-alpha.c (load_expression): Handle 32-bit addends.
1717 (gpdisp_hi16_howto): Now points to const.
1718 (load_insn_table, alpha_ip): Fix uses of const.
1719
1720 * doc/internals.texi: Updates to COFF description. Added "@end
1721 defmac" as needed, and some extra heading and "@bye" so it'll
1722 format as a separate document.
1723
1724 Tue Jul 5 13:54:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1725
1726 * config/obj-elf.h (S_GET_ALIGN, S_SET_ALIGN): Define.
1727 * config/obj-elf.c (obj_elf_common): Set alignment of common
1728 symbol.
1729 * config/tc-sparc.c (s_common): If OBJ_ELF, set alignment of
1730 common symbol.
1731
1732 Mon Jul 4 18:29:43 1994 Jeff Law (law@snake.cs.utah.edu)
1733
1734 * config/tc-hppa.c (is_complex): New macro.
1735 (cons_fix_new_hppa): "Handle" complex expressions.
1736
1737 Fri Jul 1 00:48:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1738
1739 * config/obj-coff.c (write_object_file): Set s_align field from
1740 section_alignment array.
1741
1742 Thu Jun 30 15:05:28 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1743
1744 * write.c (write_object_file): Use bfd_com_section_ptr.
1745 * as.h (absolute_section, undefined_section): Use new BFD macros
1746 bfd_abs_section_ptr and bfd_und_section_ptr.
1747
1748 Thu Jun 30 14:36:37 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1749
1750 * config/tc-mips.c (macro): For M_LI_SS, decide how to handle it
1751 based on contents of imm_expr and offset_expr, rather than
1752 mips_pic. For M_LI_DD, decide how to handle it based on segment
1753 name of offset_expr, rather than mips_pic.
1754 (mips_ip): If g_switch_value < 4, use immediate values for 'l'.
1755 If g_switch_value < 8, use .rdata rather than .lit for 'L'.
1756
1757 Wed Jun 29 17:30:46 1994 Stan Shebs (shebs@andros.cygnus.com)
1758
1759 * as.c (show_usage): Break long string into shorter ones.
1760 (parse_args): Add -v, prints version id and continues.
1761 * config/tc-mips.c (md_show_usage): Break long string.
1762
1763 Mon Jun 27 09:47:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1764
1765 * config/tc-i386.c (md_parse_option): Handle "-V" and "-Q" if
1766 OBJ_ELF is defined.
1767
1768 Sun Jun 26 16:30:48 1994 Stan Shebs (shebs@andros.cygnus.com)
1769
1770 * as.c (main) [HOST_SPECIAL_INIT]: New hook, for host-specific
1771 initialization.
1772
1773 Wed Jun 22 00:24:55 1994 Jeff Law (law@snake.cs.utah.edu)
1774
1775 * config/tc-hppa.h (obj_frob_symbol): Define for OBJ_ELF.
1776 More gas/bfd lossage exposed by the new linker code.
1777
1778 Tue Jun 21 11:32:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1779
1780 * subsegs.c (subseg_change): Clear seginfo after allocating it.
1781 (subseg_get): Pass actual size of seginfo to memset.
1782
1783 * subsegs.c (abs_seg_info, und_seg_info): Define if BFD_ASSEMBLER.
1784 (subseg_change): Store seg_info for bfd_abs_section_ptr in
1785 abs_seg_info, and store seg_info for bfd_und_section_ptr in
1786 und_seg_info.
1787 (subseg_get): Likewise. Also, don't set output_section if it is
1788 already set.
1789 (seg_info): Define as function.
1790 * subsegs.h (seg_info): Declare as function rather than defining
1791 as macro.
1792 * write.c (relax_and_size_seg): Call seg_info rather than
1793 bfd_get_section_userdata.
1794
1795 Mon Jun 20 16:30:54 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1796
1797 * configure.in (ppc-*-elf*): New target, like -sysv4*.
1798
1799 * expr.c (operand): If "0f" is followed by '\0', don't do eol
1800 checks.
1801
1802 Mon Jun 20 15:17:43 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1803
1804 * ecoff.c (ecoff_build_aux): Call swap_tir_out and swap_rndx_out
1805 via backend pointer, not directly.
1806
1807 Fri Jun 17 18:05:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1808
1809 * Makefile.in (config-stamp): Make sure there is at least one
1810 element in the for loop.
1811
1812 Fri Jun 17 11:01:04 1994 Jeff Law (law@snake.cs.utah.edu)
1813
1814 * config/tc-hppa.c: Misc trivial changes to make gcc -Wall happy.
1815
1816 * config/tc-hppa.h (elf_hppa_final_processing): Declare.
1817
1818 Wed Jun 15 20:44:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1819
1820 * as.c (parse_args): Cast xmalloc return value.
1821
1822 * Makefile.in (config-stamp): If $(defs) contains multiple words,
1823 emit a #define line for each.
1824 * configure.in: For sparc64 target, use sparc cpu files and add
1825 sparcv9 to extra_defs. No longer treat sparc64-*-aout* specially.
1826
1827 * config/tc-sparc.c (membar_masks): Now static and const.
1828 (md_show_usage) [!NO_V9]: Add -Av9 to usage message.
1829 (current_architecture) [sparcv9]: Initialize to v9.
1830 (md_begin) [sparcv9]: Don't bother changing it unconditionally
1831 here.
1832 (s_reserve): Don't pass unexpected argument to as_bad with
1833 bad-segment message.
1834
1835 * as.h (bfd_alloc_by_size_t) [BFD_ASSEMBLER]: Declare.
1836
1837 * config/atof-ieee.c (int_to_gen): Commented out unused routine.
1838
1839 * config/tc-vax.c (md_assemble): Removed check of operand section.
1840
1841 Fri Jun 3 17:25:08 1994 Pat Rankin (rankin@eql.caltech.edu)
1842
1843 * config/obj-vms.h (DBG_S_C_COMPLX4, DBG_S_C_COMPLX8): define
1844 these new VMS symbol-type macros for `complex float' and
1845 `complex double' support. Their values come from the existing
1846 DSC$K_DTYPE_FC and DSC$K_DTYPE_DC macros in <descrip.h>.
1847 (DBG_S_C_REAL8_G, DBG_S_C_COMPLX8_G): G_float versions of
1848 REAL8 and COMPLX8; not used yet, because gcc outputs the same
1849 .stabs for `double' regardless of whether `-mg' is used.
1850 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
1851 for gcc2's predefined types "complex float", "complex double",
1852 and "complex long double" (identical to complex double).
1853
1854 Wed Jun 15 12:32:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1855
1856 * config/obj-coff.c (coff_frob_symbol): Use C_STAT for the .text
1857 section symbol, not C_LABEL.
1858
1859 * config/tc-mips.c (mips_ip): Permit a modifier in 'o' case, and
1860 permit non constant expressions in 'u' case. Lets ``lui
1861 $8,%hi(foo); lw $8,%lo(foo)($8)'' work correctly.
1862
1863 Mon Jun 13 12:08:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1864
1865 * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
1866 to put a common symbol in a set.
1867
1868 Sat Jun 11 16:41:21 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1869
1870 Add weak symbols as an extension to a.out.
1871 * read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and
1872 OBJ_BOUT if not BFD_ASSEMBLER.
1873 * config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB):
1874 Define as in ../include/aout/aout64.h.
1875 * config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER,
1876 define as char.
1877 (S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER.
1878 * config/obj-aout.c (obj_pseudo_table): Add "weak".
1879 (obj_emit_symbols): Adjust type of weak symbols.
1880 (obj_aout_weak): New static function.
1881
1882 Fri Jun 10 13:48:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1883
1884 * config/obj-elf.c (obj_elf_section): Don't set any flags based on
1885 the type of a special section.
1886
1887 * config/ho-sunos.h: Include <stdlib.h>. Don't declare malloc,
1888 realloc, free, or atol.
1889
1890 Wed Jun 8 06:28:37 1994 Bill Cox (bill@cygnus.com)
1891
1892 * Makefile.in (check): Delete as.new dependency, so that
1893 regression test doesn't trigger an assembler build.
1894
1895 Tue Jun 7 13:33:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1896
1897 * Makefile.in (mostlyclean, realclean): New targets.
1898 * doc/Makefile.in, testsuite/Makefile.in: Likewise.
1899
1900 Mon Jun 6 13:10:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1901
1902 * config/tc-mips.c (RDATA_SECTION_NAME): Define.
1903 (macro): Correct M_LI_SS SVR4_PIC/EMBEDDED_PIC case. After M_LI_D
1904 or M_L_DOB or label dob, force a new frag to avoid getting
1905 confused in tc_gen_reloc.
1906 (mips_ip): Use RDATA_SECTION_NAME, not .rdata.
1907 (s_change_sec): Likewise.
1908
1909 Fri Jun 3 23:35:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1910
1911 * read.c (emit_expr): Use memset to zero out memory, rather than
1912 going through md_number_to_chars. This permits handling symbolic
1913 arguments when the size is larger than sizeof (valueT), if
1914 TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS).
1915
1916 Fri Jun 3 12:50:13 1994 David J. MacKenzie (djm@rtl.cygnus.com)
1917
1918 * as.c (show_usage), config/tc-alpha.c (md_show_usage),
1919 config/tc-mips.c (md_show_usage): Fix up messages.
1920
1921 * as.h: Replace flagseen with separate variables.
1922 * as.c (parse_args): Set them. Don't accept -1 option, or -v
1923 explicitly (it's a synonym for --version).
1924 * as.c, input-scrub.c, messages.c, read.c, symbols.c, write.c,
1925 config/obj-aout.c, config/obj-aout.h, config/obj-bout.c,
1926 config/obj-bout.h, config/obj-coff.c, config/obj-coff.h,
1927 config/obj-vms.c, config/tc-hppa.c, config/tc-i386.c,
1928 config/tc-i960.c, config/tc-m68k.c, config/tc-mips.c,
1929 config/tc-vax.c: Use the new flag variables instead of flagseen.
1930 * config/tc-vax.c [OBJ_VMS]: Recognize -+, -1, -v, and document in
1931 usage.
1932
1933 * as.c (show_usage): Remove target specific messages;
1934 instead, call md_show_usage.
1935 (parse_args): Use getopt_long_only. Take pointers to argc and
1936 argv.
1937 (main): Pass parse_args pointers.
1938 * as.h: Remove 3 variables that are redundant with flagseen.
1939 * as.c, messages.c: Change their users to use flagseen.
1940 Define getopt stuff.
1941 * tc.h: Update md_parse_option decl. Add md_show_usage decl.
1942 * config/tc-*.c: Add md_shortopts, md_longopts,
1943 md_longopts_size, md_show_usage. Change calling convention for
1944 md_parse_option. Remove md_parse_long_option.
1945 * config/tc-ns32k.c: Rename `struct option' to `struct ns32k_option'.
1946 * config/tc-i386.h: Don't define md_parse_option.
1947
1948 Thu Jun 2 13:54:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1949
1950 * as.c (show_usage): New function.
1951 (parse_args): Code moved from main.
1952 Recognize --help and --version.
1953 * config/tc-ns32k.h: Define TC_NS32K.
1954 * doc/as.texinfo: Document all of the target-independent command
1955 line options.
1956
1957 Thu Jun 2 12:07:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1958
1959 * gasp.c (hash_new_table): Clear newly allocated table.
1960
1961 * config/tc-m68k.c (enum _register): Add 68060 control registers
1962 BUSCR and PCR.
1963 (last_movec_reg): New macro.
1964 (m68000_control_regs, m68010_control_regs, m68020_control_regs,
1965 m68040_control_regs, m68060_control_regs): New arrays.
1966 (control_regs): New pointer.
1967 (m68k_ip): Use control_regs instead of testing CPU every time.
1968 Use last_movec_reg too. In error messages, handle 68060, and
1969 print 68060 for mfloat, too.
1970 (m68k_init_after_args): Handle "68060". Use m68040up for making
1971 m68851 choice. Set control_regs.
1972 (md_parse_option): Handle "68060".
1973 * configure.in: Setting cpu_type, recognize m68060 too.
1974
1975 * config/obj-coff.c (fixup_segment) [!BFD_ASSEMBLER]
1976 [DIFF_EXPR_OK]: Do conversion to pc-relative for difference, even
1977 if pcrel is already set.
1978
1979 * read.c (potable): Add this_gcc_requires_the_gnu_assembler in all
1980 lower-case, in case we're ignoring case of opcodes in the input
1981 file.
1982
1983 * doc/as.texinfo (.section): Document as unavailable for a.out
1984 type formats.
1985
1986 * config/tc-alpha.c (machine): New variable.
1987 (load_insn): New macro.
1988 (load_insn_table): New function.
1989 (md_begin): Call load_insn_table, once for basic instructions and
1990 once for appropriate PAL instruction table.
1991 (md_parse_option): Set `machine' based on -m##### arguments.
1992 * config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from
1993 alpha_opcodes.
1994 (alpha_pal21164_opcodes): New table.
1995 (NUM21064OPCODES, NUM21164OPCODES): New macros.
1996
1997 * configure.in (target i386-*-netbsd0.8): Use 386bsd emulation.
1998
1999 * doc/Makefile.in (install-info-gasp): Use $$dir when installing
2000 file.
2001
2002 Wed Jun 1 10:48:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2003
2004 * config/tc-mips.c (mips_ip): Force floating point values to be
2005 aligned correctly.
2006
2007 Fri May 27 10:05:53 1994 Ken Raeburn (raeburn@cygnus.com)
2008
2009 Merged in changes from gas-2.3 net release:
2010
2011 * Makefile.in (VERSION): Updated to cygnus-2.3.1.
2012
2013 * config/obj-vms.c: Replaced unchecked uses of malloc with
2014 xmalloc.
2015
2016 * listing.c (list_symbol_table): Only test BFD64, not
2017 BFD_ASSEMBLER too.
2018
2019 * config/obj-coff.c (fixup_segment) [BFD_ASSEMBLER]
2020 [DIFF_EXPR_OK]: Don't check pcrel, just convert it.
2021
2022 * config/obj-vms.c: Removed lots of extra semicolons after
2023 compound statements.
2024 (strchr): Don't declare here.
2025
2026 * config/ho-vax.h (realloc): Declare.
2027
2028 * config/ho-vms.h (strchr, strdup): Declare.
2029
2030 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Accept and ignore
2031 option `-q'.
2032
2033 Wed May 18 20:50:35 1994 Pat Rankin (rankin@eql.caltech.edu)
2034
2035 * config/obj-vms.h (DBG_S_C_SQUAD, DBG_S_C_UQUAD): define these
2036 new VMS symbol-type macros; signed and unsigned quadword integers,
2037 for `long long' support. Their values come from the existing
2038 DSC$K_DTYPE_QU and DSC$K_DTYPE_Q macros in <descrip.h>. The
2039 VMS debugger now recognizes `long long' variables correctly.
2040 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
2041 for gcc2's predefined types "long double" (same as double, as
2042 per gcc's current state), "long long int", "long long unsigned
2043 int", and final `otherwise' case (to avoid uninitialized type
2044 and size fields). [caveat: predefined types "complex int",
2045 "complex float", "complex double", and "complex long double" are
2046 still missing.]
2047
2048 * config/ho-vms.h (EXIT_FAILURE): define as 0x10000002 instead
2049 of 0, because the latter indicates success rather than failure
2050 when passed to `exit' or return from `main' compiled by gcc2.
2051
2052 * config/obj-vms.c (array_suffix, generate_suffix): replace two
2053 hardcoded `0xa3's with macro DBG_S_C_ADVANCED_TYPE from obj-vms.h.
2054 (VMS_typedef_parse): eliminate redundant if-then-else when
2055 allocating new symbol entry and linking it to VMS_Symbol_type_list.
2056
2057 Tue May 17 20:47:31 1994 Pat Rankin (rankin@eql.caltech.edu)
2058
2059 * config/obj-vms.c (Write_VMS_MHD_Records): don't try to interpret
2060 the contents of the GAS_VERSION string when falling back to it for
2061 language processor identification.
2062
2063 * make-gas.com, vmsconf.sh (ENVIRON): fix misspelling of
2064 `psect_attr' in linker options.
2065
2066 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
2067
2068 * configure.bat: update to latest makefile.in
2069 * config/te-go32.h: [new] go32's environment
2070
2071 Fri May 20 17:59:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2072
2073 * as.h: Don't declare parameters for strstr.
2074
2075 Thu May 19 15:40:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2076
2077 * config/tc-sparc.c (md_section_align): Don't change the size if
2078 OBJ_ELF.
2079
2080 Wed May 18 13:08:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2081
2082 * Makefile.in (install): Redirect ln output to /dev/null. If ln
2083 fails on gasp, install gasp.new, not gasp.
2084
2085 Wed May 18 09:16:36 1994 Jeff Law (law@snake.cs.utah.edu)
2086
2087 * config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA for
2088 absolute calls.
2089
2090 Tue May 17 12:50:46 1994 Jeff Law (law@snake.cs.utah.edu)
2091
2092 * config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
2093 on a partial completer match.
2094
2095 Mon May 16 12:03:49 1994 Jeff Law (law@snake.cs.utah.edu)
2096
2097 * config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind
2098 throughout code.
2099 (is_complex): Delete definition and support for complex relocation
2100 types.
2101 (tc_gen_reloc): Delete special unwind crud for ELF. Simplify and
2102 rewrite ELF code based on 94-02-02 PA ELF draft spec.
2103 (pa_build_unwind_subspace): Use standard PARISC_DIR32 relocs for
2104 the unwind descriptors.
2105
2106 Fri May 6 14:13:15 1994 Steve Chamberlain (sac@cygnus.com)
2107
2108 * config/go32.mh: New makefile fragment for go32 crossing.
2109 * configure.in (host==go32): Use new fragment.
2110
2111 Fri May 6 14:35:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2112
2113 * gasp.c: Include libiberty.h.
2114 (main): Remove unused variable i.
2115
2116 * config/tc-ppc.c (md_begin): When using -many, permit comparison
2117 instructions to appear multiple times in the opcode table.
2118
2119 Thu May 5 19:14:43 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2120
2121 * Makefile.in (VERSION): Update to 2.2.90.
2122
2123 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Don't permit additions
2124 to the symbol table if it's already been set in the output bfd.
2125 (symbol_begin) [! EMIT_SECTION_SYMBOLS] [RELOC_REQUIRES_SYMBOL]:
2126 Don't use bfd_abs_section.symbol for gas absolute symbol.
2127
2128 * doc/Makefile.in (distclean, clean-dvi, clean-info): Delete gasp
2129 files too.
2130
2131 Thu May 5 18:12:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2132
2133 * config/tc-mips.c (mips_emit_delays): Make call to
2134 mips_no_prev_insn unconditional.
2135
2136 Thu May 5 17:25:38 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2137
2138 * config/obj-coff*.*: Merged coffbfd versions into coff versions,
2139 with a single "#ifdef BFD_ASSEMBLER" controlling most of it for
2140 now. Deleted obj-coffbfd.* files.
2141 * configure.in: Always use obj-coff.* for COFF targets.
2142
2143 Wed May 4 13:34:11 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2144
2145 * config/te-dpx2.h (TARGET_FORMAT, REGISTER_PREFIX_OPTIONAL):
2146 Define.
2147 * configure.in (m68k-bull-sysv3*): Enable.
2148
2149 * config/coff_gnu.h: Deleted.
2150
2151 Wed May 4 11:29:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2152
2153 * config/tc-m68k.h (TARGET_FORMAT): If not TE_SUN3, define as
2154 "a.out-zero.big".
2155
2156 * config/obj-coffbfd.c (fixup_segment): Make common symbol and PC
2157 relative adjustments when TE_LYNX is defined as well as when
2158 TC_I386 is defined.
2159
2160 Wed May 4 02:29:21 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2161
2162 * as.h (strstr): Restore declaration.
2163 (subseg_get) [BFD_ASSEMBLER]: Declare.
2164
2165 * write.c (write_object_file): If obj_adjust_symtab is defined,
2166 invoke it. Then call set_symtab, and finally invoke *_frob_file
2167 hooks.
2168 * config/obj-coff.c (coff_adjust_symtab): Renamed from
2169 coff_frob_file.
2170 * config/obj-coff.h (coff_adjust_symtab): Changed declaration
2171 accordingly.
2172 (obj_adjust_symtab): Macro also changed.
2173
2174 * configure.in (i386-*-gnu*): New target, handled like i386-mach.
2175
2176 Tue May 3 21:04:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2177
2178 * config/obj-coff.h (TARGET_FORMAT) [TC_I960]: Select little
2179 endian version.
2180
2181 * config/obj-coffbfd.h (TARGET_FORMAT) [TC_I960]: Ditto.
2182
2183 * config/obj-coff.c (coff_frob_section): Round up the size of
2184 every section to a multiple of the alignment, so that BFD doesn't
2185 surprise us.
2186
2187 Eliminate many simple differences between the two COFF back ends:
2188
2189 * config/obj-coffbfd.c: Removed all uses of DEFUN and DEFUN_VOID.
2190 Made minor stylistic changes, deleted some register declarations.
2191 (stack_top): Deleted.
2192 (symbol_to_chars): Use absolute_section and reg_section instead of
2193 the corresponding SEG_* symbols.
2194 (obj_coff_endef, tag_find_or_make, fixup_segment): Likewise.
2195 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
2196 Moved to just after pseudo-op table. All functions now static.
2197 (stack_delete): Removed declaration.
2198 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
2199 after stack functions.
2200 * config/obj-coffbfd.h: Reordered some declarations and macros.
2201 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
2202 (stack typedef): Deleted.
2203 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
2204 (SYM_AUXENT): New macro.
2205 (SA_GET_*, SA_SET_*): Define in terms of SYM_AUXENT when feasible.
2206 (SF_GET_*, SF_SET_*): Define in terms of SF_GET when feasible.
2207 (SA_GET_SYM_TAGNDX, SA_GET_SYM_ENDNDX, SA_SET_SYM_TAGNDX,
2208 SA_SET_SYM_ENDNDX, object_headers typedef, data_section_header,
2209 text_section_header): Delete non-BFD_HEADERS versions, since we
2210 always define that symbol now.
2211
2212 * config/obj-coff.c (stack_top): Deleted.
2213 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
2214 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Change
2215 argument name from "ignored" to "ignore".
2216 (obj_coff_val): Use frag_now_fix.
2217 (obj_pseudo_table): Removed IGNORE_DEBUG version, since it doesn't
2218 get used.
2219 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
2220 Moved to just after pseudo-op table. All functions now static.
2221 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
2222 after stack functions.
2223 * config/obj-coff.h: Reordered some declarations and macros.
2224 Protected against multiple inclusions.
2225 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
2226 (stack typedef): Deleted.
2227 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
2228 (stdoutput): Deleted declaration.
2229 (TARGET_FORMAT) [TC_I386]: Don't define if already defined.
2230
2231 Mon May 2 17:09:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2232
2233 * subsegs.h (segment_info_type): Use fix_tail field even if
2234 BFD_ASSEMBLER.
2235 * subsegs.c (subseg_change): Initialize fix_tail field.
2236 (subseg_get): Likewise.
2237 * write.c (frags_chained): New static variable.
2238 (fix_new_internal): If frags_chained is set, use fix_root and
2239 fix_tail from seg_info (now_seg), rather than frchain_now.
2240 (chain_frchains_together_1): Set fix_tail field.
2241 (chain_frchains_together): Set frags_chained.
2242
2243 Thu Apr 28 01:39:15 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2244
2245 * config/tc-mips.c (s_option): Only refer to g_switch_* variables
2246 if GPOPT is defined.
2247 (s_abicalls): Ditto.
2248 (md_apply_fix): Cast char* to unsigned char* to avoid pointer
2249 mismatch.
2250
2251 Wed Apr 27 11:06:32 1994 Steve Chamberlain (sac@cygnus.com)
2252
2253 * configure.in (i386-*-go32): Uses coff now.
2254 * gasp.c (main): Now takes -D on command line.
2255 (show_usage): Describe new options.
2256
2257 Tue Apr 26 17:10:30 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2258
2259 * listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and
2260 "NO UNDEFINED SYMBOLS" if there aren't any, instead of displaying
2261 the header with an empty list.
2262
2263 * config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
2264 also before setting STYP_NOLOAD for .bss section.
2265
2266 * config/tc-m68k.c (flag_reg_prefix_optional): New variable.
2267 Initialized to value of REGISTER_PREFIX_OPTIONAL, if defined, or
2268 zero.
2269 (m68k_reg_parse): If flag_reg_prefix_optional is set, permit
2270 register prefix to be absent.
2271 (m68k_ip_op): Accept `&' also for immediate constants.
2272 (insert_reg): Don't bother with (two!?) sanity checks of the
2273 symbol table when inserting each register.
2274 (m68k_parse_long_option): New function. Set
2275 flag_reg_prefix_optional if "register-prefix-optional" is passed.
2276 * config/tc-m68k.h (REGISTER_PREFIX): Always define if not already
2277 defined.
2278 (OPTIONAL_REGISTER_PREFIX): Don't define.
2279 (REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero
2280 or one depending on M68KCOFF.
2281
2282 Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
2283 * config/tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC):
2284 Define as macros instead of enumerators, since the Apollo compiler
2285 can't handle "enumVal1, enumVal2 = enumVal1" when defining an enum
2286 type.
2287 (make_pcrel_absolute) [NO_PCREL_RELOCS]: New function.
2288 (tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE,
2289 R_DIR16, and R_DIR32 relocs.
2290 * config/tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC):
2291 Use Apollo versions.
2292 [TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine. That is,
2293 do include the optional header for Apollo target.
2294 (COFF_MAGIC): Don't define as MC68MAGIC if it's already defined.
2295
2296 * config/tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%'
2297 can be used within a label name.
2298
2299 * config/tc-m68k.h (m68k_init_after_args): Declare.
2300 (tc_init_after_args): Define as m68k_init_after_args.
2301 * config/tc-m68k.c (m68k_init_after_args): New function,
2302 containing one-shot code from md_assemble. Added warning for
2303 combination of 68040 and 68851.
2304 (md_assemble): Startup-time code deleted.
2305
2306 Mon Apr 25 16:19:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2307
2308 * doc/Makefile.in (clean, distclean): Remove asconfig.texi.
2309
2310 Sun Apr 24 00:13:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2311
2312 * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break
2313 instruction) is unsigned.
2314
2315 Fri Apr 22 17:58:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2316
2317 * config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value
2318 and bfd_ecoff_set_regmasks to set the GP value and the register
2319 masks, rather than using the now obsolete fake .reginfo section.
2320
2321 Fri Apr 22 15:17:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2322
2323 * listing.c (list_symbol_table): Don't print register symbols as
2324 undefined.
2325
2326 * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip
2327 underscores, since symbol_new will already have done it.
2328 * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto.
2329
2330 * as.c (main): If tc_init_after_args is defined, invoke it after
2331 all arguments have been processed.
2332
2333 Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
2334 * as.c (perform_an_assembly_pass) [TE_APOLLO]: Create .wtext
2335 section instead of .text. Call create_target_segments.
2336 * read.c (demand_copy_string): No longer static.
2337
2338 Thu Apr 21 15:50:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2339
2340 * config/tc-mips.c (append_insn): Permit branches to be switched
2341 with the preceding instruction even if .set nobopt has been seen.
2342 .set nobopt actually controls whether to bring up an instruction
2343 from the branch target, which gas does not currently support.
2344
2345 Wed Apr 20 18:46:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2346
2347 * config/obj-coff.h, config/obj-coff.c: Deleted all code used only
2348 when BFD_ASSEMBLER is not defined, and all conditionals relating
2349 to such code. No such targets remain.
2350
2351 Fixes for stabs-in-coff:
2352 * config/obj-coff.c: Include subsegs.h.
2353 (coff_frob_section): New function.
2354 (obj_coff_init_stab_section): New function.
2355 * config/obj-coff.h (obj_coff_init_stab_section,
2356 coff_frob_section): Declare.
2357 (obj_frob_section): New macro; uses coff_frob_section.
2358 (INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section.
2359
2360 * config/tc-sparc.c (md_section_align): Always round up to
2361 multiple of alignment power specified in bfd target vector.
2362
2363 * gasp.c: Include ctype.h.
2364
2365 Mon Apr 18 21:08:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2366
2367 * doc/Makefile.in, doc/as.texinfo: Renamed asdoc-config.texi to
2368 asconfig.texi.
2369
2370 * doc/Makefile.in (install-info-as, install-info-gasp): Get file
2371 names from source directory without pathname.
2372
2373 * config/obj-vms.c (VMS_write_object_file): While looking for
2374 register mask, skip empty fill frags caused by enabling listing
2375 output.
2376
2377 * config/ho-sysv.h: Include string.h.
2378
2379 * doc/internals.texi: New (well, recently added) file. Just added
2380 info on as_warn and friends.
2381
2382 Mon Apr 18 14:28:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2383
2384 * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in
2385 defaults for defined, private, and spnum fields for the
2386 $TEXT$ and $PRIVATE$ spaces. Do not clobber spnum. Do
2387 not reset the segment if just updating a space.
2388 (pa_spaces_begin): Set BFD section flags for all built-in
2389 subspaces.
2390
2391 Fri Apr 15 10:51:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2392
2393 * ecoff.c (first_proc_ptr): New static variable.
2394 (add_procedure): Set first_proc_ptr if it hasn't been set.
2395 (ecoff_build_lineno): If the first procedure does not start at
2396 address zero, insert a dummy line to compensate.
2397
2398 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
2399 as well as as.new.
2400
2401 Thu Apr 14 15:12:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2402
2403 * expr.c (operand): Try to parse "0f" and "0b" sequences as
2404 floating point and binary numbers respectively; if it doesn't
2405 work, treat them as local labels.
2406
2407 * Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
2408 * configure.in: Set ALL_OBJ_DEPS in output Makefile.
2409
2410 Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu>
2411 (Charles Bailey):
2412 * vmsconf.sh: In generated file, get ".obj" suffix right, build
2413 source files from other directories into objects in the current
2414 directory, and specify PSECT attributes explicitly to linker.
2415 Also added missing label.
2416 * Makefile.in (stamp-mk.com): Reference new variable
2417 VMS_OTHER_OBJS for list of non-local object files, instead of
2418 listing them here.
2419 (VMS_OTHER_OBJS): New variable, added more libiberty files.
2420 * make-gas.com: Regenerated.
2421
2422 * config/ho-vms.h (unlink): Define as delete.
2423
2424 * config-gas.com: Fix quoting on TARGET_CANONICAL definition.
2425 Delete files before creating them.
2426
2427 Thu Apr 14 13:34:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2428
2429 * Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.
2430
2431 * config/tc-mips.h (DIFF_EXPR_OK): Define.
2432 * config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
2433 certain cases of 'i', 'j' and 'o'. Change 'u' to take an
2434 argument, the reloc type.
2435 (load_register): Pass reloc type to macro_build for 'u'.
2436 (macro): Likewise. For M_LA_AB permit a difference expression
2437 when generating embedded PIC code between an arbitrary symbol and
2438 a symbol in the .text section.
2439 (mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
2440 BFD_RELOC_PCREL_LO16 to be emitted.
2441 (md_apply_fix): Check that most relocs are not PC relative.
2442 Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
2443 (tc_gen_reloc): Change #error to as_fatal. Handle
2444 BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
2445
2446 Tue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com)
2447
2448 * subsegs.c (subsegs_begin): Call memset with args in the correct
2449 order.
2450 (subseg_get): Clear newly allocated seginfo, set its pointer slots
2451 to NULL instead of 0.
2452
2453 Mon Apr 11 09:00:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2454
2455 * config/tc-hppa.c (pa_procend): Handle case where label was
2456 defined after the .proc directive.
2457
2458 * config/tc-hppa.c (pa_procend): Give an error if we encounter a
2459 procend for a procedure without a name.
2460
2461 Thu Apr 7 14:28:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2462
2463 * config/tc-mips.c (macro): Pass NULL for expression argument to
2464 macro_build for nori case.
2465 (SWITCH_TABLE): Define.
2466 (mips_force_relocation): Force a relocation for a switch table
2467 entry.
2468 (md_apply_fix): Write switch table entry value into file.
2469 (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry,
2470 and set the addend to the difference between the reloc address and
2471 the subtrahend.
2472
2473 Thu Apr 7 10:38:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2474
2475 * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.
2476 (elf_tc_make_sections): Likewise.
2477 (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls.
2478
2479 * config/tc-hppa.c (hppa_tc_make_sections): Delete function.
2480 (hppa_tc_symbol): Likewise.
2481
2482 * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and
2483 elf_tc_make_sections stuff. It was there to support PA braindamage
2484 which has been fixed, and in the case of elf_tc_make_sections is
2485 redundant with elf_tc_final_processing.
2486
2487 Wed Apr 6 20:48:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2488
2489 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
2490 manufacturer.
2491
2492 Tue Apr 5 15:48:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2493
2494 * config/tc-mips.c (mips_ip): For case 'o', when generating
2495 embedded PIC code, accept the difference between two local symbols
2496 as being constant.
2497 (mips_force_relocation): Only force a reloc to be generated for a
2498 PC relative fixup.
2499 (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup
2500 value into the file if the fixup will not generate a reloc.
2501
2502 Tue Apr 5 11:14:14 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
2503
2504 * config/tc-sparc.c (s_reserve): If section passed isn't bss,
2505 don't spew remainder of input file in error message.
2506 (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error
2507 message with reloc type and try to process remainder of file.
2508
2509 * doc/Makefile.in (install-info-as, install-info-gasp): New
2510 targets, now explicitly checking $(srcdir) for info files.
2511 (install-info): Depend on both of them; do nothing more.
2512
2513 Mon Apr 4 17:06:04 1994 Jeffrey A. Law (law@cygnus.com)
2514
2515 * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.
2516
2517 Mon Apr 4 12:39:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2518
2519 * config/tc-ppc.c (ppc_insert_operand): Check PPC_OPERAND_SIGNED
2520 flag rather than signedp field. Only permit extended range if
2521 PPC_OPERAND_SIGNOPT flag is set and assembling in 32 bit mode.
2522 Based on patch from David Edelsohn (edelsohn@npac.syr.edu).
2523
2524 * config/tc-ppc.c (ppc_size): New static variable.
2525 (ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER.
2526 (md_begin): If an instruction has a size specific flag set, only
2527 add it if we are assembling that size.
2528
2529 Thu Mar 31 16:51:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2530
2531 * config/tc-sparc.c (tc_gen_reloc): Add a gruesome hack to get
2532 cross section PC relative relocs right for COFF and ELF.
2533
2534 Mon Mar 28 14:38:23 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2535
2536 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.
2537 (OBJ_PROCESS_STAB): Don't define.
2538
2539 Mon Mar 28 12:40:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2540
2541 * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber
2542 the type of symbol set symbols which happen to be in the absolute
2543 or undefined section.
2544
2545 Mon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu)
2546
2547 * config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka
2548 RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604),
2549 and -many (all architectures).
2550
2551 Sun Mar 27 14:04:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2552
2553 * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation
2554 involving a function symbol which is not a plabel to zero.
2555 (md_apply_fix): Never pass a function symbol to field_adjust.
2556
2557 Fri Mar 25 17:35:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2558
2559 * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an
2560 N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL.
2561
2562 * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a
2563 branch with an instruction that uses $at, in case the branch is
2564 later expanded.
2565 (macro): If EMBEDDED_PIC, case M_JAL_A may use $at.
2566 (md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol
2567 to make it pcrel_offset.
2568 (tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to
2569 reloc->address; another gruesome hack to get gas reloc handling to
2570 do the right thing.
2571
2572 Thu Mar 24 21:29:29 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2573
2574 * config/tc-alpha.c (alpha_ip): Only set GP prolog size if using
2575 PV register.
2576 (T12): New macro.
2577 (emit_insn): New function.
2578 (md_assemble): Call it.
2579 (alpha_force_relocation): Handle BFD_RELOC_26, for call_pal
2580 instructions.
2581 (lituse_pending): New variable. Set by anything that generates a
2582 LITERAL reloc, cleared by anything that generates a LITUSE reloc,
2583 tested by code that might want to emit a LITUSE reloc.
2584 (emit_unaligned_io): New function. Currently calls md_assemble,
2585 but it should eventually be converted to generate the insn itself
2586 and call emit_insn directly.
2587 (emit_load_unal, emit_store_unal, emit_byte_manip_r,
2588 emit_extract_r, emit_insert_r, emit_mask_r, emit_sign_extend,
2589 emit_bis_r): Likewise.
2590 (alpha_ip, case 'I'): Handle with BFD_RELOC_23.
2591 (alpha_ip, label get_macro): Don't emit the final instruction if
2592 the opcode is zero.
2593 (alpha_ip, case 'B', subcase 'd'): New case, for subword and
2594 unaligned memory access macros.
2595 (md_apply_fix): Handle BFD_RELOC_26. Generate an error message if
2596 the value can't be resolved.
2597
2598 Wed Mar 23 16:06:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2599
2600 * config/tc-mips.c (md_parse_option): For -membedded-pic, force
2601 the -G value to 0x7fffffff. For SVR4 PIC options, don't call
2602 bfd_set_gp_size here, it's done in md_begin. Don't permit -G with
2603 -membedded-pic.
2604 (mips_force_relocation): New function.
2605 (md_apply_fix): Set fixP->fx_done appropriately.
2606 (s_change_sec): For EMBEDDED_PIC, change .data and .rdata to
2607 .sdata.
2608 * config/tc-mips.h (TC_FORCE_RELOCATION): Define.
2609 (mips_force_relocation): Declare.
2610 (TC_HANDLE_FX_DONE): Define.
2611
2612 Tue Mar 22 13:58:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2613
2614 * config/tc-mips.c (enum mips_pic_level): New enum.
2615 (mips_pic): Change from int to enum mips_pic_level. Change all
2616 uses (0 becomes NO_PIC, 2 becomes SVR4_PIC).
2617 (load_address): Handle EMBEDDED_PIC.
2618 (macro): Handle EMBEDDED_PIC in all PIC cases.
2619 (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If
2620 OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept
2621 -non_shared to use NO_PIC (this is how the Irix 5 assembler
2622 works). Do not permit -G with SVR4_PIC.
2623 (s_abicalls): Warn if -G was used, and force -G 0.
2624 (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for
2625 anything but a.out, not just for ELF. For ECOFF, don't generate a
2626 BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.
2627
2628 * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.
2629
2630 Sun Mar 20 16:31:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2631
2632 * config/tc-hppa.c (create_new_space): Use ints, not chars as
2633 parameters to avoid losing when compiling with HP CC.
2634 (create_new_subspace, update_subspace, fix_new_hppa): Likewise.
2635
2636 Sun Mar 20 14:43:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2637
2638 * Makefile.in (config-stamp): If `defs' is defined, emit a
2639 preprocessor directive to create a macro named by this value into
2640 config.new; don't explicitly go for BFD_ASSEMBLER.
2641 * configure.in: Define `defs', not `BFDDEF'. Set it to
2642 MANY_SEGMENTS for any obj-coffbfd target.
2643 * config/obj-coffbfd.h (BFD_HEADERS, BFD): Define.
2644 * config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS,
2645 or BFD_HEADERS.
2646 (LOCAL_LOADLIBES): Deleted.
2647 * config/m68kcoff.mt (TDEFINES): Don't define those macros.
2648 * config/m88kcoff.mt (TDEFINES): Ditto.
2649 * config/ebmon29k.mt: Deleted.
2650 * config/h8300hds.mt: Deleted.
2651 * config/ic960coff.mt: Deleted.
2652 * config/sparc.mt: Deleted.
2653 * config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
2654 * config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
2655 * config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
2656 * config/z8k.mt (LOCAL_LOADLIBES): Deleted.
2657 (TDEFINES): Don't define the coffbfd macros.
2658
2659 * Makefile.in: Insert makefile fragments before OBJS definition.
2660 (OBJS): Add $(TE_OBJS).
2661
2662 * config/obj-coff.c (obj_pseudo_table): Supply "section"
2663 unconditionally.
2664
2665 * write.c (set_symtab): Define only if BFD_ASSEMBLER.
2666
2667 Sun Mar 20 12:06:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2668
2669 * Makefile.in (STAGESTUFF): Add gasp.new.
2670
2671 Fri Mar 18 20:09:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2672
2673 * write.c (symbol_table_frozen): New variable, to be set after
2674 bfd_set_symtab is called.
2675 (dump_section_relocs): Note whether a symbol is a section symbol
2676 or not.
2677 (adjust_reloc_syms): For now, always supply an absolute symbol for
2678 fixups without symbols but not yet `done'. Use section_symbol to
2679 get the symbol, instead of going directly for abs_symbol.
2680 (write_relocs) [DEBUG4]: Abort if any symbol referred to by a
2681 reloc is not a section symbol and is not in the symbol table.
2682 (set_symtab): New function, broken out from write_object_file.
2683 Counts symbol table instead of relying on an earlier count.
2684 (write_object_file): Call set_symtab, but do it after potentially
2685 invoking the *_frob_file macros. Don't bother counting symbols.
2686 Call symbol_remove, instead of expanding it in place. Moved the
2687 conditionalized `object_file_size' declaration down to
2688 conditionalized block where it's used. When using the absolute
2689 symbol for a fixup without a symbol, set sy_used_in_reloc.
2690 (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get
2691 the correct symbol for the absolute section.
2692
2693 * subsegs.c (section_symbol): Use symbol_new instead of
2694 symbol_make, since we may want it to go into the symbol table.
2695 Make the new symbol have internal linkage. If
2696 obj_sec_sym_ok_for_reloc says it's okay, use the BFD section
2697 symbol with the newly created GAS symbol.
2698 (obj_sec_sym_ok_for_reloc): Default to always returning 0.
2699 * config/obj-aout.h (obj_sec_sym_ok_for_reloc) [BFD_ASSEMBLER]:
2700 New macro.
2701 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): New macro.
2702
2703 * config/tc-sparc.c: Include subsegs.h.
2704 (in_signed_range): New function.
2705 (sparc_ip): Use it.
2706 (sparc_ip, case 'i'): Use BFD_RELOC_SPARC13, not _BASE13.
2707 (sparc_ip, label "immediate"): Reject constants for pcrel
2708 instructions only if the relocation type indicates a "call"
2709 instruction and the offset is within range of a "jmpl %g0". If
2710 it's not in range, use the absolute section symbol plus an offset.
2711 (md_apply_fix): Use in_signed_range. Combined _SPARC13 and
2712 _BASE13 cases.
2713 (tc_gen_reloc): Permit BFD_RELOC_SPARC13.
2714
2715 * config/ic960coff.mt (TDEFINES): Fixed typo (MANY_SECTIONS, not
2716 MANY_SEGMENTS).
2717
2718 * configure.in: Eliminated all targets using obj-coff but not
2719 defining BFD_ASSEMBLER; I think all such targets that are
2720 supported will be matched by real CPU-OS combinations earlier in
2721 the case statement.
2722 (targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted. Made
2723 some comments about the dpx2 configuration, but left it disabled,
2724 since it couldn't be reached before.
2725 (target a29k-amd-ebmonold): Deleted.
2726
2727 Thu Mar 17 13:36:09 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2728
2729 * config/tc-hppa.c (pa_import): Correctly handle importing of an
2730 already defined symbol.
2731
2732 Wed Mar 16 17:11:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2733
2734 * config/tc-mips.c (mips_ip): Only accept overly large values for
2735 the 'j' operand if there are no further alternatives for this
2736 instruction.
2737
2738 * config/obj-coffbfd.c (adjust_stab_section): Initialize
2739 stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it
2740 is not SEG_UNKNOWN rather than checking whether it is >= 0.
2741
2742 * config/tc-mips.c (mips_align): Take new argument, label, and use
2743 it instead of global insn_label.
2744 (s_align, s_cons, s_float_cons, s_gpword): Save insn_label before
2745 call to mips_emit_delay and pass it to mips_align.
2746
2747 Wed Mar 16 11:54:12 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2748
2749 * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.
2750
2751 * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
2752 argument to a .callinfo directive. Don't loop forever on errors.
2753
2754 * config/tc-hppa.c (pa_equ): Use pa_parse_number so that we can
2755 use pre-defined registers as arguments.
2756
2757 Mon Mar 14 14:29:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2758
2759 * write.c (write_object_file): Check both S_IS_LOCAL and
2760 S_IS_EXTERNAL when deciding whether to discard a symbol.
2761
2762 * config-gas.com: Scan Makefile.in, not version.c, for current
2763 version number. Delete all versions of temp files when finished
2764 with them. Create config.h.
2765
2766 * config/obj-vms.c (VMS_Initialized_Data_Size): Cache symbol
2767 values to reduce number of lookups with S_GET_VALUE. Skip debug
2768 symbols to avoid "a really nasty bug". (From Holger Teutsch,
2769 holger@botbso.rhein-main.de.)
2770 (VMS_write_object_file): For "__vt.*" symbols, set S_GET_OTHER
2771 field. (Also from Holger Teutsch.) Watch for a would-be register
2772 mask that spans frags.
2773
2774 * config/obj-coffbfd.c (obj_coff_line): Set symbol lnno field with
2775 this_base, not line_base. (Patch from Andreas Arens,
2776 ari@obelix.av.rwth-aachen.de.)
2777
2778 * config/obj-aout.c (obj_crawl_symbol_chain): Retain symbols that
2779 look local if they're exported or undefined. Used to be done for
2780 i960 only.
2781
2782 * read.c (s_lcomm, s_comm): Print symbol name being redefined.
2783 Get it from the looked-up symbol, instead of using the string from
2784 the input stream, which is no longer null-terminated.
2785 (LEX_PCT): New macro, defaults to 0.
2786 (lex_type): Use it for `%'.
2787
2788 * config/tc-vax.c (md_parse_option): Handle `-h#' option for VMS.
2789 (vip_op): Now static, and returns void. Callers changed. Added
2790 forward decl.
2791 (vip): Ditto. Call as_fatal directly if a program bug is
2792 detected.
2793 (op_hash): Let default initialization suffice.
2794
2795 * Makefile.in (literal.o): Provide dependencies.
2796
2797 * configure.in: Set new makefile variable OPCODES_LIB.
2798 * Makefile.in (LIBS): Use it.
2799
2800 * Makefile.in (make-gas.com, stamp-mk.com): New targets.
2801 * vmsconf.sh: New file.
2802 * make-gas.com: Regenerated from new script.
2803
2804 * configure.in (sparc*-*-lynxos*): Handle any version number
2805 suffix after "lynxos". Set emulation to lynx.
2806
2807 Mon Mar 14 11:30:49 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2808
2809 * config/obj-coff.c (obj_coff_section): Delete declaration.
2810
2811 Fri Mar 11 22:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2812
2813 * config/tc-ppc.c (md_pcrel_from): Return 0 for undefined ELF
2814 symbols.
2815 (ppc_is_toc_sym): Change .toc to .got.
2816 (md_apply_fix): Change handling of ELF relocs.
2817 (tc_gen_reloc): Likewise.
2818
2819 Fri Mar 11 17:42:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2820
2821 * config/obj-vms.c (Close_VMS_Object_File): Add comment pointing
2822 out some code that doesn't belong in this file.
2823
2824 * config/obj-vms.h: Include aout/stab_gnu.h.
2825 (N_GSYM, ..., N_LENG): Deleted.
2826 (NO_RELOC): Undefine before defining as part of enum reloc_type.
2827
2828 * config/tc-alpha.c: Add comment questioning need for all the
2829 characters in FLT_CHARS.
2830
2831 * as.c (main) [OBJ_VMS]: Don't call output_file_close.
2832
2833 * config/obj-ecoff.c (ecoff_frob_file): Set strict order for
2834 sections with recognized names, before computing VMA values.
2835
2836 Fri Mar 11 17:56:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2837
2838 * config/tc-mips.c (mips_ip): Accept numbers between 0x8000 and
2839 0xffff for 'j' to be compatible with MIPS assembler. These
2840 numbers are actually treated as negative.
2841
2842 Thu Mar 10 13:36:29 1994 Doug Evans (dje@canuck.cygnus.com)
2843
2844 * config/tc-sparc.h (LOCAL_LABEL): Local labels are .Lfoo.
2845
2846 Tue Mar 8 21:17:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2847
2848 * config/obj-coff.c: Minor formatting/stylistic changes, plus:
2849 (obj_coff_section): Declare.
2850 (obj_pseudo_table): Make it available only if MANY_SECTIONS.
2851 (obj_symbol_to_chars) [CROSS_COMPILE]: Some attemps to make this
2852 work. It still doesn't. It now fails to compile, instead of
2853 silently compiling to do nothing.
2854 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define only if
2855 MANY_SECTIONS.
2856 (OBJ_PROCESS_STAB) [! MANY_SECTIONS]: New macro, just emits
2857 warning.
2858
2859 Handle Alpha load-immediate-FP pseudo-instructions:
2860 * config/alpha-opcode.h (ldif, ldig, ldis, ldit): New patterns.
2861 * config/tc-alpha.c (lit8_sec, lit4_sec, lit8_sym, lit4_sym): New
2862 variables.
2863 (create_literal_section): New function.
2864 (create_lita_section): Now a macro.
2865 (get_lit8_offset, get_lit4_offset): New functions.
2866 (maybe_set_gp): New function.
2867 (select_gp_value): Call it.
2868 (load_expression): Preserve addend if symbol is a section symbol.
2869 (alpha_ip): Handle new operand type `F' for floating-point
2870 constants; store them in .lit{4,8} sections.
2871 (alpha_ip, case 'G'): Emit LITUSE relocations for symbol exprs.
2872
2873 * config/tc-i386.c (smallest_imm_type): Never return Imm1.
2874
2875 Tue Mar 8 14:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2876
2877 * config/obj-coffbfd.c (w_strings): Only copy strings out if
2878 their symbols are going to be written.
2879
2880 Tue Mar 8 11:49:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2881
2882 * messages.c (as_perror): Declare arguments const.
2883 * as.h (as_perror): Change declaration.
2884
2885 Mon Mar 7 16:08:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2886
2887 * config/tc-mips.c (load_address): When calling frag_grow, allow
2888 for the (up to) two nops which may be inserted by append_insn if
2889 mips_optimize is 0.
2890 (macro): Likewise.
2891
2892 Thu Mar 3 11:37:55 1994 Doug Evans (dje@canuck.cygnus.com)
2893
2894 * config/atof-ieee.c (make_invalid_floating_point_number):
2895 Add cast to avoid warning from gcc.
2896
2897 Wed Mar 2 10:31:01 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2898
2899 * config/tc-hppa.c: Add a few casts to make HP C compiler happy.
2900
2901 * config/obj-som.c (obj_som_version, obj_som_copyright): Be
2902 prepared
2903 to handle an error from bfd_som_attach_aux_hdr.
2904
2905 * config/tc-hppa.h: Wrap ELF specific decls inside an ifdef.
2906
2907 Mon Feb 28 15:03:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2908
2909 * config/tc-alpha.c (md_atof): Omit warning about FP values.
2910 (line_comment_chars): Add ! to list.
2911 (md_apply_fix): Do process 32- and 64-bit relocations.
2912
2913 * config/obj-coffbfd.c (obj_coff_lcomm): Put "#if 0" around the
2914 unused parts (most of the function).
2915 (obj_coff_init_stab_section): Cast alloca result.
2916
2917 * configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and
2918 gas_target ic960coff.
2919 * config/ic960coff.mt: New file.
2920 * config/obj-coffbfd.h [TC_I960]: Include coff/i960.h.
2921 (TARGET_FORMAT) [TC_I960]: Use coff-Intel-little.
2922 * config/te-ic960.h (CROSS_COMPILE): Don't undef this. We'll
2923 always build little-endian object files.
2924 * config/tc-i960.c (md_reloc_size): Don't define at all if BFD or
2925 BFD_ASSEMBLER is defined.
2926 (mem_fmt): Since COFF doesn't handle callx relocations yet, treat
2927 them like normal 32-bit relocations.
2928 (md_apply_fix): For callx relocations, store zero.
2929 (tc_bout_fix_to_chars): Store symbol index for all callx
2930 relocations, regardless of link-relax setting.
2931 (tc_coff_fix2rtype, tc_coff_sizemachdep): New functions.
2932 (i960_handle_align) [! OBJ_BOUT]: If link-relax option is
2933 selected, print an error message and clear it.
2934 * config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC,
2935 TC_COUNT_RELOC, TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP,
2936 tc_fix_adjustable): New macros.
2937 (tc_coff_fix2rtype, tc_coff_sizemachdep): Declare.
2938
2939 Fri Feb 25 20:56:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2940
2941 * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
2942 (hppa_tc_make_sections): Likewise.
2943 (pa_build_symextn_section): Delete unused function.
2944 (hppa_tc_make_symextn_section): Likewise.
2945 (pa_export): Delete call to pa_build_symextn_section.
2946
2947 * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
2948 (elf_hppa_final_processing): Delete extern decl.
2949 (hppa_tc_symbol): Delete extern decl.
2950
2951 Fri Feb 25 13:15:31 1994 Ian Lance Taylor (ian@cygnus.com)
2952
2953 * config/obj-coffbfd.c (fill_section): Correct test for whether to
2954 fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).
2955
2956 Thu Feb 24 11:30:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2957
2958 * configure.in: Don't require version number for i386-*-mach.
2959
2960 * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler",
2961 which is ignored by gas, but will cause other assemblers to choke.
2962 Intended for use by gcc ports that require gas instead of native
2963 assemblers.
2964
2965 Thu Feb 24 07:10:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2966
2967 * config/ho-hppaosf.h: Fix braino in test for ANSI-C.
2968
2969 Wed Feb 23 16:51:43 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2970
2971 * write.c (write_contents): Give the user a reasonable error
2972 message rather than "assertion failed" if bfd_set_section_contents
2973 fails.
2974
2975 Tue Feb 22 10:07:32 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
2976
2977 * config/ho-mach3.h: New file.
2978
2979 Mon Feb 21 11:41:18 1994 Ian Lance Taylor (ian@cygnus.com)
2980
2981 * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is
2982 now set in bfd/ecofflink.c:ecoff_write_symhdr.
2983
2984 * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
2985 not bfd_error.
2986 * config/obj-elf.c (elf_frob_file): Likewise.
2987
2988 * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
2989 variables.
2990
2991 * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__.
2992
2993 * read.c (read_a_source_file): Use correct arguments to memcpy
2994 (broken 19 Jul 1993). From kjd@pescadero.stanford.edu (Kenneth
2995 Duda).
2996
2997 Sun Feb 20 18:01:54 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
2998
2999 * config/obj-coff.h (obj_coff_section): Declare.
3000 * config/obj-coff.c (obj_pseudo_table): For "section", use
3001 obj_coff_section.
3002 (obj_coff_section): Rewrite.
3003
3004 Fri Feb 18 14:16:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3005
3006 * configure.in (i386-*-mach3*): New target; uses BFD.
3007 * config/te-mach.h: New file.
3008 * config/obj-aout.c (obj_aout_frob_file): New function.
3009 * config/obj-aout.h (obj_aout_frob_file): Declare it.
3010 (frob_file): New macro.
3011 * config/tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust
3012 pcrel32 relocations.
3013 * config/tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3.
3014
3015 * write.c (write_object_file): Removed register declarations.
3016
3017 Thu Feb 17 16:25:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3018
3019 Some support for PowerPC ELF.
3020 * configure.in: If cpu is powerpc*, use ppc.
3021 (ppc-*-sysv4*): Use object format elf.
3022 * config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
3023 defined.
3024 (TARGET_ARCH): Make it call ppc_arch.
3025 (ppc_arch): Declare.
3026 (TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
3027 (NO_STRING_ESCAPES): Define.
3028 (LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
3029 * config/tc-ppc.c: Only define a number of functions of OBJ_COFF
3030 is defined.
3031 (md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added
3032 OBJ_COFF specific "bi" and "ei".
3033 (md_parse_option): Fix handling of -u. Make -m601 set
3034 PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q.
3035 (ppc_set_cpu): New function.
3036 (ppc_arch): New function.
3037 (md_begin): Call ppc_set_cpu.
3038 (ppc_insert_operand): For a signed operand accept an unsigned
3039 value, for IBM compatibility.
3040 (ppc_byte): Don't call stringer for strings; instead, treat two
3041 double quotes as a single double quote.
3042 (ppc_comm): Set sy_tc.output for a .lcomm symbol.
3043 (ppc_biei): New function.
3044 (ppc_tc): If not OBJ_COFF, ignore first argument.
3045 (ppc_fix_adjustable): Call as_bad_where, not as_bad.
3046 (ppc_is_toc_sym): New function.
3047 (md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and
3048 BFD_RELOC_8.
3049
3050 Thu Feb 17 09:29:37 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3051
3052 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
3053 bfd_set_error and new error names.
3054
3055 Tue Feb 15 20:23:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3056
3057 * configure.in: Support i960-vxworks versions > 5.0 as coff.
3058 Default is still bout if no version is specified.
3059
3060 * atof-generic.c (atof_generic): Use switch and strcasecmp instead
3061 of large number of compares when looking for inf/nan values.
3062
3063 Fri Feb 11 13:13:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3064
3065 * config/tc-mips.c (macro): Do unaligned loads and stores
3066 correctly when big endian, and give errors on overflow rather than
3067 generating incorrect code.
3068
3069 Thu Feb 10 11:24:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3070
3071 * as.c: Include libiberty.h.
3072
3073 * read.c (do_align): Don't define label just_record_alignment
3074 unless it might be used.
3075
3076 * as.c (main): If md_parse_long_option is defined, call it with a
3077 long option.
3078 * config/tc-mips.h (md_parse_long_option): Define.
3079 * config/tc-mips.c (mips_trap): New static variable.
3080 (md_begin): Report an error if mips_trap is set at ISA level 1.
3081 (macro): If mips_trap, use trap instructions instead of break
3082 instructions for overflow and divide by zero detection.
3083 (mips_parse_long_option): New function. Support --trap,
3084 --no-break, --break and --no-trap.
3085 * doc/as.texinfo: Document new options.
3086
3087 * read.c (potable): Add "zero".
3088 * config/tc-i386.c (md_pseudo_table): Remove "zero".
3089 * config/tc-m88k.c (md_pseudo_table): Likewise.
3090
3091 Thu Feb 10 01:24:27 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3092
3093 * config/tc-sparc.c (sparc_ip): Reject integer values for
3094 pc-relative operand fields. This forces "call 0" to become "jmpl
3095 %g0,%o7" with no relocations needed.
3096
3097 Wed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3098
3099 * as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
3100 * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
3101
3102 * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
3103 don't treat backslash specially inside strings.
3104 * read.c (next_char_of_string): Likewise.
3105
3106 Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
3107
3108 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
3109 instead of memcpy to zero the initial stab symbol, duh.
3110 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
3111 * config/obj-som.c (obj_som_init_stab_section): Ditto.
3112
3113 Tue Feb 8 17:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3114
3115 * write.c (fixup_segment): Use as_bad_where, not as_bad.
3116
3117 * subsegs.c (subseg_set_rest): Call memset with the arguments in
3118 the right order. Explicitly clear fix_root and fix_tail fields.
3119
3120 Tue Feb 8 16:00:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3121
3122 * config/obj-coff.c (coff_frob_symbol): For abs_symbol, set *punt
3123 and do nothing else.
3124
3125 * symbols.c (symbol_begin): Initialize value of abs_symbol
3126 properly.
3127
3128 * write.c (adjust_reloc_syms): Use abs_symbol instead of calling
3129 section_symbol.
3130
3131 * ecoff.c (ecoff_build_debug): Fix "/*" in comment to silence
3132 complaint from "gcc -Wall".
3133
3134 * configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
3135
3136 * config/tc-alpha.c (GP_ADJUSTMENT): Move definition to start of
3137 file.
3138 (tc_gen_reloc): Remove uninitialized variable `code', and code
3139 that tried to use it (incorrectly). For LITERAL reloc, set addend
3140 to negative of GP value.
3141 (load_symbol_address): Don't adjust return value by GP_ADJUSTMENT.
3142
3143 * write.c (write_relocs): Print some sensible error message if
3144 bfd_perform_relocation returns bfd_reloc_overflow.
3145
3146 Mon Feb 7 15:49:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3147
3148 * configure.in (hppa*-*elf*): New configuration for PA ELF.
3149 (hppa*-*-osf*): Default object format is SOM.
3150
3151 Mon Feb 7 16:07:35 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3152
3153 * config/tc-alpha.c (md_atof): Warn that floating-point values
3154 might not assemble properly.
3155
3156 * configure.in (target alpha-*-osf*): Don't set "dev=yes" any
3157 more.
3158
3159 * config/tc-alpha.c (load_expression): Parenthesize operations in
3160 range checking, to avoid precedence questions.
3161
3162 * config/tc-alpha.c (addr32): New static variable.
3163 (md_parse_option): Set it for "-32addr".
3164 (load_symbol_address): If addr32 is set, use ldl instead of ldq.
3165
3166 * atof-generic.c (atof_generic): Calculate maximum_useful_digits
3167 and more_than_enough_bits_for_digits in integer arithmetic, to
3168 eliminate the only sources of dependence on floating point
3169 support, which doesn't work yet on the Alpha.
3170
3171 Mon Feb 7 03:56:05 1994 Ken Raeburn (raeburn@cambridge.cygnus.com)
3172
3173 * ecoff.c (ecoff_build_debug) [TC_ALPHA]: Specify version stamp as
3174 0x30b for Alpha for now, until ".verstamp" is handled.
3175
3176 * literal.c (add_to_literal_pool): Use seginfo->frchainP, which
3177 actually refers to the literal pool section, rather than
3178 frchain_now, which refers to whatever section the assembler was
3179 in.
3180
3181 * write.c (fixup_segment): Only do range checking if size of fixup
3182 is smaller than word size. Otherwise, we always wind up with
3183 zeros.
3184
3185 * config/tc-alpha.c (md_section_align): Change second argument and
3186 return type to valueT, to agree with tc.h.
3187 (alpha_do_align): Local static array nop_pattern is now unsigned
3188 char, to avoid overflow warnings.
3189 * config/tc-alpha.h (md_section_align): Delete declaration.
3190
3191 * config/obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
3192 output bfd is non-null before indirecting through it.
3193
3194 * config/tc-alpha.c (alpha_frob_ecoff_data): Renamed from
3195 alpha_frob_file.
3196 * config/tc-alpha.h (tc_frob_file): Macro deleted.
3197 * config/obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call
3198 alpha_frob_ecoff_data, then fill in optional-header info with gp
3199 value and register masks.
3200
3201 Sun Feb 6 16:13:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3202
3203 * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP.
3204
3205 * config/obj-som.c (obj_som_init_stab_section): Same change
3206 as coffbfd and elf below. Zero the initial stab symbol after
3207 allocating it.
3208
3209 Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com)
3210
3211 * config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
3212 initial stab symbol after allocating it.
3213 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
3214
3215 Sat Feb 5 11:53:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3216
3217 * config/tc-hppa.c (pa_ip): addb[tf] should only accept
3218 non-negated condition completers. Add support for addb pseudo-op
3219 which accepts both negated and non-negated completers.
3220
3221 Sat Feb 5 00:15:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3222
3223 * configure.in (rs6000*): Use cpu_type ppc.
3224 (ppc-*-aix*): New target; use coff and force bfd_gas.
3225 * config/tc-ppc.h, config/tc-ppc.c: New files for PowerPC/POWER
3226 (RS/6000) support. At the moment, only XCOFF is supported.
3227
3228 * config/obj-coff.c (SA_SET_SYM_ENDNDX): Made non-static.
3229 (S_SET_DATA_TYPE): Likewise.
3230 (coff_last_function): Renamed from local static last_functionP in
3231 coff_frob_symbol and made externally visible.
3232 (coff_frob_symbol): New local static set_end; use it to try to
3233 avoid calling SA_SET_SYM_ENDNDX on a symbol that will be punted.
3234 * config/obj-coff.h (S_SET_DATA_TYPE): Declare.
3235 (SA_SET_SYM_ENDNDX): Declare.
3236 (coff_last_function): Declare.
3237
3238 * expr.c (operand): If DOLLAR_DOT is defined, accept `$' as
3239 equivalent to `.' to mean the current location.
3240
3241 * read.c (LEX_BR): If not defined, define as 0.
3242 (lex_type): Use LEX_BR as the type of `{',`}',`[',`]'.
3243
3244 * symbols.c (symbol_new): If tc_canonicalize_symbol_name is
3245 defined, call it with preserved_copy_of_name. If
3246 tc_symbol_new_hook is defined, call it on the new symbol.
3247 (symbol_find_base): If tc_canonicalize_symbol_name is defined,
3248 call it on a copy of the name argument.
3249
3250 * write.c (write_object_file): Simplified usage of obj_frob_symbol
3251 and tc_frob_symbol. Always call both if the symbol is going to be
3252 output.
3253
3254 * write.c (relax_segment): Use %ld rather than %d when printing
3255 fragP->fr_var, and cast it to long.
3256
3257 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
3258 * subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
3259 fix_root and fix_tail.
3260 (segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
3261 field.
3262 * write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
3263 fix_tailP based on frchain_now, not seg_info (now_seg).
3264 (chain_frchains_together_1): Chain the subsegment relocs together.
3265 * subsegs.c (subseg_change): Don't clear fix_tail field.
3266 (subseg_get): Likewise.
3267 * literal.c (add_to_literal_pool): Look through the relocs via
3268 frchain_now, not seginfo.
3269
3270 Thu Feb 3 23:07:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3271
3272 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Changed
3273 ecoff_undefined to ecoff_extern_size.
3274 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Likewise.
3275 * config/tc-mips.c (s_extern): Set ecoff_extern_size to the
3276 external symbol size, rathern than setting the symbol value.
3277 (md_estimate_size_before_relax): Check both ecoff_extern_size and
3278 symbol value to see if GP referencing can be used.
3279 * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not
3280 ecoff_undefined.
3281 (ecoff_frob_symbol): Don't check ecoff_undefined.
3282 (ecoff_build_symbols): Get size of an undefined symbol from
3283 sym->ecoff_extern_size, not S_GET_VALUE (sym).
3284
3285 Wed Feb 2 13:55:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3286
3287 * Makefile.in: Avoid bug in losing hpux sed.
3288
3289 Wed Feb 2 11:40:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3290
3291 * config/tc-mips.c (file_mips_isa): New static variable.
3292 (md_begin): Set it.
3293 (s_mipsset): Add support for .set mipN to set the ISA level.
3294
3295 * gasp.c (kinfo): Fully bracket initializer.
3296
3297 Tue Feb 1 19:28:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3298
3299 * gasp.c (malloc): Don't declare, since host.h or system header
3300 files may declare it differently.
3301
3302 * config/atof-ieee.c (int_to_gen): Now static.
3303
3304 * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not
3305 ho-sysv.h. Based loosely on a patch from Minh Tran-Le.
3306
3307 Tue Feb 1 10:50:17 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3308
3309 * gasp.c: Include host.h.
3310
3311 Tue Feb 1 12:13:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3312
3313 * config/tc-mips.c (mips_ip): Make an unsupported instruction a
3314 warning, not an error.
3315
3316 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
3317 dot_bss_symbol): Don't define if BFD_ASSEMBLER.
3318 (obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more
3319 arguments.
3320 (coff_line_base): Renamed from line_base. Changed all uses.
3321 (coff_add_linesym): Renamed from add_line_sym. Made non-static.
3322 Changed all uses.
3323 * config/obj-coff.h: If TC_PPC, include coff/rs6000.h.
3324 (S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if
3325 BFD_ASSEMBLER.
3326 (coff_line_base): Declare.
3327 (coff_add_linesym): Declare if BFD_ASSEMBLER.
3328 * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out
3329 now takes more arguments.
3330
3331 Mon Jan 31 17:55:14 1994 Stan Shebs (shebs@andros.cygnus.com)
3332
3333 * as.c (statistics_flag): Renamed from quiet_flag.
3334 (main): Get statistics with --statistics instead of -noquiet.
3335
3336 Mon Jan 31 07:19:30 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3337
3338 * Makefile.in: Support for Gnu ASsembler Preprocessor.
3339 * gasp.c: New file.
3340 * read.c (s_lcomm): Align lcomm data.
3341 * config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction
3342 from different sections.
3343
3344 Sun Jan 30 14:58:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3345
3346 * write.c (write_object_file): If tc_frob_file is defined, call it
3347 just before calling obj_frob_file.
3348 * config/tc-alpha.c (alpha_gp_value): Renamed from gp_value
3349 (references changed), and made non-static.
3350 (getExpression): Return void.
3351 (select_gp_value): Abort if gp_value is non-zero. Delete call to
3352 non-existent bfd_set_gp_value.
3353 (alpha_validate_fix): Function deleted.
3354 (alpha_frob_symbol): Function deleted.
3355 (alpha_local_label): Function deleted.
3356 (alpha_frob_file): Renamed from alpha_end.
3357 * config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix,
3358 alpha_local_label, alpha_end): Declarations deleted.
3359 (alpha_gp_value, alpha_frob_file): Declare.
3360 (tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted.
3361 (LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label.
3362 (md_convert_frag): Simplified slightly.
3363 (tc_frob_file): New macro.
3364
3365 * read.c (do_align): New function, most of guts of s_align_*
3366 functions. Look for md_do_align macro, give it a chance to bypass
3367 all but recording of section alignment.
3368 (s_align_bytes, s_align_ptwo): Call do_align.
3369 (s_lcomm) [TC_ALPHA]: Align object to largest power of two that
3370 divides object size.
3371
3372 * frags.c (frag_align_pattern): New function.
3373 (frag_align): Rewrite for clarity.
3374
3375 * config/tc-vax.c (md_assemble): Handle O_constant expression.
3376 (vip_begin): Returns pointer to const char. Cast hash_insert arg
3377 to PTR to avoid compiler complaints about const.
3378 (md_begin): Local variable errtxt must point to const.
3379
3380 * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't
3381 bother with *-*-ultrix or *-*-sysv*, except *-*-sysv, since only
3382 the last has an existing host support file. Do handle vax-bsd and
3383 vax-ultrix targets.
3384
3385 Fri Jan 28 11:26:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3386
3387 * config/obj-coff.c (obj_coff_section_header_append): Do not
3388 declare if BFD_ASSEMBLER.
3389 (stack_pop): Correct test for stack underflow.
3390 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
3391 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare
3392 type of ignored argument to avoid gcc warning.
3393 (align): Removed unused function.
3394
3395 Thu Jan 27 18:14:19 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3396
3397 * config/tc-alpha.c, config/tc-alpha.h, config/alpha-opcode.h: New
3398 files, based on port of gas-1.38 contributed by CMU, using a.out
3399 variant. Updated for gas-2.x and ECOFF. Floating-point constants
3400 are still broken, bootstrap testing incomplete.
3401
3402 * literal.c: Comment changes.
3403
3404 * listing.c (listing_source_file): Check for null listing_tail
3405 before indirecting through it.
3406
3407 * expr.h (struct expressionS): Added struct tag.
3408
3409 * as.h: If __GNUC__ and inline are both undefined, define inline
3410 away.
3411
3412 * write.c (cvt_frag_to_fill): Don't assume that fr_var for
3413 rs_align or rs_org frags will be 1.
3414 (relax_segment): For rs_align, if fr_var is not 1, complain if
3415 required padding is not a multiple of the size of the pad pattern.
3416 (fixup_segment): Leave gp-relative relocations alone. For pcrel
3417 relocations referring to the same segment, clear fx_pcrel when
3418 clearing fx_addsy.
3419 * as.h: Adjust comments on rs_align.
3420
3421 * atof-generic.c: Some reformatting.
3422 (atof_generic): Be careful when mixing signed/unsigned values of
3423 different sizes.
3424
3425 * write.c, config/obj-{aout,bout,coff*}.c, config/tc-sparc.c:
3426 Query the fx_done field instead of fx_addsy to see if the fixup
3427 still needs to be applied. Set fx_done and clear fx_addsy both,
3428 for now. If TC_HANDLES_FX_DONE isn't defined, assume md_apply_fix
3429 will only clear fx_addsy, and set fx_done accordingly after
3430 returning.
3431 * config/tc-sparc.h (TC_HANDLES_FX_DONE): Define.
3432 * config/tc-sparc.c (md_apply_fix): Set fx_done for non-pcrel fix
3433 with no fx_addsy.
3434
3435 * symbols.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
3436 Deleted.
3437 (symbol_begin): Moved to end of file, so function inlining can
3438 work better.
3439 (fb_label_count, fb_label_max): Default C static initializers are
3440 sufficient.
3441 * symbols.h (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
3442 Declarations deleted.
3443 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
3444 dot_bss_symbol): Defined here, static.
3445
3446 * config/obj-aout.c [BFD_ASSEMBLER]: Undef NO_RELOC before
3447 including aout/aout64.h.
3448
3449 * write.c (write_object_file): If EMIT_SECTION_SYMBOLS is false,
3450 don't write out a section symbol even if it's used in a
3451 relocation; assume relocations will handle section numbers
3452 somehow. Rename "punt_it" label to "punt_it_if_unused" to reflect
3453 it's true use.
3454 (EMIT_SECTION_SYMBOLS): Default to 1.
3455 (adjust_reloc_syms): Don't create a new symbol for an absolute
3456 reference; just use the absolute section symbol.
3457 (write_relocs): Make printout of reloc values dependent on flag
3458 DEBUG3, not DEBUG2.
3459 * config/obj-aout.h (EMIT_SECTION_SYMBOLS): Define as 0.
3460 * config/obj-ecoff.h (EMIT_SECTION_SYMBOLS): Ditto.
3461
3462 Thu Jan 27 16:43:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3463
3464 * read.c (lex_type): No longer make '{' a valid character for
3465 symbol names.
3466
3467 * as.c (main): Print long values using %ld.
3468
3469 * messages.c (as_warn_internal): New static function.
3470 (as_warn, 3 versions): Use as_warn_internal.
3471 (as_warn_where, 3 versions): New function.
3472 * as.h (as_warn_where): Declare.
3473
3474 Tue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
3475
3476 * as.c (quiet_flag): New flag.
3477 (main): If -noquiet given, display execution time and memory used.
3478
3479 Tue Jan 25 15:53:11 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3480
3481 * doc/{all.texi,as.texinfo}: Add documentation for HPPA port.
3482
3483 Mon Jan 24 19:18:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3484
3485 * ecoff.c (ecoff_frob_symbol): New function. Put undefined
3486 symbols of known size in the undefined section. Put small common
3487 symbols in a .scommon section.
3488 * ecoff.h (ecoff_frob_symbol): Declare.
3489 * config/obj-ecoff.h (obj_frob_symbol): Define.
3490 * config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
3491 obj_elf_frob_symbol): Removed unused functions.
3492 * config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
3493 unused macros.
3494 (obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
3495 of unused functions.
3496 (obj_frob_symbol): Define if ECOFF_DEBUGGING.
3497
3498 * tc-mips.c (g_switch_seen): New static variable.
3499 (md_parse_option): Set g_switch_seen for -G option.
3500 (s_option): If creating PIC code, force the GP size to be 0. Warn
3501 if -G switch used with a non-zero value.
3502
3503 * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
3504 comparing against bfd_com_section.
3505
3506 Mon Jan 24 14:12:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3507
3508 * read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss
3509 section.
3510
3511 Thu Jan 20 13:17:58 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3512
3513 * expr.c (operand): For floating point operand with unusual fp
3514 char from FLT_CHARS, preserve the character. Patch from Lisa
3515 Repka.
3516
3517 Wed Jan 19 23:15:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3518
3519 * config/tc-mips.c (md_pseudo_table): Add all data allocation
3520 pseudo-ops: .hword, .int, .long, .octa, .quad, .short, .single.
3521
3522 Tue Jan 18 15:51:59 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3523
3524 * config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and
3525 C_FCN assume .val has been set to .
3526
3527 Tue Jan 18 16:19:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3528
3529 * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It
3530 confuses GDB for some unknown reason.
3531 * cofnig/obj-som.c: Likewise.
3532
3533 Tue Jan 18 19:05:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3534
3535 * literal.c (add_to_literal_pool): Handle duplicates of values
3536 already written to literal pool.
3537
3538 Tue Jan 18 17:23:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3539
3540 * config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols
3541 with explicitly marked stabs through BFD: if a symbol marked
3542 N_UNDF | N_EXT is in the absolute section, move it to the
3543 undefined section; move a symbol marked N_INDR into
3544 bfd_ind_section and set the BSF_INDIRECT flag; set the
3545 BSF_WARNING flag for a symbol makred N_WARNING.
3546
3547 Mon Jan 17 15:40:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3548
3549 * ecoff.h (ecoff_set_gp_prolog_size): Declare.
3550 * ecoff.c (ecoff_set_gp_prolog_size): Return type is void.
3551
3552 Mon Jan 17 00:18:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3553
3554 * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
3555 and 'f' template operand.
3556
3557 * config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u',
3558 and '2' in copr and sfu instruction templates.
3559
3560 Sun Jan 16 16:44:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3561
3562 * as.h (subseg_force_new): Add prototype.
3563
3564 Sat Jan 15 09:20:55 1994 Doug Evans (dje@canuck.cygnus.com)
3565
3566 * app.c (do_scrub_next_char): Allow lines like " foolab :".
3567
3568 * read.c (emit_expr): Fix computation of mask.
3569 * config/obj-elf.c (obj_elf_section): Fix loop termination test.
3570
3571 Thu Jan 13 16:15:15 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3572
3573 * ecoff.c (ecoff_set_gp_prolog_size): New function.
3574 (current_file_idx): New static variable.
3575 (add_file): Use and increment current_file_idx instead of indx
3576 parameter.
3577
3578 * struc-symbol.h (struct symbol): Make all bitfields unsigned.
3579
3580 * config/tc-i960.c (i960_validate_fix): Added argument
3581 add_symbolPP. Indirect through it to get "add_symbolP".
3582 * config/tc-i960.h (i960_validate_fix): Supply prototype.
3583 (TC_VALIDATE_FIX): Pass address of add_symbolP.
3584
3585 * configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
3586 (i386-*-netbsd0.8): New target, like 386bsd.
3587
3588 * configure.in: Set BFDDEF in Makefile to "define" or "undef".
3589 * Makefile.in (config.h): Protect against multiple inclusions.
3590 Define or undef BFD_ASSEMBLER as specified by $(BFDDEF).
3591 (ALL_CFLAGS): Omit $(BFDDEF).
3592 * as.h: Include config.h.
3593 (struct symbol): Added forward declaration.
3594 (add_to_literal_pool): Fix declaration.
3595 * as.c: Don't include config.h.
3596
3597 * literal.c (add_to_literal_pool): Take symbol and addend as
3598 arguments, instead of expression, for now. Fix calculation of
3599 offset to return.
3600
3601 * subsegs.h (segment_info_type) [NEED_LITERAL_POOL]: Add field
3602 literal_pool_size.
3603
3604 Thu Jan 13 12:14:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu
3605
3606 * subsegs.c (subseg_get): Accept new argument "force_new". If
3607 set then a new segment is always created. All callers changed.
3608 (subseg_force_new): New function. Similar to subseg_new, but
3609 always force a new segment to be created.
3610
3611 * config/obj-som.c (som_frob_file): Call adjust_code_sections
3612 for each section.
3613 (adjust_code_sections): New function. Adjusts the VMA for all the
3614 $CODE$ subspaces.
3615
3616 * config/tc-hppa.c (md_assemble): Also handle creating a fixup
3617 for the unwind descriptors if a function's label follows the
3618 .PROC and .ENTRY directives.
3619 (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
3620 is done elsewhere. Don't create a fixup for the unwind
3621 descriptors if the function's label has not been defined yet.
3622 (pa_proc): For SOM, place each procedure within a new $CODE$
3623 subspace. Adjust the segment and frag for the associated
3624 function label if it exists.
3625
3626 Wed Jan 12 22:05:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3627
3628 * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
3629 (hppa_fix_new): Initialize segment field.
3630 (md_apply_fix): Do nothing for pc-relative fixup which involves
3631 crossing a segment boundary.
3632 (pa_procend): Undefine the current label after handling .PROC
3633 and .PROCEND directives.
3634 (dummy_symbol): Make type "symbolS *". Change references as
3635 appropriate.
3636
3637 Wed Jan 12 13:29:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3638
3639 * read.c (read_a_source_file): Cast array argument to unsigned
3640 char.
3641 * write.c (adjust_reloc_syms): Remove unused variable symseginfo.
3642 (write_object_file): Don't define punt_it if it won't be used.
3643 (fixup_segment): Don't define skip if it won't be used.
3644
3645 * config/tc-mips.h (TARGET_FORMAT): Define as mips_target_format.
3646 (mips_target_format): Declare.
3647 * config/tc-mips.c (mips_target_format): Define with appropriate
3648 default definition.
3649 (md_parse_option): If -EL or -EB is used, change byte_order and
3650 mips_target_format as appropriate.
3651
3652 Tue Jan 11 21:52:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3653
3654 * app.c (do_scrub_next_char): Another attempt to fix bugs
3655 dealing with labels without colons (for HPPA and MRI).
3656
3657 Tue Jan 11 17:01:06 1994 Doug Evans (dje@canuck.cygnus.com)
3658
3659 * config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.
3660
3661 * expr.c (integer_constant): Fix computation of too_many_digits.
3662 Variable digit_2 renamed to start. Fix check for whether number
3663 will fit in 32 bits.
3664 * read.c (emit_expr): Use valueT instead of long.
3665
3666 Tue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3667
3668 * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
3669 (special_sections): Define.
3670 (obj_elf_special_section): Get default types and attributes from
3671 list of special sections.
3672 * config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.
3673
3674 * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
3675 sections to be close together.
3676
3677 * config/tc-mips.c (macro): Corrected $at warnings in a couple of
3678 spots.
3679
3680 * listing.c (listing_prev_line): New function.
3681 * listing.c: Include subsegs.h.
3682 (listing_prev_line): New function.
3683 (calc_hex): Reset byte_in_frag to zero for each new frag.
3684 * config/tc-mips.c (append_insn): Call listing_prev_line after
3685 emitting nop instructions.
3686 * Makefile.in (listing.o): Depends upon subsegs.h.
3687
3688 Mon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3689
3690 * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
3691 here. Handle case where label may be defined after the .PROC.
3692 (pa_proc): It is not an error if the procedure's label isn't
3693 defined before the .PROC directive.
3694
3695 Sun Jan 9 04:43:30 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3696
3697 * config/te-netbsd.h: New file.
3698 * config/tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use bfd target
3699 a.out-netbsd-386 for this configuration.
3700
3701 Fri Jan 7 17:38:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3702
3703 * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information
3704 with the associated stabs information.
3705 (ecoff_build_symbols): Never set the type of stabs symbols to
3706 st_Global. Don't update the symbol index or ifd if the gas symbol
3707 is not the same as the ECOFF symbol (which is now the case for
3708 stabs symbols).
3709
3710 Fri Jan 7 11:14:07 1994 Stan Shebs (shebs@andros.cygnus.com)
3711
3712 * config/tc-mips.c (macro): Add a LOSING_COMPILER ifdef that
3713 splits the function.
3714 (macro2): New function, if LOSING_COMPILER defined.
3715
3716 Fri Jan 7 09:38:25 1994 Steve Chamberlain (sac@cygnus.com)
3717
3718 * config/obj-coffbfd.c (fill_section): Don't ever fill past the
3719 end of a section. (write_object_file): Temporary fix - setup
3720 stdoutput.
3721
3722 Thu Jan 6 18:05:21 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3723
3724 * config/tc-sparc.c (tc_gen_reloc): Fix handling of addends in
3725 non-pcrel_offset relocations.
3726
3727 Thu Jan 6 01:06:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3728
3729 * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
3730 without .set noat.
3731
3732 Wed Jan 5 14:22:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3733
3734 * literal.c: New file.
3735 * Makefile.in (REAL_SOURCES, OBJS): List it.
3736
3737 * as.h (DEBUG): Don't define.
3738 (struct expressionS, struct fix): Declare in case they're used in
3739 prototypes.
3740 (add_to_literal_pool) [BFD_ASSEMBLER]: Declare.
3741
3742 * config/tc-mips.h (TARGET_FORMAT) [OBJ_AOUT]: Fix for new names
3743 in bfd.
3744
3745 * subsegs.c (subseg_get): New function. Creates segment if
3746 needed, returns pointer, but doesn't change current segment.
3747 (subseg_new): Use it.
3748
3749 Tue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com)
3750
3751 * Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search.
3752 * config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/".
3753 * app.c, flonum.h, hex-value.c (const): Change #if to be more
3754 portable.
3755
3756 Tue Jan 4 22:11:34 1994 Rob Savoye (rob@darkstar.cygnus.com)
3757
3758 * config/ho-vsta.h, configure.in, .Sanitize: Add support for VSTa
3759 micro-kernel.
3760
3761 Thu Dec 30 15:27:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3762
3763 * write.c (write_relocs): bfd_perform_relocation now takes an
3764 additional argument, to return an error string (which we ignore).
3765
3766 Wed Dec 29 14:37:26 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
3767
3768 * write.h (struct fix): Field tc_fix_data should be type PTR, not
3769 void*, for compatibility with non-ANSI compilers. Added
3770 single-bit field "fx_done".
3771
3772 Sun Dec 26 14:31:47 1993 Torbjorn Granlund (tege@adder.cygnus.com)
3773
3774 * tc-hppa.c (pre_defined_registers): Convert to lower case.
3775 Delete spurious register names "%r4L", etc.
3776 (selector_table): Sort and convert to lower case.
3777 (cons_fix_new_hppa): `reloc_type' => `rel_type'.
3778 (pa_ip): Always use strcmp for non-text and strcasecmp for text.
3779 (reg_name_search): Rewrite to call strcasecmp only once per
3780 iteration.
3781 (pa_chk_field_selector): Rewrite to use binary search.
3782 (pa_parse_neg_add_cmpltr): Use strcasecmp for completer comparisons.
3783 (pa_parse_space_stmt): $TEXT$ and $PRIVATE$ are symbols; use case
3784 sensitive comparisons.
3785 (pa_parse_space_stmt): Canonicalize strncasecmp arg to lower case.
3786 (pa_space): "$text$" => "$TEXT$"; "$private$" => "$PRIVATE$". Use
3787 case sensitive comparison for all symbolic names.
3788 (pa_subspace): Canonicalize strncasecmp arg to lower case.
3789 (pa_subspace_start): Use case sensitive comparison for symbolic names.
3790
3791 Mon Dec 20 10:37:48 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
3792
3793 * write.c (adjust_reloc_syms) [RELOC_REQUIRES_SYMBOL]: If no
3794 symbol is present (i.e., relocation against absolute), create a
3795 phony local symbol, and use it in the reloc.
3796 (fixup_segment): When adjusting a reloc with an absolute symbol,
3797 have TC_FORCE_RELOCATION control clearing add_symbolP too.
3798 * config/tc-sparc.h (RELOC_REQUIRES_SYMBOL): Define, for OBJ_COFF.
3799
3800 * symbols.c (S_IS_EXTERNAL, S_IS_LOCAL): Don't use both BSF_EXPORT
3801 and BSF_GLOBAL, since they're the same.
3802
3803 * as.c (main): Only invoke md_end if it's defined as a macro.
3804 * tc.h (md_end): Don't declare it.
3805 * config/tc-*.[ch] (md_end): Deleted, in cases where it doesn't do
3806 anything.
3807 * config/tc-vax.c (vip_end): Deleted null function.
3808 * config/tc-mips.c (md_mips_end): Renamed from md_end.
3809 * config/tc-mips.h (md_mips_end): Declare.
3810 (md_end): New macro, calls md_mips_end.
3811
3812 * write.c (write_object_file): Don't close output file.
3813 * as.c (main): Close output file (if needed) after calling
3814 listing_print, which should be after calling write_object_file,
3815 which sets the frag addresses.
3816
3817 * config/obj-coff.c (obj_coff_dim, obj_coff_endef, obj_coff_line,
3818 obj_coff_scl, obj_coff_size, obj_coff_tag, obj_coff_type,
3819 obj_coff_val): Add unused int argument to satisfy prototypes; goes
3820 with Ian's 10 Sep changes.
3821 (S_GET_DATA_TYPE, S_SET_DATA_TYPE, S_GET_STORAGE_CLASS,
3822 S_SET_STORAGE_CLASS): Now function instead of macros.
3823 (obj_emit_lineno) [BFD_ASSEMBLER]: Deleted.
3824 (tag_insert): Local var ERROR_STRING is const. Use "const" not
3825 "CONST" for argument NAME. Fixed prototype.
3826 (coff_frob_symbol): Removed explicit "#if 1" directive. If
3827 S_IS_EXTERNAL, set storage class to C_EXT.
3828 (s_get_name): Use "const" not "CONST".
3829 * config/obj-coff.h (S_GET_DATA_TYPE, S_SET_DATA_TYPE,
3830 S_GET_STORAGE_CLASS, S_SET_STORAGE_CLASS): Deleted.
3831 (obj_emit_lineno): Declare only for non-BFD_ASSEMBLER. For
3832 BFD_ASSEMBLER, define as macro that aborts.
3833 (obj_extra_stuff, tc_headers_hook): Declare only for
3834 non-BFD_ASSEMBLER.
3835 (coff_frob_symbol): Fix prototype.
3836
3837 Sun Dec 19 00:37:20 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3838
3839 * config/tc-sparc.c (tc_gen_reloc): Test of pcrel_offset had sense
3840 reversed.
3841
3842 Thu Dec 16 21:13:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3843
3844 * config/tc-hppa.c (md_begin): Initialize "dummy_label".
3845 (tc_gen_reloc, SOM version): For relocations which have no symbol,
3846 set sym_ptr_ptr to dummy_label. Avoids lossage in generic BFD code.
3847
3848 Thu Dec 16 16:07:56 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
3849
3850 * read.c (lex_type): No longer make '[' a valid character for
3851 symbol names.
3852
3853 * config/tc-vax.c (tc_aout_fix_to_chars): Local variable
3854 NBYTES_R_LENGTH now const.
3855
3856 * config/obj-*.c, config/tc-*.c: Omit superfluous "return"
3857 statements at ends of functions. Don't check for null return from
3858 hash_new, since it won't return at all if there's no memory
3859 available. Also, check for null return from hash_insert, rather
3860 than zero-length string, as success indicator.
3861
3862 * subsegs.c (section_symbol): New function.
3863 * subsegs.h (section_symbol): Declare.
3864 * write.c (adjust_reloc_syms): Use it.
3865
3866 Wed Dec 15 15:39:53 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
3867
3868 * Makefile.in (RUNTEST): New variable.
3869 (CHECKFLAGS): Pass it down.
3870
3871 * ecoff.c (ecoff_directive_frame): Permit extra trailing operands;
3872 unused for now, but supplied by Alpha OSF1 compiler.
3873
3874 * as.h: Protect against multiple inclusions.
3875 (int_to_gen): Don't declare.
3876
3877 * config/atof-vax.c (atof_vax): NULL is not a valid character
3878 constant.
3879
3880 Tue Dec 14 21:38:25 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3881
3882 * configure.in (hppa*-*-osf*): Do not consider this a developmental
3883 configuration.
3884
3885 * config/tc-hppa.c (md_apply_fix): Handle cases where no
3886 relocation will be emitted for 32bit formats.
3887
3888 Mon Dec 13 23:33:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3889
3890 * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
3891 for any of the 'T' field selectors.
3892
3893 Sat Dec 11 11:23:12 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3894
3895 * config/tc-h8500.c (build_bytes): Get reloc type right for a
3896 %page operation. (md_assemble): Don't modify input_line_pointer.
3897 (mdcoff_sizemachdep): New function.
3898 * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro.
3899 * config/tc-z8k.c (get_operand): Delete bogus check.
3900
3901 Wed Dec 8 16:31:51 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
3902
3903 * write.c (number_to_chars_*): Delete bogus range check.
3904
3905 * output-file.c (TARGET_ARCH): No default.
3906
3907 Tue Dec 7 16:02:53 1993 Steve Chamberlain (sac@jonny.cygnus.com)
3908
3909 * config/tc-sh.c (md_convert_frag): Truncate disps before calling
3910 md_number_to_chars. (md_assemble): Don't modify
3911 input_line_pointer.
3912
3913 Mon Dec 6 11:49:03 1993 Doug Evans (dje@canuck.cygnus.com)
3914
3915 * config/tc-h8300.c (md_assemble): Don't update input_line_pointer.
3916
3917 Mon Dec 6 11:20:02 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3918
3919 * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.
3920 Breaks with the HP compilers.
3921
3922 * config/tc-hppa.c (struct call_info): Remove fields which were
3923 set but never used. Remove all code which sets those fields.
3924 (struct subspace_dictionary_chain): Likewise.
3925 (struct space_dictionary_chain): Likewise.
3926 (pa_desc): Delete useless function. Delete all references.
3927 (hppa_tc_make_sections): No need to count the number of symbols for
3928 the symbol extension section.
3929
3930 Sun Dec 5 17:05:29 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3931
3932 * config/obj-som.c (obj_som_version): Pass version string to
3933 SOM BFD backend.
3934 (obj_som_copyright): New function. Much like obj_som_version.
3935
3936 * config/tc-hppa.c (obj_copyright): Define as appropriate for
3937 SOM and ELF.
3938 (pa_copyright): Just a stub now.
3939
3940 * config/obj-som.c (obj_read_begin_hook): Delete unused function.
3941 * config/obj-som.h (obj_read_begin_hook): Provide dummy definition.
3942 (TARGET_SYMBOL_FIELDS): Delete. SOM isn't making use of them.
3943
3944 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation
3945 expansion due to rounding mode selectors. Handle R_[RDSN]_MODE
3946 relocations for selecting the current rounding mode.
3947
3948 * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and
3949 e_rlsel field selectors.
3950
3951 Fri Dec 3 18:33:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3952
3953 * config/obj-elf.h: If ECOFF_DEBUGGING, undef
3954 SEPARATE_STAB_SECTIONS and INIT_STAB_SECTION, and define
3955 OBJ_PROCESS_STAB to call ecoff_stab.
3956 * config/obj-elf.c: Don't compile obj_elf_init_stab_section if
3957 INIT_STAB_SECTION is not defined.
3958
3959 Fri Dec 3 10:56:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3960
3961 * config/tc-hppa.c (md_apply_fix): Delete old wrapper function.
3962 (md_apply_fix_1): Rename to md_apply_fix. Fix argument decls.
3963 Fix comments in various places. Always return a value.
3964 Avoid dereferencing a NULL fx_addsy.
3965 (hppa_force_relocation): Avoid dereferencing a NULL fx_addsy.
3966
3967 Fri Dec 3 09:47:30 1993 Pete Hoogenboom (hoogen@cs.utah.edu)
3968
3969 * tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should
3970 be either 0 or 2 (no static link or static link required). Always
3971 assume no static link.
3972
3973 Thu Dec 2 11:52:21 1993 Ken Raeburn (raeburn@cygnus.com)
3974
3975 * config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be
3976 dependent on howto fields, not on format flavour.
3977
3978 * struc-symbol.h (struct symbol): New fields sy_obj and sy_tc,
3979 defined as types OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those
3980 macros are defined.
3981 * config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define.
3982 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define.
3983 (sy_tc, sy_obj): Define so that the fields look like they used to,
3984 until all references get changed.
3985
3986 * write.c (fixup_segment): Lots of variables no longer register.
3987 Reordered some code for easier reading.
3988 * config/obj-coff.c (obj_coff_dim): dim_index no longer register.
3989 Deleted superfluous return statement.
3990 (obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type,
3991 obj_coff_val, tag_init, tag_insert): Deleted superfluous return
3992 statement.
3993 (align, obj_coff_section): Deleted debugging printfs.
3994 * config/tc-i386.c (md_assemble): Discard some register decls.
3995 Use assignment rather than memcpy to copy template.
3996 (op_hash, reg_hash, prefix_hash): Default C initialization of
3997 statics is sufficient.
3998 * config/tc-sparc.c (print_insn): Array Reloc is now const, and
3999 points to const.
4000
4001 * config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if
4002 TE_LYNX; use coff-sparc otherwise.
4003 [USE_NATIVE_HEADERS]: Delete this code; it isn't used.
4004
4005 * write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined,
4006 before processing a fixup. Call TC_ADJUST_RELOC_COUNT just before
4007 returning. Remove some i960-coff-specific code.
4008 (TC_ADJUST_RELOC_COUNT): Default to doing nothing.
4009 * config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define.
4010 (i960_validate_fix): Declare.
4011 (TC_VALIDATE_FIX): Define.
4012 * config/tc-i960.c (i960_validate_fix): New function.
4013
4014 * write.c (number_to_chars_littleendian): New function. Write out
4015 bytes in little endian order, doing size and range checking.
4016 (number_to_chars_bigendian): New function, similar.
4017 * write.h: Declare them.
4018 * config/tc-*.c (md_number_to_chars): Use them.
4019 * config/tc-vax.c (md_apply_fix): Ditto.
4020 * config/tc-i386.c (md_apply_fix): Ditto.
4021
4022 * config/obj-coff.c: Rearranged code for handling line number
4023 data.
4024 (line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case,
4025 since the usage is different from non-BFD_ASSEMBLER case.
4026 (in_function, clear_function, set_function): New macros, to
4027 combine some of the functionality implemented in differnet ways in
4028 BFD_ASSEMBLER and non-... code. Used in other functions that used
4029 to check function_lineoff &c.
4030 (obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER,
4031 one for not. Non-BFD_ASSEMBLER version now has temporary variable
4032 to contain char* pointer pointed to by char** argument. Always
4033 follow CROSS_COMPILE code; easier to read that way.
4034 (obj_coff_ln): Don't call add_lineno or c_line_new if appline is
4035 set.
4036 (obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for
4037 ".bf", it's been done elsewhere.
4038 (coff_frob_symbol): If ilne number data is pending, call
4039 add_linesym to flush it.
4040 (coff_frob_file): Don't do that here.
4041 * config/obj-coff.h (coff_frob_file): Declare.
4042 (obj_frob_file): Define, to call it.
4043
4044 * config/tc-sparc.h (md_create_short_jump, md_create_long_jump,
4045 md_estimate_size_before_relax: Define them as macros calling
4046 as_fatal.
4047 * config/tc-sparc.c: Don't define them as functions.
4048
4049 * configure.in: Handle target alpha-*-osf*. (No cpu files yet.)
4050
4051 Wed Dec 1 23:37:14 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4052
4053 * Makefile (clean): Depend on clean-here.
4054
4055 Wed Dec 1 11:35:21 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
4056
4057 * config/ho-go32.h: Include fopen-bin.h.
4058 * as.h: If FOPEN_WB isn't defined, include fopen-same.h.
4059 * output-file.c (output_file_create): Use FOPEN_WB instead of "w".
4060 * input-file.c (input_file_open): Use FOPEN_RT instead of "r".
4061 * listing.c (file_info): Use FOPEN_RB instead of "rb".
4062 * read.c (s_include): Use FOPEN_RT instead of "r".
4063
4064 * stabs.c: Include obstack.h.
4065
4066 * tc.h (md_create_long_jump): Don't declare if it's already
4067 defined as a macro.
4068 (md_create_short_jump, md_estimate_size_before_relax): Ditto.
4069
4070 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_errmsg instead
4071 of strerror. Clear bfd_error.
4072
4073 * config/te-lynx.h (LOCAL_LABELS_FB): Define, if not already
4074 defined.
4075
4076 Wed Dec 1 10:41:56 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4077
4078 * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.
4079 (pa_process_exit, pa_procend): Call it for ELF objects.
4080
4081 Wed Dec 1 12:10:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4082
4083 * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d
4084 case. See comment. From wilson@cygnus.com: for M_L_DAB, set
4085 coproc before doing goto ld.
4086
4087 Tue Nov 30 13:40:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4088
4089 * write.c (TC_FORCE_RELOCATION): Provide a default definition.
4090 (fixup_segment): Allow the target machine to specify that a
4091 relocation must be generated for a particular fixup. Remove
4092 #ifndef TC_HPPA hack.
4093
4094 * config/tc-hppa.h (TC_FORCE_RELOCATION): Define.
4095
4096 * config/tc-hppa.c (md_apply_fix_1): Never change fx_addsy to
4097 be NULL. Only fixup_segment is supposed to do that.
4098 (hppa_force_relocation): New function.
4099
4100 Tue Nov 30 11:21:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4101
4102 * Makefile.in (stabs.o): Added dependencies.
4103
4104 * config/obj-ecoff.c (ecoff_frob_file): Don't call bfd_set_symtab.
4105
4106 Sun Nov 28 12:11:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4107
4108 * app.c (do_scrub_next_char): Output a TAB before any
4109 .app* directive.
4110
4111 * config/tc-hppa.c (fix_new_hppa): Make sure a sub_symbol
4112 exists before trying to peek at its name.
4113 (pa_space): Do not call pa_align_subseg. See hppa/unsorted/align3.s
4114 for testcase.
4115 (pa_align_subseg): Delete unused/unwanted function.
4116
4117 Sat Nov 27 22:49:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4118
4119 * read.c (read_a_source_file): Fix test for when to stick a colon
4120 on the end of a label. Make code conditional on either MRI or
4121 LABELS_WITHOUT_COLONS.
4122
4123 * app.c (do_scrub_next_char): If a line begins with whitespace, leave
4124 the single whitespace character alone. Eat all others.
4125
4126 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define.
4127
4128 Wed Nov 24 01:22:54 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4129
4130 * config/tc-hppa.c (pa_procend): Do not call process_exit.
4131 (exit_processing_complete): Delete unwanted variable and all
4132 references.
4133
4134 Wed Nov 24 02:31:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4135
4136 * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext.
4137 Changed to not actually build the external symbol information, as
4138 that is now done by the ECOFF back end.
4139 (ecoff_build_debug): Changed accordingly.
4140 * ecoff.h (obj_ecoff_set_ext): Declare. obj-format.c function
4141 called by ecoff_setup_ext.
4142 * config/obj-ecoff.c (ecoff_frob_file): If debug_info count is 0,
4143 set corresponding pointer to NULL. Don't set raw_size and
4144 raw_syments.
4145 (obj_ecoff_set_sym_index): Removed.
4146 (obj_ecoff_set_ext): New function.
4147 * config/obj-ecoff.h (obj_set_sym_index): Don't define.
4148 (obj_ecoff_set_sym_index): Don't declare.
4149 * config/obj-elf.c (obj_ecoff_set_ext, elf_get_extr,
4150 elf_set_index): New functions used for ECOFF_DEBUGGING.
4151 (elf_frob_file): Reworked ECOFF debug generation to use
4152 new functions in bfd/ecofflink.c.
4153
4154 Sun Nov 21 23:54:52 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4155
4156 * config/tc-hppa.c (pa_def_subspaces): Only create the unwind
4157 subspace for ELF. In the SOM world, the linker is responsible
4158 for creating the unwind subspaces.
4159
4160 Fri Nov 19 16:25:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4161
4162 * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
4163 (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
4164 already set. Fixes .def var; .val external_var; .scl 3; .endef.
4165 (adjust_stab_section): Make static. Declare return type. Remove
4166 unused variables.
4167
4168 * config/tc-i386.h: Declare tc_coff_fix2rtype and
4169 tc_coff_sizemachdep.
4170
4171 Fri Nov 19 04:33:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4172
4173 * write.c (write_object_file): Disable obj_check_file_symbols
4174 hook; only back end using it wasn't using it correctly.
4175 (write_object_file): Always call obj_frob_symbol and
4176 tc_frob_symbol; always retain symbol if it's used by a relocation,
4177 regardless of what these routines indicate.
4178 * config/obj-coff.c (coff_frob_symbol): Renamed from
4179 coff_check_file_symbols.
4180 * config/obj-coff.h (obj_check_file_symbols): Deleted.
4181 (coff_frob_symbol): Declare.
4182 (obj_frob_symbol): Call it.
4183
4184 * config/obj-coff.c (obj_crawl_symbol_chain, obj_emit_strings,
4185 obj_pre_write_hook): Don't define for BFD_ASSEMBLER.
4186 (c_section_header): Ditto. Delete superfluous return at end of
4187 function.
4188
4189 * config/obj-coff.h [TC_SPARC]: Include coff/sparc.h, and specify
4190 coff-sparc-lynx.
4191 (SA_GET_SYM_TAGNDX): Use BFD_HEADERS version for BFD_ASSEMBLER
4192 too.
4193 (c_section_header): Rewrite prototype so that it contains no
4194 preprocessing directives. Don't declare it at all if
4195 BFD_ASSEMBLER.
4196
4197 * configure.in (sparc*-*-lynxos): New target, using coff and
4198 BFD_ASSEMBLER.
4199
4200 * stabs.c: New file.
4201 * Makefile.in (REAL_SOURCES, OBJS): List it.
4202 * read.c (STAB_SECTION_NAME, STAB_STRING_SECTION_NAME,
4203 get_stab_string_offset, s_stab_generic, s_stab, s_xstab, s_desc):
4204 Moved to new file.
4205
4206 * config/tc-sparc.c (tc_gen_reloc): Handle coff files like elf
4207 files.
4208
4209 Wed Nov 17 17:23:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4210
4211 * configure.in (mips-*-irix5*): New target. Use elf and mips-big.
4212 * config/obj-elf.c: If ECOFF_DEBUGGING, include ecoff.h.
4213 (obj_pseudo_table): If ECOFF_DEBUGGING, define ECOFF
4214 pseudo-ops.
4215 (obj_read_begin_hook): If ECOFF_DEBUGGING, call
4216 ecoff_read_begin_hook.
4217 (obj_symbol_new_hook): If ECOFF_DEBUGGING, call
4218 ecoff_symbol_new_hook.
4219 (obj_elf_init_stab_section): Cast alloca result.
4220 (elf_frob_file): If ECOFF_DEBUGGING, finish up ECOFF debugging
4221 information and write it out into .mdebug section.
4222 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): New macro.
4223 (TARGET_SYMBOL_FIELDS): Use ELF_TARGET_SYMBOL_FIELDS.
4224 (ECOFF_DEBUGGING): Define if TC_MIPS.
4225 (TARGET_SYMBOL_FIELDS): If ECOFF_DEBUGGING, override to add
4226 fields required by ECOFF.
4227 * config/tc-mips.c: Check ECOFF_DEBUGGING rather than
4228 OBJ_ECOFF in many cases.
4229 (mips_any_noreorder): New variable.
4230 (mips_cprestore_offset): Initialize to -1.
4231 (mips_frame_reg): New variable.
4232 (RELAX_ENCODE, RELAX_OLD, RELAX_NEW, RELAX_RELOC1,
4233 RELAX_RELOC2, RELAX_RELOC3, RELAX_WARN): New macros.
4234 (md_pseudo_table): Handle "gpword" and "cpadd".
4235 (md_begin): Initialize ok to false. If OBJ_ELF, set alignment
4236 of text, data and bss sections to 4. Set alignment of
4237 .reginfo section to 2. If ECOFF_DEBUGGING, create .mdebug
4238 section.
4239 (ALIGN_ERR, ALIGN_ERR2): Removed unused and useless alignment
4240 check.
4241 (append_insn, macro_build, macro_build_lui): Take place
4242 argument. Changed all callers.
4243 (append_insn): If appending a nop, don't emit one.
4244 (macro_build): Changed assertion for 'i', 'j', 'o' case.
4245 (gp_reference): Removed.
4246 (load_address): New function.
4247 (macro): If mips_noreorder is used, set mips_any_noreorder.
4248 Extensive changes to handle GP and PIC symbols differently.
4249 Build both possible code choices using a variant frag, and
4250 make a final decision at the end of assembly when all
4251 information is known. Added PIC support for all symbol
4252 references.
4253 (mips_ip): Don't permit anything but a number after $ for a
4254 coprocessor register. Don't use .lit4 or .lit8 sections when
4255 generating PIC code. If OBJ_ELF, set alignment of .lit4 or
4256 .lit8 section to 4.
4257 (md_apply_fix): Accept and ignore GOT16 and GPREL32 relocs.
4258 (s_change_sec): Set alignment of ELF .rodata or .sdata section
4259 to 4.
4260 (s_mipsset): If .set noreorder, set mips_any_noreorder.
4261 (s_cpload): Ignore .cpload if not generating PIC code. Warn
4262 if .cpload is not in noreorder section.
4263 (s_cprestore): Ignore .cprestore if not generating PIC code.
4264 (s_gpword, s_cpadd): New functions.
4265 (tc_get_register): Added frame argument; if true, set
4266 mips_frame_reg to return value. Changed all callers.
4267 (md_estimate_size_before_relax): Don't error out, but instead
4268 determine how much a frag should grow.
4269 (tc_gen_reloc): Return multiple relocs if appropriate, as
4270 determined by md_estimate_size_before_relax.
4271 (md_convert_frag): New function.
4272 (mips_elf_final_processing): Set ELF header flags based on
4273 mips_any_noreorder and mips_pic.
4274 * config/tc-mips.h (RELOC_EXPANSION_POSSIBLE): Define.
4275 (MAX_RELOC_EXPANSION): Define to be 3.
4276 (md_relax_frag): Define to be 0.
4277 (md_convert_frag): Don't define.
4278 (tc_get_register): Changed declaration.
4279
4280 * ecoff.h, ecoff.c: New files pulled out of config/obj-ecoff.c to
4281 support generating ECOFF debugging information for MIPS ELF
4282 targets. Compiled only if ECOFF_DEBUGGING is defined. Changed
4283 handling of external symbols: it now always generates exactly
4284 those external symbols that are defined in the global symbol list.
4285 * Makefile.in (REAL_SOURCES): Added ecoff.c.
4286 (REAL_HEADERS): Added ecoff.h.
4287 (OBJS): Added ecoff.o.
4288 (ecoff.o): New target.
4289 * config/obj-ecoff.c: Almost entirely moved into ecoff.c.
4290 Remaining code mostly just calls ecoff.c code.
4291 * config/obj-ecoff.h: Define ECOFF_DEBUGGING.
4292 (TARGET_SYMBOL_FIELDS): Make ecoff_symbol a pointer to a
4293 struct localsym.
4294 (obj_read_begin_hook, obj_symbol_new_hook): Define to call
4295 functions in ecoff.c.
4296 (ecoff_stab): Don't declare (now declared in ecoff.h).
4297 (obj_set_sym_index): Define.
4298 (obj_ecoff_set_sym_index): Declare.
4299
4300 * frags.h (frag_grow): Declare.
4301 * frags.c (frag_grow): Made non-static.
4302
4303 * write.c (is_dnrange): Do not define if md_relax_frag is defined.
4304 (relax_segment): If md_relax_frag is defined, use it to handle a
4305 frag of type rs_machine_dependent rather than looking through
4306 md_relax_table.
4307
4308 * read.c (read_a_source_file): If we find a bad pseudo-op,
4309 do a continue to go on to the next line rather than a break.
4310 Removed duplicate bad pseudo-op code which was never executed.
4311
4312 * read.c (s_lcomm): Do not require a comma after the name.
4313
4314 * subsegs.h (segment_info_type): Changed hadone field to bitfield.
4315 Added bss bitfield.
4316 * as.c (perform_an_assembly_pass): Set bss flag for bss_section.
4317 * read.c (s_lcomm): Set bss flag for .sbss section if used.
4318 * write.c (relax_and_size_seg): Don't set SEC_HAS_CONTENTS for a
4319 bss section. Set SEC_RELOC if there are any relocations, even for
4320 a zero size section.
4321
4322 * write.c (write_relocs): In RELOC_EXPANSION_POSSIBLE case, base
4323 data offset on reloc[0]->address rather than reloc[j]->address, so
4324 that multiple relocs can affect different memory locations.
4325
4326 * write.c (chain_frchains_together, relax_and_size_seg,
4327 adjust_reloc_syms, write_relocs): Make third argument PTR, not
4328 char *, to match definition of bfd_map_over_sections.
4329
4330 * app.c (do_scrub_next_char): Don't interpret a comment character
4331 as starting a CPP line directive unless it is a '#' and is the
4332 very first characters on the line (i.e., do not permit leading
4333 whitespace).
4334
4335 * messages.c (identify): Make file argument non-const, to match
4336 callers.
4337
4338 Tue Nov 16 20:38:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4339
4340 * config/tc-hppa.c (pa_ip): Fix thinko in 21bit range check.
4341
4342 Sat Nov 13 18:22:48 1993 Steve Chamberlain (sac@jonny.cygnus.com)
4343
4344 * config/tc-sh.c (md_apply_fix): Cope with IMM16 type too.
4345 * config/tc-z8k.c (build_bytes, md_apply_fix): Understand nDISP7
4346 relocs.
4347
4348 Fri Nov 12 16:51:47 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4349
4350 * config/tc-hppa.[ch]: Fix assorted trivial indention problems.
4351 * config/obj-som.c (obj_som_version): Add missing ';'.
4352 (som_frob_file): Delete whitespace at EOL.
4353
4354 Fri Nov 12 15:26:21 1993 Ken Raeburn (raeburn@cygnus.com)
4355
4356 * Makefile.in (VERSION): Updated following 2.2 release.
4357
4358 Fri Nov 12 14:52:17 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4359
4360 * config/tc-hppa.c (hppa_fix_struct): Use a real type for the
4361 field selector, rather than an int. All uses of field selectors
4362 fixed.
4363 (tc_gen_reloc): For SOM PLABELs, always set addend to zero for now.
4364 (md_apply_fix_1): Do not call hppa_field_adjust for any PLABEL
4365 field.
4366
4367 Thu Nov 11 15:49:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4368
4369 * config/tc-hppa.c (pa_type_args): For .import statements,
4370 silently ignore attempt to change the symbol type for a function
4371 from ST_ENTRY to ST_CODE on .import.
4372
4373 Wed Nov 10 16:19:13 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4374
4375 * write.h (fixS): Rename fx_callj field to fx_tcbit.
4376 * write.c, config/obj-coff.c, config/obj-coffbfd.c,
4377 config/tc-i960.c: Corresponding changes.
4378
4379 Tue Nov 9 00:49:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4380
4381 * Makefile.in (distclean): Delete config-stamp and config.h
4382
4383 * config/tc-hppa.c (evaluate_absolute): Avoid relying on
4384 ANSI-C features.
4385
4386 * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
4387 Accept new argument "is_export". All callers changed. When
4388 processing a .export directive for a function, do not allow
4389 the user to set the type to "CODE", instead warn and set the
4390 type to "ENTRY".
4391
4392 Mon Nov 8 12:05:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4393
4394 * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
4395 Lemon <mellon@pepper.ncd.com>).
4396 (mips_ip): Permit odd numbered floating point registers if -mips3.
4397 (macro): Use BFD_RELOC_MIPS_LITERAL relocation for M_LI_SS.
4398
4399 Mon Nov 8 07:45:01 1993 Doug Evans (dje@canuck.cygnus.com)
4400
4401 * configure.in: Remove h8300h, we have multilib now.
4402
4403 Mon Nov 8 06:09:18 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
4404
4405 * configure.in: Support generic netware as being ELF format.
4406 Recognise unixware if the user supplies it.
4407
4408 Sun Nov 7 01:02:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4409
4410 * First cut at cleaning up PA instruction parsing.
4411 * config/tc-hppa.c (pa_get_absolute_expression): Accept pointer to
4412 insn structure as an argument, and a pointer to a string. All
4413 callers changed. Always read any field selector here. Call
4414 evaluate absolute to get a return value.
4415 (evaluate_absolute): Addept pointer to insn structure as its
4416 argument. All callers changed.
4417 (INSERT_FIELD_AND_CONTINUE): New macro for inserting a bitfield
4418 into an instruction and continuing the main pa_ip loop.
4419 (CHECK_FIELD): New macro for simple range checking of fields.
4420 (pa_ip): Delete unused variables. Use INSERT_FIELD_AND_CONTINUE
4421 and CHECK_FIELD. All immediate fields now pass through
4422 pa_get_absolute_expression which will also handle field selectors.
4423 Delete dead code. Simplify.
4424 (md_apply_fix_1): Use CHECK_FIELD to verify any fixes that are
4425 applied are in range. Use bfd_put_32 rather than inserting each
4426 byte of the fixed instrution into the buffer ourselves.
4427
4428 * write.c (fixup_segment): Delete {SEG,GLOBAL}_DIFF_ALLOWED code,
4429 it was PA specific and is no longer needed (it's now handled
4430 within the PA backend).
4431 * config/tc-hppa.h (SEG_DIFF_ALLOWED): Delete definition.
4432 * config/tc-hppa.c (fix_new_hppa): If the subtract symbol for
4433 a fixup is $global$ change it to NULL as $global$ is really only
4434 needed long enough to determine the base type of relocation to use.
4435
4436 * config/tc-hppa.c (create_new_subspace): Initialize subspace_defined.
4437
4438 * config/tc-hppa.c (pa-ip, case 'z'): Make field selectors work
4439 for 'z' operands (target of ble branch).
4440
4441 Sat Nov 6 22:41:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4442
4443 * config/tc-hppa.c: (update_subspace): Fix type and name of last
4444 parameter. All callers fixed.
4445 (md_begin, pa_chk_field_selector, pa_entry): Lint.
4446
4447 * config/tc-hppa.c (cons_fix_new_hppa): Reset field selector
4448 to default state after it's been used.
4449
4450 Fri Nov 5 12:08:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4451
4452 * config/obj-som.c (obj_som_init_stab_section): Change
4453 space/subspace sort keys for the stab sections so as to avoid
4454 bugs in the hp linker and pxdb.
4455
4456 Thu Nov 4 17:00:05 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4457
4458 * write.c (chain_frchains_together): Update pointer to last
4459 frag for a segment in the seginfo structure.
4460
4461 Thu Nov 04 09:09:35 1993 Jeffrey Wheat (cassidy@cygnus.com)
4462
4463 * Makefile.in: Changed RUNTESTFLAGS to RUNTEST_FLAGS
4464
4465 Wed Nov 3 12:16:27 1993 Ken Raeburn (raeburn@rover.cygnus.com)
4466
4467 * write.c (fixup_segment): Handle conversion of subtraction to
4468 pc-relative addressing even if pc-relative flag is already set.
4469
4470 * config/tc-m68k.c (m68k_ip_op): Use strchr, not index. Don't
4471 declare either.
4472
4473 * doc/Makefile.in (distclean): Delete intermediate files from dvi
4474 build, but not the dvi or info files.
4475 * Makefile.in (clean-here): New target; cleans up current
4476 directory only.
4477 (distclean): Use it instead of clean.
4478
4479 * read.c (s_xstab): Don't use alloca.
4480
4481 * messages.c (identify): New routine; print message identifying
4482 following messages as coming from assembler.
4483 (as_show_where, as_bad_internal, as_bad_where): Call it.
4484 (as_fatal): Don't need to identify program any more.
4485
4486 Tue Nov 2 18:04:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4487
4488 * config/tc-sparc.c (sparc_ip): Add default case to reloc switch.
4489
4490 * read.c (s_lcomm): Put small objects in .sbss for MIPS ELF as
4491 well as MIPS ECOFF.
4492 (get_stab_string_offset): Remove unused variable aligned.
4493
4494 Tue Nov 2 15:07:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4495
4496 * tc-hppa.c: Add %dp and %rp as synonyms for %r27 and %r2 in the
4497 predefined register table.
4498 (pa_parse_number): Handle %rp in common register shortcut code.
4499 Consistently set return value to -1 for an error. Clean up error
4500 messages and only print them when "print_errors" is true. Handle
4501 empty string case like the HP assembler -- assume a value of
4502 zero.
4503
4504 * config/ho-hpux.h: Do not include ho-sysv.h. Instead include
4505 standard hpux include files to pick up various function decls.
4506
4507 * config/ho-hppaosf.h: Delete _IO* macros. They are defined in
4508 stdio.h. Delete bogus declaration of free. Get path to
4509 alloca-conf.h right.
4510
4511 Tue Nov 2 13:57:30 1993 Ken Raeburn (raeburn@rover.cygnus.com)
4512
4513 * expr.c (operand): Fix checks for characters following "0b" or
4514 "0f".
4515
4516 Mon Nov 1 21:37:04 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4517
4518 * config/obj-som.h (obj_attach_unwind_info): Define as a hook
4519 so GAS can attach unwind descriptor information to a BFD symbol.
4520 * config/tc-hppa.c (fix_new_hppa): If necessary attach unwind
4521 descriptor information to the BFD symbol.
4522 (md_apply_fix): R_HPPA_ENTRY and R_HPPA_EXIT can never be "applied",
4523 they are simply markers. Make R_HPPA_UNWIND_* handling OBJ_ELF
4524 dependent.
4525 (pa_build_unwind_subspace): Whole function is OBJ_ELF dependent.
4526 (pa_entry): Build a R_HPPA_ENTRY relocation when configured for SOM.
4527 (pa_exit): Likewise, but built a R_HPPA_EXIT relocation. Do not
4528 build "end-of-function" symbols for SOM, they are not needed.
4529
4530 * config/tc-hppa.c (process_exit): Create temporary symbols with
4531 correct prefixes so they can be eliminated later.
4532
4533 * config/tc-hppa.c (call_info struct): Delete unused "frame" field.
4534 (pa_callinfo): Insert framesize into the unwind information as
4535 soon as it's available.
4536 (pa_build_unwind_subspace): Do not insert framesize into the unwind
4537 information here.
4538
4539 * Add support for marker type relocations. These mark areas
4540 of interest to the linker. ENTRY/EXIT relocations for SOM are
4541 an example of marker relocations.
4542 * write.c (write_relocs): Instead of assuming size of a relocation
4543 is 4 bytes, pick up the size from relocation itself.
4544 (fixup_segment): Do not complain that a value is too small for
4545 marker relocations.
4546
4547 * struc-symbol.h: Add new "sy_used" field to the symbol structure.
4548 * expr.c (operand): Set sy_used for any symbol used as an operand.
4549 (expr): Likewise for any symbol used in an expression.
4550 * config/tc-hppa.h (tc_frob_symbol): Define. Punt imported
4551 symbols which are never used and absolute symbols which local scope.
4552
4553 * config/obj-som.h (obj_frob_file): Define.
4554 * config/obj-som.c (obj_som_init_stab_section): Set alignment
4555 of stab sections. Make space for the special stab entry.
4556 (adjust_stab_sections): Adjust the special entry in the
4557 stabs section.
4558 (som_frob_file): New function. Simply calls adjust_stab_sections
4559 for each section.
4560
4561 Mon Nov 1 17:54:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4562
4563 * config/tc-mips.c (PIC_CALL_REG, SP, FP): Define.
4564 (mips_pic, mips_cprestore_offset): New static variables.
4565 (md_pseudo_table): Handle .abicalls, .cpload, and .cprestore.
4566 Ignore .bgnb and .endb.
4567 (gp_reference): _gp_disp is never addressed off GP.
4568 (macro_build): Ignore macros while searching for insn. For cases
4569 i, j, and o, accept the reloc type as an argument rather than
4570 assuming BFD_RELOC_LO16. Don't try to convert BFD_RELOC_LO16 to
4571 BFD_RELOC_MIPS_GPREL. Added new case a.
4572 (set_at, load_register, macro): Changed calls to macro_build to
4573 pass new argument for i, j and o cases.
4574 (macro): Handle M_JAL_1, M_JAL_2 and M_JAL_A. These require
4575 special handling when generating SVR4 PIC code.
4576 (mips_ip, tc_get_register, s_frame): Use macros FP, SP, GP and AT
4577 rather than hard coded constants.
4578 (md_apply_fix): Handle BFD_RELOC_MIPS_LITERAL and
4579 BFD_RELOC_MIPS_CALL16.
4580 (s_option): Set mips_pic based on .option picN.
4581 (s_abicalls): New function; set mips_pic to 2.
4582 (s_cpload): New function; handle .cpload.
4583 (s_cprestore): New function; handle .cprestore.
4584
4585 * config/obj-ecoff.c (obj_pseudo_table): Add entries for .bgnb,
4586 .endb and .verstamp, setting them to s_ignore.
4587
4588 Sun Oct 31 00:36:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4589
4590 * config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined
4591 field. Define SUBSPACE_DEFINED accessor macro.
4592 (pa_subspace): Allow user to override subspace attributes for
4593 built-in subspaces. Set ssd_defined at the end of fcn -- that
4594 way the attributes can only be changed once. Pass newly allocated
4595 name to is_defined_subspace, not a pointer to the input line.
4596 Fix typo in space/subspace rework.
4597 (is_defined_subspace): Delete unused 2nd arg. All callers changed.
4598
4599 * config/tc-hppa.c (pa_import): If currently in the text segment
4600 and a symbol is imported without type information, set BSF_FUNCTION
4601 for the symbol.
4602 * write.c (relax_and_size_seg): Correct test to determine if
4603 the section's size was rounded up.
4604
4605 * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
4606 can properly set all the SOM symbol types.
4607 * config/tc-hppa.c (pa_symbol_type): New enum to represent the
4608 symbol types which can be set from an IMPORT/EXPORT statement.
4609 (pa_export_args): Set the pa_symbol_type type based on arguments.
4610 If defined, call obj_set_symbol_type to pass this information on
4611 to the BFD backend.
4612
4613 * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
4614 stab section we make.
4615 (s_stab_generic): Likewise.
4616
4617 Sat Oct 30 14:26:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4618
4619 * Allow backends to override the value of the fake label.
4620 * write.h (LOCAL_LABEL): Delete DOT_LABEL_PREFIX code. Instead
4621 assume backends will define LOCAL_LABEL if anything other than
4622 'L' is used to denote a local label.
4623 (FAKE_LABEL_NAME): New macro. Defines the default name used for
4624 the "fake" label.
4625 * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
4626 and instead simply use the string defined by FAKE_LABEL_NAME.
4627 (operand): Likewise.
4628 * read.c (s_stab_generic): Likewise.
4629 * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
4630 known to be a local label.
4631 * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
4632 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
4633 * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete.
4634 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
4635 * config/te-sco386.h (DOT_LABEL_PREFIX): Delete.
4636 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
4637
4638 Rework space/subspace handling in PA code to fully support
4639 SOM spaces/subspaces.
4640 * config/tc-hppa.c (USE_ALIASES): New object-format dependent define
4641 to control the use of space/subspace name aliases.
4642 (update_subspace): Accept space chain entry for containing space
4643 as a new parameter. All callers changed.
4644 (pa_get_label): Use current_space rather than pa_segment_to_space.
4645 (pa_define_label): Likewise.
4646 (pa_undefine_label): Likewise.
4647 (md_begin): Change into the (possibly modified) text_section.
4648 (pa_parse_space_stmt): Create a new segment/space if create_flag
4649 is true, and the space name is not one of the two predefined spaces.
4650 (pa_subspace): Use current_space rather than a lookup via
4651 pa_segment_to_space. Reset BFD section flags as required by
4652 the .subspace directive. Likewise for the section alignment.
4653 Pass the current space to update_subspace and create_new_subspace.
4654 (pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
4655 is true. When not using aliases, create a BFD section for each
4656 subspace encountered. When not using aliases replace the default
4657 text, data, and bss segments with new ones.
4658 (create_new_subspace): When not using aliases each subspace has a
4659 section/segment and subsegments are not needed, so set the subsegment
4660 to zero.
4661
4662 * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
4663 obj_set_section_attributes to pass space attributes to the
4664 BFD backend.
4665 (create_new_space): Likewise.
4666 (create_new_subspace): Likewise for subspace attributes using
4667 obj_set_subsection_attributes.
4668 (update_subspace): Likewise for subspace attributes using
4669 obj_set_subsection_attributes.
4670
4671 * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
4672 for $TEXT$ and $PRIVATE$ from the default space structure.
4673
4674 * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
4675 as appropriate for the given type.
4676
4677 * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
4678 SOM relocations.
4679
4680 * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
4681 redefinition.
4682
4683 * config/obj-som.[ch]: New files for SOM support. Note SOM
4684 support is not yet complete in GAS or BFD.
4685
4686 * config/ho-hppabsd.h: Delete IO* macros, they are defined in
4687 stdio.h. Delete declaration of free. Include stdlib.h, unistd.h,
4688 and string.h.
4689
4690 Fri Oct 29 13:26:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4691
4692 * Allow backends to override the section names used for embedded
4693 stabs support. Needed for SOM.
4694 * read.c (STAB_SECTION_NAME): Default the name of the stab section
4695 to ".stab".
4696 (STAB_STRING_SECTION_NAME): Likewise for the stab strings section.
4697 (get_stab_string_offset): Is now passed the full name for the
4698 stab string section rather than a name prefix. All references
4699 changed.
4700 (s_stab_generic): New argument for the stab string section name.
4701 all references changed.
4702 (s_xstab): Append "str" to the stab section name to get the
4703 stab string section name.
4704 * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
4705 to stab section name to get the stab string section name. Pass
4706 the full name of the stab string section to get_stab_string_offset.
4707 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
4708
4709 * config/tc-hppa.c (md_begin): Disable "-R" option to fold
4710 textand data segments. Warn user "-R" is unsupported on the
4711 PA.
4712
4713 Thu Oct 28 12:36:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4714
4715 * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
4716 .align and .ALIGN directives.
4717
4718 * config/tc-hppa.c (pa_space): Do not report an error for a .space
4719 directive which does not define a "well-known" space and does
4720 not include a space number as an argument.
4721
4722 * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
4723 "defined", "loadable", "code_only" and "space_index" fields.
4724 (pa_def_spaces): Correct initialization of the "spnum", "defined",
4725 and "private" fields.
4726
4727 * write.h (struct fix): Add new tc_fix_data field for the various
4728 backends to attach machine dependent fixup information to.
4729 * write.c (fix_new_internal): Initialize new tc_fix_data field.
4730 * config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
4731 fx_next fields.
4732 (hppa_find_hppa_fix): Delete unnecessary function. Fix all
4733 callers to get HPPA fixup information from the tc_fix_data field
4734 in the GAS fixup.
4735 (hppa_fix_root): Delete unnecessary variable.
4736 (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.
4737
4738 * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
4739 function. Fix all callers.
4740 (subspace_dictionary_chain): Delete unused ssd_start_sym field.
4741
4742 * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
4743 if a particular fixup is adjustable.
4744 * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
4745 perform the real work.
4746
4747 * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
4748 of OBJ_XXX conditionals.
4749 (MAX_RELOC_EXPANSION): Likewise.
4750
4751 * config/tc-hppa.c (log2): Renamed from is_power_of_2. Fix all
4752 callers. Now returns log2 (N) for positive N which are an exact
4753 power of two or -1 for an error.
4754
4755 * config/tc-hppa.c (pa_callinfo): Range check values provided for
4756 ENTRY_GR, ENTRY_FR and ENTRY_SR. Properly adjust vaues before
4757 inserting them into the unwind table.
4758
4759 * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
4760 (hppa_gen_reloc_type): New object format dependent macro.
4761 (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
4762 conditional. The code can (and will) be shared between SOM & ELF
4763 formats in the near future.
4764 (cons_fix_new_hppa, md_apply_fix_1): Likewise.
4765 (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
4766 (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
4767 specific call.
4768
4769 * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
4770 to bfd_und_section.
4771
4772 * config/obj-elf.h (obj_elf_version): Add extern prototype.
4773
4774 * configure.in (hppa-*-bsd*): New configuration.
4775 BFD is always used for GAS generating SOM objects.
4776
4777 * write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
4778 adjustment is rejected by the target machine.
4779
4780 * config/tc-hppa.c (pa_big_cons): Delete function and its
4781 declaration. All callers changed to use pa_cons.
4782
4783 * write.c (fixup_segment): Fix indention and open/close brace
4784 problem.
4785
4786 From Pete Hoogenboom:
4787 * config/tc-hppa.c (md_atof): Return a NULL on success rather than
4788 an empty string.
4789
4790 * config/tc-hppa.c (pa_parse_space_stmt): Advance
4791 input_line_poitner when an invalid argument is encountered.
4792
4793 Thu Oct 28 13:09:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4794
4795 * config/tc-a29k.c (md_begin): When opcodes are mashed together in
4796 the table, require that the one without bit 0x1000000 set come
4797 first. Require further that it be case 'b' or 'P'. The a29k
4798 opcode table already meets these constraints.
4799 (machine_ip): When handling case 'i' or 'A', make sure that the
4800 appropriate opcode really exists by looking at the next entry in
4801 the opcode table.
4802
4803 Wed Oct 27 11:48:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4804
4805 * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
4806 fixups. Add 6 for long 7.3 case, 2 for short 7.2 case.
4807
4808 * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
4809 after a .ent directive.
4810
4811 * config/tc-mips.c (mips_ip): Handle '>' case (shift amount
4812 between 32 and 63 for double shift instruction). Do & 0x1f rather
4813 than % 32.
4814 (printInsn): Handle '>'.
4815
4816 Tue Oct 26 16:58:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4817
4818 * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
4819 number in the right place. Untested. Probably does not work for
4820 cross assembly. From cagney@cs.adelaide.edu.au (Andrew Cagney).
4821
4822 * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
4823 an illegal offset of 0 or -1.
4824
4825 * config/obj-elf.c (obj_elf_init_stab_section): Align .stab
4826 section to a longword boundary.
4827
4828 Tue Oct 26 10:24:31 1993 Ken Raeburn (raeburn@cygnus.com)
4829
4830 * Makefile.in (CHECKFLAGS): Pass down RUNTESTFLAGS.
4831
4832 From Jeff Law:
4833 * config/tc-hppa.c (tc_gen_reloc): ELF32_HPPA_R_ADDEND ->
4834 HPPA_R_ADDEND.
4835
4836 Mon Oct 25 14:06:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4837
4838 * config/tc-sparc.c (sparc_ip): Fix up membar argument handling.
4839
4840 Mon Oct 25 11:17:58 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4841
4842 * config/tc-sh.c (build_Mbytes): Write the relocs to the correct
4843 address. (md_assemble): Make error handling a bit more graceful.
4844 (md_apply_fix): Don't warn on non aligned displacement.
4845
4846 * config/tc-z8k.c (get_specific, built_bytes): Understand all the
4847 aspects of lda.
4848
4849 Mon Oct 25 10:20:31 1993 Ken Raeburn (raeburn@rover.cygnus.com)
4850
4851 * doc/Makefile.in (install-info): Use "$<*" so VPATH will find
4852 as.info* even if they're in $(srcdir) (e.g., for FSF
4853 distributions).
4854
4855 * write.c (write_relocs): For relocs that are pc_relative and
4856 pcrel_offset and not partial_inplace, adjust reloc->addend to
4857 compensate for a bfd_perform_relocation bug.
4858
4859 * config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
4860 * config/tc-sparc.c: Ditto.
4861 (tc_gen_reloc): Include fx_offset for pcrel fixups.
4862
4863 Sun Oct 24 16:49:00 1993 Jim Wilson (wilson@x1.cygnus.com)
4864
4865 * tc-mips.c (md_pseudo_table): Add dword pseudo op.
4866
4867 Fri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
4868
4869 * messages.c: replaced all variables called Format with 'format',
4870 for consistency throughout
4871
4872 * configure.in: handle mips*- instead of mips, mips*el for little
4873 endian configurations
4874
4875 Fri Oct 22 14:45:49 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4876
4877 * input-scrub.c (physical_input_file, logical_input_file,
4878 physical_input_line, logical_input_line): Made static.
4879 (as_where): Return current file name and line number, don't print
4880 them out.
4881 * messages.c (as_show_where): New static function. Other
4882 functions use it instead of as_where.
4883 (as_bad_internal): New static function.
4884 (as_bad): Use as_bad_internal.
4885 (as_bad_where): New function, like as_bad but taking a file name
4886 and line number.
4887 * as.h (as_bad_where): Declare.
4888 (as_where): Change prototype for new arguments.
4889 * write.h (fixS): Added fields fx_file and fx_line.
4890 * write.c (fix_new_internal): Save file and line number in fix.
4891 (fixup_segment): Use as_bad_where, not as_bad.
4892 * input-file.c (f_in, file_name): Made static.
4893 * cond.c (struct file_line): Just use file and line fields.
4894 (s_else): Use as_where and as_bad_where, not get_file_line and
4895 set_file_line.
4896 (get_file_line, set_file_line): Removed.
4897 * listing.c (listing_newline): Use as_where.
4898 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
4899 * config/obj-ecoff.c (add_file): Use as_where.
4900 * config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
4901 * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
4902 * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
4903
4904 Thu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com)
4905
4906 * config/tc-m68k.h: Don't define REGISTER_PREFIX or
4907 OPTIONAL_REGISTER_PREFIX if either is already defined.
4908
4909 * config/tc-m68k.c (m68k_ip): Delete some code in "#if 0".
4910
4911 * configure.in: Set bfd_gas for all sparc targets. Added facility
4912 for keeping or rejecting configurations still under development;
4913 default is to assume production environment, and reject configs
4914 still being worked on. Mark Elf configurations (except sparc and
4915 i386) as developmental. Deleted cases matching some generic names
4916 in favor of more specific names. (E.g., when we get Alpha
4917 support, we'll still only support VMS for Vax.)
4918
4919 * config/tc-sparc.h (md_end): New macro.
4920 * config/tc-sparc.c (md_end): Function deleted.
4921 (BFD_RELOC_*): Delete macros that used to help keep the non-bfd
4922 version compiling. All sparc targets will use bfd now.
4923 * tc.h (md_end): Don't declare if it's defined as a macro.
4924
4925 Changes from Jeff Law and Peter Hoogenboom:
4926
4927 * read.c (next_char_of_string): Limit octal character constants to
4928 three digits.
4929
4930 * config/tc-hppa.h: Major cleanup. Use GNU-style comments. Warn
4931 against placing additional object-file dependent code here. Warn
4932 against contaminating all of GAS with the internals of tc-hppa.c
4933 through inclusion of tc-hppa.h. Delete all forward declarations
4934 for functions only used within tc-hppa.c, likewise for structures,
4935 variables, and #defines. Try to group OBJ_ELF and OBJ_SOM
4936 conditional code in a few small places.
4937
4938 * config/tc-hppa.c: Major cleanup. Use GNU-style comments. Group
4939 structures, global variables, forward declarations together.
4940 Reduce (or in some cases eliminate) OBJ_ELF and OBJ_SOM
4941 conditional code -- try to group conditional code together
4942 into a few places. Make all functions and variables which
4943 are only used within tc-hppa.c static. PARAMize all functions.
4944 Add comments to functions. Delete unused functions, variables,
4945 #defines, etc. Delete unused members within structures. Delete
4946 ldil;ble hacks -- it is believed they were installed to work
4947 around old gas bugs. Avoid using mixed case for local
4948 functions, variables, and structures. Fix formatting problems
4949 not found by GNU-indent. Add FIXME notices for things which
4950 should be worked on the near future. Delete lots of old
4951 useless (1.36 PA-SOM) code.
4952
4953 * config/tc-hppa.c: (fix_new_hppa): Initialize the fx_r_type
4954 field of the fixS structure. Needed to build unwind
4955 descriptors correctly.
4956
4957 * write.c: (fixup_segment): Allow expressions such as
4958 sym1-sym2+const as long as sym2 is $global$.
4959
4960 * write.c (adjust_reloc_syms): Provide a hook so that a target
4961 cpu configuration can reject certain relocation reductions.
4962 * tc-hppa.h (tc_fix_adjustable): New macro. Only accept relocations
4963 which do not involve function symbols.
4964
4965 * config/tc-hppa.h: Reindent with GNU-indent. Delete references
4966 to OBJ_OSFROSE. Fix typos (OBJ_SOME -> OBJ_SOM). Delete unused
4967 STAB_FIXUP macro.
4968 * config/tc-hppa.c: Likewise.
4969
4970 * config/tc-hppa.c (md_apply_fix_1): Use elf_symbol_type, instead
4971 of elf32_symbol_type.
4972 (pa_export_args): Likewise.
4973 (elf_hppa_final_processing): Likewise.
4974 (pa_desc): Do not call obj_elf_desc. (Is pa_desc even needed
4975 anymore?)
4976 (hppa_tc_make_sections): Do not declare elf_get_symtab_map any
4977 ore.
4978
4979 * config/tc-hppa.c: (md_section_align): Align all sections to
4980 a multiple of the section alignment rather than always a
4981 multiple of 8.
4982
4983 * config/tc-hppa.c (hppa_tc_symbol): If the argument relocation
4984 bits are zero (eg they specify no relocations), then do not even
4985 bother adding their entries to thesymextn section.
4986
4987 Thu Oct 21 15:44:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4988
4989 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
4990 option, which is used by the SunOS make default .s.o rule.
4991
4992 Wed Oct 20 12:26:33 1993 Ken Raeburn (raeburn@rover.cygnus.com)
4993
4994 * config/tc-sparc.c (sparc_ip, label "immediate"): Convert relocs
4995 operating on upper 32 bits of immediate constants to lower-half
4996 relocs with adjusted constants.
4997
4998 Tue Oct 19 18:13:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4999
5000 * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable
5001 m68k_aout_machtype.
5002 * config/tc-m68k.c (omagic): Remove obsolete and unused variable.
5003 (m68k_aout_machtype): New variable, if OBJ_AOUT.
5004 (md_assemble): Initialize m68k_aout_machtype based on
5005 current_architecture, if OBJ_AOUT.
5006 (md_parse_option): Remove obsolete reference to omagic.
5007
5008 Thu Oct 14 16:51:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5009
5010 * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
5011 (s_option): Ignore .option O* and .option pic*.
5012 (s_ent): Skip whitespace between symbol and optional digit.
5013 (my_getSmallExpression): Handle ($xx) correctly: assume 0($xx).
5014
5015 * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape
5016 characters in state 6.
5017 * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are
5018 hexidecimal digits.
5019
5020 * config/tc-i386.c (md_apply_fix_1): Make cross segment calls work
5021 for ELF by hacking around bizarre bfd_perform_relocation behaviour
5022 that I don't dare change.
5023
5024 Thu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org)
5025
5026 * config/tc-i386.c: (md_begin): Do not zero static arrays. Don't
5027 call strchr for each character to see if it is a special char,
5028 instead add a second loop over special_chars. Set alignment
5029 of text, data and bss sections to 4.
5030 (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be
5031 used again.
5032 (reloc): Don't return 8 and 16 bit non-PC relative relocations on
5033 ELF, since the ELF object format does not have these type of
5034 relocations. Change the abort into as as_bad and return
5035 BFD_RELOC_NONE to silence compiler warnings.
5036 (md_assemble): Keep track of the instruction size. Allow white
5037 space between the $ and the constant for compatibility with older
5038 gases and other assemblers.
5039 (i386_operand): Skip spaces between $ and expression.
5040 (tc_gen_reloc): Don't allow anything but 32 bit relocations on
5041 ELF. Convert abort into an as_bad and assert into as_fatal.
5042
5043 Wed Oct 13 16:50:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5044
5045 * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: If
5046 sub_symbolP is in the current segment, convert to a PC-relative
5047 fixup and discard the symbol.
5048
5049 Wed Oct 13 14:00:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5050
5051 * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbol
5052 for st_StaticProc just like st_Proc.
5053
5054 * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUT
5055 so that OBJ_BOUT doesn't forget to adjust all the fragments in the
5056 .bss section.
5057
5058 Tue Oct 12 17:26:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5059
5060 * config/tc-mips.c: If OBJ_ELF, include elf/mips.h.
5061 (mips_regmask_frag): New static variable, if OBJ_ELF.
5062 (md_begin): If OBJ_ELF, create .reginfo section and set
5063 mips_regmask_frag to a frag.
5064 (mips_elf_final_processing): New function, if OBJ_ELF. Set
5065 mips_regmask_frag to register mask information.
5066 * config/tc-mips.h (elf_tc_final_processing): New macro, defined
5067 if OBJ_ELF.
5068
5069 Tue Oct 12 03:33:26 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5070
5071 * messages.c (as_fatal): Use myname when printing messages.
5072
5073 * config/tc-i960.c (md_begin): Use null pointer, not empty string,
5074 as initial "return" value in case hashing isn't needed.
5075
5076 * config/tc-a29k.c (md_atof): Return null, not empty string, on
5077 success.
5078 * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof),
5079 config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof),
5080 config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof),
5081 config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto.
5082
5083 Mon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5084
5085 fix for pr 3571
5086 * config/tc-h8300.c (get_specific): Special action if 8 bit
5087 address seen. (check_operand): Don't complain if truncating top
5088 bits of an 8 bit address. (build_bytes): Allow an immediate and
5089 an absolute in the same insn.
5090
5091 Mon Oct 11 17:18:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5092
5093 * write.c (write_contents): Don't crash if seginfo is NULL.
5094
5095 * config/obj-ecoff.c (ecoff_frob_file): Write out register masks
5096 by modifying .reginfo section, not by directly modifying BFD
5097 backend data.
5098
5099 Mon Oct 11 14:11:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5100
5101 * config/ho-sunos.h: remove extern time declaration
5102
5103 Mon Oct 11 16:14:43 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5104
5105 * messages.c (as_fatal): Do mention that it's the assembler that
5106 got the fatal error.
5107
5108 Fri Oct 8 14:09:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5109
5110 * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to
5111 hold register masks.
5112 (md_begin): Initialize them to zero.
5113 (append_insn): Update mips_gprmask and mips_cprmask. Also add
5114 register variables pinfo and prev_pinfo.
5115 * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare.
5116 * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask
5117 and cprmask from mips_gprmask and mips_cprmask.
5118
5119 * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF.
5120 * config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF.
5121 (various): Change all references to GP references to apply if
5122 GPOPT, not if OBJ_ECOFF.
5123 (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata
5124 instead of .rdata. If OBJ_ELF, set section flags for .rodata and
5125 .sdata sections.
5126 (s_frame, s_loc, s_mask): Comment out entire functions, rather
5127 than just body. They're not used anyhow.
5128 * configure.in: Set cpu_type to mips for mips*. Accept
5129 mips-*-elfl* and mips-*-elf*.
5130
5131 Thu Oct 7 18:36:29 1993 Michael Meissner (meissner@osf.org)
5132
5133 * config/obj-elf.c (obj_elf_common): Allow the alignment field to
5134 not be specified.
5135
5136 Wed Oct 6 13:01:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5137
5138 * config/tc-mips.c (cons_fix_new_mips): New function. Turn
5139 BFD_RELOC_64 into BFD_RELOC_32.
5140 * config/tc-mips.h (TC_CONS_FIX_NEW): Define.
5141 (cons_fix_new_mips): Declare.
5142
5143 Changes to let cons handle bignums like general expressions.
5144 * expr.h (expressionS): New field X_unsigned.
5145 * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for
5146 unary minus case.
5147 (expr) Fix typo resultP to right if missing operand. Set
5148 X_unsigned to 1 when building new expression.
5149 * read.c (potable): Make "octa" and "quad" call cons, not
5150 big_cons.
5151 (cons): Handle bignums. If given an O_constant (small integer) to
5152 fill a big space, turn it into a bignum.
5153 (parse_bitfield_cons): Set X_unsigned field.
5154 (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons):
5155 Removed.
5156 * read.h (big_cons): Remove prototype.
5157 * symbols.c (resolve_symbol_value): Don't give a warning if a
5158 symbol in expr_section can not be resolved.
5159 (S_SET_VALUE): Clear X_unsigned.
5160 * write.c (write_object_file): If resolve_symbol_value failed on a
5161 symbol we are writing out, give a warning.
5162 * config/tc-h8500.c (parse_reglist): Set X_unsigned.
5163 * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to
5164 call pa_cons, not pa_big_cons.
5165 (pa_big_cons): Remove.
5166 * config/tc-hppa.h (pa_big_cons): Remove declaration.
5167 * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons,
5168 not big_cons.
5169
5170 Tue Oct 5 10:53:36 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5171
5172 * doc/as.texinfo (Copying): new node, to handle the recent changes
5173 in the texinfo/gpl.texinfo file
5174
5175 Mon Oct 4 17:10:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5176
5177 * read.c (big_cons): Handle "0" correctly.
5178
5179 * config/tc-mips.c (md_begin): Set target_big_endian correctly.
5180
5181 Mon Oct 4 15:37:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5182
5183 * config/tc-m68k.c (m68k_ip): Mode 7.3 operand using PC should
5184 have pc-relative fixup.
5185 (md_parse_option): Move "-k" case down near "-pic" case.
5186
5187 * configure.in: Alphabetize list of cpu type alternatives. Enable
5188 OS values of "linux*elf*" and "linux*coff*" to select those
5189 formats, with linux emulation. Don't bother checking for upper-
5190 or mixed-case versions of "ose".
5191
5192 Thu Sep 30 11:05:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5193
5194 * config/z8k.c (md_pseudo_table): add "unseg".
5195
5196 Wed Sep 29 16:15:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5197
5198 * config/m88k-opcode.h (m88k_opcodes): correct a few mistakes
5199 found while extending the dissassembler.
5200
5201 Tue Sep 28 12:02:04 1993 Stan Shebs (shebs@rtl.cygnus.com)
5202
5203 * configure.in: Split i386 LynxOS out from other coff targets,
5204 add a specific Lynx emulation.
5205 Add m68k LynxOS target.
5206 * config/tc-i386.c: Define specific Lynx target format.
5207 * config/tc-m68k.c: Define specific Lynx target format.
5208 * config/te-lynx.h: New file.
5209
5210 * config/obj-coffbfd.h: Don't set TARGET_FORMAT to be
5211 "coff-{i386,m68k}" if TARGET_FORMAT already defined.
5212 (INIT_STAB_SECTION): Define.
5213 * config/obj-coffbfd.c: Include <time.h>.
5214 (write_object_file): Look for .stab sections and call
5215 adjust_stab_section.
5216 (adjust_stab_section): New function, fills in the first symbol
5217 of a stab section with number of symbols and string table size.
5218 (obj_coff_init_stab_section): New function, creates the initial
5219 symbol for a stab section.
5220
5221 Mon Sep 27 15:21:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5222
5223 * config/atof-vax.c (md_atof): Return null on success instead of
5224 empty string.
5225 * config/atof-tahoe.c (md_atof): Ditto.
5226 * read.c (float_cons): Expect a null pointer for success, not an
5227 empty string.
5228
5229 * hash.c (hash_insert, hash_jam, hash_grow): Return null pointer
5230 on success, instead of empty string. All callers changed.
5231
5232 * config/tc-vax.c: Use PARAMS in declarations.
5233 (vip_op): Use NULL instead of empty string for success in error
5234 and warning fields.
5235
5236 Sun Sep 26 23:45:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5237
5238 * expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of two symbols
5239 in different defined segments.
5240
5241 * write.c (relax_segment): Localize "aim" variable. If
5242 DIFF_EXPR_OK, don't impose checks on symbol segment types.
5243 (fixup_segment) [DIFF_EXPR_OK]: If sub_symbolP is in the current
5244 segment, convert to a PC-relative fixup and discard the symbol.
5245
5246 * config/tc-m68k.c (flag_want_pic): New variable, mostly ignored.
5247 (md_parse_option) [TE_SUN3]: Set it for "-k".
5248 (m68k_ip): Generate proper fixup for mode 7.3.
5249 * config/tc-m68k.h (DIFF_EXPR_OK): Define.
5250
5251 Sat Sep 25 05:08:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5252
5253 * config/tc-m68k.c (struct m68k_incant, getone, gettwo): Moved
5254 earlier in the file.
5255 (insop, add_exp): Now defined as functions, for readability.
5256 (insop): Now takes two arguments; callers changed.
5257
5258 Fri Sep 24 12:37:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5259
5260 * config/tc-m88k.c (get_o6): new function.
5261 (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg,
5262 get_vec9, getval, get_pcr, calcop, match_name): make static and
5263 prototype.
5264 (s_file): remove extraneous forward decl.
5265 (md_begin): add const to retval decl.
5266 (calcop): cope with instructions without arguments. Handle 'o'
5267 type argument, the o6 field of the prot insn.
5268 (md_estimate_size_before_relax): return a dummy value.
5269
5270 * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
5271 in bits 10 through 7. flt.[dxs]s requires an r register in the
5272 second argument. New instruction lda.x. New instruction muls
5273 (alias for mul).
5274
5275 Fri Sep 24 13:43:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5276
5277 * Makefile.in (distclean): Recurse like clean.
5278 * doc/Makefile.in (distclean): New target.
5279
5280 * config/tc-mips.c (md_begin): Set BFD architecture and machine
5281 based on MIPS ISA level.
5282
5283 Thu Sep 23 17:58:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5284
5285 * as.c (main): "exhausted", not "exhuasted".
5286
5287 * struc-symbol.h (struct symbol): Add sy_used_in_reloc field.
5288 * write.c (adjust_reloc_syms): Set sy_used_in_reloc.
5289 (write_object_file): Never strip symbols with sy_used_in_reloc
5290 set.
5291
5292 * config/obj-elf.c (obj_elf_section): Rewrote to handle both
5293 Solaris and SVR4 style .section pseudo-ops.
5294 (obj_elf_ident): Set SEC_READONLY for .comment section.
5295 * config/tc-sparc.c (md_apply_fix): If this is ELF, and we're
5296 generating a reloc, don't apply a fix.
5297
5298 Thu Sep 23 13:16:58 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5299
5300 * config/obj-coffbfd.c (relax_align): Now static.
5301
5302 Mon Sep 20 19:23:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5303
5304 * read.c (get_stab_string_offset): Make non-static. Make
5305 arguments const. Don't align strings to 4 byte boundaries.
5306 * read.h: Declare get_stab_string_offset.
5307 * config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as
5308 SEC_LOAD for progbits section.
5309 (obj_elf_init_stab_section): New function.
5310 (adjust_stab_sections): Add casts to avoid warnings.
5311 * config/obj-elf.h (INIT_STAB_SECTION): Call
5312 obj_elf_init_stab_section.
5313 (OBJ_PROCESS_STAB): Removed definition.
5314
5315 Fri Sep 17 18:12:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5316
5317 * config/obj-elf.h (S_GET_SIZE): Define.
5318 (obj_frob_forward_symbol): Define.
5319 * config/tc-i386.c (line_comment_chars): Initialize in all cases.
5320
5321 Thu Sep 16 14:23:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5322
5323 * tc.h: Declare tc_gen_reloc differently depending upon
5324 RELOC_EXPANSION_POSSIBLE.
5325 * config/obj-elf.c (obj_elf_section): Only set flags when first
5326 creating the section.
5327
5328 Wed Sep 15 12:15:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5329
5330 * config/tc-mips.c (append_insn): Don't swap a trap instruction
5331 with a branch.
5332
5333 Tue Sep 14 13:31:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5334
5335 * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
5336 set previous_section and previous_subsection and then call s_data
5337 and s_text, respectively.
5338 (obj_pseudo_table): Add data and text.
5339 (obj_elf_section): Add SEC_LOAD to default initialization of
5340 flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as
5341 SEC_ALLOC for "alloc" string. Don't bother trying to find the
5342 section; just use subseg_new.
5343
5344 * read.c (change_to_section): Removed. This is now done by
5345 subseg_new.
5346 (get_stab_string_offset): Rearranged somewhat. Create the section
5347 using subseg_new. Store the string index in seg_info, rather than
5348 in a static variable. Force the first string to be empty. Use
5349 frag_more rather than FRAG_APPEND_1_CHAR.
5350 (s_stab_generic): Rewrote.
5351 * subsegs.h (segment_info_type): Added stabu union.
5352 * subsegs.c (subseg_new): Initialize stab_string_size to 0.
5353 * config/obj-aout.c: Don't include aout/stab_gnu.h.
5354 (obj_aout_stab, obj_aout_desc): Removed.
5355 (obj_pseudo_table): Removed desc and stabX entries.
5356 * config/obj-bout.c: Same changes as config/obj-aout.c.
5357 * config/obj-bout.h (S_SET_TYPE): Define.
5358 (tc_bout_fix_to_chars): Declare.
5359 * config/obj-coff.c (obj_coff_stab): Removed.
5360 (obj_pseudo_table): Removed desc and stabX entries.
5361 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
5362 * config/obj-coffbfd.c (current_stab_symbol): Removed.
5363 * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
5364 n_other, n_desc and n_value fields.
5365 (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
5366 (MAKE_STAB_SYMBOL): Removed.
5367 * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
5368 Changed arguments and removed parsing code.
5369 (obj_pseudo_table): Removed stabX entries.
5370 * config/obj-ecoff.h (ecoff_stab): Declare.
5371 (OBJ_PROCESS_STAB): Define.
5372 * config/obj-elf.c: Don't include aout/stab_gnu.h.
5373 (obj_elf_stab, obj_elf_xstab, obj_elf_desc,
5374 elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
5375 Removed.
5376 (obj_pseudo_table): Removed desc, stabX and xstabs entries.
5377 (obj_elf_version): Use subseg_new, not bfd_make_section. Don't
5378 set SEC_LOAD for .note section.
5379 (adjust_stab_sections): Get frag pointer from seg_info, rather
5380 than looking through frags.
5381 * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
5382 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
5383 Define.
5384 * config/obj-vms.c (obj_aout_stab): Removed.
5385 (obj_pseudo_table): Removed stabX entries.
5386 * config/obj-vms.h (S_SET_TYPE): Define.
5387
5388 * as.h: Declare listing.
5389 * read.c: Don't declare listing.
5390 (emit_expr): Cast fix_new_exp argument.
5391 (parse_bitfield_cons): Correct printf format.
5392 * symbols.c (symbol_new): Add cast to avoid warning.
5393 * write.h: Declare text_last_frag and data_last_frag.
5394 * config/obj-bout.c (obj_bout_line): Added dummy argument.
5395 * config/obj-coffbfd.c: Add some casts to avoid warnings.
5396 * config/tc-a29k.c: Likewise.
5397 * config/tc-i960.c: Likewise. Also fully bracket structure
5398 initializations, fix printf formats, and remove unused variables.
5399
5400 Mon Sep 13 16:48:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5401
5402 * read.c (s_desc): Only compile and use if S_SET_DESC is defined.
5403 * struc-symbol.h: Declare verify_symbol_chain and
5404 verify_symbol_chain_2 even if not SYMBOLS_NEED_BACKPOINTERS.
5405 * symbols.c (verify_symbol_chain): Removed useless expression.
5406 * write.c (headers, the_object_file): Only use if not
5407 BFD_ASSEMBLER and not BFD.
5408 (fixup_segment, cvs_frag_to_fill): Only use if BFD_ASSEMBLER or
5409 not BFD.
5410 (merge_data_into_text): Only use if BFD_ASSEMBLER or (not BFD and
5411 not OBJ_AOUT).
5412 * write.h: Declare relax_segment.
5413 * config/obj-coffbfd.c (stack_pop, stack_push, stack_init): Made
5414 static.
5415 (stack_top): Commented out, since it's not used.
5416 Fixed up pseudo-op functions to take an ignored int argument.
5417 (size_section): Added default BAD_CASE to switch.
5418 Changed bzero calls to memset.
5419 * config/obj-coffbfd.h (S_IS_LOCAL): Call strchr on S_GET_NAME
5420 (s), not on s itself.
5421 * config/tc-a29k.c (s_use): Take ignored int argument. Only
5422 define if OBJ_COFF is not defined.
5423 * config/tc-i386.c: (fits_in_signed_byte, smallest_imm_type): Make
5424 argument signed again.
5425 * config/tc-m68k.c (s_bss, s_even, s_proc): Take ignored int
5426 argument.
5427 (m68k_ip): Fully bracket initialization of archs.
5428 Correct several formats for __LINE__ to be %d rather than %s.
5429 (init_table): Fully bracket initialization.
5430 Cast values larger than 0x7f assigned to fr_opcode to char.
5431
5432 * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
5433 Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
5434 section name, and subseg_set always takes a segT. Changed all
5435 callers as appropriate.
5436 * config/obj-coffbfd.c (change_to_section): Renamed to
5437 obj_coff_add_segment. Corrected. Made callers use subseg_new.
5438 * config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
5439 Define.
5440
5441 Mon Sep 13 13:15:03 1993 Doug Evans (dje@canuck.cygnus.com)
5442
5443 * config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
5444
5445 Fri Sep 10 11:22:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5446
5447 * config/obj-elf.h (S_SET_SIZE): Actually set the size.
5448
5449 Gcc lint.
5450 * Added a number of casts to function calls.
5451 * app.c (do_scrub_begin), as.c (main), expr.c (integer_constant,
5452 operand, expr), read.c (read_begin, HANDLE_CONDITIONAL_ASSEMBLY,
5453 read_a_source_file, s_align_bytes, demand_empty_rest_of_line,
5454 ignore_rest_of_line, big_cons, is_it_end_of_statement, s_ignore),
5455 read.h (is_name_beginner, is_part_of_name), config/obj-elf.c
5456 (obj_elf_section), config/tc-i386.c (parse_register),
5457 config/tc-sparc.c (isoctal, s_proc): Cast char
5458 array indices to unsigned char.
5459 * app.c (process_escape): Make static. Add prototype. Change
5460 argument from char to int.
5461 * as.c: Include output-file.h for prototypes. Comment out unused
5462 function got_sig.
5463 * Makefile.in (as.o): Depend on output-file.h.
5464 * as.h (BAD_CASE): Cast val argument to long, and use %ld.
5465 (pseudo_typeS): Add prototype to poc_handler field.
5466 (print_version_id): Add prototype.
5467 (xmalloc, xrealloc): Change size arguments to unsigned long.
5468 (do_scrub_next_char): Add prototypes for function arguments.
5469 (had_errors, had_warnings, scrub_from_file): Remove duplicate
5470 declarations.
5471 * atof-generic.c (atof_generic): Make size variables unsigned.
5472 * cond.c (ignore_input): Removed unused local variable ptr.
5473 * expr.c (floating_constant, integer_constant): Make static. Add
5474 prototypes.
5475 * flonum-copy.c (flonum_copy): Make size variables unsigned.
5476 * frags.h: Add prototype for frag_init.
5477 * hash.h, hash.c: Change hash values from char * to PTR, make hash
5478 strings const, make returned error strings const char *. Added
5479 prototypes for functions.
5480 * input-file.h, input-file.c (input_file_buffer_size): Return
5481 unsigned int.
5482 * input-scrub.c (buffer_length): Make unsigned.
5483 (input_scrub_push, input_scrub_pop): Make static.
5484 * listing.c (list_symbol_table): Cast sprintf argument to unsigned
5485 long and use %lx. Print name of segment rather than address of
5486 structure.
5487 (listing_list, listing_title): Change argument to int.
5488 (listing_eject, listing_flags, listing_psize): Add int argument.
5489 * listing.h: Corresponding declaration changes.
5490 * obj.h (obj_emit_symbols): Rename prototype argument to avoid
5491 shadowing.
5492 * read.h: Change get_absolute_expression prototype to return
5493 offsetT. Add prototype for next_char_of_string. Various
5494 prototype changes.
5495 * read.c: Remove prototype for next_char_of_string.
5496 (pobegin): Make errtxt const. Make new_length, tmp_len and num
5497 unsigned.
5498 (s_abort, s_align_ptwo, s_comm, s_data, s_app_line, s_fill,
5499 s_globl, s_lsym, s_org, s_set, s_text, s_desc): Add int argument.
5500 Change all callers.
5501 (s_comm): Change temp from valueT to offsetT. Cast to long when
5502 printing and use %ld (only for error messages anyhow).
5503 (s_long, s_int): Remove unused functions.
5504 (cons): Change argument to int.
5505 (emit_expr): Use %lx when printing longs.
5506 (get_absolute_expression): Return offsetT, not long.
5507 (get_stab_string_offset): Comment out unless
5508 SEPARATE_STAB_SECTIONS.
5509 (s_stab_generic): Remove unused offset. Define seg_is_new only
5510 if SEPARATE_STAB_SECTIONS. Use toP only in local block.
5511 * struc-symbol.h (verify_symbol_chain_2): Add prototype.
5512 * symbols.c: Remove nested comment.
5513 (symbol_new): Rename value to valu.
5514 (colon): Use %ld and cast to long in error message.
5515 * symbols.h: Remove duplicate verify_symbol_chain declaration.
5516 * tc.h: Remove unused md_emit_relocations declaration.
5517 (tc_gen_reloc): Add declaration.
5518 * write.c (cvt_frag_to_fill): Change first argument name depending
5519 on BFD_ASSEMBLER.
5520 (write_relocs): Remove unused offset, frags. Remove tc_gen_reloc
5521 declarations. Make n unsigned.
5522 (write_contents): Remove unused i, n, relocs, fixp. Rename frags
5523 to f to avoid shadowing.
5524 (write_object_file): Define fragP only if not BFD_ASSEMBLER or not
5525 WORKING_DOT_WORD. Remove unused keep. Only declare punt and
5526 punt_it if they will be used. Make i and n unsigned.
5527 (fixup_segment): Cast to long and use %ld in error message.
5528 * xmalloc.c (xmalloc, xrealloc): Make size argument unsigned.
5529 * config/obj-aout.h: Remove nested comment. Add prototype for
5530 obj_aout_frob_symbol.
5531 (obj_aout_line, obj_aout_desc): Add int argument.
5532 * config/obj-ecoff.c: Changed build routines to use an unsigned
5533 offset.
5534 (add_string): Make len unsigned long.
5535 (obj_ecoff_stab): Use %lu in error message.
5536 * config/obj-elf.c (obj_elf_common): Comment out unused label
5537 allocate_bss.
5538 (obj_elf_frob_symbol): Return 0 (currently broken).
5539 (obj_elf_desc, obj_elf_version, obj_elf_size, obj_elf_type,
5540 obj_elf_ident, obj_elf_weak, obj_elf_local, obj_elf_common,
5541 obj_elf_line, obj_elf_previous): Add int argument.
5542 (obj_elf_write_symbol_p): Make static.
5543 * config/obj-elf.h (obj_elf_write_symbol): Add prototype.
5544 * config/tc-hppa.h: Remove declarations of functions declared in
5545 read.h.
5546 * config/tc-i386.c (ENCODE_RELAX_STATE): Cast to relax_substateT.
5547 (s_bss): Add int argument.
5548 (fits_in_signed_byte, smallest_imm_type): Make argument unsigned.
5549 (dummy): Remove unused function.
5550 (md_assemble): Rename local o to op to avoid shadowing.
5551 (tc_gen_reloc): Rename local reloc to rel to avoid shadowing.
5552 * config/tc-m68k.c (s_data1, s_data2): Add int argument.
5553 * config/tc-mips.c (mips_ip, md_apply_fix): Cast to long and use
5554 %ld in error messages.
5555 * config/tc-sparc.c: Remove duplicate declarations.
5556 (getExpression): Rewrite condition to avoid empty conditional
5557 body.
5558 (s_reg, s_proc, s_reserve, s_common, s_seg, s_xword): Add int
5559 argument.
5560
5561 Thu Sep 9 17:10:00 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5562
5563 Changes from Jeff Law:
5564
5565 * config/tc-hppa.c (md_assemble): Fix typo.
5566 (pa_ip): Delete unused variables and labels. Do not check for
5567 unsigned values being < 0, it can't happen.
5568 (is_same_frag): Return a value in recursive call case.
5569 (pa_callinfo): Delete unused variables and labels.
5570 (pa_comm): Likewise.
5571 (pa_copyright): Likewise.
5572 (pa_export): Likewise.
5573 (pa_import): Likewise.
5574 (pa_param): Likewise.
5575 (pa_space): Likewise.
5576 (pa_subspace): Likewise.
5577
5578 Thu Sep 9 15:05:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5579
5580 * read.c (get_stab_string_offset, s_stab_generic): If
5581 BFD_ASSEMBLER, call subseg_set rather than subseg_new.
5582
5583 Wed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5584
5585 * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
5586 default flag values.
5587
5588 Tue Sep 7 10:22:52 1993 Stan Shebs (shebs@rtl.cygnus.com)
5589
5590 * read.c: (change_to_section): Don't include body if not MANY_SECTIONS.
5591
5592 * read.c: (s_stab, s_xstab, s_desc): New functions to parse
5593 various stab-related directives.
5594 * read.h: (s_stab, s_xstab, s_desc): New function prototypes.
5595 * write.c: (merge_data_into_text): Fix ifdef tangle.
5596 * config/obj-coffbfd.c (current_stab_symbol): Fake symbol
5597 for stab reader to use.
5598 * config/obj-coffbfdh.h (obj_symbol_type): Added fields for
5599 stab reader, macros to access.
5600
5601 Fri Sep 3 16:44:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5602
5603 * config/obj-elf.h (elf_symbol): No longer special-cased on
5604 sparcv9, since elf_symbol_type is now independent of size.
5605
5606 * config/obj-elf.h (elf_symbol): Fixed name of elf_symbol_type.
5607
5608 * config/tc-hppa.h (struct default_subspace_dict, struct
5609 default_space_dict): Field "sort" is now unsigned char.
5610
5611 * config/tc-hppa.c (pa_def_subspaces, pa_def_spaces): Align
5612 columns for easier reading.
5613 (bcmp, index): Deleted USG-specific definitions. Should be dealt
5614 with in ho-*.h, or in libiberty. Changed mention of index to
5615 strchr.
5616 (label_symbolP, label_symbol_defined, callinfo_found,
5617 within_entry_exit, exit_processing_complete, within_procedure,
5618 pa_def_subspaces, pa_def_spaces, pa_pseudo_op_moves_pc,
5619 label_symbols_rootP, pa_get_label, pa_label_is_defined,
5620 pa_undefine_label): Now static.
5621 (movers): Now const, in addition to pointing to const data.
5622 * config/tc-hppa.h (label_symbolS_rootP, pa_get_label,
5623 pa_label_is_defined, pa_undefine_label, pa_pseudo_op_moves_pc):
5624 Delete declarations.
5625
5626 Merged more changes from Jeff Law and Pete Hoogenboom:
5627
5628 * config/tc-hppa.c (pa_def_subspaces, pa_def_subspaces): Remove
5629 entries for .stab and .stabstr.
5630
5631 * config/obj-elf.c: (elf_stab_symbol_string): Set the
5632 SEC_LOAD attribute for the .stabstr section.
5633 (obj_elf_stab_generic): Set the SEC_LOAD attribute for the
5634 .stab section.
5635 (obj_elf_stab_generic): Change '#if 1' to '#if 0'.
5636 (obj_elf_stab_generic): Incorrect byte count on call to
5637 md_number_to_chars function.
5638
5639 * config/tc-hppa.c (hppa_tc_symbol): Static functions need
5640 argument relocation bits too.
5641
5642 * config/tc-hppa.c (pa_stringer): Correctly handle escaping
5643 characters which should appear unaltered in the output string (for
5644 example an escaped double-quote).
5645
5646 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Always
5647 initialize name.
5648 (pa_parse_neg_cmpsub_cmpltr): Likewise.
5649 (pa_parse_nonneg_add_cmpltr): Likewise.
5650 (pa_parse_neg_add_cmpltr): Likewise.
5651
5652 * config/tc-hppa.h (parse_cons_expression_hppa): Remove prototype
5653 for now.
5654 (cons_fix_new_hppa): Likewise.
5655 * config/tc-hppa.c (md_apply_fix): Fix type of valp to match
5656 prototype.
5657
5658 * config/tc-hppa.c: Include libhppa.h.
5659
5660 * config/tc-hppa.h: Delete extern declarations of functions
5661 found in libhppa.h.
5662
5663 * config/tc-hppa.c (pa_space): Rework to avoid unwanted #ifdef
5664 OBJ_ELF conditionals.
5665 * config/tc-hppa.h (LOCAL_LABEL): Correctly identify local labels
5666 on the PA.
5667
5668 Thu Sep 2 10:43:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5669
5670 * config/tc-mips.c (macro_build): Accept 'z', and ignore it.
5671 (macro): Use "z,s,t" for div instructions to match corresponding
5672 change in opcode table.
5673 (mips_ip): Added 'z'--must be zero register.
5674
5675 Wed Sep 1 15:56:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5676
5677 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Declare
5678 tc_gen_reloc correctly.
5679
5680 * configure.in: Use "case" instead of "if" when possible. Rewrote
5681 Makefile editing to reduce work done. Treat "hppa*" as "hppa".
5682
5683 Wed Sep 1 12:19:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5684
5685 * config/obj-coffbfd.c (obj_coff_section): add 'd' as an alias for
5686 section type of data. 'd' seems to be used for m88k.
5687
5688 Wed Aug 25 22:33:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5689
5690 * config/tc-mips.c (mips_align, s_stringer, s_cons, s_float_cons,
5691 s_mips_space): Set insn_label to NULL to avoid changing it at the
5692 next .align statement.
5693 (append_insn): Don't swap jal with instruction that sets the
5694 register that jal sets.
5695
5696 Wed Aug 25 16:15:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5697
5698 * configure.in: recognize m88110.
5699
5700 Wed Aug 25 13:37:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5701
5702 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
5703 * config/tc-hppa.c (pa_build_unwind_subspace): SEC_ALLOC should
5704 not be on for .hppa_unwind.
5705 (md_pseudo_table): .PARAM and .param are valid pseudo-ops for GAS.
5706 (pa_param): New function to handle .PARAM directives.
5707 (pa_ip): Pass "isbranch" argument down to pa_parse_*_compltr
5708 functions. Handle '|' for movb; allow movb,n.
5709 (pa_parse_nonneg_cmpsub_cmpltr): Delete old useless
5710 version. Handle cases where no completer exists for
5711 comb,n or addb,n.
5712 (pa_parse_neg_cmpsub_cmpltr): Handle cases where no
5713 completer exists for comb,n or addb,n. Make logic
5714 mirror that of pa_parse_nonneg_cmpsub_cmpltr.
5715 (pa_parse_nonneg_add_cmpltr): Likewise.
5716 (pa_parse_neg_add_cmpltr): Likewise.
5717 * tc-hppa.h (pa_param): Declare.
5718
5719 Tue Aug 24 15:41:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5720
5721 * config/tc-hppa.c (hppa_tc_make_symextn_section): Now static.
5722 Added forward declaration.
5723
5724 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
5725
5726 * config/obj-elf.c (elf_frob_file): Arguments were incorrect on
5727 call to elf_tc_make_sections.
5728 (obj_elf_version): A .note section shouldn't have the SEC_ALLOC
5729 attribute.
5730
5731 * config/tc-hppa.c (hppa_tc_make_sections): Add some processing to
5732 handle symbol extension sections.
5733
5734 * config/tc-hppa.c (pa_build_symextn_section): New function to
5735 create a symbol extension section.
5736 (pa_export_args): Make call to pa_build_symextn_section.
5737 (hppa_tc_symbol, hppa_tc_make_sections,
5738 hppa_tc_make_symextn_section): New functions.
5739 * config/tc-hppa.h: Update elf_tc_symbol and elf_tc_make_sections
5740 macros.
5741
5742 * read.c (emit_expr): Place check for TC_CONS_FIX_NEW in the
5743 BFD_ASSEMBLER branch as well.
5744
5745 * config/tc-hppa.h: If ELF is the target object format, define
5746 some ELF- and hppa-specific types and constants.
5747
5748 * config/tc-hppa.c (getExpression): Fix a typo.
5749
5750 * read.c (read_a_source_file): Use TC_EQUAL_IN_INSN to determine
5751 if a `=' is part of an instruction.
5752 (read_a_source_file): Handle case where end-of-line markers are
5753 also used within instructions.
5754 * config/tc-hppa.h (TC_EQUAL_IN_INSN, TC_EOL_IN_INSN): Define.
5755
5756 * config/tc-hppa.c (md_apply_fix_1): Keep relocations for
5757 out-of-range branches/'calls using "bl" or calls which may need
5758 argument relocation stubs. Do not need/keep relocations for
5759 conditional branches.
5760 (elf_hppa_final_processing): Fix calculation of function size.
5761
5762 * config/obj-elf.c (obj_elf_version): Mark .note section as
5763 READONLY.
5764
5765 * config/tc-hppa.c (parse_cons_expression_hppa): Pass exp, not the
5766 address of exp, to expression.
5767 (pa_build_unwind_subspace): Turn SEC_HAS_CONTENTS flag on.
5768 (md_apply_fix_1): Delete unwanted comments.
5769 (process_exit): Symbols marking the end of a function are always
5770 BSF_LOCAL.
5771
5772 * config/tc-hppa.c: Include elf32-hppa.h from BFD tree.
5773 (pa_space): Declare and initialize gdb_section.
5774
5775 * config/obj-elf.c (elf_frob_file): Change
5776 elf_tc_final_processing_hook to elf_tc_final_processing.
5777
5778 * config/tc-hppa.c (fix_new_hppa): Fix argument list to match
5779 argument type declarations.
5780 (getExpression): Fix typo.
5781 (pa_export_args): Change elf_symbol_type to elf32_symbol_type.
5782 (elf_hppa_final_processing): Likewise. Name changed from
5783 elf_hppa_final_processing_hook.
5784 (start_symbol_root, start_symbol_last): Deleted.
5785
5786 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION): Fix typo.
5787
5788 * config/tc-hppa.h: Replace "symbolS" with "struct symbol" to
5789 avoid changing include ordering.
5790
5791 * config/tc-hppa.c (pa_ip, case 'y'): Handle just like 't'.
5792
5793 Mon Aug 23 12:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5794
5795 * config/tc-mips.c (set_at): Added unsignedp argument. Use
5796 load_register.
5797 (set_at_unsigned): Removed; changed callers to use set_at.
5798 (load_register): Removed unused ip argument. Changed callers.
5799 (append_insn): Don't swap branch and branch likely.
5800 (macro_build): Handle 'u'.
5801 (load_register): Handle 64 bit constants.
5802 (macro): Added M_DABS, removed M_ABSU. Numerous changes to
5803 support 64 bit constants.
5804 (mips_ip): Use hex constants in range checks for clarity.
5805 (md_number_to_chars): Support 8 byte values.
5806
5807 Fri Aug 20 16:50:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5808
5809 * config/tc-m88k.h: updated copyrights.
5810 (TC_CONS_RELOC): declare to be RELOC_32.
5811
5812 Fri Aug 20 11:16:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5813
5814 * config/tc-mips.c (mips_isa): New static variable.
5815 (md_begin): Initialize mips_isa based on TARGET_CPU. Don't sanity
5816 check macros. Set text alignment and GP size here.
5817 (md_assemble): Don't set text alignment and GP size here.
5818 (append_insn): Don't insert NOPs for load delays if mips_isa >= 2.
5819 Use the right mask and shift for WRITE_FPR_T and WRITE_FPR_S. Add
5820 a NOP after a branch likely.
5821 (mips_emit_delays): Don't insert NOPS for load delays if mips_isa
5822 >= 2.
5823 (macro): Support r6000 and r4000 macros.
5824 (mips_ip): Check insn ISA level against mips_isa before using it.
5825 Added 'x' case for ignored register.
5826 (md_parse_option): Handle -mipsN and -mcpu=XX.
5827
5828 Fri Aug 20 01:26:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5829
5830 * config/tc-i386.c (md_pseudo_table) [OBJ_ELF]: Handle ".zero".
5831
5832 Thu Aug 19 12:15:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5833
5834 * config/tc-sparc.c (s_local): Function moved and renamed...
5835 * config/obj-elf.c (obj_elf_local): ...to here.
5836 * config/tc-sparc.c (md_pseudo_table), config/obj-elf.c
5837 (obj_pseudo_table): Move handling of ".local".
5838
5839 * tc.h (md_parse_option): Don't declare if defined as a macro.
5840
5841 * config/tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as
5842 BFD_RELOC_NONE.
5843 (md_parse_option): New macro, converted from function.
5844 * config/tc-i386.c (md_parse_option): Function deleted.
5845 (comment_chars) [OBJ_ELF]: Include "/".
5846 (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/".
5847 (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler
5848 warning.
5849 (md_assemble, md_estimate_size_before_relax, md_create_long_jump):
5850 Call reloc for fix_new type, or use correct enumerator, instead of
5851 always using NO_RELOC.
5852 (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for
5853 tests for valid section.
5854 (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start
5855 address.
5856 (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with
5857 symbol, compensate for location of reloc.
5858 (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define
5859 to return zero.
5860
5861 Wed Aug 18 16:51:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5862
5863 * config/obj-elf.c: Undef NO_RELOC before including aout/aout64.h.
5864 (obj_elf_weak): New function.
5865 (obj_pseudo_table): Handle ".weak".
5866 (obj_elf_section): If section directive includes a string, ignore
5867 it for now. Accept "progbits" flag.
5868 (obj_elf_type): Accept `@' before flag name.
5869
5870 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Get rid of `if(1)'
5871 condition.
5872 (fixup_segment) [BFD_ASSEMBLER]: Use bfd_is_com_section, rather
5873 than checking for bfd_com_section directly.
5874 (fixup_segment): Simplify range check.
5875 (fixup_segment) [OBJ_COFF && TC_I960]: Simplify cpp condition
5876 test.
5877
5878 * symbols.h (S_SET_WEAK): Declare.
5879 * symbols.c (S_SET_WEAK): New function.
5880 (S_SET_EXTERNAL, S_CLEAR_EXTERNAL): Don't bother with BSF_EXPORT,
5881 it's not a separate flag any more. Clear BSF_WEAK.
5882
5883 * read.c (potable): Treat "string" like "asciz".
5884
5885 Wed Aug 18 15:30:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5886
5887 * config/tc-mips.c (append_insn): Don't swap branch instructions
5888 if .set nobopt or .set volatile.
5889 (gp_reference): .lit8 and .lit4 are accessed via the GP register.
5890 (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD.
5891 (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point.
5892 * config/obj-ecoff.c: Renamed some variables to avoid shadow
5893 warnings.
5894
5895 Mon Aug 16 14:16:02 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5896
5897 * config/obj-coff.h (S_IS_COMMON): add missing backslash
5898
5899 * configure.in (z8k-*-{coff,sim}): use coffbfd for this target
5900
5901 Thu Aug 12 11:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5902
5903 * config/tc-mips.c (mips_ip): Suggested by
5904 davidj@ICSI.Berkeley.EDU (David Johnson): Don't accept symbolic
5905 names for 'E' and 'G' argument types (coprocessor registers) and
5906 don't warn if $1 is used on the coprocessor.
5907 (macro): Handle M_{L,S}WC{0,2,3}_AB correctly.
5908
5909 Mon Aug 9 12:09:14 1993 Doug Evans (dje@canuck.cygnus.com)
5910
5911 * read.c (emit_expr): Use BFD_RELOC_16 for 2-byte values.
5912 * config/tc-sparc.c (md_apply_fix, tc_gen_reloc): Handle
5913 BFD_RELOC_16.
5914 * config/tc-sparc.h (WORKING_DOT_WORD): Define.
5915
5916 Mon Aug 9 13:36:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5917
5918 * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER is
5919 defined or BFD is not.
5920 (relax_and_size_all_segments): Declare local variable fragP.
5921
5922 Fri Aug 6 15:22:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5923
5924 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_32): Fill in
5925 bytes with real values, not zeros.
5926
5927 Fri Aug 6 10:57:59 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5928
5929 * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested)
5930 targets, using ecoff and mips-big.
5931
5932 * config/tc-mips.c (mips_ip): From davidj@ICSI.Berkeley.EDU (David
5933 Johnson): Added case for 'C' for coprocessor instruction codes.
5934
5935 Thu Aug 5 13:08:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5936
5937 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): Fill in
5938 bytes with real values, not zeros.
5939 (md_pseudo_table): Call cons for .uaxword.
5940
5941 * config/obj-elf.c (obj_pseudo_table): Handle ".8byte".
5942
5943 * read.c (emit_expr): Use BFD_RELOC_64 for 8-byte expressions.
5944
5945 * write.c (write_object_file): Test DEBUG_SYMS instead of DEBUG
5946 for verifying symbol chain.
5947 (merge_data_into_text, relax_and_size_all_segments): New
5948 functions, split out from write_object_file.
5949
5950 Tue Aug 3 15:43:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5951
5952 * config/obj-elf.c (obj_elf_stab_generic, in disabled code): If
5953 debug section is new, allocate an extra 12 bytes at its start. If
5954 ".stabs" type is N_SO, fill in filename symbol field of that first
5955 entry. Return early if "goof", to simplify later code slightly.
5956 (adjust_stab_sections): New function.
5957 (elf_frob_file): Apply adjust_stab_sections to each section.
5958
5959 * config/obj-elf.c (obj_elf_section, obj_elf_previous): No longer
5960 static.
5961 * config/obj-elf.h (obj_elf_section, obj_elf_previous): Declare.
5962 * config/tc-sparc.c (md_pseudo_table): Call them for "pushsection"
5963 and "popsection", and call cons for "uaword" and "uahalf".
5964
5965 * config/obj-elf.c (obj_elf_version): Use English in error
5966 messages.
5967
5968 Tue Aug 3 11:29:06 1993 Ian Lance Taylor (ian@cygnus.com)
5969
5970 * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets the
5971 swapping routines and external structure sizes via the
5972 ecoff_backend information. No longer includes coff/mips.h.
5973
5974 Mon Aug 2 17:35:48 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5975
5976 * config/obj-ecoff.c (get_tag): Save tag name in permanent memory
5977 and in hash_ptr->string.
5978
5979 * app.c (do_scrub_next_char): Reset state to 0 after .appline if
5980 file name is not seen.
5981
5982 Mon Aug 2 11:51:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5983
5984 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): New case,
5985 parallel to BFD_RELOC_32.
5986 (tc_gen_reloc): Accept BFD_RELOC_64.
5987
5988 Thu Jul 29 22:21:28 1993 Ian Lance Taylor (ian@cygnus.com)
5989
5990 * write.c: Don't use short int in a prototype.
5991
5992 * expr.c (operand): Make return value simply depend on contents of
5993 returned expression.
5994
5995 Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5996
5997 * configure.in: sparc*-aout and sparc*-vxworks are BFD assemblers
5998
5999 Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6000
6001 * config/ho-sunos.h: remove some old function decls that conflict
6002 w/ ANSI, and which weren't needed anyway
6003
6004 Wed Jul 28 16:34:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6005
6006 * config/obj-elf.h (obj_frob_symbol): Renamed from tc_frob_symbol,
6007 and disabled since it breaks Ian's new symbol-value code.
6008
6009 * expr.c (integer_constant): Accept more digits if BFD64.
6010
6011 Wed Jul 28 11:30:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6012
6013 * config/tc-m68k.c (m68k_ip): If we have a normal constant when we
6014 expect a bignum, turn it into a bignum. Output extra zeroes
6015 before a short bignum, rather than after.
6016
6017 Tue Jul 27 15:54:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6018
6019 * symbols.c (symbol_new): Conditionalize verify_symbol_chain call
6020 on DEBUG_SYMS, not DEBUG.
6021 (symbol_remove): Likewise.
6022 (symbol_insert): Likewise.
6023
6024 Tue Jul 27 08:45:05 1993 Ian Lance Taylor (ian@cygnus.com)
6025
6026 * config/tc-mips.c (mips_optimize): New static variable.
6027 (append_insn): If mips_optimize == 0, always insert NOP
6028 instructions. If mips_optimize < 2, don't swap branches.
6029 (md_parse_option): If -Ox or -gx, set mips_optimize accordingly.
6030
6031 Mon Jul 26 18:02:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
6032
6033 * Makefile.in (clean): if testsuite does not exist, then skip it.
6034
6035 Fri Jul 23 14:13:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6036
6037 * config/tc-mips.c (prev_insn_unreordered,
6038 prev_prev_insn_unreordered): New static variables.
6039 (append_insn): Don't swap branch instruction if
6040 prev_prev_insn_unreordered (see comment).
6041 (mips_no_prev_insn): Clear the unreordered variables.
6042 (s_mipsset): When turning on reordering, set the unreordered
6043 variables.
6044
6045 Fri Jul 23 13:09:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6046
6047 * config/obj-elf.c (obj_elf_section): Sections ".init" and ".fini"
6048 are also magic, and have special default flag settings.
6049 (obj_elf_frob_symbol): Since the return value from this function
6050 isn't used, don't bother calling obj_elf_write_symbol_p, since it
6051 doesn't accomplish anything else.
6052
6053 * config/tc-sparc.c (md_section_align): Round up section size only
6054 for a.out format.
6055
6056 * symbols.c: Don't define DEBUG by default.
6057
6058 Thu Jul 22 12:09:41 1993 Ian Lance Taylor (ian@cygnus.com)
6059
6060 * write.c (fix_new_exp): Handle a O_uminus expression.
6061
6062 * expr.c (expr): Don't let absolute_section override
6063 undefined_section for the return value.
6064
6065 * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a
6066 pseudo-op with a poc_handler field of NULL, ignore it and treat it
6067 as an instruction instead.
6068 * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL
6069 poc_handler field.
6070
6071 * config/tc-h8500.c (md_begin): Use a local variable when
6072 initializing md_relax_table to avoid warnings about modifying a
6073 supposedly const data structure.
6074
6075 Thu Jul 22 10:58:51 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
6076
6077 * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER
6078 is defined.
6079
6080 Wed Jul 21 17:32:02 1993 Fred Fish (fnf@deneb.cygnus.com)
6081
6082 * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.
6083 * configure.in (case ${generic_target}): Add i[34]86-*-sysv4*
6084 case to set obj_format=elf. Must go before i386-*-sysv* case that
6085 sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and
6086 *-*-solaris case, and move to before *-sysv* case that wants to
6087 set obj_format to coff.
6088 * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to
6089 'exp->X_op'.
6090 * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for
6091 BFD_ASSEMBLER case.
6092
6093 Wed Jul 21 12:47:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6094
6095 * config/obj-aout.c: Include aout/aout64.h.
6096 (obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor
6097 symbol, so that BFD doesn't tamper with the type.
6098
6099 * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
6100 up opcodes as pseudo-ops even if they don't start with '.'.
6101 * config/tc-m88k.h (NO_PSEUDO_DOT): Define.
6102 * config/tc-m88k.c (md_assemble): Removed special pseudo-op
6103 handling.
6104 (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
6105 Output the low 16 bits for RELOC_HI16, not the high 16 bits.
6106 * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
6107 r_offset field of the reloc to the fixup offset.
6108 (fixup_segments): If TC_M88K, don't warn about fixup overflows.
6109 * doc/as.texinfo: Minor updates.
6110
6111 Tue Jul 20 19:28:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6112
6113 * Extensive changes to permit symbols to contain any expression
6114 type and to delay the computation of the expression until the
6115 value is actually needed. This permits setting symbols to values
6116 calculated based on object code size. Expressions were changed to
6117 no longer be in a section, to stop the overloading of segment and
6118 expression type that previously occurred.
6119
6120 * as.c (big_section, pass1_section, diff_section, absent_section):
6121 Removed.
6122 (expr_section): Added (used for dummy symbols which hold
6123 intermediate expression values).
6124 (perform_an_assembly_pass): Create expr_section, do not create the
6125 sections now removed.
6126 * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and
6127 SEG_DIFFERENCE. Added SEG_EXPR.
6128 (SEG_NORMAL): Corresponding changes.
6129 * subsegs.c (seg_name, subsegs_begin): Changed accordingly.
6130 * write.c (write_object_file): Ditto.
6131 * config/obj-aout.c (seg_N_TYPE): Ditto.
6132 * config/obj-bout.c (seg_N_TYPE): Ditto.
6133 * config/obj-coff.c (seg_N_TYPE): Ditto.
6134 * config/obj-coffbfd.c (seg_N_TYPE): Ditto.
6135 * config/obj-vms.c (seg_N_TYPE): Ditto.
6136
6137 * expr.h (operatorT): Moved in from expr.c, added some values.
6138 (expressionS): Added X_op field, removed X_seg field; renamed
6139 X_subtract_symbol to X_op_symbol.
6140 * expr.c: Extensive changes to assign expression types rather than
6141 sections and to simplify the parsing.
6142 * write.c (fix_new_internal): New static function.
6143 (fix_new): Removed sub_symbol argument.
6144 (fix_new_exp): New function, takes expression argument.
6145 * write.h: Prototype changes for fix_new and fix_new_exp.
6146 * cond.c (s_if): Changed accordingly.
6147 * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons,
6148 parse_repeat_cons, get_segmented_expression,
6149 get_known_segmented_expression, get_absolute_expression): Ditto.
6150 * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE):
6151 Ditto.
6152 * write.c (write_object_file): Ditto.
6153 * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto.
6154 * config/obj-coffbfd.c (obj_coff_def, obj_coff_val,
6155 obj_coff_endef, yank_symbols): Ditto.
6156 * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto.
6157 * config/tc-a29k.c (md_assemble, parse_operand, machine_ip,
6158 print_insn, md_operand): Ditto.
6159 * config/tc-h8300.c (parse_exp, colonmod24, check_operand,
6160 do_a_fix_imm, build_bytes): Ditto.
6161 * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist,
6162 get_specific, check, insert, md_convert_frag): Ditto.
6163 * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa,
6164 md_assemble, pa_ip, getExpression, getAbsoluteExpression,
6165 evaluateAbsolute, pa_build_unwind_subspace, pa_entry,
6166 process_exit): Ditto.
6167 * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative,
6168 is_complex): Ditto.
6169 * config/tc-i386.c (pe, md_assemble, i386_operand,
6170 md_estimate_size_before_relax, md_create_long_jump): Ditto.
6171 * config/tc-i860.c (md_assemble, getExpression, print_insn):
6172 Ditto.
6173 * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag,
6174 get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc,
6175 i960_handle_align): Ditto.
6176 * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op,
6177 subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1,
6178 md_estimate_size_before_relax, md_create_long_jump, get_num):
6179 Ditto.
6180 * config/tc-m88k.c (md_assemble, get_imm16, get_pcr,
6181 md_create_short_jump, md_create_long_jump): Ditto.
6182 * config/tc-mips.c (md_assemble, append_insn, gp_reference,
6183 macro_build, macro, my_getExpression): Ditto. Also removed
6184 get_optional_absolute_expression; just use get_absolute_expression
6185 instead.
6186 * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif,
6187 fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto.
6188 * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto.
6189 * config/tc-sh.c (parse_exp, check, insert, md_convert_frag):
6190 Ditto.
6191 * config/tc-sparc.c (md_assemble, sparc_ip, getExpression,
6192 print_insn): Ditto.
6193 * config/tc-tahoe.c (struct top, md_estimate_size_before_relax,
6194 tip_op, md_assemble): Ditto.
6195 * config/tc-vax.c (seg_of_operand, md_assemble,
6196 md_estimate_size_before_relax, md_create_long_jump): Ditto.
6197 * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
6198
6199 Tue Jul 20 12:17:16 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6200
6201 * configure.in: i386-lynx is the same as i386-coff
6202
6203 Mon Jul 19 15:21:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
6204
6205 * config/obj-elf.c (obj_elf_previous): New function.
6206 (previous_section, previous_subsection): New vars.
6207 (obj_elf_section): Save current place in case DWARF code wants us
6208 to pop back to it. Handle unquoted section name as well as quoted
6209 section name. Don't crash on invalid strings.
6210 (obj_pseudo_table): Handle new pseudos "previous", "2byte", and
6211 "4byte".
6212
6213 * config/obj-elf.h: Don't include struc-symbol.h.
6214 (obj_elf_frob_symbol): Declare arg as struct symbol *.
6215
6216 * tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Local labels can start with
6217 "L" or "_.L_".
6218
6219 * write.c (write_relocs): New function, split off from
6220 write_contents. Use memset instead of bzero.
6221 (write_object_file): Apply write_relocs to each section before
6222 applying write_contents.
6223
6224 * read.c (read_begin): Call obstack_begin with values closer to 1K
6225 multiples.
6226 (read_a_source_file, big_cons, float_cons): Use memcpy instead of
6227 bcopy.
6228
6229 Mon Jul 19 14:30:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6230
6231 * config/tc-m68k.c (m68k_ip_op): Don't decrement strend when
6232 calculating opP->isiz; this permits the expression size to be
6233 determined as well, later on.
6234
6235 * expr.c (clean_up_expression): Don't cancel the subtraction of
6236 undefined symbols.
6237
6238 * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R,
6239 switch to text section rather than data section.
6240
6241 Mon Jul 19 12:35:39 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6242
6243 * config/tc-m68k.c (m68k_ip, case AINDX): Add 6 to operand
6244 expression (to take the pc-rel instruction itself into account)
6245 before using the expression, instead of after.
6246
6247 Fri Jul 16 08:56:04 1993 Ian Lance Taylor (ian@cygnus.com)
6248
6249 * read.c (float_cons): Simplified parsing logic. If
6250 REPEAT_CONS_EXPRESSIONS is defined, accept a repeat count.
6251
6252 * symbols.c (colon): Rather than a special case for TC_HPPA,
6253 use new macro tc_frob_label.
6254 * config/tc-hppa.h (tc_frob_label): Define.
6255
6256 * config/tc-mips.c: Many changes to support simple assembler
6257 optimization.
6258 (insn_label, prev_insn, prev_prev_insn, dummy_opcode,
6259 prev_insn_valid, prev_insn_frag, prev_insn_where,
6260 prev_insn_fixp, prev_insn_is_delay_slot): New static
6261 variables.
6262 (insn_uses_reg, mips_no_prev_insn, mips_emit_delays,
6263 mips_align, s_stringer, s_mips_space): New static functions.
6264 (mips_define_label): New global function.
6265 (md_pseudo_table): For "ascii", "asciz", "asciiz", call
6266 s_stringer. Changed argument to float_cons from 0 or 1 to 'f'
6267 or 'd'. For "space" call s_mips_space.
6268 (md_begin): Call mips_no_prev_insn.
6269 (append_insn): Only insert necessary NOP instructions.
6270 (macro): Call mips_emit_delays before setting mips_noreorder.
6271 Increment and decrement mips_noreorder rather than using
6272 save_reorder_condition. Don't bother to use noreorder in
6273 M_L_DOB and M_L_DAB, since append_insn will not insert a NOP.
6274 (md_atof): Handle floating point numbers correctly for both
6275 big and little endian targets.
6276 (s_align, s_cons): Call mips_align rather than frag_align.
6277 (s_change_seg, s_cons): Call mips_emit_delays.
6278 (s_float_cons): Let float_cons do the work.
6279 (s_mipsset): Call mips_emit_delays when setting noreorder.
6280 * config/tc-mips.h (tc_frob_label): Define to be
6281 mips_define_label.
6282
6283 * config/obj-ecoff.c (ecoff_build_symbols, ecoff_build_procs,
6284 ecoff_frob_files): Consistently use S_GET_VALUE rather than
6285 bfd_asymbol_value. Warn if taking difference of symbols in
6286 different segments.
6287
6288 Thu Jul 15 11:51:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6289
6290 * config/obj-ecoff.c (ecoff_frob_file): Discard all open scopes,
6291 with a warning.
6292
6293 * config/obj-coffbfd.c (fixup_segment): If TC_M88K, don't adjust
6294 by md_pcrel_from if we are relocating against a symbol (we still
6295 need md_pcrel_from for a PC relative relocation within the same
6296 file).
6297 * config/tc-m88k.c (md_pcrel_from): Corrected return value.
6298 (omagic): Removed unused variable.
6299
6300 * Preliminary support for m88k-coff.
6301 * configure.in (m88k-*-coff*): New target. Use coffbfd and
6302 m88kcoff.
6303 * config/m88kcoff.mt: New file.
6304 * read.c (lex_type): New macro LEX_AT to set lex type of '@'.
6305 (pseudo_set): Handle difference of symbols in different fragments
6306 by saving the entire expression as the value of the symbol.
6307 * symbols.c (resolve_symbol_value): Resolve difference
6308 expressions.
6309 * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
6310 "sdef" as a synonym for "def".
6311 * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
6312 TARGET_FORMAT.
6313 (S_IS_LOCAL): Any symbol which includes \001 in the name is local.
6314 * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
6315 m88k port up to date, and to add COFF support.
6316
6317 Wed Jul 14 15:09:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6318
6319 * Removed sy_forward and replaced it with an undefined expression
6320 as the value of a symbol.
6321 * struc-symbol.h (struct symbol): Removed sy_forward field. Added
6322 sy_resolved and sy_resolving single bit fields.
6323 * symbols.c (symbol_new): Don't initialize sy_forward field.
6324 (resolve_symbol_value): New function to adjust symbol value by
6325 fragment address, using recursion to resolve forward symbols.
6326 * symbols.h: Added prototype for new function.
6327 * read.c (pseudo_set): Set symbolP->sy_value to an undefined
6328 expression rather than setting symbolP->sy_forward.
6329 * write.c (write_object_file): Use resolve_symbol_value on
6330 symbols, keeping the common case (the old behaviour) inline.
6331 * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward
6332 handling (subsumed by write.c change).
6333 * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set
6334 sy_value rather than sy_forward.
6335 * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check
6336 expression segment rather than sy_forward.
6337 (yank_symbols): Use resolve_symbol_value.
6338 (crawl_symbols): Removed extra pass over symbols.
6339 * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c,
6340 config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over
6341 symbols which handled sy_forward; use resolve_symbol_value
6342 instead.
6343 * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol):
6344 Define.
6345 * config/obj-elf.c (obj_elf_stab_generic): Check expression
6346 segment rather than sy_forward.
6347 * config/obj-vms.c (VMS_Check_For_Main): Don't initialize
6348 sy_forward; do initialize sy_resolved and sy_resolving.
6349 * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward.
6350
6351 * Changes to keep a full expression as the value of a symbol, not
6352 just a longword:
6353 * struc-symbol.h: New field sy_value.
6354 * as.h: Include expr.h before struc-symbol.h.
6355 * expr.h: Use struct symbol rather than symbolS.
6356 * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value
6357 of sy_value field; compile unconditionally, not just if
6358 BFD_ASSEMBLER.
6359 * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally.
6360 * write.c (write_object_file): Set BFD symbol value to gas symbol
6361 value.
6362 * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h,
6363 config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h
6364 (S_GET_VALUE, S_SET_VALUE): Removed macro definitions.
6365 * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed.
6366 * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use
6367 S_GET_VALUE rather than ost_entry.n_value.
6368 * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c
6369 (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars),
6370 config/obj-coffbfd.c (symbol_to_chars): Get value to write out
6371 using S_GET_VALUE--don't assume it is already set.
6372 * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas
6373 symbol value.
6374 * config/obj-vms.c (various): Don't assign directly to
6375 S_GET_VALUE; use S_SET_VALUE instead.
6376
6377 Wed Jul 14 09:35:23 1993 Doug Evans (dje@canuck.cygnus.com)
6378
6379 * configure.in: Make sparc64-*-aout* use bfd gas.
6380
6381 * configure.in: Recognize h8300h.
6382
6383 Tue Jul 13 12:09:44 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
6384
6385 * config/tc-h8500.c (line_comment_chars): Add hash.
6386 (parse_exp, skip_colonthing, build_bytes): Add support for
6387 R_H8500_HIGH16 relocation type.
6388
6389 Mon Jul 12 11:15:34 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6390
6391 * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an
6392 attribute name. Handle `execinstr' attribute.
6393
6394 Mon Jul 12 07:22:28 1993 Ian Lance Taylor (ian@cygnus.com)
6395
6396 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
6397 there is another alternative for the instruction.
6398
6399 Fri Jul 9 17:31:34 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
6400
6401 * doc/as.texinfo: updates for H8/300H
6402
6403 Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
6404
6405 * config/tc-i960.c (md_create_short_jump, md_create_long_jump,
6406 md_number_to_chars, md_section_align): Adjusted to use valueT,
6407 addressT, to match tc.h.
6408
6409 Thu Jul 8 14:15:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6410
6411 * config/tc-sparc.c (s_common): Revamp to handle both syntaxes,
6412 independent of format.
6413
6414 Thu Jul 8 07:25:25 1993 Doug Evans (dje@canuck.cygnus.com)
6415
6416 * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h.
6417
6418 Wed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
6419
6420 * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross
6421 build; also recognize h8300-*-coff
6422
6423 Wed Jul 7 10:21:24 1993 Ian Lance Taylor (ian@cygnus.com)
6424
6425 * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
6426 core just because somebody uses a label before it is defined.
6427
6428 * config/mips-opcode.h: Moved to opcode/mips.h.
6429 * config/tc-mips.c: Include opcode/mips.h rather than
6430 mips-opcode.h.
6431 (append_insn): An extra NOP is only needed after instructions
6432 which set HI or LO, not after instructions which read it.
6433 (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
6434 (macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
6435 * config/tc-mips.h (struct mips_opcode): Don't define.
6436 * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
6437 Set to $(srcdir)/../include/opcode/mips.h.
6438
6439 Get the MIPS assembler up to speed with other gas changes:
6440
6441 * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
6442 Removed; don't change the symbol value.
6443 (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
6444 bfd_asymbol_value rather than S_GET_VALUE to include section
6445 vma in symbol value.
6446 (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
6447 doesn't output them. Set the vma of sections.
6448 * config/obj-ecoff.h: Don't define obj_frob_symbol.
6449 * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
6450 longer necessary.
6451 (various): use valueT rather than long.
6452
6453 Wed Jul 7 08:33:30 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6454
6455 * config/tc-sparc.h (ENV64): Define for v9.
6456
6457 * config/tc-sparc.c (s_xword): For numbers, call big_cons.
6458 (sparc_ip, md_apply_fix, tc_gen_reloc): Handle some sparc64
6459 relocation types.
6460 (md_number_to_chars): Handle 8-byte value.
6461
6462 * config/obj-elf.h (elf_symbol): For v9, use 64-bit symbol type.
6463
6464 * as.h (valueT): Typedef moved here.
6465 * struc-symbol.h (valueT): ...from here.
6466 * write.c (write_object_file): Locals from_addr, to_addr,
6467 table_addr are now addressT. Supply prototype for bfd_alloc for
6468 now.
6469 (fixup_segment): Local add_number is now valueT. Correct some
6470 range-checking bugs.
6471 (relax_align): Type `int' should be sufficient for the exponent.
6472 (fix_new): Argument offset is type offsetT. Locals size and
6473 newsize are type valueT.
6474 * write.h (struct fix): Fields fx_offset and fx_addnumber are now
6475 type valueT.
6476 (fix_new): Fix prototype.
6477 * symbols.c (symbol_new): Symbol value is type valueT.
6478 (S_SET_VALUE, S_GET_VALUE): Likewise.
6479 (S_IS_*): Specify int return type explicitly.
6480 * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed
6481 prototypes.
6482 * read.c (s_comm): Values read are type valueT.
6483 * expr.h (expressionS): Field X_add_number is an offsetT.
6484 * tc.h (md_create_long_jump, md_create_short_jump,
6485 md_section_align): Addresses are now type addressT.
6486 (md_number_to_chars, md_apply_fix): Pass value as valueT.
6487 * config/tc-i386.c (md_create_short_jump, md_create_long_jump,
6488 md_number_to_chars, md_section_align): Adjusted.
6489 * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make
6490 gcc shut up.
6491 (md_create_short_jump, md_create_long_jump, md_number_to_chars,
6492 md_section_align): Adjusted.
6493
6494 * config/tc-sparc.c (s_reserve): Permit use for other than a.out
6495 format.
6496 (s_common): Handle Solaris-2 version.
6497
6498 * config/ho-generic.h (free): Returns void if __STDC__.
6499
6500 * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file,
6501 elf_file_symbol): Declare.
6502
6503 * expr.c (floating_constant, integer_constant): Now return void.
6504
6505 Thu Jul 1 12:13:43 1993 Ian Lance Taylor (ian@cygnus.com)
6506
6507 * configure.in: Match on sparc*-fujitsu-none rather than
6508 sparclite*-fujitsu-none.
6509
6510 Wed Jun 30 11:12:02 1993 Ian Lance Taylor (ian@cygnus.com)
6511
6512 * read.c (cons): Conditionalize parsing of expression. Move
6513 putting value into object file into separate function. Separate
6514 out MRI and WANT_BITFIELDS cases into separate functions.
6515 (emit_expr): New function to write data into object file.
6516 Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
6517 processor types.
6518 (parse_bitfield_cons): New function to parse bitfield expressions
6519 as used by i960 assemblers. Only compiled if
6520 BITFIELD_CONS_EXPRESSIONS is defined.
6521 (parse_mri_cons): New function to parse MRI style strings. Only
6522 compiled if MRI is defined.
6523 (parse_repeat_cons): New function to parse repeat counts. Only
6524 compiled if REPEAT_CONS_EXPRESSIONS is defined.
6525 * read.h (emit_expr): Added declaration of new function.
6526 * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
6527 * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
6528 * config/tc-hppa.c (parse_cons_expression_hppa): New function to
6529 parse a HPPA expression, rather than special case in cons
6530 function.
6531 (cons_fix_new_hppa): New function to emit an HPPA fixup, rather
6532 than special case in emit_expr function.
6533 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
6534 Define to use new functions from tc-hppa.c.
6535 * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
6536 (WANT_BITFIELDS): Removed; now obsolete.
6537 * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
6538 * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
6539 NS32K fixup, rather than special case in emit_expr function.
6540 * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
6541 cons_fix_new_ns32k. Also use PARAMS rather than checking
6542 __STDC__.
6543 * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.
6544
6545 * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
6546 Don't core dump if gas has no information about a section.
6547
6548 Wed Jun 30 06:21:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6549
6550 * config/tc-sparc.c (md_begin): If sparcv9 is defined, reset
6551 current_architecture to v9 automatically.
6552
6553 * config/tc-sparc.h (TARGET_FORMAT): Use elf64-sparc for v9.
6554
6555 * config/tc-sparc64.h, config/tc-sparc64.c: New files.
6556 * configure.in: Use sparc64 cpu files for v9, and default to elf
6557 format.
6558
6559 * write.c (relax_and_size_seg): Always fully process a section.
6560 Section size is last frag's (vm)address plus its size. If no
6561 relocations are present, force SEC_RELOC flag clear.
6562 (dump_section_relocs): New debugging routine.
6563 (adjust_reloc_syms): New routine, broken out from write_contents.
6564 Don't adjust relocs that are already relative to section symbol.
6565 Look for obj_fix_adjustable macro to know what else to skip,
6566 instead of obj_write_symbol. Look for section symbol stored in
6567 section information.
6568 (write_object_file): Map adjust_reloc_syms over all sections.
6569 (write_contents): Clear SEC_RELOC flag if no relocations are
6570 found.
6571
6572 * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to
6573 keep it quiet.
6574
6575 * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER.
6576
6577 Fri Jun 25 14:42:53 1993 K. Richard Pixley (rich@sendai.cygnus.com)
6578
6579 * Makefile.in (all, dvi, info, install-info, clean-info): do not
6580 echo recursion lines.
6581 (install-info, clean-info): collapse into the dvi and info rule.
6582
6583 Fri Jun 25 10:47:24 1993 Doug Evans (dje@canuck.cygnus.com)
6584
6585 * config/tc-sparc.c (sparc_ip): Remove support for %d/%q fp regs.
6586 All fp regs are now specified as %f.
6587 (priv_reg_table): fpq -> fq.
6588
6589 Fri Jun 25 03:43:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
6590
6591 * as.h (strstr): Disable declaration for now.
6592 (fprint_value, sprint_value): Declare.
6593
6594 * subsegs.c (subseg_new_rest): Use memset to clear new frag.
6595 (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields.
6596
6597 * expr.c (expr_part): Made sanity checks a.out-specific.
6598 (expr): Disabled sanity checks.
6599
6600 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for
6601 section symbol.
6602 * subsegs.c (subseg_change): Initialize section symbol pointer
6603 when setting up a new section.
6604
6605 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata
6606 field back at gas symbol structure.
6607
6608 * symbols.c (colon): Cast obstack_next_free value to char* before
6609 doing arithmetic on it.
6610 * subsegs.c (subseg_new_rest): Likewise.
6611 * as.h (frag_now_fix): Likewise.
6612
6613 * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of
6614 calling bfd_make_section_old_way directly, and call subseg_set
6615 instead of subseg_change. Now returns void.
6616 (obj_elf_write_symbol): Only check local symbols for now.
6617 (elf_stab_symbol): Now static and void, and disabled until it
6618 works completely.
6619 (obj_elf_size): For expression values, fail silently for now.
6620 (obj_symbol_new_hook): Do nothing.
6621
6622 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22
6623 relocation.
6624 (s_local) [OBJ_ELF]: New function.
6625 (md_pseudo_table) [OBJ_ELF]: Call it for "local".
6626 (s_common): Rearrange to handle Solaris .common pseudo, which may
6627 sometimes use bss space instead of common.
6628 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field.
6629
6630 Thu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6631
6632 * configure.in: set host config to hpux for hppa*-hp-hpux
6633
6634 Thu Jun 24 13:35:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
6635
6636 * app.c (app_pop, app_push): Fix bug reported by Chris Arthur.
6637
6638 Tue Jun 22 01:04:23 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
6639
6640 * subsegs.c (subseg_new): Don't special-case a.out -R flag here.
6641 * config/obj-aout.c (s_sect): Do it here.
6642
6643 * as.h (BAD_CASE): Don't make some lame compilers think we want
6644 substitution inside strings.
6645
6646 * as.c (print_version_id): New function, split off from main.
6647 (main): Call it.
6648 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id
6649 for -V. Ignore -Q and -s options for now.
6650
6651 Mon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6652
6653 * Makefile.in: make installation & builds work again for crosses
6654
6655 Sun Jun 20 18:18:26 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
6656
6657 * listing.c (list_symbol_table): Rewrite to print wide (>32 bits)
6658 symbol values correctly.
6659
6660 * write.c (write_object_file): Deleted unused variables.
6661 (fixup_segment): Use sprint_value.
6662
6663 * messages.c (sprint_value, fprint_value): New routines.
6664
6665 * config/obj-elf.c (elf_stab_symbol): Now returns void.
6666 (obj_elf_stab_generic): Fix typo in logic.
6667
6668 * Makefile.in (INCLUDES): Look in ../bfd for bfd.h.
6669
6670 * as.h (addressT, offsetT): New types, using BFD types if
6671 available.
6672 (relax_addressT, struct frag): Use them.
6673 * struc-symbol.h (valueT, struct broken_word): Likewise.
6674
6675 * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
6676 * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
6677
6678 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
6679
6680 * Makefile.in: canonicalize install.sh; for use within
6681 this directory (and subdirs)
6682
6683 Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
6684
6685 * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
6686 specified, should have both S1 and S2 fields identical
6687 If only finding the problem was as fast as fixing the bug !!!!
6688
6689 Tue Jun 15 16:01:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6690
6691 * write.c (write_contents): Do write out non-loadable sections.
6692 Debug sections can fall in this category.
6693
6694 * read.c (s_app_file): Call elf_file_symbol for ELF files.
6695 * config/obj-elf.c (elf_file_symbol): New function.
6696
6697 * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_...,
6698 added argument to specify section base name.
6699 (obj_elf_stab_generic): Renamed from ..._stab. New argument
6700 specifies section base name.
6701 (obj_elf_stab): New function, calls obj_elf_stab_generic with
6702 ".stab" as section base name.
6703 (obj_elf_xstab): New function, calls obj_elf_stab_generic.
6704 (obj_elf_type): Handle "object". Use bitwise-or to merge in
6705 symbol flags rather than simply replacing, so global/local flags
6706 are preserved.
6707 (obj_elf_ident): Rewrite.
6708
6709 Tue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6710
6711 * Makefile.in: remove parentdir support; use INSTALL_XFORM
6712
6713 Wed Jun 9 11:26:07 1993 Ian Lance Taylor (ian@cygnus.com)
6714
6715 * config/tc-i386.c (md_pseudo_table): .align uses a power of two
6716 for any a.out target, not just Linux and 386BSD.
6717 * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out
6718 target.
6719
6720 Mon Jun 7 13:33:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6721
6722 * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They
6723 don't exist or duplicate other inclusions.
6724
6725 * config/tc-vax.h (NO_RELOC): Define.
6726
6727 Mon Jun 7 09:55:03 1993 Doug Evans (dje@canuck.cygnus.com)
6728
6729 * config/tc-sparc.c (sparc_ip): Fix parsing of asi number.
6730 Fix error message.
6731
6732 Sat Jun 5 19:32:52 1993 Torbjorn Granlund (tege@nada.kth.se)
6733
6734 * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions.
6735 * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first
6736 char to reg_prefix instead of to 'r'.
6737 (calcop): Change calls to get_reg.
6738 (calcop): Handle new case 'x' to set reg_prefix.
6739 (calcop): Set reg_prefix to 'r' after each call to get_reg.
6740 (cmpslot): Add 88110 conditions.
6741
6742 * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency.
6743
6744 * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer
6745 before returning.
6746
6747 * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics
6748 adjacent; mov.s and mov.d swapped.
6749 (m88k_opcodes): Fix typo `r2' -> `2'.
6750
6751 Fri Jun 4 15:59:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
6752
6753 * config/h8300.c: Support for H8/300-H opcodes.
6754
6755 * config/obj-coffbfd.c (w_strings): String table length is 4
6756 bytes, no matter what the host int size is.
6757
6758 * configure.in (alpha-*-osf*): New.
6759
6760 Fri Jun 4 07:51:18 1993 Ian Lance Taylor (ian@cygnus.com)
6761
6762 * configure.in (mips-*-ecoffl*): New target; use ecoff and
6763 mips-lit.
6764 (mips-*-ecoff*): Added trailing '*'.
6765
6766 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
6767 first FDR in a file to be zero.
6768
6769 Thu Jun 3 14:09:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6770
6771 * Makefile.in (VERSION): Jump to 2.1.4.
6772
6773 * config/ho-hppabsd.h: New file, from Peter Hoogenboom.
6774
6775 * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for
6776 ECOFF format.
6777
6778 Tue Jun 1 15:21:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6779
6780 * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a
6781 separate '851 mmu.
6782
6783 * config/obj-elf.c, config/obj-elf.h: Update for new type, macro,
6784 and routine names. Assuming 32 bits for now.
6785
6786 * config/obj-elf.c (elf_frob_file): Look for macro
6787 elf_tc_final_processing_hook, instead of assuming a function
6788 always exists.
6789 * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from
6790 tc_final_processing_hook.
6791 * config/tc-hppa.h (elf_tc_final_processing_hook): Use it.
6792
6793 * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros
6794 moved here from obj-elf.h.
6795 * config/obj-elf.h: Don't include CPU-specific header files.
6796
6797 Sun May 30 16:49:37 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu)
6798
6799 * configure.in: configurations should match on 'hppa*' not 'hppa'.
6800
6801 * read.c: Add support for HPPA assembly language syntax (denoted
6802 with '#ifdef TC_HPPA').
6803
6804 * symbols.c: Add support for HPPA assembly language syntax (denoted
6805 with '#ifdef TC_HPPA').
6806
6807 * write.c (write_contents): Add support for HPPA-style
6808 relocations.
6809
6810 * config/obj-elf.c: Stab symbols weren't written properly.
6811 (obj_elf_version):
6812 (obj_elf_desc):
6813 (obj_elf_write_symbol):
6814 (obj_elf_write_symbol_p):
6815 (obj_elf_frob_symbol):
6816 (elf_stab_symbol):
6817 (elf_frob_file):
6818
6819 * config/tc-hppa.c: Support for HPPA symbol extension sections.
6820 Remove some unused code. Support for HPPA assembly language
6821 syntax.
6822
6823 * app.c:
6824
6825 * symbols.c:
6826
6827 * config/obj-elf.h:
6828 (obj_write_symbol):
6829 (obj_frob_file):
6830 (elf_tc_symbol):
6831 (elf_tc_make_sections):
6832
6833 * config/tc-hppa.h:
6834
6835 Sun May 30 21:44:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
6836
6837 * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume
6838 hash_new will have succeeded if it returns.
6839 * config/tc-a29k.c (md_begin): Likewise.
6840
6841 * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is
6842 const.
6843 (mode_from_disp_size, opcode_suffic_to_type): Now inline under
6844 gcc.
6845 (fits_in_{signed,unsigned}_{byte,word}): Likewise.
6846
6847 * expr.c: Delete register declarations; gcc ignores them anyways.
6848
6849 Fri May 28 19:03:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6850
6851 * hash.c (hash_new): Use xmalloc, since many callers don't check
6852 for failure.
6853
6854 Thu May 27 13:02:15 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6855
6856 * frags.c (zero_address_frag, bss_address_frag): These are
6857 external.
6858
6859 * tc.h (md_reloc_size): This is const.
6860 * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c
6861 (md_reloc_size): Now const.
6862
6863 * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete
6864 trailing commas.
6865 * as.h (enum _segT): Ditto.
6866
6867 * struc-symbol.h (N_TYPE_seg): This should be const.
6868
6869 Thu May 27 11:43:59 1993 Michael Meissner (meissner@osf.org)
6870
6871 * config/obj-ecoff.c (add_file): Cast file_name to char * in
6872 listing_source_file call.
6873
6874 * config/obj-elf.c (elf_stab_symbol_string): Cast first argument
6875 of subseg_new call to eliminate const attribute.
6876 (obj_elf_stab): Ditto.
6877 (obj_symbol_new_hook): Cast first argument of bzero call to char *.
6878
6879 * read.c (s_align_bytes): Properly record alignment.
6880
6881 * expr.c (__): Undefine __ macro before use, since OSF/1 uses it
6882 for the prototype/no prototype macro.
6883
6884 * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be
6885 void.
6886
6887 * as.h (relax_stateT enum): Delete trailing comma.
6888
6889 Thu May 27 11:07:50 1993 Ian Lance Taylor (ian@cygnus.com)
6890
6891 * app.c (do_scrub_begin): Let line_comment_chars override
6892 comment_chars.
6893 (do_scrub_next_char): If a line comment character is not at the
6894 start of a line, treat it as a comment character if it is one.
6895 For a CPP line comment use pseudo-op .appline rather than .line.
6896 * input-scrub.c (logical_input_line): Make int rather than
6897 unsigned.
6898 (input_scrub_push, input_scrub_begin): Initialize
6899 logical_input_line to -1 rather than 0.
6900 (bump_line_counters): Increment logical_input_line.
6901 (new_logical_line): If line_number is -2, decrement
6902 logical_input_line.
6903 (as_where): Use logical_input_line even if it is 0.
6904 * read.h (s_app_file prototype): Now takes an int argument.
6905 * read.c (potable): Make .appfile call s_app_file with 1. New
6906 .appline pseudo-op calls s_app_line.
6907 (s_app_file): If .appfile, call new_logical_line with -2 to
6908 account for newline inserted by do_scrub_next_char. If listing,
6909 call listing_source_file.
6910 (s_app_line): New function to handle fake pseudo-op .appline.
6911 * config/obj-coff.c (obj_pseudo_table): Make .appline call
6912 obj_coff_ln.
6913 (obj_coff_ln): Added argument to indicate whether .appline.
6914 * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
6915 obj_coff_ln.
6916 (obj_coff_ln): Added argument to indicate whether .appline.
6917 * config/tc-mips.c (s_file): Pass argument to s_app_file.
6918
6919 Tue May 25 11:59:07 1993 Ian Lance Taylor (ian@cygnus.com)
6920
6921 * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast.
6922
6923 Thu May 20 19:14:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6924
6925 * config/tc-m68k.c (md_apply_fix_2): Straighten out check for
6926 invalid values.
6927
6928 Wed May 19 07:33:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
6929
6930 * config/tc-h5000.c (build_bytes): Understand @rd mode and build
6931 relocations correctly.
6932
6933 Mon May 17 15:06:26 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6934
6935 * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because
6936 it's wrong.
6937
6938 * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn
6939 if value is out of range.
6940
6941 Patch from Minh Tran-Le:
6942 * config/tc-i386.c (i386_operand): For in/out port register used
6943 as base reg, include InOutPortReg in operand type.
6944 (MATCH): Accept overlap value of InOutPortReg.
6945
6946 Mon May 17 09:29:34 1993 Ian Lance Taylor (ian@cygnus.com)
6947
6948 * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab):
6949 Add calls to listing routines to produce combined source/assembler
6950 listings.
6951 (obj_ecoff_stab): Create a file pointer if none used yet.
6952 (ecoff_frob_file): Set symcount to correct value.
6953
6954 Fri May 14 06:53:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6955
6956 * Makefile.in (VERSION): Bump to version 2.1, in preparation for
6957 release.
6958
6959 * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE):
6960 Define in terms of constants, not C structure sizes.
6961
6962 * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files.
6963
6964 Thu May 13 17:01:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6965
6966 * config/obj-aout.c (obj_header_append): Don't define if it's
6967 defined as a macro.
6968 * config/obj-hp300.h (obj_header_append): Define it as a macro.
6969 * config/obj-hp300.c (hp300_header_append): New function.
6970
6971 * Makefile.in (distclean): Don't bother cleaning up doc files;
6972 they aren't going to be in this directory.
6973
6974 Thu May 13 07:51:35 1993 Ian Lance Taylor (ian@cygnus.com)
6975
6976 * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute
6977 symbols.
6978
6979 * tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
6980 * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
6981
6982 Mon May 10 06:01:12 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
6983
6984 * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with
6985 initialization.
6986
6987 * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff.
6988
6989 Wed May 5 14:00:49 1993 Ian Lance Taylor (ian@cygnus.com)
6990
6991 * config/tc-mips.c (macro): Correct floating point double word
6992 loads and stores for big endian target.
6993
6994 Wed May 5 08:39:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6995
6996 * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_*
6997 calls. Deleted some unused code.
6998 * config/obj-coff.c: Likewise.
6999
7000 ELF support, mostly contributed by Utah:
7001 * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line,
7002 obj_elf_type): Rewrite.
7003 (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol,
7004 obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size):
7005 New functions.
7006 (obj_elf_ident): Dummy.
7007 * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol,
7008 TARGET_SYMBOL_FIELDS): New macros.
7009 (gdb_section): New variable decl.
7010
7011 * config/tc-i386.c (md_atof): Return zero, not empty string, on
7012 success.
7013
7014 BFD_ASSEMBLER conditional changes:
7015 * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header):
7016 Don't define these.
7017 (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions.
7018 (fetch_coff_debug_section): Ditto.
7019 (obj_coff_endef): Call fetch_coff_debug_section.
7020 (struct line_no): New type.
7021 (c_symbol_merge): New way for copying aux fields.
7022 (c_dot_file_symbol): Put symbol in absolute section, and set flag
7023 BSF_DEBUGGING.
7024 (function_lineoff): New symbol.
7025 (function_lineoff, text_lineno_number, our_lineno_number,
7026 lineno_lastP): Don't define.
7027 (c_line_new): Don't define.
7028 (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh,
7029 placeholders, until
7030 line-number recording gets implemented.
7031 (obj_new_symbol_hook): New code for handling aux fields.
7032 (add_lineno, add_linesym): New functions.
7033 (obj_coff_ln): Call add_lineno, not c_line_new.
7034 (obj_coff_endef): New code for handling symbol names. New lineno
7035 code. Look for section name "*DEBUG*" for debugging section.
7036 (align, coff_check_file_symbols, obj_coff_section,
7037 coff_frob_file): New functions.
7038 * config/obj-coff.h: Reordered some includes.
7039 (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg,
7040 DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't
7041 define these.
7042 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros.
7043 (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing
7044 aux entries. Most SA_* macros now use it unconditionally.
7045 (S_*): Use `bsym' field, and access BFD private data.
7046 (SF_*): Use `sy_flags' symbol field for most of these.
7047 (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't
7048 define.
7049 (*_section_header): Don't define.
7050 * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed
7051 interface.
7052 (tc_gen_reloc) [I386COFF]: New function.
7053 (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define.
7054 * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New
7055 macros.
7056
7057 * config/obj-coff.c (stack_init): Don't do assignments inside
7058 conditions.
7059 (obj_coff_def): Simplified handling of symbol name a bit.
7060 (tag_insert): Name argument is now pointer to CONST.
7061 (obj_crawl_symbol_chain): Commented out.
7062
7063 * config/obj-coff.h: Use PARAMS macro in prototypes.
7064
7065 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect
7066 through frchainP pointer if it is null.
7067
7068 * configure.in: Warn if BFD mode is explicitly turned off but is
7069 required by specified target.
7070 (mips ecoff targets): Don't need to set bfd_gas here; it gets
7071 taken care of later.
7072
7073 * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward
7074 field.
7075 (yank_symbols): Merge symbols only if sy_forward is null.
7076
7077 * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already
7078 defined.
7079
7080 * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not
7081 pointer.
7082 * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto.
7083
7084 * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting
7085 with "." is a local label.
7086
7087 * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config
7088 files.
7089
7090 * config/te-linux.h, config/te-386bsd.h: New config files.
7091 * configure.in (i386-*-linux, i386-*-bsd): Use them.
7092 * config/tc-i386.h (TARGET_FORMAT): Select format based on target
7093 environment.
7094 (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux.
7095
7096 Wed May 5 13:14:01 1993 Ian Lance Taylor (ian@cygnus.com)
7097
7098 * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
7099 to want it that way.
7100 (ecoff_build_symbols): Turn local st_Proc symbols into
7101 st_StaticProc symbols. Set index field of external st_Proc and
7102 st_staticProc symbols correctly.
7103 * config/tc-mips.h (NO_LISTING): Don't define. People might want
7104 listings.
7105
7106 Tue May 4 21:22:54 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7107
7108 * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New
7109 files.
7110 * configure.in (m68k-*-hpux): Use them.
7111
7112 * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if
7113 defined, otherwise zero.
7114
7115 * config/aout_gnu.h (OMAGIC): Don't define if already defined.
7116
7117 Mon May 3 15:59:32 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7118
7119 * config/tc-sparc.c (sparc_ip): Allow any abs expression as an
7120 address space number.
7121
7122 Wed Apr 28 19:11:22 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
7123
7124 * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all.
7125
7126 * config/tc-a29k.c: Include ctype.h.
7127 (define_some_regs): Added special-purpose registers for 29050.
7128
7129 * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/".
7130
7131 * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here.
7132 (change_to_section): Set it here instead.
7133
7134 Wed Apr 28 13:40:29 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
7135
7136 * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
7137 hasn't been seen yet.
7138 (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
7139
7140 Mon Apr 26 18:29:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7141
7142 * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
7143 SH.
7144
7145 Mon Apr 26 12:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
7146
7147 * expr.c (operand): Fix unary plus operator (previously was the
7148 same as '~' operator!).
7149
7150 Wed Apr 21 00:20:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7151
7152 * write.c (cvt_frag_to_fill): Define even if BFD is defined.
7153 (write_object_file): Do define if BFD_ASSEMBLER. Invoke
7154 obj_check_file_symbols if defined. Call verify_symbol_chain_2
7155 instead of open-coding it. Fix some bugs in patching up symbol
7156 chain.
7157 (relax_segment): Make some code we "ought to be able to" use for
7158 all targets no longer conditionalized on ns32k target; instead, do
7159 it always, and if the appropriate conditions fail, abort.
7160
7161 * symbols.c (DEBUG): Enabled.
7162 (symbol_new): Make sure bfd_make_empty_symbol works.
7163 (verify_symbol_chain_2): New funcion; takes one symbol as
7164 argument, anywhere in the chain.
7165 (dollar_label*): Use default initializers.
7166
7167 * as.c (perform_an_assembly_pass): Call md_begin here...
7168 (main): ...and not here.
7169
7170 * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out.
7171 (tc_frob_symbol): New macro: Get rid of symbols in reg_section.
7172
7173 * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER.
7174 (add_fix, add_frag): Now functions instead of macros.
7175 (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num,
7176 s_data1, s_data2, s_bss): Use new *_section names, for
7177 compatibility with BFD_ASSEMBLER mode; rewrite switch statements
7178 to handle non-integral segT.
7179 (tc_coff_fix2rtype, tc_aout_fix_to_chars,
7180 tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER.
7181 (tc_gen_reloc): New routine for BFD_ASSEMBLER.
7182 (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to
7183 md_apply_fix_2; new md_apply_fix definition varies interface
7184 depending on BFD_ASSEMBLER.
7185 (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section
7186 names.
7187
7188 * config/obj-vms.c: Include config.h.
7189 (version_string): Delete declaration.
7190 (Write_VMS_MHD_Records): Use GAS_VERSION instead.
7191 (vms_resolve_symbol_redef): New function, taken from VMS code in
7192 symbols.c.
7193 (_doprnt): Deleted.
7194 (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct,
7195 VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix,
7196 VMS_Psect_Spec): Fixed to compiler under traditional C.
7197 * config/obj-vms.h: Use PARAMS macro.
7198 (vms_resolve_symbol_redef): Declare.
7199 (RESOLVE_SYMBOL_REDEFINITION): New macro.
7200 * symbols.c (colon): Remove some VMS-specific code, look for
7201 RESOLVE_SYMBOL_REDEFINITION macro instead.
7202
7203 * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc
7204 instructions.
7205
7206 * config/tc-i386.c: Reordered some functions so inlining might
7207 work. Use PARAMS in function declarations.
7208 (reloc): New routine.
7209 (md_assemble): Rearrange switch statements to work with
7210 non-integral segT.
7211
7212 * struc-symbol.h [BFD_ASSEMBLER]: Undefine
7213 SYMBOLS_NEED_BACKPOINTERS before defining it.
7214
7215 * subsegs.c (subseg_new_rest): Now static.
7216
7217 * read.c (pseudo_set): Better error message for difference of
7218 symbols in different frags.
7219
7220 * Makefile.in (check): Pass down some new variables, indicating
7221 pathname or program name for cc, nm, objdump.
7222
7223 * as.h (OUTPUT_FLAVOR): New macro.
7224 * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR.
7225
7226 * configure.in: Initialize bfd_gas properly. Warn that ELF
7227 support is incomplete.
7228
7229 Thu Apr 15 22:39:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7230
7231 * read.c (float_cons): Accept null pointer return from md_atof.
7232 * config/tc-m68k.c (md_atof): Return null for success.
7233 * config/tc-sparc.c (md_atof): Ditto.
7234
7235 Thu Apr 15 16:04:39 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
7236
7237 * doc/as.texinfo: formatting and comment cleanups; show SPARC
7238 alternative options in same style as other machines; simplify some
7239 conditional use; include GPL as separate file (from texinfo dir)
7240
7241 * doc/Makefile.in: (as.info) include directory containing GPL in
7242 makeinfo search path
7243
7244 * doc/h8.texi: new file; conditional settings for GAS manual
7245 on Hitachi chips
7246
7247 Tue Apr 13 15:31:40 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
7248
7249 * doc/as.texinfo: mention SPARC architecture options.
7250
7251 Fri Apr 9 17:43:11 1993 Ken Raeburn (raeburn@cygnus.com)
7252
7253 * configure.in: Rearranged whitespace in per-host/per-target
7254 sections. Added hooks for dropping in HPPA support (not included
7255 yet). Separate out overrides of variables based on target format
7256 and bfd-gas selection from actual target-specific commands. Add
7257 error message for recognized but unsupported format name.
7258
7259 Fri Apr 9 09:05:47 1993 Ian Lance Taylor (ian@cygnus.com)
7260
7261 * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
7262 symbolic header match cline in FDR; the native linker seems to
7263 want that.
7264
7265 Thu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7266
7267 * doc/Makefile.in: as.texinfo is in $(srcdir). Use
7268 $(srcdir)/as.texinfo explicitly in several places
7269
7270 Thu Apr 8 15:15:02 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
7271
7272 * doc/Makefile.in: update dvi, clean targets for new source
7273 file structure
7274
7275 Thu Apr 8 12:52:46 1993 Ian Lance Taylor (ian@cygnus.com)
7276
7277 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
7278 rather than undefining know.
7279 * configure.in: Match ultrix*, not just ultrix.
7280
7281 Wed Apr 7 20:18:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
7282
7283 * doc/as.texinfo: converted conditional markup to use new
7284 Texinfo facilities, avoiding m4.
7285
7286 * doc/as-all.texinfo, all.m4, pretex.m4: deleted.
7287
7288 * doc/Makefile.in: recast doc configuration to use a link to an
7289 included texinfo file.
7290
7291 * doc/all.texi: settings for generic form of documentation.
7292
7293 Tue Apr 6 11:56:21 1993 Ian Lance Taylor (ian@cygnus.com)
7294
7295 * read.c (cons): Zero out frag when creating reloc.
7296
7297 Mon Apr 5 09:41:58 1993 Ian Lance Taylor (ian@cygnus.com)
7298
7299 * config/tc-mips.c (gp_reference): Certain magic symbols can never
7300 be referenced off the GP register.
7301
7302 * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
7303 when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
7304 LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
7305
7306 * config/te-irix.h: New file; irix needs a different LOCAL_LABEL
7307 definition from other MIPS targets.
7308 * configure.in (mips-*-irix): Use emulation irix.
7309
7310 Sun Apr 4 15:21:09 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7311
7312 * config/tc-h8500.c: Get relax size of branch instructions right,
7313 (get_operand): Parse @sp+ correctly.
7314
7315 Fri Apr 2 15:59:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7316
7317 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include
7318 COFF section header field.
7319
7320 * configure.in: Print error message if host or target is not
7321 supported.
7322
7323 * configure.in: If with-bfd-assembler, use obj-coff instead of
7324 obj-coffbfd.
7325
7326 * config/ho-generic.h: Include string.h.
7327
7328 Fri Apr 2 08:54:57 1993 Ian Lance Taylor (ian@cygnus.com)
7329
7330 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
7331 '$' as local, for any object file format.
7332
7333 * config/tc-mips.c (macro): Optimizations to branching code and a
7334 couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph
7335 Campbell).
7336
7337 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
7338 * configure.in (mips-sgi-irix*): Set gas_host to irix.
7339
7340 Wed Mar 31 17:53:54 1993 Ian Lance Taylor (ian@cygnus.com)
7341
7342 * subsegs.c (subseg_new): Set output_section of new section.
7343 * as.c (perform_an_assemly_pass): Don't set output_section here.
7344 * expr.c (expr_part, expr): Turn off section assertions for ECOFF,
7345 since it has additional sections.
7346 * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
7347 not bss_section.
7348 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
7349 ecoff_undefined field.
7350 * config/obj-ecoff.c (obj_symbol_new_hook): Initialize
7351 ecoff_undefined field.
7352 (add_file): If using stabs, just output a stabs symbol rather than
7353 creating a new fdr.
7354 (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
7355 it with get_absolute_expression, rather than skipping it by hand.
7356 (obj_ecoff_loc): If using stabs, just output a stabs symbol rather
7357 than ECOFF line number information.
7358 (obj_ecoff_stab): Accept non-zero values for stabs line number.
7359 (ecoff_build_symbols): Set ifilesym correctly. Set storage class
7360 to small, undefined and/or readonly sections if appropriate.
7361 Don't output symbol names containing \001 characters.
7362 (ecoff_frob_file): Make sure at least one fdr is output.
7363 * config/tc-mips.h: Define TC_MIPS.
7364 * config/tc-mips.c (g_switch_value): New static variable.
7365 (md_assemble): Set gp size of output BFD.
7366 (gp_reference): New function; returns 1 if expression can be
7367 accesssed via gp. Always returns 0 if not using ECOFF.
7368 (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
7369 possible.
7370 (macro): Generate sequences using gp if possible.
7371 (md_parse_option): Ignore -EL and -EB. Parse -G.
7372 (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
7373 (s_change_sec): Handle .rdata and .sdata for ECOFF.
7374 (s_extern): Mark symbol as external. Set ecoff_undefined field.
7375
7376 Tue Mar 30 10:11:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7377
7378 * output-file.c (output_file_create): Don't call as_perror for
7379 filename rejected by application.
7380
7381 * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink
7382 the output file.
7383
7384 * doc/as.texinfo: Don't use @value in node names for the moment;
7385 references don't appear to work right.
7386
7387 * as.h (const, volatile): Put these definitions back, and use
7388 them.
7389
7390 * doc/as.texinfo: First pass at using new texinfo features --
7391 variables, conditional tests. Far from complete.
7392
7393 Mon Mar 29 16:05:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7394
7395 * read.c: Temporary hack to handle some 64-bit constants. This
7396 should be redone later.
7397 (target_big_endian): Declare.
7398 (big_cons): If it's set, reverse order of bytes being copied.
7399 * config/tc-sparc.c (md_begin): Set target_big_endian.
7400
7401 * read.c (s_ignore): Delete declaration of is_end_of_line.
7402
7403 * config/obj-coffbfd.c (yank_symbols): Build list of file symbol
7404 forward pointers properly.
7405
7406 Mon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7407
7408 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
7409 wasn't being stored into scnhdr.
7410 * config/obj-coffbfd.h: Add prototype of s_get_segment.
7411 * read.c (TC_START_LABEL): Default definition.
7412 (read_a_source_file): Use TC_START_LABEL macro to work out
7413 if a label has been seen.
7414
7415 Mon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com)
7416
7417 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
7418 the bottom (make expands variables in dependencies when the
7419 dependencies are read, not when they are used).
7420
7421 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
7422 a29k .bss section; the mondfe program doesn't like it.
7423
7424 Sun Mar 28 08:12:53 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
7425
7426 * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of
7427 const.
7428 (current_architecture): Don't need initializer.
7429
7430 Fri Mar 26 08:12:48 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7431
7432 * doc/none.m4: Define Z8000.
7433 * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the
7434 texinfo file before recreating it.
7435 (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in
7436 this directory.
7437 (srcdir): Delete second, bogus definition.
7438 (as.info): Look for as-*.texinfo in current directory rather than
7439 in $(srcdir).
7440 (as.dvi): Ditto.
7441 (dvi): New rule.
7442 * doc/configure.in: Create links to all as-*.texinfo files in the
7443 source directory, if that's not the current directory.
7444
7445 * configure.in (per-host): Accept MIPS host with BSD version
7446 number.
7447 (per-target): Classify i486 as i386. Use generic cpu_type instead
7448 of target_cpu in selecting format etc.
7449
7450 * app.c (do_scrub_next_char): Use .appfile, not .app-file.
7451 * read.c (potable): Change .app-file to .appfile.
7452
7453 * config/ho-decstatn.h: Renamed from ho-decstation.h.
7454 * configure.in: Adjusted.
7455
7456 * config/obj-bfd-sunos.*: Unused; deleted.
7457
7458 * Makefile.in (version.c, vers-stamp): Deleted.
7459 (config.h): Define GAS_VERSION.
7460 * as.c (version_string): Deleted declaration.
7461 (main): Look for GAS_VERSION instead.
7462
7463 * doc/as.texinfo: Updated description of -a* (listing) options,
7464 and describe how to pass them through from gcc.
7465
7466 * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or
7467 process relocs if there aren't any relocs to process. Avoids
7468 malloc/free bug on SCO too.
7469
7470 * as.h: Move local include files below system include files, to
7471 avoid some redefinition complaints on some systems.
7472 (const, volatile): Don't need these conditionally defined if we
7473 use CONST and VOLATILE from ansidecl.h.
7474 (seg_name): Use CONST, not const.
7475
7476 Fri Mar 26 10:22:04 1993 Ian Lance Taylor (ian@cygnus.com)
7477
7478 * config/tc-mips.c: Reindented to GNU standards.
7479
7480 Thu Mar 25 08:59:14 1993 Ian Lance Taylor (ian@cygnus.com)
7481
7482 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
7483 (fixup_segment): Add a29k special case; the linker is not prepared
7484 to see a segment offset here.
7485
7486 * app.c (do_scrub_next_char): Added new state, 10, modifying state
7487 9 to only keep a space in between identifier characters.
7488
7489 Wed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
7490
7491 * Makefile.in: add dvi target; as-$(config).texinfo might live in
7492 srcdir, might be in objdir.
7493
7494 * doc/Makefile.in: dvi depends on as.dvi
7495
7496 Mon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7497
7498 * Makefile.in: add installcheck target
7499
7500 Mon Mar 22 16:25:57 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
7501
7502 * config/tc-sparc.c (sparc_ip): Add support for membar mask names.
7503 Add missing colons in prefetch error messages. Add support for
7504 ASI names.
7505
7506 Mon Mar 22 10:19:00 1993 Ian Lance Taylor (ian@cygnus.com)
7507
7508 * config/tc-mips.c (macro): Use $AT for any floating point load.
7509
7510 Sat Mar 20 12:50:51 1993 Ken Raeburn (raeburn@urth.cygnus.com)
7511
7512 * config/tc-m68k.c (m68k_ip): For operand type 'M', reject
7513 bignums, but don't emit error message.
7514
7515 Fri Mar 19 21:02:19 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
7516
7517 * Makefile.in (targ-cpu.o): Depend on config.h.
7518
7519 Wed Mar 17 16:44:06 1993 Ian Lance Taylor (ian@cygnus.com)
7520
7521 * app.c (do_scrub_next_char): Added new state, 9, to avoid
7522 dropping a space immediately following an identifier.
7523 * expr.c, write.c: Rewrote assert expressions to not use multiple
7524 lines; I don't think that can be done portably.
7525 * config/tc-mips.c (macro): Use $AT if target register is zero in
7526 load instruction, which it can be for a floating point load.
7527
7528 Mon Mar 15 12:17:28 1993 Ian Lance Taylor (ian@cygnus.com)
7529
7530 * write.c (write_contents): Compute the relocs before writing out
7531 the section contents.
7532 * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
7533 symbol table and values right.
7534 * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
7535 with $L is local.
7536 * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
7537 by the section vma.
7538
7539 * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
7540 z8k-opc.h, not z8k.h.
7541
7542 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf
7543 symbol.
7544
7545 Fri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7546
7547 * configure.in: recognize sparc-sun-solaris2* instead of -solaris2
7548
7549 Fri Mar 12 12:00:07 1993 Ian Lance Taylor (ian@cygnus.com)
7550
7551 * expr.c, write.c: Ultrix native 4.2 cc requires assert condition
7552 to be on a single line.
7553
7554 Thu Mar 11 17:56:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7555
7556 * Makefile.in (config.h): Create file, writing out definitions of
7557 target cpu, alias, and canonical name.
7558 (ALL_CFLAGS): No longer define TARGET_CPU.
7559
7560 * Makefile.in (check): Print a message, instead of quitting
7561 silently.
7562
7563 * as.c (main): Don't catch any signals, for now.
7564
7565 * version.c: Deleted.
7566 * Makefile.in: Generate it, putting in only the version number
7567 itself.
7568 (VERSION): New variable.
7569 * as.c: Include config.h.
7570 (main): Reformatted version string. Include target alias. Don't
7571 print if not requested (i.e., unknown -v argument).
7572
7573 * as.c (stralloc): Deleted.
7574 (main): Call strdup instead.
7575
7576 * configure.in: Handle all 68300 series chips.
7577 * config/tc-m68k.c: Include config.h.
7578 (md_assemble): Assume TARGET_CPU is defined. Accept some 68300
7579 series cpus as defaults.
7580 (md_parse_option): Accept some m68300 series CPUs as defaults.
7581
7582 Wed Mar 10 17:41:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7583
7584 * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if
7585 not already defined.
7586 (main, got_sig): Use them.
7587 * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default
7588 values.
7589
7590 Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
7591
7592 * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF
7593 support.
7594
7595 * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs.
7596 OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN.
7597 (struct loc, struct proc, struct file): Moved to tc-mips.c within
7598 #ifndef OBJ_ECOFF block, since ECOFF uses different versions.
7599 * config/tc-mips.c: Rearranged for ECOFF support. Added
7600 prototypes for all static functions. Moved existing minimal
7601 debugging format support info #ifndef OBJ_ECOFF blocks.
7602 (macro_build_lui): Eliminated sign_extend argument, because ECOFF
7603 does not support a non sign extended high 16 bits reloc. Adjusted
7604 all callers accordingly.
7605 (tc_get_register): Renamed from get_register, and made non-static.
7606
7607 * config/mips-big.mt, config/mips-lit.mt: New files. Define
7608 TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN,
7609 respectively.
7610 * configure.in (mips-*-bsd*): Use gas_target mips-lit.
7611 (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using
7612 obj_format ecoff and gas_target mips-lit or mips-big.
7613
7614 Tue Mar 9 07:43:01 1993 Ken Raeburn (raeburn@cygnus.com)
7615
7616 * version.c: Bump to version 2.0.1.
7617
7618 Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
7619
7620 * write.c (chain_frchains_together): Check that seg_info (section)
7621 is not NULL.
7622 (write_object_file): Call obj_frob_file after setting the symbols,
7623 not before.
7624
7625 Tue Mar 9 00:00:00 1993 Ken Raeburn (raeburn@cygnus.com)
7626
7627 * Version 2.0 released.
7628
7629 Mon Mar 8 14:57:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7630
7631 * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only.
7632
7633 Fri Mar 5 09:05:55 1993 Ian Lance Taylor (ian@cygnus.com)
7634
7635 * read.h: Define stringer here.
7636 read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these
7637 places.
7638
7639 Thu Mar 4 11:52:23 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7640
7641 * read.c (s_space): Multiply repeat count by mult, not fill.
7642
7643 Thu Mar 4 05:20:42 1993 Ken Raeburn (raeburn@cygnus.com)
7644
7645 * read.c: Include ctype.h.
7646
7647 Wed Mar 3 10:41:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7648
7649 Patches from Eric Youngdale:
7650 * make-gas.com: Find obstack.obj if it's not in the current
7651 directory.
7652 * read.c (s_ignore): Don't declare is_end_of_line. It's
7653 redundant, and triggers a VMS gcc compiler bug.
7654
7655 * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes
7656 current segment as an argument. (Ignored in all cases but VMS.)
7657 All callers and definitions changed.
7658
7659 Tue Mar 2 11:56:19 1993 Ian Lance Taylor (ian@cygnus.com)
7660
7661 * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING
7662 case compile again.
7663
7664 Tue Mar 2 08:53:34 1993 Ken Raeburn (raeburn@cygnus.com)
7665
7666 * config/tc-m68k.c (isbyte): Accept all values from -255 to +255,
7667 so "~0x80" won't be rejected.
7668
7669 * config/obj-elf.c: No longer include elf/reloc.h.
7670 (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section.
7671 (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out
7672 routines.
7673 (obj_elf_xstab): New routine.
7674 (obj_elf_set_size): Call as_warn, not fprintf. Pass desired
7675 argument to s_ignore. Put "#if 0" around unused code.
7676 (obj_pseudo_table): Use s_ignore instead of do-nothing routines.
7677 Call elf_xstabs for .stabs and .xstabs operators.
7678
7679 * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc".
7680
7681 * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are
7682 present.
7683
7684 * configure.in: mips-bsd configuration was missing format spec.
7685 Should use aout.
7686
7687 * Makefile.in (Makefile): Depends on configure.in.
7688
7689 * config/tc-mips.c (append_insn): Don't check for alignment of
7690 frag in memory; alignment of instructions in section is a separate
7691 matter.
7692
7693 * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI
7694 C availability.
7695
7696 * listing.h: Always provide function declarations, not macros, so
7697 pcc won't lose.
7698
7699 Tue Mar 2 00:50:43 1993 John Gilmore (gnu@cygnus.com)
7700
7701 * CONTRIBUTORS: Update Gilmore entry.
7702
7703 Mon Mar 1 12:03:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
7704
7705 * config/tc-sparc.c (sparc_ip): Correctly assemble prefetch
7706 instructions. Accept integer prefetch function numbers.
7707
7708 Wed Feb 24 14:58:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7709
7710 * config/tc-sparc.c (s_xword): Now call big_cons, so large
7711 constants are accepted, but symbolic values are not. GCC will not
7712 generate the latter currently.
7713
7714 * frags.c (frag_init): New function.
7715 (zero_address_frag, bss_address_frag): Now initialized at run
7716 time.
7717 * as.c (main): Call frag_init.
7718
7719 Wed Feb 24 10:32:42 1993 Ian Lance Taylor (ian@cygnus.com)
7720
7721 * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case:
7722 Don't unget ch2 if we didn't get it.
7723
7724 Wed Feb 24 04:14:07 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
7725
7726 * doc/Makefile.in (TEXIDIR): Updated for new layout.
7727
7728 * config/tc-sparc.c (s_common): Add support for ELF version.
7729 (tc_gen_reloc) [BFD_ASSEMBLER]: New function.
7730 * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]:
7731 New macros.
7732 (md_convert_frag): New macro.
7733
7734 * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a
7735 symbol, fix the offset so "+2" isn't required.
7736
7737 * config/tc-i960.c (line_comment_chars, line_separator_chars):
7738 Define as common/bss.
7739 (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C
7740 initializers are sufficient.
7741
7742 * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd.
7743 (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out".
7744 (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros.
7745 (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro.
7746 * config/obj-aout.c: Use PARAMS macro for declarations. Remove
7747 "IGNORE_DEBUG" conditional, since both branches are identical.
7748 Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly
7749 referencing symbol structure members.
7750 (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function.
7751
7752 * as.h (struct frag): Reordered a couple of fields for better
7753 packing.
7754
7755 * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the
7756 section info.
7757 (write_contents) [BFD_ASSEMBLER]: New function.
7758 (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call
7759 fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call
7760 obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined.
7761 (fixup_segment): Make sure common-section symbols get treated the
7762 same as undefined symbols.
7763 (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type
7764 bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from
7765 section info.
7766 * write.h (fix_new): Update prototype.
7767
7768 * tc.h (md_operand, md_convert_frag, tc_headers_hook,
7769 md_section_align, md_undefined_symbol): Don't provide prototypes
7770 if these are defined as macros.
7771 (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and
7772 section passed.
7773
7774 * symbols.c (symbol_new): Argument NAME is now pointer to const.
7775 Simplified STRIP_UNDERSCORE code. Remove assumptions about null
7776 pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new
7777 BFD symbol.
7778 (colon): Display other/desc fields of redefined symbol only if
7779 S_GET_OTHER and S_GET_DESC are defined.
7780 (symbol_make): Argument NAME is now pointer to const.
7781 (symbol_find, symbol_find_base): Likewise.
7782 (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions.
7783 * symbols.h: Fix prototypes for new const arguments. Add
7784 prototypes for BFD_ASSEMBLER S_* functions.
7785
7786 * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code
7787 for changing to an existing section.
7788 (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new,
7789 called by subseg_new and subseg_set.
7790 (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section,
7791 given section name and subseg number.
7792 (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly
7793 new section/subsection.
7794
7795 * read.c: Don't include ctype.h.
7796 (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32
7797 for now; should be machine-dependent.
7798
7799 * configure.in: Accept *-*-elf and *-*-solaris* as ELF format
7800 targets, forcing BFD use.
7801
7802 Wed Feb 17 18:59:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7803
7804 * config/tc-sparc.c: Use PARAMS macro for static function
7805 declarations. Use BFD_RELOC_ macros everywhere, with
7806 compatibility macros declared for non-BFD mode.
7807 (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type
7808 instead of enum reloc_type.
7809 (emit_sparc_reloc): Commented-out function deleted.
7810 (md_convert_frag): Deleted.
7811 (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER.
7812 (md_apply_fix): Changed calling sequence (conditionally) for BFD
7813 version.
7814 * config/tc-sparc.h (md_convert_frag): New macro.
7815
7816 * config/obj-aout.c (obj_aout_stab): Refer to undefined_section,
7817 not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead
7818 of referencing fields directly.
7819
7820 * write.c (cvt_frag_to_fill): New function; extracted from
7821 write_object_file.
7822 (write_object_file) [! BFD_ASSEMBLER]: Call it.
7823 (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section
7824 and set its size and flags.
7825
7826 * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some
7827 fields with BFD equivalents. Turn on back-pointers, and add
7828 target-specific fields at end.
7829
7830 Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
7831
7832 * config/obj-coffbfd.c (fill_section): Don't set vaddr here.
7833 (write_object_file): Set it here instead, so that fixup_segment
7834 can see the correct value.
7835
7836 Mon Feb 8 13:56:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7837
7838 * write.c (write_object_file): Check for errors and warnings and
7839 bail out before processing contents.
7840 (chain_frchains_together_1): New function, does most of the work
7841 of remove_subsegs.
7842 (chain_frchains_together) [BFD_ASSEMBLER]: New function.
7843 (remove_subsegs) [! BFD]: Call it.
7844 (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD
7845 structures and routines.
7846
7847 * config/obj-elf.*: New files.
7848
7849 * config/mips.mt, config/rs6000.mt: Deleted.
7850
7851 * config/h8300.mt: Don't specify compiler here.
7852
7853 * config/z8k.mt: The z8k code depends on the z8k opcode table,
7854 not the h8300 one.
7855 * config/tc-z8k.h: Comment fix.
7856
7857 * write.c: Reordered some functions for better inlining.
7858 (fixup_segment): Linkrelax code is no longer conditional on
7859 TC_I960.
7860
7861 Thu Feb 4 12:45:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7862
7863 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,
7864 obj-coffbfd.h}: support for the H8/500
7865
7866 Wed Feb 3 19:28:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7867
7868 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here.
7869 * write.c (write_object_file): Not here.
7870 (fix_new): Initialize fx_addnumber.
7871
7872 * listing.c: Don't include target-cpu.h explicitly, since as.h
7873 includes it.
7874
7875 Thu Jan 28 00:35:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
7876
7877 * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP,
7878 *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP.
7879 (struct fix): Reordered fields for compactness and efficiency.
7880 Converted some logical fields to 1-bit fields.
7881
7882 * config/obj-aout.h: Use PARAMS.
7883 [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE,
7884 N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE.
7885
7886 * read.c: Don't include listing.h; as.h includes it. Removed
7887 DONTDEF code.
7888 [BFD_ASSEMBLER]: Include subsegs.h.
7889 (old_buffer, new_broken_words): Default initialization is
7890 sufficient.
7891
7892 * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH
7893 to 0, define stdoutput.
7894 (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure.
7895 Call bfd_set_arch_mach.
7896 (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not
7897 bfd_close_all_done. Call bfd_perror on failure.
7898 (output_file_append) [BFD_ASSEMBLER]: Don't define.
7899
7900 * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition.
7901
7902 * subsegs.h (segment_info_type): Always define. Omit field scnhdr
7903 if not MANY_SEGMENTS. Define new field bfd_section if
7904 BFD_ASSEMBLER.
7905 (seg_info): New macro.
7906
7907 * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused
7908 variables, and some irrelevant comments.
7909
7910 * Makefile.in (ALL_CFLAGS): Include $(BFDDEF).
7911 (LIBS): Include $(BFDLIB). Don't bother with $(CLIB).
7912 * configure.in: Permit --with-bfd-assembler now, with a warning.
7913 Variable need_bfd is now a boolean, as is new variable bfd_gas.
7914 Set BFDDEF and BFDLIB in Makefile when appropriate.
7915
7916 * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code.
7917 (main): Refer to flag_always_generate_output instead of
7918 flagseen['Z'].
7919
7920 * as.c (main) [BFD_ASSEMBLER]: Open output bfd.
7921 (*_section) [BFD_ASSEMBLER]: Define them.
7922 (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and
7923 set section flags when appropriate.
7924 * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified
7925 section is not absolute, undefined, or an assembler internal one.
7926 (absolute_section, undefined_section): Always define.
7927 * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break
7928 switch statements into if-else trees.
7929 * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of
7930 SEG_BSS and SEG_DATA.
7931
7932 * as.h (frag_now_fix): New macro.
7933 * symbols.c (colon): Use it.
7934
7935 Wed Jan 27 21:43:53 PST 1993 Ralph Campbell (ralphc@pyramid.com)
7936
7937 * config/tc-mips.c: Added mips support for mips-dec-bsd.
7938 * config/tc-mips.h: Added mips support for mips-dec-bsd.
7939 * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd.
7940 * config/mips-opcode.h: Added mips support for mips-dec-bsd.
7941 * configure.in: Added mips support for mips-dec-bsd.
7942 * atof-generic.c: Define TRUE and FALSE if not defined.
7943
7944 Thu Jan 21 12:48:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7945
7946 * version.c: Bumped version number to 1.93.05.
7947
7948 Wed Jan 20 17:11:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7949
7950 * config/obj-coff.c (obj_emit_relocations): Don't use #elif.
7951 (obj_emit_lineno): Don't need return at end of void function.
7952 (obj_symbol_new_hook): Ditto.
7953
7954 * config/tc-m68k.c: Removed some unused code.
7955 (tc_aout_fix_to_chars): Array nbytes_r_length is now const.
7956
7957 * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only
7958 offset field is set.
7959
7960 Fri Jan 8 05:44:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7961
7962 * config/tc-sparc.c (sparc_ip): For %uhi and %ulo, if not
7963 ENV64, emit no reloc.
7964 (md_pseudo_table): For ".xword", call s_xword.
7965 (s_xword): New function.
7966
7967 * config/tc-sparc.c (architecture_requested, warn_on_bump,
7968 md_relax_table): Use default zero initialization.
7969 (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the
7970 latter, instead of selecting with preprocessor conditionals.
7971
7972 Thu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7973
7974 * configure.in: recognise all sparclite variants
7975
7976 Thu Jan 7 05:25:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7977
7978 * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change --
7979 accidentally changed to use subseg_change where it should have
7980 been subseg_new.
7981
7982 Tue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7983
7984 * expr.c (operand): If character other than comma or newline is a
7985 logical end-of-line character, use the newline case.
7986 From Eric Youngdale:
7987 (operand): Set X_add_number field for floating-point numbers.
7988 (operand): Treat zero byte as end-of-operand.
7989
7990 * configure.in (per-target): Look for with_bfd_assembler option.
7991 For now, only accept "no", until the merge is done.
7992
7993 Merged changes from Eric Youngdale (youngdale@v6550c.nrl.navy.mil):
7994 * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c,
7995 config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS.
7996 * read.c: Finish conversion to S_* macros in the VMS only
7997 parts of the program. Add "const" modifier to hex_value.
7998 * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to
7999 "ifdef OBJ_VMS".
8000 * expr.c: Add "const" modifier to hex_value.
8001 * symbols.c: Finish conversion to S_* macros in the VMS only
8002 parts of the program. Add "const" modifier to
8003 md_[long,short]_jump_size. Remove declaration of const_flag
8004 (which will be declared in obj-vms.h).
8005 * write.c: Add "const" modifier to md_[long,short]_jump_size.
8006 Fix arguments to VMS_write_object_file.
8007 * config-gas.com: New file. Script for VMS systems to set up the
8008 configuration to build gas for VMS, and create config.status.
8009 * make-gas.com: Redone to work with new scheme.
8010 * obj-vms.c: Patch to fix bug where we were not correctly parsing the
8011 stabs directives.
8012 * obj-vms.c: Define macros COPY_LONG and COPY_SHORT which
8013 will swap bytes if needed on a big endian system. Use throughout
8014 as needed.
8015 * obj-vms.c (obj_aout_stab): Add code to generate listing file.
8016 * obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain
8017 types of malformed stabs. Change parsing algorithm so that we are
8018 more certain of having all of the information that we need on hand.
8019 * obj-vms.c (final_forward_reference): New function, used to help
8020 resolve the data types of as many struct elements as possible
8021 when some part of the struct is not fully defined by the compiler.
8022 * obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation
8023 stabs directives.
8024 * obj-vms.c (VMS_write_object_file): Define all vtable psects
8025 as symbols as well in the object file. Look for external functions
8026 that start with "__vt.", and turn them into variables, since the
8027 g++ compiler is incapable of doing this.
8028 * tc-vax.c: Add '1' option for backward compatibility with older GCC
8029 versions.
8030 * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes.
8031 * input-scrub.c (as_where): Fix bug where as would crash if we did not
8032 have the name of the source file yet.
8033 * config/ho-vms.h: define HO_VMS, not HO_VAX.
8034
8035 Mon Jan 4 05:17:26 1993 Ken Raeburn (raeburn@cygnus.com)
8036
8037 * read.c (s_data): Always use "data_section", since it'll map to
8038 SEG_DATA or SEG_E1 if needed.
8039 (s_lcomm): Likewise with bss_section.
8040 (s_fill): Use memset, not bzero.
8041
8042 Thu Dec 31 04:29:27 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8043
8044 * read.c: Deleted some code under "#ifdef DONTDEF" that was for
8045 handling GDB symbol table data.
8046
8047 * config/obj-aout.h (segment_name): Delete definition.
8048 (seg_name): Delete declaration.
8049 * config/obj-bout.h (segment_name, seg_name): Ditto.
8050 * config/obj-vms.h (segment_name, seg_name): Ditto.
8051 * config/obj-coff.h (segment_name): Ditto.
8052 * config/obj-coffbfd.h (segment_name): Ditto.
8053
8054 * Changes for BFD_ASSEMBLER:
8055 * obj.h (obj_crawl_symbol_chain): Declare only if not
8056 BFD_ASSEMBLER.
8057 (obj_header_append, obj_pre_write_hook): Ditto.
8058 * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER.
8059 (segT) [BFD_ASSEMBLER]: New typedef for "asection *".
8060 (segment_name) If BFD_ASSEMBLER, look up BFD section name;
8061 otherwise, use seg_name array.
8062 (seg_name): Declare only if not BFD_ASSEMBLER.
8063 (section_alignment): Declare only if not BFD_ASSEMBLER.
8064 (big_section, reg_section, pass1_section, diff_section,
8065 absent_section, text_section, data_section, bss_section): If
8066 BFD_ASSEMBLER, declare as variables; otherwise, declare as macros,
8067 mapping to segT enum values.
8068 (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors
8069 if these are used or defined, if BFD_ASSEMBLER.
8070 (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old
8071 subseg_new split into two functions.
8072 (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now.
8073
8074 * as.h (volatile): Don't define if already defined.
8075 (had_errors, had_warnings): Provide prototypes for ANSI C even if
8076 NO_STDARG.
8077 (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2,
8078 declare with format attribute for -Wformat checking.
8079
8080 Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
8081
8082 * app.c, config/tc-*.c: Don't include read.h, since it is already
8083 included by as.h.
8084
8085 * These are based on patches from Minh Tran-le
8086 <mtranle@paris.intellicorp.com>.
8087 * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use
8088 obj_format coffbfd and gas_target i386coff for target.
8089 (i[34]86-*-isc*): New host (uses sysv).
8090 * config/i386aix.mt: Removed (no longer used).
8091 * config/mh-i386aix (RANLIB): Use true rather than /bin/true.
8092 (MINUS_G): Removed.
8093 (LDFLAGS): Added, defined as -shlib.
8094 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
8095 * config/te-sco386.h (LOCAL_LABEL): Don't define.
8096 (DOT_LABEL_PREFIX): Define.
8097 * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
8098 name rather than L0\001.
8099 * read.c (s_lcomm): Make a frag in SEG_BSS rather than using
8100 local_bss_counter.
8101 * symbols.c, symbols.h (local_bss_counter): Removed.
8102 * write.c (write_object_file): bss no longer uses
8103 local_bss_counter. Pass correct data and bss size to
8104 VMS_write_object_file.
8105 * config/obj-vms.c (VMS_write_object_file): Accept bss size as
8106 argument, rather than using local_bss_counter.
8107 * config/tc-m88k.c (s_bss): Don't use local_bss_counter.
8108 * config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
8109 * config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
8110 (size_section): Restored sanity check.
8111 (do_relocs_for): Base section address on s_paddr rather than
8112 computing it. Adjust a29k R_IHIHALF special case to account for
8113 section paddr (used to require paddr to be zero). If there are no
8114 reclos, set s_relptr to 0. Set relocation size in object_headers.
8115 (fill_section): Always set s_vaddr here, removing
8116 ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set
8117 NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
8118 Set STYP_INFO for .comment.
8119 (coff_header_append): Use object headers and H_{SET,GET}_* macros.
8120 Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
8121 (crawl_symbols): Handle 8 character section name correctly. Use
8122 H_{SET,GET}_* macros.
8123 (do_linenos_for): Set lineno size in object_headers.
8124 (write_object_file): Use H_{SET,GET}_* macros. Don't bother to
8125 set s_vaddr here. If string_byte_count remains 4, set it back to
8126 0, and only write strings out if there are some. Call
8127 fill_section before do_relocs_for and do_linenos_for.
8128 (obj_coff_section): Handle optional quoted second argument giving
8129 section characteristics.
8130 (obj_coff_bss): Added to handle .bss.
8131 (obj_coff_ident): Added to handle .ident (puts string in .comment
8132 section).
8133 (obj_coff_lcomm): Put common symbols in .bss, not .data.
8134 (fixup_mdeps): Change to segment. Call frag_wane after
8135 md_convert_frag.
8136 (fixup_segment): Explicitly check S_IS_COMMON before making 386
8137 adjustment (already happened only for common symbols, but this is
8138 clearer).
8139 * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
8140 * config/tc-i386.c (s_bss): Don't use if I386COFF.
8141 (md_pseudo_table): Ignore .optim and .noopt.
8142 (tc_coff_sizemachdep): New function.
8143 * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
8144 compatibility.
8145 (LOCAL_LABEL): Removed definition.
8146 (DOT_LABEL_PREFIX): Defined.
8147
8148 Mon Dec 28 10:32:05 1992 Ken Raeburn (raeburn@cygnus.com)
8149
8150 * app.c (app_push): Use memcpy, not bcopy.
8151 (do_scrub_next_char): For \", return " not '.
8152 (symbol_chars): Now const.
8153
8154 * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f"
8155 and "0b". If LOCAL_LABELS_DOLLAR, check for "0$".
8156
8157 * config/obj-coff.h: Don't use #elif.
8158
8159 * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't
8160 have it. (Reported by Noah Friedman, friedman@gnu.ai.mit.edu.)
8161
8162 Wed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)
8163
8164 * write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
8165 already defined.
8166
8167 Tue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8168
8169 * app.c (do_scrub_begin): allow single quote strings if so
8170 configured.
8171
8172 * config/*z8k*: checkpoint
8173
8174 Sun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com)
8175
8176 * read.c (read_a_source_file): avoid calling xmalloc (0).
8177
8178 Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
8179
8180 * listing.c: Call xmalloc, not malloc; don't declare malloc.
8181
8182 * Changes to support SCO 3.2v4:
8183 * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
8184 SEG_BSS, fill with NOP_OPCODE.
8185 * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
8186 * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
8187 using ZERO_BASED_SEGMENTS.
8188 (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
8189 never set segment address for SEG_E2 (.bss) and don't write out
8190 SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
8191 (obj_coff_endef): Don't merge labels or symbols awaiting forward
8192 definitions, and don't merge tags with non-tags. Check for .bf
8193 rather than just checking whether the second character is b and
8194 the third character is f.
8195 (obj_coff_val): gcc can generate values which we don't handle
8196 correctly; discard information for now, since it only affects the
8197 debugging information.
8198 (tag_find_or_name): Don't insert tags in the symbol table.
8199 (yank_symbols): Don't merge labels.
8200 (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
8201 already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
8202 set segment address if ZERO_BASED_SEGMENTS.
8203 (obj_coff_section): Accept and ignore a trailing quoted string, as
8204 used in AT&T i386 syntax.
8205 (fixup_segment): Take segment as argument. On the i386, adjust PC
8206 relative addends by the segment vaddr.
8207 * tc-i386.h: Define SUB_SEGMENT_ALIGN.
8208 * tc-a29k.h: Define ZERO_BASED_SEGMENTS.
8209 * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
8210
8211 Tue Dec 8 00:06:48 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
8212
8213 * config/obj-coffbfd.c: Include libcoff.h.
8214
8215 * version.c: Now version 1.93.
8216
8217 Mon Dec 7 00:39:09 1992 Ken Raeburn (raeburn@cygnus.com)
8218
8219 * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do
8220 power-of-two alignment for .align.
8221
8222 * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial,
8223 and leave everything else alone.
8224
8225 Fri Dec 4 16:58:42 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
8226
8227 * Makefile.in (as.new): Don't bother saving as.old.
8228
8229 * write.c: Conditionalize on OBJ_VMS, not VMS.
8230 (magic_number_for_object_file): Don't define if OBJ_VMS.
8231
8232 * config/obj-vms.c: Changes for traditional C.
8233
8234 Thu Dec 3 01:24:07 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8235
8236 * config/ho-generic.h (malloc, realloc): Declare.
8237
8238 * Lots of comment/whitespace changes.
8239
8240 * write.h (struct fix): Some fields reordered, narrowed.
8241
8242 * read.c (MASK_CHAR): Define using C types, not magic number.
8243
8244 * as.c, input-file.c: Deleted some unused code.
8245
8246 * app.c, as.h: Doc fix.
8247
8248 * flonum-konst.c, flonum-mult.c: Include ansidecl.h.
8249
8250 * as.h (xmalloc): Argument is long.
8251
8252 * xmalloc.c (error): Remove declaration; as.h takes care of it.
8253
8254 * doc/as.texinfo: Regrouped documentation of some command-line
8255 options. Updated options documentation for m68k. Some minor
8256 wording/punctuation changes.
8257
8258 Mon Nov 30 11:42:11 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
8259
8260 * configure.in: Accept target OS "vms".
8261
8262 * symbols.c: Merged ANSI and non-ANSI function decls, using
8263 PARAMS macro.
8264
8265 * xmalloc.c: Just include as.h, don't bother trying to figure out
8266 other header files.
8267
8268 * strstr.c, strerror.c: Deleted.
8269 * Makefile.in: Deleted references.
8270
8271 * config/tc-ns32k.c: Don't include header file for string
8272 declarations; leave that to ho-*.h.
8273
8274 Fri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com)
8275
8276 * config/coff_gnu.h [TC_I860]: Guesses for reloc type values,
8277 imported from FSF sources.
8278
8279 * messages.c (strerror): Declare unconditionally.
8280
8281 * as.h: Delete alloca and register definitions.
8282
8283 * config/atof-ieee.c (mask): Now const.
8284
8285 * obstack.c, obstack.h: Deleted.
8286
8287 * as.h (flag_readonly_data_in_text): New flag.
8288 * as.c (main): Set it for -R.
8289
8290 * as.h (flag_suppress_warnings): New flag.
8291 * as.c (main): Set it for -W.
8292 * messages.c (as_warn): Check it instead of flagseen['W'].
8293
8294 * as.h (flag_always_generate_output): New flag.
8295 * as.c (main): Set it for -Z.
8296
8297 * config/tc-sparc.h: Define NEED_FX_R_TYPE.
8298 * config/tc-a29k.h: Ditto.
8299 * write.h (struct fix): Don't conditionalize fx_r_type field on TC
8300 macros.
8301
8302 * as.h: Merged ANSI and non-ANSI function decls, using PARAMS
8303 macro.
8304 * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h,
8305 obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h,
8306 write.h: Likewise.
8307 * read.c: Likewise.
8308
8309 * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in
8310 xrealloc from xrealloc.c.
8311 * xrealloc.c: Deleted.
8312 * Makefile.in (REAL_SOURCES, OBJS): Adjusted.
8313
8314 * configure.in: For host CPU a29k, rs6000, vax, consider using bsd
8315 or vms ho- files.
8316
8317 * config/ho-sysv.h (setbuffer, HO_USG): Deleted.
8318
8319 * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer;
8320 don't initialize it with NULL.
8321
8322 * config/ho-vax.h (M_VAX): Deleted; was unused.
8323
8324 * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h:
8325 New files imported from FSF version, contributed by Eric Youngdale.
8326 * README-vms-dbg, config/vms: Deleted.
8327
8328 * ChangeLog, config/ChangeLog: Merged.
8329
8330 * config/*tahoe*, configure.in: Tahoe support brought in from FSF
8331 version.
8332
8333 * input-file.c (input_file_open): Eliminate call to setvbuf.
8334 [USG] (setbuffer): Deleted macro.
8335
8336 Mon Nov 23 11:00:16 1992 Ken Raeburn (raeburn@cygnus.com)
8337
8338 * all files: Whitespace changes for GNU indentation style, done by
8339 GNU `indent'. Some cleanup still needed, especially of comments.
8340
8341 * configure.in: No te-386bsd.h file exists; don't try to use it.
8342
8343 * obj-coff.c (obj_coff_endef): Use as_warn, not fprintf.
8344
8345 * tc-m68k.c (md_assemble): Don't complain about 68000 with 68881;
8346 could be doing emulation.
8347
8348 Thu Nov 19 11:47:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8349
8350 z8000 documentation
8351 * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo:
8352 all modified.
8353
8354 Tue Nov 10 09:49:24 1992 Ian Lance Taylor (ian@cygnus.com)
8355
8356 * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h.
8357
8358 * subsegs.h: add extern to segment_info declaration.
8359
8360 * read.h: added extern declarations for comment_chars,
8361 line_comment_chars, and line_separator_chars.
8362 read.c, app.c: removed definitions of comment_chars,
8363 line_comment_chars, and line_separator_chars.
8364
8365 * tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined,
8366 still accept (but don't require) OPTIONAL_REGISTER_PREFIX before
8367 the register name.
8368 (insert_reg): put REGISTER_PREFIX before register names before
8369 putting them in the symbol table.
8370 * tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not
8371 M68KCOFF.
8372
8373 * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss
8374 section.
8375
8376 * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS,
8377 comment_chars, line_comment_chars and line_seperator_chars
8378 consistently const, and always initialized them. Included read.h.
8379
8380 Thu Nov 5 17:55:41 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
8381
8382 * tc-sparc.c (sparc_ip): Add code to flag error if an absolute
8383 constant will not fit in an immediate field.
8384 (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow.
8385
8386 Wed Nov 4 07:50:46 1992 Ken Raeburn (raeburn@cygnus.com)
8387
8388 * obj-coff.c (callj_table): Delete global variable.
8389 (obj_emit_relocations): Define it locally here, and only if
8390 TC_I960 is defined.
8391
8392 * tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name.
8393 (m68k_ip): Don't warn about bignum used as float bit-pattern.
8394
8395 * obj-coff.c: Replaced ANSI and non-ANSI function declarations
8396 with a single set using PARAMS macro.
8397
8398 * tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length
8399 of 2.
8400
8401 * tc-i960.c: Missed a couple of 0->NO_RELOC conversions.
8402
8403 * tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values,
8404 so widening works consistently.
8405
8406 Wed Oct 28 08:52:34 1992 Ken Raeburn (raeburn@cygnus.com)
8407
8408 * version.c: Put conditional "const" before version_string, not
8409 before dummy function for VMS. Now version 1.91.03.
8410
8411 * app.c (do_scrub_next_char): Need double-\ before `000' to show
8412 printed rep of null character.
8413
8414 Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
8415
8416 * obj-coffbfd.c (write_object_file): check return value of
8417 bfd_close_all_done.
8418
8419 Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
8420
8421 * Support for i386-sysv.
8422 obj-coffbfd.c (do_relocs_for, write_object_file): set segment
8423 addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can
8424 be used to set them all to zero as was done before.
8425 (fill_section): segment addresses now set in write_object_file.
8426 (fill_section): Don't set STYP_NOLOAD for .bss section.
8427 (fixup_segment): 386 uses strange common symbol format.
8428 tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
8429 compatibility with SVR3.2 linker.
8430 * configure.in: i386-sysv and i386-sco use coffbfd.
8431
8432 * app.c (do_scrub_next_char): discard whitespace after a label.
8433
8434 Sat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8435
8436 * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4
8437 hosts, use the sysv configuration for solaris2
8438
8439 Mon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8440
8441 fix i960+non-bfd coff bit rot.
8442 * obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
8443 support for C source listings. (obj_coff_endef): look in the right
8444 part of the symbol for the symbol name
8445
8446 * tc-m68k.c (get_num): make it work for all segments, not just the
8447 first three.
8448
8449 Mon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
8450
8451 * configure.in: recognize i386-*-bsd emulation.
8452
8453 Thu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8454
8455 * configure.in: use the cpu-vendor-os triple for host and target
8456
8457 Tue Sep 29 12:22:52 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8458
8459 * obj-coffbfd.c (write_object_file): don't fixup for the z8k
8460 * tc-z8k.c: lots of bug fixes
8461
8462 Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
8463
8464 * tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
8465 #elif, since it is not supported by old compilers.
8466 ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
8467 couple of expressions in tc-m68k.c.
8468
8469 Mon Sep 28 21:18:24 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
8470
8471 * read.c (cons): If NO_RELOC is defined, use it.
8472
8473 * tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new.
8474
8475 Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
8476
8477 * tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
8478 local labels to start with a .) and set REGISTER_PREFIX to %.
8479 tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
8480
8481 Fri Sep 25 17:53:43 1992 John Gilmore (gnu@cygnus.com)
8482
8483 * messages.c: Comment changes.
8484
8485 Fri Sep 25 14:12:58 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
8486
8487 * as.h: Test if __STDC__ is defined only, don't test its value.
8488 * messages.c: If __STDC__ is not defined, define NO_STDARG.
8489
8490 Thu Sep 24 12:42:32 1992 Brendan Kehoe (brendan@rtl.cygnus.com)
8491
8492 * listing.c (debugging_pseudo): Add stabs and stabn as things to
8493 ignore.
8494
8495 Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
8496
8497 * obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
8498 sections starting from zero, rather than making them consecutive.
8499 This makes subsequent reloc calculations easier, esp if the object
8500 format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily)
8501 allocate lcomm in .data rather than in .bss. It seems that some
8502 tools can't cope with a non-zero sized bss before linkage.
8503
8504 Tue Sep 22 15:10:51 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
8505
8506 * tc-m68k.c: Replace "enum m68k_architecture" with "int"
8507 throughout. That enum no longer means what we thought it meant.
8508
8509 * tc-m68k.c (md_assemble, md_parse_option): Handle new
8510 "-mno-688[58]1" options.
8511
8512 * tc-m68k.c: Added CPU32 support.
8513
8514 Fri Sep 18 08:02:18 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8515
8516 * tc-m68k.c (m68k_ip): An(disp) is not pc relative.
8517
8518 Tue Sep 15 17:25:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
8519
8520 * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES.
8521 Change LIBDEPS dependence to LIBS.
8522
8523 Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com)
8524
8525 * Makefile.in (install): if $(tooldir) exists, install as in
8526 $(tooldir)/bin.
8527
8528 Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
8529
8530 * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
8531 .word is < -32768 or > 32767. The -J flag causes the error to be
8532 ignored. This is to catch over-sized switches generated by gcc on
8533 systems which don't support the broken .word hack.
8534 as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
8535 write.c (fixup_segment): check for signed .word overflow if
8536 WARN_SIGNED_OVERFLOW_WORD.
8537
8538 * write.c (fixup_segment): fixed missing parens in expression
8539 checking for byte or word overflow.
8540
8541 * obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
8542 obj-coffbfd.c (fixup_segment): check for signed .word overflow if
8543 WARN_SIGNED_OVERFLOW_WORD.
8544
8545 * obj-coffbfd.c (fixup_segment): fixed missing parens in
8546 expression checking for byte or word overflow.
8547
8548 Fri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8549
8550 Support for i386 coff
8551 * obj-coffbfd.h : added stuff
8552 * tc-i386.c (tc_coff_fix2rtype): new function
8553 * tc-i386.h : new coff defines
8554
8555 Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com)
8556
8557 * input-scrub.c (input_scrub_push): call input_file_begin, not
8558 input_scrub_begin.
8559 messages.c (as_perror): print ": " between the passed in error and
8560 the strerror, like perror does.
8561
8562 Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
8563
8564 * Makefile.in: use gas_target instead of modifying target_cpu.
8565 From Steve Chamberlain:
8566 Makefile.in: Handle m68*-*-coff*.
8567 read.c, read.h: add mult argument to s_space
8568
8569 * tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
8570 Motorola and MIT syntax; gas can now assemble either type of
8571 file.
8572 tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
8573 From Steve Chamberlain:
8574 m68kcoff.mt: for m68k COFF.
8575 obj-coffbfd.c: (fixup_mdeps) added
8576 (size_section) removed bad sanity check
8577 (fill_section) added rs_machine_dependent case
8578 (write_object_file) call fixup_mdeps
8579 (fixup_segment) set fx_subsy to 0.
8580 obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
8581 handle m68k.
8582 tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
8583 pseudo ops.
8584
8585 Tue Sep 8 17:10:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
8586
8587 * Makefile.in (LIBS): Include opcode library.
8588
8589 Fri Sep 4 18:20:56 1992 Ken Raeburn (raeburn@cygnus.com)
8590
8591 * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers
8592 including zero are accepted, pass +0.0.
8593
8594 Sun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com)
8595
8596 * Makefile.in: map "as" through program_transform_name when
8597 installing.
8598
8599 * doc/Makefile.in: map "as" through program_transform_name when
8600 installing.
8601
8602 Sat Aug 29 12:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
8603
8604 * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
8605
8606 Fri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com)
8607
8608 * obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
8609 tc-i960.c (md_ri_to_chars): Always output bout object file in
8610 little endian byte order (used to use endianness of host).
8611
8612 Tue Aug 25 15:50:48 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
8613
8614 * config/tc-m68k.c (init_table): Now const. Always include 68851
8615 data, so that "bc" is available to 68040 cache instructions.
8616 Added "tt0", "tt1", and 68ec030 variants.
8617 (md_assemble): Complain if 68000 (only) and 68881 are specified.
8618 (enum _register): Added TT0, TT1.
8619 (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass
8620 line number correctly in "internal error" messages. Don't print
8621 architecture-mismatch message for operand errors.
8622
8623 From Colin Smith (colin@wrs.com):
8624 * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather
8625 than install_operand.
8626
8627 Tue Aug 25 15:13:48 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8628
8629 * listing.c (buffer_line): rewind to the start of include
8630 files, they might be included twice.
8631
8632 * z8k.c, z8k.h, z8k.mt: z8000 support stuff
8633
8634 Mon Aug 24 12:45:43 1992 Ian Lance Taylor (ian@cygnus.com)
8635
8636 * Makefile.in: defined TARGET_CPU for C code so that it can choose
8637 one element of a family.
8638
8639 * tc-m68k.c: use TARGET_CPU to choose default cpu type.
8640
8641 * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
8642 so that we can assemble hand-written libgcc code.
8643
8644 Fri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
8645
8646 * messages.c (as_warn): Use fputs, not fprintf, with a buffer that
8647 has already been formatted (but may still contain %-characters).
8648 (as_bad): Likewise.
8649
8650 Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
8651
8652 * tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
8653 written with indirection on the last two operands, which can be
8654 either data or address registers. Added a new operand type 'r'
8655 which accepts either register type. Added '(' to notend stuff in
8656 tc-m68kmote.c to accept (a0):(a2) in cas2 instruction.
8657
8658 Wed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com)
8659
8660 * as.h (enum _relax_state): Start off at one, not zero, to better
8661 catch uninitialized-variable errors.
8662 (linkrelax): Declare new variable.
8663
8664 * messages.c (warning_count, error_count): Default initializer is
8665 sufficient.
8666
8667 * write.c: Merged some declarations, using PARMS macro.
8668 (text_frag_root, data_frag_root, bss_frag_root, text_last_frag,
8669 data_last_frag): No longer static.
8670 (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is
8671 defined, call it. Change segments before calling fixup_segment.
8672 (relax_align): If linkrelax, provide extra padding.
8673
8674 * obj-bout.c (obj_emit_relocations): Emit alignment relocs despite
8675 their not having symbols associated.
8676
8677 * tc-i960.c (norelax, instrument_branches): Default initializer is
8678 sufficient.
8679 (linkrelax): Delete variable definition.
8680 (mem_fmt): Call fix_new with NO_RELOC.
8681 (tc_bout_fix_to_chars): Handle alignment relocs.
8682 (i960_handle_align): New function.
8683 * tc-i960.h (linkrelax): Delete declaration.
8684 (HANDLE_ALIGN): New macro; calls i960_handle_align.
8685 (NEED_FX_R_TYPE, NO_RELOC): New macros.
8686
8687 Tue Aug 18 14:59:21 1992 Ken Raeburn (raeburn@cygnus.com)
8688
8689 * config/sparc.mt: New file. Grab sparc opcode table from bfd
8690 library.
8691
8692 Tue Aug 18 14:16:38 1992 Ian Lance Taylor (ian@cygnus.com)
8693
8694 * Makefile.in: always create installation directories. Removed
8695 MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
8696 FLAGS_TO_PASS to recursive makes.
8697
8698 * doc/Makefile.in: always create installation directories.
8699
8700 Mon Aug 17 15:09:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8701
8702 * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was
8703 being used with args swapped, causing occasional lossage when
8704 refilling buffers after an include file.
8705
8706 Mon Aug 17 13:18:51 1992 Ken Raeburn (raeburn@cygnus.com)
8707
8708 * messages.c (as_tsktsk): Use correct ANSI form for stdarg
8709 version. Discard bogus DONTDEF version.
8710 (as_warn, as_bad, as_fatal): Likewise.
8711
8712 Fri Aug 14 18:31:14 1992 Ken Raeburn (raeburn@cygnus.com)
8713
8714 * config/tc-m68k.c (m68k_ip): If instruction is invalid for the
8715 selected architecture, print a message saying so and listing what
8716 processors support it, rather than saying "operands mismatch".
8717
8718 Thu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com)
8719
8720 * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
8721
8722 * config/ho-rs6000.h (M_RS6000): Don't define it.
8723 (free): Declare it.
8724 (BROKEN_ASSERT): Define it if not __STDC__.
8725
8726 Tue Aug 11 12:58:14 1992 Ken Raeburn (raeburn@cygnus.com)
8727
8728 * sparc.mt: New file.
8729
8730 Mon Aug 10 14:37:08 1992 Per Bothner (bothner@cygnus.com)
8731
8732 * tc-m68k.c: ".align N" means align to N-byte boundary *only*
8733 if TN_SUN3; otherwise align to 2**N-byte bounary.
8734
8735 Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8736
8737 * read.c (s_fill): make the .fill size clamped error a warn and
8738 fix bug where 0's were always placed.
8739
8740 * config/tc-h8300.c: if a :8 is seen after an operand, fill top
8741 two bytes of any constant with 0xff:
8742
8743 Wed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8744
8745 * config/tc-m68k.c (md_pseudo_table): fix the .align thing
8746 the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo.
8747
8748 Wed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com)
8749
8750 * tc-m68k.c (try_index): Error if index scaling specified and
8751 assembling for an older CPU than a 68020.
8752
8753 Sat Aug 1 19:10:13 1992 Ken Raeburn (raeburn@cygnus.com)
8754
8755 * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take
8756 fx_offset into account.
8757
8758 Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com)
8759
8760 * configure.in (mips host): Accept "ultrix" with version number.
8761
8762 * expr.c (floating_constant): Separate "=-" to avoid confusing
8763 ancient or broken compilers.
8764
8765 * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
8766 processor/opcode mismatch, so reword the error message.
8767 (md_assemble): If no CPU has been set (even if FPU/PMMU
8768 characteristics have been), default to 68020. Don't need extra
8769 quotes around error string.
8770
8771 Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
8772
8773 * read.c (potable): Revert sac's incorrect change made Jul 13.
8774 Align really is supposed to be ptwo not nbytes.
8775
8776 Mon Jul 20 02:51:59 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
8777
8778 * Makefile.in: _Do_ include libiberty. (from sef)
8779
8780 Fri Jul 17 15:15:28 1992 Ken Raeburn (raeburn@cygnus.com)
8781
8782 * expr.c (integer_constant): Handle "0f" and "0b" label references
8783 properly.
8784
8785 Thu Jul 16 08:20:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8786
8787 * write.c (fixup_segment): if relaxing, don't do anything.
8788 * config/obj-bout.[ch] : maintain the a_relaxable file header info
8789 * config/tc-i960.c: new option -linkrelax
8790
8791 Mon Jul 13 14:11:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8792
8793 * expr.c (expr): allow SEG_BSS in expressions
8794 * read.c (potable): align should be nbytes, not ptwo!
8795 * write.c (write_object_file): extra glue for new bss attributes
8796 (relax_segment): SEG_BSS is ok now
8797 * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes
8798
8799 Mon Jul 6 17:09:32 1992 Steve Chamberlain (sac@cygnus.com)
8800
8801 * obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT
8802
8803 Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
8804
8805 * configure.in: recognize m680x0 as having sun3 emulation mode for
8806 vxworks environment.
8807
8808
8809 Tue Jun 30 20:25:54 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
8810
8811 * Makefile.in: Add program_suffix (parallel to program_prefix)
8812
8813 Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8814
8815 * app.c (process_escape): new function to handle escapes the right
8816 way, (do_scrub_next_char): use new function
8817 * cond.c (s_ifdef): do ifdef/ifndef right
8818 * read.c (s_fill): make the , expressions optional like the doc
8819 says
8820 * config/tc-h8300.[ch]: better warnings
8821
8822 Tue Jun 9 07:54:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8823
8824 * subsegs.c (subsegs_begin): create bss0_frchainP in the same was
8825 as data0_frchainP
8826
8827 * write.c (write_object_file): various changes to handle data in
8828 the BSS segment in much the same was as stuff in the DATA segment.
8829
8830 * tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do
8831 pcrel data stuff. (md_estimate_size_before_relax): when relaxing a
8832 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into
8833 the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put
8834 it into SEG_BSS
8835
8836 Thu Jun 4 11:59:13 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8837
8838 * expr.c(expr): allow SEG_REGISTER in expressions.
8839 * read.c(pseudo_set): register expressions can be the source of a
8840 set.
8841 * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to
8842 goto SEG_TEXT (if a.out)
8843 * write.c (write_object_file): If a.out don't use the old way for
8844 -R.
8845 * config/obj-a.out (s_sect): complain if the user tries to use a
8846 subsegment with a value which might interfere with out -R hackery.
8847 * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table
8848 rather than use ugly if tree. (init_regtable): insert register
8849 names into symbol table.
8850
8851 Tue Jun 2 16:47:09 1992 Steve Chamberlain (sac@cygnus.com)
8852
8853 * write.c (write_object_file): keep the fix_tail clean, which
8854 fixes a bug in -R where relocations were being lost.
8855
8856 Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
8857
8858 * configure.in: recognize m680x0 as having sun3 emulation mode for
8859 vxworks environment.
8860
8861 Sun May 31 05:33:00 1992 david d `zoo' zuhn (zoo@cygnus.com)
8862
8863 * configure.in: recognize m680x0 as an m68k
8864
8865 Thu May 28 11:22:02 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
8866
8867 * configure.in: Recognize sparclite as a sparc variant.
8868
8869 * tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new
8870 -Asparclite flag.
8871
8872 Tue May 26 16:47:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8873
8874 * config/tc-a29k.c: lint
8875 * listing.c, expr.c: patches from Andrew Smith
8876
8877 Thu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com)
8878
8879 * doc/Makefile.in: use m4 rather than gm4.
8880
8881 Mon May 4 18:56:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8882
8883 * obj-coffbfd.c: use is a synonym for section, (do_relocs_for):
8884 calc the base of relocs correctly.
8885 * tc-a29k.c (parse_operand): allow expressions to be in any section.
8886
8887 Mon Apr 27 13:13:31 1992 K. Richard Pixley (rich@cygnus.com)
8888
8889 * as.c, write.c: use -K rather than -k for the broken word warning
8890 option.
8891
8892 Tue Apr 21 13:35:30 1992 K. Richard Pixley (rich@cygnus.com)
8893
8894 * Makefile.in: do not print recursion lines.
8895
8896 Wed Apr 15 21:19:31 1992 K. Richard Pixley (rich@rtl.cygnus.com)
8897
8898 * Makefile.in: the tooldir copy of gas goes directly in tooldir.
8899
8900 Tue Apr 14 14:50:22 1992 Ken Raeburn (Raeburn@Cygnus.COM)
8901
8902 * write.c (write_object_file): For b.out format, round up section
8903 start addresses to match required alignment.
8904
8905 Thu Apr 9 05:45:29 1992 Ken Raeburn (Raeburn@Cygnus.COM)
8906
8907 * Makefile.in (install): Install into $(tooldir)/bin, since that's
8908 where gcc looks for it.
8909
8910 Tue Apr 7 15:12:15 1992 Sean Eric Fagan (sef@cygnus.com)
8911
8912 * Makefile.in: Changed some lines to be less confusing for some
8913 makes.
8914
8915 * input-file.c: Conditionalize on _IOFBF, not VMS.
8916
8917 * read.c, write.c: Change a series of ifdef/elif to
8918 ifdef/else/ifdef etc.
8919
8920 Fri Mar 27 12:21:16 1992 K. Richard Pixley (rich@cygnus.com)
8921
8922 * symbols.c (fb_label_init): fix sizeof to memset.
8923
8924 Fri Mar 13 15:45:44 1992 K. Richard Pixley (rich@cygnus.com)
8925
8926 * Makefile.in: install the man page.
8927
8928 * Makefile.in: pass down MAKEINFO explicitly on info.
8929
8930 * doc/Makefile.in: use $(MAKEINFO) not makeinfo.
8931
8932 Fri Mar 13 08:03:03 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8933
8934 * flonum-const.c: renamed flonum-konst.c to stop dos name
8935 conflict.
8936
8937 Thu Mar 12 04:42:38 1992 K. Richard Pixley (rich@cygnus.com)
8938
8939 * tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
8940 tc-m68k.h to te-sun3.h.
8941
8942 Wed Mar 11 23:32:42 1992 K. Richard Pixley (rich@cygnus.com)
8943
8944 * configure.in: vxworks68 gets te-sun3.h.
8945
8946 * expr.c: remove limitation that local_labels_dollar or
8947 local_labels_fb must be < 10.
8948
8949 * symbols.c: remove local_labels_dollar, replace with a function
8950 interface for a sparse array. All users adjusted.
8951
8952 * te-sun3.h: add LOCAL_LABELS_DOLLAR.
8953
8954 Sat Mar 7 00:06:25 1992 K. Richard Pixley (rich@rtl.cygnus.com)
8955
8956 * doc/Makefile.in: commented out line for building as-all.texinfo.
8957 This is temporary.
8958
8959 * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks.
8960
8961 Fri Mar 6 21:57:18 1992 K. Richard Pixley (rich@cygnus.com)
8962
8963 * Makefile.in: added check target.
8964
8965 Tue Mar 3 15:45:56 1992 K. Richard Pixley (rich@rtl.cygnus.com)
8966
8967 * Makefile.in: added tooldir and program_prefix.
8968
8969 Sun Mar 1 04:43:19 1992 Michael Tiemann (tiemann@cygnus.com)
8970
8971 * write.{c,h} (fix_new): Make these declarations consistent.
8972
8973 Sat Feb 29 13:59:10 1992 Michael Tiemann (tiemann@cygnus.com)
8974
8975 * Makefile.in (strerror.o): Add rule so that broken Sun make can
8976 work in subdirs.
8977
8978 Wed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com)
8979
8980 * read.c, obj-coffbfd.c : fix h8300 specific bit rot
8981
8982 * expr.c (operand): if can't work out what sort of operand it is,
8983 then look through FLT_CHARS for a hint.
8984
8985 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
8986
8987 * Makefile.in, configure.in: removed traces of namesubdir,
8988 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
8989 copyrights to '92, changed some from Cygnus to FSF.
8990
8991 * doc/Makefile.in, doc/configure.in: removed traces of namesubdir,
8992 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
8993 copyrights to '92, changed some from Cygnus to FSF.
8994
8995 Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8996
8997 * expr.c: If an expression is single comma, then return with
8998 SEG_ABSENT rather than an error - since the sparc front end does
8999 really strange things with things like fbge,a
9000
9001 * as.h: include bfd.h if using many sections
9002 * expr.c: LOCAL_LABELS_FB had been changed to lower case - so
9003 local labels didn't work.
9004 * listing.c (list_symbol_table): don't core dump when there's no
9005 symbol there.
9006 * write.c, write.h: call fix_new with the right number of args on
9007 the H8.
9008 * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
9009 errors nices
9010
9011 Sat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9012
9013 * app.c: MRI compatibility - allow single quote to start a string.
9014 * as.c: fix typo recently introduced.
9015 * as.h : Don't include aout/reloc.h - it's not right for COFF!
9016 * expr.c: Much rewriting, to accomodate MRI syntax for
9017 expressions. Also easier to read now.
9018 * listing.c: Put back defuns
9019 * read.c: modified to accept MRI syntax, put back listing pseudo
9020 ops so that an assembler built with NO_LISTING ignores list ops
9021 rather than pukes.
9022 * write.c, write.h: fixs - only keep a reloc type in a fix if the target
9023 machine is a SPARC or a 29K.
9024 * config/obj-aout.c: added s_sect pseudo op
9025 * config/obj-coffbfd.c: lints, set the filehdr flags right and
9026 fill in the timestamp.
9027 * config/obj-coffbfd.h: Since we don't include aout/reloc.h
9028 anymore, define all the relocs which the tc-<x> bit will use so we
9029 can translate from them to the coff types.
9030 * config/tc-a29k.c: reloc_type isn't ane enum any more
9031 * config/tc-m68k.c: Added NO_RELOC definition.
9032
9033 Fri Feb 21 06:21:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9034
9035 * Makefile.in: put header files before C source for TAGS; remove
9036 references to non-existent syscalls.h.
9037
9038 * read.c, write.c subsegs.c: back out the .bss changes.
9039
9040 * obj-aout.c: do not include stab.gnu.h if NO_LISTING.
9041
9042 * tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place.
9043
9044 * a.out.h: removed.
9045
9046 Fri Feb 21 01:08:48 1992 Minh Tran-Le (TRANLE@INTELLICORP.COM)
9047
9048 * symbols.c (local_label_name): symbols now start with ^A.
9049
9050 * read.c, subsegs.c, write.c obj-coff.c: added handling of
9051 `.bss` pseudo op for unitialized data. The new gcc (1.37.9x)
9052 generate these sections. .align: will use NOP_OPCODE or 0
9053 for padding. This is just for being nice to the
9054 disassembler.
9055
9056 * expr.c (operand): changed to generate local label "\001L0"
9057 starting with a ^A so that it is recognized as a local label.
9058
9059 * as.c (perform_an_assembly_pass): zero bss_fix_root, too.
9060
9061 * tc-i386.c: tc-i386.c: added handling of the following opcodes:
9062 i/o opcodes - inb, inw, outb and outw. string manipulation with
9063 att syntax - scmp, slod, smov, ssca, ssto.
9064
9065 * obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss
9066 to just after .file .
9067
9068 In obj_crawl_symbol_chain() where it tries to put the external
9069 symbols apart, with the condition:
9070 (!S_IS_DEFINED(symbolP) &&
9071 !S_IS_DEBUG(symbolP) &&
9072 !SF_GET_STATICS(symbolP))
9073 it was moving too many symbols out. So I switch it back to the
9074 condition:
9075 (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP))
9076
9077 In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO
9078 so that we don't use the F_RELFLG which make the linker complain
9079 that somebody has stripped the relocation info.
9080
9081 Also, the AIX ld program require that the relocation table
9082 is sorted by r_vaddr like the standard ATT assembler does.
9083
9084 [he also changed the sizeof(struct ...)'s into the coff
9085 style FOOSZ macros. I'm not sure this is right, but I can't
9086 remember why. xoxorich.]
9087
9088 Fri Feb 21 01:08:48 1992 K. Richard Pixley (rich@cygnus.com)
9089
9090 * Makefile.in, configure.in, doc: use the doc. Build it, install
9091 it, clean it, etc.
9092
9093 Tue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com)
9094
9095 * read.c: white space and comments only.
9096
9097 * configure.in: use the new atof-ns32.c for ns32k.
9098
9099 * write.c: comment change only.
9100
9101 * tc-m88k.[hc]: pulled in from hack's unfinished work. These
9102 aren't yet integrated.
9103
9104 * tc-i860.[hc]: blew off the dust. Something must still be done
9105 about conflicting relocation types.
9106
9107 * tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the
9108 real thing.
9109
9110 * tc-i960.c, tc-sparc.c: white space and comments only.
9111
9112 * tc-a29k.h: delete duplicate macro definition.
9113
9114 * new file atof-ns32k.c copied from hack's last unreleased gas.
9115
9116 Mon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com)
9117
9118 * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work
9119 rather than abort.
9120
9121 * nearly everything. flush ChangeLog, package as gas-1.92.1.
9122 ChangeLog's prior to this are sketchy at best. I have logs.
9123 They just aren't ChangeLogs.
9124
9125 \f
9126 Local Variables:
9127 mode: indented-text
9128 left-margin: 8
9129 fill-column: 74
9130 version-control: never
9131 End: