]> Git Repo - binutils.git/blame - gas/ChangeLog
* config.guess: Merge with FSF:
[binutils.git] / gas / ChangeLog
CommitLineData
c7d7eed0
MM
1Fri Aug 11 13:23:56 1995 Michael Meissner <[email protected]>
2
3 * write.h (struct fix): Add new field fx_no_overflow.
4
5 * write.c (fixup_segment): If fx_no_overflow is non-zero, don't
6 complain if the addend is too large.
7
8 * config/tc-ppc.c (md_assemble): Set fx_no_overflow if the half
9 word relocations BFD_RELOC_{LO16,HI16,HI16_S}.
10
12a065ee
KR
11Thu Aug 10 20:56:38 1995 Ken Raeburn <[email protected]>
12
13 * read.c (s_mri_sect) [BFD_ASSEMBLER]: Fix typos in choosing and
14 setting section flags.
15
a920b693
ILT
16Thu Aug 10 00:38:11 1995 Ian Lance Taylor <[email protected]>
17
79e15b8a
ILT
18 * doc/as.texinfo: Add documentation for MRI compatibility mode.
19 * doc/as.1: Likewise.
20
336435bc
ILT
21 * config/tc-m68k.c (m68k_ip): When recognizing '#', use isbyte and
22 iword rather than expr8 and expr16. When recognizing 'M', use
23 issbyte rather than expr8. When recognizing 'Q' and 't', just
24 check for O_constant rather than using expr8.
25 * config/m68k-parse.h (expr8, expr16): Don't define.
26 * Makefile.in (m68k-parse.o): Depend upon m68k-parse.h, not
27 m68k-parse.y.
28
e14994d9
ILT
29 * read.c (potable): Add spc, ttl, xcom, xref.
30 (s_mri_sect): New function.
31 * read.h (s_mri_sect): Declare.
32 * config/obj-coff.c (obj_coff_section) (both versions): In MRI
33 mode, call s_mri_sect.
34 (obj_pseudo_table): Add sect.s and section.s. Move sect outside
35 of ifndef BFD_ASSEMBLER.
36 * config/obj-elf.c (elf_pseudo_table): Add section.s, sect,
37 sect.s.
38 (obj_elf_section): In MRI mode, call s_mri_sect.
39 * config/tc-m68k.c (md_pseudo_table): Add restore, save.
40 (struct save_opts): Define.
41 (save_stack): New static variable.
42 (s_save, s_restore): New static functions.
43
a920b693
ILT
44 * read.c (s_set): Remove unused local ptr.
45 (hex_float): Check target_big_endian.
46 (equals): Remove unused local p.
e14994d9 47
a920b693
ILT
48 * config/tc-a29k.h (TARGET_BYTES_BIG_ENDIAN): Define.
49 * config/tc-h8500.h (TARGET_BYTES_BIG_ENDIAN): Define.
50 * config/tc-hppa.h (TARGET_BYTES_BIG_ENDIAN): Define.
51 * config/tc-i860.h (TARGET_BYTES_BIG_ENDIAN): Define.
52 * config/tc-m68k.h (TARGET_BYTES_BIG_ENDIAN): Define.
53 * config/tc-m88k.h (TARGET_BYTES_BIG_ENDIAN): Define.
54 * config/tc-tahoe.h (TARGET_BYTES_BIG_ENDIAN): Define.
55 * config/tc-sh.c (little): Set target_big_endian.
56 (md_begin): Likewise.
57 (md_parse_option): Likewise.
58 (build_relax): Check target_big_endian rather than shl.
59 (build_Mytes, md_atof): Likewise.
60 (md_convert_frag, md_apply_fix): Likewise.
61 (md_number_to_chars): Likewise.
62
286cb27a
ILT
63Wed Aug 9 10:51:48 1995 Ian Lance Taylor <[email protected]>
64
6700d36e
ILT
65 * config/tc-m68k.c (m68k_abspcadd): New static variable.
66 (m68k_quick): New static variable.
67 (m68k_rel32): New static variable.
68 (md_pseudo_table): Add opt and reg.
69 (m68k_ip): Permit absolute symbols in 'l'/'L' recognition. Check
70 m68k_quick in 'M' and 'Q' recognition. Check m68k_abspcadd in
71 DISP handling. Check m68k_rel32 in BASE/POST/PRE handling.
72 (md_begin): In MRI mode, initialize m68k_abspcadd and m68k_rel32.
73 In MRI mode, change unsized branch aliases to be variable sized.
74 (struct opt_action): Define.
75 (opt_table): Define.
76 (s_opt): New static function.
77 (skip_to_comma): New static function.
78 (opt_chip): New static function.
79 (opt_list): New static function.
80 (opt_list_symbols): New static function.
81 (s_reg): New static function.
82 * as.h (flag_keep_locals): Change from unsigned char to int.
83 (flag_no_warnings): Likewise.
84
85 * read.c (mri_line_label): Make non-static.
86 (potable): Add nopage, page, plen.
87 (s_org): Error if in MRI mode.
88 * read.h (mri_line_label): Declare.
89 * listing.c (listing_nopage): New function.
90 * listing.h (listing_nopage): Declare.
91
92 * symbols.c (symbol_begin): Set sy_frag of abs_symbol to
93 &zero_address_frag.
94
e28c40d7
ILT
95 * write.c (adjust_reloc_syms): Check that symbol is not NULL
96 before checking sy_mri_common.
97 (fixup_segment): Likewise.
98 * config/obj-coff.c (fixup_segment): Likewise.
99
100 * read.c (abs_section_offset): New global variable.
101 (potable): Add offset, struct.
102 (do_org): New static function; handle changing the origin in the
103 absolute section.
104 (s_org): Use do_org.
105 (s_set): Likewise.
106 (equals): Likewise.
107 (s_space): In absolute_section, just increase abs_section_offset.
108 (s_struct): New function.
109 (emit_expr): Handle absolute_section specially.
110 * read.h (abs_section_offset): Declare.
111 (s_struct): Declare.
112 * frags.c (frag_more): Warn if in absolute_section.
113 (frag_now_fix): In absolute_section, return abs_section_offset.
114 * subsegs.c (subseg_change): If switching to absolute_section,
115 just set now_seg and now_subseg.
116 (subseg_set_rest): Special handling when switching to or from
117 absolute_section.
118
119 * config/tc-m68k.c (m68k_float_copnum): New static variable.
120 (md_pseudo_table): Add fopt and mask2.
121 (m68k_ip): Use m68k_float_copnum, not COPNUM, when setting
122 coprocessor register to use. In case 'I' when checking operands,
123 correct coprocessor register numbers. In case 'I' when setting
124 operands, don't add 1.
125 (s_fopt): New static function.
126 * config/m68k-parse.h (COPNUM): Don't define.
127
128 * read.c (potable): Add ifeq, ifge, ifgt, ifle, iflt, ifne.
129 Change if to pass O_ne to s_if.
130 (read_a_source_file): Don't define an label without a colon if
131 ignore_input returns true.
132 * cond.c (s_if): Treat argument as an operatorT describing how to
133 compare the argument against zero.
134 (ignore_input): Don't require an initial dot in MRI mode, or if
135 NO_PSEUDO_DOT is defined.
136
137 * read.c (potable): Add dcb, dcb.b, dcb.d, dcb.l, dcb.s, dcb.w,
138 dcb.x, ds.d, ds.p, ds.s, ds.x, elsec, endc, fail, format, llen,
139 noformat.
140 (read_a_source_file): If pseudo-op handler is s_end, quit
141 immediately.
142 (s_end): New function.
143 (s_fail): New function.
144 (s_float_space): New function.
145 (hex_float): New static function.
146 (float_cons): Use hex_float.
147 * read.h (s_fail): Declare.
148 (s_float_space): Declare.
149 * cond.c (s_end): Remove.
150 * listing.c (listing_psize): Treat argument as indicating whether
151 a height is expected.
152
99ca35f1
ILT
153 * read.c (mri_pending_align): New static variable.
154 (read_a_source_file): Handle mri_pending_align.
155 (cons): Set mri_pending_align if appropriate.
156
286cb27a
ILT
157 * configure.in: Move random special target handling before
158 possible break.
159 * configure: Rebuild.
160
bf4bd1fc
ILT
161Tue Aug 8 23:41:25 1995 Alan Modra <[email protected]>
162
163 * configure.in: Consistently use ${target_cpu_type} rather than
164 ${cpu_type} after the loop.
165 * configure: Rebuild.
166 * Makefile.in (targ-cpu.o): Use @target_cpu_type@ rather than
167 @cpu_type@.
168
3b85367c
KR
169Tue Aug 8 17:27:17 1995 Ken Raeburn <[email protected]>
170
14d0c9fe
KR
171 * expr.h (operatorT): Remove comma after last enumerator value.
172
173 * config/obj-vms.c: Some whitespace cleanup from Pat Rankin.
bdc82d81
KR
174
175 Wed Aug 2 18:54:37 1995 Pat Rankin <[email protected]>
176
177 * config/obj-vms.c (Flush_VMS_Object_Record_Buffer,
178 Close_VMS_Object_File): Reorganize the `#if !VMS' cross-assmebler
179 support code.
180 (Close_VMS_Object_File): Call Set_VMS_Object_File_Record to flush
181 output buffer--just in case--before closing the file.
182
3b85367c
KR
183 * as.h (alloca): If __STDC__, declare void* instead of char*.
184
48bfed03
ILT
185Tue Aug 8 13:07:05 1995 Ian Lance Taylor <[email protected]>
186
e9bb39b4
ILT
187 * config/tc-m68k.c (archs): Add 68ec000, 68hc000, 68hc001,
188 68ec020, 68ec030, 68ec040, and 68330.
189 (md_pseudo_table): Add chip and comline.
190 (m68k_init_after_args): Use strcasecmp when comparing default_cpu
191 against architectures.
192 (mri_chip, s_chip): New static functions.
193
1356d77d
ILT
194 * struc-symbol.h (struct symbol): Add sy_mri_common bit.
195 * read.h (mri_comon_symbol): Declare.
196 (s_mri_common): Declare.
197 * read.c (mri_line_label): New static variable.
198 (mri_common_symbol): New global variable.
199 (potable): Add "common" and "common.s".
200 (read_a_source_file): In MRI mode, set mri_line_label for a label
201 at the start of a line.
202 (s_mri_common): New function.
203 (s_space): Handle mri_common_symbol.
204 * symbols.c (colon): Change return value from void to symbolS *,
205 and return new symbol. If mri_common_symbol is set, attach the
206 new symbol to it.
207 (resolve_symbol_value): Handle an sy_mri_common symbol.
208 * symbols.h (colon): Change return value in declaration.
209 * subsegs.c (subseg_set_rest): Clear mri_common_symbol.
210 (subseg_set (both versions)): Likewise.
211 * frags.c (frag_more): Warn if mri_common_symbol is not NULL.
212 * write.c (adjust_reloc_syms): Skip sy_mri_common symbols.
213 (write_object_file): Discard sy_mri_common symbols.
214 (fixup_segment): Change relocations against sy_mri_common symbols
215 to be against the common symbol itself.
216 * config/obj-coff.c (yank_symbols): Discard sy_mri_common symbols.
217 (fixup_segment): Change relocations against sy_mri_common symbols
218 to be against the common symbol itself.
219 * config/obj-aout.c (obj_crawl_symbol_chain): Discard
220 sy_mri_common symbols.
221
c266c384
ILT
222 * doc/c-m68k.texi: Add documentation for CPU specific options, and
223 for Motorola syntax.
224
48bfed03
ILT
225 * config/m68k-parse.y (motorola_operand): For (%pc), set mode to
226 DISP, not BASE.
227
d4083e29
KR
228Tue Aug 8 02:31:38 1995 Ken Raeburn <[email protected]>
229
230 * write.c (relax_align): Add extra padding for linkrelax only if
231 LINKER_RELAXING_SHRINKS_ONLY is defined.
232 * config/tc-i960.h (LINKER_RELAXING_SHRINKS_ONLY): Define it.
233 * doc/internals.texi (Relaxation): Write up some stuff on linker
234 relaxing and LINKER_RELAXING_SHRINKS_ONLY.
235
a1c7c0f3
ILT
236Mon Aug 7 17:18:10 1995 Ian Lance Taylor <[email protected]>
237
238 * config/m68k-parse.y: New file: bison grammar for m68k operands,
239 including support for Motorola syntax.
240 * config/m68k-parse.h: New file; definitions shared between
241 m68k-parse.y and tc-m68k.c.
242 * config/tc-m68k.c: Include m68k-parse.h.
243 (enum operand_type): Move to m68k-parse.h, where it is named
244 m68k_operand_type. Rename all uses. Rearrange somewhat. Add
245 FPREG. Rename AOFF to DISP. Rename AINDX to BASE. Rename APODX
246 to POST. Rename APRDX to PRE. Remove AMIND. Rename MSCR to
247 CONTROL. Remove DINDR.
248 (struct m68k_exp): Move to m68k-parse.h. Remove e_beg, e_end and
249 e_seg fields. Rename e_exp to exp. Rename e_siz to size, and
250 change type to enum m68k_size. Change all uses.
251 (enum _register): Move to m68k-parse.h, where it is named
252 m68k_register. Rename all uses. Add ZDATA0-7 and ZADDR0-7.
253 (struct m68k_op): Move to m68k-parse.h. Change all fields.
254 (seg): Don't define.
255 (add_exp): Remove.
256 (FAIL, OK): Remove.
257 (m68k_reg_parse): Move to m68k-parse.y, and rewrite.
258 (SKIP_WHITE, SKIP_W): Remove.
259 (try_moto_index, try_index): Remove.
260 (m68k_ip_op): Move to m68k-parse.y, and rewrite to use grammar.
261 (main): Remove obsolete test function.
262 (m68k_ip): Extensive changes to use new grammar.
263 (get_regs): Remove.
264 (crack_operand): m68k_ip_op now returns 0 on success.
265 (init_table): Add ssp, zd0-7 and za0-7.
266 (md_assemble): Make er const. Correct loop over operands when
267 looking for error message.
268 (md_begin): Set alt_notend_table for '(' and '@'.
269 (get_num): Expression is already parsed. Don't set seg.
270 * configure.in: If cpu_type is m68k, put m68k-parse.o in
271 extra-objects.
272 * configure: Rebuild.
273 * Makefile.in (DISTSTUFF): Add m68k-parse.c.
274 (BISON): Use ../bison/bison if it exists.
275 (BISONFLAGS): Define as empty.
276 (TARG_CPU_DEP_m68k): Depend upon $(srcdir)/config/m68k-parse.h.
277 (m68k-parse.c, m68k-parse.o): New targets.
278
68d04794
JL
279start-sanitize-sh3e
280Mon Aug 7 02:54:20 1995 Jeff Law ([email protected])
281
282 * config/tc-sh.c (parse_reg): Handle new FP registers.
283 (get_specific): Handle new operand types.
284
285end-sanitize-sh3e
286Fri Aug 4 12:29:21 1995 Ian Lance Taylor <[email protected]>
287
288 * expr.c (op_encoding): Make non-const. Don't set '"' to
289 O_bit_not.
290 (expr_begin): Set op_encoding['"'] in MRI mode.
291
86b58ca2
ILT
292Wed Aug 2 18:39:43 1995 Ian Lance Taylor <[email protected]>
293
294 * config/tc-m68k.c: Remove BREAK_UP_BIG_DECL stuff.
295 (struct m68k_incant): Change m_operands field to be const.
296 (struct m68k_it): Change args field to be const.
297 (m68k_ip): Change local variable s to be const.
298 (opcode_ptr): Remove.
299 (md_begin): Use m68k_numopcodes, not numopcodes. Use
300 m68k_opcodes, not removed opcode_ptr. Use m68k_numaliases, not
301 numaliases.
302
219deb70
ILT
303Tue Aug 1 17:35:26 1995 Ian Lance Taylor <[email protected]>
304
305 * config/tc-m68k.c (init_table): Add "control", "status", "iaddr",
306 "sfcr", and "dfcr" as synonyms for existing entries.
307 (md_begin): In MRI mode, force flag_reg_prefix_optional to 1.
308 (md_parse_option): Removed unused locals i and arch. Change type
309 of arch (another one) to unsigned long.
310 (tc_coff_sizemachdep): Add return after abort to avoid warning.
311
312 Initial support for MRI style labels and expressions.
313 * as.h (flag_mri): Declare/define.
314 * as.c (show_usage): Mention -M and its synonym --mri.
315 (parse_args): Add 'M' to std_shortopts. Add "mri" to
316 std_longopts. Set flag_mri if -M is seen.
317 (main): Call parse_args before input_scrub_begin. Call
318 expr_begin.
319 * app.c (do_scrub_begin): Don't set lex for '"' or '\'' in MRI
320 mode. Do set lex for ';', '*', and '!' in MRI mode.
321 (do_scrub_next_char): Remove MRI ifdef in LEX_IS_WHITESPACE case.
322 In MRI mode, keep spaces between labels and colons. Remove MRI
323 ifndef around LEX_IS_ONECHAR_QUOTE case. In MRI mode, don't use
324 '!' or '*' as comment characters even if they are in
325 comment_chars.
326 * read.h (lex_type): No longer const.
327 * read.c: Include libiberty.h.
328 (lex_type): No longer const.
329 (read_begin): In MRI mode, set lex_type of '?' to 3.
330 (potable): Add dc, dc.b, dc.d, dc.l, dc.s, dc.w, dc.x, ds, ds.b,
331 ds.l, ds.w, and xdef.
332 (read_a_source_file): Change LABELS_WITHOUT_COLON ifdef to check
333 for MRI mode at runtime rather than compile time. Handle the EQU
334 pseudo-op in MRI mode. Remove bogus MRI ifdef around done_pseudo.
335 Change NO_PSEUDO_DOT ifdef to also take effect for MRI mode at
336 runtime.
337 (cons): In MRI mode, always call parse_mri_cons rather than
338 TC_PARSE_CONS_EXPRESSION.
339 (parse_mri_cons): Always compile, not just when MRI is defined.
340 Call TC_PARSE_CONS_EXPRESSION, not expression, when the input is
341 not a string constant. Handle A and E modifiers.
342 (float_cons): Accept :xxxx, where the x's are hex digits.
343 * expr.h (operatorT): Add O_eq, O_ne, O_lt, O_le, O_ge, O_gt.
344 (expr_begin): Declare.
345 * expr.c (integer_constant): In MRI mode, if the base was not
346 specified, look for a suffix on the number to set the base.
347 (mri_char_constant): New static function.
348 (operand): Remove MRI ifdef. In MRI mode, do various things: Pass
349 0 as the base when calling integer_constant if there was no
350 prefix. Check for a hex constant suffix if when a leading '0' is
351 seen. Don't accept 0x or 0b as a prefix. Check for E'chars' and
352 A'chars'. Handle MRI character constants. Treat '"' as the
353 unary bitwise not operator. Treat $ as the program counter, or as
354 the prefix for a hex constant. Treat % as the prefix for a binary
355 constant and @ as the prefix for an octal constant. Treat : as
356 the prefix for a hex constant.
357 (op_encoding): Set '"' to O_bit_not, '<' to O_lt, and '>' to O_gt.
358 (op_rank): No longer const. Change rank values.
359 (expr_begin): New function.
360 (operator): New static function.
361 (expr): Use operator. Don't bother to mention the operator in
362 warnings. Remove bogus #if 0 code. Handle new operatorT values.
363 * atof-generic.c (atof_generic): In MRI mode, accept underscores
364 around the exponent in floating point numbers.
365 * symbols.h (symbols_case_sensitive): Declare.
366 * symbols.c (symbols_case_sensitive): New global variable.
367 (symbol_create): Check symbols_case_sensitive.
368 (symbol_find_base): Likewise.
369 (resolve_symbol_value): Handle new operatorT values.
370 (print_expr_1): Likewise.
371 (S_IS_LOCAL): In MRI mode, names beginning with two '?' characters
372 are local.
373
b97bd7d1
SC
374Tue Aug 1 11:35:18 1995 steve chamberlain <[email protected]>
375
376 * tc-sh.c (md_convert_frag): Make some error messages more
377 explict.
378
ac24997f
KR
379Mon Jul 31 21:40:47 1995 Ken Raeburn <[email protected]>
380
381 Sat Jul 29 18:55:23 1995 Pat Rankin <[email protected]>
382
383 * config/obj-vms.c (COPY_SHORT, COPY_LONG, PUT_SHORT, PUT_LONG):
384 Make expansion be safe for use in expressions.
385 (PUT_COUNTED_STRING): Bracket expansion with `do {...} while (0)'
386 rather than just `{...}'.
387
5f57cea3
SC
388Mon Jul 31 18:19:26 1995 steve chamberlain <[email protected]>
389
4f2f3011
SC
390 * gasp.c (main): Parse -I option.
391 (do_include): Look through include list.
392 * gasp.c (change_base): Don't modify numbers in strings.
393 (pr7583)
394
f641906b
KR
395Mon Jul 31 12:16:21 1995 Ian Lance Taylor <[email protected]>
396
397 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Define. From Niclas
398 Andersson <[email protected]>.
399
400Thu Jul 27 20:47:12 1995 Ken Raeburn <[email protected]>
401
402 * config/obj-coff.c (fixup_segment): Don't do further pcrel
403 processing after converting difference of two symbols in the
404 same segment. From Jim Wilson.
405
406 * configure.in (i386-*-linuxoldld): Add as synonym for
407 i386-*-linux*aout*. From Fred Fish.
408 * configure: Regenerated.
409
5700b874
KR
410Thu Jul 27 16:14:56 1995 Pat Rankin <[email protected]>
411
412 * config/obj-vms.c (enum ps_type {ps_TEXT,ps_DATA,ps_COMMON,
413 ps_CONST}): New constants.
414 (VMS_Psect_Spec): Use them instead of literal strings.
415 (vms_write_object_file, global_symbol_directory): Adjust callers.
416
417Wed Jul 26 18:31:35 1995 Pat Rankin <[email protected]>
418
419 * config/obj-vms.c (const_flag): Change from char to unsigned char.
420 * config/obj-vms.h (const_flag): Ditto.
421 (struct nlist): Replace union n_un and n_un.{n_name,n_next,n_strx}
422 fields with just n_name; delete field n_value; change n_other from
423 char to unsigned char and n_desc from short to int; insert explicit
424 padding for alignment.
425
a619d6d9
KR
426Mon Jul 24 20:06:17 1995 Ken Raeburn <[email protected]>
427
428 * subsegs.h (struct seg_info_trash): Make bitfield types valid.
429
430 * config/obj-coff.c (fixup_segment): Local add_number should not
431 be declared register since its address is taken for
432 MD_APPLY_FIX3.
433
5700b874
KR
434 Fri Jul 21 15:28:18 1995 Pat Rankin <[email protected]>
435
436 Split huge vms_write_object_file routine into managable pieces.
437
438 * config/obj-vms.c (vms_fixup_text_section, synthesize_data_segment,
439 vms_fixup_data_section, global_symbol_directory, local_symbols_DST,
440 vms_build_DST): New routines.
441 (vms_write_object_file): Call them.
442 (struct vms_obj_state): New file scope variable used by the above.
443
a91c6b08
ILT
444Mon Jul 24 14:10:24 1995 Ian Lance Taylor <[email protected]>
445
446 * config/tc-sh.c (md_pseudo_table): Add "uses".
447 (s_uses): New static function.
448 (sh_coff_frob_file): New function.
449 (md_convert_frag): Call subseg_change before calling fix_new.
450 (sh_handle_align): New function.
451 (SWITCH_TABLE): Define.
452 (sh_force_relocation): New function.
453 (md_apply_fix): Handle R_SH_USES, R_SH_COUNT and R_SH_ALIGN.
454 (sh_coff_reloc_mangle): Likewise. Also handle switch table
455 entries.
456 * config/tc-sh.h (HANDLE_ALIGN): Define.
457 (sh_handle_align): Declare.
458 (TC_FORCE_RELOCATION): Define.
459 (sh_force_relocation): Declare.
460 (TC_COUNT_RELOC): Simplify; rely on TC_FORCE_RELOCATION instead.
461 (tc_frob_file): Define.
462 (sh_coff_frob_file): Declare.
463 * config/obj-coff.c (write_object_file): Call tc_frob_file if it
464 is defined.
465 (fixup_mdeps): Call HANDLE_ALIGN if it is defined.
466 (TC_FORCE_RELOCATION): Define if not defined.
467 (fixup_segment): Use TC_FORCE_RELOCATION to decide whether to
468 clear the symbol fields of fixP.
469
470Fri Jul 21 22:38:00 1995 Michael Meissner <[email protected]>
471
472 * config/tc-ppc.c (ppc_elf_suffix): Add support for R_PPC_SDAREL
473 relocation.
474 (md_apply_fix3): Ditto.
475
9d249d34
KR
476Thu Jul 20 13:00:56 1995 Ken Raeburn <[email protected]>
477
478 * config/tc-m68k.c (md_convert_frag): Rename argument seg to sec,
479 since seg is a macro name in this file.
480
5a929558
KR
481 * configure.in (arm-*-riscix*): Don't set emulation.
482
d0ac7e70
DE
483Wed Jul 19 16:08:29 1995 Doug Evans <[email protected]>
484
485 * config/obj-coff.h (TE_PE): Delete.
486 * config/tc-arm.h (BYTE_ORDER): Delete.
487 (TARGET_FORMAT): Provide value for OBJ_COFF and TE_PE.
488 (ARM_BI_ENDIAN): Define if OBJ_COFF and TE_PE.
489 * config/tc-arm.c (byte_order): Delete.
490 (md_number_to_chars): Reference target_big_endian, not byte_order.
491 (md_chars_to_number): Likewise.
492 (md_longopts): Add -EB/-EL if ARM_BI_ENDIAN.
493 (md_parse_options): Recognize -EB/-EL.
494 (md_show_usage): List -EB/-EL.
495
5f8cb05e
ILT
496Wed Jul 19 11:49:25 1995 Ian Lance Taylor <[email protected]>
497
fe98e22d
ILT
498 * gasp.c (process_assigns): Use toupper before comparing against
499 upper case letter.
500 (whatcond): Likewise.
501
5f8cb05e
ILT
502 * config/tc-sh.c (sh_relax): Rename from relax, and make global.
503 Renamed all uses.
504 (insert): Pass a size of 2, not 4.
505 (build_relax): Remove unused len variable.
506 (md_show_usage): Mention -little option.
507 (md_convert_frag): Add segT argument. Rewrite to generate relocs
508 rather than to generate complete instructions here.
509 (md_apply_fix): Adjust and clarify R_SH_PCRELIMM8BY4 case for
510 changes in insert and md_pcrel_from. Add cases for R_SH_PCDISP
511 and R_SH_PCDISP8BY2.
512 (md_pcrel_from): Don't subtract 1, add 2.
513 (tc_coff_fix2rtype): Remove.
514 (sh_coff_reloc_mangle): New function.
515 * config/tc-sh.h (TC_COFF_FIX2RTYPE): Just return fx_r_type.
516 (sh_relax): Declare.
517 (TC_COUNT_RELOC): If relaxing, count PC relative relocs.
518 (TC_RELOC_MANGLE): Define.
519 (sh_coff_reloc_mangle): Declare.
520 (tc_coff_sizemachdep): Declare.
521 * tc.h (md_convert_frag): Add segT parameter to non BFD_ASSEMBLER
522 declaration.
523 * write.c (cvt_frag_to_fill): Add sec argument to non
524 BFD_ASSEMBLER version. Pass it to md_convert_frag.
525 (write_object_file): Pass SEG_TEXT to cvs_frag_to_fill.
526 * config/obj-coff.c (do_relocs_for): Pass segment info to
527 TC_RELOC_MANGLE.
528 (fixup_mdeps): Pass segment type to md_convert_frag.
529 * config/tc-a29k.c (md_convert_frag): Add segT argument.
530 * config/tc-h8300.c (md_convert_frag): Likewise.
531 * config/tc-h8500.c (md_convert_frag): Likewise.
532 * config/tc-i386.c (md_convert_frag): Likewise.
533 * config/tc-i860.c (md_convert_frag): Likewise.
534 * config/tc-i960.c (md_convert_frag): Likewise.
535 * config/tc-m68k.c (md_convert_frag): Likewise.
536 * config/tc-m88k.h (md_convert_frag): Likewise.
537 * config/tc-ns32k.c (md_convert_frag): Likewise.
538 * config/tc-rce.c (md_convert_frag): Likewise.
539 * config/tc-tahoe.c (md_convert_frag): Likewise.
540 * config/tc-vax.c (md_convert_frag): Likewise.
541 * config/tc-w65.c (md_convert_frag): Likewise.
542 * config/tc-z8k.c (md_convert_frag): Likewise.
543 * config/tc-h8300.h (TC_RELOC_MANGLE): Add segment argument.
544 * config/tc-h8500.h (TC_RELOC_MANGLE): Likewise.
545 * config/tc-rce.h (TC_RELOC_MANGLE): Likewise.
546 * config/tc-w65.h (TC_RELOC_MANGLE): Likewise.
547 * config/tc-z8k.h (TC_RELOC_MANGLE): Likewise.
548
549Mon Jul 17 15:02:54 1995 Pat Rankin <[email protected]>
550
551 * config/obj-vms.c (Current_Routine, Text_Psect): Delete as file
552 scope variables.
553 (Define_Routine, Define_Local_Symbols): Take Current_Routine and
554 Text_Psect as arguments.
555 (VMS_DBG_Define_Routine): Delete.
556 (VMS_TBT_Block_End): Change `Size' argument from int to valueT.
557 (vms_write_object_file: text and data fixup loops): Difference
558 of two symbols has type offsetT rather than int; convert with
559 md_number_to_chars before passing to VMS_Store_Immediate_Data.
560 (vms_write_object_file: debug symbol loop): Call Define_Routine
561 instead of VMS_DBG_Define_Routine.
562
fadd4ee1
MM
563Sat Jul 15 00:01:35 1995 Michael Meissner <[email protected]>
564
565 * config/tc-ppc.c (ppc_elf_suffix): Add @fixup so that the
566 compiler can mark which relocs not to complain about with
567 -mrelocatable.
568 (ppc_elf_validate_fix): Add .fixup to sections not to complain
569 about, and also don't complain for BFD_RELOC_CTOR relocations in
570 writable non-code segments.
571 (md_apply_fix): Treat BFD_RELOC_CTOR just like BFD_RELOC_32.
572
88f4ab5f
ILT
573Fri Jul 14 19:54:28 1995 Ian Lance Taylor <[email protected]>
574
575 Add support for SPARC SunOS PIC:
576 * config/tc-sparc.h (sparc_pic_code): Always declare, not just
577 when OBJ_ELF.
578 (TC_RELOC_RTSYM_LOC_FIXUP): Define when OBJ_AOUT.
579 (tc_fix_adjustable): New definition for OBJ_AOUT.
580 * config/tc-sparc.c (sparc_pic_code): Always define, not just when
581 OBJ_ELF.
582 (md_apply_fix): Adjust reloc addend for OBJ_AOUT and PIC. In
583 BFD_RELOC_32_PCREL_S2 case, don't increment val for an external
584 symbol when PIC.
585 (tc_gen_reloc): Generate different PIC relocs when OBJ_AOUT, as
586 well as when OBJ_ELF.
587 (md_shortopts): If OBJ_AOUT, include `k'.
588 (md_parse_option): If OBJ_AOUT, handle 'k'.
589 (md_show_usage): Mention -k if OBJ_AOUT, and -KPIC if OBJ_ELF.
590 (md_pcrel_from): Don't add in size for an external symbol when
591 PIC.
592
403d21d2
DE
593start-sanitize-arc
594Fri Jul 14 10:26:43 1995 Doug Evans <[email protected]>
595
596 * config/tc-arc.c (byte_order): Provide explicit initial value.
597end-sanitize-arc
598
4575a69d
JL
599Thu Jul 13 21:16:43 1995 Jeff Law ([email protected])
600
601 * config/tc-hppa.h (UNDEFINED_DIFFERENCE_OK): Define for SOM.
602 * write.c (adjust_reloc_syms): Set sy_used_in_reloc for both
603 symbols in a fixup where a defined symbol is subtracted from an
604 undefined symbol (when UNDEFINED_DIFFERENCE_OK is defined).
605 (fixup_segment): Do nothing for the difference of two symbols if
606 UNDEFINED_DIFFERENCE_OK is defined.
607
ac7530a8
ILT
608Wed Jul 12 23:33:40 1995 Ian Lance Taylor <[email protected]>
609
610 * config/obj-coff.c (fixup_segment): Support MD_APPLY_FIX3.
611
f7da4a99
KR
612Wed Jul 12 01:12:12 1995 Ken Raeburn <[email protected]>
613
614 * write.c (fix_new): Use int, not short int, for argument type.
615 (fix_new_exp): Ditto.
616
617 * configure.in (arm-*-riscix*): Don't set emulations.
618
619 * config/tc-mips.c (NO_ECOFF_DEBUGGING): Define if ECOFF_DEBUGGING
620 wasn't previously defined.
621 (s_extern): Don't set ecoff_extern_size if NO_ECOFF_DEBUGGING.
622 (nopic_need_relax): Don't check it if NO_ECOFF_DEBUGGING.
623 (macro_build) [!USE_STDARG]: Don't use variadic prototype.
624 (mips_local_label) [NO_ECOFF_DEBUGGING]: Don't preserve potential
625 ECOFF debugging symbols.
626
627 * emul.h (struct emulation): Use unsigned, not unsigned char, for
628 bitfields.
629 * obj.h (struct format_ops): Likewise.
630
631 * config/tc-arm.c (symbol_make_empty) [BFD_ASSEMBLER]: Set
632 udata.p, not udata.
633
6804bd6c
ILT
634Tue Jul 11 14:30:19 1995 Ian Lance Taylor <[email protected]>
635
636 * doc/c-mips.texi: Document -m4010 and -mno-4010.
637
638Tue Jul 11 14:28:55 1995 Jeff Spiegel <[email protected]>
639
640 * config/tc-mips.c (mips_4010): New static variable.
641 (interlocks): New static variable.
642 (md_begin): Check for a cpu of "r4010". Set mips_4010 correctly.
643 If mips_4650 or mips_4010, set interlocks.
644 (append_insn): Check interlocks, not mips_4650.
645 (mips_emit_delays): Likewise.
646 (mips_ip): Only permit INSN_4010 instructions if mips_4010.
647 (md_longopts): Add "m4010" and "no-m4010".
648 (md_parse_option): Accept -mcpu=r4010. Handle -m4010 and
649 -no-m4010.
650 (md_show_usage): Document -m4010 and -no-m4010.
651
e5fa3f23
ILT
652Tue Jul 11 13:22:50 1995 Ian Lance Taylor <[email protected]>
653
654 * ecoff.c (struct efdr): Add new field fake.
655 (init_file): Initialize fake.
656 (add_file): Add new parameter fake. Change all callers.
657 (ecoff_build_debug): Don't warn about a missing .end for a fake
658 file.
659
cc02a8a9
KR
660Mon Jul 10 16:01:31 1995 Ken Raeburn <[email protected]>
661
e5fa3f23
ILT
662 * doc/as.texinfo: Split out most cpu chapters...
663 * doc/c-*.texi: ...to here.
664
cc02a8a9
KR
665 * read.c (po_hash): Now static.
666
84144a8f
ILT
667Mon Jul 10 13:47:22 1995 Ian Lance Taylor <[email protected]>
668
fb33961b
ILT
669 Based on patches from H.J. Lu <[email protected]>:
670 * config/tc-i386.c (md_apply_fix3): Rename from md_apply_fix1.
671 Accept pointer to value and segment. Fix OBJ_ELF PCREL case to
672 handle global defined symbols correctly.
673 (md_apply_fix): Remove both versions.
674 * config/tc-i386.h (MD_APPLY_FIX3): Define.
675
84144a8f
ILT
676 * configure.in: When switching on ${cpu}, use ${cpu}, not
677 $[target_cpu}, in default case.
678 * configure: Rebuild.
679
ed453d2e
ILT
680Sat Jul 8 13:27:55 1995 Ian Lance Taylor <[email protected]>
681
682 * write.c (fixup_segment): Call resolve_symbol_value on
683 sub_symbolP, in case it isn't in the symbol table.
684
cebf05ad
ILT
685Fri Jul 7 11:17:27 1995 Ian Lance Taylor <[email protected]>
686
c71a604a
ILT
687 * read.c (s_lcomm): For .lcomm 1, set align to 0, not 1.
688
ae99a672
ILT
689 * config/obj-coff.c (coff_frob_symbol): If SF_GET_FUNCTION, set
690 BSF_FUNCTION.
691 (symbol_globalP, symbol_global_lastP): New global variables.
692 (yank_symbols): Sort defined global symbols to the end, just
693 before the undefined symbols.
694 (glue_symbols): Add two arguments, and use them instead of
695 referring directly to global variables.
696 (crawl_symbols): Call glue_symbols twice, once for defined globals
697 and once for undefined. Add corresponding know calls.
698
6be977fb
ILT
699 * app.c (do_scrub_next_char): Always accept \v. Don't make it
700 conditional on BACKSLASH_V.
701 * read.c (next_char_of_string): Likewise.
702 * config/obj-bout.h (BACKSLASH_V): Don't define.
703 * config/tc-mips.h (BACKSLASH_V): Don't define.
704
5767cfb7
ILT
705 Add SPARC ELF PIC support.
706 * write.c (fixup_segment): Pass fixP to TC_RELOC_RTSYM_LOC_FIXUP,
707 not fixP->fx_r_type.
708 * config/tc-sparc.c (sparc_pic_code): New global variable.
709 (md_apply_fix): If generating PIC, adjust fx_addnumber for any non
710 PC relative reloc.
711 (tc_gen_reloc): If generating PIC, adjust various reloc types.
712 Remove fx_pcrel assert, since it is no longer true.
713 (md_parse_option): Handle -K PIC.
714 * config/tc-sparc.h (sparc_pic_code): Declare if OBJ_ELF.
715 (TC_RELOC_RTSYM_LOC_FIXUP): Define if OBJ_ELF.
716 (tc_fix_adjustable): Don't adjust PC relative relocs if PIC.
717 * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Take a fixp, not a
718 reloc type.
719
cebf05ad
ILT
720 * Makefile.in (Makefile): Add dependency on conf.in, so that conf
721 is rebuilt when conf.in changes.
722
a2a5a4fa
KR
723Thu Jul 6 16:49:38 1995 Ken Raeburn <[email protected]>
724
725 * All files: Updated FSF address.
726
37ea6121
JW
727Thu Jul 6 16:30:34 1995 Jim Wilson <[email protected]>
728
729 * ecoff.c (add_file): Don't collapse multiple .file commands into
730 a single file structure.
731 (ecoff_build_lineno): Set ilineBase to sum of previous file's
732 ilineBase and cline.
733
265d172e
ILT
734Thu Jul 6 12:54:27 1995 Ian Lance Taylor <[email protected]>
735
85a961c6
ILT
736 Patches from Jerry Blakely <[email protected]>:
737 * as.c (listing_filename): New static variable.
738 (show_usage): Mention -a=file.
739 (parse_args): Support = option of -a to set name of listing file.
740 (main): Pass listing_filename to listing_print.
741 * listing.c (list_file): New static variable.
742 (various): Replace printf with fprintf to list_file.
743 (listing_print): If name argument is not NULL, open it as
744 list_file.
745 * doc/as.texinfo, doc/as.1: Document -a=file.
746
a0eb1c2c
ILT
747 * config/tc-sparc.c (s_reserve): Don't permit redefinition, even
748 if the symbol was already in bss_section. Fix warning message.
749
bcaa9b05
ILT
750 * listing.c (struct file_info_struct): Rename end_pending field to
751 at_end.
752 (file_info): Initialize at_end, not end_pending.
753 (buffer_line): If at_end set, just return immediately. Don't
754 worry about end_pending cases. Set at_end when EOF is read.
755 (print_source): Check at_end, not end_pending.
756 (listing_listing): Likewise.
757
265d172e
ILT
758 * config/tc-alpha.h (alpha_do_align): Don't declare.
759 (md_do_align): Don't define.
760 (tc_frob_label): Define.
761 (alpha_define_label): Declare.
762 (md_flush_pending_output): Define.
763 (alpha_flush_pending_output): Declare.
764 * config/tc-alpha.c (insn_label): New static variable.
765 (auto_align): New static variable.
766 (md_pseudo_table): Add cases for .text, .data, .align, .byte,
767 .hword, .int, .long, .octa, .quad, .short, .word, .double, .float,
768 and .single. Change .t_floating, .s_floating, .f_floating,
769 .g_floating, and .d_floating to use s_alpha_float_cons rather than
770 float_cons.
771 (s_alpha_text, s_alpha_data): New static functions.
772 (s_rdata, s_sdata): Clear insn_label and set auto_align.
773 (s_gprel32): If auto_align, align. Clear insn_label.
774 (emit_insn): Clear insn_label.
775 (s_alpha_align): New static function.
776 (alpha_align): Make static. Take label argument.
777 (alpha_flush_pending_output): New static function.
778 (s_alpha_cons, s_alpha_float_cons): New static functions.
779 (alpha_define_label): New function.
780
4b18b7cd
KR
781Wed Jul 5 22:49:31 1995 Ken Raeburn <[email protected]>
782
ad0ab4eb
KR
783 * conf.in: Regenerate with autoreconf.
784
4b18b7cd
KR
785 Mon Jul 3 19:47:53 1995 Pat Rankin ([email protected])
786
787 * config/obj-vms.h (vms_resolve_symbol_redef): Use full prototype.
788 (vms_check_for_special_label, tc_frob_label): Move them to group
789 with other prototypes.
790 [WANT_VMS_OBJ_DEFS]: Only define the many OBJ_x, DBG_x, and DST_x
791 macros when this is defined.
792 * config/obj-vms.c: Fully prototype all local functions.
793 [symbolS, fragS]: Use consistently instead of their struct tags.
794 [WANT_VMS_OBJ_DEFS]: Define this.
795 (s_const): Make definition correctly match actual usage.
796 (VMS_stab_parse): Make `expected_type' arg be int rather than char.
797 (get_VMS_time_on_unix): Define as `static void'.
798 (hash_string): Make definition match actual usage; argument is
799 `char const *' rather than `unsigned char *'.
800 (VMS_Case_Hack_Symbol, VMS_Modify_Psect_Attributes, VMS_Psect_Spec,
801 VMS_Global_Symbol_Spec): Declare string args as `const char *'.
802 [IS_GXX_VTABLE]: New macro.
803 (vms_write_object_file: GSD loop): Use it.
804 (vms_write_object_file: data segment): Reorganize `fill' loop.
805
22ba90ce
ILT
806Wed Jul 5 12:01:49 1995 Ian Lance Taylor <[email protected]>
807
a7aa7a2b
ILT
808 * config/tc-sparc.c (md_shortopts): Add "K:" if OBJ_ELF.
809 (md_parse_option): If OBJ_ELF, check for -K. Die if -K PIC, since
810 PIC code is not currently supported.
811
812 * as.c (parse_args): Change std_shortopts to be an array rather
813 than a constant string. Only include 'K' if WORKING_DOT_WORD is
814 not defined. Only check for 'K' in that case as well.
815 * as.h (flag_warn_displacement): Only declare if WORKING_DOT_WORD
816 is not defined.
817
9814e22f
ILT
818 * conf.in: Add undef of HAVE_SBRK.
819
3f8416d5
ILT
820 * config/obj-coff.c (obj_coff_line): Call listing_source_line, in
821 both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
822
56dc989a
ILT
823 * symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
824 (S_CLEAR_EXTERNAL): Likewise.
825 (S_SET_WEAK): Warn if symbol is global.
826
f219dc65
ILT
827 * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
828 to put an undefined symbol into a set.
829
816a827b
ILT
830 * Makefile.in: Remove @configure_input@; it's not needed in
831 files named Makefile.
832
ca046e34
ILT
833 * config/tc-m88k.c (md_pseudo_table): Add ".set" so that the
834 explicit pseudo-op works, while continuing to treat "set" as an
835 instruction.
836
22ba90ce
ILT
837 * ecoff.c (ecoff_debugging_seen): New global variable.
838 (ecoff_directive_def): Set ecoff_debugging_seen.
839 (ecoff_stab): Likewise.
840 * ecoff.h: Make idempotent.
841 (ecoff_debugging_seen): Declare.
842 * config/tc-mips.c: Include ecoff.h.
843 (mips_debug): New static variable.
844 (s_stringer, s_mips_space): Remove unneeded declarations.
845 (md_parse_option): In case 'g', set mips_debug to debugging level.
846 (mips_local_label): New function.
847 * tc-mips.h (LOCAL_LABEL): Call mips_local_label.
848 (mips_local_label): Declare.
849
e63c594d
FF
850Wed Jul 5 00:59:22 1995 Fred Fish ([email protected])
851
852 * as.c (main): Only use sbrk when HAVE_SBRK defined.
853 * configure.in: Add test for sbrk.
854 * configure: Regenerate using autoconf 2.4.
855
249c7415
JL
856Mon Jul 3 15:58:16 1995 Jeff Law ([email protected])
857
858 * config/tc-hppa.h (MAX_RELOC_EXPANSION): Bump to 6.
859 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle
860 relocations for the difference of two (possibly external)
861 symbols.
862 (hppa_fix_adjustable): For SOM, reject reductions involving
863 the difference of two symbols.
864 (hppa_force_relocation): Force relocations for expressions
865 involving the difference of two symbols.
866
6c186c48
SC
867Mon Jul 3 14:22:59 1995 Steve Chamberlain <[email protected]>
868
869 * configure[.in] (i386-*-win32): New host and target.
870
e5c5ce23
SC
871Thu Jun 29 17:25:43 1995 Steve Chamberlain <[email protected]>
872
ac7530a8 873 Support for long filenames non-bfd coff.
e5c5ce23
SC
874 * config/obj-coff.c (filename_list_head, filename_list_tail): New.
875 (yank_symbols): Notice and record filenames which are too long.
876 (w_strings): Write out filename strings.
877 (c_dot_file_symbols): Put long filenames onto list.
878
30355216
SC
879Wed Jun 28 17:33:13 1995 Steve Chamberlain <[email protected]>
880
e5c5ce23 881 * config/obj-coff.c (fixup_segment): PE doesn't use
30355216
SC
882 the strange common symbol format that other 386s formats
883 do.
884 * config/tc-i386.c (md_begin): If LEX_AT defined then
885 '@' is in the set of identifiers.
886 (i386_operand): If LEX_AT, then don't look for @goto stuff.
887 * config/te-pe.h: Define LEX_AT.
888
4a998308
KR
889Wed Jun 28 17:49:59 1995 Ken Raeburn <[email protected]>
890
1a9924d8
KR
891 * doc/as.texinfo (H8/500 Floating Point): Indicate that IEEE FP
892 numbers are for the standard emulation code.
893 (SH Floating Point): Ditto.
894 (Overview): Describe new --emulation option for MIPS.
4a998308
KR
895 * doc/*.m4: Deleted.
896
897Thu Jun 22 19:26:25 1995 Ken Raeburn <[email protected]>
898
899 Sun May 7 11:53:41 MDT 1995 Bryan Ford <[email protected]>
900
901 * configure.in: Added i386-*-moss* target.
902
3f4ca874
MM
903Thu Jun 22 14:41:23 1995 Michael Meissner <[email protected]>
904
905 * write.c (write_object_file): Cast decode_local_label_name
906 argument to char * to avoid warning.
907
a1835409
KR
908Wed Jun 21 18:07:59 1995 Ken Raeburn <[email protected]>
909
c151fd1e
KR
910 Changes from Andreas Schwab <[email protected]>:
911 * config/tc-m68k.c (insword): Increment the frag offsets.
912 (struct m68k_it): Add reloc[].pcrel_fix field to hold pc-rel
913 fixup.
914 (add_fix): Accept additional parameter, the pc-rel fixup. All
915 callers changed. Fix offset address if width == 'b'.
916 (m68k_ip) [case AINDX]: Allow explicit size spec. Don't make the
917 outer displacement pc-relative.
918 (md_pcrel_from): Make it relative to the first extension word of
919 the operand.
920 (opcode_ptr): Make it a macro if DO_BREAK_UP_BIG_DECL is
921 undefined.
922 (md_convert_frag_1): Don't reference fragP->fr_opcode[2..].
923 (md_estimate_size_before_relax) [case TAB (FBRANCH, SZ_UNDEF)]:
924 Turn on long bit.
925 (m68k_ip) [case 'C']: Don't set set long bit, set it in the opcode
926 table.
927 (md_estimate_size_before_relax) [case TAB (PCINDEX, SZ_UNDEF)]:
928 Variable part increases by four, not six.
929 * write.c (fixup_segment) [TC_M68K]: Don't do further pcrel
930 processing after converting difference of two symbols in the
931 same segment.
932
933 * write.c (fixup_segment): Don't conditionalize the pcrel fix on
934 TC_M68K.
935
a1835409
KR
936 * config/tc-sparc.c (sparc_ip, case 'A'): If ASI is not a "#"
937 value, don't shift it an extra time.
938
85b369b3
SC
939Wed Jun 21 14:18:37 1995 Steve Chamberlain <[email protected]>
940
941 * gasp.c (do_print, do_form, buffer_and_nest): Use case insensitive
ac7530a8 942 string compares.
85b369b3 943
34308df7
KR
944Tue Jun 20 14:55:02 1995 Ken Raeburn <[email protected]>
945
946 * config/obj-coff.c (write_object_file): Cast time() argument to
947 time_t *.
948
420c479b
JL
949Tue Jun 20 12:00:53 1995 Jeff Law ([email protected])
950
951 * config/tc-hppa.c (pa_build_unwind_subspace): Fix typo in last
952 change.
953
76477190
JL
954Mon Jun 19 15:27:17 1995 Jeff Law ([email protected])
955
956 * config/tc-hppa.c (pa_build_unwind_subspace): Zero out memory
957 from frag_more calls.
958
d21041b3
SS
959Thu Jun 15 16:53:37 1995 Stan Shebs <[email protected]>
960
961 * config/obj-coff.c: Don't use "bfd/" when including libbfd.h
962 and libcoff.h.
963 (fill_section): Call PROGRESS.
964 * Makefile.in (INCLUDES): Add bfd srcdir.
965
966 * mpw-config.in: Add bfd_gas flag and set for each config.
967 (i386-unknown-go32, m68k-unknown-coff): Recognize.
968 * mpw-make.in (HACK_O_RAMA, OBJ_COFF_OMIT_TIMESTAMP): Add to
969 config.h.
970
f6d6f102
DE
971Thu Jun 15 10:04:26 1995 Doug Evans <[email protected]>
972
973 * config/tc-arm.h (LOCAL_LABEL): Prepend '.' if not OBJ_AOUT.
974 (FAKE_LABEL_NAME): Likewise.
975
4ff6f92a
JL
976Mon Jun 12 22:25:39 1995 Jeff Law ([email protected])
977
978 * config/tc-hppa.c (pa_ip): Check for invalid register in single
979 precision fmpyadd and fmpysub instructions.
980
69cb5925 981Thu Jun 8 19:33:02 1995 Pat Rankin ([email protected])
3c650d09
KR
982
983 * config/obj-vms.c (myname): Delete all references.
984 (VMS_stab_parse, Write_VMS_MHD_Records, VMS_Case_Hack_Symbol):
985 Replace printf calls with as_tsktsk.
986 (PUT_LONG, PUT_SHORT): Use COPY_LONG, COPY_SHORT.
987 (VMS_Store_Immediate_Data): Move second buffer capacity check
988 below bottom of loop; first check at top suffices for loop itself.
989 (find_file): Remove redundant pointer checks in first two loops;
990 replace third loop with pointer to last list element determined
991 in first loop.
992
0cd27550
DE
993start-sanitize-arc
994Thu Jun 8 11:44:35 1995 Doug Evans <[email protected]>
995
996 * config/tc-arc.h (MD_APPLY_FIX3): Define.
997 * config/tc-arc.c (md_apply_fix3): Renamed from md_apply_fix.
998 Undo effects of md_pcrel_from if symbol is in another section.
999end-sanitize-arc
1000
d5263ab4
KR
1001Tue Jun 6 13:53:06 1995 Ken Raeburn <[email protected]>
1002
0cd27550
DE
1003 * config/tc-sparc.c (sparc_ip): Handle defined absolute symbols as
1004 ASI values.
1005
d5263ab4
KR
1006 * config/obj-vms.c (vms_write_object_file, case N_DATA): Use
1007 strcmp against FAKE_LABEL_NAME instead of checking third
1008 character. (Suggested by Pat Rankin.)
1009
69cb5925 1010Mon Jun 5 20:10:46 1995 Pat Rankin ([email protected])
d5263ab4
KR
1011
1012 Add support for N_ABS and N_ABS|N_EXT type symbols.
1013
1014 * config/obj-vms.h (LSY_S_M_{DEF,REL}, ENV_S_M_{DEF,NESTED}):
1015 New macros for local symbols (from <lsydef.h> and <envdef.h>).
1016 * config/obj-vms.c (Current_Environment): New file-scope variable.
1017 (VMS_Local_Environment_Setup): New routine.
1018 (GBLSYM_LCL): New macro.
1019 (VMS_Global_Symbol_Spec): Handle local symbols too.
1020 (VMS_Psect_Spec): Set GLOBALVALUE_BIT for absolute symbols.
1021 (VMS_Emit_Globalvalues): Handle local and global absolute symbols.
1022 (VMS_Store_PIC_Symbol_Reference): Ditto.
1023 (vms_write_object_file: GSD symbol loop): Ditto.
1024
1025Mon Jun 5 16:10:40 1995 Steve Chamberlain <[email protected]>
1026
1027 * config/tc-arm.h (LOCAL_LABELS_FB): Define.
1028
1be0c30e
KR
1029Mon Jun 5 02:17:58 1995 Ken Raeburn <[email protected]>
1030
1031 * configure.in (i386-*-gnu*): Always use GNU ELF config.
1032
69cb5925 1033Wed May 31 17:49:18 1995 Pat Rankin ([email protected])
58abad7d
KR
1034
1035 * config/obj-vms.c (obj_crawl_symbol_chain): Update *symbolPP
1036 in `else' clause when removing a symbol. Also, revise comments
1037 to match the code.
1038 (vms_write_object_file (GSD symbol loop, case N_DATA)): Never
1039 output symbol definitions for local numeric labels.
1040
1cb0d00d
KR
1041Tue May 30 18:29:10 1995 Richard Earnshaw ([email protected])
1042
1043 * configure.in (architecture variants, cases armeb and arm*): Remove
1044 spaces round assignment to endian.
1045
0b143492
KR
1046Tue May 30 12:31:31 1995 Ken Raeburn <[email protected]>
1047
1048 * write.c (write_object_file): Check for undefined local dollar
1049 and fb labels.
1050
1051 * symbols.c (decode_local_label_name): Extract instance number
1052 from the correct location.
1053
6053ed62
C
1054Sat May 27 21:28:49 1995 J.T. Conklin <[email protected]>
1055
1056 * config/te-dpx2.h: Include obj-format.h.
1057 (COFF_MAGIC): Renamed from FILE_HEADER_MAGIC.
1058
1059Wed May 24 13:45:32 1995 Steve Chamberlain <[email protected]>
1060
1061 * configure, configure.in, config/obj-coff.c, config/obj-coff.h:
1062 Add support for ARM pe
1063
2e715f06
DE
1064Tue May 23 17:00:32 1995 Doug Evans <[email protected]>
1065
1066 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP16
1067 and BFD_RELOC_SPARC_WDISP19.
1068
6e43bf82
KR
1069Tue May 23 19:18:33 1995 Ken Raeburn <[email protected]>
1070
1071 * as.c (parse_args) [! USE_EMULATIONS]: Always print an error
1072 message.
1073
2e715f06
DE
1074 * doc/internals.texi: Document obj_app_file and
1075 TARGET_BYTES_BIG_ENDIAN.
1076
4761bb02
KR
1077Mon May 22 20:03:23 1995 Ken Raeburn <[email protected]>
1078
70d6c396
KR
1079 * ecoff.c (ecoff_stab): Add extra leading argument, for 4 May
1080 change.
1081 * ecoff.h (ecoff_stab): Fix declaration.
1082 * obj.h (format_ops.process_stab): Include prototype.
1083 * config/obj-elf.h (OBJ_PROCESS_STAB): Pass through seg argument.
1084 * config/obj-ecoff.h (OBJ_PROCESS_STAB): Ditto.
1085
4761bb02
KR
1086 * config/e-mipself.c (mipself): New emulation mode, doesn't change
1087 endianness from configured default.
1088 * config/e-mipsecoff.c (mipsecoff): Ditto.
1089 * configure.in (mips ecoff/elf targets): Include them.
1090 * as.c (mipself, mipsecoff): Declare.
1091
1092 * as.c (emulation_name): New variable.
1093 (select_emulation_mode): Set emulation_name. Don't change argv.
1094 (parse_args): Handle --emulation; complain if the supplied name
1095 isn't what select_emulation_name came up with.
1096
1fc2205e
DE
1097start-sanitize-arc
1098Mon May 22 16:56:58 1995 Doug Evans <[email protected]>
1099
1100 * config/tc-arc.c (md_pcrel_from): Return 0 for undefined symbols.
1101end-sanitize-arc
1102
1103Sun May 21 21:36:17 1995 Jeff Law ([email protected])
1104
1105 * config/tc-hppa.c: Reverse changes from Dec. 19th which
1106 changed the way unwinds were built for ELF. Rely on relocation
1107 symbol reductions to avoid placing the end of function marker
1108 symbols into the object file's symbol table.
1109
a088fb62
KR
1110Sat May 20 12:31:36 1995 Ken Raeburn <[email protected]>
1111
0509f064
KR
1112 Added improved VMS support from Pat Rankin:
1113
1114 Fri 19 May 16:51:40 1995 Pat Rankin ([email protected])
1115
1116 * config/obj-vms.h (AOUT_STABS): Define.
1117
1118 * config/obj-vms.c (fpush, rpush): New routines.
1119 (push): Replaced by the above.
1120 (find_symbol): Slight reorganization to expose tail recursion.
a088fb62
KR
1121
1122 Fri Mar 17 18:40:36 1995 Pat Rankin ([email protected])
1123
1124 * Makefile.in (VMS_OTHER_OBJS): delete this.
1125 * vmsconf.sh (make-gas.com): build ../libiberty/liberty.olb
1126 first if necessary; link gas against it.
1127
078d1a5a
KR
1128Fri May 19 16:37:39 1995 Richard Earnshaw ([email protected])
1129
1130 * gasp.c (istrue): Correctly test for string inequality.
1131
ff15324f
KR
1132Thu May 18 04:25:11 1995 Ken Raeburn <[email protected]>
1133
1134 Wed May 10 14:28:16 1995 Richard Earnshaw ([email protected])
1135
69cb5925 1136 * config/tc-arm.c (CP_T_{Pre,UD,WB}): Define, bits in co-processor
ff15324f
KR
1137 instructions.
1138 ([ls]fm_flags): Correct error in bitmasks.
69cb5925
KR
1139 (cp_address_required_here): Delete second parameter, FLAGS. All
1140 callers changed. Remove all dead code referring to FLAGS. If
ff15324f 1141 address is just "[Reg]" then convert into a PRE-INCREMENT UP format.
69cb5925 1142 (do_fp_ldmstm): Handle full-descending and empty-ascending stack
ff15324f
KR
1143 formats explicitly.
1144
1145 * config/tc-arm.c (internalError): Define.
1146 (ARM_{1,2,250,3,6,7,7DM,ANY,2UP,ALL,3UP,6UP,LONGMUL}): Define processor
1147 variants.
1148 (FPU_{CORE,FPA10,FPA11,NONE,ALL,MEMMULTI}): Define floating point
1149 variants.
1150 ({CPU,FPU}_DEFAULT): Define.
1151 (cpu_variant): New variable.
1152 (asm_flg): Change more_flags to flag_bits.
1153 Add prototypes for new functions.
1154 (FLAG_{S,P,B,T,ED,FD,FA,EA,IB,IA,DB,DA,L}): Delete.
1155 (s_flag[], ldst_flags[], byte_flag[], cmp_flags[], ldm_flags[],
1156 stm_flags[], lfm_flags[], sfm_flags[], round_flags[], except_flags[],
1157 cplong_flag[]): New variables.
1158 (asm_opcode, insns[]): New format, add version support.
1159 (arm_flg_hsh): Delete.
1160 (do_mul, do_mla): Remove "Warning" from warning messages.
1161 (do_arit): Simplify.
1162 (do_swap): Make error message more appropriate.
1163 (md_begin): Build hash tables starting at first entry in tables.
1164 (md_number_to_chars): Cope with big/little-endian selection.
1165 (md_chars_to_number): New function.
1166 (md_apply_fix): Rewrite to make endian independent.
1167 (tc_gen_reloc): Better error messages.
1168 (md_assemble): Reject opcodes forbidden by the currently selected cpu
1169 variant. Rewrite handling code for instruction flags.
1170 (md_shortopts): Add option "m:".
1171 (md_parse_option): Get the desired cpu/fpu variant.
1172
1173 From: David Taylor ([email protected])
1174 * configure.in (architecture variants): Check for "armeb" and "arm*",
1175 set endianness accordingly.
1176 * read.c (read_a_source_file): New hooks md_start_line_hook and
1177 md_after_pass_hook.
1178 * config/arm-{big,lit}.mt: New files
1179 * config/tc-arm.h ({LITTLE,BIG}_ENDIAN, BYTE_ORDER): Define.
69cb5925 1180 (TARGET_FORMAT): Select depending on endianness and emulation and
ff15324f
KR
1181 object format.
1182 (md_after_pass_hook, md_start_line_hook): Define.
1183 * config/tc-arm.c: Include subsegs.h, symbols.h and listing.h.
1184 (shift[]): Add uppper case equivalents.
1185 (CP_T_[XY], TRANS_BIT): Define.
69cb5925 1186 (conds[]): Delete initial NULL entry, add "lo" entry as synonym for
ff15324f
KR
1187 "cc".
1188 (LONGEST_FLAG, flags[]): Delete.
1189 (arm_psr): New structure.
1190 (psrs[]): New variable.
1191 (PSR_ALL): Define.
1192 (LONGEST_INST): Bump to 5.
1193 (LITERAL_MASK, COND_MASK, OPCODE_MASK, DATA_OP_SHIFT): Define.
1194 (OPCODE_{AND,EOR,SUB,RSB,ADD,ADC,SBC,RSC,TST,TEQ,CMP,CMN,ORR,MOV,BIC,
1195 MVN}): Define.
1196 (insns[]): Add smull, umull, smlal, umlal, ldfm, stfm, msr and mrs
1197 instructions. Add nop and adr pseudo ops.
1198 (reg_table): Add APCS register name variants.
1199 (arm_psr_hsh): New hash table.
69cb5925 1200 (md_pseudo_table): Add "ltorg", "pool", "extend", "ldouble" and
ff15324f
KR
1201 "packed".
1202 (MAX_LITERAL_POOL_SIZE): Define.
1203 (struct literalS): New structure.
1204 (literals, next_literal_pool_place, lit_pool_num, current_poolP): New
1205 variables.
1206 (add_to_lit_pool, symbol_locate, symbol_make_empty): New functions.
1207 (validate_immediate): Return FAIL on failure.
1208 (s_ltorg): New function.
1209 (psr_required_here, psrf_required_here): New functions.
1210 (cp_address_required_here): New parameter, flag, all callers changed.
1211 If flag is non-zero, restrict the legal addressing modes.
1212 (do_nop, do_mrs, do_msr, do_mull): New functions.
1213 (negate_data_op): New function.
1214 (data_op2): accept #x,y meaning x rotated right by y, but only when
1215 suitable constants. If immediate is not legal, try changing the
1216 opcode.
1217 (do_adr): New function.
1218 (do_ldst): accept "ldr reg, =expr". Put expr in the pool if it can't
1219 be done as an immediate.
1220 (do_fp_ldst): Use CP_T_[XY], not immediate values.
1221 (do_fp_ldmstm): New function.
1222 (arm_psr_parse): New function.
1223 (output_inst): Use INSN_SIZE in call to md_number_to_chars.
1224 (md_assemble): Add hack so that "Label instruction" causes alignment of
1225 the label.
69cb5925 1226 (arm_after_pass_hook, arm_start_line_hook, arm_frob_symbol): New
ff15324f
KR
1227 functions.
1228
1229Wed May 17 05:25:16 1995 Michael Meissner <[email protected]>
1230
1231 * config/tc-ppc.c (md_show_usage): Add \'s at end of lines in
1232 strings for non-GCC compilers.
1233
ff17873d
KR
1234Tue May 16 19:36:00 1995 Ken Raeburn <[email protected]>
1235
1236 * config/obj-ecoff.c (ecoff_pop_insert): New function.
1237 (ecoff_format_ops): Use it.
1238 (obj_ecoff_frob_symbol): Now static.
1239
99146659
MM
1240Wed May 17 00:59:12 1995 Andrew Cagney - aka Noid <[email protected]>
1241
1242 * config/tc-ppc.c (md_begin): Was assuming that an instruction was
1243 bigendian and hence 16bit relocs withing instructions would
69cb5925 1244 ALWAYS be at addresses i+2-i+3. In LE mode it is i+0-i+1.
99146659 1245
b0d41996
KR
1246Tue May 16 16:29:58 1995 Ken Raeburn <[email protected]>
1247
739708fa
KR
1248 * config/obj-multi.h (obj_frob_symbol, obj_frob_file, S_GET_SIZE,
1249 S_SET_SIZE, S_GET_ALIGN, S_SET_ALIGN, obj_copy_symbol_attributes,
1250 OBJ_PROCESS_STAB): New macros.
1251 * config/tc-mips.c: Protect against redefining them also when
1252 including obj-elf.h. Test only OBJ_ELF for including elf/mips.h.
b444036d
KR
1253 (mips_init_after_args): New function. Set byte_order here.
1254 (md_parse_option): Not here.
1255 (byte_order): Don't bother initializing.
1256 * config/tc-mips.h (mips_init_after_args): Declare.
1257 (tc_init_after_args): New macro.
739708fa 1258
b0d41996
KR
1259 * read.c (s_lcomm): Do ELF/ECOFF test at run time, not compile
1260 time.
1261
b04b02a5
SC
1262Fri May 12 14:17:47 1995 Steve Chamberlain <[email protected]>
1263
1264 Initial support for PE object files.
1265 * configure.in, configure (i386-*-pe, i386-*-*nt): Add.
1266 * config/obj-coff.c (fixup_segment): Cope with PE wierdness.
1267 * config/obj-coff.h (TE_PE): New target format.
1268
bb2c9281
KR
1269Thu May 11 14:58:21 1995 Ken Raeburn <[email protected]>
1270
1271 * config/obj-elf.c (NEED_ECOFF_DEBUG): Define if ECOFF_DEBUGGING
1272 was defined by header files. Test in preprocessor conditionals
1273 instead of ECOFF_DEBUGGING.
1274 (ecoff_debug_pseudo_table): Make empty if NEED_ECOFF_DEBUG is not
1275 defined.
1276 (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol,
1277 elf_frob_file): Only call ecoff routines if NEED_ECOFF_DEBUG is
1278 defined.
1279 (elf_ecoff_set_ext, elf_get_extr, elf_set_index): Define only if
1280 NEED_ECOFF_DEBUG is defined.
1281 (elf_format_ops): Reference elf_ecoff_set_ext only if
1282 NEED_ECOFF_DEBUG.
1283
e7757ad0
KR
1284Wed May 10 18:09:12 1995 Ken Raeburn <[email protected]>
1285
1286 * Makefile.in (OBJS): Include @extra_objects@.
1287 (obj-elf.o, obj-ecoff.o, e-mipself.o, e-mipsecoff.o): New rules
1288 for building these independently.
1289 * emul-target.h, config/e-mipself.c, config/e-mipsecoff.c: New
1290 files.
1291
1292 * acconfig.h (DEFAULT_EMULATION, EMULATIONS, USE_EMULATIONS,
1293 OBJ_MAYBE_*, I386COFF, M68KCOFF, M88KCOFF): New macros.
1294 * aclocal.m4 (GAS_UNIQ): New macro.
1295
1296 * as.c (emulations, n_emulations) [USE_EMULATIONS]: New variable.
1297 (select_emulation_mode, default_emul_bfd_name, common_emul_init)
1298 [USE_EMULATIONS]: New functions.
1299 (main) [USE_EMULATIONS]: Call select_emulation_mode before other
1300 initialization.
1301 * emul.h: New file.
1302 * as.h [USE_EMULATIONS]: Include it.
1303
1304 * configure.in: Handle enable-targets option. Iterate over target
1305 list, building up a list of object file formats and emulation
1306 configurations. (Only supports emulations for MIPS CPU so far.)
1307 If multiple formats are needed, set obj_format to multi and add
1308 format config files to extra_files. If emulation modes are
1309 needed, add the relevant files to extra_files.
1310
1311 * configure.in: Define I386COFF, M68KCOFF, M88KCOFF for those
1312 configurations.
1313
1314 * ecoff.c (ecoff_generate_asm_lineno): Filename argument now
1315 points to const.
1316 * ecoff.h (ecoff_generate_asm_lineno): Updated declaration.
1317
1318 * obj.h (obj_read_begin_hook): Don't declare function if it's
1319 already a macro.
1320
1321 * read.c (s_space, cons, stringer): If md_flush_pending_output is
1322 defined, call it on entry.
1323 * config/obj-elf.c (obj_elf_section): If md_flush_pending_output
1324 is defined, call it on entry. If md_elf_section_change_hook is
1325 defined, call it before returning normally.
1326
1327 * read.h (target_big_endian): Declare.
1328
1329 * obj.h (struct format_ops): Added new function pointer fields
1330 ecoff_set_ext, read_begin_hook, symbol_new_hook.
1331 (ecoff_format_ops, elf_format_ops): Declare.
1332 * config/obj-elf.c (elf_s_get_size, elf_s_set_size,
1333 elf_s_get_align, elf_s_set_align, elf_copy_symbol_attributes,
1334 elf_sec_sym_ok_for_reloc): New functions.
1335 (elf_format_ops): New variable.
1336 (elf_frob_symbol): Now takes additional int* argument.
1337 * config/obj-elf.h (elf_frob_symbol): Update declaration.
1338 (elf_pop_insert): Declare.
1339 (obj_pop_insert): Define to call elf_pop_insert.
1340 * config/obj-ecoff.c (ecoff_sec_sym_ok_for_reloc,
1341 obj_ecoff_frob_symbol): New functions.
1342 (ecoff_format_ops): New variable.
1343
1344 * config/te-generic.h: If OBJ_HEADER is defined, use it as the
1345 filename to include in place of obj-format.h.
1346 * config/te-multi.h: New file, copied from te-generic.h.
1347 * config/obj-elf.c (OBJ_HEADER): Define it to "obj-elf.h".
1348 * config/obj-ecoff.c (OBJ_HEADER): Define it to "obj-ecoff.h".
1349
1350 * config/obj-elf.c (ECOFF_DEBUGGING): Default to 0.
1351 (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol,
1352 elf_frob_file): Test it at run time.
1353 (obj_ecoff_set_ext, elf_get_extr, elf_set_index): Define
1354 unconditionally.
1355 (elf_pseudo_table): Renamed from obj_pseudo_table, now static.
1356 (ecoff_debug_pseudo_table): Split off into separate table. Define
1357 it unconditionally.
1358 (elf_pop_insert): New function.
1359 * config/obj-elf.h (elf_pop_insert): Declare.
1360 (obj_pop_insert): New macro.
1361 (obj_ecoff_set_ext) [!OBJ_MAYBE_ELF]: Define to elf_ecoff_set_ext.
1362 * config/obj-ecoff.h (obj_ecoff_set_ext): Define to ecoff_set_ext.
1363
1364 * config/tc-mips.h: Protect against multiple inclusions.
1365 (mips_pop_insert): Declare.
1366 (md_pop_insert): Call it.
1367
1368 * config/tc-mips.c: If OBJ_MAYBE_ELF is defined, include
1369 obj-elf.h, but preserve OUTPUT_FLAVOR and protect some other
1370 macros from redefinition.
1371 (ECOFF_DEBUGGING): Default to 0. All references changed to
1372 run-time tests or made unconditional.
1373 (s_stringer, s_mips_space, s_elf_section): Deleted.
1374 (md_pseudo_table): Don't refer to them. Split table into three
1375 sections, for MIPS, non-ECOFF_DEBUGGING, and ELF.
1376 (mips_pop_insert): New function.
1377 (mips_flush_pending_output): New function.
1378 (mips_enable_auto_align): New function.
1379 * config/tc-mips.h (mips_pop_insert): Declare.
1380 (md_pop_insert): New macro.
1381 (mips_flush_pending_output): Declare.
1382 (md_flush_pending_output): New macro.
1383 (mips_enable_auto_align): Declare.
1384 (md_elf_section_change_hook): New macro, calls
1385 mips_enable_auto_align.
1386
8370e93e
MM
1387Tue May 9 17:07:41 1995 Michael Meissner <[email protected]>
1388
1389 * configure.in: Add little endian PowerPC support.
1390 * configure: Rebuild with autoconf.
1391 * config/ppc-big.mt: New file for big endian PowerPC systems.
1392 * config/ppc-lit.mt: New file for little endian PowerPC systems.
1393
1394 * config/tc-ppc.h (target_big_endian): Declare.
1395 (TARGET_FORMAT): Deal with little and big endian ELF variants.
1396 (TARGET_BYTES_BIG_ENDIAN): Define as 1, not empty.
1397
1398 * config/tc-ppc.c (ppc_big_endian): Delete variable, use
1399 target_big_endian instead.
1400 (md_parse_option): Parse -mlittle and -mlittle-endian to use
1401 little endian support. Parse -mbig and -mbig-endian to use big
1402 endian support.
1403 (md_show_usage): Update to reflect current switches.
1404 (ppc_set_cpu): Recognize powerpcle as little endian PowerPC. Use
1405 as_fatal, not abort if unknown machine.
1406
56187f65
JL
1407Tue May 9 10:58:41 1995 Jeff Law ([email protected])
1408
1409 * config/tc-hppa.c (md_apply_fix): Cast *valp to an integer when
1410 comparing against signed values.
1411 (hppa_force_relocation): Make "distance" an integer.
1412
1e63de91
KR
1413Tue May 9 00:47:03 1995 Ken Raeburn ([email protected])
1414
1415 * obj.h (struct format_ops) [BFD_ASSEMBLER]: New type.
1416 (this_format) [BFD_ASSEMBLER]: Declare new variable, if not
1417 already defined as a macro.
1418
fd1fdba2
KR
1419Mon May 8 21:44:13 1995 Ken Raeburn <[email protected]>
1420
1421 * subsegs.h (seg_info): Provide dummy version for
1422 non-BFD_ASSEMBLER, non-MANY_SEGMENTS configuration. It should
1423 never get invoked, but this is easier than conditionalizing some
1424 of the uses.
1425 (struct seg_info_trash): Dummy type used by above to make code
1426 compile.
1427
e51a3912
KR
1428Fri May 5 14:47:13 1995 Ken Raeburn <[email protected]>
1429
1430 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define to 1, not
1431 empty.
1432 * config/obj-elf.h (SEPARATE_STAB_SECTIONS): Ditto.
1433 * config/obj-som.h (SEPARATE_STAB_SECTIONS): Ditto.
1434
8c5e0f5e
KR
1435Thu May 4 19:26:55 1995 Ken Raeburn <[email protected]>
1436
1437 * stabs.c (get_stab_string_offset): Always define. If
1438 SEPARATE_STAB_SECTIONS isn't set, abort.
1439 (SEPARATE_STAB_SECTIONS): Default to zero.
1440 (aout_process_stab): New function, split out from s_stab_generic.
1441 (OBJ_PROCESS_STAB) [AOUT_STABS]: Define to call aout_process_stab,
1442 if not already defined.
1443 (s_stab_generic): Test SEPARATE_STAB_SECTIONS at run time. If
1444 it's not set, and OBJ_PROCESS_STAB isn't defined, abort. Always
1445 pass six arguments to OBJ_PROCESS_STAB.
52f969e2 1446 * read.h (get_stab_string_offset): Declare unconditionally.
8c5e0f5e
KR
1447 * config/obj-aout.h (AOUT_STABS): Define.
1448 * config/obj-bout.h (AOUT_STABS): Define.
1449 * config/obj-ecoff.h (OBJ_PROCESS_STAB): Add new first argument,
1450 ignored.
1451 * config/obj-elf.h (OBJ_PROCESS_STAB) [ECOFF_DEBUGGING]: Ditto.
1452
1453 * config/obj-ecoff.h (ECOFF_DEBUGGING): Define to 1, not empty.
1454 * config/obj-elf.h (ECOFF_DEBUGGING): Ditto. Test value, not
1455 whether it's defined.
1456
9777b772
KR
1457Wed May 3 21:38:20 1995 Ken Raeburn <[email protected]>
1458
1459 * as.h (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): If not already
1460 defined, define them to zero.
1461 * config/tc-*.h, config/te-*.h: If defining them, define them to
1462 be 1 instead of empty.
1463 * expr.c (integer_constant, operand): Test them at run time
1464 instead of compile time.
1465 * read.c (read_a_source_file): Ditto.
1466 * symbols.c (colon): Ditto.
1467 (dollar_*, define_dollar_label, fb_*): Define unconditionally.
1468 * symbols.h (dollar_*, define_dollar_label, fb_*): Declare
1469 unconditionally.
1470
4829cd65
JL
1471Wed May 3 13:08:53 1995 Jeff Law ([email protected])
1472
69cb5925 1473 * config/tc-hppa.c (md_apply_fix): Do nothing for an out of range
4829cd65
JL
1474 PC relative call since those only occur in cases where the linker
1475 can fix them up.
1476 (hppa_force_relocation): Force relocations for out of range PC
1477 relative calls.
1478
55ac59da
JL
1479Tue May 2 16:34:47 1995 Jeff Law ([email protected])
1480
1481 * configure (hppa*-*-lites*): Handle just like hppa*-*-*elf*.
1482 * configure.in: Likewise.
1483
2c4022af
KR
1484Tue May 2 11:22:00 1995 Ken Raeburn <[email protected]>
1485
1486 * read.c (pop_insert): New function.
1487 (pop_override_ok, pop_table_name): New variables.
1488 (md_pop_insert, obj_pop_insert): New macros.
1489 (pobegin): Use them.
1490
1491 * config/tc-mips.c: Use USE_STDARG and USE_VARARGS instead of
1492 NO_STDARG &c.
1493
1494 * read.c (target_big_endian): If TARGET_BYTES_BIG_ENDIAN is
1495 defined, initialize to 1.
1496 * config/tc-mips.c (mips_target_format): Changed to a function,
1497 checking flavor and byte order at run time.
1498 (md_parse_option, cases OPTION_EB and OPTION_EL): Set
1499 target_big_endian here.
1500 (md_begin): Not here.
1501 * config/tc-mips.h (mips_target_format): Adjust declaration.
1502 (TARGET_FORMAT): Call mips_target_format.
1503
1504 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Define in terms of
1505 OUTPUT_FLAVOR.
1506 * config/tc-mips.c (g_switch_value, g_switch_seen): Define
1507 unconditionally.
1508 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
1509 s_abicalls, nopic_need_relax): Check USE_GLOBAL_POINTER_OPT at run
1510 time, instead of compiling conditionally on GPOPT.
1511 (GPOPT): Don't define.
1512 (md_shortopts): Always include -G.
1513 (RDATA_SECTION_NAME): Select at run time.
1514 (md_begin): Test for ELF format at run time instead of compile time.
1515 (mips_ip, s_change_sec): Ditto.
1516 (md_parse_option, cases OPTION_CALL_SHARED and OPTION_NON_SHARED):
1517 Ditto.
1518 (OPTION_CALL_SHARED, OPTION_NON_SHARED, mips_regmask_frag): Define
1519 unconditionally.
1520
91a165d1
KR
1521Tue May 2 00:17:04 1995 Ken Raeburn ([email protected])
1522
833c46e1
KR
1523 * Makefile.in (TARG_CPU_DEP_*): New variables.
1524 (targ-cpu.o): Depend on one, selected by autoconf substitution,
1525 instead of TARG_CPU_DEPENDENTS.
1526 * configure.in: Substitute $cpu_type, $obj_format, $atof, and
1527 $emulation into Makefile.in.
1528start-sanitize-arc
1529 * config/arc.mt: Deleted.
1530end-sanitize-arc
1531 * config/h8300.mt: Deleted.
1532 * config/h8500.mt: Deleted.
1533 * config/i386coff.mt (TARG_CPU_DEPENDENTS): Deleted.
1534 * config/m68k.mt: Deleted.
1535 * config/m68kcoff.mt (TARG_CPU_DEPENDENTS): Deleted.
1536 * config/m88kcoff.mt (TARG_CPU_DEPENDENTS): Deleted.
1537 * config/mips-big.mt (TARG_CPU_DEPENDENTS): Deleted.
1538 * config/mips-lit.mt (TARG_CPU_DEPENDENTS): Deleted.
1539start-sanitize-rce
1540 * config/rce.mt: Deleted.
1541end-sanitize-rce
1542 * config/sh.mt: Deleted.
1543 * config/w65.mt: Deleted.
1544 * config/z8k.mt: Deleted.
1545
78dace0a
KR
1546 * config/te-dpx2.h (dpx2): Deleted unused macro.
1547 * config/te-generic.h (TE_GENERIC): Ditto.
91a165d1
KR
1548 * config/te-go32.h (TE_GO32): Ditto.
1549 * config/te-hp300.h (TE_HP300): Ditto.
78dace0a 1550 * config/te-hppa.h (PA, _TE_PA_H): Ditto.
91a165d1
KR
1551 * config/te-ic960.h (TE_IC960): Ditto.
1552 * config/te-nbsd532.h (TE_NETBSD532): Ditto.
1553 * config/te-pc532mach.h (TE_PC532MACH): Ditto.
1554 * config/te-ppcnw.h (TE_PPCNW): Ditto.
78dace0a 1555 * config/te-sco386.h (scounix): Ditto.
91a165d1
KR
1556
1557Mon May 1 15:59:56 1995 Ken Raeburn <[email protected]>
1558
1559 * read.c (s_app_file): If obj_app_file is defined, call it with
1560 string as argument. Don't call c_dot_file_symbol or
1561 elf_file_symbol.
1562 * config/obj-coff.h (obj_app_file): Define as c_dot_file_symbol.
1563 * config/obj-elf.h (obj_app_file): Define as elf_file_symbol.
1564
1565 * as.h (OUTPUT_FLAVOR): Don't define here.
1566 * config/obj-aout.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define.
1567 * config/obj-bout.h (OUTPUT_FLAVOR): Define.
1568 * config/obj-coff.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define.
1569 * config/obj-ecoff.h (OUTPUT_FLAVOR): Define.
1570 * config/obj-elf.h (OUTPUT_FLAVOR): Define.
1571
86a90ab9
DE
1572start-sanitize-arc
1573Sat Apr 29 21:44:57 1995 Doug Evans <[email protected]>
1574
1575 * config/tc-arc.c (delay_slot_type): Deleted.
1576 (md_assemble): Remember suffixes seen.
1577 Issue warnings for 8 byte jump with delay slot, and conditional
1578 branch immediately following set of condition codes.
1579end-sanitize-arc
1580
85f667f7
DE
1581Thu Apr 27 20:07:33 1995 Doug Evans <[email protected]>
1582
1583 * Makefile.in (RUNTEST): Use one in srcdir if present.
1584 (RUNTESTFLAGS): Define.
1585
931a8fab
KR
1586Wed Apr 26 15:54:10 1995 Ken Raeburn <[email protected]>
1587
1588 Support for more portable alignment handling in assembly code,
1589 based on patches from Bryan Ford <[email protected]>:
1590 * read.c (potable): Added balign and p2align, for aligning by
1591 bytes or powers of two independent of what ".align" does for a
1592 given target.
1593 * doc/as.texinfo: Document them.
1594
404f16f5
RS
1595Tue Apr 25 11:12:04 1995 Rob Savoye <[email protected]>
1596
1597 * configure, configure.in: Look for m68k-*-vxworks* rather than
1598 just m68k-wrs-vxworks so gas can be configured for
1599 m68k-vxworks5.1.
1600
1601Fri Apr 21 15:19:06 1995 Ken Raeburn <[email protected]>
1602
1603 * config/tc-sh.c (md_apply_fix): If fx_r_type is zero, handle
1604 fx_size of 1, and abort on unrecognized sizes.
1605
1606 * config/tc-m68k.c (m68k_ip): Fix bug in last change regarding
1607 non-isvar case.
1608
1609Sun Apr 16 01:52:52 1995 Ken Raeburn <[email protected]>
1610
1611 * config/tc-m68k.h (md_relax_table, TC_GENERIC_RELAX_TABLE):
1612 Missed this one in 11 Apr changes.
1613
1614 * config/tc-i386.h (TC_GENERIC_RELAX_TABLE): Fix typo.
1615
bcee935e
KR
1616Thu Apr 13 18:18:08 1995 Ken Raeburn <[email protected]>
1617
51ba1ae6
KR
1618 * config/tc-sh.c (md_convert_frag): Instead of aborting on large
1619 displacements, print an error message. Don't invoke the code that
1620 followed the abort call until it's been verified.
1621
bcee935e
KR
1622 * config/tc-m68k.c (md_show_usage): Add 68060 to list. Split cpu
1623 list into three lines.
1624
1625Thu Apr 13 14:34:36 1995 Torbjorn Granlund <[email protected]>
1626
1627 * tc-m68k.c (m68k_init_after_args): Test for m68360.
1628 (md_parse_option): Likewise.
1629 (md_show_usage): Mention m68360.
1630 * tc-m68k.h (TARGET_WORD_SIZE): Define.
1631 (TARGET_ARCH): Define.
1632
1633 * expr.c (integer_constant): If TARGET_WORD_SIZE is defined,
1634 sign-extend appropriately.
1635
1636Thu Apr 13 11:20:17 1995 Michael Meissner <[email protected]>
1637
1638 * config/tc-ppc.c (ppc_elf_validate_fix): Properly use PARAMS to
1639 hide prototype from non-ANSI compilers, and don't use ANSI syntax
1640 for arguments.
1641
b5549686
SS
1642Wed Apr 12 12:20:19 1995 Stan Shebs <[email protected]>
1643
1644 * mpw-config.in (TDEFINES): Put empty definition into
1645 makefile fragment.
1646 * mpw-make.in (xmalloc.c.o): Remove.
1647 (as.new): Depend on Version.r.
1648 (Version.r): Generate from version info.
1649
1650 * mpw-make.in: Delete references to hex-value.c.
1651
1652 * mpw-config.in: Add mapping from configs to object file formats,
1653 get VERSION from Makefile.in and add to mk.tmp.
1654 (mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN.
1655 * mpw-make.in (VERSION, gC): Don't define.
1656 (ALL_CFLAGS): Remove -d flags.
1657 (config.h): Remove definition of MPW, add HAVE_STDARG_H,
1658 BFD_ASSEMBLER.
1659
1660 * mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,
1661 include of ::libiberty:.
1662 (config.h): Ifdef contents on GAS_VERSION.
1663
1664 * mpw-make.in (as.c): Compile with C not gC.
1665 (config-stamp): Touch correctly.
1666 (install-only): New target.
1667 (install): Depend on all and install-only.
1668
1669 * mpw-config.in: Parse target and use to generate forward includes
1670 to tc-, obj-, and atof- files, use te-generic.h for emulation.
1671 * mpw-make.in (VERSION): Define.
1672 (as.c): Compile with GCC.
1673 (TARG_OBJECTS, CLIBS): Define.
1674 (as.new): Use LDFLAGS, TARG_OBJECTS, CLIBS and EXTRALIBS in link
1675 command.
1676 (config.h, config-stamp): Build.
1677
1678 * mpw-make.in (C, CFLAGS): Removed definitions.
1679 (ALL_CFLAGS): Define.
1680 Set default rule to use {CC} instead of {C}.
1681
1682 * mpw-make.in (install): Moved here from mpw-build.in.
1683 * mpw-build.in: Removed, functionality in mpw-make.in
1684
1685 * mpw-make.in (CFLAGS): Add more include paths.
1686
1687 * mpw-config.in (varargs.h, sys/*.h): Don't create when
1688 configuring.
1689 * mpw-make.in (CFLAGS): Add -w flag.
1690
1691 * mpw-make.in: Replace 8-bit chars with their names.
1692
1693 * mpw-config.in: New file, MPW version of configure.in.
1694 * mpw-make.in: New file, MPW version of Makefile.in.
1695
5d57a66b
DE
1696start-sanitize-arc
1697Wed Apr 12 07:35:44 1995 Doug Evans <[email protected]>
1698
1699 * config/tc-arc.c (delay_slot_type): New function.
1700 (md_assemble): Use hashed list of insns.
1701 Print warning if 8 byte insn appears in delay slot.
1702 (md_operand): Handle %st(sym1-sym2).
1703 (get_arc_exp_reloc_type): Likewise.
1704 (md_apply_fix, case BFD_RELOC_ARC_B26): Now using implicit addends
1705 so must store them here.
1706end-sanitize-arc
1707
7beebeb6
KR
1708Tue Apr 11 01:42:36 1995 Ken Raeburn <[email protected]>
1709
98df0912
KR
1710 * configure.in: Require at least autoconf 2.3, because earlier
1711 versions lose on some AIX versions.
1712 * configure: Regenerated.
1713
1714 * configure.in: Add m68k-*-elf.
1715 * config/tc-m68k.c (comment_chars) [OBJ_ELF]: Include '#'.
1716 (md_pseudo_table) [OBJ_ELF]: Ignore "swbeg".
1717 (md_begin): Set alt_notend_table['&'], so svr4-style immediate
1718 operands are accepted.
1719 (md_apply_fix): Argument VALP should point to valueT.
1720 (md_convert_frag): Argument SEC should be type segT.
1721 (md_shortopts) [OBJ_ELF]: Accept 'Q' with an argument.
1722 (md_parse_option): Ignore it.
1723 (md_convert_frag_1): Add in frag address for the symbol in the
1724 displacement calculation.
1725 * config/tc-m68k.h (TARGET_FORMAT) [OBJ_ELF]: Use "elf32-m68k".
1726 (TARGET_ARCH): Define.
1727 (REGISTER_PREFIX_OPTIONAL) [OBJ_ELF]: Default to 0.
1728 (LOCAL_LABEL, FAKE_LABEL_NAME, REGISTER_PREFIX_OPTIONAL): Handle
1729 these the same way for OBJ_ELF as for M68KCOFF.
1730
7beebeb6
KR
1731 * gdbinit.in: Add breakpoint in as_abort.
1732
1733 * write.c (cvt_frag_to_fill): If offset is less than zero,
1734 complain about it specifically, instead of reporting an assertion
1735 failure.
1736 (relax_segment): Complain about .org backwards, then ignore it.
1737 Do generic rs_machine_dependent relaxation only if
1738 TC_GENERIC_RELAX_TABLE is defined, and use its value for the base
1739 of the table.
1740 * tc.h (md_relax_table): Delete declaration.
7b1f56d4 1741 * as.h (struct relax_type): Add forward declaration for type.
7beebeb6
KR
1742 * config/tc-a29k.c: Deleted md_relax_table.
1743 * config/tc-{alpha,arm,h8300,hppa,i860,m88k,mips,ppc,sparc,z8k}.c:
1744 Ditto.
1745 * config/tc-{h8500,i386,i960,ns32k,sh,tahoe,vax,w65}.h: Declare
1746 md_relax_table here, and define TC_GENERIC_RELAX_TABLE to expand
1747 to md_relax_table.
1748 * config/tc-h8500.c (md_relax_table): No longer const.
1749 * config/tc-w65.c (md_relax_table): Ditto.
1750 * config/tc-sparc.c (md_short_jump_size, md_long_jump_size):
1751 Deleted.
1752start-sanitize-arc
1753 * config/tc-arc.c (md_relax_table, md_short_jump_size,
1754 md_long_jump_size): Deleted.
1755end-sanitize-arc
1756start-sanitize-rce
1757 * config/tc-rce.h: Declare md_relax_table here, and define
1758 TC_GENERIC_RELAX_TABLE to expand to it.
1759end-sanitize-rce
faf2dc27
KR
1760 * doc/internals.texi: Describe TC_GENERIC_RELAX_TABLE and
1761 WORKING_DOT_WORD. Mention md_*_jump_size (but description needs
1762 to be fleshed out later). Note m68k PCINDEX mode has been checked
1763 in.
7beebeb6 1764
7015284b
KR
1765Mon Apr 10 15:57:42 1995 Ken Raeburn <[email protected]>
1766
7beebeb6
KR
1767 * config/tc-mips.c (nopic_need_relax): New static function, split
1768 out from md_estimate_size_before_relax.
1769 (md_estimate_size_before_relax): Call it.
1770 (load_address, macro): In NO_PIC branches, if nopic_need_relax
1771 returns nonzero, don't attempt GP optimization.
1772
1773 * config/tc-m68k.c (PCINDEX): New macro.
1774 (md_relax_table): No longer const. Add PCINDEX entries.
1775 (m68k_ip): For AINDX with simple symbol operand, generate a
1776 PCINDEX frag if PC is used, or do normal non-AINDX processing for
1777 address register.
1778 (m68k_init_after_args): If cpu is 68000 or 68010, fix
1779 md_relax_table to prevent relaxation of PCINDEX/BYTE mode to
1780 SHORT, since they don't support that mode.
1781 (md_convert_frag_1, case PCLEA/LONG): Add 4 to offset, not 2. Add
1782 support for new PCINDEX modes.
1783 (md_estimate_size_before_relax): Process PCINDEX/SZ_UNDEF mode.
1784
1785 * config/tc-m68k.c (md_convert_frag_1, case PCLEA/SHORT): Add 2 to
1786 offset.
1787 (m68k_ip, case most punctuation/AOFF): If using PC, call add_frag
1788 using PCLEA.
1789
1790 * config/tc-m68k.c: Don't explicitly include config.h. Deleted a
1791 bunch of "#if 0" code and useless comments.
1792 (struct m68k_cpu): New type.
1793 (archs, n_archs): New variables, with single list of name/enum
1794 mapping and aliases.
1795 (m68k_ip): Delete the table here.
1796 (m68k_init_after_args): Use the new table here instead of
1797 open-coding it.
1798 (md_parse_option, case 'm'): Ditto.
1799
7015284b
KR
1800 * doc/Makefile.in (Makefile): Fix rule for running config.status.
1801 (internals.dvi, internals.ps, internals.ps4): New targets, not
1802 built by default.
1803
1804 * doc/internals.texi: Add loud disclaimer. Refill to 79 columns,
1805 specify fill-column in local-variables section. Change
1806 subheadings to subsections so they can be cross-referenced.
1807 Describe broken words, frags, frag chains, generic relaxation,
1808 relax table, m68k relaxation, m68k addressing modes, test suite
1809 code. Add a few words about various file formats.
1810
1811 * doc/as.texinfo (m68k): Recommend using `%' with registers as the
1812 normal case, instead of the exceptional case.
1813
47ba63b2
DE
1814start-sanitize-arc
1815Thu Apr 6 20:00:11 1995 Doug Evans <[email protected]>
1816
1817 * config/tc-arc.c (arc_condition_codes): Deleted.
1818 (init_opcode_tables): Delete cpu_type_map, call
1819 arc_get_opcode_mach instead.
1820 (arc_common): Delete non-ELF stuff. Require leading '.' in .data.
1821 (md_apply_fix): Delete non-ELF stuff.
1822 Disable special handling of limm values, treat them normally.
1823 (get_arc_exp_reloc_type): New argument `data_p'. Callers updated.
1824 (md_assemble): All limm operands must be output by gas, the opcode
1825 insertion routines cannot be used (they don't do anything and we're
69cb5925 1826 using implicit addends now so we need to output something).
47ba63b2
DE
1827 * config/tc-arc.h (FAKE_LABEL_NAME): Define.
1828end-sanitize-arc
1829
1830Thu Mar 30 14:38:47 1995 H.J. Lu ([email protected])
1831
1832 * configure.in: Change linux to default to elf. Using
1833 i[345]86-*-linuxaout will defaults to a.out.
1834 * configure: Rebuild.
1835
6d7bcd2f
TG
1836Wed Mar 29 17:16:30 1995 Torbjorn Granlund <[email protected]>
1837
1838 * config/tc-m68k.c (md_apply_fix_2): Cast negative offsets to offsetT
1839 (for hosting on 64 bit machines).
1840
350f083c
ILT
1841Tue Mar 21 16:53:27 1995 Ian Lance Taylor <[email protected]>
1842
1843 * config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650.
1844
1845Fri Mar 17 16:47:13 1995 Stan Shebs <[email protected]>
1846
1847 * write.c (write_object_file): Add PROGRESS macros.
1848
bff1e14d
JL
1849Fri Mar 17 12:40:34 1995 Jeff Law ([email protected])
1850
1851 * config/tc-hppa.c (pa_comm): Make sure to always reset the frag
1852 and section for common symbols.
1853
1854Thu Mar 16 17:26:18 1995 Michael Meissner <[email protected]>
1855
1856 * config/tc-ppc.c (ppc_elf_validate_fix): Allow non PC relative
1857 pointers in the .ctors and .dtors section also when using the
1858 -mrelocatable option.
1859 (md_parse_option): Support -m403 as a PowerPC computer.
1860 (md_show_usage): Ditto.
1861
e5926c4a
ILT
1862Wed Mar 15 14:45:42 1995 Ian Lance Taylor <[email protected]>
1863
1864 * ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr
1865 may be NULL when given strange input. Don't core dump.
1866
a7f668c0
ILT
1867Tue Mar 14 21:36:34 1995 Ian Lance Taylor <[email protected]>
1868
1869 * config/tc-mips.c (load_register): Don't use addiu for dli of an
1870 unsigned seemingly negative number. Don't bother shifting a zero
1871 value.
1872 (mips_ip): For case 'j', if there are more alternatives, and the
1873 ISA level is at least 3, don't accept an unsigned seemingly
1874 negative number.
1875
f6bc42a3
KR
1876Tue Mar 14 19:16:43 1995 Ken Raeburn <[email protected]>
1877
1878 * read.c (s_app_line): Fix last patch to deal with a line number
1879 of 1.
1880
ce9a2805
MM
1881Tue Mar 14 17:00:57 1995 Michael Meissner <[email protected]>
1882
1883 * config/tc-ppc.c (ppc_elf_validate_fix): Use as_warn_where, not
1884 as_bad_where to give a warning instead of an error.
1885
85a30e59
KR
1886Mon Mar 13 17:03:46 1995 Pat Rankin ([email protected])
1887
1888 * config/tc-vax.c (md_assemble): issue a warning if a constant
1889 is used as an operand where an immediate value is not allowed.
1890
78fcad58
KR
1891Fri Mar 10 19:21:19 1995 Ken Raeburn <[email protected]>
1892
69cb5925 1893 * config/obj-coff.c: Redo my 10 Jan change, but get it right this
78fcad58
KR
1894 time. :-)
1895 (fixup_segment): If linkrelax is set, just return.
1896 (write_object_file): Don't treat h8300 and z8k specially with
1897 regard to fixups.
1898 * config/tc-h8300.c (md_begin): Set linkrelax.
1899 * config/tc-z8k.c (md_begin): Ditto.
1900
5fc2a6ec
ILT
1901Thu Mar 9 18:01:37 1995 Ian Lance Taylor <[email protected]>
1902
1903 * config/obj-coff.c (coff_header_append): Check return value of
1904 bfd_coff_swap_scnhdr_out.
1905
9a6ec5eb
DE
1906Thu Mar 9 13:51:30 1995 Doug Evans <[email protected]>
1907
1908 Delete this patch, it breaks the h8300 assembler.
1909 Tue Jan 10 13:34:14 1995 Ken Raeburn <[email protected]>
1910 * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
1911 specially with regard to fixups.
1912
1913Thu Mar 9 12:28:18 1995 Michael Meissner <[email protected]>
1914
1915 * config/tc-ppc.c (mrelocatable): Change type to boolean.
1916 (md_begin): Set the EF_PPC_RELOCATABLE if -mrelocatable.
1917
a79bf95d
ILT
1918Wed Mar 8 15:39:39 1995 Ian Lance Taylor <[email protected]>
1919
1920 * config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
1921 r10000. If mips_isa is 4, set the machine number to 8000.
1922 (append_insn): If mips_isa is at least 4, don't generate nops for
1923 coprocessor delays. Check INSN_READ_FPR_R when setting
1924 mips_cprmask[1].
1925 (mips_emit_delays): If mips_isa is at least 4, don't generate nops
1926 for coprocessor delays.
1927 (mips_ip): Check for INSN_ISA4 instructions. Handle new argument
1928 types 'h', 'R', 'N', and 'M'.
1929 (md_longopts): Accept "mips4".
1930 (md_parse_option): Handle -mips4, and -mcpu=10000 and -mcpu=8000.
1931 (s_mipsset): Permit .set mips4.
1932
74e1b52e
MM
1933Wed Mar 8 09:36:05 1995 Michael Meissner <[email protected]>
1934
1935 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .stab sections to
1936 have non PC relative relocations with -mrelocatable.
1937
82a7c457
KR
1938Wed Mar 8 02:57:53 1995 Ken Raeburn <[email protected]>
1939
1940 * config/tc-m68k.c (opcode_ptr): Return pointer to const.
1941 (md_begin): Make hash table errors fatal. Process opcode aliases
1942 after main opcode table.
1943 (md_apply_fix_2, case 4): Recode setting of lower_limit to avoid
1944 gcc warning.
1945
3f4487d0
DE
1946start-sanitize-arc
1947Tue Mar 7 20:42:35 1995 Doug Evans <[email protected]>
1948
1949 * config/tc-arc.h (LITTLE_ENDIAN, BIG_ENDIAN): Define.
1950 (DEFAULT_TARGET_FORMAT): Define.
1951 (DEFAULT_BYTE_ORDER): Define to little endian.
1952 (TARGET_FORMAT): Byte order is now selectable.
1953 * config/tc-arc.c (arc_target_format): New variable.
1954 (byte_order): New variable.
1955 (md_longopts): New options -EL, -EB.
1956 (md_parse_option): Recognize them.
1957 (md_show_usage): Print them.
1958 (md_begin): Set target_big_endian.
1959end-sanitize-arc
1960
3e39a556
ILT
1961Tue Mar 7 16:07:10 1995 Ian Lance Taylor <[email protected]>
1962
1963 * doc/as.texinfo: Add documentation for SPARC V9, from Doug Evans
1964 <[email protected]>.
1965
5f241617
JL
1966Mon Mar 6 09:58:34 1995 Jeff Law ([email protected])
1967
1968 * config/tc-hppa.c: Change all occurences of pa-89 with pa-11 to
1969 be consistent with current naming conventions.
1970 (md_begin): Set a default architecture and machine type.
1971 (pa_ip): If the current instruction specifies a newer machine type
1972 than the current machine type, then update the current machine
1973 type.
1974 (need_pa11_opcode): Likewise.
1975
2c23d22b
JL
1976Sun Mar 5 19:38:09 1995 Jeff Law ([email protected])
1977
1978 * config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument
1979 relocation bits for absolute calls.
1980
0578ade3
KR
1981Fri Mar 3 17:41:50 1995 Ken Raeburn <[email protected]>
1982
cb7973c3
KR
1983 * config/tc-h8300.* (md_operand): Change empty function to empty
1984 macro.
1985
1986 * config/tc-h8300.c (build_bytes): Make H8/300-H warning message
1987 clearer.
1988
0578ade3
KR
1989 * write.c (write_contents): If bfd_set_section_contents fails,
1990 print a message and exit, instead of aborting.
1991
3f81f3cf
MM
1992Fri Mar 3 16:26:19 1995 Michael Meissner <[email protected]>
1993
1994 * tc.h (md_apply_fix3): If MD_APPLY_FIX3 is defined, declare
1995 md_apply_fix3.
1996
1997 * write.c (fixup_segment): If MD_APPLY_FIX3 is defined, call
1998 md_apply_fix3 with the normal 2 arguments and the current segment
1999 pointer instead of md_apply_fix.
2000
2001 * config/tc-ppc.h (MD_APPLY_FIX3): Define.
2002
2003 * config/tc-ppc.c (ppc_elf_validate_fix): Warn if -mrelocatable
2004 and a non PC relative relocation that isn't in the .got2 segment
2005 was performed.
2006 (md_apply_fix3): Rename from md_apply_fix and take segment pointer
2007 as third argument. If ELF object format, call ppc_elf_validate_fix
2008 for normal relocations.
2009 (md_parse_option): If ELF object format, recognize the
2010 -mrelocatable switch.
2011
2012Thu Mar 2 16:34:44 1995 Ian Lance Taylor <[email protected]>
2013
2014 * config/tc-i386.h (AOUT_MACHTYPE): Define as 100, not 0.
2015
33d8f469
KR
2016Tue Feb 28 18:29:27 1995 Ken Raeburn <[email protected]>
2017
2018 * config/tc-arm.c, config/tc-arm.h (md_operand): Replaced empty
2019 function in .c file with empty macro in .h file.
2020 * config/tc-h8500.*, config/tc-hppa.*, config/tc-i386.*,
2021 config/tc-i860.*, config/tc-i960.*, config/tc-ns32k.*,
2022 config/tc-ppc.*, config/tc-sh.*, config/tc-sparc.*,
2023 config/tc-tahoe.*, config/tc-vax.*, config/tc-w65.*,
2024 config/tc-z8k.*: Ditto.
2025start-sanitize-rce
2026 * config/tc-rce.*: Ditto.
2027end-sanitize-rce
46f12809
KR
2028 * config/tc-m68k.*: Ditto.
2029
2030 * config/tc-m68k.c (mote_pseudo_table): Removed dots from opcode
2031 names.
33d8f469
KR
2032
2033 * read.c (s_app_line): Ignore non-positive line numbers.
2034
0877841d
ILT
2035Tue Feb 28 15:34:14 1995 Ian Lance Taylor <[email protected]>
2036
2037 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust PLT or
2038 GOT relocs either.
2039
d2c02060
KH
2040Mon Feb 27 13:03:41 1995 Kung Hsu <[email protected]>
2041
2042 * configure.in: add a29k-*-vxworks configuration.
2043
7811254c
ILT
2044Fri Feb 24 14:41:15 1995 Ian Lance Taylor <[email protected]>
2045
d2c02060
KH
2046 * config/tc-mips.c (load_register): Take dbl argument to determine
2047 handling of signed 32 bit values in 64 bit modes. Change all
2048 callers.
2049 (macro): Handle M_DLI and M_DLA_AB.
7811254c 2050
e386acc8
JL
2051Wed Feb 22 23:10:56 1995 Jeff Law ([email protected])
2052
2053 * config/tc-hppa.c (md_apply_fix): Don't subtract the value of the
2054 add symbol if it's a common symbol (the value of a common symbol
2055 is its size, not a value in the traditional sense).
2056
546f5536
ILT
2057Wed Feb 22 21:12:28 1995 Ian Lance Taylor <[email protected]>
2058
2059 * config/tc-mips.c (append_insn): If listing_prev_line is called,
2060 call frag_grow to make sure there is still room for a variant.
2061
7a3761e1
ILT
2062Fri Feb 17 14:50:08 1995 Ian Lance Taylor <[email protected]>
2063
61420a20
ILT
2064 * config/tc-mips.c (md_pseudo_table): Add 2byte, 4byte and 8byte
2065 if OBJ_ELF. From [email protected] (Gary Funck).
2066
7a3761e1
ILT
2067 * config/obj-elf.c (elf_frob_symbol): Warn if a symbol is both
2068 weak and common.
2069 * config/obj-aout.c (obj_aout_frob_symbol): Likewise.
2070
5836732b
MM
2071Fri Feb 17 12:43:47 1995 Michael Meissner <[email protected]>
2072
2073 * config/tc-ppc.c (md_pseudo_table): Don't redefine byte under
2074 ELF.
2075 (ppc_elf_cons): Don't support @pcrel any more, since DIFF_EXPR_OK
2076 allows the normal expressions to generate it.
2077 (md_apply_fix): Convert BFD_RELOC_32 with pcrel bit set into
2078 BFD_RELOC_32_PCREL. Abort if either BFD_RELOC_16 or BFD_RELOC_8
2079 need PC relative relocations.
2080
2081 * config/tc-ppc.h (DIFF_EXPR_OK): Define to allow PC relative
2082 expressions to be handled.
2083
b8ed3de3
DE
2084Thu Feb 16 14:30:13 1995 Doug Evans <[email protected]>
2085
2086 * expr.c (operand): Move md_operand handling to default case
2087 (so it works).
2088
efc538ba
ILT
2089Wed Feb 15 16:08:47 1995 Jason Molenda <[email protected]>
2090
2091 * config/tc-h8500.c (tc_coff_symbol_emit_hook): Add ignored
2092 parameter, to match prototype.
2093
4a6b2f8b
MM
2094Wed Feb 15 15:07:00 1995 Michael Meissner <[email protected]>
2095
2096 * config/tc-ppc.c (md_pseudo_table): If ELF, go to ppc_elf_cons
2097 instead of cons.
2098 (md_show_usage): Show all of the PowerPc options.
2099 (ppc_elf_suffix): New function to recognize ELF suffixes that
2100 specify a relocation, such as @GOT.
2101 (ppc_elf_cons): Replacement for the standard cons function that
2102 knows about the ELF suffixes.
2103 (ppc_fixup): Add reloc field to hold non-standard relocation.
2104 (md_assemble): Handle ELF suffixes like @GOT.
2105 (md_create_short_jump): Dummy in case WORKING_DOT_WORD is not
2106 defined.
2107 (md_create_long_jump): Ditto.
2108 (md_short_jump_size): Ditto.
2109 (md_long_jump_size): Ditto.
2110 (md_apply_fix): Handle BFD_RELOC_32_PCREL, BFD_RELOC_LO16,
2111 BFD_RELOC_HI16, BFD_RELOC_HI16_S, BFD_RELOC_PPC_TOC16, and
2112 BFD_RELOC_16 relocations. If relocation can not be found, print
2113 the decimal value of the relocation.
2114
b2b8c24e
ILT
2115Wed Feb 15 11:46:02 1995 Ian Lance Taylor <[email protected]>
2116
49ad0c4c
ILT
2117 * config/tc-mips.c (md_apply_fix): Accept BFD_RELOC_16, for
2118 DWARF. From [email protected] (Gary Funck).
2119
adcf2b9d
ILT
2120 * config/tc-mips.c (macro): Handle M_U{L,S}D[_A] (unaligned double
2121 loads and stores).
2122
2123 * config/tc-i386.c (tc_i386_fix_adjustable): Do adjust global
2124 symbols if OBJ_AOUT.
2125
b2b8c24e
ILT
2126 * config/tc-mips.c (macro): Don't use the target register as a
2127 base register when building the address for M_L{W,D}{L,R}_AB.
2128
08b7351f
ILT
2129Mon Feb 13 14:44:32 1995 Ian Lance Taylor <[email protected]>
2130
b2b8c24e
ILT
2131 * config/tc-mips.c (KT0, KT1): Define.
2132 (mips_ip): Recognize $kt0 and $kt1 as register names.
2133
08b7351f
ILT
2134 * config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF.
2135 * config/tc-sparc.c (md_apply_fix): If OBJ_ELF, subtract out the
2136 value of a defined symbol; the value was added in by
2137 fixup_segment. This was previously corrected, if the reloc was
2138 changed to be against a section symbol, in tc_gen_reloc.
2139
2140start-sanitize-arc
2141Mon Feb 13 10:02:35 1995 Doug Evans <[email protected]>
2142
2143 * config/tc-arc.h (TC_PARSE_CONS_EXPRESSION): Define.
2144 (TC_CONS_FIX_NEW): Define.
2145 * config/tc-arc.c (get_arc_exp_operand_type): New function.
2146 (init_opcode_tables): Insert registers into global symbol table.
2147 (md_assemble): Call `expression' to parse all expressions.
2148 Call `get_arc_exp_operand_type'.
2149 (md_operand): Recognize %st(foo).
2150 (arc_parse_cons_expression): New function.
2151 (arc_cons_fix_new): New function.
2152 (md_apply_fix): Handle new reloc BFD_RELOC_ARC_B26.
2153end-sanitize-arc
2154
e13a80f7
ILT
2155Fri Feb 10 14:04:04 1995 Ian Lance Taylor <[email protected]>
2156
2157 * config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERN
2158 rather than !S_IS_LOCAL.
2159
2ec8f45e
DE
2160start-sanitize-arc
2161Thu Feb 9 17:44:29 1995 Doug Evans <[email protected]>
2162
2163 * config/tc-arc.c (md_pseudo_table): Add .cpu.
2164 (comment_chars): Add ';'.
2165 (arc_mach_type, mach_type_specified, cpu_tables_init_p): New globals.
2166 (md_parse_option): Delete support for -mmult. Add -mcpu=xxx.
2167 (md_begin): Current ARCs are little endian.
2168 Call bfd_set_arch_mach to set the cpu type.
2169 (init_opcode_tables): New function.
2170 (md_begin): Ignore suffixes and registers not supported by cpu.
2171 (md_assemble): Initialize opcode tables here.
2172 Ignore opcodes not supported by selected cpu.
2173 Always ask for more memory in one piece.
2174 (arc_cpu): New function.
2175 (md_numbers_to_chars): Support both endians (will probably be needed
2176 eventually anyway).
2177 (md_apply_fix): Likewise.
2178 * config/tc-arc.h (LOCAL_LABEL): Delete "_.L_", gcc works around
2179 dwarfout.c quirk.
2180end-sanitize-arc
2181
79c4bb34
ILT
2182Thu Feb 9 18:16:34 1995 Ian Lance Taylor <[email protected]>
2183
2184 * config/tc-i386.c (md_assemble): Adjust conditions for changing
2185 BFD_RELOC_32 to BFD_RELOC_386_GOTPC to handle a switch in frags.
2186 Patch originally from Rob Ryan <[email protected]>.
2187
2188 * config/tc-i386.c: Include subsegs.h.
2189 (tc_i386_fix_adjustable): Declare return value.
2190 (i386_operand): Don't use an assignment directly as a condition.
2191
e6d31135
JL
2192Thu Feb 9 10:37:13 1995 Jeff Law ([email protected])
2193
2194 * config/tc-hppa.c (md_apply_fix): In some cases subtract the
2195 value of the add symbol from valp. Offsets braindamage in the
2196 "machine independent" fixup_segment.
2197
15f146be
KR
2198Wed Feb 8 18:51:23 1995 Ken Raeburn <[email protected]>
2199
e10c7dfc
KR
2200 * messages.c (as_abort): New function.
2201 * as.h (as_abort): Declare it.
2202 (abort): New macro.
2203
15f146be
KR
2204 Thu Jan 19 18:10:05 1995 Pat Rankin ([email protected])
2205
2206 * config/vms-conf.h (HAVE_UNISTD_H): define it unconditionally.
2207 * config-gas.com: test for availability of <unistd.h>; create a
2208 rudimentary one if necessary.
2209
06c08e9a
MM
2210Tue Feb 7 13:34:46 1995 Michael Meissner <[email protected]>
2211
2212 * configure.in: Add powerpc-*-eabi support, which is the same as
2213 powerpc-*-elf.
2214 (configure): Rebuild with autoconf.
2215
c54c7aac
KR
2216Mon Feb 6 03:37:00 1995 Ken Raeburn <[email protected]>
2217
2218 Changes from Bryan Ford <[email protected]> for i386
2219 16-bit and msdos support:
2220 * config/tc-i386.c (flag_16bit_code): New variable.
2221 (set_16bit_code_flag): New function.
2222 (md_pseudo_table): Added entries "code16" and "code32".
2223 (md_assemble): Ensure that correct data-size prefixes get emitted,
2224 based on the current mode. Ensure that 32-bit addressing will
2225 always be done. Move segment-prefix handling code. (Why?) Use
2226 16-bit jumps for 16-bit code, 32-bit jumps for 32-bit code.
2227 * config/tc-i386.h (MAX_PREFIXES): Bump to 5.
2228 (Data16, Data32): Define.
2229 * doc/as.texinfo (i386-16bit): New node.
2230 * configure.in (i386-*-msdos*): New target, using a.out format.
2231 * configure: Regenerated.
2232
e2bf6880
KR
2233Thu Feb 2 15:21:24 1995 Ken Raeburn <[email protected]>
2234
2235 * config/tc-m68k.c (cpu32_control_regs): New macro.
2236 (m68k_init_after_args): Use it, for cpu32 processors.
2237
b003a2d9
KR
2238 Tue Jan 31 17:20:45 1995 Pat Rankin ([email protected])
2239
2240 * config/obj-vms.c (vms_tir_stack_psect): new routine;
2241 (VMS_Set_Data, VMS_Set_Psect, VMS_Store_PIC_Symbol_Reference,
2242 VMS_TBT_Routine_Begin, VMS_TBT_Line_PC_Correlation): use it;
2243 (VMS_Global_Symbol_Spec, VMS_Procedure_Entry_Pt): treat
2244 Psect_Number as `unsigned'.
2245
2246 Thu Jan 26 17:06:28 1995 Pat Rankin ([email protected])
2247
2248 * config/obj-vms.c: performance tuning.
2249 (VMS_Symbol_type_list): convert from single list head to small
2250 array of list heads;
2251 (SYMTYP_HASH): new macro for accessing VMS_Symbol_type_list[];
2252 (find_symbol, setup_basic_type, VMS_typedef_parse): use it;
2253 (VMS_RSYM_Parse): move S_GET_VALUE() inside switch to avoid
2254 calling it for uninteresting cases.
2255
b4682e51
JL
2256Wed Feb 1 23:52:45 1995 Jeff Law ([email protected])
2257
2258 * config/tc-hppa.c (md_apply_fix): Go ahead and call
2259 hppa_field_adjust to get a new value for R_DATA_ONE_SYMBOL
2260 relocations in SOM.
2261 (hppa_fix_adjustable): Refine somewhat.
2262
e2bf6880
KR
2263Fri Jan 27 21:29:53 1995 Michael Meissner <[email protected]>
2264
2265 * config/tc-ppc.h (NO_STRING_ESCAPES): Don't define if we are
2266 using ELF.
2267
a18a0f22
KR
2268Thu Jan 26 19:03:42 1995 Ken Raeburn <[email protected]>
2269
2270 * config/tc-h8300.c (get_specific): Add parens around | inside &.
2271 (skip_colonthing): Set L_8 if ":8" is specified.
2272
76e30835
ILT
2273Thu Jan 26 18:38:01 1995 Ian Lance Taylor <[email protected]>
2274
2275 * config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
2276 601. Check that the error return from hash_insert is "exists".
2277
da8fa3ba
MM
2278Thu Jan 26 11:35:33 1995 Michael Meissner <[email protected]>
2279
2280 * configure: Add support for configuring powerpc-*-eabi.
2281
2282 * config/tc-ppc.c (GOT_symbol): Define if object format is ELF.
2283
2284 * config/tc-ppc.h (GLOBAL_OFFSET_TABLE_NAME): Define if object
2285 format is ELF and not defined to be "_GLOBAL_OFFSET_TABLE_".
2286
8d9a1cce
JW
2287Wed Jan 25 16:23:13 1995 Jim Wilson <[email protected]>
2288
2289 * tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
2290 (md_pseudo_table): Add space for consistent formatting.
2291 (COND8_RANGE, COND12_RANGE): Delete unused macros.
2292 (COND8_F, COND8_M, COND12_F, COND12_M, UNCOND12_F, UNCOND12_M):
2293 Correct minimum and maximum branch offsets. Add comments explaining
2294 why these numbers are correct.
2295
1eeb357e
ILT
2296Wed Jan 25 15:32:09 1995 David Edelsohn <[email protected]>
2297
2298 * config/tc-ppc.c (md_parse_option): Accept mpwr2 as a synonym for
2299 mpwrx; mppc32, m603, and m604 as synonyms for mppc; and mppc64 and
2300 m620 for PowerPC64 mode.
2301 (ppc_symbol_new_hook): Add T0 as synonym for TC0 suffix.
2302
f2224fe2
KR
2303Tue Jan 24 16:44:23 1995 Ken Raeburn <[email protected]>
2304
2305 * config/tc-vax.c (vip): Introduce new ptr-to-const local variable
2306 for scanning operand string.
2307
2308 Sat Jan 21 17:50:38 1995 Pat Rankin ([email protected])
2309
2310 * config/vax-inst.h (struct vop, fields `vop_warn', `vop_error'):
2311 make them pointers to const char;
2312 (struct vit, field `vit_error'): ditto.
2313 * config/atof-vax.c (md_atof): rename local `littlenum_pointer'
2314 to `littlenumP' to avoid shadowing file scope variable.
2315 * config/tc-vax.c (vip_begin, vip_op_defaults, vip_op_1): make
2316 string arguments be pointers to const char;
2317 (vip): make `alloperr' const char *;
2318 (vip_op): make `err' and `wrn' const char *; rename `access' to
2319 `access_mode' to avoid shadowing library function.
2320 * config/obj-vms.c (`symbol_name'): make it const char *;
2321 (get_struct_name): cast one use of `symbol_name' to char *
2322 [caller guarantees that it won't modify the pointer's target];
2323 (PUT_COUNTED_STRING): use pointer to const char;
2324 (VMS_typedef_parse): make `pnt2' const char *;
2325 (Write_VMS_MHD_Records): make `cp' const char *;
2326 (VMS_Modify_Psect_Attributes, array `Attributes'): make const,
2327 and make field `Name' pointer to const char;
2328
2329 * as.h (`seg_name[]' declaration): pointers to const char;
2330 (struct _pseudo_type, field `poc_name'): pointer to const char.
2331 * subsegs.c (`seg_name[]' definition): ditto;
2332 * hash.c (hash_ask): rename argument `access' to `access_type'
2333 to avoid shadowing library function.
2334 * write.c (variable `the_object_file'): move from file scope
2335 to block scope within write_object_file(); free it after use;
2336 (fixup_segment): conditionally exclude it for OBJ_VMS.
2337 (cvt_frag_to_fill): rename argument `headers' to `headersP'
2338 to avoid shadowing file scope variable.
2339
359bb9a3
JL
2340Mon Jan 23 21:42:39 1995 Jeff Law ([email protected])
2341
2342 * config/tc-hppa.c (pa_ip, case 'D'): Fix typo which caused
2343 miscompilation of "diag" instructions.
2344
73433384
KR
2345Mon Jan 23 15:51:41 1995 Ken Raeburn <[email protected]>
2346
2347 * configure: Regenerated.
2348
2349 * config/tc-mips.c: Include libiberty.h.
2350
eb10ff23
ILT
2351Mon Jan 23 14:07:58 1995 Ian Lance Taylor <[email protected]>
2352
9cc7c60b
ILT
2353 * config/tc-sh.h (tc_init_after_args): Don't define.
2354 * config/tc-sh.c (md_begin): Remove unused variable table.
2355 (md_assemble): Remove unused variable p.
2356 (md_convert_frag): Cast fr_address to unsigned long for printf.
2357 (md_apply_fix): Use as_warn_where rather than as_warn.
2358 (sh_init_after_args): Remove empty function.
2359
eb10ff23
ILT
2360 * configure.in (i386-*-gnu*elf*): New target.
2361
be7571b6
ILT
2362Sat Jan 21 19:02:23 1995 Ian Lance Taylor <[email protected]>
2363
2364 * hash.c (hash_ask): If we find the slot after wrapping around,
2365 break out of the loop. Fixes bug in Jan 18 change.
2366
b2683e09
KR
2367Fri Jan 20 17:07:31 1995 Ken Raeburn <[email protected]>
2368
2369 * hash.c (hash_code): Undo last change.
2370
8e86815b
KR
2371Thu Jan 19 14:49:47 1995 Ken Raeburn <[email protected]>
2372
11618ce8
KR
2373 * config/tc-alpha.c (alpha_ip): Initialize local variables to keep
2374 gcc quiet.
2375 (gpdisp_hi16_howto): Don't use "const" with reloc_howto_type.
2376 (in_range_signed): Add parens around subtraction inside shift.
2377 * gasp.c (do_data): Initialize local variable "opname".
2378 (istrue): Provide a default case to set "res" and keep "gcc -Wall"
2379 quiet.
2380 * write.c (write_contents): Deleted unused variable.
2381 (print_symbol_value_1): Declare.
2382 * hash.c (hash_ask): Delete disabled non-strcmp version of the
2383 code, and automatic variables used only in those sections.
2384 * write.c (chain_frchains_together_1): Only define local variable
2385 "prev_fix" if BFD_ASSEMBLER.
2386 * flonum-konst.c (dummy1): Return void.
2387 * config/tc-vax.c (md_assemble): Remove two comparisons of
2388 unsigned numbers versus zero.
b2683e09
KR
2389 * as.h (bcopy): If neither memcpy nor bcopy is defined as a macro,
2390 define to use memcpy.
11618ce8
KR
2391
2392 * config/tc-alpha.c, config/alpha-opcode.h: Revert 2 June changes.
2393 Turns out we never got the assignment done after all.
2394
8e86815b
KR
2395 Cleanup of VAX and VMS code, from Pat Rankin:
2396 * config/obj-vms.c: Changed exported function names to lower case.
2397 (Changed call sites in write.c.) Declare VMS system function
2398 names used, conditional on actually being on VMS. Changed many
2399 functions that returned no useful value to now be declared to
2400 return void. Removed many unused variables. Supply missing
2401 return statements or values. Supply `default' case in switch
2402 statements. Ensure local variables get initialized.
2403 * config/tc-vax.c: Minor changes to silence "gcc -Wall".
2404 * config/obj-vms.h, config/tc-vax.h: Added some missing
2405 declarations.
2406
29c8d82c
KR
2407Wed Jan 18 13:49:26 1995 Ken Raeburn <[email protected]>
2408
fca2796a
KR
2409 * atof-generic.c (flonum_print) [TRACE]: New function.
2410 (atof_generic) [TRACE]: Print multiplier before multiplication,
2411 and print multiplication result before and after copy.
2412
2413 * flonum-mult.c (flonum_multip): Avoid sign extension problems
2414 around multiplication operation.
2415
2416 * atof-generic.c (ASSUME_DECIMAL_MARK_IS_DOT): Define.
2417 (atof_generic) [ASSUME_DECIMAL_MARK_IS_DOT]: Check for '.'
2418 explicitly instead of calling strchr.
2419
29c8d82c
KR
2420 * config/tc-sparc.c (sparc_ip): When scanning successive opcode
2421 table entries, check names for pointer equality before doing
2422 string comparisons.
2423
2424 * hash.c (hash_ask): Call strcmp instead of expanding it inline.
2425 (hash_code): Replaced with a version from bfd.
2426
2427 * config/obj-coff.c (write_object_file): If COFF_FLAGS isn't
2428 defined, default it to zero.
2429
96d1566d
ILT
2430Wed Jan 18 12:16:07 1995 Ian Lance Taylor <[email protected]>
2431
6ece68f0
ILT
2432 * write.c (fix_new_internal): Clear fx_bsr on those targets which
2433 use it.
2434
96d1566d
ILT
2435 * expr.c (operand): Parenthesize && within ||.
2436 * listing.c (listing_newline): Likewise.
2437 (list_symbol_table): Use %lu to print sizeof.
2438 * symbols.c: Comment out unused function indent.
2439 (print_symbol_value_1): Cast pointer to unsigned long for printf.
2440 * config/obj-coff.c (do_relocs_for): Only declare symbol_ptr if it
2441 will be used.
2442 * config/tc-h8300.c (md_begin): Remove unused variable reg.
2443 (get_operand): Declare type of parameter direction. Remove unused
2444 variable size.
2445 (get_specific): Fix comment to avoid nested comments.
2446 (check_operand): Cast X_add_number to unsigned long for printf.
2447 (build_bytes): Remove unused local variables output_ptr, part, and
2448 high.
2449 (build_bytes): Cast X_add_number to unsigned long for printf.
2450 (clever_message): Remove unused variable scan.
2451 (md_assemble): Remove unused variable i.
2452 (tc_coff_sizemachdep): Remove unused function.
2453 * tc-h8300.h (tc_reloc_mangle): Declare.
2454
23f61eaa
ILT
2455Tue Jan 17 10:58:06 1995 Ian Lance Taylor <[email protected]>
2456
2457 * config/tc-mips.c (mips_4650): New static variable.
2458 (md_begin): Handle a cpu string of "4650". If mips_4650 was not
2459 initialized, set it to 0.
2460 (append_insn): Don't insert nops around HI and LO on a 4650.
2461 (mips_emit_delays): Likewise.
2462 (mips_ip): Use INSN_ISA mask to check ISA of instruction. Check
2463 for INSN_4650.
2464 (md_longopts): Add m4650 and no-m4650.
2465 (md_parse_option): Handle mips-cpu=4650. Handle -m4650 and
2466 -no-m4650.
2467 * doc/as.texinfo: Document new MIPS options.
2468
a11a8d55
SC
2469Sat Jan 14 23:48:13 1995 Steve Chamberlain <sac@jonny>
2470
2471 * config/tc-w65.c, config/tc-w65.h, config/w65.mt: Newfiles.
2472 * config/obj-coff.h: Cope with w65.
2473 * configure, configure.in: Recognize w65.
2474
3a762a0b
KR
2475Thu Jan 12 17:56:24 1995 Ken Raeburn <[email protected]>
2476
20323565
KR
2477 * app.c (do_scrub_next_char) [__GNUC__ && __OPTIMIZE__]: If `get'
2478 function is scrub_from_file, call scrub_from_file directly, and
2479 get gcc's inlining capability into the act.
2480
3a762a0b
KR
2481 * Makefile.in (VMS_OTHER_OBJS): Add ../libiberty/hex.o.
2482 (OBJS): Delete hex-value.o.
2483 (REAL_SOURCES): Delete hex-value.c.
2484 (hex-value.o): Delete dependencies.
2485 * hex-value.c: Deleted.
2486 * as.c (main): Call hex_init.
2487 * expr.c, config/tc-mips.c: Include libiberty.h. Replace
2488 hex_value array references with hex_* macros.
2489
c01ebe2a
KR
2490Wed Jan 11 17:51:38 1995 Ken Raeburn <[email protected]>
2491
3a762a0b
KR
2492 * config/tc-h8300.h (COFF_FLAGS): Don't define.
2493 * config/tc-h8500.h (COFF_FLAGS), config/tc-sh.h (COFF_FLAGS),
2494 config/tc-z8k.h (COFF_FLAGS): Ditto.
2495start-sanitize-rce
2496 * config/tc-rce.h (COFF_FLAGS): Ditto.
2497end-sanitize-rce
2498
2499 * config/obj-coff.c (KEEP_RELOC_INFO): Make sure it's always
2500 defined.
2501
c01ebe2a
KR
2502 * config/tc-m68k.c (m68k_ip, cases AOFF and AINDEX): Don't
2503 generate 68020 addressing modes for a 68000 processor.
2504 (md_estimate_size_before_relax, cases PCREL and PCLEA): Ditto.
2505
7a55f462
KR
2506Tue Jan 10 13:34:14 1995 Ken Raeburn <[email protected]>
2507
2508 * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
2509 specially with regard to fixups.
2510
aac4d5a7
KR
2511Mon Jan 9 16:22:28 1995 Ken Raeburn <[email protected]>
2512
483971bd
KR
2513 * config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to
2514 bfd_vma before subtracting.
2515
aac4d5a7
KR
2516 * config/obj-coff.c (size_section): Handle rs_space like rs_fill,
2517 but make sure fr_symbol is null.
2518 (fill_section): Ditto.
2519
1113140a
ILT
2520Sun Jan 8 16:14:19 1995 Ian Lance Taylor <[email protected]>
2521
2522 * config/tc-mips.c (mips_ip): Fix handling of floating point
2523 values when GPOPT is not defined.
2524
2a6978af
KR
2525Fri Jan 6 16:59:41 1995 Ken Raeburn <[email protected]>
2526
2527 * gasp.c: Include string.h. Put config.h before other includes.
2528
71f9b3c0
KR
2529 * config/tc-alpha.c (alpha_ip): Delay calls to emit_add64 until
2530 after any remaining operands are also known to match.
2531
f949f7b8
KR
2532Fri Dec 30 18:21:41 1994 Ken Raeburn <[email protected]>
2533
2534 * listing.c (list_symbol_table): Build a format string based on
2535 the size of the value to be printed, as long as "unsigned long" is
2536 at least as wide, after handling the special case of 4-byte
2537 values.
2538
84951544
KR
2539 * Makefile.in (dependencies): Make $(OBJS) depend on as.h and
2540 everything it includes. Delete those files from per-file
2541 dependencies.
2542
cd3b81bd
KR
2543 * as.h (relax_substateT): Now defined to be unsigned int.
2544 (relax_stateT): Separate typedef from enum definition.
2545 (enum _relax_state): Reordered for better punctuation. Added new
2546 values rs_align_code and rs_space.
2547 (lineno, struct lineno_struct): Unused, deleted.
2548
2549 * as.h: No longer include assert.h.
2550 (as_assert): Declare.
2551 (assert): New definition, calls as_assert longer needed.
2552 (__PRETTY_FUNCTION__): Provide default for older versions of gcc.
2553 * messages.c (as_assert): New function.
2554 * gdbinit.in: Put a breakpoint there.
2555
2556 * read.c (s_space): Rewrite to handle general expressions.
2557 Generate rs_space frags for non-constant values.
2558 * write.c (cvt_frag_to_fill): Treat rs_align_code and rs_space
2559 like rs_align and rs_org. Verify that fr_offset is non-negative,
2560 and force frag type to rs_fill only after assertion checks.
2561 (relax_segment): Treat rs_align_code like rs_align. Treat
2562 rs_space like rs_org in the first switch; in the second, force the
2563 operand to a constant, and use it for the growth size.
2564
582d2a4d
JL
2565Wed Dec 28 20:57:37 1994 Jeff Law ([email protected])
2566
2567 * config/tc-hppa.c (pa_subspace): For sections with the ZERO
2568 attribute, set the "bss" field in the appropriate seginfo structure.
2569
4a9c666e
KR
2570Wed Dec 28 15:01:01 1994 Ken Raeburn <[email protected]>
2571
2572 * subsegs.h: Include obstack.h.
2573
2574Tue Dec 27 18:16:04 1994 Ken Raeburn <[email protected]>
2575
2576 * as.h (struct frag): Enable align* components now.
2577
7e2283d4
KR
2578Tue Dec 20 14:56:31 1994 Ken Raeburn <[email protected]>
2579
87e48495
KR
2580 * frags.c (frag_init): Call obstack_begin on `frags'.
2581 * subsegs.c (subsegs_begin): Don't do it here.
2582 * as.c (main): Call frag_init before subsegs_begin.
2583
2584 * frags.c (frag_append_1_char): New function.
2585 * frags.h (frag_append_1_char): Declare it.
2586 (FRAG_APPEND_1_CHAR): Call it. Old definition is commented out
2587 for now.
2588
2589 * as.h (struct frag): Added (but commented out) new fields for
2590 tracking current alignment.
2591 (frag_now_fix): Changed macro to function declaration.
2592 * frags.c (frag_now_fix): Define function here.
2593 (frag_new): Use it instead of accessing `frags' directly.
2594 * frags.h (frags): Change comment to indicate it shouldn't be
2595 accessed directly.
2596 * subsegs.h (struct frchain): New field frch_obstack, intended to
2597 eventually replace global `frags' obstack.
2598 * subsegs.c (subseg_set_rest): Use frag_now_fix instead of
2599 accessing `frags' directly. Initialize fields of new frchainS
2600 explicitly instead of with memset.
2601 * config/obj-coff.c (obj_coff_ln) [!BFD_ASSEMBLER]: Use
2602 frag_now_fix.
2603 * config/tc-mips.c (s_loc), config/obj-vms.c
2604 (vms_resolve_symbol_redef), symbols.c (colon): Likewise.
2605
9ad5755f
KR
2606 * config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT
2607 instead of long and unsigned long.
2608 (md_apply_fix): Cast value before passing it.
2609
d675782a
KR
2610 * config/obj-aout.h, config/obj-coff.c, config/obj-elf.h,
2611 config/obj-som.h, config/tc-h8500.c, config/tc-hppa.c,
2612 config/tc-hppa.h, config/tc-sh.c, config/tc-z8k.c: Don't rely on
2613 use of ".." when including header files.
2614start-sanitize-rce
2615 * config/tc-rce.c: Ditto.
2616end-sanitize-rce
2617
2618 * config/obj-coff.c (fixup_segment): Reformat condition in an `if'
2619 statement.
2620
7e2283d4
KR
2621 * Makefile.in (SUBDIR_INCLUDES): Deleted.
2622
972b2401
ILT
2623Tue Dec 20 13:40:36 1994 Ian Lance Taylor <[email protected]>
2624
2625 * config/obj-coff.h: Include bfd/libcoff.h, not libcoff.h.
2626
2627start-sanitize-arc
2628Tue Dec 20 09:10:40 1994 Doug Evans <[email protected]>
2629
2630 * config/tc-arc.c: Delete lots of sparc pseudo-ops.
2631end-sanitize-arc
2632
847a01cd
ILT
2633Mon Dec 19 16:53:36 1994 Ian Lance Taylor <[email protected]>
2634
2635 * config/tc-mips.c (load_register): Rewrite to handle O_big 64 bit
2636 constants.
2637 (mips_ip): Accept O_big constants in case 'I'. Change case
2638 'i'/'j' to treat an O_big constant as an out of range value.
2639
60937ce7
JL
2640Mon Dec 19 14:15:07 1994 Jeff Law ([email protected])
2641
b8f7596c
JL
2642 * config/tc-hppa.c (pa_subspace): Make sure SEC_HAS_CONTENTS is
2643 clear for a section with the "ZERO" attribute.
2644
60937ce7
JL
2645 * Reduce useless symbols for ELF in an attempt to make smaller
2646 objects and speed up the linker.
2647 * config/tc-hppa.c (struct call_info): Replace end_symbol field
2648 with a size field.
2649 (hppa_elf_mark_end_function): Delete unneeded function.
2650 (pa_build_unwind_subspace): For the 2nd unwind relocation, use
2651 the function symbol + function size instead of a special symbol
2652 for the end of the function.
69cb5925 2653 (process_exit): Compute the function size here. Don't call
60937ce7
JL
2654 hppa_elf_mark_end_of_function anymore.
2655 (pa_procend): Likewise.
2656 (hppa_fix_adjustable): Only reject 32bit relocations for SOM.
2657 (elf_hppa_final_processing): Simplify.
2658
88cc1324
DE
2659start-sanitize-arc
2660Mon Dec 19 12:57:09 1994 Doug Evans <[email protected]>
2661
2662 * config/tc-arc.c (arc_insert_operand): Change reg parm to pointer
2663 to table entry. All callers changed.
2664 (md_shortopts): New argument -mmult.
2665 (md_parse_option): Recognize it.
2666 (md_show_usage): Print it.
2667 (md_begin): If -mmult, say we have the new multiply and shift insns.
2668 (md_assemble): Fix reloc generation for 32 bit immediate values.
2669 Clean up modifier handling. Try next insn if fake operand says there's
2670 an error. Update to new syntax of insertion/extraction fns.
2671 Recognize predefined aux regs. Don't abort if insertion fn missing.
2672end-sanitize-arc
2673
703139a8
KR
2674Mon Dec 19 13:49:07 1994 Ken Raeburn <[email protected]>
2675
5cda0c7a
KR
2676 * configure.in: Recognize mips-sony-bsd and mips-dec-bsd, but
2677 reject other vendors until we can be sure we're consistent with
2678 bfd.
2679
703139a8
KR
2680 * config/obj-vms.c (Create_VMS_Object_File): Instead of formatting
2681 a buffer to pass to `error', just call `as_fatal' directly.
2682 (VMS_Psect_Spec): Ditto.
2683 (VMS_TBT_Module_Begin, VMS_TBT_Source_File, gen1,
2684 VMS_typedef_parse, VMS_LSYM_Parse, VMS_Emit_Globalvalues): Call
2685 as_tsktsk instead of printf.
2686 (VMS_TBT_Module_Begin, VMS_TBT_Line_PC_Correlation,
2687 VMS_TBT_Source_File, VMS_TBT_Source_Lines,
2688 VMS_Store_Repeated_Data, VMS_Check_For_Main): Use explicit
2689 integers rather than sizeof expressions using basic integer types,
2690 in case host and target aren't the same. Use memcpy or COPY_*
2691 macros instead of possibly unaligned word or longword assignment.
2692
2693 * config/obj-vms.h (OBJ_SYMFIELD_TYPE): New macro.
2694 * config/obj-vms.c (VMS_Store_PIC_Symbol_Reference,
2695 VMS_Check_For_Main, VMS_write_object_file): Use sy_obj instead of
2696 forcing sy_number to hold a pointer.
2697
b63defaa
KR
2698Fri Dec 16 14:40:16 1994 Ken Raeburn <[email protected]>
2699
d6905776
KR
2700 * config/tc-sh.c (md_begin): Don't fill in md_relax_table here.
2701 (md_relax_table): Use static initialization.
2702
091f3a62
KR
2703 * config/tc-h8300.c (parse_exp, get_operands, clever_message,
2704 md_assemble, tc_crawl_symbol_chain, md_undefined_symbol,
2705 tc_headers_hook, md_operand, md_number_to_chars): Don't use DEFUN.
2706
b63defaa
KR
2707 * Makefile.in (CHECKFLAGS): Don't pass AS_FOR_TARGET,
2708 CC_FOR_TARGET, OBJDUMP_FOR_TARGET, NM_FOR_TARGET; they're not
2709 used.
2710 (AS_FOR_TARGET, CC_FOR_TARGET, OBJDUMP, OBJDUMP_FOR_TARGET, NM,
2711 NM_FOR_TARGET): Don't define.
2712 (VMS_OTHER_OBJS): Add xmalloc.o and xexit.o from libiberty.
2713 (tooldir): Use exec_prefix, not libdir.
2714
719153bf
SS
2715Fri Dec 16 11:07:10 1994 Stan Shebs <[email protected]>
2716
254603ca
SS
2717 * config/obj-coff.h: Include libcoff.h, not ../bfd/libcoff.h.
2718
719153bf
SS
2719 * as.h: Include progress.h.
2720 * as.c (main): Call START_PROGRESS and END_PROGRESS.
2721 (main, perform_an_assembly_pass): Call PROGRESS.
2722
0141b6c2
ILT
2723Fri Dec 16 00:46:08 1994 Ian Lance Taylor <[email protected]>
2724
2725 * write.c (adjust_reloc_syms): Use bfd_is_und_section and
2726 bfd_is_abs_section rather than comparing against &bfd_und_section
2727 and &bfd_abs_section.
2728
8b1f3552
JW
2729Thu Dec 15 15:27:14 1994 Jim Wilson <[email protected]>
2730
2731 * config/tc-sh.c (md_begin): Use a local variable when
2732 initializing md_relax_table to avoid errors about modifying a
2733 const data structure.
2734
7ac36f64
ILT
2735Tue Dec 13 15:42:27 1994 Ian Lance Taylor <[email protected]>
2736
2737 * config/tc-ppc.c (tc_gen_reloc): Remove OBJ_ELF hack which
2738 appears to no longer be needed.
2739
6baef6d2
ILT
2740Tue Dec 13 08:04:15 1994 Ian Lance Taylor <[email protected]>
2741
2742 * config/tc-mips.c (macro_build): Accept BFD_RELOC_PCREL* without
2743 requiring that the X_op_symbol be in the text_section.
2744 (macro): Change the test for a legel expression difference to
2745 correspond to changes in pseudo_set in read.c.
2746
bd869652
KR
2747Fri Dec 9 21:04:17 1994 Ken Raeburn <[email protected]>
2748
a55774a1
KR
2749 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Use
2750 bfd_install_relocation.
2751
3504635a
KR
2752 * ecoff.c (ecoff_set_gp_prolog_size): If there is no current
2753 routine, just return.
2754
bd869652
KR
2755 * config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode
2756 value from pattern instead of assuming jsr.
2757 * config/alpha-opcode.h (jmp): Add a "1,Bc" form.
2758
4181c985
KR
2759Thu Dec 8 17:48:25 1994 Ken Raeburn <[email protected]>
2760
b8f52750
KR
2761 * Makefile.in (NM_FOR_TARGET): Use ../binutils/nm.new, not just
2762 plain nm.
2763
4181c985
KR
2764 * configure.in (ns32k-pc532-mach*): Select correct emulation.
2765 (mips-sony-bsd*): Use ecoff.
c5745996 2766 (mips-*-gnu*): New target, using aout format, from Roland McGrath.
4181c985
KR
2767 * configure: Regenerated.
2768
6ea93cc9
DE
2769start-sanitize-arc
2770Tue Nov 29 18:12:22 1994 Doug Evans <[email protected]>
2771
2772 * configure.in (arc-*-elf*): Recognize.
2773 * configure: "regenerated".
4181c985 2774 * config/tc-arc.c, config/tc-arc.h, config/arc.mt: New files.
6ea93cc9
DE
2775end-sanitize-arc
2776
75af551f
KR
2777Tue Nov 29 13:58:10 1994 Ken Raeburn <[email protected]>
2778
d2a0c9f9
KR
2779 Use libiberty version of xmalloc:
2780 * Makefile.in (REAL_SOURCES): Delete xmalloc.c.
2781 (OBJS): Delete xmalloc.o.
2782 (xmalloc.o): Delete dependencies.
2783 * as.c (main): Call xmalloc_set_program_name once program name is
2784 known.
2785
75af551f
KR
2786 * config/tc-alpha.c (in_range_signed, in_range_unsigned): New
2787 routines, split from in_range.
2788 (in_range): Deleted. All calls changed to in_range_*signed.
2789 (create_lita_section): Macro deleted. Single use expanded in
2790 place.
2791 (alpha_ip): Handle `t' and `8' operand types.
2792 (md_apply_fix): Handle BFD_RELOC_12_PCREL. Print name of
2793 unhandled relocation types.
2794 * config/alpha-opcode.h: Added HALT and DRAINA. Disabled MOVI,
2795 since it doesn't work, and isn't supported by the native
2796 assembler.
2797
2798 * input-scrub.c: Change wording of a comment to avoid interference
2799 with Cygnus source-control tools.
2800
2801 * as.h (errno) [NEED_DECLARATION_ERRNO]: Declare.
2802
2803 * config/tc-m68k.c (init_table): List buscr and pcr control
2804 registers.
2805 (m68k_ip, case 'J'): Handle them.
2806
23c17fea
KR
2807 Delete signal handler code. It's been disabled since March 1993
2808 without complaints.
2809 * as.c: Don't include signal.h.
2810 (got_sig): Unused function deleted, declaration deleted.
2811 (SIGTY): Macro deleted.
2812 (main): Deleted disabled code for establishing signal handler.
2813
4181c985 2814start-sanitize-rce
75af551f
KR
2815 Tiemann should've noted something like this:
2816 * config/tc-rce.c, config/tc-rce.h: New files.
2817 * as.c (main) [TC_RCE]: Call dump_literals.
2818 * configure.in: Handle rce-*-aout.
2819 * configure: Regenerated.
4181c985 2820end-sanitize-rce
75af551f 2821
326fe1a3
DE
2822Mon Nov 28 11:37:35 1994 Doug Evans <[email protected]>
2823
2824 * app.c (do_scrub_next_char): Insert missing newline at end of file
2825 like warning says we do.
2826
e07f8926
JL
2827Mon Nov 28 00:11:15 1994 Jeff Law ([email protected])
2828
2829 * config/tc-hppa.h (pa_check_eof): Declare new extern function.
2830 (tc_frob_file): Define to call pa_check_eof.
2831
2832 * config/tc-hppa.c (pa_check_current_space_and_subspace): New
2833 function to verify the current space and subspace are reasonable.
2834 Call for the appropriate pseudo-ops and before instruction parsing.
2835 (pa_check_eof): New function to verify enter/exit and proc/procend
2836 pairs match at EOF.
2837 (pa_code): Simplify.
2838
2839 * config/obj-som.c: Delete #if 0 code.
2840
3f67e000
SC
2841Wed Nov 23 19:36:09 1994 Steve Chamberlain ([email protected])
2842
3f81f3cf
MM
2843 * config/obj-coff.h (TARGET_FORMAT): Select between coff-shl and
2844 coff-sh.
3f67e000
SC
2845 * config/sh.mh (TARG_CPU_DEPENDENTS): Get it right.
2846 * config/tc-sh.c (little): New function.
2847 (md_parse_option): Notice new option.
2848 (build_relax, build_Mytes, md_atof, md_convert_frag, md_apply_fix):
69cb5925 2849 Cope with little endian data.
3f67e000
SC
2850 * config/tc-sh.h (COFF_MAGIC, LISTING_HEADER): Endian dependent.
2851
32c7d5d8
JL
2852Wed Nov 23 10:54:38 1994 Jeff Law ([email protected])
2853
2854 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Revert last
2855 change. The real bug was in bfd/elfcode.h and has been fixed.
2856
740e5428
JL
2857Tue Nov 22 23:31:20 1994 Jeff Law ([email protected])
2858
2859 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Add section->vma
2860 to the relocation's offset.
2861
aa30c7ee
SC
2862Tue Nov 22 14:37:58 1994 Steve Chamberlain ([email protected])
2863
2864 * Makefile.in (INSTALL_XFORM): Fix typo.
2865
3a443b1e
C
2866Tue Nov 22 10:23:25 1994 J.T. Conklin <[email protected]>
2867
2868 * config/tc-alpha.c (s_alpha_set): Ignore the .set (no)move and
2869 .set (no)volatile directives.
2870
e67b3aa3
JL
2871Tue Nov 15 21:44:13 1994 Jeff Law ([email protected])
2872
3a443b1e
C
2873 * config/tc-hppa.c (pa_subspace): Make sure to always reset
2874 current_subspace.
2875 (pa_text, pa_data): Likewise.
2876
e67b3aa3
JL
2877 * config/tc-hppa.c (pa_align): New function. Aligns the current
2878 offset within the current subspace along with updating the
2879 alignment of the subspace itself.
2880 (pa_subspace): Default alignment to one byte rathern than zero
2881 bytes to avoid setting alignment to log2(0).
2882 (md_pseudo_table): Use pa_alignment for .align.
2883
8de6b5f8
KR
2884Tue Nov 15 15:24:45 1994 Ken Raeburn <[email protected]>
2885
2886 * messages.c (as_fatal): Always put a space after "fatal error:"
2887 when printing message.
2888
1a9a95bb
JL
2889Tue Nov 15 11:10:43 1994 Jeff Law ([email protected])
2890
2891 * config/tc-hppa.h (obj_frob_symbol): Delete.
2892 (tc_frob_symbol): Make definition conditional on OBJ_SOM or
2893 OBJ_ELF. For ELF subtract out symbol->section->vma for non common
2894 symbols.
2895
757d4129
KR
2896Wed Nov 9 14:53:03 1994 Ken Raeburn <[email protected]>
2897
2898 * config/te-delta.h: New file, derived from te-sysv32.h.
2899
642b6186
ILT
2900Wed Nov 9 11:52:44 1994 Ian Lance Taylor ([email protected])
2901
2902 * config/tc-ppc.c (ppc_bf): Always set coff_line_base.
2903
f4c01c95
KR
2904Mon Nov 7 01:58:49 1994 Ken Raeburn <[email protected]>
2905
642b6186
ILT
2906 * Makefile.in (VERSION): Bump to 2.5.3.
2907
3e7acf98
KR
2908 * configure.in: Compare generic cpu name against "sparc", not
2909 "sparc*", since sparc variants should be changed to "sparc".
2910 * configure: Regenerated with autoconf 2.1.
2911
f4c01c95
KR
2912 * config/tc-a29k.c (octal, toHex): Variables deleted.
2913 (isoctal): Macro deleted.
2914 (md_begin): Don't initialize them.
2915 (machine_ip, case 'P'/'A'): For absolute operand, generate an
2916 error message if it's out of range.
2917 (md_apply_fix, case RELOC_JUMPTARG): Check range for PC-relative
2918 jumps.
2919 (md_apply_fix): Delete code inside "#if 0".
2920
5b162d37
KR
2921Thu Nov 3 20:20:40 1994 Ken Raeburn <[email protected]>
2922
b4123234
KR
2923 * config/go32.mh: Unused file deleted.
2924
5b162d37
KR
2925 * read.c (get_absolute_expression): Indicate that the error may
2926 merely be that the expression can't currently be reduced.
2927
0cb42d6f
C
2928Thu Nov 3 16:09:59 1994 J.T. Conklin ([email protected])
2929
2930 * config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as
2931 "a.out-m68k-netbsd".
2932 * config/tc-sparc.h (TARGET_FORMAT): If TE_NetBSD define as
2933 "a.out-sparc-netbsd".
2934
2935 * config/te-nbsd.h: New file, NetBSD target emulation
2936 * config/te-netbsd.h: Removed.
69cb5925 2937 * configure.in (i[345]86-*-netbsd*,m68*-*-netbsd*,sparc*-*-netbsd*):
0cb42d6f
C
2938 Set bfd_gas. Use nbsd emulation.
2939
f2889110
KR
2940Thu Nov 3 17:44:47 1994 Ken Raeburn <[email protected]>
2941
2942 Changes from net 2.5.2 release branch:
2943
2944 * configure.in: Put AC_DEFINE(sparcv9) on its own line, so that
2945 the shell variable settings associated with it are permanent. For
2946 CPUs requiring bfd_gas=yes, select it based on CPU only, not
2947 individual target names. Handle m68k-hp-hpux*, not just -hpux.
2948
2949 * config/tc-z8k.c (tc_coff_symbol_emit_hook): Add dummy argument
2950 to match prototype in obj-coff.h.
2951
2952 * configure.in: Skip tests for defining WANT_FOPEN_BIN and
2953 IBM_COMPILER_SUX.
2954 * acconfig.h: Deleted them.
2955 * configure, conf.in: Rebuild with autoconf 2.0.
2956 * config/go32.cfg, config/vms-conf.h: Updated.
2957
2958 * config/tc-m68k.c (md_apply_fix_2, md_convert_frag_1): Always use
2959 IBM_COMPILER_SUX version of code, with comments indicating why.
2960
2961 * listing.c (file_info): Use text mode when opening file for read.
2962 Use "r" directly, no macro.
2963 * input-file.c (input_file_open): Don't use FOPEN_RT, just use
2964 "r".
2965 * read.c (s_include): Ditto.
2966 * output-file.c (output_file_create): Try both "wb" and "w", don't
2967 bother with FOPEN_* macros.
2968 * as.h: Don't include fopen-*.h.
2969
2970 * config/alpha-opcode.h: Make "ret" with no operands equivalent to
2971 "ret zero,(ra)", to match OSF1 and to be consistent with both
2972 one-operand forms.
2973
2974 Patches from DJ Delorie:
2975 * as.h (alloca): undef alloca before defining it just in case
2976 * config/go32.cfg: new file for autoconf values
2977 * config/te-go32.h: new file
2978 * configure.bat: new for autoconf
2979
2980 * config/tc-i386.c (md_assemble): Fix typo in GOTPC check; had =
2981 for ==.
2982
2983 * configure.in: If target_frag doesn't exist, use /dev/null.
2984
2985 * as.c (parse_args): For non-VMS systems, re-add `v' to
2986 std_shortopts. Add "verbose" to list of long options.
2987
2988 * write.c (adjust_reloc_syms): When generating an absolute section
2989 symbol as a placeholder, don't mark it as used in a relocation
2990 entry, here.
2991
2992 * Makefile.in (comparison): Compare using makefile code from gcc,
2993 stripped down to discard subdir stuff and adapted to give a
2994 non-zero exit status if either file differs.
2995
a2c49209
ILT
2996Thu Nov 3 15:43:02 1994 Ian Lance Taylor <[email protected]>
2997
2998 * config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments for
2999 NO_PIC case.
3000
2622a6c2 3001Tue Nov 1 16:10:59 1994 Ian Lance Taylor <[email protected]>
da15a93e
ILT
3002
3003 * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit
3004 switching to the readonly data section.
2622a6c2
ILT
3005
3006 * ecoff.c (ecoff_directive_type): Fix warning message.
3007
ec11c09c
JL
3008Sun Oct 30 00:57:35 1994 Jeff Law ([email protected])
3009
3010 * config/tc-hppa.c (pa_proc): Delete disabled code to put each
3011 proc in its own subspace, we're not going to use it.
3012
4bb0cc41
ILT
3013Tue Oct 25 14:44:33 1994 Ian Lance Taylor <[email protected]>
3014
94b68f04
ILT
3015 * config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD in
3016 .rdata does not become a variant frag.
3017
4bb0cc41
ILT
3018 * config/tc-mips.c (mips_cpu): Initialize to -1.
3019 (md_begin): Don't mips_cpu if it was already set.
3020 (md_parse_option): For -mipsN, don't set mips_cpu if it was
3021 already set. For -mcpu=, just set mips_cpu, not mips_isa.
3022
9da4c5d1
ILT
3023Fri Oct 21 20:42:29 1994 Ian Lance Taylor <[email protected]>
3024
3025 * config/tc-mips.c (md_pseudo_table): If OBJ_ELF, handle .section.
3026 (s_elf_section): New static function.
3027 * ecoff.c (ecoff_build_symbols): Don't abort if we don't recognize
3028 the section when setting the storage class; default to sc_Data.
3029
e443a021
JL
3030Thu Oct 20 00:43:38 1994 Jeff Law ([email protected])
3031
3032 * config/tc-hppa.c (md_apply_fix): Set new_val to 8 for all
3033 fixups to branch instructions (not just pc-relative ones) which
3034 will generate SOM relocations.
3035
030915dc
ILT
3036Wed Oct 19 13:41:56 1994 Ian Lance Taylor <[email protected]>
3037
3038 * config/tc-a29k.c: Include ctype.h with angle brackets.
3039 (define_some_regs): Add new special register names defined on the
3040 29040.
3041 (parse_operand): Add argument opt. If non-zero, don't warn about
3042 a missing operand.
3043 (machine_ip): If handling argument type 'I', pass opt as non-zero
3044 to parse_operand. Handle new optional operand type 'I'.
3045 (md_undefined_symbol): Handle special register names (srNN).
3046
683f4743
ILT
3047Tue Oct 18 00:45:24 1994 Ian Lance Taylor ([email protected])
3048
3049 * write.c (renumber_sections): New static BFD_ASSEMBLER function.
3050 (write_object_file): Call it after removing gas created sections.
3051
f10a96cb
ILT
3052Mon Oct 17 18:06:05 1994 Ian Lance Taylor <[email protected]>
3053
62d39689
ILT
3054 * symbols.c (symbol_create): Use udata.p, not just udata.
3055 * config/obj-elf.c (obj_ecoff_set_ext): Likewise.
3056 (elf_get_extr): Likewise.
3057
f10a96cb
ILT
3058 * read.c (read_a_source_file): The second argument to as_where is
3059 unsigned int *, not int *.
3060
3061Mon Oct 17 02:26:32 1994 Jeff Law ([email protected])
3062
3063 * config/tc-hppa.c: Eliminate all uses of fx_addnumber.
3064 (tc_gen_reloc): Simplify. It's no longer necessary to set a
3065 reloc's addend field to zero for function symbols.
3066 (md_apply_fix): Simplify. For fixups which will require a SOM
3067 reloc, just clear out the necessary bits in the output file.
3068
2d928291
KR
3069Fri Oct 14 19:06:46 1994 Ken Raeburn <[email protected]>
3070
3071 * Makefile.in (BISON): Use bison -y, not bison.
3072
3073Thu Oct 13 19:22:54 1994 Ken Raeburn <[email protected]>
3074
3075 * Makefile.in (VERSION): Updated to 2.5.
3076 (clean-here): Delete stamp-mk.com.
3077 (distclean): Delete .gdbinit.
3078 * Version 2.5 released.
3079
ba49e48d
KR
3080Wed Oct 12 20:30:51 1994 Ken Raeburn <[email protected]>
3081
3082 * config/te-nbsd532.h: Renamed from te-netbsd532.h.
3083 * configure.in, configure: Adjusted.
3084
4992dbc9
C
3085Wed Oct 12 16:33:38 1994 J.T. Conklin ([email protected])
3086
3087 * config/cplus-dem.c: Removed. It isn't used. Even if it was,
3088 it's better to use the one in libiberty.
3089
2cc0357f
KR
3090Wed Oct 12 18:48:39 1994 Ken Raeburn <[email protected]>
3091
3092 * symbols.c (resolve_symbol_value, case O_symbol): Undo last
3093 change; it breaks the rs6000 support, and doesn't seem to be
3094 needed.
3095
eab55c1c
C
3096Wed Oct 12 11:56:50 1994 J.T. Conklin ([email protected])
3097
3098 * config/tc-i386.h,te-netbsd532.h (TARGET_FORMAT): Changed to
3099 a.out-<arch>-netbsd to match corresponding changes in BFD.
3100
f0b556a2
ILT
3101Wed Oct 12 11:06:11 1994 Ian Lance Taylor ([email protected])
3102
3103 * config/tc-ppc.c (ppc_fix_adjustable): Resolve symbol values
3104 rather than explicitly adding the frag address.
3105 * config/obj-coff.c (coff_frob_symbol): Add a zero entry to mark
3106 the end of the line numbers; this replaces the zero entry which
3107 used to be added by coff_add_linesym, removed Oct 7.
3108 (coff_adjust_section_syms): Ignore sections with no seginfo.
3109
3256c4b5
KR
3110Wed Oct 12 01:41:37 1994 Ken Raeburn <[email protected]>
3111
3112 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Create a
3113 "stage" symlink to the appropriate stage* directory, and use it
3114 instead in the -B options.
3115 (comparison): Revert yesterday's change.
3116
15dc8a20
KR
3117Tue Oct 11 16:48:11 1994 Ken Raeburn <[email protected]>
3118
3119 * config/tc-sparc.c (tc_gen_reloc): For non-a.out relocations, if
3120 pc-relative, use fx_offset only, ignore address of relocation.
3121
c8caa6c5
ILT
3122Tue Oct 11 15:24:00 1994 Ian Lance Taylor <[email protected]>
3123
3124 * config/tc-mips.c (mips_ip): Don't use S_IS_LOCAL when checking
3125 for an embedded PIC switch expression, since the definition of
3126 S_IS_LOCAL was changed.
3127
6d60424f
KR
3128Tue Oct 11 15:05:11 1994 Ken Raeburn ([email protected])
3129
3130 * Makefile.in (comparison): When comparing as.new or gasp.new, try
3131 running the binary through sed to avoid differences due to
3132 "stage1" or "stage2" having been written into the binary.
3133
15a90f75
KR
3134Sat Oct 8 01:48:04 1994 Ken Raeburn ([email protected])
3135
3136 ELF symbol size handling, based on code from Eric Youngdale:
3137 * config/obj-elf.h (OBJ_SYMFIELD_TYPE): New macro. Adds an
3138 expression pointer to the symbol structure, used for `size'
3139 expressions that couldn't be reduced to constants when initially
3140 processed.
3141 (elf_frob_symbol): Declare.
3142 (obj_frob_symbol): Call elf_frob_symbol always, rather than
3143 ecoff_frob_symbol only if ECOFF_DEBUGGING defined.
3144 * config/obj-elf.c (obj_symbol_new_hook): Deleted unused code.
3145 Clear sy_obj field.
3146 (obj_elf_size): Deleted unused code. If size is non-reducible
3147 expression, allocate some storage for the sy_obj field and copy
3148 the expression.
3149 (elf_frob_symbol): New function. Computes sizes, calls
3150 ecoff_frob_symbol if appropriate.
3151
3152 * write.c (fixup_segment): For i386 elf and coff (for now), don't
3153 add in value of symbol from another defined section of the file.
3154
ecee4027
KR
3155Fri Oct 7 17:54:02 1994 Ken Raeburn <[email protected]>
3156
3157 * config/tc-m88k.h (TC_KEEP_FX_OFFSET): Define.
3158 * config/obj-coff.c (do_relocs_for): Test only TC_KEEP_FX_OFFSET,
3159 rather than both it and TC_M88K.
3160 (coff_adjust_section_syms): New function.
3161 (coff_frob_section): For non-empty sections, create aux entry for
3162 the section symbol, indicating the size.
3163 (n_line_nos): New variable.
3164 (add_lineno): Increment it.
3165 (coff_add_linesym): Increment n_line_nos, don't call add_lineno.
3166 (coff_frob_file): New function; map coff_adjust_section_syms over
3167 sections.
3168 (obj_coff_line): Only reset line_base for .bf symbols.
3169 * config/obj-coff.h (coff_adjust_section_syms, coff_frob_file):
3170 Declare.
3171 (obj_frob_file): New macro.
3172
3173 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Renamed from
3174 obj_frob_forward_symbol, and rewritten for new parameter list.
3175
3176 Mon Oct 3 21:02:38 1994 Pat Rankin ([email protected])
3177
3178 * config/obj-vms.h (S_IS_LOCAL): fix obsolete flagseen[] reference.
3179
3180Wed Oct 5 11:49:26 1994 Ian Lance Taylor <[email protected]>
3181
3182 * config/obj-ecoff.c (obj_pseudo_table): Accept .esize and .etype
3183 as synonyms for .size and .type.
3184
b2d7b325
ILT
3185Wed Oct 5 00:08:10 1994 Ian Lance Taylor ([email protected])
3186
3187 * config/obj-coff.c (coff_frob_section): Remove assert about
3188 section alignment.
3189 * config/tc-sparc.c (md_section_align): Use section alignment, not
3190 xvec align_power_min field.
3191
dc87e0ce
KR
3192Fri Sep 30 19:05:20 1994 Pat Rankin ([email protected])
3193
3194 * vmsconf.sh (make-gas.com): handle DCL verification to enable
3195 sensible feedback to the user while gas is being built.
3196
76a390e2
KR
3197Fri Sep 30 16:23:31 1994 Ken Raeburn <[email protected]>
3198
13a336c4
KR
3199 * Makefile.in (DISTSTUFF): New variable, listing only make-gas.com
3200 for now.
3201 (diststuff): New target; builds DISTSTUFF.
3202 (realclean): Separate target, depend on clean and distclean, then
3203 delete DISTSTUFF.
dc87e0ce
KR
3204 * make-gas.com: Deleted.
3205
76a390e2
KR
3206 * config/tc-i386.c (i386_validate_fix) [BFD_ASSEMBLER]: New
3207 function. Converts reloc for "foo-GOT" to BFD_RELOC_386_GOTOFF
3208 reloc for "foo".
3209 (i386_operand): Don't look up section symbol for
3210 undefined_section.
3211 (reloc): Always permit return of 8- and 16-bit relocation types.
3212 Add a space after "pc-relative" in the error message.
3213 (tc_i386_fix_adjustable) [BFD_ASSEMBLER]: Reject
3214 BFD_RELOC_386_GOTOFF relocs.
3215 (i386_operand): For any GOTOFF reloc, convert it to a BFD_RELOC_32
3216 with a "foo-GOT" value.
3217 * config/tc-i386.h (i386_validate_fix): Declare it.
3218 (TC_VALIDATE_FIX): New macro -- call it.
3219 (NOP_OPCODE): Cast to `char' to avoid compiler warnings.
3220
3221 * as.h: If __STDC__ is not defined and varargs.h is available, use
3222 it rather than stdarg.h.
3223
3224 * write.h (struct fix): Added new bitfield fx_plt, for fixups
3225 referring to PLT entries.
3226 * write.c (fix_new_internal): Initialize fx_plt to zero.
3227 (adjust_reloc_syms): Re-fetch `sym' after top of reduction loop.
3228 Don't adjust fx_offset by frag address, since S_GET_VALUE now
3229 includes the frag address.
3230 (fixup_segment): Changed local var PCREL to type int, added PLT.
3231 If PC-relative fixup refers to a PLT entry for a symbol in the
3232 current section, don't reduce it.
3233
3234 * write.c (adjust_reloc_syms): Exit loop through a label. If
3235 DEBUG5 is defined, print out each fixup before and after
3236 processing.
3237 (fixup_segment): If DEBUG5 is defined, print out each fixup before
3238 and after processing.
3239 (print_fixup): Added prototype. Show address on first line. Show
3240 fx_offset and fx_subsy. [!BFD_ASSEMBLER]: Only show fx_r_type if
3241 NEED_FX_R_TYPE is defined.
3242
3243 * symbols.c (print_symbol_value_1): Check S_IS_LOCAL, S_IS_EXTERN,
3244 S_IS_DEBUG, S_IS_DEFINED also.
3245
9dc6c00f
KR
3246Thu Sep 29 18:57:06 1994 Ken Raeburn <[email protected]>
3247
10ff87e9
KR
3248 * Makefile.in (all): Depend on .gdbinit.
3249 (.gdbinit): Rebuild from gdbinit.in by running config.status.
3250
3251 * gdbinit.in: Define new function "pf". Fix doc on "pe" and "ps".
3252
9dc6c00f
KR
3253 * write.c (print_fixup): Print source location on first line.
3254 Show fx_r_type and fx_addsy fields.
3255
648acaa0
KR
3256Wed Sep 28 14:56:39 1994 Ken Raeburn <[email protected]>
3257
b8480abc
KR
3258 * configure.in: Set bfd_gas for all sparc targets in one place,
3259 instead of separately for each. Correctly handle user-supplied
3260 "--enable-bfd-gas" option.
3261
3262 * gdbinit.in: Move "break abort" to end, in case gdb complains.
3263
3264 * as.h (PRINTF_WHERE_LIKE, PRINT_LIKE) [USE_STDARG, !__GNUC__]:
3265 Use PARAMS macro.
3266
3267 * symbols.c (resolve_symbol_value, case O_symbol): Don't do any
3268 processing if add_symbol is undefined or in expr_section.
3269 (resolve_symbol_value, case O_add): For symbol plus
3270 constant-valued symbol, convert to O_symbol and re-reduce.
3271 (S_GET_VALUE): If symbol needs resolving, resolve it.
3272 (indent_level): No longer static.
3273 (print_symbol_value_1): Don't print frag address if it matches
3274 zero_address_frag. Don't print "resolving" if already resolved.
3275 Print segment name. Don't call print_expr_1 on an undefined
3276 symbol.
3277 (print_expr_1): Fix whitespace before printing X_add_number.
3278
648acaa0
KR
3279 * expr.c (make_expr_symbol): No longer static. Use symbol_create,
3280 not symbol_new, for symbols holding expression values.
3281 * expr.h (make_expr_symbol): Move declaration here.
9ff0f5ef
KR
3282 * write.c (fix_new_exp): Handle O_add by creating an
3283 expression-valued symbol, and calling fix_new_exp recursively.
3284 (adjust_reloc_syms): If a fixup's symbol value is a sum of an
3285 undefined symbol and a constant, fold the constant into the fixup,
3286 and refer to the undefined symbol directly. Then process the
3287 fixup again from scratch.
3288 (write_object_file): Before calling adjust_reloc_syms, make a pass
3289 through the symbol list trying to resolve values.
3290
3291 * write.c (print_fixup): New routine, for debugging.
3292 (write_relocs): Call bfd_install_relocation. Deleted various
3293 hacks for working around problems with bfd_perform_relocation.
3294
3295 * Makefile.in (VERSION): Update to 2.4.90.
648acaa0 3296
7b777690
ILT
3297Wed Sep 28 11:50:40 1994 Ian Lance Taylor ([email protected])
3298
620a590e
ILT
3299 * Makefile.in (gasp.o): Depends upon config.h.
3300
3f42c69e
ILT
3301 * config/tc-mips.c: Include subsegs.h.
3302 (md_apply_fix): If an unconditional b or bal overflows, and we are
3303 not assembling PIC code, replace it with a j or jal.
3304
7b777690
ILT
3305 * config/tc-mips.c (md_apply_fix): Correct branch overflow test.
3306 Use as_bad_where and as_warn_where rather than as_bad and as_warn.
3307
3308Mon Sep 26 17:15:59 1994 Ian Lance Taylor ([email protected])
3309
3310 * write.c (write_relocs): Add file name and line number to
3311 as_fatal calls. Handle bfd_reloc_overflow case specifically when
3312 RELOC_EXPANSION_POSSIBLE.
3313
3314Fri Sep 23 16:11:28 1994 Ken Raeburn <[email protected]>
3315
3316 * as.h (USE_STDARG, USE_VARARGS): Define one or neither of these
3317 here. Use them for deciding which PRINTF*LIKE macro definitions
3318 to use.
3319 * messages.c: Use them, instead of NO_STDARG, NO_VARARGS.
3320 [!USE_STDARG && !USE_VARARGS] (va_alist, va_dcl, ...): Provide
3321 default definitions matching what we were doing before.
3322 (as_tsktsk): Remove the non-stdarg, non-varargs version, and
3323 always use the varargs form if not using stdarg. It's safe to
3324 always use vfprintf, because libiberty will provide it if the
3325 native system doesn't. Also, always make format be const.
3326 (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
3327
144659ab
ILT
3328Fri Sep 23 14:42:34 1994 Ian Lance Taylor ([email protected])
3329
3330 * config/tc-mips.c (load_register): Always use addiu when adding a
3331 constant to $zero--no need to use daddiu.
3332 (macro): Hack the -mips3 overflow tests to not fail when offsetT
3333 is only 32 bits.
3334
3335 * symbols.h (copy_symbol_attributes): Declare.
3336
3337Thu Sep 22 21:58:24 1994 Ken Raeburn <[email protected]>
3338
3339 * listing.c: Bugfixes based in part on patches from Paul
3340 Kranenburg.
3341 (listing_newline): Check filename as well as line number when
3342 deciding whether to record it.
3343 (list_symbol_table) [S_IS_REGISTER]: Check that S_IS_REGISTER is
3344 false (if defined) as well as checking for reg_section.
3345 (listing_listing): Iterate fetching lines while line number is too
3346 low, and we haven't run off the end of the input file.
3347
3348 * config/vms-conf.h: Changed HAVE_DELETE to HAVE_REMOVE.
3349
bdaa198a
KH
3350Thu Sep 22 13:39:10 1994 Kung Hsu ([email protected])
3351
3352 * ecoff.c (ecoff_generate_asm_lineno): check if
3353 current_stabs_filename is NULL before strcmp.
cacd15c4 3354 * read.c (read_a_source_file): fix a bug in generate_asm_lineno
bdaa198a
KH
3355 checking.
3356
8068b96a
KR
3357Wed Sep 21 18:17:35 1994 Ken Raeburn <[email protected]>
3358
3359 * config/ho-*.h: Now-unused files deleted.
3360
3361 * symbols.c (copy_symbol_attributes): New function. Copies BFD
3362 symbol flags and calls OBJ_COPY_SYMBOL_ATTRIBUTES.
3363 (resolve_symbol_value, case O_symbol): Call it, if X_add_number is
3364 zero. Don't call obj_frob_forward_symbol.
3365 * read.c (pseudo_set): Call copy_symbol_attributes, but only if
3366 X_add_number is zero.
3367 * config/obj-elf.h (obj_frob_forward_symbol): Deleted.
3368
144659ab
ILT
3369 * config/tc-i960.c: Lots of whitespace, comment reformatting,
3370 using GNU indent.
3371 (strchr): Don't declare.
3372 [BFD_ASSEMBLER]: Don't compile md_convert_frag,
3373 md_estimate_size_before_relax, md_ri_to_chars,
3374 md_create_short_jump, md_create_long_jump.
3375 (brtab_emit): Use data_section, not SEG_DATA.
3376
cacd15c4 3377 Mon Sep 19 17:14:44 1994 Pat Rankin ([email protected])
8068b96a
KR
3378
3379 * config/vms-conf.h: new file, manually derived from conf.in.
3380 * config-gas.com: use it, and eliminate obsolete "host.h".
3381
3af9783a
ILT
3382Wed Sep 21 11:11:30 1994 Ian Lance Taylor ([email protected])
3383
87bbf920
ILT
3384 * config/tc-ppc.c (ppc_current_block): New static variable.
3385 (ppc_stabx): Set sy_tc.within of a C_STSYM symbol to
3386 ppc_current_block. Don't move around any stab symbol, just those
3387 for common symbols.
3388 (ppc_bs): Set ppc_current_block.
3389 (ppc_es): Clear ppc_current_block.
3390 (ppc_frob_symbol): Set the value of a C_STSYM symbol to the offset
3391 from the csect of the enclosing block.
3392
3af9783a
ILT
3393 * config/tc-mips.c (insns_since_cache_access): Remove.
3394 (append_insn): Remove setting of insns_since_cache_access, and
3395 special 4600 handling; it turns out not to be required.
3396
e8d4d475
ILT
3397Tue Sep 20 16:13:18 1994 Ian Lance Taylor ([email protected])
3398
3399 * config/tc-mips.c (md_shortopts): Remove E.
3400 (md_longopts): Add EB and EL.
3401 (md_parse_option): Handle -EB and -EL as separate options, rather
3402 than as a single -E option with an argument.
3403
8268e3ec
JL
3404Mon Sep 19 12:42:05 1994 Jeff Law ([email protected])
3405
3406 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
3407 involving global symbols too.
3408
eb3028aa
KR
3409Mon Sep 19 12:12:46 1994 Ken Raeburn ([email protected])
3410
3411 * as.h: Test NEED_DECLARATION_*, not NEED_*_DECLARATION.
3412
3413 * configure.in: Test for remove, not delete. Fix cross-assembler
3414 test.
3415 * as.h: Test HAVE_REMOVE, not HAVE_DELETE; define unlink to
3416 remove, not delete.
3417
35e70f58
KR
3418 * read.c (pseudo_set, case O_symbol): If
3419 OBJ_COPY_SYMBOL_ATTRIBUTES is defined, invoke it.
3420 [BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too.
3421 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define.
3422
3423 Wed Aug 10 19:15:30 1994 Pat Rankin ([email protected])
3424
3425 * config/obj-vms.h (DSG_S_C_UBITU, DST_K_VFLAGS_DSC, DST_K_TS_ATOM,
3426 many others): new macros; values obtained from "DSTRECRDS.SDL".
3427 * config/obj-vms.h (various): use them.
3428 (USE_BITSTRING_DESCRIPTOR): new macro, for selecting bitfield
3429 representation (only enum bitfields can avoid being bitstrings).
3430 (bitfield_suffix, setup_basic_type): new routines.
3431 (VMS_typedef_parse): use them. Now recognize bitfields of all
3432 integral types, not just type `int'. Caveat: the representation
3433 used for bitfields still does not work for objects placed in
3434 registers, and gcc's optimizer sometimes puts small structs there.
3435
3436 Tue Jun 14 17:31:44 1994 Pat Rankin ([email protected])
3437
3438 * read.c (s_text) [#if OBJ_VMS]: clear the IN_DEFAULT_SECTION
3439 bit from const_flag.
3440 * config/obj-vms.h (IN_DEFAULT_SECTION): define this macro.
3441 (tc_frob_label): define this to call vms_check_for_special_label,
3442 and declare the latter.
3443 * config/obj-vms.c (vax_g_doubles): declare this file-scope
3444 variable.
3445 (const_flag): initialize to IN_DEFAULT_SECTION instead of 0.
3446 (vms_check_for_special_label): new routine (tc_frob_label).
3447 (VMS_TBT_Routine_End): don't bother checking for `gcc_compiled.'
3448 and `gcc2_compiled.' labels; they won't reach here any more.
3449 (VMS_typedef_parse) [case 'r']: for types `double' and `complex
3450 double', use `vax_g_doubles' flag to select type of double.
3451 (VMS_write_object_file) [traceback setup]: don't pass symbols
3452 with the IN_DEFAULT_SECTION attribute to the TBT_Routine_Begin
3453 and TBT_Routine_End functions.
3454
3455 Mon Jun 6 20:52:20 1994 Pat Rankin ([email protected])
3456
3457 * config/obj-vms.c (VMS_TBT_Routine_End): cache the result of
3458 S_GET_VALUE() to avoid many repeated function calls.
3459 (VMS_Check_For_Main) [#if HACK_DEC_C_STARTUP]: capitalize
3460 _C$MAIN_ARGS in advance, in case -h3 (leave symbol name as-is)
3461 gets requested. [All the HACK_DEC_C_STARTUP code appears to
3462 be obsolete; gcc does it automatically for vms target. It's
3463 also misnamed, because it is for the "VAX C" run-time library,
3464 not the newer "DEC C" one which has much different startup code.]
3465 {various}: use `S_SET_xxx(symbol,new_value)' rather than
3466 `S_GET_xxx(symbol) = new_value'.
3467
d1578de3
ILT
3468Mon Sep 19 12:05:03 1994 Ian Lance Taylor ([email protected])
3469
3470 * config/obj-coff.c (c_dot_file_symbol): Use bfd_abs_section_ptr,
3471 not &bfd_abs_section.
3472
e3683042
ILT
3473Thu Sep 15 18:36:34 1994 Ian Lance Taylor ([email protected])
3474
3475 * expr.c (clean_up_expression): Use addressT, not bfd_vma.
3476
75c28b49
JL
3477Tue Sep 13 20:05:47 1994 Jeff Law ([email protected])
3478
fcacfef6
JL
3479 * expr.c (expr): Don't reduce the difference of two symbols in the
3480 same frag if the symbols are not in normal sections.
3481
75c28b49
JL
3482 * config/obj-som.h (S_SET_OTHER, S_SET_TYPE): Delete a.out crud.
3483 (S_SET_DESC, S_GET_OTHER, S_GET_TYPE, S_GET_DESC): Likewise.
3484 (obj_attach_unwind_info): Do not define. Not needed anymore.
3485 * config/tc-hppa.c: Delete whitespace at EOL.
3486 (struct hppa_fix_struct): Delete fx_unwind field and all references.
3487 (fix_new_hppa): Last arg is now a pointer to an int. Do not
3488 call obj_attach_unwind_info anymore. For SOM R_ENTRY and R_EXIT
3489 fixups, store 32bits of unwind information in the fx_addnumber
3490 field of the fixup.
3491 (md_assemble, pa_entry, process_exit, pa_procend): For SOM R_ENTRY
3492 and R_EXIT fixups, pass a NULL pointer to fix_new_hppa, and a
69cb5925 3493 pointer to 32 bits of unwind info.
75c28b49
JL
3494 (tc_gen_reloc): For SOM R_ENTRY and R_EXIT fixups, set the symbol
3495 pointer to the dummy symbol; set the addend field to fx_addnumber.
3496 (pa_comm, pa_equ, pa_type_args, pa_import): Use bfd_XXX_section_ptr
3497 rather than &bfd_XXX_section.
3498
26f4447a
KR
3499Tue Sep 13 21:15:36 1994 Ken Raeburn ([email protected])
3500
d7152d07
KR
3501 * config/tc-i386.c (md_apply_fix_1): For GOTPC relocs, decrement
3502 value by one; discard adjustments previously being made. From
3503 Eric Youngdale.
3504
26f4447a
KR
3505 VMS- and Vax-related changes from Pat Rankin:
3506 * Makefile.in (VMS_OTHER_OBJS): add concat, getopt, and getopt1.
3507 * vmsconf.sh: no longer have make-gas.com echo text about needing
3508 to modify the gcc-vms driver when intending to use with gcc 1.x.
3509 * as.c (parse_options): suppress 'v' from std_short_options and
3510 eliminate VMS-specific conditional initialization;
3511 [default case]: check for '-v' if md_parse_options doesn't recognize
3512 an option;
3513 [default case, #if VMS]: check for filename argument when '-v' seen;
3514 [case 'v']: delete.
3515 * config/tc-vax.c (md_assemble): don't rely on `this_add_number'
3516 for O_big literal operands (double floats and long long ints);
3517 [VMS, md_shortopts]: add second colon after 'v';
3518 (md_parse_options) [VMS, case 'v']: check for argument, so
3519 caller can handle `-v' w/o arg.
3520
a9898563
SC
3521Tue Sep 13 16:45:08 1994 Steve Chamberlain ([email protected])
3522
3523 * config/obj-coff.c (do_relocs_for): If TC_KEEP_FX_OFFSET
3524 is defined, put the tx_offset into the r_offset.
3525 * config/tc-sh.c (line_comment_chars): Add #
3526 (tc_reloc_mangle): Deleted.
3527 * config/tc-sh.h (TC_KEEP_FX_OFFSET): Define.
3528 (TC_RELOC_MANGLE): Delete.
3529
28d3e4a3
KR
3530Tue Sep 13 16:20:36 1994 Ken Raeburn ([email protected])
3531
b9419dd2
KR
3532 * flonum-konst.c: Change preprocessor tests of HO_VMS to just VMS.
3533 * hex-value.c: Ditto.
3534 * config/obj-vms.c: Ditto.
3535
460531da
KR
3536 * config/tc-sparc.c (sparc_ip): Replace as_bad/exit sequence with
3537 a call to as_fatal.
3538 * config/tc-i860.c (i860_ip): Ditto.
3539 * config/tc-hppa.c (pa_ip): Ditto.
3540 * config/tc-alpha.c (alpha_ip): Ditto.
3541 * as.c (parse_args): Ditto.
3542
3543 * config/tc-mips.c (mips_ip): Replace as_warn/exit sequence with a
3544 call to as_fatal.
3545
3546 * write.c (write_contents): Use EXIT_FAILURE.
3547 * output-file.c (output_file_create, output_file_close,
3548 output_file_create, output_file_close): Ditto.
3549 * messages.c (as_fatal): Ditto.
3550 * config/obj-som.c (obj_som_version, obj_som_copyright): Ditto.
3551 * config/obj-ieee.c (write_object_file): Ditto.
3552 * config/obj-coff.c (write_object_file): Ditto.
3553 * config/tc-vax.c (main): Use EXIT_SUCCESS.
3554 * config/tc-m68k.c (main): Ditto.
3555
3556 * hash.c (main): Pass a value to exit().
3557
3558 * as.h (EXIT_SUCCESS, EXIT_FAILURE): Moved here.
3559 * as.c: ...from here.
3560 (parse_args): Use them always.
3561 (main): Use exit rather than return.
3562
28d3e4a3
KR
3563 * Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall):
3564 Rewrite handling of program_transform_name.
3565
b9419dd2
KR
3566 * configure.in: Test for functions unlink and delete.
3567 * as.h: If unlink isn't available but delete is, define unlink to
3568 be delete.
28d3e4a3
KR
3569
3570 Update for autoconf 1.118:
3571 * gdbinit.in: New file, created from old .gdbinit.
3572 * .gdbinit: Deleted.
3573 * aclocal.m4 (GAS_GDBINIT): Deleted.
3574 * configure.in: Don't use it. Instead, generate .gdbinit from
3575 gdbinit.in. Don't substitute cpu_type, obj_format, emulation,
3576 atof. Switched order of AC_LINK_FILES arguments. Use AC_PREREQ
3577 to ensure that older versions of autoconf aren't used.
3578 * Makefile.in: Added @configure_input@ line.
3579 (configure): Deleted rule.
3580
430a3997
ILT
3581Tue Sep 13 12:08:20 1994 Ian Lance Taylor ([email protected])
3582
3583 * config/obj-coff.c (fixup_segment): After handling the difference
3584 of two symbols from the same segment, set fx_subsy to NULL, to
3585 satisfy existing TC_COUNT_RELOC macros.
3586
e23b25ec
KR
3587Tue Sep 13 01:47:08 1994 Ken Raeburn ([email protected])
3588
3589 * aclocal.m4 (GAS_GDBINIT): New macro.
3590 * configure.in: Use it.
3591 * configure: Regenerated.
3592
c570d361
KR
3593Mon Sep 12 20:56:38 1994 Ken Raeburn ([email protected])
3594
3595 * .gdbinit (pe, ps): Define new commands.
3596 * symbols.c (indent_level): New static variable.
3597 (indent, print_expr_1, print_symbol_value_1, print_symbol_value,
3598 print_expr): New functions.
3599
3600 * Makefile.in (config-stamp): Add a "this file generated by make"
3601 message to config.h.
3602
3603 PIC implementation for i386-linux, based on code from Eric
3604 Youngdale and Paul Kranenburg, with some work of my own:
3605
3606 * write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup
3607 before processing same-section pcrel relocations.
3608 (TC_RELOC_RTSYM_LOC_FIXUP): Default to 1.
3609
3610 * expr.c (make_expr_symbol): If operator is O_symbol and
3611 X_add_number is zero, just return the symbol. If operator is
3612 O_constant, resolve the symbol's value before returning.
3613 (operand): Permit use of "[]" for grouping.
3614 (clean_up_expression): For difference of two symbols in the same
3615 frag, add the difference of their offsets into X_add_number.
3616 (expr): Reduce difference of two symbols in same frag to their
3617 difference.
3618
3619 * config/tc-i386.c (TC_RELOC): New macro.
3620 (struct _i386_insn): New field disp_reloc.
3621 (GOT_symbol): New variable.
3622 (operand_special_chars): Added square-brackets and at-sign.
3623 (reloc) [BFD_ASSEMBLER]: Added new argument OTHER; if it is not
3624 NO_RELOC, just return it.
3625 (reloc) [! BFD_ASSEMBLER]: Add third argument to dummy macro.
3626 (BFD_RELOC_386_PLT32, _GOT32, _GOTOFF) [! BFD_ASSEMBLER]: More
3627 dummy macros.
3628 (tc_i386_fix_adjustable): New function. Returns zero if symbol in
3629 fixup is not local, to prevent relocations against externals from
3630 being dropped.
3631 (md_assemble): Initialize disp_reloc field to NO_RELOC. Pass
3632 disp_reloc field to reloc() function, and use TC_RELOC to generate
3633 value to pass to fix_new_exp.
3634 (md_assemble): Change 32-bit reloc against GOT_symbol into a GOTPC
3635 reloc.
3636 (i386_operand): Initialize disp_reloc field to NO_RELOC. Handle
3637 @GOTOFF, @PLT, @GOT operands. For GOTOFF relocations with local
3638 symbols, force generation of the section symbol.
3639 (md_estimate_size_before_relax): If GOT_symbol exists, decide
3640 we're generating PIC code, and convert relocations against
3641 undefined symbols from PCREL to PLT32.
3642 (md_apply_fix_1) [OBJ_ELF]: Fix up values for dynamic-linking
3643 relocs.
3644 (md_undefined_symbol): Notice GLOBAL_OFFSET_TABLE_NAME and set
3645 and return GOT_symbol if it matches.
3646 (F, MAP): Move macro definitions outside function.
3647 (tc_gen_reloc): Only switch on size and pcrel if code wasn't
3648 already supplied as PLT32. GOT32, GOTOFF, or GOTPC. Convert
3649 BFD_RELOC_32 using GOT_symbol into GOTPC.
3650 * config/tc-i386.h (TC_RELOC, tc_fix_adjustable,
3651 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): New
3652 macros.
3653 (NEED_FX_R_TYPE): Define.
3654 (LOCAL_LABEL): Accept ".X" prefix too.
3655 (GLOBAL_OFFSET_TABLE_NAME): Default to "_GLOBAL_OFFSET_TABLE_".
3656
1b434ced
ILT
3657Mon Sep 12 17:51:39 1994 Ian Lance Taylor ([email protected])
3658
1779d515
ILT
3659 * config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
3660 reportedly to be used on Irix 6.
3661
c1444ec4
ILT
3662 * config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
3663 (s_mips_globl): New static function; needed for Irix 5 support.
3664 * ecoff.c (ecoff_build_symbols): If BSF_FUNCTION is set for an
3665 external symbol with no type, set the type to st_Proc rather than
3666 st_Global. Don't set the index of an external st_Proc or
3667 st_StaticProc symbol unless it is also a local symbol.
3668
1b434ced
ILT
3669 * read.c (read_a_source_file): The second argument to as_where is
3670 unsigned int *, not int *.
3671
326d16ca
KH
3672Thu Sep 8 17:18:24 1994 Kung Hsu ([email protected])
3673
3674 * config/obj-ecoff.h : Change names to OBJ_GENERATE_ASM_LINENO,
3675 and generate_asm_lineno.
3676 * config/obj-elf.h : ditto.
3677 * read.h : ditto.
3678 * read.c (read_a_source_file): if no file when inst is read, set
3679 generate_asm_lineno to true.
3680 * ecoff.h : change name to generate_asm_lineno and add function
3681 ecoff_no_current_file.
3682 * ecoff.c : change name to generate_asm_lineno.
69cb5925 3683 * ecoff.c (ecoff_generate_asm_lineno) : new function, to generate
326d16ca
KH
3684 ecoff style line for asm file.
3685
eb4fd16f
ILT
3686Thu Sep 8 19:43:49 1994 Ian Lance Taylor ([email protected])
3687
3688 * config/obj-coff.c (size_section): Do an fprintf to stderr rather
3689 than a printf.
3690 (fixup_segment): Use as_bad_where rather than as_bad.
3691
20c9d49a
SC
3692Wed Sep 7 17:21:12 1994 Steve Chamberlain ([email protected])
3693
eb4fd16f
ILT
3694 * config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing
3695 nothing becomes macro doing nothing.
20c9d49a 3696
bf111c9f
KR
3697Wed Sep 7 19:10:09 1994 Ken Raeburn ([email protected])
3698
353acf31
KR
3699 * Makefile.in (Makefile): Depend on config.status.
3700 (config.status): Run config.status from . instead of srcdir.
3701
72373532
KR
3702 * config/tc-i386.c (tc_gen_reloc): Use bfd_get_reloc_code_name to
3703 display the name of the relocation type that couldn't be handled.
3704 * config/tc-sparc.c (tc_gen_reloc): Likewise.
3705 * config/tc-alpha.c (tc_gen_reloc): Likewise. Deleted abort call
3706 after call to as_fatal.
3707
3708 * configure.in (i386-*-linux*): Don't set bfd_gas.
3709
3710 * Makefile.in (CC_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET,
3711 install, uninstall): Don't use "brokensed" hack any more, the new
3712 autoconf code should never let program_transform_name be empty.
3713
bf111c9f
KR
3714 Update for autoconf beta 1.112:
3715 * aclocal.m4 (GAS_CHECK_DECL_NEEDED, GAS_WORKING_ASSERT): New
3716 macros.
3717 * configure.in: Use them. Use AC_ARG_PROGRAM (now provided by
3718 autoconf) instead of my hacked-up AC_PROGRAM_TRANSFORM_NAME. Move
3719 test for CROSS_COMPILE just before AC_FUNC_ALLOCA, and emit a
3720 message to try to ease confusion about autoconf's
3721 "cross-compiling" message.
3722 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_FREE,
3723 NEED_DECLARATION_ERRNO): Renamed from NEED_*_DECLARATION.
3724 * configure, conf.in: Regenerated.
3725
c8570de8
ILT
3726Wed Sep 7 12:49:55 1994 Ian Lance Taylor ([email protected])
3727
3728 * configure.in: Check ${host} and ${target} rather than
3729 ${host_canon} and ${target_canon}.
3730 * configure: Likewise.
3731
8c63448a
ILT
3732Tue Sep 6 11:42:38 1994 Ian Lance Taylor ([email protected])
3733
3734 * config/tc-mips.c (mips_cpu): New static variable.
3735 (insns_since_cache_access): New static variable.
3736 (md_begin): Set mips_cpu as well as mips_isa.
3737 (append_insn): If mips_cpu is 4600, require four nop instructions
3738 between an instruction which accesses the cache and certain CACHE
3739 instructions. Keep track of the number of instructions seen since
3740 an instruction which accesses the cache.
3741 (md_parse_option): Set mips_cpu as well as mips_isa.
3742
a5a2f156
KR
3743Mon Sep 5 07:09:00 1994 Ken Raeburn ([email protected])
3744
3745 * doc/Makefile.in (VPATH): Define using @srcdir@.
3746 (prefix, program_transform_name, exec_prefix): Use autoconf style
3747 @-substitutions.
3748
8c63448a 3749Sun Sep 04 17:58:10 1994 Richard Earnshaw ([email protected])
318b02b6
KR
3750
3751 * config/ho-riscix.h, config/tc-arm.c, config/tc-arm.h: New files
3752 * configure.in: Recognize the arm.
3753
3ffbc907
ILT
3754Fri Sep 2 16:05:50 1994 Ian Lance Taylor ([email protected])
3755
3756 * ecoff.c (add_file): Don't try to generate line numbers if the
3757 symbol table has been frozen.
3758
3759Thu Sep 1 19:48:01 1994 Ken Raeburn ([email protected])
3760
3761 * aclocal.m4 (AC_PROG_CC): Use AC_DEFUN, and omit AC_PROVIDE.
3762
3763 * configure.in: Handle user-specified bfd-assembler option with
3764 separate variable from preferred configuration, until the two are
3765 resolved. Indicate bfd_gas=preferred for linux a.out. Use
3766 AC_PROGRAM_TRANSFORM_NAME, for which a patch has been sent to djm.
3767 * Makefile.in (target_alias, program_transform_name): Define,
3768 using autoconf @-substitutions.
3769
fb589130
KR
3770Wed Aug 31 17:43:06 1994 Ken Raeburn ([email protected])
3771
7f64fd4e
KR
3772 * atof-generic.c: Deleted alloca handling here.
3773
fb589130
KR
3774 * Makefile.in (prefix, exec_prefix): Use @-subtitutions.
3775
3776 * aclocal.m4 (AC_OUTPUT_LINKS): Deleted redefinition, since
3777 autoconf 1.109 has this fixed.
3778 * configure.in: Don't change quote characters around AC_MSG_ERROR
3779 invocation. Don't use AC_HEADER_STDC, since it requires running a
3780 program. Cache NEED_*_DECLARATION values.
3781 * configure, conf.in: Regenerated with a modified autoconf 1.109.
3782
c7072f56
KR
3783 * as.h (volatile): Don't test or define here; not needed.
3784 (alloca): Replace alloca-conf.h inclusion with code recommended in
3785 autoconf documentation. Include config.h first.
3786
bdee23af
ILT
3787Wed Aug 31 11:20:48 1994 Ian Lance Taylor ([email protected])
3788
3789 * config/obj-coff.h (S_IS_DEFINED): Absolute symbols are defined
3790 also.
3791
3792 * configure.in, configure: Initialize bfd_gas to no.
3793
a48f997a
KR
3794Tue Aug 30 19:31:14 1994 Ken Raeburn ([email protected])
3795
3796 * as.h: Include alloca-conf.h from "libiberty", not
3797 "../libiberty".
3798
0c49642d
ILT
3799Mon Aug 29 16:11:30 1994 Ian Lance Taylor ([email protected])
3800
3801 * config/tc-ppc.c (md_apply_fix): Don't generate a reloc when a
3802 symbol is used as an offset into a CSECT that is not a TOC. These
3803 types of loads are generated by gcc -mminimal-toc.
3804
65ad84c1
KR
3805Sun Aug 28 13:22:52 1994 Ken Raeburn ([email protected])
3806
e9296bdb
KR
3807 * as.h (flag_*): Added comments describing meanings of some of
3808 these variables.
3809 (struct frag): Add some comments about the ns32k-specific fields
3810 and why they're here.
3811 (SIZEOF_STRUCT_FRAG): Cast addresses to char*, not int.
3812 (flag_print_statistics): Declare.
3813
3814 * as.c (parse_args): Set flag_print_statistics instead of
3815 statistics_flag. Options array is now const. Added new option
3816 "dump-config"; if specified, print TARGET_ALIAS, TARGET_CANONICAL,
3817 TARGET_CPU, TARGET_OBJ_FORMAT, and TARGET_FORMAT, if defined.
3818 (main): Change test to check flag_print_statistics.
3819 (statistics_flag): Deleted.
3820
c72aa0e2
KR
3821 * frags.c (frag_variant): Removed PCREL_ADJUST and BSR arguments.
3822 Always initialize them to zero.
3823 * frags.h (frag_variant): Fixed prototype.
3824 * config/tc-i960.c (get_cdisp): Don't pass the extra zero args.
3825 * config/tc-ns32k.c (convert_iif): Don't pass the arguments; cache
3826 the value of frag_now and fill in the fields later.
3827
65ad84c1
KR
3828 * Makefile.in (distclean, realclean): Remove new
3829 configure-generated files.
3830
aaeee550
KR
3831Sat Aug 27 20:26:12 1994 Ken Raeburn ([email protected])
3832
b11fb939
KR
3833 Conversion to autoconf:
3834 * acconfig.h, aclocal.m4: New files.
3835 * configure.in: Rewritten (except for some target-specific code)
3836 for autoconf.
3837 * conf.in, configure: New files, generated from the above.
3838 * Makefile.in: Changed magic sequence indicating insertion of
3839 makefile fragments.
3840 (VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions
3841 from configure.
3842 (LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
3843 (config.status, configure): Rewrite rules.
3844 (config-stamp): Depend on conf. Skip variables that configure is
3845 now substituting itself.
3846 (*.o dependencies): Deleted host.h.
3847 (distclean, realclean): Don't delete host.h.
3848 * as.c: Don't include stdio.h, string.h, sys/types.h. Include
3849 signal.h after as.h.
3850 * as.h: Include alloca-conf.h first. Include ctype.h, string.h,
3851 strings.h, stdlib.h, unistd.h, sys/types.h, fopen-bin.h,
3852 fopen-same.h, as suggested by autoconf test results.
3853 [BROKEN_ASSERT]: Don't include assert.h.
3854 (strdup): Declare.
3855 (volatile, const): Define if not __STDC__ and not already defined.
3856 (malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
3857 (free) [NEED_FREE_DECLARATION]: Declare.
3858 * gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't
3859 include host.h.
3860 (malloc) [NEED_MALLOC_DECLARATION]: Declare.
3861 * messages.c: Include as.h first. Include errno.h only if
3862 HAVE_ERRNO_H. If HAVE_VARARGS_H and not __STDC__, undefine
3863 HAVE_STDARG_H. Set NO_STDARG and NO_VARARGS as appropriate.
3864 * doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM,
3865 INSTALL_DATA): Use autoconf @-substitutions.
3866
27bf48ec
KR
3867 * input-file.c: Don't include assert.h here, 'cause as.h already
3868 includes it.
3869
aaeee550
KR
3870 * config/tc-alpha.c: Added various prototypes for static
3871 functions.
3872 (in_range): New function, tests whether a value can fit in an
3873 N-bit field.
3874 (build_mem, build_operate_n): New functions for constructing
3875 opcode values.
3876 (emit_sll_n, emit_ldah_num, emit_addq_r, emit_lda_n): New
3877 functions for emitting single instructions, no longer requiring a
3878 recursive call to md_assemble.
3879 (emit_add64): New function for expanding a REG:=REG+CONST
3880 operation into one or more instructions, to handle wide constants.
3881 (clear_insn): New variable.
3882 (md_begin): Fill it in with zeros and BFD_RELOC_NONE values.
3883 (alpha_ip): Use it to initialize local variable insns.
3884 (alpha_ip, label "immediate" and cases 'P', 'G'): Use emit_add64
3885 for calculations.
3886
6668a062
KR
3887Fri Aug 26 14:46:15 1994 Ken Raeburn ([email protected])
3888
3889 * subsegs.c (section_symbol): Reverse still-wrong test of
3890 EMIT_SECTION_SYMBOLS.
3891
8ef75e2c
KR
3892 * write.c (BFD_FAST_SECTION_FILL): Always define.
3893 (write_contents): If fill_size is 1, use memset instead of looping
3894 calling memcpy.
3895
904b6037
ILT
3896Wed Aug 24 12:46:08 1994 Ian Lance Taylor ([email protected])
3897
20ae2fb8
ILT
3898 * config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibility
3899 with native MIPS assembler.
3900 * configure.in (mips-*-irix*): Don't set emulation.
3901 * config/te-irix.h: Remove.
3902
fd4f335c
ILT
3903 * ecoff.c (ecoff_symbol_new_hook): Don't add a new file if we
3904 haven't seen any input files yet.
3905 * config/tc-alpha.c (md_begin): Just call symbol_create, rather
3906 than calling symbol_new and then removing the symbol from the
3907 list.
3908
a2a1a548
ILT
3909 * as.c (main): Move a inside the #if 0 block which uses it.
3910 * ecoff.c (current_stabs_filename): Make const.
3911 * frags.h (frag_align_pattern): Declare.
3912 * gasp.c (new_file): Cast isp to long, and use %ld to print it.
3913 * config/tc-alpha.h (md_operand): Add cast to void.
3914 (alpha_do_align): Declare argument types.
3915 (tc_get_register): Declare.
3916 (alpha_frob_ecoff_data): Declare.
3917 * config/tc-alpha.c: Include <ctype.h>.
3918 (s_mask): Don't declare; does not exist.
3919 (line_comment_chars): Remove /* from descriptive comment.
3920 (tc_get_register): Remove unused local reg.
3921 (tc_gen_reloc): Don't bother to compare unsigned to zero.
3922 (s_base): Correct warning to actually print register number.
3923 (md_begin): Remove unused locals retval, lose, and i.
3924 (alpha_fix_adjustable): Move default case inside switch to avoid
3925 warning.
3926 (load_symbol_address): Remove unused locals reloc_addr, p, sym,
3927 and addend.
3928 (emit_byte_manip_r): Declare types for all arguments.
3929 (emit_extract_r, emit_insert_r, emit_mask_r): Likewise.
3930 (emit_sign_extend, emit_bis_r, s_proc): Likewise.
3931 (alpha_ip): Use sprint_value to print offsetT value. Remove
3932 unused local size. Remove unused label get_macro.
3933 (alpha_do_align): Make fill const.
3934 (md_apply_fix): Remove unused label check_zov.
3935
904b6037
ILT
3936 * configure.in: Recognize i586 as a synonym for i[34]86.
3937
3938Tue Aug 23 12:32:14 1994 Ian Lance Taylor ([email protected])
3939
3940 * config/obj-coff.c (c_line_new): Change line_number argument from
3941 unsigned short to int so that the type in the prototype matches
3942 the promoted type in the definition.
3943 (stack_delete): Comment out; not used.
3944 * config/obj-coff.h (tc_coff_symbol_emit_hook): Declare if not
3945 BFD_ASSEMBLER, not if BFD_ASSEMBLER. Declare argument type.
3946 * config/tc-m68k.h (tc_coff_sizemachdep): Declare.
3947 * config/tc-m68k.c (tc_coff_symbol_emit_hook): Add ignored
3948 argument.
3949
2cffb4f4
JL
3950Tue Aug 16 01:48:20 1994 Jeff Law ([email protected])
3951
05d0c2cc
JL
3952 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
3953 the common symbol to the zero address frag (the correct fix).
3954
3955Tue Aug 16 01:48:20 1994 Jeff Law ([email protected])
3956
3957 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
3958 the common symbol to the zero address frag (the correct fix).
3959
3960 * config/tc-hppa.c (pa_comm): Set sy_resolved for the common
69cb5925 3961 symbol.
2cffb4f4 3962
101fbf7e
ILT
3963Fri Aug 12 17:51:48 1994 Ian Lance Taylor ([email protected])
3964
3965 * config/tc-mips.c (md_begin): Drop "el" from the end of
3966 TARGET_CPU. Check for mips64orion.
3967
a1dafd55
SG
3968Tue Aug 9 19:43:45 1994 Stu Grossman ([email protected])
3969
3970 * configure.in: Recognize ppc-*-netware.
3971 * config/te-ppcnw.h: New file to support Power-PC/Netware
3972 configurations. Currently, it just enables the use of backslash
3973 escapes in string directives.
3974
55933a58
ILT
3975Tue Aug 9 11:12:13 1994 Ian Lance Taylor ([email protected])
3976
8e479636
ILT
3977 * config/tc-ppc.c (ppc_stabx): Call expression directly, rather
3978 than via pseudo_set. If expression is a symbol, move stab symbol
3979 to just after symbol from expression.
3980
c9a89891
ILT
3981 * ecoff.c (ecoff_build_procs): Don't force adr of first fdr to be
3982 zero. Undoes change of June 4, 1993.
3983
55933a58
ILT
3984 * config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, and
3985 orion.
3986
3987Mon Aug 8 16:28:08 1994 Steve Chamberlain ([email protected])
3988
3989 * as.h: Remove FOPEN_WB patch of Aug 6.
3990 * configure.in: Configure for ho-go32 correctly.
3991 * config/ho-go32.h: Fix copyright.
3992
1503edcc
JL
3993Mon Aug 8 11:59:51 1994 Jeff Law ([email protected])
3994
3995 * gas/config/tc-hppa.c (md_pseudo_table): Delete redundant
3996 upper-case versions of the pseudo-ops.
3997
2cd14ddc
ILT
3998Mon Aug 8 13:42:16 1994 Ian Lance Taylor ([email protected])
3999
4000 * config/tc-sparc.c (md_apply_fix): If we are going to generate a
4001 non PC relative reloc, don't put the addend in the object file.
4002
6670b7f3
SC
4003Sat Aug 6 01:15:02 1994 Steve Chamberlain ([email protected])
4004
4005 * as.h: If FOPEN_WB is not defined, do the right thing in a go32
4006 environment.
4007
4008Mon Jul 11 11:34:52 1994 Steve Chamberlain ([email protected])
4009
4010 * config/tc-h8300.c (pint): New function for handling varying
4011 size of int pseudo op.
4012 * doc/as.texinfo: Fix typo describing .h8300h pseduop.
4013
363d6150
JL
4014Mon Aug 1 02:40:43 1994 Jeff Law ([email protected])
4015
fbf71886
JL
4016 * config/tc-hppa.c (create_new_space): Initialize sd_subspaces
4017 field in the space chain.
4018
363d6150
JL
4019 * config/tc-hppa.c (tc_gen_reloc): Cast return value from
4020 hppa_gen_reloc_type.
4021
5e0a90a8
KR
4022Thu Jul 28 15:45:37 1994 Ken Raeburn ([email protected])
4023
4024 * config/tc-sparc.c (sparc_ip): Check more carefully for
4025 conflicting architectures.
4026 (md_parse_option) [NO_V9]: Complain if v9 was selected.
4027 (md_show_usage): Derive architecture list in usage message from
4028 architecture_pname array.
4029 (cypress): Macro deleted.
4030 (op_hash): Don't initialize.
4031 (s_common): Use bfd_und_section_ptr instead of bfd_und_section.
4032
4033 * config/tc-sparc.c (BSR): New function.
4034 (sparc_ip): Use it for right-shift operations of 32 bits or more.
4035
4036 * config/tc-sparc.c (sparc_ip): Implement new operand type 'x'.
4037
39792caf
KR
4038Tue Jul 26 18:21:24 1994 Ken Raeburn ([email protected])
4039
4040 * config/obj-coff.h: Moved common includes and TARGET_FORMAT
4041 definitions together.
4042 (WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD,
4043 OBJ_COFF_OMIT_OPTIONAL_HEADER, BFD_HEADERS, BFD) [!BFD_ASSEMBLER]:
4044 Moved these definitions to the start of the file, before the
4045 includes.
4046 (SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always
4047 define these.
4048 (S_GET_ZEROES): Deleted.
4049 (S_SET_ZEROES): Moved to obj-coff.c.
4050
4051 * config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted
4052 forward declarations.
4053 (obj_pseudo_table): Moved to one version end of file,
4054 conditionalized internally.
4055 (stack typedef, stack_init, stack_delete, stack_push, stack_pop,
4056 tag_hash, tag_init, tag_insert, tag_find, tag_find_or_make): Moved
4057 to one combined version at top of file, unconditional. Deleted
4058 forward declarations.
4059 (s_get_name): Moved one copy of declarations to start of file.
4060 (def_symbol_in_progress): Ditto. Don't initialize.
4061 (S_SET_ZEROES): Moved here from obj-coff.h.
4062 (write_object_file): If TC_COFF_SET_MACHINE is defined, call it on
4063 the file headers.
4064
4065 * config/obj-coff.c (seg_info_off_by_4): Now const and static.
4066 (SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted.
4067 (previous_file_symbol, def_symbol_in_progress, symbol_externP,
4068 symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't
4069 bother explicitly initializing to zero value.
4070
4071 * config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME
4072 and SF_GET_CALLNAME instead of the TC_S_IS_ versions.
4073
10db66ec
KR
4074 * config/tc-i960.h (TC_COFF_SET_MACHINE): New macro. Calls
4075 tc_headers_hook.
4076
4077 * config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX
4078 was used previously.
4079 (tc_headers_hook): If I_CX2 is found, set flags to F_I960CA.
4080
4081 * config/tc-i960.c (po_hash): Declaration deleted.
4082 (next_object_file_charP): Ditto.
4083 (regnames, aregs, coj): Now const.
4084 (parse_memop): Static array def_scale now const.
4085 (md_begin): Cast away const when passing hash routines addresses
4086 of values in regnames or aregs.
4087 (md_longopts): Added "link-relax" and "no-relax" hyphenated forms.
4088 Continue to accept one-word forms.
4089 (struct tabentry, arch_tab): Moved to top level from inside
4090 md_parse_option. Now const.
4091 (md_show_usage): Use arch_tab to generate usage message. Print
4092 hyphenated forms of relax options.
4093
4094 * config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC,
4095 TC_S_FORCE_TO_*): Moved from here...
4096 * config/tc-i960.c: ... to here. Changed DEFINE_I960_AOUT stuff
4097 to test OBJ_AOUT and OBJ_BOUT directly.
4098
4099 * config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ,
4100 M1-M3, REG_OPC, R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F,
4101 {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK, FP_OK, REG_ALIGN, MEMOP, I_*):
4102 Macros deleted.
4103
4104 start-sanitize-i960xl
4105 * config/tc-i960.c (ARCH_XL): Define.
4106 (arch_tab): Include XL.
4107 (targ_has_sfr, targ_has_iclass): Handle XL.
4108 (tc_headers_hook): Set flags to F_I960XL for i960XL.
4109 end-sanitize-i960xl
4110
39792caf
KR
4111Fri Jul 15 15:36:51 1994 Ken Raeburn ([email protected])
4112
4113 * subsegs.c (section_symbol): Had last change backwards.
4114
3b6d6f71
KR
4115Thu Jul 14 13:21:06 1994 Ken Raeburn ([email protected])
4116
462ab71d
KR
4117 * config/atof-ns32k.c: Deleted.
4118
3b6d6f71
KR
4119 * config/obj-aout.c (obj_aout_frob_symbol): Use
4120 bfd_ind_section_ptr and bfd_und_section_ptr.
4121
4122 * subsegs.c (subseg_set_rest): Compare segT values directly,
4123 without casting to int first.
4124
259e35d4
KR
4125 * config/tc-ns32k.c (md_begin): Return value from hash_insert
4126 should be pointer to const. Don't call exit explicitly after
4127 calling as_fatal; it won't return.
4128 (convert_iif): Make local variable j be pointer to bit_fixS, since
4129 that's how it's used.
4130 (encode_operand, case 'b'): Ignore sprintf return value. Don't try
4131 converting freeptr to int and back.
4132
4133 Merged in NS32K support update from Ian Dall ([email protected]):
4134
4135 * config/te-pc532mach.h: New file. pc532-mach target emulation.
4136
4137 * config/te-netbsd532.h: New file. Netbsd532 target emulation.
4138
4139 * config/tc-ns32k.h: Add definition of NOP_OPCODE.
4140
4141 * config/tc-ns32k.h: Add prototype for fix_new_ns32k_exp.
4142
4143 * config/tc-ns32k.h: Add BFD_ASSEMBLER support.
4144
4145 * config/tc-ns32k.c (tc_gen_reloc): New function for BFD_ASSEMBLER.
4146
4147 * config/tc-ns32k.c (fix_new_ns32k_exp): Get reloc type
4148 differently for BFD_ASSEMBLER.
4149
4150 * config/tc-ns32k.c (md_estimate_size_before_relax): Get reloc
4151 type differently for BFD_ASSEMBLER.
4152
4153 * config/tc-ns32k.c (md_create_long_jump): Size of opcode is one
4154 not 2.
4155
4156 * config/tc-ns32k.c (md_convert_frag): Code for the BFD_ASSEMBLER
4157 case. Also use smart md_pcrel_adjust function.
4158
4159 * config/tc-ns32k.c (md_apply_fix): Code for the BFD_ASSEMBLER
4160 case. Also use smart md_fix_pcrel_adjust function.
4161
4162 * config/tc-ns32k.c (md_fix_pcrel_adjust): New function which can
4163 find offset from opcode to operand even if in another frag
4164 and in the presence of relaxing.
4165
4166 * config/tc-ns32k.c (md_pcrel_adjust): New function which can
4167 find offset from opcode to operand even if in another frag
4168 and in the presence of relaxing.
4169
4170 * config/tc-ns32k.c (md_number_to_disp): Check ranges properly.
4171
4172 * config/tc-ns32k.c (md_atof): use atof_ieee instead of special
4173 atof_ns32k.
4174
4175 * config/tc-ns32k.c (reloc): New (static) function for
4176 BFD_ASSEMBLER.
4177
4178 * config/tc-ns32k.c (convert_iif): More correct pc relative code.
4179 md_relax must be able to find opcode address even if in another frag.
4180
4181 * config/tc-ns32k.c: More extensive comments.
4182
4183 * config/tc-ns32k.c (encode_operand): Support new operand classes I
4184 and Z. Drop Q.
4185
4186 * config/tc-ns32k.c (fix_new_ns32k_exp): new function and
4187 corresponding prototype.
4188
4189 * config/tc-ns32k.c: make 32532 default machine instead of 32032.
4190
4191 * config/tc-ns32k.c: include opcode/ns32k.h after as.h
4192
4193 * aout_gnu.h: r_disp needs to be 2 bits for TC_NS32K
4194
4195 * write.h: fx_im_disp needs to be 2 bits big for TC_NS32K
4196
4197 * write.c (relax_segment): Use TC_PCREL_ADJUST macro (if defined)
4198 instead of adding pcrel_adjust.
4199
4200 * write.c (write_object_file): Adjust to_addr for the
4201 BROKEN_DOT_WORD feature for the BFD_ASSEMBLER case.
4202
4203 * write.c (write_object_file): Use TC_CONS_FIX_NEW if it is defined.
4204
4205 * write.c (write_contents): Add code (currently if
4206 BFD_FAST_SECTION_FILL is defined) to make large fills a lot faster.
4207
4208 * configure.in: Remove ns32k from special FP list. All the ns32k
4209 series use ieee float.
4210
4211 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd targets
4212
4213 * as.h: include expr.h before targ-env.h. Some target dependent file
4214 want to use expr structures.
4215
4ac7a9e4
ILT
4216Wed Jul 13 14:49:05 1994 Ian Lance Taylor ([email protected])
4217
4218 * config/tc-m68k.c (m68k_ip): Change rp to be a const pointer.
4219 (md_parse_option): Clear cpu field of current_architecture before
4220 setting a new cpu type. Clear no_68881 for m68881 or m68882.
4221 Clear no_68851 for m68851.
4222
6b510a40
KR
4223Tue Jul 12 21:27:05 1994 Ken Raeburn ([email protected])
4224
4225 * config/ho-sysv.h (realloc): Declare.
4226
3c498933
KR
4227 * symbols.c (symbol_create): New function, most of the guts of the
4228 old symbol_new function.
4229 (symbol_new): Now just checks symbol_table_frozen, calls
4230 symbol_create, and enters the symbol into the symbol table.
4231 * subsegs.c (section_symbol): If EMIT_SECTION_SYMBOLS is not true,
4232 and the symbol table is frozen, call symbol_create instead of
4233 symbol_new.
4234 * symbols.h (symbol_create, symbol_table_frozen): Declare.
4235
4236 * symbols.c (symbol_clear_list_pointers): Always a function now.
4237 * struc-symbol.h (symbol_clear_list_pointers): Deleted macro
4238 version.
4239
4240 * symbols.c (debug_verify_symchain): New macro, defined to be
4241 verify_symbol_chain or a cast to void, depending on DEBUG_SYMS.
4242 (many functions): Invoke debug_verify_symchain unconditionally.
4243
a85cd289
KH
4244Tue Jul 12 12:06:42 1994 Kung Hsu ([email protected])
4245
4246 * config/obj-ecoff.h: change calling interface of
4247 OBJ_GENERATE_ASM_LINE_STAB.
4248 * config/obj-elf.h: ditto.
4249 * read.c (read_a_source_file): ditto.
4250 * ecoff.h: change calling interface of
4251 ecoff_generate_asm_line_stab.
4252 * ecoff.c (add_file): record of filename to handle case of include
4253 files, also change default built-in type from int to void for
4254 asm file.
4255 * ecoff.c (ecoff_generate_asm_line_stab): handle case of include
4256 files.
4257
51d8e5ae
ILT
4258Mon Jul 11 17:20:23 1994 Ian Lance Taylor ([email protected])
4259
4260 * config/tc-mips.c (macro): In case M_LA_AB, SVR4_PIC, large
4261 constant, and case ldd_std, set mips_optimize to 2 temporarily to
4262 avoid inserting an unexpected nop instruction.
4263
64d527f7
ILT
4264Sat Jul 9 00:05:12 1994 Ian Lance Taylor ([email protected])
4265
4266 * ecoff.c (ecoff_build_lineno): Handle count correctly for last
4267 line number.
4268
6f15d409
SC
4269Fri Jul 8 15:22:07 1994 Steve Chamberlain ([email protected])
4270
6670b7f3 4271 * gasp.c (process_pseudo_op): Pass right args to do do_aif.
6f15d409
SC
4272 (get_any_string): New arg 'pretend_quote'.
4273 (get_and_process, do_formals, macro_expand, do_sdata,
4274 process_pseudo_op): Use new arg.
4275
daad3bbf
KH
4276Fri Jul 8 12:23:44 1994 Kung Hsu ([email protected])
4277
4278 * config/obj-ecoff.h: define macro OBJ_GENERATE_ASM_LINE_STAB.
4279 * config/obj-elf.h: ditto.
4280 * read.c (read_a_source_file): generate line stabs for asm file.
4281 * read.h: add extern generate_asm_line_stab.
4282 * ecoff.h : add prototype for ecoff_generate_asm_line_stab().
4283 * ecoff.c (add_file): if there's no filename provided, set switch
4284 to generate line stabs for .s file.
4285 * ecoff.c (add_procedure): add stabs symbol for .ent directive.
4286 * ecoff.c (generate_ecoff_stab): creates an artificial stabs.
4287 * ecoff.c (generate_asm_line_stab): generate a artifitial label
4288 for each line and generate a stabn for the line.
4289
13d9fd33
SC
4290Thu Jul 7 17:04:03 1994 Steve Chamberlain ([email protected])
4291
4292 * gasp.c (get_any_string): Cope with getting a string with an
4293 alternate base specifier.
4294 (do_aif, do_aelse): Only enable output if expression is true and previous
4295 level was on.
4296 (chartype_init): Add BASEBIT chartype.
4297 (process_pseudo_op): Notice nesteed AIFs.
4298
4299Thu Jul 7 12:30:22 1994 Steve Chamberlain ([email protected])
4300
4301 * h8300.c (do_a_fix_imm): Code for 2 bit reloc type using in trapa
4302 insn. (fix pr 5165, 5174)
4303
8fd04cba
JL
4304Thu Jul 7 11:31:32 1994 Jeff Law ([email protected])
4305
13d9fd33
SC
4306 * config/tc-hppa.c (R_DLT_REL): If it isn't defined, then define
4307 to an appropriate value to avoid losing on old hpux systems.
4308
8fd04cba
JL
4309 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions for
4310 symbols in DLT relative relocs.
4311 (tc_gen_reloc): Zero out the addend field for DLT relative relocs.
4312
8882a587
ILT
4313Wed Jul 6 01:07:54 1994 Ian Lance Taylor ([email protected])
4314
4315 * config/tc-ppc.c (ppc_tc): If not OBJ_COFF, force TOC entry to
4316 align to a four byte boundary.
4317
4174e052
KR
4318Tue Jul 5 15:42:09 1994 Ken Raeburn ([email protected])
4319
4320 * config/tc-alpha.c (load_expression): Handle 32-bit addends.
4321 (gpdisp_hi16_howto): Now points to const.
4322 (load_insn_table, alpha_ip): Fix uses of const.
4323
10f67315
KR
4324 * doc/internals.texi: Updates to COFF description. Added "@end
4325 defmac" as needed, and some extra heading and "@bye" so it'll
4326 format as a separate document.
4327
bcb62abf
ILT
4328Tue Jul 5 13:54:00 1994 Ian Lance Taylor ([email protected])
4329
4330 * config/obj-elf.h (S_GET_ALIGN, S_SET_ALIGN): Define.
4331 * config/obj-elf.c (obj_elf_common): Set alignment of common
4332 symbol.
4333 * config/tc-sparc.c (s_common): If OBJ_ELF, set alignment of
4334 common symbol.
4335
655f3ef4
JL
4336Mon Jul 4 18:29:43 1994 Jeff Law ([email protected])
4337
4338 * config/tc-hppa.c (is_complex): New macro.
4339 (cons_fix_new_hppa): "Handle" complex expressions.
4340
4341Fri Jul 1 00:48:12 1994 Ian Lance Taylor ([email protected])
4342
4343 * config/obj-coff.c (write_object_file): Set s_align field from
4344 section_alignment array.
4345
04f0c2e3
KR
4346Thu Jun 30 15:05:28 1994 Ken Raeburn ([email protected])
4347
4348 * write.c (write_object_file): Use bfd_com_section_ptr.
4349 * as.h (absolute_section, undefined_section): Use new BFD macros
4350 bfd_abs_section_ptr and bfd_und_section_ptr.
4351
f2554579
ILT
4352Thu Jun 30 14:36:37 1994 Ian Lance Taylor ([email protected])
4353
4354 * config/tc-mips.c (macro): For M_LI_SS, decide how to handle it
4355 based on contents of imm_expr and offset_expr, rather than
4356 mips_pic. For M_LI_DD, decide how to handle it based on segment
4357 name of offset_expr, rather than mips_pic.
4358 (mips_ip): If g_switch_value < 4, use immediate values for 'l'.
4359 If g_switch_value < 8, use .rdata rather than .lit for 'L'.
4360
6f0b87c3
SS
4361Wed Jun 29 17:30:46 1994 Stan Shebs ([email protected])
4362
4363 * as.c (show_usage): Break long string into shorter ones.
4364 (parse_args): Add -v, prints version id and continues.
4365 * config/tc-mips.c (md_show_usage): Break long string.
4366
4367Mon Jun 27 09:47:16 1994 J.T. Conklin ([email protected])
4368
4369 * config/tc-i386.c (md_parse_option): Handle "-V" and "-Q" if
4370 OBJ_ELF is defined.
4371
f488a4d6
SS
4372Sun Jun 26 16:30:48 1994 Stan Shebs ([email protected])
4373
4374 * as.c (main) [HOST_SPECIAL_INIT]: New hook, for host-specific
4375 initialization.
4376
1f12ae43
JL
4377Wed Jun 22 00:24:55 1994 Jeff Law ([email protected])
4378
4379 * config/tc-hppa.h (obj_frob_symbol): Define for OBJ_ELF.
4380 More gas/bfd lossage exposed by the new linker code.
4381
dff770c8
ILT
4382Tue Jun 21 11:32:18 1994 Ian Lance Taylor ([email protected])
4383
1f12ae43
JL
4384 * subsegs.c (subseg_change): Clear seginfo after allocating it.
4385 (subseg_get): Pass actual size of seginfo to memset.
4386
dff770c8
ILT
4387 * subsegs.c (abs_seg_info, und_seg_info): Define if BFD_ASSEMBLER.
4388 (subseg_change): Store seg_info for bfd_abs_section_ptr in
4389 abs_seg_info, and store seg_info for bfd_und_section_ptr in
4390 und_seg_info.
4391 (subseg_get): Likewise. Also, don't set output_section if it is
4392 already set.
4393 (seg_info): Define as function.
4394 * subsegs.h (seg_info): Declare as function rather than defining
4395 as macro.
4396 * write.c (relax_and_size_seg): Call seg_info rather than
4397 bfd_get_section_userdata.
4398
e0b36f18
KR
4399Mon Jun 20 16:30:54 1994 Ken Raeburn ([email protected])
4400
639c820d
KR
4401 * configure.in (ppc-*-elf*): New target, like -sysv4*.
4402
e0b36f18
KR
4403 * expr.c (operand): If "0f" is followed by '\0', don't do eol
4404 checks.
4405
256816ca
ILT
4406Mon Jun 20 15:17:43 1994 Ian Lance Taylor ([email protected])
4407
4408 * ecoff.c (ecoff_build_aux): Call swap_tir_out and swap_rndx_out
4409 via backend pointer, not directly.
4410
de442a3c
ILT
4411Fri Jun 17 18:05:06 1994 Ian Lance Taylor ([email protected])
4412
4413 * Makefile.in (config-stamp): Make sure there is at least one
4414 element in the for loop.
4415
0e68b3bc
JL
4416Fri Jun 17 11:01:04 1994 Jeff Law ([email protected])
4417
239f16dd
JL
4418 * config/tc-hppa.c: Misc trivial changes to make gcc -Wall happy.
4419
0e68b3bc
JL
4420 * config/tc-hppa.h (elf_hppa_final_processing): Declare.
4421
5ee93e0a
KR
4422Wed Jun 15 20:44:46 1994 Ken Raeburn ([email protected])
4423
286272fb
KR
4424 * as.c (parse_args): Cast xmalloc return value.
4425
5ee93e0a
KR
4426 * Makefile.in (config-stamp): If $(defs) contains multiple words,
4427 emit a #define line for each.
4428 * configure.in: For sparc64 target, use sparc cpu files and add
4429 sparcv9 to extra_defs. No longer treat sparc64-*-aout* specially.
4430
4431 * config/tc-sparc.c (membar_masks): Now static and const.
4432 (md_show_usage) [!NO_V9]: Add -Av9 to usage message.
4433 (current_architecture) [sparcv9]: Initialize to v9.
4434 (md_begin) [sparcv9]: Don't bother changing it unconditionally
4435 here.
4436 (s_reserve): Don't pass unexpected argument to as_bad with
4437 bad-segment message.
4438
4439 * as.h (bfd_alloc_by_size_t) [BFD_ASSEMBLER]: Declare.
4440
4441 * config/atof-ieee.c (int_to_gen): Commented out unused routine.
4442
4443 * config/tc-vax.c (md_assemble): Removed check of operand section.
4444
4445 Fri Jun 3 17:25:08 1994 Pat Rankin ([email protected])
4446
4447 * config/obj-vms.h (DBG_S_C_COMPLX4, DBG_S_C_COMPLX8): define
4448 these new VMS symbol-type macros for `complex float' and
4449 `complex double' support. Their values come from the existing
4450 DSC$K_DTYPE_FC and DSC$K_DTYPE_DC macros in <descrip.h>.
4451 (DBG_S_C_REAL8_G, DBG_S_C_COMPLX8_G): G_float versions of
4452 REAL8 and COMPLX8; not used yet, because gcc outputs the same
4453 .stabs for `double' regardless of whether `-mg' is used.
4174e052 4454 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
5ee93e0a
KR
4455 for gcc2's predefined types "complex float", "complex double",
4456 and "complex long double" (identical to complex double).
4457
36a87ad7
ILT
4458Wed Jun 15 12:32:55 1994 Ian Lance Taylor ([email protected])
4459
0e35ba9b
ILT
4460 * config/obj-coff.c (coff_frob_symbol): Use C_STAT for the .text
4461 section symbol, not C_LABEL.
4462
adf05987
ILT
4463 * config/tc-mips.c (mips_ip): Permit a modifier in 'o' case, and
4464 permit non constant expressions in 'u' case. Lets ``lui
4465 $8,%hi(foo); lw $8,%lo(foo)($8)'' work correctly.
36a87ad7 4466
a5183648
ILT
4467Mon Jun 13 12:08:52 1994 Ian Lance Taylor ([email protected])
4468
4469 * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
4470 to put a common symbol in a set.
4471
02d4e923
ILT
4472Sat Jun 11 16:41:21 1994 Ian Lance Taylor ([email protected])
4473
4474 Add weak symbols as an extension to a.out.
4475 * read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and
4476 OBJ_BOUT if not BFD_ASSEMBLER.
4477 * config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB):
4478 Define as in ../include/aout/aout64.h.
4479 * config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER,
4480 define as char.
4481 (S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER.
4482 * config/obj-aout.c (obj_pseudo_table): Add "weak".
4483 (obj_emit_symbols): Adjust type of weak symbols.
4484 (obj_aout_weak): New static function.
4485
726672c5
ILT
4486Fri Jun 10 13:48:49 1994 Ian Lance Taylor ([email protected])
4487
7b1e07b4
ILT
4488 * config/obj-elf.c (obj_elf_section): Don't set any flags based on
4489 the type of a special section.
4490
726672c5
ILT
4491 * config/ho-sunos.h: Include <stdlib.h>. Don't declare malloc,
4492 realloc, free, or atol.
4493
0b3d0999
BC
4494Wed Jun 8 06:28:37 1994 Bill Cox ([email protected])
4495
4496 * Makefile.in (check): Delete as.new dependency, so that
4497 regression test doesn't trigger an assembler build.
4498
daa7e184
ILT
4499Tue Jun 7 13:33:18 1994 Ian Lance Taylor ([email protected])
4500
4501 * Makefile.in (mostlyclean, realclean): New targets.
4502 * doc/Makefile.in, testsuite/Makefile.in: Likewise.
4503
d2c71068
ILT
4504Mon Jun 6 13:10:54 1994 Ian Lance Taylor ([email protected])
4505
4506 * config/tc-mips.c (RDATA_SECTION_NAME): Define.
4507 (macro): Correct M_LI_SS SVR4_PIC/EMBEDDED_PIC case. After M_LI_D
4508 or M_L_DOB or label dob, force a new frag to avoid getting
4509 confused in tc_gen_reloc.
4510 (mips_ip): Use RDATA_SECTION_NAME, not .rdata.
4511 (s_change_sec): Likewise.
4512
1fbfe108
ILT
4513Fri Jun 3 23:35:36 1994 Ian Lance Taylor ([email protected])
4514
4515 * read.c (emit_expr): Use memset to zero out memory, rather than
4516 going through md_number_to_chars. This permits handling symbolic
4517 arguments when the size is larger than sizeof (valueT), if
4518 TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS).
4519
f3d817d8
DM
4520Fri Jun 3 12:50:13 1994 David J. MacKenzie ([email protected])
4521
baed44cd
DM
4522 * as.c (show_usage), config/tc-alpha.c (md_show_usage),
4523 config/tc-mips.c (md_show_usage): Fix up messages.
4524
def66e24
DM
4525 * as.h: Replace flagseen with separate variables.
4526 * as.c (parse_args): Set them. Don't accept -1 option, or -v
4527 explicitly (it's a synonym for --version).
69cb5925 4528 * as.c, input-scrub.c, messages.c, read.c, symbols.c, write.c,
def66e24
DM
4529 config/obj-aout.c, config/obj-aout.h, config/obj-bout.c,
4530 config/obj-bout.h, config/obj-coff.c, config/obj-coff.h,
4531 config/obj-vms.c, config/tc-hppa.c, config/tc-i386.c,
4532 config/tc-i960.c, config/tc-m68k.c, config/tc-mips.c,
4533 config/tc-vax.c: Use the new flag variables instead of flagseen.
4534 * config/tc-vax.c [OBJ_VMS]: Recognize -+, -1, -v, and document in
69cb5925 4535 usage.
def66e24 4536
f3d817d8
DM
4537 * as.c (show_usage): Remove target specific messages;
4538 instead, call md_show_usage.
4539 (parse_args): Use getopt_long_only. Take pointers to argc and
4540 argv.
4541 (main): Pass parse_args pointers.
4542 * as.h: Remove 3 variables that are redundant with flagseen.
4543 * as.c, messages.c: Change their users to use flagseen.
4544 Define getopt stuff.
4545 * tc.h: Update md_parse_option decl. Add md_show_usage decl.
4546 * config/tc-*.c: Add md_shortopts, md_longopts,
4547 md_longopts_size, md_show_usage. Change calling convention for
4548 md_parse_option. Remove md_parse_long_option.
4549 * config/tc-ns32k.c: Rename `struct option' to `struct ns32k_option'.
4550 * config/tc-i386.h: Don't define md_parse_option.
4551
ebd6f117
DM
4552Thu Jun 2 13:54:46 1994 David J. Mackenzie ([email protected])
4553
4554 * as.c (show_usage): New function.
4555 (parse_args): Code moved from main.
4556 Recognize --help and --version.
4557 * config/tc-ns32k.h: Define TC_NS32K.
4558 * doc/as.texinfo: Document all of the target-independent command
4559 line options.
4560
314628f6
KR
4561Thu Jun 2 12:07:25 1994 Ken Raeburn ([email protected])
4562
4563 * gasp.c (hash_new_table): Clear newly allocated table.
4564
4565 * config/tc-m68k.c (enum _register): Add 68060 control registers
4566 BUSCR and PCR.
4567 (last_movec_reg): New macro.
4568 (m68000_control_regs, m68010_control_regs, m68020_control_regs,
4569 m68040_control_regs, m68060_control_regs): New arrays.
4570 (control_regs): New pointer.
4571 (m68k_ip): Use control_regs instead of testing CPU every time.
4572 Use last_movec_reg too. In error messages, handle 68060, and
4573 print 68060 for mfloat, too.
4574 (m68k_init_after_args): Handle "68060". Use m68040up for making
4575 m68851 choice. Set control_regs.
4576 (md_parse_option): Handle "68060".
4577 * configure.in: Setting cpu_type, recognize m68060 too.
4578
4579 * config/obj-coff.c (fixup_segment) [!BFD_ASSEMBLER]
4580 [DIFF_EXPR_OK]: Do conversion to pc-relative for difference, even
4581 if pcrel is already set.
4582
4583 * read.c (potable): Add this_gcc_requires_the_gnu_assembler in all
4584 lower-case, in case we're ignoring case of opcodes in the input
4585 file.
4586
4587 * doc/as.texinfo (.section): Document as unavailable for a.out
4588 type formats.
4589
4590 * config/tc-alpha.c (machine): New variable.
4591 (load_insn): New macro.
4592 (load_insn_table): New function.
4593 (md_begin): Call load_insn_table, once for basic instructions and
4594 once for appropriate PAL instruction table.
4595 (md_parse_option): Set `machine' based on -m##### arguments.
4596 * config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from
4597 alpha_opcodes.
4598 (alpha_pal21164_opcodes): New table.
4599 (NUM21064OPCODES, NUM21164OPCODES): New macros.
4600
4601 * configure.in (target i386-*-netbsd0.8): Use 386bsd emulation.
4602
4603 * doc/Makefile.in (install-info-gasp): Use $$dir when installing
4604 file.
4605
0221ddf7
ILT
4606Wed Jun 1 10:48:19 1994 Ian Lance Taylor ([email protected])
4607
4608 * config/tc-mips.c (mips_ip): Force floating point values to be
4609 aligned correctly.
4610
488442d4 4611Fri May 27 10:05:53 1994 Ken Raeburn ([email protected])
c06e55d9
KR
4612
4613 Merged in changes from gas-2.3 net release:
4614
4615 * Makefile.in (VERSION): Updated to cygnus-2.3.1.
4616
4617 * config/obj-vms.c: Replaced unchecked uses of malloc with
4618 xmalloc.
4619
4620 * listing.c (list_symbol_table): Only test BFD64, not
4621 BFD_ASSEMBLER too.
4622
314628f6
KR
4623 * config/obj-coff.c (fixup_segment) [BFD_ASSEMBLER]
4624 [DIFF_EXPR_OK]: Don't check pcrel, just convert it.
c06e55d9
KR
4625
4626 * config/obj-vms.c: Removed lots of extra semicolons after
4627 compound statements.
4628 (strchr): Don't declare here.
4629
4630 * config/ho-vax.h (realloc): Declare.
4631
4632 * config/ho-vms.h (strchr, strdup): Declare.
4633
4634 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Accept and ignore
4635 option `-q'.
4636
4637 Wed May 18 20:50:35 1994 Pat Rankin ([email protected])
4638
4639 * config/obj-vms.h (DBG_S_C_SQUAD, DBG_S_C_UQUAD): define these
4640 new VMS symbol-type macros; signed and unsigned quadword integers,
4641 for `long long' support. Their values come from the existing
4642 DSC$K_DTYPE_QU and DSC$K_DTYPE_Q macros in <descrip.h>. The
4643 VMS debugger now recognizes `long long' variables correctly.
4174e052 4644 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
c06e55d9
KR
4645 for gcc2's predefined types "long double" (same as double, as
4646 per gcc's current state), "long long int", "long long unsigned
4647 int", and final `otherwise' case (to avoid uninitialized type
4648 and size fields). [caveat: predefined types "complex int",
4649 "complex float", "complex double", and "complex long double" are
4650 still missing.]
4651
4652 * config/ho-vms.h (EXIT_FAILURE): define as 0x10000002 instead
4653 of 0, because the latter indicates success rather than failure
4654 when passed to `exit' or return from `main' compiled by gcc2.
4655
4656 * config/obj-vms.c (array_suffix, generate_suffix): replace two
4657 hardcoded `0xa3's with macro DBG_S_C_ADVANCED_TYPE from obj-vms.h.
4658 (VMS_typedef_parse): eliminate redundant if-then-else when
4659 allocating new symbol entry and linking it to VMS_Symbol_type_list.
4660
4661 Tue May 17 20:47:31 1994 Pat Rankin ([email protected])
4662
4663 * config/obj-vms.c (Write_VMS_MHD_Records): don't try to interpret
4664 the contents of the GAS_VERSION string when falling back to it for
4665 language processor identification.
4666
4667 * make-gas.com, vmsconf.sh (ENVIRON): fix misspelling of
4668 `psect_attr' in linker options.
4669
4670 Wed May 11 22:32:00 1994 DJ Delorie ([email protected])
4671
4672 * configure.bat: update to latest makefile.in
4673 * config/te-go32.h: [new] go32's environment
4674
a193acc0
ILT
4675Fri May 20 17:59:34 1994 Ian Lance Taylor ([email protected])
4676
4677 * as.h: Don't declare parameters for strstr.
4678
f9c57637
ILT
4679Thu May 19 15:40:13 1994 Ian Lance Taylor ([email protected])
4680
4681 * config/tc-sparc.c (md_section_align): Don't change the size if
4682 OBJ_ELF.
4683
ac7f7dfe
ILT
4684Wed May 18 13:08:07 1994 Ian Lance Taylor ([email protected])
4685
4686 * Makefile.in (install): Redirect ln output to /dev/null. If ln
4687 fails on gasp, install gasp.new, not gasp.
4688
44e8d616
JL
4689Wed May 18 09:16:36 1994 Jeff Law ([email protected])
4690
4691 * config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA for
4692 absolute calls.
4693
ee8b8346
JL
4694Tue May 17 12:50:46 1994 Jeff Law ([email protected])
4695
4696 * config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
4697 on a partial completer match.
4698
3315c7c7
JL
4699Mon May 16 12:03:49 1994 Jeff Law ([email protected])
4700
4701 * config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind
4702 throughout code.
4703 (is_complex): Delete definition and support for complex relocation
4704 types.
4705 (tc_gen_reloc): Delete special unwind crud for ELF. Simplify and
4706 rewrite ELF code based on 94-02-02 PA ELF draft spec.
4707 (pa_build_unwind_subspace): Use standard PARISC_DIR32 relocs for
4708 the unwind descriptors.
4709
c794f0aa
SC
4710Fri May 6 14:13:15 1994 Steve Chamberlain ([email protected])
4711
69cb5925 4712 * config/go32.mh: New makefile fragment for go32 crossing.
c794f0aa
SC
4713 * configure.in (host==go32): Use new fragment.
4714
2db90a63
ILT
4715Fri May 6 14:35:58 1994 Ian Lance Taylor ([email protected])
4716
4717 * gasp.c: Include libiberty.h.
4718 (main): Remove unused variable i.
4719
4720 * config/tc-ppc.c (md_begin): When using -many, permit comparison
4721 instructions to appear multiple times in the opcode table.
4722
59232011
KR
4723Thu May 5 19:14:43 1994 Ken Raeburn ([email protected])
4724
2db90a63
ILT
4725 * Makefile.in (VERSION): Update to 2.2.90.
4726
fbefddfb
KR
4727 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Don't permit additions
4728 to the symbol table if it's already been set in the output bfd.
4729 (symbol_begin) [! EMIT_SECTION_SYMBOLS] [RELOC_REQUIRES_SYMBOL]:
4730 Don't use bfd_abs_section.symbol for gas absolute symbol.
4731
59232011
KR
4732 * doc/Makefile.in (distclean, clean-dvi, clean-info): Delete gasp
4733 files too.
4734
6d41de19
ILT
4735Thu May 5 18:12:51 1994 Ian Lance Taylor ([email protected])
4736
4737 * config/tc-mips.c (mips_emit_delays): Make call to
4738 mips_no_prev_insn unconditional.
4739
a139d99b
KR
4740Thu May 5 17:25:38 1994 Ken Raeburn ([email protected])
4741
4742 * config/obj-coff*.*: Merged coffbfd versions into coff versions,
4743 with a single "#ifdef BFD_ASSEMBLER" controlling most of it for
4744 now. Deleted obj-coffbfd.* files.
4745 * configure.in: Always use obj-coff.* for COFF targets.
4746
9267b020
KR
4747Wed May 4 13:34:11 1994 Ken Raeburn ([email protected])
4748
a139d99b
KR
4749 * config/te-dpx2.h (TARGET_FORMAT, REGISTER_PREFIX_OPTIONAL):
4750 Define.
4751 * configure.in (m68k-bull-sysv3*): Enable.
4752
9267b020
KR
4753 * config/coff_gnu.h: Deleted.
4754
9fc63ce0
ILT
4755Wed May 4 11:29:17 1994 Ian Lance Taylor ([email protected])
4756
2237e240
ILT
4757 * config/tc-m68k.h (TARGET_FORMAT): If not TE_SUN3, define as
4758 "a.out-zero.big".
4759
9fc63ce0
ILT
4760 * config/obj-coffbfd.c (fixup_segment): Make common symbol and PC
4761 relative adjustments when TE_LYNX is defined as well as when
4762 TC_I386 is defined.
4763
a3547e53
KR
4764Wed May 4 02:29:21 1994 Ken Raeburn ([email protected])
4765
3f048548
KR
4766 * as.h (strstr): Restore declaration.
4767 (subseg_get) [BFD_ASSEMBLER]: Declare.
4768
4769 * write.c (write_object_file): If obj_adjust_symtab is defined,
4770 invoke it. Then call set_symtab, and finally invoke *_frob_file
4771 hooks.
4772 * config/obj-coff.c (coff_adjust_symtab): Renamed from
4773 coff_frob_file.
4774 * config/obj-coff.h (coff_adjust_symtab): Changed declaration
4775 accordingly.
4776 (obj_adjust_symtab): Macro also changed.
4777
a3547e53
KR
4778 * configure.in (i386-*-gnu*): New target, handled like i386-mach.
4779
4780Tue May 3 21:04:16 1994 Ken Raeburn ([email protected])
4781
4782 * config/obj-coff.h (TARGET_FORMAT) [TC_I960]: Select little
4783 endian version.
4784
4785 * config/obj-coffbfd.h (TARGET_FORMAT) [TC_I960]: Ditto.
4786
4787 * config/obj-coff.c (coff_frob_section): Round up the size of
4788 every section to a multiple of the alignment, so that BFD doesn't
4789 surprise us.
4790
4791 Eliminate many simple differences between the two COFF back ends:
4792
4793 * config/obj-coffbfd.c: Removed all uses of DEFUN and DEFUN_VOID.
4794 Made minor stylistic changes, deleted some register declarations.
4795 (stack_top): Deleted.
4796 (symbol_to_chars): Use absolute_section and reg_section instead of
4797 the corresponding SEG_* symbols.
4798 (obj_coff_endef, tag_find_or_make, fixup_segment): Likewise.
4799 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
4800 Moved to just after pseudo-op table. All functions now static.
4801 (stack_delete): Removed declaration.
4802 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
4803 after stack functions.
4804 * config/obj-coffbfd.h: Reordered some declarations and macros.
4805 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
4806 (stack typedef): Deleted.
4807 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
4808 (SYM_AUXENT): New macro.
4809 (SA_GET_*, SA_SET_*): Define in terms of SYM_AUXENT when feasible.
4810 (SF_GET_*, SF_SET_*): Define in terms of SF_GET when feasible.
4811 (SA_GET_SYM_TAGNDX, SA_GET_SYM_ENDNDX, SA_SET_SYM_TAGNDX,
4812 SA_SET_SYM_ENDNDX, object_headers typedef, data_section_header,
4813 text_section_header): Delete non-BFD_HEADERS versions, since we
4814 always define that symbol now.
4815
4816 * config/obj-coff.c (stack_top): Deleted.
4817 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
4818 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Change
4819 argument name from "ignored" to "ignore".
4820 (obj_coff_val): Use frag_now_fix.
4821 (obj_pseudo_table): Removed IGNORE_DEBUG version, since it doesn't
4822 get used.
4823 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
4824 Moved to just after pseudo-op table. All functions now static.
4825 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
4826 after stack functions.
4827 * config/obj-coff.h: Reordered some declarations and macros.
4828 Protected against multiple inclusions.
4829 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
4830 (stack typedef): Deleted.
4831 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
4832 (stdoutput): Deleted declaration.
4833 (TARGET_FORMAT) [TC_I386]: Don't define if already defined.
4834
1b96bdce
ILT
4835Mon May 2 17:09:24 1994 Ian Lance Taylor ([email protected])
4836
4837 * subsegs.h (segment_info_type): Use fix_tail field even if
4838 BFD_ASSEMBLER.
4839 * subsegs.c (subseg_change): Initialize fix_tail field.
4840 (subseg_get): Likewise.
4841 * write.c (frags_chained): New static variable.
4842 (fix_new_internal): If frags_chained is set, use fix_root and
4843 fix_tail from seg_info (now_seg), rather than frchain_now.
4844 (chain_frchains_together_1): Set fix_tail field.
4845 (chain_frchains_together): Set frags_chained.
4846
17f0b355
KR
4847Thu Apr 28 01:39:15 1994 Ken Raeburn ([email protected])
4848
4849 * config/tc-mips.c (s_option): Only refer to g_switch_* variables
4850 if GPOPT is defined.
4851 (s_abicalls): Ditto.
4852 (md_apply_fix): Cast char* to unsigned char* to avoid pointer
4853 mismatch.
4854
fa1a86f3
SC
4855Wed Apr 27 11:06:32 1994 Steve Chamberlain ([email protected])
4856
4857 * configure.in (i386-*-go32): Uses coff now.
69cb5925 4858 * gasp.c (main): Now takes -D on command line.
fa1a86f3
SC
4859 (show_usage): Describe new options.
4860
b46f83f2
KR
4861Tue Apr 26 17:10:30 1994 Ken Raeburn ([email protected])
4862
4863 * listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and
4864 "NO UNDEFINED SYMBOLS" if there aren't any, instead of displaying
4865 the header with an empty list.
4866
fb51366f
KR
4867 * config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
4868 also before setting STYP_NOLOAD for .bss section.
4869
926ffe94
KR
4870 * config/tc-m68k.c (flag_reg_prefix_optional): New variable.
4871 Initialized to value of REGISTER_PREFIX_OPTIONAL, if defined, or
4872 zero.
4873 (m68k_reg_parse): If flag_reg_prefix_optional is set, permit
4874 register prefix to be absent.
4875 (m68k_ip_op): Accept `&' also for immediate constants.
4876 (insert_reg): Don't bother with (two!?) sanity checks of the
4877 symbol table when inserting each register.
4878 (m68k_parse_long_option): New function. Set
4879 flag_reg_prefix_optional if "register-prefix-optional" is passed.
4880 * config/tc-m68k.h (REGISTER_PREFIX): Always define if not already
4881 defined.
4882 (OPTIONAL_REGISTER_PREFIX): Don't define.
4883 (REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero
4884 or one depending on M68KCOFF.
4885
4886 Some changes to help Apollo support, from [email protected]:
4887 * config/tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC):
4888 Define as macros instead of enumerators, since the Apollo compiler
4889 can't handle "enumVal1, enumVal2 = enumVal1" when defining an enum
4890 type.
4891 (make_pcrel_absolute) [NO_PCREL_RELOCS]: New function.
4892 (tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE,
4893 R_DIR16, and R_DIR32 relocs.
4894 * config/tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC):
4895 Use Apollo versions.
4896 [TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine. That is,
4897 do include the optional header for Apollo target.
4898 (COFF_MAGIC): Don't define as MC68MAGIC if it's already defined.
4899
4900 * config/tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%'
4901 can be used within a label name.
4902
4903 * config/tc-m68k.h (m68k_init_after_args): Declare.
4904 (tc_init_after_args): Define as m68k_init_after_args.
4905 * config/tc-m68k.c (m68k_init_after_args): New function,
4906 containing one-shot code from md_assemble. Added warning for
4907 combination of 68040 and 68851.
4908 (md_assemble): Startup-time code deleted.
4909
497c179a
ILT
4910Mon Apr 25 16:19:17 1994 Ian Lance Taylor ([email protected])
4911
4912 * doc/Makefile.in (clean, distclean): Remove asconfig.texi.
4913
f38cd6ec
JL
4914Sun Apr 24 00:13:08 1994 Jeffrey A. Law ([email protected])
4915
4916 * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break
4917 instruction) is unsigned.
4918
92867d8e
ILT
4919Fri Apr 22 17:58:22 1994 Ian Lance Taylor ([email protected])
4920
4921 * config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value
4922 and bfd_ecoff_set_regmasks to set the GP value and the register
4923 masks, rather than using the now obsolete fake .reginfo section.
4924
e860dfd0
KR
4925Fri Apr 22 15:17:06 1994 Ken Raeburn ([email protected])
4926
4927 * listing.c (list_symbol_table): Don't print register symbols as
4928 undefined.
4929
988238d3
KR
4930 * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip
4931 underscores, since symbol_new will already have done it.
4932 * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto.
4933
a926dd6a
KR
4934 * as.c (main): If tc_init_after_args is defined, invoke it after
4935 all arguments have been processed.
4936
4937 Some changes to help Apollo support, from [email protected]:
4938 * as.c (perform_an_assembly_pass) [TE_APOLLO]: Create .wtext
4939 section instead of .text. Call create_target_segments.
4940 * read.c (demand_copy_string): No longer static.
4941
6fdc26e6
ILT
4942Thu Apr 21 15:50:04 1994 Ian Lance Taylor ([email protected])
4943
4944 * config/tc-mips.c (append_insn): Permit branches to be switched
4945 with the preceding instruction even if .set nobopt has been seen.
4946 .set nobopt actually controls whether to bring up an instruction
4947 from the branch target, which gas does not currently support.
4948
a6652b1c
KR
4949Wed Apr 20 18:46:14 1994 Ken Raeburn ([email protected])
4950
71b4de6f
KR
4951 * config/obj-coff.h, config/obj-coff.c: Deleted all code used only
4952 when BFD_ASSEMBLER is not defined, and all conditionals relating
4953 to such code. No such targets remain.
4954
4955 Fixes for stabs-in-coff:
4956 * config/obj-coff.c: Include subsegs.h.
4957 (coff_frob_section): New function.
4958 (obj_coff_init_stab_section): New function.
4959 * config/obj-coff.h (obj_coff_init_stab_section,
4960 coff_frob_section): Declare.
4961 (obj_frob_section): New macro; uses coff_frob_section.
4962 (INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section.
4963
a6652b1c
KR
4964 * config/tc-sparc.c (md_section_align): Always round up to
4965 multiple of alignment power specified in bfd target vector.
d924d209
KR
4966
4967 * gasp.c: Include ctype.h.
4968
19990560
KR
4969Mon Apr 18 21:08:01 1994 Ken Raeburn ([email protected])
4970
4971 * doc/Makefile.in, doc/as.texinfo: Renamed asdoc-config.texi to
4972 asconfig.texi.
4973
4974 * doc/Makefile.in (install-info-as, install-info-gasp): Get file
4975 names from source directory without pathname.
4976
4977 * config/obj-vms.c (VMS_write_object_file): While looking for
4978 register mask, skip empty fill frags caused by enabling listing
4979 output.
4980
4981 * config/ho-sysv.h: Include string.h.
4982
4983 * doc/internals.texi: New (well, recently added) file. Just added
4984 info on as_warn and friends.
4985
9de7c1fc
JL
4986Mon Apr 18 14:28:22 1994 Jeffrey A. Law ([email protected])
4987
4988 * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in
4989 defaults for defined, private, and spnum fields for the
4990 $TEXT$ and $PRIVATE$ spaces. Do not clobber spnum. Do
4991 not reset the segment if just updating a space.
4992 (pa_spaces_begin): Set BFD section flags for all built-in
4993 subspaces.
4994
e904716c
ILT
4995Fri Apr 15 10:51:51 1994 Ian Lance Taylor ([email protected])
4996
37032d95
ILT
4997 * ecoff.c (first_proc_ptr): New static variable.
4998 (add_procedure): Set first_proc_ptr if it hasn't been set.
4999 (ecoff_build_lineno): If the first procedure does not start at
5000 address zero, insert a dummy line to compensate.
5001
e904716c
ILT
5002 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
5003 as well as as.new.
5004
d6f98c55
KR
5005Thu Apr 14 15:12:36 1994 Ken Raeburn ([email protected])
5006
5007 * expr.c (operand): Try to parse "0f" and "0b" sequences as
5008 floating point and binary numbers respectively; if it doesn't
5009 work, treat them as local labels.
5010
c92d9ee9
KR
5011 * Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
5012 * configure.in: Set ALL_OBJ_DEPS in output Makefile.
5013
5014 Based on suggestions from <[email protected]>
5015 (Charles Bailey):
5016 * vmsconf.sh: In generated file, get ".obj" suffix right, build
5017 source files from other directories into objects in the current
5018 directory, and specify PSECT attributes explicitly to linker.
5019 Also added missing label.
5020 * Makefile.in (stamp-mk.com): Reference new variable
5021 VMS_OTHER_OBJS for list of non-local object files, instead of
5022 listing them here.
5023 (VMS_OTHER_OBJS): New variable, added more libiberty files.
5024 * make-gas.com: Regenerated.
5025
5026 * config/ho-vms.h (unlink): Define as delete.
5027
5028 * config-gas.com: Fix quoting on TARGET_CANONICAL definition.
5029 Delete files before creating them.
5030
1a69212c
ILT
5031Thu Apr 14 13:34:24 1994 Ian Lance Taylor ([email protected])
5032
b3cd8555
ILT
5033 * Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.
5034
1a69212c
ILT
5035 * config/tc-mips.h (DIFF_EXPR_OK): Define.
5036 * config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
5037 certain cases of 'i', 'j' and 'o'. Change 'u' to take an
5038 argument, the reloc type.
5039 (load_register): Pass reloc type to macro_build for 'u'.
5040 (macro): Likewise. For M_LA_AB permit a difference expression
5041 when generating embedded PIC code between an arbitrary symbol and
5042 a symbol in the .text section.
5043 (mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
5044 BFD_RELOC_PCREL_LO16 to be emitted.
5045 (md_apply_fix): Check that most relocs are not PC relative.
5046 Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
5047 (tc_gen_reloc): Change #error to as_fatal. Handle
5048 BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
5049
cc886e3d
SS
5050Tue Apr 12 18:25:13 1994 Stan Shebs ([email protected])
5051
5052 * subsegs.c (subsegs_begin): Call memset with args in the correct
5053 order.
5054 (subseg_get): Clear newly allocated seginfo, set its pointer slots
5055 to NULL instead of 0.
5056
05210990
JL
5057Mon Apr 11 09:00:57 1994 Jeffrey A. Law ([email protected])
5058
caed9e82
JL
5059 * config/tc-hppa.c (pa_procend): Handle case where label was
5060 defined after the .proc directive.
5061
05210990
JL
5062 * config/tc-hppa.c (pa_procend): Give an error if we encounter a
5063 procend for a procedure without a name.
5064
1c803e52
ILT
5065Thu Apr 7 14:28:30 1994 Ian Lance Taylor ([email protected])
5066
5067 * config/tc-mips.c (macro): Pass NULL for expression argument to
5068 macro_build for nori case.
5069 (SWITCH_TABLE): Define.
5070 (mips_force_relocation): Force a relocation for a switch table
5071 entry.
5072 (md_apply_fix): Write switch table entry value into file.
5073 (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry,
5074 and set the addend to the difference between the reloc address and
5075 the subtrahend.
5076
0b503989
JL
5077Thu Apr 7 10:38:18 1994 Jeffrey A. Law ([email protected])
5078
5079 * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.
5080 (elf_tc_make_sections): Likewise.
5081 (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls.
5082
5083 * config/tc-hppa.c (hppa_tc_make_sections): Delete function.
5084 (hppa_tc_symbol): Likewise.
5085
5086 * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and
5087 elf_tc_make_sections stuff. It was there to support PA braindamage
5088 which has been fixed, and in the case of elf_tc_make_sections is
5089 redundant with elf_tc_final_processing.
5090
f39a73b1
JL
5091Wed Apr 6 20:48:30 1994 Jeffrey A. Law ([email protected])
5092
5093 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
5094 manufacturer.
5095
f3645945
ILT
5096Tue Apr 5 15:48:03 1994 Ian Lance Taylor ([email protected])
5097
5098 * config/tc-mips.c (mips_ip): For case 'o', when generating
5099 embedded PIC code, accept the difference between two local symbols
5100 as being constant.
5101 (mips_force_relocation): Only force a reloc to be generated for a
5102 PC relative fixup.
5103 (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup
5104 value into the file if the fixup will not generate a reloc.
5105
03fcf1f8
KR
5106Tue Apr 5 11:14:14 1994 Ken Raeburn ([email protected])
5107
5108 * config/tc-sparc.c (s_reserve): If section passed isn't bss,
5109 don't spew remainder of input file in error message.
5110 (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error
5111 message with reloc type and try to process remainder of file.
5112
5113 * doc/Makefile.in (install-info-as, install-info-gasp): New
5114 targets, now explicitly checking $(srcdir) for info files.
5115 (install-info): Depend on both of them; do nothing more.
5116
79381848
JL
5117Mon Apr 4 17:06:04 1994 Jeffrey A. Law ([email protected])
5118
5119 * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.
5120
1e147242
ILT
5121Mon Apr 4 12:39:23 1994 Ian Lance Taylor ([email protected])
5122
1937a665
ILT
5123 * config/tc-ppc.c (ppc_insert_operand): Check PPC_OPERAND_SIGNED
5124 flag rather than signedp field. Only permit extended range if
5125 PPC_OPERAND_SIGNOPT flag is set and assembling in 32 bit mode.
5126 Based on patch from David Edelsohn ([email protected]).
5127
1e147242
ILT
5128 * config/tc-ppc.c (ppc_size): New static variable.
5129 (ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER.
5130 (md_begin): If an instruction has a size specific flag set, only
5131 add it if we are assembling that size.
5132
7ab2e983
ILT
5133Thu Mar 31 16:51:16 1994 Ian Lance Taylor ([email protected])
5134
5135 * config/tc-sparc.c (tc_gen_reloc): Add a gruesome hack to get
5136 cross section PC relative relocs right for COFF and ELF.
5137
75d20ac8
KR
5138Mon Mar 28 14:38:23 1994 Ken Raeburn ([email protected])
5139
5140 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.
5141 (OBJ_PROCESS_STAB): Don't define.
5142
57afabd0
ILT
5143Mon Mar 28 12:40:25 1994 Ian Lance Taylor ([email protected])
5144
5145 * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber
5146 the type of symbol set symbols which happen to be in the absolute
5147 or undefined section.
5148
882bdc69
ILT
5149Mon Mar 28 12:35:00 1994 David Edelsohn ([email protected])
5150
5151 * config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka
5152 RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604),
5153 and -many (all architectures).
5154
de3ffc7a
JL
5155Sun Mar 27 14:04:19 1994 Jeffrey A. Law ([email protected])
5156
69cb5925 5157 * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation
de3ffc7a
JL
5158 involving a function symbol which is not a plabel to zero.
5159 (md_apply_fix): Never pass a function symbol to field_adjust.
5160
5b63f465
ILT
5161Fri Mar 25 17:35:49 1994 Ian Lance Taylor ([email protected])
5162
645f842c
ILT
5163 * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an
5164 N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL.
5165
5b63f465
ILT
5166 * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a
5167 branch with an instruction that uses $at, in case the branch is
5168 later expanded.
5169 (macro): If EMBEDDED_PIC, case M_JAL_A may use $at.
5170 (md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol
5171 to make it pcrel_offset.
5172 (tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to
5173 reloc->address; another gruesome hack to get gas reloc handling to
5174 do the right thing.
5175
11d7c064
KR
5176Thu Mar 24 21:29:29 1994 Ken Raeburn ([email protected])
5177
5178 * config/tc-alpha.c (alpha_ip): Only set GP prolog size if using
5179 PV register.
5180 (T12): New macro.
5181 (emit_insn): New function.
5182 (md_assemble): Call it.
5183 (alpha_force_relocation): Handle BFD_RELOC_26, for call_pal
5184 instructions.
5185 (lituse_pending): New variable. Set by anything that generates a
5186 LITERAL reloc, cleared by anything that generates a LITUSE reloc,
5187 tested by code that might want to emit a LITUSE reloc.
5188 (emit_unaligned_io): New function. Currently calls md_assemble,
5189 but it should eventually be converted to generate the insn itself
5190 and call emit_insn directly.
5191 (emit_load_unal, emit_store_unal, emit_byte_manip_r,
5192 emit_extract_r, emit_insert_r, emit_mask_r, emit_sign_extend,
5193 emit_bis_r): Likewise.
5194 (alpha_ip, case 'I'): Handle with BFD_RELOC_23.
5195 (alpha_ip, label get_macro): Don't emit the final instruction if
5196 the opcode is zero.
5197 (alpha_ip, case 'B', subcase 'd'): New case, for subword and
5198 unaligned memory access macros.
5199 (md_apply_fix): Handle BFD_RELOC_26. Generate an error message if
5200 the value can't be resolved.
5201
5202Wed Mar 23 16:06:08 1994 Ian Lance Taylor ([email protected])
5203
5204 * config/tc-mips.c (md_parse_option): For -membedded-pic, force
5205 the -G value to 0x7fffffff. For SVR4 PIC options, don't call
5206 bfd_set_gp_size here, it's done in md_begin. Don't permit -G with
5207 -membedded-pic.
5208 (mips_force_relocation): New function.
5209 (md_apply_fix): Set fixP->fx_done appropriately.
5210 (s_change_sec): For EMBEDDED_PIC, change .data and .rdata to
5211 .sdata.
5212 * config/tc-mips.h (TC_FORCE_RELOCATION): Define.
5213 (mips_force_relocation): Declare.
5214 (TC_HANDLE_FX_DONE): Define.
5215
e1b5066f
ILT
5216Tue Mar 22 13:58:37 1994 Ian Lance Taylor ([email protected])
5217
d9aba805
ILT
5218 * config/tc-mips.c (enum mips_pic_level): New enum.
5219 (mips_pic): Change from int to enum mips_pic_level. Change all
5220 uses (0 becomes NO_PIC, 2 becomes SVR4_PIC).
5221 (load_address): Handle EMBEDDED_PIC.
5222 (macro): Handle EMBEDDED_PIC in all PIC cases.
5223 (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If
5224 OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept
5225 -non_shared to use NO_PIC (this is how the Irix 5 assembler
5226 works). Do not permit -G with SVR4_PIC.
5227 (s_abicalls): Warn if -G was used, and force -G 0.
5228 (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for
5229 anything but a.out, not just for ELF. For ECOFF, don't generate a
5230 BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.
5231
e1b5066f
ILT
5232 * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.
5233
5234Sun Mar 20 16:31:55 1994 Jeffrey A. Law ([email protected])
5235
5236 * config/tc-hppa.c (create_new_space): Use ints, not chars as
5237 parameters to avoid losing when compiling with HP CC.
5238 (create_new_subspace, update_subspace, fix_new_hppa): Likewise.
5239
1871f91a
KR
5240Sun Mar 20 14:43:14 1994 Ken Raeburn ([email protected])
5241
c37f6138
KR
5242 * Makefile.in (config-stamp): If `defs' is defined, emit a
5243 preprocessor directive to create a macro named by this value into
5244 config.new; don't explicitly go for BFD_ASSEMBLER.
5245 * configure.in: Define `defs', not `BFDDEF'. Set it to
5246 MANY_SEGMENTS for any obj-coffbfd target.
5247 * config/obj-coffbfd.h (BFD_HEADERS, BFD): Define.
5248 * config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS,
5249 or BFD_HEADERS.
5250 (LOCAL_LOADLIBES): Deleted.
5251 * config/m68kcoff.mt (TDEFINES): Don't define those macros.
5252 * config/m88kcoff.mt (TDEFINES): Ditto.
5253 * config/ebmon29k.mt: Deleted.
5254 * config/h8300hds.mt: Deleted.
5255 * config/ic960coff.mt: Deleted.
5256 * config/sparc.mt: Deleted.
5257 * config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
5258 * config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
5259 * config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
5260 * config/z8k.mt (LOCAL_LOADLIBES): Deleted.
5261 (TDEFINES): Don't define the coffbfd macros.
5262
5263 * Makefile.in: Insert makefile fragments before OBJS definition.
5264 (OBJS): Add $(TE_OBJS).
5265
3680de74
KR
5266 * config/obj-coff.c (obj_pseudo_table): Supply "section"
5267 unconditionally.
5268
1871f91a
KR
5269 * write.c (set_symtab): Define only if BFD_ASSEMBLER.
5270
c20c7506
JL
5271Sun Mar 20 12:06:05 1994 Jeffrey A. Law ([email protected])
5272
5273 * Makefile.in (STAGESTUFF): Add gasp.new.
5274
634233a3
KR
5275Fri Mar 18 20:09:16 1994 Ken Raeburn ([email protected])
5276
1cf7548e
KR
5277 * write.c (symbol_table_frozen): New variable, to be set after
5278 bfd_set_symtab is called.
5279 (dump_section_relocs): Note whether a symbol is a section symbol
5280 or not.
5281 (adjust_reloc_syms): For now, always supply an absolute symbol for
5282 fixups without symbols but not yet `done'. Use section_symbol to
5283 get the symbol, instead of going directly for abs_symbol.
5284 (write_relocs) [DEBUG4]: Abort if any symbol referred to by a
5285 reloc is not a section symbol and is not in the symbol table.
5286 (set_symtab): New function, broken out from write_object_file.
5287 Counts symbol table instead of relying on an earlier count.
5288 (write_object_file): Call set_symtab, but do it after potentially
5289 invoking the *_frob_file macros. Don't bother counting symbols.
5290 Call symbol_remove, instead of expanding it in place. Moved the
5291 conditionalized `object_file_size' declaration down to
5292 conditionalized block where it's used. When using the absolute
5293 symbol for a fixup without a symbol, set sy_used_in_reloc.
5294 (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get
5295 the correct symbol for the absolute section.
5296
ec3c65e1
KR
5297 * subsegs.c (section_symbol): Use symbol_new instead of
5298 symbol_make, since we may want it to go into the symbol table.
5299 Make the new symbol have internal linkage. If
5300 obj_sec_sym_ok_for_reloc says it's okay, use the BFD section
5301 symbol with the newly created GAS symbol.
5302 (obj_sec_sym_ok_for_reloc): Default to always returning 0.
5303 * config/obj-aout.h (obj_sec_sym_ok_for_reloc) [BFD_ASSEMBLER]:
5304 New macro.
5305 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): New macro.
5306
5307 * config/tc-sparc.c: Include subsegs.h.
5308 (in_signed_range): New function.
5309 (sparc_ip): Use it.
5310 (sparc_ip, case 'i'): Use BFD_RELOC_SPARC13, not _BASE13.
5311 (sparc_ip, label "immediate"): Reject constants for pcrel
5312 instructions only if the relocation type indicates a "call"
5313 instruction and the offset is within range of a "jmpl %g0". If
5314 it's not in range, use the absolute section symbol plus an offset.
5315 (md_apply_fix): Use in_signed_range. Combined _SPARC13 and
5316 _BASE13 cases.
5317 (tc_gen_reloc): Permit BFD_RELOC_SPARC13.
5318
1be3cf74
KR
5319 * config/ic960coff.mt (TDEFINES): Fixed typo (MANY_SECTIONS, not
5320 MANY_SEGMENTS).
5321
634233a3
KR
5322 * configure.in: Eliminated all targets using obj-coff but not
5323 defining BFD_ASSEMBLER; I think all such targets that are
5324 supported will be matched by real CPU-OS combinations earlier in
5325 the case statement.
5326 (targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted. Made
5327 some comments about the dpx2 configuration, but left it disabled,
5328 since it couldn't be reached before.
5329 (target a29k-amd-ebmonold): Deleted.
5330
49ccc555
JL
5331Thu Mar 17 13:36:09 1994 Jeffrey A. Law ([email protected])
5332
5333 * config/tc-hppa.c (pa_import): Correctly handle importing of an
5334 already defined symbol.
5335
23dc1ae3
ILT
5336Wed Mar 16 17:11:37 1994 Ian Lance Taylor ([email protected])
5337
614a3211
ILT
5338 * config/tc-mips.c (mips_ip): Only accept overly large values for
5339 the 'j' operand if there are no further alternatives for this
5340 instruction.
5341
d6e6bc1c
ILT
5342 * config/obj-coffbfd.c (adjust_stab_section): Initialize
5343 stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it
5344 is not SEG_UNKNOWN rather than checking whether it is >= 0.
5345
23dc1ae3
ILT
5346 * config/tc-mips.c (mips_align): Take new argument, label, and use
5347 it instead of global insn_label.
5348 (s_align, s_cons, s_float_cons, s_gpword): Save insn_label before
5349 call to mips_emit_delay and pass it to mips_align.
5350
5351Wed Mar 16 11:54:12 1994 Jeffrey A. Law ([email protected])
5352
69cb5925 5353 * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.
c38c91da 5354
f2ada910
JL
5355 * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
5356 argument to a .callinfo directive. Don't loop forever on errors.
5357
69cb5925
KR
5358 * config/tc-hppa.c (pa_equ): Use pa_parse_number so that we can
5359 use pre-defined registers as arguments.
23dc1ae3 5360
954979ca
KR
5361Mon Mar 14 14:29:45 1994 Ken Raeburn ([email protected])
5362
dbc529c4
KR
5363 * write.c (write_object_file): Check both S_IS_LOCAL and
5364 S_IS_EXTERNAL when deciding whether to discard a symbol.
5365
5366 * config-gas.com: Scan Makefile.in, not version.c, for current
5367 version number. Delete all versions of temp files when finished
5368 with them. Create config.h.
5369
5370 * config/obj-vms.c (VMS_Initialized_Data_Size): Cache symbol
5371 values to reduce number of lookups with S_GET_VALUE. Skip debug
5372 symbols to avoid "a really nasty bug". (From Holger Teutsch,
5373 [email protected].)
5374 (VMS_write_object_file): For "__vt.*" symbols, set S_GET_OTHER
5375 field. (Also from Holger Teutsch.) Watch for a would-be register
5376 mask that spans frags.
5377
5378 * config/obj-coffbfd.c (obj_coff_line): Set symbol lnno field with
5379 this_base, not line_base. (Patch from Andreas Arens,
5380 [email protected].)
5381
5382 * config/obj-aout.c (obj_crawl_symbol_chain): Retain symbols that
5383 look local if they're exported or undefined. Used to be done for
5384 i960 only.
5385
5386 * read.c (s_lcomm, s_comm): Print symbol name being redefined.
5387 Get it from the looked-up symbol, instead of using the string from
5388 the input stream, which is no longer null-terminated.
5389 (LEX_PCT): New macro, defaults to 0.
5390 (lex_type): Use it for `%'.
5391
5392 * config/tc-vax.c (md_parse_option): Handle `-h#' option for VMS.
5393 (vip_op): Now static, and returns void. Callers changed. Added
5394 forward decl.
5395 (vip): Ditto. Call as_fatal directly if a program bug is
5396 detected.
5397 (op_hash): Let default initialization suffice.
5398
954979ca
KR
5399 * Makefile.in (literal.o): Provide dependencies.
5400
5401 * configure.in: Set new makefile variable OPCODES_LIB.
5402 * Makefile.in (LIBS): Use it.
5403
5404 * Makefile.in (make-gas.com, stamp-mk.com): New targets.
5405 * vmsconf.sh: New file.
5406 * make-gas.com: Regenerated from new script.
5407
5408 * configure.in (sparc*-*-lynxos*): Handle any version number
5409 suffix after "lynxos". Set emulation to lynx.
5410
5411Mon Mar 14 11:30:49 1994 Ken Raeburn ([email protected])
5412
5413 * config/obj-coff.c (obj_coff_section): Delete declaration.
5414
62ea7974
ILT
5415Fri Mar 11 22:25:44 1994 Ian Lance Taylor ([email protected])
5416
5417 * config/tc-ppc.c (md_pcrel_from): Return 0 for undefined ELF
5418 symbols.
5419 (ppc_is_toc_sym): Change .toc to .got.
5420 (md_apply_fix): Change handling of ELF relocs.
5421 (tc_gen_reloc): Likewise.
5422
63ca2e81
KR
5423Fri Mar 11 17:42:20 1994 Ken Raeburn ([email protected])
5424
5425 * config/obj-vms.c (Close_VMS_Object_File): Add comment pointing
5426 out some code that doesn't belong in this file.
5427
5428 * config/obj-vms.h: Include aout/stab_gnu.h.
5429 (N_GSYM, ..., N_LENG): Deleted.
5430 (NO_RELOC): Undefine before defining as part of enum reloc_type.
5431
5432 * config/tc-alpha.c: Add comment questioning need for all the
5433 characters in FLT_CHARS.
5434
5435 * as.c (main) [OBJ_VMS]: Don't call output_file_close.
5436
5437 * config/obj-ecoff.c (ecoff_frob_file): Set strict order for
5438 sections with recognized names, before computing VMA values.
5439
be22008b
ILT
5440Fri Mar 11 17:56:23 1994 Ian Lance Taylor ([email protected])
5441
5442 * config/tc-mips.c (mips_ip): Accept numbers between 0x8000 and
5443 0xffff for 'j' to be compatible with MIPS assembler. These
5444 numbers are actually treated as negative.
5445
2c6db5a1
DE
5446Thu Mar 10 13:36:29 1994 Doug Evans ([email protected])
5447
5448 * config/tc-sparc.h (LOCAL_LABEL): Local labels are .Lfoo.
5449
9e12fbbc
KR
5450Tue Mar 8 21:17:12 1994 Ken Raeburn ([email protected])
5451
5452 * config/obj-coff.c: Minor formatting/stylistic changes, plus:
5453 (obj_coff_section): Declare.
5454 (obj_pseudo_table): Make it available only if MANY_SECTIONS.
5455 (obj_symbol_to_chars) [CROSS_COMPILE]: Some attemps to make this
5456 work. It still doesn't. It now fails to compile, instead of
5457 silently compiling to do nothing.
5458 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define only if
5459 MANY_SECTIONS.
5460 (OBJ_PROCESS_STAB) [! MANY_SECTIONS]: New macro, just emits
5461 warning.
5462
5463 Handle Alpha load-immediate-FP pseudo-instructions:
5464 * config/alpha-opcode.h (ldif, ldig, ldis, ldit): New patterns.
5465 * config/tc-alpha.c (lit8_sec, lit4_sec, lit8_sym, lit4_sym): New
5466 variables.
5467 (create_literal_section): New function.
5468 (create_lita_section): Now a macro.
5469 (get_lit8_offset, get_lit4_offset): New functions.
5470 (maybe_set_gp): New function.
5471 (select_gp_value): Call it.
5472 (load_expression): Preserve addend if symbol is a section symbol.
5473 (alpha_ip): Handle new operand type `F' for floating-point
5474 constants; store them in .lit{4,8} sections.
5475 (alpha_ip, case 'G'): Emit LITUSE relocations for symbol exprs.
5476
5477 * config/tc-i386.c (smallest_imm_type): Never return Imm1.
5478
2bac8c54
SC
5479Tue Mar 8 14:18:15 1994 Steve Chamberlain ([email protected])
5480
5481 * config/obj-coffbfd.c (w_strings): Only copy strings out if
5482 their symbols are going to be written.
5483
d16938f5
ILT
5484Tue Mar 8 11:49:27 1994 Ian Lance Taylor ([email protected])
5485
5486 * messages.c (as_perror): Declare arguments const.
5487 * as.h (as_perror): Change declaration.
5488
8ea7f4e8
ILT
5489Mon Mar 7 16:08:25 1994 Ian Lance Taylor ([email protected])
5490
5491 * config/tc-mips.c (load_address): When calling frag_grow, allow
5492 for the (up to) two nops which may be inserted by append_insn if
5493 mips_optimize is 0.
5494 (macro): Likewise.
5495
fa47b47e
DE
5496Thu Mar 3 11:37:55 1994 Doug Evans ([email protected])
5497
5498 * config/atof-ieee.c (make_invalid_floating_point_number):
5499 Add cast to avoid warning from gcc.
5500
34b16850
JL
5501Wed Mar 2 10:31:01 1994 Jeffrey A. Law ([email protected])
5502
69cb5925 5503 * config/tc-hppa.c: Add a few casts to make HP C compiler happy.
fb338f1d 5504
69cb5925 5505 * config/obj-som.c (obj_som_version, obj_som_copyright): Be
fb338f1d 5506 prepared
69cb5925 5507 to handle an error from bfd_som_attach_aux_hdr.
fb338f1d 5508
34b16850
JL
5509 * config/tc-hppa.h: Wrap ELF specific decls inside an ifdef.
5510
994fde6d
KR
5511Mon Feb 28 15:03:26 1994 Ken Raeburn ([email protected])
5512
5513 * config/tc-alpha.c (md_atof): Omit warning about FP values.
5514 (line_comment_chars): Add ! to list.
5515 (md_apply_fix): Do process 32- and 64-bit relocations.
5516
5517 * config/obj-coffbfd.c (obj_coff_lcomm): Put "#if 0" around the
5518 unused parts (most of the function).
5519 (obj_coff_init_stab_section): Cast alloca result.
5520
5521 * configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and
5522 gas_target ic960coff.
5523 * config/ic960coff.mt: New file.
5524 * config/obj-coffbfd.h [TC_I960]: Include coff/i960.h.
5525 (TARGET_FORMAT) [TC_I960]: Use coff-Intel-little.
5526 * config/te-ic960.h (CROSS_COMPILE): Don't undef this. We'll
5527 always build little-endian object files.
5528 * config/tc-i960.c (md_reloc_size): Don't define at all if BFD or
5529 BFD_ASSEMBLER is defined.
5530 (mem_fmt): Since COFF doesn't handle callx relocations yet, treat
5531 them like normal 32-bit relocations.
5532 (md_apply_fix): For callx relocations, store zero.
5533 (tc_bout_fix_to_chars): Store symbol index for all callx
5534 relocations, regardless of link-relax setting.
5535 (tc_coff_fix2rtype, tc_coff_sizemachdep): New functions.
5536 (i960_handle_align) [! OBJ_BOUT]: If link-relax option is
5537 selected, print an error message and clear it.
5538 * config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC,
5539 TC_COUNT_RELOC, TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP,
5540 tc_fix_adjustable): New macros.
5541 (tc_coff_fix2rtype, tc_coff_sizemachdep): Declare.
5542
e03095c9
JL
5543Fri Feb 25 20:56:57 1994 Jeffrey A. Law ([email protected])
5544
5545 * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
5546 (hppa_tc_make_sections): Likewise.
5547 (pa_build_symextn_section): Delete unused function.
5548 (hppa_tc_make_symextn_section): Likewise.
5549 (pa_export): Delete call to pa_build_symextn_section.
5550
5551 * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
5552 (elf_hppa_final_processing): Delete extern decl.
5553 (hppa_tc_symbol): Delete extern decl.
5554
3919ffeb
ILT
5555Fri Feb 25 13:15:31 1994 Ian Lance Taylor ([email protected])
5556
5557 * config/obj-coffbfd.c (fill_section): Correct test for whether to
5558 fill a section (from Minh Tran-Le <[email protected]>).
5559
f95de5d9
KR
5560Thu Feb 24 11:30:26 1994 Ken Raeburn ([email protected])
5561
3919ffeb
ILT
5562 * configure.in: Don't require version number for i386-*-mach.
5563
f95de5d9
KR
5564 * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler",
5565 which is ignored by gas, but will cause other assemblers to choke.
5566 Intended for use by gcc ports that require gas instead of native
5567 assemblers.
5568
cb6af928
JL
5569Thu Feb 24 07:10:31 1994 Jeffrey A. Law ([email protected])
5570
5571 * config/ho-hppaosf.h: Fix braino in test for ANSI-C.
5572
08c5812c
JL
5573Wed Feb 23 16:51:43 1994 Jeffrey A. Law ([email protected])
5574
5575 * write.c (write_contents): Give the user a reasonable error
5576 message rather than "assertion failed" if bfd_set_section_contents
5577 fails.
5578
c9c45af1
KR
5579Tue Feb 22 10:07:32 1994 Ken Raeburn ([email protected])
5580
5581 * config/ho-mach3.h: New file.
5582
9eb5f4b8
ILT
5583Mon Feb 21 11:41:18 1994 Ian Lance Taylor ([email protected])
5584
2e5fdb1d
ILT
5585 * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is
5586 now set in bfd/ecofflink.c:ecoff_write_symhdr.
5587
9d90491e
ILT
5588 * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
5589 not bfd_error.
5590 * config/obj-elf.c (elf_frob_file): Likewise.
5591
5592 * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
5593 variables.
5594
c8d02404
ILT
5595 * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__.
5596
9eb5f4b8
ILT
5597 * read.c (read_a_source_file): Use correct arguments to memcpy
5598 (broken 19 Jul 1993). From [email protected] (Kenneth
5599 Duda).
5600
4d88d6dc
ILT
5601Sun Feb 20 18:01:54 1994 Ian Lance Taylor ([email protected])
5602
5603 * config/obj-coff.h (obj_coff_section): Declare.
5604 * config/obj-coff.c (obj_pseudo_table): For "section", use
5605 obj_coff_section.
5606 (obj_coff_section): Rewrite.
5607
741f4d66
KR
5608Fri Feb 18 14:16:32 1994 Ken Raeburn ([email protected])
5609
9e0cbfbb
KR
5610 * configure.in (i386-*-mach3*): New target; uses BFD.
5611 * config/te-mach.h: New file.
5612 * config/obj-aout.c (obj_aout_frob_file): New function.
5613 * config/obj-aout.h (obj_aout_frob_file): Declare it.
5614 (frob_file): New macro.
5615 * config/tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust
5616 pcrel32 relocations.
5617 * config/tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3.
5618
741f4d66
KR
5619 * write.c (write_object_file): Removed register declarations.
5620
5e65fbc8
ILT
5621Thu Feb 17 16:25:18 1994 Ian Lance Taylor ([email protected])
5622
254f8450 5623 Some support for PowerPC ELF.
5e65fbc8
ILT
5624 * configure.in: If cpu is powerpc*, use ppc.
5625 (ppc-*-sysv4*): Use object format elf.
5626 * config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
5627 defined.
5628 (TARGET_ARCH): Make it call ppc_arch.
5629 (ppc_arch): Declare.
5630 (TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
5631 (NO_STRING_ESCAPES): Define.
5632 (LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
5633 * config/tc-ppc.c: Only define a number of functions of OBJ_COFF
5634 is defined.
5635 (md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added
5636 OBJ_COFF specific "bi" and "ei".
5637 (md_parse_option): Fix handling of -u. Make -m601 set
5638 PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q.
5639 (ppc_set_cpu): New function.
5640 (ppc_arch): New function.
5641 (md_begin): Call ppc_set_cpu.
5642 (ppc_insert_operand): For a signed operand accept an unsigned
5643 value, for IBM compatibility.
5644 (ppc_byte): Don't call stringer for strings; instead, treat two
5645 double quotes as a single double quote.
5646 (ppc_comm): Set sy_tc.output for a .lcomm symbol.
5647 (ppc_biei): New function.
5648 (ppc_tc): If not OBJ_COFF, ignore first argument.
5649 (ppc_fix_adjustable): Call as_bad_where, not as_bad.
5650 (ppc_is_toc_sym): New function.
5651 (md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and
5652 BFD_RELOC_8.
5653
f61b81b7
DM
5654Thu Feb 17 09:29:37 1994 David J. Mackenzie ([email protected])
5655
5656 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
69cb5925 5657 bfd_set_error and new error names.
f61b81b7 5658
c25be7f4
KR
5659Tue Feb 15 20:23:20 1994 Ken Raeburn ([email protected])
5660
5661 * configure.in: Support i960-vxworks versions > 5.0 as coff.
5662 Default is still bout if no version is specified.
5663
04bde70d
KR
5664 * atof-generic.c (atof_generic): Use switch and strcasecmp instead
5665 of large number of compares when looking for inf/nan values.
5666
b1237b9d
ILT
5667Fri Feb 11 13:13:27 1994 Ian Lance Taylor ([email protected])
5668
5669 * config/tc-mips.c (macro): Do unaligned loads and stores
5670 correctly when big endian, and give errors on overflow rather than
5671 generating incorrect code.
5672
605e1d90
ILT
5673Thu Feb 10 11:24:20 1994 Ian Lance Taylor ([email protected])
5674
5675 * as.c: Include libiberty.h.
5676
5677 * read.c (do_align): Don't define label just_record_alignment
5678 unless it might be used.
5679
5680 * as.c (main): If md_parse_long_option is defined, call it with a
5681 long option.
5682 * config/tc-mips.h (md_parse_long_option): Define.
5683 * config/tc-mips.c (mips_trap): New static variable.
5684 (md_begin): Report an error if mips_trap is set at ISA level 1.
5685 (macro): If mips_trap, use trap instructions instead of break
5686 instructions for overflow and divide by zero detection.
5687 (mips_parse_long_option): New function. Support --trap,
5688 --no-break, --break and --no-trap.
5689 * doc/as.texinfo: Document new options.
5690
5691 * read.c (potable): Add "zero".
5692 * config/tc-i386.c (md_pseudo_table): Remove "zero".
5693 * config/tc-m88k.c (md_pseudo_table): Likewise.
5694
6440d65c
KR
5695Thu Feb 10 01:24:27 1994 Ken Raeburn ([email protected])
5696
5697 * config/tc-sparc.c (sparc_ip): Reject integer values for
5698 pc-relative operand fields. This forces "call 0" to become "jmpl
5699 %g0,%o7" with no relocations needed.
5700
ddb393cf
ILT
5701Wed Feb 9 13:08:32 1994 Ian Lance Taylor ([email protected])
5702
d87c080e
ILT
5703 * as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
5704 * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
5705
ddb393cf
ILT
5706 * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
5707 don't treat backslash specially inside strings.
5708 * read.c (next_char_of_string): Likewise.
5709
66c774bb
SS
5710Wed Feb 9 09:42:45 1994 Stan Shebs ([email protected])
5711
5712 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
5713 instead of memcpy to zero the initial stab symbol, duh.
5714 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
5715 * config/obj-som.c (obj_som_init_stab_section): Ditto.
5716
356315fe
ILT
5717Tue Feb 8 17:25:44 1994 Ian Lance Taylor ([email protected])
5718
5719 * write.c (fixup_segment): Use as_bad_where, not as_bad.
5720
5721 * subsegs.c (subseg_set_rest): Call memset with the arguments in
5722 the right order. Explicitly clear fix_root and fix_tail fields.
5723
df44a852
KR
5724Tue Feb 8 16:00:25 1994 Ken Raeburn ([email protected])
5725
cfaf70e3
KR
5726 * config/obj-coff.c (coff_frob_symbol): For abs_symbol, set *punt
5727 and do nothing else.
5728
5729 * symbols.c (symbol_begin): Initialize value of abs_symbol
5730 properly.
5731
5732 * write.c (adjust_reloc_syms): Use abs_symbol instead of calling
5733 section_symbol.
5734
cafb569b
KR
5735 * ecoff.c (ecoff_build_debug): Fix "/*" in comment to silence
5736 complaint from "gcc -Wall".
5737
7496639a
KR
5738 * configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
5739
8a74b870
KR
5740 * config/tc-alpha.c (GP_ADJUSTMENT): Move definition to start of
5741 file.
5742 (tc_gen_reloc): Remove uninitialized variable `code', and code
5743 that tried to use it (incorrectly). For LITERAL reloc, set addend
5744 to negative of GP value.
5745 (load_symbol_address): Don't adjust return value by GP_ADJUSTMENT.
5746
df44a852
KR
5747 * write.c (write_relocs): Print some sensible error message if
5748 bfd_perform_relocation returns bfd_reloc_overflow.
5749
5750Mon Feb 7 15:49:24 1994 Jeffrey A. Law ([email protected])
5751
5752 * configure.in (hppa*-*elf*): New configuration for PA ELF.
5753 (hppa*-*-osf*): Default object format is SOM.
5754
c3591adb
KR
5755Mon Feb 7 16:07:35 1994 Ken Raeburn ([email protected])
5756
2d33b3aa
KR
5757 * config/tc-alpha.c (md_atof): Warn that floating-point values
5758 might not assemble properly.
5759
c3591adb
KR
5760 * configure.in (target alpha-*-osf*): Don't set "dev=yes" any
5761 more.
5762
5763 * config/tc-alpha.c (load_expression): Parenthesize operations in
5764 range checking, to avoid precedence questions.
fc6b54fd 5765
c3591adb
KR
5766 * config/tc-alpha.c (addr32): New static variable.
5767 (md_parse_option): Set it for "-32addr".
5768 (load_symbol_address): If addr32 is set, use ldl instead of ldq.
5769
5770 * atof-generic.c (atof_generic): Calculate maximum_useful_digits
5771 and more_than_enough_bits_for_digits in integer arithmetic, to
5772 eliminate the only sources of dependence on floating point
5773 support, which doesn't work yet on the Alpha.
5774
5775Mon Feb 7 03:56:05 1994 Ken Raeburn ([email protected])
fc6b54fd
KR
5776
5777 * ecoff.c (ecoff_build_debug) [TC_ALPHA]: Specify version stamp as
5778 0x30b for Alpha for now, until ".verstamp" is handled.
5779
5780 * literal.c (add_to_literal_pool): Use seginfo->frchainP, which
5781 actually refers to the literal pool section, rather than
5782 frchain_now, which refers to whatever section the assembler was
5783 in.
5784
5785 * write.c (fixup_segment): Only do range checking if size of fixup
5786 is smaller than word size. Otherwise, we always wind up with
5787 zeros.
5788
5facbfd4
KR
5789 * config/tc-alpha.c (md_section_align): Change second argument and
5790 return type to valueT, to agree with tc.h.
5791 (alpha_do_align): Local static array nop_pattern is now unsigned
5792 char, to avoid overflow warnings.
5793 * config/tc-alpha.h (md_section_align): Delete declaration.
5794
5795 * config/obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
5796 output bfd is non-null before indirecting through it.
5797
5798 * config/tc-alpha.c (alpha_frob_ecoff_data): Renamed from
5799 alpha_frob_file.
5800 * config/tc-alpha.h (tc_frob_file): Macro deleted.
5801 * config/obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call
5802 alpha_frob_ecoff_data, then fill in optional-header info with gp
5803 value and register masks.
5804
dc536cc0
JL
5805Sun Feb 6 16:13:47 1994 Jeffrey A. Law ([email protected])
5806
f8693e71
JL
5807 * configure.in (hiux): Fixes from [email protected].
5808
dc536cc0
JL
5809 * config/obj-som.c (obj_som_init_stab_section): Same change
5810 as coffbfd and elf below. Zero the initial stab symbol after
5811 allocating it.
5812
41b5ef0f
SS
5813Sat Feb 5 12:30:32 1994 Stan Shebs ([email protected])
5814
5815 * config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
5816 initial stab symbol after allocating it.
5817 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
5818
fa4beb7e
JL
5819Sat Feb 5 11:53:31 1994 Jeffrey A. Law ([email protected])
5820
5821 * config/tc-hppa.c (pa_ip): addb[tf] should only accept
5822 non-negated condition completers. Add support for addb pseudo-op
5823 which accepts both negated and non-negated completers.
5824
1c11ab0e
ILT
5825Sat Feb 5 00:15:49 1994 Ian Lance Taylor ([email protected])
5826
5827 * configure.in (rs6000*): Use cpu_type ppc.
5828 (ppc-*-aix*): New target; use coff and force bfd_gas.
5829 * config/tc-ppc.h, config/tc-ppc.c: New files for PowerPC/POWER
5830 (RS/6000) support. At the moment, only XCOFF is supported.
5831
5832 * config/obj-coff.c (SA_SET_SYM_ENDNDX): Made non-static.
5833 (S_SET_DATA_TYPE): Likewise.
5834 (coff_last_function): Renamed from local static last_functionP in
5835 coff_frob_symbol and made externally visible.
5836 (coff_frob_symbol): New local static set_end; use it to try to
5837 avoid calling SA_SET_SYM_ENDNDX on a symbol that will be punted.
5838 * config/obj-coff.h (S_SET_DATA_TYPE): Declare.
5839 (SA_SET_SYM_ENDNDX): Declare.
5840 (coff_last_function): Declare.
5841
5842 * expr.c (operand): If DOLLAR_DOT is defined, accept `$' as
5843 equivalent to `.' to mean the current location.
5844
5845 * read.c (LEX_BR): If not defined, define as 0.
5846 (lex_type): Use LEX_BR as the type of `{',`}',`[',`]'.
5847
5848 * symbols.c (symbol_new): If tc_canonicalize_symbol_name is
5849 defined, call it with preserved_copy_of_name. If
5850 tc_symbol_new_hook is defined, call it on the new symbol.
5851 (symbol_find_base): If tc_canonicalize_symbol_name is defined,
5852 call it on a copy of the name argument.
5853
5854 * write.c (write_object_file): Simplified usage of obj_frob_symbol
5855 and tc_frob_symbol. Always call both if the symbol is going to be
5856 output.
5857
5858 * write.c (relax_segment): Use %ld rather than %d when printing
5859 fragP->fr_var, and cast it to long.
5860
5861 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
5862 * subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
5863 fix_root and fix_tail.
5864 (segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
5865 field.
5866 * write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
5867 fix_tailP based on frchain_now, not seg_info (now_seg).
5868 (chain_frchains_together_1): Chain the subsegment relocs together.
5869 * subsegs.c (subseg_change): Don't clear fix_tail field.
5870 (subseg_get): Likewise.
5871 * literal.c (add_to_literal_pool): Look through the relocs via
5872 frchain_now, not seginfo.
5873
f85ad9d5
ILT
5874Thu Feb 3 23:07:30 1994 Ian Lance Taylor ([email protected])
5875
5876 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Changed
5877 ecoff_undefined to ecoff_extern_size.
5878 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Likewise.
5879 * config/tc-mips.c (s_extern): Set ecoff_extern_size to the
5880 external symbol size, rathern than setting the symbol value.
5881 (md_estimate_size_before_relax): Check both ecoff_extern_size and
5882 symbol value to see if GP referencing can be used.
5883 * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not
5884 ecoff_undefined.
5885 (ecoff_frob_symbol): Don't check ecoff_undefined.
5886 (ecoff_build_symbols): Get size of an undefined symbol from
5887 sym->ecoff_extern_size, not S_GET_VALUE (sym).
5888
b4bd2c92
JL
5889Wed Feb 2 13:55:08 1994 Jeffrey A. Law ([email protected])
5890
5891 * Makefile.in: Avoid bug in losing hpux sed.
5892
1051c97f
ILT
5893Wed Feb 2 11:40:11 1994 Ian Lance Taylor ([email protected])
5894
5895 * config/tc-mips.c (file_mips_isa): New static variable.
5896 (md_begin): Set it.
5897 (s_mipsset): Add support for .set mipN to set the ISA level.
5898
5899 * gasp.c (kinfo): Fully bracket initializer.
5900
f2cdeec4
KR
5901Tue Feb 1 19:28:12 1994 Ken Raeburn ([email protected])
5902
5903 * gasp.c (malloc): Don't declare, since host.h or system header
5904 files may declare it differently.
5905
5906 * config/atof-ieee.c (int_to_gen): Now static.
5907
5908 * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not
5909 ho-sysv.h. Based loosely on a patch from Minh Tran-Le.
5910
e2847e64
SC
5911Tue Feb 1 10:50:17 1994 Steve Chamberlain ([email protected])
5912
5913 * gasp.c: Include host.h.
5914
9cbf9e57
ILT
5915Tue Feb 1 12:13:01 1994 Ian Lance Taylor ([email protected])
5916
8bbad6fd
ILT
5917 * config/tc-mips.c (mips_ip): Make an unsupported instruction a
5918 warning, not an error.
5919
9cbf9e57
ILT
5920 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
5921 dot_bss_symbol): Don't define if BFD_ASSEMBLER.
5922 (obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more
5923 arguments.
5924 (coff_line_base): Renamed from line_base. Changed all uses.
5925 (coff_add_linesym): Renamed from add_line_sym. Made non-static.
5926 Changed all uses.
5927 * config/obj-coff.h: If TC_PPC, include coff/rs6000.h.
5928 (S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if
5929 BFD_ASSEMBLER.
5930 (coff_line_base): Declare.
5931 (coff_add_linesym): Declare if BFD_ASSEMBLER.
5932 * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out
5933 now takes more arguments.
5934
2abb453d
SS
5935Mon Jan 31 17:55:14 1994 Stan Shebs ([email protected])
5936
5937 * as.c (statistics_flag): Renamed from quiet_flag.
5938 (main): Get statistics with --statistics instead of -noquiet.
5939
a5a4b5ac
SC
5940Mon Jan 31 07:19:30 1994 Steve Chamberlain ([email protected])
5941
5942 * Makefile.in: Support for Gnu ASsembler Preprocessor.
5943 * gasp.c: New file.
5944 * read.c (s_lcomm): Align lcomm data.
69cb5925 5945 * config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction
a5a4b5ac
SC
5946 from different sections.
5947
7909261f
KR
5948Sun Jan 30 14:58:26 1994 Ken Raeburn ([email protected])
5949
5950 * write.c (write_object_file): If tc_frob_file is defined, call it
5951 just before calling obj_frob_file.
5952 * config/tc-alpha.c (alpha_gp_value): Renamed from gp_value
5953 (references changed), and made non-static.
5954 (getExpression): Return void.
5955 (select_gp_value): Abort if gp_value is non-zero. Delete call to
5956 non-existent bfd_set_gp_value.
5957 (alpha_validate_fix): Function deleted.
5958 (alpha_frob_symbol): Function deleted.
5959 (alpha_local_label): Function deleted.
5960 (alpha_frob_file): Renamed from alpha_end.
5961 * config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix,
5962 alpha_local_label, alpha_end): Declarations deleted.
5963 (alpha_gp_value, alpha_frob_file): Declare.
5964 (tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted.
5965 (LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label.
5966 (md_convert_frag): Simplified slightly.
5967 (tc_frob_file): New macro.
5968
5969 * read.c (do_align): New function, most of guts of s_align_*
5970 functions. Look for md_do_align macro, give it a chance to bypass
5971 all but recording of section alignment.
5972 (s_align_bytes, s_align_ptwo): Call do_align.
5973 (s_lcomm) [TC_ALPHA]: Align object to largest power of two that
5974 divides object size.
5975
5976 * frags.c (frag_align_pattern): New function.
5977 (frag_align): Rewrite for clarity.
5978
5979 * config/tc-vax.c (md_assemble): Handle O_constant expression.
5980 (vip_begin): Returns pointer to const char. Cast hash_insert arg
5981 to PTR to avoid compiler complaints about const.
5982 (md_begin): Local variable errtxt must point to const.
5983
5984 * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't
5985 bother with *-*-ultrix or *-*-sysv*, except *-*-sysv, since only
5986 the last has an existing host support file. Do handle vax-bsd and
5987 vax-ultrix targets.
5988
1f029792
ILT
5989Fri Jan 28 11:26:40 1994 Ian Lance Taylor ([email protected])
5990
5991 * config/obj-coff.c (obj_coff_section_header_append): Do not
5992 declare if BFD_ASSEMBLER.
5993 (stack_pop): Correct test for stack underflow.
5994 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
5995 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare
5996 type of ignored argument to avoid gcc warning.
5997 (align): Removed unused function.
5998
6221fe20
KR
5999Thu Jan 27 18:14:19 1994 Ken Raeburn ([email protected])
6000
81f6013a
KR
6001 * config/tc-alpha.c, config/tc-alpha.h, config/alpha-opcode.h: New
6002 files, based on port of gas-1.38 contributed by CMU, using a.out
6003 variant. Updated for gas-2.x and ECOFF. Floating-point constants
6004 are still broken, bootstrap testing incomplete.
6005
6006 * literal.c: Comment changes.
6007
6008 * listing.c (listing_source_file): Check for null listing_tail
6009 before indirecting through it.
6010
6011 * expr.h (struct expressionS): Added struct tag.
6012
6013 * as.h: If __GNUC__ and inline are both undefined, define inline
6014 away.
6015
6016 * write.c (cvt_frag_to_fill): Don't assume that fr_var for
6017 rs_align or rs_org frags will be 1.
6018 (relax_segment): For rs_align, if fr_var is not 1, complain if
6019 required padding is not a multiple of the size of the pad pattern.
6020 (fixup_segment): Leave gp-relative relocations alone. For pcrel
6021 relocations referring to the same segment, clear fx_pcrel when
6022 clearing fx_addsy.
6023 * as.h: Adjust comments on rs_align.
6024
6221fe20
KR
6025 * atof-generic.c: Some reformatting.
6026 (atof_generic): Be careful when mixing signed/unsigned values of
6027 different sizes.
6028
81f6013a
KR
6029 * write.c, config/obj-{aout,bout,coff*}.c, config/tc-sparc.c:
6030 Query the fx_done field instead of fx_addsy to see if the fixup
6031 still needs to be applied. Set fx_done and clear fx_addsy both,
6032 for now. If TC_HANDLES_FX_DONE isn't defined, assume md_apply_fix
6033 will only clear fx_addsy, and set fx_done accordingly after
6034 returning.
6035 * config/tc-sparc.h (TC_HANDLES_FX_DONE): Define.
6036 * config/tc-sparc.c (md_apply_fix): Set fx_done for non-pcrel fix
6037 with no fx_addsy.
6038
6039 * symbols.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
6040 Deleted.
6041 (symbol_begin): Moved to end of file, so function inlining can
6042 work better.
6043 (fb_label_count, fb_label_max): Default C static initializers are
6044 sufficient.
6045 * symbols.h (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
6046 Declarations deleted.
6047 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
6048 dot_bss_symbol): Defined here, static.
6049
6050 * config/obj-aout.c [BFD_ASSEMBLER]: Undef NO_RELOC before
6051 including aout/aout64.h.
6052
6053 * write.c (write_object_file): If EMIT_SECTION_SYMBOLS is false,
6054 don't write out a section symbol even if it's used in a
6055 relocation; assume relocations will handle section numbers
6056 somehow. Rename "punt_it" label to "punt_it_if_unused" to reflect
6057 it's true use.
6058 (EMIT_SECTION_SYMBOLS): Default to 1.
6059 (adjust_reloc_syms): Don't create a new symbol for an absolute
6060 reference; just use the absolute section symbol.
6061 (write_relocs): Make printout of reloc values dependent on flag
6062 DEBUG3, not DEBUG2.
6063 * config/obj-aout.h (EMIT_SECTION_SYMBOLS): Define as 0.
6064 * config/obj-ecoff.h (EMIT_SECTION_SYMBOLS): Ditto.
6065
a57180ad
ILT
6066Thu Jan 27 16:43:51 1994 Ian Lance Taylor ([email protected])
6067
ec7a69ea
ILT
6068 * read.c (lex_type): No longer make '{' a valid character for
6069 symbol names.
6070
fe920573
ILT
6071 * as.c (main): Print long values using %ld.
6072
a57180ad
ILT
6073 * messages.c (as_warn_internal): New static function.
6074 (as_warn, 3 versions): Use as_warn_internal.
6075 (as_warn_where, 3 versions): New function.
6076 * as.h (as_warn_where): Declare.
6077
ca7bd557
SS
6078Tue Jan 25 18:30:34 1994 Stan Shebs ([email protected])
6079
6080 * as.c (quiet_flag): New flag.
6081 (main): If -noquiet given, display execution time and memory used.
6082
9dcf8057
JL
6083Tue Jan 25 15:53:11 1994 Jeffrey A. Law ([email protected])
6084
6085 * doc/{all.texi,as.texinfo}: Add documentation for HPPA port.
6086
f71babce
ILT
6087Mon Jan 24 19:18:23 1994 Ian Lance Taylor ([email protected])
6088
6089 * ecoff.c (ecoff_frob_symbol): New function. Put undefined
6090 symbols of known size in the undefined section. Put small common
6091 symbols in a .scommon section.
6092 * ecoff.h (ecoff_frob_symbol): Declare.
6093 * config/obj-ecoff.h (obj_frob_symbol): Define.
6094 * config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
6095 obj_elf_frob_symbol): Removed unused functions.
6096 * config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
6097 unused macros.
6098 (obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
6099 of unused functions.
6100 (obj_frob_symbol): Define if ECOFF_DEBUGGING.
6101
6102 * tc-mips.c (g_switch_seen): New static variable.
6103 (md_parse_option): Set g_switch_seen for -G option.
6104 (s_option): If creating PIC code, force the GP size to be 0. Warn
6105 if -G switch used with a non-zero value.
6106
6107 * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
6108 comparing against bfd_com_section.
6109
2ef7731d
KR
6110Mon Jan 24 14:12:25 1994 Ken Raeburn ([email protected])
6111
6112 * read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss
6113 section.
6114
7691379e
KR
6115Thu Jan 20 13:17:58 1994 Ken Raeburn ([email protected])
6116
6117 * expr.c (operand): For floating point operand with unusual fp
6118 char from FLT_CHARS, preserve the character. Patch from Lisa
6119 Repka.
6120
eb8fd0e9
ILT
6121Wed Jan 19 23:15:24 1994 Ian Lance Taylor ([email protected])
6122
6123 * config/tc-mips.c (md_pseudo_table): Add all data allocation
6124 pseudo-ops: .hword, .int, .long, .octa, .quad, .short, .single.
6125
d9420fc1
SC
6126Tue Jan 18 15:51:59 1994 Steve Chamberlain ([email protected])
6127
6128 * config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and
6129 C_FCN assume .val has been set to .
6130
2f156c92
JL
6131Tue Jan 18 16:19:58 1994 Jeffrey A. Law ([email protected])
6132
6133 * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It
6134 confuses GDB for some unknown reason.
6135 * cofnig/obj-som.c: Likewise.
6136
19302e44
KR
6137Tue Jan 18 19:05:32 1994 Ken Raeburn ([email protected])
6138
6139 * literal.c (add_to_literal_pool): Handle duplicates of values
6140 already written to literal pool.
6141
4bda835f
ILT
6142Tue Jan 18 17:23:52 1994 Ian Lance Taylor ([email protected])
6143
6144 * config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols
6145 with explicitly marked stabs through BFD: if a symbol marked
6146 N_UNDF | N_EXT is in the absolute section, move it to the
6147 undefined section; move a symbol marked N_INDR into
13655af6
ILT
6148 bfd_ind_section and set the BSF_INDIRECT flag; set the
6149 BSF_WARNING flag for a symbol makred N_WARNING.
4bda835f 6150
17ed84ed
ILT
6151Mon Jan 17 15:40:23 1994 Ian Lance Taylor ([email protected])
6152
6153 * ecoff.h (ecoff_set_gp_prolog_size): Declare.
6154 * ecoff.c (ecoff_set_gp_prolog_size): Return type is void.
6155
d0286a21
JL
6156Mon Jan 17 00:18:55 1994 Jeffrey A. Law ([email protected])
6157
51517966
JL
6158 * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
6159 and 'f' template operand.
6160
d0286a21
JL
6161 * config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u',
6162 and '2' in copr and sfu instruction templates.
6163
e7501ac7
JL
6164Sun Jan 16 16:44:23 1994 Jeffrey A. Law ([email protected])
6165
6166 * as.h (subseg_force_new): Add prototype.
6167
d2550c72
DE
6168Sat Jan 15 09:20:55 1994 Doug Evans ([email protected])
6169
d307fed1
DE
6170 * app.c (do_scrub_next_char): Allow lines like " foolab :".
6171
d2550c72
DE
6172 * read.c (emit_expr): Fix computation of mask.
6173 * config/obj-elf.c (obj_elf_section): Fix loop termination test.
6174
d211303d
KR
6175Thu Jan 13 16:15:15 1994 Ken Raeburn ([email protected])
6176
64270963
KR
6177 * ecoff.c (ecoff_set_gp_prolog_size): New function.
6178 (current_file_idx): New static variable.
6179 (add_file): Use and increment current_file_idx instead of indx
6180 parameter.
6181
ff4325cb
KR
6182 * struc-symbol.h (struct symbol): Make all bitfields unsigned.
6183
d211303d
KR
6184 * config/tc-i960.c (i960_validate_fix): Added argument
6185 add_symbolPP. Indirect through it to get "add_symbolP".
6186 * config/tc-i960.h (i960_validate_fix): Supply prototype.
6187 (TC_VALIDATE_FIX): Pass address of add_symbolP.
6188
6189 * configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
6190 (i386-*-netbsd0.8): New target, like 386bsd.
6191
6192 * configure.in: Set BFDDEF in Makefile to "define" or "undef".
6193 * Makefile.in (config.h): Protect against multiple inclusions.
6194 Define or undef BFD_ASSEMBLER as specified by $(BFDDEF).
6195 (ALL_CFLAGS): Omit $(BFDDEF).
6196 * as.h: Include config.h.
6197 (struct symbol): Added forward declaration.
6198 (add_to_literal_pool): Fix declaration.
64270963 6199 * as.c: Don't include config.h.
d211303d
KR
6200
6201 * literal.c (add_to_literal_pool): Take symbol and addend as
6202 arguments, instead of expression, for now. Fix calculation of
6203 offset to return.
6204
6205 * subsegs.h (segment_info_type) [NEED_LITERAL_POOL]: Add field
6206 literal_pool_size.
6207
500828a0
JL
6208Thu Jan 13 12:14:21 1994 Jeffrey A. Law ([email protected]
6209
6210 * subsegs.c (subseg_get): Accept new argument "force_new". If
6211 set then a new segment is always created. All callers changed.
6212 (subseg_force_new): New function. Similar to subseg_new, but
6213 always force a new segment to be created.
6214
6215 * config/obj-som.c (som_frob_file): Call adjust_code_sections
6216 for each section.
6217 (adjust_code_sections): New function. Adjusts the VMA for all the
6218 $CODE$ subspaces.
6219
6220 * config/tc-hppa.c (md_assemble): Also handle creating a fixup
6221 for the unwind descriptors if a function's label follows the
6222 .PROC and .ENTRY directives.
6223 (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
6224 is done elsewhere. Don't create a fixup for the unwind
6225 descriptors if the function's label has not been defined yet.
6226 (pa_proc): For SOM, place each procedure within a new $CODE$
6227 subspace. Adjust the segment and frag for the associated
6228 function label if it exists.
6229
6230Wed Jan 12 22:05:33 1994 Jeffrey A. Law ([email protected])
6231
6232 * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
6233 (hppa_fix_new): Initialize segment field.
6234 (md_apply_fix): Do nothing for pc-relative fixup which involves
6235 crossing a segment boundary.
6236 (pa_procend): Undefine the current label after handling .PROC
6237 and .PROCEND directives.
6238 (dummy_symbol): Make type "symbolS *". Change references as
6239 appropriate.
6240
bbf7e43d
ILT
6241Wed Jan 12 13:29:31 1994 Ian Lance Taylor ([email protected])
6242
6243 * read.c (read_a_source_file): Cast array argument to unsigned
6244 char.
6245 * write.c (adjust_reloc_syms): Remove unused variable symseginfo.
6246 (write_object_file): Don't define punt_it if it won't be used.
6247 (fixup_segment): Don't define skip if it won't be used.
6248
6249 * config/tc-mips.h (TARGET_FORMAT): Define as mips_target_format.
6250 (mips_target_format): Declare.
6251 * config/tc-mips.c (mips_target_format): Define with appropriate
6252 default definition.
6253 (md_parse_option): If -EL or -EB is used, change byte_order and
6254 mips_target_format as appropriate.
6255
a1c91916
JL
6256Tue Jan 11 21:52:36 1994 Jeffrey A. Law ([email protected])
6257
6258 * app.c (do_scrub_next_char): Another attempt to fix bugs
6259 dealing with labels without colons (for HPPA and MRI).
6260
44ce2f32
DE
6261Tue Jan 11 17:01:06 1994 Doug Evans ([email protected])
6262
fd4b7c25
KR
6263 * config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.
6264
44ce2f32
DE
6265 * expr.c (integer_constant): Fix computation of too_many_digits.
6266 Variable digit_2 renamed to start. Fix check for whether number
6267 will fit in 32 bits.
6268 * read.c (emit_expr): Use valueT instead of long.
6269
af255ca0
ILT
6270Tue Jan 11 13:01:20 1994 Ian Lance Taylor ([email protected])
6271
f34e27a1
ILT
6272 * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
6273 (special_sections): Define.
6274 (obj_elf_special_section): Get default types and attributes from
6275 list of special sections.
6276 * config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.
6277
4e76ae53
ILT
6278 * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
6279 sections to be close together.
6280
8197b589
ILT
6281 * config/tc-mips.c (macro): Corrected $at warnings in a couple of
6282 spots.
6283
af255ca0
ILT
6284 * listing.c (listing_prev_line): New function.
6285 * listing.c: Include subsegs.h.
6286 (listing_prev_line): New function.
6287 (calc_hex): Reset byte_in_frag to zero for each new frag.
6288 * config/tc-mips.c (append_insn): Call listing_prev_line after
6289 emitting nop instructions.
6290 * Makefile.in (listing.o): Depends upon subsegs.h.
6291
4047ff1d
JL
6292Mon Jan 10 09:52:23 1994 Jeffrey A. Law ([email protected])
6293
6294 * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
6295 here. Handle case where label may be defined after the .PROC.
6296 (pa_proc): It is not an error if the procedure's label isn't
6297 defined before the .PROC directive.
6298
6f1c6a67
KR
6299Sun Jan 9 04:43:30 1994 Ken Raeburn ([email protected])
6300
6301 * config/te-netbsd.h: New file.
6302 * config/tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use bfd target
6303 a.out-netbsd-386 for this configuration.
6304
fe4e3290
ILT
6305Fri Jan 7 17:38:28 1994 Ian Lance Taylor ([email protected])
6306
6307 * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information
af255ca0 6308 with the associated stabs information.
fe4e3290
ILT
6309 (ecoff_build_symbols): Never set the type of stabs symbols to
6310 st_Global. Don't update the symbol index or ifd if the gas symbol
6311 is not the same as the ECOFF symbol (which is now the case for
6312 stabs symbols).
6313
917fae09
SS
6314Fri Jan 7 11:14:07 1994 Stan Shebs ([email protected])
6315
6316 * config/tc-mips.c (macro): Add a LOSING_COMPILER ifdef that
6317 splits the function.
6318 (macro2): New function, if LOSING_COMPILER defined.
6319
03a372ed
SC
6320Fri Jan 7 09:38:25 1994 Steve Chamberlain ([email protected])
6321
6322 * config/obj-coffbfd.c (fill_section): Don't ever fill past the
6323 end of a section. (write_object_file): Temporary fix - setup
6324 stdoutput.
6325
fd0e2cf2
KR
6326Thu Jan 6 18:05:21 1994 Ken Raeburn ([email protected])
6327
6328 * config/tc-sparc.c (tc_gen_reloc): Fix handling of addends in
6329 non-pcrel_offset relocations.
6330
13fe1379
ILT
6331Thu Jan 6 01:06:40 1994 Ian Lance Taylor ([email protected])
6332
6333 * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
6334 without .set noat.
6335
311ff8d6
KR
6336Wed Jan 5 14:22:22 1994 Ken Raeburn ([email protected])
6337
2d29d89d 6338 * literal.c: New file.
d4aad2b4
KR
6339 * Makefile.in (REAL_SOURCES, OBJS): List it.
6340
6341 * as.h (DEBUG): Don't define.
6342 (struct expressionS, struct fix): Declare in case they're used in
6343 prototypes.
6344 (add_to_literal_pool) [BFD_ASSEMBLER]: Declare.
2d29d89d 6345
311ff8d6
KR
6346 * config/tc-mips.h (TARGET_FORMAT) [OBJ_AOUT]: Fix for new names
6347 in bfd.
6348
6349 * subsegs.c (subseg_get): New function. Creates segment if
6350 needed, returns pointer, but doesn't change current segment.
6351 (subseg_new): Use it.
6352
5a051773
SS
6353Tue Jan 4 15:12:43 1994 Stan Shebs ([email protected])
6354
6355 * Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search.
6356 * config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/".
6357 * app.c, flonum.h, hex-value.c (const): Change #if to be more
6358 portable.
6359
fce98d63
RS
6360Tue Jan 4 22:11:34 1994 Rob Savoye ([email protected])
6361
69cb5925
KR
6362 * config/ho-vsta.h, configure.in, .Sanitize: Add support for VSTa
6363 micro-kernel.
fce98d63 6364
5a051773
SS
6365Thu Dec 30 15:27:16 1993 Ian Lance Taylor ([email protected])
6366
6367 * write.c (write_relocs): bfd_perform_relocation now takes an
6368 additional argument, to return an error string (which we ignore).
6369
9314b3a1
KR
6370Wed Dec 29 14:37:26 1993 Ken Raeburn ([email protected])
6371
6372 * write.h (struct fix): Field tc_fix_data should be type PTR, not
6373 void*, for compatibility with non-ANSI compilers. Added
6374 single-bit field "fx_done".
6375
45db9caf
TG
6376Sun Dec 26 14:31:47 1993 Torbjorn Granlund ([email protected])
6377
6378 * tc-hppa.c (pre_defined_registers): Convert to lower case.
6379 Delete spurious register names "%r4L", etc.
6380 (selector_table): Sort and convert to lower case.
6381 (cons_fix_new_hppa): `reloc_type' => `rel_type'.
6382 (pa_ip): Always use strcmp for non-text and strcasecmp for text.
6383 (reg_name_search): Rewrite to call strcasecmp only once per
6384 iteration.
6385 (pa_chk_field_selector): Rewrite to use binary search.
6386 (pa_parse_neg_add_cmpltr): Use strcasecmp for completer comparisons.
6387 (pa_parse_space_stmt): $TEXT$ and $PRIVATE$ are symbols; use case
6388 sensitive comparisons.
6389 (pa_parse_space_stmt): Canonicalize strncasecmp arg to lower case.
6390 (pa_space): "$text$" => "$TEXT$"; "$private$" => "$PRIVATE$". Use
6391 case sensitive comparison for all symbolic names.
6392 (pa_subspace): Canonicalize strncasecmp arg to lower case.
6393 (pa_subspace_start): Use case sensitive comparison for symbolic names.
6394
8b13fa4e
KR
6395Mon Dec 20 10:37:48 1993 Ken Raeburn ([email protected])
6396
0a75cb6c
KR
6397 * write.c (adjust_reloc_syms) [RELOC_REQUIRES_SYMBOL]: If no
6398 symbol is present (i.e., relocation against absolute), create a
6399 phony local symbol, and use it in the reloc.
6400 (fixup_segment): When adjusting a reloc with an absolute symbol,
6401 have TC_FORCE_RELOCATION control clearing add_symbolP too.
6402 * config/tc-sparc.h (RELOC_REQUIRES_SYMBOL): Define, for OBJ_COFF.
6403
6404 * symbols.c (S_IS_EXTERNAL, S_IS_LOCAL): Don't use both BSF_EXPORT
6405 and BSF_GLOBAL, since they're the same.
6406
d3e3010b
KR
6407 * as.c (main): Only invoke md_end if it's defined as a macro.
6408 * tc.h (md_end): Don't declare it.
6409 * config/tc-*.[ch] (md_end): Deleted, in cases where it doesn't do
6410 anything.
6411 * config/tc-vax.c (vip_end): Deleted null function.
6412 * config/tc-mips.c (md_mips_end): Renamed from md_end.
6413 * config/tc-mips.h (md_mips_end): Declare.
6414 (md_end): New macro, calls md_mips_end.
6415
6416 * write.c (write_object_file): Don't close output file.
6417 * as.c (main): Close output file (if needed) after calling
6418 listing_print, which should be after calling write_object_file,
6419 which sets the frag addresses.
6420
6421 * config/obj-coff.c (obj_coff_dim, obj_coff_endef, obj_coff_line,
6422 obj_coff_scl, obj_coff_size, obj_coff_tag, obj_coff_type,
6423 obj_coff_val): Add unused int argument to satisfy prototypes; goes
6424 with Ian's 10 Sep changes.
6425 (S_GET_DATA_TYPE, S_SET_DATA_TYPE, S_GET_STORAGE_CLASS,
6426 S_SET_STORAGE_CLASS): Now function instead of macros.
6427 (obj_emit_lineno) [BFD_ASSEMBLER]: Deleted.
6428 (tag_insert): Local var ERROR_STRING is const. Use "const" not
6429 "CONST" for argument NAME. Fixed prototype.
6430 (coff_frob_symbol): Removed explicit "#if 1" directive. If
6431 S_IS_EXTERNAL, set storage class to C_EXT.
6432 (s_get_name): Use "const" not "CONST".
6433 * config/obj-coff.h (S_GET_DATA_TYPE, S_SET_DATA_TYPE,
6434 S_GET_STORAGE_CLASS, S_SET_STORAGE_CLASS): Deleted.
6435 (obj_emit_lineno): Declare only for non-BFD_ASSEMBLER. For
6436 BFD_ASSEMBLER, define as macro that aborts.
6437 (obj_extra_stuff, tc_headers_hook): Declare only for
6438 non-BFD_ASSEMBLER.
6439 (coff_frob_symbol): Fix prototype.
8b13fa4e
KR
6440
6441Sun Dec 19 00:37:20 1993 Ken Raeburn ([email protected])
6442
6443 * config/tc-sparc.c (tc_gen_reloc): Test of pcrel_offset had sense
6444 reversed.
6445
5ea18b5d
JL
6446Thu Dec 16 21:13:11 1993 Jeffrey A. Law ([email protected])
6447
6448 * config/tc-hppa.c (md_begin): Initialize "dummy_label".
6449 (tc_gen_reloc, SOM version): For relocations which have no symbol,
6450 set sym_ptr_ptr to dummy_label. Avoids lossage in generic BFD code.
6451
a8a72d74
KR
6452Thu Dec 16 16:07:56 1993 Ken Raeburn ([email protected])
6453
6454 * read.c (lex_type): No longer make '[' a valid character for
6455 symbol names.
6456
50f75add
KR
6457 * config/tc-vax.c (tc_aout_fix_to_chars): Local variable
6458 NBYTES_R_LENGTH now const.
6459
6460 * config/obj-*.c, config/tc-*.c: Omit superfluous "return"
6461 statements at ends of functions. Don't check for null return from
6462 hash_new, since it won't return at all if there's no memory
6463 available. Also, check for null return from hash_insert, rather
6464 than zero-length string, as success indicator.
6465
6466 * subsegs.c (section_symbol): New function.
6467 * subsegs.h (section_symbol): Declare.
6468 * write.c (adjust_reloc_syms): Use it.
6469
cf4aca57
KR
6470Wed Dec 15 15:39:53 1993 Ken Raeburn ([email protected])
6471
7387c355
KR
6472 * Makefile.in (RUNTEST): New variable.
6473 (CHECKFLAGS): Pass it down.
6474
cf4aca57
KR
6475 * ecoff.c (ecoff_directive_frame): Permit extra trailing operands;
6476 unused for now, but supplied by Alpha OSF1 compiler.
6477
6478 * as.h: Protect against multiple inclusions.
6479 (int_to_gen): Don't declare.
6480
6481 * config/atof-vax.c (atof_vax): NULL is not a valid character
6482 constant.
6483
551d2fd4
JL
6484Tue Dec 14 21:38:25 1993 Jeffrey A. Law ([email protected])
6485
26da0351
JL
6486 * configure.in (hppa*-*-osf*): Do not consider this a developmental
6487 configuration.
6488
551d2fd4
JL
6489 * config/tc-hppa.c (md_apply_fix): Handle cases where no
6490 relocation will be emitted for 32bit formats.
6491
9d5a9b20
JL
6492Mon Dec 13 23:33:40 1993 Jeffrey A. Law ([email protected])
6493
6494 * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
6495 for any of the 'T' field selectors.
6496
2b5936ff
SC
6497Sat Dec 11 11:23:12 1993 Steve Chamberlain ([email protected])
6498
6499 * config/tc-h8500.c (build_bytes): Get reloc type right for a
6500 %page operation. (md_assemble): Don't modify input_line_pointer.
6501 (mdcoff_sizemachdep): New function.
6502 * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro.
6503 * config/tc-z8k.c (get_operand): Delete bogus check.
6504
a1328e79
KR
6505Wed Dec 8 16:31:51 1993 Ken Raeburn ([email protected])
6506
6507 * write.c (number_to_chars_*): Delete bogus range check.
6508
6509 * output-file.c (TARGET_ARCH): No default.
6510
ef7ce769
SC
6511Tue Dec 7 16:02:53 1993 Steve Chamberlain ([email protected])
6512
6513 * config/tc-sh.c (md_convert_frag): Truncate disps before calling
6514 md_number_to_chars. (md_assemble): Don't modify
6515 input_line_pointer.
6516
67707031
DE
6517Mon Dec 6 11:49:03 1993 Doug Evans ([email protected])
6518
6519 * config/tc-h8300.c (md_assemble): Don't update input_line_pointer.
6520
dd2f509f
JL
6521Mon Dec 6 11:20:02 1993 Jeffrey A. Law ([email protected])
6522
6523 * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.
6524 Breaks with the HP compilers.
6525
6526 * config/tc-hppa.c (struct call_info): Remove fields which were
6527 set but never used. Remove all code which sets those fields.
6528 (struct subspace_dictionary_chain): Likewise.
6529 (struct space_dictionary_chain): Likewise.
6530 (pa_desc): Delete useless function. Delete all references.
6531 (hppa_tc_make_sections): No need to count the number of symbols for
69cb5925 6532 the symbol extension section.
dd2f509f 6533
7b624bf2
JL
6534Sun Dec 5 17:05:29 1993 Jeffrey A. Law ([email protected])
6535
eb91665b
JL
6536 * config/obj-som.c (obj_som_version): Pass version string to
6537 SOM BFD backend.
6538 (obj_som_copyright): New function. Much like obj_som_version.
6539
6540 * config/tc-hppa.c (obj_copyright): Define as appropriate for
69cb5925 6541 SOM and ELF.
eb91665b
JL
6542 (pa_copyright): Just a stub now.
6543
42ecb409
JL
6544 * config/obj-som.c (obj_read_begin_hook): Delete unused function.
6545 * config/obj-som.h (obj_read_begin_hook): Provide dummy definition.
6546 (TARGET_SYMBOL_FIELDS): Delete. SOM isn't making use of them.
6547
4165dcc2
JL
6548 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation
6549 expansion due to rounding mode selectors. Handle R_[RDSN]_MODE
6550 relocations for selecting the current rounding mode.
6551
7b624bf2
JL
6552 * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and
6553 e_rlsel field selectors.
6554
6555Fri Dec 3 18:33:24 1993 Ian Lance Taylor ([email protected])
6556
6557 * config/obj-elf.h: If ECOFF_DEBUGGING, undef
6558 SEPARATE_STAB_SECTIONS and INIT_STAB_SECTION, and define
6559 OBJ_PROCESS_STAB to call ecoff_stab.
6560 * config/obj-elf.c: Don't compile obj_elf_init_stab_section if
6561 INIT_STAB_SECTION is not defined.
6562
753dcbbd
JL
6563Fri Dec 3 10:56:40 1993 Jeffrey A. Law ([email protected])
6564
6565 * config/tc-hppa.c (md_apply_fix): Delete old wrapper function.
6566 (md_apply_fix_1): Rename to md_apply_fix. Fix argument decls.
6567 Fix comments in various places. Always return a value.
6568 Avoid dereferencing a NULL fx_addsy.
6569 (hppa_force_relocation): Avoid dereferencing a NULL fx_addsy.
6570
585635c7
JL
6571 Fri Dec 3 09:47:30 1993 Pete Hoogenboom ([email protected])
6572
6573 * tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should
6574 be either 0 or 2 (no static link or static link required). Always
6575 assume no static link.
6576
bfbfba45
KR
6577Thu Dec 2 11:52:21 1993 Ken Raeburn ([email protected])
6578
6579 * config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be
6580 dependent on howto fields, not on format flavour.
6581
6582 * struc-symbol.h (struct symbol): New fields sy_obj and sy_tc,
6583 defined as types OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those
6584 macros are defined.
6585 * config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define.
6586 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define.
6587 (sy_tc, sy_obj): Define so that the fields look like they used to,
6588 until all references get changed.
6589
6590 * write.c (fixup_segment): Lots of variables no longer register.
6591 Reordered some code for easier reading.
6592 * config/obj-coff.c (obj_coff_dim): dim_index no longer register.
6593 Deleted superfluous return statement.
6594 (obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type,
6595 obj_coff_val, tag_init, tag_insert): Deleted superfluous return
6596 statement.
6597 (align, obj_coff_section): Deleted debugging printfs.
6598 * config/tc-i386.c (md_assemble): Discard some register decls.
6599 Use assignment rather than memcpy to copy template.
6600 (op_hash, reg_hash, prefix_hash): Default C initialization of
6601 statics is sufficient.
6602 * config/tc-sparc.c (print_insn): Array Reloc is now const, and
6603 points to const.
6604
6605 * config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if
6606 TE_LYNX; use coff-sparc otherwise.
6607 [USE_NATIVE_HEADERS]: Delete this code; it isn't used.
6608
6609 * write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined,
6610 before processing a fixup. Call TC_ADJUST_RELOC_COUNT just before
6611 returning. Remove some i960-coff-specific code.
6612 (TC_ADJUST_RELOC_COUNT): Default to doing nothing.
6613 * config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define.
6614 (i960_validate_fix): Declare.
6615 (TC_VALIDATE_FIX): Define.
6616 * config/tc-i960.c (i960_validate_fix): New function.
6617
6618 * write.c (number_to_chars_littleendian): New function. Write out
6619 bytes in little endian order, doing size and range checking.
6620 (number_to_chars_bigendian): New function, similar.
6621 * write.h: Declare them.
6622 * config/tc-*.c (md_number_to_chars): Use them.
6623 * config/tc-vax.c (md_apply_fix): Ditto.
6624 * config/tc-i386.c (md_apply_fix): Ditto.
6625
6626 * config/obj-coff.c: Rearranged code for handling line number
6627 data.
6628 (line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case,
6629 since the usage is different from non-BFD_ASSEMBLER case.
6630 (in_function, clear_function, set_function): New macros, to
6631 combine some of the functionality implemented in differnet ways in
6632 BFD_ASSEMBLER and non-... code. Used in other functions that used
6633 to check function_lineoff &c.
6634 (obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER,
6635 one for not. Non-BFD_ASSEMBLER version now has temporary variable
6636 to contain char* pointer pointed to by char** argument. Always
6637 follow CROSS_COMPILE code; easier to read that way.
6638 (obj_coff_ln): Don't call add_lineno or c_line_new if appline is
6639 set.
6640 (obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for
6641 ".bf", it's been done elsewhere.
6642 (coff_frob_symbol): If ilne number data is pending, call
6643 add_linesym to flush it.
6644 (coff_frob_file): Don't do that here.
6645 * config/obj-coff.h (coff_frob_file): Declare.
6646 (obj_frob_file): Define, to call it.
6647
6648 * config/tc-sparc.h (md_create_short_jump, md_create_long_jump,
6649 md_estimate_size_before_relax: Define them as macros calling
6650 as_fatal.
6651 * config/tc-sparc.c: Don't define them as functions.
6652
6653 * configure.in: Handle target alpha-*-osf*. (No cpu files yet.)
6654
0a8ae18f
JL
6655Wed Dec 1 23:37:14 1993 Jeffrey A. Law ([email protected])
6656
6657 * Makefile (clean): Depend on clean-here.
6658
9a048e48
KR
6659Wed Dec 1 11:35:21 1993 Ken Raeburn ([email protected])
6660
6661 * config/ho-go32.h: Include fopen-bin.h.
6662 * as.h: If FOPEN_WB isn't defined, include fopen-same.h.
6663 * output-file.c (output_file_create): Use FOPEN_WB instead of "w".
6664 * input-file.c (input_file_open): Use FOPEN_RT instead of "r".
6665 * listing.c (file_info): Use FOPEN_RB instead of "rb".
6666 * read.c (s_include): Use FOPEN_RT instead of "r".
6667
6668 * stabs.c: Include obstack.h.
6669
6670 * tc.h (md_create_long_jump): Don't declare if it's already
6671 defined as a macro.
6672 (md_create_short_jump, md_estimate_size_before_relax): Ditto.
6673
6674 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_errmsg instead
6675 of strerror. Clear bfd_error.
6676
6677 * config/te-lynx.h (LOCAL_LABELS_FB): Define, if not already
6678 defined.
6679
44c0de53
JL
6680Wed Dec 1 10:41:56 1993 Jeffrey A. Law ([email protected])
6681
6682 * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.
6683 (pa_process_exit, pa_procend): Call it for ELF objects.
6684
777ad64d
ILT
6685Wed Dec 1 12:10:41 1993 Ian Lance Taylor ([email protected])
6686
6687 * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d
4032d3f0
ILT
6688 case. See comment. From [email protected]: for M_L_DAB, set
6689 coproc before doing goto ld.
777ad64d 6690
335d35c8
JL
6691Tue Nov 30 13:40:30 1993 Jeffrey A. Law ([email protected])
6692
6693 * write.c (TC_FORCE_RELOCATION): Provide a default definition.
69cb5925 6694 (fixup_segment): Allow the target machine to specify that a
335d35c8
JL
6695 relocation must be generated for a particular fixup. Remove
6696 #ifndef TC_HPPA hack.
6697
6698 * config/tc-hppa.h (TC_FORCE_RELOCATION): Define.
6699
6700 * config/tc-hppa.c (md_apply_fix_1): Never change fx_addsy to
6701 be NULL. Only fixup_segment is supposed to do that.
6702 (hppa_force_relocation): New function.
6703
018f2bba
ILT
6704Tue Nov 30 11:21:41 1993 Ian Lance Taylor ([email protected])
6705
c751ad19
ILT
6706 * Makefile.in (stabs.o): Added dependencies.
6707
018f2bba
ILT
6708 * config/obj-ecoff.c (ecoff_frob_file): Don't call bfd_set_symtab.
6709
81413fa2
JL
6710Sun Nov 28 12:11:40 1993 Jeffrey A. Law ([email protected])
6711
278cd007
JL
6712 * app.c (do_scrub_next_char): Output a TAB before any
6713 .app* directive.
6714
81413fa2
JL
6715 * config/tc-hppa.c (fix_new_hppa): Make sure a sub_symbol
6716 exists before trying to peek at its name.
6717 (pa_space): Do not call pa_align_subseg. See hppa/unsorted/align3.s
6718 for testcase.
6719 (pa_align_subseg): Delete unused/unwanted function.
6720
385ce433
JL
6721Sat Nov 27 22:49:07 1993 Jeffrey A. Law ([email protected])
6722
6723 * read.c (read_a_source_file): Fix test for when to stick a colon
6724 on the end of a label. Make code conditional on either MRI or
6725 LABELS_WITHOUT_COLONS.
6726
6727 * app.c (do_scrub_next_char): If a line begins with whitespace, leave
6728 the single whitespace character alone. Eat all others.
6729
6730 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define.
6731
31a385d1
JL
6732Wed Nov 24 01:22:54 1993 Jeffrey A. Law ([email protected])
6733
6734 * config/tc-hppa.c (pa_procend): Do not call process_exit.
6735 (exit_processing_complete): Delete unwanted variable and all
6736 references.
6737
c5953036
ILT
6738Wed Nov 24 02:31:38 1993 Ian Lance Taylor ([email protected])
6739
6740 * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext.
6741 Changed to not actually build the external symbol information, as
6742 that is now done by the ECOFF back end.
6743 (ecoff_build_debug): Changed accordingly.
6744 * ecoff.h (obj_ecoff_set_ext): Declare. obj-format.c function
6745 called by ecoff_setup_ext.
6746 * config/obj-ecoff.c (ecoff_frob_file): If debug_info count is 0,
6747 set corresponding pointer to NULL. Don't set raw_size and
6748 raw_syments.
6749 (obj_ecoff_set_sym_index): Removed.
6750 (obj_ecoff_set_ext): New function.
6751 * config/obj-ecoff.h (obj_set_sym_index): Don't define.
6752 (obj_ecoff_set_sym_index): Don't declare.
6753 * config/obj-elf.c (obj_ecoff_set_ext, elf_get_extr,
6754 elf_set_index): New functions used for ECOFF_DEBUGGING.
6755 (elf_frob_file): Reworked ECOFF debug generation to use
6756 new functions in bfd/ecofflink.c.
6757
6758Sun Nov 21 23:54:52 1993 Jeffrey A. Law ([email protected])
6759
6760 * config/tc-hppa.c (pa_def_subspaces): Only create the unwind
6761 subspace for ELF. In the SOM world, the linker is responsible
6762 for creating the unwind subspaces.
6763
e0209756
ILT
6764Fri Nov 19 16:25:09 1993 Ian Lance Taylor ([email protected])
6765
6766 * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
6767 (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
6768 already set. Fixes .def var; .val external_var; .scl 3; .endef.
6769 (adjust_stab_section): Make static. Declare return type. Remove
6770 unused variables.
6771
6772 * config/tc-i386.h: Declare tc_coff_fix2rtype and
6773 tc_coff_sizemachdep.
6774
0669e047
KR
6775Fri Nov 19 04:33:59 1993 Ken Raeburn ([email protected])
6776
6777 * write.c (write_object_file): Disable obj_check_file_symbols
6778 hook; only back end using it wasn't using it correctly.
6779 (write_object_file): Always call obj_frob_symbol and
6780 tc_frob_symbol; always retain symbol if it's used by a relocation,
6781 regardless of what these routines indicate.
6782 * config/obj-coff.c (coff_frob_symbol): Renamed from
6783 coff_check_file_symbols.
6784 * config/obj-coff.h (obj_check_file_symbols): Deleted.
6785 (coff_frob_symbol): Declare.
6786 (obj_frob_symbol): Call it.
6787
6788 * config/obj-coff.c (obj_crawl_symbol_chain, obj_emit_strings,
6789 obj_pre_write_hook): Don't define for BFD_ASSEMBLER.
6790 (c_section_header): Ditto. Delete superfluous return at end of
6791 function.
6792
6793 * config/obj-coff.h [TC_SPARC]: Include coff/sparc.h, and specify
6794 coff-sparc-lynx.
6795 (SA_GET_SYM_TAGNDX): Use BFD_HEADERS version for BFD_ASSEMBLER
6796 too.
6797 (c_section_header): Rewrite prototype so that it contains no
6798 preprocessing directives. Don't declare it at all if
6799 BFD_ASSEMBLER.
6800
6801 * configure.in (sparc*-*-lynxos): New target, using coff and
6802 BFD_ASSEMBLER.
6803
6804 * stabs.c: New file.
6805 * Makefile.in (REAL_SOURCES, OBJS): List it.
6806 * read.c (STAB_SECTION_NAME, STAB_STRING_SECTION_NAME,
6807 get_stab_string_offset, s_stab_generic, s_stab, s_xstab, s_desc):
6808 Moved to new file.
6809
6810 * config/tc-sparc.c (tc_gen_reloc): Handle coff files like elf
6811 files.
6812
29cc5816
ILT
6813Wed Nov 17 17:23:53 1993 Ian Lance Taylor ([email protected])
6814
6815 * configure.in (mips-*-irix5*): New target. Use elf and mips-big.
6816 * config/obj-elf.c: If ECOFF_DEBUGGING, include ecoff.h.
6817 (obj_pseudo_table): If ECOFF_DEBUGGING, define ECOFF
6818 pseudo-ops.
6819 (obj_read_begin_hook): If ECOFF_DEBUGGING, call
6820 ecoff_read_begin_hook.
6821 (obj_symbol_new_hook): If ECOFF_DEBUGGING, call
6822 ecoff_symbol_new_hook.
6823 (obj_elf_init_stab_section): Cast alloca result.
6824 (elf_frob_file): If ECOFF_DEBUGGING, finish up ECOFF debugging
6825 information and write it out into .mdebug section.
6826 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): New macro.
6827 (TARGET_SYMBOL_FIELDS): Use ELF_TARGET_SYMBOL_FIELDS.
6828 (ECOFF_DEBUGGING): Define if TC_MIPS.
6829 (TARGET_SYMBOL_FIELDS): If ECOFF_DEBUGGING, override to add
6830 fields required by ECOFF.
6831 * config/tc-mips.c: Check ECOFF_DEBUGGING rather than
6832 OBJ_ECOFF in many cases.
6833 (mips_any_noreorder): New variable.
6834 (mips_cprestore_offset): Initialize to -1.
6835 (mips_frame_reg): New variable.
6836 (RELAX_ENCODE, RELAX_OLD, RELAX_NEW, RELAX_RELOC1,
6837 RELAX_RELOC2, RELAX_RELOC3, RELAX_WARN): New macros.
6838 (md_pseudo_table): Handle "gpword" and "cpadd".
6839 (md_begin): Initialize ok to false. If OBJ_ELF, set alignment
6840 of text, data and bss sections to 4. Set alignment of
6841 .reginfo section to 2. If ECOFF_DEBUGGING, create .mdebug
6842 section.
6843 (ALIGN_ERR, ALIGN_ERR2): Removed unused and useless alignment
6844 check.
6845 (append_insn, macro_build, macro_build_lui): Take place
6846 argument. Changed all callers.
6847 (append_insn): If appending a nop, don't emit one.
6848 (macro_build): Changed assertion for 'i', 'j', 'o' case.
6849 (gp_reference): Removed.
6850 (load_address): New function.
6851 (macro): If mips_noreorder is used, set mips_any_noreorder.
6852 Extensive changes to handle GP and PIC symbols differently.
6853 Build both possible code choices using a variant frag, and
6854 make a final decision at the end of assembly when all
6855 information is known. Added PIC support for all symbol
6856 references.
6857 (mips_ip): Don't permit anything but a number after $ for a
6858 coprocessor register. Don't use .lit4 or .lit8 sections when
6859 generating PIC code. If OBJ_ELF, set alignment of .lit4 or
6860 .lit8 section to 4.
6861 (md_apply_fix): Accept and ignore GOT16 and GPREL32 relocs.
6862 (s_change_sec): Set alignment of ELF .rodata or .sdata section
6863 to 4.
6864 (s_mipsset): If .set noreorder, set mips_any_noreorder.
6865 (s_cpload): Ignore .cpload if not generating PIC code. Warn
6866 if .cpload is not in noreorder section.
6867 (s_cprestore): Ignore .cprestore if not generating PIC code.
6868 (s_gpword, s_cpadd): New functions.
6869 (tc_get_register): Added frame argument; if true, set
6870 mips_frame_reg to return value. Changed all callers.
6871 (md_estimate_size_before_relax): Don't error out, but instead
6872 determine how much a frag should grow.
6873 (tc_gen_reloc): Return multiple relocs if appropriate, as
6874 determined by md_estimate_size_before_relax.
6875 (md_convert_frag): New function.
6876 (mips_elf_final_processing): Set ELF header flags based on
6877 mips_any_noreorder and mips_pic.
6878 * config/tc-mips.h (RELOC_EXPANSION_POSSIBLE): Define.
6879 (MAX_RELOC_EXPANSION): Define to be 3.
6880 (md_relax_frag): Define to be 0.
6881 (md_convert_frag): Don't define.
6882 (tc_get_register): Changed declaration.
6883
6884 * ecoff.h, ecoff.c: New files pulled out of config/obj-ecoff.c to
6885 support generating ECOFF debugging information for MIPS ELF
6886 targets. Compiled only if ECOFF_DEBUGGING is defined. Changed
6887 handling of external symbols: it now always generates exactly
6888 those external symbols that are defined in the global symbol list.
6889 * Makefile.in (REAL_SOURCES): Added ecoff.c.
6890 (REAL_HEADERS): Added ecoff.h.
6891 (OBJS): Added ecoff.o.
6892 (ecoff.o): New target.
6893 * config/obj-ecoff.c: Almost entirely moved into ecoff.c.
6894 Remaining code mostly just calls ecoff.c code.
6895 * config/obj-ecoff.h: Define ECOFF_DEBUGGING.
6896 (TARGET_SYMBOL_FIELDS): Make ecoff_symbol a pointer to a
6897 struct localsym.
6898 (obj_read_begin_hook, obj_symbol_new_hook): Define to call
6899 functions in ecoff.c.
6900 (ecoff_stab): Don't declare (now declared in ecoff.h).
6901 (obj_set_sym_index): Define.
6902 (obj_ecoff_set_sym_index): Declare.
6903
6904 * frags.h (frag_grow): Declare.
6905 * frags.c (frag_grow): Made non-static.
6906
6907 * write.c (is_dnrange): Do not define if md_relax_frag is defined.
6908 (relax_segment): If md_relax_frag is defined, use it to handle a
6909 frag of type rs_machine_dependent rather than looking through
6910 md_relax_table.
6911
6912 * read.c (read_a_source_file): If we find a bad pseudo-op,
6913 do a continue to go on to the next line rather than a break.
6914 Removed duplicate bad pseudo-op code which was never executed.
6915
6916 * read.c (s_lcomm): Do not require a comma after the name.
6917
6918 * subsegs.h (segment_info_type): Changed hadone field to bitfield.
6919 Added bss bitfield.
6920 * as.c (perform_an_assembly_pass): Set bss flag for bss_section.
6921 * read.c (s_lcomm): Set bss flag for .sbss section if used.
6922 * write.c (relax_and_size_seg): Don't set SEC_HAS_CONTENTS for a
6923 bss section. Set SEC_RELOC if there are any relocations, even for
6924 a zero size section.
6925
6926 * write.c (write_relocs): In RELOC_EXPANSION_POSSIBLE case, base
6927 data offset on reloc[0]->address rather than reloc[j]->address, so
6928 that multiple relocs can affect different memory locations.
6929
6930 * write.c (chain_frchains_together, relax_and_size_seg,
6931 adjust_reloc_syms, write_relocs): Make third argument PTR, not
6932 char *, to match definition of bfd_map_over_sections.
6933
6934 * app.c (do_scrub_next_char): Don't interpret a comment character
6935 as starting a CPP line directive unless it is a '#' and is the
6936 very first characters on the line (i.e., do not permit leading
6937 whitespace).
6938
6939 * messages.c (identify): Make file argument non-const, to match
6940 callers.
6941
c5e9ccd0
JL
6942Tue Nov 16 20:38:21 1993 Jeffrey A. Law ([email protected])
6943
6944 * config/tc-hppa.c (pa_ip): Fix thinko in 21bit range check.
6945
6946Sat Nov 13 18:22:48 1993 Steve Chamberlain ([email protected])
6947
6948 * config/tc-sh.c (md_apply_fix): Cope with IMM16 type too.
6949 * config/tc-z8k.c (build_bytes, md_apply_fix): Understand nDISP7
6950 relocs.
6951
4a1b59ef
JL
6952Fri Nov 12 16:51:47 1993 Jeffrey A. Law ([email protected])
6953
3e330968 6954 * config/tc-hppa.[ch]: Fix assorted trivial indention problems.
4a1b59ef
JL
6955 * config/obj-som.c (obj_som_version): Add missing ';'.
6956 (som_frob_file): Delete whitespace at EOL.
6957
f3b6e1f2
KR
6958Fri Nov 12 15:26:21 1993 Ken Raeburn ([email protected])
6959
6960 * Makefile.in (VERSION): Updated following 2.2 release.
6961
c5e9ccd0 6962Fri Nov 12 14:52:17 1993 Jeffrey A. Law ([email protected])
f2eed884
JL
6963
6964 * config/tc-hppa.c (hppa_fix_struct): Use a real type for the
6965 field selector, rather than an int. All uses of field selectors
6966 fixed.
6967 (tc_gen_reloc): For SOM PLABELs, always set addend to zero for now.
6968 (md_apply_fix_1): Do not call hppa_field_adjust for any PLABEL
6969 field.
6970
6971 Thu Nov 11 15:49:08 1993 Jeffrey A. Law ([email protected])
a721c80b
JL
6972
6973 * config/tc-hppa.c (pa_type_args): For .import statements,
69cb5925 6974 silently ignore attempt to change the symbol type for a function
f2eed884 6975 from ST_ENTRY to ST_CODE on .import.
a721c80b 6976
ca16b5e5
ILT
6977Wed Nov 10 16:19:13 1993 Ian Lance Taylor ([email protected])
6978
6979 * write.h (fixS): Rename fx_callj field to fx_tcbit.
6980 * write.c, config/obj-coff.c, config/obj-coffbfd.c,
6981 config/tc-i960.c: Corresponding changes.
6982
48153d49
JL
6983Tue Nov 9 00:49:01 1993 Jeffrey A. Law ([email protected])
6984
7420b02b
JL
6985 * Makefile.in (distclean): Delete config-stamp and config.h
6986
f41f3d72
JL
6987 * config/tc-hppa.c (evaluate_absolute): Avoid relying on
6988 ANSI-C features.
6989
48153d49
JL
6990 * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
6991 Accept new argument "is_export". All callers changed. When
6992 processing a .export directive for a function, do not allow
6993 the user to set the type to "CODE", instead warn and set the
6994 type to "ENTRY".
6995
9226253a
ILT
6996Mon Nov 8 12:05:07 1993 Ian Lance Taylor ([email protected])
6997
6998 * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
6999 Lemon <[email protected]>).
7000 (mips_ip): Permit odd numbered floating point registers if -mips3.
48153d49 7001 (macro): Use BFD_RELOC_MIPS_LITERAL relocation for M_LI_SS.
9226253a 7002
53087850
DE
7003Mon Nov 8 07:45:01 1993 Doug Evans ([email protected])
7004
7005 * configure.in: Remove h8300h, we have multilib now.
7006
5f8a3788
DHW
7007Mon Nov 8 06:09:18 1993 D. V. Henkel-Wallace ([email protected])
7008
7009 * configure.in: Support generic netware as being ELF format.
7010 Recognise unixware if the user supplies it.
7011
163aac84
JL
7012Sun Nov 7 01:02:08 1993 Jeffrey A. Law ([email protected])
7013
513f0471
JL
7014 * First cut at cleaning up PA instruction parsing.
7015 * config/tc-hppa.c (pa_get_absolute_expression): Accept pointer to
7016 insn structure as an argument, and a pointer to a string. All
7017 callers changed. Always read any field selector here. Call
7018 evaluate absolute to get a return value.
7019 (evaluate_absolute): Addept pointer to insn structure as its
7020 argument. All callers changed.
7021 (INSERT_FIELD_AND_CONTINUE): New macro for inserting a bitfield
7022 into an instruction and continuing the main pa_ip loop.
7023 (CHECK_FIELD): New macro for simple range checking of fields.
7024 (pa_ip): Delete unused variables. Use INSERT_FIELD_AND_CONTINUE
7025 and CHECK_FIELD. All immediate fields now pass through
7026 pa_get_absolute_expression which will also handle field selectors.
7027 Delete dead code. Simplify.
7028 (md_apply_fix_1): Use CHECK_FIELD to verify any fixes that are
7029 applied are in range. Use bfd_put_32 rather than inserting each
7030 byte of the fixed instrution into the buffer ourselves.
7031
3e411021 7032 * write.c (fixup_segment): Delete {SEG,GLOBAL}_DIFF_ALLOWED code,
69cb5925 7033 it was PA specific and is no longer needed (it's now handled
3e411021
JL
7034 within the PA backend).
7035 * config/tc-hppa.h (SEG_DIFF_ALLOWED): Delete definition.
7036 * config/tc-hppa.c (fix_new_hppa): If the subtract symbol for
7037 a fixup is $global$ change it to NULL as $global$ is really only
7038 needed long enough to determine the base type of relocation to use.
7039
240cbc57
JL
7040 * config/tc-hppa.c (create_new_subspace): Initialize subspace_defined.
7041
163aac84
JL
7042 * config/tc-hppa.c (pa-ip, case 'z'): Make field selectors work
7043 for 'z' operands (target of ble branch).
7044
1cc248d2
JL
7045Sat Nov 6 22:41:57 1993 Jeffrey A. Law ([email protected])
7046
18c4f112
JL
7047 * config/tc-hppa.c: (update_subspace): Fix type and name of last
7048 parameter. All callers fixed.
7049 (md_begin, pa_chk_field_selector, pa_entry): Lint.
7050
1cc248d2
JL
7051 * config/tc-hppa.c (cons_fix_new_hppa): Reset field selector
7052 to default state after it's been used.
7053
88eb7ea6
JL
7054Fri Nov 5 12:08:21 1993 Jeffrey A. Law ([email protected])
7055
7056 * config/obj-som.c (obj_som_init_stab_section): Change
7057 space/subspace sort keys for the stab sections so as to avoid
7058 bugs in the hp linker and pxdb.
7059
0f894895
JL
7060Thu Nov 4 17:00:05 1993 Jeffrey A. Law ([email protected])
7061
7062 * write.c (chain_frchains_together): Update pointer to last
7063 frag for a segment in the seginfo structure.
7064
de074576
JW
7065Thu Nov 04 09:09:35 1993 Jeffrey Wheat ([email protected])
7066
7067 * Makefile.in: Changed RUNTESTFLAGS to RUNTEST_FLAGS
7068
7069Wed Nov 3 12:16:27 1993 Ken Raeburn ([email protected])
7070
7071 * write.c (fixup_segment): Handle conversion of subtraction to
7072 pc-relative addressing even if pc-relative flag is already set.
7073
7074 * config/tc-m68k.c (m68k_ip_op): Use strchr, not index. Don't
7075 declare either.
7076
7077 * doc/Makefile.in (distclean): Delete intermediate files from dvi
7078 build, but not the dvi or info files.
7079 * Makefile.in (clean-here): New target; cleans up current
7080 directory only.
7081 (distclean): Use it instead of clean.
7082
7083 * read.c (s_xstab): Don't use alloca.
7084
7085 * messages.c (identify): New routine; print message identifying
7086 following messages as coming from assembler.
7087 (as_show_where, as_bad_internal, as_bad_where): Call it.
7088 (as_fatal): Don't need to identify program any more.
7089
efe8ef02
ILT
7090Tue Nov 2 18:04:11 1993 Ian Lance Taylor ([email protected])
7091
fd4b7c25
KR
7092 * config/tc-sparc.c (sparc_ip): Add default case to reloc switch.
7093
efe8ef02
ILT
7094 * read.c (s_lcomm): Put small objects in .sbss for MIPS ELF as
7095 well as MIPS ECOFF.
7096 (get_stab_string_offset): Remove unused variable aligned.
7097
aa14e863
JL
7098Tue Nov 2 15:07:07 1993 Jeffrey A. Law ([email protected])
7099
d6e524f3
JL
7100 * tc-hppa.c: Add %dp and %rp as synonyms for %r27 and %r2 in the
7101 predefined register table.
7102 (pa_parse_number): Handle %rp in common register shortcut code.
7103 Consistently set return value to -1 for an error. Clean up error
7104 messages and only print them when "print_errors" is true. Handle
7105 empty string case like the HP assembler -- assume a value of
7106 zero.
69cb5925 7107
20cee6d8
JL
7108 * config/ho-hpux.h: Do not include ho-sysv.h. Instead include
7109 standard hpux include files to pick up various function decls.
7110
aa14e863
JL
7111 * config/ho-hppaosf.h: Delete _IO* macros. They are defined in
7112 stdio.h. Delete bogus declaration of free. Get path to
7113 alloca-conf.h right.
7114
25270a1c
KR
7115Tue Nov 2 13:57:30 1993 Ken Raeburn ([email protected])
7116
7117 * expr.c (operand): Fix checks for characters following "0b" or
7118 "0f".
7119
f197d7eb
JL
7120Mon Nov 1 21:37:04 1993 Jeffrey A. Law ([email protected])
7121
ff852e11
JL
7122 * config/obj-som.h (obj_attach_unwind_info): Define as a hook
7123 so GAS can attach unwind descriptor information to a BFD symbol.
7124 * config/tc-hppa.c (fix_new_hppa): If necessary attach unwind
7125 descriptor information to the BFD symbol.
7126 (md_apply_fix): R_HPPA_ENTRY and R_HPPA_EXIT can never be "applied",
7127 they are simply markers. Make R_HPPA_UNWIND_* handling OBJ_ELF
7128 dependent.
7129 (pa_build_unwind_subspace): Whole function is OBJ_ELF dependent.
7130 (pa_entry): Build a R_HPPA_ENTRY relocation when configured for SOM.
7131 (pa_exit): Likewise, but built a R_HPPA_EXIT relocation. Do not
7132 build "end-of-function" symbols for SOM, they are not needed.
7133
a50e9b55
JL
7134 * config/tc-hppa.c (process_exit): Create temporary symbols with
7135 correct prefixes so they can be eliminated later.
7136
49fc68a1 7137 * config/tc-hppa.c (call_info struct): Delete unused "frame" field.
69cb5925 7138 (pa_callinfo): Insert framesize into the unwind information as
49fc68a1
JL
7139 soon as it's available.
7140 (pa_build_unwind_subspace): Do not insert framesize into the unwind
7141 information here.
7142
c43d56f7
JL
7143 * Add support for marker type relocations. These mark areas
7144 of interest to the linker. ENTRY/EXIT relocations for SOM are
7145 an example of marker relocations.
7146 * write.c (write_relocs): Instead of assuming size of a relocation
7147 is 4 bytes, pick up the size from relocation itself.
69cb5925 7148 (fixup_segment): Do not complain that a value is too small for
c43d56f7
JL
7149 marker relocations.
7150
009dc5e1
JL
7151 * struc-symbol.h: Add new "sy_used" field to the symbol structure.
7152 * expr.c (operand): Set sy_used for any symbol used as an operand.
7153 (expr): Likewise for any symbol used in an expression.
7154 * config/tc-hppa.h (tc_frob_symbol): Define. Punt imported
7155 symbols which are never used and absolute symbols which local scope.
7156
f197d7eb
JL
7157 * config/obj-som.h (obj_frob_file): Define.
7158 * config/obj-som.c (obj_som_init_stab_section): Set alignment
7159 of stab sections. Make space for the special stab entry.
69cb5925 7160 (adjust_stab_sections): Adjust the special entry in the
f197d7eb
JL
7161 stabs section.
7162 (som_frob_file): New function. Simply calls adjust_stab_sections
7163 for each section.
7164
bca9cf0b
ILT
7165Mon Nov 1 17:54:29 1993 Ian Lance Taylor ([email protected])
7166
7167 * config/tc-mips.c (PIC_CALL_REG, SP, FP): Define.
7168 (mips_pic, mips_cprestore_offset): New static variables.
7169 (md_pseudo_table): Handle .abicalls, .cpload, and .cprestore.
7170 Ignore .bgnb and .endb.
7171 (gp_reference): _gp_disp is never addressed off GP.
7172 (macro_build): Ignore macros while searching for insn. For cases
7173 i, j, and o, accept the reloc type as an argument rather than
7174 assuming BFD_RELOC_LO16. Don't try to convert BFD_RELOC_LO16 to
7175 BFD_RELOC_MIPS_GPREL. Added new case a.
7176 (set_at, load_register, macro): Changed calls to macro_build to
7177 pass new argument for i, j and o cases.
7178 (macro): Handle M_JAL_1, M_JAL_2 and M_JAL_A. These require
7179 special handling when generating SVR4 PIC code.
7180 (mips_ip, tc_get_register, s_frame): Use macros FP, SP, GP and AT
7181 rather than hard coded constants.
7182 (md_apply_fix): Handle BFD_RELOC_MIPS_LITERAL and
7183 BFD_RELOC_MIPS_CALL16.
7184 (s_option): Set mips_pic based on .option picN.
7185 (s_abicalls): New function; set mips_pic to 2.
7186 (s_cpload): New function; handle .cpload.
7187 (s_cprestore): New function; handle .cprestore.
7188
7189 * config/obj-ecoff.c (obj_pseudo_table): Add entries for .bgnb,
7190 .endb and .verstamp, setting them to s_ignore.
7191
d191a03c
JL
7192Sun Oct 31 00:36:40 1993 Jeffrey A. Law ([email protected])
7193
47f45d66
JL
7194 * config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined
7195 field. Define SUBSPACE_DEFINED accessor macro.
7196 (pa_subspace): Allow user to override subspace attributes for
7197 built-in subspaces. Set ssd_defined at the end of fcn -- that
7198 way the attributes can only be changed once. Pass newly allocated
7199 name to is_defined_subspace, not a pointer to the input line.
7200 Fix typo in space/subspace rework.
7201 (is_defined_subspace): Delete unused 2nd arg. All callers changed.
7202
7203 * config/tc-hppa.c (pa_import): If currently in the text segment
7204 and a symbol is imported without type information, set BSF_FUNCTION
7205 for the symbol.
20b39b6f
JL
7206 * write.c (relax_and_size_seg): Correct test to determine if
7207 the section's size was rounded up.
7208
e75acd68
JL
7209 * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
7210 can properly set all the SOM symbol types.
69cb5925 7211 * config/tc-hppa.c (pa_symbol_type): New enum to represent the
e75acd68
JL
7212 symbol types which can be set from an IMPORT/EXPORT statement.
7213 (pa_export_args): Set the pa_symbol_type type based on arguments.
7214 If defined, call obj_set_symbol_type to pass this information on
7215 to the BFD backend.
7216
69cb5925 7217 * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
d191a03c
JL
7218 stab section we make.
7219 (s_stab_generic): Likewise.
7220
12696e9c
JL
7221Sat Oct 30 14:26:20 1993 Jeffrey A. Law ([email protected])
7222
65a7f8a6
JL
7223 * Allow backends to override the value of the fake label.
7224 * write.h (LOCAL_LABEL): Delete DOT_LABEL_PREFIX code. Instead
7225 assume backends will define LOCAL_LABEL if anything other than
7226 'L' is used to denote a local label.
7227 (FAKE_LABEL_NAME): New macro. Defines the default name used for
7228 the "fake" label.
7229 * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
7230 and instead simply use the string defined by FAKE_LABEL_NAME.
7231 (operand): Likewise.
7232 * read.c (s_stab_generic): Likewise.
7233 * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
7234 known to be a local label.
7235 * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
7236 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
7237 * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete.
7238 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
7239 * config/te-sco386.h (DOT_LABEL_PREFIX): Delete.
7240 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
7241
6bc14195
JL
7242 Rework space/subspace handling in PA code to fully support
7243 SOM spaces/subspaces.
7244 * config/tc-hppa.c (USE_ALIASES): New object-format dependent define
7245 to control the use of space/subspace name aliases.
7246 (update_subspace): Accept space chain entry for containing space
7247 as a new parameter. All callers changed.
7248 (pa_get_label): Use current_space rather than pa_segment_to_space.
7249 (pa_define_label): Likewise.
7250 (pa_undefine_label): Likewise.
7251 (md_begin): Change into the (possibly modified) text_section.
7252 (pa_parse_space_stmt): Create a new segment/space if create_flag
7253 is true, and the space name is not one of the two predefined spaces.
69cb5925
KR
7254 (pa_subspace): Use current_space rather than a lookup via
7255 pa_segment_to_space. Reset BFD section flags as required by
6bc14195
JL
7256 the .subspace directive. Likewise for the section alignment.
7257 Pass the current space to update_subspace and create_new_subspace.
7258 (pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
7259 is true. When not using aliases, create a BFD section for each
7260 subspace encountered. When not using aliases replace the default
7261 text, data, and bss segments with new ones.
69cb5925 7262 (create_new_subspace): When not using aliases each subspace has a
6bc14195 7263 section/segment and subsegments are not needed, so set the subsegment
69cb5925 7264 to zero.
6bc14195 7265
548ea75b 7266 * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
69cb5925 7267 obj_set_section_attributes to pass space attributes to the
548ea75b
JL
7268 BFD backend.
7269 (create_new_space): Likewise.
69cb5925 7270 (create_new_subspace): Likewise for subspace attributes using
548ea75b
JL
7271 obj_set_subsection_attributes.
7272 (update_subspace): Likewise for subspace attributes using
7273 obj_set_subsection_attributes.
7274
0f3b419c
JL
7275 * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
7276 for $TEXT$ and $PRIVATE$ from the default space structure.
7277
9a182533
JL
7278 * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
7279 as appropriate for the given type.
7280
62f0841b
JL
7281 * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
7282 SOM relocations.
7283
d56f45f5
JL
7284 * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
7285 redefinition.
7286
3c87583d
JL
7287 * config/obj-som.[ch]: New files for SOM support. Note SOM
7288 support is not yet complete in GAS or BFD.
7289
69cb5925 7290 * config/ho-hppabsd.h: Delete IO* macros, they are defined in
12696e9c
JL
7291 stdio.h. Delete declaration of free. Include stdlib.h, unistd.h,
7292 and string.h.
7293
37ed805e
JL
7294Fri Oct 29 13:26:12 1993 Jeffrey A. Law ([email protected])
7295
12696e9c
JL
7296 * Allow backends to override the section names used for embedded
7297 stabs support. Needed for SOM.
7298 * read.c (STAB_SECTION_NAME): Default the name of the stab section
69cb5925 7299 to ".stab".
12696e9c
JL
7300 (STAB_STRING_SECTION_NAME): Likewise for the stab strings section.
7301 (get_stab_string_offset): Is now passed the full name for the
7302 stab string section rather than a name prefix. All references
7303 changed.
7304 (s_stab_generic): New argument for the stab string section name.
7305 all references changed.
7306 (s_xstab): Append "str" to the stab section name to get the
7307 stab string section name.
7308 * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
7309 to stab section name to get the stab string section name. Pass
7310 the full name of the stab string section to get_stab_string_offset.
7311 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
69cb5925 7312
53c0b9e7
JL
7313 * config/tc-hppa.c (md_begin): Disable "-R" option to fold
7314 textand data segments. Warn user "-R" is unsupported on the
7315 PA.
37ed805e 7316
48ac0c90
JL
7317Thu Oct 28 12:36:13 1993 Jeffrey A. Law ([email protected])
7318
d33ace2e
JL
7319 * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
7320 .align and .ALIGN directives.
7321
48ac0c90
JL
7322 * config/tc-hppa.c (pa_space): Do not report an error for a .space
7323 directive which does not define a "well-known" space and does
7324 not include a space number as an argument.
69cb5925 7325
48ac0c90
JL
7326 * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
7327 "defined", "loadable", "code_only" and "space_index" fields.
7328 (pa_def_spaces): Correct initialization of the "spnum", "defined",
7329 and "private" fields.
7330
7331 * write.h (struct fix): Add new tc_fix_data field for the various
7332 backends to attach machine dependent fixup information to.
7333 * write.c (fix_new_internal): Initialize new tc_fix_data field.
7334 * config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
7335 fx_next fields.
7336 (hppa_find_hppa_fix): Delete unnecessary function. Fix all
69cb5925 7337 callers to get HPPA fixup information from the tc_fix_data field
48ac0c90
JL
7338 in the GAS fixup.
7339 (hppa_fix_root): Delete unnecessary variable.
7340 (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.
7341
7342 * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
7343 function. Fix all callers.
7344 (subspace_dictionary_chain): Delete unused ssd_start_sym field.
7345
7346 * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
7347 if a particular fixup is adjustable.
7348 * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
7349 perform the real work.
7350
7351 * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
7352 of OBJ_XXX conditionals.
7353 (MAX_RELOC_EXPANSION): Likewise.
7354
7355 * config/tc-hppa.c (log2): Renamed from is_power_of_2. Fix all
7356 callers. Now returns log2 (N) for positive N which are an exact
7357 power of two or -1 for an error.
7358
69cb5925 7359 * config/tc-hppa.c (pa_callinfo): Range check values provided for
48ac0c90
JL
7360 ENTRY_GR, ENTRY_FR and ENTRY_SR. Properly adjust vaues before
7361 inserting them into the unwind table.
7362
7363 * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
7364 (hppa_gen_reloc_type): New object format dependent macro.
7365 (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
7366 conditional. The code can (and will) be shared between SOM & ELF
7367 formats in the near future.
7368 (cons_fix_new_hppa, md_apply_fix_1): Likewise.
7369 (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
7370 (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
7371 specific call.
7372
7373 * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
7374 to bfd_und_section.
7375
7376 * config/obj-elf.h (obj_elf_version): Add extern prototype.
7377
7378 * configure.in (hppa-*-bsd*): New configuration.
7379 BFD is always used for GAS generating SOM objects.
7380
7381 * write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
7382 adjustment is rejected by the target machine.
7383
7384 * config/tc-hppa.c (pa_big_cons): Delete function and its
7385 declaration. All callers changed to use pa_cons.
7386
7387 * write.c (fixup_segment): Fix indention and open/close brace
7388 problem.
7389
7390 From Pete Hoogenboom:
7391 * config/tc-hppa.c (md_atof): Return a NULL on success rather than
7392 an empty string.
7393
3515a504
JL
7394 * config/tc-hppa.c (pa_parse_space_stmt): Advance
7395 input_line_poitner when an invalid argument is encountered.
7396
6121fb06
ILT
7397Thu Oct 28 13:09:26 1993 Ian Lance Taylor ([email protected])
7398
7399 * config/tc-a29k.c (md_begin): When opcodes are mashed together in
7400 the table, require that the one without bit 0x1000000 set come
7401 first. Require further that it be case 'b' or 'P'. The a29k
7402 opcode table already meets these constraints.
7403 (machine_ip): When handling case 'i' or 'A', make sure that the
7404 appropriate opcode really exists by looking at the next entry in
7405 the opcode table.
7406
56c96faa
ILT
7407Wed Oct 27 11:48:56 1993 Ian Lance Taylor ([email protected])
7408
729f4bba
ILT
7409 * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
7410 fixups. Add 6 for long 7.3 case, 2 for short 7.2 case.
7411
007ff46b
ILT
7412 * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
7413 after a .ent directive.
7414
d1ee509b
ILT
7415 * config/tc-mips.c (mips_ip): Handle '>' case (shift amount
7416 between 32 and 63 for double shift instruction). Do & 0x1f rather
7417 than % 32.
7418 (printInsn): Handle '>'.
56c96faa 7419
fa20b8bf
ILT
7420Tue Oct 26 16:58:36 1993 Ian Lance Taylor ([email protected])
7421
5694ad93
ILT
7422 * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
7423 number in the right place. Untested. Probably does not work for
7424 cross assembly. From [email protected] (Andrew Cagney).
7425
f3751617
ILT
7426 * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
7427 an illegal offset of 0 or -1.
7428
fa20b8bf
ILT
7429 * config/obj-elf.c (obj_elf_init_stab_section): Align .stab
7430 section to a longword boundary.
7431
4da7942d
KR
7432Tue Oct 26 10:24:31 1993 Ken Raeburn ([email protected])
7433
7434 * Makefile.in (CHECKFLAGS): Pass down RUNTESTFLAGS.
7435
7436 From Jeff Law:
7437 * config/tc-hppa.c (tc_gen_reloc): ELF32_HPPA_R_ADDEND ->
7438 HPPA_R_ADDEND.
7439
fd4b7c25
KR
7440Mon Oct 25 14:06:17 1993 Ian Lance Taylor ([email protected])
7441
7442 * config/tc-sparc.c (sparc_ip): Fix up membar argument handling.
7443
24934035
SC
7444Mon Oct 25 11:17:58 1993 Steve Chamberlain ([email protected])
7445
8e5afd4f
SC
7446 * config/tc-sh.c (build_Mbytes): Write the relocs to the correct
7447 address. (md_assemble): Make error handling a bit more graceful.
7448 (md_apply_fix): Don't warn on non aligned displacement.
fd4b7c25 7449
24934035
SC
7450 * config/tc-z8k.c (get_specific, built_bytes): Understand all the
7451 aspects of lda.
7452
84678d16
KR
7453Mon Oct 25 10:20:31 1993 Ken Raeburn ([email protected])
7454
7455 * doc/Makefile.in (install-info): Use "$<*" so VPATH will find
7456 as.info* even if they're in $(srcdir) (e.g., for FSF
7457 distributions).
7458
7459 * write.c (write_relocs): For relocs that are pc_relative and
7460 pcrel_offset and not partial_inplace, adjust reloc->addend to
7461 compensate for a bfd_perform_relocation bug.
7462
7463 * config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
7464 * config/tc-sparc.c: Ditto.
7465 (tc_gen_reloc): Include fx_offset for pcrel fixups.
7466
52aa70b5
JW
7467Sun Oct 24 16:49:00 1993 Jim Wilson ([email protected])
7468
7469 * tc-mips.c (md_pseudo_table): Add dword pseudo op.
7470
ab0751c8
DZ
7471Fri Oct 22 20:40:56 1993 david d `zoo' zuhn ([email protected])
7472
7473 * messages.c: replaced all variables called Format with 'format',
7474 for consistency throughout
7475
7476 * configure.in: handle mips*- instead of mips, mips*el for little
7477 endian configurations
7478
8efed14f
ILT
7479Fri Oct 22 14:45:49 1993 Ian Lance Taylor ([email protected])
7480
7481 * input-scrub.c (physical_input_file, logical_input_file,
7482 physical_input_line, logical_input_line): Made static.
7483 (as_where): Return current file name and line number, don't print
7484 them out.
7485 * messages.c (as_show_where): New static function. Other
7486 functions use it instead of as_where.
7487 (as_bad_internal): New static function.
7488 (as_bad): Use as_bad_internal.
7489 (as_bad_where): New function, like as_bad but taking a file name
7490 and line number.
7491 * as.h (as_bad_where): Declare.
7492 (as_where): Change prototype for new arguments.
7493 * write.h (fixS): Added fields fx_file and fx_line.
7494 * write.c (fix_new_internal): Save file and line number in fix.
7495 (fixup_segment): Use as_bad_where, not as_bad.
7496 * input-file.c (f_in, file_name): Made static.
7497 * cond.c (struct file_line): Just use file and line fields.
7498 (s_else): Use as_where and as_bad_where, not get_file_line and
7499 set_file_line.
7500 (get_file_line, set_file_line): Removed.
7501 * listing.c (listing_newline): Use as_where.
7502 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
7503 * config/obj-ecoff.c (add_file): Use as_where.
7504 * config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
7505 * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
7506 * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
7507
efa0c22e
KR
7508Thu Oct 21 12:52:01 1993 Ken Raeburn ([email protected])
7509
7510 * config/tc-m68k.h: Don't define REGISTER_PREFIX or
7511 OPTIONAL_REGISTER_PREFIX if either is already defined.
7512
7513 * config/tc-m68k.c (m68k_ip): Delete some code in "#if 0".
7514
7515 * configure.in: Set bfd_gas for all sparc targets. Added facility
7516 for keeping or rejecting configurations still under development;
7517 default is to assume production environment, and reject configs
7518 still being worked on. Mark Elf configurations (except sparc and
7519 i386) as developmental. Deleted cases matching some generic names
7520 in favor of more specific names. (E.g., when we get Alpha
7521 support, we'll still only support VMS for Vax.)
7522
7523 * config/tc-sparc.h (md_end): New macro.
7524 * config/tc-sparc.c (md_end): Function deleted.
7525 (BFD_RELOC_*): Delete macros that used to help keep the non-bfd
7526 version compiling. All sparc targets will use bfd now.
7527 * tc.h (md_end): Don't declare if it's defined as a macro.
7528
7529 Changes from Jeff Law and Peter Hoogenboom:
7530
7531 * read.c (next_char_of_string): Limit octal character constants to
7532 three digits.
7533
7534 * config/tc-hppa.h: Major cleanup. Use GNU-style comments. Warn
7535 against placing additional object-file dependent code here. Warn
7536 against contaminating all of GAS with the internals of tc-hppa.c
7537 through inclusion of tc-hppa.h. Delete all forward declarations
7538 for functions only used within tc-hppa.c, likewise for structures,
7539 variables, and #defines. Try to group OBJ_ELF and OBJ_SOM
7540 conditional code in a few small places.
7541
7542 * config/tc-hppa.c: Major cleanup. Use GNU-style comments. Group
7543 structures, global variables, forward declarations together.
7544 Reduce (or in some cases eliminate) OBJ_ELF and OBJ_SOM
7545 conditional code -- try to group conditional code together
7546 into a few places. Make all functions and variables which
7547 are only used within tc-hppa.c static. PARAMize all functions.
7548 Add comments to functions. Delete unused functions, variables,
7549 #defines, etc. Delete unused members within structures. Delete
7550 ldil;ble hacks -- it is believed they were installed to work
7551 around old gas bugs. Avoid using mixed case for local
7552 functions, variables, and structures. Fix formatting problems
7553 not found by GNU-indent. Add FIXME notices for things which
7554 should be worked on the near future. Delete lots of old
69cb5925 7555 useless (1.36 PA-SOM) code.
efa0c22e
KR
7556
7557 * config/tc-hppa.c: (fix_new_hppa): Initialize the fx_r_type
7558 field of the fixS structure. Needed to build unwind
7559 descriptors correctly.
7560
7561 * write.c: (fixup_segment): Allow expressions such as
7562 sym1-sym2+const as long as sym2 is $global$.
7563
7564 * write.c (adjust_reloc_syms): Provide a hook so that a target
7565 cpu configuration can reject certain relocation reductions.
7566 * tc-hppa.h (tc_fix_adjustable): New macro. Only accept relocations
7567 which do not involve function symbols.
7568
7569 * config/tc-hppa.h: Reindent with GNU-indent. Delete references
7570 to OBJ_OSFROSE. Fix typos (OBJ_SOME -> OBJ_SOM). Delete unused
7571 STAB_FIXUP macro.
7572 * config/tc-hppa.c: Likewise.
7573
7574 * config/tc-hppa.c (md_apply_fix_1): Use elf_symbol_type, instead
7575 of elf32_symbol_type.
7576 (pa_export_args): Likewise.
7577 (elf_hppa_final_processing): Likewise.
7578 (pa_desc): Do not call obj_elf_desc. (Is pa_desc even needed
7579 anymore?)
7580 (hppa_tc_make_sections): Do not declare elf_get_symtab_map any
7581 ore.
7582
7583 * config/tc-hppa.c: (md_section_align): Align all sections to
7584 a multiple of the section alignment rather than always a
7585 multiple of 8.
7586
7587 * config/tc-hppa.c (hppa_tc_symbol): If the argument relocation
7588 bits are zero (eg they specify no relocations), then do not even
7589 bother adding their entries to thesymextn section.
7590
7766838e
ILT
7591Thu Oct 21 15:44:55 1993 Ian Lance Taylor ([email protected])
7592
7593 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
7594 option, which is used by the SunOS make default .s.o rule.
7595
fd4b7c25
KR
7596Wed Oct 20 12:26:33 1993 Ken Raeburn ([email protected])
7597
7598 * config/tc-sparc.c (sparc_ip, label "immediate"): Convert relocs
7599 operating on upper 32 bits of immediate constants to lower-half
7600 relocs with adjusted constants.
7601
dff60b7d
ILT
7602Tue Oct 19 18:13:26 1993 Ian Lance Taylor ([email protected])
7603
7604 * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable
7605 m68k_aout_machtype.
7606 * config/tc-m68k.c (omagic): Remove obsolete and unused variable.
7607 (m68k_aout_machtype): New variable, if OBJ_AOUT.
7608 (md_assemble): Initialize m68k_aout_machtype based on
7609 current_architecture, if OBJ_AOUT.
7610 (md_parse_option): Remove obsolete reference to omagic.
7611
c17cd709
ILT
7612Thu Oct 14 16:51:00 1993 Ian Lance Taylor ([email protected])
7613
dd3f1f76
ILT
7614 * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
7615 (s_option): Ignore .option O* and .option pic*.
7616 (s_ent): Skip whitespace between symbol and optional digit.
dff60b7d 7617 (my_getSmallExpression): Handle ($xx) correctly: assume 0($xx).
dd3f1f76 7618
54508138
ILT
7619 * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape
7620 characters in state 6.
7621 * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are
7622 hexidecimal digits.
7623
c17cd709
ILT
7624 * config/tc-i386.c (md_apply_fix_1): Make cross segment calls work
7625 for ELF by hacking around bizarre bfd_perform_relocation behaviour
7626 that I don't dare change.
7627
ad660eb1
ILT
7628Thu Oct 14 11:33:25 1993 Michael Meissner ([email protected])
7629
7630 * config/tc-i386.c: (md_begin): Do not zero static arrays. Don't
7631 call strchr for each character to see if it is a special char,
7632 instead add a second loop over special_chars. Set alignment
7633 of text, data and bss sections to 4.
7634 (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be
7635 used again.
7636 (reloc): Don't return 8 and 16 bit non-PC relative relocations on
7637 ELF, since the ELF object format does not have these type of
7638 relocations. Change the abort into as as_bad and return
7639 BFD_RELOC_NONE to silence compiler warnings.
7640 (md_assemble): Keep track of the instruction size. Allow white
7641 space between the $ and the constant for compatibility with older
7642 gases and other assemblers.
7643 (i386_operand): Skip spaces between $ and expression.
7644 (tc_gen_reloc): Don't allow anything but 32 bit relocations on
7645 ELF. Convert abort into an as_bad and assert into as_fatal.
7646
132239bf
KR
7647Wed Oct 13 16:50:55 1993 Ken Raeburn ([email protected])
7648
7649 * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: If
7650 sub_symbolP is in the current segment, convert to a PC-relative
7651 fixup and discard the symbol.
7652
b7cbb59f
ILT
7653Wed Oct 13 14:00:02 1993 Ian Lance Taylor ([email protected])
7654
463b1851
ILT
7655 * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbol
7656 for st_StaticProc just like st_Proc.
7657
b7cbb59f
ILT
7658 * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUT
7659 so that OBJ_BOUT doesn't forget to adjust all the fragments in the
7660 .bss section.
7661
f2a663d3
ILT
7662Tue Oct 12 17:26:15 1993 Ian Lance Taylor ([email protected])
7663
7664 * config/tc-mips.c: If OBJ_ELF, include elf/mips.h.
7665 (mips_regmask_frag): New static variable, if OBJ_ELF.
7666 (md_begin): If OBJ_ELF, create .reginfo section and set
7667 mips_regmask_frag to a frag.
7668 (mips_elf_final_processing): New function, if OBJ_ELF. Set
7669 mips_regmask_frag to register mask information.
7670 * config/tc-mips.h (elf_tc_final_processing): New macro, defined
7671 if OBJ_ELF.
7672
99024047
KR
7673Tue Oct 12 03:33:26 1993 Ken Raeburn ([email protected])
7674
2145a183
KR
7675 * messages.c (as_fatal): Use myname when printing messages.
7676
99024047
KR
7677 * config/tc-i960.c (md_begin): Use null pointer, not empty string,
7678 as initial "return" value in case hashing isn't needed.
7679
7680 * config/tc-a29k.c (md_atof): Return null, not empty string, on
7681 success.
7682 * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof),
7683 config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof),
7684 config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof),
7685 config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto.
7686
7687Mon Oct 11 16:46:31 1993 Steve Chamberlain ([email protected])
2dd45209
SC
7688
7689 fix for pr 3571
7690 * config/tc-h8300.c (get_specific): Special action if 8 bit
7691 address seen. (check_operand): Don't complain if truncating top
7692 bits of an 8 bit address. (build_bytes): Allow an immediate and
7693 an absolute in the same insn.
7694
f37449aa
ILT
7695Mon Oct 11 17:18:51 1993 Ian Lance Taylor ([email protected])
7696
7697 * write.c (write_contents): Don't crash if seginfo is NULL.
7698
7699 * config/obj-ecoff.c (ecoff_frob_file): Write out register masks
7700 by modifying .reginfo section, not by directly modifying BFD
7701 backend data.
7702
fec552ce
DZ
7703Mon Oct 11 14:11:32 1993 david d `zoo' zuhn ([email protected])
7704
7705 * config/ho-sunos.h: remove extern time declaration
7706
8d3be803
KR
7707Mon Oct 11 16:14:43 1993 Ken Raeburn ([email protected])
7708
7709 * messages.c (as_fatal): Do mention that it's the assembler that
7710 got the fatal error.
7711
88225433
ILT
7712Fri Oct 8 14:09:35 1993 Ian Lance Taylor ([email protected])
7713
1aa6938e
ILT
7714 * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to
7715 hold register masks.
7716 (md_begin): Initialize them to zero.
7717 (append_insn): Update mips_gprmask and mips_cprmask. Also add
7718 register variables pinfo and prev_pinfo.
7719 * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare.
7720 * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask
7721 and cprmask from mips_gprmask and mips_cprmask.
7722
88225433
ILT
7723 * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF.
7724 * config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF.
7725 (various): Change all references to GP references to apply if
7726 GPOPT, not if OBJ_ECOFF.
7727 (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata
7728 instead of .rdata. If OBJ_ELF, set section flags for .rodata and
7729 .sdata sections.
7730 (s_frame, s_loc, s_mask): Comment out entire functions, rather
7731 than just body. They're not used anyhow.
7732 * configure.in: Set cpu_type to mips for mips*. Accept
7733 mips-*-elfl* and mips-*-elf*.
7734
17a0da33
ILT
7735Thu Oct 7 18:36:29 1993 Michael Meissner ([email protected])
7736
7737 * config/obj-elf.c (obj_elf_common): Allow the alignment field to
7738 not be specified.
7739
80aab579
ILT
7740Wed Oct 6 13:01:34 1993 Ian Lance Taylor ([email protected])
7741
abdad6bc
ILT
7742 * config/tc-mips.c (cons_fix_new_mips): New function. Turn
7743 BFD_RELOC_64 into BFD_RELOC_32.
7744 * config/tc-mips.h (TC_CONS_FIX_NEW): Define.
7745 (cons_fix_new_mips): Declare.
7746
80aab579
ILT
7747 Changes to let cons handle bignums like general expressions.
7748 * expr.h (expressionS): New field X_unsigned.
7749 * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for
7750 unary minus case.
7751 (expr) Fix typo resultP to right if missing operand. Set
7752 X_unsigned to 1 when building new expression.
7753 * read.c (potable): Make "octa" and "quad" call cons, not
7754 big_cons.
7755 (cons): Handle bignums. If given an O_constant (small integer) to
7756 fill a big space, turn it into a bignum.
7757 (parse_bitfield_cons): Set X_unsigned field.
7758 (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons):
7759 Removed.
7760 * read.h (big_cons): Remove prototype.
7761 * symbols.c (resolve_symbol_value): Don't give a warning if a
7762 symbol in expr_section can not be resolved.
7763 (S_SET_VALUE): Clear X_unsigned.
7764 * write.c (write_object_file): If resolve_symbol_value failed on a
7765 symbol we are writing out, give a warning.
7766 * config/tc-h8500.c (parse_reglist): Set X_unsigned.
7767 * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to
7768 call pa_cons, not pa_big_cons.
7769 (pa_big_cons): Remove.
7770 * config/tc-hppa.h (pa_big_cons): Remove declaration.
7771 * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons,
7772 not big_cons.
7773
7774Tue Oct 5 10:53:36 1993 david d `zoo' zuhn ([email protected])
7775
7776 * doc/as.texinfo (Copying): new node, to handle the recent changes
7777 in the texinfo/gpl.texinfo file
7778
4f5666c5
ILT
7779Mon Oct 4 17:10:15 1993 Ian Lance Taylor ([email protected])
7780
7781 * read.c (big_cons): Handle "0" correctly.
7782
7783 * config/tc-mips.c (md_begin): Set target_big_endian correctly.
7784
8208ab5a
KR
7785Mon Oct 4 15:37:57 1993 Ken Raeburn ([email protected])
7786
7787 * config/tc-m68k.c (m68k_ip): Mode 7.3 operand using PC should
7788 have pc-relative fixup.
7789 (md_parse_option): Move "-k" case down near "-pic" case.
7790
31909d40
KR
7791 * configure.in: Alphabetize list of cpu type alternatives. Enable
7792 OS values of "linux*elf*" and "linux*coff*" to select those
7793 formats, with linux emulation. Don't bother checking for upper-
7794 or mixed-case versions of "ose".
7795
8208ab5a
KR
7796Thu Sep 30 11:05:35 1993 Steve Chamberlain ([email protected])
7797
7798 * config/z8k.c (md_pseudo_table): add "unseg".
7799
6cc87fbb
RP
7800Wed Sep 29 16:15:11 1993 K. Richard Pixley ([email protected])
7801
7802 * config/m88k-opcode.h (m88k_opcodes): correct a few mistakes
7803 found while extending the dissassembler.
7804
8f3956b3
SS
7805Tue Sep 28 12:02:04 1993 Stan Shebs ([email protected])
7806
7807 * configure.in: Split i386 LynxOS out from other coff targets,
7808 add a specific Lynx emulation.
7809 Add m68k LynxOS target.
7810 * config/tc-i386.c: Define specific Lynx target format.
7811 * config/tc-m68k.c: Define specific Lynx target format.
7812 * config/te-lynx.h: New file.
7813
7814 * config/obj-coffbfd.h: Don't set TARGET_FORMAT to be
7815 "coff-{i386,m68k}" if TARGET_FORMAT already defined.
7816 (INIT_STAB_SECTION): Define.
7817 * config/obj-coffbfd.c: Include <time.h>.
7818 (write_object_file): Look for .stab sections and call
7819 adjust_stab_section.
7820 (adjust_stab_section): New function, fills in the first symbol
7821 of a stab section with number of symbols and string table size.
7822 (obj_coff_init_stab_section): New function, creates the initial
7823 symbol for a stab section.
7824
43029a8f
KR
7825Mon Sep 27 15:21:55 1993 Ken Raeburn ([email protected])
7826
7827 * config/atof-vax.c (md_atof): Return null on success instead of
7828 empty string.
7829 * config/atof-tahoe.c (md_atof): Ditto.
7830 * read.c (float_cons): Expect a null pointer for success, not an
7831 empty string.
7832
7833 * hash.c (hash_insert, hash_jam, hash_grow): Return null pointer
7834 on success, instead of empty string. All callers changed.
7835
7836 * config/tc-vax.c: Use PARAMS in declarations.
7837 (vip_op): Use NULL instead of empty string for success in error
7838 and warning fields.
7839
b7318ac4
KR
7840Sun Sep 26 23:45:29 1993 Ken Raeburn ([email protected])
7841
b9790da8
KR
7842 * expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of two symbols
7843 in different defined segments.
7844
b7318ac4 7845 * write.c (relax_segment): Localize "aim" variable. If
132239bf 7846 DIFF_EXPR_OK, don't impose checks on symbol segment types.
b7318ac4
KR
7847 (fixup_segment) [DIFF_EXPR_OK]: If sub_symbolP is in the current
7848 segment, convert to a PC-relative fixup and discard the symbol.
7849
7850 * config/tc-m68k.c (flag_want_pic): New variable, mostly ignored.
7851 (md_parse_option) [TE_SUN3]: Set it for "-k".
7852 (m68k_ip): Generate proper fixup for mode 7.3.
7853 * config/tc-m68k.h (DIFF_EXPR_OK): Define.
7854
c996b199
KR
7855Sat Sep 25 05:08:19 1993 Ken Raeburn ([email protected])
7856
7857 * config/tc-m68k.c (struct m68k_incant, getone, gettwo): Moved
7858 earlier in the file.
7859 (insop, add_exp): Now defined as functions, for readability.
7860 (insop): Now takes two arguments; callers changed.
7861
6d6b97b7
RP
7862Fri Sep 24 12:37:59 1993 K. Richard Pixley ([email protected])
7863
58f3e8a9
RP
7864 * config/tc-m88k.c (get_o6): new function.
7865 (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg,
7866 get_vec9, getval, get_pcr, calcop, match_name): make static and
7867 prototype.
7868 (s_file): remove extraneous forward decl.
7869 (md_begin): add const to retval decl.
7870 (calcop): cope with instructions without arguments. Handle 'o'
7871 type argument, the o6 field of the prot insn.
7872 (md_estimate_size_before_relax): return a dummy value.
7873
6d6b97b7
RP
7874 * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
7875 in bits 10 through 7. flt.[dxs]s requires an r register in the
7876 second argument. New instruction lda.x. New instruction muls
7877 (alias for mul).
7878
7879Fri Sep 24 13:43:30 1993 Ian Lance Taylor ([email protected])
7880
7881 * Makefile.in (distclean): Recurse like clean.
7882 * doc/Makefile.in (distclean): New target.
7883
7884 * config/tc-mips.c (md_begin): Set BFD architecture and machine
7885 based on MIPS ISA level.
7886
7887Thu Sep 23 17:58:58 1993 Ian Lance Taylor ([email protected])
7888
7889 * as.c (main): "exhausted", not "exhuasted".
7890
7891 * struc-symbol.h (struct symbol): Add sy_used_in_reloc field.
7892 * write.c (adjust_reloc_syms): Set sy_used_in_reloc.
7893 (write_object_file): Never strip symbols with sy_used_in_reloc
7894 set.
7895
7896 * config/obj-elf.c (obj_elf_section): Rewrote to handle both
7897 Solaris and SVR4 style .section pseudo-ops.
7898 (obj_elf_ident): Set SEC_READONLY for .comment section.
7899 * config/tc-sparc.c (md_apply_fix): If this is ELF, and we're
7900 generating a reloc, don't apply a fix.
7901
6110df28
KR
7902Thu Sep 23 13:16:58 1993 Ken Raeburn ([email protected])
7903
7904 * config/obj-coffbfd.c (relax_align): Now static.
7905
9bd0d649
ILT
7906Mon Sep 20 19:23:35 1993 Ian Lance Taylor ([email protected])
7907
7908 * read.c (get_stab_string_offset): Make non-static. Make
7909 arguments const. Don't align strings to 4 byte boundaries.
7910 * read.h: Declare get_stab_string_offset.
7911 * config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as
7912 SEC_LOAD for progbits section.
7913 (obj_elf_init_stab_section): New function.
7914 (adjust_stab_sections): Add casts to avoid warnings.
7915 * config/obj-elf.h (INIT_STAB_SECTION): Call
7916 obj_elf_init_stab_section.
7917 (OBJ_PROCESS_STAB): Removed definition.
7918
80903ca6
ILT
7919Fri Sep 17 18:12:34 1993 Ian Lance Taylor ([email protected])
7920
7921 * config/obj-elf.h (S_GET_SIZE): Define.
7922 (obj_frob_forward_symbol): Define.
7923 * config/tc-i386.c (line_comment_chars): Initialize in all cases.
7924
13998021
ILT
7925Thu Sep 16 14:23:08 1993 Ian Lance Taylor ([email protected])
7926
9bd0d649 7927 * tc.h: Declare tc_gen_reloc differently depending upon
13998021
ILT
7928 RELOC_EXPANSION_POSSIBLE.
7929 * config/obj-elf.c (obj_elf_section): Only set flags when first
7930 creating the section.
7931
7932Wed Sep 15 12:15:53 1993 Ian Lance Taylor ([email protected])
7933
7934 * config/tc-mips.c (append_insn): Don't swap a trap instruction
7935 with a branch.
7936
4f0bccc7
ILT
7937Tue Sep 14 13:31:04 1993 Ian Lance Taylor ([email protected])
7938
90397ff8
ILT
7939 * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
7940 set previous_section and previous_subsection and then call s_data
7941 and s_text, respectively.
7942 (obj_pseudo_table): Add data and text.
7943 (obj_elf_section): Add SEC_LOAD to default initialization of
7944 flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as
7945 SEC_ALLOC for "alloc" string. Don't bother trying to find the
7946 section; just use subseg_new.
7947
4f0bccc7
ILT
7948 * read.c (change_to_section): Removed. This is now done by
7949 subseg_new.
7950 (get_stab_string_offset): Rearranged somewhat. Create the section
7951 using subseg_new. Store the string index in seg_info, rather than
7952 in a static variable. Force the first string to be empty. Use
7953 frag_more rather than FRAG_APPEND_1_CHAR.
7954 (s_stab_generic): Rewrote.
7955 * subsegs.h (segment_info_type): Added stabu union.
7956 * subsegs.c (subseg_new): Initialize stab_string_size to 0.
7957 * config/obj-aout.c: Don't include aout/stab_gnu.h.
7958 (obj_aout_stab, obj_aout_desc): Removed.
7959 (obj_pseudo_table): Removed desc and stabX entries.
7960 * config/obj-bout.c: Same changes as config/obj-aout.c.
7961 * config/obj-bout.h (S_SET_TYPE): Define.
7962 (tc_bout_fix_to_chars): Declare.
7963 * config/obj-coff.c (obj_coff_stab): Removed.
7964 (obj_pseudo_table): Removed desc and stabX entries.
7965 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
7966 * config/obj-coffbfd.c (current_stab_symbol): Removed.
7967 * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
7968 n_other, n_desc and n_value fields.
7969 (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
7970 (MAKE_STAB_SYMBOL): Removed.
7971 * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
7972 Changed arguments and removed parsing code.
7973 (obj_pseudo_table): Removed stabX entries.
7974 * config/obj-ecoff.h (ecoff_stab): Declare.
7975 (OBJ_PROCESS_STAB): Define.
7976 * config/obj-elf.c: Don't include aout/stab_gnu.h.
7977 (obj_elf_stab, obj_elf_xstab, obj_elf_desc,
7978 elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
7979 Removed.
7980 (obj_pseudo_table): Removed desc, stabX and xstabs entries.
7981 (obj_elf_version): Use subseg_new, not bfd_make_section. Don't
7982 set SEC_LOAD for .note section.
7983 (adjust_stab_sections): Get frag pointer from seg_info, rather
7984 than looking through frags.
7985 * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
7986 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
7987 Define.
7988 * config/obj-vms.c (obj_aout_stab): Removed.
7989 (obj_pseudo_table): Removed stabX entries.
7990 * config/obj-vms.h (S_SET_TYPE): Define.
7991
7992 * as.h: Declare listing.
7993 * read.c: Don't declare listing.
7994 (emit_expr): Cast fix_new_exp argument.
7995 (parse_bitfield_cons): Correct printf format.
7996 * symbols.c (symbol_new): Add cast to avoid warning.
7997 * write.h: Declare text_last_frag and data_last_frag.
7998 * config/obj-bout.c (obj_bout_line): Added dummy argument.
7999 * config/obj-coffbfd.c: Add some casts to avoid warnings.
8000 * config/tc-a29k.c: Likewise.
8001 * config/tc-i960.c: Likewise. Also fully bracket structure
8002 initializations, fix printf formats, and remove unused variables.
8003
604633ae
ILT
8004Mon Sep 13 16:48:38 1993 Ian Lance Taylor ([email protected])
8005
8006 * read.c (s_desc): Only compile and use if S_SET_DESC is defined.
8007 * struc-symbol.h: Declare verify_symbol_chain and
8008 verify_symbol_chain_2 even if not SYMBOLS_NEED_BACKPOINTERS.
8009 * symbols.c (verify_symbol_chain): Removed useless expression.
8010 * write.c (headers, the_object_file): Only use if not
8011 BFD_ASSEMBLER and not BFD.
8012 (fixup_segment, cvs_frag_to_fill): Only use if BFD_ASSEMBLER or
8013 not BFD.
8014 (merge_data_into_text): Only use if BFD_ASSEMBLER or (not BFD and
8015 not OBJ_AOUT).
8016 * write.h: Declare relax_segment.
8017 * config/obj-coffbfd.c (stack_pop, stack_push, stack_init): Made
8018 static.
8019 (stack_top): Commented out, since it's not used.
8020 Fixed up pseudo-op functions to take an ignored int argument.
8021 (size_section): Added default BAD_CASE to switch.
8022 Changed bzero calls to memset.
8023 * config/obj-coffbfd.h (S_IS_LOCAL): Call strchr on S_GET_NAME
8024 (s), not on s itself.
8025 * config/tc-a29k.c (s_use): Take ignored int argument. Only
8026 define if OBJ_COFF is not defined.
8027 * config/tc-i386.c: (fits_in_signed_byte, smallest_imm_type): Make
8028 argument signed again.
8029 * config/tc-m68k.c (s_bss, s_even, s_proc): Take ignored int
8030 argument.
8031 (m68k_ip): Fully bracket initialization of archs.
8032 Correct several formats for __LINE__ to be %d rather than %s.
8033 (init_table): Fully bracket initialization.
8034 Cast values larger than 0x7f assigned to fr_opcode to char.
8035
8036 * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
8037 Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
8038 section name, and subseg_set always takes a segT. Changed all
8039 callers as appropriate.
69cb5925 8040 * config/obj-coffbfd.c (change_to_section): Renamed to
604633ae
ILT
8041 obj_coff_add_segment. Corrected. Made callers use subseg_new.
8042 * config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
8043 Define.
8044
54e3e909
DE
8045Mon Sep 13 13:15:03 1993 Doug Evans ([email protected])
8046
8047 * config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
8048
58d4951d
ILT
8049Fri Sep 10 11:22:08 1993 Ian Lance Taylor ([email protected])
8050
8051 * config/obj-elf.h (S_SET_SIZE): Actually set the size.
8052
8053 Gcc lint.
54e3e909 8054 * Added a number of casts to function calls.
58d4951d
ILT
8055 * app.c (do_scrub_begin), as.c (main), expr.c (integer_constant,
8056 operand, expr), read.c (read_begin, HANDLE_CONDITIONAL_ASSEMBLY,
8057 read_a_source_file, s_align_bytes, demand_empty_rest_of_line,
8058 ignore_rest_of_line, big_cons, is_it_end_of_statement, s_ignore),
8059 read.h (is_name_beginner, is_part_of_name), config/obj-elf.c
8060 (obj_elf_section), config/tc-i386.c (parse_register),
8061 config/tc-sparc.c (isoctal, s_proc): Cast char
8062 array indices to unsigned char.
54e3e909
DE
8063 * app.c (process_escape): Make static. Add prototype. Change
8064 argument from char to int.
58d4951d
ILT
8065 * as.c: Include output-file.h for prototypes. Comment out unused
8066 function got_sig.
8067 * Makefile.in (as.o): Depend on output-file.h.
8068 * as.h (BAD_CASE): Cast val argument to long, and use %ld.
54e3e909
DE
8069 (pseudo_typeS): Add prototype to poc_handler field.
8070 (print_version_id): Add prototype.
8071 (xmalloc, xrealloc): Change size arguments to unsigned long.
8072 (do_scrub_next_char): Add prototypes for function arguments.
8073 (had_errors, had_warnings, scrub_from_file): Remove duplicate
8074 declarations.
8075 * atof-generic.c (atof_generic): Make size variables unsigned.
58d4951d 8076 * cond.c (ignore_input): Removed unused local variable ptr.
54e3e909
DE
8077 * expr.c (floating_constant, integer_constant): Make static. Add
8078 prototypes.
8079 * flonum-copy.c (flonum_copy): Make size variables unsigned.
58d4951d 8080 * frags.h: Add prototype for frag_init.
54e3e909
DE
8081 * hash.h, hash.c: Change hash values from char * to PTR, make hash
8082 strings const, make returned error strings const char *. Added
8083 prototypes for functions.
8084 * input-file.h, input-file.c (input_file_buffer_size): Return
8085 unsigned int.
8086 * input-scrub.c (buffer_length): Make unsigned.
8087 (input_scrub_push, input_scrub_pop): Make static.
58d4951d
ILT
8088 * listing.c (list_symbol_table): Cast sprintf argument to unsigned
8089 long and use %lx. Print name of segment rather than address of
8090 structure.
54e3e909
DE
8091 (listing_list, listing_title): Change argument to int.
8092 (listing_eject, listing_flags, listing_psize): Add int argument.
8093 * listing.h: Corresponding declaration changes.
8094 * obj.h (obj_emit_symbols): Rename prototype argument to avoid
8095 shadowing.
58d4951d 8096 * read.h: Change get_absolute_expression prototype to return
54e3e909
DE
8097 offsetT. Add prototype for next_char_of_string. Various
8098 prototype changes.
58d4951d 8099 * read.c: Remove prototype for next_char_of_string.
54e3e909
DE
8100 (pobegin): Make errtxt const. Make new_length, tmp_len and num
8101 unsigned.
8102 (s_abort, s_align_ptwo, s_comm, s_data, s_app_line, s_fill,
8103 s_globl, s_lsym, s_org, s_set, s_text, s_desc): Add int argument.
8104 Change all callers.
58d4951d
ILT
8105 (s_comm): Change temp from valueT to offsetT. Cast to long when
8106 printing and use %ld (only for error messages anyhow).
54e3e909
DE
8107 (s_long, s_int): Remove unused functions.
8108 (cons): Change argument to int.
58d4951d
ILT
8109 (emit_expr): Use %lx when printing longs.
8110 (get_absolute_expression): Return offsetT, not long.
8111 (get_stab_string_offset): Comment out unless
8112 SEPARATE_STAB_SECTIONS.
8113 (s_stab_generic): Remove unused offset. Define seg_is_new only
8114 if SEPARATE_STAB_SECTIONS. Use toP only in local block.
54e3e909 8115 * struc-symbol.h (verify_symbol_chain_2): Add prototype.
58d4951d 8116 * symbols.c: Remove nested comment.
54e3e909 8117 (symbol_new): Rename value to valu.
58d4951d 8118 (colon): Use %ld and cast to long in error message.
54e3e909
DE
8119 * symbols.h: Remove duplicate verify_symbol_chain declaration.
8120 * tc.h: Remove unused md_emit_relocations declaration.
8121 (tc_gen_reloc): Add declaration.
58d4951d
ILT
8122 * write.c (cvt_frag_to_fill): Change first argument name depending
8123 on BFD_ASSEMBLER.
54e3e909
DE
8124 (write_relocs): Remove unused offset, frags. Remove tc_gen_reloc
8125 declarations. Make n unsigned.
8126 (write_contents): Remove unused i, n, relocs, fixp. Rename frags
8127 to f to avoid shadowing.
58d4951d
ILT
8128 (write_object_file): Define fragP only if not BFD_ASSEMBLER or not
8129 WORKING_DOT_WORD. Remove unused keep. Only declare punt and
54e3e909 8130 punt_it if they will be used. Make i and n unsigned.
58d4951d 8131 (fixup_segment): Cast to long and use %ld in error message.
54e3e909 8132 * xmalloc.c (xmalloc, xrealloc): Make size argument unsigned.
58d4951d
ILT
8133 * config/obj-aout.h: Remove nested comment. Add prototype for
8134 obj_aout_frob_symbol.
54e3e909
DE
8135 (obj_aout_line, obj_aout_desc): Add int argument.
8136 * config/obj-ecoff.c: Changed build routines to use an unsigned
8137 offset.
8138 (add_string): Make len unsigned long.
58d4951d
ILT
8139 (obj_ecoff_stab): Use %lu in error message.
8140 * config/obj-elf.c (obj_elf_common): Comment out unused label
8141 allocate_bss.
8142 (obj_elf_frob_symbol): Return 0 (currently broken).
54e3e909
DE
8143 (obj_elf_desc, obj_elf_version, obj_elf_size, obj_elf_type,
8144 obj_elf_ident, obj_elf_weak, obj_elf_local, obj_elf_common,
8145 obj_elf_line, obj_elf_previous): Add int argument.
8146 (obj_elf_write_symbol_p): Make static.
8147 * config/obj-elf.h (obj_elf_write_symbol): Add prototype.
58d4951d
ILT
8148 * config/tc-hppa.h: Remove declarations of functions declared in
8149 read.h.
54e3e909
DE
8150 * config/tc-i386.c (ENCODE_RELAX_STATE): Cast to relax_substateT.
8151 (s_bss): Add int argument.
8152 (fits_in_signed_byte, smallest_imm_type): Make argument unsigned.
8153 (dummy): Remove unused function.
8154 (md_assemble): Rename local o to op to avoid shadowing.
8155 (tc_gen_reloc): Rename local reloc to rel to avoid shadowing.
8156 * config/tc-m68k.c (s_data1, s_data2): Add int argument.
58d4951d
ILT
8157 * config/tc-mips.c (mips_ip, md_apply_fix): Cast to long and use
8158 %ld in error messages.
54e3e909
DE
8159 * config/tc-sparc.c: Remove duplicate declarations.
8160 (getExpression): Rewrite condition to avoid empty conditional
8161 body.
8162 (s_reg, s_proc, s_reserve, s_common, s_seg, s_xword): Add int
8163 argument.
58d4951d 8164
892a3ff1
KR
8165Thu Sep 9 17:10:00 1993 Ken Raeburn ([email protected])
8166
8167 Changes from Jeff Law:
8168
8169 * config/tc-hppa.c (md_assemble): Fix typo.
132239bf 8170 (pa_ip): Delete unused variables and labels. Do not check for
892a3ff1
KR
8171 unsigned values being < 0, it can't happen.
8172 (is_same_frag): Return a value in recursive call case.
8173 (pa_callinfo): Delete unused variables and labels.
8174 (pa_comm): Likewise.
8175 (pa_copyright): Likewise.
8176 (pa_export): Likewise.
8177 (pa_import): Likewise.
8178 (pa_param): Likewise.
8179 (pa_space): Likewise.
8180 (pa_subspace): Likewise.
8181
abdd08c9
ILT
8182Thu Sep 9 15:05:34 1993 Ian Lance Taylor ([email protected])
8183
8184 * read.c (get_stab_string_offset, s_stab_generic): If
8185 BFD_ASSEMBLER, call subseg_set rather than subseg_new.
8186
414b2c8f
ILT
8187Wed Sep 8 15:09:17 1993 Ian Lance Taylor ([email protected])
8188
8189 * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
8190 default flag values.
8191
4064305e
SS
8192Tue Sep 7 10:22:52 1993 Stan Shebs ([email protected])
8193
1531386b
SS
8194 * read.c: (change_to_section): Don't include body if not MANY_SECTIONS.
8195
4064305e
SS
8196 * read.c: (s_stab, s_xstab, s_desc): New functions to parse
8197 various stab-related directives.
8198 * read.h: (s_stab, s_xstab, s_desc): New function prototypes.
8199 * write.c: (merge_data_into_text): Fix ifdef tangle.
8200 * config/obj-coffbfd.c (current_stab_symbol): Fake symbol
8201 for stab reader to use.
8202 * config/obj-coffbfdh.h (obj_symbol_type): Added fields for
132239bf 8203 stab reader, macros to access.
4064305e 8204
81b407c9
KR
8205Fri Sep 3 16:44:03 1993 Ken Raeburn ([email protected])
8206
fd4b7c25
KR
8207 * config/obj-elf.h (elf_symbol): No longer special-cased on
8208 sparcv9, since elf_symbol_type is now independent of size.
8209
81b407c9
KR
8210 * config/obj-elf.h (elf_symbol): Fixed name of elf_symbol_type.
8211
8212 * config/tc-hppa.h (struct default_subspace_dict, struct
8213 default_space_dict): Field "sort" is now unsigned char.
8214
8215 * config/tc-hppa.c (pa_def_subspaces, pa_def_spaces): Align
8216 columns for easier reading.
8217 (bcmp, index): Deleted USG-specific definitions. Should be dealt
8218 with in ho-*.h, or in libiberty. Changed mention of index to
8219 strchr.
8220 (label_symbolP, label_symbol_defined, callinfo_found,
8221 within_entry_exit, exit_processing_complete, within_procedure,
8222 pa_def_subspaces, pa_def_spaces, pa_pseudo_op_moves_pc,
8223 label_symbols_rootP, pa_get_label, pa_label_is_defined,
8224 pa_undefine_label): Now static.
8225 (movers): Now const, in addition to pointing to const data.
8226 * config/tc-hppa.h (label_symbolS_rootP, pa_get_label,
8227 pa_label_is_defined, pa_undefine_label, pa_pseudo_op_moves_pc):
8228 Delete declarations.
8229
8230 Merged more changes from Jeff Law and Pete Hoogenboom:
8231
8232 * config/tc-hppa.c (pa_def_subspaces, pa_def_subspaces): Remove
8233 entries for .stab and .stabstr.
8234
8235 * config/obj-elf.c: (elf_stab_symbol_string): Set the
8236 SEC_LOAD attribute for the .stabstr section.
8237 (obj_elf_stab_generic): Set the SEC_LOAD attribute for the
8238 .stab section.
8239 (obj_elf_stab_generic): Change '#if 1' to '#if 0'.
8240 (obj_elf_stab_generic): Incorrect byte count on call to
8241 md_number_to_chars function.
8242
8243 * config/tc-hppa.c (hppa_tc_symbol): Static functions need
8244 argument relocation bits too.
8245
8246 * config/tc-hppa.c (pa_stringer): Correctly handle escaping
8247 characters which should appear unaltered in the output string (for
8248 example an escaped double-quote).
8249
8250 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Always
8251 initialize name.
8252 (pa_parse_neg_cmpsub_cmpltr): Likewise.
8253 (pa_parse_nonneg_add_cmpltr): Likewise.
8254 (pa_parse_neg_add_cmpltr): Likewise.
8255
8256 * config/tc-hppa.h (parse_cons_expression_hppa): Remove prototype
8257 for now.
8258 (cons_fix_new_hppa): Likewise.
8259 * config/tc-hppa.c (md_apply_fix): Fix type of valp to match
8260 prototype.
8261
8262 * config/tc-hppa.c: Include libhppa.h.
8263
132239bf 8264 * config/tc-hppa.h: Delete extern declarations of functions
81b407c9
KR
8265 found in libhppa.h.
8266
8267 * config/tc-hppa.c (pa_space): Rework to avoid unwanted #ifdef
8268 OBJ_ELF conditionals.
8269 * config/tc-hppa.h (LOCAL_LABEL): Correctly identify local labels
8270 on the PA.
8271
1849d646
ILT
8272Thu Sep 2 10:43:57 1993 Ian Lance Taylor ([email protected])
8273
ff3a5c18
ILT
8274 * config/tc-mips.c (macro_build): Accept 'z', and ignore it.
8275 (macro): Use "z,s,t" for div instructions to match corresponding
8276 change in opcode table.
8277 (mips_ip): Added 'z'--must be zero register.
1849d646 8278
e96d50d0
KR
8279Wed Sep 1 15:56:42 1993 Ken Raeburn ([email protected])
8280
8281 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Declare
8282 tc_gen_reloc correctly.
8283
8284 * configure.in: Use "case" instead of "if" when possible. Rewrote
8285 Makefile editing to reduce work done. Treat "hppa*" as "hppa".
8286
56607c4e
RP
8287Wed Sep 1 12:19:07 1993 K. Richard Pixley ([email protected])
8288
8289 * config/obj-coffbfd.c (obj_coff_section): add 'd' as an alias for
8290 section type of data. 'd' seems to be used for m88k.
8291
8292Wed Aug 25 22:33:22 1993 Ian Lance Taylor ([email protected])
8293
8294 * config/tc-mips.c (mips_align, s_stringer, s_cons, s_float_cons,
8295 s_mips_space): Set insn_label to NULL to avoid changing it at the
8296 next .align statement.
8297 (append_insn): Don't swap jal with instruction that sets the
8298 register that jal sets.
8299
37d719bb
RP
8300Wed Aug 25 16:15:57 1993 K. Richard Pixley ([email protected])
8301
8302 * configure.in: recognize m88110.
8303
28344993
KR
8304Wed Aug 25 13:37:46 1993 Ken Raeburn ([email protected])
8305
8306 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
8307 * config/tc-hppa.c (pa_build_unwind_subspace): SEC_ALLOC should
8308 not be on for .hppa_unwind.
8309 (md_pseudo_table): .PARAM and .param are valid pseudo-ops for GAS.
8310 (pa_param): New function to handle .PARAM directives.
8311 (pa_ip): Pass "isbranch" argument down to pa_parse_*_compltr
8312 functions. Handle '|' for movb; allow movb,n.
8313 (pa_parse_nonneg_cmpsub_cmpltr): Delete old useless
8314 version. Handle cases where no completer exists for
8315 comb,n or addb,n.
132239bf 8316 (pa_parse_neg_cmpsub_cmpltr): Handle cases where no
28344993
KR
8317 completer exists for comb,n or addb,n. Make logic
8318 mirror that of pa_parse_nonneg_cmpsub_cmpltr.
8319 (pa_parse_nonneg_add_cmpltr): Likewise.
8320 (pa_parse_neg_add_cmpltr): Likewise.
8321 * tc-hppa.h (pa_param): Declare.
8322
8323Tue Aug 24 15:41:35 1993 Ken Raeburn ([email protected])
8324
8325 * config/tc-hppa.c (hppa_tc_make_symextn_section): Now static.
8326 Added forward declaration.
8327
8328 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
8329
8330 * config/obj-elf.c (elf_frob_file): Arguments were incorrect on
8331 call to elf_tc_make_sections.
8332 (obj_elf_version): A .note section shouldn't have the SEC_ALLOC
8333 attribute.
8334
8335 * config/tc-hppa.c (hppa_tc_make_sections): Add some processing to
8336 handle symbol extension sections.
8337
8338 * config/tc-hppa.c (pa_build_symextn_section): New function to
8339 create a symbol extension section.
8340 (pa_export_args): Make call to pa_build_symextn_section.
8341 (hppa_tc_symbol, hppa_tc_make_sections,
8342 hppa_tc_make_symextn_section): New functions.
8343 * config/tc-hppa.h: Update elf_tc_symbol and elf_tc_make_sections
8344 macros.
8345
8346 * read.c (emit_expr): Place check for TC_CONS_FIX_NEW in the
8347 BFD_ASSEMBLER branch as well.
8348
8349 * config/tc-hppa.h: If ELF is the target object format, define
8350 some ELF- and hppa-specific types and constants.
8351
8352 * config/tc-hppa.c (getExpression): Fix a typo.
8353
8354 * read.c (read_a_source_file): Use TC_EQUAL_IN_INSN to determine
8355 if a `=' is part of an instruction.
8356 (read_a_source_file): Handle case where end-of-line markers are
8357 also used within instructions.
8358 * config/tc-hppa.h (TC_EQUAL_IN_INSN, TC_EOL_IN_INSN): Define.
8359
8360 * config/tc-hppa.c (md_apply_fix_1): Keep relocations for
8361 out-of-range branches/'calls using "bl" or calls which may need
8362 argument relocation stubs. Do not need/keep relocations for
8363 conditional branches.
8364 (elf_hppa_final_processing): Fix calculation of function size.
8365
8366 * config/obj-elf.c (obj_elf_version): Mark .note section as
8367 READONLY.
8368
8369 * config/tc-hppa.c (parse_cons_expression_hppa): Pass exp, not the
8370 address of exp, to expression.
8371 (pa_build_unwind_subspace): Turn SEC_HAS_CONTENTS flag on.
8372 (md_apply_fix_1): Delete unwanted comments.
8373 (process_exit): Symbols marking the end of a function are always
8374 BSF_LOCAL.
8375
8376 * config/tc-hppa.c: Include elf32-hppa.h from BFD tree.
8377 (pa_space): Declare and initialize gdb_section.
8378
8379 * config/obj-elf.c (elf_frob_file): Change
8380 elf_tc_final_processing_hook to elf_tc_final_processing.
8381
8382 * config/tc-hppa.c (fix_new_hppa): Fix argument list to match
8383 argument type declarations.
8384 (getExpression): Fix typo.
8385 (pa_export_args): Change elf_symbol_type to elf32_symbol_type.
8386 (elf_hppa_final_processing): Likewise. Name changed from
8387 elf_hppa_final_processing_hook.
8388 (start_symbol_root, start_symbol_last): Deleted.
8389
8390 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION): Fix typo.
8391
8392 * config/tc-hppa.h: Replace "symbolS" with "struct symbol" to
8393 avoid changing include ordering.
8394
8395 * config/tc-hppa.c (pa_ip, case 'y'): Handle just like 't'.
8396
6e8dda9c
ILT
8397Mon Aug 23 12:47:58 1993 Ian Lance Taylor ([email protected])
8398
8399 * config/tc-mips.c (set_at): Added unsignedp argument. Use
8400 load_register.
8401 (set_at_unsigned): Removed; changed callers to use set_at.
8402 (load_register): Removed unused ip argument. Changed callers.
8403 (append_insn): Don't swap branch and branch likely.
8404 (macro_build): Handle 'u'.
8405 (load_register): Handle 64 bit constants.
8406 (macro): Added M_DABS, removed M_ABSU. Numerous changes to
8407 support 64 bit constants.
8408 (mips_ip): Use hex constants in range checks for clarity.
8409 (md_number_to_chars): Support 8 byte values.
8410
1e35cd8f
RP
8411Fri Aug 20 16:50:59 1993 K. Richard Pixley ([email protected])
8412
8413 * config/tc-m88k.h: updated copyrights.
8414 (TC_CONS_RELOC): declare to be RELOC_32.
8415
8358c818
ILT
8416Fri Aug 20 11:16:44 1993 Ian Lance Taylor ([email protected])
8417
8418 * config/tc-mips.c (mips_isa): New static variable.
8419 (md_begin): Initialize mips_isa based on TARGET_CPU. Don't sanity
8420 check macros. Set text alignment and GP size here.
8421 (md_assemble): Don't set text alignment and GP size here.
8422 (append_insn): Don't insert NOPs for load delays if mips_isa >= 2.
8423 Use the right mask and shift for WRITE_FPR_T and WRITE_FPR_S. Add
8424 a NOP after a branch likely.
8425 (mips_emit_delays): Don't insert NOPS for load delays if mips_isa
8426 >= 2.
8427 (macro): Support r6000 and r4000 macros.
8428 (mips_ip): Check insn ISA level against mips_isa before using it.
8429 Added 'x' case for ignored register.
8430 (md_parse_option): Handle -mipsN and -mcpu=XX.
8431
c8d4cda1
KR
8432Fri Aug 20 01:26:52 1993 Ken Raeburn ([email protected])
8433
8434 * config/tc-i386.c (md_pseudo_table) [OBJ_ELF]: Handle ".zero".
8435
8436Thu Aug 19 12:15:18 1993 Ken Raeburn ([email protected])
8437
8438 * config/tc-sparc.c (s_local): Function moved and renamed...
8439 * config/obj-elf.c (obj_elf_local): ...to here.
8440 * config/tc-sparc.c (md_pseudo_table), config/obj-elf.c
8441 (obj_pseudo_table): Move handling of ".local".
8442
8443 * tc.h (md_parse_option): Don't declare if defined as a macro.
8444
8445 * config/tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as
8446 BFD_RELOC_NONE.
8447 (md_parse_option): New macro, converted from function.
8448 * config/tc-i386.c (md_parse_option): Function deleted.
8449 (comment_chars) [OBJ_ELF]: Include "/".
8450 (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/".
8451 (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler
8452 warning.
8453 (md_assemble, md_estimate_size_before_relax, md_create_long_jump):
8454 Call reloc for fix_new type, or use correct enumerator, instead of
8455 always using NO_RELOC.
8456 (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for
8457 tests for valid section.
8458 (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start
8459 address.
8460 (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with
8461 symbol, compensate for location of reloc.
8462 (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define
8463 to return zero.
8464
4915cac0
KR
8465Wed Aug 18 16:51:29 1993 Ken Raeburn ([email protected])
8466
8467 * config/obj-elf.c: Undef NO_RELOC before including aout/aout64.h.
8468 (obj_elf_weak): New function.
8469 (obj_pseudo_table): Handle ".weak".
8470 (obj_elf_section): If section directive includes a string, ignore
8471 it for now. Accept "progbits" flag.
8472 (obj_elf_type): Accept `@' before flag name.
8473
8474 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Get rid of `if(1)'
8475 condition.
8476 (fixup_segment) [BFD_ASSEMBLER]: Use bfd_is_com_section, rather
8477 than checking for bfd_com_section directly.
8478 (fixup_segment): Simplify range check.
8479 (fixup_segment) [OBJ_COFF && TC_I960]: Simplify cpp condition
8480 test.
8481
8482 * symbols.h (S_SET_WEAK): Declare.
8483 * symbols.c (S_SET_WEAK): New function.
8484 (S_SET_EXTERNAL, S_CLEAR_EXTERNAL): Don't bother with BSF_EXPORT,
8485 it's not a separate flag any more. Clear BSF_WEAK.
8486
8487 * read.c (potable): Treat "string" like "asciz".
8488
19ed8960
ILT
8489Wed Aug 18 15:30:29 1993 Ian Lance Taylor ([email protected])
8490
8491 * config/tc-mips.c (append_insn): Don't swap branch instructions
8492 if .set nobopt or .set volatile.
8493 (gp_reference): .lit8 and .lit4 are accessed via the GP register.
8494 (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD.
8495 (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point.
8496 * config/obj-ecoff.c: Renamed some variables to avoid shadow
8497 warnings.
8498
ae8c28f8
DZ
8499Mon Aug 16 14:16:02 1993 david d `zoo' zuhn ([email protected])
8500
19ed8960
ILT
8501 * config/obj-coff.h (S_IS_COMMON): add missing backslash
8502
ae8c28f8
DZ
8503 * configure.in (z8k-*-{coff,sim}): use coffbfd for this target
8504
0aa07269
ILT
8505Thu Aug 12 11:47:58 1993 Ian Lance Taylor ([email protected])
8506
8507 * config/tc-mips.c (mips_ip): Suggested by
8508 [email protected] (David Johnson): Don't accept symbolic
8509 names for 'E' and 'G' argument types (coprocessor registers) and
8510 don't warn if $1 is used on the coprocessor.
ae8c28f8 8511 (macro): Handle M_{L,S}WC{0,2,3}_AB correctly.
0aa07269
ILT
8512
8513Mon Aug 9 12:09:14 1993 Doug Evans ([email protected])
8514
8515 * read.c (emit_expr): Use BFD_RELOC_16 for 2-byte values.
8516 * config/tc-sparc.c (md_apply_fix, tc_gen_reloc): Handle
8517 BFD_RELOC_16.
8518 * config/tc-sparc.h (WORKING_DOT_WORD): Define.
8519
6a9cf6fa
KR
8520Mon Aug 9 13:36:22 1993 Ken Raeburn ([email protected])
8521
8522 * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER is
8523 defined or BFD is not.
8524 (relax_and_size_all_segments): Declare local variable fragP.
8525
b114e492
KR
8526Fri Aug 6 15:22:53 1993 Ken Raeburn ([email protected])
8527
8528 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_32): Fill in
8529 bytes with real values, not zeros.
8530
ac32a7e7
ILT
8531Fri Aug 6 10:57:59 1993 Ian Lance Taylor ([email protected])
8532
3d2330f8
ILT
8533 * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested)
8534 targets, using ecoff and mips-big.
8535
ac32a7e7
ILT
8536 * config/tc-mips.c (mips_ip): From [email protected] (David
8537 Johnson): Added case for 'C' for coprocessor instruction codes.
8538
273aa947
KR
8539Thu Aug 5 13:08:56 1993 Ken Raeburn ([email protected])
8540
fd4b7c25
KR
8541 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): Fill in
8542 bytes with real values, not zeros.
8543 (md_pseudo_table): Call cons for .uaxword.
8544
b114e492
KR
8545 * config/obj-elf.c (obj_pseudo_table): Handle ".8byte".
8546
273aa947
KR
8547 * read.c (emit_expr): Use BFD_RELOC_64 for 8-byte expressions.
8548
b114e492
KR
8549 * write.c (write_object_file): Test DEBUG_SYMS instead of DEBUG
8550 for verifying symbol chain.
8551 (merge_data_into_text, relax_and_size_all_segments): New
8552 functions, split out from write_object_file.
8553
273aa947
KR
8554Tue Aug 3 15:43:55 1993 Ken Raeburn ([email protected])
8555
8556 * config/obj-elf.c (obj_elf_stab_generic, in disabled code): If
8557 debug section is new, allocate an extra 12 bytes at its start. If
8558 ".stabs" type is N_SO, fill in filename symbol field of that first
8559 entry. Return early if "goof", to simplify later code slightly.
8560 (adjust_stab_sections): New function.
8561 (elf_frob_file): Apply adjust_stab_sections to each section.
8562
8563 * config/obj-elf.c (obj_elf_section, obj_elf_previous): No longer
8564 static.
8565 * config/obj-elf.h (obj_elf_section, obj_elf_previous): Declare.
8566 * config/tc-sparc.c (md_pseudo_table): Call them for "pushsection"
8567 and "popsection", and call cons for "uaword" and "uahalf".
8568
8569 * config/obj-elf.c (obj_elf_version): Use English in error
8570 messages.
8571
4573d186
ILT
8572Tue Aug 3 11:29:06 1993 Ian Lance Taylor ([email protected])
8573
8574 * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets the
8575 swapping routines and external structure sizes via the
8576 ecoff_backend information. No longer includes coff/mips.h.
8577
b4703fa6
ILT
8578Mon Aug 2 17:35:48 1993 Ian Lance Taylor ([email protected])
8579
4c7ff23d
ILT
8580 * config/obj-ecoff.c (get_tag): Save tag name in permanent memory
8581 and in hash_ptr->string.
8582
b4703fa6
ILT
8583 * app.c (do_scrub_next_char): Reset state to 0 after .appline if
8584 file name is not seen.
8585
fd4b7c25
KR
8586Mon Aug 2 11:51:41 1993 Ken Raeburn ([email protected])
8587
8588 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): New case,
8589 parallel to BFD_RELOC_32.
8590 (tc_gen_reloc): Accept BFD_RELOC_64.
8591
ced16de6
ILT
8592Thu Jul 29 22:21:28 1993 Ian Lance Taylor ([email protected])
8593
8594 * write.c: Don't use short int in a prototype.
ab4d34cd
ILT
8595
8596 * expr.c (operand): Make return value simply depend on contents of
8597 returned expression.
8598
b4703fa6
ILT
8599Thu Jul 29 18:38:37 1993 david d `zoo' zuhn ([email protected])
8600
8601 * configure.in: sparc*-aout and sparc*-vxworks are BFD assemblers
8602
0ccc65ec
DZ
8603Thu Jul 29 18:38:37 1993 david d `zoo' zuhn ([email protected])
8604
8605 * config/ho-sunos.h: remove some old function decls that conflict
8606 w/ ANSI, and which weren't needed anyway
8607
8608Wed Jul 28 16:34:55 1993 Ken Raeburn ([email protected])
8609
8610 * config/obj-elf.h (obj_frob_symbol): Renamed from tc_frob_symbol,
8611 and disabled since it breaks Ian's new symbol-value code.
8612
8613 * expr.c (integer_constant): Accept more digits if BFD64.
8614
7fe17970
ILT
8615Wed Jul 28 11:30:05 1993 Ian Lance Taylor ([email protected])
8616
8617 * config/tc-m68k.c (m68k_ip): If we have a normal constant when we
8618 expect a bignum, turn it into a bignum. Output extra zeroes
8619 before a short bignum, rather than after.
8620
0c2734c3
KR
8621Tue Jul 27 15:54:27 1993 Ken Raeburn ([email protected])
8622
8623 * symbols.c (symbol_new): Conditionalize verify_symbol_chain call
8624 on DEBUG_SYMS, not DEBUG.
8625 (symbol_remove): Likewise.
8626 (symbol_insert): Likewise.
8627
4fe45d22
ILT
8628Tue Jul 27 08:45:05 1993 Ian Lance Taylor ([email protected])
8629
8630 * config/tc-mips.c (mips_optimize): New static variable.
e9f108bc
ILT
8631 (append_insn): If mips_optimize == 0, always insert NOP
8632 instructions. If mips_optimize < 2, don't swap branches.
8633 (md_parse_option): If -Ox or -gx, set mips_optimize accordingly.
4fe45d22 8634
de9310b9
RP
8635Mon Jul 26 18:02:43 1993 K. Richard Pixley ([email protected])
8636
8637 * Makefile.in (clean): if testsuite does not exist, then skip it.
8638
8639Fri Jul 23 14:13:25 1993 Ian Lance Taylor ([email protected])
8640
8641 * config/tc-mips.c (prev_insn_unreordered,
8642 prev_prev_insn_unreordered): New static variables.
8643 (append_insn): Don't swap branch instruction if
8644 prev_prev_insn_unreordered (see comment).
8645 (mips_no_prev_insn): Clear the unreordered variables.
8646 (s_mipsset): When turning on reordering, set the unreordered
8647 variables.
8648
7767e7e9
KR
8649Fri Jul 23 13:09:44 1993 Ken Raeburn ([email protected])
8650
8651 * config/obj-elf.c (obj_elf_section): Sections ".init" and ".fini"
8652 are also magic, and have special default flag settings.
8653 (obj_elf_frob_symbol): Since the return value from this function
8654 isn't used, don't bother calling obj_elf_write_symbol_p, since it
8655 doesn't accomplish anything else.
8656
8657 * config/tc-sparc.c (md_section_align): Round up section size only
8658 for a.out format.
8659
8660 * symbols.c: Don't define DEBUG by default.
8661
88b457e5
ILT
8662Thu Jul 22 12:09:41 1993 Ian Lance Taylor ([email protected])
8663
2a2d3d08
ILT
8664 * write.c (fix_new_exp): Handle a O_uminus expression.
8665
e979ea04
ILT
8666 * expr.c (expr): Don't let absolute_section override
8667 undefined_section for the return value.
8668
cf897ce2
ILT
8669 * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a
8670 pseudo-op with a poc_handler field of NULL, ignore it and treat it
8671 as an instruction instead.
8672 * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL
8673 poc_handler field.
8674
88b457e5
ILT
8675 * config/tc-h8500.c (md_begin): Use a local variable when
8676 initializing md_relax_table to avoid warnings about modifying a
8677 supposedly const data structure.
8678
88e12460
BK
8679Thu Jul 22 10:58:51 1993 Brendan Kehoe ([email protected])
8680
8681 * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER
8682 is defined.
8683
86a6ada2
FF
8684Wed Jul 21 17:32:02 1993 Fred Fish ([email protected])
8685
8686 * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.
8687 * configure.in (case ${generic_target}): Add i[34]86-*-sysv4*
8688 case to set obj_format=elf. Must go before i386-*-sysv* case that
8689 sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and
8690 *-*-solaris case, and move to before *-sysv* case that wants to
8691 set obj_format to coff.
8692 * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to
8693 'exp->X_op'.
8694 * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for
8695 BFD_ASSEMBLER case.
8696
8ff6f40e
ILT
8697Wed Jul 21 12:47:51 1993 Ian Lance Taylor ([email protected])
8698
2c5c299f
ILT
8699 * config/obj-aout.c: Include aout/aout64.h.
8700 (obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor
8701 symbol, so that BFD doesn't tamper with the type.
8702
8ff6f40e
ILT
8703 * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
8704 up opcodes as pseudo-ops even if they don't start with '.'.
8705 * config/tc-m88k.h (NO_PSEUDO_DOT): Define.
8706 * config/tc-m88k.c (md_assemble): Removed special pseudo-op
8707 handling.
8708 (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
8709 Output the low 16 bits for RELOC_HI16, not the high 16 bits.
8710 * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
8711 r_offset field of the reloc to the fixup offset.
8712 (fixup_segments): If TC_M88K, don't warn about fixup overflows.
8713 * doc/as.texinfo: Minor updates.
8714
5ac34ac3
ILT
8715Tue Jul 20 19:28:56 1993 Ian Lance Taylor ([email protected])
8716
8717 * Extensive changes to permit symbols to contain any expression
8718 type and to delay the computation of the expression until the
8719 value is actually needed. This permits setting symbols to values
8720 calculated based on object code size. Expressions were changed to
8721 no longer be in a section, to stop the overloading of segment and
8722 expression type that previously occurred.
8723
8724 * as.c (big_section, pass1_section, diff_section, absent_section):
8725 Removed.
8726 (expr_section): Added (used for dummy symbols which hold
8727 intermediate expression values).
8728 (perform_an_assembly_pass): Create expr_section, do not create the
8729 sections now removed.
8730 * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and
8731 SEG_DIFFERENCE. Added SEG_EXPR.
8732 (SEG_NORMAL): Corresponding changes.
8733 * subsegs.c (seg_name, subsegs_begin): Changed accordingly.
8734 * write.c (write_object_file): Ditto.
8735 * config/obj-aout.c (seg_N_TYPE): Ditto.
8736 * config/obj-bout.c (seg_N_TYPE): Ditto.
8737 * config/obj-coff.c (seg_N_TYPE): Ditto.
8738 * config/obj-coffbfd.c (seg_N_TYPE): Ditto.
8739 * config/obj-vms.c (seg_N_TYPE): Ditto.
8740
8741 * expr.h (operatorT): Moved in from expr.c, added some values.
8742 (expressionS): Added X_op field, removed X_seg field; renamed
8743 X_subtract_symbol to X_op_symbol.
8744 * expr.c: Extensive changes to assign expression types rather than
8745 sections and to simplify the parsing.
8746 * write.c (fix_new_internal): New static function.
8747 (fix_new): Removed sub_symbol argument.
8748 (fix_new_exp): New function, takes expression argument.
8749 * write.h: Prototype changes for fix_new and fix_new_exp.
8750 * cond.c (s_if): Changed accordingly.
8751 * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons,
8752 parse_repeat_cons, get_segmented_expression,
8753 get_known_segmented_expression, get_absolute_expression): Ditto.
8754 * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE):
8755 Ditto.
8756 * write.c (write_object_file): Ditto.
8757 * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto.
8758 * config/obj-coffbfd.c (obj_coff_def, obj_coff_val,
8759 obj_coff_endef, yank_symbols): Ditto.
8760 * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto.
8761 * config/tc-a29k.c (md_assemble, parse_operand, machine_ip,
8762 print_insn, md_operand): Ditto.
8763 * config/tc-h8300.c (parse_exp, colonmod24, check_operand,
8764 do_a_fix_imm, build_bytes): Ditto.
8765 * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist,
8766 get_specific, check, insert, md_convert_frag): Ditto.
8767 * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa,
8768 md_assemble, pa_ip, getExpression, getAbsoluteExpression,
8769 evaluateAbsolute, pa_build_unwind_subspace, pa_entry,
8770 process_exit): Ditto.
8771 * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative,
8772 is_complex): Ditto.
8773 * config/tc-i386.c (pe, md_assemble, i386_operand,
8774 md_estimate_size_before_relax, md_create_long_jump): Ditto.
8775 * config/tc-i860.c (md_assemble, getExpression, print_insn):
8776 Ditto.
8777 * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag,
8778 get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc,
8779 i960_handle_align): Ditto.
8780 * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op,
8781 subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1,
8782 md_estimate_size_before_relax, md_create_long_jump, get_num):
8783 Ditto.
8784 * config/tc-m88k.c (md_assemble, get_imm16, get_pcr,
8785 md_create_short_jump, md_create_long_jump): Ditto.
8786 * config/tc-mips.c (md_assemble, append_insn, gp_reference,
8787 macro_build, macro, my_getExpression): Ditto. Also removed
8788 get_optional_absolute_expression; just use get_absolute_expression
8789 instead.
8790 * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif,
8791 fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto.
8792 * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto.
8793 * config/tc-sh.c (parse_exp, check, insert, md_convert_frag):
8794 Ditto.
8795 * config/tc-sparc.c (md_assemble, sparc_ip, getExpression,
8796 print_insn): Ditto.
8797 * config/tc-tahoe.c (struct top, md_estimate_size_before_relax,
8798 tip_op, md_assemble): Ditto.
8799 * config/tc-vax.c (seg_of_operand, md_assemble,
8800 md_estimate_size_before_relax, md_create_long_jump): Ditto.
8801 * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
8802
84873870
DZ
8803Tue Jul 20 12:17:16 1993 david d `zoo' zuhn ([email protected])
8804
8805 * configure.in: i386-lynx is the same as i386-coff
8806
623d6e9a
KR
8807Mon Jul 19 15:21:20 1993 Ken Raeburn ([email protected])
8808
8809 * config/obj-elf.c (obj_elf_previous): New function.
8810 (previous_section, previous_subsection): New vars.
8811 (obj_elf_section): Save current place in case DWARF code wants us
8812 to pop back to it. Handle unquoted section name as well as quoted
8813 section name. Don't crash on invalid strings.
8814 (obj_pseudo_table): Handle new pseudos "previous", "2byte", and
8815 "4byte".
8816
8817 * config/obj-elf.h: Don't include struc-symbol.h.
8818 (obj_elf_frob_symbol): Declare arg as struct symbol *.
8819
8820 * tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Local labels can start with
8821 "L" or "_.L_".
8822
8823 * write.c (write_relocs): New function, split off from
8824 write_contents. Use memset instead of bzero.
8825 (write_object_file): Apply write_relocs to each section before
8826 applying write_contents.
8827
8828 * read.c (read_begin): Call obstack_begin with values closer to 1K
8829 multiples.
8830 (read_a_source_file, big_cons, float_cons): Use memcpy instead of
8831 bcopy.
8832
ffffc8fb
ILT
8833Mon Jul 19 14:30:00 1993 Ian Lance Taylor ([email protected])
8834
ce2ad89a
ILT
8835 * config/tc-m68k.c (m68k_ip_op): Don't decrement strend when
8836 calculating opP->isiz; this permits the expression size to be
8837 determined as well, later on.
8838
ffffc8fb
ILT
8839 * expr.c (clean_up_expression): Don't cancel the subtraction of
8840 undefined symbols.
8841
8842 * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R,
8843 switch to text section rather than data section.
8844
9d4dfbf3
KR
8845Mon Jul 19 12:35:39 1993 Ken Raeburn ([email protected])
8846
8847 * config/tc-m68k.c (m68k_ip, case AINDX): Add 6 to operand
8848 expression (to take the pc-rel instruction itself into account)
8849 before using the expression, instead of after.
8850
04acd059
ILT
8851Fri Jul 16 08:56:04 1993 Ian Lance Taylor ([email protected])
8852
1e9cf565
ILT
8853 * read.c (float_cons): Simplified parsing logic. If
8854 REPEAT_CONS_EXPRESSIONS is defined, accept a repeat count.
8855
8856 * symbols.c (colon): Rather than a special case for TC_HPPA,
8857 use new macro tc_frob_label.
8858 * config/tc-hppa.h (tc_frob_label): Define.
8859
8860 * config/tc-mips.c: Many changes to support simple assembler
8861 optimization.
8862 (insn_label, prev_insn, prev_prev_insn, dummy_opcode,
8863 prev_insn_valid, prev_insn_frag, prev_insn_where,
8864 prev_insn_fixp, prev_insn_is_delay_slot): New static
8865 variables.
8866 (insn_uses_reg, mips_no_prev_insn, mips_emit_delays,
8867 mips_align, s_stringer, s_mips_space): New static functions.
8868 (mips_define_label): New global function.
8869 (md_pseudo_table): For "ascii", "asciz", "asciiz", call
8870 s_stringer. Changed argument to float_cons from 0 or 1 to 'f'
8871 or 'd'. For "space" call s_mips_space.
8872 (md_begin): Call mips_no_prev_insn.
8873 (append_insn): Only insert necessary NOP instructions.
8874 (macro): Call mips_emit_delays before setting mips_noreorder.
8875 Increment and decrement mips_noreorder rather than using
8876 save_reorder_condition. Don't bother to use noreorder in
8877 M_L_DOB and M_L_DAB, since append_insn will not insert a NOP.
8878 (md_atof): Handle floating point numbers correctly for both
8879 big and little endian targets.
8880 (s_align, s_cons): Call mips_align rather than frag_align.
8881 (s_change_seg, s_cons): Call mips_emit_delays.
8882 (s_float_cons): Let float_cons do the work.
8883 (s_mipsset): Call mips_emit_delays when setting noreorder.
8884 * config/tc-mips.h (tc_frob_label): Define to be
8885 mips_define_label.
8886
04acd059
ILT
8887 * config/obj-ecoff.c (ecoff_build_symbols, ecoff_build_procs,
8888 ecoff_frob_files): Consistently use S_GET_VALUE rather than
8889 bfd_asymbol_value. Warn if taking difference of symbols in
8890 different segments.
8891
c978e704
ILT
8892Thu Jul 15 11:51:03 1993 Ian Lance Taylor ([email protected])
8893
5276e361
ILT
8894 * config/obj-ecoff.c (ecoff_frob_file): Discard all open scopes,
8895 with a warning.
8896
2368ec63
ILT
8897 * config/obj-coffbfd.c (fixup_segment): If TC_M88K, don't adjust
8898 by md_pcrel_from if we are relocating against a symbol (we still
8899 need md_pcrel_from for a PC relative relocation within the same
8900 file).
8901 * config/tc-m88k.c (md_pcrel_from): Corrected return value.
cb441b38 8902 (omagic): Removed unused variable.
2368ec63 8903
c978e704
ILT
8904 * Preliminary support for m88k-coff.
8905 * configure.in (m88k-*-coff*): New target. Use coffbfd and
8906 m88kcoff.
8907 * config/m88kcoff.mt: New file.
8908 * read.c (lex_type): New macro LEX_AT to set lex type of '@'.
8909 (pseudo_set): Handle difference of symbols in different fragments
8910 by saving the entire expression as the value of the symbol.
8911 * symbols.c (resolve_symbol_value): Resolve difference
8912 expressions.
8913 * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
8914 "sdef" as a synonym for "def".
8915 * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
8916 TARGET_FORMAT.
8917 (S_IS_LOCAL): Any symbol which includes \001 in the name is local.
8918 * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
8919 m88k port up to date, and to add COFF support.
8920
85051959
ILT
8921Wed Jul 14 15:09:32 1993 Ian Lance Taylor ([email protected])
8922
5868b1fe
ILT
8923 * Removed sy_forward and replaced it with an undefined expression
8924 as the value of a symbol.
8925 * struc-symbol.h (struct symbol): Removed sy_forward field. Added
8926 sy_resolved and sy_resolving single bit fields.
8927 * symbols.c (symbol_new): Don't initialize sy_forward field.
8928 (resolve_symbol_value): New function to adjust symbol value by
8929 fragment address, using recursion to resolve forward symbols.
8930 * symbols.h: Added prototype for new function.
8931 * read.c (pseudo_set): Set symbolP->sy_value to an undefined
8932 expression rather than setting symbolP->sy_forward.
8933 * write.c (write_object_file): Use resolve_symbol_value on
8934 symbols, keeping the common case (the old behaviour) inline.
8935 * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward
8936 handling (subsumed by write.c change).
8937 * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set
8938 sy_value rather than sy_forward.
8939 * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check
8940 expression segment rather than sy_forward.
8941 (yank_symbols): Use resolve_symbol_value.
8942 (crawl_symbols): Removed extra pass over symbols.
8943 * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c,
8944 config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over
8945 symbols which handled sy_forward; use resolve_symbol_value
8946 instead.
8947 * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol):
8948 Define.
8949 * config/obj-elf.c (obj_elf_stab_generic): Check expression
8950 segment rather than sy_forward.
8951 * config/obj-vms.c (VMS_Check_For_Main): Don't initialize
8952 sy_forward; do initialize sy_resolved and sy_resolving.
8953 * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward.
8954
85051959
ILT
8955 * Changes to keep a full expression as the value of a symbol, not
8956 just a longword:
8957 * struc-symbol.h: New field sy_value.
8958 * as.h: Include expr.h before struc-symbol.h.
8959 * expr.h: Use struct symbol rather than symbolS.
8960 * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value
8961 of sy_value field; compile unconditionally, not just if
8962 BFD_ASSEMBLER.
8963 * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally.
8964 * write.c (write_object_file): Set BFD symbol value to gas symbol
8965 value.
8966 * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h,
8967 config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h
8968 (S_GET_VALUE, S_SET_VALUE): Removed macro definitions.
8969 * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed.
8970 * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use
8971 S_GET_VALUE rather than ost_entry.n_value.
8972 * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c
8973 (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars),
8974 config/obj-coffbfd.c (symbol_to_chars): Get value to write out
8975 using S_GET_VALUE--don't assume it is already set.
8976 * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas
8977 symbol value.
8978 * config/obj-vms.c (various): Don't assign directly to
8979 S_GET_VALUE; use S_SET_VALUE instead.
8980
b50401c9
DE
8981Wed Jul 14 09:35:23 1993 Doug Evans ([email protected])
8982
fd4b7c25
KR
8983 * configure.in: Make sparc64-*-aout* use bfd gas.
8984
b50401c9
DE
8985 * configure.in: Recognize h8300h.
8986
489a93f3
SC
8987Tue Jul 13 12:09:44 1993 Steve Chamberlain ([email protected])
8988
8989 * config/tc-h8500.c (line_comment_chars): Add hash.
8990 (parse_exp, skip_colonthing, build_bytes): Add support for
8991 R_H8500_HIGH16 relocation type.
8992
5d4ef296
KR
8993Mon Jul 12 11:15:34 1993 Ken Raeburn ([email protected])
8994
8995 * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an
8996 attribute name. Handle `execinstr' attribute.
8997
99c24539
ILT
8998Mon Jul 12 07:22:28 1993 Ian Lance Taylor ([email protected])
8999
9000 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
9001 there is another alternative for the instruction.
9002
ec1c752b
RP
9003Fri Jul 9 17:31:34 1993 Roland H. Pesch ([email protected])
9004
9005 * doc/as.texinfo: updates for H8/300H
9006
d358969d
ME
9007Thu Jul 8 14:41:43 1993 Mark Eichin ([email protected])
9008
9009 * config/tc-i960.c (md_create_short_jump, md_create_long_jump,
9010 md_number_to_chars, md_section_align): Adjusted to use valueT,
9011 addressT, to match tc.h.
9012
ff4cac38
KR
9013Thu Jul 8 14:15:05 1993 Ken Raeburn ([email protected])
9014
9015 * config/tc-sparc.c (s_common): Revamp to handle both syntaxes,
b2565433 9016 independent of format.
ff4cac38 9017
42206996
DE
9018Thu Jul 8 07:25:25 1993 Doug Evans ([email protected])
9019
9020 * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h.
9021
e9baeb46
DZ
9022Wed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
9023
9024 * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross
9025 build; also recognize h8300-*-coff
9026
76c64db0
ILT
9027Wed Jul 7 10:21:24 1993 Ian Lance Taylor ([email protected])
9028
e154ecf4
ILT
9029 * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
9030 core just because somebody uses a label before it is defined.
9031
76c64db0
ILT
9032 * config/mips-opcode.h: Moved to opcode/mips.h.
9033 * config/tc-mips.c: Include opcode/mips.h rather than
9034 mips-opcode.h.
9035 (append_insn): An extra NOP is only needed after instructions
9036 which set HI or LO, not after instructions which read it.
9037 (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
9038 (macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
9039 * config/tc-mips.h (struct mips_opcode): Don't define.
9040 * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
9041 Set to $(srcdir)/../include/opcode/mips.h.
9042
9043 Get the MIPS assembler up to speed with other gas changes:
9044
9045 * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
9046 Removed; don't change the symbol value.
9047 (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
9048 bfd_asymbol_value rather than S_GET_VALUE to include section
9049 vma in symbol value.
9050 (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
9051 doesn't output them. Set the vma of sections.
9052 * config/obj-ecoff.h: Don't define obj_frob_symbol.
9053 * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
9054 longer necessary.
9055 (various): use valueT rather than long.
9056
e28e0b95
KR
9057Wed Jul 7 08:33:30 1993 Ken Raeburn ([email protected])
9058
fd4b7c25
KR
9059 * config/tc-sparc.h (ENV64): Define for v9.
9060
9061 * config/tc-sparc.c (s_xword): For numbers, call big_cons.
9062 (sparc_ip, md_apply_fix, tc_gen_reloc): Handle some sparc64
9063 relocation types.
9064 (md_number_to_chars): Handle 8-byte value.
9065
9066 * config/obj-elf.h (elf_symbol): For v9, use 64-bit symbol type.
9067
e28e0b95
KR
9068 * as.h (valueT): Typedef moved here.
9069 * struc-symbol.h (valueT): ...from here.
9070 * write.c (write_object_file): Locals from_addr, to_addr,
9071 table_addr are now addressT. Supply prototype for bfd_alloc for
9072 now.
9073 (fixup_segment): Local add_number is now valueT. Correct some
9074 range-checking bugs.
9075 (relax_align): Type `int' should be sufficient for the exponent.
9076 (fix_new): Argument offset is type offsetT. Locals size and
9077 newsize are type valueT.
9078 * write.h (struct fix): Fields fx_offset and fx_addnumber are now
9079 type valueT.
9080 (fix_new): Fix prototype.
9081 * symbols.c (symbol_new): Symbol value is type valueT.
9082 (S_SET_VALUE, S_GET_VALUE): Likewise.
9083 (S_IS_*): Specify int return type explicitly.
9084 * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed
9085 prototypes.
9086 * read.c (s_comm): Values read are type valueT.
9087 * expr.h (expressionS): Field X_add_number is an offsetT.
9088 * tc.h (md_create_long_jump, md_create_short_jump,
9089 md_section_align): Addresses are now type addressT.
9090 (md_number_to_chars, md_apply_fix): Pass value as valueT.
9091 * config/tc-i386.c (md_create_short_jump, md_create_long_jump,
9092 md_number_to_chars, md_section_align): Adjusted.
9093 * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make
9094 gcc shut up.
9095 (md_create_short_jump, md_create_long_jump, md_number_to_chars,
9096 md_section_align): Adjusted.
9097
9098 * config/tc-sparc.c (s_reserve): Permit use for other than a.out
9099 format.
9100 (s_common): Handle Solaris-2 version.
9101
9102 * config/ho-generic.h (free): Returns void if __STDC__.
9103
9104 * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file,
9105 elf_file_symbol): Declare.
9106
9107 * expr.c (floating_constant, integer_constant): Now return void.
9108
9109Thu Jul 1 12:13:43 1993 Ian Lance Taylor ([email protected])
9110
9111 * configure.in: Match on sparc*-fujitsu-none rather than
9112 sparclite*-fujitsu-none.
9113
267389df
ILT
9114Wed Jun 30 11:12:02 1993 Ian Lance Taylor ([email protected])
9115
9116 * read.c (cons): Conditionalize parsing of expression. Move
9117 putting value into object file into separate function. Separate
9118 out MRI and WANT_BITFIELDS cases into separate functions.
9119 (emit_expr): New function to write data into object file.
9120 Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
9121 processor types.
9122 (parse_bitfield_cons): New function to parse bitfield expressions
9123 as used by i960 assemblers. Only compiled if
9124 BITFIELD_CONS_EXPRESSIONS is defined.
9125 (parse_mri_cons): New function to parse MRI style strings. Only
9126 compiled if MRI is defined.
9127 (parse_repeat_cons): New function to parse repeat counts. Only
9128 compiled if REPEAT_CONS_EXPRESSIONS is defined.
9129 * read.h (emit_expr): Added declaration of new function.
9130 * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
9131 * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
9132 * config/tc-hppa.c (parse_cons_expression_hppa): New function to
9133 parse a HPPA expression, rather than special case in cons
9134 function.
9135 (cons_fix_new_hppa): New function to emit an HPPA fixup, rather
9136 than special case in emit_expr function.
9137 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
9138 Define to use new functions from tc-hppa.c.
9139 * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
9140 (WANT_BITFIELDS): Removed; now obsolete.
9141 * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
9142 * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
9143 NS32K fixup, rather than special case in emit_expr function.
9144 * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
9145 cons_fix_new_ns32k. Also use PARAMS rather than checking
9146 __STDC__.
9147 * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.
9148
9149 * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
9150 Don't core dump if gas has no information about a section.
9151
9152Wed Jun 30 06:21:27 1993 Ken Raeburn ([email protected])
9153
fd4b7c25
KR
9154 * config/tc-sparc.c (md_begin): If sparcv9 is defined, reset
9155 current_architecture to v9 automatically.
9156
9157 * config/tc-sparc.h (TARGET_FORMAT): Use elf64-sparc for v9.
9158
9159 * config/tc-sparc64.h, config/tc-sparc64.c: New files.
9160 * configure.in: Use sparc64 cpu files for v9, and default to elf
9161 format.
9162
267389df
ILT
9163 * write.c (relax_and_size_seg): Always fully process a section.
9164 Section size is last frag's (vm)address plus its size. If no
9165 relocations are present, force SEC_RELOC flag clear.
9166 (dump_section_relocs): New debugging routine.
9167 (adjust_reloc_syms): New routine, broken out from write_contents.
9168 Don't adjust relocs that are already relative to section symbol.
9169 Look for obj_fix_adjustable macro to know what else to skip,
9170 instead of obj_write_symbol. Look for section symbol stored in
9171 section information.
9172 (write_object_file): Map adjust_reloc_syms over all sections.
9173 (write_contents): Clear SEC_RELOC flag if no relocations are
9174 found.
9175
9176 * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to
9177 keep it quiet.
9178
9179 * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER.
9180
e28e0b95
KR
9181Fri Jun 25 14:42:53 1993 K. Richard Pixley ([email protected])
9182
9183 * Makefile.in (all, dvi, info, install-info, clean-info): do not
9184 echo recursion lines.
9185 (install-info, clean-info): collapse into the dvi and info rule.
9186
fd4b7c25
KR
9187Fri Jun 25 10:47:24 1993 Doug Evans ([email protected])
9188
9189 * config/tc-sparc.c (sparc_ip): Remove support for %d/%q fp regs.
9190 All fp regs are now specified as %f.
9191 (priv_reg_table): fpq -> fq.
9192
267389df
ILT
9193Fri Jun 25 03:43:06 1993 Ken Raeburn ([email protected])
9194
9195 * as.h (strstr): Disable declaration for now.
9196 (fprint_value, sprint_value): Declare.
9197
9198 * subsegs.c (subseg_new_rest): Use memset to clear new frag.
9199 (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields.
9200
9201 * expr.c (expr_part): Made sanity checks a.out-specific.
9202 (expr): Disabled sanity checks.
9203
9204 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for
9205 section symbol.
9206 * subsegs.c (subseg_change): Initialize section symbol pointer
9207 when setting up a new section.
9208
9209 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata
9210 field back at gas symbol structure.
9211
9212 * symbols.c (colon): Cast obstack_next_free value to char* before
9213 doing arithmetic on it.
9214 * subsegs.c (subseg_new_rest): Likewise.
9215 * as.h (frag_now_fix): Likewise.
9216
9217 * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of
9218 calling bfd_make_section_old_way directly, and call subseg_set
9219 instead of subseg_change. Now returns void.
9220 (obj_elf_write_symbol): Only check local symbols for now.
9221 (elf_stab_symbol): Now static and void, and disabled until it
9222 works completely.
9223 (obj_elf_size): For expression values, fail silently for now.
9224 (obj_symbol_new_hook): Do nothing.
9225
9226 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22
9227 relocation.
9228 (s_local) [OBJ_ELF]: New function.
9229 (md_pseudo_table) [OBJ_ELF]: Call it for "local".
9230 (s_common): Rearrange to handle Solaris .common pseudo, which may
9231 sometimes use bss space instead of common.
9232 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field.
9233
a8285504
DZ
9234Thu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9235
9236 * configure.in: set host config to hpux for hppa*-hp-hpux
9237
267389df
ILT
9238Thu Jun 24 13:35:06 1993 Ken Raeburn ([email protected])
9239
9240 * app.c (app_pop, app_push): Fix bug reported by Chris Arthur.
9241
9242Tue Jun 22 01:04:23 1993 Ken Raeburn ([email protected])
9243
9244 * subsegs.c (subseg_new): Don't special-case a.out -R flag here.
9245 * config/obj-aout.c (s_sect): Do it here.
9246
9247 * as.h (BAD_CASE): Don't make some lame compilers think we want
9248 substitution inside strings.
9249
9250 * as.c (print_version_id): New function, split off from main.
9251 (main): Call it.
9252 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id
9253 for -V. Ignore -Q and -s options for now.
9254
a8285504
DZ
9255Mon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9256
9257 * Makefile.in: make installation & builds work again for crosses
9258
267389df
ILT
9259Sun Jun 20 18:18:26 1993 Ken Raeburn ([email protected])
9260
9261 * listing.c (list_symbol_table): Rewrite to print wide (>32 bits)
9262 symbol values correctly.
9263
9264 * write.c (write_object_file): Deleted unused variables.
9265 (fixup_segment): Use sprint_value.
9266
9267 * messages.c (sprint_value, fprint_value): New routines.
9268
9269 * config/obj-elf.c (elf_stab_symbol): Now returns void.
9270 (obj_elf_stab_generic): Fix typo in logic.
9271
9272 * Makefile.in (INCLUDES): Look in ../bfd for bfd.h.
9273
9274 * as.h (addressT, offsetT): New types, using BFD types if
9275 available.
9276 (relax_addressT, struct frag): Use them.
9277 * struc-symbol.h (valueT, struct broken_word): Likewise.
9278
9279 * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
9280 * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
9281
9126738c 9282Thu Jun 17 16:53:56 1993 david d `zoo' zuhn ([email protected])
132239bf 9283
9126738c
DZ
9284 * Makefile.in: canonicalize install.sh; for use within
9285 this directory (and subdirs)
9286
267389df
ILT
9287Sun Jun 20 02:34:04 1993 Ashley Saulsbury ([email protected])
9288
9289 * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
9290 specified, should have both S1 and S2 fields identical
9291 If only finding the problem was as fast as fixing the bug !!!!
9292
9293Tue Jun 15 16:01:57 1993 Ken Raeburn ([email protected])
9294
9295 * write.c (write_contents): Do write out non-loadable sections.
9296 Debug sections can fall in this category.
115147fb 9297
267389df
ILT
9298 * read.c (s_app_file): Call elf_file_symbol for ELF files.
9299 * config/obj-elf.c (elf_file_symbol): New function.
9300
9301 * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_...,
9302 added argument to specify section base name.
9303 (obj_elf_stab_generic): Renamed from ..._stab. New argument
9304 specifies section base name.
9305 (obj_elf_stab): New function, calls obj_elf_stab_generic with
9306 ".stab" as section base name.
9307 (obj_elf_xstab): New function, calls obj_elf_stab_generic.
9308 (obj_elf_type): Handle "object". Use bitwise-or to merge in
9309 symbol flags rather than simply replacing, so global/local flags
9310 are preserved.
9311 (obj_elf_ident): Rewrite.
115147fb 9312
a00ee522
DZ
9313Tue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9314
9315 * Makefile.in: remove parentdir support; use INSTALL_XFORM
9316
9317Wed Jun 9 11:26:07 1993 Ian Lance Taylor ([email protected])
9318
9319 * config/tc-i386.c (md_pseudo_table): .align uses a power of two
9320 for any a.out target, not just Linux and 386BSD.
9321 * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out
9322 target.
9323
267389df
ILT
9324Mon Jun 7 13:33:19 1993 Ken Raeburn ([email protected])
9325
9326 * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They
9327 don't exist or duplicate other inclusions.
9328
9329 * config/tc-vax.h (NO_RELOC): Define.
9330
fd4b7c25
KR
9331Mon Jun 7 09:55:03 1993 Doug Evans ([email protected])
9332
9333 * config/tc-sparc.c (sparc_ip): Fix parsing of asi number.
9334 Fix error message.
9335
267389df
ILT
9336Sat Jun 5 19:32:52 1993 Torbjorn Granlund ([email protected])
9337
9338 * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions.
9339 * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first
9340 char to reg_prefix instead of to 'r'.
9341 (calcop): Change calls to get_reg.
9342 (calcop): Handle new case 'x' to set reg_prefix.
9343 (calcop): Set reg_prefix to 'r' after each call to get_reg.
9344 (cmpslot): Add 88110 conditions.
9345
9346 * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency.
9347
9348 * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer
9349 before returning.
9350
9351 * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics
9352 adjacent; mov.s and mov.d swapped.
9353 (m88k_opcodes): Fix typo `r2' -> `2'.
9354
a00ee522
DZ
9355Fri Jun 4 15:59:31 1993 Steve Chamberlain ([email protected])
9356
9357 * config/h8300.c: Support for H8/300-H opcodes.
9358
9359 * config/obj-coffbfd.c (w_strings): String table length is 4
9360 bytes, no matter what the host int size is.
9361
9362 * configure.in (alpha-*-osf*): New.
9363
68ad4c92
ILT
9364Fri Jun 4 07:51:18 1993 Ian Lance Taylor ([email protected])
9365
47fcc4f5
ILT
9366 * configure.in (mips-*-ecoffl*): New target; use ecoff and
9367 mips-lit.
9368 (mips-*-ecoff*): Added trailing '*'.
9369
68ad4c92
ILT
9370 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
9371 first FDR in a file to be zero.
9372
75776695
KR
9373Thu Jun 3 14:09:59 1993 Ken Raeburn ([email protected])
9374
b7067d7f
KR
9375 * Makefile.in (VERSION): Jump to 2.1.4.
9376
75776695
KR
9377 * config/ho-hppabsd.h: New file, from Peter Hoogenboom.
9378
9379 * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for
9380 ECOFF format.
9381
9382Tue Jun 1 15:21:57 1993 Ken Raeburn ([email protected])
9383
9384 * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a
9385 separate '851 mmu.
9386
9387 * config/obj-elf.c, config/obj-elf.h: Update for new type, macro,
9388 and routine names. Assuming 32 bits for now.
9389
9390 * config/obj-elf.c (elf_frob_file): Look for macro
9391 elf_tc_final_processing_hook, instead of assuming a function
9392 always exists.
9393 * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from
9394 tc_final_processing_hook.
9395 * config/tc-hppa.h (elf_tc_final_processing_hook): Use it.
9396
9397 * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros
9398 moved here from obj-elf.h.
9399 * config/obj-elf.h: Don't include CPU-specific header files.
9400
9401Sun May 30 16:49:37 1993 Peter Hoogenboom ([email protected])
9402
9403 * configure.in: configurations should match on 'hppa*' not 'hppa'.
9404
9405 * read.c: Add support for HPPA assembly language syntax (denoted
9406 with '#ifdef TC_HPPA').
9407
9408 * symbols.c: Add support for HPPA assembly language syntax (denoted
9409 with '#ifdef TC_HPPA').
9410
9411 * write.c (write_contents): Add support for HPPA-style
9412 relocations.
9413
9414 * config/obj-elf.c: Stab symbols weren't written properly.
9415 (obj_elf_version):
9416 (obj_elf_desc):
9417 (obj_elf_write_symbol):
9418 (obj_elf_write_symbol_p):
9419 (obj_elf_frob_symbol):
9420 (elf_stab_symbol):
9421 (elf_frob_file):
9422
9423 * config/tc-hppa.c: Support for HPPA symbol extension sections.
9424 Remove some unused code. Support for HPPA assembly language
9425 syntax.
9426
9427 * app.c:
9428
9429 * symbols.c:
9430
9431 * config/obj-elf.h:
9432 (obj_write_symbol):
9433 (obj_frob_file):
9434 (elf_tc_symbol):
9435 (elf_tc_make_sections):
9436
9437 * config/tc-hppa.h:
9438
9439Sun May 30 21:44:45 1993 Ken Raeburn ([email protected])
9440
9441 * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume
9442 hash_new will have succeeded if it returns.
9443 * config/tc-a29k.c (md_begin): Likewise.
9444
9445 * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is
9446 const.
9447 (mode_from_disp_size, opcode_suffic_to_type): Now inline under
9448 gcc.
9449 (fits_in_{signed,unsigned}_{byte,word}): Likewise.
9450
9451 * expr.c: Delete register declarations; gcc ignores them anyways.
9452
9453Fri May 28 19:03:32 1993 Ken Raeburn ([email protected])
9454
9455 * hash.c (hash_new): Use xmalloc, since many callers don't check
9456 for failure.
9457
49864cfa
KR
9458Thu May 27 13:02:15 1993 Ken Raeburn ([email protected])
9459
9460 * frags.c (zero_address_frag, bss_address_frag): These are
9461 external.
9462
9463 * tc.h (md_reloc_size): This is const.
9464 * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c
9465 (md_reloc_size): Now const.
9466
9467 * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete
9468 trailing commas.
9469 * as.h (enum _segT): Ditto.
9470
9471 * struc-symbol.h (N_TYPE_seg): This should be const.
9472
9473Thu May 27 11:43:59 1993 Michael Meissner ([email protected])
9474
9475 * config/obj-ecoff.c (add_file): Cast file_name to char * in
9476 listing_source_file call.
9477
9478 * config/obj-elf.c (elf_stab_symbol_string): Cast first argument
9479 of subseg_new call to eliminate const attribute.
9480 (obj_elf_stab): Ditto.
9481 (obj_symbol_new_hook): Cast first argument of bzero call to char *.
9482
9483 * read.c (s_align_bytes): Properly record alignment.
9484
9485 * expr.c (__): Undefine __ macro before use, since OSF/1 uses it
9486 for the prototype/no prototype macro.
9487
9488 * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be
9489 void.
9490
9491 * as.h (relax_stateT enum): Delete trailing comma.
9492
9a7d824a
ILT
9493Thu May 27 11:07:50 1993 Ian Lance Taylor ([email protected])
9494
9495 * app.c (do_scrub_begin): Let line_comment_chars override
9496 comment_chars.
9497 (do_scrub_next_char): If a line comment character is not at the
9498 start of a line, treat it as a comment character if it is one.
9499 For a CPP line comment use pseudo-op .appline rather than .line.
9500 * input-scrub.c (logical_input_line): Make int rather than
9501 unsigned.
9502 (input_scrub_push, input_scrub_begin): Initialize
9503 logical_input_line to -1 rather than 0.
9504 (bump_line_counters): Increment logical_input_line.
9505 (new_logical_line): If line_number is -2, decrement
9506 logical_input_line.
9507 (as_where): Use logical_input_line even if it is 0.
9508 * read.h (s_app_file prototype): Now takes an int argument.
9509 * read.c (potable): Make .appfile call s_app_file with 1. New
9510 .appline pseudo-op calls s_app_line.
9511 (s_app_file): If .appfile, call new_logical_line with -2 to
9512 account for newline inserted by do_scrub_next_char. If listing,
9513 call listing_source_file.
9514 (s_app_line): New function to handle fake pseudo-op .appline.
9515 * config/obj-coff.c (obj_pseudo_table): Make .appline call
9516 obj_coff_ln.
9517 (obj_coff_ln): Added argument to indicate whether .appline.
9518 * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
9519 obj_coff_ln.
9520 (obj_coff_ln): Added argument to indicate whether .appline.
9521 * config/tc-mips.c (s_file): Pass argument to s_app_file.
9522
61f14fb0
ILT
9523Tue May 25 11:59:07 1993 Ian Lance Taylor ([email protected])
9524
9525 * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast.
9526
9527Thu May 20 19:14:24 1993 Ken Raeburn ([email protected])
9528
9529 * config/tc-m68k.c (md_apply_fix_2): Straighten out check for
9530 invalid values.
9531
6eef4543
SC
9532Wed May 19 07:33:17 1993 Steve Chamberlain ([email protected])
9533
9534 * config/tc-h5000.c (build_bytes): Understand @rd mode and build
9535 relocations correctly.
9536
f8f61478
KR
9537Mon May 17 15:06:26 1993 Ken Raeburn ([email protected])
9538
6eef4543
SC
9539 * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because
9540 it's wrong.
9541
f8f61478
KR
9542 * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn
9543 if value is out of range.
9544
9545 Patch from Minh Tran-Le:
9546 * config/tc-i386.c (i386_operand): For in/out port register used
9547 as base reg, include InOutPortReg in operand type.
9548 (MATCH): Accept overlap value of InOutPortReg.
9549
9550Mon May 17 09:29:34 1993 Ian Lance Taylor ([email protected])
9551
9552 * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab):
9553 Add calls to listing routines to produce combined source/assembler
9554 listings.
9555 (obj_ecoff_stab): Create a file pointer if none used yet.
9556 (ecoff_frob_file): Set symcount to correct value.
9557
9558Fri May 14 06:53:33 1993 Ken Raeburn ([email protected])
9559
9560 * Makefile.in (VERSION): Bump to version 2.1, in preparation for
9561 release.
9562
9563 * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE):
9564 Define in terms of constants, not C structure sizes.
9565
9566 * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files.
9567
9568Thu May 13 17:01:55 1993 Ken Raeburn ([email protected])
9569
9570 * config/obj-aout.c (obj_header_append): Don't define if it's
9571 defined as a macro.
9572 * config/obj-hp300.h (obj_header_append): Define it as a macro.
9573 * config/obj-hp300.c (hp300_header_append): New function.
9574
9575 * Makefile.in (distclean): Don't bother cleaning up doc files;
9576 they aren't going to be in this directory.
9577
204ff785
ILT
9578Thu May 13 07:51:35 1993 Ian Lance Taylor ([email protected])
9579
f8f61478
KR
9580 * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute
9581 symbols.
9582
204ff785
ILT
9583 * tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
9584 * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
9585
65824763
KR
9586Mon May 10 06:01:12 1993 Ken Raeburn ([email protected])
9587
204ff785
ILT
9588 * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with
9589 initialization.
9590
65824763
KR
9591 * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff.
9592
21bb48b9
ILT
9593Wed May 5 14:00:49 1993 Ian Lance Taylor ([email protected])
9594
9595 * config/tc-mips.c (macro): Correct floating point double word
9596 loads and stores for big endian target.
9597
e7c2f943
KR
9598Wed May 5 08:39:21 1993 Ken Raeburn ([email protected])
9599
9600 * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_*
9601 calls. Deleted some unused code.
9602 * config/obj-coff.c: Likewise.
9603
9604 ELF support, mostly contributed by Utah:
9605 * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line,
9606 obj_elf_type): Rewrite.
9607 (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol,
9608 obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size):
9609 New functions.
9610 (obj_elf_ident): Dummy.
9611 * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol,
9612 TARGET_SYMBOL_FIELDS): New macros.
9613 (gdb_section): New variable decl.
9614
9615 * config/tc-i386.c (md_atof): Return zero, not empty string, on
9616 success.
9617
9618 BFD_ASSEMBLER conditional changes:
9619 * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header):
9620 Don't define these.
9621 (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions.
9622 (fetch_coff_debug_section): Ditto.
9623 (obj_coff_endef): Call fetch_coff_debug_section.
9624 (struct line_no): New type.
9625 (c_symbol_merge): New way for copying aux fields.
9626 (c_dot_file_symbol): Put symbol in absolute section, and set flag
9627 BSF_DEBUGGING.
9628 (function_lineoff): New symbol.
9629 (function_lineoff, text_lineno_number, our_lineno_number,
9630 lineno_lastP): Don't define.
9631 (c_line_new): Don't define.
9632 (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh,
9633 placeholders, until
9634 line-number recording gets implemented.
9635 (obj_new_symbol_hook): New code for handling aux fields.
9636 (add_lineno, add_linesym): New functions.
9637 (obj_coff_ln): Call add_lineno, not c_line_new.
9638 (obj_coff_endef): New code for handling symbol names. New lineno
9639 code. Look for section name "*DEBUG*" for debugging section.
9640 (align, coff_check_file_symbols, obj_coff_section,
9641 coff_frob_file): New functions.
9642 * config/obj-coff.h: Reordered some includes.
9643 (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg,
9644 DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't
9645 define these.
9646 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros.
9647 (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing
9648 aux entries. Most SA_* macros now use it unconditionally.
9649 (S_*): Use `bsym' field, and access BFD private data.
9650 (SF_*): Use `sy_flags' symbol field for most of these.
9651 (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't
9652 define.
9653 (*_section_header): Don't define.
9654 * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed
9655 interface.
9656 (tc_gen_reloc) [I386COFF]: New function.
9657 (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define.
9658 * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New
9659 macros.
9660
9661 * config/obj-coff.c (stack_init): Don't do assignments inside
9662 conditions.
9663 (obj_coff_def): Simplified handling of symbol name a bit.
9664 (tag_insert): Name argument is now pointer to CONST.
9665 (obj_crawl_symbol_chain): Commented out.
9666
9667 * config/obj-coff.h: Use PARAMS macro in prototypes.
9668
9669 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect
9670 through frchainP pointer if it is null.
9671
9672 * configure.in: Warn if BFD mode is explicitly turned off but is
9673 required by specified target.
9674 (mips ecoff targets): Don't need to set bfd_gas here; it gets
9675 taken care of later.
9676
9677 * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward
9678 field.
9679 (yank_symbols): Merge symbols only if sy_forward is null.
9680
9681 * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already
9682 defined.
9683
9684 * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not
9685 pointer.
9686 * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto.
9687
9688 * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting
9689 with "." is a local label.
9690
9691 * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config
9692 files.
9693
9694 * config/te-linux.h, config/te-386bsd.h: New config files.
9695 * configure.in (i386-*-linux, i386-*-bsd): Use them.
9696 * config/tc-i386.h (TARGET_FORMAT): Select format based on target
9697 environment.
9698 (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux.
9699
5d6cfa60
ILT
9700Wed May 5 13:14:01 1993 Ian Lance Taylor ([email protected])
9701
9702 * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
9703 to want it that way.
9704 (ecoff_build_symbols): Turn local st_Proc symbols into
9705 st_StaticProc symbols. Set index field of external st_Proc and
9706 st_staticProc symbols correctly.
9707 * config/tc-mips.h (NO_LISTING): Don't define. People might want
9708 listings.
9709
e7c2f943
KR
9710Tue May 4 21:22:54 1993 Ken Raeburn ([email protected])
9711
9712 * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New
9713 files.
9714 * configure.in (m68k-*-hpux): Use them.
9715
9716 * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if
9717 defined, otherwise zero.
9718
9719 * config/aout_gnu.h (OMAGIC): Don't define if already defined.
9720
5d6cfa60
ILT
9721Mon May 3 15:59:32 1993 Steve Chamberlain ([email protected])
9722
9723 * config/tc-sparc.c (sparc_ip): Allow any abs expression as an
9724 address space number.
9725
9726Wed Apr 28 19:11:22 1993 Ken Raeburn ([email protected])
9727
9728 * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all.
9729
9730 * config/tc-a29k.c: Include ctype.h.
9731 (define_some_regs): Added special-purpose registers for 29050.
9732
e7c2f943
KR
9733 * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/".
9734
9735 * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here.
9736 (change_to_section): Set it here instead.
9737
a1387260
ILT
9738Wed Apr 28 13:40:29 1993 Ian Lance Taylor ([email protected])
9739
9740 * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
9741 hasn't been seen yet.
9742 (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
9743
4a1bbbe7
SC
9744Mon Apr 26 18:29:05 1993 Steve Chamberlain ([email protected])
9745
9746 * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
9747 SH.
9748
be2f6bd6
ILT
9749Mon Apr 26 12:28:27 1993 Ian Lance Taylor ([email protected])
9750
9751 * expr.c (operand): Fix unary plus operator (previously was the
9752 same as '~' operator!).
9753
9754Wed Apr 21 00:20:11 1993 Ken Raeburn ([email protected])
9755
9756 * write.c (cvt_frag_to_fill): Define even if BFD is defined.
9757 (write_object_file): Do define if BFD_ASSEMBLER. Invoke
9758 obj_check_file_symbols if defined. Call verify_symbol_chain_2
9759 instead of open-coding it. Fix some bugs in patching up symbol
9760 chain.
9761 (relax_segment): Make some code we "ought to be able to" use for
9762 all targets no longer conditionalized on ns32k target; instead, do
9763 it always, and if the appropriate conditions fail, abort.
9764
9765 * symbols.c (DEBUG): Enabled.
9766 (symbol_new): Make sure bfd_make_empty_symbol works.
9767 (verify_symbol_chain_2): New funcion; takes one symbol as
9768 argument, anywhere in the chain.
9769 (dollar_label*): Use default initializers.
9770
9771 * as.c (perform_an_assembly_pass): Call md_begin here...
9772 (main): ...and not here.
9773
9774 * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out.
9775 (tc_frob_symbol): New macro: Get rid of symbols in reg_section.
9776
9777 * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER.
9778 (add_fix, add_frag): Now functions instead of macros.
9779 (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num,
9780 s_data1, s_data2, s_bss): Use new *_section names, for
9781 compatibility with BFD_ASSEMBLER mode; rewrite switch statements
9782 to handle non-integral segT.
9783 (tc_coff_fix2rtype, tc_aout_fix_to_chars,
9784 tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER.
9785 (tc_gen_reloc): New routine for BFD_ASSEMBLER.
9786 (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to
9787 md_apply_fix_2; new md_apply_fix definition varies interface
9788 depending on BFD_ASSEMBLER.
9789 (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section
9790 names.
9791
9792 * config/obj-vms.c: Include config.h.
9793 (version_string): Delete declaration.
9794 (Write_VMS_MHD_Records): Use GAS_VERSION instead.
9795 (vms_resolve_symbol_redef): New function, taken from VMS code in
9796 symbols.c.
9797 (_doprnt): Deleted.
9798 (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct,
9799 VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix,
9800 VMS_Psect_Spec): Fixed to compiler under traditional C.
9801 * config/obj-vms.h: Use PARAMS macro.
9802 (vms_resolve_symbol_redef): Declare.
9803 (RESOLVE_SYMBOL_REDEFINITION): New macro.
9804 * symbols.c (colon): Remove some VMS-specific code, look for
9805 RESOLVE_SYMBOL_REDEFINITION macro instead.
9806
9807 * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc
9808 instructions.
9809
9810 * config/tc-i386.c: Reordered some functions so inlining might
9811 work. Use PARAMS in function declarations.
9812 (reloc): New routine.
9813 (md_assemble): Rearrange switch statements to work with
9814 non-integral segT.
9815
9816 * struc-symbol.h [BFD_ASSEMBLER]: Undefine
9817 SYMBOLS_NEED_BACKPOINTERS before defining it.
9818
9819 * subsegs.c (subseg_new_rest): Now static.
9820
9821 * read.c (pseudo_set): Better error message for difference of
9822 symbols in different frags.
9823
9824 * Makefile.in (check): Pass down some new variables, indicating
9825 pathname or program name for cc, nm, objdump.
9826
9827 * as.h (OUTPUT_FLAVOR): New macro.
9828 * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR.
9829
9830 * configure.in: Initialize bfd_gas properly. Warn that ELF
9831 support is incomplete.
9832
9833Thu Apr 15 22:39:05 1993 Ken Raeburn ([email protected])
9834
9835 * read.c (float_cons): Accept null pointer return from md_atof.
9836 * config/tc-m68k.c (md_atof): Return null for success.
9837 * config/tc-sparc.c (md_atof): Ditto.
9838
97a6070c
RP
9839Thu Apr 15 16:04:39 1993 Roland H. Pesch ([email protected])
9840
9841 * doc/as.texinfo: formatting and comment cleanups; show SPARC
9842 alternative options in same style as other machines; simplify some
9843 conditional use; include GPL as separate file (from texinfo dir)
9844
9845 * doc/Makefile.in: (as.info) include directory containing GPL in
9846 makeinfo search path
9847
9848 * doc/h8.texi: new file; conditional settings for GAS manual
9849 on Hitachi chips
9850
9851Tue Apr 13 15:31:40 1993 Roland H. Pesch ([email protected])
9852
9853 * doc/as.texinfo: mention SPARC architecture options.
9854
be2f6bd6
ILT
9855Fri Apr 9 17:43:11 1993 Ken Raeburn ([email protected])
9856
9857 * configure.in: Rearranged whitespace in per-host/per-target
9858 sections. Added hooks for dropping in HPPA support (not included
9859 yet). Separate out overrides of variables based on target format
9860 and bfd-gas selection from actual target-specific commands. Add
9861 error message for recognized but unsupported format name.
9862
349f20de
ILT
9863Fri Apr 9 09:05:47 1993 Ian Lance Taylor ([email protected])
9864
9865 * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
55ff56bd 9866 symbolic header match cline in FDR; the native linker seems to
349f20de
ILT
9867 want that.
9868
5316696f
DZ
9869Thu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9870
9871 * doc/Makefile.in: as.texinfo is in $(srcdir). Use
9872 $(srcdir)/as.texinfo explicitly in several places
9873
8ac18b21
RP
9874Thu Apr 8 15:15:02 1993 Roland H. Pesch ([email protected])
9875
132239bf 9876 * doc/Makefile.in: update dvi, clean targets for new source
69cb5925 9877 file structure
8ac18b21 9878
d565311f
ILT
9879Thu Apr 8 12:52:46 1993 Ian Lance Taylor ([email protected])
9880
9881 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
9882 rather than undefining know.
8ac18b21 9883 * configure.in: Match ultrix*, not just ultrix.
d565311f 9884
0742a6fd
RP
9885Wed Apr 7 20:18:10 1993 Roland H. Pesch ([email protected])
9886
9887 * doc/as.texinfo: converted conditional markup to use new
9888 Texinfo facilities, avoiding m4.
9889
9890 * doc/as-all.texinfo, all.m4, pretex.m4: deleted.
9891
9892 * doc/Makefile.in: recast doc configuration to use a link to an
9893 included texinfo file.
9894
9895 * doc/all.texi: settings for generic form of documentation.
9896
9897Tue Apr 6 11:56:21 1993 Ian Lance Taylor ([email protected])
9898
9899 * read.c (cons): Zero out frag when creating reloc.
9900
367fc835
ILT
9901Mon Apr 5 09:41:58 1993 Ian Lance Taylor ([email protected])
9902
84e4920f
ILT
9903 * config/tc-mips.c (gp_reference): Certain magic symbols can never
9904 be referenced off the GP register.
9905
367fc835
ILT
9906 * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
9907 when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
9908 LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
9909
9910 * config/te-irix.h: New file; irix needs a different LOCAL_LABEL
9911 definition from other MIPS targets.
9912 * configure.in (mips-*-irix): Use emulation irix.
9913
dd4227d3
SC
9914Sun Apr 4 15:21:09 1993 Steve Chamberlain ([email protected])
9915
9916 * config/tc-h8500.c: Get relax size of branch instructions right,
9917 (get_operand): Parse @sp+ correctly.
9918
be2f6bd6
ILT
9919Fri Apr 2 15:59:49 1993 Ken Raeburn ([email protected])
9920
9921 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include
9922 COFF section header field.
9923
9924 * configure.in: Print error message if host or target is not
9925 supported.
9926
9927 * configure.in: If with-bfd-assembler, use obj-coff instead of
9928 obj-coffbfd.
9929
9930 * config/ho-generic.h: Include string.h.
9931
ed364bb6
ILT
9932Fri Apr 2 08:54:57 1993 Ian Lance Taylor ([email protected])
9933
0433135d
ILT
9934 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
9935 '$' as local, for any object file format.
9936
477b4b04
ILT
9937 * config/tc-mips.c (macro): Optimizations to branching code and a
9938 couple of bug fixes from [email protected] (Ralph
9939 Campbell).
9940
ed364bb6
ILT
9941 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
9942 * configure.in (mips-sgi-irix*): Set gas_host to irix.
9943
670a50eb
ILT
9944Wed Mar 31 17:53:54 1993 Ian Lance Taylor ([email protected])
9945
9946 * subsegs.c (subseg_new): Set output_section of new section.
9947 * as.c (perform_an_assemly_pass): Don't set output_section here.
9948 * expr.c (expr_part, expr): Turn off section assertions for ECOFF,
9949 since it has additional sections.
9950 * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
9951 not bss_section.
9952 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
9953 ecoff_undefined field.
9954 * config/obj-ecoff.c (obj_symbol_new_hook): Initialize
9955 ecoff_undefined field.
9956 (add_file): If using stabs, just output a stabs symbol rather than
9957 creating a new fdr.
9958 (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
9959 it with get_absolute_expression, rather than skipping it by hand.
9960 (obj_ecoff_loc): If using stabs, just output a stabs symbol rather
9961 than ECOFF line number information.
9962 (obj_ecoff_stab): Accept non-zero values for stabs line number.
9963 (ecoff_build_symbols): Set ifilesym correctly. Set storage class
9964 to small, undefined and/or readonly sections if appropriate.
9965 Don't output symbol names containing \001 characters.
9966 (ecoff_frob_file): Make sure at least one fdr is output.
9967 * config/tc-mips.h: Define TC_MIPS.
9968 * config/tc-mips.c (g_switch_value): New static variable.
9969 (md_assemble): Set gp size of output BFD.
9970 (gp_reference): New function; returns 1 if expression can be
9971 accesssed via gp. Always returns 0 if not using ECOFF.
9972 (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
9973 possible.
9974 (macro): Generate sequences using gp if possible.
9975 (md_parse_option): Ignore -EL and -EB. Parse -G.
9976 (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
9977 (s_change_sec): Handle .rdata and .sdata for ECOFF.
9978 (s_extern): Mark symbol as external. Set ecoff_undefined field.
9979
2b1b5697
KR
9980Tue Mar 30 10:11:41 1993 Ken Raeburn ([email protected])
9981
670a50eb
ILT
9982 * output-file.c (output_file_create): Don't call as_perror for
9983 filename rejected by application.
9984
9985 * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink
9986 the output file.
9987
4b061a2a
KR
9988 * doc/as.texinfo: Don't use @value in node names for the moment;
9989 references don't appear to work right.
9990
4478def8
KR
9991 * as.h (const, volatile): Put these definitions back, and use
9992 them.
9993
2b1b5697
KR
9994 * doc/as.texinfo: First pass at using new texinfo features --
9995 variables, conditional tests. Far from complete.
9996
9997Mon Mar 29 16:05:40 1993 Ken Raeburn ([email protected])
9998
9999 * read.c: Temporary hack to handle some 64-bit constants. This
10000 should be redone later.
10001 (target_big_endian): Declare.
10002 (big_cons): If it's set, reverse order of bytes being copied.
10003 * config/tc-sparc.c (md_begin): Set target_big_endian.
10004
10005 * read.c (s_ignore): Delete declaration of is_end_of_line.
10006
10007 * config/obj-coffbfd.c (yank_symbols): Build list of file symbol
10008 forward pointers properly.
10009
e02eaa59
SC
10010Mon Mar 29 13:47:33 1993 Steve Chamberlain ([email protected])
10011
10012 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
10013 wasn't being stored into scnhdr.
10014 * config/obj-coffbfd.h: Add prototype of s_get_segment.
10015 * read.c (TC_START_LABEL): Default definition.
10016 (read_a_source_file): Use TC_START_LABEL macro to work out
10017 if a label has been seen.
10018
543d88e4
ILT
10019Mon Mar 29 12:56:56 1993 Ian Lance Taylor ([email protected])
10020
c39b3eba
ILT
10021 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
10022 the bottom (make expands variables in dependencies when the
10023 dependencies are read, not when they are used).
10024
543d88e4
ILT
10025 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
10026 a29k .bss section; the mondfe program doesn't like it.
10027
2b1b5697
KR
10028Sun Mar 28 08:12:53 1993 Ken Raeburn ([email protected])
10029
10030 * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of
10031 const.
10032 (current_architecture): Don't need initializer.
10033
10034Fri Mar 26 08:12:48 1993 Ken Raeburn ([email protected])
10035
10036 * doc/none.m4: Define Z8000.
10037 * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the
10038 texinfo file before recreating it.
10039 (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in
10040 this directory.
10041 (srcdir): Delete second, bogus definition.
10042 (as.info): Look for as-*.texinfo in current directory rather than
10043 in $(srcdir).
10044 (as.dvi): Ditto.
10045 (dvi): New rule.
10046 * doc/configure.in: Create links to all as-*.texinfo files in the
10047 source directory, if that's not the current directory.
10048
10049 * configure.in (per-host): Accept MIPS host with BSD version
10050 number.
10051 (per-target): Classify i486 as i386. Use generic cpu_type instead
10052 of target_cpu in selecting format etc.
10053
10054 * app.c (do_scrub_next_char): Use .appfile, not .app-file.
10055 * read.c (potable): Change .app-file to .appfile.
10056
10057 * config/ho-decstatn.h: Renamed from ho-decstation.h.
10058 * configure.in: Adjusted.
10059
10060 * config/obj-bfd-sunos.*: Unused; deleted.
10061
10062 * Makefile.in (version.c, vers-stamp): Deleted.
10063 (config.h): Define GAS_VERSION.
10064 * as.c (version_string): Deleted declaration.
10065 (main): Look for GAS_VERSION instead.
10066
10067 * doc/as.texinfo: Updated description of -a* (listing) options,
10068 and describe how to pass them through from gcc.
10069
10070 * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or
10071 process relocs if there aren't any relocs to process. Avoids
10072 malloc/free bug on SCO too.
10073
10074 * as.h: Move local include files below system include files, to
10075 avoid some redefinition complaints on some systems.
10076 (const, volatile): Don't need these conditionally defined if we
10077 use CONST and VOLATILE from ansidecl.h.
10078 (seg_name): Use CONST, not const.
10079
543d88e4
ILT
10080Fri Mar 26 10:22:04 1993 Ian Lance Taylor ([email protected])
10081
10082 * config/tc-mips.c: Reindented to GNU standards.
10083
2c19a57c
ILT
10084Thu Mar 25 08:59:14 1993 Ian Lance Taylor ([email protected])
10085
61001d96
ILT
10086 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
10087 (fixup_segment): Add a29k special case; the linker is not prepared
10088 to see a segment offset here.
10089
2c19a57c
ILT
10090 * app.c (do_scrub_next_char): Added new state, 10, modifying state
10091 9 to only keep a space in between identifier characters.
10092
afcc637a
DZ
10093Wed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10094
2d4bef5e
DZ
10095 * Makefile.in: add dvi target; as-$(config).texinfo might live in
10096 srcdir, might be in objdir.
afcc637a
DZ
10097
10098 * doc/Makefile.in: dvi depends on as.dvi
10099
80c8fd72
DZ
10100Mon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10101
10102 * Makefile.in: add installcheck target
10103
fd4b7c25
KR
10104Mon Mar 22 16:25:57 1993 Jim Wilson ([email protected])
10105
10106 * config/tc-sparc.c (sparc_ip): Add support for membar mask names.
10107 Add missing colons in prefetch error messages. Add support for
10108 ASI names.
10109
1369949e
ILT
10110Mon Mar 22 10:19:00 1993 Ian Lance Taylor ([email protected])
10111
10112 * config/tc-mips.c (macro): Use $AT for any floating point load.
10113
63cdddad
KR
10114Sat Mar 20 12:50:51 1993 Ken Raeburn ([email protected])
10115
10116 * config/tc-m68k.c (m68k_ip): For operand type 'M', reject
10117 bignums, but don't emit error message.
10118
69498fa2
JW
10119Fri Mar 19 21:02:19 1993 Jim Wilson ([email protected])
10120
10121 * Makefile.in (targ-cpu.o): Depend on config.h.
10122
f6a91cc0
ILT
10123Wed Mar 17 16:44:06 1993 Ian Lance Taylor ([email protected])
10124
10125 * app.c (do_scrub_next_char): Added new state, 9, to avoid
10126 dropping a space immediately following an identifier.
10127 * expr.c, write.c: Rewrote assert expressions to not use multiple
10128 lines; I don't think that can be done portably.
10129 * config/tc-mips.c (macro): Use $AT if target register is zero in
10130 load instruction, which it can be for a floating point load.
10131
a36f6645
ILT
10132Mon Mar 15 12:17:28 1993 Ian Lance Taylor ([email protected])
10133
3d3c5039
ILT
10134 * write.c (write_contents): Compute the relocs before writing out
10135 the section contents.
10136 * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
10137 symbol table and values right.
10138 * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
10139 with $L is local.
10140 * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
10141 by the section vma.
10142
10143 * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
10144 z8k-opc.h, not z8k.h.
10145
a36f6645
ILT
10146 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf
10147 symbol.
10148
2a697fa4
DZ
10149Fri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10150
10151 * configure.in: recognize sparc-sun-solaris2* instead of -solaris2
10152
f2f7d044
ILT
10153Fri Mar 12 12:00:07 1993 Ian Lance Taylor ([email protected])
10154
10155 * expr.c, write.c: Ultrix native 4.2 cc requires assert condition
10156 to be on a single line.
10157
ed099874
KR
10158Thu Mar 11 17:56:22 1993 Ken Raeburn ([email protected])
10159
10160 * Makefile.in (config.h): Create file, writing out definitions of
10161 target cpu, alias, and canonical name.
10162 (ALL_CFLAGS): No longer define TARGET_CPU.
10163
10164 * Makefile.in (check): Print a message, instead of quitting
10165 silently.
10166
10167 * as.c (main): Don't catch any signals, for now.
10168
10169 * version.c: Deleted.
10170 * Makefile.in: Generate it, putting in only the version number
10171 itself.
10172 (VERSION): New variable.
10173 * as.c: Include config.h.
10174 (main): Reformatted version string. Include target alias. Don't
10175 print if not requested (i.e., unknown -v argument).
10176
10177 * as.c (stralloc): Deleted.
10178 (main): Call strdup instead.
10179
10180 * configure.in: Handle all 68300 series chips.
10181 * config/tc-m68k.c: Include config.h.
10182 (md_assemble): Assume TARGET_CPU is defined. Accept some 68300
10183 series cpus as defaults.
10184 (md_parse_option): Accept some m68300 series CPUs as defaults.
10185
10186Wed Mar 10 17:41:16 1993 Ken Raeburn ([email protected])
10187
10188 * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if
10189 not already defined.
10190 (main, got_sig): Use them.
10191 * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default
10192 values.
10193
10194Tue Mar 9 07:40:06 1993 Ian Lance Taylor ([email protected])
10195
10196 * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF
10197 support.
10198
10199 * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs.
10200 OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN.
10201 (struct loc, struct proc, struct file): Moved to tc-mips.c within
10202 #ifndef OBJ_ECOFF block, since ECOFF uses different versions.
10203 * config/tc-mips.c: Rearranged for ECOFF support. Added
10204 prototypes for all static functions. Moved existing minimal
10205 debugging format support info #ifndef OBJ_ECOFF blocks.
10206 (macro_build_lui): Eliminated sign_extend argument, because ECOFF
10207 does not support a non sign extended high 16 bits reloc. Adjusted
10208 all callers accordingly.
10209 (tc_get_register): Renamed from get_register, and made non-static.
10210
10211 * config/mips-big.mt, config/mips-lit.mt: New files. Define
10212 TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN,
10213 respectively.
10214 * configure.in (mips-*-bsd*): Use gas_target mips-lit.
10215 (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using
10216 obj_format ecoff and gas_target mips-lit or mips-big.
10217
c5d4bc88
KR
10218Tue Mar 9 07:43:01 1993 Ken Raeburn ([email protected])
10219
10220 * version.c: Bump to version 2.0.1.
10221
fefba3a5
ILT
10222Tue Mar 9 07:40:06 1993 Ian Lance Taylor ([email protected])
10223
10224 * write.c (chain_frchains_together): Check that seg_info (section)
10225 is not NULL.
10226 (write_object_file): Call obj_frob_file after setting the symbols,
10227 not before.
10228
2b1b5697
KR
10229Tue Mar 9 00:00:00 1993 Ken Raeburn ([email protected])
10230
10231 * Version 2.0 released.
10232
fefba3a5
ILT
10233Mon Mar 8 14:57:10 1993 Ken Raeburn ([email protected])
10234
10235 * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only.
10236
10237Fri Mar 5 09:05:55 1993 Ian Lance Taylor ([email protected])
10238
10239 * read.h: Define stringer here.
10240 read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these
10241 places.
10242
bf449293
SC
10243Thu Mar 4 11:52:23 1993 Steve Chamberlain ([email protected])
10244
10245 * read.c (s_space): Multiply repeat count by mult, not fill.
10246
9471a360
KR
10247Thu Mar 4 05:20:42 1993 Ken Raeburn ([email protected])
10248
10249 * read.c: Include ctype.h.
10250
1101551c
KR
10251Wed Mar 3 10:41:46 1993 Ken Raeburn ([email protected])
10252
10253 Patches from Eric Youngdale:
10254 * make-gas.com: Find obstack.obj if it's not in the current
10255 directory.
10256 * read.c (s_ignore): Don't declare is_end_of_line. It's
10257 redundant, and triggers a VMS gcc compiler bug.
10258
10259 * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes
10260 current segment as an argument. (Ignored in all cases but VMS.)
10261 All callers and definitions changed.
10262
5e4cddb7
ILT
10263Tue Mar 2 11:56:19 1993 Ian Lance Taylor ([email protected])
10264
10265 * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING
10266 case compile again.
10267
f3ca2a64
KR
10268Tue Mar 2 08:53:34 1993 Ken Raeburn ([email protected])
10269
10270 * config/tc-m68k.c (isbyte): Accept all values from -255 to +255,
10271 so "~0x80" won't be rejected.
10272
10273 * config/obj-elf.c: No longer include elf/reloc.h.
10274 (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section.
10275 (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out
10276 routines.
10277 (obj_elf_xstab): New routine.
10278 (obj_elf_set_size): Call as_warn, not fprintf. Pass desired
10279 argument to s_ignore. Put "#if 0" around unused code.
10280 (obj_pseudo_table): Use s_ignore instead of do-nothing routines.
10281 Call elf_xstabs for .stabs and .xstabs operators.
10282
10283 * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc".
10284
10285 * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are
10286 present.
10287
10288 * configure.in: mips-bsd configuration was missing format spec.
10289 Should use aout.
10290
10291 * Makefile.in (Makefile): Depends on configure.in.
10292
10293 * config/tc-mips.c (append_insn): Don't check for alignment of
10294 frag in memory; alignment of instructions in section is a separate
10295 matter.
10296
10297 * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI
10298 C availability.
10299
10300 * listing.h: Always provide function declarations, not macros, so
10301 pcc won't lose.
10302
7687d89b
JG
10303Tue Mar 2 00:50:43 1993 John Gilmore ([email protected])
10304
10305 * CONTRIBUTORS: Update Gilmore entry.
10306
fd4b7c25
KR
10307Mon Mar 1 12:03:16 1993 Jim Wilson ([email protected])
10308
10309 * config/tc-sparc.c (sparc_ip): Correctly assemble prefetch
10310 instructions. Accept integer prefetch function numbers.
10311
7687d89b
JG
10312Wed Feb 24 14:58:19 1993 Ken Raeburn ([email protected])
10313
fd4b7c25
KR
10314 * config/tc-sparc.c (s_xword): Now call big_cons, so large
10315 constants are accepted, but symbolic values are not. GCC will not
10316 generate the latter currently.
10317
7687d89b
JG
10318 * frags.c (frag_init): New function.
10319 (zero_address_frag, bss_address_frag): Now initialized at run
10320 time.
10321 * as.c (main): Call frag_init.
10322
160b7f0f
ILT
10323Wed Feb 24 10:32:42 1993 Ian Lance Taylor ([email protected])
10324
10325 * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case:
10326 Don't unget ch2 if we didn't get it.
10327
0cca30f3
KR
10328Wed Feb 24 04:14:07 1993 Ken Raeburn ([email protected])
10329
10330 * doc/Makefile.in (TEXIDIR): Updated for new layout.
10331
10332 * config/tc-sparc.c (s_common): Add support for ELF version.
10333 (tc_gen_reloc) [BFD_ASSEMBLER]: New function.
10334 * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]:
10335 New macros.
10336 (md_convert_frag): New macro.
10337
10338 * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a
10339 symbol, fix the offset so "+2" isn't required.
10340
10341 * config/tc-i960.c (line_comment_chars, line_separator_chars):
10342 Define as common/bss.
10343 (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C
10344 initializers are sufficient.
10345
10346 * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd.
10347 (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out".
10348 (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros.
10349 (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro.
10350 * config/obj-aout.c: Use PARAMS macro for declarations. Remove
10351 "IGNORE_DEBUG" conditional, since both branches are identical.
10352 Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly
10353 referencing symbol structure members.
10354 (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function.
10355
10356 * as.h (struct frag): Reordered a couple of fields for better
10357 packing.
10358
10359 * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the
10360 section info.
10361 (write_contents) [BFD_ASSEMBLER]: New function.
10362 (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call
10363 fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call
10364 obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined.
10365 (fixup_segment): Make sure common-section symbols get treated the
10366 same as undefined symbols.
10367 (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type
10368 bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from
10369 section info.
10370 * write.h (fix_new): Update prototype.
10371
10372 * tc.h (md_operand, md_convert_frag, tc_headers_hook,
10373 md_section_align, md_undefined_symbol): Don't provide prototypes
10374 if these are defined as macros.
10375 (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and
10376 section passed.
10377
10378 * symbols.c (symbol_new): Argument NAME is now pointer to const.
10379 Simplified STRIP_UNDERSCORE code. Remove assumptions about null
69cb5925 10380 pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new
0cca30f3
KR
10381 BFD symbol.
10382 (colon): Display other/desc fields of redefined symbol only if
10383 S_GET_OTHER and S_GET_DESC are defined.
10384 (symbol_make): Argument NAME is now pointer to const.
10385 (symbol_find, symbol_find_base): Likewise.
10386 (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions.
10387 * symbols.h: Fix prototypes for new const arguments. Add
10388 prototypes for BFD_ASSEMBLER S_* functions.
10389
10390 * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code
10391 for changing to an existing section.
10392 (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new,
10393 called by subseg_new and subseg_set.
10394 (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section,
10395 given section name and subseg number.
10396 (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly
10397 new section/subsection.
10398
10399 * read.c: Don't include ctype.h.
10400 (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32
10401 for now; should be machine-dependent.
10402
10403 * configure.in: Accept *-*-elf and *-*-solaris* as ELF format
10404 targets, forcing BFD use.
10405
10406Wed Feb 17 18:59:03 1993 Ken Raeburn ([email protected])
10407
10408 * config/tc-sparc.c: Use PARAMS macro for static function
10409 declarations. Use BFD_RELOC_ macros everywhere, with
10410 compatibility macros declared for non-BFD mode.
10411 (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type
10412 instead of enum reloc_type.
10413 (emit_sparc_reloc): Commented-out function deleted.
10414 (md_convert_frag): Deleted.
10415 (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER.
10416 (md_apply_fix): Changed calling sequence (conditionally) for BFD
10417 version.
10418 * config/tc-sparc.h (md_convert_frag): New macro.
10419
10420 * config/obj-aout.c (obj_aout_stab): Refer to undefined_section,
10421 not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead
10422 of referencing fields directly.
10423
10424 * write.c (cvt_frag_to_fill): New function; extracted from
10425 write_object_file.
10426 (write_object_file) [! BFD_ASSEMBLER]: Call it.
10427 (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section
10428 and set its size and flags.
10429
10430 * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some
10431 fields with BFD equivalents. Turn on back-pointers, and add
10432 target-specific fields at end.
10433
10434Thu Feb 11 09:20:37 1993 Ian Lance Taylor ([email protected])
10435
10436 * config/obj-coffbfd.c (fill_section): Don't set vaddr here.
10437 (write_object_file): Set it here instead, so that fixup_segment
10438 can see the correct value.
10439
10440Mon Feb 8 13:56:17 1993 Ken Raeburn ([email protected])
10441
10442 * write.c (write_object_file): Check for errors and warnings and
10443 bail out before processing contents.
10444 (chain_frchains_together_1): New function, does most of the work
10445 of remove_subsegs.
10446 (chain_frchains_together) [BFD_ASSEMBLER]: New function.
10447 (remove_subsegs) [! BFD]: Call it.
10448 (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD
10449 structures and routines.
10450
10451 * config/obj-elf.*: New files.
10452
10453 * config/mips.mt, config/rs6000.mt: Deleted.
10454
10455 * config/h8300.mt: Don't specify compiler here.
10456
7687d89b 10457 * config/z8k.mt: The z8k code depends on the z8k opcode table,
0cca30f3
KR
10458 not the h8300 one.
10459 * config/tc-z8k.h: Comment fix.
10460
10461 * write.c: Reordered some functions for better inlining.
10462 (fixup_segment): Linkrelax code is no longer conditional on
10463 TC_I960.
10464
10465Thu Feb 4 12:45:16 1993 Steve Chamberlain ([email protected])
10466
10467 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,
10468 obj-coffbfd.h}: support for the H8/500
10469
10470Wed Feb 3 19:28:18 1993 Ken Raeburn ([email protected])
10471
10472 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here.
10473 * write.c (write_object_file): Not here.
10474 (fix_new): Initialize fx_addnumber.
10475
10476 * listing.c: Don't include target-cpu.h explicitly, since as.h
10477 includes it.
10478
10479Thu Jan 28 00:35:40 1993 Ken Raeburn ([email protected])
10480
10481 * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP,
10482 *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP.
10483 (struct fix): Reordered fields for compactness and efficiency.
10484 Converted some logical fields to 1-bit fields.
10485
10486 * config/obj-aout.h: Use PARAMS.
10487 [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE,
10488 N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE.
10489
10490 * read.c: Don't include listing.h; as.h includes it. Removed
10491 DONTDEF code.
10492 [BFD_ASSEMBLER]: Include subsegs.h.
10493 (old_buffer, new_broken_words): Default initialization is
10494 sufficient.
10495
10496 * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH
10497 to 0, define stdoutput.
10498 (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure.
10499 Call bfd_set_arch_mach.
10500 (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not
10501 bfd_close_all_done. Call bfd_perror on failure.
10502 (output_file_append) [BFD_ASSEMBLER]: Don't define.
10503
10504 * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition.
10505
10506 * subsegs.h (segment_info_type): Always define. Omit field scnhdr
10507 if not MANY_SEGMENTS. Define new field bfd_section if
10508 BFD_ASSEMBLER.
10509 (seg_info): New macro.
10510
10511 * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused
10512 variables, and some irrelevant comments.
10513
10514 * Makefile.in (ALL_CFLAGS): Include $(BFDDEF).
10515 (LIBS): Include $(BFDLIB). Don't bother with $(CLIB).
10516 * configure.in: Permit --with-bfd-assembler now, with a warning.
10517 Variable need_bfd is now a boolean, as is new variable bfd_gas.
10518 Set BFDDEF and BFDLIB in Makefile when appropriate.
10519
10520 * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code.
10521 (main): Refer to flag_always_generate_output instead of
10522 flagseen['Z'].
10523
10524 * as.c (main) [BFD_ASSEMBLER]: Open output bfd.
10525 (*_section) [BFD_ASSEMBLER]: Define them.
10526 (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and
10527 set section flags when appropriate.
10528 * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified
10529 section is not absolute, undefined, or an assembler internal one.
10530 (absolute_section, undefined_section): Always define.
10531 * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break
10532 switch statements into if-else trees.
10533 * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of
10534 SEG_BSS and SEG_DATA.
10535
10536 * as.h (frag_now_fix): New macro.
10537 * symbols.c (colon): Use it.
10538
10539Wed Jan 27 21:43:53 PST 1993 Ralph Campbell ([email protected])
10540
10541 * config/tc-mips.c: Added mips support for mips-dec-bsd.
10542 * config/tc-mips.h: Added mips support for mips-dec-bsd.
10543 * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd.
10544 * config/mips-opcode.h: Added mips support for mips-dec-bsd.
10545 * configure.in: Added mips support for mips-dec-bsd.
10546 * atof-generic.c: Define TRUE and FALSE if not defined.
10547
10548Thu Jan 21 12:48:19 1993 Ken Raeburn ([email protected])
10549
10550 * version.c: Bumped version number to 1.93.05.
10551
10552Wed Jan 20 17:11:53 1993 Ken Raeburn ([email protected])
10553
10554 * config/obj-coff.c (obj_emit_relocations): Don't use #elif.
10555 (obj_emit_lineno): Don't need return at end of void function.
10556 (obj_symbol_new_hook): Ditto.
10557
10558 * config/tc-m68k.c: Removed some unused code.
10559 (tc_aout_fix_to_chars): Array nbytes_r_length is now const.
10560
10561 * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only
10562 offset field is set.
10563
10564Fri Jan 8 05:44:49 1993 Ken Raeburn ([email protected])
10565
fd4b7c25
KR
10566 * config/tc-sparc.c (sparc_ip): For %uhi and %ulo, if not
10567 ENV64, emit no reloc.
10568 (md_pseudo_table): For ".xword", call s_xword.
10569 (s_xword): New function.
10570
0cca30f3
KR
10571 * config/tc-sparc.c (architecture_requested, warn_on_bump,
10572 md_relax_table): Use default zero initialization.
10573 (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the
10574 latter, instead of selecting with preprocessor conditionals.
10575
10576Thu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10577
10578 * configure.in: recognise all sparclite variants
10579
10580Thu Jan 7 05:25:25 1993 Ken Raeburn ([email protected])
10581
10582 * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change --
10583 accidentally changed to use subseg_change where it should have
10584 been subseg_new.
10585
6c5f9998
KR
10586Tue Jan 5 08:42:16 1993 Ken Raeburn ([email protected])
10587
0bd77bc4
KR
10588 * expr.c (operand): If character other than comma or newline is a
10589 logical end-of-line character, use the newline case.
0cca30f3
KR
10590 From Eric Youngdale:
10591 (operand): Set X_add_number field for floating-point numbers.
10592 (operand): Treat zero byte as end-of-operand.
0bd77bc4 10593
6c5f9998
KR
10594 * configure.in (per-target): Look for with_bfd_assembler option.
10595 For now, only accept "no", until the merge is done.
10596
0cca30f3
KR
10597 Merged changes from Eric Youngdale ([email protected]):
10598 * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c,
10599 config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS.
10600 * read.c: Finish conversion to S_* macros in the VMS only
10601 parts of the program. Add "const" modifier to hex_value.
10602 * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to
10603 "ifdef OBJ_VMS".
10604 * expr.c: Add "const" modifier to hex_value.
10605 * symbols.c: Finish conversion to S_* macros in the VMS only
10606 parts of the program. Add "const" modifier to
10607 md_[long,short]_jump_size. Remove declaration of const_flag
10608 (which will be declared in obj-vms.h).
10609 * write.c: Add "const" modifier to md_[long,short]_jump_size.
10610 Fix arguments to VMS_write_object_file.
10611 * config-gas.com: New file. Script for VMS systems to set up the
10612 configuration to build gas for VMS, and create config.status.
10613 * make-gas.com: Redone to work with new scheme.
10614 * obj-vms.c: Patch to fix bug where we were not correctly parsing the
10615 stabs directives.
10616 * obj-vms.c: Define macros COPY_LONG and COPY_SHORT which
10617 will swap bytes if needed on a big endian system. Use throughout
10618 as needed.
10619 * obj-vms.c (obj_aout_stab): Add code to generate listing file.
10620 * obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain
10621 types of malformed stabs. Change parsing algorithm so that we are
10622 more certain of having all of the information that we need on hand.
10623 * obj-vms.c (final_forward_reference): New function, used to help
10624 resolve the data types of as many struct elements as possible
10625 when some part of the struct is not fully defined by the compiler.
10626 * obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation
10627 stabs directives.
10628 * obj-vms.c (VMS_write_object_file): Define all vtable psects
10629 as symbols as well in the object file. Look for external functions
10630 that start with "__vt.", and turn them into variables, since the
10631 g++ compiler is incapable of doing this.
10632 * tc-vax.c: Add '1' option for backward compatibility with older GCC
10633 versions.
10634 * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes.
10635 * input-scrub.c (as_where): Fix bug where as would crash if we did not
10636 have the name of the source file yet.
10637 * config/ho-vms.h: define HO_VMS, not HO_VAX.
10638
9d76a195
KR
10639Mon Jan 4 05:17:26 1993 Ken Raeburn ([email protected])
10640
10641 * read.c (s_data): Always use "data_section", since it'll map to
10642 SEG_DATA or SEG_E1 if needed.
10643 (s_lcomm): Likewise with bss_section.
10644 (s_fill): Use memset, not bzero.
10645
10646Thu Dec 31 04:29:27 1992 Ken Raeburn ([email protected])
10647
10648 * read.c: Deleted some code under "#ifdef DONTDEF" that was for
10649 handling GDB symbol table data.
10650
10651 * config/obj-aout.h (segment_name): Delete definition.
10652 (seg_name): Delete declaration.
10653 * config/obj-bout.h (segment_name, seg_name): Ditto.
10654 * config/obj-vms.h (segment_name, seg_name): Ditto.
10655 * config/obj-coff.h (segment_name): Ditto.
10656 * config/obj-coffbfd.h (segment_name): Ditto.
10657
10658 * Changes for BFD_ASSEMBLER:
10659 * obj.h (obj_crawl_symbol_chain): Declare only if not
10660 BFD_ASSEMBLER.
10661 (obj_header_append, obj_pre_write_hook): Ditto.
10662 * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER.
10663 (segT) [BFD_ASSEMBLER]: New typedef for "asection *".
10664 (segment_name) If BFD_ASSEMBLER, look up BFD section name;
10665 otherwise, use seg_name array.
10666 (seg_name): Declare only if not BFD_ASSEMBLER.
10667 (section_alignment): Declare only if not BFD_ASSEMBLER.
10668 (big_section, reg_section, pass1_section, diff_section,
10669 absent_section, text_section, data_section, bss_section): If
10670 BFD_ASSEMBLER, declare as variables; otherwise, declare as macros,
10671 mapping to segT enum values.
10672 (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors
10673 if these are used or defined, if BFD_ASSEMBLER.
10674 (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old
10675 subseg_new split into two functions.
10676 (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now.
10677
10678 * as.h (volatile): Don't define if already defined.
10679 (had_errors, had_warnings): Provide prototypes for ANSI C even if
10680 NO_STDARG.
10681 (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2,
10682 declare with format attribute for -Wformat checking.
10683
85825401
ILT
10684Wed Dec 30 10:18:57 1992 Ian Lance Taylor ([email protected])
10685
10686 * app.c, config/tc-*.c: Don't include read.h, since it is already
10687 included by as.h.
10688
10689 * These are based on patches from Minh Tran-le
10690 <[email protected]>.
10691 * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use
10692 obj_format coffbfd and gas_target i386coff for target.
10693 (i[34]86-*-isc*): New host (uses sysv).
10694 * config/i386aix.mt: Removed (no longer used).
10695 * config/mh-i386aix (RANLIB): Use true rather than /bin/true.
10696 (MINUS_G): Removed.
10697 (LDFLAGS): Added, defined as -shlib.
10698 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
10699 * config/te-sco386.h (LOCAL_LABEL): Don't define.
10700 (DOT_LABEL_PREFIX): Define.
10701 * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
10702 name rather than L0\001.
10703 * read.c (s_lcomm): Make a frag in SEG_BSS rather than using
10704 local_bss_counter.
10705 * symbols.c, symbols.h (local_bss_counter): Removed.
10706 * write.c (write_object_file): bss no longer uses
10707 local_bss_counter. Pass correct data and bss size to
10708 VMS_write_object_file.
10709 * config/obj-vms.c (VMS_write_object_file): Accept bss size as
10710 argument, rather than using local_bss_counter.
10711 * config/tc-m88k.c (s_bss): Don't use local_bss_counter.
10712 * config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
10713 * config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
10714 (size_section): Restored sanity check.
10715 (do_relocs_for): Base section address on s_paddr rather than
10716 computing it. Adjust a29k R_IHIHALF special case to account for
10717 section paddr (used to require paddr to be zero). If there are no
10718 reclos, set s_relptr to 0. Set relocation size in object_headers.
10719 (fill_section): Always set s_vaddr here, removing
10720 ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set
10721 NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
10722 Set STYP_INFO for .comment.
10723 (coff_header_append): Use object headers and H_{SET,GET}_* macros.
10724 Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
10725 (crawl_symbols): Handle 8 character section name correctly. Use
10726 H_{SET,GET}_* macros.
10727 (do_linenos_for): Set lineno size in object_headers.
10728 (write_object_file): Use H_{SET,GET}_* macros. Don't bother to
10729 set s_vaddr here. If string_byte_count remains 4, set it back to
10730 0, and only write strings out if there are some. Call
10731 fill_section before do_relocs_for and do_linenos_for.
10732 (obj_coff_section): Handle optional quoted second argument giving
10733 section characteristics.
10734 (obj_coff_bss): Added to handle .bss.
10735 (obj_coff_ident): Added to handle .ident (puts string in .comment
10736 section).
10737 (obj_coff_lcomm): Put common symbols in .bss, not .data.
10738 (fixup_mdeps): Change to segment. Call frag_wane after
10739 md_convert_frag.
10740 (fixup_segment): Explicitly check S_IS_COMMON before making 386
10741 adjustment (already happened only for common symbols, but this is
10742 clearer).
10743 * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
10744 * config/tc-i386.c (s_bss): Don't use if I386COFF.
10745 (md_pseudo_table): Ignore .optim and .noopt.
10746 (tc_coff_sizemachdep): New function.
10747 * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
10748 compatibility.
10749 (LOCAL_LABEL): Removed definition.
10750 (DOT_LABEL_PREFIX): Defined.
10751
4539aa02
KR
10752Mon Dec 28 10:32:05 1992 Ken Raeburn ([email protected])
10753
6d331d71
KR
10754 * app.c (app_push): Use memcpy, not bcopy.
10755 (do_scrub_next_char): For \", return " not '.
10756 (symbol_chars): Now const.
10757
4539aa02
KR
10758 * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f"
10759 and "0b". If LOCAL_LABELS_DOLLAR, check for "0$".
10760
10761 * config/obj-coff.h: Don't use #elif.
10762
10763 * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't
10764 have it. (Reported by Noah Friedman, [email protected].)
10765
3eb802b5
ILT
10766Wed Dec 16 12:12:33 1992 Ian Lance Taylor ([email protected])
10767
10768 * write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
10769 already defined.
10770
be06bdcd
SC
10771Tue Dec 15 12:40:11 1992 Steve Chamberlain ([email protected])
10772
10773 * app.c (do_scrub_begin): allow single quote strings if so
10774 configured.
10775
10776 * config/*z8k*: checkpoint
10777
10778Sun Dec 13 00:04:38 1992 Ian Lance Taylor ([email protected])
10779
10780 * read.c (read_a_source_file): avoid calling xmalloc (0).
10781
016e0d42
ILT
10782Sat Dec 12 15:26:34 1992 Ian Lance Taylor ([email protected])
10783
10784 * listing.c: Call xmalloc, not malloc; don't declare malloc.
10785
10786 * Changes to support SCO 3.2v4:
10787 * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
10788 SEG_BSS, fill with NOP_OPCODE.
10789 * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
10790 * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
10791 using ZERO_BASED_SEGMENTS.
10792 (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
10793 never set segment address for SEG_E2 (.bss) and don't write out
10794 SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
10795 (obj_coff_endef): Don't merge labels or symbols awaiting forward
10796 definitions, and don't merge tags with non-tags. Check for .bf
10797 rather than just checking whether the second character is b and
10798 the third character is f.
10799 (obj_coff_val): gcc can generate values which we don't handle
10800 correctly; discard information for now, since it only affects the
10801 debugging information.
10802 (tag_find_or_name): Don't insert tags in the symbol table.
10803 (yank_symbols): Don't merge labels.
10804 (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
10805 already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
10806 set segment address if ZERO_BASED_SEGMENTS.
10807 (obj_coff_section): Accept and ignore a trailing quoted string, as
10808 used in AT&T i386 syntax.
10809 (fixup_segment): Take segment as argument. On the i386, adjust PC
10810 relative addends by the segment vaddr.
10811 * tc-i386.h: Define SUB_SEGMENT_ALIGN.
10812 * tc-a29k.h: Define ZERO_BASED_SEGMENTS.
10813 * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
10814
db33220f
KR
10815Tue Dec 8 00:06:48 1992 Ken Raeburn ([email protected])
10816
016e0d42
ILT
10817 * config/obj-coffbfd.c: Include libcoff.h.
10818
db33220f
KR
10819 * version.c: Now version 1.93.
10820
dde624ef
KR
10821Mon Dec 7 00:39:09 1992 Ken Raeburn ([email protected])
10822
db33220f
KR
10823 * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do
10824 power-of-two alignment for .align.
10825
dde624ef
KR
10826 * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial,
10827 and leave everything else alone.
10828
10829Fri Dec 4 16:58:42 1992 Ken Raeburn ([email protected])
10830
10831 * Makefile.in (as.new): Don't bother saving as.old.
10832
10833 * write.c: Conditionalize on OBJ_VMS, not VMS.
10834 (magic_number_for_object_file): Don't define if OBJ_VMS.
10835
10836 * config/obj-vms.c: Changes for traditional C.
10837
7f2cb270
KR
10838Thu Dec 3 01:24:07 1992 Ken Raeburn ([email protected])
10839
10840 * config/ho-generic.h (malloc, realloc): Declare.
10841
10842 * Lots of comment/whitespace changes.
10843
10844 * write.h (struct fix): Some fields reordered, narrowed.
10845
10846 * read.c (MASK_CHAR): Define using C types, not magic number.
10847
10848 * as.c, input-file.c: Deleted some unused code.
10849
10850 * app.c, as.h: Doc fix.
10851
10852 * flonum-konst.c, flonum-mult.c: Include ansidecl.h.
10853
10854 * as.h (xmalloc): Argument is long.
10855
10856 * xmalloc.c (error): Remove declaration; as.h takes care of it.
10857
0cca30f3
KR
10858 * doc/as.texinfo: Regrouped documentation of some command-line
10859 options. Updated options documentation for m68k. Some minor
10860 wording/punctuation changes.
10861
7f2cb270
KR
10862Mon Nov 30 11:42:11 1992 Ken Raeburn ([email protected])
10863
10864 * configure.in: Accept target OS "vms".
10865
10866 * symbols.c: Merged ANSI and non-ANSI function decls, using
10867 PARAMS macro.
10868
10869 * xmalloc.c: Just include as.h, don't bother trying to figure out
10870 other header files.
10871
10872 * strstr.c, strerror.c: Deleted.
10873 * Makefile.in: Deleted references.
10874
10875 * config/tc-ns32k.c: Don't include header file for string
10876 declarations; leave that to ho-*.h.
10877
10878Fri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com)
10879
10880 * config/coff_gnu.h [TC_I860]: Guesses for reloc type values,
10881 imported from FSF sources.
10882
10883 * messages.c (strerror): Declare unconditionally.
10884
10885 * as.h: Delete alloca and register definitions.
10886
10887 * config/atof-ieee.c (mask): Now const.
10888
10889 * obstack.c, obstack.h: Deleted.
10890
10891 * as.h (flag_readonly_data_in_text): New flag.
10892 * as.c (main): Set it for -R.
10893
10894 * as.h (flag_suppress_warnings): New flag.
10895 * as.c (main): Set it for -W.
10896 * messages.c (as_warn): Check it instead of flagseen['W'].
10897
10898 * as.h (flag_always_generate_output): New flag.
10899 * as.c (main): Set it for -Z.
10900
10901 * config/tc-sparc.h: Define NEED_FX_R_TYPE.
10902 * config/tc-a29k.h: Ditto.
10903 * write.h (struct fix): Don't conditionalize fx_r_type field on TC
10904 macros.
10905
10906 * as.h: Merged ANSI and non-ANSI function decls, using PARAMS
10907 macro.
10908 * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h,
10909 obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h,
10910 write.h: Likewise.
10911 * read.c: Likewise.
10912
10913 * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in
10914 xrealloc from xrealloc.c.
10915 * xrealloc.c: Deleted.
10916 * Makefile.in (REAL_SOURCES, OBJS): Adjusted.
10917
10918 * configure.in: For host CPU a29k, rs6000, vax, consider using bsd
10919 or vms ho- files.
10920
10921 * config/ho-sysv.h (setbuffer, HO_USG): Deleted.
10922
10923 * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer;
10924 don't initialize it with NULL.
10925
10926 * config/ho-vax.h (M_VAX): Deleted; was unused.
10927
10928 * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h:
10929 New files imported from FSF version, contributed by Eric Youngdale.
10930 * README-vms-dbg, config/vms: Deleted.
10931
10932 * ChangeLog, config/ChangeLog: Merged.
10933
10934 * config/*tahoe*, configure.in: Tahoe support brought in from FSF
10935 version.
10936
10937 * input-file.c (input_file_open): Eliminate call to setvbuf.
10938 [USG] (setbuffer): Deleted macro.
10939
6efd877d
KR
10940Mon Nov 23 11:00:16 1992 Ken Raeburn ([email protected])
10941
10942 * all files: Whitespace changes for GNU indentation style, done by
7f2cb270 10943 GNU `indent'. Some cleanup still needed, especially of comments.
6efd877d
KR
10944
10945 * configure.in: No te-386bsd.h file exists; don't try to use it.
10946
7f2cb270
KR
10947 * obj-coff.c (obj_coff_endef): Use as_warn, not fprintf.
10948
10949 * tc-m68k.c (md_assemble): Don't complain about 68000 with 68881;
10950 could be doing emulation.
10951
0cca30f3 10952Thu Nov 19 11:47:19 1992 Steve Chamberlain ([email protected])
132239bf 10953
69cb5925 10954 z8000 documentation
0cca30f3
KR
10955 * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo:
10956 all modified.
10957
6efd877d
KR
10958Tue Nov 10 09:49:24 1992 Ian Lance Taylor ([email protected])
10959
10960 * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h.
10961
10962 * subsegs.h: add extern to segment_info declaration.
10963
10964 * read.h: added extern declarations for comment_chars,
10965 line_comment_chars, and line_separator_chars.
10966 read.c, app.c: removed definitions of comment_chars,
10967 line_comment_chars, and line_separator_chars.
10968
7f2cb270
KR
10969 * tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined,
10970 still accept (but don't require) OPTIONAL_REGISTER_PREFIX before
10971 the register name.
10972 (insert_reg): put REGISTER_PREFIX before register names before
10973 putting them in the symbol table.
10974 * tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not
10975 M68KCOFF.
10976
10977 * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss
10978 section.
10979
10980 * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS,
10981 comment_chars, line_comment_chars and line_seperator_chars
10982 consistently const, and always initialized them. Included read.h.
10983
10984Thu Nov 5 17:55:41 1992 Jim Wilson ([email protected])
10985
10986 * tc-sparc.c (sparc_ip): Add code to flag error if an absolute
10987 constant will not fit in an immediate field.
10988 (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow.
10989
10990Wed Nov 4 07:50:46 1992 Ken Raeburn ([email protected])
10991
10992 * obj-coff.c (callj_table): Delete global variable.
10993 (obj_emit_relocations): Define it locally here, and only if
10994 TC_I960 is defined.
10995
10996 * tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name.
10997 (m68k_ip): Don't warn about bignum used as float bit-pattern.
10998
10999 * obj-coff.c: Replaced ANSI and non-ANSI function declarations
11000 with a single set using PARAMS macro.
11001
11002 * tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length
11003 of 2.
11004
11005 * tc-i960.c: Missed a couple of 0->NO_RELOC conversions.
11006
11007 * tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values,
11008 so widening works consistently.
11009
6efd877d
KR
11010Wed Oct 28 08:52:34 1992 Ken Raeburn ([email protected])
11011
11012 * version.c: Put conditional "const" before version_string, not
11013 before dummy function for VMS. Now version 1.91.03.
11014
11015 * app.c (do_scrub_next_char): Need double-\ before `000' to show
11016 printed rep of null character.
11017
7f2cb270
KR
11018Fri Oct 23 14:40:38 1992 Ian Lance Taylor ([email protected])
11019
11020 * obj-coffbfd.c (write_object_file): check return value of
11021 bfd_close_all_done.
11022
559d9aac
ILT
11023Tue Oct 20 12:18:08 1992 Ian Lance Taylor ([email protected])
11024
7f2cb270
KR
11025 * Support for i386-sysv.
11026 obj-coffbfd.c (do_relocs_for, write_object_file): set segment
11027 addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can
11028 be used to set them all to zero as was done before.
11029 (fill_section): segment addresses now set in write_object_file.
11030 (fill_section): Don't set STYP_NOLOAD for .bss section.
11031 (fixup_segment): 386 uses strange common symbol format.
11032 tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
11033 compatibility with SVR3.2 linker.
6efd877d
KR
11034 * configure.in: i386-sysv and i386-sco use coffbfd.
11035
559d9aac
ILT
11036 * app.c (do_scrub_next_char): discard whitespace after a label.
11037
0f8b9790
DZ
11038Sat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11039
11040 * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4
11041 hosts, use the sysv configuration for solaris2
11042
7f2cb270
KR
11043Mon Oct 5 09:28:57 1992 Steve Chamberlain ([email protected])
11044
132239bf 11045 fix i960+non-bfd coff bit rot.
7f2cb270
KR
11046 * obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
11047 support for C source listings. (obj_coff_endef): look in the right
11048 part of the symbol for the symbol name
11049
11050 * tc-m68k.c (get_num): make it work for all segments, not just the
11051 first three.
11052
984cf2d7
ME
11053Mon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
11054
69cb5925 11055 * configure.in: recognize i386-*-bsd emulation.
984cf2d7
ME
11056
11057Thu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11058
11059 * configure.in: use the cpu-vendor-os triple for host and target
11060
7f2cb270
KR
11061Tue Sep 29 12:22:52 1992 Steve Chamberlain ([email protected])
11062
11063 * obj-coffbfd.c (write_object_file): don't fixup for the z8k
11064 * tc-z8k.c: lots of bug fixes
11065
11066Tue Sep 29 10:51:55 1992 Ian Lance Taylor ([email protected])
11067
11068 * tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
11069 #elif, since it is not supported by old compilers.
11070 ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
11071 couple of expressions in tc-m68k.c.
11072
984cf2d7
ME
11073Mon Sep 28 21:18:24 1992 Ken Raeburn ([email protected])
11074
11075 * read.c (cons): If NO_RELOC is defined, use it.
11076
7f2cb270
KR
11077 * tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new.
11078
11079Fri Sep 25 18:18:52 1992 Ian Lance Taylor ([email protected])
11080
11081 * tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
11082 local labels to start with a .) and set REGISTER_PREFIX to %.
11083 tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
11084
5a0fc1d4
JG
11085Fri Sep 25 17:53:43 1992 John Gilmore ([email protected])
11086
11087 * messages.c: Comment changes.
11088
4959cb7b
KR
11089Fri Sep 25 14:12:58 1992 Ken Raeburn ([email protected])
11090
11091 * as.h: Test if __STDC__ is defined only, don't test its value.
11092 * messages.c: If __STDC__ is not defined, define NO_STDARG.
11093
5e9d510e
BK
11094Thu Sep 24 12:42:32 1992 Brendan Kehoe ([email protected])
11095
11096 * listing.c (debugging_pseudo): Add stabs and stabn as things to
11097 ignore.
11098
7f2cb270
KR
11099Tue Sep 22 13:02:07 1992 Sean Eric Fagan ([email protected])
11100
11101 * obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
11102 sections starting from zero, rather than making them consecutive.
11103 This makes subsequent reloc calculations easier, esp if the object
11104 format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily)
11105 allocate lcomm in .data rather than in .bss. It seems that some
11106 tools can't cope with a non-zero sized bss before linkage.
132239bf 11107
7f2cb270
KR
11108Tue Sep 22 15:10:51 1992 Ken Raeburn ([email protected])
11109
11110 * tc-m68k.c: Replace "enum m68k_architecture" with "int"
11111 throughout. That enum no longer means what we thought it meant.
11112
11113 * tc-m68k.c (md_assemble, md_parse_option): Handle new
11114 "-mno-688[58]1" options.
11115
11116 * tc-m68k.c: Added CPU32 support.
11117
11118Fri Sep 18 08:02:18 1992 Steve Chamberlain ([email protected])
11119
11120 * tc-m68k.c (m68k_ip): An(disp) is not pc relative.
11121
569dac15
JW
11122Tue Sep 15 17:25:05 1992 Jim Wilson ([email protected])
11123
11124 * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES.
11125 Change LIBDEPS dependence to LIBS.
11126
efbfb612
ILT
11127Tue Sep 15 15:32:02 1992 Ian Lance Taylor ([email protected])
11128
11129 * Makefile.in (install): if $(tooldir) exists, install as in
11130 $(tooldir)/bin.
11131
987b1491
ILT
11132Sun Sep 13 20:30:10 1992 Ian Lance Taylor ([email protected])
11133
ca5e9d49
ILT
11134 * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
11135 .word is < -32768 or > 32767. The -J flag causes the error to be
11136 ignored. This is to catch over-sized switches generated by gcc on
11137 systems which don't support the broken .word hack.
11138 as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
11139 write.c (fixup_segment): check for signed .word overflow if
11140 WARN_SIGNED_OVERFLOW_WORD.
11141
987b1491
ILT
11142 * write.c (fixup_segment): fixed missing parens in expression
11143 checking for byte or word overflow.
11144
7f2cb270
KR
11145 * obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
11146 obj-coffbfd.c (fixup_segment): check for signed .word overflow if
11147 WARN_SIGNED_OVERFLOW_WORD.
11148
11149 * obj-coffbfd.c (fixup_segment): fixed missing parens in
11150 expression checking for byte or word overflow.
11151
11152Fri Sep 11 10:21:04 1992 Steve Chamberlain ([email protected])
11153
11154 Support for i386 coff
132239bf 11155 * obj-coffbfd.h : added stuff
7f2cb270
KR
11156 * tc-i386.c (tc_coff_fix2rtype): new function
11157 * tc-i386.h : new coff defines
11158
b1520b1f
ILT
11159Thu Sep 10 09:23:15 1992 Ian Lance Taylor ([email protected])
11160
11161 * input-scrub.c (input_scrub_push): call input_file_begin, not
11162 input_scrub_begin.
11163 messages.c (as_perror): print ": " between the passed in error and
11164 the strerror, like perror does.
11165
b53ccaac
ILT
11166Wed Sep 9 11:06:25 1992 Ian Lance Taylor ([email protected])
11167
11168 * Makefile.in: use gas_target instead of modifying target_cpu.
11169 From Steve Chamberlain:
11170 Makefile.in: Handle m68*-*-coff*.
11171 read.c, read.h: add mult argument to s_space
11172
7f2cb270
KR
11173 * tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
11174 Motorola and MIT syntax; gas can now assemble either type of
11175 file.
11176 tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
11177 From Steve Chamberlain:
11178 m68kcoff.mt: for m68k COFF.
11179 obj-coffbfd.c: (fixup_mdeps) added
11180 (size_section) removed bad sanity check
11181 (fill_section) added rs_machine_dependent case
11182 (write_object_file) call fixup_mdeps
11183 (fixup_segment) set fx_subsy to 0.
11184 obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
11185 handle m68k.
11186 tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
11187 pseudo ops.
11188
db4d20e5
KR
11189Tue Sep 8 17:10:58 1992 Ken Raeburn ([email protected])
11190
11191 * Makefile.in (LIBS): Include opcode library.
11192
e53ab768
KR
11193Fri Sep 4 18:20:56 1992 Ken Raeburn ([email protected])
11194
11195 * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers
11196 including zero are accepted, pass +0.0.
11197
7e10f53c
ILT
11198Sun Aug 30 21:24:46 1992 Ian Lance Taylor ([email protected])
11199
11200 * Makefile.in: map "as" through program_transform_name when
11201 installing.
11202
0cca30f3
KR
11203 * doc/Makefile.in: map "as" through program_transform_name when
11204 installing.
11205
b0952e12
JW
11206Sat Aug 29 12:11:12 1992 Jim Wilson ([email protected])
11207
11208 * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
11209
7f2cb270
KR
11210Fri Aug 28 16:25:22 1992 Ian Lance Taylor ([email protected])
11211
11212 * obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
11213 tc-i960.c (md_ri_to_chars): Always output bout object file in
11214 little endian byte order (used to use endianness of host).
11215
b2f221a9
KR
11216Tue Aug 25 15:50:48 1992 Ken Raeburn ([email protected])
11217
11218 * config/tc-m68k.c (init_table): Now const. Always include 68851
11219 data, so that "bc" is available to 68040 cache instructions.
11220 Added "tt0", "tt1", and 68ec030 variants.
11221 (md_assemble): Complain if 68000 (only) and 68881 are specified.
11222 (enum _register): Added TT0, TT1.
11223 (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass
11224 line number correctly in "internal error" messages. Don't print
11225 architecture-mismatch message for operand errors.
11226
11227 From Colin Smith ([email protected]):
11228 * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather
11229 than install_operand.
11230
ab737e51
SC
11231Tue Aug 25 15:13:48 1992 Steve Chamberlain ([email protected])
11232
11233 * listing.c (buffer_line): rewind to the start of include
11234 files, they might be included twice.
11235
7f2cb270
KR
11236 * z8k.c, z8k.h, z8k.mt: z8000 support stuff
11237
7121231f
ILT
11238Mon Aug 24 12:45:43 1992 Ian Lance Taylor ([email protected])
11239
11240 * Makefile.in: defined TARGET_CPU for C code so that it can choose
11241 one element of a family.
11242
7f2cb270
KR
11243 * tc-m68k.c: use TARGET_CPU to choose default cpu type.
11244
11245 * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
11246 so that we can assemble hand-written libgcc code.
11247
4772861e
KR
11248Fri Aug 21 14:38:44 1992 Ken Raeburn ([email protected])
11249
11250 * messages.c (as_warn): Use fputs, not fprintf, with a buffer that
11251 has already been formatted (but may still contain %-characters).
11252 (as_bad): Likewise.
11253
7f2cb270
KR
11254Wed Aug 19 11:20:59 1992 Ian Lance Taylor ([email protected])
11255
11256 * tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
11257 written with indirection on the last two operands, which can be
11258 either data or address registers. Added a new operand type 'r'
11259 which accepts either register type. Added '(' to notend stuff in
11260 tc-m68kmote.c to accept (a0):(a2) in cas2 instruction.
11261
09952cd9
KR
11262Wed Aug 19 09:25:09 1992 Ken Raeburn ([email protected])
11263
11264 * as.h (enum _relax_state): Start off at one, not zero, to better
11265 catch uninitialized-variable errors.
11266 (linkrelax): Declare new variable.
11267
11268 * messages.c (warning_count, error_count): Default initializer is
11269 sufficient.
11270
11271 * write.c: Merged some declarations, using PARMS macro.
11272 (text_frag_root, data_frag_root, bss_frag_root, text_last_frag,
11273 data_last_frag): No longer static.
11274 (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is
11275 defined, call it. Change segments before calling fixup_segment.
11276 (relax_align): If linkrelax, provide extra padding.
11277
11278 * obj-bout.c (obj_emit_relocations): Emit alignment relocs despite
11279 their not having symbols associated.
11280
11281 * tc-i960.c (norelax, instrument_branches): Default initializer is
11282 sufficient.
11283 (linkrelax): Delete variable definition.
11284 (mem_fmt): Call fix_new with NO_RELOC.
11285 (tc_bout_fix_to_chars): Handle alignment relocs.
11286 (i960_handle_align): New function.
11287 * tc-i960.h (linkrelax): Delete declaration.
11288 (HANDLE_ALIGN): New macro; calls i960_handle_align.
11289 (NEED_FX_R_TYPE, NO_RELOC): New macros.
11290
a457f4d9
KR
11291Tue Aug 18 14:59:21 1992 Ken Raeburn ([email protected])
11292
11293 * config/sparc.mt: New file. Grab sparc opcode table from bfd
11294 library.
11295
4b857710
ILT
11296Tue Aug 18 14:16:38 1992 Ian Lance Taylor ([email protected])
11297
11298 * Makefile.in: always create installation directories. Removed
11299 MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
11300 FLAGS_TO_PASS to recursive makes.
11301
0cca30f3
KR
11302 * doc/Makefile.in: always create installation directories.
11303
f7e9bc5a
SC
11304Mon Aug 17 15:09:56 1992 Steve Chamberlain ([email protected])
11305
11306 * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was
11307 being used with args swapped, causing occasional lossage when
11308 refilling buffers after an include file.
11309
c1c28543
KR
11310Mon Aug 17 13:18:51 1992 Ken Raeburn ([email protected])
11311
11312 * messages.c (as_tsktsk): Use correct ANSI form for stdarg
11313 version. Discard bogus DONTDEF version.
11314 (as_warn, as_bad, as_fatal): Likewise.
11315
2e20e59a
KR
11316Fri Aug 14 18:31:14 1992 Ken Raeburn ([email protected])
11317
11318 * config/tc-m68k.c (m68k_ip): If instruction is invalid for the
11319 selected architecture, print a message saying so and listing what
11320 processors support it, rather than saying "operands mismatch".
11321
c8c7e0bf
KR
11322Thu Aug 13 13:53:19 1992 Ken Raeburn ([email protected])
11323
11324 * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
11325
11326 * config/ho-rs6000.h (M_RS6000): Don't define it.
11327 (free): Declare it.
11328 (BROKEN_ASSERT): Define it if not __STDC__.
11329
7f2cb270
KR
11330Tue Aug 11 12:58:14 1992 Ken Raeburn ([email protected])
11331
11332 * sparc.mt: New file.
11333
11334Mon Aug 10 14:37:08 1992 Per Bothner ([email protected])
11335
11336 * tc-m68k.c: ".align N" means align to N-byte boundary *only*
11337 if TN_SUN3; otherwise align to 2**N-byte bounary.
11338
7fd3560a
SC
11339Thu Aug 6 12:10:39 1992 Steve Chamberlain ([email protected])
11340
11341 * read.c (s_fill): make the .fill size clamped error a warn and
11342 fix bug where 0's were always placed.
11343
7f2cb270
KR
11344 * config/tc-h8300.c: if a :8 is seen after an operand, fill top
11345 two bytes of any constant with 0xff:
11346
62594bd7
SC
11347Wed Aug 5 12:02:40 1992 Steve Chamberlain ([email protected])
11348
11349 * config/tc-m68k.c (md_pseudo_table): fix the .align thing
4f3569fa 11350 the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo.
62594bd7 11351
7f2cb270
KR
11352Wed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com)
11353
11354 * tc-m68k.c (try_index): Error if index scaling specified and
11355 assembling for an older CPU than a 68020.
11356
680227f3
KR
11357Sat Aug 1 19:10:13 1992 Ken Raeburn ([email protected])
11358
11359 * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take
11360 fx_offset into account.
11361
c51ccfd5
KR
11362Fri Jul 31 21:53:28 1992 Ken Raeburn ([email protected])
11363
11364 * configure.in (mips host): Accept "ultrix" with version number.
11365
11366 * expr.c (floating_constant): Separate "=-" to avoid confusing
11367 ancient or broken compilers.
11368
11369 * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
11370 processor/opcode mismatch, so reword the error message.
11371 (md_assemble): If no CPU has been set (even if FPU/PMMU
11372 characteristics have been), default to 68020. Don't need extra
11373 quotes around error string.
11374
14f1fc24
JW
11375Fri Jul 31 12:26:34 1992 Jim Wilson ([email protected])
11376
11377 * read.c (potable): Revert sac's incorrect change made Jul 13.
11378 Align really is supposed to be ptwo not nbytes.
11379
11380Mon Jul 20 02:51:59 1992 D. V. Henkel-Wallace ([email protected])
11381
11382 * Makefile.in: _Do_ include libiberty. (from sef)
11383
11384Fri Jul 17 15:15:28 1992 Ken Raeburn ([email protected])
11385
11386 * expr.c (integer_constant): Handle "0f" and "0b" label references
11387 properly.
11388
462088b8
SC
11389Thu Jul 16 08:20:17 1992 Steve Chamberlain ([email protected])
11390
11391 * write.c (fixup_segment): if relaxing, don't do anything.
11392 * config/obj-bout.[ch] : maintain the a_relaxable file header info
11393 * config/tc-i960.c: new option -linkrelax
11394
11395Mon Jul 13 14:11:36 1992 Steve Chamberlain ([email protected])
11396
11397 * expr.c (expr): allow SEG_BSS in expressions
11398 * read.c (potable): align should be nbytes, not ptwo!
11399 * write.c (write_object_file): extra glue for new bss attributes
11400 (relax_segment): SEG_BSS is ok now
11401 * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes
11402
7f2cb270
KR
11403Mon Jul 6 17:09:32 1992 Steve Chamberlain ([email protected])
11404
11405 * obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT
11406
462088b8
SC
11407Mon Jun 1 16:20:22 1992 Michael Tiemann ([email protected])
11408
11409 * configure.in: recognize m680x0 as having sun3 emulation mode for
11410 vxworks environment.
11411
11412
0b0b5dba
DHW
11413Tue Jun 30 20:25:54 1992 D. V. Henkel-Wallace ([email protected])
11414
11415 * Makefile.in: Add program_suffix (parallel to program_prefix)
11416
7c2d4011
SC
11417Wed Jun 24 10:57:54 1992 Steve Chamberlain ([email protected])
11418
11419 * app.c (process_escape): new function to handle escapes the right
11420 way, (do_scrub_next_char): use new function
11421 * cond.c (s_ifdef): do ifdef/ifndef right
11422 * read.c (s_fill): make the , expressions optional like the doc
11423 says
11424 * config/tc-h8300.[ch]: better warnings
11425
90d49457
SC
11426Tue Jun 9 07:54:54 1992 Steve Chamberlain ([email protected])
11427
65bfcf2e
SC
11428 * subsegs.c (subsegs_begin): create bss0_frchainP in the same was
11429 as data0_frchainP
11430
11431 * write.c (write_object_file): various changes to handle data in
132239bf 11432 the BSS segment in much the same was as stuff in the DATA segment.
65bfcf2e 11433
7f2cb270
KR
11434 * tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do
11435 pcrel data stuff. (md_estimate_size_before_relax): when relaxing a
11436 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into
11437 the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put
11438 it into SEG_BSS
462088b8 11439
f8701a3f
SC
11440Thu Jun 4 11:59:13 1992 Steve Chamberlain ([email protected])
11441
11442 * expr.c(expr): allow SEG_REGISTER in expressions.
11443 * read.c(pseudo_set): register expressions can be the source of a
11444 set.
11445 * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to
11446 goto SEG_TEXT (if a.out)
11447 * write.c (write_object_file): If a.out don't use the old way for
11448 -R.
11449 * config/obj-a.out (s_sect): complain if the user tries to use a
11450 subsegment with a value which might interfere with out -R hackery.
11451 * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table
11452 rather than use ugly if tree. (init_regtable): insert register
11453 names into symbol table.
11454
ebfb4167
MT
11455Tue Jun 2 16:47:09 1992 Steve Chamberlain ([email protected])
11456
11457 * write.c (write_object_file): keep the fix_tail clean, which
11458 fixes a bug in -R where relocations were being lost.
11459
11460Mon Jun 1 16:20:22 1992 Michael Tiemann ([email protected])
11461
11462 * configure.in: recognize m680x0 as having sun3 emulation mode for
11463 vxworks environment.
11464
11465Sun May 31 05:33:00 1992 david d `zoo' zuhn ([email protected])
11466
69cb5925 11467 * configure.in: recognize m680x0 as an m68k
ebfb4167 11468
dfd53fe9
JW
11469Thu May 28 11:22:02 1992 Jim Wilson ([email protected])
11470
11471 * configure.in: Recognize sparclite as a sparc variant.
11472
7f2cb270
KR
11473 * tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new
11474 -Asparclite flag.
11475
d312e231
SC
11476Tue May 26 16:47:56 1992 Steve Chamberlain ([email protected])
11477
11478 * config/tc-a29k.c: lint
11479 * listing.c, expr.c: patches from Andrew Smith
11480
0cca30f3
KR
11481Thu May 14 17:22:48 1992 K. Richard Pixley ([email protected])
11482
11483 * doc/Makefile.in: use m4 rather than gm4.
11484
7f2cb270
KR
11485Mon May 4 18:56:19 1992 Steve Chamberlain ([email protected])
11486
11487 * obj-coffbfd.c: use is a synonym for section, (do_relocs_for):
11488 calc the base of relocs correctly.
11489 * tc-a29k.c (parse_operand): allow expressions to be in any section.
11490
d312e231
SC
11491Mon Apr 27 13:13:31 1992 K. Richard Pixley ([email protected])
11492
11493 * as.c, write.c: use -K rather than -k for the broken word warning
11494 option.
11495
fa493b93
RP
11496Tue Apr 21 13:35:30 1992 K. Richard Pixley ([email protected])
11497
11498 * Makefile.in: do not print recursion lines.
11499
d96c09ed
RP
11500Wed Apr 15 21:19:31 1992 K. Richard Pixley ([email protected])
11501
11502 * Makefile.in: the tooldir copy of gas goes directly in tooldir.
11503
11504Tue Apr 14 14:50:22 1992 Ken Raeburn ([email protected])
11505
11506 * write.c (write_object_file): For b.out format, round up section
11507 start addresses to match required alignment.
11508
81484684
KR
11509Thu Apr 9 05:45:29 1992 Ken Raeburn ([email protected])
11510
11511 * Makefile.in (install): Install into $(tooldir)/bin, since that's
11512 where gcc looks for it.
11513
3876b4c5
SEF
11514Tue Apr 7 15:12:15 1992 Sean Eric Fagan ([email protected])
11515
11516 * Makefile.in: Changed some lines to be less confusing for some
11517 makes.
11518
11519 * input-file.c: Conditionalize on _IOFBF, not VMS.
11520
11521 * read.c, write.c: Change a series of ifdef/elif to
11522 ifdef/else/ifdef etc.
11523
11524Fri Mar 27 12:21:16 1992 K. Richard Pixley ([email protected])
11525
11526 * symbols.c (fb_label_init): fix sizeof to memset.
11527
95a925b8
RP
11528Fri Mar 13 15:45:44 1992 K. Richard Pixley ([email protected])
11529
3876b4c5
SEF
11530 * Makefile.in: install the man page.
11531
95a925b8
RP
11532 * Makefile.in: pass down MAKEINFO explicitly on info.
11533
0cca30f3
KR
11534 * doc/Makefile.in: use $(MAKEINFO) not makeinfo.
11535
5d53038b
SC
11536Fri Mar 13 08:03:03 1992 Steve Chamberlain ([email protected])
11537
11538 * flonum-const.c: renamed flonum-konst.c to stop dos name
11539 conflict.
11540
7f2cb270
KR
11541Thu Mar 12 04:42:38 1992 K. Richard Pixley ([email protected])
11542
11543 * tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
132239bf 11544 tc-m68k.h to te-sun3.h.
7f2cb270 11545
8c1b25e4
RP
11546Wed Mar 11 23:32:42 1992 K. Richard Pixley ([email protected])
11547
11548 * configure.in: vxworks68 gets te-sun3.h.
11549
11550 * expr.c: remove limitation that local_labels_dollar or
11551 local_labels_fb must be < 10.
11552
11553 * symbols.c: remove local_labels_dollar, replace with a function
11554 interface for a sparse array. All users adjusted.
11555
7f2cb270
KR
11556 * te-sun3.h: add LOCAL_LABELS_DOLLAR.
11557
0cca30f3
KR
11558Sat Mar 7 00:06:25 1992 K. Richard Pixley ([email protected])
11559
11560 * doc/Makefile.in: commented out line for building as-all.texinfo.
11561 This is temporary.
11562
11563 * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks.
11564
8c1b25e4
RP
11565Fri Mar 6 21:57:18 1992 K. Richard Pixley ([email protected])
11566
11567 * Makefile.in: added check target.
11568
11569Tue Mar 3 15:45:56 1992 K. Richard Pixley ([email protected])
11570
11571 * Makefile.in: added tooldir and program_prefix.
11572
11573Sun Mar 1 04:43:19 1992 Michael Tiemann ([email protected])
11574
11575 * write.{c,h} (fix_new): Make these declarations consistent.
11576
1651b22d
MT
11577Sat Feb 29 13:59:10 1992 Michael Tiemann ([email protected])
11578
11579 * Makefile.in (strerror.o): Add rule so that broken Sun make can
11580 work in subdirs.
11581
5373c439
SC
11582Wed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com)
11583
11584 * read.c, obj-coffbfd.c : fix h8300 specific bit rot
11585
11586 * expr.c (operand): if can't work out what sort of operand it is,
11587 then look through FLT_CHARS for a hint.
11588
8c1b25e4
RP
11589Wed Feb 26 18:04:40 1992 K. Richard Pixley ([email protected])
11590
11591 * Makefile.in, configure.in: removed traces of namesubdir,
11592 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
11593 copyrights to '92, changed some from Cygnus to FSF.
11594
0cca30f3
KR
11595 * doc/Makefile.in, doc/configure.in: removed traces of namesubdir,
11596 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
11597 copyrights to '92, changed some from Cygnus to FSF.
11598
f24f7577
SC
11599Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
11600
14d3e47b
SC
11601 * expr.c: If an expression is single comma, then return with
11602 SEG_ABSENT rather than an error - since the sparc front end does
132239bf 11603 really strange things with things like fbge,a
14d3e47b 11604
f24f7577
SC
11605 * as.h: include bfd.h if using many sections
11606 * expr.c: LOCAL_LABELS_FB had been changed to lower case - so
11607 local labels didn't work.
11608 * listing.c (list_symbol_table): don't core dump when there's no
11609 symbol there.
11610 * write.c, write.h: call fix_new with the right number of args on
11611 the H8.
11612 * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
11613 errors nices
11614
c593cf41
SC
11615Sat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com)
11616
11617 * app.c: MRI compatibility - allow single quote to start a string.
11618 * as.c: fix typo recently introduced.
11619 * as.h : Don't include aout/reloc.h - it's not right for COFF!
11620 * expr.c: Much rewriting, to accomodate MRI syntax for
11621 expressions. Also easier to read now.
11622 * listing.c: Put back defuns
11623 * read.c: modified to accept MRI syntax, put back listing pseudo
11624 ops so that an assembler built with NO_LISTING ignores list ops
11625 rather than pukes.
11626 * write.c, write.h: fixs - only keep a reloc type in a fix if the target
11627 machine is a SPARC or a 29K.
11628 * config/obj-aout.c: added s_sect pseudo op
11629 * config/obj-coffbfd.c: lints, set the filehdr flags right and
11630 fill in the timestamp.
11631 * config/obj-coffbfd.h: Since we don't include aout/reloc.h
11632 anymore, define all the relocs which the tc-<x> bit will use so we
11633 can translate from them to the coff types.
11634 * config/tc-a29k.c: reloc_type isn't ane enum any more
11635 * config/tc-m68k.c: Added NO_RELOC definition.
11636
2d97273c
RP
11637Fri Feb 21 06:21:07 1992 K. Richard Pixley ([email protected])
11638
c593cf41
SC
11639 * Makefile.in: put header files before C source for TAGS; remove
11640 references to non-existent syscalls.h.
11641
2d97273c
RP
11642 * read.c, write.c subsegs.c: back out the .bss changes.
11643
7f2cb270
KR
11644 * obj-aout.c: do not include stab.gnu.h if NO_LISTING.
11645
11646 * tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place.
11647
11648 * a.out.h: removed.
11649
6d5460ab
RP
11650Fri Feb 21 01:08:48 1992 Minh Tran-Le ([email protected])
11651
11652 * symbols.c (local_label_name): symbols now start with ^A.
11653
11654 * read.c, subsegs.c, write.c obj-coff.c: added handling of
11655 `.bss` pseudo op for unitialized data. The new gcc (1.37.9x)
11656 generate these sections. .align: will use NOP_OPCODE or 0
11657 for padding. This is just for being nice to the
11658 disassembler.
11659
11660 * expr.c (operand): changed to generate local label "\001L0"
11661 starting with a ^A so that it is recognized as a local label.
11662
11663 * as.c (perform_an_assembly_pass): zero bss_fix_root, too.
11664
7f2cb270
KR
11665 * tc-i386.c: tc-i386.c: added handling of the following opcodes:
11666 i/o opcodes - inb, inw, outb and outw. string manipulation with
11667 att syntax - scmp, slod, smov, ssca, ssto.
11668
11669 * obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss
11670 to just after .file .
11671
11672 In obj_crawl_symbol_chain() where it tries to put the external
11673 symbols apart, with the condition:
11674 (!S_IS_DEFINED(symbolP) &&
11675 !S_IS_DEBUG(symbolP) &&
11676 !SF_GET_STATICS(symbolP))
11677 it was moving too many symbols out. So I switch it back to the
11678 condition:
11679 (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP))
11680
11681 In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO
11682 so that we don't use the F_RELFLG which make the linker complain
11683 that somebody has stripped the relocation info.
11684
11685 Also, the AIX ld program require that the relocation table
11686 is sorted by r_vaddr like the standard ATT assembler does.
11687
11688 [he also changed the sizeof(struct ...)'s into the coff
11689 style FOOSZ macros. I'm not sure this is right, but I can't
11690 remember why. xoxorich.]
11691
d6e344db
RP
11692Fri Feb 21 01:08:48 1992 K. Richard Pixley ([email protected])
11693
11694 * Makefile.in, configure.in, doc: use the doc. Build it, install
11695 it, clean it, etc.
11696
eb9eacd3
RP
11697Tue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com)
11698
aa3782d2
RP
11699 * read.c: white space and comments only.
11700
f816adbc
RP
11701 * configure.in: use the new atof-ns32.c for ns32k.
11702
eb9eacd3
RP
11703 * write.c: comment change only.
11704
7f2cb270
KR
11705 * tc-m88k.[hc]: pulled in from hack's unfinished work. These
11706 aren't yet integrated.
11707
11708 * tc-i860.[hc]: blew off the dust. Something must still be done
11709 about conflicting relocation types.
11710
11711 * tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the
11712 real thing.
11713
11714 * tc-i960.c, tc-sparc.c: white space and comments only.
11715
11716 * tc-a29k.h: delete duplicate macro definition.
11717
11718 * new file atof-ns32k.c copied from hack's last unreleased gas.
11719
542e1629 11720Mon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com)
b3ca913f 11721
eb9eacd3
RP
11722 * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work
11723 rather than abort.
132239bf 11724
542e1629
RP
11725 * nearly everything. flush ChangeLog, package as gas-1.92.1.
11726 ChangeLog's prior to this are sketchy at best. I have logs.
11727 They just aren't ChangeLogs.
This page took 1.793835 seconds and 4 git commands to generate.