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