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