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