* elf32-i386.c (elf_i386_relocate_section): Revert May 24 patch.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
265d172e
ILT
1Thu Jul 6 12:54:27 1995 Ian Lance Taylor <ian@cygnus.com>
2
a0eb1c2c
ILT
3 * config/tc-sparc.c (s_reserve): Don't permit redefinition, even
4 if the symbol was already in bss_section. Fix warning message.
5
bcaa9b05
ILT
6 * listing.c (struct file_info_struct): Rename end_pending field to
7 at_end.
8 (file_info): Initialize at_end, not end_pending.
9 (buffer_line): If at_end set, just return immediately. Don't
10 worry about end_pending cases. Set at_end when EOF is read.
11 (print_source): Check at_end, not end_pending.
12 (listing_listing): Likewise.
13
265d172e
ILT
14 * config/tc-alpha.h (alpha_do_align): Don't declare.
15 (md_do_align): Don't define.
16 (tc_frob_label): Define.
17 (alpha_define_label): Declare.
18 (md_flush_pending_output): Define.
19 (alpha_flush_pending_output): Declare.
20 * config/tc-alpha.c (insn_label): New static variable.
21 (auto_align): New static variable.
22 (md_pseudo_table): Add cases for .text, .data, .align, .byte,
23 .hword, .int, .long, .octa, .quad, .short, .word, .double, .float,
24 and .single. Change .t_floating, .s_floating, .f_floating,
25 .g_floating, and .d_floating to use s_alpha_float_cons rather than
26 float_cons.
27 (s_alpha_text, s_alpha_data): New static functions.
28 (s_rdata, s_sdata): Clear insn_label and set auto_align.
29 (s_gprel32): If auto_align, align. Clear insn_label.
30 (emit_insn): Clear insn_label.
31 (s_alpha_align): New static function.
32 (alpha_align): Make static. Take label argument.
33 (alpha_flush_pending_output): New static function.
34 (s_alpha_cons, s_alpha_float_cons): New static functions.
35 (alpha_define_label): New function.
36
4b18b7cd
KR
37Wed Jul 5 22:49:31 1995 Ken Raeburn <raeburn@cygnus.com>
38
ad0ab4eb
KR
39 * conf.in: Regenerate with autoreconf.
40
4b18b7cd
KR
41 Mon Jul 3 19:47:53 1995 Pat Rankin (rankin@eql.caltech.edu)
42
43 * config/obj-vms.h (vms_resolve_symbol_redef): Use full prototype.
44 (vms_check_for_special_label, tc_frob_label): Move them to group
45 with other prototypes.
46 [WANT_VMS_OBJ_DEFS]: Only define the many OBJ_x, DBG_x, and DST_x
47 macros when this is defined.
48 * config/obj-vms.c: Fully prototype all local functions.
49 [symbolS, fragS]: Use consistently instead of their struct tags.
50 [WANT_VMS_OBJ_DEFS]: Define this.
51 (s_const): Make definition correctly match actual usage.
52 (VMS_stab_parse): Make `expected_type' arg be int rather than char.
53 (get_VMS_time_on_unix): Define as `static void'.
54 (hash_string): Make definition match actual usage; argument is
55 `char const *' rather than `unsigned char *'.
56 (VMS_Case_Hack_Symbol, VMS_Modify_Psect_Attributes, VMS_Psect_Spec,
57 VMS_Global_Symbol_Spec): Declare string args as `const char *'.
58 [IS_GXX_VTABLE]: New macro.
59 (vms_write_object_file: GSD loop): Use it.
60 (vms_write_object_file: data segment): Reorganize `fill' loop.
61
22ba90ce
ILT
62Wed Jul 5 12:01:49 1995 Ian Lance Taylor <ian@cygnus.com>
63
a7aa7a2b
ILT
64 * config/tc-sparc.c (md_shortopts): Add "K:" if OBJ_ELF.
65 (md_parse_option): If OBJ_ELF, check for -K. Die if -K PIC, since
66 PIC code is not currently supported.
67
68 * as.c (parse_args): Change std_shortopts to be an array rather
69 than a constant string. Only include 'K' if WORKING_DOT_WORD is
70 not defined. Only check for 'K' in that case as well.
71 * as.h (flag_warn_displacement): Only declare if WORKING_DOT_WORD
72 is not defined.
73
9814e22f
ILT
74 * conf.in: Add undef of HAVE_SBRK.
75
3f8416d5
ILT
76 * config/obj-coff.c (obj_coff_line): Call listing_source_line, in
77 both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
78
56dc989a
ILT
79 * symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
80 (S_CLEAR_EXTERNAL): Likewise.
81 (S_SET_WEAK): Warn if symbol is global.
82
f219dc65
ILT
83 * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
84 to put an undefined symbol into a set.
85
816a827b
ILT
86 * Makefile.in: Remove @configure_input@; it's not needed in
87 files named Makefile.
88
ca046e34
ILT
89 * config/tc-m88k.c (md_pseudo_table): Add ".set" so that the
90 explicit pseudo-op works, while continuing to treat "set" as an
91 instruction.
92
22ba90ce
ILT
93 * ecoff.c (ecoff_debugging_seen): New global variable.
94 (ecoff_directive_def): Set ecoff_debugging_seen.
95 (ecoff_stab): Likewise.
96 * ecoff.h: Make idempotent.
97 (ecoff_debugging_seen): Declare.
98 * config/tc-mips.c: Include ecoff.h.
99 (mips_debug): New static variable.
100 (s_stringer, s_mips_space): Remove unneeded declarations.
101 (md_parse_option): In case 'g', set mips_debug to debugging level.
102 (mips_local_label): New function.
103 * tc-mips.h (LOCAL_LABEL): Call mips_local_label.
104 (mips_local_label): Declare.
105
e63c594d
FF
106Wed Jul 5 00:59:22 1995 Fred Fish (fnf@cygnus.com)
107
108 * as.c (main): Only use sbrk when HAVE_SBRK defined.
109 * configure.in: Add test for sbrk.
110 * configure: Regenerate using autoconf 2.4.
111
249c7415
JL
112Mon Jul 3 15:58:16 1995 Jeff Law (law@snake.cs.utah.edu)
113
114 * config/tc-hppa.h (MAX_RELOC_EXPANSION): Bump to 6.
115 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle
116 relocations for the difference of two (possibly external)
117 symbols.
118 (hppa_fix_adjustable): For SOM, reject reductions involving
119 the difference of two symbols.
120 (hppa_force_relocation): Force relocations for expressions
121 involving the difference of two symbols.
122
6c186c48
SC
123Mon Jul 3 14:22:59 1995 Steve Chamberlain <sac@slash.cygnus.com>
124
125 * configure[.in] (i386-*-win32): New host and target.
126
e5c5ce23
SC
127Thu Jun 29 17:25:43 1995 Steve Chamberlain <sac@slash.cygnus.com>
128
129 Support for long filenames non-bfd coff. bfd/7288
130 * config/obj-coff.c (filename_list_head, filename_list_tail): New.
131 (yank_symbols): Notice and record filenames which are too long.
132 (w_strings): Write out filename strings.
133 (c_dot_file_symbols): Put long filenames onto list.
134
30355216
SC
135Wed Jun 28 17:33:13 1995 Steve Chamberlain <sac@slash.cygnus.com>
136
e5c5ce23 137 * config/obj-coff.c (fixup_segment): PE doesn't use
30355216
SC
138 the strange common symbol format that other 386s formats
139 do.
140 * config/tc-i386.c (md_begin): If LEX_AT defined then
141 '@' is in the set of identifiers.
142 (i386_operand): If LEX_AT, then don't look for @goto stuff.
143 * config/te-pe.h: Define LEX_AT.
144
4a998308
KR
145Wed Jun 28 17:49:59 1995 Ken Raeburn <raeburn@cygnus.com>
146
1a9924d8
KR
147 * doc/as.texinfo (H8/500 Floating Point): Indicate that IEEE FP
148 numbers are for the standard emulation code.
149 (SH Floating Point): Ditto.
150 (Overview): Describe new --emulation option for MIPS.
4a998308
KR
151 * doc/*.m4: Deleted.
152
153Thu Jun 22 19:26:25 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
154
155 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
156
157 * configure.in: Added i386-*-moss* target.
158
3f4ca874
MM
159Thu Jun 22 14:41:23 1995 Michael Meissner <meissner@tiktok.cygnus.com>
160
161 * write.c (write_object_file): Cast decode_local_label_name
162 argument to char * to avoid warning.
163
a1835409
KR
164Wed Jun 21 18:07:59 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
165
c151fd1e
KR
166 Changes from Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>:
167 * config/tc-m68k.c (insword): Increment the frag offsets.
168 (struct m68k_it): Add reloc[].pcrel_fix field to hold pc-rel
169 fixup.
170 (add_fix): Accept additional parameter, the pc-rel fixup. All
171 callers changed. Fix offset address if width == 'b'.
172 (m68k_ip) [case AINDX]: Allow explicit size spec. Don't make the
173 outer displacement pc-relative.
174 (md_pcrel_from): Make it relative to the first extension word of
175 the operand.
176 (opcode_ptr): Make it a macro if DO_BREAK_UP_BIG_DECL is
177 undefined.
178 (md_convert_frag_1): Don't reference fragP->fr_opcode[2..].
179 (md_estimate_size_before_relax) [case TAB (FBRANCH, SZ_UNDEF)]:
180 Turn on long bit.
181 (m68k_ip) [case 'C']: Don't set set long bit, set it in the opcode
182 table.
183 (md_estimate_size_before_relax) [case TAB (PCINDEX, SZ_UNDEF)]:
184 Variable part increases by four, not six.
185 * write.c (fixup_segment) [TC_M68K]: Don't do further pcrel
186 processing after converting difference of two symbols in the
187 same segment.
188
189 * write.c (fixup_segment): Don't conditionalize the pcrel fix on
190 TC_M68K.
191
a1835409
KR
192 * config/tc-sparc.c (sparc_ip, case 'A'): If ASI is not a "#"
193 value, don't shift it an extra time.
194
85b369b3
SC
195Wed Jun 21 14:18:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
196
197 * gasp.c (do_print, do_form, buffer_and_nest): Use case insensitive
198 string compares. gas/7274.
199
34308df7
KR
200Tue Jun 20 14:55:02 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
201
202 * config/obj-coff.c (write_object_file): Cast time() argument to
203 time_t *.
204
420c479b
JL
205Tue Jun 20 12:00:53 1995 Jeff Law (law@snake.cs.utah.edu)
206
207 * config/tc-hppa.c (pa_build_unwind_subspace): Fix typo in last
208 change.
209
76477190
JL
210Mon Jun 19 15:27:17 1995 Jeff Law (law@snake.cs.utah.edu)
211
212 * config/tc-hppa.c (pa_build_unwind_subspace): Zero out memory
213 from frag_more calls.
214
d21041b3
SS
215Thu Jun 15 16:53:37 1995 Stan Shebs <shebs@andros.cygnus.com>
216
217 * config/obj-coff.c: Don't use "bfd/" when including libbfd.h
218 and libcoff.h.
219 (fill_section): Call PROGRESS.
220 * Makefile.in (INCLUDES): Add bfd srcdir.
221
222 * mpw-config.in: Add bfd_gas flag and set for each config.
223 (i386-unknown-go32, m68k-unknown-coff): Recognize.
224 * mpw-make.in (HACK_O_RAMA, OBJ_COFF_OMIT_TIMESTAMP): Add to
225 config.h.
226
f6d6f102
DE
227Thu Jun 15 10:04:26 1995 Doug Evans <dje@canuck.cygnus.com>
228
229 * config/tc-arm.h (LOCAL_LABEL): Prepend '.' if not OBJ_AOUT.
230 (FAKE_LABEL_NAME): Likewise.
231
4ff6f92a
JL
232Mon Jun 12 22:25:39 1995 Jeff Law (law@snake.cs.utah.edu)
233
234 * config/tc-hppa.c (pa_ip): Check for invalid register in single
235 precision fmpyadd and fmpysub instructions.
236
69cb5925 237Thu Jun 8 19:33:02 1995 Pat Rankin (rankin@eql.caltech.edu)
3c650d09
KR
238
239 * config/obj-vms.c (myname): Delete all references.
240 (VMS_stab_parse, Write_VMS_MHD_Records, VMS_Case_Hack_Symbol):
241 Replace printf calls with as_tsktsk.
242 (PUT_LONG, PUT_SHORT): Use COPY_LONG, COPY_SHORT.
243 (VMS_Store_Immediate_Data): Move second buffer capacity check
244 below bottom of loop; first check at top suffices for loop itself.
245 (find_file): Remove redundant pointer checks in first two loops;
246 replace third loop with pointer to last list element determined
247 in first loop.
248
0cd27550
DE
249start-sanitize-arc
250Thu Jun 8 11:44:35 1995 Doug Evans <dje@chestnut.cygnus.com>
251
252 * config/tc-arc.h (MD_APPLY_FIX3): Define.
253 * config/tc-arc.c (md_apply_fix3): Renamed from md_apply_fix.
254 Undo effects of md_pcrel_from if symbol is in another section.
255end-sanitize-arc
256
d5263ab4
KR
257Tue Jun 6 13:53:06 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
258
0cd27550
DE
259 * config/tc-sparc.c (sparc_ip): Handle defined absolute symbols as
260 ASI values.
261
d5263ab4
KR
262 * config/obj-vms.c (vms_write_object_file, case N_DATA): Use
263 strcmp against FAKE_LABEL_NAME instead of checking third
264 character. (Suggested by Pat Rankin.)
265
69cb5925 266Mon Jun 5 20:10:46 1995 Pat Rankin (rankin@eql.caltech.edu)
d5263ab4
KR
267
268 Add support for N_ABS and N_ABS|N_EXT type symbols.
269
270 * config/obj-vms.h (LSY_S_M_{DEF,REL}, ENV_S_M_{DEF,NESTED}):
271 New macros for local symbols (from <lsydef.h> and <envdef.h>).
272 * config/obj-vms.c (Current_Environment): New file-scope variable.
273 (VMS_Local_Environment_Setup): New routine.
274 (GBLSYM_LCL): New macro.
275 (VMS_Global_Symbol_Spec): Handle local symbols too.
276 (VMS_Psect_Spec): Set GLOBALVALUE_BIT for absolute symbols.
277 (VMS_Emit_Globalvalues): Handle local and global absolute symbols.
278 (VMS_Store_PIC_Symbol_Reference): Ditto.
279 (vms_write_object_file: GSD symbol loop): Ditto.
280
281Mon Jun 5 16:10:40 1995 Steve Chamberlain <sac@slash.cygnus.com>
282
283 * config/tc-arm.h (LOCAL_LABELS_FB): Define.
284
1be0c30e
KR
285Mon Jun 5 02:17:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
286
287 * configure.in (i386-*-gnu*): Always use GNU ELF config.
288
69cb5925 289Wed May 31 17:49:18 1995 Pat Rankin (rankin@eql.caltech.edu)
58abad7d
KR
290
291 * config/obj-vms.c (obj_crawl_symbol_chain): Update *symbolPP
292 in `else' clause when removing a symbol. Also, revise comments
293 to match the code.
294 (vms_write_object_file (GSD symbol loop, case N_DATA)): Never
295 output symbol definitions for local numeric labels.
296
1cb0d00d
KR
297Tue May 30 18:29:10 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
298
299 * configure.in (architecture variants, cases armeb and arm*): Remove
300 spaces round assignment to endian.
301
0b143492
KR
302Tue May 30 12:31:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
303
304 * write.c (write_object_file): Check for undefined local dollar
305 and fb labels.
306
307 * symbols.c (decode_local_label_name): Extract instance number
308 from the correct location.
309
6053ed62
C
310Sat May 27 21:28:49 1995 J.T. Conklin <jtc@rtl.cygnus.com>
311
312 * config/te-dpx2.h: Include obj-format.h.
313 (COFF_MAGIC): Renamed from FILE_HEADER_MAGIC.
314
315Wed May 24 13:45:32 1995 Steve Chamberlain <sac@slash.cygnus.com>
316
317 * configure, configure.in, config/obj-coff.c, config/obj-coff.h:
318 Add support for ARM pe
319
2e715f06
DE
320Tue May 23 17:00:32 1995 Doug Evans <dje@canuck.cygnus.com>
321
322 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP16
323 and BFD_RELOC_SPARC_WDISP19.
324
6e43bf82
KR
325Tue May 23 19:18:33 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
326
327 * as.c (parse_args) [! USE_EMULATIONS]: Always print an error
328 message.
329
2e715f06
DE
330 * doc/internals.texi: Document obj_app_file and
331 TARGET_BYTES_BIG_ENDIAN.
332
4761bb02
KR
333Mon May 22 20:03:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
334
70d6c396
KR
335 * ecoff.c (ecoff_stab): Add extra leading argument, for 4 May
336 change.
337 * ecoff.h (ecoff_stab): Fix declaration.
338 * obj.h (format_ops.process_stab): Include prototype.
339 * config/obj-elf.h (OBJ_PROCESS_STAB): Pass through seg argument.
340 * config/obj-ecoff.h (OBJ_PROCESS_STAB): Ditto.
341
4761bb02
KR
342 * config/e-mipself.c (mipself): New emulation mode, doesn't change
343 endianness from configured default.
344 * config/e-mipsecoff.c (mipsecoff): Ditto.
345 * configure.in (mips ecoff/elf targets): Include them.
346 * as.c (mipself, mipsecoff): Declare.
347
348 * as.c (emulation_name): New variable.
349 (select_emulation_mode): Set emulation_name. Don't change argv.
350 (parse_args): Handle --emulation; complain if the supplied name
351 isn't what select_emulation_name came up with.
352
1fc2205e
DE
353start-sanitize-arc
354Mon May 22 16:56:58 1995 Doug Evans <dje@chestnut.cygnus.com>
355
356 * config/tc-arc.c (md_pcrel_from): Return 0 for undefined symbols.
357end-sanitize-arc
358
359Sun May 21 21:36:17 1995 Jeff Law (law@snake.cs.utah.edu)
360
361 * config/tc-hppa.c: Reverse changes from Dec. 19th which
362 changed the way unwinds were built for ELF. Rely on relocation
363 symbol reductions to avoid placing the end of function marker
364 symbols into the object file's symbol table.
365
a088fb62
KR
366Sat May 20 12:31:36 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
367
0509f064
KR
368 Added improved VMS support from Pat Rankin:
369
370 Fri 19 May 16:51:40 1995 Pat Rankin (rankin@eql.caltech.edu)
371
372 * config/obj-vms.h (AOUT_STABS): Define.
373
374 * config/obj-vms.c (fpush, rpush): New routines.
375 (push): Replaced by the above.
376 (find_symbol): Slight reorganization to expose tail recursion.
a088fb62
KR
377
378 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
379
380 * Makefile.in (VMS_OTHER_OBJS): delete this.
381 * vmsconf.sh (make-gas.com): build ../libiberty/liberty.olb
382 first if necessary; link gas against it.
383
078d1a5a
KR
384Fri May 19 16:37:39 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
385
386 * gasp.c (istrue): Correctly test for string inequality.
387
ff15324f
KR
388Thu May 18 04:25:11 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
389
390 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
391
69cb5925 392 * config/tc-arm.c (CP_T_{Pre,UD,WB}): Define, bits in co-processor
ff15324f
KR
393 instructions.
394 ([ls]fm_flags): Correct error in bitmasks.
69cb5925
KR
395 (cp_address_required_here): Delete second parameter, FLAGS. All
396 callers changed. Remove all dead code referring to FLAGS. If
ff15324f 397 address is just "[Reg]" then convert into a PRE-INCREMENT UP format.
69cb5925 398 (do_fp_ldmstm): Handle full-descending and empty-ascending stack
ff15324f
KR
399 formats explicitly.
400
401 * config/tc-arm.c (internalError): Define.
402 (ARM_{1,2,250,3,6,7,7DM,ANY,2UP,ALL,3UP,6UP,LONGMUL}): Define processor
403 variants.
404 (FPU_{CORE,FPA10,FPA11,NONE,ALL,MEMMULTI}): Define floating point
405 variants.
406 ({CPU,FPU}_DEFAULT): Define.
407 (cpu_variant): New variable.
408 (asm_flg): Change more_flags to flag_bits.
409 Add prototypes for new functions.
410 (FLAG_{S,P,B,T,ED,FD,FA,EA,IB,IA,DB,DA,L}): Delete.
411 (s_flag[], ldst_flags[], byte_flag[], cmp_flags[], ldm_flags[],
412 stm_flags[], lfm_flags[], sfm_flags[], round_flags[], except_flags[],
413 cplong_flag[]): New variables.
414 (asm_opcode, insns[]): New format, add version support.
415 (arm_flg_hsh): Delete.
416 (do_mul, do_mla): Remove "Warning" from warning messages.
417 (do_arit): Simplify.
418 (do_swap): Make error message more appropriate.
419 (md_begin): Build hash tables starting at first entry in tables.
420 (md_number_to_chars): Cope with big/little-endian selection.
421 (md_chars_to_number): New function.
422 (md_apply_fix): Rewrite to make endian independent.
423 (tc_gen_reloc): Better error messages.
424 (md_assemble): Reject opcodes forbidden by the currently selected cpu
425 variant. Rewrite handling code for instruction flags.
426 (md_shortopts): Add option "m:".
427 (md_parse_option): Get the desired cpu/fpu variant.
428
429 From: David Taylor (dtaylor@armltd.co.uk)
430 * configure.in (architecture variants): Check for "armeb" and "arm*",
431 set endianness accordingly.
432 * read.c (read_a_source_file): New hooks md_start_line_hook and
433 md_after_pass_hook.
434 * config/arm-{big,lit}.mt: New files
435 * config/tc-arm.h ({LITTLE,BIG}_ENDIAN, BYTE_ORDER): Define.
69cb5925 436 (TARGET_FORMAT): Select depending on endianness and emulation and
ff15324f
KR
437 object format.
438 (md_after_pass_hook, md_start_line_hook): Define.
439 * config/tc-arm.c: Include subsegs.h, symbols.h and listing.h.
440 (shift[]): Add uppper case equivalents.
441 (CP_T_[XY], TRANS_BIT): Define.
69cb5925 442 (conds[]): Delete initial NULL entry, add "lo" entry as synonym for
ff15324f
KR
443 "cc".
444 (LONGEST_FLAG, flags[]): Delete.
445 (arm_psr): New structure.
446 (psrs[]): New variable.
447 (PSR_ALL): Define.
448 (LONGEST_INST): Bump to 5.
449 (LITERAL_MASK, COND_MASK, OPCODE_MASK, DATA_OP_SHIFT): Define.
450 (OPCODE_{AND,EOR,SUB,RSB,ADD,ADC,SBC,RSC,TST,TEQ,CMP,CMN,ORR,MOV,BIC,
451 MVN}): Define.
452 (insns[]): Add smull, umull, smlal, umlal, ldfm, stfm, msr and mrs
453 instructions. Add nop and adr pseudo ops.
454 (reg_table): Add APCS register name variants.
455 (arm_psr_hsh): New hash table.
69cb5925 456 (md_pseudo_table): Add "ltorg", "pool", "extend", "ldouble" and
ff15324f
KR
457 "packed".
458 (MAX_LITERAL_POOL_SIZE): Define.
459 (struct literalS): New structure.
460 (literals, next_literal_pool_place, lit_pool_num, current_poolP): New
461 variables.
462 (add_to_lit_pool, symbol_locate, symbol_make_empty): New functions.
463 (validate_immediate): Return FAIL on failure.
464 (s_ltorg): New function.
465 (psr_required_here, psrf_required_here): New functions.
466 (cp_address_required_here): New parameter, flag, all callers changed.
467 If flag is non-zero, restrict the legal addressing modes.
468 (do_nop, do_mrs, do_msr, do_mull): New functions.
469 (negate_data_op): New function.
470 (data_op2): accept #x,y meaning x rotated right by y, but only when
471 suitable constants. If immediate is not legal, try changing the
472 opcode.
473 (do_adr): New function.
474 (do_ldst): accept "ldr reg, =expr". Put expr in the pool if it can't
475 be done as an immediate.
476 (do_fp_ldst): Use CP_T_[XY], not immediate values.
477 (do_fp_ldmstm): New function.
478 (arm_psr_parse): New function.
479 (output_inst): Use INSN_SIZE in call to md_number_to_chars.
480 (md_assemble): Add hack so that "Label instruction" causes alignment of
481 the label.
69cb5925 482 (arm_after_pass_hook, arm_start_line_hook, arm_frob_symbol): New
ff15324f
KR
483 functions.
484
485Wed May 17 05:25:16 1995 Michael Meissner <meissner@tiktok.cygnus.com>
486
487 * config/tc-ppc.c (md_show_usage): Add \'s at end of lines in
488 strings for non-GCC compilers.
489
ff17873d
KR
490Tue May 16 19:36:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
491
492 * config/obj-ecoff.c (ecoff_pop_insert): New function.
493 (ecoff_format_ops): Use it.
494 (obj_ecoff_frob_symbol): Now static.
495
99146659
MM
496Wed May 17 00:59:12 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
497
498 * config/tc-ppc.c (md_begin): Was assuming that an instruction was
499 bigendian and hence 16bit relocs withing instructions would
69cb5925 500 ALWAYS be at addresses i+2-i+3. In LE mode it is i+0-i+1.
99146659 501
b0d41996
KR
502Tue May 16 16:29:58 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
503
739708fa
KR
504 * config/obj-multi.h (obj_frob_symbol, obj_frob_file, S_GET_SIZE,
505 S_SET_SIZE, S_GET_ALIGN, S_SET_ALIGN, obj_copy_symbol_attributes,
506 OBJ_PROCESS_STAB): New macros.
507 * config/tc-mips.c: Protect against redefining them also when
508 including obj-elf.h. Test only OBJ_ELF for including elf/mips.h.
b444036d
KR
509 (mips_init_after_args): New function. Set byte_order here.
510 (md_parse_option): Not here.
511 (byte_order): Don't bother initializing.
512 * config/tc-mips.h (mips_init_after_args): Declare.
513 (tc_init_after_args): New macro.
739708fa 514
b0d41996
KR
515 * read.c (s_lcomm): Do ELF/ECOFF test at run time, not compile
516 time.
517
58ca0030
DE
518start-sanitize-arc
519Mon May 15 13:39:45 1995 Doug Evans <dje@canuck.cygnus.com>
520
521 * config/tc-arc.c (md_longopts): -EB/-EL renamed to
522 -mbig-endian/-mlittle-endian.
523 (md_show_usage): Likewise.
524end-sanitize-arc
525
b04b02a5
SC
526Fri May 12 14:17:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
527
528 Initial support for PE object files.
529 * configure.in, configure (i386-*-pe, i386-*-*nt): Add.
530 * config/obj-coff.c (fixup_segment): Cope with PE wierdness.
531 * config/obj-coff.h (TE_PE): New target format.
532
bb2c9281
KR
533Thu May 11 14:58:21 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
534
535 * config/obj-elf.c (NEED_ECOFF_DEBUG): Define if ECOFF_DEBUGGING
536 was defined by header files. Test in preprocessor conditionals
537 instead of ECOFF_DEBUGGING.
538 (ecoff_debug_pseudo_table): Make empty if NEED_ECOFF_DEBUG is not
539 defined.
540 (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol,
541 elf_frob_file): Only call ecoff routines if NEED_ECOFF_DEBUG is
542 defined.
543 (elf_ecoff_set_ext, elf_get_extr, elf_set_index): Define only if
544 NEED_ECOFF_DEBUG is defined.
545 (elf_format_ops): Reference elf_ecoff_set_ext only if
546 NEED_ECOFF_DEBUG.
547
e7757ad0
KR
548Wed May 10 18:09:12 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
549
550 * Makefile.in (OBJS): Include @extra_objects@.
551 (obj-elf.o, obj-ecoff.o, e-mipself.o, e-mipsecoff.o): New rules
552 for building these independently.
553 * emul-target.h, config/e-mipself.c, config/e-mipsecoff.c: New
554 files.
555
556 * acconfig.h (DEFAULT_EMULATION, EMULATIONS, USE_EMULATIONS,
557 OBJ_MAYBE_*, I386COFF, M68KCOFF, M88KCOFF): New macros.
558 * aclocal.m4 (GAS_UNIQ): New macro.
559
560 * as.c (emulations, n_emulations) [USE_EMULATIONS]: New variable.
561 (select_emulation_mode, default_emul_bfd_name, common_emul_init)
562 [USE_EMULATIONS]: New functions.
563 (main) [USE_EMULATIONS]: Call select_emulation_mode before other
564 initialization.
565 * emul.h: New file.
566 * as.h [USE_EMULATIONS]: Include it.
567
568 * configure.in: Handle enable-targets option. Iterate over target
569 list, building up a list of object file formats and emulation
570 configurations. (Only supports emulations for MIPS CPU so far.)
571 If multiple formats are needed, set obj_format to multi and add
572 format config files to extra_files. If emulation modes are
573 needed, add the relevant files to extra_files.
574
575 * configure.in: Define I386COFF, M68KCOFF, M88KCOFF for those
576 configurations.
577
578 * ecoff.c (ecoff_generate_asm_lineno): Filename argument now
579 points to const.
580 * ecoff.h (ecoff_generate_asm_lineno): Updated declaration.
581
582 * obj.h (obj_read_begin_hook): Don't declare function if it's
583 already a macro.
584
585 * read.c (s_space, cons, stringer): If md_flush_pending_output is
586 defined, call it on entry.
587 * config/obj-elf.c (obj_elf_section): If md_flush_pending_output
588 is defined, call it on entry. If md_elf_section_change_hook is
589 defined, call it before returning normally.
590
591 * read.h (target_big_endian): Declare.
592
593 * obj.h (struct format_ops): Added new function pointer fields
594 ecoff_set_ext, read_begin_hook, symbol_new_hook.
595 (ecoff_format_ops, elf_format_ops): Declare.
596 * config/obj-elf.c (elf_s_get_size, elf_s_set_size,
597 elf_s_get_align, elf_s_set_align, elf_copy_symbol_attributes,
598 elf_sec_sym_ok_for_reloc): New functions.
599 (elf_format_ops): New variable.
600 (elf_frob_symbol): Now takes additional int* argument.
601 * config/obj-elf.h (elf_frob_symbol): Update declaration.
602 (elf_pop_insert): Declare.
603 (obj_pop_insert): Define to call elf_pop_insert.
604 * config/obj-ecoff.c (ecoff_sec_sym_ok_for_reloc,
605 obj_ecoff_frob_symbol): New functions.
606 (ecoff_format_ops): New variable.
607
608 * config/te-generic.h: If OBJ_HEADER is defined, use it as the
609 filename to include in place of obj-format.h.
610 * config/te-multi.h: New file, copied from te-generic.h.
611 * config/obj-elf.c (OBJ_HEADER): Define it to "obj-elf.h".
612 * config/obj-ecoff.c (OBJ_HEADER): Define it to "obj-ecoff.h".
613
614 * config/obj-elf.c (ECOFF_DEBUGGING): Default to 0.
615 (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol,
616 elf_frob_file): Test it at run time.
617 (obj_ecoff_set_ext, elf_get_extr, elf_set_index): Define
618 unconditionally.
619 (elf_pseudo_table): Renamed from obj_pseudo_table, now static.
620 (ecoff_debug_pseudo_table): Split off into separate table. Define
621 it unconditionally.
622 (elf_pop_insert): New function.
623 * config/obj-elf.h (elf_pop_insert): Declare.
624 (obj_pop_insert): New macro.
625 (obj_ecoff_set_ext) [!OBJ_MAYBE_ELF]: Define to elf_ecoff_set_ext.
626 * config/obj-ecoff.h (obj_ecoff_set_ext): Define to ecoff_set_ext.
627
628 * config/tc-mips.h: Protect against multiple inclusions.
629 (mips_pop_insert): Declare.
630 (md_pop_insert): Call it.
631
632 * config/tc-mips.c: If OBJ_MAYBE_ELF is defined, include
633 obj-elf.h, but preserve OUTPUT_FLAVOR and protect some other
634 macros from redefinition.
635 (ECOFF_DEBUGGING): Default to 0. All references changed to
636 run-time tests or made unconditional.
637 (s_stringer, s_mips_space, s_elf_section): Deleted.
638 (md_pseudo_table): Don't refer to them. Split table into three
639 sections, for MIPS, non-ECOFF_DEBUGGING, and ELF.
640 (mips_pop_insert): New function.
641 (mips_flush_pending_output): New function.
642 (mips_enable_auto_align): New function.
643 * config/tc-mips.h (mips_pop_insert): Declare.
644 (md_pop_insert): New macro.
645 (mips_flush_pending_output): Declare.
646 (md_flush_pending_output): New macro.
647 (mips_enable_auto_align): Declare.
648 (md_elf_section_change_hook): New macro, calls
649 mips_enable_auto_align.
650
8370e93e
MM
651Tue May 9 17:07:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
652
653 * configure.in: Add little endian PowerPC support.
654 * configure: Rebuild with autoconf.
655 * config/ppc-big.mt: New file for big endian PowerPC systems.
656 * config/ppc-lit.mt: New file for little endian PowerPC systems.
657
658 * config/tc-ppc.h (target_big_endian): Declare.
659 (TARGET_FORMAT): Deal with little and big endian ELF variants.
660 (TARGET_BYTES_BIG_ENDIAN): Define as 1, not empty.
661
662 * config/tc-ppc.c (ppc_big_endian): Delete variable, use
663 target_big_endian instead.
664 (md_parse_option): Parse -mlittle and -mlittle-endian to use
665 little endian support. Parse -mbig and -mbig-endian to use big
666 endian support.
667 (md_show_usage): Update to reflect current switches.
668 (ppc_set_cpu): Recognize powerpcle as little endian PowerPC. Use
669 as_fatal, not abort if unknown machine.
670
56187f65
JL
671Tue May 9 10:58:41 1995 Jeff Law (law@snake.cs.utah.edu)
672
673 * config/tc-hppa.c (md_apply_fix): Cast *valp to an integer when
674 comparing against signed values.
675 (hppa_force_relocation): Make "distance" an integer.
676
1e63de91
KR
677Tue May 9 00:47:03 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
678
679 * obj.h (struct format_ops) [BFD_ASSEMBLER]: New type.
680 (this_format) [BFD_ASSEMBLER]: Declare new variable, if not
681 already defined as a macro.
682
fd1fdba2
KR
683Mon May 8 21:44:13 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
684
685 * subsegs.h (seg_info): Provide dummy version for
686 non-BFD_ASSEMBLER, non-MANY_SEGMENTS configuration. It should
687 never get invoked, but this is easier than conditionalizing some
688 of the uses.
689 (struct seg_info_trash): Dummy type used by above to make code
690 compile.
691
e51a3912
KR
692Fri May 5 14:47:13 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
693
694 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define to 1, not
695 empty.
696 * config/obj-elf.h (SEPARATE_STAB_SECTIONS): Ditto.
697 * config/obj-som.h (SEPARATE_STAB_SECTIONS): Ditto.
698
8c5e0f5e
KR
699Thu May 4 19:26:55 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
700
701 * stabs.c (get_stab_string_offset): Always define. If
702 SEPARATE_STAB_SECTIONS isn't set, abort.
703 (SEPARATE_STAB_SECTIONS): Default to zero.
704 (aout_process_stab): New function, split out from s_stab_generic.
705 (OBJ_PROCESS_STAB) [AOUT_STABS]: Define to call aout_process_stab,
706 if not already defined.
707 (s_stab_generic): Test SEPARATE_STAB_SECTIONS at run time. If
708 it's not set, and OBJ_PROCESS_STAB isn't defined, abort. Always
709 pass six arguments to OBJ_PROCESS_STAB.
52f969e2 710 * read.h (get_stab_string_offset): Declare unconditionally.
8c5e0f5e
KR
711 * config/obj-aout.h (AOUT_STABS): Define.
712 * config/obj-bout.h (AOUT_STABS): Define.
713 * config/obj-ecoff.h (OBJ_PROCESS_STAB): Add new first argument,
714 ignored.
715 * config/obj-elf.h (OBJ_PROCESS_STAB) [ECOFF_DEBUGGING]: Ditto.
716
717 * config/obj-ecoff.h (ECOFF_DEBUGGING): Define to 1, not empty.
718 * config/obj-elf.h (ECOFF_DEBUGGING): Ditto. Test value, not
719 whether it's defined.
720
9777b772
KR
721Wed May 3 21:38:20 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
722
723 * as.h (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): If not already
724 defined, define them to zero.
725 * config/tc-*.h, config/te-*.h: If defining them, define them to
726 be 1 instead of empty.
727 * expr.c (integer_constant, operand): Test them at run time
728 instead of compile time.
729 * read.c (read_a_source_file): Ditto.
730 * symbols.c (colon): Ditto.
731 (dollar_*, define_dollar_label, fb_*): Define unconditionally.
732 * symbols.h (dollar_*, define_dollar_label, fb_*): Declare
733 unconditionally.
734
4829cd65
JL
735Wed May 3 13:08:53 1995 Jeff Law (law@snake.cs.utah.edu)
736
69cb5925 737 * config/tc-hppa.c (md_apply_fix): Do nothing for an out of range
4829cd65
JL
738 PC relative call since those only occur in cases where the linker
739 can fix them up.
740 (hppa_force_relocation): Force relocations for out of range PC
741 relative calls.
742
55ac59da
JL
743Tue May 2 16:34:47 1995 Jeff Law (law@snake.cs.utah.edu)
744
745 * configure (hppa*-*-lites*): Handle just like hppa*-*-*elf*.
746 * configure.in: Likewise.
747
2c4022af
KR
748Tue May 2 11:22:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
749
750 * read.c (pop_insert): New function.
751 (pop_override_ok, pop_table_name): New variables.
752 (md_pop_insert, obj_pop_insert): New macros.
753 (pobegin): Use them.
754
755 * config/tc-mips.c: Use USE_STDARG and USE_VARARGS instead of
756 NO_STDARG &c.
757
758 * read.c (target_big_endian): If TARGET_BYTES_BIG_ENDIAN is
759 defined, initialize to 1.
760 * config/tc-mips.c (mips_target_format): Changed to a function,
761 checking flavor and byte order at run time.
762 (md_parse_option, cases OPTION_EB and OPTION_EL): Set
763 target_big_endian here.
764 (md_begin): Not here.
765 * config/tc-mips.h (mips_target_format): Adjust declaration.
766 (TARGET_FORMAT): Call mips_target_format.
767
768 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Define in terms of
769 OUTPUT_FLAVOR.
770 * config/tc-mips.c (g_switch_value, g_switch_seen): Define
771 unconditionally.
772 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
773 s_abicalls, nopic_need_relax): Check USE_GLOBAL_POINTER_OPT at run
774 time, instead of compiling conditionally on GPOPT.
775 (GPOPT): Don't define.
776 (md_shortopts): Always include -G.
777 (RDATA_SECTION_NAME): Select at run time.
778 (md_begin): Test for ELF format at run time instead of compile time.
779 (mips_ip, s_change_sec): Ditto.
780 (md_parse_option, cases OPTION_CALL_SHARED and OPTION_NON_SHARED):
781 Ditto.
782 (OPTION_CALL_SHARED, OPTION_NON_SHARED, mips_regmask_frag): Define
783 unconditionally.
784
91a165d1
KR
785Tue May 2 00:17:04 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
786
833c46e1
KR
787 * Makefile.in (TARG_CPU_DEP_*): New variables.
788 (targ-cpu.o): Depend on one, selected by autoconf substitution,
789 instead of TARG_CPU_DEPENDENTS.
790 * configure.in: Substitute $cpu_type, $obj_format, $atof, and
791 $emulation into Makefile.in.
792start-sanitize-arc
793 * config/arc.mt: Deleted.
794end-sanitize-arc
795 * config/h8300.mt: Deleted.
796 * config/h8500.mt: Deleted.
797 * config/i386coff.mt (TARG_CPU_DEPENDENTS): Deleted.
798 * config/m68k.mt: Deleted.
799 * config/m68kcoff.mt (TARG_CPU_DEPENDENTS): Deleted.
800 * config/m88kcoff.mt (TARG_CPU_DEPENDENTS): Deleted.
801 * config/mips-big.mt (TARG_CPU_DEPENDENTS): Deleted.
802 * config/mips-lit.mt (TARG_CPU_DEPENDENTS): Deleted.
803start-sanitize-rce
804 * config/rce.mt: Deleted.
805end-sanitize-rce
806 * config/sh.mt: Deleted.
807 * config/w65.mt: Deleted.
808 * config/z8k.mt: Deleted.
809
78dace0a
KR
810 * config/te-dpx2.h (dpx2): Deleted unused macro.
811 * config/te-generic.h (TE_GENERIC): Ditto.
91a165d1
KR
812 * config/te-go32.h (TE_GO32): Ditto.
813 * config/te-hp300.h (TE_HP300): Ditto.
78dace0a 814 * config/te-hppa.h (PA, _TE_PA_H): Ditto.
91a165d1
KR
815 * config/te-ic960.h (TE_IC960): Ditto.
816 * config/te-nbsd532.h (TE_NETBSD532): Ditto.
817 * config/te-pc532mach.h (TE_PC532MACH): Ditto.
818 * config/te-ppcnw.h (TE_PPCNW): Ditto.
78dace0a 819 * config/te-sco386.h (scounix): Ditto.
91a165d1
KR
820
821Mon May 1 15:59:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
822
823 * read.c (s_app_file): If obj_app_file is defined, call it with
824 string as argument. Don't call c_dot_file_symbol or
825 elf_file_symbol.
826 * config/obj-coff.h (obj_app_file): Define as c_dot_file_symbol.
827 * config/obj-elf.h (obj_app_file): Define as elf_file_symbol.
828
829 * as.h (OUTPUT_FLAVOR): Don't define here.
830 * config/obj-aout.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define.
831 * config/obj-bout.h (OUTPUT_FLAVOR): Define.
832 * config/obj-coff.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define.
833 * config/obj-ecoff.h (OUTPUT_FLAVOR): Define.
834 * config/obj-elf.h (OUTPUT_FLAVOR): Define.
835
86a90ab9
DE
836start-sanitize-arc
837Sat Apr 29 21:44:57 1995 Doug Evans <dje@chestnut.cygnus.com>
838
839 * config/tc-arc.c (delay_slot_type): Deleted.
840 (md_assemble): Remember suffixes seen.
841 Issue warnings for 8 byte jump with delay slot, and conditional
842 branch immediately following set of condition codes.
843end-sanitize-arc
844
85f667f7
DE
845Thu Apr 27 20:07:33 1995 Doug Evans <dje@canuck.cygnus.com>
846
847 * Makefile.in (RUNTEST): Use one in srcdir if present.
848 (RUNTESTFLAGS): Define.
849
931a8fab
KR
850Wed Apr 26 15:54:10 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
851
852 Support for more portable alignment handling in assembly code,
853 based on patches from Bryan Ford <baford@schirf.cs.utah.edu>:
854 * read.c (potable): Added balign and p2align, for aligning by
855 bytes or powers of two independent of what ".align" does for a
856 given target.
857 * doc/as.texinfo: Document them.
858
404f16f5
RS
859Tue Apr 25 11:12:04 1995 Rob Savoye <rob@thepub.cygnus.com>
860
861 * configure, configure.in: Look for m68k-*-vxworks* rather than
862 just m68k-wrs-vxworks so gas can be configured for
863 m68k-vxworks5.1.
864
865Fri Apr 21 15:19:06 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
866
867 * config/tc-sh.c (md_apply_fix): If fx_r_type is zero, handle
868 fx_size of 1, and abort on unrecognized sizes.
869
870 * config/tc-m68k.c (m68k_ip): Fix bug in last change regarding
871 non-isvar case.
872
873Sun Apr 16 01:52:52 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
874
875 * config/tc-m68k.h (md_relax_table, TC_GENERIC_RELAX_TABLE):
876 Missed this one in 11 Apr changes.
877
878 * config/tc-i386.h (TC_GENERIC_RELAX_TABLE): Fix typo.
879
bcee935e
KR
880Thu Apr 13 18:18:08 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
881
51ba1ae6
KR
882 * config/tc-sh.c (md_convert_frag): Instead of aborting on large
883 displacements, print an error message. Don't invoke the code that
884 followed the abort call until it's been verified.
885
bcee935e
KR
886 * config/tc-m68k.c (md_show_usage): Add 68060 to list. Split cpu
887 list into three lines.
888
889Thu Apr 13 14:34:36 1995 Torbjorn Granlund <tege@adder.cygnus.com>
890
891 * tc-m68k.c (m68k_init_after_args): Test for m68360.
892 (md_parse_option): Likewise.
893 (md_show_usage): Mention m68360.
894 * tc-m68k.h (TARGET_WORD_SIZE): Define.
895 (TARGET_ARCH): Define.
896
897 * expr.c (integer_constant): If TARGET_WORD_SIZE is defined,
898 sign-extend appropriately.
899
900Thu Apr 13 11:20:17 1995 Michael Meissner <meissner@tiktok.cygnus.com>
901
902 * config/tc-ppc.c (ppc_elf_validate_fix): Properly use PARAMS to
903 hide prototype from non-ANSI compilers, and don't use ANSI syntax
904 for arguments.
905
b5549686
SS
906Wed Apr 12 12:20:19 1995 Stan Shebs <shebs@andros.cygnus.com>
907
908 * mpw-config.in (TDEFINES): Put empty definition into
909 makefile fragment.
910 * mpw-make.in (xmalloc.c.o): Remove.
911 (as.new): Depend on Version.r.
912 (Version.r): Generate from version info.
913
914 * mpw-make.in: Delete references to hex-value.c.
915
916 * mpw-config.in: Add mapping from configs to object file formats,
917 get VERSION from Makefile.in and add to mk.tmp.
918 (mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN.
919 * mpw-make.in (VERSION, gC): Don't define.
920 (ALL_CFLAGS): Remove -d flags.
921 (config.h): Remove definition of MPW, add HAVE_STDARG_H,
922 BFD_ASSEMBLER.
923
924 * mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,
925 include of ::libiberty:.
926 (config.h): Ifdef contents on GAS_VERSION.
927
928 * mpw-make.in (as.c): Compile with C not gC.
929 (config-stamp): Touch correctly.
930 (install-only): New target.
931 (install): Depend on all and install-only.
932
933 * mpw-config.in: Parse target and use to generate forward includes
934 to tc-, obj-, and atof- files, use te-generic.h for emulation.
935 * mpw-make.in (VERSION): Define.
936 (as.c): Compile with GCC.
937 (TARG_OBJECTS, CLIBS): Define.
938 (as.new): Use LDFLAGS, TARG_OBJECTS, CLIBS and EXTRALIBS in link
939 command.
940 (config.h, config-stamp): Build.
941
942 * mpw-make.in (C, CFLAGS): Removed definitions.
943 (ALL_CFLAGS): Define.
944 Set default rule to use {CC} instead of {C}.
945
946 * mpw-make.in (install): Moved here from mpw-build.in.
947 * mpw-build.in: Removed, functionality in mpw-make.in
948
949 * mpw-make.in (CFLAGS): Add more include paths.
950
951 * mpw-config.in (varargs.h, sys/*.h): Don't create when
952 configuring.
953 * mpw-make.in (CFLAGS): Add -w flag.
954
955 * mpw-make.in: Replace 8-bit chars with their names.
956
957 * mpw-config.in: New file, MPW version of configure.in.
958 * mpw-make.in: New file, MPW version of Makefile.in.
959
5d57a66b
DE
960start-sanitize-arc
961Wed Apr 12 07:35:44 1995 Doug Evans <dje@canuck.cygnus.com>
962
963 * config/tc-arc.c (delay_slot_type): New function.
964 (md_assemble): Use hashed list of insns.
965 Print warning if 8 byte insn appears in delay slot.
966 (md_operand): Handle %st(sym1-sym2).
967 (get_arc_exp_reloc_type): Likewise.
968 (md_apply_fix, case BFD_RELOC_ARC_B26): Now using implicit addends
969 so must store them here.
970end-sanitize-arc
971
7beebeb6
KR
972Tue Apr 11 01:42:36 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
973
98df0912
KR
974 * configure.in: Require at least autoconf 2.3, because earlier
975 versions lose on some AIX versions.
976 * configure: Regenerated.
977
978 * configure.in: Add m68k-*-elf.
979 * config/tc-m68k.c (comment_chars) [OBJ_ELF]: Include '#'.
980 (md_pseudo_table) [OBJ_ELF]: Ignore "swbeg".
981 (md_begin): Set alt_notend_table['&'], so svr4-style immediate
982 operands are accepted.
983 (md_apply_fix): Argument VALP should point to valueT.
984 (md_convert_frag): Argument SEC should be type segT.
985 (md_shortopts) [OBJ_ELF]: Accept 'Q' with an argument.
986 (md_parse_option): Ignore it.
987 (md_convert_frag_1): Add in frag address for the symbol in the
988 displacement calculation.
989 * config/tc-m68k.h (TARGET_FORMAT) [OBJ_ELF]: Use "elf32-m68k".
990 (TARGET_ARCH): Define.
991 (REGISTER_PREFIX_OPTIONAL) [OBJ_ELF]: Default to 0.
992 (LOCAL_LABEL, FAKE_LABEL_NAME, REGISTER_PREFIX_OPTIONAL): Handle
993 these the same way for OBJ_ELF as for M68KCOFF.
994
7beebeb6
KR
995 * gdbinit.in: Add breakpoint in as_abort.
996
997 * write.c (cvt_frag_to_fill): If offset is less than zero,
998 complain about it specifically, instead of reporting an assertion
999 failure.
1000 (relax_segment): Complain about .org backwards, then ignore it.
1001 Do generic rs_machine_dependent relaxation only if
1002 TC_GENERIC_RELAX_TABLE is defined, and use its value for the base
1003 of the table.
1004 * tc.h (md_relax_table): Delete declaration.
7b1f56d4 1005 * as.h (struct relax_type): Add forward declaration for type.
7beebeb6
KR
1006 * config/tc-a29k.c: Deleted md_relax_table.
1007 * config/tc-{alpha,arm,h8300,hppa,i860,m88k,mips,ppc,sparc,z8k}.c:
1008 Ditto.
1009 * config/tc-{h8500,i386,i960,ns32k,sh,tahoe,vax,w65}.h: Declare
1010 md_relax_table here, and define TC_GENERIC_RELAX_TABLE to expand
1011 to md_relax_table.
1012 * config/tc-h8500.c (md_relax_table): No longer const.
1013 * config/tc-w65.c (md_relax_table): Ditto.
1014 * config/tc-sparc.c (md_short_jump_size, md_long_jump_size):
1015 Deleted.
1016start-sanitize-arc
1017 * config/tc-arc.c (md_relax_table, md_short_jump_size,
1018 md_long_jump_size): Deleted.
1019end-sanitize-arc
1020start-sanitize-rce
1021 * config/tc-rce.h: Declare md_relax_table here, and define
1022 TC_GENERIC_RELAX_TABLE to expand to it.
1023end-sanitize-rce
faf2dc27
KR
1024 * doc/internals.texi: Describe TC_GENERIC_RELAX_TABLE and
1025 WORKING_DOT_WORD. Mention md_*_jump_size (but description needs
1026 to be fleshed out later). Note m68k PCINDEX mode has been checked
1027 in.
7beebeb6 1028
7015284b
KR
1029Mon Apr 10 15:57:42 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1030
7beebeb6
KR
1031 * config/tc-mips.c (nopic_need_relax): New static function, split
1032 out from md_estimate_size_before_relax.
1033 (md_estimate_size_before_relax): Call it.
1034 (load_address, macro): In NO_PIC branches, if nopic_need_relax
1035 returns nonzero, don't attempt GP optimization.
1036
1037 * config/tc-m68k.c (PCINDEX): New macro.
1038 (md_relax_table): No longer const. Add PCINDEX entries.
1039 (m68k_ip): For AINDX with simple symbol operand, generate a
1040 PCINDEX frag if PC is used, or do normal non-AINDX processing for
1041 address register.
1042 (m68k_init_after_args): If cpu is 68000 or 68010, fix
1043 md_relax_table to prevent relaxation of PCINDEX/BYTE mode to
1044 SHORT, since they don't support that mode.
1045 (md_convert_frag_1, case PCLEA/LONG): Add 4 to offset, not 2. Add
1046 support for new PCINDEX modes.
1047 (md_estimate_size_before_relax): Process PCINDEX/SZ_UNDEF mode.
1048
1049 * config/tc-m68k.c (md_convert_frag_1, case PCLEA/SHORT): Add 2 to
1050 offset.
1051 (m68k_ip, case most punctuation/AOFF): If using PC, call add_frag
1052 using PCLEA.
1053
1054 * config/tc-m68k.c: Don't explicitly include config.h. Deleted a
1055 bunch of "#if 0" code and useless comments.
1056 (struct m68k_cpu): New type.
1057 (archs, n_archs): New variables, with single list of name/enum
1058 mapping and aliases.
1059 (m68k_ip): Delete the table here.
1060 (m68k_init_after_args): Use the new table here instead of
1061 open-coding it.
1062 (md_parse_option, case 'm'): Ditto.
1063
7015284b
KR
1064 * doc/Makefile.in (Makefile): Fix rule for running config.status.
1065 (internals.dvi, internals.ps, internals.ps4): New targets, not
1066 built by default.
1067
1068 * doc/internals.texi: Add loud disclaimer. Refill to 79 columns,
1069 specify fill-column in local-variables section. Change
1070 subheadings to subsections so they can be cross-referenced.
1071 Describe broken words, frags, frag chains, generic relaxation,
1072 relax table, m68k relaxation, m68k addressing modes, test suite
1073 code. Add a few words about various file formats.
1074
1075 * doc/as.texinfo (m68k): Recommend using `%' with registers as the
1076 normal case, instead of the exceptional case.
1077
47ba63b2
DE
1078start-sanitize-arc
1079Thu Apr 6 20:00:11 1995 Doug Evans <dje@chestnut.cygnus.com>
1080
1081 * config/tc-arc.c (arc_condition_codes): Deleted.
1082 (init_opcode_tables): Delete cpu_type_map, call
1083 arc_get_opcode_mach instead.
1084 (arc_common): Delete non-ELF stuff. Require leading '.' in .data.
1085 (md_apply_fix): Delete non-ELF stuff.
1086 Disable special handling of limm values, treat them normally.
1087 (get_arc_exp_reloc_type): New argument `data_p'. Callers updated.
1088 (md_assemble): All limm operands must be output by gas, the opcode
1089 insertion routines cannot be used (they don't do anything and we're
69cb5925 1090 using implicit addends now so we need to output something).
47ba63b2
DE
1091 * config/tc-arc.h (FAKE_LABEL_NAME): Define.
1092end-sanitize-arc
1093
1094Thu Mar 30 14:38:47 1995 H.J. Lu (hjl@nynexst.com)
1095
1096 * configure.in: Change linux to default to elf. Using
1097 i[345]86-*-linuxaout will defaults to a.out.
1098 * configure: Rebuild.
1099
6d7bcd2f
TG
1100Wed Mar 29 17:16:30 1995 Torbjorn Granlund <tege@adder.cygnus.com>
1101
1102 * config/tc-m68k.c (md_apply_fix_2): Cast negative offsets to offsetT
1103 (for hosting on 64 bit machines).
1104
350f083c
ILT
1105Tue Mar 21 16:53:27 1995 Ian Lance Taylor <ian@cygnus.com>
1106
1107 * config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650.
1108
1109Fri Mar 17 16:47:13 1995 Stan Shebs <shebs@andros.cygnus.com>
1110
1111 * write.c (write_object_file): Add PROGRESS macros.
1112
bff1e14d
JL
1113Fri Mar 17 12:40:34 1995 Jeff Law (law@snake.cs.utah.edu)
1114
1115 * config/tc-hppa.c (pa_comm): Make sure to always reset the frag
1116 and section for common symbols.
1117
1118Thu Mar 16 17:26:18 1995 Michael Meissner <meissner@cygnus.com>
1119
1120 * config/tc-ppc.c (ppc_elf_validate_fix): Allow non PC relative
1121 pointers in the .ctors and .dtors section also when using the
1122 -mrelocatable option.
1123 (md_parse_option): Support -m403 as a PowerPC computer.
1124 (md_show_usage): Ditto.
1125
e5926c4a
ILT
1126Wed Mar 15 14:45:42 1995 Ian Lance Taylor <ian@cygnus.com>
1127
1128 * ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr
1129 may be NULL when given strange input. Don't core dump.
1130
a7f668c0
ILT
1131Tue Mar 14 21:36:34 1995 Ian Lance Taylor <ian@cygnus.com>
1132
1133 * config/tc-mips.c (load_register): Don't use addiu for dli of an
1134 unsigned seemingly negative number. Don't bother shifting a zero
1135 value.
1136 (mips_ip): For case 'j', if there are more alternatives, and the
1137 ISA level is at least 3, don't accept an unsigned seemingly
1138 negative number.
1139
f6bc42a3
KR
1140Tue Mar 14 19:16:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1141
1142 * read.c (s_app_line): Fix last patch to deal with a line number
1143 of 1.
1144
ce9a2805
MM
1145Tue Mar 14 17:00:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1146
1147 * config/tc-ppc.c (ppc_elf_validate_fix): Use as_warn_where, not
1148 as_bad_where to give a warning instead of an error.
1149
85a30e59
KR
1150Mon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu)
1151
1152 * config/tc-vax.c (md_assemble): issue a warning if a constant
1153 is used as an operand where an immediate value is not allowed.
1154
78fcad58
KR
1155Fri Mar 10 19:21:19 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1156
69cb5925 1157 * config/obj-coff.c: Redo my 10 Jan change, but get it right this
78fcad58
KR
1158 time. :-)
1159 (fixup_segment): If linkrelax is set, just return.
1160 (write_object_file): Don't treat h8300 and z8k specially with
1161 regard to fixups.
1162 * config/tc-h8300.c (md_begin): Set linkrelax.
1163 * config/tc-z8k.c (md_begin): Ditto.
1164
5fc2a6ec
ILT
1165Thu Mar 9 18:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
1166
1167 * config/obj-coff.c (coff_header_append): Check return value of
1168 bfd_coff_swap_scnhdr_out.
1169
9a6ec5eb
DE
1170Thu Mar 9 13:51:30 1995 Doug Evans <dje@canuck.cygnus.com>
1171
1172 Delete this patch, it breaks the h8300 assembler.
1173 Tue Jan 10 13:34:14 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1174 * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
1175 specially with regard to fixups.
1176
1177Thu Mar 9 12:28:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1178
1179 * config/tc-ppc.c (mrelocatable): Change type to boolean.
1180 (md_begin): Set the EF_PPC_RELOCATABLE if -mrelocatable.
1181
a79bf95d
ILT
1182Wed Mar 8 15:39:39 1995 Ian Lance Taylor <ian@cygnus.com>
1183
1184 * config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
1185 r10000. If mips_isa is 4, set the machine number to 8000.
1186 (append_insn): If mips_isa is at least 4, don't generate nops for
1187 coprocessor delays. Check INSN_READ_FPR_R when setting
1188 mips_cprmask[1].
1189 (mips_emit_delays): If mips_isa is at least 4, don't generate nops
1190 for coprocessor delays.
1191 (mips_ip): Check for INSN_ISA4 instructions. Handle new argument
1192 types 'h', 'R', 'N', and 'M'.
1193 (md_longopts): Accept "mips4".
1194 (md_parse_option): Handle -mips4, and -mcpu=10000 and -mcpu=8000.
1195 (s_mipsset): Permit .set mips4.
1196
74e1b52e
MM
1197Wed Mar 8 09:36:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1198
1199 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .stab sections to
1200 have non PC relative relocations with -mrelocatable.
1201
82a7c457
KR
1202Wed Mar 8 02:57:53 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1203
1204 * config/tc-m68k.c (opcode_ptr): Return pointer to const.
1205 (md_begin): Make hash table errors fatal. Process opcode aliases
1206 after main opcode table.
1207 (md_apply_fix_2, case 4): Recode setting of lower_limit to avoid
1208 gcc warning.
1209
3f4487d0
DE
1210start-sanitize-arc
1211Tue Mar 7 20:42:35 1995 Doug Evans <dje@chestnut.cygnus.com>
1212
1213 * config/tc-arc.h (LITTLE_ENDIAN, BIG_ENDIAN): Define.
1214 (DEFAULT_TARGET_FORMAT): Define.
1215 (DEFAULT_BYTE_ORDER): Define to little endian.
1216 (TARGET_FORMAT): Byte order is now selectable.
1217 * config/tc-arc.c (arc_target_format): New variable.
1218 (byte_order): New variable.
1219 (md_longopts): New options -EL, -EB.
1220 (md_parse_option): Recognize them.
1221 (md_show_usage): Print them.
1222 (md_begin): Set target_big_endian.
1223end-sanitize-arc
1224
3e39a556
ILT
1225Tue Mar 7 16:07:10 1995 Ian Lance Taylor <ian@cygnus.com>
1226
1227 * doc/as.texinfo: Add documentation for SPARC V9, from Doug Evans
1228 <dje@cygnus.com>.
1229
5f241617
JL
1230Mon Mar 6 09:58:34 1995 Jeff Law (law@snake.cs.utah.edu)
1231
1232 * config/tc-hppa.c: Change all occurences of pa-89 with pa-11 to
1233 be consistent with current naming conventions.
1234 (md_begin): Set a default architecture and machine type.
1235 (pa_ip): If the current instruction specifies a newer machine type
1236 than the current machine type, then update the current machine
1237 type.
1238 (need_pa11_opcode): Likewise.
1239
2c23d22b
JL
1240Sun Mar 5 19:38:09 1995 Jeff Law (law@snake.cs.utah.edu)
1241
1242 * config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument
1243 relocation bits for absolute calls.
1244
0578ade3
KR
1245Fri Mar 3 17:41:50 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1246
cb7973c3
KR
1247 * config/tc-h8300.* (md_operand): Change empty function to empty
1248 macro.
1249
1250 * config/tc-h8300.c (build_bytes): Make H8/300-H warning message
1251 clearer.
1252
0578ade3
KR
1253 * write.c (write_contents): If bfd_set_section_contents fails,
1254 print a message and exit, instead of aborting.
1255
3f81f3cf
MM
1256Fri Mar 3 16:26:19 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1257
1258 * tc.h (md_apply_fix3): If MD_APPLY_FIX3 is defined, declare
1259 md_apply_fix3.
1260
1261 * write.c (fixup_segment): If MD_APPLY_FIX3 is defined, call
1262 md_apply_fix3 with the normal 2 arguments and the current segment
1263 pointer instead of md_apply_fix.
1264
1265 * config/tc-ppc.h (MD_APPLY_FIX3): Define.
1266
1267 * config/tc-ppc.c (ppc_elf_validate_fix): Warn if -mrelocatable
1268 and a non PC relative relocation that isn't in the .got2 segment
1269 was performed.
1270 (md_apply_fix3): Rename from md_apply_fix and take segment pointer
1271 as third argument. If ELF object format, call ppc_elf_validate_fix
1272 for normal relocations.
1273 (md_parse_option): If ELF object format, recognize the
1274 -mrelocatable switch.
1275
1276Thu Mar 2 16:34:44 1995 Ian Lance Taylor <ian@cygnus.com>
1277
1278 * config/tc-i386.h (AOUT_MACHTYPE): Define as 100, not 0.
1279
33d8f469
KR
1280Tue Feb 28 18:29:27 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1281
1282 * config/tc-arm.c, config/tc-arm.h (md_operand): Replaced empty
1283 function in .c file with empty macro in .h file.
1284 * config/tc-h8500.*, config/tc-hppa.*, config/tc-i386.*,
1285 config/tc-i860.*, config/tc-i960.*, config/tc-ns32k.*,
1286 config/tc-ppc.*, config/tc-sh.*, config/tc-sparc.*,
1287 config/tc-tahoe.*, config/tc-vax.*, config/tc-w65.*,
1288 config/tc-z8k.*: Ditto.
1289start-sanitize-rce
1290 * config/tc-rce.*: Ditto.
1291end-sanitize-rce
46f12809
KR
1292 * config/tc-m68k.*: Ditto.
1293
1294 * config/tc-m68k.c (mote_pseudo_table): Removed dots from opcode
1295 names.
33d8f469
KR
1296
1297 * read.c (s_app_line): Ignore non-positive line numbers.
1298
0877841d
ILT
1299Tue Feb 28 15:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
1300
1301 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust PLT or
1302 GOT relocs either.
1303
d2c02060
KH
1304Mon Feb 27 13:03:41 1995 Kung Hsu <kung@mexican.cygnus.com>
1305
1306 * configure.in: add a29k-*-vxworks configuration.
1307
7811254c
ILT
1308Fri Feb 24 14:41:15 1995 Ian Lance Taylor <ian@cygnus.com>
1309
d2c02060
KH
1310 * config/tc-mips.c (load_register): Take dbl argument to determine
1311 handling of signed 32 bit values in 64 bit modes. Change all
1312 callers.
1313 (macro): Handle M_DLI and M_DLA_AB.
7811254c 1314
e386acc8
JL
1315Wed Feb 22 23:10:56 1995 Jeff Law (law@snake.cs.utah.edu)
1316
1317 * config/tc-hppa.c (md_apply_fix): Don't subtract the value of the
1318 add symbol if it's a common symbol (the value of a common symbol
1319 is its size, not a value in the traditional sense).
1320
546f5536
ILT
1321Wed Feb 22 21:12:28 1995 Ian Lance Taylor <ian@cygnus.com>
1322
1323 * config/tc-mips.c (append_insn): If listing_prev_line is called,
1324 call frag_grow to make sure there is still room for a variant.
1325
7a3761e1
ILT
1326Fri Feb 17 14:50:08 1995 Ian Lance Taylor <ian@cygnus.com>
1327
61420a20
ILT
1328 * config/tc-mips.c (md_pseudo_table): Add 2byte, 4byte and 8byte
1329 if OBJ_ELF. From gary@Intrepid.COM (Gary Funck).
1330
7a3761e1
ILT
1331 * config/obj-elf.c (elf_frob_symbol): Warn if a symbol is both
1332 weak and common.
1333 * config/obj-aout.c (obj_aout_frob_symbol): Likewise.
1334
5836732b
MM
1335Fri Feb 17 12:43:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1336
1337 * config/tc-ppc.c (md_pseudo_table): Don't redefine byte under
1338 ELF.
1339 (ppc_elf_cons): Don't support @pcrel any more, since DIFF_EXPR_OK
1340 allows the normal expressions to generate it.
1341 (md_apply_fix): Convert BFD_RELOC_32 with pcrel bit set into
1342 BFD_RELOC_32_PCREL. Abort if either BFD_RELOC_16 or BFD_RELOC_8
1343 need PC relative relocations.
1344
1345 * config/tc-ppc.h (DIFF_EXPR_OK): Define to allow PC relative
1346 expressions to be handled.
1347
b8ed3de3
DE
1348Thu Feb 16 14:30:13 1995 Doug Evans <dje@cygnus.com>
1349
1350 * expr.c (operand): Move md_operand handling to default case
1351 (so it works).
1352
efc538ba
ILT
1353Wed Feb 15 16:08:47 1995 Jason Molenda <crash@cygnus.com>
1354
1355 * config/tc-h8500.c (tc_coff_symbol_emit_hook): Add ignored
1356 parameter, to match prototype.
1357
4a6b2f8b
MM
1358Wed Feb 15 15:07:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1359
1360 * config/tc-ppc.c (md_pseudo_table): If ELF, go to ppc_elf_cons
1361 instead of cons.
1362 (md_show_usage): Show all of the PowerPc options.
1363 (ppc_elf_suffix): New function to recognize ELF suffixes that
1364 specify a relocation, such as @GOT.
1365 (ppc_elf_cons): Replacement for the standard cons function that
1366 knows about the ELF suffixes.
1367 (ppc_fixup): Add reloc field to hold non-standard relocation.
1368 (md_assemble): Handle ELF suffixes like @GOT.
1369 (md_create_short_jump): Dummy in case WORKING_DOT_WORD is not
1370 defined.
1371 (md_create_long_jump): Ditto.
1372 (md_short_jump_size): Ditto.
1373 (md_long_jump_size): Ditto.
1374 (md_apply_fix): Handle BFD_RELOC_32_PCREL, BFD_RELOC_LO16,
1375 BFD_RELOC_HI16, BFD_RELOC_HI16_S, BFD_RELOC_PPC_TOC16, and
1376 BFD_RELOC_16 relocations. If relocation can not be found, print
1377 the decimal value of the relocation.
1378
b2b8c24e
ILT
1379Wed Feb 15 11:46:02 1995 Ian Lance Taylor <ian@cygnus.com>
1380
49ad0c4c
ILT
1381 * config/tc-mips.c (md_apply_fix): Accept BFD_RELOC_16, for
1382 DWARF. From gary@Intrepid.COM (Gary Funck).
1383
adcf2b9d
ILT
1384 * config/tc-mips.c (macro): Handle M_U{L,S}D[_A] (unaligned double
1385 loads and stores).
1386
1387 * config/tc-i386.c (tc_i386_fix_adjustable): Do adjust global
1388 symbols if OBJ_AOUT.
1389
b2b8c24e
ILT
1390 * config/tc-mips.c (macro): Don't use the target register as a
1391 base register when building the address for M_L{W,D}{L,R}_AB.
1392
08b7351f
ILT
1393Mon Feb 13 14:44:32 1995 Ian Lance Taylor <ian@cygnus.com>
1394
b2b8c24e
ILT
1395 * config/tc-mips.c (KT0, KT1): Define.
1396 (mips_ip): Recognize $kt0 and $kt1 as register names.
1397
08b7351f
ILT
1398 * config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF.
1399 * config/tc-sparc.c (md_apply_fix): If OBJ_ELF, subtract out the
1400 value of a defined symbol; the value was added in by
1401 fixup_segment. This was previously corrected, if the reloc was
1402 changed to be against a section symbol, in tc_gen_reloc.
1403
1404start-sanitize-arc
1405Mon Feb 13 10:02:35 1995 Doug Evans <dje@canuck.cygnus.com>
1406
1407 * config/tc-arc.h (TC_PARSE_CONS_EXPRESSION): Define.
1408 (TC_CONS_FIX_NEW): Define.
1409 * config/tc-arc.c (get_arc_exp_operand_type): New function.
1410 (init_opcode_tables): Insert registers into global symbol table.
1411 (md_assemble): Call `expression' to parse all expressions.
1412 Call `get_arc_exp_operand_type'.
1413 (md_operand): Recognize %st(foo).
1414 (arc_parse_cons_expression): New function.
1415 (arc_cons_fix_new): New function.
1416 (md_apply_fix): Handle new reloc BFD_RELOC_ARC_B26.
1417end-sanitize-arc
1418
e13a80f7
ILT
1419Fri Feb 10 14:04:04 1995 Ian Lance Taylor <ian@cygnus.com>
1420
1421 * config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERN
1422 rather than !S_IS_LOCAL.
1423
2ec8f45e
DE
1424start-sanitize-arc
1425Thu Feb 9 17:44:29 1995 Doug Evans <dje@canuck.cygnus.com>
1426
1427 * config/tc-arc.c (md_pseudo_table): Add .cpu.
1428 (comment_chars): Add ';'.
1429 (arc_mach_type, mach_type_specified, cpu_tables_init_p): New globals.
1430 (md_parse_option): Delete support for -mmult. Add -mcpu=xxx.
1431 (md_begin): Current ARCs are little endian.
1432 Call bfd_set_arch_mach to set the cpu type.
1433 (init_opcode_tables): New function.
1434 (md_begin): Ignore suffixes and registers not supported by cpu.
1435 (md_assemble): Initialize opcode tables here.
1436 Ignore opcodes not supported by selected cpu.
1437 Always ask for more memory in one piece.
1438 (arc_cpu): New function.
1439 (md_numbers_to_chars): Support both endians (will probably be needed
1440 eventually anyway).
1441 (md_apply_fix): Likewise.
1442 * config/tc-arc.h (LOCAL_LABEL): Delete "_.L_", gcc works around
1443 dwarfout.c quirk.
1444end-sanitize-arc
1445
79c4bb34
ILT
1446Thu Feb 9 18:16:34 1995 Ian Lance Taylor <ian@cygnus.com>
1447
1448 * config/tc-i386.c (md_assemble): Adjust conditions for changing
1449 BFD_RELOC_32 to BFD_RELOC_386_GOTPC to handle a switch in frags.
1450 Patch originally from Rob Ryan <robr@cmu.edu>.
1451
1452 * config/tc-i386.c: Include subsegs.h.
1453 (tc_i386_fix_adjustable): Declare return value.
1454 (i386_operand): Don't use an assignment directly as a condition.
1455
e6d31135
JL
1456Thu Feb 9 10:37:13 1995 Jeff Law (law@snake.cs.utah.edu)
1457
1458 * config/tc-hppa.c (md_apply_fix): In some cases subtract the
1459 value of the add symbol from valp. Offsets braindamage in the
1460 "machine independent" fixup_segment.
1461
15f146be
KR
1462Wed Feb 8 18:51:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1463
e10c7dfc
KR
1464 * messages.c (as_abort): New function.
1465 * as.h (as_abort): Declare it.
1466 (abort): New macro.
1467
15f146be
KR
1468 Thu Jan 19 18:10:05 1995 Pat Rankin (rankin@eql.caltech.edu)
1469
1470 * config/vms-conf.h (HAVE_UNISTD_H): define it unconditionally.
1471 * config-gas.com: test for availability of <unistd.h>; create a
1472 rudimentary one if necessary.
1473
06c08e9a
MM
1474Tue Feb 7 13:34:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1475
1476 * configure.in: Add powerpc-*-eabi support, which is the same as
1477 powerpc-*-elf.
1478 (configure): Rebuild with autoconf.
1479
c54c7aac
KR
1480Mon Feb 6 03:37:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1481
1482 Changes from Bryan Ford <baford@schirf.cs.utah.edu> for i386
1483 16-bit and msdos support:
1484 * config/tc-i386.c (flag_16bit_code): New variable.
1485 (set_16bit_code_flag): New function.
1486 (md_pseudo_table): Added entries "code16" and "code32".
1487 (md_assemble): Ensure that correct data-size prefixes get emitted,
1488 based on the current mode. Ensure that 32-bit addressing will
1489 always be done. Move segment-prefix handling code. (Why?) Use
1490 16-bit jumps for 16-bit code, 32-bit jumps for 32-bit code.
1491 * config/tc-i386.h (MAX_PREFIXES): Bump to 5.
1492 (Data16, Data32): Define.
1493 * doc/as.texinfo (i386-16bit): New node.
1494 * configure.in (i386-*-msdos*): New target, using a.out format.
1495 * configure: Regenerated.
1496
e2bf6880
KR
1497Thu Feb 2 15:21:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1498
1499 * config/tc-m68k.c (cpu32_control_regs): New macro.
1500 (m68k_init_after_args): Use it, for cpu32 processors.
1501
b003a2d9
KR
1502 Tue Jan 31 17:20:45 1995 Pat Rankin (rankin@eql.caltech.edu)
1503
1504 * config/obj-vms.c (vms_tir_stack_psect): new routine;
1505 (VMS_Set_Data, VMS_Set_Psect, VMS_Store_PIC_Symbol_Reference,
1506 VMS_TBT_Routine_Begin, VMS_TBT_Line_PC_Correlation): use it;
1507 (VMS_Global_Symbol_Spec, VMS_Procedure_Entry_Pt): treat
1508 Psect_Number as `unsigned'.
1509
1510 Thu Jan 26 17:06:28 1995 Pat Rankin (rankin@eql.caltech.edu)
1511
1512 * config/obj-vms.c: performance tuning.
1513 (VMS_Symbol_type_list): convert from single list head to small
1514 array of list heads;
1515 (SYMTYP_HASH): new macro for accessing VMS_Symbol_type_list[];
1516 (find_symbol, setup_basic_type, VMS_typedef_parse): use it;
1517 (VMS_RSYM_Parse): move S_GET_VALUE() inside switch to avoid
1518 calling it for uninteresting cases.
1519
b4682e51
JL
1520Wed Feb 1 23:52:45 1995 Jeff Law (law@snake.cs.utah.edu)
1521
1522 * config/tc-hppa.c (md_apply_fix): Go ahead and call
1523 hppa_field_adjust to get a new value for R_DATA_ONE_SYMBOL
1524 relocations in SOM.
1525 (hppa_fix_adjustable): Refine somewhat.
1526
e2bf6880
KR
1527Fri Jan 27 21:29:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1528
1529 * config/tc-ppc.h (NO_STRING_ESCAPES): Don't define if we are
1530 using ELF.
1531
a18a0f22
KR
1532Thu Jan 26 19:03:42 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1533
1534 * config/tc-h8300.c (get_specific): Add parens around | inside &.
1535 (skip_colonthing): Set L_8 if ":8" is specified.
1536
76e30835
ILT
1537Thu Jan 26 18:38:01 1995 Ian Lance Taylor <ian@cygnus.com>
1538
1539 * config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
1540 601. Check that the error return from hash_insert is "exists".
1541
da8fa3ba
MM
1542Thu Jan 26 11:35:33 1995 Michael Meissner <meissner@cygnus.com>
1543
1544 * configure: Add support for configuring powerpc-*-eabi.
1545
1546 * config/tc-ppc.c (GOT_symbol): Define if object format is ELF.
1547
1548 * config/tc-ppc.h (GLOBAL_OFFSET_TABLE_NAME): Define if object
1549 format is ELF and not defined to be "_GLOBAL_OFFSET_TABLE_".
1550
8d9a1cce
JW
1551Wed Jan 25 16:23:13 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1552
1553 * tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
1554 (md_pseudo_table): Add space for consistent formatting.
1555 (COND8_RANGE, COND12_RANGE): Delete unused macros.
1556 (COND8_F, COND8_M, COND12_F, COND12_M, UNCOND12_F, UNCOND12_M):
1557 Correct minimum and maximum branch offsets. Add comments explaining
1558 why these numbers are correct.
1559
1eeb357e
ILT
1560Wed Jan 25 15:32:09 1995 David Edelsohn <edelsohn@mhpcc.edu>
1561
1562 * config/tc-ppc.c (md_parse_option): Accept mpwr2 as a synonym for
1563 mpwrx; mppc32, m603, and m604 as synonyms for mppc; and mppc64 and
1564 m620 for PowerPC64 mode.
1565 (ppc_symbol_new_hook): Add T0 as synonym for TC0 suffix.
1566
f2224fe2
KR
1567Tue Jan 24 16:44:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1568
1569 * config/tc-vax.c (vip): Introduce new ptr-to-const local variable
1570 for scanning operand string.
1571
1572 Sat Jan 21 17:50:38 1995 Pat Rankin (rankin@eql.caltech.edu)
1573
1574 * config/vax-inst.h (struct vop, fields `vop_warn', `vop_error'):
1575 make them pointers to const char;
1576 (struct vit, field `vit_error'): ditto.
1577 * config/atof-vax.c (md_atof): rename local `littlenum_pointer'
1578 to `littlenumP' to avoid shadowing file scope variable.
1579 * config/tc-vax.c (vip_begin, vip_op_defaults, vip_op_1): make
1580 string arguments be pointers to const char;
1581 (vip): make `alloperr' const char *;
1582 (vip_op): make `err' and `wrn' const char *; rename `access' to
1583 `access_mode' to avoid shadowing library function.
1584 * config/obj-vms.c (`symbol_name'): make it const char *;
1585 (get_struct_name): cast one use of `symbol_name' to char *
1586 [caller guarantees that it won't modify the pointer's target];
1587 (PUT_COUNTED_STRING): use pointer to const char;
1588 (VMS_typedef_parse): make `pnt2' const char *;
1589 (Write_VMS_MHD_Records): make `cp' const char *;
1590 (VMS_Modify_Psect_Attributes, array `Attributes'): make const,
1591 and make field `Name' pointer to const char;
1592
1593 * as.h (`seg_name[]' declaration): pointers to const char;
1594 (struct _pseudo_type, field `poc_name'): pointer to const char.
1595 * subsegs.c (`seg_name[]' definition): ditto;
1596 * hash.c (hash_ask): rename argument `access' to `access_type'
1597 to avoid shadowing library function.
1598 * write.c (variable `the_object_file'): move from file scope
1599 to block scope within write_object_file(); free it after use;
1600 (fixup_segment): conditionally exclude it for OBJ_VMS.
1601 (cvt_frag_to_fill): rename argument `headers' to `headersP'
1602 to avoid shadowing file scope variable.
1603
359bb9a3
JL
1604Mon Jan 23 21:42:39 1995 Jeff Law (law@snake.cs.utah.edu)
1605
1606 * config/tc-hppa.c (pa_ip, case 'D'): Fix typo which caused
1607 miscompilation of "diag" instructions.
1608
73433384
KR
1609Mon Jan 23 15:51:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1610
1611 * configure: Regenerated.
1612
1613 * config/tc-mips.c: Include libiberty.h.
1614
eb10ff23
ILT
1615Mon Jan 23 14:07:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1616
9cc7c60b
ILT
1617 * config/tc-sh.h (tc_init_after_args): Don't define.
1618 * config/tc-sh.c (md_begin): Remove unused variable table.
1619 (md_assemble): Remove unused variable p.
1620 (md_convert_frag): Cast fr_address to unsigned long for printf.
1621 (md_apply_fix): Use as_warn_where rather than as_warn.
1622 (sh_init_after_args): Remove empty function.
1623
eb10ff23
ILT
1624 * configure.in (i386-*-gnu*elf*): New target.
1625
be7571b6
ILT
1626Sat Jan 21 19:02:23 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
1627
1628 * hash.c (hash_ask): If we find the slot after wrapping around,
1629 break out of the loop. Fixes bug in Jan 18 change.
1630
b2683e09
KR
1631Fri Jan 20 17:07:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1632
1633 * hash.c (hash_code): Undo last change.
1634
8e86815b
KR
1635Thu Jan 19 14:49:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1636
11618ce8
KR
1637 * config/tc-alpha.c (alpha_ip): Initialize local variables to keep
1638 gcc quiet.
1639 (gpdisp_hi16_howto): Don't use "const" with reloc_howto_type.
1640 (in_range_signed): Add parens around subtraction inside shift.
1641 * gasp.c (do_data): Initialize local variable "opname".
1642 (istrue): Provide a default case to set "res" and keep "gcc -Wall"
1643 quiet.
1644 * write.c (write_contents): Deleted unused variable.
1645 (print_symbol_value_1): Declare.
1646 * hash.c (hash_ask): Delete disabled non-strcmp version of the
1647 code, and automatic variables used only in those sections.
1648 * write.c (chain_frchains_together_1): Only define local variable
1649 "prev_fix" if BFD_ASSEMBLER.
1650 * flonum-konst.c (dummy1): Return void.
1651 * config/tc-vax.c (md_assemble): Remove two comparisons of
1652 unsigned numbers versus zero.
b2683e09
KR
1653 * as.h (bcopy): If neither memcpy nor bcopy is defined as a macro,
1654 define to use memcpy.
11618ce8
KR
1655
1656 * config/tc-alpha.c, config/alpha-opcode.h: Revert 2 June changes.
1657 Turns out we never got the assignment done after all.
1658
8e86815b
KR
1659 Cleanup of VAX and VMS code, from Pat Rankin:
1660 * config/obj-vms.c: Changed exported function names to lower case.
1661 (Changed call sites in write.c.) Declare VMS system function
1662 names used, conditional on actually being on VMS. Changed many
1663 functions that returned no useful value to now be declared to
1664 return void. Removed many unused variables. Supply missing
1665 return statements or values. Supply `default' case in switch
1666 statements. Ensure local variables get initialized.
1667 * config/tc-vax.c: Minor changes to silence "gcc -Wall".
1668 * config/obj-vms.h, config/tc-vax.h: Added some missing
1669 declarations.
1670
29c8d82c
KR
1671Wed Jan 18 13:49:26 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1672
fca2796a
KR
1673 * atof-generic.c (flonum_print) [TRACE]: New function.
1674 (atof_generic) [TRACE]: Print multiplier before multiplication,
1675 and print multiplication result before and after copy.
1676
1677 * flonum-mult.c (flonum_multip): Avoid sign extension problems
1678 around multiplication operation.
1679
1680 * atof-generic.c (ASSUME_DECIMAL_MARK_IS_DOT): Define.
1681 (atof_generic) [ASSUME_DECIMAL_MARK_IS_DOT]: Check for '.'
1682 explicitly instead of calling strchr.
1683
29c8d82c
KR
1684 * config/tc-sparc.c (sparc_ip): When scanning successive opcode
1685 table entries, check names for pointer equality before doing
1686 string comparisons.
1687
1688 * hash.c (hash_ask): Call strcmp instead of expanding it inline.
1689 (hash_code): Replaced with a version from bfd.
1690
1691 * config/obj-coff.c (write_object_file): If COFF_FLAGS isn't
1692 defined, default it to zero.
1693
96d1566d
ILT
1694Wed Jan 18 12:16:07 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1695
6ece68f0
ILT
1696 * write.c (fix_new_internal): Clear fx_bsr on those targets which
1697 use it.
1698
96d1566d
ILT
1699 * expr.c (operand): Parenthesize && within ||.
1700 * listing.c (listing_newline): Likewise.
1701 (list_symbol_table): Use %lu to print sizeof.
1702 * symbols.c: Comment out unused function indent.
1703 (print_symbol_value_1): Cast pointer to unsigned long for printf.
1704 * config/obj-coff.c (do_relocs_for): Only declare symbol_ptr if it
1705 will be used.
1706 * config/tc-h8300.c (md_begin): Remove unused variable reg.
1707 (get_operand): Declare type of parameter direction. Remove unused
1708 variable size.
1709 (get_specific): Fix comment to avoid nested comments.
1710 (check_operand): Cast X_add_number to unsigned long for printf.
1711 (build_bytes): Remove unused local variables output_ptr, part, and
1712 high.
1713 (build_bytes): Cast X_add_number to unsigned long for printf.
1714 (clever_message): Remove unused variable scan.
1715 (md_assemble): Remove unused variable i.
1716 (tc_coff_sizemachdep): Remove unused function.
1717 * tc-h8300.h (tc_reloc_mangle): Declare.
1718
23f61eaa
ILT
1719Tue Jan 17 10:58:06 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1720
1721 * config/tc-mips.c (mips_4650): New static variable.
1722 (md_begin): Handle a cpu string of "4650". If mips_4650 was not
1723 initialized, set it to 0.
1724 (append_insn): Don't insert nops around HI and LO on a 4650.
1725 (mips_emit_delays): Likewise.
1726 (mips_ip): Use INSN_ISA mask to check ISA of instruction. Check
1727 for INSN_4650.
1728 (md_longopts): Add m4650 and no-m4650.
1729 (md_parse_option): Handle mips-cpu=4650. Handle -m4650 and
1730 -no-m4650.
1731 * doc/as.texinfo: Document new MIPS options.
1732
a11a8d55
SC
1733Sat Jan 14 23:48:13 1995 Steve Chamberlain <sac@jonny>
1734
1735 * config/tc-w65.c, config/tc-w65.h, config/w65.mt: Newfiles.
1736 * config/obj-coff.h: Cope with w65.
1737 * configure, configure.in: Recognize w65.
1738
3a762a0b
KR
1739Thu Jan 12 17:56:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1740
20323565
KR
1741 * app.c (do_scrub_next_char) [__GNUC__ && __OPTIMIZE__]: If `get'
1742 function is scrub_from_file, call scrub_from_file directly, and
1743 get gcc's inlining capability into the act.
1744
3a762a0b
KR
1745 * Makefile.in (VMS_OTHER_OBJS): Add ../libiberty/hex.o.
1746 (OBJS): Delete hex-value.o.
1747 (REAL_SOURCES): Delete hex-value.c.
1748 (hex-value.o): Delete dependencies.
1749 * hex-value.c: Deleted.
1750 * as.c (main): Call hex_init.
1751 * expr.c, config/tc-mips.c: Include libiberty.h. Replace
1752 hex_value array references with hex_* macros.
1753
c01ebe2a
KR
1754Wed Jan 11 17:51:38 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1755
3a762a0b
KR
1756 * config/tc-h8300.h (COFF_FLAGS): Don't define.
1757 * config/tc-h8500.h (COFF_FLAGS), config/tc-sh.h (COFF_FLAGS),
1758 config/tc-z8k.h (COFF_FLAGS): Ditto.
1759start-sanitize-rce
1760 * config/tc-rce.h (COFF_FLAGS): Ditto.
1761end-sanitize-rce
1762
1763 * config/obj-coff.c (KEEP_RELOC_INFO): Make sure it's always
1764 defined.
1765
c01ebe2a
KR
1766 * config/tc-m68k.c (m68k_ip, cases AOFF and AINDEX): Don't
1767 generate 68020 addressing modes for a 68000 processor.
1768 (md_estimate_size_before_relax, cases PCREL and PCLEA): Ditto.
1769
7a55f462
KR
1770Tue Jan 10 13:34:14 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1771
1772 * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
1773 specially with regard to fixups.
1774
aac4d5a7
KR
1775Mon Jan 9 16:22:28 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1776
483971bd
KR
1777 * config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to
1778 bfd_vma before subtracting.
1779
aac4d5a7
KR
1780 * config/obj-coff.c (size_section): Handle rs_space like rs_fill,
1781 but make sure fr_symbol is null.
1782 (fill_section): Ditto.
1783
1113140a
ILT
1784Sun Jan 8 16:14:19 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
1785
1786 * config/tc-mips.c (mips_ip): Fix handling of floating point
1787 values when GPOPT is not defined.
1788
2a6978af
KR
1789Fri Jan 6 16:59:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1790
1791 * gasp.c: Include string.h. Put config.h before other includes.
1792
71f9b3c0
KR
1793 * config/tc-alpha.c (alpha_ip): Delay calls to emit_add64 until
1794 after any remaining operands are also known to match.
1795
f949f7b8
KR
1796Fri Dec 30 18:21:41 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1797
1798 * listing.c (list_symbol_table): Build a format string based on
1799 the size of the value to be printed, as long as "unsigned long" is
1800 at least as wide, after handling the special case of 4-byte
1801 values.
1802
84951544
KR
1803 * Makefile.in (dependencies): Make $(OBJS) depend on as.h and
1804 everything it includes. Delete those files from per-file
1805 dependencies.
1806
cd3b81bd
KR
1807 * as.h (relax_substateT): Now defined to be unsigned int.
1808 (relax_stateT): Separate typedef from enum definition.
1809 (enum _relax_state): Reordered for better punctuation. Added new
1810 values rs_align_code and rs_space.
1811 (lineno, struct lineno_struct): Unused, deleted.
1812
1813 * as.h: No longer include assert.h.
1814 (as_assert): Declare.
1815 (assert): New definition, calls as_assert longer needed.
1816 (__PRETTY_FUNCTION__): Provide default for older versions of gcc.
1817 * messages.c (as_assert): New function.
1818 * gdbinit.in: Put a breakpoint there.
1819
1820 * read.c (s_space): Rewrite to handle general expressions.
1821 Generate rs_space frags for non-constant values.
1822 * write.c (cvt_frag_to_fill): Treat rs_align_code and rs_space
1823 like rs_align and rs_org. Verify that fr_offset is non-negative,
1824 and force frag type to rs_fill only after assertion checks.
1825 (relax_segment): Treat rs_align_code like rs_align. Treat
1826 rs_space like rs_org in the first switch; in the second, force the
1827 operand to a constant, and use it for the growth size.
1828
582d2a4d
JL
1829Wed Dec 28 20:57:37 1994 Jeff Law (law@snake.cs.utah.edu)
1830
1831 * config/tc-hppa.c (pa_subspace): For sections with the ZERO
1832 attribute, set the "bss" field in the appropriate seginfo structure.
1833
4a9c666e
KR
1834Wed Dec 28 15:01:01 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1835
1836 * subsegs.h: Include obstack.h.
1837
1838Tue Dec 27 18:16:04 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1839
1840 * as.h (struct frag): Enable align* components now.
1841
7e2283d4
KR
1842Tue Dec 20 14:56:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1843
87e48495
KR
1844 * frags.c (frag_init): Call obstack_begin on `frags'.
1845 * subsegs.c (subsegs_begin): Don't do it here.
1846 * as.c (main): Call frag_init before subsegs_begin.
1847
1848 * frags.c (frag_append_1_char): New function.
1849 * frags.h (frag_append_1_char): Declare it.
1850 (FRAG_APPEND_1_CHAR): Call it. Old definition is commented out
1851 for now.
1852
1853 * as.h (struct frag): Added (but commented out) new fields for
1854 tracking current alignment.
1855 (frag_now_fix): Changed macro to function declaration.
1856 * frags.c (frag_now_fix): Define function here.
1857 (frag_new): Use it instead of accessing `frags' directly.
1858 * frags.h (frags): Change comment to indicate it shouldn't be
1859 accessed directly.
1860 * subsegs.h (struct frchain): New field frch_obstack, intended to
1861 eventually replace global `frags' obstack.
1862 * subsegs.c (subseg_set_rest): Use frag_now_fix instead of
1863 accessing `frags' directly. Initialize fields of new frchainS
1864 explicitly instead of with memset.
1865 * config/obj-coff.c (obj_coff_ln) [!BFD_ASSEMBLER]: Use
1866 frag_now_fix.
1867 * config/tc-mips.c (s_loc), config/obj-vms.c
1868 (vms_resolve_symbol_redef), symbols.c (colon): Likewise.
1869
9ad5755f
KR
1870 * config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT
1871 instead of long and unsigned long.
1872 (md_apply_fix): Cast value before passing it.
1873
d675782a
KR
1874 * config/obj-aout.h, config/obj-coff.c, config/obj-elf.h,
1875 config/obj-som.h, config/tc-h8500.c, config/tc-hppa.c,
1876 config/tc-hppa.h, config/tc-sh.c, config/tc-z8k.c: Don't rely on
1877 use of ".." when including header files.
1878start-sanitize-rce
1879 * config/tc-rce.c: Ditto.
1880end-sanitize-rce
1881
1882 * config/obj-coff.c (fixup_segment): Reformat condition in an `if'
1883 statement.
1884
7e2283d4
KR
1885 * Makefile.in (SUBDIR_INCLUDES): Deleted.
1886
972b2401
ILT
1887Tue Dec 20 13:40:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1888
1889 * config/obj-coff.h: Include bfd/libcoff.h, not libcoff.h.
1890
1891start-sanitize-arc
1892Tue Dec 20 09:10:40 1994 Doug Evans <dje@canuck.cygnus.com>
1893
1894 * config/tc-arc.c: Delete lots of sparc pseudo-ops.
1895end-sanitize-arc
1896
847a01cd
ILT
1897Mon Dec 19 16:53:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1898
1899 * config/tc-mips.c (load_register): Rewrite to handle O_big 64 bit
1900 constants.
1901 (mips_ip): Accept O_big constants in case 'I'. Change case
1902 'i'/'j' to treat an O_big constant as an out of range value.
1903
60937ce7
JL
1904Mon Dec 19 14:15:07 1994 Jeff Law (law@snake.cs.utah.edu)
1905
b8f7596c
JL
1906 * config/tc-hppa.c (pa_subspace): Make sure SEC_HAS_CONTENTS is
1907 clear for a section with the "ZERO" attribute.
1908
60937ce7
JL
1909 * Reduce useless symbols for ELF in an attempt to make smaller
1910 objects and speed up the linker.
1911 * config/tc-hppa.c (struct call_info): Replace end_symbol field
1912 with a size field.
1913 (hppa_elf_mark_end_function): Delete unneeded function.
1914 (pa_build_unwind_subspace): For the 2nd unwind relocation, use
1915 the function symbol + function size instead of a special symbol
1916 for the end of the function.
69cb5925 1917 (process_exit): Compute the function size here. Don't call
60937ce7
JL
1918 hppa_elf_mark_end_of_function anymore.
1919 (pa_procend): Likewise.
1920 (hppa_fix_adjustable): Only reject 32bit relocations for SOM.
1921 (elf_hppa_final_processing): Simplify.
1922
88cc1324
DE
1923start-sanitize-arc
1924Mon Dec 19 12:57:09 1994 Doug Evans <dje@canuck.cygnus.com>
1925
1926 * config/tc-arc.c (arc_insert_operand): Change reg parm to pointer
1927 to table entry. All callers changed.
1928 (md_shortopts): New argument -mmult.
1929 (md_parse_option): Recognize it.
1930 (md_show_usage): Print it.
1931 (md_begin): If -mmult, say we have the new multiply and shift insns.
1932 (md_assemble): Fix reloc generation for 32 bit immediate values.
1933 Clean up modifier handling. Try next insn if fake operand says there's
1934 an error. Update to new syntax of insertion/extraction fns.
1935 Recognize predefined aux regs. Don't abort if insertion fn missing.
1936end-sanitize-arc
1937
703139a8
KR
1938Mon Dec 19 13:49:07 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1939
5cda0c7a
KR
1940 * configure.in: Recognize mips-sony-bsd and mips-dec-bsd, but
1941 reject other vendors until we can be sure we're consistent with
1942 bfd.
1943
703139a8
KR
1944 * config/obj-vms.c (Create_VMS_Object_File): Instead of formatting
1945 a buffer to pass to `error', just call `as_fatal' directly.
1946 (VMS_Psect_Spec): Ditto.
1947 (VMS_TBT_Module_Begin, VMS_TBT_Source_File, gen1,
1948 VMS_typedef_parse, VMS_LSYM_Parse, VMS_Emit_Globalvalues): Call
1949 as_tsktsk instead of printf.
1950 (VMS_TBT_Module_Begin, VMS_TBT_Line_PC_Correlation,
1951 VMS_TBT_Source_File, VMS_TBT_Source_Lines,
1952 VMS_Store_Repeated_Data, VMS_Check_For_Main): Use explicit
1953 integers rather than sizeof expressions using basic integer types,
1954 in case host and target aren't the same. Use memcpy or COPY_*
1955 macros instead of possibly unaligned word or longword assignment.
1956
1957 * config/obj-vms.h (OBJ_SYMFIELD_TYPE): New macro.
1958 * config/obj-vms.c (VMS_Store_PIC_Symbol_Reference,
1959 VMS_Check_For_Main, VMS_write_object_file): Use sy_obj instead of
1960 forcing sy_number to hold a pointer.
1961
b63defaa
KR
1962Fri Dec 16 14:40:16 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1963
d6905776
KR
1964 * config/tc-sh.c (md_begin): Don't fill in md_relax_table here.
1965 (md_relax_table): Use static initialization.
1966
091f3a62
KR
1967 * config/tc-h8300.c (parse_exp, get_operands, clever_message,
1968 md_assemble, tc_crawl_symbol_chain, md_undefined_symbol,
1969 tc_headers_hook, md_operand, md_number_to_chars): Don't use DEFUN.
1970
b63defaa
KR
1971 * Makefile.in (CHECKFLAGS): Don't pass AS_FOR_TARGET,
1972 CC_FOR_TARGET, OBJDUMP_FOR_TARGET, NM_FOR_TARGET; they're not
1973 used.
1974 (AS_FOR_TARGET, CC_FOR_TARGET, OBJDUMP, OBJDUMP_FOR_TARGET, NM,
1975 NM_FOR_TARGET): Don't define.
1976 (VMS_OTHER_OBJS): Add xmalloc.o and xexit.o from libiberty.
1977 (tooldir): Use exec_prefix, not libdir.
1978
719153bf
SS
1979Fri Dec 16 11:07:10 1994 Stan Shebs <shebs@andros.cygnus.com>
1980
254603ca
SS
1981 * config/obj-coff.h: Include libcoff.h, not ../bfd/libcoff.h.
1982
719153bf
SS
1983 * as.h: Include progress.h.
1984 * as.c (main): Call START_PROGRESS and END_PROGRESS.
1985 (main, perform_an_assembly_pass): Call PROGRESS.
1986
0141b6c2
ILT
1987Fri Dec 16 00:46:08 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
1988
1989 * write.c (adjust_reloc_syms): Use bfd_is_und_section and
1990 bfd_is_abs_section rather than comparing against &bfd_und_section
1991 and &bfd_abs_section.
1992
8b1f3552
JW
1993Thu Dec 15 15:27:14 1994 Jim Wilson <wilson@chestnut.cygnus.com>
1994
1995 * config/tc-sh.c (md_begin): Use a local variable when
1996 initializing md_relax_table to avoid errors about modifying a
1997 const data structure.
1998
7ac36f64
ILT
1999Tue Dec 13 15:42:27 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2000
2001 * config/tc-ppc.c (tc_gen_reloc): Remove OBJ_ELF hack which
2002 appears to no longer be needed.
2003
6baef6d2
ILT
2004Tue Dec 13 08:04:15 1994 Ian Lance Taylor <ian@cygnus.com>
2005
2006 * config/tc-mips.c (macro_build): Accept BFD_RELOC_PCREL* without
2007 requiring that the X_op_symbol be in the text_section.
2008 (macro): Change the test for a legel expression difference to
2009 correspond to changes in pseudo_set in read.c.
2010
bd869652
KR
2011Fri Dec 9 21:04:17 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2012
a55774a1
KR
2013 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Use
2014 bfd_install_relocation.
2015
3504635a
KR
2016 * ecoff.c (ecoff_set_gp_prolog_size): If there is no current
2017 routine, just return.
2018
bd869652
KR
2019 * config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode
2020 value from pattern instead of assuming jsr.
2021 * config/alpha-opcode.h (jmp): Add a "1,Bc" form.
2022
4181c985
KR
2023Thu Dec 8 17:48:25 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2024
b8f52750
KR
2025 * Makefile.in (NM_FOR_TARGET): Use ../binutils/nm.new, not just
2026 plain nm.
2027
4181c985
KR
2028 * configure.in (ns32k-pc532-mach*): Select correct emulation.
2029 (mips-sony-bsd*): Use ecoff.
c5745996 2030 (mips-*-gnu*): New target, using aout format, from Roland McGrath.
4181c985
KR
2031 * configure: Regenerated.
2032
6ea93cc9
DE
2033start-sanitize-arc
2034Tue Nov 29 18:12:22 1994 Doug Evans <dje@canuck.cygnus.com>
2035
2036 * configure.in (arc-*-elf*): Recognize.
2037 * configure: "regenerated".
4181c985 2038 * config/tc-arc.c, config/tc-arc.h, config/arc.mt: New files.
6ea93cc9
DE
2039end-sanitize-arc
2040
75af551f
KR
2041Tue Nov 29 13:58:10 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2042
d2a0c9f9
KR
2043 Use libiberty version of xmalloc:
2044 * Makefile.in (REAL_SOURCES): Delete xmalloc.c.
2045 (OBJS): Delete xmalloc.o.
2046 (xmalloc.o): Delete dependencies.
2047 * as.c (main): Call xmalloc_set_program_name once program name is
2048 known.
2049
75af551f
KR
2050 * config/tc-alpha.c (in_range_signed, in_range_unsigned): New
2051 routines, split from in_range.
2052 (in_range): Deleted. All calls changed to in_range_*signed.
2053 (create_lita_section): Macro deleted. Single use expanded in
2054 place.
2055 (alpha_ip): Handle `t' and `8' operand types.
2056 (md_apply_fix): Handle BFD_RELOC_12_PCREL. Print name of
2057 unhandled relocation types.
2058 * config/alpha-opcode.h: Added HALT and DRAINA. Disabled MOVI,
2059 since it doesn't work, and isn't supported by the native
2060 assembler.
2061
2062 * input-scrub.c: Change wording of a comment to avoid interference
2063 with Cygnus source-control tools.
2064
2065 * as.h (errno) [NEED_DECLARATION_ERRNO]: Declare.
2066
2067 * config/tc-m68k.c (init_table): List buscr and pcr control
2068 registers.
2069 (m68k_ip, case 'J'): Handle them.
2070
23c17fea
KR
2071 Delete signal handler code. It's been disabled since March 1993
2072 without complaints.
2073 * as.c: Don't include signal.h.
2074 (got_sig): Unused function deleted, declaration deleted.
2075 (SIGTY): Macro deleted.
2076 (main): Deleted disabled code for establishing signal handler.
2077
4181c985 2078start-sanitize-rce
75af551f
KR
2079 Tiemann should've noted something like this:
2080 * config/tc-rce.c, config/tc-rce.h: New files.
2081 * as.c (main) [TC_RCE]: Call dump_literals.
2082 * configure.in: Handle rce-*-aout.
2083 * configure: Regenerated.
4181c985 2084end-sanitize-rce
75af551f 2085
326fe1a3
DE
2086Mon Nov 28 11:37:35 1994 Doug Evans <dje@canuck.cygnus.com>
2087
2088 * app.c (do_scrub_next_char): Insert missing newline at end of file
2089 like warning says we do.
2090
e07f8926
JL
2091Mon Nov 28 00:11:15 1994 Jeff Law (law@snake.cs.utah.edu)
2092
2093 * config/tc-hppa.h (pa_check_eof): Declare new extern function.
2094 (tc_frob_file): Define to call pa_check_eof.
2095
2096 * config/tc-hppa.c (pa_check_current_space_and_subspace): New
2097 function to verify the current space and subspace are reasonable.
2098 Call for the appropriate pseudo-ops and before instruction parsing.
2099 (pa_check_eof): New function to verify enter/exit and proc/procend
2100 pairs match at EOF.
2101 (pa_code): Simplify.
2102
2103 * config/obj-som.c: Delete #if 0 code.
2104
3f67e000
SC
2105Wed Nov 23 19:36:09 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2106
3f81f3cf
MM
2107 * config/obj-coff.h (TARGET_FORMAT): Select between coff-shl and
2108 coff-sh.
3f67e000
SC
2109 * config/sh.mh (TARG_CPU_DEPENDENTS): Get it right.
2110 * config/tc-sh.c (little): New function.
2111 (md_parse_option): Notice new option.
2112 (build_relax, build_Mytes, md_atof, md_convert_frag, md_apply_fix):
69cb5925 2113 Cope with little endian data.
3f67e000
SC
2114 * config/tc-sh.h (COFF_MAGIC, LISTING_HEADER): Endian dependent.
2115
32c7d5d8
JL
2116Wed Nov 23 10:54:38 1994 Jeff Law (law@snake.cs.utah.edu)
2117
2118 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Revert last
2119 change. The real bug was in bfd/elfcode.h and has been fixed.
2120
740e5428
JL
2121Tue Nov 22 23:31:20 1994 Jeff Law (law@snake.cs.utah.edu)
2122
2123 * config/tc-hppa.c (tc_gen_reloc, ELF variant): Add section->vma
2124 to the relocation's offset.
2125
aa30c7ee
SC
2126Tue Nov 22 14:37:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2127
2128 * Makefile.in (INSTALL_XFORM): Fix typo.
2129
3a443b1e
C
2130Tue Nov 22 10:23:25 1994 J.T. Conklin <jtc@rtl.cygnus.com>
2131
2132 * config/tc-alpha.c (s_alpha_set): Ignore the .set (no)move and
2133 .set (no)volatile directives.
2134
e67b3aa3
JL
2135Tue Nov 15 21:44:13 1994 Jeff Law (law@snake.cs.utah.edu)
2136
3a443b1e
C
2137 * config/tc-hppa.c (pa_subspace): Make sure to always reset
2138 current_subspace.
2139 (pa_text, pa_data): Likewise.
2140
e67b3aa3
JL
2141 * config/tc-hppa.c (pa_align): New function. Aligns the current
2142 offset within the current subspace along with updating the
2143 alignment of the subspace itself.
2144 (pa_subspace): Default alignment to one byte rathern than zero
2145 bytes to avoid setting alignment to log2(0).
2146 (md_pseudo_table): Use pa_alignment for .align.
2147
8de6b5f8
KR
2148Tue Nov 15 15:24:45 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2149
2150 * messages.c (as_fatal): Always put a space after "fatal error:"
2151 when printing message.
2152
1a9a95bb
JL
2153Tue Nov 15 11:10:43 1994 Jeff Law (law@snake.cs.utah.edu)
2154
2155 * config/tc-hppa.h (obj_frob_symbol): Delete.
2156 (tc_frob_symbol): Make definition conditional on OBJ_SOM or
2157 OBJ_ELF. For ELF subtract out symbol->section->vma for non common
2158 symbols.
2159
757d4129
KR
2160Wed Nov 9 14:53:03 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2161
2162 * config/te-delta.h: New file, derived from te-sysv32.h.
2163
642b6186
ILT
2164Wed Nov 9 11:52:44 1994 Ian Lance Taylor (ian@cygnus.com)
2165
2166 * config/tc-ppc.c (ppc_bf): Always set coff_line_base.
2167
f4c01c95
KR
2168Mon Nov 7 01:58:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2169
642b6186
ILT
2170 * Makefile.in (VERSION): Bump to 2.5.3.
2171
3e7acf98
KR
2172 * configure.in: Compare generic cpu name against "sparc", not
2173 "sparc*", since sparc variants should be changed to "sparc".
2174 * configure: Regenerated with autoconf 2.1.
2175
f4c01c95
KR
2176 * config/tc-a29k.c (octal, toHex): Variables deleted.
2177 (isoctal): Macro deleted.
2178 (md_begin): Don't initialize them.
2179 (machine_ip, case 'P'/'A'): For absolute operand, generate an
2180 error message if it's out of range.
2181 (md_apply_fix, case RELOC_JUMPTARG): Check range for PC-relative
2182 jumps.
2183 (md_apply_fix): Delete code inside "#if 0".
2184
5b162d37
KR
2185Thu Nov 3 20:20:40 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2186
b4123234
KR
2187 * config/go32.mh: Unused file deleted.
2188
5b162d37
KR
2189 * read.c (get_absolute_expression): Indicate that the error may
2190 merely be that the expression can't currently be reduced.
2191
0cb42d6f
C
2192Thu Nov 3 16:09:59 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2193
2194 * config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as
2195 "a.out-m68k-netbsd".
2196 * config/tc-sparc.h (TARGET_FORMAT): If TE_NetBSD define as
2197 "a.out-sparc-netbsd".
2198
2199 * config/te-nbsd.h: New file, NetBSD target emulation
2200 * config/te-netbsd.h: Removed.
69cb5925 2201 * configure.in (i[345]86-*-netbsd*,m68*-*-netbsd*,sparc*-*-netbsd*):
0cb42d6f
C
2202 Set bfd_gas. Use nbsd emulation.
2203
f2889110
KR
2204Thu Nov 3 17:44:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2205
2206 Changes from net 2.5.2 release branch:
2207
2208 * configure.in: Put AC_DEFINE(sparcv9) on its own line, so that
2209 the shell variable settings associated with it are permanent. For
2210 CPUs requiring bfd_gas=yes, select it based on CPU only, not
2211 individual target names. Handle m68k-hp-hpux*, not just -hpux.
2212
2213 * config/tc-z8k.c (tc_coff_symbol_emit_hook): Add dummy argument
2214 to match prototype in obj-coff.h.
2215
2216 * configure.in: Skip tests for defining WANT_FOPEN_BIN and
2217 IBM_COMPILER_SUX.
2218 * acconfig.h: Deleted them.
2219 * configure, conf.in: Rebuild with autoconf 2.0.
2220 * config/go32.cfg, config/vms-conf.h: Updated.
2221
2222 * config/tc-m68k.c (md_apply_fix_2, md_convert_frag_1): Always use
2223 IBM_COMPILER_SUX version of code, with comments indicating why.
2224
2225 * listing.c (file_info): Use text mode when opening file for read.
2226 Use "r" directly, no macro.
2227 * input-file.c (input_file_open): Don't use FOPEN_RT, just use
2228 "r".
2229 * read.c (s_include): Ditto.
2230 * output-file.c (output_file_create): Try both "wb" and "w", don't
2231 bother with FOPEN_* macros.
2232 * as.h: Don't include fopen-*.h.
2233
2234 * config/alpha-opcode.h: Make "ret" with no operands equivalent to
2235 "ret zero,(ra)", to match OSF1 and to be consistent with both
2236 one-operand forms.
2237
2238 Patches from DJ Delorie:
2239 * as.h (alloca): undef alloca before defining it just in case
2240 * config/go32.cfg: new file for autoconf values
2241 * config/te-go32.h: new file
2242 * configure.bat: new for autoconf
2243
2244 * config/tc-i386.c (md_assemble): Fix typo in GOTPC check; had =
2245 for ==.
2246
2247 * configure.in: If target_frag doesn't exist, use /dev/null.
2248
2249 * as.c (parse_args): For non-VMS systems, re-add `v' to
2250 std_shortopts. Add "verbose" to list of long options.
2251
2252 * write.c (adjust_reloc_syms): When generating an absolute section
2253 symbol as a placeholder, don't mark it as used in a relocation
2254 entry, here.
2255
2256 * Makefile.in (comparison): Compare using makefile code from gcc,
2257 stripped down to discard subdir stuff and adapted to give a
2258 non-zero exit status if either file differs.
2259
a2c49209
ILT
2260Thu Nov 3 15:43:02 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2261
2262 * config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments for
2263 NO_PIC case.
2264
2622a6c2 2265Tue Nov 1 16:10:59 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
da15a93e
ILT
2266
2267 * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit
2268 switching to the readonly data section.
2622a6c2
ILT
2269
2270 * ecoff.c (ecoff_directive_type): Fix warning message.
2271
ec11c09c
JL
2272Sun Oct 30 00:57:35 1994 Jeff Law (law@snake.cs.utah.edu)
2273
2274 * config/tc-hppa.c (pa_proc): Delete disabled code to put each
2275 proc in its own subspace, we're not going to use it.
2276
4bb0cc41
ILT
2277Tue Oct 25 14:44:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2278
94b68f04
ILT
2279 * config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD in
2280 .rdata does not become a variant frag.
2281
4bb0cc41
ILT
2282 * config/tc-mips.c (mips_cpu): Initialize to -1.
2283 (md_begin): Don't mips_cpu if it was already set.
2284 (md_parse_option): For -mipsN, don't set mips_cpu if it was
2285 already set. For -mcpu=, just set mips_cpu, not mips_isa.
2286
9da4c5d1
ILT
2287Fri Oct 21 20:42:29 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2288
2289 * config/tc-mips.c (md_pseudo_table): If OBJ_ELF, handle .section.
2290 (s_elf_section): New static function.
2291 * ecoff.c (ecoff_build_symbols): Don't abort if we don't recognize
2292 the section when setting the storage class; default to sc_Data.
2293
e443a021
JL
2294Thu Oct 20 00:43:38 1994 Jeff Law (law@snake.cs.utah.edu)
2295
2296 * config/tc-hppa.c (md_apply_fix): Set new_val to 8 for all
2297 fixups to branch instructions (not just pc-relative ones) which
2298 will generate SOM relocations.
2299
030915dc
ILT
2300Wed Oct 19 13:41:56 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2301
2302 * config/tc-a29k.c: Include ctype.h with angle brackets.
2303 (define_some_regs): Add new special register names defined on the
2304 29040.
2305 (parse_operand): Add argument opt. If non-zero, don't warn about
2306 a missing operand.
2307 (machine_ip): If handling argument type 'I', pass opt as non-zero
2308 to parse_operand. Handle new optional operand type 'I'.
2309 (md_undefined_symbol): Handle special register names (srNN).
2310
683f4743
ILT
2311Tue Oct 18 00:45:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2312
2313 * write.c (renumber_sections): New static BFD_ASSEMBLER function.
2314 (write_object_file): Call it after removing gas created sections.
2315
f10a96cb
ILT
2316Mon Oct 17 18:06:05 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2317
62d39689
ILT
2318 * symbols.c (symbol_create): Use udata.p, not just udata.
2319 * config/obj-elf.c (obj_ecoff_set_ext): Likewise.
2320 (elf_get_extr): Likewise.
2321
f10a96cb
ILT
2322 * read.c (read_a_source_file): The second argument to as_where is
2323 unsigned int *, not int *.
2324
2325Mon Oct 17 02:26:32 1994 Jeff Law (law@snake.cs.utah.edu)
2326
2327 * config/tc-hppa.c: Eliminate all uses of fx_addnumber.
2328 (tc_gen_reloc): Simplify. It's no longer necessary to set a
2329 reloc's addend field to zero for function symbols.
2330 (md_apply_fix): Simplify. For fixups which will require a SOM
2331 reloc, just clear out the necessary bits in the output file.
2332
2d928291
KR
2333Fri Oct 14 19:06:46 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2334
2335 * Makefile.in (BISON): Use bison -y, not bison.
2336
2337Thu Oct 13 19:22:54 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2338
2339 * Makefile.in (VERSION): Updated to 2.5.
2340 (clean-here): Delete stamp-mk.com.
2341 (distclean): Delete .gdbinit.
2342 * Version 2.5 released.
2343
ba49e48d
KR
2344Wed Oct 12 20:30:51 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2345
2346 * config/te-nbsd532.h: Renamed from te-netbsd532.h.
2347 * configure.in, configure: Adjusted.
2348
4992dbc9
C
2349Wed Oct 12 16:33:38 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2350
2351 * config/cplus-dem.c: Removed. It isn't used. Even if it was,
2352 it's better to use the one in libiberty.
2353
2cc0357f
KR
2354Wed Oct 12 18:48:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2355
2356 * symbols.c (resolve_symbol_value, case O_symbol): Undo last
2357 change; it breaks the rs6000 support, and doesn't seem to be
2358 needed.
2359
eab55c1c
C
2360Wed Oct 12 11:56:50 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2361
2362 * config/tc-i386.h,te-netbsd532.h (TARGET_FORMAT): Changed to
2363 a.out-<arch>-netbsd to match corresponding changes in BFD.
2364
f0b556a2
ILT
2365Wed Oct 12 11:06:11 1994 Ian Lance Taylor (ian@cygnus.com)
2366
2367 * config/tc-ppc.c (ppc_fix_adjustable): Resolve symbol values
2368 rather than explicitly adding the frag address.
2369 * config/obj-coff.c (coff_frob_symbol): Add a zero entry to mark
2370 the end of the line numbers; this replaces the zero entry which
2371 used to be added by coff_add_linesym, removed Oct 7.
2372 (coff_adjust_section_syms): Ignore sections with no seginfo.
2373
3256c4b5
KR
2374Wed Oct 12 01:41:37 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2375
2376 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Create a
2377 "stage" symlink to the appropriate stage* directory, and use it
2378 instead in the -B options.
2379 (comparison): Revert yesterday's change.
2380
15dc8a20
KR
2381Tue Oct 11 16:48:11 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2382
2383 * config/tc-sparc.c (tc_gen_reloc): For non-a.out relocations, if
2384 pc-relative, use fx_offset only, ignore address of relocation.
2385
c8caa6c5
ILT
2386Tue Oct 11 15:24:00 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2387
2388 * config/tc-mips.c (mips_ip): Don't use S_IS_LOCAL when checking
2389 for an embedded PIC switch expression, since the definition of
2390 S_IS_LOCAL was changed.
2391
6d60424f
KR
2392Tue Oct 11 15:05:11 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2393
2394 * Makefile.in (comparison): When comparing as.new or gasp.new, try
2395 running the binary through sed to avoid differences due to
2396 "stage1" or "stage2" having been written into the binary.
2397
15a90f75
KR
2398Sat Oct 8 01:48:04 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2399
2400 ELF symbol size handling, based on code from Eric Youngdale:
2401 * config/obj-elf.h (OBJ_SYMFIELD_TYPE): New macro. Adds an
2402 expression pointer to the symbol structure, used for `size'
2403 expressions that couldn't be reduced to constants when initially
2404 processed.
2405 (elf_frob_symbol): Declare.
2406 (obj_frob_symbol): Call elf_frob_symbol always, rather than
2407 ecoff_frob_symbol only if ECOFF_DEBUGGING defined.
2408 * config/obj-elf.c (obj_symbol_new_hook): Deleted unused code.
2409 Clear sy_obj field.
2410 (obj_elf_size): Deleted unused code. If size is non-reducible
2411 expression, allocate some storage for the sy_obj field and copy
2412 the expression.
2413 (elf_frob_symbol): New function. Computes sizes, calls
2414 ecoff_frob_symbol if appropriate.
2415
2416 * write.c (fixup_segment): For i386 elf and coff (for now), don't
2417 add in value of symbol from another defined section of the file.
2418
ecee4027
KR
2419Fri Oct 7 17:54:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2420
2421 * config/tc-m88k.h (TC_KEEP_FX_OFFSET): Define.
2422 * config/obj-coff.c (do_relocs_for): Test only TC_KEEP_FX_OFFSET,
2423 rather than both it and TC_M88K.
2424 (coff_adjust_section_syms): New function.
2425 (coff_frob_section): For non-empty sections, create aux entry for
2426 the section symbol, indicating the size.
2427 (n_line_nos): New variable.
2428 (add_lineno): Increment it.
2429 (coff_add_linesym): Increment n_line_nos, don't call add_lineno.
2430 (coff_frob_file): New function; map coff_adjust_section_syms over
2431 sections.
2432 (obj_coff_line): Only reset line_base for .bf symbols.
2433 * config/obj-coff.h (coff_adjust_section_syms, coff_frob_file):
2434 Declare.
2435 (obj_frob_file): New macro.
2436
2437 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Renamed from
2438 obj_frob_forward_symbol, and rewritten for new parameter list.
2439
2440 Mon Oct 3 21:02:38 1994 Pat Rankin (rankin@eql.caltech.edu)
2441
2442 * config/obj-vms.h (S_IS_LOCAL): fix obsolete flagseen[] reference.
2443
2444Wed Oct 5 11:49:26 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2445
2446 * config/obj-ecoff.c (obj_pseudo_table): Accept .esize and .etype
2447 as synonyms for .size and .type.
2448
b2d7b325
ILT
2449Wed Oct 5 00:08:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2450
2451 * config/obj-coff.c (coff_frob_section): Remove assert about
2452 section alignment.
2453 * config/tc-sparc.c (md_section_align): Use section alignment, not
2454 xvec align_power_min field.
2455
dc87e0ce
KR
2456Fri Sep 30 19:05:20 1994 Pat Rankin (rankin@eql.caltech.edu)
2457
2458 * vmsconf.sh (make-gas.com): handle DCL verification to enable
2459 sensible feedback to the user while gas is being built.
2460
76a390e2
KR
2461Fri Sep 30 16:23:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2462
13a336c4
KR
2463 * Makefile.in (DISTSTUFF): New variable, listing only make-gas.com
2464 for now.
2465 (diststuff): New target; builds DISTSTUFF.
2466 (realclean): Separate target, depend on clean and distclean, then
2467 delete DISTSTUFF.
dc87e0ce
KR
2468 * make-gas.com: Deleted.
2469
76a390e2
KR
2470 * config/tc-i386.c (i386_validate_fix) [BFD_ASSEMBLER]: New
2471 function. Converts reloc for "foo-GOT" to BFD_RELOC_386_GOTOFF
2472 reloc for "foo".
2473 (i386_operand): Don't look up section symbol for
2474 undefined_section.
2475 (reloc): Always permit return of 8- and 16-bit relocation types.
2476 Add a space after "pc-relative" in the error message.
2477 (tc_i386_fix_adjustable) [BFD_ASSEMBLER]: Reject
2478 BFD_RELOC_386_GOTOFF relocs.
2479 (i386_operand): For any GOTOFF reloc, convert it to a BFD_RELOC_32
2480 with a "foo-GOT" value.
2481 * config/tc-i386.h (i386_validate_fix): Declare it.
2482 (TC_VALIDATE_FIX): New macro -- call it.
2483 (NOP_OPCODE): Cast to `char' to avoid compiler warnings.
2484
2485 * as.h: If __STDC__ is not defined and varargs.h is available, use
2486 it rather than stdarg.h.
2487
2488 * write.h (struct fix): Added new bitfield fx_plt, for fixups
2489 referring to PLT entries.
2490 * write.c (fix_new_internal): Initialize fx_plt to zero.
2491 (adjust_reloc_syms): Re-fetch `sym' after top of reduction loop.
2492 Don't adjust fx_offset by frag address, since S_GET_VALUE now
2493 includes the frag address.
2494 (fixup_segment): Changed local var PCREL to type int, added PLT.
2495 If PC-relative fixup refers to a PLT entry for a symbol in the
2496 current section, don't reduce it.
2497
2498 * write.c (adjust_reloc_syms): Exit loop through a label. If
2499 DEBUG5 is defined, print out each fixup before and after
2500 processing.
2501 (fixup_segment): If DEBUG5 is defined, print out each fixup before
2502 and after processing.
2503 (print_fixup): Added prototype. Show address on first line. Show
2504 fx_offset and fx_subsy. [!BFD_ASSEMBLER]: Only show fx_r_type if
2505 NEED_FX_R_TYPE is defined.
2506
2507 * symbols.c (print_symbol_value_1): Check S_IS_LOCAL, S_IS_EXTERN,
2508 S_IS_DEBUG, S_IS_DEFINED also.
2509
9dc6c00f
KR
2510Thu Sep 29 18:57:06 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2511
10ff87e9
KR
2512 * Makefile.in (all): Depend on .gdbinit.
2513 (.gdbinit): Rebuild from gdbinit.in by running config.status.
2514
2515 * gdbinit.in: Define new function "pf". Fix doc on "pe" and "ps".
2516
9dc6c00f
KR
2517 * write.c (print_fixup): Print source location on first line.
2518 Show fx_r_type and fx_addsy fields.
2519
648acaa0
KR
2520Wed Sep 28 14:56:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2521
b8480abc
KR
2522 * configure.in: Set bfd_gas for all sparc targets in one place,
2523 instead of separately for each. Correctly handle user-supplied
2524 "--enable-bfd-gas" option.
2525
2526 * gdbinit.in: Move "break abort" to end, in case gdb complains.
2527
2528 * as.h (PRINTF_WHERE_LIKE, PRINT_LIKE) [USE_STDARG, !__GNUC__]:
2529 Use PARAMS macro.
2530
2531 * symbols.c (resolve_symbol_value, case O_symbol): Don't do any
2532 processing if add_symbol is undefined or in expr_section.
2533 (resolve_symbol_value, case O_add): For symbol plus
2534 constant-valued symbol, convert to O_symbol and re-reduce.
2535 (S_GET_VALUE): If symbol needs resolving, resolve it.
2536 (indent_level): No longer static.
2537 (print_symbol_value_1): Don't print frag address if it matches
2538 zero_address_frag. Don't print "resolving" if already resolved.
2539 Print segment name. Don't call print_expr_1 on an undefined
2540 symbol.
2541 (print_expr_1): Fix whitespace before printing X_add_number.
2542
648acaa0
KR
2543 * expr.c (make_expr_symbol): No longer static. Use symbol_create,
2544 not symbol_new, for symbols holding expression values.
2545 * expr.h (make_expr_symbol): Move declaration here.
9ff0f5ef
KR
2546 * write.c (fix_new_exp): Handle O_add by creating an
2547 expression-valued symbol, and calling fix_new_exp recursively.
2548 (adjust_reloc_syms): If a fixup's symbol value is a sum of an
2549 undefined symbol and a constant, fold the constant into the fixup,
2550 and refer to the undefined symbol directly. Then process the
2551 fixup again from scratch.
2552 (write_object_file): Before calling adjust_reloc_syms, make a pass
2553 through the symbol list trying to resolve values.
2554
2555 * write.c (print_fixup): New routine, for debugging.
2556 (write_relocs): Call bfd_install_relocation. Deleted various
2557 hacks for working around problems with bfd_perform_relocation.
2558
2559 * Makefile.in (VERSION): Update to 2.4.90.
648acaa0 2560
7b777690
ILT
2561Wed Sep 28 11:50:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2562
620a590e
ILT
2563 * Makefile.in (gasp.o): Depends upon config.h.
2564
3f42c69e
ILT
2565 * config/tc-mips.c: Include subsegs.h.
2566 (md_apply_fix): If an unconditional b or bal overflows, and we are
2567 not assembling PIC code, replace it with a j or jal.
2568
7b777690
ILT
2569 * config/tc-mips.c (md_apply_fix): Correct branch overflow test.
2570 Use as_bad_where and as_warn_where rather than as_bad and as_warn.
2571
2572Mon Sep 26 17:15:59 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2573
2574 * write.c (write_relocs): Add file name and line number to
2575 as_fatal calls. Handle bfd_reloc_overflow case specifically when
2576 RELOC_EXPANSION_POSSIBLE.
2577
2578Fri Sep 23 16:11:28 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2579
2580 * as.h (USE_STDARG, USE_VARARGS): Define one or neither of these
2581 here. Use them for deciding which PRINTF*LIKE macro definitions
2582 to use.
2583 * messages.c: Use them, instead of NO_STDARG, NO_VARARGS.
2584 [!USE_STDARG && !USE_VARARGS] (va_alist, va_dcl, ...): Provide
2585 default definitions matching what we were doing before.
2586 (as_tsktsk): Remove the non-stdarg, non-varargs version, and
2587 always use the varargs form if not using stdarg. It's safe to
2588 always use vfprintf, because libiberty will provide it if the
2589 native system doesn't. Also, always make format be const.
2590 (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
2591
144659ab
ILT
2592Fri Sep 23 14:42:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2593
2594 * config/tc-mips.c (load_register): Always use addiu when adding a
2595 constant to $zero--no need to use daddiu.
2596 (macro): Hack the -mips3 overflow tests to not fail when offsetT
2597 is only 32 bits.
2598
2599 * symbols.h (copy_symbol_attributes): Declare.
2600
2601Thu Sep 22 21:58:24 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2602
2603 * listing.c: Bugfixes based in part on patches from Paul
2604 Kranenburg.
2605 (listing_newline): Check filename as well as line number when
2606 deciding whether to record it.
2607 (list_symbol_table) [S_IS_REGISTER]: Check that S_IS_REGISTER is
2608 false (if defined) as well as checking for reg_section.
2609 (listing_listing): Iterate fetching lines while line number is too
2610 low, and we haven't run off the end of the input file.
2611
2612 * config/vms-conf.h: Changed HAVE_DELETE to HAVE_REMOVE.
2613
bdaa198a
KH
2614Thu Sep 22 13:39:10 1994 Kung Hsu (kung@x1.cygnus.com)
2615
2616 * ecoff.c (ecoff_generate_asm_lineno): check if
2617 current_stabs_filename is NULL before strcmp.
cacd15c4 2618 * read.c (read_a_source_file): fix a bug in generate_asm_lineno
bdaa198a
KH
2619 checking.
2620
8068b96a
KR
2621Wed Sep 21 18:17:35 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2622
2623 * config/ho-*.h: Now-unused files deleted.
2624
2625 * symbols.c (copy_symbol_attributes): New function. Copies BFD
2626 symbol flags and calls OBJ_COPY_SYMBOL_ATTRIBUTES.
2627 (resolve_symbol_value, case O_symbol): Call it, if X_add_number is
2628 zero. Don't call obj_frob_forward_symbol.
2629 * read.c (pseudo_set): Call copy_symbol_attributes, but only if
2630 X_add_number is zero.
2631 * config/obj-elf.h (obj_frob_forward_symbol): Deleted.
2632
144659ab
ILT
2633 * config/tc-i960.c: Lots of whitespace, comment reformatting,
2634 using GNU indent.
2635 (strchr): Don't declare.
2636 [BFD_ASSEMBLER]: Don't compile md_convert_frag,
2637 md_estimate_size_before_relax, md_ri_to_chars,
2638 md_create_short_jump, md_create_long_jump.
2639 (brtab_emit): Use data_section, not SEG_DATA.
2640
cacd15c4 2641 Mon Sep 19 17:14:44 1994 Pat Rankin (rankin@eql.caltech.edu)
8068b96a
KR
2642
2643 * config/vms-conf.h: new file, manually derived from conf.in.
2644 * config-gas.com: use it, and eliminate obsolete "host.h".
2645
3af9783a
ILT
2646Wed Sep 21 11:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2647
87bbf920
ILT
2648 * config/tc-ppc.c (ppc_current_block): New static variable.
2649 (ppc_stabx): Set sy_tc.within of a C_STSYM symbol to
2650 ppc_current_block. Don't move around any stab symbol, just those
2651 for common symbols.
2652 (ppc_bs): Set ppc_current_block.
2653 (ppc_es): Clear ppc_current_block.
2654 (ppc_frob_symbol): Set the value of a C_STSYM symbol to the offset
2655 from the csect of the enclosing block.
2656
3af9783a
ILT
2657 * config/tc-mips.c (insns_since_cache_access): Remove.
2658 (append_insn): Remove setting of insns_since_cache_access, and
2659 special 4600 handling; it turns out not to be required.
2660
e8d4d475
ILT
2661Tue Sep 20 16:13:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2662
2663 * config/tc-mips.c (md_shortopts): Remove E.
2664 (md_longopts): Add EB and EL.
2665 (md_parse_option): Handle -EB and -EL as separate options, rather
2666 than as a single -E option with an argument.
2667
8268e3ec
JL
2668Mon Sep 19 12:42:05 1994 Jeff Law (law@snake.cs.utah.edu)
2669
2670 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
2671 involving global symbols too.
2672
eb3028aa
KR
2673Mon Sep 19 12:12:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2674
2675 * as.h: Test NEED_DECLARATION_*, not NEED_*_DECLARATION.
2676
2677 * configure.in: Test for remove, not delete. Fix cross-assembler
2678 test.
2679 * as.h: Test HAVE_REMOVE, not HAVE_DELETE; define unlink to
2680 remove, not delete.
2681
35e70f58
KR
2682 * read.c (pseudo_set, case O_symbol): If
2683 OBJ_COPY_SYMBOL_ATTRIBUTES is defined, invoke it.
2684 [BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too.
2685 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define.
2686
2687 Wed Aug 10 19:15:30 1994 Pat Rankin (rankin@eql.caltech.edu)
2688
2689 * config/obj-vms.h (DSG_S_C_UBITU, DST_K_VFLAGS_DSC, DST_K_TS_ATOM,
2690 many others): new macros; values obtained from "DSTRECRDS.SDL".
2691 * config/obj-vms.h (various): use them.
2692 (USE_BITSTRING_DESCRIPTOR): new macro, for selecting bitfield
2693 representation (only enum bitfields can avoid being bitstrings).
2694 (bitfield_suffix, setup_basic_type): new routines.
2695 (VMS_typedef_parse): use them. Now recognize bitfields of all
2696 integral types, not just type `int'. Caveat: the representation
2697 used for bitfields still does not work for objects placed in
2698 registers, and gcc's optimizer sometimes puts small structs there.
2699
2700 Tue Jun 14 17:31:44 1994 Pat Rankin (rankin@eql.caltech.edu)
2701
2702 * read.c (s_text) [#if OBJ_VMS]: clear the IN_DEFAULT_SECTION
2703 bit from const_flag.
2704 * config/obj-vms.h (IN_DEFAULT_SECTION): define this macro.
2705 (tc_frob_label): define this to call vms_check_for_special_label,
2706 and declare the latter.
2707 * config/obj-vms.c (vax_g_doubles): declare this file-scope
2708 variable.
2709 (const_flag): initialize to IN_DEFAULT_SECTION instead of 0.
2710 (vms_check_for_special_label): new routine (tc_frob_label).
2711 (VMS_TBT_Routine_End): don't bother checking for `gcc_compiled.'
2712 and `gcc2_compiled.' labels; they won't reach here any more.
2713 (VMS_typedef_parse) [case 'r']: for types `double' and `complex
2714 double', use `vax_g_doubles' flag to select type of double.
2715 (VMS_write_object_file) [traceback setup]: don't pass symbols
2716 with the IN_DEFAULT_SECTION attribute to the TBT_Routine_Begin
2717 and TBT_Routine_End functions.
2718
2719 Mon Jun 6 20:52:20 1994 Pat Rankin (rankin@eql.caltech.edu)
2720
2721 * config/obj-vms.c (VMS_TBT_Routine_End): cache the result of
2722 S_GET_VALUE() to avoid many repeated function calls.
2723 (VMS_Check_For_Main) [#if HACK_DEC_C_STARTUP]: capitalize
2724 _C$MAIN_ARGS in advance, in case -h3 (leave symbol name as-is)
2725 gets requested. [All the HACK_DEC_C_STARTUP code appears to
2726 be obsolete; gcc does it automatically for vms target. It's
2727 also misnamed, because it is for the "VAX C" run-time library,
2728 not the newer "DEC C" one which has much different startup code.]
2729 {various}: use `S_SET_xxx(symbol,new_value)' rather than
2730 `S_GET_xxx(symbol) = new_value'.
2731
d1578de3
ILT
2732Mon Sep 19 12:05:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2733
2734 * config/obj-coff.c (c_dot_file_symbol): Use bfd_abs_section_ptr,
2735 not &bfd_abs_section.
2736
e3683042
ILT
2737Thu Sep 15 18:36:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2738
2739 * expr.c (clean_up_expression): Use addressT, not bfd_vma.
2740
75c28b49
JL
2741Tue Sep 13 20:05:47 1994 Jeff Law (law@snake.cs.utah.edu)
2742
fcacfef6
JL
2743 * expr.c (expr): Don't reduce the difference of two symbols in the
2744 same frag if the symbols are not in normal sections.
2745
75c28b49
JL
2746 * config/obj-som.h (S_SET_OTHER, S_SET_TYPE): Delete a.out crud.
2747 (S_SET_DESC, S_GET_OTHER, S_GET_TYPE, S_GET_DESC): Likewise.
2748 (obj_attach_unwind_info): Do not define. Not needed anymore.
2749 * config/tc-hppa.c: Delete whitespace at EOL.
2750 (struct hppa_fix_struct): Delete fx_unwind field and all references.
2751 (fix_new_hppa): Last arg is now a pointer to an int. Do not
2752 call obj_attach_unwind_info anymore. For SOM R_ENTRY and R_EXIT
2753 fixups, store 32bits of unwind information in the fx_addnumber
2754 field of the fixup.
2755 (md_assemble, pa_entry, process_exit, pa_procend): For SOM R_ENTRY
2756 and R_EXIT fixups, pass a NULL pointer to fix_new_hppa, and a
69cb5925 2757 pointer to 32 bits of unwind info.
75c28b49
JL
2758 (tc_gen_reloc): For SOM R_ENTRY and R_EXIT fixups, set the symbol
2759 pointer to the dummy symbol; set the addend field to fx_addnumber.
2760 (pa_comm, pa_equ, pa_type_args, pa_import): Use bfd_XXX_section_ptr
2761 rather than &bfd_XXX_section.
2762
26f4447a
KR
2763Tue Sep 13 21:15:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2764
d7152d07
KR
2765 * config/tc-i386.c (md_apply_fix_1): For GOTPC relocs, decrement
2766 value by one; discard adjustments previously being made. From
2767 Eric Youngdale.
2768
26f4447a
KR
2769 VMS- and Vax-related changes from Pat Rankin:
2770 * Makefile.in (VMS_OTHER_OBJS): add concat, getopt, and getopt1.
2771 * vmsconf.sh: no longer have make-gas.com echo text about needing
2772 to modify the gcc-vms driver when intending to use with gcc 1.x.
2773 * as.c (parse_options): suppress 'v' from std_short_options and
2774 eliminate VMS-specific conditional initialization;
2775 [default case]: check for '-v' if md_parse_options doesn't recognize
2776 an option;
2777 [default case, #if VMS]: check for filename argument when '-v' seen;
2778 [case 'v']: delete.
2779 * config/tc-vax.c (md_assemble): don't rely on `this_add_number'
2780 for O_big literal operands (double floats and long long ints);
2781 [VMS, md_shortopts]: add second colon after 'v';
2782 (md_parse_options) [VMS, case 'v']: check for argument, so
2783 caller can handle `-v' w/o arg.
2784
a9898563
SC
2785Tue Sep 13 16:45:08 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2786
2787 * config/obj-coff.c (do_relocs_for): If TC_KEEP_FX_OFFSET
2788 is defined, put the tx_offset into the r_offset.
2789 * config/tc-sh.c (line_comment_chars): Add #
2790 (tc_reloc_mangle): Deleted.
2791 * config/tc-sh.h (TC_KEEP_FX_OFFSET): Define.
2792 (TC_RELOC_MANGLE): Delete.
2793
28d3e4a3
KR
2794Tue Sep 13 16:20:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2795
b9419dd2
KR
2796 * flonum-konst.c: Change preprocessor tests of HO_VMS to just VMS.
2797 * hex-value.c: Ditto.
2798 * config/obj-vms.c: Ditto.
2799
460531da
KR
2800 * config/tc-sparc.c (sparc_ip): Replace as_bad/exit sequence with
2801 a call to as_fatal.
2802 * config/tc-i860.c (i860_ip): Ditto.
2803 * config/tc-hppa.c (pa_ip): Ditto.
2804 * config/tc-alpha.c (alpha_ip): Ditto.
2805 * as.c (parse_args): Ditto.
2806
2807 * config/tc-mips.c (mips_ip): Replace as_warn/exit sequence with a
2808 call to as_fatal.
2809
2810 * write.c (write_contents): Use EXIT_FAILURE.
2811 * output-file.c (output_file_create, output_file_close,
2812 output_file_create, output_file_close): Ditto.
2813 * messages.c (as_fatal): Ditto.
2814 * config/obj-som.c (obj_som_version, obj_som_copyright): Ditto.
2815 * config/obj-ieee.c (write_object_file): Ditto.
2816 * config/obj-coff.c (write_object_file): Ditto.
2817 * config/tc-vax.c (main): Use EXIT_SUCCESS.
2818 * config/tc-m68k.c (main): Ditto.
2819
2820 * hash.c (main): Pass a value to exit().
2821
2822 * as.h (EXIT_SUCCESS, EXIT_FAILURE): Moved here.
2823 * as.c: ...from here.
2824 (parse_args): Use them always.
2825 (main): Use exit rather than return.
2826
28d3e4a3
KR
2827 * Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall):
2828 Rewrite handling of program_transform_name.
2829
b9419dd2
KR
2830 * configure.in: Test for functions unlink and delete.
2831 * as.h: If unlink isn't available but delete is, define unlink to
2832 be delete.
28d3e4a3
KR
2833
2834 Update for autoconf 1.118:
2835 * gdbinit.in: New file, created from old .gdbinit.
2836 * .gdbinit: Deleted.
2837 * aclocal.m4 (GAS_GDBINIT): Deleted.
2838 * configure.in: Don't use it. Instead, generate .gdbinit from
2839 gdbinit.in. Don't substitute cpu_type, obj_format, emulation,
2840 atof. Switched order of AC_LINK_FILES arguments. Use AC_PREREQ
2841 to ensure that older versions of autoconf aren't used.
2842 * Makefile.in: Added @configure_input@ line.
2843 (configure): Deleted rule.
2844
430a3997
ILT
2845Tue Sep 13 12:08:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2846
2847 * config/obj-coff.c (fixup_segment): After handling the difference
2848 of two symbols from the same segment, set fx_subsy to NULL, to
2849 satisfy existing TC_COUNT_RELOC macros.
2850
e23b25ec
KR
2851Tue Sep 13 01:47:08 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2852
2853 * aclocal.m4 (GAS_GDBINIT): New macro.
2854 * configure.in: Use it.
2855 * configure: Regenerated.
2856
c570d361
KR
2857Mon Sep 12 20:56:38 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
2858
2859 * .gdbinit (pe, ps): Define new commands.
2860 * symbols.c (indent_level): New static variable.
2861 (indent, print_expr_1, print_symbol_value_1, print_symbol_value,
2862 print_expr): New functions.
2863
2864 * Makefile.in (config-stamp): Add a "this file generated by make"
2865 message to config.h.
2866
2867 PIC implementation for i386-linux, based on code from Eric
2868 Youngdale and Paul Kranenburg, with some work of my own:
2869
2870 * write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup
2871 before processing same-section pcrel relocations.
2872 (TC_RELOC_RTSYM_LOC_FIXUP): Default to 1.
2873
2874 * expr.c (make_expr_symbol): If operator is O_symbol and
2875 X_add_number is zero, just return the symbol. If operator is
2876 O_constant, resolve the symbol's value before returning.
2877 (operand): Permit use of "[]" for grouping.
2878 (clean_up_expression): For difference of two symbols in the same
2879 frag, add the difference of their offsets into X_add_number.
2880 (expr): Reduce difference of two symbols in same frag to their
2881 difference.
2882
2883 * config/tc-i386.c (TC_RELOC): New macro.
2884 (struct _i386_insn): New field disp_reloc.
2885 (GOT_symbol): New variable.
2886 (operand_special_chars): Added square-brackets and at-sign.
2887 (reloc) [BFD_ASSEMBLER]: Added new argument OTHER; if it is not
2888 NO_RELOC, just return it.
2889 (reloc) [! BFD_ASSEMBLER]: Add third argument to dummy macro.
2890 (BFD_RELOC_386_PLT32, _GOT32, _GOTOFF) [! BFD_ASSEMBLER]: More
2891 dummy macros.
2892 (tc_i386_fix_adjustable): New function. Returns zero if symbol in
2893 fixup is not local, to prevent relocations against externals from
2894 being dropped.
2895 (md_assemble): Initialize disp_reloc field to NO_RELOC. Pass
2896 disp_reloc field to reloc() function, and use TC_RELOC to generate
2897 value to pass to fix_new_exp.
2898 (md_assemble): Change 32-bit reloc against GOT_symbol into a GOTPC
2899 reloc.
2900 (i386_operand): Initialize disp_reloc field to NO_RELOC. Handle
2901 @GOTOFF, @PLT, @GOT operands. For GOTOFF relocations with local
2902 symbols, force generation of the section symbol.
2903 (md_estimate_size_before_relax): If GOT_symbol exists, decide
2904 we're generating PIC code, and convert relocations against
2905 undefined symbols from PCREL to PLT32.
2906 (md_apply_fix_1) [OBJ_ELF]: Fix up values for dynamic-linking
2907 relocs.
2908 (md_undefined_symbol): Notice GLOBAL_OFFSET_TABLE_NAME and set
2909 and return GOT_symbol if it matches.
2910 (F, MAP): Move macro definitions outside function.
2911 (tc_gen_reloc): Only switch on size and pcrel if code wasn't
2912 already supplied as PLT32. GOT32, GOTOFF, or GOTPC. Convert
2913 BFD_RELOC_32 using GOT_symbol into GOTPC.
2914 * config/tc-i386.h (TC_RELOC, tc_fix_adjustable,
2915 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): New
2916 macros.
2917 (NEED_FX_R_TYPE): Define.
2918 (LOCAL_LABEL): Accept ".X" prefix too.
2919 (GLOBAL_OFFSET_TABLE_NAME): Default to "_GLOBAL_OFFSET_TABLE_".
2920
1b434ced
ILT
2921Mon Sep 12 17:51:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2922
1779d515
ILT
2923 * config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
2924 reportedly to be used on Irix 6.
2925
c1444ec4
ILT
2926 * config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
2927 (s_mips_globl): New static function; needed for Irix 5 support.
2928 * ecoff.c (ecoff_build_symbols): If BSF_FUNCTION is set for an
2929 external symbol with no type, set the type to st_Proc rather than
2930 st_Global. Don't set the index of an external st_Proc or
2931 st_StaticProc symbol unless it is also a local symbol.
2932
1b434ced
ILT
2933 * read.c (read_a_source_file): The second argument to as_where is
2934 unsigned int *, not int *.
2935
326d16ca
KH
2936Thu Sep 8 17:18:24 1994 Kung Hsu (kung@mexican.cygnus.com)
2937
2938 * config/obj-ecoff.h : Change names to OBJ_GENERATE_ASM_LINENO,
2939 and generate_asm_lineno.
2940 * config/obj-elf.h : ditto.
2941 * read.h : ditto.
2942 * read.c (read_a_source_file): if no file when inst is read, set
2943 generate_asm_lineno to true.
2944 * ecoff.h : change name to generate_asm_lineno and add function
2945 ecoff_no_current_file.
2946 * ecoff.c : change name to generate_asm_lineno.
69cb5925 2947 * ecoff.c (ecoff_generate_asm_lineno) : new function, to generate
326d16ca
KH
2948 ecoff style line for asm file.
2949
eb4fd16f
ILT
2950Thu Sep 8 19:43:49 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2951
2952 * config/obj-coff.c (size_section): Do an fprintf to stderr rather
2953 than a printf.
2954 (fixup_segment): Use as_bad_where rather than as_bad.
2955
20c9d49a
SC
2956Wed Sep 7 17:21:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2957
eb4fd16f
ILT
2958 * config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing
2959 nothing becomes macro doing nothing.
20c9d49a 2960
bf111c9f
KR
2961Wed Sep 7 19:10:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2962
353acf31
KR
2963 * Makefile.in (Makefile): Depend on config.status.
2964 (config.status): Run config.status from . instead of srcdir.
2965
72373532
KR
2966 * config/tc-i386.c (tc_gen_reloc): Use bfd_get_reloc_code_name to
2967 display the name of the relocation type that couldn't be handled.
2968 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2969 * config/tc-alpha.c (tc_gen_reloc): Likewise. Deleted abort call
2970 after call to as_fatal.
2971
2972 * configure.in (i386-*-linux*): Don't set bfd_gas.
2973
2974 * Makefile.in (CC_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET,
2975 install, uninstall): Don't use "brokensed" hack any more, the new
2976 autoconf code should never let program_transform_name be empty.
2977
bf111c9f
KR
2978 Update for autoconf beta 1.112:
2979 * aclocal.m4 (GAS_CHECK_DECL_NEEDED, GAS_WORKING_ASSERT): New
2980 macros.
2981 * configure.in: Use them. Use AC_ARG_PROGRAM (now provided by
2982 autoconf) instead of my hacked-up AC_PROGRAM_TRANSFORM_NAME. Move
2983 test for CROSS_COMPILE just before AC_FUNC_ALLOCA, and emit a
2984 message to try to ease confusion about autoconf's
2985 "cross-compiling" message.
2986 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_FREE,
2987 NEED_DECLARATION_ERRNO): Renamed from NEED_*_DECLARATION.
2988 * configure, conf.in: Regenerated.
2989
c8570de8
ILT
2990Wed Sep 7 12:49:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2991
2992 * configure.in: Check ${host} and ${target} rather than
2993 ${host_canon} and ${target_canon}.
2994 * configure: Likewise.
2995
8c63448a
ILT
2996Tue Sep 6 11:42:38 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2997
2998 * config/tc-mips.c (mips_cpu): New static variable.
2999 (insns_since_cache_access): New static variable.
3000 (md_begin): Set mips_cpu as well as mips_isa.
3001 (append_insn): If mips_cpu is 4600, require four nop instructions
3002 between an instruction which accesses the cache and certain CACHE
3003 instructions. Keep track of the number of instructions seen since
3004 an instruction which accesses the cache.
3005 (md_parse_option): Set mips_cpu as well as mips_isa.
3006
a5a2f156
KR
3007Mon Sep 5 07:09:00 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3008
3009 * doc/Makefile.in (VPATH): Define using @srcdir@.
3010 (prefix, program_transform_name, exec_prefix): Use autoconf style
3011 @-substitutions.
3012
8c63448a 3013Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
318b02b6
KR
3014
3015 * config/ho-riscix.h, config/tc-arm.c, config/tc-arm.h: New files
3016 * configure.in: Recognize the arm.
3017
3ffbc907
ILT
3018Fri Sep 2 16:05:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3019
3020 * ecoff.c (add_file): Don't try to generate line numbers if the
3021 symbol table has been frozen.
3022
3023Thu Sep 1 19:48:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3024
3025 * aclocal.m4 (AC_PROG_CC): Use AC_DEFUN, and omit AC_PROVIDE.
3026
3027 * configure.in: Handle user-specified bfd-assembler option with
3028 separate variable from preferred configuration, until the two are
3029 resolved. Indicate bfd_gas=preferred for linux a.out. Use
3030 AC_PROGRAM_TRANSFORM_NAME, for which a patch has been sent to djm.
3031 * Makefile.in (target_alias, program_transform_name): Define,
3032 using autoconf @-substitutions.
3033
fb589130
KR
3034Wed Aug 31 17:43:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3035
7f64fd4e
KR
3036 * atof-generic.c: Deleted alloca handling here.
3037
fb589130
KR
3038 * Makefile.in (prefix, exec_prefix): Use @-subtitutions.
3039
3040 * aclocal.m4 (AC_OUTPUT_LINKS): Deleted redefinition, since
3041 autoconf 1.109 has this fixed.
3042 * configure.in: Don't change quote characters around AC_MSG_ERROR
3043 invocation. Don't use AC_HEADER_STDC, since it requires running a
3044 program. Cache NEED_*_DECLARATION values.
3045 * configure, conf.in: Regenerated with a modified autoconf 1.109.
3046
c7072f56
KR
3047 * as.h (volatile): Don't test or define here; not needed.
3048 (alloca): Replace alloca-conf.h inclusion with code recommended in
3049 autoconf documentation. Include config.h first.
3050
bdee23af
ILT
3051Wed Aug 31 11:20:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3052
3053 * config/obj-coff.h (S_IS_DEFINED): Absolute symbols are defined
3054 also.
3055
3056 * configure.in, configure: Initialize bfd_gas to no.
3057
a48f997a
KR
3058Tue Aug 30 19:31:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3059
3060 * as.h: Include alloca-conf.h from "libiberty", not
3061 "../libiberty".
3062
0c49642d
ILT
3063Mon Aug 29 16:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3064
3065 * config/tc-ppc.c (md_apply_fix): Don't generate a reloc when a
3066 symbol is used as an offset into a CSECT that is not a TOC. These
3067 types of loads are generated by gcc -mminimal-toc.
3068
65ad84c1
KR
3069Sun Aug 28 13:22:52 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
3070
e9296bdb
KR
3071 * as.h (flag_*): Added comments describing meanings of some of
3072 these variables.
3073 (struct frag): Add some comments about the ns32k-specific fields
3074 and why they're here.
3075 (SIZEOF_STRUCT_FRAG): Cast addresses to char*, not int.
3076 (flag_print_statistics): Declare.
3077
3078 * as.c (parse_args): Set flag_print_statistics instead of
3079 statistics_flag. Options array is now const. Added new option
3080 "dump-config"; if specified, print TARGET_ALIAS, TARGET_CANONICAL,
3081 TARGET_CPU, TARGET_OBJ_FORMAT, and TARGET_FORMAT, if defined.
3082 (main): Change test to check flag_print_statistics.
3083 (statistics_flag): Deleted.
3084
c72aa0e2
KR
3085 * frags.c (frag_variant): Removed PCREL_ADJUST and BSR arguments.
3086 Always initialize them to zero.
3087 * frags.h (frag_variant): Fixed prototype.
3088 * config/tc-i960.c (get_cdisp): Don't pass the extra zero args.
3089 * config/tc-ns32k.c (convert_iif): Don't pass the arguments; cache
3090 the value of frag_now and fill in the fields later.
3091
65ad84c1
KR
3092 * Makefile.in (distclean, realclean): Remove new
3093 configure-generated files.
3094
aaeee550
KR
3095Sat Aug 27 20:26:12 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
3096
b11fb939
KR
3097 Conversion to autoconf:
3098 * acconfig.h, aclocal.m4: New files.
3099 * configure.in: Rewritten (except for some target-specific code)
3100 for autoconf.
3101 * conf.in, configure: New files, generated from the above.
3102 * Makefile.in: Changed magic sequence indicating insertion of
3103 makefile fragments.
3104 (VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions
3105 from configure.
3106 (LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
3107 (config.status, configure): Rewrite rules.
3108 (config-stamp): Depend on conf. Skip variables that configure is
3109 now substituting itself.
3110 (*.o dependencies): Deleted host.h.
3111 (distclean, realclean): Don't delete host.h.
3112 * as.c: Don't include stdio.h, string.h, sys/types.h. Include
3113 signal.h after as.h.
3114 * as.h: Include alloca-conf.h first. Include ctype.h, string.h,
3115 strings.h, stdlib.h, unistd.h, sys/types.h, fopen-bin.h,
3116 fopen-same.h, as suggested by autoconf test results.
3117 [BROKEN_ASSERT]: Don't include assert.h.
3118 (strdup): Declare.
3119 (volatile, const): Define if not __STDC__ and not already defined.
3120 (malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
3121 (free) [NEED_FREE_DECLARATION]: Declare.
3122 * gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't
3123 include host.h.
3124 (malloc) [NEED_MALLOC_DECLARATION]: Declare.
3125 * messages.c: Include as.h first. Include errno.h only if
3126 HAVE_ERRNO_H. If HAVE_VARARGS_H and not __STDC__, undefine
3127 HAVE_STDARG_H. Set NO_STDARG and NO_VARARGS as appropriate.
3128 * doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM,
3129 INSTALL_DATA): Use autoconf @-substitutions.
3130
27bf48ec
KR
3131 * input-file.c: Don't include assert.h here, 'cause as.h already
3132 includes it.
3133
aaeee550
KR
3134 * config/tc-alpha.c: Added various prototypes for static
3135 functions.
3136 (in_range): New function, tests whether a value can fit in an
3137 N-bit field.
3138 (build_mem, build_operate_n): New functions for constructing
3139 opcode values.
3140 (emit_sll_n, emit_ldah_num, emit_addq_r, emit_lda_n): New
3141 functions for emitting single instructions, no longer requiring a
3142 recursive call to md_assemble.
3143 (emit_add64): New function for expanding a REG:=REG+CONST
3144 operation into one or more instructions, to handle wide constants.
3145 (clear_insn): New variable.
3146 (md_begin): Fill it in with zeros and BFD_RELOC_NONE values.
3147 (alpha_ip): Use it to initialize local variable insns.
3148 (alpha_ip, label "immediate" and cases 'P', 'G'): Use emit_add64
3149 for calculations.
3150
6668a062
KR
3151Fri Aug 26 14:46:15 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com)
3152
3153 * subsegs.c (section_symbol): Reverse still-wrong test of
3154 EMIT_SECTION_SYMBOLS.
3155
8ef75e2c
KR
3156 * write.c (BFD_FAST_SECTION_FILL): Always define.
3157 (write_contents): If fill_size is 1, use memset instead of looping
3158 calling memcpy.
3159
904b6037
ILT
3160Wed Aug 24 12:46:08 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3161
20ae2fb8
ILT
3162 * config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibility
3163 with native MIPS assembler.
3164 * configure.in (mips-*-irix*): Don't set emulation.
3165 * config/te-irix.h: Remove.
3166
fd4f335c
ILT
3167 * ecoff.c (ecoff_symbol_new_hook): Don't add a new file if we
3168 haven't seen any input files yet.
3169 * config/tc-alpha.c (md_begin): Just call symbol_create, rather
3170 than calling symbol_new and then removing the symbol from the
3171 list.
3172
a2a1a548
ILT
3173 * as.c (main): Move a inside the #if 0 block which uses it.
3174 * ecoff.c (current_stabs_filename): Make const.
3175 * frags.h (frag_align_pattern): Declare.
3176 * gasp.c (new_file): Cast isp to long, and use %ld to print it.
3177 * config/tc-alpha.h (md_operand): Add cast to void.
3178 (alpha_do_align): Declare argument types.
3179 (tc_get_register): Declare.
3180 (alpha_frob_ecoff_data): Declare.
3181 * config/tc-alpha.c: Include <ctype.h>.
3182 (s_mask): Don't declare; does not exist.
3183 (line_comment_chars): Remove /* from descriptive comment.
3184 (tc_get_register): Remove unused local reg.
3185 (tc_gen_reloc): Don't bother to compare unsigned to zero.
3186 (s_base): Correct warning to actually print register number.
3187 (md_begin): Remove unused locals retval, lose, and i.
3188 (alpha_fix_adjustable): Move default case inside switch to avoid
3189 warning.
3190 (load_symbol_address): Remove unused locals reloc_addr, p, sym,
3191 and addend.
3192 (emit_byte_manip_r): Declare types for all arguments.
3193 (emit_extract_r, emit_insert_r, emit_mask_r): Likewise.
3194 (emit_sign_extend, emit_bis_r, s_proc): Likewise.
3195 (alpha_ip): Use sprint_value to print offsetT value. Remove
3196 unused local size. Remove unused label get_macro.
3197 (alpha_do_align): Make fill const.
3198 (md_apply_fix): Remove unused label check_zov.
3199
904b6037
ILT
3200 * configure.in: Recognize i586 as a synonym for i[34]86.
3201
3202Tue Aug 23 12:32:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3203
3204 * config/obj-coff.c (c_line_new): Change line_number argument from
3205 unsigned short to int so that the type in the prototype matches
3206 the promoted type in the definition.
3207 (stack_delete): Comment out; not used.
3208 * config/obj-coff.h (tc_coff_symbol_emit_hook): Declare if not
3209 BFD_ASSEMBLER, not if BFD_ASSEMBLER. Declare argument type.
3210 * config/tc-m68k.h (tc_coff_sizemachdep): Declare.
3211 * config/tc-m68k.c (tc_coff_symbol_emit_hook): Add ignored
3212 argument.
3213
2cffb4f4
JL
3214Tue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu)
3215
05d0c2cc
JL
3216 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
3217 the common symbol to the zero address frag (the correct fix).
3218
3219Tue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu)
3220
3221 * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for
3222 the common symbol to the zero address frag (the correct fix).
3223
3224 * config/tc-hppa.c (pa_comm): Set sy_resolved for the common
69cb5925 3225 symbol.
2cffb4f4 3226
101fbf7e
ILT
3227Fri Aug 12 17:51:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3228
3229 * config/tc-mips.c (md_begin): Drop "el" from the end of
3230 TARGET_CPU. Check for mips64orion.
3231
a1dafd55
SG
3232Tue Aug 9 19:43:45 1994 Stu Grossman (grossman@cygnus.com)
3233
3234 * configure.in: Recognize ppc-*-netware.
3235 * config/te-ppcnw.h: New file to support Power-PC/Netware
3236 configurations. Currently, it just enables the use of backslash
3237 escapes in string directives.
3238
55933a58
ILT
3239Tue Aug 9 11:12:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3240
8e479636
ILT
3241 * config/tc-ppc.c (ppc_stabx): Call expression directly, rather
3242 than via pseudo_set. If expression is a symbol, move stab symbol
3243 to just after symbol from expression.
3244
c9a89891
ILT
3245 * ecoff.c (ecoff_build_procs): Don't force adr of first fdr to be
3246 zero. Undoes change of June 4, 1993.
3247
55933a58
ILT
3248 * config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, and
3249 orion.
3250
3251Mon Aug 8 16:28:08 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3252
3253 * as.h: Remove FOPEN_WB patch of Aug 6.
3254 * configure.in: Configure for ho-go32 correctly.
3255 * config/ho-go32.h: Fix copyright.
3256
1503edcc
JL
3257Mon Aug 8 11:59:51 1994 Jeff Law (law@snake.cs.utah.edu)
3258
3259 * gas/config/tc-hppa.c (md_pseudo_table): Delete redundant
3260 upper-case versions of the pseudo-ops.
3261
2cd14ddc
ILT
3262Mon Aug 8 13:42:16 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3263
3264 * config/tc-sparc.c (md_apply_fix): If we are going to generate a
3265 non PC relative reloc, don't put the addend in the object file.
3266
6670b7f3
SC
3267Sat Aug 6 01:15:02 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3268
3269 * as.h: If FOPEN_WB is not defined, do the right thing in a go32
3270 environment.
3271
3272Mon Jul 11 11:34:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3273
3274 * config/tc-h8300.c (pint): New function for handling varying
3275 size of int pseudo op.
3276 * doc/as.texinfo: Fix typo describing .h8300h pseduop.
3277
363d6150
JL
3278Mon Aug 1 02:40:43 1994 Jeff Law (law@snake.cs.utah.edu)
3279
fbf71886
JL
3280 * config/tc-hppa.c (create_new_space): Initialize sd_subspaces
3281 field in the space chain.
3282
363d6150
JL
3283 * config/tc-hppa.c (tc_gen_reloc): Cast return value from
3284 hppa_gen_reloc_type.
3285
5e0a90a8
KR
3286Thu Jul 28 15:45:37 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3287
3288 * config/tc-sparc.c (sparc_ip): Check more carefully for
3289 conflicting architectures.
3290 (md_parse_option) [NO_V9]: Complain if v9 was selected.
3291 (md_show_usage): Derive architecture list in usage message from
3292 architecture_pname array.
3293 (cypress): Macro deleted.
3294 (op_hash): Don't initialize.
3295 (s_common): Use bfd_und_section_ptr instead of bfd_und_section.
3296
3297 * config/tc-sparc.c (BSR): New function.
3298 (sparc_ip): Use it for right-shift operations of 32 bits or more.
3299
3300 * config/tc-sparc.c (sparc_ip): Implement new operand type 'x'.
3301
39792caf
KR
3302Tue Jul 26 18:21:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3303
3304 * config/obj-coff.h: Moved common includes and TARGET_FORMAT
3305 definitions together.
3306 (WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD,
3307 OBJ_COFF_OMIT_OPTIONAL_HEADER, BFD_HEADERS, BFD) [!BFD_ASSEMBLER]:
3308 Moved these definitions to the start of the file, before the
3309 includes.
3310 (SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always
3311 define these.
3312 (S_GET_ZEROES): Deleted.
3313 (S_SET_ZEROES): Moved to obj-coff.c.
3314
3315 * config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted
3316 forward declarations.
3317 (obj_pseudo_table): Moved to one version end of file,
3318 conditionalized internally.
3319 (stack typedef, stack_init, stack_delete, stack_push, stack_pop,
3320 tag_hash, tag_init, tag_insert, tag_find, tag_find_or_make): Moved
3321 to one combined version at top of file, unconditional. Deleted
3322 forward declarations.
3323 (s_get_name): Moved one copy of declarations to start of file.
3324 (def_symbol_in_progress): Ditto. Don't initialize.
3325 (S_SET_ZEROES): Moved here from obj-coff.h.
3326 (write_object_file): If TC_COFF_SET_MACHINE is defined, call it on
3327 the file headers.
3328
3329 * config/obj-coff.c (seg_info_off_by_4): Now const and static.
3330 (SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted.
3331 (previous_file_symbol, def_symbol_in_progress, symbol_externP,
3332 symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't
3333 bother explicitly initializing to zero value.
3334
3335 * config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME
3336 and SF_GET_CALLNAME instead of the TC_S_IS_ versions.
3337
10db66ec
KR
3338 * config/tc-i960.h (TC_COFF_SET_MACHINE): New macro. Calls
3339 tc_headers_hook.
3340
3341 * config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX
3342 was used previously.
3343 (tc_headers_hook): If I_CX2 is found, set flags to F_I960CA.
3344
3345 * config/tc-i960.c (po_hash): Declaration deleted.
3346 (next_object_file_charP): Ditto.
3347 (regnames, aregs, coj): Now const.
3348 (parse_memop): Static array def_scale now const.
3349 (md_begin): Cast away const when passing hash routines addresses
3350 of values in regnames or aregs.
3351 (md_longopts): Added "link-relax" and "no-relax" hyphenated forms.
3352 Continue to accept one-word forms.
3353 (struct tabentry, arch_tab): Moved to top level from inside
3354 md_parse_option. Now const.
3355 (md_show_usage): Use arch_tab to generate usage message. Print
3356 hyphenated forms of relax options.
3357
3358 * config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC,
3359 TC_S_FORCE_TO_*): Moved from here...
3360 * config/tc-i960.c: ... to here. Changed DEFINE_I960_AOUT stuff
3361 to test OBJ_AOUT and OBJ_BOUT directly.
3362
3363 * config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ,
3364 M1-M3, REG_OPC, R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F,
3365 {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK, FP_OK, REG_ALIGN, MEMOP, I_*):
3366 Macros deleted.
3367
3368 start-sanitize-i960xl
3369 * config/tc-i960.c (ARCH_XL): Define.
3370 (arch_tab): Include XL.
3371 (targ_has_sfr, targ_has_iclass): Handle XL.
3372 (tc_headers_hook): Set flags to F_I960XL for i960XL.
3373 end-sanitize-i960xl
3374
39792caf
KR
3375Fri Jul 15 15:36:51 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3376
3377 * subsegs.c (section_symbol): Had last change backwards.
3378
3b6d6f71
KR
3379Thu Jul 14 13:21:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3380
462ab71d
KR
3381 * config/atof-ns32k.c: Deleted.
3382
3b6d6f71
KR
3383 * config/obj-aout.c (obj_aout_frob_symbol): Use
3384 bfd_ind_section_ptr and bfd_und_section_ptr.
3385
3386 * subsegs.c (subseg_set_rest): Compare segT values directly,
3387 without casting to int first.
3388
259e35d4
KR
3389 * config/tc-ns32k.c (md_begin): Return value from hash_insert
3390 should be pointer to const. Don't call exit explicitly after
3391 calling as_fatal; it won't return.
3392 (convert_iif): Make local variable j be pointer to bit_fixS, since
3393 that's how it's used.
3394 (encode_operand, case 'b'): Ignore sprintf return value. Don't try
3395 converting freeptr to int and back.
3396
3397 Merged in NS32K support update from Ian Dall (dall@hfrd.dsto.gov.au):
3398
3399 * config/te-pc532mach.h: New file. pc532-mach target emulation.
3400
3401 * config/te-netbsd532.h: New file. Netbsd532 target emulation.
3402
3403 * config/tc-ns32k.h: Add definition of NOP_OPCODE.
3404
3405 * config/tc-ns32k.h: Add prototype for fix_new_ns32k_exp.
3406
3407 * config/tc-ns32k.h: Add BFD_ASSEMBLER support.
3408
3409 * config/tc-ns32k.c (tc_gen_reloc): New function for BFD_ASSEMBLER.
3410
3411 * config/tc-ns32k.c (fix_new_ns32k_exp): Get reloc type
3412 differently for BFD_ASSEMBLER.
3413
3414 * config/tc-ns32k.c (md_estimate_size_before_relax): Get reloc
3415 type differently for BFD_ASSEMBLER.
3416
3417 * config/tc-ns32k.c (md_create_long_jump): Size of opcode is one
3418 not 2.
3419
3420 * config/tc-ns32k.c (md_convert_frag): Code for the BFD_ASSEMBLER
3421 case. Also use smart md_pcrel_adjust function.
3422
3423 * config/tc-ns32k.c (md_apply_fix): Code for the BFD_ASSEMBLER
3424 case. Also use smart md_fix_pcrel_adjust function.
3425
3426 * config/tc-ns32k.c (md_fix_pcrel_adjust): New function which can
3427 find offset from opcode to operand even if in another frag
3428 and in the presence of relaxing.
3429
3430 * config/tc-ns32k.c (md_pcrel_adjust): New function which can
3431 find offset from opcode to operand even if in another frag
3432 and in the presence of relaxing.
3433
3434 * config/tc-ns32k.c (md_number_to_disp): Check ranges properly.
3435
3436 * config/tc-ns32k.c (md_atof): use atof_ieee instead of special
3437 atof_ns32k.
3438
3439 * config/tc-ns32k.c (reloc): New (static) function for
3440 BFD_ASSEMBLER.
3441
3442 * config/tc-ns32k.c (convert_iif): More correct pc relative code.
3443 md_relax must be able to find opcode address even if in another frag.
3444
3445 * config/tc-ns32k.c: More extensive comments.
3446
3447 * config/tc-ns32k.c (encode_operand): Support new operand classes I
3448 and Z. Drop Q.
3449
3450 * config/tc-ns32k.c (fix_new_ns32k_exp): new function and
3451 corresponding prototype.
3452
3453 * config/tc-ns32k.c: make 32532 default machine instead of 32032.
3454
3455 * config/tc-ns32k.c: include opcode/ns32k.h after as.h
3456
3457 * aout_gnu.h: r_disp needs to be 2 bits for TC_NS32K
3458
3459 * write.h: fx_im_disp needs to be 2 bits big for TC_NS32K
3460
3461 * write.c (relax_segment): Use TC_PCREL_ADJUST macro (if defined)
3462 instead of adding pcrel_adjust.
3463
3464 * write.c (write_object_file): Adjust to_addr for the
3465 BROKEN_DOT_WORD feature for the BFD_ASSEMBLER case.
3466
3467 * write.c (write_object_file): Use TC_CONS_FIX_NEW if it is defined.
3468
3469 * write.c (write_contents): Add code (currently if
3470 BFD_FAST_SECTION_FILL is defined) to make large fills a lot faster.
3471
3472 * configure.in: Remove ns32k from special FP list. All the ns32k
3473 series use ieee float.
3474
3475 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd targets
3476
3477 * as.h: include expr.h before targ-env.h. Some target dependent file
3478 want to use expr structures.
3479
4ac7a9e4
ILT
3480Wed Jul 13 14:49:05 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3481
3482 * config/tc-m68k.c (m68k_ip): Change rp to be a const pointer.
3483 (md_parse_option): Clear cpu field of current_architecture before
3484 setting a new cpu type. Clear no_68881 for m68881 or m68882.
3485 Clear no_68851 for m68851.
3486
6b510a40
KR
3487Tue Jul 12 21:27:05 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3488
3489 * config/ho-sysv.h (realloc): Declare.
3490
3c498933
KR
3491 * symbols.c (symbol_create): New function, most of the guts of the
3492 old symbol_new function.
3493 (symbol_new): Now just checks symbol_table_frozen, calls
3494 symbol_create, and enters the symbol into the symbol table.
3495 * subsegs.c (section_symbol): If EMIT_SECTION_SYMBOLS is not true,
3496 and the symbol table is frozen, call symbol_create instead of
3497 symbol_new.
3498 * symbols.h (symbol_create, symbol_table_frozen): Declare.
3499
3500 * symbols.c (symbol_clear_list_pointers): Always a function now.
3501 * struc-symbol.h (symbol_clear_list_pointers): Deleted macro
3502 version.
3503
3504 * symbols.c (debug_verify_symchain): New macro, defined to be
3505 verify_symbol_chain or a cast to void, depending on DEBUG_SYMS.
3506 (many functions): Invoke debug_verify_symchain unconditionally.
3507
a85cd289
KH
3508Tue Jul 12 12:06:42 1994 Kung Hsu (kung@x1.cygnus.com)
3509
3510 * config/obj-ecoff.h: change calling interface of
3511 OBJ_GENERATE_ASM_LINE_STAB.
3512 * config/obj-elf.h: ditto.
3513 * read.c (read_a_source_file): ditto.
3514 * ecoff.h: change calling interface of
3515 ecoff_generate_asm_line_stab.
3516 * ecoff.c (add_file): record of filename to handle case of include
3517 files, also change default built-in type from int to void for
3518 asm file.
3519 * ecoff.c (ecoff_generate_asm_line_stab): handle case of include
3520 files.
3521
51d8e5ae
ILT
3522Mon Jul 11 17:20:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3523
3524 * config/tc-mips.c (macro): In case M_LA_AB, SVR4_PIC, large
3525 constant, and case ldd_std, set mips_optimize to 2 temporarily to
3526 avoid inserting an unexpected nop instruction.
3527
64d527f7
ILT
3528Sat Jul 9 00:05:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3529
3530 * ecoff.c (ecoff_build_lineno): Handle count correctly for last
3531 line number.
3532
6f15d409
SC
3533Fri Jul 8 15:22:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3534
6670b7f3 3535 * gasp.c (process_pseudo_op): Pass right args to do do_aif.
6f15d409
SC
3536 (get_any_string): New arg 'pretend_quote'.
3537 (get_and_process, do_formals, macro_expand, do_sdata,
3538 process_pseudo_op): Use new arg.
3539
daad3bbf
KH
3540Fri Jul 8 12:23:44 1994 Kung Hsu (kung@mexican.cygnus.com)
3541
3542 * config/obj-ecoff.h: define macro OBJ_GENERATE_ASM_LINE_STAB.
3543 * config/obj-elf.h: ditto.
3544 * read.c (read_a_source_file): generate line stabs for asm file.
3545 * read.h: add extern generate_asm_line_stab.
3546 * ecoff.h : add prototype for ecoff_generate_asm_line_stab().
3547 * ecoff.c (add_file): if there's no filename provided, set switch
3548 to generate line stabs for .s file.
3549 * ecoff.c (add_procedure): add stabs symbol for .ent directive.
3550 * ecoff.c (generate_ecoff_stab): creates an artificial stabs.
3551 * ecoff.c (generate_asm_line_stab): generate a artifitial label
3552 for each line and generate a stabn for the line.
3553
13d9fd33
SC
3554Thu Jul 7 17:04:03 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3555
3556 * gasp.c (get_any_string): Cope with getting a string with an
3557 alternate base specifier.
3558 (do_aif, do_aelse): Only enable output if expression is true and previous
3559 level was on.
3560 (chartype_init): Add BASEBIT chartype.
3561 (process_pseudo_op): Notice nesteed AIFs.
3562
3563Thu Jul 7 12:30:22 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3564
3565 * h8300.c (do_a_fix_imm): Code for 2 bit reloc type using in trapa
3566 insn. (fix pr 5165, 5174)
3567
8fd04cba
JL
3568Thu Jul 7 11:31:32 1994 Jeff Law (law@snake.cs.utah.edu)
3569
13d9fd33
SC
3570 * config/tc-hppa.c (R_DLT_REL): If it isn't defined, then define
3571 to an appropriate value to avoid losing on old hpux systems.
3572
8fd04cba
JL
3573 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions for
3574 symbols in DLT relative relocs.
3575 (tc_gen_reloc): Zero out the addend field for DLT relative relocs.
3576
8882a587
ILT
3577Wed Jul 6 01:07:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3578
3579 * config/tc-ppc.c (ppc_tc): If not OBJ_COFF, force TOC entry to
3580 align to a four byte boundary.
3581
4174e052
KR
3582Tue Jul 5 15:42:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3583
3584 * config/tc-alpha.c (load_expression): Handle 32-bit addends.
3585 (gpdisp_hi16_howto): Now points to const.
3586 (load_insn_table, alpha_ip): Fix uses of const.
3587
10f67315
KR
3588 * doc/internals.texi: Updates to COFF description. Added "@end
3589 defmac" as needed, and some extra heading and "@bye" so it'll
3590 format as a separate document.
3591
bcb62abf
ILT
3592Tue Jul 5 13:54:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3593
3594 * config/obj-elf.h (S_GET_ALIGN, S_SET_ALIGN): Define.
3595 * config/obj-elf.c (obj_elf_common): Set alignment of common
3596 symbol.
3597 * config/tc-sparc.c (s_common): If OBJ_ELF, set alignment of
3598 common symbol.
3599
655f3ef4
JL
3600Mon Jul 4 18:29:43 1994 Jeff Law (law@snake.cs.utah.edu)
3601
3602 * config/tc-hppa.c (is_complex): New macro.
3603 (cons_fix_new_hppa): "Handle" complex expressions.
3604
3605Fri Jul 1 00:48:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3606
3607 * config/obj-coff.c (write_object_file): Set s_align field from
3608 section_alignment array.
3609
04f0c2e3
KR
3610Thu Jun 30 15:05:28 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3611
3612 * write.c (write_object_file): Use bfd_com_section_ptr.
3613 * as.h (absolute_section, undefined_section): Use new BFD macros
3614 bfd_abs_section_ptr and bfd_und_section_ptr.
3615
f2554579
ILT
3616Thu Jun 30 14:36:37 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3617
3618 * config/tc-mips.c (macro): For M_LI_SS, decide how to handle it
3619 based on contents of imm_expr and offset_expr, rather than
3620 mips_pic. For M_LI_DD, decide how to handle it based on segment
3621 name of offset_expr, rather than mips_pic.
3622 (mips_ip): If g_switch_value < 4, use immediate values for 'l'.
3623 If g_switch_value < 8, use .rdata rather than .lit for 'L'.
3624
6f0b87c3
SS
3625Wed Jun 29 17:30:46 1994 Stan Shebs (shebs@andros.cygnus.com)
3626
3627 * as.c (show_usage): Break long string into shorter ones.
3628 (parse_args): Add -v, prints version id and continues.
3629 * config/tc-mips.c (md_show_usage): Break long string.
3630
3631Mon Jun 27 09:47:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3632
3633 * config/tc-i386.c (md_parse_option): Handle "-V" and "-Q" if
3634 OBJ_ELF is defined.
3635
f488a4d6
SS
3636Sun Jun 26 16:30:48 1994 Stan Shebs (shebs@andros.cygnus.com)
3637
3638 * as.c (main) [HOST_SPECIAL_INIT]: New hook, for host-specific
3639 initialization.
3640
1f12ae43
JL
3641Wed Jun 22 00:24:55 1994 Jeff Law (law@snake.cs.utah.edu)
3642
3643 * config/tc-hppa.h (obj_frob_symbol): Define for OBJ_ELF.
3644 More gas/bfd lossage exposed by the new linker code.
3645
dff770c8
ILT
3646Tue Jun 21 11:32:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3647
1f12ae43
JL
3648 * subsegs.c (subseg_change): Clear seginfo after allocating it.
3649 (subseg_get): Pass actual size of seginfo to memset.
3650
dff770c8
ILT
3651 * subsegs.c (abs_seg_info, und_seg_info): Define if BFD_ASSEMBLER.
3652 (subseg_change): Store seg_info for bfd_abs_section_ptr in
3653 abs_seg_info, and store seg_info for bfd_und_section_ptr in
3654 und_seg_info.
3655 (subseg_get): Likewise. Also, don't set output_section if it is
3656 already set.
3657 (seg_info): Define as function.
3658 * subsegs.h (seg_info): Declare as function rather than defining
3659 as macro.
3660 * write.c (relax_and_size_seg): Call seg_info rather than
3661 bfd_get_section_userdata.
3662
e0b36f18
KR
3663Mon Jun 20 16:30:54 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3664
639c820d
KR
3665 * configure.in (ppc-*-elf*): New target, like -sysv4*.
3666
e0b36f18
KR
3667 * expr.c (operand): If "0f" is followed by '\0', don't do eol
3668 checks.
3669
256816ca
ILT
3670Mon Jun 20 15:17:43 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3671
3672 * ecoff.c (ecoff_build_aux): Call swap_tir_out and swap_rndx_out
3673 via backend pointer, not directly.
3674
de442a3c
ILT
3675Fri Jun 17 18:05:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3676
3677 * Makefile.in (config-stamp): Make sure there is at least one
3678 element in the for loop.
3679
0e68b3bc
JL
3680Fri Jun 17 11:01:04 1994 Jeff Law (law@snake.cs.utah.edu)
3681
239f16dd
JL
3682 * config/tc-hppa.c: Misc trivial changes to make gcc -Wall happy.
3683
0e68b3bc
JL
3684 * config/tc-hppa.h (elf_hppa_final_processing): Declare.
3685
5ee93e0a
KR
3686Wed Jun 15 20:44:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3687
286272fb
KR
3688 * as.c (parse_args): Cast xmalloc return value.
3689
5ee93e0a
KR
3690 * Makefile.in (config-stamp): If $(defs) contains multiple words,
3691 emit a #define line for each.
3692 * configure.in: For sparc64 target, use sparc cpu files and add
3693 sparcv9 to extra_defs. No longer treat sparc64-*-aout* specially.
3694
3695 * config/tc-sparc.c (membar_masks): Now static and const.
3696 (md_show_usage) [!NO_V9]: Add -Av9 to usage message.
3697 (current_architecture) [sparcv9]: Initialize to v9.
3698 (md_begin) [sparcv9]: Don't bother changing it unconditionally
3699 here.
3700 (s_reserve): Don't pass unexpected argument to as_bad with
3701 bad-segment message.
3702
3703 * as.h (bfd_alloc_by_size_t) [BFD_ASSEMBLER]: Declare.
3704
3705 * config/atof-ieee.c (int_to_gen): Commented out unused routine.
3706
3707 * config/tc-vax.c (md_assemble): Removed check of operand section.
3708
3709 Fri Jun 3 17:25:08 1994 Pat Rankin (rankin@eql.caltech.edu)
3710
3711 * config/obj-vms.h (DBG_S_C_COMPLX4, DBG_S_C_COMPLX8): define
3712 these new VMS symbol-type macros for `complex float' and
3713 `complex double' support. Their values come from the existing
3714 DSC$K_DTYPE_FC and DSC$K_DTYPE_DC macros in <descrip.h>.
3715 (DBG_S_C_REAL8_G, DBG_S_C_COMPLX8_G): G_float versions of
3716 REAL8 and COMPLX8; not used yet, because gcc outputs the same
3717 .stabs for `double' regardless of whether `-mg' is used.
4174e052 3718 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
5ee93e0a
KR
3719 for gcc2's predefined types "complex float", "complex double",
3720 and "complex long double" (identical to complex double).
3721
36a87ad7
ILT
3722Wed Jun 15 12:32:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3723
0e35ba9b
ILT
3724 * config/obj-coff.c (coff_frob_symbol): Use C_STAT for the .text
3725 section symbol, not C_LABEL.
3726
adf05987
ILT
3727 * config/tc-mips.c (mips_ip): Permit a modifier in 'o' case, and
3728 permit non constant expressions in 'u' case. Lets ``lui
3729 $8,%hi(foo); lw $8,%lo(foo)($8)'' work correctly.
36a87ad7 3730
a5183648
ILT
3731Mon Jun 13 12:08:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3732
3733 * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
3734 to put a common symbol in a set.
3735
02d4e923
ILT
3736Sat Jun 11 16:41:21 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3737
3738 Add weak symbols as an extension to a.out.
3739 * read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and
3740 OBJ_BOUT if not BFD_ASSEMBLER.
3741 * config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB):
3742 Define as in ../include/aout/aout64.h.
3743 * config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER,
3744 define as char.
3745 (S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER.
3746 * config/obj-aout.c (obj_pseudo_table): Add "weak".
3747 (obj_emit_symbols): Adjust type of weak symbols.
3748 (obj_aout_weak): New static function.
3749
726672c5
ILT
3750Fri Jun 10 13:48:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3751
7b1e07b4
ILT
3752 * config/obj-elf.c (obj_elf_section): Don't set any flags based on
3753 the type of a special section.
3754
726672c5
ILT
3755 * config/ho-sunos.h: Include <stdlib.h>. Don't declare malloc,
3756 realloc, free, or atol.
3757
0b3d0999
BC
3758Wed Jun 8 06:28:37 1994 Bill Cox (bill@cygnus.com)
3759
3760 * Makefile.in (check): Delete as.new dependency, so that
3761 regression test doesn't trigger an assembler build.
3762
daa7e184
ILT
3763Tue Jun 7 13:33:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3764
3765 * Makefile.in (mostlyclean, realclean): New targets.
3766 * doc/Makefile.in, testsuite/Makefile.in: Likewise.
3767
d2c71068
ILT
3768Mon Jun 6 13:10:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3769
3770 * config/tc-mips.c (RDATA_SECTION_NAME): Define.
3771 (macro): Correct M_LI_SS SVR4_PIC/EMBEDDED_PIC case. After M_LI_D
3772 or M_L_DOB or label dob, force a new frag to avoid getting
3773 confused in tc_gen_reloc.
3774 (mips_ip): Use RDATA_SECTION_NAME, not .rdata.
3775 (s_change_sec): Likewise.
3776
1fbfe108
ILT
3777Fri Jun 3 23:35:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3778
3779 * read.c (emit_expr): Use memset to zero out memory, rather than
3780 going through md_number_to_chars. This permits handling symbolic
3781 arguments when the size is larger than sizeof (valueT), if
3782 TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS).
3783
f3d817d8
DM
3784Fri Jun 3 12:50:13 1994 David J. MacKenzie (djm@rtl.cygnus.com)
3785
baed44cd
DM
3786 * as.c (show_usage), config/tc-alpha.c (md_show_usage),
3787 config/tc-mips.c (md_show_usage): Fix up messages.
3788
def66e24
DM
3789 * as.h: Replace flagseen with separate variables.
3790 * as.c (parse_args): Set them. Don't accept -1 option, or -v
3791 explicitly (it's a synonym for --version).
69cb5925 3792 * as.c, input-scrub.c, messages.c, read.c, symbols.c, write.c,
def66e24
DM
3793 config/obj-aout.c, config/obj-aout.h, config/obj-bout.c,
3794 config/obj-bout.h, config/obj-coff.c, config/obj-coff.h,
3795 config/obj-vms.c, config/tc-hppa.c, config/tc-i386.c,
3796 config/tc-i960.c, config/tc-m68k.c, config/tc-mips.c,
3797 config/tc-vax.c: Use the new flag variables instead of flagseen.
3798 * config/tc-vax.c [OBJ_VMS]: Recognize -+, -1, -v, and document in
69cb5925 3799 usage.
def66e24 3800
f3d817d8
DM
3801 * as.c (show_usage): Remove target specific messages;
3802 instead, call md_show_usage.
3803 (parse_args): Use getopt_long_only. Take pointers to argc and
3804 argv.
3805 (main): Pass parse_args pointers.
3806 * as.h: Remove 3 variables that are redundant with flagseen.
3807 * as.c, messages.c: Change their users to use flagseen.
3808 Define getopt stuff.
3809 * tc.h: Update md_parse_option decl. Add md_show_usage decl.
3810 * config/tc-*.c: Add md_shortopts, md_longopts,
3811 md_longopts_size, md_show_usage. Change calling convention for
3812 md_parse_option. Remove md_parse_long_option.
3813 * config/tc-ns32k.c: Rename `struct option' to `struct ns32k_option'.
3814 * config/tc-i386.h: Don't define md_parse_option.
3815
ebd6f117
DM
3816Thu Jun 2 13:54:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3817
3818 * as.c (show_usage): New function.
3819 (parse_args): Code moved from main.
3820 Recognize --help and --version.
3821 * config/tc-ns32k.h: Define TC_NS32K.
3822 * doc/as.texinfo: Document all of the target-independent command
3823 line options.
3824
314628f6
KR
3825Thu Jun 2 12:07:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3826
3827 * gasp.c (hash_new_table): Clear newly allocated table.
3828
3829 * config/tc-m68k.c (enum _register): Add 68060 control registers
3830 BUSCR and PCR.
3831 (last_movec_reg): New macro.
3832 (m68000_control_regs, m68010_control_regs, m68020_control_regs,
3833 m68040_control_regs, m68060_control_regs): New arrays.
3834 (control_regs): New pointer.
3835 (m68k_ip): Use control_regs instead of testing CPU every time.
3836 Use last_movec_reg too. In error messages, handle 68060, and
3837 print 68060 for mfloat, too.
3838 (m68k_init_after_args): Handle "68060". Use m68040up for making
3839 m68851 choice. Set control_regs.
3840 (md_parse_option): Handle "68060".
3841 * configure.in: Setting cpu_type, recognize m68060 too.
3842
3843 * config/obj-coff.c (fixup_segment) [!BFD_ASSEMBLER]
3844 [DIFF_EXPR_OK]: Do conversion to pc-relative for difference, even
3845 if pcrel is already set.
3846
3847 * read.c (potable): Add this_gcc_requires_the_gnu_assembler in all
3848 lower-case, in case we're ignoring case of opcodes in the input
3849 file.
3850
3851 * doc/as.texinfo (.section): Document as unavailable for a.out
3852 type formats.
3853
3854 * config/tc-alpha.c (machine): New variable.
3855 (load_insn): New macro.
3856 (load_insn_table): New function.
3857 (md_begin): Call load_insn_table, once for basic instructions and
3858 once for appropriate PAL instruction table.
3859 (md_parse_option): Set `machine' based on -m##### arguments.
3860 * config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from
3861 alpha_opcodes.
3862 (alpha_pal21164_opcodes): New table.
3863 (NUM21064OPCODES, NUM21164OPCODES): New macros.
3864
3865 * configure.in (target i386-*-netbsd0.8): Use 386bsd emulation.
3866
3867 * doc/Makefile.in (install-info-gasp): Use $$dir when installing
3868 file.
3869
0221ddf7
ILT
3870Wed Jun 1 10:48:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3871
3872 * config/tc-mips.c (mips_ip): Force floating point values to be
3873 aligned correctly.
3874
488442d4 3875Fri May 27 10:05:53 1994 Ken Raeburn (raeburn@cygnus.com)
c06e55d9
KR
3876
3877 Merged in changes from gas-2.3 net release:
3878
3879 * Makefile.in (VERSION): Updated to cygnus-2.3.1.
3880
3881 * config/obj-vms.c: Replaced unchecked uses of malloc with
3882 xmalloc.
3883
3884 * listing.c (list_symbol_table): Only test BFD64, not
3885 BFD_ASSEMBLER too.
3886
314628f6
KR
3887 * config/obj-coff.c (fixup_segment) [BFD_ASSEMBLER]
3888 [DIFF_EXPR_OK]: Don't check pcrel, just convert it.
c06e55d9
KR
3889
3890 * config/obj-vms.c: Removed lots of extra semicolons after
3891 compound statements.
3892 (strchr): Don't declare here.
3893
3894 * config/ho-vax.h (realloc): Declare.
3895
3896 * config/ho-vms.h (strchr, strdup): Declare.
3897
3898 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Accept and ignore
3899 option `-q'.
3900
3901 Wed May 18 20:50:35 1994 Pat Rankin (rankin@eql.caltech.edu)
3902
3903 * config/obj-vms.h (DBG_S_C_SQUAD, DBG_S_C_UQUAD): define these
3904 new VMS symbol-type macros; signed and unsigned quadword integers,
3905 for `long long' support. Their values come from the existing
3906 DSC$K_DTYPE_QU and DSC$K_DTYPE_Q macros in <descrip.h>. The
3907 VMS debugger now recognizes `long long' variables correctly.
4174e052 3908 * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
c06e55d9
KR
3909 for gcc2's predefined types "long double" (same as double, as
3910 per gcc's current state), "long long int", "long long unsigned
3911 int", and final `otherwise' case (to avoid uninitialized type
3912 and size fields). [caveat: predefined types "complex int",
3913 "complex float", "complex double", and "complex long double" are
3914 still missing.]
3915
3916 * config/ho-vms.h (EXIT_FAILURE): define as 0x10000002 instead
3917 of 0, because the latter indicates success rather than failure
3918 when passed to `exit' or return from `main' compiled by gcc2.
3919
3920 * config/obj-vms.c (array_suffix, generate_suffix): replace two
3921 hardcoded `0xa3's with macro DBG_S_C_ADVANCED_TYPE from obj-vms.h.
3922 (VMS_typedef_parse): eliminate redundant if-then-else when
3923 allocating new symbol entry and linking it to VMS_Symbol_type_list.
3924
3925 Tue May 17 20:47:31 1994 Pat Rankin (rankin@eql.caltech.edu)
3926
3927 * config/obj-vms.c (Write_VMS_MHD_Records): don't try to interpret
3928 the contents of the GAS_VERSION string when falling back to it for
3929 language processor identification.
3930
3931 * make-gas.com, vmsconf.sh (ENVIRON): fix misspelling of
3932 `psect_attr' in linker options.
3933
3934 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
3935
3936 * configure.bat: update to latest makefile.in
3937 * config/te-go32.h: [new] go32's environment
3938
a193acc0
ILT
3939Fri May 20 17:59:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3940
3941 * as.h: Don't declare parameters for strstr.
3942
f9c57637
ILT
3943Thu May 19 15:40:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3944
3945 * config/tc-sparc.c (md_section_align): Don't change the size if
3946 OBJ_ELF.
3947
ac7f7dfe
ILT
3948Wed May 18 13:08:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3949
3950 * Makefile.in (install): Redirect ln output to /dev/null. If ln
3951 fails on gasp, install gasp.new, not gasp.
3952
44e8d616
JL
3953Wed May 18 09:16:36 1994 Jeff Law (law@snake.cs.utah.edu)
3954
3955 * config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA for
3956 absolute calls.
3957
ee8b8346
JL
3958Tue May 17 12:50:46 1994 Jeff Law (law@snake.cs.utah.edu)
3959
3960 * config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
3961 on a partial completer match.
3962
3315c7c7
JL
3963Mon May 16 12:03:49 1994 Jeff Law (law@snake.cs.utah.edu)
3964
3965 * config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind
3966 throughout code.
3967 (is_complex): Delete definition and support for complex relocation
3968 types.
3969 (tc_gen_reloc): Delete special unwind crud for ELF. Simplify and
3970 rewrite ELF code based on 94-02-02 PA ELF draft spec.
3971 (pa_build_unwind_subspace): Use standard PARISC_DIR32 relocs for
3972 the unwind descriptors.
3973
c794f0aa
SC
3974Fri May 6 14:13:15 1994 Steve Chamberlain (sac@cygnus.com)
3975
69cb5925 3976 * config/go32.mh: New makefile fragment for go32 crossing.
c794f0aa
SC
3977 * configure.in (host==go32): Use new fragment.
3978
2db90a63
ILT
3979Fri May 6 14:35:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3980
3981 * gasp.c: Include libiberty.h.
3982 (main): Remove unused variable i.
3983
3984 * config/tc-ppc.c (md_begin): When using -many, permit comparison
3985 instructions to appear multiple times in the opcode table.
3986
59232011
KR
3987Thu May 5 19:14:43 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3988
2db90a63
ILT
3989 * Makefile.in (VERSION): Update to 2.2.90.
3990
fbefddfb
KR
3991 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Don't permit additions
3992 to the symbol table if it's already been set in the output bfd.
3993 (symbol_begin) [! EMIT_SECTION_SYMBOLS] [RELOC_REQUIRES_SYMBOL]:
3994 Don't use bfd_abs_section.symbol for gas absolute symbol.
3995
59232011
KR
3996 * doc/Makefile.in (distclean, clean-dvi, clean-info): Delete gasp
3997 files too.
3998
6d41de19
ILT
3999Thu May 5 18:12:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4000
4001 * config/tc-mips.c (mips_emit_delays): Make call to
4002 mips_no_prev_insn unconditional.
4003
a139d99b
KR
4004Thu May 5 17:25:38 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4005
4006 * config/obj-coff*.*: Merged coffbfd versions into coff versions,
4007 with a single "#ifdef BFD_ASSEMBLER" controlling most of it for
4008 now. Deleted obj-coffbfd.* files.
4009 * configure.in: Always use obj-coff.* for COFF targets.
4010
9267b020
KR
4011Wed May 4 13:34:11 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4012
a139d99b
KR
4013 * config/te-dpx2.h (TARGET_FORMAT, REGISTER_PREFIX_OPTIONAL):
4014 Define.
4015 * configure.in (m68k-bull-sysv3*): Enable.
4016
9267b020
KR
4017 * config/coff_gnu.h: Deleted.
4018
9fc63ce0
ILT
4019Wed May 4 11:29:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4020
2237e240
ILT
4021 * config/tc-m68k.h (TARGET_FORMAT): If not TE_SUN3, define as
4022 "a.out-zero.big".
4023
9fc63ce0
ILT
4024 * config/obj-coffbfd.c (fixup_segment): Make common symbol and PC
4025 relative adjustments when TE_LYNX is defined as well as when
4026 TC_I386 is defined.
4027
a3547e53
KR
4028Wed May 4 02:29:21 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4029
3f048548
KR
4030 * as.h (strstr): Restore declaration.
4031 (subseg_get) [BFD_ASSEMBLER]: Declare.
4032
4033 * write.c (write_object_file): If obj_adjust_symtab is defined,
4034 invoke it. Then call set_symtab, and finally invoke *_frob_file
4035 hooks.
4036 * config/obj-coff.c (coff_adjust_symtab): Renamed from
4037 coff_frob_file.
4038 * config/obj-coff.h (coff_adjust_symtab): Changed declaration
4039 accordingly.
4040 (obj_adjust_symtab): Macro also changed.
4041
a3547e53
KR
4042 * configure.in (i386-*-gnu*): New target, handled like i386-mach.
4043
4044Tue May 3 21:04:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4045
4046 * config/obj-coff.h (TARGET_FORMAT) [TC_I960]: Select little
4047 endian version.
4048
4049 * config/obj-coffbfd.h (TARGET_FORMAT) [TC_I960]: Ditto.
4050
4051 * config/obj-coff.c (coff_frob_section): Round up the size of
4052 every section to a multiple of the alignment, so that BFD doesn't
4053 surprise us.
4054
4055 Eliminate many simple differences between the two COFF back ends:
4056
4057 * config/obj-coffbfd.c: Removed all uses of DEFUN and DEFUN_VOID.
4058 Made minor stylistic changes, deleted some register declarations.
4059 (stack_top): Deleted.
4060 (symbol_to_chars): Use absolute_section and reg_section instead of
4061 the corresponding SEG_* symbols.
4062 (obj_coff_endef, tag_find_or_make, fixup_segment): Likewise.
4063 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
4064 Moved to just after pseudo-op table. All functions now static.
4065 (stack_delete): Removed declaration.
4066 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
4067 after stack functions.
4068 * config/obj-coffbfd.h: Reordered some declarations and macros.
4069 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
4070 (stack typedef): Deleted.
4071 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
4072 (SYM_AUXENT): New macro.
4073 (SA_GET_*, SA_SET_*): Define in terms of SYM_AUXENT when feasible.
4074 (SF_GET_*, SF_SET_*): Define in terms of SF_GET when feasible.
4075 (SA_GET_SYM_TAGNDX, SA_GET_SYM_ENDNDX, SA_SET_SYM_TAGNDX,
4076 SA_SET_SYM_ENDNDX, object_headers typedef, data_section_header,
4077 text_section_header): Delete non-BFD_HEADERS versions, since we
4078 always define that symbol now.
4079
4080 * config/obj-coff.c (stack_top): Deleted.
4081 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
4082 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Change
4083 argument name from "ignored" to "ignore".
4084 (obj_coff_val): Use frag_now_fix.
4085 (obj_pseudo_table): Removed IGNORE_DEBUG version, since it doesn't
4086 get used.
4087 (stack typedef, stack_init, stack_delete, stack_push, stack_pop):
4088 Moved to just after pseudo-op table. All functions now static.
4089 (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just
4090 after stack functions.
4091 * config/obj-coff.h: Reordered some declarations and macros.
4092 Protected against multiple inclusions.
4093 (stack_init, stack_delete, stack_push, stack_pop): Don't declare.
4094 (stack typedef): Deleted.
4095 (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
4096 (stdoutput): Deleted declaration.
4097 (TARGET_FORMAT) [TC_I386]: Don't define if already defined.
4098
1b96bdce
ILT
4099Mon May 2 17:09:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4100
4101 * subsegs.h (segment_info_type): Use fix_tail field even if
4102 BFD_ASSEMBLER.
4103 * subsegs.c (subseg_change): Initialize fix_tail field.
4104 (subseg_get): Likewise.
4105 * write.c (frags_chained): New static variable.
4106 (fix_new_internal): If frags_chained is set, use fix_root and
4107 fix_tail from seg_info (now_seg), rather than frchain_now.
4108 (chain_frchains_together_1): Set fix_tail field.
4109 (chain_frchains_together): Set frags_chained.
4110
17f0b355
KR
4111Thu Apr 28 01:39:15 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4112
4113 * config/tc-mips.c (s_option): Only refer to g_switch_* variables
4114 if GPOPT is defined.
4115 (s_abicalls): Ditto.
4116 (md_apply_fix): Cast char* to unsigned char* to avoid pointer
4117 mismatch.
4118
fa1a86f3
SC
4119Wed Apr 27 11:06:32 1994 Steve Chamberlain (sac@cygnus.com)
4120
4121 * configure.in (i386-*-go32): Uses coff now.
69cb5925 4122 * gasp.c (main): Now takes -D on command line.
fa1a86f3
SC
4123 (show_usage): Describe new options.
4124
b46f83f2
KR
4125Tue Apr 26 17:10:30 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4126
4127 * listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and
4128 "NO UNDEFINED SYMBOLS" if there aren't any, instead of displaying
4129 the header with an empty list.
4130
fb51366f
KR
4131 * config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
4132 also before setting STYP_NOLOAD for .bss section.
4133
926ffe94
KR
4134 * config/tc-m68k.c (flag_reg_prefix_optional): New variable.
4135 Initialized to value of REGISTER_PREFIX_OPTIONAL, if defined, or
4136 zero.
4137 (m68k_reg_parse): If flag_reg_prefix_optional is set, permit
4138 register prefix to be absent.
4139 (m68k_ip_op): Accept `&' also for immediate constants.
4140 (insert_reg): Don't bother with (two!?) sanity checks of the
4141 symbol table when inserting each register.
4142 (m68k_parse_long_option): New function. Set
4143 flag_reg_prefix_optional if "register-prefix-optional" is passed.
4144 * config/tc-m68k.h (REGISTER_PREFIX): Always define if not already
4145 defined.
4146 (OPTIONAL_REGISTER_PREFIX): Don't define.
4147 (REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero
4148 or one depending on M68KCOFF.
4149
4150 Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
4151 * config/tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC):
4152 Define as macros instead of enumerators, since the Apollo compiler
4153 can't handle "enumVal1, enumVal2 = enumVal1" when defining an enum
4154 type.
4155 (make_pcrel_absolute) [NO_PCREL_RELOCS]: New function.
4156 (tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE,
4157 R_DIR16, and R_DIR32 relocs.
4158 * config/tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC):
4159 Use Apollo versions.
4160 [TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine. That is,
4161 do include the optional header for Apollo target.
4162 (COFF_MAGIC): Don't define as MC68MAGIC if it's already defined.
4163
4164 * config/tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%'
4165 can be used within a label name.
4166
4167 * config/tc-m68k.h (m68k_init_after_args): Declare.
4168 (tc_init_after_args): Define as m68k_init_after_args.
4169 * config/tc-m68k.c (m68k_init_after_args): New function,
4170 containing one-shot code from md_assemble. Added warning for
4171 combination of 68040 and 68851.
4172 (md_assemble): Startup-time code deleted.
4173
497c179a
ILT
4174Mon Apr 25 16:19:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4175
4176 * doc/Makefile.in (clean, distclean): Remove asconfig.texi.
4177
f38cd6ec
JL
4178Sun Apr 24 00:13:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4179
4180 * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break
4181 instruction) is unsigned.
4182
92867d8e
ILT
4183Fri Apr 22 17:58:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4184
4185 * config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value
4186 and bfd_ecoff_set_regmasks to set the GP value and the register
4187 masks, rather than using the now obsolete fake .reginfo section.
4188
e860dfd0
KR
4189Fri Apr 22 15:17:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4190
4191 * listing.c (list_symbol_table): Don't print register symbols as
4192 undefined.
4193
988238d3
KR
4194 * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip
4195 underscores, since symbol_new will already have done it.
4196 * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto.
4197
a926dd6a
KR
4198 * as.c (main): If tc_init_after_args is defined, invoke it after
4199 all arguments have been processed.
4200
4201 Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
4202 * as.c (perform_an_assembly_pass) [TE_APOLLO]: Create .wtext
4203 section instead of .text. Call create_target_segments.
4204 * read.c (demand_copy_string): No longer static.
4205
6fdc26e6
ILT
4206Thu Apr 21 15:50:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4207
4208 * config/tc-mips.c (append_insn): Permit branches to be switched
4209 with the preceding instruction even if .set nobopt has been seen.
4210 .set nobopt actually controls whether to bring up an instruction
4211 from the branch target, which gas does not currently support.
4212
a6652b1c
KR
4213Wed Apr 20 18:46:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4214
71b4de6f
KR
4215 * config/obj-coff.h, config/obj-coff.c: Deleted all code used only
4216 when BFD_ASSEMBLER is not defined, and all conditionals relating
4217 to such code. No such targets remain.
4218
4219 Fixes for stabs-in-coff:
4220 * config/obj-coff.c: Include subsegs.h.
4221 (coff_frob_section): New function.
4222 (obj_coff_init_stab_section): New function.
4223 * config/obj-coff.h (obj_coff_init_stab_section,
4224 coff_frob_section): Declare.
4225 (obj_frob_section): New macro; uses coff_frob_section.
4226 (INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section.
4227
a6652b1c
KR
4228 * config/tc-sparc.c (md_section_align): Always round up to
4229 multiple of alignment power specified in bfd target vector.
d924d209
KR
4230
4231 * gasp.c: Include ctype.h.
4232
19990560
KR
4233Mon Apr 18 21:08:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4234
4235 * doc/Makefile.in, doc/as.texinfo: Renamed asdoc-config.texi to
4236 asconfig.texi.
4237
4238 * doc/Makefile.in (install-info-as, install-info-gasp): Get file
4239 names from source directory without pathname.
4240
4241 * config/obj-vms.c (VMS_write_object_file): While looking for
4242 register mask, skip empty fill frags caused by enabling listing
4243 output.
4244
4245 * config/ho-sysv.h: Include string.h.
4246
4247 * doc/internals.texi: New (well, recently added) file. Just added
4248 info on as_warn and friends.
4249
9de7c1fc
JL
4250Mon Apr 18 14:28:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4251
4252 * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in
4253 defaults for defined, private, and spnum fields for the
4254 $TEXT$ and $PRIVATE$ spaces. Do not clobber spnum. Do
4255 not reset the segment if just updating a space.
4256 (pa_spaces_begin): Set BFD section flags for all built-in
4257 subspaces.
4258
e904716c
ILT
4259Fri Apr 15 10:51:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4260
37032d95
ILT
4261 * ecoff.c (first_proc_ptr): New static variable.
4262 (add_procedure): Set first_proc_ptr if it hasn't been set.
4263 (ecoff_build_lineno): If the first procedure does not start at
4264 address zero, insert a dummy line to compensate.
4265
e904716c
ILT
4266 * Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
4267 as well as as.new.
4268
d6f98c55
KR
4269Thu Apr 14 15:12:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4270
4271 * expr.c (operand): Try to parse "0f" and "0b" sequences as
4272 floating point and binary numbers respectively; if it doesn't
4273 work, treat them as local labels.
4274
c92d9ee9
KR
4275 * Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
4276 * configure.in: Set ALL_OBJ_DEPS in output Makefile.
4277
4278 Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu>
4279 (Charles Bailey):
4280 * vmsconf.sh: In generated file, get ".obj" suffix right, build
4281 source files from other directories into objects in the current
4282 directory, and specify PSECT attributes explicitly to linker.
4283 Also added missing label.
4284 * Makefile.in (stamp-mk.com): Reference new variable
4285 VMS_OTHER_OBJS for list of non-local object files, instead of
4286 listing them here.
4287 (VMS_OTHER_OBJS): New variable, added more libiberty files.
4288 * make-gas.com: Regenerated.
4289
4290 * config/ho-vms.h (unlink): Define as delete.
4291
4292 * config-gas.com: Fix quoting on TARGET_CANONICAL definition.
4293 Delete files before creating them.
4294
1a69212c
ILT
4295Thu Apr 14 13:34:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4296
b3cd8555
ILT
4297 * Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.
4298
1a69212c
ILT
4299 * config/tc-mips.h (DIFF_EXPR_OK): Define.
4300 * config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
4301 certain cases of 'i', 'j' and 'o'. Change 'u' to take an
4302 argument, the reloc type.
4303 (load_register): Pass reloc type to macro_build for 'u'.
4304 (macro): Likewise. For M_LA_AB permit a difference expression
4305 when generating embedded PIC code between an arbitrary symbol and
4306 a symbol in the .text section.
4307 (mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
4308 BFD_RELOC_PCREL_LO16 to be emitted.
4309 (md_apply_fix): Check that most relocs are not PC relative.
4310 Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
4311 (tc_gen_reloc): Change #error to as_fatal. Handle
4312 BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
4313
cc886e3d
SS
4314Tue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com)
4315
4316 * subsegs.c (subsegs_begin): Call memset with args in the correct
4317 order.
4318 (subseg_get): Clear newly allocated seginfo, set its pointer slots
4319 to NULL instead of 0.
4320
05210990
JL
4321Mon Apr 11 09:00:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4322
caed9e82
JL
4323 * config/tc-hppa.c (pa_procend): Handle case where label was
4324 defined after the .proc directive.
4325
05210990
JL
4326 * config/tc-hppa.c (pa_procend): Give an error if we encounter a
4327 procend for a procedure without a name.
4328
1c803e52
ILT
4329Thu Apr 7 14:28:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4330
4331 * config/tc-mips.c (macro): Pass NULL for expression argument to
4332 macro_build for nori case.
4333 (SWITCH_TABLE): Define.
4334 (mips_force_relocation): Force a relocation for a switch table
4335 entry.
4336 (md_apply_fix): Write switch table entry value into file.
4337 (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry,
4338 and set the addend to the difference between the reloc address and
4339 the subtrahend.
4340
0b503989
JL
4341Thu Apr 7 10:38:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4342
4343 * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.
4344 (elf_tc_make_sections): Likewise.
4345 (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls.
4346
4347 * config/tc-hppa.c (hppa_tc_make_sections): Delete function.
4348 (hppa_tc_symbol): Likewise.
4349
4350 * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and
4351 elf_tc_make_sections stuff. It was there to support PA braindamage
4352 which has been fixed, and in the case of elf_tc_make_sections is
4353 redundant with elf_tc_final_processing.
4354
f39a73b1
JL
4355Wed Apr 6 20:48:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4356
4357 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
4358 manufacturer.
4359
f3645945
ILT
4360Tue Apr 5 15:48:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4361
4362 * config/tc-mips.c (mips_ip): For case 'o', when generating
4363 embedded PIC code, accept the difference between two local symbols
4364 as being constant.
4365 (mips_force_relocation): Only force a reloc to be generated for a
4366 PC relative fixup.
4367 (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup
4368 value into the file if the fixup will not generate a reloc.
4369
03fcf1f8
KR
4370Tue Apr 5 11:14:14 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
4371
4372 * config/tc-sparc.c (s_reserve): If section passed isn't bss,
4373 don't spew remainder of input file in error message.
4374 (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error
4375 message with reloc type and try to process remainder of file.
4376
4377 * doc/Makefile.in (install-info-as, install-info-gasp): New
4378 targets, now explicitly checking $(srcdir) for info files.
4379 (install-info): Depend on both of them; do nothing more.
4380
79381848
JL
4381Mon Apr 4 17:06:04 1994 Jeffrey A. Law (law@cygnus.com)
4382
4383 * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.
4384
1e147242
ILT
4385Mon Apr 4 12:39:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4386
1937a665
ILT
4387 * config/tc-ppc.c (ppc_insert_operand): Check PPC_OPERAND_SIGNED
4388 flag rather than signedp field. Only permit extended range if
4389 PPC_OPERAND_SIGNOPT flag is set and assembling in 32 bit mode.
4390 Based on patch from David Edelsohn (edelsohn@npac.syr.edu).
4391
1e147242
ILT
4392 * config/tc-ppc.c (ppc_size): New static variable.
4393 (ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER.
4394 (md_begin): If an instruction has a size specific flag set, only
4395 add it if we are assembling that size.
4396
7ab2e983
ILT
4397Thu Mar 31 16:51:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4398
4399 * config/tc-sparc.c (tc_gen_reloc): Add a gruesome hack to get
4400 cross section PC relative relocs right for COFF and ELF.
4401
75d20ac8
KR
4402Mon Mar 28 14:38:23 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4403
4404 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.
4405 (OBJ_PROCESS_STAB): Don't define.
4406
57afabd0
ILT
4407Mon Mar 28 12:40:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4408
4409 * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber
4410 the type of symbol set symbols which happen to be in the absolute
4411 or undefined section.
4412
882bdc69
ILT
4413Mon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu)
4414
4415 * config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka
4416 RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604),
4417 and -many (all architectures).
4418
de3ffc7a
JL
4419Sun Mar 27 14:04:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4420
69cb5925 4421 * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation
de3ffc7a
JL
4422 involving a function symbol which is not a plabel to zero.
4423 (md_apply_fix): Never pass a function symbol to field_adjust.
4424
5b63f465
ILT
4425Fri Mar 25 17:35:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4426
645f842c
ILT
4427 * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an
4428 N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL.
4429
5b63f465
ILT
4430 * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a
4431 branch with an instruction that uses $at, in case the branch is
4432 later expanded.
4433 (macro): If EMBEDDED_PIC, case M_JAL_A may use $at.
4434 (md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol
4435 to make it pcrel_offset.
4436 (tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to
4437 reloc->address; another gruesome hack to get gas reloc handling to
4438 do the right thing.
4439
11d7c064
KR
4440Thu Mar 24 21:29:29 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4441
4442 * config/tc-alpha.c (alpha_ip): Only set GP prolog size if using
4443 PV register.
4444 (T12): New macro.
4445 (emit_insn): New function.
4446 (md_assemble): Call it.
4447 (alpha_force_relocation): Handle BFD_RELOC_26, for call_pal
4448 instructions.
4449 (lituse_pending): New variable. Set by anything that generates a
4450 LITERAL reloc, cleared by anything that generates a LITUSE reloc,
4451 tested by code that might want to emit a LITUSE reloc.
4452 (emit_unaligned_io): New function. Currently calls md_assemble,
4453 but it should eventually be converted to generate the insn itself
4454 and call emit_insn directly.
4455 (emit_load_unal, emit_store_unal, emit_byte_manip_r,
4456 emit_extract_r, emit_insert_r, emit_mask_r, emit_sign_extend,
4457 emit_bis_r): Likewise.
4458 (alpha_ip, case 'I'): Handle with BFD_RELOC_23.
4459 (alpha_ip, label get_macro): Don't emit the final instruction if
4460 the opcode is zero.
4461 (alpha_ip, case 'B', subcase 'd'): New case, for subword and
4462 unaligned memory access macros.
4463 (md_apply_fix): Handle BFD_RELOC_26. Generate an error message if
4464 the value can't be resolved.
4465
4466Wed Mar 23 16:06:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4467
4468 * config/tc-mips.c (md_parse_option): For -membedded-pic, force
4469 the -G value to 0x7fffffff. For SVR4 PIC options, don't call
4470 bfd_set_gp_size here, it's done in md_begin. Don't permit -G with
4471 -membedded-pic.
4472 (mips_force_relocation): New function.
4473 (md_apply_fix): Set fixP->fx_done appropriately.
4474 (s_change_sec): For EMBEDDED_PIC, change .data and .rdata to
4475 .sdata.
4476 * config/tc-mips.h (TC_FORCE_RELOCATION): Define.
4477 (mips_force_relocation): Declare.
4478 (TC_HANDLE_FX_DONE): Define.
4479
e1b5066f
ILT
4480Tue Mar 22 13:58:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4481
d9aba805
ILT
4482 * config/tc-mips.c (enum mips_pic_level): New enum.
4483 (mips_pic): Change from int to enum mips_pic_level. Change all
4484 uses (0 becomes NO_PIC, 2 becomes SVR4_PIC).
4485 (load_address): Handle EMBEDDED_PIC.
4486 (macro): Handle EMBEDDED_PIC in all PIC cases.
4487 (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If
4488 OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept
4489 -non_shared to use NO_PIC (this is how the Irix 5 assembler
4490 works). Do not permit -G with SVR4_PIC.
4491 (s_abicalls): Warn if -G was used, and force -G 0.
4492 (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for
4493 anything but a.out, not just for ELF. For ECOFF, don't generate a
4494 BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.
4495
e1b5066f
ILT
4496 * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.
4497
4498Sun Mar 20 16:31:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4499
4500 * config/tc-hppa.c (create_new_space): Use ints, not chars as
4501 parameters to avoid losing when compiling with HP CC.
4502 (create_new_subspace, update_subspace, fix_new_hppa): Likewise.
4503
1871f91a
KR
4504Sun Mar 20 14:43:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4505
c37f6138
KR
4506 * Makefile.in (config-stamp): If `defs' is defined, emit a
4507 preprocessor directive to create a macro named by this value into
4508 config.new; don't explicitly go for BFD_ASSEMBLER.
4509 * configure.in: Define `defs', not `BFDDEF'. Set it to
4510 MANY_SEGMENTS for any obj-coffbfd target.
4511 * config/obj-coffbfd.h (BFD_HEADERS, BFD): Define.
4512 * config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS,
4513 or BFD_HEADERS.
4514 (LOCAL_LOADLIBES): Deleted.
4515 * config/m68kcoff.mt (TDEFINES): Don't define those macros.
4516 * config/m88kcoff.mt (TDEFINES): Ditto.
4517 * config/ebmon29k.mt: Deleted.
4518 * config/h8300hds.mt: Deleted.
4519 * config/ic960coff.mt: Deleted.
4520 * config/sparc.mt: Deleted.
4521 * config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
4522 * config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
4523 * config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted.
4524 * config/z8k.mt (LOCAL_LOADLIBES): Deleted.
4525 (TDEFINES): Don't define the coffbfd macros.
4526
4527 * Makefile.in: Insert makefile fragments before OBJS definition.
4528 (OBJS): Add $(TE_OBJS).
4529
3680de74
KR
4530 * config/obj-coff.c (obj_pseudo_table): Supply "section"
4531 unconditionally.
4532
1871f91a
KR
4533 * write.c (set_symtab): Define only if BFD_ASSEMBLER.
4534
c20c7506
JL
4535Sun Mar 20 12:06:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4536
4537 * Makefile.in (STAGESTUFF): Add gasp.new.
4538
634233a3
KR
4539Fri Mar 18 20:09:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4540
1cf7548e
KR
4541 * write.c (symbol_table_frozen): New variable, to be set after
4542 bfd_set_symtab is called.
4543 (dump_section_relocs): Note whether a symbol is a section symbol
4544 or not.
4545 (adjust_reloc_syms): For now, always supply an absolute symbol for
4546 fixups without symbols but not yet `done'. Use section_symbol to
4547 get the symbol, instead of going directly for abs_symbol.
4548 (write_relocs) [DEBUG4]: Abort if any symbol referred to by a
4549 reloc is not a section symbol and is not in the symbol table.
4550 (set_symtab): New function, broken out from write_object_file.
4551 Counts symbol table instead of relying on an earlier count.
4552 (write_object_file): Call set_symtab, but do it after potentially
4553 invoking the *_frob_file macros. Don't bother counting symbols.
4554 Call symbol_remove, instead of expanding it in place. Moved the
4555 conditionalized `object_file_size' declaration down to
4556 conditionalized block where it's used. When using the absolute
4557 symbol for a fixup without a symbol, set sy_used_in_reloc.
4558 (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get
4559 the correct symbol for the absolute section.
4560
ec3c65e1
KR
4561 * subsegs.c (section_symbol): Use symbol_new instead of
4562 symbol_make, since we may want it to go into the symbol table.
4563 Make the new symbol have internal linkage. If
4564 obj_sec_sym_ok_for_reloc says it's okay, use the BFD section
4565 symbol with the newly created GAS symbol.
4566 (obj_sec_sym_ok_for_reloc): Default to always returning 0.
4567 * config/obj-aout.h (obj_sec_sym_ok_for_reloc) [BFD_ASSEMBLER]:
4568 New macro.
4569 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): New macro.
4570
4571 * config/tc-sparc.c: Include subsegs.h.
4572 (in_signed_range): New function.
4573 (sparc_ip): Use it.
4574 (sparc_ip, case 'i'): Use BFD_RELOC_SPARC13, not _BASE13.
4575 (sparc_ip, label "immediate"): Reject constants for pcrel
4576 instructions only if the relocation type indicates a "call"
4577 instruction and the offset is within range of a "jmpl %g0". If
4578 it's not in range, use the absolute section symbol plus an offset.
4579 (md_apply_fix): Use in_signed_range. Combined _SPARC13 and
4580 _BASE13 cases.
4581 (tc_gen_reloc): Permit BFD_RELOC_SPARC13.
4582
1be3cf74
KR
4583 * config/ic960coff.mt (TDEFINES): Fixed typo (MANY_SECTIONS, not
4584 MANY_SEGMENTS).
4585
634233a3
KR
4586 * configure.in: Eliminated all targets using obj-coff but not
4587 defining BFD_ASSEMBLER; I think all such targets that are
4588 supported will be matched by real CPU-OS combinations earlier in
4589 the case statement.
4590 (targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted. Made
4591 some comments about the dpx2 configuration, but left it disabled,
4592 since it couldn't be reached before.
4593 (target a29k-amd-ebmonold): Deleted.
4594
49ccc555
JL
4595Thu Mar 17 13:36:09 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4596
4597 * config/tc-hppa.c (pa_import): Correctly handle importing of an
4598 already defined symbol.
4599
23dc1ae3
ILT
4600Wed Mar 16 17:11:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4601
614a3211
ILT
4602 * config/tc-mips.c (mips_ip): Only accept overly large values for
4603 the 'j' operand if there are no further alternatives for this
4604 instruction.
4605
d6e6bc1c
ILT
4606 * config/obj-coffbfd.c (adjust_stab_section): Initialize
4607 stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it
4608 is not SEG_UNKNOWN rather than checking whether it is >= 0.
4609
23dc1ae3
ILT
4610 * config/tc-mips.c (mips_align): Take new argument, label, and use
4611 it instead of global insn_label.
4612 (s_align, s_cons, s_float_cons, s_gpword): Save insn_label before
4613 call to mips_emit_delay and pass it to mips_align.
4614
4615Wed Mar 16 11:54:12 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4616
69cb5925 4617 * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.
c38c91da 4618
f2ada910
JL
4619 * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an
4620 argument to a .callinfo directive. Don't loop forever on errors.
4621
69cb5925
KR
4622 * config/tc-hppa.c (pa_equ): Use pa_parse_number so that we can
4623 use pre-defined registers as arguments.
23dc1ae3 4624
954979ca
KR
4625Mon Mar 14 14:29:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4626
dbc529c4
KR
4627 * write.c (write_object_file): Check both S_IS_LOCAL and
4628 S_IS_EXTERNAL when deciding whether to discard a symbol.
4629
4630 * config-gas.com: Scan Makefile.in, not version.c, for current
4631 version number. Delete all versions of temp files when finished
4632 with them. Create config.h.
4633
4634 * config/obj-vms.c (VMS_Initialized_Data_Size): Cache symbol
4635 values to reduce number of lookups with S_GET_VALUE. Skip debug
4636 symbols to avoid "a really nasty bug". (From Holger Teutsch,
4637 holger@botbso.rhein-main.de.)
4638 (VMS_write_object_file): For "__vt.*" symbols, set S_GET_OTHER
4639 field. (Also from Holger Teutsch.) Watch for a would-be register
4640 mask that spans frags.
4641
4642 * config/obj-coffbfd.c (obj_coff_line): Set symbol lnno field with
4643 this_base, not line_base. (Patch from Andreas Arens,
4644 ari@obelix.av.rwth-aachen.de.)
4645
4646 * config/obj-aout.c (obj_crawl_symbol_chain): Retain symbols that
4647 look local if they're exported or undefined. Used to be done for
4648 i960 only.
4649
4650 * read.c (s_lcomm, s_comm): Print symbol name being redefined.
4651 Get it from the looked-up symbol, instead of using the string from
4652 the input stream, which is no longer null-terminated.
4653 (LEX_PCT): New macro, defaults to 0.
4654 (lex_type): Use it for `%'.
4655
4656 * config/tc-vax.c (md_parse_option): Handle `-h#' option for VMS.
4657 (vip_op): Now static, and returns void. Callers changed. Added
4658 forward decl.
4659 (vip): Ditto. Call as_fatal directly if a program bug is
4660 detected.
4661 (op_hash): Let default initialization suffice.
4662
954979ca
KR
4663 * Makefile.in (literal.o): Provide dependencies.
4664
4665 * configure.in: Set new makefile variable OPCODES_LIB.
4666 * Makefile.in (LIBS): Use it.
4667
4668 * Makefile.in (make-gas.com, stamp-mk.com): New targets.
4669 * vmsconf.sh: New file.
4670 * make-gas.com: Regenerated from new script.
4671
4672 * configure.in (sparc*-*-lynxos*): Handle any version number
4673 suffix after "lynxos". Set emulation to lynx.
4674
4675Mon Mar 14 11:30:49 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4676
4677 * config/obj-coff.c (obj_coff_section): Delete declaration.
4678
62ea7974
ILT
4679Fri Mar 11 22:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4680
4681 * config/tc-ppc.c (md_pcrel_from): Return 0 for undefined ELF
4682 symbols.
4683 (ppc_is_toc_sym): Change .toc to .got.
4684 (md_apply_fix): Change handling of ELF relocs.
4685 (tc_gen_reloc): Likewise.
4686
63ca2e81
KR
4687Fri Mar 11 17:42:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4688
4689 * config/obj-vms.c (Close_VMS_Object_File): Add comment pointing
4690 out some code that doesn't belong in this file.
4691
4692 * config/obj-vms.h: Include aout/stab_gnu.h.
4693 (N_GSYM, ..., N_LENG): Deleted.
4694 (NO_RELOC): Undefine before defining as part of enum reloc_type.
4695
4696 * config/tc-alpha.c: Add comment questioning need for all the
4697 characters in FLT_CHARS.
4698
4699 * as.c (main) [OBJ_VMS]: Don't call output_file_close.
4700
4701 * config/obj-ecoff.c (ecoff_frob_file): Set strict order for
4702 sections with recognized names, before computing VMA values.
4703
be22008b
ILT
4704Fri Mar 11 17:56:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4705
4706 * config/tc-mips.c (mips_ip): Accept numbers between 0x8000 and
4707 0xffff for 'j' to be compatible with MIPS assembler. These
4708 numbers are actually treated as negative.
4709
2c6db5a1
DE
4710Thu Mar 10 13:36:29 1994 Doug Evans (dje@canuck.cygnus.com)
4711
4712 * config/tc-sparc.h (LOCAL_LABEL): Local labels are .Lfoo.
4713
9e12fbbc
KR
4714Tue Mar 8 21:17:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4715
4716 * config/obj-coff.c: Minor formatting/stylistic changes, plus:
4717 (obj_coff_section): Declare.
4718 (obj_pseudo_table): Make it available only if MANY_SECTIONS.
4719 (obj_symbol_to_chars) [CROSS_COMPILE]: Some attemps to make this
4720 work. It still doesn't. It now fails to compile, instead of
4721 silently compiling to do nothing.
4722 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define only if
4723 MANY_SECTIONS.
4724 (OBJ_PROCESS_STAB) [! MANY_SECTIONS]: New macro, just emits
4725 warning.
4726
4727 Handle Alpha load-immediate-FP pseudo-instructions:
4728 * config/alpha-opcode.h (ldif, ldig, ldis, ldit): New patterns.
4729 * config/tc-alpha.c (lit8_sec, lit4_sec, lit8_sym, lit4_sym): New
4730 variables.
4731 (create_literal_section): New function.
4732 (create_lita_section): Now a macro.
4733 (get_lit8_offset, get_lit4_offset): New functions.
4734 (maybe_set_gp): New function.
4735 (select_gp_value): Call it.
4736 (load_expression): Preserve addend if symbol is a section symbol.
4737 (alpha_ip): Handle new operand type `F' for floating-point
4738 constants; store them in .lit{4,8} sections.
4739 (alpha_ip, case 'G'): Emit LITUSE relocations for symbol exprs.
4740
4741 * config/tc-i386.c (smallest_imm_type): Never return Imm1.
4742
2bac8c54
SC
4743Tue Mar 8 14:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4744
4745 * config/obj-coffbfd.c (w_strings): Only copy strings out if
4746 their symbols are going to be written.
4747
d16938f5
ILT
4748Tue Mar 8 11:49:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4749
4750 * messages.c (as_perror): Declare arguments const.
4751 * as.h (as_perror): Change declaration.
4752
8ea7f4e8
ILT
4753Mon Mar 7 16:08:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4754
4755 * config/tc-mips.c (load_address): When calling frag_grow, allow
4756 for the (up to) two nops which may be inserted by append_insn if
4757 mips_optimize is 0.
4758 (macro): Likewise.
4759
fa47b47e
DE
4760Thu Mar 3 11:37:55 1994 Doug Evans (dje@canuck.cygnus.com)
4761
4762 * config/atof-ieee.c (make_invalid_floating_point_number):
4763 Add cast to avoid warning from gcc.
4764
34b16850
JL
4765Wed Mar 2 10:31:01 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4766
69cb5925 4767 * config/tc-hppa.c: Add a few casts to make HP C compiler happy.
fb338f1d 4768
69cb5925 4769 * config/obj-som.c (obj_som_version, obj_som_copyright): Be
fb338f1d 4770 prepared
69cb5925 4771 to handle an error from bfd_som_attach_aux_hdr.
fb338f1d 4772
34b16850
JL
4773 * config/tc-hppa.h: Wrap ELF specific decls inside an ifdef.
4774
994fde6d
KR
4775Mon Feb 28 15:03:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4776
4777 * config/tc-alpha.c (md_atof): Omit warning about FP values.
4778 (line_comment_chars): Add ! to list.
4779 (md_apply_fix): Do process 32- and 64-bit relocations.
4780
4781 * config/obj-coffbfd.c (obj_coff_lcomm): Put "#if 0" around the
4782 unused parts (most of the function).
4783 (obj_coff_init_stab_section): Cast alloca result.
4784
4785 * configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and
4786 gas_target ic960coff.
4787 * config/ic960coff.mt: New file.
4788 * config/obj-coffbfd.h [TC_I960]: Include coff/i960.h.
4789 (TARGET_FORMAT) [TC_I960]: Use coff-Intel-little.
4790 * config/te-ic960.h (CROSS_COMPILE): Don't undef this. We'll
4791 always build little-endian object files.
4792 * config/tc-i960.c (md_reloc_size): Don't define at all if BFD or
4793 BFD_ASSEMBLER is defined.
4794 (mem_fmt): Since COFF doesn't handle callx relocations yet, treat
4795 them like normal 32-bit relocations.
4796 (md_apply_fix): For callx relocations, store zero.
4797 (tc_bout_fix_to_chars): Store symbol index for all callx
4798 relocations, regardless of link-relax setting.
4799 (tc_coff_fix2rtype, tc_coff_sizemachdep): New functions.
4800 (i960_handle_align) [! OBJ_BOUT]: If link-relax option is
4801 selected, print an error message and clear it.
4802 * config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC,
4803 TC_COUNT_RELOC, TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP,
4804 tc_fix_adjustable): New macros.
4805 (tc_coff_fix2rtype, tc_coff_sizemachdep): Declare.
4806
e03095c9
JL
4807Fri Feb 25 20:56:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4808
4809 * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
4810 (hppa_tc_make_sections): Likewise.
4811 (pa_build_symextn_section): Delete unused function.
4812 (hppa_tc_make_symextn_section): Likewise.
4813 (pa_export): Delete call to pa_build_symextn_section.
4814
4815 * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
4816 (elf_hppa_final_processing): Delete extern decl.
4817 (hppa_tc_symbol): Delete extern decl.
4818
3919ffeb
ILT
4819Fri Feb 25 13:15:31 1994 Ian Lance Taylor (ian@cygnus.com)
4820
4821 * config/obj-coffbfd.c (fill_section): Correct test for whether to
4822 fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).
4823
f95de5d9
KR
4824Thu Feb 24 11:30:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4825
3919ffeb
ILT
4826 * configure.in: Don't require version number for i386-*-mach.
4827
f95de5d9
KR
4828 * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler",
4829 which is ignored by gas, but will cause other assemblers to choke.
4830 Intended for use by gcc ports that require gas instead of native
4831 assemblers.
4832
cb6af928
JL
4833Thu Feb 24 07:10:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4834
4835 * config/ho-hppaosf.h: Fix braino in test for ANSI-C.
4836
08c5812c
JL
4837Wed Feb 23 16:51:43 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4838
4839 * write.c (write_contents): Give the user a reasonable error
4840 message rather than "assertion failed" if bfd_set_section_contents
4841 fails.
4842
c9c45af1
KR
4843Tue Feb 22 10:07:32 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
4844
4845 * config/ho-mach3.h: New file.
4846
9eb5f4b8
ILT
4847Mon Feb 21 11:41:18 1994 Ian Lance Taylor (ian@cygnus.com)
4848
2e5fdb1d
ILT
4849 * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is
4850 now set in bfd/ecofflink.c:ecoff_write_symhdr.
4851
9d90491e
ILT
4852 * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
4853 not bfd_error.
4854 * config/obj-elf.c (elf_frob_file): Likewise.
4855
4856 * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
4857 variables.
4858
c8d02404
ILT
4859 * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__.
4860
9eb5f4b8
ILT
4861 * read.c (read_a_source_file): Use correct arguments to memcpy
4862 (broken 19 Jul 1993). From kjd@pescadero.stanford.edu (Kenneth
4863 Duda).
4864
4d88d6dc
ILT
4865Sun Feb 20 18:01:54 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
4866
4867 * config/obj-coff.h (obj_coff_section): Declare.
4868 * config/obj-coff.c (obj_pseudo_table): For "section", use
4869 obj_coff_section.
4870 (obj_coff_section): Rewrite.
4871
741f4d66
KR
4872Fri Feb 18 14:16:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4873
9e0cbfbb
KR
4874 * configure.in (i386-*-mach3*): New target; uses BFD.
4875 * config/te-mach.h: New file.
4876 * config/obj-aout.c (obj_aout_frob_file): New function.
4877 * config/obj-aout.h (obj_aout_frob_file): Declare it.
4878 (frob_file): New macro.
4879 * config/tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust
4880 pcrel32 relocations.
4881 * config/tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3.
4882
741f4d66
KR
4883 * write.c (write_object_file): Removed register declarations.
4884
5e65fbc8
ILT
4885Thu Feb 17 16:25:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4886
254f8450 4887 Some support for PowerPC ELF.
5e65fbc8
ILT
4888 * configure.in: If cpu is powerpc*, use ppc.
4889 (ppc-*-sysv4*): Use object format elf.
4890 * config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
4891 defined.
4892 (TARGET_ARCH): Make it call ppc_arch.
4893 (ppc_arch): Declare.
4894 (TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
4895 (NO_STRING_ESCAPES): Define.
4896 (LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
4897 * config/tc-ppc.c: Only define a number of functions of OBJ_COFF
4898 is defined.
4899 (md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added
4900 OBJ_COFF specific "bi" and "ei".
4901 (md_parse_option): Fix handling of -u. Make -m601 set
4902 PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q.
4903 (ppc_set_cpu): New function.
4904 (ppc_arch): New function.
4905 (md_begin): Call ppc_set_cpu.
4906 (ppc_insert_operand): For a signed operand accept an unsigned
4907 value, for IBM compatibility.
4908 (ppc_byte): Don't call stringer for strings; instead, treat two
4909 double quotes as a single double quote.
4910 (ppc_comm): Set sy_tc.output for a .lcomm symbol.
4911 (ppc_biei): New function.
4912 (ppc_tc): If not OBJ_COFF, ignore first argument.
4913 (ppc_fix_adjustable): Call as_bad_where, not as_bad.
4914 (ppc_is_toc_sym): New function.
4915 (md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and
4916 BFD_RELOC_8.
4917
f61b81b7
DM
4918Thu Feb 17 09:29:37 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4919
4920 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
69cb5925 4921 bfd_set_error and new error names.
f61b81b7 4922
c25be7f4
KR
4923Tue Feb 15 20:23:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4924
4925 * configure.in: Support i960-vxworks versions > 5.0 as coff.
4926 Default is still bout if no version is specified.
4927
04bde70d
KR
4928 * atof-generic.c (atof_generic): Use switch and strcasecmp instead
4929 of large number of compares when looking for inf/nan values.
4930
b1237b9d
ILT
4931Fri Feb 11 13:13:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4932
4933 * config/tc-mips.c (macro): Do unaligned loads and stores
4934 correctly when big endian, and give errors on overflow rather than
4935 generating incorrect code.
4936
605e1d90
ILT
4937Thu Feb 10 11:24:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4938
4939 * as.c: Include libiberty.h.
4940
4941 * read.c (do_align): Don't define label just_record_alignment
4942 unless it might be used.
4943
4944 * as.c (main): If md_parse_long_option is defined, call it with a
4945 long option.
4946 * config/tc-mips.h (md_parse_long_option): Define.
4947 * config/tc-mips.c (mips_trap): New static variable.
4948 (md_begin): Report an error if mips_trap is set at ISA level 1.
4949 (macro): If mips_trap, use trap instructions instead of break
4950 instructions for overflow and divide by zero detection.
4951 (mips_parse_long_option): New function. Support --trap,
4952 --no-break, --break and --no-trap.
4953 * doc/as.texinfo: Document new options.
4954
4955 * read.c (potable): Add "zero".
4956 * config/tc-i386.c (md_pseudo_table): Remove "zero".
4957 * config/tc-m88k.c (md_pseudo_table): Likewise.
4958
6440d65c
KR
4959Thu Feb 10 01:24:27 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4960
4961 * config/tc-sparc.c (sparc_ip): Reject integer values for
4962 pc-relative operand fields. This forces "call 0" to become "jmpl
4963 %g0,%o7" with no relocations needed.
4964
ddb393cf
ILT
4965Wed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4966
d87c080e
ILT
4967 * as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
4968 * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
4969
ddb393cf
ILT
4970 * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
4971 don't treat backslash specially inside strings.
4972 * read.c (next_char_of_string): Likewise.
4973
66c774bb
SS
4974Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
4975
4976 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
4977 instead of memcpy to zero the initial stab symbol, duh.
4978 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
4979 * config/obj-som.c (obj_som_init_stab_section): Ditto.
4980
356315fe
ILT
4981Tue Feb 8 17:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4982
4983 * write.c (fixup_segment): Use as_bad_where, not as_bad.
4984
4985 * subsegs.c (subseg_set_rest): Call memset with the arguments in
4986 the right order. Explicitly clear fix_root and fix_tail fields.
4987
df44a852
KR
4988Tue Feb 8 16:00:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4989
cfaf70e3
KR
4990 * config/obj-coff.c (coff_frob_symbol): For abs_symbol, set *punt
4991 and do nothing else.
4992
4993 * symbols.c (symbol_begin): Initialize value of abs_symbol
4994 properly.
4995
4996 * write.c (adjust_reloc_syms): Use abs_symbol instead of calling
4997 section_symbol.
4998
cafb569b
KR
4999 * ecoff.c (ecoff_build_debug): Fix "/*" in comment to silence
5000 complaint from "gcc -Wall".
5001
7496639a
KR
5002 * configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
5003
8a74b870
KR
5004 * config/tc-alpha.c (GP_ADJUSTMENT): Move definition to start of
5005 file.
5006 (tc_gen_reloc): Remove uninitialized variable `code', and code
5007 that tried to use it (incorrectly). For LITERAL reloc, set addend
5008 to negative of GP value.
5009 (load_symbol_address): Don't adjust return value by GP_ADJUSTMENT.
5010
df44a852
KR
5011 * write.c (write_relocs): Print some sensible error message if
5012 bfd_perform_relocation returns bfd_reloc_overflow.
5013
5014Mon Feb 7 15:49:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5015
5016 * configure.in (hppa*-*elf*): New configuration for PA ELF.
5017 (hppa*-*-osf*): Default object format is SOM.
5018
c3591adb
KR
5019Mon Feb 7 16:07:35 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5020
2d33b3aa
KR
5021 * config/tc-alpha.c (md_atof): Warn that floating-point values
5022 might not assemble properly.
5023
c3591adb
KR
5024 * configure.in (target alpha-*-osf*): Don't set "dev=yes" any
5025 more.
5026
5027 * config/tc-alpha.c (load_expression): Parenthesize operations in
5028 range checking, to avoid precedence questions.
fc6b54fd 5029
c3591adb
KR
5030 * config/tc-alpha.c (addr32): New static variable.
5031 (md_parse_option): Set it for "-32addr".
5032 (load_symbol_address): If addr32 is set, use ldl instead of ldq.
5033
5034 * atof-generic.c (atof_generic): Calculate maximum_useful_digits
5035 and more_than_enough_bits_for_digits in integer arithmetic, to
5036 eliminate the only sources of dependence on floating point
5037 support, which doesn't work yet on the Alpha.
5038
5039Mon Feb 7 03:56:05 1994 Ken Raeburn (raeburn@cambridge.cygnus.com)
fc6b54fd
KR
5040
5041 * ecoff.c (ecoff_build_debug) [TC_ALPHA]: Specify version stamp as
5042 0x30b for Alpha for now, until ".verstamp" is handled.
5043
5044 * literal.c (add_to_literal_pool): Use seginfo->frchainP, which
5045 actually refers to the literal pool section, rather than
5046 frchain_now, which refers to whatever section the assembler was
5047 in.
5048
5049 * write.c (fixup_segment): Only do range checking if size of fixup
5050 is smaller than word size. Otherwise, we always wind up with
5051 zeros.
5052
5facbfd4
KR
5053 * config/tc-alpha.c (md_section_align): Change second argument and
5054 return type to valueT, to agree with tc.h.
5055 (alpha_do_align): Local static array nop_pattern is now unsigned
5056 char, to avoid overflow warnings.
5057 * config/tc-alpha.h (md_section_align): Delete declaration.
5058
5059 * config/obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
5060 output bfd is non-null before indirecting through it.
5061
5062 * config/tc-alpha.c (alpha_frob_ecoff_data): Renamed from
5063 alpha_frob_file.
5064 * config/tc-alpha.h (tc_frob_file): Macro deleted.
5065 * config/obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call
5066 alpha_frob_ecoff_data, then fill in optional-header info with gp
5067 value and register masks.
5068
dc536cc0
JL
5069Sun Feb 6 16:13:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5070
f8693e71
JL
5071 * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP.
5072
dc536cc0
JL
5073 * config/obj-som.c (obj_som_init_stab_section): Same change
5074 as coffbfd and elf below. Zero the initial stab symbol after
5075 allocating it.
5076
41b5ef0f
SS
5077Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com)
5078
5079 * config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
5080 initial stab symbol after allocating it.
5081 * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
5082
fa4beb7e
JL
5083Sat Feb 5 11:53:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5084
5085 * config/tc-hppa.c (pa_ip): addb[tf] should only accept
5086 non-negated condition completers. Add support for addb pseudo-op
5087 which accepts both negated and non-negated completers.
5088
1c11ab0e
ILT
5089Sat Feb 5 00:15:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5090
5091 * configure.in (rs6000*): Use cpu_type ppc.
5092 (ppc-*-aix*): New target; use coff and force bfd_gas.
5093 * config/tc-ppc.h, config/tc-ppc.c: New files for PowerPC/POWER
5094 (RS/6000) support. At the moment, only XCOFF is supported.
5095
5096 * config/obj-coff.c (SA_SET_SYM_ENDNDX): Made non-static.
5097 (S_SET_DATA_TYPE): Likewise.
5098 (coff_last_function): Renamed from local static last_functionP in
5099 coff_frob_symbol and made externally visible.
5100 (coff_frob_symbol): New local static set_end; use it to try to
5101 avoid calling SA_SET_SYM_ENDNDX on a symbol that will be punted.
5102 * config/obj-coff.h (S_SET_DATA_TYPE): Declare.
5103 (SA_SET_SYM_ENDNDX): Declare.
5104 (coff_last_function): Declare.
5105
5106 * expr.c (operand): If DOLLAR_DOT is defined, accept `$' as
5107 equivalent to `.' to mean the current location.
5108
5109 * read.c (LEX_BR): If not defined, define as 0.
5110 (lex_type): Use LEX_BR as the type of `{',`}',`[',`]'.
5111
5112 * symbols.c (symbol_new): If tc_canonicalize_symbol_name is
5113 defined, call it with preserved_copy_of_name. If
5114 tc_symbol_new_hook is defined, call it on the new symbol.
5115 (symbol_find_base): If tc_canonicalize_symbol_name is defined,
5116 call it on a copy of the name argument.
5117
5118 * write.c (write_object_file): Simplified usage of obj_frob_symbol
5119 and tc_frob_symbol. Always call both if the symbol is going to be
5120 output.
5121
5122 * write.c (relax_segment): Use %ld rather than %d when printing
5123 fragP->fr_var, and cast it to long.
5124
5125 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
5126 * subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
5127 fix_root and fix_tail.
5128 (segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
5129 field.
5130 * write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
5131 fix_tailP based on frchain_now, not seg_info (now_seg).
5132 (chain_frchains_together_1): Chain the subsegment relocs together.
5133 * subsegs.c (subseg_change): Don't clear fix_tail field.
5134 (subseg_get): Likewise.
5135 * literal.c (add_to_literal_pool): Look through the relocs via
5136 frchain_now, not seginfo.
5137
f85ad9d5
ILT
5138Thu Feb 3 23:07:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5139
5140 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Changed
5141 ecoff_undefined to ecoff_extern_size.
5142 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Likewise.
5143 * config/tc-mips.c (s_extern): Set ecoff_extern_size to the
5144 external symbol size, rathern than setting the symbol value.
5145 (md_estimate_size_before_relax): Check both ecoff_extern_size and
5146 symbol value to see if GP referencing can be used.
5147 * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not
5148 ecoff_undefined.
5149 (ecoff_frob_symbol): Don't check ecoff_undefined.
5150 (ecoff_build_symbols): Get size of an undefined symbol from
5151 sym->ecoff_extern_size, not S_GET_VALUE (sym).
5152
b4bd2c92
JL
5153Wed Feb 2 13:55:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5154
5155 * Makefile.in: Avoid bug in losing hpux sed.
5156
1051c97f
ILT
5157Wed Feb 2 11:40:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5158
5159 * config/tc-mips.c (file_mips_isa): New static variable.
5160 (md_begin): Set it.
5161 (s_mipsset): Add support for .set mipN to set the ISA level.
5162
5163 * gasp.c (kinfo): Fully bracket initializer.
5164
f2cdeec4
KR
5165Tue Feb 1 19:28:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5166
5167 * gasp.c (malloc): Don't declare, since host.h or system header
5168 files may declare it differently.
5169
5170 * config/atof-ieee.c (int_to_gen): Now static.
5171
5172 * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not
5173 ho-sysv.h. Based loosely on a patch from Minh Tran-Le.
5174
e2847e64
SC
5175Tue Feb 1 10:50:17 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5176
5177 * gasp.c: Include host.h.
5178
9cbf9e57
ILT
5179Tue Feb 1 12:13:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5180
8bbad6fd
ILT
5181 * config/tc-mips.c (mips_ip): Make an unsupported instruction a
5182 warning, not an error.
5183
9cbf9e57
ILT
5184 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
5185 dot_bss_symbol): Don't define if BFD_ASSEMBLER.
5186 (obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more
5187 arguments.
5188 (coff_line_base): Renamed from line_base. Changed all uses.
5189 (coff_add_linesym): Renamed from add_line_sym. Made non-static.
5190 Changed all uses.
5191 * config/obj-coff.h: If TC_PPC, include coff/rs6000.h.
5192 (S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if
5193 BFD_ASSEMBLER.
5194 (coff_line_base): Declare.
5195 (coff_add_linesym): Declare if BFD_ASSEMBLER.
5196 * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out
5197 now takes more arguments.
5198
2abb453d
SS
5199Mon Jan 31 17:55:14 1994 Stan Shebs (shebs@andros.cygnus.com)
5200
5201 * as.c (statistics_flag): Renamed from quiet_flag.
5202 (main): Get statistics with --statistics instead of -noquiet.
5203
a5a4b5ac
SC
5204Mon Jan 31 07:19:30 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5205
5206 * Makefile.in: Support for Gnu ASsembler Preprocessor.
5207 * gasp.c: New file.
5208 * read.c (s_lcomm): Align lcomm data.
69cb5925 5209 * config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction
a5a4b5ac
SC
5210 from different sections.
5211
7909261f
KR
5212Sun Jan 30 14:58:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5213
5214 * write.c (write_object_file): If tc_frob_file is defined, call it
5215 just before calling obj_frob_file.
5216 * config/tc-alpha.c (alpha_gp_value): Renamed from gp_value
5217 (references changed), and made non-static.
5218 (getExpression): Return void.
5219 (select_gp_value): Abort if gp_value is non-zero. Delete call to
5220 non-existent bfd_set_gp_value.
5221 (alpha_validate_fix): Function deleted.
5222 (alpha_frob_symbol): Function deleted.
5223 (alpha_local_label): Function deleted.
5224 (alpha_frob_file): Renamed from alpha_end.
5225 * config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix,
5226 alpha_local_label, alpha_end): Declarations deleted.
5227 (alpha_gp_value, alpha_frob_file): Declare.
5228 (tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted.
5229 (LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label.
5230 (md_convert_frag): Simplified slightly.
5231 (tc_frob_file): New macro.
5232
5233 * read.c (do_align): New function, most of guts of s_align_*
5234 functions. Look for md_do_align macro, give it a chance to bypass
5235 all but recording of section alignment.
5236 (s_align_bytes, s_align_ptwo): Call do_align.
5237 (s_lcomm) [TC_ALPHA]: Align object to largest power of two that
5238 divides object size.
5239
5240 * frags.c (frag_align_pattern): New function.
5241 (frag_align): Rewrite for clarity.
5242
5243 * config/tc-vax.c (md_assemble): Handle O_constant expression.
5244 (vip_begin): Returns pointer to const char. Cast hash_insert arg
5245 to PTR to avoid compiler complaints about const.
5246 (md_begin): Local variable errtxt must point to const.
5247
5248 * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't
5249 bother with *-*-ultrix or *-*-sysv*, except *-*-sysv, since only
5250 the last has an existing host support file. Do handle vax-bsd and
5251 vax-ultrix targets.
5252
1f029792
ILT
5253Fri Jan 28 11:26:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5254
5255 * config/obj-coff.c (obj_coff_section_header_append): Do not
5256 declare if BFD_ASSEMBLER.
5257 (stack_pop): Correct test for stack underflow.
5258 (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
5259 obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare
5260 type of ignored argument to avoid gcc warning.
5261 (align): Removed unused function.
5262
6221fe20
KR
5263Thu Jan 27 18:14:19 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5264
81f6013a
KR
5265 * config/tc-alpha.c, config/tc-alpha.h, config/alpha-opcode.h: New
5266 files, based on port of gas-1.38 contributed by CMU, using a.out
5267 variant. Updated for gas-2.x and ECOFF. Floating-point constants
5268 are still broken, bootstrap testing incomplete.
5269
5270 * literal.c: Comment changes.
5271
5272 * listing.c (listing_source_file): Check for null listing_tail
5273 before indirecting through it.
5274
5275 * expr.h (struct expressionS): Added struct tag.
5276
5277 * as.h: If __GNUC__ and inline are both undefined, define inline
5278 away.
5279
5280 * write.c (cvt_frag_to_fill): Don't assume that fr_var for
5281 rs_align or rs_org frags will be 1.
5282 (relax_segment): For rs_align, if fr_var is not 1, complain if
5283 required padding is not a multiple of the size of the pad pattern.
5284 (fixup_segment): Leave gp-relative relocations alone. For pcrel
5285 relocations referring to the same segment, clear fx_pcrel when
5286 clearing fx_addsy.
5287 * as.h: Adjust comments on rs_align.
5288
6221fe20
KR
5289 * atof-generic.c: Some reformatting.
5290 (atof_generic): Be careful when mixing signed/unsigned values of
5291 different sizes.
5292
81f6013a
KR
5293 * write.c, config/obj-{aout,bout,coff*}.c, config/tc-sparc.c:
5294 Query the fx_done field instead of fx_addsy to see if the fixup
5295 still needs to be applied. Set fx_done and clear fx_addsy both,
5296 for now. If TC_HANDLES_FX_DONE isn't defined, assume md_apply_fix
5297 will only clear fx_addsy, and set fx_done accordingly after
5298 returning.
5299 * config/tc-sparc.h (TC_HANDLES_FX_DONE): Define.
5300 * config/tc-sparc.c (md_apply_fix): Set fx_done for non-pcrel fix
5301 with no fx_addsy.
5302
5303 * symbols.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
5304 Deleted.
5305 (symbol_begin): Moved to end of file, so function inlining can
5306 work better.
5307 (fb_label_count, fb_label_max): Default C static initializers are
5308 sufficient.
5309 * symbols.h (dot_text_symbol, dot_data_symbol, dot_bss_symbol):
5310 Declarations deleted.
5311 * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
5312 dot_bss_symbol): Defined here, static.
5313
5314 * config/obj-aout.c [BFD_ASSEMBLER]: Undef NO_RELOC before
5315 including aout/aout64.h.
5316
5317 * write.c (write_object_file): If EMIT_SECTION_SYMBOLS is false,
5318 don't write out a section symbol even if it's used in a
5319 relocation; assume relocations will handle section numbers
5320 somehow. Rename "punt_it" label to "punt_it_if_unused" to reflect
5321 it's true use.
5322 (EMIT_SECTION_SYMBOLS): Default to 1.
5323 (adjust_reloc_syms): Don't create a new symbol for an absolute
5324 reference; just use the absolute section symbol.
5325 (write_relocs): Make printout of reloc values dependent on flag
5326 DEBUG3, not DEBUG2.
5327 * config/obj-aout.h (EMIT_SECTION_SYMBOLS): Define as 0.
5328 * config/obj-ecoff.h (EMIT_SECTION_SYMBOLS): Ditto.
5329
a57180ad
ILT
5330Thu Jan 27 16:43:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5331
ec7a69ea
ILT
5332 * read.c (lex_type): No longer make '{' a valid character for
5333 symbol names.
5334
fe920573
ILT
5335 * as.c (main): Print long values using %ld.
5336
a57180ad
ILT
5337 * messages.c (as_warn_internal): New static function.
5338 (as_warn, 3 versions): Use as_warn_internal.
5339 (as_warn_where, 3 versions): New function.
5340 * as.h (as_warn_where): Declare.
5341
ca7bd557
SS
5342Tue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
5343
5344 * as.c (quiet_flag): New flag.
5345 (main): If -noquiet given, display execution time and memory used.
5346
9dcf8057
JL
5347Tue Jan 25 15:53:11 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5348
5349 * doc/{all.texi,as.texinfo}: Add documentation for HPPA port.
5350
f71babce
ILT
5351Mon Jan 24 19:18:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5352
5353 * ecoff.c (ecoff_frob_symbol): New function. Put undefined
5354 symbols of known size in the undefined section. Put small common
5355 symbols in a .scommon section.
5356 * ecoff.h (ecoff_frob_symbol): Declare.
5357 * config/obj-ecoff.h (obj_frob_symbol): Define.
5358 * config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
5359 obj_elf_frob_symbol): Removed unused functions.
5360 * config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
5361 unused macros.
5362 (obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
5363 of unused functions.
5364 (obj_frob_symbol): Define if ECOFF_DEBUGGING.
5365
5366 * tc-mips.c (g_switch_seen): New static variable.
5367 (md_parse_option): Set g_switch_seen for -G option.
5368 (s_option): If creating PIC code, force the GP size to be 0. Warn
5369 if -G switch used with a non-zero value.
5370
5371 * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
5372 comparing against bfd_com_section.
5373
2ef7731d
KR
5374Mon Jan 24 14:12:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5375
5376 * read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss
5377 section.
5378
7691379e
KR
5379Thu Jan 20 13:17:58 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5380
5381 * expr.c (operand): For floating point operand with unusual fp
5382 char from FLT_CHARS, preserve the character. Patch from Lisa
5383 Repka.
5384
eb8fd0e9
ILT
5385Wed Jan 19 23:15:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5386
5387 * config/tc-mips.c (md_pseudo_table): Add all data allocation
5388 pseudo-ops: .hword, .int, .long, .octa, .quad, .short, .single.
5389
d9420fc1
SC
5390Tue Jan 18 15:51:59 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5391
5392 * config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and
5393 C_FCN assume .val has been set to .
5394
2f156c92
JL
5395Tue Jan 18 16:19:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5396
5397 * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It
5398 confuses GDB for some unknown reason.
5399 * cofnig/obj-som.c: Likewise.
5400
19302e44
KR
5401Tue Jan 18 19:05:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5402
5403 * literal.c (add_to_literal_pool): Handle duplicates of values
5404 already written to literal pool.
5405
4bda835f
ILT
5406Tue Jan 18 17:23:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5407
5408 * config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols
5409 with explicitly marked stabs through BFD: if a symbol marked
5410 N_UNDF | N_EXT is in the absolute section, move it to the
5411 undefined section; move a symbol marked N_INDR into
13655af6
ILT
5412 bfd_ind_section and set the BSF_INDIRECT flag; set the
5413 BSF_WARNING flag for a symbol makred N_WARNING.
4bda835f 5414
17ed84ed
ILT
5415Mon Jan 17 15:40:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5416
5417 * ecoff.h (ecoff_set_gp_prolog_size): Declare.
5418 * ecoff.c (ecoff_set_gp_prolog_size): Return type is void.
5419
d0286a21
JL
5420Mon Jan 17 00:18:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5421
51517966
JL
5422 * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
5423 and 'f' template operand.
5424
d0286a21
JL
5425 * config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u',
5426 and '2' in copr and sfu instruction templates.
5427
e7501ac7
JL
5428Sun Jan 16 16:44:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5429
5430 * as.h (subseg_force_new): Add prototype.
5431
d2550c72
DE
5432Sat Jan 15 09:20:55 1994 Doug Evans (dje@canuck.cygnus.com)
5433
d307fed1
DE
5434 * app.c (do_scrub_next_char): Allow lines like " foolab :".
5435
d2550c72
DE
5436 * read.c (emit_expr): Fix computation of mask.
5437 * config/obj-elf.c (obj_elf_section): Fix loop termination test.
5438
d211303d
KR
5439Thu Jan 13 16:15:15 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5440
64270963
KR
5441 * ecoff.c (ecoff_set_gp_prolog_size): New function.
5442 (current_file_idx): New static variable.
5443 (add_file): Use and increment current_file_idx instead of indx
5444 parameter.
5445
ff4325cb
KR
5446 * struc-symbol.h (struct symbol): Make all bitfields unsigned.
5447
d211303d
KR
5448 * config/tc-i960.c (i960_validate_fix): Added argument
5449 add_symbolPP. Indirect through it to get "add_symbolP".
5450 * config/tc-i960.h (i960_validate_fix): Supply prototype.
5451 (TC_VALIDATE_FIX): Pass address of add_symbolP.
5452
5453 * configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
5454 (i386-*-netbsd0.8): New target, like 386bsd.
5455
5456 * configure.in: Set BFDDEF in Makefile to "define" or "undef".
5457 * Makefile.in (config.h): Protect against multiple inclusions.
5458 Define or undef BFD_ASSEMBLER as specified by $(BFDDEF).
5459 (ALL_CFLAGS): Omit $(BFDDEF).
5460 * as.h: Include config.h.
5461 (struct symbol): Added forward declaration.
5462 (add_to_literal_pool): Fix declaration.
64270963 5463 * as.c: Don't include config.h.
d211303d
KR
5464
5465 * literal.c (add_to_literal_pool): Take symbol and addend as
5466 arguments, instead of expression, for now. Fix calculation of
5467 offset to return.
5468
5469 * subsegs.h (segment_info_type) [NEED_LITERAL_POOL]: Add field
5470 literal_pool_size.
5471
500828a0
JL
5472Thu Jan 13 12:14:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu
5473
5474 * subsegs.c (subseg_get): Accept new argument "force_new". If
5475 set then a new segment is always created. All callers changed.
5476 (subseg_force_new): New function. Similar to subseg_new, but
5477 always force a new segment to be created.
5478
5479 * config/obj-som.c (som_frob_file): Call adjust_code_sections
5480 for each section.
5481 (adjust_code_sections): New function. Adjusts the VMA for all the
5482 $CODE$ subspaces.
5483
5484 * config/tc-hppa.c (md_assemble): Also handle creating a fixup
5485 for the unwind descriptors if a function's label follows the
5486 .PROC and .ENTRY directives.
5487 (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
5488 is done elsewhere. Don't create a fixup for the unwind
5489 descriptors if the function's label has not been defined yet.
5490 (pa_proc): For SOM, place each procedure within a new $CODE$
5491 subspace. Adjust the segment and frag for the associated
5492 function label if it exists.
5493
5494Wed Jan 12 22:05:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5495
5496 * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
5497 (hppa_fix_new): Initialize segment field.
5498 (md_apply_fix): Do nothing for pc-relative fixup which involves
5499 crossing a segment boundary.
5500 (pa_procend): Undefine the current label after handling .PROC
5501 and .PROCEND directives.
5502 (dummy_symbol): Make type "symbolS *". Change references as
5503 appropriate.
5504
bbf7e43d
ILT
5505Wed Jan 12 13:29:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5506
5507 * read.c (read_a_source_file): Cast array argument to unsigned
5508 char.
5509 * write.c (adjust_reloc_syms): Remove unused variable symseginfo.
5510 (write_object_file): Don't define punt_it if it won't be used.
5511 (fixup_segment): Don't define skip if it won't be used.
5512
5513 * config/tc-mips.h (TARGET_FORMAT): Define as mips_target_format.
5514 (mips_target_format): Declare.
5515 * config/tc-mips.c (mips_target_format): Define with appropriate
5516 default definition.
5517 (md_parse_option): If -EL or -EB is used, change byte_order and
5518 mips_target_format as appropriate.
5519
a1c91916
JL
5520Tue Jan 11 21:52:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5521
5522 * app.c (do_scrub_next_char): Another attempt to fix bugs
5523 dealing with labels without colons (for HPPA and MRI).
5524
44ce2f32
DE
5525Tue Jan 11 17:01:06 1994 Doug Evans (dje@canuck.cygnus.com)
5526
fd4b7c25
KR
5527 * config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.
5528
44ce2f32
DE
5529 * expr.c (integer_constant): Fix computation of too_many_digits.
5530 Variable digit_2 renamed to start. Fix check for whether number
5531 will fit in 32 bits.
5532 * read.c (emit_expr): Use valueT instead of long.
5533
af255ca0
ILT
5534Tue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5535
f34e27a1
ILT
5536 * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
5537 (special_sections): Define.
5538 (obj_elf_special_section): Get default types and attributes from
5539 list of special sections.
5540 * config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.
5541
4e76ae53
ILT
5542 * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
5543 sections to be close together.
5544
8197b589
ILT
5545 * config/tc-mips.c (macro): Corrected $at warnings in a couple of
5546 spots.
5547
af255ca0
ILT
5548 * listing.c (listing_prev_line): New function.
5549 * listing.c: Include subsegs.h.
5550 (listing_prev_line): New function.
5551 (calc_hex): Reset byte_in_frag to zero for each new frag.
5552 * config/tc-mips.c (append_insn): Call listing_prev_line after
5553 emitting nop instructions.
5554 * Makefile.in (listing.o): Depends upon subsegs.h.
5555
4047ff1d
JL
5556Mon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5557
5558 * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
5559 here. Handle case where label may be defined after the .PROC.
5560 (pa_proc): It is not an error if the procedure's label isn't
5561 defined before the .PROC directive.
5562
6f1c6a67
KR
5563Sun Jan 9 04:43:30 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5564
5565 * config/te-netbsd.h: New file.
5566 * config/tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use bfd target
5567 a.out-netbsd-386 for this configuration.
5568
fe4e3290
ILT
5569Fri Jan 7 17:38:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5570
5571 * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information
af255ca0 5572 with the associated stabs information.
fe4e3290
ILT
5573 (ecoff_build_symbols): Never set the type of stabs symbols to
5574 st_Global. Don't update the symbol index or ifd if the gas symbol
5575 is not the same as the ECOFF symbol (which is now the case for
5576 stabs symbols).
5577
917fae09
SS
5578Fri Jan 7 11:14:07 1994 Stan Shebs (shebs@andros.cygnus.com)
5579
5580 * config/tc-mips.c (macro): Add a LOSING_COMPILER ifdef that
5581 splits the function.
5582 (macro2): New function, if LOSING_COMPILER defined.
5583
03a372ed
SC
5584Fri Jan 7 09:38:25 1994 Steve Chamberlain (sac@cygnus.com)
5585
5586 * config/obj-coffbfd.c (fill_section): Don't ever fill past the
5587 end of a section. (write_object_file): Temporary fix - setup
5588 stdoutput.
5589
fd0e2cf2
KR
5590Thu Jan 6 18:05:21 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5591
5592 * config/tc-sparc.c (tc_gen_reloc): Fix handling of addends in
5593 non-pcrel_offset relocations.
5594
13fe1379
ILT
5595Thu Jan 6 01:06:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5596
5597 * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
5598 without .set noat.
5599
311ff8d6
KR
5600Wed Jan 5 14:22:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5601
2d29d89d 5602 * literal.c: New file.
d4aad2b4
KR
5603 * Makefile.in (REAL_SOURCES, OBJS): List it.
5604
5605 * as.h (DEBUG): Don't define.
5606 (struct expressionS, struct fix): Declare in case they're used in
5607 prototypes.
5608 (add_to_literal_pool) [BFD_ASSEMBLER]: Declare.
2d29d89d 5609
311ff8d6
KR
5610 * config/tc-mips.h (TARGET_FORMAT) [OBJ_AOUT]: Fix for new names
5611 in bfd.
5612
5613 * subsegs.c (subseg_get): New function. Creates segment if
5614 needed, returns pointer, but doesn't change current segment.
5615 (subseg_new): Use it.
5616
5a051773
SS
5617Tue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com)
5618
5619 * Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search.
5620 * config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/".
5621 * app.c, flonum.h, hex-value.c (const): Change #if to be more
5622 portable.
5623
fce98d63
RS
5624Tue Jan 4 22:11:34 1994 Rob Savoye (rob@darkstar.cygnus.com)
5625
69cb5925
KR
5626 * config/ho-vsta.h, configure.in, .Sanitize: Add support for VSTa
5627 micro-kernel.
fce98d63 5628
5a051773
SS
5629Thu Dec 30 15:27:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5630
5631 * write.c (write_relocs): bfd_perform_relocation now takes an
5632 additional argument, to return an error string (which we ignore).
5633
9314b3a1
KR
5634Wed Dec 29 14:37:26 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5635
5636 * write.h (struct fix): Field tc_fix_data should be type PTR, not
5637 void*, for compatibility with non-ANSI compilers. Added
5638 single-bit field "fx_done".
5639
45db9caf
TG
5640Sun Dec 26 14:31:47 1993 Torbjorn Granlund (tege@adder.cygnus.com)
5641
5642 * tc-hppa.c (pre_defined_registers): Convert to lower case.
5643 Delete spurious register names "%r4L", etc.
5644 (selector_table): Sort and convert to lower case.
5645 (cons_fix_new_hppa): `reloc_type' => `rel_type'.
5646 (pa_ip): Always use strcmp for non-text and strcasecmp for text.
5647 (reg_name_search): Rewrite to call strcasecmp only once per
5648 iteration.
5649 (pa_chk_field_selector): Rewrite to use binary search.
5650 (pa_parse_neg_add_cmpltr): Use strcasecmp for completer comparisons.
5651 (pa_parse_space_stmt): $TEXT$ and $PRIVATE$ are symbols; use case
5652 sensitive comparisons.
5653 (pa_parse_space_stmt): Canonicalize strncasecmp arg to lower case.
5654 (pa_space): "$text$" => "$TEXT$"; "$private$" => "$PRIVATE$". Use
5655 case sensitive comparison for all symbolic names.
5656 (pa_subspace): Canonicalize strncasecmp arg to lower case.
5657 (pa_subspace_start): Use case sensitive comparison for symbolic names.
5658
8b13fa4e
KR
5659Mon Dec 20 10:37:48 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5660
0a75cb6c
KR
5661 * write.c (adjust_reloc_syms) [RELOC_REQUIRES_SYMBOL]: If no
5662 symbol is present (i.e., relocation against absolute), create a
5663 phony local symbol, and use it in the reloc.
5664 (fixup_segment): When adjusting a reloc with an absolute symbol,
5665 have TC_FORCE_RELOCATION control clearing add_symbolP too.
5666 * config/tc-sparc.h (RELOC_REQUIRES_SYMBOL): Define, for OBJ_COFF.
5667
5668 * symbols.c (S_IS_EXTERNAL, S_IS_LOCAL): Don't use both BSF_EXPORT
5669 and BSF_GLOBAL, since they're the same.
5670
d3e3010b
KR
5671 * as.c (main): Only invoke md_end if it's defined as a macro.
5672 * tc.h (md_end): Don't declare it.
5673 * config/tc-*.[ch] (md_end): Deleted, in cases where it doesn't do
5674 anything.
5675 * config/tc-vax.c (vip_end): Deleted null function.
5676 * config/tc-mips.c (md_mips_end): Renamed from md_end.
5677 * config/tc-mips.h (md_mips_end): Declare.
5678 (md_end): New macro, calls md_mips_end.
5679
5680 * write.c (write_object_file): Don't close output file.
5681 * as.c (main): Close output file (if needed) after calling
5682 listing_print, which should be after calling write_object_file,
5683 which sets the frag addresses.
5684
5685 * config/obj-coff.c (obj_coff_dim, obj_coff_endef, obj_coff_line,
5686 obj_coff_scl, obj_coff_size, obj_coff_tag, obj_coff_type,
5687 obj_coff_val): Add unused int argument to satisfy prototypes; goes
5688 with Ian's 10 Sep changes.
5689 (S_GET_DATA_TYPE, S_SET_DATA_TYPE, S_GET_STORAGE_CLASS,
5690 S_SET_STORAGE_CLASS): Now function instead of macros.
5691 (obj_emit_lineno) [BFD_ASSEMBLER]: Deleted.
5692 (tag_insert): Local var ERROR_STRING is const. Use "const" not
5693 "CONST" for argument NAME. Fixed prototype.
5694 (coff_frob_symbol): Removed explicit "#if 1" directive. If
5695 S_IS_EXTERNAL, set storage class to C_EXT.
5696 (s_get_name): Use "const" not "CONST".
5697 * config/obj-coff.h (S_GET_DATA_TYPE, S_SET_DATA_TYPE,
5698 S_GET_STORAGE_CLASS, S_SET_STORAGE_CLASS): Deleted.
5699 (obj_emit_lineno): Declare only for non-BFD_ASSEMBLER. For
5700 BFD_ASSEMBLER, define as macro that aborts.
5701 (obj_extra_stuff, tc_headers_hook): Declare only for
5702 non-BFD_ASSEMBLER.
5703 (coff_frob_symbol): Fix prototype.
8b13fa4e
KR
5704
5705Sun Dec 19 00:37:20 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5706
5707 * config/tc-sparc.c (tc_gen_reloc): Test of pcrel_offset had sense
5708 reversed.
5709
5ea18b5d
JL
5710Thu Dec 16 21:13:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5711
5712 * config/tc-hppa.c (md_begin): Initialize "dummy_label".
5713 (tc_gen_reloc, SOM version): For relocations which have no symbol,
5714 set sym_ptr_ptr to dummy_label. Avoids lossage in generic BFD code.
5715
a8a72d74
KR
5716Thu Dec 16 16:07:56 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5717
5718 * read.c (lex_type): No longer make '[' a valid character for
5719 symbol names.
5720
50f75add
KR
5721 * config/tc-vax.c (tc_aout_fix_to_chars): Local variable
5722 NBYTES_R_LENGTH now const.
5723
5724 * config/obj-*.c, config/tc-*.c: Omit superfluous "return"
5725 statements at ends of functions. Don't check for null return from
5726 hash_new, since it won't return at all if there's no memory
5727 available. Also, check for null return from hash_insert, rather
5728 than zero-length string, as success indicator.
5729
5730 * subsegs.c (section_symbol): New function.
5731 * subsegs.h (section_symbol): Declare.
5732 * write.c (adjust_reloc_syms): Use it.
5733
cf4aca57
KR
5734Wed Dec 15 15:39:53 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5735
7387c355
KR
5736 * Makefile.in (RUNTEST): New variable.
5737 (CHECKFLAGS): Pass it down.
5738
cf4aca57
KR
5739 * ecoff.c (ecoff_directive_frame): Permit extra trailing operands;
5740 unused for now, but supplied by Alpha OSF1 compiler.
5741
5742 * as.h: Protect against multiple inclusions.
5743 (int_to_gen): Don't declare.
5744
5745 * config/atof-vax.c (atof_vax): NULL is not a valid character
5746 constant.
5747
551d2fd4
JL
5748Tue Dec 14 21:38:25 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5749
26da0351
JL
5750 * configure.in (hppa*-*-osf*): Do not consider this a developmental
5751 configuration.
5752
551d2fd4
JL
5753 * config/tc-hppa.c (md_apply_fix): Handle cases where no
5754 relocation will be emitted for 32bit formats.
5755
9d5a9b20
JL
5756Mon Dec 13 23:33:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5757
5758 * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
5759 for any of the 'T' field selectors.
5760
2b5936ff
SC
5761Sat Dec 11 11:23:12 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5762
5763 * config/tc-h8500.c (build_bytes): Get reloc type right for a
5764 %page operation. (md_assemble): Don't modify input_line_pointer.
5765 (mdcoff_sizemachdep): New function.
5766 * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro.
5767 * config/tc-z8k.c (get_operand): Delete bogus check.
5768
a1328e79
KR
5769Wed Dec 8 16:31:51 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
5770
5771 * write.c (number_to_chars_*): Delete bogus range check.
5772
5773 * output-file.c (TARGET_ARCH): No default.
5774
ef7ce769
SC
5775Tue Dec 7 16:02:53 1993 Steve Chamberlain (sac@jonny.cygnus.com)
5776
5777 * config/tc-sh.c (md_convert_frag): Truncate disps before calling
5778 md_number_to_chars. (md_assemble): Don't modify
5779 input_line_pointer.
5780
67707031
DE
5781Mon Dec 6 11:49:03 1993 Doug Evans (dje@canuck.cygnus.com)
5782
5783 * config/tc-h8300.c (md_assemble): Don't update input_line_pointer.
5784
dd2f509f
JL
5785Mon Dec 6 11:20:02 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5786
5787 * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.
5788 Breaks with the HP compilers.
5789
5790 * config/tc-hppa.c (struct call_info): Remove fields which were
5791 set but never used. Remove all code which sets those fields.
5792 (struct subspace_dictionary_chain): Likewise.
5793 (struct space_dictionary_chain): Likewise.
5794 (pa_desc): Delete useless function. Delete all references.
5795 (hppa_tc_make_sections): No need to count the number of symbols for
69cb5925 5796 the symbol extension section.
dd2f509f 5797
7b624bf2
JL
5798Sun Dec 5 17:05:29 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5799
eb91665b
JL
5800 * config/obj-som.c (obj_som_version): Pass version string to
5801 SOM BFD backend.
5802 (obj_som_copyright): New function. Much like obj_som_version.
5803
5804 * config/tc-hppa.c (obj_copyright): Define as appropriate for
69cb5925 5805 SOM and ELF.
eb91665b
JL
5806 (pa_copyright): Just a stub now.
5807
42ecb409
JL
5808 * config/obj-som.c (obj_read_begin_hook): Delete unused function.
5809 * config/obj-som.h (obj_read_begin_hook): Provide dummy definition.
5810 (TARGET_SYMBOL_FIELDS): Delete. SOM isn't making use of them.
5811
4165dcc2
JL
5812 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation
5813 expansion due to rounding mode selectors. Handle R_[RDSN]_MODE
5814 relocations for selecting the current rounding mode.
5815
7b624bf2
JL
5816 * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and
5817 e_rlsel field selectors.
5818
5819Fri Dec 3 18:33:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5820
5821 * config/obj-elf.h: If ECOFF_DEBUGGING, undef
5822 SEPARATE_STAB_SECTIONS and INIT_STAB_SECTION, and define
5823 OBJ_PROCESS_STAB to call ecoff_stab.
5824 * config/obj-elf.c: Don't compile obj_elf_init_stab_section if
5825 INIT_STAB_SECTION is not defined.
5826
753dcbbd
JL
5827Fri Dec 3 10:56:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5828
5829 * config/tc-hppa.c (md_apply_fix): Delete old wrapper function.
5830 (md_apply_fix_1): Rename to md_apply_fix. Fix argument decls.
5831 Fix comments in various places. Always return a value.
5832 Avoid dereferencing a NULL fx_addsy.
5833 (hppa_force_relocation): Avoid dereferencing a NULL fx_addsy.
5834
585635c7
JL
5835 Fri Dec 3 09:47:30 1993 Pete Hoogenboom (hoogen@cs.utah.edu)
5836
5837 * tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should
5838 be either 0 or 2 (no static link or static link required). Always
5839 assume no static link.
5840
bfbfba45
KR
5841Thu Dec 2 11:52:21 1993 Ken Raeburn (raeburn@cygnus.com)
5842
5843 * config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be
5844 dependent on howto fields, not on format flavour.
5845
5846 * struc-symbol.h (struct symbol): New fields sy_obj and sy_tc,
5847 defined as types OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those
5848 macros are defined.
5849 * config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define.
5850 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define.
5851 (sy_tc, sy_obj): Define so that the fields look like they used to,
5852 until all references get changed.
5853
5854 * write.c (fixup_segment): Lots of variables no longer register.
5855 Reordered some code for easier reading.
5856 * config/obj-coff.c (obj_coff_dim): dim_index no longer register.
5857 Deleted superfluous return statement.
5858 (obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type,
5859 obj_coff_val, tag_init, tag_insert): Deleted superfluous return
5860 statement.
5861 (align, obj_coff_section): Deleted debugging printfs.
5862 * config/tc-i386.c (md_assemble): Discard some register decls.
5863 Use assignment rather than memcpy to copy template.
5864 (op_hash, reg_hash, prefix_hash): Default C initialization of
5865 statics is sufficient.
5866 * config/tc-sparc.c (print_insn): Array Reloc is now const, and
5867 points to const.
5868
5869 * config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if
5870 TE_LYNX; use coff-sparc otherwise.
5871 [USE_NATIVE_HEADERS]: Delete this code; it isn't used.
5872
5873 * write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined,
5874 before processing a fixup. Call TC_ADJUST_RELOC_COUNT just before
5875 returning. Remove some i960-coff-specific code.
5876 (TC_ADJUST_RELOC_COUNT): Default to doing nothing.
5877 * config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define.
5878 (i960_validate_fix): Declare.
5879 (TC_VALIDATE_FIX): Define.
5880 * config/tc-i960.c (i960_validate_fix): New function.
5881
5882 * write.c (number_to_chars_littleendian): New function. Write out
5883 bytes in little endian order, doing size and range checking.
5884 (number_to_chars_bigendian): New function, similar.
5885 * write.h: Declare them.
5886 * config/tc-*.c (md_number_to_chars): Use them.
5887 * config/tc-vax.c (md_apply_fix): Ditto.
5888 * config/tc-i386.c (md_apply_fix): Ditto.
5889
5890 * config/obj-coff.c: Rearranged code for handling line number
5891 data.
5892 (line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case,
5893 since the usage is different from non-BFD_ASSEMBLER case.
5894 (in_function, clear_function, set_function): New macros, to
5895 combine some of the functionality implemented in differnet ways in
5896 BFD_ASSEMBLER and non-... code. Used in other functions that used
5897 to check function_lineoff &c.
5898 (obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER,
5899 one for not. Non-BFD_ASSEMBLER version now has temporary variable
5900 to contain char* pointer pointed to by char** argument. Always
5901 follow CROSS_COMPILE code; easier to read that way.
5902 (obj_coff_ln): Don't call add_lineno or c_line_new if appline is
5903 set.
5904 (obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for
5905 ".bf", it's been done elsewhere.
5906 (coff_frob_symbol): If ilne number data is pending, call
5907 add_linesym to flush it.
5908 (coff_frob_file): Don't do that here.
5909 * config/obj-coff.h (coff_frob_file): Declare.
5910 (obj_frob_file): Define, to call it.
5911
5912 * config/tc-sparc.h (md_create_short_jump, md_create_long_jump,
5913 md_estimate_size_before_relax: Define them as macros calling
5914 as_fatal.
5915 * config/tc-sparc.c: Don't define them as functions.
5916
5917 * configure.in: Handle target alpha-*-osf*. (No cpu files yet.)
5918
0a8ae18f
JL
5919Wed Dec 1 23:37:14 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5920
5921 * Makefile (clean): Depend on clean-here.
5922
9a048e48
KR
5923Wed Dec 1 11:35:21 1993 Ken Raeburn (raeburn@cujo.cygnus.com)
5924
5925 * config/ho-go32.h: Include fopen-bin.h.
5926 * as.h: If FOPEN_WB isn't defined, include fopen-same.h.
5927 * output-file.c (output_file_create): Use FOPEN_WB instead of "w".
5928 * input-file.c (input_file_open): Use FOPEN_RT instead of "r".
5929 * listing.c (file_info): Use FOPEN_RB instead of "rb".
5930 * read.c (s_include): Use FOPEN_RT instead of "r".
5931
5932 * stabs.c: Include obstack.h.
5933
5934 * tc.h (md_create_long_jump): Don't declare if it's already
5935 defined as a macro.
5936 (md_create_short_jump, md_estimate_size_before_relax): Ditto.
5937
5938 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_errmsg instead
5939 of strerror. Clear bfd_error.
5940
5941 * config/te-lynx.h (LOCAL_LABELS_FB): Define, if not already
5942 defined.
5943
44c0de53
JL
5944Wed Dec 1 10:41:56 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5945
5946 * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.
5947 (pa_process_exit, pa_procend): Call it for ELF objects.
5948
777ad64d
ILT
5949Wed Dec 1 12:10:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5950
5951 * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d
4032d3f0
ILT
5952 case. See comment. From wilson@cygnus.com: for M_L_DAB, set
5953 coproc before doing goto ld.
777ad64d 5954
335d35c8
JL
5955Tue Nov 30 13:40:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5956
5957 * write.c (TC_FORCE_RELOCATION): Provide a default definition.
69cb5925 5958 (fixup_segment): Allow the target machine to specify that a
335d35c8
JL
5959 relocation must be generated for a particular fixup. Remove
5960 #ifndef TC_HPPA hack.
5961
5962 * config/tc-hppa.h (TC_FORCE_RELOCATION): Define.
5963
5964 * config/tc-hppa.c (md_apply_fix_1): Never change fx_addsy to
5965 be NULL. Only fixup_segment is supposed to do that.
5966 (hppa_force_relocation): New function.
5967
018f2bba
ILT
5968Tue Nov 30 11:21:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5969
c751ad19
ILT
5970 * Makefile.in (stabs.o): Added dependencies.
5971
018f2bba
ILT
5972 * config/obj-ecoff.c (ecoff_frob_file): Don't call bfd_set_symtab.
5973
81413fa2
JL
5974Sun Nov 28 12:11:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5975
278cd007
JL
5976 * app.c (do_scrub_next_char): Output a TAB before any
5977 .app* directive.
5978
81413fa2
JL
5979 * config/tc-hppa.c (fix_new_hppa): Make sure a sub_symbol
5980 exists before trying to peek at its name.
5981 (pa_space): Do not call pa_align_subseg. See hppa/unsorted/align3.s
5982 for testcase.
5983 (pa_align_subseg): Delete unused/unwanted function.
5984
385ce433
JL
5985Sat Nov 27 22:49:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5986
5987 * read.c (read_a_source_file): Fix test for when to stick a colon
5988 on the end of a label. Make code conditional on either MRI or
5989 LABELS_WITHOUT_COLONS.
5990
5991 * app.c (do_scrub_next_char): If a line begins with whitespace, leave
5992 the single whitespace character alone. Eat all others.
5993
5994 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define.
5995
31a385d1
JL
5996Wed Nov 24 01:22:54 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5997
5998 * config/tc-hppa.c (pa_procend): Do not call process_exit.
5999 (exit_processing_complete): Delete unwanted variable and all
6000 references.
6001
c5953036
ILT
6002Wed Nov 24 02:31:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6003
6004 * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext.
6005 Changed to not actually build the external symbol information, as
6006 that is now done by the ECOFF back end.
6007 (ecoff_build_debug): Changed accordingly.
6008 * ecoff.h (obj_ecoff_set_ext): Declare. obj-format.c function
6009 called by ecoff_setup_ext.
6010 * config/obj-ecoff.c (ecoff_frob_file): If debug_info count is 0,
6011 set corresponding pointer to NULL. Don't set raw_size and
6012 raw_syments.
6013 (obj_ecoff_set_sym_index): Removed.
6014 (obj_ecoff_set_ext): New function.
6015 * config/obj-ecoff.h (obj_set_sym_index): Don't define.
6016 (obj_ecoff_set_sym_index): Don't declare.
6017 * config/obj-elf.c (obj_ecoff_set_ext, elf_get_extr,
6018 elf_set_index): New functions used for ECOFF_DEBUGGING.
6019 (elf_frob_file): Reworked ECOFF debug generation to use
6020 new functions in bfd/ecofflink.c.
6021
6022Sun Nov 21 23:54:52 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6023
6024 * config/tc-hppa.c (pa_def_subspaces): Only create the unwind
6025 subspace for ELF. In the SOM world, the linker is responsible
6026 for creating the unwind subspaces.
6027
e0209756
ILT
6028Fri Nov 19 16:25:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6029
6030 * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
6031 (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
6032 already set. Fixes .def var; .val external_var; .scl 3; .endef.
6033 (adjust_stab_section): Make static. Declare return type. Remove
6034 unused variables.
6035
6036 * config/tc-i386.h: Declare tc_coff_fix2rtype and
6037 tc_coff_sizemachdep.
6038
0669e047
KR
6039Fri Nov 19 04:33:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6040
6041 * write.c (write_object_file): Disable obj_check_file_symbols
6042 hook; only back end using it wasn't using it correctly.
6043 (write_object_file): Always call obj_frob_symbol and
6044 tc_frob_symbol; always retain symbol if it's used by a relocation,
6045 regardless of what these routines indicate.
6046 * config/obj-coff.c (coff_frob_symbol): Renamed from
6047 coff_check_file_symbols.
6048 * config/obj-coff.h (obj_check_file_symbols): Deleted.
6049 (coff_frob_symbol): Declare.
6050 (obj_frob_symbol): Call it.
6051
6052 * config/obj-coff.c (obj_crawl_symbol_chain, obj_emit_strings,
6053 obj_pre_write_hook): Don't define for BFD_ASSEMBLER.
6054 (c_section_header): Ditto. Delete superfluous return at end of
6055 function.
6056
6057 * config/obj-coff.h [TC_SPARC]: Include coff/sparc.h, and specify
6058 coff-sparc-lynx.
6059 (SA_GET_SYM_TAGNDX): Use BFD_HEADERS version for BFD_ASSEMBLER
6060 too.
6061 (c_section_header): Rewrite prototype so that it contains no
6062 preprocessing directives. Don't declare it at all if
6063 BFD_ASSEMBLER.
6064
6065 * configure.in (sparc*-*-lynxos): New target, using coff and
6066 BFD_ASSEMBLER.
6067
6068 * stabs.c: New file.
6069 * Makefile.in (REAL_SOURCES, OBJS): List it.
6070 * read.c (STAB_SECTION_NAME, STAB_STRING_SECTION_NAME,
6071 get_stab_string_offset, s_stab_generic, s_stab, s_xstab, s_desc):
6072 Moved to new file.
6073
6074 * config/tc-sparc.c (tc_gen_reloc): Handle coff files like elf
6075 files.
6076
29cc5816
ILT
6077Wed Nov 17 17:23:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6078
6079 * configure.in (mips-*-irix5*): New target. Use elf and mips-big.
6080 * config/obj-elf.c: If ECOFF_DEBUGGING, include ecoff.h.
6081 (obj_pseudo_table): If ECOFF_DEBUGGING, define ECOFF
6082 pseudo-ops.
6083 (obj_read_begin_hook): If ECOFF_DEBUGGING, call
6084 ecoff_read_begin_hook.
6085 (obj_symbol_new_hook): If ECOFF_DEBUGGING, call
6086 ecoff_symbol_new_hook.
6087 (obj_elf_init_stab_section): Cast alloca result.
6088 (elf_frob_file): If ECOFF_DEBUGGING, finish up ECOFF debugging
6089 information and write it out into .mdebug section.
6090 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): New macro.
6091 (TARGET_SYMBOL_FIELDS): Use ELF_TARGET_SYMBOL_FIELDS.
6092 (ECOFF_DEBUGGING): Define if TC_MIPS.
6093 (TARGET_SYMBOL_FIELDS): If ECOFF_DEBUGGING, override to add
6094 fields required by ECOFF.
6095 * config/tc-mips.c: Check ECOFF_DEBUGGING rather than
6096 OBJ_ECOFF in many cases.
6097 (mips_any_noreorder): New variable.
6098 (mips_cprestore_offset): Initialize to -1.
6099 (mips_frame_reg): New variable.
6100 (RELAX_ENCODE, RELAX_OLD, RELAX_NEW, RELAX_RELOC1,
6101 RELAX_RELOC2, RELAX_RELOC3, RELAX_WARN): New macros.
6102 (md_pseudo_table): Handle "gpword" and "cpadd".
6103 (md_begin): Initialize ok to false. If OBJ_ELF, set alignment
6104 of text, data and bss sections to 4. Set alignment of
6105 .reginfo section to 2. If ECOFF_DEBUGGING, create .mdebug
6106 section.
6107 (ALIGN_ERR, ALIGN_ERR2): Removed unused and useless alignment
6108 check.
6109 (append_insn, macro_build, macro_build_lui): Take place
6110 argument. Changed all callers.
6111 (append_insn): If appending a nop, don't emit one.
6112 (macro_build): Changed assertion for 'i', 'j', 'o' case.
6113 (gp_reference): Removed.
6114 (load_address): New function.
6115 (macro): If mips_noreorder is used, set mips_any_noreorder.
6116 Extensive changes to handle GP and PIC symbols differently.
6117 Build both possible code choices using a variant frag, and
6118 make a final decision at the end of assembly when all
6119 information is known. Added PIC support for all symbol
6120 references.
6121 (mips_ip): Don't permit anything but a number after $ for a
6122 coprocessor register. Don't use .lit4 or .lit8 sections when
6123 generating PIC code. If OBJ_ELF, set alignment of .lit4 or
6124 .lit8 section to 4.
6125 (md_apply_fix): Accept and ignore GOT16 and GPREL32 relocs.
6126 (s_change_sec): Set alignment of ELF .rodata or .sdata section
6127 to 4.
6128 (s_mipsset): If .set noreorder, set mips_any_noreorder.
6129 (s_cpload): Ignore .cpload if not generating PIC code. Warn
6130 if .cpload is not in noreorder section.
6131 (s_cprestore): Ignore .cprestore if not generating PIC code.
6132 (s_gpword, s_cpadd): New functions.
6133 (tc_get_register): Added frame argument; if true, set
6134 mips_frame_reg to return value. Changed all callers.
6135 (md_estimate_size_before_relax): Don't error out, but instead
6136 determine how much a frag should grow.
6137 (tc_gen_reloc): Return multiple relocs if appropriate, as
6138 determined by md_estimate_size_before_relax.
6139 (md_convert_frag): New function.
6140 (mips_elf_final_processing): Set ELF header flags based on
6141 mips_any_noreorder and mips_pic.
6142 * config/tc-mips.h (RELOC_EXPANSION_POSSIBLE): Define.
6143 (MAX_RELOC_EXPANSION): Define to be 3.
6144 (md_relax_frag): Define to be 0.
6145 (md_convert_frag): Don't define.
6146 (tc_get_register): Changed declaration.
6147
6148 * ecoff.h, ecoff.c: New files pulled out of config/obj-ecoff.c to
6149 support generating ECOFF debugging information for MIPS ELF
6150 targets. Compiled only if ECOFF_DEBUGGING is defined. Changed
6151 handling of external symbols: it now always generates exactly
6152 those external symbols that are defined in the global symbol list.
6153 * Makefile.in (REAL_SOURCES): Added ecoff.c.
6154 (REAL_HEADERS): Added ecoff.h.
6155 (OBJS): Added ecoff.o.
6156 (ecoff.o): New target.
6157 * config/obj-ecoff.c: Almost entirely moved into ecoff.c.
6158 Remaining code mostly just calls ecoff.c code.
6159 * config/obj-ecoff.h: Define ECOFF_DEBUGGING.
6160 (TARGET_SYMBOL_FIELDS): Make ecoff_symbol a pointer to a
6161 struct localsym.
6162 (obj_read_begin_hook, obj_symbol_new_hook): Define to call
6163 functions in ecoff.c.
6164 (ecoff_stab): Don't declare (now declared in ecoff.h).
6165 (obj_set_sym_index): Define.
6166 (obj_ecoff_set_sym_index): Declare.
6167
6168 * frags.h (frag_grow): Declare.
6169 * frags.c (frag_grow): Made non-static.
6170
6171 * write.c (is_dnrange): Do not define if md_relax_frag is defined.
6172 (relax_segment): If md_relax_frag is defined, use it to handle a
6173 frag of type rs_machine_dependent rather than looking through
6174 md_relax_table.
6175
6176 * read.c (read_a_source_file): If we find a bad pseudo-op,
6177 do a continue to go on to the next line rather than a break.
6178 Removed duplicate bad pseudo-op code which was never executed.
6179
6180 * read.c (s_lcomm): Do not require a comma after the name.
6181
6182 * subsegs.h (segment_info_type): Changed hadone field to bitfield.
6183 Added bss bitfield.
6184 * as.c (perform_an_assembly_pass): Set bss flag for bss_section.
6185 * read.c (s_lcomm): Set bss flag for .sbss section if used.
6186 * write.c (relax_and_size_seg): Don't set SEC_HAS_CONTENTS for a
6187 bss section. Set SEC_RELOC if there are any relocations, even for
6188 a zero size section.
6189
6190 * write.c (write_relocs): In RELOC_EXPANSION_POSSIBLE case, base
6191 data offset on reloc[0]->address rather than reloc[j]->address, so
6192 that multiple relocs can affect different memory locations.
6193
6194 * write.c (chain_frchains_together, relax_and_size_seg,
6195 adjust_reloc_syms, write_relocs): Make third argument PTR, not
6196 char *, to match definition of bfd_map_over_sections.
6197
6198 * app.c (do_scrub_next_char): Don't interpret a comment character
6199 as starting a CPP line directive unless it is a '#' and is the
6200 very first characters on the line (i.e., do not permit leading
6201 whitespace).
6202
6203 * messages.c (identify): Make file argument non-const, to match
6204 callers.
6205
c5e9ccd0
JL
6206Tue Nov 16 20:38:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6207
6208 * config/tc-hppa.c (pa_ip): Fix thinko in 21bit range check.
6209
6210Sat Nov 13 18:22:48 1993 Steve Chamberlain (sac@jonny.cygnus.com)
6211
6212 * config/tc-sh.c (md_apply_fix): Cope with IMM16 type too.
6213 * config/tc-z8k.c (build_bytes, md_apply_fix): Understand nDISP7
6214 relocs.
6215
4a1b59ef
JL
6216Fri Nov 12 16:51:47 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6217
3e330968 6218 * config/tc-hppa.[ch]: Fix assorted trivial indention problems.
4a1b59ef
JL
6219 * config/obj-som.c (obj_som_version): Add missing ';'.
6220 (som_frob_file): Delete whitespace at EOL.
6221
f3b6e1f2
KR
6222Fri Nov 12 15:26:21 1993 Ken Raeburn (raeburn@cygnus.com)
6223
6224 * Makefile.in (VERSION): Updated following 2.2 release.
6225
c5e9ccd0 6226Fri Nov 12 14:52:17 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
f2eed884
JL
6227
6228 * config/tc-hppa.c (hppa_fix_struct): Use a real type for the
6229 field selector, rather than an int. All uses of field selectors
6230 fixed.
6231 (tc_gen_reloc): For SOM PLABELs, always set addend to zero for now.
6232 (md_apply_fix_1): Do not call hppa_field_adjust for any PLABEL
6233 field.
6234
6235 Thu Nov 11 15:49:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
a721c80b
JL
6236
6237 * config/tc-hppa.c (pa_type_args): For .import statements,
69cb5925 6238 silently ignore attempt to change the symbol type for a function
f2eed884 6239 from ST_ENTRY to ST_CODE on .import.
a721c80b 6240
ca16b5e5
ILT
6241Wed Nov 10 16:19:13 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6242
6243 * write.h (fixS): Rename fx_callj field to fx_tcbit.
6244 * write.c, config/obj-coff.c, config/obj-coffbfd.c,
6245 config/tc-i960.c: Corresponding changes.
6246
48153d49
JL
6247Tue Nov 9 00:49:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6248
7420b02b
JL
6249 * Makefile.in (distclean): Delete config-stamp and config.h
6250
f41f3d72
JL
6251 * config/tc-hppa.c (evaluate_absolute): Avoid relying on
6252 ANSI-C features.
6253
48153d49
JL
6254 * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
6255 Accept new argument "is_export". All callers changed. When
6256 processing a .export directive for a function, do not allow
6257 the user to set the type to "CODE", instead warn and set the
6258 type to "ENTRY".
6259
9226253a
ILT
6260Mon Nov 8 12:05:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6261
6262 * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
6263 Lemon <mellon@pepper.ncd.com>).
6264 (mips_ip): Permit odd numbered floating point registers if -mips3.
48153d49 6265 (macro): Use BFD_RELOC_MIPS_LITERAL relocation for M_LI_SS.
9226253a 6266
53087850
DE
6267Mon Nov 8 07:45:01 1993 Doug Evans (dje@canuck.cygnus.com)
6268
6269 * configure.in: Remove h8300h, we have multilib now.
6270
5f8a3788
DHW
6271Mon Nov 8 06:09:18 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
6272
6273 * configure.in: Support generic netware as being ELF format.
6274 Recognise unixware if the user supplies it.
6275
163aac84
JL
6276Sun Nov 7 01:02:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6277
513f0471
JL
6278 * First cut at cleaning up PA instruction parsing.
6279 * config/tc-hppa.c (pa_get_absolute_expression): Accept pointer to
6280 insn structure as an argument, and a pointer to a string. All
6281 callers changed. Always read any field selector here. Call
6282 evaluate absolute to get a return value.
6283 (evaluate_absolute): Addept pointer to insn structure as its
6284 argument. All callers changed.
6285 (INSERT_FIELD_AND_CONTINUE): New macro for inserting a bitfield
6286 into an instruction and continuing the main pa_ip loop.
6287 (CHECK_FIELD): New macro for simple range checking of fields.
6288 (pa_ip): Delete unused variables. Use INSERT_FIELD_AND_CONTINUE
6289 and CHECK_FIELD. All immediate fields now pass through
6290 pa_get_absolute_expression which will also handle field selectors.
6291 Delete dead code. Simplify.
6292 (md_apply_fix_1): Use CHECK_FIELD to verify any fixes that are
6293 applied are in range. Use bfd_put_32 rather than inserting each
6294 byte of the fixed instrution into the buffer ourselves.
6295
3e411021 6296 * write.c (fixup_segment): Delete {SEG,GLOBAL}_DIFF_ALLOWED code,
69cb5925 6297 it was PA specific and is no longer needed (it's now handled
3e411021
JL
6298 within the PA backend).
6299 * config/tc-hppa.h (SEG_DIFF_ALLOWED): Delete definition.
6300 * config/tc-hppa.c (fix_new_hppa): If the subtract symbol for
6301 a fixup is $global$ change it to NULL as $global$ is really only
6302 needed long enough to determine the base type of relocation to use.
6303
240cbc57
JL
6304 * config/tc-hppa.c (create_new_subspace): Initialize subspace_defined.
6305
163aac84
JL
6306 * config/tc-hppa.c (pa-ip, case 'z'): Make field selectors work
6307 for 'z' operands (target of ble branch).
6308
1cc248d2
JL
6309Sat Nov 6 22:41:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6310
18c4f112
JL
6311 * config/tc-hppa.c: (update_subspace): Fix type and name of last
6312 parameter. All callers fixed.
6313 (md_begin, pa_chk_field_selector, pa_entry): Lint.
6314
1cc248d2
JL
6315 * config/tc-hppa.c (cons_fix_new_hppa): Reset field selector
6316 to default state after it's been used.
6317
88eb7ea6
JL
6318Fri Nov 5 12:08:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6319
6320 * config/obj-som.c (obj_som_init_stab_section): Change
6321 space/subspace sort keys for the stab sections so as to avoid
6322 bugs in the hp linker and pxdb.
6323
0f894895
JL
6324Thu Nov 4 17:00:05 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6325
6326 * write.c (chain_frchains_together): Update pointer to last
6327 frag for a segment in the seginfo structure.
6328
de074576
JW
6329Thu Nov 04 09:09:35 1993 Jeffrey Wheat (cassidy@cygnus.com)
6330
6331 * Makefile.in: Changed RUNTESTFLAGS to RUNTEST_FLAGS
6332
6333Wed Nov 3 12:16:27 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6334
6335 * write.c (fixup_segment): Handle conversion of subtraction to
6336 pc-relative addressing even if pc-relative flag is already set.
6337
6338 * config/tc-m68k.c (m68k_ip_op): Use strchr, not index. Don't
6339 declare either.
6340
6341 * doc/Makefile.in (distclean): Delete intermediate files from dvi
6342 build, but not the dvi or info files.
6343 * Makefile.in (clean-here): New target; cleans up current
6344 directory only.
6345 (distclean): Use it instead of clean.
6346
6347 * read.c (s_xstab): Don't use alloca.
6348
6349 * messages.c (identify): New routine; print message identifying
6350 following messages as coming from assembler.
6351 (as_show_where, as_bad_internal, as_bad_where): Call it.
6352 (as_fatal): Don't need to identify program any more.
6353
efe8ef02
ILT
6354Tue Nov 2 18:04:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6355
fd4b7c25
KR
6356 * config/tc-sparc.c (sparc_ip): Add default case to reloc switch.
6357
efe8ef02
ILT
6358 * read.c (s_lcomm): Put small objects in .sbss for MIPS ELF as
6359 well as MIPS ECOFF.
6360 (get_stab_string_offset): Remove unused variable aligned.
6361
aa14e863
JL
6362Tue Nov 2 15:07:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6363
d6e524f3
JL
6364 * tc-hppa.c: Add %dp and %rp as synonyms for %r27 and %r2 in the
6365 predefined register table.
6366 (pa_parse_number): Handle %rp in common register shortcut code.
6367 Consistently set return value to -1 for an error. Clean up error
6368 messages and only print them when "print_errors" is true. Handle
6369 empty string case like the HP assembler -- assume a value of
6370 zero.
69cb5925 6371
20cee6d8
JL
6372 * config/ho-hpux.h: Do not include ho-sysv.h. Instead include
6373 standard hpux include files to pick up various function decls.
6374
aa14e863
JL
6375 * config/ho-hppaosf.h: Delete _IO* macros. They are defined in
6376 stdio.h. Delete bogus declaration of free. Get path to
6377 alloca-conf.h right.
6378
25270a1c
KR
6379Tue Nov 2 13:57:30 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6380
6381 * expr.c (operand): Fix checks for characters following "0b" or
6382 "0f".
6383
f197d7eb
JL
6384Mon Nov 1 21:37:04 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6385
ff852e11
JL
6386 * config/obj-som.h (obj_attach_unwind_info): Define as a hook
6387 so GAS can attach unwind descriptor information to a BFD symbol.
6388 * config/tc-hppa.c (fix_new_hppa): If necessary attach unwind
6389 descriptor information to the BFD symbol.
6390 (md_apply_fix): R_HPPA_ENTRY and R_HPPA_EXIT can never be "applied",
6391 they are simply markers. Make R_HPPA_UNWIND_* handling OBJ_ELF
6392 dependent.
6393 (pa_build_unwind_subspace): Whole function is OBJ_ELF dependent.
6394 (pa_entry): Build a R_HPPA_ENTRY relocation when configured for SOM.
6395 (pa_exit): Likewise, but built a R_HPPA_EXIT relocation. Do not
6396 build "end-of-function" symbols for SOM, they are not needed.
6397
a50e9b55
JL
6398 * config/tc-hppa.c (process_exit): Create temporary symbols with
6399 correct prefixes so they can be eliminated later.
6400
49fc68a1 6401 * config/tc-hppa.c (call_info struct): Delete unused "frame" field.
69cb5925 6402 (pa_callinfo): Insert framesize into the unwind information as
49fc68a1
JL
6403 soon as it's available.
6404 (pa_build_unwind_subspace): Do not insert framesize into the unwind
6405 information here.
6406
c43d56f7
JL
6407 * Add support for marker type relocations. These mark areas
6408 of interest to the linker. ENTRY/EXIT relocations for SOM are
6409 an example of marker relocations.
6410 * write.c (write_relocs): Instead of assuming size of a relocation
6411 is 4 bytes, pick up the size from relocation itself.
69cb5925 6412 (fixup_segment): Do not complain that a value is too small for
c43d56f7
JL
6413 marker relocations.
6414
009dc5e1
JL
6415 * struc-symbol.h: Add new "sy_used" field to the symbol structure.
6416 * expr.c (operand): Set sy_used for any symbol used as an operand.
6417 (expr): Likewise for any symbol used in an expression.
6418 * config/tc-hppa.h (tc_frob_symbol): Define. Punt imported
6419 symbols which are never used and absolute symbols which local scope.
6420
f197d7eb
JL
6421 * config/obj-som.h (obj_frob_file): Define.
6422 * config/obj-som.c (obj_som_init_stab_section): Set alignment
6423 of stab sections. Make space for the special stab entry.
69cb5925 6424 (adjust_stab_sections): Adjust the special entry in the
f197d7eb
JL
6425 stabs section.
6426 (som_frob_file): New function. Simply calls adjust_stab_sections
6427 for each section.
6428
bca9cf0b
ILT
6429Mon Nov 1 17:54:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6430
6431 * config/tc-mips.c (PIC_CALL_REG, SP, FP): Define.
6432 (mips_pic, mips_cprestore_offset): New static variables.
6433 (md_pseudo_table): Handle .abicalls, .cpload, and .cprestore.
6434 Ignore .bgnb and .endb.
6435 (gp_reference): _gp_disp is never addressed off GP.
6436 (macro_build): Ignore macros while searching for insn. For cases
6437 i, j, and o, accept the reloc type as an argument rather than
6438 assuming BFD_RELOC_LO16. Don't try to convert BFD_RELOC_LO16 to
6439 BFD_RELOC_MIPS_GPREL. Added new case a.
6440 (set_at, load_register, macro): Changed calls to macro_build to
6441 pass new argument for i, j and o cases.
6442 (macro): Handle M_JAL_1, M_JAL_2 and M_JAL_A. These require
6443 special handling when generating SVR4 PIC code.
6444 (mips_ip, tc_get_register, s_frame): Use macros FP, SP, GP and AT
6445 rather than hard coded constants.
6446 (md_apply_fix): Handle BFD_RELOC_MIPS_LITERAL and
6447 BFD_RELOC_MIPS_CALL16.
6448 (s_option): Set mips_pic based on .option picN.
6449 (s_abicalls): New function; set mips_pic to 2.
6450 (s_cpload): New function; handle .cpload.
6451 (s_cprestore): New function; handle .cprestore.
6452
6453 * config/obj-ecoff.c (obj_pseudo_table): Add entries for .bgnb,
6454 .endb and .verstamp, setting them to s_ignore.
6455
d191a03c
JL
6456Sun Oct 31 00:36:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6457
47f45d66
JL
6458 * config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined
6459 field. Define SUBSPACE_DEFINED accessor macro.
6460 (pa_subspace): Allow user to override subspace attributes for
6461 built-in subspaces. Set ssd_defined at the end of fcn -- that
6462 way the attributes can only be changed once. Pass newly allocated
6463 name to is_defined_subspace, not a pointer to the input line.
6464 Fix typo in space/subspace rework.
6465 (is_defined_subspace): Delete unused 2nd arg. All callers changed.
6466
6467 * config/tc-hppa.c (pa_import): If currently in the text segment
6468 and a symbol is imported without type information, set BSF_FUNCTION
6469 for the symbol.
20b39b6f
JL
6470 * write.c (relax_and_size_seg): Correct test to determine if
6471 the section's size was rounded up.
6472
e75acd68
JL
6473 * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
6474 can properly set all the SOM symbol types.
69cb5925 6475 * config/tc-hppa.c (pa_symbol_type): New enum to represent the
e75acd68
JL
6476 symbol types which can be set from an IMPORT/EXPORT statement.
6477 (pa_export_args): Set the pa_symbol_type type based on arguments.
6478 If defined, call obj_set_symbol_type to pass this information on
6479 to the BFD backend.
6480
69cb5925 6481 * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
d191a03c
JL
6482 stab section we make.
6483 (s_stab_generic): Likewise.
6484
12696e9c
JL
6485Sat Oct 30 14:26:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6486
65a7f8a6
JL
6487 * Allow backends to override the value of the fake label.
6488 * write.h (LOCAL_LABEL): Delete DOT_LABEL_PREFIX code. Instead
6489 assume backends will define LOCAL_LABEL if anything other than
6490 'L' is used to denote a local label.
6491 (FAKE_LABEL_NAME): New macro. Defines the default name used for
6492 the "fake" label.
6493 * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
6494 and instead simply use the string defined by FAKE_LABEL_NAME.
6495 (operand): Likewise.
6496 * read.c (s_stab_generic): Likewise.
6497 * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
6498 known to be a local label.
6499 * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
6500 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
6501 * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete.
6502 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
6503 * config/te-sco386.h (DOT_LABEL_PREFIX): Delete.
6504 (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
6505
6bc14195
JL
6506 Rework space/subspace handling in PA code to fully support
6507 SOM spaces/subspaces.
6508 * config/tc-hppa.c (USE_ALIASES): New object-format dependent define
6509 to control the use of space/subspace name aliases.
6510 (update_subspace): Accept space chain entry for containing space
6511 as a new parameter. All callers changed.
6512 (pa_get_label): Use current_space rather than pa_segment_to_space.
6513 (pa_define_label): Likewise.
6514 (pa_undefine_label): Likewise.
6515 (md_begin): Change into the (possibly modified) text_section.
6516 (pa_parse_space_stmt): Create a new segment/space if create_flag
6517 is true, and the space name is not one of the two predefined spaces.
69cb5925
KR
6518 (pa_subspace): Use current_space rather than a lookup via
6519 pa_segment_to_space. Reset BFD section flags as required by
6bc14195
JL
6520 the .subspace directive. Likewise for the section alignment.
6521 Pass the current space to update_subspace and create_new_subspace.
6522 (pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
6523 is true. When not using aliases, create a BFD section for each
6524 subspace encountered. When not using aliases replace the default
6525 text, data, and bss segments with new ones.
69cb5925 6526 (create_new_subspace): When not using aliases each subspace has a
6bc14195 6527 section/segment and subsegments are not needed, so set the subsegment
69cb5925 6528 to zero.
6bc14195 6529
548ea75b 6530 * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
69cb5925 6531 obj_set_section_attributes to pass space attributes to the
548ea75b
JL
6532 BFD backend.
6533 (create_new_space): Likewise.
69cb5925 6534 (create_new_subspace): Likewise for subspace attributes using
548ea75b
JL
6535 obj_set_subsection_attributes.
6536 (update_subspace): Likewise for subspace attributes using
6537 obj_set_subsection_attributes.
6538
0f3b419c
JL
6539 * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
6540 for $TEXT$ and $PRIVATE$ from the default space structure.
6541
9a182533
JL
6542 * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
6543 as appropriate for the given type.
6544
62f0841b
JL
6545 * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
6546 SOM relocations.
6547
d56f45f5
JL
6548 * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
6549 redefinition.
6550
3c87583d
JL
6551 * config/obj-som.[ch]: New files for SOM support. Note SOM
6552 support is not yet complete in GAS or BFD.
6553
69cb5925 6554 * config/ho-hppabsd.h: Delete IO* macros, they are defined in
12696e9c
JL
6555 stdio.h. Delete declaration of free. Include stdlib.h, unistd.h,
6556 and string.h.
6557
37ed805e
JL
6558Fri Oct 29 13:26:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6559
12696e9c
JL
6560 * Allow backends to override the section names used for embedded
6561 stabs support. Needed for SOM.
6562 * read.c (STAB_SECTION_NAME): Default the name of the stab section
69cb5925 6563 to ".stab".
12696e9c
JL
6564 (STAB_STRING_SECTION_NAME): Likewise for the stab strings section.
6565 (get_stab_string_offset): Is now passed the full name for the
6566 stab string section rather than a name prefix. All references
6567 changed.
6568 (s_stab_generic): New argument for the stab string section name.
6569 all references changed.
6570 (s_xstab): Append "str" to the stab section name to get the
6571 stab string section name.
6572 * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
6573 to stab section name to get the stab string section name. Pass
6574 the full name of the stab string section to get_stab_string_offset.
6575 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
69cb5925 6576
53c0b9e7
JL
6577 * config/tc-hppa.c (md_begin): Disable "-R" option to fold
6578 textand data segments. Warn user "-R" is unsupported on the
6579 PA.
37ed805e 6580
48ac0c90
JL
6581Thu Oct 28 12:36:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6582
d33ace2e
JL
6583 * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
6584 .align and .ALIGN directives.
6585
48ac0c90
JL
6586 * config/tc-hppa.c (pa_space): Do not report an error for a .space
6587 directive which does not define a "well-known" space and does
6588 not include a space number as an argument.
69cb5925 6589
48ac0c90
JL
6590 * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
6591 "defined", "loadable", "code_only" and "space_index" fields.
6592 (pa_def_spaces): Correct initialization of the "spnum", "defined",
6593 and "private" fields.
6594
6595 * write.h (struct fix): Add new tc_fix_data field for the various
6596 backends to attach machine dependent fixup information to.
6597 * write.c (fix_new_internal): Initialize new tc_fix_data field.
6598 * config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
6599 fx_next fields.
6600 (hppa_find_hppa_fix): Delete unnecessary function. Fix all
69cb5925 6601 callers to get HPPA fixup information from the tc_fix_data field
48ac0c90
JL
6602 in the GAS fixup.
6603 (hppa_fix_root): Delete unnecessary variable.
6604 (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.
6605
6606 * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
6607 function. Fix all callers.
6608 (subspace_dictionary_chain): Delete unused ssd_start_sym field.
6609
6610 * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
6611 if a particular fixup is adjustable.
6612 * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
6613 perform the real work.
6614
6615 * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
6616 of OBJ_XXX conditionals.
6617 (MAX_RELOC_EXPANSION): Likewise.
6618
6619 * config/tc-hppa.c (log2): Renamed from is_power_of_2. Fix all
6620 callers. Now returns log2 (N) for positive N which are an exact
6621 power of two or -1 for an error.
6622
69cb5925 6623 * config/tc-hppa.c (pa_callinfo): Range check values provided for
48ac0c90
JL
6624 ENTRY_GR, ENTRY_FR and ENTRY_SR. Properly adjust vaues before
6625 inserting them into the unwind table.
6626
6627 * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
6628 (hppa_gen_reloc_type): New object format dependent macro.
6629 (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
6630 conditional. The code can (and will) be shared between SOM & ELF
6631 formats in the near future.
6632 (cons_fix_new_hppa, md_apply_fix_1): Likewise.
6633 (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
6634 (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
6635 specific call.
6636
6637 * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
6638 to bfd_und_section.
6639
6640 * config/obj-elf.h (obj_elf_version): Add extern prototype.
6641
6642 * configure.in (hppa-*-bsd*): New configuration.
6643 BFD is always used for GAS generating SOM objects.
6644
6645 * write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
6646 adjustment is rejected by the target machine.
6647
6648 * config/tc-hppa.c (pa_big_cons): Delete function and its
6649 declaration. All callers changed to use pa_cons.
6650
6651 * write.c (fixup_segment): Fix indention and open/close brace
6652 problem.
6653
6654 From Pete Hoogenboom:
6655 * config/tc-hppa.c (md_atof): Return a NULL on success rather than
6656 an empty string.
6657
3515a504
JL
6658 * config/tc-hppa.c (pa_parse_space_stmt): Advance
6659 input_line_poitner when an invalid argument is encountered.
6660
6121fb06
ILT
6661Thu Oct 28 13:09:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6662
6663 * config/tc-a29k.c (md_begin): When opcodes are mashed together in
6664 the table, require that the one without bit 0x1000000 set come
6665 first. Require further that it be case 'b' or 'P'. The a29k
6666 opcode table already meets these constraints.
6667 (machine_ip): When handling case 'i' or 'A', make sure that the
6668 appropriate opcode really exists by looking at the next entry in
6669 the opcode table.
6670
56c96faa
ILT
6671Wed Oct 27 11:48:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6672
729f4bba
ILT
6673 * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
6674 fixups. Add 6 for long 7.3 case, 2 for short 7.2 case.
6675
007ff46b
ILT
6676 * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
6677 after a .ent directive.
6678
d1ee509b
ILT
6679 * config/tc-mips.c (mips_ip): Handle '>' case (shift amount
6680 between 32 and 63 for double shift instruction). Do & 0x1f rather
6681 than % 32.
6682 (printInsn): Handle '>'.
56c96faa 6683
fa20b8bf
ILT
6684Tue Oct 26 16:58:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6685
5694ad93
ILT
6686 * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
6687 number in the right place. Untested. Probably does not work for
6688 cross assembly. From cagney@cs.adelaide.edu.au (Andrew Cagney).
6689
f3751617
ILT
6690 * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
6691 an illegal offset of 0 or -1.
6692
fa20b8bf
ILT
6693 * config/obj-elf.c (obj_elf_init_stab_section): Align .stab
6694 section to a longword boundary.
6695
4da7942d
KR
6696Tue Oct 26 10:24:31 1993 Ken Raeburn (raeburn@cygnus.com)
6697
6698 * Makefile.in (CHECKFLAGS): Pass down RUNTESTFLAGS.
6699
6700 From Jeff Law:
6701 * config/tc-hppa.c (tc_gen_reloc): ELF32_HPPA_R_ADDEND ->
6702 HPPA_R_ADDEND.
6703
fd4b7c25
KR
6704Mon Oct 25 14:06:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6705
6706 * config/tc-sparc.c (sparc_ip): Fix up membar argument handling.
6707
24934035
SC
6708Mon Oct 25 11:17:58 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
6709
8e5afd4f
SC
6710 * config/tc-sh.c (build_Mbytes): Write the relocs to the correct
6711 address. (md_assemble): Make error handling a bit more graceful.
6712 (md_apply_fix): Don't warn on non aligned displacement.
fd4b7c25 6713
24934035
SC
6714 * config/tc-z8k.c (get_specific, built_bytes): Understand all the
6715 aspects of lda.
6716
84678d16
KR
6717Mon Oct 25 10:20:31 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6718
6719 * doc/Makefile.in (install-info): Use "$<*" so VPATH will find
6720 as.info* even if they're in $(srcdir) (e.g., for FSF
6721 distributions).
6722
6723 * write.c (write_relocs): For relocs that are pc_relative and
6724 pcrel_offset and not partial_inplace, adjust reloc->addend to
6725 compensate for a bfd_perform_relocation bug.
6726
6727 * config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
6728 * config/tc-sparc.c: Ditto.
6729 (tc_gen_reloc): Include fx_offset for pcrel fixups.
6730
52aa70b5
JW
6731Sun Oct 24 16:49:00 1993 Jim Wilson (wilson@x1.cygnus.com)
6732
6733 * tc-mips.c (md_pseudo_table): Add dword pseudo op.
6734
ab0751c8
DZ
6735Fri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6736
6737 * messages.c: replaced all variables called Format with 'format',
6738 for consistency throughout
6739
6740 * configure.in: handle mips*- instead of mips, mips*el for little
6741 endian configurations
6742
8efed14f
ILT
6743Fri Oct 22 14:45:49 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6744
6745 * input-scrub.c (physical_input_file, logical_input_file,
6746 physical_input_line, logical_input_line): Made static.
6747 (as_where): Return current file name and line number, don't print
6748 them out.
6749 * messages.c (as_show_where): New static function. Other
6750 functions use it instead of as_where.
6751 (as_bad_internal): New static function.
6752 (as_bad): Use as_bad_internal.
6753 (as_bad_where): New function, like as_bad but taking a file name
6754 and line number.
6755 * as.h (as_bad_where): Declare.
6756 (as_where): Change prototype for new arguments.
6757 * write.h (fixS): Added fields fx_file and fx_line.
6758 * write.c (fix_new_internal): Save file and line number in fix.
6759 (fixup_segment): Use as_bad_where, not as_bad.
6760 * input-file.c (f_in, file_name): Made static.
6761 * cond.c (struct file_line): Just use file and line fields.
6762 (s_else): Use as_where and as_bad_where, not get_file_line and
6763 set_file_line.
6764 (get_file_line, set_file_line): Removed.
6765 * listing.c (listing_newline): Use as_where.
6766 * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
6767 * config/obj-ecoff.c (add_file): Use as_where.
6768 * config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
6769 * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
6770 * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
6771
efa0c22e
KR
6772Thu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com)
6773
6774 * config/tc-m68k.h: Don't define REGISTER_PREFIX or
6775 OPTIONAL_REGISTER_PREFIX if either is already defined.
6776
6777 * config/tc-m68k.c (m68k_ip): Delete some code in "#if 0".
6778
6779 * configure.in: Set bfd_gas for all sparc targets. Added facility
6780 for keeping or rejecting configurations still under development;
6781 default is to assume production environment, and reject configs
6782 still being worked on. Mark Elf configurations (except sparc and
6783 i386) as developmental. Deleted cases matching some generic names
6784 in favor of more specific names. (E.g., when we get Alpha
6785 support, we'll still only support VMS for Vax.)
6786
6787 * config/tc-sparc.h (md_end): New macro.
6788 * config/tc-sparc.c (md_end): Function deleted.
6789 (BFD_RELOC_*): Delete macros that used to help keep the non-bfd
6790 version compiling. All sparc targets will use bfd now.
6791 * tc.h (md_end): Don't declare if it's defined as a macro.
6792
6793 Changes from Jeff Law and Peter Hoogenboom:
6794
6795 * read.c (next_char_of_string): Limit octal character constants to
6796 three digits.
6797
6798 * config/tc-hppa.h: Major cleanup. Use GNU-style comments. Warn
6799 against placing additional object-file dependent code here. Warn
6800 against contaminating all of GAS with the internals of tc-hppa.c
6801 through inclusion of tc-hppa.h. Delete all forward declarations
6802 for functions only used within tc-hppa.c, likewise for structures,
6803 variables, and #defines. Try to group OBJ_ELF and OBJ_SOM
6804 conditional code in a few small places.
6805
6806 * config/tc-hppa.c: Major cleanup. Use GNU-style comments. Group
6807 structures, global variables, forward declarations together.
6808 Reduce (or in some cases eliminate) OBJ_ELF and OBJ_SOM
6809 conditional code -- try to group conditional code together
6810 into a few places. Make all functions and variables which
6811 are only used within tc-hppa.c static. PARAMize all functions.
6812 Add comments to functions. Delete unused functions, variables,
6813 #defines, etc. Delete unused members within structures. Delete
6814 ldil;ble hacks -- it is believed they were installed to work
6815 around old gas bugs. Avoid using mixed case for local
6816 functions, variables, and structures. Fix formatting problems
6817 not found by GNU-indent. Add FIXME notices for things which
6818 should be worked on the near future. Delete lots of old
69cb5925 6819 useless (1.36 PA-SOM) code.
efa0c22e
KR
6820
6821 * config/tc-hppa.c: (fix_new_hppa): Initialize the fx_r_type
6822 field of the fixS structure. Needed to build unwind
6823 descriptors correctly.
6824
6825 * write.c: (fixup_segment): Allow expressions such as
6826 sym1-sym2+const as long as sym2 is $global$.
6827
6828 * write.c (adjust_reloc_syms): Provide a hook so that a target
6829 cpu configuration can reject certain relocation reductions.
6830 * tc-hppa.h (tc_fix_adjustable): New macro. Only accept relocations
6831 which do not involve function symbols.
6832
6833 * config/tc-hppa.h: Reindent with GNU-indent. Delete references
6834 to OBJ_OSFROSE. Fix typos (OBJ_SOME -> OBJ_SOM). Delete unused
6835 STAB_FIXUP macro.
6836 * config/tc-hppa.c: Likewise.
6837
6838 * config/tc-hppa.c (md_apply_fix_1): Use elf_symbol_type, instead
6839 of elf32_symbol_type.
6840 (pa_export_args): Likewise.
6841 (elf_hppa_final_processing): Likewise.
6842 (pa_desc): Do not call obj_elf_desc. (Is pa_desc even needed
6843 anymore?)
6844 (hppa_tc_make_sections): Do not declare elf_get_symtab_map any
6845 ore.
6846
6847 * config/tc-hppa.c: (md_section_align): Align all sections to
6848 a multiple of the section alignment rather than always a
6849 multiple of 8.
6850
6851 * config/tc-hppa.c (hppa_tc_symbol): If the argument relocation
6852 bits are zero (eg they specify no relocations), then do not even
6853 bother adding their entries to thesymextn section.
6854
7766838e
ILT
6855Thu Oct 21 15:44:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6856
6857 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
6858 option, which is used by the SunOS make default .s.o rule.
6859
fd4b7c25
KR
6860Wed Oct 20 12:26:33 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6861
6862 * config/tc-sparc.c (sparc_ip, label "immediate"): Convert relocs
6863 operating on upper 32 bits of immediate constants to lower-half
6864 relocs with adjusted constants.
6865
dff60b7d
ILT
6866Tue Oct 19 18:13:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6867
6868 * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable
6869 m68k_aout_machtype.
6870 * config/tc-m68k.c (omagic): Remove obsolete and unused variable.
6871 (m68k_aout_machtype): New variable, if OBJ_AOUT.
6872 (md_assemble): Initialize m68k_aout_machtype based on
6873 current_architecture, if OBJ_AOUT.
6874 (md_parse_option): Remove obsolete reference to omagic.
6875
c17cd709
ILT
6876Thu Oct 14 16:51:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6877
dd3f1f76
ILT
6878 * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
6879 (s_option): Ignore .option O* and .option pic*.
6880 (s_ent): Skip whitespace between symbol and optional digit.
dff60b7d 6881 (my_getSmallExpression): Handle ($xx) correctly: assume 0($xx).
dd3f1f76 6882
54508138
ILT
6883 * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape
6884 characters in state 6.
6885 * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are
6886 hexidecimal digits.
6887
c17cd709
ILT
6888 * config/tc-i386.c (md_apply_fix_1): Make cross segment calls work
6889 for ELF by hacking around bizarre bfd_perform_relocation behaviour
6890 that I don't dare change.
6891
ad660eb1
ILT
6892Thu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org)
6893
6894 * config/tc-i386.c: (md_begin): Do not zero static arrays. Don't
6895 call strchr for each character to see if it is a special char,
6896 instead add a second loop over special_chars. Set alignment
6897 of text, data and bss sections to 4.
6898 (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be
6899 used again.
6900 (reloc): Don't return 8 and 16 bit non-PC relative relocations on
6901 ELF, since the ELF object format does not have these type of
6902 relocations. Change the abort into as as_bad and return
6903 BFD_RELOC_NONE to silence compiler warnings.
6904 (md_assemble): Keep track of the instruction size. Allow white
6905 space between the $ and the constant for compatibility with older
6906 gases and other assemblers.
6907 (i386_operand): Skip spaces between $ and expression.
6908 (tc_gen_reloc): Don't allow anything but 32 bit relocations on
6909 ELF. Convert abort into an as_bad and assert into as_fatal.
6910
132239bf
KR
6911Wed Oct 13 16:50:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6912
6913 * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: If
6914 sub_symbolP is in the current segment, convert to a PC-relative
6915 fixup and discard the symbol.
6916
b7cbb59f
ILT
6917Wed Oct 13 14:00:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6918
463b1851
ILT
6919 * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbol
6920 for st_StaticProc just like st_Proc.
6921
b7cbb59f
ILT
6922 * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUT
6923 so that OBJ_BOUT doesn't forget to adjust all the fragments in the
6924 .bss section.
6925
f2a663d3
ILT
6926Tue Oct 12 17:26:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6927
6928 * config/tc-mips.c: If OBJ_ELF, include elf/mips.h.
6929 (mips_regmask_frag): New static variable, if OBJ_ELF.
6930 (md_begin): If OBJ_ELF, create .reginfo section and set
6931 mips_regmask_frag to a frag.
6932 (mips_elf_final_processing): New function, if OBJ_ELF. Set
6933 mips_regmask_frag to register mask information.
6934 * config/tc-mips.h (elf_tc_final_processing): New macro, defined
6935 if OBJ_ELF.
6936
99024047
KR
6937Tue Oct 12 03:33:26 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6938
2145a183
KR
6939 * messages.c (as_fatal): Use myname when printing messages.
6940
99024047
KR
6941 * config/tc-i960.c (md_begin): Use null pointer, not empty string,
6942 as initial "return" value in case hashing isn't needed.
6943
6944 * config/tc-a29k.c (md_atof): Return null, not empty string, on
6945 success.
6946 * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof),
6947 config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof),
6948 config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof),
6949 config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto.
6950
6951Mon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2dd45209
SC
6952
6953 fix for pr 3571
6954 * config/tc-h8300.c (get_specific): Special action if 8 bit
6955 address seen. (check_operand): Don't complain if truncating top
6956 bits of an 8 bit address. (build_bytes): Allow an immediate and
6957 an absolute in the same insn.
6958
f37449aa
ILT
6959Mon Oct 11 17:18:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6960
6961 * write.c (write_contents): Don't crash if seginfo is NULL.
6962
6963 * config/obj-ecoff.c (ecoff_frob_file): Write out register masks
6964 by modifying .reginfo section, not by directly modifying BFD
6965 backend data.
6966
fec552ce
DZ
6967Mon Oct 11 14:11:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6968
6969 * config/ho-sunos.h: remove extern time declaration
6970
8d3be803
KR
6971Mon Oct 11 16:14:43 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6972
6973 * messages.c (as_fatal): Do mention that it's the assembler that
6974 got the fatal error.
6975
88225433
ILT
6976Fri Oct 8 14:09:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6977
1aa6938e
ILT
6978 * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to
6979 hold register masks.
6980 (md_begin): Initialize them to zero.
6981 (append_insn): Update mips_gprmask and mips_cprmask. Also add
6982 register variables pinfo and prev_pinfo.
6983 * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare.
6984 * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask
6985 and cprmask from mips_gprmask and mips_cprmask.
6986
88225433
ILT
6987 * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF.
6988 * config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF.
6989 (various): Change all references to GP references to apply if
6990 GPOPT, not if OBJ_ECOFF.
6991 (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata
6992 instead of .rdata. If OBJ_ELF, set section flags for .rodata and
6993 .sdata sections.
6994 (s_frame, s_loc, s_mask): Comment out entire functions, rather
6995 than just body. They're not used anyhow.
6996 * configure.in: Set cpu_type to mips for mips*. Accept
6997 mips-*-elfl* and mips-*-elf*.
6998
17a0da33
ILT
6999Thu Oct 7 18:36:29 1993 Michael Meissner (meissner@osf.org)
7000
7001 * config/obj-elf.c (obj_elf_common): Allow the alignment field to
7002 not be specified.
7003
80aab579
ILT
7004Wed Oct 6 13:01:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7005
abdad6bc
ILT
7006 * config/tc-mips.c (cons_fix_new_mips): New function. Turn
7007 BFD_RELOC_64 into BFD_RELOC_32.
7008 * config/tc-mips.h (TC_CONS_FIX_NEW): Define.
7009 (cons_fix_new_mips): Declare.
7010
80aab579
ILT
7011 Changes to let cons handle bignums like general expressions.
7012 * expr.h (expressionS): New field X_unsigned.
7013 * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for
7014 unary minus case.
7015 (expr) Fix typo resultP to right if missing operand. Set
7016 X_unsigned to 1 when building new expression.
7017 * read.c (potable): Make "octa" and "quad" call cons, not
7018 big_cons.
7019 (cons): Handle bignums. If given an O_constant (small integer) to
7020 fill a big space, turn it into a bignum.
7021 (parse_bitfield_cons): Set X_unsigned field.
7022 (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons):
7023 Removed.
7024 * read.h (big_cons): Remove prototype.
7025 * symbols.c (resolve_symbol_value): Don't give a warning if a
7026 symbol in expr_section can not be resolved.
7027 (S_SET_VALUE): Clear X_unsigned.
7028 * write.c (write_object_file): If resolve_symbol_value failed on a
7029 symbol we are writing out, give a warning.
7030 * config/tc-h8500.c (parse_reglist): Set X_unsigned.
7031 * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to
7032 call pa_cons, not pa_big_cons.
7033 (pa_big_cons): Remove.
7034 * config/tc-hppa.h (pa_big_cons): Remove declaration.
7035 * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons,
7036 not big_cons.
7037
7038Tue Oct 5 10:53:36 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7039
7040 * doc/as.texinfo (Copying): new node, to handle the recent changes
7041 in the texinfo/gpl.texinfo file
7042
4f5666c5
ILT
7043Mon Oct 4 17:10:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7044
7045 * read.c (big_cons): Handle "0" correctly.
7046
7047 * config/tc-mips.c (md_begin): Set target_big_endian correctly.
7048
8208ab5a
KR
7049Mon Oct 4 15:37:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7050
7051 * config/tc-m68k.c (m68k_ip): Mode 7.3 operand using PC should
7052 have pc-relative fixup.
7053 (md_parse_option): Move "-k" case down near "-pic" case.
7054
31909d40
KR
7055 * configure.in: Alphabetize list of cpu type alternatives. Enable
7056 OS values of "linux*elf*" and "linux*coff*" to select those
7057 formats, with linux emulation. Don't bother checking for upper-
7058 or mixed-case versions of "ose".
7059
8208ab5a
KR
7060Thu Sep 30 11:05:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
7061
7062 * config/z8k.c (md_pseudo_table): add "unseg".
7063
6cc87fbb
RP
7064Wed Sep 29 16:15:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7065
7066 * config/m88k-opcode.h (m88k_opcodes): correct a few mistakes
7067 found while extending the dissassembler.
7068
8f3956b3
SS
7069Tue Sep 28 12:02:04 1993 Stan Shebs (shebs@rtl.cygnus.com)
7070
7071 * configure.in: Split i386 LynxOS out from other coff targets,
7072 add a specific Lynx emulation.
7073 Add m68k LynxOS target.
7074 * config/tc-i386.c: Define specific Lynx target format.
7075 * config/tc-m68k.c: Define specific Lynx target format.
7076 * config/te-lynx.h: New file.
7077
7078 * config/obj-coffbfd.h: Don't set TARGET_FORMAT to be
7079 "coff-{i386,m68k}" if TARGET_FORMAT already defined.
7080 (INIT_STAB_SECTION): Define.
7081 * config/obj-coffbfd.c: Include <time.h>.
7082 (write_object_file): Look for .stab sections and call
7083 adjust_stab_section.
7084 (adjust_stab_section): New function, fills in the first symbol
7085 of a stab section with number of symbols and string table size.
7086 (obj_coff_init_stab_section): New function, creates the initial
7087 symbol for a stab section.
7088
43029a8f
KR
7089Mon Sep 27 15:21:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7090
7091 * config/atof-vax.c (md_atof): Return null on success instead of
7092 empty string.
7093 * config/atof-tahoe.c (md_atof): Ditto.
7094 * read.c (float_cons): Expect a null pointer for success, not an
7095 empty string.
7096
7097 * hash.c (hash_insert, hash_jam, hash_grow): Return null pointer
7098 on success, instead of empty string. All callers changed.
7099
7100 * config/tc-vax.c: Use PARAMS in declarations.
7101 (vip_op): Use NULL instead of empty string for success in error
7102 and warning fields.
7103
b7318ac4
KR
7104Sun Sep 26 23:45:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7105
b9790da8
KR
7106 * expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of two symbols
7107 in different defined segments.
7108
b7318ac4 7109 * write.c (relax_segment): Localize "aim" variable. If
132239bf 7110 DIFF_EXPR_OK, don't impose checks on symbol segment types.
b7318ac4
KR
7111 (fixup_segment) [DIFF_EXPR_OK]: If sub_symbolP is in the current
7112 segment, convert to a PC-relative fixup and discard the symbol.
7113
7114 * config/tc-m68k.c (flag_want_pic): New variable, mostly ignored.
7115 (md_parse_option) [TE_SUN3]: Set it for "-k".
7116 (m68k_ip): Generate proper fixup for mode 7.3.
7117 * config/tc-m68k.h (DIFF_EXPR_OK): Define.
7118
c996b199
KR
7119Sat Sep 25 05:08:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7120
7121 * config/tc-m68k.c (struct m68k_incant, getone, gettwo): Moved
7122 earlier in the file.
7123 (insop, add_exp): Now defined as functions, for readability.
7124 (insop): Now takes two arguments; callers changed.
7125
6d6b97b7
RP
7126Fri Sep 24 12:37:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7127
58f3e8a9
RP
7128 * config/tc-m88k.c (get_o6): new function.
7129 (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg,
7130 get_vec9, getval, get_pcr, calcop, match_name): make static and
7131 prototype.
7132 (s_file): remove extraneous forward decl.
7133 (md_begin): add const to retval decl.
7134 (calcop): cope with instructions without arguments. Handle 'o'
7135 type argument, the o6 field of the prot insn.
7136 (md_estimate_size_before_relax): return a dummy value.
7137
6d6b97b7
RP
7138 * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
7139 in bits 10 through 7. flt.[dxs]s requires an r register in the
7140 second argument. New instruction lda.x. New instruction muls
7141 (alias for mul).
7142
7143Fri Sep 24 13:43:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7144
7145 * Makefile.in (distclean): Recurse like clean.
7146 * doc/Makefile.in (distclean): New target.
7147
7148 * config/tc-mips.c (md_begin): Set BFD architecture and machine
7149 based on MIPS ISA level.
7150
7151Thu Sep 23 17:58:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7152
7153 * as.c (main): "exhausted", not "exhuasted".
7154
7155 * struc-symbol.h (struct symbol): Add sy_used_in_reloc field.
7156 * write.c (adjust_reloc_syms): Set sy_used_in_reloc.
7157 (write_object_file): Never strip symbols with sy_used_in_reloc
7158 set.
7159
7160 * config/obj-elf.c (obj_elf_section): Rewrote to handle both
7161 Solaris and SVR4 style .section pseudo-ops.
7162 (obj_elf_ident): Set SEC_READONLY for .comment section.
7163 * config/tc-sparc.c (md_apply_fix): If this is ELF, and we're
7164 generating a reloc, don't apply a fix.
7165
6110df28
KR
7166Thu Sep 23 13:16:58 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7167
7168 * config/obj-coffbfd.c (relax_align): Now static.
7169
9bd0d649
ILT
7170Mon Sep 20 19:23:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7171
7172 * read.c (get_stab_string_offset): Make non-static. Make
7173 arguments const. Don't align strings to 4 byte boundaries.
7174 * read.h: Declare get_stab_string_offset.
7175 * config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as
7176 SEC_LOAD for progbits section.
7177 (obj_elf_init_stab_section): New function.
7178 (adjust_stab_sections): Add casts to avoid warnings.
7179 * config/obj-elf.h (INIT_STAB_SECTION): Call
7180 obj_elf_init_stab_section.
7181 (OBJ_PROCESS_STAB): Removed definition.
7182
80903ca6
ILT
7183Fri Sep 17 18:12:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7184
7185 * config/obj-elf.h (S_GET_SIZE): Define.
7186 (obj_frob_forward_symbol): Define.
7187 * config/tc-i386.c (line_comment_chars): Initialize in all cases.
7188
13998021
ILT
7189Thu Sep 16 14:23:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7190
9bd0d649 7191 * tc.h: Declare tc_gen_reloc differently depending upon
13998021
ILT
7192 RELOC_EXPANSION_POSSIBLE.
7193 * config/obj-elf.c (obj_elf_section): Only set flags when first
7194 creating the section.
7195
7196Wed Sep 15 12:15:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7197
7198 * config/tc-mips.c (append_insn): Don't swap a trap instruction
7199 with a branch.
7200
4f0bccc7
ILT
7201Tue Sep 14 13:31:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7202
90397ff8
ILT
7203 * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
7204 set previous_section and previous_subsection and then call s_data
7205 and s_text, respectively.
7206 (obj_pseudo_table): Add data and text.
7207 (obj_elf_section): Add SEC_LOAD to default initialization of
7208 flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as
7209 SEC_ALLOC for "alloc" string. Don't bother trying to find the
7210 section; just use subseg_new.
7211
4f0bccc7
ILT
7212 * read.c (change_to_section): Removed. This is now done by
7213 subseg_new.
7214 (get_stab_string_offset): Rearranged somewhat. Create the section
7215 using subseg_new. Store the string index in seg_info, rather than
7216 in a static variable. Force the first string to be empty. Use
7217 frag_more rather than FRAG_APPEND_1_CHAR.
7218 (s_stab_generic): Rewrote.
7219 * subsegs.h (segment_info_type): Added stabu union.
7220 * subsegs.c (subseg_new): Initialize stab_string_size to 0.
7221 * config/obj-aout.c: Don't include aout/stab_gnu.h.
7222 (obj_aout_stab, obj_aout_desc): Removed.
7223 (obj_pseudo_table): Removed desc and stabX entries.
7224 * config/obj-bout.c: Same changes as config/obj-aout.c.
7225 * config/obj-bout.h (S_SET_TYPE): Define.
7226 (tc_bout_fix_to_chars): Declare.
7227 * config/obj-coff.c (obj_coff_stab): Removed.
7228 (obj_pseudo_table): Removed desc and stabX entries.
7229 * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
7230 * config/obj-coffbfd.c (current_stab_symbol): Removed.
7231 * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
7232 n_other, n_desc and n_value fields.
7233 (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
7234 (MAKE_STAB_SYMBOL): Removed.
7235 * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
7236 Changed arguments and removed parsing code.
7237 (obj_pseudo_table): Removed stabX entries.
7238 * config/obj-ecoff.h (ecoff_stab): Declare.
7239 (OBJ_PROCESS_STAB): Define.
7240 * config/obj-elf.c: Don't include aout/stab_gnu.h.
7241 (obj_elf_stab, obj_elf_xstab, obj_elf_desc,
7242 elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
7243 Removed.
7244 (obj_pseudo_table): Removed desc, stabX and xstabs entries.
7245 (obj_elf_version): Use subseg_new, not bfd_make_section. Don't
7246 set SEC_LOAD for .note section.
7247 (adjust_stab_sections): Get frag pointer from seg_info, rather
7248 than looking through frags.
7249 * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
7250 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
7251 Define.
7252 * config/obj-vms.c (obj_aout_stab): Removed.
7253 (obj_pseudo_table): Removed stabX entries.
7254 * config/obj-vms.h (S_SET_TYPE): Define.
7255
7256 * as.h: Declare listing.
7257 * read.c: Don't declare listing.
7258 (emit_expr): Cast fix_new_exp argument.
7259 (parse_bitfield_cons): Correct printf format.
7260 * symbols.c (symbol_new): Add cast to avoid warning.
7261 * write.h: Declare text_last_frag and data_last_frag.
7262 * config/obj-bout.c (obj_bout_line): Added dummy argument.
7263 * config/obj-coffbfd.c: Add some casts to avoid warnings.
7264 * config/tc-a29k.c: Likewise.
7265 * config/tc-i960.c: Likewise. Also fully bracket structure
7266 initializations, fix printf formats, and remove unused variables.
7267
604633ae
ILT
7268Mon Sep 13 16:48:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7269
7270 * read.c (s_desc): Only compile and use if S_SET_DESC is defined.
7271 * struc-symbol.h: Declare verify_symbol_chain and
7272 verify_symbol_chain_2 even if not SYMBOLS_NEED_BACKPOINTERS.
7273 * symbols.c (verify_symbol_chain): Removed useless expression.
7274 * write.c (headers, the_object_file): Only use if not
7275 BFD_ASSEMBLER and not BFD.
7276 (fixup_segment, cvs_frag_to_fill): Only use if BFD_ASSEMBLER or
7277 not BFD.
7278 (merge_data_into_text): Only use if BFD_ASSEMBLER or (not BFD and
7279 not OBJ_AOUT).
7280 * write.h: Declare relax_segment.
7281 * config/obj-coffbfd.c (stack_pop, stack_push, stack_init): Made
7282 static.
7283 (stack_top): Commented out, since it's not used.
7284 Fixed up pseudo-op functions to take an ignored int argument.
7285 (size_section): Added default BAD_CASE to switch.
7286 Changed bzero calls to memset.
7287 * config/obj-coffbfd.h (S_IS_LOCAL): Call strchr on S_GET_NAME
7288 (s), not on s itself.
7289 * config/tc-a29k.c (s_use): Take ignored int argument. Only
7290 define if OBJ_COFF is not defined.
7291 * config/tc-i386.c: (fits_in_signed_byte, smallest_imm_type): Make
7292 argument signed again.
7293 * config/tc-m68k.c (s_bss, s_even, s_proc): Take ignored int
7294 argument.
7295 (m68k_ip): Fully bracket initialization of archs.
7296 Correct several formats for __LINE__ to be %d rather than %s.
7297 (init_table): Fully bracket initialization.
7298 Cast values larger than 0x7f assigned to fr_opcode to char.
7299
7300 * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
7301 Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
7302 section name, and subseg_set always takes a segT. Changed all
7303 callers as appropriate.
69cb5925 7304 * config/obj-coffbfd.c (change_to_section): Renamed to
604633ae
ILT
7305 obj_coff_add_segment. Corrected. Made callers use subseg_new.
7306 * config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
7307 Define.
7308
54e3e909
DE
7309Mon Sep 13 13:15:03 1993 Doug Evans (dje@canuck.cygnus.com)
7310
7311 * config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
7312
58d4951d
ILT
7313Fri Sep 10 11:22:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7314
7315 * config/obj-elf.h (S_SET_SIZE): Actually set the size.
7316
7317 Gcc lint.
54e3e909 7318 * Added a number of casts to function calls.
58d4951d
ILT
7319 * app.c (do_scrub_begin), as.c (main), expr.c (integer_constant,
7320 operand, expr), read.c (read_begin, HANDLE_CONDITIONAL_ASSEMBLY,
7321 read_a_source_file, s_align_bytes, demand_empty_rest_of_line,
7322 ignore_rest_of_line, big_cons, is_it_end_of_statement, s_ignore),
7323 read.h (is_name_beginner, is_part_of_name), config/obj-elf.c
7324 (obj_elf_section), config/tc-i386.c (parse_register),
7325 config/tc-sparc.c (isoctal, s_proc): Cast char
7326 array indices to unsigned char.
54e3e909
DE
7327 * app.c (process_escape): Make static. Add prototype. Change
7328 argument from char to int.
58d4951d
ILT
7329 * as.c: Include output-file.h for prototypes. Comment out unused
7330 function got_sig.
7331 * Makefile.in (as.o): Depend on output-file.h.
7332 * as.h (BAD_CASE): Cast val argument to long, and use %ld.
54e3e909
DE
7333 (pseudo_typeS): Add prototype to poc_handler field.
7334 (print_version_id): Add prototype.
7335 (xmalloc, xrealloc): Change size arguments to unsigned long.
7336 (do_scrub_next_char): Add prototypes for function arguments.
7337 (had_errors, had_warnings, scrub_from_file): Remove duplicate
7338 declarations.
7339 * atof-generic.c (atof_generic): Make size variables unsigned.
58d4951d 7340 * cond.c (ignore_input): Removed unused local variable ptr.
54e3e909
DE
7341 * expr.c (floating_constant, integer_constant): Make static. Add
7342 prototypes.
7343 * flonum-copy.c (flonum_copy): Make size variables unsigned.
58d4951d 7344 * frags.h: Add prototype for frag_init.
54e3e909
DE
7345 * hash.h, hash.c: Change hash values from char * to PTR, make hash
7346 strings const, make returned error strings const char *. Added
7347 prototypes for functions.
7348 * input-file.h, input-file.c (input_file_buffer_size): Return
7349 unsigned int.
7350 * input-scrub.c (buffer_length): Make unsigned.
7351 (input_scrub_push, input_scrub_pop): Make static.
58d4951d
ILT
7352 * listing.c (list_symbol_table): Cast sprintf argument to unsigned
7353 long and use %lx. Print name of segment rather than address of
7354 structure.
54e3e909
DE
7355 (listing_list, listing_title): Change argument to int.
7356 (listing_eject, listing_flags, listing_psize): Add int argument.
7357 * listing.h: Corresponding declaration changes.
7358 * obj.h (obj_emit_symbols): Rename prototype argument to avoid
7359 shadowing.
58d4951d 7360 * read.h: Change get_absolute_expression prototype to return
54e3e909
DE
7361 offsetT. Add prototype for next_char_of_string. Various
7362 prototype changes.
58d4951d 7363 * read.c: Remove prototype for next_char_of_string.
54e3e909
DE
7364 (pobegin): Make errtxt const. Make new_length, tmp_len and num
7365 unsigned.
7366 (s_abort, s_align_ptwo, s_comm, s_data, s_app_line, s_fill,
7367 s_globl, s_lsym, s_org, s_set, s_text, s_desc): Add int argument.
7368 Change all callers.
58d4951d
ILT
7369 (s_comm): Change temp from valueT to offsetT. Cast to long when
7370 printing and use %ld (only for error messages anyhow).
54e3e909
DE
7371 (s_long, s_int): Remove unused functions.
7372 (cons): Change argument to int.
58d4951d
ILT
7373 (emit_expr): Use %lx when printing longs.
7374 (get_absolute_expression): Return offsetT, not long.
7375 (get_stab_string_offset): Comment out unless
7376 SEPARATE_STAB_SECTIONS.
7377 (s_stab_generic): Remove unused offset. Define seg_is_new only
7378 if SEPARATE_STAB_SECTIONS. Use toP only in local block.
54e3e909 7379 * struc-symbol.h (verify_symbol_chain_2): Add prototype.
58d4951d 7380 * symbols.c: Remove nested comment.
54e3e909 7381 (symbol_new): Rename value to valu.
58d4951d 7382 (colon): Use %ld and cast to long in error message.
54e3e909
DE
7383 * symbols.h: Remove duplicate verify_symbol_chain declaration.
7384 * tc.h: Remove unused md_emit_relocations declaration.
7385 (tc_gen_reloc): Add declaration.
58d4951d
ILT
7386 * write.c (cvt_frag_to_fill): Change first argument name depending
7387 on BFD_ASSEMBLER.
54e3e909
DE
7388 (write_relocs): Remove unused offset, frags. Remove tc_gen_reloc
7389 declarations. Make n unsigned.
7390 (write_contents): Remove unused i, n, relocs, fixp. Rename frags
7391 to f to avoid shadowing.
58d4951d
ILT
7392 (write_object_file): Define fragP only if not BFD_ASSEMBLER or not
7393 WORKING_DOT_WORD. Remove unused keep. Only declare punt and
54e3e909 7394 punt_it if they will be used. Make i and n unsigned.
58d4951d 7395 (fixup_segment): Cast to long and use %ld in error message.
54e3e909 7396 * xmalloc.c (xmalloc, xrealloc): Make size argument unsigned.
58d4951d
ILT
7397 * config/obj-aout.h: Remove nested comment. Add prototype for
7398 obj_aout_frob_symbol.
54e3e909
DE
7399 (obj_aout_line, obj_aout_desc): Add int argument.
7400 * config/obj-ecoff.c: Changed build routines to use an unsigned
7401 offset.
7402 (add_string): Make len unsigned long.
58d4951d
ILT
7403 (obj_ecoff_stab): Use %lu in error message.
7404 * config/obj-elf.c (obj_elf_common): Comment out unused label
7405 allocate_bss.
7406 (obj_elf_frob_symbol): Return 0 (currently broken).
54e3e909
DE
7407 (obj_elf_desc, obj_elf_version, obj_elf_size, obj_elf_type,
7408 obj_elf_ident, obj_elf_weak, obj_elf_local, obj_elf_common,
7409 obj_elf_line, obj_elf_previous): Add int argument.
7410 (obj_elf_write_symbol_p): Make static.
7411 * config/obj-elf.h (obj_elf_write_symbol): Add prototype.
58d4951d
ILT
7412 * config/tc-hppa.h: Remove declarations of functions declared in
7413 read.h.
54e3e909
DE
7414 * config/tc-i386.c (ENCODE_RELAX_STATE): Cast to relax_substateT.
7415 (s_bss): Add int argument.
7416 (fits_in_signed_byte, smallest_imm_type): Make argument unsigned.
7417 (dummy): Remove unused function.
7418 (md_assemble): Rename local o to op to avoid shadowing.
7419 (tc_gen_reloc): Rename local reloc to rel to avoid shadowing.
7420 * config/tc-m68k.c (s_data1, s_data2): Add int argument.
58d4951d
ILT
7421 * config/tc-mips.c (mips_ip, md_apply_fix): Cast to long and use
7422 %ld in error messages.
54e3e909
DE
7423 * config/tc-sparc.c: Remove duplicate declarations.
7424 (getExpression): Rewrite condition to avoid empty conditional
7425 body.
7426 (s_reg, s_proc, s_reserve, s_common, s_seg, s_xword): Add int
7427 argument.
58d4951d 7428
892a3ff1
KR
7429Thu Sep 9 17:10:00 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7430
7431 Changes from Jeff Law:
7432
7433 * config/tc-hppa.c (md_assemble): Fix typo.
132239bf 7434 (pa_ip): Delete unused variables and labels. Do not check for
892a3ff1
KR
7435 unsigned values being < 0, it can't happen.
7436 (is_same_frag): Return a value in recursive call case.
7437 (pa_callinfo): Delete unused variables and labels.
7438 (pa_comm): Likewise.
7439 (pa_copyright): Likewise.
7440 (pa_export): Likewise.
7441 (pa_import): Likewise.
7442 (pa_param): Likewise.
7443 (pa_space): Likewise.
7444 (pa_subspace): Likewise.
7445
abdd08c9
ILT
7446Thu Sep 9 15:05:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7447
7448 * read.c (get_stab_string_offset, s_stab_generic): If
7449 BFD_ASSEMBLER, call subseg_set rather than subseg_new.
7450
414b2c8f
ILT
7451Wed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7452
7453 * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
7454 default flag values.
7455
4064305e
SS
7456Tue Sep 7 10:22:52 1993 Stan Shebs (shebs@rtl.cygnus.com)
7457
1531386b
SS
7458 * read.c: (change_to_section): Don't include body if not MANY_SECTIONS.
7459
4064305e
SS
7460 * read.c: (s_stab, s_xstab, s_desc): New functions to parse
7461 various stab-related directives.
7462 * read.h: (s_stab, s_xstab, s_desc): New function prototypes.
7463 * write.c: (merge_data_into_text): Fix ifdef tangle.
7464 * config/obj-coffbfd.c (current_stab_symbol): Fake symbol
7465 for stab reader to use.
7466 * config/obj-coffbfdh.h (obj_symbol_type): Added fields for
132239bf 7467 stab reader, macros to access.
4064305e 7468
81b407c9
KR
7469Fri Sep 3 16:44:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7470
fd4b7c25
KR
7471 * config/obj-elf.h (elf_symbol): No longer special-cased on
7472 sparcv9, since elf_symbol_type is now independent of size.
7473
81b407c9
KR
7474 * config/obj-elf.h (elf_symbol): Fixed name of elf_symbol_type.
7475
7476 * config/tc-hppa.h (struct default_subspace_dict, struct
7477 default_space_dict): Field "sort" is now unsigned char.
7478
7479 * config/tc-hppa.c (pa_def_subspaces, pa_def_spaces): Align
7480 columns for easier reading.
7481 (bcmp, index): Deleted USG-specific definitions. Should be dealt
7482 with in ho-*.h, or in libiberty. Changed mention of index to
7483 strchr.
7484 (label_symbolP, label_symbol_defined, callinfo_found,
7485 within_entry_exit, exit_processing_complete, within_procedure,
7486 pa_def_subspaces, pa_def_spaces, pa_pseudo_op_moves_pc,
7487 label_symbols_rootP, pa_get_label, pa_label_is_defined,
7488 pa_undefine_label): Now static.
7489 (movers): Now const, in addition to pointing to const data.
7490 * config/tc-hppa.h (label_symbolS_rootP, pa_get_label,
7491 pa_label_is_defined, pa_undefine_label, pa_pseudo_op_moves_pc):
7492 Delete declarations.
7493
7494 Merged more changes from Jeff Law and Pete Hoogenboom:
7495
7496 * config/tc-hppa.c (pa_def_subspaces, pa_def_subspaces): Remove
7497 entries for .stab and .stabstr.
7498
7499 * config/obj-elf.c: (elf_stab_symbol_string): Set the
7500 SEC_LOAD attribute for the .stabstr section.
7501 (obj_elf_stab_generic): Set the SEC_LOAD attribute for the
7502 .stab section.
7503 (obj_elf_stab_generic): Change '#if 1' to '#if 0'.
7504 (obj_elf_stab_generic): Incorrect byte count on call to
7505 md_number_to_chars function.
7506
7507 * config/tc-hppa.c (hppa_tc_symbol): Static functions need
7508 argument relocation bits too.
7509
7510 * config/tc-hppa.c (pa_stringer): Correctly handle escaping
7511 characters which should appear unaltered in the output string (for
7512 example an escaped double-quote).
7513
7514 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Always
7515 initialize name.
7516 (pa_parse_neg_cmpsub_cmpltr): Likewise.
7517 (pa_parse_nonneg_add_cmpltr): Likewise.
7518 (pa_parse_neg_add_cmpltr): Likewise.
7519
7520 * config/tc-hppa.h (parse_cons_expression_hppa): Remove prototype
7521 for now.
7522 (cons_fix_new_hppa): Likewise.
7523 * config/tc-hppa.c (md_apply_fix): Fix type of valp to match
7524 prototype.
7525
7526 * config/tc-hppa.c: Include libhppa.h.
7527
132239bf 7528 * config/tc-hppa.h: Delete extern declarations of functions
81b407c9
KR
7529 found in libhppa.h.
7530
7531 * config/tc-hppa.c (pa_space): Rework to avoid unwanted #ifdef
7532 OBJ_ELF conditionals.
7533 * config/tc-hppa.h (LOCAL_LABEL): Correctly identify local labels
7534 on the PA.
7535
1849d646
ILT
7536Thu Sep 2 10:43:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7537
ff3a5c18
ILT
7538 * config/tc-mips.c (macro_build): Accept 'z', and ignore it.
7539 (macro): Use "z,s,t" for div instructions to match corresponding
7540 change in opcode table.
7541 (mips_ip): Added 'z'--must be zero register.
1849d646 7542
e96d50d0
KR
7543Wed Sep 1 15:56:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7544
7545 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Declare
7546 tc_gen_reloc correctly.
7547
7548 * configure.in: Use "case" instead of "if" when possible. Rewrote
7549 Makefile editing to reduce work done. Treat "hppa*" as "hppa".
7550
56607c4e
RP
7551Wed Sep 1 12:19:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7552
7553 * config/obj-coffbfd.c (obj_coff_section): add 'd' as an alias for
7554 section type of data. 'd' seems to be used for m88k.
7555
7556Wed Aug 25 22:33:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7557
7558 * config/tc-mips.c (mips_align, s_stringer, s_cons, s_float_cons,
7559 s_mips_space): Set insn_label to NULL to avoid changing it at the
7560 next .align statement.
7561 (append_insn): Don't swap jal with instruction that sets the
7562 register that jal sets.
7563
37d719bb
RP
7564Wed Aug 25 16:15:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7565
7566 * configure.in: recognize m88110.
7567
28344993
KR
7568Wed Aug 25 13:37:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7569
7570 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
7571 * config/tc-hppa.c (pa_build_unwind_subspace): SEC_ALLOC should
7572 not be on for .hppa_unwind.
7573 (md_pseudo_table): .PARAM and .param are valid pseudo-ops for GAS.
7574 (pa_param): New function to handle .PARAM directives.
7575 (pa_ip): Pass "isbranch" argument down to pa_parse_*_compltr
7576 functions. Handle '|' for movb; allow movb,n.
7577 (pa_parse_nonneg_cmpsub_cmpltr): Delete old useless
7578 version. Handle cases where no completer exists for
7579 comb,n or addb,n.
132239bf 7580 (pa_parse_neg_cmpsub_cmpltr): Handle cases where no
28344993
KR
7581 completer exists for comb,n or addb,n. Make logic
7582 mirror that of pa_parse_nonneg_cmpsub_cmpltr.
7583 (pa_parse_nonneg_add_cmpltr): Likewise.
7584 (pa_parse_neg_add_cmpltr): Likewise.
7585 * tc-hppa.h (pa_param): Declare.
7586
7587Tue Aug 24 15:41:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7588
7589 * config/tc-hppa.c (hppa_tc_make_symextn_section): Now static.
7590 Added forward declaration.
7591
7592 Merged changes from Pete Hoogenboom and Jeff Law at Utah:
7593
7594 * config/obj-elf.c (elf_frob_file): Arguments were incorrect on
7595 call to elf_tc_make_sections.
7596 (obj_elf_version): A .note section shouldn't have the SEC_ALLOC
7597 attribute.
7598
7599 * config/tc-hppa.c (hppa_tc_make_sections): Add some processing to
7600 handle symbol extension sections.
7601
7602 * config/tc-hppa.c (pa_build_symextn_section): New function to
7603 create a symbol extension section.
7604 (pa_export_args): Make call to pa_build_symextn_section.
7605 (hppa_tc_symbol, hppa_tc_make_sections,
7606 hppa_tc_make_symextn_section): New functions.
7607 * config/tc-hppa.h: Update elf_tc_symbol and elf_tc_make_sections
7608 macros.
7609
7610 * read.c (emit_expr): Place check for TC_CONS_FIX_NEW in the
7611 BFD_ASSEMBLER branch as well.
7612
7613 * config/tc-hppa.h: If ELF is the target object format, define
7614 some ELF- and hppa-specific types and constants.
7615
7616 * config/tc-hppa.c (getExpression): Fix a typo.
7617
7618 * read.c (read_a_source_file): Use TC_EQUAL_IN_INSN to determine
7619 if a `=' is part of an instruction.
7620 (read_a_source_file): Handle case where end-of-line markers are
7621 also used within instructions.
7622 * config/tc-hppa.h (TC_EQUAL_IN_INSN, TC_EOL_IN_INSN): Define.
7623
7624 * config/tc-hppa.c (md_apply_fix_1): Keep relocations for
7625 out-of-range branches/'calls using "bl" or calls which may need
7626 argument relocation stubs. Do not need/keep relocations for
7627 conditional branches.
7628 (elf_hppa_final_processing): Fix calculation of function size.
7629
7630 * config/obj-elf.c (obj_elf_version): Mark .note section as
7631 READONLY.
7632
7633 * config/tc-hppa.c (parse_cons_expression_hppa): Pass exp, not the
7634 address of exp, to expression.
7635 (pa_build_unwind_subspace): Turn SEC_HAS_CONTENTS flag on.
7636 (md_apply_fix_1): Delete unwanted comments.
7637 (process_exit): Symbols marking the end of a function are always
7638 BSF_LOCAL.
7639
7640 * config/tc-hppa.c: Include elf32-hppa.h from BFD tree.
7641 (pa_space): Declare and initialize gdb_section.
7642
7643 * config/obj-elf.c (elf_frob_file): Change
7644 elf_tc_final_processing_hook to elf_tc_final_processing.
7645
7646 * config/tc-hppa.c (fix_new_hppa): Fix argument list to match
7647 argument type declarations.
7648 (getExpression): Fix typo.
7649 (pa_export_args): Change elf_symbol_type to elf32_symbol_type.
7650 (elf_hppa_final_processing): Likewise. Name changed from
7651 elf_hppa_final_processing_hook.
7652 (start_symbol_root, start_symbol_last): Deleted.
7653
7654 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION): Fix typo.
7655
7656 * config/tc-hppa.h: Replace "symbolS" with "struct symbol" to
7657 avoid changing include ordering.
7658
7659 * config/tc-hppa.c (pa_ip, case 'y'): Handle just like 't'.
7660
6e8dda9c
ILT
7661Mon Aug 23 12:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7662
7663 * config/tc-mips.c (set_at): Added unsignedp argument. Use
7664 load_register.
7665 (set_at_unsigned): Removed; changed callers to use set_at.
7666 (load_register): Removed unused ip argument. Changed callers.
7667 (append_insn): Don't swap branch and branch likely.
7668 (macro_build): Handle 'u'.
7669 (load_register): Handle 64 bit constants.
7670 (macro): Added M_DABS, removed M_ABSU. Numerous changes to
7671 support 64 bit constants.
7672 (mips_ip): Use hex constants in range checks for clarity.
7673 (md_number_to_chars): Support 8 byte values.
7674
1e35cd8f
RP
7675Fri Aug 20 16:50:59 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7676
7677 * config/tc-m88k.h: updated copyrights.
7678 (TC_CONS_RELOC): declare to be RELOC_32.
7679
8358c818
ILT
7680Fri Aug 20 11:16:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7681
7682 * config/tc-mips.c (mips_isa): New static variable.
7683 (md_begin): Initialize mips_isa based on TARGET_CPU. Don't sanity
7684 check macros. Set text alignment and GP size here.
7685 (md_assemble): Don't set text alignment and GP size here.
7686 (append_insn): Don't insert NOPs for load delays if mips_isa >= 2.
7687 Use the right mask and shift for WRITE_FPR_T and WRITE_FPR_S. Add
7688 a NOP after a branch likely.
7689 (mips_emit_delays): Don't insert NOPS for load delays if mips_isa
7690 >= 2.
7691 (macro): Support r6000 and r4000 macros.
7692 (mips_ip): Check insn ISA level against mips_isa before using it.
7693 Added 'x' case for ignored register.
7694 (md_parse_option): Handle -mipsN and -mcpu=XX.
7695
c8d4cda1
KR
7696Fri Aug 20 01:26:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7697
7698 * config/tc-i386.c (md_pseudo_table) [OBJ_ELF]: Handle ".zero".
7699
7700Thu Aug 19 12:15:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7701
7702 * config/tc-sparc.c (s_local): Function moved and renamed...
7703 * config/obj-elf.c (obj_elf_local): ...to here.
7704 * config/tc-sparc.c (md_pseudo_table), config/obj-elf.c
7705 (obj_pseudo_table): Move handling of ".local".
7706
7707 * tc.h (md_parse_option): Don't declare if defined as a macro.
7708
7709 * config/tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as
7710 BFD_RELOC_NONE.
7711 (md_parse_option): New macro, converted from function.
7712 * config/tc-i386.c (md_parse_option): Function deleted.
7713 (comment_chars) [OBJ_ELF]: Include "/".
7714 (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/".
7715 (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler
7716 warning.
7717 (md_assemble, md_estimate_size_before_relax, md_create_long_jump):
7718 Call reloc for fix_new type, or use correct enumerator, instead of
7719 always using NO_RELOC.
7720 (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for
7721 tests for valid section.
7722 (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start
7723 address.
7724 (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with
7725 symbol, compensate for location of reloc.
7726 (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define
7727 to return zero.
7728
4915cac0
KR
7729Wed Aug 18 16:51:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7730
7731 * config/obj-elf.c: Undef NO_RELOC before including aout/aout64.h.
7732 (obj_elf_weak): New function.
7733 (obj_pseudo_table): Handle ".weak".
7734 (obj_elf_section): If section directive includes a string, ignore
7735 it for now. Accept "progbits" flag.
7736 (obj_elf_type): Accept `@' before flag name.
7737
7738 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Get rid of `if(1)'
7739 condition.
7740 (fixup_segment) [BFD_ASSEMBLER]: Use bfd_is_com_section, rather
7741 than checking for bfd_com_section directly.
7742 (fixup_segment): Simplify range check.
7743 (fixup_segment) [OBJ_COFF && TC_I960]: Simplify cpp condition
7744 test.
7745
7746 * symbols.h (S_SET_WEAK): Declare.
7747 * symbols.c (S_SET_WEAK): New function.
7748 (S_SET_EXTERNAL, S_CLEAR_EXTERNAL): Don't bother with BSF_EXPORT,
7749 it's not a separate flag any more. Clear BSF_WEAK.
7750
7751 * read.c (potable): Treat "string" like "asciz".
7752
19ed8960
ILT
7753Wed Aug 18 15:30:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7754
7755 * config/tc-mips.c (append_insn): Don't swap branch instructions
7756 if .set nobopt or .set volatile.
7757 (gp_reference): .lit8 and .lit4 are accessed via the GP register.
7758 (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD.
7759 (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point.
7760 * config/obj-ecoff.c: Renamed some variables to avoid shadow
7761 warnings.
7762
ae8c28f8
DZ
7763Mon Aug 16 14:16:02 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7764
19ed8960
ILT
7765 * config/obj-coff.h (S_IS_COMMON): add missing backslash
7766
ae8c28f8
DZ
7767 * configure.in (z8k-*-{coff,sim}): use coffbfd for this target
7768
0aa07269
ILT
7769Thu Aug 12 11:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7770
7771 * config/tc-mips.c (mips_ip): Suggested by
7772 davidj@ICSI.Berkeley.EDU (David Johnson): Don't accept symbolic
7773 names for 'E' and 'G' argument types (coprocessor registers) and
7774 don't warn if $1 is used on the coprocessor.
ae8c28f8 7775 (macro): Handle M_{L,S}WC{0,2,3}_AB correctly.
0aa07269
ILT
7776
7777Mon Aug 9 12:09:14 1993 Doug Evans (dje@canuck.cygnus.com)
7778
7779 * read.c (emit_expr): Use BFD_RELOC_16 for 2-byte values.
7780 * config/tc-sparc.c (md_apply_fix, tc_gen_reloc): Handle
7781 BFD_RELOC_16.
7782 * config/tc-sparc.h (WORKING_DOT_WORD): Define.
7783
6a9cf6fa
KR
7784Mon Aug 9 13:36:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7785
7786 * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER is
7787 defined or BFD is not.
7788 (relax_and_size_all_segments): Declare local variable fragP.
7789
b114e492
KR
7790Fri Aug 6 15:22:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7791
7792 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_32): Fill in
7793 bytes with real values, not zeros.
7794
ac32a7e7
ILT
7795Fri Aug 6 10:57:59 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7796
3d2330f8
ILT
7797 * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested)
7798 targets, using ecoff and mips-big.
7799
ac32a7e7
ILT
7800 * config/tc-mips.c (mips_ip): From davidj@ICSI.Berkeley.EDU (David
7801 Johnson): Added case for 'C' for coprocessor instruction codes.
7802
273aa947
KR
7803Thu Aug 5 13:08:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7804
fd4b7c25
KR
7805 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): Fill in
7806 bytes with real values, not zeros.
7807 (md_pseudo_table): Call cons for .uaxword.
7808
b114e492
KR
7809 * config/obj-elf.c (obj_pseudo_table): Handle ".8byte".
7810
273aa947
KR
7811 * read.c (emit_expr): Use BFD_RELOC_64 for 8-byte expressions.
7812
b114e492
KR
7813 * write.c (write_object_file): Test DEBUG_SYMS instead of DEBUG
7814 for verifying symbol chain.
7815 (merge_data_into_text, relax_and_size_all_segments): New
7816 functions, split out from write_object_file.
7817
273aa947
KR
7818Tue Aug 3 15:43:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7819
7820 * config/obj-elf.c (obj_elf_stab_generic, in disabled code): If
7821 debug section is new, allocate an extra 12 bytes at its start. If
7822 ".stabs" type is N_SO, fill in filename symbol field of that first
7823 entry. Return early if "goof", to simplify later code slightly.
7824 (adjust_stab_sections): New function.
7825 (elf_frob_file): Apply adjust_stab_sections to each section.
7826
7827 * config/obj-elf.c (obj_elf_section, obj_elf_previous): No longer
7828 static.
7829 * config/obj-elf.h (obj_elf_section, obj_elf_previous): Declare.
7830 * config/tc-sparc.c (md_pseudo_table): Call them for "pushsection"
7831 and "popsection", and call cons for "uaword" and "uahalf".
7832
7833 * config/obj-elf.c (obj_elf_version): Use English in error
7834 messages.
7835
4573d186
ILT
7836Tue Aug 3 11:29:06 1993 Ian Lance Taylor (ian@cygnus.com)
7837
7838 * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets the
7839 swapping routines and external structure sizes via the
7840 ecoff_backend information. No longer includes coff/mips.h.
7841
b4703fa6
ILT
7842Mon Aug 2 17:35:48 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7843
4c7ff23d
ILT
7844 * config/obj-ecoff.c (get_tag): Save tag name in permanent memory
7845 and in hash_ptr->string.
7846
b4703fa6
ILT
7847 * app.c (do_scrub_next_char): Reset state to 0 after .appline if
7848 file name is not seen.
7849
fd4b7c25
KR
7850Mon Aug 2 11:51:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7851
7852 * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): New case,
7853 parallel to BFD_RELOC_32.
7854 (tc_gen_reloc): Accept BFD_RELOC_64.
7855
ced16de6
ILT
7856Thu Jul 29 22:21:28 1993 Ian Lance Taylor (ian@cygnus.com)
7857
7858 * write.c: Don't use short int in a prototype.
ab4d34cd
ILT
7859
7860 * expr.c (operand): Make return value simply depend on contents of
7861 returned expression.
7862
b4703fa6
ILT
7863Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7864
7865 * configure.in: sparc*-aout and sparc*-vxworks are BFD assemblers
7866
0ccc65ec
DZ
7867Thu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7868
7869 * config/ho-sunos.h: remove some old function decls that conflict
7870 w/ ANSI, and which weren't needed anyway
7871
7872Wed Jul 28 16:34:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7873
7874 * config/obj-elf.h (obj_frob_symbol): Renamed from tc_frob_symbol,
7875 and disabled since it breaks Ian's new symbol-value code.
7876
7877 * expr.c (integer_constant): Accept more digits if BFD64.
7878
7fe17970
ILT
7879Wed Jul 28 11:30:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7880
7881 * config/tc-m68k.c (m68k_ip): If we have a normal constant when we
7882 expect a bignum, turn it into a bignum. Output extra zeroes
7883 before a short bignum, rather than after.
7884
0c2734c3
KR
7885Tue Jul 27 15:54:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7886
7887 * symbols.c (symbol_new): Conditionalize verify_symbol_chain call
7888 on DEBUG_SYMS, not DEBUG.
7889 (symbol_remove): Likewise.
7890 (symbol_insert): Likewise.
7891
4fe45d22
ILT
7892Tue Jul 27 08:45:05 1993 Ian Lance Taylor (ian@cygnus.com)
7893
7894 * config/tc-mips.c (mips_optimize): New static variable.
e9f108bc
ILT
7895 (append_insn): If mips_optimize == 0, always insert NOP
7896 instructions. If mips_optimize < 2, don't swap branches.
7897 (md_parse_option): If -Ox or -gx, set mips_optimize accordingly.
4fe45d22 7898
de9310b9
RP
7899Mon Jul 26 18:02:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7900
7901 * Makefile.in (clean): if testsuite does not exist, then skip it.
7902
7903Fri Jul 23 14:13:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7904
7905 * config/tc-mips.c (prev_insn_unreordered,
7906 prev_prev_insn_unreordered): New static variables.
7907 (append_insn): Don't swap branch instruction if
7908 prev_prev_insn_unreordered (see comment).
7909 (mips_no_prev_insn): Clear the unreordered variables.
7910 (s_mipsset): When turning on reordering, set the unreordered
7911 variables.
7912
7767e7e9
KR
7913Fri Jul 23 13:09:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7914
7915 * config/obj-elf.c (obj_elf_section): Sections ".init" and ".fini"
7916 are also magic, and have special default flag settings.
7917 (obj_elf_frob_symbol): Since the return value from this function
7918 isn't used, don't bother calling obj_elf_write_symbol_p, since it
7919 doesn't accomplish anything else.
7920
7921 * config/tc-sparc.c (md_section_align): Round up section size only
7922 for a.out format.
7923
7924 * symbols.c: Don't define DEBUG by default.
7925
88b457e5
ILT
7926Thu Jul 22 12:09:41 1993 Ian Lance Taylor (ian@cygnus.com)
7927
2a2d3d08
ILT
7928 * write.c (fix_new_exp): Handle a O_uminus expression.
7929
e979ea04
ILT
7930 * expr.c (expr): Don't let absolute_section override
7931 undefined_section for the return value.
7932
cf897ce2
ILT
7933 * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a
7934 pseudo-op with a poc_handler field of NULL, ignore it and treat it
7935 as an instruction instead.
7936 * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL
7937 poc_handler field.
7938
88b457e5
ILT
7939 * config/tc-h8500.c (md_begin): Use a local variable when
7940 initializing md_relax_table to avoid warnings about modifying a
7941 supposedly const data structure.
7942
88e12460
BK
7943Thu Jul 22 10:58:51 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7944
7945 * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER
7946 is defined.
7947
86a6ada2
FF
7948Wed Jul 21 17:32:02 1993 Fred Fish (fnf@deneb.cygnus.com)
7949
7950 * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.
7951 * configure.in (case ${generic_target}): Add i[34]86-*-sysv4*
7952 case to set obj_format=elf. Must go before i386-*-sysv* case that
7953 sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and
7954 *-*-solaris case, and move to before *-sysv* case that wants to
7955 set obj_format to coff.
7956 * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to
7957 'exp->X_op'.
7958 * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for
7959 BFD_ASSEMBLER case.
7960
8ff6f40e
ILT
7961Wed Jul 21 12:47:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7962
2c5c299f
ILT
7963 * config/obj-aout.c: Include aout/aout64.h.
7964 (obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor
7965 symbol, so that BFD doesn't tamper with the type.
7966
8ff6f40e
ILT
7967 * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
7968 up opcodes as pseudo-ops even if they don't start with '.'.
7969 * config/tc-m88k.h (NO_PSEUDO_DOT): Define.
7970 * config/tc-m88k.c (md_assemble): Removed special pseudo-op
7971 handling.
7972 (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
7973 Output the low 16 bits for RELOC_HI16, not the high 16 bits.
7974 * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
7975 r_offset field of the reloc to the fixup offset.
7976 (fixup_segments): If TC_M88K, don't warn about fixup overflows.
7977 * doc/as.texinfo: Minor updates.
7978
5ac34ac3
ILT
7979Tue Jul 20 19:28:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7980
7981 * Extensive changes to permit symbols to contain any expression
7982 type and to delay the computation of the expression until the
7983 value is actually needed. This permits setting symbols to values
7984 calculated based on object code size. Expressions were changed to
7985 no longer be in a section, to stop the overloading of segment and
7986 expression type that previously occurred.
7987
7988 * as.c (big_section, pass1_section, diff_section, absent_section):
7989 Removed.
7990 (expr_section): Added (used for dummy symbols which hold
7991 intermediate expression values).
7992 (perform_an_assembly_pass): Create expr_section, do not create the
7993 sections now removed.
7994 * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and
7995 SEG_DIFFERENCE. Added SEG_EXPR.
7996 (SEG_NORMAL): Corresponding changes.
7997 * subsegs.c (seg_name, subsegs_begin): Changed accordingly.
7998 * write.c (write_object_file): Ditto.
7999 * config/obj-aout.c (seg_N_TYPE): Ditto.
8000 * config/obj-bout.c (seg_N_TYPE): Ditto.
8001 * config/obj-coff.c (seg_N_TYPE): Ditto.
8002 * config/obj-coffbfd.c (seg_N_TYPE): Ditto.
8003 * config/obj-vms.c (seg_N_TYPE): Ditto.
8004
8005 * expr.h (operatorT): Moved in from expr.c, added some values.
8006 (expressionS): Added X_op field, removed X_seg field; renamed
8007 X_subtract_symbol to X_op_symbol.
8008 * expr.c: Extensive changes to assign expression types rather than
8009 sections and to simplify the parsing.
8010 * write.c (fix_new_internal): New static function.
8011 (fix_new): Removed sub_symbol argument.
8012 (fix_new_exp): New function, takes expression argument.
8013 * write.h: Prototype changes for fix_new and fix_new_exp.
8014 * cond.c (s_if): Changed accordingly.
8015 * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons,
8016 parse_repeat_cons, get_segmented_expression,
8017 get_known_segmented_expression, get_absolute_expression): Ditto.
8018 * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE):
8019 Ditto.
8020 * write.c (write_object_file): Ditto.
8021 * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto.
8022 * config/obj-coffbfd.c (obj_coff_def, obj_coff_val,
8023 obj_coff_endef, yank_symbols): Ditto.
8024 * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto.
8025 * config/tc-a29k.c (md_assemble, parse_operand, machine_ip,
8026 print_insn, md_operand): Ditto.
8027 * config/tc-h8300.c (parse_exp, colonmod24, check_operand,
8028 do_a_fix_imm, build_bytes): Ditto.
8029 * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist,
8030 get_specific, check, insert, md_convert_frag): Ditto.
8031 * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa,
8032 md_assemble, pa_ip, getExpression, getAbsoluteExpression,
8033 evaluateAbsolute, pa_build_unwind_subspace, pa_entry,
8034 process_exit): Ditto.
8035 * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative,
8036 is_complex): Ditto.
8037 * config/tc-i386.c (pe, md_assemble, i386_operand,
8038 md_estimate_size_before_relax, md_create_long_jump): Ditto.
8039 * config/tc-i860.c (md_assemble, getExpression, print_insn):
8040 Ditto.
8041 * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag,
8042 get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc,
8043 i960_handle_align): Ditto.
8044 * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op,
8045 subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1,
8046 md_estimate_size_before_relax, md_create_long_jump, get_num):
8047 Ditto.
8048 * config/tc-m88k.c (md_assemble, get_imm16, get_pcr,
8049 md_create_short_jump, md_create_long_jump): Ditto.
8050 * config/tc-mips.c (md_assemble, append_insn, gp_reference,
8051 macro_build, macro, my_getExpression): Ditto. Also removed
8052 get_optional_absolute_expression; just use get_absolute_expression
8053 instead.
8054 * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif,
8055 fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto.
8056 * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto.
8057 * config/tc-sh.c (parse_exp, check, insert, md_convert_frag):
8058 Ditto.
8059 * config/tc-sparc.c (md_assemble, sparc_ip, getExpression,
8060 print_insn): Ditto.
8061 * config/tc-tahoe.c (struct top, md_estimate_size_before_relax,
8062 tip_op, md_assemble): Ditto.
8063 * config/tc-vax.c (seg_of_operand, md_assemble,
8064 md_estimate_size_before_relax, md_create_long_jump): Ditto.
8065 * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
8066
84873870
DZ
8067Tue Jul 20 12:17:16 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8068
8069 * configure.in: i386-lynx is the same as i386-coff
8070
623d6e9a
KR
8071Mon Jul 19 15:21:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
8072
8073 * config/obj-elf.c (obj_elf_previous): New function.
8074 (previous_section, previous_subsection): New vars.
8075 (obj_elf_section): Save current place in case DWARF code wants us
8076 to pop back to it. Handle unquoted section name as well as quoted
8077 section name. Don't crash on invalid strings.
8078 (obj_pseudo_table): Handle new pseudos "previous", "2byte", and
8079 "4byte".
8080
8081 * config/obj-elf.h: Don't include struc-symbol.h.
8082 (obj_elf_frob_symbol): Declare arg as struct symbol *.
8083
8084 * tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Local labels can start with
8085 "L" or "_.L_".
8086
8087 * write.c (write_relocs): New function, split off from
8088 write_contents. Use memset instead of bzero.
8089 (write_object_file): Apply write_relocs to each section before
8090 applying write_contents.
8091
8092 * read.c (read_begin): Call obstack_begin with values closer to 1K
8093 multiples.
8094 (read_a_source_file, big_cons, float_cons): Use memcpy instead of
8095 bcopy.
8096
ffffc8fb
ILT
8097Mon Jul 19 14:30:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8098
ce2ad89a
ILT
8099 * config/tc-m68k.c (m68k_ip_op): Don't decrement strend when
8100 calculating opP->isiz; this permits the expression size to be
8101 determined as well, later on.
8102
ffffc8fb
ILT
8103 * expr.c (clean_up_expression): Don't cancel the subtraction of
8104 undefined symbols.
8105
8106 * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R,
8107 switch to text section rather than data section.
8108
9d4dfbf3
KR
8109Mon Jul 19 12:35:39 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8110
8111 * config/tc-m68k.c (m68k_ip, case AINDX): Add 6 to operand
8112 expression (to take the pc-rel instruction itself into account)
8113 before using the expression, instead of after.
8114
04acd059
ILT
8115Fri Jul 16 08:56:04 1993 Ian Lance Taylor (ian@cygnus.com)
8116
1e9cf565
ILT
8117 * read.c (float_cons): Simplified parsing logic. If
8118 REPEAT_CONS_EXPRESSIONS is defined, accept a repeat count.
8119
8120 * symbols.c (colon): Rather than a special case for TC_HPPA,
8121 use new macro tc_frob_label.
8122 * config/tc-hppa.h (tc_frob_label): Define.
8123
8124 * config/tc-mips.c: Many changes to support simple assembler
8125 optimization.
8126 (insn_label, prev_insn, prev_prev_insn, dummy_opcode,
8127 prev_insn_valid, prev_insn_frag, prev_insn_where,
8128 prev_insn_fixp, prev_insn_is_delay_slot): New static
8129 variables.
8130 (insn_uses_reg, mips_no_prev_insn, mips_emit_delays,
8131 mips_align, s_stringer, s_mips_space): New static functions.
8132 (mips_define_label): New global function.
8133 (md_pseudo_table): For "ascii", "asciz", "asciiz", call
8134 s_stringer. Changed argument to float_cons from 0 or 1 to 'f'
8135 or 'd'. For "space" call s_mips_space.
8136 (md_begin): Call mips_no_prev_insn.
8137 (append_insn): Only insert necessary NOP instructions.
8138 (macro): Call mips_emit_delays before setting mips_noreorder.
8139 Increment and decrement mips_noreorder rather than using
8140 save_reorder_condition. Don't bother to use noreorder in
8141 M_L_DOB and M_L_DAB, since append_insn will not insert a NOP.
8142 (md_atof): Handle floating point numbers correctly for both
8143 big and little endian targets.
8144 (s_align, s_cons): Call mips_align rather than frag_align.
8145 (s_change_seg, s_cons): Call mips_emit_delays.
8146 (s_float_cons): Let float_cons do the work.
8147 (s_mipsset): Call mips_emit_delays when setting noreorder.
8148 * config/tc-mips.h (tc_frob_label): Define to be
8149 mips_define_label.
8150
04acd059
ILT
8151 * config/obj-ecoff.c (ecoff_build_symbols, ecoff_build_procs,
8152 ecoff_frob_files): Consistently use S_GET_VALUE rather than
8153 bfd_asymbol_value. Warn if taking difference of symbols in
8154 different segments.
8155
c978e704
ILT
8156Thu Jul 15 11:51:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8157
5276e361
ILT
8158 * config/obj-ecoff.c (ecoff_frob_file): Discard all open scopes,
8159 with a warning.
8160
2368ec63
ILT
8161 * config/obj-coffbfd.c (fixup_segment): If TC_M88K, don't adjust
8162 by md_pcrel_from if we are relocating against a symbol (we still
8163 need md_pcrel_from for a PC relative relocation within the same
8164 file).
8165 * config/tc-m88k.c (md_pcrel_from): Corrected return value.
cb441b38 8166 (omagic): Removed unused variable.
2368ec63 8167
c978e704
ILT
8168 * Preliminary support for m88k-coff.
8169 * configure.in (m88k-*-coff*): New target. Use coffbfd and
8170 m88kcoff.
8171 * config/m88kcoff.mt: New file.
8172 * read.c (lex_type): New macro LEX_AT to set lex type of '@'.
8173 (pseudo_set): Handle difference of symbols in different fragments
8174 by saving the entire expression as the value of the symbol.
8175 * symbols.c (resolve_symbol_value): Resolve difference
8176 expressions.
8177 * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
8178 "sdef" as a synonym for "def".
8179 * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
8180 TARGET_FORMAT.
8181 (S_IS_LOCAL): Any symbol which includes \001 in the name is local.
8182 * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
8183 m88k port up to date, and to add COFF support.
8184
85051959
ILT
8185Wed Jul 14 15:09:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8186
5868b1fe
ILT
8187 * Removed sy_forward and replaced it with an undefined expression
8188 as the value of a symbol.
8189 * struc-symbol.h (struct symbol): Removed sy_forward field. Added
8190 sy_resolved and sy_resolving single bit fields.
8191 * symbols.c (symbol_new): Don't initialize sy_forward field.
8192 (resolve_symbol_value): New function to adjust symbol value by
8193 fragment address, using recursion to resolve forward symbols.
8194 * symbols.h: Added prototype for new function.
8195 * read.c (pseudo_set): Set symbolP->sy_value to an undefined
8196 expression rather than setting symbolP->sy_forward.
8197 * write.c (write_object_file): Use resolve_symbol_value on
8198 symbols, keeping the common case (the old behaviour) inline.
8199 * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward
8200 handling (subsumed by write.c change).
8201 * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set
8202 sy_value rather than sy_forward.
8203 * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check
8204 expression segment rather than sy_forward.
8205 (yank_symbols): Use resolve_symbol_value.
8206 (crawl_symbols): Removed extra pass over symbols.
8207 * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c,
8208 config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over
8209 symbols which handled sy_forward; use resolve_symbol_value
8210 instead.
8211 * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol):
8212 Define.
8213 * config/obj-elf.c (obj_elf_stab_generic): Check expression
8214 segment rather than sy_forward.
8215 * config/obj-vms.c (VMS_Check_For_Main): Don't initialize
8216 sy_forward; do initialize sy_resolved and sy_resolving.
8217 * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward.
8218
85051959
ILT
8219 * Changes to keep a full expression as the value of a symbol, not
8220 just a longword:
8221 * struc-symbol.h: New field sy_value.
8222 * as.h: Include expr.h before struc-symbol.h.
8223 * expr.h: Use struct symbol rather than symbolS.
8224 * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value
8225 of sy_value field; compile unconditionally, not just if
8226 BFD_ASSEMBLER.
8227 * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally.
8228 * write.c (write_object_file): Set BFD symbol value to gas symbol
8229 value.
8230 * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h,
8231 config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h
8232 (S_GET_VALUE, S_SET_VALUE): Removed macro definitions.
8233 * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed.
8234 * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use
8235 S_GET_VALUE rather than ost_entry.n_value.
8236 * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c
8237 (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars),
8238 config/obj-coffbfd.c (symbol_to_chars): Get value to write out
8239 using S_GET_VALUE--don't assume it is already set.
8240 * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas
8241 symbol value.
8242 * config/obj-vms.c (various): Don't assign directly to
8243 S_GET_VALUE; use S_SET_VALUE instead.
8244
b50401c9
DE
8245Wed Jul 14 09:35:23 1993 Doug Evans (dje@canuck.cygnus.com)
8246
fd4b7c25
KR
8247 * configure.in: Make sparc64-*-aout* use bfd gas.
8248
b50401c9
DE
8249 * configure.in: Recognize h8300h.
8250
489a93f3
SC
8251Tue Jul 13 12:09:44 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8252
8253 * config/tc-h8500.c (line_comment_chars): Add hash.
8254 (parse_exp, skip_colonthing, build_bytes): Add support for
8255 R_H8500_HIGH16 relocation type.
8256
5d4ef296
KR
8257Mon Jul 12 11:15:34 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8258
8259 * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an
8260 attribute name. Handle `execinstr' attribute.
8261
99c24539
ILT
8262Mon Jul 12 07:22:28 1993 Ian Lance Taylor (ian@cygnus.com)
8263
8264 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
8265 there is another alternative for the instruction.
8266
ec1c752b
RP
8267Fri Jul 9 17:31:34 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
8268
8269 * doc/as.texinfo: updates for H8/300H
8270
d358969d
ME
8271Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
8272
8273 * config/tc-i960.c (md_create_short_jump, md_create_long_jump,
8274 md_number_to_chars, md_section_align): Adjusted to use valueT,
8275 addressT, to match tc.h.
8276
ff4cac38
KR
8277Thu Jul 8 14:15:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8278
8279 * config/tc-sparc.c (s_common): Revamp to handle both syntaxes,
b2565433 8280 independent of format.
ff4cac38 8281
42206996
DE
8282Thu Jul 8 07:25:25 1993 Doug Evans (dje@canuck.cygnus.com)
8283
8284 * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h.
8285
e9baeb46
DZ
8286Wed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
8287
8288 * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross
8289 build; also recognize h8300-*-coff
8290
76c64db0
ILT
8291Wed Jul 7 10:21:24 1993 Ian Lance Taylor (ian@cygnus.com)
8292
e154ecf4
ILT
8293 * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
8294 core just because somebody uses a label before it is defined.
8295
76c64db0
ILT
8296 * config/mips-opcode.h: Moved to opcode/mips.h.
8297 * config/tc-mips.c: Include opcode/mips.h rather than
8298 mips-opcode.h.
8299 (append_insn): An extra NOP is only needed after instructions
8300 which set HI or LO, not after instructions which read it.
8301 (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
8302 (macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
8303 * config/tc-mips.h (struct mips_opcode): Don't define.
8304 * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
8305 Set to $(srcdir)/../include/opcode/mips.h.
8306
8307 Get the MIPS assembler up to speed with other gas changes:
8308
8309 * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
8310 Removed; don't change the symbol value.
8311 (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
8312 bfd_asymbol_value rather than S_GET_VALUE to include section
8313 vma in symbol value.
8314 (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
8315 doesn't output them. Set the vma of sections.
8316 * config/obj-ecoff.h: Don't define obj_frob_symbol.
8317 * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
8318 longer necessary.
8319 (various): use valueT rather than long.
8320
e28e0b95
KR
8321Wed Jul 7 08:33:30 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8322
fd4b7c25
KR
8323 * config/tc-sparc.h (ENV64): Define for v9.
8324
8325 * config/tc-sparc.c (s_xword): For numbers, call big_cons.
8326 (sparc_ip, md_apply_fix, tc_gen_reloc): Handle some sparc64
8327 relocation types.
8328 (md_number_to_chars): Handle 8-byte value.
8329
8330 * config/obj-elf.h (elf_symbol): For v9, use 64-bit symbol type.
8331
e28e0b95
KR
8332 * as.h (valueT): Typedef moved here.
8333 * struc-symbol.h (valueT): ...from here.
8334 * write.c (write_object_file): Locals from_addr, to_addr,
8335 table_addr are now addressT. Supply prototype for bfd_alloc for
8336 now.
8337 (fixup_segment): Local add_number is now valueT. Correct some
8338 range-checking bugs.
8339 (relax_align): Type `int' should be sufficient for the exponent.
8340 (fix_new): Argument offset is type offsetT. Locals size and
8341 newsize are type valueT.
8342 * write.h (struct fix): Fields fx_offset and fx_addnumber are now
8343 type valueT.
8344 (fix_new): Fix prototype.
8345 * symbols.c (symbol_new): Symbol value is type valueT.
8346 (S_SET_VALUE, S_GET_VALUE): Likewise.
8347 (S_IS_*): Specify int return type explicitly.
8348 * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed
8349 prototypes.
8350 * read.c (s_comm): Values read are type valueT.
8351 * expr.h (expressionS): Field X_add_number is an offsetT.
8352 * tc.h (md_create_long_jump, md_create_short_jump,
8353 md_section_align): Addresses are now type addressT.
8354 (md_number_to_chars, md_apply_fix): Pass value as valueT.
8355 * config/tc-i386.c (md_create_short_jump, md_create_long_jump,
8356 md_number_to_chars, md_section_align): Adjusted.
8357 * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make
8358 gcc shut up.
8359 (md_create_short_jump, md_create_long_jump, md_number_to_chars,
8360 md_section_align): Adjusted.
8361
8362 * config/tc-sparc.c (s_reserve): Permit use for other than a.out
8363 format.
8364 (s_common): Handle Solaris-2 version.
8365
8366 * config/ho-generic.h (free): Returns void if __STDC__.
8367
8368 * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file,
8369 elf_file_symbol): Declare.
8370
8371 * expr.c (floating_constant, integer_constant): Now return void.
8372
8373Thu Jul 1 12:13:43 1993 Ian Lance Taylor (ian@cygnus.com)
8374
8375 * configure.in: Match on sparc*-fujitsu-none rather than
8376 sparclite*-fujitsu-none.
8377
267389df
ILT
8378Wed Jun 30 11:12:02 1993 Ian Lance Taylor (ian@cygnus.com)
8379
8380 * read.c (cons): Conditionalize parsing of expression. Move
8381 putting value into object file into separate function. Separate
8382 out MRI and WANT_BITFIELDS cases into separate functions.
8383 (emit_expr): New function to write data into object file.
8384 Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
8385 processor types.
8386 (parse_bitfield_cons): New function to parse bitfield expressions
8387 as used by i960 assemblers. Only compiled if
8388 BITFIELD_CONS_EXPRESSIONS is defined.
8389 (parse_mri_cons): New function to parse MRI style strings. Only
8390 compiled if MRI is defined.
8391 (parse_repeat_cons): New function to parse repeat counts. Only
8392 compiled if REPEAT_CONS_EXPRESSIONS is defined.
8393 * read.h (emit_expr): Added declaration of new function.
8394 * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
8395 * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
8396 * config/tc-hppa.c (parse_cons_expression_hppa): New function to
8397 parse a HPPA expression, rather than special case in cons
8398 function.
8399 (cons_fix_new_hppa): New function to emit an HPPA fixup, rather
8400 than special case in emit_expr function.
8401 * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
8402 Define to use new functions from tc-hppa.c.
8403 * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
8404 (WANT_BITFIELDS): Removed; now obsolete.
8405 * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
8406 * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
8407 NS32K fixup, rather than special case in emit_expr function.
8408 * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
8409 cons_fix_new_ns32k. Also use PARAMS rather than checking
8410 __STDC__.
8411 * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.
8412
8413 * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
8414 Don't core dump if gas has no information about a section.
8415
8416Wed Jun 30 06:21:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8417
fd4b7c25
KR
8418 * config/tc-sparc.c (md_begin): If sparcv9 is defined, reset
8419 current_architecture to v9 automatically.
8420
8421 * config/tc-sparc.h (TARGET_FORMAT): Use elf64-sparc for v9.
8422
8423 * config/tc-sparc64.h, config/tc-sparc64.c: New files.
8424 * configure.in: Use sparc64 cpu files for v9, and default to elf
8425 format.
8426
267389df
ILT
8427 * write.c (relax_and_size_seg): Always fully process a section.
8428 Section size is last frag's (vm)address plus its size. If no
8429 relocations are present, force SEC_RELOC flag clear.
8430 (dump_section_relocs): New debugging routine.
8431 (adjust_reloc_syms): New routine, broken out from write_contents.
8432 Don't adjust relocs that are already relative to section symbol.
8433 Look for obj_fix_adjustable macro to know what else to skip,
8434 instead of obj_write_symbol. Look for section symbol stored in
8435 section information.
8436 (write_object_file): Map adjust_reloc_syms over all sections.
8437 (write_contents): Clear SEC_RELOC flag if no relocations are
8438 found.
8439
8440 * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to
8441 keep it quiet.
8442
8443 * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER.
8444
e28e0b95
KR
8445Fri Jun 25 14:42:53 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8446
8447 * Makefile.in (all, dvi, info, install-info, clean-info): do not
8448 echo recursion lines.
8449 (install-info, clean-info): collapse into the dvi and info rule.
8450
fd4b7c25
KR
8451Fri Jun 25 10:47:24 1993 Doug Evans (dje@canuck.cygnus.com)
8452
8453 * config/tc-sparc.c (sparc_ip): Remove support for %d/%q fp regs.
8454 All fp regs are now specified as %f.
8455 (priv_reg_table): fpq -> fq.
8456
267389df
ILT
8457Fri Jun 25 03:43:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8458
8459 * as.h (strstr): Disable declaration for now.
8460 (fprint_value, sprint_value): Declare.
8461
8462 * subsegs.c (subseg_new_rest): Use memset to clear new frag.
8463 (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields.
8464
8465 * expr.c (expr_part): Made sanity checks a.out-specific.
8466 (expr): Disabled sanity checks.
8467
8468 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for
8469 section symbol.
8470 * subsegs.c (subseg_change): Initialize section symbol pointer
8471 when setting up a new section.
8472
8473 * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata
8474 field back at gas symbol structure.
8475
8476 * symbols.c (colon): Cast obstack_next_free value to char* before
8477 doing arithmetic on it.
8478 * subsegs.c (subseg_new_rest): Likewise.
8479 * as.h (frag_now_fix): Likewise.
8480
8481 * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of
8482 calling bfd_make_section_old_way directly, and call subseg_set
8483 instead of subseg_change. Now returns void.
8484 (obj_elf_write_symbol): Only check local symbols for now.
8485 (elf_stab_symbol): Now static and void, and disabled until it
8486 works completely.
8487 (obj_elf_size): For expression values, fail silently for now.
8488 (obj_symbol_new_hook): Do nothing.
8489
8490 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22
8491 relocation.
8492 (s_local) [OBJ_ELF]: New function.
8493 (md_pseudo_table) [OBJ_ELF]: Call it for "local".
8494 (s_common): Rearrange to handle Solaris .common pseudo, which may
8495 sometimes use bss space instead of common.
8496 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field.
8497
a8285504
DZ
8498Thu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8499
8500 * configure.in: set host config to hpux for hppa*-hp-hpux
8501
267389df
ILT
8502Thu Jun 24 13:35:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8503
8504 * app.c (app_pop, app_push): Fix bug reported by Chris Arthur.
8505
8506Tue Jun 22 01:04:23 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8507
8508 * subsegs.c (subseg_new): Don't special-case a.out -R flag here.
8509 * config/obj-aout.c (s_sect): Do it here.
8510
8511 * as.h (BAD_CASE): Don't make some lame compilers think we want
8512 substitution inside strings.
8513
8514 * as.c (print_version_id): New function, split off from main.
8515 (main): Call it.
8516 * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id
8517 for -V. Ignore -Q and -s options for now.
8518
a8285504
DZ
8519Mon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8520
8521 * Makefile.in: make installation & builds work again for crosses
8522
267389df
ILT
8523Sun Jun 20 18:18:26 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8524
8525 * listing.c (list_symbol_table): Rewrite to print wide (>32 bits)
8526 symbol values correctly.
8527
8528 * write.c (write_object_file): Deleted unused variables.
8529 (fixup_segment): Use sprint_value.
8530
8531 * messages.c (sprint_value, fprint_value): New routines.
8532
8533 * config/obj-elf.c (elf_stab_symbol): Now returns void.
8534 (obj_elf_stab_generic): Fix typo in logic.
8535
8536 * Makefile.in (INCLUDES): Look in ../bfd for bfd.h.
8537
8538 * as.h (addressT, offsetT): New types, using BFD types if
8539 available.
8540 (relax_addressT, struct frag): Use them.
8541 * struc-symbol.h (valueT, struct broken_word): Likewise.
8542
8543 * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
8544 * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const.
8545
9126738c 8546Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
132239bf 8547
9126738c
DZ
8548 * Makefile.in: canonicalize install.sh; for use within
8549 this directory (and subdirs)
8550
267389df
ILT
8551Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
8552
8553 * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
8554 specified, should have both S1 and S2 fields identical
8555 If only finding the problem was as fast as fixing the bug !!!!
8556
8557Tue Jun 15 16:01:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8558
8559 * write.c (write_contents): Do write out non-loadable sections.
8560 Debug sections can fall in this category.
115147fb 8561
267389df
ILT
8562 * read.c (s_app_file): Call elf_file_symbol for ELF files.
8563 * config/obj-elf.c (elf_file_symbol): New function.
8564
8565 * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_...,
8566 added argument to specify section base name.
8567 (obj_elf_stab_generic): Renamed from ..._stab. New argument
8568 specifies section base name.
8569 (obj_elf_stab): New function, calls obj_elf_stab_generic with
8570 ".stab" as section base name.
8571 (obj_elf_xstab): New function, calls obj_elf_stab_generic.
8572 (obj_elf_type): Handle "object". Use bitwise-or to merge in
8573 symbol flags rather than simply replacing, so global/local flags
8574 are preserved.
8575 (obj_elf_ident): Rewrite.
115147fb 8576
a00ee522
DZ
8577Tue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8578
8579 * Makefile.in: remove parentdir support; use INSTALL_XFORM
8580
8581Wed Jun 9 11:26:07 1993 Ian Lance Taylor (ian@cygnus.com)
8582
8583 * config/tc-i386.c (md_pseudo_table): .align uses a power of two
8584 for any a.out target, not just Linux and 386BSD.
8585 * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out
8586 target.
8587
267389df
ILT
8588Mon Jun 7 13:33:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8589
8590 * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They
8591 don't exist or duplicate other inclusions.
8592
8593 * config/tc-vax.h (NO_RELOC): Define.
8594
fd4b7c25
KR
8595Mon Jun 7 09:55:03 1993 Doug Evans (dje@canuck.cygnus.com)
8596
8597 * config/tc-sparc.c (sparc_ip): Fix parsing of asi number.
8598 Fix error message.
8599
267389df
ILT
8600Sat Jun 5 19:32:52 1993 Torbjorn Granlund (tege@nada.kth.se)
8601
8602 * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions.
8603 * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first
8604 char to reg_prefix instead of to 'r'.
8605 (calcop): Change calls to get_reg.
8606 (calcop): Handle new case 'x' to set reg_prefix.
8607 (calcop): Set reg_prefix to 'r' after each call to get_reg.
8608 (cmpslot): Add 88110 conditions.
8609
8610 * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency.
8611
8612 * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer
8613 before returning.
8614
8615 * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics
8616 adjacent; mov.s and mov.d swapped.
8617 (m88k_opcodes): Fix typo `r2' -> `2'.
8618
a00ee522
DZ
8619Fri Jun 4 15:59:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8620
8621 * config/h8300.c: Support for H8/300-H opcodes.
8622
8623 * config/obj-coffbfd.c (w_strings): String table length is 4
8624 bytes, no matter what the host int size is.
8625
8626 * configure.in (alpha-*-osf*): New.
8627
68ad4c92
ILT
8628Fri Jun 4 07:51:18 1993 Ian Lance Taylor (ian@cygnus.com)
8629
47fcc4f5
ILT
8630 * configure.in (mips-*-ecoffl*): New target; use ecoff and
8631 mips-lit.
8632 (mips-*-ecoff*): Added trailing '*'.
8633
68ad4c92
ILT
8634 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
8635 first FDR in a file to be zero.
8636
75776695
KR
8637Thu Jun 3 14:09:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8638
b7067d7f
KR
8639 * Makefile.in (VERSION): Jump to 2.1.4.
8640
75776695
KR
8641 * config/ho-hppabsd.h: New file, from Peter Hoogenboom.
8642
8643 * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for
8644 ECOFF format.
8645
8646Tue Jun 1 15:21:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8647
8648 * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a
8649 separate '851 mmu.
8650
8651 * config/obj-elf.c, config/obj-elf.h: Update for new type, macro,
8652 and routine names. Assuming 32 bits for now.
8653
8654 * config/obj-elf.c (elf_frob_file): Look for macro
8655 elf_tc_final_processing_hook, instead of assuming a function
8656 always exists.
8657 * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from
8658 tc_final_processing_hook.
8659 * config/tc-hppa.h (elf_tc_final_processing_hook): Use it.
8660
8661 * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros
8662 moved here from obj-elf.h.
8663 * config/obj-elf.h: Don't include CPU-specific header files.
8664
8665Sun May 30 16:49:37 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu)
8666
8667 * configure.in: configurations should match on 'hppa*' not 'hppa'.
8668
8669 * read.c: Add support for HPPA assembly language syntax (denoted
8670 with '#ifdef TC_HPPA').
8671
8672 * symbols.c: Add support for HPPA assembly language syntax (denoted
8673 with '#ifdef TC_HPPA').
8674
8675 * write.c (write_contents): Add support for HPPA-style
8676 relocations.
8677
8678 * config/obj-elf.c: Stab symbols weren't written properly.
8679 (obj_elf_version):
8680 (obj_elf_desc):
8681 (obj_elf_write_symbol):
8682 (obj_elf_write_symbol_p):
8683 (obj_elf_frob_symbol):
8684 (elf_stab_symbol):
8685 (elf_frob_file):
8686
8687 * config/tc-hppa.c: Support for HPPA symbol extension sections.
8688 Remove some unused code. Support for HPPA assembly language
8689 syntax.
8690
8691 * app.c:
8692
8693 * symbols.c:
8694
8695 * config/obj-elf.h:
8696 (obj_write_symbol):
8697 (obj_frob_file):
8698 (elf_tc_symbol):
8699 (elf_tc_make_sections):
8700
8701 * config/tc-hppa.h:
8702
8703Sun May 30 21:44:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8704
8705 * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume
8706 hash_new will have succeeded if it returns.
8707 * config/tc-a29k.c (md_begin): Likewise.
8708
8709 * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is
8710 const.
8711 (mode_from_disp_size, opcode_suffic_to_type): Now inline under
8712 gcc.
8713 (fits_in_{signed,unsigned}_{byte,word}): Likewise.
8714
8715 * expr.c: Delete register declarations; gcc ignores them anyways.
8716
8717Fri May 28 19:03:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8718
8719 * hash.c (hash_new): Use xmalloc, since many callers don't check
8720 for failure.
8721
49864cfa
KR
8722Thu May 27 13:02:15 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8723
8724 * frags.c (zero_address_frag, bss_address_frag): These are
8725 external.
8726
8727 * tc.h (md_reloc_size): This is const.
8728 * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c
8729 (md_reloc_size): Now const.
8730
8731 * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete
8732 trailing commas.
8733 * as.h (enum _segT): Ditto.
8734
8735 * struc-symbol.h (N_TYPE_seg): This should be const.
8736
8737Thu May 27 11:43:59 1993 Michael Meissner (meissner@osf.org)
8738
8739 * config/obj-ecoff.c (add_file): Cast file_name to char * in
8740 listing_source_file call.
8741
8742 * config/obj-elf.c (elf_stab_symbol_string): Cast first argument
8743 of subseg_new call to eliminate const attribute.
8744 (obj_elf_stab): Ditto.
8745 (obj_symbol_new_hook): Cast first argument of bzero call to char *.
8746
8747 * read.c (s_align_bytes): Properly record alignment.
8748
8749 * expr.c (__): Undefine __ macro before use, since OSF/1 uses it
8750 for the prototype/no prototype macro.
8751
8752 * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be
8753 void.
8754
8755 * as.h (relax_stateT enum): Delete trailing comma.
8756
9a7d824a
ILT
8757Thu May 27 11:07:50 1993 Ian Lance Taylor (ian@cygnus.com)
8758
8759 * app.c (do_scrub_begin): Let line_comment_chars override
8760 comment_chars.
8761 (do_scrub_next_char): If a line comment character is not at the
8762 start of a line, treat it as a comment character if it is one.
8763 For a CPP line comment use pseudo-op .appline rather than .line.
8764 * input-scrub.c (logical_input_line): Make int rather than
8765 unsigned.
8766 (input_scrub_push, input_scrub_begin): Initialize
8767 logical_input_line to -1 rather than 0.
8768 (bump_line_counters): Increment logical_input_line.
8769 (new_logical_line): If line_number is -2, decrement
8770 logical_input_line.
8771 (as_where): Use logical_input_line even if it is 0.
8772 * read.h (s_app_file prototype): Now takes an int argument.
8773 * read.c (potable): Make .appfile call s_app_file with 1. New
8774 .appline pseudo-op calls s_app_line.
8775 (s_app_file): If .appfile, call new_logical_line with -2 to
8776 account for newline inserted by do_scrub_next_char. If listing,
8777 call listing_source_file.
8778 (s_app_line): New function to handle fake pseudo-op .appline.
8779 * config/obj-coff.c (obj_pseudo_table): Make .appline call
8780 obj_coff_ln.
8781 (obj_coff_ln): Added argument to indicate whether .appline.
8782 * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
8783 obj_coff_ln.
8784 (obj_coff_ln): Added argument to indicate whether .appline.
8785 * config/tc-mips.c (s_file): Pass argument to s_app_file.
8786
61f14fb0
ILT
8787Tue May 25 11:59:07 1993 Ian Lance Taylor (ian@cygnus.com)
8788
8789 * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast.
8790
8791Thu May 20 19:14:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8792
8793 * config/tc-m68k.c (md_apply_fix_2): Straighten out check for
8794 invalid values.
8795
6eef4543
SC
8796Wed May 19 07:33:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8797
8798 * config/tc-h5000.c (build_bytes): Understand @rd mode and build
8799 relocations correctly.
8800
f8f61478
KR
8801Mon May 17 15:06:26 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8802
6eef4543
SC
8803 * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because
8804 it's wrong.
8805
f8f61478
KR
8806 * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn
8807 if value is out of range.
8808
8809 Patch from Minh Tran-Le:
8810 * config/tc-i386.c (i386_operand): For in/out port register used
8811 as base reg, include InOutPortReg in operand type.
8812 (MATCH): Accept overlap value of InOutPortReg.
8813
8814Mon May 17 09:29:34 1993 Ian Lance Taylor (ian@cygnus.com)
8815
8816 * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab):
8817 Add calls to listing routines to produce combined source/assembler
8818 listings.
8819 (obj_ecoff_stab): Create a file pointer if none used yet.
8820 (ecoff_frob_file): Set symcount to correct value.
8821
8822Fri May 14 06:53:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8823
8824 * Makefile.in (VERSION): Bump to version 2.1, in preparation for
8825 release.
8826
8827 * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE):
8828 Define in terms of constants, not C structure sizes.
8829
8830 * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files.
8831
8832Thu May 13 17:01:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8833
8834 * config/obj-aout.c (obj_header_append): Don't define if it's
8835 defined as a macro.
8836 * config/obj-hp300.h (obj_header_append): Define it as a macro.
8837 * config/obj-hp300.c (hp300_header_append): New function.
8838
8839 * Makefile.in (distclean): Don't bother cleaning up doc files;
8840 they aren't going to be in this directory.
8841
204ff785
ILT
8842Thu May 13 07:51:35 1993 Ian Lance Taylor (ian@cygnus.com)
8843
f8f61478
KR
8844 * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute
8845 symbols.
8846
204ff785
ILT
8847 * tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
8848 * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
8849
65824763
KR
8850Mon May 10 06:01:12 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8851
204ff785
ILT
8852 * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with
8853 initialization.
8854
65824763
KR
8855 * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff.
8856
21bb48b9
ILT
8857Wed May 5 14:00:49 1993 Ian Lance Taylor (ian@cygnus.com)
8858
8859 * config/tc-mips.c (macro): Correct floating point double word
8860 loads and stores for big endian target.
8861
e7c2f943
KR
8862Wed May 5 08:39:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8863
8864 * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_*
8865 calls. Deleted some unused code.
8866 * config/obj-coff.c: Likewise.
8867
8868 ELF support, mostly contributed by Utah:
8869 * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line,
8870 obj_elf_type): Rewrite.
8871 (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol,
8872 obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size):
8873 New functions.
8874 (obj_elf_ident): Dummy.
8875 * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol,
8876 TARGET_SYMBOL_FIELDS): New macros.
8877 (gdb_section): New variable decl.
8878
8879 * config/tc-i386.c (md_atof): Return zero, not empty string, on
8880 success.
8881
8882 BFD_ASSEMBLER conditional changes:
8883 * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header):
8884 Don't define these.
8885 (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions.
8886 (fetch_coff_debug_section): Ditto.
8887 (obj_coff_endef): Call fetch_coff_debug_section.
8888 (struct line_no): New type.
8889 (c_symbol_merge): New way for copying aux fields.
8890 (c_dot_file_symbol): Put symbol in absolute section, and set flag
8891 BSF_DEBUGGING.
8892 (function_lineoff): New symbol.
8893 (function_lineoff, text_lineno_number, our_lineno_number,
8894 lineno_lastP): Don't define.
8895 (c_line_new): Don't define.
8896 (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh,
8897 placeholders, until
8898 line-number recording gets implemented.
8899 (obj_new_symbol_hook): New code for handling aux fields.
8900 (add_lineno, add_linesym): New functions.
8901 (obj_coff_ln): Call add_lineno, not c_line_new.
8902 (obj_coff_endef): New code for handling symbol names. New lineno
8903 code. Look for section name "*DEBUG*" for debugging section.
8904 (align, coff_check_file_symbols, obj_coff_section,
8905 coff_frob_file): New functions.
8906 * config/obj-coff.h: Reordered some includes.
8907 (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg,
8908 DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't
8909 define these.
8910 (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros.
8911 (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing
8912 aux entries. Most SA_* macros now use it unconditionally.
8913 (S_*): Use `bsym' field, and access BFD private data.
8914 (SF_*): Use `sy_flags' symbol field for most of these.
8915 (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't
8916 define.
8917 (*_section_header): Don't define.
8918 * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed
8919 interface.
8920 (tc_gen_reloc) [I386COFF]: New function.
8921 (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define.
8922 * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New
8923 macros.
8924
8925 * config/obj-coff.c (stack_init): Don't do assignments inside
8926 conditions.
8927 (obj_coff_def): Simplified handling of symbol name a bit.
8928 (tag_insert): Name argument is now pointer to CONST.
8929 (obj_crawl_symbol_chain): Commented out.
8930
8931 * config/obj-coff.h: Use PARAMS macro in prototypes.
8932
8933 * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect
8934 through frchainP pointer if it is null.
8935
8936 * configure.in: Warn if BFD mode is explicitly turned off but is
8937 required by specified target.
8938 (mips ecoff targets): Don't need to set bfd_gas here; it gets
8939 taken care of later.
8940
8941 * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward
8942 field.
8943 (yank_symbols): Merge symbols only if sy_forward is null.
8944
8945 * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already
8946 defined.
8947
8948 * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not
8949 pointer.
8950 * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto.
8951
8952 * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting
8953 with "." is a local label.
8954
8955 * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config
8956 files.
8957
8958 * config/te-linux.h, config/te-386bsd.h: New config files.
8959 * configure.in (i386-*-linux, i386-*-bsd): Use them.
8960 * config/tc-i386.h (TARGET_FORMAT): Select format based on target
8961 environment.
8962 (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux.
8963
5d6cfa60
ILT
8964Wed May 5 13:14:01 1993 Ian Lance Taylor (ian@cygnus.com)
8965
8966 * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
8967 to want it that way.
8968 (ecoff_build_symbols): Turn local st_Proc symbols into
8969 st_StaticProc symbols. Set index field of external st_Proc and
8970 st_staticProc symbols correctly.
8971 * config/tc-mips.h (NO_LISTING): Don't define. People might want
8972 listings.
8973
e7c2f943
KR
8974Tue May 4 21:22:54 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8975
8976 * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New
8977 files.
8978 * configure.in (m68k-*-hpux): Use them.
8979
8980 * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if
8981 defined, otherwise zero.
8982
8983 * config/aout_gnu.h (OMAGIC): Don't define if already defined.
8984
5d6cfa60
ILT
8985Mon May 3 15:59:32 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8986
8987 * config/tc-sparc.c (sparc_ip): Allow any abs expression as an
8988 address space number.
8989
8990Wed Apr 28 19:11:22 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8991
8992 * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all.
8993
8994 * config/tc-a29k.c: Include ctype.h.
8995 (define_some_regs): Added special-purpose registers for 29050.
8996
e7c2f943
KR
8997 * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/".
8998
8999 * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here.
9000 (change_to_section): Set it here instead.
9001
a1387260
ILT
9002Wed Apr 28 13:40:29 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
9003
9004 * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
9005 hasn't been seen yet.
9006 (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
9007
4a1bbbe7
SC
9008Mon Apr 26 18:29:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9009
9010 * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
9011 SH.
9012
be2f6bd6
ILT
9013Mon Apr 26 12:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
9014
9015 * expr.c (operand): Fix unary plus operator (previously was the
9016 same as '~' operator!).
9017
9018Wed Apr 21 00:20:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9019
9020 * write.c (cvt_frag_to_fill): Define even if BFD is defined.
9021 (write_object_file): Do define if BFD_ASSEMBLER. Invoke
9022 obj_check_file_symbols if defined. Call verify_symbol_chain_2
9023 instead of open-coding it. Fix some bugs in patching up symbol
9024 chain.
9025 (relax_segment): Make some code we "ought to be able to" use for
9026 all targets no longer conditionalized on ns32k target; instead, do
9027 it always, and if the appropriate conditions fail, abort.
9028
9029 * symbols.c (DEBUG): Enabled.
9030 (symbol_new): Make sure bfd_make_empty_symbol works.
9031 (verify_symbol_chain_2): New funcion; takes one symbol as
9032 argument, anywhere in the chain.
9033 (dollar_label*): Use default initializers.
9034
9035 * as.c (perform_an_assembly_pass): Call md_begin here...
9036 (main): ...and not here.
9037
9038 * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out.
9039 (tc_frob_symbol): New macro: Get rid of symbols in reg_section.
9040
9041 * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER.
9042 (add_fix, add_frag): Now functions instead of macros.
9043 (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num,
9044 s_data1, s_data2, s_bss): Use new *_section names, for
9045 compatibility with BFD_ASSEMBLER mode; rewrite switch statements
9046 to handle non-integral segT.
9047 (tc_coff_fix2rtype, tc_aout_fix_to_chars,
9048 tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER.
9049 (tc_gen_reloc): New routine for BFD_ASSEMBLER.
9050 (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to
9051 md_apply_fix_2; new md_apply_fix definition varies interface
9052 depending on BFD_ASSEMBLER.
9053 (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section
9054 names.
9055
9056 * config/obj-vms.c: Include config.h.
9057 (version_string): Delete declaration.
9058 (Write_VMS_MHD_Records): Use GAS_VERSION instead.
9059 (vms_resolve_symbol_redef): New function, taken from VMS code in
9060 symbols.c.
9061 (_doprnt): Deleted.
9062 (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct,
9063 VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix,
9064 VMS_Psect_Spec): Fixed to compiler under traditional C.
9065 * config/obj-vms.h: Use PARAMS macro.
9066 (vms_resolve_symbol_redef): Declare.
9067 (RESOLVE_SYMBOL_REDEFINITION): New macro.
9068 * symbols.c (colon): Remove some VMS-specific code, look for
9069 RESOLVE_SYMBOL_REDEFINITION macro instead.
9070
9071 * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc
9072 instructions.
9073
9074 * config/tc-i386.c: Reordered some functions so inlining might
9075 work. Use PARAMS in function declarations.
9076 (reloc): New routine.
9077 (md_assemble): Rearrange switch statements to work with
9078 non-integral segT.
9079
9080 * struc-symbol.h [BFD_ASSEMBLER]: Undefine
9081 SYMBOLS_NEED_BACKPOINTERS before defining it.
9082
9083 * subsegs.c (subseg_new_rest): Now static.
9084
9085 * read.c (pseudo_set): Better error message for difference of
9086 symbols in different frags.
9087
9088 * Makefile.in (check): Pass down some new variables, indicating
9089 pathname or program name for cc, nm, objdump.
9090
9091 * as.h (OUTPUT_FLAVOR): New macro.
9092 * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR.
9093
9094 * configure.in: Initialize bfd_gas properly. Warn that ELF
9095 support is incomplete.
9096
9097Thu Apr 15 22:39:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9098
9099 * read.c (float_cons): Accept null pointer return from md_atof.
9100 * config/tc-m68k.c (md_atof): Return null for success.
9101 * config/tc-sparc.c (md_atof): Ditto.
9102
97a6070c
RP
9103Thu Apr 15 16:04:39 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9104
9105 * doc/as.texinfo: formatting and comment cleanups; show SPARC
9106 alternative options in same style as other machines; simplify some
9107 conditional use; include GPL as separate file (from texinfo dir)
9108
9109 * doc/Makefile.in: (as.info) include directory containing GPL in
9110 makeinfo search path
9111
9112 * doc/h8.texi: new file; conditional settings for GAS manual
9113 on Hitachi chips
9114
9115Tue Apr 13 15:31:40 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9116
9117 * doc/as.texinfo: mention SPARC architecture options.
9118
be2f6bd6
ILT
9119Fri Apr 9 17:43:11 1993 Ken Raeburn (raeburn@cygnus.com)
9120
9121 * configure.in: Rearranged whitespace in per-host/per-target
9122 sections. Added hooks for dropping in HPPA support (not included
9123 yet). Separate out overrides of variables based on target format
9124 and bfd-gas selection from actual target-specific commands. Add
9125 error message for recognized but unsupported format name.
9126
349f20de
ILT
9127Fri Apr 9 09:05:47 1993 Ian Lance Taylor (ian@cygnus.com)
9128
9129 * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
55ff56bd 9130 symbolic header match cline in FDR; the native linker seems to
349f20de
ILT
9131 want that.
9132
5316696f
DZ
9133Thu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9134
9135 * doc/Makefile.in: as.texinfo is in $(srcdir). Use
9136 $(srcdir)/as.texinfo explicitly in several places
9137
8ac18b21
RP
9138Thu Apr 8 15:15:02 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9139
132239bf 9140 * doc/Makefile.in: update dvi, clean targets for new source
69cb5925 9141 file structure
8ac18b21 9142
d565311f
ILT
9143Thu Apr 8 12:52:46 1993 Ian Lance Taylor (ian@cygnus.com)
9144
9145 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
9146 rather than undefining know.
8ac18b21 9147 * configure.in: Match ultrix*, not just ultrix.
d565311f 9148
0742a6fd
RP
9149Wed Apr 7 20:18:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9150
9151 * doc/as.texinfo: converted conditional markup to use new
9152 Texinfo facilities, avoiding m4.
9153
9154 * doc/as-all.texinfo, all.m4, pretex.m4: deleted.
9155
9156 * doc/Makefile.in: recast doc configuration to use a link to an
9157 included texinfo file.
9158
9159 * doc/all.texi: settings for generic form of documentation.
9160
9161Tue Apr 6 11:56:21 1993 Ian Lance Taylor (ian@cygnus.com)
9162
9163 * read.c (cons): Zero out frag when creating reloc.
9164
367fc835
ILT
9165Mon Apr 5 09:41:58 1993 Ian Lance Taylor (ian@cygnus.com)
9166
84e4920f
ILT
9167 * config/tc-mips.c (gp_reference): Certain magic symbols can never
9168 be referenced off the GP register.
9169
367fc835
ILT
9170 * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
9171 when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
9172 LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
9173
9174 * config/te-irix.h: New file; irix needs a different LOCAL_LABEL
9175 definition from other MIPS targets.
9176 * configure.in (mips-*-irix): Use emulation irix.
9177
dd4227d3
SC
9178Sun Apr 4 15:21:09 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9179
9180 * config/tc-h8500.c: Get relax size of branch instructions right,
9181 (get_operand): Parse @sp+ correctly.
9182
be2f6bd6
ILT
9183Fri Apr 2 15:59:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9184
9185 * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include
9186 COFF section header field.
9187
9188 * configure.in: Print error message if host or target is not
9189 supported.
9190
9191 * configure.in: If with-bfd-assembler, use obj-coff instead of
9192 obj-coffbfd.
9193
9194 * config/ho-generic.h: Include string.h.
9195
ed364bb6
ILT
9196Fri Apr 2 08:54:57 1993 Ian Lance Taylor (ian@cygnus.com)
9197
0433135d
ILT
9198 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
9199 '$' as local, for any object file format.
9200
477b4b04
ILT
9201 * config/tc-mips.c (macro): Optimizations to branching code and a
9202 couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph
9203 Campbell).
9204
ed364bb6
ILT
9205 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
9206 * configure.in (mips-sgi-irix*): Set gas_host to irix.
9207
670a50eb
ILT
9208Wed Mar 31 17:53:54 1993 Ian Lance Taylor (ian@cygnus.com)
9209
9210 * subsegs.c (subseg_new): Set output_section of new section.
9211 * as.c (perform_an_assemly_pass): Don't set output_section here.
9212 * expr.c (expr_part, expr): Turn off section assertions for ECOFF,
9213 since it has additional sections.
9214 * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
9215 not bss_section.
9216 * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
9217 ecoff_undefined field.
9218 * config/obj-ecoff.c (obj_symbol_new_hook): Initialize
9219 ecoff_undefined field.
9220 (add_file): If using stabs, just output a stabs symbol rather than
9221 creating a new fdr.
9222 (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
9223 it with get_absolute_expression, rather than skipping it by hand.
9224 (obj_ecoff_loc): If using stabs, just output a stabs symbol rather
9225 than ECOFF line number information.
9226 (obj_ecoff_stab): Accept non-zero values for stabs line number.
9227 (ecoff_build_symbols): Set ifilesym correctly. Set storage class
9228 to small, undefined and/or readonly sections if appropriate.
9229 Don't output symbol names containing \001 characters.
9230 (ecoff_frob_file): Make sure at least one fdr is output.
9231 * config/tc-mips.h: Define TC_MIPS.
9232 * config/tc-mips.c (g_switch_value): New static variable.
9233 (md_assemble): Set gp size of output BFD.
9234 (gp_reference): New function; returns 1 if expression can be
9235 accesssed via gp. Always returns 0 if not using ECOFF.
9236 (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
9237 possible.
9238 (macro): Generate sequences using gp if possible.
9239 (md_parse_option): Ignore -EL and -EB. Parse -G.
9240 (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
9241 (s_change_sec): Handle .rdata and .sdata for ECOFF.
9242 (s_extern): Mark symbol as external. Set ecoff_undefined field.
9243
2b1b5697
KR
9244Tue Mar 30 10:11:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9245
670a50eb
ILT
9246 * output-file.c (output_file_create): Don't call as_perror for
9247 filename rejected by application.
9248
9249 * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink
9250 the output file.
9251
4b061a2a
KR
9252 * doc/as.texinfo: Don't use @value in node names for the moment;
9253 references don't appear to work right.
9254
4478def8
KR
9255 * as.h (const, volatile): Put these definitions back, and use
9256 them.
9257
2b1b5697
KR
9258 * doc/as.texinfo: First pass at using new texinfo features --
9259 variables, conditional tests. Far from complete.
9260
9261Mon Mar 29 16:05:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9262
9263 * read.c: Temporary hack to handle some 64-bit constants. This
9264 should be redone later.
9265 (target_big_endian): Declare.
9266 (big_cons): If it's set, reverse order of bytes being copied.
9267 * config/tc-sparc.c (md_begin): Set target_big_endian.
9268
9269 * read.c (s_ignore): Delete declaration of is_end_of_line.
9270
9271 * config/obj-coffbfd.c (yank_symbols): Build list of file symbol
9272 forward pointers properly.
9273
e02eaa59
SC
9274Mon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9275
9276 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
9277 wasn't being stored into scnhdr.
9278 * config/obj-coffbfd.h: Add prototype of s_get_segment.
9279 * read.c (TC_START_LABEL): Default definition.
9280 (read_a_source_file): Use TC_START_LABEL macro to work out
9281 if a label has been seen.
9282
543d88e4
ILT
9283Mon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com)
9284
c39b3eba
ILT
9285 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
9286 the bottom (make expands variables in dependencies when the
9287 dependencies are read, not when they are used).
9288
543d88e4
ILT
9289 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
9290 a29k .bss section; the mondfe program doesn't like it.
9291
2b1b5697
KR
9292Sun Mar 28 08:12:53 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9293
9294 * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of
9295 const.
9296 (current_architecture): Don't need initializer.
9297
9298Fri Mar 26 08:12:48 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9299
9300 * doc/none.m4: Define Z8000.
9301 * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the
9302 texinfo file before recreating it.
9303 (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in
9304 this directory.
9305 (srcdir): Delete second, bogus definition.
9306 (as.info): Look for as-*.texinfo in current directory rather than
9307 in $(srcdir).
9308 (as.dvi): Ditto.
9309 (dvi): New rule.
9310 * doc/configure.in: Create links to all as-*.texinfo files in the
9311 source directory, if that's not the current directory.
9312
9313 * configure.in (per-host): Accept MIPS host with BSD version
9314 number.
9315 (per-target): Classify i486 as i386. Use generic cpu_type instead
9316 of target_cpu in selecting format etc.
9317
9318 * app.c (do_scrub_next_char): Use .appfile, not .app-file.
9319 * read.c (potable): Change .app-file to .appfile.
9320
9321 * config/ho-decstatn.h: Renamed from ho-decstation.h.
9322 * configure.in: Adjusted.
9323
9324 * config/obj-bfd-sunos.*: Unused; deleted.
9325
9326 * Makefile.in (version.c, vers-stamp): Deleted.
9327 (config.h): Define GAS_VERSION.
9328 * as.c (version_string): Deleted declaration.
9329 (main): Look for GAS_VERSION instead.
9330
9331 * doc/as.texinfo: Updated description of -a* (listing) options,
9332 and describe how to pass them through from gcc.
9333
9334 * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or
9335 process relocs if there aren't any relocs to process. Avoids
9336 malloc/free bug on SCO too.
9337
9338 * as.h: Move local include files below system include files, to
9339 avoid some redefinition complaints on some systems.
9340 (const, volatile): Don't need these conditionally defined if we
9341 use CONST and VOLATILE from ansidecl.h.
9342 (seg_name): Use CONST, not const.
9343
543d88e4
ILT
9344Fri Mar 26 10:22:04 1993 Ian Lance Taylor (ian@cygnus.com)
9345
9346 * config/tc-mips.c: Reindented to GNU standards.
9347
2c19a57c
ILT
9348Thu Mar 25 08:59:14 1993 Ian Lance Taylor (ian@cygnus.com)
9349
61001d96
ILT
9350 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
9351 (fixup_segment): Add a29k special case; the linker is not prepared
9352 to see a segment offset here.
9353
2c19a57c
ILT
9354 * app.c (do_scrub_next_char): Added new state, 10, modifying state
9355 9 to only keep a space in between identifier characters.
9356
afcc637a
DZ
9357Wed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
9358
2d4bef5e
DZ
9359 * Makefile.in: add dvi target; as-$(config).texinfo might live in
9360 srcdir, might be in objdir.
afcc637a
DZ
9361
9362 * doc/Makefile.in: dvi depends on as.dvi
9363
80c8fd72
DZ
9364Mon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9365
9366 * Makefile.in: add installcheck target
9367
fd4b7c25
KR
9368Mon Mar 22 16:25:57 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9369
9370 * config/tc-sparc.c (sparc_ip): Add support for membar mask names.
9371 Add missing colons in prefetch error messages. Add support for
9372 ASI names.
9373
1369949e
ILT
9374Mon Mar 22 10:19:00 1993 Ian Lance Taylor (ian@cygnus.com)
9375
9376 * config/tc-mips.c (macro): Use $AT for any floating point load.
9377
63cdddad
KR
9378Sat Mar 20 12:50:51 1993 Ken Raeburn (raeburn@urth.cygnus.com)
9379
9380 * config/tc-m68k.c (m68k_ip): For operand type 'M', reject
9381 bignums, but don't emit error message.
9382
69498fa2
JW
9383Fri Mar 19 21:02:19 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9384
9385 * Makefile.in (targ-cpu.o): Depend on config.h.
9386
f6a91cc0
ILT
9387Wed Mar 17 16:44:06 1993 Ian Lance Taylor (ian@cygnus.com)
9388
9389 * app.c (do_scrub_next_char): Added new state, 9, to avoid
9390 dropping a space immediately following an identifier.
9391 * expr.c, write.c: Rewrote assert expressions to not use multiple
9392 lines; I don't think that can be done portably.
9393 * config/tc-mips.c (macro): Use $AT if target register is zero in
9394 load instruction, which it can be for a floating point load.
9395
a36f6645
ILT
9396Mon Mar 15 12:17:28 1993 Ian Lance Taylor (ian@cygnus.com)
9397
3d3c5039
ILT
9398 * write.c (write_contents): Compute the relocs before writing out
9399 the section contents.
9400 * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
9401 symbol table and values right.
9402 * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
9403 with $L is local.
9404 * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
9405 by the section vma.
9406
9407 * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
9408 z8k-opc.h, not z8k.h.
9409
a36f6645
ILT
9410 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf
9411 symbol.
9412
2a697fa4
DZ
9413Fri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9414
9415 * configure.in: recognize sparc-sun-solaris2* instead of -solaris2
9416
f2f7d044
ILT
9417Fri Mar 12 12:00:07 1993 Ian Lance Taylor (ian@cygnus.com)
9418
9419 * expr.c, write.c: Ultrix native 4.2 cc requires assert condition
9420 to be on a single line.
9421
ed099874
KR
9422Thu Mar 11 17:56:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9423
9424 * Makefile.in (config.h): Create file, writing out definitions of
9425 target cpu, alias, and canonical name.
9426 (ALL_CFLAGS): No longer define TARGET_CPU.
9427
9428 * Makefile.in (check): Print a message, instead of quitting
9429 silently.
9430
9431 * as.c (main): Don't catch any signals, for now.
9432
9433 * version.c: Deleted.
9434 * Makefile.in: Generate it, putting in only the version number
9435 itself.
9436 (VERSION): New variable.
9437 * as.c: Include config.h.
9438 (main): Reformatted version string. Include target alias. Don't
9439 print if not requested (i.e., unknown -v argument).
9440
9441 * as.c (stralloc): Deleted.
9442 (main): Call strdup instead.
9443
9444 * configure.in: Handle all 68300 series chips.
9445 * config/tc-m68k.c: Include config.h.
9446 (md_assemble): Assume TARGET_CPU is defined. Accept some 68300
9447 series cpus as defaults.
9448 (md_parse_option): Accept some m68300 series CPUs as defaults.
9449
9450Wed Mar 10 17:41:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9451
9452 * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if
9453 not already defined.
9454 (main, got_sig): Use them.
9455 * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default
9456 values.
9457
9458Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
9459
9460 * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF
9461 support.
9462
9463 * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs.
9464 OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN.
9465 (struct loc, struct proc, struct file): Moved to tc-mips.c within
9466 #ifndef OBJ_ECOFF block, since ECOFF uses different versions.
9467 * config/tc-mips.c: Rearranged for ECOFF support. Added
9468 prototypes for all static functions. Moved existing minimal
9469 debugging format support info #ifndef OBJ_ECOFF blocks.
9470 (macro_build_lui): Eliminated sign_extend argument, because ECOFF
9471 does not support a non sign extended high 16 bits reloc. Adjusted
9472 all callers accordingly.
9473 (tc_get_register): Renamed from get_register, and made non-static.
9474
9475 * config/mips-big.mt, config/mips-lit.mt: New files. Define
9476 TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN,
9477 respectively.
9478 * configure.in (mips-*-bsd*): Use gas_target mips-lit.
9479 (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using
9480 obj_format ecoff and gas_target mips-lit or mips-big.
9481
c5d4bc88
KR
9482Tue Mar 9 07:43:01 1993 Ken Raeburn (raeburn@cygnus.com)
9483
9484 * version.c: Bump to version 2.0.1.
9485
fefba3a5
ILT
9486Tue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com)
9487
9488 * write.c (chain_frchains_together): Check that seg_info (section)
9489 is not NULL.
9490 (write_object_file): Call obj_frob_file after setting the symbols,
9491 not before.
9492
2b1b5697
KR
9493Tue Mar 9 00:00:00 1993 Ken Raeburn (raeburn@cygnus.com)
9494
9495 * Version 2.0 released.
9496
fefba3a5
ILT
9497Mon Mar 8 14:57:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9498
9499 * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only.
9500
9501Fri Mar 5 09:05:55 1993 Ian Lance Taylor (ian@cygnus.com)
9502
9503 * read.h: Define stringer here.
9504 read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these
9505 places.
9506
bf449293
SC
9507Thu Mar 4 11:52:23 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9508
9509 * read.c (s_space): Multiply repeat count by mult, not fill.
9510
9471a360
KR
9511Thu Mar 4 05:20:42 1993 Ken Raeburn (raeburn@cygnus.com)
9512
9513 * read.c: Include ctype.h.
9514
1101551c
KR
9515Wed Mar 3 10:41:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9516
9517 Patches from Eric Youngdale:
9518 * make-gas.com: Find obstack.obj if it's not in the current
9519 directory.
9520 * read.c (s_ignore): Don't declare is_end_of_line. It's
9521 redundant, and triggers a VMS gcc compiler bug.
9522
9523 * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes
9524 current segment as an argument. (Ignored in all cases but VMS.)
9525 All callers and definitions changed.
9526
5e4cddb7
ILT
9527Tue Mar 2 11:56:19 1993 Ian Lance Taylor (ian@cygnus.com)
9528
9529 * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING
9530 case compile again.
9531
f3ca2a64
KR
9532Tue Mar 2 08:53:34 1993 Ken Raeburn (raeburn@cygnus.com)
9533
9534 * config/tc-m68k.c (isbyte): Accept all values from -255 to +255,
9535 so "~0x80" won't be rejected.
9536
9537 * config/obj-elf.c: No longer include elf/reloc.h.
9538 (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section.
9539 (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out
9540 routines.
9541 (obj_elf_xstab): New routine.
9542 (obj_elf_set_size): Call as_warn, not fprintf. Pass desired
9543 argument to s_ignore. Put "#if 0" around unused code.
9544 (obj_pseudo_table): Use s_ignore instead of do-nothing routines.
9545 Call elf_xstabs for .stabs and .xstabs operators.
9546
9547 * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc".
9548
9549 * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are
9550 present.
9551
9552 * configure.in: mips-bsd configuration was missing format spec.
9553 Should use aout.
9554
9555 * Makefile.in (Makefile): Depends on configure.in.
9556
9557 * config/tc-mips.c (append_insn): Don't check for alignment of
9558 frag in memory; alignment of instructions in section is a separate
9559 matter.
9560
9561 * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI
9562 C availability.
9563
9564 * listing.h: Always provide function declarations, not macros, so
9565 pcc won't lose.
9566
7687d89b
JG
9567Tue Mar 2 00:50:43 1993 John Gilmore (gnu@cygnus.com)
9568
9569 * CONTRIBUTORS: Update Gilmore entry.
9570
fd4b7c25
KR
9571Mon Mar 1 12:03:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9572
9573 * config/tc-sparc.c (sparc_ip): Correctly assemble prefetch
9574 instructions. Accept integer prefetch function numbers.
9575
7687d89b
JG
9576Wed Feb 24 14:58:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9577
fd4b7c25
KR
9578 * config/tc-sparc.c (s_xword): Now call big_cons, so large
9579 constants are accepted, but symbolic values are not. GCC will not
9580 generate the latter currently.
9581
7687d89b
JG
9582 * frags.c (frag_init): New function.
9583 (zero_address_frag, bss_address_frag): Now initialized at run
9584 time.
9585 * as.c (main): Call frag_init.
9586
160b7f0f
ILT
9587Wed Feb 24 10:32:42 1993 Ian Lance Taylor (ian@cygnus.com)
9588
9589 * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case:
9590 Don't unget ch2 if we didn't get it.
9591
0cca30f3
KR
9592Wed Feb 24 04:14:07 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9593
9594 * doc/Makefile.in (TEXIDIR): Updated for new layout.
9595
9596 * config/tc-sparc.c (s_common): Add support for ELF version.
9597 (tc_gen_reloc) [BFD_ASSEMBLER]: New function.
9598 * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]:
9599 New macros.
9600 (md_convert_frag): New macro.
9601
9602 * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a
9603 symbol, fix the offset so "+2" isn't required.
9604
9605 * config/tc-i960.c (line_comment_chars, line_separator_chars):
9606 Define as common/bss.
9607 (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C
9608 initializers are sufficient.
9609
9610 * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd.
9611 (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out".
9612 (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros.
9613 (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro.
9614 * config/obj-aout.c: Use PARAMS macro for declarations. Remove
9615 "IGNORE_DEBUG" conditional, since both branches are identical.
9616 Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly
9617 referencing symbol structure members.
9618 (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function.
9619
9620 * as.h (struct frag): Reordered a couple of fields for better
9621 packing.
9622
9623 * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the
9624 section info.
9625 (write_contents) [BFD_ASSEMBLER]: New function.
9626 (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call
9627 fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call
9628 obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined.
9629 (fixup_segment): Make sure common-section symbols get treated the
9630 same as undefined symbols.
9631 (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type
9632 bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from
9633 section info.
9634 * write.h (fix_new): Update prototype.
9635
9636 * tc.h (md_operand, md_convert_frag, tc_headers_hook,
9637 md_section_align, md_undefined_symbol): Don't provide prototypes
9638 if these are defined as macros.
9639 (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and
9640 section passed.
9641
9642 * symbols.c (symbol_new): Argument NAME is now pointer to const.
9643 Simplified STRIP_UNDERSCORE code. Remove assumptions about null
69cb5925 9644 pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new
0cca30f3
KR
9645 BFD symbol.
9646 (colon): Display other/desc fields of redefined symbol only if
9647 S_GET_OTHER and S_GET_DESC are defined.
9648 (symbol_make): Argument NAME is now pointer to const.
9649 (symbol_find, symbol_find_base): Likewise.
9650 (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions.
9651 * symbols.h: Fix prototypes for new const arguments. Add
9652 prototypes for BFD_ASSEMBLER S_* functions.
9653
9654 * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code
9655 for changing to an existing section.
9656 (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new,
9657 called by subseg_new and subseg_set.
9658 (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section,
9659 given section name and subseg number.
9660 (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly
9661 new section/subsection.
9662
9663 * read.c: Don't include ctype.h.
9664 (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32
9665 for now; should be machine-dependent.
9666
9667 * configure.in: Accept *-*-elf and *-*-solaris* as ELF format
9668 targets, forcing BFD use.
9669
9670Wed Feb 17 18:59:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9671
9672 * config/tc-sparc.c: Use PARAMS macro for static function
9673 declarations. Use BFD_RELOC_ macros everywhere, with
9674 compatibility macros declared for non-BFD mode.
9675 (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type
9676 instead of enum reloc_type.
9677 (emit_sparc_reloc): Commented-out function deleted.
9678 (md_convert_frag): Deleted.
9679 (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER.
9680 (md_apply_fix): Changed calling sequence (conditionally) for BFD
9681 version.
9682 * config/tc-sparc.h (md_convert_frag): New macro.
9683
9684 * config/obj-aout.c (obj_aout_stab): Refer to undefined_section,
9685 not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead
9686 of referencing fields directly.
9687
9688 * write.c (cvt_frag_to_fill): New function; extracted from
9689 write_object_file.
9690 (write_object_file) [! BFD_ASSEMBLER]: Call it.
9691 (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section
9692 and set its size and flags.
9693
9694 * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some
9695 fields with BFD equivalents. Turn on back-pointers, and add
9696 target-specific fields at end.
9697
9698Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
9699
9700 * config/obj-coffbfd.c (fill_section): Don't set vaddr here.
9701 (write_object_file): Set it here instead, so that fixup_segment
9702 can see the correct value.
9703
9704Mon Feb 8 13:56:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9705
9706 * write.c (write_object_file): Check for errors and warnings and
9707 bail out before processing contents.
9708 (chain_frchains_together_1): New function, does most of the work
9709 of remove_subsegs.
9710 (chain_frchains_together) [BFD_ASSEMBLER]: New function.
9711 (remove_subsegs) [! BFD]: Call it.
9712 (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD
9713 structures and routines.
9714
9715 * config/obj-elf.*: New files.
9716
9717 * config/mips.mt, config/rs6000.mt: Deleted.
9718
9719 * config/h8300.mt: Don't specify compiler here.
9720
7687d89b 9721 * config/z8k.mt: The z8k code depends on the z8k opcode table,
0cca30f3
KR
9722 not the h8300 one.
9723 * config/tc-z8k.h: Comment fix.
9724
9725 * write.c: Reordered some functions for better inlining.
9726 (fixup_segment): Linkrelax code is no longer conditional on
9727 TC_I960.
9728
9729Thu Feb 4 12:45:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9730
9731 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,
9732 obj-coffbfd.h}: support for the H8/500
9733
9734Wed Feb 3 19:28:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9735
9736 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here.
9737 * write.c (write_object_file): Not here.
9738 (fix_new): Initialize fx_addnumber.
9739
9740 * listing.c: Don't include target-cpu.h explicitly, since as.h
9741 includes it.
9742
9743Thu Jan 28 00:35:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9744
9745 * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP,
9746 *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP.
9747 (struct fix): Reordered fields for compactness and efficiency.
9748 Converted some logical fields to 1-bit fields.
9749
9750 * config/obj-aout.h: Use PARAMS.
9751 [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE,
9752 N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE.
9753
9754 * read.c: Don't include listing.h; as.h includes it. Removed
9755 DONTDEF code.
9756 [BFD_ASSEMBLER]: Include subsegs.h.
9757 (old_buffer, new_broken_words): Default initialization is
9758 sufficient.
9759
9760 * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH
9761 to 0, define stdoutput.
9762 (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure.
9763 Call bfd_set_arch_mach.
9764 (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not
9765 bfd_close_all_done. Call bfd_perror on failure.
9766 (output_file_append) [BFD_ASSEMBLER]: Don't define.
9767
9768 * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition.
9769
9770 * subsegs.h (segment_info_type): Always define. Omit field scnhdr
9771 if not MANY_SEGMENTS. Define new field bfd_section if
9772 BFD_ASSEMBLER.
9773 (seg_info): New macro.
9774
9775 * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused
9776 variables, and some irrelevant comments.
9777
9778 * Makefile.in (ALL_CFLAGS): Include $(BFDDEF).
9779 (LIBS): Include $(BFDLIB). Don't bother with $(CLIB).
9780 * configure.in: Permit --with-bfd-assembler now, with a warning.
9781 Variable need_bfd is now a boolean, as is new variable bfd_gas.
9782 Set BFDDEF and BFDLIB in Makefile when appropriate.
9783
9784 * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code.
9785 (main): Refer to flag_always_generate_output instead of
9786 flagseen['Z'].
9787
9788 * as.c (main) [BFD_ASSEMBLER]: Open output bfd.
9789 (*_section) [BFD_ASSEMBLER]: Define them.
9790 (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and
9791 set section flags when appropriate.
9792 * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified
9793 section is not absolute, undefined, or an assembler internal one.
9794 (absolute_section, undefined_section): Always define.
9795 * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break
9796 switch statements into if-else trees.
9797 * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of
9798 SEG_BSS and SEG_DATA.
9799
9800 * as.h (frag_now_fix): New macro.
9801 * symbols.c (colon): Use it.
9802
9803Wed Jan 27 21:43:53 PST 1993 Ralph Campbell (ralphc@pyramid.com)
9804
9805 * config/tc-mips.c: Added mips support for mips-dec-bsd.
9806 * config/tc-mips.h: Added mips support for mips-dec-bsd.
9807 * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd.
9808 * config/mips-opcode.h: Added mips support for mips-dec-bsd.
9809 * configure.in: Added mips support for mips-dec-bsd.
9810 * atof-generic.c: Define TRUE and FALSE if not defined.
9811
9812Thu Jan 21 12:48:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9813
9814 * version.c: Bumped version number to 1.93.05.
9815
9816Wed Jan 20 17:11:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9817
9818 * config/obj-coff.c (obj_emit_relocations): Don't use #elif.
9819 (obj_emit_lineno): Don't need return at end of void function.
9820 (obj_symbol_new_hook): Ditto.
9821
9822 * config/tc-m68k.c: Removed some unused code.
9823 (tc_aout_fix_to_chars): Array nbytes_r_length is now const.
9824
9825 * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only
9826 offset field is set.
9827
9828Fri Jan 8 05:44:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9829
fd4b7c25
KR
9830 * config/tc-sparc.c (sparc_ip): For %uhi and %ulo, if not
9831 ENV64, emit no reloc.
9832 (md_pseudo_table): For ".xword", call s_xword.
9833 (s_xword): New function.
9834
0cca30f3
KR
9835 * config/tc-sparc.c (architecture_requested, warn_on_bump,
9836 md_relax_table): Use default zero initialization.
9837 (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the
9838 latter, instead of selecting with preprocessor conditionals.
9839
9840Thu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9841
9842 * configure.in: recognise all sparclite variants
9843
9844Thu Jan 7 05:25:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9845
9846 * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change --
9847 accidentally changed to use subseg_change where it should have
9848 been subseg_new.
9849
6c5f9998
KR
9850Tue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9851
0bd77bc4
KR
9852 * expr.c (operand): If character other than comma or newline is a
9853 logical end-of-line character, use the newline case.
0cca30f3
KR
9854 From Eric Youngdale:
9855 (operand): Set X_add_number field for floating-point numbers.
9856 (operand): Treat zero byte as end-of-operand.
0bd77bc4 9857
6c5f9998
KR
9858 * configure.in (per-target): Look for with_bfd_assembler option.
9859 For now, only accept "no", until the merge is done.
9860
0cca30f3
KR
9861 Merged changes from Eric Youngdale (youngdale@v6550c.nrl.navy.mil):
9862 * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c,
9863 config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS.
9864 * read.c: Finish conversion to S_* macros in the VMS only
9865 parts of the program. Add "const" modifier to hex_value.
9866 * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to
9867 "ifdef OBJ_VMS".
9868 * expr.c: Add "const" modifier to hex_value.
9869 * symbols.c: Finish conversion to S_* macros in the VMS only
9870 parts of the program. Add "const" modifier to
9871 md_[long,short]_jump_size. Remove declaration of const_flag
9872 (which will be declared in obj-vms.h).
9873 * write.c: Add "const" modifier to md_[long,short]_jump_size.
9874 Fix arguments to VMS_write_object_file.
9875 * config-gas.com: New file. Script for VMS systems to set up the
9876 configuration to build gas for VMS, and create config.status.
9877 * make-gas.com: Redone to work with new scheme.
9878 * obj-vms.c: Patch to fix bug where we were not correctly parsing the
9879 stabs directives.
9880 * obj-vms.c: Define macros COPY_LONG and COPY_SHORT which
9881 will swap bytes if needed on a big endian system. Use throughout
9882 as needed.
9883 * obj-vms.c (obj_aout_stab): Add code to generate listing file.
9884 * obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain
9885 types of malformed stabs. Change parsing algorithm so that we are
9886 more certain of having all of the information that we need on hand.
9887 * obj-vms.c (final_forward_reference): New function, used to help
9888 resolve the data types of as many struct elements as possible
9889 when some part of the struct is not fully defined by the compiler.
9890 * obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation
9891 stabs directives.
9892 * obj-vms.c (VMS_write_object_file): Define all vtable psects
9893 as symbols as well in the object file. Look for external functions
9894 that start with "__vt.", and turn them into variables, since the
9895 g++ compiler is incapable of doing this.
9896 * tc-vax.c: Add '1' option for backward compatibility with older GCC
9897 versions.
9898 * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes.
9899 * input-scrub.c (as_where): Fix bug where as would crash if we did not
9900 have the name of the source file yet.
9901 * config/ho-vms.h: define HO_VMS, not HO_VAX.
9902
9d76a195
KR
9903Mon Jan 4 05:17:26 1993 Ken Raeburn (raeburn@cygnus.com)
9904
9905 * read.c (s_data): Always use "data_section", since it'll map to
9906 SEG_DATA or SEG_E1 if needed.
9907 (s_lcomm): Likewise with bss_section.
9908 (s_fill): Use memset, not bzero.
9909
9910Thu Dec 31 04:29:27 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9911
9912 * read.c: Deleted some code under "#ifdef DONTDEF" that was for
9913 handling GDB symbol table data.
9914
9915 * config/obj-aout.h (segment_name): Delete definition.
9916 (seg_name): Delete declaration.
9917 * config/obj-bout.h (segment_name, seg_name): Ditto.
9918 * config/obj-vms.h (segment_name, seg_name): Ditto.
9919 * config/obj-coff.h (segment_name): Ditto.
9920 * config/obj-coffbfd.h (segment_name): Ditto.
9921
9922 * Changes for BFD_ASSEMBLER:
9923 * obj.h (obj_crawl_symbol_chain): Declare only if not
9924 BFD_ASSEMBLER.
9925 (obj_header_append, obj_pre_write_hook): Ditto.
9926 * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER.
9927 (segT) [BFD_ASSEMBLER]: New typedef for "asection *".
9928 (segment_name) If BFD_ASSEMBLER, look up BFD section name;
9929 otherwise, use seg_name array.
9930 (seg_name): Declare only if not BFD_ASSEMBLER.
9931 (section_alignment): Declare only if not BFD_ASSEMBLER.
9932 (big_section, reg_section, pass1_section, diff_section,
9933 absent_section, text_section, data_section, bss_section): If
9934 BFD_ASSEMBLER, declare as variables; otherwise, declare as macros,
9935 mapping to segT enum values.
9936 (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors
9937 if these are used or defined, if BFD_ASSEMBLER.
9938 (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old
9939 subseg_new split into two functions.
9940 (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now.
9941
9942 * as.h (volatile): Don't define if already defined.
9943 (had_errors, had_warnings): Provide prototypes for ANSI C even if
9944 NO_STDARG.
9945 (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2,
9946 declare with format attribute for -Wformat checking.
9947
85825401
ILT
9948Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
9949
9950 * app.c, config/tc-*.c: Don't include read.h, since it is already
9951 included by as.h.
9952
9953 * These are based on patches from Minh Tran-le
9954 <mtranle@paris.intellicorp.com>.
9955 * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use
9956 obj_format coffbfd and gas_target i386coff for target.
9957 (i[34]86-*-isc*): New host (uses sysv).
9958 * config/i386aix.mt: Removed (no longer used).
9959 * config/mh-i386aix (RANLIB): Use true rather than /bin/true.
9960 (MINUS_G): Removed.
9961 (LDFLAGS): Added, defined as -shlib.
9962 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
9963 * config/te-sco386.h (LOCAL_LABEL): Don't define.
9964 (DOT_LABEL_PREFIX): Define.
9965 * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
9966 name rather than L0\001.
9967 * read.c (s_lcomm): Make a frag in SEG_BSS rather than using
9968 local_bss_counter.
9969 * symbols.c, symbols.h (local_bss_counter): Removed.
9970 * write.c (write_object_file): bss no longer uses
9971 local_bss_counter. Pass correct data and bss size to
9972 VMS_write_object_file.
9973 * config/obj-vms.c (VMS_write_object_file): Accept bss size as
9974 argument, rather than using local_bss_counter.
9975 * config/tc-m88k.c (s_bss): Don't use local_bss_counter.
9976 * config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
9977 * config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
9978 (size_section): Restored sanity check.
9979 (do_relocs_for): Base section address on s_paddr rather than
9980 computing it. Adjust a29k R_IHIHALF special case to account for
9981 section paddr (used to require paddr to be zero). If there are no
9982 reclos, set s_relptr to 0. Set relocation size in object_headers.
9983 (fill_section): Always set s_vaddr here, removing
9984 ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set
9985 NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
9986 Set STYP_INFO for .comment.
9987 (coff_header_append): Use object headers and H_{SET,GET}_* macros.
9988 Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
9989 (crawl_symbols): Handle 8 character section name correctly. Use
9990 H_{SET,GET}_* macros.
9991 (do_linenos_for): Set lineno size in object_headers.
9992 (write_object_file): Use H_{SET,GET}_* macros. Don't bother to
9993 set s_vaddr here. If string_byte_count remains 4, set it back to
9994 0, and only write strings out if there are some. Call
9995 fill_section before do_relocs_for and do_linenos_for.
9996 (obj_coff_section): Handle optional quoted second argument giving
9997 section characteristics.
9998 (obj_coff_bss): Added to handle .bss.
9999 (obj_coff_ident): Added to handle .ident (puts string in .comment
10000 section).
10001 (obj_coff_lcomm): Put common symbols in .bss, not .data.
10002 (fixup_mdeps): Change to segment. Call frag_wane after
10003 md_convert_frag.
10004 (fixup_segment): Explicitly check S_IS_COMMON before making 386
10005 adjustment (already happened only for common symbols, but this is
10006 clearer).
10007 * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
10008 * config/tc-i386.c (s_bss): Don't use if I386COFF.
10009 (md_pseudo_table): Ignore .optim and .noopt.
10010 (tc_coff_sizemachdep): New function.
10011 * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
10012 compatibility.
10013 (LOCAL_LABEL): Removed definition.
10014 (DOT_LABEL_PREFIX): Defined.
10015
4539aa02
KR
10016Mon Dec 28 10:32:05 1992 Ken Raeburn (raeburn@cygnus.com)
10017
6d331d71
KR
10018 * app.c (app_push): Use memcpy, not bcopy.
10019 (do_scrub_next_char): For \", return " not '.
10020 (symbol_chars): Now const.
10021
4539aa02
KR
10022 * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f"
10023 and "0b". If LOCAL_LABELS_DOLLAR, check for "0$".
10024
10025 * config/obj-coff.h: Don't use #elif.
10026
10027 * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't
10028 have it. (Reported by Noah Friedman, friedman@gnu.ai.mit.edu.)
10029
3eb802b5
ILT
10030Wed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)
10031
10032 * write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is
10033 already defined.
10034
be06bdcd
SC
10035Tue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10036
10037 * app.c (do_scrub_begin): allow single quote strings if so
10038 configured.
10039
10040 * config/*z8k*: checkpoint
10041
10042Sun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com)
10043
10044 * read.c (read_a_source_file): avoid calling xmalloc (0).
10045
016e0d42
ILT
10046Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
10047
10048 * listing.c: Call xmalloc, not malloc; don't declare malloc.
10049
10050 * Changes to support SCO 3.2v4:
10051 * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
10052 SEG_BSS, fill with NOP_OPCODE.
10053 * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
10054 * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
10055 using ZERO_BASED_SEGMENTS.
10056 (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
10057 never set segment address for SEG_E2 (.bss) and don't write out
10058 SEG_E2 contents. Set .init and .fini sections to STYP_TEXT.
10059 (obj_coff_endef): Don't merge labels or symbols awaiting forward
10060 definitions, and don't merge tags with non-tags. Check for .bf
10061 rather than just checking whether the second character is b and
10062 the third character is f.
10063 (obj_coff_val): gcc can generate values which we don't handle
10064 correctly; discard information for now, since it only affects the
10065 debugging information.
10066 (tag_find_or_name): Don't insert tags in the symbol table.
10067 (yank_symbols): Don't merge labels.
10068 (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
10069 already defined. Fill subsegments with NOP_OPCODE, not 0. Don't
10070 set segment address if ZERO_BASED_SEGMENTS.
10071 (obj_coff_section): Accept and ignore a trailing quoted string, as
10072 used in AT&T i386 syntax.
10073 (fixup_segment): Take segment as argument. On the i386, adjust PC
10074 relative addends by the segment vaddr.
10075 * tc-i386.h: Define SUB_SEGMENT_ALIGN.
10076 * tc-a29k.h: Define ZERO_BASED_SEGMENTS.
10077 * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
10078
db33220f
KR
10079Tue Dec 8 00:06:48 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
10080
016e0d42
ILT
10081 * config/obj-coffbfd.c: Include libcoff.h.
10082
db33220f
KR
10083 * version.c: Now version 1.93.
10084
dde624ef
KR
10085Mon Dec 7 00:39:09 1992 Ken Raeburn (raeburn@cygnus.com)
10086
db33220f
KR
10087 * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do
10088 power-of-two alignment for .align.
10089
dde624ef
KR
10090 * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial,
10091 and leave everything else alone.
10092
10093Fri Dec 4 16:58:42 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10094
10095 * Makefile.in (as.new): Don't bother saving as.old.
10096
10097 * write.c: Conditionalize on OBJ_VMS, not VMS.
10098 (magic_number_for_object_file): Don't define if OBJ_VMS.
10099
10100 * config/obj-vms.c: Changes for traditional C.
10101
7f2cb270
KR
10102Thu Dec 3 01:24:07 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com)
10103
10104 * config/ho-generic.h (malloc, realloc): Declare.
10105
10106 * Lots of comment/whitespace changes.
10107
10108 * write.h (struct fix): Some fields reordered, narrowed.
10109
10110 * read.c (MASK_CHAR): Define using C types, not magic number.
10111
10112 * as.c, input-file.c: Deleted some unused code.
10113
10114 * app.c, as.h: Doc fix.
10115
10116 * flonum-konst.c, flonum-mult.c: Include ansidecl.h.
10117
10118 * as.h (xmalloc): Argument is long.
10119
10120 * xmalloc.c (error): Remove declaration; as.h takes care of it.
10121
0cca30f3
KR
10122 * doc/as.texinfo: Regrouped documentation of some command-line
10123 options. Updated options documentation for m68k. Some minor
10124 wording/punctuation changes.
10125
7f2cb270
KR
10126Mon Nov 30 11:42:11 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10127
10128 * configure.in: Accept target OS "vms".
10129
10130 * symbols.c: Merged ANSI and non-ANSI function decls, using
10131 PARAMS macro.
10132
10133 * xmalloc.c: Just include as.h, don't bother trying to figure out
10134 other header files.
10135
10136 * strstr.c, strerror.c: Deleted.
10137 * Makefile.in: Deleted references.
10138
10139 * config/tc-ns32k.c: Don't include header file for string
10140 declarations; leave that to ho-*.h.
10141
10142Fri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com)
10143
10144 * config/coff_gnu.h [TC_I860]: Guesses for reloc type values,
10145 imported from FSF sources.
10146
10147 * messages.c (strerror): Declare unconditionally.
10148
10149 * as.h: Delete alloca and register definitions.
10150
10151 * config/atof-ieee.c (mask): Now const.
10152
10153 * obstack.c, obstack.h: Deleted.
10154
10155 * as.h (flag_readonly_data_in_text): New flag.
10156 * as.c (main): Set it for -R.
10157
10158 * as.h (flag_suppress_warnings): New flag.
10159 * as.c (main): Set it for -W.
10160 * messages.c (as_warn): Check it instead of flagseen['W'].
10161
10162 * as.h (flag_always_generate_output): New flag.
10163 * as.c (main): Set it for -Z.
10164
10165 * config/tc-sparc.h: Define NEED_FX_R_TYPE.
10166 * config/tc-a29k.h: Ditto.
10167 * write.h (struct fix): Don't conditionalize fx_r_type field on TC
10168 macros.
10169
10170 * as.h: Merged ANSI and non-ANSI function decls, using PARAMS
10171 macro.
10172 * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h,
10173 obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h,
10174 write.h: Likewise.
10175 * read.c: Likewise.
10176
10177 * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in
10178 xrealloc from xrealloc.c.
10179 * xrealloc.c: Deleted.
10180 * Makefile.in (REAL_SOURCES, OBJS): Adjusted.
10181
10182 * configure.in: For host CPU a29k, rs6000, vax, consider using bsd
10183 or vms ho- files.
10184
10185 * config/ho-sysv.h (setbuffer, HO_USG): Deleted.
10186
10187 * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer;
10188 don't initialize it with NULL.
10189
10190 * config/ho-vax.h (M_VAX): Deleted; was unused.
10191
10192 * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h:
10193 New files imported from FSF version, contributed by Eric Youngdale.
10194 * README-vms-dbg, config/vms: Deleted.
10195
10196 * ChangeLog, config/ChangeLog: Merged.
10197
10198 * config/*tahoe*, configure.in: Tahoe support brought in from FSF
10199 version.
10200
10201 * input-file.c (input_file_open): Eliminate call to setvbuf.
10202 [USG] (setbuffer): Deleted macro.
10203
6efd877d
KR
10204Mon Nov 23 11:00:16 1992 Ken Raeburn (raeburn@cygnus.com)
10205
10206 * all files: Whitespace changes for GNU indentation style, done by
7f2cb270 10207 GNU `indent'. Some cleanup still needed, especially of comments.
6efd877d
KR
10208
10209 * configure.in: No te-386bsd.h file exists; don't try to use it.
10210
7f2cb270
KR
10211 * obj-coff.c (obj_coff_endef): Use as_warn, not fprintf.
10212
10213 * tc-m68k.c (md_assemble): Don't complain about 68000 with 68881;
10214 could be doing emulation.
10215
0cca30f3 10216Thu Nov 19 11:47:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
132239bf 10217
69cb5925 10218 z8000 documentation
0cca30f3
KR
10219 * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo:
10220 all modified.
10221
6efd877d
KR
10222Tue Nov 10 09:49:24 1992 Ian Lance Taylor (ian@cygnus.com)
10223
10224 * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h.
10225
10226 * subsegs.h: add extern to segment_info declaration.
10227
10228 * read.h: added extern declarations for comment_chars,
10229 line_comment_chars, and line_separator_chars.
10230 read.c, app.c: removed definitions of comment_chars,
10231 line_comment_chars, and line_separator_chars.
10232
7f2cb270
KR
10233 * tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined,
10234 still accept (but don't require) OPTIONAL_REGISTER_PREFIX before
10235 the register name.
10236 (insert_reg): put REGISTER_PREFIX before register names before
10237 putting them in the symbol table.
10238 * tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not
10239 M68KCOFF.
10240
10241 * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss
10242 section.
10243
10244 * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS,
10245 comment_chars, line_comment_chars and line_seperator_chars
10246 consistently const, and always initialized them. Included read.h.
10247
10248Thu Nov 5 17:55:41 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10249
10250 * tc-sparc.c (sparc_ip): Add code to flag error if an absolute
10251 constant will not fit in an immediate field.
10252 (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow.
10253
10254Wed Nov 4 07:50:46 1992 Ken Raeburn (raeburn@cygnus.com)
10255
10256 * obj-coff.c (callj_table): Delete global variable.
10257 (obj_emit_relocations): Define it locally here, and only if
10258 TC_I960 is defined.
10259
10260 * tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name.
10261 (m68k_ip): Don't warn about bignum used as float bit-pattern.
10262
10263 * obj-coff.c: Replaced ANSI and non-ANSI function declarations
10264 with a single set using PARAMS macro.
10265
10266 * tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length
10267 of 2.
10268
10269 * tc-i960.c: Missed a couple of 0->NO_RELOC conversions.
10270
10271 * tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values,
10272 so widening works consistently.
10273
6efd877d
KR
10274Wed Oct 28 08:52:34 1992 Ken Raeburn (raeburn@cygnus.com)
10275
10276 * version.c: Put conditional "const" before version_string, not
10277 before dummy function for VMS. Now version 1.91.03.
10278
10279 * app.c (do_scrub_next_char): Need double-\ before `000' to show
10280 printed rep of null character.
10281
7f2cb270
KR
10282Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
10283
10284 * obj-coffbfd.c (write_object_file): check return value of
10285 bfd_close_all_done.
10286
559d9aac
ILT
10287Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
10288
7f2cb270
KR
10289 * Support for i386-sysv.
10290 obj-coffbfd.c (do_relocs_for, write_object_file): set segment
10291 addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can
10292 be used to set them all to zero as was done before.
10293 (fill_section): segment addresses now set in write_object_file.
10294 (fill_section): Don't set STYP_NOLOAD for .bss section.
10295 (fixup_segment): 386 uses strange common symbol format.
10296 tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
10297 compatibility with SVR3.2 linker.
6efd877d
KR
10298 * configure.in: i386-sysv and i386-sco use coffbfd.
10299
559d9aac
ILT
10300 * app.c (do_scrub_next_char): discard whitespace after a label.
10301
0f8b9790
DZ
10302Sat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10303
10304 * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4
10305 hosts, use the sysv configuration for solaris2
10306
7f2cb270
KR
10307Mon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10308
132239bf 10309 fix i960+non-bfd coff bit rot.
7f2cb270
KR
10310 * obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
10311 support for C source listings. (obj_coff_endef): look in the right
10312 part of the symbol for the symbol name
10313
10314 * tc-m68k.c (get_num): make it work for all segments, not just the
10315 first three.
10316
984cf2d7
ME
10317Mon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
10318
69cb5925 10319 * configure.in: recognize i386-*-bsd emulation.
984cf2d7
ME
10320
10321Thu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10322
10323 * configure.in: use the cpu-vendor-os triple for host and target
10324
7f2cb270
KR
10325Tue Sep 29 12:22:52 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10326
10327 * obj-coffbfd.c (write_object_file): don't fixup for the z8k
10328 * tc-z8k.c: lots of bug fixes
10329
10330Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
10331
10332 * tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
10333 #elif, since it is not supported by old compilers.
10334 ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
10335 couple of expressions in tc-m68k.c.
10336
984cf2d7
ME
10337Mon Sep 28 21:18:24 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10338
10339 * read.c (cons): If NO_RELOC is defined, use it.
10340
7f2cb270
KR
10341 * tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new.
10342
10343Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
10344
10345 * tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
10346 local labels to start with a .) and set REGISTER_PREFIX to %.
10347 tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
10348
5a0fc1d4
JG
10349Fri Sep 25 17:53:43 1992 John Gilmore (gnu@cygnus.com)
10350
10351 * messages.c: Comment changes.
10352
4959cb7b
KR
10353Fri Sep 25 14:12:58 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
10354
10355 * as.h: Test if __STDC__ is defined only, don't test its value.
10356 * messages.c: If __STDC__ is not defined, define NO_STDARG.
10357
5e9d510e
BK
10358Thu Sep 24 12:42:32 1992 Brendan Kehoe (brendan@rtl.cygnus.com)
10359
10360 * listing.c (debugging_pseudo): Add stabs and stabn as things to
10361 ignore.
10362
7f2cb270
KR
10363Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
10364
10365 * obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
10366 sections starting from zero, rather than making them consecutive.
10367 This makes subsequent reloc calculations easier, esp if the object
10368 format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily)
10369 allocate lcomm in .data rather than in .bss. It seems that some
10370 tools can't cope with a non-zero sized bss before linkage.
132239bf 10371
7f2cb270
KR
10372Tue Sep 22 15:10:51 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10373
10374 * tc-m68k.c: Replace "enum m68k_architecture" with "int"
10375 throughout. That enum no longer means what we thought it meant.
10376
10377 * tc-m68k.c (md_assemble, md_parse_option): Handle new
10378 "-mno-688[58]1" options.
10379
10380 * tc-m68k.c: Added CPU32 support.
10381
10382Fri Sep 18 08:02:18 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10383
10384 * tc-m68k.c (m68k_ip): An(disp) is not pc relative.
10385
569dac15
JW
10386Tue Sep 15 17:25:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10387
10388 * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES.
10389 Change LIBDEPS dependence to LIBS.
10390
efbfb612
ILT
10391Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com)
10392
10393 * Makefile.in (install): if $(tooldir) exists, install as in
10394 $(tooldir)/bin.
10395
987b1491
ILT
10396Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
10397
ca5e9d49
ILT
10398 * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
10399 .word is < -32768 or > 32767. The -J flag causes the error to be
10400 ignored. This is to catch over-sized switches generated by gcc on
10401 systems which don't support the broken .word hack.
10402 as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
10403 write.c (fixup_segment): check for signed .word overflow if
10404 WARN_SIGNED_OVERFLOW_WORD.
10405
987b1491
ILT
10406 * write.c (fixup_segment): fixed missing parens in expression
10407 checking for byte or word overflow.
10408
7f2cb270
KR
10409 * obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
10410 obj-coffbfd.c (fixup_segment): check for signed .word overflow if
10411 WARN_SIGNED_OVERFLOW_WORD.
10412
10413 * obj-coffbfd.c (fixup_segment): fixed missing parens in
10414 expression checking for byte or word overflow.
10415
10416Fri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10417
10418 Support for i386 coff
132239bf 10419 * obj-coffbfd.h : added stuff
7f2cb270
KR
10420 * tc-i386.c (tc_coff_fix2rtype): new function
10421 * tc-i386.h : new coff defines
10422
b1520b1f
ILT
10423Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com)
10424
10425 * input-scrub.c (input_scrub_push): call input_file_begin, not
10426 input_scrub_begin.
10427 messages.c (as_perror): print ": " between the passed in error and
10428 the strerror, like perror does.
10429
b53ccaac
ILT
10430Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
10431
10432 * Makefile.in: use gas_target instead of modifying target_cpu.
10433 From Steve Chamberlain:
10434 Makefile.in: Handle m68*-*-coff*.
10435 read.c, read.h: add mult argument to s_space
10436
7f2cb270
KR
10437 * tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
10438 Motorola and MIT syntax; gas can now assemble either type of
10439 file.
10440 tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
10441 From Steve Chamberlain:
10442 m68kcoff.mt: for m68k COFF.
10443 obj-coffbfd.c: (fixup_mdeps) added
10444 (size_section) removed bad sanity check
10445 (fill_section) added rs_machine_dependent case
10446 (write_object_file) call fixup_mdeps
10447 (fixup_segment) set fx_subsy to 0.
10448 obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
10449 handle m68k.
10450 tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
10451 pseudo ops.
10452
db4d20e5
KR
10453Tue Sep 8 17:10:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10454
10455 * Makefile.in (LIBS): Include opcode library.
10456
e53ab768
KR
10457Fri Sep 4 18:20:56 1992 Ken Raeburn (raeburn@cygnus.com)
10458
10459 * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers
10460 including zero are accepted, pass +0.0.
10461
7e10f53c
ILT
10462Sun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com)
10463
10464 * Makefile.in: map "as" through program_transform_name when
10465 installing.
10466
0cca30f3
KR
10467 * doc/Makefile.in: map "as" through program_transform_name when
10468 installing.
10469
b0952e12
JW
10470Sat Aug 29 12:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10471
10472 * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
10473
7f2cb270
KR
10474Fri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com)
10475
10476 * obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
10477 tc-i960.c (md_ri_to_chars): Always output bout object file in
10478 little endian byte order (used to use endianness of host).
10479
b2f221a9
KR
10480Tue Aug 25 15:50:48 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10481
10482 * config/tc-m68k.c (init_table): Now const. Always include 68851
10483 data, so that "bc" is available to 68040 cache instructions.
10484 Added "tt0", "tt1", and 68ec030 variants.
10485 (md_assemble): Complain if 68000 (only) and 68881 are specified.
10486 (enum _register): Added TT0, TT1.
10487 (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass
10488 line number correctly in "internal error" messages. Don't print
10489 architecture-mismatch message for operand errors.
10490
10491 From Colin Smith (colin@wrs.com):
10492 * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather
10493 than install_operand.
10494
ab737e51
SC
10495Tue Aug 25 15:13:48 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10496
10497 * listing.c (buffer_line): rewind to the start of include
10498 files, they might be included twice.
10499
7f2cb270
KR
10500 * z8k.c, z8k.h, z8k.mt: z8000 support stuff
10501
7121231f
ILT
10502Mon Aug 24 12:45:43 1992 Ian Lance Taylor (ian@cygnus.com)
10503
10504 * Makefile.in: defined TARGET_CPU for C code so that it can choose
10505 one element of a family.
10506
7f2cb270
KR
10507 * tc-m68k.c: use TARGET_CPU to choose default cpu type.
10508
10509 * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
10510 so that we can assemble hand-written libgcc code.
10511
4772861e
KR
10512Fri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
10513
10514 * messages.c (as_warn): Use fputs, not fprintf, with a buffer that
10515 has already been formatted (but may still contain %-characters).
10516 (as_bad): Likewise.
10517
7f2cb270
KR
10518Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
10519
10520 * tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
10521 written with indirection on the last two operands, which can be
10522 either data or address registers. Added a new operand type 'r'
10523 which accepts either register type. Added '(' to notend stuff in
10524 tc-m68kmote.c to accept (a0):(a2) in cas2 instruction.
10525
09952cd9
KR
10526Wed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com)
10527
10528 * as.h (enum _relax_state): Start off at one, not zero, to better
10529 catch uninitialized-variable errors.
10530 (linkrelax): Declare new variable.
10531
10532 * messages.c (warning_count, error_count): Default initializer is
10533 sufficient.
10534
10535 * write.c: Merged some declarations, using PARMS macro.
10536 (text_frag_root, data_frag_root, bss_frag_root, text_last_frag,
10537 data_last_frag): No longer static.
10538 (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is
10539 defined, call it. Change segments before calling fixup_segment.
10540 (relax_align): If linkrelax, provide extra padding.
10541
10542 * obj-bout.c (obj_emit_relocations): Emit alignment relocs despite
10543 their not having symbols associated.
10544
10545 * tc-i960.c (norelax, instrument_branches): Default initializer is
10546 sufficient.
10547 (linkrelax): Delete variable definition.
10548 (mem_fmt): Call fix_new with NO_RELOC.
10549 (tc_bout_fix_to_chars): Handle alignment relocs.
10550 (i960_handle_align): New function.
10551 * tc-i960.h (linkrelax): Delete declaration.
10552 (HANDLE_ALIGN): New macro; calls i960_handle_align.
10553 (NEED_FX_R_TYPE, NO_RELOC): New macros.
10554
a457f4d9
KR
10555Tue Aug 18 14:59:21 1992 Ken Raeburn (raeburn@cygnus.com)
10556
10557 * config/sparc.mt: New file. Grab sparc opcode table from bfd
10558 library.
10559
4b857710
ILT
10560Tue Aug 18 14:16:38 1992 Ian Lance Taylor (ian@cygnus.com)
10561
10562 * Makefile.in: always create installation directories. Removed
10563 MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
10564 FLAGS_TO_PASS to recursive makes.
10565
0cca30f3
KR
10566 * doc/Makefile.in: always create installation directories.
10567
f7e9bc5a
SC
10568Mon Aug 17 15:09:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10569
10570 * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was
10571 being used with args swapped, causing occasional lossage when
10572 refilling buffers after an include file.
10573
c1c28543
KR
10574Mon Aug 17 13:18:51 1992 Ken Raeburn (raeburn@cygnus.com)
10575
10576 * messages.c (as_tsktsk): Use correct ANSI form for stdarg
10577 version. Discard bogus DONTDEF version.
10578 (as_warn, as_bad, as_fatal): Likewise.
10579
2e20e59a
KR
10580Fri Aug 14 18:31:14 1992 Ken Raeburn (raeburn@cygnus.com)
10581
10582 * config/tc-m68k.c (m68k_ip): If instruction is invalid for the
10583 selected architecture, print a message saying so and listing what
10584 processors support it, rather than saying "operands mismatch".
10585
c8c7e0bf
KR
10586Thu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com)
10587
10588 * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
10589
10590 * config/ho-rs6000.h (M_RS6000): Don't define it.
10591 (free): Declare it.
10592 (BROKEN_ASSERT): Define it if not __STDC__.
10593
7f2cb270
KR
10594Tue Aug 11 12:58:14 1992 Ken Raeburn (raeburn@cygnus.com)
10595
10596 * sparc.mt: New file.
10597
10598Mon Aug 10 14:37:08 1992 Per Bothner (bothner@cygnus.com)
10599
10600 * tc-m68k.c: ".align N" means align to N-byte boundary *only*
10601 if TN_SUN3; otherwise align to 2**N-byte bounary.
10602
7fd3560a
SC
10603Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10604
10605 * read.c (s_fill): make the .fill size clamped error a warn and
10606 fix bug where 0's were always placed.
10607
7f2cb270
KR
10608 * config/tc-h8300.c: if a :8 is seen after an operand, fill top
10609 two bytes of any constant with 0xff:
10610
62594bd7
SC
10611Wed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10612
10613 * config/tc-m68k.c (md_pseudo_table): fix the .align thing
4f3569fa 10614 the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo.
62594bd7 10615
7f2cb270
KR
10616Wed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com)
10617
10618 * tc-m68k.c (try_index): Error if index scaling specified and
10619 assembling for an older CPU than a 68020.
10620
680227f3
KR
10621Sat Aug 1 19:10:13 1992 Ken Raeburn (raeburn@cygnus.com)
10622
10623 * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take
10624 fx_offset into account.
10625
c51ccfd5
KR
10626Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com)
10627
10628 * configure.in (mips host): Accept "ultrix" with version number.
10629
10630 * expr.c (floating_constant): Separate "=-" to avoid confusing
10631 ancient or broken compilers.
10632
10633 * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate
10634 processor/opcode mismatch, so reword the error message.
10635 (md_assemble): If no CPU has been set (even if FPU/PMMU
10636 characteristics have been), default to 68020. Don't need extra
10637 quotes around error string.
10638
14f1fc24
JW
10639Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10640
10641 * read.c (potable): Revert sac's incorrect change made Jul 13.
10642 Align really is supposed to be ptwo not nbytes.
10643
10644Mon Jul 20 02:51:59 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
10645
10646 * Makefile.in: _Do_ include libiberty. (from sef)
10647
10648Fri Jul 17 15:15:28 1992 Ken Raeburn (raeburn@cygnus.com)
10649
10650 * expr.c (integer_constant): Handle "0f" and "0b" label references
10651 properly.
10652
462088b8
SC
10653Thu Jul 16 08:20:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10654
10655 * write.c (fixup_segment): if relaxing, don't do anything.
10656 * config/obj-bout.[ch] : maintain the a_relaxable file header info
10657 * config/tc-i960.c: new option -linkrelax
10658
10659Mon Jul 13 14:11:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10660
10661 * expr.c (expr): allow SEG_BSS in expressions
10662 * read.c (potable): align should be nbytes, not ptwo!
10663 * write.c (write_object_file): extra glue for new bss attributes
10664 (relax_segment): SEG_BSS is ok now
10665 * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes
10666
7f2cb270
KR
10667Mon Jul 6 17:09:32 1992 Steve Chamberlain (sac@cygnus.com)
10668
10669 * obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT
10670
462088b8
SC
10671Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
10672
10673 * configure.in: recognize m680x0 as having sun3 emulation mode for
10674 vxworks environment.
10675
10676
0b0b5dba
DHW
10677Tue Jun 30 20:25:54 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
10678
10679 * Makefile.in: Add program_suffix (parallel to program_prefix)
10680
7c2d4011
SC
10681Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10682
10683 * app.c (process_escape): new function to handle escapes the right
10684 way, (do_scrub_next_char): use new function
10685 * cond.c (s_ifdef): do ifdef/ifndef right
10686 * read.c (s_fill): make the , expressions optional like the doc
10687 says
10688 * config/tc-h8300.[ch]: better warnings
10689
90d49457
SC
10690Tue Jun 9 07:54:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10691
65bfcf2e
SC
10692 * subsegs.c (subsegs_begin): create bss0_frchainP in the same was
10693 as data0_frchainP
10694
10695 * write.c (write_object_file): various changes to handle data in
132239bf 10696 the BSS segment in much the same was as stuff in the DATA segment.
65bfcf2e 10697
7f2cb270
KR
10698 * tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do
10699 pcrel data stuff. (md_estimate_size_before_relax): when relaxing a
10700 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into
10701 the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put
10702 it into SEG_BSS
462088b8 10703
f8701a3f
SC
10704Thu Jun 4 11:59:13 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10705
10706 * expr.c(expr): allow SEG_REGISTER in expressions.
10707 * read.c(pseudo_set): register expressions can be the source of a
10708 set.
10709 * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to
10710 goto SEG_TEXT (if a.out)
10711 * write.c (write_object_file): If a.out don't use the old way for
10712 -R.
10713 * config/obj-a.out (s_sect): complain if the user tries to use a
10714 subsegment with a value which might interfere with out -R hackery.
10715 * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table
10716 rather than use ugly if tree. (init_regtable): insert register
10717 names into symbol table.
10718
ebfb4167
MT
10719Tue Jun 2 16:47:09 1992 Steve Chamberlain (sac@cygnus.com)
10720
10721 * write.c (write_object_file): keep the fix_tail clean, which
10722 fixes a bug in -R where relocations were being lost.
10723
10724Mon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com)
10725
10726 * configure.in: recognize m680x0 as having sun3 emulation mode for
10727 vxworks environment.
10728
10729Sun May 31 05:33:00 1992 david d `zoo' zuhn (zoo@cygnus.com)
10730
69cb5925 10731 * configure.in: recognize m680x0 as an m68k
ebfb4167 10732
dfd53fe9
JW
10733Thu May 28 11:22:02 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
10734
10735 * configure.in: Recognize sparclite as a sparc variant.
10736
7f2cb270
KR
10737 * tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new
10738 -Asparclite flag.
10739
d312e231
SC
10740Tue May 26 16:47:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10741
10742 * config/tc-a29k.c: lint
10743 * listing.c, expr.c: patches from Andrew Smith
10744
0cca30f3
KR
10745Thu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10746
10747 * doc/Makefile.in: use m4 rather than gm4.
10748
7f2cb270
KR
10749Mon May 4 18:56:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10750
10751 * obj-coffbfd.c: use is a synonym for section, (do_relocs_for):
10752 calc the base of relocs correctly.
10753 * tc-a29k.c (parse_operand): allow expressions to be in any section.
10754
d312e231
SC
10755Mon Apr 27 13:13:31 1992 K. Richard Pixley (rich@cygnus.com)
10756
10757 * as.c, write.c: use -K rather than -k for the broken word warning
10758 option.
10759
fa493b93
RP
10760Tue Apr 21 13:35:30 1992 K. Richard Pixley (rich@cygnus.com)
10761
10762 * Makefile.in: do not print recursion lines.
10763
d96c09ed
RP
10764Wed Apr 15 21:19:31 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10765
10766 * Makefile.in: the tooldir copy of gas goes directly in tooldir.
10767
10768Tue Apr 14 14:50:22 1992 Ken Raeburn (Raeburn@Cygnus.COM)
10769
10770 * write.c (write_object_file): For b.out format, round up section
10771 start addresses to match required alignment.
10772
81484684
KR
10773Thu Apr 9 05:45:29 1992 Ken Raeburn (Raeburn@Cygnus.COM)
10774
10775 * Makefile.in (install): Install into $(tooldir)/bin, since that's
10776 where gcc looks for it.
10777
3876b4c5
SEF
10778Tue Apr 7 15:12:15 1992 Sean Eric Fagan (sef@cygnus.com)
10779
10780 * Makefile.in: Changed some lines to be less confusing for some
10781 makes.
10782
10783 * input-file.c: Conditionalize on _IOFBF, not VMS.
10784
10785 * read.c, write.c: Change a series of ifdef/elif to
10786 ifdef/else/ifdef etc.
10787
10788Fri Mar 27 12:21:16 1992 K. Richard Pixley (rich@cygnus.com)
10789
10790 * symbols.c (fb_label_init): fix sizeof to memset.
10791
95a925b8
RP
10792Fri Mar 13 15:45:44 1992 K. Richard Pixley (rich@cygnus.com)
10793
3876b4c5
SEF
10794 * Makefile.in: install the man page.
10795
95a925b8
RP
10796 * Makefile.in: pass down MAKEINFO explicitly on info.
10797
0cca30f3
KR
10798 * doc/Makefile.in: use $(MAKEINFO) not makeinfo.
10799
5d53038b
SC
10800Fri Mar 13 08:03:03 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10801
10802 * flonum-const.c: renamed flonum-konst.c to stop dos name
10803 conflict.
10804
7f2cb270
KR
10805Thu Mar 12 04:42:38 1992 K. Richard Pixley (rich@cygnus.com)
10806
10807 * tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
132239bf 10808 tc-m68k.h to te-sun3.h.
7f2cb270 10809
8c1b25e4
RP
10810Wed Mar 11 23:32:42 1992 K. Richard Pixley (rich@cygnus.com)
10811
10812 * configure.in: vxworks68 gets te-sun3.h.
10813
10814 * expr.c: remove limitation that local_labels_dollar or
10815 local_labels_fb must be < 10.
10816
10817 * symbols.c: remove local_labels_dollar, replace with a function
10818 interface for a sparse array. All users adjusted.
10819
7f2cb270
KR
10820 * te-sun3.h: add LOCAL_LABELS_DOLLAR.
10821
0cca30f3
KR
10822Sat Mar 7 00:06:25 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10823
10824 * doc/Makefile.in: commented out line for building as-all.texinfo.
10825 This is temporary.
10826
10827 * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks.
10828
8c1b25e4
RP
10829Fri Mar 6 21:57:18 1992 K. Richard Pixley (rich@cygnus.com)
10830
10831 * Makefile.in: added check target.
10832
10833Tue Mar 3 15:45:56 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10834
10835 * Makefile.in: added tooldir and program_prefix.
10836
10837Sun Mar 1 04:43:19 1992 Michael Tiemann (tiemann@cygnus.com)
10838
10839 * write.{c,h} (fix_new): Make these declarations consistent.
10840
1651b22d
MT
10841Sat Feb 29 13:59:10 1992 Michael Tiemann (tiemann@cygnus.com)
10842
10843 * Makefile.in (strerror.o): Add rule so that broken Sun make can
10844 work in subdirs.
10845
5373c439
SC
10846Wed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10847
10848 * read.c, obj-coffbfd.c : fix h8300 specific bit rot
10849
10850 * expr.c (operand): if can't work out what sort of operand it is,
10851 then look through FLT_CHARS for a hint.
10852
8c1b25e4
RP
10853Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
10854
10855 * Makefile.in, configure.in: removed traces of namesubdir,
10856 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10857 copyrights to '92, changed some from Cygnus to FSF.
10858
0cca30f3
KR
10859 * doc/Makefile.in, doc/configure.in: removed traces of namesubdir,
10860 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10861 copyrights to '92, changed some from Cygnus to FSF.
10862
f24f7577
SC
10863Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10864
14d3e47b
SC
10865 * expr.c: If an expression is single comma, then return with
10866 SEG_ABSENT rather than an error - since the sparc front end does
132239bf 10867 really strange things with things like fbge,a
14d3e47b 10868
f24f7577
SC
10869 * as.h: include bfd.h if using many sections
10870 * expr.c: LOCAL_LABELS_FB had been changed to lower case - so
10871 local labels didn't work.
10872 * listing.c (list_symbol_table): don't core dump when there's no
10873 symbol there.
10874 * write.c, write.h: call fix_new with the right number of args on
10875 the H8.
10876 * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
10877 errors nices
10878
c593cf41
SC
10879Sat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10880
10881 * app.c: MRI compatibility - allow single quote to start a string.
10882 * as.c: fix typo recently introduced.
10883 * as.h : Don't include aout/reloc.h - it's not right for COFF!
10884 * expr.c: Much rewriting, to accomodate MRI syntax for
10885 expressions. Also easier to read now.
10886 * listing.c: Put back defuns
10887 * read.c: modified to accept MRI syntax, put back listing pseudo
10888 ops so that an assembler built with NO_LISTING ignores list ops
10889 rather than pukes.
10890 * write.c, write.h: fixs - only keep a reloc type in a fix if the target
10891 machine is a SPARC or a 29K.
10892 * config/obj-aout.c: added s_sect pseudo op
10893 * config/obj-coffbfd.c: lints, set the filehdr flags right and
10894 fill in the timestamp.
10895 * config/obj-coffbfd.h: Since we don't include aout/reloc.h
10896 anymore, define all the relocs which the tc-<x> bit will use so we
10897 can translate from them to the coff types.
10898 * config/tc-a29k.c: reloc_type isn't ane enum any more
10899 * config/tc-m68k.c: Added NO_RELOC definition.
10900
2d97273c
RP
10901Fri Feb 21 06:21:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10902
c593cf41
SC
10903 * Makefile.in: put header files before C source for TAGS; remove
10904 references to non-existent syscalls.h.
10905
2d97273c
RP
10906 * read.c, write.c subsegs.c: back out the .bss changes.
10907
7f2cb270
KR
10908 * obj-aout.c: do not include stab.gnu.h if NO_LISTING.
10909
10910 * tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place.
10911
10912 * a.out.h: removed.
10913
6d5460ab
RP
10914Fri Feb 21 01:08:48 1992 Minh Tran-Le (TRANLE@INTELLICORP.COM)
10915
10916 * symbols.c (local_label_name): symbols now start with ^A.
10917
10918 * read.c, subsegs.c, write.c obj-coff.c: added handling of
10919 `.bss` pseudo op for unitialized data. The new gcc (1.37.9x)
10920 generate these sections. .align: will use NOP_OPCODE or 0
10921 for padding. This is just for being nice to the
10922 disassembler.
10923
10924 * expr.c (operand): changed to generate local label "\001L0"
10925 starting with a ^A so that it is recognized as a local label.
10926
10927 * as.c (perform_an_assembly_pass): zero bss_fix_root, too.
10928
7f2cb270
KR
10929 * tc-i386.c: tc-i386.c: added handling of the following opcodes:
10930 i/o opcodes - inb, inw, outb and outw. string manipulation with
10931 att syntax - scmp, slod, smov, ssca, ssto.
10932
10933 * obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss
10934 to just after .file .
10935
10936 In obj_crawl_symbol_chain() where it tries to put the external
10937 symbols apart, with the condition:
10938 (!S_IS_DEFINED(symbolP) &&
10939 !S_IS_DEBUG(symbolP) &&
10940 !SF_GET_STATICS(symbolP))
10941 it was moving too many symbols out. So I switch it back to the
10942 condition:
10943 (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP))
10944
10945 In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO
10946 so that we don't use the F_RELFLG which make the linker complain
10947 that somebody has stripped the relocation info.
10948
10949 Also, the AIX ld program require that the relocation table
10950 is sorted by r_vaddr like the standard ATT assembler does.
10951
10952 [he also changed the sizeof(struct ...)'s into the coff
10953 style FOOSZ macros. I'm not sure this is right, but I can't
10954 remember why. xoxorich.]
10955
d6e344db
RP
10956Fri Feb 21 01:08:48 1992 K. Richard Pixley (rich@cygnus.com)
10957
10958 * Makefile.in, configure.in, doc: use the doc. Build it, install
10959 it, clean it, etc.
10960
eb9eacd3
RP
10961Tue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com)
10962
aa3782d2
RP
10963 * read.c: white space and comments only.
10964
f816adbc
RP
10965 * configure.in: use the new atof-ns32.c for ns32k.
10966
eb9eacd3
RP
10967 * write.c: comment change only.
10968
7f2cb270
KR
10969 * tc-m88k.[hc]: pulled in from hack's unfinished work. These
10970 aren't yet integrated.
10971
10972 * tc-i860.[hc]: blew off the dust. Something must still be done
10973 about conflicting relocation types.
10974
10975 * tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the
10976 real thing.
10977
10978 * tc-i960.c, tc-sparc.c: white space and comments only.
10979
10980 * tc-a29k.h: delete duplicate macro definition.
10981
10982 * new file atof-ns32k.c copied from hack's last unreleased gas.
10983
542e1629 10984Mon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com)
b3ca913f 10985
eb9eacd3
RP
10986 * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work
10987 rather than abort.
132239bf 10988
542e1629
RP
10989 * nearly everything. flush ChangeLog, package as gas-1.92.1.
10990 ChangeLog's prior to this are sketchy at best. I have logs.
10991 They just aren't ChangeLogs.
33e61c95
ILT
10992
10993\f
10994Local Variables:
de442a3c
ILT
10995mode: indented-text
10996left-margin: 8
10997fill-column: 74
33e61c95
ILT
10998version-control: never
10999End:
This page took 0.652817 seconds and 4 git commands to generate.