* Preliminary support for m88k-coff.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
c978e704
ILT
1Thu Jul 15 11:51:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2
3 * Preliminary support for m88k-coff.
4 * configure.in (m88k-*-coff*): New target. Use coffbfd and
5 m88kcoff.
6 * config/m88kcoff.mt: New file.
7 * read.c (lex_type): New macro LEX_AT to set lex type of '@'.
8 (pseudo_set): Handle difference of symbols in different fragments
9 by saving the entire expression as the value of the symbol.
10 * symbols.c (resolve_symbol_value): Resolve difference
11 expressions.
12 * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
13 "sdef" as a synonym for "def".
14 * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
15 TARGET_FORMAT.
16 (S_IS_LOCAL): Any symbol which includes \001 in the name is local.
17 * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
18 m88k port up to date, and to add COFF support.
19
85051959
ILT
20Wed Jul 14 15:09:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21
5868b1fe
ILT
22 * Removed sy_forward and replaced it with an undefined expression
23 as the value of a symbol.
24 * struc-symbol.h (struct symbol): Removed sy_forward field. Added
25 sy_resolved and sy_resolving single bit fields.
26 * symbols.c (symbol_new): Don't initialize sy_forward field.
27 (resolve_symbol_value): New function to adjust symbol value by
28 fragment address, using recursion to resolve forward symbols.
29 * symbols.h: Added prototype for new function.
30 * read.c (pseudo_set): Set symbolP->sy_value to an undefined
31 expression rather than setting symbolP->sy_forward.
32 * write.c (write_object_file): Use resolve_symbol_value on
33 symbols, keeping the common case (the old behaviour) inline.
34 * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward
35 handling (subsumed by write.c change).
36 * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set
37 sy_value rather than sy_forward.
38 * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check
39 expression segment rather than sy_forward.
40 (yank_symbols): Use resolve_symbol_value.
41 (crawl_symbols): Removed extra pass over symbols.
42 * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c,
43 config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over
44 symbols which handled sy_forward; use resolve_symbol_value
45 instead.
46 * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol):
47 Define.
48 * config/obj-elf.c (obj_elf_stab_generic): Check expression
49 segment rather than sy_forward.
50 * config/obj-vms.c (VMS_Check_For_Main): Don't initialize
51 sy_forward; do initialize sy_resolved and sy_resolving.
52 * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward.
53
85051959
ILT
54 * Changes to keep a full expression as the value of a symbol, not
55 just a longword:
56 * struc-symbol.h: New field sy_value.
57 * as.h: Include expr.h before struc-symbol.h.
58 * expr.h: Use struct symbol rather than symbolS.
59 * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value
60 of sy_value field; compile unconditionally, not just if
61 BFD_ASSEMBLER.
62 * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally.
63 * write.c (write_object_file): Set BFD symbol value to gas symbol
64 value.
65 * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h,
66 config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h
67 (S_GET_VALUE, S_SET_VALUE): Removed macro definitions.
68 * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed.
69 * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use
70 S_GET_VALUE rather than ost_entry.n_value.
71 * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c
72 (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars),
73 config/obj-coffbfd.c (symbol_to_chars): Get value to write out
74 using S_GET_VALUE--don't assume it is already set.
75 * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas
76 symbol value.
77 * config/obj-vms.c (various): Don't assign directly to
78 S_GET_VALUE; use S_SET_VALUE instead.
79
b50401c9
DE
80Wed Jul 14 09:35:23 1993 Doug Evans (dje@canuck.cygnus.com)
81
82 * configure.in: Recognize h8300h.
83
489a93f3
SC
84Tue Jul 13 12:09:44 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
85
86 * config/tc-h8500.c (line_comment_chars): Add hash.
87 (parse_exp, skip_colonthing, build_bytes): Add support for
88 R_H8500_HIGH16 relocation type.
89
5d4ef296
KR
90Mon Jul 12 11:15:34 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
91
92 * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an
93 attribute name. Handle `execinstr' attribute.
94
99c24539
ILT
95Mon Jul 12 07:22:28 1993 Ian Lance Taylor (ian@cygnus.com)
96
97 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
98 there is another alternative for the instruction.
99
ec1c752b
RP
100Fri Jul 9 17:31:34 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
101
102 * doc/as.texinfo: updates for H8/300H
103
d358969d
ME
104Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
105
106 * config/tc-i960.c (md_create_short_jump, md_create_long_jump,
107 md_number_to_chars, md_section_align): Adjusted to use valueT,
108 addressT, to match tc.h.
109
ff4cac38
KR
110Thu Jul 8 14:15:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
111
112 * config/tc-sparc.c (s_common): Revamp to handle both syntaxes,
b2565433 113 independent of format.
ff4cac38 114
42206996
DE
115Thu Jul 8 07:25:25 1993 Doug Evans (dje@canuck.cygnus.com)
116
117 * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h.
118
e9baeb46
DZ
119Wed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
120
121 * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross
122 build; also recognize h8300-*-coff
123
76c64db0
ILT
124Wed Jul 7 10:21:24 1993 Ian Lance Taylor (ian@cygnus.com)
125
e154ecf4
ILT
126 * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
127 core just because somebody uses a label before it is defined.
128
76c64db0
ILT
129 * config/mips-opcode.h: Moved to opcode/mips.h.
130 * config/tc-mips.c: Include opcode/mips.h rather than
131 mips-opcode.h.
132 (append_insn): An extra NOP is only needed after instructions
133 which set HI or LO, not after instructions which read it.
134 (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
135 (macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
136 * config/tc-mips.h (struct mips_opcode): Don't define.
137 * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
138 Set to $(srcdir)/../include/opcode/mips.h.
139
140 Get the MIPS assembler up to speed with other gas changes:
141
142 * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
143 Removed; don't change the symbol value.
144 (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
145 bfd_asymbol_value rather than S_GET_VALUE to include section
146 vma in symbol value.
147 (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
148 doesn't output them. Set the vma of sections.
149 * config/obj-ecoff.h: Don't define obj_frob_symbol.
150 * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
151 longer necessary.
152 (various): use valueT rather than long.
153
e28e0b95
KR
154Wed Jul 7 08:33:30 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
155
156 * as.h (valueT): Typedef moved here.
157 * struc-symbol.h (valueT): ...from here.
158 * write.c (write_object_file): Locals from_addr, to_addr,
159 table_addr are now addressT. Supply prototype for bfd_alloc for
160 now.
161 (fixup_segment): Local add_number is now valueT. Correct some
162 range-checking bugs.
163 (relax_align): Type `int' should be sufficient for the exponent.
164 (fix_new): Argument offset is type offsetT. Locals size and
165 newsize are type valueT.
166 * write.h (struct fix): Fields fx_offset and fx_addnumber are now
167 type valueT.
168 (fix_new): Fix prototype.
169 * symbols.c (symbol_new): Symbol value is type valueT.
170 (S_SET_VALUE, S_GET_VALUE): Likewise.
171 (S_IS_*): Specify int return type explicitly.
172 * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed
173 prototypes.
174 * read.c (s_comm): Values read are type valueT.
175 * expr.h (expressionS): Field X_add_number is an offsetT.
176 * tc.h (md_create_long_jump, md_create_short_jump,
177 md_section_align): Addresses are now type addressT.
178 (md_number_to_chars, md_apply_fix): Pass value as valueT.
179 * config/tc-i386.c (md_create_short_jump, md_create_long_jump,
180 md_number_to_chars, md_section_align): Adjusted.
181 * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make
182 gcc shut up.
183 (md_create_short_jump, md_create_long_jump, md_number_to_chars,
184 md_section_align): Adjusted.
185
186 * config/tc-sparc.c (s_reserve): Permit use for other than a.out
187 format.
188 (s_common): Handle Solaris-2 version.
189
190 * config/ho-generic.h (free): Returns void if __STDC__.
191
192 * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file,
193 elf_file_symbol): Declare.
194
195 * expr.c (floating_constant, integer_constant): Now return void.
196
197Thu Jul 1 12:13:43 1993 Ian Lance Taylor (ian@cygnus.com)
198
199 * configure.in: Match on sparc*-fujitsu-none rather than
200 sparclite*-fujitsu-none.
201
267389df
ILT
202Wed Jun 30 11:12:02 1993 Ian Lance Taylor (ian@cygnus.com)
203
204 * read.c (cons): Conditionalize parsing of expression. Move
205 putting value into object file into separate function. Separate
206 out MRI and WANT_BITFIELDS cases into separate functions.
207 (emit_expr): New function to write data into object file.
208 Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
209 processor types.
210 (parse_bitfield_cons): New function to parse bitfield expressions
211 as used by i960 assemblers. Only compiled if
212 BITFIELD_CONS_EXPRESSIONS is defined.
213 (parse_mri_cons): New function to parse MRI style strings. Only
214 compiled if MRI is defined.
215 (parse_repeat_cons): New function to parse repeat counts. Only
216 compiled if REPEAT_CONS_EXPRESSIONS is defined.
217 * read.h (emit_expr): Added declaration of new function.
218 * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
219 * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
220 * config/tc-hppa.c (parse_cons_expression_hppa): New function to
221 parse a HPPA expression, rather than special case in cons
222 function.
223 (cons_fix_new_hppa): New function to emit an HPPA fixup, rather
224 than special case in emit_expr function.
225 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
226 Define to use new functions from tc-hppa.c.
227 * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
228 (WANT_BITFIELDS): Removed; now obsolete.
229 * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
230 * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
231 NS32K fixup, rather than special case in emit_expr function.
232 * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
233 cons_fix_new_ns32k. Also use PARAMS rather than checking
234 __STDC__.
235 * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.
236
237 * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
238 Don't core dump if gas has no information about a section.
239
240Wed Jun 30 06:21:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
241
242 * write.c (relax_and_size_seg): Always fully process a section.
243 Section size is last frag's (vm)address plus its size. If no
244 relocations are present, force SEC_RELOC flag clear.
245 (dump_section_relocs): New debugging routine.
246 (adjust_reloc_syms): New routine, broken out from write_contents.
247 Don't adjust relocs that are already relative to section symbol.
248 Look for obj_fix_adjustable macro to know what else to skip,
249 instead of obj_write_symbol. Look for section symbol stored in
250 section information.
251 (write_object_file): Map adjust_reloc_syms over all sections.
252 (write_contents): Clear SEC_RELOC flag if no relocations are
253 found.
254
255 * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to
256 keep it quiet.
257
258 * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER.
259
e28e0b95
KR
260Fri Jun 25 14:42:53 1993 K. Richard Pixley (rich@sendai.cygnus.com)
261
262 * Makefile.in (all, dvi, info, install-info, clean-info): do not
263 echo recursion lines.
264 (install-info, clean-info): collapse into the dvi and info rule.
265
267389df
ILT
266Fri Jun 25 03:43:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
267
268 * as.h (strstr): Disable declaration for now.
269 (fprint_value, sprint_value): Declare.
270
271 * subsegs.c (subseg_new_rest): Use memset to clear new frag.
272 (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields.
273
274 * expr.c (expr_part): Made sanity checks a.out-specific.
275 (expr): Disabled sanity checks.
276
277 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for
278 section symbol.
279 * subsegs.c (subseg_change): Initialize section symbol pointer
280 when setting up a new section.
281
282 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata
283 field back at gas symbol structure.
284
285 * symbols.c (colon): Cast obstack_next_free value to char* before
286 doing arithmetic on it.
287 * subsegs.c (subseg_new_rest): Likewise.
288 * as.h (frag_now_fix): Likewise.
289
290 * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of
291 calling bfd_make_section_old_way directly, and call subseg_set
292 instead of subseg_change. Now returns void.
293 (obj_elf_write_symbol): Only check local symbols for now.
294 (elf_stab_symbol): Now static and void, and disabled until it
295 works completely.
296 (obj_elf_size): For expression values, fail silently for now.
297 (obj_symbol_new_hook): Do nothing.
298
299 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22
300 relocation.
301 (s_local) [OBJ_ELF]: New function.
302 (md_pseudo_table) [OBJ_ELF]: Call it for "local".
303 (s_common): Rearrange to handle Solaris .common pseudo, which may
304 sometimes use bss space instead of common.
305 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field.
306
a8285504
DZ
307Thu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
308
309 * configure.in: set host config to hpux for hppa*-hp-hpux
310
267389df
ILT
311Thu Jun 24 13:35:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
312
313 * app.c (app_pop, app_push): Fix bug reported by Chris Arthur.
314
315Tue Jun 22 01:04:23 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
316
317 * subsegs.c (subseg_new): Don't special-case a.out -R flag here.
318 * config/obj-aout.c (s_sect): Do it here.
319
320 * as.h (BAD_CASE): Don't make some lame compilers think we want
321 substitution inside strings.
322
323 * as.c (print_version_id): New function, split off from main.
324 (main): Call it.
325 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id
326 for -V. Ignore -Q and -s options for now.
327
a8285504
DZ
328Mon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
329
330 * Makefile.in: make installation & builds work again for crosses
331
267389df
ILT
332Sun Jun 20 18:18:26 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
333
334 * listing.c (list_symbol_table): Rewrite to print wide (>32 bits)
335 symbol values correctly.
336
337 * write.c (write_object_file): Deleted unused variables.
338 (fixup_segment): Use sprint_value.
339
340 * messages.c (sprint_value, fprint_value): New routines.
341
342 * config/obj-elf.c (elf_stab_symbol): Now returns void.
343 (obj_elf_stab_generic): Fix typo in logic.
344
345 * Makefile.in (INCLUDES): Look in ../bfd for bfd.h.
346
347 * as.h (addressT, offsetT): New types, using BFD types if
348 available.
349 (relax_addressT, struct frag): Use them.
350 * struc-symbol.h (valueT, struct broken_word): Likewise.
351
352 * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
353 * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
354
9126738c
DZ
355Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
356
357 * Makefile.in: canonicalize install.sh; for use within
358 this directory (and subdirs)
359
267389df
ILT
360Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
361
362 * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
363 specified, should have both S1 and S2 fields identical
364 If only finding the problem was as fast as fixing the bug !!!!
365
366Tue Jun 15 16:01:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
367
368 * write.c (write_contents): Do write out non-loadable sections.
369 Debug sections can fall in this category.
115147fb 370
267389df
ILT
371 * read.c (s_app_file): Call elf_file_symbol for ELF files.
372 * config/obj-elf.c (elf_file_symbol): New function.
373
374 * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_...,
375 added argument to specify section base name.
376 (obj_elf_stab_generic): Renamed from ..._stab. New argument
377 specifies section base name.
378 (obj_elf_stab): New function, calls obj_elf_stab_generic with
379 ".stab" as section base name.
380 (obj_elf_xstab): New function, calls obj_elf_stab_generic.
381 (obj_elf_type): Handle "object". Use bitwise-or to merge in
382 symbol flags rather than simply replacing, so global/local flags
383 are preserved.
384 (obj_elf_ident): Rewrite.
115147fb 385
a00ee522
DZ
386Tue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
387
388 * Makefile.in: remove parentdir support; use INSTALL_XFORM
389
390Wed Jun 9 11:26:07 1993 Ian Lance Taylor (ian@cygnus.com)
391
392 * config/tc-i386.c (md_pseudo_table): .align uses a power of two
393 for any a.out target, not just Linux and 386BSD.
394 * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out
395 target.
396
267389df
ILT
397Mon Jun 7 13:33:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
398
399 * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They
400 don't exist or duplicate other inclusions.
401
402 * config/tc-vax.h (NO_RELOC): Define.
403
404Sat Jun 5 19:32:52 1993 Torbjorn Granlund (tege@nada.kth.se)
405
406 * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions.
407 * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first
408 char to reg_prefix instead of to 'r'.
409 (calcop): Change calls to get_reg.
410 (calcop): Handle new case 'x' to set reg_prefix.
411 (calcop): Set reg_prefix to 'r' after each call to get_reg.
412 (cmpslot): Add 88110 conditions.
413
414 * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency.
415
416 * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer
417 before returning.
418
419 * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics
420 adjacent; mov.s and mov.d swapped.
421 (m88k_opcodes): Fix typo `r2' -> `2'.
422
a00ee522
DZ
423Fri Jun 4 15:59:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
424
425 * config/h8300.c: Support for H8/300-H opcodes.
426
427 * config/obj-coffbfd.c (w_strings): String table length is 4
428 bytes, no matter what the host int size is.
429
430 * configure.in (alpha-*-osf*): New.
431
68ad4c92
ILT
432Fri Jun 4 07:51:18 1993 Ian Lance Taylor (ian@cygnus.com)
433
47fcc4f5
ILT
434 * configure.in (mips-*-ecoffl*): New target; use ecoff and
435 mips-lit.
436 (mips-*-ecoff*): Added trailing '*'.
437
68ad4c92
ILT
438 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
439 first FDR in a file to be zero.
440
75776695
KR
441Thu Jun 3 14:09:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
442
b7067d7f
KR
443 * Makefile.in (VERSION): Jump to 2.1.4.
444
75776695
KR
445 * config/ho-hppabsd.h: New file, from Peter Hoogenboom.
446
447 * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for
448 ECOFF format.
449
450Tue Jun 1 15:21:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
451
452 * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a
453 separate '851 mmu.
454
455 * config/obj-elf.c, config/obj-elf.h: Update for new type, macro,
456 and routine names. Assuming 32 bits for now.
457
458 * config/obj-elf.c (elf_frob_file): Look for macro
459 elf_tc_final_processing_hook, instead of assuming a function
460 always exists.
461 * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from
462 tc_final_processing_hook.
463 * config/tc-hppa.h (elf_tc_final_processing_hook): Use it.
464
465 * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros
466 moved here from obj-elf.h.
467 * config/obj-elf.h: Don't include CPU-specific header files.
468
469Sun May 30 16:49:37 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu)
470
471 * configure.in: configurations should match on 'hppa*' not 'hppa'.
472
473 * read.c: Add support for HPPA assembly language syntax (denoted
474 with '#ifdef TC_HPPA').
475
476 * symbols.c: Add support for HPPA assembly language syntax (denoted
477 with '#ifdef TC_HPPA').
478
479 * write.c (write_contents): Add support for HPPA-style
480 relocations.
481
482 * config/obj-elf.c: Stab symbols weren't written properly.
483 (obj_elf_version):
484 (obj_elf_desc):
485 (obj_elf_write_symbol):
486 (obj_elf_write_symbol_p):
487 (obj_elf_frob_symbol):
488 (elf_stab_symbol):
489 (elf_frob_file):
490
491 * config/tc-hppa.c: Support for HPPA symbol extension sections.
492 Remove some unused code. Support for HPPA assembly language
493 syntax.
494
495 * app.c:
496
497 * symbols.c:
498
499 * config/obj-elf.h:
500 (obj_write_symbol):
501 (obj_frob_file):
502 (elf_tc_symbol):
503 (elf_tc_make_sections):
504
505 * config/tc-hppa.h:
506
507Sun May 30 21:44:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
508
509 * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume
510 hash_new will have succeeded if it returns.
511 * config/tc-a29k.c (md_begin): Likewise.
512
513 * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is
514 const.
515 (mode_from_disp_size, opcode_suffic_to_type): Now inline under
516 gcc.
517 (fits_in_{signed,unsigned}_{byte,word}): Likewise.
518
519 * expr.c: Delete register declarations; gcc ignores them anyways.
520
521Fri May 28 19:03:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
522
523 * hash.c (hash_new): Use xmalloc, since many callers don't check
524 for failure.
525
49864cfa
KR
526Thu May 27 13:02:15 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
527
528 * frags.c (zero_address_frag, bss_address_frag): These are
529 external.
530
531 * tc.h (md_reloc_size): This is const.
532 * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c
533 (md_reloc_size): Now const.
534
535 * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete
536 trailing commas.
537 * as.h (enum _segT): Ditto.
538
539 * struc-symbol.h (N_TYPE_seg): This should be const.
540
541Thu May 27 11:43:59 1993 Michael Meissner (meissner@osf.org)
542
543 * config/obj-ecoff.c (add_file): Cast file_name to char * in
544 listing_source_file call.
545
546 * config/obj-elf.c (elf_stab_symbol_string): Cast first argument
547 of subseg_new call to eliminate const attribute.
548 (obj_elf_stab): Ditto.
549 (obj_symbol_new_hook): Cast first argument of bzero call to char *.
550
551 * read.c (s_align_bytes): Properly record alignment.
552
553 * expr.c (__): Undefine __ macro before use, since OSF/1 uses it
554 for the prototype/no prototype macro.
555
556 * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be
557 void.
558
559 * as.h (relax_stateT enum): Delete trailing comma.
560
9a7d824a
ILT
561Thu May 27 11:07:50 1993 Ian Lance Taylor (ian@cygnus.com)
562
563 * app.c (do_scrub_begin): Let line_comment_chars override
564 comment_chars.
565 (do_scrub_next_char): If a line comment character is not at the
566 start of a line, treat it as a comment character if it is one.
567 For a CPP line comment use pseudo-op .appline rather than .line.
568 * input-scrub.c (logical_input_line): Make int rather than
569 unsigned.
570 (input_scrub_push, input_scrub_begin): Initialize
571 logical_input_line to -1 rather than 0.
572 (bump_line_counters): Increment logical_input_line.
573 (new_logical_line): If line_number is -2, decrement
574 logical_input_line.
575 (as_where): Use logical_input_line even if it is 0.
576 * read.h (s_app_file prototype): Now takes an int argument.
577 * read.c (potable): Make .appfile call s_app_file with 1. New
578 .appline pseudo-op calls s_app_line.
579 (s_app_file): If .appfile, call new_logical_line with -2 to
580 account for newline inserted by do_scrub_next_char. If listing,
581 call listing_source_file.
582 (s_app_line): New function to handle fake pseudo-op .appline.
583 * config/obj-coff.c (obj_pseudo_table): Make .appline call
584 obj_coff_ln.
585 (obj_coff_ln): Added argument to indicate whether .appline.
586 * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
587 obj_coff_ln.
588 (obj_coff_ln): Added argument to indicate whether .appline.
589 * config/tc-mips.c (s_file): Pass argument to s_app_file.
590
61f14fb0
ILT
591Tue May 25 11:59:07 1993 Ian Lance Taylor (ian@cygnus.com)
592
593 * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast.
594
595Thu May 20 19:14:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
596
597 * config/tc-m68k.c (md_apply_fix_2): Straighten out check for
598 invalid values.
599
6eef4543
SC
600Wed May 19 07:33:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
601
602 * config/tc-h5000.c (build_bytes): Understand @rd mode and build
603 relocations correctly.
604
f8f61478
KR
605Mon May 17 15:06:26 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
606
6eef4543
SC
607 * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because
608 it's wrong.
609
f8f61478
KR
610 * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn
611 if value is out of range.
612
613 Patch from Minh Tran-Le:
614 * config/tc-i386.c (i386_operand): For in/out port register used
615 as base reg, include InOutPortReg in operand type.
616 (MATCH): Accept overlap value of InOutPortReg.
617
618Mon May 17 09:29:34 1993 Ian Lance Taylor (ian@cygnus.com)
619
620 * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab):
621 Add calls to listing routines to produce combined source/assembler
622 listings.
623 (obj_ecoff_stab): Create a file pointer if none used yet.
624 (ecoff_frob_file): Set symcount to correct value.
625
626Fri May 14 06:53:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
627
628 * Makefile.in (VERSION): Bump to version 2.1, in preparation for
629 release.
630
631 * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE):
632 Define in terms of constants, not C structure sizes.
633
634 * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files.
635
636Thu May 13 17:01:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
637
638 * config/obj-aout.c (obj_header_append): Don't define if it's
639 defined as a macro.
640 * config/obj-hp300.h (obj_header_append): Define it as a macro.
641 * config/obj-hp300.c (hp300_header_append): New function.
642
643 * Makefile.in (distclean): Don't bother cleaning up doc files;
644 they aren't going to be in this directory.
645
204ff785
ILT
646Thu May 13 07:51:35 1993 Ian Lance Taylor (ian@cygnus.com)
647
f8f61478
KR
648 * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute
649 symbols.
650
204ff785
ILT
651 * tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
652 * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
653
65824763
KR
654Mon May 10 06:01:12 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
655
204ff785
ILT
656 * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with
657 initialization.
658
65824763
KR
659 * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff.
660
21bb48b9
ILT
661Wed May 5 14:00:49 1993 Ian Lance Taylor (ian@cygnus.com)
662
663 * config/tc-mips.c (macro): Correct floating point double word
664 loads and stores for big endian target.
665
e7c2f943
KR
666Wed May 5 08:39:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
667
668 * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_*
669 calls. Deleted some unused code.
670 * config/obj-coff.c: Likewise.
671
672 ELF support, mostly contributed by Utah:
673 * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line,
674 obj_elf_type): Rewrite.
675 (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol,
676 obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size):
677 New functions.
678 (obj_elf_ident): Dummy.
679 * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol,
680 TARGET_SYMBOL_FIELDS): New macros.
681 (gdb_section): New variable decl.
682
683 * config/tc-i386.c (md_atof): Return zero, not empty string, on
684 success.
685
686 BFD_ASSEMBLER conditional changes:
687 * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header):
688 Don't define these.
689 (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions.
690 (fetch_coff_debug_section): Ditto.
691 (obj_coff_endef): Call fetch_coff_debug_section.
692 (struct line_no): New type.
693 (c_symbol_merge): New way for copying aux fields.
694 (c_dot_file_symbol): Put symbol in absolute section, and set flag
695 BSF_DEBUGGING.
696 (function_lineoff): New symbol.
697 (function_lineoff, text_lineno_number, our_lineno_number,
698 lineno_lastP): Don't define.
699 (c_line_new): Don't define.
700 (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh,
701 placeholders, until
702 line-number recording gets implemented.
703 (obj_new_symbol_hook): New code for handling aux fields.
704 (add_lineno, add_linesym): New functions.
705 (obj_coff_ln): Call add_lineno, not c_line_new.
706 (obj_coff_endef): New code for handling symbol names. New lineno
707 code. Look for section name "*DEBUG*" for debugging section.
708 (align, coff_check_file_symbols, obj_coff_section,
709 coff_frob_file): New functions.
710 * config/obj-coff.h: Reordered some includes.
711 (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg,
712 DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't
713 define these.
714 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros.
715 (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing
716 aux entries. Most SA_* macros now use it unconditionally.
717 (S_*): Use `bsym' field, and access BFD private data.
718 (SF_*): Use `sy_flags' symbol field for most of these.
719 (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't
720 define.
721 (*_section_header): Don't define.
722 * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed
723 interface.
724 (tc_gen_reloc) [I386COFF]: New function.
725 (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define.
726 * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New
727 macros.
728
729 * config/obj-coff.c (stack_init): Don't do assignments inside
730 conditions.
731 (obj_coff_def): Simplified handling of symbol name a bit.
732 (tag_insert): Name argument is now pointer to CONST.
733 (obj_crawl_symbol_chain): Commented out.
734
735 * config/obj-coff.h: Use PARAMS macro in prototypes.
736
737 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect
738 through frchainP pointer if it is null.
739
740 * configure.in: Warn if BFD mode is explicitly turned off but is
741 required by specified target.
742 (mips ecoff targets): Don't need to set bfd_gas here; it gets
743 taken care of later.
744
745 * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward
746 field.
747 (yank_symbols): Merge symbols only if sy_forward is null.
748
749 * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already
750 defined.
751
752 * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not
753 pointer.
754 * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto.
755
756 * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting
757 with "." is a local label.
758
759 * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config
760 files.
761
762 * config/te-linux.h, config/te-386bsd.h: New config files.
763 * configure.in (i386-*-linux, i386-*-bsd): Use them.
764 * config/tc-i386.h (TARGET_FORMAT): Select format based on target
765 environment.
766 (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux.
767
5d6cfa60
ILT
768Wed May 5 13:14:01 1993 Ian Lance Taylor (ian@cygnus.com)
769
770 * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
771 to want it that way.
772 (ecoff_build_symbols): Turn local st_Proc symbols into
773 st_StaticProc symbols. Set index field of external st_Proc and
774 st_staticProc symbols correctly.
775 * config/tc-mips.h (NO_LISTING): Don't define. People might want
776 listings.
777
e7c2f943
KR
778Tue May 4 21:22:54 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
779
780 * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New
781 files.
782 * configure.in (m68k-*-hpux): Use them.
783
784 * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if
785 defined, otherwise zero.
786
787 * config/aout_gnu.h (OMAGIC): Don't define if already defined.
788
5d6cfa60
ILT
789Mon May 3 15:59:32 1993 Steve Chamberlain (sac@thepub.cygnus.com)
790
791 * config/tc-sparc.c (sparc_ip): Allow any abs expression as an
792 address space number.
793
794Wed Apr 28 19:11:22 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
795
796 * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all.
797
798 * config/tc-a29k.c: Include ctype.h.
799 (define_some_regs): Added special-purpose registers for 29050.
800
e7c2f943
KR
801 * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/".
802
803 * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here.
804 (change_to_section): Set it here instead.
805
a1387260
ILT
806Wed Apr 28 13:40:29 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
807
808 * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
809 hasn't been seen yet.
810 (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
811
4a1bbbe7
SC
812Mon Apr 26 18:29:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
813
814 * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
815 SH.
816
be2f6bd6
ILT
817Mon Apr 26 12:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
818
819 * expr.c (operand): Fix unary plus operator (previously was the
820 same as '~' operator!).
821
822Wed Apr 21 00:20:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
823
824 * write.c (cvt_frag_to_fill): Define even if BFD is defined.
825 (write_object_file): Do define if BFD_ASSEMBLER. Invoke
826 obj_check_file_symbols if defined. Call verify_symbol_chain_2
827 instead of open-coding it. Fix some bugs in patching up symbol
828 chain.
829 (relax_segment): Make some code we "ought to be able to" use for
830 all targets no longer conditionalized on ns32k target; instead, do
831 it always, and if the appropriate conditions fail, abort.
832
833 * symbols.c (DEBUG): Enabled.
834 (symbol_new): Make sure bfd_make_empty_symbol works.
835 (verify_symbol_chain_2): New funcion; takes one symbol as
836 argument, anywhere in the chain.
837 (dollar_label*): Use default initializers.
838
839 * as.c (perform_an_assembly_pass): Call md_begin here...
840 (main): ...and not here.
841
842 * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out.
843 (tc_frob_symbol): New macro: Get rid of symbols in reg_section.
844
845 * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER.
846 (add_fix, add_frag): Now functions instead of macros.
847 (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num,
848 s_data1, s_data2, s_bss): Use new *_section names, for
849 compatibility with BFD_ASSEMBLER mode; rewrite switch statements
850 to handle non-integral segT.
851 (tc_coff_fix2rtype, tc_aout_fix_to_chars,
852 tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER.
853 (tc_gen_reloc): New routine for BFD_ASSEMBLER.
854 (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to
855 md_apply_fix_2; new md_apply_fix definition varies interface
856 depending on BFD_ASSEMBLER.
857 (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section
858 names.
859
860 * config/obj-vms.c: Include config.h.
861 (version_string): Delete declaration.
862 (Write_VMS_MHD_Records): Use GAS_VERSION instead.
863 (vms_resolve_symbol_redef): New function, taken from VMS code in
864 symbols.c.
865 (_doprnt): Deleted.
866 (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct,
867 VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix,
868 VMS_Psect_Spec): Fixed to compiler under traditional C.
869 * config/obj-vms.h: Use PARAMS macro.
870 (vms_resolve_symbol_redef): Declare.
871 (RESOLVE_SYMBOL_REDEFINITION): New macro.
872 * symbols.c (colon): Remove some VMS-specific code, look for
873 RESOLVE_SYMBOL_REDEFINITION macro instead.
874
875 * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc
876 instructions.
877
878 * config/tc-i386.c: Reordered some functions so inlining might
879 work. Use PARAMS in function declarations.
880 (reloc): New routine.
881 (md_assemble): Rearrange switch statements to work with
882 non-integral segT.
883
884 * struc-symbol.h [BFD_ASSEMBLER]: Undefine
885 SYMBOLS_NEED_BACKPOINTERS before defining it.
886
887 * subsegs.c (subseg_new_rest): Now static.
888
889 * read.c (pseudo_set): Better error message for difference of
890 symbols in different frags.
891
892 * Makefile.in (check): Pass down some new variables, indicating
893 pathname or program name for cc, nm, objdump.
894
895 * as.h (OUTPUT_FLAVOR): New macro.
896 * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR.
897
898 * configure.in: Initialize bfd_gas properly. Warn that ELF
899 support is incomplete.
900
901Thu Apr 15 22:39:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
902
903 * read.c (float_cons): Accept null pointer return from md_atof.
904 * config/tc-m68k.c (md_atof): Return null for success.
905 * config/tc-sparc.c (md_atof): Ditto.
906
97a6070c
RP
907Thu Apr 15 16:04:39 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
908
909 * doc/as.texinfo: formatting and comment cleanups; show SPARC
910 alternative options in same style as other machines; simplify some
911 conditional use; include GPL as separate file (from texinfo dir)
912
913 * doc/Makefile.in: (as.info) include directory containing GPL in
914 makeinfo search path
915
916 * doc/h8.texi: new file; conditional settings for GAS manual
917 on Hitachi chips
918
919Tue Apr 13 15:31:40 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
920
921 * doc/as.texinfo: mention SPARC architecture options.
922
be2f6bd6
ILT
923Fri Apr 9 17:43:11 1993 Ken Raeburn (raeburn@cygnus.com)
924
925 * configure.in: Rearranged whitespace in per-host/per-target
926 sections. Added hooks for dropping in HPPA support (not included
927 yet). Separate out overrides of variables based on target format
928 and bfd-gas selection from actual target-specific commands. Add
929 error message for recognized but unsupported format name.
930
349f20de
ILT
931Fri Apr 9 09:05:47 1993 Ian Lance Taylor (ian@cygnus.com)
932
933 * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
55ff56bd 934 symbolic header match cline in FDR; the native linker seems to
349f20de
ILT
935 want that.
936
5316696f
DZ
937Thu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
938
939 * doc/Makefile.in: as.texinfo is in $(srcdir). Use
940 $(srcdir)/as.texinfo explicitly in several places
941
8ac18b21
RP
942Thu Apr 8 15:15:02 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
943
944 * doc/Makefile.in: update dvi, clean targets for new source
945 file structure
946
d565311f
ILT
947Thu Apr 8 12:52:46 1993 Ian Lance Taylor (ian@cygnus.com)
948
949 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
950 rather than undefining know.
8ac18b21 951 * configure.in: Match ultrix*, not just ultrix.
d565311f 952
0742a6fd
RP
953Wed Apr 7 20:18:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
954
955 * doc/as.texinfo: converted conditional markup to use new
956 Texinfo facilities, avoiding m4.
957
958 * doc/as-all.texinfo, all.m4, pretex.m4: deleted.
959
960 * doc/Makefile.in: recast doc configuration to use a link to an
961 included texinfo file.
962
963 * doc/all.texi: settings for generic form of documentation.
964
965Tue Apr 6 11:56:21 1993 Ian Lance Taylor (ian@cygnus.com)
966
967 * read.c (cons): Zero out frag when creating reloc.
968
367fc835
ILT
969Mon Apr 5 09:41:58 1993 Ian Lance Taylor (ian@cygnus.com)
970
84e4920f
ILT
971 * config/tc-mips.c (gp_reference): Certain magic symbols can never
972 be referenced off the GP register.
973
367fc835
ILT
974 * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
975 when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
976 LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
977
978 * config/te-irix.h: New file; irix needs a different LOCAL_LABEL
979 definition from other MIPS targets.
980 * configure.in (mips-*-irix): Use emulation irix.
981
dd4227d3
SC
982Sun Apr 4 15:21:09 1993 Steve Chamberlain (sac@thepub.cygnus.com)
983
984 * config/tc-h8500.c: Get relax size of branch instructions right,
985 (get_operand): Parse @sp+ correctly.
986
be2f6bd6
ILT
987Fri Apr 2 15:59:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
988
989 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include
990 COFF section header field.
991
992 * configure.in: Print error message if host or target is not
993 supported.
994
995 * configure.in: If with-bfd-assembler, use obj-coff instead of
996 obj-coffbfd.
997
998 * config/ho-generic.h: Include string.h.
999
ed364bb6
ILT
1000Fri Apr 2 08:54:57 1993 Ian Lance Taylor (ian@cygnus.com)
1001
0433135d
ILT
1002 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
1003 '$' as local, for any object file format.
1004
477b4b04
ILT
1005 * config/tc-mips.c (macro): Optimizations to branching code and a
1006 couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph
1007 Campbell).
1008
ed364bb6
ILT
1009 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
1010 * configure.in (mips-sgi-irix*): Set gas_host to irix.
1011
670a50eb
ILT
1012Wed Mar 31 17:53:54 1993 Ian Lance Taylor (ian@cygnus.com)
1013
1014 * subsegs.c (subseg_new): Set output_section of new section.
1015 * as.c (perform_an_assemly_pass): Don't set output_section here.
1016 * expr.c (expr_part, expr): Turn off section assertions for ECOFF,
1017 since it has additional sections.
1018 * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
1019 not bss_section.
1020 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
1021 ecoff_undefined field.
1022 * config/obj-ecoff.c (obj_symbol_new_hook): Initialize
1023 ecoff_undefined field.
1024 (add_file): If using stabs, just output a stabs symbol rather than
1025 creating a new fdr.
1026 (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
1027 it with get_absolute_expression, rather than skipping it by hand.
1028 (obj_ecoff_loc): If using stabs, just output a stabs symbol rather
1029 than ECOFF line number information.
1030 (obj_ecoff_stab): Accept non-zero values for stabs line number.
1031 (ecoff_build_symbols): Set ifilesym correctly. Set storage class
1032 to small, undefined and/or readonly sections if appropriate.
1033 Don't output symbol names containing \001 characters.
1034 (ecoff_frob_file): Make sure at least one fdr is output.
1035 * config/tc-mips.h: Define TC_MIPS.
1036 * config/tc-mips.c (g_switch_value): New static variable.
1037 (md_assemble): Set gp size of output BFD.
1038 (gp_reference): New function; returns 1 if expression can be
1039 accesssed via gp. Always returns 0 if not using ECOFF.
1040 (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
1041 possible.
1042 (macro): Generate sequences using gp if possible.
1043 (md_parse_option): Ignore -EL and -EB. Parse -G.
1044 (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
1045 (s_change_sec): Handle .rdata and .sdata for ECOFF.
1046 (s_extern): Mark symbol as external. Set ecoff_undefined field.
1047
2b1b5697
KR
1048Tue Mar 30 10:11:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1049
670a50eb
ILT
1050 * output-file.c (output_file_create): Don't call as_perror for
1051 filename rejected by application.
1052
1053 * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink
1054 the output file.
1055
4b061a2a
KR
1056 * doc/as.texinfo: Don't use @value in node names for the moment;
1057 references don't appear to work right.
1058
4478def8
KR
1059 * as.h (const, volatile): Put these definitions back, and use
1060 them.
1061
2b1b5697
KR
1062 * doc/as.texinfo: First pass at using new texinfo features --
1063 variables, conditional tests. Far from complete.
1064
1065Mon Mar 29 16:05:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1066
1067 * read.c: Temporary hack to handle some 64-bit constants. This
1068 should be redone later.
1069 (target_big_endian): Declare.
1070 (big_cons): If it's set, reverse order of bytes being copied.
1071 * config/tc-sparc.c (md_begin): Set target_big_endian.
1072
1073 * read.c (s_ignore): Delete declaration of is_end_of_line.
1074
1075 * config/obj-coffbfd.c (yank_symbols): Build list of file symbol
1076 forward pointers properly.
1077
e02eaa59
SC
1078Mon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1079
1080 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
1081 wasn't being stored into scnhdr.
1082 * config/obj-coffbfd.h: Add prototype of s_get_segment.
1083 * read.c (TC_START_LABEL): Default definition.
1084 (read_a_source_file): Use TC_START_LABEL macro to work out
1085 if a label has been seen.
1086
543d88e4
ILT
1087Mon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com)
1088
c39b3eba
ILT
1089 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
1090 the bottom (make expands variables in dependencies when the
1091 dependencies are read, not when they are used).
1092
543d88e4
ILT
1093 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
1094 a29k .bss section; the mondfe program doesn't like it.
1095
2b1b5697
KR
1096Sun Mar 28 08:12:53 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1097
1098 * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of
1099 const.
1100 (current_architecture): Don't need initializer.
1101
1102Fri Mar 26 08:12:48 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1103
1104 * doc/none.m4: Define Z8000.
1105 * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the
1106 texinfo file before recreating it.
1107 (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in
1108 this directory.
1109 (srcdir): Delete second, bogus definition.
1110 (as.info): Look for as-*.texinfo in current directory rather than
1111 in $(srcdir).
1112 (as.dvi): Ditto.
1113 (dvi): New rule.
1114 * doc/configure.in: Create links to all as-*.texinfo files in the
1115 source directory, if that's not the current directory.
1116
1117 * configure.in (per-host): Accept MIPS host with BSD version
1118 number.
1119 (per-target): Classify i486 as i386. Use generic cpu_type instead
1120 of target_cpu in selecting format etc.
1121
1122 * app.c (do_scrub_next_char): Use .appfile, not .app-file.
1123 * read.c (potable): Change .app-file to .appfile.
1124
1125 * config/ho-decstatn.h: Renamed from ho-decstation.h.
1126 * configure.in: Adjusted.
1127
1128 * config/obj-bfd-sunos.*: Unused; deleted.
1129
1130 * Makefile.in (version.c, vers-stamp): Deleted.
1131 (config.h): Define GAS_VERSION.
1132 * as.c (version_string): Deleted declaration.
1133 (main): Look for GAS_VERSION instead.
1134
1135 * doc/as.texinfo: Updated description of -a* (listing) options,
1136 and describe how to pass them through from gcc.
1137
1138 * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or
1139 process relocs if there aren't any relocs to process. Avoids
1140 malloc/free bug on SCO too.
1141
1142 * as.h: Move local include files below system include files, to
1143 avoid some redefinition complaints on some systems.
1144 (const, volatile): Don't need these conditionally defined if we
1145 use CONST and VOLATILE from ansidecl.h.
1146 (seg_name): Use CONST, not const.
1147
543d88e4
ILT
1148Fri Mar 26 10:22:04 1993 Ian Lance Taylor (ian@cygnus.com)
1149
1150 * config/tc-mips.c: Reindented to GNU standards.
1151
2c19a57c
ILT
1152Thu Mar 25 08:59:14 1993 Ian Lance Taylor (ian@cygnus.com)
1153
61001d96
ILT
1154 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
1155 (fixup_segment): Add a29k special case; the linker is not prepared
1156 to see a segment offset here.
1157
2c19a57c
ILT
1158 * app.c (do_scrub_next_char): Added new state, 10, modifying state
1159 9 to only keep a space in between identifier characters.
1160
afcc637a
DZ
1161Wed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
1162
2d4bef5e
DZ
1163 * Makefile.in: add dvi target; as-$(config).texinfo might live in
1164 srcdir, might be in objdir.
afcc637a
DZ
1165
1166 * doc/Makefile.in: dvi depends on as.dvi
1167
80c8fd72
DZ
1168Mon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1169
1170 * Makefile.in: add installcheck target
1171
1369949e
ILT
1172Mon Mar 22 10:19:00 1993 Ian Lance Taylor (ian@cygnus.com)
1173
1174 * config/tc-mips.c (macro): Use $AT for any floating point load.
1175
63cdddad
KR
1176Sat Mar 20 12:50:51 1993 Ken Raeburn (raeburn@urth.cygnus.com)
1177
1178 * config/tc-m68k.c (m68k_ip): For operand type 'M', reject
1179 bignums, but don't emit error message.
1180
69498fa2
JW
1181Fri Mar 19 21:02:19 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
1182
1183 * Makefile.in (targ-cpu.o): Depend on config.h.
1184
f6a91cc0
ILT
1185Wed Mar 17 16:44:06 1993 Ian Lance Taylor (ian@cygnus.com)
1186
1187 * app.c (do_scrub_next_char): Added new state, 9, to avoid
1188 dropping a space immediately following an identifier.
1189 * expr.c, write.c: Rewrote assert expressions to not use multiple
1190 lines; I don't think that can be done portably.
1191 * config/tc-mips.c (macro): Use $AT if target register is zero in
1192 load instruction, which it can be for a floating point load.
1193
a36f6645
ILT
1194Mon Mar 15 12:17:28 1993 Ian Lance Taylor (ian@cygnus.com)
1195
3d3c5039
ILT
1196 * write.c (write_contents): Compute the relocs before writing out
1197 the section contents.
1198 * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
1199 symbol table and values right.
1200 * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
1201 with $L is local.
1202 * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
1203 by the section vma.
1204
1205 * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
1206 z8k-opc.h, not z8k.h.
1207
a36f6645
ILT
1208 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf
1209 symbol.
1210
2a697fa4
DZ
1211Fri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1212
1213 * configure.in: recognize sparc-sun-solaris2* instead of -solaris2
1214
f2f7d044
ILT
1215Fri Mar 12 12:00:07 1993 Ian Lance Taylor (ian@cygnus.com)
1216
1217 * expr.c, write.c: Ultrix native 4.2 cc requires assert condition
1218 to be on a single line.
1219
ed099874
KR
1220Thu Mar 11 17:56:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1221
1222 * Makefile.in (config.h): Create file, writing out definitions of
1223 target cpu, alias, and canonical name.
1224 (ALL_CFLAGS): No longer define TARGET_CPU.
1225
1226 * Makefile.in (check): Print a message, instead of quitting
1227 silently.
1228
1229 * as.c (main): Don't catch any signals, for now.
1230
1231 * version.c: Deleted.
1232 * Makefile.in: Generate it, putting in only the version number
1233 itself.
1234 (VERSION): New variable.
1235 * as.c: Include config.h.
1236 (main): Reformatted version string. Include target alias. Don't
1237 print if not requested (i.e., unknown -v argument).
1238
1239 * as.c (stralloc): Deleted.
1240 (main): Call strdup instead.
1241
1242 * configure.in: Handle all 68300 series chips.
1243 * config/tc-m68k.c: Include config.h.
1244 (md_assemble): Assume TARGET_CPU is defined. Accept some 68300
1245 series cpus as defaults.
1246 (md_parse_option): Accept some m68300 series CPUs as defaults.
1247
1248Wed Mar 10 17:41:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1249
1250 * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if
1251 not already defined.
1252 (main, got_sig): Use them.
1253 * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default
1254 values.
1255
1256Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
1257
1258 * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF
1259 support.
1260
1261 * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs.
1262 OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN.
1263 (struct loc, struct proc, struct file): Moved to tc-mips.c within
1264 #ifndef OBJ_ECOFF block, since ECOFF uses different versions.
1265 * config/tc-mips.c: Rearranged for ECOFF support. Added
1266 prototypes for all static functions. Moved existing minimal
1267 debugging format support info #ifndef OBJ_ECOFF blocks.
1268 (macro_build_lui): Eliminated sign_extend argument, because ECOFF
1269 does not support a non sign extended high 16 bits reloc. Adjusted
1270 all callers accordingly.
1271 (tc_get_register): Renamed from get_register, and made non-static.
1272
1273 * config/mips-big.mt, config/mips-lit.mt: New files. Define
1274 TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN,
1275 respectively.
1276 * configure.in (mips-*-bsd*): Use gas_target mips-lit.
1277 (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using
1278 obj_format ecoff and gas_target mips-lit or mips-big.
1279
c5d4bc88
KR
1280Tue Mar 9 07:43:01 1993 Ken Raeburn (raeburn@cygnus.com)
1281
1282 * version.c: Bump to version 2.0.1.
1283
fefba3a5
ILT
1284Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
1285
1286 * write.c (chain_frchains_together): Check that seg_info (section)
1287 is not NULL.
1288 (write_object_file): Call obj_frob_file after setting the symbols,
1289 not before.
1290
2b1b5697
KR
1291Tue Mar 9 00:00:00 1993 Ken Raeburn (raeburn@cygnus.com)
1292
1293 * Version 2.0 released.
1294
fefba3a5
ILT
1295Mon Mar 8 14:57:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1296
1297 * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only.
1298
1299Fri Mar 5 09:05:55 1993 Ian Lance Taylor (ian@cygnus.com)
1300
1301 * read.h: Define stringer here.
1302 read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these
1303 places.
1304
bf449293
SC
1305Thu Mar 4 11:52:23 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1306
1307 * read.c (s_space): Multiply repeat count by mult, not fill.
1308
9471a360
KR
1309Thu Mar 4 05:20:42 1993 Ken Raeburn (raeburn@cygnus.com)
1310
1311 * read.c: Include ctype.h.
1312
1101551c
KR
1313Wed Mar 3 10:41:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1314
1315 Patches from Eric Youngdale:
1316 * make-gas.com: Find obstack.obj if it's not in the current
1317 directory.
1318 * read.c (s_ignore): Don't declare is_end_of_line. It's
1319 redundant, and triggers a VMS gcc compiler bug.
1320
1321 * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes
1322 current segment as an argument. (Ignored in all cases but VMS.)
1323 All callers and definitions changed.
1324
5e4cddb7
ILT
1325Tue Mar 2 11:56:19 1993 Ian Lance Taylor (ian@cygnus.com)
1326
1327 * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING
1328 case compile again.
1329
f3ca2a64
KR
1330Tue Mar 2 08:53:34 1993 Ken Raeburn (raeburn@cygnus.com)
1331
1332 * config/tc-m68k.c (isbyte): Accept all values from -255 to +255,
1333 so "~0x80" won't be rejected.
1334
1335 * config/obj-elf.c: No longer include elf/reloc.h.
1336 (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section.
1337 (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out
1338 routines.
1339 (obj_elf_xstab): New routine.
1340 (obj_elf_set_size): Call as_warn, not fprintf. Pass desired
1341 argument to s_ignore. Put "#if 0" around unused code.
1342 (obj_pseudo_table): Use s_ignore instead of do-nothing routines.
1343 Call elf_xstabs for .stabs and .xstabs operators.
1344
1345 * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc".
1346
1347 * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are
1348 present.
1349
1350 * configure.in: mips-bsd configuration was missing format spec.
1351 Should use aout.
1352
1353 * Makefile.in (Makefile): Depends on configure.in.
1354
1355 * config/tc-mips.c (append_insn): Don't check for alignment of
1356 frag in memory; alignment of instructions in section is a separate
1357 matter.
1358
1359 * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI
1360 C availability.
1361
1362 * listing.h: Always provide function declarations, not macros, so
1363 pcc won't lose.
1364
7687d89b
JG
1365Tue Mar 2 00:50:43 1993 John Gilmore (gnu@cygnus.com)
1366
1367 * CONTRIBUTORS: Update Gilmore entry.
1368
1369Wed Feb 24 14:58:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1370
1371 * frags.c (frag_init): New function.
1372 (zero_address_frag, bss_address_frag): Now initialized at run
1373 time.
1374 * as.c (main): Call frag_init.
1375
160b7f0f
ILT
1376Wed Feb 24 10:32:42 1993 Ian Lance Taylor (ian@cygnus.com)
1377
1378 * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case:
1379 Don't unget ch2 if we didn't get it.
1380
0cca30f3
KR
1381Wed Feb 24 04:14:07 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1382
1383 * doc/Makefile.in (TEXIDIR): Updated for new layout.
1384
1385 * config/tc-sparc.c (s_common): Add support for ELF version.
1386 (tc_gen_reloc) [BFD_ASSEMBLER]: New function.
1387 * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]:
1388 New macros.
1389 (md_convert_frag): New macro.
1390
1391 * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a
1392 symbol, fix the offset so "+2" isn't required.
1393
1394 * config/tc-i960.c (line_comment_chars, line_separator_chars):
1395 Define as common/bss.
1396 (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C
1397 initializers are sufficient.
1398
1399 * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd.
1400 (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out".
1401 (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros.
1402 (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro.
1403 * config/obj-aout.c: Use PARAMS macro for declarations. Remove
1404 "IGNORE_DEBUG" conditional, since both branches are identical.
1405 Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly
1406 referencing symbol structure members.
1407 (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function.
1408
1409 * as.h (struct frag): Reordered a couple of fields for better
1410 packing.
1411
1412 * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the
1413 section info.
1414 (write_contents) [BFD_ASSEMBLER]: New function.
1415 (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call
1416 fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call
1417 obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined.
1418 (fixup_segment): Make sure common-section symbols get treated the
1419 same as undefined symbols.
1420 (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type
1421 bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from
1422 section info.
1423 * write.h (fix_new): Update prototype.
1424
1425 * tc.h (md_operand, md_convert_frag, tc_headers_hook,
1426 md_section_align, md_undefined_symbol): Don't provide prototypes
1427 if these are defined as macros.
1428 (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and
1429 section passed.
1430
1431 * symbols.c (symbol_new): Argument NAME is now pointer to const.
1432 Simplified STRIP_UNDERSCORE code. Remove assumptions about null
1433 pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new
1434 BFD symbol.
1435 (colon): Display other/desc fields of redefined symbol only if
1436 S_GET_OTHER and S_GET_DESC are defined.
1437 (symbol_make): Argument NAME is now pointer to const.
1438 (symbol_find, symbol_find_base): Likewise.
1439 (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions.
1440 * symbols.h: Fix prototypes for new const arguments. Add
1441 prototypes for BFD_ASSEMBLER S_* functions.
1442
1443 * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code
1444 for changing to an existing section.
1445 (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new,
1446 called by subseg_new and subseg_set.
1447 (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section,
1448 given section name and subseg number.
1449 (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly
1450 new section/subsection.
1451
1452 * read.c: Don't include ctype.h.
1453 (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32
1454 for now; should be machine-dependent.
1455
1456 * configure.in: Accept *-*-elf and *-*-solaris* as ELF format
1457 targets, forcing BFD use.
1458
1459Wed Feb 17 18:59:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1460
1461 * config/tc-sparc.c: Use PARAMS macro for static function
1462 declarations. Use BFD_RELOC_ macros everywhere, with
1463 compatibility macros declared for non-BFD mode.
1464 (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type
1465 instead of enum reloc_type.
1466 (emit_sparc_reloc): Commented-out function deleted.
1467 (md_convert_frag): Deleted.
1468 (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER.
1469 (md_apply_fix): Changed calling sequence (conditionally) for BFD
1470 version.
1471 * config/tc-sparc.h (md_convert_frag): New macro.
1472
1473 * config/obj-aout.c (obj_aout_stab): Refer to undefined_section,
1474 not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead
1475 of referencing fields directly.
1476
1477 * write.c (cvt_frag_to_fill): New function; extracted from
1478 write_object_file.
1479 (write_object_file) [! BFD_ASSEMBLER]: Call it.
1480 (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section
1481 and set its size and flags.
1482
1483 * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some
1484 fields with BFD equivalents. Turn on back-pointers, and add
1485 target-specific fields at end.
1486
1487Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
1488
1489 * config/obj-coffbfd.c (fill_section): Don't set vaddr here.
1490 (write_object_file): Set it here instead, so that fixup_segment
1491 can see the correct value.
1492
1493Mon Feb 8 13:56:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1494
1495 * write.c (write_object_file): Check for errors and warnings and
1496 bail out before processing contents.
1497 (chain_frchains_together_1): New function, does most of the work
1498 of remove_subsegs.
1499 (chain_frchains_together) [BFD_ASSEMBLER]: New function.
1500 (remove_subsegs) [! BFD]: Call it.
1501 (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD
1502 structures and routines.
1503
1504 * config/obj-elf.*: New files.
1505
1506 * config/mips.mt, config/rs6000.mt: Deleted.
1507
1508 * config/h8300.mt: Don't specify compiler here.
1509
7687d89b 1510 * config/z8k.mt: The z8k code depends on the z8k opcode table,
0cca30f3
KR
1511 not the h8300 one.
1512 * config/tc-z8k.h: Comment fix.
1513
1514 * write.c: Reordered some functions for better inlining.
1515 (fixup_segment): Linkrelax code is no longer conditional on
1516 TC_I960.
1517
1518Thu Feb 4 12:45:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1519
1520 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,
1521 obj-coffbfd.h}: support for the H8/500
1522
1523Wed Feb 3 19:28:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1524
1525 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here.
1526 * write.c (write_object_file): Not here.
1527 (fix_new): Initialize fx_addnumber.
1528
1529 * listing.c: Don't include target-cpu.h explicitly, since as.h
1530 includes it.
1531
1532Thu Jan 28 00:35:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1533
1534 * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP,
1535 *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP.
1536 (struct fix): Reordered fields for compactness and efficiency.
1537 Converted some logical fields to 1-bit fields.
1538
1539 * config/obj-aout.h: Use PARAMS.
1540 [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE,
1541 N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE.
1542
1543 * read.c: Don't include listing.h; as.h includes it. Removed
1544 DONTDEF code.
1545 [BFD_ASSEMBLER]: Include subsegs.h.
1546 (old_buffer, new_broken_words): Default initialization is
1547 sufficient.
1548
1549 * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH
1550 to 0, define stdoutput.
1551 (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure.
1552 Call bfd_set_arch_mach.
1553 (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not
1554 bfd_close_all_done. Call bfd_perror on failure.
1555 (output_file_append) [BFD_ASSEMBLER]: Don't define.
1556
1557 * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition.
1558
1559 * subsegs.h (segment_info_type): Always define. Omit field scnhdr
1560 if not MANY_SEGMENTS. Define new field bfd_section if
1561 BFD_ASSEMBLER.
1562 (seg_info): New macro.
1563
1564 * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused
1565 variables, and some irrelevant comments.
1566
1567 * Makefile.in (ALL_CFLAGS): Include $(BFDDEF).
1568 (LIBS): Include $(BFDLIB). Don't bother with $(CLIB).
1569 * configure.in: Permit --with-bfd-assembler now, with a warning.
1570 Variable need_bfd is now a boolean, as is new variable bfd_gas.
1571 Set BFDDEF and BFDLIB in Makefile when appropriate.
1572
1573 * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code.
1574 (main): Refer to flag_always_generate_output instead of
1575 flagseen['Z'].
1576
1577 * as.c (main) [BFD_ASSEMBLER]: Open output bfd.
1578 (*_section) [BFD_ASSEMBLER]: Define them.
1579 (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and
1580 set section flags when appropriate.
1581 * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified
1582 section is not absolute, undefined, or an assembler internal one.
1583 (absolute_section, undefined_section): Always define.
1584 * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break
1585 switch statements into if-else trees.
1586 * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of
1587 SEG_BSS and SEG_DATA.
1588
1589 * as.h (frag_now_fix): New macro.
1590 * symbols.c (colon): Use it.
1591
1592Wed Jan 27 21:43:53 PST 1993 Ralph Campbell (ralphc@pyramid.com)
1593
1594 * config/tc-mips.c: Added mips support for mips-dec-bsd.
1595 * config/tc-mips.h: Added mips support for mips-dec-bsd.
1596 * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd.
1597 * config/mips-opcode.h: Added mips support for mips-dec-bsd.
1598 * configure.in: Added mips support for mips-dec-bsd.
1599 * atof-generic.c: Define TRUE and FALSE if not defined.
1600
1601Thu Jan 21 12:48:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1602
1603 * version.c: Bumped version number to 1.93.05.
1604
1605Wed Jan 20 17:11:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1606
1607 * config/obj-coff.c (obj_emit_relocations): Don't use #elif.
1608 (obj_emit_lineno): Don't need return at end of void function.
1609 (obj_symbol_new_hook): Ditto.
1610
1611 * config/tc-m68k.c: Removed some unused code.
1612 (tc_aout_fix_to_chars): Array nbytes_r_length is now const.
1613
1614 * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only
1615 offset field is set.
1616
1617Fri Jan 8 05:44:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1618
1619 * config/tc-sparc.c (architecture_requested, warn_on_bump,
1620 md_relax_table): Use default zero initialization.
1621 (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the
1622 latter, instead of selecting with preprocessor conditionals.
1623
1624Thu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1625
1626 * configure.in: recognise all sparclite variants
1627
1628Thu Jan 7 05:25:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1629
1630 * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change --
1631 accidentally changed to use subseg_change where it should have
1632 been subseg_new.
1633
6c5f9998
KR
1634Tue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1635
0bd77bc4
KR
1636 * expr.c (operand): If character other than comma or newline is a
1637 logical end-of-line character, use the newline case.
0cca30f3
KR
1638 From Eric Youngdale:
1639 (operand): Set X_add_number field for floating-point numbers.
1640 (operand): Treat zero byte as end-of-operand.
0bd77bc4 1641
6c5f9998
KR
1642 * configure.in (per-target): Look for with_bfd_assembler option.
1643 For now, only accept "no", until the merge is done.
1644
0cca30f3
KR
1645 Merged changes from Eric Youngdale (youngdale@v6550c.nrl.navy.mil):
1646 * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c,
1647 config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS.
1648 * read.c: Finish conversion to S_* macros in the VMS only
1649 parts of the program. Add "const" modifier to hex_value.
1650 * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to
1651 "ifdef OBJ_VMS".
1652 * expr.c: Add "const" modifier to hex_value.
1653 * symbols.c: Finish conversion to S_* macros in the VMS only
1654 parts of the program. Add "const" modifier to
1655 md_[long,short]_jump_size. Remove declaration of const_flag
1656 (which will be declared in obj-vms.h).
1657 * write.c: Add "const" modifier to md_[long,short]_jump_size.
1658 Fix arguments to VMS_write_object_file.
1659 * config-gas.com: New file. Script for VMS systems to set up the
1660 configuration to build gas for VMS, and create config.status.
1661 * make-gas.com: Redone to work with new scheme.
1662 * obj-vms.c: Patch to fix bug where we were not correctly parsing the
1663 stabs directives.
1664 * obj-vms.c: Define macros COPY_LONG and COPY_SHORT which
1665 will swap bytes if needed on a big endian system. Use throughout
1666 as needed.
1667 * obj-vms.c (obj_aout_stab): Add code to generate listing file.
1668 * obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain
1669 types of malformed stabs. Change parsing algorithm so that we are
1670 more certain of having all of the information that we need on hand.
1671 * obj-vms.c (final_forward_reference): New function, used to help
1672 resolve the data types of as many struct elements as possible
1673 when some part of the struct is not fully defined by the compiler.
1674 * obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation
1675 stabs directives.
1676 * obj-vms.c (VMS_write_object_file): Define all vtable psects
1677 as symbols as well in the object file. Look for external functions
1678 that start with "__vt.", and turn them into variables, since the
1679 g++ compiler is incapable of doing this.
1680 * tc-vax.c: Add '1' option for backward compatibility with older GCC
1681 versions.
1682 * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes.
1683 * input-scrub.c (as_where): Fix bug where as would crash if we did not
1684 have the name of the source file yet.
1685 * config/ho-vms.h: define HO_VMS, not HO_VAX.
1686
9d76a195
KR
1687Mon Jan 4 05:17:26 1993 Ken Raeburn (raeburn@cygnus.com)
1688
1689 * read.c (s_data): Always use "data_section", since it'll map to
1690 SEG_DATA or SEG_E1 if needed.
1691 (s_lcomm): Likewise with bss_section.
1692 (s_fill): Use memset, not bzero.
1693
1694Thu Dec 31 04:29:27 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1695
1696 * read.c: Deleted some code under "#ifdef DONTDEF" that was for
1697 handling GDB symbol table data.
1698
1699 * config/obj-aout.h (segment_name): Delete definition.
1700 (seg_name): Delete declaration.
1701 * config/obj-bout.h (segment_name, seg_name): Ditto.
1702 * config/obj-vms.h (segment_name, seg_name): Ditto.
1703 * config/obj-coff.h (segment_name): Ditto.
1704 * config/obj-coffbfd.h (segment_name): Ditto.
1705
1706 * Changes for BFD_ASSEMBLER:
1707 * obj.h (obj_crawl_symbol_chain): Declare only if not
1708 BFD_ASSEMBLER.
1709 (obj_header_append, obj_pre_write_hook): Ditto.
1710 * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER.
1711 (segT) [BFD_ASSEMBLER]: New typedef for "asection *".
1712 (segment_name) If BFD_ASSEMBLER, look up BFD section name;
1713 otherwise, use seg_name array.
1714 (seg_name): Declare only if not BFD_ASSEMBLER.
1715 (section_alignment): Declare only if not BFD_ASSEMBLER.
1716 (big_section, reg_section, pass1_section, diff_section,
1717 absent_section, text_section, data_section, bss_section): If
1718 BFD_ASSEMBLER, declare as variables; otherwise, declare as macros,
1719 mapping to segT enum values.
1720 (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors
1721 if these are used or defined, if BFD_ASSEMBLER.
1722 (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old
1723 subseg_new split into two functions.
1724 (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now.
1725
1726 * as.h (volatile): Don't define if already defined.
1727 (had_errors, had_warnings): Provide prototypes for ANSI C even if
1728 NO_STDARG.
1729 (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2,
1730 declare with format attribute for -Wformat checking.
1731
85825401
ILT
1732Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
1733
1734 * app.c, config/tc-*.c: Don't include read.h, since it is already
1735 included by as.h.
1736
1737 * These are based on patches from Minh Tran-le
1738 <mtranle@paris.intellicorp.com>.
1739 * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use
1740 obj_format coffbfd and gas_target i386coff for target.
1741 (i[34]86-*-isc*): New host (uses sysv).
1742 * config/i386aix.mt: Removed (no longer used).
1743 * config/mh-i386aix (RANLIB): Use true rather than /bin/true.
1744 (MINUS_G): Removed.
1745 (LDFLAGS): Added, defined as -shlib.
1746 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
1747 * config/te-sco386.h (LOCAL_LABEL): Don't define.
1748 (DOT_LABEL_PREFIX): Define.
1749 * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
1750 name rather than L0\001.
1751 * read.c (s_lcomm): Make a frag in SEG_BSS rather than using
1752 local_bss_counter.
1753 * symbols.c, symbols.h (local_bss_counter): Removed.
1754 * write.c (write_object_file): bss no longer uses
1755 local_bss_counter. Pass correct data and bss size to
1756 VMS_write_object_file.
1757 * config/obj-vms.c (VMS_write_object_file): Accept bss size as
1758 argument, rather than using local_bss_counter.
1759 * config/tc-m88k.c (s_bss): Don't use local_bss_counter.
1760 * config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
1761 * config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
1762 (size_section): Restored sanity check.
1763 (do_relocs_for): Base section address on s_paddr rather than
1764 computing it. Adjust a29k R_IHIHALF special case to account for
1765 section paddr (used to require paddr to be zero). If there are no
1766 reclos, set s_relptr to 0. Set relocation size in object_headers.
1767 (fill_section): Always set s_vaddr here, removing
1768 ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set
1769 NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
1770 Set STYP_INFO for .comment.
1771 (coff_header_append): Use object headers and H_{SET,GET}_* macros.
1772 Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
1773 (crawl_symbols): Handle 8 character section name correctly. Use
1774 H_{SET,GET}_* macros.
1775 (do_linenos_for): Set lineno size in object_headers.
1776 (write_object_file): Use H_{SET,GET}_* macros. Don't bother to
1777 set s_vaddr here. If string_byte_count remains 4, set it back to
1778 0, and only write strings out if there are some. Call
1779 fill_section before do_relocs_for and do_linenos_for.
1780 (obj_coff_section): Handle optional quoted second argument giving
1781 section characteristics.
1782 (obj_coff_bss): Added to handle .bss.
1783 (obj_coff_ident): Added to handle .ident (puts string in .comment
1784 section).
1785 (obj_coff_lcomm): Put common symbols in .bss, not .data.
1786 (fixup_mdeps): Change to segment. Call frag_wane after
1787 md_convert_frag.
1788 (fixup_segment): Explicitly check S_IS_COMMON before making 386
1789 adjustment (already happened only for common symbols, but this is
1790 clearer).
1791 * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
1792 * config/tc-i386.c (s_bss): Don't use if I386COFF.
1793 (md_pseudo_table): Ignore .optim and .noopt.
1794 (tc_coff_sizemachdep): New function.
1795 * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
1796 compatibility.
1797 (LOCAL_LABEL): Removed definition.
1798 (DOT_LABEL_PREFIX): Defined.
1799
4539aa02
KR
1800Mon Dec 28 10:32:05 1992 Ken Raeburn (raeburn@cygnus.com)
1801
6d331d71
KR
1802 * app.c (app_push): Use memcpy, not bcopy.
1803 (do_scrub_next_char): For \", return " not '.
1804 (symbol_chars): Now const.
1805
4539aa02
KR
1806 * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f"
1807 and "0b". If LOCAL_LABELS_DOLLAR, check for "0$".
1808
1809 * config/obj-coff.h: Don't use #elif.
1810
1811 * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't
1812 have it. (Reported by Noah Friedman, friedman@gnu.ai.mit.edu.)
1813
3eb802b5
ILT
1814Wed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)
1815
1816 * write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
1817 already defined.
1818
be06bdcd
SC
1819Tue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1820
1821 * app.c (do_scrub_begin): allow single quote strings if so
1822 configured.
1823
1824 * config/*z8k*: checkpoint
1825
1826Sun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com)
1827
1828 * read.c (read_a_source_file): avoid calling xmalloc (0).
1829
016e0d42
ILT
1830Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
1831
1832 * listing.c: Call xmalloc, not malloc; don't declare malloc.
1833
1834 * Changes to support SCO 3.2v4:
1835 * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
1836 SEG_BSS, fill with NOP_OPCODE.
1837 * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
1838 * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
1839 using ZERO_BASED_SEGMENTS.
1840 (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
1841 never set segment address for SEG_E2 (.bss) and don't write out
1842 SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
1843 (obj_coff_endef): Don't merge labels or symbols awaiting forward
1844 definitions, and don't merge tags with non-tags. Check for .bf
1845 rather than just checking whether the second character is b and
1846 the third character is f.
1847 (obj_coff_val): gcc can generate values which we don't handle
1848 correctly; discard information for now, since it only affects the
1849 debugging information.
1850 (tag_find_or_name): Don't insert tags in the symbol table.
1851 (yank_symbols): Don't merge labels.
1852 (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
1853 already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
1854 set segment address if ZERO_BASED_SEGMENTS.
1855 (obj_coff_section): Accept and ignore a trailing quoted string, as
1856 used in AT&T i386 syntax.
1857 (fixup_segment): Take segment as argument. On the i386, adjust PC
1858 relative addends by the segment vaddr.
1859 * tc-i386.h: Define SUB_SEGMENT_ALIGN.
1860 * tc-a29k.h: Define ZERO_BASED_SEGMENTS.
1861 * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
1862
db33220f
KR
1863Tue Dec 8 00:06:48 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
1864
016e0d42
ILT
1865 * config/obj-coffbfd.c: Include libcoff.h.
1866
db33220f
KR
1867 * version.c: Now version 1.93.
1868
dde624ef
KR
1869Mon Dec 7 00:39:09 1992 Ken Raeburn (raeburn@cygnus.com)
1870
db33220f
KR
1871 * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do
1872 power-of-two alignment for .align.
1873
dde624ef
KR
1874 * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial,
1875 and leave everything else alone.
1876
1877Fri Dec 4 16:58:42 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
1878
1879 * Makefile.in (as.new): Don't bother saving as.old.
1880
1881 * write.c: Conditionalize on OBJ_VMS, not VMS.
1882 (magic_number_for_object_file): Don't define if OBJ_VMS.
1883
1884 * config/obj-vms.c: Changes for traditional C.
1885
7f2cb270
KR
1886Thu Dec 3 01:24:07 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1887
1888 * config/ho-generic.h (malloc, realloc): Declare.
1889
1890 * Lots of comment/whitespace changes.
1891
1892 * write.h (struct fix): Some fields reordered, narrowed.
1893
1894 * read.c (MASK_CHAR): Define using C types, not magic number.
1895
1896 * as.c, input-file.c: Deleted some unused code.
1897
1898 * app.c, as.h: Doc fix.
1899
1900 * flonum-konst.c, flonum-mult.c: Include ansidecl.h.
1901
1902 * as.h (xmalloc): Argument is long.
1903
1904 * xmalloc.c (error): Remove declaration; as.h takes care of it.
1905
0cca30f3
KR
1906 * doc/as.texinfo: Regrouped documentation of some command-line
1907 options. Updated options documentation for m68k. Some minor
1908 wording/punctuation changes.
1909
7f2cb270
KR
1910Mon Nov 30 11:42:11 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
1911
1912 * configure.in: Accept target OS "vms".
1913
1914 * symbols.c: Merged ANSI and non-ANSI function decls, using
1915 PARAMS macro.
1916
1917 * xmalloc.c: Just include as.h, don't bother trying to figure out
1918 other header files.
1919
1920 * strstr.c, strerror.c: Deleted.
1921 * Makefile.in: Deleted references.
1922
1923 * config/tc-ns32k.c: Don't include header file for string
1924 declarations; leave that to ho-*.h.
1925
1926Fri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com)
1927
1928 * config/coff_gnu.h [TC_I860]: Guesses for reloc type values,
1929 imported from FSF sources.
1930
1931 * messages.c (strerror): Declare unconditionally.
1932
1933 * as.h: Delete alloca and register definitions.
1934
1935 * config/atof-ieee.c (mask): Now const.
1936
1937 * obstack.c, obstack.h: Deleted.
1938
1939 * as.h (flag_readonly_data_in_text): New flag.
1940 * as.c (main): Set it for -R.
1941
1942 * as.h (flag_suppress_warnings): New flag.
1943 * as.c (main): Set it for -W.
1944 * messages.c (as_warn): Check it instead of flagseen['W'].
1945
1946 * as.h (flag_always_generate_output): New flag.
1947 * as.c (main): Set it for -Z.
1948
1949 * config/tc-sparc.h: Define NEED_FX_R_TYPE.
1950 * config/tc-a29k.h: Ditto.
1951 * write.h (struct fix): Don't conditionalize fx_r_type field on TC
1952 macros.
1953
1954 * as.h: Merged ANSI and non-ANSI function decls, using PARAMS
1955 macro.
1956 * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h,
1957 obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h,
1958 write.h: Likewise.
1959 * read.c: Likewise.
1960
1961 * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in
1962 xrealloc from xrealloc.c.
1963 * xrealloc.c: Deleted.
1964 * Makefile.in (REAL_SOURCES, OBJS): Adjusted.
1965
1966 * configure.in: For host CPU a29k, rs6000, vax, consider using bsd
1967 or vms ho- files.
1968
1969 * config/ho-sysv.h (setbuffer, HO_USG): Deleted.
1970
1971 * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer;
1972 don't initialize it with NULL.
1973
1974 * config/ho-vax.h (M_VAX): Deleted; was unused.
1975
1976 * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h:
1977 New files imported from FSF version, contributed by Eric Youngdale.
1978 * README-vms-dbg, config/vms: Deleted.
1979
1980 * ChangeLog, config/ChangeLog: Merged.
1981
1982 * config/*tahoe*, configure.in: Tahoe support brought in from FSF
1983 version.
1984
1985 * input-file.c (input_file_open): Eliminate call to setvbuf.
1986 [USG] (setbuffer): Deleted macro.
1987
6efd877d
KR
1988Mon Nov 23 11:00:16 1992 Ken Raeburn (raeburn@cygnus.com)
1989
1990 * all files: Whitespace changes for GNU indentation style, done by
7f2cb270 1991 GNU `indent'. Some cleanup still needed, especially of comments.
6efd877d
KR
1992
1993 * configure.in: No te-386bsd.h file exists; don't try to use it.
1994
7f2cb270
KR
1995 * obj-coff.c (obj_coff_endef): Use as_warn, not fprintf.
1996
1997 * tc-m68k.c (md_assemble): Don't complain about 68000 with 68881;
1998 could be doing emulation.
1999
0cca30f3
KR
2000Thu Nov 19 11:47:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2001
2002 z8000 documentation
2003 * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo:
2004 all modified.
2005
6efd877d
KR
2006Tue Nov 10 09:49:24 1992 Ian Lance Taylor (ian@cygnus.com)
2007
2008 * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h.
2009
2010 * subsegs.h: add extern to segment_info declaration.
2011
2012 * read.h: added extern declarations for comment_chars,
2013 line_comment_chars, and line_separator_chars.
2014 read.c, app.c: removed definitions of comment_chars,
2015 line_comment_chars, and line_separator_chars.
2016
7f2cb270
KR
2017 * tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined,
2018 still accept (but don't require) OPTIONAL_REGISTER_PREFIX before
2019 the register name.
2020 (insert_reg): put REGISTER_PREFIX before register names before
2021 putting them in the symbol table.
2022 * tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not
2023 M68KCOFF.
2024
2025 * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss
2026 section.
2027
2028 * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS,
2029 comment_chars, line_comment_chars and line_seperator_chars
2030 consistently const, and always initialized them. Included read.h.
2031
2032Thu Nov 5 17:55:41 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
2033
2034 * tc-sparc.c (sparc_ip): Add code to flag error if an absolute
2035 constant will not fit in an immediate field.
2036 (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow.
2037
2038Wed Nov 4 07:50:46 1992 Ken Raeburn (raeburn@cygnus.com)
2039
2040 * obj-coff.c (callj_table): Delete global variable.
2041 (obj_emit_relocations): Define it locally here, and only if
2042 TC_I960 is defined.
2043
2044 * tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name.
2045 (m68k_ip): Don't warn about bignum used as float bit-pattern.
2046
2047 * obj-coff.c: Replaced ANSI and non-ANSI function declarations
2048 with a single set using PARAMS macro.
2049
2050 * tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length
2051 of 2.
2052
2053 * tc-i960.c: Missed a couple of 0->NO_RELOC conversions.
2054
2055 * tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values,
2056 so widening works consistently.
2057
6efd877d
KR
2058Wed Oct 28 08:52:34 1992 Ken Raeburn (raeburn@cygnus.com)
2059
2060 * version.c: Put conditional "const" before version_string, not
2061 before dummy function for VMS. Now version 1.91.03.
2062
2063 * app.c (do_scrub_next_char): Need double-\ before `000' to show
2064 printed rep of null character.
2065
7f2cb270
KR
2066Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
2067
2068 * obj-coffbfd.c (write_object_file): check return value of
2069 bfd_close_all_done.
2070
559d9aac
ILT
2071Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
2072
7f2cb270
KR
2073 * Support for i386-sysv.
2074 obj-coffbfd.c (do_relocs_for, write_object_file): set segment
2075 addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can
2076 be used to set them all to zero as was done before.
2077 (fill_section): segment addresses now set in write_object_file.
2078 (fill_section): Don't set STYP_NOLOAD for .bss section.
2079 (fixup_segment): 386 uses strange common symbol format.
2080 tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
2081 compatibility with SVR3.2 linker.
6efd877d
KR
2082 * configure.in: i386-sysv and i386-sco use coffbfd.
2083
559d9aac
ILT
2084 * app.c (do_scrub_next_char): discard whitespace after a label.
2085
0f8b9790
DZ
2086Sat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2087
2088 * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4
2089 hosts, use the sysv configuration for solaris2
2090
7f2cb270
KR
2091Mon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2092
2093 fix i960+non-bfd coff bit rot.
2094 * obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
2095 support for C source listings. (obj_coff_endef): look in the right
2096 part of the symbol for the symbol name
2097
2098 * tc-m68k.c (get_num): make it work for all segments, not just the
2099 first three.
2100
984cf2d7
ME
2101Mon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
2102
2103 * configure.in: recognize i386-*-bsd emulation.
2104
2105Thu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2106
2107 * configure.in: use the cpu-vendor-os triple for host and target
2108
7f2cb270
KR
2109Tue Sep 29 12:22:52 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2110
2111 * obj-coffbfd.c (write_object_file): don't fixup for the z8k
2112 * tc-z8k.c: lots of bug fixes
2113
2114Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
2115
2116 * tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
2117 #elif, since it is not supported by old compilers.
2118 ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
2119 couple of expressions in tc-m68k.c.
2120
984cf2d7
ME
2121Mon Sep 28 21:18:24 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
2122
2123 * read.c (cons): If NO_RELOC is defined, use it.
2124
7f2cb270
KR
2125 * tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new.
2126
2127Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
2128
2129 * tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
2130 local labels to start with a .) and set REGISTER_PREFIX to %.
2131 tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
2132
5a0fc1d4
JG
2133Fri Sep 25 17:53:43 1992 John Gilmore (gnu@cygnus.com)
2134
2135 * messages.c: Comment changes.
2136
4959cb7b
KR
2137Fri Sep 25 14:12:58 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
2138
2139 * as.h: Test if __STDC__ is defined only, don't test its value.
2140 * messages.c: If __STDC__ is not defined, define NO_STDARG.
2141
5e9d510e
BK
2142Thu Sep 24 12:42:32 1992 Brendan Kehoe (brendan@rtl.cygnus.com)
2143
2144 * listing.c (debugging_pseudo): Add stabs and stabn as things to
2145 ignore.
2146
7f2cb270
KR
2147Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
2148
2149 * obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
2150 sections starting from zero, rather than making them consecutive.
2151 This makes subsequent reloc calculations easier, esp if the object
2152 format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily)
2153 allocate lcomm in .data rather than in .bss. It seems that some
2154 tools can't cope with a non-zero sized bss before linkage.
2155
2156Tue Sep 22 15:10:51 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
2157
2158 * tc-m68k.c: Replace "enum m68k_architecture" with "int"
2159 throughout. That enum no longer means what we thought it meant.
2160
2161 * tc-m68k.c (md_assemble, md_parse_option): Handle new
2162 "-mno-688[58]1" options.
2163
2164 * tc-m68k.c: Added CPU32 support.
2165
2166Fri Sep 18 08:02:18 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2167
2168 * tc-m68k.c (m68k_ip): An(disp) is not pc relative.
2169
569dac15
JW
2170Tue Sep 15 17:25:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
2171
2172 * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES.
2173 Change LIBDEPS dependence to LIBS.
2174
efbfb612
ILT
2175Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com)
2176
2177 * Makefile.in (install): if $(tooldir) exists, install as in
2178 $(tooldir)/bin.
2179
987b1491
ILT
2180Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
2181
ca5e9d49
ILT
2182 * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
2183 .word is < -32768 or > 32767. The -J flag causes the error to be
2184 ignored. This is to catch over-sized switches generated by gcc on
2185 systems which don't support the broken .word hack.
2186 as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
2187 write.c (fixup_segment): check for signed .word overflow if
2188 WARN_SIGNED_OVERFLOW_WORD.
2189
987b1491
ILT
2190 * write.c (fixup_segment): fixed missing parens in expression
2191 checking for byte or word overflow.
2192
7f2cb270
KR
2193 * obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
2194 obj-coffbfd.c (fixup_segment): check for signed .word overflow if
2195 WARN_SIGNED_OVERFLOW_WORD.
2196
2197 * obj-coffbfd.c (fixup_segment): fixed missing parens in
2198 expression checking for byte or word overflow.
2199
2200Fri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2201
2202 Support for i386 coff
2203 * obj-coffbfd.h : added stuff
2204 * tc-i386.c (tc_coff_fix2rtype): new function
2205 * tc-i386.h : new coff defines
2206
b1520b1f
ILT
2207Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com)
2208
2209 * input-scrub.c (input_scrub_push): call input_file_begin, not
2210 input_scrub_begin.
2211 messages.c (as_perror): print ": " between the passed in error and
2212 the strerror, like perror does.
2213
b53ccaac
ILT
2214Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
2215
2216 * Makefile.in: use gas_target instead of modifying target_cpu.
2217 From Steve Chamberlain:
2218 Makefile.in: Handle m68*-*-coff*.
2219 read.c, read.h: add mult argument to s_space
2220
7f2cb270
KR
2221 * tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
2222 Motorola and MIT syntax; gas can now assemble either type of
2223 file.
2224 tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
2225 From Steve Chamberlain:
2226 m68kcoff.mt: for m68k COFF.
2227 obj-coffbfd.c: (fixup_mdeps) added
2228 (size_section) removed bad sanity check
2229 (fill_section) added rs_machine_dependent case
2230 (write_object_file) call fixup_mdeps
2231 (fixup_segment) set fx_subsy to 0.
2232 obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
2233 handle m68k.
2234 tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
2235 pseudo ops.
2236
db4d20e5
KR
2237Tue Sep 8 17:10:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
2238
2239 * Makefile.in (LIBS): Include opcode library.
2240
e53ab768
KR
2241Fri Sep 4 18:20:56 1992 Ken Raeburn (raeburn@cygnus.com)
2242
2243 * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers
2244 including zero are accepted, pass +0.0.
2245
7e10f53c
ILT
2246Sun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com)
2247
2248 * Makefile.in: map "as" through program_transform_name when
2249 installing.
2250
0cca30f3
KR
2251 * doc/Makefile.in: map "as" through program_transform_name when
2252 installing.
2253
b0952e12
JW
2254Sat Aug 29 12:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
2255
2256 * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
2257
7f2cb270
KR
2258Fri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com)
2259
2260 * obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
2261 tc-i960.c (md_ri_to_chars): Always output bout object file in
2262 little endian byte order (used to use endianness of host).
2263
b2f221a9
KR
2264Tue Aug 25 15:50:48 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
2265
2266 * config/tc-m68k.c (init_table): Now const. Always include 68851
2267 data, so that "bc" is available to 68040 cache instructions.
2268 Added "tt0", "tt1", and 68ec030 variants.
2269 (md_assemble): Complain if 68000 (only) and 68881 are specified.
2270 (enum _register): Added TT0, TT1.
2271 (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass
2272 line number correctly in "internal error" messages. Don't print
2273 architecture-mismatch message for operand errors.
2274
2275 From Colin Smith (colin@wrs.com):
2276 * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather
2277 than install_operand.
2278
ab737e51
SC
2279Tue Aug 25 15:13:48 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2280
2281 * listing.c (buffer_line): rewind to the start of include
2282 files, they might be included twice.
2283
7f2cb270
KR
2284 * z8k.c, z8k.h, z8k.mt: z8000 support stuff
2285
7121231f
ILT
2286Mon Aug 24 12:45:43 1992 Ian Lance Taylor (ian@cygnus.com)
2287
2288 * Makefile.in: defined TARGET_CPU for C code so that it can choose
2289 one element of a family.
2290
7f2cb270
KR
2291 * tc-m68k.c: use TARGET_CPU to choose default cpu type.
2292
2293 * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
2294 so that we can assemble hand-written libgcc code.
2295
4772861e
KR
2296Fri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
2297
2298 * messages.c (as_warn): Use fputs, not fprintf, with a buffer that
2299 has already been formatted (but may still contain %-characters).
2300 (as_bad): Likewise.
2301
7f2cb270
KR
2302Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
2303
2304 * tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
2305 written with indirection on the last two operands, which can be
2306 either data or address registers. Added a new operand type 'r'
2307 which accepts either register type. Added '(' to notend stuff in
2308 tc-m68kmote.c to accept (a0):(a2) in cas2 instruction.
2309
09952cd9
KR
2310Wed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com)
2311
2312 * as.h (enum _relax_state): Start off at one, not zero, to better
2313 catch uninitialized-variable errors.
2314 (linkrelax): Declare new variable.
2315
2316 * messages.c (warning_count, error_count): Default initializer is
2317 sufficient.
2318
2319 * write.c: Merged some declarations, using PARMS macro.
2320 (text_frag_root, data_frag_root, bss_frag_root, text_last_frag,
2321 data_last_frag): No longer static.
2322 (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is
2323 defined, call it. Change segments before calling fixup_segment.
2324 (relax_align): If linkrelax, provide extra padding.
2325
2326 * obj-bout.c (obj_emit_relocations): Emit alignment relocs despite
2327 their not having symbols associated.
2328
2329 * tc-i960.c (norelax, instrument_branches): Default initializer is
2330 sufficient.
2331 (linkrelax): Delete variable definition.
2332 (mem_fmt): Call fix_new with NO_RELOC.
2333 (tc_bout_fix_to_chars): Handle alignment relocs.
2334 (i960_handle_align): New function.
2335 * tc-i960.h (linkrelax): Delete declaration.
2336 (HANDLE_ALIGN): New macro; calls i960_handle_align.
2337 (NEED_FX_R_TYPE, NO_RELOC): New macros.
2338
a457f4d9
KR
2339Tue Aug 18 14:59:21 1992 Ken Raeburn (raeburn@cygnus.com)
2340
2341 * config/sparc.mt: New file. Grab sparc opcode table from bfd
2342 library.
2343
4b857710
ILT
2344Tue Aug 18 14:16:38 1992 Ian Lance Taylor (ian@cygnus.com)
2345
2346 * Makefile.in: always create installation directories. Removed
2347 MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
2348 FLAGS_TO_PASS to recursive makes.
2349
0cca30f3
KR
2350 * doc/Makefile.in: always create installation directories.
2351
f7e9bc5a
SC
2352Mon Aug 17 15:09:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2353
2354 * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was
2355 being used with args swapped, causing occasional lossage when
2356 refilling buffers after an include file.
2357
c1c28543
KR
2358Mon Aug 17 13:18:51 1992 Ken Raeburn (raeburn@cygnus.com)
2359
2360 * messages.c (as_tsktsk): Use correct ANSI form for stdarg
2361 version. Discard bogus DONTDEF version.
2362 (as_warn, as_bad, as_fatal): Likewise.
2363
2e20e59a
KR
2364Fri Aug 14 18:31:14 1992 Ken Raeburn (raeburn@cygnus.com)
2365
2366 * config/tc-m68k.c (m68k_ip): If instruction is invalid for the
2367 selected architecture, print a message saying so and listing what
2368 processors support it, rather than saying "operands mismatch".
2369
c8c7e0bf
KR
2370Thu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com)
2371
2372 * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
2373
2374 * config/ho-rs6000.h (M_RS6000): Don't define it.
2375 (free): Declare it.
2376 (BROKEN_ASSERT): Define it if not __STDC__.
2377
7f2cb270
KR
2378Tue Aug 11 12:58:14 1992 Ken Raeburn (raeburn@cygnus.com)
2379
2380 * sparc.mt: New file.
2381
2382Mon Aug 10 14:37:08 1992 Per Bothner (bothner@cygnus.com)
2383
2384 * tc-m68k.c: ".align N" means align to N-byte boundary *only*
2385 if TN_SUN3; otherwise align to 2**N-byte bounary.
2386
7fd3560a
SC
2387Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2388
2389 * read.c (s_fill): make the .fill size clamped error a warn and
2390 fix bug where 0's were always placed.
2391
7f2cb270
KR
2392 * config/tc-h8300.c: if a :8 is seen after an operand, fill top
2393 two bytes of any constant with 0xff:
2394
62594bd7
SC
2395Wed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2396
2397 * config/tc-m68k.c (md_pseudo_table): fix the .align thing
4f3569fa 2398 the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo.
62594bd7 2399
7f2cb270
KR
2400Wed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com)
2401
2402 * tc-m68k.c (try_index): Error if index scaling specified and
2403 assembling for an older CPU than a 68020.
2404
680227f3
KR
2405Sat Aug 1 19:10:13 1992 Ken Raeburn (raeburn@cygnus.com)
2406
2407 * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take
2408 fx_offset into account.
2409
c51ccfd5
KR
2410Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com)
2411
2412 * configure.in (mips host): Accept "ultrix" with version number.
2413
2414 * expr.c (floating_constant): Separate "=-" to avoid confusing
2415 ancient or broken compilers.
2416
2417 * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
2418 processor/opcode mismatch, so reword the error message.
2419 (md_assemble): If no CPU has been set (even if FPU/PMMU
2420 characteristics have been), default to 68020. Don't need extra
2421 quotes around error string.
2422
14f1fc24
JW
2423Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
2424
2425 * read.c (potable): Revert sac's incorrect change made Jul 13.
2426 Align really is supposed to be ptwo not nbytes.
2427
2428Mon Jul 20 02:51:59 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
2429
2430 * Makefile.in: _Do_ include libiberty. (from sef)
2431
2432Fri Jul 17 15:15:28 1992 Ken Raeburn (raeburn@cygnus.com)
2433
2434 * expr.c (integer_constant): Handle "0f" and "0b" label references
2435 properly.
2436
462088b8
SC
2437Thu Jul 16 08:20:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2438
2439 * write.c (fixup_segment): if relaxing, don't do anything.
2440 * config/obj-bout.[ch] : maintain the a_relaxable file header info
2441 * config/tc-i960.c: new option -linkrelax
2442
2443Mon Jul 13 14:11:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2444
2445 * expr.c (expr): allow SEG_BSS in expressions
2446 * read.c (potable): align should be nbytes, not ptwo!
2447 * write.c (write_object_file): extra glue for new bss attributes
2448 (relax_segment): SEG_BSS is ok now
2449 * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes
2450
7f2cb270
KR
2451Mon Jul 6 17:09:32 1992 Steve Chamberlain (sac@cygnus.com)
2452
2453 * obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT
2454
462088b8
SC
2455Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
2456
2457 * configure.in: recognize m680x0 as having sun3 emulation mode for
2458 vxworks environment.
2459
2460
0b0b5dba
DHW
2461Tue Jun 30 20:25:54 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
2462
2463 * Makefile.in: Add program_suffix (parallel to program_prefix)
2464
7c2d4011
SC
2465Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2466
2467 * app.c (process_escape): new function to handle escapes the right
2468 way, (do_scrub_next_char): use new function
2469 * cond.c (s_ifdef): do ifdef/ifndef right
2470 * read.c (s_fill): make the , expressions optional like the doc
2471 says
2472 * config/tc-h8300.[ch]: better warnings
2473
90d49457
SC
2474Tue Jun 9 07:54:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2475
65bfcf2e
SC
2476 * subsegs.c (subsegs_begin): create bss0_frchainP in the same was
2477 as data0_frchainP
2478
2479 * write.c (write_object_file): various changes to handle data in
2480 the BSS segment in much the same was as stuff in the DATA segment.
2481
7f2cb270
KR
2482 * tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do
2483 pcrel data stuff. (md_estimate_size_before_relax): when relaxing a
2484 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into
2485 the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put
2486 it into SEG_BSS
462088b8 2487
f8701a3f
SC
2488Thu Jun 4 11:59:13 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2489
2490 * expr.c(expr): allow SEG_REGISTER in expressions.
2491 * read.c(pseudo_set): register expressions can be the source of a
2492 set.
2493 * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to
2494 goto SEG_TEXT (if a.out)
2495 * write.c (write_object_file): If a.out don't use the old way for
2496 -R.
2497 * config/obj-a.out (s_sect): complain if the user tries to use a
2498 subsegment with a value which might interfere with out -R hackery.
2499 * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table
2500 rather than use ugly if tree. (init_regtable): insert register
2501 names into symbol table.
2502
ebfb4167
MT
2503Tue Jun 2 16:47:09 1992 Steve Chamberlain (sac@cygnus.com)
2504
2505 * write.c (write_object_file): keep the fix_tail clean, which
2506 fixes a bug in -R where relocations were being lost.
2507
2508Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
2509
2510 * configure.in: recognize m680x0 as having sun3 emulation mode for
2511 vxworks environment.
2512
2513Sun May 31 05:33:00 1992 david d `zoo' zuhn (zoo@cygnus.com)
2514
2515 * configure.in: recognize m680x0 as an m68k
2516
dfd53fe9
JW
2517Thu May 28 11:22:02 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
2518
2519 * configure.in: Recognize sparclite as a sparc variant.
2520
7f2cb270
KR
2521 * tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new
2522 -Asparclite flag.
2523
d312e231
SC
2524Tue May 26 16:47:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2525
2526 * config/tc-a29k.c: lint
2527 * listing.c, expr.c: patches from Andrew Smith
2528
0cca30f3
KR
2529Thu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2530
2531 * doc/Makefile.in: use m4 rather than gm4.
2532
7f2cb270
KR
2533Mon May 4 18:56:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2534
2535 * obj-coffbfd.c: use is a synonym for section, (do_relocs_for):
2536 calc the base of relocs correctly.
2537 * tc-a29k.c (parse_operand): allow expressions to be in any section.
2538
d312e231
SC
2539Mon Apr 27 13:13:31 1992 K. Richard Pixley (rich@cygnus.com)
2540
2541 * as.c, write.c: use -K rather than -k for the broken word warning
2542 option.
2543
fa493b93
RP
2544Tue Apr 21 13:35:30 1992 K. Richard Pixley (rich@cygnus.com)
2545
2546 * Makefile.in: do not print recursion lines.
2547
d96c09ed
RP
2548Wed Apr 15 21:19:31 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2549
2550 * Makefile.in: the tooldir copy of gas goes directly in tooldir.
2551
2552Tue Apr 14 14:50:22 1992 Ken Raeburn (Raeburn@Cygnus.COM)
2553
2554 * write.c (write_object_file): For b.out format, round up section
2555 start addresses to match required alignment.
2556
81484684
KR
2557Thu Apr 9 05:45:29 1992 Ken Raeburn (Raeburn@Cygnus.COM)
2558
2559 * Makefile.in (install): Install into $(tooldir)/bin, since that's
2560 where gcc looks for it.
2561
3876b4c5
SEF
2562Tue Apr 7 15:12:15 1992 Sean Eric Fagan (sef@cygnus.com)
2563
2564 * Makefile.in: Changed some lines to be less confusing for some
2565 makes.
2566
2567 * input-file.c: Conditionalize on _IOFBF, not VMS.
2568
2569 * read.c, write.c: Change a series of ifdef/elif to
2570 ifdef/else/ifdef etc.
2571
2572Fri Mar 27 12:21:16 1992 K. Richard Pixley (rich@cygnus.com)
2573
2574 * symbols.c (fb_label_init): fix sizeof to memset.
2575
95a925b8
RP
2576Fri Mar 13 15:45:44 1992 K. Richard Pixley (rich@cygnus.com)
2577
3876b4c5
SEF
2578 * Makefile.in: install the man page.
2579
95a925b8
RP
2580 * Makefile.in: pass down MAKEINFO explicitly on info.
2581
0cca30f3
KR
2582 * doc/Makefile.in: use $(MAKEINFO) not makeinfo.
2583
5d53038b
SC
2584Fri Mar 13 08:03:03 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2585
2586 * flonum-const.c: renamed flonum-konst.c to stop dos name
2587 conflict.
2588
7f2cb270
KR
2589Thu Mar 12 04:42:38 1992 K. Richard Pixley (rich@cygnus.com)
2590
2591 * tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
2592 tc-m68k.h to te-sun3.h.
2593
8c1b25e4
RP
2594Wed Mar 11 23:32:42 1992 K. Richard Pixley (rich@cygnus.com)
2595
2596 * configure.in: vxworks68 gets te-sun3.h.
2597
2598 * expr.c: remove limitation that local_labels_dollar or
2599 local_labels_fb must be < 10.
2600
2601 * symbols.c: remove local_labels_dollar, replace with a function
2602 interface for a sparse array. All users adjusted.
2603
7f2cb270
KR
2604 * te-sun3.h: add LOCAL_LABELS_DOLLAR.
2605
0cca30f3
KR
2606Sat Mar 7 00:06:25 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2607
2608 * doc/Makefile.in: commented out line for building as-all.texinfo.
2609 This is temporary.
2610
2611 * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks.
2612
8c1b25e4
RP
2613Fri Mar 6 21:57:18 1992 K. Richard Pixley (rich@cygnus.com)
2614
2615 * Makefile.in: added check target.
2616
2617Tue Mar 3 15:45:56 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2618
2619 * Makefile.in: added tooldir and program_prefix.
2620
2621Sun Mar 1 04:43:19 1992 Michael Tiemann (tiemann@cygnus.com)
2622
2623 * write.{c,h} (fix_new): Make these declarations consistent.
2624
1651b22d
MT
2625Sat Feb 29 13:59:10 1992 Michael Tiemann (tiemann@cygnus.com)
2626
2627 * Makefile.in (strerror.o): Add rule so that broken Sun make can
2628 work in subdirs.
2629
5373c439
SC
2630Wed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com)
2631
2632 * read.c, obj-coffbfd.c : fix h8300 specific bit rot
2633
2634 * expr.c (operand): if can't work out what sort of operand it is,
2635 then look through FLT_CHARS for a hint.
2636
8c1b25e4
RP
2637Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
2638
2639 * Makefile.in, configure.in: removed traces of namesubdir,
2640 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
2641 copyrights to '92, changed some from Cygnus to FSF.
2642
0cca30f3
KR
2643 * doc/Makefile.in, doc/configure.in: removed traces of namesubdir,
2644 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
2645 copyrights to '92, changed some from Cygnus to FSF.
2646
f24f7577
SC
2647Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2648
14d3e47b
SC
2649 * expr.c: If an expression is single comma, then return with
2650 SEG_ABSENT rather than an error - since the sparc front end does
2651 really strange things with things like fbge,a
2652
f24f7577
SC
2653 * as.h: include bfd.h if using many sections
2654 * expr.c: LOCAL_LABELS_FB had been changed to lower case - so
2655 local labels didn't work.
2656 * listing.c (list_symbol_table): don't core dump when there's no
2657 symbol there.
2658 * write.c, write.h: call fix_new with the right number of args on
2659 the H8.
2660 * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
2661 errors nices
2662
c593cf41
SC
2663Sat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2664
2665 * app.c: MRI compatibility - allow single quote to start a string.
2666 * as.c: fix typo recently introduced.
2667 * as.h : Don't include aout/reloc.h - it's not right for COFF!
2668 * expr.c: Much rewriting, to accomodate MRI syntax for
2669 expressions. Also easier to read now.
2670 * listing.c: Put back defuns
2671 * read.c: modified to accept MRI syntax, put back listing pseudo
2672 ops so that an assembler built with NO_LISTING ignores list ops
2673 rather than pukes.
2674 * write.c, write.h: fixs - only keep a reloc type in a fix if the target
2675 machine is a SPARC or a 29K.
2676 * config/obj-aout.c: added s_sect pseudo op
2677 * config/obj-coffbfd.c: lints, set the filehdr flags right and
2678 fill in the timestamp.
2679 * config/obj-coffbfd.h: Since we don't include aout/reloc.h
2680 anymore, define all the relocs which the tc-<x> bit will use so we
2681 can translate from them to the coff types.
2682 * config/tc-a29k.c: reloc_type isn't ane enum any more
2683 * config/tc-m68k.c: Added NO_RELOC definition.
2684
2d97273c
RP
2685Fri Feb 21 06:21:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2686
c593cf41
SC
2687 * Makefile.in: put header files before C source for TAGS; remove
2688 references to non-existent syscalls.h.
2689
2d97273c
RP
2690 * read.c, write.c subsegs.c: back out the .bss changes.
2691
7f2cb270
KR
2692 * obj-aout.c: do not include stab.gnu.h if NO_LISTING.
2693
2694 * tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place.
2695
2696 * a.out.h: removed.
2697
6d5460ab
RP
2698Fri Feb 21 01:08:48 1992 Minh Tran-Le (TRANLE@INTELLICORP.COM)
2699
2700 * symbols.c (local_label_name): symbols now start with ^A.
2701
2702 * read.c, subsegs.c, write.c obj-coff.c: added handling of
2703 `.bss` pseudo op for unitialized data. The new gcc (1.37.9x)
2704 generate these sections. .align: will use NOP_OPCODE or 0
2705 for padding. This is just for being nice to the
2706 disassembler.
2707
2708 * expr.c (operand): changed to generate local label "\001L0"
2709 starting with a ^A so that it is recognized as a local label.
2710
2711 * as.c (perform_an_assembly_pass): zero bss_fix_root, too.
2712
7f2cb270
KR
2713 * tc-i386.c: tc-i386.c: added handling of the following opcodes:
2714 i/o opcodes - inb, inw, outb and outw. string manipulation with
2715 att syntax - scmp, slod, smov, ssca, ssto.
2716
2717 * obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss
2718 to just after .file .
2719
2720 In obj_crawl_symbol_chain() where it tries to put the external
2721 symbols apart, with the condition:
2722 (!S_IS_DEFINED(symbolP) &&
2723 !S_IS_DEBUG(symbolP) &&
2724 !SF_GET_STATICS(symbolP))
2725 it was moving too many symbols out. So I switch it back to the
2726 condition:
2727 (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP))
2728
2729 In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO
2730 so that we don't use the F_RELFLG which make the linker complain
2731 that somebody has stripped the relocation info.
2732
2733 Also, the AIX ld program require that the relocation table
2734 is sorted by r_vaddr like the standard ATT assembler does.
2735
2736 [he also changed the sizeof(struct ...)'s into the coff
2737 style FOOSZ macros. I'm not sure this is right, but I can't
2738 remember why. xoxorich.]
2739
d6e344db
RP
2740Fri Feb 21 01:08:48 1992 K. Richard Pixley (rich@cygnus.com)
2741
2742 * Makefile.in, configure.in, doc: use the doc. Build it, install
2743 it, clean it, etc.
2744
eb9eacd3
RP
2745Tue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com)
2746
aa3782d2
RP
2747 * read.c: white space and comments only.
2748
f816adbc
RP
2749 * configure.in: use the new atof-ns32.c for ns32k.
2750
eb9eacd3
RP
2751 * write.c: comment change only.
2752
7f2cb270
KR
2753 * tc-m88k.[hc]: pulled in from hack's unfinished work. These
2754 aren't yet integrated.
2755
2756 * tc-i860.[hc]: blew off the dust. Something must still be done
2757 about conflicting relocation types.
2758
2759 * tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the
2760 real thing.
2761
2762 * tc-i960.c, tc-sparc.c: white space and comments only.
2763
2764 * tc-a29k.h: delete duplicate macro definition.
2765
2766 * new file atof-ns32k.c copied from hack's last unreleased gas.
2767
542e1629 2768Mon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com)
b3ca913f 2769
eb9eacd3
RP
2770 * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work
2771 rather than abort.
2772
542e1629
RP
2773 * nearly everything. flush ChangeLog, package as gas-1.92.1.
2774 ChangeLog's prior to this are sketchy at best. I have logs.
2775 They just aren't ChangeLogs.
This page took 0.212703 seconds and 4 git commands to generate.