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