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