* config/tc-mips.c (append_insn): Handle BFD_RELOC_MIPS16_S3.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
0bc0e337
JL
1start-sanitize-r5900
2Sun Mar 22 13:21:01 1998 Jeffrey A Law (law@cygnus.com)
3
4 * config/tc-mips.c (append_insn): Handle BFD_RELOC_MIPS16_S3.
5 (mips_ip): Handle 'O' operand.
6 (md_apply_fix): Handle BFD_RELOC_MIPS16_S3.
7
8end-sanitize-r5900
fc6f7f6c
ILT
9Fri Mar 20 19:15:44 1998 Ian Lance Taylor <ian@cygnus.com>
10
11 * aclocal.m4, configure: Rebuild with libtool 1.2.
12
981ce186
JL
13start-sanitize-r5900
14Fri Mar 20 09:04:13 1998 Jeffrey A Law (law@cygnus.com)
15
16 * config/tc-mips.c: Change '%' to '#' in r5900 code to avoid conflict
17 with vr5400 support.
18
19end-sanitize-r5900
15752c5b
NC
20Thu Mar 19 16:03:12 1998 Nick Clifton <nickc@cygnus.com>
21
22 * config/tc-arm.c (md_apply_fix3): fix code to test the range of
23 PC relative branches (PR15358). Patch courtesy of Jonathan
24 Walton.
25
059a6388
JL
26start-sanitize-r5900
27Thu Mar 19 14:19:27 1998 Jeffrey A Law (law@cygnus.com)
28
29 * config/tc-mips.c (mips_ip): Handle opcodes which have the form
30 "name.completer" where only the name is actually in the opcode
31 table. Allow various operands for base register in load/store
32 instructions. Handle various new argument characters for the
33 cop2/vu0 co-processor.
34
35end-sanitize-r5900
4ebb52f1
FCE
36start-sanitize-sky
37 Wed Mar 18 13:54:04 1998 Frank Ch. Eigler <fche@cygnus.com>
38
39 * config/tc-dvp.c (s_dmadata): Force 16-byte alignment for ".dmadata"
40 pseudo-op.
41end-sanitize-sky
42
22d3fbd6
NC
43Wed Mar 18 09:29:51 1998 Nick Clifton <nickc@cygnus.com>
44
45 * configure.in (emulations): Add thumb-pe target.
46
47 * configure (emulations): Add thumb-pe target.
48
9636f59b
KR
491998-03-17 Ken Raeburn <raeburn@cygnus.com>
50
51 * itbl-lex.l (yywrap): Don't define if already defined as a
52 macro.
53
fa3671a3 54start-sanitize-sky
7f28a81d
DE
55Tue Mar 17 10:40:54 1998 Doug Evans <devans@canuck.cygnus.com>
56
57 * config/tc-dvp.c (md_begin): Turn dma/vif packing on by default.
58 (assemble_dma): Only output 8 bytes for actual dma insn if dma/vif
59 packing is enabled. Emit VIF cpu marker after dma insn.
60
3b4389e2
DE
61 * config/tc-dvp.h (TC_START_LABEL): Define.
62 * config/tc-dvp.c (force_mach_label): New function.
63 (md_begin,create_colon_label,s_dmadata): Use it.
64
89036011
DE
65 * config/tc-dvp.c (s_enddmadata): Always fill dma data out to 16
66 byte boundary.
67
fa3671a3
DE
68Mon Mar 16 10:19:44 1998 Doug Evans <devans@canuck.cygnus.com>
69
70 * config/tc-dvp.c (md_pseudo_table): Make .quad 16 bytes.
71
72end-sanitize-sky
008a80d2
TT
73Fri Mar 13 16:31:38 1998 Tom Tromey <tromey@cygnus.com>
74
75 * depend.c (quote_string_for_make): New function.
76 (wrap_output): Use it.
77
78Thu Mar 12 18:28:22 1998 Nick Clifton <nickc@cygnus.com>
79
80 * config/obj-elf.c (obj_elf_section): Set bss flag in seg_info
81 structure if type is SHT_NOBITS. [Bug fix courtesy of rth]
82
d030671b 83start-sanitize-sky
6d0a565c
DE
84Thu Mar 12 16:13:25 1998 Doug Evans <devans@canuck.cygnus.com>
85
86 * config/tc-dvp.h (TC_FIX_TYPE,TC_INIT_FIX_DATA): Define.
87 * config/tc-dvp.c (compute_nloop,check_nloop): New functions.
88 (gif_insn_frag_loc): New static global.
89 (assemble_gif): Record frag and location frag of insn.
90 (md_apply_fix3): Validate user specified nloop if we couldn't do
91 it earlier.
92 (s_endgif): Queue fixup to install nloop if we can't compute it here.
93
d030671b
DE
94Fri Mar 6 11:36:37 1998 Doug Evans <devans@canuck.cygnus.com>
95
96 * config/tc-dvp.c (s_endgif): Fix nloop calc and test. Warn if
97 insufficient data present. Fix insertion of computed nloop value.
65309b98
DE
98 (install_vif_length): Second pass at unpack len calcs.
99 (s_endunpack): Round data up to word boundary.
ba4be194
DE
100 (insert_mpg_marker): New function.
101 (insert_file): New args insert_marker, size. All callers updated.
102 (assemble_vif): Rewrite varlen insn handling.
103 (assemble_vu): Call insert_mpg_marker when 256th insn reached.
104 (s_enddirect,s_endunpack): Rename arg to internal_p.
d030671b
DE
105
106end-sanitize-sky
2d035a50
GRK
107start-sanitize-vr4320
108Tue Mar 3 11:37:26 1998 Gavin Koch <gavin@cygnus.com>
109
110 * config/tc-mips.c : Added vr4320 similar to vr4300.
111
112end-sanitize-vr4320
626d6b2e
RH
113Sat Feb 28 17:28:55 1998 Richard Henderson <rth@cygnus.com>
114
115 * config/tc-alpha.c (md_shortopts, md_longopts, md_parse_option):
116 Recognize -GN and -relax.
117 (md_begin): Initialize gp size from -G switch.
118 (alpha_force_relocation): Always force if -relax.
119 (alpha_align): Take a new argument that will specify when to
120 emit an R_ALPHA_ALIGN relocation (though we don't do that now).
121 Change all callers. Emit nop alignment padding as nop+unop pair.
122
c35d42c2
RH
123Sat Feb 28 17:06:22 1998 Richard Henderson <rth@cygnus.com>
124
125 * config/obj-elf.c [TC_ALPHA]: Include <elf/alpha.h>.
126 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): New.
127
6c116dfc
MM
128start-sanitize-d30v
129Thu Feb 26 15:49:04 1998 Michael Meissner <meissner@cygnus.com>
130
131 * config/tc-d30v.c (write_2_short): Delayed jsr instructions don't
132 require padding to the next long word boundary.
133
134end-sanitize-d30v
1fb06680
DE
135start-sanitize-sky
136Fri Feb 27 10:06:59 1998 Doug Evans <devans@canuck.cygnus.com>
137
138 * config/tc-dvp.c (assemble_vif): Insert cpu type marker before
139 inserted binary files.
140
141end-sanitize-sky
8ca85ce0
DE
142start-sanitize-phase2-m32rx
143Wed Feb 25 11:43:45 1998 Doug Evans <devans@canuck.cygnus.com>
144
145 * config/tc-m32r.c (optimize): New static local.
146 (md_shortopts): Add -O.
147 (md_parse_option): Recognize it.
148 (md_show_usage): Document it.
149 (md_assemble): Don't try to combine insns in parallel if !optimize.
150
151end-sanitize-phase2-m32rx
39149be2
NC
152start-sanitize-m32rx
153Tue Feb 24 18:03:25 1998 Nick Clifton <nickc@cygnus.com>
154
155 * config/tc-m32r.c (first_writes_to_seconds_operands):
156 Reinitialise b_operands for each pass of the inner loop.
157end-sanitize-m32rx
c74ca124 158start-sanitize-sky
69312dac
DE
159Tue Feb 24 11:01:25 1998 Doug Evans <devans@canuck.cygnus.com>
160
161 * config/tc-dvp.h (tc_frob_label): Define.
162 * config/tc-dvp.c (dvp_frob_label): New function.
b6d331b9
DE
163 (create_colon_label): New argument `sto'. All callers updated.
164 (record_mach): New argument `force_next_p'. All callers updated.
165 (cpu_sto): New function.
9152beba
DE
166 (UNIQUE_LABEL_PREFIX): New macro.
167 (unique_label): Use it.
168 (assemble_gif): Emit start label before mach label.
b439fb81 169 (s_endgif): Update. NLOOP is in quadwords for IMAGE mode now.
69312dac 170
e9cb12e4
DE
171Mon Feb 23 15:55:12 1998 Doug Evans <devans@canuck.cygnus.com>
172
173 * config/tc-dvp.c (assemble_dma): Do alignment before parsing insn.
174 (setup_dma_autocount): Renamed from setup_autocount. New argument
175 inline_p. All callers changed. Fix word address of count.
176 (parse_dma_addr_autocount): Fix word address of address.
177
178end-sanitize-sky
179start-sanitize-sky
96f5b6b2
JL
180Mon Feb 23 17:24:06 1998 Jim Lemke <jlemke@cygnus.com>
181
182 * config/obj-elf.c: Take Ian's suggestion, leave .bss etc
183 in special_sections table and add .vubss etc via
184 ELF_TC_SPECIAL_SECTIONS.
185 * config/tc-dvp.h: Likewise.
186
c74ca124 187end-sanitize-sky
a15a45e5
DE
188Mon Feb 23 11:29:06 1998 Doug Evans <devans@seba.cygnus.com>
189
190 * cgen.c: #include symcat.h.
191 * config/tc-m32r.c: Likewise.
192
65d2c7d3
JL
193Mon Feb 23 10:27:40 1998 Jeffrey A Law (law@cygnus.com)
194
195 * config/tc-mips.c (mips_ip, case 'P'): Make 'P' arguments be
196 absolute expressions instead of '$' prefixed register names.
197
56c99b3e
RH
198Sat Feb 21 22:36:52 1998 Richard Henderson <rth@cygnus.com>
199
200 * read.c (s_set): Record file and line info for symbols when -as.
201 (pseudo_set): Don't overwrite that dummy fragment.
202
d3c6610c
DE
203start-sanitize-sky
204Fri Feb 20 12:43:02 1998 Doug Evans <devans@canuck.cygnus.com>
205
498fcb9c 206 * config/tc-dvp.c (md_assemble): Handle ASM_DIRECT state.
d3c6610c
DE
207 (dvp_parse_done): Comment out contents.
208 (s_enddirect,s_endmpg,s_endunpack): Call demand_empty_rest_of_line.
209 (s_state): Handle .vu in included file.
8151801a 210 (asm_state): New state ASM_GIF.
498fcb9c
DE
211 (asm_state_stack): Maintain stack of parsing states.
212 ({push,pop,set}_asm_state): New functions.
213 (CUR_ASM_STATE): Renamed from cur_asm_state, all uses updated.
8151801a
DE
214 (gif_{insn_type,data_name,insn_frag}): New static locals.
215 (md_assemble): Watch for .endgif if in ASM_GIF state.
216 (assemble_gif): Complete.
217 (s_endgif): Complete.
ee753b4b
DE
218 (cur_mach): New static local.
219 (record_mach): New function.
220 (md_begin): Initialize `cur_mach'.
221 (assemble_*): Record current mach type.
83920d29
DE
222 (vu_count): New static local.
223 (assemble_vif): Temporary hack to properly align mpg/direct data.
224 (assemble_vu): Insert mpg every 256 insns.
d3c6610c
DE
225
226end-sanitize-sky
c634d13e
ILT
227Fri Feb 20 15:03:13 1998 Ian Lance Taylor <ian@cygnus.com>
228
229 * config/tc-ppc.c (md_pseudo_table): Add "section".
230 (ppc_named_section): New static function.
231
9db4b37c
RH
232Thu Feb 19 22:25:42 1998 Richard Henderson <rth@cygnus.com>
233
234 * tc-ppc.c (ppc_biei): Cache the last symbol we inserted
235 so we don't have to scan the entire list.
236
ccc12f73
FF
237start-sanitize-d30v
238Tue Feb 17 17:02:15 1998 Fred Fish <fnf@cygnus.com>
239
240 * config/tc-d30v.c (parallel_ok): For the explicitly parallel
241 case, allow the parallel instructions to modify the same flag
242 bits.
243
244end-sanitize-d30v
ecc9627d
RH
245Thu Feb 19 16:08:15 1998 Richard Henderson <rth@cygnus.com>
246
247 * listing.c (list_symbol_table): Categorize symbols by
248 undefined_section rather than sy_frag->line == NULL.
249
91572941
DE
250start-sanitize-sky
251Thu Feb 19 02:17:03 1998 Doug Evans <devans@charmed.cygnus.com>
252
253 * config/tc-dvp.c (LOCAL_LABEL_PREFIX,END_LABEL_PREFIX): New macros.
254 (inline_dmadata): Renamed from s_dmadata_implied.
255 (assemble_one_insn): Rewrite dma operand processing.
256 (md_apply_fix3): Handle DVP_OPERAND_DMA_NEXT.
257 (unique_name,setup_autocount): New functions.
258
259 * config/tc-dvp.c: Include stdarg.h/varargs.h.
260 (md_pseudo_table): Add .word.
261 (assemble_dma): Set alignment to 16 bytes. Enable code that records
262 fixups.
263 (assemble_one_insn): Handle DVP_OPERAND_DMA_{ADDR,AUTOCOUNT}.
264 (md_apply_fix3): Handle DVP_OPERAND_DMA_ADDR.
265 (parse_dma_addr_autocount): Renamed from parse_dma_ptr_autocount.
266 Rewrite.
267 (eval_expr): New function.
268 (create_label,create_colon_label): New function.
269 (s_enddmadata): Rewrite.
270
271end-sanitize-sky
9c0e2b9e
RH
272Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
273
274 * Makefile.am (install-exec-local): Install properly when ln
275 fails or tooldir == prefix.
276
65850016
NC
277start-sanitize-m32rx
278Wed Feb 18 18:11:42 1998 Nick Clifton <nickc@cygnus.com>
279
280 * config/tc-m32r.c (first_writes_to_seconds_operands): Special
281 handling of updates to the condition bit as this is shadow by
282 several registers.
283end-sanitize-m32rx
19f12fb4
DE
284start-sanitize-sky
285Wed Feb 18 15:49:56 1998 Doug Evans <devans@canuck.cygnus.com>
286
287 * config/tc-dvp.c (parse_float): New function.
288 (assemble_vu): Handle loi insns.
289 (assemble_one_insn): Simplify suffix parsing.
1028c33f
DE
290 Handle DVP_OPERAND_FLOAT. Allow FAKE arguments to have a parser
291 handler.
19f12fb4
DE
292
293end-sanitize-sky
af82efaf 294start-sanitize-m32rx
20419451
NC
295Wed Feb 18 14:30:26 1998 Nick Clifton <nickc@cygnus.com>
296
297 * doc/c-m32r.texi (M32R-Opts): Add --Wp and --Wnp.
298
299 * doc/as.texinfo (Overview): Add --Wp and --Wnp.
300
301 * config/tc-m32r.c (md_longopts): Accept --Wp as an abbreviation
302 for --warn-explicit-parallel-conflicts and --Wnp as an
303 abbreviation for --no-warn-explicit-parallel-conflicts.
304 (assemble_parallel_insn): Use non-relaxable versions of branch
305 instructions.
306
af82efaf
NC
307Wed Feb 18 11:00:18 1998 Nick Clifton <nickc@cygnus.com>
308
309 * app.c: Parse || as a seperator between assembler statements.
19f12fb4 310
af82efaf 311end-sanitize-m32rx
63aa1c74
DE
312Tue Feb 17 18:58:51 1998 Doug Evans <devans@seba.cygnus.com>
313
19f12fb4 314 * cgen.c (cgen_md_apply_fix3): Delete call to validate_operand.
63aa1c74
DE
315 Test result of insert_operand for error.
316
c9cec4ef 317start-sanitize-m32rx
b86c0dd3
NC
318Mon Feb 16 12:28:40 1998 Nick Clifton <nickc@cygnus.com>
319
320 * config/tc-m32r.c (md_assemble): Only parallelise instructions
321 when m32rx target is enabled and the instructions are not
322 relaxable.
323
c9cec4ef
NC
324Fri Feb 13 14:42:16 1998 Nick Clifton <nickc@cygnus.com>
325
326 * config/tc-m32r.c (first_writes_to_seconds_operands): Do not
327 bother checking insn which have no operands.
328
329end-sanitize-m32rx
ba4da4fe
ILT
330Fri Feb 13 16:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
331
332 * Makefile.am (AUTOMAKE_OPTIONS): Add cygnus.
333 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
334 * doc/Makefile.am (AUTOMAKE_OPTIONS): Define.
335 * doc/Makefile.in: Rebuild.
336
8e7a5a04 337start-sanitize-m32rx
6cf2575a
NC
338Fri Feb 13 09:57:11 1998 Nick Clifton <nickc@cygnus.com>
339
340 * config/tc-m32r.c (first_writes_to_seconds_operands): New
341 function. Replaces get_src_reg(), check_for_side_effects(),
342 reads_from_src_reg(). Uses new insn operand features of cgen.
8e7a5a04 343 (writes_to_pc): New function., but with new code suppressed for now.
6cf2575a 344 (md_assemble): Call first_writes_to_seconds_operands().
8e7a5a04 345end-sanitize-m32rx
679f7845
ILT
346Fri Feb 13 00:47:44 1998 Ian Lance Taylor <ian@cygnus.com>
347
348 * config/tc-mips.c (macro_build): Handle operand type 'C'.
349 (macro): Fix handling of M_COP[0-3].
350
43448efe
ILT
351Thu Feb 12 14:06:59 1998 Ian Lance Taylor <ian@cygnus.com>
352
618ea808
ILT
353 Based on patches from Ross Harvey <ross@teraflop.com>:
354 * macro.c (ISSEP): Only treat '<' and '>' as separator characters
355 if macro_alternate or macro_mri.
356 (getstring): Remove support for byte constants between < and >.
357 (get_any_string): '<' only starts a string if macro_alternate or
358 macro_mri.
359 (macro_expand_body): Permit keyword parameters following
360 positional parameters.
361
69d0b6d3
ILT
362 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
363 * configure.in (alpha*-*-netbsd*): New target.
364 * config/te-nbsd.h (LOCAL_LABELS_FB): Define.
365 * configure: Rebuild.
366
1b9bf4a5
ILT
367 * as.h (flag_warn_suppress_instructionswap): Move from here...
368 * config/tc-d10v.c (flag_warn_suppress_instructionswap): ...to
369 here, and make static.
370
8642a203
ILT
371 * ehopt.c (eh_frame_code_alignment): Only use seg_info if
372 BFD_ASSEMBLER or MANY_SEGMENTS.
373
43448efe
ILT
374 * as.c (show_usage): Update bug-gnu-utils address.
375 * gasp.c (show_usage): Likewise.
376 * doc/as.texinfo (Bug Reporting): Likewise.
377
9a1f3160
JL
378Wed Feb 11 23:26:28 1998 Jeffrey A Law (law@cygnus.com)
379
380 * config/tc-mips.c (load_address): Don't use mips III or mips IV
381 insns regardless of the size of a pointer if we're in mips I or
382 MIPS II mode.
383 (macro, macro2, s_cprestore, s_cpadd): Likewise.
384
fc3c25b9
JR
385Thu Feb 12 03:41:00 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
386
387Fix rac to accept only a0:
388 * tc-d10v.c (parallel_ok, find_opcode):
389 Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
390 Introduce OPERAND_GPR.
391
a699db22
RH
392Wed Feb 11 16:28:13 1998 Richard Henderson <rth@cygnus.com>
393
394 * read.c (s_fill): Handle non-constant repeat counts by creating
395 an rs_space fragment.
396
ef582182
NC
397start-sanitize-m32rx
398Wed Feb 11 10:32:28 1998 Nick Clifton <nickc@cygnus.com>
399
400 * doc/c-m32r.texi: Document warning and error messages. Add
401 descriptions of --warn-explicit-parallel-conflicts.
402
403 * doc/as.texinfo: Add more m32rx command line options.
a699db22 404
ef582182
NC
405end-sanitize-m32rx
406Tue Feb 10 18:31:31 1998 Ian Lance Taylor <ian@cygnus.com>
407
408 * config/tc-i386.c (i386_operand): Change error added Jan 2 1998
409 from as_bad to as_warn.
410
8be4a8f7
DE
411start-sanitize-sky
412Tue Feb 10 15:15:40 1998 Doug Evans <devans@canuck.cygnus.com>
413
414 * config/tc-dvp.c (*): pke->vif, gpuif->gif.
415
416end-sanitize-sky
ffc3a160
JL
417Tue Feb 10 18:04:00 1998 Jim Lemke <jlemke@cygnus.com>
418
be0ed38b 419 * as.c: (perform_an_assembly_pass): Use [TEXT|DATA|BSS]_SECTION_NAME
ffc3a160 420 * as.h: Define default values of [TEXT|DATA|BSS]_SECTION_NAME
be0ed38b 421 * config/obj-elf.c (elf_begin): Use [TEXT|DATA|BSS]_SECTION_NAME
45fb7b89 422start-sanitize-sky
ffc3a160 423 * config/tc-dvp.h: Add configuration specific section names.
45fb7b89 424end-sanitize-sky
ffc3a160 425
3081e567
ILT
426Tue Feb 10 17:58:18 1998 Ian Lance Taylor <ian@cygnus.com>
427
428 * ehopt.c (eh_frame_code_alignment): If not BFD_ASSEMBLER, use
429 seg_fix_rotP rather than fix_root from seg_info.
430
f64479ba
IC
431Tue Feb 10 15:32:22 1998 Ian Carmichael <iancarm@cygnus.com>
432
433 * expr.c: Add support for 0x1_2_3_4 bignums.
f64479ba 434
dfb3ecb2
ILT
435Tue Feb 10 14:43:40 1998 Ian Lance Taylor <ian@cygnus.com>
436
5023c3ab
ILT
437 * configure.in: Change -linux* to -linux-gnu*.
438 * configure: Rebuild.
439
dfb3ecb2
ILT
440 * app.c (do_scrub_begin): Treat \r as whitespace.
441
47aa5592
NC
442start-sanitize-m32rx
443Mon Feb 9 16:23:11 1998 Nick Clifton <nickc@cygnus.com>
444
445 * config/tc-m32r.c (get_src_reg): Use m32r_cgen_get_operand()
446 rather than parsing syntax string manually.
447 (assemble_parallel_insn): Check for both forms of parallel
448 conflict.
449end-sanitize-m32rx
6c4e4786
ILT
450Mon Feb 9 14:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
451
452 * Makefile.am: Update dependencies.
453 * Makefile.in: Rebuild.
454
7ee4e307
ILT
455Sat Feb 7 15:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
456
457 * configure, aclocal.m4: Rebuild with new libtool.
458
6766132d
JL
459Fri Feb 6 16:08:30 1998 Jeffrey A Law (law@cygnus.com)
460
461 * config/tc-mips.c (md_begin): If mips_cpu is set, then use it as
462 the argument to bfd_set_arch_mach.
463 (load_address): Use bfd_arch_bits_per_address to determine the
464 bit size of an address instead of looking at the isa level.
465 (macro, macro2, s_cprestore, s_cpadd): Likewise.
466
3cb46b33
NC
467start-sanitize-v850e
468Fri Feb 6 14:44:34 1998 Nick Clifton <nickc@cygnus.com>
469
470 * config/tc-v850.c (md_parse_option): Add -mv850any command line option.
471end-sanitize-v850e
a52052db
ILT
472Thu Feb 5 12:39:08 1998 Ian Lance Taylor <ian@cygnus.com>
473
ffd652c3
ILT
474 * ehopt.c: New file.
475 * as.h (enum _relax_state): Add rs_cfa.
476 (check_eh_frame, eh_frame_estimate_size_before_relax): Declare.
477 (eh_frame_relax_frag, eh_frame_convert_frag): Declare.
478 * read.c (emit_expr): Call check_eh_frame.
479 * write.c (cvt_frag_to_fill): Handle rs_cfa.
480 (relax_segment): Likewise.
481 * Makefile.am: Rebuild dependencies.
482 (GAS_CFILES): Add ehopt.c.
483 (GENERIC_OBJS): Add ehopt.o.
484 * doc/internals.texi (Frags): Document rs_cfa.
485
486 * as.c (show_usage): Mention --traditional-format.
487 (parse_args): Accept --traditional-format.
488 * as.h (flag_traditional_format): Declare.
489 * output-file.c (output_file_create): If flag_traditional_format,
490 set BFD_TRADITIONAL_FORMAT on stdoutput.
491 * doc/as.texinfo, doc/as.1: Document --traditional-format.
492
b073d428
ILT
493 * config/tc-mips.c (append_insn): Make sure that if we have a
494 fixup for an unmatched %hi reloc, it does not associated with a
495 variant frag.
496
a52052db
ILT
497 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
498 * doc/Makefile.in: Likewise.
499
89285fc9
NC
500Wed Feb 4 15:41:54 1998 Nick Clifton <nickc@cygnus.com>
501
502 * config/tc-m32r.c (check_for_side_effects): New function.
503 (can_make_parallel): Add checks for instruction side effects
504 clashing with the other instruction.
505 (assemble_parallel_insn): Improve warning messages. Return error
506 message from non-swapped instruction order.
507
da9a396b
NC
508Wed Feb 4 20:00:26 1998 James G. Smith <jsmith@teknema.demon.co.uk>
509
510 * config/tc-arm.c: Rename arm_after_pass_hook() to arm_cleanup().
511
512 * config/tc-arm.h: Replace md_after_pass_hook definition with a
513 md_cleanup definition. This moves the forced literal output to
514 the end of the source pass, and avoids macro's inserting literals
515 into the code immediately after the macro expansion.
516
e8696467
ILT
517Wed Feb 4 13:17:19 1998 Ian Lance Taylor <ian@cygnus.com>
518
dfe0d219
ILT
519 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: A reloc against
520 a gas internal symbol is adjustable.
6e2604ce 521 * config/tc-ppc.h (tc_fix_adjustable): Likewise.
dfe0d219 522
e8696467
ILT
523 * as.h: If gcc version greater than 2.6, use `__format__' and
524 `__printf__' in function attributes, rather than `format' and
525 `printf'.
526
0e034c77
ILT
527Mon Feb 2 18:38:18 1998 Ian Lance Taylor <ian@cygnus.com>
528
529 * config/tc-sparc.c: Only include elf/sparc.h if OBJ_ELF.
530
531Mon Feb 2 18:30:34 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
532
533 Add tms320c30 support:
534 * config/tc-tic30.h: New file.
535 * config/tc-tic30.c: New file.
536 * config/obj-coff.h: If TC_TIC30, include coff/tic30.h and define
537 TARGET_FORMAT as "coff-tic30".
538 * configure.in (tic30-*-*aout*, tic30-*-*coff*): New targets.
539 * Makefile.am: Rebuild dependencies.
540 (CPU_TYPES): Add tic30.
541 (CPU_OBJ_VALID): tic30-aout is valid.
542 (TARGET_CPU_CFILES): Add config/tc-tic30.c.
543 (TARGET_CPU_HFILES): Add config/tc-tic30.h.
544 * configure, Makefile.in: Rebuild.
545
c519430b
NC
546Mon Feb 2 10:20:37 1998 Nick Clifton <nickc@cygnus.com>
547
548 * config/tc-v850.c (md_assemble): Improvements to error messages
549 for PR 14720.
550
32715d71
ILT
551Mon Feb 2 12:39:05 1998 Geoff Keating <geoffk@ozemail.com.au>
552
553 * config/tc-ppc.c (md_apply_fix3): Change BFD_RELOC_HI16 and
554 BFD_RELOC_HI16_S to store the high bits of any value.
555
556 * config/tc-ppc.h (tc_fix_adjustable): Undo change of Fri Jun 27.
557 (TC_RELOC_RTSYM_LOC_FIXUP): Don't let the
558 assembler calculate relocations to any external symbol at all.
559 * config/tc-ppc.c (md_apply_fix3) [OBJ_ELF]: Correct bugs
560 involving generation of pc-relative relocs.
561 (md_pcrel_from_section) [OBJ_ELF]: The job this code used to do
562 has been moved to md_apply_fix3.
563
564 * config/tc-ppc.c (md_apply_fix3): Fix test for too-far branch.
565 (ppc_elf_suffix): Warn about 'identifier+constant@got' syntax,
566 which actually means (the address of identifier's GOT entry) +
567 constant, which is not particularly useful.
568
d341ae3f
DE
569Fri Jan 30 11:02:35 1998 Doug Evans <devans@canuck.cygnus.com>
570
571 * read.h (include_dirs): Declare.
572 (include_dir_count,include_dir_maxlen): Declare.
5b862039
DE
573start-sanitize-sky
574
575 * config/tc-dvp.c (md_longopts): Add -no-dma, -no-dma-pke.
576 (md_parse_option): Handle them.
577 (md_show_usage): Print them.
578 (output_dma,output_pke): New static globals.
5b862039
DE
579 (assemble_pke): Handle -no-dma-pke.
580 (insert_file): Search include dir list.
581 (s_enddirect): Validate length if prespecified.
582 (s_endmpg): Likewise. Handle -no-dma-pke.
583 (s_endunpack): Handle -no-dma-pke.
32729d87
DE
584 (md_pcrel_from_section): Add offset to delay slot for
585 undefined symbols.
5b862039 586end-sanitize-sky
d341ae3f 587
4b027387
ILT
588Fri Jan 30 11:47:02 1998 Ian Lance Taylor <ian@cygnus.com>
589
f2e272e0
ILT
590 * configure.in: Correct check for shared opcodes library.
591 * configure: Rebuild.
592
ce44ad74
ILT
593 * listing.c (buffer_line): If we can't open the file, set at_end.
594 (listing_print): Remove unused local variable fi.
595
596 * config/m68k-parse.y (reglistpair): Handle register list in
597 either order.
598
4b027387
ILT
599 * config/vms-conf.h: Don't undef VERSION.
600
72e6c688
DE
601start-sanitize-m32rx
602Thu Jan 29 13:36:29 1998 Doug Evans <devans@canuck.cygnus.com>
603
604 * config/tc-m32r.c (allow_m32rx): Must compile with K&R C.
605 (m32rx support): only include #ifdef HAVE_CPU_M32RX.
606
607end-sanitize-m32rx
4b027387 608Thu Jan 29 14:42:44 1998 Pat Rankin <rankin@eql.caltech.edu>
c412299f
ILT
609
610 * Makefile.am (CONFIG_OBJS): New variable, containing part of old
611 OBJS variable.
612 (GENERIC_OBJS): New variable, with the rest of the old OBJS
613 variable.
614 (OBJS): Now just $(CONFIG_OBJS) and $(GENERIC_OBJS).
615 ($(srcdir)/make-gas.com): Rename from make-gas.com.
616 (stamp-mk.com): Replace $(OBJS) with $(GENERIC_OBJS).
617 (EXTRA_DIST): Define.
618 * vmsconf.sh: Handle {targ-cpu, obj-format, atof-targ} modules
619 explicitly rather than via the list of object files.
620 (gcc-as.opt): New file created when make-gas.com is run.
621 * config-gas.com: Create {targ-cpu.h, obj-format.h, targ-env.h,
622 itbl-cpu.h} to #include appropriate file rather than copying that
623 file.
624 * config/vms-conf.h: Synchronize with current config.in.
625 * Makefile.in: Rebuild.
626
ca1a4060
MM
627start-sanitize-d30v
628Thu Jan 29 18:48:19 1998 Bill Moyer <billm@cygnus.com>
629
630 * config/tc-d30v.c (do_assemble): Added flag_explicitly_parallel.
631 (parallel_ok): Relaxed parallel subinstruction dependency check.
632
633end-sanitize-d30v
ed295804
NC
634start-sanitize-m32rx
635Wed Jan 28 16:27:27 1998 Nick Clifton <nickc@cygnus.com>
636
637 * config/tc-m32r.c (md_assemble): Fix determination of when
638 instructions can be combined in parallel.
639
640end-sanitize-m32rx
4d1dc7f1
BM
641Wed Jan 28 14:35:00 1998 Bill Moyer <billm@cygnus.com>
642
643 * as.h (flag_warn_suppress_instructionswap): added new flag.
644 * tc-d10v.c (md_parse_option,md_longopts): added "--nowarnswap"
645 command line argument.
646 * tc-d10v.c (write_2_short): emit "Swapping instructions"
647 warning only if flag_warn_suppress_instructionswap is false.
648
0040c1e9
ILT
649Wed Jan 28 16:41:19 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
650
651 * configure.in (i386-*-mingw32*): New target.
652 * configure: Rebuild.
653
f414803c
ILT
654Wed Jan 28 14:51:18 1998 Ian Lance Taylor <ian@cygnus.com>
655
8ecd2ccb
ILT
656 * symbols.c (resolve_symbol_value): Don't set the segment if it
657 hasn't changed, and this is OBJ_AOUT without BFD_ASSEMBLER.
658
f414803c
ILT
659 * config/obj-aout.h (S_IS_LOCAL): Correct typo--pass argument to
660 S_GET_SEGMENT.
661
fa8666c7
ILT
662Wed Jan 28 13:54:50 1998 Pat Rankin <rankin@eql.caltech.edu>
663
664 as.h (unlink): Reverse 13-Feb-97 change; use of unlink vs remove
665 depends upon HAVE_{UNLINK,REMOVE} values rather than host
666 compiler.
667
8fb6931a
ILT
668Wed Jan 28 13:48:08 1998 Ian Lance Taylor <ian@cygnus.com>
669
670 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Define.
671
98b155a2
DE
672start-sanitize-sky
673Wed Jan 28 10:00:40 1998 Doug Evans <devans@canuck.cygnus.com>
674
675 * configure.in: Add dvp support.
676 * configure: Regenerate.
677 * config/tc-dvp.[ch]: New files.
678
679end-sanitize-sky
1adee2cc
NC
680Wed Jan 28 09:52:00 1998 Nick Clifton <nickc@cygnus.com>
681
682 * config/tc-v850.c (v850_insert_operand): Display instruction when
683 an error is encountered.
684
6cc7a938
ILT
685Tue Jan 27 13:32:01 1998 Robert Lipe <robertl@dgii.com>
686
687 * configure.in (i386-*-sco3.2v5*): Defaults to ELF now.
688 (i386-*-sco3.2v5*coff): New target.
689 (i386-*-sco3.2*): New target.
690 * configure: Rebuild.
691
38a8f434
NC
692Tue Jan 27 11:06:52 1998 Nick Clifton <nickc@cygnus.com>
693
694 * config/tc-v850.c: Fix PRs 14721, 14722, 14723, tidying error
695 message production.
696
8ecadea4
ILT
697Tue Jan 27 12:24:32 1998 Ian Lance Taylor <ian@cygnus.com>
698
29b2b5da
ILT
699 * config/tc-arm.c (md_apply_fix3): Add new variable newimm to hold
700 validate_immediate return value in the right type for comparisons
701 to FAIL.
8ecadea4 702
76f9e5af
RH
703Tue Jan 27 06:51:59 1998 Richard Henderson <rth@cygnus.com>
704
705 * listing.c (MAX_BYTES): Use listing variables not constants.
706 (data_buffer): No longer an array, but a pointer.
707 (calc_hex): sizeof(data_buffer) -> MAX_BYTES.
708 (listing_listing): Allocate data_buffer.
709
7b7a88d0
RH
710Tue Jan 27 06:38:35 1998 Richard Henderson <rth@cygnus.com>
711
712 * as.c (parse_args): Add --listing-lhs-width, --listing-lhs-width2,
713 --listing-rhs-width, --listing-cont-lines.
714 (show_usage): Update.
715 * listing.c (listing_lhs_width, listing_lhs_width_second): New vars.
716 (listing_lhs_cont_lines, listing_rhs_width): New vars.
717 (print_lines): Use the variables instead of the constants.
718 (listing_listing): Likewise.
719 * listing.h: Declare the new vars.
720
c3b27a64
RH
721Tue Jan 27 05:32:05 1998 Richard Henderson <rth@cygnus.com>
722
723 * as.c (parse_args): Add --keep-locals alias for -L.
724 Add --strip-local-absolute.
725 (show_usage): Update.
726 * as.h (flag_strip_local_absolute): New flag.
727 * symbols.c (S_IS_LOCAL): Use it.
728 * config/obj-aout.h (S_IS_LOCAL): Likewise.
729 * config/obj-bout.h (S_IS_LOCAL): Likewise.
730 * config/obj-coff.h (S_IS_LOCAL): Likewise.
731
26192c50
NC
732Mon Jan 26 13:07:41 1998 Nick Clifton <nickc@cygnus.com>
733
734 * config/tc-m32r.c: Detect if explicitly parallel instructions
735 might have an io conflict and issue a warning message.
736
b6930bdf
NC
737start-sanitize-m32rx
738Mon Jan 26 12:38:54 1998 Nick Clifton <nickc@cygnus.com>
739
740 * config/tc-m32r.c (reads_from_src_reg): Change second parameter
741 to a count of the number of matches to skip.
742 (can_make_parallel): Pass count of number of matches to skip to
743 reads_from_src_reg().
744
745end-sanitize-m32rx
f7124cf2
NC
746Thu Jan 22 17:51:44 1998 Nick Clifton <nickc@cygnus.com>
747
748start-sanitize-m32rx
749 * config/tc-m32r.c: Add support for swapping fixups of swap
750 instructions.
751end-sanitize-m32rx
752 * cgen.c (cgen_save_fixups, cgen_restore_fixups,
753 cgen_swap_fixups): Functions to save, restore and swap the fixup
754 chain with a backup copy.
755 (cgen_asm_finish_insn): Returns address of constructed insn.
756
cc746b3e
RH
757Wed Jan 21 16:49:10 1998 Richard Henderson <rth@cygnus.com>
758
759 * listing.c (file_info_struct): Remove FILE, add POS.
760 (last_open_file_info, last_open_file): New; a one entry FILE* cache.
761 (file_info): Don't open the file.
762 (buffer_line): Check for the file in the last_open cache, updating
763 as necessary.
764 (print_source): Don't reference file_info->file.
765 (listing_listing): Likewise.
766 (listing_print): Close the file in the cache, if any.
767
775fdd0c
NC
768start-sanitize-m32rx
769Tue Jan 20 17:08:53 1998 Nick Clifton <nickc@cygnus.com>
770
771 * config/tc-m32r.c (md_assemble): Add code to swap explicitly
772 parallel instructions so that they are in the correct order.
773 (reads_from_src_reg, get_src_reg, can_make_parallel,
774 make_parallel): New functions to support opportunistic
775 parallelisation of adjacent instructions.
776
777end-sanitize-m32rx
af8e4ed9
ILT
778Fri Jan 16 14:51:48 1998 Ian Lance Taylor <ian@cygnus.com>
779
780 * read.c (dwarf_file_string): New file static variable.
781 (emit_expr): Look for constant sequence that leads up to a file
782 name in DWARF debugging output.
783 (stringer): Use dwarf_file_string to decide whether to accept a
784 string as a file name.
785
9ca4498f
RH
786Fri Jan 16 11:30:37 1998 Richard Henderson <rth@cygnus.com>
787
788 * tc-m68k.c (m68k_ip): Remove absl->reglst MRI hack.
789 (crack_operand): Add reg->reglst MRI hack.
790 (r_seg): Put reglst symbols in reg_section.
791 (m68k_frob_symbol): Frob reglst symbols into absolute_section.
792
43e941fd
RH
793Thu Jan 15 14:19:01 1998 Richard Henderson <rth@cygnus.com>
794
795 * tc-sh.c (get_specific): Handle SGR & DBR.
796
e71bd99c
RH
797Thu Jan 15 13:46:48 1998 Richard Henderson <rth@cygnus.com>
798
799 * tc-h8300.c (parse_reg): Take the length of the symbol into
800 account when attempting to match a register name.
2833e251 801 * tc-h8500.c (parse_reg): Likewise.
e71bd99c 802
ebde3f62
NC
803Wed Jan 14 17:52:33 1998 Nick Clifton <nickc@cygnus.com>
804
23ded748 805start-sanitize-m32rx
ebde3f62
NC
806 * config/tc-m32r.c (md_assemble): Add support for parsing parallel
807 instructions.
23ded748 808end-sanitize-m32rx
ebde3f62
NC
809 * cgen.c: Formatting changes to improve readability.
810
6c4b811d
JL
811Wed Jan 14 15:41:41 1998 Jeffrey A Law (law@cygnus.com)
812
813 * config/tc-mips.c (macro): Rework division code to avoid unfilled
814 delay slot.
815
4ef6f7f1
MM
816start-sanitize-d30v
817Wed Jan 14 18:04:20 1998 Michael Meissner <meissner@cygnus.com>
818
819 Based on a patch from Jim Wilson
820 * config/tc-d30v.c (do_assemble): Remove non-ansi default case.
821 (tc_gen_reloc): Handle cross section PC relative relocs
822 correctly.
823
824end-sanitize-d30v
b2cf4548
DE
825Wed Jan 14 15:02:19 1998 Doug Evans <devans@seba.cygnus.com>
826
827 * config/tc-mips.c (mips_ip): Don't test pinfo flags if INSN_MACRO.
828
1002d8ed
DE
829Mon Jan 12 13:04:57 1998 Doug Evans <devans@seba.cygnus.com>
830
831 * cgen.c: #include setjmp.h. Clean up pass over `struct foo' usage.
832 (expr_jmp_buf): New static local.
833 (cgen_parse_operand): Allow use of longjmp in parsing to handle errors.
834 (cgen_md_operand): New function.
835 * tc-m32r.c: Clean up pass over `struct foo' usage.
836 (md_estimate_size_before_relax): Use CGEN_INSN_MNEMONIC.
837
d7ab1078
RH
838Tue Jan 6 15:36:02 1998 Richard Henderson <rth@cygnus.com>
839
840 * symbols.c (S_SET_SEGMENT): Don't set the segment for section syms.
841 (S_IS_EXTERNAL, S_IS_LOCAL): Correct parenthetication.
842
388fa5c6
ILT
843Fri Jan 2 16:08:54 1998 Ian Lance Taylor <ian@cygnus.com>
844
845 * config/tc-i386.c (i386_operand): Give an error if there are
846 unrecognized characters after an expression.
847
ffd0546f
JL
848Wed Dec 31 12:29:47 1997 Jeffrey A Law (law@cygnus.com)
849
850 * config/tc-mn10200.c (md_relax_table): Correct branch ranges.
851
60dc9fb2
ILT
852Mon Dec 22 13:06:05 1997 Joel Sherrill <joel@oarcorp.com>
853
854 * configure.in (i386*-go32-rtems*): Fix to be the same as
855 i[3456]86-go32.
856 * configure: Rebuild.
857
1c6f3441
ILT
858Mon Dec 22 12:54:07 1997 Ian Lance Taylor <ian@cygnus.com>
859
860 * config/tc-mips.c (macro): The 4650 doesn't permit M_LDC1_AB,
861 M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB, or M_S_DOB.
862 (mips_ip): Always check for FP_D, not just for instructions that
863 are not part of the regular ISA.
864
76b53472
RH
865Thu Dec 18 16:49:28 1997 Richard Henderson <rth@cygnus.com>
866
867 * config/tc-d10v.c (build_insn): Make `number' a long for 64-bit hosts.
868
915f6ba3
RH
869Thu Dec 18 16:42:57 1997 Richard Henderson <rth@cygnus.com>
870
871 * config/tc-alpha.c (cpu_types): 21164pc/pca56 does not have CIX.
872
b463948b
JL
873Wed Dec 17 21:23:07 1997 Jeffrey A Law (law@cygnus.com)
874
875 * expr.c (integer_constant 32bit bignum): Mask off bits outside
876 the range we care about.
877
343b2ab8
MM
878start-sanitize-d30v
879Wed Dec 17 15:29:03 1997 Michael Meissner <meissner@cygnus.com>
880
881 * config/tc-d30v.c (md_shortopts): Add 'n' and 'N' options.
882 (exec_type_enum): Enumeration giving all of the exec types.
883 (warn_nops): New static variable to give nop warning level.
884 ({cur,prev}_mul32_p): New static variable to keep track of whether
885 the current/previous instruction is a 32-bit multiply.
886 (Optimizing): Make static.
887 (NOP{2,_LEFT,_RIGHT}): Macros for word of nops and left/right
888 nops.
889 (d30v_insert_operand): Delete declaration of unused function.
890 (write_2_short): Make exec_type argument enum, not int.
891 (parallel_ok): Ditto.
892 (check_range): Delete unused variable(s).
893 (build_insn): Ditto.
894 (find_format): Ditto.
895 (md_apply_fix3): Ditto.
896 (md_show_usage): Document -n and -N.
897 (md_parse_option): Parse -n and -N.
898 (write_1_short): If -n, warn about adding a nop. Use
899 NOP_{LEFT,RIGHT}.
900 (write_2_short): Use enumeration values instead of hard coded
901 integers. Reset exec_type for default operations. For explicit
902 parallel operations, call parallel_ok to make sure everything is
903 ok. If writing out a parallel operation, and the previous
904 instruction was a 32-bit multiply, indicate current instruction
905 is.
906 (parallel_ok): Allow add/tx ... to be done in parallel with
907 another add/tx ... assuming the gpr registers don't overlap.
908 (md_assemble): Use exec type enumeration values, not hard coded
909 ints. Check for loads or 16-bit multiplies following in the next
910 cycle after a 32-bit multiply. Add nops if that is the case.
911 (do_assemble): Copy prev_mul32_p to cur_mul32_p, and set
912 cur_mul32_p if current instruction is a 32-bit multiply.
913 (find_format): Change spacing and layout.
914
915end-sanitize-d30v
37f82cb4
FF
916start-sanitize-tic80
917Tue Dec 16 16:55:45 1997 Fred Fish <fnf@cygnus.com>
918
919 * config/tc-tic80.c (tic80_relax): New static variable.
920 (md_longopts): Add new OPTION_RELAX and OPTION_NO_RELAX options.
921 (md_parse_option): Handle new relax options.
922 (md_show_usage): Document new relax options.
923 (find_opcode): Don't use short forms of PC relative branches if
924 tic80_relax is set.
925
926end-sanitize-tic80
e0882f34
MM
927start-sanitize-d30v
928Tue Dec 16 15:26:03 1997 Michael Meissner <meissner@cygnus.com>
929
930 * config/tc-d30v.c (parallel_ok): Remove non-register bits from
931 used/set flag fields. Make flag vars unsigned long. Use
932 FLAG_A{0,1} for accumulators. Allow any 2 insns to be done in
933 parallel if they use the same conditional flag with reversed
934 meaning. Allow 2 add/sub insns that set the carry or overflow
935 flags but do not query them to be done in parallel. Don't allow 2
936 word store operations to be done in parallel with ADDppp or
937 SUBppp. Don't allow loads to be done in parallel with 16 bit
938 multiplies.
939
940end-sanitize-d30v
9efc7d59
NC
941Tue Dec 16 09:20:43 1997 Nick Clifton <nickc@cygnus.com>
942
943 * config/tc-arm.c: Prevent use of interworking support for
944 non-COFF targets.
945
a450e9f4
NC
946Mon Dec 15 15:20:32 1997 Nick Clifton <nickc@cygnus.com>
947
ee73be40
NC
948 * doc/all.texi: Add M32R cpu.
949
950 * doc/as.texinfo: Add documentation of m32r processor.
951
952 * doc/c-m32r.texi: New file, documenting m32r specific features.
953
d745e6d9 954start-sanitize-m32rx
a450e9f4
NC
955 * config/tc-m32r.c (allow_m32rx): New function.
956 (enable_m32rx): New variable.
957 (md_pseudo_table): Added .m32r and .m32rx pseudo ops
958 (md_show_usage): Document new --m32rx command line option.
959 (md_parse_option): Implement new --m32rx command line option.
d745e6d9 960end-sanitize-m32rx
a450e9f4 961
09162f6f
JL
962Mon Dec 15 10:32:28 1997 Jeffrey A Law (law@cygnus.com)
963
964 * config/tc-mips.c (mips_ip): Correctly insert 'P' operands into
965 the instruction.
966
599ef811
FF
967start-sanitize-tic80
968Fri Dec 12 11:44:20 1997 Fred Fish <fnf@cygnus.com>
969
970 * config/tc-tic80.c (build_insn): Handle instructions that have
971 long (32 bit) PC relative offsets. Fix places that previously
972 misused R_MPPCR for 15 bit offsets to use the new R_MPPCR15W type.
973 (md_apply_fix): Add case to handle long PC relative offsets.
974
975end-sanitize-tic80
f520aaee
NC
976Fri Dec 12 10:35:01 1997 Nick Clifton <nickc@cygnus.com>
977
978 * doc/c-arm.texi (ARM Options): Document support for new ARM
979 processor names.
980
981 * config/tc-arm.c (md_parse_option): Add support for new ARM
982 processor names.
983
290c51b5
RH
984Thu Dec 11 17:46:50 1997 Richard Henderson <rth@cygnus.com>
985
986 * config/tc-m68k.c (m68k_ip): Don't overwrite opcode table data.
987 (insop, m68k_ip): Make `opcode' const so it doesn't happen again.
988
df09ec8d
NC
989Fri Dec 5 11:23:59 1997 Nick Clifton <nickc@cygnus.com>
990
290c51b5
RH
991 * config/tc-v850.c (md_assemble): Fix BFD_RELOC_32 against a
992 symbol + offset.
993
df09ec8d
NC
994 * config/tc-v850.h (ELF_TC_SPECIAL_SECTIONS): Use
995 SHT_V850_{S|T|Z}COMMON to mark special common sections.
996
d4b2cc56
NC
997Tue Dec 2 17:05:13 1997 Nick Clifton <nickc@cygnus.com>
998
999 * config/tc-v850.c: Brought up to date with the branch.
1000
6fdb746d
JR
1001Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1002
1003 * config/tc-sh.c (SWITCH_TABLE_CONS): Handle (fix)->fx_size == 1.
1004 (SWITCH_TABLE): Handle BFD_RELOC_8.
1005 (md_apply_fix): #ifndef BFD_ASSEMBLER code: Handle fixP->fx_size == 1.
1006 (coff_reloc_map): Add BFD_RELOC_8_PCREL entry.
1007 (sh_coff_reloc_mangle): SWITCH_TABLE case: Handle BFD_RELOC_8.
1008
1009Sat Nov 22 16:19:22 1997 Richard Henderson <rth@cygnus.com>
1010
1011 * tc-alpha.c (range_signed_16, range_signed_32): Work around an
1012 apparent bug in gcc's long long support crossing from x86.
1013
33cb4925
NC
1014Sat Nov 22 14:26:09 1997 Nick Clifton <nickc@cygnus.com>
1015
1016 * config/tc-arm.c: Brought up to date with latest changes on arm
1017 branch.
1018
c699ff04
ILT
1019Sat Nov 22 15:50:09 1997 Klaus Kaempf <kkaempf@progis.de>
1020
8046e281
ILT
1021 * config-gas.com: Get version info from configure.in.
1022
db5bb86e
ILT
1023 * makefile.vms: include depend.obj in OBJS.
1024
6dbf3268
ILT
1025 * config/tc-alpha.c (s_alpha_section): Remove ".lcomm" handling.
1026
c699ff04
ILT
1027 * config/tc-alpha.c (alpha_basereg_clobbered): Remove variable and
1028 all corresponding code.
1029
19bc147e
NC
1030Thu Nov 20 15:06:08 1997 Richard Earnshaw <rearnsha@arm.com>
1031
1032 * config/tc-arm.h (TARGET_FORMAT for generic a.out targets): Allow
1033 run-time endian selection.
1034
04b26b00
RH
1035Wed Nov 19 17:44:42 1997 Richard Henderson <rth@cygnus.com>
1036
1037 * tc-sh.c (parse_reg): Properly quote for fv4.
1038
942f33ae
ILT
1039Wed Nov 19 23:46:18 1997 Ian Lance Taylor <ian@cygnus.com>
1040
1041 * symbols.c (resolve_symbol_value): Add missing breaks in case on
1042 symbol value operator.
1043
35baf6dd
KR
1044start-sanitize-vr5400
1045Wed Nov 19 02:24:07 1997 Ken Raeburn <raeburn@cygnus.com>
1046
1047 * config/tc-mips.c (gpr_interlocks, cop_interlocks): VR5400 has
1048 these.
1049
1050end-sanitize-vr5400
fe00b2ed
JR
1051Tue Nov 18 18:45:14 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1052
1053 * config/tc-d10v.c (parallel_ok, find_opcode):
1054 Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
1055
8d869386
FF
1056Sun Nov 16 10:05:07 1997 Fred Fish <fnf@cygnus.com>
1057
1058 * config/obj-coff.c (fixup_segment): Cast second arg of
1059 md_apply_fix3 call to type "valueT *".
1060
1061Thu Nov 13 13:53:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
1062
1063 * configure.in (emulations): Make FreeBSD an aout / i386bsd
1064 variant.
1065 * configure: Re-generate.
1066
9bb4d384
GRK
1067Thu Nov 13 11:07:14 1997 Gavin Koch <gavin@cygnus.com>
1068
1069 * config/tc-mips.c (macro_build): Use the membership field
1070 for INSN_MACRO's.
1071 (mips_ip): Same.
1072
832ef2cc
JR
1073Thu Nov 13 02:04:55 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1074
1075 * config/tc-d10v.c (find_opcode): For OPCODE_FAKE, add check for
1076 first argument if it's supposed to be a register.
1077
42444087
GRK
1078start-sanitize-tx49
1079Wed Nov 12 10:06:27 1997 Gavin Koch <gavin@cygnus.com>
1080
1081 * config/tc-mips.c (mips_4900): Added.
1082 (hilo_interlocks): Added mips_4900.
1083 (md_begin): Set default for mips_4900.
1084 (macro_build,mips_ip): Test for INSN_4900 if mips_4900.
1085 (md_longopts): Add "m4900" and "no-m4900".
1086 (md_parse_option): Handle above options.
1087
1088end-sanitize-tx49
f2fafcca
JR
1089Tue Nov 11 19:25:05 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1090
1091 * app.c (do_scrub_chars): If d10v, re-insert a space before
1092 a '#' when in state 10.
1093
5de020b4
ILT
1094Tue Nov 11 13:33:15 1997 Ian Lance Taylor <ian@cygnus.com>
1095
1096 * config/tc-h8300.c: Include "subsegs.h".
1097 (tc_reloc_mangle): Handle references to symbols which are not
1098 being output, so that references to `.' work.
1099
f19d08dc
ILT
1100Mon Nov 10 13:43:33 1997 Ian Lance Taylor <ian@cygnus.com>
1101
77635763
ILT
1102 * config/tc-m68k.c (m68k_ip): Call add_fix when needed for '_'
1103 case.
1104
f19d08dc
ILT
1105 * macro.c (sub_actual): If we don't find a parameter for an &,
1106 just substitute &.
1107
b3ed1af3
KR
1108Fri Nov 7 21:29:32 1997 Ken Raeburn <raeburn@cygnus.com>
1109start-sanitize-vr5400
1110
1111 * config/tc-mips.c (mips_ip): Added cases for "e", "%", and "P"
1112 operand types.
1113 (hilo_interlocks): VR5400 has interlocks.
1114 (md_begin): Expect mips64vr5400, not mips64r5400.
1115end-sanitize-vr5400
1116
1117 * config/tc-mips.c (mips_ip): In default case, call as_bad
1118 instead of fprintf, to get "assembler messages:" message output
1119 before instead of after.
1120
4afb407d
DE
1121Fri Nov 7 10:36:22 1997 Doug Evans <devans@canuck.cygnus.com>
1122
1123 * frags.h: Handle multiple inclusion.
1124
070937ba
DE
1125Wed Nov 5 10:51:49 1997 Doug Evans <devans@canuck.cygnus.com>
1126
1127 Based on a patch from Ian.Dall@dsto.defence.gov.au.
1128 * as.h (struct frag, frag support): Moved from here.
1129 * frags.h: To here.
1130 (struct frag, member tc_frag_data): New member if TC_FRAG_TYPE
1131 is defined.
1132 (struct frag, member fr_cgen): Renamed from fr_targ.cgen.
1133 * cgen.c (cgen_asm_finish_insn): Update.
1134 * config/tc-m32r.c (md_estimate_size_before_relax): Update.
1135 * config/tc-m32r.h (TC_FRAG_INIT): Renamed from md_init_frag.
1136 (md_convert_frag): Ditto.
1137 * config/tc-ns32k.h (TC_FRAG_TYPE): Define.
1138 (frag_opcode_frag,frag_opcode_offset,frag_bsr): Update.
1139 (TC_FRAG_INIT): Update.
1140
d57d82d7
DE
1141Tue Nov 4 16:35:57 1997 Ian Dall <Ian.Dall@dsto.defence.gov.au>
1142
1143 * write.c (print_fixup): Use TC_FIX_DATA_PRINT (if defined) to
1144 print out MD fields of fix.
1145 * frags.c (frag_var, frag_variant): Use TC_FRAG_INIT macro (if
1146 defined) to initialize MD fields in frag.
1147 * as.h (struct frag, ns32k support): Rename ns32k to fr_ns32k.
1148 Delete pcrel_adjust. Add fr_opcode_fragP, fr_opcode_offset.
1149 * config/tc-ns32k.h: Add comments. Remove obsolete
1150 BFD_FAST_SECTION_FILL definition, change prototypes for
1151 fix_new_ns32k and fix_new_ns32k_exp to add new arguments
1152 opcode_frag and opcode_offset and remove pcrel_adjust.
1153 (TC_FIX_TYPE): add opcode_fragP and opcode_offset fields.
1154 (TC_FIX_DATA_PRINT): new macro to print out TC_FIX_TYPE.
1155 (TC_FRAG_INIT): new macro to initialize machine dependent field in
1156 frags.
1157 (frag_opcode_frag, frag_opcode_offset, frag_bsr): macros to access
1158 MD fields in frag structure.
1159 (fix_im_disp, fix_bit_fixP, fix_opcode_frag, fix_opcode_offset,
1160 fix_bsr): macros to access MD fields in fix structure.
1161 * config/tc-ns32k.c: Avoid overlength lines. Align comments. Don't
1162 use struct opcode_location as these fields are now in the frag
1163 structure.
1164 (convert_iif): Call frag_more as it is needed instead
1165 of trying to allocate for the whole insn. Avoid call of frag_more
1166 with negative argument.
1167 (md_pcrel_adjust, md_fix_pcrel_adjust, md_apply_fix,
1168 md_estimate_size_before_relax, md_pcrel_from,
1169 tc_aout_fix_to_chars): use accessor macros to get md fields in fix
1170 and frag structures.
1171 (fix_new_ns32k, fix_new_ns32k_exp): add new arguments opcode_frag and
1172 opcode_offset and remove pcrel_adjust.
1173 (convert_iif, cons_fix_new_ns32k): call fix_new_ns32k,
1174 fix_new_ns32k_exp with changed arguments.
1175
1724c79e
GRK
1176Mon Nov 3 13:30:17 1997 Gavin Koch <gavin@cygnus.com>
1177
d57d82d7
DE
1178 * tc-mips.c (md_begin): Reorganize setting of default values so
1179 that mips_cpu depends on TARGET_CPU, and mips_opts.isa depends on
1180 mips_cpu.
1181 (md_parse_option): Remove all code that sets defaults; md_begin
1182 handles all of this now.
1724c79e 1183
0ac53ff0
ILT
1184Sun Nov 2 14:46:09 1997 Ian Lance Taylor <ian@cygnus.com>
1185
1186 * Makefile.am (STAGESTUFF): Change bin_PROGRAMS to
1187 noinst_PROGRAMS.
1188 (bootstrap, bootstrap2, bootstrap3): Likewise.
1189 * Makefile.in: Rebuild.
1190
1191 * config/tc-ppc.c (ppc_fix_adjustable): Don't adjust relocs in the
1192 TOC section to be against the csect.
1193
aa2e0460
KR
1194Fri Oct 31 18:19:55 1997 Ken Raeburn <raeburn@cygnus.com>
1195
1196start-sanitize-vr5400
1197 * config/tc-mips.c (mips_5400): New variable.
1198 (md_begin, md_parse_option): Handle 5400 options/names.
1199 (macro_build, mips_ip): Check for 5400-specific instructions.
1200 (md_longopts, OPTION_M5400, OPTION_NO_M5400): More command-line
1201 support for 5400.
1202
1203end-sanitize-vr5400
1204 * config/tc-mips.c (validate_mips_insn): New function, checks
1205 match versus mask bits, and also verifies that all bits to be
1206 output are actually specified somewhere.
1207 (md_begin): Call it for 32-bit instructions, instead of doing
1208 match/mask check here. In case of failure, print a message, but
1209 check the rest of the opcode table before exiting.
1210
6e3fcdf0
NC
1211Thu Oct 30 13:46:20 1997 Nick Clifton <nickc@cygnus.com>
1212
1213 * config/tc-arm.c (md_apply_fix3): Fix thumb ADR pseudo op. Patch
1214 from Tony Thompson at ARM: athompso@arm.com
1215
42cf6555
MM
1216start-sanitize-d30v
1217Thu Oct 30 11:11:26 1997 Michael Meissner <meissner@cygnus.com>
1218
1219 * config/tc-d30v.c (build_insn): Allow odd registers for ld2w and
1220 friends.
1221
1222end-sanitize-d30v
4ebda395
GRK
1223start-sanitize-tx49
1224Wed Oct 29 16:22:38 1997 Gavin Koch <gavin@cygnus.com>
1225
1226 * config/tc-mips.c (hilo_interlocks): True for tx49.
1227 (md_begin): Add mips64tx49.
1228 (md_parse_option): Add 4900 cpu.
1229
1230end-sanitize-tx49
c14d0cc0
ILT
1231Fri Oct 24 15:56:47 1997 Ian Lance Taylor <ian@cygnus.com>
1232
e59390a7
ILT
1233 * config/tc-ppc.c (md_assemble): When handling @l, always sign
1234 extend if the operand expects a signed value.
1235
c14d0cc0
ILT
1236 * config/tc-mips.h (LOCAL_LABELS_DOLLAR): Don't define; use
1237 default which is to permit dollar labels.
1238
1bb6aaad
RH
1239Fri Oct 24 11:19:22 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz>
1240
1241 * config/tc-sparc.c (sparc_memory_model): New variable.
1242 (md_longopts): Add -TSO/-PSO/-RMO options.
1243 (md_parse_options): Handle them.
1244 (sparc_elf_final_processing): For 64 ELF, set required
1245 memory ordering in e_flags. Default to RMO and let the user
1246 override it through command line.
1247
1248 * config/tc-sparc.h (elf_tc_final_processing): Add.
1249
1277cdda
RH
1250Wed Oct 22 17:42:12 1997 Richard Henderson <rth@cygnus.com>
1251
1252 * config/tc-sparc.c (v9a_asr_table): New variable.
1253 (sparc_ip): Handle v9a asr's.
1254 Patch from David Miller <davem@vger.rutgers.edu>.
1255
7532235c
RH
1256Wed Oct 22 17:22:59 1997 Richard Henderson <rth@cygnus.com>
1257
1258 * config/tc-sparc.h (md_do_align): New macro.
1259 * config/tc-sparc.c (sparc_handle_align): Handle rs_align_code.
1260 Patch from Jakub Jelinek <jj@sunsite.mff.cuni.cz>.
1261
517640d9
ILT
1262Wed Oct 22 12:51:18 1997 Ian Lance Taylor <ian@cygnus.com>
1263
82b4217b
ILT
1264 * config/tc-sh.c (sh_small): New variable.
1265 (OPTION_SMALL): Define.
1266 (md_longopts): Add "small".
1267 (md_parse_option): Handle OPTION_SMALL.
1268 (md_show_usage): Mention -small.
1269 * config/tc-sh.h (sh_small): Declare.
1270 (SUB_SEGMENT_ALIGN): Handle sh_small.
1271 * config/obj-coff.h (TARGET_FORMAT): Check sh_small in TC_SH
1272 case.
1273
517640d9
ILT
1274 * config/tc-mips.c (macro): Correct handling of constant in M_LI_D
1275 case in little endian mode.
1276
61a60a8a
DE
1277Tue Oct 21 10:20:11 1997 Doug Evans <devans@canuck.cygnus.com>
1278
1279 * config/tc-sparc.c (md_apply_fix3, cases ..._H44, ..._HIX22): Leave
1280 overflow signalling to linker.
1281
71e0e8f9
ILT
1282Mon Oct 20 14:54:06 1997 Klaus K"ampf <kkaempf@progis.de>
1283
9659c18b
ILT
1284 * makefile.vms: Fix for dec c.
1285
1286 * config-gas.com: Give explanation for dec c setup in error
1287 message.
1288
1289 * config/tc-alpha.c (s_alpha_comm): Make .comm symbols separate
1290 sections on openvms/alpha.
1291
71e0e8f9
ILT
1292 * config/obj-evax.c: support .weak pseudo-op
1293
595da85d
DE
1294Mon Oct 20 10:13:32 1997 Doug Evans <devans@canuck.cygnus.com>
1295
70ee7782 1296 * config/tc-sparc.c (default_arch_size): New static local.
595da85d
DE
1297 (struct sparc_arch): Rename arch_size to default_arch_size.
1298 New member user_option_p.
1299 (sparc_arch_table): Always include v9, v9a. New entry v9-64.
1300 (init_default_arch): Check whether default arch is valid.
1301 Set default_arch_size in addition to sparc_arch_size.
1302 (OPTION_32,OPTION_64): Define.
1303 (md_longopts): New entries for -32, -64.
1304 (md_parse_option): Handle them.
1305 (md_show_usage): Print them. Ensure init_default_arch called.
70ee7782
DE
1306 * configure.in (sparc64): Set arch to v9-64.
1307 * configure: Regenerated.
595da85d 1308
891a1584
ILT
1309Sun Oct 19 13:50:50 1997 Ian Lance Taylor <ian@cygnus.com>
1310
66a6a381
ILT
1311 * write.c (subsegs_finish): New function, broken out of
1312 write_object_file.
1313 (write_object_file): Some code moves into subsegs_finish.
1314 * write.c (subsegs_finish): Declare.
1315 * as.c (main): Call subsegs_finish.
1316
891a1584
ILT
1317 * read.c (s_include): Check for error return from
1318 demand_copy_string.
1319
08ce71f5
RH
1320Tue Oct 14 20:50:58 1997 Richard Henderson <rth@cygnus.com>
1321
1322 * read.c (get_line_sb): Accept any eol marker while scanning macros.
1323
10b8f7f0
RH
1324Tue Oct 14 19:12:45 1997 Richard Henderson <rth@cygnus.com>
1325
1326 * config/tc-alpha.h (DIFF_EXPR_OK): Define.
1327 * config/tc-i386.h (DIFF_EXPR_OK): Define.
1328 * config/tc-alpha.c (md_apply_fix): Notice fx_pcrel and substitute
1329 the correct relocation when it exists.
1330 * config/tc-i386.c (md_apply_fix3): Likewise.
1331
1332 * config/tc-ppc.h: Correct typo in comment.
1333 * config/tc-v850.h: Likewise.
1334
a0a5f4e2
AC
1335Fri Oct 10 16:09:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
1336
1337 * config/tc-d10v.c (parallel_ok): Allow parallel instruction issue
1338 when second instruction is writing to first instructions inputs.
1339
856f843e
RH
1340Mon Oct 13 15:27:17 1997 Richard Henderson <rth@cygnus.com>
1341
1342 * ecoff.c (PAGE_SIZE): Double to 8k as a hack to allow some C++
1343 templated programs to build with -g.
1344
c2806093
NC
1345Fri Oct 10 17:48:29 1997 Nick Clifton <nickc@cygnus.com>
1346
1347 * config/tc-v850.c (md_relax_table): Add support for relaxing
1348 unconditional branches. This patch is courtesy of Jim Wilson.
1349 (md_convert_frag): Fix relaxing of branches. This patch is
1350 courtesy of Jim Wilson.
1351 (md_assemble): Create different fixups for conditional and
1352 unconditional branches. This patch is courtesy of Jim Wilson.
1353 (md_estimate_size_before_relax): Estimate size of variable part of
1354 fixup based on whether it is for a conditional or an unconditional
1355 branch. This patch is courtesy of Jim Wilson.
1356 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1357 v850_zbss, v850_rosdata, v850_rozdata, v850_bss): Add call to
1358 obj_elf_section_change_hook().
1359 (v850_comm): New function.
1360 (md_pseudo_table): Add new pseudo ops .zcomm, .scomm and .tcomm.
1361 (md_begin): Add bss flag to seg_info of bss sections.
1362
1363 Add support for .scommon, .tcommon and .zcommon sections.
1364
1365 * config/tc-v850.h (ELF_TC_SPECIAL_SECTIONS): Add .scommon,
1366 .zcommon, .tbss, .call_table_data and .call_table_text.
1367
e01e18a8
DE
1368Fri Oct 10 15:01:14 1997 Doug Evans <dje@canuck.cygnus.com>
1369
1370 * configure.in (sparc): Set DEFAULT_ARCH from correct target.
1371 * configure: Regenerated.
1372
b83565de
MH
1373Fri Oct 10 11:22:45 1997 Martin M. Hunt <hunt@cygnus.com>
1374
1375 * config/tc-d10v.c: Fixes to make sure the AT_WORD
1376 expression is not confused with -1.
1377
528859ea
AC
1378Fri Oct 10 11:54:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
1379
1380 * config/tc-d10v.c (parallel_ok): Flag SP as modified for @-sp
1381 operand - OPERAND_ATMINUS.
1382
719ddab4
MM
1383Fri Oct 10 00:47:44 1997 Michael Meissner <meissner@cygnus.com>
1384
1385 * config/tc-d10v.c (parallel_ok): Note that auto increment and
1386 decrement modify the index register.
1387
ed1ed9f9
ILT
1388Thu Oct 9 15:17:50 1997 Ian Lance Taylor <ian@cygnus.com>
1389
15ab76e5
ILT
1390 From Robin Kirkham <Robin.Kirkham@mlb.dmt.csiro.au>:
1391 * config/tc-m68k.c (archs): Add 68306, 68307, 68322, 68356, 68334,
1392 68336, 68341, 68349.
1393 * doc/c-m68k.texi (M68K-Opts): Add -m68ec000 -m68hc000 -m68hc001
1394 -m68306, -m68307, -m68322, -m68356, -m68ec020, -m68ec030,
1395 -m68ec040, -m68ec060, -m68330, -m68334, -m68336, -m68341,
1396 -m68349.
1397
57f269b1
ILT
1398 * doc/Makefile.am (CPU_DOCS): Define.
1399 (as.info): Depend upon $(CPU_DOCS).
1400 * doc/Makefile.in: Rebuild.
1401
ed1ed9f9
ILT
1402 * configure.in: Remove AM_PROG_INSTALL; it's called by
1403 AM_INIT_AUTOMAKE.
1404 * configure: Rebuild.
1405
d78d3671
JR
1406Thu Oct 9 01:44:36 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1407
1408 * tc-d10v.h (TC_START_LABEL): Don't define.
1409 (tc_frob_label): Define.
1410
c7b2ac28
JR
1411Thu Oct 9 00:07:23 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1412
1413 * config/tc-d10v.c (write_2_short): Fix bug that wouldn't allow
1414 to pair a branch and link with anything but an exe instruction.
1415
8a8a91a5
RH
1416Wed Oct 8 16:28:53 1997 Richard Henderson <rth@cygnus.com>
1417
1418 * config/tc-alpha.c (load_expression): Disable the sym+const .got
1419 optimization to reduce the alignment surprises for gcc.
1420
54b9ebdd
DE
1421Wed Oct 8 16:11:15 1997 Doug Evans <dje@canuck.cygnus.com>
1422
1423 * config/obj-coff.h (TC_SPARC): Don't define TARGET_FORMAT.
1424 * config/tc-sparc.c (sparc_target_format): Handle coff here.
1425 (sparc_ip): Add %hix,%lox.
1426 (md_apply_fix3): Call as_bad_where, not as_bad.
1427 Add support for BFD_RELOC_SPARC_{HIX22,LOX10}.
1428 (tc_gen_reloc): Add support for BFD_RELOC_SPARC_{HIX22,LOX10}.
1429
0170f1c3
RH
1430Wed Oct 8 12:33:32 1997 Richard Henderson <rth@cygnus.com>
1431
1432 * configure.in: Change alpha-*-* to alpha*-*-*; config.guess now
1433 recognizes alphaev5 etc.
1434 * configure: Rebuild.
1435
6fd819cf
GRK
1436Wed Oct 8 00:04:05 1997 Gavin Koch <gavin@cygnus.com>
1437
1438 * config/tc-mips.c (md_begin): Replace the TARGET_CPU value
1439 of mipsr3900 with mipstx39.
1440
1441 * config/tc-mips.c (mips_ip): Don't print the 'opcode requires
1442 -mipsXX message' if the insn isn't an ISA insn.
1443
49136667
DE
1444Tue Oct 7 12:48:30 1997 Doug Evans <dje@canuck.cygnus.com>
1445
1446 * config/tc-sparc.h (TARGET_FORMAT support): Moved to tc-sparc.c.
1447 Redefine TARGET_FORMAT to call sparc_target_format.
1448 * config/tc-sparc.c (in_unsigned_range): New function.
1449 (sparc_arch_size): Make static.
1450 (sparc_target_format): New function.
1451 (sparc_ip): Delete variable immediate_max. Rewrite %hi/etc reloc
1452 handling. Add support for %hh,%hm,%lm,%h44,%m44,%l44.
1453 (output_insn): Set `fx_no_overflow'.
1454 (md_apply_fix3): Handle BFD_RELOC_SPARC_{7,H44,M44,L44}.
1455 (tc_gen_reloc): Likewise.
1456
a9da34ae
NC
1457Mon Oct 6 14:04:50 1997 Nick Clifton <nickc@cygnus.com>
1458
1459 * config/tc-v850.c (v850_section): Remove.
1460
1461 * config/obj-elf.c (obj_elf_section): Enhance error message.
1462
7e5c196e
ILT
1463Fri Oct 3 15:40:38 1997 Ian Lance Taylor <ian@cygnus.com>
1464
a3e8c5b7
ILT
1465 * config/tc-mips.c: Undef OBJ_COPY_SYMBOL_ATTRIBUTES before
1466 including obj-elf.h in OBJ_MAYBE_ELF case.
1467 (mips_target_format): Return NULL after abort to avoid warning.
1468
0e7c7b89
ILT
1469 * ecoff.c (generate_ecoff_stab): Remove unused static function.
1470
1175a6c6
ILT
1471 * expr.c (operator): Accept ==. From Anders Blomdell
1472 <anders.blomdell@control.lth.se>.
1473
7e5c196e
ILT
1474 * config/atof-ieee.c (gen_to_words): When generating a denormal
1475 number, handle an overflow into the smallest normalized number.
1476
002e8e4d
JR
1477Mon Sep 29 15:24:52 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1478
1479 * as.h, input-scrub.c (new_logical_line): New return value.
1480 * read.c (s_app_file): Don't note the same file several times
1481 in a row.
1482
89b308f4
ILT
1483Thu Sep 25 13:08:02 1997 Ian Lance Taylor <ian@cygnus.com>
1484
1485 * config/tc-m68k.c (m68k_ip): Remove ` operand specifier.
1486
5e4e4739
ILT
1487Wed Sep 24 16:54:40 1997 Joel Sherrill <joel@oarcorp.com>
1488
1489 * configure.in (sh*-*-rtems*): New target, like sh-*-elf*.
1490 * configure: Rebuild.
1491
b5db0960
ILT
1492Wed Sep 24 11:30:25 1997 Ian Lance Taylor <ian@cygnus.com>
1493
469adf23
ILT
1494 * config/tc-m68k.c (m68k_ip): Handle q and v operand specifiers.
1495
c1503b28
ILT
1496 * doc/c-i386.texi (i386-Float): Remove incorrect assertion that
1497 fn* instructions do not insert implicit fwait. This was changed
1498 Jan 29, 1996.
1499
fdfabd68
ILT
1500 * config/m68k-parse.y (yylex): Permit an expression to be used for
1501 the scale factor.
1502
3d07d766
ILT
1503 * Makefile.am (EXTRA_as_new_SOURCES): Set to config/m68k-parse.y,
1504 not m68k-parse.y.
1505 * Makefile.in: Rebuild.
1506
b5db0960
ILT
1507 * aclocal.m4: Rebuild with new libtool.
1508 * configure: Rebuild.
1509
d70bab10
ILT
1510Tue Sep 23 17:48:09 1997 Ian Lance Taylor <ian@cygnus.com>
1511
15cfc4ad
ILT
1512 * app.c (do_scrub_chars): Clear mri_state at end of .mri
1513 pseudo-op.
1514
d70bab10
ILT
1515 * config/tc-mips.c (hilo_interlocks): Change from a static
1516 variable to a macro, so that it varies with the variables upon
1517 which it depends.
1518 (gpr_interlocks, cop_interlocks): Likewise.
1519 (md_begin): Don't initialize them.
1520
e205ecb8
JL
1521Fri Sep 19 17:08:41 1997 Jeffrey A Law (law@cygnus.com)
1522
1523 * config/tc-mn10300.c (md_assemble): Use strcasecomp instead
1524 of strcmp where appropriate.
1525
920b87c4
NC
1526Thu Sep 18 14:11:56 1997 Nick Clifton <nickc@cygnus.com>
1527
1528 * config/tc-v850.c (md_assemble): Cope with a zero data area
1529 relocation with a constant offset.
6df3c45f
NC
1530 (md_assemble): Produce error message when special data area
1531 relocations are used on instructions which do not support them.
46ad7d6c
NC
1532 (md_assemble): Reset processor mask if defined by command line
1533 switch.
920b87c4 1534
90a579fa
DE
1535Thu Sep 18 11:24:01 1997 Doug Evans <dje@canuck.cygnus.com>
1536
af6f39b4
DE
1537 * config/tc-sparc.c: Reorganize file.
1538 (parse_keyword_arg): Allow numbers in reg names.
1539 (SPECIAL_CASE_NONE): New macro.
1540 (md_assemble): Use it.
2b09622a
DE
1541 (lookup_arch,init_default_arch): New functions.
1542 (default_arch,default_init_p,sparc_arch_table): New static locals.
1543 (sparc_arch_size): New static local.
1544 (max_architecture): Initialize in init_default_arch.
1545 (md_parse_options): Call init_default_arch if necessary.
1546 Rewrite -xarch/-A processing.
1547 (md_show_usage): Print -A values from sparc_arch_table.
1548 (md_begin): Call init_default_arch if necessary.
1549 (sparc_md_end): Handle both 32 and 64 bit environments.
1550 * config/tc-sparc.h (TARGET_FORMAT): Likewise.
1551 * acconfig.h (SPARC_V9,SPARC_ARCH64): Delete.
1552 (DEFAULT_ARCH): Add.
1553 * config.in: Regenerate.
1554 * configure.in (sparc): Default DEFAULT_ARCH based on target cpu.
1555 (SPARC_V9,SPARC_ARCH64): Delete.
1556 * configure: Regenerate.
1557 * config/vms-conf.h (SPARC_V9,SPARC_ARCH64): Delete.
90a579fa 1558
936a8f55
NC
1559Wed Sep 17 16:54:20 1997 Nick Clifton <nickc@cygnus.com>
1560
1561 * config/tc-v850.c (v850_reloc_prefix): Recoded to use CHECK_ ()
1562 macro.
1563 (handle_tdaoff, handle_zdaoff, handle_sdaoff): New functions.
1564start-sanitize-v850e
00fd8294
NC
1565
1566 * config/tc-v850.c (md_assemble): Corrected typo.
936a8f55
NC
1567 * config/tc-v850.c Add new sections: call_table_data and
1568 call_table_text.
1569 (v850_reloc_prefix): Add support for ctoff() relocation prefix.
1570 (handle_ctoff): New Function.
1571
1572 * doc/c-v850.texi (V850 Opcodes): Document call table relocations.
1573end-sanitize-v850e
1574
75285178
NC
1575Tue Sep 16 14:18:22 1997 Nick Clifton <nickc@cygnus.com>
1576
1577 * config/tc-v850.c (v850_reloc_prefix): Add support for a 16 bit
1578 displacement from the tiny data area pointer.
1579
896e248f
JL
1580Mon Sep 15 21:28:09 1997 Jeffrey A Law (law@cygnus.com)
1581
1582 * config/tc-hppa.c (fix_new_hppa): Make declaration match
1583 definition.
1584
d30a2be4
NC
1585Mon Sep 15 18:33:06 1997 Nick Clifton <nickc@cygnus.com>
1586
1587 * config/tc-v850.c (processor_mask): New variable.
1588 (set_machine, md_parse_option): Set processor_mask.
1589 (md_assemble): Check that instruction is available to target
1590 processor.
1591
1592 * config/tc-v850.h (TARGET_PROCESSOR): New constant.
1593start-sanitize-v850e
1594 (TARGET_PROCESSOR): New constant.
d30a2be4 1595 (TARGET_PROCESSOR): New constant.
d70bab10 1596end-sanitize-v850e
d30a2be4 1597
3836d0f3
GRK
1598start-sanitize-tx19
1599Mon Sep 15 17:26:46 1997 Gavin Koch <gavin@cygnus.com>
1600
1601 * config/tc-mips.c (mips_1900): Replace with mips_3900 and
1602 mips16.
1603
1604end-sanitize-tx19
a611b1c2
KR
1605start-sanitize-d30v
1606Mon Sep 15 11:28:04 1997 Ken Raeburn <raeburn@cygnus.com>
1607
1608 Merge in work from Martin Hunt:
1609
1610 * config/tc-d30v.c (build_insn): For mvfsys and mvtsys,
1611 CR is 0 for PSWL and PSWH.
1612
1613 * config/tc-d30v.c (do_assemble): Don't accept
1614 illegal condition codes for cmpu instruction.
1615
1616 * config/tc-d30v.c: Add support for BFD_RELOC_D30V_9_PCREL
1617 used in d*i instructions.
1618
1619 * config/tc-d30v.c (check_size): New function. Check
1620 relocations for overflows.
1621 (md_pcrel_from_section): Fix relocations between sections.
1622 (md_apply_fix3): Use new relocation types for 15 and 21
1623 bit relocations in the right container. Needed because
1624 the address of the instruction is not eight-byte aligned
1625 but the relocations must be.
1626
1627 * config/tc-d30v.c (md_apply_fix3): Check for overflow.
1628 (find_format): If ".s" or ".l" are used, don't try
1629 to compute branch sizes.
1630
1631 * config/tc-d30v.c (do_assemble): Check for ".s" or
1632 ".l" extensions to opcode names.
1633 (find_format): Generate the correct instructions when
1634 ".s" or ".l" are used.
1635
1636 * config/tc-d30v.c (build_insn): Check for odd registers
1637 on instructions that require even registers.
1638
1639 * config/tc-d30v.h (md_start_line_hook): Define.
1640 * config/tc-d30v.c (md_start_line_hook): New hook.
1641 Checks the beginning of each line for a ".". If it
1642 finds one, assume a pseudo-op and flush any unwritten
1643 instructions.
1644
1645 * config/tc-d30v.c (md_apply_fix3): Fix problem
1646 with determining when fixups were done.
1647
1648 * config/tc-d30v.c (build_insn): Fix bug where the numeric
1649 part of a symbol (for example, "foo+8") was being written
1650 into the instruction.
1651 (md_pseudo_table): Change .word to be 32 bits and add
1652 .hword as 16 bits.
1653
1654 * config/tc-d30v.c (parallel_ok): Check to see if first
1655 instruction is a jump.
1656
1657 * config/tc-d30v.c (parallel_ok): Major code reorganization.
1658
1659end-sanitize-d30v
756adc97
NC
1660Wed Sep 10 10:07:08 1997 Nick Clifton <nickc@cygnus.com>
1661
210c24d6
NC
1662start-sanitize-v850e
1663 * config/tc-v850.c (md_assemble): Corrected spelling mistake.
1664end-sanitize-v850e
756adc97
NC
1665 * configure.in (emulations): Add v850 emulation.
1666
fda193d9
DE
1667Tue Sep 9 17:14:33 1997 Doug Evans <dje@canuck.cygnus.com>
1668
1669 * Makefile.am (CPU_TYPES): Add arc.
1670 (TARGET_CPU_CFILES): Add tc-arc.c.
1671 (TARGET_CPU_HFILES): Add tc-arc.h.
1672 (dependencies): Rebuild.
1673 * Makefile.in: Rebuild.
29b35953
DE
1674 * configure.in: Recognize arc-*-elf*.
1675 * configure: Regenerated.
1676 * config/tc-arc.[ch]: New files.
fda193d9 1677
1ffec081
NC
1678Tue Sep 9 10:19:37 1997 Nick Clifton <nickc@cygnus.com>
1679
73a04028
NC
1680 * doc/c-v850.texi (V850 Opcodes): Document hi0() reloc prefix.
1681 Correct description of hi() reloc prefix.
1682
9153e643
NC
1683start-sanitize-v850e
1684 * doc/c-v850.texi (V850 Opcodes): Document new reloc prefix.
1685 * config/tc-v850.c (v850_reloc_prefix): Add hilo() reloc prefix.
1686 * config/tc-v850.c (md_assemble): Add support for BFD_RELOC_32.
1687end-sanitize-v850e
1688
92fdb582
NC
1689 * doc/c-v850.texi: Document new pseudo ops and command line
1690 options.
1691
1ffec081
NC
1692 * config/tc-v850.c (set_machine): New function.
1693 * config/tc-v850.c (.v850): New pseudo op.
1694start-sanitize-v850e
1695 * config/tc-v850.c (.v850e): New pseudo op.
da5715e6 1696 * config/tc-v850.c (.v850ea): New pseudo op.
d70bab10 1697end-sanitize-v850e
1ffec081
NC
1698
1699
47423a92
ILT
1700Mon Sep 8 23:08:04 1997 Ian Lance Taylor <ian@cygnus.com>
1701
1702 Support -alh and -ald for DWARF 1:
1703 * listing.c (struct list_info_struct): Add debugging field.
1704 (listing_newline): Initialize the debugging field. If ELF, if the
1705 section starts with .debug or .line, set the debugging field in
1706 the listing structure.
1707 (debugging_pseudo): Add list parameter. Change all callers. If
1708 the debugging field is set, consider it to be a debugging pseudo.
1709 If ELF, skip blank lines between debugging lines.
1710 * read.c (emit_expr): If ELF, look for line numbers.
1711 (stringer): If ELF, look for file names.
1712
1fd5f4fc
NC
1713Mon Sep 8 12:33:40 1997 Nick Clifton <nickc@cygnus.com>
1714
b0b262f7
NC
1715 * config/tc-v850.c (v850_insert_operand): Only test for overflow
1716 if there is no insert function.
1717
8816811b
NC
1718 * config/tc-v850.h (TARGET_MACHINE): New constant.
1719
1fd5f4fc
NC
1720 * config/tc-v850.c (v850_insert_operand): Add
1721 -mwarn_unsigned_overflow.
8816811b 1722 (md_begin): Set BFD machine number based on machine variable.
da5715e6 1723 (md_parse_option): Add -mv850, -mv850e and -mv850ea options.
1fd5f4fc 1724
bb434496
ILT
1725Mon Sep 8 11:20:46 1997 Ian Lance Taylor <ian@cygnus.com>
1726
1727 * as.h: Don't declare alloca if it is a macro.
1728 * macro.c: Likewise.
1729
b637f306
GRK
1730start-sanitize-tx19
1731Sun Sep 7 16:04:53 1997 Gavin Koch <gavin@cygnus.com>
1732
1733 * config/tc-mips.c: Add tx19/r1900.
1734
1735end-sanitize-tx19
4a04414a
RH
1736Sun Sep 7 00:30:19 1997 Richard Henderson <rth@cygnus.com>
1737
1738 * config/tc-alpha.c (md_parse_option): Move m[] out to top level and
1739 rename to cpu_types[].
1740 (s_alpha_arch): New function.
1741 (md_pseudo_table): Add "arch".
1742
1743 * config/tc-alpha.c (md_begin): Merge the two loops through the
1744 opcode table.
1745 (s_alpha_proc): Add initial SKIP_WHITESPACE.
1746 (s_alpha_set): Likewise. Use get_symbol_end instead local while loop.
1747
a1bbc57c 1748Sat Sep 6 19:38:12 1997 Fred Fish <fnf@cygnus.com>
8183bd07
FF
1749
1750 * read.h (s_lcomm_bytes): Add prototype (for real this time).
1751
662df350
ILT
1752Thu Sep 4 12:10:01 1997 Ian Lance Taylor <ian@cygnus.com>
1753
1754 * config/obj-elf.c (elf_frob_symbol): Only set BSF_OBJECT for
1755 symbols on Irix.
1756
2d278484
NC
1757Wed Sep 3 11:21:33 1997 Nick Clifton <nickc@cygnus.com>
1758
1759 * config/tc-v850.c: Remove BFD_RELOC_V850_16_PCREL.
1760
d37ce763
JL
1761Tue Sep 2 18:32:30 1997 Jeffrey A Law (law@cygnus.com)
1762
1763 * config/tc-mn10200.c (md_convert_frag): PC relative instructions arex
1764 relative to the next instruction, not the current instruction.
1765 (md_assemble): Similarly.
1766
ccf10718
NC
1767Tue Sep 2 15:58:52 1997 Nick Clifton <nickc@cygnus.com>
1768
19ebb9e3
NC
1769 * doc/c-v850.texi: Explanations of offsets in SDA/ZDA areas
1770 correcetd.
1771
ccf10718
NC
1772 * config/tc-v850.c: Add support for SDA/TDA/ZDA sections.
1773 (v850_reloc_prefix): Duplicate code eliminated. Add code to
1774 recognise special instructions.
1775 (md_assemble): Calculation of the size of a fixups corrected.
1776
1777 * config/tc-v850.h (ELF_TC_SPECIAL_SECTIONS): Add SDA/TDA/ZDA
1778 sections.
1779
28e1e54d
AC
1780Tue Sep 2 15:40:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1781
1782 * config/tc-v850.c (md_assemble): Use opcode->name instead of
1783 opcode->opcode as the sentinal. Zero is a valid opcode.
1784
11959ebc
ILT
1785Tue Aug 26 16:51:14 1997 Ian Lance Taylor <ian@cygnus.com>
1786
1787 * doc/as.texinfo (Machine Dependencies): Add v850 to menu.
1788 * doc/c-v850.texi: Change node name to match other chapter nodes.
1789
3f221096
NC
1790Tue Aug 26 09:46:22 1997 Nick Clifton <nickc@cygnus.com>
1791
1792 * doc/c-v850.texi (V850 Opcodes): Correct name for tiny data area
1793 pointer.
3f221096 1794
02bdbd8b
ILT
1795Tue Aug 26 12:23:25 1997 Ian Lance Taylor <ian@cygnus.com>
1796
90b83993
ILT
1797 * expr.c (integer_constant): If BFD64, don't make a bignum if the
1798 number will fit in 64 bits.
1799
4b231a26
ILT
1800 * config/tc-alpha.c (load_expression): Check explicitly for O_big,
1801 rather than calling abort.
1802
a089d2da
ILT
1803 * as.h: Don't define alloca if __GNUC__. Just declare it.
1804 * macro.c: Copy alloca handling from as.h.
1805
977d53fc
ILT
1806 * config/tc-i386.c (i386_align_code): Correct 16 bit noops. From
1807 Gabriel Paubert <paubert@iram.es>.
1808
02bdbd8b
ILT
1809 * config/tc-i386.c (md_assemble): In JumpByte case, when looking
1810 for a WORD_PREFIX_OPCODE, change it to ADDR_PREFIX_OPCODE if this
625ea5db 1811 is jcxz or a loop instruction.
02bdbd8b 1812
b688e04e
NC
1813Mon Aug 25 16:04:14 1997 Nick Clifton <nickc@cygnus.com>
1814
1815 * config/tc-v850.c (pre_defined_registers): Add 'hp' as alias for
1816 r2.
1817 (md_begin): Set up machine architecture and type.
b688e04e 1818
a77b3837
ILT
1819Mon Aug 25 14:25:48 1997 Ian Lance Taylor <ian@cygnus.com>
1820
2051ec0e
ILT
1821 * symbols.c (resolve_symbol_value): Store the value back into the
1822 symbol expression, to handle add or subtract simplification
1823 correctly. Handle O_symbol_rva. Add default case.
1824
a77b3837
ILT
1825 * config/tc-ppc.c (ppc_change_csect): Temporarily lower the
1826 chunksize while creating the new subsection.
1827 * as.c (chunksize): Initialize to zero.
1828 * subsegs.c (subseg_set_rest): Change 5000 to chunksize when
1829 calling obstack_begin.
1830
cf735d2a
NC
1831Mon Aug 25 11:21:48 1997 Nick Clifton <nickc@cygnus.com>
1832
1833 * config/tc-v850.c (md_assemble): Restore input_line_pointer upon
1834 exit.
1835
1836start-sanitize-v850e
1837 * config/tc-v850.c (parse_register_list): Support constant
1838 expressions as register lists.
3e906c08 1839end-sanitize-v850e
cf735d2a 1840
9c506dfb
NC
1841Mon Aug 25 10:19:34 1997 Nick Clifton <nickc@cygnus.com>
1842
1843 * doc/c-v850.texi: Change the major node to v850 Machine
1844 Dependencies.
1845
d72d8c59
NC
1846Fri Aug 22 11:16:14 1997 Nick Clifton <nickc@cygnus.com>
1847
68eaa141
NC
1848 * doc/as.texinfo: Add inclusion of c-v850.texi
1849
1850 * doc/c-v850.texi: New file.
1851
d72d8c59
NC
1852 * read.c (is_end_of_line): Make NUL character be considered to be
1853 a line terminator.
1854
5f044499
NC
1855Fri Aug 22 10:45:33 1997 Nick Clifton <nickc@cygnus.com>
1856
1857 * config/tc-v850.c (parse_register_list): Add support for curly
1858 brace syntax.
1859 (cc_names): Add "e" and "ne" conditions.
5f044499 1860
346c75cd
NC
1861Thu Aug 21 11:00:36 1997 Nick Clifton <nickc@cygnus.com>
1862
1863 * app.c (do_scrub_chars): Support a double dash as starting a
1864 comment that extends to end of line.
1865
19f40fdc
NC
1866Thu Aug 21 10:54:27 1997 Nick Clifton <nickc@cygnus.com>
1867
1868 * config/tc-v850.c (v850_section, v850_bss, v850_offset): New
1869 functions.
1870 (md_pseudo_table): New pseudo ops: .bss, .offset, .section
19f40fdc 1871
d8beaa96
DE
1872Thu Aug 21 00:59:53 1997 Doug Evans <dje@canuck.cygnus.com>
1873
1874 * config/tc-m32r.c (md_estimate_size_before_relax): Update recorded
1875 insn when changing to a different instruction.
1876
bf5ac1b8
JR
1877Wed Aug 20 00:45:20 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1878
1879 * tc-sh.c (parse_reg, get_specific, build_Mytes): Add SH4
1880 floating point extensions.
1881 (parse_reg): parse sgr and dbr.
1882
d8beaa96
DE
1883Tue Aug 19 17:07:34 1997 Nick Clifton <nickc@cygnus.com>
1884
1885 * config/tc-v850.c (system_register_name): Support numbers for
1886 system register IDs.
1887
015b3352
FF
1888Tue Aug 19 08:59:12 1997 Fred Fish <fnf@cygnus.com>
1889
1890 * read.c (s_lcomm_internal): Renamed from s_lcomm, added arg to
1891 flag when alignment is in bytes instead of power of 2, and code to
1892 use that flag to convert alignment to bytes.
1893 (s_lcomm, s_lcomm_bytes): New helpers that call s_lcomm_internal.
1894 * read.h (s_lcomm_bytes): Add prototype.
1895 * config/obj-coff.c (write_object_file): If ALIGNMENT_IN_S_FLAGS is
1896 defined, write alignment to alignment bits in section header s_flags
1897 rather than the s_align field.
1898start-sanitize-tic80
1899 * config/obj-coff.h (ALIGNMENT_IN_S_FLAGS): Define for TC_TIC80.
1900 * config/tc-tic80.c (md_pseudo_table): Use s_lcomm_bytes for bss
1901 pseudo, instead of s_lcomm which wants a power of two for alignment.
1902end-sanitize-tic80
1903
c631cd59
RH
1904Mon Aug 18 20:42:23 1997 Richard Henderson <rth@cygnus.com>
1905
1906 * macro.c (check_macro): use alloca instead of xmalloc to plug leak.
1907
96e0ff46
RH
1908Mon Aug 18 20:33:06 1997 Richard Henderson <rth@cygnus.com>
1909
1910 * as.c (show_usage): Add -am.
1911 * input-scrub.c (input_scrub_include_sb): Don't add leading \n
1912 if we've already got one.
1913 * listing.c (struct list_info_struct): Add line_contents.
1914 (listing_newline): Put unused argument to work: if non-null, save it...
1915 (listing_listing): ... and regurgitate during listing instead of line
1916 from file.
1917 * listing.h (LISTING_MACEXP): New define.
1918 (LISTING_NEWLINE): Argument is NULL.
1919 * read.c (read_a_source_file): If expanding macros, break up input
1920 lines and pass them to listing_newline.
1921 * doc/as.texinfo: Document -ac and -am.
1922
1923 * cond.c (s_ifc): Add missing demand_empty_rest_of_line.
1924
a365cd79
NC
1925Mon Aug 18 11:26:36 1997 Nick Clifton <nickc@cygnus.com>
1926
1927 * config/tc-v850.c (md_apply_fix3): Add support for new 16 bit PC
1928 relative reloc.
1929
1930start-sanitize-v850e
1931Mon Aug 18 11:24:21 1997 Nick Clifton <nickc@cygnus.com>
1932
1933 * config/tc-v850.c: Remove support_v850e flag and command line
1934 option.
1935
1936 * configure.in (emulations): Add support for v850e target
1937
1938 * configure (emulations): Add support for v850e target
a365cd79 1939
a365cd79
NC
1940Mon Aug 18 11:24:21 1997 Nick Clifton <nickc@cygnus.com>
1941
da5715e6 1942 * config/tc-v850.c: Remove support_v850ea flag and command line
a365cd79
NC
1943 option.
1944
da5715e6 1945 * configure.in (emulations): Add support for v850ea target
a365cd79 1946
da5715e6 1947 * configure (emulations): Add support for v850ea target
d70bab10 1948end-sanitize-v850e
a365cd79 1949
cd924033
ILT
1950Fri Aug 15 14:00:13 1997 Ian Lance Taylor <ian@cygnus.com>
1951
999f3587
ILT
1952 * Makefile.am (check-DEJAGNU): Don't cd into testsuite until after
1953 setting EXPECT and TCL_LIBRARY.
1954 * Makefile.in: Rebuild.
1955
cd924033
ILT
1956 * as.h (enum debug_info_type): Define.
1957 (debug_type): Declare.
1958 * as.c (debug_type): New global variable.
1959 (show_usage): Add --gstabs.
1960 (parse_args): Handle --gstabs.
1961 * read.c (generate_asm_lineno): Remove.
1962 (read_a_source_file): Output stabs debugging if appropriate.
1963 Change checks of generate_asm_lineno to check debug_type. Only
1964 generate ECOFF debugging if ECOFF_DEBUGGING is defined.
1965 * read.h (generate_asm_lineno): Don't declare.
1966 (stabs_generate_asm_lineno): Declare.
1967 * stabs.c (stabs_generate_asm_lineno): New function.
1968 * ecoff.c (add_file): Use debug_type, not generate_asm_lineno.
1969 Don't turn off debugging.
1970 (add_file): Remove old #if 0 code.
1971 (ecoff_new_file): Set debug_type, not generate_asm_lineno.
1972 (ecoff_directive_end): Don't generate stabs line symbols.
1973 (ecoff_generate_asm_lineno): Don't check stabs_seen. Don't set
1974 generate_asm_lineno.
1975 (line_label_cnt): Remove.
1976 (ecoff_generate_asm_line_stab): Remove.
1977 * ecoff.h (ecoff_generate_asm_line_stab): Don't declare.
1978 * doc/as.texinfo, doc/as.1: Document --gstabs.
1979
58036ae4
NC
1980Wed Aug 13 18:58:56 1997 Nick Clifton <nickc@cygnus.com>
1981
d70bab10 1982start-sanitize-v850e
58036ae4 1983 * config/tc-v850.c (md_assemble, md_show_usage, md_parse_option):
da5715e6 1984 Add support for v850ea instructions.
d70bab10 1985
58036ae4
NC
1986 * config/tc-v850.c (md_assemble, md_show_usage, md_parse_option):
1987 Add support for v850e instructions.
3e906c08 1988end-sanitize-v850e
58036ae4
NC
1989
1990 * config/tc-v850.c (md_assemble): Fix error recovery to reload
1991 text of entire opcode.
58036ae4 1992
4b67a719
RH
1993Tue Aug 12 10:27:34 1997 Richard Henderson <rth@cygnus.com>
1994
1995 * doc/internals.texi: Document rs_leb128.
1996
de815f61
ILT
1997Tue Aug 12 12:17:03 1997 Ian Lance Taylor <ian@cygnus.com>
1998
1999 * config/tc-m68k.c (m68k_ip): Give an error message for SIZE_BYTE
2000 in ABSL case, rather than calling abort.
2001
8cf777d6
RH
2002Mon Aug 11 21:48:00 1997 Richard Henderson <rth@cygnus.com>
2003
2004 * as.h (enum _relax_state): Add rs_leb128.
2005 * read.c (potable): Add sleb128 and uleb128.
2006 (sizeof_*leb128, output_*leb128, emit_leb128_expr, s_leb128): New
2007 functions.
2008 * read.h: Update prototypes.
2009 * symbols.c (resolve_symbol_value): Streamline quite a bit. Return
2010 the symbol value, add a second FINALIZE argument that prevents
2011 changes from being comitted. Update all callers.
2012 * write.c (cvt_frag_to_fill, relax_segment): Handle rs_leb128.
2013 * doc/as.texinfo: Document the new pseudos.
2014
210e033e
ILT
2015Sun Aug 10 14:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
2016
2017 * Makefile.am (MOSTLYCLEANFILES): Add site.bak, site.exp, stage,
2018 stage1, and stage2.
2019 (DISTCLEANFILES): Define.
2020 * doc/Makefile.am (DISTCLEANFILES): Define.
2021 * Makefile.in, doc/Makefile.in: Rebuild.
2022
29e28dd6
ILT
2023Wed Aug 6 00:30:30 1997 Ian Lance Taylor <ian@cygnus.com>
2024
4dc4c45d
ILT
2025 * configure.in: Define TARGET_BYTES_BIG_ENDIAN if endian is set.
2026 Don't set targ or gas_target. Define SCO_ELF and
2027 TARGET_SOLARIS_COMMENT when appropriate. Don't substitute for
2028 target_frag.
2029 * Makefile.am: Remove @target_frag@.
2030 (INCLUDES): Remove $(INTERNAL_CFLAGS), $(CROSS), $(HDEFINES), and
2031 $(TDEFINES).
2032 (dep-am): Mark as phony.
2033 * acconfig.h: Add TARGET_BYTES_BIG_ENDIAN, TARGET_SOLARIS_COMMENT,
2034 and SCO_ELF.
2035 * config/arm-big.mt, config/arm-lit.mt: Remove.
2036 * config/mips-big.mt, config/mips-lit.mt: Remove.
2037 * config/ppc-big.mt, config/ppc-lit.mt: Remove.
2038 * config/ppc-sol.mt: Remove.
2039 * config/i386coff.mt, config/m68kcoff.mt: Remove.
2040 * config/m88kcoff.mt: Remove.
2041 * config/sco5.mt: Remove.
2042 * configure, config.in, Makefile.in: Rebuild.
2043
2a562314
ILT
2044 * Makefile.am ($(srcdir)/config/m68k-parse.h): New target, to
2045 further try to circumvent the .y.h rule.
2046 * Makefile.in: Rebuild.
2047
e535307a
ILT
2048Tue Aug 5 12:32:07 1997 Ian Lance Taylor <ian@cygnus.com>
2049
e2b4bd2a
ILT
2050 * Makefile.am: New file, based on old Makefile.in.
2051 * acinclude.m4: New file, from old aclocal.m4.
2052 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
2053 shared library handling; now handled by libtool. Replace
2054 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
2055 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
2056 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
2057 * config.in: New file, created by autoheader.
2058 * conf.in: Remove.
2059 * acconfig.h: Mention PACKAGE, VERSION, and USING_CGEN.
2060 * stamp-h.in: New file.
2061 * as.c (print_version_id): Change GAS_VERSION to VERSION.
2062 (parse_args): Likewise.
2063 * config/obj-vms.c: (Write_VMS_MHD_Records): Likewise.
29e28dd6
ILT
2064 * doc/Makefile.am: New file, based on old doc/Makefile.in.
2065 * Makefile.in, doc/Makefile.in: Now built with automake.
e2b4bd2a
ILT
2066 * aclocal.m4: Now built with aclocal.
2067 * configure: Rebuild.
2068
e535307a
ILT
2069 * cond.c (s_else): If not listing false conditionals, turn listing
2070 off in the false branch of the else.
2071
c5cb7682
ILT
2072Mon Aug 4 11:28:35 1997 Ian Lance Taylor <ian@cygnus.com>
2073
703f5e6e
ILT
2074 * config/tc-mips.c (macro): Fix handling of a double load from a
2075 symbol plus an offset.
2076
c5cb7682
ILT
2077 * ecoff.c (ecoff_build_symbols): Set fMerge to 0 for an FDR which
2078 has an associated external symbol.
2079
04269551
RH
2080Sun Aug 3 23:23:59 1997 Richard Henderson <rth@cygnus.com>
2081
2082 * config/tc-alpha.c (s_alpha_ucons): New function.
2083 (md_pseudo_table): Add unaligned data pseudos for DWARF.
2084
15d8ae9d
JL
2085Thu Jul 31 15:13:43 1997 Jeffrey A Law (law@cygnus.com)
2086
c1b2205e
JL
2087 * config/tc-v850.c (md_assemble): Ignore the rest of the current
2088 line if we encounter an error.
2089
15d8ae9d
JL
2090 * config/tc-v850.c (md_assemble): Sign extend constants value
2091 for hi and hi0 expressions.
2092 (v850_insert_operand): Enable range checking for generic 16bit
2093 operands.
2094
d222309a
JL
2095Tue Jul 29 14:20:43 1997 Jeffrey A Law (law@cygnus.com)
2096
2097 * config/tc-v850.c (md_assemble): Turn on fx_no_overflow for
2098 LO16, HI16 and HI16_S relocs.
2099
2e37047c
RS
2100Mon Jul 28 18:41:41 1997 Rob Savoye <rob@chinadoll.cygnus.com>
2101
2102 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
2103 win32 dependencies.
2104 * configure: Regenerated with autoconf 2.12.
2105 * Makefile.in: Add $(EXEEXT) to all executables.
2106
e0362be2
JL
2107Fri Jul 25 10:54:43 1997 Jeffrey A Law (law@cygnus.com)
2108
2109 * tc-hppa.c (md_apply_fix): Improve warnings for out of range
2110 unconditional branches.
2111 (hppa_fix_adjustable): Don't adjust anything with a RR% or LR%
2112 field selector.
2113
09e1d695
DE
2114Thu Jul 24 15:21:49 1997 Doug Evans <dje@canuck.cygnus.com>
2115
2116 * tc-sparc.c (md_begin): Cast sparc_opcodes to PTR for hash_insert.
2117
280cdd54
ILT
2118Thu Jul 24 17:51:29 1997 Ian Lance Taylor <ian@cygnus.com>
2119
2120 * macro.c (define_macro): Make sure the index is in range before
2121 checking for '('.
2122
e6e676a5
FF
2123start-sanitize-tic80
2124Thu Jul 24 12:13:19 1997 Fred Fish <fnf@cygnus.com>
2125
2126 * config/tc-tic80.c (build_insn): Remove "extended" and replace with
2127 "fx" and "fxfrag". Add "ffrag". Change code to initialize and use
2128 the right f/ffrag and fx/fxfrag pairs since instruction may be split
2129 across frags.
2130
2131end-sanitize-tic80
68299279
ILT
2132Tue Jul 22 18:38:56 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
2133
2134 * config/te-go32.h (USE_ALIGN_PTWO): Define.
2135 * config/tc-i386.c (md_pseudo_table): If USE_ALIGN_PTWO is
2136 defined, use s_align_ptwo for .align.
ea1c39ce
ILT
2137 * configure.in (i386-*-msdosdjgpp*): New target.
2138 (i386-*-go32*): Set em to go32 and targ to coffgo32.
2139 * configure: Rebuild.
68299279 2140
bd3a1eba
DE
2141Tue Jul 22 12:41:40 1997 Doug Evans <dje@canuck.cygnus.com>
2142
2143 * config/tc-sparc.c (last_opcode): New static local.
2144 (md_assemble): Don't issue "FP branch in delay slot" warning if
2145 the delay slot has been annulled.
2146
1d303653
ILT
2147Tue Jul 22 13:25:13 1997 Ian Lance Taylor <ian@cygnus.com>
2148
2149 * config/tc-m68k.c (md_apply_fix_2): Check for PC relative reloc
2150 code if BFD_ASSEMBLER.
2151
47bfb6fc
JL
2152Mon Jul 21 08:57:17 1997 Jeffrey A Law (law@cygnus.com)
2153
2154 * config/tc-v850.c (system_registers): Fix ordering of registers.
2155
e53430c4
FF
2156start-sanitize-tic80
2157Tue Jul 15 16:29:54 1997 Fred Fish <fnf@cygnus.com>
2158
2159 * config/tc-tic80.c (build_insn): Initialize extended word to zero
2160 when it will be filled in later by relocation information.
2161
2162end-sanitize-tic80
a652f74c
ILT
2163Mon Jul 14 23:10:58 1997 Ian Lance Taylor <ian@cygnus.com>
2164
2165 * config/tc-mips.c (macro_build): Restore check of fmt argument.
2166 (mips_ip): Fix ISA checks.
2167
9587640a
JL
2168start-sanitize-r5900
2169Tue Jul 15 10:15:39 1997 Jeffrey A Law (law@cygnus.com)
2170
2171 * configure.in: Default the r5900 to little endian.
2172 * configure: Rebuilt.
2173
2174end-sanitize-r5900
8ae66b94
FF
2175start-sanitize-tic80
2176Mon Jul 14 19:30:55 1997 Fred Fish <fnf@cygnus.com>
2177
2178 * config/tc-tic80.c (build_insn): Fix endianness problem with
2179 O_big operands.
2180
2181end-sanitize-tic80
4dc85508
ILT
2182Sun Jul 13 20:43:46 1997 Ian Lance Taylor <ian@cygnus.com>
2183
2184 * config/tc-mips.c (check_absolute_expr): Change warning to
2185 error.
2186
931a1858
JL
2187Fri Jul 11 10:18:47 1997 Jeffrey A Law (law@cygnus.com)
2188
2189 * config/tc-mips.c (macro_build): Refine code to check if an
2190 instruction is available on a particular cpu variant.
2191 (mips_ip): Likewise.
2192
76fb6d2f
ILT
2193Mon Jul 7 22:53:08 1997 Ian Lance Taylor <ian@cygnus.com>
2194
2195 * config/tc-i386.c (tc_i386_fix_adjustable): Change ifndef
2196 OBJ_AOUT to ifdef OBJ_ELF.
2197 (md_apply_fix3): When mangling 32 bit PC relative reloc for
2198 BFD_ASSEMBLER, handle one ELF case for COFF as well, and add a PE
2199 case.
2200 * write.c (fixup_segment): Change special case for i386-coff to
2201 not apply for i386-pe.
2202 * config/obj-coff.c (coff_adjust_section_syms): Only count fixups
2203 which were not done.
2204 (coff_frob_file_after_relocs): Rename from coff_frob_file.
2205 (coff_format_ops): Initialize frob_file_after_relocs field rather
2206 than frob_file field.
2207 * config/obj-coff.h (coff_frob_file): Don't declare.
2208 (coff_frob_file_after_relocs): Declare.
2209 (obj_frob_file): Don't define.
2210 (obj_frob_file_after_relocs): Define.
2211 * configure.in: Set bfd_gas to yes for i386-*-cygwin32.
2212 * configure: Rebuild.
2213
b709b16f
ILT
2214Wed Jul 2 12:05:00 1997 Ian Lance Taylor <ian@cygnus.com>
2215
2216 * config/obj-coff.c (fixup_segment): Never subtract section
2217 address from PC relative reloc which will be fully resolved.
2218
db3152ef
JL
2219Tue Jul 1 15:23:07 1997 Jeffrey A Law (law@cygnus.com)
2220
2221 * ecoff.c (page_type): Renamed from page_t to avoid conflict
2222 with hpux10 header files.
2223
b73fcae8
ILT
2224Mon Jun 30 12:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
2225
2226 From Jason Merrill <jason@cygnus.com>:
2227 * read.c (do_align): If BFD_ASSEMBLER, only use NOP_OPCODE if
2228 SEC_CODE is set.
2229 * config/tc-i386.h (md_maybe_text): Define.
2230 (md_do_align): Use md_maybe_text.
2231
d006e435
MM
2232Fri Jun 27 19:15:27 1997 Michael Meissner <meissner@cygnus.com>
2233
2234 * config/tc-ppc.h (tc_fix_adjustable): Only check for GOT type
2235 relocations, don't check for symbol being external, weak, etc.
2236
24a3e622
ILT
2237Mon Jun 16 19:12:51 1997 Geoff Keating <geoffk@ozemail.com.au>
2238
2239 * config/tc-ppc.h (tc_fix_adjustable): Don't let the assembler
2240 calculate relocations to any external symbol, because we might be
2241 linking a shared object and the symbol might be overriden or moved
2242 (for instance, moved into a static executable's .bss section).
2243 (GLOBAL_OFFSET_TABLE_NAME): Delete. This is an i386 wierdness.
2244
2245 * config/tc-ppc.h (tc_fix_adjustable): GOT-based relocations can't
2246 be calculated by the assembler.
2247
2248 * config/tc-ppc.c (md_apply_fix3): Handle @plt or @local branch
2249 whose destination lies in the same file, by ignoring the @plt or
2250 @local and aiming the branch at its destination.
2251
b0447a0e
ILT
2252Mon Jun 16 13:59:18 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2253
2254 * symbols.c (copy_symbol_attributes): Copy BSF_OBJECT flag.
2255 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy size
2256 expression.
2257
2258 * config/obj-multi.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define instead
2259 of obj_copy_symbol_attributes.
2260
be2c18bd
ILT
2261Mon Jun 16 12:45:56 1997 Ian Lance Taylor <ian@cygnus.com>
2262
3a035861
ILT
2263 * config/tc-ppc.c (ppc_insert_operand): In 32 bit mode, with a
2264 signed operand, sign extend a 32 bit value to the host size.
2265
2266 * Makefile.in (CFLAGS): Subsitute from configure script. From
2267 Jeff Makey <jeff@cts.com>.
2268
a52f90a4
ILT
2269 * config/tc-i386.c (i386_operand): Use alloca rather than a fixed
2270 buffer size to make a copy of the symbol.
2271
be2c18bd
ILT
2272 * Makefile.in (OBJS): Put @extra_objects@ on the same line as
2273 macro.o.
2274
7799bb2c
ILT
2275Thu Jun 12 12:16:20 1997 Ian Lance Taylor <ian@cygnus.com>
2276
2277 * write.c (write_object_file): In non BFD_ASSEMBLER code, as we
2278 step through the frags calling cvt_frag_to_fill, switch to
2279 SEG_DATA when we reach data_frag_root.
2280
43ee18a0
JL
2281Tue Jun 10 17:08:34 1997 Jeffrey A Law (law@cygnus.com)
2282
2283 * config/tc-mn10300.c (md_assemble): Allow an empty register
2284 list for instructions which use register lists.
2285
ccc30467
ILT
2286Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2287
d2e5779b
ILT
2288 * config/tc-arm.c (md_apply_fix3): Make temp unsigned long.
2289
7436e4de
ILT
2290 * config/tc-arm.c (arm_adjust_symtab): Only set storage classes if
2291 OBJ_COFF.
2292
ccc30467
ILT
2293 * config/tc-arm.c: Add prototypes for many static functions.
2294 (struct asm_opcode ): Add prototypes for parms field.
2295 (struct thumb_opcode ): Likewise.
2296 (fp_op2): Remove unused flags parameter.
2297 (output_inst): Make static.
2298 (arm_after_pass_hook): Remove unused ignore parameter.
2299 * config/tc-arm.h (arm_after_pass_hook): Declare.
2300 (arm_start_line_hook): Declare.
2301 (arm_frob_label): Declare.
2302
170cdf75
ILT
2303Mon Jun 9 12:55:45 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2304
2305 * depend.c (wrap_output): new prototype.
2306
af438bdb
ILT
2307Mon Jun 9 12:52:44 1997 Ian Lance Taylor <ian@cygnus.com>
2308
4b4c1e0f
ILT
2309 * config/tc-sh.c (md_apply_fix): Check for overflow.
2310
af438bdb
ILT
2311 * config/tc-m68k.c (md_section_align): If a.out and BFD, force
2312 section size to be aligned.
2313
72574181
ILT
2314Fri Jun 6 17:15:55 1997 Ian Lance Taylor <ian@cygnus.com>
2315
2316 * config/tc-sh.h (md_cons_align): Define.
2317 (sh_cons_align): Declare.
2318 * config/tc-sh.c (md_pseudo_table): Add .uaword and .ualong.
2319 (sh_no_align_cons): New static variable.
2320 (s_uacons): New static function.
2321 (sh_cons_align): New function.
2322 (sh_handle_align): Warn about misaligned data.
2323 * doc/c-sh.texi: Document .uaword and .ualong.
2324
2325Thu Jun 5 15:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
2326
2327 * macro.c (macro_expand): In MRI mode, treat single quote as a
2328 separator character when checking for a positional argument.
2329
d0badeab
NC
2330Tue Jun 3 16:15:13 1997 Nick Clifton <nickc@cygnus.com>
2331
48e509bf
NC
2332 * config/tc-arm.c (md_parse_option): Merge in changes from
2333 armT-970328-branch.
f8a21443 2334
48e509bf
NC
2335 * config/tc-arm.h: Merge in changes from armT-970328-branch.
2336
2337 * configure.in (emulations): Add Thumb architecture support from
d0badeab
NC
2338 armT-9703-28-branch.
2339
2903fb6e
NC
2340Mon Jun 2 16:25:07 1997 Nick Clifton <nickc@cygnus.com>
2341
3357a5ab
NC
2342 * doc/all.texi: Add enabling of ARM documentation.
2343
2903fb6e
NC
2344 * doc/as.texinfo: Add ARM documentation from armT-970328-branch.
2345
5c6f5923
GRK
2346Mon Jun 2 11:55:12 1997 Gavin Koch <gavin@cygnus.com>
2347
2348 * config/tc-mips.c: Added r3900 support.
2349
dccd4d2c
ILT
2350Thu May 29 12:58:26 1997 Ben Pfaff <pfaffben@pilot.msu.edu>
2351
2352 * as.c: (parse_args) `-t' option requires an argument.
2353
2354Wed May 28 15:45:07 1997 Nick Clifton <nickc@cygnus.com>
2355
2356 * config/tc-arm.c (md_begin): Change call to
2357 coff_arm_bfd_set_private_flags() to a call to
2358 bfd_set_private_flags().
2359
5ac3db53
ILT
2360Wed May 28 16:17:34 1997 Ian Lance Taylor <ian@cygnus.com>
2361
1d6f438f
ILT
2362 * Makefile.in: Rebuild dependencies.
2363
5ac3db53
ILT
2364 * config/tc-i386.c (tc_gen_reloc): Don't try to convert the type
2365 of a BFD_RELOC_RVA reloc.
2366
f22950b9
JL
2367Wed May 28 10:48:14 1997 Jeffrey A Law (law@cygnus.com)
2368
2369 * config/tc-hppa.c (tc_fix_adjustable): Reject absolute calls/jumps.
2370 (hppa_force_relocation): Force a relocation for an absolute
2371 call/jump.
2372
1079e76c
ILT
2373Mon May 26 13:24:25 1997 Ian Lance Taylor <ian@cygnus.com>
2374
2375 * doc/as.texinfo: Don't use @value in section names or index
2376 entries; it confuses texinfo.tex.
2377
8a51eeaf
TT
2378Fri May 23 00:09:35 1997 Tom Tromey <tromey@cygnus.com>
2379
2380 * doc/as.texinfo: Updated for -MD option.
2381 * Makefile.in (CFILES): Added depend.c.
2382 (OBJS): Added depend.o.
2383 * as.h (start_dependencies, register_dependency,
2384 print_dependencies): New declarations.
2385 * depend.c: New file.
2386 * as.c (parse_args): Added -MD option.
2387 (main): Call print_dependencies.
2388 (show_usage): Added help for -MD.
2389 * read.c (s_app_file): Call register_dependency.
2390 (s_include): Call register_dependency when file is found.
2391 (read_a_source_file): Call register_dependency.
2392
1a7a427e
ILT
2393Wed May 21 17:39:28 1997 Ian Lance Taylor <ian@cygnus.com>
2394
2395 * config/obj-coff.c (symbol_to_chars): If TE_PE, don't add the
2396 section address to the symbol value.
2397
e17449bc
GRK
2398Tue May 20 11:23:31 1997 Gavin Koch <gavin@cygnus.com>
2399
1a7a427e
ILT
2400 * config/tc-mips.c (macro_build,mips_ip): Move the INSN_ISA field
2401 into the new membership field.
e17449bc 2402
de046e7c
NC
2403Thu May 15 10:00:53 1997 Nick Clifton <nickc@cygnus.com>
2404
2405 * config/tc-arm.c (md_begin): If no cpu type is specified on the
2406 command line then the ARM7 is now chosen by default when setting
2407 the BFD machine and architecture.
2408
46686c78
NC
2409Wed May 14 09:54:53 1997 Nick Clifton <nickc@cygnus.com>
2410
2411 * config/tc-arm.c (global variables): Added 'uses_apcs_26' flag to
1a7a427e
ILT
2412 hold APCS selection.
2413 (md_begin): Added code to generate flags to be set into the COFF
2414 header and the calls to the BFD functions to do this.
2415 (md_parse_option, md_show_usage): Added new command line
46686c78
NC
2416 options -mapcs-32, -mapcs-26, -marmv2, -marmv2a, -marmv3,
2417 -marmv3m, -marmv4, -marmv4t.
2418
2419 * tc-arm.h (LOCAL_LABEL): Removed the definition of this macro
2420 as it is never used.
2421
2393a966
JL
2422Tue May 13 22:26:14 1997 Jeffrey A Law (law@cygnus.com)
2423
2424 * config/tc-mn10200.c (md_convert_frag): Prefix temporary
2425 label name with ".".
2426 * config/tc-mn10300.c (md_convert_frag): Likewise.
2427
cd05cc5e
ILT
2428Tue May 13 14:44:39 1997 Ian Lance Taylor <ian@cygnus.com>
2429
2430 * config/tc-mips.c (set_at): Check for bignum.
2431 (check_absolute_expr, macro, mips16_macro): Likewise.
2432
7b02bacd
FF
2433start-sanitize-tic80
2434Tue May 13 10:45:56 1997 Fred Fish <fnf@cygnus.com>
2435
2436 * config/tc-tic80.c (md_apply_fix): Check PC relative relocations
2437 for overflow/underflow, only insert lower 15 bits into instruction.
2438
2439end-sanitize-tic80
98b4161a
ILT
2440Mon May 12 13:33:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2441
2442 * config/tc-i386.c (pi): Check for RegMMX.
2443
ee42e25b
ILT
2444Thu May 8 11:10:15 1997 Ian Lance Taylor <ian@cygnus.com>
2445
2446 * expr.c (expr): When subtracting values in the same frag,
2447 subtract X_add_number rather than adding it.
2448
a5586bdc
ILT
2449Wed May 7 15:39:48 1997 Ian Lance Taylor <ian@cygnus.com>
2450
662a6d9e
ILT
2451 * config/obj-coff.c (write_object_file): Just pass NULL to
2452 md_do_align, not the address of a char holding NOP_OPCODE.
2453
a5586bdc
ILT
2454 * config/tc-mips.c (macro): Handle constants for M_LI_D and
2455 M_LI_DD.
2456 (mips_ip): For 'F', 'L', 'f', and 'l', generate a constant rather
2457 than an address if the floating point value looks sufficiently
2458 simple.
2459
91951af6
ILT
2460Tue May 6 12:18:09 1997 Ian Lance Taylor <ian@cygnus.com>
2461
2462 * config/tc-i386.c (md_section_align): If a.out and BFD, force
2463 section size to be aligned.
2464
454b0ccd
ILT
2465Mon May 5 17:16:55 1997 Ian Lance Taylor <ian@cygnus.com>
2466
0239838b
ILT
2467 * cond.c: Include "macro.h".
2468 (struct conditional_frame): Add macro_nest field.
2469 (initialize_cframe): Initialize macro_nest.
2470 (cond_finish_check): Add nest parameter. Change all callers.
2471 (cond_exit_macro): New function.
2472 * as.h (cond_finish_check): Update declaration.
2473 (cond_exit_macro): Declare.
2474 * input-scrub.c (macro_nest): Make globally visible.
2475 (input_scrub_next_buffer): Call cond_finish_check.
2476 * macro.h (macro_nest): Declare.
2477 * read.c (s_mexit): Call cond_exit_macro.
2478
454b0ccd
ILT
2479 * config/tc-i386.h (RegMMX): Define.
2480 * config/tc-i386.c (pi): Check for all register types.
2481 (type_names): Add RegMMX.
2482 (md_assemble): Handle RegMMX.
2483
2484Wed Apr 30 12:47:00 1997 Manfred Hollstein <manfred@s-direktnet.de>
2485
2486 * config/obj-coff.c (c_section_symbol): Clear the LOCAL bit #ifdef
2487 TE_DELTA.
2488
2489Tue Apr 29 20:23:10 1997 Jim Wilson <wilson@cygnus.com>
2490
2491 * config/tc-mips.c (nopic_need_relax): Add new parameter
2492 before_relaxing. Use it when testing ecoff_extern_size.
2493 (load_address, macro, md_estimate_size_before_relax): Fix all
2494 callers.
2495
24d4b4e1
ILT
2496Tue Apr 29 19:54:36 1997 Richard Henderson <rth@tamu.edu>
2497
2498 * config/obj-elf.c (elf_pseudo_table): Add "subsection".
2499 (obj_elf_subsection): New static function.
2500
4a38edaa
ILT
2501Tue Apr 29 19:52:47 1997 Ian Lance Taylor <ian@cygnus.com>
2502
2503 * config/obj-coff.c (coff_header_append): Don't reset string_size
2504 each time through the loop.
2505
1416631f
ILT
2506Fri Apr 25 14:17:46 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2507
2508 * Makefile.in (DISTSTUFF): Add itbl-parse.h.
2509
49f5a035
ILT
2510Fri Apr 25 12:03:15 1997 Ian Lance Taylor <ian@cygnus.com>
2511
8f9b2cea
ILT
2512 * doc/internals.texi (Porting GAS): Correct documentation for
2513 current configure handling of targ-cpu.h, et. al.
2514 (CPU backend): Document listing macros.
2515
49f5a035
ILT
2516 * listing.c (data_buffer): Set size based on other listing macros,
2517 rather than always using 100.
2518 (data_buffer_size): Remove static variable.
2519 (calc_hex): Make data_buffer_size a local variable. Don't leave
2520 any slop when filling data_buffer.
2521
a21dd1e0
ILT
2522Mon Apr 21 15:33:19 1997 Ian Lance Taylor <ian@cygnus.com>
2523
2524 * doc/c-mips.texi: Document .set autoextend.
2525
49f90a34
ILT
2526Sat Apr 19 23:09:25 1997 Niklas Hallqvist <niklas@petra.appli.se>
2527
2528 * configure.in (i386-*-openbsd*, m68k-*-openbsd*,
2529 mips-dec-openbsd*, ppc-*-*bsd*, ns32k-pc532-openbsd*,
2530 sparc-*-openbsd*): New targets.
2531 * configure: Rebuild.
2532
aff65ed9
ILT
2533Sat Apr 19 22:52:03 1997 Jim Wilson <wilson@cygnus.com>
2534
2535 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
2536 for all undefined symbols.
2537
fec391b1
ILT
2538Fri Apr 18 13:37:35 1997 Ian Lance Taylor <ian@cygnus.com>
2539
2540 * config/tc-ppc.c (ppc_fix_adjustable): Handle zero length csects
2541 correctly.
2542
894cca25
ILT
2543Fri Apr 18 11:51:35 1997 Niklas Hallqvist <niklas@appli.se>
2544
2545 * configure.in (alpha*-*-openbsd*): New target.
2546 * configure: Rebuild.
2547
fc984eb0
ILT
2548Thu Apr 17 13:59:47 1997 Per Fogelstrom <pefo@openbsd.org>
2549
2550 * configure.in (mips-*-openbsd*): New target.
2551 * configure: Rebuild.
2552
4bdb83fc
MH
2553start-sanitize-d30v
2554Wed Apr 16 12:31:24 1997 Martin Hunt <hunt@cygnus.com>
2555
2556 * config/tc-d30v.c (parallel_ok): Fix parallel checking
2557 for instructions using conditional execution.
2558
2559end-sanitize-d30v
68952421
GRK
2560Tue Apr 15 18:11:44 1997 Gavin Koch <gavin@cygnus.com>
2561
2562 * config/tc-mips.c (insn_uses_reg): Correct test for fpr pairs.
2563
e366a2d6
ILT
2564Tue Apr 15 13:04:47 1997 Ian Lance Taylor <ian@cygnus.com>
2565
2566 * Makefile.in (srcroot): Remove.
2567 (INSTALL): Set to @INSTALL@.
2568 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
2569 (all, dvi): Don't set srcroot.
2570 (install): Depend upon as.new, gasp.new, and installdirs. Use
2571 $(program_transform_name) directly, rather than using
2572 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
2573 (installdirs): New target.
2574 * doc/Makefile.in (INSTALL_XFORM1): Remove.
2575 (install): Depend upon installdirs. Use $(program_transform_name)
2576 directly, rather than using $(INSTALL_XFORM) and
2577 $(INSTALL_XFORM1).
2578 (installdirs): New target.
2579 (install-info-as): Run mkinstalldirs.
2580 (install-info-gasp): Likewise.
2581
dca6429f
ILT
2582Mon Apr 14 11:59:08 1997 Ian Lance Taylor <ian@cygnus.com>
2583
e366a2d6
ILT
2584 * Makefile.in (INSTALL): Change install.sh to install-sh.
2585
dca6429f
ILT
2586 * symbols.c (resolve_symbol_value): Check for division by zero.
2587
2588 From Thomas Graichen <graichen@rzpd.de>:
2589 * Makefile.in: Always use $(SHELL) when running move-if-change.
2590 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
2591 * configure: Rebuild.
2592
4e9d8dea
DE
2593Thu Apr 10 14:40:00 1997 Doug Evans <dje@canuck.cygnus.com>
2594
f3f00e94
DE
2595 * cgen.c (cgen_parse_operand): Renamed from cgen_asm_parse_operand.
2596 New argument `want'. Update enum cgen_parse_operand_result values.
2597 Initialize if CGEN_PARSE_OPERAND_INIT.
2598 * config/tc-m32r.c (md_begin): Set cgen_parse_operand_fn.
4e9d8dea
DE
2599 (md_assemble): Call cgen_asm_init_parse.
2600 Update call to m32r_cgen_assemble_insn, call as_bad if assembly failed.
2601
902a77ac
ILT
2602Wed Apr 9 11:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
2603
2604 * config/tc-m68k.c (m68k_ip): Handle #j.
2605
96742953
JL
2606Tue Apr 8 16:37:57 1997 Jeffrey A Law (law@cygnus.com)
2607
2608 * config/tc-mn10300.c (md_convert_frag): Create fixup at the
2609 right address for call label:32,regs,imm.
2610
e41369a4
JL
2611Mon Apr 7 14:58:22 1997 Jeffrey A Law (law@cygnus.com)
2612
2613 * config/tc-hppa.c (pa_subspace_start): If OBJ_ELF, then always return
2614 zero.
2615 * config/tc-hppa.h (tc_frob_symbol): Don't reset the value of the
2616 symbol for OBJ_ELF anymore.
2617
39ffbb4d
DE
2618Mon Apr 7 10:54:59 1997 Doug Evans <dje@canuck.cygnus.com>
2619
2620 * Makefile.in: Regenerate dependencies.
2621 (TARG_CPU): New variable.
2622 (cgen.o): Depend on cgen.h, $(TARG_CPU)-opc.h.
2623 (.dep1): Delete creating of cgen-opc.h.
2624 (.tcdep): Put proper contents in cgen-opc.h.
2625 * configure.in (m32r): Delete setting of extra_files, extra_links.
2626 (AC_OUTPUT): Create cgen-opc.h.
2627 * configure: Regenerated.
2628
596c5b74
ILT
2629Sat Apr 5 13:19:12 1997 Klaus Kaempf <kkaempf@progis.de>
2630
2631 * makefile.vms: Update to build gasp.exe.
2632
374bdac7
DE
2633Fri Apr 4 16:10:02 1997 Doug Evans <dje@canuck.cygnus.com>
2634
c8cf7e17
DE
2635 * write.c (relax_frag): Make non-static.
2636 * write.h (relax_frag): Add prototype for.
2637 * config/tc-m32r.h (md_do_align): New arg `max'.
2638 * config/tc-m32r.c (m32r_do_align): Likewise.
2639 Update calls to frag_align, frag_align_pattern.
2640 (fill_insn): Update call to m32r_do_align.
2641 (m32r_scomm): Update call to frag_align.
2642
374bdac7
DE
2643 * config/tc-m32r.[ch]: New files.
2644 * cgen.c: New file.
2645 * Makefile.in (CPU_TYPES): Add m32r.
374bdac7
DE
2646 (TARGET_CPU_CFILES): Add tc-m32r.c.
2647 (TARGET_CPU_HFILES): Add tc-m32r.h.
374bdac7
DE
2648 (DISTCLEAN_HERE): Add cgen-opc.h.
2649 (.dep1,.tcdep): Create empty cgen-opc.h.
2650 (cgen.o): Add dependencies.
2651 (dependencies): Regenerate.
2652 * as.h (struct frag): New member fr_targ.
2653 (fr_pcrel_adjust,fr_bsr): Move into union fr_targ.ns32k.
2654 * conf.in (USING_CGEN): New macro.
2655 * configure.in (m32r-*-*): Add entry for.
39ffbb4d 2656 Add cgen.o to extra_objects.
374bdac7 2657 * configure: Regenerate.
403c708e
DE
2658 * frags.c (frag_var): fr_pcrel_adjust renamed to
2659 fr_targ.ns32k.pcrel_adjust. fr_bsr renamed to fr_targ.ns32k.bsr.
2660 (frag_variant): Likewise.
2661 * write.c (relax_frag): Likewise.
374bdac7 2662 * config/tc-ns32k.c (*): Likewise.
374bdac7 2663
e819d858
ILT
2664Fri Apr 4 13:26:10 1997 Ian Lance Taylor <ian@cygnus.com>
2665
dc966dad
ILT
2666 * config/tc-hppa.h (TC_EOL_IN_INSN): Check explicitly for '!',
2667 rather than for any end of line character.
2668
5c11dba2
ILT
2669 * config/tc-hppa.c (tc_gen_reloc): If hppa_ren_reloc_type fails,
2670 call abort (i.e., as_abort) rather than crashing.
2671
457a20b5
ILT
2672 * config/tc-mips.c: Protect uses of STO_MIPS16 with an ifdef of
2673 OBJ_ELF, rather than of S_GET_OTHER.
2674
e819d858
ILT
2675 * Makefile.in (DISTCLEAN_HERE): Add site.exp and site.bak.
2676
3884d17b
ILT
2677Thu Apr 3 13:16:18 1997 Ian Lance Taylor <ian@cygnus.com>
2678
2679 * Makefile.in (VERSION): Set to 2.8.1.
2680
2681 * Branched binutils 2.8.
2682
08438bef
ILT
2683Wed Apr 2 12:24:10 1997 Ian Lance Taylor <ian@cygnus.com>
2684
64d20049
ILT
2685 * COPYING: Update FSF address.
2686
08438bef
ILT
2687 * config/tc-mips.c (mips16_macro): Handle M_DMUL and M_MUL.
2688
3c83da8a
JW
2689Tue Apr 1 18:29:47 1997 Jim Wilson <wilson@cygnus.com>
2690
2691 * config/tc-mips.c (md_begin): Don't set interlocks for 4100.
2692
396e8d7f
ILT
2693Tue Apr 1 16:24:28 1997 Klaus Kaempf <kkaempf@progis.de>
2694
2695 * config-gas.com: Update to handle both vax and alpha.
2696 * makefile.vms: Update to use config-gas.
2697 * conf-a-gas.com: Remove file.
2698
db237783
ILT
2699Tue Apr 1 16:08:21 1997 Ian Lance Taylor <ian@cygnus.com>
2700
2701 * Makefile.in: Remove unnecessary itbl-parse.h, ibtl-parse.c, and
2702 itbl-lex.c dependencies. Remove rules for itbl-lex.o,
2703 itbl-parse.o, and itbl-ops.o; just use the normal .c.o rule.
2704
64251de5
MM
2705start-sanitize-tic80
2706Tue Apr 1 11:25:56 1997 Michael Meissner <meissner@cygnus.com>
2707
2708 * config/tc-tic80.c (line_comment_char): Make '#' start comments
2709 at the beginning of a line for compatibility with .S files where
2710 cpp leaves the filename transitions beginning with '#'.
2711
2712end-sanitize-tic80
2713Tue Apr 1 00:07:30 1997 Ian Lance Taylor <ian@cygnus.com>
2714
2715 * config/tc-m68k.c: Only compile tc_coff_symbol_emit_hook and
2716 tc_coff_sizemachdep if OBJ_COFF.
2717
3c6adeaf
ILT
2718Mon Mar 31 23:53:44 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2719
2720 * config/tc-ppc.c (register_name): Declare.
2721
332d5c49
ILT
2722Mon Mar 31 16:31:04 1997 Joel Sherrill <joel@oarcorp.com>
2723
2724 * configure.in (hppa*-*-rtems*): New target, like hppa-*-*elf*.
2725 * configure: Rebuild.
2726
6d65a065
ILT
2727Mon Mar 31 14:15:19 1997 Ian Lance Taylor <ian@cygnus.com>
2728
2f2bcadb
ILT
2729 * config/tc-mips.c (mips_pseudo_table): Add "stabn".
2730 (mips16_mark_labels): New static function.
2731 (append_insn): Call mips16_mark_labels.
2732 (mips_emit_delays): Likewise.
2733 (s_insn): Likewise. Don't call mips_clear_insn_labels.
2734 (s_mips_stab): New static function.
2735
6d65a065
ILT
2736 * configure.in: Use ELF for mips-*-gnu*.
2737 * configure: Rebuild.
2738
ca37421e
ILT
2739Mon Mar 31 14:01:40 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
2740
2741 * config/tc-m68k.h (TARGET_FORMAT): Set to "coff-m68k-sysv" if
2742 TE_DELTA.
2743
2e013bb7
ILT
2744Fri Mar 28 18:03:19 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
2745
2746 * configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set,
2747 set OPCODES_LIB to empty.
2748 * configure: Rebuild.
2749
04b8ad8b
ILT
2750Fri Mar 28 15:25:24 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2751
2752 * configure.in (sparc-*-linux*aout*, sparc-*-linux*): New
2753 targets.
2754 * configure: Rebuild.
2755
acdc7ce3
ILT
2756Fri Mar 28 13:08:33 1997 Ian Lance Taylor <ian@cygnus.com>
2757
ab91e1ef
ILT
2758 * itbl-parse.y (yyerror): Make static. Declare.
2759
515c7142
ILT
2760 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
2761 * configure.in: Set emulations for mips-*-linux*-*.
2762 * configure: Rebuild.
2763
1347404a
ILT
2764 * config/tc-mips.c (struct mips_set_options): Define.
2765 (mips_opts): New static variable.
2766 (mips_isa): Remove. Now a field in mips_opts. Change all
2767 references.
2768 (mips16, mips16_autoextend, mips_warn_about_macros): Likewise.
2769 (mips_noreorder, mips_nomove, mips_noat, mips_nobopt): Likewise.
2770 (struct mips_option_stack): Define.
2771 (mips_opts_stack): New static variable.
2772 (s_mipsset): Add support for .set push and .set pop.
2773 * doc/c-mips.texi: Document .set push and .set pop.
2774
acdc7ce3
ILT
2775 * config/obj-elf.c (obj_elf_section_change_hook): New function.
2776 * config/obj-elf.h (obj_elf_section_change_hook): Declare it.
2777 * config/tc-mips.c (s_change_sec): Call it if OBJ_ELF.
2778
23ac3ca1
ILT
2779Thu Mar 27 12:23:56 1997 Ian Lance Taylor <ian@cygnus.com>
2780
e22e79dc
ILT
2781 * as.c (parse_args): Update copyright date in version message.
2782
9b8b7e97
ILT
2783 * Makefile.in (clean-here): Remove dependency files.
2784
23ac3ca1
ILT
2785 * read.c (s_comm): Check S_IS_COMMON as well as S_IS_DEFINED.
2786 (s_mri_common): Check S_IS_COMMON unconditionally.
2787 * symbols.c (colon): Check S_IS_COMMON as well as S_IS_DEFINED.
2788 * config/tc-alpha.c (s_alpha_comm): Likewise.
2789 * config/tc-mips.c (nopic_need_relax): Likewise.
2790 * config/tc-ppc.c (ppc_elf_lcomm): Likewise.
2791 (ppc_pe_comm): Likewise.
2792 * config/obj-elf.c (obj_elf_common): Likewise. Set segment of
2793 common symbol to bfd_com_section_ptr.
2794 * config/tc-sparc.c (s_common): Likewise.
2795 (tc_gen_reloc): Likewise.
2796
80834add
MH
2797start-sanitize-d30v
2798Thu Mar 27 00:29:46 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2799
2800 * config/tc-d30v.c (md_apply_fix3): Get the relocs right.
2801
2802end-sanitize-d30v
734a9064
ILT
2803Wed Mar 26 13:35:15 1997 H.J. Lu <hjl@lucon.org>
2804
2805 * config/tc-i386.c (tc_i386_fix_adjustable): Only define if
2806 BFD_ASSEMBLER.
2807
efda47f9
ILT
2808Wed Mar 26 11:32:51 1997 Ian Lance Taylor <ian@cygnus.com>
2809
80834add
MH
2810 * input-scrub.c (input_scrub_next_buffer): Handle very long input
2811 lines correctly.
2812
8cd0c287
ILT
2813 * listing.c (print_lines): Add lineno parameter. Change all
2814 callers.
2815 (listing_listing): Only call calc_hex for the right line.
2816 (listing_list): Set the new edict based on the current edict, in
2817 order to handle listing commands in macros correctly.
734a9064 2818
e807a57e
ILT
2819 * config/tc-mips.c (insn_uses_reg): Map register numbers in mips16
2820 instructions.
2821
efda47f9
ILT
2822 * cond.c (cond_finish_check): New function.
2823 * as.h (cond_finish_check): Declare.
2824 * as.c (main): Call cond_finish_check.
2825
710fdf47
MH
2826start-sanitize-d30v
2827Tue Mar 25 14:45:54 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2828
2829 * config/tc-d30v.c (md_assemble): If two instructions
2830 are supposed to be assembled in parallel and the first one is
2831 long, print an error and stop.
2832 (md_apply_fix3): Don't calculate absolute relocs. Just write
2833 them out.
2834
2835end-sanitize-d30v
1361ba77
ILT
2836Mon Mar 24 12:11:18 1997 Ian Lance Taylor <ian@cygnus.com>
2837
2fb44892
ILT
2838 * config/tc-i386.h (iclrKludge): Define.
2839 * config/tc-i386.c (md_assemble): Handle iclrKludge.
2840
1361ba77
ILT
2841 * config/tc-alpha.h (tc_frob_file_before_adjust): Define if
2842 OBJ_ECOFF.
2843 (alpha_frob_file_before_adjust): Declare if OBJ_ECOFF.
2844 * config/tc-alpha.c (alpha_debug): New static variable.
2845 (md_parse_option): Set alpha_debug if -g is seen.
2846 (alpha_frob_file_before_adjust): New function if OBJ_ECOFF.
2847
9c9e75bf
MH
2848start-sanitize-d30v
2849Sun Mar 23 18:03:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2850
2851 * config/tc-d30v.c (build_insn): Enable range-checking code.
2852 (postfix): Stop at space or comma. Fixes PR 11862.
2853 (md_assemble): Change error message.
2854
2855end-sanitize-d30v
65d7de4f
ILT
2856Sat Mar 22 13:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
2857
2858 * Makefile.in: Added automatic dependency building.
2859 * dep-in.sed: New file.
2860
949f1310
ILT
2861Fri Mar 21 15:42:37 1997 Ian Lance Taylor <ian@cygnus.com>
2862
7cad1a89
ILT
2863 * config/obj-ieee.c (segment_name): Don't define function if this
2864 is a macro.
2865
f062ec45
ILT
2866 * config/obj-coff.h (DO_STRIP): Don't define.
2867 * config/tc-h8300.h (DO_STRIP): Don't define.
2868 * config/tc-h8500.h (DO_STRIP): Don't define.
2869 * config/tc-w65.h (DO_STRIP): Don't define.
2870 * config/tc-z8k.h (DO_STRIP): Don't define.
2871
a71dc204
ILT
2872 * symbols.c (colon): Call obj_frob_label if it is defined.
2873 * config/obj-vms.h (obj_frob_label): Rename from tc_frob_label.
2874
949f1310
ILT
2875 * configure.in: Don't set files and links. Don't call
2876 AC_LINK_FILES. Substitute te_file. Create targ-cpu.h,
2877 obj-format.h, targ-env.h, and itbl-cpu.h in AC_OUTPUT.
2878 * configure: Rebuild.
2879 * Makefile.in (TARG_CPU_C): New variable.
2880 (TARG_CPU_O, TARG_CPU_H): New variables.
2881 (OBJ_FORMAT_C, OBJ_FORMAT_O, OBJ_FORMAT_H): New variables.
2882 (TARG_ENV_H, ATOF_TARG_C, ATOF_TARG_O): New variables.
2883 (SOURCES): Rename from REAL_SOURCES. Delete old definition.
2884 (LINKED_SOURCES): Remove.
2885 (HEADERS): Rename from REAL_HEADERS. Delete old definition.
2886 (LINKED_HEADERS): Remove.
2887 (OBJS): Use $(TARG_CPU_O), etc., rather than targ-cpu.o, etc.
2888 ($(OBJS)): Depend upon $(TARG_ENV_H), etc., rather than
2889 targ-cpu.h, etc.
2890 ($(TARG_CPU_O), $(OBJ_FORMAT_O) $(ATOF_TARG_O)): New targets.
2891 (targ-cpu.o, obj-format.o, atof-targ.o): Remove targets.
2892 (itbl-cpu.h): Remove target.
2893 (DISTCLEAN_HERE): Remove targ-cpu.c, obj-format.c, atof-targ.c,
2894 atof-targ.h.
2895
35cfacf0
ILT
2896Thu Mar 20 19:18:58 1997 Ian Lance Taylor <ian@cygnus.com>
2897
2898 * doc/as.texinfo (Symbol Names): Don't use obsolete @ctrl macro.
2899
0dfeb41f
ILT
2900Thu Mar 20 16:49:14 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2901
2902 * config/tc-m68k.c (mri_chip): Replace calls to get_symbol_end by
2903 open coded loop that does not require the name to start with a
2904 name beginner.
2905
29bc322d
ILT
2906Thu Mar 20 13:42:01 1997 H.J. Lu <hjl@lucon.org>
2907
f59fb6ca
ILT
2908 * frags.c (frag_var): Change offset parameter to offsetT.
2909 (frag_variant): Likewise.
2910 * frags.h (frag_variant, frag_var): Update declarations.
2911 * config/tc-m68k.c (struct m68k_it): Change foff field to
2912 offsetT.
2913 (add_frag): Change off parameter to offsetT.
2914 * Several files: Add casts to calls to frag_var.
2915
29bc322d
ILT
2916 * Makefile.in (m68k-parse.c): Depend upon itbl-parse.c, to
2917 serialize a parallel make.
2918 (itbl-parse.h): Split target out from itbl-parse.c.
2919
9afc6631
ILT
2920Thu Mar 20 12:48:45 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
2921
39ab5d3a
ILT
2922 * config/m68k-parse.y (motorola_operand): Allow (zdireg,EXPR).
2923
9afc6631
ILT
2924 * config/te-delta.h (COFF_COMMON_ADDEND): Define.
2925 * config/obj-coff.c (fixup_segment): Check COFF_COMMON_ADDEND when
2926 storing the value of a common symbol.
2927
7dd26961
ILT
2928Wed Mar 19 11:37:57 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
2929
2930 * config/obj-coff.c (glue_symbols): Unused variable symbolP
2931 removed.
2932 (crawl_symbols): Do not modify symbol_rootP and symbol_lastP here;
2933 that is done by symbol_remove and symbol_insert.
2934
2935 * config/obj-coff.h (S_IS_LOCAL): Return 0 for a debugging
2936 symbol.
2937
ac766f70
ILT
2938Wed Mar 19 11:06:29 1997 Ian Lance Taylor <ian@cygnus.com>
2939
2940 * config/tc-mips.c (load_register): In 32 bit mode, when not
2941 dealing with a 64 bit number, permit the upper 32 bits to be set
2942 even if bit 31 is not set.
2943
58cfdde3
ILT
2944Tue Mar 18 23:30:14 1997 Ian Lance Taylor <ian@cygnus.com>
2945
2946 * read.c (potable): Add "equiv".
2947 (s_set): Handle .equiv based on argument.
2948 * doc/as.texinfo (Equiv): New node to document .equiv.
2949 (Err): New node to document .err.
2950
7cd06f44
ILT
2951Tue Mar 18 15:50:13 1997 H.J. Lu <hjl@lucon.org>
2952
2953 * Many files: Add function prototypes.
2954 * as.c (show_usage, parse_args): Make static.
2955 * frags.h (frag_alloc): Declare.
2956 * subsegs.c (subseg_set_rest): Don't declare frag_alloc.
2957 * symbols.c (dollar_label_instance): Change return type to long.
2958 * symbols.h (print_symbol_value): Declare.
2959 (print_expr, print_expr_1, print_symbol_value_1): Declare.
2960 * write.c (fix_new_exp): Don't declare make_expr_symbol.
2961 (remove_subsegs, relax_frag): Make static.
2962 * config/atof-vax.c (atof_vax_sizeof): Change letter to int.
2963 (what_kind_of_float): Likewise.
2964 (atof_vax): Make static. Change what_kind to int.
2965 (md_atof): Change what_statement_type to int.
2966 * config/obj-ecoff.h (obj_ecoff_set_ext): Declare.
2967 * config/tc-alpha.c (vax_md_atof): Declare.
2968 (md_atof): Don't declare atof_ieee and vax_md_atof.
2969 * config/tc-i386.c (set_16bit_code_flag): Make static.
2970 * config/tc-i386.h (tc_i386_fix_adjustable): Declare.
2971 * config/tc-m68k.c (add_fix): Change width to int.
2972 (insert_reg): Change regname to const.
2973 (md_atof): Don't declare atof_ieee.
2974 (demand_empty_rest_of_line): Don't declare.
2975 * config/tc-m88k.c (md_atof): Don't declare atof_ieee.
2976 * config/tc-sparc.c (cmp_reg_entry): Change args to const PTR.
2977 (parse_keyword_arg): Change lookup_fn to take const arg.
2978 (md_atof): Don't declare atof_ieee.
2979 * config/tc-sparc.h: Add ifdef for multiple inclusion.
2980 (tc_aout_pre_write_hook): Don't declare.
2981
590c50d8
ILT
2982Mon Mar 17 11:21:09 1997 Ian Lance Taylor <ian@cygnus.com>
2983
2984 * as.h (bfd_alloc_by_size_t): Don't declare.
2985 * Many files: Use xmalloc rather than bfd_alloc_by_size_t.
2986
4b0895cf 2987Sun Mar 16 13:49:21 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
e95ef7c1
ILT
2988
2989 * symbols.c (symbol_new): Don't call debug_verify_symchain.
2990 (symbol_append): Set sy_next and sy_previous when adding a single
2991 symbol to an empty list. Call debug_verify_symchain.
2992 (verify_symbol_chain): Use assert, not know.
2993
5cf4e55e
FF
2994Sat Mar 15 20:27:12 1997 Fred Fish <fnf@cygnus.com>
2995
2996 * NEWS: Note BeOS support.
2997 * configure.in: (ppc-*-beos): New target, use coff as object format.
2998 * configure: Regenerate with autoconf.
2999
9591ad40
ILT
3000Sat Mar 15 19:14:02 1997 Ian Lance Taylor <ian@cygnus.com>
3001
18f7e3dc
ILT
3002 * config/tc-mips.c (md_apply_fix): Improve error message for out
3003 of range branch.
3004
9591ad40
ILT
3005 * Makefile.in: Add dependencies on obstack.h where needed.
3006
ef014e09
ILT
3007Fri Mar 14 15:33:38 1997 Ian Lance Taylor <ian@cygnus.com>
3008
46a92fde
ILT
3009 * config/tc-mips.c (md_estimate_size_before_relax): Handle the
3010 case of a symbol equated to another symbol when using SVR4_PIC.
3011
ef014e09
ILT
3012 * Makefile.in (TARG_CPU_DEP_sparc): Add opcode/sparc.h.
3013
2e9974a4
ILT
3014Thu Mar 13 11:20:51 1997 Ian Lance Taylor <ian@cygnus.com>
3015
d428c89f
ILT
3016 * read.c (read_a_source_file): Call LISTING_NEWLINE before
3017 HANDLE_CONDITIONAL_ASSEMBLY when handling an MRI line label.
3018
2e9974a4
ILT
3019 * config/obj-elf.c (obj_elf_data): Call md_flush_pending_output
3020 and md_elf_section_change_hook if they are defined.
3021 (obj_elf_text, obj_elf_previous): Likewise.
3022
80633e8e
ILT
3023Wed Mar 12 11:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
3024
2e9974a4
ILT
3025 * config/obj-multi.h (struct elf_obj_sy): Define if
3026 OBJ_MAYBE_ELF.
3027 (OBJ_SYMFIELD_TYPE): Define as struct elf_obj_sy if
3028 OBJ_MAYBE_ELF.
3029 * config/obj-elf.h (struct elf_obj_sy): Don't define if
3030 OBJ_SYMFIELD_TYPE is defined.
3031
80633e8e
ILT
3032 * doc/as.texinfo (bss): Improve description of .bss section. In
3033 ELF or COFF, you are permitted to switch into the section.
3034 (Comm): Rewrite description of common symbols.
3035 (Lcomm): Mention that some targets permit a third argument.
3036
6d8dfa04
ILT
3037Tue Mar 11 01:13:31 1997 Ian Lance Taylor <ian@cygnus.com>
3038
9be8c0f1
ILT
3039 * config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
3040
92b7bfb7
ILT
3041 * symbols.c (colon): Change type of local to int. From Alan Modra
3042 <alan@spri.levels.unisa.edu.au>.
3043
e053e8c1
ILT
3044 * config/tc-m88k.c (m88k_do_align): Don't use a special nop
3045 alignment if a zero fill pattern was explicitly specified.
3046 * config/tc-sh.c (sh_do_align): Likewise.
3047
842b6b06
ILT
3048 * read.c (equals): Always permit register names to be redefined.
3049
ee2c03ed
ILT
3050 * config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
3051 mips16 symbol to be adjusted if a symbol is being subtracted from
3052 it.
3053
6d8dfa04
ILT
3054 From Eric Youngdale <eric@andante.jic.com>:
3055 * config/obj-elf.c (obj_elf_symver): Check for duplicate or
3056 illegal symbol version names.
3057 (elf_frob_symbol): Check for external default versions.
3058
d88cc85d
ILT
3059Sun Mar 9 23:49:12 1997 Ian Lance Taylor <ian@cygnus.com>
3060
3061 From Eric Youngdale <eric@andante.jic.com>:
3062 * config/obj-elf.h (struct elf_obj_sy): Define.
3063 (OBJ_SYMFIELD_TYPE): Define to elf_obj_sy struct. Change all
3064 users.
3065 * config/obj-elf.c (obj_elf_symver): Just record the name.
3066 (obj_symbol_new_hook): Initialized versioned_name field.
3067 (elf_frob_symbol): If there is a versioned_name, either rename the
3068 symbol, or add an alias with that name.
3069
a405bb3e
JL
3070Thu Mar 6 13:55:32 1997 Jeffrey A Law (law@cygnus.com)
3071
ef03fee0
JL
3072 * config/tc-mn10300.c (md_relax_table): Define.
3073 (md_convert_frag): Implement.
3074 (md_assemble): Handle relaxable operands/instructions correctly.
3075 (md_estimate_size_before_relax): Implement.
3076 * config/tc-mn10300.h (TC_GENERIC_RELAX_TABLE): Define.
3077
27103699
JL
3078 * config/tc-mn10200.c (md_relax_table): Fix typos.
3079
a405bb3e
JL
3080 * config/tc-mn10300.c (md_assemble): Don't use any MN10300 specific
3081 relocs anymore. Tweak fx_offset for pc-relative relocs.
3082
d6545e3f
ILT
3083Wed Mar 5 15:46:16 1997 Ian Lance Taylor <ian@cygnus.com>
3084
3085 * cond.c (s_ifc): Call mri_comment_field and mri_comment_end when
3086 in MRI mode.
3087
e74539b8
FF
3088start-sanitize-tic80
3089Tue Mar 4 19:34:21 1997 Fred Fish <fnf@cygnus.com>
3090
1ea52646
FF
3091 * config/tc-tic80.c (md_pseudo_table): Add "sect" and "section"
3092 pseudo-ops.
e74539b8
FF
3093 * config/tc-tic80.c (md_begin): Declare external variable
3094 coff_flags and insert an F_AR32WR bit into it.
3095
3096end-sanitize-tic80
3097Tue Mar 4 10:01:04 1997 Ian Lance Taylor <ian@cygnus.com>
3098
3099 * read.c (equals): Add reassign parameter. Change all callers.
3100 * read.h (equals): Update declaration.
3101
a941619c
ILT
3102Sat Mar 1 01:04:04 1997 Ian Lance Taylor <ian@cygnus.com>
3103
3104 * config/tc-mips.c (mips16_extended_frag): Don't assume that we
3105 can rely on the frag address to determine whether a frag is
3106 earlier or later.
3107
23604921
ILT
3108Fri Feb 28 14:40:00 1997 Ian Lance Taylor <ian@cygnus.com>
3109
3110 * write.h (LOCAL_LABEL): Only define if not BFD_ASSEMBLER.
3111 (S_LOCAL_NAME): Likewise.
3112 (FAKE_LABEL_NAME): Define unconditionally.
3113 * symbols.c (colon): Call bfd_is_local_label, not LOCAL_LABEL, if
3114 BFD_ASSEMBLER.
3115 (S_IS_LOCAL): Call bfd_is_local_label_name, not LOCAL_LABEL.
3116 * config/tc-*.h: Only define LOCAL_LABEL if not BFD_ASSEMBLER.
3117 Don't define FAKE_LABEL_NAME.
3118 * config/te-ic960.h: Likewise.
3119 * config/tc-mips.h (tc_frob_file_before_adjust): Define.
3120 (mips_frob_file_before_adjust): Declare.
3121 * config/tc-mips.c (mips_frob_file_before_adjust): New function.
3122 (mips_local_label): Remove.
3123
3124 * config/te-sco386.h: Remove; not used.
3125
a88ce21e
FF
3126start-sanitize-tic80
3127Thu Feb 27 15:39:16 1997 Fred Fish <fnf@cygnus.com>
3128
3129 * config/tc-tic80 (md_pseudo_table): Add align pseudo op to do
3130 byte alignment rather than power-of-two alignment that is the
3131 GAS default.
3132
3133end-sanitize-tic80
0f68bf0a
ILT
3134Thu Feb 27 13:29:04 1997 Ian Lance Taylor <ian@cygnus.com>
3135
e053e8c1 3136 * config/tc-m68k.c (md_assemble): Handle a reloc width of 'W'.
f396c4ef 3137
0f68bf0a
ILT
3138 * gasp.c (hash_add_to_string_table): Correct misspelling in error
3139 message, and add newline.
3140 (process_file): Don't process assignments in the label if this is
3141 a equ or assign pseudo-op.
3142 (process_pseudo_op): Swap first argument to do_assign for K_ASSIGN
3143 and K_EQU, to match documentation.
3144
0fe302ac
MM
3145Thu Feb 27 12:00:03 1997 Michael Meissner <meissner@cygnus.com>
3146
3147 * config/obj-coff.c (obj_coff_section): Add 'r' section attribute
3148 to denote read-only data sections.
3149
30d0557c
ILT
3150Thu Feb 27 00:26:33 1997 Ian Lance Taylor <ian@cygnus.com>
3151
35c64f24
ILT
3152 * config/obj-elf.c (obj_elf_common): Set BSF_OBJECT in flags.
3153 * config/tc-sparc.c (s_common): Likewise, if BFD_ASSEMBLER.
3154
30d0557c
ILT
3155 * expr.c (operand): Simplify 0b handling. Don't treat 0b as a
3156 binary number if the next character is '+' or '-'.
3157
1e12595d
FF
3158start-sanitize-tic80
3159Wed Feb 26 20:47:12 1997 Fred Fish <fnf@cygnus.com>
3160
3161 * config/tc-tic80.c (FLT_CHARS): Change from "dD" to "fF".
3162 (find_opcode): Match operands that can be floats.
3163 (build_insn): Handle O_big (float) expressions and build
3164 correct opcode.
3165
3166end-sanitize-tic80
af942793
SS
3167Wed Feb 26 18:19:00 1997 Stan Shebs <shebs@andros.cygnus.com>
3168
3169 * configure.in (mips*-*-lnews*): New target, also make empty
3170 emulation list for this target.
3171 * configure: Update.
3172 * tc-mips.c (ECOFF_LITTLE_FORMAT): Define.
3173 (mips_target_format): Use.
3174 * te-lnews.h: New file.
3175
f92f247b
FF
3176start-sanitize-tic80
3177Wed Feb 26 15:33:46 1997 Fred Fish <fnf@cygnus.com>
3178
3179 * config/tc-tic80.c (find_opcode, build_insn): Changes to match
3180 operands with :m or :s modifiers and generate the right opcodes
3181 for them.
3182
3183end-sanitize-tic80
7a515708
ILT
3184Wed Feb 26 11:56:11 1997 Ian Lance Taylor <ian@cygnus.com>
3185
3186 * Makefile.in (itbl-parse.c itbl-parse.h): Use $(BISON) and
3187 $(BISONFLAGS), not $(YACC) and $(YACCFLAGS).
3188
55be99d6
ILT
3189Tue Feb 25 22:02:23 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3190
3191 * config/tc-m68k.c (instring): Useless local declaration of
3192 crack_operand removed.
3193 * expr.h (expressionS): Changed type of X_op field to operatorT if
3194 __GNUC__.
3195
28d8c671
ILT
3196Tue Feb 25 13:17:27 1997 Ian Lance Taylor <ian@cygnus.com>
3197
034988c6
ILT
3198 Based on patches from Robert Lipe <robertl@dgii.com>:
3199 * configure.in: Add i386coff and i386elf to emulation list.
3200 * configure: Rebuild.
3201 * as.c (i386coff, i386elf): Declare.
3202 * obj.h (coff_format_ops): Declare.
3203 * config/obj-coff.c (OBJ_HEADER): Define.
3204 (coff_obj_symbol_new_hook): Rename from obj_symbol_new_hook.
3205 (coff_obj_read_begin_hook): Rename from obj_read_begin_hook.
3206 (obj_pseudo_table): Add "version".
3207 (coff_pop_insert): New static function.
3208 (coff_sec_sym_ok_for_reloc): New static function.
3209 (no_func): New static function.
3210 (coff_format_ops): New variable.
3211 * config/obj-coff.h (coff_obj_symbol_new_hook): Declare.
3212 (obj_symbol_new_hook): Define.
3213 (coff_obj_read_begin_hook): Declare.
3214 (obj_read_begin_hook): Define.
3215 * config/tc-i386.h (i386_target_format): Declare.
3216 * config/tc-i386.c: Check OBJ_MAYBE_ELF as well as OBJ_ELF; check
3217 OUTPUT_FLAVOR when appropriate.
3218 (i386_target_format): New function.
3219 * Makefile.in (obj-coff.o): New target.
3220 (e-i386coff.o, e-i386elf.o): New targets.
3221
a0c4a241
ILT
3222 From Stephen Williams <steve@icarus.icarus.com>:
3223 * config/tc-i960.h (TC_SYMFIELD_TYPE): Define if OBJ_COFF.
3224 (_tc_get_bal_of_call): Don't declare.
3225 (tc_get_bal_of_call): Declare as function, don't define as macro.
3226 * config/tc-i960.c (tc_set_bal_of_call): If OBJ_COFF, store balP
3227 in sy_tc field, not x_balntry field.
3228 (tc_get_bal_of_call): Rename from _tc_get_bal_of_call. Change
3229 return type to symbolS *. If OBJ_COFF, retrieve value from sy_tc
3230 field, not x_balntry field.
3231
3232 * config/obj-elf.c (obj_elf_section): Permit a .note section to
3233 have the SHF_ALLOC attribute.
3234
a90512ad
ILT
3235 * Makefile.in ($(OBJS)): Don't depend upon $(IT_HDRS).
3236 (TARG_CPU_DEP_mips): Depend upon $(srcdir)/itbl-ops.h.
3237 (itbl-lex.o): Depend upon itbl-parse.h.
3238
3239 * itbl-parse.y (yyerror): Change return type to int. Change to
3240 use old style function declaration.
3241
ee5cb7fe
ILT
3242 * Makefile.in (itbl-lex.o): Remove -Wall.
3243 (itbl-parse.o): Likewise.
3244
28d8c671
ILT
3245 * cond.c (s_ifdef): If we should omit conditionals from listings,
3246 call listing_list.
3247 (s_if, s_ifc, s_endif, s_else, s_ifeqs): Likewise.
3248 * listing.c (list_info_struct): Add EDICT_NOLIST_NEXT.
3249 (listing_listing): Handle EDICT_NOLIST_NEXT.
3250 (listing_list): An argument of 2 means EDICT_NOLIST_NEXT.
3251 * listing.h (LISTING_NOCOND): Define.
3252 (LISTING_SKIP_COND): Define.
3253 * as.c (show_usage): Mention c as a suboption of -a.
3254 (parse_args): Handle c as a suboption of -a.
3255 * doc/as.texinfo: Document -alc.
3256
b16a8c8e
FF
3257start-sanitize-tic80
3258Mon Feb 24 23:34:14 1997 Fred Fish <fnf@cygnus.com>
3259
3260 * config/tc-tic80.c (md_apply_fix): Handle R_ABS type fixups.
3261
3262end-sanitize-tic80
3263Mon Feb 24 18:27:43 1997 Eric Youngdale <eric@andante.jic.com>
3264
3265 * doc/as.texinfo: Document .symver.
3266
4d3410fd
MH
3267Mon Feb 24 15:19:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3268
3269 * config/tc-d10v.c: Change pre_defined_registers to
3270 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
3271
ec72a266
FF
3272Mon Feb 24 10:40:45 1997 Fred Fish <fnf@cygnus.com>
3273
3274 * config/obj-coff.c: Fix typo in comment section.
3275start-sanitize-tic80
3276 * config/tc-tic80.c (md_pseudo_table): Add entry for bss, which takes
3277 an additional alignment argument.
3278 (find_opcode): Allow O_symbol relocs for any 32 bit field, not just
3279 base relative ones.
3280 (build_insn): Handle O_symbol relocs for any 32 bit field, not just
3281 base relative ones.
3282end-sanitize-tic80
3283
16aef5b0
DP
3284Mon Feb 24 02:23:00 1997 Dawn Perchik <dawn@cygnus.com>
3285
3286 * Makefile.in: Remove dependancies on itbl-cpu.h.
3287 * as.c: Define stubs for itbl_parse and itbl_init if HAVE_ITBL_CPU
3288 is not defined.
3289
ac6c6bdb
DP
3290Mon Feb 24 02:03:00 1997 Dawn Perchik <dawn@cygnus.com>
3291
3292 * itbl-ops.h: Include as.h.
3293
72797ffa
DP
3294Mon Feb 24 01:04:00 1997 Dawn Perchik <dawn@cygnus.com>
3295
3296 * as.c: Remove -t option.
3297 * configure, configure.in: Move itbl-cpu.h to mips specific configure.
3298 * itbl-ops.h: Include itbl-cpu.h only if HAVE_ITBL_CPU is defined.
3299 * config/tc-mips.h: Define HAVE_ITBL_CPU.
3300
2f671f84
DP
3301Sun Feb 23 18:01:00 1997 Dawn Perchik <dawn@cygnus.com>
3302
3303 * itbl-ops.c: Don't define DEBUG.
3304
f9f0539f
DP
3305Sun Feb 23 17:49:00 1997 Dawn Perchik <dawn@cygnus.com>
3306
3307 * Makefile.in: Update itbl-test.c to reflect its new location.
3308
8d8a790b
DP
3309Sun Feb 23 15:50:00 1997 Dawn Perchik <dawn@cygnus.com>
3310
3311 * itbl-ops.c: Add test for itbl_have_entries.
3312 * config/tc-mips.c: Remove test for itbl_have_entries.
3313 * config/tc-mips.h: Define tc_init_after_args to mips_init_after_args.
3314
7b9f3d46
ILT
3315Sun Feb 23 18:13:19 1997 Ian Lance Taylor <ian@cygnus.com>
3316
3317 * Makefile.in (DISTSTUFF): Remove itbl-parse.y, itbl-lex.l, and
3318 itbl-ops.c. Add itbl-parse.c and itbl-lex.c.
3319 (LEX, LEXFLAGS): Define.
3320 * itbl-ops.c (append_insns_as_macros): Remove bogus ASSERT.
3321
efec4a28
DP
3322Sat Feb 22 21:25:00 1997 Dawn Perchik <dawn@cygnus.com>
3323
3324 * itbl-parse.y: Fix indentation mistakes from indent program.
3325 * itbl-lex.l: Fix indentation mistakes from indent program.
3326 * itbl-ops.h: Add include for ansidecl.h.
3327 Add PARAMS around function arguments.
3328 Add declaration for itbl_have_entries.
3329 * itbl-ops.c: Add PARAMS around function arguments.
3330 * Makefile.in: Add itbl build rules.
3331 Add dependancies for itbl files to mips target.
3332 * as.c: Add itbl support.
3333 Add new option "--insttbl" for dynamically extending instruction set.
3334 * as.h: Declare insttbl_file_name;
3335 the name of file defining extensions to the basic instruction set
3336 * configure.in, configure: Add itbl-parse.o, itbl-lex.o, and
3337 itbl-ops.o to extra_objects for mips configuration.
3338 Add include file link from itbl-cpu.h to
3339 config/itbl-${target_cpu_type}.h.
3340 * config/tc-mips.c: Allow copz instructions.
3341 Add notes for future additions to the itbl support.
3342 Add debug macros.
3343 (macro): Call itbl_assemble to assemble itbl instructions.
3344 See if an unknown register is specified in an itbl entry.
3345
d160b69e
FF
3346Sat Feb 22 20:53:01 1997 Fred Fish <fnf@cygnus.com>
3347 * doc/internals.texi (CPU backend): Fix typo in md_section_align
3348 description.
3349start-sanitize-tic80
3350 * config/tc-tic80.h (NEED_FX_R_TYPE): Define.
3351 * config/tc-tic80.c (find_opcode): Add code to support O_symbol
3352 operands.
3353 (build_insn): Grab a frag early so we can use the address in
3354 fixups. Take one's complement of BITNUM values before insertion
3355 in opcode. Add code to support O_symbol operands.
3356 (md_apply_fix): Replace unimplemented warning with implementation.
3357 (md_pcrel_from): Ditto.
3358 (tc_coff_fix2rtype): Ditto.
3359end-sanitize-tic80
3360
09d9ef26 3361Fri Feb 21 14:34:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1b524697
MH
3362start-sanitize-d30v
3363 * config/tc-d30v.c (parallel_ok): New function.
3364 * config/tc-d30v.h: Define TARGET_BYTES_BIG_ENDIAN.
3365end-sanitize-d30v
09d9ef26
MH
3366 * config/tc-d10v.c (md_pcrel_from_section): Return 0 if
3367 relocation is in different section. Fixes PR11574.
3368
e2e5acfa
JW
3369Fri Feb 21 10:08:25 1997 Jim Wilson <wilson@cygnus.com>
3370
3371 * tc-mips.c (mips_ip): If configured for an embedded ELF system,
3372 don't set the section alignment to 2**4.
3373
fee3e248
ILT
3374Fri Feb 21 11:55:03 1997 Ian Lance Taylor <ian@cygnus.com>
3375
b2f7cdd0
ILT
3376 * config/tc-m68k.c (line_comment_chars): Add '*'.
3377
830ce631
ILT
3378 * app.c (LEX_IS_TWOCHAR_COMMENT_2ND): Don't define.
3379 (do_scrub_begin): Don't set lex['*'].
3380 (do_scrub_chars): When handling LEX_IS_TWOCHAR_COMMENT_1ST, don't
3381 check for LEX_IS_TWOCHAR_COMMENT_2ND. Instead, just check for
3382 a literal '*'.
3383
fee3e248
ILT
3384 * configure.in: Set em=svr4 for m68k-*-sysv4*.
3385 * configure: Rebuild.
3386 * config/te-svr4.h: New file.
3387 * config/tc-m68k.c (m68k_comment_chars): Only include `#' if
3388 TE_SVR4 or TE_DELTA.
3389
48242b28
JL
3390Thu Feb 20 22:24:39 1997 Jeffrey A Law (law@cygnus.com)
3391
3392 * config/tc-mn10200.c (md_convert_frag): Create a fixup for the
3393 short conditional branch around a long unconditional branch.
3394
1af411e1
ILT
3395Thu Feb 20 13:56:00 1997 Ian Lance Taylor <ian@cygnus.com>
3396
64c5df8d
ILT
3397 * config/obj-coff.c (obj_coff_ln [both versions]): Call
3398 new_logical_line.
3399
1af411e1
ILT
3400 * config/tc-arm.c (fix_new_arm): Use make_expr_symbol to handle a
3401 complex expression.
3402
3403 * symbols.c (resolve_symbol_value): If both left and right
3404 operands are undefined, warn about both of them.
3405
78673fc6
ILT
3406Wed Feb 19 00:53:28 1997 Ian Lance Taylor <ian@cygnus.com>
3407
dd7feeb5
ILT
3408 Based on patches from Eric Youngdale <eric@andante.jic.com>:
3409 * config/obj-elf.c (elf_pseudo_table): Add "symver".
3410 (obj_elf_symver): New static function.
3411 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy the st_other
3412 field.
3413
3414 * write.c (relax_segment): Make type and printf format agree.
3415
78673fc6
ILT
3416 * read.c (get_line_sb): Don't end the line on a semicolon inside a
3417 string.
3418
14f23c28
MH
3419start-sanitize-d30v
3420Tue Feb 18 18:42:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3421
3422 * config/tc-d30v.c, config/tc-d30v.h: New files.
3423
3424 * configure: Rebuilt.
3425
3426 * configure.in: Add case for d30v.
3427
3428end-sanitize-d30v
a1bbc57c 3429Sun Feb 16 17:47:29 1997 Fred Fish <fnf@cygnus.com>
14f23c28
MH
3430
3431 * config/tc-alpha.h (md_operand): Define with a null expansion,
3432 like all the other targets.
3433 * doc/internals.texi (CPU backend): Add missing word in
3434 md_flush_pending_output description. Fix typo in md_convert_frag
3435 description.
3436start-sanitize-tic80
3437 * config/tc-tic80: Minor comment additions/changes.
3438end-sanitize-tic80
3439
b253dcff
ILT
3440Fri Feb 14 18:09:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3441
3442 * config/tc-m68k.c (LOCAL_LABEL): Macro redefined if TE_DELTA.
3443 (tc_canonicalize_symbol_name): Macro defined if TE_DELTA.
3444 * config/obj-coff.c (obj_coff_def): Use
3445 tc_canonicalize_symbol_name if defined.
3446 (obj_coff_tag, obj_coff_val): Likewise.
3447 * expr.c (operand): Reject '~' as operator if is_name_beginner.
3448
d7bf6158
ILT
3449Fri Feb 14 17:24:48 1997 Ian Lance Taylor <ian@cygnus.com>
3450
f5ed78de
ILT
3451 Based on notes from Peter Eriksson <peter@ifm.liu.se>. The target
3452 does not actually work, though:
3453 * configure.in (i386-sequent-bsd*): New target.
3454 * configure: Rebuild.
3455 * config/tc-dynix.h: New file.
3456 * config/tc-i386.h: Define TARGET_FORMAT if TE_DYNIX.
3457
d7bf6158
ILT
3458 * read.c (do_align): Add max parameter. Change all callers.
3459 Remove useless static variables.
3460 (s_align): New static function. Do common portion of
3461 s_align_bytes and s_align_ptwo.
3462 (s_align_bytes, s_align_ptwo): Just call s_align.
3463 * frags.c (frag_align): Add max parameter. Change all callers.
3464 (frag_align_pattern): Likewise.
3465 * frags.h (frag_align, frag_align_pattern): Update declarations.
3466 * write.c (relax_segment): Limit alignment change to fr_subtype.
3467 Fix some types to be addressT.
3468 * config/obj-coff.c (size_section): Likewise.
3469 * config/obj-ieee.c (size_section): Likewise.
3470 * config/tc-d10v.h (md_do_align): Add max parameter.
3471 * config/tc-i386.h (md_do_align): Likewise.
3472 * config/tc-m88k.h (md_do_align): Likewise.
3473 * config/tc-m88k.c (m88k_do_align): Likewise.
3474 * config/tc-sh.h (md_do_align): Likewise.
3475 * config/tc-sh.c (sh_do_align): Likewise.
3476 * as.h: Improve comments on rs_align and rs_align_code.
3477 * doc/as.texinfo: Document new alignment arguments.
3478 * doc/internals.texi (Frags): Document use of fr_subtype field for
3479 rs_align and rs_align_code.
3480
3481Fri Feb 14 15:56:06 1997 Gavin Koch <gavin@cygnus.com>
3482
3483 * config/tc-mips.c: Changed opcode parsing.
3484
16171d71
FF
3485Thu Feb 13 20:02:16 1997 Fred Fish <fnf@cygnus.com>
3486
fda193d9 3487 * config/{tc-alpha.h, tc-d10v.h, tc-generic.h, tc-i960.h,
ec2f730d 3488 tc-mn10200.h, tc-mn10300.h, tc-sh.h, tc-vax.h, tc-w65.h}:
16171d71
FF
3489 Add default definition of zero for TARGET_BYTES_BIG_ENDIAN.
3490 * config/{tc-arm.h, tc-hppa.h, tc-i386.h, tc-mips.h, tc-ns32k.h,
3491 tc-ppc.h, tc-sparc.h}: Move definition of TARGET_BYTES_BIG_ENDIAN
3492 to a location consistent with the rest of the target include files.
3493 * config/tc-i386.c: Remove misleading comment.
3494 * doc/internals.texi (CPU backend): Add description of function
3495 md_undefined_symbol.
3496start-sanitize-tic80
3497 * config/tc-tic80.c: Add code to insert predefined symbols into the
3498 symbol table so they can be parsed by the standard expression parser.
3499 Remove custom code that use to parse them.
3500 * config/tc-tic80.h: Move definition of TARGET_BYTES_BIG_ENDIAN
3501 to a location consistent with the rest of the target include files.
3502end-sanitize-tic80
3503
9f13ead9
ILT
3504Thu Feb 13 21:44:18 1997 Klaus Kaempf <kkaempf@progis.de>
3505
3506 * as.h: GNU c provides unlink() function.
3507
3508 Unify section handling on openVMS/Alpha:
3509 * config/tc-alpha.c(s_alpha_link): Remove.
3510 (s_alpha_section): New function.
3511 Remove case-hacking of symbols
3512 Add .code_address pseudo-op.
3513 (BFD_RELOC_ALPHA_CODEADDR): New relocation.
3514 (s_alpha_code_address): New function.
3515 (alpha_ctors_section, alpha_dtors_section): New sections for C++
3516 static constructors/destructors.
3517 Add debug code for crash debugs, to be removed when traceback code
3518 is added to object code.
3519 (s_alpha_name): New function for .name pseudo-op.
3520 (alpha_print_token): New function to print token expressions with
3521 alpha specific extensions.
3522
3523 * makefile.vms: Allow compilation with current gcc snapshot.
3524
af16e411
FF
3525Thu Feb 13 16:29:04 1997 Fred Fish <fnf@cygnus.com>
3526
3527 * doc/Makefile.in (TEXI2DVI): Set to just name of program.
3528 (DVIPS): Set to dvips.
3529 (ps, as.ps, gasp.ps): New targets.
3530 (internals.info, gasp.dvi, internals.dvi): Set both TEXINPUTS
3531 and MAKEINFO env variables.
3532 (internals.ps): Use DVIPS macro.
3533 (clean): Remove core and backup files.
3534 (distclean): Remove temporary files from building internals.
3535 (clean-dvi): Ditto.
3536 * doc/internals.texi (Frags): Fix typo.
3537 (GAS processing): Ditto.
3538 (CPU backend): Ditto.
3539 * ecoff.c (init_file): Use TARGET_BYTES_BIG_ENDIAN value directly.
3540 * mpw-config.in: Define TARGET_BYTES_BIG_ENDIAN as 1.
3541 * read.c: Remove ugly hack that dealt with config files not
3542 correctly defining TARGET_BYTES_BIG_ENDIAN.
3543 (target_big_endian): Use TARGET_BYTES_BIG_ENDIAN directly.
3544 * config/arm-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
3545 * config/arm-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
3546 * config/mips-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
3547 * config/mips-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
3548 * config/ppc-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
3549 * config/ppc-sol.mt: Replace TARGET_BYTES_LITTLE_ENDIAN
3550 with TARGET_BYTES_BIG_ENDIAN defined to 0.
3551 * config/tc-arm.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
3552 and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just
3553 whether it is defined or not.
3554 * config/tc-mips.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN.
3555 * config/tc-ppc.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
3556 and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just
3557 whether it is defined or not.
3558start-sanitize-tic80
3559 * config/tic80.h (TARGET_FORMAT): Define to coff-tic80.
3560 (TARGET_BYTES_BIG_ENDIAN): Define to 0.
3561end-sanitize-tic80
3562
89b41978
DE
3563Thu Feb 13 14:40:16 1997 Doug Evans <dje@canuck.cygnus.com>
3564
3565 * write.c (write_relocs): Correct text in as_fatal error message,
3566 bfd_perform_relocation -> bfd_install_relocation.
3567
151c3ec0
ILT
3568Thu Feb 13 14:48:03 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3569
3570 * config/tc-m68k.c (LEX_TILDE): Define if TE_DELTA.
3571 * read.c (LEX_TILDE): Define if not defined.
3572 (lex_type): Use LEX_TILDE.
3573 * expr.c (get_symbol_end): Check first char with is_name_beginner,
3574 not is_part_of_name.
3575
4a1cb507
ILT
3576Thu Feb 13 11:40:58 1997 Ian Lance Taylor <ian@cygnus.com>
3577
3de9d78c
ILT
3578 * config/tc-sparc.c (md_show_usage): Add missing backslash at end
3579 of continued line.
3580
319305a7
ILT
3581 * config/tc-mips.c (mips16_extended_frag): Correct base address
3582 for an extended PC relative instruction.
3583 (md_convert_frag): Likewise.
3584
4a1cb507
ILT
3585 * config/tc-mips.c (prev_nop_frag): New static variable.
3586 (prev_nop_frag_holds): New static variable.
3587 (prev_nop_frag_required): New static variable.
3588 (prev_nop_frag_since): New static variable.
3589 (append_insn): If we aren't reordering, and prev_nop_frag is not
3590 NULL, and we don't need any nops, then decrease the size of
3591 prev_nop_frag. Don't insert nops because of instructions in
3592 noreorder sections. Remember whether the previous instructions
3593 where in noreorder sections even when not reordering.
3594 (mips_no_prev_insn): Add preserver parameter. Change all
3595 callers. Refer prev_nop_frag variables when appropriate.
3596 (mips_emit_delays): Set up prev_nop_frag.
3597 (s_mipsset): Clear prev_nop_frag if reordering.
3598
ebf28372
ILT
3599Wed Feb 12 14:36:29 1997 Ian Lance Taylor <ian@cygnus.com>
3600
9cd4e6cc
ILT
3601 * config/tc-mips.c (append_insn): Remove useless code which
3602 handled swapping a mips16 jump with a mips16 instruction with a
3603 reloc.
3604
05874c2e
ILT
3605 * config/tc-mips.c (md_parse_option): When debugging, set
3606 mips_optimize to 1, not 0.
3607
56bb6eee
ILT
3608 * config/tc-mips.c (mips16_ip): Handle an extend operand.
3609
eb17f56c
ILT
3610 * config/tc-mips.c (my_getExpression): In mips16 mode, if it looks
3611 like the expression was based on `.', adjust the value of the
3612 symbol.
3613
035936da 3614 * config/tc-mips.c (append_insn): Warn about an attempt to put an
c0df26bb 3615 extended instruction in a delay slot when not reordering.
035936da
ILT
3616 (md_convert_frag): Warn if an extended instruction appears in a
3617 delay slot.
3618
ed3eb786
ILT
3619 * config/tc-mips.c (mips_pseudo_table): Add "insn".
3620 (s_insn): New static function.
3621 * doc/c-mips.texi: Document .insn.
3622
ebf28372
ILT
3623 * config/tc-mips.c (md_begin): Add the general registers to the
3624 symbol table.
3625 (mips16_ip): First parse the expression, and then see whether it
3626 came up with a register, rather than trying to first see whether
3627 we are looking at a register.
3628
11e08196
FF
3629start-sanitize-tic80
3630Tue Feb 11 15:13:39 1997 Fred Fish <fnf@cygnus.com>
3631
3632 * config/tc-tic80.c: Numerous changes and additions to flesh
3633 out functions that were previously just stubs, and fix some
3634 problems found using the new TIc80 testsuite cases.
3635
3636end-sanitize-tic80
16262668
ILT
3637Tue Feb 11 15:52:22 1997 Ian Lance Taylor <ian@cygnus.com>
3638
3639 * config/tc-mips.c (mips16_ip): Handle %gprel modifier.
3640 (md_apply_fix): Handle BFD_RELOC_MIPS16_GPREL.
3641
3642 * config/tc-mips.c (append_insn): Output jump instruction as a
3643 pair of 2 byte instructions, rather than as a single 4 byte
3644 instruction.
3645
3646start-sanitize-r5900
3647 * config/tc-mips.c (md_begin): Correct test of mips_5900.
3648 (mips_ip): Don't check INSN_ISA for a macro.
3649
3650end-sanitize-r5900
276c2d7d
GRK
3651start-sanitize-r5900
3652Fri Feb 7 11:11:06 1997 Gavin Koch <gavin@cygnus.com>
3653
3654 * config/tc-mips.c: added r5900.
3655
3656end-sanitize-r5900
c6745073
DP
3657Mon Feb 10 22:06:00 1997 Dawn Perchik (dawn@cygnus.com)
3658
3659 * itbl-ops.c, itbl-lex.l, itbl-parse.y, itbl-ops.h,
3660 config/itbl-mips.h: Add copyright message and fix indentation.
3661
8e5c905e
DP
3662Mon Feb 10 18:09:00 1997 Dawn Perchik (dawn@cygnus.com)
3663
3664 * itbl-ops.c: New file. Add support for dynamically read
3665 instruction registers, opcodes and formats. Build internal table
3666 for new instructions and provide callbacks for assembler and
3667 disassembler.
3668 * itbl-lex.l, itbl-parse.y: Lex and yacc parsers for instruction
3669 spec table.
3670 * itbl-ops.h: New file. Header file for itbl support.
3671 * config/itbl-mips.h: New file. Mips specific definitions for
3672 itbl support.
3673
a7355c4d
JL
3674Fri Feb 7 09:52:34 1997 Jeffrey A Law (law@cygnus.com)
3675
3676 * config/tc-mn10200.c (md_assemble): If a constant operand won't
3677 fit into the constant field of a relaxable operand, then it does
3678 not match.
3679
e58035e3
JL
3680Thu Feb 6 20:08:12 1997 Jeffrey A Law (law@cygnus.com)
3681
3682 * config/tc-mn10200.c (md_estimate_size_before_relax): Treat
3683 a jsr target in a different section just like a jsr to
3684 an undefined target.
3685
6927c24d
ILT
3686Thu Feb 6 16:52:57 1997 Ian Lance Taylor <ian@cygnus.com>
3687
3688 * config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations
3689 against any mips16 symbols, not just externally visible ones.
3690 (md_apply_fix): Corresponding change.
3691
c9167640
ILT
3692Wed Feb 5 11:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
3693
3694 * config/tc-mips.c (mips16_ip): Accept floating point registers in
3695 the operand of the exit instruction.
3696
76801700
ILT
3697Tue Feb 4 14:12:39 1997 Ian Lance Taylor <ian@cygnus.com>
3698
3699 * symbols.c (resolve_symbol_value): If we leave an equated symbol
3700 as O_symbol, copy over the segment.
3701
3569064f
ILT
3702Mon Feb 3 12:35:54 1997 Ian Lance Taylor <ian@cygnus.com>
3703
1748b9d8
ILT
3704 * config/tc-mips.c (md_apply_fix): If we aren't adjusting this
3705 fixup to be against the section symbol, adjust the value
3706 accordingly.
3707
3569064f
ILT
3708 * symbols.c (resolve_symbol_value): Don't change X_add_number for
3709 an equated symbol.
3710 * write.c (write_relocs): Avoid looping on equated symbols.
3711 Adjust fx_offset by X_add_number for each symbol.
3712 * config/obj-coff.c (do_relocs_for): Avoid looping on equated
3713 symbols.
3714 (fixup_segment): Add a loop to track down equated symbols and
3715 adjust fx_offset appropriately.
3716
f5d7f6fb
JL
3717Fri Jan 31 15:21:02 1997 Jeffrey A Law (law@cygnus.com)
3718
3719 * config/tc-mn10200.c (md_relax_table): Add entries to allow
3720 jmp -> bra relaxing.
3721 (md_convert_frag): Handle jmp->bra relaxing.
3722 (md_assemble): Handle jmp->bra relaxing.
3723 (md_estimate_size_before_relax): Likewise.
3724
fb50cd4e
ILT
3725Fri Jan 31 13:15:05 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
3726
3727 * config/tc-i386.c (i386_align_code): Add comments explaining the
3728 nop instructions.
3729
a75abb6f
ILT
3730Fri Jan 31 10:46:14 1997 Ian Lance Taylor <ian@cygnus.com>
3731
2b063e6d
ILT
3732 * config/tc-sparc.c (enforce_aligned_data): New static variable.
3733 (sparc_cons_align): Don't do anything unless enforce_aligned_data
3734 is set.
3735 (md_longopts): Add "enforce-aligned-data".
3736 (md_show_usage): Mention --enforce-aligned-data.
3737 * doc/c-sparc.texi (Sparc-Aligned-Data): New node; document
3738 enforce-aligned-data.
3739
fbd929fd
ILT
3740 * config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
3741 "word", and "short".
3742 (ppc_xcoff_cons): New static function.
3743
a75abb6f
ILT
3744 * write.c (relax_segment): Give an error if a .space symbol is
3745 common or undefined.
3746
3747 * read.c (read_a_source_file): Don't handle mri_pending_align if
3748 the handler is s_globl or s_ignore.
3749
f1ce6af4
FF
3750Thu Jan 30 11:46:59 1997 Fred Fish <fnf@cygnus.com>
3751
3752 * config/tc-d10v.c (find_opcode): Remove unused variable "numops".
3753start-sanitize-tic80
3754 * config/tc-tic80.c: Many additions to previous placeholder file.
3755 * config/tc-tic80.h: Ditto.
3756end-sanitize-tic80
3757
0b476c53
ILT
3758Thu Jan 30 12:28:18 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
3759
3760 * config/tc-i386.c (i386_align_code): Improve the nop patterns.
3761
a6b200da
ILT
3762Thu Jan 30 12:08:40 1997 Ian Lance Taylor <ian@cygnus.com>
3763
0d7f9025
ILT
3764 * config/tc-mips.c (mips_fix_adjustable): New function.
3765 * config/tc-mips.h (tc_fix_adjustable): Call mips_fix_adjustable.
3766 (mips_fix_adjustable): Declare.
3767
a6b200da
ILT
3768 Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
3769 * read.c (read_a_source_file): After doing an mri_pending_align,
3770 adjust the line_label if there is one.
3771 (s_space): Set mri_pending_align if an odd number of bytes were
3772 output.
3773
9073144e
MH
3774Wed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3775
3776 * config/tc-d10v.h (md_do_align): Add this hook to call
3777 d10v_cleanup() when a ".align" is detected. Fixes PR11487.
3778
3779 * config/tc-d10v.c (find_opcode): Correctly calculate
3780 branch displacement when .aligns are present.
3781
33a4c28d
JL
3782Wed Jan 29 09:42:11 1997 Jeffrey A Law (law@cygnus.com)
3783
3784 * config/tc-mn10200.c (md_relax_table): Define.
3785 (md_convert_frag): Implement.
3786 (md_assemble): Handle relaxable operands/instructions correctly.
3787 (md_estimate_size_before_relax): Implement.
3788 * config/tc-mn10200.h (TC_GENERIC_RELAX_TABLE): Define.
3789
645cb4dc
ILT
3790Tue Jan 28 15:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
3791
39bb58e0
ILT
3792 * config/tc-mips.c (append_insn): Give an error for jumps to a
3793 misaligned address.
3794 (md_apply_fix): Make a branch to an odd address an error rather
3795 than a warning.
3b320c48 3796
31a2c6ff
ILT
3797 * config/tc-mips.c (md_convert_frag): If the user explicitly
3798 requested an extended opcode, pass warn as true to mips16_immed.
3799
645cb4dc
ILT
3800 * config/tc-mips.c (mips16_ip): Handle a missing expression like
3801 an explicit 0, so that explicitly extended instructions work
3802 correctly.
3803
0192b099
ILT
3804Mon Jan 27 17:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
3805
3806 * ecoff.c (ecoff_build_symbols): Don't generate a local ECOFF
3807 symbol for a common symbol.
3808
f7ab9441
DE
3809Wed Jan 22 10:39:39 1997 Doug Evans <dje@canuck.cygnus.com>
3810
3811 Patch presumed to have been checked in awhile ago but wasn't.
3812 Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
3813 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
3814 (relax_segment, case rs_org): Move code inside braces. Move locals
3815 target,after inside too.
3816 (relax_segment, case rs_machine_dependent): Guts moved to ...
3817 (relax_frag): New function.
3818 Call md_prepare_relax_scan if defined.
3819
0ce48081
C
3820Mon Jan 20 10:56:47 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3821
3822 * config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
3823 'p' operand specifier.
3824
3825Mon Jan 20 10:39:36 1997 J.T. Conklin <jtc@cygnus.com>
ffecfc8b
C
3826
3827 * config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
3828 m68k family cpus which support long branch addressing modes.
3829 (m68k_ip, md_convert_frag_1, md_estimate_size_before_relax,
3830 md_create_long_jump): Use it.
3831
c36a90ef
ILT
3832Mon Jan 20 12:42:06 1997 Ian Lance Taylor <ian@cygnus.com>
3833
b3a64736
ILT
3834 * config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
3835 the .reginfo or .MIPS.options section if configured for an
3836 embedded target.
3837
c36a90ef
ILT
3838 * config/tc-mips.c (md_begin): Don't set interlocks for
3839 mips_4650.
3840
ad423373
ILT
3841Wed Jan 15 13:51:50 1997 Ian Lance Taylor <ian@cygnus.com>
3842
3843 * read.c (read_a_source_file): Make sure the symbol ends with
3844 whitespace before checking whether the next character is '='.
3845
03b24037
ILT
3846Tue Jan 14 15:07:27 1997 Robert Lipe <robertl@dgii.com>
3847
3848 * config/tc-i386.c (sco_id): Moved from here...
3849 * config/obj-elf.c (sco_id): ...to here. Adding the identifier
3850 really is an SCO ELF specific thing, not just a SCO x86 specific
3851 thing.
3852
4af93ad0
MM
3853start-sanitize-tic80
3854Mon Jan 13 22:43:01 1997 Michael Meissner <meissner@tiktok.cygnus.com>
3855
3856 * configure.in (tic80-*-*): Don't require 'coff'.
3857 * configure: Regenerate.
3858
3859end-sanitize-tic80
8ff75001
ILT
3860Thu Jan 9 09:08:43 1997 Ian Lance Taylor <ian@cygnus.com>
3861
6468dabd
ILT
3862 * read.c (emit_expr): Check for overflow of a negative value
3863 correctly.
3864 * write.c (fixup_segment): Likewise.
3865 * config/obj-coff.c (fixup_segment): Likewise.
3866
d703b5a7
ILT
3867 * config/tc-m68k.c (struct label_line): Define.
3868 (labels, current_label): New static variables.
3869 (md_assemble): Mark current_label as text, and clear it.
3870 (m68k_frob_label): New function.
3871 (m68k_flush_pending_output): New function.
3872 (m68k_frob_symbol): New function.
3873 * config/tc-m68k.h (tc_frob_label): Define.
3874 (md_flush_pending_output): Define.
3875 (tc_frob_symbol): Don't warn, just call m68k_frob_symbol.
3876 (tc_frob_coff_symbol): Likewise.
3877
8ff75001
ILT
3878 * read.c (read_a_source_file): When defining a macro in MRI mode,
3879 don't add the symbol to the symbol table.
3880
78998629
JL
3881Tue Jan 7 11:21:42 1997 Jeffrey A Law (law@cygnus.com)
3882
3883 * config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
3884 here since fixup_segment doesn't (linkrelax is set).
3885 * config/tc-mn10200.c (tc_gen_reloc): Likewise.
3886
62b2acba
JL
3887Mon Jan 6 15:19:32 1997 Jeffrey A Law (law@cygnus.com)
3888
3889 * config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
3890 relocs.
3891
ac866582
JL
3892Fri Jan 3 16:47:08 1997 Jeffrey A Law (law@cygnus.com)
3893
62b2acba 3894 * config/tc-hppa.c (struct hppa_fix_struct): Tweak fx_r_field's type
ac866582
JL
3895 to avoid warnings with the native HP compiler.
3896 (fix_new_hppa): Similarly for the r_type argument.
3897 (pa_build_unwind_subspace, hppa_elf_mark_end_of_function): Enclose
3898 in an #if OBJ_ELF to keep gcc -Wall quiet.
3899 (md_apply_fix): Always initialize "result".
3900
3901 * config/tc-mn10200.c (md_assemble): Generate relocations.
3902
79811f6f
ILT
3903Fri Jan 3 18:17:23 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3904
3905 * config/tc-m68k.c (s_even): Adjust the alignment of the current
3906 section.
3907
ba8f9c09
ILT
3908Fri Jan 3 17:10:33 1997 Richard Henderson <rth@tamu.edu>
3909
3910 * config/obj-elf.c (elf_file_symbol): When using ECOFF debugging,
3911 pass on the new file hook.
3912
3913 * config/tc-alpha.c (alpha_fix_adjustable): Not quite the same as
3914 !alpha_force_relocation, as local LITERALs can be adjusted to be
3915 relative to the section.
3916
a78bc551
ILT
3917Fri Jan 3 12:09:24 1997 Ian Lance Taylor <ian@cygnus.com>
3918
9f94df38
ILT
3919 * config/obj-coff.c (yank_symbols): If tc_frob_coff_symbol is
3920 defined, call it.
3df036e9 3921 * config/tc-m68k.h (tc_frob_symbol): Check whether text label is
9f94df38
ILT
3922 aligned to odd boundary.
3923 (tc_frob_coff_symbol): Define.
3924
039d5a60
ILT
3925 * doc/as.texinfo (Set): Change parenthesized @xref to @pxref.
3926
7b0688df
ILT
3927 * macro.c (macro_expand_body): In MRI mode, just copy a single &.
3928
2156d0d7
ILT
3929 * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
3930 PCINDEX frag. From Ronald F. Guilmette <rfg@monkeys.com>.
3931
a78bc551
ILT
3932 * config/tc-m68k.c (m68k_ip): Accept 'B' as a size for an
3933 immediate value.
3934 (md_assemble): If the size is 'B', set fx_signed.
3935 (md_apply_fix_2): Use fx_signed when checking for overflow.
3936
3937 * write.h (struct fix): Add fx_signed field.
3938 * write.c (fix_new_internal): Initialize fx_no_overflow and
3939 fx_signed fields.
3940 (fixup_segment): Use fx_signed when checking for overflow.
3941 * config/obj-coff.c (fixup_segment): Check fx_no_overflow and
3942 fx_signed when checking for overflow.
3943
b9129c6f
ILT
3944Thu Jan 2 13:37:29 1997 Ian Lance Taylor <ian@cygnus.com>
3945
0abdf280
ILT
3946 * NOTES, NOTES.config: Removed. These are rarely, if ever,
3947 updated, and all the useful information is in doc/internals.texi.
3948
a986926b
ILT
3949 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
3950 * read.c (read_a_source_file): Check for conditional operators
3951 before doing an MRI pending alignment.
3952 * config/tc-m68k.h (m68k_conditional_pseudoop): Declare.
3953 (tc_conditional_pseudop): Define.
3954 * config/tc-m68k.c (m68k_conditional_pseudop): New function.
3955 * doc/internals.texi (CPU backend): Describe
3956 tc_conditional_pseudoop.
3957
924160b0
ILT
3958 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
3959 * config/tc-m68k.c (m68k_rel32_from_cmdline): New static
3960 variable.
3961 (md_begin): Check m68k_rel32_from_cmdline before setting
3962 m68k_rel32.
3963 (m68k_mri_mode_change): Likewise.
3964 (md_longopts): Add --disp-size-default-16 and
3965 --disp-size-default-32.
3966 (md_parse_option): Handle new options.
3967 (md_show_usage): Mention new options.
3968 * doc/c-m68k.texi (M68K-Opts): Document new options.
3969
b4d51f3d
ILT
3970 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
3971 * config/tc-m68k.c (m68k_index_width_default): New static
3972 variable.
3973 (m68k_ip): Use m68k_index_width_default to set the size of a base
3974 register whose size was not given.
3975 (md_longopts): Add --base-size-default-16 and
3976 --base-size-default-32.
3977 (md_parse_option): Handle new options.
3978 (md_show_usage): Mention new options.
3979 * doc/c-m68k.texi (M68K-Opts): Document new options.
3980
103e1158
ILT
3981 * doc/c-mips.texi: Mention ISA level 4, and the -mips16 option.
3982
e16b9537
ILT
3983 * configure.in: Recognize mips-*-linux* target.
3984 * configure: Rebuild.
3985
a162a490
ILT
3986 * config/tc-mips.c (load_register): Rewrite 64 bit handling to
3987 work if valueT is only 32 bits.
3988
b9129c6f
ILT
3989 * config/tc-mips.c: Throughout, check target_big_endian rather
3990 than byte_order.
3991 (byte_order): Remove.
3992 (mips_init_after_args): Remove.
3993 * config/tc-mips.h (LITTLE_ENDIAN, BIG_ENDIAN): Don't define.
3994 (mips_init_after_args): Don't declare.
3995 (tc_init_after_args): Don't define.
3996
3997 * config/tc-mips.h (tc_frob_after_relocs): Define if
3998 OBJ_MAYBE_ELF.
3999 (mips_elf_final_processing): Likewise.
4000 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4001
6e7d5462
MM
4002Tue Dec 31 15:12:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4003
4004 * config/tc-v850.c (md_assemble): If this is sst.{h,w} or
4005 sld.{h,w} and the operand is relocatable, adjust the adend by
4006 shifting it right one bit.
4007
38fc0ba6
ILT
4008Tue Dec 31 12:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
4009
20868ec6
ILT
4010 * read.c (read_a_source_file): Check mri_pending_align after
4011 checking for a macro. From Ronald F. Guilmette
4012 <rfg@monkeys.com>.
4013
6ded6615
ILT
4014 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
4015
38fc0ba6
ILT
4016 * config/tc-sparc.c (md_apply_fix3): Rename from md_apply_fix, and
4017 add segment argument. If OBJ_ELF, treat a relocation against a
4018 symbol in a linkonce section like a relocation against an external
4019 symbol.
4020 * config/tc-sparc.h (MD_APPLY_FIX3): Define.
4021
18e0764d
ILT
4022Mon Dec 30 11:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
4023
4024 * config/tc-mips.c (mips16_macro): Add case for M_ABS.
4025
64556643
FF
4026Fri Dec 27 22:51:51 1996 Fred Fish <fnf@cygnus.com>
4027
4028 * NOTES.config (Implementation): as.h #define's "GAS" not "gas",
4029 includes config.h instead of host.h, tc.h instead of tp.h, and
4030 targ-env.h instead of target-environment.h.
4031 Also, obj-format.h includes targ-cpu.h instead of
4032 target-processor.h.
4033start-sanitize-tic80
4034 * configure.in (case ${generic_target}): Add tic80-*-coff entry.
4035 * configure: Rebuild with autoconf.
4036 * config/obj-coff.h (coff/tic80.h): Include if TC_TIC80 defined.
4037 (TARGET_FORMAT): Define to "coff-tic80".
4038 * config/tc-tic80.c: New file for TIc80 support.
4039 * config/tc-tic80.h: New file for TIc80 support.
4040end-sanitize-tic80
4041
7d99e8af
ILT
4042Fri Dec 27 11:42:29 1996 Ian Lance Taylor <ian@cygnus.com>
4043
4044 * doc/as.texinfo (M): Mention explicitly that -M changes macro
4045 handling.
4046
9c199842
ILT
4047Thu Dec 19 12:06:08 1996 Ian Lance Taylor <ian@cygnus.com>
4048
4049 * write.c (adjust_reloc_syms): If the fixup symbol has been
4050 equated to an undefined symbol, convert the fixup to being against
4051 the target symbol. Remove obsolete code handling a special case
4052 for i386 PIC.
4053
51cd0ae7
SS
4054Wed Dec 18 22:54:39 1996 Stan Shebs <shebs@andros.cygnus.com>
4055
4056 * mpw-make.sed: Use NewFolderRecursive for installation.
4057
cb07aaeb
MH
4058Wed Dec 18 16:00:42 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4059
4060 * config/tc-d10v.c (do_assemble): Correct previous bug fix.
4061
575453fb
MH
4062Wed Dec 18 15:27:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4063
4064 * config/tc-d10v.c (md_assemble): Fix bug which caused
4065 second instruction in a line to be case sensitize. PR11312
4066
5545556d
JL
4067Wed Dec 18 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
4068
4069 * config/tc-mn10200.c (mn10200_insert_operand): Don't
4070 range check operands with MN10200_OPERAND_NOCHECK set.
4071 (check_operand): Likewise.
4072
c0dea495
ILT
4073Tue Dec 17 10:59:32 1996 Ian Lance Taylor <ian@cygnus.com>
4074
f5e38044
ILT
4075 * config/tc-mips.c: Undo part of last Friday's alignment changes.
4076 (md_begin): Always align the text section to a four byte
4077 boundary.
4078 (append_insn): Remove call to record_align.
4079
fbcfacb7
ILT
4080 * config/tc-mips.c (insn_label): Remove.
4081 (struct insn_label_list): Define.
4082 (insn_labels, free_insn_labels): New static variables.
4083 (mips_clear_insn_labels): New static function.
4084 (append_insn): Mark all mips16 text labels, and make them odd.
4085 Handle all labels after emitting a nop, not just one. Call
4086 mips_clear_insn_labels rather than just clearing insn_label.
4087 (mips_emit_delays): Add insns parameter, and use it to decide
4088 whether to mark mips16 labels. Handle all labels, not just one.
4089 Force mips16 labels to be odd. Change all callers.
4090 (mips16_immed): Don't check for an odd branch target.
4091 (md_apply_fix): Don't check mips16 mode for a branch reloc.
4092 (mips16_extended_frag): Ignore the low bit in a branch target.
4093 (md_convert_frag): Likewise.
4094 (mips_no_prev_insn): Call mips_clear_insn_labels rather than just
4095 clearing insn_label.
4096 (mips_align, mips_flush_pending_output, s_cons): Likewise.
4097 (s_float_cons, s_gpword): Likewise.
4098 (s_align): Use insn_labels rather than insn_label.
4099 (s_cons, s_float_cons, s_gpword): Likewise.
4100 (mips_frob_file_after_relocs): New function.
4101 (mips_define_label): Rewrite to add to insn_labels list.
4102 * config/tc-mips.h (tc_frob_file_after_relocs): Define.
4103 * ecoff.c (ecoff_build_symbols): If the size of a function comes
4104 out odd, increment it.
4105
4106 * config/tc-mips.c (append_insn): Only update prev_insn when not
4107 reordering if place is NULL.
4108
c0dea495
ILT
4109 * config/tc-mips.c (mips16_ip): Check for a missing expression
4110 when using the register indirect addressing mode.
4111
d4ba37af
JL
4112Mon Dec 16 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
4113
4114 * config/tc-mn10200.c (mn10200_insert_operand): Don't
4115 check 24bit operands for overflow.
4116 (check_operand): Likewise.
4117
868c3513
ILT
4118Mon Dec 16 11:50:40 1996 Ian Lance Taylor <ian@cygnus.com>
4119
4120 * doc/as.texinfo (Section): Document how to use the .section
4121 pseudo-op for COFF and ELF.
4122
6259c65f
ILT
4123Sun Dec 15 15:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
4124
4125 * write.c (adjust_reloc_syms): Fix linkonce check for ELF.
4126
a677feeb
ILT
4127Sat Dec 14 22:37:27 1996 Ian Lance Taylor <ian@cygnus.com>
4128
4129 * config/tc-mips.c (prev_insn_reloc_type): New static variable.
4130 (RELAX_MIPS16_ENCODE): Add dslot and jal_dslot arguments, and
4131 store them. Adjust other RELAX_MIPS16 macros.
4132 (RELAX_MIPS16_DSLOT): Define.
4133 (RELAX_MIPS16_JAL_DSLOT): Define.
4134 (append_insn): Pass new arguments to RELAX_MIPS16_ENCODE. Correct
4135 handling of whether previous instruction has a fixup. Set
4136 prev_insn_reloc_type.
4137 (mips_no_prev_insn): Clear prev_insn_reloc_type.
4138 (mips16_extended_frag): Use the right base address for a PC
4139 relative add or load.
4140 (md_convert_frag): Likewise. If a PC relative add or load is
4141 used, record the alignment for the section.
4142
08e17202
ILT
4143Fri Dec 13 13:00:33 1996 Ian Lance Taylor <ian@cygnus.com>
4144
54815b9a
ILT
4145 * write.c (adjust_reloc_syms): Don't reduce a reloc against a
4146 linkonce section into a reloc against the section symbol.
4147
8a8121d5
ILT
4148 * config/tc-mips.c (mips16_macro): Remove nop instructions after
4149 branch instructions.
4150
08e17202
ILT
4151 * config/tc-mips.c (md_begin): If configured for an embedded ELF
4152 system, don't set the section alignment to 2**4.
4153 (s_change_sec): Likewise.
4154 (append_insn): Call record_alignment for the section.
4155 (md_section_align): Don't align the section size for an embedded
4156 ELF system.
4157
73d25784
ILT
4158Thu Dec 12 16:40:47 1996 Ian Lance Taylor <ian@cygnus.com>
4159
4160 * write.c (adjust_reloc_syms): Make sure that symbols are
4161 resolved; expression symbols may have been skipped.
8dd6fde3 4162 * config/obj-coff.c (fixup_segment): Likewise.
73d25784 4163
a460cd78
MM
4164Thu Dec 12 15:18:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4165
4166 * config/tc-ppc.c (ppc_elf_suffix): Move @plt to
4167 BFD_RELOC_24_PLT_PCREL relocation.
4168 (md_apply_fix3): Support BFD_RELOC_24_PLT_PCREL.
4169
60b43c4b
MH
4170Tue Dec 10 13:51:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4171
4172 * config/tc-d10v.c (write_2_short): Remove code that called
4173 parallel_ok() when the programmer specified parallel instructions.
4174
42aa2435
JL
4175Tue Dec 10 12:23:19 1996 Jeffrey A Law (law@cygnus.com)
4176
a460cd78
MM
4177 * config/tc-mn10300.c (md_assemble): Update to handle endianness
4178 issues correctly.
4179
42aa2435
JL
4180 * config/tc-mn10200.c (md_assemble): Opcode 0x0 is valid!
4181 * config/tc-mn10300.c (md_assemble): Likewise.
4182
41a0ed22
ILT
4183Tue Dec 10 11:37:14 1996 Ian Lance Taylor <ian@cygnus.com>
4184
9b2ac029
ILT
4185 * config/tc-mips.c (append_insn): Make sure there is enough room
4186 in a frag after a mips16 instruction to switch it with a jump
4187 instruction.
4188
41a0ed22
ILT
4189 * config/tc-mips.c (mips16_extended_frag): Give an error for an
4190 attempt to use a non absolute symbol in an extending frag.
4191
dc1f8a21
JL
4192Mon Dec 9 16:48:20 1996 Jeffrey A Law (law@cygnus.com)
4193
4194 * config/tc-mn10200.c: Flesh out assembler support for MN10200.
4195 * config/tc-mn10200.h: Likewise.
4196
102633ce
ILT
4197Mon Dec 9 17:09:42 1996 Ian Lance Taylor <ian@cygnus.com>
4198
a7dd20e8
ILT
4199 * app.c (do_scrub_chars): At the end of a C comment, pass space to
4200 UNGET rather than PUT. Set old_state before setting state to -2.
4201
559c664a
ILT
4202 * config/tc-mips.c (mips16_extended_frag): Avoid an infinite loop
4203 when extending because the value is exactly maxtiny + 1.
4204
8728fa92
ILT
4205 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add small and ext
4206 arguments, and store them. Adjust other RELAX_MIPS16 macros.
4207 (RELAX_MIPS16_USER_SMALL): Define.
4208 (RELAX_MIPS16_USER_EXT): Define.
4209 (mips16_small, mips16_ext): New static variables.
4210 (append_insn): Pass mips16_small and mips16_ext to
4211 RELAX_MIPS16_ENCODE.
4212 (mips16_ip): Set mips16_small and mips16_ext.
4213 (mips16_immed): Don't check mips16_autoextend.
4214 (mips16_extended_frag): Check USER_SMALL and USER_EXT.
4215
102633ce
ILT
4216 * write.c (write_relocs): Print an error for an out of range
4217 fixup, rather than calling abort.
4218
4219 * as.c (main): Unlink the output file if there are errors while
4220 generating the fixups.
4221
15e69f98
ILT
4222Fri Dec 6 18:48:13 1996 Ian Lance Taylor <ian@cygnus.com>
4223
f74ba7a3
ILT
4224 * config/tc-mips.c (mips16_extended_frag): Don't call
4225 S_GET_VALUE.
4226 (md_convert_frag): Call resolve_symbol_value before calling
4227 S_GET_VALUE, and don't add in the frag address.
4228
15e69f98
ILT
4229 * config/tc-mips.c (mips16_immed): Add file and line parameters,
4230 and use them when reporting errors. Change all callers.
4231
ca82e4eb
JL
4232Fri Dec 6 15:36:32 1996 Jeffrey A Law (law@cygnus.com)
4233
4234 * config/tc-mn10300.c: Fix various gcc -Wall warnings.
4235 Remove '$' prefixing for registers.
4236
f787a8d9 4237Fri Dec 6 00:55:48 1996 Martin <hunt@cygnus.com>
6cc03ed3 4238
f787a8d9
MH
4239 * config/tc-d10v.c (md_assemble): Check to see if prev_seg
4240 is initialized before using it.
4241 (d10v_cleanup): No longer uses its argument, so make it void.
6cc03ed3 4242
f787a8d9
MH
4243 * config/tc-d10v.h (d10v_cleanup): Change prototype.
4244
00a69b89
ILT
4245Thu Dec 5 11:03:31 1996 Ian Lance Taylor <ian@cygnus.com>
4246
4247 * write.c (fixup_segment): Don't discard the symbol for a PC
4248 relative fixup to an absolute symbol.
4249
996bee90
MH
4250Wed Dec 4 15:42:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4251
4252 * config/tc-d10v.c (md_assemble, d10v_cleanup): Fix bug
4253 with multiple sections.
4254
943321c0
ILT
4255Wed Dec 4 13:00:07 1996 Ian Lance Taylor <ian@cygnus.com>
4256
4257 * config/tc-mips.c (md_longopts): Rename mips-16 to mips16, and
4258 no-mips-16 to no-mips16.
4259 (s_mipsset): Accept .set mips16 and .set nomips16.
4260
8b1e9f12
MM
4261Wed Dec 4 10:35:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4262
4263 * config/tc-ppc.c (ppc_elf_suffix): Take expressionS pointer
4264 argument, and check for +/- constant following the suffix, folding
4265 it into the expression.
4266 (ppc_elf_cons): Change ppc_elf_suffix calls.
4267 (md_assemble): Ditto.
4268 (shlib): Replace boolean mrelocatable with enumeration shlib.
4269 (md_parse_option): Discriminate between PIC style shared libraries
4270 and -mrelocatable.
4271 (ppc_elf_validate_fix): Don't report warnings for PIC style shared
4272 libraries.
4273
b61802e7
MM
4274Tue Dec 3 23:18:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4275
4276 * config/tc-ppc.h ({tc,ppc}_comment_chars): Define, so that we can
4277 change the comment characters.
4278
4279 * config/tc-ppc.c (comment_chars): Delete in favor of
4280 tc_comment_chars.
4281 (ppc_{eabi,solaris}_comment_chars): Eabi and Solaris versions of
4282 comment chars.
4283 (ppc_comment_chars): Select appropriate comment chars by default.
4284 (msolaris): New flag for -m{,no-}solaris.
4285 (md_parse_option): Recognize -K pic. Add support for
4286 -m{,no-}solaris.
4287 (md_show_usage): Update.
4288 (md_begin): Do not set ELF flags if Solaris.
4289 (ppc_elf_suffix): @local sets R_PPC_LOCAL24PC relocation.
4290 (md_apply_fix3): Add support for R_PPC_LOCAL24PC.
4291
4292Mon Dec 2 13:48:57 1996 Ian Lance Taylor <ian@cygnus.com>
4293
4294 * as.c (main): Correct handling of flag_always_generate_output.
4295
5840a0e5
JL
4296Sun Dec 1 21:46:05 1996 Jeffrey A Law (law@cygnus.com)
4297
a9f2e3e2
JL
4298 * config/tc-mn10300.c (tc_gen_reloc): Get the addend from
4299 fx_offset, not fx_addnumber.
4300
5840a0e5
JL
4301 * config/tc-mn10300.h (tc_fix_adjustable): Don't do any
4302 reloc adjustments.
4303
b608274a
ILT
4304Sat Nov 30 17:34:48 1996 Eliot Dresselhaus <eliot@wally.edc.com>
4305
4306 * config/tc-i386.c: Correct misspelling: balenced to balanced.
4307
caeea0b4
ILT
4308Wed Nov 27 13:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
4309
4310 * config/tc-mips.c (md_section_align): Check for an alignment of
4311 4, not an alignment of 16. Corrects August 7 patch.
4312
cc5703cd
ILT
4313Tue Nov 26 10:33:16 1996 Ian Lance Taylor <ian@cygnus.com>
4314
775c64a9
ILT
4315 * configure, conf.in: Rebuild with autoconf 2.12.
4316
c830c9ea
ILT
4317 * config/tc-ppc.c (ppc_elf_lcomm): Don't give an error if no
4318 alignment is specified.
4319
cc5703cd
ILT
4320 Add support for mips16 (16 bit MIPS implementation):
4321 * config/tc-mips.c: Extensive additions for mips16 support, not
4322 listed here.
4323 (RELAX_OLD, RELAX_NEW): Use only 7 bits each.
4324 (insn_uses_reg): Change last parameter to an enum.
4325 * config/tc-mips.h (LOCAL_LABELS_DOLLAR): Define as 0.
4326 (md_relax_frag): Define as mips_relax_frag.
4327 (mips_relax_frag): Declare.
4328 (struct mips_cl_insn): Add use_extend and extend fields.
4329 (tc_fix_adjustable): Define.
4330 * config/obj-elf.h (S_GET_OTHER): Define.
4331 (S_SET_OTHER): Define.
4332
3ab410cd
C
4333Mon Nov 25 18:02:29 1996 J.T. Conklin <jtc@beauty.cygnus.com>
4334
4335 * config/tc-m68k.c (m68k_ip): Implement cases for new <, >, m, n,
4336 o and p operand specifiers.
4337
a0a2af4f
DE
4338Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
4339
4340 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
4341 (relax_segment, case rs_org): Move code inside braces. Move locals
4342 target,after inside too.
4343 (relax_segment, case rs_machine_dependent): Guts moved to ...
4344 (relax_frag): New function.
4345 Call md_prepare_relax_scan if defined.
4346 * config/tc-m68k.h (md_prepare_relax_scan): Renamed from
4347 M68K_AIM_KLUDGE.
4348
0671e7f6
JL
4349Mon Nov 25 08:49:36 1996 Jeffrey A Law (law@cygnus.com)
4350
a0a2af4f
DE
4351 * config/tc-mn10300.c (address_registers): Use '$' as register
4352 prefix instead of '%'.
4353 (data_registers, other_registers, md_assemble): Likewise.
4354
f98905f1
JL
4355 * config/tc-mn10300.c (address_registers): Use '%' prefix for regs.
4356 (data_registers, other_registers, md_assemble): Likewise.
4357
0671e7f6
JL
4358 * config/tc-mn10300.c (md_assemble): Correctly determine the
4359 correct location and type for each relocation.
4360 (md_pcrel_from): Simplify.
4361
5895d3f2
ILT
4362Fri Nov 22 15:42:26 1996 Ian Lance Taylor <ian@cygnus.com>
4363
4364 * config/tc-sh.c (md_convert_frag): Improve warning when branch is
4365 converted into branch around branch.
4366
d9a9c18f
JL
4367Thu Nov 21 11:56:11 1996 Jeffrey A Law (law@cygnus.com)
4368
4369 * config/tc-mn10300.h (DIFF_EXPR_OK): Don't define this.
4370 (tc_fix_adjustable): Don't adjust relocs against weak symbols or
4371 pc-relative relocs.
4372 * config/tc-mn10300.c (md_begin): Set linkrelax.
4373 (md_assemble): Create fixups as needed.
4374 (md_apply_fix3): Gut. It shouldn't ever get called anymore.
4375
5e9b714f
MM
4376Tue Nov 19 17:48:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4377
4378 * config/tc-d10v.c (parallel_ok): When automatically converting
4379 serial ops to parallel, do not consider a branch as the first
4380 instruction.
4381
7f02192d
JL
4382Tue Nov 19 13:35:22 1996 Jeffrey A Law (law@cygnus.com)
4383
4384 * config/tc-mn10300.c (md_assemble): Handle MN10300_OPERAND_REG_LIST.
4385
43d695a1
JL
4386Mon Nov 18 15:26:55 1996 Jeffrey A Law (law@cygnus.com)
4387
4388 * config/tc-mn10300.c (mn10300_insert_operand): Provide prototype
4389 via PARAMS.
4390 (check_operand): Likewise.
4391
228835a9
MM
4392Mon Nov 18 15:22:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4393
4394 * config/tc-d10v.c (parallel_ok): Branch and link instructions
4395 modify r13.
ec5e212b
MM
4396 (write_2_short): Call parallel_ok to check whether two short
4397 instructions the user requested execute in parallel, can be
4398 executed that way.
228835a9 4399
edb89bfc
MH
4400Thu Nov 14 11:17:49 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4401
4402 * config/tc-d10v.c (write_2_short): Fix bug that wouldn't
4403 allow a branch and link in parallel with an exe instruction.
4404
4405Fri Nov 8 13:55:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4406
4407 * doc/c-d10v.texi: Add info on @word modifier.
4408
cdde2f5c 4409Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com)
efba8af0
JL
4410
4411 * config/tc-mn10300.c (mn10300_insert_operand): MN10300_OPERAND_SPLIT
4412 operands are assumed to be 32bits. Use "bits" field to hold the
4413 number of bits in the main instruction word for MN10300_OPERAND_SPLIT.
4414 (mn10300_check_operand): MN10300_OPERAND_SPLIT operands are assumed
4415 to be 32bits.
cdde2f5c 4416
bdd91d4f
JL
4417 * config/tc-mn10300.c (mn10300_insert_operand): Shift low part
4418 of a MN10300_OPERAND_SPLIT operand by operand->shift.
4419
cdde2f5c
JL
4420 * config/tc-mn10300.c (mn10300_insert_operand): Handle
4421 MN10300_OPERAND_SPLIT.
4422
bfe5059c
JL
4423Tue Nov 5 13:30:40 1996 Jeffrey A Law (law@cygnus.com)
4424
4425 * config/tc-mn10300.c (md_assemble): Insert operands into
4426 the extension part of the instruction if necessary.
4427 (mn10300_insert_operand): Accept pointer to extension word
4428 argument. Make insn a pointer argument too. Return type
4429 is now void. All callers changed.
4430
68328dc6
JL
4431Mon Nov 4 12:53:40 1996 Jeffrey A Law (law@cygnus.com)
4432
4433 * config/tc-mn10300.c (mn10300_insert_operand): Handle
4434 repeated register operands.
4435
9af40217
ILT
4436Fri Nov 1 10:42:49 1996 Ian Lance Taylor <ian@cygnus.com>
4437
9a5acea8
ILT
4438 * doc/as.texinfo: Added section on reporting bugs.
4439
9af40217
ILT
4440 * config/tc-alpha.c: Change uses of void * to PTR. Change the
4441 alpha_macro emit field to expect a const argument, and change the
4442 arg field to be const. Fix some spacing to follow the GNU
4443 standard.
4444
4445Fri Nov 1 10:32:03 1996 Richard Henderson <rth@tamu.edu>
4446
4447 * config/tc-alpha.c (md_parse_option): Add knowledge of 21164pc
4448 (pca56) and 21264 (ev6) cpus.
4449 (md_apply_fix): Private relocation types are now negative.
4450 (alpha_force_relocation): Likewise.
4451 (tc_gen_reloc): Likewise.
4452 (emit_insn): Likewise.
4453 (emit_ldXu): Do the right thing when the hardware can do byte insns.
4454 (emit_stX): Likewise.
4455 (emit_sextX): Likewise.
4456
527dc0c9
ILT
4457Thu Oct 31 16:33:21 1996 Ian Lance Taylor <ian@cygnus.com>
4458
4459 * config/obj-coff.c (do_relocs_for): Call resolve_symbol_value on
4460 a symbol found in a reloc.
4461
4462 * symbols.c (resolve_symbol_value): Improve the error message if
4463 an undefined symbol is used in an expression.
4464
fe7e5bdf
ILT
4465Wed Oct 30 20:15:35 1996 Ian Lance Taylor <ian@cygnus.com>
4466
4467 * doc/internals.texi: Rewrite, and add a lot of documentation.
4468 * doc/Makefile.in (internals.info): New target.
4469
193e4197
JL
4470Wed Oct 30 14:55:57 1996 Jeffrey A Law (law@cygnus.com)
4471
4472 * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
4473 against weak symbols.
4474
a334533c
JL
4475Tue Oct 29 12:28:16 1996 Jeffrey A Law (law@cygnus.com)
4476
baf385b5
JL
4477 * config/tc-v850.c (md_assemble): Don't lose for relaxable
4478 addresses like .+6.
4479
2385d90a
JL
4480 * config/tc-v850.c (md_convert_frag): Make sure we insert the
4481 fixup at the right address within the frag.
4482
bc49fab8
JL
4483 * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
4484 to an absolute value, instead increment it as needed.
4485
a334533c
JL
4486 * config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
4487 * config/tc-v850.c: Fix some indention problems.
4488 (md_relax_table): Define for D9->D99 branch displacement
4489 relaxing.
4490 (md_convert_frag): Do something useful instead of aborting.
4491 (md_estimate_size_before_relax): Likewise.
4492 (md_assemble): Note if the matching instruction has a relaxable
4493 operand. If it does, allocate frag with frag_var and don't
4494 do any fixups.
4495
a334533c
JL
4496Mon Oct 28 10:48:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4497
4498 * config/tc-d10v.h (md_cleanup): New function. This is needed to
4499 write out any buffered instructions when a ".end" is found.
4500
9051e56f
MH
4501Mon Oct 28 10:43:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4502
4503 * read.c (read_a_source_file): New hook md_cleanup().
4504
07f9de2a
ILT
4505Fri Oct 25 00:01:00 1996 Ian Lance Taylor <ian@cygnus.com>
4506
4507 * write.c (fix_new_exp): Use make_expr_symbol to build an
4508 expression symbol for a complex fixup.
4509
3723a1a9
JL
4510Thu Oct 24 14:31:04 1996 Jeffrey A Law (law@cygnus.com)
4511
d3bbd9dc
JL
4512 * config/tc-v850.c (v850_reloc_prefix): Several disgusting
4513 hacks to improve parsing of complex hi, lo, zda, etc
4514 expressions.
4515 (md_assemble): Don't demand and eat a trailing ')' after finding
4516 a v850 relocation prefix. Sign extend the constant in a
4517 BFD_RELOC_LO16 expression. Do eat a trailing ')' after a complete
4518 operand.
4519 (parse_cons_expression_v850): Don't eat a trailing ')' after
4520 finding a v850 relocation prefix.
4521
10fba7f1
JL
4522 * config/tc-v850.h (TC_PARSE_CONS_EXPRESSION): Define.
4523 (TC_CONS_FIX_NEW): Likewise.
4524 * config/tc-v850.c (parse_cons_expression_v850): New function.
4525 (cons_fix_new_v850): Likewise.
4526
3723a1a9
JL
4527 * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
4528
20fbbb59
ILT
4529Wed Oct 23 18:20:29 1996 Ian Lance Taylor <ian@cygnus.com>
4530
4531 * config/tc-ppc.c (md_apply_fix3): Give a better warning message
4532 for an unknown relocation type.
4533
7e96935e
JL
4534Wed Oct 23 16:21:28 1996 Jeffrey A Law (law@cygnus.com)
4535
4536 * config/tc-v850.c (md_pseudo_table): Add .word; allocates
4537 4 bytes of space.
4538
8ea15b86
JL
4539Tue Oct 22 22:01:25 1996 Jeffrey A Law (law@cygnus.com)
4540
4541 * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
4542 differently for movea & sst/sld insns.
4543
39176dfe
MM
4544Tue Oct 22 17:09:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4545
4546 * config/tc-d10v.c (parallel_ok): Don't allow illegal combinations
4547 of instructions.
4548
87dd0a93
ILT
4549Tue Oct 22 11:28:39 1996 Ian Lance Taylor <ian@cygnus.com>
4550
4551 * obj.h (struct format_ops): Add frob_file_after_relocs field.
4552 * config/obj-multi.h (obj_frob_file_after_relocs): Define.
4553 * config/obj-ecoff.c (ecoff_format_ops): Initialize new
4554 frob_file_after_relocs field.
4555 * config/obj-elf.c (elf_format_ops): Likewise.
4556 * config/tc-mips.c: Undefine obj_frob_file_after_relocs before
4557 including obj-elf.h.
4558
d12d1f6c
ILT
4559Mon Oct 21 11:38:30 1996 Ian Lance Taylor <ian@cygnus.com>
4560
bf39474f
ILT
4561 * config/tc-mips.c (cons_fix_new_mips): Only treat 8 byte reloc
4562 specially if not ELF.
4563 (md_apply_fix): Handle BFD_RELOC_64.
4564 (tc_gen_reloc): Handle BFD_RELOC_64.
4565
3030e864
ILT
4566 * config/tc-i386.c (md_apply_fix3): Don't increment value for a PC
4567 relative reloc when BFD_ASSEMBLER and OBJ_AOUT (more ugly gas
4568 reloc hacking).
4569
d12d1f6c
ILT
4570 * config/obj-aout.h (S_IS_DEFINE): non BFD_ASSEMBLER version:
4571 Don't check S_GET_OTHER.
4572
b70795e9
ILT
4573Fri Oct 18 14:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
4574
538034cf
ILT
4575 * config/tc-mips.c (mips_ip): Accept an odd floating point
4576 register with l.s or s.s.
4577
b70795e9
ILT
4578 * config/obj-aout.c (obj_pseudo_table): Use obj_aout_type for
4579 .type pseudo-op.
4580 (obj_aout_type): New static function.
4581
b9d55d96
ILT
4582Thu Oct 17 17:55:17 1996 Ian Lance Taylor <ian@cygnus.com>
4583
4584 * Makefile.in ($(OBJS)): Depend upon libiberty.h.
4585
0f8e50bb
JL
4586Wed Oct 16 11:28:31 1996 Jeffrey A Law (law@cygnus.com)
4587
548ddc71
JL
4588 * config/tc-v850.c (v850_reloc_prefix): Recognize zdaoff, tdaoff
4589 and sdaoff expressions.
4590
0f8e50bb
JL
4591 * write.c (fixup_segment): Don't add symbol value to addend if
4592 TC_V850 and OBJ_ELF.
4593 * config/tc-v850.h (tc_fix_adjustable): Don't adjust any
4594 pc-relative fixups.
4595
4596 * config/tc-v850.c (md_pcrel_from): Undo yesterday's changes.
4597 (md_pcrel_from_section): Likewise.
4598 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise.
4599
4600Tue Oct 15 23:19:00 1996 Jeffrey A Law (law@cygnus.com)
f964b01d
JL
4601
4602 * config/tc-v850.c (md_pcrel_from): Delete unused function.
4603 (md_pcrel_from_section): New function.
4604 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
4605
0267c6c9
ILT
4606Mon Oct 14 13:59:12 1996 Ian Lance Taylor <ian@cygnus.com>
4607
4608 * config/tc-mips.c (load_register): Add cast to offsetT when using
4609 a constant with &~.
4610
5d0cd0b8
ILT
4611Mon Oct 14 11:24:28 1996 Richard Henderson <rth@tamu.edu>
4612
4613 * config/obj-elf.c (elf_frob_file): Move ECOFF debug processing to ...
4614 (elf_frob_file_after_relocs): ... here. New function.
4615 * config/obj-elf.h (obj_from_file_after_relocs): New macro.
4616 * write.c (write_object_file): Call *frob_after_relocs after the
4617 call to write_relocs.
4618
4619 * config/tc-alpha.c: Use new BFD_RELOC_ALPHA_ELF_LITERAL reloc.
4620
4621 * config/tc-alpha.c (load_expression): Don't SET_VALUE on the section
4622 symbol, as this messes up linking. Instead, expand the recursive call
4623 inline and change up the appropriate bits to get the 0x8000 offset
4624 in the reloc addend.
4625
914f8998
ILT
4626Thu Oct 10 17:30:31 1996 Ian Lance Taylor <ian@cygnus.com>
4627
1491f2ea
ILT
4628 * config/tc-sparc.h (tc_fix_adjustable): Permit the difference of
4629 two symbols in the same segment to be adjusted.
4630
914f8998
ILT
4631 * configure.in: Don't get confused by CPU-VENDOR-linux-gnu.
4632 * configure: Rebuild.
4633
f8a011cf
MM
4634Thu Oct 10 17:22:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4635
4636 * config/tc-ppc.c (ppc_insert_operand): Change most warnings into
4637 errors.
4638 (ppc_elf_validate_fix): Ditto.
4639 (md_assemble): Ditto.
4640 (ppc_tc): Ditto.
4641 (ppc_pe_section): Ditto.
4642 (ppc_frob_symbol): Ditto.
4643
1c3ae169
JL
4644Thu Oct 10 12:05:45 1996 Jeffrey A Law (law@cygnus.com)
4645
3ab9337b
JL
4646 * config/mn10300.c (md_assemble): Pass an extra shift count
4647 to mn10300_insert_operand based on the opcode format.
4648 (mn10300_insert_operand): Accept and use extra shift count
4649 parameter.
4650
778c521b
JL
4651 * config/tc-mn10300.c (md_assemble): Use FMT_* macros for
4652 formats rather than hard-coded constants.
4653
1c3ae169
JL
4654 * config/tc-mn10300.c (md_assemble): Format D5 instructions
4655 are 7 bytes long. Write out instructions in big-endian format.
4656
a6be605a
JL
4657Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
4658
1c3ae169 4659 * config/tc-mn10300.c (md_assemble): Tweak further so
a6be605a
JL
4660 that all instructions are parsed correctly.
4661
5e1e8f23
ILT
4662Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
4663
4664 * as.h: Include libiberty.h.
4665 (xmalloc, xrealloc): Don't declare.
4666 * as.c: Don't include libiberty.h.
4667 * expr.c, read.c, stabs.c, config/obj-coff.c: Likewise.
4668 * config/tc-mips.c: Likewise.
4669 * messages.c: Likewise.
4670 (xstrerror): Don't declare.
4671 * xmalloc.c: Remove.
4672
1217102f
JL
4673Mon Oct 7 16:53:23 1996 Jeffrey A Law (law@cygnus.com)
4674
4675 * config/tc-mn10300.h (pre_defined_registers) Remove.
4676 (system_registers, cc_names): Likewise.
4677 (address_registers, data_registers, other_registers): New register
4678 arrays.
4679 (register_name, system_register_name, cc_name): Remove.
4680 (mn10300_reloc_prefix): Likewise.
4681 (data_register_name): New function.
4682 (address_register_name, other_register_name): Likewise.
4683 (md_assemble): Rough cut at parsing operands. Remove lots of
4684 unwanted code.
4685 (md_apply_fix3): Disable for now.
4686
99e3ccb6
ILT
4687Mon Oct 7 11:38:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4688
4689 * config/tc-m68k.c (select_control_regs): New function, extracted
4690 out of m68k_init_after_args.
4691 (m68k_init_after_args): Use it.
4692 (mri_chip): Use it here as well to update set of allowed control
4693 regs for movec.
4694
0bd28bc4
ILT
4695Mon Oct 7 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
4696
4697 * config/obj-elf.c (elf_begin): New function.
4698 (obj_elf_section): Add the section symbol to the symbol table.
4699 * config/obj-elf.h (obj_begin): Define.
4700 (elf_begin): Declare.
4701 * as.c (perform_an_assembly_pass): Call obj_begin if it is
4702 defined.
4703
eb0dafdc
ILT
4704Fri Oct 4 18:37:32 1996 Ian Lance Taylor <ian@cygnus.com>
4705
4706 * config/obj-coff.c (fixup_segment): Subtract the section address
4707 from a PC relative reloc if TC_M68K.
4708
76f841e6
ILT
4709Thu Oct 3 15:15:30 1996 Ian Lance Taylor <ian@cygnus.com>
4710
4711 * config/tc-sparc.c (md_pseudo_table): Make .uahalf, .uaword, and
4712 .uaxword available even if not OBJ_ELF.
4713 (md_atof): Remove unused local variable wordP.
4714
0f91d763
JL
4715Thu Oct 3 00:16:50 1996 Jeffrey A Law (law@cygnus.com)
4716
4717 * config/tc-mn10x00.c, config/tc-mn10x00.h: New files
4718 for Matsushita MN10x00 support.
4719 * configure.in: Recognize mn10x00-*-*
4720 * configure: Rebuilt.
4721
7c328bc7
ILT
4722Wed Oct 2 15:54:03 1996 Klaus Kaempf <kkaempf@progis.de>
4723
4724 * obj-evax.h: move openvms definitions from here to tc-alpha.c.
4725 * tc-alpha.c: add support for vms_case_hack like in vax/vms.
4726 (load_expression): track clobbering of base reg before jmp/jsr.
4727 (s_alpha_file): pass case_hack flags and source filename via
4728 symbol table to bfd.
4729 * tc-alpha.h (TC_CONS_FIX_NEW): define
4730
fed13a5e
ILT
4731Tue Oct 1 16:16:01 1996 Joel Sherrill <joel@oarcorp.com>
4732
4733 * configure.in (mips-*-rtems*): New target, like mips-*-elf*.
4734 * configure: Rebuild.
4735
ffef69a3
ILT
4736Tue Oct 1 12:37:48 1996 Ian Lance Taylor <ian@cygnus.com>
4737
a69e5977
ILT
4738 * read.c (s_macro): Warn if a macro has the same name as a
4739 pseudo-op.
4740 (s_space): In m68k MRI mode, align to a word boundary.
4741 * macro.c (define_macro): Add namep parameter. Change all
4742 callers.
4743 * macro.h (define_macro): Update declaration.
4744
bfc94743
ILT
4745 * as.c (show_usage): Print bug report address.
4746 (parse_args): Change version printing to match current GNU
4747 standards.
4748 * gasp.c (show_usage): Print bug report address.
4749 (main): Change version printing to match current GNU standards.
4750
0b810a6e
ILT
4751 * config/tc-m68k.c (init_table): Correct access control unit
4752 register numbers. From Ken Rose <rose@netcom.com>.
4753
ffef69a3
ILT
4754 * config/tc-alpha.c: Add some static function prototypes.
4755 (alpha_macros): Move to top of file. Make static.
4756 (alpha_num_macros): Move to top of file.
4757
8940a583
SG
4758Tue Oct 1 09:36:19 1996 Stu Grossman (grossman@critters.cygnus.com)
4759
4760 * tc-v850.h: Define LOCAL_LABEL to recognise _.L_* symbols
4761 generated by DWARF.
4762
8940a583
SG
4763Sat Sep 28 03:38:08 1996 Ian Lance Taylor <ian@cygnus.com>
4764
4765 * listing.c (list_symbol_table): Remove bogus code in BFD64 case,
4766 and just call sprintf_vma.
4767
4fc2c99a
ILT
4768Thu Sep 26 16:04:11 1996 Ian Lance Taylor <ian@cygnus.com>
4769
4770 * expr.c (expr): Change >>= to >> (fix typo). (From meissner).
4771
97f8e6ff
ILT
4772Tue Sep 24 19:05:08 1996 Ian Lance Taylor <ian@cygnus.com>
4773
4774 * read.c (float_cons): Call md_flush_pending_output if it is
4775 defined.
4776
97f8e6ff
ILT
4777Tue Sep 24 12:22:18 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4778
4779 * config/tc-d10v.c (md_operand): Created. Allows operands to
4780 start with '#'.
4781 * config/tc-d10v.h (md_operand): Undefined.
4782
6e4f3f09
ILT
4783Mon Sep 23 12:13:18 1996 Ian Lance Taylor <ian@cygnus.com>
4784
4785 * config/tc-m68k.c (add_fix): Treat a width of '3' like 'B'.
4786 (md_assemble): A fixup width of '3' means a 1 byte reloc.
4787
72f70020
ILT
4788Thu Sep 19 12:21:24 1996 Ian Lance Taylor <ian@cygnus.com>
4789
4790 * config/obj-coff.c (fixup_segment): Don't adjust PC relative
4791 reloc for the i960 for a reloc in the same section. This undoes
4792 one of the two changes made Aug 19.
4793
ab299844
ILT
4794Wed Sep 18 12:11:58 1996 Ian Lance Taylor <ian@cygnus.com>
4795
4796 * config/obj-coff.c (obj_coff_endef): Both versions: Move C_STAT
4797 symbols to the position of the debugging information.
4798
15405999
ILT
4799Mon Sep 16 11:41:40 1996 Ian Lance Taylor <ian@cygnus.com>
4800
4801 * expr.c (expr): Always use unsigned right shifts for >>.
4802
f17be658
JSC
4803Thu Sep 12 10:25:45 1996 James G. Smith <jsmith@cygnus.co.uk>
4804
4805 * config/tc-arm.c (md_apply_fix3): Update two thumb instruction
4806 slots when processing BL fixups.
4807
4808 * config/tc-arm.c (output_inst): Ensure Thumb BL fixup is marked
4809 on the first half of the instruction.
4810
475c826b
ILT
4811Wed Sep 11 00:09:35 1996 Ian Lance Taylor <ian@cygnus.com>
4812
1decafee
ILT
4813 * ecoff.c (ecoff_stab): Create an expression symbol for a complex
4814 stabs expression, rather than giving an error.
4815
475c826b
ILT
4816 * ecoff.c (ecoff_new_file): Don't do anything if we are still in
4817 the same file.
4818
8a3bdc3d
ILT
4819Tue Sep 10 11:45:37 1996 Ian Lance Taylor <ian@cygnus.com>
4820
4821 * config/tc-mips.c (append_insn): Fill in the value for a constant
4822 jump, rather than creating a reloc.
4823
517078c1
ILT
4824Mon Sep 9 10:57:42 1996 Ian Lance Taylor <ian@cygnus.com>
4825
d31a3f5e
ILT
4826 * config/tc-mips.c (append_insn): Don't swap an instruction which
4827 sets a condition code with an instruction which uses a condition
4828 code.
4829 (mips_ip): In cases 'N' and 'M', look for $fccN rather than an
4830 immediate value.
4831
ca296aab 4832 * config/tc-mips.c (md_begin): Recognize r5000 for cpu.
517078c1
ILT
4833 (mips_ip): Give a better error message if the ISA level is wrong.
4834 (md_parse_option): Recognize -mcpu=[v][r]5000.
4835
4836Sat Sep 7 13:25:55 1996 James G. Smith <jsmith@cygnus.co.uk>
4837
4838 * config/tc-mips.c (COUNT_TOP_ZEROES): Added macro to count
4839 leading zeroes.
4840 (load_register): Ensure hi32 bits are not lost during lo32bit
4841 processing. Fix shift offset that was overflowing into the next
4842 instruction field. Add code to generate shorter sequences for
4843 constants with a single contiguous seqeuence of ones.
4844
5e6c6406
MH
4845Fri Sep 6 17:07:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4846
4847 * config/tc-d10v.c (d10v_dot_word): New function to support
4848 "@word" with the word pseudo-op.
4849 (md_apply_fix3): Cleanup and changes to support correct sizes
4850 for 16 and 18-bit relocs.
4851
df4021c1
DE
4852Fri Sep 6 16:00:29 1996 Doug Evans <dje@canuck.cygnus.com>
4853
4854 * configure.in (sparc-*-aout): Set `em'.
4855 * configure: Regenerated.
4856 * config/te-sparcaout.h: New file.
4857 * config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
4858 Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
4859 * config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
4860 (SPECIAL_CASE_{SETSW,SETX}): Define.
4861 ({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
4862 (md_begin): Delete setting of `target_big_endian'.
4863 (output_insn): New function.
4864 (md_assemble): Rewrite. Add `setx' support.
4865 (sparc_ip): Handle `0' operand char. Recognize setuw, setsw, setx
4866 special cases.
4867 (md_atof): Add little endian support.
4868 (md_number_to_chars): Likewise.
4869 (md_apply_fix): Likewise.
4870 (md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
4871 (md_parse_option): Likewise.
4872 (md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.
4873
cfc71c6d
ILT
4874Thu Sep 5 13:40:29 1996 Ian Lance Taylor <ian@cygnus.com>
4875
4876 * ecoff.c (ecoff_new_file): New function.
4877 * ecoff.h (ecoff_new_file): Declare.
4878 * config/obj-ecoff.h (obj_app_file): Define.
4879
4880Thu Sep 5 13:39:25 1996 Richard Henderson <rth@tamu.edu>
4881
4882 * config/tc-alpha.c (load_expression): Bias the .lit8 section
4883 symbol by 32k so that our 16-bit signed offset can address the
4884 entire chunk. Reported by <matt@lkg.dec.com>.
4885
711254da
ILT
4886Wed Sep 4 10:23:20 1996 Ian Lance Taylor <ian@cygnus.com>
4887
4888 * config/tc-mips.c (load_register): Remove unused variable tmp.
4889
1b68deb5
JSC
4890Wed Sep 4 11:24:29 1996 James G. Smith <jsmith@cygnus.co.uk>
4891
4892 * config/tc-mips.c (load_register): Remove unnecessary code that
4893 was causing the high 32bits of 64bit constants to be lost.
4894
1b68deb5
JSC
4895Tue Sep 3 13:52:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4896
4897 * config/tc-d10v.c: Added changes to support function
4898 pointers and "@word" syntax.
4899
05fd83ed
JL
4900Tue Sep 3 11:57:18 1996 Jeffrey A Law (law@cygnus.com)
4901
4902 * config/tc-v850.c: Remove commented out and #if 0'd code.
4903 (v850_reloc_prefix): Provide prototype.
4904 (postfix, get_reloc, build_insn): Remove prototypes for nonexistant
4905 functions.
4906 (md_begin, md_assemble, md_apply_fix3): Remove unused variables.
4907 (md_assemble): Add default to case statement.
4908
270fd2ad
JL
4909Sat Aug 31 16:03:00 1996 Jeffrey A Law (law@cygnus.com)
4910
4911 * config/tc-v850.c (md_assemble): Compute size of the instrction
4912 from the opcode.
74dd0c07 4913
2d56269e
JL
4914 * config/tc-v850.c (md_apply_fix3): Do simple byte, short and
4915 word fixups too.
4916
270fd2ad
JL
4917Fri Aug 30 23:50:08 1996 Jeffrey A Law (law@cygnus.com)
4918
74dd0c07
JL
4919 * config/tc-v850.c (md_apply_fix3): Use little endian get/put
4920 routines to fetch/store the updated instruction from/to memory.
4921 (v850_insert_operand): If the operand has a specialized insert
4922 routine, call it.
4923
c84615bc
C
4924Fri Aug 30 18:35:26 1996 J.T. Conklin <jtc@hippo.cygnus.com>
4925
4926 * config/tc-v850.c (reg_name_search): Align calling convention to
4927 be like identical function found in tc-ppc.c.
4928 (get_reloc): Removed.
4929 (v850_reloc_prefix): New function, parse lo(), hi() and hi0().
4930 (md_assemble): emit fixups.
4931 (md_pcrel_from): renamed from md_pcrel_from_section, emit proper
4932 displacement.
4933 (md_apply_fix3): handle fixups/relocs.
4934 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Removed definition.
4935
0f616818
ILT
4936Fri Aug 30 18:12:00 1996 Ian Lance Taylor <ian@cygnus.com>
4937
4938 Add SH ELF support.
4939 * configure.in (sh-*-elf*): New target.
4940 * config/tc-sh.h (TARGET_ARCH): Define.
4941 (WORKING_DOT_WORD): Define.
4942 (TC_COFF_FIX2RTYPE): Only define if OBJ_COFF.
4943 (BFD_ARCH, COFF_MAGIC, TC_COUNT_RELOC): Likewise.
4944 (TC_RELOC_MANGLE, tc_coff_symbol_emit_hook): Likewise.
4945 (DO_NOT_STRIP, NEED_FX_R_TYPE, TC_KEEP_FX_OFFSET): Likewise.
4946 (TC_COFF_SIZEMACHDEP, tc_frob_file): Likewise.
4947 (SUB_SEGMENT_ALIGN): Likewise.
4948 (RELOC_32): Don't define.
4949 (tc_frob_file_before_adjust): Define if BFD_ASSEMBLER.
4950 (target_big_endian): Declare if OBJ_ELF.
4951 (TARGET_FORMAT): Define if OBJ_ELF.
4952 * config/tc-sh.c: Use BFD reloc codes instead of SH COFF reloc
4953 numbers throughout.
4954 (tc_crawl_symbol_chain): Only define if OBJ_COFF.
4955 (tc_headers_hook, tc_coff_sizemachdep): Likewise.
4956 (struct sh_count_relocs): Define.
4957 (sh_count_relocs): New static function, broken out of
4958 sh_frob_file. Add BFD_ASSEMBLER code.
4959 (sh_frob_section): Likewise.
4960 (sh_frob_file): Call sh_frob_section.
4961 (md_convert_frag): If BFD_ASSEMBLER, change type of headers, and
4962 call section_symbol rather than seg_info (seg)->dot.
4963 (md_section_align): Add OBJ_ELF version.
4964 (SWITCH_TABLE_CONS): Define.
4965 (SWITCH_TABLE): Use SWITCH_TABLE_CONS.
4966 (md_apply_fix): Change parameter types if BFD_ASSEMBLER. Only
4967 handle fx_r_type == 0 if not BFD_ASSEMBLER. Return 0 if
4968 BFD_ASSEMBLER.
4969 (struct reloc_map): Define if not BFD_ASSEMBLER.
4970 (coff_reloc_map): Likewise.
4971 (sh_coff_reloc_mangle): Use coff_reloc_map to convert fx_r_type.
4972 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4973 * write.c (write_relocs): Ifdef out fx_where test which triggers
4974 inappropriately for SH ELF.
4975 (write_object_file): Call tc_frob_file_before_adjust and
4976 obj_frob_file_before_adjust if they are defined.
4977
4978 * write.c (write_object_file): Use BFD_RELOC_16, not
4979 BFD_RELOC_NONE, when calling fix_new_exp for a broken word.
4980
4981 * read.c (emit_expr): Fix conversion of byte count to BFD reloc
4982 code.
4983
20dbcd5c
MH
4984Fri Aug 30 14:47:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4985
4986 * config/tc-d10v.c (find_opcode): Fix problem with calculating
4987 branch sizes in across sections.
4988
05631de2
JL
4989Fri Aug 30 00:44:13 1996 Jeffrey A Law (law@cygnus.com)
4990
4991 * config/tc-850.c (md_assemble): Handle hi() correctly. Handle
4992 hi0() too.
4993
4994Wed Aug 28 23:11:08 1996 Jeffrey A Law (law@cygnus.com)
4995
4996 * config/tc-v850.c (md_begin): Deal with end of opcode
4997 table marker.
4998
e592d28f
MH
4999Wed Aug 28 19:20:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5000
5001 * config/tc-d10v.c (find_opcode): Fix a bug which could generate
5002 the wrong opcode for cases like st2w where there are many forms
5003 of the same instruction.
5004
6fce31a6
ILT
5005Tue Aug 27 13:53:22 1996 Ian Lance Taylor <ian@cygnus.com>
5006
5007 * expr.c (operand): If md_parse_name is defined, call it before
5008 calling symbol_find_or_make.
5009 * config/tc-ppc.h (md_parse_name): Define.
5010 (ppc_parse_name): Declare.
5011 * config/tc-ppc.c (reg_name_search): Add regs and regcount
5012 parameters.
5013 (register_name): Update call to reg_name_search.
5014 (cr_operand): New static variable.
5015 (cr_names): New static const array.
5016 (ppc_parse_name): New function.
5017 (md_assemble): If PPC_OPERAND_CR is set in the operand flags, set
5018 cr_operand before calling expression.
5019
a58b037a
JL
5020Tue Aug 27 09:05:50 1996 Jeffrey A Law (law@cygnus.com)
5021
5022 * config/tc-hppa.c (tc_gen_reloc): Add new argument to
5023 hppa_gen_reloc_type call.
5024
3017263b
MH
5025Mon Aug 26 18:24:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5026
5027 * config/tc-d10v.c: Fixed ".word". Fixed problem with range checking
5028 on addresses. Improved error messages.
5029 * doc/c-d10v.texi: Added docs for register pairs.
5030
f9085532
MH
5031Mon Aug 26 13:39:27 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5032
5033 * config/tc-d10v.c (parallel_ok): Fix bug in parallel
5034 checking code.
5035
58275724
ILT
5036Mon Aug 26 14:38:22 1996 Ian Lance Taylor <ian@cygnus.com>
5037
5038 * ecoff.c (init_file): Initialize fMerge to 1.
5039 (add_file): Restore old file merging code, but only merge files if
5040 fMerge is set.
5041 (ecoff_directive_loc): Clear fMerge field of current file.
5042 (ecoff_generate_asm_lineno): Likewise.
5043
b1c28263
MH
5044Fri Aug 23 11:40:47 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5045
5046 * doc/c-d10v.texi: Fix typo.
5047
c9a32d6c
JL
5048Fri Aug 23 10:41:32 1996 Jeffrey A Law (law@cygnus.com)
5049
58275724
ILT
5050 * config/tc-v850.c (md_assemble): Correct bit masking for
5051 hi and lo expressions.
5052
88b47a85
JL
5053 * config/tc-v850.c (md_assemble): Rough cut at demanding
5054 "ep" or "r30" in sst and sld instructions.
5055 (md_apply_fix3): Don't abort. Just warn that we don't
5056 have relocs yet.
5057
c9f1b2d9
JL
5058 * config/tc-v850.c (CC_NAME_CNT): Define.
5059 (cc_name): New function.
5060 (md_assemble): Handle V850_OPERAND_CC correctly.
5061
d5974c57
JL
5062 * config/tc-v850.c (md_assemble): Don't forget to initialize
5063 "insn"!
5064
0e8f9bd1
JL
5065 * config/tc-v850.c (reg_name_search): Generalize to search
5066 any given register table.
5067 (register_name): Pass appropriate table and size to reg_name_search.
5068 (system_register_name): New function.
5069 (SYSREG_NAME_CNT): Define.
5070 (md_assemble): Handle operands which are system registers.
5071
c9a32d6c
JL
5072 * config/tc-v850.c (md_assemble): If we find a register, but the
5073 opcode doesn't want a register, then we don't have a match.
5074 (md_assemble): Get size of the instruction from the opcode table.
5075
eeef602f
ILT
5076Thu Aug 22 10:20:30 1996 Ian Lance Taylor <ian@cygnus.com>
5077
8ee90d35
ILT
5078 * configure.in: Set and substitute HLDENV.
5079 * configure: Rebuild.
5080 * Makefile.in (HLDENV): New variable.
5081 (as.new): Use $(HLDENV).
5082
eeef602f
ILT
5083 * ecoff.c (ecoff_directive_endef): Avoid a division by zero error
5084 if an array dimension is not known.
5085
6be9ec8d
MH
5086Thu Aug 22 10:50:00 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5087
5088 * config/tc-d10v.c: Fix a reloc bug caused by my last change.
5089 * doc/c-d10v.texi: Cleanup.
5090
c6aa56bc
C
5091Tue Aug 20 15:15:16 1996 J.T. Conklin <jtc@hippo.cygnus.com>
5092
5093 * config/tc-v850.c: New file.
5094 * config/tc-v850.h: New file.
5095 * configure (v850-*-elf): New target.
5096 * configure.in (v850-*-elf): New target.
5097
2c2e5626
MH
5098Wed Aug 21 15:50:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5099
5100 * doc/c-d10v.texi: New file.
5101 * doc/all.texi: Added D10V stuff.
5102 * doc/as.texinfo: Added D10V stuff.
5103
ab457c4c
MH
5104Tue Aug 20 14:10:02 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5105
5106 * config/tc-d10v.c: All references to defined symbols should
5107 now use the optimal instruction. .float and .double now work.
5108
d4e1b0be
ILT
5109Mon Aug 19 14:41:36 1996 Ian Lance Taylor <ian@cygnus.com>
5110
5111 * config/obj-coff.c (fixup_segment): Adjust PC relative reloc by
5112 section address for the i960 as is done for the i386.
5113
5114Thu Aug 15 16:37:59 1996 Stan Shebs <shebs@andros.cygnus.com>
5115
5116 * mpw-config.in: Add wildcards for config matching, add mips-*-*
5117 case, forward-include bfd/elf-bfd.h.
5118
b98b04ea
MH
5119Thu Aug 15 13:24:30 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5120
5121 * config/tc-d10v.c: Add additional information to the opcode
5122 table to help determinine which instructions can be done
5123 in parallel.
5124
b98b04ea
MH
5125Thu Aug 15 17:01:31 1996 James G. Smith <jsmith@cygnus.co.uk>
5126
5127 * config/tc-arm.c: Major changes to add Thumb support, with lots
5128 of change input from <rearnsha@armltd.co.uk>.
5129 Reverted to INSN_SIZE macro, rather than insn_size variable.
5130 (insns): Added ARM "bx" instruction support.
5131 (tinsns): Added Thumb instruction definition structure.
5132 (arm_tops_hsh): Added hash structure for Thumb opcodes.
5133 (md_pseudo_table): Added ".arm", ".thumb" and ".code" pseudo-ops.
5134 (opcode_select,s_arm,s_thumb,s_code): Added.
5135 (decode_shift): Allow upper-case RRX.
5136 (do_ldst): Simpler halfword support.
5137 (do_ldmstm): Improved.
5138 (reg_list, do_bx, thumb_reg, thumb_add_sub, thumb_shift,
5139 thumb_mov_compare, thumb_load_store, do_t_arit, do_t_add,
5140 do_t_asr, do_t_branch, do_t_bx, do_t_compare, do_t_ldmstm,
5141 do_t_ldrb, do_t_ldrh, do_t_lds, do_t_lsl, do_t_lsr, do_t_mov,
5142 do_t_push_pop, do_t_str, do_t_strb, do_t_strh, do_t_sub, do_t_swi,
5143 do_t_adr): Added.
5144 (md_apply_fix3): Add support for BFD_RELOC_ARM_THUMB_* relocations.
5145 (md_parse_option): Add support for -mthumb.
5146 (md_show_usage): Updated to reflect new command line option.
5147 (arm_data_in_code, arm_canonicalize_symbol_name): Added.
5148 * config/tc-arm.h: Provide TC_FIX_TYPE to allow private ARM
5149 fragment information to be held.
5150
5151Thu Aug 15 16:12:00 1996 Richard Earnshaw (rearnsha@armltd.co.uk)
5152
5153 * tc-arm.c (md_apply_fix3): Also set fixP->fx_done if fx_addsy is
5154 non-null, but is a constant.
5155 (fix_new_arm): Call make_expr_symbol to make the expression symbol
5156 so that error reporting will work correctly.
5157
126436a8
ILT
5158Wed Aug 14 10:37:21 1996 Ian Lance Taylor <ian@cygnus.com>
5159
5160 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust relocs
5161 against weak symbols.
5162
0e94336e
ILT
5163Tue Aug 13 17:39:24 1996 Ian Lance Taylor <ian@cygnus.com>
5164
5165 * config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
5166 (ppc_force_relocation): Declare if OBJ_XCOFF.
5167 * config/tc-ppc.c (ppc_force_relocation): New function if
5168 OBJ_XCOFF.
5169
817e4f75
ILT
5170Mon Aug 12 16:49:43 1996 Ian Lance Taylor <ian@cygnus.com>
5171
5172 * config/tc-mips.h (BYTE_ORDER): Don't define. No longer used.
5173
f494d503
MH
5174Fri Aug 9 17:48:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5175
5176 * config/tc-d10v.c: Fix problem with relocs.
5177
8d07d2c9
ILT
5178Fri Aug 9 14:16:14 1996 Ian Lance Taylor <ian@cygnus.com>
5179
5180 * config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
5181 with nops if not in data_section or bss_section.
5182
f649d525
ILT
5183Thu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
5184
5185 Add support for openVMS/Alpha.
5186 * as.h (PRINTF_LIKE): Don't define if VMS, for now.
5187 * config/obj-evax.c: New file.
5188 * config/obj-evax.h: New file.
5189 * config/tc-alpha.c: Add support for EVAX format if OBJ_EVAX is
5190 defined.
5191 * config/tc-alpha.h: Add support for EVAX format if OBJ_EVAX is
5192 defined. Add case for bfd_target_evax_flavour.
5193 * config/vms-a-conf.h: New file.
5194 * conf-a-gas.com: New file.
5195 * configure.in: Add target alpha-*-*vms*.
5196 * configure: Rebuild.
5197 * makefile.vms: New file.
5198 * read.c (s_lcomm): Align bss_seg on 8 byte boundary if OBJ_EVAX.
5199 Don't call ffs on openVMS/Alpha.
5200
5cece526
ILT
5201Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
5202
5203 * configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
5204 <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr
5205 and sbrk.
5206 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
5207 (NEED_DECLARATION_SBRK): New macro.
5208 * configure, conf.in: Rebuild.
5209 * as.h: Only include <strings.h> if HAVE_STRINGS_H.
5210 (strstr): Declare if NEED_DECLARATION_STRSTR.
5211 * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
5212
e592f0e6
ILT
5213Wed Aug 7 11:50:26 1996 Ian Lance Taylor <ian@cygnus.com>
5214
d10df990
ILT
5215 * symbols.c (resolve_symbol_value): Handle addition or subtraction
5216 by a constant before entering the main switch. Reject attempts to
5217 apply an arithmetic function to non-absolute symbols, except for
5218 the special case of subtraction of two symbols in the same
5219 section.
5220
cf32394d
ILT
5221 * config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
5222 not to more than a 16 byte boundary.
5223
e592f0e6
ILT
5224 * config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
5225 #ifndef OBJ_ELF lines. From Eric Valette <valette@crf.canon.fr>.
5226 (tc_gen_reloc): If out of memory call as_fatal rather than
5227 assert. If no howto found, call as_bad_where rather than
5228 as_fatal. Change the error message slightly. Set howto to a
5229 non-NULL value in order to keep going.
5230
5d9a99a7
MH
5231Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5232
5233 * config/tc-d10v.c: Added code to support 32-bit fixups for stabs.
5234
6a8e0036
JL
5235Tue Aug 6 11:15:26 1996 Jeffrey A Law (law@cygnus.com)
5236
5237 * config/tc-h8300.c (get_specific): New operand "size" derived
5238 from ".b", ".w" and ".l" extensions. All callers changed. If
5239 the base instruction has no operands, then use the size to
5240 determine which specific instruction to use.
5241
3d7b0c49
ILT
5242Mon Aug 5 14:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
5243
5244 * config/tc-i960.c (mem_fmt): Call parse_expr before emit.
5245
10a14e36
ILT
5246Fri Aug 2 11:23:31 1996 Ian Lance Taylor <ian@cygnus.com>
5247
5248 * config/tc-mips.c (md_section_align): Don't change addr if
5249 OBJ_ELF.
5250
470a679c
JL
5251Thu Aug 1 23:51:52 1996 Jeffrey A Law (law@cygnus.com)
5252
5253 * config/tc-hppa.c: Revert yesterday's changes.
5254
b5cf6779
MH
5255Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5256
5257 * config/tc-d10v.c: Disable range checking on 16-bit values.
5258
159eb3c0
ILT
5259Wed Jul 31 16:27:19 1996 Ian Lance Taylor <ian@cygnus.com>
5260
5261 * config/tc-m68k.c (m68k_ip): Set ok_arch for every instruction,
5262 not just the ones that don't match.
5263
37e05f64
MH
5264Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5265
5266 * config/tc-d10v.c: Fixed bugs in short relocs and range checking.
5267
c479fc62
JSC
5268Wed Jul 31 15:41:42 1996 James G. Smith <jsmith@cygnus.co.uk>
5269
5270 * config/tc-arm.c: Changed INSN_SIZE to variable insn_size, as
5271 pre-cursor to adding Thumb support. Also added cpu_variant flag
5272 information to each of the asm_flg structures.
5273 (md_parse_option): Updated ARM7 parsing to allow 't' for
5274 thumb/halfword support, aswell as 'm' for long multiply.
5275 (md_show_usage): Updated help message.
5276 (md_assemble): Check that instruction flags are applicated to the
5277 current cpu variant.
5278 (md_apply_fix3, tc_gen_reloc): Add BFD_RELOC_ARM_OFFSET_IMM8 and
5279 BFD_RELOC_ARM_HWLITERAL relocation support for new halfword and
5280 signextension instructions.
5281 (do_ldst): Generate halfword and signextension variants if
5282 mnemonic flags match.
5283 (ldst_extend): Do not allow shifts in the offset field of halfword
5284 or signextension instructions.
5285 (validate_offset_imm): Provide check on halfword and signextension
5286 immediate range.
5287 (add_to_lit_pool): Merge identical literal pool values.
5288
448b5aad
JL
5289Tue Jul 30 14:28:23 1996 Jeffrey A Law (law@cygnus.com)
5290
5291 * config/tc-hppa.c (selector_table): Add 'E' selector.
5292 (cons_fix_new_hppa): Don't coke on e_esel.
5293 (tc_gen_reloc, SOM version): Handle R_COMP2 when used
5294 to help generate exception handling tables.
5295 (md_apply_fix): Don't try to apply fixups with an e_esel
5296 selector.
5297 (hppa_fix_adjustable): Fixups with e_esel selectors
5298 are not adjustable.
5299
8dfb05cc
ILT
5300Tue Jul 30 15:51:41 1996 Ian Lance Taylor <ian@cygnus.com>
5301
5302 * config/tc-sparc.c (md_pseudo_table): Add 2byte, 4byte, and 8byte
5303 pseudo-ops.
5304
8544dc03
MH
5305Fri Jul 26 11:43:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5306
5307 * config/tc-d10v.c: Added lots of error checking. Added hacks
5308 to support accumulator shifts.
5309
5ca547dc
ILT
5310Fri Jul 26 11:56:08 1996 Ian Lance Taylor <ian@cygnus.com>
5311
5312 * symbols.c (S_SET_EXTERNAL): Let .weak override.
5313 (S_CLEAR_EXTERNAL): Likewise.
5314 (S_SET_WEAK): Remove error; just let .weak override.
5315
35ad20a1
MH
5316Thu Jul 25 15:22:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5317
5318 * config/tc-d10v.c (md_assemble): Now handles multiline
5319 instructions.
5320
7c096652
MH
5321Thu Jul 25 12:03:33 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5322
5323 * config/tc-d10v.c: Fix packaging bug. Added range checking.
5324 Added kludge for divs instruction. Fixed minor problem with
5325 multiple text sections.
35ad20a1
MH
5326 * config/tc-d10v.h (d10v_cleanup): Change prototype.
5327
93050391
MH
5328Tue Jul 23 10:49:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5329
5330 * config/tc-d10v.c (md_apply_fix3): Fix all instruction
5331 addresses to be right-shifted by 2.
5332
0ef32559
MH
5333Mon Jul 22 11:32:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5334
5335 * config/tc-d10v.c: Many changes to get relocs working.
5336 (register_name): No longer creates a symbol for register names.
5337 (pre_defined_registers): moved to opcodes/d10v-opc.c.
5338 (d10v_insert_operand): Now works correctly for either container.
5339 * config/tc-d10v.h (d10v_cleanup): Declare.
5340
97aca1bc
ILT
5341Mon Jul 22 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
5342
5343 * config/tc-mips.c (tc_gen_reloc): BFD_RELOC_PCREL_HI16_S and
5344 BFD_RELOC_PCREL_LO16 are expected to be PC relative.
5345
6543a7fb
ILT
5346Mon Jul 22 12:46:55 1996 Richard Henderson <rth@tamu.edu>
5347
5348 * tc-alpha.c: Patches to track current minimum alignment to reduce
5349 the number of fragments created with frag_align.
5350 (alpha_current_align): New static variable.
5351 (s_alpha_text): Reset alignment to 0.
5352 (s_alpha_data, s_alpha_rdata, s_alpha_sdata): Likewise.
5353 (s_alpha_stringer, s_alpha_space): New functions.
5354 (s_alpha_cons, alpha_flush_pending_output): Remove functions.
5355 (alpha_cons_align): New function to replace both of them.
5356 (emit_insn): Only align if alpha_current_align is less than 2;
5357 reset alpha_current_align to 2.
5358 (s_alpha_gprel32): Likewise.
5359 (s_alpha_section): New function. Basically duplicate the other
5360 alpha section change hooks. Only define for ELF.
5361 (s_alpha_float_cons): Simplify alignment handling.
5362 (md_pseudo_table): Only define "rdata" and "sdata" if OBJ_ECOFF.
5363 If OBJ_ELF, define "section", "section.s", "sect", and "sect.s".
5364 Don't define the s_alpha_cons pseudo-ops. Do define
5365 s_alpha_stringer and s_alpha_space pseudo-ops.
5366 (alpha_align): Skip if less than current default alignment. Set
5367 default alignment.
5368 * tc-alpha.h (md_flush_pending_output): Remove.
5369 (md_cons_align): Add.
5370
5371 * tc-alpha.c: Add oodles of function description comments.
5372 (md_bignum_to_chars): Remove; there are no callers.
5373 (md_show_usage): Mention some more variants.
5374
091221ce
ILT
5375Thu Jul 18 15:54:54 1996 Ian Lance Taylor <ian@cygnus.com>
5376
0b27ea39
ILT
5377 From Andrew Gierth <ANDREWG@microlise.co.uk>:
5378 * configure.in (sparc-*-sysv4*): New target.
5379 * configure: Rebuild.
5380
8dd07a84
ILT
5381 * config/tc-sparc.c (md_pseudo_table): Change uahalf, uaword, and
5382 uaxword to use s_uacons.
5383 (sparc_no_align_cons): New static variable.
5384 (s_uacons): New static function.
5385 (sparc_cons_align): If sparc_no_align_cons is set, just clear it
5386 and return.
5387
5388 * config/tc-sparc.c (s_common): Remove unused label allocate_bss.
5389
cbe7dccb
ILT
5390 * configure.in: Add mips-*-irix6* target. Handle Irix 6 like Irix
5391 5 with regard to shared libraries.
5392 * configure: Rebuild.
5393
091221ce
ILT
5394 * config/tc-m68k.c (m68k_ip): Use the correct length when
5395 allocating space for the unsupported architecture error message.
5396
05a8bf33
MM
5397Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5398
5399 * configure.in (d10v-*-*): Allow d10v-*-*, don't require d10v-*-elf*.
5400
5401Wed Jul 17 14:25:13 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
7be9a312
MH
5402
5403 * config/tc-d10v.c: New file.
5404 * config/tc-d10v.h: New file.
5405 * configure (d10v-*-elf): New target.
5406 * configure.in (d10v-*-elf): New target.
7be9a312 5407
10c9620d
MM
5408Fri Jul 12 20:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5409
5410 * config/tc-ppc.c (md_parse_option): Recognize -K PIC.
5411
0ee09671
ILT
5412Wed Jul 10 12:39:08 1996 Richard Henderson <rth@tamu.edu>
5413
5414 * config/tc-alpha.c (alpha_align): Change fill parameter
5415 to a pointer. Take NULL as 0 or nop depending on section. Change
5416 all callers.
5417 (s_alpha_align): Rename local variables.
5418
5419 * doc/as.texinfo (.align): Document action of omitted
5420 fill parameter.
5421
3128726c
ILT
5422Wed Jul 10 00:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
5423
5424 * config/tc-ppc.c (md_apply_fix3): Give a useful error message
5425 when an unsupported PC relative reloc is seen, rather than calling
5426 abort.
5427
5428 * app.c (do_scrub_chars): Remove not_cpp_line local variable.
5429 Instead, check state when '#' comment is seen.
5430
7f003b7f
ILT
5431Mon Jul 8 14:11:49 1996 Ian Lance Taylor <ian@cygnus.com>
5432
a8aed9dd
ILT
5433 * config/tc-mips.c (mips_regmask_frag): Only define if OBJ_ELF or
5434 OBJ_MAYBE_ELF.
5435 (tc_gen_reloc): If fixup was changed to be PC relative, change
5436 reloc type accordingly. Use name of reloc in error message.
5437
a5a78175
ILT
5438 * as.h: Don't define const or volatile.
5439 * flonum.h: Don't define const.
5440
7f003b7f
ILT
5441 * config/tc-m68k.c (tc_gen_reloc): Change the code appropriately
5442 if fx_pcrel is set. Correct setting the addend case in the
5443 OBJ_ELF case (from Andreas Schwab
5444 <schwab@issan.informatik.uni-dortmund.de>).
5445 (md_show_usage): Correct -mfc5200 to -m5200.
5446
8d20a0a8
C
5447Fri Jul 5 10:32:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5448
910d7df2
C
5449 * doc/c-m68k.texi: Document -m5200 flag.
5450 * doc/as.texinfo: Likewise.
5451
8d20a0a8
C
5452 * config/tc-m68k.c (m68k_ip): The coldfire does not support 8x
5453 scale factor.
5454
c0b34702
ILT
5455Fri Jul 5 11:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
5456
5457 * symbols.c (S_SET_EXTERNAL): Change as_warn to as_bad.
5458 (S_CLEAR_EXTERNAL, S_SET_WEAK): Likewise.
5459
45c85bcb
ILT
5460Thu Jul 4 11:59:46 1996 Ian Lance Taylor <ian@cygnus.com>
5461
6624477c
ILT
5462 * Makefile.in (VERSION): Set to cygnus-2.7.1.
5463
45c85bcb
ILT
5464 * Released binutils 2.7.
5465
fc636a52
JSC
5466Thu Jul 4 10:11:33 1996 James G. Smith <jsmith@cygnus.co.uk>
5467
5468 * config/tc-mips.c (mips_ip): Only perform range check when
5469 dealing with O_constant expressions.
5470
d41d2ccc
C
5471Wed Jul 3 15:02:21 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5472
5473 * m68k-parse.h (m68k_register): Add new coldfile control
5474 registers.
5475
5476 * config/tc-m68k.c (mcf5200_control_regs): New variable,
5477 array of control registers for the coldfire.
5478 (cpu_of_arch): Added mcf5200.
5479 (archs): Added mcf5200.
5480 (init_table): Add new control registers.
5481 (m68k_ip): Added support for new control registers.
5482 (m68k_init_after_args): Likewise.
5483
5484 * config/tc-m68k.c (md_show_usage): Add -m5200 to usage text.
5485
5af96dce
ILT
5486Wed Jul 3 16:05:50 1996 Ian Lance Taylor <ian@cygnus.com>
5487
c5d8f96e
ILT
5488 * read.h (is_it_end_of_statement): Declare.
5489 * read.c (is_it_end_of_statement): Remove declaration.
5490
5491 * config/tc-ppc.c (ppc_elf_suffix): Correct parenthesization of ||
5492 within &&.
5493 (md_assemble): Fix handling of @l with an unsigned constant. Add
5494 default case to reloc switch.
5495
ac76c7e9
ILT
5496 * config/tc-i386.h (AOUT_MACHTYPE): Define as 0 if TE_386BSD.
5497
5af96dce
ILT
5498 Based on patches from Tom Quiggle <quiggle@sgi.com>:
5499 * ecoff.c (last_lineno): New static variable.
5500 (add_procedure): Set last_lineno.
5501 (ecoff_directive_loc): Likewise.
5502 (ecoff_generate_asm_lineno): Likewise.
5503 (ecoff_fix_loc): New function.
5504 * ecoff.h (ecoff_fix_loc): Declare.
5505 * config/tc-mips.c (append_insn): When inserting nops, and using
5506 ECOFF debugging, call ecoff_fix_loc.
5507
b9bddc84
JL
5508Tue Jul 2 23:02:12 1996 Jeffrey A Law (law@cygnus.com)
5509
5510 * config/tc-h8300.c (build_bytes): If an operand type is
5511 marked as SRC_IN_DST retrieve it from the "destination" op.
5512
379c2fb4
ILT
5513Sat Jun 29 13:38:31 1996 Ian Lance Taylor <ian@cygnus.com>
5514
69c1de90
ILT
5515 * configure.in (arm-*-riscix*): Set emulation to riscix.
5516 * configure: Rebuild.
5517 * config/te-riscix.h: New file to define TE_RISCIX.
5518
379c2fb4
ILT
5519 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Define.
5520
5521Fri Jun 28 15:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
5522
5523 * Makefile.in (config.status): Just run config.status as other
5524 tools do.
5525
c611cd82
SS
5526Fri Jun 28 11:09:38 1996 Stan Shebs <shebs@andros.cygnus.com>
5527
5528 * mpw-config.in (TARGET_OS): Add definition to conf.
5529
fbf011f2
ILT
5530Thu Jun 27 20:39:40 1996 James G. Smith <jsmith@cygnus.co.uk>
5531
5532 * config/tc-mips.c (append_insn): Parenthesize
5533 cop_interlocks expressions.
5534
5535Thu Jun 27 12:18:26 1996 Ian Lance Taylor <ian@cygnus.com>
5536
5537 * listing.c (listing_print): Close the listing file if it is not
5538 stdout. Close the other files opened for the listing.
681dbbc0
ILT
5539
5540 * config/tc-sparc.h (md_cons_align): Define.
5541 (sparc_cons_align): Declare.
5542 (HANDLE_ALIGN): Define.
5543 (sparc_handle_align): Declare.
5544 * config/tc-sparc.c (sparc_cons_align): New function.
5545 (sparc_handle_align): New function.
5546 * read.c (cons_worker): Call md_cons_align if it is defined.
5547
5548 * as.h (struct frag): Add fr_file and fr_line fields.
5549 * frags.c (frag_new): Set fr_file and fr_line.
5550 (frag_var): Likewise.
5551 (frag_variant): Likewise.
5552
7e027ce6
ILT
5553 * as.h (struct frag): Remove unused align_mask and align_offset
5554 fields.
5555
f9b990cd
ILT
5556 * listing.c (calc_hex): Offset by fr_fix when examining fr_var.
5557 From <uddeborg@carmen.se>.
5558
9b4b98bd
ILT
5559Wed Jun 26 13:21:34 1996 Ian Lance Taylor <ian@cygnus.com>
5560
67b48b58
ILT
5561 * configure.in (mips-*-osf*): New target.
5562 * configure: Rebuild.
5563
9b4b98bd
ILT
5564 * config/tc-m68k.c: Add 68ec060 as a synonym for 68060.
5565
344a8d61
JSC
5566Wed Jun 26 16:23:08 1996 James G. Smith <jsmith@cygnus.co.uk>
5567
5568 * config/tc-mips.c: Added cop_interlocks, to avoid NOP insertion
5569 between co-processor comparisons and branches for the VR4300.
5570
1c94de4d
JM
5571Mon Jun 24 18:02:50 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
5572
5573 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
5574 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
5575 (docdir): Removed.
5576 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
5577 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
5578 includedir): Use autoconf set values.
5579 (docdir): Removed.
5580
b290fd25
ILT
5581Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
5582
1c94de4d
JM
5583 * listing.c (listing_eject): Don't do anything if listing is 0.
5584 (listing_list): Likewise.
5585 (listing_source_line): Likewise.
5586 (listing_title): Don't save title if listing is 0.
5587 (listing_source_file): Check listing rather than listing_tail.
5588
b290fd25
ILT
5589 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
5590 using shared libraries.
5591 * configure: Rebuild.
5592
5593Fri Jun 21 18:22:23 1996 Ian Lance Taylor <ian@cygnus.com>
5594
5595 * config/tc-mips.c (mips_ip): In case 'i'/'j', don't require an
5596 absolute expression if a relocation type was specified.
5597
644edced
ILT
5598Fri Jun 21 17:40:16 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
5599
5600 * configure.in: Add support for *-*-rtems* configurations.
5601 * configure: Rebuild.
5602
df586de2
ILT
5603Fri Jun 21 16:01:18 1996 Richard Henderson <rth@tamu.edu>
5604
5605 * configure.in: Add alpha-*-linuxecoff* target. Use elf for
5606 alpha-*-linux* target. Force bfd_gas for alpha-*. Require
5607 opcodes library for alpha.
5608 * configure: Rebuild with autoconf 2.10.
5609 * config/tc-alpha.c: Substantial rewrite to add ELF support and
5610 use new opcode table.
5611 * config/tc-alpha.h (md_undefined_symbol): Don't define.
5612 (LOCAL_LABEL): Define differently if OBJ_ELF.
5613 (FAKE_LABEL_NAME): Define if OBJ_ELF.
5614 * config/alpha-opcode.h: Remove.
5615 * config/obj-elf.h: If TC_ALPHA, define ECOFF_DEBUGGING.
5616 * Makefile.in (TARG_CPU_DEP_alpha): Depend upon
5617 include/opcode/alpha.h rather than config/alpha-opcode.h.
5618
7ca8e36e
ILT
5619Thu Jun 20 19:10:28 1996 Ian Lance Taylor <ian@cygnus.com>
5620
edec3111
ILT
5621 * config/obj-aout.c (obj_emit_relocations): Give an error if the
5622 relocation symbol was not resolved.
5623 * config/obj-coff.c (do_relocs_for): Likewise.
5624
7ca8e36e
ILT
5625 * write.c (adjust_reloc_syms): Refetch the symbol section after
5626 calling S_GET_VALUE, since it may have changed.
5627
5628 * expr.c (struct expr_symbol_line): Define.
5629 (expr_symbol_lines): New static variable.
5630 (make_expr_symbol): Add entry to expr_symbol_lines.
5631 (expr_symbol_where): New function.
5632 * expr.h: Use extern on function declarations.
5633 (expr_symbol_where): Declare.
5634 * symbols.c (resolve_symbol_value): Try to use expr_symbol_where
5635 rather than printing the meaningless name of an expression
5636 symbol.
5637
214f540d
KR
5638Thu Jun 20 15:57:41 1996 Ken Raeburn <raeburn@cygnus.com>
5639
5640 * config/tc-i386.c (md_number_to_chars): Deleted.
5641 * config/tc-i386.h (md_number_to_chars): New macro.
5642
5643 * config/tc-alpha.c (build_operate_n, build_mem): Moved earlier in
5644 the file.
5645 (load_symbol_address, load_expression): Use build_mem.
5646 (build_operate): New function.
5647 (emit_addq_r): Use it.
5648
5649 Wed Mar 13 22:14:14 1996 Pat Rankin <rankin@eql.caltech.edu>
5650
5651 * symbols.c (colon): #if VMS, use S_SET_OTHER to store `const_flag'.
5652
5653 Tue Mar 5 14:31:45 1996 Pat Rankin <rankin@eql.caltech.edu>
5654
5655 * config/tc-vax.h (NOP_OPCODE): Define.
5656
5657 Sun Feb 4 21:01:03 1996 Pat Rankin <rankin@eql.caltech.edu>
5658
5659 * config/obj-vms.h (S_IS_COMMON): Define.
5660 (S_IS_LOCAL): Check for \002 as well as \001.
5661 (LONGWORD_ALIGNMENT): New macro.
5662 (SUB_SEGMENT_ALIGN): Use it.
5663
5664 Fri Jan 26 17:44:09 1996 Pat Rankin <rankin@eql.caltech.edu>
5665
5666 * config/vms-conf.h: Reconcile with conf.in.
5667
7b9b1eb2
ILT
5668Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
5669
793f9558
ILT
5670 * write.c (is_dnrange): Only define if TC_GENERIC_RELAX_TABLE is
5671 defined.
5672
84577dde
ILT
5673 * doc/as.texinfo: Document that any number of hex digits can
5674 follow \x.
5675
0d6cae1e
ILT
5676 * as.c (struct defsym_list): Define.
5677 (defsyms): New static variable.
5678 (parse_args): Just put --defsym arguments on defsyms list, rather
5679 than defining them.
5680 (main): Define defsyms after output file is created.
5681
6e3f7f1b
ILT
5682 * config/tc-m68k.c (m68k_ip): Reject PRE and POST indexing mode on
5683 cpu32. From Eric Norum <Eric.Norum@usask.ca>.
5684
8095b665
ILT
5685 * config/tc-mips.c (mips_ip): In cases 'I', 'i', and 'j', set
5686 insn_error rather than calling check_absolute_expr.
5687
5688 * as.c (emulation_name): Remove unused static variable.
5689 (default_emul_bfd_name): Add return NULL to avoid warning.
5690 * ecoff.c (ecoff_stab): Remove unused variables name and
5691 name_end.
5692 * frags.c (frag_new): Remove unused variable tmp.
5693 * hash.c (hash_grow): Parenthesize + within <<.
5694 (hash_print_statistics): Use %lu, not %d, to print unsigned
5695 long variables.
5696 * messages.c: Include "libiberty.h".
5697 (fprint_value): Add cast to avoid printf warning.
5698 (sprint_value): Likewise.
5699 * read.c: Include "ecoff.h".
5700 (emit_expr): Add casts to avoid printf warnings.
5701 * read.h: Use extern for function declarations.
5702 (pop_insert): Declare.
5703 * stabs.c: Include "ecoff.h".
5704 * subsegs.c (subseg_set_rest): Remove unused variables tmp,
5705 former_last_fragP, and new_fragP.
5706 * subsegs.h (subsegs_print_statistics): Declare.
5707 * symbols.c (debug_verify_symchain): Change macro to discard
5708 arguments.
5709 * write.c (dump_section_relocs): Likewise.
5710 * write.h: Use extern for function declarations.
5711 (write_print_statistics): Declare.
5712 * config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
5713 warning.
5714 * config/e-mipself.c (mipself_bfd_name): Likewise.
5715 * config/obj-elf.h (elf_ecoff_set_ext): Declare.
5716
9ee759fc
ILT
5717 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): If OBJ_ELF, always
5718 emit relocations against external symbols.
5719
faa3f539
ILT
5720 * config/tc-alpha.c (tc_gen_reloc): Output a sensible error
5721 message if bfd_reloc_type_lookup fails, rather than calling
5722 assert.
5723
7b9b1eb2
ILT
5724 * config/tc-alpha.c (alpha_force_relocation): Add
5725 BFD_RELOC_12_PCREL to switch.
5726
5727Tue Jun 18 20:29:57 1996 Doug Evans <dje@canuck.cygnus.com>
5728
5729 * config/tc-i386.h (LOCAL_LABEL,FAKE_LABEL_NAME): Use defaults for
5730 TE_PE (Lfoo, not .Lfoo).
5731
d9453233
ILT
5732Tue Jun 18 17:13:33 1996 Ian Lance Taylor <ian@cygnus.com>
5733
24b018ee
ILT
5734 * read.c (s_fill): Don't warn about a zero repeat count.
5735
c674dcaa
ILT
5736 * config/tc-mips.c (mips_ip): Don't warn about using AT as a
5737 coprocessor register.
5738
d9453233
ILT
5739 * config/tc-i386.c (md_assemble): When checking the size of a
5740 register to set the size of an instruction, do a bitwise and with
5741 Reg8 and Reg16 rather than requiring the type to be exactly Reg8
5742 or Reg16.
5743
3d0afe12
JL
5744Tue Jun 18 13:19:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5745
5746 * config/tc-h8300.c (parse_reg): Tweak error messages.
5747 (build_bytes): Likewise.
5748 (skip_colonthing): Handle :32 suffix.
5749 (get_specific): Promote L_24 to L_32 if it makes a match.
5750 Don't always promote L_8 to L_16.
5751 (do_a_fix_imm): Clean up L_32 and L_24 handling.
5752
3d0afe12
JL
5753 * config/tc-h8300.c (Smode): New variable.
5754 (h8300hmode): Turn off Hmode.
5755 (h8300smode): New function. Turn on Smode and Hmode.
5756 (md_pseudo_table): New ".h8300s" pseudo-op.
5757 (parse_reg): Handle "exr" register.
5758 (get_operand): Handle bizarre syntax for "stm.l" and "ldm.l".
5759 Handle "mach" and "machl" operands for ldmac.
5760 (get_specific): Handle "stm.l" and "ldm.l".
5761 (build_bytes): Handle "stm.l" and "ldm.l"; handle MACREG operands.
5762 * config/tc-h8300.h (COFF_MAGIC): Handle H8/S magic number.
5763 (Smode): Declare.
5764
370181a2
C
5765Mon Jun 17 15:50:53 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5766
5767 * doc/as.texinfo: Reorder chapter of machine dependent options so
5768 that it is sorted by chip name.
5769
5770 * doc/as.texinfo: Use consistant spelling of Vax.
5771 * doc/c-vax.texi: Likewise.
5772
02d4dd87
JL
5773Mon Jun 17 11:26:56 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5774
5775 * config/tc-hppa.c (md_pseudo_table): Add ".begin_try" and ".end_try"
5776 pseudo ops.
5777 (tc_gen_reloc, SOM version): Handle R_BEGIN_TRY and R_END_TRY.
5778 (md_apply_fix): Likewise.
5779 (pa_try): New function.
5780 (hppa_force_relocation): Force relocs for BEGIN_TRY and END_TRY.
5781
b81231b7
JL
5782Sun Jun 16 22:57:47 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5783
5784 * config/tc-hppa.c (md_pseudo_table): Add ".level" pseudo op.
5785 (pa_level): New function.
5786
fe8d0ff3
ILT
5787Fri Jun 14 20:06:44 1996 Ian Lance Taylor <ian@cygnus.com>
5788
5789 * listing.c (listing_newline): Don't do anything if listing is 0.
5790
5791Thu Jun 13 17:50:54 1996 Ian Lance Taylor <ian@cygnus.com>
5792
5793 * subsegs.c (section_symbol): If symbol_table_frozen is set, call
5794 symbol_create, not symbol_new.
5795
9bec2a42
ILT
5796Wed Jun 12 14:10:44 1996 Ian Lance Taylor <ian@cygnus.com>
5797
5798 * write.c (adjust_reloc_syms): Don't set sy_used_in_reloc for an
5799 absolute symbol unless TC_FORCE_RELOCATION returns true.
5800
5801 * config/obj-coff.c (previous_file_symbol): Remove BFD_ASSEMBLER
5802 version.
5803 (c_dot_file_symbol): BFD_ASSEMBLER version: Don't set the value of
5804 the symbol to a pointer. Don't set previous_file_symbol.
5805 Simplify symbol list rearrangement.
5806 (coff_frob_symbol): Don't do anything with C_FILE symbols.
5807 (coff_adjust_symtab): Don't check previous_file_symbol.
5808
c992cf9b
MM
5809Mon Jun 10 14:52:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5810
5811 * config/tc-ppc.c (ppc_elf_lcomm): New function for .lcomm
5812 directive.
5813 (md_pseudo_table): Add ppc_elf_lcomm.
5814
1ba76615 5815Mon Jun 10 11:45:51 1996 Ian Lance Taylor <ian@cygnus.com>
92e61d31
ILT
5816
5817 * config/tc-m68k.c (m68k_ip): Accept ABSL for 'O', so that `bfextu
5818 d0{24:1},d0' works without an immediate prefix on the bit numbers.
5819 (md_begin): Add digits to alt_notend_table.
5820 (md_parse_option): Make s a const pointer.
1ba76615 5821
b91e85c2
ILT
5822 * config/tc-sparc.c (md_pseudo_table): Add "empty".
5823 (s_empty): New static function.
5824
e789e620
ILT
5825 * config/obj-coff.c (struct filename_list): Only define if not
5826 BFD_ASSEMBLER.
5827 (filename_list_head, filename_list_tail): Likewise.
5828 (c_section_symbol): Remove unused BFD_ASSEMBLER version.
5829 (obj_coff_endef, BFD_ASSEMBLER version): Don't set the debugging
5830 flag for C_MOS, C_MOE, C_MOU, or C_EOS symbols, since they should
5831 have a section of N_ABS rather than N_DEBUG. If we do a merge,
5832 remove the new symbol from the list.
5833 (obj_coff_endef, both versions): Call tag_insert even if there is
5834 an old symbol with the same name, if the old symbol does not
5835 happen to be a tag.
5836 (coff_frob_symbol): Check SF_GET_TAG, C_EOF, and C_FILE outside of
5837 the SF_GET_DEBUG condition. Don't call SA_SET_SYM_ENDNDX with a
5838 symbol that will be moved to the end of the symbol list.
5839 (coff_adjust_section_syms): Always call section_symbol for .text,
5840 .data, and .bss.
5841 (coff_frob_section): Likewise. Also, remove unused variable
5842 strname.
5843
0670452e
ILT
5844 * config/tc-ns32k.c (convert_iif): Call frag_grow rather than
5845 manipulating frags directly.
5846 (md_number_to_field): Adjust mem_ptr correctly if ENDIAN is
5847 defined.
5848
41822c41
ILT
5849 * app.c (do_scrub_chars): If '/' is LINE_COMMENT_START, check
5850 whether the next character is '*' before checking whether we are
5851 at the start of a line. Permit LINE_COMMENT_START to start a
5852 comment in state 1 (seen some whitespace) as well, to match the
5853 documentation.
5854
1ba76615
ILT
5855 * gasp.c (do_align): Permit a fill value for .align.
5856
ed381b67
JW
5857Wed Jun 5 17:09:26 1996 Ian Lance Taylor <ian@cygnus.com>
5858
5859 * read.c (next_char_of_string): Warn if a newline is seen in the
5860 middle of a string. Call bump_line_counters when appropriate.
5861
5862Wed Jun 5 17:08:36 1996 Richard Henderson <rth@tamu.edu>
5863
5864 * symbols.c (colon): Use LOCAL_LABEL.
5865
2c7aeec6
TT
5866Tue Jun 4 10:55:16 1996 Tom Tromey <tromey@csk3.cygnus.com>
5867
5868 * Makefile.in (install): Don't check to see if tooldir exists.
5869 Make $(tooldir) and $(tooldir)/bin.
5870
527b8324
MM
5871Tue Jun 4 10:14:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5872
5873 * config/ppc-sol.mt (TDEFINES): Don't turn on -mregnames by
5874 default.
5875
3b426f5a
ILT
5876Mon Jun 3 11:34:41 1996 Ian Lance Taylor <ian@cygnus.com>
5877
5878 * config/tc-mips.c (mips_ip): Don't call as_warn if we are setting
5879 insn_error. Don't put the string "ERROR" in insn_error. Set
5880 insn_error rather than calling as_warn for an unsupported opcode.
5881
9c44af60
ILT
5882Sat Jun 1 21:51:55 1996 Ian Lance Taylor <ian@cygnus.com>
5883
5884 * config/tc-mips.c (md_parse_option): Check for a 64 bit format
5885 before permitting -64.
5886 * output-file.c (output_file_create): Remove duplicate
5887 bfd_perror.
5888
98bfd087
ILT
5889Fri May 31 01:08:06 1996 Ian Lance Taylor <ian@cygnus.com>
5890
87178180
ILT
5891 * config/tc-mips.c (md_begin): If -64, create a .MIPS.options
5892 section rather than a .reginfo section.
5893 (mips_elf_final_processing): If -64, write out 64 bit RegInfo
5894 information.
5895
98bfd087
ILT
5896 * config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
5897 bit value with the high bit set.
5898
b95bee13
ILT
5899Thu May 30 19:00:19 1996 Ian Lance Taylor <ian@cygnus.com>
5900
5901 * read.c (s_lcomm): Set section flags for .sbss section.
5902
5903 * config/tc-mips.c (mips_64): New static variable.
5904 (mips_target_format): If mips_64, return elf64 targets rather than
5905 elf32 ones.
5906 (md_longopts): Add "32" and "64".
5907 (md_parse_option): Handle -32 and -64.
5908 (md_show_usage): Mention -32 and -64.
5909 (cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
5910 a 4 byte one.
5911
1facd5f0
MM
5912Thu May 30 10:36:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5913
98bfd087
ILT
5914 * config/tc-ppc.c (comment_chars): Make '!' a comment character
5915 for Solaris compatibility.
d0e1c803 5916
1facd5f0
MM
5917 * stabs.c (s_stab_generic): Under PowerPC Solaris, convert a
5918 .stabd with 4 arguments into a .stabn.
5919
a40aee38
ILT
5920Wed May 29 16:43:16 1996 Ian Lance Taylor <ian@cygnus.com>
5921
5922 * config/tc-mips.c (macro): When passing X_add_number to
5923 macro_build, cast it to int first.
5924
943bdfdc
ILT
5925Tue May 28 13:29:39 1996 Ian Lance Taylor <ian@cygnus.com>
5926
54388b85
ILT
5927 * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as
5928 created by emit_expr.
5929
943bdfdc
ILT
5930 * symbols.c (symbol_create): If bfd_make_empty_symbol fails, call
5931 as_perror rather than assert.
5932
9b61d62b
ILT
5933Fri May 24 18:24:11 1996 Ian Lance Taylor <ian@cygnus.com>
5934
5935 * config/tc-mips.c (mips_ip): Mark sections created to hold
5936 floating point information as read only.
5937
e30c0076
MM
5938Fri May 24 12:07:54 1996 David Edelsohn <edelsohn@mhpcc.edu>
5939
5940 * config/tc-ppc.c (ppc_set_cpu): Change defaults to match AIX.
5941
63cafcef
MM
5942Thu May 23 17:34:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5943
adeab39b
MM
5944 * read.c (potable): Add .skip as a synonym for .space.
5945
63cafcef
MM
5946 * stabs.c (s_stab_generic): For PowerPC ELF, allow .stabd to take
5947 4 arguments, providing the 4th argument is 0, to allow
5948 compatibility with the Solaris assembler.
5949
5950Thu May 16 15:51:48 1996 Ian Lance Taylor <ian@cygnus.com>
5951
5952 * config/tc-sh.h (struct sh_segment_info_type): Define.
5953 (TC_SEGMENT_INFO_TYPE): Define.
5954 (sh_frob_label): Declare.
5955 (tc_frob_label): Define.
5956 (sh_flush_pending_output): Declare.
5957 (md_flush_pending_output): Define.
5958 * config/tc-sh.c (md_assemble): If relaxing, emit a R_SH_CODE
5959 reloc before the instruction if necessary.
5960 (sh_frob_label): New function.
5961 (sh_flush_pending_output): New function.
5962 (sh_coff_frob_file): Ignore ALIGN, CODE, DATA, and LABEL relocs
5963 when looking for the reloc for the target of .uses.
5964 (md_convert_frag): Fix printf format (%0xlx to 0x%lx).
5965 (sh_force_relocation): Force CODE, DATA, and LABEL relocs to be
5966 emitted.
5967 (md_apply_fix): Ignore CODE, DATA, and LABEL relocs.
5968 (sh_coff_reloc_mangle): Force CODE, DATA, and LABEL relocs to use
5969 the absolute symbol.
5970
5971 * subsegs.h (segment_info_type): Add tc_segment_info_data field if
5972 TC_SEGMENT_INFO_TYPE is defined.
5973
3ea36b53
ILT
5974Wed May 15 12:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
5975
5976 * config/tc-i386.c (md_assemble): Make sure the opcode suffix
5977 matches the register size.
5978
ecb9b1ca
JL
5979Wed May 15 08:33:37 1996 Jeffrey A Law (law@cygnus.com)
5980
5981 * config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
5982 fx_done set.
5983 (do_relocs_for): Likewise.
5984 (fixup_segment): Don't just quit if linkrelax is set. Try to
5985 apply non pc-relative sym1-sym2 fixups, even if linkrelax is
5986 nonzero.
5987
f122568e
MM
5988Fri May 10 14:16:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5989
5990 * config/tc-ppc.c (ppc_elf_validate_fix): Allow GOT and section
5991 relative relocations with -mrelocatable. Also allow unfixed
5992 relocs in .ex_shared.
5993
6648d3ae
ILT
5994Tue May 7 11:24:10 1996 Ian Lance Taylor <ian@cygnus.com>
5995
5996 * config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
5997 non-zero before assuming this is a long file name.
5998 (w_strings): Likewise.
5999 (c_dot_file_symbol): Set FNAME_OFFSET to 1 for a long file name.
6000
6001 * config/obj-coff.c (w_strings): Move declaration of i inside
6002 #ifdef block which uses it.
6003
c47fc401
JL
6004Tue May 7 00:49:58 1996 Jeffrey A Law (law@cygnus.com)
6005
6006 * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
6007 "relaxmode". Output relocs which identify various relaxing
6008 possibilities for mov.[bwl] instructions.
6009 (build_bytes): Pass in a relaxing mode to do_a_fix_imm.
6010
9ea82743
DE
6011Mon May 6 15:26:28 1996 Doug Evans <dje@canuck.cygnus.com>
6012
6013 * config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
6014 (MD_APPLY_FIX3): Define.
6015 * config/tc-arm.c (my_get_expression): Only watch for bad segments
6016 if OBJ_AOUT.
6017 (md_apply_fix3): Renamed from md_apply_fix.
6018 If pcrel reloc and symbol is in different section, undo effects
6019 of md_pcrel_from.
6020
ab7db73b
JL
6021Sat May 4 12:49:35 1996 Jeffrey A Law (law@cygnus.com)
6022
6023 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
6024 any reloc with an LR% or RR% field selector for SOM.
6025
c9324fcd
ILT
6026Sat May 4 11:26:19 1996 Ian Lance Taylor <ian@cygnus.com>
6027
6028 * Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
6029 variables.
6030
d4d7d98c
ILT
6031Fri May 3 17:58:31 1996 Ian Lance Taylor <ian@cygnus.com>
6032
6033 * config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
6034 SF_GET_STATICS set.
6035 (yank_symbols): Likewise.
6036
8fe2ec52
ILT
6037Wed May 1 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
6038
7681eb9d
ILT
6039 * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
6040 BFD_ASSEMBLER, add name field.
ba97ba7e
ILT
6041 * config/obj-coff.c: Include "libiberty.h".
6042 (coff_header_append): Handle long section names.
7681eb9d
ILT
6043 (crawl_symbols): Just use the name field for the symbol name,
6044 without worrying about null byte termination.
6045 (w_strings): Handle long section names.
6046 (write_object_file): Likewise. Also, use the name field, rather
6047 than scnhdr.s_name.
6048 (obj_coff_add_segment): Permit long section names.
6049 (obj_coff_init_stab_section): Use the name field, rather than
6050 scnhdr.s_name.
6051 (adjust_stab_section): Likewise.
6052 * config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.
6053
8fe2ec52
ILT
6054 * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
6055 (mem_fmt): Likewise.
6056 (md_apply_fix): Don't check fx_im_disp field.
6057
556829bc
ILT
6058Thu Apr 25 11:39:51 1996 Ian Lance Taylor <ian@cygnus.com>
6059
f9e36fc6
ILT
6060 * configure.in: Add * after sparc*-*-vxworks.
6061 * configure: Rebuild.
6062
556829bc
ILT
6063 * app.c (do_scrub_begin): If tc_comment_chars is not defined,
6064 define it to comment_chars. Use tc_comment_chars rather than
6065 comment_chars.
6066 (do_scrub_chars): Use tc_comment_chars rather than comment_chars.
6067 * config/tc-m68k.h (tc_comment_chars): Define.
6068 (m68k_comment_chars): Declare.
6069 * config/tc-m68k.c (m68k_comment_chars): Rename from
6070 comment_chars. Change into a pointer rather than an array.
6071 (md_longopts): Add "bitwise-or".
6072 (md_parse_option): Handle OPTION_BITWISE_OR.
6073 (md_show_usage): Mention --bitwise-or.
6074 * doc/c-m68k.texi: Document --bitwise-or.
6075
116bf30f
ILT
6076Wed Apr 24 11:28:38 1996 Ian Lance Taylor <ian@cygnus.com>
6077
912e4245
ILT
6078 * config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
6079 in 68000 mode.
6080
116bf30f
ILT
6081 * config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
6082 call demand_empty_rest_of_line. Non BFD_ASSEMBLER version:
6083 correct handling of input line pointer, and call
6084 demand_empty_rest_of_line.
6085
58c9a12b
DE
6086Mon Apr 22 18:02:37 1996 Doug Evans <dje@blues.cygnus.com>
6087
6088 * config/tc-sparc.c (in_bitfield_range): New static function.
6089 (sparc_ip): New cases X,Y. Use SPARC_OPCODE_ARCH_V9_P.
6090 (md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
6091 BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
6092 (md_apply_fix): New cases BFD_RELOC_SPARC_[56].
6093 (tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].
6094
ff406bd3
ILT
6095Thu Apr 18 18:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
6096
6097 * config/obj-coff.c: BFD_ASSEMBLER:
6098 (coff_last_bf): New static variable.
6099 (coff_frob_symbol): Set endndx of a .bf symbol.
6100 Non BFD_ASSEMBLER:
6101 (obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
6102 (last_bfP): New static variable.
6103 (yank_symbols): Set endndx of a .bf symbol.
6104
47d12b2c
MM
6105Thu Apr 18 11:53:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6106
6107 * config/tc-ppc.c (md_parse_option): Add support for Solaris's -le
6108 and -s options. Add -be for good measure.
6109
3ce7f41a
ILT
6110Wed Apr 17 12:31:01 1996 Ian Lance Taylor <ian@cygnus.com>
6111
6112 * read.c (s_space): Support non-constant fill value. Handle fill
6113 value correctly for a size other than 1.
6114
865447db
DE
6115Tue Apr 16 15:17:40 1996 Doug Evans <dje@canuck.cygnus.com>
6116
6117 * config/tc-arm.c (my_get_float_expression): Update call to
6118 gen_to_words, X_PRECISION changed from 6 to 5.
6119
159e6ef8
MM
6120Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6121
6122 * config/tc-ppc.c (register_name,reg_name_search): Move register
6123 name lookup from PE specific code to all targets. Add support for
6124 -mregnames/-mno-regnames to control whether register names are
6125 expanded or not.
6126 (md_assemble): Call register_name for all platforms.
6127 (md_parse_option): Add support for -mregnames/-mno-regnames.
6128
6129 * configure.in (powerpcle*-*-solaris): Add support.
6130 (powerpc*-*-linux): Ditto.
6131 * configure: Regenerate.
6132
6133 * config/ppc-sol.mt: New config file for PowerPC Solaris.
6134
7a15a226
ILT
6135Mon Apr 15 12:26:33 1996 Ian Lance Taylor <ian@cygnus.com>
6136
aa9e2dbe
ILT
6137 * config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
6138 be associated with a single %lo reloc.
6139
7a15a226
ILT
6140 * config/tc-mips.c (load_address): Cast X_add_number to valueT
6141 before comparing against MAX_GPREL_OFFSET, so that negative
6142 numbers are handled correctly.
6143 (macro): Likewise.
6144
65feb78d
ILT
6145Thu Apr 11 12:39:02 1996 Ian Lance Taylor <ian@cygnus.com>
6146
ed94c2b8
ILT
6147 * config/tc-sparc.c (last_insn): New static variable.
6148 (md_assemble): Warn about putting floating point branches in a
6149 delay slot. If architecture is less than v9, insert NOP
6150 instructions between floating point instructions and floating
6151 point branches. (The SunOS assembler does both these operations.)
6152 Save the last instruction opcode.
6153 (sparc_ip): Add pinsn parameter. Change caller.
6154
65feb78d
ILT
6155 * config/tc-m68k.c (md_estimate_size_before_relax): Correct check
6156 for byte jump to next instruction to skip empty frags.
6157
456c301f
ILT
6158Wed Apr 10 16:48:12 1996 Ian Lance Taylor <ian@cygnus.com>
6159
6160 * config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
6161 for addq with a 16 bit signed value, just emit a lda instruction
6162 instead.
6163
b3ed89e8
JL
6164Wed Apr 10 14:34:49 1996 Jeffrey A Law (law@cygnus.com)
6165
6166 * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
6167 of a 32bit operand.
6168
b4cb4ea2
ILT
6169Mon Apr 8 14:42:53 1996 Ian Lance Taylor <ian@cygnus.com>
6170
6171 * configure.in: Permit --enable-shared to specify a list of
6172 directories.
6173 * configure: Rebuild.
6174
dcb195f8
JL
6175Fri Apr 5 17:01:35 1996 Jeffrey A Law (law@cygnus.com)
6176
6177 * config/tc-h8300.c (get_specific): Remove some #if 0 code.
6178 (build_bytes): Remove all ABSMOV related code; it's unnecessary.
6179
13e4a17e
ILT
6180Fri Apr 5 15:13:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6181
6182 * config/atof-ieee.c: Fix handling of denormalized extended
6183 precision numbers and overflow/underflow detection.
6184 (MAX_PRECISION, X_PRECISION, P_PRECISION): Changed from 6 to 5, to
6185 not include the 16 bit gap in the m68k extended precision format.
6186
2ae5f50b
ILT
6187Fri Apr 5 14:29:23 1996 Ian Lance Taylor <ian@cygnus.com>
6188
6189 * configure.in: Add i386-*-freebsdelf* target; from John Polstra
6190 <jdp@polstra.com>.
6191 * configure: Rebuild.
6192
54ea771f
JSC
6193Fri Apr 5 18:39:28 1996 James G. Smith <jsmith@cygnus.co.uk>
6194
6195 * config/tc-mips.c: Allow non-zero offsets from .sdata symbols to
6196 be accessed using the $gp register.
6197 * config/tc-mips.h (MAX_GPREL_OFFSET): Added.
6198
65b12103
DE
6199Wed Apr 3 10:56:14 1996 Doug Evans <dje@canuck.cygnus.com>
6200
6201 * config/tc-sparc.c (sparc_md_end): Set bfd machine number to
6202 bfd_mach_sparc_sparclet if current_architecture is sparclet.
6203
2271578d
ILT
6204Mon Apr 1 16:55:44 1996 Ian Lance Taylor <ian@cygnus.com>
6205
6206 * read.c (get_line_sb): Bump line counters based on
6207 input_line_pointer[-1], not *input_line_pointer. Don't bother to
6208 call LISTING_NEWLINE.
6209 (s_macro): Don't call demand_empty_rest_of_line.
6210 * app.c (do_scrub_chars): When handling C style comments, unget
6211 ch2 rather than ch.
6212
7d3741ed
ILT
6213Fri Mar 29 16:15:06 1996 Ian Lance Taylor <ian@cygnus.com>
6214
6215 * read.h (enum linkonce_type): Define.
6216 (s_linkonce): Declare.
6217 * read.c (potable): Add "linkonce".
6218 (s_linkonce): New function.
6219 * subsegs.h (segment_info_type): Add linkonce field to
6220 MANY_SEGMENTS && ! BFD_ASSEMBLER section.
6221 * config/obj-coff.h (obj_handle_link_once): Define if TE_PE.
6222 (obj_coff_pe_handle_link_once): Declare if TE_PE.
6223 * config/obj-coff.c: If TE_PE and not BFD_ASSEMBLER, #include
6224 "coff/pe.h".
6225 (obj_coff_pe_handle_link_once): New function, defined if TE_PE.
6226 (c_section_symbol): If TE_PE, set the x_comdat field in the aux
6227 entry based on the linkonce field in segment_info.
6228 * doc/as.texinfo: Document .linkonce.
6229
0c203340
C
6230Fri Mar 29 11:31:27 1996 J.T. Conklin (jtc@lisa.cygnus.com)
6231
6232 * doc/as.1: Changed to be recognized by catman -w on Solaris.
6233
867a58b3
ILT
6234Thu Mar 28 15:27:47 1996 Ian Lance Taylor <ian@cygnus.com>
6235
3197da91
ILT
6236 * stabs.c (s_stab_generic): Call the listing functions before
6237 doing the rest of the processing, which may involve freeing the
6238 string. Pass string, not string + stroff, to OBJ_PROCESS_STAB in
6239 SEPARATE_STAB_SECTIONS case.
6240
3c071b9f
ILT
6241 * config/tc-hppa.c: Remove nested comment.
6242 (tc_gen_reloc): Move label done inside the ifdef in which it is
6243 used.
6244 (md_apply_fix): Pass pointers to correct types to libhppa.h
6245 functions. Always return a value.
6246
867a58b3
ILT
6247 * config/tc-mips.h (tc_frob_file): Define.
6248 (mips_frob_file): Declare.
6249 * config/tc-mips.c (struct mips_hi_fixup): Define.
6250 (mips_hi_fixup_list): New static variable.
6251 (imm_unmatched_hi): New static variable.
6252 (md_assemble): Clear imm_reloc, imm_unmatched_hi, and
6253 offset_reloc. Pass imm_unmatched_hi to append_insn.
6254 (append_insn): Add unmatched_hi parameter. If it is set, add the
6255 new fixup to mips_hi_fixup_list. Change all callers.
6256 (mips_ip): Set imm_unmatched_hi when appropriate.
6257 (mips_frob_file): New function.
6258
d0352cbb
DE
6259Thu Mar 28 11:47:59 1996 Doug Evans <dje@canuck.cygnus.com>
6260
6261 * configure.in (sparc-*-solaris2*): Renamed from sparc*-*-solaris2*.
6262 * configure: Regenerated.
6263
4f74c042
ILT
6264Tue Mar 26 18:19:12 1996 Ian Lance Taylor <ian@cygnus.com>
6265
6266 * as.c (main): Call bfd_set_error_program_name.
6267
5ba7c0be
ILT
6268Fri Mar 22 11:13:00 1996 Ian Lance Taylor <ian@cygnus.com>
6269
c7a89bde
ILT
6270 * as.h (strdup): Don't declare.
6271 * stabs.c: Include libiberty.h
6272 (get_stab_string_offset): Use xstrdup rather than strdup.
6273 (s_stab_generic): Likewise.
6274 * as.c (parse_args): Likewise.
6275 * read.c (s_mri_sect): Likewise.
6276
5ba7c0be
ILT
6277 * gasp.c (change_base): Recognize \(...) construct documented to
6278 pass through enclosed characters literally through to the output.
6279 (process_assigns): Likewise. Also, be more careful to avoid
6280 looking past the end of the buffer.
6281
6282Thu Mar 21 13:18:43 1996 Ian Lance Taylor <ian@cygnus.com>
6283
6284 * config/tc-i386.c (md_parse_option): If OBJ_ELF, ignore -k for
6285 FreeBSD compatibility. From John Polstra <jdp@polstra.com>.
6286
d1f38e13
ILT
6287Wed Mar 20 18:13:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6288
6289 * doc/as.texinfo, doc/c-i960.texi: Fix typos.
6290
649d87fe
ILT
6291Wed Mar 20 17:05:16 1996 David Mosberger-Tang <davidm@azstarnet.com>
6292
6293 * config/alpha-opcode.h: Added cvtst instruction.
6294
975def01
ILT
6295Mon Mar 18 13:12:46 1996 Ian Lance Taylor <ian@cygnus.com>
6296
6297 * ecoff.c (ecoff_stab): Don't try to make a symbol out of the stab
6298 string. Extract the addend from the result of expression.
6299
fde6018a
ILT
6300Fri Mar 15 17:10:43 1996 Ian Lance Taylor <ian@cygnus.com>
6301
6302 * app.c (do_scrub_chars): If whitespace is seen in state 11, and
6303 LABELS_WITHOUT_COLONS is not defined, and we are not in m68k MRI
6304 mode, change the state to 3 rather than 1.
6305
ee0f488d
ILT
6306Thu Mar 14 18:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
6307
6308 * config/obj-coff.h (C_REGISTER_SECTION): Change from 20 to 50, to
6309 correspond to 11 March change.
6310
9da28504
JL
6311Thu Mar 14 15:27:10 1996 Jeffrey A Law (law@cygnus.com)
6312
6313 * config/tc-h8300.c (build_bytes, MEMIND case): Generate
6314 an R_MEM_INDIRECT reloc rather than R_RELBYTE.
6315
ea2488ad
ILT
6316Tue Mar 12 12:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
6317
6318 * configure: Rebuild with autoconf 2.8.
6319
8fee8bf3
ILT
6320Mon Mar 11 18:57:12 1996 Ian Lance Taylor <ian@cygnus.com>
6321
6322 * config/atof-ieee.c (gen_to_words): Improve handling of
6323 X_PRECISION numbers. Based on patches from Andreas Schwab
6324 <schwab@issan.informatik.uni-dortmund.de>.
6325
a31c2bc7
SC
6326Mon Mar 11 09:59:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
6327
6328 * as.h (SEG_NORMAL, SEG_LIST): Bump segment limit from 10 to 40.
6329 (SEG_LAST): New.
6330 * subsegs.c (MANY_SEGMENTS): Increase segment limit.
6331 * obj-coff.c (seg_N_TYPE, seg_info_off_by_4): Likewise.
6332 (do_relocs_for, w_symbols, obj_coff_add_segment, do_linenos_for,
6333 crawl_symbols, coff_header_append): Loop to SEG_LAST rather than
6334 SEG_E9.
6335
6336Thu Mar 7 15:17:39 1996 Doug Evans <dje@charmed.cygnus.com>
6337
6338 * config/tc-sparc.c (sparc_ip): Handle operand char 'O' (neg reg).
6339
73578b1e
JL
6340Thu Mar 7 09:19:15 1996 Jeffrey A Law (law@cygnus.com)
6341
6342 * config/tc-hppa.c (SUBSEG_MILLI): Define.
6343 (pa_def_subspaces): Add $MILLICODE$.
6344 (pa_spaces_begin): Set section flags for $MILLICODE$.
6345
0c27542f
ILT
6346Wed Mar 6 14:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
6347
6b8ed20d
ILT
6348 * config/obj-elf.c (obj_elf_section): Only SEC_LOAD if the type is
6349 not SHT_NOBITS. Don't tamper with flags based on type if a
6350 special section was found (revert Feb 29 change).
6351
0c27542f
ILT
6352 * config/tc-sh.c (sh_do_align): Only align using the nop pattern
6353 if aligning to a longword boundary or greater.
6354
6a413d6f
JW
6355Tue Mar 5 15:10:43 1996 Jim Wilson <wilson@chestnut.cygnus.com>
6356
6357 * config/tc-sh.c (sh_do_align): Pass 1 not 2 to frag_align.
6358
4b295517
SC
6359Mon Mar 4 20:50:57 1996 Steve Chamberlain <sac@slash.cygnus.com>
6360
6361 * configure.in (i386-*-cygwin32): Don't use bfd_gas.
6362 * configure: Regenerated.
6363
eff5fcda
JL
6364Mon Mar 4 10:13:06 1996 Jeffrey A Law (law@cygnus.com)
6365
421e2c27
JL
6366 * config/tc-hppa.c: Add default definitions for R_N0SEL and
6367 R_N1SEL since they're not defined for old versions of hpux.
6368
eff5fcda
JL
6369 * config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
6370 Set "sym_ptr_ptr" and "addend" fields to dummy values for
6371 R_N0SEL and R_N1SEL.
6372
bb1013d9
ILT
6373Fri Mar 1 10:20:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6374
d197a7ab
ILT
6375 * flonum-konst.c: Add two more constants for 1e+-2048 and
6376 1e+-4096, and correct the other constants.
6377
bb1013d9
ILT
6378 * symbols.c (resolve_symbol_value): Handle O_logical_not.
6379
30510276
MM
6380Thu Feb 29 13:58:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6381
6382 * config/obj-elf.c (obj_elf_section): Allow predefined section
0d8405e8 6383 types to set the nobits type. Avoid a shadowed declaration.
30510276 6384
75c90d61
JL
6385Wed Feb 28 15:38:56 1996 Jeffrey A Law (law@cygnus.com)
6386
24b216e1
JL
6387 * config/tc-hppa.c (hppa_fix_adjustable): For SOM, don't
6388 reduce relocs using e_nlrsel field selectors.
6389
75c90d61
JL
6390 * write.c (fix_new_exp): Don't use #elif. Some compilers
6391 don't handle it.
83b59013
JL
6392
6393 * config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
6394 the selector table.
6395 (pa_chk_field_selector): Handle new field selectors for SOM.
6396
535cfd0f
ILT
6397Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6398
6399 * configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
6400 * configure: Rebuild.
6401 * config/te-linux.h (LOCAL_LABELS_FB): Define.
6402 * config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
6403 "a.out-m68k-linux".
6404 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
6405 is defined.
6406
d214421e
SS
6407Mon Feb 26 18:58:58 1996 Stan Shebs <shebs@andros.cygnus.com>
6408
6409 * mpw-make.sed: Update to handle shared library support.
6410
110b814d
DE
6411Mon Feb 26 10:34:10 1996 Doug Evans <dje@charmed.cygnus.com>
6412
6413 * config/tc-sparc.c (sparc_ip): Print all architectures that support
6414 the insn on mismatch.
6415
805e36ab
RS
6416Fri Feb 23 21:44:39 1996 Rob Savoye <rob@chinadoll.cygnus.com>
6417
6418 * configure.in: Add support for a29-coff.
6419 * configure: Rebuild.
6420
e41ab2a6
ILT
6421Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
6422
101a2346
ILT
6423 * config/tc-sh.c (sh_coff_frob_file): Don't consider the address
6424 of the section when looking for the R_SH_USES fixup, because the
6425 frag addresses have not yet been adjusted.
6426
940c413f
ILT
6427 * gdbinit.in: Set a breakpoint on as_warn_where.
6428
e41ab2a6
ILT
6429 * config/tc-mips.c (macro): Add missing arguments to macro_build
6430 omitted in last change. From Jim Wilson <wilson@cygnus.com>.
6431
c6016ce2
ILT
6432Wed Feb 21 17:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
6433
6434 * config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
6435 if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
6436
b32fbe07
DE
6437Wed Feb 21 09:25:39 1996 Doug Evans <dje@charmed.cygnus.com>
6438
6439 * config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
6440
2e5e6879
DE
6441Tue Feb 20 21:48:03 1996 Doug Evans <dje@charmed.cygnus.com>
6442
6443 * config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
6444 (sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
6445 Recognize [uU] format args as sparclet cpregs.
6446
8a2e1fdd
ILT
6447Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
6448
6449 * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
6450 in bss_section.
6451
21965655
ILT
6452Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
6453
6454 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
6455 well as S_IS_EXTERNAL.
6456 (tc_fix_adjustable): Likewise.
6457 * config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
6458 S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
6459 early.
6460 (tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
6461 deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
6462
d8b42b96
DE
6463Mon Feb 19 02:15:57 1996 Doug Evans <dje@charmed.cygnus.com>
6464
6465 * config/tc-sparc.c (max_architecture): Change to sparclite for
6466 32 bit arch.
6467 (default_compatible): Delete.
6468 (sparc_ffs): New function.
6469 (md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
6470 (sparc_ip): Rewrite architecture match and bump logic.
6471
7925f4d4
ILT
6472Sun Feb 18 15:03:50 1996 Ian Lance Taylor <ian@cygnus.com>
6473
6474 * configure.in: Check for 'do not mix' from native linker before
6475 trying to use -rpath.
6476 * configure: Rebuild.
6477
ef2074c2
ILT
6478Fri Feb 16 16:53:31 1996 Ian Lance Taylor <ian@cygnus.com>
6479
6480 * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
6481 (SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
6482 (SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
6483 * config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
6484 is set.
6485 (w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
6486 to the symbol lnnoptr field, to get the correct file offset.
6487
28910c57
MM
6488Thu Feb 15 14:48:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6489
6490 * config/obj-elf.c (elf_frob_symbol): On the PowerPC, force all
6491 symbols that are not function, file, or section symbols to be
6492 object types.
6493
7c2fadd1
ILT
6494Thu Feb 15 11:20:18 1996 Ian Lance Taylor <ian@cygnus.com>
6495
1a2f3c3f
ILT
6496 * configure: Set and substitute RPATH_ENVVAR.
6497 * configure: Rebuild.
6498 * Makefile.in (RPATH_ENVVAR): New variable.
6499 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
6500
7c2fadd1
ILT
6501 * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
6502 doesn't need opcodes. If configuring shared, opcodes needs bfd.
6503 * configure: Rebuild.
6504
8a6f53e9
ILT
6505Wed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
6506
6507 * read.c (s_mri_sect): Don't return '\0' in type. Set all
6508 appropriate flags in BFD section.
6509
6510 * configure.in (m68k-*-psos*): New target.
6511 * configure: Rebuild.
6512 * config/te-psos.h: New file.
6513 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
6514 is defined.
6515
fb251650
ILT
6516Wed Feb 14 13:43:24 1996 Ian Lance Taylor <ian@cygnus.com>
6517
ae09d880
ILT
6518 From Alan Modra <alan@spri.levels.unisa.edu.au>:
6519 * configure.in: Remove duplicate setting of cpu_type. Check
6520 whether opcodes library is required for on all targets, not just
6521 primary one.
6522 * configure: Rebuild.
6523
fb251650
ILT
6524 * config/tc-mips.c (mips_big_got): New static variable.
6525 (s_extern): Don't declare.
6526 (reg_needs_delay): New static function.
6527 (macro_build): Permit GOT/CALL_HI/LO relocs.
6528 (macro_build_lui): If place is not NULL, use the number in the
6529 expression.
6530 (load_address): Handle mips_big_got case.
6531 (macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
6532 store macros.
6533 (OPTION_XGOT): Define.
6534 (md_longopts): Add "xgot" if OBJ_ELF.
6535 (md_parse_option): Handle -xgot.
6536 (md_show_usage): Mention -xgot.
6537 (md_apply_fix): Permit GOT/CALL_HI/LO relocs.
6538 (tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.
6539
d9396c16
ILT
6540Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6541
6542 * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
6543 the byte relocation, point it to the low byte of the word.
6544
56f9773f
ILT
6545Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
6546
6547 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
6548 * configure: Rebuild.
6549
63e4edb5
DE
6550Mon Feb 12 15:53:46 1996 Doug Evans <dje@charmed.cygnus.com>
6551
6552 * configure.in: Recognize any sparc* cpu.
6553 * configure: Regenerated.
6554
15ed5f2c
ILT
6555Mon Feb 12 15:41:21 1996 Ian Lance Taylor <ian@cygnus.com>
6556
20710f1c
ILT
6557 * read.c (potable): Add "mri" and ".mri".
6558 (s_mri): New function.
6559 * read.h (s_mri): Declare.
6560 * app.c (scrub_m68k_mri): New static variable.
6561 (mri_pseudo): New static variable.
6562 (do_scrub_begin): Add m68k_mri parameter. Use it rather than
6563 flag_m68k_mri. Initialize scrub_m68k_mri.
6564 (mri_state, mri_last_ch): New static variables.
6565 (struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
6566 fields.
6567 (app_push): Save new fields.
6568 (app_pop): Restore new fields.
6569 (do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
6570 If TC_M68K, use a trivial state machine to look for occurrences of
6571 the .mri pseudo-op, and change the mode appropriately.
6572 * as.h (do_scrub_begin): Update prototype.
6573 * input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
6574 do_scrub_begin.
6575 * config/tc-m68k.c (reg_prefix_optional_seen): New static
6576 variable.
6577 (m68k_mri_mode_change): New function.
6578 (md_parse_option): Set reg_prefix_optional_seen.
6579 * config/tc-m68k.h (m68k_mri_mode_change): Declare.
6580 (MRI_MODE_CHANGE): Define.
6581 * doc/as.texinfo: Document .mri pseudo-op.
6582
15ed5f2c
ILT
6583 * app.c (do_scrub_chars): In MRI mode, don't treat '#' as a
6584 comment character.
6585
a043f579
ILT
6586Mon Feb 12 15:16:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6587
6588 Support for OBJ_ELF on m68k, mostly inside #ifdef OBJ_ELF:
6589 * config/m68k-parse.h (enum pic_relocation): Define.
6590 (struct m68k_exp): Add pic_reloc field.
6591 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
6592 (tc_fix_adjustable): Define to call tc_m68k_fix_adjustable.
6593 (NO_RELOC): Define to BFD_RELOC_NONE if BFD_ASSEMBLER, to zero
6594 otherwise.
6595 * config/tc-m68k.c: Delete definition of NO_RELOC.
6596 (struct m68k_it): Add pic_reloc field.
6597 (add_fix): Copy over pic_reloc field.
6598 (md_pseudo_table): Interpret .align parameter as byte count.
6599 (mote_pseudo_table): Likewise.
6600 (tc_m68k_fix_adjustable): New function.
6601 (get_reloc_code): New function.
6602 (md_assemble): Use it as last argument to fix_new_exp.
6603 (md_apply_fix_2): For a relocation against a symbol don't put the
6604 addend into the data.
6605 (tc_gen_reloc): Different addend computation for OBJ_ELF.
6606 (m68k_ip): Don't relax an operand that requires pic relocation.
6607 (md_begin): Align .text, .data and .bss on 4 byte boundary by
6608 default.
6609 * write.c (fixup_segment): Don't add symbol value to addend if
6610 TC_M68K and OBJ_ELF.
6611 * config/m68k-parse.y (yylex): Handle @PLTPC, etc.
6612 (motorola_operand): Add rule for `(zapc, EXPR)'.
6613
6ca1156d
ILT
6614Mon Feb 12 10:07:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
6615
6616 * ecoff.c (ecoff_directive_weakext): Fixed so that whitespace
6617 *really* is permissible before the comma.
6618
fcee3e24
ILT
6619Mon Feb 12 00:12:13 1996 Ian Lance Taylor <ian@cygnus.com>
6620
6621 * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
6622 inserting nop instructions.
6623
3e1c964d
ILT
6624Fri Feb 9 10:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
6625
6626 * config/te-aux.h: Change include of aux.h to aux-coff.h.
6627
4080c270
ILT
6628Thu Feb 8 20:02:58 1996 Ian Lance Taylor <ian@cygnus.com>
6629
d782e3cc
ILT
6630 * config/tc-i960.c (tc_coff_symbol_emit_hook): Correct storage
6631 class setting for a CALLNAME symbol in COFF.
6632
4080c270
ILT
6633 * read.c (potable): Pass negative numbers for new .balign[wl] and
6634 .p2align[wl] pseudo-ops.
6635 (s_align_bytes): Treat a negative argument as specifying the fill
6636 length.
6637 (s_align_ptwo): Likewise.
6638
1c9dbb83
ILT
6639Wed Feb 7 14:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
6640
71dd3c40
ILT
6641 * read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
6642 (do_align): Take new len parameter. Change all callers. Pass it
6643 to md_do_align.
6644 (s_align_bytes): Arg now indicates the length of the fill pattern.
6645 (s_align_ptwo): Likewise.
6646 * config/obj-coff.c (write_object_file): Pass length to
6647 md_do_align.
6648 * config/tc-i386.h (md_do_align): Take new len parameter.
6649 * config/tc-m88k.h (md_do_align): Likewise.
6650 * config/tc-m88k.c (m88k_do_align): Likewise.
6651 * config/tc-sh.h (md_do_align): Likewise.
6652 * config/tc-sh.c (sh_do_align): Likewise.
6653 * doc/as.texinfo: Document new pseudo-ops.
6654
6655 * config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
6656 done in cvt_frag_to_fill.
6657
9addcbb1
ILT
6658 * config/tc-sh.h (sh_do_align): Declare.
6659 (md_do_align): Define.
6660 * config/tc-sh.c (sh_do_align): New function.
6661
c15ea23a
ILT
6662 * ecoff.c (ecoff_build_lineno): Don't try to store the address
6663 difference if the next address is before the current one.
6664
9e64486e
ILT
6665 * config/tc-m68k.c (struct m68k_cpu): Add alias field.
6666 (archs): Initialize new field.
6667 (m68k_ip): Don't list alias names when listing CPUs which support
6668 an instruction.
6669
6670 * as.c (main): Call parse_args before read_begin.
6671 * app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
6672 front of generated pseudo-ops.
6673 * read.c (potable): Ignore "name".
6674 (s_app_file): Permit a single quote after the string, since one
6675 may appear in m68k MRI mode.
6676
1c9dbb83
ILT
6677 * configure.in: Check for --enable-shared. If linking against
6678 shared BFD and opcodes, fix library name on SunOS, and try to set
6679 -rpath reasonably.
6680 * configure: Rebuild.
6681
6682Tue Feb 6 15:16:17 1996 Ian Lance Taylor <ian@cygnus.com>
6683
6684 * as.h (flag_m68k_mri): Declare.
6685 * as.c (parse_args): If TC_M68K, set flag_m68k_mri for -M.
6686 * Many files: For MRI syntax that is specific to the m68k MRI
6687 assembler, check flag_m68k_mri rather than flag_mri or
6688 MRI_MODE_NEEDS_PSEUDO_DOT.
6689
dd1d79e8
ILT
6690Mon Feb 5 16:29:11 1996 Ian Lance Taylor <ian@cygnus.com>
6691
f9e90c2e
ILT
6692 * config/tc-i960.c (ARCH_HX): Define.
6693 (arch_tab): Add HX.
6694 (targ_has_sfr): Handle ARCH_HX.
6695 (targ_has_iclass): Handle ARCH_HX.
6696 (tc_coff_fix2rtype): Add return 0 to avoid warning.
6697 (tc_headers_hook): If the architecture was specified explicitly,
6698 use it when setting the flags. Set the extern variable coff_flags
6699 rather than headers->filehdr.f_flags, since the latter is set
6700 unconditionally in obj-coff.c.
6701 (i960_handle_align): Remove unused variable fixp.
6702
dd1d79e8
ILT
6703 Support for building bfd and opcodes as shared libraries, based on
6704 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
6705 * configure.in: Set OPCODES and BFD to search directories.
6706 Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
6707 * configure: Rebuild.
6708 * Makefile.in (LDFLAGS, HLDFLAGS): New variables.
6709 (LIBDEPS): New variable.
6710 (as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
6711 $(HLDFLAGS) in link.
6712 (check): Set LD_LIBRARY_PATH in the environment.
6713
6714Fri Feb 2 17:41:53 1996 Michael Meissner <meissner@wogglebug.tiac.net>
6715
6716 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Make .sdata2, .sbss2,
6717 .PPC.EMB.sdata0, and .PPC.EMB.sbss0 sections all default to
6718 read-only, not read/write.
6719
e277d131
ILT
6720Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
6721
6722 * Makefile.in (INSTALL_XFORM): Remove -e.
6723
e24cf2b5
ILT
6724Fri Feb 2 12:32:15 1996 Ian Lance Taylor <ian@cygnus.com>
6725
6726 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
6727 than comparing S_GET_SEGMENT to undefined_section.
6728 (write_object_file): Skip symbols which were equated to an
6729 undefined or common symbol.
6730 * symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
6731 S_IS_COMMON rather than comparing S_GET_SEGMENT to
6732 undefined_section.
6733 (S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
6734 or S_IS_COMMON call S_GET_VALUE.
6735 * config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
6736 * config/obj-aout.c (obj_emit_relocations): If a reloc is equated
6737 to an undefined or common symbol, convert the reloc to be against
6738 the target symbol.
6739 (obj_crawl_symbol_chain): Skip symbols which were equated to an
6740 undefined or common symbol.
6741 * config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
6742 * config/obj-bout.c (obj_emit_relocations): If a reloc is equated
6743 to an undefined or common symbol, convert the reloc to be against
6744 the target symbol.
6745 (obj_crawl_symbol_chain): Skip symbols which were equated to an
6746 undefined or common symbol.
6747 * config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
6748 S_IS_COMMON rather than comparing S_GET_SEGMENT to
6749 undefined_section.
6750 (yank_symbols): Skip symbols which were equated to an undefined or
6751 common symbol.
6752
4d9e33e4
ILT
6753Thu Feb 1 15:34:32 1996 Ian Lance Taylor <ian@cygnus.com>
6754
9e396994
ILT
6755 * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
6756 * config/obj-bout.h (S_IS_LOCAL): Likewise.
6757
4d9e33e4
ILT
6758 * configure.in: Make sure we only add m68k-parse.o to
6759 ${extra_objects} once, no matter how many m68k targets have been
6760 enabled.
6761 * configure: Rebuild.
6762
0ff513d9
SC
6763Wed Jan 31 18:31:46 1996 Steve Chamberlain <sac@slash.cygnus.com>
6764
6765 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
6766 * configure: Rebuild.
6767
66b935da
ILT
6768Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
6769
c174fb5c
ILT
6770 * config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
6771 * doc/c-m68k.texi: Document .extend and .ldouble.
6772
66b935da
ILT
6773 * configure.in (m68*-apple-aux*): New target.
6774 * config/te-aux.h: New file.
6775 * config/obj-coff.c (compare_external_relocs): New static function
6776 if TE_AUX.
6777 (do_relocs_for): Sort relocs if TE_AUX.
6778 (fixup_segment): If TE_AUX, store common symbol value in segment.
6779 * config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
6780
30c2a08e
ILT
6781Wed Jan 31 12:24:58 1996 Ian Lance Taylor <ian@cygnus.com>
6782
9e396994 6783 * config/obj-coff.h (S_IS_LOCAL): Check for \002 as well as \001.
615c0a79 6784
30c2a08e
ILT
6785 * config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
6786 BSF_FUNCTION.
6787 (s_cpload): Set BSF_OBJECT for _gp_disp symbol.
6788 * read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
6789 symbol.
6790 * ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
6791 (ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
6792 an undefined symbol and the size of a function symbol.
6793 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
6794 for all common symbols.
6795
0e6f2f82
KR
6796Tue Jan 30 12:35:24 1996 Ken Raeburn <raeburn@cygnus.com>
6797
6798 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit
6799 scaling of index.
6800
6801 * expr.c (operand): Accept 0x hex constants in MRI mode if not on
6802 m68k.
6803
8e3ff081
ILT
6804Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
6805
3e78d072
ILT
6806 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
6807 of object. From Ronald F. Guilmette <rfg@monkeys.com>.
6808
8e3ff081
ILT
6809 * ecoff.c (localsym_t): Add addend field.
6810 (add_ecoff_symbol): Add addend argument. Change all callers.
6811 (coff_sym_value): Make static.
6812 (coff_sym_addend): New static variable.
6813 (ecoff_directive_def): Initialize coff_sym_addend.
6814 (ecoff_directive_val): Accept symbol + constant.
6815 (ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
6816 (ecoff_build_symbols): Include the addend in the symbol value.
6817
79edc846
KK
6818Fri Jan 26 19:28:52 1996 Kim Knuttila <krk@cygnus.com>
6819
6820 * config/tc-ppc.c (md_assemble): Ignore overflow on
6821 BFD_RELOC_16_GOTOFF and BFD_RELOC_PPC_TOC16.
6822
6823Fri Jan 26 16:14:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6824
6825 * config/tc-ppc.c (md_apply_fix3): SDA21 relocations are now 4
6826 bytes in size, so offset appropriately in big endian mode when
6827 writing the bottom 2 bytes.
6828
6cbc4e35
DE
6829Thu Jan 25 20:26:23 1996 Doug Evans <dje@charmed.cygnus.com>
6830
6831 * config/tc-sparc.c (default_compatible): New static local.
6832 (md_begin): Initialize it. Rewrite warn_on_bump handling.
6833 (sparc_ip): If no architecture or -bump specified, don't mark as
6834 mismatched those in default_compatible.
6835
4fe0fddd
ILT
6836Thu Jan 25 12:21:53 1996 Ian Lance Taylor <ian@cygnus.com>
6837
6838 SCO ELF support from Robert Lipe <robertl@arnet.com>:
6839 * configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
6840 * configure: Rebuild.
6841 * config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
6842 * config/tc-i386.c (sco_id): New function, if SCO_ELF.
6843 * config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
6844 (sco_id): Declare if SCO_ELF.
6845
e70ad5d5
DE
6846Thu Jan 25 03:10:53 1996 Doug Evans <dje@charmed.cygnus.com>
6847
6848 * config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
6849 ({max,warn_after}_architecture): New static locals.
6850 (md_begin): Replace NUMOPCODES with sparc_num_opcodes.
6851 If both architecture and -bump requested, set max_architecture to max.
6852 (sparc_md_end): Simplify.
6853 (sparc_ip): Replace references to can_bump_v9_p with max_architecture.
6854 Rewrite code to bump architecture and check for conflicts.
6855 (md_longopts): Recognize -xarch={v8plus,v8plusa} for compatibility
6856 with Solaris assembler.
6857 (md_parse_option): Likewise. Call sparc_opcode_lookup_arch.
6858 (md_show_usage): Update.
6859
a8248831
DE
6860Wed Jan 24 22:11:03 1996 Doug Evans <dje@charmed.cygnus.com>
6861
6862 * Makefile.in (RUNTEST): Fix reference to $${srcdir}.
6863
6df07e7f
DE
6864Mon Jan 22 09:21:36 1996 Doug Evans <dje@charmed.cygnus.com>
6865
6866 * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
6867 #ifdef sparcv9 when choosing value.
6868 (ENV64): Delete.
6869 (md_end): Define.
6870 (sparc_md_end): Declare.
6871 * config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
6872 (initial_architecture): New static local.
6873 (can_bump_v9_p): Likewise.
6874 (NO_V9): Delete all occurrences.
6875 (sparc_md_end): New function.
6876 (sparc_ip): New local v9_arg_p. Rework fp reg number test.
6877 Don't bump architecture to v9 unless can_bump_v9_p set.
6878 (md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
6879 * configure.in (sparc64 target cpu): Don't set obj_format here.
6880 (SPARC_V9): Renamed from sparcv9.
6881 (sparc64-*-elf*): Define SPARC_ARCH64.
6882 * configure: Regenerated.
6883 * acconfig.h (SPARC_V9): Renamed from sparcv9.
6884 (SPARC_ARCH64): Add.
7fcb3191 6885 * conf.in: Regenerated.
6df07e7f
DE
6886 * config/vmsconf.h: Update.
6887
c9c7c1d7
JSC
6888Mon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
6889
6890 * config/tc-mips.c (load_register): Optimise "dli" loads.
6891 (md_show_usage): add "-mcpu=vr4100" to help text.
16ce20d4 6892
07ce72c9
ILT
6893Mon Jan 22 11:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
6894
16ce20d4
ILT
6895 * symbols.c (resolve_symbol_value): If a symbol is equated to an
6896 undefined symbol, preserve the X_op of O_symbol.
6897 (S_GET_VALUE): Fix check to permit this case.
6898 * write.c (write_relocs): If a reloc is against an undefined
6899 symbol equated to another symbol, change the reloc to be against
6900 the latter symbol.
6901 * config/obj-coff.c (do_relocs_for): Likewise.
6902
07ce72c9
ILT
6903 * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
6904 XMC_PR.
6905
d971d39e
MM
6906Mon Jan 22 10:59:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6907
6908 * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target
6909 computer is PowerPC.
6910
6911 * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations.
6912
6913 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections
6914 mentioned in the eabi.
6915
0291f0f5
KK
6916Thu Jan 18 17:58:19 1996 Kim Knuttila <krk@cygnus.com>
6917
6918 * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section
6919 * config/tc-ppc.c (ppc_pdata): Changed the alignment on pdata_section
6920
c682be53
MM
6921Mon Jan 15 17:43:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6922
6923 * config/tc-ppc.c (mapping): Add more relocation suffixes.
6924
ee4fdbb9
MM
6925Sun Jan 14 21:29:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6926
6927 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .gcc_except_table
6928 as a section it is ok to have unadorned -mrelocatable pointers in.
6929
6930Sat Jan 13 11:09:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
747b98fe
MM
6931
6932 * config/tc-ppc.c (ppc_section*): Wrap these functions inside
6933 #ifdef OBJ_ELF.
6934
f99d287b
MM
6935Fri Jan 12 15:32:07 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6936
6937 * config/obj-elf.c (obj_elf_section): Add hooks so machine
6938 dependent section attributes can be handled.
6939
6940 * config/tc-ppc.h: (md_elf_section_{letter,type,word,flags}): New
6941 macros to add support for exclude section flag and ordered section
6942 type.
6943
6944 * config/tc-ppc.c (ppc_elf_section_{letter,type,word,flags}): New
6945 functions to add support for exclude section flag and ordered
6946 section type.
6947
347a705b
ILT
6948Fri Jan 12 12:04:00 1996 Ian Lance Taylor <ian@cygnus.com>
6949
2a4e49a9
ILT
6950 * subsegs.c (section_symbol): Don't try to look up the section
6951 symbol in the hash table. It should be possible to have a symbol
6952 with the same name as a section, but no connection to it.
6953
d9f4dec1
ILT
6954 * read.c (cons_worker): Only call mri_comment_end from flag_mri.
6955 From James Carlson <carlson@xylogics.com>.
6956
347a705b
ILT
6957 * expr.c (operand): Skip whitespace after a close parenthesis.
6958 From James Carlson <carlson@xylogics.com>.
6959
10c8c95e
JW
6960Tue Jan 2 12:43:23 1996 Jim Wilson <wilson@chestnut.cygnus.com>
6961
6962 * config/tc-sh.c (md_apply_fix): Call as_bad_where instead of
6963 as_warn_where for relocation overflow.
347a705b
ILT
6964 (parse_reg): Accept register name only if next character is
6965 not alphanumeric.
10c8c95e 6966
cb844314
JL
6967Sat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com)
6968
6969 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
6970 addresses for static variables.
6971
36cb0e7c
MM
6972Thu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6973
6974 * config/tc-ppc.c (mapping): Make @got give a real GOT relocation,
6975 and xgot give the old toc16 relocation.
6976 (md_apply_fix3): Support all GOT relocations.
6977
5e69b693
ILT
6978Wed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com>
6979
6980 * config/tc-mips.c (load_address): Correctly handle a constant in
6981 SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
6982
29861dd0
C
6983Fri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6984
6985 * config/tc-sh.c (parse_reg): Recognize SH3 registers.
6986 (get_specific): Handle A_SSR, A_SPC and A_REG_B.
6987 (build_Mbytes): Handle REG_B.
6988
432b8fa8
ILT
6989Fri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com>
6990
6991 * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro.
6992
ee68a042
RJ
6993Fri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com>
6994
6995 * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS.
6996
b14630f2
ILT
6997Thu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com>
6998
6999 * config/obj-coff.c (write_object_file): Set the s_align field to
7000 the number of bytes, rather than to the power of 2.
7001
4a3d48fc
ILT
7002Tue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com>
7003
7004 * Makefile.in (DISTCLEAN_HERE): New variable.
7005 (distclean): Use it.
7006 (maintainer-clean): Depend upon clean-here rather than clean,
7007 distclean, and clean-info. Run make maintainer-clean in doc.
7008 Remove files listed in DISTCLEAN_HERE.
7009 * doc/Makefile.in (maintainer-clean realclean): Split out from
7010 distclean. Depend upon clean-info and distclean.
7011
7e5e83cf
SS
7012Mon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com>
7013
7014 * mac-as.r: Fix copyright and version strings.
7015 (cfrg): Use PROG_NAME instead of literal name.
7016
1b10f50d
ILT
7017Mon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com>
7018
7019 * read.c (read_a_source_file): If tc_unrecognized_line is defined,
7020 call it.
7021 * config/tc-a29k.h (tc_unrecognized_line): Define.
7022 * config/tc-a29k.c (a29k_unrecognized_line): New function.
7023 (md_operand): Handle a29k style local dollar labels.
7024
2f3bbb1b
ILT
7025Wed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com>
7026
7027 * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE.
7028
624c91d1
KR
7029Tue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com>
7030
7031 * read.c (s_fill): If md_flush_pending_output is defined, call
7032 it.
7033
9e4b3a23
KR
7034Mon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com>
7035
7036 * config/obj-coff.c (size_section, fill_section, fixup_mdeps):
7037 Treat rs_align_code like rs_align.
7038
3554987a
DE
7039Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
7040
7041 * config/tc-arm.c (cp_address_required_here): Set pre_inc when
7042 converting an absolute address into a PC-relative one.
7043
90f543f6
SS
7044Fri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com>
7045
7046 * mpw-config.in: Don't always use te-generic.h for emulation.
7047 (powerpc-apple-macos): Use emulation te-macos.h.
90f543f6
SS
7048 * mpw-make.sed (install, install-only): Edit in Mac-specific
7049 install procedure.
7050
d4c8a45e
ILT
7051Fri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com>
7052
2eec8710
ILT
7053 * configure.in: Improve message about unsupported ELF targets.
7054 * configure: Rebuild.
7055
d4c8a45e
ILT
7056 * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
7057 pattern is zero. From Manfred Hollstein.
7058
531a1af2
KK
7059Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
7060
7061 * config/tc-ppc.c (ppc_pe_section): To get the alignment right for
7062 the various idata sections, we check the name on the .section pseudo.
7063
464070de
ILT
7064Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
7065
7066 * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
7067 add section's paddr to add_number; compatibility to native as and
7068 ld forbids.
7069
6a087325
KR
7070Wed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com>
7071
9d5aef80
KR
7072 * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3.
7073
ac9ef8ee
KR
7074 * hash.c (struct hash_entry): Moved here...
7075 * hash.h (struct hash_entry): ...from here.
7076
6a087325
KR
7077 * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj
7078 if it's already known to be null.
7079
77fa4d98
MM
7080Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7081
7082 * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
7083 bit relocs converted to PC relative relocs. This turned out to
7084 add the offset from the beginning of .text twice.
7085
c6e4e834
KR
7086Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
7087
7088 * stabs.c (s_stab_generic): In 's' case, free string from
7089 obstack.
7090
7091 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field
7092 sy_name_offset.
7093 * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]:
7094 Ditto.
7095
7096 * subsegs.h (segment_info_type): Make bitfields unsigned.
7097
7098 * expr.h (struct expressionS): Make X_op and X_unsigned bitfields,
7099 and move them together. On most systems this will reduce the
7100 structure size by one word.
7101 (operatorT): Define O_max.
7102 * expr.c (expr_begin): Verify that X_op is wide enough to hold
7103 O_max.
7104
7105 * read.c (pop_insert): Print error returned by hash table
7106 insertion code.
7107
7108 * as.c (dump_statistics): Split out from main; dump some hash
7109 table stats and target-specific stats.
7110 (start_time): No longer automatic to main.
7111 (main): Set file-level start_time and call dump_statistics at
7112 exit. Exit by calling xexit.
7113 (show_usage): Make --statistics description less specific.
7114 * subsegs.c (subsegs_print_statistics): New function.
7115 * write.c (write_print_statistics): New function.
7116 (n_fixups): New static variable.
7117 (fix_new_internal): Increment it.
7118 * read.c (read_print_statistics): New function.
7119 * read.h (read_print_statistics): Declare.
7120 * symbol.c (symbol_print_statistics): New function.
7121 * symbol.h (symbol_print_statistics): Declare.
7122 * hash.c (hash_print_statistics): New function.
7123 * hash.h (hash_print_statistics): Declare.
7124 * config/tc-i386.c (i386_print_statistics): New function.
7125 * config/tc-i386.h (i386_print_statistics): Declare.
7126 (tc_print_statistics): New macro.
7127 * messages.c (as_fatal, as_assert, as_abort): Use xexit, not
7128 exit.
7129
7130 * hash.c (DELETED): Rewrite to use a valid but unique address.
7131 (START_POWER): Reduce to 10.
7132 (enum stat_enum): New enumerator, replacing STAT_* index macros.
7133 Add new values for counting strcmp calls.
7134 (GROW_FACTOR): New macro.
7135 (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead
7136 of nesting blocks.
7137 (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2.
7138 (hash_new): Use FULL_VALUE.
7139 (struct hash_control): Definition moved here.
7140 (hash_code): Don't mask to low bits.
7141 (hash_ask): Mask returned hash code here. Check hash value before
7142 calling strcmp; count strcmp calls.
7143 * hash.h (struct hash_control): Declare, don't define, here.
7144 (HASH_STATLENGTH): Deleted.
7145 (struct hash_entry): Add field for hash code.
7146 (hash_say, hash_apply): Don't declare.
7147
7148 * hash.c (destroy): Return void.
7149 (applicatee): Ditto.
7150 (main): Fix declarations.
7151 (hash_apply): Return void. Argument `function' returns void. Put
7152 inside "#ifdef TEST".
7153 (hash_say): Define only if TEST is defined.
7154 * hash.h (hash_apply, hash_say): Declarations deleted.
7155
6a4667f4
ILT
7156Mon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com>
7157
7158 * configure: Rebuild with autoconf 2.7.
7159
330add8a
ILT
7160Tue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com>
7161
7162 * aclocal.m4 (AC_PROG_CC): Remove local definition.
7163 * configure: Rebuild with autoconf 2.6.
7164
520dd8d5
ILT
7165Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
7166
7167 * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
7168 (ppc_stabx): Don't increment ppc_debug_name_section_size.
7169 (ppc_bc): Likewise.
7170 (ppc_frob_file): Remove.
7171 * config/tc-ppc.h (tc_frob_file): Don't define.
7172 (ppc_frob_file): Don't declare.
7173
880b7429
KR
7174Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
7175
d6c4a3fa
KR
7176 * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
7177 * config/alpha-opcode.h: Include one-operand variants of jmp and
7178 jsr.
7179
880b7429
KR
7180 * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict
7181 with te-delta.h in 8.3 file systems.
7182 * configure.in: Adjusted.
7183
aa8a6656
ILT
7184Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
7185
880b7429
KR
7186 * config/tc-mips.c (s_err): Remove; just use the one in read.c.
7187
aa8a6656
ILT
7188 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
7189 number.
7190 * expr.c (operand): Handle MRI suffixes after unadorned 0.
7191
7b889f5e
KR
7192Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
7193
da9b55af
KR
7194 Version 2.6 released.
7195 * Makefile.in (VERSION): Updated to 2.6.
7196
7b889f5e
KR
7197 * config/obj-coff.c (write_object_file): Change use of md_do_align
7198 to pass a pointer rather than a fill value, to match other uses.
7199
46618ae6
KR
7200Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
7201
7b889f5e
KR
7202 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
7203
46618ae6
KR
7204 * as.c (main): Move md_end call to just after call to
7205 perform_an_assembly_pass. Delete cpu-specific code here.
7206 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
46618ae6
KR
7207 * config/tc-arm.c (md_end): Unused function deleted.
7208 * config/tc-ns32k.c (md_end): Ditto.
7209
7210 * config/tc-i386.c (i386_align_code): New function, moved here
7211 from HANDLE_ALIGN macro.
7212 * config/tc-i386.h (HANDLE_ALIGN): Call it.
7213
7214 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
7215
7216 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
7217 before comparing
7218
7219 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
7220
7221 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
7222 multi-byte nops to avoid changing gcc. The necessary gcc change
7223 might break old assemblers.
7224
7225 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
7226
7227 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
7228 generate optimal multi-byte nop instructions for ".align n"
7229 ".align n,0x90", and aligns requiring more than 15 bytes of
7230 padding still generate multiple 0x90's as before.
7231
7232Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
7233
7234 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
7235
51bc513e
SS
7236Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
7237
7238 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
7239 * configure: Update.
7240 * mpw-make.sed: Reorder commands to make sed happier.
7241 * config/te-macos.h: New file.
7242 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
7243
8b39c5df
JL
7244Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
7245
7246 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
7247 conditional branches.
7248 (md_apply_fix): Likewise.
7249
7250Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
7251
7252 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
7253 generate a reloc which the linker will not handle correctly. Fix
7254 overflow checking--R_IREL is 18 bits, not 17.
7255
6a649eda
ILT
7256Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
7257
a071b8e9
ILT
7258 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
7259 from a PC relative reloc if TC_A29K.
7260
7261 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
7262 code depends upon it.
7263
6a649eda
ILT
7264 * config/tc-a29k.c (md_operand): Handle $float, $double, and
7265 $extend. Based on code from Eric Freudenthal
7266 <freudenthal@nyu.edu>.
7267 * config/tc-a29k.h (LEX_DOLLAR): Define.
7268 * read.c (LEX_DOLLAR): Define if not defined.
7269 (lex_type): Use LEX_DOLLAR.
7270
6364a188
ILT
7271Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
7272
7273 * configure.in (a29k-nyu-sym1): New target, just like other a29k
7274 targets.
7275
0fa6f8f6
ILT
7276Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
7277
7278 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
7279
7280Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
7281
7282 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
7283 used only by "dlltool.c".
7284
eec2cfef
ILT
7285Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
7286
7287 * config/tc-alpha.c: Undefine inline if not __GNUC__.
7288 (md_pseudo_table): Don't define "extern".
7289
df7504dc
ILT
7290Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
7291
a3d1c561
ILT
7292 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
7293
df7504dc
ILT
7294 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
7295
07d012f6
ILT
7296Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
7297
36e80ac6
ILT
7298 * macro.c (macro_expand_body): Don't warn about == with a
7299 nonexistent parameter, in case it is in a comment field.
7300
07d012f6
ILT
7301 * as.c (main): On TC_A29K, call macro_init with macro_alternate
7302 set to 1.
7303 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
7304 set, even if macro_alternate is set.
7305 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
7306 (sub_actual): If macro_strip_at, and kind is '@', don't look up
7307 the token unless it ended in '@'.
7308 * config/tc-a29k.c (line_separator_chars): Remove '@'.
7309 * doc/c-a29k.texi: Document macro usage on A29K.
7310
01f108bc
ILT
7311Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
7312
7313 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
7314 signed word.
7315 (install_operand): Likewise.
7316
7317 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
7318
7319Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
7320
7321 * configure.in (m88k-motorola-sysv*): New target.
7322 * configure: Rebuild.
7323 * config/te-delta88.h: New file.
7324 * config/obj-coff.c (write_object_file): Use md_do_align if it is
7325 defined.
7326 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
7327 (md_do_align): Define.
7328 * config/tc-m88k.c: Include "subsegs.h".
7329 (m88k_do_align): New function.
7330
7331 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
7332 (COFF_NOLOAD_PROBLEM): Define.
7333 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
7334
7954cc14
KR
7335Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
7336
7337 * config/tc-i386.c (md_assemble): For a jump instruction with
7338 non-constant target, require 7 available bytes in the current
7339 frag, not 6.
7340
d033806f
FF
7341Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
7342
7343 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
7344 bfd/libelf.h.
7345
d7b2038f
ILT
7346Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
7347
7348 * configure.in (alpha-*-linux*): Use ecoff.
7349 * configure: Rebuild.
7350 * ecoff.c (ecoff_directive_extern): New function.
7351 (ecoff_directive_weakext): New function.
7352 (ecoff_build_symbols): Handle weak symbols.
7353 (ecoff_setup_ext): Likewise.
59c80ca2 7354 (ecoff_frob_symbol): Warn about weak common symbols.
d7b2038f
ILT
7355 * ecoff.h (ecoff_directive_extern): Declare.
7356 (ecoff_directive_weakext): Declare.
7357 * symbols.c (S_IS_WEAK): New function.
7358 * symbols.h (S_IS_WEAK): Declare.
7359 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
7360 "weakext".
7361 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
7362 (s_extern): Remove.
7363
cbdf59ad
ILT
7364Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
7365
b629f627
ILT
7366 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
7367
7ab1edc8
ILT
7368 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
7369 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
7370 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
7371 * config/obj-coff.c (coff_frob_symbol): Don't call
7372 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
7373 one. If OBJ_XCOFF, try to figure out whether the symbol is going
7374 to be dropped.
7375
31751d9d
ILT
7376 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
7377 (ppc_stab_symbol): New static variable.
7378 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
7379 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
7380 sy_tc.real_name to the stab string.
7381 (ppc_bc, ppc_ec): New static functions.
7382 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
7383 do anything.
7384 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
7385 suffix.
0e3dd9a0
ILT
7386 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
7387 entries.
31751d9d 7388
cbdf59ad
ILT
7389 * input-scrub.c (input_scrub_push): Reset sb_index.
7390
91123dbe
ILT
7391Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
7392
7393 * listing.c (listing_newline): Don't create a frag in the absolute
7394 section.
7395
73255941
ILT
7396Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
7397
df72d2a5
ILT
7398 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
7399 (ppc_csect): Move most of the code to ppc_change_csect, and call
7400 it.
7401 (ppc_change_csect): New static function, taken from ppc_csect.
7402 (ppc_section): New static function.
7403 (ppc_saw_abs): New static varable.
7404 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
7405 a symbol has no csect.
7406 (ppc_adjust_symtab): New function.
7407 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
7408 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
7409
7410 * write.c (write_object_file): If tc_adjust_symtab is defined,
7411 call it just before the call to obj_adjust_symtab.
7412
73255941
ILT
7413 * symbols.c (symbol_find_or_make): Change name to be const.
7414 * symbols.h (symbol_find_or_make): Update declaration.
7415
9bfaf1b9
KR
7416Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
7417
7418 * doc/as.texinfo (Align): Mention SH.
7419 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
7420 .align value.
7421 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
7422 (Z8000 Directives, even): Don't give numeric align value, instead
7423 explain behavior.
7424
ae143278
DE
7425Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
7426
7427 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
7428 instruction.
7429
270433cc
PB
7430Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
7431
7432 * Makefile.in (diststuff): Also make info.
7433 (maintainer-clean realclean): Also make clean-info.
7434
18a11401
JL
7435Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
7436
7437 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
7438 (pa_subspace): For ".nsubspa", always create a new subspace
7439 with the given attributes, even if one already exists with the
7440 same name.
7441
96fe71e1
MM
7442Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7443
7444 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
7445 TC_FORCE_RELOCATION, taking an additional section argument. If
7446 the section of the target symbol is not the same as the current
7447 section, always force the relocation to be used.
7448 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
7449
7450 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
7451 md_pcrel_from function, taking an additional section argument.
7452 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
7453
7454 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
7455 older TC_FORCE_RELOCATION if not defined.
7456 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
7457 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
7458 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
7459 TC_FORCE_RELOCATION.
7460
1d75481b
KR
7461Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
7462
7463 * input-scrub.c (as_where): Set name to null pointer if we don't
7464 have a file name.
7465 * messages.c (identify): Only print filename if non-null.
7466 (as_show_where): Ditto, for line number too.
7467 (as_warn_internal, as_bad_internal): Ditto.
7468
7469 * input-file.c (input_file_open): If the input file can't be
7470 opened, consider it an error.
7471
c625fc23
JSC
7472Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
7473
7474 * config/tc-mips.c: Added mips_4100 control, and support for
7475 accepting the 4100 as a MIPS architecture variant (md_begin,
7476 macro_build, mips_ip, md_parse_option). Adding suitable
7477 command-line OPTIONs, and updating the help text (md_show_usage).
7478
dd1a5316
KR
7479Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
7480
c625fc23
JSC
7481 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
7482 BFD_ASSEMBLER is defined.
7483
3366a224
KR
7484 * Use one active frag and one obstack per frag chain:
7485 * frags.c (frags): Variable deleted.
7486 (frag_alloc): New function.
7487 (frag_grow, frag_more, frag_variant, frag_now_fix,
7488 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
7489 frags variable.
7490 (frag_new): Ditto. Verify that frch_last and frag_now match on
7491 entry and exit, and that old frag_now has non-zero type. Replace
7492 "know" uses with "assert". Use frag_alloc instead of mucking with
7493 obstack alignment.
7494 * frags.h (frags): Declaration deleted.
7495 * subsegs.h (struct frchain): Add new field frch_frag_now.
7496 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
7497 variables.
7498 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
7499 give it any stricter alignment than frchainS structures need. Do
7500 not initialize frags obstack. Set frag_now to point to
7501 dummy_obstack. Initialize absolute_frchain.
7502 (subseg_set_rest): Save and restore frag_now in frch_frag_now
7503 field of frchainS. Don't create new frags on section switch, and
7504 use frag_alloc when creating a new frag chain. For absolute
7505 section, set frchain_now to absolute_frchain. Verify that
7506 frch_last and frag_now match on entry and exit. Initialize
7507 per-chain obstack, and under gcc, set required alignment to that
7508 needed by fragS structure.
c625fc23 7509
3366a224
KR
7510 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
7511
7512 * stabs.c (get_stab_string_offset): Only copy input string if a
7513 fresh copy is needed, not if the section already exists.
7514 (s_stab_generic): Cache stab section name to bypass lookups, since
7515 usually it will match. Could be made faster still by changing the
7516 memory allocation rules.
7517 (s_xstab): Cache section name to bypass repeated string
7518 allocation.
7519
7520 * frags.c (frag_new): Deleted register declarations.
7521
7522 * listing.c (frag_now): Don't declare.
7523
7524 * as.c (chunksize): New variable.
7525 (debug_memory): New variable.
7526 (main): If debug_memory is set, reduce chunksize and
7527 _bfd_chunksize.
7528 * as.h (chunksize): Declare it.
7529 * read.c (read_begin): Use it.
7530
de5ebe2e
KR
7531 * config/tc-alpha.c (md_shortopts): Include 'g'.
7532 (md_parse_option): Ignore it.
7533
dd1a5316
KR
7534 * Makefile.in (distclean): Remove Makefile and config.status from
7535 testsuite directory.
7536 (clean-here): Don't delete testsuite. Instead, delete only the
7537 files within it that would be generated by running tests.
7538
de5ebe2e
KR
7539 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
7540 frag_now_fix instead of accessing obstack info directly.
7541 * config/tc-arm.c (s_ltorg): Ditto.
7542 (md_assemble): Ditto.
7543
7544 * config/tc-i386.c (md_assemble): Call frag_grow instead of
7545 obstack_room.
7546
625f4e48
KR
7547Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
7548
7549 * stabs.c (aout_process_stab): Insert debug symbol into symbol
7550 chain after parsing value expression, if any, to avoid separating
7551 continued .stabs lines.
7552
33a8c1b6
ILT
7553Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
7554
7555 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
7556 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
7557
b6b8f911
MM
7558Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
7559
625f4e48
KR
7560 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
7561 -mcom support and PPC_OPCODE_ANY for -many.
7562 (md_parse_option): Ditto.
7563 (ppc_arch): Ditto.
7564 (md_begin): For duplicate instructions, print all duplicates
7565 before aborting.
b6b8f911 7566
4c2935f4
MM
7567Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
7568
7569 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
7570 common mode operation.
7571 (md_show_usage): Add -mcom to usage message.
4c2935f4
MM
7572
7573Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
7574
7575 * expr.c (op_rank): Add O_symbol_rva.
7576 * expr.h (operatorT): Add O_symbol_rva.
7577 * read.c (cons_worker): Set O_symbol_rva when necessary.
7578 * write.c (fix_new_exp): Understand O_symbol_rva.
7579
7db865dc
ILT
7580Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
7581
7582 * config/tc-mips.c: Correct s_cons arguments. From Michael
7583 Joosten <joost@ori.cadlab.de>.
7584
1b13e6fc
ILT
7585Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
7586
7587 * config/tc-ppc.c (ppc_macro): Make count unsigned.
7588 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
7589 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
7590 the fix_line field.
7591 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
7592 make non-static. Change all users.
7593 * config/obj-coff.h (coff_n_line_nos): Declare.
7594
9e3e3d4c
KR
7595Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
7596
7597 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7598
7599 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
7600
7601 * config/obj-elf.c (obj_elf_common): Convert specified byte
7602 alignment to power of two. Set size of local bss symbol.
7603
7604 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
7605
13a6c753
ILT
7606Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
7607
7608 * sb.c, macro.c: Decide whether to include <string.h> or
7609 <strings.h> just as as.h does.
7610
a75aafcd
DE
7611Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
7612
7613 * Makefile.in (site.exp): Fix setting of $srcdir.
7614
7615 * config/tc-arm.c (md_atof): Fix little-endian output.
f6ec8c46
DE
7616 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
7617 all coff targets.
a75aafcd 7618
d89861c7
KR
7619Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
7620
4d2ba393
KR
7621 * doc/as.texinfo: Split out the NS32k family documentation,
7622 despite its being commented out for now.
7623 * doc/c-ns32k.texi: New file.
7624
2c5eb48d
KR
7625 * sb.c, macro.c: Include string.h.
7626
6b0a6eaa
KR
7627 * Makefile.in (comparison): Only check *.o; we don't care if
7628 timestamps inserted by the native linker differ.
7629
d89861c7
KR
7630 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
7631 if alignment stricter than 4 bytes is requested; in that case,
7632 align to a 4-byte boundary first.
7633
70aeac05
KR
7634 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
7635
7636 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
7637 uninitialized" warning for `Max_Source_Offset'.
7638
eaaa2a42
KK
7639Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
7640
7641 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
7642 qualifiers and detect errors if present.
7643 (md_assemble): Add call to parse_toc_entry. Also added some support
7644 for the [tocv] qualifier.
7645 (ppc_pe_tocd): New function to support data in the toc section.
7646
cd557d83
ILT
7647Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
7648
7649 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
7650 an absolute symbol.
7651
42ac8fa8
ILT
7652Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
7653
01f108bc 7654 * config/tc-m68k.c (isword): Accept all values from -65536 to
cd557d83
ILT
7655 +65535, so ~VAL will not be rejected.
7656
42ac8fa8
ILT
7657 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
7658 skip characters after the pseudo-op.
7659 (s_else): Likewise.
7660 * read.c (get_line_sb): Don't look past buffer_limit.
7661 (s_include): In MRI mode, skip characters after the file name.
7662
eef66934
ILT
7663Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
7664
7665 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
7666 periods in register names.
7667
cdc49cba 7668For older changes see ChangeLog.1.
This page took 0.486677 seconds and 4 git commands to generate.