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