Mon Aug 26 18:24:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
f9085532 1start-sanitize-d10v
3017263b
MH
2Mon Aug 26 18:24:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3
4 * config/tc-d10v.c: Fixed ".word". Fixed problem with range checking
5 on addresses. Improved error messages.
6 * doc/c-d10v.texi: Added docs for register pairs.
7
f9085532
MH
8Mon Aug 26 13:39:27 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
9
10 * config/tc-d10v.c (parallel_ok): Fix bug in parallel
11 checking code.
12
13end-sanitize-d10v
58275724
ILT
14Mon Aug 26 14:38:22 1996 Ian Lance Taylor <ian@cygnus.com>
15
16 * ecoff.c (init_file): Initialize fMerge to 1.
17 (add_file): Restore old file merging code, but only merge files if
18 fMerge is set.
19 (ecoff_directive_loc): Clear fMerge field of current file.
20 (ecoff_generate_asm_lineno): Likewise.
21
b1c28263
MH
22start-sanitize-d10v
23Fri Aug 23 11:40:47 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
24
25 * doc/c-d10v.texi: Fix typo.
26
27end-sanitize-d10v
c9a32d6c
JL
28start-sanitize-v850
29Fri Aug 23 10:41:32 1996 Jeffrey A Law (law@cygnus.com)
30
58275724
ILT
31 * config/tc-v850.c (md_assemble): Correct bit masking for
32 hi and lo expressions.
33
88b47a85
JL
34 * config/tc-v850.c (md_assemble): Rough cut at demanding
35 "ep" or "r30" in sst and sld instructions.
36 (md_apply_fix3): Don't abort. Just warn that we don't
37 have relocs yet.
38
c9f1b2d9
JL
39 * config/tc-v850.c (CC_NAME_CNT): Define.
40 (cc_name): New function.
41 (md_assemble): Handle V850_OPERAND_CC correctly.
42
d5974c57
JL
43 * config/tc-v850.c (md_assemble): Don't forget to initialize
44 "insn"!
45
0e8f9bd1
JL
46 * config/tc-v850.c (reg_name_search): Generalize to search
47 any given register table.
48 (register_name): Pass appropriate table and size to reg_name_search.
49 (system_register_name): New function.
50 (SYSREG_NAME_CNT): Define.
51 (md_assemble): Handle operands which are system registers.
52
c9a32d6c
JL
53 * config/tc-v850.c (md_assemble): If we find a register, but the
54 opcode doesn't want a register, then we don't have a match.
55 (md_assemble): Get size of the instruction from the opcode table.
56
57end-sanitize-v850
eeef602f
ILT
58Thu Aug 22 10:20:30 1996 Ian Lance Taylor <ian@cygnus.com>
59
8ee90d35
ILT
60 * configure.in: Set and substitute HLDENV.
61 * configure: Rebuild.
62 * Makefile.in (HLDENV): New variable.
63 (as.new): Use $(HLDENV).
64
eeef602f
ILT
65 * ecoff.c (ecoff_directive_endef): Avoid a division by zero error
66 if an array dimension is not known.
67
6be9ec8d
MH
68start-sanitize-d10v
69Thu Aug 22 10:50:00 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
70
71 * config/tc-d10v.c: Fix a reloc bug caused by my last change.
72 * doc/c-d10v.texi: Cleanup.
73
74end-sanitize-d10v
c6aa56bc
C
75start-sanitize-v850
76Tue Aug 20 15:15:16 1996 J.T. Conklin <jtc@hippo.cygnus.com>
77
78 * config/tc-v850.c: New file.
79 * config/tc-v850.h: New file.
80 * configure (v850-*-elf): New target.
81 * configure.in (v850-*-elf): New target.
82
83end-sanitize-v850
ab457c4c 84start-sanitize-d10v
2c2e5626
MH
85Wed Aug 21 15:50:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
86
87 * doc/c-d10v.texi: New file.
88 * doc/all.texi: Added D10V stuff.
89 * doc/as.texinfo: Added D10V stuff.
90
ab457c4c
MH
91Tue Aug 20 14:10:02 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
92
93 * config/tc-d10v.c: All references to defined symbols should
94 now use the optimal instruction. .float and .double now work.
95
96end-sanitize-d10v
d4e1b0be
ILT
97Mon Aug 19 14:41:36 1996 Ian Lance Taylor <ian@cygnus.com>
98
99 * config/obj-coff.c (fixup_segment): Adjust PC relative reloc by
100 section address for the i960 as is done for the i386.
101
102Thu Aug 15 16:37:59 1996 Stan Shebs <shebs@andros.cygnus.com>
103
104 * mpw-config.in: Add wildcards for config matching, add mips-*-*
105 case, forward-include bfd/elf-bfd.h.
106
b98b04ea
MH
107start-sanitize-d10v
108Thu Aug 15 13:24:30 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
109
110 * config/tc-d10v.c: Add additional information to the opcode
111 table to help determinine which instructions can be done
112 in parallel.
113
114end-sanitize-d10v
115Thu Aug 15 17:01:31 1996 James G. Smith <jsmith@cygnus.co.uk>
116
117 * config/tc-arm.c: Major changes to add Thumb support, with lots
118 of change input from <rearnsha@armltd.co.uk>.
119 Reverted to INSN_SIZE macro, rather than insn_size variable.
120 (insns): Added ARM "bx" instruction support.
121 (tinsns): Added Thumb instruction definition structure.
122 (arm_tops_hsh): Added hash structure for Thumb opcodes.
123 (md_pseudo_table): Added ".arm", ".thumb" and ".code" pseudo-ops.
124 (opcode_select,s_arm,s_thumb,s_code): Added.
125 (decode_shift): Allow upper-case RRX.
126 (do_ldst): Simpler halfword support.
127 (do_ldmstm): Improved.
128 (reg_list, do_bx, thumb_reg, thumb_add_sub, thumb_shift,
129 thumb_mov_compare, thumb_load_store, do_t_arit, do_t_add,
130 do_t_asr, do_t_branch, do_t_bx, do_t_compare, do_t_ldmstm,
131 do_t_ldrb, do_t_ldrh, do_t_lds, do_t_lsl, do_t_lsr, do_t_mov,
132 do_t_push_pop, do_t_str, do_t_strb, do_t_strh, do_t_sub, do_t_swi,
133 do_t_adr): Added.
134 (md_apply_fix3): Add support for BFD_RELOC_ARM_THUMB_* relocations.
135 (md_parse_option): Add support for -mthumb.
136 (md_show_usage): Updated to reflect new command line option.
137 (arm_data_in_code, arm_canonicalize_symbol_name): Added.
138 * config/tc-arm.h: Provide TC_FIX_TYPE to allow private ARM
139 fragment information to be held.
140
141Thu Aug 15 16:12:00 1996 Richard Earnshaw (rearnsha@armltd.co.uk)
142
143 * tc-arm.c (md_apply_fix3): Also set fixP->fx_done if fx_addsy is
144 non-null, but is a constant.
145 (fix_new_arm): Call make_expr_symbol to make the expression symbol
146 so that error reporting will work correctly.
147
126436a8
ILT
148Wed Aug 14 10:37:21 1996 Ian Lance Taylor <ian@cygnus.com>
149
150 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust relocs
151 against weak symbols.
152
0e94336e
ILT
153Tue Aug 13 17:39:24 1996 Ian Lance Taylor <ian@cygnus.com>
154
155 * config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
156 (ppc_force_relocation): Declare if OBJ_XCOFF.
157 * config/tc-ppc.c (ppc_force_relocation): New function if
158 OBJ_XCOFF.
159
817e4f75
ILT
160Mon Aug 12 16:49:43 1996 Ian Lance Taylor <ian@cygnus.com>
161
162 * config/tc-mips.h (BYTE_ORDER): Don't define. No longer used.
163
f494d503
MH
164start-sanitize-d10v
165Fri Aug 9 17:48:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
166
167 * config/tc-d10v.c: Fix problem with relocs.
168
169end-sanitize-d10v
8d07d2c9
ILT
170Fri Aug 9 14:16:14 1996 Ian Lance Taylor <ian@cygnus.com>
171
172 * config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
173 with nops if not in data_section or bss_section.
174
f649d525
ILT
175Thu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
176
177 Add support for openVMS/Alpha.
178 * as.h (PRINTF_LIKE): Don't define if VMS, for now.
179 * config/obj-evax.c: New file.
180 * config/obj-evax.h: New file.
181 * config/tc-alpha.c: Add support for EVAX format if OBJ_EVAX is
182 defined.
183 * config/tc-alpha.h: Add support for EVAX format if OBJ_EVAX is
184 defined. Add case for bfd_target_evax_flavour.
185 * config/vms-a-conf.h: New file.
186 * conf-a-gas.com: New file.
187 * configure.in: Add target alpha-*-*vms*.
188 * configure: Rebuild.
189 * makefile.vms: New file.
190 * read.c (s_lcomm): Align bss_seg on 8 byte boundary if OBJ_EVAX.
191 Don't call ffs on openVMS/Alpha.
192
5cece526
ILT
193Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
194
195 * configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
196 <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr
197 and sbrk.
198 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
199 (NEED_DECLARATION_SBRK): New macro.
200 * configure, conf.in: Rebuild.
201 * as.h: Only include <strings.h> if HAVE_STRINGS_H.
202 (strstr): Declare if NEED_DECLARATION_STRSTR.
203 * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
204
e592f0e6
ILT
205Wed Aug 7 11:50:26 1996 Ian Lance Taylor <ian@cygnus.com>
206
d10df990
ILT
207 * symbols.c (resolve_symbol_value): Handle addition or subtraction
208 by a constant before entering the main switch. Reject attempts to
209 apply an arithmetic function to non-absolute symbols, except for
210 the special case of subtraction of two symbols in the same
211 section.
212
cf32394d
ILT
213 * config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
214 not to more than a 16 byte boundary.
215
e592f0e6
ILT
216 * config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
217 #ifndef OBJ_ELF lines. From Eric Valette <valette@crf.canon.fr>.
218 (tc_gen_reloc): If out of memory call as_fatal rather than
219 assert. If no howto found, call as_bad_where rather than
220 as_fatal. Change the error message slightly. Set howto to a
221 non-NULL value in order to keep going.
222
5d9a99a7
MH
223start-sanitize-d10v
224Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
225
226 * config/tc-d10v.c: Added code to support 32-bit fixups for stabs.
227
228end-sanitize-d10v
6a8e0036
JL
229Tue Aug 6 11:15:26 1996 Jeffrey A Law (law@cygnus.com)
230
231 * config/tc-h8300.c (get_specific): New operand "size" derived
232 from ".b", ".w" and ".l" extensions. All callers changed. If
233 the base instruction has no operands, then use the size to
234 determine which specific instruction to use.
235
3d7b0c49
ILT
236Mon Aug 5 14:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
237
238 * config/tc-i960.c (mem_fmt): Call parse_expr before emit.
239
10a14e36
ILT
240Fri Aug 2 11:23:31 1996 Ian Lance Taylor <ian@cygnus.com>
241
242 * config/tc-mips.c (md_section_align): Don't change addr if
243 OBJ_ELF.
244
470a679c
JL
245Thu Aug 1 23:51:52 1996 Jeffrey A Law (law@cygnus.com)
246
247 * config/tc-hppa.c: Revert yesterday's changes.
248
b5cf6779
MH
249start-sanitize-d10v
250Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
251
252 * config/tc-d10v.c: Disable range checking on 16-bit values.
253
254end-sanitize-d10v
159eb3c0
ILT
255Wed Jul 31 16:27:19 1996 Ian Lance Taylor <ian@cygnus.com>
256
257 * config/tc-m68k.c (m68k_ip): Set ok_arch for every instruction,
258 not just the ones that don't match.
259
37e05f64
MH
260start-sanitize-d10v
261Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
262
263 * config/tc-d10v.c: Fixed bugs in short relocs and range checking.
264
265end-sanitize-d10v
c479fc62
JSC
266Wed Jul 31 15:41:42 1996 James G. Smith <jsmith@cygnus.co.uk>
267
268 * config/tc-arm.c: Changed INSN_SIZE to variable insn_size, as
269 pre-cursor to adding Thumb support. Also added cpu_variant flag
270 information to each of the asm_flg structures.
271 (md_parse_option): Updated ARM7 parsing to allow 't' for
272 thumb/halfword support, aswell as 'm' for long multiply.
273 (md_show_usage): Updated help message.
274 (md_assemble): Check that instruction flags are applicated to the
275 current cpu variant.
276 (md_apply_fix3, tc_gen_reloc): Add BFD_RELOC_ARM_OFFSET_IMM8 and
277 BFD_RELOC_ARM_HWLITERAL relocation support for new halfword and
278 signextension instructions.
279 (do_ldst): Generate halfword and signextension variants if
280 mnemonic flags match.
281 (ldst_extend): Do not allow shifts in the offset field of halfword
282 or signextension instructions.
283 (validate_offset_imm): Provide check on halfword and signextension
284 immediate range.
285 (add_to_lit_pool): Merge identical literal pool values.
286
448b5aad
JL
287Tue Jul 30 14:28:23 1996 Jeffrey A Law (law@cygnus.com)
288
289 * config/tc-hppa.c (selector_table): Add 'E' selector.
290 (cons_fix_new_hppa): Don't coke on e_esel.
291 (tc_gen_reloc, SOM version): Handle R_COMP2 when used
292 to help generate exception handling tables.
293 (md_apply_fix): Don't try to apply fixups with an e_esel
294 selector.
295 (hppa_fix_adjustable): Fixups with e_esel selectors
296 are not adjustable.
297
8dfb05cc
ILT
298Tue Jul 30 15:51:41 1996 Ian Lance Taylor <ian@cygnus.com>
299
300 * config/tc-sparc.c (md_pseudo_table): Add 2byte, 4byte, and 8byte
301 pseudo-ops.
302
8544dc03
MH
303start-sanitize-d10v
304Fri Jul 26 11:43:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
305
306 * config/tc-d10v.c: Added lots of error checking. Added hacks
307 to support accumulator shifts.
308
309end-sanitize-d10v
5ca547dc
ILT
310Fri Jul 26 11:56:08 1996 Ian Lance Taylor <ian@cygnus.com>
311
312 * symbols.c (S_SET_EXTERNAL): Let .weak override.
313 (S_CLEAR_EXTERNAL): Likewise.
314 (S_SET_WEAK): Remove error; just let .weak override.
315
0ef32559 316start-sanitize-d10v
35ad20a1
MH
317Thu Jul 25 15:22:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
318
319 * config/tc-d10v.c (md_assemble): Now handles multiline
320 instructions.
321
7c096652
MH
322Thu Jul 25 12:03:33 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
323
324 * config/tc-d10v.c: Fix packaging bug. Added range checking.
325 Added kludge for divs instruction. Fixed minor problem with
326 multiple text sections.
35ad20a1
MH
327 * config/tc-d10v.h (d10v_cleanup): Change prototype.
328
93050391
MH
329Tue Jul 23 10:49:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
330
331 * config/tc-d10v.c (md_apply_fix3): Fix all instruction
332 addresses to be right-shifted by 2.
333
0ef32559
MH
334Mon Jul 22 11:32:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
335
336 * config/tc-d10v.c: Many changes to get relocs working.
337 (register_name): No longer creates a symbol for register names.
338 (pre_defined_registers): moved to opcodes/d10v-opc.c.
339 (d10v_insert_operand): Now works correctly for either container.
340 * config/tc-d10v.h (d10v_cleanup): Declare.
341
342end-sanitize-d10v
97aca1bc
ILT
343Mon Jul 22 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
344
345 * config/tc-mips.c (tc_gen_reloc): BFD_RELOC_PCREL_HI16_S and
346 BFD_RELOC_PCREL_LO16 are expected to be PC relative.
347
6543a7fb
ILT
348Mon Jul 22 12:46:55 1996 Richard Henderson <rth@tamu.edu>
349
350 * tc-alpha.c: Patches to track current minimum alignment to reduce
351 the number of fragments created with frag_align.
352 (alpha_current_align): New static variable.
353 (s_alpha_text): Reset alignment to 0.
354 (s_alpha_data, s_alpha_rdata, s_alpha_sdata): Likewise.
355 (s_alpha_stringer, s_alpha_space): New functions.
356 (s_alpha_cons, alpha_flush_pending_output): Remove functions.
357 (alpha_cons_align): New function to replace both of them.
358 (emit_insn): Only align if alpha_current_align is less than 2;
359 reset alpha_current_align to 2.
360 (s_alpha_gprel32): Likewise.
361 (s_alpha_section): New function. Basically duplicate the other
362 alpha section change hooks. Only define for ELF.
363 (s_alpha_float_cons): Simplify alignment handling.
364 (md_pseudo_table): Only define "rdata" and "sdata" if OBJ_ECOFF.
365 If OBJ_ELF, define "section", "section.s", "sect", and "sect.s".
366 Don't define the s_alpha_cons pseudo-ops. Do define
367 s_alpha_stringer and s_alpha_space pseudo-ops.
368 (alpha_align): Skip if less than current default alignment. Set
369 default alignment.
370 * tc-alpha.h (md_flush_pending_output): Remove.
371 (md_cons_align): Add.
372
373 * tc-alpha.c: Add oodles of function description comments.
374 (md_bignum_to_chars): Remove; there are no callers.
375 (md_show_usage): Mention some more variants.
376
091221ce
ILT
377Thu Jul 18 15:54:54 1996 Ian Lance Taylor <ian@cygnus.com>
378
0b27ea39
ILT
379 From Andrew Gierth <ANDREWG@microlise.co.uk>:
380 * configure.in (sparc-*-sysv4*): New target.
381 * configure: Rebuild.
382
8dd07a84
ILT
383 * config/tc-sparc.c (md_pseudo_table): Change uahalf, uaword, and
384 uaxword to use s_uacons.
385 (sparc_no_align_cons): New static variable.
386 (s_uacons): New static function.
387 (sparc_cons_align): If sparc_no_align_cons is set, just clear it
388 and return.
389
390 * config/tc-sparc.c (s_common): Remove unused label allocate_bss.
391
cbe7dccb
ILT
392 * configure.in: Add mips-*-irix6* target. Handle Irix 6 like Irix
393 5 with regard to shared libraries.
394 * configure: Rebuild.
395
091221ce
ILT
396 * config/tc-m68k.c (m68k_ip): Use the correct length when
397 allocating space for the unsupported architecture error message.
398
7be9a312 399start-sanitize-d10v
05a8bf33
MM
400Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
401
402 * configure.in (d10v-*-*): Allow d10v-*-*, don't require d10v-*-elf*.
403
404Wed Jul 17 14:25:13 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
7be9a312
MH
405
406 * config/tc-d10v.c: New file.
407 * config/tc-d10v.h: New file.
408 * configure (d10v-*-elf): New target.
409 * configure.in (d10v-*-elf): New target.
410end-sanitize-d10v
411
10c9620d
MM
412Fri Jul 12 20:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
413
414 * config/tc-ppc.c (md_parse_option): Recognize -K PIC.
415
0ee09671
ILT
416Wed Jul 10 12:39:08 1996 Richard Henderson <rth@tamu.edu>
417
418 * config/tc-alpha.c (alpha_align): Change fill parameter
419 to a pointer. Take NULL as 0 or nop depending on section. Change
420 all callers.
421 (s_alpha_align): Rename local variables.
422
423 * doc/as.texinfo (.align): Document action of omitted
424 fill parameter.
425
3128726c
ILT
426Wed Jul 10 00:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
427
428 * config/tc-ppc.c (md_apply_fix3): Give a useful error message
429 when an unsupported PC relative reloc is seen, rather than calling
430 abort.
431
432 * app.c (do_scrub_chars): Remove not_cpp_line local variable.
433 Instead, check state when '#' comment is seen.
434
7f003b7f
ILT
435Mon Jul 8 14:11:49 1996 Ian Lance Taylor <ian@cygnus.com>
436
a8aed9dd
ILT
437 * config/tc-mips.c (mips_regmask_frag): Only define if OBJ_ELF or
438 OBJ_MAYBE_ELF.
439 (tc_gen_reloc): If fixup was changed to be PC relative, change
440 reloc type accordingly. Use name of reloc in error message.
441
a5a78175
ILT
442 * as.h: Don't define const or volatile.
443 * flonum.h: Don't define const.
444
7f003b7f
ILT
445 * config/tc-m68k.c (tc_gen_reloc): Change the code appropriately
446 if fx_pcrel is set. Correct setting the addend case in the
447 OBJ_ELF case (from Andreas Schwab
448 <schwab@issan.informatik.uni-dortmund.de>).
449 (md_show_usage): Correct -mfc5200 to -m5200.
450
8d20a0a8
C
451Fri Jul 5 10:32:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
452
910d7df2
C
453 * doc/c-m68k.texi: Document -m5200 flag.
454 * doc/as.texinfo: Likewise.
455
8d20a0a8
C
456 * config/tc-m68k.c (m68k_ip): The coldfire does not support 8x
457 scale factor.
458
c0b34702
ILT
459Fri Jul 5 11:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
460
461 * symbols.c (S_SET_EXTERNAL): Change as_warn to as_bad.
462 (S_CLEAR_EXTERNAL, S_SET_WEAK): Likewise.
463
45c85bcb
ILT
464Thu Jul 4 11:59:46 1996 Ian Lance Taylor <ian@cygnus.com>
465
6624477c
ILT
466 * Makefile.in (VERSION): Set to cygnus-2.7.1.
467
45c85bcb
ILT
468 * Released binutils 2.7.
469
fc636a52
JSC
470Thu Jul 4 10:11:33 1996 James G. Smith <jsmith@cygnus.co.uk>
471
472 * config/tc-mips.c (mips_ip): Only perform range check when
473 dealing with O_constant expressions.
474
d41d2ccc
C
475Wed Jul 3 15:02:21 1996 J.T. Conklin <jtc@rtl.cygnus.com>
476
477 * m68k-parse.h (m68k_register): Add new coldfile control
478 registers.
479
480 * config/tc-m68k.c (mcf5200_control_regs): New variable,
481 array of control registers for the coldfire.
482 (cpu_of_arch): Added mcf5200.
483 (archs): Added mcf5200.
484 (init_table): Add new control registers.
485 (m68k_ip): Added support for new control registers.
486 (m68k_init_after_args): Likewise.
487
488 * config/tc-m68k.c (md_show_usage): Add -m5200 to usage text.
489
5af96dce
ILT
490Wed Jul 3 16:05:50 1996 Ian Lance Taylor <ian@cygnus.com>
491
c5d8f96e
ILT
492 * read.h (is_it_end_of_statement): Declare.
493 * read.c (is_it_end_of_statement): Remove declaration.
494
495 * config/tc-ppc.c (ppc_elf_suffix): Correct parenthesization of ||
496 within &&.
497 (md_assemble): Fix handling of @l with an unsigned constant. Add
498 default case to reloc switch.
499
ac76c7e9
ILT
500 * config/tc-i386.h (AOUT_MACHTYPE): Define as 0 if TE_386BSD.
501
5af96dce
ILT
502 Based on patches from Tom Quiggle <quiggle@sgi.com>:
503 * ecoff.c (last_lineno): New static variable.
504 (add_procedure): Set last_lineno.
505 (ecoff_directive_loc): Likewise.
506 (ecoff_generate_asm_lineno): Likewise.
507 (ecoff_fix_loc): New function.
508 * ecoff.h (ecoff_fix_loc): Declare.
509 * config/tc-mips.c (append_insn): When inserting nops, and using
510 ECOFF debugging, call ecoff_fix_loc.
511
b9bddc84
JL
512Tue Jul 2 23:02:12 1996 Jeffrey A Law (law@cygnus.com)
513
514 * config/tc-h8300.c (build_bytes): If an operand type is
515 marked as SRC_IN_DST retrieve it from the "destination" op.
516
379c2fb4
ILT
517Sat Jun 29 13:38:31 1996 Ian Lance Taylor <ian@cygnus.com>
518
69c1de90
ILT
519 * configure.in (arm-*-riscix*): Set emulation to riscix.
520 * configure: Rebuild.
521 * config/te-riscix.h: New file to define TE_RISCIX.
522
379c2fb4
ILT
523 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Define.
524
525Fri Jun 28 15:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
526
527 * Makefile.in (config.status): Just run config.status as other
528 tools do.
529
c611cd82
SS
530Fri Jun 28 11:09:38 1996 Stan Shebs <shebs@andros.cygnus.com>
531
532 * mpw-config.in (TARGET_OS): Add definition to conf.
533
fbf011f2
ILT
534Thu Jun 27 20:39:40 1996 James G. Smith <jsmith@cygnus.co.uk>
535
536 * config/tc-mips.c (append_insn): Parenthesize
537 cop_interlocks expressions.
538
539Thu Jun 27 12:18:26 1996 Ian Lance Taylor <ian@cygnus.com>
540
541 * listing.c (listing_print): Close the listing file if it is not
542 stdout. Close the other files opened for the listing.
681dbbc0
ILT
543
544 * config/tc-sparc.h (md_cons_align): Define.
545 (sparc_cons_align): Declare.
546 (HANDLE_ALIGN): Define.
547 (sparc_handle_align): Declare.
548 * config/tc-sparc.c (sparc_cons_align): New function.
549 (sparc_handle_align): New function.
550 * read.c (cons_worker): Call md_cons_align if it is defined.
551
552 * as.h (struct frag): Add fr_file and fr_line fields.
553 * frags.c (frag_new): Set fr_file and fr_line.
554 (frag_var): Likewise.
555 (frag_variant): Likewise.
556
7e027ce6
ILT
557 * as.h (struct frag): Remove unused align_mask and align_offset
558 fields.
559
f9b990cd
ILT
560 * listing.c (calc_hex): Offset by fr_fix when examining fr_var.
561 From <uddeborg@carmen.se>.
562
9b4b98bd
ILT
563Wed Jun 26 13:21:34 1996 Ian Lance Taylor <ian@cygnus.com>
564
67b48b58
ILT
565 * configure.in (mips-*-osf*): New target.
566 * configure: Rebuild.
567
9b4b98bd
ILT
568 * config/tc-m68k.c: Add 68ec060 as a synonym for 68060.
569
344a8d61
JSC
570Wed Jun 26 16:23:08 1996 James G. Smith <jsmith@cygnus.co.uk>
571
572 * config/tc-mips.c: Added cop_interlocks, to avoid NOP insertion
573 between co-processor comparisons and branches for the VR4300.
574
1c94de4d
JM
575Mon Jun 24 18:02:50 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
576
577 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
578 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
579 (docdir): Removed.
580 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
581 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
582 includedir): Use autoconf set values.
583 (docdir): Removed.
584
b290fd25
ILT
585Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
586
1c94de4d
JM
587 * listing.c (listing_eject): Don't do anything if listing is 0.
588 (listing_list): Likewise.
589 (listing_source_line): Likewise.
590 (listing_title): Don't save title if listing is 0.
591 (listing_source_file): Check listing rather than listing_tail.
592
b290fd25
ILT
593 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
594 using shared libraries.
595 * configure: Rebuild.
596
597Fri Jun 21 18:22:23 1996 Ian Lance Taylor <ian@cygnus.com>
598
599 * config/tc-mips.c (mips_ip): In case 'i'/'j', don't require an
600 absolute expression if a relocation type was specified.
601
644edced
ILT
602Fri Jun 21 17:40:16 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
603
604 * configure.in: Add support for *-*-rtems* configurations.
605 * configure: Rebuild.
606
df586de2
ILT
607Fri Jun 21 16:01:18 1996 Richard Henderson <rth@tamu.edu>
608
609 * configure.in: Add alpha-*-linuxecoff* target. Use elf for
610 alpha-*-linux* target. Force bfd_gas for alpha-*. Require
611 opcodes library for alpha.
612 * configure: Rebuild with autoconf 2.10.
613 * config/tc-alpha.c: Substantial rewrite to add ELF support and
614 use new opcode table.
615 * config/tc-alpha.h (md_undefined_symbol): Don't define.
616 (LOCAL_LABEL): Define differently if OBJ_ELF.
617 (FAKE_LABEL_NAME): Define if OBJ_ELF.
618 * config/alpha-opcode.h: Remove.
619 * config/obj-elf.h: If TC_ALPHA, define ECOFF_DEBUGGING.
620 * Makefile.in (TARG_CPU_DEP_alpha): Depend upon
621 include/opcode/alpha.h rather than config/alpha-opcode.h.
622
7ca8e36e
ILT
623Thu Jun 20 19:10:28 1996 Ian Lance Taylor <ian@cygnus.com>
624
edec3111
ILT
625 * config/obj-aout.c (obj_emit_relocations): Give an error if the
626 relocation symbol was not resolved.
627 * config/obj-coff.c (do_relocs_for): Likewise.
628
7ca8e36e
ILT
629 * write.c (adjust_reloc_syms): Refetch the symbol section after
630 calling S_GET_VALUE, since it may have changed.
631
632 * expr.c (struct expr_symbol_line): Define.
633 (expr_symbol_lines): New static variable.
634 (make_expr_symbol): Add entry to expr_symbol_lines.
635 (expr_symbol_where): New function.
636 * expr.h: Use extern on function declarations.
637 (expr_symbol_where): Declare.
638 * symbols.c (resolve_symbol_value): Try to use expr_symbol_where
639 rather than printing the meaningless name of an expression
640 symbol.
641
214f540d
KR
642Thu Jun 20 15:57:41 1996 Ken Raeburn <raeburn@cygnus.com>
643
644 * config/tc-i386.c (md_number_to_chars): Deleted.
645 * config/tc-i386.h (md_number_to_chars): New macro.
646
647 * config/tc-alpha.c (build_operate_n, build_mem): Moved earlier in
648 the file.
649 (load_symbol_address, load_expression): Use build_mem.
650 (build_operate): New function.
651 (emit_addq_r): Use it.
652
653 Wed Mar 13 22:14:14 1996 Pat Rankin <rankin@eql.caltech.edu>
654
655 * symbols.c (colon): #if VMS, use S_SET_OTHER to store `const_flag'.
656
657 Tue Mar 5 14:31:45 1996 Pat Rankin <rankin@eql.caltech.edu>
658
659 * config/tc-vax.h (NOP_OPCODE): Define.
660
661 Sun Feb 4 21:01:03 1996 Pat Rankin <rankin@eql.caltech.edu>
662
663 * config/obj-vms.h (S_IS_COMMON): Define.
664 (S_IS_LOCAL): Check for \002 as well as \001.
665 (LONGWORD_ALIGNMENT): New macro.
666 (SUB_SEGMENT_ALIGN): Use it.
667
668 Fri Jan 26 17:44:09 1996 Pat Rankin <rankin@eql.caltech.edu>
669
670 * config/vms-conf.h: Reconcile with conf.in.
671
7b9b1eb2
ILT
672Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
673
793f9558
ILT
674 * write.c (is_dnrange): Only define if TC_GENERIC_RELAX_TABLE is
675 defined.
676
84577dde
ILT
677 * doc/as.texinfo: Document that any number of hex digits can
678 follow \x.
679
0d6cae1e
ILT
680 * as.c (struct defsym_list): Define.
681 (defsyms): New static variable.
682 (parse_args): Just put --defsym arguments on defsyms list, rather
683 than defining them.
684 (main): Define defsyms after output file is created.
685
6e3f7f1b
ILT
686 * config/tc-m68k.c (m68k_ip): Reject PRE and POST indexing mode on
687 cpu32. From Eric Norum <Eric.Norum@usask.ca>.
688
8095b665
ILT
689 * config/tc-mips.c (mips_ip): In cases 'I', 'i', and 'j', set
690 insn_error rather than calling check_absolute_expr.
691
692 * as.c (emulation_name): Remove unused static variable.
693 (default_emul_bfd_name): Add return NULL to avoid warning.
694 * ecoff.c (ecoff_stab): Remove unused variables name and
695 name_end.
696 * frags.c (frag_new): Remove unused variable tmp.
697 * hash.c (hash_grow): Parenthesize + within <<.
698 (hash_print_statistics): Use %lu, not %d, to print unsigned
699 long variables.
700 * messages.c: Include "libiberty.h".
701 (fprint_value): Add cast to avoid printf warning.
702 (sprint_value): Likewise.
703 * read.c: Include "ecoff.h".
704 (emit_expr): Add casts to avoid printf warnings.
705 * read.h: Use extern for function declarations.
706 (pop_insert): Declare.
707 * stabs.c: Include "ecoff.h".
708 * subsegs.c (subseg_set_rest): Remove unused variables tmp,
709 former_last_fragP, and new_fragP.
710 * subsegs.h (subsegs_print_statistics): Declare.
711 * symbols.c (debug_verify_symchain): Change macro to discard
712 arguments.
713 * write.c (dump_section_relocs): Likewise.
714 * write.h: Use extern for function declarations.
715 (write_print_statistics): Declare.
716 * config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
717 warning.
718 * config/e-mipself.c (mipself_bfd_name): Likewise.
719 * config/obj-elf.h (elf_ecoff_set_ext): Declare.
720
9ee759fc
ILT
721 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): If OBJ_ELF, always
722 emit relocations against external symbols.
723
faa3f539
ILT
724 * config/tc-alpha.c (tc_gen_reloc): Output a sensible error
725 message if bfd_reloc_type_lookup fails, rather than calling
726 assert.
727
7b9b1eb2
ILT
728 * config/tc-alpha.c (alpha_force_relocation): Add
729 BFD_RELOC_12_PCREL to switch.
730
731Tue Jun 18 20:29:57 1996 Doug Evans <dje@canuck.cygnus.com>
732
733 * config/tc-i386.h (LOCAL_LABEL,FAKE_LABEL_NAME): Use defaults for
734 TE_PE (Lfoo, not .Lfoo).
735
d9453233
ILT
736Tue Jun 18 17:13:33 1996 Ian Lance Taylor <ian@cygnus.com>
737
24b018ee
ILT
738 * read.c (s_fill): Don't warn about a zero repeat count.
739
c674dcaa
ILT
740 * config/tc-mips.c (mips_ip): Don't warn about using AT as a
741 coprocessor register.
742
d9453233
ILT
743 * config/tc-i386.c (md_assemble): When checking the size of a
744 register to set the size of an instruction, do a bitwise and with
745 Reg8 and Reg16 rather than requiring the type to be exactly Reg8
746 or Reg16.
747
3d0afe12
JL
748Tue Jun 18 13:19:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
749
750 * config/tc-h8300.c (parse_reg): Tweak error messages.
751 (build_bytes): Likewise.
752 (skip_colonthing): Handle :32 suffix.
753 (get_specific): Promote L_24 to L_32 if it makes a match.
754 Don't always promote L_8 to L_16.
755 (do_a_fix_imm): Clean up L_32 and L_24 handling.
756
3d0afe12
JL
757 * config/tc-h8300.c (Smode): New variable.
758 (h8300hmode): Turn off Hmode.
759 (h8300smode): New function. Turn on Smode and Hmode.
760 (md_pseudo_table): New ".h8300s" pseudo-op.
761 (parse_reg): Handle "exr" register.
762 (get_operand): Handle bizarre syntax for "stm.l" and "ldm.l".
763 Handle "mach" and "machl" operands for ldmac.
764 (get_specific): Handle "stm.l" and "ldm.l".
765 (build_bytes): Handle "stm.l" and "ldm.l"; handle MACREG operands.
766 * config/tc-h8300.h (COFF_MAGIC): Handle H8/S magic number.
767 (Smode): Declare.
768
370181a2
C
769Mon Jun 17 15:50:53 1996 J.T. Conklin <jtc@rtl.cygnus.com>
770
771 * doc/as.texinfo: Reorder chapter of machine dependent options so
772 that it is sorted by chip name.
773
774 * doc/as.texinfo: Use consistant spelling of Vax.
775 * doc/c-vax.texi: Likewise.
776
02d4dd87
JL
777Mon Jun 17 11:26:56 1996 Jeffrey A. Law <law@rtl.cygnus.com>
778
779 * config/tc-hppa.c (md_pseudo_table): Add ".begin_try" and ".end_try"
780 pseudo ops.
781 (tc_gen_reloc, SOM version): Handle R_BEGIN_TRY and R_END_TRY.
782 (md_apply_fix): Likewise.
783 (pa_try): New function.
784 (hppa_force_relocation): Force relocs for BEGIN_TRY and END_TRY.
785
b81231b7
JL
786Sun Jun 16 22:57:47 1996 Jeffrey A. Law <law@rtl.cygnus.com>
787
788 * config/tc-hppa.c (md_pseudo_table): Add ".level" pseudo op.
789 (pa_level): New function.
790
fe8d0ff3
ILT
791Fri Jun 14 20:06:44 1996 Ian Lance Taylor <ian@cygnus.com>
792
793 * listing.c (listing_newline): Don't do anything if listing is 0.
794
795Thu Jun 13 17:50:54 1996 Ian Lance Taylor <ian@cygnus.com>
796
797 * subsegs.c (section_symbol): If symbol_table_frozen is set, call
798 symbol_create, not symbol_new.
799
9bec2a42
ILT
800Wed Jun 12 14:10:44 1996 Ian Lance Taylor <ian@cygnus.com>
801
802 * write.c (adjust_reloc_syms): Don't set sy_used_in_reloc for an
803 absolute symbol unless TC_FORCE_RELOCATION returns true.
804
805 * config/obj-coff.c (previous_file_symbol): Remove BFD_ASSEMBLER
806 version.
807 (c_dot_file_symbol): BFD_ASSEMBLER version: Don't set the value of
808 the symbol to a pointer. Don't set previous_file_symbol.
809 Simplify symbol list rearrangement.
810 (coff_frob_symbol): Don't do anything with C_FILE symbols.
811 (coff_adjust_symtab): Don't check previous_file_symbol.
812
c992cf9b
MM
813Mon Jun 10 14:52:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
814
815 * config/tc-ppc.c (ppc_elf_lcomm): New function for .lcomm
816 directive.
817 (md_pseudo_table): Add ppc_elf_lcomm.
818
1ba76615 819Mon Jun 10 11:45:51 1996 Ian Lance Taylor <ian@cygnus.com>
92e61d31
ILT
820
821 * config/tc-m68k.c (m68k_ip): Accept ABSL for 'O', so that `bfextu
822 d0{24:1},d0' works without an immediate prefix on the bit numbers.
823 (md_begin): Add digits to alt_notend_table.
824 (md_parse_option): Make s a const pointer.
1ba76615 825
b91e85c2
ILT
826 * config/tc-sparc.c (md_pseudo_table): Add "empty".
827 (s_empty): New static function.
828
e789e620
ILT
829 * config/obj-coff.c (struct filename_list): Only define if not
830 BFD_ASSEMBLER.
831 (filename_list_head, filename_list_tail): Likewise.
832 (c_section_symbol): Remove unused BFD_ASSEMBLER version.
833 (obj_coff_endef, BFD_ASSEMBLER version): Don't set the debugging
834 flag for C_MOS, C_MOE, C_MOU, or C_EOS symbols, since they should
835 have a section of N_ABS rather than N_DEBUG. If we do a merge,
836 remove the new symbol from the list.
837 (obj_coff_endef, both versions): Call tag_insert even if there is
838 an old symbol with the same name, if the old symbol does not
839 happen to be a tag.
840 (coff_frob_symbol): Check SF_GET_TAG, C_EOF, and C_FILE outside of
841 the SF_GET_DEBUG condition. Don't call SA_SET_SYM_ENDNDX with a
842 symbol that will be moved to the end of the symbol list.
843 (coff_adjust_section_syms): Always call section_symbol for .text,
844 .data, and .bss.
845 (coff_frob_section): Likewise. Also, remove unused variable
846 strname.
847
0670452e
ILT
848 * config/tc-ns32k.c (convert_iif): Call frag_grow rather than
849 manipulating frags directly.
850 (md_number_to_field): Adjust mem_ptr correctly if ENDIAN is
851 defined.
852
41822c41
ILT
853 * app.c (do_scrub_chars): If '/' is LINE_COMMENT_START, check
854 whether the next character is '*' before checking whether we are
855 at the start of a line. Permit LINE_COMMENT_START to start a
856 comment in state 1 (seen some whitespace) as well, to match the
857 documentation.
858
1ba76615
ILT
859 * gasp.c (do_align): Permit a fill value for .align.
860
ed381b67
JW
861Wed Jun 5 17:09:26 1996 Ian Lance Taylor <ian@cygnus.com>
862
863 * read.c (next_char_of_string): Warn if a newline is seen in the
864 middle of a string. Call bump_line_counters when appropriate.
865
866Wed Jun 5 17:08:36 1996 Richard Henderson <rth@tamu.edu>
867
868 * symbols.c (colon): Use LOCAL_LABEL.
869
2c7aeec6
TT
870Tue Jun 4 10:55:16 1996 Tom Tromey <tromey@csk3.cygnus.com>
871
872 * Makefile.in (install): Don't check to see if tooldir exists.
873 Make $(tooldir) and $(tooldir)/bin.
874
527b8324
MM
875Tue Jun 4 10:14:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
876
877 * config/ppc-sol.mt (TDEFINES): Don't turn on -mregnames by
878 default.
879
3b426f5a
ILT
880Mon Jun 3 11:34:41 1996 Ian Lance Taylor <ian@cygnus.com>
881
882 * config/tc-mips.c (mips_ip): Don't call as_warn if we are setting
883 insn_error. Don't put the string "ERROR" in insn_error. Set
884 insn_error rather than calling as_warn for an unsupported opcode.
885
9c44af60
ILT
886Sat Jun 1 21:51:55 1996 Ian Lance Taylor <ian@cygnus.com>
887
888 * config/tc-mips.c (md_parse_option): Check for a 64 bit format
889 before permitting -64.
890 * output-file.c (output_file_create): Remove duplicate
891 bfd_perror.
892
98bfd087
ILT
893Fri May 31 01:08:06 1996 Ian Lance Taylor <ian@cygnus.com>
894
87178180
ILT
895 * config/tc-mips.c (md_begin): If -64, create a .MIPS.options
896 section rather than a .reginfo section.
897 (mips_elf_final_processing): If -64, write out 64 bit RegInfo
898 information.
899
98bfd087
ILT
900 * config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
901 bit value with the high bit set.
902
b95bee13
ILT
903Thu May 30 19:00:19 1996 Ian Lance Taylor <ian@cygnus.com>
904
905 * read.c (s_lcomm): Set section flags for .sbss section.
906
907 * config/tc-mips.c (mips_64): New static variable.
908 (mips_target_format): If mips_64, return elf64 targets rather than
909 elf32 ones.
910 (md_longopts): Add "32" and "64".
911 (md_parse_option): Handle -32 and -64.
912 (md_show_usage): Mention -32 and -64.
913 (cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
914 a 4 byte one.
915
1facd5f0
MM
916Thu May 30 10:36:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
917
98bfd087
ILT
918 * config/tc-ppc.c (comment_chars): Make '!' a comment character
919 for Solaris compatibility.
d0e1c803 920
1facd5f0
MM
921 * stabs.c (s_stab_generic): Under PowerPC Solaris, convert a
922 .stabd with 4 arguments into a .stabn.
923
a40aee38
ILT
924Wed May 29 16:43:16 1996 Ian Lance Taylor <ian@cygnus.com>
925
926 * config/tc-mips.c (macro): When passing X_add_number to
927 macro_build, cast it to int first.
928
943bdfdc
ILT
929Tue May 28 13:29:39 1996 Ian Lance Taylor <ian@cygnus.com>
930
54388b85
ILT
931 * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as
932 created by emit_expr.
933
943bdfdc
ILT
934 * symbols.c (symbol_create): If bfd_make_empty_symbol fails, call
935 as_perror rather than assert.
936
9b61d62b
ILT
937Fri May 24 18:24:11 1996 Ian Lance Taylor <ian@cygnus.com>
938
939 * config/tc-mips.c (mips_ip): Mark sections created to hold
940 floating point information as read only.
941
e30c0076
MM
942Fri May 24 12:07:54 1996 David Edelsohn <edelsohn@mhpcc.edu>
943
944 * config/tc-ppc.c (ppc_set_cpu): Change defaults to match AIX.
945
63cafcef
MM
946Thu May 23 17:34:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
947
adeab39b
MM
948 * read.c (potable): Add .skip as a synonym for .space.
949
63cafcef
MM
950 * stabs.c (s_stab_generic): For PowerPC ELF, allow .stabd to take
951 4 arguments, providing the 4th argument is 0, to allow
952 compatibility with the Solaris assembler.
953
954Thu May 16 15:51:48 1996 Ian Lance Taylor <ian@cygnus.com>
955
956 * config/tc-sh.h (struct sh_segment_info_type): Define.
957 (TC_SEGMENT_INFO_TYPE): Define.
958 (sh_frob_label): Declare.
959 (tc_frob_label): Define.
960 (sh_flush_pending_output): Declare.
961 (md_flush_pending_output): Define.
962 * config/tc-sh.c (md_assemble): If relaxing, emit a R_SH_CODE
963 reloc before the instruction if necessary.
964 (sh_frob_label): New function.
965 (sh_flush_pending_output): New function.
966 (sh_coff_frob_file): Ignore ALIGN, CODE, DATA, and LABEL relocs
967 when looking for the reloc for the target of .uses.
968 (md_convert_frag): Fix printf format (%0xlx to 0x%lx).
969 (sh_force_relocation): Force CODE, DATA, and LABEL relocs to be
970 emitted.
971 (md_apply_fix): Ignore CODE, DATA, and LABEL relocs.
972 (sh_coff_reloc_mangle): Force CODE, DATA, and LABEL relocs to use
973 the absolute symbol.
974
975 * subsegs.h (segment_info_type): Add tc_segment_info_data field if
976 TC_SEGMENT_INFO_TYPE is defined.
977
3ea36b53
ILT
978Wed May 15 12:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
979
980 * config/tc-i386.c (md_assemble): Make sure the opcode suffix
981 matches the register size.
982
ecb9b1ca
JL
983Wed May 15 08:33:37 1996 Jeffrey A Law (law@cygnus.com)
984
985 * config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
986 fx_done set.
987 (do_relocs_for): Likewise.
988 (fixup_segment): Don't just quit if linkrelax is set. Try to
989 apply non pc-relative sym1-sym2 fixups, even if linkrelax is
990 nonzero.
991
f122568e
MM
992Fri May 10 14:16:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
993
994 * config/tc-ppc.c (ppc_elf_validate_fix): Allow GOT and section
995 relative relocations with -mrelocatable. Also allow unfixed
996 relocs in .ex_shared.
997
6648d3ae
ILT
998Tue May 7 11:24:10 1996 Ian Lance Taylor <ian@cygnus.com>
999
1000 * config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
1001 non-zero before assuming this is a long file name.
1002 (w_strings): Likewise.
1003 (c_dot_file_symbol): Set FNAME_OFFSET to 1 for a long file name.
1004
1005 * config/obj-coff.c (w_strings): Move declaration of i inside
1006 #ifdef block which uses it.
1007
c47fc401
JL
1008Tue May 7 00:49:58 1996 Jeffrey A Law (law@cygnus.com)
1009
1010 * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
1011 "relaxmode". Output relocs which identify various relaxing
1012 possibilities for mov.[bwl] instructions.
1013 (build_bytes): Pass in a relaxing mode to do_a_fix_imm.
1014
9ea82743
DE
1015Mon May 6 15:26:28 1996 Doug Evans <dje@canuck.cygnus.com>
1016
1017 * config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
1018 (MD_APPLY_FIX3): Define.
1019 * config/tc-arm.c (my_get_expression): Only watch for bad segments
1020 if OBJ_AOUT.
1021 (md_apply_fix3): Renamed from md_apply_fix.
1022 If pcrel reloc and symbol is in different section, undo effects
1023 of md_pcrel_from.
1024
ab7db73b
JL
1025Sat May 4 12:49:35 1996 Jeffrey A Law (law@cygnus.com)
1026
1027 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
1028 any reloc with an LR% or RR% field selector for SOM.
1029
c9324fcd
ILT
1030Sat May 4 11:26:19 1996 Ian Lance Taylor <ian@cygnus.com>
1031
1032 * Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
1033 variables.
1034
d4d7d98c
ILT
1035Fri May 3 17:58:31 1996 Ian Lance Taylor <ian@cygnus.com>
1036
1037 * config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
1038 SF_GET_STATICS set.
1039 (yank_symbols): Likewise.
1040
8fe2ec52
ILT
1041Wed May 1 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
1042
7681eb9d
ILT
1043 * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
1044 BFD_ASSEMBLER, add name field.
ba97ba7e
ILT
1045 * config/obj-coff.c: Include "libiberty.h".
1046 (coff_header_append): Handle long section names.
7681eb9d
ILT
1047 (crawl_symbols): Just use the name field for the symbol name,
1048 without worrying about null byte termination.
1049 (w_strings): Handle long section names.
1050 (write_object_file): Likewise. Also, use the name field, rather
1051 than scnhdr.s_name.
1052 (obj_coff_add_segment): Permit long section names.
1053 (obj_coff_init_stab_section): Use the name field, rather than
1054 scnhdr.s_name.
1055 (adjust_stab_section): Likewise.
1056 * config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.
1057
8fe2ec52
ILT
1058 * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
1059 (mem_fmt): Likewise.
1060 (md_apply_fix): Don't check fx_im_disp field.
1061
556829bc
ILT
1062Thu Apr 25 11:39:51 1996 Ian Lance Taylor <ian@cygnus.com>
1063
f9e36fc6
ILT
1064 * configure.in: Add * after sparc*-*-vxworks.
1065 * configure: Rebuild.
1066
556829bc
ILT
1067 * app.c (do_scrub_begin): If tc_comment_chars is not defined,
1068 define it to comment_chars. Use tc_comment_chars rather than
1069 comment_chars.
1070 (do_scrub_chars): Use tc_comment_chars rather than comment_chars.
1071 * config/tc-m68k.h (tc_comment_chars): Define.
1072 (m68k_comment_chars): Declare.
1073 * config/tc-m68k.c (m68k_comment_chars): Rename from
1074 comment_chars. Change into a pointer rather than an array.
1075 (md_longopts): Add "bitwise-or".
1076 (md_parse_option): Handle OPTION_BITWISE_OR.
1077 (md_show_usage): Mention --bitwise-or.
1078 * doc/c-m68k.texi: Document --bitwise-or.
1079
116bf30f
ILT
1080Wed Apr 24 11:28:38 1996 Ian Lance Taylor <ian@cygnus.com>
1081
912e4245
ILT
1082 * config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
1083 in 68000 mode.
1084
116bf30f
ILT
1085 * config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
1086 call demand_empty_rest_of_line. Non BFD_ASSEMBLER version:
1087 correct handling of input line pointer, and call
1088 demand_empty_rest_of_line.
1089
58c9a12b
DE
1090Mon Apr 22 18:02:37 1996 Doug Evans <dje@blues.cygnus.com>
1091
1092 * config/tc-sparc.c (in_bitfield_range): New static function.
1093 (sparc_ip): New cases X,Y. Use SPARC_OPCODE_ARCH_V9_P.
1094 (md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
1095 BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
1096 (md_apply_fix): New cases BFD_RELOC_SPARC_[56].
1097 (tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].
1098
ff406bd3
ILT
1099Thu Apr 18 18:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
1100
1101 * config/obj-coff.c: BFD_ASSEMBLER:
1102 (coff_last_bf): New static variable.
1103 (coff_frob_symbol): Set endndx of a .bf symbol.
1104 Non BFD_ASSEMBLER:
1105 (obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
1106 (last_bfP): New static variable.
1107 (yank_symbols): Set endndx of a .bf symbol.
1108
47d12b2c
MM
1109Thu Apr 18 11:53:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1110
1111 * config/tc-ppc.c (md_parse_option): Add support for Solaris's -le
1112 and -s options. Add -be for good measure.
1113
3ce7f41a
ILT
1114Wed Apr 17 12:31:01 1996 Ian Lance Taylor <ian@cygnus.com>
1115
1116 * read.c (s_space): Support non-constant fill value. Handle fill
1117 value correctly for a size other than 1.
1118
865447db
DE
1119Tue Apr 16 15:17:40 1996 Doug Evans <dje@canuck.cygnus.com>
1120
1121 * config/tc-arm.c (my_get_float_expression): Update call to
1122 gen_to_words, X_PRECISION changed from 6 to 5.
1123
159e6ef8
MM
1124Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1125
1126 * config/tc-ppc.c (register_name,reg_name_search): Move register
1127 name lookup from PE specific code to all targets. Add support for
1128 -mregnames/-mno-regnames to control whether register names are
1129 expanded or not.
1130 (md_assemble): Call register_name for all platforms.
1131 (md_parse_option): Add support for -mregnames/-mno-regnames.
1132
1133 * configure.in (powerpcle*-*-solaris): Add support.
1134 (powerpc*-*-linux): Ditto.
1135 * configure: Regenerate.
1136
1137 * config/ppc-sol.mt: New config file for PowerPC Solaris.
1138
7a15a226
ILT
1139Mon Apr 15 12:26:33 1996 Ian Lance Taylor <ian@cygnus.com>
1140
aa9e2dbe
ILT
1141 * config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
1142 be associated with a single %lo reloc.
1143
7a15a226
ILT
1144 * config/tc-mips.c (load_address): Cast X_add_number to valueT
1145 before comparing against MAX_GPREL_OFFSET, so that negative
1146 numbers are handled correctly.
1147 (macro): Likewise.
1148
65feb78d
ILT
1149Thu Apr 11 12:39:02 1996 Ian Lance Taylor <ian@cygnus.com>
1150
ed94c2b8
ILT
1151 * config/tc-sparc.c (last_insn): New static variable.
1152 (md_assemble): Warn about putting floating point branches in a
1153 delay slot. If architecture is less than v9, insert NOP
1154 instructions between floating point instructions and floating
1155 point branches. (The SunOS assembler does both these operations.)
1156 Save the last instruction opcode.
1157 (sparc_ip): Add pinsn parameter. Change caller.
1158
65feb78d
ILT
1159 * config/tc-m68k.c (md_estimate_size_before_relax): Correct check
1160 for byte jump to next instruction to skip empty frags.
1161
456c301f
ILT
1162Wed Apr 10 16:48:12 1996 Ian Lance Taylor <ian@cygnus.com>
1163
1164 * config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
1165 for addq with a 16 bit signed value, just emit a lda instruction
1166 instead.
1167
b3ed89e8
JL
1168Wed Apr 10 14:34:49 1996 Jeffrey A Law (law@cygnus.com)
1169
1170 * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
1171 of a 32bit operand.
1172
b4cb4ea2
ILT
1173Mon Apr 8 14:42:53 1996 Ian Lance Taylor <ian@cygnus.com>
1174
1175 * configure.in: Permit --enable-shared to specify a list of
1176 directories.
1177 * configure: Rebuild.
1178
dcb195f8
JL
1179Fri Apr 5 17:01:35 1996 Jeffrey A Law (law@cygnus.com)
1180
1181 * config/tc-h8300.c (get_specific): Remove some #if 0 code.
1182 (build_bytes): Remove all ABSMOV related code; it's unnecessary.
1183
13e4a17e
ILT
1184Fri Apr 5 15:13:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1185
1186 * config/atof-ieee.c: Fix handling of denormalized extended
1187 precision numbers and overflow/underflow detection.
1188 (MAX_PRECISION, X_PRECISION, P_PRECISION): Changed from 6 to 5, to
1189 not include the 16 bit gap in the m68k extended precision format.
1190
2ae5f50b
ILT
1191Fri Apr 5 14:29:23 1996 Ian Lance Taylor <ian@cygnus.com>
1192
1193 * configure.in: Add i386-*-freebsdelf* target; from John Polstra
1194 <jdp@polstra.com>.
1195 * configure: Rebuild.
1196
54ea771f
JSC
1197Fri Apr 5 18:39:28 1996 James G. Smith <jsmith@cygnus.co.uk>
1198
1199 * config/tc-mips.c: Allow non-zero offsets from .sdata symbols to
1200 be accessed using the $gp register.
1201 * config/tc-mips.h (MAX_GPREL_OFFSET): Added.
1202
65b12103
DE
1203Wed Apr 3 10:56:14 1996 Doug Evans <dje@canuck.cygnus.com>
1204
1205 * config/tc-sparc.c (sparc_md_end): Set bfd machine number to
1206 bfd_mach_sparc_sparclet if current_architecture is sparclet.
1207
2271578d
ILT
1208Mon Apr 1 16:55:44 1996 Ian Lance Taylor <ian@cygnus.com>
1209
1210 * read.c (get_line_sb): Bump line counters based on
1211 input_line_pointer[-1], not *input_line_pointer. Don't bother to
1212 call LISTING_NEWLINE.
1213 (s_macro): Don't call demand_empty_rest_of_line.
1214 * app.c (do_scrub_chars): When handling C style comments, unget
1215 ch2 rather than ch.
1216
7d3741ed
ILT
1217Fri Mar 29 16:15:06 1996 Ian Lance Taylor <ian@cygnus.com>
1218
1219 * read.h (enum linkonce_type): Define.
1220 (s_linkonce): Declare.
1221 * read.c (potable): Add "linkonce".
1222 (s_linkonce): New function.
1223 * subsegs.h (segment_info_type): Add linkonce field to
1224 MANY_SEGMENTS && ! BFD_ASSEMBLER section.
1225 * config/obj-coff.h (obj_handle_link_once): Define if TE_PE.
1226 (obj_coff_pe_handle_link_once): Declare if TE_PE.
1227 * config/obj-coff.c: If TE_PE and not BFD_ASSEMBLER, #include
1228 "coff/pe.h".
1229 (obj_coff_pe_handle_link_once): New function, defined if TE_PE.
1230 (c_section_symbol): If TE_PE, set the x_comdat field in the aux
1231 entry based on the linkonce field in segment_info.
1232 * doc/as.texinfo: Document .linkonce.
1233
0c203340
C
1234Fri Mar 29 11:31:27 1996 J.T. Conklin (jtc@lisa.cygnus.com)
1235
1236 * doc/as.1: Changed to be recognized by catman -w on Solaris.
1237
867a58b3
ILT
1238Thu Mar 28 15:27:47 1996 Ian Lance Taylor <ian@cygnus.com>
1239
3197da91
ILT
1240 * stabs.c (s_stab_generic): Call the listing functions before
1241 doing the rest of the processing, which may involve freeing the
1242 string. Pass string, not string + stroff, to OBJ_PROCESS_STAB in
1243 SEPARATE_STAB_SECTIONS case.
1244
3c071b9f
ILT
1245 * config/tc-hppa.c: Remove nested comment.
1246 (tc_gen_reloc): Move label done inside the ifdef in which it is
1247 used.
1248 (md_apply_fix): Pass pointers to correct types to libhppa.h
1249 functions. Always return a value.
1250
867a58b3
ILT
1251 * config/tc-mips.h (tc_frob_file): Define.
1252 (mips_frob_file): Declare.
1253 * config/tc-mips.c (struct mips_hi_fixup): Define.
1254 (mips_hi_fixup_list): New static variable.
1255 (imm_unmatched_hi): New static variable.
1256 (md_assemble): Clear imm_reloc, imm_unmatched_hi, and
1257 offset_reloc. Pass imm_unmatched_hi to append_insn.
1258 (append_insn): Add unmatched_hi parameter. If it is set, add the
1259 new fixup to mips_hi_fixup_list. Change all callers.
1260 (mips_ip): Set imm_unmatched_hi when appropriate.
1261 (mips_frob_file): New function.
1262
d0352cbb
DE
1263Thu Mar 28 11:47:59 1996 Doug Evans <dje@canuck.cygnus.com>
1264
1265 * configure.in (sparc-*-solaris2*): Renamed from sparc*-*-solaris2*.
1266 * configure: Regenerated.
1267
4f74c042
ILT
1268Tue Mar 26 18:19:12 1996 Ian Lance Taylor <ian@cygnus.com>
1269
1270 * as.c (main): Call bfd_set_error_program_name.
1271
5ba7c0be
ILT
1272Fri Mar 22 11:13:00 1996 Ian Lance Taylor <ian@cygnus.com>
1273
c7a89bde
ILT
1274 * as.h (strdup): Don't declare.
1275 * stabs.c: Include libiberty.h
1276 (get_stab_string_offset): Use xstrdup rather than strdup.
1277 (s_stab_generic): Likewise.
1278 * as.c (parse_args): Likewise.
1279 * read.c (s_mri_sect): Likewise.
1280
5ba7c0be
ILT
1281 * gasp.c (change_base): Recognize \(...) construct documented to
1282 pass through enclosed characters literally through to the output.
1283 (process_assigns): Likewise. Also, be more careful to avoid
1284 looking past the end of the buffer.
1285
1286Thu Mar 21 13:18:43 1996 Ian Lance Taylor <ian@cygnus.com>
1287
1288 * config/tc-i386.c (md_parse_option): If OBJ_ELF, ignore -k for
1289 FreeBSD compatibility. From John Polstra <jdp@polstra.com>.
1290
d1f38e13
ILT
1291Wed Mar 20 18:13:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1292
1293 * doc/as.texinfo, doc/c-i960.texi: Fix typos.
1294
649d87fe
ILT
1295Wed Mar 20 17:05:16 1996 David Mosberger-Tang <davidm@azstarnet.com>
1296
1297 * config/alpha-opcode.h: Added cvtst instruction.
1298
975def01
ILT
1299Mon Mar 18 13:12:46 1996 Ian Lance Taylor <ian@cygnus.com>
1300
1301 * ecoff.c (ecoff_stab): Don't try to make a symbol out of the stab
1302 string. Extract the addend from the result of expression.
1303
fde6018a
ILT
1304Fri Mar 15 17:10:43 1996 Ian Lance Taylor <ian@cygnus.com>
1305
1306 * app.c (do_scrub_chars): If whitespace is seen in state 11, and
1307 LABELS_WITHOUT_COLONS is not defined, and we are not in m68k MRI
1308 mode, change the state to 3 rather than 1.
1309
ee0f488d
ILT
1310Thu Mar 14 18:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
1311
1312 * config/obj-coff.h (C_REGISTER_SECTION): Change from 20 to 50, to
1313 correspond to 11 March change.
1314
9da28504
JL
1315Thu Mar 14 15:27:10 1996 Jeffrey A Law (law@cygnus.com)
1316
1317 * config/tc-h8300.c (build_bytes, MEMIND case): Generate
1318 an R_MEM_INDIRECT reloc rather than R_RELBYTE.
1319
ea2488ad
ILT
1320Tue Mar 12 12:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
1321
1322 * configure: Rebuild with autoconf 2.8.
1323
8fee8bf3
ILT
1324Mon Mar 11 18:57:12 1996 Ian Lance Taylor <ian@cygnus.com>
1325
1326 * config/atof-ieee.c (gen_to_words): Improve handling of
1327 X_PRECISION numbers. Based on patches from Andreas Schwab
1328 <schwab@issan.informatik.uni-dortmund.de>.
1329
a31c2bc7
SC
1330Mon Mar 11 09:59:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
1331
1332 * as.h (SEG_NORMAL, SEG_LIST): Bump segment limit from 10 to 40.
1333 (SEG_LAST): New.
1334 * subsegs.c (MANY_SEGMENTS): Increase segment limit.
1335 * obj-coff.c (seg_N_TYPE, seg_info_off_by_4): Likewise.
1336 (do_relocs_for, w_symbols, obj_coff_add_segment, do_linenos_for,
1337 crawl_symbols, coff_header_append): Loop to SEG_LAST rather than
1338 SEG_E9.
1339
1340Thu Mar 7 15:17:39 1996 Doug Evans <dje@charmed.cygnus.com>
1341
1342 * config/tc-sparc.c (sparc_ip): Handle operand char 'O' (neg reg).
1343
73578b1e
JL
1344Thu Mar 7 09:19:15 1996 Jeffrey A Law (law@cygnus.com)
1345
1346 * config/tc-hppa.c (SUBSEG_MILLI): Define.
1347 (pa_def_subspaces): Add $MILLICODE$.
1348 (pa_spaces_begin): Set section flags for $MILLICODE$.
1349
0c27542f
ILT
1350Wed Mar 6 14:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
1351
6b8ed20d
ILT
1352 * config/obj-elf.c (obj_elf_section): Only SEC_LOAD if the type is
1353 not SHT_NOBITS. Don't tamper with flags based on type if a
1354 special section was found (revert Feb 29 change).
1355
0c27542f
ILT
1356 * config/tc-sh.c (sh_do_align): Only align using the nop pattern
1357 if aligning to a longword boundary or greater.
1358
6a413d6f
JW
1359Tue Mar 5 15:10:43 1996 Jim Wilson <wilson@chestnut.cygnus.com>
1360
1361 * config/tc-sh.c (sh_do_align): Pass 1 not 2 to frag_align.
1362
4b295517
SC
1363Mon Mar 4 20:50:57 1996 Steve Chamberlain <sac@slash.cygnus.com>
1364
1365 * configure.in (i386-*-cygwin32): Don't use bfd_gas.
1366 * configure: Regenerated.
1367
eff5fcda
JL
1368Mon Mar 4 10:13:06 1996 Jeffrey A Law (law@cygnus.com)
1369
421e2c27
JL
1370 * config/tc-hppa.c: Add default definitions for R_N0SEL and
1371 R_N1SEL since they're not defined for old versions of hpux.
1372
eff5fcda
JL
1373 * config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
1374 Set "sym_ptr_ptr" and "addend" fields to dummy values for
1375 R_N0SEL and R_N1SEL.
1376
bb1013d9
ILT
1377Fri Mar 1 10:20:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1378
d197a7ab
ILT
1379 * flonum-konst.c: Add two more constants for 1e+-2048 and
1380 1e+-4096, and correct the other constants.
1381
bb1013d9
ILT
1382 * symbols.c (resolve_symbol_value): Handle O_logical_not.
1383
30510276
MM
1384Thu Feb 29 13:58:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1385
1386 * config/obj-elf.c (obj_elf_section): Allow predefined section
0d8405e8 1387 types to set the nobits type. Avoid a shadowed declaration.
30510276 1388
75c90d61
JL
1389Wed Feb 28 15:38:56 1996 Jeffrey A Law (law@cygnus.com)
1390
24b216e1
JL
1391 * config/tc-hppa.c (hppa_fix_adjustable): For SOM, don't
1392 reduce relocs using e_nlrsel field selectors.
1393
75c90d61
JL
1394 * write.c (fix_new_exp): Don't use #elif. Some compilers
1395 don't handle it.
83b59013
JL
1396
1397 * config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
1398 the selector table.
1399 (pa_chk_field_selector): Handle new field selectors for SOM.
1400
535cfd0f
ILT
1401Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1402
1403 * configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
1404 * configure: Rebuild.
1405 * config/te-linux.h (LOCAL_LABELS_FB): Define.
1406 * config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
1407 "a.out-m68k-linux".
1408 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
1409 is defined.
1410
d214421e
SS
1411Mon Feb 26 18:58:58 1996 Stan Shebs <shebs@andros.cygnus.com>
1412
1413 * mpw-make.sed: Update to handle shared library support.
1414
110b814d
DE
1415Mon Feb 26 10:34:10 1996 Doug Evans <dje@charmed.cygnus.com>
1416
1417 * config/tc-sparc.c (sparc_ip): Print all architectures that support
1418 the insn on mismatch.
1419
805e36ab
RS
1420Fri Feb 23 21:44:39 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1421
1422 * configure.in: Add support for a29-coff.
1423 * configure: Rebuild.
1424
e41ab2a6
ILT
1425Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
1426
101a2346
ILT
1427 * config/tc-sh.c (sh_coff_frob_file): Don't consider the address
1428 of the section when looking for the R_SH_USES fixup, because the
1429 frag addresses have not yet been adjusted.
1430
940c413f
ILT
1431 * gdbinit.in: Set a breakpoint on as_warn_where.
1432
e41ab2a6
ILT
1433 * config/tc-mips.c (macro): Add missing arguments to macro_build
1434 omitted in last change. From Jim Wilson <wilson@cygnus.com>.
1435
c6016ce2
ILT
1436Wed Feb 21 17:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
1437
1438 * config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
1439 if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
1440
b32fbe07
DE
1441Wed Feb 21 09:25:39 1996 Doug Evans <dje@charmed.cygnus.com>
1442
1443 * config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
1444
2e5e6879
DE
1445Tue Feb 20 21:48:03 1996 Doug Evans <dje@charmed.cygnus.com>
1446
1447 * config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
1448 (sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
1449 Recognize [uU] format args as sparclet cpregs.
1450
8a2e1fdd
ILT
1451Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
1452
1453 * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
1454 in bss_section.
1455
21965655
ILT
1456Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
1457
1458 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
1459 well as S_IS_EXTERNAL.
1460 (tc_fix_adjustable): Likewise.
1461 * config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
1462 S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
1463 early.
1464 (tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
1465 deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
1466
d8b42b96
DE
1467Mon Feb 19 02:15:57 1996 Doug Evans <dje@charmed.cygnus.com>
1468
1469 * config/tc-sparc.c (max_architecture): Change to sparclite for
1470 32 bit arch.
1471 (default_compatible): Delete.
1472 (sparc_ffs): New function.
1473 (md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
1474 (sparc_ip): Rewrite architecture match and bump logic.
1475
7925f4d4
ILT
1476Sun Feb 18 15:03:50 1996 Ian Lance Taylor <ian@cygnus.com>
1477
1478 * configure.in: Check for 'do not mix' from native linker before
1479 trying to use -rpath.
1480 * configure: Rebuild.
1481
ef2074c2
ILT
1482Fri Feb 16 16:53:31 1996 Ian Lance Taylor <ian@cygnus.com>
1483
1484 * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
1485 (SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
1486 (SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
1487 * config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
1488 is set.
1489 (w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
1490 to the symbol lnnoptr field, to get the correct file offset.
1491
28910c57
MM
1492Thu Feb 15 14:48:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1493
1494 * config/obj-elf.c (elf_frob_symbol): On the PowerPC, force all
1495 symbols that are not function, file, or section symbols to be
1496 object types.
1497
7c2fadd1
ILT
1498Thu Feb 15 11:20:18 1996 Ian Lance Taylor <ian@cygnus.com>
1499
1a2f3c3f
ILT
1500 * configure: Set and substitute RPATH_ENVVAR.
1501 * configure: Rebuild.
1502 * Makefile.in (RPATH_ENVVAR): New variable.
1503 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
1504
7c2fadd1
ILT
1505 * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
1506 doesn't need opcodes. If configuring shared, opcodes needs bfd.
1507 * configure: Rebuild.
1508
8a6f53e9
ILT
1509Wed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
1510
1511 * read.c (s_mri_sect): Don't return '\0' in type. Set all
1512 appropriate flags in BFD section.
1513
1514 * configure.in (m68k-*-psos*): New target.
1515 * configure: Rebuild.
1516 * config/te-psos.h: New file.
1517 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
1518 is defined.
1519
fb251650
ILT
1520Wed Feb 14 13:43:24 1996 Ian Lance Taylor <ian@cygnus.com>
1521
ae09d880
ILT
1522 From Alan Modra <alan@spri.levels.unisa.edu.au>:
1523 * configure.in: Remove duplicate setting of cpu_type. Check
1524 whether opcodes library is required for on all targets, not just
1525 primary one.
1526 * configure: Rebuild.
1527
fb251650
ILT
1528 * config/tc-mips.c (mips_big_got): New static variable.
1529 (s_extern): Don't declare.
1530 (reg_needs_delay): New static function.
1531 (macro_build): Permit GOT/CALL_HI/LO relocs.
1532 (macro_build_lui): If place is not NULL, use the number in the
1533 expression.
1534 (load_address): Handle mips_big_got case.
1535 (macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
1536 store macros.
1537 (OPTION_XGOT): Define.
1538 (md_longopts): Add "xgot" if OBJ_ELF.
1539 (md_parse_option): Handle -xgot.
1540 (md_show_usage): Mention -xgot.
1541 (md_apply_fix): Permit GOT/CALL_HI/LO relocs.
1542 (tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.
1543
d9396c16
ILT
1544Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1545
1546 * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
1547 the byte relocation, point it to the low byte of the word.
1548
56f9773f
ILT
1549Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
1550
1551 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
1552 * configure: Rebuild.
1553
63e4edb5
DE
1554Mon Feb 12 15:53:46 1996 Doug Evans <dje@charmed.cygnus.com>
1555
1556 * configure.in: Recognize any sparc* cpu.
1557 * configure: Regenerated.
1558
15ed5f2c
ILT
1559Mon Feb 12 15:41:21 1996 Ian Lance Taylor <ian@cygnus.com>
1560
20710f1c
ILT
1561 * read.c (potable): Add "mri" and ".mri".
1562 (s_mri): New function.
1563 * read.h (s_mri): Declare.
1564 * app.c (scrub_m68k_mri): New static variable.
1565 (mri_pseudo): New static variable.
1566 (do_scrub_begin): Add m68k_mri parameter. Use it rather than
1567 flag_m68k_mri. Initialize scrub_m68k_mri.
1568 (mri_state, mri_last_ch): New static variables.
1569 (struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
1570 fields.
1571 (app_push): Save new fields.
1572 (app_pop): Restore new fields.
1573 (do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
1574 If TC_M68K, use a trivial state machine to look for occurrences of
1575 the .mri pseudo-op, and change the mode appropriately.
1576 * as.h (do_scrub_begin): Update prototype.
1577 * input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
1578 do_scrub_begin.
1579 * config/tc-m68k.c (reg_prefix_optional_seen): New static
1580 variable.
1581 (m68k_mri_mode_change): New function.
1582 (md_parse_option): Set reg_prefix_optional_seen.
1583 * config/tc-m68k.h (m68k_mri_mode_change): Declare.
1584 (MRI_MODE_CHANGE): Define.
1585 * doc/as.texinfo: Document .mri pseudo-op.
1586
15ed5f2c
ILT
1587 * app.c (do_scrub_chars): In MRI mode, don't treat '#' as a
1588 comment character.
1589
a043f579
ILT
1590Mon Feb 12 15:16:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1591
1592 Support for OBJ_ELF on m68k, mostly inside #ifdef OBJ_ELF:
1593 * config/m68k-parse.h (enum pic_relocation): Define.
1594 (struct m68k_exp): Add pic_reloc field.
1595 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
1596 (tc_fix_adjustable): Define to call tc_m68k_fix_adjustable.
1597 (NO_RELOC): Define to BFD_RELOC_NONE if BFD_ASSEMBLER, to zero
1598 otherwise.
1599 * config/tc-m68k.c: Delete definition of NO_RELOC.
1600 (struct m68k_it): Add pic_reloc field.
1601 (add_fix): Copy over pic_reloc field.
1602 (md_pseudo_table): Interpret .align parameter as byte count.
1603 (mote_pseudo_table): Likewise.
1604 (tc_m68k_fix_adjustable): New function.
1605 (get_reloc_code): New function.
1606 (md_assemble): Use it as last argument to fix_new_exp.
1607 (md_apply_fix_2): For a relocation against a symbol don't put the
1608 addend into the data.
1609 (tc_gen_reloc): Different addend computation for OBJ_ELF.
1610 (m68k_ip): Don't relax an operand that requires pic relocation.
1611 (md_begin): Align .text, .data and .bss on 4 byte boundary by
1612 default.
1613 * write.c (fixup_segment): Don't add symbol value to addend if
1614 TC_M68K and OBJ_ELF.
1615 * config/m68k-parse.y (yylex): Handle @PLTPC, etc.
1616 (motorola_operand): Add rule for `(zapc, EXPR)'.
1617
6ca1156d
ILT
1618Mon Feb 12 10:07:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
1619
1620 * ecoff.c (ecoff_directive_weakext): Fixed so that whitespace
1621 *really* is permissible before the comma.
1622
fcee3e24
ILT
1623Mon Feb 12 00:12:13 1996 Ian Lance Taylor <ian@cygnus.com>
1624
1625 * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
1626 inserting nop instructions.
1627
3e1c964d
ILT
1628Fri Feb 9 10:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
1629
1630 * config/te-aux.h: Change include of aux.h to aux-coff.h.
1631
4080c270
ILT
1632Thu Feb 8 20:02:58 1996 Ian Lance Taylor <ian@cygnus.com>
1633
d782e3cc
ILT
1634 * config/tc-i960.c (tc_coff_symbol_emit_hook): Correct storage
1635 class setting for a CALLNAME symbol in COFF.
1636
4080c270
ILT
1637 * read.c (potable): Pass negative numbers for new .balign[wl] and
1638 .p2align[wl] pseudo-ops.
1639 (s_align_bytes): Treat a negative argument as specifying the fill
1640 length.
1641 (s_align_ptwo): Likewise.
1642
1c9dbb83
ILT
1643Wed Feb 7 14:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
1644
71dd3c40
ILT
1645 * read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
1646 (do_align): Take new len parameter. Change all callers. Pass it
1647 to md_do_align.
1648 (s_align_bytes): Arg now indicates the length of the fill pattern.
1649 (s_align_ptwo): Likewise.
1650 * config/obj-coff.c (write_object_file): Pass length to
1651 md_do_align.
1652 * config/tc-i386.h (md_do_align): Take new len parameter.
1653 * config/tc-m88k.h (md_do_align): Likewise.
1654 * config/tc-m88k.c (m88k_do_align): Likewise.
1655 * config/tc-sh.h (md_do_align): Likewise.
1656 * config/tc-sh.c (sh_do_align): Likewise.
1657 * doc/as.texinfo: Document new pseudo-ops.
1658
1659 * config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
1660 done in cvt_frag_to_fill.
1661
9addcbb1
ILT
1662 * config/tc-sh.h (sh_do_align): Declare.
1663 (md_do_align): Define.
1664 * config/tc-sh.c (sh_do_align): New function.
1665
c15ea23a
ILT
1666 * ecoff.c (ecoff_build_lineno): Don't try to store the address
1667 difference if the next address is before the current one.
1668
9e64486e
ILT
1669 * config/tc-m68k.c (struct m68k_cpu): Add alias field.
1670 (archs): Initialize new field.
1671 (m68k_ip): Don't list alias names when listing CPUs which support
1672 an instruction.
1673
1674 * as.c (main): Call parse_args before read_begin.
1675 * app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
1676 front of generated pseudo-ops.
1677 * read.c (potable): Ignore "name".
1678 (s_app_file): Permit a single quote after the string, since one
1679 may appear in m68k MRI mode.
1680
1c9dbb83
ILT
1681 * configure.in: Check for --enable-shared. If linking against
1682 shared BFD and opcodes, fix library name on SunOS, and try to set
1683 -rpath reasonably.
1684 * configure: Rebuild.
1685
1686Tue Feb 6 15:16:17 1996 Ian Lance Taylor <ian@cygnus.com>
1687
1688 * as.h (flag_m68k_mri): Declare.
1689 * as.c (parse_args): If TC_M68K, set flag_m68k_mri for -M.
1690 * Many files: For MRI syntax that is specific to the m68k MRI
1691 assembler, check flag_m68k_mri rather than flag_mri or
1692 MRI_MODE_NEEDS_PSEUDO_DOT.
1693
dd1d79e8
ILT
1694Mon Feb 5 16:29:11 1996 Ian Lance Taylor <ian@cygnus.com>
1695
f9e90c2e
ILT
1696 * config/tc-i960.c (ARCH_HX): Define.
1697 (arch_tab): Add HX.
1698 (targ_has_sfr): Handle ARCH_HX.
1699 (targ_has_iclass): Handle ARCH_HX.
1700 (tc_coff_fix2rtype): Add return 0 to avoid warning.
1701 (tc_headers_hook): If the architecture was specified explicitly,
1702 use it when setting the flags. Set the extern variable coff_flags
1703 rather than headers->filehdr.f_flags, since the latter is set
1704 unconditionally in obj-coff.c.
1705 (i960_handle_align): Remove unused variable fixp.
1706
dd1d79e8
ILT
1707 Support for building bfd and opcodes as shared libraries, based on
1708 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
1709 * configure.in: Set OPCODES and BFD to search directories.
1710 Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
1711 * configure: Rebuild.
1712 * Makefile.in (LDFLAGS, HLDFLAGS): New variables.
1713 (LIBDEPS): New variable.
1714 (as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
1715 $(HLDFLAGS) in link.
1716 (check): Set LD_LIBRARY_PATH in the environment.
1717
1718Fri Feb 2 17:41:53 1996 Michael Meissner <meissner@wogglebug.tiac.net>
1719
1720 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Make .sdata2, .sbss2,
1721 .PPC.EMB.sdata0, and .PPC.EMB.sbss0 sections all default to
1722 read-only, not read/write.
1723
e277d131
ILT
1724Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
1725
1726 * Makefile.in (INSTALL_XFORM): Remove -e.
1727
e24cf2b5
ILT
1728Fri Feb 2 12:32:15 1996 Ian Lance Taylor <ian@cygnus.com>
1729
1730 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
1731 than comparing S_GET_SEGMENT to undefined_section.
1732 (write_object_file): Skip symbols which were equated to an
1733 undefined or common symbol.
1734 * symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
1735 S_IS_COMMON rather than comparing S_GET_SEGMENT to
1736 undefined_section.
1737 (S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
1738 or S_IS_COMMON call S_GET_VALUE.
1739 * config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
1740 * config/obj-aout.c (obj_emit_relocations): If a reloc is equated
1741 to an undefined or common symbol, convert the reloc to be against
1742 the target symbol.
1743 (obj_crawl_symbol_chain): Skip symbols which were equated to an
1744 undefined or common symbol.
1745 * config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
1746 * config/obj-bout.c (obj_emit_relocations): If a reloc is equated
1747 to an undefined or common symbol, convert the reloc to be against
1748 the target symbol.
1749 (obj_crawl_symbol_chain): Skip symbols which were equated to an
1750 undefined or common symbol.
1751 * config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
1752 S_IS_COMMON rather than comparing S_GET_SEGMENT to
1753 undefined_section.
1754 (yank_symbols): Skip symbols which were equated to an undefined or
1755 common symbol.
1756
4d9e33e4
ILT
1757Thu Feb 1 15:34:32 1996 Ian Lance Taylor <ian@cygnus.com>
1758
9e396994
ILT
1759 * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
1760 * config/obj-bout.h (S_IS_LOCAL): Likewise.
1761
4d9e33e4
ILT
1762 * configure.in: Make sure we only add m68k-parse.o to
1763 ${extra_objects} once, no matter how many m68k targets have been
1764 enabled.
1765 * configure: Rebuild.
1766
0ff513d9
SC
1767Wed Jan 31 18:31:46 1996 Steve Chamberlain <sac@slash.cygnus.com>
1768
1769 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
1770 * configure: Rebuild.
1771
66b935da
ILT
1772Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
1773
c174fb5c
ILT
1774 * config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
1775 * doc/c-m68k.texi: Document .extend and .ldouble.
1776
66b935da
ILT
1777 * configure.in (m68*-apple-aux*): New target.
1778 * config/te-aux.h: New file.
1779 * config/obj-coff.c (compare_external_relocs): New static function
1780 if TE_AUX.
1781 (do_relocs_for): Sort relocs if TE_AUX.
1782 (fixup_segment): If TE_AUX, store common symbol value in segment.
1783 * config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
1784
30c2a08e
ILT
1785Wed Jan 31 12:24:58 1996 Ian Lance Taylor <ian@cygnus.com>
1786
9e396994 1787 * config/obj-coff.h (S_IS_LOCAL): Check for \002 as well as \001.
615c0a79 1788
30c2a08e
ILT
1789 * config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
1790 BSF_FUNCTION.
1791 (s_cpload): Set BSF_OBJECT for _gp_disp symbol.
1792 * read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
1793 symbol.
1794 * ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
1795 (ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
1796 an undefined symbol and the size of a function symbol.
1797 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
1798 for all common symbols.
1799
0e6f2f82
KR
1800Tue Jan 30 12:35:24 1996 Ken Raeburn <raeburn@cygnus.com>
1801
1802 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit
1803 scaling of index.
1804
1805 * expr.c (operand): Accept 0x hex constants in MRI mode if not on
1806 m68k.
1807
8e3ff081
ILT
1808Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
1809
3e78d072
ILT
1810 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
1811 of object. From Ronald F. Guilmette <rfg@monkeys.com>.
1812
8e3ff081
ILT
1813 * ecoff.c (localsym_t): Add addend field.
1814 (add_ecoff_symbol): Add addend argument. Change all callers.
1815 (coff_sym_value): Make static.
1816 (coff_sym_addend): New static variable.
1817 (ecoff_directive_def): Initialize coff_sym_addend.
1818 (ecoff_directive_val): Accept symbol + constant.
1819 (ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
1820 (ecoff_build_symbols): Include the addend in the symbol value.
1821
79edc846
KK
1822Fri Jan 26 19:28:52 1996 Kim Knuttila <krk@cygnus.com>
1823
1824 * config/tc-ppc.c (md_assemble): Ignore overflow on
1825 BFD_RELOC_16_GOTOFF and BFD_RELOC_PPC_TOC16.
1826
1827Fri Jan 26 16:14:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1828
1829 * config/tc-ppc.c (md_apply_fix3): SDA21 relocations are now 4
1830 bytes in size, so offset appropriately in big endian mode when
1831 writing the bottom 2 bytes.
1832
6cbc4e35
DE
1833Thu Jan 25 20:26:23 1996 Doug Evans <dje@charmed.cygnus.com>
1834
1835 * config/tc-sparc.c (default_compatible): New static local.
1836 (md_begin): Initialize it. Rewrite warn_on_bump handling.
1837 (sparc_ip): If no architecture or -bump specified, don't mark as
1838 mismatched those in default_compatible.
1839
4fe0fddd
ILT
1840Thu Jan 25 12:21:53 1996 Ian Lance Taylor <ian@cygnus.com>
1841
1842 SCO ELF support from Robert Lipe <robertl@arnet.com>:
1843 * configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
1844 * configure: Rebuild.
1845 * config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
1846 * config/tc-i386.c (sco_id): New function, if SCO_ELF.
1847 * config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
1848 (sco_id): Declare if SCO_ELF.
1849
e70ad5d5
DE
1850Thu Jan 25 03:10:53 1996 Doug Evans <dje@charmed.cygnus.com>
1851
1852 * config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
1853 ({max,warn_after}_architecture): New static locals.
1854 (md_begin): Replace NUMOPCODES with sparc_num_opcodes.
1855 If both architecture and -bump requested, set max_architecture to max.
1856 (sparc_md_end): Simplify.
1857 (sparc_ip): Replace references to can_bump_v9_p with max_architecture.
1858 Rewrite code to bump architecture and check for conflicts.
1859 (md_longopts): Recognize -xarch={v8plus,v8plusa} for compatibility
1860 with Solaris assembler.
1861 (md_parse_option): Likewise. Call sparc_opcode_lookup_arch.
1862 (md_show_usage): Update.
1863
a8248831
DE
1864Wed Jan 24 22:11:03 1996 Doug Evans <dje@charmed.cygnus.com>
1865
1866 * Makefile.in (RUNTEST): Fix reference to $${srcdir}.
1867
6df07e7f
DE
1868Mon Jan 22 09:21:36 1996 Doug Evans <dje@charmed.cygnus.com>
1869
1870 * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
1871 #ifdef sparcv9 when choosing value.
1872 (ENV64): Delete.
1873 (md_end): Define.
1874 (sparc_md_end): Declare.
1875 * config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
1876 (initial_architecture): New static local.
1877 (can_bump_v9_p): Likewise.
1878 (NO_V9): Delete all occurrences.
1879 (sparc_md_end): New function.
1880 (sparc_ip): New local v9_arg_p. Rework fp reg number test.
1881 Don't bump architecture to v9 unless can_bump_v9_p set.
1882 (md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
1883 * configure.in (sparc64 target cpu): Don't set obj_format here.
1884 (SPARC_V9): Renamed from sparcv9.
1885 (sparc64-*-elf*): Define SPARC_ARCH64.
1886 * configure: Regenerated.
1887 * acconfig.h (SPARC_V9): Renamed from sparcv9.
1888 (SPARC_ARCH64): Add.
7fcb3191 1889 * conf.in: Regenerated.
6df07e7f
DE
1890 * config/vmsconf.h: Update.
1891
c9c7c1d7
JSC
1892Mon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
1893
1894 * config/tc-mips.c (load_register): Optimise "dli" loads.
1895 (md_show_usage): add "-mcpu=vr4100" to help text.
16ce20d4 1896
07ce72c9
ILT
1897Mon Jan 22 11:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
1898
16ce20d4
ILT
1899 * symbols.c (resolve_symbol_value): If a symbol is equated to an
1900 undefined symbol, preserve the X_op of O_symbol.
1901 (S_GET_VALUE): Fix check to permit this case.
1902 * write.c (write_relocs): If a reloc is against an undefined
1903 symbol equated to another symbol, change the reloc to be against
1904 the latter symbol.
1905 * config/obj-coff.c (do_relocs_for): Likewise.
1906
07ce72c9
ILT
1907 * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
1908 XMC_PR.
1909
d971d39e
MM
1910Mon Jan 22 10:59:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1911
1912 * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target
1913 computer is PowerPC.
1914
1915 * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations.
1916
1917 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections
1918 mentioned in the eabi.
1919
0291f0f5
KK
1920Thu Jan 18 17:58:19 1996 Kim Knuttila <krk@cygnus.com>
1921
1922 * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section
1923 * config/tc-ppc.c (ppc_pdata): Changed the alignment on pdata_section
1924
c682be53
MM
1925Mon Jan 15 17:43:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1926
1927 * config/tc-ppc.c (mapping): Add more relocation suffixes.
1928
ee4fdbb9
MM
1929Sun Jan 14 21:29:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1930
1931 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .gcc_except_table
1932 as a section it is ok to have unadorned -mrelocatable pointers in.
1933
1934Sat Jan 13 11:09:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
747b98fe
MM
1935
1936 * config/tc-ppc.c (ppc_section*): Wrap these functions inside
1937 #ifdef OBJ_ELF.
1938
f99d287b
MM
1939Fri Jan 12 15:32:07 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1940
1941 * config/obj-elf.c (obj_elf_section): Add hooks so machine
1942 dependent section attributes can be handled.
1943
1944 * config/tc-ppc.h: (md_elf_section_{letter,type,word,flags}): New
1945 macros to add support for exclude section flag and ordered section
1946 type.
1947
1948 * config/tc-ppc.c (ppc_elf_section_{letter,type,word,flags}): New
1949 functions to add support for exclude section flag and ordered
1950 section type.
1951
347a705b
ILT
1952Fri Jan 12 12:04:00 1996 Ian Lance Taylor <ian@cygnus.com>
1953
2a4e49a9
ILT
1954 * subsegs.c (section_symbol): Don't try to look up the section
1955 symbol in the hash table. It should be possible to have a symbol
1956 with the same name as a section, but no connection to it.
1957
d9f4dec1
ILT
1958 * read.c (cons_worker): Only call mri_comment_end from flag_mri.
1959 From James Carlson <carlson@xylogics.com>.
1960
347a705b
ILT
1961 * expr.c (operand): Skip whitespace after a close parenthesis.
1962 From James Carlson <carlson@xylogics.com>.
1963
10c8c95e
JW
1964Tue Jan 2 12:43:23 1996 Jim Wilson <wilson@chestnut.cygnus.com>
1965
1966 * config/tc-sh.c (md_apply_fix): Call as_bad_where instead of
1967 as_warn_where for relocation overflow.
347a705b
ILT
1968 (parse_reg): Accept register name only if next character is
1969 not alphanumeric.
10c8c95e 1970
cb844314
JL
1971Sat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com)
1972
1973 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
1974 addresses for static variables.
1975
36cb0e7c
MM
1976Thu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1977
1978 * config/tc-ppc.c (mapping): Make @got give a real GOT relocation,
1979 and xgot give the old toc16 relocation.
1980 (md_apply_fix3): Support all GOT relocations.
1981
5e69b693
ILT
1982Wed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com>
1983
1984 * config/tc-mips.c (load_address): Correctly handle a constant in
1985 SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
1986
29861dd0
C
1987Fri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1988
1989 * config/tc-sh.c (parse_reg): Recognize SH3 registers.
1990 (get_specific): Handle A_SSR, A_SPC and A_REG_B.
1991 (build_Mbytes): Handle REG_B.
1992
432b8fa8
ILT
1993Fri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com>
1994
1995 * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro.
1996
ee68a042
RJ
1997Fri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com>
1998
1999 * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS.
2000
b14630f2
ILT
2001Thu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com>
2002
2003 * config/obj-coff.c (write_object_file): Set the s_align field to
2004 the number of bytes, rather than to the power of 2.
2005
4a3d48fc
ILT
2006Tue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com>
2007
2008 * Makefile.in (DISTCLEAN_HERE): New variable.
2009 (distclean): Use it.
2010 (maintainer-clean): Depend upon clean-here rather than clean,
2011 distclean, and clean-info. Run make maintainer-clean in doc.
2012 Remove files listed in DISTCLEAN_HERE.
2013 * doc/Makefile.in (maintainer-clean realclean): Split out from
2014 distclean. Depend upon clean-info and distclean.
2015
7e5e83cf
SS
2016Mon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com>
2017
2018 * mac-as.r: Fix copyright and version strings.
2019 (cfrg): Use PROG_NAME instead of literal name.
2020
1b10f50d
ILT
2021Mon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com>
2022
2023 * read.c (read_a_source_file): If tc_unrecognized_line is defined,
2024 call it.
2025 * config/tc-a29k.h (tc_unrecognized_line): Define.
2026 * config/tc-a29k.c (a29k_unrecognized_line): New function.
2027 (md_operand): Handle a29k style local dollar labels.
2028
2f3bbb1b
ILT
2029Wed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com>
2030
2031 * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE.
2032
624c91d1
KR
2033Tue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com>
2034
2035 * read.c (s_fill): If md_flush_pending_output is defined, call
2036 it.
2037
9e4b3a23
KR
2038Mon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com>
2039
2040 * config/obj-coff.c (size_section, fill_section, fixup_mdeps):
2041 Treat rs_align_code like rs_align.
2042
3554987a
DE
2043Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2044
2045 * config/tc-arm.c (cp_address_required_here): Set pre_inc when
2046 converting an absolute address into a PC-relative one.
2047
90f543f6
SS
2048Fri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com>
2049
2050 * mpw-config.in: Don't always use te-generic.h for emulation.
2051 (powerpc-apple-macos): Use emulation te-macos.h.
2052start-sanitize-gm
2053 (mips-gm-magic): New configuration.
2054end-sanitize-gm
2055 * mpw-make.sed (install, install-only): Edit in Mac-specific
2056 install procedure.
2057
d4c8a45e
ILT
2058Fri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com>
2059
2eec8710
ILT
2060 * configure.in: Improve message about unsupported ELF targets.
2061 * configure: Rebuild.
2062
d4c8a45e
ILT
2063 * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
2064 pattern is zero. From Manfred Hollstein.
2065
531a1af2
KK
2066Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
2067
2068 * config/tc-ppc.c (ppc_pe_section): To get the alignment right for
2069 the various idata sections, we check the name on the .section pseudo.
2070
464070de
ILT
2071Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2072
2073 * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
2074 add section's paddr to add_number; compatibility to native as and
2075 ld forbids.
2076
6a087325
KR
2077Wed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com>
2078
9d5aef80
KR
2079 * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3.
2080
ac9ef8ee
KR
2081 * hash.c (struct hash_entry): Moved here...
2082 * hash.h (struct hash_entry): ...from here.
2083
6a087325
KR
2084 * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj
2085 if it's already known to be null.
2086
77fa4d98
MM
2087Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2088
2089 * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
2090 bit relocs converted to PC relative relocs. This turned out to
2091 add the offset from the beginning of .text twice.
2092
c6e4e834
KR
2093Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
2094
2095 * stabs.c (s_stab_generic): In 's' case, free string from
2096 obstack.
2097
2098 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field
2099 sy_name_offset.
2100 * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]:
2101 Ditto.
2102
2103 * subsegs.h (segment_info_type): Make bitfields unsigned.
2104
2105 * expr.h (struct expressionS): Make X_op and X_unsigned bitfields,
2106 and move them together. On most systems this will reduce the
2107 structure size by one word.
2108 (operatorT): Define O_max.
2109 * expr.c (expr_begin): Verify that X_op is wide enough to hold
2110 O_max.
2111
2112 * read.c (pop_insert): Print error returned by hash table
2113 insertion code.
2114
2115 * as.c (dump_statistics): Split out from main; dump some hash
2116 table stats and target-specific stats.
2117 (start_time): No longer automatic to main.
2118 (main): Set file-level start_time and call dump_statistics at
2119 exit. Exit by calling xexit.
2120 (show_usage): Make --statistics description less specific.
2121 * subsegs.c (subsegs_print_statistics): New function.
2122 * write.c (write_print_statistics): New function.
2123 (n_fixups): New static variable.
2124 (fix_new_internal): Increment it.
2125 * read.c (read_print_statistics): New function.
2126 * read.h (read_print_statistics): Declare.
2127 * symbol.c (symbol_print_statistics): New function.
2128 * symbol.h (symbol_print_statistics): Declare.
2129 * hash.c (hash_print_statistics): New function.
2130 * hash.h (hash_print_statistics): Declare.
2131 * config/tc-i386.c (i386_print_statistics): New function.
2132 * config/tc-i386.h (i386_print_statistics): Declare.
2133 (tc_print_statistics): New macro.
2134 * messages.c (as_fatal, as_assert, as_abort): Use xexit, not
2135 exit.
2136
2137 * hash.c (DELETED): Rewrite to use a valid but unique address.
2138 (START_POWER): Reduce to 10.
2139 (enum stat_enum): New enumerator, replacing STAT_* index macros.
2140 Add new values for counting strcmp calls.
2141 (GROW_FACTOR): New macro.
2142 (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead
2143 of nesting blocks.
2144 (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2.
2145 (hash_new): Use FULL_VALUE.
2146 (struct hash_control): Definition moved here.
2147 (hash_code): Don't mask to low bits.
2148 (hash_ask): Mask returned hash code here. Check hash value before
2149 calling strcmp; count strcmp calls.
2150 * hash.h (struct hash_control): Declare, don't define, here.
2151 (HASH_STATLENGTH): Deleted.
2152 (struct hash_entry): Add field for hash code.
2153 (hash_say, hash_apply): Don't declare.
2154
2155 * hash.c (destroy): Return void.
2156 (applicatee): Ditto.
2157 (main): Fix declarations.
2158 (hash_apply): Return void. Argument `function' returns void. Put
2159 inside "#ifdef TEST".
2160 (hash_say): Define only if TEST is defined.
2161 * hash.h (hash_apply, hash_say): Declarations deleted.
2162
6a4667f4
ILT
2163Mon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com>
2164
2165 * configure: Rebuild with autoconf 2.7.
2166
330add8a
ILT
2167Tue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com>
2168
2169 * aclocal.m4 (AC_PROG_CC): Remove local definition.
2170 * configure: Rebuild with autoconf 2.6.
2171
520dd8d5
ILT
2172Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
2173
2174 * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
2175 (ppc_stabx): Don't increment ppc_debug_name_section_size.
2176 (ppc_bc): Likewise.
2177 (ppc_frob_file): Remove.
2178 * config/tc-ppc.h (tc_frob_file): Don't define.
2179 (ppc_frob_file): Don't declare.
2180
880b7429
KR
2181Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
2182
d6c4a3fa
KR
2183 * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
2184 * config/alpha-opcode.h: Include one-operand variants of jmp and
2185 jsr.
2186
880b7429
KR
2187 * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict
2188 with te-delta.h in 8.3 file systems.
2189 * configure.in: Adjusted.
2190
aa8a6656
ILT
2191Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
2192
880b7429
KR
2193 * config/tc-mips.c (s_err): Remove; just use the one in read.c.
2194
aa8a6656
ILT
2195 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
2196 number.
2197 * expr.c (operand): Handle MRI suffixes after unadorned 0.
2198
7b889f5e
KR
2199Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
2200
da9b55af
KR
2201 Version 2.6 released.
2202 * Makefile.in (VERSION): Updated to 2.6.
2203
7b889f5e
KR
2204 * config/obj-coff.c (write_object_file): Change use of md_do_align
2205 to pass a pointer rather than a fill value, to match other uses.
2206
46618ae6
KR
2207Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
2208
7b889f5e
KR
2209 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
2210
46618ae6
KR
2211 * as.c (main): Move md_end call to just after call to
2212 perform_an_assembly_pass. Delete cpu-specific code here.
2213 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
46618ae6
KR
2214 * config/tc-arm.c (md_end): Unused function deleted.
2215 * config/tc-ns32k.c (md_end): Ditto.
2216
2217 * config/tc-i386.c (i386_align_code): New function, moved here
2218 from HANDLE_ALIGN macro.
2219 * config/tc-i386.h (HANDLE_ALIGN): Call it.
2220
2221 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
2222
2223 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
2224 before comparing
2225
2226 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
2227
2228 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
2229 multi-byte nops to avoid changing gcc. The necessary gcc change
2230 might break old assemblers.
2231
2232 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
2233
2234 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
2235 generate optimal multi-byte nop instructions for ".align n"
2236 ".align n,0x90", and aligns requiring more than 15 bytes of
2237 padding still generate multiple 0x90's as before.
2238
2239Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
2240
2241 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
2242
51bc513e
SS
2243Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
2244
2245 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
2246 * configure: Update.
2247 * mpw-make.sed: Reorder commands to make sed happier.
2248 * config/te-macos.h: New file.
2249 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
2250
8b39c5df
JL
2251Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
2252
2253 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
2254 conditional branches.
2255 (md_apply_fix): Likewise.
2256
2257Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
2258
2259 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
2260 generate a reloc which the linker will not handle correctly. Fix
2261 overflow checking--R_IREL is 18 bits, not 17.
2262
6a649eda
ILT
2263Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
2264
a071b8e9
ILT
2265 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
2266 from a PC relative reloc if TC_A29K.
2267
2268 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
2269 code depends upon it.
2270
6a649eda
ILT
2271 * config/tc-a29k.c (md_operand): Handle $float, $double, and
2272 $extend. Based on code from Eric Freudenthal
2273 <freudenthal@nyu.edu>.
2274 * config/tc-a29k.h (LEX_DOLLAR): Define.
2275 * read.c (LEX_DOLLAR): Define if not defined.
2276 (lex_type): Use LEX_DOLLAR.
2277
6364a188
ILT
2278Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
2279
2280 * configure.in (a29k-nyu-sym1): New target, just like other a29k
2281 targets.
2282
0fa6f8f6
ILT
2283Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
2284
2285 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
2286
2287Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
2288
2289 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
2290 used only by "dlltool.c".
2291
eec2cfef
ILT
2292Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
2293
2294 * config/tc-alpha.c: Undefine inline if not __GNUC__.
2295 (md_pseudo_table): Don't define "extern".
2296
df7504dc
ILT
2297Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
2298
a3d1c561
ILT
2299 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
2300
df7504dc
ILT
2301 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
2302
07d012f6
ILT
2303Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
2304
36e80ac6
ILT
2305 * macro.c (macro_expand_body): Don't warn about == with a
2306 nonexistent parameter, in case it is in a comment field.
2307
07d012f6
ILT
2308 * as.c (main): On TC_A29K, call macro_init with macro_alternate
2309 set to 1.
2310 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
2311 set, even if macro_alternate is set.
2312 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
2313 (sub_actual): If macro_strip_at, and kind is '@', don't look up
2314 the token unless it ended in '@'.
2315 * config/tc-a29k.c (line_separator_chars): Remove '@'.
2316 * doc/c-a29k.texi: Document macro usage on A29K.
2317
01f108bc
ILT
2318Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
2319
2320 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
2321 signed word.
2322 (install_operand): Likewise.
2323
2324 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
2325
2326Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2327
2328 * configure.in (m88k-motorola-sysv*): New target.
2329 * configure: Rebuild.
2330 * config/te-delta88.h: New file.
2331 * config/obj-coff.c (write_object_file): Use md_do_align if it is
2332 defined.
2333 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
2334 (md_do_align): Define.
2335 * config/tc-m88k.c: Include "subsegs.h".
2336 (m88k_do_align): New function.
2337
2338 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
2339 (COFF_NOLOAD_PROBLEM): Define.
2340 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
2341
7954cc14
KR
2342Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
2343
2344 * config/tc-i386.c (md_assemble): For a jump instruction with
2345 non-constant target, require 7 available bytes in the current
2346 frag, not 6.
2347
d033806f
FF
2348Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
2349
2350 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
2351 bfd/libelf.h.
2352
d7b2038f
ILT
2353Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
2354
2355 * configure.in (alpha-*-linux*): Use ecoff.
2356 * configure: Rebuild.
2357 * ecoff.c (ecoff_directive_extern): New function.
2358 (ecoff_directive_weakext): New function.
2359 (ecoff_build_symbols): Handle weak symbols.
2360 (ecoff_setup_ext): Likewise.
59c80ca2 2361 (ecoff_frob_symbol): Warn about weak common symbols.
d7b2038f
ILT
2362 * ecoff.h (ecoff_directive_extern): Declare.
2363 (ecoff_directive_weakext): Declare.
2364 * symbols.c (S_IS_WEAK): New function.
2365 * symbols.h (S_IS_WEAK): Declare.
2366 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
2367 "weakext".
2368 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
2369 (s_extern): Remove.
2370
cbdf59ad
ILT
2371Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
2372
b629f627
ILT
2373 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
2374
7ab1edc8
ILT
2375 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
2376 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
2377 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
2378 * config/obj-coff.c (coff_frob_symbol): Don't call
2379 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
2380 one. If OBJ_XCOFF, try to figure out whether the symbol is going
2381 to be dropped.
2382
31751d9d
ILT
2383 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
2384 (ppc_stab_symbol): New static variable.
2385 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
2386 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
2387 sy_tc.real_name to the stab string.
2388 (ppc_bc, ppc_ec): New static functions.
2389 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
2390 do anything.
2391 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
2392 suffix.
0e3dd9a0
ILT
2393 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
2394 entries.
31751d9d 2395
cbdf59ad
ILT
2396 * input-scrub.c (input_scrub_push): Reset sb_index.
2397
91123dbe
ILT
2398Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
2399
2400 * listing.c (listing_newline): Don't create a frag in the absolute
2401 section.
2402
73255941
ILT
2403Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
2404
df72d2a5
ILT
2405 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
2406 (ppc_csect): Move most of the code to ppc_change_csect, and call
2407 it.
2408 (ppc_change_csect): New static function, taken from ppc_csect.
2409 (ppc_section): New static function.
2410 (ppc_saw_abs): New static varable.
2411 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
2412 a symbol has no csect.
2413 (ppc_adjust_symtab): New function.
2414 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
2415 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
2416
2417 * write.c (write_object_file): If tc_adjust_symtab is defined,
2418 call it just before the call to obj_adjust_symtab.
2419
73255941
ILT
2420 * symbols.c (symbol_find_or_make): Change name to be const.
2421 * symbols.h (symbol_find_or_make): Update declaration.
2422
9bfaf1b9
KR
2423Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
2424
2425 * doc/as.texinfo (Align): Mention SH.
2426 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
2427 .align value.
2428 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
2429 (Z8000 Directives, even): Don't give numeric align value, instead
2430 explain behavior.
2431
ae143278
DE
2432Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2433
2434 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
2435 instruction.
2436
270433cc
PB
2437Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
2438
2439 * Makefile.in (diststuff): Also make info.
2440 (maintainer-clean realclean): Also make clean-info.
2441
18a11401
JL
2442Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
2443
2444 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
2445 (pa_subspace): For ".nsubspa", always create a new subspace
2446 with the given attributes, even if one already exists with the
2447 same name.
2448
96fe71e1
MM
2449Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2450
2451 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
2452 TC_FORCE_RELOCATION, taking an additional section argument. If
2453 the section of the target symbol is not the same as the current
2454 section, always force the relocation to be used.
2455 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
2456
2457 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
2458 md_pcrel_from function, taking an additional section argument.
2459 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
2460
2461 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
2462 older TC_FORCE_RELOCATION if not defined.
2463 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
2464 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
2465 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
2466 TC_FORCE_RELOCATION.
2467
1d75481b
KR
2468Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
2469
2470 * input-scrub.c (as_where): Set name to null pointer if we don't
2471 have a file name.
2472 * messages.c (identify): Only print filename if non-null.
2473 (as_show_where): Ditto, for line number too.
2474 (as_warn_internal, as_bad_internal): Ditto.
2475
2476 * input-file.c (input_file_open): If the input file can't be
2477 opened, consider it an error.
2478
c625fc23
JSC
2479Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
2480
2481 * config/tc-mips.c: Added mips_4100 control, and support for
2482 accepting the 4100 as a MIPS architecture variant (md_begin,
2483 macro_build, mips_ip, md_parse_option). Adding suitable
2484 command-line OPTIONs, and updating the help text (md_show_usage).
2485
dd1a5316
KR
2486Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
2487
c625fc23
JSC
2488 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
2489 BFD_ASSEMBLER is defined.
2490
3366a224
KR
2491 * Use one active frag and one obstack per frag chain:
2492 * frags.c (frags): Variable deleted.
2493 (frag_alloc): New function.
2494 (frag_grow, frag_more, frag_variant, frag_now_fix,
2495 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
2496 frags variable.
2497 (frag_new): Ditto. Verify that frch_last and frag_now match on
2498 entry and exit, and that old frag_now has non-zero type. Replace
2499 "know" uses with "assert". Use frag_alloc instead of mucking with
2500 obstack alignment.
2501 * frags.h (frags): Declaration deleted.
2502 * subsegs.h (struct frchain): Add new field frch_frag_now.
2503 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
2504 variables.
2505 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
2506 give it any stricter alignment than frchainS structures need. Do
2507 not initialize frags obstack. Set frag_now to point to
2508 dummy_obstack. Initialize absolute_frchain.
2509 (subseg_set_rest): Save and restore frag_now in frch_frag_now
2510 field of frchainS. Don't create new frags on section switch, and
2511 use frag_alloc when creating a new frag chain. For absolute
2512 section, set frchain_now to absolute_frchain. Verify that
2513 frch_last and frag_now match on entry and exit. Initialize
2514 per-chain obstack, and under gcc, set required alignment to that
2515 needed by fragS structure.
c625fc23 2516
3366a224
KR
2517 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
2518
2519 * stabs.c (get_stab_string_offset): Only copy input string if a
2520 fresh copy is needed, not if the section already exists.
2521 (s_stab_generic): Cache stab section name to bypass lookups, since
2522 usually it will match. Could be made faster still by changing the
2523 memory allocation rules.
2524 (s_xstab): Cache section name to bypass repeated string
2525 allocation.
2526
2527 * frags.c (frag_new): Deleted register declarations.
2528
2529 * listing.c (frag_now): Don't declare.
2530
2531 * as.c (chunksize): New variable.
2532 (debug_memory): New variable.
2533 (main): If debug_memory is set, reduce chunksize and
2534 _bfd_chunksize.
2535 * as.h (chunksize): Declare it.
2536 * read.c (read_begin): Use it.
2537
de5ebe2e
KR
2538 * config/tc-alpha.c (md_shortopts): Include 'g'.
2539 (md_parse_option): Ignore it.
2540
dd1a5316
KR
2541 * Makefile.in (distclean): Remove Makefile and config.status from
2542 testsuite directory.
2543 (clean-here): Don't delete testsuite. Instead, delete only the
2544 files within it that would be generated by running tests.
2545
de5ebe2e
KR
2546 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
2547 frag_now_fix instead of accessing obstack info directly.
2548 * config/tc-arm.c (s_ltorg): Ditto.
2549 (md_assemble): Ditto.
2550
2551 * config/tc-i386.c (md_assemble): Call frag_grow instead of
2552 obstack_room.
2553
625f4e48
KR
2554Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
2555
2556 * stabs.c (aout_process_stab): Insert debug symbol into symbol
2557 chain after parsing value expression, if any, to avoid separating
2558 continued .stabs lines.
2559
33a8c1b6
ILT
2560Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
2561
2562 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
2563 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
2564
b6b8f911
MM
2565Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
2566
625f4e48
KR
2567 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
2568 -mcom support and PPC_OPCODE_ANY for -many.
2569 (md_parse_option): Ditto.
2570 (ppc_arch): Ditto.
2571 (md_begin): For duplicate instructions, print all duplicates
2572 before aborting.
b6b8f911 2573
4c2935f4
MM
2574Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
2575
2576 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
2577 common mode operation.
2578 (md_show_usage): Add -mcom to usage message.
4c2935f4
MM
2579
2580Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
2581
2582 * expr.c (op_rank): Add O_symbol_rva.
2583 * expr.h (operatorT): Add O_symbol_rva.
2584 * read.c (cons_worker): Set O_symbol_rva when necessary.
2585 * write.c (fix_new_exp): Understand O_symbol_rva.
2586
7db865dc
ILT
2587Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
2588
2589 * config/tc-mips.c: Correct s_cons arguments. From Michael
2590 Joosten <joost@ori.cadlab.de>.
2591
1b13e6fc
ILT
2592Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
2593
2594 * config/tc-ppc.c (ppc_macro): Make count unsigned.
2595 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
2596 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
2597 the fix_line field.
2598 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
2599 make non-static. Change all users.
2600 * config/obj-coff.h (coff_n_line_nos): Declare.
2601
9e3e3d4c
KR
2602Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
2603
2604 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2605
2606 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
2607
2608 * config/obj-elf.c (obj_elf_common): Convert specified byte
2609 alignment to power of two. Set size of local bss symbol.
2610
2611 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
2612
13a6c753
ILT
2613Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
2614
2615 * sb.c, macro.c: Decide whether to include <string.h> or
2616 <strings.h> just as as.h does.
2617
a75aafcd
DE
2618Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
2619
2620 * Makefile.in (site.exp): Fix setting of $srcdir.
2621
2622 * config/tc-arm.c (md_atof): Fix little-endian output.
f6ec8c46
DE
2623 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
2624 all coff targets.
a75aafcd 2625
d89861c7
KR
2626Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
2627
4d2ba393
KR
2628 * doc/as.texinfo: Split out the NS32k family documentation,
2629 despite its being commented out for now.
2630 * doc/c-ns32k.texi: New file.
2631
2c5eb48d
KR
2632 * sb.c, macro.c: Include string.h.
2633
6b0a6eaa
KR
2634 * Makefile.in (comparison): Only check *.o; we don't care if
2635 timestamps inserted by the native linker differ.
2636
d89861c7
KR
2637 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
2638 if alignment stricter than 4 bytes is requested; in that case,
2639 align to a 4-byte boundary first.
2640
70aeac05
KR
2641 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
2642
2643 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
2644 uninitialized" warning for `Max_Source_Offset'.
2645
eaaa2a42
KK
2646Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
2647
2648 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
2649 qualifiers and detect errors if present.
2650 (md_assemble): Add call to parse_toc_entry. Also added some support
2651 for the [tocv] qualifier.
2652 (ppc_pe_tocd): New function to support data in the toc section.
2653
cd557d83
ILT
2654Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
2655
2656 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
2657 an absolute symbol.
2658
42ac8fa8
ILT
2659Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
2660
01f108bc 2661 * config/tc-m68k.c (isword): Accept all values from -65536 to
cd557d83
ILT
2662 +65535, so ~VAL will not be rejected.
2663
42ac8fa8
ILT
2664 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
2665 skip characters after the pseudo-op.
2666 (s_else): Likewise.
2667 * read.c (get_line_sb): Don't look past buffer_limit.
2668 (s_include): In MRI mode, skip characters after the file name.
2669
eef66934
ILT
2670Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
2671
2672 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
2673 periods in register names.
2674
cdc49cba 2675For older changes see ChangeLog.1.
This page took 0.178663 seconds and 4 git commands to generate.