fix more compilation bugs
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
f7da4a99
KR
1Wed Jul 12 01:12:12 1995 Ken Raeburn <raeburn@kr-pc.cygnus.com>
2
3 * write.c (fix_new): Use int, not short int, for argument type.
4 (fix_new_exp): Ditto.
5
6 * configure.in (arm-*-riscix*): Don't set emulations.
7
8 * config/tc-mips.c (NO_ECOFF_DEBUGGING): Define if ECOFF_DEBUGGING
9 wasn't previously defined.
10 (s_extern): Don't set ecoff_extern_size if NO_ECOFF_DEBUGGING.
11 (nopic_need_relax): Don't check it if NO_ECOFF_DEBUGGING.
12 (macro_build) [!USE_STDARG]: Don't use variadic prototype.
13 (mips_local_label) [NO_ECOFF_DEBUGGING]: Don't preserve potential
14 ECOFF debugging symbols.
15
16 * emul.h (struct emulation): Use unsigned, not unsigned char, for
17 bitfields.
18 * obj.h (struct format_ops): Likewise.
19
20 * config/tc-arm.c (symbol_make_empty) [BFD_ASSEMBLER]: Set
21 udata.p, not udata.
22
6804bd6c
ILT
23Tue Jul 11 14:30:19 1995 Ian Lance Taylor <ian@cygnus.com>
24
25 * doc/c-mips.texi: Document -m4010 and -mno-4010.
26
27Tue Jul 11 14:28:55 1995 Jeff Spiegel <jeffs@lsil.com>
28
29 * config/tc-mips.c (mips_4010): New static variable.
30 (interlocks): New static variable.
31 (md_begin): Check for a cpu of "r4010". Set mips_4010 correctly.
32 If mips_4650 or mips_4010, set interlocks.
33 (append_insn): Check interlocks, not mips_4650.
34 (mips_emit_delays): Likewise.
35 (mips_ip): Only permit INSN_4010 instructions if mips_4010.
36 (md_longopts): Add "m4010" and "no-m4010".
37 (md_parse_option): Accept -mcpu=r4010. Handle -m4010 and
38 -no-m4010.
39 (md_show_usage): Document -m4010 and -no-m4010.
40
e5fa3f23
ILT
41Tue Jul 11 13:22:50 1995 Ian Lance Taylor <ian@cygnus.com>
42
43 * ecoff.c (struct efdr): Add new field fake.
44 (init_file): Initialize fake.
45 (add_file): Add new parameter fake. Change all callers.
46 (ecoff_build_debug): Don't warn about a missing .end for a fake
47 file.
48
cc02a8a9
KR
49Mon Jul 10 16:01:31 1995 Ken Raeburn <raeburn@cygnus.com>
50
e5fa3f23
ILT
51 * doc/as.texinfo: Split out most cpu chapters...
52 * doc/c-*.texi: ...to here.
53
cc02a8a9
KR
54 * read.c (po_hash): Now static.
55
84144a8f
ILT
56Mon Jul 10 13:47:22 1995 Ian Lance Taylor <ian@cygnus.com>
57
fb33961b
ILT
58 Based on patches from H.J. Lu <hjl@nynexst.com>:
59 * config/tc-i386.c (md_apply_fix3): Rename from md_apply_fix1.
60 Accept pointer to value and segment. Fix OBJ_ELF PCREL case to
61 handle global defined symbols correctly.
62 (md_apply_fix): Remove both versions.
63 * config/tc-i386.h (MD_APPLY_FIX3): Define.
64
84144a8f
ILT
65 * configure.in: When switching on ${cpu}, use ${cpu}, not
66 $[target_cpu}, in default case.
67 * configure: Rebuild.
68
ed453d2e
ILT
69Sat Jul 8 13:27:55 1995 Ian Lance Taylor <ian@cygnus.com>
70
71 * write.c (fixup_segment): Call resolve_symbol_value on
72 sub_symbolP, in case it isn't in the symbol table.
73
cebf05ad
ILT
74Fri Jul 7 11:17:27 1995 Ian Lance Taylor <ian@cygnus.com>
75
c71a604a
ILT
76 * read.c (s_lcomm): For .lcomm 1, set align to 0, not 1.
77
ae99a672
ILT
78 * config/obj-coff.c (coff_frob_symbol): If SF_GET_FUNCTION, set
79 BSF_FUNCTION.
80 (symbol_globalP, symbol_global_lastP): New global variables.
81 (yank_symbols): Sort defined global symbols to the end, just
82 before the undefined symbols.
83 (glue_symbols): Add two arguments, and use them instead of
84 referring directly to global variables.
85 (crawl_symbols): Call glue_symbols twice, once for defined globals
86 and once for undefined. Add corresponding know calls.
87
6be977fb
ILT
88 * app.c (do_scrub_next_char): Always accept \v. Don't make it
89 conditional on BACKSLASH_V.
90 * read.c (next_char_of_string): Likewise.
91 * config/obj-bout.h (BACKSLASH_V): Don't define.
92 * config/tc-mips.h (BACKSLASH_V): Don't define.
93
5767cfb7
ILT
94 Add SPARC ELF PIC support.
95 * write.c (fixup_segment): Pass fixP to TC_RELOC_RTSYM_LOC_FIXUP,
96 not fixP->fx_r_type.
97 * config/tc-sparc.c (sparc_pic_code): New global variable.
98 (md_apply_fix): If generating PIC, adjust fx_addnumber for any non
99 PC relative reloc.
100 (tc_gen_reloc): If generating PIC, adjust various reloc types.
101 Remove fx_pcrel assert, since it is no longer true.
102 (md_parse_option): Handle -K PIC.
103 * config/tc-sparc.h (sparc_pic_code): Declare if OBJ_ELF.
104 (TC_RELOC_RTSYM_LOC_FIXUP): Define if OBJ_ELF.
105 (tc_fix_adjustable): Don't adjust PC relative relocs if PIC.
106 * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Take a fixp, not a
107 reloc type.
108
cebf05ad
ILT
109 * Makefile.in (Makefile): Add dependency on conf.in, so that conf
110 is rebuilt when conf.in changes.
111
a2a5a4fa
KR
112Thu Jul 6 16:49:38 1995 Ken Raeburn <raeburn@cygnus.com>
113
114 * All files: Updated FSF address.
115
265d172e
ILT
116Thu Jul 6 12:54:27 1995 Ian Lance Taylor <ian@cygnus.com>
117
85a961c6
ILT
118 Patches from Jerry Blakely <gerry_blakley@wellfleet.com>:
119 * as.c (listing_filename): New static variable.
120 (show_usage): Mention -a=file.
121 (parse_args): Support = option of -a to set name of listing file.
122 (main): Pass listing_filename to listing_print.
123 * listing.c (list_file): New static variable.
124 (various): Replace printf with fprintf to list_file.
125 (listing_print): If name argument is not NULL, open it as
126 list_file.
127 * doc/as.texinfo, doc/as.1: Document -a=file.
128
a0eb1c2c
ILT
129 * config/tc-sparc.c (s_reserve): Don't permit redefinition, even
130 if the symbol was already in bss_section. Fix warning message.
131
bcaa9b05
ILT
132 * listing.c (struct file_info_struct): Rename end_pending field to
133 at_end.
134 (file_info): Initialize at_end, not end_pending.
135 (buffer_line): If at_end set, just return immediately. Don't
136 worry about end_pending cases. Set at_end when EOF is read.
137 (print_source): Check at_end, not end_pending.
138 (listing_listing): Likewise.
139
265d172e
ILT
140 * config/tc-alpha.h (alpha_do_align): Don't declare.
141 (md_do_align): Don't define.
142 (tc_frob_label): Define.
143 (alpha_define_label): Declare.
144 (md_flush_pending_output): Define.
145 (alpha_flush_pending_output): Declare.
146 * config/tc-alpha.c (insn_label): New static variable.
147 (auto_align): New static variable.
148 (md_pseudo_table): Add cases for .text, .data, .align, .byte,
149 .hword, .int, .long, .octa, .quad, .short, .word, .double, .float,
150 and .single. Change .t_floating, .s_floating, .f_floating,
151 .g_floating, and .d_floating to use s_alpha_float_cons rather than
152 float_cons.
153 (s_alpha_text, s_alpha_data): New static functions.
154 (s_rdata, s_sdata): Clear insn_label and set auto_align.
155 (s_gprel32): If auto_align, align. Clear insn_label.
156 (emit_insn): Clear insn_label.
157 (s_alpha_align): New static function.
158 (alpha_align): Make static. Take label argument.
159 (alpha_flush_pending_output): New static function.
160 (s_alpha_cons, s_alpha_float_cons): New static functions.
161 (alpha_define_label): New function.
162
4b18b7cd
KR
163Wed Jul 5 22:49:31 1995 Ken Raeburn <raeburn@cygnus.com>
164
ad0ab4eb
KR
165 * conf.in: Regenerate with autoreconf.
166
4b18b7cd
KR
167 Mon Jul 3 19:47:53 1995 Pat Rankin (rankin@eql.caltech.edu)
168
169 * config/obj-vms.h (vms_resolve_symbol_redef): Use full prototype.
170 (vms_check_for_special_label, tc_frob_label): Move them to group
171 with other prototypes.
172 [WANT_VMS_OBJ_DEFS]: Only define the many OBJ_x, DBG_x, and DST_x
173 macros when this is defined.
174 * config/obj-vms.c: Fully prototype all local functions.
175 [symbolS, fragS]: Use consistently instead of their struct tags.
176 [WANT_VMS_OBJ_DEFS]: Define this.
177 (s_const): Make definition correctly match actual usage.
178 (VMS_stab_parse): Make `expected_type' arg be int rather than char.
179 (get_VMS_time_on_unix): Define as `static void'.
180 (hash_string): Make definition match actual usage; argument is
181 `char const *' rather than `unsigned char *'.
182 (VMS_Case_Hack_Symbol, VMS_Modify_Psect_Attributes, VMS_Psect_Spec,
183 VMS_Global_Symbol_Spec): Declare string args as `const char *'.
184 [IS_GXX_VTABLE]: New macro.
185 (vms_write_object_file: GSD loop): Use it.
186 (vms_write_object_file: data segment): Reorganize `fill' loop.
187
22ba90ce
ILT
188Wed Jul 5 12:01:49 1995 Ian Lance Taylor <ian@cygnus.com>
189
a7aa7a2b
ILT
190 * config/tc-sparc.c (md_shortopts): Add "K:" if OBJ_ELF.
191 (md_parse_option): If OBJ_ELF, check for -K. Die if -K PIC, since
192 PIC code is not currently supported.
193
194 * as.c (parse_args): Change std_shortopts to be an array rather
195 than a constant string. Only include 'K' if WORKING_DOT_WORD is
196 not defined. Only check for 'K' in that case as well.
197 * as.h (flag_warn_displacement): Only declare if WORKING_DOT_WORD
198 is not defined.
199
9814e22f
ILT
200 * conf.in: Add undef of HAVE_SBRK.
201
3f8416d5
ILT
202 * config/obj-coff.c (obj_coff_line): Call listing_source_line, in
203 both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
204
56dc989a
ILT
205 * symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
206 (S_CLEAR_EXTERNAL): Likewise.
207 (S_SET_WEAK): Warn if symbol is global.
208
f219dc65
ILT
209 * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
210 to put an undefined symbol into a set.
211
816a827b
ILT
212 * Makefile.in: Remove @configure_input@; it's not needed in
213 files named Makefile.
214
ca046e34
ILT
215 * config/tc-m88k.c (md_pseudo_table): Add ".set" so that the
216 explicit pseudo-op works, while continuing to treat "set" as an
217 instruction.
218
22ba90ce
ILT
219 * ecoff.c (ecoff_debugging_seen): New global variable.
220 (ecoff_directive_def): Set ecoff_debugging_seen.
221 (ecoff_stab): Likewise.
222 * ecoff.h: Make idempotent.
223 (ecoff_debugging_seen): Declare.
224 * config/tc-mips.c: Include ecoff.h.
225 (mips_debug): New static variable.
226 (s_stringer, s_mips_space): Remove unneeded declarations.
227 (md_parse_option): In case 'g', set mips_debug to debugging level.
228 (mips_local_label): New function.
229 * tc-mips.h (LOCAL_LABEL): Call mips_local_label.
230 (mips_local_label): Declare.
231
e63c594d
FF
232Wed Jul 5 00:59:22 1995 Fred Fish (fnf@cygnus.com)
233
234 * as.c (main): Only use sbrk when HAVE_SBRK defined.
235 * configure.in: Add test for sbrk.
236 * configure: Regenerate using autoconf 2.4.
237
249c7415
JL
238Mon Jul 3 15:58:16 1995 Jeff Law (law@snake.cs.utah.edu)
239
240 * config/tc-hppa.h (MAX_RELOC_EXPANSION): Bump to 6.
241 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle
242 relocations for the difference of two (possibly external)
243 symbols.
244 (hppa_fix_adjustable): For SOM, reject reductions involving
245 the difference of two symbols.
246 (hppa_force_relocation): Force relocations for expressions
247 involving the difference of two symbols.
248
6c186c48
SC
249Mon Jul 3 14:22:59 1995 Steve Chamberlain <sac@slash.cygnus.com>
250
251 * configure[.in] (i386-*-win32): New host and target.
252
e5c5ce23
SC
253Thu Jun 29 17:25:43 1995 Steve Chamberlain <sac@slash.cygnus.com>
254
255 Support for long filenames non-bfd coff. bfd/7288
256 * config/obj-coff.c (filename_list_head, filename_list_tail): New.
257 (yank_symbols): Notice and record filenames which are too long.
258 (w_strings): Write out filename strings.
259 (c_dot_file_symbols): Put long filenames onto list.
260
30355216
SC
261Wed Jun 28 17:33:13 1995 Steve Chamberlain <sac@slash.cygnus.com>
262
e5c5ce23 263 * config/obj-coff.c (fixup_segment): PE doesn't use
30355216
SC
264 the strange common symbol format that other 386s formats
265 do.
266 * config/tc-i386.c (md_begin): If LEX_AT defined then
267 '@' is in the set of identifiers.
268 (i386_operand): If LEX_AT, then don't look for @goto stuff.
269 * config/te-pe.h: Define LEX_AT.
270
4a998308
KR
271Wed Jun 28 17:49:59 1995 Ken Raeburn <raeburn@cygnus.com>
272
1a9924d8
KR
273 * doc/as.texinfo (H8/500 Floating Point): Indicate that IEEE FP
274 numbers are for the standard emulation code.
275 (SH Floating Point): Ditto.
276 (Overview): Describe new --emulation option for MIPS.
4a998308
KR
277 * doc/*.m4: Deleted.
278
279Thu Jun 22 19:26:25 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
280
281 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
282
283 * configure.in: Added i386-*-moss* target.
284
3f4ca874
MM
285Thu Jun 22 14:41:23 1995 Michael Meissner <meissner@tiktok.cygnus.com>
286
287 * write.c (write_object_file): Cast decode_local_label_name
288 argument to char * to avoid warning.
289
a1835409
KR
290Wed Jun 21 18:07:59 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
291
c151fd1e
KR
292 Changes from Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>:
293 * config/tc-m68k.c (insword): Increment the frag offsets.
294 (struct m68k_it): Add reloc[].pcrel_fix field to hold pc-rel
295 fixup.
296 (add_fix): Accept additional parameter, the pc-rel fixup. All
297 callers changed. Fix offset address if width == 'b'.
298 (m68k_ip) [case AINDX]: Allow explicit size spec. Don't make the
299 outer displacement pc-relative.
300 (md_pcrel_from): Make it relative to the first extension word of
301 the operand.
302 (opcode_ptr): Make it a macro if DO_BREAK_UP_BIG_DECL is
303 undefined.
304 (md_convert_frag_1): Don't reference fragP->fr_opcode[2..].
305 (md_estimate_size_before_relax) [case TAB (FBRANCH, SZ_UNDEF)]:
306 Turn on long bit.
307 (m68k_ip) [case 'C']: Don't set set long bit, set it in the opcode
308 table.
309 (md_estimate_size_before_relax) [case TAB (PCINDEX, SZ_UNDEF)]:
310 Variable part increases by four, not six.
311 * write.c (fixup_segment) [TC_M68K]: Don't do further pcrel
312 processing after converting difference of two symbols in the
313 same segment.
314
315 * write.c (fixup_segment): Don't conditionalize the pcrel fix on
316 TC_M68K.
317
a1835409
KR
318 * config/tc-sparc.c (sparc_ip, case 'A'): If ASI is not a "#"
319 value, don't shift it an extra time.
320
85b369b3
SC
321Wed Jun 21 14:18:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
322
323 * gasp.c (do_print, do_form, buffer_and_nest): Use case insensitive
324 string compares. gas/7274.
325
34308df7
KR
326Tue Jun 20 14:55:02 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
327
328 * config/obj-coff.c (write_object_file): Cast time() argument to
329 time_t *.
330
420c479b
JL
331Tue Jun 20 12:00:53 1995 Jeff Law (law@snake.cs.utah.edu)
332
333 * config/tc-hppa.c (pa_build_unwind_subspace): Fix typo in last
334 change.
335
76477190
JL
336Mon Jun 19 15:27:17 1995 Jeff Law (law@snake.cs.utah.edu)
337
338 * config/tc-hppa.c (pa_build_unwind_subspace): Zero out memory
339 from frag_more calls.
340
d21041b3
SS
341Thu Jun 15 16:53:37 1995 Stan Shebs <shebs@andros.cygnus.com>
342
343 * config/obj-coff.c: Don't use "bfd/" when including libbfd.h
344 and libcoff.h.
345 (fill_section): Call PROGRESS.
346 * Makefile.in (INCLUDES): Add bfd srcdir.
347
348 * mpw-config.in: Add bfd_gas flag and set for each config.
349 (i386-unknown-go32, m68k-unknown-coff): Recognize.
350 * mpw-make.in (HACK_O_RAMA, OBJ_COFF_OMIT_TIMESTAMP): Add to
351 config.h.
352
f6d6f102
DE
353Thu Jun 15 10:04:26 1995 Doug Evans <dje@canuck.cygnus.com>
354
355 * config/tc-arm.h (LOCAL_LABEL): Prepend '.' if not OBJ_AOUT.
356 (FAKE_LABEL_NAME): Likewise.
357
4ff6f92a
JL
358Mon Jun 12 22:25:39 1995 Jeff Law (law@snake.cs.utah.edu)
359
360 * config/tc-hppa.c (pa_ip): Check for invalid register in single
361 precision fmpyadd and fmpysub instructions.
362
69cb5925 363Thu Jun 8 19:33:02 1995 Pat Rankin (rankin@eql.caltech.edu)
3c650d09
KR
364
365 * config/obj-vms.c (myname): Delete all references.
366 (VMS_stab_parse, Write_VMS_MHD_Records, VMS_Case_Hack_Symbol):
367 Replace printf calls with as_tsktsk.
368 (PUT_LONG, PUT_SHORT): Use COPY_LONG, COPY_SHORT.
369 (VMS_Store_Immediate_Data): Move second buffer capacity check
370 below bottom of loop; first check at top suffices for loop itself.
371 (find_file): Remove redundant pointer checks in first two loops;
372 replace third loop with pointer to last list element determined
373 in first loop.
374
0cd27550
DE
375start-sanitize-arc
376Thu Jun 8 11:44:35 1995 Doug Evans <dje@chestnut.cygnus.com>
377
378 * config/tc-arc.h (MD_APPLY_FIX3): Define.
379 * config/tc-arc.c (md_apply_fix3): Renamed from md_apply_fix.
380 Undo effects of md_pcrel_from if symbol is in another section.
381end-sanitize-arc
382
d5263ab4
KR
383Tue Jun 6 13:53:06 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
384
0cd27550
DE
385 * config/tc-sparc.c (sparc_ip): Handle defined absolute symbols as
386 ASI values.
387
d5263ab4
KR
388 * config/obj-vms.c (vms_write_object_file, case N_DATA): Use
389 strcmp against FAKE_LABEL_NAME instead of checking third
390 character. (Suggested by Pat Rankin.)
391
69cb5925 392Mon Jun 5 20:10:46 1995 Pat Rankin (rankin@eql.caltech.edu)
d5263ab4
KR
393
394 Add support for N_ABS and N_ABS|N_EXT type symbols.
395
396 * config/obj-vms.h (LSY_S_M_{DEF,REL}, ENV_S_M_{DEF,NESTED}):
397 New macros for local symbols (from <lsydef.h> and <envdef.h>).
398 * config/obj-vms.c (Current_Environment): New file-scope variable.
399 (VMS_Local_Environment_Setup): New routine.
400 (GBLSYM_LCL): New macro.
401 (VMS_Global_Symbol_Spec): Handle local symbols too.
402 (VMS_Psect_Spec): Set GLOBALVALUE_BIT for absolute symbols.
403 (VMS_Emit_Globalvalues): Handle local and global absolute symbols.
404 (VMS_Store_PIC_Symbol_Reference): Ditto.
405 (vms_write_object_file: GSD symbol loop): Ditto.
406
407Mon Jun 5 16:10:40 1995 Steve Chamberlain <sac@slash.cygnus.com>
408
409 * config/tc-arm.h (LOCAL_LABELS_FB): Define.
410
1be0c30e
KR
411Mon Jun 5 02:17:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
412
413 * configure.in (i386-*-gnu*): Always use GNU ELF config.
414
69cb5925 415Wed May 31 17:49:18 1995 Pat Rankin (rankin@eql.caltech.edu)
58abad7d
KR
416
417 * config/obj-vms.c (obj_crawl_symbol_chain): Update *symbolPP
418 in `else' clause when removing a symbol. Also, revise comments
419 to match the code.
420 (vms_write_object_file (GSD symbol loop, case N_DATA)): Never
421 output symbol definitions for local numeric labels.
422
1cb0d00d
KR
423Tue May 30 18:29:10 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
424
425 * configure.in (architecture variants, cases armeb and arm*): Remove
426 spaces round assignment to endian.
427
0b143492
KR
428Tue May 30 12:31:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
429
430 * write.c (write_object_file): Check for undefined local dollar
431 and fb labels.
432
433 * symbols.c (decode_local_label_name): Extract instance number
434 from the correct location.
435
6053ed62
C
436Sat May 27 21:28:49 1995 J.T. Conklin <jtc@rtl.cygnus.com>
437
438 * config/te-dpx2.h: Include obj-format.h.
439 (COFF_MAGIC): Renamed from FILE_HEADER_MAGIC.
440
441Wed May 24 13:45:32 1995 Steve Chamberlain <sac@slash.cygnus.com>
442
443 * configure, configure.in, config/obj-coff.c, config/obj-coff.h:
444 Add support for ARM pe
445
2e715f06
DE
446Tue May 23 17:00:32 1995 Doug Evans <dje@canuck.cygnus.com>
447
448 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP16
449 and BFD_RELOC_SPARC_WDISP19.
450
6e43bf82
KR
451Tue May 23 19:18:33 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
452
453 * as.c (parse_args) [! USE_EMULATIONS]: Always print an error
454 message.
455
2e715f06
DE
456 * doc/internals.texi: Document obj_app_file and
457 TARGET_BYTES_BIG_ENDIAN.
458
4761bb02
KR
459Mon May 22 20:03:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
460
70d6c396
KR
461 * ecoff.c (ecoff_stab): Add extra leading argument, for 4 May
462 change.
463 * ecoff.h (ecoff_stab): Fix declaration.
464 * obj.h (format_ops.process_stab): Include prototype.
465 * config/obj-elf.h (OBJ_PROCESS_STAB): Pass through seg argument.
466 * config/obj-ecoff.h (OBJ_PROCESS_STAB): Ditto.
467
4761bb02
KR
468 * config/e-mipself.c (mipself): New emulation mode, doesn't change
469 endianness from configured default.
470 * config/e-mipsecoff.c (mipsecoff): Ditto.
471 * configure.in (mips ecoff/elf targets): Include them.
472 * as.c (mipself, mipsecoff): Declare.
473
474 * as.c (emulation_name): New variable.
475 (select_emulation_mode): Set emulation_name. Don't change argv.
476 (parse_args): Handle --emulation; complain if the supplied name
477 isn't what select_emulation_name came up with.
478
1fc2205e
DE
479start-sanitize-arc
480Mon May 22 16:56:58 1995 Doug Evans <dje@chestnut.cygnus.com>
481
482 * config/tc-arc.c (md_pcrel_from): Return 0 for undefined symbols.
483end-sanitize-arc
484
485Sun May 21 21:36:17 1995 Jeff Law (law@snake.cs.utah.edu)
486
487 * config/tc-hppa.c: Reverse changes from Dec. 19th which
488 changed the way unwinds were built for ELF. Rely on relocation
489 symbol reductions to avoid placing the end of function marker
490 symbols into the object file's symbol table.
491
a088fb62
KR
492Sat May 20 12:31:36 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
493
0509f064
KR
494 Added improved VMS support from Pat Rankin:
495
496 Fri 19 May 16:51:40 1995 Pat Rankin (rankin@eql.caltech.edu)
497
498 * config/obj-vms.h (AOUT_STABS): Define.
499
500 * config/obj-vms.c (fpush, rpush): New routines.
501 (push): Replaced by the above.
502 (find_symbol): Slight reorganization to expose tail recursion.
a088fb62
KR
503
504 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
505
506 * Makefile.in (VMS_OTHER_OBJS): delete this.
507 * vmsconf.sh (make-gas.com): build ../libiberty/liberty.olb
508 first if necessary; link gas against it.
509
078d1a5a
KR
510Fri May 19 16:37:39 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
511
512 * gasp.c (istrue): Correctly test for string inequality.
513
ff15324f
KR
514Thu May 18 04:25:11 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
515
516 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
517
69cb5925 518 * config/tc-arm.c (CP_T_{Pre,UD,WB}): Define, bits in co-processor
ff15324f
KR
519 instructions.
520 ([ls]fm_flags): Correct error in bitmasks.
69cb5925
KR
521 (cp_address_required_here): Delete second parameter, FLAGS. All
522 callers changed. Remove all dead code referring to FLAGS. If
ff15324f 523 address is just "[Reg]" then convert into a PRE-INCREMENT UP format.
69cb5925 524 (do_fp_ldmstm): Handle full-descending and empty-ascending stack
ff15324f
KR
525 formats explicitly.
526
527 * config/tc-arm.c (internalError): Define.
528 (ARM_{1,2,250,3,6,7,7DM,ANY,2UP,ALL,3UP,6UP,LONGMUL}): Define processor
529 variants.
530 (FPU_{CORE,FPA10,FPA11,NONE,ALL,MEMMULTI}): Define floating point
531 variants.
532 ({CPU,FPU}_DEFAULT): Define.
533 (cpu_variant): New variable.
534 (asm_flg): Change more_flags to flag_bits.
535 Add prototypes for new functions.
536 (FLAG_{S,P,B,T,ED,FD,FA,EA,IB,IA,DB,DA,L}): Delete.
537 (s_flag[], ldst_flags[], byte_flag[], cmp_flags[], ldm_flags[],
538 stm_flags[], lfm_flags[], sfm_flags[], round_flags[], except_flags[],
539 cplong_flag[]): New variables.
540 (asm_opcode, insns[]): New format, add version support.
541 (arm_flg_hsh): Delete.
542 (do_mul, do_mla): Remove "Warning" from warning messages.
543 (do_arit): Simplify.
544 (do_swap): Make error message more appropriate.
545 (md_begin): Build hash tables starting at first entry in tables.
546 (md_number_to_chars): Cope with big/little-endian selection.
547 (md_chars_to_number): New function.
548 (md_apply_fix): Rewrite to make endian independent.
549 (tc_gen_reloc): Better error messages.
550 (md_assemble): Reject opcodes forbidden by the currently selected cpu
551 variant. Rewrite handling code for instruction flags.
552 (md_shortopts): Add option "m:".
553 (md_parse_option): Get the desired cpu/fpu variant.
554
555 From: David Taylor (dtaylor@armltd.co.uk)
556 * configure.in (architecture variants): Check for "armeb" and "arm*",
557 set endianness accordingly.
558 * read.c (read_a_source_file): New hooks md_start_line_hook and
559 md_after_pass_hook.
560 * config/arm-{big,lit}.mt: New files
561 * config/tc-arm.h ({LITTLE,BIG}_ENDIAN, BYTE_ORDER): Define.
69cb5925 562 (TARGET_FORMAT): Select depending on endianness and emulation and
ff15324f
KR
563 object format.
564 (md_after_pass_hook, md_start_line_hook): Define.
565 * config/tc-arm.c: Include subsegs.h, symbols.h and listing.h.
566 (shift[]): Add uppper case equivalents.
567 (CP_T_[XY], TRANS_BIT): Define.
69cb5925 568 (conds[]): Delete initial NULL entry, add "lo" entry as synonym for
ff15324f
KR
569 "cc".
570 (LONGEST_FLAG, flags[]): Delete.
571 (arm_psr): New structure.
572 (psrs[]): New variable.
573 (PSR_ALL): Define.
574 (LONGEST_INST): Bump to 5.
575 (LITERAL_MASK, COND_MASK, OPCODE_MASK, DATA_OP_SHIFT): Define.
576 (OPCODE_{AND,EOR,SUB,RSB,ADD,ADC,SBC,RSC,TST,TEQ,CMP,CMN,ORR,MOV,BIC,
577 MVN}): Define.
578 (insns[]): Add smull, umull, smlal, umlal, ldfm, stfm, msr and mrs
579 instructions. Add nop and adr pseudo ops.
580 (reg_table): Add APCS register name variants.
581 (arm_psr_hsh): New hash table.
69cb5925 582 (md_pseudo_table): Add "ltorg", "pool", "extend", "ldouble" and
ff15324f
KR
583 "packed".
584 (MAX_LITERAL_POOL_SIZE): Define.
585 (struct literalS): New structure.
586 (literals, next_literal_pool_place, lit_pool_num, current_poolP): New
587 variables.
588 (add_to_lit_pool, symbol_locate, symbol_make_empty): New functions.
589 (validate_immediate): Return FAIL on failure.
590 (s_ltorg): New function.
591 (psr_required_here, psrf_required_here): New functions.
592 (cp_address_required_here): New parameter, flag, all callers changed.
593 If flag is non-zero, restrict the legal addressing modes.
594 (do_nop, do_mrs, do_msr, do_mull): New functions.
595 (negate_data_op): New function.
596 (data_op2): accept #x,y meaning x rotated right by y, but only when
597 suitable constants. If immediate is not legal, try changing the
598 opcode.
599 (do_adr): New function.
600 (do_ldst): accept "ldr reg, =expr". Put expr in the pool if it can't
601 be done as an immediate.
602 (do_fp_ldst): Use CP_T_[XY], not immediate values.
603 (do_fp_ldmstm): New function.
604 (arm_psr_parse): New function.
605 (output_inst): Use INSN_SIZE in call to md_number_to_chars.
606 (md_assemble): Add hack so that "Label instruction" causes alignment of
607 the label.
69cb5925 608 (arm_after_pass_hook, arm_start_line_hook, arm_frob_symbol): New
ff15324f
KR
609 functions.
610
611Wed May 17 05:25:16 1995 Michael Meissner <meissner@tiktok.cygnus.com>
612
613 * config/tc-ppc.c (md_show_usage): Add \'s at end of lines in
614 strings for non-GCC compilers.
615
ff17873d
KR
616Tue May 16 19:36:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
617
618 * config/obj-ecoff.c (ecoff_pop_insert): New function.
619 (ecoff_format_ops): Use it.
620 (obj_ecoff_frob_symbol): Now static.
621
99146659
MM
622Wed May 17 00:59:12 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
623
624 * config/tc-ppc.c (md_begin): Was assuming that an instruction was
625 bigendian and hence 16bit relocs withing instructions would
69cb5925 626 ALWAYS be at addresses i+2-i+3. In LE mode it is i+0-i+1.
99146659 627
b0d41996
KR
628Tue May 16 16:29:58 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
629
739708fa
KR
630 * config/obj-multi.h (obj_frob_symbol, obj_frob_file, S_GET_SIZE,
631 S_SET_SIZE, S_GET_ALIGN, S_SET_ALIGN, obj_copy_symbol_attributes,
632 OBJ_PROCESS_STAB): New macros.
633 * config/tc-mips.c: Protect against redefining them also when
634 including obj-elf.h. Test only OBJ_ELF for including elf/mips.h.
b444036d
KR
635 (mips_init_after_args): New function. Set byte_order here.
636 (md_parse_option): Not here.
637 (byte_order): Don't bother initializing.
638 * config/tc-mips.h (mips_init_after_args): Declare.
639 (tc_init_after_args): New macro.
739708fa 640
b0d41996
KR
641 * read.c (s_lcomm): Do ELF/ECOFF test at run time, not compile
642 time.
643
58ca0030
DE
644start-sanitize-arc
645Mon May 15 13:39:45 1995 Doug Evans <dje@canuck.cygnus.com>
646
647 * config/tc-arc.c (md_longopts): -EB/-EL renamed to
648 -mbig-endian/-mlittle-endian.
649 (md_show_usage): Likewise.
650end-sanitize-arc
651
b04b02a5
SC
652Fri May 12 14:17:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
653
654 Initial support for PE object files.
655 * configure.in, configure (i386-*-pe, i386-*-*nt): Add.
656 * config/obj-coff.c (fixup_segment): Cope with PE wierdness.
657 * config/obj-coff.h (TE_PE): New target format.
658
bb2c9281
KR
659Thu May 11 14:58:21 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
660
661 * config/obj-elf.c (NEED_ECOFF_DEBUG): Define if ECOFF_DEBUGGING
662 was defined by header files. Test in preprocessor conditionals
663 instead of ECOFF_DEBUGGING.
664 (ecoff_debug_pseudo_table): Make empty if NEED_ECOFF_DEBUG is not
665 defined.
666 (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol,
667 elf_frob_file): Only call ecoff routines if NEED_ECOFF_DEBUG is
668 defined.
669 (elf_ecoff_set_ext, elf_get_extr, elf_set_index): Define only if
670 NEED_ECOFF_DEBUG is defined.
671 (elf_format_ops): Reference elf_ecoff_set_ext only if
672 NEED_ECOFF_DEBUG.
673
e7757ad0
KR
674Wed May 10 18:09:12 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
675
676 * Makefile.in (OBJS): Include @extra_objects@.
677 (obj-elf.o, obj-ecoff.o, e-mipself.o, e-mipsecoff.o): New rules
678 for building these independently.
679 * emul-target.h, config/e-mipself.c, config/e-mipsecoff.c: New
680 files.
681
682 * acconfig.h (DEFAULT_EMULATION, EMULATIONS, USE_EMULATIONS,
683 OBJ_MAYBE_*, I386COFF, M68KCOFF, M88KCOFF): New macros.
684 * aclocal.m4 (GAS_UNIQ): New macro.
685
686 * as.c (emulations, n_emulations) [USE_EMULATIONS]: New variable.
687 (select_emulation_mode, default_emul_bfd_name, common_emul_init)
688 [USE_EMULATIONS]: New functions.
689 (main) [USE_EMULATIONS]: Call select_emulation_mode before other
690 initialization.
691 * emul.h: New file.
692 * as.h [USE_EMULATIONS]: Include it.
693
694 * configure.in: Handle enable-targets option. Iterate over target
695 list, building up a list of object file formats and emulation
696 configurations. (Only supports emulations for MIPS CPU so far.)
697 If multiple formats are needed, set obj_format to multi and add
698 format config files to extra_files. If emulation modes are
699 needed, add the relevant files to extra_files.
700
701 * configure.in: Define I386COFF, M68KCOFF, M88KCOFF for those
702 configurations.
703
704 * ecoff.c (ecoff_generate_asm_lineno): Filename argument now
705 points to const.
706 * ecoff.h (ecoff_generate_asm_lineno): Updated declaration.
707
708 * obj.h (obj_read_begin_hook): Don't declare function if it's
709 already a macro.
710
711 * read.c (s_space, cons, stringer): If md_flush_pending_output is
712 defined, call it on entry.
713 * config/obj-elf.c (obj_elf_section): If md_flush_pending_output
714 is defined, call it on entry. If md_elf_section_change_hook is
715 defined, call it before returning normally.
716
717 * read.h (target_big_endian): Declare.
718
719 * obj.h (struct format_ops): Added new function pointer fields
720 ecoff_set_ext, read_begin_hook, symbol_new_hook.
721 (ecoff_format_ops, elf_format_ops): Declare.
722 * config/obj-elf.c (elf_s_get_size, elf_s_set_size,
723 elf_s_get_align, elf_s_set_align, elf_copy_symbol_attributes,
724 elf_sec_sym_ok_for_reloc): New functions.
725 (elf_format_ops): New variable.
726 (elf_frob_symbol): Now takes additional int* argument.
727 * config/obj-elf.h (elf_frob_symbol): Update declaration.
728 (elf_pop_insert): Declare.
729 (obj_pop_insert): Define to call elf_pop_insert.
730 * config/obj-ecoff.c (ecoff_sec_sym_ok_for_reloc,
731 obj_ecoff_frob_symbol): New functions.
732 (ecoff_format_ops): New variable.
733
734 * config/te-generic.h: If OBJ_HEADER is defined, use it as the
735 filename to include in place of obj-format.h.
736 * config/te-multi.h: New file, copied from te-generic.h.
737 * config/obj-elf.c (OBJ_HEADER): Define it to "obj-elf.h".
738 * config/obj-ecoff.c (OBJ_HEADER): Define it to "obj-ecoff.h".
739
740 * config/obj-elf.c (ECOFF_DEBUGGING): Default to 0.
741 (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol,
742 elf_frob_file): Test it at run time.
743 (obj_ecoff_set_ext, elf_get_extr, elf_set_index): Define
744 unconditionally.
745 (elf_pseudo_table): Renamed from obj_pseudo_table, now static.
746 (ecoff_debug_pseudo_table): Split off into separate table. Define
747 it unconditionally.
748 (elf_pop_insert): New function.
749 * config/obj-elf.h (elf_pop_insert): Declare.
750 (obj_pop_insert): New macro.
751 (obj_ecoff_set_ext) [!OBJ_MAYBE_ELF]: Define to elf_ecoff_set_ext.
752 * config/obj-ecoff.h (obj_ecoff_set_ext): Define to ecoff_set_ext.
753
754 * config/tc-mips.h: Protect against multiple inclusions.
755 (mips_pop_insert): Declare.
756 (md_pop_insert): Call it.
757
758 * config/tc-mips.c: If OBJ_MAYBE_ELF is defined, include
759 obj-elf.h, but preserve OUTPUT_FLAVOR and protect some other
760 macros from redefinition.
761 (ECOFF_DEBUGGING): Default to 0. All references changed to
762 run-time tests or made unconditional.
763 (s_stringer, s_mips_space, s_elf_section): Deleted.
764 (md_pseudo_table): Don't refer to them. Split table into three
765 sections, for MIPS, non-ECOFF_DEBUGGING, and ELF.
766 (mips_pop_insert): New function.
767 (mips_flush_pending_output): New function.
768 (mips_enable_auto_align): New function.
769 * config/tc-mips.h (mips_pop_insert): Declare.
770 (md_pop_insert): New macro.
771 (mips_flush_pending_output): Declare.
772 (md_flush_pending_output): New macro.
773 (mips_enable_auto_align): Declare.
774 (md_elf_section_change_hook): New macro, calls
775 mips_enable_auto_align.
776
8370e93e
MM
777Tue May 9 17:07:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
778
779 * configure.in: Add little endian PowerPC support.
780 * configure: Rebuild with autoconf.
781 * config/ppc-big.mt: New file for big endian PowerPC systems.
782 * config/ppc-lit.mt: New file for little endian PowerPC systems.
783
784 * config/tc-ppc.h (target_big_endian): Declare.
785 (TARGET_FORMAT): Deal with little and big endian ELF variants.
786 (TARGET_BYTES_BIG_ENDIAN): Define as 1, not empty.
787
788 * config/tc-ppc.c (ppc_big_endian): Delete variable, use
789 target_big_endian instead.
790 (md_parse_option): Parse -mlittle and -mlittle-endian to use
791 little endian support. Parse -mbig and -mbig-endian to use big
792 endian support.
793 (md_show_usage): Update to reflect current switches.
794 (ppc_set_cpu): Recognize powerpcle as little endian PowerPC. Use
795 as_fatal, not abort if unknown machine.
796
56187f65
JL
797Tue May 9 10:58:41 1995 Jeff Law (law@snake.cs.utah.edu)
798
799 * config/tc-hppa.c (md_apply_fix): Cast *valp to an integer when
800 comparing against signed values.
801 (hppa_force_relocation): Make "distance" an integer.
802
1e63de91
KR
803Tue May 9 00:47:03 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
804
805 * obj.h (struct format_ops) [BFD_ASSEMBLER]: New type.
806 (this_format) [BFD_ASSEMBLER]: Declare new variable, if not
807 already defined as a macro.
808
fd1fdba2
KR
809Mon May 8 21:44:13 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
810
811 * subsegs.h (seg_info): Provide dummy version for
812 non-BFD_ASSEMBLER, non-MANY_SEGMENTS configuration. It should
813 never get invoked, but this is easier than conditionalizing some
814 of the uses.
815 (struct seg_info_trash): Dummy type used by above to make code
816 compile.
817
e51a3912
KR
818Fri May 5 14:47:13 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
819
820 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define to 1, not
821 empty.
822 * config/obj-elf.h (SEPARATE_STAB_SECTIONS): Ditto.
823 * config/obj-som.h (SEPARATE_STAB_SECTIONS): Ditto.
824
8c5e0f5e
KR
825Thu May 4 19:26:55 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
826
827 * stabs.c (get_stab_string_offset): Always define. If
828 SEPARATE_STAB_SECTIONS isn't set, abort.
829 (SEPARATE_STAB_SECTIONS): Default to zero.
830 (aout_process_stab): New function, split out from s_stab_generic.
831 (OBJ_PROCESS_STAB) [AOUT_STABS]: Define to call aout_process_stab,
832 if not already defined.
833 (s_stab_generic): Test SEPARATE_STAB_SECTIONS at run time. If
834 it's not set, and OBJ_PROCESS_STAB isn't defined, abort. Always
835 pass six arguments to OBJ_PROCESS_STAB.
52f969e2 836 * read.h (get_stab_string_offset): Declare unconditionally.
8c5e0f5e
KR
837 * config/obj-aout.h (AOUT_STABS): Define.
838 * config/obj-bout.h (AOUT_STABS): Define.
839 * config/obj-ecoff.h (OBJ_PROCESS_STAB): Add new first argument,
840 ignored.
841 * config/obj-elf.h (OBJ_PROCESS_STAB) [ECOFF_DEBUGGING]: Ditto.
842
843 * config/obj-ecoff.h (ECOFF_DEBUGGING): Define to 1, not empty.
844 * config/obj-elf.h (ECOFF_DEBUGGING): Ditto. Test value, not
845 whether it's defined.
846
9777b772
KR
847Wed May 3 21:38:20 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
848
849 * as.h (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): If not already
850 defined, define them to zero.
851 * config/tc-*.h, config/te-*.h: If defining them, define them to
852 be 1 instead of empty.
853 * expr.c (integer_constant, operand): Test them at run time
854 instead of compile time.
855 * read.c (read_a_source_file): Ditto.
856 * symbols.c (colon): Ditto.
857 (dollar_*, define_dollar_label, fb_*): Define unconditionally.
858 * symbols.h (dollar_*, define_dollar_label, fb_*): Declare
859 unconditionally.
860
4829cd65
JL
861Wed May 3 13:08:53 1995 Jeff Law (law@snake.cs.utah.edu)
862
69cb5925 863 * config/tc-hppa.c (md_apply_fix): Do nothing for an out of range
4829cd65
JL
864 PC relative call since those only occur in cases where the linker
865 can fix them up.
866 (hppa_force_relocation): Force relocations for out of range PC
867 relative calls.
868
55ac59da
JL
869Tue May 2 16:34:47 1995 Jeff Law (law@snake.cs.utah.edu)
870
871 * configure (hppa*-*-lites*): Handle just like hppa*-*-*elf*.
872 * configure.in: Likewise.
873
2c4022af
KR
874Tue May 2 11:22:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
875
876 * read.c (pop_insert): New function.
877 (pop_override_ok, pop_table_name): New variables.
878 (md_pop_insert, obj_pop_insert): New macros.
879 (pobegin): Use them.
880
881 * config/tc-mips.c: Use USE_STDARG and USE_VARARGS instead of
882 NO_STDARG &c.
883
884 * read.c (target_big_endian): If TARGET_BYTES_BIG_ENDIAN is
885 defined, initialize to 1.
886 * config/tc-mips.c (mips_target_format): Changed to a function,
887 checking flavor and byte order at run time.
888 (md_parse_option, cases OPTION_EB and OPTION_EL): Set
889 target_big_endian here.
890 (md_begin): Not here.
891 * config/tc-mips.h (mips_target_format): Adjust declaration.
892 (TARGET_FORMAT): Call mips_target_format.
893
894 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Define in terms of
895 OUTPUT_FLAVOR.
896 * config/tc-mips.c (g_switch_value, g_switch_seen): Define
897 unconditionally.
898 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
899 s_abicalls, nopic_need_relax): Check USE_GLOBAL_POINTER_OPT at run
900 time, instead of compiling conditionally on GPOPT.
901 (GPOPT): Don't define.
902 (md_shortopts): Always include -G.
903 (RDATA_SECTION_NAME): Select at run time.
904 (md_begin): Test for ELF format at run time instead of compile time.
905 (mips_ip, s_change_sec): Ditto.
906 (md_parse_option, cases OPTION_CALL_SHARED and OPTION_NON_SHARED):
907 Ditto.
908 (OPTION_CALL_SHARED, OPTION_NON_SHARED, mips_regmask_frag): Define
909 unconditionally.
910
91a165d1
KR
911Tue May 2 00:17:04 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
912
833c46e1
KR
913 * Makefile.in (TARG_CPU_DEP_*): New variables.
914 (targ-cpu.o): Depend on one, selected by autoconf substitution,
915 instead of TARG_CPU_DEPENDENTS.
916 * configure.in: Substitute $cpu_type, $obj_format, $atof, and
917 $emulation into Makefile.in.
918start-sanitize-arc
919 * config/arc.mt: Deleted.
920end-sanitize-arc
921 * config/h8300.mt: Deleted.
922 * config/h8500.mt: Deleted.
923 * config/i386coff.mt (TARG_CPU_DEPENDENTS): Deleted.
924 * config/m68k.mt: Deleted.
925 * config/m68kcoff.mt (TARG_CPU_DEPENDENTS): Deleted.
926 * config/m88kcoff.mt (TARG_CPU_DEPENDENTS): Deleted.
927 * config/mips-big.mt (TARG_CPU_DEPENDENTS): Deleted.
928 * config/mips-lit.mt (TARG_CPU_DEPENDENTS): Deleted.
929start-sanitize-rce
930 * config/rce.mt: Deleted.
931end-sanitize-rce
932 * config/sh.mt: Deleted.
933 * config/w65.mt: Deleted.
934 * config/z8k.mt: Deleted.
935
78dace0a
KR
936 * config/te-dpx2.h (dpx2): Deleted unused macro.
937 * config/te-generic.h (TE_GENERIC): Ditto.
91a165d1
KR
938 * config/te-go32.h (TE_GO32): Ditto.
939 * config/te-hp300.h (TE_HP300): Ditto.
78dace0a 940 * config/te-hppa.h (PA, _TE_PA_H): Ditto.
91a165d1
KR
941 * config/te-ic960.h (TE_IC960): Ditto.
942 * config/te-nbsd532.h (TE_NETBSD532): Ditto.
943 * config/te-pc532mach.h (TE_PC532MACH): Ditto.
944 * config/te-ppcnw.h (TE_PPCNW): Ditto.
78dace0a 945 * config/te-sco386.h (scounix): Ditto.
91a165d1
KR
946
947Mon May 1 15:59:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
948
949 * read.c (s_app_file): If obj_app_file is defined, call it with
950 string as argument. Don't call c_dot_file_symbol or
951 elf_file_symbol.
952 * config/obj-coff.h (obj_app_file): Define as c_dot_file_symbol.
953 * config/obj-elf.h (obj_app_file): Define as elf_file_symbol.
954
955 * as.h (OUTPUT_FLAVOR): Don't define here.
956 * config/obj-aout.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define.
957 * config/obj-bout.h (OUTPUT_FLAVOR): Define.
958 * config/obj-coff.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define.
959 * config/obj-ecoff.h (OUTPUT_FLAVOR): Define.
960 * config/obj-elf.h (OUTPUT_FLAVOR): Define.
961
86a90ab9
DE
962start-sanitize-arc
963Sat Apr 29 21:44:57 1995 Doug Evans <dje@chestnut.cygnus.com>
964
965 * config/tc-arc.c (delay_slot_type): Deleted.
966 (md_assemble): Remember suffixes seen.
967 Issue warnings for 8 byte jump with delay slot, and conditional
968 branch immediately following set of condition codes.
969end-sanitize-arc
970
85f667f7
DE
971Thu Apr 27 20:07:33 1995 Doug Evans <dje@canuck.cygnus.com>
972
973 * Makefile.in (RUNTEST): Use one in srcdir if present.
974 (RUNTESTFLAGS): Define.
975
931a8fab
KR
976Wed Apr 26 15:54:10 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
977
978 Support for more portable alignment handling in assembly code,
979 based on patches from Bryan Ford <baford@schirf.cs.utah.edu>:
980 * read.c (potable): Added balign and p2align, for aligning by
981 bytes or powers of two independent of what ".align" does for a
982 given target.
983 * doc/as.texinfo: Document them.
984
404f16f5
RS
985Tue Apr 25 11:12:04 1995 Rob Savoye <rob@thepub.cygnus.com>
986
987 * configure, configure.in: Look for m68k-*-vxworks* rather than
988 just m68k-wrs-vxworks so gas can be configured for
989 m68k-vxworks5.1.
990
991Fri Apr 21 15:19:06 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
992
993 * config/tc-sh.c (md_apply_fix): If fx_r_type is zero, handle
994 fx_size of 1, and abort on unrecognized sizes.
995
996 * config/tc-m68k.c (m68k_ip): Fix bug in last change regarding
997 non-isvar case.
998
999Sun Apr 16 01:52:52 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1000
1001 * config/tc-m68k.h (md_relax_table, TC_GENERIC_RELAX_TABLE):
1002 Missed this one in 11 Apr changes.
1003
1004 * config/tc-i386.h (TC_GENERIC_RELAX_TABLE): Fix typo.
1005
bcee935e
KR
1006Thu Apr 13 18:18:08 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1007
51ba1ae6
KR
1008 * config/tc-sh.c (md_convert_frag): Instead of aborting on large
1009 displacements, print an error message. Don't invoke the code that
1010 followed the abort call until it's been verified.
1011
bcee935e
KR
1012 * config/tc-m68k.c (md_show_usage): Add 68060 to list. Split cpu
1013 list into three lines.
1014
1015Thu Apr 13 14:34:36 1995 Torbjorn Granlund <tege@adder.cygnus.com>
1016
1017 * tc-m68k.c (m68k_init_after_args): Test for m68360.
1018 (md_parse_option): Likewise.
1019 (md_show_usage): Mention m68360.
1020 * tc-m68k.h (TARGET_WORD_SIZE): Define.
1021 (TARGET_ARCH): Define.
1022
1023 * expr.c (integer_constant): If TARGET_WORD_SIZE is defined,
1024 sign-extend appropriately.
1025
1026Thu Apr 13 11:20:17 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1027
1028 * config/tc-ppc.c (ppc_elf_validate_fix): Properly use PARAMS to
1029 hide prototype from non-ANSI compilers, and don't use ANSI syntax
1030 for arguments.
1031
b5549686
SS
1032Wed Apr 12 12:20:19 1995 Stan Shebs <shebs@andros.cygnus.com>
1033
1034 * mpw-config.in (TDEFINES): Put empty definition into
1035 makefile fragment.
1036 * mpw-make.in (xmalloc.c.o): Remove.
1037 (as.new): Depend on Version.r.
1038 (Version.r): Generate from version info.
1039
1040 * mpw-make.in: Delete references to hex-value.c.
1041
1042 * mpw-config.in: Add mapping from configs to object file formats,
1043 get VERSION from Makefile.in and add to mk.tmp.
1044 (mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN.
1045 * mpw-make.in (VERSION, gC): Don't define.
1046 (ALL_CFLAGS): Remove -d flags.
1047 (config.h): Remove definition of MPW, add HAVE_STDARG_H,
1048 BFD_ASSEMBLER.
1049
1050 * mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,
1051 include of ::libiberty:.
1052 (config.h): Ifdef contents on GAS_VERSION.
1053
1054 * mpw-make.in (as.c): Compile with C not gC.
1055 (config-stamp): Touch correctly.
1056 (install-only): New target.
1057 (install): Depend on all and install-only.
1058
1059 * mpw-config.in: Parse target and use to generate forward includes
1060 to tc-, obj-, and atof- files, use te-generic.h for emulation.
1061 * mpw-make.in (VERSION): Define.
1062 (as.c): Compile with GCC.
1063 (TARG_OBJECTS, CLIBS): Define.
1064 (as.new): Use LDFLAGS, TARG_OBJECTS, CLIBS and EXTRALIBS in link
1065 command.
1066 (config.h, config-stamp): Build.
1067
1068 * mpw-make.in (C, CFLAGS): Removed definitions.
1069 (ALL_CFLAGS): Define.
1070 Set default rule to use {CC} instead of {C}.
1071
1072 * mpw-make.in (install): Moved here from mpw-build.in.
1073 * mpw-build.in: Removed, functionality in mpw-make.in
1074
1075 * mpw-make.in (CFLAGS): Add more include paths.
1076
1077 * mpw-config.in (varargs.h, sys/*.h): Don't create when
1078 configuring.
1079 * mpw-make.in (CFLAGS): Add -w flag.
1080
1081 * mpw-make.in: Replace 8-bit chars with their names.
1082
1083 * mpw-config.in: New file, MPW version of configure.in.
1084 * mpw-make.in: New file, MPW version of Makefile.in.
1085
5d57a66b
DE
1086start-sanitize-arc
1087Wed Apr 12 07:35:44 1995 Doug Evans <dje@canuck.cygnus.com>
1088
1089 * config/tc-arc.c (delay_slot_type): New function.
1090 (md_assemble): Use hashed list of insns.
1091 Print warning if 8 byte insn appears in delay slot.
1092 (md_operand): Handle %st(sym1-sym2).
1093 (get_arc_exp_reloc_type): Likewise.
1094 (md_apply_fix, case BFD_RELOC_ARC_B26): Now using implicit addends
1095 so must store them here.
1096end-sanitize-arc
1097
7beebeb6
KR
1098Tue Apr 11 01:42:36 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1099
98df0912
KR
1100 * configure.in: Require at least autoconf 2.3, because earlier
1101 versions lose on some AIX versions.
1102 * configure: Regenerated.
1103
1104 * configure.in: Add m68k-*-elf.
1105 * config/tc-m68k.c (comment_chars) [OBJ_ELF]: Include '#'.
1106 (md_pseudo_table) [OBJ_ELF]: Ignore "swbeg".
1107 (md_begin): Set alt_notend_table['&'], so svr4-style immediate
1108 operands are accepted.
1109 (md_apply_fix): Argument VALP should point to valueT.
1110 (md_convert_frag): Argument SEC should be type segT.
1111 (md_shortopts) [OBJ_ELF]: Accept 'Q' with an argument.
1112 (md_parse_option): Ignore it.
1113 (md_convert_frag_1): Add in frag address for the symbol in the
1114 displacement calculation.
1115 * config/tc-m68k.h (TARGET_FORMAT) [OBJ_ELF]: Use "elf32-m68k".
1116 (TARGET_ARCH): Define.
1117 (REGISTER_PREFIX_OPTIONAL) [OBJ_ELF]: Default to 0.
1118 (LOCAL_LABEL, FAKE_LABEL_NAME, REGISTER_PREFIX_OPTIONAL): Handle
1119 these the same way for OBJ_ELF as for M68KCOFF.
1120
7beebeb6
KR
1121 * gdbinit.in: Add breakpoint in as_abort.
1122
1123 * write.c (cvt_frag_to_fill): If offset is less than zero,
1124 complain about it specifically, instead of reporting an assertion
1125 failure.
1126 (relax_segment): Complain about .org backwards, then ignore it.
1127 Do generic rs_machine_dependent relaxation only if
1128 TC_GENERIC_RELAX_TABLE is defined, and use its value for the base
1129 of the table.
1130 * tc.h (md_relax_table): Delete declaration.
7b1f56d4 1131 * as.h (struct relax_type): Add forward declaration for type.
7beebeb6
KR
1132 * config/tc-a29k.c: Deleted md_relax_table.
1133 * config/tc-{alpha,arm,h8300,hppa,i860,m88k,mips,ppc,sparc,z8k}.c:
1134 Ditto.
1135 * config/tc-{h8500,i386,i960,ns32k,sh,tahoe,vax,w65}.h: Declare
1136 md_relax_table here, and define TC_GENERIC_RELAX_TABLE to expand
1137 to md_relax_table.
1138 * config/tc-h8500.c (md_relax_table): No longer const.
1139 * config/tc-w65.c (md_relax_table): Ditto.
1140 * config/tc-sparc.c (md_short_jump_size, md_long_jump_size):
1141 Deleted.
1142start-sanitize-arc
1143 * config/tc-arc.c (md_relax_table, md_short_jump_size,
1144 md_long_jump_size): Deleted.
1145end-sanitize-arc
1146start-sanitize-rce
1147 * config/tc-rce.h: Declare md_relax_table here, and define
1148 TC_GENERIC_RELAX_TABLE to expand to it.
1149end-sanitize-rce
faf2dc27
KR
1150 * doc/internals.texi: Describe TC_GENERIC_RELAX_TABLE and
1151 WORKING_DOT_WORD. Mention md_*_jump_size (but description needs
1152 to be fleshed out later). Note m68k PCINDEX mode has been checked
1153 in.
7beebeb6 1154
7015284b
KR
1155Mon Apr 10 15:57:42 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1156
7beebeb6
KR
1157 * config/tc-mips.c (nopic_need_relax): New static function, split
1158 out from md_estimate_size_before_relax.
1159 (md_estimate_size_before_relax): Call it.
1160 (load_address, macro): In NO_PIC branches, if nopic_need_relax
1161 returns nonzero, don't attempt GP optimization.
1162
1163 * config/tc-m68k.c (PCINDEX): New macro.
1164 (md_relax_table): No longer const. Add PCINDEX entries.
1165 (m68k_ip): For AINDX with simple symbol operand, generate a
1166 PCINDEX frag if PC is used, or do normal non-AINDX processing for
1167 address register.
1168 (m68k_init_after_args): If cpu is 68000 or 68010, fix
1169 md_relax_table to prevent relaxation of PCINDEX/BYTE mode to
1170 SHORT, since they don't support that mode.
1171 (md_convert_frag_1, case PCLEA/LONG): Add 4 to offset, not 2. Add
1172 support for new PCINDEX modes.
1173 (md_estimate_size_before_relax): Process PCINDEX/SZ_UNDEF mode.
1174
1175 * config/tc-m68k.c (md_convert_frag_1, case PCLEA/SHORT): Add 2 to
1176 offset.
1177 (m68k_ip, case most punctuation/AOFF): If using PC, call add_frag
1178 using PCLEA.
1179
1180 * config/tc-m68k.c: Don't explicitly include config.h. Deleted a
1181 bunch of "#if 0" code and useless comments.
1182 (struct m68k_cpu): New type.
1183 (archs, n_archs): New variables, with single list of name/enum
1184 mapping and aliases.
1185 (m68k_ip): Delete the table here.
1186 (m68k_init_after_args): Use the new table here instead of
1187 open-coding it.
1188 (md_parse_option, case 'm'): Ditto.
1189
7015284b
KR
1190 * doc/Makefile.in (Makefile): Fix rule for running config.status.
1191 (internals.dvi, internals.ps, internals.ps4): New targets, not
1192 built by default.
1193
1194 * doc/internals.texi: Add loud disclaimer. Refill to 79 columns,
1195 specify fill-column in local-variables section. Change
1196 subheadings to subsections so they can be cross-referenced.
1197 Describe broken words, frags, frag chains, generic relaxation,
1198 relax table, m68k relaxation, m68k addressing modes, test suite
1199 code. Add a few words about various file formats.
1200
1201 * doc/as.texinfo (m68k): Recommend using `%' with registers as the
1202 normal case, instead of the exceptional case.
1203
47ba63b2
DE
1204start-sanitize-arc
1205Thu Apr 6 20:00:11 1995 Doug Evans <dje@chestnut.cygnus.com>
1206
1207 * config/tc-arc.c (arc_condition_codes): Deleted.
1208 (init_opcode_tables): Delete cpu_type_map, call
1209 arc_get_opcode_mach instead.
1210 (arc_common): Delete non-ELF stuff. Require leading '.' in .data.
1211 (md_apply_fix): Delete non-ELF stuff.
1212 Disable special handling of limm values, treat them normally.
1213 (get_arc_exp_reloc_type): New argument `data_p'. Callers updated.
1214 (md_assemble): All limm operands must be output by gas, the opcode
1215 insertion routines cannot be used (they don't do anything and we're
69cb5925 1216 using implicit addends now so we need to output something).
47ba63b2
DE
1217 * config/tc-arc.h (FAKE_LABEL_NAME): Define.
1218end-sanitize-arc
1219
1220Thu Mar 30 14:38:47 1995 H.J. Lu (hjl@nynexst.com)
1221
1222 * configure.in: Change linux to default to elf. Using
1223 i[345]86-*-linuxaout will defaults to a.out.
1224 * configure: Rebuild.
1225
6d7bcd2f
TG
1226Wed Mar 29 17:16:30 1995 Torbjorn Granlund <tege@adder.cygnus.com>
1227
1228 * config/tc-m68k.c (md_apply_fix_2): Cast negative offsets to offsetT
1229 (for hosting on 64 bit machines).
1230
350f083c
ILT
1231Tue Mar 21 16:53:27 1995 Ian Lance Taylor <ian@cygnus.com>
1232
1233 * config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650.
1234
1235Fri Mar 17 16:47:13 1995 Stan Shebs <shebs@andros.cygnus.com>
1236
1237 * write.c (write_object_file): Add PROGRESS macros.
1238
bff1e14d
JL
1239Fri Mar 17 12:40:34 1995 Jeff Law (law@snake.cs.utah.edu)
1240
1241 * config/tc-hppa.c (pa_comm): Make sure to always reset the frag
1242 and section for common symbols.
1243
1244Thu Mar 16 17:26:18 1995 Michael Meissner <meissner@cygnus.com>
1245
1246 * config/tc-ppc.c (ppc_elf_validate_fix): Allow non PC relative
1247 pointers in the .ctors and .dtors section also when using the
1248 -mrelocatable option.
1249 (md_parse_option): Support -m403 as a PowerPC computer.
1250 (md_show_usage): Ditto.
1251
e5926c4a
ILT
1252Wed Mar 15 14:45:42 1995 Ian Lance Taylor <ian@cygnus.com>
1253
1254 * ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr
1255 may be NULL when given strange input. Don't core dump.
1256
a7f668c0
ILT
1257Tue Mar 14 21:36:34 1995 Ian Lance Taylor <ian@cygnus.com>
1258
1259 * config/tc-mips.c (load_register): Don't use addiu for dli of an
1260 unsigned seemingly negative number. Don't bother shifting a zero
1261 value.
1262 (mips_ip): For case 'j', if there are more alternatives, and the
1263 ISA level is at least 3, don't accept an unsigned seemingly
1264 negative number.
1265
f6bc42a3
KR
1266Tue Mar 14 19:16:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1267
1268 * read.c (s_app_line): Fix last patch to deal with a line number
1269 of 1.
1270
ce9a2805
MM
1271Tue Mar 14 17:00:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1272
1273 * config/tc-ppc.c (ppc_elf_validate_fix): Use as_warn_where, not
1274 as_bad_where to give a warning instead of an error.
1275
85a30e59
KR
1276Mon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu)
1277
1278 * config/tc-vax.c (md_assemble): issue a warning if a constant
1279 is used as an operand where an immediate value is not allowed.
1280
78fcad58
KR
1281Fri Mar 10 19:21:19 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1282
69cb5925 1283 * config/obj-coff.c: Redo my 10 Jan change, but get it right this
78fcad58
KR
1284 time. :-)
1285 (fixup_segment): If linkrelax is set, just return.
1286 (write_object_file): Don't treat h8300 and z8k specially with
1287 regard to fixups.
1288 * config/tc-h8300.c (md_begin): Set linkrelax.
1289 * config/tc-z8k.c (md_begin): Ditto.
1290
5fc2a6ec
ILT
1291Thu Mar 9 18:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
1292
1293 * config/obj-coff.c (coff_header_append): Check return value of
1294 bfd_coff_swap_scnhdr_out.
1295
9a6ec5eb
DE
1296Thu Mar 9 13:51:30 1995 Doug Evans <dje@canuck.cygnus.com>
1297
1298 Delete this patch, it breaks the h8300 assembler.
1299 Tue Jan 10 13:34:14 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1300 * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
1301 specially with regard to fixups.
1302
1303Thu Mar 9 12:28:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1304
1305 * config/tc-ppc.c (mrelocatable): Change type to boolean.
1306 (md_begin): Set the EF_PPC_RELOCATABLE if -mrelocatable.
1307
a79bf95d
ILT
1308Wed Mar 8 15:39:39 1995 Ian Lance Taylor <ian@cygnus.com>
1309
1310 * config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
1311 r10000. If mips_isa is 4, set the machine number to 8000.
1312 (append_insn): If mips_isa is at least 4, don't generate nops for
1313 coprocessor delays. Check INSN_READ_FPR_R when setting
1314 mips_cprmask[1].
1315 (mips_emit_delays): If mips_isa is at least 4, don't generate nops
1316 for coprocessor delays.
1317 (mips_ip): Check for INSN_ISA4 instructions. Handle new argument
1318 types 'h', 'R', 'N', and 'M'.
1319 (md_longopts): Accept "mips4".
1320 (md_parse_option): Handle -mips4, and -mcpu=10000 and -mcpu=8000.
1321 (s_mipsset): Permit .set mips4.
1322
74e1b52e
MM
1323Wed Mar 8 09:36:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1324
1325 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .stab sections to
1326 have non PC relative relocations with -mrelocatable.
1327
82a7c457
KR
1328Wed Mar 8 02:57:53 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1329
1330 * config/tc-m68k.c (opcode_ptr): Return pointer to const.
1331 (md_begin): Make hash table errors fatal. Process opcode aliases
1332 after main opcode table.
1333 (md_apply_fix_2, case 4): Recode setting of lower_limit to avoid
1334 gcc warning.
1335
3f4487d0
DE
1336start-sanitize-arc
1337Tue Mar 7 20:42:35 1995 Doug Evans <dje@chestnut.cygnus.com>
1338
1339 * config/tc-arc.h (LITTLE_ENDIAN, BIG_ENDIAN): Define.
1340 (DEFAULT_TARGET_FORMAT): Define.
1341 (DEFAULT_BYTE_ORDER): Define to little endian.
1342 (TARGET_FORMAT): Byte order is now selectable.
1343 * config/tc-arc.c (arc_target_format): New variable.
1344 (byte_order): New variable.
1345 (md_longopts): New options -EL, -EB.
1346 (md_parse_option): Recognize them.
1347 (md_show_usage): Print them.
1348 (md_begin): Set target_big_endian.
1349end-sanitize-arc
1350
3e39a556
ILT
1351Tue Mar 7 16:07:10 1995 Ian Lance Taylor <ian@cygnus.com>
1352
1353 * doc/as.texinfo: Add documentation for SPARC V9, from Doug Evans
1354 <dje@cygnus.com>.
1355
5f241617
JL
1356Mon Mar 6 09:58:34 1995 Jeff Law (law@snake.cs.utah.edu)
1357
1358 * config/tc-hppa.c: Change all occurences of pa-89 with pa-11 to
1359 be consistent with current naming conventions.
1360 (md_begin): Set a default architecture and machine type.
1361 (pa_ip): If the current instruction specifies a newer machine type
1362 than the current machine type, then update the current machine
1363 type.
1364 (need_pa11_opcode): Likewise.
1365
2c23d22b
JL
1366Sun Mar 5 19:38:09 1995 Jeff Law (law@snake.cs.utah.edu)
1367
1368 * config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument
1369 relocation bits for absolute calls.
1370
0578ade3
KR
1371Fri Mar 3 17:41:50 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1372
cb7973c3
KR
1373 * config/tc-h8300.* (md_operand): Change empty function to empty
1374 macro.
1375
1376 * config/tc-h8300.c (build_bytes): Make H8/300-H warning message
1377 clearer.
1378
0578ade3
KR
1379 * write.c (write_contents): If bfd_set_section_contents fails,
1380 print a message and exit, instead of aborting.
1381
3f81f3cf
MM
1382Fri Mar 3 16:26:19 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1383
1384 * tc.h (md_apply_fix3): If MD_APPLY_FIX3 is defined, declare
1385 md_apply_fix3.
1386
1387 * write.c (fixup_segment): If MD_APPLY_FIX3 is defined, call
1388 md_apply_fix3 with the normal 2 arguments and the current segment
1389 pointer instead of md_apply_fix.
1390
1391 * config/tc-ppc.h (MD_APPLY_FIX3): Define.
1392
1393 * config/tc-ppc.c (ppc_elf_validate_fix): Warn if -mrelocatable
1394 and a non PC relative relocation that isn't in the .got2 segment
1395 was performed.
1396 (md_apply_fix3): Rename from md_apply_fix and take segment pointer
1397 as third argument. If ELF object format, call ppc_elf_validate_fix
1398 for normal relocations.
1399 (md_parse_option): If ELF object format, recognize the
1400 -mrelocatable switch.
1401
1402Thu Mar 2 16:34:44 1995 Ian Lance Taylor <ian@cygnus.com>
1403
1404 * config/tc-i386.h (AOUT_MACHTYPE): Define as 100, not 0.
1405
33d8f469
KR
1406Tue Feb 28 18:29:27 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1407
1408 * config/tc-arm.c, config/tc-arm.h (md_operand): Replaced empty
1409 function in .c file with empty macro in .h file.
1410 * config/tc-h8500.*, config/tc-hppa.*, config/tc-i386.*,
1411 config/tc-i860.*, config/tc-i960.*, config/tc-ns32k.*,
1412 config/tc-ppc.*, config/tc-sh.*, config/tc-sparc.*,
1413 config/tc-tahoe.*, config/tc-vax.*, config/tc-w65.*,
1414 config/tc-z8k.*: Ditto.
1415start-sanitize-rce
1416 * config/tc-rce.*: Ditto.
1417end-sanitize-rce
46f12809
KR
1418 * config/tc-m68k.*: Ditto.
1419
1420 * config/tc-m68k.c (mote_pseudo_table): Removed dots from opcode
1421 names.
33d8f469
KR
1422
1423 * read.c (s_app_line): Ignore non-positive line numbers.
1424
0877841d
ILT
1425Tue Feb 28 15:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
1426
1427 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust PLT or
1428 GOT relocs either.
1429
d2c02060
KH
1430Mon Feb 27 13:03:41 1995 Kung Hsu <kung@mexican.cygnus.com>
1431
1432 * configure.in: add a29k-*-vxworks configuration.
1433
7811254c
ILT
1434Fri Feb 24 14:41:15 1995 Ian Lance Taylor <ian@cygnus.com>
1435
d2c02060
KH
1436 * config/tc-mips.c (load_register): Take dbl argument to determine
1437 handling of signed 32 bit values in 64 bit modes. Change all
1438 callers.
1439 (macro): Handle M_DLI and M_DLA_AB.
7811254c 1440
e386acc8
JL
1441Wed Feb 22 23:10:56 1995 Jeff Law (law@snake.cs.utah.edu)
1442
1443 * config/tc-hppa.c (md_apply_fix): Don't subtract the value of the
1444 add symbol if it's a common symbol (the value of a common symbol
1445 is its size, not a value in the traditional sense).
1446
546f5536
ILT
1447Wed Feb 22 21:12:28 1995 Ian Lance Taylor <ian@cygnus.com>
1448
1449 * config/tc-mips.c (append_insn): If listing_prev_line is called,
1450 call frag_grow to make sure there is still room for a variant.
1451
7a3761e1
ILT
1452Fri Feb 17 14:50:08 1995 Ian Lance Taylor <ian@cygnus.com>
1453
61420a20
ILT
1454 * config/tc-mips.c (md_pseudo_table): Add 2byte, 4byte and 8byte
1455 if OBJ_ELF. From gary@Intrepid.COM (Gary Funck).
1456
7a3761e1
ILT
1457 * config/obj-elf.c (elf_frob_symbol): Warn if a symbol is both
1458 weak and common.
1459 * config/obj-aout.c (obj_aout_frob_symbol): Likewise.
1460
5836732b
MM
1461Fri Feb 17 12:43:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1462
1463 * config/tc-ppc.c (md_pseudo_table): Don't redefine byte under
1464 ELF.
1465 (ppc_elf_cons): Don't support @pcrel any more, since DIFF_EXPR_OK
1466 allows the normal expressions to generate it.
1467 (md_apply_fix): Convert BFD_RELOC_32 with pcrel bit set into
1468 BFD_RELOC_32_PCREL. Abort if either BFD_RELOC_16 or BFD_RELOC_8
1469 need PC relative relocations.
1470
1471 * config/tc-ppc.h (DIFF_EXPR_OK): Define to allow PC relative
1472 expressions to be handled.
1473
b8ed3de3
DE
1474Thu Feb 16 14:30:13 1995 Doug Evans <dje@cygnus.com>
1475
1476 * expr.c (operand): Move md_operand handling to default case
1477 (so it works).
1478
efc538ba
ILT
1479Wed Feb 15 16:08:47 1995 Jason Molenda <crash@cygnus.com>
1480
1481 * config/tc-h8500.c (tc_coff_symbol_emit_hook): Add ignored
1482 parameter, to match prototype.
1483
4a6b2f8b
MM
1484Wed Feb 15 15:07:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1485
1486 * config/tc-ppc.c (md_pseudo_table): If ELF, go to ppc_elf_cons
1487 instead of cons.
1488 (md_show_usage): Show all of the PowerPc options.
1489 (ppc_elf_suffix): New function to recognize ELF suffixes that
1490 specify a relocation, such as @GOT.
1491 (ppc_elf_cons): Replacement for the standard cons function that
1492 knows about the ELF suffixes.
1493 (ppc_fixup): Add reloc field to hold non-standard relocation.
1494 (md_assemble): Handle ELF suffixes like @GOT.
1495 (md_create_short_jump): Dummy in case WORKING_DOT_WORD is not
1496 defined.
1497 (md_create_long_jump): Ditto.
1498 (md_short_jump_size): Ditto.
1499 (md_long_jump_size): Ditto.
1500 (md_apply_fix): Handle BFD_RELOC_32_PCREL, BFD_RELOC_LO16,
1501 BFD_RELOC_HI16, BFD_RELOC_HI16_S, BFD_RELOC_PPC_TOC16, and
1502 BFD_RELOC_16 relocations. If relocation can not be found, print
1503 the decimal value of the relocation.
1504
b2b8c24e
ILT
1505Wed Feb 15 11:46:02 1995 Ian Lance Taylor <ian@cygnus.com>
1506
49ad0c4c
ILT
1507 * config/tc-mips.c (md_apply_fix): Accept BFD_RELOC_16, for
1508 DWARF. From gary@Intrepid.COM (Gary Funck).
1509
adcf2b9d
ILT
1510 * config/tc-mips.c (macro): Handle M_U{L,S}D[_A] (unaligned double
1511 loads and stores).
1512
1513 * config/tc-i386.c (tc_i386_fix_adjustable): Do adjust global
1514 symbols if OBJ_AOUT.
1515
b2b8c24e
ILT
1516 * config/tc-mips.c (macro): Don't use the target register as a
1517 base register when building the address for M_L{W,D}{L,R}_AB.
1518
08b7351f
ILT
1519Mon Feb 13 14:44:32 1995 Ian Lance Taylor <ian@cygnus.com>
1520
b2b8c24e
ILT
1521 * config/tc-mips.c (KT0, KT1): Define.
1522 (mips_ip): Recognize $kt0 and $kt1 as register names.
1523
08b7351f
ILT
1524 * config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF.
1525 * config/tc-sparc.c (md_apply_fix): If OBJ_ELF, subtract out the
1526 value of a defined symbol; the value was added in by
1527 fixup_segment. This was previously corrected, if the reloc was
1528 changed to be against a section symbol, in tc_gen_reloc.
1529
1530start-sanitize-arc
1531Mon Feb 13 10:02:35 1995 Doug Evans <dje@canuck.cygnus.com>
1532
1533 * config/tc-arc.h (TC_PARSE_CONS_EXPRESSION): Define.
1534 (TC_CONS_FIX_NEW): Define.
1535 * config/tc-arc.c (get_arc_exp_operand_type): New function.
1536 (init_opcode_tables): Insert registers into global symbol table.
1537 (md_assemble): Call `expression' to parse all expressions.
1538 Call `get_arc_exp_operand_type'.
1539 (md_operand): Recognize %st(foo).
1540 (arc_parse_cons_expression): New function.
1541 (arc_cons_fix_new): New function.
1542 (md_apply_fix): Handle new reloc BFD_RELOC_ARC_B26.
1543end-sanitize-arc
1544
e13a80f7
ILT
1545Fri Feb 10 14:04:04 1995 Ian Lance Taylor <ian@cygnus.com>
1546
1547 * config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERN
1548 rather than !S_IS_LOCAL.
1549
2ec8f45e
DE
1550start-sanitize-arc
1551Thu Feb 9 17:44:29 1995 Doug Evans <dje@canuck.cygnus.com>
1552
1553 * config/tc-arc.c (md_pseudo_table): Add .cpu.
1554 (comment_chars): Add ';'.
1555 (arc_mach_type, mach_type_specified, cpu_tables_init_p): New globals.
1556 (md_parse_option): Delete support for -mmult. Add -mcpu=xxx.
1557 (md_begin): Current ARCs are little endian.
1558 Call bfd_set_arch_mach to set the cpu type.
1559 (init_opcode_tables): New function.
1560 (md_begin): Ignore suffixes and registers not supported by cpu.
1561 (md_assemble): Initialize opcode tables here.
1562 Ignore opcodes not supported by selected cpu.
1563 Always ask for more memory in one piece.
1564 (arc_cpu): New function.
1565 (md_numbers_to_chars): Support both endians (will probably be needed
1566 eventually anyway).
1567 (md_apply_fix): Likewise.
1568 * config/tc-arc.h (LOCAL_LABEL): Delete "_.L_", gcc works around
1569 dwarfout.c quirk.
1570end-sanitize-arc
1571
79c4bb34
ILT
1572Thu Feb 9 18:16:34 1995 Ian Lance Taylor <ian@cygnus.com>
1573
1574 * config/tc-i386.c (md_assemble): Adjust conditions for changing
1575 BFD_RELOC_32 to BFD_RELOC_386_GOTPC to handle a switch in frags.
1576 Patch originally from Rob Ryan <robr@cmu.edu>.
1577
1578 * config/tc-i386.c: Include subsegs.h.
1579 (tc_i386_fix_adjustable): Declare return value.
1580 (i386_operand): Don't use an assignment directly as a condition.
1581
e6d31135
JL
1582Thu Feb 9 10:37:13 1995 Jeff Law (law@snake.cs.utah.edu)
1583
1584 * config/tc-hppa.c (md_apply_fix): In some cases subtract the
1585 value of the add symbol from valp. Offsets braindamage in the
1586 "machine independent" fixup_segment.
1587
15f146be
KR
1588Wed Feb 8 18:51:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1589
e10c7dfc
KR
1590 * messages.c (as_abort): New function.
1591 * as.h (as_abort): Declare it.
1592 (abort): New macro.
1593
15f146be
KR
1594 Thu Jan 19 18:10:05 1995 Pat Rankin (rankin@eql.caltech.edu)
1595
1596 * config/vms-conf.h (HAVE_UNISTD_H): define it unconditionally.
1597 * config-gas.com: test for availability of <unistd.h>; create a
1598 rudimentary one if necessary.
1599
06c08e9a
MM
1600Tue Feb 7 13:34:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1601
1602 * configure.in: Add powerpc-*-eabi support, which is the same as
1603 powerpc-*-elf.
1604 (configure): Rebuild with autoconf.
1605
c54c7aac
KR
1606Mon Feb 6 03:37:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1607
1608 Changes from Bryan Ford <baford@schirf.cs.utah.edu> for i386
1609 16-bit and msdos support:
1610 * config/tc-i386.c (flag_16bit_code): New variable.
1611 (set_16bit_code_flag): New function.
1612 (md_pseudo_table): Added entries "code16" and "code32".
1613 (md_assemble): Ensure that correct data-size prefixes get emitted,
1614 based on the current mode. Ensure that 32-bit addressing will
1615 always be done. Move segment-prefix handling code. (Why?) Use
1616 16-bit jumps for 16-bit code, 32-bit jumps for 32-bit code.
1617 * config/tc-i386.h (MAX_PREFIXES): Bump to 5.
1618 (Data16, Data32): Define.
1619 * doc/as.texinfo (i386-16bit): New node.
1620 * configure.in (i386-*-msdos*): New target, using a.out format.
1621 * configure: Regenerated.
1622
e2bf6880
KR
1623Thu Feb 2 15:21:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1624
1625 * config/tc-m68k.c (cpu32_control_regs): New macro.
1626 (m68k_init_after_args): Use it, for cpu32 processors.
1627
b003a2d9
KR
1628 Tue Jan 31 17:20:45 1995 Pat Rankin (rankin@eql.caltech.edu)
1629
1630 * config/obj-vms.c (vms_tir_stack_psect): new routine;
1631 (VMS_Set_Data, VMS_Set_Psect, VMS_Store_PIC_Symbol_Reference,
1632 VMS_TBT_Routine_Begin, VMS_TBT_Line_PC_Correlation): use it;
1633 (VMS_Global_Symbol_Spec, VMS_Procedure_Entry_Pt): treat
1634 Psect_Number as `unsigned'.
1635
1636 Thu Jan 26 17:06:28 1995 Pat Rankin (rankin@eql.caltech.edu)
1637
1638 * config/obj-vms.c: performance tuning.
1639 (VMS_Symbol_type_list): convert from single list head to small
1640 array of list heads;
1641 (SYMTYP_HASH): new macro for accessing VMS_Symbol_type_list[];
1642 (find_symbol, setup_basic_type, VMS_typedef_parse): use it;
1643 (VMS_RSYM_Parse): move S_GET_VALUE() inside switch to avoid
1644 calling it for uninteresting cases.
1645
b4682e51
JL
1646Wed Feb 1 23:52:45 1995 Jeff Law (law@snake.cs.utah.edu)
1647
1648 * config/tc-hppa.c (md_apply_fix): Go ahead and call
1649 hppa_field_adjust to get a new value for R_DATA_ONE_SYMBOL
1650 relocations in SOM.
1651 (hppa_fix_adjustable): Refine somewhat.
1652
e2bf6880
KR
1653Fri Jan 27 21:29:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1654
1655 * config/tc-ppc.h (NO_STRING_ESCAPES): Don't define if we are
1656 using ELF.
1657
a18a0f22
KR
1658Thu Jan 26 19:03:42 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1659
1660 * config/tc-h8300.c (get_specific): Add parens around | inside &.
1661 (skip_colonthing): Set L_8 if ":8" is specified.
1662
76e30835
ILT
1663Thu Jan 26 18:38:01 1995 Ian Lance Taylor <ian@cygnus.com>
1664
1665 * config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
1666 601. Check that the error return from hash_insert is "exists".
1667
da8fa3ba
MM
1668Thu Jan 26 11:35:33 1995 Michael Meissner <meissner@cygnus.com>
1669
1670 * configure: Add support for configuring powerpc-*-eabi.
1671
1672 * config/tc-ppc.c (GOT_symbol): Define if object format is ELF.
1673
1674 * config/tc-ppc.h (GLOBAL_OFFSET_TABLE_NAME): Define if object
1675 format is ELF and not defined to be "_GLOBAL_OFFSET_TABLE_".
1676
8d9a1cce
JW
1677Wed Jan 25 16:23:13 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1678
1679 * tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
1680 (md_pseudo_table): Add space for consistent formatting.
1681 (COND8_RANGE, COND12_RANGE): Delete unused macros.
1682 (COND8_F, COND8_M, COND12_F, COND12_M, UNCOND12_F, UNCOND12_M):
1683 Correct minimum and maximum branch offsets. Add comments explaining
1684 why these numbers are correct.
1685
1eeb357e
ILT
1686Wed Jan 25 15:32:09 1995 David Edelsohn <edelsohn@mhpcc.edu>
1687
1688 * config/tc-ppc.c (md_parse_option): Accept mpwr2 as a synonym for
1689 mpwrx; mppc32, m603, and m604 as synonyms for mppc; and mppc64 and
1690 m620 for PowerPC64 mode.
1691 (ppc_symbol_new_hook): Add T0 as synonym for TC0 suffix.
1692
f2224fe2
KR
1693Tue Jan 24 16:44:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1694
1695 * config/tc-vax.c (vip): Introduce new ptr-to-const local variable
1696 for scanning operand string.
1697
1698 Sat Jan 21 17:50:38 1995 Pat Rankin (rankin@eql.caltech.edu)
1699
1700 * config/vax-inst.h (struct vop, fields `vop_warn', `vop_error'):
1701 make them pointers to const char;
1702 (struct vit, field `vit_error'): ditto.
1703 * config/atof-vax.c (md_atof): rename local `littlenum_pointer'
1704 to `littlenumP' to avoid shadowing file scope variable.
1705 * config/tc-vax.c (vip_begin, vip_op_defaults, vip_op_1): make
1706 string arguments be pointers to const char;
1707 (vip): make `alloperr' const char *;
1708 (vip_op): make `err' and `wrn' const char *; rename `access' to
1709 `access_mode' to avoid shadowing library function.
1710 * config/obj-vms.c (`symbol_name'): make it const char *;
1711 (get_struct_name): cast one use of `symbol_name' to char *
1712 [caller guarantees that it won't modify the pointer's target];
1713 (PUT_COUNTED_STRING): use pointer to const char;
1714 (VMS_typedef_parse): make `pnt2' const char *;
1715 (Write_VMS_MHD_Records): make `cp' const char *;
1716 (VMS_Modify_Psect_Attributes, array `Attributes'): make const,
1717 and make field `Name' pointer to const char;
1718
1719 * as.h (`seg_name[]' declaration): pointers to const char;
1720 (struct _pseudo_type, field `poc_name'): pointer to const char.
1721 * subsegs.c (`seg_name[]' definition): ditto;
1722 * hash.c (hash_ask): rename argument `access' to `access_type'
1723 to avoid shadowing library function.
1724 * write.c (variable `the_object_file'): move from file scope
1725 to block scope within write_object_file(); free it after use;
1726 (fixup_segment): conditionally exclude it for OBJ_VMS.
1727 (cvt_frag_to_fill): rename argument `headers' to `headersP'
1728 to avoid shadowing file scope variable.
1729
359bb9a3
JL
1730Mon Jan 23 21:42:39 1995 Jeff Law (law@snake.cs.utah.edu)
1731
1732 * config/tc-hppa.c (pa_ip, case 'D'): Fix typo which caused
1733 miscompilation of "diag" instructions.
1734
73433384
KR
1735Mon Jan 23 15:51:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1736
1737 * configure: Regenerated.
1738
1739 * config/tc-mips.c: Include libiberty.h.
1740
eb10ff23
ILT
1741Mon Jan 23 14:07:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1742
9cc7c60b
ILT
1743 * config/tc-sh.h (tc_init_after_args): Don't define.
1744 * config/tc-sh.c (md_begin): Remove unused variable table.
1745 (md_assemble): Remove unused variable p.
1746 (md_convert_frag): Cast fr_address to unsigned long for printf.
1747 (md_apply_fix): Use as_warn_where rather than as_warn.
1748 (sh_init_after_args): Remove empty function.
1749
eb10ff23
ILT
1750 * configure.in (i386-*-gnu*elf*): New target.
1751
be7571b6
ILT
1752Sat Jan 21 19:02:23 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
1753
1754 * hash.c (hash_ask): If we find the slot after wrapping around,
1755 break out of the loop. Fixes bug in Jan 18 change.
1756
b2683e09
KR
1757Fri Jan 20 17:07:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1758
1759 * hash.c (hash_code): Undo last change.
1760
8e86815b
KR
1761Thu Jan 19 14:49:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1762
11618ce8
KR
1763 * config/tc-alpha.c (alpha_ip): Initialize local variables to keep
1764 gcc quiet.
1765 (gpdisp_hi16_howto): Don't use "const" with reloc_howto_type.
1766 (in_range_signed): Add parens around subtraction inside shift.
1767 * gasp.c (do_data): Initialize local variable "opname".
1768 (istrue): Provide a default case to set "res" and keep "gcc -Wall"
1769 quiet.
1770 * write.c (write_contents): Deleted unused variable.
1771 (print_symbol_value_1): Declare.
1772 * hash.c (hash_ask): Delete disabled non-strcmp version of the
1773 code, and automatic variables used only in those sections.
1774 * write.c (chain_frchains_together_1): Only define local variable
1775 "prev_fix" if BFD_ASSEMBLER.
1776 * flonum-konst.c (dummy1): Return void.
1777 * config/tc-vax.c (md_assemble): Remove two comparisons of
1778 unsigned numbers versus zero.
b2683e09
KR
1779 * as.h (bcopy): If neither memcpy nor bcopy is defined as a macro,
1780 define to use memcpy.
11618ce8
KR
1781
1782 * config/tc-alpha.c, config/alpha-opcode.h: Revert 2 June changes.
1783 Turns out we never got the assignment done after all.
1784
8e86815b
KR
1785 Cleanup of VAX and VMS code, from Pat Rankin:
1786 * config/obj-vms.c: Changed exported function names to lower case.
1787 (Changed call sites in write.c.) Declare VMS system function
1788 names used, conditional on actually being on VMS. Changed many
1789 functions that returned no useful value to now be declared to
1790 return void. Removed many unused variables. Supply missing
1791 return statements or values. Supply `default' case in switch
1792 statements. Ensure local variables get initialized.
1793 * config/tc-vax.c: Minor changes to silence "gcc -Wall".
1794 * config/obj-vms.h, config/tc-vax.h: Added some missing
1795 declarations.
1796
29c8d82c
KR
1797Wed Jan 18 13:49:26 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1798
fca2796a
KR
1799 * atof-generic.c (flonum_print) [TRACE]: New function.
1800 (atof_generic) [TRACE]: Print multiplier before multiplication,
1801 and print multiplication result before and after copy.
1802
1803 * flonum-mult.c (flonum_multip): Avoid sign extension problems
1804 around multiplication operation.
1805
1806 * atof-generic.c (ASSUME_DECIMAL_MARK_IS_DOT): Define.
1807 (atof_generic) [ASSUME_DECIMAL_MARK_IS_DOT]: Check for '.'
1808 explicitly instead of calling strchr.
1809
29c8d82c
KR
1810 * config/tc-sparc.c (sparc_ip): When scanning successive opcode
1811 table entries, check names for pointer equality before doing
1812 string comparisons.
1813
1814 * hash.c (hash_ask): Call strcmp instead of expanding it inline.
1815 (hash_code): Replaced with a version from bfd.
1816
1817 * config/obj-coff.c (write_object_file): If COFF_FLAGS isn't
1818 defined, default it to zero.
1819
96d1566d
ILT
1820Wed Jan 18 12:16:07 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1821
6ece68f0
ILT
1822 * write.c (fix_new_internal): Clear fx_bsr on those targets which
1823 use it.
1824
96d1566d
ILT
1825 * expr.c (operand): Parenthesize && within ||.
1826 * listing.c (listing_newline): Likewise.
1827 (list_symbol_table): Use %lu to print sizeof.
1828 * symbols.c: Comment out unused function indent.
1829 (print_symbol_value_1): Cast pointer to unsigned long for printf.
1830 * config/obj-coff.c (do_relocs_for): Only declare symbol_ptr if it
1831 will be used.
1832 * config/tc-h8300.c (md_begin): Remove unused variable reg.
1833 (get_operand): Declare type of parameter direction. Remove unused
1834 variable size.
1835 (get_specific): Fix comment to avoid nested comments.
1836 (check_operand): Cast X_add_number to unsigned long for printf.
1837 (build_bytes): Remove unused local variables output_ptr, part, and
1838 high.
1839 (build_bytes): Cast X_add_number to unsigned long for printf.
1840 (clever_message): Remove unused variable scan.
1841 (md_assemble): Remove unused variable i.
1842 (tc_coff_sizemachdep): Remove unused function.
1843 * tc-h8300.h (tc_reloc_mangle): Declare.
1844
23f61eaa
ILT
1845Tue Jan 17 10:58:06 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1846
1847 * config/tc-mips.c (mips_4650): New static variable.
1848 (md_begin): Handle a cpu string of "4650". If mips_4650 was not
1849 initialized, set it to 0.
1850 (append_insn): Don't insert nops around HI and LO on a 4650.
1851 (mips_emit_delays): Likewise.
1852 (mips_ip): Use INSN_ISA mask to check ISA of instruction. Check
1853 for INSN_4650.
1854 (md_longopts): Add m4650 and no-m4650.
1855 (md_parse_option): Handle mips-cpu=4650. Handle -m4650 and
1856 -no-m4650.
1857 * doc/as.texinfo: Document new MIPS options.
1858
a11a8d55
SC
1859Sat Jan 14 23:48:13 1995 Steve Chamberlain <sac@jonny>
1860
1861 * config/tc-w65.c, config/tc-w65.h, config/w65.mt: Newfiles.
1862 * config/obj-coff.h: Cope with w65.
1863 * configure, configure.in: Recognize w65.
1864
3a762a0b
KR
1865Thu Jan 12 17:56:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1866
20323565
KR
1867 * app.c (do_scrub_next_char) [__GNUC__ && __OPTIMIZE__]: If `get'
1868 function is scrub_from_file, call scrub_from_file directly, and
1869 get gcc's inlining capability into the act.
1870
3a762a0b
KR
1871 * Makefile.in (VMS_OTHER_OBJS): Add ../libiberty/hex.o.
1872 (OBJS): Delete hex-value.o.
1873 (REAL_SOURCES): Delete hex-value.c.
1874 (hex-value.o): Delete dependencies.
1875 * hex-value.c: Deleted.
1876 * as.c (main): Call hex_init.
1877 * expr.c, config/tc-mips.c: Include libiberty.h. Replace
1878 hex_value array references with hex_* macros.
1879
c01ebe2a
KR
1880Wed Jan 11 17:51:38 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1881
3a762a0b
KR
1882 * config/tc-h8300.h (COFF_FLAGS): Don't define.
1883 * config/tc-h8500.h (COFF_FLAGS), config/tc-sh.h (COFF_FLAGS),
1884 config/tc-z8k.h (COFF_FLAGS): Ditto.
1885start-sanitize-rce
1886 * config/tc-rce.h (COFF_FLAGS): Ditto.
1887end-sanitize-rce
1888
1889 * config/obj-coff.c (KEEP_RELOC_INFO): Make sure it's always
1890 defined.
1891
c01ebe2a
KR
1892 * config/tc-m68k.c (m68k_ip, cases AOFF and AINDEX): Don't
1893 generate 68020 addressing modes for a 68000 processor.
1894 (md_estimate_size_before_relax, cases PCREL and PCLEA): Ditto.
1895
7a55f462
KR
1896Tue Jan 10 13:34:14 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1897
1898 * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
1899 specially with regard to fixups.
1900
aac4d5a7
KR
1901Mon Jan 9 16:22:28 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1902
483971bd
KR
1903 * config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to
1904 bfd_vma before subtracting.
1905
aac4d5a7
KR
1906 * config/obj-coff.c (size_section): Handle rs_space like rs_fill,
1907 but make sure fr_symbol is null.
1908 (fill_section): Ditto.
1909
1113140a
ILT
1910Sun Jan 8 16:14:19 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
1911
1912 * config/tc-mips.c (mips_ip): Fix handling of floating point
1913 values when GPOPT is not defined.
1914
2a6978af
KR
1915Fri Jan 6 16:59:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1916
1917 * gasp.c: Include string.h. Put config.h before other includes.
1918
71f9b3c0
KR
1919 * config/tc-alpha.c (alpha_ip): Delay calls to emit_add64 until
1920 after any remaining operands are also known to match.
1921
f949f7b8
KR
1922Fri Dec 30 18:21:41 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1923
1924 * listing.c (list_symbol_table): Build a format string based on
1925 the size of the value to be printed, as long as "unsigned long" is
1926 at least as wide, after handling the special case of 4-byte
1927 values.
1928
84951544
KR
1929 * Makefile.in (dependencies): Make $(OBJS) depend on as.h and
1930 everything it includes. Delete those files from per-file
1931 dependencies.
1932
cd3b81bd
KR
1933 * as.h (relax_substateT): Now defined to be unsigned int.
1934 (relax_stateT): Separate typedef from enum definition.
1935 (enum _relax_state): Reordered for better punctuation. Added new
1936 values rs_align_code and rs_space.
1937 (lineno, struct lineno_struct): Unused, deleted.
1938
1939 * as.h: No longer include assert.h.
1940 (as_assert): Declare.
1941 (assert): New definition, calls as_assert longer needed.
1942 (__PRETTY_FUNCTION__): Provide default for older versions of gcc.
1943 * messages.c (as_assert): New function.
1944 * gdbinit.in: Put a breakpoint there.
1945
1946 * read.c (s_space): Rewrite to handle general expressions.
1947 Generate rs_space frags for non-constant values.
1948 * write.c (cvt_frag_to_fill): Treat rs_align_code and rs_space
1949 like rs_align and rs_org. Verify that fr_offset is non-negative,
1950 and force frag type to rs_fill only after assertion checks.
1951 (relax_segment): Treat rs_align_code like rs_align. Treat
1952 rs_space like rs_org in the first switch; in the second, force the
1953 operand to a constant, and use it for the growth size.
1954
582d2a4d
JL
1955Wed Dec 28 20:57:37 1994 Jeff Law (law@snake.cs.utah.edu)
1956
1957 * config/tc-hppa.c (pa_subspace): For sections with the ZERO
1958 attribute, set the "bss" field in the appropriate seginfo structure.
1959
4a9c666e
KR
1960Wed Dec 28 15:01:01 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1961
1962 * subsegs.h: Include obstack.h.
1963
1964Tue Dec 27 18:16:04 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1965
1966 * as.h (struct frag): Enable align* components now.
1967
7e2283d4
KR
1968Tue Dec 20 14:56:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1969
87e48495
KR
1970 * frags.c (frag_init): Call obstack_begin on `frags'.
1971 * subsegs.c (subsegs_begin): Don't do it here.
1972 * as.c (main): Call frag_init before subsegs_begin.
1973
1974 * frags.c (frag_append_1_char): New function.
1975 * frags.h (frag_append_1_char): Declare it.
1976 (FRAG_APPEND_1_CHAR): Call it. Old definition is commented out
1977 for now.
1978
1979 * as.h (struct frag): Added (but commented out) new fields for
1980 tracking current alignment.
1981 (frag_now_fix): Changed macro to function declaration.
1982 * frags.c (frag_now_fix): Define function here.
1983 (frag_new): Use it instead of accessing `frags' directly.
1984 * frags.h (frags): Change comment to indicate it shouldn't be
1985 accessed directly.
1986 * subsegs.h (struct frchain): New field frch_obstack, intended to
1987 eventually replace global `frags' obstack.
1988 * subsegs.c (subseg_set_rest): Use frag_now_fix instead of
1989 accessing `frags' directly. Initialize fields of new frchainS
1990 explicitly instead of with memset.
1991 * config/obj-coff.c (obj_coff_ln) [!BFD_ASSEMBLER]: Use
1992 frag_now_fix.
1993 * config/tc-mips.c (s_loc), config/obj-vms.c
1994 (vms_resolve_symbol_redef), symbols.c (colon): Likewise.
1995
9ad5755f
KR
1996 * config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT
1997 instead of long and unsigned long.
1998 (md_apply_fix): Cast value before passing it.
1999
d675782a
KR
2000 * config/obj-aout.h, config/obj-coff.c, config/obj-elf.h,
2001 config/obj-som.h, config/tc-h8500.c, config/tc-hppa.c,
2002 config/tc-hppa.h, config/tc-sh.c, config/tc-z8k.c: Don't rely on
2003 use of ".." when including header files.
2004start-sanitize-rce
2005 * config/tc-rce.c: Ditto.
2006end-sanitize-rce
2007
2008 * config/obj-coff.c (fixup_segment): Reformat condition in an `if'
2009 statement.
2010
7e2283d4
KR
2011 * Makefile.in (SUBDIR_INCLUDES): Deleted.
2012
972b2401
ILT
2013Tue Dec 20 13:40:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2014
2015 * config/obj-coff.h: Include bfd/libcoff.h, not libcoff.h.
2016
2017start-sanitize-arc
2018Tue Dec 20 09:10:40 1994 Doug Evans <dje@canuck.cygnus.com>
2019
2020 * config/tc-arc.c: Delete lots of sparc pseudo-ops.
2021end-sanitize-arc
2022
847a01cd
ILT
2023Mon Dec 19 16:53:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2024
2025 * config/tc-mips.c (load_register): Rewrite to handle O_big 64 bit
2026 constants.
2027 (mips_ip): Accept O_big constants in case 'I'. Change case
2028 'i'/'j' to treat an O_big constant as an out of range value.
2029
60937ce7
JL
2030Mon Dec 19 14:15:07 1994 Jeff Law (law@snake.cs.utah.edu)
2031
b8f7596c
JL
2032 * config/tc-hppa.c (pa_subspace): Make sure SEC_HAS_CONTENTS is
2033 clear for a section with the "ZERO" attribute.
2034
60937ce7
JL
2035 * Reduce useless symbols for ELF in an attempt to make smaller
2036 objects and speed up the linker.
2037 * config/tc-hppa.c (struct call_info): Replace end_symbol field
2038 with a size field.
2039 (hppa_elf_mark_end_function): Delete unneeded function.
2040 (pa_build_unwind_subspace): For the 2nd unwind relocation, use
2041 the function symbol + function size instead of a special symbol
2042 for the end of the function.
69cb5925 2043 (process_exit): Compute the function size here. Don't call
60937ce7
JL
2044 hppa_elf_mark_end_of_function anymore.
2045 (pa_procend): Likewise.
2046 (hppa_fix_adjustable): Only reject 32bit relocations for SOM.
2047 (elf_hppa_final_processing): Simplify.
2048
88cc1324
DE
2049start-sanitize-arc
2050Mon Dec 19 12:57:09 1994 Doug Evans <dje@canuck.cygnus.com>
2051
2052 * config/tc-arc.c (arc_insert_operand): Change reg parm to pointer
2053 to table entry. All callers changed.
2054 (md_shortopts): New argument -mmult.
2055 (md_parse_option): Recognize it.
2056 (md_show_usage): Print it.
2057 (md_begin): If -mmult, say we have the new multiply and shift insns.
2058 (md_assemble): Fix reloc generation for 32 bit immediate values.
2059 Clean up modifier handling. Try next insn if fake operand says there's
2060 an error. Update to new syntax of insertion/extraction fns.
2061 Recognize predefined aux regs. Don't abort if insertion fn missing.
2062end-sanitize-arc
2063
703139a8
KR
2064Mon Dec 19 13:49:07 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2065
5cda0c7a
KR
2066 * configure.in: Recognize mips-sony-bsd and mips-dec-bsd, but
2067 reject other vendors until we can be sure we're consistent with
2068 bfd.
2069
703139a8
KR
2070 * config/obj-vms.c (Create_VMS_Object_File): Instead of formatting
2071 a buffer to pass to `error', just call `as_fatal' directly.
2072 (VMS_Psect_Spec): Ditto.
2073 (VMS_TBT_Module_Begin, VMS_TBT_Source_File, gen1,
2074 VMS_typedef_parse, VMS_LSYM_Parse, VMS_Emit_Globalvalues): Call
2075 as_tsktsk instead of printf.
2076 (VMS_TBT_Module_Begin, VMS_TBT_Line_PC_Correlation,
2077 VMS_TBT_Source_File, VMS_TBT_Source_Lines,
2078 VMS_Store_Repeated_Data, VMS_Check_For_Main): Use explicit
2079 integers rather than sizeof expressions using basic integer types,
2080 in case host and target aren't the same. Use memcpy or COPY_*
2081 macros instead of possibly unaligned word or longword assignment.
2082
2083 * config/obj-vms.h (OBJ_SYMFIELD_TYPE): New macro.
2084 * config/obj-vms.c (VMS_Store_PIC_Symbol_Reference,
2085 VMS_Check_For_Main, VMS_write_object_file): Use sy_obj instead of
2086 forcing sy_number to hold a pointer.
2087
b63defaa
KR
2088Fri Dec 16 14:40:16 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2089
d6905776
KR
2090 * config/tc-sh.c (md_begin): Don't fill in md_relax_table here.
2091 (md_relax_table): Use static initialization.
2092
091f3a62
KR
2093 * config/tc-h8300.c (parse_exp, get_operands, clever_message,
2094 md_assemble, tc_crawl_symbol_chain, md_undefined_symbol,
2095 tc_headers_hook, md_operand, md_number_to_chars): Don't use DEFUN.
2096
b63defaa
KR
2097 * Makefile.in (CHECKFLAGS): Don't pass AS_FOR_TARGET,
2098 CC_FOR_TARGET, OBJDUMP_FOR_TARGET, NM_FOR_TARGET; they're not
2099 used.
2100 (AS_FOR_TARGET, CC_FOR_TARGET, OBJDUMP, OBJDUMP_FOR_TARGET, NM,
2101 NM_FOR_TARGET): Don't define.
2102 (VMS_OTHER_OBJS): Add xmalloc.o and xexit.o from libiberty.
2103 (tooldir): Use exec_prefix, not libdir.
2104
719153bf
SS
2105Fri Dec 16 11:07:10 1994 Stan Shebs <shebs@andros.cygnus.com>
2106
254603ca
SS
2107 * config/obj-coff.h: Include libcoff.h, not ../bfd/libcoff.h.
2108
719153bf
SS
2109 * as.h: Include progress.h.
2110 * as.c (main): Call START_PROGRESS and END_PROGRESS.
2111 (main, perform_an_assembly_pass): Call PROGRESS.
2112
0141b6c2
ILT
2113Fri Dec 16 00:46:08 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
2114
2115 * write.c (adjust_reloc_syms): Use bfd_is_und_section and
2116 bfd_is_abs_section rather than comparing against &bfd_und_section
2117 and &bfd_abs_section.
2118
8b1f3552
JW
2119Thu Dec 15 15:27:14 1994 Jim Wilson <wilson@chestnut.cygnus.com>
2120
2121 * config/tc-sh.c (md_begin): Use a local variable when
2122 initializing md_relax_table to avoid errors about modifying a
2123 const data structure.
2124
7ac36f64
ILT
2125Tue Dec 13 15:42:27 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2126
2127 * config/tc-ppc.c (tc_gen_reloc): Remove OBJ_ELF hack which
2128 appears to no longer be needed.
2129
6baef6d2
ILT
2130Tue Dec 13 08:04:15 1994 Ian Lance Taylor <ian@cygnus.com>
2131
2132 * config/tc-mips.c (macro_build): Accept BFD_RELOC_PCREL* without
2133 requiring that the X_op_symbol be in the text_section.
2134 (macro): Change the test for a legel expression difference to
2135 correspond to changes in pseudo_set in read.c.
2136
bd869652
KR
2137Fri Dec 9 21:04:17 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2138
a55774a1
KR
2139 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Use
2140 bfd_install_relocation.
2141
3504635a
KR
2142 * ecoff.c (ecoff_set_gp_prolog_size): If there is no current
2143 routine, just return.
2144
bd869652
KR
2145 * config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode
2146 value from pattern instead of assuming jsr.
2147 * config/alpha-opcode.h (jmp): Add a "1,Bc" form.
2148
4181c985
KR
2149Thu Dec 8 17:48:25 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2150
b8f52750
KR
2151 * Makefile.in (NM_FOR_TARGET): Use ../binutils/nm.new, not just
2152 plain nm.
2153
4181c985
KR
2154 * configure.in (ns32k-pc532-mach*): Select correct emulation.
2155 (mips-sony-bsd*): Use ecoff.
c5745996 2156 (mips-*-gnu*): New target, using aout format, from Roland McGrath.
4181c985
KR
2157 * configure: Regenerated.
2158
6ea93cc9
DE
2159start-sanitize-arc
2160Tue Nov 29 18:12:22 1994 Doug Evans <dje@canuck.cygnus.com>
2161
2162 * configure.in (arc-*-elf*): Recognize.
2163 * configure: "regenerated".
4181c985 2164 * config/tc-arc.c, config/tc-arc.h, config/arc.mt: New files.
6ea93cc9
DE
2165end-sanitize-arc
2166
75af551f
KR
2167Tue Nov 29 13:58:10 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2168
d2a0c9f9
KR
2169 Use libiberty version of xmalloc:
2170 * Makefile.in (REAL_SOURCES): Delete xmalloc.c.
2171 (OBJS): Delete xmalloc.o.
2172 (xmalloc.o): Delete dependencies.
2173 * as.c (main): Call xmalloc_set_program_name once program name is
2174 known.
2175
75af551f
KR
2176 * config/tc-alpha.c (in_range_signed, in_range_unsigned): New
2177 routines, split from in_range.
2178 (in_range): Deleted. All calls changed to in_range_*signed.
2179 (create_lita_section): Macro deleted. Single use expanded in
2180 place.
2181 (alpha_ip): Handle `t' and `8' operand types.
2182 (md_apply_fix): Handle BFD_RELOC_12_PCREL. Print name of
2183 unhandled relocation types.
2184 * config/alpha-opcode.h: Added HALT and DRAINA. Disabled MOVI,
2185 since it doesn't work, and isn't supported by the native
2186 assembler.
2187
2188 * input-scrub.c: Change wording of a comment to avoid interference
2189 with Cygnus source-control tools.
2190
2191 * as.h (errno) [NEED_DECLARATION_ERRNO]: Declare.
2192
2193 * config/tc-m68k.c (init_table): List buscr and pcr control
2194 registers.
2195 (m68k_ip, case 'J'): Handle them.
2196
23c17fea
KR
2197 Delete signal handler code. It's been disabled since March 1993
2198 without complaints.
2199 * as.c: Don't include signal.h.
2200 (got_sig): Unused function deleted, declaration deleted.
2201 (SIGTY): Macro deleted.
2202 (main): Deleted disabled code for establishing signal handler.
2203
4181c985 2204start-sanitize-rce
75af551f
KR
2205 Tiemann should've noted something like this:
2206 * config/tc-rce.c, config/tc-rce.h: New files.
2207 * as.c (main) [TC_RCE]: Call dump_literals.
2208 * configure.in: Handle rce-*-aout.
2209 * configure: Regenerated.
4181c985 2210end-sanitize-rce
75af551f 2211
326fe1a3
DE
2212Mon Nov 28 11:37:35 1994 Doug Evans <dje@canuck.cygnus.com>
2213
2214 * app.c (do_scrub_next_char): Insert missing newline at end of file
2215 like warning says we do.
2216
e07f8926
JL
2217Mon Nov 28 00:11:15 1994 Jeff Law (law@snake.cs.utah.edu)
2218
2219 * config/tc-hppa.h (pa_check_eof): Declare new extern function.
2220 (tc_frob_file): Define to call pa_check_eof.
2221
2222 * config/tc-hppa.c (pa_check_current_space_and_subspace): New
2223 function to verify the current space and subspace are reasonable.
2224 Call for the appropriate pseudo-ops and before instruction parsing.
2225 (pa_check_eof): New function to verify enter/exit and proc/procend
2226 pairs match at EOF.
2227 (pa_code): Simplify.
2228
2229 * config/obj-som.c: Delete #if 0 code.
2230
3f67e000
SC
2231Wed Nov 23 19:36:09 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2232
3f81f3cf
MM
2233 * config/obj-coff.h (TARGET_FORMAT): Select between coff-shl and
2234 coff-sh.
3f67e000
SC
2235 * config/sh.mh (TARG_CPU_DEPENDENTS): Get it right.
2236 * config/tc-sh.c (little): New function.
2237 (md_parse_option): Notice new option.
2238 (build_relax, build_Mytes, md_atof, md_convert_frag, md_apply_fix):
69cb5925 2239 Cope with little endian data.
3f67e000
SC
2240 * config/tc-sh.h (COFF_MAGIC, LISTING_HEADER): Endian dependent.
2241
32c7d5d8
JL
2242Wed Nov 23 10:54:38 1994 Jeff Law (law@snake.cs.utah.edu)
2243
2244 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Revert last
2245 change. The real bug was in bfd/elfcode.h and has been fixed.
2246
740e5428
JL
2247Tue Nov 22 23:31:20 1994 Jeff Law (law@snake.cs.utah.edu)
2248
2249 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Add section->vma
2250 to the relocation's offset.
2251
aa30c7ee
SC
2252Tue Nov 22 14:37:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2253
2254 * Makefile.in (INSTALL_XFORM): Fix typo.
2255
3a443b1e
C
2256Tue Nov 22 10:23:25 1994 J.T. Conklin <jtc@rtl.cygnus.com>
2257
2258 * config/tc-alpha.c (s_alpha_set): Ignore the .set (no)move and
2259 .set (no)volatile directives.
2260
e67b3aa3
JL
2261Tue Nov 15 21:44:13 1994 Jeff Law (law@snake.cs.utah.edu)
2262
3a443b1e
C
2263 * config/tc-hppa.c (pa_subspace): Make sure to always reset
2264 current_subspace.
2265 (pa_text, pa_data): Likewise.
2266
e67b3aa3
JL
2267 * config/tc-hppa.c (pa_align): New function. Aligns the current
2268 offset within the current subspace along with updating the
2269 alignment of the subspace itself.
2270 (pa_subspace): Default alignment to one byte rathern than zero
2271 bytes to avoid setting alignment to log2(0).
2272 (md_pseudo_table): Use pa_alignment for .align.
2273
8de6b5f8
KR
2274Tue Nov 15 15:24:45 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2275
2276 * messages.c (as_fatal): Always put a space after "fatal error:"
2277 when printing message.
2278
1a9a95bb
JL
2279Tue Nov 15 11:10:43 1994 Jeff Law (law@snake.cs.utah.edu)
2280
2281 * config/tc-hppa.h (obj_frob_symbol): Delete.
2282 (tc_frob_symbol): Make definition conditional on OBJ_SOM or
2283 OBJ_ELF. For ELF subtract out symbol->section->vma for non common
2284 symbols.
2285
757d4129
KR
2286Wed Nov 9 14:53:03 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2287
2288 * config/te-delta.h: New file, derived from te-sysv32.h.
2289
642b6186
ILT
2290Wed Nov 9 11:52:44 1994 Ian Lance Taylor (ian@cygnus.com)
2291
2292 * config/tc-ppc.c (ppc_bf): Always set coff_line_base.
2293
f4c01c95
KR
2294Mon Nov 7 01:58:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2295
642b6186
ILT
2296 * Makefile.in (VERSION): Bump to 2.5.3.
2297
3e7acf98
KR
2298 * configure.in: Compare generic cpu name against "sparc", not
2299 "sparc*", since sparc variants should be changed to "sparc".
2300 * configure: Regenerated with autoconf 2.1.
2301
f4c01c95
KR
2302 * config/tc-a29k.c (octal, toHex): Variables deleted.
2303 (isoctal): Macro deleted.
2304 (md_begin): Don't initialize them.
2305 (machine_ip, case 'P'/'A'): For absolute operand, generate an
2306 error message if it's out of range.
2307 (md_apply_fix, case RELOC_JUMPTARG): Check range for PC-relative
2308 jumps.
2309 (md_apply_fix): Delete code inside "#if 0".
2310
5b162d37
KR
2311Thu Nov 3 20:20:40 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2312
b4123234
KR
2313 * config/go32.mh: Unused file deleted.
2314
5b162d37
KR
2315 * read.c (get_absolute_expression): Indicate that the error may
2316 merely be that the expression can't currently be reduced.
2317
0cb42d6f
C
2318Thu Nov 3 16:09:59 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2319
2320 * config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as
2321 "a.out-m68k-netbsd".
2322 * config/tc-sparc.h (TARGET_FORMAT): If TE_NetBSD define as
2323 "a.out-sparc-netbsd".
2324
2325 * config/te-nbsd.h: New file, NetBSD target emulation
2326 * config/te-netbsd.h: Removed.
69cb5925 2327 * configure.in (i[345]86-*-netbsd*,m68*-*-netbsd*,sparc*-*-netbsd*):
0cb42d6f
C
2328 Set bfd_gas. Use nbsd emulation.
2329
f2889110
KR
2330Thu Nov 3 17:44:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2331
2332 Changes from net 2.5.2 release branch:
2333
2334 * configure.in: Put AC_DEFINE(sparcv9) on its own line, so that
2335 the shell variable settings associated with it are permanent. For
2336 CPUs requiring bfd_gas=yes, select it based on CPU only, not
2337 individual target names. Handle m68k-hp-hpux*, not just -hpux.
2338
2339 * config/tc-z8k.c (tc_coff_symbol_emit_hook): Add dummy argument
2340 to match prototype in obj-coff.h.
2341
2342 * configure.in: Skip tests for defining WANT_FOPEN_BIN and
2343 IBM_COMPILER_SUX.
2344 * acconfig.h: Deleted them.
2345 * configure, conf.in: Rebuild with autoconf 2.0.
2346 * config/go32.cfg, config/vms-conf.h: Updated.
2347
2348 * config/tc-m68k.c (md_apply_fix_2, md_convert_frag_1): Always use
2349 IBM_COMPILER_SUX version of code, with comments indicating why.
2350
2351 * listing.c (file_info): Use text mode when opening file for read.
2352 Use "r" directly, no macro.
2353 * input-file.c (input_file_open): Don't use FOPEN_RT, just use
2354 "r".
2355 * read.c (s_include): Ditto.
2356 * output-file.c (output_file_create): Try both "wb" and "w", don't
2357 bother with FOPEN_* macros.
2358 * as.h: Don't include fopen-*.h.
2359
2360 * config/alpha-opcode.h: Make "ret" with no operands equivalent to
2361 "ret zero,(ra)", to match OSF1 and to be consistent with both
2362 one-operand forms.
2363
2364 Patches from DJ Delorie:
2365 * as.h (alloca): undef alloca before defining it just in case
2366 * config/go32.cfg: new file for autoconf values
2367 * config/te-go32.h: new file
2368 * configure.bat: new for autoconf
2369
2370 * config/tc-i386.c (md_assemble): Fix typo in GOTPC check; had =
2371 for ==.
2372
2373 * configure.in: If target_frag doesn't exist, use /dev/null.
2374
2375 * as.c (parse_args): For non-VMS systems, re-add `v' to
2376 std_shortopts. Add "verbose" to list of long options.
2377
2378 * write.c (adjust_reloc_syms): When generating an absolute section
2379 symbol as a placeholder, don't mark it as used in a relocation
2380 entry, here.
2381
2382 * Makefile.in (comparison): Compare using makefile code from gcc,
2383 stripped down to discard subdir stuff and adapted to give a
2384 non-zero exit status if either file differs.
2385
a2c49209
ILT
2386Thu Nov 3 15:43:02 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2387
2388 * config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments for
2389 NO_PIC case.
2390
2622a6c2 2391Tue Nov 1 16:10:59 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
da15a93e
ILT
2392
2393 * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit
2394 switching to the readonly data section.
2622a6c2
ILT
2395
2396 * ecoff.c (ecoff_directive_type): Fix warning message.
2397
ec11c09c
JL
2398Sun Oct 30 00:57:35 1994 Jeff Law (law@snake.cs.utah.edu)
2399
2400 * config/tc-hppa.c (pa_proc): Delete disabled code to put each
2401 proc in its own subspace, we're not going to use it.
2402
4bb0cc41
ILT
2403Tue Oct 25 14:44:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2404
94b68f04
ILT
2405 * config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD in
2406 .rdata does not become a variant frag.
2407
4bb0cc41
ILT
2408 * config/tc-mips.c (mips_cpu): Initialize to -1.
2409 (md_begin): Don't mips_cpu if it was already set.
2410 (md_parse_option): For -mipsN, don't set mips_cpu if it was
2411 already set. For -mcpu=, just set mips_cpu, not mips_isa.
2412
9da4c5d1
ILT
2413Fri Oct 21 20:42:29 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2414
2415 * config/tc-mips.c (md_pseudo_table): If OBJ_ELF, handle .section.
2416 (s_elf_section): New static function.
2417 * ecoff.c (ecoff_build_symbols): Don't abort if we don't recognize
2418 the section when setting the storage class; default to sc_Data.
2419
e443a021
JL
2420Thu Oct 20 00:43:38 1994 Jeff Law (law@snake.cs.utah.edu)
2421
2422 * config/tc-hppa.c (md_apply_fix): Set new_val to 8 for all
2423 fixups to branch instructions (not just pc-relative ones) which
2424 will generate SOM relocations.
2425
030915dc
ILT
2426Wed Oct 19 13:41:56 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2427
2428 * config/tc-a29k.c: Include ctype.h with angle brackets.
2429 (define_some_regs): Add new special register names defined on the
2430 29040.
2431 (parse_operand): Add argument opt. If non-zero, don't warn about
2432 a missing operand.
2433 (machine_ip): If handling argument type 'I', pass opt as non-zero
2434 to parse_operand. Handle new optional operand type 'I'.
2435 (md_undefined_symbol): Handle special register names (srNN).
2436
683f4743
ILT
2437Tue Oct 18 00:45:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2438
2439 * write.c (renumber_sections): New static BFD_ASSEMBLER function.
2440 (write_object_file): Call it after removing gas created sections.
2441
f10a96cb
ILT
2442Mon Oct 17 18:06:05 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2443
62d39689
ILT
2444 * symbols.c (symbol_create): Use udata.p, not just udata.
2445 * config/obj-elf.c (obj_ecoff_set_ext): Likewise.
2446 (elf_get_extr): Likewise.
2447
f10a96cb
ILT
2448 * read.c (read_a_source_file): The second argument to as_where is
2449 unsigned int *, not int *.
2450
2451Mon Oct 17 02:26:32 1994 Jeff Law (law@snake.cs.utah.edu)
2452
2453 * config/tc-hppa.c: Eliminate all uses of fx_addnumber.
2454 (tc_gen_reloc): Simplify. It's no longer necessary to set a
2455 reloc's addend field to zero for function symbols.
2456 (md_apply_fix): Simplify. For fixups which will require a SOM
2457 reloc, just clear out the necessary bits in the output file.
2458
2d928291
KR
2459Fri Oct 14 19:06:46 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2460
2461 * Makefile.in (BISON): Use bison -y, not bison.
2462
2463Thu Oct 13 19:22:54 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2464
2465 * Makefile.in (VERSION): Updated to 2.5.
2466 (clean-here): Delete stamp-mk.com.
2467 (distclean): Delete .gdbinit.
2468 * Version 2.5 released.
2469
ba49e48d
KR
2470Wed Oct 12 20:30:51 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2471
2472 * config/te-nbsd532.h: Renamed from te-netbsd532.h.
2473 * configure.in, configure: Adjusted.
2474
4992dbc9
C
2475Wed Oct 12 16:33:38 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2476
2477 * config/cplus-dem.c: Removed. It isn't used. Even if it was,
2478 it's better to use the one in libiberty.
2479
2cc0357f
KR
2480Wed Oct 12 18:48:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2481
2482 * symbols.c (resolve_symbol_value, case O_symbol): Undo last
2483 change; it breaks the rs6000 support, and doesn't seem to be
2484 needed.
2485
eab55c1c
C
2486Wed Oct 12 11:56:50 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2487
2488 * config/tc-i386.h,te-netbsd532.h (TARGET_FORMAT): Changed to
2489 a.out-<arch>-netbsd to match corresponding changes in BFD.
2490
f0b556a2
ILT
2491Wed Oct 12 11:06:11 1994 Ian Lance Taylor (ian@cygnus.com)
2492
2493 * config/tc-ppc.c (ppc_fix_adjustable): Resolve symbol values
2494 rather than explicitly adding the frag address.
2495 * config/obj-coff.c (coff_frob_symbol): Add a zero entry to mark
2496 the end of the line numbers; this replaces the zero entry which
2497 used to be added by coff_add_linesym, removed Oct 7.
2498 (coff_adjust_section_syms): Ignore sections with no seginfo.
2499
3256c4b5
KR
2500Wed Oct 12 01:41:37 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2501
2502 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Create a
2503 "stage" symlink to the appropriate stage* directory, and use it
2504 instead in the -B options.
2505 (comparison): Revert yesterday's change.
2506
15dc8a20
KR
2507Tue Oct 11 16:48:11 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2508
2509 * config/tc-sparc.c (tc_gen_reloc): For non-a.out relocations, if
2510 pc-relative, use fx_offset only, ignore address of relocation.
2511
c8caa6c5
ILT
2512Tue Oct 11 15:24:00 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2513
2514 * config/tc-mips.c (mips_ip): Don't use S_IS_LOCAL when checking
2515 for an embedded PIC switch expression, since the definition of
2516 S_IS_LOCAL was changed.
2517
6d60424f
KR
2518Tue Oct 11 15:05:11 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2519
2520 * Makefile.in (comparison): When comparing as.new or gasp.new, try
2521 running the binary through sed to avoid differences due to
2522 "stage1" or "stage2" having been written into the binary.
2523
15a90f75
KR
2524Sat Oct 8 01:48:04 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2525
2526 ELF symbol size handling, based on code from Eric Youngdale:
2527 * config/obj-elf.h (OBJ_SYMFIELD_TYPE): New macro. Adds an
2528 expression pointer to the symbol structure, used for `size'
2529 expressions that couldn't be reduced to constants when initially
2530 processed.
2531 (elf_frob_symbol): Declare.
2532 (obj_frob_symbol): Call elf_frob_symbol always, rather than
2533 ecoff_frob_symbol only if ECOFF_DEBUGGING defined.
2534 * config/obj-elf.c (obj_symbol_new_hook): Deleted unused code.
2535 Clear sy_obj field.
2536 (obj_elf_size): Deleted unused code. If size is non-reducible
2537 expression, allocate some storage for the sy_obj field and copy
2538 the expression.
2539 (elf_frob_symbol): New function. Computes sizes, calls
2540 ecoff_frob_symbol if appropriate.
2541
2542 * write.c (fixup_segment): For i386 elf and coff (for now), don't
2543 add in value of symbol from another defined section of the file.
2544
ecee4027
KR
2545Fri Oct 7 17:54:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2546
2547 * config/tc-m88k.h (TC_KEEP_FX_OFFSET): Define.
2548 * config/obj-coff.c (do_relocs_for): Test only TC_KEEP_FX_OFFSET,
2549 rather than both it and TC_M88K.
2550 (coff_adjust_section_syms): New function.
2551 (coff_frob_section): For non-empty sections, create aux entry for
2552 the section symbol, indicating the size.
2553 (n_line_nos): New variable.
2554 (add_lineno): Increment it.
2555 (coff_add_linesym): Increment n_line_nos, don't call add_lineno.
2556 (coff_frob_file): New function; map coff_adjust_section_syms over
2557 sections.
2558 (obj_coff_line): Only reset line_base for .bf symbols.
2559 * config/obj-coff.h (coff_adjust_section_syms, coff_frob_file):
2560 Declare.
2561 (obj_frob_file): New macro.
2562
2563 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Renamed from
2564 obj_frob_forward_symbol, and rewritten for new parameter list.
2565
2566 Mon Oct 3 21:02:38 1994 Pat Rankin (rankin@eql.caltech.edu)
2567
2568 * config/obj-vms.h (S_IS_LOCAL): fix obsolete flagseen[] reference.
2569
2570Wed Oct 5 11:49:26 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2571
2572 * config/obj-ecoff.c (obj_pseudo_table): Accept .esize and .etype
2573 as synonyms for .size and .type.
2574
b2d7b325
ILT
2575Wed Oct 5 00:08:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2576
2577 * config/obj-coff.c (coff_frob_section): Remove assert about
2578 section alignment.
2579 * config/tc-sparc.c (md_section_align): Use section alignment, not
2580 xvec align_power_min field.
2581
dc87e0ce
KR
2582Fri Sep 30 19:05:20 1994 Pat Rankin (rankin@eql.caltech.edu)
2583
2584 * vmsconf.sh (make-gas.com): handle DCL verification to enable
2585 sensible feedback to the user while gas is being built.
2586
76a390e2
KR
2587Fri Sep 30 16:23:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2588
13a336c4
KR
2589 * Makefile.in (DISTSTUFF): New variable, listing only make-gas.com
2590 for now.
2591 (diststuff): New target; builds DISTSTUFF.
2592 (realclean): Separate target, depend on clean and distclean, then
2593 delete DISTSTUFF.
dc87e0ce
KR
2594 * make-gas.com: Deleted.
2595
76a390e2
KR
2596 * config/tc-i386.c (i386_validate_fix) [BFD_ASSEMBLER]: New
2597 function. Converts reloc for "foo-GOT" to BFD_RELOC_386_GOTOFF
2598 reloc for "foo".
2599 (i386_operand): Don't look up section symbol for
2600 undefined_section.
2601 (reloc): Always permit return of 8- and 16-bit relocation types.
2602 Add a space after "pc-relative" in the error message.
2603 (tc_i386_fix_adjustable) [BFD_ASSEMBLER]: Reject
2604 BFD_RELOC_386_GOTOFF relocs.
2605 (i386_operand): For any GOTOFF reloc, convert it to a BFD_RELOC_32
2606 with a "foo-GOT" value.
2607 * config/tc-i386.h (i386_validate_fix): Declare it.
2608 (TC_VALIDATE_FIX): New macro -- call it.
2609 (NOP_OPCODE): Cast to `char' to avoid compiler warnings.
2610
2611 * as.h: If __STDC__ is not defined and varargs.h is available, use
2612 it rather than stdarg.h.
2613
2614 * write.h (struct fix): Added new bitfield fx_plt, for fixups
2615 referring to PLT entries.
2616 * write.c (fix_new_internal): Initialize fx_plt to zero.
2617 (adjust_reloc_syms): Re-fetch `sym' after top of reduction loop.
2618 Don't adjust fx_offset by frag address, since S_GET_VALUE now
2619 includes the frag address.
2620 (fixup_segment): Changed local var PCREL to type int, added PLT.
2621 If PC-relative fixup refers to a PLT entry for a symbol in the
2622 current section, don't reduce it.
2623
2624 * write.c (adjust_reloc_syms): Exit loop through a label. If
2625 DEBUG5 is defined, print out each fixup before and after
2626 processing.
2627 (fixup_segment): If DEBUG5 is defined, print out each fixup before
2628 and after processing.
2629 (print_fixup): Added prototype. Show address on first line. Show
2630 fx_offset and fx_subsy. [!BFD_ASSEMBLER]: Only show fx_r_type if
2631 NEED_FX_R_TYPE is defined.
2632
2633 * symbols.c (print_symbol_value_1): Check S_IS_LOCAL, S_IS_EXTERN,
2634 S_IS_DEBUG, S_IS_DEFINED also.
2635
9dc6c00f
KR
2636Thu Sep 29 18:57:06 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2637
10ff87e9
KR
2638 * Makefile.in (all): Depend on .gdbinit.
2639 (.gdbinit): Rebuild from gdbinit.in by running config.status.
2640
2641 * gdbinit.in: Define new function "pf". Fix doc on "pe" and "ps".
2642
9dc6c00f
KR
2643 * write.c (print_fixup): Print source location on first line.
2644 Show fx_r_type and fx_addsy fields.
2645
648acaa0
KR
2646Wed Sep 28 14:56:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2647
b8480abc
KR
2648 * configure.in: Set bfd_gas for all sparc targets in one place,
2649 instead of separately for each. Correctly handle user-supplied
2650 "--enable-bfd-gas" option.
2651
2652 * gdbinit.in: Move "break abort" to end, in case gdb complains.
2653
2654 * as.h (PRINTF_WHERE_LIKE, PRINT_LIKE) [USE_STDARG, !__GNUC__]:
2655 Use PARAMS macro.
2656
2657 * symbols.c (resolve_symbol_value, case O_symbol): Don't do any
2658 processing if add_symbol is undefined or in expr_section.
2659 (resolve_symbol_value, case O_add): For symbol plus
2660 constant-valued symbol, convert to O_symbol and re-reduce.
2661 (S_GET_VALUE): If symbol needs resolving, resolve it.
2662 (indent_level): No longer static.
2663 (print_symbol_value_1): Don't print frag address if it matches
2664 zero_address_frag. Don't print "resolving" if already resolved.
2665 Print segment name. Don't call print_expr_1 on an undefined
2666 symbol.
2667 (print_expr_1): Fix whitespace before printing X_add_number.
2668
648acaa0
KR
2669 * expr.c (make_expr_symbol): No longer static. Use symbol_create,
2670 not symbol_new, for symbols holding expression values.
2671 * expr.h (make_expr_symbol): Move declaration here.
9ff0f5ef
KR
2672 * write.c (fix_new_exp): Handle O_add by creating an
2673 expression-valued symbol, and calling fix_new_exp recursively.
2674 (adjust_reloc_syms): If a fixup's symbol value is a sum of an
2675 undefined symbol and a constant, fold the constant into the fixup,
2676 and refer to the undefined symbol directly. Then process the
2677 fixup again from scratch.
2678 (write_object_file): Before calling adjust_reloc_syms, make a pass
2679 through the symbol list trying to resolve values.
2680
2681 * write.c (print_fixup): New routine, for debugging.
2682 (write_relocs): Call bfd_install_relocation. Deleted various
2683 hacks for working around problems with bfd_perform_relocation.
2684
2685 * Makefile.in (VERSION): Update to 2.4.90.
648acaa0 2686
7b777690
ILT
2687Wed Sep 28 11:50:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2688
620a590e
ILT
2689 * Makefile.in (gasp.o): Depends upon config.h.
2690
3f42c69e
ILT
2691 * config/tc-mips.c: Include subsegs.h.
2692 (md_apply_fix): If an unconditional b or bal overflows, and we are
2693 not assembling PIC code, replace it with a j or jal.
2694
7b777690
ILT
2695 * config/tc-mips.c (md_apply_fix): Correct branch overflow test.
2696 Use as_bad_where and as_warn_where rather than as_bad and as_warn.
2697
2698Mon Sep 26 17:15:59 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2699
2700 * write.c (write_relocs): Add file name and line number to
2701 as_fatal calls. Handle bfd_reloc_overflow case specifically when
2702 RELOC_EXPANSION_POSSIBLE.
2703
2704Fri Sep 23 16:11:28 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2705
2706 * as.h (USE_STDARG, USE_VARARGS): Define one or neither of these
2707 here. Use them for deciding which PRINTF*LIKE macro definitions
2708 to use.
2709 * messages.c: Use them, instead of NO_STDARG, NO_VARARGS.
2710 [!USE_STDARG && !USE_VARARGS] (va_alist, va_dcl, ...): Provide
2711 default definitions matching what we were doing before.
2712 (as_tsktsk): Remove the non-stdarg, non-varargs version, and
2713 always use the varargs form if not using stdarg. It's safe to
2714 always use vfprintf, because libiberty will provide it if the
2715 native system doesn't. Also, always make format be const.
2716 (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
2717
144659ab
ILT
2718Fri Sep 23 14:42:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2719
2720 * config/tc-mips.c (load_register): Always use addiu when adding a
2721 constant to $zero--no need to use daddiu.
2722 (macro): Hack the -mips3 overflow tests to not fail when offsetT
2723 is only 32 bits.
2724
2725 * symbols.h (copy_symbol_attributes): Declare.
2726
2727Thu Sep 22 21:58:24 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2728
2729 * listing.c: Bugfixes based in part on patches from Paul
2730 Kranenburg.
2731 (listing_newline): Check filename as well as line number when
2732 deciding whether to record it.
2733 (list_symbol_table) [S_IS_REGISTER]: Check that S_IS_REGISTER is
2734 false (if defined) as well as checking for reg_section.
2735 (listing_listing): Iterate fetching lines while line number is too
2736 low, and we haven't run off the end of the input file.
2737
2738 * config/vms-conf.h: Changed HAVE_DELETE to HAVE_REMOVE.
2739
bdaa198a
KH
2740Thu Sep 22 13:39:10 1994 Kung Hsu (kung@x1.cygnus.com)
2741
2742 * ecoff.c (ecoff_generate_asm_lineno): check if
2743 current_stabs_filename is NULL before strcmp.
cacd15c4 2744 * read.c (read_a_source_file): fix a bug in generate_asm_lineno
bdaa198a
KH
2745 checking.
2746
8068b96a
KR
2747Wed Sep 21 18:17:35 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2748
2749 * config/ho-*.h: Now-unused files deleted.
2750
2751 * symbols.c (copy_symbol_attributes): New function. Copies BFD
2752 symbol flags and calls OBJ_COPY_SYMBOL_ATTRIBUTES.
2753 (resolve_symbol_value, case O_symbol): Call it, if X_add_number is
2754 zero. Don't call obj_frob_forward_symbol.
2755 * read.c (pseudo_set): Call copy_symbol_attributes, but only if
2756 X_add_number is zero.
2757 * config/obj-elf.h (obj_frob_forward_symbol): Deleted.
2758
144659ab
ILT
2759 * config/tc-i960.c: Lots of whitespace, comment reformatting,
2760 using GNU indent.
2761 (strchr): Don't declare.
2762 [BFD_ASSEMBLER]: Don't compile md_convert_frag,
2763 md_estimate_size_before_relax, md_ri_to_chars,
2764 md_create_short_jump, md_create_long_jump.
2765 (brtab_emit): Use data_section, not SEG_DATA.
2766
cacd15c4 2767 Mon Sep 19 17:14:44 1994 Pat Rankin (rankin@eql.caltech.edu)
8068b96a
KR
2768
2769 * config/vms-conf.h: new file, manually derived from conf.in.
2770 * config-gas.com: use it, and eliminate obsolete "host.h".
2771
3af9783a
ILT
2772Wed Sep 21 11:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2773
87bbf920
ILT
2774 * config/tc-ppc.c (ppc_current_block): New static variable.
2775 (ppc_stabx): Set sy_tc.within of a C_STSYM symbol to
2776 ppc_current_block. Don't move around any stab symbol, just those
2777 for common symbols.
2778 (ppc_bs): Set ppc_current_block.
2779 (ppc_es): Clear ppc_current_block.
2780 (ppc_frob_symbol): Set the value of a C_STSYM symbol to the offset
2781 from the csect of the enclosing block.
2782
3af9783a
ILT
2783 * config/tc-mips.c (insns_since_cache_access): Remove.
2784 (append_insn): Remove setting of insns_since_cache_access, and
2785 special 4600 handling; it turns out not to be required.
2786
e8d4d475
ILT
2787Tue Sep 20 16:13:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2788
2789 * config/tc-mips.c (md_shortopts): Remove E.
2790 (md_longopts): Add EB and EL.
2791 (md_parse_option): Handle -EB and -EL as separate options, rather
2792 than as a single -E option with an argument.
2793
8268e3ec
JL
2794Mon Sep 19 12:42:05 1994 Jeff Law (law@snake.cs.utah.edu)
2795
2796 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
2797 involving global symbols too.
2798
eb3028aa
KR
2799Mon Sep 19 12:12:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2800
2801 * as.h: Test NEED_DECLARATION_*, not NEED_*_DECLARATION.
2802
2803 * configure.in: Test for remove, not delete. Fix cross-assembler
2804 test.
2805 * as.h: Test HAVE_REMOVE, not HAVE_DELETE; define unlink to
2806 remove, not delete.
2807
35e70f58
KR
2808 * read.c (pseudo_set, case O_symbol): If
2809 OBJ_COPY_SYMBOL_ATTRIBUTES is defined, invoke it.
2810 [BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too.
2811 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define.
2812
2813 Wed Aug 10 19:15:30 1994 Pat Rankin (rankin@eql.caltech.edu)
2814
2815 * config/obj-vms.h (DSG_S_C_UBITU, DST_K_VFLAGS_DSC, DST_K_TS_ATOM,
2816 many others): new macros; values obtained from "DSTRECRDS.SDL".
2817 * config/obj-vms.h (various): use them.
2818 (USE_BITSTRING_DESCRIPTOR): new macro, for selecting bitfield
2819 representation (only enum bitfields can avoid being bitstrings).
2820 (bitfield_suffix, setup_basic_type): new routines.
2821 (VMS_typedef_parse): use them. Now recognize bitfields of all
2822 integral types, not just type `int'. Caveat: the representation
2823 used for bitfields still does not work for objects placed in
2824 registers, and gcc's optimizer sometimes puts small structs there.
2825
2826 Tue Jun 14 17:31:44 1994 Pat Rankin (rankin@eql.caltech.edu)
2827
2828 * read.c (s_text) [#if OBJ_VMS]: clear the IN_DEFAULT_SECTION
2829 bit from const_flag.
2830 * config/obj-vms.h (IN_DEFAULT_SECTION): define this macro.
2831 (tc_frob_label): define this to call vms_check_for_special_label,
2832 and declare the latter.
2833 * config/obj-vms.c (vax_g_doubles): declare this file-scope
2834 variable.
2835 (const_flag): initialize to IN_DEFAULT_SECTION instead of 0.
2836 (vms_check_for_special_label): new routine (tc_frob_label).
2837 (VMS_TBT_Routine_End): don't bother checking for `gcc_compiled.'
2838 and `gcc2_compiled.' labels; they won't reach here any more.
2839 (VMS_typedef_parse) [case 'r']: for types `double' and `complex
2840 double', use `vax_g_doubles' flag to select type of double.
2841 (VMS_write_object_file) [traceback setup]: don't pass symbols
2842 with the IN_DEFAULT_SECTION attribute to the TBT_Routine_Begin
2843 and TBT_Routine_End functions.
2844
2845 Mon Jun 6 20:52:20 1994 Pat Rankin (rankin@eql.caltech.edu)
2846
2847 * config/obj-vms.c (VMS_TBT_Routine_End): cache the result of
2848 S_GET_VALUE() to avoid many repeated function calls.
2849 (VMS_Check_For_Main) [#if HACK_DEC_C_STARTUP]: capitalize
2850 _C$MAIN_ARGS in advance, in case -h3 (leave symbol name as-is)
2851 gets requested. [All the HACK_DEC_C_STARTUP code appears to
2852 be obsolete; gcc does it automatically for vms target. It's
2853 also misnamed, because it is for the "VAX C" run-time library,
2854 not the newer "DEC C" one which has much different startup code.]
2855 {various}: use `S_SET_xxx(symbol,new_value)' rather than
2856 `S_GET_xxx(symbol) = new_value'.
2857
d1578de3
ILT
2858Mon Sep 19 12:05:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2859
2860 * config/obj-coff.c (c_dot_file_symbol): Use bfd_abs_section_ptr,
2861 not &bfd_abs_section.
2862
e3683042
ILT
2863Thu Sep 15 18:36:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2864
2865 * expr.c (clean_up_expression): Use addressT, not bfd_vma.
2866
75c28b49
JL
2867Tue Sep 13 20:05:47 1994 Jeff Law (law@snake.cs.utah.edu)
2868
fcacfef6
JL
2869 * expr.c (expr): Don't reduce the difference of two symbols in the
2870 same frag if the symbols are not in normal sections.
2871
75c28b49
JL
2872 * config/obj-som.h (S_SET_OTHER, S_SET_TYPE): Delete a.out crud.
2873 (S_SET_DESC, S_GET_OTHER, S_GET_TYPE, S_GET_DESC): Likewise.
2874 (obj_attach_unwind_info): Do not define. Not needed anymore.
2875 * config/tc-hppa.c: Delete whitespace at EOL.
2876 (struct hppa_fix_struct): Delete fx_unwind field and all references.
2877 (fix_new_hppa): Last arg is now a pointer to an int. Do not
2878 call obj_attach_unwind_info anymore. For SOM R_ENTRY and R_EXIT
2879 fixups, store 32bits of unwind information in the fx_addnumber
2880 field of the fixup.
2881 (md_assemble, pa_entry, process_exit, pa_procend): For SOM R_ENTRY
2882 and R_EXIT fixups, pass a NULL pointer to fix_new_hppa, and a
69cb5925 2883 pointer to 32 bits of unwind info.
75c28b49
JL
2884 (tc_gen_reloc): For SOM R_ENTRY and R_EXIT fixups, set the symbol
2885 pointer to the dummy symbol; set the addend field to fx_addnumber.
2886 (pa_comm, pa_equ, pa_type_args, pa_import): Use bfd_XXX_section_ptr
2887 rather than &bfd_XXX_section.
2888
26f4447a
KR
2889Tue Sep 13 21:15:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2890
d7152d07
KR
2891 * config/tc-i386.c (md_apply_fix_1): For GOTPC relocs, decrement
2892 value by one; discard adjustments previously being made. From
2893 Eric Youngdale.
2894
26f4447a
KR
2895 VMS- and Vax-related changes from Pat Rankin:
2896 * Makefile.in (VMS_OTHER_OBJS): add concat, getopt, and getopt1.
2897 * vmsconf.sh: no longer have make-gas.com echo text about needing
2898 to modify the gcc-vms driver when intending to use with gcc 1.x.
2899 * as.c (parse_options): suppress 'v' from std_short_options and
2900 eliminate VMS-specific conditional initialization;
2901 [default case]: check for '-v' if md_parse_options doesn't recognize
2902 an option;
2903 [default case, #if VMS]: check for filename argument when '-v' seen;
2904 [case 'v']: delete.
2905 * config/tc-vax.c (md_assemble): don't rely on `this_add_number'
2906 for O_big literal operands (double floats and long long ints);
2907 [VMS, md_shortopts]: add second colon after 'v';
2908 (md_parse_options) [VMS, case 'v']: check for argument, so
2909 caller can handle `-v' w/o arg.
2910
a9898563
SC
2911Tue Sep 13 16:45:08 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2912
2913 * config/obj-coff.c (do_relocs_for): If TC_KEEP_FX_OFFSET
2914 is defined, put the tx_offset into the r_offset.
2915 * config/tc-sh.c (line_comment_chars): Add #
2916 (tc_reloc_mangle): Deleted.
2917 * config/tc-sh.h (TC_KEEP_FX_OFFSET): Define.
2918 (TC_RELOC_MANGLE): Delete.
2919
28d3e4a3
KR
2920Tue Sep 13 16:20:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2921
b9419dd2
KR
2922 * flonum-konst.c: Change preprocessor tests of HO_VMS to just VMS.
2923 * hex-value.c: Ditto.
2924 * config/obj-vms.c: Ditto.
2925
460531da
KR
2926 * config/tc-sparc.c (sparc_ip): Replace as_bad/exit sequence with
2927 a call to as_fatal.
2928 * config/tc-i860.c (i860_ip): Ditto.
2929 * config/tc-hppa.c (pa_ip): Ditto.
2930 * config/tc-alpha.c (alpha_ip): Ditto.
2931 * as.c (parse_args): Ditto.
2932
2933 * config/tc-mips.c (mips_ip): Replace as_warn/exit sequence with a
2934 call to as_fatal.
2935
2936 * write.c (write_contents): Use EXIT_FAILURE.
2937 * output-file.c (output_file_create, output_file_close,
2938 output_file_create, output_file_close): Ditto.
2939 * messages.c (as_fatal): Ditto.
2940 * config/obj-som.c (obj_som_version, obj_som_copyright): Ditto.
2941 * config/obj-ieee.c (write_object_file): Ditto.
2942 * config/obj-coff.c (write_object_file): Ditto.
2943 * config/tc-vax.c (main): Use EXIT_SUCCESS.
2944 * config/tc-m68k.c (main): Ditto.
2945
2946 * hash.c (main): Pass a value to exit().
2947
2948 * as.h (EXIT_SUCCESS, EXIT_FAILURE): Moved here.
2949 * as.c: ...from here.
2950 (parse_args): Use them always.
2951 (main): Use exit rather than return.
2952
28d3e4a3
KR
2953 * Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall):
2954 Rewrite handling of program_transform_name.
2955
b9419dd2
KR
2956 * configure.in: Test for functions unlink and delete.
2957 * as.h: If unlink isn't available but delete is, define unlink to
2958 be delete.
28d3e4a3
KR
2959
2960 Update for autoconf 1.118:
2961 * gdbinit.in: New file, created from old .gdbinit.
2962 * .gdbinit: Deleted.
2963 * aclocal.m4 (GAS_GDBINIT): Deleted.
2964 * configure.in: Don't use it. Instead, generate .gdbinit from
2965 gdbinit.in. Don't substitute cpu_type, obj_format, emulation,
2966 atof. Switched order of AC_LINK_FILES arguments. Use AC_PREREQ
2967 to ensure that older versions of autoconf aren't used.
2968 * Makefile.in: Added @configure_input@ line.
2969 (configure): Deleted rule.
2970
430a3997
ILT
2971Tue Sep 13 12:08:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2972
2973 * config/obj-coff.c (fixup_segment): After handling the difference
2974 of two symbols from the same segment, set fx_subsy to NULL, to
2975 satisfy existing TC_COUNT_RELOC macros.
2976
e23b25ec
KR
2977Tue Sep 13 01:47:08 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2978
2979 * aclocal.m4 (GAS_GDBINIT): New macro.
2980 * configure.in: Use it.
2981 * configure: Regenerated.
2982
c570d361
KR
2983Mon Sep 12 20:56:38 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
2984
2985 * .gdbinit (pe, ps): Define new commands.
2986 * symbols.c (indent_level): New static variable.
2987 (indent, print_expr_1, print_symbol_value_1, print_symbol_value,
2988 print_expr): New functions.
2989
2990 * Makefile.in (config-stamp): Add a "this file generated by make"
2991 message to config.h.
2992
2993 PIC implementation for i386-linux, based on code from Eric
2994 Youngdale and Paul Kranenburg, with some work of my own:
2995
2996 * write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup
2997 before processing same-section pcrel relocations.
2998 (TC_RELOC_RTSYM_LOC_FIXUP): Default to 1.
2999
3000 * expr.c (make_expr_symbol): If operator is O_symbol and
3001 X_add_number is zero, just return the symbol. If operator is
3002 O_constant, resolve the symbol's value before returning.
3003 (operand): Permit use of "[]" for grouping.
3004 (clean_up_expression): For difference of two symbols in the same
3005 frag, add the difference of their offsets into X_add_number.
3006 (expr): Reduce difference of two symbols in same frag to their
3007 difference.
3008
3009 * config/tc-i386.c (TC_RELOC): New macro.
3010 (struct _i386_insn): New field disp_reloc.
3011 (GOT_symbol): New variable.
3012 (operand_special_chars): Added square-brackets and at-sign.
3013 (reloc) [BFD_ASSEMBLER]: Added new argument OTHER; if it is not
3014 NO_RELOC, just return it.
3015 (reloc) [! BFD_ASSEMBLER]: Add third argument to dummy macro.
3016 (BFD_RELOC_386_PLT32, _GOT32, _GOTOFF) [! BFD_ASSEMBLER]: More
3017 dummy macros.
3018 (tc_i386_fix_adjustable): New function. Returns zero if symbol in
3019 fixup is not local, to prevent relocations against externals from
3020 being dropped.
3021 (md_assemble): Initialize disp_reloc field to NO_RELOC. Pass
3022 disp_reloc field to reloc() function, and use TC_RELOC to generate
3023 value to pass to fix_new_exp.
3024 (md_assemble): Change 32-bit reloc against GOT_symbol into a GOTPC
3025 reloc.
3026 (i386_operand): Initialize disp_reloc field to NO_RELOC. Handle
3027 @GOTOFF, @PLT, @GOT operands. For GOTOFF relocations with local
3028 symbols, force generation of the section symbol.
3029 (md_estimate_size_before_relax): If GOT_symbol exists, decide
3030 we're generating PIC code, and convert relocations against
3031 undefined symbols from PCREL to PLT32.
3032 (md_apply_fix_1) [OBJ_ELF]: Fix up values for dynamic-linking
3033 relocs.
3034 (md_undefined_symbol): Notice GLOBAL_OFFSET_TABLE_NAME and set
3035 and return GOT_symbol if it matches.
3036 (F, MAP): Move macro definitions outside function.
3037 (tc_gen_reloc): Only switch on size and pcrel if code wasn't
3038 already supplied as PLT32. GOT32, GOTOFF, or GOTPC. Convert
3039 BFD_RELOC_32 using GOT_symbol into GOTPC.
3040 * config/tc-i386.h (TC_RELOC, tc_fix_adjustable,
3041 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): New
3042 macros.
3043 (NEED_FX_R_TYPE): Define.
3044 (LOCAL_LABEL): Accept ".X" prefix too.
3045 (GLOBAL_OFFSET_TABLE_NAME): Default to "_GLOBAL_OFFSET_TABLE_".
3046
1b434ced
ILT
3047Mon Sep 12 17:51:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3048
1779d515
ILT
3049 * config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
3050 reportedly to be used on Irix 6.
3051
c1444ec4
ILT
3052 * config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
3053 (s_mips_globl): New static function; needed for Irix 5 support.
3054 * ecoff.c (ecoff_build_symbols): If BSF_FUNCTION is set for an
3055 external symbol with no type, set the type to st_Proc rather than
3056 st_Global. Don't set the index of an external st_Proc or
3057 st_StaticProc symbol unless it is also a local symbol.
3058
1b434ced
ILT
3059 * read.c (read_a_source_file): The second argument to as_where is
3060 unsigned int *, not int *.
3061
326d16ca
KH
3062Thu Sep 8 17:18:24 1994 Kung Hsu (kung@mexican.cygnus.com)
3063
3064 * config/obj-ecoff.h : Change names to OBJ_GENERATE_ASM_LINENO,
3065 and generate_asm_lineno.
3066 * config/obj-elf.h : ditto.
3067 * read.h : ditto.
3068 * read.c (read_a_source_file): if no file when inst is read, set
3069 generate_asm_lineno to true.
3070 * ecoff.h : change name to generate_asm_lineno and add function
3071 ecoff_no_current_file.
3072 * ecoff.c : change name to generate_asm_lineno.
69cb5925 3073 * ecoff.c (ecoff_generate_asm_lineno) : new function, to generate
326d16ca
KH
3074 ecoff style line for asm file.
3075
eb4fd16f
ILT
3076Thu Sep 8 19:43:49 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3077
3078 * config/obj-coff.c (size_section): Do an fprintf to stderr rather
3079 than a printf.
3080 (fixup_segment): Use as_bad_where rather than as_bad.
3081
20c9d49a
SC
3082Wed Sep 7 17:21:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3083
eb4fd16f
ILT
3084 * config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing
3085 nothing becomes macro doing nothing.
20c9d49a 3086
bf111c9f
KR
3087Wed Sep 7 19:10:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3088
353acf31
KR
3089 * Makefile.in (Makefile): Depend on config.status.
3090 (config.status): Run config.status from . instead of srcdir.
3091
72373532
KR
3092 * config/tc-i386.c (tc_gen_reloc): Use bfd_get_reloc_code_name to
3093 display the name of the relocation type that couldn't be handled.
3094 * config/tc-sparc.c (tc_gen_reloc): Likewise.
3095 * config/tc-alpha.c (tc_gen_reloc): Likewise. Deleted abort call
3096 after call to as_fatal.
3097
3098 * configure.in (i386-*-linux*): Don't set bfd_gas.
3099
3100 * Makefile.in (CC_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET,
3101 install, uninstall): Don't use "brokensed" hack any more, the new
3102 autoconf code should never let program_transform_name be empty.
3103
bf111c9f
KR
3104 Update for autoconf beta 1.112:
3105 * aclocal.m4 (GAS_CHECK_DECL_NEEDED, GAS_WORKING_ASSERT): New
3106 macros.
3107 * configure.in: Use them. Use AC_ARG_PROGRAM (now provided by
3108 autoconf) instead of my hacked-up AC_PROGRAM_TRANSFORM_NAME. Move
3109 test for CROSS_COMPILE just before AC_FUNC_ALLOCA, and emit a
3110 message to try to ease confusion about autoconf's
3111 "cross-compiling" message.
3112 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_FREE,
3113 NEED_DECLARATION_ERRNO): Renamed from NEED_*_DECLARATION.
3114 * configure, conf.in: Regenerated.
3115
c8570de8
ILT
3116Wed Sep 7 12:49:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3117
3118 * configure.in: Check ${host} and ${target} rather than
3119 ${host_canon} and ${target_canon}.
3120 * configure: Likewise.
3121
8c63448a
ILT
3122Tue Sep 6 11:42:38 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3123
3124 * config/tc-mips.c (mips_cpu): New static variable.
3125 (insns_since_cache_access): New static variable.
3126 (md_begin): Set mips_cpu as well as mips_isa.
3127 (append_insn): If mips_cpu is 4600, require four nop instructions
3128 between an instruction which accesses the cache and certain CACHE
3129 instructions. Keep track of the number of instructions seen since
3130 an instruction which accesses the cache.
3131 (md_parse_option): Set mips_cpu as well as mips_isa.
3132
a5a2f156
KR
3133Mon Sep 5 07:09:00 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3134
3135 * doc/Makefile.in (VPATH): Define using @srcdir@.
3136 (prefix, program_transform_name, exec_prefix): Use autoconf style
3137 @-substitutions.
3138
8c63448a 3139Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
318b02b6
KR
3140
3141 * config/ho-riscix.h, config/tc-arm.c, config/tc-arm.h: New files
3142 * configure.in: Recognize the arm.
3143
3ffbc907
ILT
3144Fri Sep 2 16:05:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3145
3146 * ecoff.c (add_file): Don't try to generate line numbers if the
3147 symbol table has been frozen.
3148
3149Thu Sep 1 19:48:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3150
3151 * aclocal.m4 (AC_PROG_CC): Use AC_DEFUN, and omit AC_PROVIDE.
3152
3153 * configure.in: Handle user-specified bfd-assembler option with
3154 separate variable from preferred configuration, until the two are
3155 resolved. Indicate bfd_gas=preferred for linux a.out. Use
3156 AC_PROGRAM_TRANSFORM_NAME, for which a patch has been sent to djm.
3157 * Makefile.in (target_alias, program_transform_name): Define,
3158 using autoconf @-substitutions.
3159
fb589130
KR
3160Wed Aug 31 17:43:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3161
7f64fd4e
KR
3162 * atof-generic.c: Deleted alloca handling here.
3163
fb589130
KR
3164 * Makefile.in (prefix, exec_prefix): Use @-subtitutions.
3165
3166 * aclocal.m4 (AC_OUTPUT_LINKS): Deleted redefinition, since
3167 autoconf 1.109 has this fixed.
3168 * configure.in: Don't change quote characters around AC_MSG_ERROR
3169 invocation. Don't use AC_HEADER_STDC, since it requires running a
3170 program. Cache NEED_*_DECLARATION values.
3171 * configure, conf.in: Regenerated with a modified autoconf 1.109.
3172
c7072f56
KR
3173 * as.h (volatile): Don't test or define here; not needed.
3174 (alloca): Replace alloca-conf.h inclusion with code recommended in
3175 autoconf documentation. Include config.h first.
3176
bdee23af
ILT
3177Wed Aug 31 11:20:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3178
3179 * config/obj-coff.h (S_IS_DEFINED): Absolute symbols are defined
3180 also.
3181
3182 * configure.in, configure: Initialize bfd_gas to no.
3183
a48f997a
KR
3184Tue Aug 30 19:31:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3185
3186 * as.h: Include alloca-conf.h from "libiberty", not
3187 "../libiberty".
3188
0c49642d
ILT
3189Mon Aug 29 16:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3190
3191 * config/tc-ppc.c (md_apply_fix): Don't generate a reloc when a
3192 symbol is used as an offset into a CSECT that is not a TOC. These
3193 types of loads are generated by gcc -mminimal-toc.
3194
65ad84c1
KR
3195Sun Aug 28 13:22:52 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
3196
e9296bdb
KR
3197 * as.h (flag_*): Added comments describing meanings of some of
3198 these variables.
3199 (struct frag): Add some comments about the ns32k-specific fields
3200 and why they're here.
3201 (SIZEOF_STRUCT_FRAG): Cast addresses to char*, not int.
3202 (flag_print_statistics): Declare.
3203
3204 * as.c (parse_args): Set flag_print_statistics instead of
3205 statistics_flag. Options array is now const. Added new option
3206 "dump-config"; if specified, print TARGET_ALIAS, TARGET_CANONICAL,
3207 TARGET_CPU, TARGET_OBJ_FORMAT, and TARGET_FORMAT, if defined.
3208 (main): Change test to check flag_print_statistics.
3209 (statistics_flag): Deleted.
3210
c72aa0e2
KR
3211 * frags.c (frag_variant): Removed PCREL_ADJUST and BSR arguments.
3212 Always initialize them to zero.
3213 * frags.h (frag_variant): Fixed prototype.
3214 * config/tc-i960.c (get_cdisp): Don't pass the extra zero args.
3215 * config/tc-ns32k.c (convert_iif): Don't pass the arguments; cache
3216 the value of frag_now and fill in the fields later.
3217
65ad84c1
KR
3218 * Makefile.in (distclean, realclean): Remove new
3219 configure-generated files.
3220
aaeee550
KR
3221Sat Aug 27 20:26:12 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
3222
b11fb939
KR
3223 Conversion to autoconf:
3224 * acconfig.h, aclocal.m4: New files.
3225 * configure.in: Rewritten (except for some target-specific code)
3226 for autoconf.
3227 * conf.in, configure: New files, generated from the above.
3228 * Makefile.in: Changed magic sequence indicating insertion of
3229 makefile fragments.
3230 (VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions
3231 from configure.
3232 (LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
3233 (config.status, configure): Rewrite rules.
3234 (config-stamp): Depend on conf. Skip variables that configure is
3235 now substituting itself.
3236 (*.o dependencies): Deleted host.h.
3237 (distclean, realclean): Don't delete host.h.
3238 * as.c: Don't include stdio.h, string.h, sys/types.h. Include
3239 signal.h after as.h.
3240 * as.h: Include alloca-conf.h first. Include ctype.h, string.h,
3241 strings.h, stdlib.h, unistd.h, sys/types.h, fopen-bin.h,
3242 fopen-same.h, as suggested by autoconf test results.
3243 [BROKEN_ASSERT]: Don't include assert.h.
3244 (strdup): Declare.
3245 (volatile, const): Define if not __STDC__ and not already defined.
3246 (malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
3247 (free) [NEED_FREE_DECLARATION]: Declare.
3248 * gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't
3249 include host.h.
3250 (malloc) [NEED_MALLOC_DECLARATION]: Declare.
3251 * messages.c: Include as.h first. Include errno.h only if
3252 HAVE_ERRNO_H. If HAVE_VARARGS_H and not __STDC__, undefine
3253 HAVE_STDARG_H. Set NO_STDARG and NO_VARARGS as appropriate.
3254 * doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM,
3255 INSTALL_DATA): Use autoconf @-substitutions.
3256
27bf48ec
KR
3257 * input-file.c: Don't include assert.h here, 'cause as.h already
3258 includes it.
3259
aaeee550
KR
3260 * config/tc-alpha.c: Added various prototypes for static
3261 functions.
3262 (in_range): New function, tests whether a value can fit in an
3263 N-bit field.
3264 (build_mem, build_operate_n): New functions for constructing
3265 opcode values.
3266 (emit_sll_n, emit_ldah_num, emit_addq_r, emit_lda_n): New
3267 functions for emitting single instructions, no longer requiring a
3268 recursive call to md_assemble.
3269 (emit_add64): New function for expanding a REG:=REG+CONST
3270 operation into one or more instructions, to handle wide constants.
3271 (clear_insn): New variable.
3272 (md_begin): Fill it in with zeros and BFD_RELOC_NONE values.
3273 (alpha_ip): Use it to initialize local variable insns.
3274 (alpha_ip, label "immediate" and cases 'P', 'G'): Use emit_add64
3275 for calculations.
3276
6668a062
KR
3277Fri Aug 26 14:46:15 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
3278
3279 * subsegs.c (section_symbol): Reverse still-wrong test of
3280 EMIT_SECTION_SYMBOLS.
3281
8ef75e2c
KR
3282 * write.c (BFD_FAST_SECTION_FILL): Always define.
3283 (write_contents): If fill_size is 1, use memset instead of looping
3284 calling memcpy.
3285
904b6037
ILT
3286Wed Aug 24 12:46:08 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3287
20ae2fb8
ILT
3288 * config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibility
3289 with native MIPS assembler.
3290 * configure.in (mips-*-irix*): Don't set emulation.
3291 * config/te-irix.h: Remove.
3292
fd4f335c
ILT
3293 * ecoff.c (ecoff_symbol_new_hook): Don't add a new file if we
3294 haven't seen any input files yet.
3295 * config/tc-alpha.c (md_begin): Just call symbol_create, rather
3296 than calling symbol_new and then removing the symbol from the
3297 list.
3298
a2a1a548
ILT
3299 * as.c (main): Move a inside the #if 0 block which uses it.
3300 * ecoff.c (current_stabs_filename): Make const.
3301 * frags.h (frag_align_pattern): Declare.
3302 * gasp.c (new_file): Cast isp to long, and use %ld to print it.
3303 * config/tc-alpha.h (md_operand): Add cast to void.
3304 (alpha_do_align): Declare argument types.
3305 (tc_get_register): Declare.
3306 (alpha_frob_ecoff_data): Declare.
3307 * config/tc-alpha.c: Include <ctype.h>.
3308 (s_mask): Don't declare; does not exist.
3309 (line_comment_chars): Remove /* from descriptive comment.
3310 (tc_get_register): Remove unused local reg.
3311 (tc_gen_reloc): Don't bother to compare unsigned to zero.
3312 (s_base): Correct warning to actually print register number.
3313 (md_begin): Remove unused locals retval, lose, and i.
3314 (alpha_fix_adjustable): Move default case inside switch to avoid
3315 warning.
3316 (load_symbol_address): Remove unused locals reloc_addr, p, sym,
3317 and addend.
3318 (emit_byte_manip_r): Declare types for all arguments.
3319 (emit_extract_r, emit_insert_r, emit_mask_r): Likewise.
3320 (emit_sign_extend, emit_bis_r, s_proc): Likewise.
3321 (alpha_ip): Use sprint_value to print offsetT value. Remove
3322 unused local size. Remove unused label get_macro.
3323 (alpha_do_align): Make fill const.
3324 (md_apply_fix): Remove unused label check_zov.
3325
904b6037
ILT
3326 * configure.in: Recognize i586 as a synonym for i[34]86.
3327
3328Tue Aug 23 12:32:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3329
3330 * config/obj-coff.c (c_line_new): Change line_number argument from
3331 unsigned short to int so that the type in the prototype matches
3332 the promoted type in the definition.
3333 (stack_delete): Comment out; not used.
3334 * config/obj-coff.h (tc_coff_symbol_emit_hook): Declare if not
3335 BFD_ASSEMBLER, not if BFD_ASSEMBLER. Declare argument type.
3336 * config/tc-m68k.h (tc_coff_sizemachdep): Declare.
3337 * config/tc-m68k.c (tc_coff_symbol_emit_hook): Add ignored
3338 argument.
3339
2cffb4f4
JL
3340Tue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu)
3341
05d0c2cc
JL
3342 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
3343 the common symbol to the zero address frag (the correct fix).
3344
3345Tue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu)
3346
3347 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
3348 the common symbol to the zero address frag (the correct fix).
3349
3350 * config/tc-hppa.c (pa_comm): Set sy_resolved for the common
69cb5925 3351 symbol.
2cffb4f4 3352
101fbf7e
ILT
3353Fri Aug 12 17:51:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3354
3355 * config/tc-mips.c (md_begin): Drop "el" from the end of
3356 TARGET_CPU. Check for mips64orion.
3357
a1dafd55
SG
3358Tue Aug 9 19:43:45 1994 Stu Grossman (grossman@cygnus.com)
3359
3360 * configure.in: Recognize ppc-*-netware.
3361 * config/te-ppcnw.h: New file to support Power-PC/Netware
3362 configurations. Currently, it just enables the use of backslash
3363 escapes in string directives.
3364
55933a58
ILT
3365Tue Aug 9 11:12:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3366
8e479636
ILT
3367 * config/tc-ppc.c (ppc_stabx): Call expression directly, rather
3368 than via pseudo_set. If expression is a symbol, move stab symbol
3369 to just after symbol from expression.
3370
c9a89891
ILT
3371 * ecoff.c (ecoff_build_procs): Don't force adr of first fdr to be
3372 zero. Undoes change of June 4, 1993.
3373
55933a58
ILT
3374 * config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, and
3375 orion.
3376
3377Mon Aug 8 16:28:08 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3378
3379 * as.h: Remove FOPEN_WB patch of Aug 6.
3380 * configure.in: Configure for ho-go32 correctly.
3381 * config/ho-go32.h: Fix copyright.
3382
1503edcc
JL
3383Mon Aug 8 11:59:51 1994 Jeff Law (law@snake.cs.utah.edu)
3384
3385 * gas/config/tc-hppa.c (md_pseudo_table): Delete redundant
3386 upper-case versions of the pseudo-ops.
3387
2cd14ddc
ILT
3388Mon Aug 8 13:42:16 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3389
3390 * config/tc-sparc.c (md_apply_fix): If we are going to generate a
3391 non PC relative reloc, don't put the addend in the object file.
3392
6670b7f3
SC
3393Sat Aug 6 01:15:02 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3394
3395 * as.h: If FOPEN_WB is not defined, do the right thing in a go32
3396 environment.
3397
3398Mon Jul 11 11:34:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3399
3400 * config/tc-h8300.c (pint): New function for handling varying
3401 size of int pseudo op.
3402 * doc/as.texinfo: Fix typo describing .h8300h pseduop.
3403
363d6150
JL
3404Mon Aug 1 02:40:43 1994 Jeff Law (law@snake.cs.utah.edu)
3405
fbf71886
JL
3406 * config/tc-hppa.c (create_new_space): Initialize sd_subspaces
3407 field in the space chain.
3408
363d6150
JL
3409 * config/tc-hppa.c (tc_gen_reloc): Cast return value from
3410 hppa_gen_reloc_type.
3411
5e0a90a8
KR
3412Thu Jul 28 15:45:37 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3413
3414 * config/tc-sparc.c (sparc_ip): Check more carefully for
3415 conflicting architectures.
3416 (md_parse_option) [NO_V9]: Complain if v9 was selected.
3417 (md_show_usage): Derive architecture list in usage message from
3418 architecture_pname array.
3419 (cypress): Macro deleted.
3420 (op_hash): Don't initialize.
3421 (s_common): Use bfd_und_section_ptr instead of bfd_und_section.
3422
3423 * config/tc-sparc.c (BSR): New function.
3424 (sparc_ip): Use it for right-shift operations of 32 bits or more.
3425
3426 * config/tc-sparc.c (sparc_ip): Implement new operand type 'x'.
3427
39792caf
KR
3428Tue Jul 26 18:21:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3429
3430 * config/obj-coff.h: Moved common includes and TARGET_FORMAT
3431 definitions together.
3432 (WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD,
3433 OBJ_COFF_OMIT_OPTIONAL_HEADER, BFD_HEADERS, BFD) [!BFD_ASSEMBLER]:
3434 Moved these definitions to the start of the file, before the
3435 includes.
3436 (SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always
3437 define these.
3438 (S_GET_ZEROES): Deleted.
3439 (S_SET_ZEROES): Moved to obj-coff.c.
3440
3441 * config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted
3442 forward declarations.
3443 (obj_pseudo_table): Moved to one version end of file,
3444 conditionalized internally.
3445 (stack typedef, stack_init, stack_delete, stack_push, stack_pop,
3446 tag_hash, tag_init, tag_insert, tag_find, tag_find_or_make): Moved
3447 to one combined version at top of file, unconditional. Deleted
3448 forward declarations.
3449 (s_get_name): Moved one copy of declarations to start of file.
3450 (def_symbol_in_progress): Ditto. Don't initialize.
3451 (S_SET_ZEROES): Moved here from obj-coff.h.
3452 (write_object_file): If TC_COFF_SET_MACHINE is defined, call it on
3453 the file headers.
3454
3455 * config/obj-coff.c (seg_info_off_by_4): Now const and static.
3456 (SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted.
3457 (previous_file_symbol, def_symbol_in_progress, symbol_externP,
3458 symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't
3459 bother explicitly initializing to zero value.
3460
3461 * config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME
3462 and SF_GET_CALLNAME instead of the TC_S_IS_ versions.
3463
10db66ec
KR
3464 * config/tc-i960.h (TC_COFF_SET_MACHINE): New macro. Calls
3465 tc_headers_hook.
3466
3467 * config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX
3468 was used previously.
3469 (tc_headers_hook): If I_CX2 is found, set flags to F_I960CA.
3470
3471 * config/tc-i960.c (po_hash): Declaration deleted.
3472 (next_object_file_charP): Ditto.
3473 (regnames, aregs, coj): Now const.
3474 (parse_memop): Static array def_scale now const.
3475 (md_begin): Cast away const when passing hash routines addresses
3476 of values in regnames or aregs.
3477 (md_longopts): Added "link-relax" and "no-relax" hyphenated forms.
3478 Continue to accept one-word forms.
3479 (struct tabentry, arch_tab): Moved to top level from inside
3480 md_parse_option. Now const.
3481 (md_show_usage): Use arch_tab to generate usage message. Print
3482 hyphenated forms of relax options.
3483
3484 * config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC,
3485 TC_S_FORCE_TO_*): Moved from here...
3486 * config/tc-i960.c: ... to here. Changed DEFINE_I960_AOUT stuff
3487 to test OBJ_AOUT and OBJ_BOUT directly.
3488
3489 * config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ,
3490 M1-M3, REG_OPC, R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F,
3491 {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK, FP_OK, REG_ALIGN, MEMOP, I_*):
3492 Macros deleted.
3493
3494 start-sanitize-i960xl
3495 * config/tc-i960.c (ARCH_XL): Define.
3496 (arch_tab): Include XL.
3497 (targ_has_sfr, targ_has_iclass): Handle XL.
3498 (tc_headers_hook): Set flags to F_I960XL for i960XL.
3499 end-sanitize-i960xl
3500
39792caf
KR
3501Fri Jul 15 15:36:51 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3502
3503 * subsegs.c (section_symbol): Had last change backwards.
3504
3b6d6f71
KR
3505Thu Jul 14 13:21:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3506
462ab71d
KR
3507 * config/atof-ns32k.c: Deleted.
3508
3b6d6f71
KR
3509 * config/obj-aout.c (obj_aout_frob_symbol): Use
3510 bfd_ind_section_ptr and bfd_und_section_ptr.
3511
3512 * subsegs.c (subseg_set_rest): Compare segT values directly,
3513 without casting to int first.
3514
259e35d4
KR
3515 * config/tc-ns32k.c (md_begin): Return value from hash_insert
3516 should be pointer to const. Don't call exit explicitly after
3517 calling as_fatal; it won't return.
3518 (convert_iif): Make local variable j be pointer to bit_fixS, since
3519 that's how it's used.
3520 (encode_operand, case 'b'): Ignore sprintf return value. Don't try
3521 converting freeptr to int and back.
3522
3523 Merged in NS32K support update from Ian Dall (dall@hfrd.dsto.gov.au):
3524
3525 * config/te-pc532mach.h: New file. pc532-mach target emulation.
3526
3527 * config/te-netbsd532.h: New file. Netbsd532 target emulation.
3528
3529 * config/tc-ns32k.h: Add definition of NOP_OPCODE.
3530
3531 * config/tc-ns32k.h: Add prototype for fix_new_ns32k_exp.
3532
3533 * config/tc-ns32k.h: Add BFD_ASSEMBLER support.
3534
3535 * config/tc-ns32k.c (tc_gen_reloc): New function for BFD_ASSEMBLER.
3536
3537 * config/tc-ns32k.c (fix_new_ns32k_exp): Get reloc type
3538 differently for BFD_ASSEMBLER.
3539
3540 * config/tc-ns32k.c (md_estimate_size_before_relax): Get reloc
3541 type differently for BFD_ASSEMBLER.
3542
3543 * config/tc-ns32k.c (md_create_long_jump): Size of opcode is one
3544 not 2.
3545
3546 * config/tc-ns32k.c (md_convert_frag): Code for the BFD_ASSEMBLER
3547 case. Also use smart md_pcrel_adjust function.
3548
3549 * config/tc-ns32k.c (md_apply_fix): Code for the BFD_ASSEMBLER
3550 case. Also use smart md_fix_pcrel_adjust function.
3551
3552 * config/tc-ns32k.c (md_fix_pcrel_adjust): New function which can
3553 find offset from opcode to operand even if in another frag
3554 and in the presence of relaxing.
3555
3556 * config/tc-ns32k.c (md_pcrel_adjust): New function which can
3557 find offset from opcode to operand even if in another frag
3558 and in the presence of relaxing.
3559
3560 * config/tc-ns32k.c (md_number_to_disp): Check ranges properly.
3561
3562 * config/tc-ns32k.c (md_atof): use atof_ieee instead of special
3563 atof_ns32k.
3564
3565 * config/tc-ns32k.c (reloc): New (static) function for
3566 BFD_ASSEMBLER.
3567
3568 * config/tc-ns32k.c (convert_iif): More correct pc relative code.
3569 md_relax must be able to find opcode address even if in another frag.
3570
3571 * config/tc-ns32k.c: More extensive comments.
3572
3573 * config/tc-ns32k.c (encode_operand): Support new operand classes I
3574 and Z. Drop Q.
3575
3576 * config/tc-ns32k.c (fix_new_ns32k_exp): new function and
3577 corresponding prototype.
3578
3579 * config/tc-ns32k.c: make 32532 default machine instead of 32032.
3580
3581 * config/tc-ns32k.c: include opcode/ns32k.h after as.h
3582
3583 * aout_gnu.h: r_disp needs to be 2 bits for TC_NS32K
3584
3585 * write.h: fx_im_disp needs to be 2 bits big for TC_NS32K
3586
3587 * write.c (relax_segment): Use TC_PCREL_ADJUST macro (if defined)
3588 instead of adding pcrel_adjust.
3589
3590 * write.c (write_object_file): Adjust to_addr for the
3591 BROKEN_DOT_WORD feature for the BFD_ASSEMBLER case.
3592
3593 * write.c (write_object_file): Use TC_CONS_FIX_NEW if it is defined.
3594
3595 * write.c (write_contents): Add code (currently if
3596 BFD_FAST_SECTION_FILL is defined) to make large fills a lot faster.
3597
3598 * configure.in: Remove ns32k from special FP list. All the ns32k
3599 series use ieee float.
3600
3601 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd targets
3602
3603 * as.h: include expr.h before targ-env.h. Some target dependent file
3604 want to use expr structures.
3605
4ac7a9e4
ILT
3606Wed Jul 13 14:49:05 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3607
3608 * config/tc-m68k.c (m68k_ip): Change rp to be a const pointer.
3609 (md_parse_option): Clear cpu field of current_architecture before
3610 setting a new cpu type. Clear no_68881 for m68881 or m68882.
3611 Clear no_68851 for m68851.
3612
6b510a40
KR
3613Tue Jul 12 21:27:05 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3614
3615 * config/ho-sysv.h (realloc): Declare.
3616
3c498933
KR
3617 * symbols.c (symbol_create): New function, most of the guts of the
3618 old symbol_new function.
3619 (symbol_new): Now just checks symbol_table_frozen, calls
3620 symbol_create, and enters the symbol into the symbol table.
3621 * subsegs.c (section_symbol): If EMIT_SECTION_SYMBOLS is not true,
3622 and the symbol table is frozen, call symbol_create instead of
3623 symbol_new.
3624 * symbols.h (symbol_create, symbol_table_frozen): Declare.
3625
3626 * symbols.c (symbol_clear_list_pointers): Always a function now.
3627 * struc-symbol.h (symbol_clear_list_pointers): Deleted macro
3628 version.
3629
3630 * symbols.c (debug_verify_symchain): New macro, defined to be
3631 verify_symbol_chain or a cast to void, depending on DEBUG_SYMS.
3632 (many functions): Invoke debug_verify_symchain unconditionally.
3633
a85cd289
KH
3634Tue Jul 12 12:06:42 1994 Kung Hsu (kung@x1.cygnus.com)
3635
3636 * config/obj-ecoff.h: change calling interface of
3637 OBJ_GENERATE_ASM_LINE_STAB.
3638 * config/obj-elf.h: ditto.
3639 * read.c (read_a_source_file): ditto.
3640 * ecoff.h: change calling interface of
3641 ecoff_generate_asm_line_stab.
3642 * ecoff.c (add_file): record of filename to handle case of include
3643 files, also change default built-in type from int to void for
3644 asm file.
3645 * ecoff.c (ecoff_generate_asm_line_stab): handle case of include
3646 files.
3647
51d8e5ae
ILT
3648Mon Jul 11 17:20:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3649
3650 * config/tc-mips.c (macro): In case M_LA_AB, SVR4_PIC, large
3651 constant, and case ldd_std, set mips_optimize to 2 temporarily to
3652 avoid inserting an unexpected nop instruction.
3653
64d527f7
ILT
3654Sat Jul 9 00:05:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3655
3656 * ecoff.c (ecoff_build_lineno): Handle count correctly for last
3657 line number.
3658
6f15d409
SC
3659Fri Jul 8 15:22:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3660
6670b7f3 3661 * gasp.c (process_pseudo_op): Pass right args to do do_aif.
6f15d409
SC
3662 (get_any_string): New arg 'pretend_quote'.
3663 (get_and_process, do_formals, macro_expand, do_sdata,
3664 process_pseudo_op): Use new arg.
3665
daad3bbf
KH
3666Fri Jul 8 12:23:44 1994 Kung Hsu (kung@mexican.cygnus.com)
3667
3668 * config/obj-ecoff.h: define macro OBJ_GENERATE_ASM_LINE_STAB.
3669 * config/obj-elf.h: ditto.
3670 * read.c (read_a_source_file): generate line stabs for asm file.
3671 * read.h: add extern generate_asm_line_stab.
3672 * ecoff.h : add prototype for ecoff_generate_asm_line_stab().
3673 * ecoff.c (add_file): if there's no filename provided, set switch
3674 to generate line stabs for .s file.
3675 * ecoff.c (add_procedure): add stabs symbol for .ent directive.
3676 * ecoff.c (generate_ecoff_stab): creates an artificial stabs.
3677 * ecoff.c (generate_asm_line_stab): generate a artifitial label
3678 for each line and generate a stabn for the line.
3679
13d9fd33
SC
3680Thu Jul 7 17:04:03 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3681
3682 * gasp.c (get_any_string): Cope with getting a string with an
3683 alternate base specifier.
3684 (do_aif, do_aelse): Only enable output if expression is true and previous
3685 level was on.
3686 (chartype_init): Add BASEBIT chartype.
3687 (process_pseudo_op): Notice nesteed AIFs.
3688
3689Thu Jul 7 12:30:22 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3690
3691 * h8300.c (do_a_fix_imm): Code for 2 bit reloc type using in trapa
3692 insn. (fix pr 5165, 5174)
3693
8fd04cba
JL
3694Thu Jul 7 11:31:32 1994 Jeff Law (law@snake.cs.utah.edu)
3695
13d9fd33
SC
3696 * config/tc-hppa.c (R_DLT_REL): If it isn't defined, then define
3697 to an appropriate value to avoid losing on old hpux systems.
3698
8fd04cba
JL
3699 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions for
3700 symbols in DLT relative relocs.
3701 (tc_gen_reloc): Zero out the addend field for DLT relative relocs.
3702
8882a587
ILT
3703Wed Jul 6 01:07:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3704
3705 * config/tc-ppc.c (ppc_tc): If not OBJ_COFF, force TOC entry to
3706 align to a four byte boundary.
3707
4174e052
KR
3708Tue Jul 5 15:42:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3709
3710 * config/tc-alpha.c (load_expression): Handle 32-bit addends.
3711 (gpdisp_hi16_howto): Now points to const.
3712 (load_insn_table, alpha_ip): Fix uses of const.
3713
10f67315
KR
3714 * doc/internals.texi: Updates to COFF description. Added "@end
3715 defmac" as needed, and some extra heading and "@bye" so it'll
3716 format as a separate document.
3717
bcb62abf
ILT
3718Tue Jul 5 13:54:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3719
3720 * config/obj-elf.h (S_GET_ALIGN, S_SET_ALIGN): Define.
3721 * config/obj-elf.c (obj_elf_common): Set alignment of common
3722 symbol.
3723 * config/tc-sparc.c (s_common): If OBJ_ELF, set alignment of
3724 common symbol.
3725
655f3ef4
JL
3726Mon Jul 4 18:29:43 1994 Jeff Law (law@snake.cs.utah.edu)
3727
3728 * config/tc-hppa.c (is_complex): New macro.
3729 (cons_fix_new_hppa): "Handle" complex expressions.
3730
3731Fri Jul 1 00:48:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3732
3733 * config/obj-coff.c (write_object_file): Set s_align field from
3734 section_alignment array.
3735
04f0c2e3
KR
3736Thu Jun 30 15:05:28 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3737
3738 * write.c (write_object_file): Use bfd_com_section_ptr.
3739 * as.h (absolute_section, undefined_section): Use new BFD macros
3740 bfd_abs_section_ptr and bfd_und_section_ptr.
3741
f2554579
ILT
3742Thu Jun 30 14:36:37 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3743
3744 * config/tc-mips.c (macro): For M_LI_SS, decide how to handle it
3745 based on contents of imm_expr and offset_expr, rather than
3746 mips_pic. For M_LI_DD, decide how to handle it based on segment
3747 name of offset_expr, rather than mips_pic.
3748 (mips_ip): If g_switch_value < 4, use immediate values for 'l'.
3749 If g_switch_value < 8, use .rdata rather than .lit for 'L'.
3750
6f0b87c3
SS
3751Wed Jun 29 17:30:46 1994 Stan Shebs (shebs@andros.cygnus.com)
3752
3753 * as.c (show_usage): Break long string into shorter ones.
3754 (parse_args): Add -v, prints version id and continues.
3755 * config/tc-mips.c (md_show_usage): Break long string.
3756
3757Mon Jun 27 09:47:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3758
3759 * config/tc-i386.c (md_parse_option): Handle "-V" and "-Q" if
3760 OBJ_ELF is defined.
3761
f488a4d6
SS
3762Sun Jun 26 16:30:48 1994 Stan Shebs (shebs@andros.cygnus.com)
3763
3764 * as.c (main) [HOST_SPECIAL_INIT]: New hook, for host-specific
3765 initialization.
3766
1f12ae43
JL
3767Wed Jun 22 00:24:55 1994 Jeff Law (law@snake.cs.utah.edu)
3768
3769 * config/tc-hppa.h (obj_frob_symbol): Define for OBJ_ELF.
3770 More gas/bfd lossage exposed by the new linker code.
3771
dff770c8
ILT
3772Tue Jun 21 11:32:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3773
1f12ae43
JL
3774 * subsegs.c (subseg_change): Clear seginfo after allocating it.
3775 (subseg_get): Pass actual size of seginfo to memset.
3776
dff770c8
ILT
3777 * subsegs.c (abs_seg_info, und_seg_info): Define if BFD_ASSEMBLER.
3778 (subseg_change): Store seg_info for bfd_abs_section_ptr in
3779 abs_seg_info, and store seg_info for bfd_und_section_ptr in
3780 und_seg_info.
3781 (subseg_get): Likewise. Also, don't set output_section if it is
3782 already set.
3783 (seg_info): Define as function.
3784 * subsegs.h (seg_info): Declare as function rather than defining
3785 as macro.
3786 * write.c (relax_and_size_seg): Call seg_info rather than
3787 bfd_get_section_userdata.
3788
e0b36f18
KR
3789Mon Jun 20 16:30:54 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3790
639c820d
KR
3791 * configure.in (ppc-*-elf*): New target, like -sysv4*.
3792
e0b36f18
KR
3793 * expr.c (operand): If "0f" is followed by '\0', don't do eol
3794 checks.
3795
256816ca
ILT
3796Mon Jun 20 15:17:43 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3797
3798 * ecoff.c (ecoff_build_aux): Call swap_tir_out and swap_rndx_out
3799 via backend pointer, not directly.
3800
de442a3c
ILT
3801Fri Jun 17 18:05:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3802
3803 * Makefile.in (config-stamp): Make sure there is at least one
3804 element in the for loop.
3805
0e68b3bc
JL
3806Fri Jun 17 11:01:04 1994 Jeff Law (law@snake.cs.utah.edu)
3807
239f16dd
JL
3808 * config/tc-hppa.c: Misc trivial changes to make gcc -Wall happy.
3809
0e68b3bc
JL
3810 * config/tc-hppa.h (elf_hppa_final_processing): Declare.
3811
5ee93e0a
KR
3812Wed Jun 15 20:44:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3813
286272fb
KR
3814 * as.c (parse_args): Cast xmalloc return value.
3815
5ee93e0a
KR
3816 * Makefile.in (config-stamp): If $(defs) contains multiple words,
3817 emit a #define line for each.
3818 * configure.in: For sparc64 target, use sparc cpu files and add
3819 sparcv9 to extra_defs. No longer treat sparc64-*-aout* specially.
3820
3821 * config/tc-sparc.c (membar_masks): Now static and const.
3822 (md_show_usage) [!NO_V9]: Add -Av9 to usage message.
3823 (current_architecture) [sparcv9]: Initialize to v9.
3824 (md_begin) [sparcv9]: Don't bother changing it unconditionally
3825 here.
3826 (s_reserve): Don't pass unexpected argument to as_bad with
3827 bad-segment message.
3828
3829 * as.h (bfd_alloc_by_size_t) [BFD_ASSEMBLER]: Declare.
3830
3831 * config/atof-ieee.c (int_to_gen): Commented out unused routine.
3832
3833 * config/tc-vax.c (md_assemble): Removed check of operand section.
3834
3835 Fri Jun 3 17:25:08 1994 Pat Rankin (rankin@eql.caltech.edu)
3836
3837 * config/obj-vms.h (DBG_S_C_COMPLX4, DBG_S_C_COMPLX8): define
3838 these new VMS symbol-type macros for `complex float' and
3839 `complex double' support. Their values come from the existing
3840 DSC$K_DTYPE_FC and DSC$K_DTYPE_DC macros in <descrip.h>.
3841 (DBG_S_C_REAL8_G, DBG_S_C_COMPLX8_G): G_float versions of
3842 REAL8 and COMPLX8; not used yet, because gcc outputs the same
3843 .stabs for `double' regardless of whether `-mg' is used.
4174e052 3844 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
5ee93e0a
KR
3845 for gcc2's predefined types "complex float", "complex double",
3846 and "complex long double" (identical to complex double).
3847
36a87ad7
ILT
3848Wed Jun 15 12:32:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3849
0e35ba9b
ILT
3850 * config/obj-coff.c (coff_frob_symbol): Use C_STAT for the .text
3851 section symbol, not C_LABEL.
3852
adf05987
ILT
3853 * config/tc-mips.c (mips_ip): Permit a modifier in 'o' case, and
3854 permit non constant expressions in 'u' case. Lets ``lui
3855 $8,%hi(foo); lw $8,%lo(foo)($8)'' work correctly.
36a87ad7 3856
a5183648
ILT
3857Mon Jun 13 12:08:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3858
3859 * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
3860 to put a common symbol in a set.
3861
02d4e923
ILT
3862Sat Jun 11 16:41:21 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3863
3864 Add weak symbols as an extension to a.out.
3865 * read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and
3866 OBJ_BOUT if not BFD_ASSEMBLER.
3867 * config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB):
3868 Define as in ../include/aout/aout64.h.
3869 * config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER,
3870 define as char.
3871 (S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER.
3872 * config/obj-aout.c (obj_pseudo_table): Add "weak".
3873 (obj_emit_symbols): Adjust type of weak symbols.
3874 (obj_aout_weak): New static function.
3875
726672c5
ILT
3876Fri Jun 10 13:48:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3877
7b1e07b4
ILT
3878 * config/obj-elf.c (obj_elf_section): Don't set any flags based on
3879 the type of a special section.
3880
726672c5
ILT
3881 * config/ho-sunos.h: Include <stdlib.h>. Don't declare malloc,
3882 realloc, free, or atol.
3883
0b3d0999
BC
3884Wed Jun 8 06:28:37 1994 Bill Cox (bill@cygnus.com)
3885
3886 * Makefile.in (check): Delete as.new dependency, so that
3887 regression test doesn't trigger an assembler build.
3888
daa7e184
ILT
3889Tue Jun 7 13:33:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3890
3891 * Makefile.in (mostlyclean, realclean): New targets.
3892 * doc/Makefile.in, testsuite/Makefile.in: Likewise.
3893
d2c71068
ILT
3894Mon Jun 6 13:10:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3895
3896 * config/tc-mips.c (RDATA_SECTION_NAME): Define.
3897 (macro): Correct M_LI_SS SVR4_PIC/EMBEDDED_PIC case. After M_LI_D
3898 or M_L_DOB or label dob, force a new frag to avoid getting
3899 confused in tc_gen_reloc.
3900 (mips_ip): Use RDATA_SECTION_NAME, not .rdata.
3901 (s_change_sec): Likewise.
3902
1fbfe108
ILT
3903Fri Jun 3 23:35:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3904
3905 * read.c (emit_expr): Use memset to zero out memory, rather than
3906 going through md_number_to_chars. This permits handling symbolic
3907 arguments when the size is larger than sizeof (valueT), if
3908 TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS).
3909
f3d817d8
DM
3910Fri Jun 3 12:50:13 1994 David J. MacKenzie (djm@rtl.cygnus.com)
3911
baed44cd
DM
3912 * as.c (show_usage), config/tc-alpha.c (md_show_usage),
3913 config/tc-mips.c (md_show_usage): Fix up messages.
3914
def66e24
DM
3915 * as.h: Replace flagseen with separate variables.
3916 * as.c (parse_args): Set them. Don't accept -1 option, or -v
3917 explicitly (it's a synonym for --version).
69cb5925 3918 * as.c, input-scrub.c, messages.c, read.c, symbols.c, write.c,
def66e24
DM
3919 config/obj-aout.c, config/obj-aout.h, config/obj-bout.c,
3920 config/obj-bout.h, config/obj-coff.c, config/obj-coff.h,
3921 config/obj-vms.c, config/tc-hppa.c, config/tc-i386.c,
3922 config/tc-i960.c, config/tc-m68k.c, config/tc-mips.c,
3923 config/tc-vax.c: Use the new flag variables instead of flagseen.
3924 * config/tc-vax.c [OBJ_VMS]: Recognize -+, -1, -v, and document in
69cb5925 3925 usage.
def66e24 3926
f3d817d8
DM
3927 * as.c (show_usage): Remove target specific messages;
3928 instead, call md_show_usage.
3929 (parse_args): Use getopt_long_only. Take pointers to argc and
3930 argv.
3931 (main): Pass parse_args pointers.
3932 * as.h: Remove 3 variables that are redundant with flagseen.
3933 * as.c, messages.c: Change their users to use flagseen.
3934 Define getopt stuff.
3935 * tc.h: Update md_parse_option decl. Add md_show_usage decl.
3936 * config/tc-*.c: Add md_shortopts, md_longopts,
3937 md_longopts_size, md_show_usage. Change calling convention for
3938 md_parse_option. Remove md_parse_long_option.
3939 * config/tc-ns32k.c: Rename `struct option' to `struct ns32k_option'.
3940 * config/tc-i386.h: Don't define md_parse_option.
3941
ebd6f117
DM
3942Thu Jun 2 13:54:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3943
3944 * as.c (show_usage): New function.
3945 (parse_args): Code moved from main.
3946 Recognize --help and --version.
3947 * config/tc-ns32k.h: Define TC_NS32K.
3948 * doc/as.texinfo: Document all of the target-independent command
3949 line options.
3950
314628f6
KR
3951Thu Jun 2 12:07:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3952
3953 * gasp.c (hash_new_table): Clear newly allocated table.
3954
3955 * config/tc-m68k.c (enum _register): Add 68060 control registers
3956 BUSCR and PCR.
3957 (last_movec_reg): New macro.
3958 (m68000_control_regs, m68010_control_regs, m68020_control_regs,
3959 m68040_control_regs, m68060_control_regs): New arrays.
3960 (control_regs): New pointer.
3961 (m68k_ip): Use control_regs instead of testing CPU every time.
3962 Use last_movec_reg too. In error messages, handle 68060, and
3963 print 68060 for mfloat, too.
3964 (m68k_init_after_args): Handle "68060". Use m68040up for making
3965 m68851 choice. Set control_regs.
3966 (md_parse_option): Handle "68060".
3967 * configure.in: Setting cpu_type, recognize m68060 too.
3968
3969 * config/obj-coff.c (fixup_segment) [!BFD_ASSEMBLER]
3970 [DIFF_EXPR_OK]: Do conversion to pc-relative for difference, even
3971 if pcrel is already set.
3972
3973 * read.c (potable): Add this_gcc_requires_the_gnu_assembler in all
3974 lower-case, in case we're ignoring case of opcodes in the input
3975 file.
3976
3977 * doc/as.texinfo (.section): Document as unavailable for a.out
3978 type formats.
3979
3980 * config/tc-alpha.c (machine): New variable.
3981 (load_insn): New macro.
3982 (load_insn_table): New function.
3983 (md_begin): Call load_insn_table, once for basic instructions and
3984 once for appropriate PAL instruction table.
3985 (md_parse_option): Set `machine' based on -m##### arguments.
3986 * config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from
3987 alpha_opcodes.
3988 (alpha_pal21164_opcodes): New table.
3989 (NUM21064OPCODES, NUM21164OPCODES): New macros.
3990
3991 * configure.in (target i386-*-netbsd0.8): Use 386bsd emulation.
3992
3993 * doc/Makefile.in (install-info-gasp): Use $$dir when installing
3994 file.
3995
0221ddf7
ILT
3996Wed Jun 1 10:48:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3997
3998 * config/tc-mips.c (mips_ip): Force floating point values to be
3999 aligned correctly.
4000
488442d4 4001Fri May 27 10:05:53 1994 Ken Raeburn (raeburn@cygnus.com)
c06e55d9
KR
4002
4003 Merged in changes from gas-2.3 net release:
4004
4005 * Makefile.in (VERSION): Updated to cygnus-2.3.1.
4006
4007 * config/obj-vms.c: Replaced unchecked uses of malloc with
4008 xmalloc.
4009
4010 * listing.c (list_symbol_table): Only test BFD64, not
4011 BFD_ASSEMBLER too.
4012
314628f6
KR
4013 * config/obj-coff.c (fixup_segment) [BFD_ASSEMBLER]
4014 [DIFF_EXPR_OK]: Don't check pcrel, just convert it.
c06e55d9
KR
4015
4016 * config/obj-vms.c: Removed lots of extra semicolons after
4017 compound statements.
4018 (strchr): Don't declare here.
4019
4020 * config/ho-vax.h (realloc): Declare.
4021
4022 * config/ho-vms.h (strchr, strdup): Declare.
4023
4024 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Accept and ignore
4025 option `-q'.
4026
4027 Wed May 18 20:50:35 1994 Pat Rankin (rankin@eql.caltech.edu)
4028
4029 * config/obj-vms.h (DBG_S_C_SQUAD, DBG_S_C_UQUAD): define these
4030 new VMS symbol-type macros; signed and unsigned quadword integers,
4031 for `long long' support. Their values come from the existing
4032 DSC$K_DTYPE_QU and DSC$K_DTYPE_Q macros in <descrip.h>. The
4033 VMS debugger now recognizes `long long' variables correctly.
4174e052 4034 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
c06e55d9
KR
4035 for gcc2's predefined types "long double" (same as double, as
4036 per gcc's current state), "long long int", "long long unsigned
4037 int", and final `otherwise' case (to avoid uninitialized type
4038 and size fields). [caveat: predefined types "complex int",
4039 "complex float", "complex double", and "complex long double" are
4040 still missing.]
4041
4042 * config/ho-vms.h (EXIT_FAILURE): define as 0x10000002 instead
4043 of 0, because the latter indicates success rather than failure
4044 when passed to `exit' or return from `main' compiled by gcc2.
4045
4046 * config/obj-vms.c (array_suffix, generate_suffix): replace two
4047 hardcoded `0xa3's with macro DBG_S_C_ADVANCED_TYPE from obj-vms.h.
4048 (VMS_typedef_parse): eliminate redundant if-then-else when
4049 allocating new symbol entry and linking it to VMS_Symbol_type_list.
4050
4051 Tue May 17 20:47:31 1994 Pat Rankin (rankin@eql.caltech.edu)
4052
4053 * config/obj-vms.c (Write_VMS_MHD_Records): don't try to interpret
4054 the contents of the GAS_VERSION string when falling back to it for
4055 language processor identification.
4056
4057 * make-gas.com, vmsconf.sh (ENVIRON): fix misspelling of
4058 `psect_attr' in linker options.
4059
4060 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
4061
4062 * configure.bat: update to latest makefile.in
4063 * config/te-go32.h: [new] go32's environment
4064
a193acc0
ILT
4065Fri May 20 17:59:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4066
4067 * as.h: Don't declare parameters for strstr.
4068
f9c57637
ILT
4069Thu May 19 15:40:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4070
4071 * config/tc-sparc.c (md_section_align): Don't change the size if
4072 OBJ_ELF.
4073
ac7f7dfe
ILT
4074Wed May 18 13:08:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4075
4076 * Makefile.in (install): Redirect ln output to /dev/null. If ln
4077 fails on gasp, install gasp.new, not gasp.
4078
44e8d616
JL
4079Wed May 18 09:16:36 1994 Jeff Law (law@snake.cs.utah.edu)
4080
4081 * config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA for
4082 absolute calls.
4083
ee8b8346
JL
4084Tue May 17 12:50:46 1994 Jeff Law (law@snake.cs.utah.edu)
4085
4086 * config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
4087 on a partial completer match.
4088
3315c7c7
JL
4089Mon May 16 12:03:49 1994 Jeff Law (law@snake.cs.utah.edu)
4090
4091 * config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind
4092 throughout code.
4093 (is_complex): Delete definition and support for complex relocation
4094 types.
4095 (tc_gen_reloc): Delete special unwind crud for ELF. Simplify and
4096 rewrite ELF code based on 94-02-02 PA ELF draft spec.
4097 (pa_build_unwind_subspace): Use standard PARISC_DIR32 relocs for
4098 the unwind descriptors.
4099
c794f0aa
SC
4100Fri May 6 14:13:15 1994 Steve Chamberlain (sac@cygnus.com)
4101
69cb5925 4102 * config/go32.mh: New makefile fragment for go32 crossing.
c794f0aa
SC
4103 * configure.in (host==go32): Use new fragment.
4104
2db90a63
ILT
4105Fri May 6 14:35:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4106
4107 * gasp.c: Include libiberty.h.
4108 (main): Remove unused variable i.
4109
4110 * config/tc-ppc.c (md_begin): When using -many, permit comparison
4111 instructions to appear multiple times in the opcode table.
4112
59232011
KR
4113Thu May 5 19:14:43 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4114
2db90a63
ILT
4115 * Makefile.in (VERSION): Update to 2.2.90.
4116
fbefddfb
KR
4117 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Don't permit additions
4118 to the symbol table if it's already been set in the output bfd.
4119 (symbol_begin) [! EMIT_SECTION_SYMBOLS] [RELOC_REQUIRES_SYMBOL]:
4120 Don't use bfd_abs_section.symbol for gas absolute symbol.
4121
59232011
KR
4122 * doc/Makefile.in (distclean, clean-dvi, clean-info): Delete gasp
4123 files too.
4124
6d41de19
ILT
4125Thu May 5 18:12:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4126
4127 * config/tc-mips.c (mips_emit_delays): Make call to
4128 mips_no_prev_insn unconditional.
4129
a139d99b
KR
4130Thu May 5 17:25:38 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4131
4132 * config/obj-coff*.*: Merged coffbfd versions into coff versions,
4133 with a single "#ifdef BFD_ASSEMBLER" controlling most of it for
4134 now. Deleted obj-coffbfd.* files.
4135 * configure.in: Always use obj-coff.* for COFF targets.
4136
9267b020
KR
4137Wed May 4 13:34:11 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4138
a139d99b
KR
4139 * config/te-dpx2.h (TARGET_FORMAT, REGISTER_PREFIX_OPTIONAL):
4140 Define.
4141 * configure.in (m68k-bull-sysv3*): Enable.
4142
9267b020
KR
4143 * config/coff_gnu.h: Deleted.
4144
9fc63ce0
ILT
4145Wed May 4 11:29:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4146
2237e240
ILT
4147 * config/tc-m68k.h (TARGET_FORMAT): If not TE_SUN3, define as
4148 "a.out-zero.big".
4149
9fc63ce0
ILT
4150 * config/obj-coffbfd.c (fixup_segment): Make common symbol and PC
4151 relative adjustments when TE_LYNX is defined as well as when
4152 TC_I386 is defined.
4153
a3547e53
KR
4154Wed May 4 02:29:21 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4155
3f048548
KR
4156 * as.h (strstr): Restore declaration.
4157 (subseg_get) [BFD_ASSEMBLER]: Declare.
4158
4159 * write.c (write_object_file): If obj_adjust_symtab is defined,
4160 invoke it. Then call set_symtab, and finally invoke *_frob_file
4161 hooks.
4162 * config/obj-coff.c (coff_adjust_symtab): Renamed from
4163 coff_frob_file.
4164 * config/obj-coff.h (coff_adjust_symtab): Changed declaration
4165 accordingly.
4166 (obj_adjust_symtab): Macro also changed.
4167
a3547e53
KR
4168 * configure.in (i386-*-gnu*): New target, handled like i386-mach.
4169
4170Tue May 3 21:04:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4171
4172 * config/obj-coff.h (TARGET_FORMAT) [TC_I960]: Select little
4173 endian version.
4174
4175 * config/obj-coffbfd.h (TARGET_FORMAT) [TC_I960]: Ditto.
4176
4177 * config/obj-coff.c (coff_frob_section): Round up the size of
4178 every section to a multiple of the alignment, so that BFD doesn't
4179 surprise us.
4180
4181 Eliminate many simple differences between the two COFF back ends:
4182
4183 * config/obj-coffbfd.c: Removed all uses of DEFUN and DEFUN_VOID.
4184 Made minor stylistic changes, deleted some register declarations.
4185 (stack_top): Deleted.
4186 (symbol_to_chars): Use absolute_section and reg_section instead of
4187 the corresponding SEG_* symbols.
4188 (obj_coff_endef, tag_find_or_make, fixup_segment): Likewise.
4189 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
4190 Moved to just after pseudo-op table. All functions now static.
4191 (stack_delete): Removed declaration.
4192 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
4193 after stack functions.
4194 * config/obj-coffbfd.h: Reordered some declarations and macros.
4195 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
4196 (stack typedef): Deleted.
4197 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
4198 (SYM_AUXENT): New macro.
4199 (SA_GET_*, SA_SET_*): Define in terms of SYM_AUXENT when feasible.
4200 (SF_GET_*, SF_SET_*): Define in terms of SF_GET when feasible.
4201 (SA_GET_SYM_TAGNDX, SA_GET_SYM_ENDNDX, SA_SET_SYM_TAGNDX,
4202 SA_SET_SYM_ENDNDX, object_headers typedef, data_section_header,
4203 text_section_header): Delete non-BFD_HEADERS versions, since we
4204 always define that symbol now.
4205
4206 * config/obj-coff.c (stack_top): Deleted.
4207 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
4208 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Change
4209 argument name from "ignored" to "ignore".
4210 (obj_coff_val): Use frag_now_fix.
4211 (obj_pseudo_table): Removed IGNORE_DEBUG version, since it doesn't
4212 get used.
4213 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
4214 Moved to just after pseudo-op table. All functions now static.
4215 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
4216 after stack functions.
4217 * config/obj-coff.h: Reordered some declarations and macros.
4218 Protected against multiple inclusions.
4219 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
4220 (stack typedef): Deleted.
4221 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
4222 (stdoutput): Deleted declaration.
4223 (TARGET_FORMAT) [TC_I386]: Don't define if already defined.
4224
1b96bdce
ILT
4225Mon May 2 17:09:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4226
4227 * subsegs.h (segment_info_type): Use fix_tail field even if
4228 BFD_ASSEMBLER.
4229 * subsegs.c (subseg_change): Initialize fix_tail field.
4230 (subseg_get): Likewise.
4231 * write.c (frags_chained): New static variable.
4232 (fix_new_internal): If frags_chained is set, use fix_root and
4233 fix_tail from seg_info (now_seg), rather than frchain_now.
4234 (chain_frchains_together_1): Set fix_tail field.
4235 (chain_frchains_together): Set frags_chained.
4236
17f0b355
KR
4237Thu Apr 28 01:39:15 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4238
4239 * config/tc-mips.c (s_option): Only refer to g_switch_* variables
4240 if GPOPT is defined.
4241 (s_abicalls): Ditto.
4242 (md_apply_fix): Cast char* to unsigned char* to avoid pointer
4243 mismatch.
4244
fa1a86f3
SC
4245Wed Apr 27 11:06:32 1994 Steve Chamberlain (sac@cygnus.com)
4246
4247 * configure.in (i386-*-go32): Uses coff now.
69cb5925 4248 * gasp.c (main): Now takes -D on command line.
fa1a86f3
SC
4249 (show_usage): Describe new options.
4250
b46f83f2
KR
4251Tue Apr 26 17:10:30 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4252
4253 * listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and
4254 "NO UNDEFINED SYMBOLS" if there aren't any, instead of displaying
4255 the header with an empty list.
4256
fb51366f
KR
4257 * config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
4258 also before setting STYP_NOLOAD for .bss section.
4259
926ffe94
KR
4260 * config/tc-m68k.c (flag_reg_prefix_optional): New variable.
4261 Initialized to value of REGISTER_PREFIX_OPTIONAL, if defined, or
4262 zero.
4263 (m68k_reg_parse): If flag_reg_prefix_optional is set, permit
4264 register prefix to be absent.
4265 (m68k_ip_op): Accept `&' also for immediate constants.
4266 (insert_reg): Don't bother with (two!?) sanity checks of the
4267 symbol table when inserting each register.
4268 (m68k_parse_long_option): New function. Set
4269 flag_reg_prefix_optional if "register-prefix-optional" is passed.
4270 * config/tc-m68k.h (REGISTER_PREFIX): Always define if not already
4271 defined.
4272 (OPTIONAL_REGISTER_PREFIX): Don't define.
4273 (REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero
4274 or one depending on M68KCOFF.
4275
4276 Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
4277 * config/tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC):
4278 Define as macros instead of enumerators, since the Apollo compiler
4279 can't handle "enumVal1, enumVal2 = enumVal1" when defining an enum
4280 type.
4281 (make_pcrel_absolute) [NO_PCREL_RELOCS]: New function.
4282 (tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE,
4283 R_DIR16, and R_DIR32 relocs.
4284 * config/tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC):
4285 Use Apollo versions.
4286 [TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine. That is,
4287 do include the optional header for Apollo target.
4288 (COFF_MAGIC): Don't define as MC68MAGIC if it's already defined.
4289
4290 * config/tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%'
4291 can be used within a label name.
4292
4293 * config/tc-m68k.h (m68k_init_after_args): Declare.
4294 (tc_init_after_args): Define as m68k_init_after_args.
4295 * config/tc-m68k.c (m68k_init_after_args): New function,
4296 containing one-shot code from md_assemble. Added warning for
4297 combination of 68040 and 68851.
4298 (md_assemble): Startup-time code deleted.
4299
497c179a
ILT
4300Mon Apr 25 16:19:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4301
4302 * doc/Makefile.in (clean, distclean): Remove asconfig.texi.
4303
f38cd6ec
JL
4304Sun Apr 24 00:13:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4305
4306 * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break
4307 instruction) is unsigned.
4308
92867d8e
ILT
4309Fri Apr 22 17:58:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4310
4311 * config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value
4312 and bfd_ecoff_set_regmasks to set the GP value and the register
4313 masks, rather than using the now obsolete fake .reginfo section.
4314
e860dfd0
KR
4315Fri Apr 22 15:17:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4316
4317 * listing.c (list_symbol_table): Don't print register symbols as
4318 undefined.
4319
988238d3
KR
4320 * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip
4321 underscores, since symbol_new will already have done it.
4322 * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto.
4323
a926dd6a
KR
4324 * as.c (main): If tc_init_after_args is defined, invoke it after
4325 all arguments have been processed.
4326
4327 Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
4328 * as.c (perform_an_assembly_pass) [TE_APOLLO]: Create .wtext
4329 section instead of .text. Call create_target_segments.
4330 * read.c (demand_copy_string): No longer static.
4331
6fdc26e6
ILT
4332Thu Apr 21 15:50:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4333
4334 * config/tc-mips.c (append_insn): Permit branches to be switched
4335 with the preceding instruction even if .set nobopt has been seen.
4336 .set nobopt actually controls whether to bring up an instruction
4337 from the branch target, which gas does not currently support.
4338
a6652b1c
KR
4339Wed Apr 20 18:46:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4340
71b4de6f
KR
4341 * config/obj-coff.h, config/obj-coff.c: Deleted all code used only
4342 when BFD_ASSEMBLER is not defined, and all conditionals relating
4343 to such code. No such targets remain.
4344
4345 Fixes for stabs-in-coff:
4346 * config/obj-coff.c: Include subsegs.h.
4347 (coff_frob_section): New function.
4348 (obj_coff_init_stab_section): New function.
4349 * config/obj-coff.h (obj_coff_init_stab_section,
4350 coff_frob_section): Declare.
4351 (obj_frob_section): New macro; uses coff_frob_section.
4352 (INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section.
4353
a6652b1c
KR
4354 * config/tc-sparc.c (md_section_align): Always round up to
4355 multiple of alignment power specified in bfd target vector.
d924d209
KR
4356
4357 * gasp.c: Include ctype.h.
4358
19990560
KR
4359Mon Apr 18 21:08:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4360
4361 * doc/Makefile.in, doc/as.texinfo: Renamed asdoc-config.texi to
4362 asconfig.texi.
4363
4364 * doc/Makefile.in (install-info-as, install-info-gasp): Get file
4365 names from source directory without pathname.
4366
4367 * config/obj-vms.c (VMS_write_object_file): While looking for
4368 register mask, skip empty fill frags caused by enabling listing
4369 output.
4370
4371 * config/ho-sysv.h: Include string.h.
4372
4373 * doc/internals.texi: New (well, recently added) file. Just added
4374 info on as_warn and friends.
4375
9de7c1fc
JL
4376Mon Apr 18 14:28:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4377
4378 * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in
4379 defaults for defined, private, and spnum fields for the
4380 $TEXT$ and $PRIVATE$ spaces. Do not clobber spnum. Do
4381 not reset the segment if just updating a space.
4382 (pa_spaces_begin): Set BFD section flags for all built-in
4383 subspaces.
4384
e904716c
ILT
4385Fri Apr 15 10:51:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4386
37032d95
ILT
4387 * ecoff.c (first_proc_ptr): New static variable.
4388 (add_procedure): Set first_proc_ptr if it hasn't been set.
4389 (ecoff_build_lineno): If the first procedure does not start at
4390 address zero, insert a dummy line to compensate.
4391
e904716c
ILT
4392 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
4393 as well as as.new.
4394
d6f98c55
KR
4395Thu Apr 14 15:12:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4396
4397 * expr.c (operand): Try to parse "0f" and "0b" sequences as
4398 floating point and binary numbers respectively; if it doesn't
4399 work, treat them as local labels.
4400
c92d9ee9
KR
4401 * Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
4402 * configure.in: Set ALL_OBJ_DEPS in output Makefile.
4403
4404 Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu>
4405 (Charles Bailey):
4406 * vmsconf.sh: In generated file, get ".obj" suffix right, build
4407 source files from other directories into objects in the current
4408 directory, and specify PSECT attributes explicitly to linker.
4409 Also added missing label.
4410 * Makefile.in (stamp-mk.com): Reference new variable
4411 VMS_OTHER_OBJS for list of non-local object files, instead of
4412 listing them here.
4413 (VMS_OTHER_OBJS): New variable, added more libiberty files.
4414 * make-gas.com: Regenerated.
4415
4416 * config/ho-vms.h (unlink): Define as delete.
4417
4418 * config-gas.com: Fix quoting on TARGET_CANONICAL definition.
4419 Delete files before creating them.
4420
1a69212c
ILT
4421Thu Apr 14 13:34:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4422
b3cd8555
ILT
4423 * Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.
4424
1a69212c
ILT
4425 * config/tc-mips.h (DIFF_EXPR_OK): Define.
4426 * config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
4427 certain cases of 'i', 'j' and 'o'. Change 'u' to take an
4428 argument, the reloc type.
4429 (load_register): Pass reloc type to macro_build for 'u'.
4430 (macro): Likewise. For M_LA_AB permit a difference expression
4431 when generating embedded PIC code between an arbitrary symbol and
4432 a symbol in the .text section.
4433 (mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
4434 BFD_RELOC_PCREL_LO16 to be emitted.
4435 (md_apply_fix): Check that most relocs are not PC relative.
4436 Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
4437 (tc_gen_reloc): Change #error to as_fatal. Handle
4438 BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
4439
cc886e3d
SS
4440Tue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com)
4441
4442 * subsegs.c (subsegs_begin): Call memset with args in the correct
4443 order.
4444 (subseg_get): Clear newly allocated seginfo, set its pointer slots
4445 to NULL instead of 0.
4446
05210990
JL
4447Mon Apr 11 09:00:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4448
caed9e82
JL
4449 * config/tc-hppa.c (pa_procend): Handle case where label was
4450 defined after the .proc directive.
4451
05210990
JL
4452 * config/tc-hppa.c (pa_procend): Give an error if we encounter a
4453 procend for a procedure without a name.
4454
1c803e52
ILT
4455Thu Apr 7 14:28:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4456
4457 * config/tc-mips.c (macro): Pass NULL for expression argument to
4458 macro_build for nori case.
4459 (SWITCH_TABLE): Define.
4460 (mips_force_relocation): Force a relocation for a switch table
4461 entry.
4462 (md_apply_fix): Write switch table entry value into file.
4463 (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry,
4464 and set the addend to the difference between the reloc address and
4465 the subtrahend.
4466
0b503989
JL
4467Thu Apr 7 10:38:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4468
4469 * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.
4470 (elf_tc_make_sections): Likewise.
4471 (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls.
4472
4473 * config/tc-hppa.c (hppa_tc_make_sections): Delete function.
4474 (hppa_tc_symbol): Likewise.
4475
4476 * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and
4477 elf_tc_make_sections stuff. It was there to support PA braindamage
4478 which has been fixed, and in the case of elf_tc_make_sections is
4479 redundant with elf_tc_final_processing.
4480
f39a73b1
JL
4481Wed Apr 6 20:48:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4482
4483 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
4484 manufacturer.
4485
f3645945
ILT
4486Tue Apr 5 15:48:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4487
4488 * config/tc-mips.c (mips_ip): For case 'o', when generating
4489 embedded PIC code, accept the difference between two local symbols
4490 as being constant.
4491 (mips_force_relocation): Only force a reloc to be generated for a
4492 PC relative fixup.
4493 (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup
4494 value into the file if the fixup will not generate a reloc.
4495
03fcf1f8
KR
4496Tue Apr 5 11:14:14 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
4497
4498 * config/tc-sparc.c (s_reserve): If section passed isn't bss,
4499 don't spew remainder of input file in error message.
4500 (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error
4501 message with reloc type and try to process remainder of file.
4502
4503 * doc/Makefile.in (install-info-as, install-info-gasp): New
4504 targets, now explicitly checking $(srcdir) for info files.
4505 (install-info): Depend on both of them; do nothing more.
4506
79381848
JL
4507Mon Apr 4 17:06:04 1994 Jeffrey A. Law (law@cygnus.com)
4508
4509 * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.
4510
1e147242
ILT
4511Mon Apr 4 12:39:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4512
1937a665
ILT
4513 * config/tc-ppc.c (ppc_insert_operand): Check PPC_OPERAND_SIGNED
4514 flag rather than signedp field. Only permit extended range if
4515 PPC_OPERAND_SIGNOPT flag is set and assembling in 32 bit mode.
4516 Based on patch from David Edelsohn (edelsohn@npac.syr.edu).
4517
1e147242
ILT
4518 * config/tc-ppc.c (ppc_size): New static variable.
4519 (ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER.
4520 (md_begin): If an instruction has a size specific flag set, only
4521 add it if we are assembling that size.
4522
7ab2e983
ILT
4523Thu Mar 31 16:51:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4524
4525 * config/tc-sparc.c (tc_gen_reloc): Add a gruesome hack to get
4526 cross section PC relative relocs right for COFF and ELF.
4527
75d20ac8
KR
4528Mon Mar 28 14:38:23 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4529
4530 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.
4531 (OBJ_PROCESS_STAB): Don't define.
4532
57afabd0
ILT
4533Mon Mar 28 12:40:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4534
4535 * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber
4536 the type of symbol set symbols which happen to be in the absolute
4537 or undefined section.
4538
882bdc69
ILT
4539Mon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu)
4540
4541 * config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka
4542 RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604),
4543 and -many (all architectures).
4544
de3ffc7a
JL
4545Sun Mar 27 14:04:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4546
69cb5925 4547 * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation
de3ffc7a
JL
4548 involving a function symbol which is not a plabel to zero.
4549 (md_apply_fix): Never pass a function symbol to field_adjust.
4550
5b63f465
ILT
4551Fri Mar 25 17:35:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4552
645f842c
ILT
4553 * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an
4554 N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL.
4555
5b63f465
ILT
4556 * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a
4557 branch with an instruction that uses $at, in case the branch is
4558 later expanded.
4559 (macro): If EMBEDDED_PIC, case M_JAL_A may use $at.
4560 (md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol
4561 to make it pcrel_offset.
4562 (tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to
4563 reloc->address; another gruesome hack to get gas reloc handling to
4564 do the right thing.
4565
11d7c064
KR
4566Thu Mar 24 21:29:29 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4567
4568 * config/tc-alpha.c (alpha_ip): Only set GP prolog size if using
4569 PV register.
4570 (T12): New macro.
4571 (emit_insn): New function.
4572 (md_assemble): Call it.
4573 (alpha_force_relocation): Handle BFD_RELOC_26, for call_pal
4574 instructions.
4575 (lituse_pending): New variable. Set by anything that generates a
4576 LITERAL reloc, cleared by anything that generates a LITUSE reloc,
4577 tested by code that might want to emit a LITUSE reloc.
4578 (emit_unaligned_io): New function. Currently calls md_assemble,
4579 but it should eventually be converted to generate the insn itself
4580 and call emit_insn directly.
4581 (emit_load_unal, emit_store_unal, emit_byte_manip_r,
4582 emit_extract_r, emit_insert_r, emit_mask_r, emit_sign_extend,
4583 emit_bis_r): Likewise.
4584 (alpha_ip, case 'I'): Handle with BFD_RELOC_23.
4585 (alpha_ip, label get_macro): Don't emit the final instruction if
4586 the opcode is zero.
4587 (alpha_ip, case 'B', subcase 'd'): New case, for subword and
4588 unaligned memory access macros.
4589 (md_apply_fix): Handle BFD_RELOC_26. Generate an error message if
4590 the value can't be resolved.
4591
4592Wed Mar 23 16:06:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4593
4594 * config/tc-mips.c (md_parse_option): For -membedded-pic, force
4595 the -G value to 0x7fffffff. For SVR4 PIC options, don't call
4596 bfd_set_gp_size here, it's done in md_begin. Don't permit -G with
4597 -membedded-pic.
4598 (mips_force_relocation): New function.
4599 (md_apply_fix): Set fixP->fx_done appropriately.
4600 (s_change_sec): For EMBEDDED_PIC, change .data and .rdata to
4601 .sdata.
4602 * config/tc-mips.h (TC_FORCE_RELOCATION): Define.
4603 (mips_force_relocation): Declare.
4604 (TC_HANDLE_FX_DONE): Define.
4605
e1b5066f
ILT
4606Tue Mar 22 13:58:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4607
d9aba805
ILT
4608 * config/tc-mips.c (enum mips_pic_level): New enum.
4609 (mips_pic): Change from int to enum mips_pic_level. Change all
4610 uses (0 becomes NO_PIC, 2 becomes SVR4_PIC).
4611 (load_address): Handle EMBEDDED_PIC.
4612 (macro): Handle EMBEDDED_PIC in all PIC cases.
4613 (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If
4614 OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept
4615 -non_shared to use NO_PIC (this is how the Irix 5 assembler
4616 works). Do not permit -G with SVR4_PIC.
4617 (s_abicalls): Warn if -G was used, and force -G 0.
4618 (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for
4619 anything but a.out, not just for ELF. For ECOFF, don't generate a
4620 BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.
4621
e1b5066f
ILT
4622 * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.
4623
4624Sun Mar 20 16:31:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4625
4626 * config/tc-hppa.c (create_new_space): Use ints, not chars as
4627 parameters to avoid losing when compiling with HP CC.
4628 (create_new_subspace, update_subspace, fix_new_hppa): Likewise.
4629
1871f91a
KR
4630Sun Mar 20 14:43:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4631
c37f6138
KR
4632 * Makefile.in (config-stamp): If `defs' is defined, emit a
4633 preprocessor directive to create a macro named by this value into
4634 config.new; don't explicitly go for BFD_ASSEMBLER.
4635 * configure.in: Define `defs', not `BFDDEF'. Set it to
4636 MANY_SEGMENTS for any obj-coffbfd target.
4637 * config/obj-coffbfd.h (BFD_HEADERS, BFD): Define.
4638 * config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS,
4639 or BFD_HEADERS.
4640 (LOCAL_LOADLIBES): Deleted.
4641 * config/m68kcoff.mt (TDEFINES): Don't define those macros.
4642 * config/m88kcoff.mt (TDEFINES): Ditto.
4643 * config/ebmon29k.mt: Deleted.
4644 * config/h8300hds.mt: Deleted.
4645 * config/ic960coff.mt: Deleted.
4646 * config/sparc.mt: Deleted.
4647 * config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
4648 * config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
4649 * config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
4650 * config/z8k.mt (LOCAL_LOADLIBES): Deleted.
4651 (TDEFINES): Don't define the coffbfd macros.
4652
4653 * Makefile.in: Insert makefile fragments before OBJS definition.
4654 (OBJS): Add $(TE_OBJS).
4655
3680de74
KR
4656 * config/obj-coff.c (obj_pseudo_table): Supply "section"
4657 unconditionally.
4658
1871f91a
KR
4659 * write.c (set_symtab): Define only if BFD_ASSEMBLER.
4660
c20c7506
JL
4661Sun Mar 20 12:06:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4662
4663 * Makefile.in (STAGESTUFF): Add gasp.new.
4664
634233a3
KR
4665Fri Mar 18 20:09:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4666
1cf7548e
KR
4667 * write.c (symbol_table_frozen): New variable, to be set after
4668 bfd_set_symtab is called.
4669 (dump_section_relocs): Note whether a symbol is a section symbol
4670 or not.
4671 (adjust_reloc_syms): For now, always supply an absolute symbol for
4672 fixups without symbols but not yet `done'. Use section_symbol to
4673 get the symbol, instead of going directly for abs_symbol.
4674 (write_relocs) [DEBUG4]: Abort if any symbol referred to by a
4675 reloc is not a section symbol and is not in the symbol table.
4676 (set_symtab): New function, broken out from write_object_file.
4677 Counts symbol table instead of relying on an earlier count.
4678 (write_object_file): Call set_symtab, but do it after potentially
4679 invoking the *_frob_file macros. Don't bother counting symbols.
4680 Call symbol_remove, instead of expanding it in place. Moved the
4681 conditionalized `object_file_size' declaration down to
4682 conditionalized block where it's used. When using the absolute
4683 symbol for a fixup without a symbol, set sy_used_in_reloc.
4684 (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get
4685 the correct symbol for the absolute section.
4686
ec3c65e1
KR
4687 * subsegs.c (section_symbol): Use symbol_new instead of
4688 symbol_make, since we may want it to go into the symbol table.
4689 Make the new symbol have internal linkage. If
4690 obj_sec_sym_ok_for_reloc says it's okay, use the BFD section
4691 symbol with the newly created GAS symbol.
4692 (obj_sec_sym_ok_for_reloc): Default to always returning 0.
4693 * config/obj-aout.h (obj_sec_sym_ok_for_reloc) [BFD_ASSEMBLER]:
4694 New macro.
4695 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): New macro.
4696
4697 * config/tc-sparc.c: Include subsegs.h.
4698 (in_signed_range): New function.
4699 (sparc_ip): Use it.
4700 (sparc_ip, case 'i'): Use BFD_RELOC_SPARC13, not _BASE13.
4701 (sparc_ip, label "immediate"): Reject constants for pcrel
4702 instructions only if the relocation type indicates a "call"
4703 instruction and the offset is within range of a "jmpl %g0". If
4704 it's not in range, use the absolute section symbol plus an offset.
4705 (md_apply_fix): Use in_signed_range. Combined _SPARC13 and
4706 _BASE13 cases.
4707 (tc_gen_reloc): Permit BFD_RELOC_SPARC13.
4708
1be3cf74
KR
4709 * config/ic960coff.mt (TDEFINES): Fixed typo (MANY_SECTIONS, not
4710 MANY_SEGMENTS).
4711
634233a3
KR
4712 * configure.in: Eliminated all targets using obj-coff but not
4713 defining BFD_ASSEMBLER; I think all such targets that are
4714 supported will be matched by real CPU-OS combinations earlier in
4715 the case statement.
4716 (targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted. Made
4717 some comments about the dpx2 configuration, but left it disabled,
4718 since it couldn't be reached before.
4719 (target a29k-amd-ebmonold): Deleted.
4720
49ccc555
JL
4721Thu Mar 17 13:36:09 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4722
4723 * config/tc-hppa.c (pa_import): Correctly handle importing of an
4724 already defined symbol.
4725
23dc1ae3
ILT
4726Wed Mar 16 17:11:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4727
614a3211
ILT
4728 * config/tc-mips.c (mips_ip): Only accept overly large values for
4729 the 'j' operand if there are no further alternatives for this
4730 instruction.
4731
d6e6bc1c
ILT
4732 * config/obj-coffbfd.c (adjust_stab_section): Initialize
4733 stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it
4734 is not SEG_UNKNOWN rather than checking whether it is >= 0.
4735
23dc1ae3
ILT
4736 * config/tc-mips.c (mips_align): Take new argument, label, and use
4737 it instead of global insn_label.
4738 (s_align, s_cons, s_float_cons, s_gpword): Save insn_label before
4739 call to mips_emit_delay and pass it to mips_align.
4740
4741Wed Mar 16 11:54:12 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4742
69cb5925 4743 * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.
c38c91da 4744
f2ada910
JL
4745 * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
4746 argument to a .callinfo directive. Don't loop forever on errors.
4747
69cb5925
KR
4748 * config/tc-hppa.c (pa_equ): Use pa_parse_number so that we can
4749 use pre-defined registers as arguments.
23dc1ae3 4750
954979ca
KR
4751Mon Mar 14 14:29:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4752
dbc529c4
KR
4753 * write.c (write_object_file): Check both S_IS_LOCAL and
4754 S_IS_EXTERNAL when deciding whether to discard a symbol.
4755
4756 * config-gas.com: Scan Makefile.in, not version.c, for current
4757 version number. Delete all versions of temp files when finished
4758 with them. Create config.h.
4759
4760 * config/obj-vms.c (VMS_Initialized_Data_Size): Cache symbol
4761 values to reduce number of lookups with S_GET_VALUE. Skip debug
4762 symbols to avoid "a really nasty bug". (From Holger Teutsch,
4763 holger@botbso.rhein-main.de.)
4764 (VMS_write_object_file): For "__vt.*" symbols, set S_GET_OTHER
4765 field. (Also from Holger Teutsch.) Watch for a would-be register
4766 mask that spans frags.
4767
4768 * config/obj-coffbfd.c (obj_coff_line): Set symbol lnno field with
4769 this_base, not line_base. (Patch from Andreas Arens,
4770 ari@obelix.av.rwth-aachen.de.)
4771
4772 * config/obj-aout.c (obj_crawl_symbol_chain): Retain symbols that
4773 look local if they're exported or undefined. Used to be done for
4774 i960 only.
4775
4776 * read.c (s_lcomm, s_comm): Print symbol name being redefined.
4777 Get it from the looked-up symbol, instead of using the string from
4778 the input stream, which is no longer null-terminated.
4779 (LEX_PCT): New macro, defaults to 0.
4780 (lex_type): Use it for `%'.
4781
4782 * config/tc-vax.c (md_parse_option): Handle `-h#' option for VMS.
4783 (vip_op): Now static, and returns void. Callers changed. Added
4784 forward decl.
4785 (vip): Ditto. Call as_fatal directly if a program bug is
4786 detected.
4787 (op_hash): Let default initialization suffice.
4788
954979ca
KR
4789 * Makefile.in (literal.o): Provide dependencies.
4790
4791 * configure.in: Set new makefile variable OPCODES_LIB.
4792 * Makefile.in (LIBS): Use it.
4793
4794 * Makefile.in (make-gas.com, stamp-mk.com): New targets.
4795 * vmsconf.sh: New file.
4796 * make-gas.com: Regenerated from new script.
4797
4798 * configure.in (sparc*-*-lynxos*): Handle any version number
4799 suffix after "lynxos". Set emulation to lynx.
4800
4801Mon Mar 14 11:30:49 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4802
4803 * config/obj-coff.c (obj_coff_section): Delete declaration.
4804
62ea7974
ILT
4805Fri Mar 11 22:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4806
4807 * config/tc-ppc.c (md_pcrel_from): Return 0 for undefined ELF
4808 symbols.
4809 (ppc_is_toc_sym): Change .toc to .got.
4810 (md_apply_fix): Change handling of ELF relocs.
4811 (tc_gen_reloc): Likewise.
4812
63ca2e81
KR
4813Fri Mar 11 17:42:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4814
4815 * config/obj-vms.c (Close_VMS_Object_File): Add comment pointing
4816 out some code that doesn't belong in this file.
4817
4818 * config/obj-vms.h: Include aout/stab_gnu.h.
4819 (N_GSYM, ..., N_LENG): Deleted.
4820 (NO_RELOC): Undefine before defining as part of enum reloc_type.
4821
4822 * config/tc-alpha.c: Add comment questioning need for all the
4823 characters in FLT_CHARS.
4824
4825 * as.c (main) [OBJ_VMS]: Don't call output_file_close.
4826
4827 * config/obj-ecoff.c (ecoff_frob_file): Set strict order for
4828 sections with recognized names, before computing VMA values.
4829
be22008b
ILT
4830Fri Mar 11 17:56:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4831
4832 * config/tc-mips.c (mips_ip): Accept numbers between 0x8000 and
4833 0xffff for 'j' to be compatible with MIPS assembler. These
4834 numbers are actually treated as negative.
4835
2c6db5a1
DE
4836Thu Mar 10 13:36:29 1994 Doug Evans (dje@canuck.cygnus.com)
4837
4838 * config/tc-sparc.h (LOCAL_LABEL): Local labels are .Lfoo.
4839
9e12fbbc
KR
4840Tue Mar 8 21:17:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4841
4842 * config/obj-coff.c: Minor formatting/stylistic changes, plus:
4843 (obj_coff_section): Declare.
4844 (obj_pseudo_table): Make it available only if MANY_SECTIONS.
4845 (obj_symbol_to_chars) [CROSS_COMPILE]: Some attemps to make this
4846 work. It still doesn't. It now fails to compile, instead of
4847 silently compiling to do nothing.
4848 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define only if
4849 MANY_SECTIONS.
4850 (OBJ_PROCESS_STAB) [! MANY_SECTIONS]: New macro, just emits
4851 warning.
4852
4853 Handle Alpha load-immediate-FP pseudo-instructions:
4854 * config/alpha-opcode.h (ldif, ldig, ldis, ldit): New patterns.
4855 * config/tc-alpha.c (lit8_sec, lit4_sec, lit8_sym, lit4_sym): New
4856 variables.
4857 (create_literal_section): New function.
4858 (create_lita_section): Now a macro.
4859 (get_lit8_offset, get_lit4_offset): New functions.
4860 (maybe_set_gp): New function.
4861 (select_gp_value): Call it.
4862 (load_expression): Preserve addend if symbol is a section symbol.
4863 (alpha_ip): Handle new operand type `F' for floating-point
4864 constants; store them in .lit{4,8} sections.
4865 (alpha_ip, case 'G'): Emit LITUSE relocations for symbol exprs.
4866
4867 * config/tc-i386.c (smallest_imm_type): Never return Imm1.
4868
2bac8c54
SC
4869Tue Mar 8 14:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4870
4871 * config/obj-coffbfd.c (w_strings): Only copy strings out if
4872 their symbols are going to be written.
4873
d16938f5
ILT
4874Tue Mar 8 11:49:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4875
4876 * messages.c (as_perror): Declare arguments const.
4877 * as.h (as_perror): Change declaration.
4878
8ea7f4e8
ILT
4879Mon Mar 7 16:08:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4880
4881 * config/tc-mips.c (load_address): When calling frag_grow, allow
4882 for the (up to) two nops which may be inserted by append_insn if
4883 mips_optimize is 0.
4884 (macro): Likewise.
4885
fa47b47e
DE
4886Thu Mar 3 11:37:55 1994 Doug Evans (dje@canuck.cygnus.com)
4887
4888 * config/atof-ieee.c (make_invalid_floating_point_number):
4889 Add cast to avoid warning from gcc.
4890
34b16850
JL
4891Wed Mar 2 10:31:01 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4892
69cb5925 4893 * config/tc-hppa.c: Add a few casts to make HP C compiler happy.
fb338f1d 4894
69cb5925 4895 * config/obj-som.c (obj_som_version, obj_som_copyright): Be
fb338f1d 4896 prepared
69cb5925 4897 to handle an error from bfd_som_attach_aux_hdr.
fb338f1d 4898
34b16850
JL
4899 * config/tc-hppa.h: Wrap ELF specific decls inside an ifdef.
4900
994fde6d
KR
4901Mon Feb 28 15:03:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4902
4903 * config/tc-alpha.c (md_atof): Omit warning about FP values.
4904 (line_comment_chars): Add ! to list.
4905 (md_apply_fix): Do process 32- and 64-bit relocations.
4906
4907 * config/obj-coffbfd.c (obj_coff_lcomm): Put "#if 0" around the
4908 unused parts (most of the function).
4909 (obj_coff_init_stab_section): Cast alloca result.
4910
4911 * configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and
4912 gas_target ic960coff.
4913 * config/ic960coff.mt: New file.
4914 * config/obj-coffbfd.h [TC_I960]: Include coff/i960.h.
4915 (TARGET_FORMAT) [TC_I960]: Use coff-Intel-little.
4916 * config/te-ic960.h (CROSS_COMPILE): Don't undef this. We'll
4917 always build little-endian object files.
4918 * config/tc-i960.c (md_reloc_size): Don't define at all if BFD or
4919 BFD_ASSEMBLER is defined.
4920 (mem_fmt): Since COFF doesn't handle callx relocations yet, treat
4921 them like normal 32-bit relocations.
4922 (md_apply_fix): For callx relocations, store zero.
4923 (tc_bout_fix_to_chars): Store symbol index for all callx
4924 relocations, regardless of link-relax setting.
4925 (tc_coff_fix2rtype, tc_coff_sizemachdep): New functions.
4926 (i960_handle_align) [! OBJ_BOUT]: If link-relax option is
4927 selected, print an error message and clear it.
4928 * config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC,
4929 TC_COUNT_RELOC, TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP,
4930 tc_fix_adjustable): New macros.
4931 (tc_coff_fix2rtype, tc_coff_sizemachdep): Declare.
4932
e03095c9
JL
4933Fri Feb 25 20:56:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4934
4935 * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
4936 (hppa_tc_make_sections): Likewise.
4937 (pa_build_symextn_section): Delete unused function.
4938 (hppa_tc_make_symextn_section): Likewise.
4939 (pa_export): Delete call to pa_build_symextn_section.
4940
4941 * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
4942 (elf_hppa_final_processing): Delete extern decl.
4943 (hppa_tc_symbol): Delete extern decl.
4944
3919ffeb
ILT
4945Fri Feb 25 13:15:31 1994 Ian Lance Taylor (ian@cygnus.com)
4946
4947 * config/obj-coffbfd.c (fill_section): Correct test for whether to
4948 fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).
4949
f95de5d9
KR
4950Thu Feb 24 11:30:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4951
3919ffeb
ILT
4952 * configure.in: Don't require version number for i386-*-mach.
4953
f95de5d9
KR
4954 * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler",
4955 which is ignored by gas, but will cause other assemblers to choke.
4956 Intended for use by gcc ports that require gas instead of native
4957 assemblers.
4958
cb6af928
JL
4959Thu Feb 24 07:10:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4960
4961 * config/ho-hppaosf.h: Fix braino in test for ANSI-C.
4962
08c5812c
JL
4963Wed Feb 23 16:51:43 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4964
4965 * write.c (write_contents): Give the user a reasonable error
4966 message rather than "assertion failed" if bfd_set_section_contents
4967 fails.
4968
c9c45af1
KR
4969Tue Feb 22 10:07:32 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
4970
4971 * config/ho-mach3.h: New file.
4972
9eb5f4b8
ILT
4973Mon Feb 21 11:41:18 1994 Ian Lance Taylor (ian@cygnus.com)
4974
2e5fdb1d
ILT
4975 * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is
4976 now set in bfd/ecofflink.c:ecoff_write_symhdr.
4977
9d90491e
ILT
4978 * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
4979 not bfd_error.
4980 * config/obj-elf.c (elf_frob_file): Likewise.
4981
4982 * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
4983 variables.
4984
c8d02404
ILT
4985 * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__.
4986
9eb5f4b8
ILT
4987 * read.c (read_a_source_file): Use correct arguments to memcpy
4988 (broken 19 Jul 1993). From kjd@pescadero.stanford.edu (Kenneth
4989 Duda).
4990
4d88d6dc
ILT
4991Sun Feb 20 18:01:54 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
4992
4993 * config/obj-coff.h (obj_coff_section): Declare.
4994 * config/obj-coff.c (obj_pseudo_table): For "section", use
4995 obj_coff_section.
4996 (obj_coff_section): Rewrite.
4997
741f4d66
KR
4998Fri Feb 18 14:16:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4999
9e0cbfbb
KR
5000 * configure.in (i386-*-mach3*): New target; uses BFD.
5001 * config/te-mach.h: New file.
5002 * config/obj-aout.c (obj_aout_frob_file): New function.
5003 * config/obj-aout.h (obj_aout_frob_file): Declare it.
5004 (frob_file): New macro.
5005 * config/tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust
5006 pcrel32 relocations.
5007 * config/tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3.
5008
741f4d66
KR
5009 * write.c (write_object_file): Removed register declarations.
5010
5e65fbc8
ILT
5011Thu Feb 17 16:25:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5012
254f8450 5013 Some support for PowerPC ELF.
5e65fbc8
ILT
5014 * configure.in: If cpu is powerpc*, use ppc.
5015 (ppc-*-sysv4*): Use object format elf.
5016 * config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
5017 defined.
5018 (TARGET_ARCH): Make it call ppc_arch.
5019 (ppc_arch): Declare.
5020 (TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
5021 (NO_STRING_ESCAPES): Define.
5022 (LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
5023 * config/tc-ppc.c: Only define a number of functions of OBJ_COFF
5024 is defined.
5025 (md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added
5026 OBJ_COFF specific "bi" and "ei".
5027 (md_parse_option): Fix handling of -u. Make -m601 set
5028 PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q.
5029 (ppc_set_cpu): New function.
5030 (ppc_arch): New function.
5031 (md_begin): Call ppc_set_cpu.
5032 (ppc_insert_operand): For a signed operand accept an unsigned
5033 value, for IBM compatibility.
5034 (ppc_byte): Don't call stringer for strings; instead, treat two
5035 double quotes as a single double quote.
5036 (ppc_comm): Set sy_tc.output for a .lcomm symbol.
5037 (ppc_biei): New function.
5038 (ppc_tc): If not OBJ_COFF, ignore first argument.
5039 (ppc_fix_adjustable): Call as_bad_where, not as_bad.
5040 (ppc_is_toc_sym): New function.
5041 (md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and
5042 BFD_RELOC_8.
5043
f61b81b7
DM
5044Thu Feb 17 09:29:37 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5045
5046 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
69cb5925 5047 bfd_set_error and new error names.
f61b81b7 5048
c25be7f4
KR
5049Tue Feb 15 20:23:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5050
5051 * configure.in: Support i960-vxworks versions > 5.0 as coff.
5052 Default is still bout if no version is specified.
5053
04bde70d
KR
5054 * atof-generic.c (atof_generic): Use switch and strcasecmp instead
5055 of large number of compares when looking for inf/nan values.
5056
b1237b9d
ILT
5057Fri Feb 11 13:13:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5058
5059 * config/tc-mips.c (macro): Do unaligned loads and stores
5060 correctly when big endian, and give errors on overflow rather than
5061 generating incorrect code.
5062
605e1d90
ILT
5063Thu Feb 10 11:24:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5064
5065 * as.c: Include libiberty.h.
5066
5067 * read.c (do_align): Don't define label just_record_alignment
5068 unless it might be used.
5069
5070 * as.c (main): If md_parse_long_option is defined, call it with a
5071 long option.
5072 * config/tc-mips.h (md_parse_long_option): Define.
5073 * config/tc-mips.c (mips_trap): New static variable.
5074 (md_begin): Report an error if mips_trap is set at ISA level 1.
5075 (macro): If mips_trap, use trap instructions instead of break
5076 instructions for overflow and divide by zero detection.
5077 (mips_parse_long_option): New function. Support --trap,
5078 --no-break, --break and --no-trap.
5079 * doc/as.texinfo: Document new options.
5080
5081 * read.c (potable): Add "zero".
5082 * config/tc-i386.c (md_pseudo_table): Remove "zero".
5083 * config/tc-m88k.c (md_pseudo_table): Likewise.
5084
6440d65c
KR
5085Thu Feb 10 01:24:27 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5086
5087 * config/tc-sparc.c (sparc_ip): Reject integer values for
5088 pc-relative operand fields. This forces "call 0" to become "jmpl
5089 %g0,%o7" with no relocations needed.
5090
ddb393cf
ILT
5091Wed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5092
d87c080e
ILT
5093 * as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
5094 * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
5095
ddb393cf
ILT
5096 * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
5097 don't treat backslash specially inside strings.
5098 * read.c (next_char_of_string): Likewise.
5099
66c774bb
SS
5100Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
5101
5102 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
5103 instead of memcpy to zero the initial stab symbol, duh.
5104 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
5105 * config/obj-som.c (obj_som_init_stab_section): Ditto.
5106
356315fe
ILT
5107Tue Feb 8 17:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5108
5109 * write.c (fixup_segment): Use as_bad_where, not as_bad.
5110
5111 * subsegs.c (subseg_set_rest): Call memset with the arguments in
5112 the right order. Explicitly clear fix_root and fix_tail fields.
5113
df44a852
KR
5114Tue Feb 8 16:00:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5115
cfaf70e3
KR
5116 * config/obj-coff.c (coff_frob_symbol): For abs_symbol, set *punt
5117 and do nothing else.
5118
5119 * symbols.c (symbol_begin): Initialize value of abs_symbol
5120 properly.
5121
5122 * write.c (adjust_reloc_syms): Use abs_symbol instead of calling
5123 section_symbol.
5124
cafb569b
KR
5125 * ecoff.c (ecoff_build_debug): Fix "/*" in comment to silence
5126 complaint from "gcc -Wall".
5127
7496639a
KR
5128 * configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
5129
8a74b870
KR
5130 * config/tc-alpha.c (GP_ADJUSTMENT): Move definition to start of
5131 file.
5132 (tc_gen_reloc): Remove uninitialized variable `code', and code
5133 that tried to use it (incorrectly). For LITERAL reloc, set addend
5134 to negative of GP value.
5135 (load_symbol_address): Don't adjust return value by GP_ADJUSTMENT.
5136
df44a852
KR
5137 * write.c (write_relocs): Print some sensible error message if
5138 bfd_perform_relocation returns bfd_reloc_overflow.
5139
5140Mon Feb 7 15:49:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5141
5142 * configure.in (hppa*-*elf*): New configuration for PA ELF.
5143 (hppa*-*-osf*): Default object format is SOM.
5144
c3591adb
KR
5145Mon Feb 7 16:07:35 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5146
2d33b3aa
KR
5147 * config/tc-alpha.c (md_atof): Warn that floating-point values
5148 might not assemble properly.
5149
c3591adb
KR
5150 * configure.in (target alpha-*-osf*): Don't set "dev=yes" any
5151 more.
5152
5153 * config/tc-alpha.c (load_expression): Parenthesize operations in
5154 range checking, to avoid precedence questions.
fc6b54fd 5155
c3591adb
KR
5156 * config/tc-alpha.c (addr32): New static variable.
5157 (md_parse_option): Set it for "-32addr".
5158 (load_symbol_address): If addr32 is set, use ldl instead of ldq.
5159
5160 * atof-generic.c (atof_generic): Calculate maximum_useful_digits
5161 and more_than_enough_bits_for_digits in integer arithmetic, to
5162 eliminate the only sources of dependence on floating point
5163 support, which doesn't work yet on the Alpha.
5164
5165Mon Feb 7 03:56:05 1994 Ken Raeburn (raeburn@cambridge.cygnus.com)
fc6b54fd
KR
5166
5167 * ecoff.c (ecoff_build_debug) [TC_ALPHA]: Specify version stamp as
5168 0x30b for Alpha for now, until ".verstamp" is handled.
5169
5170 * literal.c (add_to_literal_pool): Use seginfo->frchainP, which
5171 actually refers to the literal pool section, rather than
5172 frchain_now, which refers to whatever section the assembler was
5173 in.
5174
5175 * write.c (fixup_segment): Only do range checking if size of fixup
5176 is smaller than word size. Otherwise, we always wind up with
5177 zeros.
5178
5facbfd4
KR
5179 * config/tc-alpha.c (md_section_align): Change second argument and
5180 return type to valueT, to agree with tc.h.
5181 (alpha_do_align): Local static array nop_pattern is now unsigned
5182 char, to avoid overflow warnings.
5183 * config/tc-alpha.h (md_section_align): Delete declaration.
5184
5185 * config/obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
5186 output bfd is non-null before indirecting through it.
5187
5188 * config/tc-alpha.c (alpha_frob_ecoff_data): Renamed from
5189 alpha_frob_file.
5190 * config/tc-alpha.h (tc_frob_file): Macro deleted.
5191 * config/obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call
5192 alpha_frob_ecoff_data, then fill in optional-header info with gp
5193 value and register masks.
5194
dc536cc0
JL
5195Sun Feb 6 16:13:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5196
f8693e71
JL
5197 * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP.
5198
dc536cc0
JL
5199 * config/obj-som.c (obj_som_init_stab_section): Same change
5200 as coffbfd and elf below. Zero the initial stab symbol after
5201 allocating it.
5202
41b5ef0f
SS
5203Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com)
5204
5205 * config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
5206 initial stab symbol after allocating it.
5207 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
5208
fa4beb7e
JL
5209Sat Feb 5 11:53:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5210
5211 * config/tc-hppa.c (pa_ip): addb[tf] should only accept
5212 non-negated condition completers. Add support for addb pseudo-op
5213 which accepts both negated and non-negated completers.
5214
1c11ab0e
ILT
5215Sat Feb 5 00:15:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5216
5217 * configure.in (rs6000*): Use cpu_type ppc.
5218 (ppc-*-aix*): New target; use coff and force bfd_gas.
5219 * config/tc-ppc.h, config/tc-ppc.c: New files for PowerPC/POWER
5220 (RS/6000) support. At the moment, only XCOFF is supported.
5221
5222 * config/obj-coff.c (SA_SET_SYM_ENDNDX): Made non-static.
5223 (S_SET_DATA_TYPE): Likewise.
5224 (coff_last_function): Renamed from local static last_functionP in
5225 coff_frob_symbol and made externally visible.
5226 (coff_frob_symbol): New local static set_end; use it to try to
5227 avoid calling SA_SET_SYM_ENDNDX on a symbol that will be punted.
5228 * config/obj-coff.h (S_SET_DATA_TYPE): Declare.
5229 (SA_SET_SYM_ENDNDX): Declare.
5230 (coff_last_function): Declare.
5231
5232 * expr.c (operand): If DOLLAR_DOT is defined, accept `$' as
5233 equivalent to `.' to mean the current location.
5234
5235 * read.c (LEX_BR): If not defined, define as 0.
5236 (lex_type): Use LEX_BR as the type of `{',`}',`[',`]'.
5237
5238 * symbols.c (symbol_new): If tc_canonicalize_symbol_name is
5239 defined, call it with preserved_copy_of_name. If
5240 tc_symbol_new_hook is defined, call it on the new symbol.
5241 (symbol_find_base): If tc_canonicalize_symbol_name is defined,
5242 call it on a copy of the name argument.
5243
5244 * write.c (write_object_file): Simplified usage of obj_frob_symbol
5245 and tc_frob_symbol. Always call both if the symbol is going to be
5246 output.
5247
5248 * write.c (relax_segment): Use %ld rather than %d when printing
5249 fragP->fr_var, and cast it to long.
5250
5251 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
5252 * subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
5253 fix_root and fix_tail.
5254 (segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
5255 field.
5256 * write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
5257 fix_tailP based on frchain_now, not seg_info (now_seg).
5258 (chain_frchains_together_1): Chain the subsegment relocs together.
5259 * subsegs.c (subseg_change): Don't clear fix_tail field.
5260 (subseg_get): Likewise.
5261 * literal.c (add_to_literal_pool): Look through the relocs via
5262 frchain_now, not seginfo.
5263
f85ad9d5
ILT
5264Thu Feb 3 23:07:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5265
5266 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Changed
5267 ecoff_undefined to ecoff_extern_size.
5268 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Likewise.
5269 * config/tc-mips.c (s_extern): Set ecoff_extern_size to the
5270 external symbol size, rathern than setting the symbol value.
5271 (md_estimate_size_before_relax): Check both ecoff_extern_size and
5272 symbol value to see if GP referencing can be used.
5273 * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not
5274 ecoff_undefined.
5275 (ecoff_frob_symbol): Don't check ecoff_undefined.
5276 (ecoff_build_symbols): Get size of an undefined symbol from
5277 sym->ecoff_extern_size, not S_GET_VALUE (sym).
5278
b4bd2c92
JL
5279Wed Feb 2 13:55:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5280
5281 * Makefile.in: Avoid bug in losing hpux sed.
5282
1051c97f
ILT
5283Wed Feb 2 11:40:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5284
5285 * config/tc-mips.c (file_mips_isa): New static variable.
5286 (md_begin): Set it.
5287 (s_mipsset): Add support for .set mipN to set the ISA level.
5288
5289 * gasp.c (kinfo): Fully bracket initializer.
5290
f2cdeec4
KR
5291Tue Feb 1 19:28:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5292
5293 * gasp.c (malloc): Don't declare, since host.h or system header
5294 files may declare it differently.
5295
5296 * config/atof-ieee.c (int_to_gen): Now static.
5297
5298 * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not
5299 ho-sysv.h. Based loosely on a patch from Minh Tran-Le.
5300
e2847e64
SC
5301Tue Feb 1 10:50:17 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5302
5303 * gasp.c: Include host.h.
5304
9cbf9e57
ILT
5305Tue Feb 1 12:13:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5306
8bbad6fd
ILT
5307 * config/tc-mips.c (mips_ip): Make an unsupported instruction a
5308 warning, not an error.
5309
9cbf9e57
ILT
5310 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
5311 dot_bss_symbol): Don't define if BFD_ASSEMBLER.
5312 (obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more
5313 arguments.
5314 (coff_line_base): Renamed from line_base. Changed all uses.
5315 (coff_add_linesym): Renamed from add_line_sym. Made non-static.
5316 Changed all uses.
5317 * config/obj-coff.h: If TC_PPC, include coff/rs6000.h.
5318 (S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if
5319 BFD_ASSEMBLER.
5320 (coff_line_base): Declare.
5321 (coff_add_linesym): Declare if BFD_ASSEMBLER.
5322 * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out
5323 now takes more arguments.
5324
2abb453d
SS
5325Mon Jan 31 17:55:14 1994 Stan Shebs (shebs@andros.cygnus.com)
5326
5327 * as.c (statistics_flag): Renamed from quiet_flag.
5328 (main): Get statistics with --statistics instead of -noquiet.
5329
a5a4b5ac
SC
5330Mon Jan 31 07:19:30 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5331
5332 * Makefile.in: Support for Gnu ASsembler Preprocessor.
5333 * gasp.c: New file.
5334 * read.c (s_lcomm): Align lcomm data.
69cb5925 5335 * config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction
a5a4b5ac
SC
5336 from different sections.
5337
7909261f
KR
5338Sun Jan 30 14:58:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5339
5340 * write.c (write_object_file): If tc_frob_file is defined, call it
5341 just before calling obj_frob_file.
5342 * config/tc-alpha.c (alpha_gp_value): Renamed from gp_value
5343 (references changed), and made non-static.
5344 (getExpression): Return void.
5345 (select_gp_value): Abort if gp_value is non-zero. Delete call to
5346 non-existent bfd_set_gp_value.
5347 (alpha_validate_fix): Function deleted.
5348 (alpha_frob_symbol): Function deleted.
5349 (alpha_local_label): Function deleted.
5350 (alpha_frob_file): Renamed from alpha_end.
5351 * config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix,
5352 alpha_local_label, alpha_end): Declarations deleted.
5353 (alpha_gp_value, alpha_frob_file): Declare.
5354 (tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted.
5355 (LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label.
5356 (md_convert_frag): Simplified slightly.
5357 (tc_frob_file): New macro.
5358
5359 * read.c (do_align): New function, most of guts of s_align_*
5360 functions. Look for md_do_align macro, give it a chance to bypass
5361 all but recording of section alignment.
5362 (s_align_bytes, s_align_ptwo): Call do_align.
5363 (s_lcomm) [TC_ALPHA]: Align object to largest power of two that
5364 divides object size.
5365
5366 * frags.c (frag_align_pattern): New function.
5367 (frag_align): Rewrite for clarity.
5368
5369 * config/tc-vax.c (md_assemble): Handle O_constant expression.
5370 (vip_begin): Returns pointer to const char. Cast hash_insert arg
5371 to PTR to avoid compiler complaints about const.
5372 (md_begin): Local variable errtxt must point to const.
5373
5374 * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't
5375 bother with *-*-ultrix or *-*-sysv*, except *-*-sysv, since only
5376 the last has an existing host support file. Do handle vax-bsd and
5377 vax-ultrix targets.
5378
1f029792
ILT
5379Fri Jan 28 11:26:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5380
5381 * config/obj-coff.c (obj_coff_section_header_append): Do not
5382 declare if BFD_ASSEMBLER.
5383 (stack_pop): Correct test for stack underflow.
5384 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
5385 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare
5386 type of ignored argument to avoid gcc warning.
5387 (align): Removed unused function.
5388
6221fe20
KR
5389Thu Jan 27 18:14:19 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5390
81f6013a
KR
5391 * config/tc-alpha.c, config/tc-alpha.h, config/alpha-opcode.h: New
5392 files, based on port of gas-1.38 contributed by CMU, using a.out
5393 variant. Updated for gas-2.x and ECOFF. Floating-point constants
5394 are still broken, bootstrap testing incomplete.
5395
5396 * literal.c: Comment changes.
5397
5398 * listing.c (listing_source_file): Check for null listing_tail
5399 before indirecting through it.
5400
5401 * expr.h (struct expressionS): Added struct tag.
5402
5403 * as.h: If __GNUC__ and inline are both undefined, define inline
5404 away.
5405
5406 * write.c (cvt_frag_to_fill): Don't assume that fr_var for
5407 rs_align or rs_org frags will be 1.
5408 (relax_segment): For rs_align, if fr_var is not 1, complain if
5409 required padding is not a multiple of the size of the pad pattern.
5410 (fixup_segment): Leave gp-relative relocations alone. For pcrel
5411 relocations referring to the same segment, clear fx_pcrel when
5412 clearing fx_addsy.
5413 * as.h: Adjust comments on rs_align.
5414
6221fe20
KR
5415 * atof-generic.c: Some reformatting.
5416 (atof_generic): Be careful when mixing signed/unsigned values of
5417 different sizes.
5418
81f6013a
KR
5419 * write.c, config/obj-{aout,bout,coff*}.c, config/tc-sparc.c:
5420 Query the fx_done field instead of fx_addsy to see if the fixup
5421 still needs to be applied. Set fx_done and clear fx_addsy both,
5422 for now. If TC_HANDLES_FX_DONE isn't defined, assume md_apply_fix
5423 will only clear fx_addsy, and set fx_done accordingly after
5424 returning.
5425 * config/tc-sparc.h (TC_HANDLES_FX_DONE): Define.
5426 * config/tc-sparc.c (md_apply_fix): Set fx_done for non-pcrel fix
5427 with no fx_addsy.
5428
5429 * symbols.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
5430 Deleted.
5431 (symbol_begin): Moved to end of file, so function inlining can
5432 work better.
5433 (fb_label_count, fb_label_max): Default C static initializers are
5434 sufficient.
5435 * symbols.h (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
5436 Declarations deleted.
5437 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
5438 dot_bss_symbol): Defined here, static.
5439
5440 * config/obj-aout.c [BFD_ASSEMBLER]: Undef NO_RELOC before
5441 including aout/aout64.h.
5442
5443 * write.c (write_object_file): If EMIT_SECTION_SYMBOLS is false,
5444 don't write out a section symbol even if it's used in a
5445 relocation; assume relocations will handle section numbers
5446 somehow. Rename "punt_it" label to "punt_it_if_unused" to reflect
5447 it's true use.
5448 (EMIT_SECTION_SYMBOLS): Default to 1.
5449 (adjust_reloc_syms): Don't create a new symbol for an absolute
5450 reference; just use the absolute section symbol.
5451 (write_relocs): Make printout of reloc values dependent on flag
5452 DEBUG3, not DEBUG2.
5453 * config/obj-aout.h (EMIT_SECTION_SYMBOLS): Define as 0.
5454 * config/obj-ecoff.h (EMIT_SECTION_SYMBOLS): Ditto.
5455
a57180ad
ILT
5456Thu Jan 27 16:43:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5457
ec7a69ea
ILT
5458 * read.c (lex_type): No longer make '{' a valid character for
5459 symbol names.
5460
fe920573
ILT
5461 * as.c (main): Print long values using %ld.
5462
a57180ad
ILT
5463 * messages.c (as_warn_internal): New static function.
5464 (as_warn, 3 versions): Use as_warn_internal.
5465 (as_warn_where, 3 versions): New function.
5466 * as.h (as_warn_where): Declare.
5467
ca7bd557
SS
5468Tue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
5469
5470 * as.c (quiet_flag): New flag.
5471 (main): If -noquiet given, display execution time and memory used.
5472
9dcf8057
JL
5473Tue Jan 25 15:53:11 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5474
5475 * doc/{all.texi,as.texinfo}: Add documentation for HPPA port.
5476
f71babce
ILT
5477Mon Jan 24 19:18:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5478
5479 * ecoff.c (ecoff_frob_symbol): New function. Put undefined
5480 symbols of known size in the undefined section. Put small common
5481 symbols in a .scommon section.
5482 * ecoff.h (ecoff_frob_symbol): Declare.
5483 * config/obj-ecoff.h (obj_frob_symbol): Define.
5484 * config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
5485 obj_elf_frob_symbol): Removed unused functions.
5486 * config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
5487 unused macros.
5488 (obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
5489 of unused functions.
5490 (obj_frob_symbol): Define if ECOFF_DEBUGGING.
5491
5492 * tc-mips.c (g_switch_seen): New static variable.
5493 (md_parse_option): Set g_switch_seen for -G option.
5494 (s_option): If creating PIC code, force the GP size to be 0. Warn
5495 if -G switch used with a non-zero value.
5496
5497 * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
5498 comparing against bfd_com_section.
5499
2ef7731d
KR
5500Mon Jan 24 14:12:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5501
5502 * read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss
5503 section.
5504
7691379e
KR
5505Thu Jan 20 13:17:58 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5506
5507 * expr.c (operand): For floating point operand with unusual fp
5508 char from FLT_CHARS, preserve the character. Patch from Lisa
5509 Repka.
5510
eb8fd0e9
ILT
5511Wed Jan 19 23:15:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5512
5513 * config/tc-mips.c (md_pseudo_table): Add all data allocation
5514 pseudo-ops: .hword, .int, .long, .octa, .quad, .short, .single.
5515
d9420fc1
SC
5516Tue Jan 18 15:51:59 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5517
5518 * config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and
5519 C_FCN assume .val has been set to .
5520
2f156c92
JL
5521Tue Jan 18 16:19:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5522
5523 * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It
5524 confuses GDB for some unknown reason.
5525 * cofnig/obj-som.c: Likewise.
5526
19302e44
KR
5527Tue Jan 18 19:05:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5528
5529 * literal.c (add_to_literal_pool): Handle duplicates of values
5530 already written to literal pool.
5531
4bda835f
ILT
5532Tue Jan 18 17:23:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5533
5534 * config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols
5535 with explicitly marked stabs through BFD: if a symbol marked
5536 N_UNDF | N_EXT is in the absolute section, move it to the
5537 undefined section; move a symbol marked N_INDR into
13655af6
ILT
5538 bfd_ind_section and set the BSF_INDIRECT flag; set the
5539 BSF_WARNING flag for a symbol makred N_WARNING.
4bda835f 5540
17ed84ed
ILT
5541Mon Jan 17 15:40:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5542
5543 * ecoff.h (ecoff_set_gp_prolog_size): Declare.
5544 * ecoff.c (ecoff_set_gp_prolog_size): Return type is void.
5545
d0286a21
JL
5546Mon Jan 17 00:18:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5547
51517966
JL
5548 * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
5549 and 'f' template operand.
5550
d0286a21
JL
5551 * config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u',
5552 and '2' in copr and sfu instruction templates.
5553
e7501ac7
JL
5554Sun Jan 16 16:44:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5555
5556 * as.h (subseg_force_new): Add prototype.
5557
d2550c72
DE
5558Sat Jan 15 09:20:55 1994 Doug Evans (dje@canuck.cygnus.com)
5559
d307fed1
DE
5560 * app.c (do_scrub_next_char): Allow lines like " foolab :".
5561
d2550c72
DE
5562 * read.c (emit_expr): Fix computation of mask.
5563 * config/obj-elf.c (obj_elf_section): Fix loop termination test.
5564
d211303d
KR
5565Thu Jan 13 16:15:15 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5566
64270963
KR
5567 * ecoff.c (ecoff_set_gp_prolog_size): New function.
5568 (current_file_idx): New static variable.
5569 (add_file): Use and increment current_file_idx instead of indx
5570 parameter.
5571
ff4325cb
KR
5572 * struc-symbol.h (struct symbol): Make all bitfields unsigned.
5573
d211303d
KR
5574 * config/tc-i960.c (i960_validate_fix): Added argument
5575 add_symbolPP. Indirect through it to get "add_symbolP".
5576 * config/tc-i960.h (i960_validate_fix): Supply prototype.
5577 (TC_VALIDATE_FIX): Pass address of add_symbolP.
5578
5579 * configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
5580 (i386-*-netbsd0.8): New target, like 386bsd.
5581
5582 * configure.in: Set BFDDEF in Makefile to "define" or "undef".
5583 * Makefile.in (config.h): Protect against multiple inclusions.
5584 Define or undef BFD_ASSEMBLER as specified by $(BFDDEF).
5585 (ALL_CFLAGS): Omit $(BFDDEF).
5586 * as.h: Include config.h.
5587 (struct symbol): Added forward declaration.
5588 (add_to_literal_pool): Fix declaration.
64270963 5589 * as.c: Don't include config.h.
d211303d
KR
5590
5591 * literal.c (add_to_literal_pool): Take symbol and addend as
5592 arguments, instead of expression, for now. Fix calculation of
5593 offset to return.
5594
5595 * subsegs.h (segment_info_type) [NEED_LITERAL_POOL]: Add field
5596 literal_pool_size.
5597
500828a0
JL
5598Thu Jan 13 12:14:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu
5599
5600 * subsegs.c (subseg_get): Accept new argument "force_new". If
5601 set then a new segment is always created. All callers changed.
5602 (subseg_force_new): New function. Similar to subseg_new, but
5603 always force a new segment to be created.
5604
5605 * config/obj-som.c (som_frob_file): Call adjust_code_sections
5606 for each section.
5607 (adjust_code_sections): New function. Adjusts the VMA for all the
5608 $CODE$ subspaces.
5609
5610 * config/tc-hppa.c (md_assemble): Also handle creating a fixup
5611 for the unwind descriptors if a function's label follows the
5612 .PROC and .ENTRY directives.
5613 (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
5614 is done elsewhere. Don't create a fixup for the unwind
5615 descriptors if the function's label has not been defined yet.
5616 (pa_proc): For SOM, place each procedure within a new $CODE$
5617 subspace. Adjust the segment and frag for the associated
5618 function label if it exists.
5619
5620Wed Jan 12 22:05:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5621
5622 * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
5623 (hppa_fix_new): Initialize segment field.
5624 (md_apply_fix): Do nothing for pc-relative fixup which involves
5625 crossing a segment boundary.
5626 (pa_procend): Undefine the current label after handling .PROC
5627 and .PROCEND directives.
5628 (dummy_symbol): Make type "symbolS *". Change references as
5629 appropriate.
5630
bbf7e43d
ILT
5631Wed Jan 12 13:29:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5632
5633 * read.c (read_a_source_file): Cast array argument to unsigned
5634 char.
5635 * write.c (adjust_reloc_syms): Remove unused variable symseginfo.
5636 (write_object_file): Don't define punt_it if it won't be used.
5637 (fixup_segment): Don't define skip if it won't be used.
5638
5639 * config/tc-mips.h (TARGET_FORMAT): Define as mips_target_format.
5640 (mips_target_format): Declare.
5641 * config/tc-mips.c (mips_target_format): Define with appropriate
5642 default definition.
5643 (md_parse_option): If -EL or -EB is used, change byte_order and
5644 mips_target_format as appropriate.
5645
a1c91916
JL
5646Tue Jan 11 21:52:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5647
5648 * app.c (do_scrub_next_char): Another attempt to fix bugs
5649 dealing with labels without colons (for HPPA and MRI).
5650
44ce2f32
DE
5651Tue Jan 11 17:01:06 1994 Doug Evans (dje@canuck.cygnus.com)
5652
fd4b7c25
KR
5653 * config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.
5654
44ce2f32
DE
5655 * expr.c (integer_constant): Fix computation of too_many_digits.
5656 Variable digit_2 renamed to start. Fix check for whether number
5657 will fit in 32 bits.
5658 * read.c (emit_expr): Use valueT instead of long.
5659
af255ca0
ILT
5660Tue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5661
f34e27a1
ILT
5662 * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
5663 (special_sections): Define.
5664 (obj_elf_special_section): Get default types and attributes from
5665 list of special sections.
5666 * config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.
5667
4e76ae53
ILT
5668 * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
5669 sections to be close together.
5670
8197b589
ILT
5671 * config/tc-mips.c (macro): Corrected $at warnings in a couple of
5672 spots.
5673
af255ca0
ILT
5674 * listing.c (listing_prev_line): New function.
5675 * listing.c: Include subsegs.h.
5676 (listing_prev_line): New function.
5677 (calc_hex): Reset byte_in_frag to zero for each new frag.
5678 * config/tc-mips.c (append_insn): Call listing_prev_line after
5679 emitting nop instructions.
5680 * Makefile.in (listing.o): Depends upon subsegs.h.
5681
4047ff1d
JL
5682Mon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5683
5684 * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
5685 here. Handle case where label may be defined after the .PROC.
5686 (pa_proc): It is not an error if the procedure's label isn't
5687 defined before the .PROC directive.
5688
6f1c6a67
KR
5689Sun Jan 9 04:43:30 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5690
5691 * config/te-netbsd.h: New file.
5692 * config/tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use bfd target
5693 a.out-netbsd-386 for this configuration.
5694
fe4e3290
ILT
5695Fri Jan 7 17:38:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5696
5697 * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information
af255ca0 5698 with the associated stabs information.
fe4e3290
ILT
5699 (ecoff_build_symbols): Never set the type of stabs symbols to
5700 st_Global. Don't update the symbol index or ifd if the gas symbol
5701 is not the same as the ECOFF symbol (which is now the case for
5702 stabs symbols).
5703
917fae09
SS
5704Fri Jan 7 11:14:07 1994 Stan Shebs (shebs@andros.cygnus.com)
5705
5706 * config/tc-mips.c (macro): Add a LOSING_COMPILER ifdef that
5707 splits the function.
5708 (macro2): New function, if LOSING_COMPILER defined.
5709
03a372ed
SC
5710Fri Jan 7 09:38:25 1994 Steve Chamberlain (sac@cygnus.com)
5711
5712 * config/obj-coffbfd.c (fill_section): Don't ever fill past the
5713 end of a section. (write_object_file): Temporary fix - setup
5714 stdoutput.
5715
fd0e2cf2
KR
5716Thu Jan 6 18:05:21 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5717
5718 * config/tc-sparc.c (tc_gen_reloc): Fix handling of addends in
5719 non-pcrel_offset relocations.
5720
13fe1379
ILT
5721Thu Jan 6 01:06:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5722
5723 * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
5724 without .set noat.
5725
311ff8d6
KR
5726Wed Jan 5 14:22:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5727
2d29d89d 5728 * literal.c: New file.
d4aad2b4
KR
5729 * Makefile.in (REAL_SOURCES, OBJS): List it.
5730
5731 * as.h (DEBUG): Don't define.
5732 (struct expressionS, struct fix): Declare in case they're used in
5733 prototypes.
5734 (add_to_literal_pool) [BFD_ASSEMBLER]: Declare.
2d29d89d 5735
311ff8d6
KR
5736 * config/tc-mips.h (TARGET_FORMAT) [OBJ_AOUT]: Fix for new names
5737 in bfd.
5738
5739 * subsegs.c (subseg_get): New function. Creates segment if
5740 needed, returns pointer, but doesn't change current segment.
5741 (subseg_new): Use it.
5742
5a051773
SS
5743Tue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com)
5744
5745 * Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search.
5746 * config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/".
5747 * app.c, flonum.h, hex-value.c (const): Change #if to be more
5748 portable.
5749
fce98d63
RS
5750Tue Jan 4 22:11:34 1994 Rob Savoye (rob@darkstar.cygnus.com)
5751
69cb5925
KR
5752 * config/ho-vsta.h, configure.in, .Sanitize: Add support for VSTa
5753 micro-kernel.
fce98d63 5754
5a051773
SS
5755Thu Dec 30 15:27:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5756
5757 * write.c (write_relocs): bfd_perform_relocation now takes an
5758 additional argument, to return an error string (which we ignore).
5759
9314b3a1
KR
5760Wed Dec 29 14:37:26 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5761
5762 * write.h (struct fix): Field tc_fix_data should be type PTR, not
5763 void*, for compatibility with non-ANSI compilers. Added
5764 single-bit field "fx_done".
5765
45db9caf
TG
5766Sun Dec 26 14:31:47 1993 Torbjorn Granlund (tege@adder.cygnus.com)
5767
5768 * tc-hppa.c (pre_defined_registers): Convert to lower case.
5769 Delete spurious register names "%r4L", etc.
5770 (selector_table): Sort and convert to lower case.
5771 (cons_fix_new_hppa): `reloc_type' => `rel_type'.
5772 (pa_ip): Always use strcmp for non-text and strcasecmp for text.
5773 (reg_name_search): Rewrite to call strcasecmp only once per
5774 iteration.
5775 (pa_chk_field_selector): Rewrite to use binary search.
5776 (pa_parse_neg_add_cmpltr): Use strcasecmp for completer comparisons.
5777 (pa_parse_space_stmt): $TEXT$ and $PRIVATE$ are symbols; use case
5778 sensitive comparisons.
5779 (pa_parse_space_stmt): Canonicalize strncasecmp arg to lower case.
5780 (pa_space): "$text$" => "$TEXT$"; "$private$" => "$PRIVATE$". Use
5781 case sensitive comparison for all symbolic names.
5782 (pa_subspace): Canonicalize strncasecmp arg to lower case.
5783 (pa_subspace_start): Use case sensitive comparison for symbolic names.
5784
8b13fa4e
KR
5785Mon Dec 20 10:37:48 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5786
0a75cb6c
KR
5787 * write.c (adjust_reloc_syms) [RELOC_REQUIRES_SYMBOL]: If no
5788 symbol is present (i.e., relocation against absolute), create a
5789 phony local symbol, and use it in the reloc.
5790 (fixup_segment): When adjusting a reloc with an absolute symbol,
5791 have TC_FORCE_RELOCATION control clearing add_symbolP too.
5792 * config/tc-sparc.h (RELOC_REQUIRES_SYMBOL): Define, for OBJ_COFF.
5793
5794 * symbols.c (S_IS_EXTERNAL, S_IS_LOCAL): Don't use both BSF_EXPORT
5795 and BSF_GLOBAL, since they're the same.
5796
d3e3010b
KR
5797 * as.c (main): Only invoke md_end if it's defined as a macro.
5798 * tc.h (md_end): Don't declare it.
5799 * config/tc-*.[ch] (md_end): Deleted, in cases where it doesn't do
5800 anything.
5801 * config/tc-vax.c (vip_end): Deleted null function.
5802 * config/tc-mips.c (md_mips_end): Renamed from md_end.
5803 * config/tc-mips.h (md_mips_end): Declare.
5804 (md_end): New macro, calls md_mips_end.
5805
5806 * write.c (write_object_file): Don't close output file.
5807 * as.c (main): Close output file (if needed) after calling
5808 listing_print, which should be after calling write_object_file,
5809 which sets the frag addresses.
5810
5811 * config/obj-coff.c (obj_coff_dim, obj_coff_endef, obj_coff_line,
5812 obj_coff_scl, obj_coff_size, obj_coff_tag, obj_coff_type,
5813 obj_coff_val): Add unused int argument to satisfy prototypes; goes
5814 with Ian's 10 Sep changes.
5815 (S_GET_DATA_TYPE, S_SET_DATA_TYPE, S_GET_STORAGE_CLASS,
5816 S_SET_STORAGE_CLASS): Now function instead of macros.
5817 (obj_emit_lineno) [BFD_ASSEMBLER]: Deleted.
5818 (tag_insert): Local var ERROR_STRING is const. Use "const" not
5819 "CONST" for argument NAME. Fixed prototype.
5820 (coff_frob_symbol): Removed explicit "#if 1" directive. If
5821 S_IS_EXTERNAL, set storage class to C_EXT.
5822 (s_get_name): Use "const" not "CONST".
5823 * config/obj-coff.h (S_GET_DATA_TYPE, S_SET_DATA_TYPE,
5824 S_GET_STORAGE_CLASS, S_SET_STORAGE_CLASS): Deleted.
5825 (obj_emit_lineno): Declare only for non-BFD_ASSEMBLER. For
5826 BFD_ASSEMBLER, define as macro that aborts.
5827 (obj_extra_stuff, tc_headers_hook): Declare only for
5828 non-BFD_ASSEMBLER.
5829 (coff_frob_symbol): Fix prototype.
8b13fa4e
KR
5830
5831Sun Dec 19 00:37:20 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5832
5833 * config/tc-sparc.c (tc_gen_reloc): Test of pcrel_offset had sense
5834 reversed.
5835
5ea18b5d
JL
5836Thu Dec 16 21:13:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5837
5838 * config/tc-hppa.c (md_begin): Initialize "dummy_label".
5839 (tc_gen_reloc, SOM version): For relocations which have no symbol,
5840 set sym_ptr_ptr to dummy_label. Avoids lossage in generic BFD code.
5841
a8a72d74
KR
5842Thu Dec 16 16:07:56 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5843
5844 * read.c (lex_type): No longer make '[' a valid character for
5845 symbol names.
5846
50f75add
KR
5847 * config/tc-vax.c (tc_aout_fix_to_chars): Local variable
5848 NBYTES_R_LENGTH now const.
5849
5850 * config/obj-*.c, config/tc-*.c: Omit superfluous "return"
5851 statements at ends of functions. Don't check for null return from
5852 hash_new, since it won't return at all if there's no memory
5853 available. Also, check for null return from hash_insert, rather
5854 than zero-length string, as success indicator.
5855
5856 * subsegs.c (section_symbol): New function.
5857 * subsegs.h (section_symbol): Declare.
5858 * write.c (adjust_reloc_syms): Use it.
5859
cf4aca57
KR
5860Wed Dec 15 15:39:53 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5861
7387c355
KR
5862 * Makefile.in (RUNTEST): New variable.
5863 (CHECKFLAGS): Pass it down.
5864
cf4aca57
KR
5865 * ecoff.c (ecoff_directive_frame): Permit extra trailing operands;
5866 unused for now, but supplied by Alpha OSF1 compiler.
5867
5868 * as.h: Protect against multiple inclusions.
5869 (int_to_gen): Don't declare.
5870
5871 * config/atof-vax.c (atof_vax): NULL is not a valid character
5872 constant.
5873
551d2fd4
JL
5874Tue Dec 14 21:38:25 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5875
26da0351
JL
5876 * configure.in (hppa*-*-osf*): Do not consider this a developmental
5877 configuration.
5878
551d2fd4
JL
5879 * config/tc-hppa.c (md_apply_fix): Handle cases where no
5880 relocation will be emitted for 32bit formats.
5881
9d5a9b20
JL
5882Mon Dec 13 23:33:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5883
5884 * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
5885 for any of the 'T' field selectors.
5886
2b5936ff
SC
5887Sat Dec 11 11:23:12 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5888
5889 * config/tc-h8500.c (build_bytes): Get reloc type right for a
5890 %page operation. (md_assemble): Don't modify input_line_pointer.
5891 (mdcoff_sizemachdep): New function.
5892 * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro.
5893 * config/tc-z8k.c (get_operand): Delete bogus check.
5894
a1328e79
KR
5895Wed Dec 8 16:31:51 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
5896
5897 * write.c (number_to_chars_*): Delete bogus range check.
5898
5899 * output-file.c (TARGET_ARCH): No default.
5900
ef7ce769
SC
5901Tue Dec 7 16:02:53 1993 Steve Chamberlain (sac@jonny.cygnus.com)
5902
5903 * config/tc-sh.c (md_convert_frag): Truncate disps before calling
5904 md_number_to_chars. (md_assemble): Don't modify
5905 input_line_pointer.
5906
67707031
DE
5907Mon Dec 6 11:49:03 1993 Doug Evans (dje@canuck.cygnus.com)
5908
5909 * config/tc-h8300.c (md_assemble): Don't update input_line_pointer.
5910
dd2f509f
JL
5911Mon Dec 6 11:20:02 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5912
5913 * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.
5914 Breaks with the HP compilers.
5915
5916 * config/tc-hppa.c (struct call_info): Remove fields which were
5917 set but never used. Remove all code which sets those fields.
5918 (struct subspace_dictionary_chain): Likewise.
5919 (struct space_dictionary_chain): Likewise.
5920 (pa_desc): Delete useless function. Delete all references.
5921 (hppa_tc_make_sections): No need to count the number of symbols for
69cb5925 5922 the symbol extension section.
dd2f509f 5923
7b624bf2
JL
5924Sun Dec 5 17:05:29 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5925
eb91665b
JL
5926 * config/obj-som.c (obj_som_version): Pass version string to
5927 SOM BFD backend.
5928 (obj_som_copyright): New function. Much like obj_som_version.
5929
5930 * config/tc-hppa.c (obj_copyright): Define as appropriate for
69cb5925 5931 SOM and ELF.
eb91665b
JL
5932 (pa_copyright): Just a stub now.
5933
42ecb409
JL
5934 * config/obj-som.c (obj_read_begin_hook): Delete unused function.
5935 * config/obj-som.h (obj_read_begin_hook): Provide dummy definition.
5936 (TARGET_SYMBOL_FIELDS): Delete. SOM isn't making use of them.
5937
4165dcc2
JL
5938 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation
5939 expansion due to rounding mode selectors. Handle R_[RDSN]_MODE
5940 relocations for selecting the current rounding mode.
5941
7b624bf2
JL
5942 * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and
5943 e_rlsel field selectors.
5944
5945Fri Dec 3 18:33:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5946
5947 * config/obj-elf.h: If ECOFF_DEBUGGING, undef
5948 SEPARATE_STAB_SECTIONS and INIT_STAB_SECTION, and define
5949 OBJ_PROCESS_STAB to call ecoff_stab.
5950 * config/obj-elf.c: Don't compile obj_elf_init_stab_section if
5951 INIT_STAB_SECTION is not defined.
5952
753dcbbd
JL
5953Fri Dec 3 10:56:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5954
5955 * config/tc-hppa.c (md_apply_fix): Delete old wrapper function.
5956 (md_apply_fix_1): Rename to md_apply_fix. Fix argument decls.
5957 Fix comments in various places. Always return a value.
5958 Avoid dereferencing a NULL fx_addsy.
5959 (hppa_force_relocation): Avoid dereferencing a NULL fx_addsy.
5960
585635c7
JL
5961 Fri Dec 3 09:47:30 1993 Pete Hoogenboom (hoogen@cs.utah.edu)
5962
5963 * tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should
5964 be either 0 or 2 (no static link or static link required). Always
5965 assume no static link.
5966
bfbfba45
KR
5967Thu Dec 2 11:52:21 1993 Ken Raeburn (raeburn@cygnus.com)
5968
5969 * config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be
5970 dependent on howto fields, not on format flavour.
5971
5972 * struc-symbol.h (struct symbol): New fields sy_obj and sy_tc,
5973 defined as types OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those
5974 macros are defined.
5975 * config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define.
5976 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define.
5977 (sy_tc, sy_obj): Define so that the fields look like they used to,
5978 until all references get changed.
5979
5980 * write.c (fixup_segment): Lots of variables no longer register.
5981 Reordered some code for easier reading.
5982 * config/obj-coff.c (obj_coff_dim): dim_index no longer register.
5983 Deleted superfluous return statement.
5984 (obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type,
5985 obj_coff_val, tag_init, tag_insert): Deleted superfluous return
5986 statement.
5987 (align, obj_coff_section): Deleted debugging printfs.
5988 * config/tc-i386.c (md_assemble): Discard some register decls.
5989 Use assignment rather than memcpy to copy template.
5990 (op_hash, reg_hash, prefix_hash): Default C initialization of
5991 statics is sufficient.
5992 * config/tc-sparc.c (print_insn): Array Reloc is now const, and
5993 points to const.
5994
5995 * config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if
5996 TE_LYNX; use coff-sparc otherwise.
5997 [USE_NATIVE_HEADERS]: Delete this code; it isn't used.
5998
5999 * write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined,
6000 before processing a fixup. Call TC_ADJUST_RELOC_COUNT just before
6001 returning. Remove some i960-coff-specific code.
6002 (TC_ADJUST_RELOC_COUNT): Default to doing nothing.
6003 * config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define.
6004 (i960_validate_fix): Declare.
6005 (TC_VALIDATE_FIX): Define.
6006 * config/tc-i960.c (i960_validate_fix): New function.
6007
6008 * write.c (number_to_chars_littleendian): New function. Write out
6009 bytes in little endian order, doing size and range checking.
6010 (number_to_chars_bigendian): New function, similar.
6011 * write.h: Declare them.
6012 * config/tc-*.c (md_number_to_chars): Use them.
6013 * config/tc-vax.c (md_apply_fix): Ditto.
6014 * config/tc-i386.c (md_apply_fix): Ditto.
6015
6016 * config/obj-coff.c: Rearranged code for handling line number
6017 data.
6018 (line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case,
6019 since the usage is different from non-BFD_ASSEMBLER case.
6020 (in_function, clear_function, set_function): New macros, to
6021 combine some of the functionality implemented in differnet ways in
6022 BFD_ASSEMBLER and non-... code. Used in other functions that used
6023 to check function_lineoff &c.
6024 (obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER,
6025 one for not. Non-BFD_ASSEMBLER version now has temporary variable
6026 to contain char* pointer pointed to by char** argument. Always
6027 follow CROSS_COMPILE code; easier to read that way.
6028 (obj_coff_ln): Don't call add_lineno or c_line_new if appline is
6029 set.
6030 (obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for
6031 ".bf", it's been done elsewhere.
6032 (coff_frob_symbol): If ilne number data is pending, call
6033 add_linesym to flush it.
6034 (coff_frob_file): Don't do that here.
6035 * config/obj-coff.h (coff_frob_file): Declare.
6036 (obj_frob_file): Define, to call it.
6037
6038 * config/tc-sparc.h (md_create_short_jump, md_create_long_jump,
6039 md_estimate_size_before_relax: Define them as macros calling
6040 as_fatal.
6041 * config/tc-sparc.c: Don't define them as functions.
6042
6043 * configure.in: Handle target alpha-*-osf*. (No cpu files yet.)
6044
0a8ae18f
JL
6045Wed Dec 1 23:37:14 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6046
6047 * Makefile (clean): Depend on clean-here.
6048
9a048e48
KR
6049Wed Dec 1 11:35:21 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
6050
6051 * config/ho-go32.h: Include fopen-bin.h.
6052 * as.h: If FOPEN_WB isn't defined, include fopen-same.h.
6053 * output-file.c (output_file_create): Use FOPEN_WB instead of "w".
6054 * input-file.c (input_file_open): Use FOPEN_RT instead of "r".
6055 * listing.c (file_info): Use FOPEN_RB instead of "rb".
6056 * read.c (s_include): Use FOPEN_RT instead of "r".
6057
6058 * stabs.c: Include obstack.h.
6059
6060 * tc.h (md_create_long_jump): Don't declare if it's already
6061 defined as a macro.
6062 (md_create_short_jump, md_estimate_size_before_relax): Ditto.
6063
6064 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_errmsg instead
6065 of strerror. Clear bfd_error.
6066
6067 * config/te-lynx.h (LOCAL_LABELS_FB): Define, if not already
6068 defined.
6069
44c0de53
JL
6070Wed Dec 1 10:41:56 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6071
6072 * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.
6073 (pa_process_exit, pa_procend): Call it for ELF objects.
6074
777ad64d
ILT
6075Wed Dec 1 12:10:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6076
6077 * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d
4032d3f0
ILT
6078 case. See comment. From wilson@cygnus.com: for M_L_DAB, set
6079 coproc before doing goto ld.
777ad64d 6080
335d35c8
JL
6081Tue Nov 30 13:40:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6082
6083 * write.c (TC_FORCE_RELOCATION): Provide a default definition.
69cb5925 6084 (fixup_segment): Allow the target machine to specify that a
335d35c8
JL
6085 relocation must be generated for a particular fixup. Remove
6086 #ifndef TC_HPPA hack.
6087
6088 * config/tc-hppa.h (TC_FORCE_RELOCATION): Define.
6089
6090 * config/tc-hppa.c (md_apply_fix_1): Never change fx_addsy to
6091 be NULL. Only fixup_segment is supposed to do that.
6092 (hppa_force_relocation): New function.
6093
018f2bba
ILT
6094Tue Nov 30 11:21:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6095
c751ad19
ILT
6096 * Makefile.in (stabs.o): Added dependencies.
6097
018f2bba
ILT
6098 * config/obj-ecoff.c (ecoff_frob_file): Don't call bfd_set_symtab.
6099
81413fa2
JL
6100Sun Nov 28 12:11:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6101
278cd007
JL
6102 * app.c (do_scrub_next_char): Output a TAB before any
6103 .app* directive.
6104
81413fa2
JL
6105 * config/tc-hppa.c (fix_new_hppa): Make sure a sub_symbol
6106 exists before trying to peek at its name.
6107 (pa_space): Do not call pa_align_subseg. See hppa/unsorted/align3.s
6108 for testcase.
6109 (pa_align_subseg): Delete unused/unwanted function.
6110
385ce433
JL
6111Sat Nov 27 22:49:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6112
6113 * read.c (read_a_source_file): Fix test for when to stick a colon
6114 on the end of a label. Make code conditional on either MRI or
6115 LABELS_WITHOUT_COLONS.
6116
6117 * app.c (do_scrub_next_char): If a line begins with whitespace, leave
6118 the single whitespace character alone. Eat all others.
6119
6120 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define.
6121
31a385d1
JL
6122Wed Nov 24 01:22:54 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6123
6124 * config/tc-hppa.c (pa_procend): Do not call process_exit.
6125 (exit_processing_complete): Delete unwanted variable and all
6126 references.
6127
c5953036
ILT
6128Wed Nov 24 02:31:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6129
6130 * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext.
6131 Changed to not actually build the external symbol information, as
6132 that is now done by the ECOFF back end.
6133 (ecoff_build_debug): Changed accordingly.
6134 * ecoff.h (obj_ecoff_set_ext): Declare. obj-format.c function
6135 called by ecoff_setup_ext.
6136 * config/obj-ecoff.c (ecoff_frob_file): If debug_info count is 0,
6137 set corresponding pointer to NULL. Don't set raw_size and
6138 raw_syments.
6139 (obj_ecoff_set_sym_index): Removed.
6140 (obj_ecoff_set_ext): New function.
6141 * config/obj-ecoff.h (obj_set_sym_index): Don't define.
6142 (obj_ecoff_set_sym_index): Don't declare.
6143 * config/obj-elf.c (obj_ecoff_set_ext, elf_get_extr,
6144 elf_set_index): New functions used for ECOFF_DEBUGGING.
6145 (elf_frob_file): Reworked ECOFF debug generation to use
6146 new functions in bfd/ecofflink.c.
6147
6148Sun Nov 21 23:54:52 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6149
6150 * config/tc-hppa.c (pa_def_subspaces): Only create the unwind
6151 subspace for ELF. In the SOM world, the linker is responsible
6152 for creating the unwind subspaces.
6153
e0209756
ILT
6154Fri Nov 19 16:25:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6155
6156 * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
6157 (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
6158 already set. Fixes .def var; .val external_var; .scl 3; .endef.
6159 (adjust_stab_section): Make static. Declare return type. Remove
6160 unused variables.
6161
6162 * config/tc-i386.h: Declare tc_coff_fix2rtype and
6163 tc_coff_sizemachdep.
6164
0669e047
KR
6165Fri Nov 19 04:33:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6166
6167 * write.c (write_object_file): Disable obj_check_file_symbols
6168 hook; only back end using it wasn't using it correctly.
6169 (write_object_file): Always call obj_frob_symbol and
6170 tc_frob_symbol; always retain symbol if it's used by a relocation,
6171 regardless of what these routines indicate.
6172 * config/obj-coff.c (coff_frob_symbol): Renamed from
6173 coff_check_file_symbols.
6174 * config/obj-coff.h (obj_check_file_symbols): Deleted.
6175 (coff_frob_symbol): Declare.
6176 (obj_frob_symbol): Call it.
6177
6178 * config/obj-coff.c (obj_crawl_symbol_chain, obj_emit_strings,
6179 obj_pre_write_hook): Don't define for BFD_ASSEMBLER.
6180 (c_section_header): Ditto. Delete superfluous return at end of
6181 function.
6182
6183 * config/obj-coff.h [TC_SPARC]: Include coff/sparc.h, and specify
6184 coff-sparc-lynx.
6185 (SA_GET_SYM_TAGNDX): Use BFD_HEADERS version for BFD_ASSEMBLER
6186 too.
6187 (c_section_header): Rewrite prototype so that it contains no
6188 preprocessing directives. Don't declare it at all if
6189 BFD_ASSEMBLER.
6190
6191 * configure.in (sparc*-*-lynxos): New target, using coff and
6192 BFD_ASSEMBLER.
6193
6194 * stabs.c: New file.
6195 * Makefile.in (REAL_SOURCES, OBJS): List it.
6196 * read.c (STAB_SECTION_NAME, STAB_STRING_SECTION_NAME,
6197 get_stab_string_offset, s_stab_generic, s_stab, s_xstab, s_desc):
6198 Moved to new file.
6199
6200 * config/tc-sparc.c (tc_gen_reloc): Handle coff files like elf
6201 files.
6202
29cc5816
ILT
6203Wed Nov 17 17:23:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6204
6205 * configure.in (mips-*-irix5*): New target. Use elf and mips-big.
6206 * config/obj-elf.c: If ECOFF_DEBUGGING, include ecoff.h.
6207 (obj_pseudo_table): If ECOFF_DEBUGGING, define ECOFF
6208 pseudo-ops.
6209 (obj_read_begin_hook): If ECOFF_DEBUGGING, call
6210 ecoff_read_begin_hook.
6211 (obj_symbol_new_hook): If ECOFF_DEBUGGING, call
6212 ecoff_symbol_new_hook.
6213 (obj_elf_init_stab_section): Cast alloca result.
6214 (elf_frob_file): If ECOFF_DEBUGGING, finish up ECOFF debugging
6215 information and write it out into .mdebug section.
6216 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): New macro.
6217 (TARGET_SYMBOL_FIELDS): Use ELF_TARGET_SYMBOL_FIELDS.
6218 (ECOFF_DEBUGGING): Define if TC_MIPS.
6219 (TARGET_SYMBOL_FIELDS): If ECOFF_DEBUGGING, override to add
6220 fields required by ECOFF.
6221 * config/tc-mips.c: Check ECOFF_DEBUGGING rather than
6222 OBJ_ECOFF in many cases.
6223 (mips_any_noreorder): New variable.
6224 (mips_cprestore_offset): Initialize to -1.
6225 (mips_frame_reg): New variable.
6226 (RELAX_ENCODE, RELAX_OLD, RELAX_NEW, RELAX_RELOC1,
6227 RELAX_RELOC2, RELAX_RELOC3, RELAX_WARN): New macros.
6228 (md_pseudo_table): Handle "gpword" and "cpadd".
6229 (md_begin): Initialize ok to false. If OBJ_ELF, set alignment
6230 of text, data and bss sections to 4. Set alignment of
6231 .reginfo section to 2. If ECOFF_DEBUGGING, create .mdebug
6232 section.
6233 (ALIGN_ERR, ALIGN_ERR2): Removed unused and useless alignment
6234 check.
6235 (append_insn, macro_build, macro_build_lui): Take place
6236 argument. Changed all callers.
6237 (append_insn): If appending a nop, don't emit one.
6238 (macro_build): Changed assertion for 'i', 'j', 'o' case.
6239 (gp_reference): Removed.
6240 (load_address): New function.
6241 (macro): If mips_noreorder is used, set mips_any_noreorder.
6242 Extensive changes to handle GP and PIC symbols differently.
6243 Build both possible code choices using a variant frag, and
6244 make a final decision at the end of assembly when all
6245 information is known. Added PIC support for all symbol
6246 references.
6247 (mips_ip): Don't permit anything but a number after $ for a
6248 coprocessor register. Don't use .lit4 or .lit8 sections when
6249 generating PIC code. If OBJ_ELF, set alignment of .lit4 or
6250 .lit8 section to 4.
6251 (md_apply_fix): Accept and ignore GOT16 and GPREL32 relocs.
6252 (s_change_sec): Set alignment of ELF .rodata or .sdata section
6253 to 4.
6254 (s_mipsset): If .set noreorder, set mips_any_noreorder.
6255 (s_cpload): Ignore .cpload if not generating PIC code. Warn
6256 if .cpload is not in noreorder section.
6257 (s_cprestore): Ignore .cprestore if not generating PIC code.
6258 (s_gpword, s_cpadd): New functions.
6259 (tc_get_register): Added frame argument; if true, set
6260 mips_frame_reg to return value. Changed all callers.
6261 (md_estimate_size_before_relax): Don't error out, but instead
6262 determine how much a frag should grow.
6263 (tc_gen_reloc): Return multiple relocs if appropriate, as
6264 determined by md_estimate_size_before_relax.
6265 (md_convert_frag): New function.
6266 (mips_elf_final_processing): Set ELF header flags based on
6267 mips_any_noreorder and mips_pic.
6268 * config/tc-mips.h (RELOC_EXPANSION_POSSIBLE): Define.
6269 (MAX_RELOC_EXPANSION): Define to be 3.
6270 (md_relax_frag): Define to be 0.
6271 (md_convert_frag): Don't define.
6272 (tc_get_register): Changed declaration.
6273
6274 * ecoff.h, ecoff.c: New files pulled out of config/obj-ecoff.c to
6275 support generating ECOFF debugging information for MIPS ELF
6276 targets. Compiled only if ECOFF_DEBUGGING is defined. Changed
6277 handling of external symbols: it now always generates exactly
6278 those external symbols that are defined in the global symbol list.
6279 * Makefile.in (REAL_SOURCES): Added ecoff.c.
6280 (REAL_HEADERS): Added ecoff.h.
6281 (OBJS): Added ecoff.o.
6282 (ecoff.o): New target.
6283 * config/obj-ecoff.c: Almost entirely moved into ecoff.c.
6284 Remaining code mostly just calls ecoff.c code.
6285 * config/obj-ecoff.h: Define ECOFF_DEBUGGING.
6286 (TARGET_SYMBOL_FIELDS): Make ecoff_symbol a pointer to a
6287 struct localsym.
6288 (obj_read_begin_hook, obj_symbol_new_hook): Define to call
6289 functions in ecoff.c.
6290 (ecoff_stab): Don't declare (now declared in ecoff.h).
6291 (obj_set_sym_index): Define.
6292 (obj_ecoff_set_sym_index): Declare.
6293
6294 * frags.h (frag_grow): Declare.
6295 * frags.c (frag_grow): Made non-static.
6296
6297 * write.c (is_dnrange): Do not define if md_relax_frag is defined.
6298 (relax_segment): If md_relax_frag is defined, use it to handle a
6299 frag of type rs_machine_dependent rather than looking through
6300 md_relax_table.
6301
6302 * read.c (read_a_source_file): If we find a bad pseudo-op,
6303 do a continue to go on to the next line rather than a break.
6304 Removed duplicate bad pseudo-op code which was never executed.
6305
6306 * read.c (s_lcomm): Do not require a comma after the name.
6307
6308 * subsegs.h (segment_info_type): Changed hadone field to bitfield.
6309 Added bss bitfield.
6310 * as.c (perform_an_assembly_pass): Set bss flag for bss_section.
6311 * read.c (s_lcomm): Set bss flag for .sbss section if used.
6312 * write.c (relax_and_size_seg): Don't set SEC_HAS_CONTENTS for a
6313 bss section. Set SEC_RELOC if there are any relocations, even for
6314 a zero size section.
6315
6316 * write.c (write_relocs): In RELOC_EXPANSION_POSSIBLE case, base
6317 data offset on reloc[0]->address rather than reloc[j]->address, so
6318 that multiple relocs can affect different memory locations.
6319
6320 * write.c (chain_frchains_together, relax_and_size_seg,
6321 adjust_reloc_syms, write_relocs): Make third argument PTR, not
6322 char *, to match definition of bfd_map_over_sections.
6323
6324 * app.c (do_scrub_next_char): Don't interpret a comment character
6325 as starting a CPP line directive unless it is a '#' and is the
6326 very first characters on the line (i.e., do not permit leading
6327 whitespace).
6328
6329 * messages.c (identify): Make file argument non-const, to match
6330 callers.
6331
c5e9ccd0
JL
6332Tue Nov 16 20:38:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6333
6334 * config/tc-hppa.c (pa_ip): Fix thinko in 21bit range check.
6335
6336Sat Nov 13 18:22:48 1993 Steve Chamberlain (sac@jonny.cygnus.com)
6337
6338 * config/tc-sh.c (md_apply_fix): Cope with IMM16 type too.
6339 * config/tc-z8k.c (build_bytes, md_apply_fix): Understand nDISP7
6340 relocs.
6341
4a1b59ef
JL
6342Fri Nov 12 16:51:47 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6343
3e330968 6344 * config/tc-hppa.[ch]: Fix assorted trivial indention problems.
4a1b59ef
JL
6345 * config/obj-som.c (obj_som_version): Add missing ';'.
6346 (som_frob_file): Delete whitespace at EOL.
6347
f3b6e1f2
KR
6348Fri Nov 12 15:26:21 1993 Ken Raeburn (raeburn@cygnus.com)
6349
6350 * Makefile.in (VERSION): Updated following 2.2 release.
6351
c5e9ccd0 6352Fri Nov 12 14:52:17 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
f2eed884
JL
6353
6354 * config/tc-hppa.c (hppa_fix_struct): Use a real type for the
6355 field selector, rather than an int. All uses of field selectors
6356 fixed.
6357 (tc_gen_reloc): For SOM PLABELs, always set addend to zero for now.
6358 (md_apply_fix_1): Do not call hppa_field_adjust for any PLABEL
6359 field.
6360
6361 Thu Nov 11 15:49:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
a721c80b
JL
6362
6363 * config/tc-hppa.c (pa_type_args): For .import statements,
69cb5925 6364 silently ignore attempt to change the symbol type for a function
f2eed884 6365 from ST_ENTRY to ST_CODE on .import.
a721c80b 6366
ca16b5e5
ILT
6367Wed Nov 10 16:19:13 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6368
6369 * write.h (fixS): Rename fx_callj field to fx_tcbit.
6370 * write.c, config/obj-coff.c, config/obj-coffbfd.c,
6371 config/tc-i960.c: Corresponding changes.
6372
48153d49
JL
6373Tue Nov 9 00:49:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6374
7420b02b
JL
6375 * Makefile.in (distclean): Delete config-stamp and config.h
6376
f41f3d72
JL
6377 * config/tc-hppa.c (evaluate_absolute): Avoid relying on
6378 ANSI-C features.
6379
48153d49
JL
6380 * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
6381 Accept new argument "is_export". All callers changed. When
6382 processing a .export directive for a function, do not allow
6383 the user to set the type to "CODE", instead warn and set the
6384 type to "ENTRY".
6385
9226253a
ILT
6386Mon Nov 8 12:05:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6387
6388 * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
6389 Lemon <mellon@pepper.ncd.com>).
6390 (mips_ip): Permit odd numbered floating point registers if -mips3.
48153d49 6391 (macro): Use BFD_RELOC_MIPS_LITERAL relocation for M_LI_SS.
9226253a 6392
53087850
DE
6393Mon Nov 8 07:45:01 1993 Doug Evans (dje@canuck.cygnus.com)
6394
6395 * configure.in: Remove h8300h, we have multilib now.
6396
5f8a3788
DHW
6397Mon Nov 8 06:09:18 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
6398
6399 * configure.in: Support generic netware as being ELF format.
6400 Recognise unixware if the user supplies it.
6401
163aac84
JL
6402Sun Nov 7 01:02:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6403
513f0471
JL
6404 * First cut at cleaning up PA instruction parsing.
6405 * config/tc-hppa.c (pa_get_absolute_expression): Accept pointer to
6406 insn structure as an argument, and a pointer to a string. All
6407 callers changed. Always read any field selector here. Call
6408 evaluate absolute to get a return value.
6409 (evaluate_absolute): Addept pointer to insn structure as its
6410 argument. All callers changed.
6411 (INSERT_FIELD_AND_CONTINUE): New macro for inserting a bitfield
6412 into an instruction and continuing the main pa_ip loop.
6413 (CHECK_FIELD): New macro for simple range checking of fields.
6414 (pa_ip): Delete unused variables. Use INSERT_FIELD_AND_CONTINUE
6415 and CHECK_FIELD. All immediate fields now pass through
6416 pa_get_absolute_expression which will also handle field selectors.
6417 Delete dead code. Simplify.
6418 (md_apply_fix_1): Use CHECK_FIELD to verify any fixes that are
6419 applied are in range. Use bfd_put_32 rather than inserting each
6420 byte of the fixed instrution into the buffer ourselves.
6421
3e411021 6422 * write.c (fixup_segment): Delete {SEG,GLOBAL}_DIFF_ALLOWED code,
69cb5925 6423 it was PA specific and is no longer needed (it's now handled
3e411021
JL
6424 within the PA backend).
6425 * config/tc-hppa.h (SEG_DIFF_ALLOWED): Delete definition.
6426 * config/tc-hppa.c (fix_new_hppa): If the subtract symbol for
6427 a fixup is $global$ change it to NULL as $global$ is really only
6428 needed long enough to determine the base type of relocation to use.
6429
240cbc57
JL
6430 * config/tc-hppa.c (create_new_subspace): Initialize subspace_defined.
6431
163aac84
JL
6432 * config/tc-hppa.c (pa-ip, case 'z'): Make field selectors work
6433 for 'z' operands (target of ble branch).
6434
1cc248d2
JL
6435Sat Nov 6 22:41:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6436
18c4f112
JL
6437 * config/tc-hppa.c: (update_subspace): Fix type and name of last
6438 parameter. All callers fixed.
6439 (md_begin, pa_chk_field_selector, pa_entry): Lint.
6440
1cc248d2
JL
6441 * config/tc-hppa.c (cons_fix_new_hppa): Reset field selector
6442 to default state after it's been used.
6443
88eb7ea6
JL
6444Fri Nov 5 12:08:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6445
6446 * config/obj-som.c (obj_som_init_stab_section): Change
6447 space/subspace sort keys for the stab sections so as to avoid
6448 bugs in the hp linker and pxdb.
6449
0f894895
JL
6450Thu Nov 4 17:00:05 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6451
6452 * write.c (chain_frchains_together): Update pointer to last
6453 frag for a segment in the seginfo structure.
6454
de074576
JW
6455Thu Nov 04 09:09:35 1993 Jeffrey Wheat (cassidy@cygnus.com)
6456
6457 * Makefile.in: Changed RUNTESTFLAGS to RUNTEST_FLAGS
6458
6459Wed Nov 3 12:16:27 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6460
6461 * write.c (fixup_segment): Handle conversion of subtraction to
6462 pc-relative addressing even if pc-relative flag is already set.
6463
6464 * config/tc-m68k.c (m68k_ip_op): Use strchr, not index. Don't
6465 declare either.
6466
6467 * doc/Makefile.in (distclean): Delete intermediate files from dvi
6468 build, but not the dvi or info files.
6469 * Makefile.in (clean-here): New target; cleans up current
6470 directory only.
6471 (distclean): Use it instead of clean.
6472
6473 * read.c (s_xstab): Don't use alloca.
6474
6475 * messages.c (identify): New routine; print message identifying
6476 following messages as coming from assembler.
6477 (as_show_where, as_bad_internal, as_bad_where): Call it.
6478 (as_fatal): Don't need to identify program any more.
6479
efe8ef02
ILT
6480Tue Nov 2 18:04:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6481
fd4b7c25
KR
6482 * config/tc-sparc.c (sparc_ip): Add default case to reloc switch.
6483
efe8ef02
ILT
6484 * read.c (s_lcomm): Put small objects in .sbss for MIPS ELF as
6485 well as MIPS ECOFF.
6486 (get_stab_string_offset): Remove unused variable aligned.
6487
aa14e863
JL
6488Tue Nov 2 15:07:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6489
d6e524f3
JL
6490 * tc-hppa.c: Add %dp and %rp as synonyms for %r27 and %r2 in the
6491 predefined register table.
6492 (pa_parse_number): Handle %rp in common register shortcut code.
6493 Consistently set return value to -1 for an error. Clean up error
6494 messages and only print them when "print_errors" is true. Handle
6495 empty string case like the HP assembler -- assume a value of
6496 zero.
69cb5925 6497
20cee6d8
JL
6498 * config/ho-hpux.h: Do not include ho-sysv.h. Instead include
6499 standard hpux include files to pick up various function decls.
6500
aa14e863
JL
6501 * config/ho-hppaosf.h: Delete _IO* macros. They are defined in
6502 stdio.h. Delete bogus declaration of free. Get path to
6503 alloca-conf.h right.
6504
25270a1c
KR
6505Tue Nov 2 13:57:30 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6506
6507 * expr.c (operand): Fix checks for characters following "0b" or
6508 "0f".
6509
f197d7eb
JL
6510Mon Nov 1 21:37:04 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6511
ff852e11
JL
6512 * config/obj-som.h (obj_attach_unwind_info): Define as a hook
6513 so GAS can attach unwind descriptor information to a BFD symbol.
6514 * config/tc-hppa.c (fix_new_hppa): If necessary attach unwind
6515 descriptor information to the BFD symbol.
6516 (md_apply_fix): R_HPPA_ENTRY and R_HPPA_EXIT can never be "applied",
6517 they are simply markers. Make R_HPPA_UNWIND_* handling OBJ_ELF
6518 dependent.
6519 (pa_build_unwind_subspace): Whole function is OBJ_ELF dependent.
6520 (pa_entry): Build a R_HPPA_ENTRY relocation when configured for SOM.
6521 (pa_exit): Likewise, but built a R_HPPA_EXIT relocation. Do not
6522 build "end-of-function" symbols for SOM, they are not needed.
6523
a50e9b55
JL
6524 * config/tc-hppa.c (process_exit): Create temporary symbols with
6525 correct prefixes so they can be eliminated later.
6526
49fc68a1 6527 * config/tc-hppa.c (call_info struct): Delete unused "frame" field.
69cb5925 6528 (pa_callinfo): Insert framesize into the unwind information as
49fc68a1
JL
6529 soon as it's available.
6530 (pa_build_unwind_subspace): Do not insert framesize into the unwind
6531 information here.
6532
c43d56f7
JL
6533 * Add support for marker type relocations. These mark areas
6534 of interest to the linker. ENTRY/EXIT relocations for SOM are
6535 an example of marker relocations.
6536 * write.c (write_relocs): Instead of assuming size of a relocation
6537 is 4 bytes, pick up the size from relocation itself.
69cb5925 6538 (fixup_segment): Do not complain that a value is too small for
c43d56f7
JL
6539 marker relocations.
6540
009dc5e1
JL
6541 * struc-symbol.h: Add new "sy_used" field to the symbol structure.
6542 * expr.c (operand): Set sy_used for any symbol used as an operand.
6543 (expr): Likewise for any symbol used in an expression.
6544 * config/tc-hppa.h (tc_frob_symbol): Define. Punt imported
6545 symbols which are never used and absolute symbols which local scope.
6546
f197d7eb
JL
6547 * config/obj-som.h (obj_frob_file): Define.
6548 * config/obj-som.c (obj_som_init_stab_section): Set alignment
6549 of stab sections. Make space for the special stab entry.
69cb5925 6550 (adjust_stab_sections): Adjust the special entry in the
f197d7eb
JL
6551 stabs section.
6552 (som_frob_file): New function. Simply calls adjust_stab_sections
6553 for each section.
6554
bca9cf0b
ILT
6555Mon Nov 1 17:54:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6556
6557 * config/tc-mips.c (PIC_CALL_REG, SP, FP): Define.
6558 (mips_pic, mips_cprestore_offset): New static variables.
6559 (md_pseudo_table): Handle .abicalls, .cpload, and .cprestore.
6560 Ignore .bgnb and .endb.
6561 (gp_reference): _gp_disp is never addressed off GP.
6562 (macro_build): Ignore macros while searching for insn. For cases
6563 i, j, and o, accept the reloc type as an argument rather than
6564 assuming BFD_RELOC_LO16. Don't try to convert BFD_RELOC_LO16 to
6565 BFD_RELOC_MIPS_GPREL. Added new case a.
6566 (set_at, load_register, macro): Changed calls to macro_build to
6567 pass new argument for i, j and o cases.
6568 (macro): Handle M_JAL_1, M_JAL_2 and M_JAL_A. These require
6569 special handling when generating SVR4 PIC code.
6570 (mips_ip, tc_get_register, s_frame): Use macros FP, SP, GP and AT
6571 rather than hard coded constants.
6572 (md_apply_fix): Handle BFD_RELOC_MIPS_LITERAL and
6573 BFD_RELOC_MIPS_CALL16.
6574 (s_option): Set mips_pic based on .option picN.
6575 (s_abicalls): New function; set mips_pic to 2.
6576 (s_cpload): New function; handle .cpload.
6577 (s_cprestore): New function; handle .cprestore.
6578
6579 * config/obj-ecoff.c (obj_pseudo_table): Add entries for .bgnb,
6580 .endb and .verstamp, setting them to s_ignore.
6581
d191a03c
JL
6582Sun Oct 31 00:36:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6583
47f45d66
JL
6584 * config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined
6585 field. Define SUBSPACE_DEFINED accessor macro.
6586 (pa_subspace): Allow user to override subspace attributes for
6587 built-in subspaces. Set ssd_defined at the end of fcn -- that
6588 way the attributes can only be changed once. Pass newly allocated
6589 name to is_defined_subspace, not a pointer to the input line.
6590 Fix typo in space/subspace rework.
6591 (is_defined_subspace): Delete unused 2nd arg. All callers changed.
6592
6593 * config/tc-hppa.c (pa_import): If currently in the text segment
6594 and a symbol is imported without type information, set BSF_FUNCTION
6595 for the symbol.
20b39b6f
JL
6596 * write.c (relax_and_size_seg): Correct test to determine if
6597 the section's size was rounded up.
6598
e75acd68
JL
6599 * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
6600 can properly set all the SOM symbol types.
69cb5925 6601 * config/tc-hppa.c (pa_symbol_type): New enum to represent the
e75acd68
JL
6602 symbol types which can be set from an IMPORT/EXPORT statement.
6603 (pa_export_args): Set the pa_symbol_type type based on arguments.
6604 If defined, call obj_set_symbol_type to pass this information on
6605 to the BFD backend.
6606
69cb5925 6607 * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
d191a03c
JL
6608 stab section we make.
6609 (s_stab_generic): Likewise.
6610
12696e9c
JL
6611Sat Oct 30 14:26:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6612
65a7f8a6
JL
6613 * Allow backends to override the value of the fake label.
6614 * write.h (LOCAL_LABEL): Delete DOT_LABEL_PREFIX code. Instead
6615 assume backends will define LOCAL_LABEL if anything other than
6616 'L' is used to denote a local label.
6617 (FAKE_LABEL_NAME): New macro. Defines the default name used for
6618 the "fake" label.
6619 * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
6620 and instead simply use the string defined by FAKE_LABEL_NAME.
6621 (operand): Likewise.
6622 * read.c (s_stab_generic): Likewise.
6623 * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
6624 known to be a local label.
6625 * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
6626 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
6627 * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete.
6628 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
6629 * config/te-sco386.h (DOT_LABEL_PREFIX): Delete.
6630 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
6631
6bc14195
JL
6632 Rework space/subspace handling in PA code to fully support
6633 SOM spaces/subspaces.
6634 * config/tc-hppa.c (USE_ALIASES): New object-format dependent define
6635 to control the use of space/subspace name aliases.
6636 (update_subspace): Accept space chain entry for containing space
6637 as a new parameter. All callers changed.
6638 (pa_get_label): Use current_space rather than pa_segment_to_space.
6639 (pa_define_label): Likewise.
6640 (pa_undefine_label): Likewise.
6641 (md_begin): Change into the (possibly modified) text_section.
6642 (pa_parse_space_stmt): Create a new segment/space if create_flag
6643 is true, and the space name is not one of the two predefined spaces.
69cb5925
KR
6644 (pa_subspace): Use current_space rather than a lookup via
6645 pa_segment_to_space. Reset BFD section flags as required by
6bc14195
JL
6646 the .subspace directive. Likewise for the section alignment.
6647 Pass the current space to update_subspace and create_new_subspace.
6648 (pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
6649 is true. When not using aliases, create a BFD section for each
6650 subspace encountered. When not using aliases replace the default
6651 text, data, and bss segments with new ones.
69cb5925 6652 (create_new_subspace): When not using aliases each subspace has a
6bc14195 6653 section/segment and subsegments are not needed, so set the subsegment
69cb5925 6654 to zero.
6bc14195 6655
548ea75b 6656 * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
69cb5925 6657 obj_set_section_attributes to pass space attributes to the
548ea75b
JL
6658 BFD backend.
6659 (create_new_space): Likewise.
69cb5925 6660 (create_new_subspace): Likewise for subspace attributes using
548ea75b
JL
6661 obj_set_subsection_attributes.
6662 (update_subspace): Likewise for subspace attributes using
6663 obj_set_subsection_attributes.
6664
0f3b419c
JL
6665 * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
6666 for $TEXT$ and $PRIVATE$ from the default space structure.
6667
9a182533
JL
6668 * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
6669 as appropriate for the given type.
6670
62f0841b
JL
6671 * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
6672 SOM relocations.
6673
d56f45f5
JL
6674 * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
6675 redefinition.
6676
3c87583d
JL
6677 * config/obj-som.[ch]: New files for SOM support. Note SOM
6678 support is not yet complete in GAS or BFD.
6679
69cb5925 6680 * config/ho-hppabsd.h: Delete IO* macros, they are defined in
12696e9c
JL
6681 stdio.h. Delete declaration of free. Include stdlib.h, unistd.h,
6682 and string.h.
6683
37ed805e
JL
6684Fri Oct 29 13:26:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6685
12696e9c
JL
6686 * Allow backends to override the section names used for embedded
6687 stabs support. Needed for SOM.
6688 * read.c (STAB_SECTION_NAME): Default the name of the stab section
69cb5925 6689 to ".stab".
12696e9c
JL
6690 (STAB_STRING_SECTION_NAME): Likewise for the stab strings section.
6691 (get_stab_string_offset): Is now passed the full name for the
6692 stab string section rather than a name prefix. All references
6693 changed.
6694 (s_stab_generic): New argument for the stab string section name.
6695 all references changed.
6696 (s_xstab): Append "str" to the stab section name to get the
6697 stab string section name.
6698 * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
6699 to stab section name to get the stab string section name. Pass
6700 the full name of the stab string section to get_stab_string_offset.
6701 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
69cb5925 6702
53c0b9e7
JL
6703 * config/tc-hppa.c (md_begin): Disable "-R" option to fold
6704 textand data segments. Warn user "-R" is unsupported on the
6705 PA.
37ed805e 6706
48ac0c90
JL
6707Thu Oct 28 12:36:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6708
d33ace2e
JL
6709 * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
6710 .align and .ALIGN directives.
6711
48ac0c90
JL
6712 * config/tc-hppa.c (pa_space): Do not report an error for a .space
6713 directive which does not define a "well-known" space and does
6714 not include a space number as an argument.
69cb5925 6715
48ac0c90
JL
6716 * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
6717 "defined", "loadable", "code_only" and "space_index" fields.
6718 (pa_def_spaces): Correct initialization of the "spnum", "defined",
6719 and "private" fields.
6720
6721 * write.h (struct fix): Add new tc_fix_data field for the various
6722 backends to attach machine dependent fixup information to.
6723 * write.c (fix_new_internal): Initialize new tc_fix_data field.
6724 * config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
6725 fx_next fields.
6726 (hppa_find_hppa_fix): Delete unnecessary function. Fix all
69cb5925 6727 callers to get HPPA fixup information from the tc_fix_data field
48ac0c90
JL
6728 in the GAS fixup.
6729 (hppa_fix_root): Delete unnecessary variable.
6730 (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.
6731
6732 * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
6733 function. Fix all callers.
6734 (subspace_dictionary_chain): Delete unused ssd_start_sym field.
6735
6736 * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
6737 if a particular fixup is adjustable.
6738 * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
6739 perform the real work.
6740
6741 * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
6742 of OBJ_XXX conditionals.
6743 (MAX_RELOC_EXPANSION): Likewise.
6744
6745 * config/tc-hppa.c (log2): Renamed from is_power_of_2. Fix all
6746 callers. Now returns log2 (N) for positive N which are an exact
6747 power of two or -1 for an error.
6748
69cb5925 6749 * config/tc-hppa.c (pa_callinfo): Range check values provided for
48ac0c90
JL
6750 ENTRY_GR, ENTRY_FR and ENTRY_SR. Properly adjust vaues before
6751 inserting them into the unwind table.
6752
6753 * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
6754 (hppa_gen_reloc_type): New object format dependent macro.
6755 (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
6756 conditional. The code can (and will) be shared between SOM & ELF
6757 formats in the near future.
6758 (cons_fix_new_hppa, md_apply_fix_1): Likewise.
6759 (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
6760 (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
6761 specific call.
6762
6763 * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
6764 to bfd_und_section.
6765
6766 * config/obj-elf.h (obj_elf_version): Add extern prototype.
6767
6768 * configure.in (hppa-*-bsd*): New configuration.
6769 BFD is always used for GAS generating SOM objects.
6770
6771 * write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
6772 adjustment is rejected by the target machine.
6773
6774 * config/tc-hppa.c (pa_big_cons): Delete function and its
6775 declaration. All callers changed to use pa_cons.
6776
6777 * write.c (fixup_segment): Fix indention and open/close brace
6778 problem.
6779
6780 From Pete Hoogenboom:
6781 * config/tc-hppa.c (md_atof): Return a NULL on success rather than
6782 an empty string.
6783
3515a504
JL
6784 * config/tc-hppa.c (pa_parse_space_stmt): Advance
6785 input_line_poitner when an invalid argument is encountered.
6786
6121fb06
ILT
6787Thu Oct 28 13:09:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6788
6789 * config/tc-a29k.c (md_begin): When opcodes are mashed together in
6790 the table, require that the one without bit 0x1000000 set come
6791 first. Require further that it be case 'b' or 'P'. The a29k
6792 opcode table already meets these constraints.
6793 (machine_ip): When handling case 'i' or 'A', make sure that the
6794 appropriate opcode really exists by looking at the next entry in
6795 the opcode table.
6796
56c96faa
ILT
6797Wed Oct 27 11:48:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6798
729f4bba
ILT
6799 * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
6800 fixups. Add 6 for long 7.3 case, 2 for short 7.2 case.
6801
007ff46b
ILT
6802 * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
6803 after a .ent directive.
6804
d1ee509b
ILT
6805 * config/tc-mips.c (mips_ip): Handle '>' case (shift amount
6806 between 32 and 63 for double shift instruction). Do & 0x1f rather
6807 than % 32.
6808 (printInsn): Handle '>'.
56c96faa 6809
fa20b8bf
ILT
6810Tue Oct 26 16:58:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6811
5694ad93
ILT
6812 * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
6813 number in the right place. Untested. Probably does not work for
6814 cross assembly. From cagney@cs.adelaide.edu.au (Andrew Cagney).
6815
f3751617
ILT
6816 * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
6817 an illegal offset of 0 or -1.
6818
fa20b8bf
ILT
6819 * config/obj-elf.c (obj_elf_init_stab_section): Align .stab
6820 section to a longword boundary.
6821
4da7942d
KR
6822Tue Oct 26 10:24:31 1993 Ken Raeburn (raeburn@cygnus.com)
6823
6824 * Makefile.in (CHECKFLAGS): Pass down RUNTESTFLAGS.
6825
6826 From Jeff Law:
6827 * config/tc-hppa.c (tc_gen_reloc): ELF32_HPPA_R_ADDEND ->
6828 HPPA_R_ADDEND.
6829
fd4b7c25
KR
6830Mon Oct 25 14:06:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6831
6832 * config/tc-sparc.c (sparc_ip): Fix up membar argument handling.
6833
24934035
SC
6834Mon Oct 25 11:17:58 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
6835
8e5afd4f
SC
6836 * config/tc-sh.c (build_Mbytes): Write the relocs to the correct
6837 address. (md_assemble): Make error handling a bit more graceful.
6838 (md_apply_fix): Don't warn on non aligned displacement.
fd4b7c25 6839
24934035
SC
6840 * config/tc-z8k.c (get_specific, built_bytes): Understand all the
6841 aspects of lda.
6842
84678d16
KR
6843Mon Oct 25 10:20:31 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6844
6845 * doc/Makefile.in (install-info): Use "$<*" so VPATH will find
6846 as.info* even if they're in $(srcdir) (e.g., for FSF
6847 distributions).
6848
6849 * write.c (write_relocs): For relocs that are pc_relative and
6850 pcrel_offset and not partial_inplace, adjust reloc->addend to
6851 compensate for a bfd_perform_relocation bug.
6852
6853 * config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
6854 * config/tc-sparc.c: Ditto.
6855 (tc_gen_reloc): Include fx_offset for pcrel fixups.
6856
52aa70b5
JW
6857Sun Oct 24 16:49:00 1993 Jim Wilson (wilson@x1.cygnus.com)
6858
6859 * tc-mips.c (md_pseudo_table): Add dword pseudo op.
6860
ab0751c8
DZ
6861Fri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6862
6863 * messages.c: replaced all variables called Format with 'format',
6864 for consistency throughout
6865
6866 * configure.in: handle mips*- instead of mips, mips*el for little
6867 endian configurations
6868
8efed14f
ILT
6869Fri Oct 22 14:45:49 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6870
6871 * input-scrub.c (physical_input_file, logical_input_file,
6872 physical_input_line, logical_input_line): Made static.
6873 (as_where): Return current file name and line number, don't print
6874 them out.
6875 * messages.c (as_show_where): New static function. Other
6876 functions use it instead of as_where.
6877 (as_bad_internal): New static function.
6878 (as_bad): Use as_bad_internal.
6879 (as_bad_where): New function, like as_bad but taking a file name
6880 and line number.
6881 * as.h (as_bad_where): Declare.
6882 (as_where): Change prototype for new arguments.
6883 * write.h (fixS): Added fields fx_file and fx_line.
6884 * write.c (fix_new_internal): Save file and line number in fix.
6885 (fixup_segment): Use as_bad_where, not as_bad.
6886 * input-file.c (f_in, file_name): Made static.
6887 * cond.c (struct file_line): Just use file and line fields.
6888 (s_else): Use as_where and as_bad_where, not get_file_line and
6889 set_file_line.
6890 (get_file_line, set_file_line): Removed.
6891 * listing.c (listing_newline): Use as_where.
6892 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
6893 * config/obj-ecoff.c (add_file): Use as_where.
6894 * config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
6895 * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
6896 * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
6897
efa0c22e
KR
6898Thu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com)
6899
6900 * config/tc-m68k.h: Don't define REGISTER_PREFIX or
6901 OPTIONAL_REGISTER_PREFIX if either is already defined.
6902
6903 * config/tc-m68k.c (m68k_ip): Delete some code in "#if 0".
6904
6905 * configure.in: Set bfd_gas for all sparc targets. Added facility
6906 for keeping or rejecting configurations still under development;
6907 default is to assume production environment, and reject configs
6908 still being worked on. Mark Elf configurations (except sparc and
6909 i386) as developmental. Deleted cases matching some generic names
6910 in favor of more specific names. (E.g., when we get Alpha
6911 support, we'll still only support VMS for Vax.)
6912
6913 * config/tc-sparc.h (md_end): New macro.
6914 * config/tc-sparc.c (md_end): Function deleted.
6915 (BFD_RELOC_*): Delete macros that used to help keep the non-bfd
6916 version compiling. All sparc targets will use bfd now.
6917 * tc.h (md_end): Don't declare if it's defined as a macro.
6918
6919 Changes from Jeff Law and Peter Hoogenboom:
6920
6921 * read.c (next_char_of_string): Limit octal character constants to
6922 three digits.
6923
6924 * config/tc-hppa.h: Major cleanup. Use GNU-style comments. Warn
6925 against placing additional object-file dependent code here. Warn
6926 against contaminating all of GAS with the internals of tc-hppa.c
6927 through inclusion of tc-hppa.h. Delete all forward declarations
6928 for functions only used within tc-hppa.c, likewise for structures,
6929 variables, and #defines. Try to group OBJ_ELF and OBJ_SOM
6930 conditional code in a few small places.
6931
6932 * config/tc-hppa.c: Major cleanup. Use GNU-style comments. Group
6933 structures, global variables, forward declarations together.
6934 Reduce (or in some cases eliminate) OBJ_ELF and OBJ_SOM
6935 conditional code -- try to group conditional code together
6936 into a few places. Make all functions and variables which
6937 are only used within tc-hppa.c static. PARAMize all functions.
6938 Add comments to functions. Delete unused functions, variables,
6939 #defines, etc. Delete unused members within structures. Delete
6940 ldil;ble hacks -- it is believed they were installed to work
6941 around old gas bugs. Avoid using mixed case for local
6942 functions, variables, and structures. Fix formatting problems
6943 not found by GNU-indent. Add FIXME notices for things which
6944 should be worked on the near future. Delete lots of old
69cb5925 6945 useless (1.36 PA-SOM) code.
efa0c22e
KR
6946
6947 * config/tc-hppa.c: (fix_new_hppa): Initialize the fx_r_type
6948 field of the fixS structure. Needed to build unwind
6949 descriptors correctly.
6950
6951 * write.c: (fixup_segment): Allow expressions such as
6952 sym1-sym2+const as long as sym2 is $global$.
6953
6954 * write.c (adjust_reloc_syms): Provide a hook so that a target
6955 cpu configuration can reject certain relocation reductions.
6956 * tc-hppa.h (tc_fix_adjustable): New macro. Only accept relocations
6957 which do not involve function symbols.
6958
6959 * config/tc-hppa.h: Reindent with GNU-indent. Delete references
6960 to OBJ_OSFROSE. Fix typos (OBJ_SOME -> OBJ_SOM). Delete unused
6961 STAB_FIXUP macro.
6962 * config/tc-hppa.c: Likewise.
6963
6964 * config/tc-hppa.c (md_apply_fix_1): Use elf_symbol_type, instead
6965 of elf32_symbol_type.
6966 (pa_export_args): Likewise.
6967 (elf_hppa_final_processing): Likewise.
6968 (pa_desc): Do not call obj_elf_desc. (Is pa_desc even needed
6969 anymore?)
6970 (hppa_tc_make_sections): Do not declare elf_get_symtab_map any
6971 ore.
6972
6973 * config/tc-hppa.c: (md_section_align): Align all sections to
6974 a multiple of the section alignment rather than always a
6975 multiple of 8.
6976
6977 * config/tc-hppa.c (hppa_tc_symbol): If the argument relocation
6978 bits are zero (eg they specify no relocations), then do not even
6979 bother adding their entries to thesymextn section.
6980
7766838e
ILT
6981Thu Oct 21 15:44:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6982
6983 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
6984 option, which is used by the SunOS make default .s.o rule.
6985
fd4b7c25
KR
6986Wed Oct 20 12:26:33 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6987
6988 * config/tc-sparc.c (sparc_ip, label "immediate"): Convert relocs
6989 operating on upper 32 bits of immediate constants to lower-half
6990 relocs with adjusted constants.
6991
dff60b7d
ILT
6992Tue Oct 19 18:13:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6993
6994 * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable
6995 m68k_aout_machtype.
6996 * config/tc-m68k.c (omagic): Remove obsolete and unused variable.
6997 (m68k_aout_machtype): New variable, if OBJ_AOUT.
6998 (md_assemble): Initialize m68k_aout_machtype based on
6999 current_architecture, if OBJ_AOUT.
7000 (md_parse_option): Remove obsolete reference to omagic.
7001
c17cd709
ILT
7002Thu Oct 14 16:51:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7003
dd3f1f76
ILT
7004 * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
7005 (s_option): Ignore .option O* and .option pic*.
7006 (s_ent): Skip whitespace between symbol and optional digit.
dff60b7d 7007 (my_getSmallExpression): Handle ($xx) correctly: assume 0($xx).
dd3f1f76 7008
54508138
ILT
7009 * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape
7010 characters in state 6.
7011 * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are
7012 hexidecimal digits.
7013
c17cd709
ILT
7014 * config/tc-i386.c (md_apply_fix_1): Make cross segment calls work
7015 for ELF by hacking around bizarre bfd_perform_relocation behaviour
7016 that I don't dare change.
7017
ad660eb1
ILT
7018Thu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org)
7019
7020 * config/tc-i386.c: (md_begin): Do not zero static arrays. Don't
7021 call strchr for each character to see if it is a special char,
7022 instead add a second loop over special_chars. Set alignment
7023 of text, data and bss sections to 4.
7024 (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be
7025 used again.
7026 (reloc): Don't return 8 and 16 bit non-PC relative relocations on
7027 ELF, since the ELF object format does not have these type of
7028 relocations. Change the abort into as as_bad and return
7029 BFD_RELOC_NONE to silence compiler warnings.
7030 (md_assemble): Keep track of the instruction size. Allow white
7031 space between the $ and the constant for compatibility with older
7032 gases and other assemblers.
7033 (i386_operand): Skip spaces between $ and expression.
7034 (tc_gen_reloc): Don't allow anything but 32 bit relocations on
7035 ELF. Convert abort into an as_bad and assert into as_fatal.
7036
132239bf
KR
7037Wed Oct 13 16:50:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7038
7039 * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: If
7040 sub_symbolP is in the current segment, convert to a PC-relative
7041 fixup and discard the symbol.
7042
b7cbb59f
ILT
7043Wed Oct 13 14:00:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7044
463b1851
ILT
7045 * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbol
7046 for st_StaticProc just like st_Proc.
7047
b7cbb59f
ILT
7048 * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUT
7049 so that OBJ_BOUT doesn't forget to adjust all the fragments in the
7050 .bss section.
7051
f2a663d3
ILT
7052Tue Oct 12 17:26:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7053
7054 * config/tc-mips.c: If OBJ_ELF, include elf/mips.h.
7055 (mips_regmask_frag): New static variable, if OBJ_ELF.
7056 (md_begin): If OBJ_ELF, create .reginfo section and set
7057 mips_regmask_frag to a frag.
7058 (mips_elf_final_processing): New function, if OBJ_ELF. Set
7059 mips_regmask_frag to register mask information.
7060 * config/tc-mips.h (elf_tc_final_processing): New macro, defined
7061 if OBJ_ELF.
7062
99024047
KR
7063Tue Oct 12 03:33:26 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7064
2145a183
KR
7065 * messages.c (as_fatal): Use myname when printing messages.
7066
99024047
KR
7067 * config/tc-i960.c (md_begin): Use null pointer, not empty string,
7068 as initial "return" value in case hashing isn't needed.
7069
7070 * config/tc-a29k.c (md_atof): Return null, not empty string, on
7071 success.
7072 * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof),
7073 config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof),
7074 config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof),
7075 config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto.
7076
7077Mon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2dd45209
SC
7078
7079 fix for pr 3571
7080 * config/tc-h8300.c (get_specific): Special action if 8 bit
7081 address seen. (check_operand): Don't complain if truncating top
7082 bits of an 8 bit address. (build_bytes): Allow an immediate and
7083 an absolute in the same insn.
7084
f37449aa
ILT
7085Mon Oct 11 17:18:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7086
7087 * write.c (write_contents): Don't crash if seginfo is NULL.
7088
7089 * config/obj-ecoff.c (ecoff_frob_file): Write out register masks
7090 by modifying .reginfo section, not by directly modifying BFD
7091 backend data.
7092
fec552ce
DZ
7093Mon Oct 11 14:11:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7094
7095 * config/ho-sunos.h: remove extern time declaration
7096
8d3be803
KR
7097Mon Oct 11 16:14:43 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7098
7099 * messages.c (as_fatal): Do mention that it's the assembler that
7100 got the fatal error.
7101
88225433
ILT
7102Fri Oct 8 14:09:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7103
1aa6938e
ILT
7104 * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to
7105 hold register masks.
7106 (md_begin): Initialize them to zero.
7107 (append_insn): Update mips_gprmask and mips_cprmask. Also add
7108 register variables pinfo and prev_pinfo.
7109 * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare.
7110 * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask
7111 and cprmask from mips_gprmask and mips_cprmask.
7112
88225433
ILT
7113 * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF.
7114 * config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF.
7115 (various): Change all references to GP references to apply if
7116 GPOPT, not if OBJ_ECOFF.
7117 (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata
7118 instead of .rdata. If OBJ_ELF, set section flags for .rodata and
7119 .sdata sections.
7120 (s_frame, s_loc, s_mask): Comment out entire functions, rather
7121 than just body. They're not used anyhow.
7122 * configure.in: Set cpu_type to mips for mips*. Accept
7123 mips-*-elfl* and mips-*-elf*.
7124
17a0da33
ILT
7125Thu Oct 7 18:36:29 1993 Michael Meissner (meissner@osf.org)
7126
7127 * config/obj-elf.c (obj_elf_common): Allow the alignment field to
7128 not be specified.
7129
80aab579
ILT
7130Wed Oct 6 13:01:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7131
abdad6bc
ILT
7132 * config/tc-mips.c (cons_fix_new_mips): New function. Turn
7133 BFD_RELOC_64 into BFD_RELOC_32.
7134 * config/tc-mips.h (TC_CONS_FIX_NEW): Define.
7135 (cons_fix_new_mips): Declare.
7136
80aab579
ILT
7137 Changes to let cons handle bignums like general expressions.
7138 * expr.h (expressionS): New field X_unsigned.
7139 * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for
7140 unary minus case.
7141 (expr) Fix typo resultP to right if missing operand. Set
7142 X_unsigned to 1 when building new expression.
7143 * read.c (potable): Make "octa" and "quad" call cons, not
7144 big_cons.
7145 (cons): Handle bignums. If given an O_constant (small integer) to
7146 fill a big space, turn it into a bignum.
7147 (parse_bitfield_cons): Set X_unsigned field.
7148 (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons):
7149 Removed.
7150 * read.h (big_cons): Remove prototype.
7151 * symbols.c (resolve_symbol_value): Don't give a warning if a
7152 symbol in expr_section can not be resolved.
7153 (S_SET_VALUE): Clear X_unsigned.
7154 * write.c (write_object_file): If resolve_symbol_value failed on a
7155 symbol we are writing out, give a warning.
7156 * config/tc-h8500.c (parse_reglist): Set X_unsigned.
7157 * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to
7158 call pa_cons, not pa_big_cons.
7159 (pa_big_cons): Remove.
7160 * config/tc-hppa.h (pa_big_cons): Remove declaration.
7161 * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons,
7162 not big_cons.
7163
7164Tue Oct 5 10:53:36 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7165
7166 * doc/as.texinfo (Copying): new node, to handle the recent changes
7167 in the texinfo/gpl.texinfo file
7168
4f5666c5
ILT
7169Mon Oct 4 17:10:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7170
7171 * read.c (big_cons): Handle "0" correctly.
7172
7173 * config/tc-mips.c (md_begin): Set target_big_endian correctly.
7174
8208ab5a
KR
7175Mon Oct 4 15:37:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7176
7177 * config/tc-m68k.c (m68k_ip): Mode 7.3 operand using PC should
7178 have pc-relative fixup.
7179 (md_parse_option): Move "-k" case down near "-pic" case.
7180
31909d40
KR
7181 * configure.in: Alphabetize list of cpu type alternatives. Enable
7182 OS values of "linux*elf*" and "linux*coff*" to select those
7183 formats, with linux emulation. Don't bother checking for upper-
7184 or mixed-case versions of "ose".
7185
8208ab5a
KR
7186Thu Sep 30 11:05:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
7187
7188 * config/z8k.c (md_pseudo_table): add "unseg".
7189
6cc87fbb
RP
7190Wed Sep 29 16:15:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7191
7192 * config/m88k-opcode.h (m88k_opcodes): correct a few mistakes
7193 found while extending the dissassembler.
7194
8f3956b3
SS
7195Tue Sep 28 12:02:04 1993 Stan Shebs (shebs@rtl.cygnus.com)
7196
7197 * configure.in: Split i386 LynxOS out from other coff targets,
7198 add a specific Lynx emulation.
7199 Add m68k LynxOS target.
7200 * config/tc-i386.c: Define specific Lynx target format.
7201 * config/tc-m68k.c: Define specific Lynx target format.
7202 * config/te-lynx.h: New file.
7203
7204 * config/obj-coffbfd.h: Don't set TARGET_FORMAT to be
7205 "coff-{i386,m68k}" if TARGET_FORMAT already defined.
7206 (INIT_STAB_SECTION): Define.
7207 * config/obj-coffbfd.c: Include <time.h>.
7208 (write_object_file): Look for .stab sections and call
7209 adjust_stab_section.
7210 (adjust_stab_section): New function, fills in the first symbol
7211 of a stab section with number of symbols and string table size.
7212 (obj_coff_init_stab_section): New function, creates the initial
7213 symbol for a stab section.
7214
43029a8f
KR
7215Mon Sep 27 15:21:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7216
7217 * config/atof-vax.c (md_atof): Return null on success instead of
7218 empty string.
7219 * config/atof-tahoe.c (md_atof): Ditto.
7220 * read.c (float_cons): Expect a null pointer for success, not an
7221 empty string.
7222
7223 * hash.c (hash_insert, hash_jam, hash_grow): Return null pointer
7224 on success, instead of empty string. All callers changed.
7225
7226 * config/tc-vax.c: Use PARAMS in declarations.
7227 (vip_op): Use NULL instead of empty string for success in error
7228 and warning fields.
7229
b7318ac4
KR
7230Sun Sep 26 23:45:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7231
b9790da8
KR
7232 * expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of two symbols
7233 in different defined segments.
7234
b7318ac4 7235 * write.c (relax_segment): Localize "aim" variable. If
132239bf 7236 DIFF_EXPR_OK, don't impose checks on symbol segment types.
b7318ac4
KR
7237 (fixup_segment) [DIFF_EXPR_OK]: If sub_symbolP is in the current
7238 segment, convert to a PC-relative fixup and discard the symbol.
7239
7240 * config/tc-m68k.c (flag_want_pic): New variable, mostly ignored.
7241 (md_parse_option) [TE_SUN3]: Set it for "-k".
7242 (m68k_ip): Generate proper fixup for mode 7.3.
7243 * config/tc-m68k.h (DIFF_EXPR_OK): Define.
7244
c996b199
KR
7245Sat Sep 25 05:08:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7246
7247 * config/tc-m68k.c (struct m68k_incant, getone, gettwo): Moved
7248 earlier in the file.
7249 (insop, add_exp): Now defined as functions, for readability.
7250 (insop): Now takes two arguments; callers changed.
7251
6d6b97b7
RP
7252Fri Sep 24 12:37:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7253
58f3e8a9
RP
7254 * config/tc-m88k.c (get_o6): new function.
7255 (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg,
7256 get_vec9, getval, get_pcr, calcop, match_name): make static and
7257 prototype.
7258 (s_file): remove extraneous forward decl.
7259 (md_begin): add const to retval decl.
7260 (calcop): cope with instructions without arguments. Handle 'o'
7261 type argument, the o6 field of the prot insn.
7262 (md_estimate_size_before_relax): return a dummy value.
7263
6d6b97b7
RP
7264 * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
7265 in bits 10 through 7. flt.[dxs]s requires an r register in the
7266 second argument. New instruction lda.x. New instruction muls
7267 (alias for mul).
7268
7269Fri Sep 24 13:43:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7270
7271 * Makefile.in (distclean): Recurse like clean.
7272 * doc/Makefile.in (distclean): New target.
7273
7274 * config/tc-mips.c (md_begin): Set BFD architecture and machine
7275 based on MIPS ISA level.
7276
7277Thu Sep 23 17:58:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7278
7279 * as.c (main): "exhausted", not "exhuasted".
7280
7281 * struc-symbol.h (struct symbol): Add sy_used_in_reloc field.
7282 * write.c (adjust_reloc_syms): Set sy_used_in_reloc.
7283 (write_object_file): Never strip symbols with sy_used_in_reloc
7284 set.
7285
7286 * config/obj-elf.c (obj_elf_section): Rewrote to handle both
7287 Solaris and SVR4 style .section pseudo-ops.
7288 (obj_elf_ident): Set SEC_READONLY for .comment section.
7289 * config/tc-sparc.c (md_apply_fix): If this is ELF, and we're
7290 generating a reloc, don't apply a fix.
7291
6110df28
KR
7292Thu Sep 23 13:16:58 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7293
7294 * config/obj-coffbfd.c (relax_align): Now static.
7295
9bd0d649
ILT
7296Mon Sep 20 19:23:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7297
7298 * read.c (get_stab_string_offset): Make non-static. Make
7299 arguments const. Don't align strings to 4 byte boundaries.
7300 * read.h: Declare get_stab_string_offset.
7301 * config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as
7302 SEC_LOAD for progbits section.
7303 (obj_elf_init_stab_section): New function.
7304 (adjust_stab_sections): Add casts to avoid warnings.
7305 * config/obj-elf.h (INIT_STAB_SECTION): Call
7306 obj_elf_init_stab_section.
7307 (OBJ_PROCESS_STAB): Removed definition.
7308
80903ca6
ILT
7309Fri Sep 17 18:12:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7310
7311 * config/obj-elf.h (S_GET_SIZE): Define.
7312 (obj_frob_forward_symbol): Define.
7313 * config/tc-i386.c (line_comment_chars): Initialize in all cases.
7314
13998021
ILT
7315Thu Sep 16 14:23:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7316
9bd0d649 7317 * tc.h: Declare tc_gen_reloc differently depending upon
13998021
ILT
7318 RELOC_EXPANSION_POSSIBLE.
7319 * config/obj-elf.c (obj_elf_section): Only set flags when first
7320 creating the section.
7321
7322Wed Sep 15 12:15:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7323
7324 * config/tc-mips.c (append_insn): Don't swap a trap instruction
7325 with a branch.
7326
4f0bccc7
ILT
7327Tue Sep 14 13:31:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7328
90397ff8
ILT
7329 * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
7330 set previous_section and previous_subsection and then call s_data
7331 and s_text, respectively.
7332 (obj_pseudo_table): Add data and text.
7333 (obj_elf_section): Add SEC_LOAD to default initialization of
7334 flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as
7335 SEC_ALLOC for "alloc" string. Don't bother trying to find the
7336 section; just use subseg_new.
7337
4f0bccc7
ILT
7338 * read.c (change_to_section): Removed. This is now done by
7339 subseg_new.
7340 (get_stab_string_offset): Rearranged somewhat. Create the section
7341 using subseg_new. Store the string index in seg_info, rather than
7342 in a static variable. Force the first string to be empty. Use
7343 frag_more rather than FRAG_APPEND_1_CHAR.
7344 (s_stab_generic): Rewrote.
7345 * subsegs.h (segment_info_type): Added stabu union.
7346 * subsegs.c (subseg_new): Initialize stab_string_size to 0.
7347 * config/obj-aout.c: Don't include aout/stab_gnu.h.
7348 (obj_aout_stab, obj_aout_desc): Removed.
7349 (obj_pseudo_table): Removed desc and stabX entries.
7350 * config/obj-bout.c: Same changes as config/obj-aout.c.
7351 * config/obj-bout.h (S_SET_TYPE): Define.
7352 (tc_bout_fix_to_chars): Declare.
7353 * config/obj-coff.c (obj_coff_stab): Removed.
7354 (obj_pseudo_table): Removed desc and stabX entries.
7355 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
7356 * config/obj-coffbfd.c (current_stab_symbol): Removed.
7357 * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
7358 n_other, n_desc and n_value fields.
7359 (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
7360 (MAKE_STAB_SYMBOL): Removed.
7361 * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
7362 Changed arguments and removed parsing code.
7363 (obj_pseudo_table): Removed stabX entries.
7364 * config/obj-ecoff.h (ecoff_stab): Declare.
7365 (OBJ_PROCESS_STAB): Define.
7366 * config/obj-elf.c: Don't include aout/stab_gnu.h.
7367 (obj_elf_stab, obj_elf_xstab, obj_elf_desc,
7368 elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
7369 Removed.
7370 (obj_pseudo_table): Removed desc, stabX and xstabs entries.
7371 (obj_elf_version): Use subseg_new, not bfd_make_section. Don't
7372 set SEC_LOAD for .note section.
7373 (adjust_stab_sections): Get frag pointer from seg_info, rather
7374 than looking through frags.
7375 * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
7376 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
7377 Define.
7378 * config/obj-vms.c (obj_aout_stab): Removed.
7379 (obj_pseudo_table): Removed stabX entries.
7380 * config/obj-vms.h (S_SET_TYPE): Define.
7381
7382 * as.h: Declare listing.
7383 * read.c: Don't declare listing.
7384 (emit_expr): Cast fix_new_exp argument.
7385 (parse_bitfield_cons): Correct printf format.
7386 * symbols.c (symbol_new): Add cast to avoid warning.
7387 * write.h: Declare text_last_frag and data_last_frag.
7388 * config/obj-bout.c (obj_bout_line): Added dummy argument.
7389 * config/obj-coffbfd.c: Add some casts to avoid warnings.
7390 * config/tc-a29k.c: Likewise.
7391 * config/tc-i960.c: Likewise. Also fully bracket structure
7392 initializations, fix printf formats, and remove unused variables.
7393
604633ae
ILT
7394Mon Sep 13 16:48:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7395
7396 * read.c (s_desc): Only compile and use if S_SET_DESC is defined.
7397 * struc-symbol.h: Declare verify_symbol_chain and
7398 verify_symbol_chain_2 even if not SYMBOLS_NEED_BACKPOINTERS.
7399 * symbols.c (verify_symbol_chain): Removed useless expression.
7400 * write.c (headers, the_object_file): Only use if not
7401 BFD_ASSEMBLER and not BFD.
7402 (fixup_segment, cvs_frag_to_fill): Only use if BFD_ASSEMBLER or
7403 not BFD.
7404 (merge_data_into_text): Only use if BFD_ASSEMBLER or (not BFD and
7405 not OBJ_AOUT).
7406 * write.h: Declare relax_segment.
7407 * config/obj-coffbfd.c (stack_pop, stack_push, stack_init): Made
7408 static.
7409 (stack_top): Commented out, since it's not used.
7410 Fixed up pseudo-op functions to take an ignored int argument.
7411 (size_section): Added default BAD_CASE to switch.
7412 Changed bzero calls to memset.
7413 * config/obj-coffbfd.h (S_IS_LOCAL): Call strchr on S_GET_NAME
7414 (s), not on s itself.
7415 * config/tc-a29k.c (s_use): Take ignored int argument. Only
7416 define if OBJ_COFF is not defined.
7417 * config/tc-i386.c: (fits_in_signed_byte, smallest_imm_type): Make
7418 argument signed again.
7419 * config/tc-m68k.c (s_bss, s_even, s_proc): Take ignored int
7420 argument.
7421 (m68k_ip): Fully bracket initialization of archs.
7422 Correct several formats for __LINE__ to be %d rather than %s.
7423 (init_table): Fully bracket initialization.
7424 Cast values larger than 0x7f assigned to fr_opcode to char.
7425
7426 * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
7427 Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
7428 section name, and subseg_set always takes a segT. Changed all
7429 callers as appropriate.
69cb5925 7430 * config/obj-coffbfd.c (change_to_section): Renamed to
604633ae
ILT
7431 obj_coff_add_segment. Corrected. Made callers use subseg_new.
7432 * config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
7433 Define.
7434
54e3e909
DE
7435Mon Sep 13 13:15:03 1993 Doug Evans (dje@canuck.cygnus.com)
7436
7437 * config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
7438
58d4951d
ILT
7439Fri Sep 10 11:22:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7440
7441 * config/obj-elf.h (S_SET_SIZE): Actually set the size.
7442
7443 Gcc lint.
54e3e909 7444 * Added a number of casts to function calls.
58d4951d
ILT
7445 * app.c (do_scrub_begin), as.c (main), expr.c (integer_constant,
7446 operand, expr), read.c (read_begin, HANDLE_CONDITIONAL_ASSEMBLY,
7447 read_a_source_file, s_align_bytes, demand_empty_rest_of_line,
7448 ignore_rest_of_line, big_cons, is_it_end_of_statement, s_ignore),
7449 read.h (is_name_beginner, is_part_of_name), config/obj-elf.c
7450 (obj_elf_section), config/tc-i386.c (parse_register),
7451 config/tc-sparc.c (isoctal, s_proc): Cast char
7452 array indices to unsigned char.
54e3e909
DE
7453 * app.c (process_escape): Make static. Add prototype. Change
7454 argument from char to int.
58d4951d
ILT
7455 * as.c: Include output-file.h for prototypes. Comment out unused
7456 function got_sig.
7457 * Makefile.in (as.o): Depend on output-file.h.
7458 * as.h (BAD_CASE): Cast val argument to long, and use %ld.
54e3e909
DE
7459 (pseudo_typeS): Add prototype to poc_handler field.
7460 (print_version_id): Add prototype.
7461 (xmalloc, xrealloc): Change size arguments to unsigned long.
7462 (do_scrub_next_char): Add prototypes for function arguments.
7463 (had_errors, had_warnings, scrub_from_file): Remove duplicate
7464 declarations.
7465 * atof-generic.c (atof_generic): Make size variables unsigned.
58d4951d 7466 * cond.c (ignore_input): Removed unused local variable ptr.
54e3e909
DE
7467 * expr.c (floating_constant, integer_constant): Make static. Add
7468 prototypes.
7469 * flonum-copy.c (flonum_copy): Make size variables unsigned.
58d4951d 7470 * frags.h: Add prototype for frag_init.
54e3e909
DE
7471 * hash.h, hash.c: Change hash values from char * to PTR, make hash
7472 strings const, make returned error strings const char *. Added
7473 prototypes for functions.
7474 * input-file.h, input-file.c (input_file_buffer_size): Return
7475 unsigned int.
7476 * input-scrub.c (buffer_length): Make unsigned.
7477 (input_scrub_push, input_scrub_pop): Make static.
58d4951d
ILT
7478 * listing.c (list_symbol_table): Cast sprintf argument to unsigned
7479 long and use %lx. Print name of segment rather than address of
7480 structure.
54e3e909
DE
7481 (listing_list, listing_title): Change argument to int.
7482 (listing_eject, listing_flags, listing_psize): Add int argument.
7483 * listing.h: Corresponding declaration changes.
7484 * obj.h (obj_emit_symbols): Rename prototype argument to avoid
7485 shadowing.
58d4951d 7486 * read.h: Change get_absolute_expression prototype to return
54e3e909
DE
7487 offsetT. Add prototype for next_char_of_string. Various
7488 prototype changes.
58d4951d 7489 * read.c: Remove prototype for next_char_of_string.
54e3e909
DE
7490 (pobegin): Make errtxt const. Make new_length, tmp_len and num
7491 unsigned.
7492 (s_abort, s_align_ptwo, s_comm, s_data, s_app_line, s_fill,
7493 s_globl, s_lsym, s_org, s_set, s_text, s_desc): Add int argument.
7494 Change all callers.
58d4951d
ILT
7495 (s_comm): Change temp from valueT to offsetT. Cast to long when
7496 printing and use %ld (only for error messages anyhow).
54e3e909
DE
7497 (s_long, s_int): Remove unused functions.
7498 (cons): Change argument to int.
58d4951d
ILT
7499 (emit_expr): Use %lx when printing longs.
7500 (get_absolute_expression): Return offsetT, not long.
7501 (get_stab_string_offset): Comment out unless
7502 SEPARATE_STAB_SECTIONS.
7503 (s_stab_generic): Remove unused offset. Define seg_is_new only
7504 if SEPARATE_STAB_SECTIONS. Use toP only in local block.
54e3e909 7505 * struc-symbol.h (verify_symbol_chain_2): Add prototype.
58d4951d 7506 * symbols.c: Remove nested comment.
54e3e909 7507 (symbol_new): Rename value to valu.
58d4951d 7508 (colon): Use %ld and cast to long in error message.
54e3e909
DE
7509 * symbols.h: Remove duplicate verify_symbol_chain declaration.
7510 * tc.h: Remove unused md_emit_relocations declaration.
7511 (tc_gen_reloc): Add declaration.
58d4951d
ILT
7512 * write.c (cvt_frag_to_fill): Change first argument name depending
7513 on BFD_ASSEMBLER.
54e3e909
DE
7514 (write_relocs): Remove unused offset, frags. Remove tc_gen_reloc
7515 declarations. Make n unsigned.
7516 (write_contents): Remove unused i, n, relocs, fixp. Rename frags
7517 to f to avoid shadowing.
58d4951d
ILT
7518 (write_object_file): Define fragP only if not BFD_ASSEMBLER or not
7519 WORKING_DOT_WORD. Remove unused keep. Only declare punt and
54e3e909 7520 punt_it if they will be used. Make i and n unsigned.
58d4951d 7521 (fixup_segment): Cast to long and use %ld in error message.
54e3e909 7522 * xmalloc.c (xmalloc, xrealloc): Make size argument unsigned.
58d4951d
ILT
7523 * config/obj-aout.h: Remove nested comment. Add prototype for
7524 obj_aout_frob_symbol.
54e3e909
DE
7525 (obj_aout_line, obj_aout_desc): Add int argument.
7526 * config/obj-ecoff.c: Changed build routines to use an unsigned
7527 offset.
7528 (add_string): Make len unsigned long.
58d4951d
ILT
7529 (obj_ecoff_stab): Use %lu in error message.
7530 * config/obj-elf.c (obj_elf_common): Comment out unused label
7531 allocate_bss.
7532 (obj_elf_frob_symbol): Return 0 (currently broken).
54e3e909
DE
7533 (obj_elf_desc, obj_elf_version, obj_elf_size, obj_elf_type,
7534 obj_elf_ident, obj_elf_weak, obj_elf_local, obj_elf_common,
7535 obj_elf_line, obj_elf_previous): Add int argument.
7536 (obj_elf_write_symbol_p): Make static.
7537 * config/obj-elf.h (obj_elf_write_symbol): Add prototype.
58d4951d
ILT
7538 * config/tc-hppa.h: Remove declarations of functions declared in
7539 read.h.
54e3e909
DE
7540 * config/tc-i386.c (ENCODE_RELAX_STATE): Cast to relax_substateT.
7541 (s_bss): Add int argument.
7542 (fits_in_signed_byte, smallest_imm_type): Make argument unsigned.
7543 (dummy): Remove unused function.
7544 (md_assemble): Rename local o to op to avoid shadowing.
7545 (tc_gen_reloc): Rename local reloc to rel to avoid shadowing.
7546 * config/tc-m68k.c (s_data1, s_data2): Add int argument.
58d4951d
ILT
7547 * config/tc-mips.c (mips_ip, md_apply_fix): Cast to long and use
7548 %ld in error messages.
54e3e909
DE
7549 * config/tc-sparc.c: Remove duplicate declarations.
7550 (getExpression): Rewrite condition to avoid empty conditional
7551 body.
7552 (s_reg, s_proc, s_reserve, s_common, s_seg, s_xword): Add int
7553 argument.
58d4951d 7554
892a3ff1
KR
7555Thu Sep 9 17:10:00 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7556
7557 Changes from Jeff Law:
7558
7559 * config/tc-hppa.c (md_assemble): Fix typo.
132239bf 7560 (pa_ip): Delete unused variables and labels. Do not check for
892a3ff1
KR
7561 unsigned values being < 0, it can't happen.
7562 (is_same_frag): Return a value in recursive call case.
7563 (pa_callinfo): Delete unused variables and labels.
7564 (pa_comm): Likewise.
7565 (pa_copyright): Likewise.
7566 (pa_export): Likewise.
7567 (pa_import): Likewise.
7568 (pa_param): Likewise.
7569 (pa_space): Likewise.
7570 (pa_subspace): Likewise.
7571
abdd08c9
ILT
7572Thu Sep 9 15:05:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7573
7574 * read.c (get_stab_string_offset, s_stab_generic): If
7575 BFD_ASSEMBLER, call subseg_set rather than subseg_new.
7576
414b2c8f
ILT
7577Wed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7578
7579 * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
7580 default flag values.
7581
4064305e
SS
7582Tue Sep 7 10:22:52 1993 Stan Shebs (shebs@rtl.cygnus.com)
7583
1531386b
SS
7584 * read.c: (change_to_section): Don't include body if not MANY_SECTIONS.
7585
4064305e
SS
7586 * read.c: (s_stab, s_xstab, s_desc): New functions to parse
7587 various stab-related directives.
7588 * read.h: (s_stab, s_xstab, s_desc): New function prototypes.
7589 * write.c: (merge_data_into_text): Fix ifdef tangle.
7590 * config/obj-coffbfd.c (current_stab_symbol): Fake symbol
7591 for stab reader to use.
7592 * config/obj-coffbfdh.h (obj_symbol_type): Added fields for
132239bf 7593 stab reader, macros to access.
4064305e 7594
81b407c9
KR
7595Fri Sep 3 16:44:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7596
fd4b7c25
KR
7597 * config/obj-elf.h (elf_symbol): No longer special-cased on
7598 sparcv9, since elf_symbol_type is now independent of size.
7599
81b407c9
KR
7600 * config/obj-elf.h (elf_symbol): Fixed name of elf_symbol_type.
7601
7602 * config/tc-hppa.h (struct default_subspace_dict, struct
7603 default_space_dict): Field "sort" is now unsigned char.
7604
7605 * config/tc-hppa.c (pa_def_subspaces, pa_def_spaces): Align
7606 columns for easier reading.
7607 (bcmp, index): Deleted USG-specific definitions. Should be dealt
7608 with in ho-*.h, or in libiberty. Changed mention of index to
7609 strchr.
7610 (label_symbolP, label_symbol_defined, callinfo_found,
7611 within_entry_exit, exit_processing_complete, within_procedure,
7612 pa_def_subspaces, pa_def_spaces, pa_pseudo_op_moves_pc,
7613 label_symbols_rootP, pa_get_label, pa_label_is_defined,
7614 pa_undefine_label): Now static.
7615 (movers): Now const, in addition to pointing to const data.
7616 * config/tc-hppa.h (label_symbolS_rootP, pa_get_label,
7617 pa_label_is_defined, pa_undefine_label, pa_pseudo_op_moves_pc):
7618 Delete declarations.
7619
7620 Merged more changes from Jeff Law and Pete Hoogenboom:
7621
7622 * config/tc-hppa.c (pa_def_subspaces, pa_def_subspaces): Remove
7623 entries for .stab and .stabstr.
7624
7625 * config/obj-elf.c: (elf_stab_symbol_string): Set the
7626 SEC_LOAD attribute for the .stabstr section.
7627 (obj_elf_stab_generic): Set the SEC_LOAD attribute for the
7628 .stab section.
7629 (obj_elf_stab_generic): Change '#if 1' to '#if 0'.
7630 (obj_elf_stab_generic): Incorrect byte count on call to
7631 md_number_to_chars function.
7632
7633 * config/tc-hppa.c (hppa_tc_symbol): Static functions need
7634 argument relocation bits too.
7635
7636 * config/tc-hppa.c (pa_stringer): Correctly handle escaping
7637 characters which should appear unaltered in the output string (for
7638 example an escaped double-quote).
7639
7640 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Always
7641 initialize name.
7642 (pa_parse_neg_cmpsub_cmpltr): Likewise.
7643 (pa_parse_nonneg_add_cmpltr): Likewise.
7644 (pa_parse_neg_add_cmpltr): Likewise.
7645
7646 * config/tc-hppa.h (parse_cons_expression_hppa): Remove prototype
7647 for now.
7648 (cons_fix_new_hppa): Likewise.
7649 * config/tc-hppa.c (md_apply_fix): Fix type of valp to match
7650 prototype.
7651
7652 * config/tc-hppa.c: Include libhppa.h.
7653
132239bf 7654 * config/tc-hppa.h: Delete extern declarations of functions
81b407c9
KR
7655 found in libhppa.h.
7656
7657 * config/tc-hppa.c (pa_space): Rework to avoid unwanted #ifdef
7658 OBJ_ELF conditionals.
7659 * config/tc-hppa.h (LOCAL_LABEL): Correctly identify local labels
7660 on the PA.
7661
1849d646
ILT
7662Thu Sep 2 10:43:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7663
ff3a5c18
ILT
7664 * config/tc-mips.c (macro_build): Accept 'z', and ignore it.
7665 (macro): Use "z,s,t" for div instructions to match corresponding
7666 change in opcode table.
7667 (mips_ip): Added 'z'--must be zero register.
1849d646 7668
e96d50d0
KR
7669Wed Sep 1 15:56:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7670
7671 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Declare
7672 tc_gen_reloc correctly.
7673
7674 * configure.in: Use "case" instead of "if" when possible. Rewrote
7675 Makefile editing to reduce work done. Treat "hppa*" as "hppa".
7676
56607c4e
RP
7677Wed Sep 1 12:19:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7678
7679 * config/obj-coffbfd.c (obj_coff_section): add 'd' as an alias for
7680 section type of data. 'd' seems to be used for m88k.
7681
7682Wed Aug 25 22:33:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7683
7684 * config/tc-mips.c (mips_align, s_stringer, s_cons, s_float_cons,
7685 s_mips_space): Set insn_label to NULL to avoid changing it at the
7686 next .align statement.
7687 (append_insn): Don't swap jal with instruction that sets the
7688 register that jal sets.
7689
37d719bb
RP
7690Wed Aug 25 16:15:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7691
7692 * configure.in: recognize m88110.
7693
28344993
KR
7694Wed Aug 25 13:37:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7695
7696 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
7697 * config/tc-hppa.c (pa_build_unwind_subspace): SEC_ALLOC should
7698 not be on for .hppa_unwind.
7699 (md_pseudo_table): .PARAM and .param are valid pseudo-ops for GAS.
7700 (pa_param): New function to handle .PARAM directives.
7701 (pa_ip): Pass "isbranch" argument down to pa_parse_*_compltr
7702 functions. Handle '|' for movb; allow movb,n.
7703 (pa_parse_nonneg_cmpsub_cmpltr): Delete old useless
7704 version. Handle cases where no completer exists for
7705 comb,n or addb,n.
132239bf 7706 (pa_parse_neg_cmpsub_cmpltr): Handle cases where no
28344993
KR
7707 completer exists for comb,n or addb,n. Make logic
7708 mirror that of pa_parse_nonneg_cmpsub_cmpltr.
7709 (pa_parse_nonneg_add_cmpltr): Likewise.
7710 (pa_parse_neg_add_cmpltr): Likewise.
7711 * tc-hppa.h (pa_param): Declare.
7712
7713Tue Aug 24 15:41:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7714
7715 * config/tc-hppa.c (hppa_tc_make_symextn_section): Now static.
7716 Added forward declaration.
7717
7718 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
7719
7720 * config/obj-elf.c (elf_frob_file): Arguments were incorrect on
7721 call to elf_tc_make_sections.
7722 (obj_elf_version): A .note section shouldn't have the SEC_ALLOC
7723 attribute.
7724
7725 * config/tc-hppa.c (hppa_tc_make_sections): Add some processing to
7726 handle symbol extension sections.
7727
7728 * config/tc-hppa.c (pa_build_symextn_section): New function to
7729 create a symbol extension section.
7730 (pa_export_args): Make call to pa_build_symextn_section.
7731 (hppa_tc_symbol, hppa_tc_make_sections,
7732 hppa_tc_make_symextn_section): New functions.
7733 * config/tc-hppa.h: Update elf_tc_symbol and elf_tc_make_sections
7734 macros.
7735
7736 * read.c (emit_expr): Place check for TC_CONS_FIX_NEW in the
7737 BFD_ASSEMBLER branch as well.
7738
7739 * config/tc-hppa.h: If ELF is the target object format, define
7740 some ELF- and hppa-specific types and constants.
7741
7742 * config/tc-hppa.c (getExpression): Fix a typo.
7743
7744 * read.c (read_a_source_file): Use TC_EQUAL_IN_INSN to determine
7745 if a `=' is part of an instruction.
7746 (read_a_source_file): Handle case where end-of-line markers are
7747 also used within instructions.
7748 * config/tc-hppa.h (TC_EQUAL_IN_INSN, TC_EOL_IN_INSN): Define.
7749
7750 * config/tc-hppa.c (md_apply_fix_1): Keep relocations for
7751 out-of-range branches/'calls using "bl" or calls which may need
7752 argument relocation stubs. Do not need/keep relocations for
7753 conditional branches.
7754 (elf_hppa_final_processing): Fix calculation of function size.
7755
7756 * config/obj-elf.c (obj_elf_version): Mark .note section as
7757 READONLY.
7758
7759 * config/tc-hppa.c (parse_cons_expression_hppa): Pass exp, not the
7760 address of exp, to expression.
7761 (pa_build_unwind_subspace): Turn SEC_HAS_CONTENTS flag on.
7762 (md_apply_fix_1): Delete unwanted comments.
7763 (process_exit): Symbols marking the end of a function are always
7764 BSF_LOCAL.
7765
7766 * config/tc-hppa.c: Include elf32-hppa.h from BFD tree.
7767 (pa_space): Declare and initialize gdb_section.
7768
7769 * config/obj-elf.c (elf_frob_file): Change
7770 elf_tc_final_processing_hook to elf_tc_final_processing.
7771
7772 * config/tc-hppa.c (fix_new_hppa): Fix argument list to match
7773 argument type declarations.
7774 (getExpression): Fix typo.
7775 (pa_export_args): Change elf_symbol_type to elf32_symbol_type.
7776 (elf_hppa_final_processing): Likewise. Name changed from
7777 elf_hppa_final_processing_hook.
7778 (start_symbol_root, start_symbol_last): Deleted.
7779
7780 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION): Fix typo.
7781
7782 * config/tc-hppa.h: Replace "symbolS" with "struct symbol" to
7783 avoid changing include ordering.
7784
7785 * config/tc-hppa.c (pa_ip, case 'y'): Handle just like 't'.
7786
6e8dda9c
ILT
7787Mon Aug 23 12:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7788
7789 * config/tc-mips.c (set_at): Added unsignedp argument. Use
7790 load_register.
7791 (set_at_unsigned): Removed; changed callers to use set_at.
7792 (load_register): Removed unused ip argument. Changed callers.
7793 (append_insn): Don't swap branch and branch likely.
7794 (macro_build): Handle 'u'.
7795 (load_register): Handle 64 bit constants.
7796 (macro): Added M_DABS, removed M_ABSU. Numerous changes to
7797 support 64 bit constants.
7798 (mips_ip): Use hex constants in range checks for clarity.
7799 (md_number_to_chars): Support 8 byte values.
7800
1e35cd8f
RP
7801Fri Aug 20 16:50:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7802
7803 * config/tc-m88k.h: updated copyrights.
7804 (TC_CONS_RELOC): declare to be RELOC_32.
7805
8358c818
ILT
7806Fri Aug 20 11:16:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7807
7808 * config/tc-mips.c (mips_isa): New static variable.
7809 (md_begin): Initialize mips_isa based on TARGET_CPU. Don't sanity
7810 check macros. Set text alignment and GP size here.
7811 (md_assemble): Don't set text alignment and GP size here.
7812 (append_insn): Don't insert NOPs for load delays if mips_isa >= 2.
7813 Use the right mask and shift for WRITE_FPR_T and WRITE_FPR_S. Add
7814 a NOP after a branch likely.
7815 (mips_emit_delays): Don't insert NOPS for load delays if mips_isa
7816 >= 2.
7817 (macro): Support r6000 and r4000 macros.
7818 (mips_ip): Check insn ISA level against mips_isa before using it.
7819 Added 'x' case for ignored register.
7820 (md_parse_option): Handle -mipsN and -mcpu=XX.
7821
c8d4cda1
KR
7822Fri Aug 20 01:26:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7823
7824 * config/tc-i386.c (md_pseudo_table) [OBJ_ELF]: Handle ".zero".
7825
7826Thu Aug 19 12:15:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7827
7828 * config/tc-sparc.c (s_local): Function moved and renamed...
7829 * config/obj-elf.c (obj_elf_local): ...to here.
7830 * config/tc-sparc.c (md_pseudo_table), config/obj-elf.c
7831 (obj_pseudo_table): Move handling of ".local".
7832
7833 * tc.h (md_parse_option): Don't declare if defined as a macro.
7834
7835 * config/tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as
7836 BFD_RELOC_NONE.
7837 (md_parse_option): New macro, converted from function.
7838 * config/tc-i386.c (md_parse_option): Function deleted.
7839 (comment_chars) [OBJ_ELF]: Include "/".
7840 (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/".
7841 (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler
7842 warning.
7843 (md_assemble, md_estimate_size_before_relax, md_create_long_jump):
7844 Call reloc for fix_new type, or use correct enumerator, instead of
7845 always using NO_RELOC.
7846 (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for
7847 tests for valid section.
7848 (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start
7849 address.
7850 (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with
7851 symbol, compensate for location of reloc.
7852 (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define
7853 to return zero.
7854
4915cac0
KR
7855Wed Aug 18 16:51:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7856
7857 * config/obj-elf.c: Undef NO_RELOC before including aout/aout64.h.
7858 (obj_elf_weak): New function.
7859 (obj_pseudo_table): Handle ".weak".
7860 (obj_elf_section): If section directive includes a string, ignore
7861 it for now. Accept "progbits" flag.
7862 (obj_elf_type): Accept `@' before flag name.
7863
7864 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Get rid of `if(1)'
7865 condition.
7866 (fixup_segment) [BFD_ASSEMBLER]: Use bfd_is_com_section, rather
7867 than checking for bfd_com_section directly.
7868 (fixup_segment): Simplify range check.
7869 (fixup_segment) [OBJ_COFF && TC_I960]: Simplify cpp condition
7870 test.
7871
7872 * symbols.h (S_SET_WEAK): Declare.
7873 * symbols.c (S_SET_WEAK): New function.
7874 (S_SET_EXTERNAL, S_CLEAR_EXTERNAL): Don't bother with BSF_EXPORT,
7875 it's not a separate flag any more. Clear BSF_WEAK.
7876
7877 * read.c (potable): Treat "string" like "asciz".
7878
19ed8960
ILT
7879Wed Aug 18 15:30:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7880
7881 * config/tc-mips.c (append_insn): Don't swap branch instructions
7882 if .set nobopt or .set volatile.
7883 (gp_reference): .lit8 and .lit4 are accessed via the GP register.
7884 (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD.
7885 (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point.
7886 * config/obj-ecoff.c: Renamed some variables to avoid shadow
7887 warnings.
7888
ae8c28f8
DZ
7889Mon Aug 16 14:16:02 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7890
19ed8960
ILT
7891 * config/obj-coff.h (S_IS_COMMON): add missing backslash
7892
ae8c28f8
DZ
7893 * configure.in (z8k-*-{coff,sim}): use coffbfd for this target
7894
0aa07269
ILT
7895Thu Aug 12 11:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7896
7897 * config/tc-mips.c (mips_ip): Suggested by
7898 davidj@ICSI.Berkeley.EDU (David Johnson): Don't accept symbolic
7899 names for 'E' and 'G' argument types (coprocessor registers) and
7900 don't warn if $1 is used on the coprocessor.
ae8c28f8 7901 (macro): Handle M_{L,S}WC{0,2,3}_AB correctly.
0aa07269
ILT
7902
7903Mon Aug 9 12:09:14 1993 Doug Evans (dje@canuck.cygnus.com)
7904
7905 * read.c (emit_expr): Use BFD_RELOC_16 for 2-byte values.
7906 * config/tc-sparc.c (md_apply_fix, tc_gen_reloc): Handle
7907 BFD_RELOC_16.
7908 * config/tc-sparc.h (WORKING_DOT_WORD): Define.
7909
6a9cf6fa
KR
7910Mon Aug 9 13:36:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7911
7912 * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER is
7913 defined or BFD is not.
7914 (relax_and_size_all_segments): Declare local variable fragP.
7915
b114e492
KR
7916Fri Aug 6 15:22:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7917
7918 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_32): Fill in
7919 bytes with real values, not zeros.
7920
ac32a7e7
ILT
7921Fri Aug 6 10:57:59 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7922
3d2330f8
ILT
7923 * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested)
7924 targets, using ecoff and mips-big.
7925
ac32a7e7
ILT
7926 * config/tc-mips.c (mips_ip): From davidj@ICSI.Berkeley.EDU (David
7927 Johnson): Added case for 'C' for coprocessor instruction codes.
7928
273aa947
KR
7929Thu Aug 5 13:08:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7930
fd4b7c25
KR
7931 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): Fill in
7932 bytes with real values, not zeros.
7933 (md_pseudo_table): Call cons for .uaxword.
7934
b114e492
KR
7935 * config/obj-elf.c (obj_pseudo_table): Handle ".8byte".
7936
273aa947
KR
7937 * read.c (emit_expr): Use BFD_RELOC_64 for 8-byte expressions.
7938
b114e492
KR
7939 * write.c (write_object_file): Test DEBUG_SYMS instead of DEBUG
7940 for verifying symbol chain.
7941 (merge_data_into_text, relax_and_size_all_segments): New
7942 functions, split out from write_object_file.
7943
273aa947
KR
7944Tue Aug 3 15:43:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7945
7946 * config/obj-elf.c (obj_elf_stab_generic, in disabled code): If
7947 debug section is new, allocate an extra 12 bytes at its start. If
7948 ".stabs" type is N_SO, fill in filename symbol field of that first
7949 entry. Return early if "goof", to simplify later code slightly.
7950 (adjust_stab_sections): New function.
7951 (elf_frob_file): Apply adjust_stab_sections to each section.
7952
7953 * config/obj-elf.c (obj_elf_section, obj_elf_previous): No longer
7954 static.
7955 * config/obj-elf.h (obj_elf_section, obj_elf_previous): Declare.
7956 * config/tc-sparc.c (md_pseudo_table): Call them for "pushsection"
7957 and "popsection", and call cons for "uaword" and "uahalf".
7958
7959 * config/obj-elf.c (obj_elf_version): Use English in error
7960 messages.
7961
4573d186
ILT
7962Tue Aug 3 11:29:06 1993 Ian Lance Taylor (ian@cygnus.com)
7963
7964 * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets the
7965 swapping routines and external structure sizes via the
7966 ecoff_backend information. No longer includes coff/mips.h.
7967
b4703fa6
ILT
7968Mon Aug 2 17:35:48 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7969
4c7ff23d
ILT
7970 * config/obj-ecoff.c (get_tag): Save tag name in permanent memory
7971 and in hash_ptr->string.
7972
b4703fa6
ILT
7973 * app.c (do_scrub_next_char): Reset state to 0 after .appline if
7974 file name is not seen.
7975
fd4b7c25
KR
7976Mon Aug 2 11:51:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7977
7978 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): New case,
7979 parallel to BFD_RELOC_32.
7980 (tc_gen_reloc): Accept BFD_RELOC_64.
7981
ced16de6
ILT
7982Thu Jul 29 22:21:28 1993 Ian Lance Taylor (ian@cygnus.com)
7983
7984 * write.c: Don't use short int in a prototype.
ab4d34cd
ILT
7985
7986 * expr.c (operand): Make return value simply depend on contents of
7987 returned expression.
7988
b4703fa6
ILT
7989Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7990
7991 * configure.in: sparc*-aout and sparc*-vxworks are BFD assemblers
7992
0ccc65ec
DZ
7993Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7994
7995 * config/ho-sunos.h: remove some old function decls that conflict
7996 w/ ANSI, and which weren't needed anyway
7997
7998Wed Jul 28 16:34:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7999
8000 * config/obj-elf.h (obj_frob_symbol): Renamed from tc_frob_symbol,
8001 and disabled since it breaks Ian's new symbol-value code.
8002
8003 * expr.c (integer_constant): Accept more digits if BFD64.
8004
7fe17970
ILT
8005Wed Jul 28 11:30:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8006
8007 * config/tc-m68k.c (m68k_ip): If we have a normal constant when we
8008 expect a bignum, turn it into a bignum. Output extra zeroes
8009 before a short bignum, rather than after.
8010
0c2734c3
KR
8011Tue Jul 27 15:54:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8012
8013 * symbols.c (symbol_new): Conditionalize verify_symbol_chain call
8014 on DEBUG_SYMS, not DEBUG.
8015 (symbol_remove): Likewise.
8016 (symbol_insert): Likewise.
8017
4fe45d22
ILT
8018Tue Jul 27 08:45:05 1993 Ian Lance Taylor (ian@cygnus.com)
8019
8020 * config/tc-mips.c (mips_optimize): New static variable.
e9f108bc
ILT
8021 (append_insn): If mips_optimize == 0, always insert NOP
8022 instructions. If mips_optimize < 2, don't swap branches.
8023 (md_parse_option): If -Ox or -gx, set mips_optimize accordingly.
4fe45d22 8024
de9310b9
RP
8025Mon Jul 26 18:02:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8026
8027 * Makefile.in (clean): if testsuite does not exist, then skip it.
8028
8029Fri Jul 23 14:13:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8030
8031 * config/tc-mips.c (prev_insn_unreordered,
8032 prev_prev_insn_unreordered): New static variables.
8033 (append_insn): Don't swap branch instruction if
8034 prev_prev_insn_unreordered (see comment).
8035 (mips_no_prev_insn): Clear the unreordered variables.
8036 (s_mipsset): When turning on reordering, set the unreordered
8037 variables.
8038
7767e7e9
KR
8039Fri Jul 23 13:09:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8040
8041 * config/obj-elf.c (obj_elf_section): Sections ".init" and ".fini"
8042 are also magic, and have special default flag settings.
8043 (obj_elf_frob_symbol): Since the return value from this function
8044 isn't used, don't bother calling obj_elf_write_symbol_p, since it
8045 doesn't accomplish anything else.
8046
8047 * config/tc-sparc.c (md_section_align): Round up section size only
8048 for a.out format.
8049
8050 * symbols.c: Don't define DEBUG by default.
8051
88b457e5
ILT
8052Thu Jul 22 12:09:41 1993 Ian Lance Taylor (ian@cygnus.com)
8053
2a2d3d08
ILT
8054 * write.c (fix_new_exp): Handle a O_uminus expression.
8055
e979ea04
ILT
8056 * expr.c (expr): Don't let absolute_section override
8057 undefined_section for the return value.
8058
cf897ce2
ILT
8059 * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a
8060 pseudo-op with a poc_handler field of NULL, ignore it and treat it
8061 as an instruction instead.
8062 * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL
8063 poc_handler field.
8064
88b457e5
ILT
8065 * config/tc-h8500.c (md_begin): Use a local variable when
8066 initializing md_relax_table to avoid warnings about modifying a
8067 supposedly const data structure.
8068
88e12460
BK
8069Thu Jul 22 10:58:51 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
8070
8071 * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER
8072 is defined.
8073
86a6ada2
FF
8074Wed Jul 21 17:32:02 1993 Fred Fish (fnf@deneb.cygnus.com)
8075
8076 * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.
8077 * configure.in (case ${generic_target}): Add i[34]86-*-sysv4*
8078 case to set obj_format=elf. Must go before i386-*-sysv* case that
8079 sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and
8080 *-*-solaris case, and move to before *-sysv* case that wants to
8081 set obj_format to coff.
8082 * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to
8083 'exp->X_op'.
8084 * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for
8085 BFD_ASSEMBLER case.
8086
8ff6f40e
ILT
8087Wed Jul 21 12:47:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8088
2c5c299f
ILT
8089 * config/obj-aout.c: Include aout/aout64.h.
8090 (obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor
8091 symbol, so that BFD doesn't tamper with the type.
8092
8ff6f40e
ILT
8093 * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
8094 up opcodes as pseudo-ops even if they don't start with '.'.
8095 * config/tc-m88k.h (NO_PSEUDO_DOT): Define.
8096 * config/tc-m88k.c (md_assemble): Removed special pseudo-op
8097 handling.
8098 (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
8099 Output the low 16 bits for RELOC_HI16, not the high 16 bits.
8100 * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
8101 r_offset field of the reloc to the fixup offset.
8102 (fixup_segments): If TC_M88K, don't warn about fixup overflows.
8103 * doc/as.texinfo: Minor updates.
8104
5ac34ac3
ILT
8105Tue Jul 20 19:28:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8106
8107 * Extensive changes to permit symbols to contain any expression
8108 type and to delay the computation of the expression until the
8109 value is actually needed. This permits setting symbols to values
8110 calculated based on object code size. Expressions were changed to
8111 no longer be in a section, to stop the overloading of segment and
8112 expression type that previously occurred.
8113
8114 * as.c (big_section, pass1_section, diff_section, absent_section):
8115 Removed.
8116 (expr_section): Added (used for dummy symbols which hold
8117 intermediate expression values).
8118 (perform_an_assembly_pass): Create expr_section, do not create the
8119 sections now removed.
8120 * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and
8121 SEG_DIFFERENCE. Added SEG_EXPR.
8122 (SEG_NORMAL): Corresponding changes.
8123 * subsegs.c (seg_name, subsegs_begin): Changed accordingly.
8124 * write.c (write_object_file): Ditto.
8125 * config/obj-aout.c (seg_N_TYPE): Ditto.
8126 * config/obj-bout.c (seg_N_TYPE): Ditto.
8127 * config/obj-coff.c (seg_N_TYPE): Ditto.
8128 * config/obj-coffbfd.c (seg_N_TYPE): Ditto.
8129 * config/obj-vms.c (seg_N_TYPE): Ditto.
8130
8131 * expr.h (operatorT): Moved in from expr.c, added some values.
8132 (expressionS): Added X_op field, removed X_seg field; renamed
8133 X_subtract_symbol to X_op_symbol.
8134 * expr.c: Extensive changes to assign expression types rather than
8135 sections and to simplify the parsing.
8136 * write.c (fix_new_internal): New static function.
8137 (fix_new): Removed sub_symbol argument.
8138 (fix_new_exp): New function, takes expression argument.
8139 * write.h: Prototype changes for fix_new and fix_new_exp.
8140 * cond.c (s_if): Changed accordingly.
8141 * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons,
8142 parse_repeat_cons, get_segmented_expression,
8143 get_known_segmented_expression, get_absolute_expression): Ditto.
8144 * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE):
8145 Ditto.
8146 * write.c (write_object_file): Ditto.
8147 * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto.
8148 * config/obj-coffbfd.c (obj_coff_def, obj_coff_val,
8149 obj_coff_endef, yank_symbols): Ditto.
8150 * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto.
8151 * config/tc-a29k.c (md_assemble, parse_operand, machine_ip,
8152 print_insn, md_operand): Ditto.
8153 * config/tc-h8300.c (parse_exp, colonmod24, check_operand,
8154 do_a_fix_imm, build_bytes): Ditto.
8155 * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist,
8156 get_specific, check, insert, md_convert_frag): Ditto.
8157 * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa,
8158 md_assemble, pa_ip, getExpression, getAbsoluteExpression,
8159 evaluateAbsolute, pa_build_unwind_subspace, pa_entry,
8160 process_exit): Ditto.
8161 * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative,
8162 is_complex): Ditto.
8163 * config/tc-i386.c (pe, md_assemble, i386_operand,
8164 md_estimate_size_before_relax, md_create_long_jump): Ditto.
8165 * config/tc-i860.c (md_assemble, getExpression, print_insn):
8166 Ditto.
8167 * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag,
8168 get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc,
8169 i960_handle_align): Ditto.
8170 * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op,
8171 subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1,
8172 md_estimate_size_before_relax, md_create_long_jump, get_num):
8173 Ditto.
8174 * config/tc-m88k.c (md_assemble, get_imm16, get_pcr,
8175 md_create_short_jump, md_create_long_jump): Ditto.
8176 * config/tc-mips.c (md_assemble, append_insn, gp_reference,
8177 macro_build, macro, my_getExpression): Ditto. Also removed
8178 get_optional_absolute_expression; just use get_absolute_expression
8179 instead.
8180 * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif,
8181 fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto.
8182 * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto.
8183 * config/tc-sh.c (parse_exp, check, insert, md_convert_frag):
8184 Ditto.
8185 * config/tc-sparc.c (md_assemble, sparc_ip, getExpression,
8186 print_insn): Ditto.
8187 * config/tc-tahoe.c (struct top, md_estimate_size_before_relax,
8188 tip_op, md_assemble): Ditto.
8189 * config/tc-vax.c (seg_of_operand, md_assemble,
8190 md_estimate_size_before_relax, md_create_long_jump): Ditto.
8191 * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
8192
84873870
DZ
8193Tue Jul 20 12:17:16 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8194
8195 * configure.in: i386-lynx is the same as i386-coff
8196
623d6e9a
KR
8197Mon Jul 19 15:21:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
8198
8199 * config/obj-elf.c (obj_elf_previous): New function.
8200 (previous_section, previous_subsection): New vars.
8201 (obj_elf_section): Save current place in case DWARF code wants us
8202 to pop back to it. Handle unquoted section name as well as quoted
8203 section name. Don't crash on invalid strings.
8204 (obj_pseudo_table): Handle new pseudos "previous", "2byte", and
8205 "4byte".
8206
8207 * config/obj-elf.h: Don't include struc-symbol.h.
8208 (obj_elf_frob_symbol): Declare arg as struct symbol *.
8209
8210 * tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Local labels can start with
8211 "L" or "_.L_".
8212
8213 * write.c (write_relocs): New function, split off from
8214 write_contents. Use memset instead of bzero.
8215 (write_object_file): Apply write_relocs to each section before
8216 applying write_contents.
8217
8218 * read.c (read_begin): Call obstack_begin with values closer to 1K
8219 multiples.
8220 (read_a_source_file, big_cons, float_cons): Use memcpy instead of
8221 bcopy.
8222
ffffc8fb
ILT
8223Mon Jul 19 14:30:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8224
ce2ad89a
ILT
8225 * config/tc-m68k.c (m68k_ip_op): Don't decrement strend when
8226 calculating opP->isiz; this permits the expression size to be
8227 determined as well, later on.
8228
ffffc8fb
ILT
8229 * expr.c (clean_up_expression): Don't cancel the subtraction of
8230 undefined symbols.
8231
8232 * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R,
8233 switch to text section rather than data section.
8234
9d4dfbf3
KR
8235Mon Jul 19 12:35:39 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8236
8237 * config/tc-m68k.c (m68k_ip, case AINDX): Add 6 to operand
8238 expression (to take the pc-rel instruction itself into account)
8239 before using the expression, instead of after.
8240
04acd059
ILT
8241Fri Jul 16 08:56:04 1993 Ian Lance Taylor (ian@cygnus.com)
8242
1e9cf565
ILT
8243 * read.c (float_cons): Simplified parsing logic. If
8244 REPEAT_CONS_EXPRESSIONS is defined, accept a repeat count.
8245
8246 * symbols.c (colon): Rather than a special case for TC_HPPA,
8247 use new macro tc_frob_label.
8248 * config/tc-hppa.h (tc_frob_label): Define.
8249
8250 * config/tc-mips.c: Many changes to support simple assembler
8251 optimization.
8252 (insn_label, prev_insn, prev_prev_insn, dummy_opcode,
8253 prev_insn_valid, prev_insn_frag, prev_insn_where,
8254 prev_insn_fixp, prev_insn_is_delay_slot): New static
8255 variables.
8256 (insn_uses_reg, mips_no_prev_insn, mips_emit_delays,
8257 mips_align, s_stringer, s_mips_space): New static functions.
8258 (mips_define_label): New global function.
8259 (md_pseudo_table): For "ascii", "asciz", "asciiz", call
8260 s_stringer. Changed argument to float_cons from 0 or 1 to 'f'
8261 or 'd'. For "space" call s_mips_space.
8262 (md_begin): Call mips_no_prev_insn.
8263 (append_insn): Only insert necessary NOP instructions.
8264 (macro): Call mips_emit_delays before setting mips_noreorder.
8265 Increment and decrement mips_noreorder rather than using
8266 save_reorder_condition. Don't bother to use noreorder in
8267 M_L_DOB and M_L_DAB, since append_insn will not insert a NOP.
8268 (md_atof): Handle floating point numbers correctly for both
8269 big and little endian targets.
8270 (s_align, s_cons): Call mips_align rather than frag_align.
8271 (s_change_seg, s_cons): Call mips_emit_delays.
8272 (s_float_cons): Let float_cons do the work.
8273 (s_mipsset): Call mips_emit_delays when setting noreorder.
8274 * config/tc-mips.h (tc_frob_label): Define to be
8275 mips_define_label.
8276
04acd059
ILT
8277 * config/obj-ecoff.c (ecoff_build_symbols, ecoff_build_procs,
8278 ecoff_frob_files): Consistently use S_GET_VALUE rather than
8279 bfd_asymbol_value. Warn if taking difference of symbols in
8280 different segments.
8281
c978e704
ILT
8282Thu Jul 15 11:51:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8283
5276e361
ILT
8284 * config/obj-ecoff.c (ecoff_frob_file): Discard all open scopes,
8285 with a warning.
8286
2368ec63
ILT
8287 * config/obj-coffbfd.c (fixup_segment): If TC_M88K, don't adjust
8288 by md_pcrel_from if we are relocating against a symbol (we still
8289 need md_pcrel_from for a PC relative relocation within the same
8290 file).
8291 * config/tc-m88k.c (md_pcrel_from): Corrected return value.
cb441b38 8292 (omagic): Removed unused variable.
2368ec63 8293
c978e704
ILT
8294 * Preliminary support for m88k-coff.
8295 * configure.in (m88k-*-coff*): New target. Use coffbfd and
8296 m88kcoff.
8297 * config/m88kcoff.mt: New file.
8298 * read.c (lex_type): New macro LEX_AT to set lex type of '@'.
8299 (pseudo_set): Handle difference of symbols in different fragments
8300 by saving the entire expression as the value of the symbol.
8301 * symbols.c (resolve_symbol_value): Resolve difference
8302 expressions.
8303 * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
8304 "sdef" as a synonym for "def".
8305 * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
8306 TARGET_FORMAT.
8307 (S_IS_LOCAL): Any symbol which includes \001 in the name is local.
8308 * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
8309 m88k port up to date, and to add COFF support.
8310
85051959
ILT
8311Wed Jul 14 15:09:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8312
5868b1fe
ILT
8313 * Removed sy_forward and replaced it with an undefined expression
8314 as the value of a symbol.
8315 * struc-symbol.h (struct symbol): Removed sy_forward field. Added
8316 sy_resolved and sy_resolving single bit fields.
8317 * symbols.c (symbol_new): Don't initialize sy_forward field.
8318 (resolve_symbol_value): New function to adjust symbol value by
8319 fragment address, using recursion to resolve forward symbols.
8320 * symbols.h: Added prototype for new function.
8321 * read.c (pseudo_set): Set symbolP->sy_value to an undefined
8322 expression rather than setting symbolP->sy_forward.
8323 * write.c (write_object_file): Use resolve_symbol_value on
8324 symbols, keeping the common case (the old behaviour) inline.
8325 * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward
8326 handling (subsumed by write.c change).
8327 * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set
8328 sy_value rather than sy_forward.
8329 * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check
8330 expression segment rather than sy_forward.
8331 (yank_symbols): Use resolve_symbol_value.
8332 (crawl_symbols): Removed extra pass over symbols.
8333 * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c,
8334 config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over
8335 symbols which handled sy_forward; use resolve_symbol_value
8336 instead.
8337 * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol):
8338 Define.
8339 * config/obj-elf.c (obj_elf_stab_generic): Check expression
8340 segment rather than sy_forward.
8341 * config/obj-vms.c (VMS_Check_For_Main): Don't initialize
8342 sy_forward; do initialize sy_resolved and sy_resolving.
8343 * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward.
8344
85051959
ILT
8345 * Changes to keep a full expression as the value of a symbol, not
8346 just a longword:
8347 * struc-symbol.h: New field sy_value.
8348 * as.h: Include expr.h before struc-symbol.h.
8349 * expr.h: Use struct symbol rather than symbolS.
8350 * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value
8351 of sy_value field; compile unconditionally, not just if
8352 BFD_ASSEMBLER.
8353 * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally.
8354 * write.c (write_object_file): Set BFD symbol value to gas symbol
8355 value.
8356 * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h,
8357 config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h
8358 (S_GET_VALUE, S_SET_VALUE): Removed macro definitions.
8359 * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed.
8360 * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use
8361 S_GET_VALUE rather than ost_entry.n_value.
8362 * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c
8363 (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars),
8364 config/obj-coffbfd.c (symbol_to_chars): Get value to write out
8365 using S_GET_VALUE--don't assume it is already set.
8366 * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas
8367 symbol value.
8368 * config/obj-vms.c (various): Don't assign directly to
8369 S_GET_VALUE; use S_SET_VALUE instead.
8370
b50401c9
DE
8371Wed Jul 14 09:35:23 1993 Doug Evans (dje@canuck.cygnus.com)
8372
fd4b7c25
KR
8373 * configure.in: Make sparc64-*-aout* use bfd gas.
8374
b50401c9
DE
8375 * configure.in: Recognize h8300h.
8376
489a93f3
SC
8377Tue Jul 13 12:09:44 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8378
8379 * config/tc-h8500.c (line_comment_chars): Add hash.
8380 (parse_exp, skip_colonthing, build_bytes): Add support for
8381 R_H8500_HIGH16 relocation type.
8382
5d4ef296
KR
8383Mon Jul 12 11:15:34 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8384
8385 * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an
8386 attribute name. Handle `execinstr' attribute.
8387
99c24539
ILT
8388Mon Jul 12 07:22:28 1993 Ian Lance Taylor (ian@cygnus.com)
8389
8390 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
8391 there is another alternative for the instruction.
8392
ec1c752b
RP
8393Fri Jul 9 17:31:34 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
8394
8395 * doc/as.texinfo: updates for H8/300H
8396
d358969d
ME
8397Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
8398
8399 * config/tc-i960.c (md_create_short_jump, md_create_long_jump,
8400 md_number_to_chars, md_section_align): Adjusted to use valueT,
8401 addressT, to match tc.h.
8402
ff4cac38
KR
8403Thu Jul 8 14:15:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8404
8405 * config/tc-sparc.c (s_common): Revamp to handle both syntaxes,
b2565433 8406 independent of format.
ff4cac38 8407
42206996
DE
8408Thu Jul 8 07:25:25 1993 Doug Evans (dje@canuck.cygnus.com)
8409
8410 * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h.
8411
e9baeb46
DZ
8412Wed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
8413
8414 * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross
8415 build; also recognize h8300-*-coff
8416
76c64db0
ILT
8417Wed Jul 7 10:21:24 1993 Ian Lance Taylor (ian@cygnus.com)
8418
e154ecf4
ILT
8419 * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
8420 core just because somebody uses a label before it is defined.
8421
76c64db0
ILT
8422 * config/mips-opcode.h: Moved to opcode/mips.h.
8423 * config/tc-mips.c: Include opcode/mips.h rather than
8424 mips-opcode.h.
8425 (append_insn): An extra NOP is only needed after instructions
8426 which set HI or LO, not after instructions which read it.
8427 (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
8428 (macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
8429 * config/tc-mips.h (struct mips_opcode): Don't define.
8430 * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
8431 Set to $(srcdir)/../include/opcode/mips.h.
8432
8433 Get the MIPS assembler up to speed with other gas changes:
8434
8435 * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
8436 Removed; don't change the symbol value.
8437 (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
8438 bfd_asymbol_value rather than S_GET_VALUE to include section
8439 vma in symbol value.
8440 (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
8441 doesn't output them. Set the vma of sections.
8442 * config/obj-ecoff.h: Don't define obj_frob_symbol.
8443 * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
8444 longer necessary.
8445 (various): use valueT rather than long.
8446
e28e0b95
KR
8447Wed Jul 7 08:33:30 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8448
fd4b7c25
KR
8449 * config/tc-sparc.h (ENV64): Define for v9.
8450
8451 * config/tc-sparc.c (s_xword): For numbers, call big_cons.
8452 (sparc_ip, md_apply_fix, tc_gen_reloc): Handle some sparc64
8453 relocation types.
8454 (md_number_to_chars): Handle 8-byte value.
8455
8456 * config/obj-elf.h (elf_symbol): For v9, use 64-bit symbol type.
8457
e28e0b95
KR
8458 * as.h (valueT): Typedef moved here.
8459 * struc-symbol.h (valueT): ...from here.
8460 * write.c (write_object_file): Locals from_addr, to_addr,
8461 table_addr are now addressT. Supply prototype for bfd_alloc for
8462 now.
8463 (fixup_segment): Local add_number is now valueT. Correct some
8464 range-checking bugs.
8465 (relax_align): Type `int' should be sufficient for the exponent.
8466 (fix_new): Argument offset is type offsetT. Locals size and
8467 newsize are type valueT.
8468 * write.h (struct fix): Fields fx_offset and fx_addnumber are now
8469 type valueT.
8470 (fix_new): Fix prototype.
8471 * symbols.c (symbol_new): Symbol value is type valueT.
8472 (S_SET_VALUE, S_GET_VALUE): Likewise.
8473 (S_IS_*): Specify int return type explicitly.
8474 * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed
8475 prototypes.
8476 * read.c (s_comm): Values read are type valueT.
8477 * expr.h (expressionS): Field X_add_number is an offsetT.
8478 * tc.h (md_create_long_jump, md_create_short_jump,
8479 md_section_align): Addresses are now type addressT.
8480 (md_number_to_chars, md_apply_fix): Pass value as valueT.
8481 * config/tc-i386.c (md_create_short_jump, md_create_long_jump,
8482 md_number_to_chars, md_section_align): Adjusted.
8483 * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make
8484 gcc shut up.
8485 (md_create_short_jump, md_create_long_jump, md_number_to_chars,
8486 md_section_align): Adjusted.
8487
8488 * config/tc-sparc.c (s_reserve): Permit use for other than a.out
8489 format.
8490 (s_common): Handle Solaris-2 version.
8491
8492 * config/ho-generic.h (free): Returns void if __STDC__.
8493
8494 * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file,
8495 elf_file_symbol): Declare.
8496
8497 * expr.c (floating_constant, integer_constant): Now return void.
8498
8499Thu Jul 1 12:13:43 1993 Ian Lance Taylor (ian@cygnus.com)
8500
8501 * configure.in: Match on sparc*-fujitsu-none rather than
8502 sparclite*-fujitsu-none.
8503
267389df
ILT
8504Wed Jun 30 11:12:02 1993 Ian Lance Taylor (ian@cygnus.com)
8505
8506 * read.c (cons): Conditionalize parsing of expression. Move
8507 putting value into object file into separate function. Separate
8508 out MRI and WANT_BITFIELDS cases into separate functions.
8509 (emit_expr): New function to write data into object file.
8510 Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
8511 processor types.
8512 (parse_bitfield_cons): New function to parse bitfield expressions
8513 as used by i960 assemblers. Only compiled if
8514 BITFIELD_CONS_EXPRESSIONS is defined.
8515 (parse_mri_cons): New function to parse MRI style strings. Only
8516 compiled if MRI is defined.
8517 (parse_repeat_cons): New function to parse repeat counts. Only
8518 compiled if REPEAT_CONS_EXPRESSIONS is defined.
8519 * read.h (emit_expr): Added declaration of new function.
8520 * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
8521 * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
8522 * config/tc-hppa.c (parse_cons_expression_hppa): New function to
8523 parse a HPPA expression, rather than special case in cons
8524 function.
8525 (cons_fix_new_hppa): New function to emit an HPPA fixup, rather
8526 than special case in emit_expr function.
8527 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
8528 Define to use new functions from tc-hppa.c.
8529 * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
8530 (WANT_BITFIELDS): Removed; now obsolete.
8531 * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
8532 * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
8533 NS32K fixup, rather than special case in emit_expr function.
8534 * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
8535 cons_fix_new_ns32k. Also use PARAMS rather than checking
8536 __STDC__.
8537 * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.
8538
8539 * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
8540 Don't core dump if gas has no information about a section.
8541
8542Wed Jun 30 06:21:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8543
fd4b7c25
KR
8544 * config/tc-sparc.c (md_begin): If sparcv9 is defined, reset
8545 current_architecture to v9 automatically.
8546
8547 * config/tc-sparc.h (TARGET_FORMAT): Use elf64-sparc for v9.
8548
8549 * config/tc-sparc64.h, config/tc-sparc64.c: New files.
8550 * configure.in: Use sparc64 cpu files for v9, and default to elf
8551 format.
8552
267389df
ILT
8553 * write.c (relax_and_size_seg): Always fully process a section.
8554 Section size is last frag's (vm)address plus its size. If no
8555 relocations are present, force SEC_RELOC flag clear.
8556 (dump_section_relocs): New debugging routine.
8557 (adjust_reloc_syms): New routine, broken out from write_contents.
8558 Don't adjust relocs that are already relative to section symbol.
8559 Look for obj_fix_adjustable macro to know what else to skip,
8560 instead of obj_write_symbol. Look for section symbol stored in
8561 section information.
8562 (write_object_file): Map adjust_reloc_syms over all sections.
8563 (write_contents): Clear SEC_RELOC flag if no relocations are
8564 found.
8565
8566 * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to
8567 keep it quiet.
8568
8569 * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER.
8570
e28e0b95
KR
8571Fri Jun 25 14:42:53 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8572
8573 * Makefile.in (all, dvi, info, install-info, clean-info): do not
8574 echo recursion lines.
8575 (install-info, clean-info): collapse into the dvi and info rule.
8576
fd4b7c25
KR
8577Fri Jun 25 10:47:24 1993 Doug Evans (dje@canuck.cygnus.com)
8578
8579 * config/tc-sparc.c (sparc_ip): Remove support for %d/%q fp regs.
8580 All fp regs are now specified as %f.
8581 (priv_reg_table): fpq -> fq.
8582
267389df
ILT
8583Fri Jun 25 03:43:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8584
8585 * as.h (strstr): Disable declaration for now.
8586 (fprint_value, sprint_value): Declare.
8587
8588 * subsegs.c (subseg_new_rest): Use memset to clear new frag.
8589 (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields.
8590
8591 * expr.c (expr_part): Made sanity checks a.out-specific.
8592 (expr): Disabled sanity checks.
8593
8594 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for
8595 section symbol.
8596 * subsegs.c (subseg_change): Initialize section symbol pointer
8597 when setting up a new section.
8598
8599 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata
8600 field back at gas symbol structure.
8601
8602 * symbols.c (colon): Cast obstack_next_free value to char* before
8603 doing arithmetic on it.
8604 * subsegs.c (subseg_new_rest): Likewise.
8605 * as.h (frag_now_fix): Likewise.
8606
8607 * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of
8608 calling bfd_make_section_old_way directly, and call subseg_set
8609 instead of subseg_change. Now returns void.
8610 (obj_elf_write_symbol): Only check local symbols for now.
8611 (elf_stab_symbol): Now static and void, and disabled until it
8612 works completely.
8613 (obj_elf_size): For expression values, fail silently for now.
8614 (obj_symbol_new_hook): Do nothing.
8615
8616 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22
8617 relocation.
8618 (s_local) [OBJ_ELF]: New function.
8619 (md_pseudo_table) [OBJ_ELF]: Call it for "local".
8620 (s_common): Rearrange to handle Solaris .common pseudo, which may
8621 sometimes use bss space instead of common.
8622 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field.
8623
a8285504
DZ
8624Thu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8625
8626 * configure.in: set host config to hpux for hppa*-hp-hpux
8627
267389df
ILT
8628Thu Jun 24 13:35:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8629
8630 * app.c (app_pop, app_push): Fix bug reported by Chris Arthur.
8631
8632Tue Jun 22 01:04:23 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8633
8634 * subsegs.c (subseg_new): Don't special-case a.out -R flag here.
8635 * config/obj-aout.c (s_sect): Do it here.
8636
8637 * as.h (BAD_CASE): Don't make some lame compilers think we want
8638 substitution inside strings.
8639
8640 * as.c (print_version_id): New function, split off from main.
8641 (main): Call it.
8642 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id
8643 for -V. Ignore -Q and -s options for now.
8644
a8285504
DZ
8645Mon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8646
8647 * Makefile.in: make installation & builds work again for crosses
8648
267389df
ILT
8649Sun Jun 20 18:18:26 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8650
8651 * listing.c (list_symbol_table): Rewrite to print wide (>32 bits)
8652 symbol values correctly.
8653
8654 * write.c (write_object_file): Deleted unused variables.
8655 (fixup_segment): Use sprint_value.
8656
8657 * messages.c (sprint_value, fprint_value): New routines.
8658
8659 * config/obj-elf.c (elf_stab_symbol): Now returns void.
8660 (obj_elf_stab_generic): Fix typo in logic.
8661
8662 * Makefile.in (INCLUDES): Look in ../bfd for bfd.h.
8663
8664 * as.h (addressT, offsetT): New types, using BFD types if
8665 available.
8666 (relax_addressT, struct frag): Use them.
8667 * struc-symbol.h (valueT, struct broken_word): Likewise.
8668
8669 * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
8670 * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
8671
9126738c 8672Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
132239bf 8673
9126738c
DZ
8674 * Makefile.in: canonicalize install.sh; for use within
8675 this directory (and subdirs)
8676
267389df
ILT
8677Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
8678
8679 * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
8680 specified, should have both S1 and S2 fields identical
8681 If only finding the problem was as fast as fixing the bug !!!!
8682
8683Tue Jun 15 16:01:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8684
8685 * write.c (write_contents): Do write out non-loadable sections.
8686 Debug sections can fall in this category.
115147fb 8687
267389df
ILT
8688 * read.c (s_app_file): Call elf_file_symbol for ELF files.
8689 * config/obj-elf.c (elf_file_symbol): New function.
8690
8691 * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_...,
8692 added argument to specify section base name.
8693 (obj_elf_stab_generic): Renamed from ..._stab. New argument
8694 specifies section base name.
8695 (obj_elf_stab): New function, calls obj_elf_stab_generic with
8696 ".stab" as section base name.
8697 (obj_elf_xstab): New function, calls obj_elf_stab_generic.
8698 (obj_elf_type): Handle "object". Use bitwise-or to merge in
8699 symbol flags rather than simply replacing, so global/local flags
8700 are preserved.
8701 (obj_elf_ident): Rewrite.
115147fb 8702
a00ee522
DZ
8703Tue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8704
8705 * Makefile.in: remove parentdir support; use INSTALL_XFORM
8706
8707Wed Jun 9 11:26:07 1993 Ian Lance Taylor (ian@cygnus.com)
8708
8709 * config/tc-i386.c (md_pseudo_table): .align uses a power of two
8710 for any a.out target, not just Linux and 386BSD.
8711 * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out
8712 target.
8713
267389df
ILT
8714Mon Jun 7 13:33:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8715
8716 * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They
8717 don't exist or duplicate other inclusions.
8718
8719 * config/tc-vax.h (NO_RELOC): Define.
8720
fd4b7c25
KR
8721Mon Jun 7 09:55:03 1993 Doug Evans (dje@canuck.cygnus.com)
8722
8723 * config/tc-sparc.c (sparc_ip): Fix parsing of asi number.
8724 Fix error message.
8725
267389df
ILT
8726Sat Jun 5 19:32:52 1993 Torbjorn Granlund (tege@nada.kth.se)
8727
8728 * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions.
8729 * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first
8730 char to reg_prefix instead of to 'r'.
8731 (calcop): Change calls to get_reg.
8732 (calcop): Handle new case 'x' to set reg_prefix.
8733 (calcop): Set reg_prefix to 'r' after each call to get_reg.
8734 (cmpslot): Add 88110 conditions.
8735
8736 * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency.
8737
8738 * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer
8739 before returning.
8740
8741 * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics
8742 adjacent; mov.s and mov.d swapped.
8743 (m88k_opcodes): Fix typo `r2' -> `2'.
8744
a00ee522
DZ
8745Fri Jun 4 15:59:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8746
8747 * config/h8300.c: Support for H8/300-H opcodes.
8748
8749 * config/obj-coffbfd.c (w_strings): String table length is 4
8750 bytes, no matter what the host int size is.
8751
8752 * configure.in (alpha-*-osf*): New.
8753
68ad4c92
ILT
8754Fri Jun 4 07:51:18 1993 Ian Lance Taylor (ian@cygnus.com)
8755
47fcc4f5
ILT
8756 * configure.in (mips-*-ecoffl*): New target; use ecoff and
8757 mips-lit.
8758 (mips-*-ecoff*): Added trailing '*'.
8759
68ad4c92
ILT
8760 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
8761 first FDR in a file to be zero.
8762
75776695
KR
8763Thu Jun 3 14:09:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8764
b7067d7f
KR
8765 * Makefile.in (VERSION): Jump to 2.1.4.
8766
75776695
KR
8767 * config/ho-hppabsd.h: New file, from Peter Hoogenboom.
8768
8769 * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for
8770 ECOFF format.
8771
8772Tue Jun 1 15:21:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8773
8774 * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a
8775 separate '851 mmu.
8776
8777 * config/obj-elf.c, config/obj-elf.h: Update for new type, macro,
8778 and routine names. Assuming 32 bits for now.
8779
8780 * config/obj-elf.c (elf_frob_file): Look for macro
8781 elf_tc_final_processing_hook, instead of assuming a function
8782 always exists.
8783 * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from
8784 tc_final_processing_hook.
8785 * config/tc-hppa.h (elf_tc_final_processing_hook): Use it.
8786
8787 * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros
8788 moved here from obj-elf.h.
8789 * config/obj-elf.h: Don't include CPU-specific header files.
8790
8791Sun May 30 16:49:37 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu)
8792
8793 * configure.in: configurations should match on 'hppa*' not 'hppa'.
8794
8795 * read.c: Add support for HPPA assembly language syntax (denoted
8796 with '#ifdef TC_HPPA').
8797
8798 * symbols.c: Add support for HPPA assembly language syntax (denoted
8799 with '#ifdef TC_HPPA').
8800
8801 * write.c (write_contents): Add support for HPPA-style
8802 relocations.
8803
8804 * config/obj-elf.c: Stab symbols weren't written properly.
8805 (obj_elf_version):
8806 (obj_elf_desc):
8807 (obj_elf_write_symbol):
8808 (obj_elf_write_symbol_p):
8809 (obj_elf_frob_symbol):
8810 (elf_stab_symbol):
8811 (elf_frob_file):
8812
8813 * config/tc-hppa.c: Support for HPPA symbol extension sections.
8814 Remove some unused code. Support for HPPA assembly language
8815 syntax.
8816
8817 * app.c:
8818
8819 * symbols.c:
8820
8821 * config/obj-elf.h:
8822 (obj_write_symbol):
8823 (obj_frob_file):
8824 (elf_tc_symbol):
8825 (elf_tc_make_sections):
8826
8827 * config/tc-hppa.h:
8828
8829Sun May 30 21:44:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8830
8831 * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume
8832 hash_new will have succeeded if it returns.
8833 * config/tc-a29k.c (md_begin): Likewise.
8834
8835 * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is
8836 const.
8837 (mode_from_disp_size, opcode_suffic_to_type): Now inline under
8838 gcc.
8839 (fits_in_{signed,unsigned}_{byte,word}): Likewise.
8840
8841 * expr.c: Delete register declarations; gcc ignores them anyways.
8842
8843Fri May 28 19:03:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8844
8845 * hash.c (hash_new): Use xmalloc, since many callers don't check
8846 for failure.
8847
49864cfa
KR
8848Thu May 27 13:02:15 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8849
8850 * frags.c (zero_address_frag, bss_address_frag): These are
8851 external.
8852
8853 * tc.h (md_reloc_size): This is const.
8854 * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c
8855 (md_reloc_size): Now const.
8856
8857 * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete
8858 trailing commas.
8859 * as.h (enum _segT): Ditto.
8860
8861 * struc-symbol.h (N_TYPE_seg): This should be const.
8862
8863Thu May 27 11:43:59 1993 Michael Meissner (meissner@osf.org)
8864
8865 * config/obj-ecoff.c (add_file): Cast file_name to char * in
8866 listing_source_file call.
8867
8868 * config/obj-elf.c (elf_stab_symbol_string): Cast first argument
8869 of subseg_new call to eliminate const attribute.
8870 (obj_elf_stab): Ditto.
8871 (obj_symbol_new_hook): Cast first argument of bzero call to char *.
8872
8873 * read.c (s_align_bytes): Properly record alignment.
8874
8875 * expr.c (__): Undefine __ macro before use, since OSF/1 uses it
8876 for the prototype/no prototype macro.
8877
8878 * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be
8879 void.
8880
8881 * as.h (relax_stateT enum): Delete trailing comma.
8882
9a7d824a
ILT
8883Thu May 27 11:07:50 1993 Ian Lance Taylor (ian@cygnus.com)
8884
8885 * app.c (do_scrub_begin): Let line_comment_chars override
8886 comment_chars.
8887 (do_scrub_next_char): If a line comment character is not at the
8888 start of a line, treat it as a comment character if it is one.
8889 For a CPP line comment use pseudo-op .appline rather than .line.
8890 * input-scrub.c (logical_input_line): Make int rather than
8891 unsigned.
8892 (input_scrub_push, input_scrub_begin): Initialize
8893 logical_input_line to -1 rather than 0.
8894 (bump_line_counters): Increment logical_input_line.
8895 (new_logical_line): If line_number is -2, decrement
8896 logical_input_line.
8897 (as_where): Use logical_input_line even if it is 0.
8898 * read.h (s_app_file prototype): Now takes an int argument.
8899 * read.c (potable): Make .appfile call s_app_file with 1. New
8900 .appline pseudo-op calls s_app_line.
8901 (s_app_file): If .appfile, call new_logical_line with -2 to
8902 account for newline inserted by do_scrub_next_char. If listing,
8903 call listing_source_file.
8904 (s_app_line): New function to handle fake pseudo-op .appline.
8905 * config/obj-coff.c (obj_pseudo_table): Make .appline call
8906 obj_coff_ln.
8907 (obj_coff_ln): Added argument to indicate whether .appline.
8908 * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
8909 obj_coff_ln.
8910 (obj_coff_ln): Added argument to indicate whether .appline.
8911 * config/tc-mips.c (s_file): Pass argument to s_app_file.
8912
61f14fb0
ILT
8913Tue May 25 11:59:07 1993 Ian Lance Taylor (ian@cygnus.com)
8914
8915 * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast.
8916
8917Thu May 20 19:14:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8918
8919 * config/tc-m68k.c (md_apply_fix_2): Straighten out check for
8920 invalid values.
8921
6eef4543
SC
8922Wed May 19 07:33:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8923
8924 * config/tc-h5000.c (build_bytes): Understand @rd mode and build
8925 relocations correctly.
8926
f8f61478
KR
8927Mon May 17 15:06:26 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8928
6eef4543
SC
8929 * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because
8930 it's wrong.
8931
f8f61478
KR
8932 * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn
8933 if value is out of range.
8934
8935 Patch from Minh Tran-Le:
8936 * config/tc-i386.c (i386_operand): For in/out port register used
8937 as base reg, include InOutPortReg in operand type.
8938 (MATCH): Accept overlap value of InOutPortReg.
8939
8940Mon May 17 09:29:34 1993 Ian Lance Taylor (ian@cygnus.com)
8941
8942 * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab):
8943 Add calls to listing routines to produce combined source/assembler
8944 listings.
8945 (obj_ecoff_stab): Create a file pointer if none used yet.
8946 (ecoff_frob_file): Set symcount to correct value.
8947
8948Fri May 14 06:53:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8949
8950 * Makefile.in (VERSION): Bump to version 2.1, in preparation for
8951 release.
8952
8953 * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE):
8954 Define in terms of constants, not C structure sizes.
8955
8956 * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files.
8957
8958Thu May 13 17:01:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8959
8960 * config/obj-aout.c (obj_header_append): Don't define if it's
8961 defined as a macro.
8962 * config/obj-hp300.h (obj_header_append): Define it as a macro.
8963 * config/obj-hp300.c (hp300_header_append): New function.
8964
8965 * Makefile.in (distclean): Don't bother cleaning up doc files;
8966 they aren't going to be in this directory.
8967
204ff785
ILT
8968Thu May 13 07:51:35 1993 Ian Lance Taylor (ian@cygnus.com)
8969
f8f61478
KR
8970 * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute
8971 symbols.
8972
204ff785
ILT
8973 * tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
8974 * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
8975
65824763
KR
8976Mon May 10 06:01:12 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8977
204ff785
ILT
8978 * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with
8979 initialization.
8980
65824763
KR
8981 * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff.
8982
21bb48b9
ILT
8983Wed May 5 14:00:49 1993 Ian Lance Taylor (ian@cygnus.com)
8984
8985 * config/tc-mips.c (macro): Correct floating point double word
8986 loads and stores for big endian target.
8987
e7c2f943
KR
8988Wed May 5 08:39:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8989
8990 * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_*
8991 calls. Deleted some unused code.
8992 * config/obj-coff.c: Likewise.
8993
8994 ELF support, mostly contributed by Utah:
8995 * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line,
8996 obj_elf_type): Rewrite.
8997 (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol,
8998 obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size):
8999 New functions.
9000 (obj_elf_ident): Dummy.
9001 * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol,
9002 TARGET_SYMBOL_FIELDS): New macros.
9003 (gdb_section): New variable decl.
9004
9005 * config/tc-i386.c (md_atof): Return zero, not empty string, on
9006 success.
9007
9008 BFD_ASSEMBLER conditional changes:
9009 * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header):
9010 Don't define these.
9011 (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions.
9012 (fetch_coff_debug_section): Ditto.
9013 (obj_coff_endef): Call fetch_coff_debug_section.
9014 (struct line_no): New type.
9015 (c_symbol_merge): New way for copying aux fields.
9016 (c_dot_file_symbol): Put symbol in absolute section, and set flag
9017 BSF_DEBUGGING.
9018 (function_lineoff): New symbol.
9019 (function_lineoff, text_lineno_number, our_lineno_number,
9020 lineno_lastP): Don't define.
9021 (c_line_new): Don't define.
9022 (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh,
9023 placeholders, until
9024 line-number recording gets implemented.
9025 (obj_new_symbol_hook): New code for handling aux fields.
9026 (add_lineno, add_linesym): New functions.
9027 (obj_coff_ln): Call add_lineno, not c_line_new.
9028 (obj_coff_endef): New code for handling symbol names. New lineno
9029 code. Look for section name "*DEBUG*" for debugging section.
9030 (align, coff_check_file_symbols, obj_coff_section,
9031 coff_frob_file): New functions.
9032 * config/obj-coff.h: Reordered some includes.
9033 (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg,
9034 DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't
9035 define these.
9036 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros.
9037 (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing
9038 aux entries. Most SA_* macros now use it unconditionally.
9039 (S_*): Use `bsym' field, and access BFD private data.
9040 (SF_*): Use `sy_flags' symbol field for most of these.
9041 (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't
9042 define.
9043 (*_section_header): Don't define.
9044 * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed
9045 interface.
9046 (tc_gen_reloc) [I386COFF]: New function.
9047 (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define.
9048 * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New
9049 macros.
9050
9051 * config/obj-coff.c (stack_init): Don't do assignments inside
9052 conditions.
9053 (obj_coff_def): Simplified handling of symbol name a bit.
9054 (tag_insert): Name argument is now pointer to CONST.
9055 (obj_crawl_symbol_chain): Commented out.
9056
9057 * config/obj-coff.h: Use PARAMS macro in prototypes.
9058
9059 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect
9060 through frchainP pointer if it is null.
9061
9062 * configure.in: Warn if BFD mode is explicitly turned off but is
9063 required by specified target.
9064 (mips ecoff targets): Don't need to set bfd_gas here; it gets
9065 taken care of later.
9066
9067 * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward
9068 field.
9069 (yank_symbols): Merge symbols only if sy_forward is null.
9070
9071 * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already
9072 defined.
9073
9074 * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not
9075 pointer.
9076 * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto.
9077
9078 * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting
9079 with "." is a local label.
9080
9081 * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config
9082 files.
9083
9084 * config/te-linux.h, config/te-386bsd.h: New config files.
9085 * configure.in (i386-*-linux, i386-*-bsd): Use them.
9086 * config/tc-i386.h (TARGET_FORMAT): Select format based on target
9087 environment.
9088 (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux.
9089
5d6cfa60
ILT
9090Wed May 5 13:14:01 1993 Ian Lance Taylor (ian@cygnus.com)
9091
9092 * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
9093 to want it that way.
9094 (ecoff_build_symbols): Turn local st_Proc symbols into
9095 st_StaticProc symbols. Set index field of external st_Proc and
9096 st_staticProc symbols correctly.
9097 * config/tc-mips.h (NO_LISTING): Don't define. People might want
9098 listings.
9099
e7c2f943
KR
9100Tue May 4 21:22:54 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9101
9102 * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New
9103 files.
9104 * configure.in (m68k-*-hpux): Use them.
9105
9106 * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if
9107 defined, otherwise zero.
9108
9109 * config/aout_gnu.h (OMAGIC): Don't define if already defined.
9110
5d6cfa60
ILT
9111Mon May 3 15:59:32 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9112
9113 * config/tc-sparc.c (sparc_ip): Allow any abs expression as an
9114 address space number.
9115
9116Wed Apr 28 19:11:22 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9117
9118 * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all.
9119
9120 * config/tc-a29k.c: Include ctype.h.
9121 (define_some_regs): Added special-purpose registers for 29050.
9122
e7c2f943
KR
9123 * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/".
9124
9125 * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here.
9126 (change_to_section): Set it here instead.
9127
a1387260
ILT
9128Wed Apr 28 13:40:29 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
9129
9130 * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
9131 hasn't been seen yet.
9132 (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
9133
4a1bbbe7
SC
9134Mon Apr 26 18:29:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9135
9136 * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
9137 SH.
9138
be2f6bd6
ILT
9139Mon Apr 26 12:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
9140
9141 * expr.c (operand): Fix unary plus operator (previously was the
9142 same as '~' operator!).
9143
9144Wed Apr 21 00:20:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9145
9146 * write.c (cvt_frag_to_fill): Define even if BFD is defined.
9147 (write_object_file): Do define if BFD_ASSEMBLER. Invoke
9148 obj_check_file_symbols if defined. Call verify_symbol_chain_2
9149 instead of open-coding it. Fix some bugs in patching up symbol
9150 chain.
9151 (relax_segment): Make some code we "ought to be able to" use for
9152 all targets no longer conditionalized on ns32k target; instead, do
9153 it always, and if the appropriate conditions fail, abort.
9154
9155 * symbols.c (DEBUG): Enabled.
9156 (symbol_new): Make sure bfd_make_empty_symbol works.
9157 (verify_symbol_chain_2): New funcion; takes one symbol as
9158 argument, anywhere in the chain.
9159 (dollar_label*): Use default initializers.
9160
9161 * as.c (perform_an_assembly_pass): Call md_begin here...
9162 (main): ...and not here.
9163
9164 * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out.
9165 (tc_frob_symbol): New macro: Get rid of symbols in reg_section.
9166
9167 * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER.
9168 (add_fix, add_frag): Now functions instead of macros.
9169 (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num,
9170 s_data1, s_data2, s_bss): Use new *_section names, for
9171 compatibility with BFD_ASSEMBLER mode; rewrite switch statements
9172 to handle non-integral segT.
9173 (tc_coff_fix2rtype, tc_aout_fix_to_chars,
9174 tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER.
9175 (tc_gen_reloc): New routine for BFD_ASSEMBLER.
9176 (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to
9177 md_apply_fix_2; new md_apply_fix definition varies interface
9178 depending on BFD_ASSEMBLER.
9179 (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section
9180 names.
9181
9182 * config/obj-vms.c: Include config.h.
9183 (version_string): Delete declaration.
9184 (Write_VMS_MHD_Records): Use GAS_VERSION instead.
9185 (vms_resolve_symbol_redef): New function, taken from VMS code in
9186 symbols.c.
9187 (_doprnt): Deleted.
9188 (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct,
9189 VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix,
9190 VMS_Psect_Spec): Fixed to compiler under traditional C.
9191 * config/obj-vms.h: Use PARAMS macro.
9192 (vms_resolve_symbol_redef): Declare.
9193 (RESOLVE_SYMBOL_REDEFINITION): New macro.
9194 * symbols.c (colon): Remove some VMS-specific code, look for
9195 RESOLVE_SYMBOL_REDEFINITION macro instead.
9196
9197 * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc
9198 instructions.
9199
9200 * config/tc-i386.c: Reordered some functions so inlining might
9201 work. Use PARAMS in function declarations.
9202 (reloc): New routine.
9203 (md_assemble): Rearrange switch statements to work with
9204 non-integral segT.
9205
9206 * struc-symbol.h [BFD_ASSEMBLER]: Undefine
9207 SYMBOLS_NEED_BACKPOINTERS before defining it.
9208
9209 * subsegs.c (subseg_new_rest): Now static.
9210
9211 * read.c (pseudo_set): Better error message for difference of
9212 symbols in different frags.
9213
9214 * Makefile.in (check): Pass down some new variables, indicating
9215 pathname or program name for cc, nm, objdump.
9216
9217 * as.h (OUTPUT_FLAVOR): New macro.
9218 * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR.
9219
9220 * configure.in: Initialize bfd_gas properly. Warn that ELF
9221 support is incomplete.
9222
9223Thu Apr 15 22:39:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9224
9225 * read.c (float_cons): Accept null pointer return from md_atof.
9226 * config/tc-m68k.c (md_atof): Return null for success.
9227 * config/tc-sparc.c (md_atof): Ditto.
9228
97a6070c
RP
9229Thu Apr 15 16:04:39 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9230
9231 * doc/as.texinfo: formatting and comment cleanups; show SPARC
9232 alternative options in same style as other machines; simplify some
9233 conditional use; include GPL as separate file (from texinfo dir)
9234
9235 * doc/Makefile.in: (as.info) include directory containing GPL in
9236 makeinfo search path
9237
9238 * doc/h8.texi: new file; conditional settings for GAS manual
9239 on Hitachi chips
9240
9241Tue Apr 13 15:31:40 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9242
9243 * doc/as.texinfo: mention SPARC architecture options.
9244
be2f6bd6
ILT
9245Fri Apr 9 17:43:11 1993 Ken Raeburn (raeburn@cygnus.com)
9246
9247 * configure.in: Rearranged whitespace in per-host/per-target
9248 sections. Added hooks for dropping in HPPA support (not included
9249 yet). Separate out overrides of variables based on target format
9250 and bfd-gas selection from actual target-specific commands. Add
9251 error message for recognized but unsupported format name.
9252
349f20de
ILT
9253Fri Apr 9 09:05:47 1993 Ian Lance Taylor (ian@cygnus.com)
9254
9255 * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
55ff56bd 9256 symbolic header match cline in FDR; the native linker seems to
349f20de
ILT
9257 want that.
9258
5316696f
DZ
9259Thu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9260
9261 * doc/Makefile.in: as.texinfo is in $(srcdir). Use
9262 $(srcdir)/as.texinfo explicitly in several places
9263
8ac18b21
RP
9264Thu Apr 8 15:15:02 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9265
132239bf 9266 * doc/Makefile.in: update dvi, clean targets for new source
69cb5925 9267 file structure
8ac18b21 9268
d565311f
ILT
9269Thu Apr 8 12:52:46 1993 Ian Lance Taylor (ian@cygnus.com)
9270
9271 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
9272 rather than undefining know.
8ac18b21 9273 * configure.in: Match ultrix*, not just ultrix.
d565311f 9274
0742a6fd
RP
9275Wed Apr 7 20:18:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9276
9277 * doc/as.texinfo: converted conditional markup to use new
9278 Texinfo facilities, avoiding m4.
9279
9280 * doc/as-all.texinfo, all.m4, pretex.m4: deleted.
9281
9282 * doc/Makefile.in: recast doc configuration to use a link to an
9283 included texinfo file.
9284
9285 * doc/all.texi: settings for generic form of documentation.
9286
9287Tue Apr 6 11:56:21 1993 Ian Lance Taylor (ian@cygnus.com)
9288
9289 * read.c (cons): Zero out frag when creating reloc.
9290
367fc835
ILT
9291Mon Apr 5 09:41:58 1993 Ian Lance Taylor (ian@cygnus.com)
9292
84e4920f
ILT
9293 * config/tc-mips.c (gp_reference): Certain magic symbols can never
9294 be referenced off the GP register.
9295
367fc835
ILT
9296 * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
9297 when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
9298 LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
9299
9300 * config/te-irix.h: New file; irix needs a different LOCAL_LABEL
9301 definition from other MIPS targets.
9302 * configure.in (mips-*-irix): Use emulation irix.
9303
dd4227d3
SC
9304Sun Apr 4 15:21:09 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9305
9306 * config/tc-h8500.c: Get relax size of branch instructions right,
9307 (get_operand): Parse @sp+ correctly.
9308
be2f6bd6
ILT
9309Fri Apr 2 15:59:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9310
9311 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include
9312 COFF section header field.
9313
9314 * configure.in: Print error message if host or target is not
9315 supported.
9316
9317 * configure.in: If with-bfd-assembler, use obj-coff instead of
9318 obj-coffbfd.
9319
9320 * config/ho-generic.h: Include string.h.
9321
ed364bb6
ILT
9322Fri Apr 2 08:54:57 1993 Ian Lance Taylor (ian@cygnus.com)
9323
0433135d
ILT
9324 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
9325 '$' as local, for any object file format.
9326
477b4b04
ILT
9327 * config/tc-mips.c (macro): Optimizations to branching code and a
9328 couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph
9329 Campbell).
9330
ed364bb6
ILT
9331 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
9332 * configure.in (mips-sgi-irix*): Set gas_host to irix.
9333
670a50eb
ILT
9334Wed Mar 31 17:53:54 1993 Ian Lance Taylor (ian@cygnus.com)
9335
9336 * subsegs.c (subseg_new): Set output_section of new section.
9337 * as.c (perform_an_assemly_pass): Don't set output_section here.
9338 * expr.c (expr_part, expr): Turn off section assertions for ECOFF,
9339 since it has additional sections.
9340 * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
9341 not bss_section.
9342 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
9343 ecoff_undefined field.
9344 * config/obj-ecoff.c (obj_symbol_new_hook): Initialize
9345 ecoff_undefined field.
9346 (add_file): If using stabs, just output a stabs symbol rather than
9347 creating a new fdr.
9348 (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
9349 it with get_absolute_expression, rather than skipping it by hand.
9350 (obj_ecoff_loc): If using stabs, just output a stabs symbol rather
9351 than ECOFF line number information.
9352 (obj_ecoff_stab): Accept non-zero values for stabs line number.
9353 (ecoff_build_symbols): Set ifilesym correctly. Set storage class
9354 to small, undefined and/or readonly sections if appropriate.
9355 Don't output symbol names containing \001 characters.
9356 (ecoff_frob_file): Make sure at least one fdr is output.
9357 * config/tc-mips.h: Define TC_MIPS.
9358 * config/tc-mips.c (g_switch_value): New static variable.
9359 (md_assemble): Set gp size of output BFD.
9360 (gp_reference): New function; returns 1 if expression can be
9361 accesssed via gp. Always returns 0 if not using ECOFF.
9362 (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
9363 possible.
9364 (macro): Generate sequences using gp if possible.
9365 (md_parse_option): Ignore -EL and -EB. Parse -G.
9366 (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
9367 (s_change_sec): Handle .rdata and .sdata for ECOFF.
9368 (s_extern): Mark symbol as external. Set ecoff_undefined field.
9369
2b1b5697
KR
9370Tue Mar 30 10:11:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9371
670a50eb
ILT
9372 * output-file.c (output_file_create): Don't call as_perror for
9373 filename rejected by application.
9374
9375 * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink
9376 the output file.
9377
4b061a2a
KR
9378 * doc/as.texinfo: Don't use @value in node names for the moment;
9379 references don't appear to work right.
9380
4478def8
KR
9381 * as.h (const, volatile): Put these definitions back, and use
9382 them.
9383
2b1b5697
KR
9384 * doc/as.texinfo: First pass at using new texinfo features --
9385 variables, conditional tests. Far from complete.
9386
9387Mon Mar 29 16:05:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9388
9389 * read.c: Temporary hack to handle some 64-bit constants. This
9390 should be redone later.
9391 (target_big_endian): Declare.
9392 (big_cons): If it's set, reverse order of bytes being copied.
9393 * config/tc-sparc.c (md_begin): Set target_big_endian.
9394
9395 * read.c (s_ignore): Delete declaration of is_end_of_line.
9396
9397 * config/obj-coffbfd.c (yank_symbols): Build list of file symbol
9398 forward pointers properly.
9399
e02eaa59
SC
9400Mon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9401
9402 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
9403 wasn't being stored into scnhdr.
9404 * config/obj-coffbfd.h: Add prototype of s_get_segment.
9405 * read.c (TC_START_LABEL): Default definition.
9406 (read_a_source_file): Use TC_START_LABEL macro to work out
9407 if a label has been seen.
9408
543d88e4
ILT
9409Mon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com)
9410
c39b3eba
ILT
9411 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
9412 the bottom (make expands variables in dependencies when the
9413 dependencies are read, not when they are used).
9414
543d88e4
ILT
9415 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
9416 a29k .bss section; the mondfe program doesn't like it.
9417
2b1b5697
KR
9418Sun Mar 28 08:12:53 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9419
9420 * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of
9421 const.
9422 (current_architecture): Don't need initializer.
9423
9424Fri Mar 26 08:12:48 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9425
9426 * doc/none.m4: Define Z8000.
9427 * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the
9428 texinfo file before recreating it.
9429 (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in
9430 this directory.
9431 (srcdir): Delete second, bogus definition.
9432 (as.info): Look for as-*.texinfo in current directory rather than
9433 in $(srcdir).
9434 (as.dvi): Ditto.
9435 (dvi): New rule.
9436 * doc/configure.in: Create links to all as-*.texinfo files in the
9437 source directory, if that's not the current directory.
9438
9439 * configure.in (per-host): Accept MIPS host with BSD version
9440 number.
9441 (per-target): Classify i486 as i386. Use generic cpu_type instead
9442 of target_cpu in selecting format etc.
9443
9444 * app.c (do_scrub_next_char): Use .appfile, not .app-file.
9445 * read.c (potable): Change .app-file to .appfile.
9446
9447 * config/ho-decstatn.h: Renamed from ho-decstation.h.
9448 * configure.in: Adjusted.
9449
9450 * config/obj-bfd-sunos.*: Unused; deleted.
9451
9452 * Makefile.in (version.c, vers-stamp): Deleted.
9453 (config.h): Define GAS_VERSION.
9454 * as.c (version_string): Deleted declaration.
9455 (main): Look for GAS_VERSION instead.
9456
9457 * doc/as.texinfo: Updated description of -a* (listing) options,
9458 and describe how to pass them through from gcc.
9459
9460 * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or
9461 process relocs if there aren't any relocs to process. Avoids
9462 malloc/free bug on SCO too.
9463
9464 * as.h: Move local include files below system include files, to
9465 avoid some redefinition complaints on some systems.
9466 (const, volatile): Don't need these conditionally defined if we
9467 use CONST and VOLATILE from ansidecl.h.
9468 (seg_name): Use CONST, not const.
9469
543d88e4
ILT
9470Fri Mar 26 10:22:04 1993 Ian Lance Taylor (ian@cygnus.com)
9471
9472 * config/tc-mips.c: Reindented to GNU standards.
9473
2c19a57c
ILT
9474Thu Mar 25 08:59:14 1993 Ian Lance Taylor (ian@cygnus.com)
9475
61001d96
ILT
9476 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
9477 (fixup_segment): Add a29k special case; the linker is not prepared
9478 to see a segment offset here.
9479
2c19a57c
ILT
9480 * app.c (do_scrub_next_char): Added new state, 10, modifying state
9481 9 to only keep a space in between identifier characters.
9482
afcc637a
DZ
9483Wed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
9484
2d4bef5e
DZ
9485 * Makefile.in: add dvi target; as-$(config).texinfo might live in
9486 srcdir, might be in objdir.
afcc637a
DZ
9487
9488 * doc/Makefile.in: dvi depends on as.dvi
9489
80c8fd72
DZ
9490Mon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9491
9492 * Makefile.in: add installcheck target
9493
fd4b7c25
KR
9494Mon Mar 22 16:25:57 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9495
9496 * config/tc-sparc.c (sparc_ip): Add support for membar mask names.
9497 Add missing colons in prefetch error messages. Add support for
9498 ASI names.
9499
1369949e
ILT
9500Mon Mar 22 10:19:00 1993 Ian Lance Taylor (ian@cygnus.com)
9501
9502 * config/tc-mips.c (macro): Use $AT for any floating point load.
9503
63cdddad
KR
9504Sat Mar 20 12:50:51 1993 Ken Raeburn (raeburn@urth.cygnus.com)
9505
9506 * config/tc-m68k.c (m68k_ip): For operand type 'M', reject
9507 bignums, but don't emit error message.
9508
69498fa2
JW
9509Fri Mar 19 21:02:19 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9510
9511 * Makefile.in (targ-cpu.o): Depend on config.h.
9512
f6a91cc0
ILT
9513Wed Mar 17 16:44:06 1993 Ian Lance Taylor (ian@cygnus.com)
9514
9515 * app.c (do_scrub_next_char): Added new state, 9, to avoid
9516 dropping a space immediately following an identifier.
9517 * expr.c, write.c: Rewrote assert expressions to not use multiple
9518 lines; I don't think that can be done portably.
9519 * config/tc-mips.c (macro): Use $AT if target register is zero in
9520 load instruction, which it can be for a floating point load.
9521
a36f6645
ILT
9522Mon Mar 15 12:17:28 1993 Ian Lance Taylor (ian@cygnus.com)
9523
3d3c5039
ILT
9524 * write.c (write_contents): Compute the relocs before writing out
9525 the section contents.
9526 * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
9527 symbol table and values right.
9528 * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
9529 with $L is local.
9530 * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
9531 by the section vma.
9532
9533 * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
9534 z8k-opc.h, not z8k.h.
9535
a36f6645
ILT
9536 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf
9537 symbol.
9538
2a697fa4
DZ
9539Fri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9540
9541 * configure.in: recognize sparc-sun-solaris2* instead of -solaris2
9542
f2f7d044
ILT
9543Fri Mar 12 12:00:07 1993 Ian Lance Taylor (ian@cygnus.com)
9544
9545 * expr.c, write.c: Ultrix native 4.2 cc requires assert condition
9546 to be on a single line.
9547
ed099874
KR
9548Thu Mar 11 17:56:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9549
9550 * Makefile.in (config.h): Create file, writing out definitions of
9551 target cpu, alias, and canonical name.
9552 (ALL_CFLAGS): No longer define TARGET_CPU.
9553
9554 * Makefile.in (check): Print a message, instead of quitting
9555 silently.
9556
9557 * as.c (main): Don't catch any signals, for now.
9558
9559 * version.c: Deleted.
9560 * Makefile.in: Generate it, putting in only the version number
9561 itself.
9562 (VERSION): New variable.
9563 * as.c: Include config.h.
9564 (main): Reformatted version string. Include target alias. Don't
9565 print if not requested (i.e., unknown -v argument).
9566
9567 * as.c (stralloc): Deleted.
9568 (main): Call strdup instead.
9569
9570 * configure.in: Handle all 68300 series chips.
9571 * config/tc-m68k.c: Include config.h.
9572 (md_assemble): Assume TARGET_CPU is defined. Accept some 68300
9573 series cpus as defaults.
9574 (md_parse_option): Accept some m68300 series CPUs as defaults.
9575
9576Wed Mar 10 17:41:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9577
9578 * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if
9579 not already defined.
9580 (main, got_sig): Use them.
9581 * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default
9582 values.
9583
9584Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
9585
9586 * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF
9587 support.
9588
9589 * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs.
9590 OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN.
9591 (struct loc, struct proc, struct file): Moved to tc-mips.c within
9592 #ifndef OBJ_ECOFF block, since ECOFF uses different versions.
9593 * config/tc-mips.c: Rearranged for ECOFF support. Added
9594 prototypes for all static functions. Moved existing minimal
9595 debugging format support info #ifndef OBJ_ECOFF blocks.
9596 (macro_build_lui): Eliminated sign_extend argument, because ECOFF
9597 does not support a non sign extended high 16 bits reloc. Adjusted
9598 all callers accordingly.
9599 (tc_get_register): Renamed from get_register, and made non-static.
9600
9601 * config/mips-big.mt, config/mips-lit.mt: New files. Define
9602 TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN,
9603 respectively.
9604 * configure.in (mips-*-bsd*): Use gas_target mips-lit.
9605 (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using
9606 obj_format ecoff and gas_target mips-lit or mips-big.
9607
c5d4bc88
KR
9608Tue Mar 9 07:43:01 1993 Ken Raeburn (raeburn@cygnus.com)
9609
9610 * version.c: Bump to version 2.0.1.
9611
fefba3a5
ILT
9612Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
9613
9614 * write.c (chain_frchains_together): Check that seg_info (section)
9615 is not NULL.
9616 (write_object_file): Call obj_frob_file after setting the symbols,
9617 not before.
9618
2b1b5697
KR
9619Tue Mar 9 00:00:00 1993 Ken Raeburn (raeburn@cygnus.com)
9620
9621 * Version 2.0 released.
9622
fefba3a5
ILT
9623Mon Mar 8 14:57:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9624
9625 * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only.
9626
9627Fri Mar 5 09:05:55 1993 Ian Lance Taylor (ian@cygnus.com)
9628
9629 * read.h: Define stringer here.
9630 read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these
9631 places.
9632
bf449293
SC
9633Thu Mar 4 11:52:23 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9634
9635 * read.c (s_space): Multiply repeat count by mult, not fill.
9636
9471a360
KR
9637Thu Mar 4 05:20:42 1993 Ken Raeburn (raeburn@cygnus.com)
9638
9639 * read.c: Include ctype.h.
9640
1101551c
KR
9641Wed Mar 3 10:41:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9642
9643 Patches from Eric Youngdale:
9644 * make-gas.com: Find obstack.obj if it's not in the current
9645 directory.
9646 * read.c (s_ignore): Don't declare is_end_of_line. It's
9647 redundant, and triggers a VMS gcc compiler bug.
9648
9649 * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes
9650 current segment as an argument. (Ignored in all cases but VMS.)
9651 All callers and definitions changed.
9652
5e4cddb7
ILT
9653Tue Mar 2 11:56:19 1993 Ian Lance Taylor (ian@cygnus.com)
9654
9655 * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING
9656 case compile again.
9657
f3ca2a64
KR
9658Tue Mar 2 08:53:34 1993 Ken Raeburn (raeburn@cygnus.com)
9659
9660 * config/tc-m68k.c (isbyte): Accept all values from -255 to +255,
9661 so "~0x80" won't be rejected.
9662
9663 * config/obj-elf.c: No longer include elf/reloc.h.
9664 (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section.
9665 (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out
9666 routines.
9667 (obj_elf_xstab): New routine.
9668 (obj_elf_set_size): Call as_warn, not fprintf. Pass desired
9669 argument to s_ignore. Put "#if 0" around unused code.
9670 (obj_pseudo_table): Use s_ignore instead of do-nothing routines.
9671 Call elf_xstabs for .stabs and .xstabs operators.
9672
9673 * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc".
9674
9675 * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are
9676 present.
9677
9678 * configure.in: mips-bsd configuration was missing format spec.
9679 Should use aout.
9680
9681 * Makefile.in (Makefile): Depends on configure.in.
9682
9683 * config/tc-mips.c (append_insn): Don't check for alignment of
9684 frag in memory; alignment of instructions in section is a separate
9685 matter.
9686
9687 * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI
9688 C availability.
9689
9690 * listing.h: Always provide function declarations, not macros, so
9691 pcc won't lose.
9692
7687d89b
JG
9693Tue Mar 2 00:50:43 1993 John Gilmore (gnu@cygnus.com)
9694
9695 * CONTRIBUTORS: Update Gilmore entry.
9696
fd4b7c25
KR
9697Mon Mar 1 12:03:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9698
9699 * config/tc-sparc.c (sparc_ip): Correctly assemble prefetch
9700 instructions. Accept integer prefetch function numbers.
9701
7687d89b
JG
9702Wed Feb 24 14:58:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9703
fd4b7c25
KR
9704 * config/tc-sparc.c (s_xword): Now call big_cons, so large
9705 constants are accepted, but symbolic values are not. GCC will not
9706 generate the latter currently.
9707
7687d89b
JG
9708 * frags.c (frag_init): New function.
9709 (zero_address_frag, bss_address_frag): Now initialized at run
9710 time.
9711 * as.c (main): Call frag_init.
9712
160b7f0f
ILT
9713Wed Feb 24 10:32:42 1993 Ian Lance Taylor (ian@cygnus.com)
9714
9715 * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case:
9716 Don't unget ch2 if we didn't get it.
9717
0cca30f3
KR
9718Wed Feb 24 04:14:07 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9719
9720 * doc/Makefile.in (TEXIDIR): Updated for new layout.
9721
9722 * config/tc-sparc.c (s_common): Add support for ELF version.
9723 (tc_gen_reloc) [BFD_ASSEMBLER]: New function.
9724 * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]:
9725 New macros.
9726 (md_convert_frag): New macro.
9727
9728 * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a
9729 symbol, fix the offset so "+2" isn't required.
9730
9731 * config/tc-i960.c (line_comment_chars, line_separator_chars):
9732 Define as common/bss.
9733 (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C
9734 initializers are sufficient.
9735
9736 * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd.
9737 (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out".
9738 (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros.
9739 (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro.
9740 * config/obj-aout.c: Use PARAMS macro for declarations. Remove
9741 "IGNORE_DEBUG" conditional, since both branches are identical.
9742 Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly
9743 referencing symbol structure members.
9744 (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function.
9745
9746 * as.h (struct frag): Reordered a couple of fields for better
9747 packing.
9748
9749 * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the
9750 section info.
9751 (write_contents) [BFD_ASSEMBLER]: New function.
9752 (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call
9753 fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call
9754 obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined.
9755 (fixup_segment): Make sure common-section symbols get treated the
9756 same as undefined symbols.
9757 (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type
9758 bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from
9759 section info.
9760 * write.h (fix_new): Update prototype.
9761
9762 * tc.h (md_operand, md_convert_frag, tc_headers_hook,
9763 md_section_align, md_undefined_symbol): Don't provide prototypes
9764 if these are defined as macros.
9765 (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and
9766 section passed.
9767
9768 * symbols.c (symbol_new): Argument NAME is now pointer to const.
9769 Simplified STRIP_UNDERSCORE code. Remove assumptions about null
69cb5925 9770 pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new
0cca30f3
KR
9771 BFD symbol.
9772 (colon): Display other/desc fields of redefined symbol only if
9773 S_GET_OTHER and S_GET_DESC are defined.
9774 (symbol_make): Argument NAME is now pointer to const.
9775 (symbol_find, symbol_find_base): Likewise.
9776 (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions.
9777 * symbols.h: Fix prototypes for new const arguments. Add
9778 prototypes for BFD_ASSEMBLER S_* functions.
9779
9780 * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code
9781 for changing to an existing section.
9782 (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new,
9783 called by subseg_new and subseg_set.
9784 (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section,
9785 given section name and subseg number.
9786 (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly
9787 new section/subsection.
9788
9789 * read.c: Don't include ctype.h.
9790 (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32
9791 for now; should be machine-dependent.
9792
9793 * configure.in: Accept *-*-elf and *-*-solaris* as ELF format
9794 targets, forcing BFD use.
9795
9796Wed Feb 17 18:59:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9797
9798 * config/tc-sparc.c: Use PARAMS macro for static function
9799 declarations. Use BFD_RELOC_ macros everywhere, with
9800 compatibility macros declared for non-BFD mode.
9801 (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type
9802 instead of enum reloc_type.
9803 (emit_sparc_reloc): Commented-out function deleted.
9804 (md_convert_frag): Deleted.
9805 (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER.
9806 (md_apply_fix): Changed calling sequence (conditionally) for BFD
9807 version.
9808 * config/tc-sparc.h (md_convert_frag): New macro.
9809
9810 * config/obj-aout.c (obj_aout_stab): Refer to undefined_section,
9811 not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead
9812 of referencing fields directly.
9813
9814 * write.c (cvt_frag_to_fill): New function; extracted from
9815 write_object_file.
9816 (write_object_file) [! BFD_ASSEMBLER]: Call it.
9817 (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section
9818 and set its size and flags.
9819
9820 * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some
9821 fields with BFD equivalents. Turn on back-pointers, and add
9822 target-specific fields at end.
9823
9824Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
9825
9826 * config/obj-coffbfd.c (fill_section): Don't set vaddr here.
9827 (write_object_file): Set it here instead, so that fixup_segment
9828 can see the correct value.
9829
9830Mon Feb 8 13:56:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9831
9832 * write.c (write_object_file): Check for errors and warnings and
9833 bail out before processing contents.
9834 (chain_frchains_together_1): New function, does most of the work
9835 of remove_subsegs.
9836 (chain_frchains_together) [BFD_ASSEMBLER]: New function.
9837 (remove_subsegs) [! BFD]: Call it.
9838 (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD
9839 structures and routines.
9840
9841 * config/obj-elf.*: New files.
9842
9843 * config/mips.mt, config/rs6000.mt: Deleted.
9844
9845 * config/h8300.mt: Don't specify compiler here.
9846
7687d89b 9847 * config/z8k.mt: The z8k code depends on the z8k opcode table,
0cca30f3
KR
9848 not the h8300 one.
9849 * config/tc-z8k.h: Comment fix.
9850
9851 * write.c: Reordered some functions for better inlining.
9852 (fixup_segment): Linkrelax code is no longer conditional on
9853 TC_I960.
9854
9855Thu Feb 4 12:45:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9856
9857 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,
9858 obj-coffbfd.h}: support for the H8/500
9859
9860Wed Feb 3 19:28:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9861
9862 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here.
9863 * write.c (write_object_file): Not here.
9864 (fix_new): Initialize fx_addnumber.
9865
9866 * listing.c: Don't include target-cpu.h explicitly, since as.h
9867 includes it.
9868
9869Thu Jan 28 00:35:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9870
9871 * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP,
9872 *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP.
9873 (struct fix): Reordered fields for compactness and efficiency.
9874 Converted some logical fields to 1-bit fields.
9875
9876 * config/obj-aout.h: Use PARAMS.
9877 [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE,
9878 N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE.
9879
9880 * read.c: Don't include listing.h; as.h includes it. Removed
9881 DONTDEF code.
9882 [BFD_ASSEMBLER]: Include subsegs.h.
9883 (old_buffer, new_broken_words): Default initialization is
9884 sufficient.
9885
9886 * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH
9887 to 0, define stdoutput.
9888 (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure.
9889 Call bfd_set_arch_mach.
9890 (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not
9891 bfd_close_all_done. Call bfd_perror on failure.
9892 (output_file_append) [BFD_ASSEMBLER]: Don't define.
9893
9894 * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition.
9895
9896 * subsegs.h (segment_info_type): Always define. Omit field scnhdr
9897 if not MANY_SEGMENTS. Define new field bfd_section if
9898 BFD_ASSEMBLER.
9899 (seg_info): New macro.
9900
9901 * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused
9902 variables, and some irrelevant comments.
9903
9904 * Makefile.in (ALL_CFLAGS): Include $(BFDDEF).
9905 (LIBS): Include $(BFDLIB). Don't bother with $(CLIB).
9906 * configure.in: Permit --with-bfd-assembler now, with a warning.
9907 Variable need_bfd is now a boolean, as is new variable bfd_gas.
9908 Set BFDDEF and BFDLIB in Makefile when appropriate.
9909
9910 * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code.
9911 (main): Refer to flag_always_generate_output instead of
9912 flagseen['Z'].
9913
9914 * as.c (main) [BFD_ASSEMBLER]: Open output bfd.
9915 (*_section) [BFD_ASSEMBLER]: Define them.
9916 (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and
9917 set section flags when appropriate.
9918 * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified
9919 section is not absolute, undefined, or an assembler internal one.
9920 (absolute_section, undefined_section): Always define.
9921 * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break
9922 switch statements into if-else trees.
9923 * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of
9924 SEG_BSS and SEG_DATA.
9925
9926 * as.h (frag_now_fix): New macro.
9927 * symbols.c (colon): Use it.
9928
9929Wed Jan 27 21:43:53 PST 1993 Ralph Campbell (ralphc@pyramid.com)
9930
9931 * config/tc-mips.c: Added mips support for mips-dec-bsd.
9932 * config/tc-mips.h: Added mips support for mips-dec-bsd.
9933 * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd.
9934 * config/mips-opcode.h: Added mips support for mips-dec-bsd.
9935 * configure.in: Added mips support for mips-dec-bsd.
9936 * atof-generic.c: Define TRUE and FALSE if not defined.
9937
9938Thu Jan 21 12:48:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9939
9940 * version.c: Bumped version number to 1.93.05.
9941
9942Wed Jan 20 17:11:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9943
9944 * config/obj-coff.c (obj_emit_relocations): Don't use #elif.
9945 (obj_emit_lineno): Don't need return at end of void function.
9946 (obj_symbol_new_hook): Ditto.
9947
9948 * config/tc-m68k.c: Removed some unused code.
9949 (tc_aout_fix_to_chars): Array nbytes_r_length is now const.
9950
9951 * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only
9952 offset field is set.
9953
9954Fri Jan 8 05:44:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9955
fd4b7c25
KR
9956 * config/tc-sparc.c (sparc_ip): For %uhi and %ulo, if not
9957 ENV64, emit no reloc.
9958 (md_pseudo_table): For ".xword", call s_xword.
9959 (s_xword): New function.
9960
0cca30f3
KR
9961 * config/tc-sparc.c (architecture_requested, warn_on_bump,
9962 md_relax_table): Use default zero initialization.
9963 (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the
9964 latter, instead of selecting with preprocessor conditionals.
9965
9966Thu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9967
9968 * configure.in: recognise all sparclite variants
9969
9970Thu Jan 7 05:25:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9971
9972 * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change --
9973 accidentally changed to use subseg_change where it should have
9974 been subseg_new.
9975
6c5f9998
KR
9976Tue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9977
0bd77bc4
KR
9978 * expr.c (operand): If character other than comma or newline is a
9979 logical end-of-line character, use the newline case.
0cca30f3
KR
9980 From Eric Youngdale:
9981 (operand): Set X_add_number field for floating-point numbers.
9982 (operand): Treat zero byte as end-of-operand.
0bd77bc4 9983
6c5f9998
KR
9984 * configure.in (per-target): Look for with_bfd_assembler option.
9985 For now, only accept "no", until the merge is done.
9986
0cca30f3
KR
9987 Merged changes from Eric Youngdale (youngdale@v6550c.nrl.navy.mil):
9988 * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c,
9989 config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS.
9990 * read.c: Finish conversion to S_* macros in the VMS only
9991 parts of the program. Add "const" modifier to hex_value.
9992 * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to
9993 "ifdef OBJ_VMS".
9994 * expr.c: Add "const" modifier to hex_value.
9995 * symbols.c: Finish conversion to S_* macros in the VMS only
9996 parts of the program. Add "const" modifier to
9997 md_[long,short]_jump_size. Remove declaration of const_flag
9998 (which will be declared in obj-vms.h).
9999 * write.c: Add "const" modifier to md_[long,short]_jump_size.
10000 Fix arguments to VMS_write_object_file.
10001 * config-gas.com: New file. Script for VMS systems to set up the
10002 configuration to build gas for VMS, and create config.status.
10003 * make-gas.com: Redone to work with new scheme.
10004 * obj-vms.c: Patch to fix bug where we were not correctly parsing the
10005 stabs directives.
10006 * obj-vms.c: Define macros COPY_LONG and COPY_SHORT which
10007 will swap bytes if needed on a big endian system. Use throughout
10008 as needed.
10009 * obj-vms.c (obj_aout_stab): Add code to generate listing file.
10010 * obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain
10011 types of malformed stabs. Change parsing algorithm so that we are
10012 more certain of having all of the information that we need on hand.
10013 * obj-vms.c (final_forward_reference): New function, used to help
10014 resolve the data types of as many struct elements as possible
10015 when some part of the struct is not fully defined by the compiler.
10016 * obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation
10017 stabs directives.
10018 * obj-vms.c (VMS_write_object_file): Define all vtable psects
10019 as symbols as well in the object file. Look for external functions
10020 that start with "__vt.", and turn them into variables, since the
10021 g++ compiler is incapable of doing this.
10022 * tc-vax.c: Add '1' option for backward compatibility with older GCC
10023 versions.
10024 * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes.
10025 * input-scrub.c (as_where): Fix bug where as would crash if we did not
10026 have the name of the source file yet.
10027 * config/ho-vms.h: define HO_VMS, not HO_VAX.
10028
9d76a195
KR
10029Mon Jan 4 05:17:26 1993 Ken Raeburn (raeburn@cygnus.com)
10030
10031 * read.c (s_data): Always use "data_section", since it'll map to
10032 SEG_DATA or SEG_E1 if needed.
10033 (s_lcomm): Likewise with bss_section.
10034 (s_fill): Use memset, not bzero.
10035
10036Thu Dec 31 04:29:27 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
10037
10038 * read.c: Deleted some code under "#ifdef DONTDEF" that was for
10039 handling GDB symbol table data.
10040
10041 * config/obj-aout.h (segment_name): Delete definition.
10042 (seg_name): Delete declaration.
10043 * config/obj-bout.h (segment_name, seg_name): Ditto.
10044 * config/obj-vms.h (segment_name, seg_name): Ditto.
10045 * config/obj-coff.h (segment_name): Ditto.
10046 * config/obj-coffbfd.h (segment_name): Ditto.
10047
10048 * Changes for BFD_ASSEMBLER:
10049 * obj.h (obj_crawl_symbol_chain): Declare only if not
10050 BFD_ASSEMBLER.
10051 (obj_header_append, obj_pre_write_hook): Ditto.
10052 * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER.
10053 (segT) [BFD_ASSEMBLER]: New typedef for "asection *".
10054 (segment_name) If BFD_ASSEMBLER, look up BFD section name;
10055 otherwise, use seg_name array.
10056 (seg_name): Declare only if not BFD_ASSEMBLER.
10057 (section_alignment): Declare only if not BFD_ASSEMBLER.
10058 (big_section, reg_section, pass1_section, diff_section,
10059 absent_section, text_section, data_section, bss_section): If
10060 BFD_ASSEMBLER, declare as variables; otherwise, declare as macros,
10061 mapping to segT enum values.
10062 (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors
10063 if these are used or defined, if BFD_ASSEMBLER.
10064 (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old
10065 subseg_new split into two functions.
10066 (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now.
10067
10068 * as.h (volatile): Don't define if already defined.
10069 (had_errors, had_warnings): Provide prototypes for ANSI C even if
10070 NO_STDARG.
10071 (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2,
10072 declare with format attribute for -Wformat checking.
10073
85825401
ILT
10074Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
10075
10076 * app.c, config/tc-*.c: Don't include read.h, since it is already
10077 included by as.h.
10078
10079 * These are based on patches from Minh Tran-le
10080 <mtranle@paris.intellicorp.com>.
10081 * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use
10082 obj_format coffbfd and gas_target i386coff for target.
10083 (i[34]86-*-isc*): New host (uses sysv).
10084 * config/i386aix.mt: Removed (no longer used).
10085 * config/mh-i386aix (RANLIB): Use true rather than /bin/true.
10086 (MINUS_G): Removed.
10087 (LDFLAGS): Added, defined as -shlib.
10088 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
10089 * config/te-sco386.h (LOCAL_LABEL): Don't define.
10090 (DOT_LABEL_PREFIX): Define.
10091 * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
10092 name rather than L0\001.
10093 * read.c (s_lcomm): Make a frag in SEG_BSS rather than using
10094 local_bss_counter.
10095 * symbols.c, symbols.h (local_bss_counter): Removed.
10096 * write.c (write_object_file): bss no longer uses
10097 local_bss_counter. Pass correct data and bss size to
10098 VMS_write_object_file.
10099 * config/obj-vms.c (VMS_write_object_file): Accept bss size as
10100 argument, rather than using local_bss_counter.
10101 * config/tc-m88k.c (s_bss): Don't use local_bss_counter.
10102 * config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
10103 * config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
10104 (size_section): Restored sanity check.
10105 (do_relocs_for): Base section address on s_paddr rather than
10106 computing it. Adjust a29k R_IHIHALF special case to account for
10107 section paddr (used to require paddr to be zero). If there are no
10108 reclos, set s_relptr to 0. Set relocation size in object_headers.
10109 (fill_section): Always set s_vaddr here, removing
10110 ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set
10111 NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
10112 Set STYP_INFO for .comment.
10113 (coff_header_append): Use object headers and H_{SET,GET}_* macros.
10114 Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
10115 (crawl_symbols): Handle 8 character section name correctly. Use
10116 H_{SET,GET}_* macros.
10117 (do_linenos_for): Set lineno size in object_headers.
10118 (write_object_file): Use H_{SET,GET}_* macros. Don't bother to
10119 set s_vaddr here. If string_byte_count remains 4, set it back to
10120 0, and only write strings out if there are some. Call
10121 fill_section before do_relocs_for and do_linenos_for.
10122 (obj_coff_section): Handle optional quoted second argument giving
10123 section characteristics.
10124 (obj_coff_bss): Added to handle .bss.
10125 (obj_coff_ident): Added to handle .ident (puts string in .comment
10126 section).
10127 (obj_coff_lcomm): Put common symbols in .bss, not .data.
10128 (fixup_mdeps): Change to segment. Call frag_wane after
10129 md_convert_frag.
10130 (fixup_segment): Explicitly check S_IS_COMMON before making 386
10131 adjustment (already happened only for common symbols, but this is
10132 clearer).
10133 * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
10134 * config/tc-i386.c (s_bss): Don't use if I386COFF.
10135 (md_pseudo_table): Ignore .optim and .noopt.
10136 (tc_coff_sizemachdep): New function.
10137 * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
10138 compatibility.
10139 (LOCAL_LABEL): Removed definition.
10140 (DOT_LABEL_PREFIX): Defined.
10141
4539aa02
KR
10142Mon Dec 28 10:32:05 1992 Ken Raeburn (raeburn@cygnus.com)
10143
6d331d71
KR
10144 * app.c (app_push): Use memcpy, not bcopy.
10145 (do_scrub_next_char): For \", return " not '.
10146 (symbol_chars): Now const.
10147
4539aa02
KR
10148 * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f"
10149 and "0b". If LOCAL_LABELS_DOLLAR, check for "0$".
10150
10151 * config/obj-coff.h: Don't use #elif.
10152
10153 * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't
10154 have it. (Reported by Noah Friedman, friedman@gnu.ai.mit.edu.)
10155
3eb802b5
ILT
10156Wed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)
10157
10158 * write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
10159 already defined.
10160
be06bdcd
SC
10161Tue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10162
10163 * app.c (do_scrub_begin): allow single quote strings if so
10164 configured.
10165
10166 * config/*z8k*: checkpoint
10167
10168Sun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com)
10169
10170 * read.c (read_a_source_file): avoid calling xmalloc (0).
10171
016e0d42
ILT
10172Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
10173
10174 * listing.c: Call xmalloc, not malloc; don't declare malloc.
10175
10176 * Changes to support SCO 3.2v4:
10177 * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
10178 SEG_BSS, fill with NOP_OPCODE.
10179 * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
10180 * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
10181 using ZERO_BASED_SEGMENTS.
10182 (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
10183 never set segment address for SEG_E2 (.bss) and don't write out
10184 SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
10185 (obj_coff_endef): Don't merge labels or symbols awaiting forward
10186 definitions, and don't merge tags with non-tags. Check for .bf
10187 rather than just checking whether the second character is b and
10188 the third character is f.
10189 (obj_coff_val): gcc can generate values which we don't handle
10190 correctly; discard information for now, since it only affects the
10191 debugging information.
10192 (tag_find_or_name): Don't insert tags in the symbol table.
10193 (yank_symbols): Don't merge labels.
10194 (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
10195 already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
10196 set segment address if ZERO_BASED_SEGMENTS.
10197 (obj_coff_section): Accept and ignore a trailing quoted string, as
10198 used in AT&T i386 syntax.
10199 (fixup_segment): Take segment as argument. On the i386, adjust PC
10200 relative addends by the segment vaddr.
10201 * tc-i386.h: Define SUB_SEGMENT_ALIGN.
10202 * tc-a29k.h: Define ZERO_BASED_SEGMENTS.
10203 * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
10204
db33220f
KR
10205Tue Dec 8 00:06:48 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
10206
016e0d42
ILT
10207 * config/obj-coffbfd.c: Include libcoff.h.
10208
db33220f
KR
10209 * version.c: Now version 1.93.
10210
dde624ef
KR
10211Mon Dec 7 00:39:09 1992 Ken Raeburn (raeburn@cygnus.com)
10212
db33220f
KR
10213 * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do
10214 power-of-two alignment for .align.
10215
dde624ef
KR
10216 * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial,
10217 and leave everything else alone.
10218
10219Fri Dec 4 16:58:42 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10220
10221 * Makefile.in (as.new): Don't bother saving as.old.
10222
10223 * write.c: Conditionalize on OBJ_VMS, not VMS.
10224 (magic_number_for_object_file): Don't define if OBJ_VMS.
10225
10226 * config/obj-vms.c: Changes for traditional C.
10227
7f2cb270
KR
10228Thu Dec 3 01:24:07 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
10229
10230 * config/ho-generic.h (malloc, realloc): Declare.
10231
10232 * Lots of comment/whitespace changes.
10233
10234 * write.h (struct fix): Some fields reordered, narrowed.
10235
10236 * read.c (MASK_CHAR): Define using C types, not magic number.
10237
10238 * as.c, input-file.c: Deleted some unused code.
10239
10240 * app.c, as.h: Doc fix.
10241
10242 * flonum-konst.c, flonum-mult.c: Include ansidecl.h.
10243
10244 * as.h (xmalloc): Argument is long.
10245
10246 * xmalloc.c (error): Remove declaration; as.h takes care of it.
10247
0cca30f3
KR
10248 * doc/as.texinfo: Regrouped documentation of some command-line
10249 options. Updated options documentation for m68k. Some minor
10250 wording/punctuation changes.
10251
7f2cb270
KR
10252Mon Nov 30 11:42:11 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10253
10254 * configure.in: Accept target OS "vms".
10255
10256 * symbols.c: Merged ANSI and non-ANSI function decls, using
10257 PARAMS macro.
10258
10259 * xmalloc.c: Just include as.h, don't bother trying to figure out
10260 other header files.
10261
10262 * strstr.c, strerror.c: Deleted.
10263 * Makefile.in: Deleted references.
10264
10265 * config/tc-ns32k.c: Don't include header file for string
10266 declarations; leave that to ho-*.h.
10267
10268Fri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com)
10269
10270 * config/coff_gnu.h [TC_I860]: Guesses for reloc type values,
10271 imported from FSF sources.
10272
10273 * messages.c (strerror): Declare unconditionally.
10274
10275 * as.h: Delete alloca and register definitions.
10276
10277 * config/atof-ieee.c (mask): Now const.
10278
10279 * obstack.c, obstack.h: Deleted.
10280
10281 * as.h (flag_readonly_data_in_text): New flag.
10282 * as.c (main): Set it for -R.
10283
10284 * as.h (flag_suppress_warnings): New flag.
10285 * as.c (main): Set it for -W.
10286 * messages.c (as_warn): Check it instead of flagseen['W'].
10287
10288 * as.h (flag_always_generate_output): New flag.
10289 * as.c (main): Set it for -Z.
10290
10291 * config/tc-sparc.h: Define NEED_FX_R_TYPE.
10292 * config/tc-a29k.h: Ditto.
10293 * write.h (struct fix): Don't conditionalize fx_r_type field on TC
10294 macros.
10295
10296 * as.h: Merged ANSI and non-ANSI function decls, using PARAMS
10297 macro.
10298 * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h,
10299 obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h,
10300 write.h: Likewise.
10301 * read.c: Likewise.
10302
10303 * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in
10304 xrealloc from xrealloc.c.
10305 * xrealloc.c: Deleted.
10306 * Makefile.in (REAL_SOURCES, OBJS): Adjusted.
10307
10308 * configure.in: For host CPU a29k, rs6000, vax, consider using bsd
10309 or vms ho- files.
10310
10311 * config/ho-sysv.h (setbuffer, HO_USG): Deleted.
10312
10313 * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer;
10314 don't initialize it with NULL.
10315
10316 * config/ho-vax.h (M_VAX): Deleted; was unused.
10317
10318 * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h:
10319 New files imported from FSF version, contributed by Eric Youngdale.
10320 * README-vms-dbg, config/vms: Deleted.
10321
10322 * ChangeLog, config/ChangeLog: Merged.
10323
10324 * config/*tahoe*, configure.in: Tahoe support brought in from FSF
10325 version.
10326
10327 * input-file.c (input_file_open): Eliminate call to setvbuf.
10328 [USG] (setbuffer): Deleted macro.
10329
6efd877d
KR
10330Mon Nov 23 11:00:16 1992 Ken Raeburn (raeburn@cygnus.com)
10331
10332 * all files: Whitespace changes for GNU indentation style, done by
7f2cb270 10333 GNU `indent'. Some cleanup still needed, especially of comments.
6efd877d
KR
10334
10335 * configure.in: No te-386bsd.h file exists; don't try to use it.
10336
7f2cb270
KR
10337 * obj-coff.c (obj_coff_endef): Use as_warn, not fprintf.
10338
10339 * tc-m68k.c (md_assemble): Don't complain about 68000 with 68881;
10340 could be doing emulation.
10341
0cca30f3 10342Thu Nov 19 11:47:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
132239bf 10343
69cb5925 10344 z8000 documentation
0cca30f3
KR
10345 * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo:
10346 all modified.
10347
6efd877d
KR
10348Tue Nov 10 09:49:24 1992 Ian Lance Taylor (ian@cygnus.com)
10349
10350 * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h.
10351
10352 * subsegs.h: add extern to segment_info declaration.
10353
10354 * read.h: added extern declarations for comment_chars,
10355 line_comment_chars, and line_separator_chars.
10356 read.c, app.c: removed definitions of comment_chars,
10357 line_comment_chars, and line_separator_chars.
10358
7f2cb270
KR
10359 * tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined,
10360 still accept (but don't require) OPTIONAL_REGISTER_PREFIX before
10361 the register name.
10362 (insert_reg): put REGISTER_PREFIX before register names before
10363 putting them in the symbol table.
10364 * tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not
10365 M68KCOFF.
10366
10367 * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss
10368 section.
10369
10370 * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS,
10371 comment_chars, line_comment_chars and line_seperator_chars
10372 consistently const, and always initialized them. Included read.h.
10373
10374Thu Nov 5 17:55:41 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10375
10376 * tc-sparc.c (sparc_ip): Add code to flag error if an absolute
10377 constant will not fit in an immediate field.
10378 (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow.
10379
10380Wed Nov 4 07:50:46 1992 Ken Raeburn (raeburn@cygnus.com)
10381
10382 * obj-coff.c (callj_table): Delete global variable.
10383 (obj_emit_relocations): Define it locally here, and only if
10384 TC_I960 is defined.
10385
10386 * tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name.
10387 (m68k_ip): Don't warn about bignum used as float bit-pattern.
10388
10389 * obj-coff.c: Replaced ANSI and non-ANSI function declarations
10390 with a single set using PARAMS macro.
10391
10392 * tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length
10393 of 2.
10394
10395 * tc-i960.c: Missed a couple of 0->NO_RELOC conversions.
10396
10397 * tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values,
10398 so widening works consistently.
10399
6efd877d
KR
10400Wed Oct 28 08:52:34 1992 Ken Raeburn (raeburn@cygnus.com)
10401
10402 * version.c: Put conditional "const" before version_string, not
10403 before dummy function for VMS. Now version 1.91.03.
10404
10405 * app.c (do_scrub_next_char): Need double-\ before `000' to show
10406 printed rep of null character.
10407
7f2cb270
KR
10408Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
10409
10410 * obj-coffbfd.c (write_object_file): check return value of
10411 bfd_close_all_done.
10412
559d9aac
ILT
10413Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
10414
7f2cb270
KR
10415 * Support for i386-sysv.
10416 obj-coffbfd.c (do_relocs_for, write_object_file): set segment
10417 addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can
10418 be used to set them all to zero as was done before.
10419 (fill_section): segment addresses now set in write_object_file.
10420 (fill_section): Don't set STYP_NOLOAD for .bss section.
10421 (fixup_segment): 386 uses strange common symbol format.
10422 tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
10423 compatibility with SVR3.2 linker.
6efd877d
KR
10424 * configure.in: i386-sysv and i386-sco use coffbfd.
10425
559d9aac
ILT
10426 * app.c (do_scrub_next_char): discard whitespace after a label.
10427
0f8b9790
DZ
10428Sat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10429
10430 * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4
10431 hosts, use the sysv configuration for solaris2
10432
7f2cb270
KR
10433Mon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10434
132239bf 10435 fix i960+non-bfd coff bit rot.
7f2cb270
KR
10436 * obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
10437 support for C source listings. (obj_coff_endef): look in the right
10438 part of the symbol for the symbol name
10439
10440 * tc-m68k.c (get_num): make it work for all segments, not just the
10441 first three.
10442
984cf2d7
ME
10443Mon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
10444
69cb5925 10445 * configure.in: recognize i386-*-bsd emulation.
984cf2d7
ME
10446
10447Thu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10448
10449 * configure.in: use the cpu-vendor-os triple for host and target
10450
7f2cb270
KR
10451Tue Sep 29 12:22:52 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10452
10453 * obj-coffbfd.c (write_object_file): don't fixup for the z8k
10454 * tc-z8k.c: lots of bug fixes
10455
10456Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
10457
10458 * tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
10459 #elif, since it is not supported by old compilers.
10460 ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
10461 couple of expressions in tc-m68k.c.
10462
984cf2d7
ME
10463Mon Sep 28 21:18:24 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10464
10465 * read.c (cons): If NO_RELOC is defined, use it.
10466
7f2cb270
KR
10467 * tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new.
10468
10469Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
10470
10471 * tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
10472 local labels to start with a .) and set REGISTER_PREFIX to %.
10473 tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
10474
5a0fc1d4
JG
10475Fri Sep 25 17:53:43 1992 John Gilmore (gnu@cygnus.com)
10476
10477 * messages.c: Comment changes.
10478
4959cb7b
KR
10479Fri Sep 25 14:12:58 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
10480
10481 * as.h: Test if __STDC__ is defined only, don't test its value.
10482 * messages.c: If __STDC__ is not defined, define NO_STDARG.
10483
5e9d510e
BK
10484Thu Sep 24 12:42:32 1992 Brendan Kehoe (brendan@rtl.cygnus.com)
10485
10486 * listing.c (debugging_pseudo): Add stabs and stabn as things to
10487 ignore.
10488
7f2cb270
KR
10489Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
10490
10491 * obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
10492 sections starting from zero, rather than making them consecutive.
10493 This makes subsequent reloc calculations easier, esp if the object
10494 format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily)
10495 allocate lcomm in .data rather than in .bss. It seems that some
10496 tools can't cope with a non-zero sized bss before linkage.
132239bf 10497
7f2cb270
KR
10498Tue Sep 22 15:10:51 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10499
10500 * tc-m68k.c: Replace "enum m68k_architecture" with "int"
10501 throughout. That enum no longer means what we thought it meant.
10502
10503 * tc-m68k.c (md_assemble, md_parse_option): Handle new
10504 "-mno-688[58]1" options.
10505
10506 * tc-m68k.c: Added CPU32 support.
10507
10508Fri Sep 18 08:02:18 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10509
10510 * tc-m68k.c (m68k_ip): An(disp) is not pc relative.
10511
569dac15
JW
10512Tue Sep 15 17:25:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10513
10514 * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES.
10515 Change LIBDEPS dependence to LIBS.
10516
efbfb612
ILT
10517Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com)
10518
10519 * Makefile.in (install): if $(tooldir) exists, install as in
10520 $(tooldir)/bin.
10521
987b1491
ILT
10522Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
10523
ca5e9d49
ILT
10524 * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
10525 .word is < -32768 or > 32767. The -J flag causes the error to be
10526 ignored. This is to catch over-sized switches generated by gcc on
10527 systems which don't support the broken .word hack.
10528 as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
10529 write.c (fixup_segment): check for signed .word overflow if
10530 WARN_SIGNED_OVERFLOW_WORD.
10531
987b1491
ILT
10532 * write.c (fixup_segment): fixed missing parens in expression
10533 checking for byte or word overflow.
10534
7f2cb270
KR
10535 * obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
10536 obj-coffbfd.c (fixup_segment): check for signed .word overflow if
10537 WARN_SIGNED_OVERFLOW_WORD.
10538
10539 * obj-coffbfd.c (fixup_segment): fixed missing parens in
10540 expression checking for byte or word overflow.
10541
10542Fri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10543
10544 Support for i386 coff
132239bf 10545 * obj-coffbfd.h : added stuff
7f2cb270
KR
10546 * tc-i386.c (tc_coff_fix2rtype): new function
10547 * tc-i386.h : new coff defines
10548
b1520b1f
ILT
10549Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com)
10550
10551 * input-scrub.c (input_scrub_push): call input_file_begin, not
10552 input_scrub_begin.
10553 messages.c (as_perror): print ": " between the passed in error and
10554 the strerror, like perror does.
10555
b53ccaac
ILT
10556Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
10557
10558 * Makefile.in: use gas_target instead of modifying target_cpu.
10559 From Steve Chamberlain:
10560 Makefile.in: Handle m68*-*-coff*.
10561 read.c, read.h: add mult argument to s_space
10562
7f2cb270
KR
10563 * tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
10564 Motorola and MIT syntax; gas can now assemble either type of
10565 file.
10566 tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
10567 From Steve Chamberlain:
10568 m68kcoff.mt: for m68k COFF.
10569 obj-coffbfd.c: (fixup_mdeps) added
10570 (size_section) removed bad sanity check
10571 (fill_section) added rs_machine_dependent case
10572 (write_object_file) call fixup_mdeps
10573 (fixup_segment) set fx_subsy to 0.
10574 obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
10575 handle m68k.
10576 tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
10577 pseudo ops.
10578
db4d20e5
KR
10579Tue Sep 8 17:10:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10580
10581 * Makefile.in (LIBS): Include opcode library.
10582
e53ab768
KR
10583Fri Sep 4 18:20:56 1992 Ken Raeburn (raeburn@cygnus.com)
10584
10585 * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers
10586 including zero are accepted, pass +0.0.
10587
7e10f53c
ILT
10588Sun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com)
10589
10590 * Makefile.in: map "as" through program_transform_name when
10591 installing.
10592
0cca30f3
KR
10593 * doc/Makefile.in: map "as" through program_transform_name when
10594 installing.
10595
b0952e12
JW
10596Sat Aug 29 12:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10597
10598 * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
10599
7f2cb270
KR
10600Fri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com)
10601
10602 * obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
10603 tc-i960.c (md_ri_to_chars): Always output bout object file in
10604 little endian byte order (used to use endianness of host).
10605
b2f221a9
KR
10606Tue Aug 25 15:50:48 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10607
10608 * config/tc-m68k.c (init_table): Now const. Always include 68851
10609 data, so that "bc" is available to 68040 cache instructions.
10610 Added "tt0", "tt1", and 68ec030 variants.
10611 (md_assemble): Complain if 68000 (only) and 68881 are specified.
10612 (enum _register): Added TT0, TT1.
10613 (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass
10614 line number correctly in "internal error" messages. Don't print
10615 architecture-mismatch message for operand errors.
10616
10617 From Colin Smith (colin@wrs.com):
10618 * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather
10619 than install_operand.
10620
ab737e51
SC
10621Tue Aug 25 15:13:48 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10622
10623 * listing.c (buffer_line): rewind to the start of include
10624 files, they might be included twice.
10625
7f2cb270
KR
10626 * z8k.c, z8k.h, z8k.mt: z8000 support stuff
10627
7121231f
ILT
10628Mon Aug 24 12:45:43 1992 Ian Lance Taylor (ian@cygnus.com)
10629
10630 * Makefile.in: defined TARGET_CPU for C code so that it can choose
10631 one element of a family.
10632
7f2cb270
KR
10633 * tc-m68k.c: use TARGET_CPU to choose default cpu type.
10634
10635 * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
10636 so that we can assemble hand-written libgcc code.
10637
4772861e
KR
10638Fri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10639
10640 * messages.c (as_warn): Use fputs, not fprintf, with a buffer that
10641 has already been formatted (but may still contain %-characters).
10642 (as_bad): Likewise.
10643
7f2cb270
KR
10644Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
10645
10646 * tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
10647 written with indirection on the last two operands, which can be
10648 either data or address registers. Added a new operand type 'r'
10649 which accepts either register type. Added '(' to notend stuff in
10650 tc-m68kmote.c to accept (a0):(a2) in cas2 instruction.
10651
09952cd9
KR
10652Wed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com)
10653
10654 * as.h (enum _relax_state): Start off at one, not zero, to better
10655 catch uninitialized-variable errors.
10656 (linkrelax): Declare new variable.
10657
10658 * messages.c (warning_count, error_count): Default initializer is
10659 sufficient.
10660
10661 * write.c: Merged some declarations, using PARMS macro.
10662 (text_frag_root, data_frag_root, bss_frag_root, text_last_frag,
10663 data_last_frag): No longer static.
10664 (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is
10665 defined, call it. Change segments before calling fixup_segment.
10666 (relax_align): If linkrelax, provide extra padding.
10667
10668 * obj-bout.c (obj_emit_relocations): Emit alignment relocs despite
10669 their not having symbols associated.
10670
10671 * tc-i960.c (norelax, instrument_branches): Default initializer is
10672 sufficient.
10673 (linkrelax): Delete variable definition.
10674 (mem_fmt): Call fix_new with NO_RELOC.
10675 (tc_bout_fix_to_chars): Handle alignment relocs.
10676 (i960_handle_align): New function.
10677 * tc-i960.h (linkrelax): Delete declaration.
10678 (HANDLE_ALIGN): New macro; calls i960_handle_align.
10679 (NEED_FX_R_TYPE, NO_RELOC): New macros.
10680
a457f4d9
KR
10681Tue Aug 18 14:59:21 1992 Ken Raeburn (raeburn@cygnus.com)
10682
10683 * config/sparc.mt: New file. Grab sparc opcode table from bfd
10684 library.
10685
4b857710
ILT
10686Tue Aug 18 14:16:38 1992 Ian Lance Taylor (ian@cygnus.com)
10687
10688 * Makefile.in: always create installation directories. Removed
10689 MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
10690 FLAGS_TO_PASS to recursive makes.
10691
0cca30f3
KR
10692 * doc/Makefile.in: always create installation directories.
10693
f7e9bc5a
SC
10694Mon Aug 17 15:09:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10695
10696 * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was
10697 being used with args swapped, causing occasional lossage when
10698 refilling buffers after an include file.
10699
c1c28543
KR
10700Mon Aug 17 13:18:51 1992 Ken Raeburn (raeburn@cygnus.com)
10701
10702 * messages.c (as_tsktsk): Use correct ANSI form for stdarg
10703 version. Discard bogus DONTDEF version.
10704 (as_warn, as_bad, as_fatal): Likewise.
10705
2e20e59a
KR
10706Fri Aug 14 18:31:14 1992 Ken Raeburn (raeburn@cygnus.com)
10707
10708 * config/tc-m68k.c (m68k_ip): If instruction is invalid for the
10709 selected architecture, print a message saying so and listing what
10710 processors support it, rather than saying "operands mismatch".
10711
c8c7e0bf
KR
10712Thu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com)
10713
10714 * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
10715
10716 * config/ho-rs6000.h (M_RS6000): Don't define it.
10717 (free): Declare it.
10718 (BROKEN_ASSERT): Define it if not __STDC__.
10719
7f2cb270
KR
10720Tue Aug 11 12:58:14 1992 Ken Raeburn (raeburn@cygnus.com)
10721
10722 * sparc.mt: New file.
10723
10724Mon Aug 10 14:37:08 1992 Per Bothner (bothner@cygnus.com)
10725
10726 * tc-m68k.c: ".align N" means align to N-byte boundary *only*
10727 if TN_SUN3; otherwise align to 2**N-byte bounary.
10728
7fd3560a
SC
10729Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10730
10731 * read.c (s_fill): make the .fill size clamped error a warn and
10732 fix bug where 0's were always placed.
10733
7f2cb270
KR
10734 * config/tc-h8300.c: if a :8 is seen after an operand, fill top
10735 two bytes of any constant with 0xff:
10736
62594bd7
SC
10737Wed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10738
10739 * config/tc-m68k.c (md_pseudo_table): fix the .align thing
4f3569fa 10740 the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo.
62594bd7 10741
7f2cb270
KR
10742Wed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com)
10743
10744 * tc-m68k.c (try_index): Error if index scaling specified and
10745 assembling for an older CPU than a 68020.
10746
680227f3
KR
10747Sat Aug 1 19:10:13 1992 Ken Raeburn (raeburn@cygnus.com)
10748
10749 * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take
10750 fx_offset into account.
10751
c51ccfd5
KR
10752Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com)
10753
10754 * configure.in (mips host): Accept "ultrix" with version number.
10755
10756 * expr.c (floating_constant): Separate "=-" to avoid confusing
10757 ancient or broken compilers.
10758
10759 * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
10760 processor/opcode mismatch, so reword the error message.
10761 (md_assemble): If no CPU has been set (even if FPU/PMMU
10762 characteristics have been), default to 68020. Don't need extra
10763 quotes around error string.
10764
14f1fc24
JW
10765Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10766
10767 * read.c (potable): Revert sac's incorrect change made Jul 13.
10768 Align really is supposed to be ptwo not nbytes.
10769
10770Mon Jul 20 02:51:59 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
10771
10772 * Makefile.in: _Do_ include libiberty. (from sef)
10773
10774Fri Jul 17 15:15:28 1992 Ken Raeburn (raeburn@cygnus.com)
10775
10776 * expr.c (integer_constant): Handle "0f" and "0b" label references
10777 properly.
10778
462088b8
SC
10779Thu Jul 16 08:20:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10780
10781 * write.c (fixup_segment): if relaxing, don't do anything.
10782 * config/obj-bout.[ch] : maintain the a_relaxable file header info
10783 * config/tc-i960.c: new option -linkrelax
10784
10785Mon Jul 13 14:11:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10786
10787 * expr.c (expr): allow SEG_BSS in expressions
10788 * read.c (potable): align should be nbytes, not ptwo!
10789 * write.c (write_object_file): extra glue for new bss attributes
10790 (relax_segment): SEG_BSS is ok now
10791 * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes
10792
7f2cb270
KR
10793Mon Jul 6 17:09:32 1992 Steve Chamberlain (sac@cygnus.com)
10794
10795 * obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT
10796
462088b8
SC
10797Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
10798
10799 * configure.in: recognize m680x0 as having sun3 emulation mode for
10800 vxworks environment.
10801
10802
0b0b5dba
DHW
10803Tue Jun 30 20:25:54 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
10804
10805 * Makefile.in: Add program_suffix (parallel to program_prefix)
10806
7c2d4011
SC
10807Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10808
10809 * app.c (process_escape): new function to handle escapes the right
10810 way, (do_scrub_next_char): use new function
10811 * cond.c (s_ifdef): do ifdef/ifndef right
10812 * read.c (s_fill): make the , expressions optional like the doc
10813 says
10814 * config/tc-h8300.[ch]: better warnings
10815
90d49457
SC
10816Tue Jun 9 07:54:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10817
65bfcf2e
SC
10818 * subsegs.c (subsegs_begin): create bss0_frchainP in the same was
10819 as data0_frchainP
10820
10821 * write.c (write_object_file): various changes to handle data in
132239bf 10822 the BSS segment in much the same was as stuff in the DATA segment.
65bfcf2e 10823
7f2cb270
KR
10824 * tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do
10825 pcrel data stuff. (md_estimate_size_before_relax): when relaxing a
10826 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into
10827 the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put
10828 it into SEG_BSS
462088b8 10829
f8701a3f
SC
10830Thu Jun 4 11:59:13 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10831
10832 * expr.c(expr): allow SEG_REGISTER in expressions.
10833 * read.c(pseudo_set): register expressions can be the source of a
10834 set.
10835 * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to
10836 goto SEG_TEXT (if a.out)
10837 * write.c (write_object_file): If a.out don't use the old way for
10838 -R.
10839 * config/obj-a.out (s_sect): complain if the user tries to use a
10840 subsegment with a value which might interfere with out -R hackery.
10841 * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table
10842 rather than use ugly if tree. (init_regtable): insert register
10843 names into symbol table.
10844
ebfb4167
MT
10845Tue Jun 2 16:47:09 1992 Steve Chamberlain (sac@cygnus.com)
10846
10847 * write.c (write_object_file): keep the fix_tail clean, which
10848 fixes a bug in -R where relocations were being lost.
10849
10850Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
10851
10852 * configure.in: recognize m680x0 as having sun3 emulation mode for
10853 vxworks environment.
10854
10855Sun May 31 05:33:00 1992 david d `zoo' zuhn (zoo@cygnus.com)
10856
69cb5925 10857 * configure.in: recognize m680x0 as an m68k
ebfb4167 10858
dfd53fe9
JW
10859Thu May 28 11:22:02 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10860
10861 * configure.in: Recognize sparclite as a sparc variant.
10862
7f2cb270
KR
10863 * tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new
10864 -Asparclite flag.
10865
d312e231
SC
10866Tue May 26 16:47:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10867
10868 * config/tc-a29k.c: lint
10869 * listing.c, expr.c: patches from Andrew Smith
10870
0cca30f3
KR
10871Thu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10872
10873 * doc/Makefile.in: use m4 rather than gm4.
10874
7f2cb270
KR
10875Mon May 4 18:56:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10876
10877 * obj-coffbfd.c: use is a synonym for section, (do_relocs_for):
10878 calc the base of relocs correctly.
10879 * tc-a29k.c (parse_operand): allow expressions to be in any section.
10880
d312e231
SC
10881Mon Apr 27 13:13:31 1992 K. Richard Pixley (rich@cygnus.com)
10882
10883 * as.c, write.c: use -K rather than -k for the broken word warning
10884 option.
10885
fa493b93
RP
10886Tue Apr 21 13:35:30 1992 K. Richard Pixley (rich@cygnus.com)
10887
10888 * Makefile.in: do not print recursion lines.
10889
d96c09ed
RP
10890Wed Apr 15 21:19:31 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10891
10892 * Makefile.in: the tooldir copy of gas goes directly in tooldir.
10893
10894Tue Apr 14 14:50:22 1992 Ken Raeburn (Raeburn@Cygnus.COM)
10895
10896 * write.c (write_object_file): For b.out format, round up section
10897 start addresses to match required alignment.
10898
81484684
KR
10899Thu Apr 9 05:45:29 1992 Ken Raeburn (Raeburn@Cygnus.COM)
10900
10901 * Makefile.in (install): Install into $(tooldir)/bin, since that's
10902 where gcc looks for it.
10903
3876b4c5
SEF
10904Tue Apr 7 15:12:15 1992 Sean Eric Fagan (sef@cygnus.com)
10905
10906 * Makefile.in: Changed some lines to be less confusing for some
10907 makes.
10908
10909 * input-file.c: Conditionalize on _IOFBF, not VMS.
10910
10911 * read.c, write.c: Change a series of ifdef/elif to
10912 ifdef/else/ifdef etc.
10913
10914Fri Mar 27 12:21:16 1992 K. Richard Pixley (rich@cygnus.com)
10915
10916 * symbols.c (fb_label_init): fix sizeof to memset.
10917
95a925b8
RP
10918Fri Mar 13 15:45:44 1992 K. Richard Pixley (rich@cygnus.com)
10919
3876b4c5
SEF
10920 * Makefile.in: install the man page.
10921
95a925b8
RP
10922 * Makefile.in: pass down MAKEINFO explicitly on info.
10923
0cca30f3
KR
10924 * doc/Makefile.in: use $(MAKEINFO) not makeinfo.
10925
5d53038b
SC
10926Fri Mar 13 08:03:03 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10927
10928 * flonum-const.c: renamed flonum-konst.c to stop dos name
10929 conflict.
10930
7f2cb270
KR
10931Thu Mar 12 04:42:38 1992 K. Richard Pixley (rich@cygnus.com)
10932
10933 * tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
132239bf 10934 tc-m68k.h to te-sun3.h.
7f2cb270 10935
8c1b25e4
RP
10936Wed Mar 11 23:32:42 1992 K. Richard Pixley (rich@cygnus.com)
10937
10938 * configure.in: vxworks68 gets te-sun3.h.
10939
10940 * expr.c: remove limitation that local_labels_dollar or
10941 local_labels_fb must be < 10.
10942
10943 * symbols.c: remove local_labels_dollar, replace with a function
10944 interface for a sparse array. All users adjusted.
10945
7f2cb270
KR
10946 * te-sun3.h: add LOCAL_LABELS_DOLLAR.
10947
0cca30f3
KR
10948Sat Mar 7 00:06:25 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10949
10950 * doc/Makefile.in: commented out line for building as-all.texinfo.
10951 This is temporary.
10952
10953 * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks.
10954
8c1b25e4
RP
10955Fri Mar 6 21:57:18 1992 K. Richard Pixley (rich@cygnus.com)
10956
10957 * Makefile.in: added check target.
10958
10959Tue Mar 3 15:45:56 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10960
10961 * Makefile.in: added tooldir and program_prefix.
10962
10963Sun Mar 1 04:43:19 1992 Michael Tiemann (tiemann@cygnus.com)
10964
10965 * write.{c,h} (fix_new): Make these declarations consistent.
10966
1651b22d
MT
10967Sat Feb 29 13:59:10 1992 Michael Tiemann (tiemann@cygnus.com)
10968
10969 * Makefile.in (strerror.o): Add rule so that broken Sun make can
10970 work in subdirs.
10971
5373c439
SC
10972Wed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10973
10974 * read.c, obj-coffbfd.c : fix h8300 specific bit rot
10975
10976 * expr.c (operand): if can't work out what sort of operand it is,
10977 then look through FLT_CHARS for a hint.
10978
8c1b25e4
RP
10979Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
10980
10981 * Makefile.in, configure.in: removed traces of namesubdir,
10982 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10983 copyrights to '92, changed some from Cygnus to FSF.
10984
0cca30f3
KR
10985 * doc/Makefile.in, doc/configure.in: removed traces of namesubdir,
10986 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10987 copyrights to '92, changed some from Cygnus to FSF.
10988
f24f7577
SC
10989Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10990
14d3e47b
SC
10991 * expr.c: If an expression is single comma, then return with
10992 SEG_ABSENT rather than an error - since the sparc front end does
132239bf 10993 really strange things with things like fbge,a
14d3e47b 10994
f24f7577
SC
10995 * as.h: include bfd.h if using many sections
10996 * expr.c: LOCAL_LABELS_FB had been changed to lower case - so
10997 local labels didn't work.
10998 * listing.c (list_symbol_table): don't core dump when there's no
10999 symbol there.
11000 * write.c, write.h: call fix_new with the right number of args on
11001 the H8.
11002 * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
11003 errors nices
11004
c593cf41
SC
11005Sat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com)
11006
11007 * app.c: MRI compatibility - allow single quote to start a string.
11008 * as.c: fix typo recently introduced.
11009 * as.h : Don't include aout/reloc.h - it's not right for COFF!
11010 * expr.c: Much rewriting, to accomodate MRI syntax for
11011 expressions. Also easier to read now.
11012 * listing.c: Put back defuns
11013 * read.c: modified to accept MRI syntax, put back listing pseudo
11014 ops so that an assembler built with NO_LISTING ignores list ops
11015 rather than pukes.
11016 * write.c, write.h: fixs - only keep a reloc type in a fix if the target
11017 machine is a SPARC or a 29K.
11018 * config/obj-aout.c: added s_sect pseudo op
11019 * config/obj-coffbfd.c: lints, set the filehdr flags right and
11020 fill in the timestamp.
11021 * config/obj-coffbfd.h: Since we don't include aout/reloc.h
11022 anymore, define all the relocs which the tc-<x> bit will use so we
11023 can translate from them to the coff types.
11024 * config/tc-a29k.c: reloc_type isn't ane enum any more
11025 * config/tc-m68k.c: Added NO_RELOC definition.
11026
2d97273c
RP
11027Fri Feb 21 06:21:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11028
c593cf41
SC
11029 * Makefile.in: put header files before C source for TAGS; remove
11030 references to non-existent syscalls.h.
11031
2d97273c
RP
11032 * read.c, write.c subsegs.c: back out the .bss changes.
11033
7f2cb270
KR
11034 * obj-aout.c: do not include stab.gnu.h if NO_LISTING.
11035
11036 * tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place.
11037
11038 * a.out.h: removed.
11039
6d5460ab
RP
11040Fri Feb 21 01:08:48 1992 Minh Tran-Le (TRANLE@INTELLICORP.COM)
11041
11042 * symbols.c (local_label_name): symbols now start with ^A.
11043
11044 * read.c, subsegs.c, write.c obj-coff.c: added handling of
11045 `.bss` pseudo op for unitialized data. The new gcc (1.37.9x)
11046 generate these sections. .align: will use NOP_OPCODE or 0
11047 for padding. This is just for being nice to the
11048 disassembler.
11049
11050 * expr.c (operand): changed to generate local label "\001L0"
11051 starting with a ^A so that it is recognized as a local label.
11052
11053 * as.c (perform_an_assembly_pass): zero bss_fix_root, too.
11054
7f2cb270
KR
11055 * tc-i386.c: tc-i386.c: added handling of the following opcodes:
11056 i/o opcodes - inb, inw, outb and outw. string manipulation with
11057 att syntax - scmp, slod, smov, ssca, ssto.
11058
11059 * obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss
11060 to just after .file .
11061
11062 In obj_crawl_symbol_chain() where it tries to put the external
11063 symbols apart, with the condition:
11064 (!S_IS_DEFINED(symbolP) &&
11065 !S_IS_DEBUG(symbolP) &&
11066 !SF_GET_STATICS(symbolP))
11067 it was moving too many symbols out. So I switch it back to the
11068 condition:
11069 (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP))
11070
11071 In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO
11072 so that we don't use the F_RELFLG which make the linker complain
11073 that somebody has stripped the relocation info.
11074
11075 Also, the AIX ld program require that the relocation table
11076 is sorted by r_vaddr like the standard ATT assembler does.
11077
11078 [he also changed the sizeof(struct ...)'s into the coff
11079 style FOOSZ macros. I'm not sure this is right, but I can't
11080 remember why. xoxorich.]
11081
d6e344db
RP
11082Fri Feb 21 01:08:48 1992 K. Richard Pixley (rich@cygnus.com)
11083
11084 * Makefile.in, configure.in, doc: use the doc. Build it, install
11085 it, clean it, etc.
11086
eb9eacd3
RP
11087Tue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com)
11088
aa3782d2
RP
11089 * read.c: white space and comments only.
11090
f816adbc
RP
11091 * configure.in: use the new atof-ns32.c for ns32k.
11092
eb9eacd3
RP
11093 * write.c: comment change only.
11094
7f2cb270
KR
11095 * tc-m88k.[hc]: pulled in from hack's unfinished work. These
11096 aren't yet integrated.
11097
11098 * tc-i860.[hc]: blew off the dust. Something must still be done
11099 about conflicting relocation types.
11100
11101 * tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the
11102 real thing.
11103
11104 * tc-i960.c, tc-sparc.c: white space and comments only.
11105
11106 * tc-a29k.h: delete duplicate macro definition.
11107
11108 * new file atof-ns32k.c copied from hack's last unreleased gas.
11109
542e1629 11110Mon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com)
b3ca913f 11111
eb9eacd3
RP
11112 * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work
11113 rather than abort.
132239bf 11114
542e1629
RP
11115 * nearly everything. flush ChangeLog, package as gas-1.92.1.
11116 ChangeLog's prior to this are sketchy at best. I have logs.
11117 They just aren't ChangeLogs.
33e61c95
ILT
11118
11119\f
11120Local Variables:
de442a3c
ILT
11121mode: indented-text
11122left-margin: 8
11123fill-column: 74
33e61c95
ILT
11124version-control: never
11125End:
This page took 0.656265 seconds and 4 git commands to generate.