* doc/Makefile.in (clean, distclean): Remove asconfig.texi.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 Mon Apr 25 16:19:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2
3 * doc/Makefile.in (clean, distclean): Remove asconfig.texi.
4
5 Sun Apr 24 00:13:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6
7 * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break
8 instruction) is unsigned.
9
10 Fri Apr 22 17:58:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
11
12 * config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value
13 and bfd_ecoff_set_regmasks to set the GP value and the register
14 masks, rather than using the now obsolete fake .reginfo section.
15
16 Fri Apr 22 15:17:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
17
18 * listing.c (list_symbol_table): Don't print register symbols as
19 undefined.
20
21 * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip
22 underscores, since symbol_new will already have done it.
23 * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto.
24
25 * as.c (main): If tc_init_after_args is defined, invoke it after
26 all arguments have been processed.
27
28 Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
29 * as.c (perform_an_assembly_pass) [TE_APOLLO]: Create .wtext
30 section instead of .text. Call create_target_segments.
31 * read.c (demand_copy_string): No longer static.
32
33 Thu Apr 21 15:50:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
34
35 * config/tc-mips.c (append_insn): Permit branches to be switched
36 with the preceding instruction even if .set nobopt has been seen.
37 .set nobopt actually controls whether to bring up an instruction
38 from the branch target, which gas does not currently support.
39
40 Wed Apr 20 18:46:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
41
42 * config/obj-coff.h, config/obj-coff.c: Deleted all code used only
43 when BFD_ASSEMBLER is not defined, and all conditionals relating
44 to such code. No such targets remain.
45
46 Fixes for stabs-in-coff:
47 * config/obj-coff.c: Include subsegs.h.
48 (coff_frob_section): New function.
49 (obj_coff_init_stab_section): New function.
50 * config/obj-coff.h (obj_coff_init_stab_section,
51 coff_frob_section): Declare.
52 (obj_frob_section): New macro; uses coff_frob_section.
53 (INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section.
54
55 * config/tc-sparc.c (md_section_align): Always round up to
56 multiple of alignment power specified in bfd target vector.
57
58 * gasp.c: Include ctype.h.
59
60 Mon Apr 18 21:08:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
61
62 * doc/Makefile.in, doc/as.texinfo: Renamed asdoc-config.texi to
63 asconfig.texi.
64
65 * doc/Makefile.in (install-info-as, install-info-gasp): Get file
66 names from source directory without pathname.
67
68 * config/obj-vms.c (VMS_write_object_file): While looking for
69 register mask, skip empty fill frags caused by enabling listing
70 output.
71
72 * config/ho-sysv.h: Include string.h.
73
74 * doc/internals.texi: New (well, recently added) file. Just added
75 info on as_warn and friends.
76
77 Mon Apr 18 14:28:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
78
79 * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in
80 defaults for defined, private, and spnum fields for the
81 $TEXT$ and $PRIVATE$ spaces. Do not clobber spnum. Do
82 not reset the segment if just updating a space.
83 (pa_spaces_begin): Set BFD section flags for all built-in
84 subspaces.
85
86 Fri Apr 15 10:51:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
87
88 * ecoff.c (first_proc_ptr): New static variable.
89 (add_procedure): Set first_proc_ptr if it hasn't been set.
90 (ecoff_build_lineno): If the first procedure does not start at
91 address zero, insert a dummy line to compensate.
92
93 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
94 as well as as.new.
95
96 Thu Apr 14 15:12:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
97
98 * expr.c (operand): Try to parse "0f" and "0b" sequences as
99 floating point and binary numbers respectively; if it doesn't
100 work, treat them as local labels.
101
102 * Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
103 * configure.in: Set ALL_OBJ_DEPS in output Makefile.
104
105 Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu>
106 (Charles Bailey):
107 * vmsconf.sh: In generated file, get ".obj" suffix right, build
108 source files from other directories into objects in the current
109 directory, and specify PSECT attributes explicitly to linker.
110 Also added missing label.
111 * Makefile.in (stamp-mk.com): Reference new variable
112 VMS_OTHER_OBJS for list of non-local object files, instead of
113 listing them here.
114 (VMS_OTHER_OBJS): New variable, added more libiberty files.
115 * make-gas.com: Regenerated.
116
117 * config/ho-vms.h (unlink): Define as delete.
118
119 * config-gas.com: Fix quoting on TARGET_CANONICAL definition.
120 Delete files before creating them.
121
122 Thu Apr 14 13:34:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
123
124 * Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.
125
126 * config/tc-mips.h (DIFF_EXPR_OK): Define.
127 * config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
128 certain cases of 'i', 'j' and 'o'. Change 'u' to take an
129 argument, the reloc type.
130 (load_register): Pass reloc type to macro_build for 'u'.
131 (macro): Likewise. For M_LA_AB permit a difference expression
132 when generating embedded PIC code between an arbitrary symbol and
133 a symbol in the .text section.
134 (mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
135 BFD_RELOC_PCREL_LO16 to be emitted.
136 (md_apply_fix): Check that most relocs are not PC relative.
137 Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
138 (tc_gen_reloc): Change #error to as_fatal. Handle
139 BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
140
141 Tue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com)
142
143 * subsegs.c (subsegs_begin): Call memset with args in the correct
144 order.
145 (subseg_get): Clear newly allocated seginfo, set its pointer slots
146 to NULL instead of 0.
147
148 Mon Apr 11 09:00:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
149
150 * config/tc-hppa.c (pa_procend): Handle case where label was
151 defined after the .proc directive.
152
153 * config/tc-hppa.c (pa_procend): Give an error if we encounter a
154 procend for a procedure without a name.
155
156 Thu Apr 7 14:28:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
157
158 * config/tc-mips.c (macro): Pass NULL for expression argument to
159 macro_build for nori case.
160 (SWITCH_TABLE): Define.
161 (mips_force_relocation): Force a relocation for a switch table
162 entry.
163 (md_apply_fix): Write switch table entry value into file.
164 (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry,
165 and set the addend to the difference between the reloc address and
166 the subtrahend.
167
168 Thu Apr 7 10:38:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
169
170 * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.
171 (elf_tc_make_sections): Likewise.
172 (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls.
173
174 * config/tc-hppa.c (hppa_tc_make_sections): Delete function.
175 (hppa_tc_symbol): Likewise.
176
177 * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and
178 elf_tc_make_sections stuff. It was there to support PA braindamage
179 which has been fixed, and in the case of elf_tc_make_sections is
180 redundant with elf_tc_final_processing.
181
182 Wed Apr 6 20:48:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
183
184 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
185 manufacturer.
186
187 Tue Apr 5 15:48:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
188
189 * config/tc-mips.c (mips_ip): For case 'o', when generating
190 embedded PIC code, accept the difference between two local symbols
191 as being constant.
192 (mips_force_relocation): Only force a reloc to be generated for a
193 PC relative fixup.
194 (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup
195 value into the file if the fixup will not generate a reloc.
196
197 Tue Apr 5 11:14:14 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
198
199 * config/tc-sparc.c (s_reserve): If section passed isn't bss,
200 don't spew remainder of input file in error message.
201 (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error
202 message with reloc type and try to process remainder of file.
203
204 * doc/Makefile.in (install-info-as, install-info-gasp): New
205 targets, now explicitly checking $(srcdir) for info files.
206 (install-info): Depend on both of them; do nothing more.
207
208 Mon Apr 4 17:06:04 1994 Jeffrey A. Law (law@cygnus.com)
209
210 * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.
211
212 Mon Apr 4 12:39:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
213
214 * config/tc-ppc.c (ppc_insert_operand): Check PPC_OPERAND_SIGNED
215 flag rather than signedp field. Only permit extended range if
216 PPC_OPERAND_SIGNOPT flag is set and assembling in 32 bit mode.
217 Based on patch from David Edelsohn (edelsohn@npac.syr.edu).
218
219 * config/tc-ppc.c (ppc_size): New static variable.
220 (ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER.
221 (md_begin): If an instruction has a size specific flag set, only
222 add it if we are assembling that size.
223
224 Thu Mar 31 16:51:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
225
226 * config/tc-sparc.c (tc_gen_reloc): Add a gruesome hack to get
227 cross section PC relative relocs right for COFF and ELF.
228
229 Mon Mar 28 14:38:23 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
230
231 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.
232 (OBJ_PROCESS_STAB): Don't define.
233
234 Mon Mar 28 12:40:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
235
236 * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber
237 the type of symbol set symbols which happen to be in the absolute
238 or undefined section.
239
240 Mon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu)
241
242 * config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka
243 RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604),
244 and -many (all architectures).
245
246 Sun Mar 27 14:04:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
247
248 * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation
249 involving a function symbol which is not a plabel to zero.
250 (md_apply_fix): Never pass a function symbol to field_adjust.
251
252 Fri Mar 25 17:35:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
253
254 * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an
255 N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL.
256
257 * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a
258 branch with an instruction that uses $at, in case the branch is
259 later expanded.
260 (macro): If EMBEDDED_PIC, case M_JAL_A may use $at.
261 (md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol
262 to make it pcrel_offset.
263 (tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to
264 reloc->address; another gruesome hack to get gas reloc handling to
265 do the right thing.
266
267 Thu Mar 24 21:29:29 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
268
269 * config/tc-alpha.c (alpha_ip): Only set GP prolog size if using
270 PV register.
271 (T12): New macro.
272 (emit_insn): New function.
273 (md_assemble): Call it.
274 (alpha_force_relocation): Handle BFD_RELOC_26, for call_pal
275 instructions.
276 (lituse_pending): New variable. Set by anything that generates a
277 LITERAL reloc, cleared by anything that generates a LITUSE reloc,
278 tested by code that might want to emit a LITUSE reloc.
279 (emit_unaligned_io): New function. Currently calls md_assemble,
280 but it should eventually be converted to generate the insn itself
281 and call emit_insn directly.
282 (emit_load_unal, emit_store_unal, emit_byte_manip_r,
283 emit_extract_r, emit_insert_r, emit_mask_r, emit_sign_extend,
284 emit_bis_r): Likewise.
285 (alpha_ip, case 'I'): Handle with BFD_RELOC_23.
286 (alpha_ip, label get_macro): Don't emit the final instruction if
287 the opcode is zero.
288 (alpha_ip, case 'B', subcase 'd'): New case, for subword and
289 unaligned memory access macros.
290 (md_apply_fix): Handle BFD_RELOC_26. Generate an error message if
291 the value can't be resolved.
292
293 Wed Mar 23 16:06:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
294
295 * config/tc-mips.c (md_parse_option): For -membedded-pic, force
296 the -G value to 0x7fffffff. For SVR4 PIC options, don't call
297 bfd_set_gp_size here, it's done in md_begin. Don't permit -G with
298 -membedded-pic.
299 (mips_force_relocation): New function.
300 (md_apply_fix): Set fixP->fx_done appropriately.
301 (s_change_sec): For EMBEDDED_PIC, change .data and .rdata to
302 .sdata.
303 * config/tc-mips.h (TC_FORCE_RELOCATION): Define.
304 (mips_force_relocation): Declare.
305 (TC_HANDLE_FX_DONE): Define.
306
307 Tue Mar 22 13:58:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
308
309 * config/tc-mips.c (enum mips_pic_level): New enum.
310 (mips_pic): Change from int to enum mips_pic_level. Change all
311 uses (0 becomes NO_PIC, 2 becomes SVR4_PIC).
312 (load_address): Handle EMBEDDED_PIC.
313 (macro): Handle EMBEDDED_PIC in all PIC cases.
314 (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If
315 OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept
316 -non_shared to use NO_PIC (this is how the Irix 5 assembler
317 works). Do not permit -G with SVR4_PIC.
318 (s_abicalls): Warn if -G was used, and force -G 0.
319 (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for
320 anything but a.out, not just for ELF. For ECOFF, don't generate a
321 BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.
322
323 * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.
324
325 Sun Mar 20 16:31:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
326
327 * config/tc-hppa.c (create_new_space): Use ints, not chars as
328 parameters to avoid losing when compiling with HP CC.
329 (create_new_subspace, update_subspace, fix_new_hppa): Likewise.
330
331 Sun Mar 20 14:43:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
332
333 * Makefile.in (config-stamp): If `defs' is defined, emit a
334 preprocessor directive to create a macro named by this value into
335 config.new; don't explicitly go for BFD_ASSEMBLER.
336 * configure.in: Define `defs', not `BFDDEF'. Set it to
337 MANY_SEGMENTS for any obj-coffbfd target.
338 * config/obj-coffbfd.h (BFD_HEADERS, BFD): Define.
339 * config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS,
340 or BFD_HEADERS.
341 (LOCAL_LOADLIBES): Deleted.
342 * config/m68kcoff.mt (TDEFINES): Don't define those macros.
343 * config/m88kcoff.mt (TDEFINES): Ditto.
344 * config/ebmon29k.mt: Deleted.
345 * config/h8300hds.mt: Deleted.
346 * config/ic960coff.mt: Deleted.
347 * config/sparc.mt: Deleted.
348 * config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
349 * config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
350 * config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
351 * config/z8k.mt (LOCAL_LOADLIBES): Deleted.
352 (TDEFINES): Don't define the coffbfd macros.
353
354 * Makefile.in: Insert makefile fragments before OBJS definition.
355 (OBJS): Add $(TE_OBJS).
356
357 * config/obj-coff.c (obj_pseudo_table): Supply "section"
358 unconditionally.
359
360 * write.c (set_symtab): Define only if BFD_ASSEMBLER.
361
362 Sun Mar 20 12:06:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
363
364 * Makefile.in (STAGESTUFF): Add gasp.new.
365
366 Fri Mar 18 20:09:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
367
368 * write.c (symbol_table_frozen): New variable, to be set after
369 bfd_set_symtab is called.
370 (dump_section_relocs): Note whether a symbol is a section symbol
371 or not.
372 (adjust_reloc_syms): For now, always supply an absolute symbol for
373 fixups without symbols but not yet `done'. Use section_symbol to
374 get the symbol, instead of going directly for abs_symbol.
375 (write_relocs) [DEBUG4]: Abort if any symbol referred to by a
376 reloc is not a section symbol and is not in the symbol table.
377 (set_symtab): New function, broken out from write_object_file.
378 Counts symbol table instead of relying on an earlier count.
379 (write_object_file): Call set_symtab, but do it after potentially
380 invoking the *_frob_file macros. Don't bother counting symbols.
381 Call symbol_remove, instead of expanding it in place. Moved the
382 conditionalized `object_file_size' declaration down to
383 conditionalized block where it's used. When using the absolute
384 symbol for a fixup without a symbol, set sy_used_in_reloc.
385 (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get
386 the correct symbol for the absolute section.
387
388 * subsegs.c (section_symbol): Use symbol_new instead of
389 symbol_make, since we may want it to go into the symbol table.
390 Make the new symbol have internal linkage. If
391 obj_sec_sym_ok_for_reloc says it's okay, use the BFD section
392 symbol with the newly created GAS symbol.
393 (obj_sec_sym_ok_for_reloc): Default to always returning 0.
394 * config/obj-aout.h (obj_sec_sym_ok_for_reloc) [BFD_ASSEMBLER]:
395 New macro.
396 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): New macro.
397
398 * config/tc-sparc.c: Include subsegs.h.
399 (in_signed_range): New function.
400 (sparc_ip): Use it.
401 (sparc_ip, case 'i'): Use BFD_RELOC_SPARC13, not _BASE13.
402 (sparc_ip, label "immediate"): Reject constants for pcrel
403 instructions only if the relocation type indicates a "call"
404 instruction and the offset is within range of a "jmpl %g0". If
405 it's not in range, use the absolute section symbol plus an offset.
406 (md_apply_fix): Use in_signed_range. Combined _SPARC13 and
407 _BASE13 cases.
408 (tc_gen_reloc): Permit BFD_RELOC_SPARC13.
409
410 * config/ic960coff.mt (TDEFINES): Fixed typo (MANY_SECTIONS, not
411 MANY_SEGMENTS).
412
413 * configure.in: Eliminated all targets using obj-coff but not
414 defining BFD_ASSEMBLER; I think all such targets that are
415 supported will be matched by real CPU-OS combinations earlier in
416 the case statement.
417 (targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted. Made
418 some comments about the dpx2 configuration, but left it disabled,
419 since it couldn't be reached before.
420 (target a29k-amd-ebmonold): Deleted.
421
422 Thu Mar 17 13:36:09 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
423
424 * config/tc-hppa.c (pa_import): Correctly handle importing of an
425 already defined symbol.
426
427 Wed Mar 16 17:11:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
428
429 * config/tc-mips.c (mips_ip): Only accept overly large values for
430 the 'j' operand if there are no further alternatives for this
431 instruction.
432
433 * config/obj-coffbfd.c (adjust_stab_section): Initialize
434 stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it
435 is not SEG_UNKNOWN rather than checking whether it is >= 0.
436
437 * config/tc-mips.c (mips_align): Take new argument, label, and use
438 it instead of global insn_label.
439 (s_align, s_cons, s_float_cons, s_gpword): Save insn_label before
440 call to mips_emit_delay and pass it to mips_align.
441
442 Wed Mar 16 11:54:12 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
443
444 * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.
445
446 * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
447 argument to a .callinfo directive. Don't loop forever on errors.
448
449 * config/tc-hppa.c (pa_equ): Use pa_parse_number so that we can
450 use pre-defined registers as arguments.
451
452 Mon Mar 14 14:29:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
453
454 * write.c (write_object_file): Check both S_IS_LOCAL and
455 S_IS_EXTERNAL when deciding whether to discard a symbol.
456
457 * config-gas.com: Scan Makefile.in, not version.c, for current
458 version number. Delete all versions of temp files when finished
459 with them. Create config.h.
460
461 * config/obj-vms.c (VMS_Initialized_Data_Size): Cache symbol
462 values to reduce number of lookups with S_GET_VALUE. Skip debug
463 symbols to avoid "a really nasty bug". (From Holger Teutsch,
464 holger@botbso.rhein-main.de.)
465 (VMS_write_object_file): For "__vt.*" symbols, set S_GET_OTHER
466 field. (Also from Holger Teutsch.) Watch for a would-be register
467 mask that spans frags.
468
469 * config/obj-coffbfd.c (obj_coff_line): Set symbol lnno field with
470 this_base, not line_base. (Patch from Andreas Arens,
471 ari@obelix.av.rwth-aachen.de.)
472
473 * config/obj-aout.c (obj_crawl_symbol_chain): Retain symbols that
474 look local if they're exported or undefined. Used to be done for
475 i960 only.
476
477 * read.c (s_lcomm, s_comm): Print symbol name being redefined.
478 Get it from the looked-up symbol, instead of using the string from
479 the input stream, which is no longer null-terminated.
480 (LEX_PCT): New macro, defaults to 0.
481 (lex_type): Use it for `%'.
482
483 * config/tc-vax.c (md_parse_option): Handle `-h#' option for VMS.
484 (vip_op): Now static, and returns void. Callers changed. Added
485 forward decl.
486 (vip): Ditto. Call as_fatal directly if a program bug is
487 detected.
488 (op_hash): Let default initialization suffice.
489
490 * Makefile.in (literal.o): Provide dependencies.
491
492 * configure.in: Set new makefile variable OPCODES_LIB.
493 * Makefile.in (LIBS): Use it.
494
495 * Makefile.in (make-gas.com, stamp-mk.com): New targets.
496 * vmsconf.sh: New file.
497 * make-gas.com: Regenerated from new script.
498
499 * configure.in (sparc*-*-lynxos*): Handle any version number
500 suffix after "lynxos". Set emulation to lynx.
501
502 Mon Mar 14 11:30:49 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
503
504 * config/obj-coff.c (obj_coff_section): Delete declaration.
505
506 Fri Mar 11 22:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
507
508 * config/tc-ppc.c (md_pcrel_from): Return 0 for undefined ELF
509 symbols.
510 (ppc_is_toc_sym): Change .toc to .got.
511 (md_apply_fix): Change handling of ELF relocs.
512 (tc_gen_reloc): Likewise.
513
514 Fri Mar 11 17:42:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
515
516 * config/obj-vms.c (Close_VMS_Object_File): Add comment pointing
517 out some code that doesn't belong in this file.
518
519 * config/obj-vms.h: Include aout/stab_gnu.h.
520 (N_GSYM, ..., N_LENG): Deleted.
521 (NO_RELOC): Undefine before defining as part of enum reloc_type.
522
523 * config/tc-alpha.c: Add comment questioning need for all the
524 characters in FLT_CHARS.
525
526 * as.c (main) [OBJ_VMS]: Don't call output_file_close.
527
528 * config/obj-ecoff.c (ecoff_frob_file): Set strict order for
529 sections with recognized names, before computing VMA values.
530
531 Fri Mar 11 17:56:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
532
533 * config/tc-mips.c (mips_ip): Accept numbers between 0x8000 and
534 0xffff for 'j' to be compatible with MIPS assembler. These
535 numbers are actually treated as negative.
536
537 Thu Mar 10 13:36:29 1994 Doug Evans (dje@canuck.cygnus.com)
538
539 * config/tc-sparc.h (LOCAL_LABEL): Local labels are .Lfoo.
540
541 Tue Mar 8 21:17:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
542
543 * config/obj-coff.c: Minor formatting/stylistic changes, plus:
544 (obj_coff_section): Declare.
545 (obj_pseudo_table): Make it available only if MANY_SECTIONS.
546 (obj_symbol_to_chars) [CROSS_COMPILE]: Some attemps to make this
547 work. It still doesn't. It now fails to compile, instead of
548 silently compiling to do nothing.
549 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define only if
550 MANY_SECTIONS.
551 (OBJ_PROCESS_STAB) [! MANY_SECTIONS]: New macro, just emits
552 warning.
553
554 Handle Alpha load-immediate-FP pseudo-instructions:
555 * config/alpha-opcode.h (ldif, ldig, ldis, ldit): New patterns.
556 * config/tc-alpha.c (lit8_sec, lit4_sec, lit8_sym, lit4_sym): New
557 variables.
558 (create_literal_section): New function.
559 (create_lita_section): Now a macro.
560 (get_lit8_offset, get_lit4_offset): New functions.
561 (maybe_set_gp): New function.
562 (select_gp_value): Call it.
563 (load_expression): Preserve addend if symbol is a section symbol.
564 (alpha_ip): Handle new operand type `F' for floating-point
565 constants; store them in .lit{4,8} sections.
566 (alpha_ip, case 'G'): Emit LITUSE relocations for symbol exprs.
567
568 * config/tc-i386.c (smallest_imm_type): Never return Imm1.
569
570 Tue Mar 8 14:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
571
572 * config/obj-coffbfd.c (w_strings): Only copy strings out if
573 their symbols are going to be written.
574
575 Tue Mar 8 11:49:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
576
577 * messages.c (as_perror): Declare arguments const.
578 * as.h (as_perror): Change declaration.
579
580 Mon Mar 7 16:08:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
581
582 * config/tc-mips.c (load_address): When calling frag_grow, allow
583 for the (up to) two nops which may be inserted by append_insn if
584 mips_optimize is 0.
585 (macro): Likewise.
586
587 Thu Mar 3 11:37:55 1994 Doug Evans (dje@canuck.cygnus.com)
588
589 * config/atof-ieee.c (make_invalid_floating_point_number):
590 Add cast to avoid warning from gcc.
591
592 Wed Mar 2 10:31:01 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
593
594 * config/tc-hppa.c: Add a few casts to make HP C compiler happy.
595
596 * config/obj-som.c (obj_som_version, obj_som_copyright): Be
597 prepared
598 to handle an error from bfd_som_attach_aux_hdr.
599
600 * config/tc-hppa.h: Wrap ELF specific decls inside an ifdef.
601
602 Mon Feb 28 15:03:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
603
604 * config/tc-alpha.c (md_atof): Omit warning about FP values.
605 (line_comment_chars): Add ! to list.
606 (md_apply_fix): Do process 32- and 64-bit relocations.
607
608 * config/obj-coffbfd.c (obj_coff_lcomm): Put "#if 0" around the
609 unused parts (most of the function).
610 (obj_coff_init_stab_section): Cast alloca result.
611
612 * configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and
613 gas_target ic960coff.
614 * config/ic960coff.mt: New file.
615 * config/obj-coffbfd.h [TC_I960]: Include coff/i960.h.
616 (TARGET_FORMAT) [TC_I960]: Use coff-Intel-little.
617 * config/te-ic960.h (CROSS_COMPILE): Don't undef this. We'll
618 always build little-endian object files.
619 * config/tc-i960.c (md_reloc_size): Don't define at all if BFD or
620 BFD_ASSEMBLER is defined.
621 (mem_fmt): Since COFF doesn't handle callx relocations yet, treat
622 them like normal 32-bit relocations.
623 (md_apply_fix): For callx relocations, store zero.
624 (tc_bout_fix_to_chars): Store symbol index for all callx
625 relocations, regardless of link-relax setting.
626 (tc_coff_fix2rtype, tc_coff_sizemachdep): New functions.
627 (i960_handle_align) [! OBJ_BOUT]: If link-relax option is
628 selected, print an error message and clear it.
629 * config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC,
630 TC_COUNT_RELOC, TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP,
631 tc_fix_adjustable): New macros.
632 (tc_coff_fix2rtype, tc_coff_sizemachdep): Declare.
633
634 Fri Feb 25 20:56:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
635
636 * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
637 (hppa_tc_make_sections): Likewise.
638 (pa_build_symextn_section): Delete unused function.
639 (hppa_tc_make_symextn_section): Likewise.
640 (pa_export): Delete call to pa_build_symextn_section.
641
642 * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
643 (elf_hppa_final_processing): Delete extern decl.
644 (hppa_tc_symbol): Delete extern decl.
645
646 Fri Feb 25 13:15:31 1994 Ian Lance Taylor (ian@cygnus.com)
647
648 * config/obj-coffbfd.c (fill_section): Correct test for whether to
649 fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).
650
651 Thu Feb 24 11:30:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
652
653 * configure.in: Don't require version number for i386-*-mach.
654
655 * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler",
656 which is ignored by gas, but will cause other assemblers to choke.
657 Intended for use by gcc ports that require gas instead of native
658 assemblers.
659
660 Thu Feb 24 07:10:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
661
662 * config/ho-hppaosf.h: Fix braino in test for ANSI-C.
663
664 Wed Feb 23 16:51:43 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
665
666 * write.c (write_contents): Give the user a reasonable error
667 message rather than "assertion failed" if bfd_set_section_contents
668 fails.
669
670 Tue Feb 22 10:07:32 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
671
672 * config/ho-mach3.h: New file.
673
674 Mon Feb 21 11:41:18 1994 Ian Lance Taylor (ian@cygnus.com)
675
676 * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is
677 now set in bfd/ecofflink.c:ecoff_write_symhdr.
678
679 * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
680 not bfd_error.
681 * config/obj-elf.c (elf_frob_file): Likewise.
682
683 * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
684 variables.
685
686 * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__.
687
688 * read.c (read_a_source_file): Use correct arguments to memcpy
689 (broken 19 Jul 1993). From kjd@pescadero.stanford.edu (Kenneth
690 Duda).
691
692 Sun Feb 20 18:01:54 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
693
694 * config/obj-coff.h (obj_coff_section): Declare.
695 * config/obj-coff.c (obj_pseudo_table): For "section", use
696 obj_coff_section.
697 (obj_coff_section): Rewrite.
698
699 Fri Feb 18 14:16:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
700
701 * configure.in (i386-*-mach3*): New target; uses BFD.
702 * config/te-mach.h: New file.
703 * config/obj-aout.c (obj_aout_frob_file): New function.
704 * config/obj-aout.h (obj_aout_frob_file): Declare it.
705 (frob_file): New macro.
706 * config/tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust
707 pcrel32 relocations.
708 * config/tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3.
709
710 * write.c (write_object_file): Removed register declarations.
711
712 Thu Feb 17 16:25:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
713
714 Some support for PowerPC ELF.
715 * configure.in: If cpu is powerpc*, use ppc.
716 (ppc-*-sysv4*): Use object format elf.
717 * config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
718 defined.
719 (TARGET_ARCH): Make it call ppc_arch.
720 (ppc_arch): Declare.
721 (TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
722 (NO_STRING_ESCAPES): Define.
723 (LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
724 * config/tc-ppc.c: Only define a number of functions of OBJ_COFF
725 is defined.
726 (md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added
727 OBJ_COFF specific "bi" and "ei".
728 (md_parse_option): Fix handling of -u. Make -m601 set
729 PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q.
730 (ppc_set_cpu): New function.
731 (ppc_arch): New function.
732 (md_begin): Call ppc_set_cpu.
733 (ppc_insert_operand): For a signed operand accept an unsigned
734 value, for IBM compatibility.
735 (ppc_byte): Don't call stringer for strings; instead, treat two
736 double quotes as a single double quote.
737 (ppc_comm): Set sy_tc.output for a .lcomm symbol.
738 (ppc_biei): New function.
739 (ppc_tc): If not OBJ_COFF, ignore first argument.
740 (ppc_fix_adjustable): Call as_bad_where, not as_bad.
741 (ppc_is_toc_sym): New function.
742 (md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and
743 BFD_RELOC_8.
744
745 Thu Feb 17 09:29:37 1994 David J. Mackenzie (djm@thepub.cygnus.com)
746
747 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
748 bfd_set_error and new error names.
749
750 Tue Feb 15 20:23:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
751
752 * configure.in: Support i960-vxworks versions > 5.0 as coff.
753 Default is still bout if no version is specified.
754
755 * atof-generic.c (atof_generic): Use switch and strcasecmp instead
756 of large number of compares when looking for inf/nan values.
757
758 Fri Feb 11 13:13:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
759
760 * config/tc-mips.c (macro): Do unaligned loads and stores
761 correctly when big endian, and give errors on overflow rather than
762 generating incorrect code.
763
764 Thu Feb 10 11:24:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
765
766 * as.c: Include libiberty.h.
767
768 * read.c (do_align): Don't define label just_record_alignment
769 unless it might be used.
770
771 * as.c (main): If md_parse_long_option is defined, call it with a
772 long option.
773 * config/tc-mips.h (md_parse_long_option): Define.
774 * config/tc-mips.c (mips_trap): New static variable.
775 (md_begin): Report an error if mips_trap is set at ISA level 1.
776 (macro): If mips_trap, use trap instructions instead of break
777 instructions for overflow and divide by zero detection.
778 (mips_parse_long_option): New function. Support --trap,
779 --no-break, --break and --no-trap.
780 * doc/as.texinfo: Document new options.
781
782 * read.c (potable): Add "zero".
783 * config/tc-i386.c (md_pseudo_table): Remove "zero".
784 * config/tc-m88k.c (md_pseudo_table): Likewise.
785
786 Thu Feb 10 01:24:27 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
787
788 * config/tc-sparc.c (sparc_ip): Reject integer values for
789 pc-relative operand fields. This forces "call 0" to become "jmpl
790 %g0,%o7" with no relocations needed.
791
792 Wed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
793
794 * as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
795 * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
796
797 * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
798 don't treat backslash specially inside strings.
799 * read.c (next_char_of_string): Likewise.
800
801 Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
802
803 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
804 instead of memcpy to zero the initial stab symbol, duh.
805 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
806 * config/obj-som.c (obj_som_init_stab_section): Ditto.
807
808 Tue Feb 8 17:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
809
810 * write.c (fixup_segment): Use as_bad_where, not as_bad.
811
812 * subsegs.c (subseg_set_rest): Call memset with the arguments in
813 the right order. Explicitly clear fix_root and fix_tail fields.
814
815 Tue Feb 8 16:00:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
816
817 * config/obj-coff.c (coff_frob_symbol): For abs_symbol, set *punt
818 and do nothing else.
819
820 * symbols.c (symbol_begin): Initialize value of abs_symbol
821 properly.
822
823 * write.c (adjust_reloc_syms): Use abs_symbol instead of calling
824 section_symbol.
825
826 * ecoff.c (ecoff_build_debug): Fix "/*" in comment to silence
827 complaint from "gcc -Wall".
828
829 * configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
830
831 * config/tc-alpha.c (GP_ADJUSTMENT): Move definition to start of
832 file.
833 (tc_gen_reloc): Remove uninitialized variable `code', and code
834 that tried to use it (incorrectly). For LITERAL reloc, set addend
835 to negative of GP value.
836 (load_symbol_address): Don't adjust return value by GP_ADJUSTMENT.
837
838 * write.c (write_relocs): Print some sensible error message if
839 bfd_perform_relocation returns bfd_reloc_overflow.
840
841 Mon Feb 7 15:49:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
842
843 * configure.in (hppa*-*elf*): New configuration for PA ELF.
844 (hppa*-*-osf*): Default object format is SOM.
845
846 Mon Feb 7 16:07:35 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
847
848 * config/tc-alpha.c (md_atof): Warn that floating-point values
849 might not assemble properly.
850
851 * configure.in (target alpha-*-osf*): Don't set "dev=yes" any
852 more.
853
854 * config/tc-alpha.c (load_expression): Parenthesize operations in
855 range checking, to avoid precedence questions.
856
857 * config/tc-alpha.c (addr32): New static variable.
858 (md_parse_option): Set it for "-32addr".
859 (load_symbol_address): If addr32 is set, use ldl instead of ldq.
860
861 * atof-generic.c (atof_generic): Calculate maximum_useful_digits
862 and more_than_enough_bits_for_digits in integer arithmetic, to
863 eliminate the only sources of dependence on floating point
864 support, which doesn't work yet on the Alpha.
865
866 Mon Feb 7 03:56:05 1994 Ken Raeburn (raeburn@cambridge.cygnus.com)
867
868 * ecoff.c (ecoff_build_debug) [TC_ALPHA]: Specify version stamp as
869 0x30b for Alpha for now, until ".verstamp" is handled.
870
871 * literal.c (add_to_literal_pool): Use seginfo->frchainP, which
872 actually refers to the literal pool section, rather than
873 frchain_now, which refers to whatever section the assembler was
874 in.
875
876 * write.c (fixup_segment): Only do range checking if size of fixup
877 is smaller than word size. Otherwise, we always wind up with
878 zeros.
879
880 * config/tc-alpha.c (md_section_align): Change second argument and
881 return type to valueT, to agree with tc.h.
882 (alpha_do_align): Local static array nop_pattern is now unsigned
883 char, to avoid overflow warnings.
884 * config/tc-alpha.h (md_section_align): Delete declaration.
885
886 * config/obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
887 output bfd is non-null before indirecting through it.
888
889 * config/tc-alpha.c (alpha_frob_ecoff_data): Renamed from
890 alpha_frob_file.
891 * config/tc-alpha.h (tc_frob_file): Macro deleted.
892 * config/obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call
893 alpha_frob_ecoff_data, then fill in optional-header info with gp
894 value and register masks.
895
896 Sun Feb 6 16:13:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
897
898 * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP.
899
900 * config/obj-som.c (obj_som_init_stab_section): Same change
901 as coffbfd and elf below. Zero the initial stab symbol after
902 allocating it.
903
904 Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com)
905
906 * config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
907 initial stab symbol after allocating it.
908 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
909
910 Sat Feb 5 11:53:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
911
912 * config/tc-hppa.c (pa_ip): addb[tf] should only accept
913 non-negated condition completers. Add support for addb pseudo-op
914 which accepts both negated and non-negated completers.
915
916 Sat Feb 5 00:15:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
917
918 * configure.in (rs6000*): Use cpu_type ppc.
919 (ppc-*-aix*): New target; use coff and force bfd_gas.
920 * config/tc-ppc.h, config/tc-ppc.c: New files for PowerPC/POWER
921 (RS/6000) support. At the moment, only XCOFF is supported.
922
923 * config/obj-coff.c (SA_SET_SYM_ENDNDX): Made non-static.
924 (S_SET_DATA_TYPE): Likewise.
925 (coff_last_function): Renamed from local static last_functionP in
926 coff_frob_symbol and made externally visible.
927 (coff_frob_symbol): New local static set_end; use it to try to
928 avoid calling SA_SET_SYM_ENDNDX on a symbol that will be punted.
929 * config/obj-coff.h (S_SET_DATA_TYPE): Declare.
930 (SA_SET_SYM_ENDNDX): Declare.
931 (coff_last_function): Declare.
932
933 * expr.c (operand): If DOLLAR_DOT is defined, accept `$' as
934 equivalent to `.' to mean the current location.
935
936 * read.c (LEX_BR): If not defined, define as 0.
937 (lex_type): Use LEX_BR as the type of `{',`}',`[',`]'.
938
939 * symbols.c (symbol_new): If tc_canonicalize_symbol_name is
940 defined, call it with preserved_copy_of_name. If
941 tc_symbol_new_hook is defined, call it on the new symbol.
942 (symbol_find_base): If tc_canonicalize_symbol_name is defined,
943 call it on a copy of the name argument.
944
945 * write.c (write_object_file): Simplified usage of obj_frob_symbol
946 and tc_frob_symbol. Always call both if the symbol is going to be
947 output.
948
949 * write.c (relax_segment): Use %ld rather than %d when printing
950 fragP->fr_var, and cast it to long.
951
952 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
953 * subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
954 fix_root and fix_tail.
955 (segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
956 field.
957 * write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
958 fix_tailP based on frchain_now, not seg_info (now_seg).
959 (chain_frchains_together_1): Chain the subsegment relocs together.
960 * subsegs.c (subseg_change): Don't clear fix_tail field.
961 (subseg_get): Likewise.
962 * literal.c (add_to_literal_pool): Look through the relocs via
963 frchain_now, not seginfo.
964
965 Thu Feb 3 23:07:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
966
967 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Changed
968 ecoff_undefined to ecoff_extern_size.
969 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Likewise.
970 * config/tc-mips.c (s_extern): Set ecoff_extern_size to the
971 external symbol size, rathern than setting the symbol value.
972 (md_estimate_size_before_relax): Check both ecoff_extern_size and
973 symbol value to see if GP referencing can be used.
974 * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not
975 ecoff_undefined.
976 (ecoff_frob_symbol): Don't check ecoff_undefined.
977 (ecoff_build_symbols): Get size of an undefined symbol from
978 sym->ecoff_extern_size, not S_GET_VALUE (sym).
979
980 Wed Feb 2 13:55:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
981
982 * Makefile.in: Avoid bug in losing hpux sed.
983
984 Wed Feb 2 11:40:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
985
986 * config/tc-mips.c (file_mips_isa): New static variable.
987 (md_begin): Set it.
988 (s_mipsset): Add support for .set mipN to set the ISA level.
989
990 * gasp.c (kinfo): Fully bracket initializer.
991
992 Tue Feb 1 19:28:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
993
994 * gasp.c (malloc): Don't declare, since host.h or system header
995 files may declare it differently.
996
997 * config/atof-ieee.c (int_to_gen): Now static.
998
999 * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not
1000 ho-sysv.h. Based loosely on a patch from Minh Tran-Le.
1001
1002 Tue Feb 1 10:50:17 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1003
1004 * gasp.c: Include host.h.
1005
1006 Tue Feb 1 12:13:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1007
1008 * config/tc-mips.c (mips_ip): Make an unsupported instruction a
1009 warning, not an error.
1010
1011 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
1012 dot_bss_symbol): Don't define if BFD_ASSEMBLER.
1013 (obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more
1014 arguments.
1015 (coff_line_base): Renamed from line_base. Changed all uses.
1016 (coff_add_linesym): Renamed from add_line_sym. Made non-static.
1017 Changed all uses.
1018 * config/obj-coff.h: If TC_PPC, include coff/rs6000.h.
1019 (S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if
1020 BFD_ASSEMBLER.
1021 (coff_line_base): Declare.
1022 (coff_add_linesym): Declare if BFD_ASSEMBLER.
1023 * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out
1024 now takes more arguments.
1025
1026 Mon Jan 31 17:55:14 1994 Stan Shebs (shebs@andros.cygnus.com)
1027
1028 * as.c (statistics_flag): Renamed from quiet_flag.
1029 (main): Get statistics with --statistics instead of -noquiet.
1030
1031 Mon Jan 31 07:19:30 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1032
1033 * Makefile.in: Support for Gnu ASsembler Preprocessor.
1034 * gasp.c: New file.
1035 * read.c (s_lcomm): Align lcomm data.
1036 * config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction
1037 from different sections.
1038
1039 Sun Jan 30 14:58:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1040
1041 * write.c (write_object_file): If tc_frob_file is defined, call it
1042 just before calling obj_frob_file.
1043 * config/tc-alpha.c (alpha_gp_value): Renamed from gp_value
1044 (references changed), and made non-static.
1045 (getExpression): Return void.
1046 (select_gp_value): Abort if gp_value is non-zero. Delete call to
1047 non-existent bfd_set_gp_value.
1048 (alpha_validate_fix): Function deleted.
1049 (alpha_frob_symbol): Function deleted.
1050 (alpha_local_label): Function deleted.
1051 (alpha_frob_file): Renamed from alpha_end.
1052 * config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix,
1053 alpha_local_label, alpha_end): Declarations deleted.
1054 (alpha_gp_value, alpha_frob_file): Declare.
1055 (tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted.
1056 (LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label.
1057 (md_convert_frag): Simplified slightly.
1058 (tc_frob_file): New macro.
1059
1060 * read.c (do_align): New function, most of guts of s_align_*
1061 functions. Look for md_do_align macro, give it a chance to bypass
1062 all but recording of section alignment.
1063 (s_align_bytes, s_align_ptwo): Call do_align.
1064 (s_lcomm) [TC_ALPHA]: Align object to largest power of two that
1065 divides object size.
1066
1067 * frags.c (frag_align_pattern): New function.
1068 (frag_align): Rewrite for clarity.
1069
1070 * config/tc-vax.c (md_assemble): Handle O_constant expression.
1071 (vip_begin): Returns pointer to const char. Cast hash_insert arg
1072 to PTR to avoid compiler complaints about const.
1073 (md_begin): Local variable errtxt must point to const.
1074
1075 * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't
1076 bother with *-*-ultrix or *-*-sysv*, except *-*-sysv, since only
1077 the last has an existing host support file. Do handle vax-bsd and
1078 vax-ultrix targets.
1079
1080 Fri Jan 28 11:26:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1081
1082 * config/obj-coff.c (obj_coff_section_header_append): Do not
1083 declare if BFD_ASSEMBLER.
1084 (stack_pop): Correct test for stack underflow.
1085 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
1086 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare
1087 type of ignored argument to avoid gcc warning.
1088 (align): Removed unused function.
1089
1090 Thu Jan 27 18:14:19 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1091
1092 * config/tc-alpha.c, config/tc-alpha.h, config/alpha-opcode.h: New
1093 files, based on port of gas-1.38 contributed by CMU, using a.out
1094 variant. Updated for gas-2.x and ECOFF. Floating-point constants
1095 are still broken, bootstrap testing incomplete.
1096
1097 * literal.c: Comment changes.
1098
1099 * listing.c (listing_source_file): Check for null listing_tail
1100 before indirecting through it.
1101
1102 * expr.h (struct expressionS): Added struct tag.
1103
1104 * as.h: If __GNUC__ and inline are both undefined, define inline
1105 away.
1106
1107 * write.c (cvt_frag_to_fill): Don't assume that fr_var for
1108 rs_align or rs_org frags will be 1.
1109 (relax_segment): For rs_align, if fr_var is not 1, complain if
1110 required padding is not a multiple of the size of the pad pattern.
1111 (fixup_segment): Leave gp-relative relocations alone. For pcrel
1112 relocations referring to the same segment, clear fx_pcrel when
1113 clearing fx_addsy.
1114 * as.h: Adjust comments on rs_align.
1115
1116 * atof-generic.c: Some reformatting.
1117 (atof_generic): Be careful when mixing signed/unsigned values of
1118 different sizes.
1119
1120 * write.c, config/obj-{aout,bout,coff*}.c, config/tc-sparc.c:
1121 Query the fx_done field instead of fx_addsy to see if the fixup
1122 still needs to be applied. Set fx_done and clear fx_addsy both,
1123 for now. If TC_HANDLES_FX_DONE isn't defined, assume md_apply_fix
1124 will only clear fx_addsy, and set fx_done accordingly after
1125 returning.
1126 * config/tc-sparc.h (TC_HANDLES_FX_DONE): Define.
1127 * config/tc-sparc.c (md_apply_fix): Set fx_done for non-pcrel fix
1128 with no fx_addsy.
1129
1130 * symbols.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
1131 Deleted.
1132 (symbol_begin): Moved to end of file, so function inlining can
1133 work better.
1134 (fb_label_count, fb_label_max): Default C static initializers are
1135 sufficient.
1136 * symbols.h (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
1137 Declarations deleted.
1138 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
1139 dot_bss_symbol): Defined here, static.
1140
1141 * config/obj-aout.c [BFD_ASSEMBLER]: Undef NO_RELOC before
1142 including aout/aout64.h.
1143
1144 * write.c (write_object_file): If EMIT_SECTION_SYMBOLS is false,
1145 don't write out a section symbol even if it's used in a
1146 relocation; assume relocations will handle section numbers
1147 somehow. Rename "punt_it" label to "punt_it_if_unused" to reflect
1148 it's true use.
1149 (EMIT_SECTION_SYMBOLS): Default to 1.
1150 (adjust_reloc_syms): Don't create a new symbol for an absolute
1151 reference; just use the absolute section symbol.
1152 (write_relocs): Make printout of reloc values dependent on flag
1153 DEBUG3, not DEBUG2.
1154 * config/obj-aout.h (EMIT_SECTION_SYMBOLS): Define as 0.
1155 * config/obj-ecoff.h (EMIT_SECTION_SYMBOLS): Ditto.
1156
1157 Thu Jan 27 16:43:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1158
1159 * read.c (lex_type): No longer make '{' a valid character for
1160 symbol names.
1161
1162 * as.c (main): Print long values using %ld.
1163
1164 * messages.c (as_warn_internal): New static function.
1165 (as_warn, 3 versions): Use as_warn_internal.
1166 (as_warn_where, 3 versions): New function.
1167 * as.h (as_warn_where): Declare.
1168
1169 Tue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
1170
1171 * as.c (quiet_flag): New flag.
1172 (main): If -noquiet given, display execution time and memory used.
1173
1174 Tue Jan 25 15:53:11 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1175
1176 * doc/{all.texi,as.texinfo}: Add documentation for HPPA port.
1177
1178 Mon Jan 24 19:18:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1179
1180 * ecoff.c (ecoff_frob_symbol): New function. Put undefined
1181 symbols of known size in the undefined section. Put small common
1182 symbols in a .scommon section.
1183 * ecoff.h (ecoff_frob_symbol): Declare.
1184 * config/obj-ecoff.h (obj_frob_symbol): Define.
1185 * config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
1186 obj_elf_frob_symbol): Removed unused functions.
1187 * config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
1188 unused macros.
1189 (obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
1190 of unused functions.
1191 (obj_frob_symbol): Define if ECOFF_DEBUGGING.
1192
1193 * tc-mips.c (g_switch_seen): New static variable.
1194 (md_parse_option): Set g_switch_seen for -G option.
1195 (s_option): If creating PIC code, force the GP size to be 0. Warn
1196 if -G switch used with a non-zero value.
1197
1198 * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
1199 comparing against bfd_com_section.
1200
1201 Mon Jan 24 14:12:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1202
1203 * read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss
1204 section.
1205
1206 Thu Jan 20 13:17:58 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1207
1208 * expr.c (operand): For floating point operand with unusual fp
1209 char from FLT_CHARS, preserve the character. Patch from Lisa
1210 Repka.
1211
1212 Wed Jan 19 23:15:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1213
1214 * config/tc-mips.c (md_pseudo_table): Add all data allocation
1215 pseudo-ops: .hword, .int, .long, .octa, .quad, .short, .single.
1216
1217 Tue Jan 18 15:51:59 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1218
1219 * config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and
1220 C_FCN assume .val has been set to .
1221
1222 Tue Jan 18 16:19:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1223
1224 * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It
1225 confuses GDB for some unknown reason.
1226 * cofnig/obj-som.c: Likewise.
1227
1228 Tue Jan 18 19:05:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1229
1230 * literal.c (add_to_literal_pool): Handle duplicates of values
1231 already written to literal pool.
1232
1233 Tue Jan 18 17:23:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1234
1235 * config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols
1236 with explicitly marked stabs through BFD: if a symbol marked
1237 N_UNDF | N_EXT is in the absolute section, move it to the
1238 undefined section; move a symbol marked N_INDR into
1239 bfd_ind_section and set the BSF_INDIRECT flag; set the
1240 BSF_WARNING flag for a symbol makred N_WARNING.
1241
1242 Mon Jan 17 15:40:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1243
1244 * ecoff.h (ecoff_set_gp_prolog_size): Declare.
1245 * ecoff.c (ecoff_set_gp_prolog_size): Return type is void.
1246
1247 Mon Jan 17 00:18:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1248
1249 * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
1250 and 'f' template operand.
1251
1252 * config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u',
1253 and '2' in copr and sfu instruction templates.
1254
1255 Sun Jan 16 16:44:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1256
1257 * as.h (subseg_force_new): Add prototype.
1258
1259 Sat Jan 15 09:20:55 1994 Doug Evans (dje@canuck.cygnus.com)
1260
1261 * app.c (do_scrub_next_char): Allow lines like " foolab :".
1262
1263 * read.c (emit_expr): Fix computation of mask.
1264 * config/obj-elf.c (obj_elf_section): Fix loop termination test.
1265
1266 Thu Jan 13 16:15:15 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1267
1268 * ecoff.c (ecoff_set_gp_prolog_size): New function.
1269 (current_file_idx): New static variable.
1270 (add_file): Use and increment current_file_idx instead of indx
1271 parameter.
1272
1273 * struc-symbol.h (struct symbol): Make all bitfields unsigned.
1274
1275 * config/tc-i960.c (i960_validate_fix): Added argument
1276 add_symbolPP. Indirect through it to get "add_symbolP".
1277 * config/tc-i960.h (i960_validate_fix): Supply prototype.
1278 (TC_VALIDATE_FIX): Pass address of add_symbolP.
1279
1280 * configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
1281 (i386-*-netbsd0.8): New target, like 386bsd.
1282
1283 * configure.in: Set BFDDEF in Makefile to "define" or "undef".
1284 * Makefile.in (config.h): Protect against multiple inclusions.
1285 Define or undef BFD_ASSEMBLER as specified by $(BFDDEF).
1286 (ALL_CFLAGS): Omit $(BFDDEF).
1287 * as.h: Include config.h.
1288 (struct symbol): Added forward declaration.
1289 (add_to_literal_pool): Fix declaration.
1290 * as.c: Don't include config.h.
1291
1292 * literal.c (add_to_literal_pool): Take symbol and addend as
1293 arguments, instead of expression, for now. Fix calculation of
1294 offset to return.
1295
1296 * subsegs.h (segment_info_type) [NEED_LITERAL_POOL]: Add field
1297 literal_pool_size.
1298
1299 Thu Jan 13 12:14:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu
1300
1301 * subsegs.c (subseg_get): Accept new argument "force_new". If
1302 set then a new segment is always created. All callers changed.
1303 (subseg_force_new): New function. Similar to subseg_new, but
1304 always force a new segment to be created.
1305
1306 * config/obj-som.c (som_frob_file): Call adjust_code_sections
1307 for each section.
1308 (adjust_code_sections): New function. Adjusts the VMA for all the
1309 $CODE$ subspaces.
1310
1311 * config/tc-hppa.c (md_assemble): Also handle creating a fixup
1312 for the unwind descriptors if a function's label follows the
1313 .PROC and .ENTRY directives.
1314 (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
1315 is done elsewhere. Don't create a fixup for the unwind
1316 descriptors if the function's label has not been defined yet.
1317 (pa_proc): For SOM, place each procedure within a new $CODE$
1318 subspace. Adjust the segment and frag for the associated
1319 function label if it exists.
1320
1321 Wed Jan 12 22:05:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1322
1323 * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
1324 (hppa_fix_new): Initialize segment field.
1325 (md_apply_fix): Do nothing for pc-relative fixup which involves
1326 crossing a segment boundary.
1327 (pa_procend): Undefine the current label after handling .PROC
1328 and .PROCEND directives.
1329 (dummy_symbol): Make type "symbolS *". Change references as
1330 appropriate.
1331
1332 Wed Jan 12 13:29:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1333
1334 * read.c (read_a_source_file): Cast array argument to unsigned
1335 char.
1336 * write.c (adjust_reloc_syms): Remove unused variable symseginfo.
1337 (write_object_file): Don't define punt_it if it won't be used.
1338 (fixup_segment): Don't define skip if it won't be used.
1339
1340 * config/tc-mips.h (TARGET_FORMAT): Define as mips_target_format.
1341 (mips_target_format): Declare.
1342 * config/tc-mips.c (mips_target_format): Define with appropriate
1343 default definition.
1344 (md_parse_option): If -EL or -EB is used, change byte_order and
1345 mips_target_format as appropriate.
1346
1347 Tue Jan 11 21:52:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1348
1349 * app.c (do_scrub_next_char): Another attempt to fix bugs
1350 dealing with labels without colons (for HPPA and MRI).
1351
1352 Tue Jan 11 17:01:06 1994 Doug Evans (dje@canuck.cygnus.com)
1353
1354 * expr.c (integer_constant): Fix computation of too_many_digits.
1355 Variable digit_2 renamed to start. Fix check for whether number
1356 will fit in 32 bits.
1357 * read.c (emit_expr): Use valueT instead of long.
1358
1359 Tue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1360
1361 * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
1362 (special_sections): Define.
1363 (obj_elf_special_section): Get default types and attributes from
1364 list of special sections.
1365 * config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.
1366
1367 * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
1368 sections to be close together.
1369
1370 * config/tc-mips.c (macro): Corrected $at warnings in a couple of
1371 spots.
1372
1373 * listing.c (listing_prev_line): New function.
1374 * listing.c: Include subsegs.h.
1375 (listing_prev_line): New function.
1376 (calc_hex): Reset byte_in_frag to zero for each new frag.
1377 * config/tc-mips.c (append_insn): Call listing_prev_line after
1378 emitting nop instructions.
1379 * Makefile.in (listing.o): Depends upon subsegs.h.
1380
1381 Mon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1382
1383 * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
1384 here. Handle case where label may be defined after the .PROC.
1385 (pa_proc): It is not an error if the procedure's label isn't
1386 defined before the .PROC directive.
1387
1388 Sun Jan 9 04:43:30 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1389
1390 * config/te-netbsd.h: New file.
1391 * config/tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use bfd target
1392 a.out-netbsd-386 for this configuration.
1393
1394 Fri Jan 7 17:38:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1395
1396 * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information
1397 with the associated stabs information.
1398 (ecoff_build_symbols): Never set the type of stabs symbols to
1399 st_Global. Don't update the symbol index or ifd if the gas symbol
1400 is not the same as the ECOFF symbol (which is now the case for
1401 stabs symbols).
1402
1403 Fri Jan 7 11:14:07 1994 Stan Shebs (shebs@andros.cygnus.com)
1404
1405 * config/tc-mips.c (macro): Add a LOSING_COMPILER ifdef that
1406 splits the function.
1407 (macro2): New function, if LOSING_COMPILER defined.
1408
1409 Fri Jan 7 09:38:25 1994 Steve Chamberlain (sac@cygnus.com)
1410
1411 * config/obj-coffbfd.c (fill_section): Don't ever fill past the
1412 end of a section. (write_object_file): Temporary fix - setup
1413 stdoutput.
1414
1415 Thu Jan 6 18:05:21 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1416
1417 * config/tc-sparc.c (tc_gen_reloc): Fix handling of addends in
1418 non-pcrel_offset relocations.
1419
1420 Thu Jan 6 01:06:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1421
1422 * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
1423 without .set noat.
1424
1425 Wed Jan 5 14:22:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1426
1427 * literal.c: New file.
1428 * Makefile.in (REAL_SOURCES, OBJS): List it.
1429
1430 * as.h (DEBUG): Don't define.
1431 (struct expressionS, struct fix): Declare in case they're used in
1432 prototypes.
1433 (add_to_literal_pool) [BFD_ASSEMBLER]: Declare.
1434
1435 * config/tc-mips.h (TARGET_FORMAT) [OBJ_AOUT]: Fix for new names
1436 in bfd.
1437
1438 * subsegs.c (subseg_get): New function. Creates segment if
1439 needed, returns pointer, but doesn't change current segment.
1440 (subseg_new): Use it.
1441
1442 Tue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com)
1443
1444 * Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search.
1445 * config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/".
1446 * app.c, flonum.h, hex-value.c (const): Change #if to be more
1447 portable.
1448
1449 Tue Jan 4 22:11:34 1994 Rob Savoye (rob@darkstar.cygnus.com)
1450
1451 * config/ho-vsta.h, configure.in, .Sanitize: Add support for VSTa
1452 micro-kernel.
1453
1454 Thu Dec 30 15:27:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1455
1456 * write.c (write_relocs): bfd_perform_relocation now takes an
1457 additional argument, to return an error string (which we ignore).
1458
1459 Wed Dec 29 14:37:26 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
1460
1461 * write.h (struct fix): Field tc_fix_data should be type PTR, not
1462 void*, for compatibility with non-ANSI compilers. Added
1463 single-bit field "fx_done".
1464
1465 Sun Dec 26 14:31:47 1993 Torbjorn Granlund (tege@adder.cygnus.com)
1466
1467 * tc-hppa.c (pre_defined_registers): Convert to lower case.
1468 Delete spurious register names "%r4L", etc.
1469 (selector_table): Sort and convert to lower case.
1470 (cons_fix_new_hppa): `reloc_type' => `rel_type'.
1471 (pa_ip): Always use strcmp for non-text and strcasecmp for text.
1472 (reg_name_search): Rewrite to call strcasecmp only once per
1473 iteration.
1474 (pa_chk_field_selector): Rewrite to use binary search.
1475 (pa_parse_neg_add_cmpltr): Use strcasecmp for completer comparisons.
1476 (pa_parse_space_stmt): $TEXT$ and $PRIVATE$ are symbols; use case
1477 sensitive comparisons.
1478 (pa_parse_space_stmt): Canonicalize strncasecmp arg to lower case.
1479 (pa_space): "$text$" => "$TEXT$"; "$private$" => "$PRIVATE$". Use
1480 case sensitive comparison for all symbolic names.
1481 (pa_subspace): Canonicalize strncasecmp arg to lower case.
1482 (pa_subspace_start): Use case sensitive comparison for symbolic names.
1483
1484 Mon Dec 20 10:37:48 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
1485
1486 * write.c (adjust_reloc_syms) [RELOC_REQUIRES_SYMBOL]: If no
1487 symbol is present (i.e., relocation against absolute), create a
1488 phony local symbol, and use it in the reloc.
1489 (fixup_segment): When adjusting a reloc with an absolute symbol,
1490 have TC_FORCE_RELOCATION control clearing add_symbolP too.
1491 * config/tc-sparc.h (RELOC_REQUIRES_SYMBOL): Define, for OBJ_COFF.
1492
1493 * symbols.c (S_IS_EXTERNAL, S_IS_LOCAL): Don't use both BSF_EXPORT
1494 and BSF_GLOBAL, since they're the same.
1495
1496 * as.c (main): Only invoke md_end if it's defined as a macro.
1497 * tc.h (md_end): Don't declare it.
1498 * config/tc-*.[ch] (md_end): Deleted, in cases where it doesn't do
1499 anything.
1500 * config/tc-vax.c (vip_end): Deleted null function.
1501 * config/tc-mips.c (md_mips_end): Renamed from md_end.
1502 * config/tc-mips.h (md_mips_end): Declare.
1503 (md_end): New macro, calls md_mips_end.
1504
1505 * write.c (write_object_file): Don't close output file.
1506 * as.c (main): Close output file (if needed) after calling
1507 listing_print, which should be after calling write_object_file,
1508 which sets the frag addresses.
1509
1510 * config/obj-coff.c (obj_coff_dim, obj_coff_endef, obj_coff_line,
1511 obj_coff_scl, obj_coff_size, obj_coff_tag, obj_coff_type,
1512 obj_coff_val): Add unused int argument to satisfy prototypes; goes
1513 with Ian's 10 Sep changes.
1514 (S_GET_DATA_TYPE, S_SET_DATA_TYPE, S_GET_STORAGE_CLASS,
1515 S_SET_STORAGE_CLASS): Now function instead of macros.
1516 (obj_emit_lineno) [BFD_ASSEMBLER]: Deleted.
1517 (tag_insert): Local var ERROR_STRING is const. Use "const" not
1518 "CONST" for argument NAME. Fixed prototype.
1519 (coff_frob_symbol): Removed explicit "#if 1" directive. If
1520 S_IS_EXTERNAL, set storage class to C_EXT.
1521 (s_get_name): Use "const" not "CONST".
1522 * config/obj-coff.h (S_GET_DATA_TYPE, S_SET_DATA_TYPE,
1523 S_GET_STORAGE_CLASS, S_SET_STORAGE_CLASS): Deleted.
1524 (obj_emit_lineno): Declare only for non-BFD_ASSEMBLER. For
1525 BFD_ASSEMBLER, define as macro that aborts.
1526 (obj_extra_stuff, tc_headers_hook): Declare only for
1527 non-BFD_ASSEMBLER.
1528 (coff_frob_symbol): Fix prototype.
1529
1530 Sun Dec 19 00:37:20 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1531
1532 * config/tc-sparc.c (tc_gen_reloc): Test of pcrel_offset had sense
1533 reversed.
1534
1535 Thu Dec 16 21:13:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1536
1537 * config/tc-hppa.c (md_begin): Initialize "dummy_label".
1538 (tc_gen_reloc, SOM version): For relocations which have no symbol,
1539 set sym_ptr_ptr to dummy_label. Avoids lossage in generic BFD code.
1540
1541 Thu Dec 16 16:07:56 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
1542
1543 * read.c (lex_type): No longer make '[' a valid character for
1544 symbol names.
1545
1546 * config/tc-vax.c (tc_aout_fix_to_chars): Local variable
1547 NBYTES_R_LENGTH now const.
1548
1549 * config/obj-*.c, config/tc-*.c: Omit superfluous "return"
1550 statements at ends of functions. Don't check for null return from
1551 hash_new, since it won't return at all if there's no memory
1552 available. Also, check for null return from hash_insert, rather
1553 than zero-length string, as success indicator.
1554
1555 * subsegs.c (section_symbol): New function.
1556 * subsegs.h (section_symbol): Declare.
1557 * write.c (adjust_reloc_syms): Use it.
1558
1559 Wed Dec 15 15:39:53 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
1560
1561 * Makefile.in (RUNTEST): New variable.
1562 (CHECKFLAGS): Pass it down.
1563
1564 * ecoff.c (ecoff_directive_frame): Permit extra trailing operands;
1565 unused for now, but supplied by Alpha OSF1 compiler.
1566
1567 * as.h: Protect against multiple inclusions.
1568 (int_to_gen): Don't declare.
1569
1570 * config/atof-vax.c (atof_vax): NULL is not a valid character
1571 constant.
1572
1573 Tue Dec 14 21:38:25 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1574
1575 * configure.in (hppa*-*-osf*): Do not consider this a developmental
1576 configuration.
1577
1578 * config/tc-hppa.c (md_apply_fix): Handle cases where no
1579 relocation will be emitted for 32bit formats.
1580
1581 Mon Dec 13 23:33:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1582
1583 * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
1584 for any of the 'T' field selectors.
1585
1586 Sat Dec 11 11:23:12 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1587
1588 * config/tc-h8500.c (build_bytes): Get reloc type right for a
1589 %page operation. (md_assemble): Don't modify input_line_pointer.
1590 (mdcoff_sizemachdep): New function.
1591 * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro.
1592 * config/tc-z8k.c (get_operand): Delete bogus check.
1593
1594 Wed Dec 8 16:31:51 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
1595
1596 * write.c (number_to_chars_*): Delete bogus range check.
1597
1598 * output-file.c (TARGET_ARCH): No default.
1599
1600 Tue Dec 7 16:02:53 1993 Steve Chamberlain (sac@jonny.cygnus.com)
1601
1602 * config/tc-sh.c (md_convert_frag): Truncate disps before calling
1603 md_number_to_chars. (md_assemble): Don't modify
1604 input_line_pointer.
1605
1606 Mon Dec 6 11:49:03 1993 Doug Evans (dje@canuck.cygnus.com)
1607
1608 * config/tc-h8300.c (md_assemble): Don't update input_line_pointer.
1609
1610 Mon Dec 6 11:20:02 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1611
1612 * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.
1613 Breaks with the HP compilers.
1614
1615 * config/tc-hppa.c (struct call_info): Remove fields which were
1616 set but never used. Remove all code which sets those fields.
1617 (struct subspace_dictionary_chain): Likewise.
1618 (struct space_dictionary_chain): Likewise.
1619 (pa_desc): Delete useless function. Delete all references.
1620 (hppa_tc_make_sections): No need to count the number of symbols for
1621 the symbol extension section.
1622
1623 Sun Dec 5 17:05:29 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1624
1625 * config/obj-som.c (obj_som_version): Pass version string to
1626 SOM BFD backend.
1627 (obj_som_copyright): New function. Much like obj_som_version.
1628
1629 * config/tc-hppa.c (obj_copyright): Define as appropriate for
1630 SOM and ELF.
1631 (pa_copyright): Just a stub now.
1632
1633 * config/obj-som.c (obj_read_begin_hook): Delete unused function.
1634 * config/obj-som.h (obj_read_begin_hook): Provide dummy definition.
1635 (TARGET_SYMBOL_FIELDS): Delete. SOM isn't making use of them.
1636
1637 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation
1638 expansion due to rounding mode selectors. Handle R_[RDSN]_MODE
1639 relocations for selecting the current rounding mode.
1640
1641 * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and
1642 e_rlsel field selectors.
1643
1644 Fri Dec 3 18:33:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1645
1646 * config/obj-elf.h: If ECOFF_DEBUGGING, undef
1647 SEPARATE_STAB_SECTIONS and INIT_STAB_SECTION, and define
1648 OBJ_PROCESS_STAB to call ecoff_stab.
1649 * config/obj-elf.c: Don't compile obj_elf_init_stab_section if
1650 INIT_STAB_SECTION is not defined.
1651
1652 Fri Dec 3 10:56:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1653
1654 * config/tc-hppa.c (md_apply_fix): Delete old wrapper function.
1655 (md_apply_fix_1): Rename to md_apply_fix. Fix argument decls.
1656 Fix comments in various places. Always return a value.
1657 Avoid dereferencing a NULL fx_addsy.
1658 (hppa_force_relocation): Avoid dereferencing a NULL fx_addsy.
1659
1660 Fri Dec 3 09:47:30 1993 Pete Hoogenboom (hoogen@cs.utah.edu)
1661
1662 * tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should
1663 be either 0 or 2 (no static link or static link required). Always
1664 assume no static link.
1665
1666 Thu Dec 2 11:52:21 1993 Ken Raeburn (raeburn@cygnus.com)
1667
1668 * config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be
1669 dependent on howto fields, not on format flavour.
1670
1671 * struc-symbol.h (struct symbol): New fields sy_obj and sy_tc,
1672 defined as types OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those
1673 macros are defined.
1674 * config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define.
1675 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define.
1676 (sy_tc, sy_obj): Define so that the fields look like they used to,
1677 until all references get changed.
1678
1679 * write.c (fixup_segment): Lots of variables no longer register.
1680 Reordered some code for easier reading.
1681 * config/obj-coff.c (obj_coff_dim): dim_index no longer register.
1682 Deleted superfluous return statement.
1683 (obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type,
1684 obj_coff_val, tag_init, tag_insert): Deleted superfluous return
1685 statement.
1686 (align, obj_coff_section): Deleted debugging printfs.
1687 * config/tc-i386.c (md_assemble): Discard some register decls.
1688 Use assignment rather than memcpy to copy template.
1689 (op_hash, reg_hash, prefix_hash): Default C initialization of
1690 statics is sufficient.
1691 * config/tc-sparc.c (print_insn): Array Reloc is now const, and
1692 points to const.
1693
1694 * config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if
1695 TE_LYNX; use coff-sparc otherwise.
1696 [USE_NATIVE_HEADERS]: Delete this code; it isn't used.
1697
1698 * write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined,
1699 before processing a fixup. Call TC_ADJUST_RELOC_COUNT just before
1700 returning. Remove some i960-coff-specific code.
1701 (TC_ADJUST_RELOC_COUNT): Default to doing nothing.
1702 * config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define.
1703 (i960_validate_fix): Declare.
1704 (TC_VALIDATE_FIX): Define.
1705 * config/tc-i960.c (i960_validate_fix): New function.
1706
1707 * write.c (number_to_chars_littleendian): New function. Write out
1708 bytes in little endian order, doing size and range checking.
1709 (number_to_chars_bigendian): New function, similar.
1710 * write.h: Declare them.
1711 * config/tc-*.c (md_number_to_chars): Use them.
1712 * config/tc-vax.c (md_apply_fix): Ditto.
1713 * config/tc-i386.c (md_apply_fix): Ditto.
1714
1715 * config/obj-coff.c: Rearranged code for handling line number
1716 data.
1717 (line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case,
1718 since the usage is different from non-BFD_ASSEMBLER case.
1719 (in_function, clear_function, set_function): New macros, to
1720 combine some of the functionality implemented in differnet ways in
1721 BFD_ASSEMBLER and non-... code. Used in other functions that used
1722 to check function_lineoff &c.
1723 (obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER,
1724 one for not. Non-BFD_ASSEMBLER version now has temporary variable
1725 to contain char* pointer pointed to by char** argument. Always
1726 follow CROSS_COMPILE code; easier to read that way.
1727 (obj_coff_ln): Don't call add_lineno or c_line_new if appline is
1728 set.
1729 (obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for
1730 ".bf", it's been done elsewhere.
1731 (coff_frob_symbol): If ilne number data is pending, call
1732 add_linesym to flush it.
1733 (coff_frob_file): Don't do that here.
1734 * config/obj-coff.h (coff_frob_file): Declare.
1735 (obj_frob_file): Define, to call it.
1736
1737 * config/tc-sparc.h (md_create_short_jump, md_create_long_jump,
1738 md_estimate_size_before_relax: Define them as macros calling
1739 as_fatal.
1740 * config/tc-sparc.c: Don't define them as functions.
1741
1742 * configure.in: Handle target alpha-*-osf*. (No cpu files yet.)
1743
1744 Wed Dec 1 23:37:14 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1745
1746 * Makefile (clean): Depend on clean-here.
1747
1748 Wed Dec 1 11:35:21 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
1749
1750 * config/ho-go32.h: Include fopen-bin.h.
1751 * as.h: If FOPEN_WB isn't defined, include fopen-same.h.
1752 * output-file.c (output_file_create): Use FOPEN_WB instead of "w".
1753 * input-file.c (input_file_open): Use FOPEN_RT instead of "r".
1754 * listing.c (file_info): Use FOPEN_RB instead of "rb".
1755 * read.c (s_include): Use FOPEN_RT instead of "r".
1756
1757 * stabs.c: Include obstack.h.
1758
1759 * tc.h (md_create_long_jump): Don't declare if it's already
1760 defined as a macro.
1761 (md_create_short_jump, md_estimate_size_before_relax): Ditto.
1762
1763 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_errmsg instead
1764 of strerror. Clear bfd_error.
1765
1766 * config/te-lynx.h (LOCAL_LABELS_FB): Define, if not already
1767 defined.
1768
1769 Wed Dec 1 10:41:56 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1770
1771 * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.
1772 (pa_process_exit, pa_procend): Call it for ELF objects.
1773
1774 Wed Dec 1 12:10:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1775
1776 * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d
1777 case. See comment. From wilson@cygnus.com: for M_L_DAB, set
1778 coproc before doing goto ld.
1779
1780 Tue Nov 30 13:40:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1781
1782 * write.c (TC_FORCE_RELOCATION): Provide a default definition.
1783 (fixup_segment): Allow the target machine to specify that a
1784 relocation must be generated for a particular fixup. Remove
1785 #ifndef TC_HPPA hack.
1786
1787 * config/tc-hppa.h (TC_FORCE_RELOCATION): Define.
1788
1789 * config/tc-hppa.c (md_apply_fix_1): Never change fx_addsy to
1790 be NULL. Only fixup_segment is supposed to do that.
1791 (hppa_force_relocation): New function.
1792
1793 Tue Nov 30 11:21:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1794
1795 * Makefile.in (stabs.o): Added dependencies.
1796
1797 * config/obj-ecoff.c (ecoff_frob_file): Don't call bfd_set_symtab.
1798
1799 Sun Nov 28 12:11:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1800
1801 * app.c (do_scrub_next_char): Output a TAB before any
1802 .app* directive.
1803
1804 * config/tc-hppa.c (fix_new_hppa): Make sure a sub_symbol
1805 exists before trying to peek at its name.
1806 (pa_space): Do not call pa_align_subseg. See hppa/unsorted/align3.s
1807 for testcase.
1808 (pa_align_subseg): Delete unused/unwanted function.
1809
1810 Sat Nov 27 22:49:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1811
1812 * read.c (read_a_source_file): Fix test for when to stick a colon
1813 on the end of a label. Make code conditional on either MRI or
1814 LABELS_WITHOUT_COLONS.
1815
1816 * app.c (do_scrub_next_char): If a line begins with whitespace, leave
1817 the single whitespace character alone. Eat all others.
1818
1819 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define.
1820
1821 Wed Nov 24 01:22:54 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1822
1823 * config/tc-hppa.c (pa_procend): Do not call process_exit.
1824 (exit_processing_complete): Delete unwanted variable and all
1825 references.
1826
1827 Wed Nov 24 02:31:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1828
1829 * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext.
1830 Changed to not actually build the external symbol information, as
1831 that is now done by the ECOFF back end.
1832 (ecoff_build_debug): Changed accordingly.
1833 * ecoff.h (obj_ecoff_set_ext): Declare. obj-format.c function
1834 called by ecoff_setup_ext.
1835 * config/obj-ecoff.c (ecoff_frob_file): If debug_info count is 0,
1836 set corresponding pointer to NULL. Don't set raw_size and
1837 raw_syments.
1838 (obj_ecoff_set_sym_index): Removed.
1839 (obj_ecoff_set_ext): New function.
1840 * config/obj-ecoff.h (obj_set_sym_index): Don't define.
1841 (obj_ecoff_set_sym_index): Don't declare.
1842 * config/obj-elf.c (obj_ecoff_set_ext, elf_get_extr,
1843 elf_set_index): New functions used for ECOFF_DEBUGGING.
1844 (elf_frob_file): Reworked ECOFF debug generation to use
1845 new functions in bfd/ecofflink.c.
1846
1847 Sun Nov 21 23:54:52 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1848
1849 * config/tc-hppa.c (pa_def_subspaces): Only create the unwind
1850 subspace for ELF. In the SOM world, the linker is responsible
1851 for creating the unwind subspaces.
1852
1853 Fri Nov 19 16:25:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1854
1855 * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
1856 (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
1857 already set. Fixes .def var; .val external_var; .scl 3; .endef.
1858 (adjust_stab_section): Make static. Declare return type. Remove
1859 unused variables.
1860
1861 * config/tc-i386.h: Declare tc_coff_fix2rtype and
1862 tc_coff_sizemachdep.
1863
1864 Fri Nov 19 04:33:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1865
1866 * write.c (write_object_file): Disable obj_check_file_symbols
1867 hook; only back end using it wasn't using it correctly.
1868 (write_object_file): Always call obj_frob_symbol and
1869 tc_frob_symbol; always retain symbol if it's used by a relocation,
1870 regardless of what these routines indicate.
1871 * config/obj-coff.c (coff_frob_symbol): Renamed from
1872 coff_check_file_symbols.
1873 * config/obj-coff.h (obj_check_file_symbols): Deleted.
1874 (coff_frob_symbol): Declare.
1875 (obj_frob_symbol): Call it.
1876
1877 * config/obj-coff.c (obj_crawl_symbol_chain, obj_emit_strings,
1878 obj_pre_write_hook): Don't define for BFD_ASSEMBLER.
1879 (c_section_header): Ditto. Delete superfluous return at end of
1880 function.
1881
1882 * config/obj-coff.h [TC_SPARC]: Include coff/sparc.h, and specify
1883 coff-sparc-lynx.
1884 (SA_GET_SYM_TAGNDX): Use BFD_HEADERS version for BFD_ASSEMBLER
1885 too.
1886 (c_section_header): Rewrite prototype so that it contains no
1887 preprocessing directives. Don't declare it at all if
1888 BFD_ASSEMBLER.
1889
1890 * configure.in (sparc*-*-lynxos): New target, using coff and
1891 BFD_ASSEMBLER.
1892
1893 * stabs.c: New file.
1894 * Makefile.in (REAL_SOURCES, OBJS): List it.
1895 * read.c (STAB_SECTION_NAME, STAB_STRING_SECTION_NAME,
1896 get_stab_string_offset, s_stab_generic, s_stab, s_xstab, s_desc):
1897 Moved to new file.
1898
1899 * config/tc-sparc.c (tc_gen_reloc): Handle coff files like elf
1900 files.
1901
1902 Wed Nov 17 17:23:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1903
1904 * configure.in (mips-*-irix5*): New target. Use elf and mips-big.
1905 * config/obj-elf.c: If ECOFF_DEBUGGING, include ecoff.h.
1906 (obj_pseudo_table): If ECOFF_DEBUGGING, define ECOFF
1907 pseudo-ops.
1908 (obj_read_begin_hook): If ECOFF_DEBUGGING, call
1909 ecoff_read_begin_hook.
1910 (obj_symbol_new_hook): If ECOFF_DEBUGGING, call
1911 ecoff_symbol_new_hook.
1912 (obj_elf_init_stab_section): Cast alloca result.
1913 (elf_frob_file): If ECOFF_DEBUGGING, finish up ECOFF debugging
1914 information and write it out into .mdebug section.
1915 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): New macro.
1916 (TARGET_SYMBOL_FIELDS): Use ELF_TARGET_SYMBOL_FIELDS.
1917 (ECOFF_DEBUGGING): Define if TC_MIPS.
1918 (TARGET_SYMBOL_FIELDS): If ECOFF_DEBUGGING, override to add
1919 fields required by ECOFF.
1920 * config/tc-mips.c: Check ECOFF_DEBUGGING rather than
1921 OBJ_ECOFF in many cases.
1922 (mips_any_noreorder): New variable.
1923 (mips_cprestore_offset): Initialize to -1.
1924 (mips_frame_reg): New variable.
1925 (RELAX_ENCODE, RELAX_OLD, RELAX_NEW, RELAX_RELOC1,
1926 RELAX_RELOC2, RELAX_RELOC3, RELAX_WARN): New macros.
1927 (md_pseudo_table): Handle "gpword" and "cpadd".
1928 (md_begin): Initialize ok to false. If OBJ_ELF, set alignment
1929 of text, data and bss sections to 4. Set alignment of
1930 .reginfo section to 2. If ECOFF_DEBUGGING, create .mdebug
1931 section.
1932 (ALIGN_ERR, ALIGN_ERR2): Removed unused and useless alignment
1933 check.
1934 (append_insn, macro_build, macro_build_lui): Take place
1935 argument. Changed all callers.
1936 (append_insn): If appending a nop, don't emit one.
1937 (macro_build): Changed assertion for 'i', 'j', 'o' case.
1938 (gp_reference): Removed.
1939 (load_address): New function.
1940 (macro): If mips_noreorder is used, set mips_any_noreorder.
1941 Extensive changes to handle GP and PIC symbols differently.
1942 Build both possible code choices using a variant frag, and
1943 make a final decision at the end of assembly when all
1944 information is known. Added PIC support for all symbol
1945 references.
1946 (mips_ip): Don't permit anything but a number after $ for a
1947 coprocessor register. Don't use .lit4 or .lit8 sections when
1948 generating PIC code. If OBJ_ELF, set alignment of .lit4 or
1949 .lit8 section to 4.
1950 (md_apply_fix): Accept and ignore GOT16 and GPREL32 relocs.
1951 (s_change_sec): Set alignment of ELF .rodata or .sdata section
1952 to 4.
1953 (s_mipsset): If .set noreorder, set mips_any_noreorder.
1954 (s_cpload): Ignore .cpload if not generating PIC code. Warn
1955 if .cpload is not in noreorder section.
1956 (s_cprestore): Ignore .cprestore if not generating PIC code.
1957 (s_gpword, s_cpadd): New functions.
1958 (tc_get_register): Added frame argument; if true, set
1959 mips_frame_reg to return value. Changed all callers.
1960 (md_estimate_size_before_relax): Don't error out, but instead
1961 determine how much a frag should grow.
1962 (tc_gen_reloc): Return multiple relocs if appropriate, as
1963 determined by md_estimate_size_before_relax.
1964 (md_convert_frag): New function.
1965 (mips_elf_final_processing): Set ELF header flags based on
1966 mips_any_noreorder and mips_pic.
1967 * config/tc-mips.h (RELOC_EXPANSION_POSSIBLE): Define.
1968 (MAX_RELOC_EXPANSION): Define to be 3.
1969 (md_relax_frag): Define to be 0.
1970 (md_convert_frag): Don't define.
1971 (tc_get_register): Changed declaration.
1972
1973 * ecoff.h, ecoff.c: New files pulled out of config/obj-ecoff.c to
1974 support generating ECOFF debugging information for MIPS ELF
1975 targets. Compiled only if ECOFF_DEBUGGING is defined. Changed
1976 handling of external symbols: it now always generates exactly
1977 those external symbols that are defined in the global symbol list.
1978 * Makefile.in (REAL_SOURCES): Added ecoff.c.
1979 (REAL_HEADERS): Added ecoff.h.
1980 (OBJS): Added ecoff.o.
1981 (ecoff.o): New target.
1982 * config/obj-ecoff.c: Almost entirely moved into ecoff.c.
1983 Remaining code mostly just calls ecoff.c code.
1984 * config/obj-ecoff.h: Define ECOFF_DEBUGGING.
1985 (TARGET_SYMBOL_FIELDS): Make ecoff_symbol a pointer to a
1986 struct localsym.
1987 (obj_read_begin_hook, obj_symbol_new_hook): Define to call
1988 functions in ecoff.c.
1989 (ecoff_stab): Don't declare (now declared in ecoff.h).
1990 (obj_set_sym_index): Define.
1991 (obj_ecoff_set_sym_index): Declare.
1992
1993 * frags.h (frag_grow): Declare.
1994 * frags.c (frag_grow): Made non-static.
1995
1996 * write.c (is_dnrange): Do not define if md_relax_frag is defined.
1997 (relax_segment): If md_relax_frag is defined, use it to handle a
1998 frag of type rs_machine_dependent rather than looking through
1999 md_relax_table.
2000
2001 * read.c (read_a_source_file): If we find a bad pseudo-op,
2002 do a continue to go on to the next line rather than a break.
2003 Removed duplicate bad pseudo-op code which was never executed.
2004
2005 * read.c (s_lcomm): Do not require a comma after the name.
2006
2007 * subsegs.h (segment_info_type): Changed hadone field to bitfield.
2008 Added bss bitfield.
2009 * as.c (perform_an_assembly_pass): Set bss flag for bss_section.
2010 * read.c (s_lcomm): Set bss flag for .sbss section if used.
2011 * write.c (relax_and_size_seg): Don't set SEC_HAS_CONTENTS for a
2012 bss section. Set SEC_RELOC if there are any relocations, even for
2013 a zero size section.
2014
2015 * write.c (write_relocs): In RELOC_EXPANSION_POSSIBLE case, base
2016 data offset on reloc[0]->address rather than reloc[j]->address, so
2017 that multiple relocs can affect different memory locations.
2018
2019 * write.c (chain_frchains_together, relax_and_size_seg,
2020 adjust_reloc_syms, write_relocs): Make third argument PTR, not
2021 char *, to match definition of bfd_map_over_sections.
2022
2023 * app.c (do_scrub_next_char): Don't interpret a comment character
2024 as starting a CPP line directive unless it is a '#' and is the
2025 very first characters on the line (i.e., do not permit leading
2026 whitespace).
2027
2028 * messages.c (identify): Make file argument non-const, to match
2029 callers.
2030
2031 Tue Nov 16 20:38:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2032
2033 * config/tc-hppa.c (pa_ip): Fix thinko in 21bit range check.
2034
2035 Sat Nov 13 18:22:48 1993 Steve Chamberlain (sac@jonny.cygnus.com)
2036
2037 * config/tc-sh.c (md_apply_fix): Cope with IMM16 type too.
2038 * config/tc-z8k.c (build_bytes, md_apply_fix): Understand nDISP7
2039 relocs.
2040
2041 Fri Nov 12 16:51:47 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2042
2043 * config/tc-hppa.[ch]: Fix assorted trivial indention problems.
2044 * config/obj-som.c (obj_som_version): Add missing ';'.
2045 (som_frob_file): Delete whitespace at EOL.
2046
2047 Fri Nov 12 15:26:21 1993 Ken Raeburn (raeburn@cygnus.com)
2048
2049 * Makefile.in (VERSION): Updated following 2.2 release.
2050
2051 Fri Nov 12 14:52:17 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2052
2053 * config/tc-hppa.c (hppa_fix_struct): Use a real type for the
2054 field selector, rather than an int. All uses of field selectors
2055 fixed.
2056 (tc_gen_reloc): For SOM PLABELs, always set addend to zero for now.
2057 (md_apply_fix_1): Do not call hppa_field_adjust for any PLABEL
2058 field.
2059
2060 Thu Nov 11 15:49:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2061
2062 * config/tc-hppa.c (pa_type_args): For .import statements,
2063 silently ignore attempt to change the symbol type for a function
2064 from ST_ENTRY to ST_CODE on .import.
2065
2066 Wed Nov 10 16:19:13 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2067
2068 * write.h (fixS): Rename fx_callj field to fx_tcbit.
2069 * write.c, config/obj-coff.c, config/obj-coffbfd.c,
2070 config/tc-i960.c: Corresponding changes.
2071
2072 Tue Nov 9 00:49:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2073
2074 * Makefile.in (distclean): Delete config-stamp and config.h
2075
2076 * config/tc-hppa.c (evaluate_absolute): Avoid relying on
2077 ANSI-C features.
2078
2079 * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
2080 Accept new argument "is_export". All callers changed. When
2081 processing a .export directive for a function, do not allow
2082 the user to set the type to "CODE", instead warn and set the
2083 type to "ENTRY".
2084
2085 Mon Nov 8 12:05:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2086
2087 * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
2088 Lemon <mellon@pepper.ncd.com>).
2089 (mips_ip): Permit odd numbered floating point registers if -mips3.
2090 (macro): Use BFD_RELOC_MIPS_LITERAL relocation for M_LI_SS.
2091
2092 Mon Nov 8 07:45:01 1993 Doug Evans (dje@canuck.cygnus.com)
2093
2094 * configure.in: Remove h8300h, we have multilib now.
2095
2096 Mon Nov 8 06:09:18 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
2097
2098 * configure.in: Support generic netware as being ELF format.
2099 Recognise unixware if the user supplies it.
2100
2101 Sun Nov 7 01:02:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2102
2103 * First cut at cleaning up PA instruction parsing.
2104 * config/tc-hppa.c (pa_get_absolute_expression): Accept pointer to
2105 insn structure as an argument, and a pointer to a string. All
2106 callers changed. Always read any field selector here. Call
2107 evaluate absolute to get a return value.
2108 (evaluate_absolute): Addept pointer to insn structure as its
2109 argument. All callers changed.
2110 (INSERT_FIELD_AND_CONTINUE): New macro for inserting a bitfield
2111 into an instruction and continuing the main pa_ip loop.
2112 (CHECK_FIELD): New macro for simple range checking of fields.
2113 (pa_ip): Delete unused variables. Use INSERT_FIELD_AND_CONTINUE
2114 and CHECK_FIELD. All immediate fields now pass through
2115 pa_get_absolute_expression which will also handle field selectors.
2116 Delete dead code. Simplify.
2117 (md_apply_fix_1): Use CHECK_FIELD to verify any fixes that are
2118 applied are in range. Use bfd_put_32 rather than inserting each
2119 byte of the fixed instrution into the buffer ourselves.
2120
2121 * write.c (fixup_segment): Delete {SEG,GLOBAL}_DIFF_ALLOWED code,
2122 it was PA specific and is no longer needed (it's now handled
2123 within the PA backend).
2124 * config/tc-hppa.h (SEG_DIFF_ALLOWED): Delete definition.
2125 * config/tc-hppa.c (fix_new_hppa): If the subtract symbol for
2126 a fixup is $global$ change it to NULL as $global$ is really only
2127 needed long enough to determine the base type of relocation to use.
2128
2129 * config/tc-hppa.c (create_new_subspace): Initialize subspace_defined.
2130
2131 * config/tc-hppa.c (pa-ip, case 'z'): Make field selectors work
2132 for 'z' operands (target of ble branch).
2133
2134 Sat Nov 6 22:41:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2135
2136 * config/tc-hppa.c: (update_subspace): Fix type and name of last
2137 parameter. All callers fixed.
2138 (md_begin, pa_chk_field_selector, pa_entry): Lint.
2139
2140 * config/tc-hppa.c (cons_fix_new_hppa): Reset field selector
2141 to default state after it's been used.
2142
2143 Fri Nov 5 12:08:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2144
2145 * config/obj-som.c (obj_som_init_stab_section): Change
2146 space/subspace sort keys for the stab sections so as to avoid
2147 bugs in the hp linker and pxdb.
2148
2149 Thu Nov 4 17:00:05 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2150
2151 * write.c (chain_frchains_together): Update pointer to last
2152 frag for a segment in the seginfo structure.
2153
2154 Thu Nov 04 09:09:35 1993 Jeffrey Wheat (cassidy@cygnus.com)
2155
2156 * Makefile.in: Changed RUNTESTFLAGS to RUNTEST_FLAGS
2157
2158 Wed Nov 3 12:16:27 1993 Ken Raeburn (raeburn@rover.cygnus.com)
2159
2160 * write.c (fixup_segment): Handle conversion of subtraction to
2161 pc-relative addressing even if pc-relative flag is already set.
2162
2163 * config/tc-m68k.c (m68k_ip_op): Use strchr, not index. Don't
2164 declare either.
2165
2166 * doc/Makefile.in (distclean): Delete intermediate files from dvi
2167 build, but not the dvi or info files.
2168 * Makefile.in (clean-here): New target; cleans up current
2169 directory only.
2170 (distclean): Use it instead of clean.
2171
2172 * read.c (s_xstab): Don't use alloca.
2173
2174 * messages.c (identify): New routine; print message identifying
2175 following messages as coming from assembler.
2176 (as_show_where, as_bad_internal, as_bad_where): Call it.
2177 (as_fatal): Don't need to identify program any more.
2178
2179 Tue Nov 2 18:04:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2180
2181 * read.c (s_lcomm): Put small objects in .sbss for MIPS ELF as
2182 well as MIPS ECOFF.
2183 (get_stab_string_offset): Remove unused variable aligned.
2184
2185 Tue Nov 2 15:07:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2186
2187 * tc-hppa.c: Add %dp and %rp as synonyms for %r27 and %r2 in the
2188 predefined register table.
2189 (pa_parse_number): Handle %rp in common register shortcut code.
2190 Consistently set return value to -1 for an error. Clean up error
2191 messages and only print them when "print_errors" is true. Handle
2192 empty string case like the HP assembler -- assume a value of
2193 zero.
2194
2195 * config/ho-hpux.h: Do not include ho-sysv.h. Instead include
2196 standard hpux include files to pick up various function decls.
2197
2198 * config/ho-hppaosf.h: Delete _IO* macros. They are defined in
2199 stdio.h. Delete bogus declaration of free. Get path to
2200 alloca-conf.h right.
2201
2202 Tue Nov 2 13:57:30 1993 Ken Raeburn (raeburn@rover.cygnus.com)
2203
2204 * expr.c (operand): Fix checks for characters following "0b" or
2205 "0f".
2206
2207 Mon Nov 1 21:37:04 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2208
2209 * config/obj-som.h (obj_attach_unwind_info): Define as a hook
2210 so GAS can attach unwind descriptor information to a BFD symbol.
2211 * config/tc-hppa.c (fix_new_hppa): If necessary attach unwind
2212 descriptor information to the BFD symbol.
2213 (md_apply_fix): R_HPPA_ENTRY and R_HPPA_EXIT can never be "applied",
2214 they are simply markers. Make R_HPPA_UNWIND_* handling OBJ_ELF
2215 dependent.
2216 (pa_build_unwind_subspace): Whole function is OBJ_ELF dependent.
2217 (pa_entry): Build a R_HPPA_ENTRY relocation when configured for SOM.
2218 (pa_exit): Likewise, but built a R_HPPA_EXIT relocation. Do not
2219 build "end-of-function" symbols for SOM, they are not needed.
2220
2221 * config/tc-hppa.c (process_exit): Create temporary symbols with
2222 correct prefixes so they can be eliminated later.
2223
2224 * config/tc-hppa.c (call_info struct): Delete unused "frame" field.
2225 (pa_callinfo): Insert framesize into the unwind information as
2226 soon as it's available.
2227 (pa_build_unwind_subspace): Do not insert framesize into the unwind
2228 information here.
2229
2230 * Add support for marker type relocations. These mark areas
2231 of interest to the linker. ENTRY/EXIT relocations for SOM are
2232 an example of marker relocations.
2233 * write.c (write_relocs): Instead of assuming size of a relocation
2234 is 4 bytes, pick up the size from relocation itself.
2235 (fixup_segment): Do not complain that a value is too small for
2236 marker relocations.
2237
2238 * struc-symbol.h: Add new "sy_used" field to the symbol structure.
2239 * expr.c (operand): Set sy_used for any symbol used as an operand.
2240 (expr): Likewise for any symbol used in an expression.
2241 * config/tc-hppa.h (tc_frob_symbol): Define. Punt imported
2242 symbols which are never used and absolute symbols which local scope.
2243
2244 * config/obj-som.h (obj_frob_file): Define.
2245 * config/obj-som.c (obj_som_init_stab_section): Set alignment
2246 of stab sections. Make space for the special stab entry.
2247 (adjust_stab_sections): Adjust the special entry in the
2248 stabs section.
2249 (som_frob_file): New function. Simply calls adjust_stab_sections
2250 for each section.
2251
2252 Mon Nov 1 17:54:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2253
2254 * config/tc-mips.c (PIC_CALL_REG, SP, FP): Define.
2255 (mips_pic, mips_cprestore_offset): New static variables.
2256 (md_pseudo_table): Handle .abicalls, .cpload, and .cprestore.
2257 Ignore .bgnb and .endb.
2258 (gp_reference): _gp_disp is never addressed off GP.
2259 (macro_build): Ignore macros while searching for insn. For cases
2260 i, j, and o, accept the reloc type as an argument rather than
2261 assuming BFD_RELOC_LO16. Don't try to convert BFD_RELOC_LO16 to
2262 BFD_RELOC_MIPS_GPREL. Added new case a.
2263 (set_at, load_register, macro): Changed calls to macro_build to
2264 pass new argument for i, j and o cases.
2265 (macro): Handle M_JAL_1, M_JAL_2 and M_JAL_A. These require
2266 special handling when generating SVR4 PIC code.
2267 (mips_ip, tc_get_register, s_frame): Use macros FP, SP, GP and AT
2268 rather than hard coded constants.
2269 (md_apply_fix): Handle BFD_RELOC_MIPS_LITERAL and
2270 BFD_RELOC_MIPS_CALL16.
2271 (s_option): Set mips_pic based on .option picN.
2272 (s_abicalls): New function; set mips_pic to 2.
2273 (s_cpload): New function; handle .cpload.
2274 (s_cprestore): New function; handle .cprestore.
2275
2276 * config/obj-ecoff.c (obj_pseudo_table): Add entries for .bgnb,
2277 .endb and .verstamp, setting them to s_ignore.
2278
2279 Sun Oct 31 00:36:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2280
2281 * config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined
2282 field. Define SUBSPACE_DEFINED accessor macro.
2283 (pa_subspace): Allow user to override subspace attributes for
2284 built-in subspaces. Set ssd_defined at the end of fcn -- that
2285 way the attributes can only be changed once. Pass newly allocated
2286 name to is_defined_subspace, not a pointer to the input line.
2287 Fix typo in space/subspace rework.
2288 (is_defined_subspace): Delete unused 2nd arg. All callers changed.
2289
2290 * config/tc-hppa.c (pa_import): If currently in the text segment
2291 and a symbol is imported without type information, set BSF_FUNCTION
2292 for the symbol.
2293 * write.c (relax_and_size_seg): Correct test to determine if
2294 the section's size was rounded up.
2295
2296 * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
2297 can properly set all the SOM symbol types.
2298 * config/tc-hppa.c (pa_symbol_type): New enum to represent the
2299 symbol types which can be set from an IMPORT/EXPORT statement.
2300 (pa_export_args): Set the pa_symbol_type type based on arguments.
2301 If defined, call obj_set_symbol_type to pass this information on
2302 to the BFD backend.
2303
2304 * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
2305 stab section we make.
2306 (s_stab_generic): Likewise.
2307
2308 Sat Oct 30 14:26:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2309
2310 * Allow backends to override the value of the fake label.
2311 * write.h (LOCAL_LABEL): Delete DOT_LABEL_PREFIX code. Instead
2312 assume backends will define LOCAL_LABEL if anything other than
2313 'L' is used to denote a local label.
2314 (FAKE_LABEL_NAME): New macro. Defines the default name used for
2315 the "fake" label.
2316 * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
2317 and instead simply use the string defined by FAKE_LABEL_NAME.
2318 (operand): Likewise.
2319 * read.c (s_stab_generic): Likewise.
2320 * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
2321 known to be a local label.
2322 * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
2323 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
2324 * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete.
2325 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
2326 * config/te-sco386.h (DOT_LABEL_PREFIX): Delete.
2327 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
2328
2329 Rework space/subspace handling in PA code to fully support
2330 SOM spaces/subspaces.
2331 * config/tc-hppa.c (USE_ALIASES): New object-format dependent define
2332 to control the use of space/subspace name aliases.
2333 (update_subspace): Accept space chain entry for containing space
2334 as a new parameter. All callers changed.
2335 (pa_get_label): Use current_space rather than pa_segment_to_space.
2336 (pa_define_label): Likewise.
2337 (pa_undefine_label): Likewise.
2338 (md_begin): Change into the (possibly modified) text_section.
2339 (pa_parse_space_stmt): Create a new segment/space if create_flag
2340 is true, and the space name is not one of the two predefined spaces.
2341 (pa_subspace): Use current_space rather than a lookup via
2342 pa_segment_to_space. Reset BFD section flags as required by
2343 the .subspace directive. Likewise for the section alignment.
2344 Pass the current space to update_subspace and create_new_subspace.
2345 (pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
2346 is true. When not using aliases, create a BFD section for each
2347 subspace encountered. When not using aliases replace the default
2348 text, data, and bss segments with new ones.
2349 (create_new_subspace): When not using aliases each subspace has a
2350 section/segment and subsegments are not needed, so set the subsegment
2351 to zero.
2352
2353 * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
2354 obj_set_section_attributes to pass space attributes to the
2355 BFD backend.
2356 (create_new_space): Likewise.
2357 (create_new_subspace): Likewise for subspace attributes using
2358 obj_set_subsection_attributes.
2359 (update_subspace): Likewise for subspace attributes using
2360 obj_set_subsection_attributes.
2361
2362 * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
2363 for $TEXT$ and $PRIVATE$ from the default space structure.
2364
2365 * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
2366 as appropriate for the given type.
2367
2368 * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
2369 SOM relocations.
2370
2371 * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
2372 redefinition.
2373
2374 * config/obj-som.[ch]: New files for SOM support. Note SOM
2375 support is not yet complete in GAS or BFD.
2376
2377 * config/ho-hppabsd.h: Delete IO* macros, they are defined in
2378 stdio.h. Delete declaration of free. Include stdlib.h, unistd.h,
2379 and string.h.
2380
2381 Fri Oct 29 13:26:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2382
2383 * Allow backends to override the section names used for embedded
2384 stabs support. Needed for SOM.
2385 * read.c (STAB_SECTION_NAME): Default the name of the stab section
2386 to ".stab".
2387 (STAB_STRING_SECTION_NAME): Likewise for the stab strings section.
2388 (get_stab_string_offset): Is now passed the full name for the
2389 stab string section rather than a name prefix. All references
2390 changed.
2391 (s_stab_generic): New argument for the stab string section name.
2392 all references changed.
2393 (s_xstab): Append "str" to the stab section name to get the
2394 stab string section name.
2395 * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
2396 to stab section name to get the stab string section name. Pass
2397 the full name of the stab string section to get_stab_string_offset.
2398 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
2399
2400 * config/tc-hppa.c (md_begin): Disable "-R" option to fold
2401 textand data segments. Warn user "-R" is unsupported on the
2402 PA.
2403
2404 Thu Oct 28 12:36:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2405
2406 * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
2407 .align and .ALIGN directives.
2408
2409 * config/tc-hppa.c (pa_space): Do not report an error for a .space
2410 directive which does not define a "well-known" space and does
2411 not include a space number as an argument.
2412
2413 * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
2414 "defined", "loadable", "code_only" and "space_index" fields.
2415 (pa_def_spaces): Correct initialization of the "spnum", "defined",
2416 and "private" fields.
2417
2418 * write.h (struct fix): Add new tc_fix_data field for the various
2419 backends to attach machine dependent fixup information to.
2420 * write.c (fix_new_internal): Initialize new tc_fix_data field.
2421 * config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
2422 fx_next fields.
2423 (hppa_find_hppa_fix): Delete unnecessary function. Fix all
2424 callers to get HPPA fixup information from the tc_fix_data field
2425 in the GAS fixup.
2426 (hppa_fix_root): Delete unnecessary variable.
2427 (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.
2428
2429 * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
2430 function. Fix all callers.
2431 (subspace_dictionary_chain): Delete unused ssd_start_sym field.
2432
2433 * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
2434 if a particular fixup is adjustable.
2435 * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
2436 perform the real work.
2437
2438 * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
2439 of OBJ_XXX conditionals.
2440 (MAX_RELOC_EXPANSION): Likewise.
2441
2442 * config/tc-hppa.c (log2): Renamed from is_power_of_2. Fix all
2443 callers. Now returns log2 (N) for positive N which are an exact
2444 power of two or -1 for an error.
2445
2446 * config/tc-hppa.c (pa_callinfo): Range check values provided for
2447 ENTRY_GR, ENTRY_FR and ENTRY_SR. Properly adjust vaues before
2448 inserting them into the unwind table.
2449
2450 * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
2451 (hppa_gen_reloc_type): New object format dependent macro.
2452 (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
2453 conditional. The code can (and will) be shared between SOM & ELF
2454 formats in the near future.
2455 (cons_fix_new_hppa, md_apply_fix_1): Likewise.
2456 (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
2457 (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
2458 specific call.
2459
2460 * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
2461 to bfd_und_section.
2462
2463 * config/obj-elf.h (obj_elf_version): Add extern prototype.
2464
2465 * configure.in (hppa-*-bsd*): New configuration.
2466 BFD is always used for GAS generating SOM objects.
2467
2468 * write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
2469 adjustment is rejected by the target machine.
2470
2471 * config/tc-hppa.c (pa_big_cons): Delete function and its
2472 declaration. All callers changed to use pa_cons.
2473
2474 * write.c (fixup_segment): Fix indention and open/close brace
2475 problem.
2476
2477 From Pete Hoogenboom:
2478 * config/tc-hppa.c (md_atof): Return a NULL on success rather than
2479 an empty string.
2480
2481 * config/tc-hppa.c (pa_parse_space_stmt): Advance
2482 input_line_poitner when an invalid argument is encountered.
2483
2484 Thu Oct 28 13:09:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2485
2486 * config/tc-a29k.c (md_begin): When opcodes are mashed together in
2487 the table, require that the one without bit 0x1000000 set come
2488 first. Require further that it be case 'b' or 'P'. The a29k
2489 opcode table already meets these constraints.
2490 (machine_ip): When handling case 'i' or 'A', make sure that the
2491 appropriate opcode really exists by looking at the next entry in
2492 the opcode table.
2493
2494 Wed Oct 27 11:48:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2495
2496 * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
2497 fixups. Add 6 for long 7.3 case, 2 for short 7.2 case.
2498
2499 * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
2500 after a .ent directive.
2501
2502 * config/tc-mips.c (mips_ip): Handle '>' case (shift amount
2503 between 32 and 63 for double shift instruction). Do & 0x1f rather
2504 than % 32.
2505 (printInsn): Handle '>'.
2506
2507 Tue Oct 26 16:58:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2508
2509 * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
2510 number in the right place. Untested. Probably does not work for
2511 cross assembly. From cagney@cs.adelaide.edu.au (Andrew Cagney).
2512
2513 * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
2514 an illegal offset of 0 or -1.
2515
2516 * config/obj-elf.c (obj_elf_init_stab_section): Align .stab
2517 section to a longword boundary.
2518
2519 Tue Oct 26 10:24:31 1993 Ken Raeburn (raeburn@cygnus.com)
2520
2521 * Makefile.in (CHECKFLAGS): Pass down RUNTESTFLAGS.
2522
2523 From Jeff Law:
2524 * config/tc-hppa.c (tc_gen_reloc): ELF32_HPPA_R_ADDEND ->
2525 HPPA_R_ADDEND.
2526
2527 Mon Oct 25 11:17:58 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2528
2529 * config/tc-sh.c (build_Mbytes): Write the relocs to the correct
2530 address. (md_assemble): Make error handling a bit more graceful.
2531 (md_apply_fix): Don't warn on non aligned displacement.
2532
2533 * config/tc-z8k.c (get_specific, built_bytes): Understand all the
2534 aspects of lda.
2535
2536 Mon Oct 25 10:20:31 1993 Ken Raeburn (raeburn@rover.cygnus.com)
2537
2538 * doc/Makefile.in (install-info): Use "$<*" so VPATH will find
2539 as.info* even if they're in $(srcdir) (e.g., for FSF
2540 distributions).
2541
2542 * write.c (write_relocs): For relocs that are pc_relative and
2543 pcrel_offset and not partial_inplace, adjust reloc->addend to
2544 compensate for a bfd_perform_relocation bug.
2545
2546 * config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
2547 * config/tc-sparc.c: Ditto.
2548 (tc_gen_reloc): Include fx_offset for pcrel fixups.
2549
2550 Sun Oct 24 16:49:00 1993 Jim Wilson (wilson@x1.cygnus.com)
2551
2552 * tc-mips.c (md_pseudo_table): Add dword pseudo op.
2553
2554 Fri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2555
2556 * messages.c: replaced all variables called Format with 'format',
2557 for consistency throughout
2558
2559 * configure.in: handle mips*- instead of mips, mips*el for little
2560 endian configurations
2561
2562 Fri Oct 22 14:45:49 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2563
2564 * input-scrub.c (physical_input_file, logical_input_file,
2565 physical_input_line, logical_input_line): Made static.
2566 (as_where): Return current file name and line number, don't print
2567 them out.
2568 * messages.c (as_show_where): New static function. Other
2569 functions use it instead of as_where.
2570 (as_bad_internal): New static function.
2571 (as_bad): Use as_bad_internal.
2572 (as_bad_where): New function, like as_bad but taking a file name
2573 and line number.
2574 * as.h (as_bad_where): Declare.
2575 (as_where): Change prototype for new arguments.
2576 * write.h (fixS): Added fields fx_file and fx_line.
2577 * write.c (fix_new_internal): Save file and line number in fix.
2578 (fixup_segment): Use as_bad_where, not as_bad.
2579 * input-file.c (f_in, file_name): Made static.
2580 * cond.c (struct file_line): Just use file and line fields.
2581 (s_else): Use as_where and as_bad_where, not get_file_line and
2582 set_file_line.
2583 (get_file_line, set_file_line): Removed.
2584 * listing.c (listing_newline): Use as_where.
2585 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
2586 * config/obj-ecoff.c (add_file): Use as_where.
2587 * config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
2588 * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
2589 * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
2590
2591 Thu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com)
2592
2593 * config/tc-m68k.h: Don't define REGISTER_PREFIX or
2594 OPTIONAL_REGISTER_PREFIX if either is already defined.
2595
2596 * config/tc-m68k.c (m68k_ip): Delete some code in "#if 0".
2597
2598 * configure.in: Set bfd_gas for all sparc targets. Added facility
2599 for keeping or rejecting configurations still under development;
2600 default is to assume production environment, and reject configs
2601 still being worked on. Mark Elf configurations (except sparc and
2602 i386) as developmental. Deleted cases matching some generic names
2603 in favor of more specific names. (E.g., when we get Alpha
2604 support, we'll still only support VMS for Vax.)
2605
2606 * config/tc-sparc.h (md_end): New macro.
2607 * config/tc-sparc.c (md_end): Function deleted.
2608 (BFD_RELOC_*): Delete macros that used to help keep the non-bfd
2609 version compiling. All sparc targets will use bfd now.
2610 * tc.h (md_end): Don't declare if it's defined as a macro.
2611
2612 Changes from Jeff Law and Peter Hoogenboom:
2613
2614 * read.c (next_char_of_string): Limit octal character constants to
2615 three digits.
2616
2617 * config/tc-hppa.h: Major cleanup. Use GNU-style comments. Warn
2618 against placing additional object-file dependent code here. Warn
2619 against contaminating all of GAS with the internals of tc-hppa.c
2620 through inclusion of tc-hppa.h. Delete all forward declarations
2621 for functions only used within tc-hppa.c, likewise for structures,
2622 variables, and #defines. Try to group OBJ_ELF and OBJ_SOM
2623 conditional code in a few small places.
2624
2625 * config/tc-hppa.c: Major cleanup. Use GNU-style comments. Group
2626 structures, global variables, forward declarations together.
2627 Reduce (or in some cases eliminate) OBJ_ELF and OBJ_SOM
2628 conditional code -- try to group conditional code together
2629 into a few places. Make all functions and variables which
2630 are only used within tc-hppa.c static. PARAMize all functions.
2631 Add comments to functions. Delete unused functions, variables,
2632 #defines, etc. Delete unused members within structures. Delete
2633 ldil;ble hacks -- it is believed they were installed to work
2634 around old gas bugs. Avoid using mixed case for local
2635 functions, variables, and structures. Fix formatting problems
2636 not found by GNU-indent. Add FIXME notices for things which
2637 should be worked on the near future. Delete lots of old
2638 useless (1.36 PA-SOM) code.
2639
2640 * config/tc-hppa.c: (fix_new_hppa): Initialize the fx_r_type
2641 field of the fixS structure. Needed to build unwind
2642 descriptors correctly.
2643
2644 * write.c: (fixup_segment): Allow expressions such as
2645 sym1-sym2+const as long as sym2 is $global$.
2646
2647 * write.c (adjust_reloc_syms): Provide a hook so that a target
2648 cpu configuration can reject certain relocation reductions.
2649 * tc-hppa.h (tc_fix_adjustable): New macro. Only accept relocations
2650 which do not involve function symbols.
2651
2652 * config/tc-hppa.h: Reindent with GNU-indent. Delete references
2653 to OBJ_OSFROSE. Fix typos (OBJ_SOME -> OBJ_SOM). Delete unused
2654 STAB_FIXUP macro.
2655 * config/tc-hppa.c: Likewise.
2656
2657 * config/tc-hppa.c (md_apply_fix_1): Use elf_symbol_type, instead
2658 of elf32_symbol_type.
2659 (pa_export_args): Likewise.
2660 (elf_hppa_final_processing): Likewise.
2661 (pa_desc): Do not call obj_elf_desc. (Is pa_desc even needed
2662 anymore?)
2663 (hppa_tc_make_sections): Do not declare elf_get_symtab_map any
2664 ore.
2665
2666 * config/tc-hppa.c: (md_section_align): Align all sections to
2667 a multiple of the section alignment rather than always a
2668 multiple of 8.
2669
2670 * config/tc-hppa.c (hppa_tc_symbol): If the argument relocation
2671 bits are zero (eg they specify no relocations), then do not even
2672 bother adding their entries to thesymextn section.
2673
2674 Thu Oct 21 15:44:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2675
2676 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
2677 option, which is used by the SunOS make default .s.o rule.
2678
2679 Tue Oct 19 18:13:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2680
2681 * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable
2682 m68k_aout_machtype.
2683 * config/tc-m68k.c (omagic): Remove obsolete and unused variable.
2684 (m68k_aout_machtype): New variable, if OBJ_AOUT.
2685 (md_assemble): Initialize m68k_aout_machtype based on
2686 current_architecture, if OBJ_AOUT.
2687 (md_parse_option): Remove obsolete reference to omagic.
2688
2689 Thu Oct 14 16:51:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2690
2691 * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
2692 (s_option): Ignore .option O* and .option pic*.
2693 (s_ent): Skip whitespace between symbol and optional digit.
2694 (my_getSmallExpression): Handle ($xx) correctly: assume 0($xx).
2695
2696 * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape
2697 characters in state 6.
2698 * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are
2699 hexidecimal digits.
2700
2701 * config/tc-i386.c (md_apply_fix_1): Make cross segment calls work
2702 for ELF by hacking around bizarre bfd_perform_relocation behaviour
2703 that I don't dare change.
2704
2705 Thu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org)
2706
2707 * config/tc-i386.c: (md_begin): Do not zero static arrays. Don't
2708 call strchr for each character to see if it is a special char,
2709 instead add a second loop over special_chars. Set alignment
2710 of text, data and bss sections to 4.
2711 (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be
2712 used again.
2713 (reloc): Don't return 8 and 16 bit non-PC relative relocations on
2714 ELF, since the ELF object format does not have these type of
2715 relocations. Change the abort into as as_bad and return
2716 BFD_RELOC_NONE to silence compiler warnings.
2717 (md_assemble): Keep track of the instruction size. Allow white
2718 space between the $ and the constant for compatibility with older
2719 gases and other assemblers.
2720 (i386_operand): Skip spaces between $ and expression.
2721 (tc_gen_reloc): Don't allow anything but 32 bit relocations on
2722 ELF. Convert abort into an as_bad and assert into as_fatal.
2723
2724 Wed Oct 13 16:50:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2725
2726 * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: If
2727 sub_symbolP is in the current segment, convert to a PC-relative
2728 fixup and discard the symbol.
2729
2730 Wed Oct 13 14:00:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2731
2732 * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbol
2733 for st_StaticProc just like st_Proc.
2734
2735 * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUT
2736 so that OBJ_BOUT doesn't forget to adjust all the fragments in the
2737 .bss section.
2738
2739 Tue Oct 12 17:26:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2740
2741 * config/tc-mips.c: If OBJ_ELF, include elf/mips.h.
2742 (mips_regmask_frag): New static variable, if OBJ_ELF.
2743 (md_begin): If OBJ_ELF, create .reginfo section and set
2744 mips_regmask_frag to a frag.
2745 (mips_elf_final_processing): New function, if OBJ_ELF. Set
2746 mips_regmask_frag to register mask information.
2747 * config/tc-mips.h (elf_tc_final_processing): New macro, defined
2748 if OBJ_ELF.
2749
2750 Tue Oct 12 03:33:26 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2751
2752 * messages.c (as_fatal): Use myname when printing messages.
2753
2754 * config/tc-i960.c (md_begin): Use null pointer, not empty string,
2755 as initial "return" value in case hashing isn't needed.
2756
2757 * config/tc-a29k.c (md_atof): Return null, not empty string, on
2758 success.
2759 * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof),
2760 config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof),
2761 config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof),
2762 config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto.
2763
2764 Mon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2765
2766 fix for pr 3571
2767 * config/tc-h8300.c (get_specific): Special action if 8 bit
2768 address seen. (check_operand): Don't complain if truncating top
2769 bits of an 8 bit address. (build_bytes): Allow an immediate and
2770 an absolute in the same insn.
2771
2772 Mon Oct 11 17:18:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2773
2774 * write.c (write_contents): Don't crash if seginfo is NULL.
2775
2776 * config/obj-ecoff.c (ecoff_frob_file): Write out register masks
2777 by modifying .reginfo section, not by directly modifying BFD
2778 backend data.
2779
2780 Mon Oct 11 14:11:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2781
2782 * config/ho-sunos.h: remove extern time declaration
2783
2784 Mon Oct 11 16:14:43 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2785
2786 * messages.c (as_fatal): Do mention that it's the assembler that
2787 got the fatal error.
2788
2789 Fri Oct 8 14:09:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2790
2791 * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to
2792 hold register masks.
2793 (md_begin): Initialize them to zero.
2794 (append_insn): Update mips_gprmask and mips_cprmask. Also add
2795 register variables pinfo and prev_pinfo.
2796 * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare.
2797 * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask
2798 and cprmask from mips_gprmask and mips_cprmask.
2799
2800 * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF.
2801 * config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF.
2802 (various): Change all references to GP references to apply if
2803 GPOPT, not if OBJ_ECOFF.
2804 (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata
2805 instead of .rdata. If OBJ_ELF, set section flags for .rodata and
2806 .sdata sections.
2807 (s_frame, s_loc, s_mask): Comment out entire functions, rather
2808 than just body. They're not used anyhow.
2809 * configure.in: Set cpu_type to mips for mips*. Accept
2810 mips-*-elfl* and mips-*-elf*.
2811
2812 Thu Oct 7 18:36:29 1993 Michael Meissner (meissner@osf.org)
2813
2814 * config/obj-elf.c (obj_elf_common): Allow the alignment field to
2815 not be specified.
2816
2817 Wed Oct 6 13:01:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2818
2819 * config/tc-mips.c (cons_fix_new_mips): New function. Turn
2820 BFD_RELOC_64 into BFD_RELOC_32.
2821 * config/tc-mips.h (TC_CONS_FIX_NEW): Define.
2822 (cons_fix_new_mips): Declare.
2823
2824 Changes to let cons handle bignums like general expressions.
2825 * expr.h (expressionS): New field X_unsigned.
2826 * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for
2827 unary minus case.
2828 (expr) Fix typo resultP to right if missing operand. Set
2829 X_unsigned to 1 when building new expression.
2830 * read.c (potable): Make "octa" and "quad" call cons, not
2831 big_cons.
2832 (cons): Handle bignums. If given an O_constant (small integer) to
2833 fill a big space, turn it into a bignum.
2834 (parse_bitfield_cons): Set X_unsigned field.
2835 (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons):
2836 Removed.
2837 * read.h (big_cons): Remove prototype.
2838 * symbols.c (resolve_symbol_value): Don't give a warning if a
2839 symbol in expr_section can not be resolved.
2840 (S_SET_VALUE): Clear X_unsigned.
2841 * write.c (write_object_file): If resolve_symbol_value failed on a
2842 symbol we are writing out, give a warning.
2843 * config/tc-h8500.c (parse_reglist): Set X_unsigned.
2844 * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to
2845 call pa_cons, not pa_big_cons.
2846 (pa_big_cons): Remove.
2847 * config/tc-hppa.h (pa_big_cons): Remove declaration.
2848 * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons,
2849 not big_cons.
2850
2851 Tue Oct 5 10:53:36 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2852
2853 * doc/as.texinfo (Copying): new node, to handle the recent changes
2854 in the texinfo/gpl.texinfo file
2855
2856 Mon Oct 4 17:10:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2857
2858 * read.c (big_cons): Handle "0" correctly.
2859
2860 * config/tc-mips.c (md_begin): Set target_big_endian correctly.
2861
2862 Mon Oct 4 15:37:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2863
2864 * config/tc-m68k.c (m68k_ip): Mode 7.3 operand using PC should
2865 have pc-relative fixup.
2866 (md_parse_option): Move "-k" case down near "-pic" case.
2867
2868 * configure.in: Alphabetize list of cpu type alternatives. Enable
2869 OS values of "linux*elf*" and "linux*coff*" to select those
2870 formats, with linux emulation. Don't bother checking for upper-
2871 or mixed-case versions of "ose".
2872
2873 Thu Sep 30 11:05:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2874
2875 * config/z8k.c (md_pseudo_table): add "unseg".
2876
2877 Wed Sep 29 16:15:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2878
2879 * config/m88k-opcode.h (m88k_opcodes): correct a few mistakes
2880 found while extending the dissassembler.
2881
2882 Tue Sep 28 12:02:04 1993 Stan Shebs (shebs@rtl.cygnus.com)
2883
2884 * configure.in: Split i386 LynxOS out from other coff targets,
2885 add a specific Lynx emulation.
2886 Add m68k LynxOS target.
2887 * config/tc-i386.c: Define specific Lynx target format.
2888 * config/tc-m68k.c: Define specific Lynx target format.
2889 * config/te-lynx.h: New file.
2890
2891 * config/obj-coffbfd.h: Don't set TARGET_FORMAT to be
2892 "coff-{i386,m68k}" if TARGET_FORMAT already defined.
2893 (INIT_STAB_SECTION): Define.
2894 * config/obj-coffbfd.c: Include <time.h>.
2895 (write_object_file): Look for .stab sections and call
2896 adjust_stab_section.
2897 (adjust_stab_section): New function, fills in the first symbol
2898 of a stab section with number of symbols and string table size.
2899 (obj_coff_init_stab_section): New function, creates the initial
2900 symbol for a stab section.
2901
2902 Mon Sep 27 15:21:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2903
2904 * config/atof-vax.c (md_atof): Return null on success instead of
2905 empty string.
2906 * config/atof-tahoe.c (md_atof): Ditto.
2907 * read.c (float_cons): Expect a null pointer for success, not an
2908 empty string.
2909
2910 * hash.c (hash_insert, hash_jam, hash_grow): Return null pointer
2911 on success, instead of empty string. All callers changed.
2912
2913 * config/tc-vax.c: Use PARAMS in declarations.
2914 (vip_op): Use NULL instead of empty string for success in error
2915 and warning fields.
2916
2917 Sun Sep 26 23:45:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2918
2919 * expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of two symbols
2920 in different defined segments.
2921
2922 * write.c (relax_segment): Localize "aim" variable. If
2923 DIFF_EXPR_OK, don't impose checks on symbol segment types.
2924 (fixup_segment) [DIFF_EXPR_OK]: If sub_symbolP is in the current
2925 segment, convert to a PC-relative fixup and discard the symbol.
2926
2927 * config/tc-m68k.c (flag_want_pic): New variable, mostly ignored.
2928 (md_parse_option) [TE_SUN3]: Set it for "-k".
2929 (m68k_ip): Generate proper fixup for mode 7.3.
2930 * config/tc-m68k.h (DIFF_EXPR_OK): Define.
2931
2932 Sat Sep 25 05:08:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2933
2934 * config/tc-m68k.c (struct m68k_incant, getone, gettwo): Moved
2935 earlier in the file.
2936 (insop, add_exp): Now defined as functions, for readability.
2937 (insop): Now takes two arguments; callers changed.
2938
2939 Fri Sep 24 12:37:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2940
2941 * config/tc-m88k.c (get_o6): new function.
2942 (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg,
2943 get_vec9, getval, get_pcr, calcop, match_name): make static and
2944 prototype.
2945 (s_file): remove extraneous forward decl.
2946 (md_begin): add const to retval decl.
2947 (calcop): cope with instructions without arguments. Handle 'o'
2948 type argument, the o6 field of the prot insn.
2949 (md_estimate_size_before_relax): return a dummy value.
2950
2951 * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
2952 in bits 10 through 7. flt.[dxs]s requires an r register in the
2953 second argument. New instruction lda.x. New instruction muls
2954 (alias for mul).
2955
2956 Fri Sep 24 13:43:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2957
2958 * Makefile.in (distclean): Recurse like clean.
2959 * doc/Makefile.in (distclean): New target.
2960
2961 * config/tc-mips.c (md_begin): Set BFD architecture and machine
2962 based on MIPS ISA level.
2963
2964 Thu Sep 23 17:58:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2965
2966 * as.c (main): "exhausted", not "exhuasted".
2967
2968 * struc-symbol.h (struct symbol): Add sy_used_in_reloc field.
2969 * write.c (adjust_reloc_syms): Set sy_used_in_reloc.
2970 (write_object_file): Never strip symbols with sy_used_in_reloc
2971 set.
2972
2973 * config/obj-elf.c (obj_elf_section): Rewrote to handle both
2974 Solaris and SVR4 style .section pseudo-ops.
2975 (obj_elf_ident): Set SEC_READONLY for .comment section.
2976 * config/tc-sparc.c (md_apply_fix): If this is ELF, and we're
2977 generating a reloc, don't apply a fix.
2978
2979 Thu Sep 23 13:16:58 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2980
2981 * config/obj-coffbfd.c (relax_align): Now static.
2982
2983 Mon Sep 20 19:23:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2984
2985 * read.c (get_stab_string_offset): Make non-static. Make
2986 arguments const. Don't align strings to 4 byte boundaries.
2987 * read.h: Declare get_stab_string_offset.
2988 * config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as
2989 SEC_LOAD for progbits section.
2990 (obj_elf_init_stab_section): New function.
2991 (adjust_stab_sections): Add casts to avoid warnings.
2992 * config/obj-elf.h (INIT_STAB_SECTION): Call
2993 obj_elf_init_stab_section.
2994 (OBJ_PROCESS_STAB): Removed definition.
2995
2996 Fri Sep 17 18:12:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2997
2998 * config/obj-elf.h (S_GET_SIZE): Define.
2999 (obj_frob_forward_symbol): Define.
3000 * config/tc-i386.c (line_comment_chars): Initialize in all cases.
3001
3002 Thu Sep 16 14:23:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3003
3004 * tc.h: Declare tc_gen_reloc differently depending upon
3005 RELOC_EXPANSION_POSSIBLE.
3006 * config/obj-elf.c (obj_elf_section): Only set flags when first
3007 creating the section.
3008
3009 Wed Sep 15 12:15:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3010
3011 * config/tc-mips.c (append_insn): Don't swap a trap instruction
3012 with a branch.
3013
3014 Tue Sep 14 13:31:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3015
3016 * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
3017 set previous_section and previous_subsection and then call s_data
3018 and s_text, respectively.
3019 (obj_pseudo_table): Add data and text.
3020 (obj_elf_section): Add SEC_LOAD to default initialization of
3021 flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as
3022 SEC_ALLOC for "alloc" string. Don't bother trying to find the
3023 section; just use subseg_new.
3024
3025 * read.c (change_to_section): Removed. This is now done by
3026 subseg_new.
3027 (get_stab_string_offset): Rearranged somewhat. Create the section
3028 using subseg_new. Store the string index in seg_info, rather than
3029 in a static variable. Force the first string to be empty. Use
3030 frag_more rather than FRAG_APPEND_1_CHAR.
3031 (s_stab_generic): Rewrote.
3032 * subsegs.h (segment_info_type): Added stabu union.
3033 * subsegs.c (subseg_new): Initialize stab_string_size to 0.
3034 * config/obj-aout.c: Don't include aout/stab_gnu.h.
3035 (obj_aout_stab, obj_aout_desc): Removed.
3036 (obj_pseudo_table): Removed desc and stabX entries.
3037 * config/obj-bout.c: Same changes as config/obj-aout.c.
3038 * config/obj-bout.h (S_SET_TYPE): Define.
3039 (tc_bout_fix_to_chars): Declare.
3040 * config/obj-coff.c (obj_coff_stab): Removed.
3041 (obj_pseudo_table): Removed desc and stabX entries.
3042 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
3043 * config/obj-coffbfd.c (current_stab_symbol): Removed.
3044 * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
3045 n_other, n_desc and n_value fields.
3046 (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
3047 (MAKE_STAB_SYMBOL): Removed.
3048 * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
3049 Changed arguments and removed parsing code.
3050 (obj_pseudo_table): Removed stabX entries.
3051 * config/obj-ecoff.h (ecoff_stab): Declare.
3052 (OBJ_PROCESS_STAB): Define.
3053 * config/obj-elf.c: Don't include aout/stab_gnu.h.
3054 (obj_elf_stab, obj_elf_xstab, obj_elf_desc,
3055 elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
3056 Removed.
3057 (obj_pseudo_table): Removed desc, stabX and xstabs entries.
3058 (obj_elf_version): Use subseg_new, not bfd_make_section. Don't
3059 set SEC_LOAD for .note section.
3060 (adjust_stab_sections): Get frag pointer from seg_info, rather
3061 than looking through frags.
3062 * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
3063 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
3064 Define.
3065 * config/obj-vms.c (obj_aout_stab): Removed.
3066 (obj_pseudo_table): Removed stabX entries.
3067 * config/obj-vms.h (S_SET_TYPE): Define.
3068
3069 * as.h: Declare listing.
3070 * read.c: Don't declare listing.
3071 (emit_expr): Cast fix_new_exp argument.
3072 (parse_bitfield_cons): Correct printf format.
3073 * symbols.c (symbol_new): Add cast to avoid warning.
3074 * write.h: Declare text_last_frag and data_last_frag.
3075 * config/obj-bout.c (obj_bout_line): Added dummy argument.
3076 * config/obj-coffbfd.c: Add some casts to avoid warnings.
3077 * config/tc-a29k.c: Likewise.
3078 * config/tc-i960.c: Likewise. Also fully bracket structure
3079 initializations, fix printf formats, and remove unused variables.
3080
3081 Mon Sep 13 16:48:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3082
3083 * read.c (s_desc): Only compile and use if S_SET_DESC is defined.
3084 * struc-symbol.h: Declare verify_symbol_chain and
3085 verify_symbol_chain_2 even if not SYMBOLS_NEED_BACKPOINTERS.
3086 * symbols.c (verify_symbol_chain): Removed useless expression.
3087 * write.c (headers, the_object_file): Only use if not
3088 BFD_ASSEMBLER and not BFD.
3089 (fixup_segment, cvs_frag_to_fill): Only use if BFD_ASSEMBLER or
3090 not BFD.
3091 (merge_data_into_text): Only use if BFD_ASSEMBLER or (not BFD and
3092 not OBJ_AOUT).
3093 * write.h: Declare relax_segment.
3094 * config/obj-coffbfd.c (stack_pop, stack_push, stack_init): Made
3095 static.
3096 (stack_top): Commented out, since it's not used.
3097 Fixed up pseudo-op functions to take an ignored int argument.
3098 (size_section): Added default BAD_CASE to switch.
3099 Changed bzero calls to memset.
3100 * config/obj-coffbfd.h (S_IS_LOCAL): Call strchr on S_GET_NAME
3101 (s), not on s itself.
3102 * config/tc-a29k.c (s_use): Take ignored int argument. Only
3103 define if OBJ_COFF is not defined.
3104 * config/tc-i386.c: (fits_in_signed_byte, smallest_imm_type): Make
3105 argument signed again.
3106 * config/tc-m68k.c (s_bss, s_even, s_proc): Take ignored int
3107 argument.
3108 (m68k_ip): Fully bracket initialization of archs.
3109 Correct several formats for __LINE__ to be %d rather than %s.
3110 (init_table): Fully bracket initialization.
3111 Cast values larger than 0x7f assigned to fr_opcode to char.
3112
3113 * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
3114 Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
3115 section name, and subseg_set always takes a segT. Changed all
3116 callers as appropriate.
3117 * config/obj-coffbfd.c (change_to_section): Renamed to
3118 obj_coff_add_segment. Corrected. Made callers use subseg_new.
3119 * config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
3120 Define.
3121
3122 Mon Sep 13 13:15:03 1993 Doug Evans (dje@canuck.cygnus.com)
3123
3124 * config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
3125
3126 Fri Sep 10 11:22:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3127
3128 * config/obj-elf.h (S_SET_SIZE): Actually set the size.
3129
3130 Gcc lint.
3131 * Added a number of casts to function calls.
3132 * app.c (do_scrub_begin), as.c (main), expr.c (integer_constant,
3133 operand, expr), read.c (read_begin, HANDLE_CONDITIONAL_ASSEMBLY,
3134 read_a_source_file, s_align_bytes, demand_empty_rest_of_line,
3135 ignore_rest_of_line, big_cons, is_it_end_of_statement, s_ignore),
3136 read.h (is_name_beginner, is_part_of_name), config/obj-elf.c
3137 (obj_elf_section), config/tc-i386.c (parse_register),
3138 config/tc-sparc.c (isoctal, s_proc): Cast char
3139 array indices to unsigned char.
3140 * app.c (process_escape): Make static. Add prototype. Change
3141 argument from char to int.
3142 * as.c: Include output-file.h for prototypes. Comment out unused
3143 function got_sig.
3144 * Makefile.in (as.o): Depend on output-file.h.
3145 * as.h (BAD_CASE): Cast val argument to long, and use %ld.
3146 (pseudo_typeS): Add prototype to poc_handler field.
3147 (print_version_id): Add prototype.
3148 (xmalloc, xrealloc): Change size arguments to unsigned long.
3149 (do_scrub_next_char): Add prototypes for function arguments.
3150 (had_errors, had_warnings, scrub_from_file): Remove duplicate
3151 declarations.
3152 * atof-generic.c (atof_generic): Make size variables unsigned.
3153 * cond.c (ignore_input): Removed unused local variable ptr.
3154 * expr.c (floating_constant, integer_constant): Make static. Add
3155 prototypes.
3156 * flonum-copy.c (flonum_copy): Make size variables unsigned.
3157 * frags.h: Add prototype for frag_init.
3158 * hash.h, hash.c: Change hash values from char * to PTR, make hash
3159 strings const, make returned error strings const char *. Added
3160 prototypes for functions.
3161 * input-file.h, input-file.c (input_file_buffer_size): Return
3162 unsigned int.
3163 * input-scrub.c (buffer_length): Make unsigned.
3164 (input_scrub_push, input_scrub_pop): Make static.
3165 * listing.c (list_symbol_table): Cast sprintf argument to unsigned
3166 long and use %lx. Print name of segment rather than address of
3167 structure.
3168 (listing_list, listing_title): Change argument to int.
3169 (listing_eject, listing_flags, listing_psize): Add int argument.
3170 * listing.h: Corresponding declaration changes.
3171 * obj.h (obj_emit_symbols): Rename prototype argument to avoid
3172 shadowing.
3173 * read.h: Change get_absolute_expression prototype to return
3174 offsetT. Add prototype for next_char_of_string. Various
3175 prototype changes.
3176 * read.c: Remove prototype for next_char_of_string.
3177 (pobegin): Make errtxt const. Make new_length, tmp_len and num
3178 unsigned.
3179 (s_abort, s_align_ptwo, s_comm, s_data, s_app_line, s_fill,
3180 s_globl, s_lsym, s_org, s_set, s_text, s_desc): Add int argument.
3181 Change all callers.
3182 (s_comm): Change temp from valueT to offsetT. Cast to long when
3183 printing and use %ld (only for error messages anyhow).
3184 (s_long, s_int): Remove unused functions.
3185 (cons): Change argument to int.
3186 (emit_expr): Use %lx when printing longs.
3187 (get_absolute_expression): Return offsetT, not long.
3188 (get_stab_string_offset): Comment out unless
3189 SEPARATE_STAB_SECTIONS.
3190 (s_stab_generic): Remove unused offset. Define seg_is_new only
3191 if SEPARATE_STAB_SECTIONS. Use toP only in local block.
3192 * struc-symbol.h (verify_symbol_chain_2): Add prototype.
3193 * symbols.c: Remove nested comment.
3194 (symbol_new): Rename value to valu.
3195 (colon): Use %ld and cast to long in error message.
3196 * symbols.h: Remove duplicate verify_symbol_chain declaration.
3197 * tc.h: Remove unused md_emit_relocations declaration.
3198 (tc_gen_reloc): Add declaration.
3199 * write.c (cvt_frag_to_fill): Change first argument name depending
3200 on BFD_ASSEMBLER.
3201 (write_relocs): Remove unused offset, frags. Remove tc_gen_reloc
3202 declarations. Make n unsigned.
3203 (write_contents): Remove unused i, n, relocs, fixp. Rename frags
3204 to f to avoid shadowing.
3205 (write_object_file): Define fragP only if not BFD_ASSEMBLER or not
3206 WORKING_DOT_WORD. Remove unused keep. Only declare punt and
3207 punt_it if they will be used. Make i and n unsigned.
3208 (fixup_segment): Cast to long and use %ld in error message.
3209 * xmalloc.c (xmalloc, xrealloc): Make size argument unsigned.
3210 * config/obj-aout.h: Remove nested comment. Add prototype for
3211 obj_aout_frob_symbol.
3212 (obj_aout_line, obj_aout_desc): Add int argument.
3213 * config/obj-ecoff.c: Changed build routines to use an unsigned
3214 offset.
3215 (add_string): Make len unsigned long.
3216 (obj_ecoff_stab): Use %lu in error message.
3217 * config/obj-elf.c (obj_elf_common): Comment out unused label
3218 allocate_bss.
3219 (obj_elf_frob_symbol): Return 0 (currently broken).
3220 (obj_elf_desc, obj_elf_version, obj_elf_size, obj_elf_type,
3221 obj_elf_ident, obj_elf_weak, obj_elf_local, obj_elf_common,
3222 obj_elf_line, obj_elf_previous): Add int argument.
3223 (obj_elf_write_symbol_p): Make static.
3224 * config/obj-elf.h (obj_elf_write_symbol): Add prototype.
3225 * config/tc-hppa.h: Remove declarations of functions declared in
3226 read.h.
3227 * config/tc-i386.c (ENCODE_RELAX_STATE): Cast to relax_substateT.
3228 (s_bss): Add int argument.
3229 (fits_in_signed_byte, smallest_imm_type): Make argument unsigned.
3230 (dummy): Remove unused function.
3231 (md_assemble): Rename local o to op to avoid shadowing.
3232 (tc_gen_reloc): Rename local reloc to rel to avoid shadowing.
3233 * config/tc-m68k.c (s_data1, s_data2): Add int argument.
3234 * config/tc-mips.c (mips_ip, md_apply_fix): Cast to long and use
3235 %ld in error messages.
3236 * config/tc-sparc.c: Remove duplicate declarations.
3237 (getExpression): Rewrite condition to avoid empty conditional
3238 body.
3239 (s_reg, s_proc, s_reserve, s_common, s_seg, s_xword): Add int
3240 argument.
3241
3242 Thu Sep 9 17:10:00 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3243
3244 Changes from Jeff Law:
3245
3246 * config/tc-hppa.c (md_assemble): Fix typo.
3247 (pa_ip): Delete unused variables and labels. Do not check for
3248 unsigned values being < 0, it can't happen.
3249 (is_same_frag): Return a value in recursive call case.
3250 (pa_callinfo): Delete unused variables and labels.
3251 (pa_comm): Likewise.
3252 (pa_copyright): Likewise.
3253 (pa_export): Likewise.
3254 (pa_import): Likewise.
3255 (pa_param): Likewise.
3256 (pa_space): Likewise.
3257 (pa_subspace): Likewise.
3258
3259 Thu Sep 9 15:05:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3260
3261 * read.c (get_stab_string_offset, s_stab_generic): If
3262 BFD_ASSEMBLER, call subseg_set rather than subseg_new.
3263
3264 Wed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3265
3266 * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
3267 default flag values.
3268
3269 Tue Sep 7 10:22:52 1993 Stan Shebs (shebs@rtl.cygnus.com)
3270
3271 * read.c: (change_to_section): Don't include body if not MANY_SECTIONS.
3272
3273 * read.c: (s_stab, s_xstab, s_desc): New functions to parse
3274 various stab-related directives.
3275 * read.h: (s_stab, s_xstab, s_desc): New function prototypes.
3276 * write.c: (merge_data_into_text): Fix ifdef tangle.
3277 * config/obj-coffbfd.c (current_stab_symbol): Fake symbol
3278 for stab reader to use.
3279 * config/obj-coffbfdh.h (obj_symbol_type): Added fields for
3280 stab reader, macros to access.
3281
3282 Fri Sep 3 16:44:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3283
3284 * config/obj-elf.h (elf_symbol): Fixed name of elf_symbol_type.
3285
3286 * config/tc-hppa.h (struct default_subspace_dict, struct
3287 default_space_dict): Field "sort" is now unsigned char.
3288
3289 * config/tc-hppa.c (pa_def_subspaces, pa_def_spaces): Align
3290 columns for easier reading.
3291 (bcmp, index): Deleted USG-specific definitions. Should be dealt
3292 with in ho-*.h, or in libiberty. Changed mention of index to
3293 strchr.
3294 (label_symbolP, label_symbol_defined, callinfo_found,
3295 within_entry_exit, exit_processing_complete, within_procedure,
3296 pa_def_subspaces, pa_def_spaces, pa_pseudo_op_moves_pc,
3297 label_symbols_rootP, pa_get_label, pa_label_is_defined,
3298 pa_undefine_label): Now static.
3299 (movers): Now const, in addition to pointing to const data.
3300 * config/tc-hppa.h (label_symbolS_rootP, pa_get_label,
3301 pa_label_is_defined, pa_undefine_label, pa_pseudo_op_moves_pc):
3302 Delete declarations.
3303
3304 Merged more changes from Jeff Law and Pete Hoogenboom:
3305
3306 * config/tc-hppa.c (pa_def_subspaces, pa_def_subspaces): Remove
3307 entries for .stab and .stabstr.
3308
3309 * config/obj-elf.c: (elf_stab_symbol_string): Set the
3310 SEC_LOAD attribute for the .stabstr section.
3311 (obj_elf_stab_generic): Set the SEC_LOAD attribute for the
3312 .stab section.
3313 (obj_elf_stab_generic): Change '#if 1' to '#if 0'.
3314 (obj_elf_stab_generic): Incorrect byte count on call to
3315 md_number_to_chars function.
3316
3317 * config/tc-hppa.c (hppa_tc_symbol): Static functions need
3318 argument relocation bits too.
3319
3320 * config/tc-hppa.c (pa_stringer): Correctly handle escaping
3321 characters which should appear unaltered in the output string (for
3322 example an escaped double-quote).
3323
3324 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Always
3325 initialize name.
3326 (pa_parse_neg_cmpsub_cmpltr): Likewise.
3327 (pa_parse_nonneg_add_cmpltr): Likewise.
3328 (pa_parse_neg_add_cmpltr): Likewise.
3329
3330 * config/tc-hppa.h (parse_cons_expression_hppa): Remove prototype
3331 for now.
3332 (cons_fix_new_hppa): Likewise.
3333 * config/tc-hppa.c (md_apply_fix): Fix type of valp to match
3334 prototype.
3335
3336 * config/tc-hppa.c: Include libhppa.h.
3337
3338 * config/tc-hppa.h: Delete extern declarations of functions
3339 found in libhppa.h.
3340
3341 * config/tc-hppa.c (pa_space): Rework to avoid unwanted #ifdef
3342 OBJ_ELF conditionals.
3343 * config/tc-hppa.h (LOCAL_LABEL): Correctly identify local labels
3344 on the PA.
3345
3346 Thu Sep 2 10:43:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3347
3348 * config/tc-mips.c (macro_build): Accept 'z', and ignore it.
3349 (macro): Use "z,s,t" for div instructions to match corresponding
3350 change in opcode table.
3351 (mips_ip): Added 'z'--must be zero register.
3352
3353 Wed Sep 1 15:56:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3354
3355 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Declare
3356 tc_gen_reloc correctly.
3357
3358 * configure.in: Use "case" instead of "if" when possible. Rewrote
3359 Makefile editing to reduce work done. Treat "hppa*" as "hppa".
3360
3361 Wed Sep 1 12:19:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3362
3363 * config/obj-coffbfd.c (obj_coff_section): add 'd' as an alias for
3364 section type of data. 'd' seems to be used for m88k.
3365
3366 Wed Aug 25 22:33:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3367
3368 * config/tc-mips.c (mips_align, s_stringer, s_cons, s_float_cons,
3369 s_mips_space): Set insn_label to NULL to avoid changing it at the
3370 next .align statement.
3371 (append_insn): Don't swap jal with instruction that sets the
3372 register that jal sets.
3373
3374 Wed Aug 25 16:15:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3375
3376 * configure.in: recognize m88110.
3377
3378 Wed Aug 25 13:37:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3379
3380 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
3381 * config/tc-hppa.c (pa_build_unwind_subspace): SEC_ALLOC should
3382 not be on for .hppa_unwind.
3383 (md_pseudo_table): .PARAM and .param are valid pseudo-ops for GAS.
3384 (pa_param): New function to handle .PARAM directives.
3385 (pa_ip): Pass "isbranch" argument down to pa_parse_*_compltr
3386 functions. Handle '|' for movb; allow movb,n.
3387 (pa_parse_nonneg_cmpsub_cmpltr): Delete old useless
3388 version. Handle cases where no completer exists for
3389 comb,n or addb,n.
3390 (pa_parse_neg_cmpsub_cmpltr): Handle cases where no
3391 completer exists for comb,n or addb,n. Make logic
3392 mirror that of pa_parse_nonneg_cmpsub_cmpltr.
3393 (pa_parse_nonneg_add_cmpltr): Likewise.
3394 (pa_parse_neg_add_cmpltr): Likewise.
3395 * tc-hppa.h (pa_param): Declare.
3396
3397 Tue Aug 24 15:41:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3398
3399 * config/tc-hppa.c (hppa_tc_make_symextn_section): Now static.
3400 Added forward declaration.
3401
3402 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
3403
3404 * config/obj-elf.c (elf_frob_file): Arguments were incorrect on
3405 call to elf_tc_make_sections.
3406 (obj_elf_version): A .note section shouldn't have the SEC_ALLOC
3407 attribute.
3408
3409 * config/tc-hppa.c (hppa_tc_make_sections): Add some processing to
3410 handle symbol extension sections.
3411
3412 * config/tc-hppa.c (pa_build_symextn_section): New function to
3413 create a symbol extension section.
3414 (pa_export_args): Make call to pa_build_symextn_section.
3415 (hppa_tc_symbol, hppa_tc_make_sections,
3416 hppa_tc_make_symextn_section): New functions.
3417 * config/tc-hppa.h: Update elf_tc_symbol and elf_tc_make_sections
3418 macros.
3419
3420 * read.c (emit_expr): Place check for TC_CONS_FIX_NEW in the
3421 BFD_ASSEMBLER branch as well.
3422
3423 * config/tc-hppa.h: If ELF is the target object format, define
3424 some ELF- and hppa-specific types and constants.
3425
3426 * config/tc-hppa.c (getExpression): Fix a typo.
3427
3428 * read.c (read_a_source_file): Use TC_EQUAL_IN_INSN to determine
3429 if a `=' is part of an instruction.
3430 (read_a_source_file): Handle case where end-of-line markers are
3431 also used within instructions.
3432 * config/tc-hppa.h (TC_EQUAL_IN_INSN, TC_EOL_IN_INSN): Define.
3433
3434 * config/tc-hppa.c (md_apply_fix_1): Keep relocations for
3435 out-of-range branches/'calls using "bl" or calls which may need
3436 argument relocation stubs. Do not need/keep relocations for
3437 conditional branches.
3438 (elf_hppa_final_processing): Fix calculation of function size.
3439
3440 * config/obj-elf.c (obj_elf_version): Mark .note section as
3441 READONLY.
3442
3443 * config/tc-hppa.c (parse_cons_expression_hppa): Pass exp, not the
3444 address of exp, to expression.
3445 (pa_build_unwind_subspace): Turn SEC_HAS_CONTENTS flag on.
3446 (md_apply_fix_1): Delete unwanted comments.
3447 (process_exit): Symbols marking the end of a function are always
3448 BSF_LOCAL.
3449
3450 * config/tc-hppa.c: Include elf32-hppa.h from BFD tree.
3451 (pa_space): Declare and initialize gdb_section.
3452
3453 * config/obj-elf.c (elf_frob_file): Change
3454 elf_tc_final_processing_hook to elf_tc_final_processing.
3455
3456 * config/tc-hppa.c (fix_new_hppa): Fix argument list to match
3457 argument type declarations.
3458 (getExpression): Fix typo.
3459 (pa_export_args): Change elf_symbol_type to elf32_symbol_type.
3460 (elf_hppa_final_processing): Likewise. Name changed from
3461 elf_hppa_final_processing_hook.
3462 (start_symbol_root, start_symbol_last): Deleted.
3463
3464 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION): Fix typo.
3465
3466 * config/tc-hppa.h: Replace "symbolS" with "struct symbol" to
3467 avoid changing include ordering.
3468
3469 * config/tc-hppa.c (pa_ip, case 'y'): Handle just like 't'.
3470
3471 Mon Aug 23 12:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3472
3473 * config/tc-mips.c (set_at): Added unsignedp argument. Use
3474 load_register.
3475 (set_at_unsigned): Removed; changed callers to use set_at.
3476 (load_register): Removed unused ip argument. Changed callers.
3477 (append_insn): Don't swap branch and branch likely.
3478 (macro_build): Handle 'u'.
3479 (load_register): Handle 64 bit constants.
3480 (macro): Added M_DABS, removed M_ABSU. Numerous changes to
3481 support 64 bit constants.
3482 (mips_ip): Use hex constants in range checks for clarity.
3483 (md_number_to_chars): Support 8 byte values.
3484
3485 Fri Aug 20 16:50:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3486
3487 * config/tc-m88k.h: updated copyrights.
3488 (TC_CONS_RELOC): declare to be RELOC_32.
3489
3490 Fri Aug 20 11:16:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3491
3492 * config/tc-mips.c (mips_isa): New static variable.
3493 (md_begin): Initialize mips_isa based on TARGET_CPU. Don't sanity
3494 check macros. Set text alignment and GP size here.
3495 (md_assemble): Don't set text alignment and GP size here.
3496 (append_insn): Don't insert NOPs for load delays if mips_isa >= 2.
3497 Use the right mask and shift for WRITE_FPR_T and WRITE_FPR_S. Add
3498 a NOP after a branch likely.
3499 (mips_emit_delays): Don't insert NOPS for load delays if mips_isa
3500 >= 2.
3501 (macro): Support r6000 and r4000 macros.
3502 (mips_ip): Check insn ISA level against mips_isa before using it.
3503 Added 'x' case for ignored register.
3504 (md_parse_option): Handle -mipsN and -mcpu=XX.
3505
3506 Fri Aug 20 01:26:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3507
3508 * config/tc-i386.c (md_pseudo_table) [OBJ_ELF]: Handle ".zero".
3509
3510 Thu Aug 19 12:15:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3511
3512 * config/tc-sparc.c (s_local): Function moved and renamed...
3513 * config/obj-elf.c (obj_elf_local): ...to here.
3514 * config/tc-sparc.c (md_pseudo_table), config/obj-elf.c
3515 (obj_pseudo_table): Move handling of ".local".
3516
3517 * tc.h (md_parse_option): Don't declare if defined as a macro.
3518
3519 * config/tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as
3520 BFD_RELOC_NONE.
3521 (md_parse_option): New macro, converted from function.
3522 * config/tc-i386.c (md_parse_option): Function deleted.
3523 (comment_chars) [OBJ_ELF]: Include "/".
3524 (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/".
3525 (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler
3526 warning.
3527 (md_assemble, md_estimate_size_before_relax, md_create_long_jump):
3528 Call reloc for fix_new type, or use correct enumerator, instead of
3529 always using NO_RELOC.
3530 (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for
3531 tests for valid section.
3532 (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start
3533 address.
3534 (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with
3535 symbol, compensate for location of reloc.
3536 (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define
3537 to return zero.
3538
3539 Wed Aug 18 16:51:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3540
3541 * config/obj-elf.c: Undef NO_RELOC before including aout/aout64.h.
3542 (obj_elf_weak): New function.
3543 (obj_pseudo_table): Handle ".weak".
3544 (obj_elf_section): If section directive includes a string, ignore
3545 it for now. Accept "progbits" flag.
3546 (obj_elf_type): Accept `@' before flag name.
3547
3548 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Get rid of `if(1)'
3549 condition.
3550 (fixup_segment) [BFD_ASSEMBLER]: Use bfd_is_com_section, rather
3551 than checking for bfd_com_section directly.
3552 (fixup_segment): Simplify range check.
3553 (fixup_segment) [OBJ_COFF && TC_I960]: Simplify cpp condition
3554 test.
3555
3556 * symbols.h (S_SET_WEAK): Declare.
3557 * symbols.c (S_SET_WEAK): New function.
3558 (S_SET_EXTERNAL, S_CLEAR_EXTERNAL): Don't bother with BSF_EXPORT,
3559 it's not a separate flag any more. Clear BSF_WEAK.
3560
3561 * read.c (potable): Treat "string" like "asciz".
3562
3563 Wed Aug 18 15:30:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3564
3565 * config/tc-mips.c (append_insn): Don't swap branch instructions
3566 if .set nobopt or .set volatile.
3567 (gp_reference): .lit8 and .lit4 are accessed via the GP register.
3568 (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD.
3569 (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point.
3570 * config/obj-ecoff.c: Renamed some variables to avoid shadow
3571 warnings.
3572
3573 Mon Aug 16 14:16:02 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3574
3575 * config/obj-coff.h (S_IS_COMMON): add missing backslash
3576
3577 * configure.in (z8k-*-{coff,sim}): use coffbfd for this target
3578
3579 Thu Aug 12 11:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3580
3581 * config/tc-mips.c (mips_ip): Suggested by
3582 davidj@ICSI.Berkeley.EDU (David Johnson): Don't accept symbolic
3583 names for 'E' and 'G' argument types (coprocessor registers) and
3584 don't warn if $1 is used on the coprocessor.
3585 (macro): Handle M_{L,S}WC{0,2,3}_AB correctly.
3586
3587 Mon Aug 9 12:09:14 1993 Doug Evans (dje@canuck.cygnus.com)
3588
3589 * read.c (emit_expr): Use BFD_RELOC_16 for 2-byte values.
3590 * config/tc-sparc.c (md_apply_fix, tc_gen_reloc): Handle
3591 BFD_RELOC_16.
3592 * config/tc-sparc.h (WORKING_DOT_WORD): Define.
3593
3594 Mon Aug 9 13:36:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3595
3596 * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER is
3597 defined or BFD is not.
3598 (relax_and_size_all_segments): Declare local variable fragP.
3599
3600 Fri Aug 6 15:22:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3601
3602 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_32): Fill in
3603 bytes with real values, not zeros.
3604
3605 Fri Aug 6 10:57:59 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3606
3607 * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested)
3608 targets, using ecoff and mips-big.
3609
3610 * config/tc-mips.c (mips_ip): From davidj@ICSI.Berkeley.EDU (David
3611 Johnson): Added case for 'C' for coprocessor instruction codes.
3612
3613 Thu Aug 5 13:08:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3614
3615 * config/obj-elf.c (obj_pseudo_table): Handle ".8byte".
3616
3617 * read.c (emit_expr): Use BFD_RELOC_64 for 8-byte expressions.
3618
3619 * write.c (write_object_file): Test DEBUG_SYMS instead of DEBUG
3620 for verifying symbol chain.
3621 (merge_data_into_text, relax_and_size_all_segments): New
3622 functions, split out from write_object_file.
3623
3624 Tue Aug 3 15:43:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3625
3626 * config/obj-elf.c (obj_elf_stab_generic, in disabled code): If
3627 debug section is new, allocate an extra 12 bytes at its start. If
3628 ".stabs" type is N_SO, fill in filename symbol field of that first
3629 entry. Return early if "goof", to simplify later code slightly.
3630 (adjust_stab_sections): New function.
3631 (elf_frob_file): Apply adjust_stab_sections to each section.
3632
3633 * config/obj-elf.c (obj_elf_section, obj_elf_previous): No longer
3634 static.
3635 * config/obj-elf.h (obj_elf_section, obj_elf_previous): Declare.
3636 * config/tc-sparc.c (md_pseudo_table): Call them for "pushsection"
3637 and "popsection", and call cons for "uaword" and "uahalf".
3638
3639 * config/obj-elf.c (obj_elf_version): Use English in error
3640 messages.
3641
3642 Tue Aug 3 11:29:06 1993 Ian Lance Taylor (ian@cygnus.com)
3643
3644 * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets the
3645 swapping routines and external structure sizes via the
3646 ecoff_backend information. No longer includes coff/mips.h.
3647
3648 Mon Aug 2 17:35:48 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3649
3650 * config/obj-ecoff.c (get_tag): Save tag name in permanent memory
3651 and in hash_ptr->string.
3652
3653 * app.c (do_scrub_next_char): Reset state to 0 after .appline if
3654 file name is not seen.
3655
3656 Thu Jul 29 22:21:28 1993 Ian Lance Taylor (ian@cygnus.com)
3657
3658 * write.c: Don't use short int in a prototype.
3659
3660 * expr.c (operand): Make return value simply depend on contents of
3661 returned expression.
3662
3663 Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3664
3665 * configure.in: sparc*-aout and sparc*-vxworks are BFD assemblers
3666
3667 Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3668
3669 * config/ho-sunos.h: remove some old function decls that conflict
3670 w/ ANSI, and which weren't needed anyway
3671
3672 Wed Jul 28 16:34:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3673
3674 * config/obj-elf.h (obj_frob_symbol): Renamed from tc_frob_symbol,
3675 and disabled since it breaks Ian's new symbol-value code.
3676
3677 * expr.c (integer_constant): Accept more digits if BFD64.
3678
3679 Wed Jul 28 11:30:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3680
3681 * config/tc-m68k.c (m68k_ip): If we have a normal constant when we
3682 expect a bignum, turn it into a bignum. Output extra zeroes
3683 before a short bignum, rather than after.
3684
3685 Tue Jul 27 15:54:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3686
3687 * symbols.c (symbol_new): Conditionalize verify_symbol_chain call
3688 on DEBUG_SYMS, not DEBUG.
3689 (symbol_remove): Likewise.
3690 (symbol_insert): Likewise.
3691
3692 Tue Jul 27 08:45:05 1993 Ian Lance Taylor (ian@cygnus.com)
3693
3694 * config/tc-mips.c (mips_optimize): New static variable.
3695 (append_insn): If mips_optimize == 0, always insert NOP
3696 instructions. If mips_optimize < 2, don't swap branches.
3697 (md_parse_option): If -Ox or -gx, set mips_optimize accordingly.
3698
3699 Mon Jul 26 18:02:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3700
3701 * Makefile.in (clean): if testsuite does not exist, then skip it.
3702
3703 Fri Jul 23 14:13:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3704
3705 * config/tc-mips.c (prev_insn_unreordered,
3706 prev_prev_insn_unreordered): New static variables.
3707 (append_insn): Don't swap branch instruction if
3708 prev_prev_insn_unreordered (see comment).
3709 (mips_no_prev_insn): Clear the unreordered variables.
3710 (s_mipsset): When turning on reordering, set the unreordered
3711 variables.
3712
3713 Fri Jul 23 13:09:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3714
3715 * config/obj-elf.c (obj_elf_section): Sections ".init" and ".fini"
3716 are also magic, and have special default flag settings.
3717 (obj_elf_frob_symbol): Since the return value from this function
3718 isn't used, don't bother calling obj_elf_write_symbol_p, since it
3719 doesn't accomplish anything else.
3720
3721 * config/tc-sparc.c (md_section_align): Round up section size only
3722 for a.out format.
3723
3724 * symbols.c: Don't define DEBUG by default.
3725
3726 Thu Jul 22 12:09:41 1993 Ian Lance Taylor (ian@cygnus.com)
3727
3728 * write.c (fix_new_exp): Handle a O_uminus expression.
3729
3730 * expr.c (expr): Don't let absolute_section override
3731 undefined_section for the return value.
3732
3733 * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a
3734 pseudo-op with a poc_handler field of NULL, ignore it and treat it
3735 as an instruction instead.
3736 * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL
3737 poc_handler field.
3738
3739 * config/tc-h8500.c (md_begin): Use a local variable when
3740 initializing md_relax_table to avoid warnings about modifying a
3741 supposedly const data structure.
3742
3743 Thu Jul 22 10:58:51 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
3744
3745 * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER
3746 is defined.
3747
3748 Wed Jul 21 17:32:02 1993 Fred Fish (fnf@deneb.cygnus.com)
3749
3750 * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.
3751 * configure.in (case ${generic_target}): Add i[34]86-*-sysv4*
3752 case to set obj_format=elf. Must go before i386-*-sysv* case that
3753 sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and
3754 *-*-solaris case, and move to before *-sysv* case that wants to
3755 set obj_format to coff.
3756 * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to
3757 'exp->X_op'.
3758 * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for
3759 BFD_ASSEMBLER case.
3760
3761 Wed Jul 21 12:47:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3762
3763 * config/obj-aout.c: Include aout/aout64.h.
3764 (obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor
3765 symbol, so that BFD doesn't tamper with the type.
3766
3767 * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
3768 up opcodes as pseudo-ops even if they don't start with '.'.
3769 * config/tc-m88k.h (NO_PSEUDO_DOT): Define.
3770 * config/tc-m88k.c (md_assemble): Removed special pseudo-op
3771 handling.
3772 (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
3773 Output the low 16 bits for RELOC_HI16, not the high 16 bits.
3774 * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
3775 r_offset field of the reloc to the fixup offset.
3776 (fixup_segments): If TC_M88K, don't warn about fixup overflows.
3777 * doc/as.texinfo: Minor updates.
3778
3779 Tue Jul 20 19:28:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3780
3781 * Extensive changes to permit symbols to contain any expression
3782 type and to delay the computation of the expression until the
3783 value is actually needed. This permits setting symbols to values
3784 calculated based on object code size. Expressions were changed to
3785 no longer be in a section, to stop the overloading of segment and
3786 expression type that previously occurred.
3787
3788 * as.c (big_section, pass1_section, diff_section, absent_section):
3789 Removed.
3790 (expr_section): Added (used for dummy symbols which hold
3791 intermediate expression values).
3792 (perform_an_assembly_pass): Create expr_section, do not create the
3793 sections now removed.
3794 * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and
3795 SEG_DIFFERENCE. Added SEG_EXPR.
3796 (SEG_NORMAL): Corresponding changes.
3797 * subsegs.c (seg_name, subsegs_begin): Changed accordingly.
3798 * write.c (write_object_file): Ditto.
3799 * config/obj-aout.c (seg_N_TYPE): Ditto.
3800 * config/obj-bout.c (seg_N_TYPE): Ditto.
3801 * config/obj-coff.c (seg_N_TYPE): Ditto.
3802 * config/obj-coffbfd.c (seg_N_TYPE): Ditto.
3803 * config/obj-vms.c (seg_N_TYPE): Ditto.
3804
3805 * expr.h (operatorT): Moved in from expr.c, added some values.
3806 (expressionS): Added X_op field, removed X_seg field; renamed
3807 X_subtract_symbol to X_op_symbol.
3808 * expr.c: Extensive changes to assign expression types rather than
3809 sections and to simplify the parsing.
3810 * write.c (fix_new_internal): New static function.
3811 (fix_new): Removed sub_symbol argument.
3812 (fix_new_exp): New function, takes expression argument.
3813 * write.h: Prototype changes for fix_new and fix_new_exp.
3814 * cond.c (s_if): Changed accordingly.
3815 * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons,
3816 parse_repeat_cons, get_segmented_expression,
3817 get_known_segmented_expression, get_absolute_expression): Ditto.
3818 * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE):
3819 Ditto.
3820 * write.c (write_object_file): Ditto.
3821 * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto.
3822 * config/obj-coffbfd.c (obj_coff_def, obj_coff_val,
3823 obj_coff_endef, yank_symbols): Ditto.
3824 * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto.
3825 * config/tc-a29k.c (md_assemble, parse_operand, machine_ip,
3826 print_insn, md_operand): Ditto.
3827 * config/tc-h8300.c (parse_exp, colonmod24, check_operand,
3828 do_a_fix_imm, build_bytes): Ditto.
3829 * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist,
3830 get_specific, check, insert, md_convert_frag): Ditto.
3831 * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa,
3832 md_assemble, pa_ip, getExpression, getAbsoluteExpression,
3833 evaluateAbsolute, pa_build_unwind_subspace, pa_entry,
3834 process_exit): Ditto.
3835 * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative,
3836 is_complex): Ditto.
3837 * config/tc-i386.c (pe, md_assemble, i386_operand,
3838 md_estimate_size_before_relax, md_create_long_jump): Ditto.
3839 * config/tc-i860.c (md_assemble, getExpression, print_insn):
3840 Ditto.
3841 * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag,
3842 get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc,
3843 i960_handle_align): Ditto.
3844 * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op,
3845 subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1,
3846 md_estimate_size_before_relax, md_create_long_jump, get_num):
3847 Ditto.
3848 * config/tc-m88k.c (md_assemble, get_imm16, get_pcr,
3849 md_create_short_jump, md_create_long_jump): Ditto.
3850 * config/tc-mips.c (md_assemble, append_insn, gp_reference,
3851 macro_build, macro, my_getExpression): Ditto. Also removed
3852 get_optional_absolute_expression; just use get_absolute_expression
3853 instead.
3854 * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif,
3855 fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto.
3856 * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto.
3857 * config/tc-sh.c (parse_exp, check, insert, md_convert_frag):
3858 Ditto.
3859 * config/tc-sparc.c (md_assemble, sparc_ip, getExpression,
3860 print_insn): Ditto.
3861 * config/tc-tahoe.c (struct top, md_estimate_size_before_relax,
3862 tip_op, md_assemble): Ditto.
3863 * config/tc-vax.c (seg_of_operand, md_assemble,
3864 md_estimate_size_before_relax, md_create_long_jump): Ditto.
3865 * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
3866
3867 Tue Jul 20 12:17:16 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3868
3869 * configure.in: i386-lynx is the same as i386-coff
3870
3871 Mon Jul 19 15:21:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
3872
3873 * config/obj-elf.c (obj_elf_previous): New function.
3874 (previous_section, previous_subsection): New vars.
3875 (obj_elf_section): Save current place in case DWARF code wants us
3876 to pop back to it. Handle unquoted section name as well as quoted
3877 section name. Don't crash on invalid strings.
3878 (obj_pseudo_table): Handle new pseudos "previous", "2byte", and
3879 "4byte".
3880
3881 * config/obj-elf.h: Don't include struc-symbol.h.
3882 (obj_elf_frob_symbol): Declare arg as struct symbol *.
3883
3884 * tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Local labels can start with
3885 "L" or "_.L_".
3886
3887 * write.c (write_relocs): New function, split off from
3888 write_contents. Use memset instead of bzero.
3889 (write_object_file): Apply write_relocs to each section before
3890 applying write_contents.
3891
3892 * read.c (read_begin): Call obstack_begin with values closer to 1K
3893 multiples.
3894 (read_a_source_file, big_cons, float_cons): Use memcpy instead of
3895 bcopy.
3896
3897 Mon Jul 19 14:30:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3898
3899 * config/tc-m68k.c (m68k_ip_op): Don't decrement strend when
3900 calculating opP->isiz; this permits the expression size to be
3901 determined as well, later on.
3902
3903 * expr.c (clean_up_expression): Don't cancel the subtraction of
3904 undefined symbols.
3905
3906 * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R,
3907 switch to text section rather than data section.
3908
3909 Mon Jul 19 12:35:39 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3910
3911 * config/tc-m68k.c (m68k_ip, case AINDX): Add 6 to operand
3912 expression (to take the pc-rel instruction itself into account)
3913 before using the expression, instead of after.
3914
3915 Fri Jul 16 08:56:04 1993 Ian Lance Taylor (ian@cygnus.com)
3916
3917 * read.c (float_cons): Simplified parsing logic. If
3918 REPEAT_CONS_EXPRESSIONS is defined, accept a repeat count.
3919
3920 * symbols.c (colon): Rather than a special case for TC_HPPA,
3921 use new macro tc_frob_label.
3922 * config/tc-hppa.h (tc_frob_label): Define.
3923
3924 * config/tc-mips.c: Many changes to support simple assembler
3925 optimization.
3926 (insn_label, prev_insn, prev_prev_insn, dummy_opcode,
3927 prev_insn_valid, prev_insn_frag, prev_insn_where,
3928 prev_insn_fixp, prev_insn_is_delay_slot): New static
3929 variables.
3930 (insn_uses_reg, mips_no_prev_insn, mips_emit_delays,
3931 mips_align, s_stringer, s_mips_space): New static functions.
3932 (mips_define_label): New global function.
3933 (md_pseudo_table): For "ascii", "asciz", "asciiz", call
3934 s_stringer. Changed argument to float_cons from 0 or 1 to 'f'
3935 or 'd'. For "space" call s_mips_space.
3936 (md_begin): Call mips_no_prev_insn.
3937 (append_insn): Only insert necessary NOP instructions.
3938 (macro): Call mips_emit_delays before setting mips_noreorder.
3939 Increment and decrement mips_noreorder rather than using
3940 save_reorder_condition. Don't bother to use noreorder in
3941 M_L_DOB and M_L_DAB, since append_insn will not insert a NOP.
3942 (md_atof): Handle floating point numbers correctly for both
3943 big and little endian targets.
3944 (s_align, s_cons): Call mips_align rather than frag_align.
3945 (s_change_seg, s_cons): Call mips_emit_delays.
3946 (s_float_cons): Let float_cons do the work.
3947 (s_mipsset): Call mips_emit_delays when setting noreorder.
3948 * config/tc-mips.h (tc_frob_label): Define to be
3949 mips_define_label.
3950
3951 * config/obj-ecoff.c (ecoff_build_symbols, ecoff_build_procs,
3952 ecoff_frob_files): Consistently use S_GET_VALUE rather than
3953 bfd_asymbol_value. Warn if taking difference of symbols in
3954 different segments.
3955
3956 Thu Jul 15 11:51:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3957
3958 * config/obj-ecoff.c (ecoff_frob_file): Discard all open scopes,
3959 with a warning.
3960
3961 * config/obj-coffbfd.c (fixup_segment): If TC_M88K, don't adjust
3962 by md_pcrel_from if we are relocating against a symbol (we still
3963 need md_pcrel_from for a PC relative relocation within the same
3964 file).
3965 * config/tc-m88k.c (md_pcrel_from): Corrected return value.
3966 (omagic): Removed unused variable.
3967
3968 * Preliminary support for m88k-coff.
3969 * configure.in (m88k-*-coff*): New target. Use coffbfd and
3970 m88kcoff.
3971 * config/m88kcoff.mt: New file.
3972 * read.c (lex_type): New macro LEX_AT to set lex type of '@'.
3973 (pseudo_set): Handle difference of symbols in different fragments
3974 by saving the entire expression as the value of the symbol.
3975 * symbols.c (resolve_symbol_value): Resolve difference
3976 expressions.
3977 * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
3978 "sdef" as a synonym for "def".
3979 * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
3980 TARGET_FORMAT.
3981 (S_IS_LOCAL): Any symbol which includes \001 in the name is local.
3982 * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
3983 m88k port up to date, and to add COFF support.
3984
3985 Wed Jul 14 15:09:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3986
3987 * Removed sy_forward and replaced it with an undefined expression
3988 as the value of a symbol.
3989 * struc-symbol.h (struct symbol): Removed sy_forward field. Added
3990 sy_resolved and sy_resolving single bit fields.
3991 * symbols.c (symbol_new): Don't initialize sy_forward field.
3992 (resolve_symbol_value): New function to adjust symbol value by
3993 fragment address, using recursion to resolve forward symbols.
3994 * symbols.h: Added prototype for new function.
3995 * read.c (pseudo_set): Set symbolP->sy_value to an undefined
3996 expression rather than setting symbolP->sy_forward.
3997 * write.c (write_object_file): Use resolve_symbol_value on
3998 symbols, keeping the common case (the old behaviour) inline.
3999 * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward
4000 handling (subsumed by write.c change).
4001 * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set
4002 sy_value rather than sy_forward.
4003 * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check
4004 expression segment rather than sy_forward.
4005 (yank_symbols): Use resolve_symbol_value.
4006 (crawl_symbols): Removed extra pass over symbols.
4007 * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c,
4008 config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over
4009 symbols which handled sy_forward; use resolve_symbol_value
4010 instead.
4011 * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol):
4012 Define.
4013 * config/obj-elf.c (obj_elf_stab_generic): Check expression
4014 segment rather than sy_forward.
4015 * config/obj-vms.c (VMS_Check_For_Main): Don't initialize
4016 sy_forward; do initialize sy_resolved and sy_resolving.
4017 * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward.
4018
4019 * Changes to keep a full expression as the value of a symbol, not
4020 just a longword:
4021 * struc-symbol.h: New field sy_value.
4022 * as.h: Include expr.h before struc-symbol.h.
4023 * expr.h: Use struct symbol rather than symbolS.
4024 * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value
4025 of sy_value field; compile unconditionally, not just if
4026 BFD_ASSEMBLER.
4027 * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally.
4028 * write.c (write_object_file): Set BFD symbol value to gas symbol
4029 value.
4030 * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h,
4031 config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h
4032 (S_GET_VALUE, S_SET_VALUE): Removed macro definitions.
4033 * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed.
4034 * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use
4035 S_GET_VALUE rather than ost_entry.n_value.
4036 * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c
4037 (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars),
4038 config/obj-coffbfd.c (symbol_to_chars): Get value to write out
4039 using S_GET_VALUE--don't assume it is already set.
4040 * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas
4041 symbol value.
4042 * config/obj-vms.c (various): Don't assign directly to
4043 S_GET_VALUE; use S_SET_VALUE instead.
4044
4045 Wed Jul 14 09:35:23 1993 Doug Evans (dje@canuck.cygnus.com)
4046
4047 * configure.in: Recognize h8300h.
4048
4049 Tue Jul 13 12:09:44 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4050
4051 * config/tc-h8500.c (line_comment_chars): Add hash.
4052 (parse_exp, skip_colonthing, build_bytes): Add support for
4053 R_H8500_HIGH16 relocation type.
4054
4055 Mon Jul 12 11:15:34 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4056
4057 * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an
4058 attribute name. Handle `execinstr' attribute.
4059
4060 Mon Jul 12 07:22:28 1993 Ian Lance Taylor (ian@cygnus.com)
4061
4062 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
4063 there is another alternative for the instruction.
4064
4065 Fri Jul 9 17:31:34 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4066
4067 * doc/as.texinfo: updates for H8/300H
4068
4069 Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
4070
4071 * config/tc-i960.c (md_create_short_jump, md_create_long_jump,
4072 md_number_to_chars, md_section_align): Adjusted to use valueT,
4073 addressT, to match tc.h.
4074
4075 Thu Jul 8 14:15:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4076
4077 * config/tc-sparc.c (s_common): Revamp to handle both syntaxes,
4078 independent of format.
4079
4080 Thu Jul 8 07:25:25 1993 Doug Evans (dje@canuck.cygnus.com)
4081
4082 * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h.
4083
4084 Wed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
4085
4086 * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross
4087 build; also recognize h8300-*-coff
4088
4089 Wed Jul 7 10:21:24 1993 Ian Lance Taylor (ian@cygnus.com)
4090
4091 * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
4092 core just because somebody uses a label before it is defined.
4093
4094 * config/mips-opcode.h: Moved to opcode/mips.h.
4095 * config/tc-mips.c: Include opcode/mips.h rather than
4096 mips-opcode.h.
4097 (append_insn): An extra NOP is only needed after instructions
4098 which set HI or LO, not after instructions which read it.
4099 (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
4100 (macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
4101 * config/tc-mips.h (struct mips_opcode): Don't define.
4102 * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
4103 Set to $(srcdir)/../include/opcode/mips.h.
4104
4105 Get the MIPS assembler up to speed with other gas changes:
4106
4107 * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
4108 Removed; don't change the symbol value.
4109 (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
4110 bfd_asymbol_value rather than S_GET_VALUE to include section
4111 vma in symbol value.
4112 (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
4113 doesn't output them. Set the vma of sections.
4114 * config/obj-ecoff.h: Don't define obj_frob_symbol.
4115 * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
4116 longer necessary.
4117 (various): use valueT rather than long.
4118
4119 Wed Jul 7 08:33:30 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4120
4121 * as.h (valueT): Typedef moved here.
4122 * struc-symbol.h (valueT): ...from here.
4123 * write.c (write_object_file): Locals from_addr, to_addr,
4124 table_addr are now addressT. Supply prototype for bfd_alloc for
4125 now.
4126 (fixup_segment): Local add_number is now valueT. Correct some
4127 range-checking bugs.
4128 (relax_align): Type `int' should be sufficient for the exponent.
4129 (fix_new): Argument offset is type offsetT. Locals size and
4130 newsize are type valueT.
4131 * write.h (struct fix): Fields fx_offset and fx_addnumber are now
4132 type valueT.
4133 (fix_new): Fix prototype.
4134 * symbols.c (symbol_new): Symbol value is type valueT.
4135 (S_SET_VALUE, S_GET_VALUE): Likewise.
4136 (S_IS_*): Specify int return type explicitly.
4137 * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed
4138 prototypes.
4139 * read.c (s_comm): Values read are type valueT.
4140 * expr.h (expressionS): Field X_add_number is an offsetT.
4141 * tc.h (md_create_long_jump, md_create_short_jump,
4142 md_section_align): Addresses are now type addressT.
4143 (md_number_to_chars, md_apply_fix): Pass value as valueT.
4144 * config/tc-i386.c (md_create_short_jump, md_create_long_jump,
4145 md_number_to_chars, md_section_align): Adjusted.
4146 * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make
4147 gcc shut up.
4148 (md_create_short_jump, md_create_long_jump, md_number_to_chars,
4149 md_section_align): Adjusted.
4150
4151 * config/tc-sparc.c (s_reserve): Permit use for other than a.out
4152 format.
4153 (s_common): Handle Solaris-2 version.
4154
4155 * config/ho-generic.h (free): Returns void if __STDC__.
4156
4157 * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file,
4158 elf_file_symbol): Declare.
4159
4160 * expr.c (floating_constant, integer_constant): Now return void.
4161
4162 Thu Jul 1 12:13:43 1993 Ian Lance Taylor (ian@cygnus.com)
4163
4164 * configure.in: Match on sparc*-fujitsu-none rather than
4165 sparclite*-fujitsu-none.
4166
4167 Wed Jun 30 11:12:02 1993 Ian Lance Taylor (ian@cygnus.com)
4168
4169 * read.c (cons): Conditionalize parsing of expression. Move
4170 putting value into object file into separate function. Separate
4171 out MRI and WANT_BITFIELDS cases into separate functions.
4172 (emit_expr): New function to write data into object file.
4173 Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
4174 processor types.
4175 (parse_bitfield_cons): New function to parse bitfield expressions
4176 as used by i960 assemblers. Only compiled if
4177 BITFIELD_CONS_EXPRESSIONS is defined.
4178 (parse_mri_cons): New function to parse MRI style strings. Only
4179 compiled if MRI is defined.
4180 (parse_repeat_cons): New function to parse repeat counts. Only
4181 compiled if REPEAT_CONS_EXPRESSIONS is defined.
4182 * read.h (emit_expr): Added declaration of new function.
4183 * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
4184 * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
4185 * config/tc-hppa.c (parse_cons_expression_hppa): New function to
4186 parse a HPPA expression, rather than special case in cons
4187 function.
4188 (cons_fix_new_hppa): New function to emit an HPPA fixup, rather
4189 than special case in emit_expr function.
4190 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
4191 Define to use new functions from tc-hppa.c.
4192 * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
4193 (WANT_BITFIELDS): Removed; now obsolete.
4194 * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
4195 * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
4196 NS32K fixup, rather than special case in emit_expr function.
4197 * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
4198 cons_fix_new_ns32k. Also use PARAMS rather than checking
4199 __STDC__.
4200 * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.
4201
4202 * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
4203 Don't core dump if gas has no information about a section.
4204
4205 Wed Jun 30 06:21:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4206
4207 * write.c (relax_and_size_seg): Always fully process a section.
4208 Section size is last frag's (vm)address plus its size. If no
4209 relocations are present, force SEC_RELOC flag clear.
4210 (dump_section_relocs): New debugging routine.
4211 (adjust_reloc_syms): New routine, broken out from write_contents.
4212 Don't adjust relocs that are already relative to section symbol.
4213 Look for obj_fix_adjustable macro to know what else to skip,
4214 instead of obj_write_symbol. Look for section symbol stored in
4215 section information.
4216 (write_object_file): Map adjust_reloc_syms over all sections.
4217 (write_contents): Clear SEC_RELOC flag if no relocations are
4218 found.
4219
4220 * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to
4221 keep it quiet.
4222
4223 * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER.
4224
4225 Fri Jun 25 14:42:53 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4226
4227 * Makefile.in (all, dvi, info, install-info, clean-info): do not
4228 echo recursion lines.
4229 (install-info, clean-info): collapse into the dvi and info rule.
4230
4231 Fri Jun 25 03:43:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4232
4233 * as.h (strstr): Disable declaration for now.
4234 (fprint_value, sprint_value): Declare.
4235
4236 * subsegs.c (subseg_new_rest): Use memset to clear new frag.
4237 (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields.
4238
4239 * expr.c (expr_part): Made sanity checks a.out-specific.
4240 (expr): Disabled sanity checks.
4241
4242 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for
4243 section symbol.
4244 * subsegs.c (subseg_change): Initialize section symbol pointer
4245 when setting up a new section.
4246
4247 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata
4248 field back at gas symbol structure.
4249
4250 * symbols.c (colon): Cast obstack_next_free value to char* before
4251 doing arithmetic on it.
4252 * subsegs.c (subseg_new_rest): Likewise.
4253 * as.h (frag_now_fix): Likewise.
4254
4255 * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of
4256 calling bfd_make_section_old_way directly, and call subseg_set
4257 instead of subseg_change. Now returns void.
4258 (obj_elf_write_symbol): Only check local symbols for now.
4259 (elf_stab_symbol): Now static and void, and disabled until it
4260 works completely.
4261 (obj_elf_size): For expression values, fail silently for now.
4262 (obj_symbol_new_hook): Do nothing.
4263
4264 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22
4265 relocation.
4266 (s_local) [OBJ_ELF]: New function.
4267 (md_pseudo_table) [OBJ_ELF]: Call it for "local".
4268 (s_common): Rearrange to handle Solaris .common pseudo, which may
4269 sometimes use bss space instead of common.
4270 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field.
4271
4272 Thu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4273
4274 * configure.in: set host config to hpux for hppa*-hp-hpux
4275
4276 Thu Jun 24 13:35:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4277
4278 * app.c (app_pop, app_push): Fix bug reported by Chris Arthur.
4279
4280 Tue Jun 22 01:04:23 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4281
4282 * subsegs.c (subseg_new): Don't special-case a.out -R flag here.
4283 * config/obj-aout.c (s_sect): Do it here.
4284
4285 * as.h (BAD_CASE): Don't make some lame compilers think we want
4286 substitution inside strings.
4287
4288 * as.c (print_version_id): New function, split off from main.
4289 (main): Call it.
4290 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id
4291 for -V. Ignore -Q and -s options for now.
4292
4293 Mon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4294
4295 * Makefile.in: make installation & builds work again for crosses
4296
4297 Sun Jun 20 18:18:26 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4298
4299 * listing.c (list_symbol_table): Rewrite to print wide (>32 bits)
4300 symbol values correctly.
4301
4302 * write.c (write_object_file): Deleted unused variables.
4303 (fixup_segment): Use sprint_value.
4304
4305 * messages.c (sprint_value, fprint_value): New routines.
4306
4307 * config/obj-elf.c (elf_stab_symbol): Now returns void.
4308 (obj_elf_stab_generic): Fix typo in logic.
4309
4310 * Makefile.in (INCLUDES): Look in ../bfd for bfd.h.
4311
4312 * as.h (addressT, offsetT): New types, using BFD types if
4313 available.
4314 (relax_addressT, struct frag): Use them.
4315 * struc-symbol.h (valueT, struct broken_word): Likewise.
4316
4317 * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
4318 * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
4319
4320 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
4321
4322 * Makefile.in: canonicalize install.sh; for use within
4323 this directory (and subdirs)
4324
4325 Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
4326
4327 * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
4328 specified, should have both S1 and S2 fields identical
4329 If only finding the problem was as fast as fixing the bug !!!!
4330
4331 Tue Jun 15 16:01:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4332
4333 * write.c (write_contents): Do write out non-loadable sections.
4334 Debug sections can fall in this category.
4335
4336 * read.c (s_app_file): Call elf_file_symbol for ELF files.
4337 * config/obj-elf.c (elf_file_symbol): New function.
4338
4339 * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_...,
4340 added argument to specify section base name.
4341 (obj_elf_stab_generic): Renamed from ..._stab. New argument
4342 specifies section base name.
4343 (obj_elf_stab): New function, calls obj_elf_stab_generic with
4344 ".stab" as section base name.
4345 (obj_elf_xstab): New function, calls obj_elf_stab_generic.
4346 (obj_elf_type): Handle "object". Use bitwise-or to merge in
4347 symbol flags rather than simply replacing, so global/local flags
4348 are preserved.
4349 (obj_elf_ident): Rewrite.
4350
4351 Tue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4352
4353 * Makefile.in: remove parentdir support; use INSTALL_XFORM
4354
4355 Wed Jun 9 11:26:07 1993 Ian Lance Taylor (ian@cygnus.com)
4356
4357 * config/tc-i386.c (md_pseudo_table): .align uses a power of two
4358 for any a.out target, not just Linux and 386BSD.
4359 * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out
4360 target.
4361
4362 Mon Jun 7 13:33:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4363
4364 * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They
4365 don't exist or duplicate other inclusions.
4366
4367 * config/tc-vax.h (NO_RELOC): Define.
4368
4369 Sat Jun 5 19:32:52 1993 Torbjorn Granlund (tege@nada.kth.se)
4370
4371 * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions.
4372 * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first
4373 char to reg_prefix instead of to 'r'.
4374 (calcop): Change calls to get_reg.
4375 (calcop): Handle new case 'x' to set reg_prefix.
4376 (calcop): Set reg_prefix to 'r' after each call to get_reg.
4377 (cmpslot): Add 88110 conditions.
4378
4379 * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency.
4380
4381 * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer
4382 before returning.
4383
4384 * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics
4385 adjacent; mov.s and mov.d swapped.
4386 (m88k_opcodes): Fix typo `r2' -> `2'.
4387
4388 Fri Jun 4 15:59:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4389
4390 * config/h8300.c: Support for H8/300-H opcodes.
4391
4392 * config/obj-coffbfd.c (w_strings): String table length is 4
4393 bytes, no matter what the host int size is.
4394
4395 * configure.in (alpha-*-osf*): New.
4396
4397 Fri Jun 4 07:51:18 1993 Ian Lance Taylor (ian@cygnus.com)
4398
4399 * configure.in (mips-*-ecoffl*): New target; use ecoff and
4400 mips-lit.
4401 (mips-*-ecoff*): Added trailing '*'.
4402
4403 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
4404 first FDR in a file to be zero.
4405
4406 Thu Jun 3 14:09:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4407
4408 * Makefile.in (VERSION): Jump to 2.1.4.
4409
4410 * config/ho-hppabsd.h: New file, from Peter Hoogenboom.
4411
4412 * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for
4413 ECOFF format.
4414
4415 Tue Jun 1 15:21:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4416
4417 * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a
4418 separate '851 mmu.
4419
4420 * config/obj-elf.c, config/obj-elf.h: Update for new type, macro,
4421 and routine names. Assuming 32 bits for now.
4422
4423 * config/obj-elf.c (elf_frob_file): Look for macro
4424 elf_tc_final_processing_hook, instead of assuming a function
4425 always exists.
4426 * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from
4427 tc_final_processing_hook.
4428 * config/tc-hppa.h (elf_tc_final_processing_hook): Use it.
4429
4430 * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros
4431 moved here from obj-elf.h.
4432 * config/obj-elf.h: Don't include CPU-specific header files.
4433
4434 Sun May 30 16:49:37 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu)
4435
4436 * configure.in: configurations should match on 'hppa*' not 'hppa'.
4437
4438 * read.c: Add support for HPPA assembly language syntax (denoted
4439 with '#ifdef TC_HPPA').
4440
4441 * symbols.c: Add support for HPPA assembly language syntax (denoted
4442 with '#ifdef TC_HPPA').
4443
4444 * write.c (write_contents): Add support for HPPA-style
4445 relocations.
4446
4447 * config/obj-elf.c: Stab symbols weren't written properly.
4448 (obj_elf_version):
4449 (obj_elf_desc):
4450 (obj_elf_write_symbol):
4451 (obj_elf_write_symbol_p):
4452 (obj_elf_frob_symbol):
4453 (elf_stab_symbol):
4454 (elf_frob_file):
4455
4456 * config/tc-hppa.c: Support for HPPA symbol extension sections.
4457 Remove some unused code. Support for HPPA assembly language
4458 syntax.
4459
4460 * app.c:
4461
4462 * symbols.c:
4463
4464 * config/obj-elf.h:
4465 (obj_write_symbol):
4466 (obj_frob_file):
4467 (elf_tc_symbol):
4468 (elf_tc_make_sections):
4469
4470 * config/tc-hppa.h:
4471
4472 Sun May 30 21:44:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4473
4474 * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume
4475 hash_new will have succeeded if it returns.
4476 * config/tc-a29k.c (md_begin): Likewise.
4477
4478 * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is
4479 const.
4480 (mode_from_disp_size, opcode_suffic_to_type): Now inline under
4481 gcc.
4482 (fits_in_{signed,unsigned}_{byte,word}): Likewise.
4483
4484 * expr.c: Delete register declarations; gcc ignores them anyways.
4485
4486 Fri May 28 19:03:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4487
4488 * hash.c (hash_new): Use xmalloc, since many callers don't check
4489 for failure.
4490
4491 Thu May 27 13:02:15 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4492
4493 * frags.c (zero_address_frag, bss_address_frag): These are
4494 external.
4495
4496 * tc.h (md_reloc_size): This is const.
4497 * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c
4498 (md_reloc_size): Now const.
4499
4500 * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete
4501 trailing commas.
4502 * as.h (enum _segT): Ditto.
4503
4504 * struc-symbol.h (N_TYPE_seg): This should be const.
4505
4506 Thu May 27 11:43:59 1993 Michael Meissner (meissner@osf.org)
4507
4508 * config/obj-ecoff.c (add_file): Cast file_name to char * in
4509 listing_source_file call.
4510
4511 * config/obj-elf.c (elf_stab_symbol_string): Cast first argument
4512 of subseg_new call to eliminate const attribute.
4513 (obj_elf_stab): Ditto.
4514 (obj_symbol_new_hook): Cast first argument of bzero call to char *.
4515
4516 * read.c (s_align_bytes): Properly record alignment.
4517
4518 * expr.c (__): Undefine __ macro before use, since OSF/1 uses it
4519 for the prototype/no prototype macro.
4520
4521 * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be
4522 void.
4523
4524 * as.h (relax_stateT enum): Delete trailing comma.
4525
4526 Thu May 27 11:07:50 1993 Ian Lance Taylor (ian@cygnus.com)
4527
4528 * app.c (do_scrub_begin): Let line_comment_chars override
4529 comment_chars.
4530 (do_scrub_next_char): If a line comment character is not at the
4531 start of a line, treat it as a comment character if it is one.
4532 For a CPP line comment use pseudo-op .appline rather than .line.
4533 * input-scrub.c (logical_input_line): Make int rather than
4534 unsigned.
4535 (input_scrub_push, input_scrub_begin): Initialize
4536 logical_input_line to -1 rather than 0.
4537 (bump_line_counters): Increment logical_input_line.
4538 (new_logical_line): If line_number is -2, decrement
4539 logical_input_line.
4540 (as_where): Use logical_input_line even if it is 0.
4541 * read.h (s_app_file prototype): Now takes an int argument.
4542 * read.c (potable): Make .appfile call s_app_file with 1. New
4543 .appline pseudo-op calls s_app_line.
4544 (s_app_file): If .appfile, call new_logical_line with -2 to
4545 account for newline inserted by do_scrub_next_char. If listing,
4546 call listing_source_file.
4547 (s_app_line): New function to handle fake pseudo-op .appline.
4548 * config/obj-coff.c (obj_pseudo_table): Make .appline call
4549 obj_coff_ln.
4550 (obj_coff_ln): Added argument to indicate whether .appline.
4551 * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
4552 obj_coff_ln.
4553 (obj_coff_ln): Added argument to indicate whether .appline.
4554 * config/tc-mips.c (s_file): Pass argument to s_app_file.
4555
4556 Tue May 25 11:59:07 1993 Ian Lance Taylor (ian@cygnus.com)
4557
4558 * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast.
4559
4560 Thu May 20 19:14:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4561
4562 * config/tc-m68k.c (md_apply_fix_2): Straighten out check for
4563 invalid values.
4564
4565 Wed May 19 07:33:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4566
4567 * config/tc-h5000.c (build_bytes): Understand @rd mode and build
4568 relocations correctly.
4569
4570 Mon May 17 15:06:26 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4571
4572 * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because
4573 it's wrong.
4574
4575 * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn
4576 if value is out of range.
4577
4578 Patch from Minh Tran-Le:
4579 * config/tc-i386.c (i386_operand): For in/out port register used
4580 as base reg, include InOutPortReg in operand type.
4581 (MATCH): Accept overlap value of InOutPortReg.
4582
4583 Mon May 17 09:29:34 1993 Ian Lance Taylor (ian@cygnus.com)
4584
4585 * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab):
4586 Add calls to listing routines to produce combined source/assembler
4587 listings.
4588 (obj_ecoff_stab): Create a file pointer if none used yet.
4589 (ecoff_frob_file): Set symcount to correct value.
4590
4591 Fri May 14 06:53:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4592
4593 * Makefile.in (VERSION): Bump to version 2.1, in preparation for
4594 release.
4595
4596 * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE):
4597 Define in terms of constants, not C structure sizes.
4598
4599 * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files.
4600
4601 Thu May 13 17:01:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4602
4603 * config/obj-aout.c (obj_header_append): Don't define if it's
4604 defined as a macro.
4605 * config/obj-hp300.h (obj_header_append): Define it as a macro.
4606 * config/obj-hp300.c (hp300_header_append): New function.
4607
4608 * Makefile.in (distclean): Don't bother cleaning up doc files;
4609 they aren't going to be in this directory.
4610
4611 Thu May 13 07:51:35 1993 Ian Lance Taylor (ian@cygnus.com)
4612
4613 * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute
4614 symbols.
4615
4616 * tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
4617 * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
4618
4619 Mon May 10 06:01:12 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4620
4621 * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with
4622 initialization.
4623
4624 * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff.
4625
4626 Wed May 5 14:00:49 1993 Ian Lance Taylor (ian@cygnus.com)
4627
4628 * config/tc-mips.c (macro): Correct floating point double word
4629 loads and stores for big endian target.
4630
4631 Wed May 5 08:39:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4632
4633 * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_*
4634 calls. Deleted some unused code.
4635 * config/obj-coff.c: Likewise.
4636
4637 ELF support, mostly contributed by Utah:
4638 * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line,
4639 obj_elf_type): Rewrite.
4640 (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol,
4641 obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size):
4642 New functions.
4643 (obj_elf_ident): Dummy.
4644 * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol,
4645 TARGET_SYMBOL_FIELDS): New macros.
4646 (gdb_section): New variable decl.
4647
4648 * config/tc-i386.c (md_atof): Return zero, not empty string, on
4649 success.
4650
4651 BFD_ASSEMBLER conditional changes:
4652 * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header):
4653 Don't define these.
4654 (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions.
4655 (fetch_coff_debug_section): Ditto.
4656 (obj_coff_endef): Call fetch_coff_debug_section.
4657 (struct line_no): New type.
4658 (c_symbol_merge): New way for copying aux fields.
4659 (c_dot_file_symbol): Put symbol in absolute section, and set flag
4660 BSF_DEBUGGING.
4661 (function_lineoff): New symbol.
4662 (function_lineoff, text_lineno_number, our_lineno_number,
4663 lineno_lastP): Don't define.
4664 (c_line_new): Don't define.
4665 (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh,
4666 placeholders, until
4667 line-number recording gets implemented.
4668 (obj_new_symbol_hook): New code for handling aux fields.
4669 (add_lineno, add_linesym): New functions.
4670 (obj_coff_ln): Call add_lineno, not c_line_new.
4671 (obj_coff_endef): New code for handling symbol names. New lineno
4672 code. Look for section name "*DEBUG*" for debugging section.
4673 (align, coff_check_file_symbols, obj_coff_section,
4674 coff_frob_file): New functions.
4675 * config/obj-coff.h: Reordered some includes.
4676 (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg,
4677 DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't
4678 define these.
4679 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros.
4680 (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing
4681 aux entries. Most SA_* macros now use it unconditionally.
4682 (S_*): Use `bsym' field, and access BFD private data.
4683 (SF_*): Use `sy_flags' symbol field for most of these.
4684 (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't
4685 define.
4686 (*_section_header): Don't define.
4687 * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed
4688 interface.
4689 (tc_gen_reloc) [I386COFF]: New function.
4690 (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define.
4691 * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New
4692 macros.
4693
4694 * config/obj-coff.c (stack_init): Don't do assignments inside
4695 conditions.
4696 (obj_coff_def): Simplified handling of symbol name a bit.
4697 (tag_insert): Name argument is now pointer to CONST.
4698 (obj_crawl_symbol_chain): Commented out.
4699
4700 * config/obj-coff.h: Use PARAMS macro in prototypes.
4701
4702 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect
4703 through frchainP pointer if it is null.
4704
4705 * configure.in: Warn if BFD mode is explicitly turned off but is
4706 required by specified target.
4707 (mips ecoff targets): Don't need to set bfd_gas here; it gets
4708 taken care of later.
4709
4710 * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward
4711 field.
4712 (yank_symbols): Merge symbols only if sy_forward is null.
4713
4714 * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already
4715 defined.
4716
4717 * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not
4718 pointer.
4719 * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto.
4720
4721 * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting
4722 with "." is a local label.
4723
4724 * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config
4725 files.
4726
4727 * config/te-linux.h, config/te-386bsd.h: New config files.
4728 * configure.in (i386-*-linux, i386-*-bsd): Use them.
4729 * config/tc-i386.h (TARGET_FORMAT): Select format based on target
4730 environment.
4731 (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux.
4732
4733 Wed May 5 13:14:01 1993 Ian Lance Taylor (ian@cygnus.com)
4734
4735 * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
4736 to want it that way.
4737 (ecoff_build_symbols): Turn local st_Proc symbols into
4738 st_StaticProc symbols. Set index field of external st_Proc and
4739 st_staticProc symbols correctly.
4740 * config/tc-mips.h (NO_LISTING): Don't define. People might want
4741 listings.
4742
4743 Tue May 4 21:22:54 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4744
4745 * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New
4746 files.
4747 * configure.in (m68k-*-hpux): Use them.
4748
4749 * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if
4750 defined, otherwise zero.
4751
4752 * config/aout_gnu.h (OMAGIC): Don't define if already defined.
4753
4754 Mon May 3 15:59:32 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4755
4756 * config/tc-sparc.c (sparc_ip): Allow any abs expression as an
4757 address space number.
4758
4759 Wed Apr 28 19:11:22 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4760
4761 * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all.
4762
4763 * config/tc-a29k.c: Include ctype.h.
4764 (define_some_regs): Added special-purpose registers for 29050.
4765
4766 * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/".
4767
4768 * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here.
4769 (change_to_section): Set it here instead.
4770
4771 Wed Apr 28 13:40:29 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
4772
4773 * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
4774 hasn't been seen yet.
4775 (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
4776
4777 Mon Apr 26 18:29:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4778
4779 * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
4780 SH.
4781
4782 Mon Apr 26 12:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
4783
4784 * expr.c (operand): Fix unary plus operator (previously was the
4785 same as '~' operator!).
4786
4787 Wed Apr 21 00:20:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4788
4789 * write.c (cvt_frag_to_fill): Define even if BFD is defined.
4790 (write_object_file): Do define if BFD_ASSEMBLER. Invoke
4791 obj_check_file_symbols if defined. Call verify_symbol_chain_2
4792 instead of open-coding it. Fix some bugs in patching up symbol
4793 chain.
4794 (relax_segment): Make some code we "ought to be able to" use for
4795 all targets no longer conditionalized on ns32k target; instead, do
4796 it always, and if the appropriate conditions fail, abort.
4797
4798 * symbols.c (DEBUG): Enabled.
4799 (symbol_new): Make sure bfd_make_empty_symbol works.
4800 (verify_symbol_chain_2): New funcion; takes one symbol as
4801 argument, anywhere in the chain.
4802 (dollar_label*): Use default initializers.
4803
4804 * as.c (perform_an_assembly_pass): Call md_begin here...
4805 (main): ...and not here.
4806
4807 * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out.
4808 (tc_frob_symbol): New macro: Get rid of symbols in reg_section.
4809
4810 * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER.
4811 (add_fix, add_frag): Now functions instead of macros.
4812 (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num,
4813 s_data1, s_data2, s_bss): Use new *_section names, for
4814 compatibility with BFD_ASSEMBLER mode; rewrite switch statements
4815 to handle non-integral segT.
4816 (tc_coff_fix2rtype, tc_aout_fix_to_chars,
4817 tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER.
4818 (tc_gen_reloc): New routine for BFD_ASSEMBLER.
4819 (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to
4820 md_apply_fix_2; new md_apply_fix definition varies interface
4821 depending on BFD_ASSEMBLER.
4822 (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section
4823 names.
4824
4825 * config/obj-vms.c: Include config.h.
4826 (version_string): Delete declaration.
4827 (Write_VMS_MHD_Records): Use GAS_VERSION instead.
4828 (vms_resolve_symbol_redef): New function, taken from VMS code in
4829 symbols.c.
4830 (_doprnt): Deleted.
4831 (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct,
4832 VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix,
4833 VMS_Psect_Spec): Fixed to compiler under traditional C.
4834 * config/obj-vms.h: Use PARAMS macro.
4835 (vms_resolve_symbol_redef): Declare.
4836 (RESOLVE_SYMBOL_REDEFINITION): New macro.
4837 * symbols.c (colon): Remove some VMS-specific code, look for
4838 RESOLVE_SYMBOL_REDEFINITION macro instead.
4839
4840 * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc
4841 instructions.
4842
4843 * config/tc-i386.c: Reordered some functions so inlining might
4844 work. Use PARAMS in function declarations.
4845 (reloc): New routine.
4846 (md_assemble): Rearrange switch statements to work with
4847 non-integral segT.
4848
4849 * struc-symbol.h [BFD_ASSEMBLER]: Undefine
4850 SYMBOLS_NEED_BACKPOINTERS before defining it.
4851
4852 * subsegs.c (subseg_new_rest): Now static.
4853
4854 * read.c (pseudo_set): Better error message for difference of
4855 symbols in different frags.
4856
4857 * Makefile.in (check): Pass down some new variables, indicating
4858 pathname or program name for cc, nm, objdump.
4859
4860 * as.h (OUTPUT_FLAVOR): New macro.
4861 * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR.
4862
4863 * configure.in: Initialize bfd_gas properly. Warn that ELF
4864 support is incomplete.
4865
4866 Thu Apr 15 22:39:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4867
4868 * read.c (float_cons): Accept null pointer return from md_atof.
4869 * config/tc-m68k.c (md_atof): Return null for success.
4870 * config/tc-sparc.c (md_atof): Ditto.
4871
4872 Thu Apr 15 16:04:39 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4873
4874 * doc/as.texinfo: formatting and comment cleanups; show SPARC
4875 alternative options in same style as other machines; simplify some
4876 conditional use; include GPL as separate file (from texinfo dir)
4877
4878 * doc/Makefile.in: (as.info) include directory containing GPL in
4879 makeinfo search path
4880
4881 * doc/h8.texi: new file; conditional settings for GAS manual
4882 on Hitachi chips
4883
4884 Tue Apr 13 15:31:40 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4885
4886 * doc/as.texinfo: mention SPARC architecture options.
4887
4888 Fri Apr 9 17:43:11 1993 Ken Raeburn (raeburn@cygnus.com)
4889
4890 * configure.in: Rearranged whitespace in per-host/per-target
4891 sections. Added hooks for dropping in HPPA support (not included
4892 yet). Separate out overrides of variables based on target format
4893 and bfd-gas selection from actual target-specific commands. Add
4894 error message for recognized but unsupported format name.
4895
4896 Fri Apr 9 09:05:47 1993 Ian Lance Taylor (ian@cygnus.com)
4897
4898 * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
4899 symbolic header match cline in FDR; the native linker seems to
4900 want that.
4901
4902 Thu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4903
4904 * doc/Makefile.in: as.texinfo is in $(srcdir). Use
4905 $(srcdir)/as.texinfo explicitly in several places
4906
4907 Thu Apr 8 15:15:02 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4908
4909 * doc/Makefile.in: update dvi, clean targets for new source
4910 file structure
4911
4912 Thu Apr 8 12:52:46 1993 Ian Lance Taylor (ian@cygnus.com)
4913
4914 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
4915 rather than undefining know.
4916 * configure.in: Match ultrix*, not just ultrix.
4917
4918 Wed Apr 7 20:18:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4919
4920 * doc/as.texinfo: converted conditional markup to use new
4921 Texinfo facilities, avoiding m4.
4922
4923 * doc/as-all.texinfo, all.m4, pretex.m4: deleted.
4924
4925 * doc/Makefile.in: recast doc configuration to use a link to an
4926 included texinfo file.
4927
4928 * doc/all.texi: settings for generic form of documentation.
4929
4930 Tue Apr 6 11:56:21 1993 Ian Lance Taylor (ian@cygnus.com)
4931
4932 * read.c (cons): Zero out frag when creating reloc.
4933
4934 Mon Apr 5 09:41:58 1993 Ian Lance Taylor (ian@cygnus.com)
4935
4936 * config/tc-mips.c (gp_reference): Certain magic symbols can never
4937 be referenced off the GP register.
4938
4939 * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
4940 when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
4941 LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
4942
4943 * config/te-irix.h: New file; irix needs a different LOCAL_LABEL
4944 definition from other MIPS targets.
4945 * configure.in (mips-*-irix): Use emulation irix.
4946
4947 Sun Apr 4 15:21:09 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4948
4949 * config/tc-h8500.c: Get relax size of branch instructions right,
4950 (get_operand): Parse @sp+ correctly.
4951
4952 Fri Apr 2 15:59:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4953
4954 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include
4955 COFF section header field.
4956
4957 * configure.in: Print error message if host or target is not
4958 supported.
4959
4960 * configure.in: If with-bfd-assembler, use obj-coff instead of
4961 obj-coffbfd.
4962
4963 * config/ho-generic.h: Include string.h.
4964
4965 Fri Apr 2 08:54:57 1993 Ian Lance Taylor (ian@cygnus.com)
4966
4967 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
4968 '$' as local, for any object file format.
4969
4970 * config/tc-mips.c (macro): Optimizations to branching code and a
4971 couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph
4972 Campbell).
4973
4974 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
4975 * configure.in (mips-sgi-irix*): Set gas_host to irix.
4976
4977 Wed Mar 31 17:53:54 1993 Ian Lance Taylor (ian@cygnus.com)
4978
4979 * subsegs.c (subseg_new): Set output_section of new section.
4980 * as.c (perform_an_assemly_pass): Don't set output_section here.
4981 * expr.c (expr_part, expr): Turn off section assertions for ECOFF,
4982 since it has additional sections.
4983 * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
4984 not bss_section.
4985 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
4986 ecoff_undefined field.
4987 * config/obj-ecoff.c (obj_symbol_new_hook): Initialize
4988 ecoff_undefined field.
4989 (add_file): If using stabs, just output a stabs symbol rather than
4990 creating a new fdr.
4991 (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
4992 it with get_absolute_expression, rather than skipping it by hand.
4993 (obj_ecoff_loc): If using stabs, just output a stabs symbol rather
4994 than ECOFF line number information.
4995 (obj_ecoff_stab): Accept non-zero values for stabs line number.
4996 (ecoff_build_symbols): Set ifilesym correctly. Set storage class
4997 to small, undefined and/or readonly sections if appropriate.
4998 Don't output symbol names containing \001 characters.
4999 (ecoff_frob_file): Make sure at least one fdr is output.
5000 * config/tc-mips.h: Define TC_MIPS.
5001 * config/tc-mips.c (g_switch_value): New static variable.
5002 (md_assemble): Set gp size of output BFD.
5003 (gp_reference): New function; returns 1 if expression can be
5004 accesssed via gp. Always returns 0 if not using ECOFF.
5005 (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
5006 possible.
5007 (macro): Generate sequences using gp if possible.
5008 (md_parse_option): Ignore -EL and -EB. Parse -G.
5009 (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
5010 (s_change_sec): Handle .rdata and .sdata for ECOFF.
5011 (s_extern): Mark symbol as external. Set ecoff_undefined field.
5012
5013 Tue Mar 30 10:11:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5014
5015 * output-file.c (output_file_create): Don't call as_perror for
5016 filename rejected by application.
5017
5018 * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink
5019 the output file.
5020
5021 * doc/as.texinfo: Don't use @value in node names for the moment;
5022 references don't appear to work right.
5023
5024 * as.h (const, volatile): Put these definitions back, and use
5025 them.
5026
5027 * doc/as.texinfo: First pass at using new texinfo features --
5028 variables, conditional tests. Far from complete.
5029
5030 Mon Mar 29 16:05:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5031
5032 * read.c: Temporary hack to handle some 64-bit constants. This
5033 should be redone later.
5034 (target_big_endian): Declare.
5035 (big_cons): If it's set, reverse order of bytes being copied.
5036 * config/tc-sparc.c (md_begin): Set target_big_endian.
5037
5038 * read.c (s_ignore): Delete declaration of is_end_of_line.
5039
5040 * config/obj-coffbfd.c (yank_symbols): Build list of file symbol
5041 forward pointers properly.
5042
5043 Mon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5044
5045 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
5046 wasn't being stored into scnhdr.
5047 * config/obj-coffbfd.h: Add prototype of s_get_segment.
5048 * read.c (TC_START_LABEL): Default definition.
5049 (read_a_source_file): Use TC_START_LABEL macro to work out
5050 if a label has been seen.
5051
5052 Mon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com)
5053
5054 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
5055 the bottom (make expands variables in dependencies when the
5056 dependencies are read, not when they are used).
5057
5058 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
5059 a29k .bss section; the mondfe program doesn't like it.
5060
5061 Sun Mar 28 08:12:53 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5062
5063 * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of
5064 const.
5065 (current_architecture): Don't need initializer.
5066
5067 Fri Mar 26 08:12:48 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5068
5069 * doc/none.m4: Define Z8000.
5070 * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the
5071 texinfo file before recreating it.
5072 (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in
5073 this directory.
5074 (srcdir): Delete second, bogus definition.
5075 (as.info): Look for as-*.texinfo in current directory rather than
5076 in $(srcdir).
5077 (as.dvi): Ditto.
5078 (dvi): New rule.
5079 * doc/configure.in: Create links to all as-*.texinfo files in the
5080 source directory, if that's not the current directory.
5081
5082 * configure.in (per-host): Accept MIPS host with BSD version
5083 number.
5084 (per-target): Classify i486 as i386. Use generic cpu_type instead
5085 of target_cpu in selecting format etc.
5086
5087 * app.c (do_scrub_next_char): Use .appfile, not .app-file.
5088 * read.c (potable): Change .app-file to .appfile.
5089
5090 * config/ho-decstatn.h: Renamed from ho-decstation.h.
5091 * configure.in: Adjusted.
5092
5093 * config/obj-bfd-sunos.*: Unused; deleted.
5094
5095 * Makefile.in (version.c, vers-stamp): Deleted.
5096 (config.h): Define GAS_VERSION.
5097 * as.c (version_string): Deleted declaration.
5098 (main): Look for GAS_VERSION instead.
5099
5100 * doc/as.texinfo: Updated description of -a* (listing) options,
5101 and describe how to pass them through from gcc.
5102
5103 * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or
5104 process relocs if there aren't any relocs to process. Avoids
5105 malloc/free bug on SCO too.
5106
5107 * as.h: Move local include files below system include files, to
5108 avoid some redefinition complaints on some systems.
5109 (const, volatile): Don't need these conditionally defined if we
5110 use CONST and VOLATILE from ansidecl.h.
5111 (seg_name): Use CONST, not const.
5112
5113 Fri Mar 26 10:22:04 1993 Ian Lance Taylor (ian@cygnus.com)
5114
5115 * config/tc-mips.c: Reindented to GNU standards.
5116
5117 Thu Mar 25 08:59:14 1993 Ian Lance Taylor (ian@cygnus.com)
5118
5119 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
5120 (fixup_segment): Add a29k special case; the linker is not prepared
5121 to see a segment offset here.
5122
5123 * app.c (do_scrub_next_char): Added new state, 10, modifying state
5124 9 to only keep a space in between identifier characters.
5125
5126 Wed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
5127
5128 * Makefile.in: add dvi target; as-$(config).texinfo might live in
5129 srcdir, might be in objdir.
5130
5131 * doc/Makefile.in: dvi depends on as.dvi
5132
5133 Mon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5134
5135 * Makefile.in: add installcheck target
5136
5137 Mon Mar 22 10:19:00 1993 Ian Lance Taylor (ian@cygnus.com)
5138
5139 * config/tc-mips.c (macro): Use $AT for any floating point load.
5140
5141 Sat Mar 20 12:50:51 1993 Ken Raeburn (raeburn@urth.cygnus.com)
5142
5143 * config/tc-m68k.c (m68k_ip): For operand type 'M', reject
5144 bignums, but don't emit error message.
5145
5146 Fri Mar 19 21:02:19 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
5147
5148 * Makefile.in (targ-cpu.o): Depend on config.h.
5149
5150 Wed Mar 17 16:44:06 1993 Ian Lance Taylor (ian@cygnus.com)
5151
5152 * app.c (do_scrub_next_char): Added new state, 9, to avoid
5153 dropping a space immediately following an identifier.
5154 * expr.c, write.c: Rewrote assert expressions to not use multiple
5155 lines; I don't think that can be done portably.
5156 * config/tc-mips.c (macro): Use $AT if target register is zero in
5157 load instruction, which it can be for a floating point load.
5158
5159 Mon Mar 15 12:17:28 1993 Ian Lance Taylor (ian@cygnus.com)
5160
5161 * write.c (write_contents): Compute the relocs before writing out
5162 the section contents.
5163 * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
5164 symbol table and values right.
5165 * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
5166 with $L is local.
5167 * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
5168 by the section vma.
5169
5170 * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
5171 z8k-opc.h, not z8k.h.
5172
5173 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf
5174 symbol.
5175
5176 Fri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5177
5178 * configure.in: recognize sparc-sun-solaris2* instead of -solaris2
5179
5180 Fri Mar 12 12:00:07 1993 Ian Lance Taylor (ian@cygnus.com)
5181
5182 * expr.c, write.c: Ultrix native 4.2 cc requires assert condition
5183 to be on a single line.
5184
5185 Thu Mar 11 17:56:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5186
5187 * Makefile.in (config.h): Create file, writing out definitions of
5188 target cpu, alias, and canonical name.
5189 (ALL_CFLAGS): No longer define TARGET_CPU.
5190
5191 * Makefile.in (check): Print a message, instead of quitting
5192 silently.
5193
5194 * as.c (main): Don't catch any signals, for now.
5195
5196 * version.c: Deleted.
5197 * Makefile.in: Generate it, putting in only the version number
5198 itself.
5199 (VERSION): New variable.
5200 * as.c: Include config.h.
5201 (main): Reformatted version string. Include target alias. Don't
5202 print if not requested (i.e., unknown -v argument).
5203
5204 * as.c (stralloc): Deleted.
5205 (main): Call strdup instead.
5206
5207 * configure.in: Handle all 68300 series chips.
5208 * config/tc-m68k.c: Include config.h.
5209 (md_assemble): Assume TARGET_CPU is defined. Accept some 68300
5210 series cpus as defaults.
5211 (md_parse_option): Accept some m68300 series CPUs as defaults.
5212
5213 Wed Mar 10 17:41:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5214
5215 * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if
5216 not already defined.
5217 (main, got_sig): Use them.
5218 * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default
5219 values.
5220
5221 Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
5222
5223 * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF
5224 support.
5225
5226 * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs.
5227 OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN.
5228 (struct loc, struct proc, struct file): Moved to tc-mips.c within
5229 #ifndef OBJ_ECOFF block, since ECOFF uses different versions.
5230 * config/tc-mips.c: Rearranged for ECOFF support. Added
5231 prototypes for all static functions. Moved existing minimal
5232 debugging format support info #ifndef OBJ_ECOFF blocks.
5233 (macro_build_lui): Eliminated sign_extend argument, because ECOFF
5234 does not support a non sign extended high 16 bits reloc. Adjusted
5235 all callers accordingly.
5236 (tc_get_register): Renamed from get_register, and made non-static.
5237
5238 * config/mips-big.mt, config/mips-lit.mt: New files. Define
5239 TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN,
5240 respectively.
5241 * configure.in (mips-*-bsd*): Use gas_target mips-lit.
5242 (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using
5243 obj_format ecoff and gas_target mips-lit or mips-big.
5244
5245 Tue Mar 9 07:43:01 1993 Ken Raeburn (raeburn@cygnus.com)
5246
5247 * version.c: Bump to version 2.0.1.
5248
5249 Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
5250
5251 * write.c (chain_frchains_together): Check that seg_info (section)
5252 is not NULL.
5253 (write_object_file): Call obj_frob_file after setting the symbols,
5254 not before.
5255
5256 Tue Mar 9 00:00:00 1993 Ken Raeburn (raeburn@cygnus.com)
5257
5258 * Version 2.0 released.
5259
5260 Mon Mar 8 14:57:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5261
5262 * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only.
5263
5264 Fri Mar 5 09:05:55 1993 Ian Lance Taylor (ian@cygnus.com)
5265
5266 * read.h: Define stringer here.
5267 read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these
5268 places.
5269
5270 Thu Mar 4 11:52:23 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5271
5272 * read.c (s_space): Multiply repeat count by mult, not fill.
5273
5274 Thu Mar 4 05:20:42 1993 Ken Raeburn (raeburn@cygnus.com)
5275
5276 * read.c: Include ctype.h.
5277
5278 Wed Mar 3 10:41:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5279
5280 Patches from Eric Youngdale:
5281 * make-gas.com: Find obstack.obj if it's not in the current
5282 directory.
5283 * read.c (s_ignore): Don't declare is_end_of_line. It's
5284 redundant, and triggers a VMS gcc compiler bug.
5285
5286 * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes
5287 current segment as an argument. (Ignored in all cases but VMS.)
5288 All callers and definitions changed.
5289
5290 Tue Mar 2 11:56:19 1993 Ian Lance Taylor (ian@cygnus.com)
5291
5292 * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING
5293 case compile again.
5294
5295 Tue Mar 2 08:53:34 1993 Ken Raeburn (raeburn@cygnus.com)
5296
5297 * config/tc-m68k.c (isbyte): Accept all values from -255 to +255,
5298 so "~0x80" won't be rejected.
5299
5300 * config/obj-elf.c: No longer include elf/reloc.h.
5301 (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section.
5302 (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out
5303 routines.
5304 (obj_elf_xstab): New routine.
5305 (obj_elf_set_size): Call as_warn, not fprintf. Pass desired
5306 argument to s_ignore. Put "#if 0" around unused code.
5307 (obj_pseudo_table): Use s_ignore instead of do-nothing routines.
5308 Call elf_xstabs for .stabs and .xstabs operators.
5309
5310 * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc".
5311
5312 * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are
5313 present.
5314
5315 * configure.in: mips-bsd configuration was missing format spec.
5316 Should use aout.
5317
5318 * Makefile.in (Makefile): Depends on configure.in.
5319
5320 * config/tc-mips.c (append_insn): Don't check for alignment of
5321 frag in memory; alignment of instructions in section is a separate
5322 matter.
5323
5324 * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI
5325 C availability.
5326
5327 * listing.h: Always provide function declarations, not macros, so
5328 pcc won't lose.
5329
5330 Tue Mar 2 00:50:43 1993 John Gilmore (gnu@cygnus.com)
5331
5332 * CONTRIBUTORS: Update Gilmore entry.
5333
5334 Wed Feb 24 14:58:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5335
5336 * frags.c (frag_init): New function.
5337 (zero_address_frag, bss_address_frag): Now initialized at run
5338 time.
5339 * as.c (main): Call frag_init.
5340
5341 Wed Feb 24 10:32:42 1993 Ian Lance Taylor (ian@cygnus.com)
5342
5343 * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case:
5344 Don't unget ch2 if we didn't get it.
5345
5346 Wed Feb 24 04:14:07 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5347
5348 * doc/Makefile.in (TEXIDIR): Updated for new layout.
5349
5350 * config/tc-sparc.c (s_common): Add support for ELF version.
5351 (tc_gen_reloc) [BFD_ASSEMBLER]: New function.
5352 * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]:
5353 New macros.
5354 (md_convert_frag): New macro.
5355
5356 * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a
5357 symbol, fix the offset so "+2" isn't required.
5358
5359 * config/tc-i960.c (line_comment_chars, line_separator_chars):
5360 Define as common/bss.
5361 (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C
5362 initializers are sufficient.
5363
5364 * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd.
5365 (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out".
5366 (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros.
5367 (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro.
5368 * config/obj-aout.c: Use PARAMS macro for declarations. Remove
5369 "IGNORE_DEBUG" conditional, since both branches are identical.
5370 Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly
5371 referencing symbol structure members.
5372 (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function.
5373
5374 * as.h (struct frag): Reordered a couple of fields for better
5375 packing.
5376
5377 * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the
5378 section info.
5379 (write_contents) [BFD_ASSEMBLER]: New function.
5380 (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call
5381 fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call
5382 obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined.
5383 (fixup_segment): Make sure common-section symbols get treated the
5384 same as undefined symbols.
5385 (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type
5386 bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from
5387 section info.
5388 * write.h (fix_new): Update prototype.
5389
5390 * tc.h (md_operand, md_convert_frag, tc_headers_hook,
5391 md_section_align, md_undefined_symbol): Don't provide prototypes
5392 if these are defined as macros.
5393 (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and
5394 section passed.
5395
5396 * symbols.c (symbol_new): Argument NAME is now pointer to const.
5397 Simplified STRIP_UNDERSCORE code. Remove assumptions about null
5398 pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new
5399 BFD symbol.
5400 (colon): Display other/desc fields of redefined symbol only if
5401 S_GET_OTHER and S_GET_DESC are defined.
5402 (symbol_make): Argument NAME is now pointer to const.
5403 (symbol_find, symbol_find_base): Likewise.
5404 (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions.
5405 * symbols.h: Fix prototypes for new const arguments. Add
5406 prototypes for BFD_ASSEMBLER S_* functions.
5407
5408 * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code
5409 for changing to an existing section.
5410 (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new,
5411 called by subseg_new and subseg_set.
5412 (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section,
5413 given section name and subseg number.
5414 (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly
5415 new section/subsection.
5416
5417 * read.c: Don't include ctype.h.
5418 (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32
5419 for now; should be machine-dependent.
5420
5421 * configure.in: Accept *-*-elf and *-*-solaris* as ELF format
5422 targets, forcing BFD use.
5423
5424 Wed Feb 17 18:59:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5425
5426 * config/tc-sparc.c: Use PARAMS macro for static function
5427 declarations. Use BFD_RELOC_ macros everywhere, with
5428 compatibility macros declared for non-BFD mode.
5429 (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type
5430 instead of enum reloc_type.
5431 (emit_sparc_reloc): Commented-out function deleted.
5432 (md_convert_frag): Deleted.
5433 (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER.
5434 (md_apply_fix): Changed calling sequence (conditionally) for BFD
5435 version.
5436 * config/tc-sparc.h (md_convert_frag): New macro.
5437
5438 * config/obj-aout.c (obj_aout_stab): Refer to undefined_section,
5439 not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead
5440 of referencing fields directly.
5441
5442 * write.c (cvt_frag_to_fill): New function; extracted from
5443 write_object_file.
5444 (write_object_file) [! BFD_ASSEMBLER]: Call it.
5445 (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section
5446 and set its size and flags.
5447
5448 * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some
5449 fields with BFD equivalents. Turn on back-pointers, and add
5450 target-specific fields at end.
5451
5452 Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
5453
5454 * config/obj-coffbfd.c (fill_section): Don't set vaddr here.
5455 (write_object_file): Set it here instead, so that fixup_segment
5456 can see the correct value.
5457
5458 Mon Feb 8 13:56:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5459
5460 * write.c (write_object_file): Check for errors and warnings and
5461 bail out before processing contents.
5462 (chain_frchains_together_1): New function, does most of the work
5463 of remove_subsegs.
5464 (chain_frchains_together) [BFD_ASSEMBLER]: New function.
5465 (remove_subsegs) [! BFD]: Call it.
5466 (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD
5467 structures and routines.
5468
5469 * config/obj-elf.*: New files.
5470
5471 * config/mips.mt, config/rs6000.mt: Deleted.
5472
5473 * config/h8300.mt: Don't specify compiler here.
5474
5475 * config/z8k.mt: The z8k code depends on the z8k opcode table,
5476 not the h8300 one.
5477 * config/tc-z8k.h: Comment fix.
5478
5479 * write.c: Reordered some functions for better inlining.
5480 (fixup_segment): Linkrelax code is no longer conditional on
5481 TC_I960.
5482
5483 Thu Feb 4 12:45:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5484
5485 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,
5486 obj-coffbfd.h}: support for the H8/500
5487
5488 Wed Feb 3 19:28:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5489
5490 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here.
5491 * write.c (write_object_file): Not here.
5492 (fix_new): Initialize fx_addnumber.
5493
5494 * listing.c: Don't include target-cpu.h explicitly, since as.h
5495 includes it.
5496
5497 Thu Jan 28 00:35:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5498
5499 * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP,
5500 *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP.
5501 (struct fix): Reordered fields for compactness and efficiency.
5502 Converted some logical fields to 1-bit fields.
5503
5504 * config/obj-aout.h: Use PARAMS.
5505 [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE,
5506 N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE.
5507
5508 * read.c: Don't include listing.h; as.h includes it. Removed
5509 DONTDEF code.
5510 [BFD_ASSEMBLER]: Include subsegs.h.
5511 (old_buffer, new_broken_words): Default initialization is
5512 sufficient.
5513
5514 * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH
5515 to 0, define stdoutput.
5516 (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure.
5517 Call bfd_set_arch_mach.
5518 (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not
5519 bfd_close_all_done. Call bfd_perror on failure.
5520 (output_file_append) [BFD_ASSEMBLER]: Don't define.
5521
5522 * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition.
5523
5524 * subsegs.h (segment_info_type): Always define. Omit field scnhdr
5525 if not MANY_SEGMENTS. Define new field bfd_section if
5526 BFD_ASSEMBLER.
5527 (seg_info): New macro.
5528
5529 * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused
5530 variables, and some irrelevant comments.
5531
5532 * Makefile.in (ALL_CFLAGS): Include $(BFDDEF).
5533 (LIBS): Include $(BFDLIB). Don't bother with $(CLIB).
5534 * configure.in: Permit --with-bfd-assembler now, with a warning.
5535 Variable need_bfd is now a boolean, as is new variable bfd_gas.
5536 Set BFDDEF and BFDLIB in Makefile when appropriate.
5537
5538 * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code.
5539 (main): Refer to flag_always_generate_output instead of
5540 flagseen['Z'].
5541
5542 * as.c (main) [BFD_ASSEMBLER]: Open output bfd.
5543 (*_section) [BFD_ASSEMBLER]: Define them.
5544 (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and
5545 set section flags when appropriate.
5546 * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified
5547 section is not absolute, undefined, or an assembler internal one.
5548 (absolute_section, undefined_section): Always define.
5549 * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break
5550 switch statements into if-else trees.
5551 * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of
5552 SEG_BSS and SEG_DATA.
5553
5554 * as.h (frag_now_fix): New macro.
5555 * symbols.c (colon): Use it.
5556
5557 Wed Jan 27 21:43:53 PST 1993 Ralph Campbell (ralphc@pyramid.com)
5558
5559 * config/tc-mips.c: Added mips support for mips-dec-bsd.
5560 * config/tc-mips.h: Added mips support for mips-dec-bsd.
5561 * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd.
5562 * config/mips-opcode.h: Added mips support for mips-dec-bsd.
5563 * configure.in: Added mips support for mips-dec-bsd.
5564 * atof-generic.c: Define TRUE and FALSE if not defined.
5565
5566 Thu Jan 21 12:48:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5567
5568 * version.c: Bumped version number to 1.93.05.
5569
5570 Wed Jan 20 17:11:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5571
5572 * config/obj-coff.c (obj_emit_relocations): Don't use #elif.
5573 (obj_emit_lineno): Don't need return at end of void function.
5574 (obj_symbol_new_hook): Ditto.
5575
5576 * config/tc-m68k.c: Removed some unused code.
5577 (tc_aout_fix_to_chars): Array nbytes_r_length is now const.
5578
5579 * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only
5580 offset field is set.
5581
5582 Fri Jan 8 05:44:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5583
5584 * config/tc-sparc.c (architecture_requested, warn_on_bump,
5585 md_relax_table): Use default zero initialization.
5586 (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the
5587 latter, instead of selecting with preprocessor conditionals.
5588
5589 Thu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5590
5591 * configure.in: recognise all sparclite variants
5592
5593 Thu Jan 7 05:25:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5594
5595 * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change --
5596 accidentally changed to use subseg_change where it should have
5597 been subseg_new.
5598
5599 Tue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5600
5601 * expr.c (operand): If character other than comma or newline is a
5602 logical end-of-line character, use the newline case.
5603 From Eric Youngdale:
5604 (operand): Set X_add_number field for floating-point numbers.
5605 (operand): Treat zero byte as end-of-operand.
5606
5607 * configure.in (per-target): Look for with_bfd_assembler option.
5608 For now, only accept "no", until the merge is done.
5609
5610 Merged changes from Eric Youngdale (youngdale@v6550c.nrl.navy.mil):
5611 * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c,
5612 config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS.
5613 * read.c: Finish conversion to S_* macros in the VMS only
5614 parts of the program. Add "const" modifier to hex_value.
5615 * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to
5616 "ifdef OBJ_VMS".
5617 * expr.c: Add "const" modifier to hex_value.
5618 * symbols.c: Finish conversion to S_* macros in the VMS only
5619 parts of the program. Add "const" modifier to
5620 md_[long,short]_jump_size. Remove declaration of const_flag
5621 (which will be declared in obj-vms.h).
5622 * write.c: Add "const" modifier to md_[long,short]_jump_size.
5623 Fix arguments to VMS_write_object_file.
5624 * config-gas.com: New file. Script for VMS systems to set up the
5625 configuration to build gas for VMS, and create config.status.
5626 * make-gas.com: Redone to work with new scheme.
5627 * obj-vms.c: Patch to fix bug where we were not correctly parsing the
5628 stabs directives.
5629 * obj-vms.c: Define macros COPY_LONG and COPY_SHORT which
5630 will swap bytes if needed on a big endian system. Use throughout
5631 as needed.
5632 * obj-vms.c (obj_aout_stab): Add code to generate listing file.
5633 * obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain
5634 types of malformed stabs. Change parsing algorithm so that we are
5635 more certain of having all of the information that we need on hand.
5636 * obj-vms.c (final_forward_reference): New function, used to help
5637 resolve the data types of as many struct elements as possible
5638 when some part of the struct is not fully defined by the compiler.
5639 * obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation
5640 stabs directives.
5641 * obj-vms.c (VMS_write_object_file): Define all vtable psects
5642 as symbols as well in the object file. Look for external functions
5643 that start with "__vt.", and turn them into variables, since the
5644 g++ compiler is incapable of doing this.
5645 * tc-vax.c: Add '1' option for backward compatibility with older GCC
5646 versions.
5647 * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes.
5648 * input-scrub.c (as_where): Fix bug where as would crash if we did not
5649 have the name of the source file yet.
5650 * config/ho-vms.h: define HO_VMS, not HO_VAX.
5651
5652 Mon Jan 4 05:17:26 1993 Ken Raeburn (raeburn@cygnus.com)
5653
5654 * read.c (s_data): Always use "data_section", since it'll map to
5655 SEG_DATA or SEG_E1 if needed.
5656 (s_lcomm): Likewise with bss_section.
5657 (s_fill): Use memset, not bzero.
5658
5659 Thu Dec 31 04:29:27 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5660
5661 * read.c: Deleted some code under "#ifdef DONTDEF" that was for
5662 handling GDB symbol table data.
5663
5664 * config/obj-aout.h (segment_name): Delete definition.
5665 (seg_name): Delete declaration.
5666 * config/obj-bout.h (segment_name, seg_name): Ditto.
5667 * config/obj-vms.h (segment_name, seg_name): Ditto.
5668 * config/obj-coff.h (segment_name): Ditto.
5669 * config/obj-coffbfd.h (segment_name): Ditto.
5670
5671 * Changes for BFD_ASSEMBLER:
5672 * obj.h (obj_crawl_symbol_chain): Declare only if not
5673 BFD_ASSEMBLER.
5674 (obj_header_append, obj_pre_write_hook): Ditto.
5675 * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER.
5676 (segT) [BFD_ASSEMBLER]: New typedef for "asection *".
5677 (segment_name) If BFD_ASSEMBLER, look up BFD section name;
5678 otherwise, use seg_name array.
5679 (seg_name): Declare only if not BFD_ASSEMBLER.
5680 (section_alignment): Declare only if not BFD_ASSEMBLER.
5681 (big_section, reg_section, pass1_section, diff_section,
5682 absent_section, text_section, data_section, bss_section): If
5683 BFD_ASSEMBLER, declare as variables; otherwise, declare as macros,
5684 mapping to segT enum values.
5685 (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors
5686 if these are used or defined, if BFD_ASSEMBLER.
5687 (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old
5688 subseg_new split into two functions.
5689 (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now.
5690
5691 * as.h (volatile): Don't define if already defined.
5692 (had_errors, had_warnings): Provide prototypes for ANSI C even if
5693 NO_STDARG.
5694 (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2,
5695 declare with format attribute for -Wformat checking.
5696
5697 Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
5698
5699 * app.c, config/tc-*.c: Don't include read.h, since it is already
5700 included by as.h.
5701
5702 * These are based on patches from Minh Tran-le
5703 <mtranle@paris.intellicorp.com>.
5704 * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use
5705 obj_format coffbfd and gas_target i386coff for target.
5706 (i[34]86-*-isc*): New host (uses sysv).
5707 * config/i386aix.mt: Removed (no longer used).
5708 * config/mh-i386aix (RANLIB): Use true rather than /bin/true.
5709 (MINUS_G): Removed.
5710 (LDFLAGS): Added, defined as -shlib.
5711 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
5712 * config/te-sco386.h (LOCAL_LABEL): Don't define.
5713 (DOT_LABEL_PREFIX): Define.
5714 * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
5715 name rather than L0\001.
5716 * read.c (s_lcomm): Make a frag in SEG_BSS rather than using
5717 local_bss_counter.
5718 * symbols.c, symbols.h (local_bss_counter): Removed.
5719 * write.c (write_object_file): bss no longer uses
5720 local_bss_counter. Pass correct data and bss size to
5721 VMS_write_object_file.
5722 * config/obj-vms.c (VMS_write_object_file): Accept bss size as
5723 argument, rather than using local_bss_counter.
5724 * config/tc-m88k.c (s_bss): Don't use local_bss_counter.
5725 * config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
5726 * config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
5727 (size_section): Restored sanity check.
5728 (do_relocs_for): Base section address on s_paddr rather than
5729 computing it. Adjust a29k R_IHIHALF special case to account for
5730 section paddr (used to require paddr to be zero). If there are no
5731 reclos, set s_relptr to 0. Set relocation size in object_headers.
5732 (fill_section): Always set s_vaddr here, removing
5733 ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set
5734 NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
5735 Set STYP_INFO for .comment.
5736 (coff_header_append): Use object headers and H_{SET,GET}_* macros.
5737 Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
5738 (crawl_symbols): Handle 8 character section name correctly. Use
5739 H_{SET,GET}_* macros.
5740 (do_linenos_for): Set lineno size in object_headers.
5741 (write_object_file): Use H_{SET,GET}_* macros. Don't bother to
5742 set s_vaddr here. If string_byte_count remains 4, set it back to
5743 0, and only write strings out if there are some. Call
5744 fill_section before do_relocs_for and do_linenos_for.
5745 (obj_coff_section): Handle optional quoted second argument giving
5746 section characteristics.
5747 (obj_coff_bss): Added to handle .bss.
5748 (obj_coff_ident): Added to handle .ident (puts string in .comment
5749 section).
5750 (obj_coff_lcomm): Put common symbols in .bss, not .data.
5751 (fixup_mdeps): Change to segment. Call frag_wane after
5752 md_convert_frag.
5753 (fixup_segment): Explicitly check S_IS_COMMON before making 386
5754 adjustment (already happened only for common symbols, but this is
5755 clearer).
5756 * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
5757 * config/tc-i386.c (s_bss): Don't use if I386COFF.
5758 (md_pseudo_table): Ignore .optim and .noopt.
5759 (tc_coff_sizemachdep): New function.
5760 * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
5761 compatibility.
5762 (LOCAL_LABEL): Removed definition.
5763 (DOT_LABEL_PREFIX): Defined.
5764
5765 Mon Dec 28 10:32:05 1992 Ken Raeburn (raeburn@cygnus.com)
5766
5767 * app.c (app_push): Use memcpy, not bcopy.
5768 (do_scrub_next_char): For \", return " not '.
5769 (symbol_chars): Now const.
5770
5771 * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f"
5772 and "0b". If LOCAL_LABELS_DOLLAR, check for "0$".
5773
5774 * config/obj-coff.h: Don't use #elif.
5775
5776 * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't
5777 have it. (Reported by Noah Friedman, friedman@gnu.ai.mit.edu.)
5778
5779 Wed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)
5780
5781 * write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
5782 already defined.
5783
5784 Tue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5785
5786 * app.c (do_scrub_begin): allow single quote strings if so
5787 configured.
5788
5789 * config/*z8k*: checkpoint
5790
5791 Sun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com)
5792
5793 * read.c (read_a_source_file): avoid calling xmalloc (0).
5794
5795 Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
5796
5797 * listing.c: Call xmalloc, not malloc; don't declare malloc.
5798
5799 * Changes to support SCO 3.2v4:
5800 * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
5801 SEG_BSS, fill with NOP_OPCODE.
5802 * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
5803 * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
5804 using ZERO_BASED_SEGMENTS.
5805 (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
5806 never set segment address for SEG_E2 (.bss) and don't write out
5807 SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
5808 (obj_coff_endef): Don't merge labels or symbols awaiting forward
5809 definitions, and don't merge tags with non-tags. Check for .bf
5810 rather than just checking whether the second character is b and
5811 the third character is f.
5812 (obj_coff_val): gcc can generate values which we don't handle
5813 correctly; discard information for now, since it only affects the
5814 debugging information.
5815 (tag_find_or_name): Don't insert tags in the symbol table.
5816 (yank_symbols): Don't merge labels.
5817 (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
5818 already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
5819 set segment address if ZERO_BASED_SEGMENTS.
5820 (obj_coff_section): Accept and ignore a trailing quoted string, as
5821 used in AT&T i386 syntax.
5822 (fixup_segment): Take segment as argument. On the i386, adjust PC
5823 relative addends by the segment vaddr.
5824 * tc-i386.h: Define SUB_SEGMENT_ALIGN.
5825 * tc-a29k.h: Define ZERO_BASED_SEGMENTS.
5826 * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
5827
5828 Tue Dec 8 00:06:48 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
5829
5830 * config/obj-coffbfd.c: Include libcoff.h.
5831
5832 * version.c: Now version 1.93.
5833
5834 Mon Dec 7 00:39:09 1992 Ken Raeburn (raeburn@cygnus.com)
5835
5836 * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do
5837 power-of-two alignment for .align.
5838
5839 * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial,
5840 and leave everything else alone.
5841
5842 Fri Dec 4 16:58:42 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
5843
5844 * Makefile.in (as.new): Don't bother saving as.old.
5845
5846 * write.c: Conditionalize on OBJ_VMS, not VMS.
5847 (magic_number_for_object_file): Don't define if OBJ_VMS.
5848
5849 * config/obj-vms.c: Changes for traditional C.
5850
5851 Thu Dec 3 01:24:07 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5852
5853 * config/ho-generic.h (malloc, realloc): Declare.
5854
5855 * Lots of comment/whitespace changes.
5856
5857 * write.h (struct fix): Some fields reordered, narrowed.
5858
5859 * read.c (MASK_CHAR): Define using C types, not magic number.
5860
5861 * as.c, input-file.c: Deleted some unused code.
5862
5863 * app.c, as.h: Doc fix.
5864
5865 * flonum-konst.c, flonum-mult.c: Include ansidecl.h.
5866
5867 * as.h (xmalloc): Argument is long.
5868
5869 * xmalloc.c (error): Remove declaration; as.h takes care of it.
5870
5871 * doc/as.texinfo: Regrouped documentation of some command-line
5872 options. Updated options documentation for m68k. Some minor
5873 wording/punctuation changes.
5874
5875 Mon Nov 30 11:42:11 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
5876
5877 * configure.in: Accept target OS "vms".
5878
5879 * symbols.c: Merged ANSI and non-ANSI function decls, using
5880 PARAMS macro.
5881
5882 * xmalloc.c: Just include as.h, don't bother trying to figure out
5883 other header files.
5884
5885 * strstr.c, strerror.c: Deleted.
5886 * Makefile.in: Deleted references.
5887
5888 * config/tc-ns32k.c: Don't include header file for string
5889 declarations; leave that to ho-*.h.
5890
5891 Fri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com)
5892
5893 * config/coff_gnu.h [TC_I860]: Guesses for reloc type values,
5894 imported from FSF sources.
5895
5896 * messages.c (strerror): Declare unconditionally.
5897
5898 * as.h: Delete alloca and register definitions.
5899
5900 * config/atof-ieee.c (mask): Now const.
5901
5902 * obstack.c, obstack.h: Deleted.
5903
5904 * as.h (flag_readonly_data_in_text): New flag.
5905 * as.c (main): Set it for -R.
5906
5907 * as.h (flag_suppress_warnings): New flag.
5908 * as.c (main): Set it for -W.
5909 * messages.c (as_warn): Check it instead of flagseen['W'].
5910
5911 * as.h (flag_always_generate_output): New flag.
5912 * as.c (main): Set it for -Z.
5913
5914 * config/tc-sparc.h: Define NEED_FX_R_TYPE.
5915 * config/tc-a29k.h: Ditto.
5916 * write.h (struct fix): Don't conditionalize fx_r_type field on TC
5917 macros.
5918
5919 * as.h: Merged ANSI and non-ANSI function decls, using PARAMS
5920 macro.
5921 * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h,
5922 obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h,
5923 write.h: Likewise.
5924 * read.c: Likewise.
5925
5926 * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in
5927 xrealloc from xrealloc.c.
5928 * xrealloc.c: Deleted.
5929 * Makefile.in (REAL_SOURCES, OBJS): Adjusted.
5930
5931 * configure.in: For host CPU a29k, rs6000, vax, consider using bsd
5932 or vms ho- files.
5933
5934 * config/ho-sysv.h (setbuffer, HO_USG): Deleted.
5935
5936 * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer;
5937 don't initialize it with NULL.
5938
5939 * config/ho-vax.h (M_VAX): Deleted; was unused.
5940
5941 * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h:
5942 New files imported from FSF version, contributed by Eric Youngdale.
5943 * README-vms-dbg, config/vms: Deleted.
5944
5945 * ChangeLog, config/ChangeLog: Merged.
5946
5947 * config/*tahoe*, configure.in: Tahoe support brought in from FSF
5948 version.
5949
5950 * input-file.c (input_file_open): Eliminate call to setvbuf.
5951 [USG] (setbuffer): Deleted macro.
5952
5953 Mon Nov 23 11:00:16 1992 Ken Raeburn (raeburn@cygnus.com)
5954
5955 * all files: Whitespace changes for GNU indentation style, done by
5956 GNU `indent'. Some cleanup still needed, especially of comments.
5957
5958 * configure.in: No te-386bsd.h file exists; don't try to use it.
5959
5960 * obj-coff.c (obj_coff_endef): Use as_warn, not fprintf.
5961
5962 * tc-m68k.c (md_assemble): Don't complain about 68000 with 68881;
5963 could be doing emulation.
5964
5965 Thu Nov 19 11:47:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5966
5967 z8000 documentation
5968 * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo:
5969 all modified.
5970
5971 Tue Nov 10 09:49:24 1992 Ian Lance Taylor (ian@cygnus.com)
5972
5973 * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h.
5974
5975 * subsegs.h: add extern to segment_info declaration.
5976
5977 * read.h: added extern declarations for comment_chars,
5978 line_comment_chars, and line_separator_chars.
5979 read.c, app.c: removed definitions of comment_chars,
5980 line_comment_chars, and line_separator_chars.
5981
5982 * tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined,
5983 still accept (but don't require) OPTIONAL_REGISTER_PREFIX before
5984 the register name.
5985 (insert_reg): put REGISTER_PREFIX before register names before
5986 putting them in the symbol table.
5987 * tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not
5988 M68KCOFF.
5989
5990 * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss
5991 section.
5992
5993 * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS,
5994 comment_chars, line_comment_chars and line_seperator_chars
5995 consistently const, and always initialized them. Included read.h.
5996
5997 Thu Nov 5 17:55:41 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
5998
5999 * tc-sparc.c (sparc_ip): Add code to flag error if an absolute
6000 constant will not fit in an immediate field.
6001 (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow.
6002
6003 Wed Nov 4 07:50:46 1992 Ken Raeburn (raeburn@cygnus.com)
6004
6005 * obj-coff.c (callj_table): Delete global variable.
6006 (obj_emit_relocations): Define it locally here, and only if
6007 TC_I960 is defined.
6008
6009 * tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name.
6010 (m68k_ip): Don't warn about bignum used as float bit-pattern.
6011
6012 * obj-coff.c: Replaced ANSI and non-ANSI function declarations
6013 with a single set using PARAMS macro.
6014
6015 * tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length
6016 of 2.
6017
6018 * tc-i960.c: Missed a couple of 0->NO_RELOC conversions.
6019
6020 * tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values,
6021 so widening works consistently.
6022
6023 Wed Oct 28 08:52:34 1992 Ken Raeburn (raeburn@cygnus.com)
6024
6025 * version.c: Put conditional "const" before version_string, not
6026 before dummy function for VMS. Now version 1.91.03.
6027
6028 * app.c (do_scrub_next_char): Need double-\ before `000' to show
6029 printed rep of null character.
6030
6031 Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
6032
6033 * obj-coffbfd.c (write_object_file): check return value of
6034 bfd_close_all_done.
6035
6036 Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
6037
6038 * Support for i386-sysv.
6039 obj-coffbfd.c (do_relocs_for, write_object_file): set segment
6040 addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can
6041 be used to set them all to zero as was done before.
6042 (fill_section): segment addresses now set in write_object_file.
6043 (fill_section): Don't set STYP_NOLOAD for .bss section.
6044 (fixup_segment): 386 uses strange common symbol format.
6045 tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
6046 compatibility with SVR3.2 linker.
6047 * configure.in: i386-sysv and i386-sco use coffbfd.
6048
6049 * app.c (do_scrub_next_char): discard whitespace after a label.
6050
6051 Sat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6052
6053 * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4
6054 hosts, use the sysv configuration for solaris2
6055
6056 Mon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6057
6058 fix i960+non-bfd coff bit rot.
6059 * obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
6060 support for C source listings. (obj_coff_endef): look in the right
6061 part of the symbol for the symbol name
6062
6063 * tc-m68k.c (get_num): make it work for all segments, not just the
6064 first three.
6065
6066 Mon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
6067
6068 * configure.in: recognize i386-*-bsd emulation.
6069
6070 Thu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6071
6072 * configure.in: use the cpu-vendor-os triple for host and target
6073
6074 Tue Sep 29 12:22:52 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6075
6076 * obj-coffbfd.c (write_object_file): don't fixup for the z8k
6077 * tc-z8k.c: lots of bug fixes
6078
6079 Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
6080
6081 * tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
6082 #elif, since it is not supported by old compilers.
6083 ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
6084 couple of expressions in tc-m68k.c.
6085
6086 Mon Sep 28 21:18:24 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
6087
6088 * read.c (cons): If NO_RELOC is defined, use it.
6089
6090 * tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new.
6091
6092 Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
6093
6094 * tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
6095 local labels to start with a .) and set REGISTER_PREFIX to %.
6096 tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
6097
6098 Fri Sep 25 17:53:43 1992 John Gilmore (gnu@cygnus.com)
6099
6100 * messages.c: Comment changes.
6101
6102 Fri Sep 25 14:12:58 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
6103
6104 * as.h: Test if __STDC__ is defined only, don't test its value.
6105 * messages.c: If __STDC__ is not defined, define NO_STDARG.
6106
6107 Thu Sep 24 12:42:32 1992 Brendan Kehoe (brendan@rtl.cygnus.com)
6108
6109 * listing.c (debugging_pseudo): Add stabs and stabn as things to
6110 ignore.
6111
6112 Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
6113
6114 * obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
6115 sections starting from zero, rather than making them consecutive.
6116 This makes subsequent reloc calculations easier, esp if the object
6117 format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily)
6118 allocate lcomm in .data rather than in .bss. It seems that some
6119 tools can't cope with a non-zero sized bss before linkage.
6120
6121 Tue Sep 22 15:10:51 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
6122
6123 * tc-m68k.c: Replace "enum m68k_architecture" with "int"
6124 throughout. That enum no longer means what we thought it meant.
6125
6126 * tc-m68k.c (md_assemble, md_parse_option): Handle new
6127 "-mno-688[58]1" options.
6128
6129 * tc-m68k.c: Added CPU32 support.
6130
6131 Fri Sep 18 08:02:18 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6132
6133 * tc-m68k.c (m68k_ip): An(disp) is not pc relative.
6134
6135 Tue Sep 15 17:25:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
6136
6137 * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES.
6138 Change LIBDEPS dependence to LIBS.
6139
6140 Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com)
6141
6142 * Makefile.in (install): if $(tooldir) exists, install as in
6143 $(tooldir)/bin.
6144
6145 Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
6146
6147 * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
6148 .word is < -32768 or > 32767. The -J flag causes the error to be
6149 ignored. This is to catch over-sized switches generated by gcc on
6150 systems which don't support the broken .word hack.
6151 as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
6152 write.c (fixup_segment): check for signed .word overflow if
6153 WARN_SIGNED_OVERFLOW_WORD.
6154
6155 * write.c (fixup_segment): fixed missing parens in expression
6156 checking for byte or word overflow.
6157
6158 * obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
6159 obj-coffbfd.c (fixup_segment): check for signed .word overflow if
6160 WARN_SIGNED_OVERFLOW_WORD.
6161
6162 * obj-coffbfd.c (fixup_segment): fixed missing parens in
6163 expression checking for byte or word overflow.
6164
6165 Fri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6166
6167 Support for i386 coff
6168 * obj-coffbfd.h : added stuff
6169 * tc-i386.c (tc_coff_fix2rtype): new function
6170 * tc-i386.h : new coff defines
6171
6172 Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com)
6173
6174 * input-scrub.c (input_scrub_push): call input_file_begin, not
6175 input_scrub_begin.
6176 messages.c (as_perror): print ": " between the passed in error and
6177 the strerror, like perror does.
6178
6179 Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
6180
6181 * Makefile.in: use gas_target instead of modifying target_cpu.
6182 From Steve Chamberlain:
6183 Makefile.in: Handle m68*-*-coff*.
6184 read.c, read.h: add mult argument to s_space
6185
6186 * tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
6187 Motorola and MIT syntax; gas can now assemble either type of
6188 file.
6189 tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
6190 From Steve Chamberlain:
6191 m68kcoff.mt: for m68k COFF.
6192 obj-coffbfd.c: (fixup_mdeps) added
6193 (size_section) removed bad sanity check
6194 (fill_section) added rs_machine_dependent case
6195 (write_object_file) call fixup_mdeps
6196 (fixup_segment) set fx_subsy to 0.
6197 obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
6198 handle m68k.
6199 tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
6200 pseudo ops.
6201
6202 Tue Sep 8 17:10:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
6203
6204 * Makefile.in (LIBS): Include opcode library.
6205
6206 Fri Sep 4 18:20:56 1992 Ken Raeburn (raeburn@cygnus.com)
6207
6208 * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers
6209 including zero are accepted, pass +0.0.
6210
6211 Sun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com)
6212
6213 * Makefile.in: map "as" through program_transform_name when
6214 installing.
6215
6216 * doc/Makefile.in: map "as" through program_transform_name when
6217 installing.
6218
6219 Sat Aug 29 12:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
6220
6221 * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
6222
6223 Fri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com)
6224
6225 * obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
6226 tc-i960.c (md_ri_to_chars): Always output bout object file in
6227 little endian byte order (used to use endianness of host).
6228
6229 Tue Aug 25 15:50:48 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
6230
6231 * config/tc-m68k.c (init_table): Now const. Always include 68851
6232 data, so that "bc" is available to 68040 cache instructions.
6233 Added "tt0", "tt1", and 68ec030 variants.
6234 (md_assemble): Complain if 68000 (only) and 68881 are specified.
6235 (enum _register): Added TT0, TT1.
6236 (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass
6237 line number correctly in "internal error" messages. Don't print
6238 architecture-mismatch message for operand errors.
6239
6240 From Colin Smith (colin@wrs.com):
6241 * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather
6242 than install_operand.
6243
6244 Tue Aug 25 15:13:48 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6245
6246 * listing.c (buffer_line): rewind to the start of include
6247 files, they might be included twice.
6248
6249 * z8k.c, z8k.h, z8k.mt: z8000 support stuff
6250
6251 Mon Aug 24 12:45:43 1992 Ian Lance Taylor (ian@cygnus.com)
6252
6253 * Makefile.in: defined TARGET_CPU for C code so that it can choose
6254 one element of a family.
6255
6256 * tc-m68k.c: use TARGET_CPU to choose default cpu type.
6257
6258 * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
6259 so that we can assemble hand-written libgcc code.
6260
6261 Fri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
6262
6263 * messages.c (as_warn): Use fputs, not fprintf, with a buffer that
6264 has already been formatted (but may still contain %-characters).
6265 (as_bad): Likewise.
6266
6267 Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
6268
6269 * tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
6270 written with indirection on the last two operands, which can be
6271 either data or address registers. Added a new operand type 'r'
6272 which accepts either register type. Added '(' to notend stuff in
6273 tc-m68kmote.c to accept (a0):(a2) in cas2 instruction.
6274
6275 Wed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com)
6276
6277 * as.h (enum _relax_state): Start off at one, not zero, to better
6278 catch uninitialized-variable errors.
6279 (linkrelax): Declare new variable.
6280
6281 * messages.c (warning_count, error_count): Default initializer is
6282 sufficient.
6283
6284 * write.c: Merged some declarations, using PARMS macro.
6285 (text_frag_root, data_frag_root, bss_frag_root, text_last_frag,
6286 data_last_frag): No longer static.
6287 (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is
6288 defined, call it. Change segments before calling fixup_segment.
6289 (relax_align): If linkrelax, provide extra padding.
6290
6291 * obj-bout.c (obj_emit_relocations): Emit alignment relocs despite
6292 their not having symbols associated.
6293
6294 * tc-i960.c (norelax, instrument_branches): Default initializer is
6295 sufficient.
6296 (linkrelax): Delete variable definition.
6297 (mem_fmt): Call fix_new with NO_RELOC.
6298 (tc_bout_fix_to_chars): Handle alignment relocs.
6299 (i960_handle_align): New function.
6300 * tc-i960.h (linkrelax): Delete declaration.
6301 (HANDLE_ALIGN): New macro; calls i960_handle_align.
6302 (NEED_FX_R_TYPE, NO_RELOC): New macros.
6303
6304 Tue Aug 18 14:59:21 1992 Ken Raeburn (raeburn@cygnus.com)
6305
6306 * config/sparc.mt: New file. Grab sparc opcode table from bfd
6307 library.
6308
6309 Tue Aug 18 14:16:38 1992 Ian Lance Taylor (ian@cygnus.com)
6310
6311 * Makefile.in: always create installation directories. Removed
6312 MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
6313 FLAGS_TO_PASS to recursive makes.
6314
6315 * doc/Makefile.in: always create installation directories.
6316
6317 Mon Aug 17 15:09:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6318
6319 * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was
6320 being used with args swapped, causing occasional lossage when
6321 refilling buffers after an include file.
6322
6323 Mon Aug 17 13:18:51 1992 Ken Raeburn (raeburn@cygnus.com)
6324
6325 * messages.c (as_tsktsk): Use correct ANSI form for stdarg
6326 version. Discard bogus DONTDEF version.
6327 (as_warn, as_bad, as_fatal): Likewise.
6328
6329 Fri Aug 14 18:31:14 1992 Ken Raeburn (raeburn@cygnus.com)
6330
6331 * config/tc-m68k.c (m68k_ip): If instruction is invalid for the
6332 selected architecture, print a message saying so and listing what
6333 processors support it, rather than saying "operands mismatch".
6334
6335 Thu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com)
6336
6337 * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
6338
6339 * config/ho-rs6000.h (M_RS6000): Don't define it.
6340 (free): Declare it.
6341 (BROKEN_ASSERT): Define it if not __STDC__.
6342
6343 Tue Aug 11 12:58:14 1992 Ken Raeburn (raeburn@cygnus.com)
6344
6345 * sparc.mt: New file.
6346
6347 Mon Aug 10 14:37:08 1992 Per Bothner (bothner@cygnus.com)
6348
6349 * tc-m68k.c: ".align N" means align to N-byte boundary *only*
6350 if TN_SUN3; otherwise align to 2**N-byte bounary.
6351
6352 Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6353
6354 * read.c (s_fill): make the .fill size clamped error a warn and
6355 fix bug where 0's were always placed.
6356
6357 * config/tc-h8300.c: if a :8 is seen after an operand, fill top
6358 two bytes of any constant with 0xff:
6359
6360 Wed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6361
6362 * config/tc-m68k.c (md_pseudo_table): fix the .align thing
6363 the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo.
6364
6365 Wed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com)
6366
6367 * tc-m68k.c (try_index): Error if index scaling specified and
6368 assembling for an older CPU than a 68020.
6369
6370 Sat Aug 1 19:10:13 1992 Ken Raeburn (raeburn@cygnus.com)
6371
6372 * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take
6373 fx_offset into account.
6374
6375 Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com)
6376
6377 * configure.in (mips host): Accept "ultrix" with version number.
6378
6379 * expr.c (floating_constant): Separate "=-" to avoid confusing
6380 ancient or broken compilers.
6381
6382 * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
6383 processor/opcode mismatch, so reword the error message.
6384 (md_assemble): If no CPU has been set (even if FPU/PMMU
6385 characteristics have been), default to 68020. Don't need extra
6386 quotes around error string.
6387
6388 Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
6389
6390 * read.c (potable): Revert sac's incorrect change made Jul 13.
6391 Align really is supposed to be ptwo not nbytes.
6392
6393 Mon Jul 20 02:51:59 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
6394
6395 * Makefile.in: _Do_ include libiberty. (from sef)
6396
6397 Fri Jul 17 15:15:28 1992 Ken Raeburn (raeburn@cygnus.com)
6398
6399 * expr.c (integer_constant): Handle "0f" and "0b" label references
6400 properly.
6401
6402 Thu Jul 16 08:20:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6403
6404 * write.c (fixup_segment): if relaxing, don't do anything.
6405 * config/obj-bout.[ch] : maintain the a_relaxable file header info
6406 * config/tc-i960.c: new option -linkrelax
6407
6408 Mon Jul 13 14:11:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6409
6410 * expr.c (expr): allow SEG_BSS in expressions
6411 * read.c (potable): align should be nbytes, not ptwo!
6412 * write.c (write_object_file): extra glue for new bss attributes
6413 (relax_segment): SEG_BSS is ok now
6414 * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes
6415
6416 Mon Jul 6 17:09:32 1992 Steve Chamberlain (sac@cygnus.com)
6417
6418 * obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT
6419
6420 Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
6421
6422 * configure.in: recognize m680x0 as having sun3 emulation mode for
6423 vxworks environment.
6424
6425
6426 Tue Jun 30 20:25:54 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
6427
6428 * Makefile.in: Add program_suffix (parallel to program_prefix)
6429
6430 Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6431
6432 * app.c (process_escape): new function to handle escapes the right
6433 way, (do_scrub_next_char): use new function
6434 * cond.c (s_ifdef): do ifdef/ifndef right
6435 * read.c (s_fill): make the , expressions optional like the doc
6436 says
6437 * config/tc-h8300.[ch]: better warnings
6438
6439 Tue Jun 9 07:54:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6440
6441 * subsegs.c (subsegs_begin): create bss0_frchainP in the same was
6442 as data0_frchainP
6443
6444 * write.c (write_object_file): various changes to handle data in
6445 the BSS segment in much the same was as stuff in the DATA segment.
6446
6447 * tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do
6448 pcrel data stuff. (md_estimate_size_before_relax): when relaxing a
6449 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into
6450 the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put
6451 it into SEG_BSS
6452
6453 Thu Jun 4 11:59:13 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6454
6455 * expr.c(expr): allow SEG_REGISTER in expressions.
6456 * read.c(pseudo_set): register expressions can be the source of a
6457 set.
6458 * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to
6459 goto SEG_TEXT (if a.out)
6460 * write.c (write_object_file): If a.out don't use the old way for
6461 -R.
6462 * config/obj-a.out (s_sect): complain if the user tries to use a
6463 subsegment with a value which might interfere with out -R hackery.
6464 * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table
6465 rather than use ugly if tree. (init_regtable): insert register
6466 names into symbol table.
6467
6468 Tue Jun 2 16:47:09 1992 Steve Chamberlain (sac@cygnus.com)
6469
6470 * write.c (write_object_file): keep the fix_tail clean, which
6471 fixes a bug in -R where relocations were being lost.
6472
6473 Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
6474
6475 * configure.in: recognize m680x0 as having sun3 emulation mode for
6476 vxworks environment.
6477
6478 Sun May 31 05:33:00 1992 david d `zoo' zuhn (zoo@cygnus.com)
6479
6480 * configure.in: recognize m680x0 as an m68k
6481
6482 Thu May 28 11:22:02 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
6483
6484 * configure.in: Recognize sparclite as a sparc variant.
6485
6486 * tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new
6487 -Asparclite flag.
6488
6489 Tue May 26 16:47:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6490
6491 * config/tc-a29k.c: lint
6492 * listing.c, expr.c: patches from Andrew Smith
6493
6494 Thu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6495
6496 * doc/Makefile.in: use m4 rather than gm4.
6497
6498 Mon May 4 18:56:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6499
6500 * obj-coffbfd.c: use is a synonym for section, (do_relocs_for):
6501 calc the base of relocs correctly.
6502 * tc-a29k.c (parse_operand): allow expressions to be in any section.
6503
6504 Mon Apr 27 13:13:31 1992 K. Richard Pixley (rich@cygnus.com)
6505
6506 * as.c, write.c: use -K rather than -k for the broken word warning
6507 option.
6508
6509 Tue Apr 21 13:35:30 1992 K. Richard Pixley (rich@cygnus.com)
6510
6511 * Makefile.in: do not print recursion lines.
6512
6513 Wed Apr 15 21:19:31 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6514
6515 * Makefile.in: the tooldir copy of gas goes directly in tooldir.
6516
6517 Tue Apr 14 14:50:22 1992 Ken Raeburn (Raeburn@Cygnus.COM)
6518
6519 * write.c (write_object_file): For b.out format, round up section
6520 start addresses to match required alignment.
6521
6522 Thu Apr 9 05:45:29 1992 Ken Raeburn (Raeburn@Cygnus.COM)
6523
6524 * Makefile.in (install): Install into $(tooldir)/bin, since that's
6525 where gcc looks for it.
6526
6527 Tue Apr 7 15:12:15 1992 Sean Eric Fagan (sef@cygnus.com)
6528
6529 * Makefile.in: Changed some lines to be less confusing for some
6530 makes.
6531
6532 * input-file.c: Conditionalize on _IOFBF, not VMS.
6533
6534 * read.c, write.c: Change a series of ifdef/elif to
6535 ifdef/else/ifdef etc.
6536
6537 Fri Mar 27 12:21:16 1992 K. Richard Pixley (rich@cygnus.com)
6538
6539 * symbols.c (fb_label_init): fix sizeof to memset.
6540
6541 Fri Mar 13 15:45:44 1992 K. Richard Pixley (rich@cygnus.com)
6542
6543 * Makefile.in: install the man page.
6544
6545 * Makefile.in: pass down MAKEINFO explicitly on info.
6546
6547 * doc/Makefile.in: use $(MAKEINFO) not makeinfo.
6548
6549 Fri Mar 13 08:03:03 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6550
6551 * flonum-const.c: renamed flonum-konst.c to stop dos name
6552 conflict.
6553
6554 Thu Mar 12 04:42:38 1992 K. Richard Pixley (rich@cygnus.com)
6555
6556 * tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
6557 tc-m68k.h to te-sun3.h.
6558
6559 Wed Mar 11 23:32:42 1992 K. Richard Pixley (rich@cygnus.com)
6560
6561 * configure.in: vxworks68 gets te-sun3.h.
6562
6563 * expr.c: remove limitation that local_labels_dollar or
6564 local_labels_fb must be < 10.
6565
6566 * symbols.c: remove local_labels_dollar, replace with a function
6567 interface for a sparse array. All users adjusted.
6568
6569 * te-sun3.h: add LOCAL_LABELS_DOLLAR.
6570
6571 Sat Mar 7 00:06:25 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6572
6573 * doc/Makefile.in: commented out line for building as-all.texinfo.
6574 This is temporary.
6575
6576 * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks.
6577
6578 Fri Mar 6 21:57:18 1992 K. Richard Pixley (rich@cygnus.com)
6579
6580 * Makefile.in: added check target.
6581
6582 Tue Mar 3 15:45:56 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6583
6584 * Makefile.in: added tooldir and program_prefix.
6585
6586 Sun Mar 1 04:43:19 1992 Michael Tiemann (tiemann@cygnus.com)
6587
6588 * write.{c,h} (fix_new): Make these declarations consistent.
6589
6590 Sat Feb 29 13:59:10 1992 Michael Tiemann (tiemann@cygnus.com)
6591
6592 * Makefile.in (strerror.o): Add rule so that broken Sun make can
6593 work in subdirs.
6594
6595 Wed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6596
6597 * read.c, obj-coffbfd.c : fix h8300 specific bit rot
6598
6599 * expr.c (operand): if can't work out what sort of operand it is,
6600 then look through FLT_CHARS for a hint.
6601
6602 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
6603
6604 * Makefile.in, configure.in: removed traces of namesubdir,
6605 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
6606 copyrights to '92, changed some from Cygnus to FSF.
6607
6608 * doc/Makefile.in, doc/configure.in: removed traces of namesubdir,
6609 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
6610 copyrights to '92, changed some from Cygnus to FSF.
6611
6612 Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6613
6614 * expr.c: If an expression is single comma, then return with
6615 SEG_ABSENT rather than an error - since the sparc front end does
6616 really strange things with things like fbge,a
6617
6618 * as.h: include bfd.h if using many sections
6619 * expr.c: LOCAL_LABELS_FB had been changed to lower case - so
6620 local labels didn't work.
6621 * listing.c (list_symbol_table): don't core dump when there's no
6622 symbol there.
6623 * write.c, write.h: call fix_new with the right number of args on
6624 the H8.
6625 * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
6626 errors nices
6627
6628 Sat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6629
6630 * app.c: MRI compatibility - allow single quote to start a string.
6631 * as.c: fix typo recently introduced.
6632 * as.h : Don't include aout/reloc.h - it's not right for COFF!
6633 * expr.c: Much rewriting, to accomodate MRI syntax for
6634 expressions. Also easier to read now.
6635 * listing.c: Put back defuns
6636 * read.c: modified to accept MRI syntax, put back listing pseudo
6637 ops so that an assembler built with NO_LISTING ignores list ops
6638 rather than pukes.
6639 * write.c, write.h: fixs - only keep a reloc type in a fix if the target
6640 machine is a SPARC or a 29K.
6641 * config/obj-aout.c: added s_sect pseudo op
6642 * config/obj-coffbfd.c: lints, set the filehdr flags right and
6643 fill in the timestamp.
6644 * config/obj-coffbfd.h: Since we don't include aout/reloc.h
6645 anymore, define all the relocs which the tc-<x> bit will use so we
6646 can translate from them to the coff types.
6647 * config/tc-a29k.c: reloc_type isn't ane enum any more
6648 * config/tc-m68k.c: Added NO_RELOC definition.
6649
6650 Fri Feb 21 06:21:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6651
6652 * Makefile.in: put header files before C source for TAGS; remove
6653 references to non-existent syscalls.h.
6654
6655 * read.c, write.c subsegs.c: back out the .bss changes.
6656
6657 * obj-aout.c: do not include stab.gnu.h if NO_LISTING.
6658
6659 * tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place.
6660
6661 * a.out.h: removed.
6662
6663 Fri Feb 21 01:08:48 1992 Minh Tran-Le (TRANLE@INTELLICORP.COM)
6664
6665 * symbols.c (local_label_name): symbols now start with ^A.
6666
6667 * read.c, subsegs.c, write.c obj-coff.c: added handling of
6668 `.bss` pseudo op for unitialized data. The new gcc (1.37.9x)
6669 generate these sections. .align: will use NOP_OPCODE or 0
6670 for padding. This is just for being nice to the
6671 disassembler.
6672
6673 * expr.c (operand): changed to generate local label "\001L0"
6674 starting with a ^A so that it is recognized as a local label.
6675
6676 * as.c (perform_an_assembly_pass): zero bss_fix_root, too.
6677
6678 * tc-i386.c: tc-i386.c: added handling of the following opcodes:
6679 i/o opcodes - inb, inw, outb and outw. string manipulation with
6680 att syntax - scmp, slod, smov, ssca, ssto.
6681
6682 * obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss
6683 to just after .file .
6684
6685 In obj_crawl_symbol_chain() where it tries to put the external
6686 symbols apart, with the condition:
6687 (!S_IS_DEFINED(symbolP) &&
6688 !S_IS_DEBUG(symbolP) &&
6689 !SF_GET_STATICS(symbolP))
6690 it was moving too many symbols out. So I switch it back to the
6691 condition:
6692 (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP))
6693
6694 In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO
6695 so that we don't use the F_RELFLG which make the linker complain
6696 that somebody has stripped the relocation info.
6697
6698 Also, the AIX ld program require that the relocation table
6699 is sorted by r_vaddr like the standard ATT assembler does.
6700
6701 [he also changed the sizeof(struct ...)'s into the coff
6702 style FOOSZ macros. I'm not sure this is right, but I can't
6703 remember why. xoxorich.]
6704
6705 Fri Feb 21 01:08:48 1992 K. Richard Pixley (rich@cygnus.com)
6706
6707 * Makefile.in, configure.in, doc: use the doc. Build it, install
6708 it, clean it, etc.
6709
6710 Tue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com)
6711
6712 * read.c: white space and comments only.
6713
6714 * configure.in: use the new atof-ns32.c for ns32k.
6715
6716 * write.c: comment change only.
6717
6718 * tc-m88k.[hc]: pulled in from hack's unfinished work. These
6719 aren't yet integrated.
6720
6721 * tc-i860.[hc]: blew off the dust. Something must still be done
6722 about conflicting relocation types.
6723
6724 * tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the
6725 real thing.
6726
6727 * tc-i960.c, tc-sparc.c: white space and comments only.
6728
6729 * tc-a29k.h: delete duplicate macro definition.
6730
6731 * new file atof-ns32k.c copied from hack's last unreleased gas.
6732
6733 Mon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com)
6734
6735 * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work
6736 rather than abort.
6737
6738 * nearly everything. flush ChangeLog, package as gas-1.92.1.
6739 ChangeLog's prior to this are sketchy at best. I have logs.
6740 They just aren't ChangeLogs.
6741
6742 \f
6743 Local Variables:
6744 version-control: never
6745 End:
This page took 0.160749 seconds and 5 git commands to generate.