* config/tc-sh.c (md_apply_fix): Check for overflow.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 Mon Jun 9 12:55:45 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2
3 * depend.c (wrap_output): new prototype.
4
5 Mon Jun 9 12:52:44 1997 Ian Lance Taylor <ian@cygnus.com>
6
7 * config/tc-sh.c (md_apply_fix): Check for overflow.
8
9 * config/tc-m68k.c (md_section_align): If a.out and BFD, force
10 section size to be aligned.
11
12 Fri Jun 6 17:15:55 1997 Ian Lance Taylor <ian@cygnus.com>
13
14 * config/tc-sh.h (md_cons_align): Define.
15 (sh_cons_align): Declare.
16 * config/tc-sh.c (md_pseudo_table): Add .uaword and .ualong.
17 (sh_no_align_cons): New static variable.
18 (s_uacons): New static function.
19 (sh_cons_align): New function.
20 (sh_handle_align): Warn about misaligned data.
21 * doc/c-sh.texi: Document .uaword and .ualong.
22
23 Thu Jun 5 15:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
24
25 * macro.c (macro_expand): In MRI mode, treat single quote as a
26 separator character when checking for a positional argument.
27
28 Tue Jun 3 16:15:13 1997 Nick Clifton <nickc@cygnus.com>
29
30 * config/tc-arm.c (md_parse_option): Merge in changes from
31 armT-970328-branch.
32
33 * config/tc-arm.h: Merge in changes from armT-970328-branch.
34
35 * configure.in (emulations): Add Thumb architecture support from
36 armT-9703-28-branch.
37
38 Mon Jun 2 16:25:07 1997 Nick Clifton <nickc@cygnus.com>
39
40 * doc/all.texi: Add enabling of ARM documentation.
41
42 * doc/as.texinfo: Add ARM documentation from armT-970328-branch.
43
44 Mon Jun 2 11:55:12 1997 Gavin Koch <gavin@cygnus.com>
45
46 * config/tc-mips.c: Added r3900 support.
47
48 Thu May 29 12:58:26 1997 Ben Pfaff <pfaffben@pilot.msu.edu>
49
50 * as.c: (parse_args) `-t' option requires an argument.
51
52 Wed May 28 15:45:07 1997 Nick Clifton <nickc@cygnus.com>
53
54 * config/tc-arm.c (md_begin): Change call to
55 coff_arm_bfd_set_private_flags() to a call to
56 bfd_set_private_flags().
57
58 Wed May 28 16:17:34 1997 Ian Lance Taylor <ian@cygnus.com>
59
60 * Makefile.in: Rebuild dependencies.
61
62 * config/tc-i386.c (tc_gen_reloc): Don't try to convert the type
63 of a BFD_RELOC_RVA reloc.
64
65 Wed May 28 10:48:14 1997 Jeffrey A Law (law@cygnus.com)
66
67 * config/tc-hppa.c (tc_fix_adjustable): Reject absolute calls/jumps.
68 (hppa_force_relocation): Force a relocation for an absolute
69 call/jump.
70
71 Mon May 26 13:24:25 1997 Ian Lance Taylor <ian@cygnus.com>
72
73 * doc/as.texinfo: Don't use @value in section names or index
74 entries; it confuses texinfo.tex.
75
76 Fri May 23 00:09:35 1997 Tom Tromey <tromey@cygnus.com>
77
78 * doc/as.texinfo: Updated for -MD option.
79 * Makefile.in (CFILES): Added depend.c.
80 (OBJS): Added depend.o.
81 * as.h (start_dependencies, register_dependency,
82 print_dependencies): New declarations.
83 * depend.c: New file.
84 * as.c (parse_args): Added -MD option.
85 (main): Call print_dependencies.
86 (show_usage): Added help for -MD.
87 * read.c (s_app_file): Call register_dependency.
88 (s_include): Call register_dependency when file is found.
89 (read_a_source_file): Call register_dependency.
90
91 Wed May 21 17:39:28 1997 Ian Lance Taylor <ian@cygnus.com>
92
93 * config/obj-coff.c (symbol_to_chars): If TE_PE, don't add the
94 section address to the symbol value.
95
96 Tue May 20 11:23:31 1997 Gavin Koch <gavin@cygnus.com>
97
98 * config/tc-mips.c (macro_build,mips_ip): Move the INSN_ISA field
99 into the new membership field.
100
101 Thu May 15 10:00:53 1997 Nick Clifton <nickc@cygnus.com>
102
103 * config/tc-arm.c (md_begin): If no cpu type is specified on the
104 command line then the ARM7 is now chosen by default when setting
105 the BFD machine and architecture.
106
107 Wed May 14 09:54:53 1997 Nick Clifton <nickc@cygnus.com>
108
109 * config/tc-arm.c (global variables): Added 'uses_apcs_26' flag to
110 hold APCS selection.
111 (md_begin): Added code to generate flags to be set into the COFF
112 header and the calls to the BFD functions to do this.
113 (md_parse_option, md_show_usage): Added new command line
114 options -mapcs-32, -mapcs-26, -marmv2, -marmv2a, -marmv3,
115 -marmv3m, -marmv4, -marmv4t.
116
117 * tc-arm.h (LOCAL_LABEL): Removed the definition of this macro
118 as it is never used.
119
120 Tue May 13 22:26:14 1997 Jeffrey A Law (law@cygnus.com)
121
122 * config/tc-mn10200.c (md_convert_frag): Prefix temporary
123 label name with ".".
124 * config/tc-mn10300.c (md_convert_frag): Likewise.
125
126 Tue May 13 14:44:39 1997 Ian Lance Taylor <ian@cygnus.com>
127
128 * config/tc-mips.c (set_at): Check for bignum.
129 (check_absolute_expr, macro, mips16_macro): Likewise.
130
131 start-sanitize-tic80
132 Tue May 13 10:45:56 1997 Fred Fish <fnf@cygnus.com>
133
134 * config/tc-tic80.c (md_apply_fix): Check PC relative relocations
135 for overflow/underflow, only insert lower 15 bits into instruction.
136
137 end-sanitize-tic80
138 Mon May 12 13:33:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
139
140 * config/tc-i386.c (pi): Check for RegMMX.
141
142 Thu May 8 11:10:15 1997 Ian Lance Taylor <ian@cygnus.com>
143
144 * expr.c (expr): When subtracting values in the same frag,
145 subtract X_add_number rather than adding it.
146
147 Wed May 7 15:39:48 1997 Ian Lance Taylor <ian@cygnus.com>
148
149 * config/obj-coff.c (write_object_file): Just pass NULL to
150 md_do_align, not the address of a char holding NOP_OPCODE.
151
152 * config/tc-mips.c (macro): Handle constants for M_LI_D and
153 M_LI_DD.
154 (mips_ip): For 'F', 'L', 'f', and 'l', generate a constant rather
155 than an address if the floating point value looks sufficiently
156 simple.
157
158 Tue May 6 12:18:09 1997 Ian Lance Taylor <ian@cygnus.com>
159
160 * config/tc-i386.c (md_section_align): If a.out and BFD, force
161 section size to be aligned.
162
163 Mon May 5 17:16:55 1997 Ian Lance Taylor <ian@cygnus.com>
164
165 * cond.c: Include "macro.h".
166 (struct conditional_frame): Add macro_nest field.
167 (initialize_cframe): Initialize macro_nest.
168 (cond_finish_check): Add nest parameter. Change all callers.
169 (cond_exit_macro): New function.
170 * as.h (cond_finish_check): Update declaration.
171 (cond_exit_macro): Declare.
172 * input-scrub.c (macro_nest): Make globally visible.
173 (input_scrub_next_buffer): Call cond_finish_check.
174 * macro.h (macro_nest): Declare.
175 * read.c (s_mexit): Call cond_exit_macro.
176
177 * config/tc-i386.h (RegMMX): Define.
178 * config/tc-i386.c (pi): Check for all register types.
179 (type_names): Add RegMMX.
180 (md_assemble): Handle RegMMX.
181
182 Wed Apr 30 12:47:00 1997 Manfred Hollstein <manfred@s-direktnet.de>
183
184 * config/obj-coff.c (c_section_symbol): Clear the LOCAL bit #ifdef
185 TE_DELTA.
186
187 Tue Apr 29 20:23:10 1997 Jim Wilson <wilson@cygnus.com>
188
189 * config/tc-mips.c (nopic_need_relax): Add new parameter
190 before_relaxing. Use it when testing ecoff_extern_size.
191 (load_address, macro, md_estimate_size_before_relax): Fix all
192 callers.
193
194 Tue Apr 29 19:54:36 1997 Richard Henderson <rth@tamu.edu>
195
196 * config/obj-elf.c (elf_pseudo_table): Add "subsection".
197 (obj_elf_subsection): New static function.
198
199 Tue Apr 29 19:52:47 1997 Ian Lance Taylor <ian@cygnus.com>
200
201 * config/obj-coff.c (coff_header_append): Don't reset string_size
202 each time through the loop.
203
204 Fri Apr 25 14:17:46 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
205
206 * Makefile.in (DISTSTUFF): Add itbl-parse.h.
207
208 Fri Apr 25 12:03:15 1997 Ian Lance Taylor <ian@cygnus.com>
209
210 * doc/internals.texi (Porting GAS): Correct documentation for
211 current configure handling of targ-cpu.h, et. al.
212 (CPU backend): Document listing macros.
213
214 * listing.c (data_buffer): Set size based on other listing macros,
215 rather than always using 100.
216 (data_buffer_size): Remove static variable.
217 (calc_hex): Make data_buffer_size a local variable. Don't leave
218 any slop when filling data_buffer.
219
220 Mon Apr 21 15:33:19 1997 Ian Lance Taylor <ian@cygnus.com>
221
222 * doc/c-mips.texi: Document .set autoextend.
223
224 Sat Apr 19 23:09:25 1997 Niklas Hallqvist <niklas@petra.appli.se>
225
226 * configure.in (i386-*-openbsd*, m68k-*-openbsd*,
227 mips-dec-openbsd*, ppc-*-*bsd*, ns32k-pc532-openbsd*,
228 sparc-*-openbsd*): New targets.
229 * configure: Rebuild.
230
231 Sat Apr 19 22:52:03 1997 Jim Wilson <wilson@cygnus.com>
232
233 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
234 for all undefined symbols.
235
236 Fri Apr 18 13:37:35 1997 Ian Lance Taylor <ian@cygnus.com>
237
238 * config/tc-ppc.c (ppc_fix_adjustable): Handle zero length csects
239 correctly.
240
241 Fri Apr 18 11:51:35 1997 Niklas Hallqvist <niklas@appli.se>
242
243 * configure.in (alpha*-*-openbsd*): New target.
244 * configure: Rebuild.
245
246 Thu Apr 17 13:59:47 1997 Per Fogelstrom <pefo@openbsd.org>
247
248 * configure.in (mips-*-openbsd*): New target.
249 * configure: Rebuild.
250
251 start-sanitize-d30v
252 Wed Apr 16 12:31:24 1997 Martin Hunt <hunt@cygnus.com>
253
254 * config/tc-d30v.c (parallel_ok): Fix parallel checking
255 for instructions using conditional execution.
256
257 end-sanitize-d30v
258 Tue Apr 15 18:11:44 1997 Gavin Koch <gavin@cygnus.com>
259
260 * config/tc-mips.c (insn_uses_reg): Correct test for fpr pairs.
261
262 Tue Apr 15 13:04:47 1997 Ian Lance Taylor <ian@cygnus.com>
263
264 * Makefile.in (srcroot): Remove.
265 (INSTALL): Set to @INSTALL@.
266 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
267 (all, dvi): Don't set srcroot.
268 (install): Depend upon as.new, gasp.new, and installdirs. Use
269 $(program_transform_name) directly, rather than using
270 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
271 (installdirs): New target.
272 * doc/Makefile.in (INSTALL_XFORM1): Remove.
273 (install): Depend upon installdirs. Use $(program_transform_name)
274 directly, rather than using $(INSTALL_XFORM) and
275 $(INSTALL_XFORM1).
276 (installdirs): New target.
277 (install-info-as): Run mkinstalldirs.
278 (install-info-gasp): Likewise.
279
280 Mon Apr 14 11:59:08 1997 Ian Lance Taylor <ian@cygnus.com>
281
282 * Makefile.in (INSTALL): Change install.sh to install-sh.
283
284 * symbols.c (resolve_symbol_value): Check for division by zero.
285
286 From Thomas Graichen <graichen@rzpd.de>:
287 * Makefile.in: Always use $(SHELL) when running move-if-change.
288 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
289 * configure: Rebuild.
290
291 Thu Apr 10 14:40:00 1997 Doug Evans <dje@canuck.cygnus.com>
292
293 * cgen.c (cgen_parse_operand): Renamed from cgen_asm_parse_operand.
294 New argument `want'. Update enum cgen_parse_operand_result values.
295 Initialize if CGEN_PARSE_OPERAND_INIT.
296 * config/tc-m32r.c (md_begin): Set cgen_parse_operand_fn.
297 (md_assemble): Call cgen_asm_init_parse.
298 Update call to m32r_cgen_assemble_insn, call as_bad if assembly failed.
299
300 Wed Apr 9 11:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
301
302 * config/tc-m68k.c (m68k_ip): Handle #j.
303
304 Tue Apr 8 16:37:57 1997 Jeffrey A Law (law@cygnus.com)
305
306 * config/tc-mn10300.c (md_convert_frag): Create fixup at the
307 right address for call label:32,regs,imm.
308
309 Mon Apr 7 14:58:22 1997 Jeffrey A Law (law@cygnus.com)
310
311 * config/tc-hppa.c (pa_subspace_start): If OBJ_ELF, then always return
312 zero.
313 * config/tc-hppa.h (tc_frob_symbol): Don't reset the value of the
314 symbol for OBJ_ELF anymore.
315
316 Mon Apr 7 10:54:59 1997 Doug Evans <dje@canuck.cygnus.com>
317
318 * Makefile.in: Regenerate dependencies.
319 (TARG_CPU): New variable.
320 (cgen.o): Depend on cgen.h, $(TARG_CPU)-opc.h.
321 (.dep1): Delete creating of cgen-opc.h.
322 (.tcdep): Put proper contents in cgen-opc.h.
323 * configure.in (m32r): Delete setting of extra_files, extra_links.
324 (AC_OUTPUT): Create cgen-opc.h.
325 * configure: Regenerated.
326
327 Sat Apr 5 13:19:12 1997 Klaus Kaempf <kkaempf@progis.de>
328
329 * makefile.vms: Update to build gasp.exe.
330
331 Fri Apr 4 16:10:02 1997 Doug Evans <dje@canuck.cygnus.com>
332
333 * write.c (relax_frag): Make non-static.
334 * write.h (relax_frag): Add prototype for.
335 * config/tc-m32r.h (md_do_align): New arg `max'.
336 * config/tc-m32r.c (m32r_do_align): Likewise.
337 Update calls to frag_align, frag_align_pattern.
338 (fill_insn): Update call to m32r_do_align.
339 (m32r_scomm): Update call to frag_align.
340
341 * config/tc-m32r.[ch]: New files.
342 * cgen.c: New file.
343 * Makefile.in (CPU_TYPES): Add m32r.
344 (TARGET_CPU_CFILES): Add tc-m32r.c.
345 (TARGET_CPU_HFILES): Add tc-m32r.h.
346 (DISTCLEAN_HERE): Add cgen-opc.h.
347 (.dep1,.tcdep): Create empty cgen-opc.h.
348 (cgen.o): Add dependencies.
349 (dependencies): Regenerate.
350 * as.h (struct frag): New member fr_targ.
351 (fr_pcrel_adjust,fr_bsr): Move into union fr_targ.ns32k.
352 * conf.in (USING_CGEN): New macro.
353 * configure.in (m32r-*-*): Add entry for.
354 Add cgen.o to extra_objects.
355 * configure: Regenerate.
356 * frags.c (frag_var): fr_pcrel_adjust renamed to
357 fr_targ.ns32k.pcrel_adjust. fr_bsr renamed to fr_targ.ns32k.bsr.
358 (frag_variant): Likewise.
359 * write.c (relax_frag): Likewise.
360 * config/tc-ns32k.c (*): Likewise.
361
362 Fri Apr 4 13:26:10 1997 Ian Lance Taylor <ian@cygnus.com>
363
364 * config/tc-hppa.h (TC_EOL_IN_INSN): Check explicitly for '!',
365 rather than for any end of line character.
366
367 * config/tc-hppa.c (tc_gen_reloc): If hppa_ren_reloc_type fails,
368 call abort (i.e., as_abort) rather than crashing.
369
370 * config/tc-mips.c: Protect uses of STO_MIPS16 with an ifdef of
371 OBJ_ELF, rather than of S_GET_OTHER.
372
373 * Makefile.in (DISTCLEAN_HERE): Add site.exp and site.bak.
374
375 Thu Apr 3 13:16:18 1997 Ian Lance Taylor <ian@cygnus.com>
376
377 * Makefile.in (VERSION): Set to 2.8.1.
378
379 * Branched binutils 2.8.
380
381 Wed Apr 2 12:24:10 1997 Ian Lance Taylor <ian@cygnus.com>
382
383 * COPYING: Update FSF address.
384
385 * config/tc-mips.c (mips16_macro): Handle M_DMUL and M_MUL.
386
387 Tue Apr 1 18:29:47 1997 Jim Wilson <wilson@cygnus.com>
388
389 * config/tc-mips.c (md_begin): Don't set interlocks for 4100.
390
391 Tue Apr 1 16:24:28 1997 Klaus Kaempf <kkaempf@progis.de>
392
393 * config-gas.com: Update to handle both vax and alpha.
394 * makefile.vms: Update to use config-gas.
395 * conf-a-gas.com: Remove file.
396
397 Tue Apr 1 16:08:21 1997 Ian Lance Taylor <ian@cygnus.com>
398
399 * Makefile.in: Remove unnecessary itbl-parse.h, ibtl-parse.c, and
400 itbl-lex.c dependencies. Remove rules for itbl-lex.o,
401 itbl-parse.o, and itbl-ops.o; just use the normal .c.o rule.
402
403 start-sanitize-tic80
404 Tue Apr 1 11:25:56 1997 Michael Meissner <meissner@cygnus.com>
405
406 * config/tc-tic80.c (line_comment_char): Make '#' start comments
407 at the beginning of a line for compatibility with .S files where
408 cpp leaves the filename transitions beginning with '#'.
409
410 end-sanitize-tic80
411 Tue Apr 1 00:07:30 1997 Ian Lance Taylor <ian@cygnus.com>
412
413 * config/tc-m68k.c: Only compile tc_coff_symbol_emit_hook and
414 tc_coff_sizemachdep if OBJ_COFF.
415
416 Mon Mar 31 23:53:44 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
417
418 * config/tc-ppc.c (register_name): Declare.
419
420 Mon Mar 31 16:31:04 1997 Joel Sherrill <joel@oarcorp.com>
421
422 * configure.in (hppa*-*-rtems*): New target, like hppa-*-*elf*.
423 * configure: Rebuild.
424
425 Mon Mar 31 14:15:19 1997 Ian Lance Taylor <ian@cygnus.com>
426
427 * config/tc-mips.c (mips_pseudo_table): Add "stabn".
428 (mips16_mark_labels): New static function.
429 (append_insn): Call mips16_mark_labels.
430 (mips_emit_delays): Likewise.
431 (s_insn): Likewise. Don't call mips_clear_insn_labels.
432 (s_mips_stab): New static function.
433
434 * configure.in: Use ELF for mips-*-gnu*.
435 * configure: Rebuild.
436
437 Mon Mar 31 14:01:40 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
438
439 * config/tc-m68k.h (TARGET_FORMAT): Set to "coff-m68k-sysv" if
440 TE_DELTA.
441
442 Fri Mar 28 18:03:19 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
443
444 * configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set,
445 set OPCODES_LIB to empty.
446 * configure: Rebuild.
447
448 Fri Mar 28 15:25:24 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
449
450 * configure.in (sparc-*-linux*aout*, sparc-*-linux*): New
451 targets.
452 * configure: Rebuild.
453
454 Fri Mar 28 13:08:33 1997 Ian Lance Taylor <ian@cygnus.com>
455
456 * itbl-parse.y (yyerror): Make static. Declare.
457
458 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
459 * configure.in: Set emulations for mips-*-linux*-*.
460 * configure: Rebuild.
461
462 * config/tc-mips.c (struct mips_set_options): Define.
463 (mips_opts): New static variable.
464 (mips_isa): Remove. Now a field in mips_opts. Change all
465 references.
466 (mips16, mips16_autoextend, mips_warn_about_macros): Likewise.
467 (mips_noreorder, mips_nomove, mips_noat, mips_nobopt): Likewise.
468 (struct mips_option_stack): Define.
469 (mips_opts_stack): New static variable.
470 (s_mipsset): Add support for .set push and .set pop.
471 * doc/c-mips.texi: Document .set push and .set pop.
472
473 * config/obj-elf.c (obj_elf_section_change_hook): New function.
474 * config/obj-elf.h (obj_elf_section_change_hook): Declare it.
475 * config/tc-mips.c (s_change_sec): Call it if OBJ_ELF.
476
477 Thu Mar 27 12:23:56 1997 Ian Lance Taylor <ian@cygnus.com>
478
479 * as.c (parse_args): Update copyright date in version message.
480
481 * Makefile.in (clean-here): Remove dependency files.
482
483 * read.c (s_comm): Check S_IS_COMMON as well as S_IS_DEFINED.
484 (s_mri_common): Check S_IS_COMMON unconditionally.
485 * symbols.c (colon): Check S_IS_COMMON as well as S_IS_DEFINED.
486 * config/tc-alpha.c (s_alpha_comm): Likewise.
487 * config/tc-mips.c (nopic_need_relax): Likewise.
488 * config/tc-ppc.c (ppc_elf_lcomm): Likewise.
489 (ppc_pe_comm): Likewise.
490 * config/obj-elf.c (obj_elf_common): Likewise. Set segment of
491 common symbol to bfd_com_section_ptr.
492 * config/tc-sparc.c (s_common): Likewise.
493 (tc_gen_reloc): Likewise.
494
495 start-sanitize-d30v
496 Thu Mar 27 00:29:46 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
497
498 * config/tc-d30v.c (md_apply_fix3): Get the relocs right.
499
500 end-sanitize-d30v
501 Wed Mar 26 13:35:15 1997 H.J. Lu <hjl@lucon.org>
502
503 * config/tc-i386.c (tc_i386_fix_adjustable): Only define if
504 BFD_ASSEMBLER.
505
506 Wed Mar 26 11:32:51 1997 Ian Lance Taylor <ian@cygnus.com>
507
508 * input-scrub.c (input_scrub_next_buffer): Handle very long input
509 lines correctly.
510
511 * listing.c (print_lines): Add lineno parameter. Change all
512 callers.
513 (listing_listing): Only call calc_hex for the right line.
514 (listing_list): Set the new edict based on the current edict, in
515 order to handle listing commands in macros correctly.
516
517 * config/tc-mips.c (insn_uses_reg): Map register numbers in mips16
518 instructions.
519
520 * cond.c (cond_finish_check): New function.
521 * as.h (cond_finish_check): Declare.
522 * as.c (main): Call cond_finish_check.
523
524 start-sanitize-d30v
525 Tue Mar 25 14:45:54 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
526
527 * config/tc-d30v.c (md_assemble): If two instructions
528 are supposed to be assembled in parallel and the first one is
529 long, print an error and stop.
530 (md_apply_fix3): Don't calculate absolute relocs. Just write
531 them out.
532
533 end-sanitize-d30v
534 Mon Mar 24 12:11:18 1997 Ian Lance Taylor <ian@cygnus.com>
535
536 * config/tc-i386.h (iclrKludge): Define.
537 * config/tc-i386.c (md_assemble): Handle iclrKludge.
538
539 * config/tc-alpha.h (tc_frob_file_before_adjust): Define if
540 OBJ_ECOFF.
541 (alpha_frob_file_before_adjust): Declare if OBJ_ECOFF.
542 * config/tc-alpha.c (alpha_debug): New static variable.
543 (md_parse_option): Set alpha_debug if -g is seen.
544 (alpha_frob_file_before_adjust): New function if OBJ_ECOFF.
545
546 start-sanitize-d30v
547 Sun Mar 23 18:03:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
548
549 * config/tc-d30v.c (build_insn): Enable range-checking code.
550 (postfix): Stop at space or comma. Fixes PR 11862.
551 (md_assemble): Change error message.
552
553 end-sanitize-d30v
554 Sat Mar 22 13:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
555
556 * Makefile.in: Added automatic dependency building.
557 * dep-in.sed: New file.
558
559 Fri Mar 21 15:42:37 1997 Ian Lance Taylor <ian@cygnus.com>
560
561 * config/obj-ieee.c (segment_name): Don't define function if this
562 is a macro.
563
564 * config/obj-coff.h (DO_STRIP): Don't define.
565 * config/tc-h8300.h (DO_STRIP): Don't define.
566 * config/tc-h8500.h (DO_STRIP): Don't define.
567 * config/tc-w65.h (DO_STRIP): Don't define.
568 * config/tc-z8k.h (DO_STRIP): Don't define.
569
570 * symbols.c (colon): Call obj_frob_label if it is defined.
571 * config/obj-vms.h (obj_frob_label): Rename from tc_frob_label.
572
573 * configure.in: Don't set files and links. Don't call
574 AC_LINK_FILES. Substitute te_file. Create targ-cpu.h,
575 obj-format.h, targ-env.h, and itbl-cpu.h in AC_OUTPUT.
576 * configure: Rebuild.
577 * Makefile.in (TARG_CPU_C): New variable.
578 (TARG_CPU_O, TARG_CPU_H): New variables.
579 (OBJ_FORMAT_C, OBJ_FORMAT_O, OBJ_FORMAT_H): New variables.
580 (TARG_ENV_H, ATOF_TARG_C, ATOF_TARG_O): New variables.
581 (SOURCES): Rename from REAL_SOURCES. Delete old definition.
582 (LINKED_SOURCES): Remove.
583 (HEADERS): Rename from REAL_HEADERS. Delete old definition.
584 (LINKED_HEADERS): Remove.
585 (OBJS): Use $(TARG_CPU_O), etc., rather than targ-cpu.o, etc.
586 ($(OBJS)): Depend upon $(TARG_ENV_H), etc., rather than
587 targ-cpu.h, etc.
588 ($(TARG_CPU_O), $(OBJ_FORMAT_O) $(ATOF_TARG_O)): New targets.
589 (targ-cpu.o, obj-format.o, atof-targ.o): Remove targets.
590 (itbl-cpu.h): Remove target.
591 (DISTCLEAN_HERE): Remove targ-cpu.c, obj-format.c, atof-targ.c,
592 atof-targ.h.
593
594 Thu Mar 20 19:18:58 1997 Ian Lance Taylor <ian@cygnus.com>
595
596 * doc/as.texinfo (Symbol Names): Don't use obsolete @ctrl macro.
597
598 Thu Mar 20 16:49:14 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
599
600 * config/tc-m68k.c (mri_chip): Replace calls to get_symbol_end by
601 open coded loop that does not require the name to start with a
602 name beginner.
603
604 Thu Mar 20 13:42:01 1997 H.J. Lu <hjl@lucon.org>
605
606 * frags.c (frag_var): Change offset parameter to offsetT.
607 (frag_variant): Likewise.
608 * frags.h (frag_variant, frag_var): Update declarations.
609 * config/tc-m68k.c (struct m68k_it): Change foff field to
610 offsetT.
611 (add_frag): Change off parameter to offsetT.
612 * Several files: Add casts to calls to frag_var.
613
614 * Makefile.in (m68k-parse.c): Depend upon itbl-parse.c, to
615 serialize a parallel make.
616 (itbl-parse.h): Split target out from itbl-parse.c.
617
618 Thu Mar 20 12:48:45 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
619
620 * config/m68k-parse.y (motorola_operand): Allow (zdireg,EXPR).
621
622 * config/te-delta.h (COFF_COMMON_ADDEND): Define.
623 * config/obj-coff.c (fixup_segment): Check COFF_COMMON_ADDEND when
624 storing the value of a common symbol.
625
626 Wed Mar 19 11:37:57 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
627
628 * config/obj-coff.c (glue_symbols): Unused variable symbolP
629 removed.
630 (crawl_symbols): Do not modify symbol_rootP and symbol_lastP here;
631 that is done by symbol_remove and symbol_insert.
632
633 * config/obj-coff.h (S_IS_LOCAL): Return 0 for a debugging
634 symbol.
635
636 Wed Mar 19 11:06:29 1997 Ian Lance Taylor <ian@cygnus.com>
637
638 * config/tc-mips.c (load_register): In 32 bit mode, when not
639 dealing with a 64 bit number, permit the upper 32 bits to be set
640 even if bit 31 is not set.
641
642 Tue Mar 18 23:30:14 1997 Ian Lance Taylor <ian@cygnus.com>
643
644 * read.c (potable): Add "equiv".
645 (s_set): Handle .equiv based on argument.
646 * doc/as.texinfo (Equiv): New node to document .equiv.
647 (Err): New node to document .err.
648
649 Tue Mar 18 15:50:13 1997 H.J. Lu <hjl@lucon.org>
650
651 * Many files: Add function prototypes.
652 * as.c (show_usage, parse_args): Make static.
653 * frags.h (frag_alloc): Declare.
654 * subsegs.c (subseg_set_rest): Don't declare frag_alloc.
655 * symbols.c (dollar_label_instance): Change return type to long.
656 * symbols.h (print_symbol_value): Declare.
657 (print_expr, print_expr_1, print_symbol_value_1): Declare.
658 * write.c (fix_new_exp): Don't declare make_expr_symbol.
659 (remove_subsegs, relax_frag): Make static.
660 * config/atof-vax.c (atof_vax_sizeof): Change letter to int.
661 (what_kind_of_float): Likewise.
662 (atof_vax): Make static. Change what_kind to int.
663 (md_atof): Change what_statement_type to int.
664 * config/obj-ecoff.h (obj_ecoff_set_ext): Declare.
665 * config/tc-alpha.c (vax_md_atof): Declare.
666 (md_atof): Don't declare atof_ieee and vax_md_atof.
667 * config/tc-i386.c (set_16bit_code_flag): Make static.
668 * config/tc-i386.h (tc_i386_fix_adjustable): Declare.
669 * config/tc-m68k.c (add_fix): Change width to int.
670 (insert_reg): Change regname to const.
671 (md_atof): Don't declare atof_ieee.
672 (demand_empty_rest_of_line): Don't declare.
673 * config/tc-m88k.c (md_atof): Don't declare atof_ieee.
674 * config/tc-sparc.c (cmp_reg_entry): Change args to const PTR.
675 (parse_keyword_arg): Change lookup_fn to take const arg.
676 (md_atof): Don't declare atof_ieee.
677 * config/tc-sparc.h: Add ifdef for multiple inclusion.
678 (tc_aout_pre_write_hook): Don't declare.
679
680 Mon Mar 17 11:21:09 1997 Ian Lance Taylor <ian@cygnus.com>
681
682 * as.h (bfd_alloc_by_size_t): Don't declare.
683 * Many files: Use xmalloc rather than bfd_alloc_by_size_t.
684
685 Sun Mar 16 13:49:21 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
686
687 * symbols.c (symbol_new): Don't call debug_verify_symchain.
688 (symbol_append): Set sy_next and sy_previous when adding a single
689 symbol to an empty list. Call debug_verify_symchain.
690 (verify_symbol_chain): Use assert, not know.
691
692 Sat Mar 15 20:27:12 1997 Fred Fish <fnf@cygnus.com>
693
694 * NEWS: Note BeOS support.
695 * configure.in: (ppc-*-beos): New target, use coff as object format.
696 * configure: Regenerate with autoconf.
697
698 Sat Mar 15 19:14:02 1997 Ian Lance Taylor <ian@cygnus.com>
699
700 * config/tc-mips.c (md_apply_fix): Improve error message for out
701 of range branch.
702
703 * Makefile.in: Add dependencies on obstack.h where needed.
704
705 Fri Mar 14 15:33:38 1997 Ian Lance Taylor <ian@cygnus.com>
706
707 * config/tc-mips.c (md_estimate_size_before_relax): Handle the
708 case of a symbol equated to another symbol when using SVR4_PIC.
709
710 * Makefile.in (TARG_CPU_DEP_sparc): Add opcode/sparc.h.
711
712 Thu Mar 13 11:20:51 1997 Ian Lance Taylor <ian@cygnus.com>
713
714 * read.c (read_a_source_file): Call LISTING_NEWLINE before
715 HANDLE_CONDITIONAL_ASSEMBLY when handling an MRI line label.
716
717 * config/obj-elf.c (obj_elf_data): Call md_flush_pending_output
718 and md_elf_section_change_hook if they are defined.
719 (obj_elf_text, obj_elf_previous): Likewise.
720
721 Wed Mar 12 11:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
722
723 * config/obj-multi.h (struct elf_obj_sy): Define if
724 OBJ_MAYBE_ELF.
725 (OBJ_SYMFIELD_TYPE): Define as struct elf_obj_sy if
726 OBJ_MAYBE_ELF.
727 * config/obj-elf.h (struct elf_obj_sy): Don't define if
728 OBJ_SYMFIELD_TYPE is defined.
729
730 * doc/as.texinfo (bss): Improve description of .bss section. In
731 ELF or COFF, you are permitted to switch into the section.
732 (Comm): Rewrite description of common symbols.
733 (Lcomm): Mention that some targets permit a third argument.
734
735 Tue Mar 11 01:13:31 1997 Ian Lance Taylor <ian@cygnus.com>
736
737 * config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
738
739 * symbols.c (colon): Change type of local to int. From Alan Modra
740 <alan@spri.levels.unisa.edu.au>.
741
742 * config/tc-m88k.c (m88k_do_align): Don't use a special nop
743 alignment if a zero fill pattern was explicitly specified.
744 * config/tc-sh.c (sh_do_align): Likewise.
745
746 * read.c (equals): Always permit register names to be redefined.
747
748 * config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
749 mips16 symbol to be adjusted if a symbol is being subtracted from
750 it.
751
752 From Eric Youngdale <eric@andante.jic.com>:
753 * config/obj-elf.c (obj_elf_symver): Check for duplicate or
754 illegal symbol version names.
755 (elf_frob_symbol): Check for external default versions.
756
757 Sun Mar 9 23:49:12 1997 Ian Lance Taylor <ian@cygnus.com>
758
759 From Eric Youngdale <eric@andante.jic.com>:
760 * config/obj-elf.h (struct elf_obj_sy): Define.
761 (OBJ_SYMFIELD_TYPE): Define to elf_obj_sy struct. Change all
762 users.
763 * config/obj-elf.c (obj_elf_symver): Just record the name.
764 (obj_symbol_new_hook): Initialized versioned_name field.
765 (elf_frob_symbol): If there is a versioned_name, either rename the
766 symbol, or add an alias with that name.
767
768 Thu Mar 6 13:55:32 1997 Jeffrey A Law (law@cygnus.com)
769
770 * config/tc-mn10300.c (md_relax_table): Define.
771 (md_convert_frag): Implement.
772 (md_assemble): Handle relaxable operands/instructions correctly.
773 (md_estimate_size_before_relax): Implement.
774 * config/tc-mn10300.h (TC_GENERIC_RELAX_TABLE): Define.
775
776 * config/tc-mn10200.c (md_relax_table): Fix typos.
777
778 * config/tc-mn10300.c (md_assemble): Don't use any MN10300 specific
779 relocs anymore. Tweak fx_offset for pc-relative relocs.
780
781 Wed Mar 5 15:46:16 1997 Ian Lance Taylor <ian@cygnus.com>
782
783 * cond.c (s_ifc): Call mri_comment_field and mri_comment_end when
784 in MRI mode.
785
786 start-sanitize-tic80
787 Tue Mar 4 19:34:21 1997 Fred Fish <fnf@cygnus.com>
788
789 * config/tc-tic80.c (md_pseudo_table): Add "sect" and "section"
790 pseudo-ops.
791 * config/tc-tic80.c (md_begin): Declare external variable
792 coff_flags and insert an F_AR32WR bit into it.
793
794 end-sanitize-tic80
795 Tue Mar 4 10:01:04 1997 Ian Lance Taylor <ian@cygnus.com>
796
797 * read.c (equals): Add reassign parameter. Change all callers.
798 * read.h (equals): Update declaration.
799
800 Sat Mar 1 01:04:04 1997 Ian Lance Taylor <ian@cygnus.com>
801
802 * config/tc-mips.c (mips16_extended_frag): Don't assume that we
803 can rely on the frag address to determine whether a frag is
804 earlier or later.
805
806 Fri Feb 28 14:40:00 1997 Ian Lance Taylor <ian@cygnus.com>
807
808 * write.h (LOCAL_LABEL): Only define if not BFD_ASSEMBLER.
809 (S_LOCAL_NAME): Likewise.
810 (FAKE_LABEL_NAME): Define unconditionally.
811 * symbols.c (colon): Call bfd_is_local_label, not LOCAL_LABEL, if
812 BFD_ASSEMBLER.
813 (S_IS_LOCAL): Call bfd_is_local_label_name, not LOCAL_LABEL.
814 * config/tc-*.h: Only define LOCAL_LABEL if not BFD_ASSEMBLER.
815 Don't define FAKE_LABEL_NAME.
816 * config/te-ic960.h: Likewise.
817 * config/tc-mips.h (tc_frob_file_before_adjust): Define.
818 (mips_frob_file_before_adjust): Declare.
819 * config/tc-mips.c (mips_frob_file_before_adjust): New function.
820 (mips_local_label): Remove.
821
822 * config/te-sco386.h: Remove; not used.
823
824 start-sanitize-tic80
825 Thu Feb 27 15:39:16 1997 Fred Fish <fnf@cygnus.com>
826
827 * config/tc-tic80 (md_pseudo_table): Add align pseudo op to do
828 byte alignment rather than power-of-two alignment that is the
829 GAS default.
830
831 end-sanitize-tic80
832 Thu Feb 27 13:29:04 1997 Ian Lance Taylor <ian@cygnus.com>
833
834 * config/tc-m68k.c (md_assemble): Handle a reloc width of 'W'.
835
836 * gasp.c (hash_add_to_string_table): Correct misspelling in error
837 message, and add newline.
838 (process_file): Don't process assignments in the label if this is
839 a equ or assign pseudo-op.
840 (process_pseudo_op): Swap first argument to do_assign for K_ASSIGN
841 and K_EQU, to match documentation.
842
843 Thu Feb 27 12:00:03 1997 Michael Meissner <meissner@cygnus.com>
844
845 * config/obj-coff.c (obj_coff_section): Add 'r' section attribute
846 to denote read-only data sections.
847
848 Thu Feb 27 00:26:33 1997 Ian Lance Taylor <ian@cygnus.com>
849
850 * config/obj-elf.c (obj_elf_common): Set BSF_OBJECT in flags.
851 * config/tc-sparc.c (s_common): Likewise, if BFD_ASSEMBLER.
852
853 * expr.c (operand): Simplify 0b handling. Don't treat 0b as a
854 binary number if the next character is '+' or '-'.
855
856 start-sanitize-tic80
857 Wed Feb 26 20:47:12 1997 Fred Fish <fnf@cygnus.com>
858
859 * config/tc-tic80.c (FLT_CHARS): Change from "dD" to "fF".
860 (find_opcode): Match operands that can be floats.
861 (build_insn): Handle O_big (float) expressions and build
862 correct opcode.
863
864 end-sanitize-tic80
865 Wed Feb 26 18:19:00 1997 Stan Shebs <shebs@andros.cygnus.com>
866
867 * configure.in (mips*-*-lnews*): New target, also make empty
868 emulation list for this target.
869 * configure: Update.
870 * tc-mips.c (ECOFF_LITTLE_FORMAT): Define.
871 (mips_target_format): Use.
872 * te-lnews.h: New file.
873
874 start-sanitize-tic80
875 Wed Feb 26 15:33:46 1997 Fred Fish <fnf@cygnus.com>
876
877 * config/tc-tic80.c (find_opcode, build_insn): Changes to match
878 operands with :m or :s modifiers and generate the right opcodes
879 for them.
880
881 end-sanitize-tic80
882 Wed Feb 26 11:56:11 1997 Ian Lance Taylor <ian@cygnus.com>
883
884 * Makefile.in (itbl-parse.c itbl-parse.h): Use $(BISON) and
885 $(BISONFLAGS), not $(YACC) and $(YACCFLAGS).
886
887 Tue Feb 25 22:02:23 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
888
889 * config/tc-m68k.c (instring): Useless local declaration of
890 crack_operand removed.
891 * expr.h (expressionS): Changed type of X_op field to operatorT if
892 __GNUC__.
893
894 Tue Feb 25 13:17:27 1997 Ian Lance Taylor <ian@cygnus.com>
895
896 Based on patches from Robert Lipe <robertl@dgii.com>:
897 * configure.in: Add i386coff and i386elf to emulation list.
898 * configure: Rebuild.
899 * as.c (i386coff, i386elf): Declare.
900 * obj.h (coff_format_ops): Declare.
901 * config/obj-coff.c (OBJ_HEADER): Define.
902 (coff_obj_symbol_new_hook): Rename from obj_symbol_new_hook.
903 (coff_obj_read_begin_hook): Rename from obj_read_begin_hook.
904 (obj_pseudo_table): Add "version".
905 (coff_pop_insert): New static function.
906 (coff_sec_sym_ok_for_reloc): New static function.
907 (no_func): New static function.
908 (coff_format_ops): New variable.
909 * config/obj-coff.h (coff_obj_symbol_new_hook): Declare.
910 (obj_symbol_new_hook): Define.
911 (coff_obj_read_begin_hook): Declare.
912 (obj_read_begin_hook): Define.
913 * config/tc-i386.h (i386_target_format): Declare.
914 * config/tc-i386.c: Check OBJ_MAYBE_ELF as well as OBJ_ELF; check
915 OUTPUT_FLAVOR when appropriate.
916 (i386_target_format): New function.
917 * Makefile.in (obj-coff.o): New target.
918 (e-i386coff.o, e-i386elf.o): New targets.
919
920 From Stephen Williams <steve@icarus.icarus.com>:
921 * config/tc-i960.h (TC_SYMFIELD_TYPE): Define if OBJ_COFF.
922 (_tc_get_bal_of_call): Don't declare.
923 (tc_get_bal_of_call): Declare as function, don't define as macro.
924 * config/tc-i960.c (tc_set_bal_of_call): If OBJ_COFF, store balP
925 in sy_tc field, not x_balntry field.
926 (tc_get_bal_of_call): Rename from _tc_get_bal_of_call. Change
927 return type to symbolS *. If OBJ_COFF, retrieve value from sy_tc
928 field, not x_balntry field.
929
930 * config/obj-elf.c (obj_elf_section): Permit a .note section to
931 have the SHF_ALLOC attribute.
932
933 * Makefile.in ($(OBJS)): Don't depend upon $(IT_HDRS).
934 (TARG_CPU_DEP_mips): Depend upon $(srcdir)/itbl-ops.h.
935 (itbl-lex.o): Depend upon itbl-parse.h.
936
937 * itbl-parse.y (yyerror): Change return type to int. Change to
938 use old style function declaration.
939
940 * Makefile.in (itbl-lex.o): Remove -Wall.
941 (itbl-parse.o): Likewise.
942
943 * cond.c (s_ifdef): If we should omit conditionals from listings,
944 call listing_list.
945 (s_if, s_ifc, s_endif, s_else, s_ifeqs): Likewise.
946 * listing.c (list_info_struct): Add EDICT_NOLIST_NEXT.
947 (listing_listing): Handle EDICT_NOLIST_NEXT.
948 (listing_list): An argument of 2 means EDICT_NOLIST_NEXT.
949 * listing.h (LISTING_NOCOND): Define.
950 (LISTING_SKIP_COND): Define.
951 * as.c (show_usage): Mention c as a suboption of -a.
952 (parse_args): Handle c as a suboption of -a.
953 * doc/as.texinfo: Document -alc.
954
955 start-sanitize-tic80
956 Mon Feb 24 23:34:14 1997 Fred Fish <fnf@cygnus.com>
957
958 * config/tc-tic80.c (md_apply_fix): Handle R_ABS type fixups.
959
960 end-sanitize-tic80
961 Mon Feb 24 18:27:43 1997 Eric Youngdale <eric@andante.jic.com>
962
963 * doc/as.texinfo: Document .symver.
964
965 Mon Feb 24 15:19:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
966
967 * config/tc-d10v.c: Change pre_defined_registers to
968 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
969
970 Mon Feb 24 10:40:45 1997 Fred Fish <fnf@cygnus.com>
971
972 * config/obj-coff.c: Fix typo in comment section.
973 start-sanitize-tic80
974 * config/tc-tic80.c (md_pseudo_table): Add entry for bss, which takes
975 an additional alignment argument.
976 (find_opcode): Allow O_symbol relocs for any 32 bit field, not just
977 base relative ones.
978 (build_insn): Handle O_symbol relocs for any 32 bit field, not just
979 base relative ones.
980 end-sanitize-tic80
981
982 Mon Feb 24 02:23:00 1997 Dawn Perchik <dawn@cygnus.com>
983
984 * Makefile.in: Remove dependancies on itbl-cpu.h.
985 * as.c: Define stubs for itbl_parse and itbl_init if HAVE_ITBL_CPU
986 is not defined.
987
988 Mon Feb 24 02:03:00 1997 Dawn Perchik <dawn@cygnus.com>
989
990 * itbl-ops.h: Include as.h.
991
992 Mon Feb 24 01:04:00 1997 Dawn Perchik <dawn@cygnus.com>
993
994 * as.c: Remove -t option.
995 * configure, configure.in: Move itbl-cpu.h to mips specific configure.
996 * itbl-ops.h: Include itbl-cpu.h only if HAVE_ITBL_CPU is defined.
997 * config/tc-mips.h: Define HAVE_ITBL_CPU.
998
999 Sun Feb 23 18:01:00 1997 Dawn Perchik <dawn@cygnus.com>
1000
1001 * itbl-ops.c: Don't define DEBUG.
1002
1003 Sun Feb 23 17:49:00 1997 Dawn Perchik <dawn@cygnus.com>
1004
1005 * Makefile.in: Update itbl-test.c to reflect its new location.
1006
1007 Sun Feb 23 15:50:00 1997 Dawn Perchik <dawn@cygnus.com>
1008
1009 * itbl-ops.c: Add test for itbl_have_entries.
1010 * config/tc-mips.c: Remove test for itbl_have_entries.
1011 * config/tc-mips.h: Define tc_init_after_args to mips_init_after_args.
1012
1013 Sun Feb 23 18:13:19 1997 Ian Lance Taylor <ian@cygnus.com>
1014
1015 * Makefile.in (DISTSTUFF): Remove itbl-parse.y, itbl-lex.l, and
1016 itbl-ops.c. Add itbl-parse.c and itbl-lex.c.
1017 (LEX, LEXFLAGS): Define.
1018 * itbl-ops.c (append_insns_as_macros): Remove bogus ASSERT.
1019
1020 Sat Feb 22 21:25:00 1997 Dawn Perchik <dawn@cygnus.com>
1021
1022 * itbl-parse.y: Fix indentation mistakes from indent program.
1023 * itbl-lex.l: Fix indentation mistakes from indent program.
1024 * itbl-ops.h: Add include for ansidecl.h.
1025 Add PARAMS around function arguments.
1026 Add declaration for itbl_have_entries.
1027 * itbl-ops.c: Add PARAMS around function arguments.
1028 * Makefile.in: Add itbl build rules.
1029 Add dependancies for itbl files to mips target.
1030 * as.c: Add itbl support.
1031 Add new option "--insttbl" for dynamically extending instruction set.
1032 * as.h: Declare insttbl_file_name;
1033 the name of file defining extensions to the basic instruction set
1034 * configure.in, configure: Add itbl-parse.o, itbl-lex.o, and
1035 itbl-ops.o to extra_objects for mips configuration.
1036 Add include file link from itbl-cpu.h to
1037 config/itbl-${target_cpu_type}.h.
1038 * config/tc-mips.c: Allow copz instructions.
1039 Add notes for future additions to the itbl support.
1040 Add debug macros.
1041 (macro): Call itbl_assemble to assemble itbl instructions.
1042 See if an unknown register is specified in an itbl entry.
1043
1044 Sat Feb 22 20:53:01 1997 Fred Fish <fnf@cygnus.com>
1045 * doc/internals.texi (CPU backend): Fix typo in md_section_align
1046 description.
1047 start-sanitize-tic80
1048 * config/tc-tic80.h (NEED_FX_R_TYPE): Define.
1049 * config/tc-tic80.c (find_opcode): Add code to support O_symbol
1050 operands.
1051 (build_insn): Grab a frag early so we can use the address in
1052 fixups. Take one's complement of BITNUM values before insertion
1053 in opcode. Add code to support O_symbol operands.
1054 (md_apply_fix): Replace unimplemented warning with implementation.
1055 (md_pcrel_from): Ditto.
1056 (tc_coff_fix2rtype): Ditto.
1057 end-sanitize-tic80
1058
1059 Fri Feb 21 14:34:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1060 start-sanitize-d30v
1061 * config/tc-d30v.c (parallel_ok): New function.
1062 * config/tc-d30v.h: Define TARGET_BYTES_BIG_ENDIAN.
1063 end-sanitize-d30v
1064 * config/tc-d10v.c (md_pcrel_from_section): Return 0 if
1065 relocation is in different section. Fixes PR11574.
1066
1067 Fri Feb 21 10:08:25 1997 Jim Wilson <wilson@cygnus.com>
1068
1069 * tc-mips.c (mips_ip): If configured for an embedded ELF system,
1070 don't set the section alignment to 2**4.
1071
1072 Fri Feb 21 11:55:03 1997 Ian Lance Taylor <ian@cygnus.com>
1073
1074 * config/tc-m68k.c (line_comment_chars): Add '*'.
1075
1076 * app.c (LEX_IS_TWOCHAR_COMMENT_2ND): Don't define.
1077 (do_scrub_begin): Don't set lex['*'].
1078 (do_scrub_chars): When handling LEX_IS_TWOCHAR_COMMENT_1ST, don't
1079 check for LEX_IS_TWOCHAR_COMMENT_2ND. Instead, just check for
1080 a literal '*'.
1081
1082 * configure.in: Set em=svr4 for m68k-*-sysv4*.
1083 * configure: Rebuild.
1084 * config/te-svr4.h: New file.
1085 * config/tc-m68k.c (m68k_comment_chars): Only include `#' if
1086 TE_SVR4 or TE_DELTA.
1087
1088 Thu Feb 20 22:24:39 1997 Jeffrey A Law (law@cygnus.com)
1089
1090 * config/tc-mn10200.c (md_convert_frag): Create a fixup for the
1091 short conditional branch around a long unconditional branch.
1092
1093 Thu Feb 20 13:56:00 1997 Ian Lance Taylor <ian@cygnus.com>
1094
1095 * config/obj-coff.c (obj_coff_ln [both versions]): Call
1096 new_logical_line.
1097
1098 * config/tc-arm.c (fix_new_arm): Use make_expr_symbol to handle a
1099 complex expression.
1100
1101 * symbols.c (resolve_symbol_value): If both left and right
1102 operands are undefined, warn about both of them.
1103
1104 Wed Feb 19 00:53:28 1997 Ian Lance Taylor <ian@cygnus.com>
1105
1106 Based on patches from Eric Youngdale <eric@andante.jic.com>:
1107 * config/obj-elf.c (elf_pseudo_table): Add "symver".
1108 (obj_elf_symver): New static function.
1109 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy the st_other
1110 field.
1111
1112 * write.c (relax_segment): Make type and printf format agree.
1113
1114 * read.c (get_line_sb): Don't end the line on a semicolon inside a
1115 string.
1116
1117 start-sanitize-d30v
1118 Tue Feb 18 18:42:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1119
1120 * config/tc-d30v.c, config/tc-d30v.h: New files.
1121
1122 * configure: Rebuilt.
1123
1124 * configure.in: Add case for d30v.
1125
1126 end-sanitize-d30v
1127 Sun Feb 16 17:47:29 1997 Fred Fish <fnf@toadfish.ninemoons.com>
1128
1129 * config/tc-alpha.h (md_operand): Define with a null expansion,
1130 like all the other targets.
1131 * doc/internals.texi (CPU backend): Add missing word in
1132 md_flush_pending_output description. Fix typo in md_convert_frag
1133 description.
1134 start-sanitize-tic80
1135 * config/tc-tic80: Minor comment additions/changes.
1136 end-sanitize-tic80
1137
1138 Fri Feb 14 18:09:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
1139
1140 * config/tc-m68k.c (LOCAL_LABEL): Macro redefined if TE_DELTA.
1141 (tc_canonicalize_symbol_name): Macro defined if TE_DELTA.
1142 * config/obj-coff.c (obj_coff_def): Use
1143 tc_canonicalize_symbol_name if defined.
1144 (obj_coff_tag, obj_coff_val): Likewise.
1145 * expr.c (operand): Reject '~' as operator if is_name_beginner.
1146
1147 Fri Feb 14 17:24:48 1997 Ian Lance Taylor <ian@cygnus.com>
1148
1149 Based on notes from Peter Eriksson <peter@ifm.liu.se>. The target
1150 does not actually work, though:
1151 * configure.in (i386-sequent-bsd*): New target.
1152 * configure: Rebuild.
1153 * config/tc-dynix.h: New file.
1154 * config/tc-i386.h: Define TARGET_FORMAT if TE_DYNIX.
1155
1156 * read.c (do_align): Add max parameter. Change all callers.
1157 Remove useless static variables.
1158 (s_align): New static function. Do common portion of
1159 s_align_bytes and s_align_ptwo.
1160 (s_align_bytes, s_align_ptwo): Just call s_align.
1161 * frags.c (frag_align): Add max parameter. Change all callers.
1162 (frag_align_pattern): Likewise.
1163 * frags.h (frag_align, frag_align_pattern): Update declarations.
1164 * write.c (relax_segment): Limit alignment change to fr_subtype.
1165 Fix some types to be addressT.
1166 * config/obj-coff.c (size_section): Likewise.
1167 * config/obj-ieee.c (size_section): Likewise.
1168 * config/tc-d10v.h (md_do_align): Add max parameter.
1169 * config/tc-i386.h (md_do_align): Likewise.
1170 * config/tc-m88k.h (md_do_align): Likewise.
1171 * config/tc-m88k.c (m88k_do_align): Likewise.
1172 * config/tc-sh.h (md_do_align): Likewise.
1173 * config/tc-sh.c (sh_do_align): Likewise.
1174 * as.h: Improve comments on rs_align and rs_align_code.
1175 * doc/as.texinfo: Document new alignment arguments.
1176 * doc/internals.texi (Frags): Document use of fr_subtype field for
1177 rs_align and rs_align_code.
1178
1179 Fri Feb 14 15:56:06 1997 Gavin Koch <gavin@cygnus.com>
1180
1181 * config/tc-mips.c: Changed opcode parsing.
1182
1183 Thu Feb 13 20:02:16 1997 Fred Fish <fnf@cygnus.com>
1184
1185 * config/{tc-alpha.h, tc-arc.h, tc-d10v.h, tc-generic.h, tc-i960.h,
1186 tc-mn10200.h, tc-mn10300.h, tc-sh.h, tc-vax.h, tc-w65.h}:
1187 Add default definition of zero for TARGET_BYTES_BIG_ENDIAN.
1188 * config/{tc-arm.h, tc-hppa.h, tc-i386.h, tc-mips.h, tc-ns32k.h,
1189 tc-ppc.h, tc-sparc.h}: Move definition of TARGET_BYTES_BIG_ENDIAN
1190 to a location consistent with the rest of the target include files.
1191 * config/tc-i386.c: Remove misleading comment.
1192 * doc/internals.texi (CPU backend): Add description of function
1193 md_undefined_symbol.
1194 start-sanitize-tic80
1195 * config/tc-tic80.c: Add code to insert predefined symbols into the
1196 symbol table so they can be parsed by the standard expression parser.
1197 Remove custom code that use to parse them.
1198 * config/tc-tic80.h: Move definition of TARGET_BYTES_BIG_ENDIAN
1199 to a location consistent with the rest of the target include files.
1200 end-sanitize-tic80
1201
1202 Thu Feb 13 21:44:18 1997 Klaus Kaempf <kkaempf@progis.de>
1203
1204 * as.h: GNU c provides unlink() function.
1205
1206 Unify section handling on openVMS/Alpha:
1207 * config/tc-alpha.c(s_alpha_link): Remove.
1208 (s_alpha_section): New function.
1209 Remove case-hacking of symbols
1210 Add .code_address pseudo-op.
1211 (BFD_RELOC_ALPHA_CODEADDR): New relocation.
1212 (s_alpha_code_address): New function.
1213 (alpha_ctors_section, alpha_dtors_section): New sections for C++
1214 static constructors/destructors.
1215 Add debug code for crash debugs, to be removed when traceback code
1216 is added to object code.
1217 (s_alpha_name): New function for .name pseudo-op.
1218 (alpha_print_token): New function to print token expressions with
1219 alpha specific extensions.
1220
1221 * makefile.vms: Allow compilation with current gcc snapshot.
1222
1223 Thu Feb 13 16:29:04 1997 Fred Fish <fnf@cygnus.com>
1224
1225 * doc/Makefile.in (TEXI2DVI): Set to just name of program.
1226 (DVIPS): Set to dvips.
1227 (ps, as.ps, gasp.ps): New targets.
1228 (internals.info, gasp.dvi, internals.dvi): Set both TEXINPUTS
1229 and MAKEINFO env variables.
1230 (internals.ps): Use DVIPS macro.
1231 (clean): Remove core and backup files.
1232 (distclean): Remove temporary files from building internals.
1233 (clean-dvi): Ditto.
1234 * doc/internals.texi (Frags): Fix typo.
1235 (GAS processing): Ditto.
1236 (CPU backend): Ditto.
1237 * ecoff.c (init_file): Use TARGET_BYTES_BIG_ENDIAN value directly.
1238 * mpw-config.in: Define TARGET_BYTES_BIG_ENDIAN as 1.
1239 * read.c: Remove ugly hack that dealt with config files not
1240 correctly defining TARGET_BYTES_BIG_ENDIAN.
1241 (target_big_endian): Use TARGET_BYTES_BIG_ENDIAN directly.
1242 * config/arm-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
1243 * config/arm-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
1244 * config/mips-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
1245 * config/mips-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
1246 * config/ppc-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
1247 * config/ppc-sol.mt: Replace TARGET_BYTES_LITTLE_ENDIAN
1248 with TARGET_BYTES_BIG_ENDIAN defined to 0.
1249 * config/tc-arm.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
1250 and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just
1251 whether it is defined or not.
1252 * config/tc-mips.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN.
1253 * config/tc-ppc.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
1254 and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just
1255 whether it is defined or not.
1256 start-sanitize-tic80
1257 * config/tic80.h (TARGET_FORMAT): Define to coff-tic80.
1258 (TARGET_BYTES_BIG_ENDIAN): Define to 0.
1259 end-sanitize-tic80
1260
1261 Thu Feb 13 14:40:16 1997 Doug Evans <dje@canuck.cygnus.com>
1262
1263 * write.c (write_relocs): Correct text in as_fatal error message,
1264 bfd_perform_relocation -> bfd_install_relocation.
1265
1266 Thu Feb 13 14:48:03 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
1267
1268 * config/tc-m68k.c (LEX_TILDE): Define if TE_DELTA.
1269 * read.c (LEX_TILDE): Define if not defined.
1270 (lex_type): Use LEX_TILDE.
1271 * expr.c (get_symbol_end): Check first char with is_name_beginner,
1272 not is_part_of_name.
1273
1274 Thu Feb 13 11:40:58 1997 Ian Lance Taylor <ian@cygnus.com>
1275
1276 * config/tc-sparc.c (md_show_usage): Add missing backslash at end
1277 of continued line.
1278
1279 * config/tc-mips.c (mips16_extended_frag): Correct base address
1280 for an extended PC relative instruction.
1281 (md_convert_frag): Likewise.
1282
1283 * config/tc-mips.c (prev_nop_frag): New static variable.
1284 (prev_nop_frag_holds): New static variable.
1285 (prev_nop_frag_required): New static variable.
1286 (prev_nop_frag_since): New static variable.
1287 (append_insn): If we aren't reordering, and prev_nop_frag is not
1288 NULL, and we don't need any nops, then decrease the size of
1289 prev_nop_frag. Don't insert nops because of instructions in
1290 noreorder sections. Remember whether the previous instructions
1291 where in noreorder sections even when not reordering.
1292 (mips_no_prev_insn): Add preserver parameter. Change all
1293 callers. Refer prev_nop_frag variables when appropriate.
1294 (mips_emit_delays): Set up prev_nop_frag.
1295 (s_mipsset): Clear prev_nop_frag if reordering.
1296
1297 Wed Feb 12 14:36:29 1997 Ian Lance Taylor <ian@cygnus.com>
1298
1299 * config/tc-mips.c (append_insn): Remove useless code which
1300 handled swapping a mips16 jump with a mips16 instruction with a
1301 reloc.
1302
1303 * config/tc-mips.c (md_parse_option): When debugging, set
1304 mips_optimize to 1, not 0.
1305
1306 * config/tc-mips.c (mips16_ip): Handle an extend operand.
1307
1308 * config/tc-mips.c (my_getExpression): In mips16 mode, if it looks
1309 like the expression was based on `.', adjust the value of the
1310 symbol.
1311
1312 * config/tc-mips.c (append_insn): Warn about an attempt to put an
1313 extended instruction in a delay slot when not reordering.
1314 (md_convert_frag): Warn if an extended instruction appears in a
1315 delay slot.
1316
1317 * config/tc-mips.c (mips_pseudo_table): Add "insn".
1318 (s_insn): New static function.
1319 * doc/c-mips.texi: Document .insn.
1320
1321 * config/tc-mips.c (md_begin): Add the general registers to the
1322 symbol table.
1323 (mips16_ip): First parse the expression, and then see whether it
1324 came up with a register, rather than trying to first see whether
1325 we are looking at a register.
1326
1327 start-sanitize-tic80
1328 Tue Feb 11 15:13:39 1997 Fred Fish <fnf@cygnus.com>
1329
1330 * config/tc-tic80.c: Numerous changes and additions to flesh
1331 out functions that were previously just stubs, and fix some
1332 problems found using the new TIc80 testsuite cases.
1333
1334 end-sanitize-tic80
1335 Tue Feb 11 15:52:22 1997 Ian Lance Taylor <ian@cygnus.com>
1336
1337 * config/tc-mips.c (mips16_ip): Handle %gprel modifier.
1338 (md_apply_fix): Handle BFD_RELOC_MIPS16_GPREL.
1339
1340 * config/tc-mips.c (append_insn): Output jump instruction as a
1341 pair of 2 byte instructions, rather than as a single 4 byte
1342 instruction.
1343
1344 start-sanitize-r5900
1345 * config/tc-mips.c (md_begin): Correct test of mips_5900.
1346 (mips_ip): Don't check INSN_ISA for a macro.
1347
1348 end-sanitize-r5900
1349 start-sanitize-r5900
1350 Fri Feb 7 11:11:06 1997 Gavin Koch <gavin@cygnus.com>
1351
1352 * config/tc-mips.c: added r5900.
1353
1354 end-sanitize-r5900
1355 Mon Feb 10 22:06:00 1997 Dawn Perchik (dawn@cygnus.com)
1356
1357 * itbl-ops.c, itbl-lex.l, itbl-parse.y, itbl-ops.h,
1358 config/itbl-mips.h: Add copyright message and fix indentation.
1359
1360 Mon Feb 10 18:09:00 1997 Dawn Perchik (dawn@cygnus.com)
1361
1362 * itbl-ops.c: New file. Add support for dynamically read
1363 instruction registers, opcodes and formats. Build internal table
1364 for new instructions and provide callbacks for assembler and
1365 disassembler.
1366 * itbl-lex.l, itbl-parse.y: Lex and yacc parsers for instruction
1367 spec table.
1368 * itbl-ops.h: New file. Header file for itbl support.
1369 * config/itbl-mips.h: New file. Mips specific definitions for
1370 itbl support.
1371
1372 Fri Feb 7 09:52:34 1997 Jeffrey A Law (law@cygnus.com)
1373
1374 * config/tc-mn10200.c (md_assemble): If a constant operand won't
1375 fit into the constant field of a relaxable operand, then it does
1376 not match.
1377
1378 Thu Feb 6 20:08:12 1997 Jeffrey A Law (law@cygnus.com)
1379
1380 * config/tc-mn10200.c (md_estimate_size_before_relax): Treat
1381 a jsr target in a different section just like a jsr to
1382 an undefined target.
1383
1384 Thu Feb 6 16:52:57 1997 Ian Lance Taylor <ian@cygnus.com>
1385
1386 * config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations
1387 against any mips16 symbols, not just externally visible ones.
1388 (md_apply_fix): Corresponding change.
1389
1390 Wed Feb 5 11:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
1391
1392 * config/tc-mips.c (mips16_ip): Accept floating point registers in
1393 the operand of the exit instruction.
1394
1395 Tue Feb 4 14:12:39 1997 Ian Lance Taylor <ian@cygnus.com>
1396
1397 * symbols.c (resolve_symbol_value): If we leave an equated symbol
1398 as O_symbol, copy over the segment.
1399
1400 Mon Feb 3 12:35:54 1997 Ian Lance Taylor <ian@cygnus.com>
1401
1402 * config/tc-mips.c (md_apply_fix): If we aren't adjusting this
1403 fixup to be against the section symbol, adjust the value
1404 accordingly.
1405
1406 * symbols.c (resolve_symbol_value): Don't change X_add_number for
1407 an equated symbol.
1408 * write.c (write_relocs): Avoid looping on equated symbols.
1409 Adjust fx_offset by X_add_number for each symbol.
1410 * config/obj-coff.c (do_relocs_for): Avoid looping on equated
1411 symbols.
1412 (fixup_segment): Add a loop to track down equated symbols and
1413 adjust fx_offset appropriately.
1414
1415 Fri Jan 31 15:21:02 1997 Jeffrey A Law (law@cygnus.com)
1416
1417 * config/tc-mn10200.c (md_relax_table): Add entries to allow
1418 jmp -> bra relaxing.
1419 (md_convert_frag): Handle jmp->bra relaxing.
1420 (md_assemble): Handle jmp->bra relaxing.
1421 (md_estimate_size_before_relax): Likewise.
1422
1423 Fri Jan 31 13:15:05 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
1424
1425 * config/tc-i386.c (i386_align_code): Add comments explaining the
1426 nop instructions.
1427
1428 Fri Jan 31 10:46:14 1997 Ian Lance Taylor <ian@cygnus.com>
1429
1430 * config/tc-sparc.c (enforce_aligned_data): New static variable.
1431 (sparc_cons_align): Don't do anything unless enforce_aligned_data
1432 is set.
1433 (md_longopts): Add "enforce-aligned-data".
1434 (md_show_usage): Mention --enforce-aligned-data.
1435 * doc/c-sparc.texi (Sparc-Aligned-Data): New node; document
1436 enforce-aligned-data.
1437
1438 * config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
1439 "word", and "short".
1440 (ppc_xcoff_cons): New static function.
1441
1442 * write.c (relax_segment): Give an error if a .space symbol is
1443 common or undefined.
1444
1445 * read.c (read_a_source_file): Don't handle mri_pending_align if
1446 the handler is s_globl or s_ignore.
1447
1448 Thu Jan 30 11:46:59 1997 Fred Fish <fnf@cygnus.com>
1449
1450 * config/tc-d10v.c (find_opcode): Remove unused variable "numops".
1451 start-sanitize-tic80
1452 * config/tc-tic80.c: Many additions to previous placeholder file.
1453 * config/tc-tic80.h: Ditto.
1454 end-sanitize-tic80
1455
1456 Thu Jan 30 12:28:18 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
1457
1458 * config/tc-i386.c (i386_align_code): Improve the nop patterns.
1459
1460 Thu Jan 30 12:08:40 1997 Ian Lance Taylor <ian@cygnus.com>
1461
1462 * config/tc-mips.c (mips_fix_adjustable): New function.
1463 * config/tc-mips.h (tc_fix_adjustable): Call mips_fix_adjustable.
1464 (mips_fix_adjustable): Declare.
1465
1466 Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
1467 * read.c (read_a_source_file): After doing an mri_pending_align,
1468 adjust the line_label if there is one.
1469 (s_space): Set mri_pending_align if an odd number of bytes were
1470 output.
1471
1472 Wed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1473
1474 * config/tc-d10v.h (md_do_align): Add this hook to call
1475 d10v_cleanup() when a ".align" is detected. Fixes PR11487.
1476
1477 * config/tc-d10v.c (find_opcode): Correctly calculate
1478 branch displacement when .aligns are present.
1479
1480 Wed Jan 29 09:42:11 1997 Jeffrey A Law (law@cygnus.com)
1481
1482 * config/tc-mn10200.c (md_relax_table): Define.
1483 (md_convert_frag): Implement.
1484 (md_assemble): Handle relaxable operands/instructions correctly.
1485 (md_estimate_size_before_relax): Implement.
1486 * config/tc-mn10200.h (TC_GENERIC_RELAX_TABLE): Define.
1487
1488 Tue Jan 28 15:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
1489
1490 * config/tc-mips.c (append_insn): Give an error for jumps to a
1491 misaligned address.
1492 (md_apply_fix): Make a branch to an odd address an error rather
1493 than a warning.
1494
1495 * config/tc-mips.c (md_convert_frag): If the user explicitly
1496 requested an extended opcode, pass warn as true to mips16_immed.
1497
1498 * config/tc-mips.c (mips16_ip): Handle a missing expression like
1499 an explicit 0, so that explicitly extended instructions work
1500 correctly.
1501
1502 Mon Jan 27 17:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
1503
1504 * ecoff.c (ecoff_build_symbols): Don't generate a local ECOFF
1505 symbol for a common symbol.
1506
1507 Wed Jan 22 10:39:39 1997 Doug Evans <dje@canuck.cygnus.com>
1508
1509 Patch presumed to have been checked in awhile ago but wasn't.
1510 Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
1511 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
1512 (relax_segment, case rs_org): Move code inside braces. Move locals
1513 target,after inside too.
1514 (relax_segment, case rs_machine_dependent): Guts moved to ...
1515 (relax_frag): New function.
1516 Call md_prepare_relax_scan if defined.
1517
1518 Mon Jan 20 10:56:47 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1519
1520 * config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
1521 'p' operand specifier.
1522
1523 Mon Jan 20 10:39:36 1997 J.T. Conklin <jtc@cygnus.com>
1524
1525 * config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
1526 m68k family cpus which support long branch addressing modes.
1527 (m68k_ip, md_convert_frag_1, md_estimate_size_before_relax,
1528 md_create_long_jump): Use it.
1529
1530 Mon Jan 20 12:42:06 1997 Ian Lance Taylor <ian@cygnus.com>
1531
1532 * config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
1533 the .reginfo or .MIPS.options section if configured for an
1534 embedded target.
1535
1536 * config/tc-mips.c (md_begin): Don't set interlocks for
1537 mips_4650.
1538
1539 Wed Jan 15 13:51:50 1997 Ian Lance Taylor <ian@cygnus.com>
1540
1541 * read.c (read_a_source_file): Make sure the symbol ends with
1542 whitespace before checking whether the next character is '='.
1543
1544 Tue Jan 14 15:07:27 1997 Robert Lipe <robertl@dgii.com>
1545
1546 * config/tc-i386.c (sco_id): Moved from here...
1547 * config/obj-elf.c (sco_id): ...to here. Adding the identifier
1548 really is an SCO ELF specific thing, not just a SCO x86 specific
1549 thing.
1550
1551 start-sanitize-tic80
1552 Mon Jan 13 22:43:01 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1553
1554 * configure.in (tic80-*-*): Don't require 'coff'.
1555 * configure: Regenerate.
1556
1557 end-sanitize-tic80
1558 Thu Jan 9 09:08:43 1997 Ian Lance Taylor <ian@cygnus.com>
1559
1560 * read.c (emit_expr): Check for overflow of a negative value
1561 correctly.
1562 * write.c (fixup_segment): Likewise.
1563 * config/obj-coff.c (fixup_segment): Likewise.
1564
1565 * config/tc-m68k.c (struct label_line): Define.
1566 (labels, current_label): New static variables.
1567 (md_assemble): Mark current_label as text, and clear it.
1568 (m68k_frob_label): New function.
1569 (m68k_flush_pending_output): New function.
1570 (m68k_frob_symbol): New function.
1571 * config/tc-m68k.h (tc_frob_label): Define.
1572 (md_flush_pending_output): Define.
1573 (tc_frob_symbol): Don't warn, just call m68k_frob_symbol.
1574 (tc_frob_coff_symbol): Likewise.
1575
1576 * read.c (read_a_source_file): When defining a macro in MRI mode,
1577 don't add the symbol to the symbol table.
1578
1579 Tue Jan 7 11:21:42 1997 Jeffrey A Law (law@cygnus.com)
1580
1581 * config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
1582 here since fixup_segment doesn't (linkrelax is set).
1583 * config/tc-mn10200.c (tc_gen_reloc): Likewise.
1584
1585 Mon Jan 6 15:19:32 1997 Jeffrey A Law (law@cygnus.com)
1586
1587 * config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
1588 relocs.
1589
1590 Fri Jan 3 16:47:08 1997 Jeffrey A Law (law@cygnus.com)
1591
1592 * config/tc-hppa.c (struct hppa_fix_struct): Tweak fx_r_field's type
1593 to avoid warnings with the native HP compiler.
1594 (fix_new_hppa): Similarly for the r_type argument.
1595 (pa_build_unwind_subspace, hppa_elf_mark_end_of_function): Enclose
1596 in an #if OBJ_ELF to keep gcc -Wall quiet.
1597 (md_apply_fix): Always initialize "result".
1598
1599 * config/tc-mn10200.c (md_assemble): Generate relocations.
1600
1601 Fri Jan 3 18:17:23 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1602
1603 * config/tc-m68k.c (s_even): Adjust the alignment of the current
1604 section.
1605
1606 Fri Jan 3 17:10:33 1997 Richard Henderson <rth@tamu.edu>
1607
1608 * config/obj-elf.c (elf_file_symbol): When using ECOFF debugging,
1609 pass on the new file hook.
1610
1611 * config/tc-alpha.c (alpha_fix_adjustable): Not quite the same as
1612 !alpha_force_relocation, as local LITERALs can be adjusted to be
1613 relative to the section.
1614
1615 Fri Jan 3 12:09:24 1997 Ian Lance Taylor <ian@cygnus.com>
1616
1617 * config/obj-coff.c (yank_symbols): If tc_frob_coff_symbol is
1618 defined, call it.
1619 * config/tc-m68k.h (tc_frob_symbol): Check whether text label is
1620 aligned to odd boundary.
1621 (tc_frob_coff_symbol): Define.
1622
1623 * doc/as.texinfo (Set): Change parenthesized @xref to @pxref.
1624
1625 * macro.c (macro_expand_body): In MRI mode, just copy a single &.
1626
1627 * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
1628 PCINDEX frag. From Ronald F. Guilmette <rfg@monkeys.com>.
1629
1630 * config/tc-m68k.c (m68k_ip): Accept 'B' as a size for an
1631 immediate value.
1632 (md_assemble): If the size is 'B', set fx_signed.
1633 (md_apply_fix_2): Use fx_signed when checking for overflow.
1634
1635 * write.h (struct fix): Add fx_signed field.
1636 * write.c (fix_new_internal): Initialize fx_no_overflow and
1637 fx_signed fields.
1638 (fixup_segment): Use fx_signed when checking for overflow.
1639 * config/obj-coff.c (fixup_segment): Check fx_no_overflow and
1640 fx_signed when checking for overflow.
1641
1642 Thu Jan 2 13:37:29 1997 Ian Lance Taylor <ian@cygnus.com>
1643
1644 * NOTES, NOTES.config: Removed. These are rarely, if ever,
1645 updated, and all the useful information is in doc/internals.texi.
1646
1647 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
1648 * read.c (read_a_source_file): Check for conditional operators
1649 before doing an MRI pending alignment.
1650 * config/tc-m68k.h (m68k_conditional_pseudoop): Declare.
1651 (tc_conditional_pseudop): Define.
1652 * config/tc-m68k.c (m68k_conditional_pseudop): New function.
1653 * doc/internals.texi (CPU backend): Describe
1654 tc_conditional_pseudoop.
1655
1656 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
1657 * config/tc-m68k.c (m68k_rel32_from_cmdline): New static
1658 variable.
1659 (md_begin): Check m68k_rel32_from_cmdline before setting
1660 m68k_rel32.
1661 (m68k_mri_mode_change): Likewise.
1662 (md_longopts): Add --disp-size-default-16 and
1663 --disp-size-default-32.
1664 (md_parse_option): Handle new options.
1665 (md_show_usage): Mention new options.
1666 * doc/c-m68k.texi (M68K-Opts): Document new options.
1667
1668 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
1669 * config/tc-m68k.c (m68k_index_width_default): New static
1670 variable.
1671 (m68k_ip): Use m68k_index_width_default to set the size of a base
1672 register whose size was not given.
1673 (md_longopts): Add --base-size-default-16 and
1674 --base-size-default-32.
1675 (md_parse_option): Handle new options.
1676 (md_show_usage): Mention new options.
1677 * doc/c-m68k.texi (M68K-Opts): Document new options.
1678
1679 * doc/c-mips.texi: Mention ISA level 4, and the -mips16 option.
1680
1681 * configure.in: Recognize mips-*-linux* target.
1682 * configure: Rebuild.
1683
1684 * config/tc-mips.c (load_register): Rewrite 64 bit handling to
1685 work if valueT is only 32 bits.
1686
1687 * config/tc-mips.c: Throughout, check target_big_endian rather
1688 than byte_order.
1689 (byte_order): Remove.
1690 (mips_init_after_args): Remove.
1691 * config/tc-mips.h (LITTLE_ENDIAN, BIG_ENDIAN): Don't define.
1692 (mips_init_after_args): Don't declare.
1693 (tc_init_after_args): Don't define.
1694
1695 * config/tc-mips.h (tc_frob_after_relocs): Define if
1696 OBJ_MAYBE_ELF.
1697 (mips_elf_final_processing): Likewise.
1698 (ELF_TC_SPECIAL_SECTIONS): Likewise.
1699
1700 start-sanitize-v850
1701 Tue Dec 31 15:12:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1702
1703 * config/tc-v850.c (md_assemble): If this is sst.{h,w} or
1704 sld.{h,w} and the operand is relocatable, adjust the adend by
1705 shifting it right one bit.
1706
1707 end-sanitize-v850
1708 Tue Dec 31 12:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
1709
1710 * read.c (read_a_source_file): Check mri_pending_align after
1711 checking for a macro. From Ronald F. Guilmette
1712 <rfg@monkeys.com>.
1713
1714 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
1715
1716 * config/tc-sparc.c (md_apply_fix3): Rename from md_apply_fix, and
1717 add segment argument. If OBJ_ELF, treat a relocation against a
1718 symbol in a linkonce section like a relocation against an external
1719 symbol.
1720 * config/tc-sparc.h (MD_APPLY_FIX3): Define.
1721
1722 Mon Dec 30 11:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
1723
1724 * config/tc-mips.c (mips16_macro): Add case for M_ABS.
1725
1726 Fri Dec 27 22:51:51 1996 Fred Fish <fnf@cygnus.com>
1727
1728 * NOTES.config (Implementation): as.h #define's "GAS" not "gas",
1729 includes config.h instead of host.h, tc.h instead of tp.h, and
1730 targ-env.h instead of target-environment.h.
1731 Also, obj-format.h includes targ-cpu.h instead of
1732 target-processor.h.
1733 start-sanitize-tic80
1734 * configure.in (case ${generic_target}): Add tic80-*-coff entry.
1735 * configure: Rebuild with autoconf.
1736 * config/obj-coff.h (coff/tic80.h): Include if TC_TIC80 defined.
1737 (TARGET_FORMAT): Define to "coff-tic80".
1738 * config/tc-tic80.c: New file for TIc80 support.
1739 * config/tc-tic80.h: New file for TIc80 support.
1740 end-sanitize-tic80
1741
1742 Fri Dec 27 11:42:29 1996 Ian Lance Taylor <ian@cygnus.com>
1743
1744 * doc/as.texinfo (M): Mention explicitly that -M changes macro
1745 handling.
1746
1747 Thu Dec 19 12:06:08 1996 Ian Lance Taylor <ian@cygnus.com>
1748
1749 * write.c (adjust_reloc_syms): If the fixup symbol has been
1750 equated to an undefined symbol, convert the fixup to being against
1751 the target symbol. Remove obsolete code handling a special case
1752 for i386 PIC.
1753
1754 Wed Dec 18 22:54:39 1996 Stan Shebs <shebs@andros.cygnus.com>
1755
1756 * mpw-make.sed: Use NewFolderRecursive for installation.
1757
1758 Wed Dec 18 16:00:42 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1759
1760 * config/tc-d10v.c (do_assemble): Correct previous bug fix.
1761
1762 Wed Dec 18 15:27:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1763
1764 * config/tc-d10v.c (md_assemble): Fix bug which caused
1765 second instruction in a line to be case sensitize. PR11312
1766
1767 Wed Dec 18 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
1768
1769 * config/tc-mn10200.c (mn10200_insert_operand): Don't
1770 range check operands with MN10200_OPERAND_NOCHECK set.
1771 (check_operand): Likewise.
1772
1773 Tue Dec 17 10:59:32 1996 Ian Lance Taylor <ian@cygnus.com>
1774
1775 * config/tc-mips.c: Undo part of last Friday's alignment changes.
1776 (md_begin): Always align the text section to a four byte
1777 boundary.
1778 (append_insn): Remove call to record_align.
1779
1780 * config/tc-mips.c (insn_label): Remove.
1781 (struct insn_label_list): Define.
1782 (insn_labels, free_insn_labels): New static variables.
1783 (mips_clear_insn_labels): New static function.
1784 (append_insn): Mark all mips16 text labels, and make them odd.
1785 Handle all labels after emitting a nop, not just one. Call
1786 mips_clear_insn_labels rather than just clearing insn_label.
1787 (mips_emit_delays): Add insns parameter, and use it to decide
1788 whether to mark mips16 labels. Handle all labels, not just one.
1789 Force mips16 labels to be odd. Change all callers.
1790 (mips16_immed): Don't check for an odd branch target.
1791 (md_apply_fix): Don't check mips16 mode for a branch reloc.
1792 (mips16_extended_frag): Ignore the low bit in a branch target.
1793 (md_convert_frag): Likewise.
1794 (mips_no_prev_insn): Call mips_clear_insn_labels rather than just
1795 clearing insn_label.
1796 (mips_align, mips_flush_pending_output, s_cons): Likewise.
1797 (s_float_cons, s_gpword): Likewise.
1798 (s_align): Use insn_labels rather than insn_label.
1799 (s_cons, s_float_cons, s_gpword): Likewise.
1800 (mips_frob_file_after_relocs): New function.
1801 (mips_define_label): Rewrite to add to insn_labels list.
1802 * config/tc-mips.h (tc_frob_file_after_relocs): Define.
1803 * ecoff.c (ecoff_build_symbols): If the size of a function comes
1804 out odd, increment it.
1805
1806 * config/tc-mips.c (append_insn): Only update prev_insn when not
1807 reordering if place is NULL.
1808
1809 * config/tc-mips.c (mips16_ip): Check for a missing expression
1810 when using the register indirect addressing mode.
1811
1812 Mon Dec 16 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
1813
1814 * config/tc-mn10200.c (mn10200_insert_operand): Don't
1815 check 24bit operands for overflow.
1816 (check_operand): Likewise.
1817
1818 Mon Dec 16 11:50:40 1996 Ian Lance Taylor <ian@cygnus.com>
1819
1820 * doc/as.texinfo (Section): Document how to use the .section
1821 pseudo-op for COFF and ELF.
1822
1823 Sun Dec 15 15:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
1824
1825 * write.c (adjust_reloc_syms): Fix linkonce check for ELF.
1826
1827 Sat Dec 14 22:37:27 1996 Ian Lance Taylor <ian@cygnus.com>
1828
1829 * config/tc-mips.c (prev_insn_reloc_type): New static variable.
1830 (RELAX_MIPS16_ENCODE): Add dslot and jal_dslot arguments, and
1831 store them. Adjust other RELAX_MIPS16 macros.
1832 (RELAX_MIPS16_DSLOT): Define.
1833 (RELAX_MIPS16_JAL_DSLOT): Define.
1834 (append_insn): Pass new arguments to RELAX_MIPS16_ENCODE. Correct
1835 handling of whether previous instruction has a fixup. Set
1836 prev_insn_reloc_type.
1837 (mips_no_prev_insn): Clear prev_insn_reloc_type.
1838 (mips16_extended_frag): Use the right base address for a PC
1839 relative add or load.
1840 (md_convert_frag): Likewise. If a PC relative add or load is
1841 used, record the alignment for the section.
1842
1843 Fri Dec 13 13:00:33 1996 Ian Lance Taylor <ian@cygnus.com>
1844
1845 * write.c (adjust_reloc_syms): Don't reduce a reloc against a
1846 linkonce section into a reloc against the section symbol.
1847
1848 * config/tc-mips.c (mips16_macro): Remove nop instructions after
1849 branch instructions.
1850
1851 * config/tc-mips.c (md_begin): If configured for an embedded ELF
1852 system, don't set the section alignment to 2**4.
1853 (s_change_sec): Likewise.
1854 (append_insn): Call record_alignment for the section.
1855 (md_section_align): Don't align the section size for an embedded
1856 ELF system.
1857
1858 Thu Dec 12 16:40:47 1996 Ian Lance Taylor <ian@cygnus.com>
1859
1860 * write.c (adjust_reloc_syms): Make sure that symbols are
1861 resolved; expression symbols may have been skipped.
1862 * config/obj-coff.c (fixup_segment): Likewise.
1863
1864 Thu Dec 12 15:18:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1865
1866 * config/tc-ppc.c (ppc_elf_suffix): Move @plt to
1867 BFD_RELOC_24_PLT_PCREL relocation.
1868 (md_apply_fix3): Support BFD_RELOC_24_PLT_PCREL.
1869
1870 Tue Dec 10 13:51:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1871
1872 * config/tc-d10v.c (write_2_short): Remove code that called
1873 parallel_ok() when the programmer specified parallel instructions.
1874
1875 Tue Dec 10 12:23:19 1996 Jeffrey A Law (law@cygnus.com)
1876
1877 * config/tc-mn10300.c (md_assemble): Update to handle endianness
1878 issues correctly.
1879
1880 * config/tc-mn10200.c (md_assemble): Opcode 0x0 is valid!
1881 * config/tc-mn10300.c (md_assemble): Likewise.
1882
1883 Tue Dec 10 11:37:14 1996 Ian Lance Taylor <ian@cygnus.com>
1884
1885 * config/tc-mips.c (append_insn): Make sure there is enough room
1886 in a frag after a mips16 instruction to switch it with a jump
1887 instruction.
1888
1889 * config/tc-mips.c (mips16_extended_frag): Give an error for an
1890 attempt to use a non absolute symbol in an extending frag.
1891
1892 Mon Dec 9 16:48:20 1996 Jeffrey A Law (law@cygnus.com)
1893
1894 * config/tc-mn10200.c: Flesh out assembler support for MN10200.
1895 * config/tc-mn10200.h: Likewise.
1896
1897 Mon Dec 9 17:09:42 1996 Ian Lance Taylor <ian@cygnus.com>
1898
1899 * app.c (do_scrub_chars): At the end of a C comment, pass space to
1900 UNGET rather than PUT. Set old_state before setting state to -2.
1901
1902 * config/tc-mips.c (mips16_extended_frag): Avoid an infinite loop
1903 when extending because the value is exactly maxtiny + 1.
1904
1905 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add small and ext
1906 arguments, and store them. Adjust other RELAX_MIPS16 macros.
1907 (RELAX_MIPS16_USER_SMALL): Define.
1908 (RELAX_MIPS16_USER_EXT): Define.
1909 (mips16_small, mips16_ext): New static variables.
1910 (append_insn): Pass mips16_small and mips16_ext to
1911 RELAX_MIPS16_ENCODE.
1912 (mips16_ip): Set mips16_small and mips16_ext.
1913 (mips16_immed): Don't check mips16_autoextend.
1914 (mips16_extended_frag): Check USER_SMALL and USER_EXT.
1915
1916 * write.c (write_relocs): Print an error for an out of range
1917 fixup, rather than calling abort.
1918
1919 * as.c (main): Unlink the output file if there are errors while
1920 generating the fixups.
1921
1922 Fri Dec 6 18:48:13 1996 Ian Lance Taylor <ian@cygnus.com>
1923
1924 * config/tc-mips.c (mips16_extended_frag): Don't call
1925 S_GET_VALUE.
1926 (md_convert_frag): Call resolve_symbol_value before calling
1927 S_GET_VALUE, and don't add in the frag address.
1928
1929 * config/tc-mips.c (mips16_immed): Add file and line parameters,
1930 and use them when reporting errors. Change all callers.
1931
1932 Fri Dec 6 15:36:32 1996 Jeffrey A Law (law@cygnus.com)
1933
1934 * config/tc-mn10300.c: Fix various gcc -Wall warnings.
1935 Remove '$' prefixing for registers.
1936
1937 Fri Dec 6 00:55:48 1996 Martin <hunt@cygnus.com>
1938
1939 * config/tc-d10v.c (md_assemble): Check to see if prev_seg
1940 is initialized before using it.
1941 (d10v_cleanup): No longer uses its argument, so make it void.
1942
1943 * config/tc-d10v.h (d10v_cleanup): Change prototype.
1944
1945 Thu Dec 5 11:03:31 1996 Ian Lance Taylor <ian@cygnus.com>
1946
1947 * write.c (fixup_segment): Don't discard the symbol for a PC
1948 relative fixup to an absolute symbol.
1949
1950 Wed Dec 4 15:42:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1951
1952 * config/tc-d10v.c (md_assemble, d10v_cleanup): Fix bug
1953 with multiple sections.
1954
1955 Wed Dec 4 13:00:07 1996 Ian Lance Taylor <ian@cygnus.com>
1956
1957 * config/tc-mips.c (md_longopts): Rename mips-16 to mips16, and
1958 no-mips-16 to no-mips16.
1959 (s_mipsset): Accept .set mips16 and .set nomips16.
1960
1961 Wed Dec 4 10:35:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1962
1963 * config/tc-ppc.c (ppc_elf_suffix): Take expressionS pointer
1964 argument, and check for +/- constant following the suffix, folding
1965 it into the expression.
1966 (ppc_elf_cons): Change ppc_elf_suffix calls.
1967 (md_assemble): Ditto.
1968 (shlib): Replace boolean mrelocatable with enumeration shlib.
1969 (md_parse_option): Discriminate between PIC style shared libraries
1970 and -mrelocatable.
1971 (ppc_elf_validate_fix): Don't report warnings for PIC style shared
1972 libraries.
1973
1974 Tue Dec 3 23:18:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1975
1976 * config/tc-ppc.h ({tc,ppc}_comment_chars): Define, so that we can
1977 change the comment characters.
1978
1979 * config/tc-ppc.c (comment_chars): Delete in favor of
1980 tc_comment_chars.
1981 (ppc_{eabi,solaris}_comment_chars): Eabi and Solaris versions of
1982 comment chars.
1983 (ppc_comment_chars): Select appropriate comment chars by default.
1984 (msolaris): New flag for -m{,no-}solaris.
1985 (md_parse_option): Recognize -K pic. Add support for
1986 -m{,no-}solaris.
1987 (md_show_usage): Update.
1988 (md_begin): Do not set ELF flags if Solaris.
1989 (ppc_elf_suffix): @local sets R_PPC_LOCAL24PC relocation.
1990 (md_apply_fix3): Add support for R_PPC_LOCAL24PC.
1991
1992 Mon Dec 2 13:48:57 1996 Ian Lance Taylor <ian@cygnus.com>
1993
1994 * as.c (main): Correct handling of flag_always_generate_output.
1995
1996 Sun Dec 1 21:46:05 1996 Jeffrey A Law (law@cygnus.com)
1997
1998 * config/tc-mn10300.c (tc_gen_reloc): Get the addend from
1999 fx_offset, not fx_addnumber.
2000
2001 * config/tc-mn10300.h (tc_fix_adjustable): Don't do any
2002 reloc adjustments.
2003
2004 Sat Nov 30 17:34:48 1996 Eliot Dresselhaus <eliot@wally.edc.com>
2005
2006 * config/tc-i386.c: Correct misspelling: balenced to balanced.
2007
2008 Wed Nov 27 13:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
2009
2010 * config/tc-mips.c (md_section_align): Check for an alignment of
2011 4, not an alignment of 16. Corrects August 7 patch.
2012
2013 Tue Nov 26 10:33:16 1996 Ian Lance Taylor <ian@cygnus.com>
2014
2015 * configure, conf.in: Rebuild with autoconf 2.12.
2016
2017 * config/tc-ppc.c (ppc_elf_lcomm): Don't give an error if no
2018 alignment is specified.
2019
2020 Add support for mips16 (16 bit MIPS implementation):
2021 * config/tc-mips.c: Extensive additions for mips16 support, not
2022 listed here.
2023 (RELAX_OLD, RELAX_NEW): Use only 7 bits each.
2024 (insn_uses_reg): Change last parameter to an enum.
2025 * config/tc-mips.h (LOCAL_LABELS_DOLLAR): Define as 0.
2026 (md_relax_frag): Define as mips_relax_frag.
2027 (mips_relax_frag): Declare.
2028 (struct mips_cl_insn): Add use_extend and extend fields.
2029 (tc_fix_adjustable): Define.
2030 * config/obj-elf.h (S_GET_OTHER): Define.
2031 (S_SET_OTHER): Define.
2032
2033 Mon Nov 25 18:02:29 1996 J.T. Conklin <jtc@beauty.cygnus.com>
2034
2035 * config/tc-m68k.c (m68k_ip): Implement cases for new <, >, m, n,
2036 o and p operand specifiers.
2037
2038 Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
2039
2040 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
2041 (relax_segment, case rs_org): Move code inside braces. Move locals
2042 target,after inside too.
2043 (relax_segment, case rs_machine_dependent): Guts moved to ...
2044 (relax_frag): New function.
2045 Call md_prepare_relax_scan if defined.
2046 * config/tc-m68k.h (md_prepare_relax_scan): Renamed from
2047 M68K_AIM_KLUDGE.
2048
2049 Mon Nov 25 08:49:36 1996 Jeffrey A Law (law@cygnus.com)
2050
2051 * config/tc-mn10300.c (address_registers): Use '$' as register
2052 prefix instead of '%'.
2053 (data_registers, other_registers, md_assemble): Likewise.
2054
2055 * config/tc-mn10300.c (address_registers): Use '%' prefix for regs.
2056 (data_registers, other_registers, md_assemble): Likewise.
2057
2058 * config/tc-mn10300.c (md_assemble): Correctly determine the
2059 correct location and type for each relocation.
2060 (md_pcrel_from): Simplify.
2061
2062 Fri Nov 22 15:42:26 1996 Ian Lance Taylor <ian@cygnus.com>
2063
2064 * config/tc-sh.c (md_convert_frag): Improve warning when branch is
2065 converted into branch around branch.
2066
2067 Thu Nov 21 11:56:11 1996 Jeffrey A Law (law@cygnus.com)
2068
2069 * config/tc-mn10300.h (DIFF_EXPR_OK): Don't define this.
2070 (tc_fix_adjustable): Don't adjust relocs against weak symbols or
2071 pc-relative relocs.
2072 * config/tc-mn10300.c (md_begin): Set linkrelax.
2073 (md_assemble): Create fixups as needed.
2074 (md_apply_fix3): Gut. It shouldn't ever get called anymore.
2075
2076 Tue Nov 19 17:48:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2077
2078 * config/tc-d10v.c (parallel_ok): When automatically converting
2079 serial ops to parallel, do not consider a branch as the first
2080 instruction.
2081
2082 Tue Nov 19 13:35:22 1996 Jeffrey A Law (law@cygnus.com)
2083
2084 * config/tc-mn10300.c (md_assemble): Handle MN10300_OPERAND_REG_LIST.
2085
2086 Mon Nov 18 15:26:55 1996 Jeffrey A Law (law@cygnus.com)
2087
2088 * config/tc-mn10300.c (mn10300_insert_operand): Provide prototype
2089 via PARAMS.
2090 (check_operand): Likewise.
2091
2092 Mon Nov 18 15:22:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2093
2094 * config/tc-d10v.c (parallel_ok): Branch and link instructions
2095 modify r13.
2096 (write_2_short): Call parallel_ok to check whether two short
2097 instructions the user requested execute in parallel, can be
2098 executed that way.
2099
2100 Thu Nov 14 11:17:49 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2101
2102 * config/tc-d10v.c (write_2_short): Fix bug that wouldn't
2103 allow a branch and link in parallel with an exe instruction.
2104
2105 Fri Nov 8 13:55:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2106
2107 * doc/c-d10v.texi: Add info on @word modifier.
2108
2109 Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com)
2110
2111 * config/tc-mn10300.c (mn10300_insert_operand): MN10300_OPERAND_SPLIT
2112 operands are assumed to be 32bits. Use "bits" field to hold the
2113 number of bits in the main instruction word for MN10300_OPERAND_SPLIT.
2114 (mn10300_check_operand): MN10300_OPERAND_SPLIT operands are assumed
2115 to be 32bits.
2116
2117 * config/tc-mn10300.c (mn10300_insert_operand): Shift low part
2118 of a MN10300_OPERAND_SPLIT operand by operand->shift.
2119
2120 * config/tc-mn10300.c (mn10300_insert_operand): Handle
2121 MN10300_OPERAND_SPLIT.
2122
2123 Tue Nov 5 13:30:40 1996 Jeffrey A Law (law@cygnus.com)
2124
2125 * config/tc-mn10300.c (md_assemble): Insert operands into
2126 the extension part of the instruction if necessary.
2127 (mn10300_insert_operand): Accept pointer to extension word
2128 argument. Make insn a pointer argument too. Return type
2129 is now void. All callers changed.
2130
2131 Mon Nov 4 12:53:40 1996 Jeffrey A Law (law@cygnus.com)
2132
2133 * config/tc-mn10300.c (mn10300_insert_operand): Handle
2134 repeated register operands.
2135
2136 Fri Nov 1 10:42:49 1996 Ian Lance Taylor <ian@cygnus.com>
2137
2138 * doc/as.texinfo: Added section on reporting bugs.
2139
2140 * config/tc-alpha.c: Change uses of void * to PTR. Change the
2141 alpha_macro emit field to expect a const argument, and change the
2142 arg field to be const. Fix some spacing to follow the GNU
2143 standard.
2144
2145 Fri Nov 1 10:32:03 1996 Richard Henderson <rth@tamu.edu>
2146
2147 * config/tc-alpha.c (md_parse_option): Add knowledge of 21164pc
2148 (pca56) and 21264 (ev6) cpus.
2149 (md_apply_fix): Private relocation types are now negative.
2150 (alpha_force_relocation): Likewise.
2151 (tc_gen_reloc): Likewise.
2152 (emit_insn): Likewise.
2153 (emit_ldXu): Do the right thing when the hardware can do byte insns.
2154 (emit_stX): Likewise.
2155 (emit_sextX): Likewise.
2156
2157 Thu Oct 31 16:33:21 1996 Ian Lance Taylor <ian@cygnus.com>
2158
2159 * config/obj-coff.c (do_relocs_for): Call resolve_symbol_value on
2160 a symbol found in a reloc.
2161
2162 * symbols.c (resolve_symbol_value): Improve the error message if
2163 an undefined symbol is used in an expression.
2164
2165 Wed Oct 30 20:15:35 1996 Ian Lance Taylor <ian@cygnus.com>
2166
2167 * doc/internals.texi: Rewrite, and add a lot of documentation.
2168 * doc/Makefile.in (internals.info): New target.
2169
2170 start-sanitize-v850
2171 Wed Oct 30 14:55:57 1996 Jeffrey A Law (law@cygnus.com)
2172
2173 * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
2174 against weak symbols.
2175
2176 Tue Oct 29 12:28:16 1996 Jeffrey A Law (law@cygnus.com)
2177
2178 * config/tc-v850.c (md_assemble): Don't lose for relaxable
2179 addresses like .+6.
2180
2181 * config/tc-v850.c (md_convert_frag): Make sure we insert the
2182 fixup at the right address within the frag.
2183
2184 * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
2185 to an absolute value, instead increment it as needed.
2186
2187 * config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
2188 * config/tc-v850.c: Fix some indention problems.
2189 (md_relax_table): Define for D9->D99 branch displacement
2190 relaxing.
2191 (md_convert_frag): Do something useful instead of aborting.
2192 (md_estimate_size_before_relax): Likewise.
2193 (md_assemble): Note if the matching instruction has a relaxable
2194 operand. If it does, allocate frag with frag_var and don't
2195 do any fixups.
2196
2197 end-sanitize-v850
2198 Mon Oct 28 10:48:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2199
2200 * config/tc-d10v.h (md_cleanup): New function. This is needed to
2201 write out any buffered instructions when a ".end" is found.
2202
2203 Mon Oct 28 10:43:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2204
2205 * read.c (read_a_source_file): New hook md_cleanup().
2206
2207 Fri Oct 25 00:01:00 1996 Ian Lance Taylor <ian@cygnus.com>
2208
2209 * write.c (fix_new_exp): Use make_expr_symbol to build an
2210 expression symbol for a complex fixup.
2211
2212 start-sanitize-v850
2213 Thu Oct 24 14:31:04 1996 Jeffrey A Law (law@cygnus.com)
2214
2215 * config/tc-v850.c (v850_reloc_prefix): Several disgusting
2216 hacks to improve parsing of complex hi, lo, zda, etc
2217 expressions.
2218 (md_assemble): Don't demand and eat a trailing ')' after finding
2219 a v850 relocation prefix. Sign extend the constant in a
2220 BFD_RELOC_LO16 expression. Do eat a trailing ')' after a complete
2221 operand.
2222 (parse_cons_expression_v850): Don't eat a trailing ')' after
2223 finding a v850 relocation prefix.
2224
2225 * config/tc-v850.h (TC_PARSE_CONS_EXPRESSION): Define.
2226 (TC_CONS_FIX_NEW): Likewise.
2227 * config/tc-v850.c (parse_cons_expression_v850): New function.
2228 (cons_fix_new_v850): Likewise.
2229
2230 * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
2231
2232 end-sanitize-v850
2233 Wed Oct 23 18:20:29 1996 Ian Lance Taylor <ian@cygnus.com>
2234
2235 * config/tc-ppc.c (md_apply_fix3): Give a better warning message
2236 for an unknown relocation type.
2237
2238 start-sanitize-v850
2239 Wed Oct 23 16:21:28 1996 Jeffrey A Law (law@cygnus.com)
2240
2241 * config/tc-v850.c (md_pseudo_table): Add .word; allocates
2242 4 bytes of space.
2243
2244 Tue Oct 22 22:01:25 1996 Jeffrey A Law (law@cygnus.com)
2245
2246 * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
2247 differently for movea & sst/sld insns.
2248
2249 end-sanitize-v850
2250 Tue Oct 22 17:09:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2251
2252 * config/tc-d10v.c (parallel_ok): Don't allow illegal combinations
2253 of instructions.
2254
2255 Tue Oct 22 11:28:39 1996 Ian Lance Taylor <ian@cygnus.com>
2256
2257 * obj.h (struct format_ops): Add frob_file_after_relocs field.
2258 * config/obj-multi.h (obj_frob_file_after_relocs): Define.
2259 * config/obj-ecoff.c (ecoff_format_ops): Initialize new
2260 frob_file_after_relocs field.
2261 * config/obj-elf.c (elf_format_ops): Likewise.
2262 * config/tc-mips.c: Undefine obj_frob_file_after_relocs before
2263 including obj-elf.h.
2264
2265 Mon Oct 21 11:38:30 1996 Ian Lance Taylor <ian@cygnus.com>
2266
2267 * config/tc-mips.c (cons_fix_new_mips): Only treat 8 byte reloc
2268 specially if not ELF.
2269 (md_apply_fix): Handle BFD_RELOC_64.
2270 (tc_gen_reloc): Handle BFD_RELOC_64.
2271
2272 * config/tc-i386.c (md_apply_fix3): Don't increment value for a PC
2273 relative reloc when BFD_ASSEMBLER and OBJ_AOUT (more ugly gas
2274 reloc hacking).
2275
2276 * config/obj-aout.h (S_IS_DEFINE): non BFD_ASSEMBLER version:
2277 Don't check S_GET_OTHER.
2278
2279 Fri Oct 18 14:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
2280
2281 * config/tc-mips.c (mips_ip): Accept an odd floating point
2282 register with l.s or s.s.
2283
2284 * config/obj-aout.c (obj_pseudo_table): Use obj_aout_type for
2285 .type pseudo-op.
2286 (obj_aout_type): New static function.
2287
2288 Thu Oct 17 17:55:17 1996 Ian Lance Taylor <ian@cygnus.com>
2289
2290 * Makefile.in ($(OBJS)): Depend upon libiberty.h.
2291
2292 start-sanitize-v850
2293 Wed Oct 16 11:28:31 1996 Jeffrey A Law (law@cygnus.com)
2294
2295 * config/tc-v850.c (v850_reloc_prefix): Recognize zdaoff, tdaoff
2296 and sdaoff expressions.
2297
2298 * write.c (fixup_segment): Don't add symbol value to addend if
2299 TC_V850 and OBJ_ELF.
2300 * config/tc-v850.h (tc_fix_adjustable): Don't adjust any
2301 pc-relative fixups.
2302
2303 * config/tc-v850.c (md_pcrel_from): Undo yesterday's changes.
2304 (md_pcrel_from_section): Likewise.
2305 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise.
2306
2307 Tue Oct 15 23:19:00 1996 Jeffrey A Law (law@cygnus.com)
2308
2309 * config/tc-v850.c (md_pcrel_from): Delete unused function.
2310 (md_pcrel_from_section): New function.
2311 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
2312
2313 end-sanitize-v850
2314 Mon Oct 14 13:59:12 1996 Ian Lance Taylor <ian@cygnus.com>
2315
2316 * config/tc-mips.c (load_register): Add cast to offsetT when using
2317 a constant with &~.
2318
2319 Mon Oct 14 11:24:28 1996 Richard Henderson <rth@tamu.edu>
2320
2321 * config/obj-elf.c (elf_frob_file): Move ECOFF debug processing to ...
2322 (elf_frob_file_after_relocs): ... here. New function.
2323 * config/obj-elf.h (obj_from_file_after_relocs): New macro.
2324 * write.c (write_object_file): Call *frob_after_relocs after the
2325 call to write_relocs.
2326
2327 * config/tc-alpha.c: Use new BFD_RELOC_ALPHA_ELF_LITERAL reloc.
2328
2329 * config/tc-alpha.c (load_expression): Don't SET_VALUE on the section
2330 symbol, as this messes up linking. Instead, expand the recursive call
2331 inline and change up the appropriate bits to get the 0x8000 offset
2332 in the reloc addend.
2333
2334 Thu Oct 10 17:30:31 1996 Ian Lance Taylor <ian@cygnus.com>
2335
2336 * config/tc-sparc.h (tc_fix_adjustable): Permit the difference of
2337 two symbols in the same segment to be adjusted.
2338
2339 * configure.in: Don't get confused by CPU-VENDOR-linux-gnu.
2340 * configure: Rebuild.
2341
2342 Thu Oct 10 17:22:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2343
2344 * config/tc-ppc.c (ppc_insert_operand): Change most warnings into
2345 errors.
2346 (ppc_elf_validate_fix): Ditto.
2347 (md_assemble): Ditto.
2348 (ppc_tc): Ditto.
2349 (ppc_pe_section): Ditto.
2350 (ppc_frob_symbol): Ditto.
2351
2352 Thu Oct 10 12:05:45 1996 Jeffrey A Law (law@cygnus.com)
2353
2354 * config/mn10300.c (md_assemble): Pass an extra shift count
2355 to mn10300_insert_operand based on the opcode format.
2356 (mn10300_insert_operand): Accept and use extra shift count
2357 parameter.
2358
2359 * config/tc-mn10300.c (md_assemble): Use FMT_* macros for
2360 formats rather than hard-coded constants.
2361
2362 * config/tc-mn10300.c (md_assemble): Format D5 instructions
2363 are 7 bytes long. Write out instructions in big-endian format.
2364
2365 Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
2366
2367 * config/tc-mn10300.c (md_assemble): Tweak further so
2368 that all instructions are parsed correctly.
2369
2370 Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
2371
2372 * as.h: Include libiberty.h.
2373 (xmalloc, xrealloc): Don't declare.
2374 * as.c: Don't include libiberty.h.
2375 * expr.c, read.c, stabs.c, config/obj-coff.c: Likewise.
2376 * config/tc-mips.c: Likewise.
2377 * messages.c: Likewise.
2378 (xstrerror): Don't declare.
2379 * xmalloc.c: Remove.
2380
2381 Mon Oct 7 16:53:23 1996 Jeffrey A Law (law@cygnus.com)
2382
2383 * config/tc-mn10300.h (pre_defined_registers) Remove.
2384 (system_registers, cc_names): Likewise.
2385 (address_registers, data_registers, other_registers): New register
2386 arrays.
2387 (register_name, system_register_name, cc_name): Remove.
2388 (mn10300_reloc_prefix): Likewise.
2389 (data_register_name): New function.
2390 (address_register_name, other_register_name): Likewise.
2391 (md_assemble): Rough cut at parsing operands. Remove lots of
2392 unwanted code.
2393 (md_apply_fix3): Disable for now.
2394
2395 Mon Oct 7 11:38:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2396
2397 * config/tc-m68k.c (select_control_regs): New function, extracted
2398 out of m68k_init_after_args.
2399 (m68k_init_after_args): Use it.
2400 (mri_chip): Use it here as well to update set of allowed control
2401 regs for movec.
2402
2403 Mon Oct 7 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
2404
2405 * config/obj-elf.c (elf_begin): New function.
2406 (obj_elf_section): Add the section symbol to the symbol table.
2407 * config/obj-elf.h (obj_begin): Define.
2408 (elf_begin): Declare.
2409 * as.c (perform_an_assembly_pass): Call obj_begin if it is
2410 defined.
2411
2412 Fri Oct 4 18:37:32 1996 Ian Lance Taylor <ian@cygnus.com>
2413
2414 * config/obj-coff.c (fixup_segment): Subtract the section address
2415 from a PC relative reloc if TC_M68K.
2416
2417 Thu Oct 3 15:15:30 1996 Ian Lance Taylor <ian@cygnus.com>
2418
2419 * config/tc-sparc.c (md_pseudo_table): Make .uahalf, .uaword, and
2420 .uaxword available even if not OBJ_ELF.
2421 (md_atof): Remove unused local variable wordP.
2422
2423 Thu Oct 3 00:16:50 1996 Jeffrey A Law (law@cygnus.com)
2424
2425 * config/tc-mn10x00.c, config/tc-mn10x00.h: New files
2426 for Matsushita MN10x00 support.
2427 * configure.in: Recognize mn10x00-*-*
2428 * configure: Rebuilt.
2429
2430 Wed Oct 2 15:54:03 1996 Klaus Kaempf <kkaempf@progis.de>
2431
2432 * obj-evax.h: move openvms definitions from here to tc-alpha.c.
2433 * tc-alpha.c: add support for vms_case_hack like in vax/vms.
2434 (load_expression): track clobbering of base reg before jmp/jsr.
2435 (s_alpha_file): pass case_hack flags and source filename via
2436 symbol table to bfd.
2437 * tc-alpha.h (TC_CONS_FIX_NEW): define
2438
2439 Tue Oct 1 16:16:01 1996 Joel Sherrill <joel@oarcorp.com>
2440
2441 * configure.in (mips-*-rtems*): New target, like mips-*-elf*.
2442 * configure: Rebuild.
2443
2444 Tue Oct 1 12:37:48 1996 Ian Lance Taylor <ian@cygnus.com>
2445
2446 * read.c (s_macro): Warn if a macro has the same name as a
2447 pseudo-op.
2448 (s_space): In m68k MRI mode, align to a word boundary.
2449 * macro.c (define_macro): Add namep parameter. Change all
2450 callers.
2451 * macro.h (define_macro): Update declaration.
2452
2453 * as.c (show_usage): Print bug report address.
2454 (parse_args): Change version printing to match current GNU
2455 standards.
2456 * gasp.c (show_usage): Print bug report address.
2457 (main): Change version printing to match current GNU standards.
2458
2459 * config/tc-m68k.c (init_table): Correct access control unit
2460 register numbers. From Ken Rose <rose@netcom.com>.
2461
2462 * config/tc-alpha.c: Add some static function prototypes.
2463 (alpha_macros): Move to top of file. Make static.
2464 (alpha_num_macros): Move to top of file.
2465
2466 start-sanitize-v850
2467 Tue Oct 1 09:36:19 1996 Stu Grossman (grossman@critters.cygnus.com)
2468
2469 * tc-v850.h: Define LOCAL_LABEL to recognise _.L_* symbols
2470 generated by DWARF.
2471
2472 end-sanitize-v850
2473 Sat Sep 28 03:38:08 1996 Ian Lance Taylor <ian@cygnus.com>
2474
2475 * listing.c (list_symbol_table): Remove bogus code in BFD64 case,
2476 and just call sprintf_vma.
2477
2478 Thu Sep 26 16:04:11 1996 Ian Lance Taylor <ian@cygnus.com>
2479
2480 * expr.c (expr): Change >>= to >> (fix typo). (From meissner).
2481
2482 Tue Sep 24 19:05:08 1996 Ian Lance Taylor <ian@cygnus.com>
2483
2484 * read.c (float_cons): Call md_flush_pending_output if it is
2485 defined.
2486
2487 Tue Sep 24 12:22:18 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2488
2489 * config/tc-d10v.c (md_operand): Created. Allows operands to
2490 start with '#'.
2491 * config/tc-d10v.h (md_operand): Undefined.
2492
2493 Mon Sep 23 12:13:18 1996 Ian Lance Taylor <ian@cygnus.com>
2494
2495 * config/tc-m68k.c (add_fix): Treat a width of '3' like 'B'.
2496 (md_assemble): A fixup width of '3' means a 1 byte reloc.
2497
2498 Thu Sep 19 12:21:24 1996 Ian Lance Taylor <ian@cygnus.com>
2499
2500 * config/obj-coff.c (fixup_segment): Don't adjust PC relative
2501 reloc for the i960 for a reloc in the same section. This undoes
2502 one of the two changes made Aug 19.
2503
2504 Wed Sep 18 12:11:58 1996 Ian Lance Taylor <ian@cygnus.com>
2505
2506 * config/obj-coff.c (obj_coff_endef): Both versions: Move C_STAT
2507 symbols to the position of the debugging information.
2508
2509 Mon Sep 16 11:41:40 1996 Ian Lance Taylor <ian@cygnus.com>
2510
2511 * expr.c (expr): Always use unsigned right shifts for >>.
2512
2513 Thu Sep 12 10:25:45 1996 James G. Smith <jsmith@cygnus.co.uk>
2514
2515 * config/tc-arm.c (md_apply_fix3): Update two thumb instruction
2516 slots when processing BL fixups.
2517
2518 * config/tc-arm.c (output_inst): Ensure Thumb BL fixup is marked
2519 on the first half of the instruction.
2520
2521 Wed Sep 11 00:09:35 1996 Ian Lance Taylor <ian@cygnus.com>
2522
2523 * ecoff.c (ecoff_stab): Create an expression symbol for a complex
2524 stabs expression, rather than giving an error.
2525
2526 * ecoff.c (ecoff_new_file): Don't do anything if we are still in
2527 the same file.
2528
2529 Tue Sep 10 11:45:37 1996 Ian Lance Taylor <ian@cygnus.com>
2530
2531 * config/tc-mips.c (append_insn): Fill in the value for a constant
2532 jump, rather than creating a reloc.
2533
2534 Mon Sep 9 10:57:42 1996 Ian Lance Taylor <ian@cygnus.com>
2535
2536 * config/tc-mips.c (append_insn): Don't swap an instruction which
2537 sets a condition code with an instruction which uses a condition
2538 code.
2539 (mips_ip): In cases 'N' and 'M', look for $fccN rather than an
2540 immediate value.
2541
2542 * config/tc-mips.c (md_begin): Recognize r5000 for cpu.
2543 (mips_ip): Give a better error message if the ISA level is wrong.
2544 (md_parse_option): Recognize -mcpu=[v][r]5000.
2545
2546 Sat Sep 7 13:25:55 1996 James G. Smith <jsmith@cygnus.co.uk>
2547
2548 * config/tc-mips.c (COUNT_TOP_ZEROES): Added macro to count
2549 leading zeroes.
2550 (load_register): Ensure hi32 bits are not lost during lo32bit
2551 processing. Fix shift offset that was overflowing into the next
2552 instruction field. Add code to generate shorter sequences for
2553 constants with a single contiguous seqeuence of ones.
2554
2555 Fri Sep 6 17:07:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2556
2557 * config/tc-d10v.c (d10v_dot_word): New function to support
2558 "@word" with the word pseudo-op.
2559 (md_apply_fix3): Cleanup and changes to support correct sizes
2560 for 16 and 18-bit relocs.
2561
2562 Fri Sep 6 16:00:29 1996 Doug Evans <dje@canuck.cygnus.com>
2563
2564 * configure.in (sparc-*-aout): Set `em'.
2565 * configure: Regenerated.
2566 * config/te-sparcaout.h: New file.
2567 * config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
2568 Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
2569 * config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
2570 (SPECIAL_CASE_{SETSW,SETX}): Define.
2571 ({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
2572 (md_begin): Delete setting of `target_big_endian'.
2573 (output_insn): New function.
2574 (md_assemble): Rewrite. Add `setx' support.
2575 (sparc_ip): Handle `0' operand char. Recognize setuw, setsw, setx
2576 special cases.
2577 (md_atof): Add little endian support.
2578 (md_number_to_chars): Likewise.
2579 (md_apply_fix): Likewise.
2580 (md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
2581 (md_parse_option): Likewise.
2582 (md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.
2583
2584 Thu Sep 5 13:40:29 1996 Ian Lance Taylor <ian@cygnus.com>
2585
2586 * ecoff.c (ecoff_new_file): New function.
2587 * ecoff.h (ecoff_new_file): Declare.
2588 * config/obj-ecoff.h (obj_app_file): Define.
2589
2590 Thu Sep 5 13:39:25 1996 Richard Henderson <rth@tamu.edu>
2591
2592 * config/tc-alpha.c (load_expression): Bias the .lit8 section
2593 symbol by 32k so that our 16-bit signed offset can address the
2594 entire chunk. Reported by <matt@lkg.dec.com>.
2595
2596 Wed Sep 4 10:23:20 1996 Ian Lance Taylor <ian@cygnus.com>
2597
2598 * config/tc-mips.c (load_register): Remove unused variable tmp.
2599
2600 Wed Sep 4 11:24:29 1996 James G. Smith <jsmith@cygnus.co.uk>
2601
2602 * config/tc-mips.c (load_register): Remove unnecessary code that
2603 was causing the high 32bits of 64bit constants to be lost.
2604
2605 Tue Sep 3 13:52:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2606
2607 * config/tc-d10v.c: Added changes to support function
2608 pointers and "@word" syntax.
2609
2610 start-sanitize-v850
2611 Tue Sep 3 11:57:18 1996 Jeffrey A Law (law@cygnus.com)
2612
2613 * config/tc-v850.c: Remove commented out and #if 0'd code.
2614 (v850_reloc_prefix): Provide prototype.
2615 (postfix, get_reloc, build_insn): Remove prototypes for nonexistant
2616 functions.
2617 (md_begin, md_assemble, md_apply_fix3): Remove unused variables.
2618 (md_assemble): Add default to case statement.
2619
2620 Sat Aug 31 16:03:00 1996 Jeffrey A Law (law@cygnus.com)
2621
2622 * config/tc-v850.c (md_assemble): Compute size of the instrction
2623 from the opcode.
2624
2625 * config/tc-v850.c (md_apply_fix3): Do simple byte, short and
2626 word fixups too.
2627
2628 Fri Aug 30 23:50:08 1996 Jeffrey A Law (law@cygnus.com)
2629
2630 * config/tc-v850.c (md_apply_fix3): Use little endian get/put
2631 routines to fetch/store the updated instruction from/to memory.
2632 (v850_insert_operand): If the operand has a specialized insert
2633 routine, call it.
2634
2635 Fri Aug 30 18:35:26 1996 J.T. Conklin <jtc@hippo.cygnus.com>
2636
2637 * config/tc-v850.c (reg_name_search): Align calling convention to
2638 be like identical function found in tc-ppc.c.
2639 (get_reloc): Removed.
2640 (v850_reloc_prefix): New function, parse lo(), hi() and hi0().
2641 (md_assemble): emit fixups.
2642 (md_pcrel_from): renamed from md_pcrel_from_section, emit proper
2643 displacement.
2644 (md_apply_fix3): handle fixups/relocs.
2645 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Removed definition.
2646
2647 end-sanitize-v850
2648 Fri Aug 30 18:12:00 1996 Ian Lance Taylor <ian@cygnus.com>
2649
2650 Add SH ELF support.
2651 * configure.in (sh-*-elf*): New target.
2652 * config/tc-sh.h (TARGET_ARCH): Define.
2653 (WORKING_DOT_WORD): Define.
2654 (TC_COFF_FIX2RTYPE): Only define if OBJ_COFF.
2655 (BFD_ARCH, COFF_MAGIC, TC_COUNT_RELOC): Likewise.
2656 (TC_RELOC_MANGLE, tc_coff_symbol_emit_hook): Likewise.
2657 (DO_NOT_STRIP, NEED_FX_R_TYPE, TC_KEEP_FX_OFFSET): Likewise.
2658 (TC_COFF_SIZEMACHDEP, tc_frob_file): Likewise.
2659 (SUB_SEGMENT_ALIGN): Likewise.
2660 (RELOC_32): Don't define.
2661 (tc_frob_file_before_adjust): Define if BFD_ASSEMBLER.
2662 (target_big_endian): Declare if OBJ_ELF.
2663 (TARGET_FORMAT): Define if OBJ_ELF.
2664 * config/tc-sh.c: Use BFD reloc codes instead of SH COFF reloc
2665 numbers throughout.
2666 (tc_crawl_symbol_chain): Only define if OBJ_COFF.
2667 (tc_headers_hook, tc_coff_sizemachdep): Likewise.
2668 (struct sh_count_relocs): Define.
2669 (sh_count_relocs): New static function, broken out of
2670 sh_frob_file. Add BFD_ASSEMBLER code.
2671 (sh_frob_section): Likewise.
2672 (sh_frob_file): Call sh_frob_section.
2673 (md_convert_frag): If BFD_ASSEMBLER, change type of headers, and
2674 call section_symbol rather than seg_info (seg)->dot.
2675 (md_section_align): Add OBJ_ELF version.
2676 (SWITCH_TABLE_CONS): Define.
2677 (SWITCH_TABLE): Use SWITCH_TABLE_CONS.
2678 (md_apply_fix): Change parameter types if BFD_ASSEMBLER. Only
2679 handle fx_r_type == 0 if not BFD_ASSEMBLER. Return 0 if
2680 BFD_ASSEMBLER.
2681 (struct reloc_map): Define if not BFD_ASSEMBLER.
2682 (coff_reloc_map): Likewise.
2683 (sh_coff_reloc_mangle): Use coff_reloc_map to convert fx_r_type.
2684 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2685 * write.c (write_relocs): Ifdef out fx_where test which triggers
2686 inappropriately for SH ELF.
2687 (write_object_file): Call tc_frob_file_before_adjust and
2688 obj_frob_file_before_adjust if they are defined.
2689
2690 * write.c (write_object_file): Use BFD_RELOC_16, not
2691 BFD_RELOC_NONE, when calling fix_new_exp for a broken word.
2692
2693 * read.c (emit_expr): Fix conversion of byte count to BFD reloc
2694 code.
2695
2696 Fri Aug 30 14:47:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2697
2698 * config/tc-d10v.c (find_opcode): Fix problem with calculating
2699 branch sizes in across sections.
2700
2701 start-sanitize-v850
2702 Fri Aug 30 00:44:13 1996 Jeffrey A Law (law@cygnus.com)
2703
2704 * config/tc-850.c (md_assemble): Handle hi() correctly. Handle
2705 hi0() too.
2706
2707 Wed Aug 28 23:11:08 1996 Jeffrey A Law (law@cygnus.com)
2708
2709 * config/tc-v850.c (md_begin): Deal with end of opcode
2710 table marker.
2711
2712 end-sanitize-v850
2713 Wed Aug 28 19:20:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2714
2715 * config/tc-d10v.c (find_opcode): Fix a bug which could generate
2716 the wrong opcode for cases like st2w where there are many forms
2717 of the same instruction.
2718
2719 Tue Aug 27 13:53:22 1996 Ian Lance Taylor <ian@cygnus.com>
2720
2721 * expr.c (operand): If md_parse_name is defined, call it before
2722 calling symbol_find_or_make.
2723 * config/tc-ppc.h (md_parse_name): Define.
2724 (ppc_parse_name): Declare.
2725 * config/tc-ppc.c (reg_name_search): Add regs and regcount
2726 parameters.
2727 (register_name): Update call to reg_name_search.
2728 (cr_operand): New static variable.
2729 (cr_names): New static const array.
2730 (ppc_parse_name): New function.
2731 (md_assemble): If PPC_OPERAND_CR is set in the operand flags, set
2732 cr_operand before calling expression.
2733
2734 Tue Aug 27 09:05:50 1996 Jeffrey A Law (law@cygnus.com)
2735
2736 * config/tc-hppa.c (tc_gen_reloc): Add new argument to
2737 hppa_gen_reloc_type call.
2738
2739 Mon Aug 26 18:24:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2740
2741 * config/tc-d10v.c: Fixed ".word". Fixed problem with range checking
2742 on addresses. Improved error messages.
2743 * doc/c-d10v.texi: Added docs for register pairs.
2744
2745 Mon Aug 26 13:39:27 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2746
2747 * config/tc-d10v.c (parallel_ok): Fix bug in parallel
2748 checking code.
2749
2750 Mon Aug 26 14:38:22 1996 Ian Lance Taylor <ian@cygnus.com>
2751
2752 * ecoff.c (init_file): Initialize fMerge to 1.
2753 (add_file): Restore old file merging code, but only merge files if
2754 fMerge is set.
2755 (ecoff_directive_loc): Clear fMerge field of current file.
2756 (ecoff_generate_asm_lineno): Likewise.
2757
2758 Fri Aug 23 11:40:47 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2759
2760 * doc/c-d10v.texi: Fix typo.
2761
2762 start-sanitize-v850
2763 Fri Aug 23 10:41:32 1996 Jeffrey A Law (law@cygnus.com)
2764
2765 * config/tc-v850.c (md_assemble): Correct bit masking for
2766 hi and lo expressions.
2767
2768 * config/tc-v850.c (md_assemble): Rough cut at demanding
2769 "ep" or "r30" in sst and sld instructions.
2770 (md_apply_fix3): Don't abort. Just warn that we don't
2771 have relocs yet.
2772
2773 * config/tc-v850.c (CC_NAME_CNT): Define.
2774 (cc_name): New function.
2775 (md_assemble): Handle V850_OPERAND_CC correctly.
2776
2777 * config/tc-v850.c (md_assemble): Don't forget to initialize
2778 "insn"!
2779
2780 * config/tc-v850.c (reg_name_search): Generalize to search
2781 any given register table.
2782 (register_name): Pass appropriate table and size to reg_name_search.
2783 (system_register_name): New function.
2784 (SYSREG_NAME_CNT): Define.
2785 (md_assemble): Handle operands which are system registers.
2786
2787 * config/tc-v850.c (md_assemble): If we find a register, but the
2788 opcode doesn't want a register, then we don't have a match.
2789 (md_assemble): Get size of the instruction from the opcode table.
2790
2791 end-sanitize-v850
2792 Thu Aug 22 10:20:30 1996 Ian Lance Taylor <ian@cygnus.com>
2793
2794 * configure.in: Set and substitute HLDENV.
2795 * configure: Rebuild.
2796 * Makefile.in (HLDENV): New variable.
2797 (as.new): Use $(HLDENV).
2798
2799 * ecoff.c (ecoff_directive_endef): Avoid a division by zero error
2800 if an array dimension is not known.
2801
2802 Thu Aug 22 10:50:00 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2803
2804 * config/tc-d10v.c: Fix a reloc bug caused by my last change.
2805 * doc/c-d10v.texi: Cleanup.
2806
2807 start-sanitize-v850
2808 Tue Aug 20 15:15:16 1996 J.T. Conklin <jtc@hippo.cygnus.com>
2809
2810 * config/tc-v850.c: New file.
2811 * config/tc-v850.h: New file.
2812 * configure (v850-*-elf): New target.
2813 * configure.in (v850-*-elf): New target.
2814
2815 end-sanitize-v850
2816 Wed Aug 21 15:50:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2817
2818 * doc/c-d10v.texi: New file.
2819 * doc/all.texi: Added D10V stuff.
2820 * doc/as.texinfo: Added D10V stuff.
2821
2822 Tue Aug 20 14:10:02 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2823
2824 * config/tc-d10v.c: All references to defined symbols should
2825 now use the optimal instruction. .float and .double now work.
2826
2827 Mon Aug 19 14:41:36 1996 Ian Lance Taylor <ian@cygnus.com>
2828
2829 * config/obj-coff.c (fixup_segment): Adjust PC relative reloc by
2830 section address for the i960 as is done for the i386.
2831
2832 Thu Aug 15 16:37:59 1996 Stan Shebs <shebs@andros.cygnus.com>
2833
2834 * mpw-config.in: Add wildcards for config matching, add mips-*-*
2835 case, forward-include bfd/elf-bfd.h.
2836
2837 Thu Aug 15 13:24:30 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2838
2839 * config/tc-d10v.c: Add additional information to the opcode
2840 table to help determinine which instructions can be done
2841 in parallel.
2842
2843 Thu Aug 15 17:01:31 1996 James G. Smith <jsmith@cygnus.co.uk>
2844
2845 * config/tc-arm.c: Major changes to add Thumb support, with lots
2846 of change input from <rearnsha@armltd.co.uk>.
2847 Reverted to INSN_SIZE macro, rather than insn_size variable.
2848 (insns): Added ARM "bx" instruction support.
2849 (tinsns): Added Thumb instruction definition structure.
2850 (arm_tops_hsh): Added hash structure for Thumb opcodes.
2851 (md_pseudo_table): Added ".arm", ".thumb" and ".code" pseudo-ops.
2852 (opcode_select,s_arm,s_thumb,s_code): Added.
2853 (decode_shift): Allow upper-case RRX.
2854 (do_ldst): Simpler halfword support.
2855 (do_ldmstm): Improved.
2856 (reg_list, do_bx, thumb_reg, thumb_add_sub, thumb_shift,
2857 thumb_mov_compare, thumb_load_store, do_t_arit, do_t_add,
2858 do_t_asr, do_t_branch, do_t_bx, do_t_compare, do_t_ldmstm,
2859 do_t_ldrb, do_t_ldrh, do_t_lds, do_t_lsl, do_t_lsr, do_t_mov,
2860 do_t_push_pop, do_t_str, do_t_strb, do_t_strh, do_t_sub, do_t_swi,
2861 do_t_adr): Added.
2862 (md_apply_fix3): Add support for BFD_RELOC_ARM_THUMB_* relocations.
2863 (md_parse_option): Add support for -mthumb.
2864 (md_show_usage): Updated to reflect new command line option.
2865 (arm_data_in_code, arm_canonicalize_symbol_name): Added.
2866 * config/tc-arm.h: Provide TC_FIX_TYPE to allow private ARM
2867 fragment information to be held.
2868
2869 Thu Aug 15 16:12:00 1996 Richard Earnshaw (rearnsha@armltd.co.uk)
2870
2871 * tc-arm.c (md_apply_fix3): Also set fixP->fx_done if fx_addsy is
2872 non-null, but is a constant.
2873 (fix_new_arm): Call make_expr_symbol to make the expression symbol
2874 so that error reporting will work correctly.
2875
2876 Wed Aug 14 10:37:21 1996 Ian Lance Taylor <ian@cygnus.com>
2877
2878 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust relocs
2879 against weak symbols.
2880
2881 Tue Aug 13 17:39:24 1996 Ian Lance Taylor <ian@cygnus.com>
2882
2883 * config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
2884 (ppc_force_relocation): Declare if OBJ_XCOFF.
2885 * config/tc-ppc.c (ppc_force_relocation): New function if
2886 OBJ_XCOFF.
2887
2888 Mon Aug 12 16:49:43 1996 Ian Lance Taylor <ian@cygnus.com>
2889
2890 * config/tc-mips.h (BYTE_ORDER): Don't define. No longer used.
2891
2892 Fri Aug 9 17:48:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2893
2894 * config/tc-d10v.c: Fix problem with relocs.
2895
2896 Fri Aug 9 14:16:14 1996 Ian Lance Taylor <ian@cygnus.com>
2897
2898 * config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
2899 with nops if not in data_section or bss_section.
2900
2901 Thu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
2902
2903 Add support for openVMS/Alpha.
2904 * as.h (PRINTF_LIKE): Don't define if VMS, for now.
2905 * config/obj-evax.c: New file.
2906 * config/obj-evax.h: New file.
2907 * config/tc-alpha.c: Add support for EVAX format if OBJ_EVAX is
2908 defined.
2909 * config/tc-alpha.h: Add support for EVAX format if OBJ_EVAX is
2910 defined. Add case for bfd_target_evax_flavour.
2911 * config/vms-a-conf.h: New file.
2912 * conf-a-gas.com: New file.
2913 * configure.in: Add target alpha-*-*vms*.
2914 * configure: Rebuild.
2915 * makefile.vms: New file.
2916 * read.c (s_lcomm): Align bss_seg on 8 byte boundary if OBJ_EVAX.
2917 Don't call ffs on openVMS/Alpha.
2918
2919 Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
2920
2921 * configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
2922 <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr
2923 and sbrk.
2924 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
2925 (NEED_DECLARATION_SBRK): New macro.
2926 * configure, conf.in: Rebuild.
2927 * as.h: Only include <strings.h> if HAVE_STRINGS_H.
2928 (strstr): Declare if NEED_DECLARATION_STRSTR.
2929 * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
2930
2931 Wed Aug 7 11:50:26 1996 Ian Lance Taylor <ian@cygnus.com>
2932
2933 * symbols.c (resolve_symbol_value): Handle addition or subtraction
2934 by a constant before entering the main switch. Reject attempts to
2935 apply an arithmetic function to non-absolute symbols, except for
2936 the special case of subtraction of two symbols in the same
2937 section.
2938
2939 * config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
2940 not to more than a 16 byte boundary.
2941
2942 * config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
2943 #ifndef OBJ_ELF lines. From Eric Valette <valette@crf.canon.fr>.
2944 (tc_gen_reloc): If out of memory call as_fatal rather than
2945 assert. If no howto found, call as_bad_where rather than
2946 as_fatal. Change the error message slightly. Set howto to a
2947 non-NULL value in order to keep going.
2948
2949 Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2950
2951 * config/tc-d10v.c: Added code to support 32-bit fixups for stabs.
2952
2953 Tue Aug 6 11:15:26 1996 Jeffrey A Law (law@cygnus.com)
2954
2955 * config/tc-h8300.c (get_specific): New operand "size" derived
2956 from ".b", ".w" and ".l" extensions. All callers changed. If
2957 the base instruction has no operands, then use the size to
2958 determine which specific instruction to use.
2959
2960 Mon Aug 5 14:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
2961
2962 * config/tc-i960.c (mem_fmt): Call parse_expr before emit.
2963
2964 Fri Aug 2 11:23:31 1996 Ian Lance Taylor <ian@cygnus.com>
2965
2966 * config/tc-mips.c (md_section_align): Don't change addr if
2967 OBJ_ELF.
2968
2969 Thu Aug 1 23:51:52 1996 Jeffrey A Law (law@cygnus.com)
2970
2971 * config/tc-hppa.c: Revert yesterday's changes.
2972
2973 Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2974
2975 * config/tc-d10v.c: Disable range checking on 16-bit values.
2976
2977 Wed Jul 31 16:27:19 1996 Ian Lance Taylor <ian@cygnus.com>
2978
2979 * config/tc-m68k.c (m68k_ip): Set ok_arch for every instruction,
2980 not just the ones that don't match.
2981
2982 Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2983
2984 * config/tc-d10v.c: Fixed bugs in short relocs and range checking.
2985
2986 Wed Jul 31 15:41:42 1996 James G. Smith <jsmith@cygnus.co.uk>
2987
2988 * config/tc-arm.c: Changed INSN_SIZE to variable insn_size, as
2989 pre-cursor to adding Thumb support. Also added cpu_variant flag
2990 information to each of the asm_flg structures.
2991 (md_parse_option): Updated ARM7 parsing to allow 't' for
2992 thumb/halfword support, aswell as 'm' for long multiply.
2993 (md_show_usage): Updated help message.
2994 (md_assemble): Check that instruction flags are applicated to the
2995 current cpu variant.
2996 (md_apply_fix3, tc_gen_reloc): Add BFD_RELOC_ARM_OFFSET_IMM8 and
2997 BFD_RELOC_ARM_HWLITERAL relocation support for new halfword and
2998 signextension instructions.
2999 (do_ldst): Generate halfword and signextension variants if
3000 mnemonic flags match.
3001 (ldst_extend): Do not allow shifts in the offset field of halfword
3002 or signextension instructions.
3003 (validate_offset_imm): Provide check on halfword and signextension
3004 immediate range.
3005 (add_to_lit_pool): Merge identical literal pool values.
3006
3007 Tue Jul 30 14:28:23 1996 Jeffrey A Law (law@cygnus.com)
3008
3009 * config/tc-hppa.c (selector_table): Add 'E' selector.
3010 (cons_fix_new_hppa): Don't coke on e_esel.
3011 (tc_gen_reloc, SOM version): Handle R_COMP2 when used
3012 to help generate exception handling tables.
3013 (md_apply_fix): Don't try to apply fixups with an e_esel
3014 selector.
3015 (hppa_fix_adjustable): Fixups with e_esel selectors
3016 are not adjustable.
3017
3018 Tue Jul 30 15:51:41 1996 Ian Lance Taylor <ian@cygnus.com>
3019
3020 * config/tc-sparc.c (md_pseudo_table): Add 2byte, 4byte, and 8byte
3021 pseudo-ops.
3022
3023 Fri Jul 26 11:43:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3024
3025 * config/tc-d10v.c: Added lots of error checking. Added hacks
3026 to support accumulator shifts.
3027
3028 Fri Jul 26 11:56:08 1996 Ian Lance Taylor <ian@cygnus.com>
3029
3030 * symbols.c (S_SET_EXTERNAL): Let .weak override.
3031 (S_CLEAR_EXTERNAL): Likewise.
3032 (S_SET_WEAK): Remove error; just let .weak override.
3033
3034 Thu Jul 25 15:22:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3035
3036 * config/tc-d10v.c (md_assemble): Now handles multiline
3037 instructions.
3038
3039 Thu Jul 25 12:03:33 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3040
3041 * config/tc-d10v.c: Fix packaging bug. Added range checking.
3042 Added kludge for divs instruction. Fixed minor problem with
3043 multiple text sections.
3044 * config/tc-d10v.h (d10v_cleanup): Change prototype.
3045
3046 Tue Jul 23 10:49:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3047
3048 * config/tc-d10v.c (md_apply_fix3): Fix all instruction
3049 addresses to be right-shifted by 2.
3050
3051 Mon Jul 22 11:32:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3052
3053 * config/tc-d10v.c: Many changes to get relocs working.
3054 (register_name): No longer creates a symbol for register names.
3055 (pre_defined_registers): moved to opcodes/d10v-opc.c.
3056 (d10v_insert_operand): Now works correctly for either container.
3057 * config/tc-d10v.h (d10v_cleanup): Declare.
3058
3059 Mon Jul 22 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
3060
3061 * config/tc-mips.c (tc_gen_reloc): BFD_RELOC_PCREL_HI16_S and
3062 BFD_RELOC_PCREL_LO16 are expected to be PC relative.
3063
3064 Mon Jul 22 12:46:55 1996 Richard Henderson <rth@tamu.edu>
3065
3066 * tc-alpha.c: Patches to track current minimum alignment to reduce
3067 the number of fragments created with frag_align.
3068 (alpha_current_align): New static variable.
3069 (s_alpha_text): Reset alignment to 0.
3070 (s_alpha_data, s_alpha_rdata, s_alpha_sdata): Likewise.
3071 (s_alpha_stringer, s_alpha_space): New functions.
3072 (s_alpha_cons, alpha_flush_pending_output): Remove functions.
3073 (alpha_cons_align): New function to replace both of them.
3074 (emit_insn): Only align if alpha_current_align is less than 2;
3075 reset alpha_current_align to 2.
3076 (s_alpha_gprel32): Likewise.
3077 (s_alpha_section): New function. Basically duplicate the other
3078 alpha section change hooks. Only define for ELF.
3079 (s_alpha_float_cons): Simplify alignment handling.
3080 (md_pseudo_table): Only define "rdata" and "sdata" if OBJ_ECOFF.
3081 If OBJ_ELF, define "section", "section.s", "sect", and "sect.s".
3082 Don't define the s_alpha_cons pseudo-ops. Do define
3083 s_alpha_stringer and s_alpha_space pseudo-ops.
3084 (alpha_align): Skip if less than current default alignment. Set
3085 default alignment.
3086 * tc-alpha.h (md_flush_pending_output): Remove.
3087 (md_cons_align): Add.
3088
3089 * tc-alpha.c: Add oodles of function description comments.
3090 (md_bignum_to_chars): Remove; there are no callers.
3091 (md_show_usage): Mention some more variants.
3092
3093 Thu Jul 18 15:54:54 1996 Ian Lance Taylor <ian@cygnus.com>
3094
3095 From Andrew Gierth <ANDREWG@microlise.co.uk>:
3096 * configure.in (sparc-*-sysv4*): New target.
3097 * configure: Rebuild.
3098
3099 * config/tc-sparc.c (md_pseudo_table): Change uahalf, uaword, and
3100 uaxword to use s_uacons.
3101 (sparc_no_align_cons): New static variable.
3102 (s_uacons): New static function.
3103 (sparc_cons_align): If sparc_no_align_cons is set, just clear it
3104 and return.
3105
3106 * config/tc-sparc.c (s_common): Remove unused label allocate_bss.
3107
3108 * configure.in: Add mips-*-irix6* target. Handle Irix 6 like Irix
3109 5 with regard to shared libraries.
3110 * configure: Rebuild.
3111
3112 * config/tc-m68k.c (m68k_ip): Use the correct length when
3113 allocating space for the unsupported architecture error message.
3114
3115 Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3116
3117 * configure.in (d10v-*-*): Allow d10v-*-*, don't require d10v-*-elf*.
3118
3119 Wed Jul 17 14:25:13 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3120
3121 * config/tc-d10v.c: New file.
3122 * config/tc-d10v.h: New file.
3123 * configure (d10v-*-elf): New target.
3124 * configure.in (d10v-*-elf): New target.
3125
3126 Fri Jul 12 20:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3127
3128 * config/tc-ppc.c (md_parse_option): Recognize -K PIC.
3129
3130 Wed Jul 10 12:39:08 1996 Richard Henderson <rth@tamu.edu>
3131
3132 * config/tc-alpha.c (alpha_align): Change fill parameter
3133 to a pointer. Take NULL as 0 or nop depending on section. Change
3134 all callers.
3135 (s_alpha_align): Rename local variables.
3136
3137 * doc/as.texinfo (.align): Document action of omitted
3138 fill parameter.
3139
3140 Wed Jul 10 00:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
3141
3142 * config/tc-ppc.c (md_apply_fix3): Give a useful error message
3143 when an unsupported PC relative reloc is seen, rather than calling
3144 abort.
3145
3146 * app.c (do_scrub_chars): Remove not_cpp_line local variable.
3147 Instead, check state when '#' comment is seen.
3148
3149 Mon Jul 8 14:11:49 1996 Ian Lance Taylor <ian@cygnus.com>
3150
3151 * config/tc-mips.c (mips_regmask_frag): Only define if OBJ_ELF or
3152 OBJ_MAYBE_ELF.
3153 (tc_gen_reloc): If fixup was changed to be PC relative, change
3154 reloc type accordingly. Use name of reloc in error message.
3155
3156 * as.h: Don't define const or volatile.
3157 * flonum.h: Don't define const.
3158
3159 * config/tc-m68k.c (tc_gen_reloc): Change the code appropriately
3160 if fx_pcrel is set. Correct setting the addend case in the
3161 OBJ_ELF case (from Andreas Schwab
3162 <schwab@issan.informatik.uni-dortmund.de>).
3163 (md_show_usage): Correct -mfc5200 to -m5200.
3164
3165 Fri Jul 5 10:32:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3166
3167 * doc/c-m68k.texi: Document -m5200 flag.
3168 * doc/as.texinfo: Likewise.
3169
3170 * config/tc-m68k.c (m68k_ip): The coldfire does not support 8x
3171 scale factor.
3172
3173 Fri Jul 5 11:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
3174
3175 * symbols.c (S_SET_EXTERNAL): Change as_warn to as_bad.
3176 (S_CLEAR_EXTERNAL, S_SET_WEAK): Likewise.
3177
3178 Thu Jul 4 11:59:46 1996 Ian Lance Taylor <ian@cygnus.com>
3179
3180 * Makefile.in (VERSION): Set to cygnus-2.7.1.
3181
3182 * Released binutils 2.7.
3183
3184 Thu Jul 4 10:11:33 1996 James G. Smith <jsmith@cygnus.co.uk>
3185
3186 * config/tc-mips.c (mips_ip): Only perform range check when
3187 dealing with O_constant expressions.
3188
3189 Wed Jul 3 15:02:21 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3190
3191 * m68k-parse.h (m68k_register): Add new coldfile control
3192 registers.
3193
3194 * config/tc-m68k.c (mcf5200_control_regs): New variable,
3195 array of control registers for the coldfire.
3196 (cpu_of_arch): Added mcf5200.
3197 (archs): Added mcf5200.
3198 (init_table): Add new control registers.
3199 (m68k_ip): Added support for new control registers.
3200 (m68k_init_after_args): Likewise.
3201
3202 * config/tc-m68k.c (md_show_usage): Add -m5200 to usage text.
3203
3204 Wed Jul 3 16:05:50 1996 Ian Lance Taylor <ian@cygnus.com>
3205
3206 * read.h (is_it_end_of_statement): Declare.
3207 * read.c (is_it_end_of_statement): Remove declaration.
3208
3209 * config/tc-ppc.c (ppc_elf_suffix): Correct parenthesization of ||
3210 within &&.
3211 (md_assemble): Fix handling of @l with an unsigned constant. Add
3212 default case to reloc switch.
3213
3214 * config/tc-i386.h (AOUT_MACHTYPE): Define as 0 if TE_386BSD.
3215
3216 Based on patches from Tom Quiggle <quiggle@sgi.com>:
3217 * ecoff.c (last_lineno): New static variable.
3218 (add_procedure): Set last_lineno.
3219 (ecoff_directive_loc): Likewise.
3220 (ecoff_generate_asm_lineno): Likewise.
3221 (ecoff_fix_loc): New function.
3222 * ecoff.h (ecoff_fix_loc): Declare.
3223 * config/tc-mips.c (append_insn): When inserting nops, and using
3224 ECOFF debugging, call ecoff_fix_loc.
3225
3226 Tue Jul 2 23:02:12 1996 Jeffrey A Law (law@cygnus.com)
3227
3228 * config/tc-h8300.c (build_bytes): If an operand type is
3229 marked as SRC_IN_DST retrieve it from the "destination" op.
3230
3231 Sat Jun 29 13:38:31 1996 Ian Lance Taylor <ian@cygnus.com>
3232
3233 * configure.in (arm-*-riscix*): Set emulation to riscix.
3234 * configure: Rebuild.
3235 * config/te-riscix.h: New file to define TE_RISCIX.
3236
3237 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Define.
3238
3239 Fri Jun 28 15:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
3240
3241 * Makefile.in (config.status): Just run config.status as other
3242 tools do.
3243
3244 Fri Jun 28 11:09:38 1996 Stan Shebs <shebs@andros.cygnus.com>
3245
3246 * mpw-config.in (TARGET_OS): Add definition to conf.
3247
3248 Thu Jun 27 20:39:40 1996 James G. Smith <jsmith@cygnus.co.uk>
3249
3250 * config/tc-mips.c (append_insn): Parenthesize
3251 cop_interlocks expressions.
3252
3253 Thu Jun 27 12:18:26 1996 Ian Lance Taylor <ian@cygnus.com>
3254
3255 * listing.c (listing_print): Close the listing file if it is not
3256 stdout. Close the other files opened for the listing.
3257
3258 * config/tc-sparc.h (md_cons_align): Define.
3259 (sparc_cons_align): Declare.
3260 (HANDLE_ALIGN): Define.
3261 (sparc_handle_align): Declare.
3262 * config/tc-sparc.c (sparc_cons_align): New function.
3263 (sparc_handle_align): New function.
3264 * read.c (cons_worker): Call md_cons_align if it is defined.
3265
3266 * as.h (struct frag): Add fr_file and fr_line fields.
3267 * frags.c (frag_new): Set fr_file and fr_line.
3268 (frag_var): Likewise.
3269 (frag_variant): Likewise.
3270
3271 * as.h (struct frag): Remove unused align_mask and align_offset
3272 fields.
3273
3274 * listing.c (calc_hex): Offset by fr_fix when examining fr_var.
3275 From <uddeborg@carmen.se>.
3276
3277 Wed Jun 26 13:21:34 1996 Ian Lance Taylor <ian@cygnus.com>
3278
3279 * configure.in (mips-*-osf*): New target.
3280 * configure: Rebuild.
3281
3282 * config/tc-m68k.c: Add 68ec060 as a synonym for 68060.
3283
3284 Wed Jun 26 16:23:08 1996 James G. Smith <jsmith@cygnus.co.uk>
3285
3286 * config/tc-mips.c: Added cop_interlocks, to avoid NOP insertion
3287 between co-processor comparisons and branches for the VR4300.
3288
3289 Mon Jun 24 18:02:50 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3290
3291 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3292 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
3293 (docdir): Removed.
3294 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
3295 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
3296 includedir): Use autoconf set values.
3297 (docdir): Removed.
3298
3299 Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
3300
3301 * listing.c (listing_eject): Don't do anything if listing is 0.
3302 (listing_list): Likewise.
3303 (listing_source_line): Likewise.
3304 (listing_title): Don't save title if listing is 0.
3305 (listing_source_file): Check listing rather than listing_tail.
3306
3307 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
3308 using shared libraries.
3309 * configure: Rebuild.
3310
3311 Fri Jun 21 18:22:23 1996 Ian Lance Taylor <ian@cygnus.com>
3312
3313 * config/tc-mips.c (mips_ip): In case 'i'/'j', don't require an
3314 absolute expression if a relocation type was specified.
3315
3316 Fri Jun 21 17:40:16 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
3317
3318 * configure.in: Add support for *-*-rtems* configurations.
3319 * configure: Rebuild.
3320
3321 Fri Jun 21 16:01:18 1996 Richard Henderson <rth@tamu.edu>
3322
3323 * configure.in: Add alpha-*-linuxecoff* target. Use elf for
3324 alpha-*-linux* target. Force bfd_gas for alpha-*. Require
3325 opcodes library for alpha.
3326 * configure: Rebuild with autoconf 2.10.
3327 * config/tc-alpha.c: Substantial rewrite to add ELF support and
3328 use new opcode table.
3329 * config/tc-alpha.h (md_undefined_symbol): Don't define.
3330 (LOCAL_LABEL): Define differently if OBJ_ELF.
3331 (FAKE_LABEL_NAME): Define if OBJ_ELF.
3332 * config/alpha-opcode.h: Remove.
3333 * config/obj-elf.h: If TC_ALPHA, define ECOFF_DEBUGGING.
3334 * Makefile.in (TARG_CPU_DEP_alpha): Depend upon
3335 include/opcode/alpha.h rather than config/alpha-opcode.h.
3336
3337 Thu Jun 20 19:10:28 1996 Ian Lance Taylor <ian@cygnus.com>
3338
3339 * config/obj-aout.c (obj_emit_relocations): Give an error if the
3340 relocation symbol was not resolved.
3341 * config/obj-coff.c (do_relocs_for): Likewise.
3342
3343 * write.c (adjust_reloc_syms): Refetch the symbol section after
3344 calling S_GET_VALUE, since it may have changed.
3345
3346 * expr.c (struct expr_symbol_line): Define.
3347 (expr_symbol_lines): New static variable.
3348 (make_expr_symbol): Add entry to expr_symbol_lines.
3349 (expr_symbol_where): New function.
3350 * expr.h: Use extern on function declarations.
3351 (expr_symbol_where): Declare.
3352 * symbols.c (resolve_symbol_value): Try to use expr_symbol_where
3353 rather than printing the meaningless name of an expression
3354 symbol.
3355
3356 Thu Jun 20 15:57:41 1996 Ken Raeburn <raeburn@cygnus.com>
3357
3358 * config/tc-i386.c (md_number_to_chars): Deleted.
3359 * config/tc-i386.h (md_number_to_chars): New macro.
3360
3361 * config/tc-alpha.c (build_operate_n, build_mem): Moved earlier in
3362 the file.
3363 (load_symbol_address, load_expression): Use build_mem.
3364 (build_operate): New function.
3365 (emit_addq_r): Use it.
3366
3367 Wed Mar 13 22:14:14 1996 Pat Rankin <rankin@eql.caltech.edu>
3368
3369 * symbols.c (colon): #if VMS, use S_SET_OTHER to store `const_flag'.
3370
3371 Tue Mar 5 14:31:45 1996 Pat Rankin <rankin@eql.caltech.edu>
3372
3373 * config/tc-vax.h (NOP_OPCODE): Define.
3374
3375 Sun Feb 4 21:01:03 1996 Pat Rankin <rankin@eql.caltech.edu>
3376
3377 * config/obj-vms.h (S_IS_COMMON): Define.
3378 (S_IS_LOCAL): Check for \002 as well as \001.
3379 (LONGWORD_ALIGNMENT): New macro.
3380 (SUB_SEGMENT_ALIGN): Use it.
3381
3382 Fri Jan 26 17:44:09 1996 Pat Rankin <rankin@eql.caltech.edu>
3383
3384 * config/vms-conf.h: Reconcile with conf.in.
3385
3386 Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
3387
3388 * write.c (is_dnrange): Only define if TC_GENERIC_RELAX_TABLE is
3389 defined.
3390
3391 * doc/as.texinfo: Document that any number of hex digits can
3392 follow \x.
3393
3394 * as.c (struct defsym_list): Define.
3395 (defsyms): New static variable.
3396 (parse_args): Just put --defsym arguments on defsyms list, rather
3397 than defining them.
3398 (main): Define defsyms after output file is created.
3399
3400 * config/tc-m68k.c (m68k_ip): Reject PRE and POST indexing mode on
3401 cpu32. From Eric Norum <Eric.Norum@usask.ca>.
3402
3403 * config/tc-mips.c (mips_ip): In cases 'I', 'i', and 'j', set
3404 insn_error rather than calling check_absolute_expr.
3405
3406 * as.c (emulation_name): Remove unused static variable.
3407 (default_emul_bfd_name): Add return NULL to avoid warning.
3408 * ecoff.c (ecoff_stab): Remove unused variables name and
3409 name_end.
3410 * frags.c (frag_new): Remove unused variable tmp.
3411 * hash.c (hash_grow): Parenthesize + within <<.
3412 (hash_print_statistics): Use %lu, not %d, to print unsigned
3413 long variables.
3414 * messages.c: Include "libiberty.h".
3415 (fprint_value): Add cast to avoid printf warning.
3416 (sprint_value): Likewise.
3417 * read.c: Include "ecoff.h".
3418 (emit_expr): Add casts to avoid printf warnings.
3419 * read.h: Use extern for function declarations.
3420 (pop_insert): Declare.
3421 * stabs.c: Include "ecoff.h".
3422 * subsegs.c (subseg_set_rest): Remove unused variables tmp,
3423 former_last_fragP, and new_fragP.
3424 * subsegs.h (subsegs_print_statistics): Declare.
3425 * symbols.c (debug_verify_symchain): Change macro to discard
3426 arguments.
3427 * write.c (dump_section_relocs): Likewise.
3428 * write.h: Use extern for function declarations.
3429 (write_print_statistics): Declare.
3430 * config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
3431 warning.
3432 * config/e-mipself.c (mipself_bfd_name): Likewise.
3433 * config/obj-elf.h (elf_ecoff_set_ext): Declare.
3434
3435 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): If OBJ_ELF, always
3436 emit relocations against external symbols.
3437
3438 * config/tc-alpha.c (tc_gen_reloc): Output a sensible error
3439 message if bfd_reloc_type_lookup fails, rather than calling
3440 assert.
3441
3442 * config/tc-alpha.c (alpha_force_relocation): Add
3443 BFD_RELOC_12_PCREL to switch.
3444
3445 Tue Jun 18 20:29:57 1996 Doug Evans <dje@canuck.cygnus.com>
3446
3447 * config/tc-i386.h (LOCAL_LABEL,FAKE_LABEL_NAME): Use defaults for
3448 TE_PE (Lfoo, not .Lfoo).
3449
3450 Tue Jun 18 17:13:33 1996 Ian Lance Taylor <ian@cygnus.com>
3451
3452 * read.c (s_fill): Don't warn about a zero repeat count.
3453
3454 * config/tc-mips.c (mips_ip): Don't warn about using AT as a
3455 coprocessor register.
3456
3457 * config/tc-i386.c (md_assemble): When checking the size of a
3458 register to set the size of an instruction, do a bitwise and with
3459 Reg8 and Reg16 rather than requiring the type to be exactly Reg8
3460 or Reg16.
3461
3462 Tue Jun 18 13:19:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
3463
3464 * config/tc-h8300.c (parse_reg): Tweak error messages.
3465 (build_bytes): Likewise.
3466 (skip_colonthing): Handle :32 suffix.
3467 (get_specific): Promote L_24 to L_32 if it makes a match.
3468 Don't always promote L_8 to L_16.
3469 (do_a_fix_imm): Clean up L_32 and L_24 handling.
3470
3471 * config/tc-h8300.c (Smode): New variable.
3472 (h8300hmode): Turn off Hmode.
3473 (h8300smode): New function. Turn on Smode and Hmode.
3474 (md_pseudo_table): New ".h8300s" pseudo-op.
3475 (parse_reg): Handle "exr" register.
3476 (get_operand): Handle bizarre syntax for "stm.l" and "ldm.l".
3477 Handle "mach" and "machl" operands for ldmac.
3478 (get_specific): Handle "stm.l" and "ldm.l".
3479 (build_bytes): Handle "stm.l" and "ldm.l"; handle MACREG operands.
3480 * config/tc-h8300.h (COFF_MAGIC): Handle H8/S magic number.
3481 (Smode): Declare.
3482
3483 Mon Jun 17 15:50:53 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3484
3485 * doc/as.texinfo: Reorder chapter of machine dependent options so
3486 that it is sorted by chip name.
3487
3488 * doc/as.texinfo: Use consistant spelling of Vax.
3489 * doc/c-vax.texi: Likewise.
3490
3491 Mon Jun 17 11:26:56 1996 Jeffrey A. Law <law@rtl.cygnus.com>
3492
3493 * config/tc-hppa.c (md_pseudo_table): Add ".begin_try" and ".end_try"
3494 pseudo ops.
3495 (tc_gen_reloc, SOM version): Handle R_BEGIN_TRY and R_END_TRY.
3496 (md_apply_fix): Likewise.
3497 (pa_try): New function.
3498 (hppa_force_relocation): Force relocs for BEGIN_TRY and END_TRY.
3499
3500 Sun Jun 16 22:57:47 1996 Jeffrey A. Law <law@rtl.cygnus.com>
3501
3502 * config/tc-hppa.c (md_pseudo_table): Add ".level" pseudo op.
3503 (pa_level): New function.
3504
3505 Fri Jun 14 20:06:44 1996 Ian Lance Taylor <ian@cygnus.com>
3506
3507 * listing.c (listing_newline): Don't do anything if listing is 0.
3508
3509 Thu Jun 13 17:50:54 1996 Ian Lance Taylor <ian@cygnus.com>
3510
3511 * subsegs.c (section_symbol): If symbol_table_frozen is set, call
3512 symbol_create, not symbol_new.
3513
3514 Wed Jun 12 14:10:44 1996 Ian Lance Taylor <ian@cygnus.com>
3515
3516 * write.c (adjust_reloc_syms): Don't set sy_used_in_reloc for an
3517 absolute symbol unless TC_FORCE_RELOCATION returns true.
3518
3519 * config/obj-coff.c (previous_file_symbol): Remove BFD_ASSEMBLER
3520 version.
3521 (c_dot_file_symbol): BFD_ASSEMBLER version: Don't set the value of
3522 the symbol to a pointer. Don't set previous_file_symbol.
3523 Simplify symbol list rearrangement.
3524 (coff_frob_symbol): Don't do anything with C_FILE symbols.
3525 (coff_adjust_symtab): Don't check previous_file_symbol.
3526
3527 Mon Jun 10 14:52:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3528
3529 * config/tc-ppc.c (ppc_elf_lcomm): New function for .lcomm
3530 directive.
3531 (md_pseudo_table): Add ppc_elf_lcomm.
3532
3533 Mon Jun 10 11:45:51 1996 Ian Lance Taylor <ian@cygnus.com>
3534
3535 * config/tc-m68k.c (m68k_ip): Accept ABSL for 'O', so that `bfextu
3536 d0{24:1},d0' works without an immediate prefix on the bit numbers.
3537 (md_begin): Add digits to alt_notend_table.
3538 (md_parse_option): Make s a const pointer.
3539
3540 * config/tc-sparc.c (md_pseudo_table): Add "empty".
3541 (s_empty): New static function.
3542
3543 * config/obj-coff.c (struct filename_list): Only define if not
3544 BFD_ASSEMBLER.
3545 (filename_list_head, filename_list_tail): Likewise.
3546 (c_section_symbol): Remove unused BFD_ASSEMBLER version.
3547 (obj_coff_endef, BFD_ASSEMBLER version): Don't set the debugging
3548 flag for C_MOS, C_MOE, C_MOU, or C_EOS symbols, since they should
3549 have a section of N_ABS rather than N_DEBUG. If we do a merge,
3550 remove the new symbol from the list.
3551 (obj_coff_endef, both versions): Call tag_insert even if there is
3552 an old symbol with the same name, if the old symbol does not
3553 happen to be a tag.
3554 (coff_frob_symbol): Check SF_GET_TAG, C_EOF, and C_FILE outside of
3555 the SF_GET_DEBUG condition. Don't call SA_SET_SYM_ENDNDX with a
3556 symbol that will be moved to the end of the symbol list.
3557 (coff_adjust_section_syms): Always call section_symbol for .text,
3558 .data, and .bss.
3559 (coff_frob_section): Likewise. Also, remove unused variable
3560 strname.
3561
3562 * config/tc-ns32k.c (convert_iif): Call frag_grow rather than
3563 manipulating frags directly.
3564 (md_number_to_field): Adjust mem_ptr correctly if ENDIAN is
3565 defined.
3566
3567 * app.c (do_scrub_chars): If '/' is LINE_COMMENT_START, check
3568 whether the next character is '*' before checking whether we are
3569 at the start of a line. Permit LINE_COMMENT_START to start a
3570 comment in state 1 (seen some whitespace) as well, to match the
3571 documentation.
3572
3573 * gasp.c (do_align): Permit a fill value for .align.
3574
3575 Wed Jun 5 17:09:26 1996 Ian Lance Taylor <ian@cygnus.com>
3576
3577 * read.c (next_char_of_string): Warn if a newline is seen in the
3578 middle of a string. Call bump_line_counters when appropriate.
3579
3580 Wed Jun 5 17:08:36 1996 Richard Henderson <rth@tamu.edu>
3581
3582 * symbols.c (colon): Use LOCAL_LABEL.
3583
3584 Tue Jun 4 10:55:16 1996 Tom Tromey <tromey@csk3.cygnus.com>
3585
3586 * Makefile.in (install): Don't check to see if tooldir exists.
3587 Make $(tooldir) and $(tooldir)/bin.
3588
3589 Tue Jun 4 10:14:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3590
3591 * config/ppc-sol.mt (TDEFINES): Don't turn on -mregnames by
3592 default.
3593
3594 Mon Jun 3 11:34:41 1996 Ian Lance Taylor <ian@cygnus.com>
3595
3596 * config/tc-mips.c (mips_ip): Don't call as_warn if we are setting
3597 insn_error. Don't put the string "ERROR" in insn_error. Set
3598 insn_error rather than calling as_warn for an unsupported opcode.
3599
3600 Sat Jun 1 21:51:55 1996 Ian Lance Taylor <ian@cygnus.com>
3601
3602 * config/tc-mips.c (md_parse_option): Check for a 64 bit format
3603 before permitting -64.
3604 * output-file.c (output_file_create): Remove duplicate
3605 bfd_perror.
3606
3607 Fri May 31 01:08:06 1996 Ian Lance Taylor <ian@cygnus.com>
3608
3609 * config/tc-mips.c (md_begin): If -64, create a .MIPS.options
3610 section rather than a .reginfo section.
3611 (mips_elf_final_processing): If -64, write out 64 bit RegInfo
3612 information.
3613
3614 * config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
3615 bit value with the high bit set.
3616
3617 Thu May 30 19:00:19 1996 Ian Lance Taylor <ian@cygnus.com>
3618
3619 * read.c (s_lcomm): Set section flags for .sbss section.
3620
3621 * config/tc-mips.c (mips_64): New static variable.
3622 (mips_target_format): If mips_64, return elf64 targets rather than
3623 elf32 ones.
3624 (md_longopts): Add "32" and "64".
3625 (md_parse_option): Handle -32 and -64.
3626 (md_show_usage): Mention -32 and -64.
3627 (cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
3628 a 4 byte one.
3629
3630 Thu May 30 10:36:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3631
3632 * config/tc-ppc.c (comment_chars): Make '!' a comment character
3633 for Solaris compatibility.
3634
3635 * stabs.c (s_stab_generic): Under PowerPC Solaris, convert a
3636 .stabd with 4 arguments into a .stabn.
3637
3638 Wed May 29 16:43:16 1996 Ian Lance Taylor <ian@cygnus.com>
3639
3640 * config/tc-mips.c (macro): When passing X_add_number to
3641 macro_build, cast it to int first.
3642
3643 Tue May 28 13:29:39 1996 Ian Lance Taylor <ian@cygnus.com>
3644
3645 * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as
3646 created by emit_expr.
3647
3648 * symbols.c (symbol_create): If bfd_make_empty_symbol fails, call
3649 as_perror rather than assert.
3650
3651 Fri May 24 18:24:11 1996 Ian Lance Taylor <ian@cygnus.com>
3652
3653 * config/tc-mips.c (mips_ip): Mark sections created to hold
3654 floating point information as read only.
3655
3656 Fri May 24 12:07:54 1996 David Edelsohn <edelsohn@mhpcc.edu>
3657
3658 * config/tc-ppc.c (ppc_set_cpu): Change defaults to match AIX.
3659
3660 Thu May 23 17:34:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3661
3662 * read.c (potable): Add .skip as a synonym for .space.
3663
3664 * stabs.c (s_stab_generic): For PowerPC ELF, allow .stabd to take
3665 4 arguments, providing the 4th argument is 0, to allow
3666 compatibility with the Solaris assembler.
3667
3668 Thu May 16 15:51:48 1996 Ian Lance Taylor <ian@cygnus.com>
3669
3670 * config/tc-sh.h (struct sh_segment_info_type): Define.
3671 (TC_SEGMENT_INFO_TYPE): Define.
3672 (sh_frob_label): Declare.
3673 (tc_frob_label): Define.
3674 (sh_flush_pending_output): Declare.
3675 (md_flush_pending_output): Define.
3676 * config/tc-sh.c (md_assemble): If relaxing, emit a R_SH_CODE
3677 reloc before the instruction if necessary.
3678 (sh_frob_label): New function.
3679 (sh_flush_pending_output): New function.
3680 (sh_coff_frob_file): Ignore ALIGN, CODE, DATA, and LABEL relocs
3681 when looking for the reloc for the target of .uses.
3682 (md_convert_frag): Fix printf format (%0xlx to 0x%lx).
3683 (sh_force_relocation): Force CODE, DATA, and LABEL relocs to be
3684 emitted.
3685 (md_apply_fix): Ignore CODE, DATA, and LABEL relocs.
3686 (sh_coff_reloc_mangle): Force CODE, DATA, and LABEL relocs to use
3687 the absolute symbol.
3688
3689 * subsegs.h (segment_info_type): Add tc_segment_info_data field if
3690 TC_SEGMENT_INFO_TYPE is defined.
3691
3692 Wed May 15 12:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
3693
3694 * config/tc-i386.c (md_assemble): Make sure the opcode suffix
3695 matches the register size.
3696
3697 Wed May 15 08:33:37 1996 Jeffrey A Law (law@cygnus.com)
3698
3699 * config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
3700 fx_done set.
3701 (do_relocs_for): Likewise.
3702 (fixup_segment): Don't just quit if linkrelax is set. Try to
3703 apply non pc-relative sym1-sym2 fixups, even if linkrelax is
3704 nonzero.
3705
3706 Fri May 10 14:16:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3707
3708 * config/tc-ppc.c (ppc_elf_validate_fix): Allow GOT and section
3709 relative relocations with -mrelocatable. Also allow unfixed
3710 relocs in .ex_shared.
3711
3712 Tue May 7 11:24:10 1996 Ian Lance Taylor <ian@cygnus.com>
3713
3714 * config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
3715 non-zero before assuming this is a long file name.
3716 (w_strings): Likewise.
3717 (c_dot_file_symbol): Set FNAME_OFFSET to 1 for a long file name.
3718
3719 * config/obj-coff.c (w_strings): Move declaration of i inside
3720 #ifdef block which uses it.
3721
3722 Tue May 7 00:49:58 1996 Jeffrey A Law (law@cygnus.com)
3723
3724 * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
3725 "relaxmode". Output relocs which identify various relaxing
3726 possibilities for mov.[bwl] instructions.
3727 (build_bytes): Pass in a relaxing mode to do_a_fix_imm.
3728
3729 Mon May 6 15:26:28 1996 Doug Evans <dje@canuck.cygnus.com>
3730
3731 * config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
3732 (MD_APPLY_FIX3): Define.
3733 * config/tc-arm.c (my_get_expression): Only watch for bad segments
3734 if OBJ_AOUT.
3735 (md_apply_fix3): Renamed from md_apply_fix.
3736 If pcrel reloc and symbol is in different section, undo effects
3737 of md_pcrel_from.
3738
3739 Sat May 4 12:49:35 1996 Jeffrey A Law (law@cygnus.com)
3740
3741 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
3742 any reloc with an LR% or RR% field selector for SOM.
3743
3744 Sat May 4 11:26:19 1996 Ian Lance Taylor <ian@cygnus.com>
3745
3746 * Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
3747 variables.
3748
3749 Fri May 3 17:58:31 1996 Ian Lance Taylor <ian@cygnus.com>
3750
3751 * config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
3752 SF_GET_STATICS set.
3753 (yank_symbols): Likewise.
3754
3755 Wed May 1 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
3756
3757 * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
3758 BFD_ASSEMBLER, add name field.
3759 * config/obj-coff.c: Include "libiberty.h".
3760 (coff_header_append): Handle long section names.
3761 (crawl_symbols): Just use the name field for the symbol name,
3762 without worrying about null byte termination.
3763 (w_strings): Handle long section names.
3764 (write_object_file): Likewise. Also, use the name field, rather
3765 than scnhdr.s_name.
3766 (obj_coff_add_segment): Permit long section names.
3767 (obj_coff_init_stab_section): Use the name field, rather than
3768 scnhdr.s_name.
3769 (adjust_stab_section): Likewise.
3770 * config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.
3771
3772 * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
3773 (mem_fmt): Likewise.
3774 (md_apply_fix): Don't check fx_im_disp field.
3775
3776 Thu Apr 25 11:39:51 1996 Ian Lance Taylor <ian@cygnus.com>
3777
3778 * configure.in: Add * after sparc*-*-vxworks.
3779 * configure: Rebuild.
3780
3781 * app.c (do_scrub_begin): If tc_comment_chars is not defined,
3782 define it to comment_chars. Use tc_comment_chars rather than
3783 comment_chars.
3784 (do_scrub_chars): Use tc_comment_chars rather than comment_chars.
3785 * config/tc-m68k.h (tc_comment_chars): Define.
3786 (m68k_comment_chars): Declare.
3787 * config/tc-m68k.c (m68k_comment_chars): Rename from
3788 comment_chars. Change into a pointer rather than an array.
3789 (md_longopts): Add "bitwise-or".
3790 (md_parse_option): Handle OPTION_BITWISE_OR.
3791 (md_show_usage): Mention --bitwise-or.
3792 * doc/c-m68k.texi: Document --bitwise-or.
3793
3794 Wed Apr 24 11:28:38 1996 Ian Lance Taylor <ian@cygnus.com>
3795
3796 * config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
3797 in 68000 mode.
3798
3799 * config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
3800 call demand_empty_rest_of_line. Non BFD_ASSEMBLER version:
3801 correct handling of input line pointer, and call
3802 demand_empty_rest_of_line.
3803
3804 Mon Apr 22 18:02:37 1996 Doug Evans <dje@blues.cygnus.com>
3805
3806 * config/tc-sparc.c (in_bitfield_range): New static function.
3807 (sparc_ip): New cases X,Y. Use SPARC_OPCODE_ARCH_V9_P.
3808 (md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
3809 BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
3810 (md_apply_fix): New cases BFD_RELOC_SPARC_[56].
3811 (tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].
3812
3813 Thu Apr 18 18:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
3814
3815 * config/obj-coff.c: BFD_ASSEMBLER:
3816 (coff_last_bf): New static variable.
3817 (coff_frob_symbol): Set endndx of a .bf symbol.
3818 Non BFD_ASSEMBLER:
3819 (obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
3820 (last_bfP): New static variable.
3821 (yank_symbols): Set endndx of a .bf symbol.
3822
3823 Thu Apr 18 11:53:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3824
3825 * config/tc-ppc.c (md_parse_option): Add support for Solaris's -le
3826 and -s options. Add -be for good measure.
3827
3828 Wed Apr 17 12:31:01 1996 Ian Lance Taylor <ian@cygnus.com>
3829
3830 * read.c (s_space): Support non-constant fill value. Handle fill
3831 value correctly for a size other than 1.
3832
3833 Tue Apr 16 15:17:40 1996 Doug Evans <dje@canuck.cygnus.com>
3834
3835 * config/tc-arm.c (my_get_float_expression): Update call to
3836 gen_to_words, X_PRECISION changed from 6 to 5.
3837
3838 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3839
3840 * config/tc-ppc.c (register_name,reg_name_search): Move register
3841 name lookup from PE specific code to all targets. Add support for
3842 -mregnames/-mno-regnames to control whether register names are
3843 expanded or not.
3844 (md_assemble): Call register_name for all platforms.
3845 (md_parse_option): Add support for -mregnames/-mno-regnames.
3846
3847 * configure.in (powerpcle*-*-solaris): Add support.
3848 (powerpc*-*-linux): Ditto.
3849 * configure: Regenerate.
3850
3851 * config/ppc-sol.mt: New config file for PowerPC Solaris.
3852
3853 Mon Apr 15 12:26:33 1996 Ian Lance Taylor <ian@cygnus.com>
3854
3855 * config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
3856 be associated with a single %lo reloc.
3857
3858 * config/tc-mips.c (load_address): Cast X_add_number to valueT
3859 before comparing against MAX_GPREL_OFFSET, so that negative
3860 numbers are handled correctly.
3861 (macro): Likewise.
3862
3863 Thu Apr 11 12:39:02 1996 Ian Lance Taylor <ian@cygnus.com>
3864
3865 * config/tc-sparc.c (last_insn): New static variable.
3866 (md_assemble): Warn about putting floating point branches in a
3867 delay slot. If architecture is less than v9, insert NOP
3868 instructions between floating point instructions and floating
3869 point branches. (The SunOS assembler does both these operations.)
3870 Save the last instruction opcode.
3871 (sparc_ip): Add pinsn parameter. Change caller.
3872
3873 * config/tc-m68k.c (md_estimate_size_before_relax): Correct check
3874 for byte jump to next instruction to skip empty frags.
3875
3876 Wed Apr 10 16:48:12 1996 Ian Lance Taylor <ian@cygnus.com>
3877
3878 * config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
3879 for addq with a 16 bit signed value, just emit a lda instruction
3880 instead.
3881
3882 Wed Apr 10 14:34:49 1996 Jeffrey A Law (law@cygnus.com)
3883
3884 * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
3885 of a 32bit operand.
3886
3887 Mon Apr 8 14:42:53 1996 Ian Lance Taylor <ian@cygnus.com>
3888
3889 * configure.in: Permit --enable-shared to specify a list of
3890 directories.
3891 * configure: Rebuild.
3892
3893 Fri Apr 5 17:01:35 1996 Jeffrey A Law (law@cygnus.com)
3894
3895 * config/tc-h8300.c (get_specific): Remove some #if 0 code.
3896 (build_bytes): Remove all ABSMOV related code; it's unnecessary.
3897
3898 Fri Apr 5 15:13:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3899
3900 * config/atof-ieee.c: Fix handling of denormalized extended
3901 precision numbers and overflow/underflow detection.
3902 (MAX_PRECISION, X_PRECISION, P_PRECISION): Changed from 6 to 5, to
3903 not include the 16 bit gap in the m68k extended precision format.
3904
3905 Fri Apr 5 14:29:23 1996 Ian Lance Taylor <ian@cygnus.com>
3906
3907 * configure.in: Add i386-*-freebsdelf* target; from John Polstra
3908 <jdp@polstra.com>.
3909 * configure: Rebuild.
3910
3911 Fri Apr 5 18:39:28 1996 James G. Smith <jsmith@cygnus.co.uk>
3912
3913 * config/tc-mips.c: Allow non-zero offsets from .sdata symbols to
3914 be accessed using the $gp register.
3915 * config/tc-mips.h (MAX_GPREL_OFFSET): Added.
3916
3917 Wed Apr 3 10:56:14 1996 Doug Evans <dje@canuck.cygnus.com>
3918
3919 * config/tc-sparc.c (sparc_md_end): Set bfd machine number to
3920 bfd_mach_sparc_sparclet if current_architecture is sparclet.
3921
3922 Mon Apr 1 16:55:44 1996 Ian Lance Taylor <ian@cygnus.com>
3923
3924 * read.c (get_line_sb): Bump line counters based on
3925 input_line_pointer[-1], not *input_line_pointer. Don't bother to
3926 call LISTING_NEWLINE.
3927 (s_macro): Don't call demand_empty_rest_of_line.
3928 * app.c (do_scrub_chars): When handling C style comments, unget
3929 ch2 rather than ch.
3930
3931 Fri Mar 29 16:15:06 1996 Ian Lance Taylor <ian@cygnus.com>
3932
3933 * read.h (enum linkonce_type): Define.
3934 (s_linkonce): Declare.
3935 * read.c (potable): Add "linkonce".
3936 (s_linkonce): New function.
3937 * subsegs.h (segment_info_type): Add linkonce field to
3938 MANY_SEGMENTS && ! BFD_ASSEMBLER section.
3939 * config/obj-coff.h (obj_handle_link_once): Define if TE_PE.
3940 (obj_coff_pe_handle_link_once): Declare if TE_PE.
3941 * config/obj-coff.c: If TE_PE and not BFD_ASSEMBLER, #include
3942 "coff/pe.h".
3943 (obj_coff_pe_handle_link_once): New function, defined if TE_PE.
3944 (c_section_symbol): If TE_PE, set the x_comdat field in the aux
3945 entry based on the linkonce field in segment_info.
3946 * doc/as.texinfo: Document .linkonce.
3947
3948 Fri Mar 29 11:31:27 1996 J.T. Conklin (jtc@lisa.cygnus.com)
3949
3950 * doc/as.1: Changed to be recognized by catman -w on Solaris.
3951
3952 Thu Mar 28 15:27:47 1996 Ian Lance Taylor <ian@cygnus.com>
3953
3954 * stabs.c (s_stab_generic): Call the listing functions before
3955 doing the rest of the processing, which may involve freeing the
3956 string. Pass string, not string + stroff, to OBJ_PROCESS_STAB in
3957 SEPARATE_STAB_SECTIONS case.
3958
3959 * config/tc-hppa.c: Remove nested comment.
3960 (tc_gen_reloc): Move label done inside the ifdef in which it is
3961 used.
3962 (md_apply_fix): Pass pointers to correct types to libhppa.h
3963 functions. Always return a value.
3964
3965 * config/tc-mips.h (tc_frob_file): Define.
3966 (mips_frob_file): Declare.
3967 * config/tc-mips.c (struct mips_hi_fixup): Define.
3968 (mips_hi_fixup_list): New static variable.
3969 (imm_unmatched_hi): New static variable.
3970 (md_assemble): Clear imm_reloc, imm_unmatched_hi, and
3971 offset_reloc. Pass imm_unmatched_hi to append_insn.
3972 (append_insn): Add unmatched_hi parameter. If it is set, add the
3973 new fixup to mips_hi_fixup_list. Change all callers.
3974 (mips_ip): Set imm_unmatched_hi when appropriate.
3975 (mips_frob_file): New function.
3976
3977 Thu Mar 28 11:47:59 1996 Doug Evans <dje@canuck.cygnus.com>
3978
3979 * configure.in (sparc-*-solaris2*): Renamed from sparc*-*-solaris2*.
3980 * configure: Regenerated.
3981
3982 Tue Mar 26 18:19:12 1996 Ian Lance Taylor <ian@cygnus.com>
3983
3984 * as.c (main): Call bfd_set_error_program_name.
3985
3986 Fri Mar 22 11:13:00 1996 Ian Lance Taylor <ian@cygnus.com>
3987
3988 * as.h (strdup): Don't declare.
3989 * stabs.c: Include libiberty.h
3990 (get_stab_string_offset): Use xstrdup rather than strdup.
3991 (s_stab_generic): Likewise.
3992 * as.c (parse_args): Likewise.
3993 * read.c (s_mri_sect): Likewise.
3994
3995 * gasp.c (change_base): Recognize \(...) construct documented to
3996 pass through enclosed characters literally through to the output.
3997 (process_assigns): Likewise. Also, be more careful to avoid
3998 looking past the end of the buffer.
3999
4000 Thu Mar 21 13:18:43 1996 Ian Lance Taylor <ian@cygnus.com>
4001
4002 * config/tc-i386.c (md_parse_option): If OBJ_ELF, ignore -k for
4003 FreeBSD compatibility. From John Polstra <jdp@polstra.com>.
4004
4005 Wed Mar 20 18:13:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4006
4007 * doc/as.texinfo, doc/c-i960.texi: Fix typos.
4008
4009 Wed Mar 20 17:05:16 1996 David Mosberger-Tang <davidm@azstarnet.com>
4010
4011 * config/alpha-opcode.h: Added cvtst instruction.
4012
4013 Mon Mar 18 13:12:46 1996 Ian Lance Taylor <ian@cygnus.com>
4014
4015 * ecoff.c (ecoff_stab): Don't try to make a symbol out of the stab
4016 string. Extract the addend from the result of expression.
4017
4018 Fri Mar 15 17:10:43 1996 Ian Lance Taylor <ian@cygnus.com>
4019
4020 * app.c (do_scrub_chars): If whitespace is seen in state 11, and
4021 LABELS_WITHOUT_COLONS is not defined, and we are not in m68k MRI
4022 mode, change the state to 3 rather than 1.
4023
4024 Thu Mar 14 18:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
4025
4026 * config/obj-coff.h (C_REGISTER_SECTION): Change from 20 to 50, to
4027 correspond to 11 March change.
4028
4029 Thu Mar 14 15:27:10 1996 Jeffrey A Law (law@cygnus.com)
4030
4031 * config/tc-h8300.c (build_bytes, MEMIND case): Generate
4032 an R_MEM_INDIRECT reloc rather than R_RELBYTE.
4033
4034 Tue Mar 12 12:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
4035
4036 * configure: Rebuild with autoconf 2.8.
4037
4038 Mon Mar 11 18:57:12 1996 Ian Lance Taylor <ian@cygnus.com>
4039
4040 * config/atof-ieee.c (gen_to_words): Improve handling of
4041 X_PRECISION numbers. Based on patches from Andreas Schwab
4042 <schwab@issan.informatik.uni-dortmund.de>.
4043
4044 Mon Mar 11 09:59:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
4045
4046 * as.h (SEG_NORMAL, SEG_LIST): Bump segment limit from 10 to 40.
4047 (SEG_LAST): New.
4048 * subsegs.c (MANY_SEGMENTS): Increase segment limit.
4049 * obj-coff.c (seg_N_TYPE, seg_info_off_by_4): Likewise.
4050 (do_relocs_for, w_symbols, obj_coff_add_segment, do_linenos_for,
4051 crawl_symbols, coff_header_append): Loop to SEG_LAST rather than
4052 SEG_E9.
4053
4054 Thu Mar 7 15:17:39 1996 Doug Evans <dje@charmed.cygnus.com>
4055
4056 * config/tc-sparc.c (sparc_ip): Handle operand char 'O' (neg reg).
4057
4058 Thu Mar 7 09:19:15 1996 Jeffrey A Law (law@cygnus.com)
4059
4060 * config/tc-hppa.c (SUBSEG_MILLI): Define.
4061 (pa_def_subspaces): Add $MILLICODE$.
4062 (pa_spaces_begin): Set section flags for $MILLICODE$.
4063
4064 Wed Mar 6 14:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
4065
4066 * config/obj-elf.c (obj_elf_section): Only SEC_LOAD if the type is
4067 not SHT_NOBITS. Don't tamper with flags based on type if a
4068 special section was found (revert Feb 29 change).
4069
4070 * config/tc-sh.c (sh_do_align): Only align using the nop pattern
4071 if aligning to a longword boundary or greater.
4072
4073 Tue Mar 5 15:10:43 1996 Jim Wilson <wilson@chestnut.cygnus.com>
4074
4075 * config/tc-sh.c (sh_do_align): Pass 1 not 2 to frag_align.
4076
4077 Mon Mar 4 20:50:57 1996 Steve Chamberlain <sac@slash.cygnus.com>
4078
4079 * configure.in (i386-*-cygwin32): Don't use bfd_gas.
4080 * configure: Regenerated.
4081
4082 Mon Mar 4 10:13:06 1996 Jeffrey A Law (law@cygnus.com)
4083
4084 * config/tc-hppa.c: Add default definitions for R_N0SEL and
4085 R_N1SEL since they're not defined for old versions of hpux.
4086
4087 * config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
4088 Set "sym_ptr_ptr" and "addend" fields to dummy values for
4089 R_N0SEL and R_N1SEL.
4090
4091 Fri Mar 1 10:20:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4092
4093 * flonum-konst.c: Add two more constants for 1e+-2048 and
4094 1e+-4096, and correct the other constants.
4095
4096 * symbols.c (resolve_symbol_value): Handle O_logical_not.
4097
4098 Thu Feb 29 13:58:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4099
4100 * config/obj-elf.c (obj_elf_section): Allow predefined section
4101 types to set the nobits type. Avoid a shadowed declaration.
4102
4103 Wed Feb 28 15:38:56 1996 Jeffrey A Law (law@cygnus.com)
4104
4105 * config/tc-hppa.c (hppa_fix_adjustable): For SOM, don't
4106 reduce relocs using e_nlrsel field selectors.
4107
4108 * write.c (fix_new_exp): Don't use #elif. Some compilers
4109 don't handle it.
4110
4111 * config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
4112 the selector table.
4113 (pa_chk_field_selector): Handle new field selectors for SOM.
4114
4115 Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4116
4117 * configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
4118 * configure: Rebuild.
4119 * config/te-linux.h (LOCAL_LABELS_FB): Define.
4120 * config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
4121 "a.out-m68k-linux".
4122 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
4123 is defined.
4124
4125 Mon Feb 26 18:58:58 1996 Stan Shebs <shebs@andros.cygnus.com>
4126
4127 * mpw-make.sed: Update to handle shared library support.
4128
4129 Mon Feb 26 10:34:10 1996 Doug Evans <dje@charmed.cygnus.com>
4130
4131 * config/tc-sparc.c (sparc_ip): Print all architectures that support
4132 the insn on mismatch.
4133
4134 Fri Feb 23 21:44:39 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4135
4136 * configure.in: Add support for a29-coff.
4137 * configure: Rebuild.
4138
4139 Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
4140
4141 * config/tc-sh.c (sh_coff_frob_file): Don't consider the address
4142 of the section when looking for the R_SH_USES fixup, because the
4143 frag addresses have not yet been adjusted.
4144
4145 * gdbinit.in: Set a breakpoint on as_warn_where.
4146
4147 * config/tc-mips.c (macro): Add missing arguments to macro_build
4148 omitted in last change. From Jim Wilson <wilson@cygnus.com>.
4149
4150 Wed Feb 21 17:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
4151
4152 * config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
4153 if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
4154
4155 Wed Feb 21 09:25:39 1996 Doug Evans <dje@charmed.cygnus.com>
4156
4157 * config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
4158
4159 Tue Feb 20 21:48:03 1996 Doug Evans <dje@charmed.cygnus.com>
4160
4161 * config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
4162 (sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
4163 Recognize [uU] format args as sparclet cpregs.
4164
4165 Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
4166
4167 * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
4168 in bss_section.
4169
4170 Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
4171
4172 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
4173 well as S_IS_EXTERNAL.
4174 (tc_fix_adjustable): Likewise.
4175 * config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
4176 S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
4177 early.
4178 (tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
4179 deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
4180
4181 Mon Feb 19 02:15:57 1996 Doug Evans <dje@charmed.cygnus.com>
4182
4183 * config/tc-sparc.c (max_architecture): Change to sparclite for
4184 32 bit arch.
4185 (default_compatible): Delete.
4186 (sparc_ffs): New function.
4187 (md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
4188 (sparc_ip): Rewrite architecture match and bump logic.
4189
4190 Sun Feb 18 15:03:50 1996 Ian Lance Taylor <ian@cygnus.com>
4191
4192 * configure.in: Check for 'do not mix' from native linker before
4193 trying to use -rpath.
4194 * configure: Rebuild.
4195
4196 Fri Feb 16 16:53:31 1996 Ian Lance Taylor <ian@cygnus.com>
4197
4198 * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
4199 (SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
4200 (SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
4201 * config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
4202 is set.
4203 (w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
4204 to the symbol lnnoptr field, to get the correct file offset.
4205
4206 Thu Feb 15 14:48:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4207
4208 * config/obj-elf.c (elf_frob_symbol): On the PowerPC, force all
4209 symbols that are not function, file, or section symbols to be
4210 object types.
4211
4212 Thu Feb 15 11:20:18 1996 Ian Lance Taylor <ian@cygnus.com>
4213
4214 * configure: Set and substitute RPATH_ENVVAR.
4215 * configure: Rebuild.
4216 * Makefile.in (RPATH_ENVVAR): New variable.
4217 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
4218
4219 * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
4220 doesn't need opcodes. If configuring shared, opcodes needs bfd.
4221 * configure: Rebuild.
4222
4223 Wed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
4224
4225 * read.c (s_mri_sect): Don't return '\0' in type. Set all
4226 appropriate flags in BFD section.
4227
4228 * configure.in (m68k-*-psos*): New target.
4229 * configure: Rebuild.
4230 * config/te-psos.h: New file.
4231 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
4232 is defined.
4233
4234 Wed Feb 14 13:43:24 1996 Ian Lance Taylor <ian@cygnus.com>
4235
4236 From Alan Modra <alan@spri.levels.unisa.edu.au>:
4237 * configure.in: Remove duplicate setting of cpu_type. Check
4238 whether opcodes library is required for on all targets, not just
4239 primary one.
4240 * configure: Rebuild.
4241
4242 * config/tc-mips.c (mips_big_got): New static variable.
4243 (s_extern): Don't declare.
4244 (reg_needs_delay): New static function.
4245 (macro_build): Permit GOT/CALL_HI/LO relocs.
4246 (macro_build_lui): If place is not NULL, use the number in the
4247 expression.
4248 (load_address): Handle mips_big_got case.
4249 (macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
4250 store macros.
4251 (OPTION_XGOT): Define.
4252 (md_longopts): Add "xgot" if OBJ_ELF.
4253 (md_parse_option): Handle -xgot.
4254 (md_show_usage): Mention -xgot.
4255 (md_apply_fix): Permit GOT/CALL_HI/LO relocs.
4256 (tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.
4257
4258 Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4259
4260 * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
4261 the byte relocation, point it to the low byte of the word.
4262
4263 Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
4264
4265 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
4266 * configure: Rebuild.
4267
4268 Mon Feb 12 15:53:46 1996 Doug Evans <dje@charmed.cygnus.com>
4269
4270 * configure.in: Recognize any sparc* cpu.
4271 * configure: Regenerated.
4272
4273 Mon Feb 12 15:41:21 1996 Ian Lance Taylor <ian@cygnus.com>
4274
4275 * read.c (potable): Add "mri" and ".mri".
4276 (s_mri): New function.
4277 * read.h (s_mri): Declare.
4278 * app.c (scrub_m68k_mri): New static variable.
4279 (mri_pseudo): New static variable.
4280 (do_scrub_begin): Add m68k_mri parameter. Use it rather than
4281 flag_m68k_mri. Initialize scrub_m68k_mri.
4282 (mri_state, mri_last_ch): New static variables.
4283 (struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
4284 fields.
4285 (app_push): Save new fields.
4286 (app_pop): Restore new fields.
4287 (do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
4288 If TC_M68K, use a trivial state machine to look for occurrences of
4289 the .mri pseudo-op, and change the mode appropriately.
4290 * as.h (do_scrub_begin): Update prototype.
4291 * input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
4292 do_scrub_begin.
4293 * config/tc-m68k.c (reg_prefix_optional_seen): New static
4294 variable.
4295 (m68k_mri_mode_change): New function.
4296 (md_parse_option): Set reg_prefix_optional_seen.
4297 * config/tc-m68k.h (m68k_mri_mode_change): Declare.
4298 (MRI_MODE_CHANGE): Define.
4299 * doc/as.texinfo: Document .mri pseudo-op.
4300
4301 * app.c (do_scrub_chars): In MRI mode, don't treat '#' as a
4302 comment character.
4303
4304 Mon Feb 12 15:16:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4305
4306 Support for OBJ_ELF on m68k, mostly inside #ifdef OBJ_ELF:
4307 * config/m68k-parse.h (enum pic_relocation): Define.
4308 (struct m68k_exp): Add pic_reloc field.
4309 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
4310 (tc_fix_adjustable): Define to call tc_m68k_fix_adjustable.
4311 (NO_RELOC): Define to BFD_RELOC_NONE if BFD_ASSEMBLER, to zero
4312 otherwise.
4313 * config/tc-m68k.c: Delete definition of NO_RELOC.
4314 (struct m68k_it): Add pic_reloc field.
4315 (add_fix): Copy over pic_reloc field.
4316 (md_pseudo_table): Interpret .align parameter as byte count.
4317 (mote_pseudo_table): Likewise.
4318 (tc_m68k_fix_adjustable): New function.
4319 (get_reloc_code): New function.
4320 (md_assemble): Use it as last argument to fix_new_exp.
4321 (md_apply_fix_2): For a relocation against a symbol don't put the
4322 addend into the data.
4323 (tc_gen_reloc): Different addend computation for OBJ_ELF.
4324 (m68k_ip): Don't relax an operand that requires pic relocation.
4325 (md_begin): Align .text, .data and .bss on 4 byte boundary by
4326 default.
4327 * write.c (fixup_segment): Don't add symbol value to addend if
4328 TC_M68K and OBJ_ELF.
4329 * config/m68k-parse.y (yylex): Handle @PLTPC, etc.
4330 (motorola_operand): Add rule for `(zapc, EXPR)'.
4331
4332 Mon Feb 12 10:07:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
4333
4334 * ecoff.c (ecoff_directive_weakext): Fixed so that whitespace
4335 *really* is permissible before the comma.
4336
4337 Mon Feb 12 00:12:13 1996 Ian Lance Taylor <ian@cygnus.com>
4338
4339 * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
4340 inserting nop instructions.
4341
4342 Fri Feb 9 10:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
4343
4344 * config/te-aux.h: Change include of aux.h to aux-coff.h.
4345
4346 Thu Feb 8 20:02:58 1996 Ian Lance Taylor <ian@cygnus.com>
4347
4348 * config/tc-i960.c (tc_coff_symbol_emit_hook): Correct storage
4349 class setting for a CALLNAME symbol in COFF.
4350
4351 * read.c (potable): Pass negative numbers for new .balign[wl] and
4352 .p2align[wl] pseudo-ops.
4353 (s_align_bytes): Treat a negative argument as specifying the fill
4354 length.
4355 (s_align_ptwo): Likewise.
4356
4357 Wed Feb 7 14:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
4358
4359 * read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
4360 (do_align): Take new len parameter. Change all callers. Pass it
4361 to md_do_align.
4362 (s_align_bytes): Arg now indicates the length of the fill pattern.
4363 (s_align_ptwo): Likewise.
4364 * config/obj-coff.c (write_object_file): Pass length to
4365 md_do_align.
4366 * config/tc-i386.h (md_do_align): Take new len parameter.
4367 * config/tc-m88k.h (md_do_align): Likewise.
4368 * config/tc-m88k.c (m88k_do_align): Likewise.
4369 * config/tc-sh.h (md_do_align): Likewise.
4370 * config/tc-sh.c (sh_do_align): Likewise.
4371 * doc/as.texinfo: Document new pseudo-ops.
4372
4373 * config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
4374 done in cvt_frag_to_fill.
4375
4376 * config/tc-sh.h (sh_do_align): Declare.
4377 (md_do_align): Define.
4378 * config/tc-sh.c (sh_do_align): New function.
4379
4380 * ecoff.c (ecoff_build_lineno): Don't try to store the address
4381 difference if the next address is before the current one.
4382
4383 * config/tc-m68k.c (struct m68k_cpu): Add alias field.
4384 (archs): Initialize new field.
4385 (m68k_ip): Don't list alias names when listing CPUs which support
4386 an instruction.
4387
4388 * as.c (main): Call parse_args before read_begin.
4389 * app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
4390 front of generated pseudo-ops.
4391 * read.c (potable): Ignore "name".
4392 (s_app_file): Permit a single quote after the string, since one
4393 may appear in m68k MRI mode.
4394
4395 * configure.in: Check for --enable-shared. If linking against
4396 shared BFD and opcodes, fix library name on SunOS, and try to set
4397 -rpath reasonably.
4398 * configure: Rebuild.
4399
4400 Tue Feb 6 15:16:17 1996 Ian Lance Taylor <ian@cygnus.com>
4401
4402 * as.h (flag_m68k_mri): Declare.
4403 * as.c (parse_args): If TC_M68K, set flag_m68k_mri for -M.
4404 * Many files: For MRI syntax that is specific to the m68k MRI
4405 assembler, check flag_m68k_mri rather than flag_mri or
4406 MRI_MODE_NEEDS_PSEUDO_DOT.
4407
4408 Mon Feb 5 16:29:11 1996 Ian Lance Taylor <ian@cygnus.com>
4409
4410 * config/tc-i960.c (ARCH_HX): Define.
4411 (arch_tab): Add HX.
4412 (targ_has_sfr): Handle ARCH_HX.
4413 (targ_has_iclass): Handle ARCH_HX.
4414 (tc_coff_fix2rtype): Add return 0 to avoid warning.
4415 (tc_headers_hook): If the architecture was specified explicitly,
4416 use it when setting the flags. Set the extern variable coff_flags
4417 rather than headers->filehdr.f_flags, since the latter is set
4418 unconditionally in obj-coff.c.
4419 (i960_handle_align): Remove unused variable fixp.
4420
4421 Support for building bfd and opcodes as shared libraries, based on
4422 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
4423 * configure.in: Set OPCODES and BFD to search directories.
4424 Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
4425 * configure: Rebuild.
4426 * Makefile.in (LDFLAGS, HLDFLAGS): New variables.
4427 (LIBDEPS): New variable.
4428 (as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
4429 $(HLDFLAGS) in link.
4430 (check): Set LD_LIBRARY_PATH in the environment.
4431
4432 Fri Feb 2 17:41:53 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4433
4434 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Make .sdata2, .sbss2,
4435 .PPC.EMB.sdata0, and .PPC.EMB.sbss0 sections all default to
4436 read-only, not read/write.
4437
4438 Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
4439
4440 * Makefile.in (INSTALL_XFORM): Remove -e.
4441
4442 Fri Feb 2 12:32:15 1996 Ian Lance Taylor <ian@cygnus.com>
4443
4444 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
4445 than comparing S_GET_SEGMENT to undefined_section.
4446 (write_object_file): Skip symbols which were equated to an
4447 undefined or common symbol.
4448 * symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
4449 S_IS_COMMON rather than comparing S_GET_SEGMENT to
4450 undefined_section.
4451 (S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
4452 or S_IS_COMMON call S_GET_VALUE.
4453 * config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
4454 * config/obj-aout.c (obj_emit_relocations): If a reloc is equated
4455 to an undefined or common symbol, convert the reloc to be against
4456 the target symbol.
4457 (obj_crawl_symbol_chain): Skip symbols which were equated to an
4458 undefined or common symbol.
4459 * config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
4460 * config/obj-bout.c (obj_emit_relocations): If a reloc is equated
4461 to an undefined or common symbol, convert the reloc to be against
4462 the target symbol.
4463 (obj_crawl_symbol_chain): Skip symbols which were equated to an
4464 undefined or common symbol.
4465 * config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
4466 S_IS_COMMON rather than comparing S_GET_SEGMENT to
4467 undefined_section.
4468 (yank_symbols): Skip symbols which were equated to an undefined or
4469 common symbol.
4470
4471 Thu Feb 1 15:34:32 1996 Ian Lance Taylor <ian@cygnus.com>
4472
4473 * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
4474 * config/obj-bout.h (S_IS_LOCAL): Likewise.
4475
4476 * configure.in: Make sure we only add m68k-parse.o to
4477 ${extra_objects} once, no matter how many m68k targets have been
4478 enabled.
4479 * configure: Rebuild.
4480
4481 Wed Jan 31 18:31:46 1996 Steve Chamberlain <sac@slash.cygnus.com>
4482
4483 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
4484 * configure: Rebuild.
4485
4486 Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
4487
4488 * config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
4489 * doc/c-m68k.texi: Document .extend and .ldouble.
4490
4491 * configure.in (m68*-apple-aux*): New target.
4492 * config/te-aux.h: New file.
4493 * config/obj-coff.c (compare_external_relocs): New static function
4494 if TE_AUX.
4495 (do_relocs_for): Sort relocs if TE_AUX.
4496 (fixup_segment): If TE_AUX, store common symbol value in segment.
4497 * config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
4498
4499 Wed Jan 31 12:24:58 1996 Ian Lance Taylor <ian@cygnus.com>
4500
4501 * config/obj-coff.h (S_IS_LOCAL): Check for \002 as well as \001.
4502
4503 * config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
4504 BSF_FUNCTION.
4505 (s_cpload): Set BSF_OBJECT for _gp_disp symbol.
4506 * read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
4507 symbol.
4508 * ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
4509 (ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
4510 an undefined symbol and the size of a function symbol.
4511 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
4512 for all common symbols.
4513
4514 Tue Jan 30 12:35:24 1996 Ken Raeburn <raeburn@cygnus.com>
4515
4516 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit
4517 scaling of index.
4518
4519 * expr.c (operand): Accept 0x hex constants in MRI mode if not on
4520 m68k.
4521
4522 Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
4523
4524 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
4525 of object. From Ronald F. Guilmette <rfg@monkeys.com>.
4526
4527 * ecoff.c (localsym_t): Add addend field.
4528 (add_ecoff_symbol): Add addend argument. Change all callers.
4529 (coff_sym_value): Make static.
4530 (coff_sym_addend): New static variable.
4531 (ecoff_directive_def): Initialize coff_sym_addend.
4532 (ecoff_directive_val): Accept symbol + constant.
4533 (ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
4534 (ecoff_build_symbols): Include the addend in the symbol value.
4535
4536 Fri Jan 26 19:28:52 1996 Kim Knuttila <krk@cygnus.com>
4537
4538 * config/tc-ppc.c (md_assemble): Ignore overflow on
4539 BFD_RELOC_16_GOTOFF and BFD_RELOC_PPC_TOC16.
4540
4541 Fri Jan 26 16:14:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4542
4543 * config/tc-ppc.c (md_apply_fix3): SDA21 relocations are now 4
4544 bytes in size, so offset appropriately in big endian mode when
4545 writing the bottom 2 bytes.
4546
4547 Thu Jan 25 20:26:23 1996 Doug Evans <dje@charmed.cygnus.com>
4548
4549 * config/tc-sparc.c (default_compatible): New static local.
4550 (md_begin): Initialize it. Rewrite warn_on_bump handling.
4551 (sparc_ip): If no architecture or -bump specified, don't mark as
4552 mismatched those in default_compatible.
4553
4554 Thu Jan 25 12:21:53 1996 Ian Lance Taylor <ian@cygnus.com>
4555
4556 SCO ELF support from Robert Lipe <robertl@arnet.com>:
4557 * configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
4558 * configure: Rebuild.
4559 * config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
4560 * config/tc-i386.c (sco_id): New function, if SCO_ELF.
4561 * config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
4562 (sco_id): Declare if SCO_ELF.
4563
4564 Thu Jan 25 03:10:53 1996 Doug Evans <dje@charmed.cygnus.com>
4565
4566 * config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
4567 ({max,warn_after}_architecture): New static locals.
4568 (md_begin): Replace NUMOPCODES with sparc_num_opcodes.
4569 If both architecture and -bump requested, set max_architecture to max.
4570 (sparc_md_end): Simplify.
4571 (sparc_ip): Replace references to can_bump_v9_p with max_architecture.
4572 Rewrite code to bump architecture and check for conflicts.
4573 (md_longopts): Recognize -xarch={v8plus,v8plusa} for compatibility
4574 with Solaris assembler.
4575 (md_parse_option): Likewise. Call sparc_opcode_lookup_arch.
4576 (md_show_usage): Update.
4577
4578 Wed Jan 24 22:11:03 1996 Doug Evans <dje@charmed.cygnus.com>
4579
4580 * Makefile.in (RUNTEST): Fix reference to $${srcdir}.
4581
4582 Mon Jan 22 09:21:36 1996 Doug Evans <dje@charmed.cygnus.com>
4583
4584 * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
4585 #ifdef sparcv9 when choosing value.
4586 (ENV64): Delete.
4587 (md_end): Define.
4588 (sparc_md_end): Declare.
4589 * config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
4590 (initial_architecture): New static local.
4591 (can_bump_v9_p): Likewise.
4592 (NO_V9): Delete all occurrences.
4593 (sparc_md_end): New function.
4594 (sparc_ip): New local v9_arg_p. Rework fp reg number test.
4595 Don't bump architecture to v9 unless can_bump_v9_p set.
4596 (md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
4597 * configure.in (sparc64 target cpu): Don't set obj_format here.
4598 (SPARC_V9): Renamed from sparcv9.
4599 (sparc64-*-elf*): Define SPARC_ARCH64.
4600 * configure: Regenerated.
4601 * acconfig.h (SPARC_V9): Renamed from sparcv9.
4602 (SPARC_ARCH64): Add.
4603 * conf.in: Regenerated.
4604 * config/vmsconf.h: Update.
4605
4606 Mon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
4607
4608 * config/tc-mips.c (load_register): Optimise "dli" loads.
4609 (md_show_usage): add "-mcpu=vr4100" to help text.
4610
4611 Mon Jan 22 11:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
4612
4613 * symbols.c (resolve_symbol_value): If a symbol is equated to an
4614 undefined symbol, preserve the X_op of O_symbol.
4615 (S_GET_VALUE): Fix check to permit this case.
4616 * write.c (write_relocs): If a reloc is against an undefined
4617 symbol equated to another symbol, change the reloc to be against
4618 the latter symbol.
4619 * config/obj-coff.c (do_relocs_for): Likewise.
4620
4621 * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
4622 XMC_PR.
4623
4624 Mon Jan 22 10:59:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4625
4626 * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target
4627 computer is PowerPC.
4628
4629 * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations.
4630
4631 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections
4632 mentioned in the eabi.
4633
4634 Thu Jan 18 17:58:19 1996 Kim Knuttila <krk@cygnus.com>
4635
4636 * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section
4637 * config/tc-ppc.c (ppc_pdata): Changed the alignment on pdata_section
4638
4639 Mon Jan 15 17:43:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4640
4641 * config/tc-ppc.c (mapping): Add more relocation suffixes.
4642
4643 Sun Jan 14 21:29:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4644
4645 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .gcc_except_table
4646 as a section it is ok to have unadorned -mrelocatable pointers in.
4647
4648 Sat Jan 13 11:09:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4649
4650 * config/tc-ppc.c (ppc_section*): Wrap these functions inside
4651 #ifdef OBJ_ELF.
4652
4653 Fri Jan 12 15:32:07 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4654
4655 * config/obj-elf.c (obj_elf_section): Add hooks so machine
4656 dependent section attributes can be handled.
4657
4658 * config/tc-ppc.h: (md_elf_section_{letter,type,word,flags}): New
4659 macros to add support for exclude section flag and ordered section
4660 type.
4661
4662 * config/tc-ppc.c (ppc_elf_section_{letter,type,word,flags}): New
4663 functions to add support for exclude section flag and ordered
4664 section type.
4665
4666 Fri Jan 12 12:04:00 1996 Ian Lance Taylor <ian@cygnus.com>
4667
4668 * subsegs.c (section_symbol): Don't try to look up the section
4669 symbol in the hash table. It should be possible to have a symbol
4670 with the same name as a section, but no connection to it.
4671
4672 * read.c (cons_worker): Only call mri_comment_end from flag_mri.
4673 From James Carlson <carlson@xylogics.com>.
4674
4675 * expr.c (operand): Skip whitespace after a close parenthesis.
4676 From James Carlson <carlson@xylogics.com>.
4677
4678 Tue Jan 2 12:43:23 1996 Jim Wilson <wilson@chestnut.cygnus.com>
4679
4680 * config/tc-sh.c (md_apply_fix): Call as_bad_where instead of
4681 as_warn_where for relocation overflow.
4682 (parse_reg): Accept register name only if next character is
4683 not alphanumeric.
4684
4685 Sat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com)
4686
4687 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
4688 addresses for static variables.
4689
4690 Thu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4691
4692 * config/tc-ppc.c (mapping): Make @got give a real GOT relocation,
4693 and xgot give the old toc16 relocation.
4694 (md_apply_fix3): Support all GOT relocations.
4695
4696 Wed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com>
4697
4698 * config/tc-mips.c (load_address): Correctly handle a constant in
4699 SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
4700
4701 Fri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4702
4703 * config/tc-sh.c (parse_reg): Recognize SH3 registers.
4704 (get_specific): Handle A_SSR, A_SPC and A_REG_B.
4705 (build_Mbytes): Handle REG_B.
4706
4707 Fri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com>
4708
4709 * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro.
4710
4711 Fri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com>
4712
4713 * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS.
4714
4715 Thu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com>
4716
4717 * config/obj-coff.c (write_object_file): Set the s_align field to
4718 the number of bytes, rather than to the power of 2.
4719
4720 Tue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com>
4721
4722 * Makefile.in (DISTCLEAN_HERE): New variable.
4723 (distclean): Use it.
4724 (maintainer-clean): Depend upon clean-here rather than clean,
4725 distclean, and clean-info. Run make maintainer-clean in doc.
4726 Remove files listed in DISTCLEAN_HERE.
4727 * doc/Makefile.in (maintainer-clean realclean): Split out from
4728 distclean. Depend upon clean-info and distclean.
4729
4730 Mon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com>
4731
4732 * mac-as.r: Fix copyright and version strings.
4733 (cfrg): Use PROG_NAME instead of literal name.
4734
4735 Mon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com>
4736
4737 * read.c (read_a_source_file): If tc_unrecognized_line is defined,
4738 call it.
4739 * config/tc-a29k.h (tc_unrecognized_line): Define.
4740 * config/tc-a29k.c (a29k_unrecognized_line): New function.
4741 (md_operand): Handle a29k style local dollar labels.
4742
4743 Wed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com>
4744
4745 * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE.
4746
4747 Tue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com>
4748
4749 * read.c (s_fill): If md_flush_pending_output is defined, call
4750 it.
4751
4752 Mon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com>
4753
4754 * config/obj-coff.c (size_section, fill_section, fixup_mdeps):
4755 Treat rs_align_code like rs_align.
4756
4757 Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
4758
4759 * config/tc-arm.c (cp_address_required_here): Set pre_inc when
4760 converting an absolute address into a PC-relative one.
4761
4762 Fri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com>
4763
4764 * mpw-config.in: Don't always use te-generic.h for emulation.
4765 (powerpc-apple-macos): Use emulation te-macos.h.
4766 start-sanitize-gm
4767 (mips-gm-magic): New configuration.
4768 end-sanitize-gm
4769 * mpw-make.sed (install, install-only): Edit in Mac-specific
4770 install procedure.
4771
4772 Fri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com>
4773
4774 * configure.in: Improve message about unsupported ELF targets.
4775 * configure: Rebuild.
4776
4777 * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
4778 pattern is zero. From Manfred Hollstein.
4779
4780 Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
4781
4782 * config/tc-ppc.c (ppc_pe_section): To get the alignment right for
4783 the various idata sections, we check the name on the .section pseudo.
4784
4785 Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4786
4787 * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
4788 add section's paddr to add_number; compatibility to native as and
4789 ld forbids.
4790
4791 Wed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com>
4792
4793 * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3.
4794
4795 * hash.c (struct hash_entry): Moved here...
4796 * hash.h (struct hash_entry): ...from here.
4797
4798 * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj
4799 if it's already known to be null.
4800
4801 Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4802
4803 * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
4804 bit relocs converted to PC relative relocs. This turned out to
4805 add the offset from the beginning of .text twice.
4806
4807 Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
4808
4809 * stabs.c (s_stab_generic): In 's' case, free string from
4810 obstack.
4811
4812 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field
4813 sy_name_offset.
4814 * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]:
4815 Ditto.
4816
4817 * subsegs.h (segment_info_type): Make bitfields unsigned.
4818
4819 * expr.h (struct expressionS): Make X_op and X_unsigned bitfields,
4820 and move them together. On most systems this will reduce the
4821 structure size by one word.
4822 (operatorT): Define O_max.
4823 * expr.c (expr_begin): Verify that X_op is wide enough to hold
4824 O_max.
4825
4826 * read.c (pop_insert): Print error returned by hash table
4827 insertion code.
4828
4829 * as.c (dump_statistics): Split out from main; dump some hash
4830 table stats and target-specific stats.
4831 (start_time): No longer automatic to main.
4832 (main): Set file-level start_time and call dump_statistics at
4833 exit. Exit by calling xexit.
4834 (show_usage): Make --statistics description less specific.
4835 * subsegs.c (subsegs_print_statistics): New function.
4836 * write.c (write_print_statistics): New function.
4837 (n_fixups): New static variable.
4838 (fix_new_internal): Increment it.
4839 * read.c (read_print_statistics): New function.
4840 * read.h (read_print_statistics): Declare.
4841 * symbol.c (symbol_print_statistics): New function.
4842 * symbol.h (symbol_print_statistics): Declare.
4843 * hash.c (hash_print_statistics): New function.
4844 * hash.h (hash_print_statistics): Declare.
4845 * config/tc-i386.c (i386_print_statistics): New function.
4846 * config/tc-i386.h (i386_print_statistics): Declare.
4847 (tc_print_statistics): New macro.
4848 * messages.c (as_fatal, as_assert, as_abort): Use xexit, not
4849 exit.
4850
4851 * hash.c (DELETED): Rewrite to use a valid but unique address.
4852 (START_POWER): Reduce to 10.
4853 (enum stat_enum): New enumerator, replacing STAT_* index macros.
4854 Add new values for counting strcmp calls.
4855 (GROW_FACTOR): New macro.
4856 (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead
4857 of nesting blocks.
4858 (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2.
4859 (hash_new): Use FULL_VALUE.
4860 (struct hash_control): Definition moved here.
4861 (hash_code): Don't mask to low bits.
4862 (hash_ask): Mask returned hash code here. Check hash value before
4863 calling strcmp; count strcmp calls.
4864 * hash.h (struct hash_control): Declare, don't define, here.
4865 (HASH_STATLENGTH): Deleted.
4866 (struct hash_entry): Add field for hash code.
4867 (hash_say, hash_apply): Don't declare.
4868
4869 * hash.c (destroy): Return void.
4870 (applicatee): Ditto.
4871 (main): Fix declarations.
4872 (hash_apply): Return void. Argument `function' returns void. Put
4873 inside "#ifdef TEST".
4874 (hash_say): Define only if TEST is defined.
4875 * hash.h (hash_apply, hash_say): Declarations deleted.
4876
4877 Mon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com>
4878
4879 * configure: Rebuild with autoconf 2.7.
4880
4881 Tue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com>
4882
4883 * aclocal.m4 (AC_PROG_CC): Remove local definition.
4884 * configure: Rebuild with autoconf 2.6.
4885
4886 Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
4887
4888 * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
4889 (ppc_stabx): Don't increment ppc_debug_name_section_size.
4890 (ppc_bc): Likewise.
4891 (ppc_frob_file): Remove.
4892 * config/tc-ppc.h (tc_frob_file): Don't define.
4893 (ppc_frob_file): Don't declare.
4894
4895 Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
4896
4897 * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
4898 * config/alpha-opcode.h: Include one-operand variants of jmp and
4899 jsr.
4900
4901 * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict
4902 with te-delta.h in 8.3 file systems.
4903 * configure.in: Adjusted.
4904
4905 Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
4906
4907 * config/tc-mips.c (s_err): Remove; just use the one in read.c.
4908
4909 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
4910 number.
4911 * expr.c (operand): Handle MRI suffixes after unadorned 0.
4912
4913 Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
4914
4915 Version 2.6 released.
4916 * Makefile.in (VERSION): Updated to 2.6.
4917
4918 * config/obj-coff.c (write_object_file): Change use of md_do_align
4919 to pass a pointer rather than a fill value, to match other uses.
4920
4921 Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
4922
4923 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
4924
4925 * as.c (main): Move md_end call to just after call to
4926 perform_an_assembly_pass. Delete cpu-specific code here.
4927 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
4928 * config/tc-arm.c (md_end): Unused function deleted.
4929 * config/tc-ns32k.c (md_end): Ditto.
4930
4931 * config/tc-i386.c (i386_align_code): New function, moved here
4932 from HANDLE_ALIGN macro.
4933 * config/tc-i386.h (HANDLE_ALIGN): Call it.
4934
4935 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
4936
4937 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
4938 before comparing
4939
4940 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
4941
4942 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
4943 multi-byte nops to avoid changing gcc. The necessary gcc change
4944 might break old assemblers.
4945
4946 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
4947
4948 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
4949 generate optimal multi-byte nop instructions for ".align n"
4950 ".align n,0x90", and aligns requiring more than 15 bytes of
4951 padding still generate multiple 0x90's as before.
4952
4953 Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
4954
4955 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
4956
4957 Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
4958
4959 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
4960 * configure: Update.
4961 * mpw-make.sed: Reorder commands to make sed happier.
4962 * config/te-macos.h: New file.
4963 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
4964
4965 Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
4966
4967 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
4968 conditional branches.
4969 (md_apply_fix): Likewise.
4970
4971 Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
4972
4973 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
4974 generate a reloc which the linker will not handle correctly. Fix
4975 overflow checking--R_IREL is 18 bits, not 17.
4976
4977 Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
4978
4979 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
4980 from a PC relative reloc if TC_A29K.
4981
4982 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
4983 code depends upon it.
4984
4985 * config/tc-a29k.c (md_operand): Handle $float, $double, and
4986 $extend. Based on code from Eric Freudenthal
4987 <freudenthal@nyu.edu>.
4988 * config/tc-a29k.h (LEX_DOLLAR): Define.
4989 * read.c (LEX_DOLLAR): Define if not defined.
4990 (lex_type): Use LEX_DOLLAR.
4991
4992 Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
4993
4994 * configure.in (a29k-nyu-sym1): New target, just like other a29k
4995 targets.
4996
4997 Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
4998
4999 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
5000
5001 Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
5002
5003 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
5004 used only by "dlltool.c".
5005
5006 Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
5007
5008 * config/tc-alpha.c: Undefine inline if not __GNUC__.
5009 (md_pseudo_table): Don't define "extern".
5010
5011 Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
5012
5013 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
5014
5015 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
5016
5017 Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
5018
5019 * macro.c (macro_expand_body): Don't warn about == with a
5020 nonexistent parameter, in case it is in a comment field.
5021
5022 * as.c (main): On TC_A29K, call macro_init with macro_alternate
5023 set to 1.
5024 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
5025 set, even if macro_alternate is set.
5026 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
5027 (sub_actual): If macro_strip_at, and kind is '@', don't look up
5028 the token unless it ended in '@'.
5029 * config/tc-a29k.c (line_separator_chars): Remove '@'.
5030 * doc/c-a29k.texi: Document macro usage on A29K.
5031
5032 Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
5033
5034 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
5035 signed word.
5036 (install_operand): Likewise.
5037
5038 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
5039
5040 Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5041
5042 * configure.in (m88k-motorola-sysv*): New target.
5043 * configure: Rebuild.
5044 * config/te-delta88.h: New file.
5045 * config/obj-coff.c (write_object_file): Use md_do_align if it is
5046 defined.
5047 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
5048 (md_do_align): Define.
5049 * config/tc-m88k.c: Include "subsegs.h".
5050 (m88k_do_align): New function.
5051
5052 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
5053 (COFF_NOLOAD_PROBLEM): Define.
5054 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
5055
5056 Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
5057
5058 * config/tc-i386.c (md_assemble): For a jump instruction with
5059 non-constant target, require 7 available bytes in the current
5060 frag, not 6.
5061
5062 Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
5063
5064 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
5065 bfd/libelf.h.
5066
5067 Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
5068
5069 * configure.in (alpha-*-linux*): Use ecoff.
5070 * configure: Rebuild.
5071 * ecoff.c (ecoff_directive_extern): New function.
5072 (ecoff_directive_weakext): New function.
5073 (ecoff_build_symbols): Handle weak symbols.
5074 (ecoff_setup_ext): Likewise.
5075 (ecoff_frob_symbol): Warn about weak common symbols.
5076 * ecoff.h (ecoff_directive_extern): Declare.
5077 (ecoff_directive_weakext): Declare.
5078 * symbols.c (S_IS_WEAK): New function.
5079 * symbols.h (S_IS_WEAK): Declare.
5080 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
5081 "weakext".
5082 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
5083 (s_extern): Remove.
5084
5085 Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
5086
5087 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
5088
5089 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
5090 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
5091 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
5092 * config/obj-coff.c (coff_frob_symbol): Don't call
5093 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
5094 one. If OBJ_XCOFF, try to figure out whether the symbol is going
5095 to be dropped.
5096
5097 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
5098 (ppc_stab_symbol): New static variable.
5099 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
5100 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
5101 sy_tc.real_name to the stab string.
5102 (ppc_bc, ppc_ec): New static functions.
5103 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
5104 do anything.
5105 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
5106 suffix.
5107 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
5108 entries.
5109
5110 * input-scrub.c (input_scrub_push): Reset sb_index.
5111
5112 Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
5113
5114 * listing.c (listing_newline): Don't create a frag in the absolute
5115 section.
5116
5117 Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
5118
5119 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
5120 (ppc_csect): Move most of the code to ppc_change_csect, and call
5121 it.
5122 (ppc_change_csect): New static function, taken from ppc_csect.
5123 (ppc_section): New static function.
5124 (ppc_saw_abs): New static varable.
5125 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
5126 a symbol has no csect.
5127 (ppc_adjust_symtab): New function.
5128 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
5129 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
5130
5131 * write.c (write_object_file): If tc_adjust_symtab is defined,
5132 call it just before the call to obj_adjust_symtab.
5133
5134 * symbols.c (symbol_find_or_make): Change name to be const.
5135 * symbols.h (symbol_find_or_make): Update declaration.
5136
5137 Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
5138
5139 * doc/as.texinfo (Align): Mention SH.
5140 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
5141 .align value.
5142 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
5143 (Z8000 Directives, even): Don't give numeric align value, instead
5144 explain behavior.
5145
5146 Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
5147
5148 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
5149 instruction.
5150
5151 Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
5152
5153 * Makefile.in (diststuff): Also make info.
5154 (maintainer-clean realclean): Also make clean-info.
5155
5156 Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
5157
5158 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
5159 (pa_subspace): For ".nsubspa", always create a new subspace
5160 with the given attributes, even if one already exists with the
5161 same name.
5162
5163 Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5164
5165 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
5166 TC_FORCE_RELOCATION, taking an additional section argument. If
5167 the section of the target symbol is not the same as the current
5168 section, always force the relocation to be used.
5169 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
5170
5171 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
5172 md_pcrel_from function, taking an additional section argument.
5173 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
5174
5175 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
5176 older TC_FORCE_RELOCATION if not defined.
5177 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
5178 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
5179 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
5180 TC_FORCE_RELOCATION.
5181
5182 Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
5183
5184 * input-scrub.c (as_where): Set name to null pointer if we don't
5185 have a file name.
5186 * messages.c (identify): Only print filename if non-null.
5187 (as_show_where): Ditto, for line number too.
5188 (as_warn_internal, as_bad_internal): Ditto.
5189
5190 * input-file.c (input_file_open): If the input file can't be
5191 opened, consider it an error.
5192
5193 Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
5194
5195 * config/tc-mips.c: Added mips_4100 control, and support for
5196 accepting the 4100 as a MIPS architecture variant (md_begin,
5197 macro_build, mips_ip, md_parse_option). Adding suitable
5198 command-line OPTIONs, and updating the help text (md_show_usage).
5199
5200 Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
5201
5202 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
5203 BFD_ASSEMBLER is defined.
5204
5205 * Use one active frag and one obstack per frag chain:
5206 * frags.c (frags): Variable deleted.
5207 (frag_alloc): New function.
5208 (frag_grow, frag_more, frag_variant, frag_now_fix,
5209 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
5210 frags variable.
5211 (frag_new): Ditto. Verify that frch_last and frag_now match on
5212 entry and exit, and that old frag_now has non-zero type. Replace
5213 "know" uses with "assert". Use frag_alloc instead of mucking with
5214 obstack alignment.
5215 * frags.h (frags): Declaration deleted.
5216 * subsegs.h (struct frchain): Add new field frch_frag_now.
5217 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
5218 variables.
5219 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
5220 give it any stricter alignment than frchainS structures need. Do
5221 not initialize frags obstack. Set frag_now to point to
5222 dummy_obstack. Initialize absolute_frchain.
5223 (subseg_set_rest): Save and restore frag_now in frch_frag_now
5224 field of frchainS. Don't create new frags on section switch, and
5225 use frag_alloc when creating a new frag chain. For absolute
5226 section, set frchain_now to absolute_frchain. Verify that
5227 frch_last and frag_now match on entry and exit. Initialize
5228 per-chain obstack, and under gcc, set required alignment to that
5229 needed by fragS structure.
5230
5231 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
5232
5233 * stabs.c (get_stab_string_offset): Only copy input string if a
5234 fresh copy is needed, not if the section already exists.
5235 (s_stab_generic): Cache stab section name to bypass lookups, since
5236 usually it will match. Could be made faster still by changing the
5237 memory allocation rules.
5238 (s_xstab): Cache section name to bypass repeated string
5239 allocation.
5240
5241 * frags.c (frag_new): Deleted register declarations.
5242
5243 * listing.c (frag_now): Don't declare.
5244
5245 * as.c (chunksize): New variable.
5246 (debug_memory): New variable.
5247 (main): If debug_memory is set, reduce chunksize and
5248 _bfd_chunksize.
5249 * as.h (chunksize): Declare it.
5250 * read.c (read_begin): Use it.
5251
5252 * config/tc-alpha.c (md_shortopts): Include 'g'.
5253 (md_parse_option): Ignore it.
5254
5255 * Makefile.in (distclean): Remove Makefile and config.status from
5256 testsuite directory.
5257 (clean-here): Don't delete testsuite. Instead, delete only the
5258 files within it that would be generated by running tests.
5259
5260 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
5261 frag_now_fix instead of accessing obstack info directly.
5262 * config/tc-arm.c (s_ltorg): Ditto.
5263 (md_assemble): Ditto.
5264
5265 * config/tc-i386.c (md_assemble): Call frag_grow instead of
5266 obstack_room.
5267
5268 Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
5269
5270 * stabs.c (aout_process_stab): Insert debug symbol into symbol
5271 chain after parsing value expression, if any, to avoid separating
5272 continued .stabs lines.
5273
5274 Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
5275
5276 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
5277 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
5278
5279 Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
5280
5281 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
5282 -mcom support and PPC_OPCODE_ANY for -many.
5283 (md_parse_option): Ditto.
5284 (ppc_arch): Ditto.
5285 (md_begin): For duplicate instructions, print all duplicates
5286 before aborting.
5287
5288 Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
5289
5290 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
5291 common mode operation.
5292 (md_show_usage): Add -mcom to usage message.
5293
5294 Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
5295
5296 * expr.c (op_rank): Add O_symbol_rva.
5297 * expr.h (operatorT): Add O_symbol_rva.
5298 * read.c (cons_worker): Set O_symbol_rva when necessary.
5299 * write.c (fix_new_exp): Understand O_symbol_rva.
5300
5301 Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
5302
5303 * config/tc-mips.c: Correct s_cons arguments. From Michael
5304 Joosten <joost@ori.cadlab.de>.
5305
5306 Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
5307
5308 * config/tc-ppc.c (ppc_macro): Make count unsigned.
5309 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
5310 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
5311 the fix_line field.
5312 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
5313 make non-static. Change all users.
5314 * config/obj-coff.h (coff_n_line_nos): Declare.
5315
5316 Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
5317
5318 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5319
5320 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
5321
5322 * config/obj-elf.c (obj_elf_common): Convert specified byte
5323 alignment to power of two. Set size of local bss symbol.
5324
5325 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
5326
5327 Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
5328
5329 * sb.c, macro.c: Decide whether to include <string.h> or
5330 <strings.h> just as as.h does.
5331
5332 Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
5333
5334 * Makefile.in (site.exp): Fix setting of $srcdir.
5335
5336 * config/tc-arm.c (md_atof): Fix little-endian output.
5337 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
5338 all coff targets.
5339
5340 Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
5341
5342 * doc/as.texinfo: Split out the NS32k family documentation,
5343 despite its being commented out for now.
5344 * doc/c-ns32k.texi: New file.
5345
5346 * sb.c, macro.c: Include string.h.
5347
5348 * Makefile.in (comparison): Only check *.o; we don't care if
5349 timestamps inserted by the native linker differ.
5350
5351 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
5352 if alignment stricter than 4 bytes is requested; in that case,
5353 align to a 4-byte boundary first.
5354
5355 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
5356
5357 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
5358 uninitialized" warning for `Max_Source_Offset'.
5359
5360 Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
5361
5362 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
5363 qualifiers and detect errors if present.
5364 (md_assemble): Add call to parse_toc_entry. Also added some support
5365 for the [tocv] qualifier.
5366 (ppc_pe_tocd): New function to support data in the toc section.
5367
5368 Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
5369
5370 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
5371 an absolute symbol.
5372
5373 Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
5374
5375 * config/tc-m68k.c (isword): Accept all values from -65536 to
5376 +65535, so ~VAL will not be rejected.
5377
5378 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
5379 skip characters after the pseudo-op.
5380 (s_else): Likewise.
5381 * read.c (get_line_sb): Don't look past buffer_limit.
5382 (s_include): In MRI mode, skip characters after the file name.
5383
5384 Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
5385
5386 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
5387 periods in register names.
5388
5389 For older changes see ChangeLog.1.
This page took 0.234923 seconds and 5 git commands to generate.