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