Correctly calculate the pc relative offset of the target destination for jmp
[external/binutils.git] / gas / ChangeLog
1 2000-08-25  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2
3         * tc-vax.c (md_convert_frag): Correctly calculate the pc relative
4         offset of the target destination for jmp instructions.
5         (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
6
7 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
8
9         * NEWS: Mention support for CRIS.
10
11 Thu Aug 24 20:41:05 2000  Denis Chertykov  <denisc@overta.ru>
12
13         * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
14         Sets `.lcomm' alignment to zero.
15
16 2000-08-23  Alexandre Oliva  <aoliva@redhat.com>
17
18         * config/tc-i386.h <OBJ_MAYBE_ELF, OBJ_MAYBE_COFF>
19         (TC_FIX_ADJUSTABLE): Define.
20
21 2000-08-23  Jim Wilson  <wilson@cygnus.com>
22
23         * config/tc-ia64.c (output_unw_records): Set U & E flags only if
24         unwind.personality_routine is set.
25
26 2000-08-23  H.J. Lu  <hjl@gnu.org>
27
28         * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
29
30 2000-08-23  Alexandre Oliva  <aoliva@redhat.com>
31
32         * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
33         environment is pe.
34
35 2000-08-22  H.J. Lu  <hjl@gnu.org>
36
37         * config.in (STRICTCOFF): New for strict COFF.
38
39         * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
40         i386-*-go32* and i386-go32-rtems*.
41         * configure: Rebuilt.
42
43         * config/obj-coff.c (obj_coff_endef): Follow the historical
44         behavior if STRICTCOFF is not defined.
45
46         * doc/internals.texi: Document STRICTCOFF.
47
48 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
49
50         * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
51         (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
52         * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
53         <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
54         * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
55         <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
56         * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
57         Likewise.
58
59 2000-08-22  Eric Christopher  <echristo@cygnus.com>
60
61         * config/tc-mn10300.c: (md_apply_fix): New function.
62         (mn10300_force_relocation): New function.
63         (mn10300_fix_adjustable): New function.
64
65         * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
66         (TC_HANDLES_FX_DONE): Define.
67         (obj_fix_adjustable): Define.
68         (MD_APPLY_FIX3): Define.
69         (TC_LINKRELAX_FIXUP): Define.
70
71         * write.c: (TC_LINKRELAX_FIXUP):  Define if not
72         previously defined.
73         (fixup_segment): Use TC_LINKRELAX_FIXUP.
74
75         * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
76
77 2000-08-21  Jason Eckhardt  <jle@cygnus.com>
78
79         * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
80         if the fixup resulted in a relocation.
81
82 2000-08-18  Nick Clifton  <nickc@redhat.com>
83
84         * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
85         Make reference to first element of shift_names explicit.
86
87 2000-08-18  Alexandre Oliva  <aoliva@redhat.com>
88
89         * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
90         obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
91         add a symbol's address.  Removed all target-specific #ifdefs that
92         used to accomplished the same.
93         * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
94         * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
95         * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
96         * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
97         * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
98
99 2000-08-17  Kazu Hirata  <kazu@hxi.com>
100
101         * dwarf2dbg.c: Fix formatting.
102
103 2000-08-17  Nick Clifton  <nickc@redhat.com>
104
105         * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
106         to be recoded as logical shift lefts by zero.
107
108 2000-08-16  Jim Wilson  <wilson@cygnus.com>
109
110         * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
111         postincrement modified registers.  Handle IA64_OPND_R3_2 addl
112         source registers.
113         (note_register_values): Handle IA64_OPND_R3_2 operands.
114
115 2000-08-16  Jason Eckhardt  <jle@cygnus.com>
116
117         * config/tc-i860.c (md_operand): Silly typo fixed.
118
119 2000-08-16  Nick Clifton  <nickc@redhat.com>
120
121         * config/tc-arm.c (struct asm_shift): Delete.
122         (shift[]): Delete.
123         (enum asm_shift_index): New.
124         (struct asm_shift_properties): New.
125         (struct asm_shift_name): New.
126         (shift_properties[]); New.
127         (shift_names[]); New.
128
129         (decode_shift): Use new structures.
130         Issue a warning is "ROR #0" is used.
131         Issue a warning if "ASR #0" or "LSR #0" is used.
132
133         (md_begin): Initialise arm_shift_hsh table from new
134         asm_shift_name array.
135
136 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
137
138         * config/tc-sparc.c: Kill all warnings.
139         (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
140         in -xarch= as well.
141         (md_show_usage): Update usage text.
142
143 2000-08-16  Nick Clifton  <nickc@redhat.com>
144
145         * config/tc-arm.c (do_bx): Warn about "bx px" not being very
146         useful.
147
148 2000-08-14  Will Cohen  <wcohen@redhat.com>
149
150         * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
151
152         * config/tc-sh.c (md_assemble): Changed so debug_type
153         test performed for ppi_assemble
154         * config/tc-sh.c: Included dwarf2dbg.h.
155         (debug_line): Defined.
156         (md_assemble): Generates dwarf2 line info.
157         (sh_finalize): New function.  Finalize dwarf2 info.
158         (assemble_ppi): Returns size of code generated.
159         (build_Mytes): Returns size of code generated.
160         (md_pseudo_table): Added "file" and "loc" psuedo ops.
161         * config/tc-sh.h (md_end): Defined.
162         (sh_finalize): Declared.
163
164 2000-08-15  Alexandre Oliva  <aoliva@redhat.com>
165
166         * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
167         md_number_to_chars.
168
169 2000-08-14  Nick Clifton  <nickc@redhat.com>
170
171         * config/tc-arm.c (do_bx): Allow "bx pc".
172
173 2000-08-14  Jim Wilson  <wilson@cygnus.com>
174
175         * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
176         (md_parse_option):  Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
177         (md_begin): Change assignment to md.flag to OR in the new bit.
178
179 2000-08-14  Mark Elbrecht  <snowball3@bigfoot.com>
180
181         * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
182           flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
183           C_MOU, and C_EOS.
184
185 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
186
187         * NEWS: Mention i860 support.
188
189 Mon Aug 14 11:49:12 2000  Jeffrey A Law  (law@cygnus.com)
190
191         * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
192
193 2000-08-14  Andreas Schwab  <schwab@suse.de>
194
195         * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
196
197 2000-08-11  Andreas Schwab  <schwab@suse.de>
198
199         * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
200         argument.
201
202 2000-08-11  Kazu Hirata  <kazu@hxi.com>
203
204         * expr.c: Fix formatting.
205         * config/obj-bout.c: Likewise.
206
207 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
208
209         * doc/c-i860.texi: Flesh out the i860 section more.
210
211 2000-08-10  Kazu Hirata  <kazu@hxi.com>
212
213         * symbols.c: Fix formatting.
214         * expr.c: Likewise.
215
216 Wed Aug  9 16:28:21 EDT 2000    Diego Novillo <dnovillo@cygnus.com>
217
218         * tc-i386.c (md_assemble): Skip suffix check if the opcode modifier
219         has the IgnoreSize bit set.
220
221 2000-08-09  Alan Modra  <alan@linuxcare.com.au>
222
223         From  Rodney Brown  <RodneyBrown@mynd.com>
224         * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
225         * configure: Regenerate.
226
227 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
228
229         * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
230         (i860_fix_info): New enum.
231         (MD_APPLY_FIX3): Define.
232         (WORKING_DOT_WORD): Define.
233         (TC_HANDLES_FX_DONE): Define.
234         (DIFF_EXPR_OK): Define.
235         (LISTING_HEADER): Define.
236         (TARGET_FORMAT): Select target format based on endian flag.
237         (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
238         (target_big_endian): Add external declaration.
239
240         * config/tc-i860.c: All existing code reworked completely. Other
241         new code shown below.
242         (SYNTAX_SVR4): Define.
243         (target_warn_expand): New variable.
244         (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
245         (md_longopts): Declare and define with new options (-EL, -EB,
246         and -mwarn-expand).
247         (md_show_usage): New function.
248         (md_operand): New function.
249         (obtain_reloc_for_imm16): New function.
250         (md_apply_fix3): New function.
251         (tc_gen_reloc): New function.
252
253 2000-08-09  Kazu Hirata  <kazu@hxi.com>
254
255         * hash.c: Fix formatting.
256         * gasp.c: Likewise.
257
258 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
259
260         * config/tc-m68hc11.c (build_jump_insn): Make sure the
261         2 bytes of the jump address are in the same frag.
262         (find): Accept 68hc12 register indirect modes.
263
264         * NEWS: Mention 68HC11 & 68HC12 support.
265
266 2000-08-07  Richard Henderson  <rth@cygnus.com>
267
268         * config/tc-ia64.c (unwind): Add prologue_mask member.
269         (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
270         (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
271         (dot_body): Clear unwind.prologue_mask.
272         (dot_prologue): Set it.  Accept a register second argument.
273
274 2000-08-07  Kazu Hirata  <kazu@hxi.com>
275
276         * config/atof-ieee.c: Fix formatting.
277         * config/atof-tahoe.c: Likewise.
278
279 2000-07-29  Marek Michalkiewicz  <marekm@linux.org.pl>
280
281         * config/tc-avr.c: Use PARAMS macro in function declarations.
282         Don't declare md_pcrel_from_section (already in tc-avr.h).
283         (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
284         (avr_operand): Don't set (unsigned) op_mask to -1.
285
286 2000-08-04  Nick Clifton  <nickc@cygnus.com>
287
288         * config/tc-sparc.c (md_begin): Fix typo in recent formatting
289         work.
290
291         * doc/as.texinfo (Pseudo Ops): Update to include descriptions
292         of .popsection, .previous, .pushsection, .subsection,
293         .version, .vtable_entry, .vtable_inherit and .weak.
294
295 2000-08-05  Kazu Hirata  <kazu@hxi.com>
296
297         * config/tc-cris.c: Fix formatting.
298         * config/tc-i386.c: Likewise.
299         * config/tc-sparc.c (sparc_ip): Simplify the code.
300
301 2000-08-04  Kazu Hirata  <kazu@hxi.com>
302
303         * config/tc-cris.c: Rearrange code for readability.
304         * config/tc-d10v.c: Fix formatting.
305         * config/tc-m32r.c: Likewise.
306         * config/tc-sparc.c: Likewise.
307
308 2000-08-02  Jim Wilson  <wilson@cygnus.com>
309
310         * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
311         before ia64_find_opcode.
312         (md_assemble): Likewise.
313
314 2000-08-01  Nick Clifton  <nickc@cygnus.com>
315
316         * config/tc-arm.c (do_mrs): Fix skip fo 'cpsr_all' flag.
317         Undo some formatting fixes.
318
319 2000-08-01  Kazu Hirata  <kazu@hxi.com>
320
321         * config/obj-som.c: Fix formatting.
322         * config/obj-ieee.c: Likewise.
323         * config/tc-arm.c: Likewise.
324         * config/tc-v850.c: Likewise.
325
326 2000-08-01  Nick Clifton  <nickc@redhat.com>
327
328         * doc/c-m68k.texi (section M680x0 Options): Turn into a table
329         index by command line option.
330
331 2000-08-01  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
332
333         * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
334         (@node M68K-Branch): Rewrite to match the reality.
335
336 2000-07-31  Jason Eckhardt  <jle@cygnus.com>
337
338         * doc/c-i860.texi: New file.
339         * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
340         * doc/Makefile.in: Regenerate.
341         * doc/all.texi: Add I860 as relevant architecture.
342         * doc/as.texinfo: Include i860 dependent file c-i860.texi.
343
344 2000-07-31  Kazu Hirata  <kazu@hxi.com>
345
346         * config/tc-d30v.c: Fix formatting.
347
348 2000-07-31  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
349
350         * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
351         (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
352         long emit a long branch if available instead of an absolute jump, never
353         emit absolute jumps for anything with --pcrel.
354
355         * doc/c-m68k.texi: Document new command line option.
356
357 2000-07-28  Jason Eckhardt  <jle@cygnus.com>
358
359         * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
360         * configure: Regenerated.
361         * config/obj-elf.c (obj_elf_type): Recognize a fifth type
362         of operand to the .type directive (.e.g, "type").
363
364 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
365
366         * as.h (warn_comment, found_comment, found_comment_file): Declare.
367         * app.c (do_scrub_chars): Record where first comment found.
368         * read.c (read_a_source_file): Init found_comment on entry, and
369         notify whether comments found on exit.
370         * config/tc-hppa.c (md_shortopts): Add "c".
371         (md_longopts): Add warn-comment.
372         (md_parse_option): Handle it.
373         (md_show_usage): Show available options.
374         * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
375
376 Thu Jul 27 11:25:01 2000  Andrew Cagney  <cagney@b1.cygnus.com>
377
378         * config/tc-mn10300.c (md_convert_frag): Fix printfs.
379         (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
380         sym_ptr_ptr
381         (md_estimate_size_before_relax): Don't fall off end of function.
382
383 2000-07-27  Kazu Hirata  <kazu@hxi.com>
384
385         * config/tc-avr.c: Fix formatting.
386         * config/tc-ns32k.c: Likewise.
387
388 2000-07-27  Alan Modra  <alan@linuxcare.com.au>
389
390         * config/tc-d10v.c (find_opcode): Remove extraneous `='.
391
392 2000-07-27  Kazu Hirata  <kazu@hxi.com>
393
394         * config/tc-d10v.c: Fix formatting.
395         * config/tc-z8k.c: Likewise.
396         * config/tc-sparc.c: Likewise.
397
398 2000-07-26  Dave Brolley  <brolley@redhat.com>
399
400         * cgen.c (queue_fixup): Declare opinfo.
401         (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
402         (gas_cgen_md_operand): Ditto.
403         (gas_cgen_md_apply_fix3): Ditto.
404
405 2000-07-24  Mark Elbrecht  <snowball3@bigfoot.com>
406
407         * config/obj-coff.c (obj_frob_symbol): Don't merge
408         labels. Don't merge if the symbol isn't constant. Return
409         immediately if a symbol is merged.
410
411 2000-07-22  Alan Modra  <alan@linuxcare.com.au>
412
413         * frags.c (frag_align): Correct absolute section alignment.
414
415 2000-07-20  DJ Delorie  <dj@redhat.com>
416
417         * config/obj-coff.c (obj_frob_symbol): revert previous change,
418         it breaks linking against DLLs.
419
420 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
421
422         * configure.in: Add CRIS support.
423         * configure: Regenerate.
424         * Makefile.am: (CPU_TYPES): Add cris.
425         (CPU_OBJ_VALID) [aout]: Add cris.
426         (MULTI_CPU_TYPES): Add cris.
427         (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
428         [coff]: Only i386 and mips are valid.
429         (TARGET_CPU_CFILES): Add config/tc-cris.c.
430         (TARGET_CPU_HFILES): Add config/tc-cris.h.
431         (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
432         Regenerate dependencies.
433         * Makefile.in: Regenerate.
434         * aclocal.m4: Regenerate.
435         * as.c: Declare crisaout, criself.
436         * config/tc-cris.h, config/tc-cris.c: New.
437         * config/e-criself.c, config/e-crisaout.c: New.
438         * po/POTFILES.in, po/gas.pot: Regenerate.
439
440 2000-07-20  Kazu Hirata  <kazu@hxi.com>
441
442         * read.c: Fix formatting.
443         * write.c: Fix formatting.
444
445 2000-07-19  H.J. Lu  <hjl@gnu.org>
446
447         * sb.c: Include <stdlib.h> if exists for abort ().
448
449 2000-07-19  Alan Modra  <alan@linuxcare.com.au>
450
451         * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
452         (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
453         (pa_type_args): Same here.
454
455 2000-07-17  Mark Elbrecht  <snowball3@bigfoot.com>
456
457         * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
458         merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
459         the storage class is already set.
460
461 2000-07-17  Kazu Hirata  <kazu@hxi.com>
462
463         * config/tc-m68hc11.c: Fix formatting.
464         * config/tc-mn10200.c: Likewise.
465         * config/tc-mn10300.c: Likewise.
466         * config/tc-pj.c: Likewise.
467         * config/tc-tic80.c: Likewise.
468         * config/tc-w65.c: Likewise.
469
470 2000-07-17  Frank Ch. Eigler  <fche@redhat.com>
471
472         * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
473         is defined.
474
475 2000-07-15  Ian Lance Taylor  <ian@zembu.com>
476
477         * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
478         @code.
479
480 2000-07-15  Alan Modra  <alan@linuxcare.com.au>
481
482         * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
483         ELF as are used for SOM (except the 32-bit reloc one) to decide
484         whether a symbol can be reduced to a section symbol.  Expand on
485         the comment for symbols involved in LR% and RR% expressions.
486
487 2000-07-14  Nick Clifton  <nickc@cygnus.com>
488
489         * config/tc-mips.c (mips_disable_float_construction): New
490         static variable.  Set to true if doubles should not be
491         constructed by loading two single width fp registers with
492         halves of the value.
493         (mips_ip): Test mips_disable_float_construction.
494         (md_longopts): Add command line switches --construct-floats
495         and --no-construct-floats.
496         (md_parse_option): Parse new command line options.
497         (md_show_usage): Describe new command line options.
498
499         * doc/c-mips.texi: Document new command line options.
500
501 2000-07-13  Koundinya K  <kk@ddeorg.soft.net>
502
503         * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
504         * configure: Regenerate.
505
506 2000-07-13  Hans-Peter Nilsson  <hp@axis.com>
507
508         * configure.in (DEFAULT_EMULATION setting): Revert part of
509         2000-07-01 change that set te_multi=multi unless set to tmips.
510         * configure: Regenerate.
511
512 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
513
514         * config/obj-coff.c (coff_frob_section): Add padding to the last
515           section when aligning it increases its size.
516
517 2000-07-11  Kazu Hirata  <kazu@hxi.com>
518
519         * config/tc-tic54x.c: Fix formatting.
520
521 2000-07-10  Kazu Hirata  <kazu@hxi.com>
522
523         * config/tc-h8500.c: Fix formatting.
524         * config/tc-tic54x.c: Fix formatting.
525
526 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
527
528         * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
529         displacements correctly.
530
531         * read.h (s_abort): Add ATTRIBUTE_NORETURN.
532
533 2000-07-10  Ryan Bradetich  <rbradetich@uswest.net>
534
535         * hash.c (hash_insert): Add cast to obstruct_alloc to fix
536         warning.
537         (hash_jam): Ditto.
538
539 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
540
541         From  David Huggins-Daines  <dhd@linuxcare.com>
542         * config/te-hppalinux64.h: Add a new emulation.
543         * configure.in (emulations): Add configure bits to support the
544         64-bit Linux/parisc target.
545         * configure: Regenerate.
546
547         * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
548         (md_shortopts): Add `V' for ELF.
549
550         * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
551         when SOM or ELF_ARG_RELOC are defined.
552         (pa_type_args): Only set symbol_arg_reloc_info when SOM or
553         ELF_ARG_RELOC are defined.
554         (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
555         (pa_stringer): ..Do it here instead.  Fix comment typos.
556         (hppa_force_relocation): Cast enums to int before comparing with
557         ints.
558
559         From  Ryan Bradetich  <rbradetich@uswest.net>
560         * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
561         redifinition warning.
562         (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
563         (hppa_force_relocation): ditto
564         (md_apply_fix): Added cast to buf to fix warnings.
565
566         * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
567         cons_fix_new_hppa, hppa_force_relocation): Prototype.
568
569         * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
570         (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
571         (tc_gen_reloc): Make `code' a reloc_type and `codes' a
572         reloc_type** to avoid warnings in switch.
573         (md_apply_fix): Make insn, val signed.  Zap buf_wd and read insn a
574         little earlier instead.
575
576         * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
577         and elf.
578         (pa_type_args): Use symbol_arg_reloc_info.
579         (struct pa_it): Make arg_reloc unsigned int.
580         (struct hppa_fix_struct): Likewise for fx_arg_reloc.
581         (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
582         (pa_code): Delete.  pa_text duplicates this function.
583         (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
584         (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
585         int.
586         (cons_fix_new_hppa): Actually change selector to e_fsel when
587         warning about assuming so.
588         (tc_gen_reloc): More example elf arg reloc code.
589         (md_apply_fix): Use arg_reloc_stub_needed for elf too.
590         (hppa_force_relocation): Likewise.
591
592         * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
593         files.
594         (pa_end_of_source): Prototype.
595         (hppa_fix_adjustable): Prototype.
596         (LABELS_WITHOUT_COLONS): Move it..
597         * config/te-hppa.h: To here.
598
599         * config/te-hppa64.h: New file.
600
601         * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
602         type.
603         (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt.  Handle
604         format -10, -16, 16 relocs.
605         (hppa_elf_mark_end_of_function): Test for null
606         last_call_info->start_symbol
607
608         * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
609         CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE.  Don't pass opcode to
610         re_assesmble_* functions.  Delete extraneous statements.  Fix
611         typos in comments.
612         (md_apply_fix): Compare against 1048575 in case 21.  Don't pass
613         insn to re_assemble_*.
614
615 2000-07-08  Ulf Carlsson  <ulfc@engr.sgi.com>
616
617         * doc/internals.texi (Expressions): Fix typo.
618
619 2000-07-08  Kazu Hirata  <kazu@hxi.com>
620
621         * config/tc-sh.c: Fix formatting.
622         * config/tc-tic54x.c: Fix formatting.
623         * depend.c: Fix formatting.
624         * flonum-konst.c: Likewise.
625         * flonum-mult.c: Likewise.
626
627 2000-07-07  Kazu Hirata <kazu@hxi.com>
628
629         * config/tc-sh.c: Fix comments.
630         * config/obj-vms.c: Fix comments.
631         * config/tc-a29k.c: Likewise.
632         * config/tc-alpha.c: Likewise.
633         * config/tc-h8300.c: Likewise.
634         * config/tc-h8500.c: Likewise.
635         * config/tc-i370.c: Likewise.
636         * config/tc-ia64.c: Likewise.
637         * config/tc-m68hc11.c: Likewise.
638         * config/tc-m68k.c: Likewise.
639         * config/tc-mips.c: Likewise.
640         * config/tc-ns32k.c: Likewise.
641         * config/tc-ppc.c: Likewise.
642         * config/tc-z8k.c: Likewise.
643
644 2000-07-06  Mark Elbrecht  <snowball3@bigfoot.com>
645
646         * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
647         Default to '(SEC_LOAD | SEC_DATA)'.
648         (obj_coff_section) [BFD_ASSEMBLER]: Use it.
649
650         * doc/internals.texi (CPU Backend): Describe
651         TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
652
653 Thu Jul  6 17:20:58 2000  Andrew Cagney  <cagney@b1.cygnus.com>
654
655         * as.c (parse_args): NULL terminate the long option list.
656
657 Tue Jul  4 14:08:28 2000  Andrew Cagney  <cagney@b1.cygnus.com>
658
659         * config/tc-d30v.h: Include "write.h" for fixS.
660         (d30v_start_line, md_pcrel_from_section): Add function prototypes.
661
662 2000-07-05  Nick Clifton  <nickc@cygnus.com>
663
664         * config/tc-d30v.c (write_2_short): Further changes to warning
665         messages produced when combining EITHER_BUT_PREFER_MU attributed
666         opcodes.
667
668 2000-07-05  DJ Delorie  <dj@redhat.com>
669
670         * MAINTAINERS: new
671
672 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
673
674         * config/tc-arm.c (psrs): Accept combinations of flags.
675
676 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
677
678         * config/tc-avr.c: Change _ () to _() around all strings marked
679         for translation (exception from the usual coding style).
680         (avr_opt): New struct variable, how the new switches are set.
681         (OPTION_MMCU): Define as 'm' and actually use.
682         (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
683         (show_mcu_list): New function, display the list of known MCUs.
684         (md_show_usage): Document the new switches.  Call show_mcu_list.
685         (avr_set_arch): Change 'm' to OPTION_MMCU.
686         (md_parse_option): Call show_mcu_list if unknown MCU specified.
687         Handle the new switches.
688         (avr_operands): Disable warnings for undefined combinations of
689         operands if -mall-opcodes.  Disable warnings for skipping two-word
690         instructions if enhanced core or -mno-skip-bug.
691         (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
692         (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
693         (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
694         (avr_ldi_expression): Warn about implicit lo8().
695         * config/tc-avr.h (md_pcrel_from_section): Add prototype.
696
697 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
698
699         * configure.in: Add entry for mips-*-sysv4*MP*
700         * configure: Rebuild
701         * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
702         elf32-tradlittlemips for traditional mips targets.
703         * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
704         test for Link Once sections as in adjust_reloc_syms.
705         * config/te-tmips.h: New file for traditional mips targets. Define
706         TE_TMIPS.
707
708 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
709
710         * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
711         flags argument is not present, don't change an existing section's
712         section's attributes. If the flags argument is present, warn if the
713         attributes don't match the section's current attributes. When
714         long section names are supported, set SEC_LINK_ONCE and
715         SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
716
717 Thu Jun 29 21:30:00 2000  Hans-Peter Nilsson  <hp@axis.com>
718
719         * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
720         symbols; create them.
721
722 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
723
724         * write.c (set_segment_vma): New: Set vma and lma for a segment.
725         (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
726
727 2000-06-27  Aldy Hernandez  <aldyh@redhat.com>
728
729         * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
730         expressions.  Ignore the problem when handling 16 bit immediates,
731         because the assembler will take care of the relocation later.
732
733 2000-06-27  Nick Clifton  <nickc@cygnus.com>
734
735         * config/tc-d30v.c (write_2_short): Do not allow opcodes with
736         the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
737         sequential order, and emit warning messages if the input source
738         code contains constructs like that, or parallel constructs
739         containing such opcodes.
740
741 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
742
743         * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
744         Add more MCU types for avr4 and avr5.  Replace at94k{10,20,40}
745         with just at94k.  Change AVR_ISA_85xx back to AVR_ISA_2xxx.
746         (md_show_usage): Update usage message.
747         (md_parse_option): Allow redefinition of MCU type within the
748         same avr[1-5] bfd machine type.  Show both old and new MCU type
749         in the error message.
750         (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
751         Simplify 8K wrap code.
752
753 2000-06-25  Kazu Hirata  <kazu@hxi.com>
754
755         * config/obj-aout.c: Remove all uses of DEFUN.
756         * config/obj-ieee.c: Likewise.
757         * config/tc-sh.c: Fix comment typos.
758         * config/tc-tahoe.c: Likewise.
759         * config/tc-vax.c: Likewise.
760         * config/tc-w65.c: Likewise.
761         * config/tc-z8k.c: Likewise.
762         * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
763
764 2000-06-24  DJ Delorie  <dj@cygnus.com>
765
766         * config/tc-i386.c (md_estimate_size_before_relax): Revert
767         more changes from Sept 1999
768         (tc_i386_fix_adjustable): ditto
769         (md_apply_fix3): ditto
770
771 2000-06-24  Frank Ch. Eigler  <fche@redhat.com>
772
773         * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
774         (gas_cgen_parse_operand): Set it around expression() call.
775         (gas_cgen_md_operand): Test for it before longjmp().
776
777 2000-06-24  Kazu Hirata  <kazu@hxi.com>
778
779         * config/tc-h8500.c: Remove all uses of DEFUN.
780         * config/tc-sh.c: Likewise.
781         * config/tc-w65.c: Likewise.
782         * config/tc-z8k.c: Likewise.
783
784         * config/tc-h8500.c: Fix typos in comments.
785
786 2000-06-23  Frank Ch. Eigler  <fche@redhat.com>
787
788         * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
789         is defined.
790
791 2000-06-23  matthew green  <mrg@redhat.com>
792
793         * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
794         defined.  Fix error message for `[' grouping.
795
796 2000-06-22  Kazu Hirata  <kazu@hxi.com>
797
798         * config/tc-h8300.c: Fix formatting and comment typos.
799
800 2000-06-22  Timothy Wall  <twall@cygnus.com>
801
802         * config/tc-ia64.c (note_register_values): Move premature QP
803         notation clearing into the appropriate place.
804
805 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
806
807         * dep-in.sed: Escape literal `.'s on patterns.  Trim off `../'
808         first before anything else.  Add bin-bugs.h, emul.h and progress.h
809         Sort list of files as for $(OBJS) in Makefile.am.
810
811         * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
812         find one.  Remake dependencies.
813         ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h  Sort the list.
814         * Makefile.in: Regenerate.
815         * doc/Makefile.in: Regenerate.
816
817         * config/tc-i386.c (i386_displacement): Don't assume a constant
818         displacement is necessarily 16 bits when in 16 bit code mode.
819         (md_assemble): Instead size the displacement here after we know
820         for sure that a .code16gcc operand hasn't automatically added
821         operand size prefixes.
822
823 2000-06-21  H.J. Lu  <hjl@gnu.org>
824
825         * Makefile.am: Rebuild dependency.
826         * Makefile.in: Rebuild.
827
828 2000-06-21  Kazu Hirata  <kazu@hxi.com>
829
830         * config/tc-h8300.c (parse_reg): Make the function static.
831         (parse_exp): Likewise.
832
833 2000-06-20  DJ Delorie  <dj@cygnus.com>
834
835         * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
836         Sept 1999; RVA relocs need to be treated more like DIR32 relocs
837         for cygwin import libraries to work properly.
838
839 2000-06-20  H.J. Lu  <hjl@gnu.org>
840
841         * Makefile.am: Rebuild dependency.
842         * Makefile.in: Rebuild.
843         * configure: Likewise.
844         * doc/Makefile.in: Likewise.
845
846 2000-06-20  Timothy Wall  <twall@cygnus.com>
847
848         * doc/internals.texi (CPU backend): Add @itemx for
849         TC_START_LABEL_WITHOUT_COLON.
850         * doc/c-tic54x.texi: New.
851         * doc/as.texinfo: Add tic54x features and include primary tic54x
852         documentation file.
853         * doc/all.texi: Add C54X.
854         * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
855         * doc/Makefile.in: Regenerate.
856         * configure.in: Add tic54x and define LIBM for tic54x.
857         * configure: Regenrate.
858         * config/tc-tic54x.[ch]: New.
859         * config/obj-coff.h: Add tic54x.
860         * Makefile.am: (CPU_TYPES): Add tic54x.
861         (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
862         (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
863         (as_new_LDADD): Add $(LIBM).
864         * Makefile.in: Regenerate.
865
866 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
867
868         * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
869         * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
870         * doc/as.texinfo: Likewise.
871
872         * configure, Makefile.in: Regenerate.
873         * configure.in (emulations): Recognize m6811 and m6812.
874         * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
875         Added files for 68hc11 and 68hc12 assembler.
876         * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
877         * config/tc-m68hc11.h: Header definition for that assembler.
878
879 2000-06-18  Nick Clifton  <nickc@redhat.com>
880
881         * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
882         instead of OCTETS_PER_BYTE.
883
884         * config/tc-v850.c: Fix compile time warnings.
885         * config/tc-ppc.c: Fix compile time warnings.
886
887 2000-06-18  H.J. Lu <hjl@gnu.org>
888
889         * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
890         * configure: Rebuild.
891
892 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
893
894         * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
895         to BFD_ASSEMBLER.
896
897 2000-06-16  Nick Clifton  <nickc@cygnus.com>
898
899         * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
900         RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
901
902         * doc/c-mips.texi: Document newly accepted cpu variants.
903
904 2000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>
905
906         * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
907
908 2000-06-13  Ulf Carlsson  <ulfc@engr.sgi.com>
909
910         * macro.c (getstring): Make it possible to escape the quote
911         character.
912
913 Tue Jun 13 20:58:28 2000  Catherine Moore <clm@redhat.com>
914
915         * config/tc-hppa.c (pa_export): Weak symbols can be global.
916
917 2000-06-13  H.J. Lu  <hjl@gnu.org>
918
919         * configure: Regenerate.
920
921 2000-06-09  Alan Modra  <alan@linuxcare.com.au>
922
923         * app.c (do_scrub_begin): Don't default lex[';'] as a line
924         separator.
925         * doc/internals.texi (line_separator_chars): Semicolon is no
926         longer a default.  Mention null and newline as defaults.
927
928         * read.c (is_end_of_line): Remove ifdef TC_HPPA.
929
930         * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
931         * config/tc-i860.h (line_separator_chars): Likewise.
932         * config/tc-h8300.c (line_separator_chars): Likewise.
933         * config/tc-i960.c (line_separator_chars): Likewise.
934         * config/tc-m68k.c (line_separator_chars): Likewise.
935         * config/tc-mips.c (line_separator_chars): Likewise.
936         * config/tc-ns32k.c (line_separator_chars): Likewise.
937         * config/tc-sparc.c (line_separator_chars): Likewise.
938         * config/tc-vax.c (line_separator_chars): Likewise.
939
940         * config/tc-h8300.c (comment_chars): Use string initialiser.
941         * config/tc-i960.c (line_comment_chars): Likewise.
942         * config/tc-z8k.c (comment_chars, line_comment_chars,
943         line_separator_chars): Likewise.
944
945         * config/tc-arm.c (line_separator_chars): Always use `;', not just
946         for TE_LINUX.
947
948 2000-06-08  Nick Clifton  <nickc@cygnus.com>
949
950         * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
951         for size 1 fixes.
952
953 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
954
955         * configure.in (VERSION): Update to show this is the CVS mainline.
956
957 2000-06-08  Matthew Jacob  <mjacob@feral.com>
958
959         * config/tc-alpha.c (md_undefined_symbol): Properly understand that
960         $at is the integer register $r28, vs. both $r28 and the floating
961         point register $f28.
962
963 2000-06-08  James E. Wilson  <wilson@cygnus.com>
964
965         * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
966         (dot_endp): Don't call ia64_flush_insns.
967         (emit_one_bundle): Don't delete prologue/body records from
968         unwind_record list in first loop.  Rewrite second loop to account for
969         this.
970
971 2000-06-07  David Mosberger  <davidm@hpl.hp.com>
972
973         * config/tc-ia64.c: Add missing prototypes.
974         (generate_unwind_image): Cast argument to output_unw_records call.
975
976 Wed Jun  7 22:44:14 2000  Denis Chertykov  <denisc@overta.ru>
977
978         * config/tc-avr.c (avr_operand): fix the formatting of the comment.
979
980 Wed Jun  7 21:26:15 2000  Denis Chertykov  <denisc@overta.ru>
981
982         * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
983         (REGISTER_P): likewise.
984         (avr_opcodes): uses include/opcode/avr.h
985         (avr_operand): enable ld r,Z or st r,Z for at90s1200.
986
987 2000-06-04  Alan Modra  <alan@linuxcare.com.au>
988
989         * read.c (is_end_of_line): No ';' for TC_HPPA.  Add missing
990         initializers too.
991
992 2000-06-03  H.J. Lu  <hjl@gnu.org>
993
994         * read.c (is_end_of_line): Put back `;'.
995
996 2000-06-03  Alan Modra  <alan@linuxcare.com.au>
997
998         * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
999
1000 2000-06-01  Alan Modra  <alan@linuxcare.com.au>
1001
1002         * expr.c (operand): Test is_end_of_line outside switch to catch
1003         line separator chars that are also operators.
1004         (operator): Return O_illegal for line separator chars.
1005
1006         * read.c (is_end_of_line): Use 1 instead of 99.  Don't set `;'
1007         entry (or `!' entry for TC_HPPA).
1008
1009         * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
1010         before indexing is_end_of_line.  Remove redundant check for '\0'.
1011         (fp_op2): Likewise.
1012         * config/tc-h8500.c (md_assemble): Likewise.
1013         * config/tc-mcore.c (md_assemble): Likewise.
1014         * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
1015         (md_atof): Likewise
1016
1017         * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
1018         is_end_of_line.
1019         * config/tc-mcore.c (mcore_cons): Likewise.
1020         (mcore_float_cons): Likewise.
1021         (mcore_stringer): Likewise.
1022         * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
1023
1024 2000-06-01  Scott Bambrough <scottb@netwinder.org>
1025
1026         * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
1027
1028 2000-05-29  Nick Clifton  <nickc@cygnus.com>
1029
1030         * config/tc-sh.c: Fix compile time warning messages.
1031
1032         * config/tc-mips.c: Fix compile time warning messages.
1033
1034 2000-05-29  Philip Blundell  <philb@gnu.org>
1035
1036         * doc/as.texinfo: Update copyright dates.
1037         (Local Labels): Delete misplaced mention of ARM.
1038         * NEWS: Mention ARM ELF support.
1039
1040 2000-05-27  Alexandre Oliva  <aoliva@cygnus.com>
1041
1042         * config/tc-mn10300.c (md_assemble): Copy size to real_size before
1043         it is modified, and use the real_size to compute the frag address
1044         for dwarf2 line info.
1045
1046 2000-05-27  Alan Modra  <alan@linuxcare.com.au>
1047
1048         * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
1049         line-matching scheme to cope with automake moving variables around.
1050         ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
1051         * Makefile.in: Regenerate.
1052
1053 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
1054
1055         * config/tc-sparc.c (sparc_relax): New.
1056         (md_longopts): Add -relax and -no-relax options.
1057         (md_parse_options, md_show_usage): Likewise.
1058         (md_apply_fix3): Optimize tail call into branch always if possible.
1059
1060 Thu May  4 15:27:07 2000  Donald Lindsay  <dlindsay@cygnus.com>
1061
1062         * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
1063         d10v_cleanup) implement Mitsubishi's newly explained branch-packing
1064         rules, with warning when a GAS statement specifies a packing that
1065         will result in an instruction being squashed.
1066         Added typdef packing_type and enumerals, changed various integer
1067         literals to use the enumerals.
1068
1069 2000-05-24  David Mosberger  <davidm@hpl.hp.com>
1070
1071         * config/tc-ia64.c (dot_restorereg_p): New function.
1072         (md_pseudo_table): Add restorereg.p.
1073         (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
1074         (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
1075
1076         * config/tc-ia64.h (unw_record_type): Add unwabi.
1077         (unw_r_record): Rename member MASK to GRMASK.  Add sub-structure
1078         called MASK with members for imask, and the masks produced by
1079         fr_mem, gr_mem, br_mem, and frgr_mem.
1080         (unw_p_record): Add members ABI and CONTEXT.
1081         (unw_x_record): Add member AB.
1082         * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
1083         as pseudo-register for use during unwind info generation.
1084         (AR_PFS, AR_LC): New macros.
1085         (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
1086         whose names start with an at sign (as in "@priunat").
1087         (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
1088         register.
1089         (unwind_list, unwind_tail, current_unwind_entry, proc_start,
1090         proc_end, unwind_info, personality_routine): Consolidate into
1091         "unwind" structure to reduce offset-table use.  Add member
1092         NEXT_SLOT_NUMBER to track the slot number for the next instruction
1093         to be emitted.
1094         (output_R1_format, output_R3_format, output_P3_format,
1095         output_P6_format): Initialize R with zero to reduce compiler warnings.
1096         (output_P7_format): Ditto.  Add `default' branch to switch
1097         statement to reduce compiler warnings.
1098         (output_P8_format, output_B1_format, output_B4_format): Ditto.
1099         (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
1100         (format_ab_reg): Rename from format_a_b_reg.  Merge A and B args
1101         into single argument.
1102         (output_X1_format, output_X3_format): Initialize R with zero to reduce
1103         compiler warnings.  Merge A and B args into single argument.
1104         (output_X2_format, output_X4_format): Remove unused variable R.  Merge
1105         A and B args into single argument.
1106         (free_record): Removed (wasn't used).
1107         (free_list_records): Also free imasks in prologue records.
1108         (output_prologue, output_prologue_gr): Initialize mask bits to zero.
1109         (output_spill_mask): Remove.
1110         (output_unwabi): New function.
1111         (output_epilogue, output_label_state, output_copy_state): Call
1112         alloc_record.
1113         (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
1114         output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
1115         argument.
1116         (process_one_record): New locals FR_MASK and GR_MASK.  Ignore
1117         gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
1118         as part of handling the prologue records.  Emit region's imask if
1119         we have one.  Handle unwabi, epilogue, label_state, copy_state,
1120         spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
1121         spill_sprel_p, and spill_reg_p records.
1122         (set_imask, count_bits, slot_index): New function.
1123         (fixup_unw_records): Fix region size computation.  Handle
1124         epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
1125         spill_sprel_p, and spill_psprel_p records.  Merge mask bits of
1126         frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
1127         set_imask accordingly.  Update imask for gr_gr, and br_gr records.
1128         (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
1129         (dot_save): Use manifest constants for applicaton registers.
1130         Handle REG_PR and REG_PRIUNAT.
1131         (dot_restore): Don't just ignore it.
1132         (dot_restorereg): New function..
1133         (generate_unwind_image): Ensure unwind info is a multiple of eight
1134         bytes, not just four bytes.
1135         (dot_handlerdata, dot_unwentry): Demand empty rest of line.
1136         (dot_altrp): Don't just ignore it.
1137         (dot_savemem): New function.  Replaces dot_savesp() and
1138         dot_savepsp().  Use manifest constants for applicaton registers.
1139         Handle REG_PR and REG_PRIUNAT.
1140         (dot_savef): Simplify.
1141         (dot_saveb): Support generation of br_gr.
1142         (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
1143          dot_label_state, dot_copy_state): New function.
1144         (dot_unwabi): Don't just ignore it.
1145         (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
1146         spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
1147         unwabi, vframesp, and vframepsp.  Fix typo alprp->altrp.
1148         (emit_one_bundle): Set slot number for prologue/body records
1149         *before* emitting the first insn.
1150         (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
1151         (md_begin): Declare "psp" pseudo-register.
1152         (md_operand): Handle PSEUDO_FUNC_REG.  Fix printing of error message
1153         so we don't get segfault.
1154         (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
1155         counts as required per SW Conventions manual
1156         (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
1157         output_preds_psprel, output_preds_sprel, output_spill_base,
1158         output_unat_psprel, output_unat_sprel, output_lc_psprel,
1159         output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
1160         output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
1161         output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
1162         output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
1163         output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
1164         (dot_vframe): Implement.
1165         (dot_vframesp, dot_vframepsp): New function.
1166
1167 Tue May 23 00:57:05 2000  Hans-Peter Nilsson  <hp@axis.com>
1168
1169         * configure.in (i386-*-freebsd a.out entry): Quote properly.
1170         * configure: Regenerate.
1171
1172 2000-05-23  Alan Modra  <alan@linuxcare.com.au>
1173
1174         * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
1175         (md_estimate_size_before_relax): so we can use it here instead of
1176         old kludges.  Localise vars to blocks.  Comment.
1177
1178         * frags.c (frag_new): Update fr_var comments.
1179         * frags.h (struct frag): Ditto.
1180
1181 2000-05-22  Richard Henderson  <rth@cygnus.com>
1182
1183         * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
1184         (pseudo_func): Add pcrel.
1185         (operand_match):  Handle IA64_OPND_TGT64.
1186         (build_insn): Likewise.
1187         (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
1188         (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
1189         (fix_insn): Handle all three 64-bit relocation types.
1190
1191 Mon May 22 22:43:32 2000  Hans-Peter Nilsson  <hp@axis.com>
1192
1193         * obj.h (struct format_ops): New members begin, app_file,
1194         s_set_other, s_set_desc, s_get_type, s_set_type,
1195         separate_stab_sections, init_stab_section.
1196
1197         * config/obj-multi.h: Update GPL notice to v2.
1198         (obj_begin): New.
1199         (obj_app_file): New.
1200         (S_SET_SIZE): Test s_set_size for NULL before calling.
1201         (S_SET_ALIGN): Similar for s_set_align.
1202         (S_SET_OTHER): New.
1203         (S_SET_DESC): New.
1204         (S_GET_TYPE): New.
1205         (S_SET_TYPE): New.
1206         (SEPARATE_STAB_SECTIONS): New.
1207         (INIT_STAB_SECTION): New.
1208         (EMIT_SECTION_SYMBOLS): New.
1209         (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
1210
1211         * config/obj-elf.h: Update GPL notice to v2.
1212         Mention that this file is included from obj-multi.h.
1213         (obj_begin): Wrap definition in ifndef.
1214         (elf_file_symbol): Constify declaration.
1215         (obj_app_file): Ditto.
1216         (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
1217         Wrap in ifndef SEPARATE_STAB_SECTIONS.
1218
1219         * config/obj-elf.c (elf_s_set_other): New.
1220         (elf_file_symbol): Constify argument.
1221         (elf_separate_stab_sections): New.
1222         (elf_init_stab_section): New.
1223         (elf_format_ops): Add new members.  Remove comma at end.
1224
1225         * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
1226         (ecoff_format_ops): Add new fields.  Remove comma at end.
1227         Mention inconsistency for emit_section_symbols.
1228
1229         * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
1230
1231         * config/obj-coff.c (c_dot_file_symbol): Constify argument.
1232         (coff_separate_stab_sections): New.
1233         (coff_format_ops): Add new members.
1234
1235         * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
1236         (obj_aout_s_set_other): New.
1237         (obj_aout_s_set_desc): New.
1238         (obj_aout_s_get_type): New.
1239         (obj_aout_s_set_type): New.
1240         (obj_aout_separate_stab_sections): New.
1241         (aout_format_ops): New members added.  Use obj_aout_process_stab,
1242         not 0.  Use obj_aout_sec_sym_ok_for_reloc, not 0.
1243         (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
1244         appropriate.
1245         (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
1246
1247 2000-05-22  Alan Modra  <alan@linuxcare.com.au>
1248
1249         * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
1250         for OBJ_MAYBE_ELF too.  Use S_IS_EXTERNAL instead of S_IS_EXTERN.
1251         (md_estimate_size_before_relax): Ensure jumps to weak and
1252         externally visible symbols are relocatable.
1253
1254 Sat May 20 16:41:55 2000  Hans-Peter Nilsson  <hp@axis.com>
1255
1256         * stabs.c (aout_process_stab): Make global.
1257         (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
1258         * read.h (aout_process_stab): Declare.
1259
1260         * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
1261         Generalize to *aout, *coff *elf.
1262         * configure: Regenerated.
1263
1264         * doc/internals.texi (Object format backend): Say
1265         SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
1266
1267         * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
1268         * Makefile.in: Regenerated.
1269
1270 2000-05-19  Catherine Moore  <clm@cygnus.com>
1271
1272         * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
1273
1274 2000-05-18  Alan Modra  <alan@linuxcare.com.au>
1275
1276         * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
1277         instruction to reflect change in re_assemble_*.
1278
1279 Thu May 18 10:52:14 2000  Jeffrey A Law  (law@cygnus.com)
1280
1281         * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
1282         build PA64 ELF tools.
1283         * configure: Rebuilt.
1284
1285 2000-05-17  Alan Modra  <alan@linuxcare.com.au>
1286
1287         * Makefile.am: Regenerate dependencies.
1288         * Makefile.in: Regenerate.
1289
1290 2000-05-15  Nick Clifton  <nickc@cygnus.com>
1291
1292         * config/tc-arm.c (struct asm_psr): Add boolean field
1293         distinguishing between CSPR and SPSR.  Rename 'number' field
1294         to 'field'.
1295         (psrs): Rearrange contents to match new asm_psr structure.
1296         (arm_psr_parse): Move next to psr_required_here.  Make it
1297         return an asm_psr structure.
1298         (psr_required_here): Use asm_psr structure returned by
1299         arm_psr_parse.
1300         (do_msr): Reorganise to allow psr_required_here to be called
1301         only once.
1302         (md_undefined_name): Mark 'name' parameter as unused, since
1303         the COFF target does not use it.
1304
1305 2000-05-14  David O'Brien  <obrien@FreeBSD.org>
1306
1307         * config/te-386bsd.h:  Clean up comments to adhere to the GNU coding
1308         standards.
1309         * config/te-aux.h:  Likewise.
1310         * config/te-dpx2.h:  Likewise.
1311         * config/te-go32.h:  Likewise.
1312         * config/te-hp300.h:  Likewise.
1313         * config/te-hppa.h:  Likewise.
1314         * config/te-i386aix.h:  Likewise.
1315         * config/te-ic960.h:  Likewise.
1316         * config/te-interix.h:  Likewise.
1317         * config/te-nbsd532.h:  Likewise.
1318         * config/te-pc532mach.h:  Likewise.
1319         * config/te-ppcnw.h:  Likewise.
1320         * config/te-psos.h:  Likewise.
1321         * config/te-sparcaout.h:  Likewise.
1322         * config/te-sun3.h:  Likewise.
1323         * config/te-sysv32.h:  Likewise.
1324
1325 2000-05-14  Alan Modra  <alan@linuxcare.com.au>
1326
1327         * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
1328         bits.  Instead explicitly mask and sign extend.  Do the 8 bit mask
1329         and sign extend without an if statement.
1330         (build_bytes): Likewise.
1331
1332 2000-05-14  Kazu Hirata  <kazu@hxi.com>
1333
1334         * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
1335         X_add_symbol L_32 case.
1336
1337 2000-05-14  David O'Brien  <obrien@FreeBSD.org>
1338
1339         * config/te-freebsd.h: New file.
1340
1341 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1342
1343         * asintl.h (gettext, dgettext, dcgettext, textdomain,
1344         bindtextdomain): Replace defines with those from intl/libgettext.h
1345         to quieten gcc warnings.
1346
1347         * NEWS: Mention x86 .arch and -q.
1348
1349         * config/tc-i386.c (quiet_warnings): New.
1350         (md_assemble): Use quiet_warnings.
1351         (md_parse_option): Set quiet_warnings from -q.
1352         (md_show_usage): Mention -q, delete -m.
1353         (flag_do_long_jump): Delete.
1354         (md_parse_option): Remove -m.
1355         (md_show_usage): Remove -m.
1356         (md_create_long_jump): Remove useless flag_do_long_jump code.
1357
1358         * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
1359         the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
1360
1361 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1362             Alexander Sokolov <robocop@netlink.ru>
1363
1364         * doc/c-i386.texi (i386-Arch): New section.
1365         (i386-Syntax): Mention .intel_syntax and .att_syntax.
1366
1367         * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
1368         (smallest_imm_type): Use smallest opcode for shift by one if cpu
1369         architecture has been given and is not 486.
1370         (set_cpu_arch): New.
1371         (md_pseudo_table): Add .arch.
1372         (md_assemble): Warn if cpu architecture has been given and an
1373         unsupported instruction.
1374
1375         * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
1376         Move operand_types bit defines after relevant template field.
1377         (template): Add cpu_flags.
1378         (Cpu*): Define.
1379         (arch_entry): New.
1380
1381 2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
1382
1383         * config/tc-mn10300.h (md_end): Define.
1384         (mn10300_finalize): Declare.
1385         * config/tc-mn10300.c: Include dwarf2dbg.h.
1386         (debug_line): Define.
1387         (md_assemble): Generate dwarf2 line info.
1388         (mn10300_finalize): New function.  Finalize dwarf2 info.
1389
1390 2000-05-11  Ulf Carlsson  <ulfc@engr.sgi.com>
1391
1392         * config/tc-mips.c (md_estimate_size_before_relax): Use the
1393         external version of the relocation for weak symbols.
1394
1395 2000-05-08  David Mosberger  <davidm@hpl.hp.com>
1396
1397         * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
1398         frame size in units of 16 bytes, as required per SW Conventions manual.
1399         (output_unw_records): Output info-block header as a dword to get
1400         byte-order right.
1401
1402 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
1403
1404         * as.h: #include "file", not <file> on files from ../include.
1405         (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
1406         * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
1407         (md_convert_frag): Add ATTRIBUTE_UNUSED.
1408         (tc_coff_symbol_emit_hook): Ditto.
1409         (OPTCOUNT): Cast to int to avoid compiler warning.
1410         (md_begin): Fix signed/unsigned warnings.
1411
1412 2000-05-08  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1413
1414         * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
1415         ABRANCH LONG case for a conditional branch on a 68000.
1416         (md_estimate_size_before_relax): Likewise.  Also handle
1417         flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
1418         (m68k-ip: case ABSL): Relax absolute references to 16-bit
1419         PC-relative on all CPUs.
1420         (md_estimate_size_before_relax): Likewise.
1421
1422 2000-05-04  Alan Modra  <alan@linuxcare.com.au>
1423
1424         * as.c (parse_args): Just mention current year in printed
1425         copyright message.
1426
1427 2000-05-03  J.T. Conklin  <jtc@redback.com>
1428
1429         * config/tc-ppc.c (pre_defined_registers): Add entries for vector
1430         unit registers.
1431         (md_parse_option): Recognize -m7400.
1432
1433 2000-05-03  Ian Lance Taylor  <ian@zembu.com>
1434
1435         * config/atof-ieee.c (gen_to_words): When adding carry back in,
1436         don't permit lp to become less than the words array.
1437
1438 2000-05-03  Rodney Brown  <RodneyBrown@pmsc.com>
1439
1440         config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
1441         Fix little-endian case.
1442
1443 2000-05-03  David O'Brien  <obrien@NUXI.com>
1444
1445         * as.c (parse_args): Update copyright.
1446
1447 2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
1448
1449         * gas/config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
1450         for the .bss section too.
1451
1452 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
1453
1454         * configure.in: Set em=linux for hppa-*-linux.
1455         * configure: Regenerate.
1456         * doc/Makefile.in: Regenerate with correct automake.
1457
1458         * frags.c (frag_grow): Sanity check chunk_size.
1459
1460         * config/obj-elf.h: #include "bfd.h" not <bfd.h>
1461         * config/obj-som.h: Likewise.
1462         * config/obj-ieee.h: Likewise.
1463
1464         * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
1465
1466         * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
1467         (md_pseudo_table): Fully initialise OBJ_ELF cases.
1468         (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
1469         (pa_ip): low_sign_unext now returns via function value.  Use
1470         re_assemble_* instead of dis_assemble_* and
1471         INSERT_FIELD_AND_CONTINUE combination.  Don't call sign_unext
1472         unnecessarily.
1473         (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
1474         (md_section_align, md_parse_option, md_show_usage,
1475         md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
1476         pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
1477         pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
1478         pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
1479         pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
1480         pa_text): Likewise.
1481         (md_apply_fix): Change type of new_val to offsetT.  Delete w1, w2,
1482         w, resulti.  Add insn, val.  Move bfd_get_32 and bfd_put_32
1483         outside of switch.  Correct mask and shifting errors in case 10
1484         and case -11.  In case 21, compare against signed range to suit
1485         hppa_field_adjust changes.  In case 12, use re_assemble_12.  In
1486         case 17 and case 22, use offsetT variable to properly check range.
1487         Use re_assemble_* here too.
1488         (evaluate_absolute): Change type of value to offsetT.  Call
1489         hppa_field_adjust to do the work for us.
1490         (pa_parse_cmpb_64_cmpltr): Delete save_s.
1491         (pa_parse_cmpib_64_cmpltr): Ditto.
1492         (pa_build_unwind_subspace): Delete unused var subseg.  Change type
1493         of i to unsigned int.
1494         (pa_type_args): Conditionally declare symbol if OBJ_SOM.
1495         (pa_end_of_source): Return type is void.
1496
1497 Mon May  1 08:54:23 2000  Catherine Moore  <clm@cygnus.com>
1498
1499         * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
1500
1501 Mon May  1 14:19:39 2000  Denis Chertykov  <denisc@overta.ru>
1502
1503         * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
1504         More comments added.
1505         (md_begin): Removed "construct symbols for each register name".
1506         Because register names conflicts with GCC generated function
1507         names.
1508         (avr_operand): Now constant numbers can be used as a register
1509         identifiers (0 as r0, 31 as r31).
1510         (md_assemble): use skip_space () before parsing instruction
1511         operands.
1512
1513 Sun Apr 23 16:45:45 2000  Denis Chertykov  <denisc@overta.ru>
1514
1515         * config/tc-avr.c: New AVR_ISA_ defined.
1516         (md_assemble): Handle opcodes with optional operands (lpm,elpm).
1517         (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
1518         for `fmul', `movw' and `lpm R,Z' instructions.
1519         (avr_operands): Warn if current opcode is a two-word instruction
1520         and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
1521         (avr_opcodes): New commands added.
1522         (REGISTER_P): Check 'a' and 'v' constraint letters.
1523         (mcu_types): New MCU added.
1524
1525 2000-05-01  Alan Modra  <alan@linuxcare.com.au>
1526
1527         * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
1528         ensure all pe targets use bfd.  Remove unnecessary bfd_gas=yes on
1529         arm-*-netbsd* and arm-*-wince as this is set for all arm*.
1530         * configure: Regenerate.
1531
1532 2000-04-29  Andreas Jaeger  <aj@suse.de>
1533
1534         * as.h: Correctly check GCC version.
1535
1536 Mon Apr 24 15:21:11 2000  Clinton Popetz  <cpopetz@cygnus.com>
1537
1538         * as.c (parse_args): Allow md_parse_option to override -a listing
1539         option.
1540         * config/obj-coff.c (add_lineno): Change type of offset parameter
1541         from "int" to "bfd_vma."
1542         * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
1543         (ppc_mach, ppc_subseg_align, ppc_target_format): New.
1544         (ppc_change_csect): Align correctly for XCOFF64.
1545         (ppc_machine): New function, which discards "ppc_machine" line.
1546         (ppc_tc): Cons for 8 when code is 64 bit.
1547         (md_apply_fix3): Don't check operand->insert.  Handle 64 bit
1548         relocations.
1549         (md_parse_option): Handle -a64 and -a32.
1550         (ppc_xcoff64): New.
1551         * config/tc-ppc.h (TARGET_MACH): Define.
1552         (TARGET_FORMAT): Move to function.
1553         (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
1554
1555 2000-04-26  David O'Brien  <obrien@FreeBSD.org>
1556
1557         * doc/as.1: Fix unbalanced brackets.
1558
1559         * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
1560         TE_FreeBSD.
1561         (line_comment_chars): Set to '/' if TE_FreeBSD.
1562
1563 Tue Apr 25 11:02:02 2000  Jeffrey A Law  (law@cygnus.com)
1564
1565         * configure.in: Configury support for PA64 (currently disabled).
1566         * configure: Rebuilt.
1567
1568 2000-04-25  Machida Hiroyuki  <machida@sm.sony.co.jp>
1569
1570         * config/tc-mips.c (s_change_sec): Use record_alignment, not
1571         bfd_set_section_alignment.
1572
1573 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
1574
1575         * config/tc-i386.c (offset_in_range): Ensure shift counts are less
1576         than 32.
1577
1578 2000-04-24  Nick Clifton  <nickc@cygnus.com>
1579
1580         * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
1581         * doc/as.texinfo (Align): Include arm and strongarm in list of
1582         targets that have the second form of the behaviour of the .align
1583         directive.
1584
1585 2000-04-24  Mark Klein <mklein@dis.com>
1586
1587          * obj-som.c: Terminate obj_pseudo_table.
1588
1589 2000-04-22  Timothy Wall  <twall@cygnus.com>
1590
1591         * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
1592         to "natval".
1593         (operand_match): Conditionally insert default bit values for IMMU9.
1594
1595 2000-04-14  Matthew Green  <mrg@cygnus.com>
1596
1597         * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
1598         * configure: Rebuilt.
1599
1600 Fri Apr 21 14:29:43 2000  Jeffrey A Law  (law@cygnus.com)
1601                           Jason Eckhardt  <jle@cygnus.com>
1602
1603         * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
1604
1605         * config/tc-hppa.c (CHECK_ALIGN): New macro.
1606         Added handling of new operand types l,y,&,fe,fE,fx.
1607
1608 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
1609                           David Mosberger  <davidm@hpl.hp.com>
1610                           Timothy Wall <twall@cygnus.com>
1611                           Andrew MacLeod  <amacleod@cygnus.com>
1612                           Jim Wilson  <wilson@cygnus.com>
1613
1614         * Makefile.am (CPU_TYPES): Add ia64.
1615         (TARGET_CPU_CFILES): Add config/tc-ia64.c.
1616         (TARGET_CPU_HFILES): Add config/tc-ia64.h.
1617         * Makefile.in: Rebuild.
1618         * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
1619         * configure: Rebuild.
1620         * configure.in: Recognize ia64 as cpu type.  Set bfd_gas.
1621         (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
1622         * expr.c (expr): Handle md_optimize_expr.
1623         * read.c (LEX_HASH): Add comment.
1624         * config/tc-ia64.c, config/tc-ia64.h: New files.
1625
1626 2000-04-21  Richard Henderson  <rth@cygnus.com>
1627
1628         * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
1629         bundling a non-delayed branch type instruction.
1630
1631 2000-04-20  Alexandre Oliva  <aoliva@cygnus.com>
1632
1633         * config/tc-mn10300.c (HAVE_AM30): Define.
1634         (md_assemble): Use it.
1635
1636 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
1637
1638         * config/obj-elf.c (obj_elf_change_section): Check for changed
1639         section attributes.
1640
1641         * Makefile.am: (CPU_MULTI_VALID): Remove.
1642         (MULTI_CPU_TYPES): Define.
1643         (MULTI_CPU_OBJ_VALID): Define.
1644         (DEPTC): Use the above.
1645         (DEPOBJ): Same here.
1646         (DEP2): And here.
1647         Regenerate dependencies.
1648         * Makefile.in: Regenerate.
1649
1650 2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1651
1652         * Makefile.am (YACC, LEX): Get them from configure.
1653
1654 2000-04-18  H.J. Lu  (hjl@gnu.org)
1655
1656         * config/tc-i386.c (offset_in_range): Use addressT instead of
1657         bfd_vma for non-bfd assemblers.
1658
1659 2000-04-17  Alan Modra  <alan@linuxcare.com.au>
1660
1661         * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
1662         doesn't give spurious errors.
1663
1664 2000-04-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1665
1666         * as.h (SEEK_SET): Define if undefined.
1667
1668 2000-04-13  Alan Modra  <alan@linuxcare.com.au>
1669
1670         * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
1671         constants, and don't assume offsetT is 32 bits.
1672
1673 2000-04-12  Andrew Cagney  <cagney@b1.cygnus.com>
1674
1675         * config/tc-d10v.h: Include "write.h" to get definition of fixS.
1676         (md_pcrel_from_section): Add prototype.
1677         (d10v_fix_adjustable): Add prototype.
1678         (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
1679
1680         * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
1681
1682 2000-04-12  Nick Clifton  <nickc@cygnus.com>
1683
1684         * config/tc-d10v.c (find_opcode): Correctly calculate position of
1685         symbol in frag chain.
1686
1687 2000-04-10  Alan Modra  <alan@linuxcare.com.au>
1688
1689         * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
1690         (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
1691         (fits_in_signed_word, smallest_imm_type): Ditto.
1692         (md_assemble): Use an offsetT var to hold offsetT values, not a
1693         long.
1694         (offset_in_range): New.
1695         (md_assemble): Use it.
1696         (md_convert_frag): Change type of target_address, opcode_address,
1697         and displacement_from_opcode_start to offsetT.
1698         (md_create_short_jump): Change type of offset to offsetT.
1699         (md_create_long_jump): Ditto.
1700         (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
1701         (md_chars_to_number): Remove.
1702         (output_invalid): Remove duplicate prototype.
1703
1704 2000-04-09  Nick Clifton  <nickc@cygnus.com>
1705
1706         * Makefile.am (CPU_TYPES): Add 'avr'.
1707         (TARGET_CPU_CFILES): Add 'tc-avr.c'.
1708         (TARGET_CPU_HFILES): Add 'tc-avr.h'.
1709
1710         * Makefile.in: Regenerate.
1711
1712         * doc/as.texinfo: Add M32R documentation.
1713
1714 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1715
1716         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
1717         --enable-build-warnings option.
1718         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1719         * Makefile.in, configure: Re-generate.
1720
1721 2000-04-07  Nick Clifton  <nickc@cygnus.com>
1722
1723         * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
1724         in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
1725         BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
1726         (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
1727         (arm_force_relocation): Force relocations for
1728         BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
1729
1730 Wed Apr  5 22:26:32 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1731
1732         * config/tc-sh.c (get_operands): There's no third operand if the
1733         first operand is an immediate.
1734
1735 Wed Apr  5 22:07:19 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1736
1737         * config/tc-sh.c (immediate): Delete.
1738         (sh_operand_info): Add immediate member.
1739         (parse_reg): Use A_PC for pc.
1740         (parse_exp): Add second argument 'op'.  All callers changed.
1741         (parse_at): Expect pc to be coded as A_PC.
1742         Use immediate field in *op.
1743         (insert): Add fourth argument 'op'.  All callers changed.
1744         (build_relax): Add second argument 'op'.  All callers changed.
1745         (insert_loop_bounds): New function.
1746         (build_Mytes): Remove DISP_4.
1747         Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}.  Add REPEAT.
1748         (assemble_ppi): Use immediate field in *operand.
1749         (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
1750         (md_apply_fix): Likewise.
1751         (tc_gen_reloc): Likewise.  Check for a pcrel BFD_RELOC_SH_LABEL.
1752
1753 Wed Apr  5 06:35:45 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1754
1755         * config/tc-sparc.c (sparc_ip): Avoid string pasting.
1756
1757 Tue Apr  4 19:27:50 2000  Hans-Peter Nilsson  <hp@axis.com>
1758
1759         * internals.texi (CPU backend): Document
1760         TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
1761
1762 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
1763
1764         * po/gas.pot: Regenerate.
1765
1766         * as.c (show_usage): Restore translated part of bug string.
1767         * gasp.c (show_usage): Likewise.
1768
1769         * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
1770         (DEP): Quote when passing vars to sub-make.  Use "mv -f" rather
1771         than move-if-change.
1772         (DEP1): Modify for "gcc -MM".
1773         (DEPTC): Likewise.
1774         (DEPOBJ): Likewise.
1775         (DEP2): Likewise.
1776         (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
1777         Update dependencies.
1778         * Makefile.in: Regenerate.
1779
1780 2000-04-03  Alexandre Oliva  <aoliva@cygnus.com>
1781
1782         * config/tc-mn10300.c (md_pseudo_table): Use constant names.
1783         (md_begin): Likewise.
1784         (HAVE_AM33): New macro.
1785         (md_assemble): Use it.  Match r_regs and xr_regs only if
1786         HAVE_AM33.
1787
1788 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
1789
1790         * as.h: #include "bin-bugs.h"
1791         * as.c (show_usage): Use REPORT_BUGS_TO.
1792         * gasp.c: #include "bin-bugs.h"
1793         (show_usage): Use REPORT_BUGS_TO.
1794
1795         * config/tc-sparc.c (md_show_usage): Add a trailing newline.
1796
1797 Mon Apr  3 13:56:03 2000  Hans-Peter Nilsson  <hp@axis.com>
1798
1799         * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
1800         call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
1801         adjustments.
1802
1803 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
1804
1805         * config/tc-i386.c (i386_immediate): Don't assume a constant
1806         immediate is necessarily 16 bits when in 16 bit code mode.
1807         (md_assemble): Instead set guess_suffix here after we have checked
1808         registers.
1809
1810 2000-04-02  Richard Henderson  <rth@cygnus.com>
1811
1812         * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
1813         quantities.  Correct right shift sign extension.
1814         (build_insn): Make `number' unsigned long.  Mask top 6 bits of
1815         32-bit value when shifting into place.
1816
1817 2000-04-01  Ian Lance Taylor  <ian@zembu.com>
1818
1819         * app.c: Add ATTRIBUTE_UNUSED as needed.
1820         * config/tc-ppc.c: Likewise.
1821         (ppc_size): Make unsigned long.
1822         (ppc_insert_operand): Add casts to avoid warnings.
1823
1824 2000-03-31  Nick Clifton  <nickc@cygnus.com>
1825
1826         * config/tc-d10v.h (md_flush_pending_output): Define.
1827
1828 2000-03-29  Nick Clifton  <nickc@cygnus.com>
1829
1830         * config/tc-sh.h (SEG_NAME): New macro: return the name of a
1831         segment.  Works for both BFD_ASSEMBLER and others.
1832         (SUB_SEGMENT_ALIGN): Use SEG_NAME.
1833
1834 2000-03-29  Nick Clifton <nickc@cygnus.com
1835
1836         * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
1837
1838 2000-03-28  Alan Modra  <alan@linuxcare.com.au>
1839
1840         * listing.c (LISTING_LHS_WIDTH): Default depends on
1841         LISTING_WORD_SIZE.
1842         (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
1843
1844 2000-03-27  Ian Lance Taylor  <ian@zembu.com>
1845
1846         * config/tc-sh.c (md_show_usage): Use backslash before newline in
1847         string literal.
1848
1849 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
1850
1851         * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
1852
1853         * config/tc-avr.c (mcu_types): Add missing initialiser.
1854         (md_pcrel_from_section): Add prototype.
1855         (avr_operand): Remove redundant test of unsigned < 0.
1856         (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
1857
1858 2000-03-27  Denis Chertykov  <denisc@overta.ru>
1859
1860         * config/tc-avr.c: New file for AVR support.
1861         * config/tc-avr.h: Likewise.
1862         * configure.in: Add AVR support.
1863         * configure: Regenerate.
1864
1865 2000-03-26  Timothy Wall <twall@cygnus.com>
1866
1867         * gasp.c (macro_op): Add new argument to check_macro call.
1868         Macro structure definitions moved to macro.h
1869         * sb.h:  Add argument to prototype for input_scrub_include_sb.
1870         * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
1871         nesting checks with an additional flag.
1872         (struct input_save): Add flag to indicate whether current sb
1873         should be checked for proper macro/conditional nesting.
1874         (input_scrub_push/pop): Save/restore nest check flag.
1875         (input_scrub_next_buffer): Ditto.  Also call end of macro hook if
1876         defined.
1877         * macro.c (check_macro):  Allow caller to retrieve parsed macro
1878         information if a pointer is provided.  This information may be
1879         used by the new macro hooks.
1880         * macro.h: Update prototype for check_macro.  Macro struct
1881         definitions moved here from macro.c/gasp.c.
1882         * read.c (read_a_source_file): Add parameter to check_macro call,
1883         and pass macro info to the macro hook, if defined.
1884         (input_scrub_insert_line): New.  Allow insertion of a line of
1885         characters into the input stream.
1886         (input_scrub_insert_file): New.  Allow insertion of an arbitrary
1887         file into the input stream.
1888         (s_include): Use input_scrub_insert_file.
1889         * internals.texi: Document new macro hooks.
1890         * as.h: New prototypes added.
1891
1892 2000-03-26  Alan Modra  <alan@linuxcare.com.au>
1893
1894         * config/tc-i386.c: Don't start any as_bad or as_warn message with
1895         an initial capital letter.
1896         (i386_index_check): Reindent.
1897
1898 2000-03-19  Nick Clifton  <nickc@cygnus.com>
1899
1900         * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
1901         relative branches.
1902
1903 2000-03-17 Thomas de Lellis <tdel@windriver.com>
1904
1905         * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
1906         instruction operand bad if Rd > 7 when generating
1907         thumb instructions. Prevents for example,
1908         "adr r12,label" from silently failing and generating
1909         the wrong instruction.
1910
1911 2000-03-17  Nick Clifton  <nickc@cygnus.com>
1912
1913         * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
1914         that have a destingation >= 0x400000.
1915         Fix compile time warning messages.
1916
1917 Thu Mar 16 23:45:16 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1918
1919         * config/tc-sh.c (md_begin): When encountering insn that are
1920         not supported by the current arch, only change the name if
1921         its contents are the same as prev_name.
1922         (get_specific): If the the architecture doesn't match, fail.
1923
1924 Thu Mar 16 21:18:13 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1925
1926         * config/tc-sh.c (IDENT_CHAR): Define.
1927         (parse_reg): Use it instead of isalnum.  Put r[0..7]_bank operand
1928         matching back where it came from.
1929
1930 Thu Mar 16 20:58:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1931
1932         * config/tc-sh.c (md_show_usage): Add description of -dsp.
1933
1934 2000-03-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
1935
1936         * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
1937         normal operands.
1938
1939 2000-03-15  Kazu Hirata  <kazu@hxi.com>
1940
1941         * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
1942
1943 Mon Mar 13 22:02:59 2000  Hans-Peter Nilsson  <hp@axis.se>
1944
1945         * expr.c (operand) [case 'f']: When testing if '0f' can start a
1946         floating-point-number, make sure 'f' is in FLT_CHARS.
1947
1948 Sat Mar 11 00:01:39 2000  Hans-Peter Nilsson  <hp@axis.se>
1949
1950         * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
1951         (s_lcomm_internal): Use it.
1952         * doc/internals.texi (CPU backend): Document it.
1953         * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
1954         bytes.
1955
1956 2000-03-10  Geoffrey Keating  <geoffk@cygnus.com>
1957
1958         * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
1959         when embedded-pic.
1960
1961         * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
1962         implementation doesn't have special handling for switch
1963         statements.
1964         (macro_build): Allow for code in sections other than .text.
1965         (macro): Likewise.
1966         (mips_ip): Likewise.
1967         (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
1968         Don't perform relocs if we will be outputting them.
1969         (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
1970         relocations.  Allow BFD_RELOC_16_PCREL_S2 relocs when
1971         embedded-pic.
1972
1973 2000-03-09  Catherine Moore  <clm@cygnus.com>
1974
1975         * config/tc-m32r.c (m32r_fix_adjustable):  Look up the
1976         relocation type based on the entry in the fixup structure.
1977
1978 2000-03-08  H.J. Lu  (hjl@gnu.org)
1979
1980         * Makefile.am (install-exec-tooldir): Depend on
1981         install-exec-bindir for parallel make.
1982         * Makefile.in: Regenerated.
1983
1984 2000-03-06  Nick Clifton  <nickc@cygnus.com>
1985
1986         * config/tc-m32r.c (struct md_longopts): Add -m32r command line
1987         switch.
1988         (md_parse_option): Parse -m32r command line switch - disable m32rx
1989         compatability.
1990         (md_show_usage): Document new option.
1991
1992         * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
1993         * doc/Makefile.in: Regenerate.
1994         * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
1995
1996 2000-03-02  Michael Meissner  <meissner@redhat.com>
1997
1998         * config/tc-d30v.c (check_range): Remove code that incorrectly
1999         sign extended values where bits < 32.
2000
2001 2000-03-02  H.J. Lu  (hjl@gnu.org)
2002
2003         * configure.in: Support --enable-targets=all on ia32.
2004         * configure: Regenerated.
2005
2006 2000-03-01  Nick Clifton  <nickc@cygnus.com>
2007
2008         * gasp.c (do_align): Remove bogus check of alignment value.
2009
2010 2000-02-27  Thomas de Lellis  <tdel@windriver.com>
2011
2012         * config/obj-elf.c (elf_frob_symbol): Remove code which when
2013         TC_PPC was defined forced the type of a symbol with no other type
2014         to be BSF_OBJECT.
2015
2016 2000-02-27  Hans-Peter Nilsson  <hp@axis.com>
2017
2018         * doc/internals.texi (CPU backend): Mention that
2019         line_separator_chars do not break up comments.  Fix typos for
2020         LEX_AT and LEX_NAME descriptions.  Document operands for
2021         TC_EQUAL_IN_INSN, md_operand and md_section_align.  Correct
2022         description of md_create_short_jump usage.  Document argument for
2023         md_undefined_symbol.
2024
2025 2000-02-27  Jakub Jelinek  <jakub@redhat.com>
2026
2027         * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
2028         (md_parse_option): Handle it.
2029         (md_show_usage): Document it.
2030
2031 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
2032
2033         * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
2034         opcode, for the instruction `pal19'.  From Andrea Arcangeli
2035         <andrea@suse.de>.
2036
2037 2000-02-26  Alan Modra  <alan@spri.levels.unisa.edu.au>
2038
2039         * config/tc-i386.c (i386_immediate): Move constant operand sizing
2040         from here..
2041         (md_assemble): To here, before template operands are matched.
2042         Also ensure a constant immediate is sign extended when we know the
2043         size is at most 16 bits.  This is to catch cases like "add
2044         $0xffc0,%ax" where we don't know the size, and thus that the
2045         immediate can be represented as Imm8S until after parsing the
2046         register operand.
2047         (i386_displacement): Similarly sign extend 16 bit constant
2048         displacements.
2049         (md_assemble): Relax 16-bit jump constant range check to suit sign
2050         extended displacements.
2051
2052 2000-02-26  Andreas Jaeger  <aj@suse.de>
2053
2054         * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
2055
2056 2000-02-25  Alan Modra  <alan@spri.levels.unisa.edu.au>
2057
2058         * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
2059         call operands when intel_syntax.
2060         (intel_float_operand): Return 2 for "fi...".
2061         (i386_operand_modifier): Change "DWORD PTR" test to suit above.
2062         Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...".  Revert
2063         earlier "SHORT" change.
2064         (md_assemble): When determining suffix from Regs, exclude
2065         InOutPortReg.
2066
2067 2000-02-24  Nick Clifton  <nickc@cygnus.com>
2068
2069         * configure: Add arm-wince, mips-pe and sh-pe targets.
2070         * configure: Regenerate.
2071
2072         * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
2073         sh-pe targets.
2074         (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
2075         "pe-mips" for the mips-pe target.
2076
2077         * config/tc-arm.c (insns): Change displacement encoded in BL
2078         and B instructions if the target port is arm-wince.
2079         (do_ldst): Do not bias the relocation offset if the target
2080         port is arm-wince.
2081         (md_pcrel_from): Add in missing relocation offset bias if the
2082         target os arm-wince.
2083
2084         * config/tc-mips.c (mips_target_format): Support COFF flavour.
2085         (md_begin): Disable -G support for mips-pe target.
2086         (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
2087         * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
2088         COFF flavour.
2089
2090         * config/tc-sh.c (md_begin): sh-pe target is little endian.
2091         * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
2092         assembler, just set the alignment to 4.
2093
2094         * config/te-wince-pe.h: New file for WinCE targets.  Define
2095         TE_WINCE.
2096
2097 2000-02-25  Alan Modra  <alan@spri.levels.unisa.edu.au>
2098
2099         * config/tc-i386.c (md_assemble): Swap segments too for intel mode
2100         string instructions.
2101         (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
2102         (i386_intel_memory_operand): After finding a segment override,
2103         check again for no `[' before looking for a displacement.  Bomb if
2104         more than one displacement rather than silently discarding the
2105         second and subsequent ones.  Free strings malloc'd by
2106         build_displacement_string.
2107
2108 2000-02-24  Catherine Moore  <clm@cygnus.com>
2109
2110         * config/obj-som.c (obj_pseudo_table): Add "weak".
2111         (obj_som_weak): New routine.
2112
2113 2000-02-24  Alan Modra  <alan@spri.levels.unisa.edu.au>
2114
2115         * config/tc-i386.c (union i386_op): New.
2116         (struct _i386_insn): Delete disps[], imms[], regs[].  Add op[].
2117         Throughout file replace occurences of disps[n], imms[n], regs[n]
2118         with equivalent op[n].disps, op[n].imms, op[n].regs.  Simplify
2119         intel mode operand swapping.  Add assert in regKludge and
2120         fake_zero_displacement code.  Test i.types[n] when outputting
2121         displacements and immediates.  Combine output of Disp16 with
2122         Disp32.
2123         (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
2124         when in intel mode by (not) reversing fsub and fdiv operands
2125         before the template search.  This fails for single operand
2126         shorthand forms of the instruction, and if UNIXWARE_COMPAT is
2127         undefined.  Instead fix the base_opcode after we've found the
2128         template.  Move base_opcode xor with found_reverse_match from
2129         opcode output code to before this fix so we test for the correct
2130         opcodes.
2131         (md_assemble): Don't use strcmp when deciding to ignore the suffix
2132         check in intel mode.  Instead compare opcodes.
2133
2134         * config/tc-i386.h (TC_RELOC): Delete.
2135         * config/tc-i386.c (TC_RELOC): Delete.  Replace usage of TC_RELOC
2136         with equivalent call to reloc.
2137
2138         * as.h (flag_m68k_mri): Move declaration after target include, and
2139         only declare when TC_M68K defined.  Define as zero otherwise.
2140         (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
2141         * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
2142         Define as zero otherwise.
2143         (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
2144         (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
2145         (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
2146         (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
2147         testing whether defined.
2148         * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
2149         * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
2150         * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
2151         rather than testing whether defined.
2152         (s_mri): Set flag_m68k_mri only when TC_M68K defined.
2153         (parse_mri_cons): Declare and use only when TC_M68K.
2154         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
2155         * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
2156         * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
2157
2158         * NEWS: Mention IBM 370 support.
2159
2160 2000-02-23  Richard Henderson  <rth@cygnus.com>
2161
2162         * config/tc-i386.c (md_assemble): When swapping operands for
2163         intel_syntax, assume everything that's not Imm or Disp is a
2164         register.
2165
2166 2000-02-23  Linas Vepstas <linas@linas.org>
2167
2168         * config/tc-i370.c, config/tc-i370.h: New files.
2169         * Makefile.am: Add support for Linux/IBM 370.
2170         * configure.in: Likewise.
2171         * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
2172         * config/obj-elf.c: Include elf/i370.h
2173         (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
2174
2175         * Makefile.in: Regenerate.
2176         * configure: Regenerate.
2177
2178         * doc/c-i370.texi: New file.
2179         * doc/all.texi: Include it.
2180         * doc/as.texinfo: And here.
2181         * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
2182         * doc/Makefile.in: Regenerate.
2183
2184 2000-02-19  Michael Meissner  <meissner@redhat.com>
2185
2186         * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
2187         determine if an instruction can be used in parallel with an ADDppp
2188         or SUBppp instruction.
2189
2190 2000-02-22  Andrew Haley  <aph@cygnus.com>
2191
2192         * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
2193
2194 1999-12-30  Andrew Haley  <aph@cygnus.com>
2195
2196         * config/tc-mips.c (mips_gp32): New variable.
2197         (macro_build) Use mips_gp32.
2198         (mips_ip): Ditto.
2199         (md_longopts): Add "-mgp32" and "-mgp64".
2200         (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
2201
2202 2000-02-22  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2203
2204         * config/obj-coff.c (add_lineno): Accept non-positive lineno with
2205         warning, and bump it to 1.
2206
2207 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
2208
2209         From Brad Lucier <lucier@math.purdue.edu>:
2210         * dwarf2dbg.c (print_stats): Add cast to force printf argument to
2211         match format.
2212
2213 2000-02-21  Catherine Moore  <clm@cygnus.com>
2214
2215         * config/tc-mips.c (MF_HILO_INSN): Define.
2216         (mips_7000_hilo_fix): Declare.
2217         (append_insn): Conditionally insert nops after an mfhi/mflo insn.
2218         (md_parse_option): Check for 7000_HILO_FIX options.
2219         (OPTION_M7000_HILO_FIX): Define.
2220         (OPTION_NO_M7000_HILO_FIX): Define.
2221         * doc/c-mips.texi (-mfix7000): Describe.
2222
2223 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
2224
2225         * listing.c (print_lines): Remove unused variable `end'.
2226
2227         * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
2228         type for JumpInterSegment output. Use enum bfd_reloc_code_real for
2229         reloc_type when BFD_ASSEMBLER.
2230         (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
2231         reloc_type when BFD_ASSEMBLER. Move common code out of switch
2232         statement and quell signed vs. unsigned comparison warning.
2233
2234 2000-02-18  Nick Clifton  <nickc@cygnus.com>
2235
2236         * config/tc-d10v.c (find_opcode): Add a symbol's value to
2237         the computed frag offset, rather than overwriting it.
2238
2239 Thu Feb 17 00:11:08 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2240
2241         * config/tc-sh.c ("elf/sh.h"): Include.
2242         (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
2243         (md.begin): Initialize target_arch.
2244         Only include opcodes in has table that match selected architecture.
2245         (parse_reg): Recognize register names for sh-dsp.
2246         (parse_at): Recognize post-modify addressing.
2247         (get_operands): The leading space is now optional.
2248         (get_specific): Remove FDREG_N support.  Add support for sh-dsp
2249         arguments.  Update valid_arch.
2250         (build_Mytes): Add support for SDT_REG_N.
2251         (find_cooked_opcode): New function, broken out of md_assemble.
2252         (assemble_ppi, sh_elf_final_processing): New functions.
2253         (md_assemble): Use find_cooked_opcode and assemble_ppi.
2254         (md_longopts, md_parse_option): New option: -dsp.
2255         * config/tc-sh.h (elf_tc_final_processing): Define.
2256         (sh_elf_final_processing): Declare.
2257
2258 Fri Feb 11 14:21:51 2000  Jeffrey A Law  (law@cygnus.com)
2259
2260         * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
2261         the unwinder subspace.  Save the current seg/subseg before creating
2262         the new seg/subseg.
2263
2264 2000-02-10  Nick Clifton  <nickc@cygnus.com>
2265
2266         * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
2267         little endian targets.
2268         (INST_BYTE1): Redefine to handle big and little endian
2269         targets.
2270         (cpu_type): New type: Select between M340 and M210.
2271         (parse_psrmod): New function: Parse the PSRCLR and PSRSET
2272         instructions of the M340.
2273         (md_assemble): Add support for the MULSH and OPSR classes of
2274         instructions.
2275         (md_atof): Add support for little endian targets.
2276         (md_parse_option): Add support for -EL, -EB and -mcpu command
2277         line switches.
2278         (md_convert_frag): Add support for little endian targets.
2279         (md_apply_fix3): Add support for little endian targets.
2280         (md_number_to_chars): Add support for little endian targets.
2281
2282 2000-02-10  Timothy Wall  <twall@redhat.com>
2283
2284         * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
2285         defined, use it to verify the symbol just read should be a label.
2286
2287 2000-02-10  Timothy Wall  <twall@redhat.com>
2288
2289         * app.c (do_scrub_chars): Handle "||" for parallel instructions
2290         when DOUBLEBAR_PARALLEL is defined.  Avoid stripping whitespace
2291         around colons when KEEP_WHITE_AROUND_COLON is defined.
2292         * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
2293         and KEEP_WHITE_AROUND_COLON.
2294
2295 2000-02-08  Timothy Wall  <twall@redhat.com>
2296
2297         * read.c (s_rept): Call do_repeat, which abstracts the repeat
2298         logic.
2299         (do_repeat): New.  Abstract repeat logic so that a "break" can be
2300         implemented.
2301         (end_repeat): New.  Provide support for a "break" out of the
2302         repeat loop.
2303         * read.h: Add prototypes for new functions.
2304
2305 2000-02-08  Timothy Wall  <twall@redhat.com>
2306
2307         * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
2308         * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
2309         * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
2310         non-zero.
2311
2312 2000-02-08  Timothy Wall  <twall@redhat.com>
2313
2314         * read.c: Added elseif to directives table.
2315         * read.h: Added prototype for s_elseif.
2316         * doc/as.texinfo: Added description for elseif.
2317         * cond.c (s_elseif): New function
2318
2319 2000-02-04  Timothy Wall  <twall@redhat.com>
2320
2321         * listing.c (print_lines): Remove conditionals causing bug in
2322         listings.
2323
2324 2000-02-03  Timothy Wall  <twall@cygnus.com>
2325
2326         * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
2327         default values.
2328         * frags.c (frag_new): Calculate fr_fix in octets
2329         (frag_now_fix) Return offset as target address offset (bytes).
2330         (frag_now_fix_octets) New - Return offset in octets (8-bit
2331         quantities).
2332         * frags.h: Added prototype for frag_now_fix_octets().
2333         Distinguish between octets and bytes in field descriptions.
2334         * listing.c (calc_hex): Account for octets vs bytes when
2335         printing addresses/offsets.
2336         (print_lines) Ditto.  Also, if LISTING_WORD_SIZE is not 1, and
2337         target is little-endian, print the octets in a word in big-endian
2338         order so that the display looks like a proper hexadecimal number,
2339         instead of having the octets reversed.
2340         * read.c (do_align): When recording alignment, alignment power
2341         should be in terms of target bytes (minimum addressible unit)
2342         instead of octets.
2343         (do_org) Convert ORG target address (byte) argument into an
2344         octet offset when generating a variable fragment.
2345         * symbols.c (resolve_symbol_value): Symbol final value
2346         converted to a target address offset (bytes) from its octet offset.
2347         * config/obj-coff.c (coff_frob_symbol): Symbol target address
2348         offset (bytes) is adjusted by the frag offset (octets) converted
2349         to bytes.
2350         (coff_frob_section) Section alignment power is in terms of bytes;
2351         convert it to an octet alignment power when calculating size (and
2352         size mask) in octets.  Don't modify the section size in order to
2353         "align" it for TI COFF, since that format has a different method
2354         for storing alignment information.
2355
2356 2000-02-01  Timothy Wall  <twall@cygnus.com>
2357
2358         * stabs.c (generate_asm_file): Escape backslashes in stabs file
2359         entries, matching the way GCC generates them.  If not escaped, the
2360         filename is encoded incorrectly.
2361
2362 2000-01-31  Nick Clifton  <nickc@cygnus.com>
2363
2364         * config/tc-arm.c (reg_table): Add support for ATPCS register
2365         naming conventions.
2366
2367 2000-01-31  Geoff Keating  <geoffk@cygnus.com>
2368
2369         * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
2370         already defined.
2371         * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
2372         New macro.
2373         * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
2374         of a symbol when we really care about its value.
2375
2376 2000-01-19  Chandra Chavva   <cchavva@cygnus.com>
2377
2378         * config/tc-mcore.c (md_assemble): Give warning message if
2379         operands passes to instruction are more than the spec.
2380
2381 2000-01-27  Thomas de Lellis <tdel@windriver.com>
2382
2383         * config/tc-arm.c (armadjust_symtab): If the assembler is in
2384         Thumb mode but the label seen was not declared as '.thumb_func'
2385         then set the ST_INFO type to STT_ARM_16BIT mode.   This allows
2386         correct disassembly of Thumb code bounded by non function labels.
2387
2388 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
2389
2390         * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
2391         Add dependencies for e-i386aout.o.  Fix 2 comment lines.
2392
2393         * Makefile.in: Same here.
2394         Update copyright.
2395
2396         * configure.in: Set bfd_gas for i386-aout when primary target
2397         is bfd.  Handle i386aout emulation.  Don't use te_file=multi, as
2398         we may need the primary te_file.  Remove incorrect comment.
2399
2400         * configure: Regenerate.
2401
2402         * config/e-i386aout.c: New file.
2403
2404         * as.c (USE_EMULATIONS): Move to before print_version_id.
2405         (struct emulation): Add i386aout.
2406         (show_usage): Split text strings.  Reformat -a text.  Add --em
2407         help.
2408         Update copyright.
2409
2410         * obj.h (struct format_ops): Add s_get_other and s_get_desc.
2411         (aout_format_ops): New.
2412         Update copyright.
2413
2414         * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
2415         preprocessor conditional and add aout USE_EMULATIONS tests.
2416         (read_a_source_file): Don't pass error strings to printf as
2417         format arg.
2418         Update copyright.
2419
2420         * gasp.c (exp_get_abs): Don't pass error strings to printf as
2421         format arg.
2422         (do_data): Same here.
2423         (process_file): And here.
2424         Update copyright.
2425
2426         * symbols.c (colon): Rewrite "already defined" fatal message
2427         code for aout with USE_EMULATIONS.
2428         Update copyright.
2429
2430         * config/obj-aout.c (OBJ_HEADER): Define.
2431         (obj_pseudo_table): Rename to aout_pseudo_table.  Init all
2432         fields of sentinel.
2433         (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
2434         S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
2435         forms here.
2436         (obj_aout_type): Expand S_SET_OTHER here too.
2437         (obj_read_begin_hook): Remove.
2438         (aout_pop_insert): New.
2439         (obj_aout_s_get_other): New.
2440         (obj_aout_s_get_desc): New.
2441         (aout_format_ops): New.
2442         Update copyright.
2443
2444         * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
2445         gets aout_pseudo_table.
2446         (aout_pseudo_table): Declare.
2447         (obj_read_begin_hook): Define.
2448         Update copyright.
2449
2450         * config/obj-coff.c (obj_pseudo_table): Rename to
2451         coff_pseudo_table.
2452         (coff_pop_insert): Use coff_pseudo_table.
2453         (coff_sec_sym_ok_for_reloc): Remove.
2454         (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
2455         and comment all zero entries and remove #if 0 code.
2456         Update copyright.
2457
2458         * config/obj-coff.h (obj_pop_insert): Define.
2459         (coff_pseudo_table): Declare.
2460         Update copyright.
2461
2462         * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
2463         s_get_size, s_set_size.  Comment all zero entries.
2464         Update copyright.
2465
2466         * config/obj-elf.c (elf_s_get_other): New function.
2467         (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
2468         (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
2469         (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
2470         comment.
2471         (obj_elf_parse_section_letters): Don't pass error strings to
2472         printf as format arg.
2473         Update copyright.
2474
2475         * config/obj-elf.h (ECOFF_DEBUGGING): Define when
2476         OBJ_MAYBE_ECOFF.
2477         (elf_s_get_other): Declare.
2478         (S_GET_OTHER) Define as elf_s_get_other if not already
2479         defined.
2480         (S_SET_OTHER): Only define when not already defined.
2481         (elf_obj_read_begin_hook): Declare.
2482         (obj_read_begin_hook): Define.
2483         (elf_obj_symbol_new_hook): Declare.
2484         (obj_symbol_new_hook): Define.
2485         Update copyright.
2486
2487         * config/obj-multi.h: Add copyright header and protect against
2488         multiple inclusion.  Add * to all function pointers.
2489         (OBJ_HEADER): If defined, include it rather than other defines
2490         in this file.
2491         (obj_frob_file_after_relocs): Test for NULL.
2492         (obj_symbol_new_hook): Here too.
2493         (obj_sec_sym_ok_for_reloc): And here.
2494         (S_GET_OTHER): Define.
2495         (S_GET_DESC): Define.
2496         (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
2497         (OBJ_MAYBE_ELF): Update comment.
2498
2499         * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
2500         OBJ_AOUT preprocessor conditional and handle emulation by
2501         testing OUTPUT_FLAVOR.
2502         (i386_displacement): Here too.
2503         (md_section_align): Similarly here.
2504         (i386_target_format): Conditionally compile when more than one
2505         of OBJ_MAYBE_{ELF,COFF,AOUT} defined.  Add aout case.
2506         (i386_immediate): Fix error message for aout BFD_ASSMBLER.
2507         (i386_displacement): Here too.
2508         Update copyright.
2509
2510         * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
2511         Define TARGET_FORMAT for aout only when not multi.
2512         Update copyright.
2513
2514         * config/te-multi.h: Delete file as it's identical to te-generic.h
2515
2516 2000-01-15  Alan Modra  <alan@spri.levels.unisa.edu.au>
2517
2518         * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
2519         * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
2520         LONG_MNEM_SUFFIX.
2521
2522         * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
2523         DWORD_MNEM_SUFFIX.
2524         * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too.  Fix some
2525         comments.
2526
2527 2000-01-13  Clinton Popetz  <cpopetz@cygnus.com>
2528
2529         * config/tc-mips.c (mips_do_align): New function.
2530         * config/tc-mips.h (md_do_align): Define.
2531
2532 2000-01-10  Philip Blundell  <philb@gnu.org>
2533
2534         * doc/c-arm.texi (ARM Options): Fix typo.
2535         (ARM-Chars): Correct description of `#'.  Mention  that `;' is a
2536         line separator for Linux.
2537         * doc/as.texinfo (Comments): Mention the ARM.
2538
2539 2000-01-10  Philip Blundell  <pb@futuretv.com>
2540
2541         * configure.in (arm*-*-conix*): New target.
2542         (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
2543         armv*-*-linux-gnu.
2544         * configure: Regenerate.
2545
2546 2000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>
2547
2548         * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
2549         (obj_elf_visibility): New function.
2550
2551         * doc/as.texinfo (Visibility): New node: document visibility
2552         pseudo ops.
2553
2554 1999-12-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
2555
2556         * config/tc-i386.c (MATCH): Relax JumpAbsolute check.  Emit a
2557         warning for absolute jump/call without `*' in non-intel mode.  No
2558         need to set i.types[0] JumpAbsolute in intel mode.
2559
2560 1999-12-22  Philip Blundell  <pb@futuretv.com>
2561
2562         * config/tc-arm.c (arm_s_text): If OBJ_ELF, call the appropriate
2563         hook function when changing sections.
2564         (arm_s_data): Likewise.
2565
2566 1999-12-14  Nick Clifton  <nickc@cygnus.com>
2567
2568         * config/tc-arm.c (md_parse_option): Add support for -marm720
2569         command line switch.
2570
2571 Tue Nov 30 22:59:00 1999  Jeffrey A Law  (law@cygnus.com)
2572
2573         * config/tc-mn10300.c (md_pseudo_table): Add ".am33" pseudo-op.
2574         (r_registers, xr_registers): Define.
2575         (r_register_name, xr_register_name): New functions.
2576         (md_assemble): Handle new am33 operand types and instruction
2577         formats.
2578         (mn10300_insert_operand, check_operand): Likewise.
2579
2580 1999-11-29  Nick Clifton  <nickc@cygnus.com>
2581
2582         * config/tc-arm.c (thumb_mode): Turn into a tristate variable.
2583         (s_force_thumb): Set thumb_mode to 2.
2584         (md_assemble): Do not complain about thumb instructions on a
2585         non-thumb target if thumb_mode is set to 2.
2586
2587 1999-11-28  Michael Meissner  <meissner@cygnus.com>
2588
2589         * config/tc-alpha.c (toplevel): Include struc-symbol.h.
2590         (alpha_macro_arg): Add MACRO_{LITERAL,BASE,BYTOFF,JSR} cases.
2591         (O_...): Add new machine dependent expressions if we are handling
2592         explicit relocations.
2593         (alpha_reloc_op): New static table holding the explicit relocation
2594         information.
2595         (alpha_literal_hash): New static to hold the hash table for
2596         explicit relocations.
2597         (alpha_macros): Add support for explicit relocations.
2598         (md_begin): If explicit relocations, initialize hash table.
2599         (md_assemble): Don't print a second error if tokenize_arguments
2600         already printed an error message.
2601         (md_apply_fix): Add support for explicit relocations.
2602         (alpha_force_relocation): Ditto.
2603         (alpha_fix_adjustable): Ditto.
2604         (alpha_adjust_symtab): New function to support explicit
2605         relocations.
2606         (alpha_adjust_symtab_relocs): Ditto.
2607         (debug_exp): Debug stub compiled if DEBUG_ALPHA is defined.
2608         (tokenize_arguments): Add debug code if DEBUG_ALPHA is defined.
2609         Add support for explicit relocations.  Return -2 if an error
2610         message was already printed.
2611         (find_macro_match): Add support for explicit relocations.  Comment
2612         each of the cases.
2613         (emit_insn): Add support for explicit relocations.
2614         (assemble_tokens): Ditto.
2615         (emit_ldgp): Ditto.
2616         (load_expression): Ditto.
2617         (emit_lda): Ditto.
2618         (emit_ldah): Ditto.
2619         (emit_ir_load): Ditto.
2620         (emit_loadstore): Ditto.
2621         (emit_ldXu): Ditto.
2622         (emit_ldil): Ditto.
2623         (emit_sextX): Ditto.
2624         (emit_division): Ditto.
2625         (emit_jsrjmp): Ditto.
2626         (emit_retjcr): Ditto.
2627
2628         * config/tc-alpha.h (RELOC_OP_P): Enable explicit relocations if
2629         ELF object format.
2630         (tc_adjust_symtab): If explicit relocations, call the function
2631         alpha_adjust_symtab.
2632         (TC_FIX_TYPE): Add fields to be able to move explicit lituse
2633         relocations next to the literal relocation they reference.
2634         (TC_INIT_FIX_DATA): Initialize the new fields.
2635         (TC_FIX_DATA_PRINT): Print the new fields if DEBUG5 is defined.
2636
2637 Wed Nov 24 20:27:58 1999  Jeffrey A Law  (law@cygnus.com)
2638
2639         * config/tc-hppa.c (pa_ip): Handle PA2.0 unit completers.  Handle
2640         'B' operand for PA2.0 bb instruction.
2641
2642 1999-11-18  Nick Clifton  <nickc@cygnus.com>
2643
2644         * config/tc-mcore.h (TC_FORCE_RELOCATION): Define for Mcore-pe
2645         target.
2646
2647         * config/tc-mcore.c (tc_gen_reloc): Support generation of RVA
2648         relocs.
2649         (mcore_force_relocation): Force relocations to be generated for
2650         RVA relocs.
2651
2652 1999-11-16  Alan Modra  <alan@spri.levels.unisa.edu.au>
2653
2654         * config/tc-i386.c (i386_immediate): Disallow O_big immediates.
2655         (i386_displacement): Disallow O_big displacements.
2656
2657 Mon Nov 15 20:12:43 1999  Donald Lindsay  <dlindsay@cygnus.com>
2658
2659         * config/tc-arm.c (do_mia,do_mar,do_mra,do_pld,do_ldrl,do_co_reg):
2660         Small improvements in error checking.
2661         (md_assemble): Support for unconditional ARM instructions.
2662         (md_parse_option): Support for -m[arm]v5e flag.
2663
2664 1999-11-12  Nick Clifton  <nickc@cygnus.com>
2665
2666         * macro.c (buffer_and_nest): Do not check beyond the end of the
2667         buffer.
2668
2669 1999-11-11  Nick Clifton  <nickc@cygnus.com>
2670
2671         * macro.c (buffer_and_nest): Look for seperator after TO and
2672         FROM tokens.
2673
2674 1999-11-08  Andrew Haley  <aph@cygnus.com>
2675
2676         * app.c (do_scrub_chars): When in State 10, treat backslash
2677         characters in the same way as as symbol characters.
2678
2679 1999-11-07  Richard Henderson  <rth@cygnus.com>
2680
2681         * config/tc-alpha.c (alpha_align): Check, don't assert, that
2682         the previous label was in the current section before playing
2683         with auto-alignment.
2684
2685 1999-11-06  Nick Clifton  <nickc@cygnus.com>
2686
2687         * config/tc-v850.c (v850_force_relocation): Force relocation
2688         for weak symbols.
2689         (v850_pcrel_from_selection): Do not compute a pcrel offset if
2690         the symbol is weak.
2691
2692 1999-11-05  Michael Meissner  <meissner@cygnus.com>
2693
2694         * expr.h (operatorT): Increase machine dependent operators to 16.
2695         * expr.c (op_rank): Ditto.
2696
2697 1999-11-03  Ian Lance Taylor  <ian@zembu.com>
2698
2699         * read.c (pseudo_set): Reject attempts to set the value of a
2700         section symbol.
2701
2702         * config/obj-elf.c (obj_elf_ident): Call md_flush_pending_output
2703         if it is defined.
2704
2705         * config/obj-elf.c (elf_set_index): Add ATTRIBUTE_UNUSED.
2706
2707         * config/obj-elf.c (elf_frob_file_after_relocs): Don't pass NULL
2708         to bfd_set_section_contents.
2709
2710 1999-11-03  Nick Clifton  <nickc@cygnus.com>
2711
2712         * config/tc-mcore.h (TARGET_BYTES_BIG_ENDIAN): Change to false.
2713
2714 1999-11-01  Gavin Romig-Koch  <gavin@cygnus.com>
2715
2716         * config/tc-mips.c (macro_build): Use OPCODE_IS_MEMBER.
2717         (mips_ip): Use OPCODE_IS_MEMBER.
2718
2719 Wed Oct 27 16:50:44 1999  Don Lindsay  <dlindsay@cygnus.com>
2720
2721         * config/tc-arm.c (reg_required_here): Improve comments.
2722
2723         * config/tc-arm.c (thumb_opcode): Add "variants" field.
2724         (tinsns): Initialize variants field.
2725
2726         * config/tc-arm.c (bad_args, bad_pc): Renamed to BAD_ARGS and
2727         BAD_PC respectively.
2728
2729 1999-10-27  Scott Bambrough  <scottb@netwinder.org>
2730
2731         * config/tc-arm.c (reloc_map[]): Fix compiler warning.
2732         * config/tc-arm.h: Fix compile time warnings.
2733
2734 Mon Oct 18 18:11:10 MDT 1999    Diego Novillo <dnovillo@cygnus.com>
2735
2736         * tc_d10v.c (find_opcode): Allow ATSIGN to match expressions of the
2737         form @abs16, @(abs16) and @(abs16 + imm).
2738
2739 1999-10-21  Gavin Romig-Koch  <gavin@cygnus.com>
2740
2741         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS) : New.
2742         (ISA_HAS_64_BIT_REGS) New.
2743         (gpr_interlocks,md_begin,reg_needs_delay,append_insn,
2744         mips_emit_delays,macro_build,load_register,load_addresss,
2745         macro,macro2,mips_ip,s_cprestore,s_cpadd): Simplify
2746         and/or use new ISA_xxx macros in expressions involving
2747         ISA, particularly mips_opts.isa.
2748
2749 1999-10-18  Michael Meissner  <meissner@cygnus.com>
2750
2751         * expr.h (operatorT): Add machine dependent operators md1..md8.
2752         (expressionS): Make X_op 8 bits instead of 7.  Add a X_md field
2753         for the machine dependent operators to use.
2754
2755         * expr.c (op_rank): Add machine dependent operators.
2756
2757         * config/tc-alpha.c (O_pregister): Define as a machine dependent
2758         operator.
2759         (O_cpregister): Ditto.
2760         (md_begin): Change X_op test that field is wide enough to use
2761         O_max instead of O_alpha_max.
2762         (cpu_types): Fill in missing initializer.
2763         (alpha_num_macros): Make unsigned.
2764         (md_assemble): Make opnamelen be size_t.
2765         (md_apply_fix): Cast alpha_num_operands to int before testing.
2766         (alpha_force_relocation): Ditto.
2767         (alpha_fix_adjustable): Ditto.
2768         (alpha_fix_adjustable): Mark unused arguments ATTRIBUTE_UNUSED.
2769         (tc_gen_reloc): Ditto.
2770         (tc_get_register): Ditto.
2771         (emit_ldgp): Ditto.
2772         (emit_lda): Ditto.
2773         (emit_ldah): Ditto.
2774         (emit_ldil): Ditto.
2775         (s_alpha_ent): Ditto.
2776         (s_alpha_end): Ditto.
2777         (s_alpha_frame): Ditto.
2778         (s_alpha_prologue): Ditto.
2779         (s_alpha_file): Ditto.
2780         (s_alpha_gprel32): Ditto.
2781         (s_alpha_proc): Ditto.
2782         (s_alpha_set): Ditto.
2783         (s_alpha_base): Ditto.
2784         (s_alpha_align): Ditto.
2785         (s_alpha_arch): Ditto.
2786         (alpha_align): Ditto.
2787         (assemble_insn): Suppress unused variable warning.
2788         (emit_insn): Ditto.
2789         (assemble_insn): Don't assume X_op and X_unsigned are in a given
2790         order in the structure.
2791         (s_alpha_coff_wrapper): Avoid int/unsigned comparison.
2792
2793 Sun Oct 17 17:15:58 1999  Jeffrey A Law  (law@cygnus.com)
2794
2795         * config/tc-hppa.c (md_apply_fix): Make "fmt" an int.
2796
2797 1999-10-12  Alan Modra  <alan@spri.levels.unisa.edu.au>
2798
2799         * config/tc-i386.c (i386_index_check): Correct #endif location.
2800
2801 Mon Oct 11 14:02:40 1999  Geoffrey Keating  <geoffk@cygnus.com>
2802
2803         * as.c (show_usage): Document new options.
2804         (parse_args): Add --no-warn, --warn, --fatal-warnings,
2805         which become 'W', OPTION_WARN, and OPTION_WARN_FATAL.
2806         (parse_args): Parse the new options.
2807         (main): If there were warnings, and --fatal-warnings
2808         was specified, print an error.
2809         * as.h: New variable, flag_fatal_warnings, for new option.
2810
2811 Sun Oct 10 01:47:23 1999  Jerry Quinn <jerry.quinn.adv91@alum.dartmouth.org>
2812
2813         * config/tc-hppa.c (pa_ip):  Add new codes 'cc', 'cd', 'cC', 'co',
2814         '@'.  Change autoincrement completers to fall through to cache control
2815         completers.
2816
2817         * config/tc-hppa.c (pa_ip):  Remove unused args.  Add code to '?W'
2818         arg.
2819         (pa_parse_addb_64_cmpltr):  New function.
2820
2821         * config/tc-hppa.c (pa_ip):  Change error message.
2822         (pa_ip,pa_parse_cmpb_64_cmpltr,pa_parse_cmpib_64_cmpltr)  Fix '?N' and
2823         '?Q' args to allow falling through.
2824
2825         * config/tc-hppa.c (pa_ip):  Implement conditional codes "?N", "?Q".
2826         Remove unused conditional codes.
2827         (pa_parse_cmpb_64_cmpltr,pa_parse_cmpib_64_cmpltr):  New.
2828
2829 Thu Oct  7 00:23:53 MDT 1999    Diego Novillo <dnovillo@cygnus.com>
2830
2831         * config/tc-d30v.c (CHAR_BIT): Define.
2832         (check_range): Fix bit operations to support integers bigger than
2833         32 bits.
2834
2835 Thu Oct  7 00:11:50 MDT 1999    Diego Novillo <dnovillo@cygnus.com>
2836
2837         * config/tc-d10v.c (check_range): Check range for RESTRICTED_NUM3
2838         operands.
2839
2840 Mon Oct  4 17:24:23 1999  Nick Clifton  <nickc@cygnus.com>
2841                           Doug Evans  <devans@cygnus.com>
2842
2843         Add support for m32rx.
2844         * config/tc-m32r.c (enable_m32rx): New static global.
2845         (enable_special,warn_explicit_parallel_conflicts,optimize): Ditto.
2846         (allow_m32rx): New function.
2847         (M32R_SHORTOPTS): Add `O'.
2848         (md_longopts): Add --m32rx plus several warning options.
2849         (md_parse_option): Handle new options.
2850         (md_show_usage): Print them.
2851         (md_begin): Enable m32rx.
2852         (OPERAND_IS_COND_BIT): New macro.
2853         (first_writes_to_seconds_operands): New function.
2854         (writes_to_pc,can_make_parallel,make_parallel): New functions.
2855         (target_make_parallel,assemble_two_insns): New functions.
2856         (md_assemble): Recognize "insn1 -> insn2" and "insn1 || insn2".
2857         If optimizing and m32rx, try to make consecutive insns parallel.
2858
2859 Tue Sep 28 14:06:44 1999  Geoffrey Keating  <geoffk@cygnus.com>
2860
2861         * config/tc-mips.c (nopic_need_relax): Allow for the
2862         .sdata.foo sections generated by -fdata-sections,
2863         and for the .gnu.linkonce.s sections generated by C++.
2864
2865 Thu Sep 23 07:13:45 1999  Jerry Quinn <jquinn@nortelnetworks.com>
2866
2867         * config/tc-hppa.c (pa_ip): Replace 'B', 'M', 'l' and 'g' handling
2868         with cleaner code using completer prefixes.   Add 'Y'.
2869
2870         * config/tc-hppa.c (pa_ip):  Add parens to silence compiler.
2871
2872 Wed Sep 22 09:37:19 1999  Jeffrey A Law  (law@cygnus.com)
2873
2874         * config/tc-hppa.c (pa_ip): Avoid ANSI specific initialization.
2875         (pa_ip, case 'm'): Failure to get a CBIT specifier just means the
2876         insn does not match and we should try the next insn in the table.
2877
2878 1999-09-22  Nick Clifton  <nickc@cygnus.com>
2879
2880         * config/tc-arm.c (MULTI_SET_PSR): Rename to LDM_TYPE_2_OR_3.
2881
2882 Mon Sep 20 04:01:41 1999  Jeffrey A Law  (law@cygnus.com)
2883
2884         * config/tc-hppa.c (pa_ip): Fix thinkos in recent cleanup
2885         of PA2.0 support.
2886
2887 1999-09-19  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2888
2889         * config/tc-i386.c (md_shortopts): Check OBJ_MAYBE_ELF as well as
2890         OBJ_ELF.  If ELF, add "sq".
2891         (md_parse_option): If ELF, ignore -s and -q.
2892         (md_show_usage): Mention ELF options.
2893
2894 Sun Sep 19 10:43:31 1999  Jeffrey A Law  (law@cygnus.com)
2895
2896         * config/tc-hppa.c (pa_ip): Handle 'J', 'K' and 'cc'
2897         operands.
2898
2899         * config/tc-hppa.c (pa_ip); Handle "fe", and 'cJ'.
2900
2901         * config/tc-hppa.c (pa_ip): Handle 'd', '#' and 'cq'.
2902
2903         * config/tc-hppa.c (struct pa_it): New field "trunc".
2904         (pa_ip): Hadnle 'h', 'm', '=', '{', and '_' operands.
2905         (pa_parse_ftest_gfx_completer): New function
2906         (pa_parse_fp_cnv_format): New function.
2907
2908         * config/tc-hppa.c (pa_ip): Handle 'X' operand.
2909         (md_apply_fix): Handle 22bit pc-rel branches.
2910
2911         * config/tc-hppa.c (pa_ip): Handle 'B' operand.
2912
2913         * config/tc-hppa.c (pa_ip): Handle 'L' and 'M' operands.
2914
2915         * config/tc-hppa.c (pa_ip): Handle 'l' operand.
2916
2917         * config/tc-hppa.c (pa_ip): Handle 'g' operand.
2918
2919 Sat Sep 18 12:13:28 1999  Jeffrey A Law  (law@cygnus.com)
2920
2921         * config/tc-hppa.c (md_assemble): Fix dwarf2 line handling.
2922         (pa_ip): Handle 'fX'.
2923
2924 Fri Sep 17 11:57:34 1999  Jeffrey A Law  (law@cygnus.com)
2925
2926         * config/tc-hppa.c (pa_build_unwind_subspace): Do not build
2927         unwinds unless the function is in the text space.
2928         (pa_type_args): Set BSF_FUNCTION for an exproted data symbol.
2929
2930 Wed Sep 15 05:14:32 1999  Jeffrey A Law  (law@cygnus.com)
2931
2932         * config/tc-hppa.c (pa_ip): Move dwarf2 stuff from here.
2933         (md_assemble): To here.  Tweak address generation.
2934
2935         * config/tc-hppa.c: Include dwarf2dbg.h if OBJ_ELF.  Declare
2936         debug_line.
2937         (md_pseudo_table): Add .file and .line pseudo-ops for OBJ_ELF.
2938         (md_assemble): Call dwarf2_where for OBJ_ELF.
2939         (pa_ip): Call dwarf2_gen_line_info for OBJ_ELF.
2940         (pa_end_of_source): New function.
2941         * tc-hppa.h (md_end): Define for OBJ_ELF.
2942
2943 1999-09-14  Michael Meissner  <meissner@cygnus.com>
2944
2945         * configure.in (Canonicalization of target names): Remove adding
2946         ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
2947         generates $ac_config_sub with a ${CONFIG_SHELL} already.
2948         * configure: Regenerate.
2949
2950 1999-09-14  Donn Terry  <donn@interix.com>
2951
2952         * config/te-interix.h (GLOBAL_OFFSET_TABLE_NAME): Define.
2953
2954 1999-09-13  Alan Modra  <alan@spri.levels.unisa.edu.au>
2955
2956         * config/tc-i386.c (md_assemble): Handle "jmp/call constant" as a
2957         pc-relative jmp/call to an absolute symbol.
2958         (md_apply_fix3): When OBJ_ELF, don't add the values in twice for
2959         absolute section symbols.
2960
2961         * config/tc-i386.c (md_assemble): Correct frag_var size.  Tidy
2962         jump handling code and comments.
2963
2964 1999-09-12  Ian Lance Taylor  <ian@zembu.com>
2965
2966         * config/tc-i386.c (md_apply_fix3): Add horrible adjustments to
2967         the value if TE_PE and a global defined symbol.
2968
2969 1999-09-11  Ian Lance Taylor  <ian@zembu.com>
2970
2971         * write.c (dump_section_relocs): Call print_symbol_value_1 to
2972         print the symbol, rather than printing it here.
2973
2974 1999-09-11  Donn Terry  <donn@interix.com>
2975
2976         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2977         BFD_RELOC_RVA relocations.
2978
2979         * config/tc-i386.c (md_undefined_symbol): Compare the name against
2980         the macro GLOBAL_OFFSET_TABLE_NAME, rather than assuming that it
2981         starts with "_G".
2982
2983         * write.c (write_relocs): Call SET_SECTION_RELOCS if it is
2984         defined.
2985         * config/obj-coff.h (SET_SECTION_RELOCS): Define.
2986         * doc/internals.texi (Object format backend): Document
2987         SET_SECTION_RELOCS.
2988
2989         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2990         relocations against global symbols if TE_PE.
2991
2992         * config/obj-coff.c (obj_coff_ident): Add BFD_ASSEMBLER version.
2993         (obj_pseudo_table): Always handle ".ident" with obj-coff_ident.
2994
2995         * config/obj-coff.c (coff_frob_symbol): Prohibit weak common
2996         symbols.
2997
2998         * config/obj-coff.c (obj_coff_endef): Don't merge labels, or
2999         symbols which do not have a constant value, or tags with
3000         non-tags.  Remove the symbol from the list before adding it at the
3001         end.
3002
3003         * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Handle .ef
3004         C_FCN symbol differently if TE_PE.
3005         (obj_coff_line) [BFD_ASSEMBLER]: Always use the line number which
3006         appears in the pseudo-op, rather coff_line_base which is only set
3007         for a .bf symbol.
3008
3009         * config/obj-coff.c (obj_coff_loc): New static function.
3010         (obj_pseudo_table): Add "loc".
3011
3012         * config/obj-coff.c (add_lineno): Check that the line number is
3013         positive.
3014
3015         * config/atof-ieee.c (atof_ieee): Change what_kind to int.
3016         * config/atof-vax.c (flonum_gen2vax): Change format_letter to
3017         int.
3018         (md_atof): Return NULL rather than 0.
3019         * config/tc-i386.c (md_atof): Change type to int.
3020         * expr.c (expr): Change first parameter to int.
3021         * config/obj-coff.c: Add declarations for static functions.
3022         (coff_frob_symbol): Use SYM_AUXENT.
3023         * config/tc-i386.h (flag_16bit_code): Don't declare.
3024
3025         * config/obj-coff.c (obj_coff_section): Default to setting
3026         SEC_LOAD.  Don't set SEC_DATA for 'w' modifier.
3027
3028         * write.c (adjust_reloc_syms): Print adjusted fixup.
3029
3030         * expr.c (integer_constant): Correct too_many_digits calculation
3031         in base 10 case.
3032
3033 1999-09-09  Andreas Schwab  <schwab@suse.de>
3034
3035         * doc/c-arm.texi: Fix arguments of @var to not contain
3036         punctuation.
3037
3038 1999-09-08  Philip Blundell  <pb@nexus.co.uk>
3039
3040         * config/tc-arm.c (s_thumb_set): Only support interworking for ELF
3041         and COFF targets.
3042         (md_parse_option): Only support -k flag for ELF and COFF targets.
3043
3044 Tue Sep  7 13:28:59 1999  Jeffrey A Law  (law@cygnus.com)
3045
3046         * config/tc-hppa.c (pa_ip): Put strict register checks before
3047         call to pa_parse_number.
3048
3049         * config/tc-hppa.c (pa_ip): Support 'Z' argument.
3050
3051 1999-09-06  Ian Lance Taylor  <ian@zembu.com>
3052
3053         * config/obj-coff.c: Add ATTRIBUTE_UNUSED as needed for
3054         BFD_ASSEMBLER code.
3055
3056 1999-09-06  Donn Terry  <donn@interix.com>
3057
3058         * as.c (perform_an_assembly_pass): Set SEC_DATA for data_section.
3059
3060 Mon Sep  6 04:26:56 1999  Jeffrey A Law  (law@cygnus.com)
3061
3062         * config/tc-hppa.c (pa_ip): Get strict/non-strict mode from the
3063         candidate instruction.  Require registers for register arguments
3064         when in strict mode.  Require assemble-time constants for
3065         constants when in strict mode.
3066         (pa_get_absolute_expression): Require a constant when in strict
3067         mode.
3068
3069 1999-09-06  Nick Clifton  <nickc@cygnus.com>
3070
3071         * config/tc-m32r.c (md_longopts): Fix value for -Wnuh.
3072
3073 1999-09-04  Steve Chamberlain  <sac@pobox.com>
3074
3075         * config/tc-pj.c: New file, supports picoJava in ELF.
3076         * config/tc-pj.h: Ditto.
3077         * configure.in (pjl*, pj*): New targets.
3078         * Makefile.am: Rebuild dependencies.
3079         (CPU_TYPES): Add pj.
3080         (TARGET_CPU_CFILES): Add config/tc-pj.c.
3081         (TARGET_CPU_HFILES): Add config/tc-pj.h.
3082         * doc/c-pj.texi: New file.
3083         * doc/as.texinfo: Add some PJ specifics.
3084         * doc/all.texi: Add PJ to the list of all architectures, sort them
3085         all alphabetically.
3086         * doc/Makefile.in (CPU_DOCS): Add c-pj.texi.
3087         * configure, Makefile.in, doc/Makefile.in: Rebuild.
3088
3089 1999-09-02  Alan Modra  <alan@spri.levels.unisa.edu.au>
3090
3091         * config/obj-multi.h: Include obj-elf.h if OBJ_MAYBE_ELF. Reformat.
3092         (obj_frob_file): Test for null pointer.
3093         (OBJ_COPY_SYMBOL_ATTRIBUTES): Here too.
3094         (OBJ_PROCESS_STAB): And here.
3095         (elf_obj_sy): Remove
3096
3097         * config/obj-elf.h: #ifndef everything defined in obj-multi.h,
3098         except OBJ_PROCESS_STAB, which we #undef for ecoff.
3099         (elf_obj_sy): Remove #ifndef OBJ_SYMFIELD_TYPE.
3100
3101         * config/obj-coff.c (no_func): Remove.
3102         (coff_format_ops): Change occurrences of no_func to 0, as we test
3103         for 0 in obj-multi.h.
3104
3105         * configure.in:  Enable bfd for i386-coff when primary target is
3106         bfd.  Enable i386 elf,coff emulation support.  Don't set
3107         USE_EMULATIONS=1 or te_file=multi unless there is more than one
3108         emulation to support.
3109         *configure: Regenerate.
3110
3111 1999-09-02  Nick Clifton  <nickc@cygnus.com>
3112
3113         * config/tc-mcore.c (mcore_s_section): Do not dump literals if a
3114         .section .line directive is encountered.
3115
3116 1999-09-01  Nick Clifton  <nickc@cygnus.com>
3117
3118         * config/tc-arm.c (md_section_align): Do not align sections in ELF
3119         format.
3120
3121         * as.c (show_usage): Add --gdwarf2 to list of options displayed.
3122         * as.texinfo: Document --gdwarf2 command line option.
3123         Add additional documentation of ARM command line switches.
3124
3125 1999-08-30  Alan Modra  <alan@spri.levels.unisa.edu.au>
3126
3127         * config/tc-i386.c (i386_intel_memory_operand): Combine
3128         i386_is_reg and parse_register calls.  Remove END_STRING_AND_SAVE
3129         and RESTORE_END_STRING around parse_register calls.
3130         (i386_operand): Here too.
3131         (i386_is_reg): Remove.
3132         (parse_register): Move as_bad calls from within this function to
3133         callers.
3134
3135 1999-08-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
3136
3137         Based on a patch from H.J. Lu  <hjl@gnu.org>
3138         * config/tc-i386.c (parse_register): Handle FP regs specially.
3139         (md_begin): Remove '(' and ')' from register_chars.
3140
3141 1999-08-29  Doug Evans  <devans@casey.cygnus.com>
3142
3143         * config/tc-m32r.c (md_parse_option): Delete unrecognized option
3144         error message (done elsewhere).
3145
3146 Sat Aug 28 01:23:11 1999  Jeffrey A Law  (law@cygnus.com)
3147
3148         * config/tc-hppa.c (pa_ip): Do not allow '*' in 32bit completers.
3149
3150 Sat Aug 28 00:26:26 1999  Jerry Quinn <jquinn@nortelnetworks.com>
3151
3152         * config/tc-hppa.c (pa_ip): Replace 'f' by 'v'.  Prefix float register
3153         args by 'f'.
3154
3155         * config/tc-hppa.c (pa_ip): Add args q, %, and |.
3156
3157         * config/tc-hppa.c (pa_ip):  Absorb white space in instructions
3158         between args.
3159         Add new completers.  Fix bug in 64 bit condition handling.
3160
3161         * config/tc-hppa.c (pa_ip):  Add completer codes 'a', 'ch', 'cH',
3162         'cS', and 'c*'.
3163
3164         * config/tc-hppa.c (pa_ip): Place completers behind prefix 'c'.
3165
3166         * config/tc-hppa.c (pa_ip):  Add cases for '.', '~'. '$'. and '!'
3167
3168         * config/tc-hppa.c (pa_ip):  Add case for 'I'.
3169
3170 1999-08-27  Jim Wilson  <wilson@cygnus.com>
3171
3172         * dwarf2dbg.c (MAX_SPECIAL_ADDR_DELTA): Correct typo in comment.
3173         (struct ls): Add frag field.  Initialize it to zero.
3174         (out_end_sequence): New local text_frag.  Set it while in text section.
3175         Replace address check with frag check.  Set ls.frag to text_frag if
3176         out_set_addr called.
3177         (dwarf2_gen_line_info): Add explanatory comment.  New local saved_frag.
3178         Set it before switching sections.  Replace address check with frag
3179         check.  Set ls.frag to saved_frag if out_set_addr called.
3180
3181 1999-08-26  David Mosberger  <davidm@hpl.hp.com>
3182
3183         * dwarf2dbg.c (out_end_sequence): If address changed, directly
3184         output "advance_pc" opcode instead of calling gen_addr_line().
3185         The latter has the undesired side-effect of creating a new row
3186         in the debug line info matrix.
3187
3188 1999-08-26  Jim Wilson  <wilson@cygnus.com>
3189
3190         * dwarf2dbg.c (out_end_sequence): Correct comments.  Set last to
3191         ls.last_filename if last is less than zero.  Set ls.last_filename
3192         when allocating new entry.
3193         (dwarf2_gen_line_info): Save seg and subseg info before subseg_new
3194         call.
3195
3196 1999-08-20  Alan Modra  <alan@spri.levels.unisa.edu.au>
3197
3198         * config/tc-i386.c (i386_index_check): Fix the displacement size
3199         when INFER_ADDR_PREFIX.
3200
3201 1999-08-18  Nick Clifton  <nickc@cygnus.com>
3202
3203         * config/tc-arm.c (md_apply_fix3): If an offset is invalid,
3204         display its value.
3205
3206 1999-08-17  Ian Lance Taylor  <ian@zembu.com>
3207
3208         * config/tc-ppc.c (md_assemble): Trim @ha constant to 16 bits, to
3209         handle 0xffffNNNN constants correctly.
3210
3211 1999-08-16  Nick Clifton  <nickc@cygnus.com>
3212
3213         * config/tc-arm.c (do_ldst): Look for register conflicts on stores
3214         as well as loads.
3215
3216 1999-08-13  Nick Clifton  <nickc@cygnus.com>
3217
3218         * config/tc-arm.c (validate_offset_imm): Work on unsigned values.
3219         (md_apply_fix3): Always pass positive values to
3220         validate_offset_imm.
3221
3222 1999-08-12  Nick Clifton  <nickc@cygnus.com>
3223
3224         * config/tc-arm.c (skip_whitespace): New macro.
3225         Formatting tidy ups.
3226
3227         (md_apply_fix3): Store relocation offset in addend for ELF based
3228         relocs.
3229         (arm_force_relocation): Always generate relocs for Thumb function
3230         calls.
3231
3232 1999-08-11  Alan Modra  <alan@spri.levels.unisa.edu.au>
3233
3234         * config/tc-i386.c (md_assemble): Remove dead code.  intel_syntax
3235         LONG_DOUBLE_MNEM_SUFFIX floating point is done in opcode/i386.h
3236
3237 Tue Aug 10 12:58:31 1999  Jeffrey A Law  (law@cygnus.com)
3238
3239         * config/tc-hppa.c (pa_build_unwind_subspace): Use sane section
3240         flags for the unwind subspace.
3241
3242         * config/tc-hppa.c (UNWIND_SECTION_NAME): Define for ELF.
3243         (pa_build_unwind_subspace): Remove #if 0 wrapper.  Select a
3244         suitable relocation based on the size of the target's pointer.
3245         Always Use subsegment zero for the unwinders.
3246         (pa_level): Handle "2.0w".
3247
3248 Mon Aug  9 20:02:22 1999  J"orn Rennecke  <amylaar@cygnus.co.uk>
3249
3250         * config/tc-d30v.c (write_2_short): Don't group repeat instructions
3251         with the following instruction unless this was specified.
3252
3253 1999-08-09  Ian Lance Taylor  <ian@zembu.com>
3254
3255         * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4 for
3256         certain sections, to match BFD changes.
3257
3258 1999-08-08  Mumit Khan  <khan@xraylith.wisc.edu>
3259
3260         * Makefile.am (noinst_SCRIPTS): Change .gdbinit to $(GDBINIT).
3261         (EXTRA_SCRIPTS): Define to keep automake happy.
3262         * Makefile.in: Rebuild.
3263
3264 1999-08-08  Ian Lance Taylor  <ian@zembu.com>
3265
3266         * Makefile.am: Rename .dep* files to DEP*.
3267         (MKDEP): Rename from DEP.  Change all uses.  Use $${srcdir} rather
3268         than $(srcdir).  Rename TCDEP targets to DEPTC.  Rename OBJDEP
3269         targets to DEPOBJ.
3270         * Makefile.in: Rebuild.
3271
3272 1999-08-08  Jakub Jelinek  <jj@ultra.linux.cz>
3273
3274         * config/tc-sparc.c (sparc_ip): Allow assembly of %lo()+%reg.
3275
3276 1999-08-08  Ian Lance Taylor  <ian@zembu.com>
3277
3278         * Makefile.am: Change all uses of itbl-test-ops to itbl-tops to
3279         avoid problems on DOS filesystems.
3280         * Makefile.in: Rebuild.
3281
3282         * doc/as.texinfo (Section): Document 's' flag for COFF version.
3283
3284 1999-08-08  Mumit Khan  <khan@xraylith.wisc.edu>
3285
3286         * config/obj-coff.c (obj_coff_section): Handle 's' (shared)
3287         section flag.
3288
3289 1999-08-08  Ian Lance Taylor  <ian@zembu.com>
3290
3291         * configure.in: Define and substitute GDBINIT.  Change AC_OUTPUT
3292         line to create ${GDBINIT} rather than .gdbinit.
3293         * configure, Makefile.in, doc/Makefile.in: Rebuild.
3294
3295 Fri Aug  6 12:12:44 1999  Jeffrey A Law  (law@cygnus.com)
3296
3297         * config/tc-hppa.c (pa_ip, case '?'): Add missing break.
3298
3299 Fri Aug  6 09:46:35 1999  Jerry Quinn <jquinn@nortelnetworks.com>
3300
3301         * config/tc-hppa.c (pa_ip):  Add 64 bit condition completers.
3302
3303 1999-08-06  Jakub Jelinek  <jj@ultra.linux.cz>
3304
3305         * config/tc-sparc.h (tc_fix_adjustable): Fix check for PIC local
3306         non-adjustable symbols.
3307
3308 Thu Aug  5 16:52:51 1999  Jerry Quinn <jquinn@nortelnetworks.com>
3309
3310         * config/tc-hppa.c (pa_ip): Change condition args to have '?' prefix.
3311
3312 Thu Aug  5 23:05:56 1999  J"orn Rennecke  <amylaar@cygnus.co.uk>
3313
3314         * config/tc-sh.c (md_assemble):  Call as_bad when there are excess
3315         operands.
3316
3317 1999-08-05  Donn Terry  <donn@interix.com>
3318
3319         * config/te-interix.h: New file.
3320         * configure.in (i386-*-interix*): New target.
3321         * configure: Rebuild.
3322
3323 Wed Aug  4 13:12:17 1999  Jeffrey A Law  (law@cygnus.com)
3324
3325         * config/tc-hppa.c (pa_chk_field_selector): Allow 3 byte
3326         selectors for ELF too.
3327         (selector_table): Add "ltp" and "rtp" selectors.
3328
3329 1999-08-04  Alan Modra  <alan@spri.levels.unisa.edu.au>
3330
3331         * config/tc-i386.c (i386_operand): No need to change
3332         operand_string pointer in segment reg case before goto
3333         do_memory_reference.  Initialise displacement_string_start and
3334         displacement_string_end after do_memory_reference label.
3335         (i386_index_check): Add operand_string param, and print error
3336         message on failure here.
3337         (i386_intel_memory_operand): Instead of here.
3338         (i386_operand): And here.
3339         (INFER_ADDR_PREFIX): Enable.
3340
3341         * doc/c-i386.texi (i386-16bit): Document .code16gcc.
3342
3343         * config/tc-i386.h (DefaultSize): Define.  Renumber following
3344         opcode_modifier defines.
3345
3346         From Etienne Lorrain  <etienne.lorrain@ibm.net>
3347         * config/tc-i386.c (stackop_size): New variable.
3348         (set_16bit_code_flag): Clear it here.
3349         (set_16bit_gcc_code_flag): New function.
3350         (md_pseudo_table): Add "code16gcc" entry.
3351         (md_assemble): Set i.suffix for insns with DefaultSize modifier.
3352
3353 1999-08-03  Ian Lance Taylor  <ian@zembu.com>
3354
3355         * config/obj-coff.c (coff_frob_symbol): Always update set_end with
3356         next_set_end even if the end symbol is being discarded.
3357
3358         * gasp.c: Add ATTRIBUTE_UNUSED as needed for non-BFD_ASSEMBLER.
3359         * output-file.c, symbols.c, config/tc-i386.c: Likewise.
3360         * config/obj-coff.c: Likewise.
3361         (seg_info_type): Remove.
3362         (seg_info_off_by_4): Change to array of segT.
3363         (s_get_segment): Adjust accordingly.
3364         (obj_pseudo_table): Fully initialize sentinel entry.
3365
3366         * config/tc-mips.c (append_insn): Correct INSN_SYNC test.  From
3367         Ralf Baechle <ralf@uni-koblenz.de>.
3368
3369 1999-08-03  Etienne Lorrain  <etienne.lorrain@ibm.net>
3370
3371         * config/tc-i386.c (f16_3): New. Fixes 16 bit 3 byte nop.
3372
3373 1999-08-03  Alan Modra  <alan@spri.levels.unisa.edu.au>
3374
3375         * config/tc-i386.c: Indentation and white space changes.
3376         (i386_index_check): New function.  Add INFER_ADDR_PREFIX code, but
3377         don't enable it by default.
3378         (i386_intel_operand): Remove redundant prototype.
3379         Move check on number of memory operands, and i.mem_operands++
3380         (i386_intel_memory_operand): To here.
3381         Remove i386_immediate code from here.  Remove special case code
3382         for input and output using (%dx).  Remove base/index checks and
3383         call i386_index_check instead.  Save initial operand_string
3384         argument for error message.
3385         (i386_operand): Remove redundant prototype.  Move base/index
3386         checks to i386_index_check.
3387         (i386_displacement): Move intel mode check for non-zero
3388         i.disp_operand
3389         (i386_intel_memory_operand): To here.
3390
3391 1999-07-30  Jakub Jelinek  <jj@ultra.linux.cz>
3392
3393         * config/tc-sparc.c (md_longopts): Add --no-undeclared-regs option.
3394         (sparc_ip): Warn if %g2 or %g3 register is used and not covered
3395         by .register pseudo-op if -64 and --no-undeclared-regs.
3396         (s_register, sparc_adjust_symtab): New functions.
3397         * config/tc-sparc.h (tc_adjust_symtab, sparc_adjust_symtab):
3398         Declare sparc_adjust_symtab as tc_adjust_symtab.
3399         * doc/c-sparc.texi: Add description of #ignore special literal
3400         for .register pseudo-op.
3401
3402 1999-07-30  Catherine Moore  <clm@cygnus.com>
3403
3404         * config/tc-arm.c (tc_gen_reloc): Record the vtable entry in
3405         the relocation's section offset.
3406
3407 1999-07-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
3408
3409         * write.c (fixup_segment): Fix generic error check overflow test.
3410
3411         * config/tc-i386.c (pe): Change %d to %ld, %x to %lx, and cast
3412         X_add_number to long.
3413
3414 Wed Jul 28 02:04:24 1999  "Jerry Quinn" <jquinn@nortelnetworks.com>
3415
3416         * config/tc-hppa.c (pa_ip):  Add 'J' and 'K' code
3417         processing.
3418
3419 1999-07-27  Ian Lance Taylor  <ian@zembu.com>
3420
3421         * config/tc-sparc.h (tc_fix_adjustable): Don't adjust GOT, PLT, or
3422         VTABLE relocations.
3423
3424 1999-07-21  Mark Elbrecht  <snowball3@bigfoot.com>
3425
3426         * config/te-go32.h (COFF_LONG_SECTION_NAMES): Define.
3427
3428         * configure.bat: Remove; obsolete.
3429         * config/go32.cfg: Likewise.
3430
3431 1999-07-21  Brad M. Garcia  <bgarcia@fore.com>
3432
3433         * configure.in (i386-*-vxworks*): New target.
3434         * configure: Rebuild.
3435
3436 1999-07-16  Jakub Jelinek  <jj@ultra.linux.cz>
3437
3438         * doc/c-sparc.texi: Document .register and .nword pseudo-ops.
3439
3440 1999-07-16  Jakub Jelinek  <jj@ultra.linux.cz>
3441
3442         * config/tc-sparc.c (sparc_ip): Allow OLO10 relocations
3443         on -64 and not pic.
3444         (output_insn): Put OLO10's secondary addend into tc_fix_data.
3445         (md_apply_fix3): Handle BFD_RELOC_SPARC_OLO10.
3446         (tc_gen_reloc): Return two relocs for OLO10, LO10 and SPARC13.
3447         * config/tc-sparc.h (RELOC_EXPANSION_POSSIBLE,
3448         MAX_RELOC_EXPANSION): Define.
3449         (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FIX_DATA_PRINT): Likewise.
3450
3451 1999-07-16  Alan Modra  <alan@spri.levels.unisa.edu.au>
3452
3453         * config/tc-i386.c (intel_float_operand): Add prototype, make static.
3454         (md_assemble): Localize *exp variable to if (fake_zero_displacement)
3455         block.  Print a warning if an 8-bit or 16-bit constant
3456         displacement or immediate is truncated on output.
3457         (i386_immediate): Ensure Imm16 is always legal for a 16-bit mode
3458         immediate.
3459         (i386_operand): Disallow immediate jump absolute operand.
3460
3461 1999-07-15  Ian Lance Taylor  <ian@zembu.com>
3462
3463         * configure.in: Bump version number to 2.9.5.
3464         * configure: Rebuild.
3465
3466         * dwarf2dbg.c (dwarf2_gen_line_info): Don't assume that long long
3467         or %llx work.
3468
3469 Thu Jul 15 02:45:30 1999  Jeffrey A Law  (law@cygnus.com)
3470
3471         * config/tc-hppa.c (md_pseudo_table): Add ".dword" pseudo-op.
3472         (cons_fix_new_hppa): Derive size of fixup from size of the object.
3473
3474 1999-07-14  Philip Blundell  <pb@nexus.co.uk>
3475
3476         * symbols.c (dollar_label_name): Prepend LOCAL_LABEL_PREFIX if it
3477         is defined.
3478         * config/tc-arm.h (LOCAL_LABEL_PREFIX): Define to '.' for ELF.
3479
3480         * config/tc-arm.c (md_begin): Set F_SOFTFLOAT in the output file
3481         if -mno-fpu was given.
3482         (tc_gen_reloc): Fix typo.  Delete bogus code related to GOTPC
3483         relocs.
3484         (cons_fix_new_arm): Remove misleading comments.
3485
3486 1999-07-14  Ian Lance Taylor  <ian@zembu.com>
3487
3488         * write.c (cvt_frag_to_fill): Use frag file and line in rs_org
3489         error message.
3490         (relax_segment): Likewise.  After giving a rs_org error, convert
3491         the frag to rs_align to avoid cascading errors.
3492
3493 1999-07-12  Andreas Schwab  <schwab@suse.de>
3494
3495         * config/tc-m68k.c: Add some ATTRIBUTE_UNUSED.
3496
3497 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
3498
3499         * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
3500         as appropriate.  Fill in structure initializations.  Add variable
3501         initializations.  Add casts.
3502         * dwarf2dbg.c (print_stats): Change i to size_t.
3503         * listing.c (listing_listing): Change list_line to unsigned int.
3504
3505 1999-07-10  Ian Lance Taylor  <ian@zembu.com>
3506
3507         * config/tc-ppc.h (tc_fix_adjustable) [OBJ_ELF]: Call S_IS_LOCAL
3508         rather than checking for \001 and \002 in symbol name.
3509         * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: Likewise.
3510
3511 Thu Jul  8 12:32:23 1999  John David Anglin <dave@hiauly1.hia.nrc.ca>
3512
3513         * configure.in (hppa*-linux-gnu*): New target.
3514         * configure: Rebuilt.
3515
3516 1999-07-08  Nick Clifton  <nickc@cygnus.com>
3517
3518         * doc/c-arm.texi (ARM Directives): Document .thumb_set directive.
3519
3520 1999-07-07  Nick Clifton  <nickc@cygnus.com>
3521
3522         * config/tc-v850.c (v850_comm): Use symbol_get_obj() rather than
3523         accessing symbolP directly.
3524
3525 Tue Jul  6 10:41:42 1999  Jeffrey A Law  (law@cygnus.com)
3526
3527         * config/tc-hppa.h (tc_frob_symbol): Always punt "$global$" symbol
3528         for ELF.
3529
3530 1999-07-05  Nick Clifton  <nickc@cygnus.com>
3531
3532         * config/tc-arm.c (ARM_EXT_V5): Define.
3533         (ARM_ARCH_V5, ARM_ARCH_V5T): Define.
3534         (md_begin): Detect ARM v5 architectures.
3535         (md_parse_option): Accept arm v5 specification.
3536         (md_show_usage): Documment -marmv5 switch.
3537
3538         * doc/c-arm.texi: Document -marmv5 command line option.
3539
3540         * config/tc-arm.c (do_adrl): New function.  Implement ADRL pseudo
3541         op.
3542         (validate_immediate_twopart): New function.  Determine if a
3543         constant can be computed by two ADD instructions.
3544         (output_inst): Remove its command line parameter - it was never
3545         used.
3546         (md_apply_fix3): Support BFD_RELOC_ARM_ADRL_IMMEDIATE, used to
3547         implememt the ADRL pseudo op.
3548         (tc_gen_reloc): Generate a suitable error message if an ADRL
3549         instruction tries to generate a real reloc.
3550
3551         * doc/c-arm.texi: Document NOP, ADR and ADRL pseudo ops.
3552
3553 Thu Jul  1 15:33:10 1999  Jeffrey A Law  (law@cygnus.com)
3554
3555         * config/tc-hppa.c (pa_ip): Convert the opcode and all completers
3556         into lower case.
3557
3558 1999-06-27  H.J. Lu  <hjl@gnu.org>
3559
3560         * subsegs.c (subseg_text_p): Use 1/0 instead of true/false for
3561         non BFD_ASSEMBLER case.
3562
3563 1999-06-26  Mumit Khan  <khan@xraylith.wisc.edu>
3564
3565         * config/obj-coff.c (obj_coff_section): Mark writable sections as
3566         data.
3567
3568 1999-06-26  David Mosberger  <davidm@hpl.hp.com>
3569
3570         * dwarf2dbg.c (dwarf2_gen_line_info): Don't call
3571         out_end_sequence() when the address decreases due to a new frag.
3572         (gen_dir_list): Set ls.file[i].dir to j + 1 (not j) because file
3573         numbering starts with 1.
3574
3575 1999-06-23  Nick Clifton  <nickc@cygnus.com>
3576
3577         * config/tc-mcore.c (md_pseudo_table): Add .comm for ELF and allow
3578         .section for COFF.
3579         (mcore_s_text): Call obj_elf_text for ELF target.
3580         (mcore_s_data): Call obj_elf_data for ELF target.
3581         (mcore_s_section): No longer ELF specific.  Call obj_coff_section
3582         for COFF target.
3583         (mcore_s_bss): New function:  Dump literal table before changing
3584         sections.
3585         (mcore_s_comm): New function:  Dump literal table before changing
3586         sections.
3587
3588         * config/obj-elf.c (obj_elf_common, obj_elf_data, obj_elf_text):
3589         No longer static functions.
3590         * config/obj-elf.h (obj_elf_common, obj_elf_data, obj_elf_text):
3591         Provide prototypes for these functions.
3592
3593 1999-06-22  Ian Lance Taylor  <ian@zembu.com>
3594
3595         * subsegs.c (subseg_text_p): Rewrite non BFD_ASSEMBLER case to use
3596         a list of names, to try obj_segment_name, and to try abbreviated
3597         names when using COFF without long section names.
3598
3599         * config/tc-alpha.c: More use of symbol accessor functions.
3600         * config/tc-arc.c: Likewise.
3601         * config/tc-d30v.c: Likewise.
3602         * config/tc-fr30.c: Likewise.
3603         * config/tc-i860.c: Likewise.
3604         * config/tc-m88k.c: Likewise.
3605         * config/tc-mcore.c: Likewise.
3606         * config/tc-ns32k.c: Likewise.
3607         * config/tc-sparc.c: Likewise.
3608         * config/tc-v850.c: Likewise.
3609
3610         * config/tc-arc.c (get_arc_exp_reloc_type): Change uses of
3611         sy_value with appropriate accessor functions.
3612         * config/tc-arm.c (md_apply_fix3): Likewise.
3613         * config/tc-d10v.c (AT_WORD_P): Likewise.
3614         * config/tc-v850.c (reg_name_search): Likewise.
3615
3616         * config/obj-ecoff.c (obj_ecoff_set_ext): Change uses of bsym to
3617         use symbol_get_bfdsym instead.
3618         * config/tc-ppc.c (md_assemble): Likewise.
3619         * config/tc-v850.c (v850_comm): Likewise.
3620
3621 1999-06-22  Jonathan Larmour  <jlarmour@cygnus.co.uk>
3622
3623         * config/tc-arc.c (tc_gen_reloc): Use symbol_get_bfdsym to get at
3624         the symbol, rather than accessing the bsym member.
3625         * config/tc-d10v.c (tc_gen_reloc): Likewise.
3626         * config/tc-d30v.c (tc_gen_reloc): Likewise.
3627         * config/tc-mcore.c (tc_gen_reloc): Likewise.
3628         * config/tc-mn10200.c (tc_gen_reloc): Likewise.
3629         * config/tc-mn10300.c (tc_gen_reloc): Likewise.
3630         * config/tc-ns32k.c (tc_gen_reloc): Likewise.
3631         * config/tc-tic30.c (tc_gen_reloc): Likewise.
3632         * config/tc-v850.c (tc_gen_reloc): Likewise.
3633
3634 Mon Jun 21 16:45:19 1999  Jeffrey A Law  (law@cygnus.com)
3635
3636         * tc-hppa.c (elf_hppa_reloc_type): Renamed from elf32_hppa_reloc_type.
3637         (hppa_gen_reloc_type): Conditionalize on BFD64.
3638         (tc_gen_reloc): Re-enable ELF relocations.
3639         * tc-hppa.h (TARGET_FORMAT): Handle elf64-hppa format.
3640
3641 1999-06-21  Ian Lance Taylor  <ian@zembu.com>
3642
3643         * config/tc-arm.c (ldst_extend): Add parentheses to avoid
3644         warning.
3645         (do_ldst): Move assignment out of if condition.
3646         (md_apply_fix3): Add casts to avoid printf format warnings.  Add
3647         parentheses to avoid warning.
3648
3649 1999-06-21  Nick Clifton  <nickc@cygnus.com>
3650
3651         * config/tc-arm.c (arm_adjust_symtab): Use symbol_get_bfdsym()
3652         macro to get at the BFD symbol associated with a GAS symbol.
3653
3654 1999-06-19  Ian Lance Taylor  <ian@zembu.com>
3655
3656         * config/tc-ppc.c: Update for symbol handling changes.
3657         * config/obj-coff.c: Likewise.
3658
3659 Fri Jun 18 14:34:18 1999  Jeffrey A Law  (law@cygnus.com)
3660
3661         * tc-hppa.c: General cleanups of ELF support.  No more spaces
3662         and subspaces for ELF.
3663         (GDB_DEBUG_SPACE_NAME): Delete definition for ELF.
3664         (GDB_STRINGS_SUBSPACE_NAME): Likewise.
3665         (GDB_SYMBOLS_SUBSPACE_NAME): Likewise
3666         (UNWIND_SECTION_NAME): Likewise.
3667         (space/subspace related structures): Conditionalize definitions
3668         on OBJ_SOM.
3669         (space/subspace directives and support routines): Conditionalize
3670         definitions and references/uses on OBJ_SOM.
3671         (label_symbol_struct): For ELF, track the symbol's segment.  For
3672         SOM track its space.
3673         (pa_define_label, pa_undefine_label, pa_get_label): Corresponding
3674         changes.
3675         (USE_ALIASES): Kill for both SOM & ELF.
3676         (pa_def_subspaces, pa_def_spaces): Corresponding changes.
3677         (pa_space, pa_subspace): Corresponding changes.
3678         (pa_spaces_begin): Corresponding chagnes.
3679         (md_begin): Do not muck around with space/subspace stuff for
3680         OBJ_ELF.
3681         (md_apply_fix): Temporarily disable argument relocation stuff
3682         for OBJ_ELF.
3683         (tc_gen_reloc): Temporarily disable relocation generation for
3684         OBJ_ELF
3685         (pa_build_unwind_subspace): Similarly.
3686
3687 1999-06-16  Nick Clifton  <nickc@cygnus.com>
3688
3689         * config/tc-arm.c (thumb_set): New pseudo op.
3690         (text, data, section): Override these pseudo ops with ARM
3691         specific versions.
3692         (s_thumb_set): New function: Perform the same as a .set pseudo
3693         op, but also mark the alias'ed symbol as being a Thumb
3694         function.
3695         (arm_s_text): New function: Perform the same as the .text
3696         pseudo op, but dump the literal pool before changing
3697         sections.
3698         (arm_s_data): New function: Perform the same as the .data
3699         pseudo op, but dump the literal pool before changing
3700         sections.
3701         (arm_s_section): New function: Perform the same as the
3702         .section pseudo op, but dump the literal pool before changing
3703         sections.
3704         (arm_cleanup): Do not reset the current section before dumping
3705         the literal pool.
3706
3707 1999-06-17  Nick Clifton  <nickc@cygnus.com>
3708
3709         * config/tc-m32r.c (md_longopts): Fix OPTION_WARN_UNMATCHED and
3710         OPTION_NO_WARN_UNMATCHED entries.
3711         (md_parse_option): Generate a warning message if an unrecognised
3712         option is encountered.
3713
3714         * config/tc-d10v.c (do_not_ignore_hash): New variable.
3715         (get_operands): When parsing an expression after an '@' symbol
3716         has been detected, do not ignore '#' symbols.
3717         (md_operand): Only ignore '#' symbols if do_not_ignore_hash is
3718         false.
3719
3720 1999-06-13  Ian Lance Taylor  <ian@zembu.com>
3721
3722         From K. Richard Pixley <rich@noir.com>:
3723         * configure.in (ppc-*-vxworks*): New target.
3724         * configure: Rebuild.
3725
3726 1999-06-12  Philip Blundell  <philb@gnu.org>
3727
3728         * config/tc-arm.c (tc_gen_reloc): Fix handling of GOTPC relocs.
3729
3730 1999-06-13  Ian Lance Taylor  <ian@zembu.com>
3731
3732         * write.c (adjust_reloc_syms): Rather than never reducing reloc
3733         which refer to symbols in linkonce sections, permit reducing the
3734         relocs if the symbol is local.
3735
3736 1999-06-12  Ian Lance Taylor  <ian@zembu.com>
3737
3738         * subsegs.c (subseg_text_p): New function.
3739         * as.h (subseg_text_p): Declare.
3740         * read.c (do_align): Use subseg_text_p to set the default fill.
3741         * write.c (subsegs_finish): Likewise.
3742         * config/obj-coff.c (write_object_file): Likewise.
3743         * config/tc-i386.h (md_maybe_text): Don't define.
3744         (md_do_align): Use subseg_text_p to set the default fill.
3745         * config/tc-m32r.c (m32r_do_align): Likewise.
3746         * config/tc-sh.c (sh_do_align): Likewise.
3747         * config/tc-sparc.h (md_do_align): Likewise.
3748
3749 1999-06-12  David O'Brien  <obrien@freebsd.org>
3750
3751         * configure.in: (i[3456]86-*-freebsd*): Now defaults to ELF.
3752         * configure: Rebuild.
3753
3754 1999-06-12  Ian Lance Taylor  <ian@zembu.com>
3755
3756         * dwarf2dbg.c: Include elf/dwarf2.h with "", not <>.
3757         * Makefile.am: Rebuild dependencies.
3758         * Makefile.in: Rebuild.
3759
3760         * config/tc-i386.c (i386_immediate): Remove unused label
3761         seg_unimplemented.
3762
3763         * struc-symbol.h: Put local_symbol code in ifdef BFD_ASSEMBLER.
3764         * symbols.c: Likewise.
3765         * config/obj-aout.c (obj_crawl_symbol_chain): Refer directly to
3766         sy_next field when taking address, rather than symbol_next.
3767
3768         * dwarf2dbg.c: Change bfd_vma to addressT and bfd_signed_vma to
3769         offsetT.
3770         (out_set_addr): Don't use BYTES_PER_ADDRESS.  Instead, get the
3771         value from the output file architecture.
3772         (dwarf2_gen_line_info): Ifdef BFD_ASSEMBLER specific code.
3773         * dwarf2dbg.h: Change bfd_vma to addressT.
3774
3775 1999-06-11  Ian Lance Taylor  <ian@zembu.com>
3776
3777         * dwarf2dbg.h: Use PARAMS in function declarations.
3778
3779 1999-06-11  Martin Dorey  <mdorey@madge.com>
3780
3781         * write.c (fixup_segment): Don't add symbol value for i960 ELF.
3782         * config/tc-i960.c (s_leafproc): Don't call tc_set_bal_of_cal if
3783         OBJ_ELF.
3784         (md_apply_fix): Simplify BFD_ASSEMBLER handling.
3785
3786 1999-06-11  Ian Lance Taylor  <ian@zembu.com>
3787
3788         * config/tc-i386.c (md_apply_fix3): Add default case to switch.
3789
3790         * config/tc-sparc.c (md_pseudo_table): Remove pushsection and
3791         popsection.
3792
3793         * config/tc-sparc.c (sparc_ip): Add default case to reloc switch.
3794
3795         * read.c (read_a_source_file): Only declare inescape if
3796         QUOTES_IN_INSN.
3797
3798         * itbl-ops.c (itbl_disassemble): Change sprintf format strings to
3799         match parameters.
3800         (find_entry_byval): Add parens to avoid warning.
3801
3802         * as.c: If HAVE_ITBL_CPU, include "itbl-ops.h".
3803
3804         * symbols.c (resolve_symbol_value): Don't permit subtraction of
3805         undefined symbols.
3806
3807 1999-06-10  Jakub Jelinek  <jj@ultra.linux.cz>
3808
3809         * config/tc-sparc.c (sparc_ip): Don't use side-effect expression
3810         with isoctal.
3811
3812         * config/tc-sparc.c (synthetize_setuw, synthetize_setsw,
3813         synthetize_setx): New functions.
3814         (md_assemble): Broken the special cases into the above
3815         functions. Make compiler happy if sizeof(bfd_vma)==4.
3816         Fix sethi generated from set/setuw. If instructions have a relloc,
3817         always clear the fields to be relocated in the opcode.
3818         (sparc_ip): Remove special_case global variable.
3819
3820 1999-06-10  Ian Lance Taylor  <ian@zembu.com>
3821
3822         Based on patches from John W. Woznack <jwoznack@concentric.net>:
3823         * itbl-ops.c (itbl_get_reg_val): Add pval parameter.  Return
3824         indication of success rather than a value.
3825         (itbl_get_val): Likewise.
3826         (itbl_get_field): Use strcspn.  Change delimiters to include
3827         parens.
3828         * itbl-ops.h (itbl_get_reg_val): Update declaration.
3829         (itbl_get_val): Likewise.
3830         * config/tc-mips.c (mips_ip): Update call to itbl_get_reg_val.
3831
3832         * symbols.c (copy_symbol_attributes): Convert local symbols to
3833         regular symbols.
3834
3835 1999-06-10  Nick Clifton  <nickc@cygnus.com>
3836
3837         * config/tc-arm.c (md_parse_option): Add support for ARM920 and
3838         ARM920t.
3839
3840 1999-06-07  Jakub Jelinek  <jj@ultra.linux.cz>
3841
3842         * config/tc-sparc.c (md_assemble): Fix up setx, support setsw.
3843         Optimize set if sizeof(bfd_vma) == 64.
3844         (sparc_ip): Fix sethi - without %hi() it should generate
3845         R_SPARC_22 reloc, not R_SPARC_HI22.
3846         (tc_gen_reloc): Handle BFD_RELOC_SPARC22.
3847
3848 1999-06-07  Jakub Jelinek  <jj@ultra.linux.cz>
3849
3850         * config/tc-sparc.c (md_begin): Handle native wordsize aliases.
3851         (s_ncons): New function.
3852         (native_op_table): New table.
3853         (sparc_ip): Be more strict on %hi() etc.; prepare assembler for
3854         R_SPARC_OLO10 handling.
3855
3856 Mon Jun  7 10:22:16 1999  Richard Henderson  <rth@cygnus.com>
3857
3858         * expr.h (struct expressionS): Revert last change; widen X_op.
3859         * config/tc-alpha.c (md_begin): Check the field is wide enough.
3860
3861 Mon Jun  7 11:25:16 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
3862
3863         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-fr30.c.
3864         (TARGET_CPU_HFILES): Add config/tc-fr30.h.
3865         (TARG_ENV_HFILES): Add config/te-epoc-pe.h.
3866         * Makefile.in: Regenerated.
3867
3868         * config/obj-elf.c (obj_elf_common): In MRI mode if called as
3869         `common' pass on to s_mri_common.
3870         (elf_pseudo_table): Pass 1 to obj_elf_common for `common'.
3871
3872 1999-06-06  Richard Henderson  <rth@cygnus.com>
3873
3874         * config/obj-elf.c (obj_elf_section): Don't free the return
3875         value of demand_copy_C_string.
3876
3877 1999-06-05  Richard Henderson  <rth@cygnus.com>
3878
3879         * dwarf2dbg.c (dwarf2_gen_line_info): Mirror the section symbol
3880         creation logic from obj_elf_create_section.
3881
3882         * config/obj-elf.c (elf_pseudo_tab): Add pushsection/popsection.
3883         (section_stack): New.
3884         (special_sections): Make const.
3885         (obj_elf_section): Gut and rewrite parsing.
3886         (obj_elf_change_section): New function broken out of obj_elf_section.
3887         (obj_elf_parse_section_letters): Likewise.
3888         (obj_elf_section_word): Likewise.
3889         (obj_elf_section_type): Likewise.
3890         (obj_elf_previous): Treat as a toggle.
3891         (obj_elf_popsection): New.
3892         * config/tc-ppc.c (ppc_section_word): Take str+len not ptr_str.
3893         (ppc_section_type): Likewise.
3894         * config/tc-ppc.h: Likewise.
3895
3896         * expr.h (struct expressionS): Don't make X_op a bitfield.
3897         * config/tc-alpha.c: Update for symbol handling changes.
3898         (md_apply_fix) [case GPREL]: Use now_seg instead of absolute_section.
3899         (load_expression, emit_ir_load, emit_loadstore, emit_jsrjmp): Likewise.
3900
3901 1999-06-05  Richard Henderson  <rth@cygnus.com>
3902
3903         * dwarf2dbg.c (*): Convert to K&R + prototypes.
3904         (dwarf2_gen_line_info): Kill unused variables.
3905         (dwarf2_finish): Likewise.
3906         (dwarf2_where): Likewise.
3907         (dwarf2_directive_file): If we've only got a string,
3908         hand off to s_app_file.
3909         * ecoff.c: Move the include of ecoff.h.
3910         * symbols.h (S_IS_FUNCTION): Prototype.
3911
3912         * read.c (LEX_HASH): Supply a default.
3913         (lex_type): Use it.
3914         (s_globl): Update `c' after skipping whitespace.
3915         * read.h (LEX_END_NAME, is_name_ender): New.
3916         * expr.c (get_symbol_end): Respect it.
3917
3918 1999-06-04  Mark Klein <mklein@dis.com>
3919
3920         * config/tc-hppa.c (md_begin): Convert local symbol dummy_symbol
3921         to real if OBJ_SOM
3922         (tc_gen_reloc): Still need bfd_abs_symbol in some relocs.
3923
3924         * config/tc-hppa.c: Update for symbol handling changes.
3925
3926 1999-06-03  Ian Lance Taylor  <ian@zembu.com>
3927
3928         * cgen.c: Update for symbol handling changes.
3929         * config/tc-m32r.c: Likewise.
3930
3931         * config/tc-hppa.h: Update for symbol handling changes.
3932         * config/tc-hppa.c: Likewise.
3933
3934         * config/tc-arm.h: Update for symbol handling changes.
3935         * config/tc-arm.c: Likewise.
3936         (symbol_make_empty): Remove.  Just use symbol_create.
3937
3938         * symbols.c (symbol_set_tc): Correct name.
3939
3940         * Makefile.am: Rebuild dependencies.
3941         ($(OBJS)): Don't depend upon struc-symbol.h.
3942         (.dep1, .tcdep, .objdep): Create itbl-parse.h.
3943         * dep-in.sed: Don't remove struc-symbol.h.
3944         * Makefile.in: Rebuild.
3945
3946         * doc/internals.texi (Symbols): Describe changes in symbol
3947         handling.
3948
3949 1999-06-03  Richard Henderson  <rth@cygnus.com>
3950
3951         * dwarf2dbg.c (dwarf2_gen_line_info): Use section_symbol
3952         instead of doing the work by hand.
3953
3954 1999-06-03  David Mosberger  <davidm@hpl.hp.com>
3955
3956         * dwarf2dbg.c (INITIAL_STATE): New macro encapsulating initial
3957         state of line state-machine.
3958         (struct ls): Collect DWARF2 line state-machine state in new member
3959         SM.  Add member EMPTY_SEQUENCE to keep track if a code sequence
3960         resulted in any DWARF2 directives.
3961         (reset_state_machine): New function.
3962         (out_end_sequence): Ditto.
3963         (dwarf2_gen_line_info): When switching sections or switching to a
3964         lower text address, call out_end_sequence() first to terminate the
3965         previous code sequence as code sequences MUST have monotonically
3966         increasing addresses.
3967         (dwarf2_finish): Call out_end_sequence() instead of open coding it.
3968
3969 1999-06-03  David Mosberger  <davidm@hpl.hp.com>
3970
3971         * as.c (parse_args): Add option -gdwarf2 to allow requesting
3972         DWARF2 debug info (line information only, at this point).
3973         * as.h: Update comment about supported debug formats.
3974         * dwarf2dbg.c, dwarf2dbg.h: New files.
3975         * Makefile.am (GAS_CFILES, HFILES, GENERIC_OBJS): Add them.
3976
3977         * expr.c (operand): Don't use [ for parens if we want an index op.
3978         (op_encoding): Switch [ into O_index, if desired.
3979         (op_rank): Renumber with O_index on bottom.
3980         (expr): If O_index, match closing bracket.
3981         * expr.h (O_index): New.
3982
3983         * read.c (read_a_source_file): Conditionally allow matched "
3984         in lines passed to md_assemble.
3985
3986         * config/obj-elf.c (elf_pseudo_table): Add `common'.
3987
3988 1999-06-03  Ian Lance Taylor  <ian@zembu.com>
3989
3990         Add support for storing local symbols in a small structure to save
3991         memory when assembling large files.
3992         * as.h: Don't include struc-symbol.h.
3993         (symbolS): Add typedef.
3994         * symbols.c: Include struc-symbol.h.
3995         (local_hash): New static variable.
3996         (save_symbol_name): New static function, from symbol_create.
3997         (symbol_create): Call save_symbol_name.
3998         (local_symbol_count): New static variable.
3999         (local_symbol_conversion_count): Likewise.
4000         (LOCAL_SYMBOL_CHECK): Define.
4001         (local_symbol_make): New static function.
4002         (local_symbol_convert): New static function.
4003         (colon): Handle local symbols.  Create local symbol for local
4004         label name.
4005         (symbol_table_insert): Handle local symbols.
4006         (symbol_find_or_make): Create local symbol for local label name.
4007         (symbol_find_base): Check for local symbol.
4008         (symbol_append, symbol_insert): Check for local symbols.
4009         (symbol_clear_list_pointers, symbol_remove): Likewise.
4010         (verify_symbol_chain): Likewise.
4011         (copy_symbol_attributes): Likewise.
4012         (resolve_symbol_value): Handle local symbols.
4013         (resolve_local_symbol): New static function.
4014         (resolve_local_symbol_values): New function.
4015         (S_GET_VALUE, S_SET_VALUE): Handle local symbols.
4016         (S_IS_FUNCTION, S_IS_EXTERNAL, S_IS_WEAK, S_IS_COMMON): Likewise.
4017         (S_IS_DEFINED, S_IS_DEBUG, S_IS_LOCAL, S_GET_NAME): Likewise.
4018         (S_GET_SEGMENT, S_SET_SEGMENT, S_SET_EXTERNAL): Likewise.
4019         (S_CLEAR_EXTERNAL, S_SET_WEAK, S_SET_NAME): Likewise.
4020         (symbol_previous, symbol_next): New functions.
4021         (symbol_get_value_expression): Likewise.
4022         (symbol_set_value_expression): Likewise.
4023         (symbol_set_frag, symbol_get_frag): Likewise.
4024         (symbol_mark_used, symbol_clear_used, symbol_used_p): Likewise.
4025         (symbol_mark_used_in_reloc): Likewise.
4026         (symbol_clear_used_in_reloc, symbol_used_in_reloc_p): Likewise.
4027         (symbol_mark_mri_common, symbol_clear_mri_common): Likewise.
4028         (symbol_mri_common_p): Likewise.
4029         (symbol_mark_written, symbol_clear_written): Likewise.
4030         (symbol_written_p): Likewise.
4031         (symbol_mark_resolved, symbol_resolved_p): Likewise.
4032         (symbol_section_p, symbol_equated_p): Likewise.
4033         (symbol_constant_p): Likewise.
4034         (symbol_get_bfdsym, symbol_set_bfdsym): Likewise.
4035         (symbol_get_obj, symbol_set_obj): Likewise.
4036         (symbol_get_tc, symbol_set_tc): Likewise.
4037         (symbol_begin): Initialize local_hash.
4038         (print_symbol_value_1): Handle local symbols.
4039         (symbol_print_statistics): Print local symbol statistics.
4040         * symbols.h: Include "struc-symbol.h" if not BFD_ASSEMBLER.
4041         Declare new symbols.c functions.  Move many declarations here from
4042         struc-symbol.h.
4043         (SYMBOLS_NEED_BACKPOINTERS): Define if needed.
4044         * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Don't set.
4045         (struct symbol): Move bsym to make it clearly the first field.
4046         Remove TARGET_SYMBOL_FIELDS.
4047         (symbolS): Don't typedef.
4048         (struct broken_word): Remove.
4049         (N_TYPE_seg, seg_N_TYPE): Move to symbol.h.
4050         (SEGMENT_TO_SYMBOL_TYPE, N_REGISTER): Likewise.
4051         (symbol_clear_list_pointers): Likewise.
4052         (symbol_insert, symbol_remove): Likewise.
4053         (symbol_previous, symbol_append): Likewise.
4054         (verify_symbol_chain, verify_symbol_chain_2): Likewise.
4055         (struct local_symbol): Define.
4056         (local_symbol_converted_p, local_symbol_mark_converted): Define.
4057         (local_symbol_resolved_p, local_symbol_mark_resolved): Define.
4058         (local_symbol_get_frag, local_symbol_set_frag): Define.
4059         (local_symbol_get_real_symbol): Define.
4060         (local_symbol_set_real_symbol): Define.
4061         Define.
4062         * write.c (write_object_file): Call resolve_local_symbol_values.
4063         * config/obj-ecoff.h (OBJ_SYMFIELD_TYPE): Define.
4064         (TARGET_SYMBOL_FIELDS): Don't define.
4065         * config/obj-elf.h (OBJ_SYMFIELD_TYPE): Add local field.  If
4066         ECOFF_DEBUGGING, add ECOFF fields.
4067         (ELF_TARGET_SYMBOL_FIELDS, TARGET_SYMBOL_FIELDS): Don't define.
4068         * config/obj-multi.h (struct elf_obj_sy): Add local field.  If
4069         ECOFF_DEBUGGING, add ECOFF fields.
4070         (ELF_TARGET_SYMBOL_FIELDS, TARGET_SYMBOL_FIELDS): Don't define.
4071         (ECOFF_DEBUG_TARGET_SYMBOL_FIELDS): Don't define.
4072         * config/tc-mcore.h: Don't include struc-symbol.h.
4073         (TARGET_SYMBOL_FIELDS): Don't define.
4074         (struct mcore_tc_sy): Define.
4075         (TC_SYMFIELD_TYPE): Define.
4076         * Many files: Use symbolS instead of struct symbol.  Use new
4077         accessor functions rather than referring to symbolS fields
4078         directly.
4079
4080         * read.c (s_mri_common): Don't add in value of line_label.
4081
4082         * config/tc-mips.c (md_apply_fix): Correct parenthesization when
4083         checking for SEC_LINK_ONCE.
4084
4085         * config/tc-sh.h (sh_fix_adjustable): Declare.
4086
4087         * app.c (input_buffer): New static variable.
4088         (app_push): Save saved_input in allocated buffer.
4089         (app_pop): Restored saved_input.
4090         (do_scrub_chars): Change get parameter to take char * and int as
4091         arguments.  Change GET macro to pass input_buffer to get
4092         function.  Don't save input into allocated buffer.
4093         * as.h (do_scrub_chars): Update declaration.
4094         * input-file.c (input_file_get): Change to take char * and int.
4095         Read data into passed in buffer.  Remove static buffer.
4096         * read.c (scrub_from_string): Change to take char * and int.  Copy
4097         data into passed in buffer.
4098
4099         * hash.h: Neaten.  Declare hash_traverse.
4100         * hash.c: Complete rewrite based on BFD hashing code.
4101         * gasp.c (chunksize): New variable.
4102         * macro.c (macro_expand_body): Call hash_jam with NULL rather than
4103         hash_delete.
4104
4105 1999-05-28  Nick Clifton  <nickc@cygnus.com>
4106
4107         * config/tc-arm.c (md_apply_fix3): Add pipeline offset into reloc
4108         addend unless the target uses an old ABI.
4109
4110 Mon May 24 13:36:55 1999  Doug Evans  <devans@canuck.cygnus.com>
4111
4112         -Wchar-subscripts cleanup
4113         * listing.c (listing_newline): Use unsigned char variable, so
4114         calls to isascii,iscntrl are correct.
4115         * atof-generic.c (atof_generic): Cast arg to isdigit, et. al. with
4116         (unsigned char).
4117         * ecoff.c (ecoff_directive_ent,ecoff_stab): Ditto.
4118         * config/obj-elf.c (obj_elf_vtable_inherit): Ditto.
4119         * config/tc-mips.c (mips_ip,mips16_ip): Ditto.
4120         (my_getSmallExpression,get_number,s_mips_ent): Ditto.
4121
4122 1999-05-28  Torbjorn Granlund  <tege@matematik.su.se>
4123
4124         * config/tc-m68k.c (m68k_ip): Check for disallowed index register
4125         width for Coldfire.
4126         (arch_coldfire_p): New #define.
4127         (m68k_ip, m68k_init_after_args): Use arch_coldfire_p.
4128
4129 1999-05-28  Linus Nordberg  <linus.nordberg@canit.se>
4130
4131         * config/tc-m68k.c (install_operand): Add places `n', `o'.
4132
4133         * config/tc-m68k.c (m68k_ip): Add formats `E', `G', `H'.
4134         (install_operand): Add place `N'.
4135         (init_table): Add registers ACC, MACSR, MASK.
4136
4137         * config/m68k-parse.h (m68k_register): Add ACC, MACSR, MASK.
4138
4139         * config/tc-m68k.c: Change mcf5200 --> mcf.
4140         (archs): Add mcf5206e, mcf5307.
4141         (m68k_ip): Add format `u'.
4142         (install_operand): Add place `m', `M', `h'.
4143         (init_table): Add upper/lower registers.
4144
4145         * config/m68k-parse.h (m68k_register): Add upper/lower registers.
4146
4147 1999-05-28  Martin Dorey  <mdorey@madge.com>
4148
4149         * config/tc-i960.c: Several minor changes to add ELF and
4150         BFD_ASSEMBLER support.
4151         * config/tc-i960.h: Likewise.
4152         * configure.in (i960-*-elf*): New target.
4153         * aclocal.m4, configure: Rebuild.
4154
4155 1999-05-25  Alan Modra  <alan@spri.levels.unisa.edu.au>
4156
4157         * config/tc-i386.c (md_apply_fix3): Only do 1999-05-17 fx_pcrel
4158         reloc changes when defined(BFD_ASSEMBLER).
4159
4160 1999-05-17  Alan Modra  <alan@spri.levels.unisa.edu.au>
4161
4162         * config/tc-i386.c (tc_gen_reloc): Remove F and MAP macros.
4163
4164         * write.c (write_print_statistics): Output to file, not stderr.
4165
4166         * expr.c (generic_bignum_to_int32,64): Prototype.
4167
4168         * read.c (s_lcomm_internal, sizeof_sleb128, sizeof_uleb128,
4169         output_sleb128, output_uleb128, output_big_sleb128,
4170         output_big_uleb128, output_big_leb128): Prototype.
4171         (output_big_sleb128, output_big_uleb128): Make inline.
4172         (output_big_leb128): Remove inline
4173
4174         From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4175         * config/tc-i386.c (md_apply_fix3): Convert BFD_RELOC_16 with
4176         fx_pcrel set to BFD_RELOC_16_PCREL.  Similarly for BFD_RELOC_8.
4177         Handle BFD_RELOC_16_PCREL and BFD_RELOC_8_PCREL.  Return changed
4178         value for correct overflow check in write.c:fixup_segment.
4179         * write.c (fixup_segment): Move bitfield overflow checks to after
4180         the md_apply_fix call.
4181         * config/obj-coff.c (fixup_segment): Likewise.
4182         * doc/internals.texi (CPU backend): Mention md_apply_fix modifying
4183         valueT *val argument.
4184
4185 Fri May 14 10:52:13 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
4186
4187         * config/atof-ieee.c (gen_to_words): Correctly round a
4188         denormalized number.  Fix off-by-one in range checking for
4189         exponent in a denormal.
4190
4191 1999-05-10  Nick Clifton  <nickc@cygnus.com>
4192
4193         * config/tc-mcore.c (parse_reg): Accept 'sp' as a valid register
4194         name.
4195
4196 Thu May 13 09:46:59 1999  Joel Sherrill (joel@OARcorp.com)
4197
4198         * configure.in (i386-*-rtemself*, sh-*-rtemself*): New targets.
4199
4200 1999-05-12  Alan Modra  <alan@spri.levels.unisa.edu.au>
4201
4202         * config/tc-i386.h (InvMem): New flag.  Add to AnyMem.
4203         (ReverseRegRegmem): Remove.
4204         (ImmExt): New flag.  Renumber some of the opcode_modifier bits.
4205         * config/tc-i386.c (md_assemble): Test for PIII SIMD and AMD
4206         3DNow! via ImmExt opcode_modifier.  Remove ReverseRegRegmem
4207         kludge.
4208
4209         From  Doug Ledford <dledford@redhat.com>
4210         * config/tc-i386.h (RegXMM): New for P/III.
4211         * config/tc-i386.c: Add support for P/III.
4212
4213 Sat May  8 23:28:50 1999  Richard Henderson  <rth@cygnus.com>
4214
4215         * config/tc-ppc.c (md_parse_option): Recognize -mppc64bridge.
4216         (md_begin): Allow ppc32 insns in ppc64bridge mode.
4217         (ppc_insert_operand): Accept SIGNOPT in ppc64 mode.
4218
4219 Thu May  6 23:13:39 1999  Richard Henderson  <rth@cygnus.com>
4220
4221         * config/tc-i386.c (i386_immediate): Skip whitespace before
4222         complaining about junk after expression.
4223         (i386_displacement): Likewise.
4224
4225 Thu May  6 19:50:14 1999  Richard Henderson  <rth@cygnus.com>
4226
4227         * symbols.c (symbol_find_base): Use memcpy instead of strcpy.
4228         Don't copy before downcaseing.
4229
4230 1999-05-05  Catherine Moore  <clm@cygnus.com>
4231
4232         * tc-m68k.c: Include elf/m68k.h.
4233         (m68k_elf_final_processing): New routine.
4234         * tc-m68k.h (elf_tc_final_processing m68k_elf_final_processing):
4235         Define.
4236
4237 Mon May  3 10:26:03 1999  Jeffrey A Law  (law@cygnus.com)
4238
4239         * config/tc-hppa.c (md_apply_fix): Handle 22 bit fmt insn like a
4240         17 bit fmt insn.
4241
4242 1999-04-30  Nick Clifton  <nickc@cygnus.com>
4243
4244         * config/tc-mcore.c (mcore_s_section): Dump literals before
4245         changing section.
4246
4247 1999-04-29  Nick Clifton  <nickc@cygnus.com>
4248
4249         * config/tc-mcore.c (md_apply_fix3): Insert reloc addend into insn
4250         for COFF/PE port.
4251
4252 Mon Apr 26 12:34:37 1999  Doug Evans  <devans@canuck.cygnus.com>
4253
4254         * config/tc-fr30.h (TC_FIX_TYPE): Delete, cgen fields moved to write.h.
4255         (TC_INIT_FIX_DATA): Delete.
4256         * config/tc-m32r.h (TC_FIX_TYPE): Delete, cgen fields moved to write.h.
4257         (TC_INIT_FIX_DATA): Delete.
4258         * write.h (struct fix): New member fx_cgen, ifdef USING_CGEN.
4259         * write.c (fix_new_internal): Initialize fx_cgen member.
4260         * cgen.c (gas_cgen_record_fixup,gas_cgen_record_fixup_exp): Update.
4261         (gas_cgen_md_apply_fix3): Update.
4262         * config/tc-m32r.c (md_cgen_lookup_reloc): Update.
4263         (md_cgen_record_fixup_exp): Update.
4264         (FX_OPINFO_R_TYPE): Update.
4265
4266         * frags.c (frag_var,frag_variant): Initialize fr_cgen here.
4267         * config/tc-fr30.h (TC_FRAG_INIT): Delete.
4268         * config/tc-m32r.h (TC_FRAG_INIT): Delete.
4269         * frags.h (struct frag): Make opindex, opinfo ints.
4270
4271         * config/tc-fr30.c (FX_OPINFO_R_TYPE): Delete, unused.
4272
4273 1999-04-26  Tom Tromey  <tromey@cygnus.com>
4274
4275         * aclocal.m4, configure: Updated for new version of libtool.
4276
4277 1999-04-22  Nick Clifton  <nickc@cygnus.com>
4278
4279         * config/tc-mcore.c (md_apply_fix3): Renamed function from
4280         md_apply_fix.
4281         (md_apply_fix3): Do not fix up absolute relocations against
4282         symbolic values.
4283
4284         * config/tc-mcore.h (MD_APPLY_FIX3): Define.
4285
4286 1999-04-20  Nick Clifton  <nickc@cygnus.com>
4287
4288         * config/tc-mcore.c (md_pseudo_table): Add intercepts for section
4289         changes and data-in-text directives.
4290         (mcore_cons): New function: intercept cons() operations.
4291         (mcore_float_cons): New function: intercept float_cons()
4292         operations.
4293         (mcore_stringer): New function: intercept stringer() operations.
4294
4295 1999-04-18  Ian Lance Taylor  <ian@zembu.com>
4296
4297         * obj.h (struct format_ops): Change generate_asm_lineno field to
4298         take no parameters.
4299         * config/obj-ecoff.h (OBJ_GENERATE_ASM_LINENO): Don't define.
4300
4301         * config/tc-alpha.c (find_opcode_match): Add default case to
4302         switch.
4303         (find_macro_match): Likewise.
4304         (load_expression): Parenthesize && within ||.
4305
4306         * config/tc-alpha.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
4307
4308 1999-04-17  Nick Clifton  <nickc@cygnus.com>
4309
4310         * config/tc-mcore.c (md_pseudo_table): Add overrides for .bss
4311         .text .data .section pseudo ops.
4312         (mcore_s_section): New function.  Dump lits before changing secs.
4313         (mcore_s_text): New function.  Dump lits before changing secs.
4314         (mcore_s_data): New function.  Dump lits before changing secs.
4315
4316 1999-04-16  Gavin Romig-Koch  <gavin@cygnus.com>
4317
4318         * config/tc-mips.c (mips_32bitmode): New.
4319         (md_begin): Set mips_32bitmode if needed.
4320         (mips_elf_final_processing): Don't set EF_MIPS_ARCH.
4321         Set EF_MIPS_32BITMODE.
4322
4323 Fri Apr 16 12:26:39 1999  Bob Manson  <manson@charmed.cygnus.com>
4324
4325         * config/obj-coff.c (c_section_symbol): Fix typo in previous
4326         change.
4327
4328 1999-04-16  Nick Clifton  <nickc@cygnus.com>
4329
4330         * config/tc-mcore.h (LOCAL_LABELS_FB): Define to 1.
4331
4332 Thu Apr 15 16:52:09 1999  Jeffrey A Law  (law@cygnus.com)
4333
4334         * tc-hppa.c (pa_get_absolute_exression): Try to handle "5 %r3"
4335         expressions correctly.
4336
4337
4338 1999-04-15  Gavin Romig-Koch  <gavin@cygnus.com>
4339
4340         * config/tc-mips.c (mips_elf_final_processing): Set EF_MIPS_ARCH.
4341
4342 Mon Apr 12 23:45:07 1999  Jeffrey A Law  (law@cygnus.com)
4343
4344         * tc-hppa.c (pa_ip, case '3'): New case for PA2.0 fmpyfadd
4345         and fmpynfadd instructions.
4346
4347 1999-04-11  Richard Henderson  <rth@cygnus.com>
4348
4349         * as.h (environ): Declare it, if needed.
4350         * as.c (dump_statistics): Don't declare environ.
4351         * configure.in (environ): Detect declaration.
4352         * configure, config.in: Rebuild
4353
4354         * config/tc-i386.c (i386_immediate): Accept @GOT relocations.
4355         (i386_displacement): Allocate enough space for replacement buffer.
4356         Clean up replacement buffer initialization.
4357
4358 1999-04-11  Bob Manson <manson@charmed.cygnus.com>:
4359
4360         * subsegs.c (section_symbol): Don't create a new symbol if one
4361         already exists; instead, use the existing one, but set its segment
4362         and frag data if it hasn't already been defined.
4363         * config/obj-coff.c (c_section_symbol): Likewise.
4364
4365 Sat Apr 10 20:10:02 1999  Richard Henderson  <rth@cygnus.com>
4366
4367         * tc-alpha.c (load_expression): Call as_bad instead of abort.
4368
4369 1999-04-08  Nick Clifton  <nickc@cygnus.com>
4370
4371         * config/tc-mcore.c: New File: Support routines for MCore
4372         assembler.
4373         * config/tc-mcore.h: New File: Definitions for MCore assembler.
4374         * config/obj-coff.c: Add support for mcore-pe target.
4375
4376         * Makefile.am: Add support for MCore targets.
4377         * Makefile.in: Regenerate.
4378         * configure.in: Add support for MCore targets.
4379         * configure: Regenerate.
4380
4381         * doc/all.texi: Set MCORE.
4382         * doc/as.texinfo: Document MCore specific command line options.
4383
4384         * write.h: Prevent multiple inclusion.
4385
4386 1999-04-06  Ian Lance Taylor  <ian@zembu.com>
4387
4388         * asintl.h (LC_MESSAGES): Never define.
4389         * as.c (main): Don't pass LC_MESSAGES to setlocale if the system
4390         does not define it.
4391         * gasp.c (main): Don't pass LC_MESSAGES to setlocale if the system
4392         does not define it.
4393
4394         * Makefile.am (m68k-parse.c): If configuring in the source
4395         directory, copy m68k-parse.y into the local directory before
4396         running ylwrap, to remove spurious differences when generating
4397         snapshots.
4398         * Makefile.in: Rebuild.
4399
4400         * config/tc-sparc.h (md_do_align): Just allocate the number of
4401         bytes necessary, rather than always allocating 1024.
4402
4403 1999-04-04  Ian Lance Taylor  <ian@zembu.com>
4404
4405         * listing.c (listing_newline): Add cast to avoid warning.
4406         * read.c (generate_lineno_debug): Add cases to switch.  Reindent.
4407         * config/tc-i386.c (i386_scale): Add return value.
4408         (build_displacement_string): Remove unused local temp_disp2.
4409         (i386_intel_memory_operand): Add parentheses to avoid warning.
4410         (i386_intel_operand): Remove unused local end_of_operand_string.
4411         (i386_operand): Remove unused local operand_modifier.
4412         (i386_operand): Add parens to avoid warning.
4413
4414 1999-04-04  Don Bowman <don@pixsci.com>
4415
4416         * configure.in: Add mips*-*-vxworks* target; have it define
4417         MIPS_STABS_ELF.
4418         * configure, config.in: Rebuild.
4419
4420 1999-03-31  Nick Clifton  <nickc@cygnus.com>
4421
4422         * configure.in (emulations): Add support for arm-epoc-pe.
4423         * configure: Regenerate.
4424         * config/te-epoc-pe.h: New file.  Define macros specific to
4425         arm-epoc-pe target.
4426         * config/tc-arm.h: Select epoc-pe-arm target format if configured
4427         for arm-epoc-pe target.
4428
4429 Mon Mar 29 10:15:40 CST 1999  Catherine Moore  <clm@cygnus.com>
4430
4431         * tc-mips.c (md_apply_fix):  Adjust value for linkonce sections.
4432
4433 Wed Mar 24 14:11:10 1999  Jeffrey A Law  (law@cygnus.com)
4434
4435         * tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Clean up code to
4436         detect ",n" without a condition.
4437         (pa_parse_neg_cmpsub_cmpltr): Likewise.
4438
4439
4440 Tue Mar 23 11:28:23 1999  Jeffrey A Law  (law@cygnus.com)
4441
4442         * tc-hppa.c (pa_ip, case '~'): The condition for a branch on bit
4443         instruction is encoded with one bit.
4444
4445
4446 1999-03-23  Ian Lance Taylor  <ian@zembu.com>
4447
4448         * doc/internals.texi (CPU backend): Mention that
4449         line_separator_chars should not include newline.  From thi
4450         <ttn@mingle.glug.org>.
4451
4452 1999-03-22  Doug Evans  <devans@casey.cygnus.com>
4453
4454         * config/tc-fr30.c (md_begin): Update call to fr30_cgen_cpu_open.
4455         * config/tc-m32r.c (md_begin): Update call to m32r_cgen_cpu_open.
4456
4457 Sun Mar 21 18:08:18 1999  Richard Henderson  <rth@cygnus.com>
4458
4459         * tc-alpha.c (md_assemble): Allow '6' in an opcode.
4460
4461 Thu Mar 18 10:55:30 1999  Jeffrey A Law  (law@cygnus.com)
4462
4463         * tc-hppa.c (pa_ip, case 'a'): Do not call pa_parse_..._cmpsub_cmpltr.
4464
4465
4466 Thu Mar 18 02:30:07 1999  Jeffrey A Law  (law@cygnus.com)
4467
4468         * tc-hppa.c (pa_ip, case 'd'): Do not allow ",n".
4469
4470 1999-03-15  Martin Hunt  <hunt@cygnus.com>
4471
4472         * app.c (do_scrub_begin): Change '-' back to a symbol char
4473         so we can use multiple opcodes on a line again.
4474
4475         * config/tc-d30v.c: By default, warn if a symbol has
4476         the same name as a register.  Plus some minor
4477         updates from the branch.
4478
4479 1999-03-13  Nick Clifton  <nickc@cygnus.com>
4480
4481         * config/tc-d30v.c (md_apply_fix3): Handle BFD_RELOC_8,
4482         BFD_RELOC_16 and BFD_RELOC_64.
4483
4484 1999-03-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
4485
4486         * expr.c (expr): Add missing else.
4487
4488 1999-03-12  Nick Clifton  <nickc@cygnus.com>
4489
4490         * config/tc-arm.c (md_apply_fix3): Improve error message.
4491
4492 1999-03-11  Doug Evans  <devans@casey.cygnus.com>
4493
4494         * Makefile.am (CPU_TYPES): Add fr30.
4495         (cgen.o): Add $(CGEN_CPU_PREFIX)-desc.h dependency.
4496         (fr30,m32r dependencies): Update.
4497         * Makefile.in: Rebuild.
4498
4499         * cgen.c (gas_cgen_record_fixup): Update use of operand->type.
4500         (gas_cgen_record_fixup_exp): Ditto.
4501         (gas_cgen_finish_insn): Call cgen_operand_lookup_by_num.
4502         (gas_cgen_md_apply_fix3): Ditto.  Update call to set_vma_operand.
4503         * config/tc-fr30.c (md_begin): Update call to fr30_cgen_cpu_open.
4504         (md_cgen_lookup_reloc): Update use of operand->type.
4505         * config/tc-m32r.c (md_begin): Update call to fr30_cgen_cpu_open.
4506         (md_convert_frag): Call cgen_operand_lookup_by_num.
4507         (md_cgen_lookup_reloc): Update use of operand->type.
4508         (m32r_cgen_record_fixup_exp): Ditto.
4509
4510 1999-03-09  Jim Blandy  <jimb@zwingli.cygnus.com>
4511
4512         * config/tc-mips.c (md_show_usage): Fix message.
4513
4514 1999-03-03  Nick Clifton  <nickc@cygnus.com>
4515
4516         * doc/c-arm.texi (ARM Syntax): Document new command line switches
4517         and LDR reg,=<expr> instruction.
4518
4519         * config/tc-arm.c: Add support for -mcpu=arm810, -mcpu=arm9 and
4520         -mcpu=arm9tdmi.
4521
4522 Fri Feb 19 09:36:30 1999  Ian Lance Taylor  <ian@cygnus.com>
4523
4524         * doc/c-arm.texi (ARM-Chars): Fix typo in use of '@'.
4525
4526 1999-02-17  Nick Clifton  <nickc@cygnus.com>
4527
4528         This patch was created by: Scott Bambrough
4529         <scottb@corelcomputer.com>
4530
4531         * app.c:
4532           Special cased '@' character.  The '@' character is used as the
4533           ARM assembler comment character, as a special character
4534           and in ELF .symver pseudo-op's, and as a special character in
4535           .type and .section pseudo-ops.
4536         (symver_pseudo): New static variable.
4537         (symver_state): New static variable.
4538         (struct app_save): Add field 'symver_state'.
4539         (app_push): Save global symver_state int struct app_save.
4540         (app_pop): Restore global symver_state from struct app_save.
4541         (do_scrub_chars): Special case handling of '@' character in
4542         .symver pseudo-ops.
4543
4544         * configure.in: Modified to recognize armv* uname syntax from ARM
4545         Linux kernel.
4546         * configure: Regenerated.
4547
4548         * config/obj-elf.c (obj_elf_section): Allow '%' as well as '@' as
4549         a prefix to the section's type.
4550         (obj_elf_type): Allow '%' as well as '@' and '#' as prefixes to
4551         the type's typename.
4552
4553         * config/tc-arm.h: Add support for PIC generation:
4554         (pic_code): New boolean.
4555         (obj_relocate_extern): Define.
4556         (TC_RELOC_RTSYM_LOC_FIXUP): Define
4557         (TC_CONS_FIX_NEW): Define.
4558         (tc_fix_adjustable): Define.
4559         (GLOBAL_OFFSET_TABLE_NAME): Define.
4560
4561         * config/tc-arm.c: Add support for PIC generation:
4562         (line_seperator_chars): Allow ';' as a seperator for Linux.
4563         (is_immediate_prefix): New macro.
4564         (arm_parse_reloc): New function.
4565         (s_arm_elf_cons): New function.
4566         (do_branch): Special case for BFD_RELOC_ARM_PLT32.
4567         (md_undefined_symbol): Special case handling for the Global Offset
4568           Table's symbol.
4569         (md_apply_fix3): Handle PIC relocs.
4570         (tc_gen_reloc): Handle PIC relocs.
4571         (md_parse_option): Add support for '-k' command line switch to
4572           enable PIC generation.
4573         (cons_fix_new_arm): New function.
4574         (s_arm_elf_cons): New function.
4575
4576 Tue Feb 16 16:31:53 1999  Ian Lance Taylor  <ian@cygnus.com>
4577
4578         * configure.in: Add comments for uses of AC_DEFINE.
4579         * acinclude.m4: Likewise.
4580         * acconfig.h: Remove.
4581         * aclocal.m4: Rebuild.
4582         * configure: Rebuild.
4583         * Makefile.in: Rebuild.
4584         * config.in: Rebuild.
4585
4586 1999-02-15  Jim Lemke  <jlemke@cygnus.com>
4587
4588         * config/tc-mips.c (mips_ip: case 'o'): Fix assertion failure for
4589         non-constant offset from a base register.
4590
4591 1999-02-14  Ken Raeburn  <raeburn@raeburn.org>
4592
4593         * config/tc-alpha.c (md_show_usage): Put \ before newline in
4594         strings always.
4595
4596 Sat Feb 13 14:10:10 1999  Richard Henderson  <rth@cygnus.com>
4597
4598         * config/tc-alpha.c (cpu_types): Enable EV6 PALcode with -m21264.
4599         (emit_insn): Look for pc-relative and no-overflow specifiers on
4600         internal relocation types.
4601
4602 1999-02-13  Jim Blandy  <jimb@zwingli.cygnus.com>
4603
4604         * doc/c-mips.texi (MIPS Opts): Updated list of -mNNNN and
4605         -mcpu=NNNN flags.
4606
4607         * config/tc-mips.c: Remove all the mips_NNNN variables; just use
4608         mips_cpu instead.
4609         (mips_4650, mips_4010, mips_4100): Variables removed.
4610         (hilo_interlocks, gpr_interlocks, append_insn, macro_build, macro,
4611         macro2, mips16_macro, mips_ip): Test mips_cpu, not the mips_NNNN
4612         variables.
4613         (md_begin): Don't bother initializing the mips_NNNN variables;
4614         mips_cpu is set, and that's good enough now.
4615         (md_parse_option): Have the -mNNNN options set mips_cpu instead of
4616         the mips_NNNN variable.  The -no-mNNNN flags are now no-ops.
4617         (show): New function, to handle wrapping in the CPU lists.
4618         (md_show_usage): Update lists of -mcpu and -mNNNN switches.
4619
4620 Sat Feb 13 00:17:26 1999  Richard Henderson  <rth@cygnus.com>
4621
4622         * config/tc-i386.c (i386_intel_operand): Ignore `SHORT' rather
4623         than treat as an immediate specifier.
4624
4625 Thu Feb 11 16:18:31 1999  Richard Henderson  <rth@cygnus.com>
4626
4627         * config/tc-i386.c: Prototype many functions.
4628         (set_intel_syntax): Accept `prefix'/`noprefix' specifiers.
4629         (i386_immediate): Remove unused second argument.
4630         (i386_intel_operand): Fix i386_is_reg typo.
4631         (i386_operand): Use allow_naked_reg.
4632         (output_invalid): Make operand int for K&R.
4633
4634 Thu Feb 11 11:21:02 1999  Ian Lance Taylor  <ian@cygnus.com>
4635
4636         * Makefile.am (EXTRA_as_new_SOURCES): Uncomment--fixed by automake
4637         patch.
4638         * Makefile.in: Rebuild.
4639
4640 1999-02-09  Doug Evans  <devans@casey.cygnus.com>
4641
4642         * Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h.
4643         (cgen.o): Ditto.
4644         (EXTRA_as_new_SOURCES): Comment out.
4645         (.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
4646         * Makefile.in: Rebuild.
4647         * doc/Makefile.in: Rebuild.
4648         * configure.in: Require autoconf 2.13.  Redo using_cgen handling.
4649         Delete call to AM_CYGWIN32.  Replace AM_EXEEXT with AC_EXEEXT.
4650         (AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
4651         * configure: Rebuild.
4652         * aclocal.m4: Rebuild.
4653         * config.in: Rebuild.
4654         * cgen.c: Include cgen-desc.h, not cgen-opc.h.
4655         (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
4656         (gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
4657         CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
4658         CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
4659         (gas_cgen_record_fixup): Remove unnecessary != 0 test.
4660         (gas_cgen_record_fixup_exp): Ditto.
4661         (gas_cgen_finish_insn): Ditto.  Refer to operand table via cpu
4662         descriptor, not global variable.
4663         (gas_cgen_md_apply_fix3): Refer to operand_table via cpu
4664         descriptor, not global variable.  Refer to insert_operand handler
4665         via cpu descriptor, not global function.
4666         * cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
4667         * config/tc-fr30.c: Include opcodes/fr30-desc.h.
4668         (*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
4669         CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
4670         Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
4671         * config/tc-m32r.c: Ditto.
4672         (assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
4673         (md_assemble): Ditto.
4674         (md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
4675
4676 1999-02-09  Nick Clifton  <nickc@cygnus.com>
4677
4678         * config/tc-arm.c (md_apply_fix3): Fix handling of label1 - label2
4679         relocations for ELF targets.
4680
4681 1999-02-08  Nick Clifton  <nickc@cygnus.com>
4682
4683         * configure.in: Add support for StrongARM target.
4684         * configure: Regenerate.
4685
4686 1999-02-05  Nick Clifton  <nickc@cygnus.com>
4687
4688         * config/tc-arm.h: Tidy OBJ_ELF and OBJ_COFF definitions.
4689
4690         * config/tc-arm.c (md_apply_fix3): Fix BFD_RELOC_ARM_PCREL_BRANCH
4691         for COFF ports.
4692
4693 Wed Feb  3 11:35:47 1999  Richard Henderson  <rth@cygnus.com>
4694
4695         * config/tc-alpha.c (md_show_usage): Document pca56 and ev6 options.
4696
4697 Mon Feb  1 20:37:30 1999  Catherine Moore  <clm@cygnus.com>
4698
4699         * config/tc-i386.h (LONG_DOUBLE_MNEM_SUFFIX):  Define.
4700         (INTEL_DWORD_MNEM_SUFFIX):  Define.
4701         (BYTE_PTR):  Define.
4702         (WORD_PTR):  Define.
4703         (DWORD_PTR):  Define.
4704         (XWORD_PTR):  Define.
4705         (SHORT):  Define.
4706         (OFFSET_FLAT):  Define.
4707         (FLAT):  Define.
4708         (NONE_FOUND):  Define.
4709         (No_dSuf):  Define.
4710         (No_xSuf):  Define.
4711         * config/tc-i386.c  (set_intel_syntax):  New routine.
4712         (intel_syntax):  Declare.
4713         (allow_naked_reg):  Declare.
4714         (md_pseudo_table):  Support .intel_syntax and .att_syntax.
4715         (intel_float_operand):  New routine.
4716         (md_assemble):  Handle INTEL_DWORD_MNEM_SUFFIX.
4717         Handle brackets as well as parens.  Call i386_intel_operand for
4718         intel syntax.  Reverse operands if appropriate.  Handle new
4719         suffixes.  Handle movzx and movsx.
4720         (i386_is_reg):  New routine.
4721         (i386_immediate):  New routine.
4722         (i386_scale):  New routine.
4723         (i386_displacement):  New routine.
4724         (i386_operand_modifier):  New routine.
4725         (build_displacement_string):  New routine.
4726         (i386_parse_seg):  New routine.
4727         (i386_intel_memory_operand):  New routine.
4728         (i386_intel_operand):  New routine.
4729         (i386_operand):  Call i386_displacement, i386_immediate,
4730         i386_scale, etc.  instead of handling inline.
4731         (parse_register):  Handle registers without prefix.
4732
4733 Mon Feb  1 12:24:58 1999  Catherine Moore  <clm@cygnus.com>
4734
4735         * configure:  Regenerate.
4736         * configure.in (arm-*-oabi):  New.
4737         (thumb-*-oabi):  New.
4738         * config/tc-arm.c (target_oabi):  Declare.
4739         (md_apply_fix3): Support REL relocs.
4740         (md_parse_option):  Handle -oabi.
4741         (elf32_arm_target_format):  New routine.
4742         (md_longopts):  Add OPTION_OABI.
4743         * config/tc-arm.h:  Redefine TARGET_FORMAT.
4744
4745
4746 1999-01-28  Nick Clifton  <nickc@cygnus.com>
4747
4748         * write.c (write_relocs): Handle out of range error.
4749
4750         * config/tc-fr30.c (fr30_fix_adjustable): New function.
4751         (fr30_force_relocation): Default to 0.
4752
4753         * config/tc-fr30.h (obj_fix_adjustable): Define.
4754         (TC_FORCE_RELOCATION): Define.
4755
4756         * cgen.c (gas_cgen_md_apply_fix3): Do not apply fixes to VTABLE
4757         relocs.
4758
4759 1999-01-16  Nick Clifton  <nickc@cygnus.com>
4760
4761         * config/tc-d30v.c (write_2_short): Do not generate a sequential
4762         merge of two instructions if the left instruciton kills the right.
4763
4764 1999-01-11  Doug Evans  <devans@casey.cygnus.com>
4765
4766         * Makefile.in: Regenerate.
4767         * configure.in: Redo test for using cgen.
4768         * configure: Regenerate.
4769
4770 1999-01-09  Nick Clifton  <nickc@cygnus.com>
4771
4772         * config/obj-coff.h (obj_adjust_symtab): Prevent accidental
4773         redefinition of this macro.
4774
4775 Tue Jan  5 21:58:03 1999  Doug Evans  <devans@canuck.cygnus.com>
4776
4777         * config/tc-mips.c (mips_frob_file): Disable "Unmatched %hi reloc"
4778         warning.
4779
4780 1998-12-29  Gavin Romig-Koch  <gavin@cygnus.com>
4781
4782         * config/tc-mips.c (append_insn): For mips16, insert a nop between
4783         a read of HI or LO and an immediatly following branch.
4784
4785 1998-12-29  Gavin Romig-Koch  <gavin@cygnus.com>
4786
4787         * config/tc-mips.c (md_begin): Another correction to the setting of
4788         mips_eabi64.
4789
4790 1998-12-23  Gavin Romig-Koch  <gavin@cygnus.com>
4791
4792         * config/tc-mips.c (md_begin): Correct type-o in setting of
4793         mips_eabi64.
4794
4795 1998-12-21  Nick Clifton  <nickc@cygnus.com>
4796
4797         * config/tc-m32r.c (md_assemble): Emit a NOP after a relaxable 16
4798         bit insn when optimizing, so that parallelised instructions will
4799         start on a 32 bit boundary.
4800
4801 1998-12-19  Gavin Romig-Koch  <gavin@cygnus.com>
4802
4803         * config/tc-mips.c (mips_eabi64): New.
4804         (md_begin): Set mips_eabi64.
4805         (mips_elf_final_processing): Use it.
4806
4807 1998-12-18  Gavin Romig-Koch  <gavin@cygnus.com>
4808
4809         * config/tc-mips.c (mips_elf_final_processing):
4810         Correct setting of ABI in e_flags.
4811
4812 Wed Dec 16 16:17:22 1998  Dave Brolley  <brolley@cygnus.com>
4813
4814         * config/tc-fr30.c (md_assemble): Warn about invalid instructions
4815         in delay slots.
4816
4817 1998-12-16  Gavin Romig-Koch  <gavin@cygnus.com>
4818
4819         * config/tc-mips.c (md_begin,md_parse_option): Handle vr4111.
4820
4821 1998-12-15  Doug Evans  <devans@casey.cygnus.com>
4822
4823         * cgen.c (gas_cgen_md_apply_fix3): Mark as an error, rather than a
4824         warning, values that don't fit in the field.
4825
4826 1998-12-15  Gavin Romig-Koch  <gavin@cygnus.com>
4827
4828         * config/tc-mips.c (mips_abi_string): New.
4829         (md_parse_option,md_longopts): Add mabi.
4830         (mips_elf_final_processing): Set e_flags based on mabi flag.
4831
4832 1998-12-15  Gavin Romig-Koch  <gavin@cygnus.com>
4833
4834         * config/tc-mips.c (md_parse_option): Handle vr4111.
4835
4836 98-12-11  Ken Raeburn  <raeburn@cygnus.com>
4837
4838         * config/tc-h8300.c (build_bytes): Change message given if the
4839         instruction requires H8/300H mode and we're not in Hmode, to
4840         suggest that it may be the operand modes that are the problem, not
4841         necessarily the opcode.
4842
4843 1998-12-10  Nick Clifton  <nickc@cygnus.com>
4844
4845         * config/tc-fr30.c: Add line separator character.
4846
4847 Tue Dec  8 19:51:50 1998  Mark Klein  <mklein@dis.com>
4848
4849         * configure.in (hppa-*-mpeix*): New target.
4850         * config/obj-som.h (obj_som_compiler): Declare.
4851         * config/obj-som.c (compiler_seen): New static variable.
4852         (obj_som_compiler): New function.
4853         * config/tc-hppa.c: Update tc_data uses for change to bfd/som.h.
4854         (md_pseudo_table): Add "compiler" if OBJ_SOM.
4855         (pa_type_args): Set hppa_priv_level.
4856         (pa_compiler): New static function if OBJ_SOM.
4857         * configure: Rebuild.
4858
4859 Tue Dec  8 15:00:50 1998  Ian Lance Taylor  <ian@cygnus.com>
4860
4861         * read.c (output_leb128): Don't mark as inline.
4862
4863 1998-12-08  Andrew MacLeod  <amacleod@cygnus.com>
4864
4865         * config/tc-ppc.c (ppc_vbyte): Prototype and new function for
4866         AIX .vbyte unaligned data support.
4867         (md_pseudo_table): Add 'vbyte' to list of valid pseudos.
4868         (ppc_elf_validate_fix): Add eh_frame to list of ELF relocatable
4869         sections.
4870
4871 1998-12-07  Nick Clifton  <nickc@cygnus.com>
4872
4873         * config/tc-d30v.c (md_assemble, do_assemble): Improve erroneous
4874         input handling.
4875
4876 Mon Dec  7 09:48:34 1998  Catherine Moore  <clm@cygnus.com>
4877
4878         * config/tc-arm.c (elf32_arm_force_relocation):  Check for
4879         BFD_RELOC_ARM_PCREL_BRANCH.
4880
4881 Sun Dec  6 12:46:36 1998  Ian Lance Taylor  <ian@cygnus.com>
4882
4883         * configure.in: Define TARGET_BYTES_{BIG,LITTLE}_ENDIAN after
4884         checking the target type.
4885         (mips-dec-bsd*): Set endian to little.
4886         * configure: Rebuild.
4887
4888         COFF weak symbol support, based on patches from Mark Elbrecht
4889         <snowball3@usa.net>:
4890         * config/obj-coff.h (S_IS_WEAK): Define if not BFD_ASSEMBLER.
4891         * config/obj-coff.c (obj_coff_weak): New static function.
4892         (obj_coff_endef) [both versions]: Handle weak symbols.
4893         (coff_frob_symbol): Likewise.
4894         (yank_symbols): Likewise.
4895         (obj_pseudo_table): Add "weak".
4896
4897         * configure.in (m68k-*-gnu*): New target.  From Aymeric Vincent
4898         <aymeric.vincent@emi.u-bordeaux.fr>.
4899         * aclocal.m4: Rebuild with current tools.
4900         * configure: Rebuild.
4901
4902         * config/tc-alpha.c (emit_ldgp): Give an error message rather than
4903         an assertion failure for a case we can't handle when OBJ_ECOFF.
4904
4905         * expr.c (operator): And with 0xff to avoid problems with signed
4906         char.
4907
4908 1998-12-03  Nick Clifton  <nickc@cygnus.com>
4909
4910         * config/tc-fr30.c (md_cgen_lookup_reloc): Generate
4911         BFD_RELOC_FR30_48 instead of BFD_RELOC_FR30_32.
4912
4913 1998-12-02  Nick Clifton  <nickc@cygnus.com>
4914
4915         * config/tc-fr30.c (md_cgen_lookup_reloc): Enable relocs for
4916         LDI:20 insn.
4917
4918 Thu Nov 26 11:23:48 1998  Dave Brolley  <brolley@cygnus.com>
4919
4920         * config/tc-fr30.c (md_pcrel_from_section): Restore previous
4921         calculation of pcrel point.
4922
4923 Tue Nov 24 17:21:52 1998  Nick Clifton  <nickc@cygnus.com>
4924
4925         * config/tc-fr30.c (md_pcrel_from_section): Fix calculation of
4926         pcrel point.
4927
4928 Tue Nov 24 14:54:38 1998  Nick Clifton  <nickc@cygnus.com>
4929
4930         * config/tc-d10v.c (md_assemble): Make static 'etype' have file
4931         scope.
4932         (d10v_cleanup): Only generate previous insn if a multiline insn is
4933         not pending.
4934
4935 Fri Nov 20 11:41:13 1998  Nick Clifton  <nickc@cygnus.com>
4936
4937         * config/tc-fr30.c (md_cgen_lookup_reloc): Add support for
4938         FR30_OPERAND_I32.
4939
4940 Thu Nov 19 15:01:29 1998  Nick Clifton  <nickc@cygnus.com>
4941
4942         * config/tc-arm.c (md_parse_option): Add support for -marm7xxx and
4943         -marm6xxx command line switches.
4944
4945 1998-11-18  Doug Evans  <devans@casey.cygnus.com>
4946
4947         * Makefile.am (DEP): Use $(srcdir)/../mkdep.
4948         (itbl-ops.o): Delete duplicate dependencies.
4949         Rebuild dependencies.
4950         Add fr30 dependencies.
4951         * Makefile.in: Rebuild.
4952
4953 Tue Nov 17 13:42:42 1998  Nick Clifton  <nickc@cygnus.com>
4954
4955         * config/tc-fr30.c (md_cgen_lookup_reloc): Updated to match latest
4956         opcode list.
4957         * listing.c: Ignore line terminator characters found inside
4958         strings.
4959
4960 Thu Nov 12 19:21:24 1998  Dave Brolley  <brolley@cygnus.com>
4961
4962         * po/gas.pot: Regenerated.
4963
4964 Thu Nov 12 10:54:16 1998  Nick Clifton  <nickc@cygnus.com>
4965
4966         * config/tc-fr30.c (fr30_is_colon_insn): New name for
4967         fr30_is_label_start().  Also checks for delay slot insns.
4968
4969         * config/tc-fr30.c (fr30_is_label_start): New function: Handle
4970         FR30 instructions which contain a colon in the mnemonic.
4971
4972         * config/tc-fr30.h (TC_START_LABEL): Define this macro.
4973
4974 Wed Nov 11 09:58:21 1998  Nick Clifton  <nickc@cygnus.com>
4975
4976         * config/tc-fr30.c: Removed currently superflous code.
4977
4978 Tue Nov 10 13:13:05 1998  Nick Clifton  <nickc@cygnus.com>
4979
4980         * config/tc-fr30.h: New file.
4981         * config/tc-fr30.c: Tweaking so that it will compile.
4982
4983 Tue Nov 10 14:41:33 1998  Catherine Moore  <clm@cygnus.com>
4984
4985         * config/tc-d10v.h (obj_fix_adjustable):  Define.
4986         (TC_FORCE_RELOCATION):  Define.
4987         (d10v_force_relocation):  Declare.
4988         * config/tc-d10v.c (tc_gen_reloc):  Handle Vtable relocs.
4989         (md_apply_fix3):  Handle Vtable relocs.
4990         (d10v_fix_adjustable):  New.
4991         (d10v_force_relocation):  New.
4992
4993 Mon Nov  9 14:25:06 1998  Nick Clifton  <nickc@cygnus.com>
4994
4995         * config/tc-d30v.c: Change default behaviour to ignore potential
4996         conflicts between register name and symbol names.
4997
4998 Wed Nov  4 18:42:00 1998  Dave Brolley  <brolley@cygnus.com>
4999
5000         * configure.in: Add fr30-*-*.
5001         * config/tc-fr30.c: New file.
5002         * Makefile.in: Regenerated.
5003         * config.in: Regenerated.
5004         * configure: Regenerated.
5005         * doc/Makefile.in: Regenerated.
5006         * po/gas.pot: Regenerated.
5007
5008 Mon Nov  2 20:54:16 1998  Doug Evans  <devans@canuck.cygnus.com>
5009
5010         * config/tc-m32r.c (assemble_two_insns): Ensure both insns
5011         are 16 bit insns.
5012
5013 Mon Nov  2 20:10:18 1998  Martin von Loewis  <loewis@informatik.hu-berlin.de>
5014
5015         * app.c (do_scrub_begin): Set characters above 127 to be symbol
5016         characters.
5017         (do_scrub_chars): Add some casts to unsigned char to avoid
5018         unwanted sign extension.
5019         * read.c (lex_type): Set characters about 127 to be symbol
5020         characters.
5021         * config/tc-i386.c (md_begin): Set identifier_chars and
5022         operand_chars for values above 127.
5023
5024 Mon Nov  2 15:05:33 1998  Geoffrey Noer  <noer@cygnus.com>
5025
5026         * configure.in: detect cygwin* instead of cygwin32*
5027         * configure: regenerate
5028
5029 Tue Oct 27 13:18:40 1998  Nick Clifton  <nickc@cygnus.com>
5030
5031         * listing.c: Add support for producing a listing from piped
5032         input.
5033
5034 Tue Oct 27 08:56:44 1998  Gavin Romig-Koch  <gavin@cygnus.com>
5035
5036         * config/tc-mips.c (hilo_interlocks): Remove mips_3900.
5037         (append_insn): Account for the tx39's multiply behavior.
5038
5039 1998-10-26  Michael Meissner  <meissner@cygnus.com>
5040
5041         * config/tc-m32r.c (assemble_two_insns): Rename assemble_two_insns
5042         from assemble_parallel_insns.  Add support for '->' to indicate
5043         explicitly serializing the instructions.
5044         (md_assemble): Ditto.
5045
5046 Sat Oct 24 15:12:19 1998  Catherine Moore  <clm@cygnus.com>
5047
5048         * config/tc-sh.c (sh_fix_adjustable):  Adjust EXTERN and
5049         WEAK handling.
5050
5051 Thu Oct 22 12:41:33 1998  Catherine Moore  <clm@cygnus.com>
5052
5053         * cgen.c (gas_cgen_md_apply_fix3):  Revert last change.
5054
5055 Thu Oct 22 10:03:15 1998  Ron Unrau  <runrau@cygnus.com>
5056
5057         * config/tc-mips.c : support frame and regmask/fregmask when
5058           MIPS_STABS_ELF is specified.
5059
5060 Wed Oct 21 11;34:51 1998  Catherine Moore  <clm@cygnus.com>
5061
5062         * config/tc-sh.c (sh_fix_adjustable):  Only include if OBJ_ELF.
5063         (md_apply_fix):  Don't return 1 for VTABLE relocs.
5064         * config/tc-sh.h (obj_fix_adjustable):  Define only if OBJ_ELF.
5065
5066 Tue Oct 20 11:18:28 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5067
5068         * doc/c-i386.texi: Replace occurences of "opcode" with
5069         "instruction mnemonic", "instruction", or "mnemonic" when
5070         referring to the name of an instruction.  Use "opcode" when
5071         referring to the sequence of machine bytes.
5072
5073         * config/tc-i386.c (opcode_chars): Rename to mnemonic_chars.
5074         (is_opcode_char): Rename to is_mnemonic_char.
5075         (md_assemble and i386_operand): Correct error messages from
5076         "opcode" to "instruction mnemonic"
5077         Rename throughout opcode[] -> mnemonic[], opp -> mnem_p,
5078         MAX_OPCODE_SIZE -> MAX_MNEM_SIZE,
5079         DWORD_OPCODE_SUFFIX -> DWORD_MNEM_SUFFIX,
5080         WORD_OPCODE_SUFFIX -> WORD_MNEM_SUFFIX,
5081         BYTE_OPCODE_SUFFIX -> BYTE_MNEM_SUFFIX,
5082         SHORT_OPCODE_SUFFIX -> SHORT_MNEM_SUFFIX
5083         LONG_OPCODE_SUFFIX -> LONG_MNEM_SUFFIX
5084
5085         * config/tc-i386.h (*_MNEM_SUFFIX): Rename from *_OPCODE_SUFFIX.
5086
5087         * config/tc-i386.c (i386_operand): Check for garbage after
5088         register name.
5089
5090 Tue Oct 20 10:49:42 1998  Ian Lance Taylor  <ian@cygnus.com>
5091
5092         * config/tc-i386.c (md_apply_fix3): Change handling of PCREL reloc
5093         for BFD_ASSEMBLER to only change value when COFF if TE_PE.
5094
5095 Mon Oct 19 20:20:42 1998  Catherine Moore  <clm@cygnus.com>
5096
5097         * config/tc-sh.h (obj_fix_adjustable):  Define.
5098         * config/tc-sh.c (sh_force_relocation):  Handle VT relocs.
5099         (md_apply_fix):  Likewise.
5100         (tc_gen_reloc):  Likewise.
5101         (sh_fix_adjustable):  New.
5102
5103 Mon Oct 19 12:35:43 1998  Doug Evans  <devans@seba.cygnus.com>
5104
5105         * cgen.c (gas_cgen_finish_insn): Update handling of CGEN_INT_INSN_P.
5106         * cgen.h (gas_cgen_finish_insn): Update prototype.
5107         * config/tc-m32r.c (m32r_insn): CGEN_INT_INSN -> CGEN_INT_INSN_P.
5108         cgen_insn_t -> CGEN_INSN_INT.
5109         (make_parallel): Update handling of CGEN_INT_INSN_P.
5110         (assemble_parallel_insn): Ditto.
5111         (target_make_parallel): New function.
5112         (md_assemble): Use it.
5113
5114 Mon Oct 19 13:16:12 1998  Catherine Moore  <clm@cygnus.com>
5115
5116         * config/tc-m32r.c (m32r_force_relocation):  Fix typo.
5117
5118 Sun Oct 18 18:48:57 1998  Jeffrey A Law  (law@cygnus.com)
5119
5120         * config/tc-sh.c (md_assemble): Make sure the entire opcode is
5121         converted into lower case.
5122
5123 Fri Oct 16 13:36:34 CDT Catherine Moore  <clm@cygnus.com>
5124
5125         * cgen.c (gas_cgen_md_apply_fix3):  Handle VTABLE relocs.
5126         (gas_cgen_tc_gen_reloc):  Likewise.
5127         * config/tc-m32r.h (obj_fix_adjustable):  Define.
5128         * config/tc-m32r.c (m32r_fix_adjustable):  New.
5129         (m32r_force_relocation):  Handle VTABLE relocs.
5130
5131 Wed Oct 14 11:33:38 1998  Nick Clifton  <nickc@cygnus.com>
5132
5133         * doc/c-arm.texi (ARM Directives): Document .ltorn directive.
5134
5135 Mon Oct 12 11:07:21 1998  Nick Clifton  <nickc@cygnus.com>
5136
5137         * config/tc-m32r.c (assemble_parallel_insn): Convert second opcode
5138         to lower case before parsing.
5139
5140         * config/tc-d30v.c (parallel_ok): Ignore conflicts when explicitly
5141         parallel insns modift buts in the PSW as a side effect.
5142
5143 Thu Oct  8 10:18:33 1998  Nick Clifton  <nickc@cygnus.com>
5144
5145         * config/tc-d30v.c (find_format): Test for missing flag and
5146         control registers.
5147
5148         (md_apply_fix3): Fix error messages to avoid
5149         assumption about presence of a symbol.
5150
5151         (parallel_ok): Disallow parallel instructions that both modify the
5152         same flag register.
5153
5154         (find_format): Generate a warning if an odd numbered register is
5155         used as the first register in a mutli-register instruction.
5156
5157 Wed Oct  7 14:09:14 1998  Nick Clifton  <nickc@cygnus.com>
5158
5159         * config/tc-d30v.c (md_apply_fix3): Do not assume that bad
5160         relocations are always associated with a symbol.
5161
5162 Tue Oct  6 09:31:15 1998  Catherine Moore  <clm@cygnus.com>
5163
5164         * tc-sparc.h (TC_FORCE_RELOCATION):  Define.
5165         (elf32_sparc_force_relocation):  Declare.
5166         * tc-sparc.c (md_apply_fix3):  Handle vtable relocs.
5167         (tc_gen_reloc):  Handle vtable relocs.
5168         (elf32_sparc_force_relocation):  New.
5169
5170 Mon Oct  5 09:25:32 1998  Catherine Moore  <clm@cygnsu.com>
5171
5172         * symbols.c (S_IS_FUNCTION):  New.
5173         * config/tc-v850.h (obj_fix_adjustable):  Define.
5174         (TC_FORCE_RELOCATION):  Define.
5175         (v850_force_relocation):  Declare.
5176         * config/tc-v850.c (tc_gen_reloc):  Use offset instead
5177         of fx_addnumber for VTABLE reloc addends.
5178         (md_apply_fix3):  Handle VTABLE relocs.
5179         (v850_fix_adjustable):  New.
5180         (v850_force_relocation):  New.
5181
5182 Mon Oct  5 00:48:52 1998  Jeffrey A Law  (law@cygnus.com)
5183
5184         * tc-hppa.c (fp_operand_format): Add some additional formats.
5185         (pa_ip): Do not automatically promote into pa2.0 mode.
5186         (pa_level): Handle ".level 2.0".
5187
5188 Sun Oct  4 20:57:43 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5189
5190         * config/tc-i386.c (md_assemble): Handle AMD_3DNOW_OPCODE.
5191         * config/tc-i386.h (template.extension_opcode): Change to
5192         unsigned int to allow full range of 8-bit opcode suffixes.
5193         (None): Redefine as 0xffff.
5194
5195         From Jeff B Epler <jepler@usgs.gov>
5196         * doc/c-i386.texi (i386-SIMD): New section.
5197
5198 Thu Oct  1 15:37:54 1998  Richard Henderson  <rth@cygnus.com>
5199
5200         * read.c (discard_rest_of_line): New function.
5201         * read.h: Declare it.
5202         * config/tc-alpha.c (s_alpha_mask, s_alpha_frame): Use it.
5203
5204 Thu Oct  1 10:33:53 1998  Nick Clifton  <nickc@cygnus.com>
5205
5206         * config/tc-d10v.c (find_symbol_matching_register): New function.
5207         (find_opcode): Cope with the case where a register name matches
5208         a symbol name.
5209
5210 Wed Sep 30 10:52:32 1998  Nick Clifton  <nickc@cygnus.com>
5211
5212         * config/tc-v850.c (md_pcrel_from): Rename to
5213         v850_pcrel_from_section.
5214         (v850_pcrel_from_section): Do not resolves symbols in other
5215         sections.
5216
5217         * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
5218
5219 Mon Sep 28 11:01:20 1998  Nick Clifton  <nickc@cygnus.com>
5220
5221         * config/tc-d10v.c (find_opcode): Generate an error if a register
5222         is supplied for an operand that should not be a register.
5223
5224 Fri Sep 25 10:04:21 1998  Nick Clifton  <nickc@cygnus.com>
5225
5226         * config/tc-d30v.c (write_2_short): But do allow delayed branch
5227         instructions to have another instruction in the right bin.
5228
5229 Thu Sep 24 09:28:34 1998  Nick Clifton  <nickc@cygnus.com>
5230
5231         * config/tc-d30v.c (write_2_short): Do not allow instructions in
5232         the right container if the left container holds a branch
5233         instruction.
5234
5235 Wed Sep 23 10:54:29 1998  Nick Clifton  <nickc@cygnus.com>
5236
5237         * config/tc-d30v.c (reg_name_search): Only warn if a name matches
5238         both a register name and symbol name.
5239         (find_format): Allow correct parsing of MVTSYS and MVFSYS insns.
5240
5241 Tue Sep 22 17:49:16 1998  Nick Clifton  <nickc@cygnus.com>
5242
5243         * config/tc-d30v.c (write_2_short): Implement EITHER_BUT_PREFER_MU
5244         execution unit class.
5245
5246         (reg_name_search): If a name matches a register and a symbol,
5247         prefer the register.
5248         (find_format): Disallow flag registers when a general purpose
5249         register is required.
5250         If a number is required, but a register has been given, check to
5251         see if a symbol with the same name as the register exists, and if
5252         so, use that symbol.
5253
5254 Tue Sep 22 16:40:52 1998  Jim Wilson  <wilson@cygnus.com>
5255
5256         * config/obj-elf.h (ECOFF_DEBUGGING): Add missing parens.
5257
5258 Tue Sep 22 15:44:21 1998  Nick Clifton  <nickc@cygnus.com>
5259
5260         * config/tc-d30v.c (find_format): Do not accept flag registers as
5261         general purpose registers.
5262         (find_format): If an immediate value is expected at a given place
5263         in a format, but a register name has been provided instead, check
5264         to see if that register name matches the name of a predefined
5265         symbol and if it does, then use the symbol instead.
5266         (reg_name_search): If a register name matches a symbol name,
5267         prefer the register name to the symbol name.
5268
5269 Mon Sep 21 10:42:57 1998  Nick Clifton  <nickc@cygnus.com>
5270
5271         * config/tc-m32r.c (m32r_do_align): After inserting NOPs, reset
5272         the previous insn to empty.
5273
5274 1998-09-20  Michael Meissner  <meissner@cygnus.com>
5275
5276         * config/tc-ppc.c (md_apply_fix3): Do not break string into two
5277         pieces, forcing the use of an ANSI compiler.
5278
5279 Sun Sep 20 00:58:12 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5280
5281         * config/tc-m68k.h (TC_FORCE_RELOCATION): New macro.  Force vtable
5282         relocs.
5283         * config/tc-m68k.c (md_apply_fix_2): Do nothing for vtable relocs.
5284
5285 Tue Sep 15 08:51:07 1998  Catherine Moore  <clm@cygnus.com>
5286
5287         * config/obj-elf.c (obj_elf_vtable_inherit):  Handle arm
5288         assembler syntax.
5289         (obj_elf_vtable_entry):  Likewise.
5290         * config/tc-arm.h:  Define TC_FORCE_RELOCATION for OBJ_ELF.
5291         * config/tc-arm.c (md_apply_fix3): Handle VTABLE relocations.
5292         (tc_gen_reloc): Likewise.
5293         (arm_fix_adjustable): Likewise.
5294         (elf32_arm_force_relocation): New.
5295         (armelf_frob_symbol):  Remove coff-style symbol support.
5296
5297 Wed Sep  9 11:27:16 1998  Richard Henderson  <rth@cygnus.com>
5298
5299         * config/tc-i386.c (i386_operand): Fix typo in last patch.
5300
5301 Tue Sep  8 18:10:01 1998  Catherine Moore  <clm@cygnus.com>
5302
5303         * config/tc-arm.c (arm_adjust_symtab):  Move #ifdef
5304         OBJ_COFF so that routine is defined for a.out format.
5305
5306 Tue Sep  8 15:56:19 1998  Richard Henderson  <rth@cygnus.com>
5307
5308         * config/tc-i386.c (i386_operand): Detect non-segment registers
5309         used as segment prefixes.
5310
5311 Sat Sep  5 19:00:38 1998  Ian Lance Taylor  <ian@cygnus.com>
5312
5313         * ehopt.c (check_eh_frame): Check the size of the FDE, and don't
5314         optimize across FDE boundaries.
5315
5316         * config/obj-coff.c (obj_coff_section): Preserve any link once
5317         flags when setting the section flags.
5318
5319 Fri Sep  4 17:07:14 1998  Nick Clifton  <nickc@cygnus.com>
5320
5321         * config/tc-arm.h (obj_adjust_symtab): Fixed typo.
5322         * config/tc-arm.c (armelf_adjust_symtab): Reformatted.
5323
5324 Fri Sep  4 13:57:43 1998  Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
5325
5326         * config/tc-sparc.c (in_signed_range): Sign extend 32-bit words
5327         to the host width.
5328
5329 Wed Sep  2 11:31:14 1998  Richard Henderson  <rth@cygnus.com>
5330
5331         * frags.c (frag_grow): Include the size of the frag struct in the
5332         obstack chunk size.
5333
5334         * subsegs.c (subseg_set_rest): Adjust the seginfo frchain start
5335         if the new subseg comes before the old.
5336
5337 Tue Sep  1 15:01:33 1998  Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
5338
5339         * config/tc-sparc.c (sparc_ip): Allow all digits in an instruction
5340         to handle edge8 and edge16.
5341
5342 Mon Aug 31 09:51:14 1998  Richard Henderson  <rth@cygnus.com>
5343
5344         * config/obj-elf.c (obj_elf_vtable_inherit): Print error message
5345         before we clobber the symbol involved.
5346
5347 Mon Aug 31 10:58:06 1998  Catherine Moore  <clm@cygnus.com>
5348
5349         * config/tc-arm.c:  Remove OBJ_ELF definitions for
5350         S_GET_STORAGE_CLASS and S_SET_STORAGE_CLASS.  Only
5351         use arm_adjust_symtab for OBJ_COFF.
5352         (armelf_adjust_symtab):  New Routine.
5353         * config/tc-arm.h:  Define obj_adjust_symtab to
5354         armelf_adjust_symtab for OBJ_ELF.
5355
5356 Sat Aug 29 22:18:51 1998  Richard Henderson  <rth@cygnus.com>
5357
5358         * configure.in: Make all i386-elf targets use bfd_gas.
5359         * config/tc-i386.c (tc_i386_force_relocation): New.
5360         (tc_i386_fix_adjustable): Don't fix vtable relocs.
5361         (md_apply_fix3): Likewise.
5362         (tc_gen_reloc): Handle them.
5363         * config/tc-i386.h (TC_FORCE_RELOCATION): Always define, calling
5364         tc_i386_force_relocation.
5365
5366 Mon Aug 24 13:40:21 1998  Nick Clifton  <nickc@cygnus.com>
5367
5368         * config/tc-arm.c (md_show_usage): Improve formatting of --help output.
5369
5370 Fri Aug 21 18:43:48 1998  Nick Clifton  <nickc@cygnus.com>
5371
5372         * config/tc-d30v.c (md_assemble): Copy previous opcode over
5373         current opcode after writing the first insturction of a reverse
5374         sequential pair.
5375
5376 Fri Aug 21 07:30:35 1998  Doug Evans  <devans@canuck.cygnus.com>
5377
5378         * read.h (generate_lineno_debug): Add prototype.
5379         * read.c (generate_lineno_debug): Make non-static.
5380
5381 Thu Aug 20 23:17:04 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5382
5383         * config/tc-i386.c (md_assemble): Only warn for address/data size
5384         prefixes.
5385
5386 Thu Aug 20 14:45:08 1998  Nick Clifton  <nickc@cygnus.com>
5387
5388         * config/tc-arm.c (arm_fix_adjustable): Do not adjust relocations
5389         against Thumb function names, as the linker needs this information.
5390
5391 1998-08-20  Vladimir N. Makarov  <vmakarov@cygnus.com>
5392
5393         * expr.c (operand): Check also that there is no advance in operand
5394         after atof_generic in order to decide "is it label 0f or floating
5395         point number?".
5396
5397 Wed Aug 19 09:30:16 1998  Nick Clifton  <nickc@cygnus.com>
5398
5399         * config/tc-m32r.c: Replace double dash prefix to M32R specific
5400         command line options with a single dash.
5401         * doc/c-m32r.texi: Replace double dash prefix with a single dash.
5402
5403 Tue Aug 18 11:59:43 1998  Catherine Moore  <clm@cygnus.com>
5404
5405         * tc-arm.h: Define obj_fix_adjustable for OBJ_ELF.
5406         * tc-arm.c (arm_fix_adjustable): New routine.
5407
5408 1998-08-13  Vladimir N. Makarov  <vmakarov@cygnus.com>
5409
5410         * read.c (s_align, s_comm, s_mri_common, s_fail, s_globl, s_space,
5411         s_float_space, s_struct, cons_worker): Move ignore_rest_of_line or
5412         demand_empty_rest_of_line before mri_comment_end.
5413         (equals): Check garbage after expression before
5414         mri_comment_end in MRI mode.
5415
5416 Thu Aug 13 15:08:42 1998  Ian Lance Taylor  <ian@cygnus.com>
5417
5418         * config/tc-mips.c (macro): Correct M_SGE_I/M_SGEUI_I case for a
5419         small immediate constant to use the constant itself rather than
5420         always using 1.
5421
5422 Wed Aug 12 18:47:38 1998  Ian Lance Taylor  <ian@cygnus.com>
5423
5424         * config/tc-hppa.c (pa_enter): Call as_bad rather than abort.
5425         (pa_leave): Likewise.
5426
5427 Wed Aug 12 13:25:03 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5428
5429         * config/tc-i386.c (md_assemble): Emit a warning for stand-alone
5430         prefixes.
5431         (i386_operand): Fix an error message.
5432
5433 Tue Aug 11 14:44:32 1998  Nick Clifton  <nickc@cygnus.com>
5434
5435         * doc/c-arm.texi (ARM Directives): Document .req directive.
5436
5437         * config/tc-arm.c (reg_required_here): Display erroneous string if
5438         the register name could not be decoded.
5439         Do not set inst.instruction if the sift is -1.
5440
5441 Mon Aug 10 15:39:56 1998  Richard Henderson  <rth@cygnus.com>
5442
5443         * config/tc-alpha.c (tc_gen_reloc): Bias WEAK symbols just as
5444         we do for EXTERN.
5445
5446 Mon Aug 10 15:06:18 1998  Nick Clifton  <nickc@cygnus.com>
5447
5448         * config/tc-d30v.c (d30v_align): Always perform alignment request,
5449         even if it is belived to be unnecessary.
5450
5451 Mon Aug 10 17:48:09 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5452
5453         config/tc-i386.c (i386_operand): Size immediate constants by
5454         suffix (erroneously removed as part of July 7 change).
5455
5456 Sun Aug  9 20:45:32 1998  Catherine Moore  <clm@cygnus.com>
5457
5458         * config/obj-elf.h:  Check for redefinition of obj_frob_symbol.
5459         * config/tc-arm.c:  Define S_GET_STORAGE_CLASS and S_SET_STORAGE_CLASS.
5460         (armelf_frob_symbol):  New Routine.
5461         * config/tc-arm.h:  Define obj_frob_symbol if OBJ_ELF.
5462
5463 Sat Aug  8 15:21:28 1998  Richard Henderson  <rth@cygnus.com>
5464
5465         * config/tc-alpha.c (alpha_fix_adjustable): Don't adjust weak syms.
5466
5467 Wed Aug  5 15:54:14 1998  Nick Clifton  <nickc@cygnus.com>
5468
5469         * config/tc-arm.c (md_begin): Set BFD private flags depending upon
5470         command line switches passed to assembler.
5471
5472 Mon Aug  3 14:02:52 1998  Doug Evans  <devans@seba.cygnus.com>
5473
5474         * cgen.h (GAS_CGEN_MAX_FIXUPS): GAS_ prepended, all uses updated.
5475         (gas_cgen_opcode_desc): Declare.
5476         (gas_cgen_parse_operand): Declare.
5477         (*): Prepend gas_ to gas specific fns to denote them as such.
5478         All uses updated.
5479         * cgen.c (gas_cgen_opcode_desc): New global
5480         (gas_cgen_init_parse): Renamed from cgen_asm_init_parse.
5481         (queue_fixup): Renamed from cgen_queue_fixup.
5482         (*): Prepend gas_ to gas specific fns to denote them as such.
5483         All uses updated.
5484         (gas_cgen_md_apply_fix3): Update call to insert_operand.
5485         (gas_cgen_finish_insn): Renamed from cgen_asm_finish_insn.
5486         * config/tc-m32r.c (md_begin): Remove use of CGEN_SYM.
5487         Open opcode table and initialize it.
5488         (make_parallel): Use gas_cgen_opcode_desc.
5489         (assemble_parallel_insn): Ditto.  Remove use of CGEN_SYM.
5490         (md_assemble): Ditto.
5491
5492 Sat Aug  1 19:27:30 1998  Richard Henderson  <rth@cygnus.com>
5493
5494         * as.h (debug_info_type): Add entries for unspecified and dwarf*.
5495         * ecoff.c (ecoff_generate_asm_lineno): Take no arguments; call
5496         as_where ourselves.  Provide a stub for !ECOFF_DEBUGGING.
5497         * ecoff.h: Move ECOFF_DEBUGGING protection inside GAS_ECOFF_H.
5498         Move ecoff_generate_asm_lineno outside ECOFF_DEBUGGING protection.
5499         * read.c (generate_lineno_debug): Tidy ECOFF bits.  Use
5500         DEBUG_UNSPECIFIED rather than DEBUG_NONE for initial test.
5501         * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Define to a variable.
5502         (SEPARATE_STAB_SECTIONS): Conditionalize on value of ECOFF_DEBUGGING.
5503         (INIT_STAB_SECTION): Likewise.
5504         (OBJ_PROCESS_STAB): Likewise.
5505
5506         * config/tc-alpha.c (md_longopts): New options -mdebug/-no-mdebug.
5507         (md_parse_option): Watch for them.
5508         (alpha_cur_ent_sym, alpha_flag_mdebug): New variables.
5509         (md_begin): Kill neverdef code.
5510         (s_alpha_ent, s_alpha_end, s_alpha_mask, s_alpha_frame): New.
5511         (s_alpha_prologue): Watch alpha_cur_ent_sym.
5512         (s_alpha_coff_wrapper): New.
5513         (md_pseudo_table): Trap all ECOFF pseudos.
5514
5515 Fri Jul 31 16:45:54 1998  Ron Unrau <runrau@cygnus.com>
5516
5517         Start of changes to remove mdebug section from mips*-elf
5518         Based on MIPS_STAB_ELF definition
5519         * acconfig.h: undef if not configured
5520         * config.in: undef if not configured
5521         * config/mips-elf.h: only set ECOFF debugging if not stabs-in-elf
5522         * config/tc-mips.c (s_ent): set BSF_FUNCTION
5523         * stabs.c (s_stab_generic): flush frag
5524
5525 Fri Jul 31 16:14:45 1998  Catherine Moore  <clm@cygnus.com>
5526
5527         * configure.in: (arm-*-elf):  Handle.
5528         (thumb-*-elf): Handle.
5529         * configure:  Regenerate.
5530         * read.c (stringer): Fix typo in comment.
5531         * write.c (fixup_segment): Don't add symbol value to addend if
5532         TC_ARM and OBJ_ELF.
5533         * config/tc-arm.c (md_section_align):  Don't align dwarf debug
5534         sections.
5535         (tc_gen_reloc):  Always set the reloc addend to fixp->fx_offset
5536         for OBJ_ELF.
5537
5538 Thu Jul 30 21:38:43 1998  Frank Ch. Eigler  <fche@cygnus.com>
5539
5540         * config/tc-d30v.c ({cur,prev}_left_kills_right_p): New variables.
5541         (write_2_short): Emit warning if new flag is set.
5542         (do_assemble): Set flags if left instruction is one of special
5543         "right-instruction-killer" type.
5544
5545 Tue Jun 28 18:12:28 1998  Stan Cox  <scox@cygnus.com>
5546
5547         * config/tc-sparc.c (md_number_to_chars, cons_fix_new_sparc):
5548         Always output words in debug_info section as big endian.
5549         (sparc_target_format): Choose correct bfd target.
5550         (md_apply_fix3): Rename BFD_RELOC_SPARC_32LE to BFD_RELOC_SPARC_REV32.
5551
5552 Tue Jul 28 11:01:21 1998  Jeffrey A Law  (law@cygnus.com)
5553
5554         * config/tc-mn10300.c (md_assemble): Fix "errmsg" initialization
5555         to work with internationalization code.  Issue an error when two
5556         operands match that are not allowed to match.
5557
5558 Mon Jul 27 16:25:58 1998  Doug Evans  <devans@canuck.cygnus.com>
5559
5560         * configure.in (install_tooldir): Allow target to specify whether
5561         it wants to be installed in $(tooldir)/bin.
5562         * configure: Regenerate.
5563         * Makefile.am (install-exec-local): Set install-exec-tooldir
5564         dependency via configure.
5565         * Makefile.in: Regenerate.
5566
5567 Fri Jul 24 19:58:59 1998  Doug Evans  <devans@canuck.cygnus.com>
5568
5569         * Makefile.am (install-exec-local): Split into two ...
5570         (install-exec-bindir,install-exec-tooldir): New rules.
5571         * Makefile.in: Regenerate.
5572
5573 Fri Jul 24 16:31:49 1998  Ian Lance Taylor  <ian@cygnus.com>
5574
5575         * Makefile.am (install-exec-local): Don't remove the file before
5576         checking whether $(bindir) == $(tooldir)/bin.  From Maciej
5577         W. Rozycki <macro@ds2.pg.gda.pl>.
5578         * Makefile.in: Rebuild.
5579
5580 Fri Jul 24 09:13:46 1998  Doug Evans  <devans@canuck.cygnus.com>
5581
5582         * cgen.c: Include libiberty.h.
5583         (cgen_md_apply_fix3): Update call to md_cgen_lookup_reloc.
5584         (cgen_tc_gen_reloc): Use xmalloc, not bfd_alloc.
5585         * cgen.h (cgen_md_apply_fix3,cgen_tc_gen_reloc): Declare.
5586         (md_cgen_lookup_reloc)): Declare.
5587         (md_cgen_record_fixup_exp): Declare.
5588         * config/tc-m32r.h (md_pcrel_from_section): Declare.
5589         (m32r_relax_frag): Declare.
5590         (cgen_md_apply_fix3): Decls moved to cgen.h.
5591         (cgen_record_fixup_exp,cgen_tc_gen_reloc): Ditto.
5592         (m32r_cgen_record_fixup_exp): Delete decl.
5593         * config/tc-m32r.c (m32r_cpu_desc): #if 0 out.
5594         (assemble_nop): Delete.
5595         (expand_debug_syms): Delete unused `exp'.
5596         (md_cgen_lookup_reloc): Renamed from CGEN_SYM (lookup_reloc).
5597         Add default case for -Wall.
5598         (m32r_cgen_record_fixup_exp): Add default case for -Wall.
5599         (md_atof): Delete unused wordP.
5600
5601 Thu Jul 23 13:19:50 1998  Jeffrey A Law  (law@cygnus.com)
5602
5603         * config/tc-mn10300.c (md_assemble): Make sure "errmsg" has a non-NULL
5604         value.
5605
5606 Wed Jul 22 14:36:56 1998  Ian Lance Taylor  <ian@cygnus.com>
5607
5608         * doc/as.texinfo: Add documentation for .end, .exitm, .fail,
5609         .ifc, .ifeqs, .ifge, .ifgt, .ifle, .iflt, .ifnc, .ifne, .ifnes,
5610         .print, .purgem, and .struct.  Remove documentation for
5611         .app-file.
5612
5613 Tue Jul 21 16:50:52 1998  Doug Evans  <devans@seba.cygnus.com>
5614
5615         * cgen.c (cgen_md_apply_fix3): set_operand renamed to set_vma_operand.
5616         Update call to insert_operand.
5617
5618 Fri Jul 17 11:42:20 1998  Nick Clifton  <nickc@cygnus.com>
5619
5620         * config/tc-m32r.c (ms_show_usage): Formatting changes.
5621
5622 Wed Jul 15 15:38:28 1998  Ian Lance Taylor  <ian@cygnus.com>
5623
5624         * config/tc-i386.c (md_assemble): Don't get confused by trailing
5625         whitespace after a prefix operator.
5626
5627 Tue Jul 14 15:32:56 1998  Richard Henderson  <rth@cygnus.com>
5628
5629         * configure.in (i386-*-beos{pe,elf,}*): Recognize.
5630
5631 Tue Jul 14 12:33:44 1998  Chris Torek  <torek@bsdi.com>
5632
5633         * config/tc-sparc.c (log2): New static function.
5634         (s_reserve): Use log2 to convert alignment before calling
5635         record_alignment.
5636         (s_common): Use log2 to convert alignment before calling
5637         record_alignment and frag_align.
5638         (sparc_cons_align): Use log2.
5639
5640 Tue Jul 14 11:58:40 1998  Ian Lance Taylor  <ian@cygnus.com>
5641
5642         * config/tc-sparc.c (s_reserve): Set symbol size if OBJ_ELF.
5643         (s_common): Likewise.
5644
5645         * config/tc-sparc.c (sparc_handle_align): Reindent a bit.  Correct
5646         initialization of waddr.
5647         (sparc_elf_final_processing): Add default case to switch.
5648
5649 Tue Jul 14 11:00:16 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5650
5651         * doc/c-i386.texi: Fix a typo.  Use the term 80-bit real rather
5652         than temporary real.
5653
5654 Mon Jul 13 13:55:42 1998  Ian Lance Taylor  <ian@cygnus.com>
5655
5656         * write.c (subsegs_finish): Don't align the segments if there were
5657         any errors.
5658
5659         * config/obj-coff.c (c_symbol_merge): Correct number of bytes when
5660         copying aux information.
5661
5662         * expr.c (make_expr_symbol): Catch attempts to turn an O_big
5663         expression into a symbol.
5664
5665 Mon Jul 13 13:29:04 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5666
5667         * config/tc-i386.c (mode_from_disp_size): Change arg and return
5668         type to unsigned int.
5669         (md_assemble): Change type used to store offsets from unsigned
5670         long to long.
5671         (i386_operand): Switch error check to only call RESTORE_END_STRING
5672         once after parse_register.
5673
5674 Fri Jul 10 16:00:04 1998  Nick Clifton  <nickc@cygnus.com>
5675
5676         * config/tc-v850.c (md_show_usage): Changed format to match that
5677         of gcc, ld, etc.
5678
5679         * as.c (show_usage): Changed format to match that of gcc, ld, etc.
5680
5681 Thu Jul  9 12:09:57 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5682
5683         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't adjust vtable
5684         relocs.
5685         (md_apply_fix_2): Force the symbol of the vtable reloc to be
5686         weak.
5687
5688 Thu Jul  9 11:31:54 1998  Ian Lance Taylor  <ian@cygnus.com>
5689
5690         * doc/Makefile.am (MAINTAINERCLEANFILES): Define.
5691         * doc/Makefile.in: Rebuild.
5692
5693 Wed Jul  8 12:18:56 1998  Jeffrey A Law  (law@cygnus.com)
5694
5695         * config/tc-mips.c (mips_ip, case 'i' and 'j'): Mask off high bits
5696         for %lo expressions.
5697         (mips_ip, case 'u'): Move range check after code to mask
5698         off bits in %hi/%lo expressions.  Mask off high bits for
5699         %lo expressions.
5700
5701 Tue Jul  7 17:57:38 1998  Ian Lance Taylor  <ian@cygnus.com>
5702
5703         * doc/Makefile.am (gasver.texi): New target.
5704         (as.info, as.dvi): Depends upon gasver.texi.
5705         * doc/as.texinfo: Include gasver.texi.  Mention version number on
5706         title page and in top node.
5707         * doc/Makefile.in: Rebuild.
5708
5709 Tue Jul  7 11:42:16 1998  Richard Henderson  <rth@cygnus.com>
5710
5711         * listing.c (listing_listing): For EDICT_LIST, skip all lines up to
5712         but not including the line containing the edict.
5713         * listing.h (LISTING_EOF): New.
5714         * input-scrub.c (input_scrub_next_buffer): Call it.
5715
5716 Tue Jul  7 13:00:37 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5717
5718         * config/tc-i386.c (i386_operand): Don't set the size of an
5719         immediate address based solely on the suffix and the mode.
5720
5721         * config/tc-i386.c (md_assemble): Add assertion to make sure
5722         overlap2 does not set Imm.
5723
5724         * config/tc-i386.c (space_chars): Remove. The scrubber converts
5725         sequences of whitespace to a single space.
5726         (is_space_chars): Just compare with space.
5727         (md_begin): Don't initialize space_chars.
5728         (md_assemble): Just skip a single whitespace character.
5729         (i386_operand): Rewrite base-index parsing to use new
5730         parse_register, and to skip white space.  Skip white space in a
5731         number of other places too.  Don't give error message if
5732         parse_register fails.
5733         (parse_register): Change reg_string parameter to be non-const.
5734         Add end_op parameter.  Skip white space after the `%', and return
5735         end of register string.  Give error message here rather than
5736         caller.
5737
5738 Fri Jul  3 15:34:34 1998  Ian Lance Taylor  <ian@cygnus.com>
5739
5740         Based on patch from Matt Semersky <matts@scd.hp.com>:
5741         * expr.c (op_encoding): Make const.
5742         (expr_set_precedence): New function.
5743         (expr_begin): Don't set operator rankings, just call
5744         expr_set_precedence.
5745         * expr.h (expr_set_precedence): Declare.
5746         * read.c (s_mri): Call expr_set_precedence.
5747
5748 Thu Jul  2 16:24:58 1998  Ian Lance Taylor  <ian@cygnus.com>
5749
5750         * doc/as.texinfo (Statements): Remove paragraph discussing
5751         continuing lines with a backslash.  This hasn't worked for years,
5752         if it ever did.
5753
5754 Thu Jul  2 14:06:22 1998  Klaus Kaempf  <kkaempf@rmi.de>
5755
5756         * obj-vms.c: Add C++ support with ctors/dtors sections.  Add weak
5757         symbol definitions.
5758         (Ctors_Symbols, Dtors_Symbols): New symbol chains.
5759         (ps_CTORS, ps_DTORS): New section types.
5760         (vms_fixup_xtors_section): New function
5761         (Ctors_Psect, Dtors_Psect): Define.
5762         (IS_GXX_XTOR): Define
5763         (global_symbol_directory): Change check of gxx_bug_fixed to 0.
5764         Filter static constructors/destructors and add to
5765         Ctors_Symbols/Dtors_Symbols chain.
5766         (vms_write_object_file): Write Ctors_Symbols/Dtors_Symbols to
5767         appropriate section.
5768
5769         * tc-alpha.h (TARGET_FORMAT): Rename "evax-alpha" to "vms-alpha".
5770         * makefile.vms: Merge vax/vms support.
5771
5772 Wed Jul  1 20:06:20 1998  Richard Henderson  <rth@cygnus.com>
5773
5774         * config/obj-elf.c (obj_elf_vtable_inherit, obj_elf_vtable_entry): New.
5775         (elf_pseudo_table): Add them.
5776         * config/tc-mips.c (mips_force_relocation): Force vtable relocs.
5777         (md_apply_fix): Accept them.
5778         (mips_fix_adjustable): Don't adjust them.
5779         (tc_gen_reloc): Mung BFD_RELOC_VTABLE_ENTRY for Rel.
5780         * config/tc-ppc.c (md_apply_fix3): Accept vtable relocs.
5781         * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Force vtable relocs.
5782         (tc_fix_adjustable): Don't adjust them.
5783
5784 Wed Jul  1 16:35:32 1998  Doug Evans  <devans@seba.cygnus.com>
5785
5786         * Makefile.am (CGEN_CPU_PREFIX): New variable.
5787         (cgen.o): Use it.
5788         * Makefile.in: Regenerate.
5789         * configure.in: AC_SUBST cgen_cpu_prefix.
5790         * configure: Regenerate.
5791
5792 Wed Jul  1 21:38:56 1998  J"orn Rennecke  <amylaar@cygnus.co.uk>
5793
5794         * config/tc-sh (COND_JUMP_DELAY, COND12_DELAY_LENGTH): Define.
5795         Changed all users of COND12_DELAY.
5796
5797 Fri Jun 26 11:21:11 1998  Jeffrey A Law  (law@cygnus.com)
5798
5799         * config/tc-mn10300.c (set_arch_mach): New function.
5800         (md_pseudo_table): Add pseudo-ops to set the current machine type.
5801         (md_begin): Default to mn10300 mode.
5802         (md_assemble): Only accept instructions for the core mn10300
5803         chip and the active machine type.
5804
5805 Wed Jun 24 19:06:04 1998  Ian Lance Taylor  <ian@cygnus.com>
5806
5807         * subsegs.h (segment_info_type): Give the struct a name.
5808         * config/tc-h8300.h (tc_reloc_mangle): Add prototype.
5809         * config/tc-h8500.h (tc_reloc_mangle): Declare.
5810         * config/tc-sh.h (sh_coff_reloc_mangle): Add prototype.
5811         * config/tc-w65.h (tc_reloc_mangle): Declare.
5812         * config/tc-z8k.h (tc_reloc_mangle): Declare.
5813
5814 Wed Jun 24 13:45:00 1998  Catherine Moore  <clm@cygnus.com>
5815
5816         * config/tc-v850.c (v850_comm):  Restore old section
5817         after common processing.
5818
5819 Wed Jun 24 11:50:54 1998  Klaus Kaempf  <kkaempf@progis.de>
5820
5821         * config/obj-vms.c (Create_VMS_Object_File): Force binary file.
5822
5823 Tue Jun 23 17:47:31 1998  Jim Wilson  <wilson@cygnus.com>
5824
5825         * config/tc-h8300.c (do_a_fix_imm, build_bytes): Replace cast to
5826         char with code that explicitly sign-extends.
5827
5828 Tue Jun 23 13:54:57 1998  Nick Clifton  <nickc@cygnus.com>
5829
5830         * config/tc-v850.c (md_begin): Restore text section as the current
5831         section after creating call table sections.
5832         * config/obj-coff.h (SYM_AUXINFO): New macro to conceal ugly
5833         code.
5834
5835         * config/obj-coff.c (c_symbol_merge): Replace complex expresion
5836         with call to macro SYM_AUXINFO.
5837
5838 Tue Jun 23 15:09:27 1998  Mike Stump  <mrs@wrs.com>
5839
5840         * Makefile.am (install-exec-local): Don't let EXEEXT interfere
5841         with the program transform name.
5842         * Makefile.in: Rebuild.
5843
5844 Mon Jun 22 19:52:42 1998  Ian Lance Taylor  <ian@cygnus.com>
5845
5846         * config/obj-coff.c (c_symbol_merge): Fix copying of auxiliary
5847         information.
5848
5849 Mon Jun 22 15:18:58 1998  Ian Lance Taylor  <ian@cygnus.com>
5850
5851         * config/tc-i386.c (i386_operand): Be prepared for a space between
5852         the open parenthesis and the start of the register operand,
5853         because of the June 16 change.
5854
5855 Sun Jun 21 21:27:03 1998  Ian Lance Taylor  <ian@cygnus.com>
5856
5857         * config/tc-sh.c (md_apply_fix): Handle weak symbols correctly if
5858         BFD_ASSEMBLER.
5859
5860 Sun Jun 21 12:26:36 1998  Nick Clifton  <nickc@cygnus.com>
5861
5862         * config/tc-d30v.c (d30v_align): Always perform alignment request,
5863         even if it is belived to be unnecessary.
5864
5865 Fri Jun 19 13:57:06 1998  Ian Lance Taylor  <ian@cygnus.com>
5866
5867         * write.c (adjust_reloc_syms): Never adjust relocs against weak
5868         symbols.
5869         * config/tc-mips.c (md_apply_fix): Adjust accordingly.
5870
5871 Fri Jun 19 09:50:17 1998  Jeffrey A Law  (law@cygnus.com)
5872
5873         * config/tc-mn10300.c (mn10300_insert_operand): Do not hardcode the
5874         shift amount for a repeated operand.  The shift amount for the
5875         repeated copy comes from the size of the operand.
5876
5877 Fri Jun 19 00:44:19 1998  Jeffrey A Law  (law@cygnus.com)
5878
5879         * config/tc-h8300.c (get_operand): Fix typos in ldm/stm support.
5880
5881 Wed Jun 17 13:07:05 1998  Ian Lance Taylor  <ian@cygnus.com>
5882
5883         * config/tc-mips.c (md_show_usage): Fix -mipsN usage.
5884
5885 Tue Jun 16 13:06:21 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5886
5887         * app.c (do_scrub_begin): If tc_symbol_chars is defined, treat all
5888         characters in it as LEX_IS_SYMBOL_COMPONENT.
5889         * config/tc-i386.h (tc_symbol_chars): Define.
5890         (extra_symbol_chars): Declare.
5891         * config/tc-i386.c (extra_symbol_chars): Define.
5892         (comment_chars): Don't use '/' as comment start if TE_LINUX.
5893         (line_comment_chars): Set to '/' if TE_LINUX.
5894         * doc/c-i386.texi (i386-prefixes): Update.
5895         * doc/internals.texi (CPU backend): Document tc_symbol_chars.
5896
5897 Fri Jun 12 13:36:54 1998  Tom Tromey  <tromey@cygnus.com>
5898
5899         * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
5900         ($(PACKAGE).pot): Unconditionally depend on POTFILES.
5901
5902 1998-06-12  Vladimir N. Makarov  <vmakarov@cygnus.com>
5903
5904         * config/tc-d10v.c (md_apply_fix3): Checking displacement
5905         constraint in instructions REP & REPI.
5906
5907 Thu Jun 11 08:56:46 1998  Nick Clifton  <nickc@cygnus.com>
5908
5909         * config/tc-d30v.c (md_apply_fix3): Catch BFD_RELOC_8,
5910         BFD_RELOC_16, BFD_RELOC_64 and issue appropriate error messages.
5911
5912         (check_range): If the operand is shifted, then shift the number
5913         before checking its range.
5914
5915         * write.c (adjust_reloc_syms): Add more checks for NULL pointers.
5916
5917         * config/tc-v850.c (v850_comm): Set SEC_COMMON bit on special
5918         common sections.
5919
5920 Wed Jun 10 17:26:35 1998  Nick Clifton  <nickc@cygnus.com>
5921
5922         * config/tc-v850.c (v850_comm): Create special sections as needed.
5923
5924 1998-06-10  Vladimir N. Makarov  <vmakarov@cygnus.com>
5925
5926         * config/tc-d10v.c (write_2_short): Addition of swapping
5927         instructions for sequential and reverse sequential order when
5928         given order is not possible.
5929
5930 Tue Jun  9 13:52:53 1998  Ian Lance Taylor  <ian@cygnus.com>
5931
5932         * Makefile.am: Rebuild dependencies.
5933         (DEP_INCLUDES): Fix reference to intl build directory.
5934         * Makefile.in: Rebuild.
5935
5936 Tue Jun  9 12:20:05 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5937
5938         * doc/c-i386.texi: Update 16 bit documentation.
5939
5940         * config/tc-i386.h: Change Data16 to Size16, Data32 to Size32,
5941         IgnoreDataSize to IgnoreSize as they are used for address size as
5942         well as data size.
5943         * config/tc-i386.c: Likewise.  Add code to reject addr32/data32 in
5944         32-bit mode, similarly addr16/data16 and variants.
5945
5946 Mon Jun  8 18:32:01 1998  Nick Clifton  <nickc@cygnus.com>
5947
5948         * config/tc-d30v.c (md_assemble): Fix handling of reverse
5949         sequential word multiply instructions.
5950
5951         (do_assemble): Add extra command line argument, to allow mul32
5952         attribute to be preserved across parallel insns.
5953         (md_assemble): Insert NOPs between explicitly parallel insns which
5954         contain an 32 bit multiply and a 16 multiply.
5955
5956 Mon Jun  8 12:20:30 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
5957
5958         * config/tc-i386.c: REPNE renamed to REPNE_PREFIX_OPCODE, and
5959         likewise for REPE.
5960
5961         * config/tc-i386.c (reloc): Add braces.
5962
5963         * config/tc-i386.c (struct _i386_insn): Rename bi to sib to be
5964         consistent with Intel naming.
5965         * config/tc-i386.h (base_index_byte): Rename to sib_byte.  Don't
5966         use bitfields in sib_byte.
5967         (modrm_byte): Don't use bitfields here either.
5968
5969         * config/tc-i386.c (current_templates): Add const.
5970         (parse_register): Add const to return, param, and char *s.
5971         (i386_operand): Add const to reg_entry *r.
5972         * config/tc-i386.h (templates): Add const to start, end.
5973
5974         Inspired by code for 16 bit gas support from Martynas Kunigelis
5975         <martynas@nm3.ktu.lt>:
5976         * config/tc-i386.c (md_assemble): Add full support for 16 bit
5977         modrm, and Jump, JumpByte, JumpDword, JumpInterSegment insns.
5978         (uses_mem_addrmode): Remove.
5979         (md_estimate_size_before_relax): Add support here too.
5980         (md_relax_table): Rewrite interface to md_relax for 16 bit
5981         support.
5982         (BYTE, WORD, DWORD, UNKNOWN_SIZE): Remove.
5983         (opcode_suffix_to_type): Remove.
5984         (CODE16, SMALL, SMALL16, BIG, BIG16): Define.
5985         (SIZE_FROM_RELAX_STATE): Modify to suit above.
5986         (md_convert_frag): Likewise.
5987         (i386_operand): Add support for 16 bit base/index regs,
5988         immediates, and displacements.  Remove some unnecessary casts, and
5989         localise end_of_operand_string, displacement_string_start,
5990         displacement_string_end variables.  Add GCC_ASM_O_HACK.
5991         * config/tc-i386.h (NO_BASE_REGISTER_16): Define.
5992
5993         * config/tc-i386.c (prefix_hash): Remove.
5994         (md_begin): Rewrite without obstacks.  Remove prefix hash table
5995         handling.  Rewrite lexical table handling.
5996         (i386_print_statistics): Don't print prefix statistics.
5997         (md_assemble): Rewrite instruction parser so that line is not
5998         converted to lower case.  Don't do a hash_find for prefixes,
5999         instead recognise them via opcode modifier.
6000         (expecting_operand, paren_not_balanced): Localise variables.
6001         * config/tc-i386.h (IsPrefix): Define.
6002         (prefix_entry): Remove.
6003
6004         * config/tc-i386.h (PREFIX_SEPERATOR): Don't define.
6005         * config/tc-i386.c (PREFIX_SEPARATOR): Define here instead, using
6006         '\\' in case where comment_chars contains '/'.
6007
6008         * config/tc-i386.c (MATCH): Ensure given operand and template
6009         match for JumpAbsolute.  Makes e.g. `ljmp table(%ebx)' invalid;
6010         you must write `ljmp *table(%ebx)'.
6011
6012         From H.J. Lu <hjl@gnu.org>:
6013         * config/tc-i386.c (BFD_RELOC_16, BFD_RELOC_16_PCREL): Define
6014         as 0 ifndef BFD_ASSEMBLER.
6015         (md_assemble): Allow immediate operands without suffix or
6016         other reg operand to default in size to the current code size.
6017
6018 Mon Jun  8 09:45:00 1998  Catherine Moore  <clm@cygnus.com>
6019
6020         * config/tc-v850.c (md_begin):  Restore creation of
6021         .call_table_text and .call_table_data sections.
6022
6023 Sat Jun  6 00:02:41 1998  Nick Clifton  <nickc@cygnus.com>
6024
6025         * config/tc-d30v.c (md_assemble): Set execution type to unknown
6026         after emitting a word of noops.
6027
6028 Fri Jun  5 23:27:04 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
6029
6030         * config/tc-i386.c (mode_from_disp_size): Disp16 is mode 2.
6031         (i386_operand): Simplify checks for valid base/index combinations.
6032         Disallow `in 4(%dx),%al'.
6033
6034         * config/tc-i386.c (struct _i386_insn): Make regs, base_reg, and
6035         index_reg const.
6036         (add_prefix): Change parameter from char to int.
6037
6038         * config/tc-i386.h (Ugh): Define opcode modifier.
6039         * config/tc-i386.c (md_assemble): Print warnings for Ugh insns.
6040
6041         * config/tc-i386.c (md_assemble): Rewrite MATCH and
6042         CONSISTENT_REGISTER_MATCH macros to check register types more
6043         thoroughly.  Check for illegal suffix/operand combinations
6044         when matching insns with operands.  Handle new `s' suffix, and
6045         associated FloatMF opcode modifier for float insns with memory
6046         operands.
6047         * config/tc-i386.h (FloatMF): Define new opcode modifier.
6048         (No_sSuf, No_bSuf, No_wSuf, No_lSuf): Likewise.
6049         (SHORT_OPCODE_SUFFIX, LONG_OPCODE_SUFFIX): Define.
6050         * config/tc-i386.c: Rename WORD_PREFIX_OPCODE to
6051         DATA_PREFIX_OPCODE throughout.
6052
6053         * config/tc-i386.c (REGISTER_WARNINGS): Define.
6054         (md_assemble): Rewrite suffix/register operand checking code to be
6055         more thorough.  Remove Abs8,16,32.  Change occurrences of Mem to
6056         AnyMem, the better to grep.
6057         (pi): Remove Abs.
6058         (i386_operand): Don't set Mem bits in i.types[this_operand] when
6059         given a memory operand.  Don't set Abs bits either.
6060         (type_names): Remove Mem*, Abs*.
6061         * config/tc-i386.h (Mem8, Mem16, Mem32, Abs8, Abs16, Abs32): Don't
6062         define opcode_modifiers as these cases are handled by Disp8,
6063         Disp16, Disp32 and suffix checks.
6064         (COMES_IN_BOTH_DIRECTIONS): Remove.
6065         (FloatR): Define. It's OK to share the bit with ReverseRegRegmem.
6066
6067         * config/tc-i386.c (md_assemble): Don't emit operand size prefix
6068         if IgnoreDataSize modifier given.  Remove ShortformW modifier
6069         test.  Add test for ShortForm in W base_opcode modification.
6070         Merge Seg2ShortForm and Seg3ShortForm code.
6071         * config/tc-i386.h (ShortFormW): Remove.
6072         (IgnoreDataSize): Define.
6073
6074 Fri Jun  5 10:50:53 1998  Nick Clifton  <nickc@cygnus.com>
6075
6076         * config/tc-d30v.c (md_assemble): Store previous segment state
6077         with previous instruction.
6078
6079 Wed Jun  3 18:21:56 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
6080
6081         * config/tc-i386.c (SCALE1_WHEN_NO_INDEX): Define.
6082         (ebp, esp): Remove static variables.
6083         (MATCH): Remove test for InOutPortReg.
6084         (i386_operand): Properly handle InOutPortReg here instead.
6085         Disallows `inb (%dx,2)', `inb %es:(%dx)' and `mov (%dx),%ax'
6086         (md_assemble): Simplify and correct modrm and sib generation.
6087         (i386_operand): Add warning for scale without index.
6088         Rewrite checks for valid base/index combinations.
6089
6090         * config/tc-i386.c (END_STRING_AND_SAVE): Protect arguments of
6091         macros and enclose in do while(0).
6092         (RESTORE_END_STRING): Likewise.
6093         (md_assemble): Add one to printed operand number so we start
6094         from 1 not 0.  Add some more gettext invocations.
6095         (i386_operand): Fix `%%s' -> `%%%s'. Inc printed operand
6096         number here too.
6097
6098         * config/tc-i386.h (WAIT_PREFIX, LOCKREP_PREFIX, ADDR_PREFIX,
6099         DATA_PREFIX, SEG_PREFIX): Define.
6100         * config/tc-i386.c (struct _i386_insn): Remove wait_prefix field.
6101         (check_prefix): Remove function.
6102         (add_prefix): New function.  Add prefix to i.prefix as well as
6103         doing checks.
6104         (md_assemble): Changes for add_prefix.  Remove hack for wait
6105         prefix, instead always output prefixes in fixed order.  Test
6106         for jcxz/loop when selecting between word & dword operations,
6107         and add address size prefix rather than operand size prefix.
6108         Remove operand -> address size hack when emitting jcxz/loop.
6109         (i386_operand): Remove O_Absent check as it's done in expr.
6110
6111 Wed Jun  3 15:09:10 1998  Ian Lance Taylor  <ian@cygnus.com>
6112
6113         * configure.in: Recognize m5200 as a cpu_type of m68k.
6114         * aclocal.m4: Rebuild with current libtool.
6115         * configure: Rebuild.
6116
6117 Wed Jun  3 14:11:59 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6118
6119         * config/tc-m68k.c (md_estimate_size_before_relax): Add more calls
6120         to relaxable_symbol to prevent references to external symbol from
6121         being relaxed.
6122
6123 Wed Jun  3 14:10:36 1998  Ian Lance Taylor  <ian@cygnus.com>
6124
6125         * config/tc-m68k.c (relaxable_symbol): If TARGET_OS is "elf", all
6126         symbols are relaxable.
6127
6128 Wed Jun  3 09:16:00 1998  Catherine Moore  <clm@cygnus.com>
6129
6130         * config/tc-v850.c (md_begin):  Don't create special
6131         sections by default.
6132
6133 Tue Jun  2 14:52:56 1998  Jeffrey A Law  (law@cygnus.com)
6134
6135         * config/tc-mips.c (macro): For div and udiv, close the
6136         reorder block as soon as possible.
6137
6138 Tue Jun  2 15:36:13 1998  Ian Lance Taylor  <ian@cygnus.com>
6139
6140         From Matt Semersky <matts@scd.hp.com>:
6141         * macro.c (macro_mri_mode): New function.
6142         * macro.h (macro_mri_mode): Declare.
6143         * read.c (s_mri): Call macro_mri_mode when switching in and out of
6144         MRI mode.
6145
6146 Tue Jun  2 13:32:22 1998  Klaus Kaempf  <kkaempf@progis.de>
6147
6148         * config/tc-alpha.c (s_alpha_comm): Allow alignment parameter in
6149         OBJ_EVAX case.
6150
6151         * config/tc-alpha.c (s_alpha_comm): Defer restoring character
6152         until after xstrdup in OBJ_EVAX case.
6153
6154 Tue Jun  2 13:11:13 1998  Pat Rankin  <rankin@eql.caltech.edu>
6155
6156         * config/tc-vax.c (md_create_short_jump): Fix off by two bug in
6157         offset calculation.  Also, use VAX_BRW from vax-inst.h instead
6158         of hardcoded magic number.
6159         (md_create_long_jump): Use VAX_JMP and VAX_ABSOLUTE_MODE macros.
6160
6161 Tue Jun  2 09:25:34 1998  Doug Evans  <devans@canuck.cygnus.com>
6162
6163         * read.c (do_s_func): New function.
6164         (s_func): Call it.
6165         * read.h (do_s_func): Add prototype.
6166
6167 Mon Jun  1 12:47:30 1998  Doug Evans  <devans@canuck.cygnus.com>
6168
6169         * config/tc-m32r.c (m32r_do_align): Only fill code sections with
6170         nops if fill pattern not specified.
6171
6172 Mon Jun  1 14:08:35 1998  Ian Lance Taylor  <ian@cygnus.com>
6173
6174         From Andrew Crabtree <andrewc@typhoon.rose.hp.com>:
6175         * config/te-go32.h (TE_GO32): Define.
6176         * config/tc-i386.h (LOCAL_LABEL): Don't define if TE_GO32.
6177
6178 Sun May 31 15:43:06 1998  Doug Evans  <devans@canuck.cygnus.com>
6179
6180         Implement .func/.endfunc pseudo-ops.
6181         * read.h (stabs_generate_asm_func,stabs_generate_asm_endfunc): Declare.
6182         (s_func): Declare.
6183         * read.c (potable): Add .func,.endfunc.
6184         (s_func): New function.
6185         * stabs.c (stabs_generate_asm_func,stabs_generate_asm_endfunc): New
6186         functions.
6187         (in_doc_func_p,current_function_label): New static globals.
6188         (stabs_generate_asm_lineno): Emit function relative stabs if in .func.
6189
6190 Fri May 29 18:13:12 1998  Ian Lance Taylor  <ian@cygnus.com>
6191
6192         * config/tc-a29k.h (WORKING_DOT_WORD): Define.
6193         * config/tc-alpha.h (WORKING_DOT_WORD): Define.
6194         * config/tc-arm.h (WORKING_DOT_WORD): Define.
6195         * config/tc-h8300.h (WORKING_DOT_WORD): Define.
6196         * config/tc-h8500.h (WORKING_DOT_WORD): Define.
6197         * config/tc-hppa.h (WORKING_DOT_WORD): Define.
6198         * config/tc-i860.h (WORKING_DOT_WORD): Define.
6199         * config/tc-i960.h (WORKING_DOT_WORD): Define.
6200         * config/tc-tic30.h (WORKING_DOT_WORD): Define.
6201         * config/tc-w65.h (WORKING_DOT_WORD): Define.
6202         * config/tc-z8k.h (WORKING_DOT_WORD): Define.
6203         * config/tc-a29k.c: Don't define md_short_jump_size,
6204         md_long_jump_size, md_create_short_jump or md_create_long_jump.
6205         * config/tc-alpha.c: Likewise.
6206         * config/tc-alpha.h: Likewise.
6207         * config/tc-arm.c: Likewise.
6208         * config/tc-h8300.c: Likewise.
6209         * config/tc-h8500.c: Likewise.
6210         * config/tc-hppa.c: Likewise.
6211         * config/tc-i860.c: Likewise.
6212         * config/tc-i960.c: Likewise.
6213         * config/tc-ppc.c: Likewise.
6214         * config/tc-sh.c: Likewise.
6215         * config/tc-sparc.h: Likewise.
6216         * config/tc-tic30.c: Likewise.
6217         * config/tc-w65.c: Likewise.
6218         * config/tc-z8k.c: Likewise.
6219
6220 Fri May 29 16:03:26 1998  Pat Rankin  <rankin@eql.caltech.edu>
6221
6222         * config/tc-vax.c (_): Delete this macro used for placeholder
6223         values in vax_operand_width_size; it conflicts with the _() macro
6224         used for internationalization.
6225
6226 Fri May 29 13:46:07 1998  Ian Lance Taylor  <ian@cygnus.com>
6227
6228         * symbols.c (symbol_find_base): Fix case insensitive symbol name
6229         code.  From Chris Moller <moller@bops.com>.
6230
6231         Based on patch from Klaus Kaempf <kkaempf@progis.de>:
6232         * struc-symbol.h (struct broken_word): Add seg and subseg fields.
6233         * read.c (emit_expr): Initialize seg and subseg fields of a new
6234         broken word.
6235         * write.c (write_object_file): Switch to the appropriate segment
6236         and subsegment when processing a broken word.
6237
6238         * config/tc-m68k.c (mri_assemble): New static function.
6239         (build_mri_control_operand): Call mri_assemble rather than
6240         md_assemble.
6241         (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
6242         (s_mri_endf, s_mri_endw): Likewise.
6243
6244 Wed May 27 11:16:25 1998  Ian Lance Taylor  <ian@cygnus.com>
6245
6246         * read.c (s_org): Call md_flush_pending_output if it is defined.
6247
6248         * config/tc-sparc.c (md_show_usage): Add \n\ to new string.
6249
6250 Tue May 26 19:27:52 1998  Stan Cox  <scox@equinox.cygnus.com>
6251
6252         * config/tc-sparc.c (OPTION_LITTLE_ENDIAN_DATA): New.
6253         (md_parse_option): Add for same.
6254         (sparc_md_end): Set bfd_mach_sparc_sparclite_le.
6255         (md_apply_fix3, tc_gen_reloc): Allow BFD_RELOC_SPARC_32LE.
6256         (cons_fix_new_sparc): Added to create BFD_RELOC_SPARC_32LE.
6257
6258         * config/tc-sparc.h (cons_fix_new_sparc): Added.
6259
6260 Thu May 21 15:02:41 1998  Nick Clifton  <nickc@cygnus.com>
6261
6262         * config/tc-arm.c (find_real_start): Relax definition of local
6263         labels.
6264
6265 Tue May 19 16:59:44 1998  Nick Clifton  <nickc@cygnus.com>
6266
6267         * config/tc-d30v.c (d30v_align): Apply address adjustment to all
6268         symbols at the given address, not just the last one specified.
6269
6270 Tue May 19 08:25:19 1998  Catherine Moore <clm@cygnus.com>
6271
6272         * config/tc-sparc.c (sparc_handle_align): Use number_to_chars_bigendian
6273         or number_to_chars_littleendian to write data.
6274
6275 Mon May 18 17:09:30 1998  Nick Clifton  <nickc@cygnus.com>
6276
6277         * config/tc-v850.c (md_assemble): Remove artificially created
6278         register name symbols.
6279
6280 Mon May 18 13:47:06 1998  Doug Evans  <devans@canuck.cygnus.com>
6281
6282         * write.c (fixup_segment): Change "segment" to "section" in
6283         error message.
6284
6285 Mon May 18 16:55:40 1998  Michael Meissner  <meissner@cygnus.com>
6286
6287         * write.c (fixup_segment): Change sym1-sym2 message again.
6288
6289 Mon May 18 09:31:43 1998  Michael Meissner  <meissner@cygnus.com>
6290
6291         * write.c (fixup_segment): Improve error message for sym1-sym2
6292         errors when sym1 is in a different segment from sym2.
6293
6294 Wed May 13 10:16:37 1998  Doug Evans  <devans@canuck.cygnus.com>
6295
6296         * config/tc-m32r.c (warn_unmatched_high): New static local.
6297         (OPTION_WARN_PARALLEL): Rename from OPTION_WARN.
6298         (OPTION_NO_WARN_PARALLEL): Rename from OPTION_NO_WARN.
6299         (md_longopts): Recognize --{no-,}warn-unmatched-high.
6300         (md_parse_option): Likewise.
6301         (md_show_usage): Likewise.
6302         (m32r_frob_file): Likewise.
6303
6304         * read.c (generate_file_debug,generate_lineno_debug): New functions.
6305         (read_a_source_file): Call them.
6306         * read.h (stabs_generate_asm_file): Declare.
6307         * stabs.c (stabs_generate_asm_file): New function.
6308         (generate_asm_file): New function.
6309         (stabs_generate_asm_lineno): Move file name handling into
6310         generate_asm_file.
6311
6312 Tue May 12 12:03:44 1998  Richard Henderson  <rth@cygnus.com>
6313
6314         * config/tc-d30v.c (cur_mul32_p, prev_mul32_p): Make static.
6315         (d30v_current_align, d30v_current_align_seg): New variables.
6316         (d30v_last_label): New variable.
6317         (d30v_align, s_d30v_align, s_d30v_text): New functions.
6318         (s_d30v_data, s_d30v_section): Likewise.
6319         (md_pseudo_table): Call them.
6320         (md_begin): Initialize d30v_current_align_seg.
6321         (md_assemble): Call d30v_align when needed by known current alignment.
6322         (d30v_frob_label, d30v_cons_align): New functions.
6323         * config/tc-d30v.h (md_do_align): Remove.
6324         (tc_frob_label): Call d30v_frob_label.
6325         (md_cons_align): New.
6326
6327         * config/tc-d30v.c (find_format): Convert complex expressions to
6328         expression symbols before processing.  Clean up code formatting.
6329
6330 Sun May 10 22:35:02 1998  Jeffrey A Law  (law@cygnus.com)
6331
6332         * po/Make-in (install-info): New target.
6333
6334 Thu May  7 15:49:07 1998  Jeffrey A Law  (law@cygnus.com)
6335
6336         * config/tc-mn10200.c (md_assemble): Handle "bra" just like "jmp"
6337         instructions.
6338         * config/tc-mn10300.c (md_assemble): Likewise.
6339
6340 Thu May  7 11:47:22 1998  Doug Evans  <devans@canuck.cygnus.com>
6341
6342         * Makefile.am: Update with `make dep-am'.
6343         (HFILES): Add cgen.h.
6344         (cgen.o): Depend on cgen.h.
6345         * Makefile.in: Regenerate.
6346
6347         * cgen.c (cgen_md_apply_fix3): Don't pass newline to as_warn_where.
6348
6349 Thu May  7 13:20:56 1998  Anders Blomdell  <anders.blomdell@control.lth.se>
6350
6351         * gasp.c (grab_label): Permit a label to be a preprocessor
6352         variable by permitting a label to start with a backslash.
6353
6354 Thu May  7 12:50:33 1998  Frank Ch. Eigler  <fche@cygnus.com>
6355
6356         * config/tc-mips.c (validate_mips_insn): Removed hack
6357         for previously inaccessible bitfields in some INSN_TRAP
6358         instructions.
6359
6360 Thu May  7 11:13:00 1998  Frank Ch. Eigler  <fche@cygnus.com>
6361
6362         * config/tc-d30v.c (do_assemble): Abort with error message
6363         if opcode operands do not match.
6364
6365 Thu May  7 09:36:06 1998  Frank Ch. Eigler  <fche@cygnus.com>
6366
6367         * config/tc-mips.c (macro_build, validate_mips_insn): Implement
6368         'q' operand format for 20-bit "break"/"sdbbp" instructions.
6369         (mips_ip): Truncate overflowed "break" 'c' operand.  Implement
6370         similar new 'q' operand.
6371
6372 Thu May  7 07:47:14 1998  Michael Meissner  <meissner@cygnus.com>
6373
6374         * cgen.c (cgen_asm_finish_insn): Fix typo.
6375
6376 Thu May  7 02:19:14 1998  Doug Evans  <devans@charmed.cygnus.com>
6377
6378         * cgen.h: New file.
6379         * cgen.c: Include it.
6380         (MAX_FIXUPS): Renamed to CGEN_MAX_FIXUPS.
6381         (cgen_asm_finish_insn): Result is now void.  New arg `result'.
6382         All callers updated.
6383         * config/tc-m32r.c: Include cgen.h.
6384         (m23r_insn): New members num_fixups,fixups.
6385
6386 Wed May  6 16:29:19 1998  Jeffrey A Law  (law@cygnus.com)
6387
6388         * config/tc-hppa.c (md_apply_fix): Slightly rework some code
6389         to avoid compiler warning.
6390
6391 Wed May  6 15:26:34 1998  Klaus Kaempf  <kkaempf@progis.de>
6392
6393         * makefile.vms: Run dec c with /nodebug.  Pass CC value when
6394         calling make.
6395
6396         * makefile.vms (OBJS): Add ehopt.obj
6397
6398 Wed May  6 15:11:12 1998  Klaus Kaempf  <kkaempf@progis.de>
6399
6400         * doc/c-vax.texi: Correct and extend vax/vms documentation.
6401
6402 Wed May  6 11:51:51 1998  Richard Henderson  <rth@cygnus.com>
6403
6404         * config/tc-d30v.c (do_assemble): Accept a new parameter requesting
6405         a short format insn.
6406         (md_assemble): Set it for explicitly packed insns.
6407
6408 Tue May  5 13:23:13 1998  Nick Clifton  <nickc@cygnus.com>
6409
6410         * config/obj-coff.c (c_symbol_merge): Do not take address of
6411         native fields when performing the memcpy.
6412
6413 Tue May  5 13:10:41 1998  Gavin Koch  <gavin@cygnus.com>
6414
6415         * config/tc-mips.c (macro,macro2): Implement
6416         M_DMULO_I, M_MULO_I, M_DMULOU_I, and M_MULOU_I.
6417
6418 Mon May  4 17:49:14 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6419
6420         * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Changed to keep
6421         relocations against globally visible symbols.
6422         * config/tc-m68k.c (relaxable_symbol): New macro.
6423         (m68k_ip, md_estimate_size_before_relax): Use it.
6424         (tc_m68k_fix_adjustable): Also handle weak symbols.
6425
6426 Mon May  4 16:12:23 1998  Ian Lance Taylor  <ian@cygnus.com>
6427
6428         * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Keep relocs for all
6429         references to externally visible symbols.
6430         * config/tc-i386.c (md_apply_fix3): When OBJ_ELF, don't add the
6431         values in twice for a PC relative reloc if the symbol is
6432         externally defined.
6433
6434         * config/tc-sparc.h (tc_fix_adjustable) [OBJ_AOUT]: When PIC,
6435         don't adjust a PC relative reloc against an externally visible
6436         symbol.
6437         * config/tc-sparc.c (md_apply_fix3): When generating a.out PIC,
6438         for a PC relative fixup against an externally visible defined
6439         symbol, arrange to store object file and addend values as though
6440         the symbol were not defined.
6441         (tc_gen_reloc): Likewise.
6442
6443 Thu Apr 30 13:09:39 1998  Fred Fish  <fnf@ninemoons.com>
6444
6445         * read.c (sizeof_leb128): Referenced externally by write.c so
6446         don't inline.
6447
6448 Wed Apr 29 15:45:57 1998  Michael Meissner  <meissner@cygnus.com>
6449
6450         * config/tc-m32r.c ({,expand_}debug_sym): New functions to record
6451         and expand a 'debug' symbol associated with the next instruction
6452         that does not cause a short instruction to be filled with a NOP.
6453         (md_pseudo_table): Add support for .debugsym.
6454         (assemble_parallel_insn): Add calls to expand_debug_sym as
6455         appropriate.
6456         (md_assemble): Ditto.
6457
6458 Tue Apr 28 19:16:26 1998  Tom Tromey  <tromey@cygnus.com>
6459
6460         * as.c (main): Conditionally call setlocale.
6461         * gasp.c (main): Likewise.
6462         * asintl.h: Include <locale.h> if HAVE_LOCALE_H.
6463         (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
6464
6465 Tue Apr 28 18:33:23 1998  Frank Ch. Eigler  <fche@cygnus.com>
6466
6467         * config/tc-d30v.c (md_show_usage): Correct gettext typo.
6468
6469 Tue Apr 28 12:16:30 1998  Ian Lance Taylor  <ian@cygnus.com>
6470
6471         * config/tc-hppa.c: Change all calls to bzero to use memset.
6472         (pa_ip): Add cast to avoid warning.
6473         (tc_gen_reloc, md_apply_fix): Likewise.
6474         (pa_find_space_by_number): Likewise.
6475         (hppa_force_relocation): Likewise.
6476         (pa_block): Change i to unsigned int.
6477         * config/obj-som.h (obj_som_copyright): Declare.
6478
6479 Tue Apr 28 11:35:56 1998  Frank Ch. Eigler  <fche@cygnus.com>
6480
6481         * ecoff.c (ecoff_build_lineno): Do not use dummy first_lineno
6482         for line numbers for assembly source.
6483
6484 Mon Apr 27 15:58:46 1998  Ian Lance Taylor  <ian@cygnus.com>
6485
6486         * configure.in: Change version number to 2.9.4
6487         * configure: Rebuild.
6488
6489 Mon Apr 27 12:07:33 1998  Doug Evans  <devans@seba.cygnus.com>
6490
6491         * cgen.c (cgen_asm_finish_insn): New arg relax_p.  All callers updated.
6492
6493 Mon Apr 27 15:16:12 1998  Ian Lance Taylor  <ian@cygnus.com>
6494
6495         * ecoff.h: Change symbolS in function declaration to struct
6496         symbol.
6497
6498 Sun Apr 26 13:44:22 1998  Ian Lance Taylor  <ian@cygnus.com>
6499
6500         * config/tc-sh.c (parse_reg): Add casts to avoid warnings.
6501         (md_convert_frag): Fix i18n typo.
6502
6503 Sat Apr 25 20:12:02 1998  Richard Henderson  <rth@cygnus.com>
6504
6505         * ecoff.c (ecoff_get_cur_proc_sym): New function.
6506         * ecoff.h: Protoype it.
6507         * config/tc-alpha.c [ELF] (s_alpha_prologue): New function.
6508         [EVAX] (s_alpha_prologue): Delete.
6509         (md_pseudo_table): Update.
6510
6511 Sat Apr 25 14:00:52 1998  Ian Lance Taylor  <ian@cygnus.com>
6512
6513         * config/tc-i960.c (md_assemble): Change bp_error_msg from static
6514         array to local pointer.
6515         (get_args, parse_expr): Add casts to avoid warnings.
6516
6517 Fri Apr 24 12:47:42 1998  Philippe De Muyter  <phdm@macqel.be>
6518
6519         * read.c (s_set): Cast xmalloc return value to fragS *.
6520         * config/tc-m68k.c (m68k_ip): Function made static to match
6521         previous forward declaration.
6522         (insert_reg, init_regtable, md_convert_frag_1): Likewise.
6523
6524 Fri Apr 24 09:26:46 1998  Nick Clifton  <nickc@cygnus.com>
6525
6526         * config/tc-v850.c: Add internationalisation macros to error
6527         strings.
6528
6529         * config/tc-m32r.c (can_make_parallel): Add internationalisation
6530         macros to error strings.
6531
6532 Thu Apr 23 19:23:23 1998  Ian Lance Taylor  <ian@cygnus.com>
6533
6534         * config/tc-ppc.c (ppc_fix_adjustable): Correct test of whether a
6535         reloc is in the TOC csect.
6536         (md_apply_fix3): Correct gettext typo.
6537
6538 Thu Apr 23 14:58:31 1998  Nick Clifton  <nickc@cygnus.com>
6539
6540         * config/tc-arm.c (find_real_start): Ignore symbols starting with
6541         .L - they are local labels and the branches are not really
6542         function calls but rather far jumps.
6543
6544 Wed Apr 22 15:57:21 1998  Tom Tromey  <tromey@cygnus.com>
6545
6546         * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
6547
6548 Wed Apr 22 14:52:36 1998  Ian Lance Taylor  <ian@cygnus.com>
6549
6550         * config/tc-i386.c (md_assemble): Print operand number rather than
6551         using ordinal_names.
6552         (i386_operand): Likewise.
6553
6554 Tue Apr 21 22:34:25 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
6555
6556         * Makefile.am (INTLLIBS): Define to work around apparent automake
6557         bug.
6558         All Makefiles: Regenerated.
6559
6560         * Many files: Added gettext invocations around user-visible
6561         strings.
6562         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
6563         HAVE_LC_MESSAGES): Define.
6564         * dep-in.sed: Added asintl.h.
6565         * po/Make-in: New file.
6566         * gasp.c (main): Call setlocale, bindtextdomain, and textdomain.
6567         Include "asintl.h".
6568         * read.c (Z_): Renamed from `_'.
6569         * Makefile.am (SUBDIRS): Added po.
6570         (POTFILES): new macro.
6571         (po/POTFILES.in): New target.
6572         ($(OBJS)): Added asintl.h.
6573         (HFILES): Likewise.
6574         (INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl.
6575         (as_new_LDADD): Added $(INTLLIBS).
6576         (as_new_DEPENDENCIES): Added $(INTLDEPS).
6577         (gasp_new_LDADD): Added $(INTLLIBS).
6578         (gasp_new_DEPENDENCIES): New macro.
6579         * configure, aclocal.m4: Rebuilt.
6580         * configure.in: Call CY_GNU_GETTEXT.  Generate po/Makefile.in and
6581         po/Makefile.
6582         (ALL_LINGUAS): Define.
6583         * macro.c: Include "asintl.h".
6584         * as.c (main): Call setlocale, bindtextdomain, and textdomain.
6585         * as.h: Include "asintl.h".
6586         * config/tc-i386.c (ordinal_names): Removed.
6587         (md_assemble): Changed error text to avoid ordinal_names.
6588         (i386_operand): Likewise.
6589         (reloc): Added as_bad to avoid i18n problems.
6590         (tc_gen_reloc): Likewise.
6591         * config/tc-arm.c (bad_args): Now a #define.
6592         (bad_pc): Likewise.
6593         * config/obj-vms.c (VMS_stab_parse): Changed type of
6594         `long_const_msg'.
6595         (global_symbol_directory): Unified strings to avoid i18n
6596         problems.
6597         * config/tc-m68k.c (get_reloc_code): Added some as_bad calls to
6598         avoid i18n problems.
6599         * config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems.
6600         * config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid
6601         i18n problems.
6602         * config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n
6603         problems.
6604         * config/tc-v850.c (md_assemble): Changed C++ comment into C
6605         comment.
6606         * config/tc-vax.c (md_assemble): Added as_warn to avoid i18n
6607         problems.
6608         * as.c (print_version_id): Added an fprintf to avoid i18n
6609         problems.
6610         * cond.c (cond_finish_check): Added as_bad call to avoid i18n
6611         problems.
6612         * expr.c (expr): Added as_warn call to avoid i18n problems.
6613         * messages.c (as_assert): Changed code to avoid i18n problems.
6614         (as_abort): Likewise.
6615         * read.c (pseudo_set): Added as_bad call to avoid i18n problems.
6616         (s_space): Likewise.
6617         * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
6618
6619 Tue Apr 21 17:01:22 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
6620
6621         * config/tc-i386.c (check_prefix): New static function, split out
6622         from md_assemble.
6623         (struct _i386_insn): Add wait_prefix field.
6624         (md_assemble): Remove wait_prefix local variable.  Use
6625         check_prefix when adding a prefix.
6626
6627         * config/tc-i386.c (current_templates): New static variable.
6628         (md_assemble): Remove current_templates local variable.
6629         (md_assemble, i386_operand): Improve error and warning messages in
6630         many places.  Add RESTORE_END_STRING in many places before error
6631         return.  Clarify some comments.
6632
6633         * config/tc-i386.c (struct _i386_insn): Change seg field to a two
6634         element array.
6635         (md_assemble): Parse string instruction operands, looking for
6636         segment override prefixes.  Check for invalid segment prefixes on
6637         string instruction.
6638         (i386_operand): i.seg[] and max mem_operand changes for string
6639         insns.
6640         * config/tc-i386.h (EsSeg): Define.
6641
6642         * config/tc-i386.h (regKludge): Define.
6643         (iclrKludge, imulKludge): Don't define.
6644         * config/tc-i386.c (md_assemble): Merge imulKludge and iclrKludge
6645         code.  Move ReverseRegRegmem fudges into Modrm case.  Reorder
6646         opcode_modifier checks to look for more common cases first.  Add
6647         default_seg for IsString case.
6648
6649 Tue Apr 21 16:18:12 1998  Ian Lance Taylor  <ian@cygnus.com>
6650
6651         * configure.in: Call AM_PROG_LEX rather than AC_PROG_LEX and
6652         AC_DECL_YYTEXT.
6653         * configure: Rebuild with new automake and libtool.
6654         * aclocal.m4, Makefile.in: Likewise.
6655
6656         * doc/Makefile.am (as.dvi): New target.
6657         * doc/Makefile.in: Rebuild.
6658
6659 Sat Apr 18 01:21:04 1998  Stan Cox  <scox@cygnus.com>
6660
6661         * configure.in: Added sparc86x support.
6662
6663         * configure: Rebuild.
6664
6665         * config/tc-sparc.c (lookup_arch): Added arch_type to struct
6666         sparc_arch.
6667         (md_parse_option): Warn if -EL is not supported for this architecture.
6668
6669         * config/tc-sparc.h (SPARC_BIENDIAN) Always define.
6670
6671 Sat Apr 18 01:19:01 1998  Jeffrey A Law  (law@cygnus.com)
6672
6673         * config/tc-mips.c (mips_ip): Note when we use get match on
6674         the full instruction name.
6675
6676 Wed Apr 15 15:17:27 1998  Richard Henderson  <rth@cygnus.com>
6677
6678         * symbols.c (resolve_symbol_value) [O_symbol]: Also store the symbol
6679         back into the expression to handle add/sub simplification correctly.
6680
6681 Wed Apr 15 07:06:04 1998  Catherine Moore  <clm@cygnus.com>
6682
6683         * config/tc-mips.c (hilo_interlocks): Remove 4300.
6684
6685 Mon Apr 13 16:51:04 1998  Nick Clifton  <nickc@cygnus.com>
6686
6687         * config/tc-arm.c (do_msr): Support undocumented 'msr cpsr_flg,
6688         #<n>' instruction.
6689
6690 Thu Apr  9 10:29:42 1998  Doug Evans  <devans@canuck.cygnus.com>
6691
6692         * symbols.c (max_indent_level): New global.
6693         (print_symbol_value_1): Use it.
6694         * expr.h (expr_build_dot): Declare.
6695         * expr.c (expr_build_dot): New function.
6696
6697 Wed Apr  8 16:16:11 1998  Doug Evans  <devans@canuck.cygnus.com>
6698
6699         * symbols.c (print_binary): New function.
6700         (print_expr_1): Call it.
6701
6702 Mon Apr  6 12:06:39 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6703
6704         * config/tc-m68k.c (m68k_ip, case "#B"): Install the offset of the
6705         operand in the opcode.
6706
6707 Fri Apr  3 11:58:19 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
6708
6709         * config/tc-i386.h: Reorder operand flags and opcode modifier
6710         flags for clarity.  Remove unused definitions: Unknown,
6711         ImmUnknown, DispUnknown, NoModrm.
6712         * config/tc-i386.c (type_names): Add missing Debug type.
6713         (md_assemble): Better duplicate prefix checking.  Quicker string
6714         instruction check via new opcode_modifier flag.
6715
6716 Fri Apr  3 11:44:34 1998  Ian Lance Taylor  <ian@cygnus.com>
6717
6718         * doc/as.texinfo (Invoking): Clarify -Wa example.
6719
6720 Fri Apr  3 09:12:23 1998  Gavin Koch  <gavin@cetus.cygnus.com>
6721
6722         * config/tc-mips.c (mips_pseudo_table): Add weakext entry.
6723         (s_mips_weakext): Define.
6724         * ecoff.c (ecoff_directive_weakext): Don't define if defined(TC_MIPS).
6725         * config/obj-ecoff.c (obj_pseudo_table): Don't add weakext if
6726         defined(TC_MIPS).
6727
6728 Thu Apr  2 22:42:02 1998  Jeffrey A Law  (law@cygnus.com)
6729
6730         * config/tc-mn10200.c (tc_gen_reloc): The difference of two symbols
6731         is an error if the value can not be computed at assembly time.
6732         * config/tc-mn10300.c (tc_gen-reloc): Likewise.
6733
6734 Thu Apr  2 16:36:47 1998  Ian Lance Taylor  <ian@cygnus.com>
6735
6736         * gasp.c (main): Set next field of new include_path structure to
6737         NULL.  From Avery Pennarun <averyp@gdc.ca>.
6738
6739         * read.c (s_mri_sect): Call as_bad rather than abort for an
6740         unsupported MRI target.
6741
6742 Wed Apr  1 11:08:27 1998  Nick Clifton  <nickc@cygnus.com>
6743
6744         * config/tc-arm.c (arm_validate_fix): New function.  Determine if
6745         the destination of a branch instruction should be altered.
6746         (find_real_start): New function:  Locate the real, Thumb coded
6747         start of a Thumb function.
6748         (do_t_branch23): Alter the destination of branches to Thumb
6749         functions.
6750
6751         * config/tc-arm.h: Define TC_VALIDATE_FIX.
6752
6753 Tue Mar 31 13:27:33 1998  Dean M. Deaver  <deaver@amt.tay1.dec.com>
6754
6755         * config/tc-arm.c (decode_shift): Handle addressing mode 2 w/rrx
6756         also.
6757
6758 Wed Apr  1 13:13:20 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6759
6760         * doc/as.texinfo: Use @itemx for a secondary item in a table.
6761         * doc/c-hppa.texi: Likewise.
6762
6763 Tue Mar 31 17:52:40 1998  Ian Lance Taylor  <ian@cygnus.com>
6764
6765         * Makefile.am: Rebuild dependencies.
6766         * Makefile.in: Rebuild.
6767
6768         * Makefile.am (DEP_INCLUDES): New variable.
6769         (.dep1): Change to work when srcdir is not an absolute path.
6770         (.tcdep, .objdep, .dep2, dep.sed): Likewise.
6771         * Makefile.in: Rebuild.
6772
6773 Mon Mar 30 12:46:48 1998  Ian Lance Taylor  <ian@cygnus.com>
6774
6775         * config/tc-i386.h, config/tc-i386.c: Revert March 24
6776         LinearAddress patch.
6777
6778         * configure.in: Set version to 2.9.1.
6779         * configure: Rebuild.
6780
6781         * Branched binutils 2.9.
6782
6783 Mon Mar 30 11:22:08 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
6784
6785         * config/tc-i386.h (FWait): Define.
6786         * config/tc-i386.c (md_assemble): Emit fwait prefix before any
6787         other prefixes.  Check FWait flag in opcode table to see which
6788         instructions require an fwait prefix.
6789
6790 Mon Mar 30 10:12:00 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6791
6792         * stabs.c (get_stab_string_offset): Always create a stab string
6793         section.
6794
6795 Sat Mar 28 22:28:02 1998  Ian Lance Taylor  <ian@cygnus.com>
6796
6797         Fix some gcc -Wall warnings:
6798         * atof-generic.c (atof_generic): Add casts to avoid warnings.
6799         * ehopt.c (eh_frame_code_alignment): Likewise.
6800         * expr.c (integer_constant, operand): Likewise.
6801         * frags.c (frag_align): Likewise.
6802         * gasp.c (level_0, change_base, doinstr): Likewise.
6803         * hash.c (hash_ask): Likewise.
6804         * listing.c (listing_page, calc_hex, print_lines): Likewise.
6805         (debugging_pseudo): Likewise.
6806         * macro.c (define_macro, check_macro): Likewise.
6807         * read.c (read_a_source_file, s_align, s_float_space): Likewise.
6808         (ignore_rest_of_line, float_cons): Likewise.
6809         * symbols.c (decode_local_label_name): Likewise.
6810         * write.c (record_alignment, cvs_frag_to_fill): Likewise.
6811         (fixup_segment, number_to_chars_bigendian): Likewise.
6812         (number_to_chars_littleendian): Likewise.
6813         * config/atof-ieee.c (gen_to_words): Likewise.
6814         * config/tc-sparc.c (md_begin, md_assemble): Likewise.
6815         (sparc_ip, parse_keyword_arg, s_common): Likewise.
6816         * read.c (output_big_sleb128): Initialize locals to avoid
6817         warnings.
6818         (output_big_uleb128, equals): Likewise.
6819         * atof-generic.c (atof_generic): Change number_of_digits_* locals
6820         to unsigned int.  Change zeros to unsigned int.
6821         * cond.c (s_if): Add return to default case.
6822         * frags.c (frag_now_fix): Change return type to addressT.
6823         * frags.h (frag_now_fix): Update declaration.
6824         * listing.c (file_info_struct): Change linenum to unsigned int.
6825         (struct list_info_struct): Change hll_line to unsigned int.
6826         (print_source): Update format string.
6827         * read.c (emit_expr): Change scan to unsigned int, and don't
6828         bother to initialize it.
6829         * symbols.c (dollar_label_count): Change to unsigned long.
6830         * write.c (adjust_reloc_syms): Remove unused label reduce_fixup.
6831         * config/tc-sparc.c (sparc_memory_model): Only define if OBJ_ELF.
6832         * config/tc-sparc.c (tc_gen_reloc): Add return to default case.
6833
6834 Fri Mar 27 12:46:47 1998  Ian Lance Taylor  <ian@cygnus.com>
6835
6836         * config/tc-m68k.c (m68k_ip): Check legal addressing modes for
6837         mcf5200 just as we do for m68000.
6838         (m68k_init_after_args): Likewise.
6839         (md_estimate_size_before_relax): Likewise.
6840
6841 Fri Mar 27 10:30:01 1998  Catherine Moore  <clm@cygnus.com>
6842
6843         * config/tc-v850.c (md_assemble):  Store relocation addend in
6844         fixup instead of instruction.
6845
6846 Thu Mar 26 23:07:18 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>
6847
6848         * config/tc-i386.c (md_assemble): Swap template arguments to
6849         CONSISTENT_REGISTER_MATCH macro in reverse direction test.
6850         This macro is currently symmetric, so passing them the wrong
6851         way didn't cause any problem, but may if the macro is changed
6852         in the future.
6853         After copying template to i.tm, use i.tm. rather than t-> to
6854         access fields, and make t a const*
6855         Move i.tm.operand_types[] swap to immediately after the copy.
6856
6857 Wed Mar 25 13:44:18 1998  Doug Evans  <devans@canuck.cygnus.com>
6858
6859         * expr.h (expr_build_uconstant): Add prototype.
6860         (expr_build_unary,expr_build_binary): Add prototypes.
6861         * expr.c (expr_build_uconstant): New function.
6862         (expr_build_unary,expr_build_binary): New functions.
6863
6864 Wed Mar 25 13:10:42 1998  Bruno Haible  <bruno@linuix.mathematik.uni-karlsruhe.de>
6865
6866         * gasp.c (IS*): Cast argument to unsigned char, not unsigned int.
6867         * macro.c (macro_expand_body): Increase buffer size.
6868         * messages.c (as_warn): Likewise.
6869         (as_warn_where, as_bad, as_bad_where): Likewise.
6870
6871 Wed Mar 25 12:59:07 1998  Ian Lance Taylor  <ian@cygnus.com>
6872
6873         Based on patch from H.J. Lu  <hjl@gnu.org>:
6874         * Makefile.am (DISTSTUFF): New variable.
6875         (diststuff): New target.
6876         * Makefile.in: Rebuild.
6877
6878 Tue Mar 24 16:51:29 1998  Nick Clifton  <nickc@cygnus.com>
6879
6880         * config/tc-m32r.h (md_cleanup, md_elf_section_change_hook): Call
6881         m32r_elf_section_change_hook.
6882
6883         * config/tc-m32r.c (m32r_elf_section_change_hook): New function to
6884         emit a nop if a section ends with a 16 bit instruction.
6885
6886 Tue Mar 24 19:48:09 1998  Ian Lance Taylor  <ian@cygnus.com>
6887
6888         * config/obj-coff.c (obj_coff_bss): Compile unconditionally.  Call
6889         s_lcomm rather than obj_coff_lcomm.
6890         (obj_pseudo_table): Compile .bss pseudo-op unconditionally.
6891
6892 Tue Mar 24 18:30:58 1998  H.J. Lu  <hjl@gnu.org>
6893
6894         * config/tc-i386.h (LinearAddress): Define.
6895         * config/tc-i386.c (md_assemble): If LinearAddress is set for the
6896         instruction, don't use a default segment.
6897
6898 Mon Mar 23 18:53:40 1998  Joel Sherrill  <joel@OARcorp.com>
6899
6900         * configure.in: (sh*-*-rtems*): Switched from ELF to COFF.
6901         * configure: Rebuild.
6902
6903 Fri Mar 20 19:15:44 1998  Ian Lance Taylor  <ian@cygnus.com>
6904
6905         * aclocal.m4, configure: Rebuild with libtool 1.2.
6906
6907 Thu Mar 19 16:03:12 1998  Nick Clifton  <nickc@cygnus.com>
6908
6909         * config/tc-arm.c (md_apply_fix3): fix code to test the range of
6910         PC relative branches.  Patch courtesy of Jonathan Walton.
6911
6912
6913 Wed Mar 18 09:29:51 1998  Nick Clifton  <nickc@cygnus.com>
6914
6915         * configure.in (emulations): Add thumb-pe target.
6916
6917         * configure (emulations): Add thumb-pe target.
6918
6919 1998-03-17  Ken Raeburn  <raeburn@cygnus.com>
6920
6921         * itbl-lex.l (yywrap): Don't define if already defined as a
6922         macro.
6923
6924 Fri Mar 13 16:31:38 1998  Tom Tromey  <tromey@cygnus.com>
6925
6926         * depend.c (quote_string_for_make): New function.
6927         (wrap_output): Use it.
6928
6929 Thu Mar 12 18:28:22 1998  Nick Clifton  <nickc@cygnus.com>
6930
6931         * config/obj-elf.c (obj_elf_section): Set bss flag in seg_info
6932         structure if type is SHT_NOBITS.  [Bug fix courtesy of rth]
6933
6934 Sat Feb 28 17:28:55 1998  Richard Henderson  <rth@cygnus.com>
6935
6936         * config/tc-alpha.c (md_shortopts, md_longopts, md_parse_option):
6937         Recognize -GN and -relax.
6938         (md_begin): Initialize gp size from -G switch.
6939         (alpha_force_relocation): Always force if -relax.
6940         (alpha_align): Take a new argument that will specify when to
6941         emit an R_ALPHA_ALIGN relocation (though we don't do that now).
6942         Change all callers.  Emit nop alignment padding as nop+unop pair.
6943
6944 Sat Feb 28 17:06:22 1998  Richard Henderson  <rth@cygnus.com>
6945
6946         * config/obj-elf.c [TC_ALPHA]: Include <elf/alpha.h>.
6947         * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): New.
6948
6949 Thu Feb 26 15:49:04 1998  Michael Meissner  <meissner@cygnus.com>
6950
6951         * config/tc-d30v.c (write_2_short): Delayed jsr instructions don't
6952         require padding to the next long word boundary.
6953
6954 Mon Feb 23 11:29:06 1998  Doug Evans  <devans@seba.cygnus.com>
6955
6956         * cgen.c: #include symcat.h.
6957         * config/tc-m32r.c: Likewise.
6958
6959 Mon Feb 23 10:27:40 1998  Jeffrey A Law  (law@cygnus.com)
6960
6961         * config/tc-mips.c (mips_ip, case 'P'): Make 'P' arguments be
6962         absolute expressions instead of '$' prefixed register names.
6963
6964 Sat Feb 21 22:36:52 1998  Richard Henderson  <rth@cygnus.com>
6965
6966         * read.c (s_set): Record file and line info for symbols when -as.
6967         (pseudo_set): Don't overwrite that dummy fragment.
6968
6969 Fri Feb 20 15:03:13 1998  Ian Lance Taylor  <ian@cygnus.com>
6970
6971         * config/tc-ppc.c (md_pseudo_table): Add "section".
6972         (ppc_named_section): New static function.
6973
6974 Thu Feb 19 22:25:42 1998  Richard Henderson  <rth@cygnus.com>
6975
6976         * tc-ppc.c (ppc_biei): Cache the last symbol we inserted
6977         so we don't have to scan the entire list.
6978
6979 Tue Feb 17 17:02:15 1998  Fred Fish  <fnf@cygnus.com>
6980
6981         * config/tc-d30v.c (parallel_ok): For the explicitly parallel
6982         case, allow the parallel instructions to modify the same flag
6983         bits.
6984
6985 Thu Feb 19 16:08:15 1998  Richard Henderson  <rth@cygnus.com>
6986
6987         * listing.c (list_symbol_table): Categorize symbols by
6988         undefined_section rather than sy_frag->line == NULL.
6989
6990 Wed Feb 18 23:39:46 1998  Richard Henderson  <rth@cygnus.com>
6991
6992         * Makefile.am (install-exec-local): Install properly when ln
6993         fails or tooldir == prefix.
6994
6995 Tue Feb 17 18:58:51 1998  Doug Evans  <devans@seba.cygnus.com>
6996
6997         * cgen.c (cgen_md_apply_fix3): Delete call to validate_operand.
6998         Test result of insert_operand for error.
6999
7000 Fri Feb 13 16:41:42 1998  Ian Lance Taylor  <ian@cygnus.com>
7001
7002         * Makefile.am (AUTOMAKE_OPTIONS): Add cygnus.
7003         * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
7004         * doc/Makefile.am (AUTOMAKE_OPTIONS): Define.
7005         * doc/Makefile.in: Rebuild.
7006
7007 Fri Feb 13 00:47:44 1998  Ian Lance Taylor  <ian@cygnus.com>
7008
7009         * config/tc-mips.c (macro_build): Handle operand type 'C'.
7010         (macro): Fix handling of M_COP[0-3].
7011
7012 Thu Feb 12 14:06:59 1998  Ian Lance Taylor  <ian@cygnus.com>
7013
7014         Based on patches from Ross Harvey <ross@teraflop.com>:
7015         * macro.c (ISSEP): Only treat '<' and '>' as separator characters
7016         if macro_alternate or macro_mri.
7017         (getstring): Remove support for byte constants between < and >.
7018         (get_any_string): '<' only starts a string if macro_alternate or
7019         macro_mri.
7020         (macro_expand_body): Permit keyword parameters following
7021         positional parameters.
7022
7023         NetBSD patches from Gordon W. Ross <gwr@mc.com>:
7024         * configure.in (alpha*-*-netbsd*): New target.
7025         * config/te-nbsd.h (LOCAL_LABELS_FB): Define.
7026         * configure: Rebuild.
7027
7028         * as.h (flag_warn_suppress_instructionswap): Move from here...
7029         * config/tc-d10v.c (flag_warn_suppress_instructionswap): ...to
7030         here, and make static.
7031
7032         * ehopt.c (eh_frame_code_alignment): Only use seg_info if
7033         BFD_ASSEMBLER or MANY_SEGMENTS.
7034
7035         * as.c (show_usage): Update bug-gnu-utils address.
7036         * gasp.c (show_usage): Likewise.
7037         * doc/as.texinfo (Bug Reporting): Likewise.
7038
7039 Wed Feb 11 23:26:28 1998  Jeffrey A Law  (law@cygnus.com)
7040
7041         * config/tc-mips.c (load_address): Don't use mips III or mips IV
7042         insns regardless of the size of a pointer if we're in mips I or
7043         MIPS II mode.
7044         (macro, macro2, s_cprestore, s_cpadd): Likewise.
7045
7046 Thu Feb 12 03:41:00 1998  J"orn Rennecke  <amylaar@cygnus.co.uk>
7047
7048         Fix rac to accept only a0:
7049         * tc-d10v.c (parallel_ok, find_opcode):
7050         Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
7051         Introduce OPERAND_GPR.
7052
7053 Wed Feb 11 16:28:13 1998  Richard Henderson  <rth@cygnus.com>
7054
7055         * read.c (s_fill): Handle non-constant repeat counts by creating
7056         an rs_space fragment.
7057
7058 Tue Feb 10 18:31:31 1998  Ian Lance Taylor  <ian@cygnus.com>
7059
7060         * config/tc-i386.c (i386_operand): Change error added Jan 2 1998
7061         from as_bad to as_warn.
7062
7063 Tue Feb 10 18:04:00 1998  Jim Lemke  <jlemke@cygnus.com>
7064
7065         * as.c: (perform_an_assembly_pass): Use [TEXT|DATA|BSS]_SECTION_NAME
7066         * as.h: Define default values of [TEXT|DATA|BSS]_SECTION_NAME
7067         * config/obj-elf.c (elf_begin): Use [TEXT|DATA|BSS]_SECTION_NAME
7068
7069 Tue Feb 10 17:58:18 1998  Ian Lance Taylor  <ian@cygnus.com>
7070
7071         * ehopt.c (eh_frame_code_alignment): If not BFD_ASSEMBLER, use
7072         seg_fix_rotP rather than fix_root from seg_info.
7073
7074 Tue Feb 10 15:32:22 1998  Ian Carmichael  <iancarm@cygnus.com>
7075
7076         * expr.c: Add support for 0x1_2_3_4 bignums.
7077
7078 Tue Feb 10 14:43:40 1998  Ian Lance Taylor  <ian@cygnus.com>
7079
7080         * configure.in: Change -linux* to -linux-gnu*.
7081         * configure: Rebuild.
7082
7083         * app.c (do_scrub_begin): Treat \r as whitespace.
7084
7085 Mon Feb  9 14:16:11 1998  Ian Lance Taylor  <ian@cygnus.com>
7086
7087         * Makefile.am: Update dependencies.
7088         * Makefile.in: Rebuild.
7089
7090 Sat Feb  7 15:33:51 1998  Ian Lance Taylor  <ian@cygnus.com>
7091
7092         * configure, aclocal.m4: Rebuild with new libtool.
7093
7094 Fri Feb  6 16:08:30 1998  Jeffrey A Law  (law@cygnus.com)
7095
7096         * config/tc-mips.c (md_begin): If mips_cpu is set, then use it as
7097         the argument to bfd_set_arch_mach.
7098         (load_address): Use bfd_arch_bits_per_address to determine the
7099         bit size of an address instead of looking at the isa level.
7100         (macro, macro2, s_cprestore, s_cpadd): Likewise.
7101
7102 Fri Feb  6 14:44:34 1998  Nick Clifton  <nickc@cygnus.com>
7103
7104         * config/tc-v850.c (md_parse_option): Add -mv850any command line option.
7105
7106 Thu Feb  5 12:39:08 1998  Ian Lance Taylor  <ian@cygnus.com>
7107
7108         * ehopt.c: New file.
7109         * as.h (enum _relax_state): Add rs_cfa.
7110         (check_eh_frame, eh_frame_estimate_size_before_relax): Declare.
7111         (eh_frame_relax_frag, eh_frame_convert_frag): Declare.
7112         * read.c (emit_expr): Call check_eh_frame.
7113         * write.c (cvt_frag_to_fill): Handle rs_cfa.
7114         (relax_segment): Likewise.
7115         * Makefile.am: Rebuild dependencies.
7116         (GAS_CFILES): Add ehopt.c.
7117         (GENERIC_OBJS): Add ehopt.o.
7118         * doc/internals.texi (Frags): Document rs_cfa.
7119
7120         * as.c (show_usage): Mention --traditional-format.
7121         (parse_args): Accept --traditional-format.
7122         * as.h (flag_traditional_format): Declare.
7123         * output-file.c (output_file_create): If flag_traditional_format,
7124         set BFD_TRADITIONAL_FORMAT on stdoutput.
7125         * doc/as.texinfo, doc/as.1: Document --traditional-format.
7126
7127         * config/tc-mips.c (append_insn): Make sure that if we have a
7128         fixup for an unmatched %hi reloc, it does not associated with a
7129         variant frag.
7130
7131         * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
7132         * doc/Makefile.in: Likewise.
7133
7134 Wed Feb  4 15:41:54 1998  Nick Clifton  <nickc@cygnus.com>
7135
7136         * config/tc-m32r.c (check_for_side_effects): New function.
7137         (can_make_parallel): Add checks for instruction side effects
7138         clashing with the other instruction.
7139         (assemble_parallel_insn): Improve warning messages.  Return error
7140         message from non-swapped instruction order.
7141
7142 Wed Feb  4 20:00:26 1998  James G. Smith  <jsmith@teknema.demon.co.uk>
7143
7144         * config/tc-arm.c: Rename arm_after_pass_hook() to arm_cleanup().
7145
7146         * config/tc-arm.h: Replace md_after_pass_hook definition with a
7147         md_cleanup definition.  This moves the forced literal output to
7148         the end of the source pass, and avoids macro's inserting literals
7149         into the code immediately after the macro expansion.
7150
7151 Wed Feb  4 13:17:19 1998  Ian Lance Taylor  <ian@cygnus.com>
7152
7153         * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: A reloc against
7154         a gas internal symbol is adjustable.
7155         * config/tc-ppc.h (tc_fix_adjustable): Likewise.
7156
7157         * as.h: If gcc version greater than 2.6, use `__format__' and
7158         `__printf__' in function attributes, rather than `format' and
7159         `printf'.
7160
7161 Mon Feb  2 18:38:18 1998  Ian Lance Taylor  <ian@cygnus.com>
7162
7163         * config/tc-sparc.c: Only include elf/sparc.h if OBJ_ELF.
7164
7165 Mon Feb  2 18:30:34 1998  Steve Haworth  <steve@pm.cse.rmit.EDU.AU>
7166
7167         Add tms320c30 support:
7168         * config/tc-tic30.h: New file.
7169         * config/tc-tic30.c: New file.
7170         * config/obj-coff.h: If TC_TIC30, include coff/tic30.h and define
7171         TARGET_FORMAT as "coff-tic30".
7172         * configure.in (tic30-*-*aout*, tic30-*-*coff*): New targets.
7173         * Makefile.am: Rebuild dependencies.
7174         (CPU_TYPES): Add tic30.
7175         (CPU_OBJ_VALID): tic30-aout is valid.
7176         (TARGET_CPU_CFILES): Add config/tc-tic30.c.
7177         (TARGET_CPU_HFILES): Add config/tc-tic30.h.
7178         * configure, Makefile.in: Rebuild.
7179
7180 Mon Feb  2 10:20:37 1998  Nick Clifton  <nickc@cygnus.com>
7181
7182         * config/tc-v850.c (md_assemble): Improvements to error messages.
7183
7184 Mon Feb  2 12:39:05 1998  Geoff Keating  <geoffk@ozemail.com.au>
7185
7186         * config/tc-ppc.c (md_apply_fix3): Change BFD_RELOC_HI16 and
7187         BFD_RELOC_HI16_S to store the high bits of any value.
7188
7189         * config/tc-ppc.h (tc_fix_adjustable): Undo change of Fri Jun 27.
7190         (TC_RELOC_RTSYM_LOC_FIXUP): Don't let the
7191         assembler calculate relocations to any external symbol at all.
7192         * config/tc-ppc.c (md_apply_fix3) [OBJ_ELF]: Correct bugs
7193         involving generation of pc-relative relocs.
7194         (md_pcrel_from_section) [OBJ_ELF]: The job this code used to do
7195         has been moved to md_apply_fix3.
7196
7197         * config/tc-ppc.c (md_apply_fix3): Fix test for too-far branch.
7198         (ppc_elf_suffix): Warn about 'identifier+constant@got' syntax,
7199         which actually means (the address of identifier's GOT entry) +
7200         constant, which is not particularly useful.
7201
7202 Fri Jan 30 11:02:35 1998  Doug Evans  <devans@canuck.cygnus.com>
7203
7204         * read.h (include_dirs): Declare.
7205         (include_dir_count,include_dir_maxlen): Declare.
7206
7207 Fri Jan 30 11:47:02 1998  Ian Lance Taylor  <ian@cygnus.com>
7208
7209         * configure.in: Correct check for shared opcodes library.
7210         * configure: Rebuild.
7211
7212         * listing.c (buffer_line): If we can't open the file, set at_end.
7213         (listing_print): Remove unused local variable fi.
7214
7215         * config/m68k-parse.y (reglistpair): Handle register list in
7216         either order.
7217
7218         * config/vms-conf.h: Don't undef VERSION.
7219
7220 Thu Jan 29 14:42:44 1998  Pat Rankin  <rankin@eql.caltech.edu>
7221
7222         * Makefile.am (CONFIG_OBJS): New variable, containing part of old
7223         OBJS variable.
7224         (GENERIC_OBJS): New variable, with the rest of the old OBJS
7225         variable.
7226         (OBJS): Now just $(CONFIG_OBJS) and $(GENERIC_OBJS).
7227         ($(srcdir)/make-gas.com): Rename from make-gas.com.
7228         (stamp-mk.com): Replace $(OBJS) with $(GENERIC_OBJS).
7229         (EXTRA_DIST): Define.
7230         * vmsconf.sh: Handle {targ-cpu, obj-format, atof-targ} modules
7231         explicitly rather than via the list of object files.
7232         (gcc-as.opt): New file created when make-gas.com is run.
7233         * config-gas.com: Create {targ-cpu.h, obj-format.h, targ-env.h,
7234         itbl-cpu.h} to #include appropriate file rather than copying that
7235         file.
7236         * config/vms-conf.h: Synchronize with current config.in.
7237         * Makefile.in: Rebuild.
7238
7239 Thu Jan 29 18:48:19 1998  Bill Moyer  <billm@cygnus.com>
7240
7241         * config/tc-d30v.c (do_assemble): Added flag_explicitly_parallel.
7242         (parallel_ok): Relaxed parallel subinstruction dependency check.
7243
7244 Wed Jan 28 14:35:00 1998  Bill Moyer <billm@cygnus.com>
7245
7246         * as.h (flag_warn_suppress_instructionswap): added new flag.
7247         * tc-d10v.c (md_parse_option,md_longopts): added "--nowarnswap"
7248         command line argument.
7249         * tc-d10v.c (write_2_short): emit "Swapping instructions"
7250         warning only if flag_warn_suppress_instructionswap is false.
7251
7252 Wed Jan 28 16:41:19 1998  J.J. van der Heijden  <J.J.vanderHeijden@student.utwente.nl>
7253
7254         * configure.in (i386-*-mingw32*): New target.
7255         * configure: Rebuild.
7256
7257 Wed Jan 28 14:51:18 1998  Ian Lance Taylor  <ian@cygnus.com>
7258
7259         * symbols.c (resolve_symbol_value): Don't set the segment if it
7260         hasn't changed, and this is OBJ_AOUT without BFD_ASSEMBLER.
7261
7262         * config/obj-aout.h (S_IS_LOCAL): Correct typo--pass argument to
7263         S_GET_SEGMENT.
7264
7265 Wed Jan 28 13:54:50 1998  Pat Rankin  <rankin@eql.caltech.edu>
7266
7267         as.h (unlink): Reverse 13-Feb-97 change; use of unlink vs remove
7268         depends upon HAVE_{UNLINK,REMOVE} values rather than host
7269         compiler.
7270
7271 Wed Jan 28 13:48:08 1998  Ian Lance Taylor  <ian@cygnus.com>
7272
7273         * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Define.
7274
7275 Wed Jan 28 09:52:00 1998  Nick Clifton  <nickc@cygnus.com>
7276
7277         * config/tc-v850.c (v850_insert_operand): Display instruction when
7278         an error is encountered.
7279
7280 Tue Jan 27 13:32:01 1998  Robert Lipe  <robertl@dgii.com>
7281
7282         * configure.in (i386-*-sco3.2v5*): Defaults to ELF now.
7283         (i386-*-sco3.2v5*coff): New target.
7284         (i386-*-sco3.2*): New target.
7285         * configure: Rebuild.
7286
7287 Tue Jan 27 11:06:52 1998  Nick Clifton  <nickc@cygnus.com>
7288
7289         * config/tc-v850.c: Tidy error message production.
7290
7291 Tue Jan 27 12:24:32 1998  Ian Lance Taylor  <ian@cygnus.com>
7292
7293         * config/tc-arm.c (md_apply_fix3): Add new variable newimm to hold
7294         validate_immediate return value in the right type for comparisons
7295         to FAIL.
7296
7297 Tue Jan 27 06:51:59 1998  Richard Henderson  <rth@cygnus.com>
7298
7299         * listing.c (MAX_BYTES): Use listing variables not constants.
7300         (data_buffer): No longer an array, but a pointer.
7301         (calc_hex): sizeof(data_buffer) -> MAX_BYTES.
7302         (listing_listing): Allocate data_buffer.
7303
7304 Tue Jan 27 06:38:35 1998  Richard Henderson  <rth@cygnus.com>
7305
7306         * as.c (parse_args): Add --listing-lhs-width, --listing-lhs-width2,
7307         --listing-rhs-width, --listing-cont-lines.
7308         (show_usage): Update.
7309         * listing.c (listing_lhs_width, listing_lhs_width_second): New vars.
7310         (listing_lhs_cont_lines, listing_rhs_width): New vars.
7311         (print_lines): Use the variables instead of the constants.
7312         (listing_listing): Likewise.
7313         * listing.h: Declare the new vars.
7314
7315 Tue Jan 27 05:32:05 1998  Richard Henderson  <rth@cygnus.com>
7316
7317         * as.c (parse_args): Add --keep-locals alias for -L.
7318         Add --strip-local-absolute.
7319         (show_usage): Update.
7320         * as.h (flag_strip_local_absolute): New flag.
7321         * symbols.c (S_IS_LOCAL): Use it.
7322         * config/obj-aout.h (S_IS_LOCAL): Likewise.
7323         * config/obj-bout.h (S_IS_LOCAL): Likewise.
7324         * config/obj-coff.h (S_IS_LOCAL): Likewise.
7325
7326 Mon Jan 26 13:07:41 1998  Nick Clifton  <nickc@cygnus.com>
7327
7328         * config/tc-m32r.c: Detect if explicitly parallel instructions
7329         might have an io conflict and issue a warning message.
7330
7331 Thu Jan 22 17:51:44 1998  Nick Clifton  <nickc@cygnus.com>
7332
7333         * cgen.c (cgen_save_fixups, cgen_restore_fixups,
7334         cgen_swap_fixups): Functions to save, restore and swap the fixup
7335         chain with a backup copy.
7336         (cgen_asm_finish_insn): Returns address of constructed insn.
7337
7338 Wed Jan 21 16:49:10 1998  Richard Henderson  <rth@cygnus.com>
7339
7340         * listing.c (file_info_struct): Remove FILE, add POS.
7341         (last_open_file_info, last_open_file): New; a one entry FILE* cache.
7342         (file_info): Don't open the file.
7343         (buffer_line): Check for the file in the last_open cache, updating
7344         as necessary.
7345         (print_source): Don't reference file_info->file.
7346         (listing_listing): Likewise.
7347         (listing_print): Close the file in the cache, if any.
7348
7349 Fri Jan 16 14:51:48 1998  Ian Lance Taylor  <ian@cygnus.com>
7350
7351         * read.c (dwarf_file_string): New file static variable.
7352         (emit_expr): Look for constant sequence that leads up to a file
7353         name in DWARF debugging output.
7354         (stringer): Use dwarf_file_string to decide whether to accept a
7355         string as a file name.
7356
7357 Fri Jan 16 11:30:37 1998  Richard Henderson  <rth@cygnus.com>
7358
7359         * tc-m68k.c (m68k_ip): Remove absl->reglst MRI hack.
7360         (crack_operand): Add reg->reglst MRI hack.
7361         (r_seg): Put reglst symbols in reg_section.
7362         (m68k_frob_symbol): Frob reglst symbols into absolute_section.
7363
7364 Thu Jan 15 14:19:01 1998  Richard Henderson  <rth@cygnus.com>
7365
7366         * tc-sh.c (get_specific): Handle SGR & DBR.
7367
7368 Thu Jan 15 13:46:48 1998  Richard Henderson  <rth@cygnus.com>
7369
7370         * tc-h8300.c (parse_reg): Take the length of the symbol into
7371         account when attempting to match a register name.
7372         * tc-h8500.c (parse_reg): Likewise.
7373
7374 Wed Jan 14 17:52:33 1998  Nick Clifton  <nickc@cygnus.com>
7375
7376         * cgen.c: Formatting changes to improve readability.
7377
7378 Wed Jan 14 15:41:41 1998  Jeffrey A Law  (law@cygnus.com)
7379
7380         * config/tc-mips.c (macro): Rework division code to avoid unfilled
7381         delay slot.
7382
7383 Wed Jan 14 18:04:20 1998  Michael Meissner  <meissner@cygnus.com>
7384
7385         Based on a patch from Jim Wilson
7386         * config/tc-d30v.c (do_assemble): Remove non-ansi default case.
7387         (tc_gen_reloc): Handle cross section PC relative relocs
7388         correctly.
7389
7390 Wed Jan 14 15:02:19 1998  Doug Evans  <devans@seba.cygnus.com>
7391
7392         * config/tc-mips.c (mips_ip): Don't test pinfo flags if INSN_MACRO.
7393
7394 Mon Jan 12 13:04:57 1998  Doug Evans  <devans@seba.cygnus.com>
7395
7396         * cgen.c: #include setjmp.h.  Clean up pass over `struct foo' usage.
7397         (expr_jmp_buf): New static local.
7398         (cgen_parse_operand): Allow use of longjmp in parsing to handle errors.
7399         (cgen_md_operand): New function.
7400         * tc-m32r.c: Clean up pass over `struct foo' usage.
7401         (md_estimate_size_before_relax): Use CGEN_INSN_MNEMONIC.
7402
7403 Tue Jan  6 15:36:02 1998  Richard Henderson  <rth@cygnus.com>
7404
7405         * symbols.c (S_SET_SEGMENT): Don't set the segment for section syms.
7406         (S_IS_EXTERNAL, S_IS_LOCAL): Correct parenthetication.
7407
7408 Fri Jan  2 16:08:54 1998  Ian Lance Taylor  <ian@cygnus.com>
7409
7410         * config/tc-i386.c (i386_operand): Give an error if there are
7411         unrecognized characters after an expression.
7412
7413 For older changes see ChangeLog-9697