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