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