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