* cgen.c (cgen_md_apply_fix3): set_operand renamed to set_vma_operand.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 Tue Jul 21 16:50:52 1998 Doug Evans <devans@seba.cygnus.com>
2
3 * cgen.c (cgen_md_apply_fix3): set_operand renamed to set_vma_operand.
4 Update call to insert_operand.
5
6 start-sanitize-am33
7 Tue Jul 21 10:58:47 1998 Jeffrey A Law (law@cygnus.com)
8
9 * config/tc-mn10300.c (md_assemble): Handle autoincrement addressing
10 modes.
11
12 end-sanitize-am33
13 Fri Jul 17 11:42:20 1998 Nick Clifton <nickc@cygnus.com>
14
15 * config/tc-m32r.c (ms_show_usage): Formatting changes.
16
17 Wed Jul 15 15:38:28 1998 Ian Lance Taylor <ian@cygnus.com>
18
19 * config/tc-i386.c (md_assemble): Don't get confused by trailing
20 whitespace after a prefix operator.
21
22 start-sanitize-beos
23 Tue Jul 14 15:32:56 1998 Richard Henderson <rth@cygnus.com>
24
25 * configure.in (i386-*-beos{pe,elf,}*): Recognize.
26
27 end-sanitize-beos
28 Tue Jul 14 12:33:44 1998 Chris Torek <torek@bsdi.com>
29
30 * config/tc-sparc.c (log2): New static function.
31 (s_reserve): Use log2 to convert alignment before calling
32 record_alignment.
33 (s_common): Use log2 to convert alignment before calling
34 record_alignment and frag_align.
35 (sparc_cons_align): Use log2.
36
37 Tue Jul 14 11:58:40 1998 Ian Lance Taylor <ian@cygnus.com>
38
39 * config/tc-sparc.c (s_reserve): Set symbol size if OBJ_ELF.
40 (s_common): Likewise.
41
42 * config/tc-sparc.c (sparc_handle_align): Reindent a bit. Correct
43 initialization of waddr.
44 (sparc_elf_final_processing): Add default case to switch.
45
46 Tue Jul 14 11:00:16 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
47
48 * doc/c-i386.texi: Fix a typo. Use the term 80-bit real rather
49 than temporary real.
50
51 Mon Jul 13 13:55:42 1998 Ian Lance Taylor <ian@cygnus.com>
52
53 * write.c (subsegs_finish): Don't align the segments if there were
54 any errors.
55
56 * config/obj-coff.c (c_symbol_merge): Correct number of bytes when
57 copying aux information.
58
59 * expr.c (make_expr_symbol): Catch attempts to turn an O_big
60 expression into a symbol.
61
62 Mon Jul 13 13:29:04 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
63
64 * config/tc-i386.c (mode_from_disp_size): Change arg and return
65 type to unsigned int.
66 (md_assemble): Change type used to store offsets from unsigned
67 long to long.
68 (i386_operand): Switch error check to only call RESTORE_END_STRING
69 once after parse_register.
70
71 Fri Jul 10 16:00:04 1998 Nick Clifton <nickc@cygnus.com>
72
73 * config/tc-v850.c (md_show_usage): Changed format to match that
74 of gcc, ld, etc.
75
76 * as.c (show_usage): Changed format to match that of gcc, ld, etc.
77
78 Thu Jul 9 12:09:57 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
79
80 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't adjust vtable
81 relocs.
82 (md_apply_fix_2): Force the symbol of the vtable reloc to be
83 weak.
84
85 Thu Jul 9 11:31:54 1998 Ian Lance Taylor <ian@cygnus.com>
86
87 * doc/Makefile.am (MAINTAINERCLEANFILES): Define.
88 * doc/Makefile.in: Rebuild.
89
90 Wed Jul 8 12:18:56 1998 Jeffrey A Law (law@cygnus.com)
91
92 * config/tc-mips.c (mips_ip, case 'i' and 'j'): Mask off high bits
93 for %lo expressions.
94 (mips_ip, case 'u'): Move range check after code to mask
95 off bits in %hi/%lo expressions. Mask off high bits for
96 %lo expressions.
97
98 Tue Jul 7 17:57:38 1998 Ian Lance Taylor <ian@cygnus.com>
99
100 * doc/Makefile.am (gasver.texi): New target.
101 (as.info, as.dvi): Depends upon gasver.texi.
102 * doc/as.texinfo: Include gasver.texi. Mention version number on
103 title page and in top node.
104 * doc/Makefile.in: Rebuild.
105
106 Tue Jul 7 11:42:16 1998 Richard Henderson <rth@cygnus.com>
107
108 * listing.c (listing_listing): For EDICT_LIST, skip all lines up to
109 but not including the line containing the edict.
110 * listing.h (LISTING_EOF): New.
111 * input-scrub.c (input_scrub_next_buffer): Call it.
112
113 Tue Jul 7 13:00:37 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
114
115 * config/tc-i386.c (i386_operand): Don't set the size of an
116 immediate address based solely on the suffix and the mode.
117
118 * config/tc-i386.c (md_assemble): Add assertion to make sure
119 overlap2 does not set Imm.
120
121 * config/tc-i386.c (space_chars): Remove. The scrubber converts
122 sequences of whitespace to a single space.
123 (is_space_chars): Just compare with space.
124 (md_begin): Don't initialize space_chars.
125 (md_assemble): Just skip a single whitespace character.
126 (i386_operand): Rewrite base-index parsing to use new
127 parse_register, and to skip white space. Skip white space in a
128 number of other places too. Don't give error message if
129 parse_register fails.
130 (parse_register): Change reg_string parameter to be non-const.
131 Add end_op parameter. Skip white space after the `%', and return
132 end of register string. Give error message here rather than
133 caller.
134
135 Fri Jul 3 15:34:34 1998 Ian Lance Taylor <ian@cygnus.com>
136
137 Based on patch from Matt Semersky <matts@scd.hp.com>:
138 * expr.c (op_encoding): Make const.
139 (expr_set_precedence): New function.
140 (expr_begin): Don't set operator rankings, just call
141 expr_set_precedence.
142 * expr.h (expr_set_precedence): Declare.
143 * read.c (s_mri): Call expr_set_precedence.
144
145 Thu Jul 2 16:24:58 1998 Ian Lance Taylor <ian@cygnus.com>
146
147 * doc/as.texinfo (Statements): Remove paragraph discussing
148 continuing lines with a backslash. This hasn't worked for years,
149 if it ever did.
150
151 Thu Jul 2 14:06:22 1998 Klaus Kaempf <kkaempf@rmi.de>
152
153 * obj-vms.c: Add C++ support with ctors/dtors sections. Add weak
154 symbol definitions.
155 (Ctors_Symbols, Dtors_Symbols): New symbol chains.
156 (ps_CTORS, ps_DTORS): New section types.
157 (vms_fixup_xtors_section): New function
158 (Ctors_Psect, Dtors_Psect): Define.
159 (IS_GXX_XTOR): Define
160 (global_symbol_directory): Change check of gxx_bug_fixed to 0.
161 Filter static constructors/destructors and add to
162 Ctors_Symbols/Dtors_Symbols chain.
163 (vms_write_object_file): Write Ctors_Symbols/Dtors_Symbols to
164 appropriate section.
165
166 * tc-alpha.h (TARGET_FORMAT): Rename "evax-alpha" to "vms-alpha".
167 * makefile.vms: Merge vax/vms support.
168
169 Wed Jul 1 20:06:20 1998 Richard Henderson <rth@cygnus.com>
170
171 * config/obj-elf.c (obj_elf_vtable_inherit, obj_elf_vtable_entry): New.
172 (elf_pseudo_table): Add them.
173 * config/tc-mips.c (mips_force_relocation): Force vtable relocs.
174 (md_apply_fix): Accept them.
175 (mips_fix_adjustable): Don't adjust them.
176 (tc_gen_reloc): Mung BFD_RELOC_VTABLE_ENTRY for Rel.
177 * config/tc-ppc.c (md_apply_fix3): Accept vtable relocs.
178 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Force vtable relocs.
179 (tc_fix_adjustable): Don't adjust them.
180
181 Wed Jul 1 16:35:32 1998 Doug Evans <devans@seba.cygnus.com>
182
183 * Makefile.am (CGEN_CPU_PREFIX): New variable.
184 (cgen.o): Use it.
185 * Makefile.in: Regenerate.
186 * configure.in: AC_SUBST cgen_cpu_prefix.
187 * configure: Regenerate.
188
189 Wed Jul 1 21:38:56 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
190
191 * config/tc-sh (COND_JUMP_DELAY, COND12_DELAY_LENGTH): Define.
192 Changed all users of COND12_DELAY.
193
194 start-sanitize-am33
195 Mon Jun 29 14:58:36 1998 Jeffrey A Law (law@cygnus.com)
196
197 * config/tc-mn10300.c (r_registers): Fix typo and add some missing
198 registers.
199
200 end-sanitize-am33
201 start-sanitize-branchbug4011
202 Mon Jun 29 09:36:27 1998 Gavin Koch <gavin@cygnus.com>
203
204 * config/tc-mips.c (prev_insn_labels): New.
205 (mips_fix_4011_branch_bug): New.
206 (append_insn): Watch for and handle branchs with labels.
207 (mips_no_prev_insn): Initialize prev_insn_labels.
208 (md_longopts,md_parse_option): Add {no-}fix-4011-branch-bug option.
209
210 end-sanitize-branchbug4011
211 Fri Jun 26 11:21:11 1998 Jeffrey A Law (law@cygnus.com)
212
213 * config/tc-mn10300.c (set_arch_mach): New function.
214 (md_pseudo_table): Add pseudo-ops to set the current machine type.
215 (md_begin): Default to mn10300 mode.
216 (md_assemble): Only accept instructions for the core mn10300
217 chip and the active machine type.
218
219 Wed Jun 24 19:06:04 1998 Ian Lance Taylor <ian@cygnus.com>
220
221 * subsegs.h (segment_info_type): Give the struct a name.
222 * config/tc-h8300.h (tc_reloc_mangle): Add prototype.
223 * config/tc-h8500.h (tc_reloc_mangle): Declare.
224 * config/tc-sh.h (sh_coff_reloc_mangle): Add prototype.
225 * config/tc-w65.h (tc_reloc_mangle): Declare.
226 * config/tc-z8k.h (tc_reloc_mangle): Declare.
227
228 Wed Jun 24 13:45:00 1998 Catherine Moore <clm@cygnus.com>
229
230 * config/tc-v850.c (v850_comm): Restore old section
231 after common processing.
232
233 Wed Jun 24 11:50:54 1998 Klaus Kaempf <kkaempf@progis.de>
234
235 * config/obj-vms.c (Create_VMS_Object_File): Force binary file.
236
237 start-sanitize-am33
238 Wed Jun 24 09:38:10 1998 Jeffrey A Law (law@cygnus.com)
239
240 * config/tc-mn10300.c (r_registers): Add a0-a3,d0-d3 and e0-e7
241 as synonyms for "rN" registers.
242 (xr_registers): Add mcrh, mcrl, mcvf, mdrq and sp as synonyms
243 for "xrN" registers.
244 (md_assemble): Fix typo computing the size of relocations.
245
246 end-sanitize-am33
247 Tue Jun 23 17:47:31 1998 Jim Wilson <wilson@cygnus.com>
248
249 * config/tc-h8300.c (do_a_fix_imm, build_bytes): Replace cast to
250 char with code that explicitly sign-extends.
251
252 Tue Jun 23 13:54:57 1998 Nick Clifton <nickc@cygnus.com>
253 start-sanitize-v850e
254 * config/tc-v850.c (md_begin): Restore text section as the current
255 section after creating call table sections.
256 end-sanitize-v850e
257 * config/obj-coff.h (SYM_AUXINFO): New macro to conceal ugly
258 code.
259
260 * config/obj-coff.c (c_symbol_merge): Replace complex expresion
261 with call to macro SYM_AUXINFO.
262
263 Tue Jun 23 15:09:27 1998 Mike Stump <mrs@wrs.com>
264
265 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
266 with the program transform name.
267 * Makefile.in: Rebuild.
268
269 Mon Jun 22 19:52:42 1998 Ian Lance Taylor <ian@cygnus.com>
270
271 * config/obj-coff.c (c_symbol_merge): Fix copying of auxiliary
272 information.
273
274 start-sanitize-am33
275 Mon Jun 22 13:45:19 1998 Jeffrey A Law (law@cygnus.com)
276
277 * config/tc-mn10300: Handle FMT_D10 instructions.
278
279 end-sanitize-am33
280 Mon Jun 22 15:18:58 1998 Ian Lance Taylor <ian@cygnus.com>
281
282 * config/tc-i386.c (i386_operand): Be prepared for a space between
283 the open parenthesis and the start of the register operand,
284 because of the June 16 change.
285
286 start-sanitize-r5900
287 Mon Jun 22 11:08:07 1998 Frank Ch. Eigler <fche@cygnus.com>
288
289 * config/tc-mips.c (mips_ip): Allow VU vi and vf registers
290 to be named with a `$' prefix. Likewise, allow CFC2/CTC2 to
291 refer to "$viNN" registers.
292
293 end-sanitize-r5900
294 Sun Jun 21 21:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
295
296 * config/tc-sh.c (md_apply_fix): Handle weak symbols correctly if
297 BFD_ASSEMBLER.
298
299 Sun Jun 21 12:26:36 1998 Nick Clifton <nickc@cygnus.com>
300
301 * config/tc-d30v.c (d30v_align): Always perform alignment request,
302 even if it is belived to be unnecessary.
303
304 start-sanitize-r5900
305 Fri Jun 19 19:56:50 1998 Jeffrey A Law (law@cygnus.com)
306
307 * config/tc-mips.c (hilo_interlocks): Check mips_5900, not
308 mips_cpu == 5900.
309
310 end-sanitize-r5900
311 start-sanitize-am33
312 Fri Jun 19 16:49:56 1998 Jeffrey A Law (law@cygnus.com)
313
314 * config/tc-mn10300.c (md_assemble): Handle FMT_D8 and FMT_D9
315 instruction formats. Handle MN10300_OPERAND_24BIT modifier.
316 (mn10300_insert_operand): Likewise.
317 (mn10300_check_operand): Likewise.
318
319 end-sanitize-am33
320 Fri Jun 19 13:57:06 1998 Ian Lance Taylor <ian@cygnus.com>
321
322 * write.c (adjust_reloc_syms): Never adjust relocs against weak
323 symbols.
324 * config/tc-mips.c (md_apply_fix): Adjust accordingly.
325
326 Fri Jun 19 09:50:17 1998 Jeffrey A Law (law@cygnus.com)
327
328 start-sanitize-am33
329 * config/tc-mn10300.c (r_registers): Add missing registers.
330 (xr_registers): New set of registers.
331 (xr_register_name): New function.
332 (md_assemble): Handle XRREG and PLUS operands. Tweak handling of
333 RREG operand insertion. Handle new D6 and D7 instruction formats.
334 end-sanitize-am33
335 * config/tc-mn10300.c (mn10300_insert_operand): Do not hardcode the
336 shift amount for a repeated operand. The shift amount for the
337 repeated copy comes from the size of the operand.
338
339 Fri Jun 19 00:44:19 1998 Jeffrey A Law (law@cygnus.com)
340
341 * config/tc-h8300.c (get_operand): Fix typos in ldm/stm support.
342
343 start-sanitize-sky
344 Fri Jun 19 00:04:26 1998 Doug Evans <devans@seba.cygnus.com>
345
346 * config/tc-dvp.c (md_apply_fix3): Handle new relocs
347 BFD_RELOC_MIPS_DVP_11_S4, BFD_RELOC_MIPS_DVP_U15_S3.
348
349 end-sanitize-sky
350 start-sanitize-am33
351 Wed Jun 17 18:09:03 1998 Jeffrey A Law (law@cygnus.com)
352
353 * config/tc-mn10300.c (r_registers): New register table.
354 (r_register_name): New function.
355 (md_assemble): Handle new am33 operand types.
356
357 end-sanitize-am33
358 Wed Jun 17 13:07:05 1998 Ian Lance Taylor <ian@cygnus.com>
359
360 * config/tc-mips.c (md_show_usage): Fix -mipsN usage.
361
362 Tue Jun 16 13:06:21 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
363
364 * app.c (do_scrub_begin): If tc_symbol_chars is defined, treat all
365 characters in it as LEX_IS_SYMBOL_COMPONENT.
366 * config/tc-i386.h (tc_symbol_chars): Define.
367 (extra_symbol_chars): Declare.
368 * config/tc-i386.c (extra_symbol_chars): Define.
369 (comment_chars): Don't use '/' as comment start if TE_LINUX.
370 (line_comment_chars): Set to '/' if TE_LINUX.
371 * doc/c-i386.texi (i386-prefixes): Update.
372 * doc/internals.texi (CPU backend): Document tc_symbol_chars.
373
374 Fri Jun 12 13:36:54 1998 Tom Tromey <tromey@cygnus.com>
375
376 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
377 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
378
379 start-sanitize-sky
380 Fri Jun 12 12:46:57 1998 Doug Evans <devans@canuck.cygnus.com>
381
382 * config/tc-dvp.c (create_vuoverlay_section): Don't set a non-zero
383 section vma.
384
385 end-sanitize-sky
386 1998-06-12 Vladimir N. Makarov <vmakarov@cygnus.com>
387
388 * config/tc-d10v.c (md_apply_fix3): Checking displacement
389 constraint in instructions REP & REPI.
390
391 Thu Jun 11 08:56:46 1998 Nick Clifton <nickc@cygnus.com>
392
393 * config/tc-d30v.c (md_apply_fix3): Catch BFD_RELOC_8,
394 BFD_RELOC_16, BFD_RELOC_64 and issue appropriate error messages.
395
396 (check_range): If the operand is shifted, then shift the number
397 before checking its range.
398
399 * write.c (adjust_reloc_syms): Add more checks for NULL pointers.
400
401 * config/tc-v850.c (v850_comm): Set SEC_COMMON bit on special
402 common sections.
403
404 Wed Jun 10 17:26:35 1998 Nick Clifton <nickc@cygnus.com>
405
406 * config/tc-v850.c (v850_comm): Create special sections as needed.
407
408 1998-06-10 Vladimir N. Makarov <vmakarov@cygnus.com>
409
410 * config/tc-d10v.c (write_2_short): Addition of swapping
411 instructions for sequential and reverse sequential order when
412 given order is not possible.
413
414 start-sanitize-sky
415 Tue Jun 9 12:20:44 1998 Doug Evans <devans@canuck.cygnus.com>
416
417 * config/tc-dvp.c (assemble_vu): Print better error message if
418 lower insn is missing.
419
420 end-sanitize-sky
421 Tue Jun 9 13:52:53 1998 Ian Lance Taylor <ian@cygnus.com>
422
423 * Makefile.am: Rebuild dependencies.
424 (DEP_INCLUDES): Fix reference to intl build directory.
425 * Makefile.in: Rebuild.
426
427 Tue Jun 9 12:20:05 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
428
429 * doc/c-i386.texi: Update 16 bit documentation.
430
431 * config/tc-i386.h: Change Data16 to Size16, Data32 to Size32,
432 IgnoreDataSize to IgnoreSize as they are used for address size as
433 well as data size.
434 * config/tc-i386.c: Likewise. Add code to reject addr32/data32 in
435 32-bit mode, similarly addr16/data16 and variants.
436
437 Mon Jun 8 18:32:01 1998 Nick Clifton <nickc@cygnus.com>
438
439 * config/tc-d30v.c (md_assemble): Fix handling of reverse
440 sequential word multiply instructions.
441
442 (do_assemble): Add extra command line argument, to allow mul32
443 attribute to be preserved across parallel insns.
444 (md_assemble): Insert NOPs between explicitly parallel insns which
445 contain an 32 bit multiply and a 16 multiply.
446
447 start-sanitize-sky
448 Mon Jun 8 15:41:43 1998 Doug Evans <devans@canuck.cygnus.com>
449
450 * config/tc-dvp.c (dvp_relax_frag): Adjust target address by stretch.
451
452 end-sanitize-sky
453 Mon Jun 8 12:20:30 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
454
455 * config/tc-i386.c: REPNE renamed to REPNE_PREFIX_OPCODE, and
456 likewise for REPE.
457
458 * config/tc-i386.c (reloc): Add braces.
459
460 * config/tc-i386.c (struct _i386_insn): Rename bi to sib to be
461 consistent with Intel naming.
462 * config/tc-i386.h (base_index_byte): Rename to sib_byte. Don't
463 use bitfields in sib_byte.
464 (modrm_byte): Don't use bitfields here either.
465
466 * config/tc-i386.c (current_templates): Add const.
467 (parse_register): Add const to return, param, and char *s.
468 (i386_operand): Add const to reg_entry *r.
469 * config/tc-i386.h (templates): Add const to start, end.
470
471 Inspired by code for 16 bit gas support from Martynas Kunigelis
472 <martynas@nm3.ktu.lt>:
473 * config/tc-i386.c (md_assemble): Add full support for 16 bit
474 modrm, and Jump, JumpByte, JumpDword, JumpInterSegment insns.
475 (uses_mem_addrmode): Remove.
476 (md_estimate_size_before_relax): Add support here too.
477 (md_relax_table): Rewrite interface to md_relax for 16 bit
478 support.
479 (BYTE, WORD, DWORD, UNKNOWN_SIZE): Remove.
480 (opcode_suffix_to_type): Remove.
481 (CODE16, SMALL, SMALL16, BIG, BIG16): Define.
482 (SIZE_FROM_RELAX_STATE): Modify to suit above.
483 (md_convert_frag): Likewise.
484 (i386_operand): Add support for 16 bit base/index regs,
485 immediates, and displacements. Remove some unnecessary casts, and
486 localise end_of_operand_string, displacement_string_start,
487 displacement_string_end variables. Add GCC_ASM_O_HACK.
488 * config/tc-i386.h (NO_BASE_REGISTER_16): Define.
489
490 * config/tc-i386.c (prefix_hash): Remove.
491 (md_begin): Rewrite without obstacks. Remove prefix hash table
492 handling. Rewrite lexical table handling.
493 (i386_print_statistics): Don't print prefix statistics.
494 (md_assemble): Rewrite instruction parser so that line is not
495 converted to lower case. Don't do a hash_find for prefixes,
496 instead recognise them via opcode modifier.
497 (expecting_operand, paren_not_balanced): Localise variables.
498 * config/tc-i386.h (IsPrefix): Define.
499 (prefix_entry): Remove.
500
501 * config/tc-i386.h (PREFIX_SEPERATOR): Don't define.
502 * config/tc-i386.c (PREFIX_SEPARATOR): Define here instead, using
503 '\\' in case where comment_chars contains '/'.
504
505 * config/tc-i386.c (MATCH): Ensure given operand and template
506 match for JumpAbsolute. Makes e.g. `ljmp table(%ebx)' invalid;
507 you must write `ljmp *table(%ebx)'.
508
509 From H.J. Lu <hjl@gnu.org>:
510 * config/tc-i386.c (BFD_RELOC_16, BFD_RELOC_16_PCREL): Define
511 as 0 ifndef BFD_ASSEMBLER.
512 (md_assemble): Allow immediate operands without suffix or
513 other reg operand to default in size to the current code size.
514
515 start-sanitize-v850e
516 Mon Jun 8 09:45:00 1998 Catherine Moore <clm@cygnus.com>
517
518 * config/tc-v850.c (md_begin): Restore creation of
519 .call_table_text and .call_table_data sections.
520
521 end-sanitize-v850e
522 Sat Jun 6 00:02:41 1998 Nick Clifton <nickc@cygnus.com>
523
524 * config/tc-d30v.c (md_assemble): Set execution type to unknown
525 after emitting a word of noops.
526
527 Fri Jun 5 23:27:04 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
528
529 * config/tc-i386.c (mode_from_disp_size): Disp16 is mode 2.
530 (i386_operand): Simplify checks for valid base/index combinations.
531 Disallow `in 4(%dx),%al'.
532
533 * config/tc-i386.c (struct _i386_insn): Make regs, base_reg, and
534 index_reg const.
535 (add_prefix): Change parameter from char to int.
536
537 * config/tc-i386.h (Ugh): Define opcode modifier.
538 * config/tc-i386.c (md_assemble): Print warnings for Ugh insns.
539
540 * config/tc-i386.c (md_assemble): Rewrite MATCH and
541 CONSISTENT_REGISTER_MATCH macros to check register types more
542 thoroughly. Check for illegal suffix/operand combinations
543 when matching insns with operands. Handle new `s' suffix, and
544 associated FloatMF opcode modifier for float insns with memory
545 operands.
546 * config/tc-i386.h (FloatMF): Define new opcode modifier.
547 (No_sSuf, No_bSuf, No_wSuf, No_lSuf): Likewise.
548 (SHORT_OPCODE_SUFFIX, LONG_OPCODE_SUFFIX): Define.
549 * config/tc-i386.c: Rename WORD_PREFIX_OPCODE to
550 DATA_PREFIX_OPCODE throughout.
551
552 * config/tc-i386.c (REGISTER_WARNINGS): Define.
553 (md_assemble): Rewrite suffix/register operand checking code to be
554 more thorough. Remove Abs8,16,32. Change occurrences of Mem to
555 AnyMem, the better to grep.
556 (pi): Remove Abs.
557 (i386_operand): Don't set Mem bits in i.types[this_operand] when
558 given a memory operand. Don't set Abs bits either.
559 (type_names): Remove Mem*, Abs*.
560 * config/tc-i386.h (Mem8, Mem16, Mem32, Abs8, Abs16, Abs32): Don't
561 define opcode_modifiers as these cases are handled by Disp8,
562 Disp16, Disp32 and suffix checks.
563 (COMES_IN_BOTH_DIRECTIONS): Remove.
564 (FloatR): Define. It's OK to share the bit with ReverseRegRegmem.
565
566 * config/tc-i386.c (md_assemble): Don't emit operand size prefix
567 if IgnoreDataSize modifier given. Remove ShortformW modifier
568 test. Add test for ShortForm in W base_opcode modification.
569 Merge Seg2ShortForm and Seg3ShortForm code.
570 * config/tc-i386.h (ShortFormW): Remove.
571 (IgnoreDataSize): Define.
572
573 Fri Jun 5 10:50:53 1998 Nick Clifton <nickc@cygnus.com>
574
575 * config/tc-d30v.c (md_assemble): Store previous segment state
576 with previous instruction.
577
578 Wed Jun 3 18:21:56 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
579
580 * config/tc-i386.c (SCALE1_WHEN_NO_INDEX): Define.
581 (ebp, esp): Remove static variables.
582 (MATCH): Remove test for InOutPortReg.
583 (i386_operand): Properly handle InOutPortReg here instead.
584 Disallows `inb (%dx,2)', `inb %es:(%dx)' and `mov (%dx),%ax'
585 (md_assemble): Simplify and correct modrm and sib generation.
586 (i386_operand): Add warning for scale without index.
587 Rewrite checks for valid base/index combinations.
588
589 * config/tc-i386.c (END_STRING_AND_SAVE): Protect arguments of
590 macros and enclose in do while(0).
591 (RESTORE_END_STRING): Likewise.
592 (md_assemble): Add one to printed operand number so we start
593 from 1 not 0. Add some more gettext invocations.
594 (i386_operand): Fix `%%s' -> `%%%s'. Inc printed operand
595 number here too.
596
597 * config/tc-i386.h (WAIT_PREFIX, LOCKREP_PREFIX, ADDR_PREFIX,
598 DATA_PREFIX, SEG_PREFIX): Define.
599 * config/tc-i386.c (struct _i386_insn): Remove wait_prefix field.
600 (check_prefix): Remove function.
601 (add_prefix): New function. Add prefix to i.prefix as well as
602 doing checks.
603 (md_assemble): Changes for add_prefix. Remove hack for wait
604 prefix, instead always output prefixes in fixed order. Test
605 for jcxz/loop when selecting between word & dword operations,
606 and add address size prefix rather than operand size prefix.
607 Remove operand -> address size hack when emitting jcxz/loop.
608 (i386_operand): Remove O_Absent check as it's done in expr.
609
610 Wed Jun 3 15:09:10 1998 Ian Lance Taylor <ian@cygnus.com>
611
612 * configure.in: Recognize m5200 as a cpu_type of m68k.
613 * aclocal.m4: Rebuild with current libtool.
614 * configure: Rebuild.
615
616 Wed Jun 3 14:11:59 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
617
618 * config/tc-m68k.c (md_estimate_size_before_relax): Add more calls
619 to relaxable_symbol to prevent references to external symbol from
620 being relaxed.
621
622 Wed Jun 3 14:10:36 1998 Ian Lance Taylor <ian@cygnus.com>
623
624 * config/tc-m68k.c (relaxable_symbol): If TARGET_OS is "elf", all
625 symbols are relaxable.
626
627 start-sanitize-sky
628 Wed Jun 3 10:26:04 1998 Doug Evans <devans@canuck.cygnus.com>
629
630 * config/tc-dvp.c (md_begin): Change alignment of .DVP.ovlytab to 4.
631 (create_vuoverlay_section): Entries are 4 bytes not 8.
632
633 end-sanitize-sky
634 Wed Jun 3 09:16:00 1998 Catherine Moore <clm@cygnus.com>
635
636 * config/tc-v850.c (md_begin): Don't create special
637 sections by default.
638
639 Tue Jun 2 14:52:56 1998 Jeffrey A Law (law@cygnus.com)
640
641 * config/tc-mips.c (macro): For div and udiv, close the
642 reorder block as soon as possible.
643
644 Tue Jun 2 15:36:13 1998 Ian Lance Taylor <ian@cygnus.com>
645
646 From Matt Semersky <matts@scd.hp.com>:
647 * macro.c (macro_mri_mode): New function.
648 * macro.h (macro_mri_mode): Declare.
649 * read.c (s_mri): Call macro_mri_mode when switching in and out of
650 MRI mode.
651
652 Tue Jun 2 13:32:22 1998 Klaus Kaempf <kkaempf@progis.de>
653
654 * config/tc-alpha.c (s_alpha_comm): Allow alignment parameter in
655 OBJ_EVAX case.
656
657 * config/tc-alpha.c (s_alpha_comm): Defer restoring character
658 until after xstrdup in OBJ_EVAX case.
659
660 Tue Jun 2 13:11:13 1998 Pat Rankin <rankin@eql.caltech.edu>
661
662 * config/tc-vax.c (md_create_short_jump): Fix off by two bug in
663 offset calculation. Also, use VAX_BRW from vax-inst.h instead
664 of hardcoded magic number.
665 (md_create_long_jump): Use VAX_JMP and VAX_ABSOLUTE_MODE macros.
666
667 Tue Jun 2 09:25:34 1998 Doug Evans <devans@canuck.cygnus.com>
668
669 * read.c (do_s_func): New function.
670 (s_func): Call it.
671 * read.h (do_s_func): Add prototype.
672 start-sanitize-sky
673 * config/tc-dvp.c (md_pseudo_table): Add .func/.endfunc.
674 (s_dvp_func): New function.
675 end-sanitize-sky
676
677 start-sanitize-r5900
678 Mon Jun 1 17:04:56 1998 Jeffrey A Law (law@cygnus.com)
679
680 * config/tc-mips.c (hilo_interlocks): The r5900 has HILO interlocks.
681
682 end-sanitize-r5900
683 Mon Jun 1 12:47:30 1998 Doug Evans <devans@canuck.cygnus.com>
684
685 * config/tc-m32r.c (m32r_do_align): Only fill code sections with
686 nops if fill pattern not specified.
687
688 Mon Jun 1 14:08:35 1998 Ian Lance Taylor <ian@cygnus.com>
689
690 From Andrew Crabtree <andrewc@typhoon.rose.hp.com>:
691 * config/te-go32.h (TE_GO32): Define.
692 * config/tc-i386.h (LOCAL_LABEL): Don't define if TE_GO32.
693
694 Sun May 31 15:43:06 1998 Doug Evans <devans@canuck.cygnus.com>
695
696 Implement .func/.endfunc pseudo-ops.
697 * read.h (stabs_generate_asm_func,stabs_generate_asm_endfunc): Declare.
698 (s_func): Declare.
699 * read.c (potable): Add .func,.endfunc.
700 (s_func): New function.
701 * stabs.c (stabs_generate_asm_func,stabs_generate_asm_endfunc): New
702 functions.
703 (in_doc_func_p,current_function_label): New static globals.
704 (stabs_generate_asm_lineno): Emit function relative stabs if in .func.
705
706 start-sanitize-sky
707 * config/tc-dvp.h (ELF_TC_SPECIAL_SECTIONS): Delete .vuoverlay_table.
708 (VUOVERLAY_SECTION_PREFIX,VUOVERLAY_TABLE_SECTION_NAME): Delete.
709 * config/tc-dvp.c (vuoverlay_string_section): New static global.
710 (md_begin): Create overlay string section.
711 (create_vuoverlay_section): Put section name in overlay string section.
712 Put string's offset in overlay table entry. Set SEC_CODE flag for
713 overlay sections.
714
715 end-sanitize-sky
716 Fri May 29 18:13:12 1998 Ian Lance Taylor <ian@cygnus.com>
717
718 * config/tc-a29k.h (WORKING_DOT_WORD): Define.
719 * config/tc-alpha.h (WORKING_DOT_WORD): Define.
720 * config/tc-arm.h (WORKING_DOT_WORD): Define.
721 * config/tc-h8300.h (WORKING_DOT_WORD): Define.
722 * config/tc-h8500.h (WORKING_DOT_WORD): Define.
723 * config/tc-hppa.h (WORKING_DOT_WORD): Define.
724 * config/tc-i860.h (WORKING_DOT_WORD): Define.
725 * config/tc-i960.h (WORKING_DOT_WORD): Define.
726 * config/tc-tic30.h (WORKING_DOT_WORD): Define.
727 * config/tc-w65.h (WORKING_DOT_WORD): Define.
728 * config/tc-z8k.h (WORKING_DOT_WORD): Define.
729 * config/tc-a29k.c: Don't define md_short_jump_size,
730 md_long_jump_size, md_create_short_jump or md_create_long_jump.
731 * config/tc-alpha.c: Likewise.
732 * config/tc-alpha.h: Likewise.
733 * config/tc-arm.c: Likewise.
734 * config/tc-h8300.c: Likewise.
735 * config/tc-h8500.c: Likewise.
736 * config/tc-hppa.c: Likewise.
737 * config/tc-i860.c: Likewise.
738 * config/tc-i960.c: Likewise.
739 * config/tc-ppc.c: Likewise.
740 * config/tc-sh.c: Likewise.
741 * config/tc-sparc.h: Likewise.
742 * config/tc-tic30.c: Likewise.
743 * config/tc-w65.c: Likewise.
744 * config/tc-z8k.c: Likewise.
745
746 Fri May 29 16:03:26 1998 Pat Rankin <rankin@eql.caltech.edu>
747
748 * config/tc-vax.c (_): Delete this macro used for placeholder
749 values in vax_operand_width_size; it conflicts with the _() macro
750 used for internationalization.
751
752 Fri May 29 13:46:07 1998 Ian Lance Taylor <ian@cygnus.com>
753
754 * symbols.c (symbol_find_base): Fix case insensitive symbol name
755 code. From Chris Moller <moller@bops.com>.
756
757 Based on patch from Klaus Kaempf <kkaempf@progis.de>:
758 * struc-symbol.h (struct broken_word): Add seg and subseg fields.
759 * read.c (emit_expr): Initialize seg and subseg fields of a new
760 broken word.
761 * write.c (write_object_file): Switch to the appropriate segment
762 and subsegment when processing a broken word.
763
764 * config/tc-m68k.c (mri_assemble): New static function.
765 (build_mri_control_operand): Call mri_assemble rather than
766 md_assemble.
767 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
768 (s_mri_endf, s_mri_endw): Likewise.
769
770 start-sanitize-sky
771 Thu May 28 16:23:08 1998 Doug Evans <devans@canuck.cygnus.com>
772
773 * config/tc-dvp.h (ELF_TC_SPECIAL_SECTIONS): Add .vuoverlay_table.
774 (dvp_frob_file): Declare.
775 (tc_frob_file): Define.
776 (VUOVERLAY_SECTION_PREFIX,VUOVERLAY_TABLE_SECTION_NAME): New macros.
777 * config/tc-dvp.c (VUOVERLAY_START_PREFIX): New macro.
778 (vuoverlay_section_name,create_vuoverlay_section): New functions.
779 (vuoverlay_section,vuoverlay_table_section): New static globals.
780 (ovlysym_table): New static global.
781 (md_begin): Create .vuoverlay_table section.
782 (assemble_vif): Call create_vuoverlay_section for each mpg.
783 (dvp_frob_label): Record vu labels in ovlysym_table for later
784 movement from absolute section to their overlay section.
785 (dvp_frob_file): New function.
786 (md_apply_fix3): For 8/16/32/64 bit relocs, only process if fx_done.
787
788 end-sanitize-sky
789 Wed May 27 11:16:25 1998 Ian Lance Taylor <ian@cygnus.com>
790
791 * read.c (s_org): Call md_flush_pending_output if it is defined.
792
793 * config/tc-sparc.c (md_show_usage): Add \n\ to new string.
794
795 Tue May 26 19:27:52 1998 Stan Cox <scox@equinox.cygnus.com>
796
797 * config/tc-sparc.c (OPTION_LITTLE_ENDIAN_DATA): New.
798 (md_parse_option): Add for same.
799 (sparc_md_end): Set bfd_mach_sparc_sparclite_le.
800 (md_apply_fix3, tc_gen_reloc): Allow BFD_RELOC_SPARC_32LE.
801 (cons_fix_new_sparc): Added to create BFD_RELOC_SPARC_32LE.
802
803 * config/tc-sparc.h (cons_fix_new_sparc): Added.
804
805 start-sanitize-sky
806 Fri May 22 11:47:01 1998 Doug Evans <devans@canuck.cygnus.com>
807
808 * config/tc-dvp.c (assemble_one_insn): Parse suffix operands
809 even when missing in input string.
810
811 end-sanitize-sky
812 Thu May 21 15:02:41 1998 Nick Clifton <nickc@cygnus.com>
813
814 * config/tc-arm.c (find_real_start): Relax definition of local
815 labels.
816
817 Tue May 19 16:59:44 1998 Nick Clifton <nickc@cygnus.com>
818
819 * config/tc-d30v.c (d30v_align): Apply address adjustment to all
820 symbols at the given address, not just the last one specified.
821
822 Tue May 19 08:25:19 1998 Catherine Moore <clm@cygnus.com>
823
824 * config/tc-sparc.c (sparc_handle_align): Use number_to_chars_bigendian
825 or number_to_chars_littleendian to write data.
826
827 Mon May 18 17:09:30 1998 Nick Clifton <nickc@cygnus.com>
828
829 * config/tc-v850.c (md_assemble): Remove artificially created
830 register name symbols.
831
832 Mon May 18 13:47:06 1998 Doug Evans <devans@canuck.cygnus.com>
833
834 * write.c (fixup_segment): Change "segment" to "section" in
835 error message.
836
837 Mon May 18 16:55:40 1998 Michael Meissner <meissner@cygnus.com>
838
839 * write.c (fixup_segment): Change sym1-sym2 message again.
840
841 start-sanitize-r5900
842 Mon May 18 11:49:04 1998 Jeffrey A Law (law@cygnus.com)
843
844 * config/tc-mips.c (validate_mips_insn): Handle ';' opcode completer.
845 (mips_ip): Likewise.
846
847 Mon May 18 12:37:38 1998 Frank Ch. Eigler <fche@cygnus.com>
848
849 * config/tc-mips.c (macro): For R5900, use "B" operand format for
850 "break" instructions generated in macro (div etc.) instructions.
851
852 end-sanitize-r5900
853 Mon May 18 09:31:43 1998 Michael Meissner <meissner@cygnus.com>
854
855 * write.c (fixup_segment): Improve error message for sym1-sym2
856 errors when sym1 is in a different segment from sym2.
857
858 Wed May 13 10:16:37 1998 Doug Evans <devans@canuck.cygnus.com>
859
860 * config/tc-m32r.c (warn_unmatched_high): New static local.
861 (OPTION_WARN_PARALLEL): Rename from OPTION_WARN.
862 (OPTION_NO_WARN_PARALLEL): Rename from OPTION_NO_WARN.
863 (md_longopts): Recognize --{no-,}warn-unmatched-high.
864 (md_parse_option): Likewise.
865 (md_show_usage): Likewise.
866 (m32r_frob_file): Likewise.
867
868 * read.c (generate_file_debug,generate_lineno_debug): New functions.
869 (read_a_source_file): Call them.
870 * read.h (stabs_generate_asm_file): Declare.
871 * stabs.c (stabs_generate_asm_file): New function.
872 (generate_asm_file): New function.
873 (stabs_generate_asm_lineno): Move file name handling into
874 generate_asm_file.
875
876 Tue May 12 12:03:44 1998 Richard Henderson <rth@cygnus.com>
877
878 * config/tc-d30v.c (cur_mul32_p, prev_mul32_p): Make static.
879 (d30v_current_align, d30v_current_align_seg): New variables.
880 (d30v_last_label): New variable.
881 (d30v_align, s_d30v_align, s_d30v_text): New functions.
882 (s_d30v_data, s_d30v_section): Likewise.
883 (md_pseudo_table): Call them.
884 (md_begin): Initialize d30v_current_align_seg.
885 (md_assemble): Call d30v_align when needed by known current alignment.
886 (d30v_frob_label, d30v_cons_align): New functions.
887 * config/tc-d30v.h (md_do_align): Remove.
888 (tc_frob_label): Call d30v_frob_label.
889 (md_cons_align): New.
890
891 * config/tc-d30v.c (find_format): Convert complex expressions to
892 expression symbols before processing. Clean up code formatting.
893
894 start-sanitize-sky
895 Mon May 11 12:48:33 1998 Doug Evans <devans@canuck.cygnus.com>
896
897 * config/tc-dvp.c (md_begin): Set type of output file to mips:r5900.
898
899 end-sanitize-sky
900 Sun May 10 22:35:02 1998 Jeffrey A Law (law@cygnus.com)
901
902 * po/Make-in (install-info): New target.
903
904 Thu May 7 15:49:07 1998 Jeffrey A Law (law@cygnus.com)
905
906 * config/tc-mn10200.c (md_assemble): Handle "bra" just like "jmp"
907 instructions.
908 * config/tc-mn10300.c (md_assemble): Likewise.
909
910 Thu May 7 11:47:22 1998 Doug Evans <devans@canuck.cygnus.com>
911
912 * Makefile.am: Update with `make dep-am'.
913 (HFILES): Add cgen.h.
914 (cgen.o): Depend on cgen.h.
915 * Makefile.in: Regenerate.
916
917 * cgen.c (cgen_md_apply_fix3): Don't pass newline to as_warn_where.
918
919 Thu May 7 13:20:56 1998 Anders Blomdell <anders.blomdell@control.lth.se>
920
921 * gasp.c (grab_label): Permit a label to be a preprocessor
922 variable by permitting a label to start with a backslash.
923
924 Thu May 7 12:50:33 1998 Frank Ch. Eigler <fche@cygnus.com>
925
926 * config/tc-mips.c (validate_mips_insn): Removed hack
927 for previously inaccessible bitfields in some INSN_TRAP
928 instructions.
929
930 start-sanitize-d30v
931 Thu May 7 11:13:00 1998 Frank Ch. Eigler <fche@cygnus.com>
932
933 * config/tc-d30v.c (do_assemble): Abort with error message
934 if opcode operands do not match.
935
936 end-sanitize-d30v
937 Thu May 7 09:36:06 1998 Frank Ch. Eigler <fche@cygnus.com>
938
939 * config/tc-mips.c (macro_build, validate_mips_insn): Implement
940 'q' operand format for 20-bit "break"/"sdbbp" instructions.
941 (mips_ip): Truncate overflowed "break" 'c' operand. Implement
942 similar new 'q' operand.
943
944 Thu May 7 07:47:14 1998 Michael Meissner <meissner@cygnus.com>
945
946 * cgen.c (cgen_asm_finish_insn): Fix typo.
947
948 Thu May 7 02:19:14 1998 Doug Evans <devans@charmed.cygnus.com>
949
950 * cgen.h: New file.
951 * cgen.c: Include it.
952 (MAX_FIXUPS): Renamed to CGEN_MAX_FIXUPS.
953 (cgen_asm_finish_insn): Result is now void. New arg `result'.
954 All callers updated.
955 * config/tc-m32r.c: Include cgen.h.
956 (m23r_insn): New members num_fixups,fixups.
957 start-sanitize-m32rx
958 (assemble_parallel_insn): Initialize debug_sym_link for each insn.
959 (md_assemble): Simplify code to pack two insns in parallel.
960 When swapping two insns, update their fixups.
961 end-sanitize-m32rx
962
963 start-sanitize-sky
964 Wed May 6 16:26:57 1998 Doug Evans <devans@canuck.cygnus.com>
965
966 * config/tc-dvp.c: Delete inclusion of "sysdep.h".
967
968 end-sanitize-sky
969 Wed May 6 16:29:19 1998 Jeffrey A Law (law@cygnus.com)
970
971 * config/tc-hppa.c (md_apply_fix): Slightly rework some code
972 to avoid compiler warning.
973
974 Wed May 6 15:26:34 1998 Klaus Kaempf <kkaempf@progis.de>
975
976 * makefile.vms: Run dec c with /nodebug. Pass CC value when
977 calling make.
978
979 * makefile.vms (OBJS): Add ehopt.obj
980
981 Wed May 6 15:11:12 1998 Klaus Kaempf <kkaempf@progis.de>
982
983 * doc/c-vax.texi: Correct and extend vax/vms documentation.
984
985 start-sanitize-d30v
986 Wed May 6 11:51:51 1998 Richard Henderson <rth@cygnus.com>
987
988 * config/tc-d30v.c (do_assemble): Accept a new parameter requesting
989 a short format insn.
990 (md_assemble): Set it for explicitly packed insns.
991 end-sanitize-d30v
992
993 Tue May 5 13:23:13 1998 Nick Clifton <nickc@cygnus.com>
994
995 * config/obj-coff.c (c_symbol_merge): Do not take address of
996 native fields when performing the memcpy.
997
998 Tue May 5 13:10:41 1998 Gavin Koch <gavin@cygnus.com>
999
1000 * config/tc-mips.c (macro,macro2): Implement
1001 M_DMULO_I, M_MULO_I, M_DMULOU_I, and M_MULOU_I.
1002
1003 Mon May 4 17:49:14 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1004
1005 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Changed to keep
1006 relocations against globally visible symbols.
1007 * config/tc-m68k.c (relaxable_symbol): New macro.
1008 (m68k_ip, md_estimate_size_before_relax): Use it.
1009 (tc_m68k_fix_adjustable): Also handle weak symbols.
1010
1011 Mon May 4 16:12:23 1998 Ian Lance Taylor <ian@cygnus.com>
1012
1013 * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Keep relocs for all
1014 references to externally visible symbols.
1015 * config/tc-i386.c (md_apply_fix3): When OBJ_ELF, don't add the
1016 values in twice for a PC relative reloc if the symbol is
1017 externally defined.
1018
1019 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_AOUT]: When PIC,
1020 don't adjust a PC relative reloc against an externally visible
1021 symbol.
1022 * config/tc-sparc.c (md_apply_fix3): When generating a.out PIC,
1023 for a PC relative fixup against an externally visible defined
1024 symbol, arrange to store object file and addend values as though
1025 the symbol were not defined.
1026 (tc_gen_reloc): Likewise.
1027
1028 Thu Apr 30 13:09:39 1998 Fred Fish <fnf@ninemoons.com>
1029
1030 * read.c (sizeof_leb128): Referenced externally by write.c so
1031 don't inline.
1032
1033 Wed Apr 29 15:45:57 1998 Michael Meissner <meissner@cygnus.com>
1034
1035 * config/tc-m32r.c ({,expand_}debug_sym): New functions to record
1036 and expand a 'debug' symbol associated with the next instruction
1037 that does not cause a short instruction to be filled with a NOP.
1038 (md_pseudo_table): Add support for .debugsym.
1039 (assemble_parallel_insn): Add calls to expand_debug_sym as
1040 appropriate.
1041 (md_assemble): Ditto.
1042
1043 Tue Apr 28 19:16:26 1998 Tom Tromey <tromey@cygnus.com>
1044
1045 * as.c (main): Conditionally call setlocale.
1046 * gasp.c (main): Likewise.
1047 * asintl.h: Include <locale.h> if HAVE_LOCALE_H.
1048 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
1049
1050 start-sanitize-d30v
1051 Tue Apr 28 18:33:23 1998 Frank Ch. Eigler <fche@cygnus.com>
1052
1053 * config/tc-d30v.c (md_show_usage): Correct gettext typo.
1054
1055 end-sanitize-d30v
1056 Tue Apr 28 12:16:30 1998 Ian Lance Taylor <ian@cygnus.com>
1057
1058 * config/tc-hppa.c: Change all calls to bzero to use memset.
1059 (pa_ip): Add cast to avoid warning.
1060 (tc_gen_reloc, md_apply_fix): Likewise.
1061 (pa_find_space_by_number): Likewise.
1062 (hppa_force_relocation): Likewise.
1063 (pa_block): Change i to unsigned int.
1064 * config/obj-som.h (obj_som_copyright): Declare.
1065
1066 Tue Apr 28 11:35:56 1998 Frank Ch. Eigler <fche@cygnus.com>
1067
1068 * ecoff.c (ecoff_build_lineno): Do not use dummy first_lineno
1069 for line numbers for assembly source.
1070
1071 Mon Apr 27 15:58:46 1998 Ian Lance Taylor <ian@cygnus.com>
1072
1073 * configure.in: Change version number to 2.9.4
1074 * configure: Rebuild.
1075
1076 Mon Apr 27 12:07:33 1998 Doug Evans <devans@seba.cygnus.com>
1077
1078 * cgen.c (cgen_asm_finish_insn): New arg relax_p. All callers updated.
1079 start-sanitize-m32rx
1080 * config/tc-m32r.c (assemble_parallel_insn): No need to try
1081 non-relaxable variant any more. Simplify test for nop insn.
1082 (md_assemble): Only scan operands if m32rx. Set orig_insn in case
1083 scan of operands yields an insn different from original (e.g. a macro).
1084 Fix call to can_make_parallel.
1085 end-sanitize-m32rx
1086
1087 Mon Apr 27 15:16:12 1998 Ian Lance Taylor <ian@cygnus.com>
1088
1089 * ecoff.h: Change symbolS in function declaration to struct
1090 symbol.
1091
1092 Sun Apr 26 13:44:22 1998 Ian Lance Taylor <ian@cygnus.com>
1093
1094 * config/tc-sh.c (parse_reg): Add casts to avoid warnings.
1095 (md_convert_frag): Fix i18n typo.
1096
1097 Sat Apr 25 20:12:02 1998 Richard Henderson <rth@cygnus.com>
1098
1099 * ecoff.c (ecoff_get_cur_proc_sym): New function.
1100 * ecoff.h: Protoype it.
1101 * config/tc-alpha.c [ELF] (s_alpha_prologue): New function.
1102 [EVAX] (s_alpha_prologue): Delete.
1103 (md_pseudo_table): Update.
1104
1105 Sat Apr 25 14:00:52 1998 Ian Lance Taylor <ian@cygnus.com>
1106
1107 * config/tc-i960.c (md_assemble): Change bp_error_msg from static
1108 array to local pointer.
1109 (get_args, parse_expr): Add casts to avoid warnings.
1110
1111 Fri Apr 24 12:47:42 1998 Philippe De Muyter <phdm@macqel.be>
1112
1113 * read.c (s_set): Cast xmalloc return value to fragS *.
1114 * config/tc-m68k.c (m68k_ip): Function made static to match
1115 previous forward declaration.
1116 (insert_reg, init_regtable, md_convert_frag_1): Likewise.
1117
1118 Fri Apr 24 09:26:46 1998 Nick Clifton <nickc@cygnus.com>
1119
1120 * config/tc-v850.c: Add internationalisation macros to error
1121 strings.
1122
1123 * config/tc-m32r.c (can_make_parallel): Add internationalisation
1124 macros to error strings.
1125
1126 Thu Apr 23 19:23:23 1998 Ian Lance Taylor <ian@cygnus.com>
1127
1128 * config/tc-ppc.c (ppc_fix_adjustable): Correct test of whether a
1129 reloc is in the TOC csect.
1130 (md_apply_fix3): Correct gettext typo.
1131
1132 Thu Apr 23 14:58:31 1998 Nick Clifton <nickc@cygnus.com>
1133
1134 * config/tc-arm.c (find_real_start): Ignore symbols starting with
1135 .L - they are local labels and the branches are not really
1136 function calls but rather far jumps.
1137
1138 start-sanitize-sky
1139 Thu Apr 23 11:09:34 1998 Doug Evans <devans@canuck.cygnus.com>
1140
1141 * config/tc-dvp.c (dvp_frob_label): Don't emit _$ versions of
1142 local labels ($ prefix).
1143
1144 end-sanitize-sky
1145 Wed Apr 22 15:57:21 1998 Tom Tromey <tromey@cygnus.com>
1146
1147 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
1148
1149 Wed Apr 22 14:52:36 1998 Ian Lance Taylor <ian@cygnus.com>
1150
1151 * config/tc-i386.c (md_assemble): Print operand number rather than
1152 using ordinal_names.
1153 (i386_operand): Likewise.
1154
1155 Tue Apr 21 22:34:25 1998 Tom Tromey <tromey@scribbles.cygnus.com>
1156
1157 * Makefile.am (INTLLIBS): Define to work around apparent automake
1158 bug.
1159 All Makefiles: Regenerated.
1160
1161 * Many files: Added gettext invocations around user-visible
1162 strings.
1163 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
1164 HAVE_LC_MESSAGES): Define.
1165 * dep-in.sed: Added asintl.h.
1166 * po/Make-in: New file.
1167 * gasp.c (main): Call setlocale, bindtextdomain, and textdomain.
1168 Include "asintl.h".
1169 * read.c (Z_): Renamed from `_'.
1170 * Makefile.am (SUBDIRS): Added po.
1171 (POTFILES): new macro.
1172 (po/POTFILES.in): New target.
1173 ($(OBJS)): Added asintl.h.
1174 (HFILES): Likewise.
1175 (INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl.
1176 (as_new_LDADD): Added $(INTLLIBS).
1177 (as_new_DEPENDENCIES): Added $(INTLDEPS).
1178 (gasp_new_LDADD): Added $(INTLLIBS).
1179 (gasp_new_DEPENDENCIES): New macro.
1180 * configure, aclocal.m4: Rebuilt.
1181 * configure.in: Call CY_GNU_GETTEXT. Generate po/Makefile.in and
1182 po/Makefile.
1183 (ALL_LINGUAS): Define.
1184 * macro.c: Include "asintl.h".
1185 * as.c (main): Call setlocale, bindtextdomain, and textdomain.
1186 * as.h: Include "asintl.h".
1187 * config/tc-i386.c (ordinal_names): Removed.
1188 (md_assemble): Changed error text to avoid ordinal_names.
1189 (i386_operand): Likewise.
1190 (reloc): Added as_bad to avoid i18n problems.
1191 (tc_gen_reloc): Likewise.
1192 * config/tc-arm.c (bad_args): Now a #define.
1193 (bad_pc): Likewise.
1194 * config/obj-vms.c (VMS_stab_parse): Changed type of
1195 `long_const_msg'.
1196 (global_symbol_directory): Unified strings to avoid i18n
1197 problems.
1198 * config/tc-m68k.c (get_reloc_code): Added some as_bad calls to
1199 avoid i18n problems.
1200 * config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems.
1201 * config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid
1202 i18n problems.
1203 * config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n
1204 problems.
1205 * config/tc-v850.c (md_assemble): Changed C++ comment into C
1206 comment.
1207 * config/tc-vax.c (md_assemble): Added as_warn to avoid i18n
1208 problems.
1209 * as.c (print_version_id): Added an fprintf to avoid i18n
1210 problems.
1211 * cond.c (cond_finish_check): Added as_bad call to avoid i18n
1212 problems.
1213 * expr.c (expr): Added as_warn call to avoid i18n problems.
1214 * messages.c (as_assert): Changed code to avoid i18n problems.
1215 (as_abort): Likewise.
1216 * read.c (pseudo_set): Added as_bad call to avoid i18n problems.
1217 (s_space): Likewise.
1218 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
1219
1220 Tue Apr 21 17:01:22 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
1221
1222 * config/tc-i386.c (check_prefix): New static function, split out
1223 from md_assemble.
1224 (struct _i386_insn): Add wait_prefix field.
1225 (md_assemble): Remove wait_prefix local variable. Use
1226 check_prefix when adding a prefix.
1227
1228 * config/tc-i386.c (current_templates): New static variable.
1229 (md_assemble): Remove current_templates local variable.
1230 (md_assemble, i386_operand): Improve error and warning messages in
1231 many places. Add RESTORE_END_STRING in many places before error
1232 return. Clarify some comments.
1233
1234 * config/tc-i386.c (struct _i386_insn): Change seg field to a two
1235 element array.
1236 (md_assemble): Parse string instruction operands, looking for
1237 segment override prefixes. Check for invalid segment prefixes on
1238 string instruction.
1239 (i386_operand): i.seg[] and max mem_operand changes for string
1240 insns.
1241 * config/tc-i386.h (EsSeg): Define.
1242
1243 * config/tc-i386.h (regKludge): Define.
1244 (iclrKludge, imulKludge): Don't define.
1245 * config/tc-i386.c (md_assemble): Merge imulKludge and iclrKludge
1246 code. Move ReverseRegRegmem fudges into Modrm case. Reorder
1247 opcode_modifier checks to look for more common cases first. Add
1248 default_seg for IsString case.
1249
1250 Tue Apr 21 16:18:12 1998 Ian Lance Taylor <ian@cygnus.com>
1251
1252 * configure.in: Call AM_PROG_LEX rather than AC_PROG_LEX and
1253 AC_DECL_YYTEXT.
1254 * configure: Rebuild with new automake and libtool.
1255 * aclocal.m4, Makefile.in: Likewise.
1256
1257 * doc/Makefile.am (as.dvi): New target.
1258 * doc/Makefile.in: Rebuild.
1259
1260 start-sanitize-sky
1261 Mon Apr 20 12:49:33 1998 Doug Evans <devans@canuck.cygnus.com>
1262
1263 * config/tc-dvp.c (VU_LABEL_PREFIX): Make "_$".
1264
1265 end-sanitize-sky
1266 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
1267
1268 * configure.in: Added sparc86x support.
1269
1270 * configure: Rebuild.
1271
1272 * config/tc-sparc.c (lookup_arch): Added arch_type to struct
1273 sparc_arch.
1274 (md_parse_option): Warn if -EL is not supported for this architecture.
1275
1276 * config/tc-sparc.h (SPARC_BIENDIAN) Always define.
1277
1278 Sat Apr 18 01:19:01 1998 Jeffrey A Law (law@cygnus.com)
1279
1280 * config/tc-mips.c (mips_ip): Note when we use get match on
1281 the full instruction name.
1282 start-sanitize-r5900
1283 (mips_ip): For '&' DEST completer handling, if we got a full match
1284 then the DEST completer is implicitly .wxyz.
1285 end-sanitize-r5900
1286
1287 start-sanitize-sky
1288 Thu Apr 16 11:48:18 1998 Doug Evans <devans@canuck.cygnus.com>
1289
1290 * config/tc-dvp.c (unpackloc_sym): Delete. All uses deleted.
1291 (vif_insn_type): New function.
1292 (md_apply_fix3): Don't validate user specified length if unpack insn
1293 and wl > cl.
1294
1295 end-sanitize-sky
1296 Wed Apr 15 15:17:27 1998 Richard Henderson <rth@cygnus.com>
1297
1298 * symbols.c (resolve_symbol_value) [O_symbol]: Also store the symbol
1299 back into the expression to handle add/sub simplification correctly.
1300
1301 start-sanitize-r5900
1302 Wed Apr 15 10:35:59 1998 Frank Ch. Eigler <fche@cygnus.com>
1303
1304 * config/tc-mips.c (mips_ip): Specs changed for
1305 VCALLMSR instruction.
1306
1307 end-sanitize-r5900
1308 start-sanitize-vr5400
1309 Wed Apr 15 07:06:04 1998 Catherine Moore <clm@cygnus.com>
1310
1311 * config/tc-mips.c (hilo_interlocks): Remove VR5400.
1312
1313 end-sanitize-vr5400
1314 Wed Apr 15 07:06:04 1998 Catherine Moore <clm@cygnus.com>
1315
1316 * config/tc-mips.c (hilo_interlocks): Remove 4300.
1317
1318 Mon Apr 13 16:51:04 1998 Nick Clifton <nickc@cygnus.com>
1319
1320 * config/tc-arm.c (do_msr): Support undocumented 'msr cpsr_flg,
1321 #<n>' instruction.
1322
1323 start-sanitize-sky
1324 Mon Apr 13 12:18:53 1998 Doug Evans <devans@canuck.cygnus.com>
1325
1326 * config/tc-dvp.c (md_apply_fix3): Mark fixup for mpg loaded vu
1327 branch error as being done so we don't try to emit a reloc.
1328
1329 end-sanitize-sky
1330 Thu Apr 9 10:29:42 1998 Doug Evans <devans@canuck.cygnus.com>
1331
1332 * symbols.c (max_indent_level): New global.
1333 (print_symbol_value_1): Use it.
1334 * expr.h (expr_build_dot): Declare.
1335 * expr.c (expr_build_dot): New function.
1336 start-sanitize-sky
1337 * config/tc-dvp.c (VU_LABEL_PREFIX): New macro.
1338 (compute_mpgloc): New function.
1339 (eval_expr): New arg `cpu'. All callers updated.
1340 (non_vu_insn_seen_p): New static global.
1341 (RELAX_{MPG,DIRECT,VU,ENCODE,GROWTH,DONE_}): New macros.
1342 (struct dvp_fixup): New member `cpu'.
1343 (assemble_one_insn): New args init_fixup_count, fixup_offset.
1344 All callers updated.
1345 (md_assemble): Set non_vu_insn_seen_p as appropriate.
1346 (assemble_vif): Set `cpu' field of fixup.
1347 Clean up calls to frag_var. Recorded mpgloc is now in bytes.
1348 (assemble_vu_insn): Delete, contents moved into ...
1349 (assemble_vu): ... here. Don't record fixups until after parsing
1350 both upper and lower insns. If branch insn inside mpg, properly
1351 compute target address.
1352 (dvp_frob_label): Create copies of vu labels inside mpg's.
1353 (dvp_relax_frag): Clean up.
1354 (md_convert_frag): Ditto.
1355 (md_apply_fix3): Signal error if mpg embedded vu code has branch
1356 to undefined label (not currently supported).
1357 (eval_expr): New arg `cpu'. All callers updated.
1358 (insert_operand_final): Convert mpgloc from bytes to dwords.
1359 (s_endmpg): Use compute_mpgloc to update $.mpgloc.
1360 (s_state): If switching to vu state, initialize $.mpgloc.
1361 end-sanitize-sky
1362
1363 Wed Apr 8 16:16:11 1998 Doug Evans <devans@canuck.cygnus.com>
1364
1365 * symbols.c (print_binary): New function.
1366 (print_expr_1): Call it.
1367
1368 start-sanitize-sky
1369 Tue Apr 7 12:21:39 1998 Doug Evans <devans@canuck.cygnus.com>
1370
1371 * config/tc-dvp.c (md_convert_frag): Fix thinko.
1372
1373 Mon Apr 6 17:08:47 1998 Doug Evans <devans@canuck.cygnus.com>
1374
1375 * config/tc-dvp.c (assemble_vif): Watch for macro insns.
1376 0 is a valid length value (= max+1).
1377 (install_vif_length): 0 is a valid length value (= max+1).
1378
1379 end-sanitize-sky
1380 Mon Apr 6 12:06:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1381
1382 * config/tc-m68k.c (m68k_ip, case "#B"): Install the offset of the
1383 operand in the opcode.
1384
1385 start-sanitize-sky
1386 Fri Apr 3 12:13:03 1998 Doug Evans <devans@canuck.cygnus.com>
1387
1388 * config/tc-dvp.c (assemble_vif): Put relaxable insns in their
1389 own fragment.
1390
1391 end-sanitize-sky
1392 Fri Apr 3 11:58:19 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
1393
1394 * config/tc-i386.h: Reorder operand flags and opcode modifier
1395 flags for clarity. Remove unused definitions: Unknown,
1396 ImmUnknown, DispUnknown, NoModrm.
1397 * config/tc-i386.c (type_names): Add missing Debug type.
1398 (md_assemble): Better duplicate prefix checking. Quicker string
1399 instruction check via new opcode_modifier flag.
1400
1401 Fri Apr 3 11:44:34 1998 Ian Lance Taylor <ian@cygnus.com>
1402
1403 * doc/as.texinfo (Invoking): Clarify -Wa example.
1404
1405 Fri Apr 3 09:12:23 1998 Gavin Koch <gavin@cetus.cygnus.com>
1406
1407 * config/tc-mips.c (mips_pseudo_table): Add weakext entry.
1408 (s_mips_weakext): Define.
1409 * ecoff.c (ecoff_directive_weakext): Don't define if defined(TC_MIPS).
1410 * config/obj-ecoff.c (obj_pseudo_table): Don't add weakext if
1411 defined(TC_MIPS).
1412
1413 Thu Apr 2 22:42:02 1998 Jeffrey A Law (law@cygnus.com)
1414
1415 * config/tc-mn10200.c (tc_gen_reloc): The difference of two symbols
1416 is an error if the value can not be computed at assembly time.
1417 * config/tc-mn10300.c (tc_gen-reloc): Likewise.
1418
1419 Thu Apr 2 16:36:47 1998 Ian Lance Taylor <ian@cygnus.com>
1420
1421 * gasp.c (main): Set next field of new include_path structure to
1422 NULL. From Avery Pennarun <averyp@gdc.ca>.
1423
1424 * read.c (s_mri_sect): Call as_bad rather than abort for an
1425 unsupported MRI target.
1426
1427 Wed Apr 1 11:08:27 1998 Nick Clifton <nickc@cygnus.com>
1428
1429 * config/tc-arm.c (arm_validate_fix): New function. Determine if
1430 the destination of a branch instruction should be altered.
1431 (find_real_start): New function: Locate the real, Thumb coded
1432 start of a Thumb function.
1433 (do_t_branch23): Alter the destination of branches to Thumb
1434 functions.
1435
1436 * config/tc-arm.h: Define TC_VALIDATE_FIX.
1437
1438 Tue Mar 31 13:27:33 1998 Dean M. Deaver <deaver@amt.tay1.dec.com>
1439
1440 * config/tc-arm.c (decode_shift): Handle addressing mode 2 w/rrx
1441 also.
1442
1443 Wed Apr 1 13:13:20 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1444
1445 * doc/as.texinfo: Use @itemx for a secondary item in a table.
1446 * doc/c-hppa.texi: Likewise.
1447
1448 Tue Mar 31 17:52:40 1998 Ian Lance Taylor <ian@cygnus.com>
1449
1450 * Makefile.am: Rebuild dependencies.
1451 * Makefile.in: Rebuild.
1452
1453 * Makefile.am (DEP_INCLUDES): New variable.
1454 (.dep1): Change to work when srcdir is not an absolute path.
1455 (.tcdep, .objdep, .dep2, dep.sed): Likewise.
1456 * Makefile.in: Rebuild.
1457
1458 Mon Mar 30 12:46:48 1998 Ian Lance Taylor <ian@cygnus.com>
1459
1460 * config/tc-i386.h, config/tc-i386.c: Revert March 24
1461 LinearAddress patch.
1462
1463 * configure.in: Set version to 2.9.1.
1464 * configure: Rebuild.
1465
1466 * Branched binutils 2.9.
1467
1468 Mon Mar 30 11:22:08 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
1469
1470 * config/tc-i386.h (FWait): Define.
1471 * config/tc-i386.c (md_assemble): Emit fwait prefix before any
1472 other prefixes. Check FWait flag in opcode table to see which
1473 instructions require an fwait prefix.
1474
1475 Mon Mar 30 10:12:00 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1476
1477 * stabs.c (get_stab_string_offset): Always create a stab string
1478 section.
1479
1480 Sat Mar 28 22:28:02 1998 Ian Lance Taylor <ian@cygnus.com>
1481
1482 Fix some gcc -Wall warnings:
1483 * atof-generic.c (atof_generic): Add casts to avoid warnings.
1484 * ehopt.c (eh_frame_code_alignment): Likewise.
1485 * expr.c (integer_constant, operand): Likewise.
1486 * frags.c (frag_align): Likewise.
1487 * gasp.c (level_0, change_base, doinstr): Likewise.
1488 * hash.c (hash_ask): Likewise.
1489 * listing.c (listing_page, calc_hex, print_lines): Likewise.
1490 (debugging_pseudo): Likewise.
1491 * macro.c (define_macro, check_macro): Likewise.
1492 * read.c (read_a_source_file, s_align, s_float_space): Likewise.
1493 (ignore_rest_of_line, float_cons): Likewise.
1494 * symbols.c (decode_local_label_name): Likewise.
1495 * write.c (record_alignment, cvs_frag_to_fill): Likewise.
1496 (fixup_segment, number_to_chars_bigendian): Likewise.
1497 (number_to_chars_littleendian): Likewise.
1498 * config/atof-ieee.c (gen_to_words): Likewise.
1499 * config/tc-sparc.c (md_begin, md_assemble): Likewise.
1500 (sparc_ip, parse_keyword_arg, s_common): Likewise.
1501 * read.c (output_big_sleb128): Initialize locals to avoid
1502 warnings.
1503 (output_big_uleb128, equals): Likewise.
1504 * atof-generic.c (atof_generic): Change number_of_digits_* locals
1505 to unsigned int. Change zeros to unsigned int.
1506 * cond.c (s_if): Add return to default case.
1507 * frags.c (frag_now_fix): Change return type to addressT.
1508 * frags.h (frag_now_fix): Update declaration.
1509 * listing.c (file_info_struct): Change linenum to unsigned int.
1510 (struct list_info_struct): Change hll_line to unsigned int.
1511 (print_source): Update format string.
1512 * read.c (emit_expr): Change scan to unsigned int, and don't
1513 bother to initialize it.
1514 * symbols.c (dollar_label_count): Change to unsigned long.
1515 * write.c (adjust_reloc_syms): Remove unused label reduce_fixup.
1516 * config/tc-sparc.c (sparc_memory_model): Only define if OBJ_ELF.
1517 * config/tc-sparc.c (tc_gen_reloc): Add return to default case.
1518
1519 Fri Mar 27 12:46:47 1998 Ian Lance Taylor <ian@cygnus.com>
1520
1521 * config/tc-m68k.c (m68k_ip): Check legal addressing modes for
1522 mcf5200 just as we do for m68000.
1523 (m68k_init_after_args): Likewise.
1524 (md_estimate_size_before_relax): Likewise.
1525
1526 Fri Mar 27 10:30:01 1998 Catherine Moore <clm@cygnus.com>
1527
1528 * config/tc-v850.c (md_assemble): Store relocation addend in
1529 fixup instead of instruction.
1530
1531 Thu Mar 26 23:07:18 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
1532
1533 * config/tc-i386.c (md_assemble): Swap template arguments to
1534 CONSISTENT_REGISTER_MATCH macro in reverse direction test.
1535 This macro is currently symmetric, so passing them the wrong
1536 way didn't cause any problem, but may if the macro is changed
1537 in the future.
1538 After copying template to i.tm, use i.tm. rather than t-> to
1539 access fields, and make t a const*
1540 Move i.tm.operand_types[] swap to immediately after the copy.
1541
1542 start-sanitize-sky
1543 Thu Mar 26 13:29:59 1998 Doug Evans <devans@canuck.cygnus.com>
1544
1545 * config/tc-dvp.c (s_endunpack): Round up to word boundary after
1546 we've computed the data length.
1547
1548 end-sanitize-sky
1549 Wed Mar 25 13:44:18 1998 Doug Evans <devans@canuck.cygnus.com>
1550
1551 * expr.h (expr_build_uconstant): Add prototype.
1552 (expr_build_unary,expr_build_binary): Add prototypes.
1553 * expr.c (expr_build_uconstant): New function.
1554 (expr_build_unary,expr_build_binary): New functions.
1555 start-sanitize-sky
1556 * config/tc-dvp.h (md_estimate_size_before_relax): Delete.
1557 (md_convert_frag): Delete.
1558 (TC_FIX_TYPE): New fields wl,cl,user_value;
1559 * config/tc-dvp.c (insert_mpg_marker): New argument ignore.
1560 All callers updated.
1561 (insert_unpack_marker): New function.
1562 (insert_file): New argument insert_marker_arg. All callers updated.
1563 (gif_user_value): New static local.
1564 (vif_data_start,vif_data_end): New static locals.
1565 (mpgloc_sym,unpackloc_sym): New static locals.
1566 (cur_varlen_frag,cur_varlen_insn,cur_varlen_value): Delete.
1567 (cur_opcode,cur_operand): New static locals.
1568 (endmpg_caller): New enum.
1569 (md_pseudo_table): Pass ENDMPG_USER to s_endmpg.
1570 (md_begin): Initialize mpgloc_sym, unpackloc_sym.
1571 (dvp_fixup): New members user_value,wl,cl;
1572 (assemble_vif): Rewrite.
1573 (assemble_gif): Tweak name of data start label.
1574 (assemble_one_insn): Allow special parser to punt and call the
1575 normal expression parser. Set cur_opcode,cur_operand for md_operand.
1576 (md_operand): Handle '*' value for mpgloc,unpackloc.
1577 (md_estimate_size_before_relax): New function.
1578 (dvp_relax_frag,md_convert_frag): New functions.
1579 (md_pcrel_from_section): Handle end data label for variable length
1580 vif insns.
1581 (md_apply_fix3): Handle count field for variable length vif insns.
1582 Handle address field for mpg,unpack.
1583 (eval_expr): Initialize user_value,wl,cl fields of the fixup.
1584 (cur_vif_insn_length): Delete.
1585 (vif_length_value): New function.
1586 (install_vif_length): Don't perform logical->physical conversion here.
1587 (s_enddirect,s_endmpg,s_endunpack): Rewrite.
1588 end-sanitize-sky
1589
1590 Wed Mar 25 13:10:42 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
1591
1592 * gasp.c (IS*): Cast argument to unsigned char, not unsigned int.
1593 * macro.c (macro_expand_body): Increase buffer size.
1594 * messages.c (as_warn): Likewise.
1595 (as_warn_where, as_bad, as_bad_where): Likewise.
1596
1597 Wed Mar 25 12:59:07 1998 Ian Lance Taylor <ian@cygnus.com>
1598
1599 Based on patch from H.J. Lu <hjl@gnu.org>:
1600 * Makefile.am (DISTSTUFF): New variable.
1601 (diststuff): New target.
1602 * Makefile.in: Rebuild.
1603
1604 Tue Mar 24 16:51:29 1998 Nick Clifton <nickc@cygnus.com>
1605
1606 * config/tc-m32r.h (md_cleanup, md_elf_section_change_hook): Call
1607 m32r_elf_section_change_hook.
1608
1609 * config/tc-m32r.c (m32r_elf_section_change_hook): New function to
1610 emit a nop if a section ends with a 16 bit instruction.
1611
1612 Tue Mar 24 19:48:09 1998 Ian Lance Taylor <ian@cygnus.com>
1613
1614 * config/obj-coff.c (obj_coff_bss): Compile unconditionally. Call
1615 s_lcomm rather than obj_coff_lcomm.
1616 (obj_pseudo_table): Compile .bss pseudo-op unconditionally.
1617
1618 Tue Mar 24 18:30:58 1998 H.J. Lu <hjl@gnu.org>
1619
1620 * config/tc-i386.h (LinearAddress): Define.
1621 * config/tc-i386.c (md_assemble): If LinearAddress is set for the
1622 instruction, don't use a default segment.
1623
1624 Mon Mar 23 18:53:40 1998 Joel Sherrill <joel@OARcorp.com>
1625
1626 * configure.in: (sh*-*-rtems*): Switched from ELF to COFF.
1627 * configure: Rebuild.
1628
1629 start-sanitize-sky
1630 Mon Mar 23 13:16:22 1998 Doug Evans <devans@canuck.cygnus.com>
1631
1632 * config/tc-dvp.c (insert_mpg_marker): Update mpgloc.
1633
1634 end-sanitize-sky
1635 start-sanitize-r5900
1636 Sun Mar 22 13:21:01 1998 Jeffrey A Law (law@cygnus.com)
1637
1638 * config/tc-mips.c (validate_mips_insn): Handle r5900 operands.
1639
1640 * config/tc-mips.c (append_insn): Handle BFD_RELOC_MIPS16_S3.
1641 (mips_ip): Handle 'O' operand.
1642 (md_apply_fix): Handle BFD_RELOC_MIPS16_S3.
1643
1644 end-sanitize-r5900
1645 Fri Mar 20 19:15:44 1998 Ian Lance Taylor <ian@cygnus.com>
1646
1647 * aclocal.m4, configure: Rebuild with libtool 1.2.
1648
1649 start-sanitize-r5900
1650 Fri Mar 20 09:04:13 1998 Jeffrey A Law (law@cygnus.com)
1651
1652 * config/tc-mips.c: Change '%' to '#' in r5900 support.
1653
1654 end-sanitize-r5900
1655 Thu Mar 19 16:03:12 1998 Nick Clifton <nickc@cygnus.com>
1656
1657 * config/tc-arm.c (md_apply_fix3): fix code to test the range of
1658 PC relative branches. Patch courtesy of Jonathan Walton.
1659
1660 start-sanitize-r5900
1661 Thu Mar 19 14:19:27 1998 Jeffrey A Law (law@cygnus.com)
1662
1663 * config/tc-mips.c (mips_ip): Handle opcodes which have the form
1664 "name.completer" where only the name is actually in the opcode
1665 table. Allow various operands for base register in load/store
1666 instructions. Handle various new argument characters for the
1667 cop2/vu0 co-processor.
1668
1669 end-sanitize-r5900
1670 start-sanitize-sky
1671 Wed Mar 18 13:54:04 1998 Frank Ch. Eigler <fche@cygnus.com>
1672
1673 * config/tc-dvp.c (s_dmadata): Force 16-byte alignment for ".dmadata"
1674 pseudo-op.
1675 end-sanitize-sky
1676
1677 Wed Mar 18 09:29:51 1998 Nick Clifton <nickc@cygnus.com>
1678
1679 * configure.in (emulations): Add thumb-pe target.
1680
1681 * configure (emulations): Add thumb-pe target.
1682
1683 1998-03-17 Ken Raeburn <raeburn@cygnus.com>
1684
1685 * itbl-lex.l (yywrap): Don't define if already defined as a
1686 macro.
1687
1688 start-sanitize-sky
1689 Tue Mar 17 10:40:54 1998 Doug Evans <devans@canuck.cygnus.com>
1690
1691 * config/tc-dvp.c (md_begin): Turn dma/vif packing on by default.
1692 (assemble_dma): Only output 8 bytes for actual dma insn if dma/vif
1693 packing is enabled. Emit VIF cpu marker after dma insn.
1694
1695 * config/tc-dvp.h (TC_START_LABEL): Define.
1696 * config/tc-dvp.c (force_mach_label): New function.
1697 (md_begin,create_colon_label,s_dmadata): Use it.
1698
1699 * config/tc-dvp.c (s_enddmadata): Always fill dma data out to 16
1700 byte boundary.
1701
1702 Mon Mar 16 10:19:44 1998 Doug Evans <devans@canuck.cygnus.com>
1703
1704 * config/tc-dvp.c (md_pseudo_table): Make .quad 16 bytes.
1705
1706 end-sanitize-sky
1707 Fri Mar 13 16:31:38 1998 Tom Tromey <tromey@cygnus.com>
1708
1709 * depend.c (quote_string_for_make): New function.
1710 (wrap_output): Use it.
1711
1712 Thu Mar 12 18:28:22 1998 Nick Clifton <nickc@cygnus.com>
1713
1714 * config/obj-elf.c (obj_elf_section): Set bss flag in seg_info
1715 structure if type is SHT_NOBITS. [Bug fix courtesy of rth]
1716
1717 start-sanitize-sky
1718 Thu Mar 12 16:13:25 1998 Doug Evans <devans@canuck.cygnus.com>
1719
1720 * config/tc-dvp.h (TC_FIX_TYPE,TC_INIT_FIX_DATA): Define.
1721 * config/tc-dvp.c (compute_nloop,check_nloop): New functions.
1722 (gif_insn_frag_loc): New static global.
1723 (assemble_gif): Record frag and location frag of insn.
1724 (md_apply_fix3): Validate user specified nloop if we couldn't do
1725 it earlier.
1726 (s_endgif): Queue fixup to install nloop if we can't compute it here.
1727
1728 Fri Mar 6 11:36:37 1998 Doug Evans <devans@canuck.cygnus.com>
1729
1730 * config/tc-dvp.c (s_endgif): Fix nloop calc and test. Warn if
1731 insufficient data present. Fix insertion of computed nloop value.
1732 (install_vif_length): Second pass at unpack len calcs.
1733 (s_endunpack): Round data up to word boundary.
1734 (insert_mpg_marker): New function.
1735 (insert_file): New args insert_marker, size. All callers updated.
1736 (assemble_vif): Rewrite varlen insn handling.
1737 (assemble_vu): Call insert_mpg_marker when 256th insn reached.
1738 (s_enddirect,s_endunpack): Rename arg to internal_p.
1739
1740 end-sanitize-sky
1741 start-sanitize-vr4320
1742 Tue Mar 3 11:37:26 1998 Gavin Koch <gavin@cygnus.com>
1743
1744 * config/tc-mips.c : Added vr4320 similar to vr4300.
1745
1746 end-sanitize-vr4320
1747 Sat Feb 28 17:28:55 1998 Richard Henderson <rth@cygnus.com>
1748
1749 * config/tc-alpha.c (md_shortopts, md_longopts, md_parse_option):
1750 Recognize -GN and -relax.
1751 (md_begin): Initialize gp size from -G switch.
1752 (alpha_force_relocation): Always force if -relax.
1753 (alpha_align): Take a new argument that will specify when to
1754 emit an R_ALPHA_ALIGN relocation (though we don't do that now).
1755 Change all callers. Emit nop alignment padding as nop+unop pair.
1756
1757 Sat Feb 28 17:06:22 1998 Richard Henderson <rth@cygnus.com>
1758
1759 * config/obj-elf.c [TC_ALPHA]: Include <elf/alpha.h>.
1760 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): New.
1761
1762 start-sanitize-d30v
1763 Thu Feb 26 15:49:04 1998 Michael Meissner <meissner@cygnus.com>
1764
1765 * config/tc-d30v.c (write_2_short): Delayed jsr instructions don't
1766 require padding to the next long word boundary.
1767
1768 end-sanitize-d30v
1769 start-sanitize-sky
1770 Fri Feb 27 10:06:59 1998 Doug Evans <devans@canuck.cygnus.com>
1771
1772 * config/tc-dvp.c (assemble_vif): Insert cpu type marker before
1773 inserted binary files.
1774
1775 end-sanitize-sky
1776 start-sanitize-phase2-m32rx
1777 Wed Feb 25 11:43:45 1998 Doug Evans <devans@canuck.cygnus.com>
1778
1779 * config/tc-m32r.c (optimize): New static local.
1780 (md_shortopts): Add -O.
1781 (md_parse_option): Recognize it.
1782 (md_show_usage): Document it.
1783 (md_assemble): Don't try to combine insns in parallel if !optimize.
1784
1785 end-sanitize-phase2-m32rx
1786 start-sanitize-m32rx
1787 Tue Feb 24 18:03:25 1998 Nick Clifton <nickc@cygnus.com>
1788
1789 * config/tc-m32r.c (first_writes_to_seconds_operands):
1790 Reinitialise b_operands for each pass of the inner loop.
1791 end-sanitize-m32rx
1792 start-sanitize-sky
1793 Tue Feb 24 11:01:25 1998 Doug Evans <devans@canuck.cygnus.com>
1794
1795 * config/tc-dvp.h (tc_frob_label): Define.
1796 * config/tc-dvp.c (dvp_frob_label): New function.
1797 (create_colon_label): New argument `sto'. All callers updated.
1798 (record_mach): New argument `force_next_p'. All callers updated.
1799 (cpu_sto): New function.
1800 (UNIQUE_LABEL_PREFIX): New macro.
1801 (unique_label): Use it.
1802 (assemble_gif): Emit start label before mach label.
1803 (s_endgif): Update. NLOOP is in quadwords for IMAGE mode now.
1804
1805 Mon Feb 23 15:55:12 1998 Doug Evans <devans@canuck.cygnus.com>
1806
1807 * config/tc-dvp.c (assemble_dma): Do alignment before parsing insn.
1808 (setup_dma_autocount): Renamed from setup_autocount. New argument
1809 inline_p. All callers changed. Fix word address of count.
1810 (parse_dma_addr_autocount): Fix word address of address.
1811
1812 end-sanitize-sky
1813 start-sanitize-sky
1814 Mon Feb 23 17:24:06 1998 Jim Lemke <jlemke@cygnus.com>
1815
1816 * config/obj-elf.c: Take Ian's suggestion, leave .bss etc
1817 in special_sections table and add .vubss etc via
1818 ELF_TC_SPECIAL_SECTIONS.
1819 * config/tc-dvp.h: Likewise.
1820
1821 end-sanitize-sky
1822 Mon Feb 23 11:29:06 1998 Doug Evans <devans@seba.cygnus.com>
1823
1824 * cgen.c: #include symcat.h.
1825 * config/tc-m32r.c: Likewise.
1826
1827 Mon Feb 23 10:27:40 1998 Jeffrey A Law (law@cygnus.com)
1828
1829 * config/tc-mips.c (mips_ip, case 'P'): Make 'P' arguments be
1830 absolute expressions instead of '$' prefixed register names.
1831
1832 Sat Feb 21 22:36:52 1998 Richard Henderson <rth@cygnus.com>
1833
1834 * read.c (s_set): Record file and line info for symbols when -as.
1835 (pseudo_set): Don't overwrite that dummy fragment.
1836
1837 start-sanitize-sky
1838 Fri Feb 20 12:43:02 1998 Doug Evans <devans@canuck.cygnus.com>
1839
1840 * config/tc-dvp.c (md_assemble): Handle ASM_DIRECT state.
1841 (dvp_parse_done): Comment out contents.
1842 (s_enddirect,s_endmpg,s_endunpack): Call demand_empty_rest_of_line.
1843 (s_state): Handle .vu in included file.
1844 (asm_state): New state ASM_GIF.
1845 (asm_state_stack): Maintain stack of parsing states.
1846 ({push,pop,set}_asm_state): New functions.
1847 (CUR_ASM_STATE): Renamed from cur_asm_state, all uses updated.
1848 (gif_{insn_type,data_name,insn_frag}): New static locals.
1849 (md_assemble): Watch for .endgif if in ASM_GIF state.
1850 (assemble_gif): Complete.
1851 (s_endgif): Complete.
1852 (cur_mach): New static local.
1853 (record_mach): New function.
1854 (md_begin): Initialize `cur_mach'.
1855 (assemble_*): Record current mach type.
1856 (vu_count): New static local.
1857 (assemble_vif): Temporary hack to properly align mpg/direct data.
1858 (assemble_vu): Insert mpg every 256 insns.
1859
1860 end-sanitize-sky
1861 Fri Feb 20 15:03:13 1998 Ian Lance Taylor <ian@cygnus.com>
1862
1863 * config/tc-ppc.c (md_pseudo_table): Add "section".
1864 (ppc_named_section): New static function.
1865
1866 Thu Feb 19 22:25:42 1998 Richard Henderson <rth@cygnus.com>
1867
1868 * tc-ppc.c (ppc_biei): Cache the last symbol we inserted
1869 so we don't have to scan the entire list.
1870
1871 start-sanitize-d30v
1872 Tue Feb 17 17:02:15 1998 Fred Fish <fnf@cygnus.com>
1873
1874 * config/tc-d30v.c (parallel_ok): For the explicitly parallel
1875 case, allow the parallel instructions to modify the same flag
1876 bits.
1877
1878 end-sanitize-d30v
1879 Thu Feb 19 16:08:15 1998 Richard Henderson <rth@cygnus.com>
1880
1881 * listing.c (list_symbol_table): Categorize symbols by
1882 undefined_section rather than sy_frag->line == NULL.
1883
1884 start-sanitize-sky
1885 Thu Feb 19 02:17:03 1998 Doug Evans <devans@charmed.cygnus.com>
1886
1887 * config/tc-dvp.c (LOCAL_LABEL_PREFIX,END_LABEL_PREFIX): New macros.
1888 (inline_dmadata): Renamed from s_dmadata_implied.
1889 (assemble_one_insn): Rewrite dma operand processing.
1890 (md_apply_fix3): Handle DVP_OPERAND_DMA_NEXT.
1891 (unique_name,setup_autocount): New functions.
1892
1893 * config/tc-dvp.c: Include stdarg.h/varargs.h.
1894 (md_pseudo_table): Add .word.
1895 (assemble_dma): Set alignment to 16 bytes. Enable code that records
1896 fixups.
1897 (assemble_one_insn): Handle DVP_OPERAND_DMA_{ADDR,AUTOCOUNT}.
1898 (md_apply_fix3): Handle DVP_OPERAND_DMA_ADDR.
1899 (parse_dma_addr_autocount): Renamed from parse_dma_ptr_autocount.
1900 Rewrite.
1901 (eval_expr): New function.
1902 (create_label,create_colon_label): New function.
1903 (s_enddmadata): Rewrite.
1904
1905 end-sanitize-sky
1906 Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
1907
1908 * Makefile.am (install-exec-local): Install properly when ln
1909 fails or tooldir == prefix.
1910
1911 start-sanitize-m32rx
1912 Wed Feb 18 18:11:42 1998 Nick Clifton <nickc@cygnus.com>
1913
1914 * config/tc-m32r.c (first_writes_to_seconds_operands): Special
1915 handling of updates to the condition bit as this is shadow by
1916 several registers.
1917 end-sanitize-m32rx
1918 start-sanitize-sky
1919 Wed Feb 18 15:49:56 1998 Doug Evans <devans@canuck.cygnus.com>
1920
1921 * config/tc-dvp.c (parse_float): New function.
1922 (assemble_vu): Handle loi insns.
1923 (assemble_one_insn): Simplify suffix parsing.
1924 Handle DVP_OPERAND_FLOAT. Allow FAKE arguments to have a parser
1925 handler.
1926
1927 end-sanitize-sky
1928 start-sanitize-m32rx
1929 Wed Feb 18 14:30:26 1998 Nick Clifton <nickc@cygnus.com>
1930
1931 * doc/c-m32r.texi (M32R-Opts): Add --Wp and --Wnp.
1932
1933 * doc/as.texinfo (Overview): Add --Wp and --Wnp.
1934
1935 * config/tc-m32r.c (md_longopts): Accept --Wp as an abbreviation
1936 for --warn-explicit-parallel-conflicts and --Wnp as an
1937 abbreviation for --no-warn-explicit-parallel-conflicts.
1938 (assemble_parallel_insn): Use non-relaxable versions of branch
1939 instructions.
1940
1941 Wed Feb 18 11:00:18 1998 Nick Clifton <nickc@cygnus.com>
1942
1943 * app.c: Parse || as a seperator between assembler statements.
1944
1945 end-sanitize-m32rx
1946 Tue Feb 17 18:58:51 1998 Doug Evans <devans@seba.cygnus.com>
1947
1948 * cgen.c (cgen_md_apply_fix3): Delete call to validate_operand.
1949 Test result of insert_operand for error.
1950
1951 start-sanitize-m32rx
1952 Mon Feb 16 12:28:40 1998 Nick Clifton <nickc@cygnus.com>
1953
1954 * config/tc-m32r.c (md_assemble): Only parallelise instructions
1955 when m32rx target is enabled and the instructions are not
1956 relaxable.
1957
1958 Fri Feb 13 14:42:16 1998 Nick Clifton <nickc@cygnus.com>
1959
1960 * config/tc-m32r.c (first_writes_to_seconds_operands): Do not
1961 bother checking insn which have no operands.
1962
1963 end-sanitize-m32rx
1964 Fri Feb 13 16:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
1965
1966 * Makefile.am (AUTOMAKE_OPTIONS): Add cygnus.
1967 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1968 * doc/Makefile.am (AUTOMAKE_OPTIONS): Define.
1969 * doc/Makefile.in: Rebuild.
1970
1971 start-sanitize-m32rx
1972 Fri Feb 13 09:57:11 1998 Nick Clifton <nickc@cygnus.com>
1973
1974 * config/tc-m32r.c (first_writes_to_seconds_operands): New
1975 function. Replaces get_src_reg(), check_for_side_effects(),
1976 reads_from_src_reg(). Uses new insn operand features of cgen.
1977 (writes_to_pc): New function., but with new code suppressed for now.
1978 (md_assemble): Call first_writes_to_seconds_operands().
1979 end-sanitize-m32rx
1980 Fri Feb 13 00:47:44 1998 Ian Lance Taylor <ian@cygnus.com>
1981
1982 * config/tc-mips.c (macro_build): Handle operand type 'C'.
1983 (macro): Fix handling of M_COP[0-3].
1984
1985 Thu Feb 12 14:06:59 1998 Ian Lance Taylor <ian@cygnus.com>
1986
1987 Based on patches from Ross Harvey <ross@teraflop.com>:
1988 * macro.c (ISSEP): Only treat '<' and '>' as separator characters
1989 if macro_alternate or macro_mri.
1990 (getstring): Remove support for byte constants between < and >.
1991 (get_any_string): '<' only starts a string if macro_alternate or
1992 macro_mri.
1993 (macro_expand_body): Permit keyword parameters following
1994 positional parameters.
1995
1996 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
1997 * configure.in (alpha*-*-netbsd*): New target.
1998 * config/te-nbsd.h (LOCAL_LABELS_FB): Define.
1999 * configure: Rebuild.
2000
2001 * as.h (flag_warn_suppress_instructionswap): Move from here...
2002 * config/tc-d10v.c (flag_warn_suppress_instructionswap): ...to
2003 here, and make static.
2004
2005 * ehopt.c (eh_frame_code_alignment): Only use seg_info if
2006 BFD_ASSEMBLER or MANY_SEGMENTS.
2007
2008 * as.c (show_usage): Update bug-gnu-utils address.
2009 * gasp.c (show_usage): Likewise.
2010 * doc/as.texinfo (Bug Reporting): Likewise.
2011
2012 Wed Feb 11 23:26:28 1998 Jeffrey A Law (law@cygnus.com)
2013
2014 * config/tc-mips.c (load_address): Don't use mips III or mips IV
2015 insns regardless of the size of a pointer if we're in mips I or
2016 MIPS II mode.
2017 (macro, macro2, s_cprestore, s_cpadd): Likewise.
2018
2019 Thu Feb 12 03:41:00 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
2020
2021 Fix rac to accept only a0:
2022 * tc-d10v.c (parallel_ok, find_opcode):
2023 Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
2024 Introduce OPERAND_GPR.
2025
2026 Wed Feb 11 16:28:13 1998 Richard Henderson <rth@cygnus.com>
2027
2028 * read.c (s_fill): Handle non-constant repeat counts by creating
2029 an rs_space fragment.
2030
2031 start-sanitize-m32rx
2032 Wed Feb 11 10:32:28 1998 Nick Clifton <nickc@cygnus.com>
2033
2034 * doc/c-m32r.texi: Document warning and error messages. Add
2035 descriptions of --warn-explicit-parallel-conflicts.
2036
2037 * doc/as.texinfo: Add more m32rx command line options.
2038
2039 end-sanitize-m32rx
2040 Tue Feb 10 18:31:31 1998 Ian Lance Taylor <ian@cygnus.com>
2041
2042 * config/tc-i386.c (i386_operand): Change error added Jan 2 1998
2043 from as_bad to as_warn.
2044
2045 start-sanitize-sky
2046 Tue Feb 10 15:15:40 1998 Doug Evans <devans@canuck.cygnus.com>
2047
2048 * config/tc-dvp.c (*): pke->vif, gpuif->gif.
2049
2050 end-sanitize-sky
2051 Tue Feb 10 18:04:00 1998 Jim Lemke <jlemke@cygnus.com>
2052
2053 * as.c: (perform_an_assembly_pass): Use [TEXT|DATA|BSS]_SECTION_NAME
2054 * as.h: Define default values of [TEXT|DATA|BSS]_SECTION_NAME
2055 * config/obj-elf.c (elf_begin): Use [TEXT|DATA|BSS]_SECTION_NAME
2056 start-sanitize-sky
2057 * config/tc-dvp.h: Add configuration specific section names.
2058 end-sanitize-sky
2059
2060 Tue Feb 10 17:58:18 1998 Ian Lance Taylor <ian@cygnus.com>
2061
2062 * ehopt.c (eh_frame_code_alignment): If not BFD_ASSEMBLER, use
2063 seg_fix_rotP rather than fix_root from seg_info.
2064
2065 Tue Feb 10 15:32:22 1998 Ian Carmichael <iancarm@cygnus.com>
2066
2067 * expr.c: Add support for 0x1_2_3_4 bignums.
2068
2069 Tue Feb 10 14:43:40 1998 Ian Lance Taylor <ian@cygnus.com>
2070
2071 * configure.in: Change -linux* to -linux-gnu*.
2072 * configure: Rebuild.
2073
2074 * app.c (do_scrub_begin): Treat \r as whitespace.
2075
2076 start-sanitize-m32rx
2077 Mon Feb 9 16:23:11 1998 Nick Clifton <nickc@cygnus.com>
2078
2079 * config/tc-m32r.c (get_src_reg): Use m32r_cgen_get_operand()
2080 rather than parsing syntax string manually.
2081 (assemble_parallel_insn): Check for both forms of parallel
2082 conflict.
2083 end-sanitize-m32rx
2084 Mon Feb 9 14:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
2085
2086 * Makefile.am: Update dependencies.
2087 * Makefile.in: Rebuild.
2088
2089 Sat Feb 7 15:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
2090
2091 * configure, aclocal.m4: Rebuild with new libtool.
2092
2093 Fri Feb 6 16:08:30 1998 Jeffrey A Law (law@cygnus.com)
2094
2095 * config/tc-mips.c (md_begin): If mips_cpu is set, then use it as
2096 the argument to bfd_set_arch_mach.
2097 (load_address): Use bfd_arch_bits_per_address to determine the
2098 bit size of an address instead of looking at the isa level.
2099 (macro, macro2, s_cprestore, s_cpadd): Likewise.
2100
2101 start-sanitize-v850e
2102 Fri Feb 6 14:44:34 1998 Nick Clifton <nickc@cygnus.com>
2103
2104 * config/tc-v850.c (md_parse_option): Add -mv850any command line option.
2105 end-sanitize-v850e
2106 Thu Feb 5 12:39:08 1998 Ian Lance Taylor <ian@cygnus.com>
2107
2108 * ehopt.c: New file.
2109 * as.h (enum _relax_state): Add rs_cfa.
2110 (check_eh_frame, eh_frame_estimate_size_before_relax): Declare.
2111 (eh_frame_relax_frag, eh_frame_convert_frag): Declare.
2112 * read.c (emit_expr): Call check_eh_frame.
2113 * write.c (cvt_frag_to_fill): Handle rs_cfa.
2114 (relax_segment): Likewise.
2115 * Makefile.am: Rebuild dependencies.
2116 (GAS_CFILES): Add ehopt.c.
2117 (GENERIC_OBJS): Add ehopt.o.
2118 * doc/internals.texi (Frags): Document rs_cfa.
2119
2120 * as.c (show_usage): Mention --traditional-format.
2121 (parse_args): Accept --traditional-format.
2122 * as.h (flag_traditional_format): Declare.
2123 * output-file.c (output_file_create): If flag_traditional_format,
2124 set BFD_TRADITIONAL_FORMAT on stdoutput.
2125 * doc/as.texinfo, doc/as.1: Document --traditional-format.
2126
2127 * config/tc-mips.c (append_insn): Make sure that if we have a
2128 fixup for an unmatched %hi reloc, it does not associated with a
2129 variant frag.
2130
2131 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
2132 * doc/Makefile.in: Likewise.
2133
2134 Wed Feb 4 15:41:54 1998 Nick Clifton <nickc@cygnus.com>
2135
2136 * config/tc-m32r.c (check_for_side_effects): New function.
2137 (can_make_parallel): Add checks for instruction side effects
2138 clashing with the other instruction.
2139 (assemble_parallel_insn): Improve warning messages. Return error
2140 message from non-swapped instruction order.
2141
2142 Wed Feb 4 20:00:26 1998 James G. Smith <jsmith@teknema.demon.co.uk>
2143
2144 * config/tc-arm.c: Rename arm_after_pass_hook() to arm_cleanup().
2145
2146 * config/tc-arm.h: Replace md_after_pass_hook definition with a
2147 md_cleanup definition. This moves the forced literal output to
2148 the end of the source pass, and avoids macro's inserting literals
2149 into the code immediately after the macro expansion.
2150
2151 Wed Feb 4 13:17:19 1998 Ian Lance Taylor <ian@cygnus.com>
2152
2153 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: A reloc against
2154 a gas internal symbol is adjustable.
2155 * config/tc-ppc.h (tc_fix_adjustable): Likewise.
2156
2157 * as.h: If gcc version greater than 2.6, use `__format__' and
2158 `__printf__' in function attributes, rather than `format' and
2159 `printf'.
2160
2161 Mon Feb 2 18:38:18 1998 Ian Lance Taylor <ian@cygnus.com>
2162
2163 * config/tc-sparc.c: Only include elf/sparc.h if OBJ_ELF.
2164
2165 Mon Feb 2 18:30:34 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
2166
2167 Add tms320c30 support:
2168 * config/tc-tic30.h: New file.
2169 * config/tc-tic30.c: New file.
2170 * config/obj-coff.h: If TC_TIC30, include coff/tic30.h and define
2171 TARGET_FORMAT as "coff-tic30".
2172 * configure.in (tic30-*-*aout*, tic30-*-*coff*): New targets.
2173 * Makefile.am: Rebuild dependencies.
2174 (CPU_TYPES): Add tic30.
2175 (CPU_OBJ_VALID): tic30-aout is valid.
2176 (TARGET_CPU_CFILES): Add config/tc-tic30.c.
2177 (TARGET_CPU_HFILES): Add config/tc-tic30.h.
2178 * configure, Makefile.in: Rebuild.
2179
2180 Mon Feb 2 10:20:37 1998 Nick Clifton <nickc@cygnus.com>
2181
2182 * config/tc-v850.c (md_assemble): Improvements to error messages.
2183
2184 Mon Feb 2 12:39:05 1998 Geoff Keating <geoffk@ozemail.com.au>
2185
2186 * config/tc-ppc.c (md_apply_fix3): Change BFD_RELOC_HI16 and
2187 BFD_RELOC_HI16_S to store the high bits of any value.
2188
2189 * config/tc-ppc.h (tc_fix_adjustable): Undo change of Fri Jun 27.
2190 (TC_RELOC_RTSYM_LOC_FIXUP): Don't let the
2191 assembler calculate relocations to any external symbol at all.
2192 * config/tc-ppc.c (md_apply_fix3) [OBJ_ELF]: Correct bugs
2193 involving generation of pc-relative relocs.
2194 (md_pcrel_from_section) [OBJ_ELF]: The job this code used to do
2195 has been moved to md_apply_fix3.
2196
2197 * config/tc-ppc.c (md_apply_fix3): Fix test for too-far branch.
2198 (ppc_elf_suffix): Warn about 'identifier+constant@got' syntax,
2199 which actually means (the address of identifier's GOT entry) +
2200 constant, which is not particularly useful.
2201
2202 Fri Jan 30 11:02:35 1998 Doug Evans <devans@canuck.cygnus.com>
2203
2204 * read.h (include_dirs): Declare.
2205 (include_dir_count,include_dir_maxlen): Declare.
2206 start-sanitize-sky
2207
2208 * config/tc-dvp.c (md_longopts): Add -no-dma, -no-dma-pke.
2209 (md_parse_option): Handle them.
2210 (md_show_usage): Print them.
2211 (output_dma,output_pke): New static globals.
2212 (assemble_pke): Handle -no-dma-pke.
2213 (insert_file): Search include dir list.
2214 (s_enddirect): Validate length if prespecified.
2215 (s_endmpg): Likewise. Handle -no-dma-pke.
2216 (s_endunpack): Handle -no-dma-pke.
2217 (md_pcrel_from_section): Add offset to delay slot for
2218 undefined symbols.
2219 end-sanitize-sky
2220
2221 Fri Jan 30 11:47:02 1998 Ian Lance Taylor <ian@cygnus.com>
2222
2223 * configure.in: Correct check for shared opcodes library.
2224 * configure: Rebuild.
2225
2226 * listing.c (buffer_line): If we can't open the file, set at_end.
2227 (listing_print): Remove unused local variable fi.
2228
2229 * config/m68k-parse.y (reglistpair): Handle register list in
2230 either order.
2231
2232 * config/vms-conf.h: Don't undef VERSION.
2233
2234 start-sanitize-m32rx
2235 Thu Jan 29 13:36:29 1998 Doug Evans <devans@canuck.cygnus.com>
2236
2237 * config/tc-m32r.c (allow_m32rx): Must compile with K&R C.
2238 (m32rx support): only include #ifdef HAVE_CPU_M32RX.
2239
2240 end-sanitize-m32rx
2241 Thu Jan 29 14:42:44 1998 Pat Rankin <rankin@eql.caltech.edu>
2242
2243 * Makefile.am (CONFIG_OBJS): New variable, containing part of old
2244 OBJS variable.
2245 (GENERIC_OBJS): New variable, with the rest of the old OBJS
2246 variable.
2247 (OBJS): Now just $(CONFIG_OBJS) and $(GENERIC_OBJS).
2248 ($(srcdir)/make-gas.com): Rename from make-gas.com.
2249 (stamp-mk.com): Replace $(OBJS) with $(GENERIC_OBJS).
2250 (EXTRA_DIST): Define.
2251 * vmsconf.sh: Handle {targ-cpu, obj-format, atof-targ} modules
2252 explicitly rather than via the list of object files.
2253 (gcc-as.opt): New file created when make-gas.com is run.
2254 * config-gas.com: Create {targ-cpu.h, obj-format.h, targ-env.h,
2255 itbl-cpu.h} to #include appropriate file rather than copying that
2256 file.
2257 * config/vms-conf.h: Synchronize with current config.in.
2258 * Makefile.in: Rebuild.
2259
2260 start-sanitize-d30v
2261 Thu Jan 29 18:48:19 1998 Bill Moyer <billm@cygnus.com>
2262
2263 * config/tc-d30v.c (do_assemble): Added flag_explicitly_parallel.
2264 (parallel_ok): Relaxed parallel subinstruction dependency check.
2265
2266 end-sanitize-d30v
2267 start-sanitize-m32rx
2268 Wed Jan 28 16:27:27 1998 Nick Clifton <nickc@cygnus.com>
2269
2270 * config/tc-m32r.c (md_assemble): Fix determination of when
2271 instructions can be combined in parallel.
2272
2273 end-sanitize-m32rx
2274 Wed Jan 28 14:35:00 1998 Bill Moyer <billm@cygnus.com>
2275
2276 * as.h (flag_warn_suppress_instructionswap): added new flag.
2277 * tc-d10v.c (md_parse_option,md_longopts): added "--nowarnswap"
2278 command line argument.
2279 * tc-d10v.c (write_2_short): emit "Swapping instructions"
2280 warning only if flag_warn_suppress_instructionswap is false.
2281
2282 Wed Jan 28 16:41:19 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
2283
2284 * configure.in (i386-*-mingw32*): New target.
2285 * configure: Rebuild.
2286
2287 Wed Jan 28 14:51:18 1998 Ian Lance Taylor <ian@cygnus.com>
2288
2289 * symbols.c (resolve_symbol_value): Don't set the segment if it
2290 hasn't changed, and this is OBJ_AOUT without BFD_ASSEMBLER.
2291
2292 * config/obj-aout.h (S_IS_LOCAL): Correct typo--pass argument to
2293 S_GET_SEGMENT.
2294
2295 Wed Jan 28 13:54:50 1998 Pat Rankin <rankin@eql.caltech.edu>
2296
2297 as.h (unlink): Reverse 13-Feb-97 change; use of unlink vs remove
2298 depends upon HAVE_{UNLINK,REMOVE} values rather than host
2299 compiler.
2300
2301 Wed Jan 28 13:48:08 1998 Ian Lance Taylor <ian@cygnus.com>
2302
2303 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Define.
2304
2305 start-sanitize-sky
2306 Wed Jan 28 10:00:40 1998 Doug Evans <devans@canuck.cygnus.com>
2307
2308 * configure.in: Add dvp support.
2309 * configure: Regenerate.
2310 * config/tc-dvp.[ch]: New files.
2311
2312 end-sanitize-sky
2313 Wed Jan 28 09:52:00 1998 Nick Clifton <nickc@cygnus.com>
2314
2315 * config/tc-v850.c (v850_insert_operand): Display instruction when
2316 an error is encountered.
2317
2318 Tue Jan 27 13:32:01 1998 Robert Lipe <robertl@dgii.com>
2319
2320 * configure.in (i386-*-sco3.2v5*): Defaults to ELF now.
2321 (i386-*-sco3.2v5*coff): New target.
2322 (i386-*-sco3.2*): New target.
2323 * configure: Rebuild.
2324
2325 Tue Jan 27 11:06:52 1998 Nick Clifton <nickc@cygnus.com>
2326
2327 * config/tc-v850.c: Tidy error message production.
2328
2329 Tue Jan 27 12:24:32 1998 Ian Lance Taylor <ian@cygnus.com>
2330
2331 * config/tc-arm.c (md_apply_fix3): Add new variable newimm to hold
2332 validate_immediate return value in the right type for comparisons
2333 to FAIL.
2334
2335 Tue Jan 27 06:51:59 1998 Richard Henderson <rth@cygnus.com>
2336
2337 * listing.c (MAX_BYTES): Use listing variables not constants.
2338 (data_buffer): No longer an array, but a pointer.
2339 (calc_hex): sizeof(data_buffer) -> MAX_BYTES.
2340 (listing_listing): Allocate data_buffer.
2341
2342 Tue Jan 27 06:38:35 1998 Richard Henderson <rth@cygnus.com>
2343
2344 * as.c (parse_args): Add --listing-lhs-width, --listing-lhs-width2,
2345 --listing-rhs-width, --listing-cont-lines.
2346 (show_usage): Update.
2347 * listing.c (listing_lhs_width, listing_lhs_width_second): New vars.
2348 (listing_lhs_cont_lines, listing_rhs_width): New vars.
2349 (print_lines): Use the variables instead of the constants.
2350 (listing_listing): Likewise.
2351 * listing.h: Declare the new vars.
2352
2353 Tue Jan 27 05:32:05 1998 Richard Henderson <rth@cygnus.com>
2354
2355 * as.c (parse_args): Add --keep-locals alias for -L.
2356 Add --strip-local-absolute.
2357 (show_usage): Update.
2358 * as.h (flag_strip_local_absolute): New flag.
2359 * symbols.c (S_IS_LOCAL): Use it.
2360 * config/obj-aout.h (S_IS_LOCAL): Likewise.
2361 * config/obj-bout.h (S_IS_LOCAL): Likewise.
2362 * config/obj-coff.h (S_IS_LOCAL): Likewise.
2363
2364 Mon Jan 26 13:07:41 1998 Nick Clifton <nickc@cygnus.com>
2365
2366 * config/tc-m32r.c: Detect if explicitly parallel instructions
2367 might have an io conflict and issue a warning message.
2368
2369 start-sanitize-m32rx
2370 Mon Jan 26 12:38:54 1998 Nick Clifton <nickc@cygnus.com>
2371
2372 * config/tc-m32r.c (reads_from_src_reg): Change second parameter
2373 to a count of the number of matches to skip.
2374 (can_make_parallel): Pass count of number of matches to skip to
2375 reads_from_src_reg().
2376
2377 end-sanitize-m32rx
2378 Thu Jan 22 17:51:44 1998 Nick Clifton <nickc@cygnus.com>
2379
2380 start-sanitize-m32rx
2381 * config/tc-m32r.c: Add support for swapping fixups of swap
2382 instructions.
2383 end-sanitize-m32rx
2384 * cgen.c (cgen_save_fixups, cgen_restore_fixups,
2385 cgen_swap_fixups): Functions to save, restore and swap the fixup
2386 chain with a backup copy.
2387 (cgen_asm_finish_insn): Returns address of constructed insn.
2388
2389 Wed Jan 21 16:49:10 1998 Richard Henderson <rth@cygnus.com>
2390
2391 * listing.c (file_info_struct): Remove FILE, add POS.
2392 (last_open_file_info, last_open_file): New; a one entry FILE* cache.
2393 (file_info): Don't open the file.
2394 (buffer_line): Check for the file in the last_open cache, updating
2395 as necessary.
2396 (print_source): Don't reference file_info->file.
2397 (listing_listing): Likewise.
2398 (listing_print): Close the file in the cache, if any.
2399
2400 start-sanitize-m32rx
2401 Tue Jan 20 17:08:53 1998 Nick Clifton <nickc@cygnus.com>
2402
2403 * config/tc-m32r.c (md_assemble): Add code to swap explicitly
2404 parallel instructions so that they are in the correct order.
2405 (reads_from_src_reg, get_src_reg, can_make_parallel,
2406 make_parallel): New functions to support opportunistic
2407 parallelisation of adjacent instructions.
2408
2409 end-sanitize-m32rx
2410 Fri Jan 16 14:51:48 1998 Ian Lance Taylor <ian@cygnus.com>
2411
2412 * read.c (dwarf_file_string): New file static variable.
2413 (emit_expr): Look for constant sequence that leads up to a file
2414 name in DWARF debugging output.
2415 (stringer): Use dwarf_file_string to decide whether to accept a
2416 string as a file name.
2417
2418 Fri Jan 16 11:30:37 1998 Richard Henderson <rth@cygnus.com>
2419
2420 * tc-m68k.c (m68k_ip): Remove absl->reglst MRI hack.
2421 (crack_operand): Add reg->reglst MRI hack.
2422 (r_seg): Put reglst symbols in reg_section.
2423 (m68k_frob_symbol): Frob reglst symbols into absolute_section.
2424
2425 Thu Jan 15 14:19:01 1998 Richard Henderson <rth@cygnus.com>
2426
2427 * tc-sh.c (get_specific): Handle SGR & DBR.
2428
2429 Thu Jan 15 13:46:48 1998 Richard Henderson <rth@cygnus.com>
2430
2431 * tc-h8300.c (parse_reg): Take the length of the symbol into
2432 account when attempting to match a register name.
2433 * tc-h8500.c (parse_reg): Likewise.
2434
2435 Wed Jan 14 17:52:33 1998 Nick Clifton <nickc@cygnus.com>
2436
2437 start-sanitize-m32rx
2438 * config/tc-m32r.c (md_assemble): Add support for parsing parallel
2439 instructions.
2440 end-sanitize-m32rx
2441 * cgen.c: Formatting changes to improve readability.
2442
2443 Wed Jan 14 15:41:41 1998 Jeffrey A Law (law@cygnus.com)
2444
2445 * config/tc-mips.c (macro): Rework division code to avoid unfilled
2446 delay slot.
2447
2448 start-sanitize-d30v
2449 Wed Jan 14 18:04:20 1998 Michael Meissner <meissner@cygnus.com>
2450
2451 Based on a patch from Jim Wilson
2452 * config/tc-d30v.c (do_assemble): Remove non-ansi default case.
2453 (tc_gen_reloc): Handle cross section PC relative relocs
2454 correctly.
2455
2456 end-sanitize-d30v
2457 Wed Jan 14 15:02:19 1998 Doug Evans <devans@seba.cygnus.com>
2458
2459 * config/tc-mips.c (mips_ip): Don't test pinfo flags if INSN_MACRO.
2460
2461 Mon Jan 12 13:04:57 1998 Doug Evans <devans@seba.cygnus.com>
2462
2463 * cgen.c: #include setjmp.h. Clean up pass over `struct foo' usage.
2464 (expr_jmp_buf): New static local.
2465 (cgen_parse_operand): Allow use of longjmp in parsing to handle errors.
2466 (cgen_md_operand): New function.
2467 * tc-m32r.c: Clean up pass over `struct foo' usage.
2468 (md_estimate_size_before_relax): Use CGEN_INSN_MNEMONIC.
2469
2470 Tue Jan 6 15:36:02 1998 Richard Henderson <rth@cygnus.com>
2471
2472 * symbols.c (S_SET_SEGMENT): Don't set the segment for section syms.
2473 (S_IS_EXTERNAL, S_IS_LOCAL): Correct parenthetication.
2474
2475 Fri Jan 2 16:08:54 1998 Ian Lance Taylor <ian@cygnus.com>
2476
2477 * config/tc-i386.c (i386_operand): Give an error if there are
2478 unrecognized characters after an expression.
2479
2480 For older changes see ChangeLog-9697
This page took 0.083227 seconds and 4 git commands to generate.