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