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