* target.h (target_fetch_registers): Fix comment.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2001-02-13 Jim Wilson <wilson@redhat.com>
2
3 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
4 reloc instead of a 0 reloc.
5 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
6 as done.
7 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
8
9 2001-02-13 Ian Lance Taylor <ian@zembu.com>
10
11 * write.c (is_dnrange): Stop as soon as the address becomes
12 larger.
13 (relax_frag): Add segment parameter. Only call symbol_get_frag
14 once. Only call is_dnrange if the symbol is in the same segment,
15 and the symbol address is larger.
16 (relax_segment): Pass segment to md_relax_frag and relax_frag.
17 * write.h (relax_frag): Update declaration.
18 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
19 it to relax_frag.
20 * config/tc-m32r.c (m32r_relax_frag): Likewise.
21 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
22 (m32r_relax_frag): Update declaration.
23 * config/tc-mips.h (md_relax_frag): Add segment parameter.
24 * config/tc-tic54x.h (md_relax_frag): Likewise.
25 * doc/internals.texi (CPU backend): Update documentation for
26 md_relax_frag.
27
28 2001-02-13 Alan Modra <alan@linuxcare.com.au>
29
30 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
31 Mention effect of < 386 architectures on jump promotion.
32 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
33
34 * config/tc-i386.c (no_cond_jump_promotion): New.
35 (set_cpu_arch): Parse "jumps" arch modifier.
36 (insn_size): Modify usage comment.
37 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
38 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
39 (TYPE_FROM_RELAX_STATE): New define.
40 (UNCOND_JUMP, COND_JUMP): Renumber.
41 (md_relax_table): Reorder to suit.
42 (COND_JUMP86): New define.
43 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
44 (md_assemble): Create frag var for jumps of max size, encode relax
45 state for COND_JUMP86.
46 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
47 leave conditional jumps small if no_cond_jump_promotion.
48 (md_convert_frag): Likewise.
49
50 * expr.c (operator): Don't bump input_line_pointer for two char
51 operators. Instead return operator size via new param num_chars.
52 (expr): Use above to parse multi-char operators correctly.
53
54 Mon Feb 12 17:45:50 CET 2001 Jan Hubicka <jh@suse.cz>
55
56 * tc-i386.c (i386_displacement): Fix handling of
57 BFD_RELOC_X86_64_GOTPCREL.
58 (i386_validate_fix): Likewise.
59
60 2001-02-12 Philip Blundell <pb@futuretv.com>
61
62 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
63 ldrt/strt instructions.
64
65 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
66
67 * config/tc-mips.c (macro): For M_LA_AB emit a
68 BFD_RELOC_MIPS_CALL16 relocation or a
69 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
70 BFD_RELOC_MIPS_GOT16 and
71 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
72 loading the jump register when generating SVR4_PIC code.
73
74 2001-02-10 Chris Demetriou <cgd@broadcom.com>
75
76 * configure.in: Make 'mipself' and 'mipsecoff' emulations
77 map to MIPS-specific files, as they used to do before the
78 change on 2000-05-21.
79 * configure: Regerate.
80
81 2001-02-10 Chris Demetriou <cgd@broadcom.com>
82
83 * config/tc-mips.c (md_parse_option): Don't try to compile
84 ELF-only option code if not ELF.
85
86 2001-02-08 David Mosberger <davidm@hpl.hp.com>
87
88 * config/tc-ia64.h (md_elf_section_type): New macro.
89 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
90 (they're now handled via ia64_elf_section_type.
91
92 * config/tc-ia64.c (unwind): New members saved_text_seg,
93 saved_text_subseg, and force_unwind_entry.
94 (optimize_unw_records): New function to optimize away unnecessary
95 unwind directives.
96 (ia64_elf_section_type): New function.
97 (output_unw_records): Generate unwind info only if the size is
98 non-zero or if it's forced for some other reason (e.g.,
99 handlerdata or a personality routine).
100 (generate_unwind_image): Don't switch back to previous
101 section---stay inside the unwind info section instead so that
102 handlerdata that may follow goes into the right place.
103 (dot_handlerdata): Force generation of unwind entry and save the
104 current active text segment before generating unwind image.
105 (dot_unwentry): Force generation of unwind entry.
106 (dot_personality): Ditto.
107 (dot_endp): Generate unwind table entry only if there is
108 some unwind info or the unwind entry was forced.
109
110 * config/tc-ia64.c (make_unw_section_name): New macro to form
111 unwind section name.
112 (generate_unwind_image): Add "text_name" argument. Use it to
113 form unwind section name.
114 (dot_handlerdata): Determine current segment (section) name and
115 pass it to generate_unwind_image().
116 (dot_endp): Determine current segment (section) name and use
117 it to determine the appropriate unwind section name.
118 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
119 n, fill, and max arguments.
120
121 2001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
122
123 * Makefile.am: Add linux target for S/390.
124 * configure.in: Likewise.
125 * config/tc-s390.c: New file.
126 * config/tc-s390.h: New file.
127
128 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
129
130 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
131 2byte, 4byte and 8byte.
132
133 2001-02-08 Alan Modra <alan@linuxcare.com.au>
134
135 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
136 md_number_to_chars with size > sizeof (valueT).
137
138 2001-02-06 H.J. Lu <hjl@gnu.org>
139
140 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
141 there is no relocation.
142
143 2001-02-06 H.J. Lu <hjl@gnu.org>
144
145 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
146
147 * config/tc-ia64.c (md_parse_option): Only accept the valid
148 ia64 options on "-axxx".
149
150 2001-02-05 Jim Wilson <wilson@redhat.com>
151
152 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
153 aborting for invalid operands.
154
155 2001-02-06 Alan Modra <alan@linuxcare.com.au>
156
157 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
158 than via pointer. Update all callers.
159 (UNWIND_LOW32): Define.
160 (UNWIND_HIGH32): Define.
161 (pa_build_unwind_subspace): Use the above macros instead of dumping
162 bitfields directly. Call frag_more once rather than multiple times.
163 (md_assemble): Use UNWIND_LOW32.
164 (pa_entry): Likewise
165 (pa_procend): Likewise.
166 (process_exit): Use UNWIND_HIGH32.
167
168 2001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
169
170 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
171 function to select the header according to the cpu.
172 (md_after_pass_hook, md_do_align): Remove.
173 (md_cleanup, m68hc11_cleanup): Remove.
174 (md_pcrel_from_section): Declare.
175 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
176 (build_jump_insn, build_insn): Likewise.
177 (m68hc11_listing_header): New function.
178 (m68hc11_cleanup): Remove.
179
180 2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
181
182 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
183 symbols because there is no support for shared libraries and these
184 symbols can't be overridden (unless they are weak).
185
186 2001-02-01 Momchil Velikov <velco@fadata.bg>
187
188 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
189 for the compilation unit with a zero byte.
190
191 2001-01-30 Alan Modra <alan@linuxcare.com.au>
192
193 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
194 destinations. Correct range check for 17 and 22 bit branches.
195
196 2001-01-25 Nick Clifton <nickc@redhat.com>
197
198 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
199 still set. Issue an error message instead.
200 (md_estimate_size_before_relax): Delete unused variable
201 'buffer_address'. Fixup parentheses around if statement.
202
203 2001-01-23 Kazu Hirata <kazu@hxi.com>
204
205 * as.c: Fix formatting.
206 * ehopt.c: Likewise.
207 * messages.c: Likewise.
208 * stabs.c: Likewise.
209 * symbols.c: Likewise.
210
211 2001-01-23 Ben Elliston <bje@redhat.com>
212
213 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
214
215 2001-01-22 Kazu Hirata <kazu@hxi.com>
216
217 * config/tc-alpha.c: Fix formatting.
218
219 2001-01-19 Kazu Hirata <kazu@hxi.com>
220
221 * config/tc-alpha.c: Fix formatting.
222
223 2001-01-18 Kazu Hirata <kazu@hxi.com>
224
225 * config/tc-alpha.c: Fix formatting.
226
227 2001-01-18 Nick Clifton <nickc@redhat.com>
228
229 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
230 "da" flags.
231 (stm_flags): Remove redundant bit from "ed" and "da" flags.
232
233 2001-01-18 Alexandre Oliva <aoliva@redhat.com>
234
235 * configure.in (cpu_type, arch): Match i386 too.
236 * configure: Rebuilt.
237
238 2001-01-16 Kazu Hirata <kazu@hxi.com>
239
240 * config/tc-i386.c: Fix formatting.
241
242 2001-01-16 Alan Modra <alan@linuxcare.com.au>
243
244 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
245 relocs for .PARISC.unwind section.
246
247 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
248 depending on section flags, not just for .text.
249
250 2001-01-15 Jim Wilson <wilson@redhat.com>
251
252 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
253 not immediately followed by an instruction.
254
255 2001-01-15 Kazu Hirata <kazu@hxi.com>
256
257 * config/tc-m68hc11.c: Fix formatting.
258
259 2001-01-15 Nick Clifton <nickc@redhat.com>
260
261 * symbols.c (colon): Change 'already defined symbol' from a
262 fatal error to an ordinary error. There is no reason why this
263 error should be fatal.
264
265 * message.c (as_fatal): Delete output file, if one has been
266 created.
267
268 2001-01-14 Alan Modra <alan@linuxcare.com.au>
269
270 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
271
272 2001-01-14 Kazu Hirata <kazu@hxi.com>
273
274 * config/tc-alpha.c: Fix formatting.
275 * config/tc-arc.c: Likewise.
276 * config/tc-arc.h: Likewise.
277 * config/tc-d10v.c: Likewise.
278 * config/tc-i370.c: Likewise.
279 * config/tc-i386.c: Likewise.
280 * config/tc-i960.c: Likewise.
281 * config/tc-m68k.c: Likewise.
282 * config/tc-ppc.c: Likewise.
283 * config/tc-sparc.c: Likewise.
284 * config/tc-tahoe.c: Likewise.
285 * config/tc-vax.c: Likewise.
286
287 * config/tc-arc.c: Fix formatting.
288
289 * config/tc-arc.c: Fix formatting.
290
291 2001-01-14 Alan Modra <alan@linuxcare.com.au>
292
293 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
294 both 32 and 64 bit ELF.
295
296 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
297 and don't bother storing `m' for "ce" completer. Tidy handling of
298 'J' and 'K' operands to suit. Handle '<' and '>' operands.
299
300 Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
301
302 * tc-i386.h (TARGET_MACH): New macro.
303 (i386_mach): Declare.
304 * tc-i386.c (i386_mach): New function.
305
306 2001-01-13 Philip Blundell <philb@gnu.org>
307
308 * doc/as.texinfo: Fix spelling and cross-references.
309
310 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
311 character for all systems, not just GNU/Linux. Make it explicit
312 that `-k' doesn't affect code generation, just ELF flags.
313
314 Sat Jan 13 01:47:35 MET 2001 Jan Hubicka <jh@suse.cz>
315
316 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
317 instructions.
318
319 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
320
321 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
322
323 2001-01-12 Nick Clifton <nickc@redhat.com>
324
325 * as.c (print_args): Update copyright date to 2001.
326
327 2001-01-12 Peter Targett <peter.targett@arccores.com>
328
329 * doc/c-arc.texi: New file.
330 Some sections to be expanded.
331
332 2001-01-12 Alan Modra <alan@linuxcare.com.au>
333
334 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
335 (md_parse_option): Always accept "--32".
336
337 2001-01-11 Peter Targett <peter.targett@arccores.com>
338
339 * as.h (TC_ARC): Ensure struc-symbol.h included.
340 * as.c (dwarf2dbg.h): Include to remove implicit declaration
341 warnings.
342 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
343 (TARGET_SYMBOL_FIELDS) added.
344
345 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
346 * doc/c-arc.texi: New file.
347 Some sections to be expanded.
348 * doc/as.texinfo: Update command-line options.
349 Removed outdated text for ARC dependant features, instead include
350 text from above file.
351
352 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
353 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
354 (targ-cpu.h) header.
355 * config/tc-arc.h:
356 * config/tc-arc.c: New updated configuration for
357 ARC, including selection of core variants, and extensibility of
358 instructions, registers etc. through directives.
359
360 * config/tc-arc.c (arc_extinst): Minor corrections for
361 error messages.
362 (arc_common) Likewise. Make alignment argument optional for local
363 symbols also, with default of zero.
364
365 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
366
367 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
368 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
369 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
370 and fix_new_exp() instead.
371 (md_convert_frag): For indexed post byte use the symbol value
372 rather than the displacement.
373 (md_relax_table): Fix indexed offset relax.
374
375 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
376
377 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
378 relax weak symbols.
379 (relaxable_symbol): New function.
380
381 2001-01-11 Andreas Jaeger <aj@suse.de>
382
383 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
384 not used anywhere.
385
386 2001-01-10 Nick Clifton <nickc@redhat.com>
387
388 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
389 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
390
391 2001-01-10 Nick Clifton <nickc@redhat.com>
392
393 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
394 character used to dollar local symbols.
395 (LOCAL_LABEL_CHAR): New constant - the magic character used to
396 local label symbols.
397 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
398 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
399 if defined.
400 Use LOCAL_LABEL_CHAR.
401 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
402 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
403 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
404
405 2001-01-08 Bo Thorsen <bo@suse.de>
406
407 * config/tc-i386.c (i386_immediate, i386_displacement):
408 GOTPCREL check fix.
409
410 2001-01-07 Ian Lance Taylor <ian@zembu.com>
411
412 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
413 in last change.
414
415 2001-01-07 Philip Blundell <philb@gnu.org>
416
417 * doc/as.texinfo (Bug Reporting): Update email address for
418 reports.
419 * README: Likewise.
420
421 Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
422
423 * configure.in: Define DEFAULT_ARCH for i386.
424 * tc-i386.c (md_assemble): Return after the error message;
425 move testing for 64bit operands to proper place.
426
427 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
428
429 * doc/as.texinfo: Document '#' as comment character for i386 and
430 x86_64. Add AMD x86-64 into menu of machine dependent information.
431
432 * doc/c-i386.texi: Document x86_64 extensions.
433
434 Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
435
436 * tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
437
438 Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
439
440 * tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
441 * NEWS: Add note about Pentium4 support.
442
443 Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
444
445 * tc-i387.c (pi, pte, pt): Update.
446 (type_names): Add new types.
447
448 Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
449
450 * tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
451 CpuUnknown): Renumber
452 (CpuP4, CpuSSE2): New.
453 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
454
455 2001-01-03 Philip Blundell <pb@futuretv.com>
456
457 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
458 relocs.
459 (alpha_fix_adjustable): Likewise.
460 (md_apply_fix): Likewise.
461
462 2000-12-31 H.J. Lu <hjl@gnu.org>
463
464 * listing.c (listing_message): Allocate string only if it is
465 used.
466
467 * configure: Rebuild.
468
469 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
470
471 * doc/internals.texi (Relaxing with a table) <after relaxation>:
472 Point out caveats with generating fixups for the opcode in a frag.
473
474 Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
475
476 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
477 * NEWS: Add x86_64.
478
479 2000-12-29 H.J. Lu <hjl@gnu.org>
480
481 * listing.c (calc_hex): Print the variable part only if the
482 fragment type is rs_fill.
483
484 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
485
486 * doc/internals.texi (tc_conditional_pseudoop,
487 TC_LINKRELAX_FIXUP): Fix typos.
488
489 2000-12-28 Richard Henderson <rth@redhat.com>
490
491 * write.c (subsegs_finish): Fix thinko last change -- don't
492 "optimize" the alignment == 0 case.
493
494 2000-12-28 Richard Henderson <rth@redhat.com>
495
496 * as.h (rs_align_test): New.
497 * frags.c (NOP_OPCODE): Move default from read.c.
498 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
499 (frag_align_code): New.
500 * frags.h (frag_align_code): Declare.
501 * read.c (NOP_OPCODE): Remove.
502 (do_align): Use frag_align_code.
503 * write.c (NOP_OPCODE): Remove.
504 (get_recorded_alignment): New.
505 (cvt_frag_to_fill): Handle rs_align_test.
506 (relax_segment): Likewise.
507 (subsegs_finish): Align last subseg in section to the
508 section alignment. Use frag_align_code.
509 * write.h (get_recorded_alignment): Declare.
510 * config/obj-coff.c (size_section): Handle rs_align_test.
511 (fill_section, fixup_mdeps): Likewise.
512 (write_object_file): Use frag_align_code.
513
514 * config/tc-alpha.c (alpha_align): Use frag_align_code.
515 (alpha_handle_align): New.
516 * config/tc-alpha.h (HANDLE_ALIGN): New.
517 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
518
519 * config/tc-i386.h (md_do_align): Use frag_align_code.
520 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
521
522 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
523 (ia64_handle_align): New.
524 * config/tc-ia64.h (HANDLE_ALIGN): New.
525 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
526
527 * config/tc-m32r.c (m32r_do_align): Remove.
528 (m32r_handle_align): New.
529 (fill_insn): Use frag_align_code.
530 * config/tc-m32r.h (md_do_align): Remove.
531 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
532 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
533 * config/tc-mips.c, config/tc-mips.h: Similarly.
534
535 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
536 (sh_handle_align): Likewise. Handle rs_align_code.
537 (sh_do_align): Remove.
538 * config/tc-sh.h (md_do_align): Remove.
539 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
540
541 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
542 (sparc_handle_align): Likewise. Handle rs_align_code.
543 * config/tc-sparc.h (md_do_align): Remove.
544 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
545
546 2000-12-22 DJ Delorie <dj@redhat.com>
547
548 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
549 when we assemble the first half of a pair.
550
551 2000-12-22 H.J. Lu <hjl@gnu.org>
552
553 * config/tc-i386.c (reloc): Update the macro for non-bfd
554 assembler.
555 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
556
557 2000-12-22 H.J. Lu <hjl@gnu.org>
558
559 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
560
561 Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
562
563 * tc-i386.h (i386_target_format): Define even for ELFs.
564 (QWORD_MNEM_SUFFIX): New macro.
565 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
566 New macros
567 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
568 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
569 ImmExt): Renumber.
570 (Size64, No_qSuf, NoRex64, Rex64): New macros.
571 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
572 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
573 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
574 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
575 Renumber.
576 (Reg, WordReg): Add Reg64.
577 (Imm): Add Imm32S and Imm64.
578 (EncImm): New.
579 (Disp): Add Disp64 and Disp32S.
580 (AnyMem): Add Disp32S.
581 (RegRex, RegRex64): New macros.
582 (rex_byte): New type.
583 * tc-i386.c (set_16bit_code_flag): Kill.
584 (fits_in_unsigned_long, fits_in_signed_long): New functions.
585 (reloc): New parameter "signed"; support x86_64.
586 (set_code_flag): New.
587 (DEFAULT_ARCH): New macro; default to "i386".
588 (default_arch): New static variable.
589 (struct _i386_insn): New fields Operand_PCrel; rex.
590 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
591 (flag_code): New enum and static variable.
592 (use_rela_relocations): New static variable.
593 (flag_code_names): New static variable.
594 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
595 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
596 K6 and Athlon.
597 (i386_align_code): Return plain "nop" for x86_64.
598 (mode_from_disp_size): Support Disp32S.
599 (smallest_imm_type): Support Imm32S and Imm64.
600 (offset_in_range): Support size of 8.
601 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
602 (md_pseudo_table): Add "code64"; use set_code_flat.
603 (md_begin): Emit sane error message on hash failure.
604 (tc_i386_fix_adjustable): Support x86_64 relocations.
605 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
606 instructions supported on particular arch just partially,
607 output of 64bit immediates, handling of Imm32S and Disp32S type.
608 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
609 (i386_displacement): Likewise.
610 (i386_index_check): Cleanup; support 64bit addresses.
611 (md_apply_fix3): Support x86_64 relocation and rela.
612 (md_longopts): Add "32" and "64".
613 (md_parse_option): Add OPTION_32 and OPTION_64.
614 (i386_target_format): Call even for ELFs; choose between
615 elf64-x86-64 and elf32-i386.
616 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
617 (tc_gen_reloc): Support rela relocations and x86_64.
618 (intel_e09_1): Support QWORD.
619
620 2000-12-15 Diego Novillo <dnovillo@redhat.com>
621
622 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
623 it's not an offset expression.
624 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
625 keep the braces '[' and ']' in the output string.
626 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
627 != FLAT. There is no such op_modifier.
628
629 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
630
631 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
632 if we have it.
633
634 2000-12-13 Kazu Hirata <kazu@hxi.com>
635
636 * as.h: Fix formatting.
637 * cgen.h: Likewise.
638 * dwarf2dbg.c: Likewise.
639 * input-scrub.c: Likewise.
640 * read.h: Likewise.
641
642 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
643
644 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
645 configure: Regenerate.
646
647 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
648
649 * dwarf2dbg.c: #include <limits.h> only if it exists.
650
651 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
652
653 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
654 (md_apply_fix): Here too.
655
656 2000-12-12 Jim Wilson <wilson@redhat.com>
657
658 * config/tc-ia64.h (ia64_init): Add prototype.
659
660 2000-12-12 H.J. Lu <hjl@gnu.org>
661
662 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
663
664 * read.h (outputting_stabs_line_debug): Change it to int.
665 * stabs.c (outputting_stabs_line_debug): Likewise.
666
667 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
668
669 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
670 the address of a function result.
671
672 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
673
674 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
675 (md_assemble): Call dwarf2_emit_insn.
676 (shlib): Fix typo SHILB -> SHLIB.
677 (md_parse_option): Likewise.
678 (ppc_elf_validate_fix): Likewise:
679 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
680
681 2000-12-12 Nick Clifton <nickc@redhat.com>
682
683 * cgen.h: Fix formatting.
684 * input-scrub.c: Fix formatting.
685 * macro.c: Fix formatting.
686 * config/tc-mips.c: Fix formatting.
687 * doc/c-mips.texi: Fix formatting.
688
689 Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
690
691 * tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
692 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
693 references.
694 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
695 otherwise.
696 * tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
697 (No_dSuf): Kill.
698
699 * i386.h (*_Suf): Remove No_dSuf.
700 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
701 Remove.
702 (i386_optab): Remove 'd' in the suffixes.
703
704 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
705
706 * config/tc-i386.c (T_SHORT): Undefine before defining.
707
708 2000-12-05 Kazu Hirata <kazu@hxi.com>
709
710 * config/tc-mips.c: Fix formatting.
711
712 2000-12-04 Matthew Hiller <hiller@redhat.com>
713
714 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
715 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
716 (md_show_usage): Ditto.
717 (md_parse_option): Ditto.
718 (d10v_cleanup): Writes pending instruction only if
719 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
720 Fix compile time warning messages.
721
722 * doc/c-d10v.texi: Documents new options.
723
724 2000-12-04 Matthew Hiller <hiller@redhat.com>
725
726 * stabs.c (outputting_stabs_line_debug): New variable.
727 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
728 function entry and unset at function exit.
729
730 * read.h (outputting_stabs_line_debug): New extern declaration.
731
732 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
733
734 * dwarf2dbg.c: Fix compile time warning messages.
735
736 2000-12-03 Kazu Hirata <kazu@hxi.com>
737
738 * config/tc-a29k.c: Fix formatting.
739 * config/tc-alpha.c: Likewise.
740 * config/tc-arm.c: Likewise.
741 * config/tc-cris.c: Likewise.
742 * config/tc-hppa.c: Likewise.
743 * config/tc-i370.c: Likewise.
744 * config/tc-i386.c: Likewise.
745 * config/tc-i860.c: Likewise.
746 * config/tc-i960.c: Likewise.
747 * config/tc-ia64.c: Likewise.
748 * config/tc-m68hc11.c: Likewise.
749 * config/tc-m68k.c: Likewise.
750 * config/tc-m88k.c: Likewise.
751 * config/tc-pj.c: Likewise.
752 * config/tc-ppc.c: Likewise.
753 * config/tc-sh.c: Likewise.
754 * config/tc-sparc.c: Likewise.
755 * config/tc-tahoe.c: Likewise.
756 * config/tc-vax.c: Likewise.
757
758 2000-12-01 Chris Demetriou <cgd@sibyte.com>
759
760 * config/tc-mips.c (mips_ip): When calculating offsets,
761 don't accept as constant the difference between the
762 addresses of symbols in two different sections.
763
764 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
765 specifiers.
766 (validate_mips_insn): Likewise. Also, update 'B' operand
767 specifier to use OP_*_CODE20 constants and delete 'm' operand
768 specifier.
769 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
770 operand specifiers. Change warning generated by 'B' operand
771 specifier to reflect its new multi-purpose usage.
772
773 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
774 -1, and update comment.
775 (file_mips_isa): Likewise.
776 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
777 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
778 ISA_* constants rather than hard-coded numbers.
779 (mips_cpu_info): New structure.
780 (mips_cpu_info_table): New table describing CPU and ISA names
781 and numbers.
782 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
783 mips_cpu_info_from_cpu): New functions.
784 (mips_isa_to_str): New function to get string for ISA name.
785 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
786 return const char *.
787 (md_begin): Redo CPU and ISA selection logic, using
788 mips_cpu_info_from_*. Convert to use ISA_* constants rather
789 than hard-coded numbers.
790 (append_insn, mips_emit_delays, macro, macro2): Convert to use
791 ISA_* constants rather than hard-coded numbers.
792 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
793 (md_longopts): Delete OPTION_NO_MIPS32.
794 (md_parse_option): Convert to use ISA_* constants rather than
795 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
796 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
797 to use strcasecmp to recognize "default" and to use
798 mips_cpu_info_from_name to get CPU numbers from argument.
799 (md_show_usage): Move -mips32 so it's with the rest of the ISA
800 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
801 mips32-4k.
802 (s_mipsset): Accept ISA value 32.
803 * doc/as.texinfo: Clean up MIPS options summary slightly,
804 remove -no-mips32. Add note about -mips4 and -mips32
805 specifying those ISA levels. Delete -mips32 and -no-mips32
806 cpu flag descriptions.
807 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
808 up the supported CPU switch list, and replace 4Kc, 4Km, and
809 4Kp entries with a single mips32-4k entry. Note that you can
810 use ".set mips32".
811
812 * tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
813 ISA_MIPS64.
814 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
815 -mips5 and -mips64.
816 (md_parse_option): Add cases for OPTION_MIPS5 and
817 OPTION_MIPS64.
818 (md_show_usage): Mention -mips5 and -mips64 arguments.
819 (s_mipsset): Add cases for MIPS5 and MIPS64.
820 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
821 and pseudo-CPUs.
822 * doc/as.texinfo: Mention -mips5 and -mips64 options
823 and their meanings.
824 * doc/c-mips.texi: Likewise. Also update introduction
825 and ".set" usage information.
826
827 * config/tc-mips.c (md_show_usage): Add "sb1" to the
828 CPU list.
829 (mips_cpu_info_table): Add SB-1 entries.
830 * doc/c-mips.texi: Add "sb1" to the list of CPUs
831 known to the -mcpu option.
832
833 * doc/as.texinfo: Correct description of MIPS -mcpu
834 option, by copying some of the text from doc/c-mips.texi.
835
836 2000-12-01 Joel Sherrill <joel@OARcorp.com>
837
838 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
839 New targets.
840 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
841 (sparc*-*-rtems*): Switched from a.out to ELF.
842 * configure: Regenerate.
843 * config.in: Regenerate.
844 * Makefile.in: Regenerate.
845 * aclocal.m4: Regenerate.
846 * po/gas.pot: Regenerate.
847
848 2000-11-30 Philip Blundell <pb@futuretv.com>
849
850 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
851 even in non BFD_ASSEMBLER case.
852
853 2000-11-30 Diego Novillo <dnovillo@redhat.com>
854
855 * tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
856 syntax.
857
858 2000-11-29 Richard Henderson <rth@redhat.com>
859
860 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
861 until dwarf2_finish; use relaxation to get cross-fragment offsets;
862 thread multiple subsegments properly; handle multiple code
863 sections properly; emit proper compilation unit info for assembler
864 generated debugging.
865
866 * as.h (enum _relax_state): Add rs_dwarf2dbg.
867 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
868 (dwarf2dbg_estimate_size_before_relax): Declare.
869 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
870 * write.c: Include dwarf2dbg.h.
871 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
872 (relax_segment): Likewise.
873
874 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
875
876 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
877 jump>: Use as_bad_where instead of as_bad. Tweak error message
878 accordingly. Stabilize frag by updating fix part and resetting
879 variant part.
880 <undefined symbol, unconditional jump>: Ditto.
881 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
882 indexing is_end_of_line[].
883 (md_assemble): Initialize size to 0.
884 (md_section_align): Mark parameter seg as unused.
885 (parse_reg): Parse names case-insensitively.
886
887 2000-11-28 Kazu Hirata <kazu@hxi.com>
888
889 * config/obj-aout.h: Fix formatting.
890 * config/obj-bout.h: Likewise.
891 * config/obj-coff.c: Likewise.
892 * config/obj-coff.h: Likewise.
893 * config/obj-elf.h: Likewise.
894 * config/obj-som.h: Likewise.
895 * config/obj-vms.c: Likewise.
896 * config/obj-vms.h: Likewise.
897 * config/tc-h8300.h: Likewise.
898 * config/tc-ns32k.h: Likewise.
899 * config/tc-sparc.h: Likewise.
900 * config/tc-tic54x.h: Likewise.
901 * config/tc-z8k.h: Likewise.
902
903 2000-11-28 Nick Clifton <nickc@redhat.com>
904
905 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
906 License is present in the sources, but not the output, and
907 also available from the GNU website.
908 (GNU Free Documentation License): Comment out this section.
909
910 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
911
912 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
913 targets. Remove i860 from valid a.out targets.
914 * Makefile.in: Regenerate.
915
916 * config/tc-cris.c: Include dwarf2dbg.h.
917 (md_pseudo_table): Add .file and .loc.
918 (md_assemble): Call dwarf2_emit_insn if generating ELF.
919 (s_cris_file, s_cris_loc): New.
920 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
921 * Makefile.am: Regenerate dependencies.
922 * Makefile.in: Regenerate.
923
924 2000-11-28 Alan Modra <alan@linuxcare.com.au>
925
926 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
927 (MRI_MUL_PRECEDENCE): Likewise.
928 (op_rank): Fix a comment typo.
929
930 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
931
932 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
933 the error message.
934 (get_operand): Fix analysis for movw/movb instructions.
935
936 2000-11-24 Nick Clifton <nickc@redhat.com>
937
938 * configure.in (xscale-elf): Add target.
939 (xscale-coff): Add target.
940 * configure: Regenerate.
941
942 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
943 extenstion.
944 (ARM_EXT_XSCALE): New ARM architecture extension.
945 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
946 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
947 (ARM_THUMB): Rename to ARM_EXT_THUMB.
948 (ARM_ARCH_V4): Remove processor from architecture.
949 (ARM_ARCH_3M): New architecutre definition.
950 (ARM_ARCH_V5TE): New architecutre definition.
951 (ARM_ARCH_XSCALE): New architecutre definition.
952 (CPU_DEFAULT): Allow to be defaulted to XScale.
953 (atpcs): New boolean variable.
954 (ldr_flags): Support 'd' flag for double word loads.
955 (str_flags): Support 'd' flag for double word stored.
956 (do_mia): New function.
957 (do_mar): New function.
958 (do_mra): New function.
959 (do_pld): New function.
960 (do_ldrd): New function.
961 (do_blx): New function.
962 (do_bkpt): New function.
963 (do_clz): New function.
964 (do_lstc2): New function.
965 (do_cdp2): New function.
966 (do_t_blx): New function.
967 (do_t_bkpt): New function.
968 (do_smla): New function.
969 (do_smlal): New function.
970 (do_smul): New function.
971 (do_qadd): New function.
972 (do_co_reg2c): New function.
973 (LONGEST_INSN): Redefine to 7.
974
975 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
976 command line switches.
977
978 2000-11-22 Jim Wilson <wilson@redhat.com>
979
980 * config/tc-ia64.c (pseudo_func): Add missing initializers.
981 (struct rsrc): Make line unsigned.
982 (gr_values): Add missing initializer.
983 (SLOT_NUM_NOT_SET): Add unsigned cast.
984 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
985 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
986 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
987 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
988 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
989 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
990 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
991 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
992 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
993 Add ATTRIBUTE_UNUSED to unused parameters.
994 (convert_expr_to_ab_reg): Add parens.
995 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
996 (dot_prologue): Initialize grsave when declared.
997 (md_pseudo_table): Add missing initializers.
998 (operand_match): Add casts to bfd_vma.
999 (emit_one_bundle): Delete unused local prev. Make required_template
1000 unsigned.
1001 (specify_resource): Cast i to unsigned.
1002 (note_register_values): Use fprintf_vma.
1003 (print_dependency): Likewise.
1004
1005 2000-11-21 Jim Wilson <wilson@redhat.com>
1006
1007 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
1008 for unwind info section.
1009 (dot_endp): Likewise for unwind section.
1010
1011 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
1012 fix_new_exp.
1013
1014 2000-11-21 Jakub Jelinek <jakub@redhat.com>
1015
1016 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
1017 (output_insn): Call dwarf2_emit_insn.
1018 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
1019
1020 2000-11-17 Richard Henderson <rth@redhat.com>
1021
1022 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
1023 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
1024 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
1025
1026 2000-11-17 Nick Clifton <nickc@redhat.com>
1027
1028 * config/tc-arm.c (md_pseudo_table): Add support for .line and
1029 .file pseudo ops.
1030
1031 2000-11-17 Richard Henderson <rth@redhat.com>
1032
1033 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
1034
1035 2000-11-17 Richard Henderson <rth@redhat.com>
1036
1037 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
1038 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
1039 tri-state definition of alpha_flag_mdebug.
1040 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
1041 (s_alpha_file): Store first .file directive.
1042 (s_alpha_stab): New.
1043 (md_pseudo_table): Add stabs and stabn.
1044
1045 2000-11-17 Richard Henderson <rth@redhat.com>
1046
1047 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
1048
1049 2000-11-17 Richard Henderson <rth@redhat.com>
1050
1051 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
1052 (main): Call dwarf2_finish.
1053 * as.h (debug_type): Clarify documentation of the meaning
1054 of this variable.
1055 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
1056 (print_stats): Fix parenthesis problem.
1057 (now_subseg_size): New.
1058 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
1059 (dwarf2_directive_file): Don't set debug_type.
1060 (dwarf2_where): Honor DEBUG_DWARF2 first.
1061 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
1062 do nothing if not emitting dwarf2 debug info, or no work.
1063 * dwarf2dbg.h (dwarf2_emit_insn): Update.
1064 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
1065 (ecoff_new_file): Likewise.
1066 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
1067 commentary wrt dwarf2.
1068
1069 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
1070 ATTRIBUTE_UNUSED as needed.
1071 (emit_insn): Call dwarf2_emit_insn.
1072 (s_alpha_file): New.
1073 (s_alpha_loc): New.
1074 (s_alpha_coff_wrapper): Don't handle them.
1075 (md_pseudo_table): Update for .file and .loc.
1076 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
1077
1078 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
1079 don't protect with debug_type.
1080 * config/tc-hppa.c (md_assemble): Likewise.
1081 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
1082 * config/tc-mn10300.c (md_assemble): Likewise.
1083 * config/tc-sh.c (md_assemble): Likewise.
1084 * config/tc-v850.c (md_assemble): Likewise.
1085
1086 * config/tc-arm.c (arm_end_of_source): Remove.
1087 * config/tc-hppa.c (pa_end_of_source): Remove.
1088 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
1089 * config/tc-mn10300.c (mn10300_finalize): Remove.
1090 * config/tc-sh.c (sh_finalize): Remove.
1091 * config/tc-v850.c (sh_finalize): Remove.
1092
1093 * config/tc-arm.h (md_end): Remove.
1094 * config/tc-hppa.h (md_end): Remove.
1095 (DWARF2_LINE_MIN_INSN_LENGTH): New.
1096 * config/tc-m68hc11.h (md_end): Remove.
1097 * config/tc-mn10300.h (md_end): Remove.
1098 * config/tc-sh.h (md_end): Remove.
1099 * config/tc-v850.h (md_end): Remove.
1100
1101 * config/tc-ia64.c (emit_one_bundle): Don't protect
1102 dwarf2 bits with debug_type.
1103 (md_assemble): Likewise.
1104 (ia64_end_of_source): Don't call dwarf2_finish.
1105
1106 2000-11-16 Jim Wilson <wilson@redhat.com>
1107
1108 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
1109 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
1110 > 16.
1111
1112 2000-11-16 H.J. Lu <hjl@gnu.org>
1113
1114 * config/obj-elf.c (obj_elf_symver): Don't check the missing
1115 version name.
1116
1117 2000-11-15 Kazu Hirata <kazu@hxi.com>
1118
1119 * config/tc-tic30.c: Fix formatting.
1120 * config/tc-tic80.c: Likewise.
1121 * config/tc-v850.c: Likewise.
1122 * config/tc-vax.c: Likewise.
1123 * config/tc-w65.c: Likewise.
1124 * config/tc-z8k.c: Likewise.
1125
1126 2000-11-14 DJ Delorie <dj@redhat.com>
1127
1128 * config/tc-v850.c: Support dwarf2.
1129 * config/tc-v850.h: Ditto.
1130
1131 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
1132 parse_cons_expression_v850 to initialize hold_cons_reloc.
1133
1134 2000-11-15 Bernd Schmidt <bernds@redhat.com>
1135
1136 * tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
1137 (errata_nops_necessary_p): New function.
1138 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
1139 md.
1140
1141 2000-11-14 Jim Wilson <wilson@redhat.com>
1142
1143 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
1144 return little endian bfd formats.
1145
1146 2000-11-14 Kazu Hirata <kazu@hxi.com>
1147
1148 * config/aout_gnu.h: Fix formatting.
1149 * config/atof-vax.c: Likewise.
1150 * config/m68k-parse.h: Likewise.
1151 * config/m88k-opcode.h: Likewise.
1152 * config/obj-elf.c: Likewise.
1153 * config/tc-arm.c: Likewise.
1154 * config/tc-cris.c: Likewise.
1155 * config/tc-i386.c: Likewise.
1156 * config/tc-ia64.c: Likewise.
1157 * config/tc-mn10300.c: Likewise.
1158 * config/te-386bsd.h: Likewise.
1159 * config/te-hppa.h: Likewise.
1160 * config/te-nbsd.h: Likewise.
1161 * config/te-ppcnw.h: Likewise.
1162 * config/te-sparcaout.h: Likewise.
1163 * config/te-tmips.h: Likewise.
1164 * config/vax-inst.h: Likewise.
1165 * config/vms-conf.h: Likewise.
1166
1167 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1168
1169 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
1170
1171 2000-11-13 H.J. Lu <hjl@gnu.org>
1172
1173 * config/obj-elf.c (elf_frob_symbol): Support
1174 ".symver name,name2@@@nodename".
1175 (elf_frob_file_before_adjust): Likewise.
1176
1177 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
1178 and ".symver name,name2@@@nodename".
1179 Fix a typo.
1180
1181 2000-11-12 H.J. Lu (hjl@gnu.org)
1182
1183 * config/obj-elf.c (obj_elf_symver): Check missing version
1184 name.
1185
1186 2000-11-12 H.J. Lu (hjl@gnu.org)
1187
1188 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
1189 instead of bfd_vma for non-bfd assemblers.
1190
1191 2000-11-09 Kazu Hirata <kazu@hxi.com>
1192
1193 * itbl-ops.c: Fix comment typos.
1194
1195 2000-11-08 Jim Wilson <wilson@redhat.com>
1196
1197 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
1198 (struct unwind): Add next_slot_frag field.
1199 (slot_index): New parameters slot_frag and first_frag. Add code
1200 to add in frag sizes when different. Add comments.
1201 (fixup_unw_records): New locals first_frag and last_frag. Pass new
1202 arguments to slot_index.
1203 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
1204 loop end. Set next_slot_frag field.
1205
1206 2000-11-07 H.J. Lu <hjl@gnu.org>
1207
1208 * doc/as.texinfo (.symver): Updated for versioned symbol
1209 reference.
1210
1211 * obj.h (format_ops): Add the frob_file_before_adjust field.
1212
1213 * config/obj-aout.c (aout_format_ops): Set the
1214 frob_file_before_adjust field to 0.
1215 * config/obj-coff.c (coff_format_ops): Likewise.
1216 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
1217
1218 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
1219 name.
1220 (elf_frob_file_before_adjust): New function to remove unneeded
1221 versioned symbols from the symbol table.
1222 (elf_format_ops): Set the frob_file_before_adjust field to
1223 elf_frob_file_before_adjust.
1224
1225 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
1226 not defined.
1227
1228 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
1229
1230 2000-11-07 Peter Targett <peter.targett@arccores.com>
1231
1232 * gas/config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
1233 BIG_ENDIAN macros.
1234 * gas/config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
1235 Fix compile time warning messages.
1236
1237 2000-11-07 Nick Clifton <nickc@redhat.com>
1238
1239 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
1240 buffer in order to avoid buffer overflows.
1241
1242 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1243
1244 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
1245 Change M to m for -milp32 or -mlp64 to match gcc.
1246 (dot_endp): Use bytes_per_address instead of 8.
1247 (emit_one_bundle): Use number_to_chars_littleendian instead of
1248 md_number_to_chars.
1249 (fix_insn): Likewise.
1250 (ia64_init): New function.
1251 (ia64_target_format): New function.
1252 (md_begin): Set endianness, arch, and machine as appropriate.
1253 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
1254 Make these macros depend on TE_HPUX macro.
1255 (TARGET_FORMAT): Define.
1256 (HOST_SPECIAL_INIT): Define.
1257 * config/te-hpux.h: New file.
1258 * configure.in: Add "ia64-*-hpux*" target to configure.
1259 * configure: Regenerate.
1260
1261 2000-11-06 Kazu Hirata <kazu@hxi.com>
1262
1263 * as.c: Fix formatting.
1264 * dwarf2dbg.c: Likewise.
1265 * input-file.c: Likewise.
1266 * input-file.h: Likewise.
1267 * input-scrub.c: Likewise.
1268 * itbl-ops.c: Likewise.
1269 * listing.c: Likewise.
1270 * macro.h: Likewise.
1271 * messages.c: Likewise.
1272 * read.c: Likewise.
1273 * subsegs.c: Likewise.
1274 * subsegs.h: Likewise.
1275 * write.c: Likewise.
1276
1277 2000-11-06 Nick Clifton <nickc@redhat.com>
1278
1279 * doc/as.texinfo: Add GNU Free Documentation License.
1280 * doc/gasp.texi: Add GNU Free Documentation License.
1281 * doc/as.1: Add GNU Free Documentation License.
1282
1283 2000-11-05 Nick Clifton <nickc@redhat.com>
1284
1285 * config/tc-arm.c: Add include of "dwarf2dbg.h"
1286
1287 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1288
1289 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
1290 * configure: Regenerate.
1291
1292 2000-11-01 Nick Clifton <nickc@redhat.com>
1293
1294 * read.c (original_case_string): New global variable.
1295 (read_a_source_file): Copy opcode string into
1296 original_case_string if clobbering the case of the opcode.
1297 * read.h: Export the definition of original_case_string.
1298 * config/tc-arm.c (md_assembler): When parsing a .req
1299 directive use the original opcode string, not the case
1300 clobbered version.
1301
1302 2000-11-02 Nick Clifton <nickc@redhat.com>
1303
1304 * config/tc-mn10300.c (debug_line): Remove this static
1305 variable.
1306 (md_assemble): Call dwarf2_generate_asm_lineno instead of
1307 dwarf2_where and dwarf2_gen_line_info.
1308
1309 2000-11-02 Theo Honohan <th@futuretv.com>
1310
1311 * config/tc-arm.c (do_msr): Improve error message.
1312
1313 2000-10-31 Eric Christopher <echristo@redhat.com>
1314
1315 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
1316 or pc-relative, else use fx_offset.
1317
1318 2000-10-31 Jim Wilson <wilson@redhat.com>
1319
1320 * config/tc-ia64.c (struct md): New field tag_fixups.
1321 (ia64_flush_insns): Handle tag_fixups. Error if dangling
1322 qualifying predicate.
1323 (emit_one_bundle): Delete spurious multiplication by one. Handle
1324 tag_fixups.
1325 (ia64_start_line): Error if dangling qualifying predicate.
1326 (defining_tag): New static variable.
1327 (ia64_unrecognized_line, case '['): Parse tags.
1328 (ia64_frob_label): Create tag_fixups.
1329 (md_assemble): Reset md.qp.X_op after using it.
1330
1331 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1332
1333 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
1334
1335 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
1336
1337 * tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
1338
1339 2000-10-30 Kazu Hirata <kazu@hxi.com>
1340
1341 * expr.c: Fix formatting.
1342 * flonum-copy.c: Likewise.
1343 * flonum.h: Likewise.
1344 * gasp.c: Likewise.
1345 * hash.c: Likewise.
1346
1347 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1348
1349 * as.h (OPTION_MD_BASE): Bump to 190.
1350 * as.c (parse_args) <std_longopts>: Add comment about the need to
1351 check OPTION_MD_BASE in as.h.
1352
1353 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
1354 for weak symbols.
1355
1356 2000-10-27 Nick Clifton <nickc@redhat.com>
1357
1358 * configure.in (emulations): Add m68hc12.
1359 * configure: Regenerate.
1360 * po/gas.pot: Regenerate.
1361
1362 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
1363
1364 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
1365 cpsr*.
1366 (arm_psr_parse): Handle lowercase CPSR and SPSR.
1367
1368 2000-10-25 Nick Clifton <nickc@redhat.com>
1369
1370 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
1371 a DWARF2 line number information sequence.
1372
1373 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
1374
1375 * read.c (generate_lineno_debug): Update comment describing why
1376 DWARF2 line number debug information is not generated
1377 automatically by this function.
1378
1379 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
1380 not all.
1381
1382 * config/tc-arm.h (md_end): Define.
1383 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1384
1385 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
1386 if generating DWARF2 line numbers.
1387 (arm_end_of_source): New function. Call dwarf2_finish if
1388 necessary.
1389
1390 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
1391 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
1392 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
1393
1394 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
1395
1396 * tc-i386.c: Fix prototype declarations for functions taking no
1397 arguments.
1398
1399 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
1400
1401 * tc-i386.c (i386_operand_modifier): Remove.
1402 (build_displacement_string): Remove.
1403 (i386_parse_seg): Remove.
1404 (i386_intel_memory_operand): Remove.
1405 (i386_intel_operand): Re-write using recursive descent parser based
1406 on MASM documentation.
1407 (struct intel_parser_s): New structure.
1408 (intel_parser): New static variable.
1409 (struct intel_token): New structure.
1410 (cur_token, prev_token): New static variables.
1411 (T_NIL): Define.
1412 (T_CONST): Define.
1413 (T_REG): Define.
1414 (T_BYTE): Define.
1415 (T_WORD): Define.
1416 (T_DWORD): Define.
1417 (T_QWORD): Define.
1418 (T_XWORD): Define.
1419 (T_SHORT): Define.
1420 (T_OFFSET): Define.
1421 (T_PTR): Define.
1422 (T_ID): Define.
1423 (intel_match_token): New function.
1424 (intel_get_token): New function.
1425 (intel_putback_token): New function.
1426 (intel_expr): New function.
1427 (intel_e05): New function.
1428 (intel_e05_1): New function.
1429 (intel_e06): New function.
1430 (intel_e06_1): New function.
1431 (intel_e09): New function.
1432 (intel_e09_1): New function.
1433 (intel_e10): New function.
1434 (intel_e10_1): New function.
1435 (intel_e11): New function.
1436
1437 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1438
1439 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
1440 instructions to loose any special insn->architecture mask.
1441
1442 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
1443 (sparc_md_end, sparc_arch_types, sparc_arch,
1444 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
1445 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
1446 request v9b architecture if they are used).
1447
1448 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1449
1450 * config/tc-m68k.c: Fix the previous misapplied patch.
1451
1452 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1453
1454 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
1455 BFD_ASSEMBLER and !BFD_ASSEMBLER.
1456 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
1457 BFD_RELOC_*.
1458
1459 2000-10-17 Kazu Hirata <kazu@hxi.com>
1460
1461 * debug.c: Fix formatting.
1462 * depend.c: Likewise.
1463 * dwarf2dbg.c: Likewise.
1464 * dwarf2dbg.h: Likewise.
1465 * ecoff.c: Likewise.
1466 * expr.c: Likewise.
1467 * expr.h: Likewise.
1468 * flonum-konst.c: Likewise.
1469 * frags.h: Likewise.
1470
1471 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1472
1473 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
1474 options.
1475 * doc/as.texinfo: Added notes about this new option.
1476
1477 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
1478
1479 * config/tc-sh.c (JREG): Remove.
1480 (md_convert_frag): Remove #if 0:d code using JREG.
1481
1482 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
1483
1484 * config/tc-i386.c (i386_operand_modifier): Only match
1485 modifiers SHORT and FLAT if they are followed by a space.
1486 (parse_register): When `allow_naked_reg' is set, do not confuse
1487 identifiers that start with a register name with a register.
1488
1489 2000-10-12 Kazu Hirata <kazu@hxi.com>
1490
1491 * app.c: Fix formatting.
1492 * as.c: Likewise.
1493 * as.h: Likewise.
1494 * bit_fix.h: Likewise.
1495 * cgen.c: Likewise.
1496 * cgen.h: Likewise.
1497 * cond.c: Likewise.
1498
1499 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1500
1501 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
1502
1503 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1504
1505 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
1506 Re-arrange function a little and improve error message.
1507
1508 * write.c (write_relocs): Fix a comment.
1509
1510 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
1511 link-once sections.
1512
1513 2000-10-05 Jim Wilson <wilson@cygnus.com>
1514
1515 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
1516
1517 2000-10-05 Alan Modra <alan@linuxcare.com.au>
1518
1519 * config/tc-i386.c: Delete some useless comments, reformat others.
1520
1521 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
1522 non-global syms in linkonce sections.
1523
1524 2000-10-04 Ralf Baechle <ralf@gnu.org>
1525
1526 * config/tc-ia64.c (operand_match): Don't use // style comments.
1527 * config/tc-i370.c: Likewise.
1528
1529 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
1530
1531 Changes to handle varying register prefix and user symbol prefix.
1532 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
1533 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
1534 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
1535 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
1536 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
1537 (demand_register_prefix): New variable.
1538 (md_pseudo_table): New pseudo ".syntax".
1539 (md_longopts): New options --no-underscore and --underscore.
1540 (cris_target_format): Return elf32-us-cris or elf32-cris depending
1541 on symbols_have_leading_underscore.
1542 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
1543 (get_spec_reg): Ditto.
1544 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
1545 Fix formatting.
1546 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
1547 --help.
1548 <case OPTION_NO_US, case OPTION_US>: New.
1549 (md_show_usage): Be brief and reformat to match continuation of
1550 --help.
1551 * po/gas.pot: Regenerate.
1552
1553 2000-09-28 Alan Modra <alan@linuxcare.com.au>
1554
1555 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
1556 force relocs for 12 bit branches.
1557 (md_apply_fix): Similarly, adjust logic here.
1558
1559 2000-09-28 Alan Modra <alan@linuxcare.com.au>
1560
1561 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
1562 adjust for external and weak syms as we will use a reloc. Allow
1563 for +8 offset when calculating limits of branches.
1564 (hppa_fix_adjustable): Undo 2000-09-23 change.
1565 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
1566 Correct distance calculation.
1567 (tc_gen_reloc): Print the file name and line number if we can't
1568 handle a fixup.
1569
1570 From John David Anglin <dave@hiauly1.hia.nrc.ca>
1571 * config/tc-hppa.c (nonzero_dibits): Define.
1572 (arg_reloc_stub_needed): Check each arg and return value
1573 separately for zero case.
1574 (pa_align): Declare argument `bytes'.
1575
1576 2000-09-25 Kazu Hirata <kazu@hxi.com>
1577
1578 * config/tc-cris.c: Fix formatting.
1579 * config/tc-d10v.h: Likewise.
1580 * config/tc-d30v.c: Likewise.
1581 * config/tc-d30v.h: Likewise.
1582 * config/tc-fr30.c: Likewise.
1583 * config/tc-fr30.h: Likewise.
1584 * config/tc-m68k.c: Likewise.
1585 * config/tc-m68k.h: Likewise.
1586 * config/tc-pj.h: Likewise.
1587 * config/tc-ppc.c: Likewise.
1588 * config/tc-ppc.h: Likewise.
1589 * config/tc-sh.c: Likewise.
1590 * config/tc-sh.h: Likewise.
1591 * config/tc-sparc.c: Likewise.
1592 * config/tc-v850.h: Likewise.
1593 * config/tc-vax.h: Likewise.
1594 * config/tc-w65.h: Likewise.
1595 * config/tc-z8k.h: Likewise.
1596
1597 2000-09-23 Alan Modra <alan@linuxcare.com.au>
1598
1599 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
1600 checks only for ELF.
1601 (hppa_force_relocation): Likewise.
1602
1603 2000-09-22 Jim Wilson <wilson@cygnus.com>
1604
1605 * config/tc-ia64.c (dv_sem): Add "stop".
1606 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
1607 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
1608 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
1609 match above.
1610 (mark_resources): Check IA64_RS_PRr.
1611
1612 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1613
1614 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
1615 md_estimate_size_before_relax): Redesign and clean up the
1616 relaxation mechanism.
1617
1618 2000-09-21 Kazu Hirata <kazu@hxi.com>
1619
1620 * config/tc-ns32k.c: Fix formatting.
1621 * config/tc-ns32k.h: Likewise.
1622
1623 2000-09-20 Kazu Hirata <kazu@hxi.com>
1624
1625 * config/tc-m32r.c: Fix formatting.
1626 * config/tc-m32r.h: Likewise.
1627 * config/tc-m68851.h: Likewise.
1628 * config/tc-m68hc11.c: Likewise.
1629 * config/tc-m68hc11.h: Likewise.
1630 * config/tc-m88k.c: Likewise.
1631 * config/tc-mcore.c: Likewise.
1632 * config/tc-mcore.h: Likewise.
1633 * config/tc-mips.c: Likewise.
1634 * config/tc-mips.h: Likewise.
1635 * config/tc-mn10200.h: Likewise.
1636 * config/tc-mn10300.h: Likewise.
1637 * config/tc-tahoe.c: Likewise.
1638 * config/tc-tahoe.h: Likewise.
1639
1640 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1641
1642 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
1643 Likewise in relaxation description comments.
1644
1645 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1646
1647 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
1648 subtraction of two syms without emitting a relocation.
1649
1650 From David Huggins-Daines <dhd@linuxcare.com>
1651 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
1652 global or weak symbols.
1653
1654 2000-09-15 Kazu Hirata <kazu@hxi.com>
1655
1656 * config/tc-h8300.h: Fix formatting.
1657 * config/tc-h8500.c: Likewise.
1658 * config/tc-h8500.h: Likewise.
1659 * config/tc-hppa.h: Likewise.
1660 * config/tc-i370.h: Likewise.
1661 * config/tc-i386.h: Likewise.
1662 * config/tc-i860.c: Likewise.
1663 * config/tc-i860.h: Likewise.
1664 * config/tc-i960.h: Likewise.
1665 * config/tc-ia64.c: Likewise.
1666 * config/tc-ia64.h: Likewise.
1667
1668 2000-09-14 Kazu Hirata <kazu@hxi.com>
1669
1670 * config/tc-a29k.c: Fix formatting.
1671 * config/tc-alpha.c: Likewise.
1672 * config/tc-arc.c: Likewise.
1673 * config/tc-arc.h: Likewise.
1674 * config/tc-arm.c: Likewise.
1675 * config/tc-arm.h: Likewise.
1676 * config/tc-avr.c: Likewise.
1677 * config/tc-avr.h: Likewise.
1678 * config/tc-tic30.c: Likewise.
1679 * config/tc-tic30.h: Likewise.
1680 * config/tc-tic54x.c: Likewise.
1681 * config/tc-tic54x.h: Likewise.
1682 * config/tc-tic80.c: Likewise.
1683 * config/tc-tic80.h: Likewise.
1684
1685 2000-09-14 Timothy Wall <twall@cygnus.com>
1686
1687 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
1688 parallel comparisons for later use.
1689 (struct rsrc): Add parallel comparison type.
1690 (resources_match): Skip special cases of PR usage (non-conflicting
1691 parallel compares).
1692
1693 2000-09-13 Kazu Hirata <kazu@hxi.com>
1694
1695 * config/obj-ecoff.c: Fix formatting.
1696 * config/obj-elf.c: Likewise.
1697 * config/obj-elf.h: Likewise.
1698 * config/obj-evax.h: Likewise.
1699 * config/obj-generic.h: Likewise.
1700 * config/obj-hp300.c: Likewise.
1701 * config/obj-hp300.h: Likewise.
1702 * config/obj-ieee.h: Likewise.
1703 * config/obj-vms.c: Likewise.
1704 * config/obj-vms.h: Likewise.
1705
1706 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1707
1708 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
1709 (md_parse_option): Ditto.
1710 (md_longopts): Add -mips32 option.
1711 (md_show_usage): Document new options.
1712 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
1713 (mips_ip): Assemble mfc0 with a sub-selection code.
1714 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
1715 (mips_cpu_to_str): New function.
1716 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
1717 Use CPU_* defines instead of hardcoded numbers.
1718
1719 * doc/as.texinfo: Document new options.
1720 * doc/c-mips.texi: Ditto.
1721
1722 2000-09-12 Kazu Hirata <kazu@hxi.com>
1723
1724 * as.h: Fix formatting.
1725 * asintl.h: Likewise.
1726 * bit_fix.h: Likewise.
1727 * config/obj-aout.c: Likewise.
1728 * config/obj-aout.h: Likewise.
1729 * config/obj-bout.c: Likewise.
1730 * config/obj-bout.h: Likewise.
1731 * config/obj-coff.c: Likewise.
1732 * config/obj-coff.h: Likewise.
1733 * dwarf2dbg.h: Likewise.
1734 * expr.h: Likewise.
1735 * flonum.h: Likewise.
1736 * frags.h: Likewise.
1737 * itbl-ops.h: Likewise.
1738 * macro.h: Likewise.
1739 * read.h: Likewise.
1740 * sb.h: Likewise.
1741 * struc-symbol.h: Likewise.
1742 * subsegs.h: Likewise.
1743 * symbols.h: Likewise.
1744 * tc.h: Likewise.
1745 * write.h: Likewise.
1746
1747 2000-09-11 Kazu Hirata <kazu@hxi.com>
1748
1749 * bignum-copy.c: Fix formatting.
1750 * config/tc-i370.c: Likewise.
1751 * config/tc-i960.c: Likewise.
1752 * config/tc-m68k.c: Likewise.
1753 * ehopt.c: Likewise.
1754 * flonum-copy.c: Likewise.
1755 * flonum-konst.c: Likewise.
1756 * flonum-mult.c: Likewise.
1757 * literal.c: Likewise.
1758 * read.c: Likewise.
1759 * sb.c: Likewise.
1760 * stabs.c: Likewise.
1761 * subsegs.c: Likewise.
1762
1763 2000-09-09 Philip Blundell <philb@gnu.org>
1764
1765 * configure.in (arm*-*-uclinux*): New target.
1766 * configure: Regenerate.
1767
1768 2000-09-09 Kazu Hirata <kazu@hxi.com>
1769
1770 * input-file.c: Fix formatting.
1771 * itbl-ops.c: Likewise.
1772 * messages.c: Likewise.
1773
1774 2000-09-08 Philip Blundell <philb@gnu.org>
1775
1776 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
1777 offset is negative.
1778
1779 2000-09-07 H.J. Lu <hjl@gnu.org>
1780
1781 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1782 * configure: Rebuild.
1783
1784 2000-09-07 Kazu Hirata <kazu@hxi.com>
1785
1786 * atof-generic.c: Fix formatting.
1787 * config/tc-mips.c: Likewise.
1788 * config/tc-vax.c: Likewise.
1789 * input-scrub.c: Likewise.
1790
1791 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1792
1793 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
1794 * configure.in (sh-*-linux*): Added.
1795 * configure: Rebuilt.
1796
1797 2000-09-06 Kazu Hirata <kazu@hxi.com>
1798
1799 * config/tc-hppa.c: Fix formatting.
1800
1801 * ecoff.c: Fix formatting.
1802
1803 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1804
1805 * configure: Rebuilt with new libtool.m4.
1806
1807 2000-09-05 Kazu Hirata <kazu@hxi.com>
1808
1809 * cgen.c: Fix formatting.
1810 * config/tc-ia64.c: Likewise.
1811
1812 2000-09-05 Nick Clifton <nickc@redhat.com>
1813
1814 * aclocal.m4: Regenerate.
1815 * config.in: Regenerate.
1816 * configure: Regenerate.
1817 * po/gas.pot: Regenerate.
1818
1819 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
1820
1821 * config/tc-cris.c: Correct comment typos.
1822
1823 2000-09-05 Eric Christopher <echristo@cygnus.com>
1824
1825 * config/tc-mn10300.c: Cleanup.
1826 (md_pcrel_from): Enable.
1827
1828 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1829
1830 * expr.c (operand): Fix a comment typo.
1831 * write.c (write_relocs): Fix a signed/unsigned warning.
1832
1833 * config/tc-hppa.c (fudge_reg_expressions): New
1834 (hppa_force_reg_syms_absolute): New.
1835 (pa_equ): Allow reg_section expressions.
1836 * config/tc-hppa.c (md_optimize_expr): Define.
1837 (hppa_force_reg_syms_absolute): Prototype.
1838
1839 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
1840 (pa_parse_number): Pass in arg to select fp reg parsing.
1841 Return 1 to indicate format checks pass. If strict, then only
1842 accept a register or register symbol. Return value in...
1843 (pa_number): New static for pa_parse_number.
1844 (FP_REG_BASE): Define.
1845 (FP_REG_RSEL): Define.
1846 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
1847 appropriate. White space changes.
1848 (need_pa11_opcode): Don't bother passing any params, get them from
1849 globals instead.
1850 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
1851 Remove extraneous check in case 'Q'.
1852 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
1853 reg, set section of resulting symbol to reg_section.
1854 (pa_parse_space_stmt): Modify call to pa_parse_number.
1855 (pa_space): Likewise.
1856
1857 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
1858 (hppa_force_relocation): Handle vtable relocs.
1859 (pa_vtable_entry): New.
1860 (pa_vtable_inherit): New.
1861 (md_pseudo_table): Add entries for vtable pseudos.
1862 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
1863 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
1864 against weak syms.
1865 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
1866 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
1867 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
1868 millicode import.
1869 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
1870 specify a symbol type.
1871
1872 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
1873 dependent things together.
1874 (md_elf_symbol_type): Define.
1875
1876 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
1877 symbol.
1878 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
1879
1880 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
1881 (obj_elf_vtable_entry): Declare.
1882
1883 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
1884 and export function.
1885 (obj_elf_vtable_entry): Similarly.
1886 (elf_pseudo_table): Fix the damage with a cast.
1887
1888 2000-09-03 Richard Henderson <rth@cygnus.com>
1889
1890 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
1891 for template selection when a label is needed.
1892
1893 2000-09-02 Kazu Hirata <kazu@hxi.com>
1894
1895 * config/tc-ia64.c: Fix formatting.
1896
1897 2000-09-02 Nick Clifton <nickc@redhat.com>
1898
1899 * configure.in: Increase version number to 2.10.91.
1900 * configure: Regenerate.
1901 * aclocal.m4: Regenerate.
1902 * config.in: Regenerate.
1903 * po/gas.pot: Regenerate.
1904 * Makefile.in: Regenerate.
1905
1906 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
1907
1908 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
1909 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
1910 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
1911 similar relocs.
1912 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
1913 branches.
1914
1915 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1916
1917 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
1918 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
1919 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
1920 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
1921 (GOT_symbol): New variable.
1922 (md_undefined_symbol): Set it.
1923
1924 2000-09-01 Richard Henderson <rth@cygnus.com>
1925
1926 * config/tc-ia64.c (match): Don't inline.
1927 (extra_goodness): New.
1928 (md_begin): Prefer nop.f and nop.b for best_template.
1929
1930 2000-08-31 Kazu Hirata <kazu@hxi.com>
1931
1932 * as.c: Fix formatting.
1933 * cond.c: Likewise.
1934 * frags.c: Likewise.
1935 * macro.c: Likewise.
1936
1937 2000-08-31 Eric Christopher <echristo@cygnus.com>
1938
1939 * config/tc-mn10300.c: Cleanup and fix warnings.
1940 (md_pseudo_table): Add initializers.
1941 (md_show_usage): Cleanup.
1942 (md_parse_option): Fix warnings.
1943 (md_undefined_symbol): Fix warnings.
1944 (md_conver_frag): Fix warnings.
1945 (tc_gen_reloc): Fix warnings.
1946 (md_apply_fix3): Fix warnings.
1947 (check_operand): Fix warnings.
1948
1949 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1950
1951 * acinclude.m4: Include libtool and gettext macros from the
1952 top level.
1953 * aclocal.m4, configure: Rebuilt.
1954
1955 2000-08-30 Mark Hatle <mhatle@mvista.com>
1956
1957 * config/tc-ppc.c (md_parse_option): Recognize -m405.
1958
1959 2000-08-31 Kazu Hirata <kazu@hxi.com>
1960
1961 * listing.c: Fix formatting.
1962
1963 2000-08-29 Kazu Hirata <kazu@hxi.com>
1964
1965 * app.c: Fix a comment typo. Fix formatting.
1966
1967 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1968
1969 * tc-vax.c (md_convert_frag): Correctly calculate the pc relative
1970 offset of the target destination for jmp instructions.
1971 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
1972
1973 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1974
1975 * NEWS: Mention support for CRIS.
1976
1977 Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
1978
1979 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
1980 Sets `.lcomm' alignment to zero.
1981
1982 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
1983
1984 * config/tc-i386.h <OBJ_MAYBE_ELF, OBJ_MAYBE_COFF>
1985 (TC_FIX_ADJUSTABLE): Define.
1986
1987 2000-08-23 Jim Wilson <wilson@cygnus.com>
1988
1989 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
1990 unwind.personality_routine is set.
1991
1992 2000-08-23 H.J. Lu <hjl@gnu.org>
1993
1994 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
1995
1996 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
1997
1998 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
1999 environment is pe.
2000
2001 2000-08-22 H.J. Lu <hjl@gnu.org>
2002
2003 * config.in (STRICTCOFF): New for strict COFF.
2004
2005 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
2006 i386-*-go32* and i386-go32-rtems*.
2007 * configure: Rebuilt.
2008
2009 * config/obj-coff.c (obj_coff_endef): Follow the historical
2010 behavior if STRICTCOFF is not defined.
2011
2012 * doc/internals.texi: Document STRICTCOFF.
2013
2014 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2015
2016 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
2017 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
2018 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
2019 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
2020 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
2021 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
2022 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
2023 Likewise.
2024
2025 2000-08-22 Eric Christopher <echristo@cygnus.com>
2026
2027 * config/tc-mn10300.c: (md_apply_fix): New function.
2028 (mn10300_force_relocation): New function.
2029 (mn10300_fix_adjustable): New function.
2030
2031 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
2032 (TC_HANDLES_FX_DONE): Define.
2033 (obj_fix_adjustable): Define.
2034 (MD_APPLY_FIX3): Define.
2035 (TC_LINKRELAX_FIXUP): Define.
2036
2037 * write.c: (TC_LINKRELAX_FIXUP): Define if not
2038 previously defined.
2039 (fixup_segment): Use TC_LINKRELAX_FIXUP.
2040
2041 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
2042
2043 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2044
2045 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
2046 if the fixup resulted in a relocation.
2047
2048 2000-08-18 Nick Clifton <nickc@redhat.com>
2049
2050 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
2051 Make reference to first element of shift_names explicit.
2052
2053 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
2054
2055 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
2056 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
2057 add a symbol's address. Removed all target-specific #ifdefs that
2058 used to accomplished the same.
2059 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
2060 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
2061 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
2062 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
2063 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
2064
2065 2000-08-17 Kazu Hirata <kazu@hxi.com>
2066
2067 * dwarf2dbg.c: Fix formatting.
2068
2069 2000-08-17 Nick Clifton <nickc@redhat.com>
2070
2071 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
2072 to be recoded as logical shift lefts by zero.
2073
2074 2000-08-16 Jim Wilson <wilson@cygnus.com>
2075
2076 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
2077 postincrement modified registers. Handle IA64_OPND_R3_2 addl
2078 source registers.
2079 (note_register_values): Handle IA64_OPND_R3_2 operands.
2080
2081 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2082
2083 * config/tc-i860.c (md_operand): Silly typo fixed.
2084
2085 2000-08-16 Nick Clifton <nickc@redhat.com>
2086
2087 * config/tc-arm.c (struct asm_shift): Delete.
2088 (shift[]): Delete.
2089 (enum asm_shift_index): New.
2090 (struct asm_shift_properties): New.
2091 (struct asm_shift_name): New.
2092 (shift_properties[]); New.
2093 (shift_names[]); New.
2094
2095 (decode_shift): Use new structures.
2096 Issue a warning is "ROR #0" is used.
2097 Issue a warning if "ASR #0" or "LSR #0" is used.
2098
2099 (md_begin): Initialise arm_shift_hsh table from new
2100 asm_shift_name array.
2101
2102 2000-08-16 Jakub Jelinek <jakub@redhat.com>
2103
2104 * config/tc-sparc.c: Kill all warnings.
2105 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
2106 in -xarch= as well.
2107 (md_show_usage): Update usage text.
2108
2109 2000-08-16 Nick Clifton <nickc@redhat.com>
2110
2111 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
2112 useful.
2113
2114 2000-08-15 Will Cohen <wcohen@redhat.com>
2115
2116 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
2117
2118 * config/tc-sh.c (md_assemble): Changed so debug_type
2119 test performed for ppi_assemble
2120 * config/tc-sh.c: Included dwarf2dbg.h.
2121 (debug_line): Defined.
2122 (md_assemble): Generates dwarf2 line info.
2123 (sh_finalize): New function. Finalize dwarf2 info.
2124 (assemble_ppi): Returns size of code generated.
2125 (build_Mytes): Returns size of code generated.
2126 (md_pseudo_table): Added "file" and "loc" psuedo ops.
2127 * config/tc-sh.h (md_end): Defined.
2128 (sh_finalize): Declared.
2129
2130 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
2131
2132 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
2133 md_number_to_chars.
2134
2135 2000-08-14 Nick Clifton <nickc@redhat.com>
2136
2137 * config/tc-arm.c (do_bx): Allow "bx pc".
2138
2139 2000-08-14 Jim Wilson <wilson@cygnus.com>
2140
2141 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
2142 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
2143 (md_begin): Change assignment to md.flag to OR in the new bit.
2144
2145 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
2146
2147 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
2148 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
2149 C_MOU, and C_EOS.
2150
2151 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2152
2153 * NEWS: Mention i860 support.
2154
2155 Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
2156
2157 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2158
2159 2000-08-14 Andreas Schwab <schwab@suse.de>
2160
2161 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
2162
2163 2000-08-11 Andreas Schwab <schwab@suse.de>
2164
2165 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
2166 argument.
2167
2168 2000-08-11 Kazu Hirata <kazu@hxi.com>
2169
2170 * expr.c: Fix formatting.
2171 * config/obj-bout.c: Likewise.
2172
2173 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2174
2175 * doc/c-i860.texi: Flesh out the i860 section more.
2176
2177 2000-08-10 Kazu Hirata <kazu@hxi.com>
2178
2179 * symbols.c: Fix formatting.
2180 * expr.c: Likewise.
2181
2182 Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
2183
2184 * tc-i386.c (md_assemble): Skip suffix check if the opcode modifier
2185 has the IgnoreSize bit set.
2186
2187 2000-08-09 Alan Modra <alan@linuxcare.com.au>
2188
2189 From Rodney Brown <RodneyBrown@mynd.com>
2190 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
2191 * configure: Regenerate.
2192
2193 2000-08-09 Kazu Hirata <kazu@hxi.com>
2194
2195 * hash.c: Fix formatting.
2196 * gasp.c: Likewise.
2197
2198 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2199
2200 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
2201 (i860_fix_info): New enum.
2202 (MD_APPLY_FIX3): Define.
2203 (WORKING_DOT_WORD): Define.
2204 (TC_HANDLES_FX_DONE): Define.
2205 (DIFF_EXPR_OK): Define.
2206 (LISTING_HEADER): Define.
2207 (TARGET_FORMAT): Select target format based on endian flag.
2208 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
2209 (target_big_endian): Add external declaration.
2210
2211 * config/tc-i860.c: All existing code reworked completely. Other
2212 new code shown below.
2213 (SYNTAX_SVR4): Define.
2214 (target_warn_expand): New variable.
2215 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
2216 (md_longopts): Declare and define with new options (-EL, -EB,
2217 and -mwarn-expand).
2218 (md_show_usage): New function.
2219 (md_operand): New function.
2220 (obtain_reloc_for_imm16): New function.
2221 (md_apply_fix3): New function.
2222 (tc_gen_reloc): New function.
2223
2224 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2225
2226 * config/tc-m68hc11.c (build_jump_insn): Make sure the
2227 2 bytes of the jump address are in the same frag.
2228 (find): Accept 68hc12 register indirect modes.
2229
2230 * NEWS: Mention 68HC11 & 68HC12 support.
2231
2232 2000-08-07 Richard Henderson <rth@cygnus.com>
2233
2234 * config/tc-ia64.c (unwind): Add prologue_mask member.
2235 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
2236 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
2237 (dot_body): Clear unwind.prologue_mask.
2238 (dot_prologue): Set it. Accept a register second argument.
2239
2240 2000-08-07 Kazu Hirata <kazu@hxi.com>
2241
2242 * config/atof-ieee.c: Fix formatting.
2243 * config/atof-tahoe.c: Likewise.
2244
2245 2000-08-06 Nick Clifton <nickc@cygnus.com>
2246
2247 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
2248 work.
2249
2250 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
2251 of .popsection, .previous, .pushsection, .subsection,
2252 .version, .vtable_entry, .vtable_inherit and .weak.
2253
2254 2000-08-05 Kazu Hirata <kazu@hxi.com>
2255
2256 * config/tc-cris.c: Fix formatting.
2257 * config/tc-i386.c: Likewise.
2258 * config/tc-sparc.c (sparc_ip): Simplify the code.
2259
2260 2000-08-04 Kazu Hirata <kazu@hxi.com>
2261
2262 * config/tc-cris.c: Rearrange code for readability.
2263 * config/tc-d10v.c: Fix formatting.
2264 * config/tc-m32r.c: Likewise.
2265 * config/tc-sparc.c: Likewise.
2266
2267 2000-08-02 Jim Wilson <wilson@cygnus.com>
2268
2269 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
2270 before ia64_find_opcode.
2271 (md_assemble): Likewise.
2272
2273 2000-08-01 Nick Clifton <nickc@cygnus.com>
2274
2275 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
2276 Undo some formatting fixes.
2277
2278 2000-08-01 Kazu Hirata <kazu@hxi.com>
2279
2280 * config/obj-som.c: Fix formatting.
2281 * config/obj-ieee.c: Likewise.
2282 * config/tc-arm.c: Likewise.
2283 * config/tc-v850.c: Likewise.
2284
2285 2000-08-01 Nick Clifton <nickc@redhat.com>
2286
2287 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
2288 index by command line option.
2289
2290 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2291
2292 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
2293 (@node M68K-Branch): Rewrite to match the reality.
2294
2295 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2296
2297 * doc/c-i860.texi: New file.
2298 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
2299 * doc/Makefile.in: Regenerate.
2300 * doc/all.texi: Add I860 as relevant architecture.
2301 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
2302
2303 2000-07-31 Kazu Hirata <kazu@hxi.com>
2304
2305 * config/tc-d30v.c: Fix formatting.
2306
2307 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2308
2309 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
2310 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
2311 long emit a long branch if available instead of an absolute jump, never
2312 emit absolute jumps for anything with --pcrel.
2313
2314 * doc/c-m68k.texi: Document new command line option.
2315
2316 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
2317
2318 * config/tc-avr.c: Use PARAMS macro in function declarations.
2319 Don't declare md_pcrel_from_section (already in tc-avr.h).
2320 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
2321 (avr_operand): Don't set (unsigned) op_mask to -1.
2322
2323 2000-07-28 Jason Eckhardt <jle@cygnus.com>
2324
2325 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
2326 * configure: Regenerated.
2327 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
2328 of operand to the .type directive (.e.g, "type").
2329
2330 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2331
2332 * as.h (warn_comment, found_comment, found_comment_file): Declare.
2333 * app.c (do_scrub_chars): Record where first comment found.
2334 * read.c (read_a_source_file): Init found_comment on entry, and
2335 notify whether comments found on exit.
2336 * config/tc-hppa.c (md_shortopts): Add "c".
2337 (md_longopts): Add warn-comment.
2338 (md_parse_option): Handle it.
2339 (md_show_usage): Show available options.
2340 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
2341
2342 Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
2343
2344 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
2345 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
2346 sym_ptr_ptr
2347 (md_estimate_size_before_relax): Don't fall off end of function.
2348
2349 2000-07-27 Kazu Hirata <kazu@hxi.com>
2350
2351 * config/tc-avr.c: Fix formatting.
2352 * config/tc-ns32k.c: Likewise.
2353
2354 2000-07-27 Alan Modra <alan@linuxcare.com.au>
2355
2356 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
2357
2358 2000-07-27 Kazu Hirata <kazu@hxi.com>
2359
2360 * config/tc-d10v.c: Fix formatting.
2361 * config/tc-z8k.c: Likewise.
2362 * config/tc-sparc.c: Likewise.
2363
2364 2000-07-26 Dave Brolley <brolley@redhat.com>
2365
2366 * cgen.c (queue_fixup): Declare opinfo.
2367 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
2368 (gas_cgen_md_operand): Ditto.
2369 (gas_cgen_md_apply_fix3): Ditto.
2370
2371 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
2372
2373 * config/obj-coff.c (obj_frob_symbol): Don't merge
2374 labels. Don't merge if the symbol isn't constant. Return
2375 immediately if a symbol is merged.
2376
2377 2000-07-22 Alan Modra <alan@linuxcare.com.au>
2378
2379 * frags.c (frag_align): Correct absolute section alignment.
2380
2381 2000-07-20 DJ Delorie <dj@redhat.com>
2382
2383 * config/obj-coff.c (obj_frob_symbol): revert previous change,
2384 it breaks linking against DLLs.
2385
2386 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2387
2388 * configure.in: Add CRIS support.
2389 * configure: Regenerate.
2390 * Makefile.am: (CPU_TYPES): Add cris.
2391 (CPU_OBJ_VALID) [aout]: Add cris.
2392 (MULTI_CPU_TYPES): Add cris.
2393 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
2394 [coff]: Only i386 and mips are valid.
2395 (TARGET_CPU_CFILES): Add config/tc-cris.c.
2396 (TARGET_CPU_HFILES): Add config/tc-cris.h.
2397 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
2398 Regenerate dependencies.
2399 * Makefile.in: Regenerate.
2400 * aclocal.m4: Regenerate.
2401 * as.c: Declare crisaout, criself.
2402 * config/tc-cris.h, config/tc-cris.c: New.
2403 * config/e-criself.c, config/e-crisaout.c: New.
2404 * po/POTFILES.in, po/gas.pot: Regenerate.
2405
2406 2000-07-20 Kazu Hirata <kazu@hxi.com>
2407
2408 * read.c: Fix formatting.
2409 * write.c: Fix formatting.
2410
2411 2000-07-19 H.J. Lu <hjl@gnu.org>
2412
2413 * sb.c: Include <stdlib.h> if exists for abort ().
2414
2415 2000-07-19 Alan Modra <alan@linuxcare.com.au>
2416
2417 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
2418 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
2419 (pa_type_args): Same here.
2420
2421 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
2422
2423 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
2424 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
2425 the storage class is already set.
2426
2427 2000-07-17 Kazu Hirata <kazu@hxi.com>
2428
2429 * config/tc-m68hc11.c: Fix formatting.
2430 * config/tc-mn10200.c: Likewise.
2431 * config/tc-mn10300.c: Likewise.
2432 * config/tc-pj.c: Likewise.
2433 * config/tc-tic80.c: Likewise.
2434 * config/tc-w65.c: Likewise.
2435
2436 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
2437
2438 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
2439 is defined.
2440
2441 2000-07-15 Ian Lance Taylor <ian@zembu.com>
2442
2443 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
2444 @code.
2445
2446 2000-07-15 Alan Modra <alan@linuxcare.com.au>
2447
2448 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
2449 ELF as are used for SOM (except the 32-bit reloc one) to decide
2450 whether a symbol can be reduced to a section symbol. Expand on
2451 the comment for symbols involved in LR% and RR% expressions.
2452
2453 2000-07-14 Nick Clifton <nickc@cygnus.com>
2454
2455 * config/tc-mips.c (mips_disable_float_construction): New
2456 static variable. Set to true if doubles should not be
2457 constructed by loading two single width fp registers with
2458 halves of the value.
2459 (mips_ip): Test mips_disable_float_construction.
2460 (md_longopts): Add command line switches --construct-floats
2461 and --no-construct-floats.
2462 (md_parse_option): Parse new command line options.
2463 (md_show_usage): Describe new command line options.
2464
2465 * doc/c-mips.texi: Document new command line options.
2466
2467 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
2468
2469 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
2470 * configure: Regenerate.
2471
2472 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
2473
2474 * configure.in (DEFAULT_EMULATION setting): Revert part of
2475 2000-07-01 change that set te_multi=multi unless set to tmips.
2476 * configure: Regenerate.
2477
2478 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2479
2480 * config/obj-coff.c (coff_frob_section): Add padding to the last
2481 section when aligning it increases its size.
2482
2483 2000-07-11 Kazu Hirata <kazu@hxi.com>
2484
2485 * config/tc-tic54x.c: Fix formatting.
2486
2487 2000-07-10 Kazu Hirata <kazu@hxi.com>
2488
2489 * config/tc-h8500.c: Fix formatting.
2490 * config/tc-tic54x.c: Fix formatting.
2491
2492 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2493
2494 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
2495 displacements correctly.
2496
2497 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
2498
2499 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
2500
2501 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
2502 warning.
2503 (hash_jam): Ditto.
2504
2505 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2506
2507 From David Huggins-Daines <dhd@linuxcare.com>
2508 * config/te-hppalinux64.h: Add a new emulation.
2509 * configure.in (emulations): Add configure bits to support the
2510 64-bit Linux/parisc target.
2511 * configure: Regenerate.
2512
2513 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
2514 (md_shortopts): Add `V' for ELF.
2515
2516 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
2517 when SOM or ELF_ARG_RELOC are defined.
2518 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
2519 ELF_ARG_RELOC are defined.
2520 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
2521 (pa_stringer): ..Do it here instead. Fix comment typos.
2522 (hppa_force_relocation): Cast enums to int before comparing with
2523 ints.
2524
2525 From Ryan Bradetich <rbradetich@uswest.net>
2526 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
2527 redifinition warning.
2528 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
2529 (hppa_force_relocation): ditto
2530 (md_apply_fix): Added cast to buf to fix warnings.
2531
2532 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
2533 cons_fix_new_hppa, hppa_force_relocation): Prototype.
2534
2535 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
2536 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
2537 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
2538 reloc_type** to avoid warnings in switch.
2539 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
2540 little earlier instead.
2541
2542 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
2543 and elf.
2544 (pa_type_args): Use symbol_arg_reloc_info.
2545 (struct pa_it): Make arg_reloc unsigned int.
2546 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
2547 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
2548 (pa_code): Delete. pa_text duplicates this function.
2549 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
2550 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
2551 int.
2552 (cons_fix_new_hppa): Actually change selector to e_fsel when
2553 warning about assuming so.
2554 (tc_gen_reloc): More example elf arg reloc code.
2555 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
2556 (hppa_force_relocation): Likewise.
2557
2558 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
2559 files.
2560 (pa_end_of_source): Prototype.
2561 (hppa_fix_adjustable): Prototype.
2562 (LABELS_WITHOUT_COLONS): Move it..
2563 * config/te-hppa.h: To here.
2564
2565 * config/te-hppa64.h: New file.
2566
2567 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
2568 type.
2569 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
2570 format -10, -16, 16 relocs.
2571 (hppa_elf_mark_end_of_function): Test for null
2572 last_call_info->start_symbol
2573
2574 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
2575 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
2576 re_assesmble_* functions. Delete extraneous statements. Fix
2577 typos in comments.
2578 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
2579 insn to re_assemble_*.
2580
2581 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
2582
2583 * doc/internals.texi (Expressions): Fix typo.
2584
2585 2000-07-08 Kazu Hirata <kazu@hxi.com>
2586
2587 * config/tc-sh.c: Fix formatting.
2588 * config/tc-tic54x.c: Fix formatting.
2589 * depend.c: Fix formatting.
2590 * flonum-konst.c: Likewise.
2591 * flonum-mult.c: Likewise.
2592
2593 2000-07-07 Kazu Hirata <kazu@hxi.com>
2594
2595 * config/tc-sh.c: Fix comments.
2596 * config/obj-vms.c: Fix comments.
2597 * config/tc-a29k.c: Likewise.
2598 * config/tc-alpha.c: Likewise.
2599 * config/tc-h8300.c: Likewise.
2600 * config/tc-h8500.c: Likewise.
2601 * config/tc-i370.c: Likewise.
2602 * config/tc-ia64.c: Likewise.
2603 * config/tc-m68hc11.c: Likewise.
2604 * config/tc-m68k.c: Likewise.
2605 * config/tc-mips.c: Likewise.
2606 * config/tc-ns32k.c: Likewise.
2607 * config/tc-ppc.c: Likewise.
2608 * config/tc-z8k.c: Likewise.
2609
2610 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
2611
2612 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
2613 Default to '(SEC_LOAD | SEC_DATA)'.
2614 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
2615
2616 * doc/internals.texi (CPU Backend): Describe
2617 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
2618
2619 Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
2620
2621 * as.c (parse_args): NULL terminate the long option list.
2622
2623 Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
2624
2625 * config/tc-d30v.h: Include "write.h" for fixS.
2626 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
2627
2628 2000-07-05 Nick Clifton <nickc@cygnus.com>
2629
2630 * config/tc-d30v.c (write_2_short): Further changes to warning
2631 messages produced when combining EITHER_BUT_PREFER_MU attributed
2632 opcodes.
2633
2634 2000-07-05 DJ Delorie <dj@redhat.com>
2635
2636 * MAINTAINERS: new
2637
2638 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2639
2640 * config/tc-arm.c (psrs): Accept combinations of flags.
2641
2642 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2643
2644 * config/tc-avr.c: Change _ () to _() around all strings marked
2645 for translation (exception from the usual coding style).
2646 (avr_opt): New struct variable, how the new switches are set.
2647 (OPTION_MMCU): Define as 'm' and actually use.
2648 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
2649 (show_mcu_list): New function, display the list of known MCUs.
2650 (md_show_usage): Document the new switches. Call show_mcu_list.
2651 (avr_set_arch): Change 'm' to OPTION_MMCU.
2652 (md_parse_option): Call show_mcu_list if unknown MCU specified.
2653 Handle the new switches.
2654 (avr_operands): Disable warnings for undefined combinations of
2655 operands if -mall-opcodes. Disable warnings for skipping two-word
2656 instructions if enhanced core or -mno-skip-bug.
2657 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
2658 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
2659 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
2660 (avr_ldi_expression): Warn about implicit lo8().
2661 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
2662
2663 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2664
2665 * configure.in: Add entry for mips-*-sysv4*MP*
2666 * configure: Rebuild
2667 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
2668 elf32-tradlittlemips for traditional mips targets.
2669 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
2670 test for Link Once sections as in adjust_reloc_syms.
2671 * config/te-tmips.h: New file for traditional mips targets. Define
2672 TE_TMIPS.
2673
2674 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2675
2676 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
2677 flags argument is not present, don't change an existing section's
2678 section's attributes. If the flags argument is present, warn if the
2679 attributes don't match the section's current attributes. When
2680 long section names are supported, set SEC_LINK_ONCE and
2681 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
2682
2683 Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
2684
2685 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
2686 symbols; create them.
2687
2688 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2689
2690 * write.c (set_segment_vma): New: Set vma and lma for a segment.
2691 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
2692
2693 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
2694
2695 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
2696 expressions. Ignore the problem when handling 16 bit signed
2697 immediates, because the assembler will take care of the relocation
2698 later.
2699
2700 2000-06-27 Nick Clifton <nickc@cygnus.com>
2701
2702 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
2703 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
2704 sequential order, and emit warning messages if the input source
2705 code contains constructs like that, or parallel constructs
2706 containing such opcodes.
2707
2708 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2709
2710 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
2711 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
2712 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
2713 (md_show_usage): Update usage message.
2714 (md_parse_option): Allow redefinition of MCU type within the
2715 same avr[1-5] bfd machine type. Show both old and new MCU type
2716 in the error message.
2717 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
2718 Simplify 8K wrap code.
2719
2720 2000-06-25 Kazu Hirata <kazu@hxi.com>
2721
2722 * config/obj-aout.c: Remove all uses of DEFUN.
2723 * config/obj-ieee.c: Likewise.
2724 * config/tc-sh.c: Fix comment typos.
2725 * config/tc-tahoe.c: Likewise.
2726 * config/tc-vax.c: Likewise.
2727 * config/tc-w65.c: Likewise.
2728 * config/tc-z8k.c: Likewise.
2729 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
2730
2731 2000-06-24 DJ Delorie <dj@cygnus.com>
2732
2733 * config/tc-i386.c (md_estimate_size_before_relax): Revert
2734 more changes from Sept 1999
2735 (tc_i386_fix_adjustable): ditto
2736 (md_apply_fix3): ditto
2737
2738 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
2739
2740 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
2741 (gas_cgen_parse_operand): Set it around expression() call.
2742 (gas_cgen_md_operand): Test for it before longjmp().
2743
2744 2000-06-24 Kazu Hirata <kazu@hxi.com>
2745
2746 * config/tc-h8500.c: Remove all uses of DEFUN.
2747 * config/tc-sh.c: Likewise.
2748 * config/tc-w65.c: Likewise.
2749 * config/tc-z8k.c: Likewise.
2750
2751 * config/tc-h8500.c: Fix typos in comments.
2752
2753 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
2754
2755 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
2756 is defined.
2757
2758 2000-06-23 matthew green <mrg@redhat.com>
2759
2760 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
2761 defined. Fix error message for `[' grouping.
2762
2763 2000-06-22 Kazu Hirata <kazu@hxi.com>
2764
2765 * config/tc-h8300.c: Fix formatting and comment typos.
2766
2767 2000-06-22 Timothy Wall <twall@cygnus.com>
2768
2769 * config/tc-ia64.c (note_register_values): Move premature QP
2770 notation clearing into the appropriate place.
2771
2772 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2773
2774 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
2775 first before anything else. Add bin-bugs.h, emul.h and progress.h
2776 Sort list of files as for $(OBJS) in Makefile.am.
2777
2778 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
2779 find one. Remake dependencies.
2780 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
2781 * Makefile.in: Regenerate.
2782 * doc/Makefile.in: Regenerate.
2783
2784 * config/tc-i386.c (i386_displacement): Don't assume a constant
2785 displacement is necessarily 16 bits when in 16 bit code mode.
2786 (md_assemble): Instead size the displacement here after we know
2787 for sure that a .code16gcc operand hasn't automatically added
2788 operand size prefixes.
2789
2790 2000-06-21 H.J. Lu <hjl@gnu.org>
2791
2792 * Makefile.am: Rebuild dependency.
2793 * Makefile.in: Rebuild.
2794
2795 2000-06-21 Kazu Hirata <kazu@hxi.com>
2796
2797 * config/tc-h8300.c (parse_reg): Make the function static.
2798 (parse_exp): Likewise.
2799
2800 2000-06-20 DJ Delorie <dj@cygnus.com>
2801
2802 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
2803 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
2804 for cygwin import libraries to work properly.
2805
2806 2000-06-20 H.J. Lu <hjl@gnu.org>
2807
2808 * Makefile.am: Rebuild dependency.
2809 * Makefile.in: Rebuild.
2810 * configure: Likewise.
2811 * doc/Makefile.in: Likewise.
2812
2813 2000-06-20 Timothy Wall <twall@cygnus.com>
2814
2815 * doc/internals.texi (CPU backend): Add @itemx for
2816 TC_START_LABEL_WITHOUT_COLON.
2817 * doc/c-tic54x.texi: New.
2818 * doc/as.texinfo: Add tic54x features and include primary tic54x
2819 documentation file.
2820 * doc/all.texi: Add C54X.
2821 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
2822 * doc/Makefile.in: Regenerate.
2823 * configure.in: Add tic54x and define LIBM for tic54x.
2824 * configure: Regenrate.
2825 * config/tc-tic54x.[ch]: New.
2826 * config/obj-coff.h: Add tic54x.
2827 * Makefile.am: (CPU_TYPES): Add tic54x.
2828 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
2829 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
2830 (as_new_LDADD): Add $(LIBM).
2831 * Makefile.in: Regenerate.
2832
2833 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2834
2835 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
2836 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
2837 * doc/as.texinfo: Likewise.
2838
2839 * configure, Makefile.in: Regenerate.
2840 * configure.in (emulations): Recognize m6811 and m6812.
2841 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
2842 Added files for 68hc11 and 68hc12 assembler.
2843 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
2844 * config/tc-m68hc11.h: Header definition for that assembler.
2845
2846 2000-06-18 Nick Clifton <nickc@redhat.com>
2847
2848 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
2849 instead of OCTETS_PER_BYTE.
2850
2851 * config/tc-v850.c: Fix compile time warnings.
2852 * config/tc-ppc.c: Fix compile time warnings.
2853
2854 2000-06-18 H.J. Lu <hjl@gnu.org>
2855
2856 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
2857 * configure: Rebuild.
2858
2859 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
2860
2861 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
2862 to BFD_ASSEMBLER.
2863
2864 2000-06-16 Nick Clifton <nickc@cygnus.com>
2865
2866 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
2867 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
2868
2869 * doc/c-mips.texi: Document newly accepted cpu variants.
2870
2871 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2872
2873 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
2874
2875 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
2876
2877 * macro.c (getstring): Make it possible to escape the quote
2878 character.
2879
2880 Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
2881
2882 * config/tc-hppa.c (pa_export): Weak symbols can be global.
2883
2884 2000-06-13 H.J. Lu <hjl@gnu.org>
2885
2886 * configure: Regenerate.
2887
2888 2000-06-09 Alan Modra <alan@linuxcare.com.au>
2889
2890 * app.c (do_scrub_begin): Don't default lex[';'] as a line
2891 separator.
2892 * doc/internals.texi (line_separator_chars): Semicolon is no
2893 longer a default. Mention null and newline as defaults.
2894
2895 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
2896
2897 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
2898 * config/tc-i860.h (line_separator_chars): Likewise.
2899 * config/tc-h8300.c (line_separator_chars): Likewise.
2900 * config/tc-i960.c (line_separator_chars): Likewise.
2901 * config/tc-m68k.c (line_separator_chars): Likewise.
2902 * config/tc-mips.c (line_separator_chars): Likewise.
2903 * config/tc-ns32k.c (line_separator_chars): Likewise.
2904 * config/tc-sparc.c (line_separator_chars): Likewise.
2905 * config/tc-vax.c (line_separator_chars): Likewise.
2906
2907 * config/tc-h8300.c (comment_chars): Use string initialiser.
2908 * config/tc-i960.c (line_comment_chars): Likewise.
2909 * config/tc-z8k.c (comment_chars, line_comment_chars,
2910 line_separator_chars): Likewise.
2911
2912 * config/tc-arm.c (line_separator_chars): Always use `;', not just
2913 for TE_LINUX.
2914
2915 2000-06-08 Nick Clifton <nickc@cygnus.com>
2916
2917 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
2918 for size 1 fixes.
2919
2920 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2921
2922 * configure.in (VERSION): Update to show this is the CVS mainline.
2923
2924 2000-06-08 Matthew Jacob <mjacob@feral.com>
2925
2926 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
2927 $at is the integer register $r28, vs. both $r28 and the floating
2928 point register $f28.
2929
2930 2000-06-08 James E. Wilson <wilson@cygnus.com>
2931
2932 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
2933 (dot_endp): Don't call ia64_flush_insns.
2934 (emit_one_bundle): Don't delete prologue/body records from
2935 unwind_record list in first loop. Rewrite second loop to account for
2936 this.
2937
2938 2000-06-07 David Mosberger <davidm@hpl.hp.com>
2939
2940 * config/tc-ia64.c: Add missing prototypes.
2941 (generate_unwind_image): Cast argument to output_unw_records call.
2942
2943 Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
2944
2945 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
2946
2947 Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
2948
2949 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
2950 (REGISTER_P): likewise.
2951 (avr_opcodes): uses include/opcode/avr.h
2952 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
2953
2954 2000-06-04 Alan Modra <alan@linuxcare.com.au>
2955
2956 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
2957 initializers too.
2958
2959 2000-06-03 H.J. Lu <hjl@gnu.org>
2960
2961 * read.c (is_end_of_line): Put back `;'.
2962
2963 2000-06-03 Alan Modra <alan@linuxcare.com.au>
2964
2965 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
2966
2967 2000-06-01 Alan Modra <alan@linuxcare.com.au>
2968
2969 * expr.c (operand): Test is_end_of_line outside switch to catch
2970 line separator chars that are also operators.
2971 (operator): Return O_illegal for line separator chars.
2972
2973 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
2974 entry (or `!' entry for TC_HPPA).
2975
2976 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
2977 before indexing is_end_of_line. Remove redundant check for '\0'.
2978 (fp_op2): Likewise.
2979 * config/tc-h8500.c (md_assemble): Likewise.
2980 * config/tc-mcore.c (md_assemble): Likewise.
2981 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
2982 (md_atof): Likewise
2983
2984 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
2985 is_end_of_line.
2986 * config/tc-mcore.c (mcore_cons): Likewise.
2987 (mcore_float_cons): Likewise.
2988 (mcore_stringer): Likewise.
2989 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
2990
2991 2000-06-01 Scott Bambrough <scottb@netwinder.org>
2992
2993 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
2994
2995 2000-05-29 Nick Clifton <nickc@cygnus.com>
2996
2997 * config/tc-sh.c: Fix compile time warning messages.
2998
2999 * config/tc-mips.c: Fix compile time warning messages.
3000
3001 2000-05-29 Philip Blundell <philb@gnu.org>
3002
3003 * doc/as.texinfo: Update copyright dates.
3004 (Local Labels): Delete misplaced mention of ARM.
3005 * NEWS: Mention ARM ELF support.
3006
3007 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
3008
3009 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
3010 it is modified, and use the real_size to compute the frag address
3011 for dwarf2 line info.
3012
3013 2000-05-27 Alan Modra <alan@linuxcare.com.au>
3014
3015 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
3016 line-matching scheme to cope with automake moving variables around.
3017 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
3018 * Makefile.in: Regenerate.
3019
3020 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3021
3022 * config/tc-sparc.c (sparc_relax): New.
3023 (md_longopts): Add -relax and -no-relax options.
3024 (md_parse_options, md_show_usage): Likewise.
3025 (md_apply_fix3): Optimize tail call into branch always if possible.
3026
3027 Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
3028
3029 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
3030 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
3031 rules, with warning when a GAS statement specifies a packing that
3032 will result in an instruction being squashed.
3033 Added typdef packing_type and enumerals, changed various integer
3034 literals to use the enumerals.
3035
3036 2000-05-24 David Mosberger <davidm@hpl.hp.com>
3037
3038 * config/tc-ia64.c (dot_restorereg_p): New function.
3039 (md_pseudo_table): Add restorereg.p.
3040 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
3041 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
3042
3043 * config/tc-ia64.h (unw_record_type): Add unwabi.
3044 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
3045 called MASK with members for imask, and the masks produced by
3046 fr_mem, gr_mem, br_mem, and frgr_mem.
3047 (unw_p_record): Add members ABI and CONTEXT.
3048 (unw_x_record): Add member AB.
3049 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
3050 as pseudo-register for use during unwind info generation.
3051 (AR_PFS, AR_LC): New macros.
3052 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
3053 whose names start with an at sign (as in "@priunat").
3054 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
3055 register.
3056 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
3057 proc_end, unwind_info, personality_routine): Consolidate into
3058 "unwind" structure to reduce offset-table use. Add member
3059 NEXT_SLOT_NUMBER to track the slot number for the next instruction
3060 to be emitted.
3061 (output_R1_format, output_R3_format, output_P3_format,
3062 output_P6_format): Initialize R with zero to reduce compiler warnings.
3063 (output_P7_format): Ditto. Add `default' branch to switch
3064 statement to reduce compiler warnings.
3065 (output_P8_format, output_B1_format, output_B4_format): Ditto.
3066 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
3067 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
3068 into single argument.
3069 (output_X1_format, output_X3_format): Initialize R with zero to reduce
3070 compiler warnings. Merge A and B args into single argument.
3071 (output_X2_format, output_X4_format): Remove unused variable R. Merge
3072 A and B args into single argument.
3073 (free_record): Removed (wasn't used).
3074 (free_list_records): Also free imasks in prologue records.
3075 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
3076 (output_spill_mask): Remove.
3077 (output_unwabi): New function.
3078 (output_epilogue, output_label_state, output_copy_state): Call
3079 alloc_record.
3080 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
3081 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
3082 argument.
3083 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
3084 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
3085 as part of handling the prologue records. Emit region's imask if
3086 we have one. Handle unwabi, epilogue, label_state, copy_state,
3087 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
3088 spill_sprel_p, and spill_reg_p records.
3089 (set_imask, count_bits, slot_index): New function.
3090 (fixup_unw_records): Fix region size computation. Handle
3091 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
3092 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
3093 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
3094 set_imask accordingly. Update imask for gr_gr, and br_gr records.
3095 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
3096 (dot_save): Use manifest constants for applicaton registers.
3097 Handle REG_PR and REG_PRIUNAT.
3098 (dot_restore): Don't just ignore it.
3099 (dot_restorereg): New function..
3100 (generate_unwind_image): Ensure unwind info is a multiple of eight
3101 bytes, not just four bytes.
3102 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
3103 (dot_altrp): Don't just ignore it.
3104 (dot_savemem): New function. Replaces dot_savesp() and
3105 dot_savepsp(). Use manifest constants for applicaton registers.
3106 Handle REG_PR and REG_PRIUNAT.
3107 (dot_savef): Simplify.
3108 (dot_saveb): Support generation of br_gr.
3109 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
3110 dot_label_state, dot_copy_state): New function.
3111 (dot_unwabi): Don't just ignore it.
3112 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
3113 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
3114 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
3115 (emit_one_bundle): Set slot number for prologue/body records
3116 *before* emitting the first insn.
3117 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
3118 (md_begin): Declare "psp" pseudo-register.
3119 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
3120 so we don't get segfault.
3121 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
3122 counts as required per SW Conventions manual
3123 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
3124 output_preds_psprel, output_preds_sprel, output_spill_base,
3125 output_unat_psprel, output_unat_sprel, output_lc_psprel,
3126 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
3127 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
3128 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
3129 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
3130 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
3131 (dot_vframe): Implement.
3132 (dot_vframesp, dot_vframepsp): New function.
3133
3134 Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
3135
3136 * configure.in (i386-*-freebsd a.out entry): Quote properly.
3137 * configure: Regenerate.
3138
3139 2000-05-23 Alan Modra <alan@linuxcare.com.au>
3140
3141 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
3142 (md_estimate_size_before_relax): so we can use it here instead of
3143 old kludges. Localise vars to blocks. Comment.
3144
3145 * frags.c (frag_new): Update fr_var comments.
3146 * frags.h (struct frag): Ditto.
3147
3148 2000-05-22 Richard Henderson <rth@cygnus.com>
3149
3150 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
3151 (pseudo_func): Add pcrel.
3152 (operand_match): Handle IA64_OPND_TGT64.
3153 (build_insn): Likewise.
3154 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
3155 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
3156 (fix_insn): Handle all three 64-bit relocation types.
3157
3158 Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
3159
3160 * obj.h (struct format_ops): New members begin, app_file,
3161 s_set_other, s_set_desc, s_get_type, s_set_type,
3162 separate_stab_sections, init_stab_section.
3163
3164 * config/obj-multi.h: Update GPL notice to v2.
3165 (obj_begin): New.
3166 (obj_app_file): New.
3167 (S_SET_SIZE): Test s_set_size for NULL before calling.
3168 (S_SET_ALIGN): Similar for s_set_align.
3169 (S_SET_OTHER): New.
3170 (S_SET_DESC): New.
3171 (S_GET_TYPE): New.
3172 (S_SET_TYPE): New.
3173 (SEPARATE_STAB_SECTIONS): New.
3174 (INIT_STAB_SECTION): New.
3175 (EMIT_SECTION_SYMBOLS): New.
3176 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
3177
3178 * config/obj-elf.h: Update GPL notice to v2.
3179 Mention that this file is included from obj-multi.h.
3180 (obj_begin): Wrap definition in ifndef.
3181 (elf_file_symbol): Constify declaration.
3182 (obj_app_file): Ditto.
3183 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
3184 Wrap in ifndef SEPARATE_STAB_SECTIONS.
3185
3186 * config/obj-elf.c (elf_s_set_other): New.
3187 (elf_file_symbol): Constify argument.
3188 (elf_separate_stab_sections): New.
3189 (elf_init_stab_section): New.
3190 (elf_format_ops): Add new members. Remove comma at end.
3191
3192 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
3193 (ecoff_format_ops): Add new fields. Remove comma at end.
3194 Mention inconsistency for emit_section_symbols.
3195
3196 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
3197
3198 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
3199 (coff_separate_stab_sections): New.
3200 (coff_format_ops): Add new members.
3201
3202 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
3203 (obj_aout_s_set_other): New.
3204 (obj_aout_s_set_desc): New.
3205 (obj_aout_s_get_type): New.
3206 (obj_aout_s_set_type): New.
3207 (obj_aout_separate_stab_sections): New.
3208 (aout_format_ops): New members added. Use obj_aout_process_stab,
3209 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
3210 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
3211 appropriate.
3212 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
3213
3214 2000-05-22 Alan Modra <alan@linuxcare.com.au>
3215
3216 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
3217 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
3218 (md_estimate_size_before_relax): Ensure jumps to weak and
3219 externally visible symbols are relocatable.
3220
3221 Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
3222
3223 * stabs.c (aout_process_stab): Make global.
3224 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
3225 * read.h (aout_process_stab): Declare.
3226
3227 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
3228 Generalize to *aout, *coff *elf.
3229 * configure: Regenerated.
3230
3231 * doc/internals.texi (Object format backend): Say
3232 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
3233
3234 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
3235 * Makefile.in: Regenerated.
3236
3237 2000-05-19 Catherine Moore <clm@cygnus.com>
3238
3239 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
3240
3241 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3242
3243 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
3244 instruction to reflect change in re_assemble_*.
3245
3246 Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
3247
3248 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
3249 build PA64 ELF tools.
3250 * configure: Rebuilt.
3251
3252 2000-05-17 Alan Modra <alan@linuxcare.com.au>
3253
3254 * Makefile.am: Regenerate dependencies.
3255 * Makefile.in: Regenerate.
3256
3257 2000-05-15 Nick Clifton <nickc@cygnus.com>
3258
3259 * config/tc-arm.c (struct asm_psr): Add boolean field
3260 distinguishing between CSPR and SPSR. Rename 'number' field
3261 to 'field'.
3262 (psrs): Rearrange contents to match new asm_psr structure.
3263 (arm_psr_parse): Move next to psr_required_here. Make it
3264 return an asm_psr structure.
3265 (psr_required_here): Use asm_psr structure returned by
3266 arm_psr_parse.
3267 (do_msr): Reorganise to allow psr_required_here to be called
3268 only once.
3269 (md_undefined_name): Mark 'name' parameter as unused, since
3270 the COFF target does not use it.
3271
3272 2000-05-14 David O'Brien <obrien@FreeBSD.org>
3273
3274 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
3275 standards.
3276 * config/te-aux.h: Likewise.
3277 * config/te-dpx2.h: Likewise.
3278 * config/te-go32.h: Likewise.
3279 * config/te-hp300.h: Likewise.
3280 * config/te-hppa.h: Likewise.
3281 * config/te-i386aix.h: Likewise.
3282 * config/te-ic960.h: Likewise.
3283 * config/te-interix.h: Likewise.
3284 * config/te-nbsd532.h: Likewise.
3285 * config/te-pc532mach.h: Likewise.
3286 * config/te-ppcnw.h: Likewise.
3287 * config/te-psos.h: Likewise.
3288 * config/te-sparcaout.h: Likewise.
3289 * config/te-sun3.h: Likewise.
3290 * config/te-sysv32.h: Likewise.
3291
3292 2000-05-14 Alan Modra <alan@linuxcare.com.au>
3293
3294 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
3295 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
3296 and sign extend without an if statement.
3297 (build_bytes): Likewise.
3298
3299 2000-05-14 Kazu Hirata <kazu@hxi.com>
3300
3301 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
3302 X_add_symbol L_32 case.
3303
3304 2000-05-14 David O'Brien <obrien@FreeBSD.org>
3305
3306 * config/te-freebsd.h: New file.
3307
3308 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3309
3310 * asintl.h (gettext, dgettext, dcgettext, textdomain,
3311 bindtextdomain): Replace defines with those from intl/libgettext.h
3312 to quieten gcc warnings.
3313
3314 * NEWS: Mention x86 .arch and -q.
3315
3316 * config/tc-i386.c (quiet_warnings): New.
3317 (md_assemble): Use quiet_warnings.
3318 (md_parse_option): Set quiet_warnings from -q.
3319 (md_show_usage): Mention -q, delete -m.
3320 (flag_do_long_jump): Delete.
3321 (md_parse_option): Remove -m.
3322 (md_show_usage): Remove -m.
3323 (md_create_long_jump): Remove useless flag_do_long_jump code.
3324
3325 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
3326 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
3327
3328 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3329 Alexander Sokolov <robocop@netlink.ru>
3330
3331 * doc/c-i386.texi (i386-Arch): New section.
3332 (i386-Syntax): Mention .intel_syntax and .att_syntax.
3333
3334 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
3335 (smallest_imm_type): Use smallest opcode for shift by one if cpu
3336 architecture has been given and is not 486.
3337 (set_cpu_arch): New.
3338 (md_pseudo_table): Add .arch.
3339 (md_assemble): Warn if cpu architecture has been given and an
3340 unsupported instruction.
3341
3342 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
3343 Move operand_types bit defines after relevant template field.
3344 (template): Add cpu_flags.
3345 (Cpu*): Define.
3346 (arch_entry): New.
3347
3348 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3349
3350 * config/tc-mn10300.h (md_end): Define.
3351 (mn10300_finalize): Declare.
3352 * config/tc-mn10300.c: Include dwarf2dbg.h.
3353 (debug_line): Define.
3354 (md_assemble): Generate dwarf2 line info.
3355 (mn10300_finalize): New function. Finalize dwarf2 info.
3356
3357 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
3358
3359 * config/tc-mips.c (md_estimate_size_before_relax): Use the
3360 external version of the relocation for weak symbols.
3361
3362 2000-05-08 David Mosberger <davidm@hpl.hp.com>
3363
3364 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
3365 frame size in units of 16 bytes, as required per SW Conventions manual.
3366 (output_unw_records): Output info-block header as a dword to get
3367 byte-order right.
3368
3369 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3370
3371 * as.h: #include "file", not <file> on files from ../include.
3372 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
3373 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
3374 (md_convert_frag): Add ATTRIBUTE_UNUSED.
3375 (tc_coff_symbol_emit_hook): Ditto.
3376 (OPTCOUNT): Cast to int to avoid compiler warning.
3377 (md_begin): Fix signed/unsigned warnings.
3378
3379 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3380
3381 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
3382 ABRANCH LONG case for a conditional branch on a 68000.
3383 (md_estimate_size_before_relax): Likewise. Also handle
3384 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
3385 (m68k-ip: case ABSL): Relax absolute references to 16-bit
3386 PC-relative on all CPUs.
3387 (md_estimate_size_before_relax): Likewise.
3388
3389 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3390
3391 * as.c (parse_args): Just mention current year in printed
3392 copyright message.
3393
3394 2000-05-03 J.T. Conklin <jtc@redback.com>
3395
3396 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
3397 unit registers.
3398 (md_parse_option): Recognize -m7400.
3399
3400 2000-05-03 Ian Lance Taylor <ian@zembu.com>
3401
3402 * config/atof-ieee.c (gen_to_words): When adding carry back in,
3403 don't permit lp to become less than the words array.
3404
3405 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
3406
3407 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
3408 Fix little-endian case.
3409
3410 2000-05-03 David O'Brien <obrien@NUXI.com>
3411
3412 * as.c (parse_args): Update copyright.
3413
3414 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3415
3416 * gas/config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
3417 for the .bss section too.
3418
3419 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3420
3421 * configure.in: Set em=linux for hppa-*-linux.
3422 * configure: Regenerate.
3423 * doc/Makefile.in: Regenerate with correct automake.
3424
3425 * frags.c (frag_grow): Sanity check chunk_size.
3426
3427 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
3428 * config/obj-som.h: Likewise.
3429 * config/obj-ieee.h: Likewise.
3430
3431 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
3432
3433 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
3434 (md_pseudo_table): Fully initialise OBJ_ELF cases.
3435 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
3436 (pa_ip): low_sign_unext now returns via function value. Use
3437 re_assemble_* instead of dis_assemble_* and
3438 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
3439 unnecessarily.
3440 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
3441 (md_section_align, md_parse_option, md_show_usage,
3442 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
3443 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
3444 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
3445 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
3446 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
3447 pa_text): Likewise.
3448 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
3449 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
3450 outside of switch. Correct mask and shifting errors in case 10
3451 and case -11. In case 21, compare against signed range to suit
3452 hppa_field_adjust changes. In case 12, use re_assemble_12. In
3453 case 17 and case 22, use offsetT variable to properly check range.
3454 Use re_assemble_* here too.
3455 (evaluate_absolute): Change type of value to offsetT. Call
3456 hppa_field_adjust to do the work for us.
3457 (pa_parse_cmpb_64_cmpltr): Delete save_s.
3458 (pa_parse_cmpib_64_cmpltr): Ditto.
3459 (pa_build_unwind_subspace): Delete unused var subseg. Change type
3460 of i to unsigned int.
3461 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
3462 (pa_end_of_source): Return type is void.
3463
3464 Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
3465
3466 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
3467
3468 Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
3469
3470 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
3471 More comments added.
3472 (md_begin): Removed "construct symbols for each register name".
3473 Because register names conflicts with GCC generated function
3474 names.
3475 (avr_operand): Now constant numbers can be used as a register
3476 identifiers (0 as r0, 31 as r31).
3477 (md_assemble): use skip_space () before parsing instruction
3478 operands.
3479
3480 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3481
3482 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
3483 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
3484 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
3485 * configure: Regenerate.
3486
3487 2000-04-29 Andreas Jaeger <aj@suse.de>
3488
3489 * as.h: Correctly check GCC version.
3490
3491 2000-04-26 David O'Brien <obrien@FreeBSD.org>
3492
3493 * doc/as.1: Fix unbalanced brackets.
3494
3495 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
3496 TE_FreeBSD.
3497 (line_comment_chars): Set to '/' if TE_FreeBSD.
3498
3499 Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
3500
3501 * configure.in: Configury support for PA64 (currently disabled).
3502 * configure: Rebuilt.
3503
3504 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
3505
3506 * config/tc-mips.c (s_change_sec): Use record_alignment, not
3507 bfd_set_section_alignment.
3508
3509 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3510
3511 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
3512 than 32.
3513
3514 2000-04-24 Nick Clifton <nickc@cygnus.com>
3515
3516 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
3517 * doc/as.texinfo (Align): Include arm and strongarm in list of
3518 targets that have the second form of the behaviour of the .align
3519 directive.
3520
3521 2000-04-24 Mark Klein <mklein@dis.com>
3522
3523 * obj-som.c: Terminate obj_pseudo_table.
3524
3525 Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
3526
3527 * as.c (parse_args): Allow md_parse_option to override -a listing
3528 option.
3529 * config/obj-coff.c (add_lineno): Change type of offset parameter
3530 from "int" to "bfd_vma."
3531 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
3532 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
3533 (ppc_change_csect): Align correctly for XCOFF64.
3534 (ppc_machine): New function, which discards "ppc_machine" line.
3535 (ppc_tc): Cons for 8 when code is 64 bit.
3536 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
3537 relocations.
3538 (md_parse_option): Handle -a64 and -a32.
3539 (ppc_xcoff64): New.
3540 * config/tc-ppc.h (TARGET_MACH): Define.
3541 (TARGET_FORMAT): Move to function.
3542 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
3543
3544 Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
3545
3546 * config/tc-avr.c: New AVR_ISA_ defined.
3547 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
3548 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
3549 for `fmul', `movw' and `lpm R,Z' instructions.
3550 (avr_operands): Warn if current opcode is a two-word instruction
3551 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
3552 (avr_opcodes): New commands added.
3553 (REGISTER_P): Check 'a' and 'v' constraint letters.
3554 (mcu_types): New MCU added.
3555
3556 2000-04-22 Timothy Wall <twall@cygnus.com>
3557
3558 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
3559 to "natval".
3560 (operand_match): Conditionally insert default bit values for IMMU9.
3561
3562 2000-04-14 Matthew Green <mrg@cygnus.com>
3563
3564 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
3565 * configure: Rebuilt.
3566
3567 Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
3568 Jason Eckhardt <jle@cygnus.com>
3569
3570 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
3571
3572 * config/tc-hppa.c (CHECK_ALIGN): New macro.
3573 Added handling of new operand types l,y,&,fe,fE,fx.
3574
3575 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3576 David Mosberger <davidm@hpl.hp.com>
3577 Timothy Wall <twall@cygnus.com>
3578 Andrew MacLeod <amacleod@cygnus.com>
3579 Jim Wilson <wilson@cygnus.com>
3580
3581 * Makefile.am (CPU_TYPES): Add ia64.
3582 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
3583 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
3584 * Makefile.in: Rebuild.
3585 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
3586 * configure: Rebuild.
3587 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
3588 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
3589 * expr.c (expr): Handle md_optimize_expr.
3590 * read.c (LEX_HASH): Add comment.
3591 * config/tc-ia64.c, config/tc-ia64.h: New files.
3592
3593 2000-04-21 Richard Henderson <rth@cygnus.com>
3594
3595 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
3596 bundling a non-delayed branch type instruction.
3597
3598 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
3599
3600 * config/tc-mn10300.c (HAVE_AM30): Define.
3601 (md_assemble): Use it.
3602
3603 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3604
3605 * config/obj-elf.c (obj_elf_change_section): Check for changed
3606 section attributes.
3607
3608 * Makefile.am: (CPU_MULTI_VALID): Remove.
3609 (MULTI_CPU_TYPES): Define.
3610 (MULTI_CPU_OBJ_VALID): Define.
3611 (DEPTC): Use the above.
3612 (DEPOBJ): Same here.
3613 (DEP2): And here.
3614 Regenerate dependencies.
3615 * Makefile.in: Regenerate.
3616
3617 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3618
3619 * Makefile.am (YACC, LEX): Get them from configure.
3620
3621 2000-04-18 H.J. Lu (hjl@gnu.org)
3622
3623 * config/tc-i386.c (offset_in_range): Use addressT instead of
3624 bfd_vma for non-bfd assemblers.
3625
3626 2000-04-17 Alan Modra <alan@linuxcare.com.au>
3627
3628 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
3629 doesn't give spurious errors.
3630
3631 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3632
3633 * as.h (SEEK_SET): Define if undefined.
3634
3635 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3636
3637 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
3638 constants, and don't assume offsetT is 32 bits.
3639
3640 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
3641
3642 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
3643 (md_pcrel_from_section): Add prototype.
3644 (d10v_fix_adjustable): Add prototype.
3645 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
3646
3647 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
3648
3649 2000-04-12 Nick Clifton <nickc@cygnus.com>
3650
3651 * config/tc-d10v.c (find_opcode): Correctly calculate position of
3652 symbol in frag chain.
3653
3654 2000-04-10 Alan Modra <alan@linuxcare.com.au>
3655
3656 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
3657 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
3658 (fits_in_signed_word, smallest_imm_type): Ditto.
3659 (md_assemble): Use an offsetT var to hold offsetT values, not a
3660 long.
3661 (offset_in_range): New.
3662 (md_assemble): Use it.
3663 (md_convert_frag): Change type of target_address, opcode_address,
3664 and displacement_from_opcode_start to offsetT.
3665 (md_create_short_jump): Change type of offset to offsetT.
3666 (md_create_long_jump): Ditto.
3667 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
3668 (md_chars_to_number): Remove.
3669 (output_invalid): Remove duplicate prototype.
3670
3671 2000-04-09 Nick Clifton <nickc@cygnus.com>
3672
3673 * Makefile.am (CPU_TYPES): Add 'avr'.
3674 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
3675 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
3676
3677 * Makefile.in: Regenerate.
3678
3679 * doc/as.texinfo: Add M32R documentation.
3680
3681 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3682
3683 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3684 --enable-build-warnings option.
3685 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3686 * Makefile.in, configure: Re-generate.
3687
3688 2000-04-07 Nick Clifton <nickc@cygnus.com>
3689
3690 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
3691 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
3692 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
3693 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
3694 (arm_force_relocation): Force relocations for
3695 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
3696
3697 Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3698
3699 * config/tc-sh.c (get_operands): There's no third operand if the
3700 first operand is an immediate.
3701
3702 Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3703
3704 * config/tc-sh.c (immediate): Delete.
3705 (sh_operand_info): Add immediate member.
3706 (parse_reg): Use A_PC for pc.
3707 (parse_exp): Add second argument 'op'. All callers changed.
3708 (parse_at): Expect pc to be coded as A_PC.
3709 Use immediate field in *op.
3710 (insert): Add fourth argument 'op'. All callers changed.
3711 (build_relax): Add second argument 'op'. All callers changed.
3712 (insert_loop_bounds): New function.
3713 (build_Mytes): Remove DISP_4.
3714 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
3715 (assemble_ppi): Use immediate field in *operand.
3716 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
3717 (md_apply_fix): Likewise.
3718 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
3719
3720 Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3721
3722 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
3723
3724 Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
3725
3726 * internals.texi (CPU backend): Document
3727 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
3728
3729 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3730
3731 * po/gas.pot: Regenerate.
3732
3733 * as.c (show_usage): Restore translated part of bug string.
3734 * gasp.c (show_usage): Likewise.
3735
3736 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
3737 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
3738 than move-if-change.
3739 (DEP1): Modify for "gcc -MM".
3740 (DEPTC): Likewise.
3741 (DEPOBJ): Likewise.
3742 (DEP2): Likewise.
3743 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
3744 Update dependencies.
3745 * Makefile.in: Regenerate.
3746
3747 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
3748
3749 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
3750 (md_begin): Likewise.
3751 (HAVE_AM33): New macro.
3752 (md_assemble): Use it. Match r_regs and xr_regs only if
3753 HAVE_AM33.
3754
3755 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3756
3757 * as.h: #include "bin-bugs.h"
3758 * as.c (show_usage): Use REPORT_BUGS_TO.
3759 * gasp.c: #include "bin-bugs.h"
3760 (show_usage): Use REPORT_BUGS_TO.
3761
3762 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
3763
3764 Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
3765
3766 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
3767 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
3768 adjustments.
3769
3770 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3771
3772 * config/tc-i386.c (i386_immediate): Don't assume a constant
3773 immediate is necessarily 16 bits when in 16 bit code mode.
3774 (md_assemble): Instead set guess_suffix here after we have checked
3775 registers.
3776
3777 2000-04-02 Richard Henderson <rth@cygnus.com>
3778
3779 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
3780 quantities. Correct right shift sign extension.
3781 (build_insn): Make `number' unsigned long. Mask top 6 bits of
3782 32-bit value when shifting into place.
3783
3784 2000-04-01 Ian Lance Taylor <ian@zembu.com>
3785
3786 * app.c: Add ATTRIBUTE_UNUSED as needed.
3787 * config/tc-ppc.c: Likewise.
3788 (ppc_size): Make unsigned long.
3789 (ppc_insert_operand): Add casts to avoid warnings.
3790
3791 2000-03-31 Nick Clifton <nickc@cygnus.com>
3792
3793 * config/tc-d10v.h (md_flush_pending_output): Define.
3794
3795 2000-03-29 Nick Clifton <nickc@cygnus.com>
3796
3797 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
3798 segment. Works for both BFD_ASSEMBLER and others.
3799 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
3800
3801 2000-03-29 Nick Clifton <nickc@cygnus.com
3802
3803 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
3804
3805 2000-03-28 Alan Modra <alan@linuxcare.com.au>
3806
3807 * listing.c (LISTING_LHS_WIDTH): Default depends on
3808 LISTING_WORD_SIZE.
3809 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
3810
3811 2000-03-27 Ian Lance Taylor <ian@zembu.com>
3812
3813 * config/tc-sh.c (md_show_usage): Use backslash before newline in
3814 string literal.
3815
3816 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3817
3818 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
3819
3820 * config/tc-avr.c (mcu_types): Add missing initialiser.
3821 (md_pcrel_from_section): Add prototype.
3822 (avr_operand): Remove redundant test of unsigned < 0.
3823 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
3824
3825 2000-03-27 Denis Chertykov <denisc@overta.ru>
3826
3827 * config/tc-avr.c: New file for AVR support.
3828 * config/tc-avr.h: Likewise.
3829 * configure.in: Add AVR support.
3830 * configure: Regenerate.
3831
3832 2000-03-26 Timothy Wall <twall@cygnus.com>
3833
3834 * gasp.c (macro_op): Add new argument to check_macro call.
3835 Macro structure definitions moved to macro.h
3836 * sb.h: Add argument to prototype for input_scrub_include_sb.
3837 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
3838 nesting checks with an additional flag.
3839 (struct input_save): Add flag to indicate whether current sb
3840 should be checked for proper macro/conditional nesting.
3841 (input_scrub_push/pop): Save/restore nest check flag.
3842 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
3843 defined.
3844 * macro.c (check_macro): Allow caller to retrieve parsed macro
3845 information if a pointer is provided. This information may be
3846 used by the new macro hooks.
3847 * macro.h: Update prototype for check_macro. Macro struct
3848 definitions moved here from macro.c/gasp.c.
3849 * read.c (read_a_source_file): Add parameter to check_macro call,
3850 and pass macro info to the macro hook, if defined.
3851 (input_scrub_insert_line): New. Allow insertion of a line of
3852 characters into the input stream.
3853 (input_scrub_insert_file): New. Allow insertion of an arbitrary
3854 file into the input stream.
3855 (s_include): Use input_scrub_insert_file.
3856 * internals.texi: Document new macro hooks.
3857 * as.h: New prototypes added.
3858
3859 2000-03-26 Alan Modra <alan@linuxcare.com.au>
3860
3861 * config/tc-i386.c: Don't start any as_bad or as_warn message with
3862 an initial capital letter.
3863 (i386_index_check): Reindent.
3864
3865 2000-03-19 Nick Clifton <nickc@cygnus.com>
3866
3867 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
3868 relative branches.
3869
3870 2000-03-17 Thomas de Lellis <tdel@windriver.com>
3871
3872 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
3873 instruction operand bad if Rd > 7 when generating
3874 thumb instructions. Prevents for example,
3875 "adr r12,label" from silently failing and generating
3876 the wrong instruction.
3877
3878 2000-03-17 Nick Clifton <nickc@cygnus.com>
3879
3880 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
3881 that have a destingation >= 0x400000.
3882 Fix compile time warning messages.
3883
3884 Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3885
3886 * config/tc-sh.c (md_begin): When encountering insn that are
3887 not supported by the current arch, only change the name if
3888 its contents are the same as prev_name.
3889 (get_specific): If the the architecture doesn't match, fail.
3890
3891 Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3892
3893 * config/tc-sh.c (IDENT_CHAR): Define.
3894 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
3895 matching back where it came from.
3896
3897 Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3898
3899 * config/tc-sh.c (md_show_usage): Add description of -dsp.
3900
3901 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
3902
3903 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
3904 normal operands.
3905
3906 2000-03-15 Kazu Hirata <kazu@hxi.com>
3907
3908 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
3909
3910 Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
3911
3912 * expr.c (operand) [case 'f']: When testing if '0f' can start a
3913 floating-point-number, make sure 'f' is in FLT_CHARS.
3914
3915 Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
3916
3917 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
3918 (s_lcomm_internal): Use it.
3919 * doc/internals.texi (CPU backend): Document it.
3920 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
3921 bytes.
3922
3923 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3924
3925 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
3926 when embedded-pic.
3927
3928 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
3929 implementation doesn't have special handling for switch
3930 statements.
3931 (macro_build): Allow for code in sections other than .text.
3932 (macro): Likewise.
3933 (mips_ip): Likewise.
3934 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
3935 Don't perform relocs if we will be outputting them.
3936 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
3937 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
3938 embedded-pic.
3939
3940 2000-03-09 Catherine Moore <clm@cygnus.com>
3941
3942 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
3943 relocation type based on the entry in the fixup structure.
3944 Put S_IS_EXTERN processing back in.
3945
3946 2000-03-08 H.J. Lu (hjl@gnu.org)
3947
3948 * Makefile.am (install-exec-tooldir): Depend on
3949 install-exec-bindir for parallel make.
3950 * Makefile.in: Regenerated.
3951
3952 2000-03-06 Nick Clifton <nickc@cygnus.com>
3953
3954 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
3955 switch.
3956 (md_parse_option): Parse -m32r command line switch - disable m32rx
3957 compatability.
3958 (md_show_usage): Document new option.
3959
3960 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
3961 * doc/Makefile.in: Regenerate.
3962 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
3963
3964 2000-03-02 Michael Meissner <meissner@redhat.com>
3965
3966 * config/tc-d30v.c (check_range): Remove code that incorrectly
3967 sign extended values where bits < 32.
3968
3969 2000-03-02 H.J. Lu (hjl@gnu.org)
3970
3971 * configure.in: Support --enable-targets=all on ia32.
3972 * configure: Regenerated.
3973
3974 2000-03-01 Nick Clifton <nickc@cygnus.com>
3975
3976 * gasp.c (do_align): Remove bogus check of alignment value.
3977
3978 2000-02-27 Thomas de Lellis <tdel@windriver.com>
3979
3980 * config/obj-elf.c (elf_frob_symbol): Remove code which when
3981 TC_PPC was defined forced the type of a symbol with no other type
3982 to be BSF_OBJECT.
3983
3984 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
3985
3986 * doc/internals.texi (CPU backend): Mention that
3987 line_separator_chars do not break up comments. Fix typos for
3988 LEX_AT and LEX_NAME descriptions. Document operands for
3989 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
3990 description of md_create_short_jump usage. Document argument for
3991 md_undefined_symbol.
3992
3993 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3994
3995 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
3996 (md_parse_option): Handle it.
3997 (md_show_usage): Document it.
3998
3999 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4000
4001 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
4002 opcode, for the instruction `pal19'. From Andrea Arcangeli
4003 <andrea@suse.de>.
4004
4005 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
4006
4007 * config/tc-i386.c (i386_immediate): Move constant operand sizing
4008 from here..
4009 (md_assemble): To here, before template operands are matched.
4010 Also ensure a constant immediate is sign extended when we know the
4011 size is at most 16 bits. This is to catch cases like "add
4012 $0xffc0,%ax" where we don't know the size, and thus that the
4013 immediate can be represented as Imm8S until after parsing the
4014 register operand.
4015 (i386_displacement): Similarly sign extend 16 bit constant
4016 displacements.
4017 (md_assemble): Relax 16-bit jump constant range check to suit sign
4018 extended displacements.
4019
4020 2000-02-26 Andreas Jaeger <aj@suse.de>
4021
4022 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
4023
4024 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
4025
4026 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
4027 call operands when intel_syntax.
4028 (intel_float_operand): Return 2 for "fi...".
4029 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
4030 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
4031 earlier "SHORT" change.
4032 (md_assemble): When determining suffix from Regs, exclude
4033 InOutPortReg.
4034
4035 2000-02-24 Nick Clifton <nickc@cygnus.com>
4036
4037 * configure: Add arm-wince, mips-pe and sh-pe targets.
4038 * configure: Regenerate.
4039
4040 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
4041 sh-pe targets.
4042 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
4043 "pe-mips" for the mips-pe target.
4044
4045 * config/tc-arm.c (insns): Change displacement encoded in BL
4046 and B instructions if the target port is arm-wince.
4047 (do_ldst): Do not bias the relocation offset if the target
4048 port is arm-wince.
4049 (md_pcrel_from): Add in missing relocation offset bias if the
4050 target os arm-wince.
4051
4052 * config/tc-mips.c (mips_target_format): Support COFF flavour.
4053 (md_begin): Disable -G support for mips-pe target.
4054 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
4055 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
4056 COFF flavour.
4057
4058 * config/tc-sh.c (md_begin): sh-pe target is little endian.
4059 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
4060 assembler, just set the alignment to 4.
4061
4062 * config/te-wince-pe.h: New file for WinCE targets. Define
4063 TE_WINCE.
4064
4065 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
4066
4067 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
4068 string instructions.
4069 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
4070 (i386_intel_memory_operand): After finding a segment override,
4071 check again for no `[' before looking for a displacement. Bomb if
4072 more than one displacement rather than silently discarding the
4073 second and subsequent ones. Free strings malloc'd by
4074 build_displacement_string.
4075
4076 2000-02-24 Catherine Moore <clm@cygnus.com>
4077
4078 * config/obj-som.c (obj_pseudo_table): Add "weak".
4079 (obj_som_weak): New routine.
4080
4081 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
4082
4083 * config/tc-i386.c (union i386_op): New.
4084 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
4085 Throughout file replace occurences of disps[n], imms[n], regs[n]
4086 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
4087 intel mode operand swapping. Add assert in regKludge and
4088 fake_zero_displacement code. Test i.types[n] when outputting
4089 displacements and immediates. Combine output of Disp16 with
4090 Disp32.
4091 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
4092 when in intel mode by (not) reversing fsub and fdiv operands
4093 before the template search. This fails for single operand
4094 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
4095 undefined. Instead fix the base_opcode after we've found the
4096 template. Move base_opcode xor with found_reverse_match from
4097 opcode output code to before this fix so we test for the correct
4098 opcodes.
4099 (md_assemble): Don't use strcmp when deciding to ignore the suffix
4100 check in intel mode. Instead compare opcodes.
4101
4102 * config/tc-i386.h (TC_RELOC): Delete.
4103 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
4104 with equivalent call to reloc.
4105
4106 * as.h (flag_m68k_mri): Move declaration after target include, and
4107 only declare when TC_M68K defined. Define as zero otherwise.
4108 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
4109 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
4110 Define as zero otherwise.
4111 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
4112 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
4113 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
4114 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
4115 testing whether defined.
4116 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
4117 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
4118 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
4119 rather than testing whether defined.
4120 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
4121 (parse_mri_cons): Declare and use only when TC_M68K.
4122 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
4123 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
4124 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
4125
4126 * NEWS: Mention IBM 370 support.
4127
4128 2000-02-23 Richard Henderson <rth@cygnus.com>
4129
4130 * config/tc-i386.c (md_assemble): When swapping operands for
4131 intel_syntax, assume everything that's not Imm or Disp is a
4132 register.
4133
4134 2000-02-23 Linas Vepstas <linas@linas.org>
4135
4136 * config/tc-i370.c, config/tc-i370.h: New files.
4137 * Makefile.am: Add support for Linux/IBM 370.
4138 * configure.in: Likewise.
4139 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
4140 * config/obj-elf.c: Include elf/i370.h
4141 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
4142
4143 * Makefile.in: Regenerate.
4144 * configure: Regenerate.
4145
4146 * doc/c-i370.texi: New file.
4147 * doc/all.texi: Include it.
4148 * doc/as.texinfo: And here.
4149 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
4150 * doc/Makefile.in: Regenerate.
4151
4152 2000-02-19 Michael Meissner <meissner@redhat.com>
4153
4154 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
4155 determine if an instruction can be used in parallel with an ADDppp
4156 or SUBppp instruction.
4157
4158 2000-02-22 Andrew Haley <aph@cygnus.com>
4159
4160 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
4161
4162 2000-02-22 Andrew Haley <aph@cygnus.com>
4163
4164 * config/tc-mips.c (mips_gp32): New variable.
4165 (macro_build) Use mips_gp32.
4166 (mips_ip): Ditto.
4167 (md_longopts): Add "-mgp32" and "-mgp64".
4168 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
4169
4170 (OPTION_M7900): Change offset
4171 (OPTION_NO_M7900): Ditto.
4172
4173 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4174
4175 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
4176 warning, and bump it to 1.
4177
4178 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4179
4180 From Brad Lucier <lucier@math.purdue.edu>:
4181 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
4182 match format.
4183
4184 2000-02-21 Catherine Moore <clm@cygnus.com>
4185
4186 * config/tc-mips.c (MF_HILO_INSN): Define.
4187 (mips_7000_hilo_fix): Declare.
4188 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
4189 (md_parse_option): Check for 7000_HILO_FIX options.
4190 (OPTION_M7000_HILO_FIX): Define.
4191 (OPTION_NO_M7000_HILO_FIX): Define.
4192 * doc/c-mips.texi (-mfix7000): Describe.
4193
4194 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4195
4196 * listing.c (print_lines): Remove unused variable `end'.
4197
4198 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
4199 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
4200 reloc_type when BFD_ASSEMBLER.
4201 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
4202 reloc_type when BFD_ASSEMBLER. Move common code out of switch
4203 statement and quell signed vs. unsigned comparison warning.
4204
4205 2000-02-18 Nick Clifton <nickc@cygnus.com>
4206
4207 * config/tc-d10v.c (find_opcode): Add a symbol's value to
4208 the computed frag offset, rather than overwriting it.
4209
4210 Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4211
4212 * config/tc-sh.c ("elf/sh.h"): Include.
4213 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
4214 (md.begin): Initialize target_arch.
4215 Only include opcodes in has table that match selected architecture.
4216 (parse_reg): Recognize register names for sh-dsp.
4217 (parse_at): Recognize post-modify addressing.
4218 (get_operands): The leading space is now optional.
4219 (get_specific): Remove FDREG_N support. Add support for sh-dsp
4220 arguments. Update valid_arch.
4221 (build_Mytes): Add support for SDT_REG_N.
4222 (find_cooked_opcode): New function, broken out of md_assemble.
4223 (assemble_ppi, sh_elf_final_processing): New functions.
4224 (md_assemble): Use find_cooked_opcode and assemble_ppi.
4225 (md_longopts, md_parse_option): New option: -dsp.
4226 * config/tc-sh.h (elf_tc_final_processing): Define.
4227 (sh_elf_final_processing): Declare.
4228
4229 Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
4230
4231 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
4232 the unwinder subspace. Save the current seg/subseg before creating
4233 the new seg/subseg.
4234
4235 2000-02-10 Nick Clifton <nickc@cygnus.com>
4236
4237 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
4238 little endian targets.
4239 (INST_BYTE1): Redefine to handle big and little endian
4240 targets.
4241 (cpu_type): New type: Select between M340 and M210.
4242 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
4243 instructions of the M340.
4244 (md_assemble): Add support for the MULSH and OPSR classes of
4245 instructions.
4246 (md_atof): Add support for little endian targets.
4247 (md_parse_option): Add support for -EL, -EB and -mcpu command
4248 line switches.
4249 (md_convert_frag): Add support for little endian targets.
4250 (md_apply_fix3): Add support for little endian targets.
4251 (md_number_to_chars): Add support for little endian targets.
4252
4253 2000-02-10 Timothy Wall <twall@redhat.com>
4254
4255 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
4256 defined, use it to verify the symbol just read should be a label.
4257
4258 2000-02-10 Timothy Wall <twall@redhat.com>
4259
4260 * app.c (do_scrub_chars): Handle "||" for parallel instructions
4261 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
4262 around colons when KEEP_WHITE_AROUND_COLON is defined.
4263 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
4264 and KEEP_WHITE_AROUND_COLON.
4265
4266 2000-02-08 Timothy Wall <twall@redhat.com>
4267
4268 * read.c (s_rept): Call do_repeat, which abstracts the repeat
4269 logic.
4270 (do_repeat): New. Abstract repeat logic so that a "break" can be
4271 implemented.
4272 (end_repeat): New. Provide support for a "break" out of the
4273 repeat loop.
4274 * read.h: Add prototypes for new functions.
4275
4276 2000-02-08 Timothy Wall <twall@redhat.com>
4277
4278 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
4279 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
4280 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
4281 non-zero.
4282
4283 2000-02-08 Timothy Wall <twall@redhat.com>
4284
4285 * read.c: Added elseif to directives table.
4286 * read.h: Added prototype for s_elseif.
4287 * doc/as.texinfo: Added description for elseif.
4288 * cond.c (s_elseif): New function
4289
4290 2000-02-04 Timothy Wall <twall@redhat.com>
4291
4292 * listing.c (print_lines): Remove conditionals causing bug in
4293 listings.
4294
4295 2000-02-03 Timothy Wall <twall@cygnus.com>
4296
4297 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
4298 default values.
4299 * frags.c (frag_new): Calculate fr_fix in octets
4300 (frag_now_fix) Return offset as target address offset (bytes).
4301 (frag_now_fix_octets) New - Return offset in octets (8-bit
4302 quantities).
4303 * frags.h: Added prototype for frag_now_fix_octets().
4304 Distinguish between octets and bytes in field descriptions.
4305 * listing.c (calc_hex): Account for octets vs bytes when
4306 printing addresses/offsets.
4307 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
4308 target is little-endian, print the octets in a word in big-endian
4309 order so that the display looks like a proper hexadecimal number,
4310 instead of having the octets reversed.
4311 * read.c (do_align): When recording alignment, alignment power
4312 should be in terms of target bytes (minimum addressible unit)
4313 instead of octets.
4314 (do_org) Convert ORG target address (byte) argument into an
4315 octet offset when generating a variable fragment.
4316 * symbols.c (resolve_symbol_value): Symbol final value
4317 converted to a target address offset (bytes) from its octet offset.
4318 * config/obj-coff.c (coff_frob_symbol): Symbol target address
4319 offset (bytes) is adjusted by the frag offset (octets) converted
4320 to bytes.
4321 (coff_frob_section) Section alignment power is in terms of bytes;
4322 convert it to an octet alignment power when calculating size (and
4323 size mask) in octets. Don't modify the section size in order to
4324 "align" it for TI COFF, since that format has a different method
4325 for storing alignment information.
4326
4327 2000-02-01 Timothy Wall <twall@cygnus.com>
4328
4329 * stabs.c (generate_asm_file): Escape backslashes in stabs file
4330 entries, matching the way GCC generates them. If not escaped, the
4331 filename is encoded incorrectly.
4332
4333 2000-01-31 Nick Clifton <nickc@cygnus.com>
4334
4335 * config/tc-arm.c (reg_table): Add support for ATPCS register
4336 naming conventions.
4337
4338 2000-01-31 Geoff Keating <geoffk@cygnus.com>
4339
4340 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
4341 already defined.
4342 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
4343 New macro.
4344 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
4345 of a symbol when we really care about its value.
4346
4347 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
4348
4349 * config/tc-mcore.c (md_assemble): Give warning message if
4350 operands passes to instruction are more than the spec.
4351
4352 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4353
4354 * config/tc-arm.c (armadjust_symtab): If the assembler is in
4355 Thumb mode but the label seen was not declared as '.thumb_func'
4356 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
4357 correct disassembly of Thumb code bounded by non function labels.
4358
4359 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4360
4361 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
4362 Add dependencies for e-i386aout.o. Fix 2 comment lines.
4363
4364 * Makefile.in: Same here.
4365 Update copyright.
4366
4367 * configure.in: Set bfd_gas for i386-aout when primary target
4368 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
4369 we may need the primary te_file. Remove incorrect comment.
4370
4371 * configure: Regenerate.
4372
4373 * config/e-i386aout.c: New file.
4374
4375 * as.c (USE_EMULATIONS): Move to before print_version_id.
4376 (struct emulation): Add i386aout.
4377 (show_usage): Split text strings. Reformat -a text. Add --em
4378 help.
4379 Update copyright.
4380
4381 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
4382 (aout_format_ops): New.
4383 Update copyright.
4384
4385 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
4386 preprocessor conditional and add aout USE_EMULATIONS tests.
4387 (read_a_source_file): Don't pass error strings to printf as
4388 format arg.
4389 Update copyright.
4390
4391 * gasp.c (exp_get_abs): Don't pass error strings to printf as
4392 format arg.
4393 (do_data): Same here.
4394 (process_file): And here.
4395 Update copyright.
4396
4397 * symbols.c (colon): Rewrite "already defined" fatal message
4398 code for aout with USE_EMULATIONS.
4399 Update copyright.
4400
4401 * config/obj-aout.c (OBJ_HEADER): Define.
4402 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
4403 fields of sentinel.
4404 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
4405 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
4406 forms here.
4407 (obj_aout_type): Expand S_SET_OTHER here too.
4408 (obj_read_begin_hook): Remove.
4409 (aout_pop_insert): New.
4410 (obj_aout_s_get_other): New.
4411 (obj_aout_s_get_desc): New.
4412 (aout_format_ops): New.
4413 Update copyright.
4414
4415 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
4416 gets aout_pseudo_table.
4417 (aout_pseudo_table): Declare.
4418 (obj_read_begin_hook): Define.
4419 Update copyright.
4420
4421 * config/obj-coff.c (obj_pseudo_table): Rename to
4422 coff_pseudo_table.
4423 (coff_pop_insert): Use coff_pseudo_table.
4424 (coff_sec_sym_ok_for_reloc): Remove.
4425 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
4426 and comment all zero entries and remove #if 0 code.
4427 Update copyright.
4428
4429 * config/obj-coff.h (obj_pop_insert): Define.
4430 (coff_pseudo_table): Declare.
4431 Update copyright.
4432
4433 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
4434 s_get_size, s_set_size. Comment all zero entries.
4435 Update copyright.
4436
4437 * config/obj-elf.c (elf_s_get_other): New function.
4438 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
4439 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
4440 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
4441 comment.
4442 (obj_elf_parse_section_letters): Don't pass error strings to
4443 printf as format arg.
4444 Update copyright.
4445
4446 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
4447 OBJ_MAYBE_ECOFF.
4448 (elf_s_get_other): Declare.
4449 (S_GET_OTHER) Define as elf_s_get_other if not already
4450 defined.
4451 (S_SET_OTHER): Only define when not already defined.
4452 (elf_obj_read_begin_hook): Declare.
4453 (obj_read_begin_hook): Define.
4454 (elf_obj_symbol_new_hook): Declare.
4455 (obj_symbol_new_hook): Define.
4456 Update copyright.
4457
4458 * config/obj-multi.h: Add copyright header and protect against
4459 multiple inclusion. Add * to all function pointers.
4460 (OBJ_HEADER): If defined, include it rather than other defines
4461 in this file.
4462 (obj_frob_file_after_relocs): Test for NULL.
4463 (obj_symbol_new_hook): Here too.
4464 (obj_sec_sym_ok_for_reloc): And here.
4465 (S_GET_OTHER): Define.
4466 (S_GET_DESC): Define.
4467 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
4468 (OBJ_MAYBE_ELF): Update comment.
4469
4470 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
4471 OBJ_AOUT preprocessor conditional and handle emulation by
4472 testing OUTPUT_FLAVOR.
4473 (i386_displacement): Here too.
4474 (md_section_align): Similarly here.
4475 (i386_target_format): Conditionally compile when more than one
4476 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
4477 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
4478 (i386_displacement): Here too.
4479 Update copyright.
4480
4481 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
4482 Define TARGET_FORMAT for aout only when not multi.
4483 Update copyright.
4484
4485 * config/te-multi.h: Delete file as it's identical to te-generic.h
4486
4487 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
4488
4489 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
4490 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
4491 LONG_MNEM_SUFFIX.
4492
4493 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
4494 DWORD_MNEM_SUFFIX.
4495 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
4496 comments.
4497
4498 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
4499
4500 * config/tc-mips.c (mips_do_align): New function.
4501 * config/tc-mips.h (md_do_align): Define.
4502
4503 2000-01-10 Philip Blundell <philb@gnu.org>
4504
4505 * doc/c-arm.texi (ARM Options): Fix typo.
4506 (ARM-Chars): Correct description of `#'. Mention that `;' is a
4507 line separator for Linux.
4508 * doc/as.texinfo (Comments): Mention the ARM.
4509
4510 2000-01-10 Philip Blundell <pb@futuretv.com>
4511
4512 * configure.in (arm*-*-conix*): New target.
4513 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
4514 armv*-*-linux-gnu.
4515 * configure: Regenerate.
4516
4517 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4518
4519 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
4520 (obj_elf_visibility): New function.
4521
4522 * doc/as.texinfo (Visibility): New node: document visibility
4523 pseudo ops.
4524
4525 For older changes see ChangeLog-9899
This page took 0.142005 seconds and 4 git commands to generate.