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