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