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