* config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
[binutils-gdb.git] / gas / ChangeLog
1 Sun Oct 31 00:36:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2
3 * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
4 can properly set all the SOM symbol types.
5 * config/tc-hppa.c (pa_symbol_type): New enum to represent the
6 symbol types which can be set from an IMPORT/EXPORT statement.
7 (pa_export_args): Set the pa_symbol_type type based on arguments.
8 If defined, call obj_set_symbol_type to pass this information on
9 to the BFD backend.
10
11 * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
12 stab section we make.
13 (s_stab_generic): Likewise.
14
15 Sat Oct 30 14:26:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
16
17 * Allow backends to override the value of the fake label.
18 * write.h (LOCAL_LABEL): Delete DOT_LABEL_PREFIX code. Instead
19 assume backends will define LOCAL_LABEL if anything other than
20 'L' is used to denote a local label.
21 (FAKE_LABEL_NAME): New macro. Defines the default name used for
22 the "fake" label.
23 * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
24 and instead simply use the string defined by FAKE_LABEL_NAME.
25 (operand): Likewise.
26 * read.c (s_stab_generic): Likewise.
27 * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
28 known to be a local label.
29 * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
30 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
31 * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete.
32 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
33 * config/te-sco386.h (DOT_LABEL_PREFIX): Delete.
34 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
35
36 Rework space/subspace handling in PA code to fully support
37 SOM spaces/subspaces.
38 * config/tc-hppa.c (USE_ALIASES): New object-format dependent define
39 to control the use of space/subspace name aliases.
40 (update_subspace): Accept space chain entry for containing space
41 as a new parameter. All callers changed.
42 (pa_get_label): Use current_space rather than pa_segment_to_space.
43 (pa_define_label): Likewise.
44 (pa_undefine_label): Likewise.
45 (md_begin): Change into the (possibly modified) text_section.
46 (pa_parse_space_stmt): Create a new segment/space if create_flag
47 is true, and the space name is not one of the two predefined spaces.
48 (pa_subspace): Use current_space rather than a lookup via
49 pa_segment_to_space. Reset BFD section flags as required by
50 the .subspace directive. Likewise for the section alignment.
51 Pass the current space to update_subspace and create_new_subspace.
52 (pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
53 is true. When not using aliases, create a BFD section for each
54 subspace encountered. When not using aliases replace the default
55 text, data, and bss segments with new ones.
56 (create_new_subspace): When not using aliases each subspace has a
57 section/segment and subsegments are not needed, so set the subsegment
58 to zero.
59
60 * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
61 obj_set_section_attributes to pass space attributes to the
62 BFD backend.
63 (create_new_space): Likewise.
64 (create_new_subspace): Likewise for subspace attributes using
65 obj_set_subsection_attributes.
66 (update_subspace): Likewise for subspace attributes using
67 obj_set_subsection_attributes.
68
69 * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
70 for $TEXT$ and $PRIVATE$ from the default space structure.
71
72 * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
73 as appropriate for the given type.
74
75 * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
76 SOM relocations.
77
78 * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
79 redefinition.
80
81 * config/obj-som.[ch]: New files for SOM support. Note SOM
82 support is not yet complete in GAS or BFD.
83
84 * config/ho-hppabsd.h: Delete IO* macros, they are defined in
85 stdio.h. Delete declaration of free. Include stdlib.h, unistd.h,
86 and string.h.
87
88 Fri Oct 29 13:26:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
89
90 * Allow backends to override the section names used for embedded
91 stabs support. Needed for SOM.
92 * read.c (STAB_SECTION_NAME): Default the name of the stab section
93 to ".stab".
94 (STAB_STRING_SECTION_NAME): Likewise for the stab strings section.
95 (get_stab_string_offset): Is now passed the full name for the
96 stab string section rather than a name prefix. All references
97 changed.
98 (s_stab_generic): New argument for the stab string section name.
99 all references changed.
100 (s_xstab): Append "str" to the stab section name to get the
101 stab string section name.
102 * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
103 to stab section name to get the stab string section name. Pass
104 the full name of the stab string section to get_stab_string_offset.
105 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
106
107 * config/tc-hppa.c (md_begin): Disable "-R" option to fold
108 textand data segments. Warn user "-R" is unsupported on the
109 PA.
110
111 Thu Oct 28 12:36:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
112
113 * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
114 .align and .ALIGN directives.
115
116 * config/tc-hppa.c (pa_space): Do not report an error for a .space
117 directive which does not define a "well-known" space and does
118 not include a space number as an argument.
119
120 * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
121 "defined", "loadable", "code_only" and "space_index" fields.
122 (pa_def_spaces): Correct initialization of the "spnum", "defined",
123 and "private" fields.
124
125 * write.h (struct fix): Add new tc_fix_data field for the various
126 backends to attach machine dependent fixup information to.
127 * write.c (fix_new_internal): Initialize new tc_fix_data field.
128 * config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
129 fx_next fields.
130 (hppa_find_hppa_fix): Delete unnecessary function. Fix all
131 callers to get HPPA fixup information from the tc_fix_data field
132 in the GAS fixup.
133 (hppa_fix_root): Delete unnecessary variable.
134 (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.
135
136 * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
137 function. Fix all callers.
138 (subspace_dictionary_chain): Delete unused ssd_start_sym field.
139
140 * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
141 if a particular fixup is adjustable.
142 * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
143 perform the real work.
144
145 * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
146 of OBJ_XXX conditionals.
147 (MAX_RELOC_EXPANSION): Likewise.
148
149 * config/tc-hppa.c (log2): Renamed from is_power_of_2. Fix all
150 callers. Now returns log2 (N) for positive N which are an exact
151 power of two or -1 for an error.
152
153 * config/tc-hppa.c (pa_callinfo): Range check values provided for
154 ENTRY_GR, ENTRY_FR and ENTRY_SR. Properly adjust vaues before
155 inserting them into the unwind table.
156
157 * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
158 (hppa_gen_reloc_type): New object format dependent macro.
159 (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
160 conditional. The code can (and will) be shared between SOM & ELF
161 formats in the near future.
162 (cons_fix_new_hppa, md_apply_fix_1): Likewise.
163 (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
164 (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
165 specific call.
166
167 * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
168 to bfd_und_section.
169
170 * config/obj-elf.h (obj_elf_version): Add extern prototype.
171
172 * configure.in (hppa-*-bsd*): New configuration.
173 BFD is always used for GAS generating SOM objects.
174
175 * write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
176 adjustment is rejected by the target machine.
177
178 * config/tc-hppa.c (pa_big_cons): Delete function and its
179 declaration. All callers changed to use pa_cons.
180
181 * write.c (fixup_segment): Fix indention and open/close brace
182 problem.
183
184 From Pete Hoogenboom:
185 * config/tc-hppa.c (md_atof): Return a NULL on success rather than
186 an empty string.
187
188 * config/tc-hppa.c (pa_parse_space_stmt): Advance
189 input_line_poitner when an invalid argument is encountered.
190
191 Thu Oct 28 13:09:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
192
193 * config/tc-a29k.c (md_begin): When opcodes are mashed together in
194 the table, require that the one without bit 0x1000000 set come
195 first. Require further that it be case 'b' or 'P'. The a29k
196 opcode table already meets these constraints.
197 (machine_ip): When handling case 'i' or 'A', make sure that the
198 appropriate opcode really exists by looking at the next entry in
199 the opcode table.
200
201 Wed Oct 27 11:48:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
202
203 * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
204 fixups. Add 6 for long 7.3 case, 2 for short 7.2 case.
205
206 * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
207 after a .ent directive.
208
209 * config/tc-mips.c (mips_ip): Handle '>' case (shift amount
210 between 32 and 63 for double shift instruction). Do & 0x1f rather
211 than % 32.
212 (printInsn): Handle '>'.
213
214 Tue Oct 26 16:58:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
215
216 * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
217 number in the right place. Untested. Probably does not work for
218 cross assembly. From cagney@cs.adelaide.edu.au (Andrew Cagney).
219
220 * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
221 an illegal offset of 0 or -1.
222
223 * config/obj-elf.c (obj_elf_init_stab_section): Align .stab
224 section to a longword boundary.
225
226 Tue Oct 26 10:24:31 1993 Ken Raeburn (raeburn@cygnus.com)
227
228 * Makefile.in (CHECKFLAGS): Pass down RUNTESTFLAGS.
229
230 From Jeff Law:
231 * config/tc-hppa.c (tc_gen_reloc): ELF32_HPPA_R_ADDEND ->
232 HPPA_R_ADDEND.
233
234 Mon Oct 25 11:17:58 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
235
236 * config/tc-sh.c (build_Mbytes): Write the relocs to the correct
237 address. (md_assemble): Make error handling a bit more graceful.
238 (md_apply_fix): Don't warn on non aligned displacement.
239
240 * config/tc-z8k.c (get_specific, built_bytes): Understand all the
241 aspects of lda.
242
243 Mon Oct 25 10:20:31 1993 Ken Raeburn (raeburn@rover.cygnus.com)
244
245 * doc/Makefile.in (install-info): Use "$<*" so VPATH will find
246 as.info* even if they're in $(srcdir) (e.g., for FSF
247 distributions).
248
249 * write.c (write_relocs): For relocs that are pc_relative and
250 pcrel_offset and not partial_inplace, adjust reloc->addend to
251 compensate for a bfd_perform_relocation bug.
252
253 * config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
254 * config/tc-sparc.c: Ditto.
255 (tc_gen_reloc): Include fx_offset for pcrel fixups.
256
257 Sun Oct 24 16:49:00 1993 Jim Wilson (wilson@x1.cygnus.com)
258
259 * tc-mips.c (md_pseudo_table): Add dword pseudo op.
260
261 Fri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
262
263 * messages.c: replaced all variables called Format with 'format',
264 for consistency throughout
265
266 * configure.in: handle mips*- instead of mips, mips*el for little
267 endian configurations
268
269 Fri Oct 22 14:45:49 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
270
271 * input-scrub.c (physical_input_file, logical_input_file,
272 physical_input_line, logical_input_line): Made static.
273 (as_where): Return current file name and line number, don't print
274 them out.
275 * messages.c (as_show_where): New static function. Other
276 functions use it instead of as_where.
277 (as_bad_internal): New static function.
278 (as_bad): Use as_bad_internal.
279 (as_bad_where): New function, like as_bad but taking a file name
280 and line number.
281 * as.h (as_bad_where): Declare.
282 (as_where): Change prototype for new arguments.
283 * write.h (fixS): Added fields fx_file and fx_line.
284 * write.c (fix_new_internal): Save file and line number in fix.
285 (fixup_segment): Use as_bad_where, not as_bad.
286 * input-file.c (f_in, file_name): Made static.
287 * cond.c (struct file_line): Just use file and line fields.
288 (s_else): Use as_where and as_bad_where, not get_file_line and
289 set_file_line.
290 (get_file_line, set_file_line): Removed.
291 * listing.c (listing_newline): Use as_where.
292 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
293 * config/obj-ecoff.c (add_file): Use as_where.
294 * config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
295 * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
296 * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
297
298 Thu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com)
299
300 * config/tc-m68k.h: Don't define REGISTER_PREFIX or
301 OPTIONAL_REGISTER_PREFIX if either is already defined.
302
303 * config/tc-m68k.c (m68k_ip): Delete some code in "#if 0".
304
305 * configure.in: Set bfd_gas for all sparc targets. Added facility
306 for keeping or rejecting configurations still under development;
307 default is to assume production environment, and reject configs
308 still being worked on. Mark Elf configurations (except sparc and
309 i386) as developmental. Deleted cases matching some generic names
310 in favor of more specific names. (E.g., when we get Alpha
311 support, we'll still only support VMS for Vax.)
312
313 * config/tc-sparc.h (md_end): New macro.
314 * config/tc-sparc.c (md_end): Function deleted.
315 (BFD_RELOC_*): Delete macros that used to help keep the non-bfd
316 version compiling. All sparc targets will use bfd now.
317 * tc.h (md_end): Don't declare if it's defined as a macro.
318
319 Changes from Jeff Law and Peter Hoogenboom:
320
321 * read.c (next_char_of_string): Limit octal character constants to
322 three digits.
323
324 * config/tc-hppa.h: Major cleanup. Use GNU-style comments. Warn
325 against placing additional object-file dependent code here. Warn
326 against contaminating all of GAS with the internals of tc-hppa.c
327 through inclusion of tc-hppa.h. Delete all forward declarations
328 for functions only used within tc-hppa.c, likewise for structures,
329 variables, and #defines. Try to group OBJ_ELF and OBJ_SOM
330 conditional code in a few small places.
331
332 * config/tc-hppa.c: Major cleanup. Use GNU-style comments. Group
333 structures, global variables, forward declarations together.
334 Reduce (or in some cases eliminate) OBJ_ELF and OBJ_SOM
335 conditional code -- try to group conditional code together
336 into a few places. Make all functions and variables which
337 are only used within tc-hppa.c static. PARAMize all functions.
338 Add comments to functions. Delete unused functions, variables,
339 #defines, etc. Delete unused members within structures. Delete
340 ldil;ble hacks -- it is believed they were installed to work
341 around old gas bugs. Avoid using mixed case for local
342 functions, variables, and structures. Fix formatting problems
343 not found by GNU-indent. Add FIXME notices for things which
344 should be worked on the near future. Delete lots of old
345 useless (1.36 PA-SOM) code.
346
347 * config/tc-hppa.c: (fix_new_hppa): Initialize the fx_r_type
348 field of the fixS structure. Needed to build unwind
349 descriptors correctly.
350
351 * write.c: (fixup_segment): Allow expressions such as
352 sym1-sym2+const as long as sym2 is $global$.
353
354 * write.c (adjust_reloc_syms): Provide a hook so that a target
355 cpu configuration can reject certain relocation reductions.
356 * tc-hppa.h (tc_fix_adjustable): New macro. Only accept relocations
357 which do not involve function symbols.
358
359 * config/tc-hppa.h: Reindent with GNU-indent. Delete references
360 to OBJ_OSFROSE. Fix typos (OBJ_SOME -> OBJ_SOM). Delete unused
361 STAB_FIXUP macro.
362 * config/tc-hppa.c: Likewise.
363
364 * config/tc-hppa.c (md_apply_fix_1): Use elf_symbol_type, instead
365 of elf32_symbol_type.
366 (pa_export_args): Likewise.
367 (elf_hppa_final_processing): Likewise.
368 (pa_desc): Do not call obj_elf_desc. (Is pa_desc even needed
369 anymore?)
370 (hppa_tc_make_sections): Do not declare elf_get_symtab_map any
371 ore.
372
373 * config/tc-hppa.c: (md_section_align): Align all sections to
374 a multiple of the section alignment rather than always a
375 multiple of 8.
376
377 * config/tc-hppa.c (hppa_tc_symbol): If the argument relocation
378 bits are zero (eg they specify no relocations), then do not even
379 bother adding their entries to thesymextn section.
380
381 Thu Oct 21 15:44:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
382
383 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
384 option, which is used by the SunOS make default .s.o rule.
385
386 Tue Oct 19 18:13:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
387
388 * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable
389 m68k_aout_machtype.
390 * config/tc-m68k.c (omagic): Remove obsolete and unused variable.
391 (m68k_aout_machtype): New variable, if OBJ_AOUT.
392 (md_assemble): Initialize m68k_aout_machtype based on
393 current_architecture, if OBJ_AOUT.
394 (md_parse_option): Remove obsolete reference to omagic.
395
396 Thu Oct 14 16:51:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
397
398 * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
399 (s_option): Ignore .option O* and .option pic*.
400 (s_ent): Skip whitespace between symbol and optional digit.
401 (my_getSmallExpression): Handle ($xx) correctly: assume 0($xx).
402
403 * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape
404 characters in state 6.
405 * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are
406 hexidecimal digits.
407
408 * config/tc-i386.c (md_apply_fix_1): Make cross segment calls work
409 for ELF by hacking around bizarre bfd_perform_relocation behaviour
410 that I don't dare change.
411
412 Thu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org)
413
414 * config/tc-i386.c: (md_begin): Do not zero static arrays. Don't
415 call strchr for each character to see if it is a special char,
416 instead add a second loop over special_chars. Set alignment
417 of text, data and bss sections to 4.
418 (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be
419 used again.
420 (reloc): Don't return 8 and 16 bit non-PC relative relocations on
421 ELF, since the ELF object format does not have these type of
422 relocations. Change the abort into as as_bad and return
423 BFD_RELOC_NONE to silence compiler warnings.
424 (md_assemble): Keep track of the instruction size. Allow white
425 space between the $ and the constant for compatibility with older
426 gases and other assemblers.
427 (i386_operand): Skip spaces between $ and expression.
428 (tc_gen_reloc): Don't allow anything but 32 bit relocations on
429 ELF. Convert abort into an as_bad and assert into as_fatal.
430
431 Wed Oct 13 16:50:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
432
433 * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: If
434 sub_symbolP is in the current segment, convert to a PC-relative
435 fixup and discard the symbol.
436
437 Wed Oct 13 14:00:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
438
439 * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbol
440 for st_StaticProc just like st_Proc.
441
442 * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUT
443 so that OBJ_BOUT doesn't forget to adjust all the fragments in the
444 .bss section.
445
446 Tue Oct 12 17:26:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
447
448 * config/tc-mips.c: If OBJ_ELF, include elf/mips.h.
449 (mips_regmask_frag): New static variable, if OBJ_ELF.
450 (md_begin): If OBJ_ELF, create .reginfo section and set
451 mips_regmask_frag to a frag.
452 (mips_elf_final_processing): New function, if OBJ_ELF. Set
453 mips_regmask_frag to register mask information.
454 * config/tc-mips.h (elf_tc_final_processing): New macro, defined
455 if OBJ_ELF.
456
457 Tue Oct 12 03:33:26 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
458
459 * messages.c (as_fatal): Use myname when printing messages.
460
461 * config/tc-i960.c (md_begin): Use null pointer, not empty string,
462 as initial "return" value in case hashing isn't needed.
463
464 * config/tc-a29k.c (md_atof): Return null, not empty string, on
465 success.
466 * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof),
467 config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof),
468 config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof),
469 config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto.
470
471 Mon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
472
473 fix for pr 3571
474 * config/tc-h8300.c (get_specific): Special action if 8 bit
475 address seen. (check_operand): Don't complain if truncating top
476 bits of an 8 bit address. (build_bytes): Allow an immediate and
477 an absolute in the same insn.
478
479 Mon Oct 11 17:18:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
480
481 * write.c (write_contents): Don't crash if seginfo is NULL.
482
483 * config/obj-ecoff.c (ecoff_frob_file): Write out register masks
484 by modifying .reginfo section, not by directly modifying BFD
485 backend data.
486
487 Mon Oct 11 14:11:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
488
489 * config/ho-sunos.h: remove extern time declaration
490
491 Mon Oct 11 16:14:43 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
492
493 * messages.c (as_fatal): Do mention that it's the assembler that
494 got the fatal error.
495
496 Fri Oct 8 14:09:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
497
498 * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to
499 hold register masks.
500 (md_begin): Initialize them to zero.
501 (append_insn): Update mips_gprmask and mips_cprmask. Also add
502 register variables pinfo and prev_pinfo.
503 * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare.
504 * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask
505 and cprmask from mips_gprmask and mips_cprmask.
506
507 * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF.
508 * config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF.
509 (various): Change all references to GP references to apply if
510 GPOPT, not if OBJ_ECOFF.
511 (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata
512 instead of .rdata. If OBJ_ELF, set section flags for .rodata and
513 .sdata sections.
514 (s_frame, s_loc, s_mask): Comment out entire functions, rather
515 than just body. They're not used anyhow.
516 * configure.in: Set cpu_type to mips for mips*. Accept
517 mips-*-elfl* and mips-*-elf*.
518
519 Thu Oct 7 18:36:29 1993 Michael Meissner (meissner@osf.org)
520
521 * config/obj-elf.c (obj_elf_common): Allow the alignment field to
522 not be specified.
523
524 Wed Oct 6 13:01:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
525
526 * config/tc-mips.c (cons_fix_new_mips): New function. Turn
527 BFD_RELOC_64 into BFD_RELOC_32.
528 * config/tc-mips.h (TC_CONS_FIX_NEW): Define.
529 (cons_fix_new_mips): Declare.
530
531 Changes to let cons handle bignums like general expressions.
532 * expr.h (expressionS): New field X_unsigned.
533 * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for
534 unary minus case.
535 (expr) Fix typo resultP to right if missing operand. Set
536 X_unsigned to 1 when building new expression.
537 * read.c (potable): Make "octa" and "quad" call cons, not
538 big_cons.
539 (cons): Handle bignums. If given an O_constant (small integer) to
540 fill a big space, turn it into a bignum.
541 (parse_bitfield_cons): Set X_unsigned field.
542 (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons):
543 Removed.
544 * read.h (big_cons): Remove prototype.
545 * symbols.c (resolve_symbol_value): Don't give a warning if a
546 symbol in expr_section can not be resolved.
547 (S_SET_VALUE): Clear X_unsigned.
548 * write.c (write_object_file): If resolve_symbol_value failed on a
549 symbol we are writing out, give a warning.
550 * config/tc-h8500.c (parse_reglist): Set X_unsigned.
551 * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to
552 call pa_cons, not pa_big_cons.
553 (pa_big_cons): Remove.
554 * config/tc-hppa.h (pa_big_cons): Remove declaration.
555 * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons,
556 not big_cons.
557
558 Tue Oct 5 10:53:36 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
559
560 * doc/as.texinfo (Copying): new node, to handle the recent changes
561 in the texinfo/gpl.texinfo file
562
563 Mon Oct 4 17:10:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
564
565 * read.c (big_cons): Handle "0" correctly.
566
567 * config/tc-mips.c (md_begin): Set target_big_endian correctly.
568
569 Mon Oct 4 15:37:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
570
571 * config/tc-m68k.c (m68k_ip): Mode 7.3 operand using PC should
572 have pc-relative fixup.
573 (md_parse_option): Move "-k" case down near "-pic" case.
574
575 * configure.in: Alphabetize list of cpu type alternatives. Enable
576 OS values of "linux*elf*" and "linux*coff*" to select those
577 formats, with linux emulation. Don't bother checking for upper-
578 or mixed-case versions of "ose".
579
580 Thu Sep 30 11:05:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
581
582 * config/z8k.c (md_pseudo_table): add "unseg".
583
584 Wed Sep 29 16:15:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
585
586 * config/m88k-opcode.h (m88k_opcodes): correct a few mistakes
587 found while extending the dissassembler.
588
589 Tue Sep 28 12:02:04 1993 Stan Shebs (shebs@rtl.cygnus.com)
590
591 * configure.in: Split i386 LynxOS out from other coff targets,
592 add a specific Lynx emulation.
593 Add m68k LynxOS target.
594 * config/tc-i386.c: Define specific Lynx target format.
595 * config/tc-m68k.c: Define specific Lynx target format.
596 * config/te-lynx.h: New file.
597
598 * config/obj-coffbfd.h: Don't set TARGET_FORMAT to be
599 "coff-{i386,m68k}" if TARGET_FORMAT already defined.
600 (INIT_STAB_SECTION): Define.
601 * config/obj-coffbfd.c: Include <time.h>.
602 (write_object_file): Look for .stab sections and call
603 adjust_stab_section.
604 (adjust_stab_section): New function, fills in the first symbol
605 of a stab section with number of symbols and string table size.
606 (obj_coff_init_stab_section): New function, creates the initial
607 symbol for a stab section.
608
609 Mon Sep 27 15:21:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
610
611 * config/atof-vax.c (md_atof): Return null on success instead of
612 empty string.
613 * config/atof-tahoe.c (md_atof): Ditto.
614 * read.c (float_cons): Expect a null pointer for success, not an
615 empty string.
616
617 * hash.c (hash_insert, hash_jam, hash_grow): Return null pointer
618 on success, instead of empty string. All callers changed.
619
620 * config/tc-vax.c: Use PARAMS in declarations.
621 (vip_op): Use NULL instead of empty string for success in error
622 and warning fields.
623
624 Sun Sep 26 23:45:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
625
626 * expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of two symbols
627 in different defined segments.
628
629 * write.c (relax_segment): Localize "aim" variable. If
630 DIFF_EXPR_OK, don't impose checks on symbol segment types.
631 (fixup_segment) [DIFF_EXPR_OK]: If sub_symbolP is in the current
632 segment, convert to a PC-relative fixup and discard the symbol.
633
634 * config/tc-m68k.c (flag_want_pic): New variable, mostly ignored.
635 (md_parse_option) [TE_SUN3]: Set it for "-k".
636 (m68k_ip): Generate proper fixup for mode 7.3.
637 * config/tc-m68k.h (DIFF_EXPR_OK): Define.
638
639 Sat Sep 25 05:08:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
640
641 * config/tc-m68k.c (struct m68k_incant, getone, gettwo): Moved
642 earlier in the file.
643 (insop, add_exp): Now defined as functions, for readability.
644 (insop): Now takes two arguments; callers changed.
645
646 Fri Sep 24 12:37:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
647
648 * config/tc-m88k.c (get_o6): new function.
649 (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg,
650 get_vec9, getval, get_pcr, calcop, match_name): make static and
651 prototype.
652 (s_file): remove extraneous forward decl.
653 (md_begin): add const to retval decl.
654 (calcop): cope with instructions without arguments. Handle 'o'
655 type argument, the o6 field of the prot insn.
656 (md_estimate_size_before_relax): return a dummy value.
657
658 * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
659 in bits 10 through 7. flt.[dxs]s requires an r register in the
660 second argument. New instruction lda.x. New instruction muls
661 (alias for mul).
662
663 Fri Sep 24 13:43:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
664
665 * Makefile.in (distclean): Recurse like clean.
666 * doc/Makefile.in (distclean): New target.
667
668 * config/tc-mips.c (md_begin): Set BFD architecture and machine
669 based on MIPS ISA level.
670
671 Thu Sep 23 17:58:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
672
673 * as.c (main): "exhausted", not "exhuasted".
674
675 * struc-symbol.h (struct symbol): Add sy_used_in_reloc field.
676 * write.c (adjust_reloc_syms): Set sy_used_in_reloc.
677 (write_object_file): Never strip symbols with sy_used_in_reloc
678 set.
679
680 * config/obj-elf.c (obj_elf_section): Rewrote to handle both
681 Solaris and SVR4 style .section pseudo-ops.
682 (obj_elf_ident): Set SEC_READONLY for .comment section.
683 * config/tc-sparc.c (md_apply_fix): If this is ELF, and we're
684 generating a reloc, don't apply a fix.
685
686 Thu Sep 23 13:16:58 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
687
688 * config/obj-coffbfd.c (relax_align): Now static.
689
690 Mon Sep 20 19:23:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
691
692 * read.c (get_stab_string_offset): Make non-static. Make
693 arguments const. Don't align strings to 4 byte boundaries.
694 * read.h: Declare get_stab_string_offset.
695 * config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as
696 SEC_LOAD for progbits section.
697 (obj_elf_init_stab_section): New function.
698 (adjust_stab_sections): Add casts to avoid warnings.
699 * config/obj-elf.h (INIT_STAB_SECTION): Call
700 obj_elf_init_stab_section.
701 (OBJ_PROCESS_STAB): Removed definition.
702
703 Fri Sep 17 18:12:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
704
705 * config/obj-elf.h (S_GET_SIZE): Define.
706 (obj_frob_forward_symbol): Define.
707 * config/tc-i386.c (line_comment_chars): Initialize in all cases.
708
709 Thu Sep 16 14:23:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
710
711 * tc.h: Declare tc_gen_reloc differently depending upon
712 RELOC_EXPANSION_POSSIBLE.
713 * config/obj-elf.c (obj_elf_section): Only set flags when first
714 creating the section.
715
716 Wed Sep 15 12:15:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
717
718 * config/tc-mips.c (append_insn): Don't swap a trap instruction
719 with a branch.
720
721 Tue Sep 14 13:31:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
722
723 * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
724 set previous_section and previous_subsection and then call s_data
725 and s_text, respectively.
726 (obj_pseudo_table): Add data and text.
727 (obj_elf_section): Add SEC_LOAD to default initialization of
728 flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as
729 SEC_ALLOC for "alloc" string. Don't bother trying to find the
730 section; just use subseg_new.
731
732 * read.c (change_to_section): Removed. This is now done by
733 subseg_new.
734 (get_stab_string_offset): Rearranged somewhat. Create the section
735 using subseg_new. Store the string index in seg_info, rather than
736 in a static variable. Force the first string to be empty. Use
737 frag_more rather than FRAG_APPEND_1_CHAR.
738 (s_stab_generic): Rewrote.
739 * subsegs.h (segment_info_type): Added stabu union.
740 * subsegs.c (subseg_new): Initialize stab_string_size to 0.
741 * config/obj-aout.c: Don't include aout/stab_gnu.h.
742 (obj_aout_stab, obj_aout_desc): Removed.
743 (obj_pseudo_table): Removed desc and stabX entries.
744 * config/obj-bout.c: Same changes as config/obj-aout.c.
745 * config/obj-bout.h (S_SET_TYPE): Define.
746 (tc_bout_fix_to_chars): Declare.
747 * config/obj-coff.c (obj_coff_stab): Removed.
748 (obj_pseudo_table): Removed desc and stabX entries.
749 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
750 * config/obj-coffbfd.c (current_stab_symbol): Removed.
751 * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
752 n_other, n_desc and n_value fields.
753 (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
754 (MAKE_STAB_SYMBOL): Removed.
755 * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
756 Changed arguments and removed parsing code.
757 (obj_pseudo_table): Removed stabX entries.
758 * config/obj-ecoff.h (ecoff_stab): Declare.
759 (OBJ_PROCESS_STAB): Define.
760 * config/obj-elf.c: Don't include aout/stab_gnu.h.
761 (obj_elf_stab, obj_elf_xstab, obj_elf_desc,
762 elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
763 Removed.
764 (obj_pseudo_table): Removed desc, stabX and xstabs entries.
765 (obj_elf_version): Use subseg_new, not bfd_make_section. Don't
766 set SEC_LOAD for .note section.
767 (adjust_stab_sections): Get frag pointer from seg_info, rather
768 than looking through frags.
769 * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
770 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
771 Define.
772 * config/obj-vms.c (obj_aout_stab): Removed.
773 (obj_pseudo_table): Removed stabX entries.
774 * config/obj-vms.h (S_SET_TYPE): Define.
775
776 * as.h: Declare listing.
777 * read.c: Don't declare listing.
778 (emit_expr): Cast fix_new_exp argument.
779 (parse_bitfield_cons): Correct printf format.
780 * symbols.c (symbol_new): Add cast to avoid warning.
781 * write.h: Declare text_last_frag and data_last_frag.
782 * config/obj-bout.c (obj_bout_line): Added dummy argument.
783 * config/obj-coffbfd.c: Add some casts to avoid warnings.
784 * config/tc-a29k.c: Likewise.
785 * config/tc-i960.c: Likewise. Also fully bracket structure
786 initializations, fix printf formats, and remove unused variables.
787
788 Mon Sep 13 16:48:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
789
790 * read.c (s_desc): Only compile and use if S_SET_DESC is defined.
791 * struc-symbol.h: Declare verify_symbol_chain and
792 verify_symbol_chain_2 even if not SYMBOLS_NEED_BACKPOINTERS.
793 * symbols.c (verify_symbol_chain): Removed useless expression.
794 * write.c (headers, the_object_file): Only use if not
795 BFD_ASSEMBLER and not BFD.
796 (fixup_segment, cvs_frag_to_fill): Only use if BFD_ASSEMBLER or
797 not BFD.
798 (merge_data_into_text): Only use if BFD_ASSEMBLER or (not BFD and
799 not OBJ_AOUT).
800 * write.h: Declare relax_segment.
801 * config/obj-coffbfd.c (stack_pop, stack_push, stack_init): Made
802 static.
803 (stack_top): Commented out, since it's not used.
804 Fixed up pseudo-op functions to take an ignored int argument.
805 (size_section): Added default BAD_CASE to switch.
806 Changed bzero calls to memset.
807 * config/obj-coffbfd.h (S_IS_LOCAL): Call strchr on S_GET_NAME
808 (s), not on s itself.
809 * config/tc-a29k.c (s_use): Take ignored int argument. Only
810 define if OBJ_COFF is not defined.
811 * config/tc-i386.c: (fits_in_signed_byte, smallest_imm_type): Make
812 argument signed again.
813 * config/tc-m68k.c (s_bss, s_even, s_proc): Take ignored int
814 argument.
815 (m68k_ip): Fully bracket initialization of archs.
816 Correct several formats for __LINE__ to be %d rather than %s.
817 (init_table): Fully bracket initialization.
818 Cast values larger than 0x7f assigned to fr_opcode to char.
819
820 * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
821 Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
822 section name, and subseg_set always takes a segT. Changed all
823 callers as appropriate.
824 * config/obj-coffbfd.c (change_to_section): Renamed to
825 obj_coff_add_segment. Corrected. Made callers use subseg_new.
826 * config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
827 Define.
828
829 Mon Sep 13 13:15:03 1993 Doug Evans (dje@canuck.cygnus.com)
830
831 * config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
832
833 Fri Sep 10 11:22:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
834
835 * config/obj-elf.h (S_SET_SIZE): Actually set the size.
836
837 Gcc lint.
838 * Added a number of casts to function calls.
839 * app.c (do_scrub_begin), as.c (main), expr.c (integer_constant,
840 operand, expr), read.c (read_begin, HANDLE_CONDITIONAL_ASSEMBLY,
841 read_a_source_file, s_align_bytes, demand_empty_rest_of_line,
842 ignore_rest_of_line, big_cons, is_it_end_of_statement, s_ignore),
843 read.h (is_name_beginner, is_part_of_name), config/obj-elf.c
844 (obj_elf_section), config/tc-i386.c (parse_register),
845 config/tc-sparc.c (isoctal, s_proc): Cast char
846 array indices to unsigned char.
847 * app.c (process_escape): Make static. Add prototype. Change
848 argument from char to int.
849 * as.c: Include output-file.h for prototypes. Comment out unused
850 function got_sig.
851 * Makefile.in (as.o): Depend on output-file.h.
852 * as.h (BAD_CASE): Cast val argument to long, and use %ld.
853 (pseudo_typeS): Add prototype to poc_handler field.
854 (print_version_id): Add prototype.
855 (xmalloc, xrealloc): Change size arguments to unsigned long.
856 (do_scrub_next_char): Add prototypes for function arguments.
857 (had_errors, had_warnings, scrub_from_file): Remove duplicate
858 declarations.
859 * atof-generic.c (atof_generic): Make size variables unsigned.
860 * cond.c (ignore_input): Removed unused local variable ptr.
861 * expr.c (floating_constant, integer_constant): Make static. Add
862 prototypes.
863 * flonum-copy.c (flonum_copy): Make size variables unsigned.
864 * frags.h: Add prototype for frag_init.
865 * hash.h, hash.c: Change hash values from char * to PTR, make hash
866 strings const, make returned error strings const char *. Added
867 prototypes for functions.
868 * input-file.h, input-file.c (input_file_buffer_size): Return
869 unsigned int.
870 * input-scrub.c (buffer_length): Make unsigned.
871 (input_scrub_push, input_scrub_pop): Make static.
872 * listing.c (list_symbol_table): Cast sprintf argument to unsigned
873 long and use %lx. Print name of segment rather than address of
874 structure.
875 (listing_list, listing_title): Change argument to int.
876 (listing_eject, listing_flags, listing_psize): Add int argument.
877 * listing.h: Corresponding declaration changes.
878 * obj.h (obj_emit_symbols): Rename prototype argument to avoid
879 shadowing.
880 * read.h: Change get_absolute_expression prototype to return
881 offsetT. Add prototype for next_char_of_string. Various
882 prototype changes.
883 * read.c: Remove prototype for next_char_of_string.
884 (pobegin): Make errtxt const. Make new_length, tmp_len and num
885 unsigned.
886 (s_abort, s_align_ptwo, s_comm, s_data, s_app_line, s_fill,
887 s_globl, s_lsym, s_org, s_set, s_text, s_desc): Add int argument.
888 Change all callers.
889 (s_comm): Change temp from valueT to offsetT. Cast to long when
890 printing and use %ld (only for error messages anyhow).
891 (s_long, s_int): Remove unused functions.
892 (cons): Change argument to int.
893 (emit_expr): Use %lx when printing longs.
894 (get_absolute_expression): Return offsetT, not long.
895 (get_stab_string_offset): Comment out unless
896 SEPARATE_STAB_SECTIONS.
897 (s_stab_generic): Remove unused offset. Define seg_is_new only
898 if SEPARATE_STAB_SECTIONS. Use toP only in local block.
899 * struc-symbol.h (verify_symbol_chain_2): Add prototype.
900 * symbols.c: Remove nested comment.
901 (symbol_new): Rename value to valu.
902 (colon): Use %ld and cast to long in error message.
903 * symbols.h: Remove duplicate verify_symbol_chain declaration.
904 * tc.h: Remove unused md_emit_relocations declaration.
905 (tc_gen_reloc): Add declaration.
906 * write.c (cvt_frag_to_fill): Change first argument name depending
907 on BFD_ASSEMBLER.
908 (write_relocs): Remove unused offset, frags. Remove tc_gen_reloc
909 declarations. Make n unsigned.
910 (write_contents): Remove unused i, n, relocs, fixp. Rename frags
911 to f to avoid shadowing.
912 (write_object_file): Define fragP only if not BFD_ASSEMBLER or not
913 WORKING_DOT_WORD. Remove unused keep. Only declare punt and
914 punt_it if they will be used. Make i and n unsigned.
915 (fixup_segment): Cast to long and use %ld in error message.
916 * xmalloc.c (xmalloc, xrealloc): Make size argument unsigned.
917 * config/obj-aout.h: Remove nested comment. Add prototype for
918 obj_aout_frob_symbol.
919 (obj_aout_line, obj_aout_desc): Add int argument.
920 * config/obj-ecoff.c: Changed build routines to use an unsigned
921 offset.
922 (add_string): Make len unsigned long.
923 (obj_ecoff_stab): Use %lu in error message.
924 * config/obj-elf.c (obj_elf_common): Comment out unused label
925 allocate_bss.
926 (obj_elf_frob_symbol): Return 0 (currently broken).
927 (obj_elf_desc, obj_elf_version, obj_elf_size, obj_elf_type,
928 obj_elf_ident, obj_elf_weak, obj_elf_local, obj_elf_common,
929 obj_elf_line, obj_elf_previous): Add int argument.
930 (obj_elf_write_symbol_p): Make static.
931 * config/obj-elf.h (obj_elf_write_symbol): Add prototype.
932 * config/tc-hppa.h: Remove declarations of functions declared in
933 read.h.
934 * config/tc-i386.c (ENCODE_RELAX_STATE): Cast to relax_substateT.
935 (s_bss): Add int argument.
936 (fits_in_signed_byte, smallest_imm_type): Make argument unsigned.
937 (dummy): Remove unused function.
938 (md_assemble): Rename local o to op to avoid shadowing.
939 (tc_gen_reloc): Rename local reloc to rel to avoid shadowing.
940 * config/tc-m68k.c (s_data1, s_data2): Add int argument.
941 * config/tc-mips.c (mips_ip, md_apply_fix): Cast to long and use
942 %ld in error messages.
943 * config/tc-sparc.c: Remove duplicate declarations.
944 (getExpression): Rewrite condition to avoid empty conditional
945 body.
946 (s_reg, s_proc, s_reserve, s_common, s_seg, s_xword): Add int
947 argument.
948
949 Thu Sep 9 17:10:00 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
950
951 Changes from Jeff Law:
952
953 * config/tc-hppa.c (md_assemble): Fix typo.
954 (pa_ip): Delete unused variables and labels. Do not check for
955 unsigned values being < 0, it can't happen.
956 (is_same_frag): Return a value in recursive call case.
957 (pa_callinfo): Delete unused variables and labels.
958 (pa_comm): Likewise.
959 (pa_copyright): Likewise.
960 (pa_export): Likewise.
961 (pa_import): Likewise.
962 (pa_param): Likewise.
963 (pa_space): Likewise.
964 (pa_subspace): Likewise.
965
966 Thu Sep 9 15:05:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
967
968 * read.c (get_stab_string_offset, s_stab_generic): If
969 BFD_ASSEMBLER, call subseg_set rather than subseg_new.
970
971 Wed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
972
973 * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
974 default flag values.
975
976 Tue Sep 7 10:22:52 1993 Stan Shebs (shebs@rtl.cygnus.com)
977
978 * read.c: (change_to_section): Don't include body if not MANY_SECTIONS.
979
980 * read.c: (s_stab, s_xstab, s_desc): New functions to parse
981 various stab-related directives.
982 * read.h: (s_stab, s_xstab, s_desc): New function prototypes.
983 * write.c: (merge_data_into_text): Fix ifdef tangle.
984 * config/obj-coffbfd.c (current_stab_symbol): Fake symbol
985 for stab reader to use.
986 * config/obj-coffbfdh.h (obj_symbol_type): Added fields for
987 stab reader, macros to access.
988
989 Fri Sep 3 16:44:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
990
991 * config/obj-elf.h (elf_symbol): Fixed name of elf_symbol_type.
992
993 * config/tc-hppa.h (struct default_subspace_dict, struct
994 default_space_dict): Field "sort" is now unsigned char.
995
996 * config/tc-hppa.c (pa_def_subspaces, pa_def_spaces): Align
997 columns for easier reading.
998 (bcmp, index): Deleted USG-specific definitions. Should be dealt
999 with in ho-*.h, or in libiberty. Changed mention of index to
1000 strchr.
1001 (label_symbolP, label_symbol_defined, callinfo_found,
1002 within_entry_exit, exit_processing_complete, within_procedure,
1003 pa_def_subspaces, pa_def_spaces, pa_pseudo_op_moves_pc,
1004 label_symbols_rootP, pa_get_label, pa_label_is_defined,
1005 pa_undefine_label): Now static.
1006 (movers): Now const, in addition to pointing to const data.
1007 * config/tc-hppa.h (label_symbolS_rootP, pa_get_label,
1008 pa_label_is_defined, pa_undefine_label, pa_pseudo_op_moves_pc):
1009 Delete declarations.
1010
1011 Merged more changes from Jeff Law and Pete Hoogenboom:
1012
1013 * config/tc-hppa.c (pa_def_subspaces, pa_def_subspaces): Remove
1014 entries for .stab and .stabstr.
1015
1016 * config/obj-elf.c: (elf_stab_symbol_string): Set the
1017 SEC_LOAD attribute for the .stabstr section.
1018 (obj_elf_stab_generic): Set the SEC_LOAD attribute for the
1019 .stab section.
1020 (obj_elf_stab_generic): Change '#if 1' to '#if 0'.
1021 (obj_elf_stab_generic): Incorrect byte count on call to
1022 md_number_to_chars function.
1023
1024 * config/tc-hppa.c (hppa_tc_symbol): Static functions need
1025 argument relocation bits too.
1026
1027 * config/tc-hppa.c (pa_stringer): Correctly handle escaping
1028 characters which should appear unaltered in the output string (for
1029 example an escaped double-quote).
1030
1031 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Always
1032 initialize name.
1033 (pa_parse_neg_cmpsub_cmpltr): Likewise.
1034 (pa_parse_nonneg_add_cmpltr): Likewise.
1035 (pa_parse_neg_add_cmpltr): Likewise.
1036
1037 * config/tc-hppa.h (parse_cons_expression_hppa): Remove prototype
1038 for now.
1039 (cons_fix_new_hppa): Likewise.
1040 * config/tc-hppa.c (md_apply_fix): Fix type of valp to match
1041 prototype.
1042
1043 * config/tc-hppa.c: Include libhppa.h.
1044
1045 * config/tc-hppa.h: Delete extern declarations of functions
1046 found in libhppa.h.
1047
1048 * config/tc-hppa.c (pa_space): Rework to avoid unwanted #ifdef
1049 OBJ_ELF conditionals.
1050 * config/tc-hppa.h (LOCAL_LABEL): Correctly identify local labels
1051 on the PA.
1052
1053 Thu Sep 2 10:43:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1054
1055 * config/tc-mips.c (macro_build): Accept 'z', and ignore it.
1056 (macro): Use "z,s,t" for div instructions to match corresponding
1057 change in opcode table.
1058 (mips_ip): Added 'z'--must be zero register.
1059
1060 Wed Sep 1 15:56:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1061
1062 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Declare
1063 tc_gen_reloc correctly.
1064
1065 * configure.in: Use "case" instead of "if" when possible. Rewrote
1066 Makefile editing to reduce work done. Treat "hppa*" as "hppa".
1067
1068 Wed Sep 1 12:19:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1069
1070 * config/obj-coffbfd.c (obj_coff_section): add 'd' as an alias for
1071 section type of data. 'd' seems to be used for m88k.
1072
1073 Wed Aug 25 22:33:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1074
1075 * config/tc-mips.c (mips_align, s_stringer, s_cons, s_float_cons,
1076 s_mips_space): Set insn_label to NULL to avoid changing it at the
1077 next .align statement.
1078 (append_insn): Don't swap jal with instruction that sets the
1079 register that jal sets.
1080
1081 Wed Aug 25 16:15:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1082
1083 * configure.in: recognize m88110.
1084
1085 Wed Aug 25 13:37:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1086
1087 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
1088 * config/tc-hppa.c (pa_build_unwind_subspace): SEC_ALLOC should
1089 not be on for .hppa_unwind.
1090 (md_pseudo_table): .PARAM and .param are valid pseudo-ops for GAS.
1091 (pa_param): New function to handle .PARAM directives.
1092 (pa_ip): Pass "isbranch" argument down to pa_parse_*_compltr
1093 functions. Handle '|' for movb; allow movb,n.
1094 (pa_parse_nonneg_cmpsub_cmpltr): Delete old useless
1095 version. Handle cases where no completer exists for
1096 comb,n or addb,n.
1097 (pa_parse_neg_cmpsub_cmpltr): Handle cases where no
1098 completer exists for comb,n or addb,n. Make logic
1099 mirror that of pa_parse_nonneg_cmpsub_cmpltr.
1100 (pa_parse_nonneg_add_cmpltr): Likewise.
1101 (pa_parse_neg_add_cmpltr): Likewise.
1102 * tc-hppa.h (pa_param): Declare.
1103
1104 Tue Aug 24 15:41:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1105
1106 * config/tc-hppa.c (hppa_tc_make_symextn_section): Now static.
1107 Added forward declaration.
1108
1109 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
1110
1111 * config/obj-elf.c (elf_frob_file): Arguments were incorrect on
1112 call to elf_tc_make_sections.
1113 (obj_elf_version): A .note section shouldn't have the SEC_ALLOC
1114 attribute.
1115
1116 * config/tc-hppa.c (hppa_tc_make_sections): Add some processing to
1117 handle symbol extension sections.
1118
1119 * config/tc-hppa.c (pa_build_symextn_section): New function to
1120 create a symbol extension section.
1121 (pa_export_args): Make call to pa_build_symextn_section.
1122 (hppa_tc_symbol, hppa_tc_make_sections,
1123 hppa_tc_make_symextn_section): New functions.
1124 * config/tc-hppa.h: Update elf_tc_symbol and elf_tc_make_sections
1125 macros.
1126
1127 * read.c (emit_expr): Place check for TC_CONS_FIX_NEW in the
1128 BFD_ASSEMBLER branch as well.
1129
1130 * config/tc-hppa.h: If ELF is the target object format, define
1131 some ELF- and hppa-specific types and constants.
1132
1133 * config/tc-hppa.c (getExpression): Fix a typo.
1134
1135 * read.c (read_a_source_file): Use TC_EQUAL_IN_INSN to determine
1136 if a `=' is part of an instruction.
1137 (read_a_source_file): Handle case where end-of-line markers are
1138 also used within instructions.
1139 * config/tc-hppa.h (TC_EQUAL_IN_INSN, TC_EOL_IN_INSN): Define.
1140
1141 * config/tc-hppa.c (md_apply_fix_1): Keep relocations for
1142 out-of-range branches/'calls using "bl" or calls which may need
1143 argument relocation stubs. Do not need/keep relocations for
1144 conditional branches.
1145 (elf_hppa_final_processing): Fix calculation of function size.
1146
1147 * config/obj-elf.c (obj_elf_version): Mark .note section as
1148 READONLY.
1149
1150 * config/tc-hppa.c (parse_cons_expression_hppa): Pass exp, not the
1151 address of exp, to expression.
1152 (pa_build_unwind_subspace): Turn SEC_HAS_CONTENTS flag on.
1153 (md_apply_fix_1): Delete unwanted comments.
1154 (process_exit): Symbols marking the end of a function are always
1155 BSF_LOCAL.
1156
1157 * config/tc-hppa.c: Include elf32-hppa.h from BFD tree.
1158 (pa_space): Declare and initialize gdb_section.
1159
1160 * config/obj-elf.c (elf_frob_file): Change
1161 elf_tc_final_processing_hook to elf_tc_final_processing.
1162
1163 * config/tc-hppa.c (fix_new_hppa): Fix argument list to match
1164 argument type declarations.
1165 (getExpression): Fix typo.
1166 (pa_export_args): Change elf_symbol_type to elf32_symbol_type.
1167 (elf_hppa_final_processing): Likewise. Name changed from
1168 elf_hppa_final_processing_hook.
1169 (start_symbol_root, start_symbol_last): Deleted.
1170
1171 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION): Fix typo.
1172
1173 * config/tc-hppa.h: Replace "symbolS" with "struct symbol" to
1174 avoid changing include ordering.
1175
1176 * config/tc-hppa.c (pa_ip, case 'y'): Handle just like 't'.
1177
1178 Mon Aug 23 12:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1179
1180 * config/tc-mips.c (set_at): Added unsignedp argument. Use
1181 load_register.
1182 (set_at_unsigned): Removed; changed callers to use set_at.
1183 (load_register): Removed unused ip argument. Changed callers.
1184 (append_insn): Don't swap branch and branch likely.
1185 (macro_build): Handle 'u'.
1186 (load_register): Handle 64 bit constants.
1187 (macro): Added M_DABS, removed M_ABSU. Numerous changes to
1188 support 64 bit constants.
1189 (mips_ip): Use hex constants in range checks for clarity.
1190 (md_number_to_chars): Support 8 byte values.
1191
1192 Fri Aug 20 16:50:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1193
1194 * config/tc-m88k.h: updated copyrights.
1195 (TC_CONS_RELOC): declare to be RELOC_32.
1196
1197 Fri Aug 20 11:16:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1198
1199 * config/tc-mips.c (mips_isa): New static variable.
1200 (md_begin): Initialize mips_isa based on TARGET_CPU. Don't sanity
1201 check macros. Set text alignment and GP size here.
1202 (md_assemble): Don't set text alignment and GP size here.
1203 (append_insn): Don't insert NOPs for load delays if mips_isa >= 2.
1204 Use the right mask and shift for WRITE_FPR_T and WRITE_FPR_S. Add
1205 a NOP after a branch likely.
1206 (mips_emit_delays): Don't insert NOPS for load delays if mips_isa
1207 >= 2.
1208 (macro): Support r6000 and r4000 macros.
1209 (mips_ip): Check insn ISA level against mips_isa before using it.
1210 Added 'x' case for ignored register.
1211 (md_parse_option): Handle -mipsN and -mcpu=XX.
1212
1213 Fri Aug 20 01:26:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1214
1215 * config/tc-i386.c (md_pseudo_table) [OBJ_ELF]: Handle ".zero".
1216
1217 Thu Aug 19 12:15:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1218
1219 * config/tc-sparc.c (s_local): Function moved and renamed...
1220 * config/obj-elf.c (obj_elf_local): ...to here.
1221 * config/tc-sparc.c (md_pseudo_table), config/obj-elf.c
1222 (obj_pseudo_table): Move handling of ".local".
1223
1224 * tc.h (md_parse_option): Don't declare if defined as a macro.
1225
1226 * config/tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as
1227 BFD_RELOC_NONE.
1228 (md_parse_option): New macro, converted from function.
1229 * config/tc-i386.c (md_parse_option): Function deleted.
1230 (comment_chars) [OBJ_ELF]: Include "/".
1231 (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/".
1232 (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler
1233 warning.
1234 (md_assemble, md_estimate_size_before_relax, md_create_long_jump):
1235 Call reloc for fix_new type, or use correct enumerator, instead of
1236 always using NO_RELOC.
1237 (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for
1238 tests for valid section.
1239 (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start
1240 address.
1241 (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with
1242 symbol, compensate for location of reloc.
1243 (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define
1244 to return zero.
1245
1246 Wed Aug 18 16:51:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1247
1248 * config/obj-elf.c: Undef NO_RELOC before including aout/aout64.h.
1249 (obj_elf_weak): New function.
1250 (obj_pseudo_table): Handle ".weak".
1251 (obj_elf_section): If section directive includes a string, ignore
1252 it for now. Accept "progbits" flag.
1253 (obj_elf_type): Accept `@' before flag name.
1254
1255 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Get rid of `if(1)'
1256 condition.
1257 (fixup_segment) [BFD_ASSEMBLER]: Use bfd_is_com_section, rather
1258 than checking for bfd_com_section directly.
1259 (fixup_segment): Simplify range check.
1260 (fixup_segment) [OBJ_COFF && TC_I960]: Simplify cpp condition
1261 test.
1262
1263 * symbols.h (S_SET_WEAK): Declare.
1264 * symbols.c (S_SET_WEAK): New function.
1265 (S_SET_EXTERNAL, S_CLEAR_EXTERNAL): Don't bother with BSF_EXPORT,
1266 it's not a separate flag any more. Clear BSF_WEAK.
1267
1268 * read.c (potable): Treat "string" like "asciz".
1269
1270 Wed Aug 18 15:30:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1271
1272 * config/tc-mips.c (append_insn): Don't swap branch instructions
1273 if .set nobopt or .set volatile.
1274 (gp_reference): .lit8 and .lit4 are accessed via the GP register.
1275 (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD.
1276 (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point.
1277 * config/obj-ecoff.c: Renamed some variables to avoid shadow
1278 warnings.
1279
1280 Mon Aug 16 14:16:02 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1281
1282 * config/obj-coff.h (S_IS_COMMON): add missing backslash
1283
1284 * configure.in (z8k-*-{coff,sim}): use coffbfd for this target
1285
1286 Thu Aug 12 11:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1287
1288 * config/tc-mips.c (mips_ip): Suggested by
1289 davidj@ICSI.Berkeley.EDU (David Johnson): Don't accept symbolic
1290 names for 'E' and 'G' argument types (coprocessor registers) and
1291 don't warn if $1 is used on the coprocessor.
1292 (macro): Handle M_{L,S}WC{0,2,3}_AB correctly.
1293
1294 Mon Aug 9 12:09:14 1993 Doug Evans (dje@canuck.cygnus.com)
1295
1296 * read.c (emit_expr): Use BFD_RELOC_16 for 2-byte values.
1297 * config/tc-sparc.c (md_apply_fix, tc_gen_reloc): Handle
1298 BFD_RELOC_16.
1299 * config/tc-sparc.h (WORKING_DOT_WORD): Define.
1300
1301 Mon Aug 9 13:36:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1302
1303 * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER is
1304 defined or BFD is not.
1305 (relax_and_size_all_segments): Declare local variable fragP.
1306
1307 Fri Aug 6 15:22:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1308
1309 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_32): Fill in
1310 bytes with real values, not zeros.
1311
1312 Fri Aug 6 10:57:59 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1313
1314 * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested)
1315 targets, using ecoff and mips-big.
1316
1317 * config/tc-mips.c (mips_ip): From davidj@ICSI.Berkeley.EDU (David
1318 Johnson): Added case for 'C' for coprocessor instruction codes.
1319
1320 Thu Aug 5 13:08:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1321
1322 * config/obj-elf.c (obj_pseudo_table): Handle ".8byte".
1323
1324 * read.c (emit_expr): Use BFD_RELOC_64 for 8-byte expressions.
1325
1326 * write.c (write_object_file): Test DEBUG_SYMS instead of DEBUG
1327 for verifying symbol chain.
1328 (merge_data_into_text, relax_and_size_all_segments): New
1329 functions, split out from write_object_file.
1330
1331 Tue Aug 3 15:43:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1332
1333 * config/obj-elf.c (obj_elf_stab_generic, in disabled code): If
1334 debug section is new, allocate an extra 12 bytes at its start. If
1335 ".stabs" type is N_SO, fill in filename symbol field of that first
1336 entry. Return early if "goof", to simplify later code slightly.
1337 (adjust_stab_sections): New function.
1338 (elf_frob_file): Apply adjust_stab_sections to each section.
1339
1340 * config/obj-elf.c (obj_elf_section, obj_elf_previous): No longer
1341 static.
1342 * config/obj-elf.h (obj_elf_section, obj_elf_previous): Declare.
1343 * config/tc-sparc.c (md_pseudo_table): Call them for "pushsection"
1344 and "popsection", and call cons for "uaword" and "uahalf".
1345
1346 * config/obj-elf.c (obj_elf_version): Use English in error
1347 messages.
1348
1349 Tue Aug 3 11:29:06 1993 Ian Lance Taylor (ian@cygnus.com)
1350
1351 * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets the
1352 swapping routines and external structure sizes via the
1353 ecoff_backend information. No longer includes coff/mips.h.
1354
1355 Mon Aug 2 17:35:48 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1356
1357 * config/obj-ecoff.c (get_tag): Save tag name in permanent memory
1358 and in hash_ptr->string.
1359
1360 * app.c (do_scrub_next_char): Reset state to 0 after .appline if
1361 file name is not seen.
1362
1363 Thu Jul 29 22:21:28 1993 Ian Lance Taylor (ian@cygnus.com)
1364
1365 * write.c: Don't use short int in a prototype.
1366
1367 * expr.c (operand): Make return value simply depend on contents of
1368 returned expression.
1369
1370 Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1371
1372 * configure.in: sparc*-aout and sparc*-vxworks are BFD assemblers
1373
1374 Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1375
1376 * config/ho-sunos.h: remove some old function decls that conflict
1377 w/ ANSI, and which weren't needed anyway
1378
1379 Wed Jul 28 16:34:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1380
1381 * config/obj-elf.h (obj_frob_symbol): Renamed from tc_frob_symbol,
1382 and disabled since it breaks Ian's new symbol-value code.
1383
1384 * expr.c (integer_constant): Accept more digits if BFD64.
1385
1386 Wed Jul 28 11:30:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1387
1388 * config/tc-m68k.c (m68k_ip): If we have a normal constant when we
1389 expect a bignum, turn it into a bignum. Output extra zeroes
1390 before a short bignum, rather than after.
1391
1392 Tue Jul 27 15:54:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1393
1394 * symbols.c (symbol_new): Conditionalize verify_symbol_chain call
1395 on DEBUG_SYMS, not DEBUG.
1396 (symbol_remove): Likewise.
1397 (symbol_insert): Likewise.
1398
1399 Tue Jul 27 08:45:05 1993 Ian Lance Taylor (ian@cygnus.com)
1400
1401 * config/tc-mips.c (mips_optimize): New static variable.
1402 (append_insn): If mips_optimize == 0, always insert NOP
1403 instructions. If mips_optimize < 2, don't swap branches.
1404 (md_parse_option): If -Ox or -gx, set mips_optimize accordingly.
1405
1406 Mon Jul 26 18:02:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1407
1408 * Makefile.in (clean): if testsuite does not exist, then skip it.
1409
1410 Fri Jul 23 14:13:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1411
1412 * config/tc-mips.c (prev_insn_unreordered,
1413 prev_prev_insn_unreordered): New static variables.
1414 (append_insn): Don't swap branch instruction if
1415 prev_prev_insn_unreordered (see comment).
1416 (mips_no_prev_insn): Clear the unreordered variables.
1417 (s_mipsset): When turning on reordering, set the unreordered
1418 variables.
1419
1420 Fri Jul 23 13:09:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1421
1422 * config/obj-elf.c (obj_elf_section): Sections ".init" and ".fini"
1423 are also magic, and have special default flag settings.
1424 (obj_elf_frob_symbol): Since the return value from this function
1425 isn't used, don't bother calling obj_elf_write_symbol_p, since it
1426 doesn't accomplish anything else.
1427
1428 * config/tc-sparc.c (md_section_align): Round up section size only
1429 for a.out format.
1430
1431 * symbols.c: Don't define DEBUG by default.
1432
1433 Thu Jul 22 12:09:41 1993 Ian Lance Taylor (ian@cygnus.com)
1434
1435 * write.c (fix_new_exp): Handle a O_uminus expression.
1436
1437 * expr.c (expr): Don't let absolute_section override
1438 undefined_section for the return value.
1439
1440 * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a
1441 pseudo-op with a poc_handler field of NULL, ignore it and treat it
1442 as an instruction instead.
1443 * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL
1444 poc_handler field.
1445
1446 * config/tc-h8500.c (md_begin): Use a local variable when
1447 initializing md_relax_table to avoid warnings about modifying a
1448 supposedly const data structure.
1449
1450 Thu Jul 22 10:58:51 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
1451
1452 * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER
1453 is defined.
1454
1455 Wed Jul 21 17:32:02 1993 Fred Fish (fnf@deneb.cygnus.com)
1456
1457 * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.
1458 * configure.in (case ${generic_target}): Add i[34]86-*-sysv4*
1459 case to set obj_format=elf. Must go before i386-*-sysv* case that
1460 sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and
1461 *-*-solaris case, and move to before *-sysv* case that wants to
1462 set obj_format to coff.
1463 * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to
1464 'exp->X_op'.
1465 * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for
1466 BFD_ASSEMBLER case.
1467
1468 Wed Jul 21 12:47:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1469
1470 * config/obj-aout.c: Include aout/aout64.h.
1471 (obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor
1472 symbol, so that BFD doesn't tamper with the type.
1473
1474 * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
1475 up opcodes as pseudo-ops even if they don't start with '.'.
1476 * config/tc-m88k.h (NO_PSEUDO_DOT): Define.
1477 * config/tc-m88k.c (md_assemble): Removed special pseudo-op
1478 handling.
1479 (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
1480 Output the low 16 bits for RELOC_HI16, not the high 16 bits.
1481 * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
1482 r_offset field of the reloc to the fixup offset.
1483 (fixup_segments): If TC_M88K, don't warn about fixup overflows.
1484 * doc/as.texinfo: Minor updates.
1485
1486 Tue Jul 20 19:28:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1487
1488 * Extensive changes to permit symbols to contain any expression
1489 type and to delay the computation of the expression until the
1490 value is actually needed. This permits setting symbols to values
1491 calculated based on object code size. Expressions were changed to
1492 no longer be in a section, to stop the overloading of segment and
1493 expression type that previously occurred.
1494
1495 * as.c (big_section, pass1_section, diff_section, absent_section):
1496 Removed.
1497 (expr_section): Added (used for dummy symbols which hold
1498 intermediate expression values).
1499 (perform_an_assembly_pass): Create expr_section, do not create the
1500 sections now removed.
1501 * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and
1502 SEG_DIFFERENCE. Added SEG_EXPR.
1503 (SEG_NORMAL): Corresponding changes.
1504 * subsegs.c (seg_name, subsegs_begin): Changed accordingly.
1505 * write.c (write_object_file): Ditto.
1506 * config/obj-aout.c (seg_N_TYPE): Ditto.
1507 * config/obj-bout.c (seg_N_TYPE): Ditto.
1508 * config/obj-coff.c (seg_N_TYPE): Ditto.
1509 * config/obj-coffbfd.c (seg_N_TYPE): Ditto.
1510 * config/obj-vms.c (seg_N_TYPE): Ditto.
1511
1512 * expr.h (operatorT): Moved in from expr.c, added some values.
1513 (expressionS): Added X_op field, removed X_seg field; renamed
1514 X_subtract_symbol to X_op_symbol.
1515 * expr.c: Extensive changes to assign expression types rather than
1516 sections and to simplify the parsing.
1517 * write.c (fix_new_internal): New static function.
1518 (fix_new): Removed sub_symbol argument.
1519 (fix_new_exp): New function, takes expression argument.
1520 * write.h: Prototype changes for fix_new and fix_new_exp.
1521 * cond.c (s_if): Changed accordingly.
1522 * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons,
1523 parse_repeat_cons, get_segmented_expression,
1524 get_known_segmented_expression, get_absolute_expression): Ditto.
1525 * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE):
1526 Ditto.
1527 * write.c (write_object_file): Ditto.
1528 * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto.
1529 * config/obj-coffbfd.c (obj_coff_def, obj_coff_val,
1530 obj_coff_endef, yank_symbols): Ditto.
1531 * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto.
1532 * config/tc-a29k.c (md_assemble, parse_operand, machine_ip,
1533 print_insn, md_operand): Ditto.
1534 * config/tc-h8300.c (parse_exp, colonmod24, check_operand,
1535 do_a_fix_imm, build_bytes): Ditto.
1536 * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist,
1537 get_specific, check, insert, md_convert_frag): Ditto.
1538 * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa,
1539 md_assemble, pa_ip, getExpression, getAbsoluteExpression,
1540 evaluateAbsolute, pa_build_unwind_subspace, pa_entry,
1541 process_exit): Ditto.
1542 * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative,
1543 is_complex): Ditto.
1544 * config/tc-i386.c (pe, md_assemble, i386_operand,
1545 md_estimate_size_before_relax, md_create_long_jump): Ditto.
1546 * config/tc-i860.c (md_assemble, getExpression, print_insn):
1547 Ditto.
1548 * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag,
1549 get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc,
1550 i960_handle_align): Ditto.
1551 * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op,
1552 subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1,
1553 md_estimate_size_before_relax, md_create_long_jump, get_num):
1554 Ditto.
1555 * config/tc-m88k.c (md_assemble, get_imm16, get_pcr,
1556 md_create_short_jump, md_create_long_jump): Ditto.
1557 * config/tc-mips.c (md_assemble, append_insn, gp_reference,
1558 macro_build, macro, my_getExpression): Ditto. Also removed
1559 get_optional_absolute_expression; just use get_absolute_expression
1560 instead.
1561 * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif,
1562 fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto.
1563 * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto.
1564 * config/tc-sh.c (parse_exp, check, insert, md_convert_frag):
1565 Ditto.
1566 * config/tc-sparc.c (md_assemble, sparc_ip, getExpression,
1567 print_insn): Ditto.
1568 * config/tc-tahoe.c (struct top, md_estimate_size_before_relax,
1569 tip_op, md_assemble): Ditto.
1570 * config/tc-vax.c (seg_of_operand, md_assemble,
1571 md_estimate_size_before_relax, md_create_long_jump): Ditto.
1572 * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
1573
1574 Tue Jul 20 12:17:16 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1575
1576 * configure.in: i386-lynx is the same as i386-coff
1577
1578 Mon Jul 19 15:21:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
1579
1580 * config/obj-elf.c (obj_elf_previous): New function.
1581 (previous_section, previous_subsection): New vars.
1582 (obj_elf_section): Save current place in case DWARF code wants us
1583 to pop back to it. Handle unquoted section name as well as quoted
1584 section name. Don't crash on invalid strings.
1585 (obj_pseudo_table): Handle new pseudos "previous", "2byte", and
1586 "4byte".
1587
1588 * config/obj-elf.h: Don't include struc-symbol.h.
1589 (obj_elf_frob_symbol): Declare arg as struct symbol *.
1590
1591 * tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Local labels can start with
1592 "L" or "_.L_".
1593
1594 * write.c (write_relocs): New function, split off from
1595 write_contents. Use memset instead of bzero.
1596 (write_object_file): Apply write_relocs to each section before
1597 applying write_contents.
1598
1599 * read.c (read_begin): Call obstack_begin with values closer to 1K
1600 multiples.
1601 (read_a_source_file, big_cons, float_cons): Use memcpy instead of
1602 bcopy.
1603
1604 Mon Jul 19 14:30:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1605
1606 * config/tc-m68k.c (m68k_ip_op): Don't decrement strend when
1607 calculating opP->isiz; this permits the expression size to be
1608 determined as well, later on.
1609
1610 * expr.c (clean_up_expression): Don't cancel the subtraction of
1611 undefined symbols.
1612
1613 * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R,
1614 switch to text section rather than data section.
1615
1616 Mon Jul 19 12:35:39 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1617
1618 * config/tc-m68k.c (m68k_ip, case AINDX): Add 6 to operand
1619 expression (to take the pc-rel instruction itself into account)
1620 before using the expression, instead of after.
1621
1622 Fri Jul 16 08:56:04 1993 Ian Lance Taylor (ian@cygnus.com)
1623
1624 * read.c (float_cons): Simplified parsing logic. If
1625 REPEAT_CONS_EXPRESSIONS is defined, accept a repeat count.
1626
1627 * symbols.c (colon): Rather than a special case for TC_HPPA,
1628 use new macro tc_frob_label.
1629 * config/tc-hppa.h (tc_frob_label): Define.
1630
1631 * config/tc-mips.c: Many changes to support simple assembler
1632 optimization.
1633 (insn_label, prev_insn, prev_prev_insn, dummy_opcode,
1634 prev_insn_valid, prev_insn_frag, prev_insn_where,
1635 prev_insn_fixp, prev_insn_is_delay_slot): New static
1636 variables.
1637 (insn_uses_reg, mips_no_prev_insn, mips_emit_delays,
1638 mips_align, s_stringer, s_mips_space): New static functions.
1639 (mips_define_label): New global function.
1640 (md_pseudo_table): For "ascii", "asciz", "asciiz", call
1641 s_stringer. Changed argument to float_cons from 0 or 1 to 'f'
1642 or 'd'. For "space" call s_mips_space.
1643 (md_begin): Call mips_no_prev_insn.
1644 (append_insn): Only insert necessary NOP instructions.
1645 (macro): Call mips_emit_delays before setting mips_noreorder.
1646 Increment and decrement mips_noreorder rather than using
1647 save_reorder_condition. Don't bother to use noreorder in
1648 M_L_DOB and M_L_DAB, since append_insn will not insert a NOP.
1649 (md_atof): Handle floating point numbers correctly for both
1650 big and little endian targets.
1651 (s_align, s_cons): Call mips_align rather than frag_align.
1652 (s_change_seg, s_cons): Call mips_emit_delays.
1653 (s_float_cons): Let float_cons do the work.
1654 (s_mipsset): Call mips_emit_delays when setting noreorder.
1655 * config/tc-mips.h (tc_frob_label): Define to be
1656 mips_define_label.
1657
1658 * config/obj-ecoff.c (ecoff_build_symbols, ecoff_build_procs,
1659 ecoff_frob_files): Consistently use S_GET_VALUE rather than
1660 bfd_asymbol_value. Warn if taking difference of symbols in
1661 different segments.
1662
1663 Thu Jul 15 11:51:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1664
1665 * config/obj-ecoff.c (ecoff_frob_file): Discard all open scopes,
1666 with a warning.
1667
1668 * config/obj-coffbfd.c (fixup_segment): If TC_M88K, don't adjust
1669 by md_pcrel_from if we are relocating against a symbol (we still
1670 need md_pcrel_from for a PC relative relocation within the same
1671 file).
1672 * config/tc-m88k.c (md_pcrel_from): Corrected return value.
1673 (omagic): Removed unused variable.
1674
1675 * Preliminary support for m88k-coff.
1676 * configure.in (m88k-*-coff*): New target. Use coffbfd and
1677 m88kcoff.
1678 * config/m88kcoff.mt: New file.
1679 * read.c (lex_type): New macro LEX_AT to set lex type of '@'.
1680 (pseudo_set): Handle difference of symbols in different fragments
1681 by saving the entire expression as the value of the symbol.
1682 * symbols.c (resolve_symbol_value): Resolve difference
1683 expressions.
1684 * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
1685 "sdef" as a synonym for "def".
1686 * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
1687 TARGET_FORMAT.
1688 (S_IS_LOCAL): Any symbol which includes \001 in the name is local.
1689 * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
1690 m88k port up to date, and to add COFF support.
1691
1692 Wed Jul 14 15:09:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1693
1694 * Removed sy_forward and replaced it with an undefined expression
1695 as the value of a symbol.
1696 * struc-symbol.h (struct symbol): Removed sy_forward field. Added
1697 sy_resolved and sy_resolving single bit fields.
1698 * symbols.c (symbol_new): Don't initialize sy_forward field.
1699 (resolve_symbol_value): New function to adjust symbol value by
1700 fragment address, using recursion to resolve forward symbols.
1701 * symbols.h: Added prototype for new function.
1702 * read.c (pseudo_set): Set symbolP->sy_value to an undefined
1703 expression rather than setting symbolP->sy_forward.
1704 * write.c (write_object_file): Use resolve_symbol_value on
1705 symbols, keeping the common case (the old behaviour) inline.
1706 * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward
1707 handling (subsumed by write.c change).
1708 * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set
1709 sy_value rather than sy_forward.
1710 * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check
1711 expression segment rather than sy_forward.
1712 (yank_symbols): Use resolve_symbol_value.
1713 (crawl_symbols): Removed extra pass over symbols.
1714 * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c,
1715 config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over
1716 symbols which handled sy_forward; use resolve_symbol_value
1717 instead.
1718 * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol):
1719 Define.
1720 * config/obj-elf.c (obj_elf_stab_generic): Check expression
1721 segment rather than sy_forward.
1722 * config/obj-vms.c (VMS_Check_For_Main): Don't initialize
1723 sy_forward; do initialize sy_resolved and sy_resolving.
1724 * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward.
1725
1726 * Changes to keep a full expression as the value of a symbol, not
1727 just a longword:
1728 * struc-symbol.h: New field sy_value.
1729 * as.h: Include expr.h before struc-symbol.h.
1730 * expr.h: Use struct symbol rather than symbolS.
1731 * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value
1732 of sy_value field; compile unconditionally, not just if
1733 BFD_ASSEMBLER.
1734 * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally.
1735 * write.c (write_object_file): Set BFD symbol value to gas symbol
1736 value.
1737 * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h,
1738 config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h
1739 (S_GET_VALUE, S_SET_VALUE): Removed macro definitions.
1740 * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed.
1741 * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use
1742 S_GET_VALUE rather than ost_entry.n_value.
1743 * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c
1744 (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars),
1745 config/obj-coffbfd.c (symbol_to_chars): Get value to write out
1746 using S_GET_VALUE--don't assume it is already set.
1747 * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas
1748 symbol value.
1749 * config/obj-vms.c (various): Don't assign directly to
1750 S_GET_VALUE; use S_SET_VALUE instead.
1751
1752 Wed Jul 14 09:35:23 1993 Doug Evans (dje@canuck.cygnus.com)
1753
1754 * configure.in: Recognize h8300h.
1755
1756 Tue Jul 13 12:09:44 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1757
1758 * config/tc-h8500.c (line_comment_chars): Add hash.
1759 (parse_exp, skip_colonthing, build_bytes): Add support for
1760 R_H8500_HIGH16 relocation type.
1761
1762 Mon Jul 12 11:15:34 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1763
1764 * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an
1765 attribute name. Handle `execinstr' attribute.
1766
1767 Mon Jul 12 07:22:28 1993 Ian Lance Taylor (ian@cygnus.com)
1768
1769 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
1770 there is another alternative for the instruction.
1771
1772 Fri Jul 9 17:31:34 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
1773
1774 * doc/as.texinfo: updates for H8/300H
1775
1776 Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
1777
1778 * config/tc-i960.c (md_create_short_jump, md_create_long_jump,
1779 md_number_to_chars, md_section_align): Adjusted to use valueT,
1780 addressT, to match tc.h.
1781
1782 Thu Jul 8 14:15:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1783
1784 * config/tc-sparc.c (s_common): Revamp to handle both syntaxes,
1785 independent of format.
1786
1787 Thu Jul 8 07:25:25 1993 Doug Evans (dje@canuck.cygnus.com)
1788
1789 * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h.
1790
1791 Wed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
1792
1793 * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross
1794 build; also recognize h8300-*-coff
1795
1796 Wed Jul 7 10:21:24 1993 Ian Lance Taylor (ian@cygnus.com)
1797
1798 * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
1799 core just because somebody uses a label before it is defined.
1800
1801 * config/mips-opcode.h: Moved to opcode/mips.h.
1802 * config/tc-mips.c: Include opcode/mips.h rather than
1803 mips-opcode.h.
1804 (append_insn): An extra NOP is only needed after instructions
1805 which set HI or LO, not after instructions which read it.
1806 (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
1807 (macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
1808 * config/tc-mips.h (struct mips_opcode): Don't define.
1809 * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
1810 Set to $(srcdir)/../include/opcode/mips.h.
1811
1812 Get the MIPS assembler up to speed with other gas changes:
1813
1814 * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
1815 Removed; don't change the symbol value.
1816 (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
1817 bfd_asymbol_value rather than S_GET_VALUE to include section
1818 vma in symbol value.
1819 (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
1820 doesn't output them. Set the vma of sections.
1821 * config/obj-ecoff.h: Don't define obj_frob_symbol.
1822 * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
1823 longer necessary.
1824 (various): use valueT rather than long.
1825
1826 Wed Jul 7 08:33:30 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1827
1828 * as.h (valueT): Typedef moved here.
1829 * struc-symbol.h (valueT): ...from here.
1830 * write.c (write_object_file): Locals from_addr, to_addr,
1831 table_addr are now addressT. Supply prototype for bfd_alloc for
1832 now.
1833 (fixup_segment): Local add_number is now valueT. Correct some
1834 range-checking bugs.
1835 (relax_align): Type `int' should be sufficient for the exponent.
1836 (fix_new): Argument offset is type offsetT. Locals size and
1837 newsize are type valueT.
1838 * write.h (struct fix): Fields fx_offset and fx_addnumber are now
1839 type valueT.
1840 (fix_new): Fix prototype.
1841 * symbols.c (symbol_new): Symbol value is type valueT.
1842 (S_SET_VALUE, S_GET_VALUE): Likewise.
1843 (S_IS_*): Specify int return type explicitly.
1844 * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed
1845 prototypes.
1846 * read.c (s_comm): Values read are type valueT.
1847 * expr.h (expressionS): Field X_add_number is an offsetT.
1848 * tc.h (md_create_long_jump, md_create_short_jump,
1849 md_section_align): Addresses are now type addressT.
1850 (md_number_to_chars, md_apply_fix): Pass value as valueT.
1851 * config/tc-i386.c (md_create_short_jump, md_create_long_jump,
1852 md_number_to_chars, md_section_align): Adjusted.
1853 * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make
1854 gcc shut up.
1855 (md_create_short_jump, md_create_long_jump, md_number_to_chars,
1856 md_section_align): Adjusted.
1857
1858 * config/tc-sparc.c (s_reserve): Permit use for other than a.out
1859 format.
1860 (s_common): Handle Solaris-2 version.
1861
1862 * config/ho-generic.h (free): Returns void if __STDC__.
1863
1864 * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file,
1865 elf_file_symbol): Declare.
1866
1867 * expr.c (floating_constant, integer_constant): Now return void.
1868
1869 Thu Jul 1 12:13:43 1993 Ian Lance Taylor (ian@cygnus.com)
1870
1871 * configure.in: Match on sparc*-fujitsu-none rather than
1872 sparclite*-fujitsu-none.
1873
1874 Wed Jun 30 11:12:02 1993 Ian Lance Taylor (ian@cygnus.com)
1875
1876 * read.c (cons): Conditionalize parsing of expression. Move
1877 putting value into object file into separate function. Separate
1878 out MRI and WANT_BITFIELDS cases into separate functions.
1879 (emit_expr): New function to write data into object file.
1880 Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
1881 processor types.
1882 (parse_bitfield_cons): New function to parse bitfield expressions
1883 as used by i960 assemblers. Only compiled if
1884 BITFIELD_CONS_EXPRESSIONS is defined.
1885 (parse_mri_cons): New function to parse MRI style strings. Only
1886 compiled if MRI is defined.
1887 (parse_repeat_cons): New function to parse repeat counts. Only
1888 compiled if REPEAT_CONS_EXPRESSIONS is defined.
1889 * read.h (emit_expr): Added declaration of new function.
1890 * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
1891 * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
1892 * config/tc-hppa.c (parse_cons_expression_hppa): New function to
1893 parse a HPPA expression, rather than special case in cons
1894 function.
1895 (cons_fix_new_hppa): New function to emit an HPPA fixup, rather
1896 than special case in emit_expr function.
1897 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
1898 Define to use new functions from tc-hppa.c.
1899 * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
1900 (WANT_BITFIELDS): Removed; now obsolete.
1901 * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
1902 * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
1903 NS32K fixup, rather than special case in emit_expr function.
1904 * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
1905 cons_fix_new_ns32k. Also use PARAMS rather than checking
1906 __STDC__.
1907 * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.
1908
1909 * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
1910 Don't core dump if gas has no information about a section.
1911
1912 Wed Jun 30 06:21:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1913
1914 * write.c (relax_and_size_seg): Always fully process a section.
1915 Section size is last frag's (vm)address plus its size. If no
1916 relocations are present, force SEC_RELOC flag clear.
1917 (dump_section_relocs): New debugging routine.
1918 (adjust_reloc_syms): New routine, broken out from write_contents.
1919 Don't adjust relocs that are already relative to section symbol.
1920 Look for obj_fix_adjustable macro to know what else to skip,
1921 instead of obj_write_symbol. Look for section symbol stored in
1922 section information.
1923 (write_object_file): Map adjust_reloc_syms over all sections.
1924 (write_contents): Clear SEC_RELOC flag if no relocations are
1925 found.
1926
1927 * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to
1928 keep it quiet.
1929
1930 * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER.
1931
1932 Fri Jun 25 14:42:53 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1933
1934 * Makefile.in (all, dvi, info, install-info, clean-info): do not
1935 echo recursion lines.
1936 (install-info, clean-info): collapse into the dvi and info rule.
1937
1938 Fri Jun 25 03:43:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
1939
1940 * as.h (strstr): Disable declaration for now.
1941 (fprint_value, sprint_value): Declare.
1942
1943 * subsegs.c (subseg_new_rest): Use memset to clear new frag.
1944 (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields.
1945
1946 * expr.c (expr_part): Made sanity checks a.out-specific.
1947 (expr): Disabled sanity checks.
1948
1949 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for
1950 section symbol.
1951 * subsegs.c (subseg_change): Initialize section symbol pointer
1952 when setting up a new section.
1953
1954 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata
1955 field back at gas symbol structure.
1956
1957 * symbols.c (colon): Cast obstack_next_free value to char* before
1958 doing arithmetic on it.
1959 * subsegs.c (subseg_new_rest): Likewise.
1960 * as.h (frag_now_fix): Likewise.
1961
1962 * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of
1963 calling bfd_make_section_old_way directly, and call subseg_set
1964 instead of subseg_change. Now returns void.
1965 (obj_elf_write_symbol): Only check local symbols for now.
1966 (elf_stab_symbol): Now static and void, and disabled until it
1967 works completely.
1968 (obj_elf_size): For expression values, fail silently for now.
1969 (obj_symbol_new_hook): Do nothing.
1970
1971 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22
1972 relocation.
1973 (s_local) [OBJ_ELF]: New function.
1974 (md_pseudo_table) [OBJ_ELF]: Call it for "local".
1975 (s_common): Rearrange to handle Solaris .common pseudo, which may
1976 sometimes use bss space instead of common.
1977 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field.
1978
1979 Thu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1980
1981 * configure.in: set host config to hpux for hppa*-hp-hpux
1982
1983 Thu Jun 24 13:35:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
1984
1985 * app.c (app_pop, app_push): Fix bug reported by Chris Arthur.
1986
1987 Tue Jun 22 01:04:23 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
1988
1989 * subsegs.c (subseg_new): Don't special-case a.out -R flag here.
1990 * config/obj-aout.c (s_sect): Do it here.
1991
1992 * as.h (BAD_CASE): Don't make some lame compilers think we want
1993 substitution inside strings.
1994
1995 * as.c (print_version_id): New function, split off from main.
1996 (main): Call it.
1997 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id
1998 for -V. Ignore -Q and -s options for now.
1999
2000 Mon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2001
2002 * Makefile.in: make installation & builds work again for crosses
2003
2004 Sun Jun 20 18:18:26 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
2005
2006 * listing.c (list_symbol_table): Rewrite to print wide (>32 bits)
2007 symbol values correctly.
2008
2009 * write.c (write_object_file): Deleted unused variables.
2010 (fixup_segment): Use sprint_value.
2011
2012 * messages.c (sprint_value, fprint_value): New routines.
2013
2014 * config/obj-elf.c (elf_stab_symbol): Now returns void.
2015 (obj_elf_stab_generic): Fix typo in logic.
2016
2017 * Makefile.in (INCLUDES): Look in ../bfd for bfd.h.
2018
2019 * as.h (addressT, offsetT): New types, using BFD types if
2020 available.
2021 (relax_addressT, struct frag): Use them.
2022 * struc-symbol.h (valueT, struct broken_word): Likewise.
2023
2024 * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
2025 * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
2026
2027 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
2028
2029 * Makefile.in: canonicalize install.sh; for use within
2030 this directory (and subdirs)
2031
2032 Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
2033
2034 * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
2035 specified, should have both S1 and S2 fields identical
2036 If only finding the problem was as fast as fixing the bug !!!!
2037
2038 Tue Jun 15 16:01:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2039
2040 * write.c (write_contents): Do write out non-loadable sections.
2041 Debug sections can fall in this category.
2042
2043 * read.c (s_app_file): Call elf_file_symbol for ELF files.
2044 * config/obj-elf.c (elf_file_symbol): New function.
2045
2046 * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_...,
2047 added argument to specify section base name.
2048 (obj_elf_stab_generic): Renamed from ..._stab. New argument
2049 specifies section base name.
2050 (obj_elf_stab): New function, calls obj_elf_stab_generic with
2051 ".stab" as section base name.
2052 (obj_elf_xstab): New function, calls obj_elf_stab_generic.
2053 (obj_elf_type): Handle "object". Use bitwise-or to merge in
2054 symbol flags rather than simply replacing, so global/local flags
2055 are preserved.
2056 (obj_elf_ident): Rewrite.
2057
2058 Tue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2059
2060 * Makefile.in: remove parentdir support; use INSTALL_XFORM
2061
2062 Wed Jun 9 11:26:07 1993 Ian Lance Taylor (ian@cygnus.com)
2063
2064 * config/tc-i386.c (md_pseudo_table): .align uses a power of two
2065 for any a.out target, not just Linux and 386BSD.
2066 * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out
2067 target.
2068
2069 Mon Jun 7 13:33:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2070
2071 * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They
2072 don't exist or duplicate other inclusions.
2073
2074 * config/tc-vax.h (NO_RELOC): Define.
2075
2076 Sat Jun 5 19:32:52 1993 Torbjorn Granlund (tege@nada.kth.se)
2077
2078 * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions.
2079 * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first
2080 char to reg_prefix instead of to 'r'.
2081 (calcop): Change calls to get_reg.
2082 (calcop): Handle new case 'x' to set reg_prefix.
2083 (calcop): Set reg_prefix to 'r' after each call to get_reg.
2084 (cmpslot): Add 88110 conditions.
2085
2086 * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency.
2087
2088 * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer
2089 before returning.
2090
2091 * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics
2092 adjacent; mov.s and mov.d swapped.
2093 (m88k_opcodes): Fix typo `r2' -> `2'.
2094
2095 Fri Jun 4 15:59:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2096
2097 * config/h8300.c: Support for H8/300-H opcodes.
2098
2099 * config/obj-coffbfd.c (w_strings): String table length is 4
2100 bytes, no matter what the host int size is.
2101
2102 * configure.in (alpha-*-osf*): New.
2103
2104 Fri Jun 4 07:51:18 1993 Ian Lance Taylor (ian@cygnus.com)
2105
2106 * configure.in (mips-*-ecoffl*): New target; use ecoff and
2107 mips-lit.
2108 (mips-*-ecoff*): Added trailing '*'.
2109
2110 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
2111 first FDR in a file to be zero.
2112
2113 Thu Jun 3 14:09:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2114
2115 * Makefile.in (VERSION): Jump to 2.1.4.
2116
2117 * config/ho-hppabsd.h: New file, from Peter Hoogenboom.
2118
2119 * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for
2120 ECOFF format.
2121
2122 Tue Jun 1 15:21:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2123
2124 * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a
2125 separate '851 mmu.
2126
2127 * config/obj-elf.c, config/obj-elf.h: Update for new type, macro,
2128 and routine names. Assuming 32 bits for now.
2129
2130 * config/obj-elf.c (elf_frob_file): Look for macro
2131 elf_tc_final_processing_hook, instead of assuming a function
2132 always exists.
2133 * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from
2134 tc_final_processing_hook.
2135 * config/tc-hppa.h (elf_tc_final_processing_hook): Use it.
2136
2137 * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros
2138 moved here from obj-elf.h.
2139 * config/obj-elf.h: Don't include CPU-specific header files.
2140
2141 Sun May 30 16:49:37 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu)
2142
2143 * configure.in: configurations should match on 'hppa*' not 'hppa'.
2144
2145 * read.c: Add support for HPPA assembly language syntax (denoted
2146 with '#ifdef TC_HPPA').
2147
2148 * symbols.c: Add support for HPPA assembly language syntax (denoted
2149 with '#ifdef TC_HPPA').
2150
2151 * write.c (write_contents): Add support for HPPA-style
2152 relocations.
2153
2154 * config/obj-elf.c: Stab symbols weren't written properly.
2155 (obj_elf_version):
2156 (obj_elf_desc):
2157 (obj_elf_write_symbol):
2158 (obj_elf_write_symbol_p):
2159 (obj_elf_frob_symbol):
2160 (elf_stab_symbol):
2161 (elf_frob_file):
2162
2163 * config/tc-hppa.c: Support for HPPA symbol extension sections.
2164 Remove some unused code. Support for HPPA assembly language
2165 syntax.
2166
2167 * app.c:
2168
2169 * symbols.c:
2170
2171 * config/obj-elf.h:
2172 (obj_write_symbol):
2173 (obj_frob_file):
2174 (elf_tc_symbol):
2175 (elf_tc_make_sections):
2176
2177 * config/tc-hppa.h:
2178
2179 Sun May 30 21:44:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2180
2181 * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume
2182 hash_new will have succeeded if it returns.
2183 * config/tc-a29k.c (md_begin): Likewise.
2184
2185 * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is
2186 const.
2187 (mode_from_disp_size, opcode_suffic_to_type): Now inline under
2188 gcc.
2189 (fits_in_{signed,unsigned}_{byte,word}): Likewise.
2190
2191 * expr.c: Delete register declarations; gcc ignores them anyways.
2192
2193 Fri May 28 19:03:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2194
2195 * hash.c (hash_new): Use xmalloc, since many callers don't check
2196 for failure.
2197
2198 Thu May 27 13:02:15 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2199
2200 * frags.c (zero_address_frag, bss_address_frag): These are
2201 external.
2202
2203 * tc.h (md_reloc_size): This is const.
2204 * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c
2205 (md_reloc_size): Now const.
2206
2207 * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete
2208 trailing commas.
2209 * as.h (enum _segT): Ditto.
2210
2211 * struc-symbol.h (N_TYPE_seg): This should be const.
2212
2213 Thu May 27 11:43:59 1993 Michael Meissner (meissner@osf.org)
2214
2215 * config/obj-ecoff.c (add_file): Cast file_name to char * in
2216 listing_source_file call.
2217
2218 * config/obj-elf.c (elf_stab_symbol_string): Cast first argument
2219 of subseg_new call to eliminate const attribute.
2220 (obj_elf_stab): Ditto.
2221 (obj_symbol_new_hook): Cast first argument of bzero call to char *.
2222
2223 * read.c (s_align_bytes): Properly record alignment.
2224
2225 * expr.c (__): Undefine __ macro before use, since OSF/1 uses it
2226 for the prototype/no prototype macro.
2227
2228 * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be
2229 void.
2230
2231 * as.h (relax_stateT enum): Delete trailing comma.
2232
2233 Thu May 27 11:07:50 1993 Ian Lance Taylor (ian@cygnus.com)
2234
2235 * app.c (do_scrub_begin): Let line_comment_chars override
2236 comment_chars.
2237 (do_scrub_next_char): If a line comment character is not at the
2238 start of a line, treat it as a comment character if it is one.
2239 For a CPP line comment use pseudo-op .appline rather than .line.
2240 * input-scrub.c (logical_input_line): Make int rather than
2241 unsigned.
2242 (input_scrub_push, input_scrub_begin): Initialize
2243 logical_input_line to -1 rather than 0.
2244 (bump_line_counters): Increment logical_input_line.
2245 (new_logical_line): If line_number is -2, decrement
2246 logical_input_line.
2247 (as_where): Use logical_input_line even if it is 0.
2248 * read.h (s_app_file prototype): Now takes an int argument.
2249 * read.c (potable): Make .appfile call s_app_file with 1. New
2250 .appline pseudo-op calls s_app_line.
2251 (s_app_file): If .appfile, call new_logical_line with -2 to
2252 account for newline inserted by do_scrub_next_char. If listing,
2253 call listing_source_file.
2254 (s_app_line): New function to handle fake pseudo-op .appline.
2255 * config/obj-coff.c (obj_pseudo_table): Make .appline call
2256 obj_coff_ln.
2257 (obj_coff_ln): Added argument to indicate whether .appline.
2258 * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
2259 obj_coff_ln.
2260 (obj_coff_ln): Added argument to indicate whether .appline.
2261 * config/tc-mips.c (s_file): Pass argument to s_app_file.
2262
2263 Tue May 25 11:59:07 1993 Ian Lance Taylor (ian@cygnus.com)
2264
2265 * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast.
2266
2267 Thu May 20 19:14:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2268
2269 * config/tc-m68k.c (md_apply_fix_2): Straighten out check for
2270 invalid values.
2271
2272 Wed May 19 07:33:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2273
2274 * config/tc-h5000.c (build_bytes): Understand @rd mode and build
2275 relocations correctly.
2276
2277 Mon May 17 15:06:26 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2278
2279 * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because
2280 it's wrong.
2281
2282 * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn
2283 if value is out of range.
2284
2285 Patch from Minh Tran-Le:
2286 * config/tc-i386.c (i386_operand): For in/out port register used
2287 as base reg, include InOutPortReg in operand type.
2288 (MATCH): Accept overlap value of InOutPortReg.
2289
2290 Mon May 17 09:29:34 1993 Ian Lance Taylor (ian@cygnus.com)
2291
2292 * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab):
2293 Add calls to listing routines to produce combined source/assembler
2294 listings.
2295 (obj_ecoff_stab): Create a file pointer if none used yet.
2296 (ecoff_frob_file): Set symcount to correct value.
2297
2298 Fri May 14 06:53:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2299
2300 * Makefile.in (VERSION): Bump to version 2.1, in preparation for
2301 release.
2302
2303 * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE):
2304 Define in terms of constants, not C structure sizes.
2305
2306 * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files.
2307
2308 Thu May 13 17:01:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2309
2310 * config/obj-aout.c (obj_header_append): Don't define if it's
2311 defined as a macro.
2312 * config/obj-hp300.h (obj_header_append): Define it as a macro.
2313 * config/obj-hp300.c (hp300_header_append): New function.
2314
2315 * Makefile.in (distclean): Don't bother cleaning up doc files;
2316 they aren't going to be in this directory.
2317
2318 Thu May 13 07:51:35 1993 Ian Lance Taylor (ian@cygnus.com)
2319
2320 * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute
2321 symbols.
2322
2323 * tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
2324 * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
2325
2326 Mon May 10 06:01:12 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2327
2328 * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with
2329 initialization.
2330
2331 * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff.
2332
2333 Wed May 5 14:00:49 1993 Ian Lance Taylor (ian@cygnus.com)
2334
2335 * config/tc-mips.c (macro): Correct floating point double word
2336 loads and stores for big endian target.
2337
2338 Wed May 5 08:39:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2339
2340 * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_*
2341 calls. Deleted some unused code.
2342 * config/obj-coff.c: Likewise.
2343
2344 ELF support, mostly contributed by Utah:
2345 * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line,
2346 obj_elf_type): Rewrite.
2347 (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol,
2348 obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size):
2349 New functions.
2350 (obj_elf_ident): Dummy.
2351 * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol,
2352 TARGET_SYMBOL_FIELDS): New macros.
2353 (gdb_section): New variable decl.
2354
2355 * config/tc-i386.c (md_atof): Return zero, not empty string, on
2356 success.
2357
2358 BFD_ASSEMBLER conditional changes:
2359 * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header):
2360 Don't define these.
2361 (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions.
2362 (fetch_coff_debug_section): Ditto.
2363 (obj_coff_endef): Call fetch_coff_debug_section.
2364 (struct line_no): New type.
2365 (c_symbol_merge): New way for copying aux fields.
2366 (c_dot_file_symbol): Put symbol in absolute section, and set flag
2367 BSF_DEBUGGING.
2368 (function_lineoff): New symbol.
2369 (function_lineoff, text_lineno_number, our_lineno_number,
2370 lineno_lastP): Don't define.
2371 (c_line_new): Don't define.
2372 (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh,
2373 placeholders, until
2374 line-number recording gets implemented.
2375 (obj_new_symbol_hook): New code for handling aux fields.
2376 (add_lineno, add_linesym): New functions.
2377 (obj_coff_ln): Call add_lineno, not c_line_new.
2378 (obj_coff_endef): New code for handling symbol names. New lineno
2379 code. Look for section name "*DEBUG*" for debugging section.
2380 (align, coff_check_file_symbols, obj_coff_section,
2381 coff_frob_file): New functions.
2382 * config/obj-coff.h: Reordered some includes.
2383 (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg,
2384 DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't
2385 define these.
2386 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros.
2387 (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing
2388 aux entries. Most SA_* macros now use it unconditionally.
2389 (S_*): Use `bsym' field, and access BFD private data.
2390 (SF_*): Use `sy_flags' symbol field for most of these.
2391 (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't
2392 define.
2393 (*_section_header): Don't define.
2394 * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed
2395 interface.
2396 (tc_gen_reloc) [I386COFF]: New function.
2397 (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define.
2398 * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New
2399 macros.
2400
2401 * config/obj-coff.c (stack_init): Don't do assignments inside
2402 conditions.
2403 (obj_coff_def): Simplified handling of symbol name a bit.
2404 (tag_insert): Name argument is now pointer to CONST.
2405 (obj_crawl_symbol_chain): Commented out.
2406
2407 * config/obj-coff.h: Use PARAMS macro in prototypes.
2408
2409 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect
2410 through frchainP pointer if it is null.
2411
2412 * configure.in: Warn if BFD mode is explicitly turned off but is
2413 required by specified target.
2414 (mips ecoff targets): Don't need to set bfd_gas here; it gets
2415 taken care of later.
2416
2417 * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward
2418 field.
2419 (yank_symbols): Merge symbols only if sy_forward is null.
2420
2421 * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already
2422 defined.
2423
2424 * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not
2425 pointer.
2426 * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto.
2427
2428 * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting
2429 with "." is a local label.
2430
2431 * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config
2432 files.
2433
2434 * config/te-linux.h, config/te-386bsd.h: New config files.
2435 * configure.in (i386-*-linux, i386-*-bsd): Use them.
2436 * config/tc-i386.h (TARGET_FORMAT): Select format based on target
2437 environment.
2438 (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux.
2439
2440 Wed May 5 13:14:01 1993 Ian Lance Taylor (ian@cygnus.com)
2441
2442 * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
2443 to want it that way.
2444 (ecoff_build_symbols): Turn local st_Proc symbols into
2445 st_StaticProc symbols. Set index field of external st_Proc and
2446 st_staticProc symbols correctly.
2447 * config/tc-mips.h (NO_LISTING): Don't define. People might want
2448 listings.
2449
2450 Tue May 4 21:22:54 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2451
2452 * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New
2453 files.
2454 * configure.in (m68k-*-hpux): Use them.
2455
2456 * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if
2457 defined, otherwise zero.
2458
2459 * config/aout_gnu.h (OMAGIC): Don't define if already defined.
2460
2461 Mon May 3 15:59:32 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2462
2463 * config/tc-sparc.c (sparc_ip): Allow any abs expression as an
2464 address space number.
2465
2466 Wed Apr 28 19:11:22 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2467
2468 * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all.
2469
2470 * config/tc-a29k.c: Include ctype.h.
2471 (define_some_regs): Added special-purpose registers for 29050.
2472
2473 * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/".
2474
2475 * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here.
2476 (change_to_section): Set it here instead.
2477
2478 Wed Apr 28 13:40:29 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
2479
2480 * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
2481 hasn't been seen yet.
2482 (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
2483
2484 Mon Apr 26 18:29:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2485
2486 * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
2487 SH.
2488
2489 Mon Apr 26 12:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
2490
2491 * expr.c (operand): Fix unary plus operator (previously was the
2492 same as '~' operator!).
2493
2494 Wed Apr 21 00:20:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2495
2496 * write.c (cvt_frag_to_fill): Define even if BFD is defined.
2497 (write_object_file): Do define if BFD_ASSEMBLER. Invoke
2498 obj_check_file_symbols if defined. Call verify_symbol_chain_2
2499 instead of open-coding it. Fix some bugs in patching up symbol
2500 chain.
2501 (relax_segment): Make some code we "ought to be able to" use for
2502 all targets no longer conditionalized on ns32k target; instead, do
2503 it always, and if the appropriate conditions fail, abort.
2504
2505 * symbols.c (DEBUG): Enabled.
2506 (symbol_new): Make sure bfd_make_empty_symbol works.
2507 (verify_symbol_chain_2): New funcion; takes one symbol as
2508 argument, anywhere in the chain.
2509 (dollar_label*): Use default initializers.
2510
2511 * as.c (perform_an_assembly_pass): Call md_begin here...
2512 (main): ...and not here.
2513
2514 * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out.
2515 (tc_frob_symbol): New macro: Get rid of symbols in reg_section.
2516
2517 * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER.
2518 (add_fix, add_frag): Now functions instead of macros.
2519 (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num,
2520 s_data1, s_data2, s_bss): Use new *_section names, for
2521 compatibility with BFD_ASSEMBLER mode; rewrite switch statements
2522 to handle non-integral segT.
2523 (tc_coff_fix2rtype, tc_aout_fix_to_chars,
2524 tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER.
2525 (tc_gen_reloc): New routine for BFD_ASSEMBLER.
2526 (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to
2527 md_apply_fix_2; new md_apply_fix definition varies interface
2528 depending on BFD_ASSEMBLER.
2529 (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section
2530 names.
2531
2532 * config/obj-vms.c: Include config.h.
2533 (version_string): Delete declaration.
2534 (Write_VMS_MHD_Records): Use GAS_VERSION instead.
2535 (vms_resolve_symbol_redef): New function, taken from VMS code in
2536 symbols.c.
2537 (_doprnt): Deleted.
2538 (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct,
2539 VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix,
2540 VMS_Psect_Spec): Fixed to compiler under traditional C.
2541 * config/obj-vms.h: Use PARAMS macro.
2542 (vms_resolve_symbol_redef): Declare.
2543 (RESOLVE_SYMBOL_REDEFINITION): New macro.
2544 * symbols.c (colon): Remove some VMS-specific code, look for
2545 RESOLVE_SYMBOL_REDEFINITION macro instead.
2546
2547 * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc
2548 instructions.
2549
2550 * config/tc-i386.c: Reordered some functions so inlining might
2551 work. Use PARAMS in function declarations.
2552 (reloc): New routine.
2553 (md_assemble): Rearrange switch statements to work with
2554 non-integral segT.
2555
2556 * struc-symbol.h [BFD_ASSEMBLER]: Undefine
2557 SYMBOLS_NEED_BACKPOINTERS before defining it.
2558
2559 * subsegs.c (subseg_new_rest): Now static.
2560
2561 * read.c (pseudo_set): Better error message for difference of
2562 symbols in different frags.
2563
2564 * Makefile.in (check): Pass down some new variables, indicating
2565 pathname or program name for cc, nm, objdump.
2566
2567 * as.h (OUTPUT_FLAVOR): New macro.
2568 * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR.
2569
2570 * configure.in: Initialize bfd_gas properly. Warn that ELF
2571 support is incomplete.
2572
2573 Thu Apr 15 22:39:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2574
2575 * read.c (float_cons): Accept null pointer return from md_atof.
2576 * config/tc-m68k.c (md_atof): Return null for success.
2577 * config/tc-sparc.c (md_atof): Ditto.
2578
2579 Thu Apr 15 16:04:39 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
2580
2581 * doc/as.texinfo: formatting and comment cleanups; show SPARC
2582 alternative options in same style as other machines; simplify some
2583 conditional use; include GPL as separate file (from texinfo dir)
2584
2585 * doc/Makefile.in: (as.info) include directory containing GPL in
2586 makeinfo search path
2587
2588 * doc/h8.texi: new file; conditional settings for GAS manual
2589 on Hitachi chips
2590
2591 Tue Apr 13 15:31:40 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
2592
2593 * doc/as.texinfo: mention SPARC architecture options.
2594
2595 Fri Apr 9 17:43:11 1993 Ken Raeburn (raeburn@cygnus.com)
2596
2597 * configure.in: Rearranged whitespace in per-host/per-target
2598 sections. Added hooks for dropping in HPPA support (not included
2599 yet). Separate out overrides of variables based on target format
2600 and bfd-gas selection from actual target-specific commands. Add
2601 error message for recognized but unsupported format name.
2602
2603 Fri Apr 9 09:05:47 1993 Ian Lance Taylor (ian@cygnus.com)
2604
2605 * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
2606 symbolic header match cline in FDR; the native linker seems to
2607 want that.
2608
2609 Thu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2610
2611 * doc/Makefile.in: as.texinfo is in $(srcdir). Use
2612 $(srcdir)/as.texinfo explicitly in several places
2613
2614 Thu Apr 8 15:15:02 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
2615
2616 * doc/Makefile.in: update dvi, clean targets for new source
2617 file structure
2618
2619 Thu Apr 8 12:52:46 1993 Ian Lance Taylor (ian@cygnus.com)
2620
2621 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
2622 rather than undefining know.
2623 * configure.in: Match ultrix*, not just ultrix.
2624
2625 Wed Apr 7 20:18:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
2626
2627 * doc/as.texinfo: converted conditional markup to use new
2628 Texinfo facilities, avoiding m4.
2629
2630 * doc/as-all.texinfo, all.m4, pretex.m4: deleted.
2631
2632 * doc/Makefile.in: recast doc configuration to use a link to an
2633 included texinfo file.
2634
2635 * doc/all.texi: settings for generic form of documentation.
2636
2637 Tue Apr 6 11:56:21 1993 Ian Lance Taylor (ian@cygnus.com)
2638
2639 * read.c (cons): Zero out frag when creating reloc.
2640
2641 Mon Apr 5 09:41:58 1993 Ian Lance Taylor (ian@cygnus.com)
2642
2643 * config/tc-mips.c (gp_reference): Certain magic symbols can never
2644 be referenced off the GP register.
2645
2646 * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
2647 when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
2648 LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
2649
2650 * config/te-irix.h: New file; irix needs a different LOCAL_LABEL
2651 definition from other MIPS targets.
2652 * configure.in (mips-*-irix): Use emulation irix.
2653
2654 Sun Apr 4 15:21:09 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2655
2656 * config/tc-h8500.c: Get relax size of branch instructions right,
2657 (get_operand): Parse @sp+ correctly.
2658
2659 Fri Apr 2 15:59:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2660
2661 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include
2662 COFF section header field.
2663
2664 * configure.in: Print error message if host or target is not
2665 supported.
2666
2667 * configure.in: If with-bfd-assembler, use obj-coff instead of
2668 obj-coffbfd.
2669
2670 * config/ho-generic.h: Include string.h.
2671
2672 Fri Apr 2 08:54:57 1993 Ian Lance Taylor (ian@cygnus.com)
2673
2674 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
2675 '$' as local, for any object file format.
2676
2677 * config/tc-mips.c (macro): Optimizations to branching code and a
2678 couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph
2679 Campbell).
2680
2681 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
2682 * configure.in (mips-sgi-irix*): Set gas_host to irix.
2683
2684 Wed Mar 31 17:53:54 1993 Ian Lance Taylor (ian@cygnus.com)
2685
2686 * subsegs.c (subseg_new): Set output_section of new section.
2687 * as.c (perform_an_assemly_pass): Don't set output_section here.
2688 * expr.c (expr_part, expr): Turn off section assertions for ECOFF,
2689 since it has additional sections.
2690 * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
2691 not bss_section.
2692 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
2693 ecoff_undefined field.
2694 * config/obj-ecoff.c (obj_symbol_new_hook): Initialize
2695 ecoff_undefined field.
2696 (add_file): If using stabs, just output a stabs symbol rather than
2697 creating a new fdr.
2698 (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
2699 it with get_absolute_expression, rather than skipping it by hand.
2700 (obj_ecoff_loc): If using stabs, just output a stabs symbol rather
2701 than ECOFF line number information.
2702 (obj_ecoff_stab): Accept non-zero values for stabs line number.
2703 (ecoff_build_symbols): Set ifilesym correctly. Set storage class
2704 to small, undefined and/or readonly sections if appropriate.
2705 Don't output symbol names containing \001 characters.
2706 (ecoff_frob_file): Make sure at least one fdr is output.
2707 * config/tc-mips.h: Define TC_MIPS.
2708 * config/tc-mips.c (g_switch_value): New static variable.
2709 (md_assemble): Set gp size of output BFD.
2710 (gp_reference): New function; returns 1 if expression can be
2711 accesssed via gp. Always returns 0 if not using ECOFF.
2712 (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
2713 possible.
2714 (macro): Generate sequences using gp if possible.
2715 (md_parse_option): Ignore -EL and -EB. Parse -G.
2716 (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
2717 (s_change_sec): Handle .rdata and .sdata for ECOFF.
2718 (s_extern): Mark symbol as external. Set ecoff_undefined field.
2719
2720 Tue Mar 30 10:11:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2721
2722 * output-file.c (output_file_create): Don't call as_perror for
2723 filename rejected by application.
2724
2725 * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink
2726 the output file.
2727
2728 * doc/as.texinfo: Don't use @value in node names for the moment;
2729 references don't appear to work right.
2730
2731 * as.h (const, volatile): Put these definitions back, and use
2732 them.
2733
2734 * doc/as.texinfo: First pass at using new texinfo features --
2735 variables, conditional tests. Far from complete.
2736
2737 Mon Mar 29 16:05:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2738
2739 * read.c: Temporary hack to handle some 64-bit constants. This
2740 should be redone later.
2741 (target_big_endian): Declare.
2742 (big_cons): If it's set, reverse order of bytes being copied.
2743 * config/tc-sparc.c (md_begin): Set target_big_endian.
2744
2745 * read.c (s_ignore): Delete declaration of is_end_of_line.
2746
2747 * config/obj-coffbfd.c (yank_symbols): Build list of file symbol
2748 forward pointers properly.
2749
2750 Mon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2751
2752 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
2753 wasn't being stored into scnhdr.
2754 * config/obj-coffbfd.h: Add prototype of s_get_segment.
2755 * read.c (TC_START_LABEL): Default definition.
2756 (read_a_source_file): Use TC_START_LABEL macro to work out
2757 if a label has been seen.
2758
2759 Mon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com)
2760
2761 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
2762 the bottom (make expands variables in dependencies when the
2763 dependencies are read, not when they are used).
2764
2765 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
2766 a29k .bss section; the mondfe program doesn't like it.
2767
2768 Sun Mar 28 08:12:53 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2769
2770 * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of
2771 const.
2772 (current_architecture): Don't need initializer.
2773
2774 Fri Mar 26 08:12:48 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2775
2776 * doc/none.m4: Define Z8000.
2777 * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the
2778 texinfo file before recreating it.
2779 (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in
2780 this directory.
2781 (srcdir): Delete second, bogus definition.
2782 (as.info): Look for as-*.texinfo in current directory rather than
2783 in $(srcdir).
2784 (as.dvi): Ditto.
2785 (dvi): New rule.
2786 * doc/configure.in: Create links to all as-*.texinfo files in the
2787 source directory, if that's not the current directory.
2788
2789 * configure.in (per-host): Accept MIPS host with BSD version
2790 number.
2791 (per-target): Classify i486 as i386. Use generic cpu_type instead
2792 of target_cpu in selecting format etc.
2793
2794 * app.c (do_scrub_next_char): Use .appfile, not .app-file.
2795 * read.c (potable): Change .app-file to .appfile.
2796
2797 * config/ho-decstatn.h: Renamed from ho-decstation.h.
2798 * configure.in: Adjusted.
2799
2800 * config/obj-bfd-sunos.*: Unused; deleted.
2801
2802 * Makefile.in (version.c, vers-stamp): Deleted.
2803 (config.h): Define GAS_VERSION.
2804 * as.c (version_string): Deleted declaration.
2805 (main): Look for GAS_VERSION instead.
2806
2807 * doc/as.texinfo: Updated description of -a* (listing) options,
2808 and describe how to pass them through from gcc.
2809
2810 * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or
2811 process relocs if there aren't any relocs to process. Avoids
2812 malloc/free bug on SCO too.
2813
2814 * as.h: Move local include files below system include files, to
2815 avoid some redefinition complaints on some systems.
2816 (const, volatile): Don't need these conditionally defined if we
2817 use CONST and VOLATILE from ansidecl.h.
2818 (seg_name): Use CONST, not const.
2819
2820 Fri Mar 26 10:22:04 1993 Ian Lance Taylor (ian@cygnus.com)
2821
2822 * config/tc-mips.c: Reindented to GNU standards.
2823
2824 Thu Mar 25 08:59:14 1993 Ian Lance Taylor (ian@cygnus.com)
2825
2826 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
2827 (fixup_segment): Add a29k special case; the linker is not prepared
2828 to see a segment offset here.
2829
2830 * app.c (do_scrub_next_char): Added new state, 10, modifying state
2831 9 to only keep a space in between identifier characters.
2832
2833 Wed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
2834
2835 * Makefile.in: add dvi target; as-$(config).texinfo might live in
2836 srcdir, might be in objdir.
2837
2838 * doc/Makefile.in: dvi depends on as.dvi
2839
2840 Mon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2841
2842 * Makefile.in: add installcheck target
2843
2844 Mon Mar 22 10:19:00 1993 Ian Lance Taylor (ian@cygnus.com)
2845
2846 * config/tc-mips.c (macro): Use $AT for any floating point load.
2847
2848 Sat Mar 20 12:50:51 1993 Ken Raeburn (raeburn@urth.cygnus.com)
2849
2850 * config/tc-m68k.c (m68k_ip): For operand type 'M', reject
2851 bignums, but don't emit error message.
2852
2853 Fri Mar 19 21:02:19 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
2854
2855 * Makefile.in (targ-cpu.o): Depend on config.h.
2856
2857 Wed Mar 17 16:44:06 1993 Ian Lance Taylor (ian@cygnus.com)
2858
2859 * app.c (do_scrub_next_char): Added new state, 9, to avoid
2860 dropping a space immediately following an identifier.
2861 * expr.c, write.c: Rewrote assert expressions to not use multiple
2862 lines; I don't think that can be done portably.
2863 * config/tc-mips.c (macro): Use $AT if target register is zero in
2864 load instruction, which it can be for a floating point load.
2865
2866 Mon Mar 15 12:17:28 1993 Ian Lance Taylor (ian@cygnus.com)
2867
2868 * write.c (write_contents): Compute the relocs before writing out
2869 the section contents.
2870 * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
2871 symbol table and values right.
2872 * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
2873 with $L is local.
2874 * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
2875 by the section vma.
2876
2877 * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
2878 z8k-opc.h, not z8k.h.
2879
2880 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf
2881 symbol.
2882
2883 Fri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2884
2885 * configure.in: recognize sparc-sun-solaris2* instead of -solaris2
2886
2887 Fri Mar 12 12:00:07 1993 Ian Lance Taylor (ian@cygnus.com)
2888
2889 * expr.c, write.c: Ultrix native 4.2 cc requires assert condition
2890 to be on a single line.
2891
2892 Thu Mar 11 17:56:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2893
2894 * Makefile.in (config.h): Create file, writing out definitions of
2895 target cpu, alias, and canonical name.
2896 (ALL_CFLAGS): No longer define TARGET_CPU.
2897
2898 * Makefile.in (check): Print a message, instead of quitting
2899 silently.
2900
2901 * as.c (main): Don't catch any signals, for now.
2902
2903 * version.c: Deleted.
2904 * Makefile.in: Generate it, putting in only the version number
2905 itself.
2906 (VERSION): New variable.
2907 * as.c: Include config.h.
2908 (main): Reformatted version string. Include target alias. Don't
2909 print if not requested (i.e., unknown -v argument).
2910
2911 * as.c (stralloc): Deleted.
2912 (main): Call strdup instead.
2913
2914 * configure.in: Handle all 68300 series chips.
2915 * config/tc-m68k.c: Include config.h.
2916 (md_assemble): Assume TARGET_CPU is defined. Accept some 68300
2917 series cpus as defaults.
2918 (md_parse_option): Accept some m68300 series CPUs as defaults.
2919
2920 Wed Mar 10 17:41:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2921
2922 * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if
2923 not already defined.
2924 (main, got_sig): Use them.
2925 * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default
2926 values.
2927
2928 Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
2929
2930 * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF
2931 support.
2932
2933 * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs.
2934 OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN.
2935 (struct loc, struct proc, struct file): Moved to tc-mips.c within
2936 #ifndef OBJ_ECOFF block, since ECOFF uses different versions.
2937 * config/tc-mips.c: Rearranged for ECOFF support. Added
2938 prototypes for all static functions. Moved existing minimal
2939 debugging format support info #ifndef OBJ_ECOFF blocks.
2940 (macro_build_lui): Eliminated sign_extend argument, because ECOFF
2941 does not support a non sign extended high 16 bits reloc. Adjusted
2942 all callers accordingly.
2943 (tc_get_register): Renamed from get_register, and made non-static.
2944
2945 * config/mips-big.mt, config/mips-lit.mt: New files. Define
2946 TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN,
2947 respectively.
2948 * configure.in (mips-*-bsd*): Use gas_target mips-lit.
2949 (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using
2950 obj_format ecoff and gas_target mips-lit or mips-big.
2951
2952 Tue Mar 9 07:43:01 1993 Ken Raeburn (raeburn@cygnus.com)
2953
2954 * version.c: Bump to version 2.0.1.
2955
2956 Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
2957
2958 * write.c (chain_frchains_together): Check that seg_info (section)
2959 is not NULL.
2960 (write_object_file): Call obj_frob_file after setting the symbols,
2961 not before.
2962
2963 Tue Mar 9 00:00:00 1993 Ken Raeburn (raeburn@cygnus.com)
2964
2965 * Version 2.0 released.
2966
2967 Mon Mar 8 14:57:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2968
2969 * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only.
2970
2971 Fri Mar 5 09:05:55 1993 Ian Lance Taylor (ian@cygnus.com)
2972
2973 * read.h: Define stringer here.
2974 read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these
2975 places.
2976
2977 Thu Mar 4 11:52:23 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2978
2979 * read.c (s_space): Multiply repeat count by mult, not fill.
2980
2981 Thu Mar 4 05:20:42 1993 Ken Raeburn (raeburn@cygnus.com)
2982
2983 * read.c: Include ctype.h.
2984
2985 Wed Mar 3 10:41:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2986
2987 Patches from Eric Youngdale:
2988 * make-gas.com: Find obstack.obj if it's not in the current
2989 directory.
2990 * read.c (s_ignore): Don't declare is_end_of_line. It's
2991 redundant, and triggers a VMS gcc compiler bug.
2992
2993 * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes
2994 current segment as an argument. (Ignored in all cases but VMS.)
2995 All callers and definitions changed.
2996
2997 Tue Mar 2 11:56:19 1993 Ian Lance Taylor (ian@cygnus.com)
2998
2999 * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING
3000 case compile again.
3001
3002 Tue Mar 2 08:53:34 1993 Ken Raeburn (raeburn@cygnus.com)
3003
3004 * config/tc-m68k.c (isbyte): Accept all values from -255 to +255,
3005 so "~0x80" won't be rejected.
3006
3007 * config/obj-elf.c: No longer include elf/reloc.h.
3008 (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section.
3009 (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out
3010 routines.
3011 (obj_elf_xstab): New routine.
3012 (obj_elf_set_size): Call as_warn, not fprintf. Pass desired
3013 argument to s_ignore. Put "#if 0" around unused code.
3014 (obj_pseudo_table): Use s_ignore instead of do-nothing routines.
3015 Call elf_xstabs for .stabs and .xstabs operators.
3016
3017 * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc".
3018
3019 * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are
3020 present.
3021
3022 * configure.in: mips-bsd configuration was missing format spec.
3023 Should use aout.
3024
3025 * Makefile.in (Makefile): Depends on configure.in.
3026
3027 * config/tc-mips.c (append_insn): Don't check for alignment of
3028 frag in memory; alignment of instructions in section is a separate
3029 matter.
3030
3031 * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI
3032 C availability.
3033
3034 * listing.h: Always provide function declarations, not macros, so
3035 pcc won't lose.
3036
3037 Tue Mar 2 00:50:43 1993 John Gilmore (gnu@cygnus.com)
3038
3039 * CONTRIBUTORS: Update Gilmore entry.
3040
3041 Wed Feb 24 14:58:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3042
3043 * frags.c (frag_init): New function.
3044 (zero_address_frag, bss_address_frag): Now initialized at run
3045 time.
3046 * as.c (main): Call frag_init.
3047
3048 Wed Feb 24 10:32:42 1993 Ian Lance Taylor (ian@cygnus.com)
3049
3050 * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case:
3051 Don't unget ch2 if we didn't get it.
3052
3053 Wed Feb 24 04:14:07 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3054
3055 * doc/Makefile.in (TEXIDIR): Updated for new layout.
3056
3057 * config/tc-sparc.c (s_common): Add support for ELF version.
3058 (tc_gen_reloc) [BFD_ASSEMBLER]: New function.
3059 * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]:
3060 New macros.
3061 (md_convert_frag): New macro.
3062
3063 * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a
3064 symbol, fix the offset so "+2" isn't required.
3065
3066 * config/tc-i960.c (line_comment_chars, line_separator_chars):
3067 Define as common/bss.
3068 (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C
3069 initializers are sufficient.
3070
3071 * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd.
3072 (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out".
3073 (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros.
3074 (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro.
3075 * config/obj-aout.c: Use PARAMS macro for declarations. Remove
3076 "IGNORE_DEBUG" conditional, since both branches are identical.
3077 Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly
3078 referencing symbol structure members.
3079 (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function.
3080
3081 * as.h (struct frag): Reordered a couple of fields for better
3082 packing.
3083
3084 * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the
3085 section info.
3086 (write_contents) [BFD_ASSEMBLER]: New function.
3087 (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call
3088 fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call
3089 obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined.
3090 (fixup_segment): Make sure common-section symbols get treated the
3091 same as undefined symbols.
3092 (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type
3093 bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from
3094 section info.
3095 * write.h (fix_new): Update prototype.
3096
3097 * tc.h (md_operand, md_convert_frag, tc_headers_hook,
3098 md_section_align, md_undefined_symbol): Don't provide prototypes
3099 if these are defined as macros.
3100 (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and
3101 section passed.
3102
3103 * symbols.c (symbol_new): Argument NAME is now pointer to const.
3104 Simplified STRIP_UNDERSCORE code. Remove assumptions about null
3105 pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new
3106 BFD symbol.
3107 (colon): Display other/desc fields of redefined symbol only if
3108 S_GET_OTHER and S_GET_DESC are defined.
3109 (symbol_make): Argument NAME is now pointer to const.
3110 (symbol_find, symbol_find_base): Likewise.
3111 (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions.
3112 * symbols.h: Fix prototypes for new const arguments. Add
3113 prototypes for BFD_ASSEMBLER S_* functions.
3114
3115 * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code
3116 for changing to an existing section.
3117 (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new,
3118 called by subseg_new and subseg_set.
3119 (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section,
3120 given section name and subseg number.
3121 (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly
3122 new section/subsection.
3123
3124 * read.c: Don't include ctype.h.
3125 (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32
3126 for now; should be machine-dependent.
3127
3128 * configure.in: Accept *-*-elf and *-*-solaris* as ELF format
3129 targets, forcing BFD use.
3130
3131 Wed Feb 17 18:59:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3132
3133 * config/tc-sparc.c: Use PARAMS macro for static function
3134 declarations. Use BFD_RELOC_ macros everywhere, with
3135 compatibility macros declared for non-BFD mode.
3136 (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type
3137 instead of enum reloc_type.
3138 (emit_sparc_reloc): Commented-out function deleted.
3139 (md_convert_frag): Deleted.
3140 (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER.
3141 (md_apply_fix): Changed calling sequence (conditionally) for BFD
3142 version.
3143 * config/tc-sparc.h (md_convert_frag): New macro.
3144
3145 * config/obj-aout.c (obj_aout_stab): Refer to undefined_section,
3146 not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead
3147 of referencing fields directly.
3148
3149 * write.c (cvt_frag_to_fill): New function; extracted from
3150 write_object_file.
3151 (write_object_file) [! BFD_ASSEMBLER]: Call it.
3152 (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section
3153 and set its size and flags.
3154
3155 * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some
3156 fields with BFD equivalents. Turn on back-pointers, and add
3157 target-specific fields at end.
3158
3159 Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
3160
3161 * config/obj-coffbfd.c (fill_section): Don't set vaddr here.
3162 (write_object_file): Set it here instead, so that fixup_segment
3163 can see the correct value.
3164
3165 Mon Feb 8 13:56:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3166
3167 * write.c (write_object_file): Check for errors and warnings and
3168 bail out before processing contents.
3169 (chain_frchains_together_1): New function, does most of the work
3170 of remove_subsegs.
3171 (chain_frchains_together) [BFD_ASSEMBLER]: New function.
3172 (remove_subsegs) [! BFD]: Call it.
3173 (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD
3174 structures and routines.
3175
3176 * config/obj-elf.*: New files.
3177
3178 * config/mips.mt, config/rs6000.mt: Deleted.
3179
3180 * config/h8300.mt: Don't specify compiler here.
3181
3182 * config/z8k.mt: The z8k code depends on the z8k opcode table,
3183 not the h8300 one.
3184 * config/tc-z8k.h: Comment fix.
3185
3186 * write.c: Reordered some functions for better inlining.
3187 (fixup_segment): Linkrelax code is no longer conditional on
3188 TC_I960.
3189
3190 Thu Feb 4 12:45:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3191
3192 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,
3193 obj-coffbfd.h}: support for the H8/500
3194
3195 Wed Feb 3 19:28:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3196
3197 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here.
3198 * write.c (write_object_file): Not here.
3199 (fix_new): Initialize fx_addnumber.
3200
3201 * listing.c: Don't include target-cpu.h explicitly, since as.h
3202 includes it.
3203
3204 Thu Jan 28 00:35:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3205
3206 * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP,
3207 *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP.
3208 (struct fix): Reordered fields for compactness and efficiency.
3209 Converted some logical fields to 1-bit fields.
3210
3211 * config/obj-aout.h: Use PARAMS.
3212 [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE,
3213 N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE.
3214
3215 * read.c: Don't include listing.h; as.h includes it. Removed
3216 DONTDEF code.
3217 [BFD_ASSEMBLER]: Include subsegs.h.
3218 (old_buffer, new_broken_words): Default initialization is
3219 sufficient.
3220
3221 * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH
3222 to 0, define stdoutput.
3223 (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure.
3224 Call bfd_set_arch_mach.
3225 (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not
3226 bfd_close_all_done. Call bfd_perror on failure.
3227 (output_file_append) [BFD_ASSEMBLER]: Don't define.
3228
3229 * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition.
3230
3231 * subsegs.h (segment_info_type): Always define. Omit field scnhdr
3232 if not MANY_SEGMENTS. Define new field bfd_section if
3233 BFD_ASSEMBLER.
3234 (seg_info): New macro.
3235
3236 * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused
3237 variables, and some irrelevant comments.
3238
3239 * Makefile.in (ALL_CFLAGS): Include $(BFDDEF).
3240 (LIBS): Include $(BFDLIB). Don't bother with $(CLIB).
3241 * configure.in: Permit --with-bfd-assembler now, with a warning.
3242 Variable need_bfd is now a boolean, as is new variable bfd_gas.
3243 Set BFDDEF and BFDLIB in Makefile when appropriate.
3244
3245 * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code.
3246 (main): Refer to flag_always_generate_output instead of
3247 flagseen['Z'].
3248
3249 * as.c (main) [BFD_ASSEMBLER]: Open output bfd.
3250 (*_section) [BFD_ASSEMBLER]: Define them.
3251 (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and
3252 set section flags when appropriate.
3253 * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified
3254 section is not absolute, undefined, or an assembler internal one.
3255 (absolute_section, undefined_section): Always define.
3256 * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break
3257 switch statements into if-else trees.
3258 * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of
3259 SEG_BSS and SEG_DATA.
3260
3261 * as.h (frag_now_fix): New macro.
3262 * symbols.c (colon): Use it.
3263
3264 Wed Jan 27 21:43:53 PST 1993 Ralph Campbell (ralphc@pyramid.com)
3265
3266 * config/tc-mips.c: Added mips support for mips-dec-bsd.
3267 * config/tc-mips.h: Added mips support for mips-dec-bsd.
3268 * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd.
3269 * config/mips-opcode.h: Added mips support for mips-dec-bsd.
3270 * configure.in: Added mips support for mips-dec-bsd.
3271 * atof-generic.c: Define TRUE and FALSE if not defined.
3272
3273 Thu Jan 21 12:48:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3274
3275 * version.c: Bumped version number to 1.93.05.
3276
3277 Wed Jan 20 17:11:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3278
3279 * config/obj-coff.c (obj_emit_relocations): Don't use #elif.
3280 (obj_emit_lineno): Don't need return at end of void function.
3281 (obj_symbol_new_hook): Ditto.
3282
3283 * config/tc-m68k.c: Removed some unused code.
3284 (tc_aout_fix_to_chars): Array nbytes_r_length is now const.
3285
3286 * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only
3287 offset field is set.
3288
3289 Fri Jan 8 05:44:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3290
3291 * config/tc-sparc.c (architecture_requested, warn_on_bump,
3292 md_relax_table): Use default zero initialization.
3293 (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the
3294 latter, instead of selecting with preprocessor conditionals.
3295
3296 Thu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3297
3298 * configure.in: recognise all sparclite variants
3299
3300 Thu Jan 7 05:25:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3301
3302 * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change --
3303 accidentally changed to use subseg_change where it should have
3304 been subseg_new.
3305
3306 Tue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3307
3308 * expr.c (operand): If character other than comma or newline is a
3309 logical end-of-line character, use the newline case.
3310 From Eric Youngdale:
3311 (operand): Set X_add_number field for floating-point numbers.
3312 (operand): Treat zero byte as end-of-operand.
3313
3314 * configure.in (per-target): Look for with_bfd_assembler option.
3315 For now, only accept "no", until the merge is done.
3316
3317 Merged changes from Eric Youngdale (youngdale@v6550c.nrl.navy.mil):
3318 * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c,
3319 config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS.
3320 * read.c: Finish conversion to S_* macros in the VMS only
3321 parts of the program. Add "const" modifier to hex_value.
3322 * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to
3323 "ifdef OBJ_VMS".
3324 * expr.c: Add "const" modifier to hex_value.
3325 * symbols.c: Finish conversion to S_* macros in the VMS only
3326 parts of the program. Add "const" modifier to
3327 md_[long,short]_jump_size. Remove declaration of const_flag
3328 (which will be declared in obj-vms.h).
3329 * write.c: Add "const" modifier to md_[long,short]_jump_size.
3330 Fix arguments to VMS_write_object_file.
3331 * config-gas.com: New file. Script for VMS systems to set up the
3332 configuration to build gas for VMS, and create config.status.
3333 * make-gas.com: Redone to work with new scheme.
3334 * obj-vms.c: Patch to fix bug where we were not correctly parsing the
3335 stabs directives.
3336 * obj-vms.c: Define macros COPY_LONG and COPY_SHORT which
3337 will swap bytes if needed on a big endian system. Use throughout
3338 as needed.
3339 * obj-vms.c (obj_aout_stab): Add code to generate listing file.
3340 * obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain
3341 types of malformed stabs. Change parsing algorithm so that we are
3342 more certain of having all of the information that we need on hand.
3343 * obj-vms.c (final_forward_reference): New function, used to help
3344 resolve the data types of as many struct elements as possible
3345 when some part of the struct is not fully defined by the compiler.
3346 * obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation
3347 stabs directives.
3348 * obj-vms.c (VMS_write_object_file): Define all vtable psects
3349 as symbols as well in the object file. Look for external functions
3350 that start with "__vt.", and turn them into variables, since the
3351 g++ compiler is incapable of doing this.
3352 * tc-vax.c: Add '1' option for backward compatibility with older GCC
3353 versions.
3354 * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes.
3355 * input-scrub.c (as_where): Fix bug where as would crash if we did not
3356 have the name of the source file yet.
3357 * config/ho-vms.h: define HO_VMS, not HO_VAX.
3358
3359 Mon Jan 4 05:17:26 1993 Ken Raeburn (raeburn@cygnus.com)
3360
3361 * read.c (s_data): Always use "data_section", since it'll map to
3362 SEG_DATA or SEG_E1 if needed.
3363 (s_lcomm): Likewise with bss_section.
3364 (s_fill): Use memset, not bzero.
3365
3366 Thu Dec 31 04:29:27 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3367
3368 * read.c: Deleted some code under "#ifdef DONTDEF" that was for
3369 handling GDB symbol table data.
3370
3371 * config/obj-aout.h (segment_name): Delete definition.
3372 (seg_name): Delete declaration.
3373 * config/obj-bout.h (segment_name, seg_name): Ditto.
3374 * config/obj-vms.h (segment_name, seg_name): Ditto.
3375 * config/obj-coff.h (segment_name): Ditto.
3376 * config/obj-coffbfd.h (segment_name): Ditto.
3377
3378 * Changes for BFD_ASSEMBLER:
3379 * obj.h (obj_crawl_symbol_chain): Declare only if not
3380 BFD_ASSEMBLER.
3381 (obj_header_append, obj_pre_write_hook): Ditto.
3382 * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER.
3383 (segT) [BFD_ASSEMBLER]: New typedef for "asection *".
3384 (segment_name) If BFD_ASSEMBLER, look up BFD section name;
3385 otherwise, use seg_name array.
3386 (seg_name): Declare only if not BFD_ASSEMBLER.
3387 (section_alignment): Declare only if not BFD_ASSEMBLER.
3388 (big_section, reg_section, pass1_section, diff_section,
3389 absent_section, text_section, data_section, bss_section): If
3390 BFD_ASSEMBLER, declare as variables; otherwise, declare as macros,
3391 mapping to segT enum values.
3392 (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors
3393 if these are used or defined, if BFD_ASSEMBLER.
3394 (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old
3395 subseg_new split into two functions.
3396 (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now.
3397
3398 * as.h (volatile): Don't define if already defined.
3399 (had_errors, had_warnings): Provide prototypes for ANSI C even if
3400 NO_STDARG.
3401 (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2,
3402 declare with format attribute for -Wformat checking.
3403
3404 Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
3405
3406 * app.c, config/tc-*.c: Don't include read.h, since it is already
3407 included by as.h.
3408
3409 * These are based on patches from Minh Tran-le
3410 <mtranle@paris.intellicorp.com>.
3411 * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use
3412 obj_format coffbfd and gas_target i386coff for target.
3413 (i[34]86-*-isc*): New host (uses sysv).
3414 * config/i386aix.mt: Removed (no longer used).
3415 * config/mh-i386aix (RANLIB): Use true rather than /bin/true.
3416 (MINUS_G): Removed.
3417 (LDFLAGS): Added, defined as -shlib.
3418 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
3419 * config/te-sco386.h (LOCAL_LABEL): Don't define.
3420 (DOT_LABEL_PREFIX): Define.
3421 * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
3422 name rather than L0\001.
3423 * read.c (s_lcomm): Make a frag in SEG_BSS rather than using
3424 local_bss_counter.
3425 * symbols.c, symbols.h (local_bss_counter): Removed.
3426 * write.c (write_object_file): bss no longer uses
3427 local_bss_counter. Pass correct data and bss size to
3428 VMS_write_object_file.
3429 * config/obj-vms.c (VMS_write_object_file): Accept bss size as
3430 argument, rather than using local_bss_counter.
3431 * config/tc-m88k.c (s_bss): Don't use local_bss_counter.
3432 * config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
3433 * config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
3434 (size_section): Restored sanity check.
3435 (do_relocs_for): Base section address on s_paddr rather than
3436 computing it. Adjust a29k R_IHIHALF special case to account for
3437 section paddr (used to require paddr to be zero). If there are no
3438 reclos, set s_relptr to 0. Set relocation size in object_headers.
3439 (fill_section): Always set s_vaddr here, removing
3440 ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set
3441 NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
3442 Set STYP_INFO for .comment.
3443 (coff_header_append): Use object headers and H_{SET,GET}_* macros.
3444 Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
3445 (crawl_symbols): Handle 8 character section name correctly. Use
3446 H_{SET,GET}_* macros.
3447 (do_linenos_for): Set lineno size in object_headers.
3448 (write_object_file): Use H_{SET,GET}_* macros. Don't bother to
3449 set s_vaddr here. If string_byte_count remains 4, set it back to
3450 0, and only write strings out if there are some. Call
3451 fill_section before do_relocs_for and do_linenos_for.
3452 (obj_coff_section): Handle optional quoted second argument giving
3453 section characteristics.
3454 (obj_coff_bss): Added to handle .bss.
3455 (obj_coff_ident): Added to handle .ident (puts string in .comment
3456 section).
3457 (obj_coff_lcomm): Put common symbols in .bss, not .data.
3458 (fixup_mdeps): Change to segment. Call frag_wane after
3459 md_convert_frag.
3460 (fixup_segment): Explicitly check S_IS_COMMON before making 386
3461 adjustment (already happened only for common symbols, but this is
3462 clearer).
3463 * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
3464 * config/tc-i386.c (s_bss): Don't use if I386COFF.
3465 (md_pseudo_table): Ignore .optim and .noopt.
3466 (tc_coff_sizemachdep): New function.
3467 * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
3468 compatibility.
3469 (LOCAL_LABEL): Removed definition.
3470 (DOT_LABEL_PREFIX): Defined.
3471
3472 Mon Dec 28 10:32:05 1992 Ken Raeburn (raeburn@cygnus.com)
3473
3474 * app.c (app_push): Use memcpy, not bcopy.
3475 (do_scrub_next_char): For \", return " not '.
3476 (symbol_chars): Now const.
3477
3478 * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f"
3479 and "0b". If LOCAL_LABELS_DOLLAR, check for "0$".
3480
3481 * config/obj-coff.h: Don't use #elif.
3482
3483 * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't
3484 have it. (Reported by Noah Friedman, friedman@gnu.ai.mit.edu.)
3485
3486 Wed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)
3487
3488 * write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
3489 already defined.
3490
3491 Tue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3492
3493 * app.c (do_scrub_begin): allow single quote strings if so
3494 configured.
3495
3496 * config/*z8k*: checkpoint
3497
3498 Sun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com)
3499
3500 * read.c (read_a_source_file): avoid calling xmalloc (0).
3501
3502 Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
3503
3504 * listing.c: Call xmalloc, not malloc; don't declare malloc.
3505
3506 * Changes to support SCO 3.2v4:
3507 * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
3508 SEG_BSS, fill with NOP_OPCODE.
3509 * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
3510 * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
3511 using ZERO_BASED_SEGMENTS.
3512 (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
3513 never set segment address for SEG_E2 (.bss) and don't write out
3514 SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
3515 (obj_coff_endef): Don't merge labels or symbols awaiting forward
3516 definitions, and don't merge tags with non-tags. Check for .bf
3517 rather than just checking whether the second character is b and
3518 the third character is f.
3519 (obj_coff_val): gcc can generate values which we don't handle
3520 correctly; discard information for now, since it only affects the
3521 debugging information.
3522 (tag_find_or_name): Don't insert tags in the symbol table.
3523 (yank_symbols): Don't merge labels.
3524 (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
3525 already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
3526 set segment address if ZERO_BASED_SEGMENTS.
3527 (obj_coff_section): Accept and ignore a trailing quoted string, as
3528 used in AT&T i386 syntax.
3529 (fixup_segment): Take segment as argument. On the i386, adjust PC
3530 relative addends by the segment vaddr.
3531 * tc-i386.h: Define SUB_SEGMENT_ALIGN.
3532 * tc-a29k.h: Define ZERO_BASED_SEGMENTS.
3533 * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
3534
3535 Tue Dec 8 00:06:48 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
3536
3537 * config/obj-coffbfd.c: Include libcoff.h.
3538
3539 * version.c: Now version 1.93.
3540
3541 Mon Dec 7 00:39:09 1992 Ken Raeburn (raeburn@cygnus.com)
3542
3543 * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do
3544 power-of-two alignment for .align.
3545
3546 * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial,
3547 and leave everything else alone.
3548
3549 Fri Dec 4 16:58:42 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3550
3551 * Makefile.in (as.new): Don't bother saving as.old.
3552
3553 * write.c: Conditionalize on OBJ_VMS, not VMS.
3554 (magic_number_for_object_file): Don't define if OBJ_VMS.
3555
3556 * config/obj-vms.c: Changes for traditional C.
3557
3558 Thu Dec 3 01:24:07 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3559
3560 * config/ho-generic.h (malloc, realloc): Declare.
3561
3562 * Lots of comment/whitespace changes.
3563
3564 * write.h (struct fix): Some fields reordered, narrowed.
3565
3566 * read.c (MASK_CHAR): Define using C types, not magic number.
3567
3568 * as.c, input-file.c: Deleted some unused code.
3569
3570 * app.c, as.h: Doc fix.
3571
3572 * flonum-konst.c, flonum-mult.c: Include ansidecl.h.
3573
3574 * as.h (xmalloc): Argument is long.
3575
3576 * xmalloc.c (error): Remove declaration; as.h takes care of it.
3577
3578 * doc/as.texinfo: Regrouped documentation of some command-line
3579 options. Updated options documentation for m68k. Some minor
3580 wording/punctuation changes.
3581
3582 Mon Nov 30 11:42:11 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3583
3584 * configure.in: Accept target OS "vms".
3585
3586 * symbols.c: Merged ANSI and non-ANSI function decls, using
3587 PARAMS macro.
3588
3589 * xmalloc.c: Just include as.h, don't bother trying to figure out
3590 other header files.
3591
3592 * strstr.c, strerror.c: Deleted.
3593 * Makefile.in: Deleted references.
3594
3595 * config/tc-ns32k.c: Don't include header file for string
3596 declarations; leave that to ho-*.h.
3597
3598 Fri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com)
3599
3600 * config/coff_gnu.h [TC_I860]: Guesses for reloc type values,
3601 imported from FSF sources.
3602
3603 * messages.c (strerror): Declare unconditionally.
3604
3605 * as.h: Delete alloca and register definitions.
3606
3607 * config/atof-ieee.c (mask): Now const.
3608
3609 * obstack.c, obstack.h: Deleted.
3610
3611 * as.h (flag_readonly_data_in_text): New flag.
3612 * as.c (main): Set it for -R.
3613
3614 * as.h (flag_suppress_warnings): New flag.
3615 * as.c (main): Set it for -W.
3616 * messages.c (as_warn): Check it instead of flagseen['W'].
3617
3618 * as.h (flag_always_generate_output): New flag.
3619 * as.c (main): Set it for -Z.
3620
3621 * config/tc-sparc.h: Define NEED_FX_R_TYPE.
3622 * config/tc-a29k.h: Ditto.
3623 * write.h (struct fix): Don't conditionalize fx_r_type field on TC
3624 macros.
3625
3626 * as.h: Merged ANSI and non-ANSI function decls, using PARAMS
3627 macro.
3628 * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h,
3629 obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h,
3630 write.h: Likewise.
3631 * read.c: Likewise.
3632
3633 * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in
3634 xrealloc from xrealloc.c.
3635 * xrealloc.c: Deleted.
3636 * Makefile.in (REAL_SOURCES, OBJS): Adjusted.
3637
3638 * configure.in: For host CPU a29k, rs6000, vax, consider using bsd
3639 or vms ho- files.
3640
3641 * config/ho-sysv.h (setbuffer, HO_USG): Deleted.
3642
3643 * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer;
3644 don't initialize it with NULL.
3645
3646 * config/ho-vax.h (M_VAX): Deleted; was unused.
3647
3648 * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h:
3649 New files imported from FSF version, contributed by Eric Youngdale.
3650 * README-vms-dbg, config/vms: Deleted.
3651
3652 * ChangeLog, config/ChangeLog: Merged.
3653
3654 * config/*tahoe*, configure.in: Tahoe support brought in from FSF
3655 version.
3656
3657 * input-file.c (input_file_open): Eliminate call to setvbuf.
3658 [USG] (setbuffer): Deleted macro.
3659
3660 Mon Nov 23 11:00:16 1992 Ken Raeburn (raeburn@cygnus.com)
3661
3662 * all files: Whitespace changes for GNU indentation style, done by
3663 GNU `indent'. Some cleanup still needed, especially of comments.
3664
3665 * configure.in: No te-386bsd.h file exists; don't try to use it.
3666
3667 * obj-coff.c (obj_coff_endef): Use as_warn, not fprintf.
3668
3669 * tc-m68k.c (md_assemble): Don't complain about 68000 with 68881;
3670 could be doing emulation.
3671
3672 Thu Nov 19 11:47:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3673
3674 z8000 documentation
3675 * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo:
3676 all modified.
3677
3678 Tue Nov 10 09:49:24 1992 Ian Lance Taylor (ian@cygnus.com)
3679
3680 * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h.
3681
3682 * subsegs.h: add extern to segment_info declaration.
3683
3684 * read.h: added extern declarations for comment_chars,
3685 line_comment_chars, and line_separator_chars.
3686 read.c, app.c: removed definitions of comment_chars,
3687 line_comment_chars, and line_separator_chars.
3688
3689 * tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined,
3690 still accept (but don't require) OPTIONAL_REGISTER_PREFIX before
3691 the register name.
3692 (insert_reg): put REGISTER_PREFIX before register names before
3693 putting them in the symbol table.
3694 * tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not
3695 M68KCOFF.
3696
3697 * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss
3698 section.
3699
3700 * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS,
3701 comment_chars, line_comment_chars and line_seperator_chars
3702 consistently const, and always initialized them. Included read.h.
3703
3704 Thu Nov 5 17:55:41 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
3705
3706 * tc-sparc.c (sparc_ip): Add code to flag error if an absolute
3707 constant will not fit in an immediate field.
3708 (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow.
3709
3710 Wed Nov 4 07:50:46 1992 Ken Raeburn (raeburn@cygnus.com)
3711
3712 * obj-coff.c (callj_table): Delete global variable.
3713 (obj_emit_relocations): Define it locally here, and only if
3714 TC_I960 is defined.
3715
3716 * tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name.
3717 (m68k_ip): Don't warn about bignum used as float bit-pattern.
3718
3719 * obj-coff.c: Replaced ANSI and non-ANSI function declarations
3720 with a single set using PARAMS macro.
3721
3722 * tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length
3723 of 2.
3724
3725 * tc-i960.c: Missed a couple of 0->NO_RELOC conversions.
3726
3727 * tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values,
3728 so widening works consistently.
3729
3730 Wed Oct 28 08:52:34 1992 Ken Raeburn (raeburn@cygnus.com)
3731
3732 * version.c: Put conditional "const" before version_string, not
3733 before dummy function for VMS. Now version 1.91.03.
3734
3735 * app.c (do_scrub_next_char): Need double-\ before `000' to show
3736 printed rep of null character.
3737
3738 Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
3739
3740 * obj-coffbfd.c (write_object_file): check return value of
3741 bfd_close_all_done.
3742
3743 Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
3744
3745 * Support for i386-sysv.
3746 obj-coffbfd.c (do_relocs_for, write_object_file): set segment
3747 addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can
3748 be used to set them all to zero as was done before.
3749 (fill_section): segment addresses now set in write_object_file.
3750 (fill_section): Don't set STYP_NOLOAD for .bss section.
3751 (fixup_segment): 386 uses strange common symbol format.
3752 tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
3753 compatibility with SVR3.2 linker.
3754 * configure.in: i386-sysv and i386-sco use coffbfd.
3755
3756 * app.c (do_scrub_next_char): discard whitespace after a label.
3757
3758 Sat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3759
3760 * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4
3761 hosts, use the sysv configuration for solaris2
3762
3763 Mon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3764
3765 fix i960+non-bfd coff bit rot.
3766 * obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
3767 support for C source listings. (obj_coff_endef): look in the right
3768 part of the symbol for the symbol name
3769
3770 * tc-m68k.c (get_num): make it work for all segments, not just the
3771 first three.
3772
3773 Mon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
3774
3775 * configure.in: recognize i386-*-bsd emulation.
3776
3777 Thu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3778
3779 * configure.in: use the cpu-vendor-os triple for host and target
3780
3781 Tue Sep 29 12:22:52 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3782
3783 * obj-coffbfd.c (write_object_file): don't fixup for the z8k
3784 * tc-z8k.c: lots of bug fixes
3785
3786 Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
3787
3788 * tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
3789 #elif, since it is not supported by old compilers.
3790 ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
3791 couple of expressions in tc-m68k.c.
3792
3793 Mon Sep 28 21:18:24 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3794
3795 * read.c (cons): If NO_RELOC is defined, use it.
3796
3797 * tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new.
3798
3799 Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
3800
3801 * tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
3802 local labels to start with a .) and set REGISTER_PREFIX to %.
3803 tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
3804
3805 Fri Sep 25 17:53:43 1992 John Gilmore (gnu@cygnus.com)
3806
3807 * messages.c: Comment changes.
3808
3809 Fri Sep 25 14:12:58 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
3810
3811 * as.h: Test if __STDC__ is defined only, don't test its value.
3812 * messages.c: If __STDC__ is not defined, define NO_STDARG.
3813
3814 Thu Sep 24 12:42:32 1992 Brendan Kehoe (brendan@rtl.cygnus.com)
3815
3816 * listing.c (debugging_pseudo): Add stabs and stabn as things to
3817 ignore.
3818
3819 Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
3820
3821 * obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
3822 sections starting from zero, rather than making them consecutive.
3823 This makes subsequent reloc calculations easier, esp if the object
3824 format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily)
3825 allocate lcomm in .data rather than in .bss. It seems that some
3826 tools can't cope with a non-zero sized bss before linkage.
3827
3828 Tue Sep 22 15:10:51 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3829
3830 * tc-m68k.c: Replace "enum m68k_architecture" with "int"
3831 throughout. That enum no longer means what we thought it meant.
3832
3833 * tc-m68k.c (md_assemble, md_parse_option): Handle new
3834 "-mno-688[58]1" options.
3835
3836 * tc-m68k.c: Added CPU32 support.
3837
3838 Fri Sep 18 08:02:18 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3839
3840 * tc-m68k.c (m68k_ip): An(disp) is not pc relative.
3841
3842 Tue Sep 15 17:25:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
3843
3844 * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES.
3845 Change LIBDEPS dependence to LIBS.
3846
3847 Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com)
3848
3849 * Makefile.in (install): if $(tooldir) exists, install as in
3850 $(tooldir)/bin.
3851
3852 Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
3853
3854 * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
3855 .word is < -32768 or > 32767. The -J flag causes the error to be
3856 ignored. This is to catch over-sized switches generated by gcc on
3857 systems which don't support the broken .word hack.
3858 as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
3859 write.c (fixup_segment): check for signed .word overflow if
3860 WARN_SIGNED_OVERFLOW_WORD.
3861
3862 * write.c (fixup_segment): fixed missing parens in expression
3863 checking for byte or word overflow.
3864
3865 * obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
3866 obj-coffbfd.c (fixup_segment): check for signed .word overflow if
3867 WARN_SIGNED_OVERFLOW_WORD.
3868
3869 * obj-coffbfd.c (fixup_segment): fixed missing parens in
3870 expression checking for byte or word overflow.
3871
3872 Fri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3873
3874 Support for i386 coff
3875 * obj-coffbfd.h : added stuff
3876 * tc-i386.c (tc_coff_fix2rtype): new function
3877 * tc-i386.h : new coff defines
3878
3879 Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com)
3880
3881 * input-scrub.c (input_scrub_push): call input_file_begin, not
3882 input_scrub_begin.
3883 messages.c (as_perror): print ": " between the passed in error and
3884 the strerror, like perror does.
3885
3886 Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
3887
3888 * Makefile.in: use gas_target instead of modifying target_cpu.
3889 From Steve Chamberlain:
3890 Makefile.in: Handle m68*-*-coff*.
3891 read.c, read.h: add mult argument to s_space
3892
3893 * tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
3894 Motorola and MIT syntax; gas can now assemble either type of
3895 file.
3896 tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
3897 From Steve Chamberlain:
3898 m68kcoff.mt: for m68k COFF.
3899 obj-coffbfd.c: (fixup_mdeps) added
3900 (size_section) removed bad sanity check
3901 (fill_section) added rs_machine_dependent case
3902 (write_object_file) call fixup_mdeps
3903 (fixup_segment) set fx_subsy to 0.
3904 obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
3905 handle m68k.
3906 tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
3907 pseudo ops.
3908
3909 Tue Sep 8 17:10:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3910
3911 * Makefile.in (LIBS): Include opcode library.
3912
3913 Fri Sep 4 18:20:56 1992 Ken Raeburn (raeburn@cygnus.com)
3914
3915 * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers
3916 including zero are accepted, pass +0.0.
3917
3918 Sun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com)
3919
3920 * Makefile.in: map "as" through program_transform_name when
3921 installing.
3922
3923 * doc/Makefile.in: map "as" through program_transform_name when
3924 installing.
3925
3926 Sat Aug 29 12:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
3927
3928 * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
3929
3930 Fri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com)
3931
3932 * obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
3933 tc-i960.c (md_ri_to_chars): Always output bout object file in
3934 little endian byte order (used to use endianness of host).
3935
3936 Tue Aug 25 15:50:48 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3937
3938 * config/tc-m68k.c (init_table): Now const. Always include 68851
3939 data, so that "bc" is available to 68040 cache instructions.
3940 Added "tt0", "tt1", and 68ec030 variants.
3941 (md_assemble): Complain if 68000 (only) and 68881 are specified.
3942 (enum _register): Added TT0, TT1.
3943 (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass
3944 line number correctly in "internal error" messages. Don't print
3945 architecture-mismatch message for operand errors.
3946
3947 From Colin Smith (colin@wrs.com):
3948 * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather
3949 than install_operand.
3950
3951 Tue Aug 25 15:13:48 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3952
3953 * listing.c (buffer_line): rewind to the start of include
3954 files, they might be included twice.
3955
3956 * z8k.c, z8k.h, z8k.mt: z8000 support stuff
3957
3958 Mon Aug 24 12:45:43 1992 Ian Lance Taylor (ian@cygnus.com)
3959
3960 * Makefile.in: defined TARGET_CPU for C code so that it can choose
3961 one element of a family.
3962
3963 * tc-m68k.c: use TARGET_CPU to choose default cpu type.
3964
3965 * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
3966 so that we can assemble hand-written libgcc code.
3967
3968 Fri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3969
3970 * messages.c (as_warn): Use fputs, not fprintf, with a buffer that
3971 has already been formatted (but may still contain %-characters).
3972 (as_bad): Likewise.
3973
3974 Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
3975
3976 * tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
3977 written with indirection on the last two operands, which can be
3978 either data or address registers. Added a new operand type 'r'
3979 which accepts either register type. Added '(' to notend stuff in
3980 tc-m68kmote.c to accept (a0):(a2) in cas2 instruction.
3981
3982 Wed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com)
3983
3984 * as.h (enum _relax_state): Start off at one, not zero, to better
3985 catch uninitialized-variable errors.
3986 (linkrelax): Declare new variable.
3987
3988 * messages.c (warning_count, error_count): Default initializer is
3989 sufficient.
3990
3991 * write.c: Merged some declarations, using PARMS macro.
3992 (text_frag_root, data_frag_root, bss_frag_root, text_last_frag,
3993 data_last_frag): No longer static.
3994 (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is
3995 defined, call it. Change segments before calling fixup_segment.
3996 (relax_align): If linkrelax, provide extra padding.
3997
3998 * obj-bout.c (obj_emit_relocations): Emit alignment relocs despite
3999 their not having symbols associated.
4000
4001 * tc-i960.c (norelax, instrument_branches): Default initializer is
4002 sufficient.
4003 (linkrelax): Delete variable definition.
4004 (mem_fmt): Call fix_new with NO_RELOC.
4005 (tc_bout_fix_to_chars): Handle alignment relocs.
4006 (i960_handle_align): New function.
4007 * tc-i960.h (linkrelax): Delete declaration.
4008 (HANDLE_ALIGN): New macro; calls i960_handle_align.
4009 (NEED_FX_R_TYPE, NO_RELOC): New macros.
4010
4011 Tue Aug 18 14:59:21 1992 Ken Raeburn (raeburn@cygnus.com)
4012
4013 * config/sparc.mt: New file. Grab sparc opcode table from bfd
4014 library.
4015
4016 Tue Aug 18 14:16:38 1992 Ian Lance Taylor (ian@cygnus.com)
4017
4018 * Makefile.in: always create installation directories. Removed
4019 MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
4020 FLAGS_TO_PASS to recursive makes.
4021
4022 * doc/Makefile.in: always create installation directories.
4023
4024 Mon Aug 17 15:09:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4025
4026 * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was
4027 being used with args swapped, causing occasional lossage when
4028 refilling buffers after an include file.
4029
4030 Mon Aug 17 13:18:51 1992 Ken Raeburn (raeburn@cygnus.com)
4031
4032 * messages.c (as_tsktsk): Use correct ANSI form for stdarg
4033 version. Discard bogus DONTDEF version.
4034 (as_warn, as_bad, as_fatal): Likewise.
4035
4036 Fri Aug 14 18:31:14 1992 Ken Raeburn (raeburn@cygnus.com)
4037
4038 * config/tc-m68k.c (m68k_ip): If instruction is invalid for the
4039 selected architecture, print a message saying so and listing what
4040 processors support it, rather than saying "operands mismatch".
4041
4042 Thu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com)
4043
4044 * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
4045
4046 * config/ho-rs6000.h (M_RS6000): Don't define it.
4047 (free): Declare it.
4048 (BROKEN_ASSERT): Define it if not __STDC__.
4049
4050 Tue Aug 11 12:58:14 1992 Ken Raeburn (raeburn@cygnus.com)
4051
4052 * sparc.mt: New file.
4053
4054 Mon Aug 10 14:37:08 1992 Per Bothner (bothner@cygnus.com)
4055
4056 * tc-m68k.c: ".align N" means align to N-byte boundary *only*
4057 if TN_SUN3; otherwise align to 2**N-byte bounary.
4058
4059 Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4060
4061 * read.c (s_fill): make the .fill size clamped error a warn and
4062 fix bug where 0's were always placed.
4063
4064 * config/tc-h8300.c: if a :8 is seen after an operand, fill top
4065 two bytes of any constant with 0xff:
4066
4067 Wed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4068
4069 * config/tc-m68k.c (md_pseudo_table): fix the .align thing
4070 the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo.
4071
4072 Wed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com)
4073
4074 * tc-m68k.c (try_index): Error if index scaling specified and
4075 assembling for an older CPU than a 68020.
4076
4077 Sat Aug 1 19:10:13 1992 Ken Raeburn (raeburn@cygnus.com)
4078
4079 * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take
4080 fx_offset into account.
4081
4082 Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com)
4083
4084 * configure.in (mips host): Accept "ultrix" with version number.
4085
4086 * expr.c (floating_constant): Separate "=-" to avoid confusing
4087 ancient or broken compilers.
4088
4089 * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
4090 processor/opcode mismatch, so reword the error message.
4091 (md_assemble): If no CPU has been set (even if FPU/PMMU
4092 characteristics have been), default to 68020. Don't need extra
4093 quotes around error string.
4094
4095 Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
4096
4097 * read.c (potable): Revert sac's incorrect change made Jul 13.
4098 Align really is supposed to be ptwo not nbytes.
4099
4100 Mon Jul 20 02:51:59 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
4101
4102 * Makefile.in: _Do_ include libiberty. (from sef)
4103
4104 Fri Jul 17 15:15:28 1992 Ken Raeburn (raeburn@cygnus.com)
4105
4106 * expr.c (integer_constant): Handle "0f" and "0b" label references
4107 properly.
4108
4109 Thu Jul 16 08:20:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4110
4111 * write.c (fixup_segment): if relaxing, don't do anything.
4112 * config/obj-bout.[ch] : maintain the a_relaxable file header info
4113 * config/tc-i960.c: new option -linkrelax
4114
4115 Mon Jul 13 14:11:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4116
4117 * expr.c (expr): allow SEG_BSS in expressions
4118 * read.c (potable): align should be nbytes, not ptwo!
4119 * write.c (write_object_file): extra glue for new bss attributes
4120 (relax_segment): SEG_BSS is ok now
4121 * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes
4122
4123 Mon Jul 6 17:09:32 1992 Steve Chamberlain (sac@cygnus.com)
4124
4125 * obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT
4126
4127 Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
4128
4129 * configure.in: recognize m680x0 as having sun3 emulation mode for
4130 vxworks environment.
4131
4132
4133 Tue Jun 30 20:25:54 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
4134
4135 * Makefile.in: Add program_suffix (parallel to program_prefix)
4136
4137 Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4138
4139 * app.c (process_escape): new function to handle escapes the right
4140 way, (do_scrub_next_char): use new function
4141 * cond.c (s_ifdef): do ifdef/ifndef right
4142 * read.c (s_fill): make the , expressions optional like the doc
4143 says
4144 * config/tc-h8300.[ch]: better warnings
4145
4146 Tue Jun 9 07:54:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4147
4148 * subsegs.c (subsegs_begin): create bss0_frchainP in the same was
4149 as data0_frchainP
4150
4151 * write.c (write_object_file): various changes to handle data in
4152 the BSS segment in much the same was as stuff in the DATA segment.
4153
4154 * tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do
4155 pcrel data stuff. (md_estimate_size_before_relax): when relaxing a
4156 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into
4157 the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put
4158 it into SEG_BSS
4159
4160 Thu Jun 4 11:59:13 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4161
4162 * expr.c(expr): allow SEG_REGISTER in expressions.
4163 * read.c(pseudo_set): register expressions can be the source of a
4164 set.
4165 * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to
4166 goto SEG_TEXT (if a.out)
4167 * write.c (write_object_file): If a.out don't use the old way for
4168 -R.
4169 * config/obj-a.out (s_sect): complain if the user tries to use a
4170 subsegment with a value which might interfere with out -R hackery.
4171 * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table
4172 rather than use ugly if tree. (init_regtable): insert register
4173 names into symbol table.
4174
4175 Tue Jun 2 16:47:09 1992 Steve Chamberlain (sac@cygnus.com)
4176
4177 * write.c (write_object_file): keep the fix_tail clean, which
4178 fixes a bug in -R where relocations were being lost.
4179
4180 Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
4181
4182 * configure.in: recognize m680x0 as having sun3 emulation mode for
4183 vxworks environment.
4184
4185 Sun May 31 05:33:00 1992 david d `zoo' zuhn (zoo@cygnus.com)
4186
4187 * configure.in: recognize m680x0 as an m68k
4188
4189 Thu May 28 11:22:02 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
4190
4191 * configure.in: Recognize sparclite as a sparc variant.
4192
4193 * tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new
4194 -Asparclite flag.
4195
4196 Tue May 26 16:47:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4197
4198 * config/tc-a29k.c: lint
4199 * listing.c, expr.c: patches from Andrew Smith
4200
4201 Thu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4202
4203 * doc/Makefile.in: use m4 rather than gm4.
4204
4205 Mon May 4 18:56:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4206
4207 * obj-coffbfd.c: use is a synonym for section, (do_relocs_for):
4208 calc the base of relocs correctly.
4209 * tc-a29k.c (parse_operand): allow expressions to be in any section.
4210
4211 Mon Apr 27 13:13:31 1992 K. Richard Pixley (rich@cygnus.com)
4212
4213 * as.c, write.c: use -K rather than -k for the broken word warning
4214 option.
4215
4216 Tue Apr 21 13:35:30 1992 K. Richard Pixley (rich@cygnus.com)
4217
4218 * Makefile.in: do not print recursion lines.
4219
4220 Wed Apr 15 21:19:31 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4221
4222 * Makefile.in: the tooldir copy of gas goes directly in tooldir.
4223
4224 Tue Apr 14 14:50:22 1992 Ken Raeburn (Raeburn@Cygnus.COM)
4225
4226 * write.c (write_object_file): For b.out format, round up section
4227 start addresses to match required alignment.
4228
4229 Thu Apr 9 05:45:29 1992 Ken Raeburn (Raeburn@Cygnus.COM)
4230
4231 * Makefile.in (install): Install into $(tooldir)/bin, since that's
4232 where gcc looks for it.
4233
4234 Tue Apr 7 15:12:15 1992 Sean Eric Fagan (sef@cygnus.com)
4235
4236 * Makefile.in: Changed some lines to be less confusing for some
4237 makes.
4238
4239 * input-file.c: Conditionalize on _IOFBF, not VMS.
4240
4241 * read.c, write.c: Change a series of ifdef/elif to
4242 ifdef/else/ifdef etc.
4243
4244 Fri Mar 27 12:21:16 1992 K. Richard Pixley (rich@cygnus.com)
4245
4246 * symbols.c (fb_label_init): fix sizeof to memset.
4247
4248 Fri Mar 13 15:45:44 1992 K. Richard Pixley (rich@cygnus.com)
4249
4250 * Makefile.in: install the man page.
4251
4252 * Makefile.in: pass down MAKEINFO explicitly on info.
4253
4254 * doc/Makefile.in: use $(MAKEINFO) not makeinfo.
4255
4256 Fri Mar 13 08:03:03 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4257
4258 * flonum-const.c: renamed flonum-konst.c to stop dos name
4259 conflict.
4260
4261 Thu Mar 12 04:42:38 1992 K. Richard Pixley (rich@cygnus.com)
4262
4263 * tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
4264 tc-m68k.h to te-sun3.h.
4265
4266 Wed Mar 11 23:32:42 1992 K. Richard Pixley (rich@cygnus.com)
4267
4268 * configure.in: vxworks68 gets te-sun3.h.
4269
4270 * expr.c: remove limitation that local_labels_dollar or
4271 local_labels_fb must be < 10.
4272
4273 * symbols.c: remove local_labels_dollar, replace with a function
4274 interface for a sparse array. All users adjusted.
4275
4276 * te-sun3.h: add LOCAL_LABELS_DOLLAR.
4277
4278 Sat Mar 7 00:06:25 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4279
4280 * doc/Makefile.in: commented out line for building as-all.texinfo.
4281 This is temporary.
4282
4283 * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks.
4284
4285 Fri Mar 6 21:57:18 1992 K. Richard Pixley (rich@cygnus.com)
4286
4287 * Makefile.in: added check target.
4288
4289 Tue Mar 3 15:45:56 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4290
4291 * Makefile.in: added tooldir and program_prefix.
4292
4293 Sun Mar 1 04:43:19 1992 Michael Tiemann (tiemann@cygnus.com)
4294
4295 * write.{c,h} (fix_new): Make these declarations consistent.
4296
4297 Sat Feb 29 13:59:10 1992 Michael Tiemann (tiemann@cygnus.com)
4298
4299 * Makefile.in (strerror.o): Add rule so that broken Sun make can
4300 work in subdirs.
4301
4302 Wed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com)
4303
4304 * read.c, obj-coffbfd.c : fix h8300 specific bit rot
4305
4306 * expr.c (operand): if can't work out what sort of operand it is,
4307 then look through FLT_CHARS for a hint.
4308
4309 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
4310
4311 * Makefile.in, configure.in: removed traces of namesubdir,
4312 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
4313 copyrights to '92, changed some from Cygnus to FSF.
4314
4315 * doc/Makefile.in, doc/configure.in: removed traces of namesubdir,
4316 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
4317 copyrights to '92, changed some from Cygnus to FSF.
4318
4319 Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4320
4321 * expr.c: If an expression is single comma, then return with
4322 SEG_ABSENT rather than an error - since the sparc front end does
4323 really strange things with things like fbge,a
4324
4325 * as.h: include bfd.h if using many sections
4326 * expr.c: LOCAL_LABELS_FB had been changed to lower case - so
4327 local labels didn't work.
4328 * listing.c (list_symbol_table): don't core dump when there's no
4329 symbol there.
4330 * write.c, write.h: call fix_new with the right number of args on
4331 the H8.
4332 * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
4333 errors nices
4334
4335 Sat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4336
4337 * app.c: MRI compatibility - allow single quote to start a string.
4338 * as.c: fix typo recently introduced.
4339 * as.h : Don't include aout/reloc.h - it's not right for COFF!
4340 * expr.c: Much rewriting, to accomodate MRI syntax for
4341 expressions. Also easier to read now.
4342 * listing.c: Put back defuns
4343 * read.c: modified to accept MRI syntax, put back listing pseudo
4344 ops so that an assembler built with NO_LISTING ignores list ops
4345 rather than pukes.
4346 * write.c, write.h: fixs - only keep a reloc type in a fix if the target
4347 machine is a SPARC or a 29K.
4348 * config/obj-aout.c: added s_sect pseudo op
4349 * config/obj-coffbfd.c: lints, set the filehdr flags right and
4350 fill in the timestamp.
4351 * config/obj-coffbfd.h: Since we don't include aout/reloc.h
4352 anymore, define all the relocs which the tc-<x> bit will use so we
4353 can translate from them to the coff types.
4354 * config/tc-a29k.c: reloc_type isn't ane enum any more
4355 * config/tc-m68k.c: Added NO_RELOC definition.
4356
4357 Fri Feb 21 06:21:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4358
4359 * Makefile.in: put header files before C source for TAGS; remove
4360 references to non-existent syscalls.h.
4361
4362 * read.c, write.c subsegs.c: back out the .bss changes.
4363
4364 * obj-aout.c: do not include stab.gnu.h if NO_LISTING.
4365
4366 * tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place.
4367
4368 * a.out.h: removed.
4369
4370 Fri Feb 21 01:08:48 1992 Minh Tran-Le (TRANLE@INTELLICORP.COM)
4371
4372 * symbols.c (local_label_name): symbols now start with ^A.
4373
4374 * read.c, subsegs.c, write.c obj-coff.c: added handling of
4375 `.bss` pseudo op for unitialized data. The new gcc (1.37.9x)
4376 generate these sections. .align: will use NOP_OPCODE or 0
4377 for padding. This is just for being nice to the
4378 disassembler.
4379
4380 * expr.c (operand): changed to generate local label "\001L0"
4381 starting with a ^A so that it is recognized as a local label.
4382
4383 * as.c (perform_an_assembly_pass): zero bss_fix_root, too.
4384
4385 * tc-i386.c: tc-i386.c: added handling of the following opcodes:
4386 i/o opcodes - inb, inw, outb and outw. string manipulation with
4387 att syntax - scmp, slod, smov, ssca, ssto.
4388
4389 * obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss
4390 to just after .file .
4391
4392 In obj_crawl_symbol_chain() where it tries to put the external
4393 symbols apart, with the condition:
4394 (!S_IS_DEFINED(symbolP) &&
4395 !S_IS_DEBUG(symbolP) &&
4396 !SF_GET_STATICS(symbolP))
4397 it was moving too many symbols out. So I switch it back to the
4398 condition:
4399 (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP))
4400
4401 In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO
4402 so that we don't use the F_RELFLG which make the linker complain
4403 that somebody has stripped the relocation info.
4404
4405 Also, the AIX ld program require that the relocation table
4406 is sorted by r_vaddr like the standard ATT assembler does.
4407
4408 [he also changed the sizeof(struct ...)'s into the coff
4409 style FOOSZ macros. I'm not sure this is right, but I can't
4410 remember why. xoxorich.]
4411
4412 Fri Feb 21 01:08:48 1992 K. Richard Pixley (rich@cygnus.com)
4413
4414 * Makefile.in, configure.in, doc: use the doc. Build it, install
4415 it, clean it, etc.
4416
4417 Tue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com)
4418
4419 * read.c: white space and comments only.
4420
4421 * configure.in: use the new atof-ns32.c for ns32k.
4422
4423 * write.c: comment change only.
4424
4425 * tc-m88k.[hc]: pulled in from hack's unfinished work. These
4426 aren't yet integrated.
4427
4428 * tc-i860.[hc]: blew off the dust. Something must still be done
4429 about conflicting relocation types.
4430
4431 * tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the
4432 real thing.
4433
4434 * tc-i960.c, tc-sparc.c: white space and comments only.
4435
4436 * tc-a29k.h: delete duplicate macro definition.
4437
4438 * new file atof-ns32k.c copied from hack's last unreleased gas.
4439
4440 Mon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com)
4441
4442 * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work
4443 rather than abort.
4444
4445 * nearly everything. flush ChangeLog, package as gas-1.92.1.
4446 ChangeLog's prior to this are sketchy at best. I have logs.
4447 They just aren't ChangeLogs.