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